Ardour  9.0-pre0-582-g084a23a80d
MidiGhostRegion Class Reference

#include <ghostregion.h>

Inheritance diagram for MidiGhostRegion:
[legend]

Public Member Functions

 MidiGhostRegion (MidiRegionView &rv, TimeAxisView &tv, TimeAxisView &source_tv, double initial_unit_pos)
 
 ~MidiGhostRegion ()
 
MidiStreamViewmidi_view ()
 
void set_height ()
 
void set_samples_per_pixel (double spu)
 
void set_colors ()
 
virtual void update_contents_height ()
 
virtual void add_note (NoteBase *)
 
virtual void update_note (GhostEvent *note)
 
virtual void update_hit (GhostEvent *hit)
 
virtual void remove_note (NoteBase *)
 
virtual void note_selected (NoteBase *)
 
void model_changed ()
 
void view_changed ()
 
void clear_events ()
 
- Public Member Functions inherited from GhostRegion
 GhostRegion (RegionView &rv, ArdourCanvas::Container *parent, TimeAxisView &tv, TimeAxisView &source_tv, double initial_unit_pos)
 
virtual ~GhostRegion ()
 
void set_duration (double units)
 
virtual void set_selected (bool)
 
guint source_track_color (unsigned char alpha=0xff)
 
bool is_automation_ghost ()
 

Protected Member Functions

GhostEventfind_event (std::shared_ptr< GhostEvent::NoteType >)
 

Protected Attributes

ArdourCanvas::Container_note_group
 
Gtkmm2ext::Color _outline
 
ArdourCanvas::Rectangle_tmp_rect
 
ArdourCanvas::Polygon_tmp_poly
 
MidiRegionViewparent_mrv
 
GhostEvent::EventList events
 

Additional Inherited Members

- Public Attributes inherited from GhostRegion
RegionViewparent_rv
 
TimeAxisViewtrackview
 
TimeAxisViewsource_trackview
 
ArdourCanvas::Containergroup
 
ArdourCanvas::Rectanglebase_rect
 

Detailed Description

Definition at line 100 of file ghostregion.h.

Constructor & Destructor Documentation

◆ MidiGhostRegion()

MidiGhostRegion::MidiGhostRegion ( MidiRegionView rv,
TimeAxisView tv,
TimeAxisView source_tv,
double  initial_unit_pos 
)

◆ ~MidiGhostRegion()

MidiGhostRegion::~MidiGhostRegion ( )

Member Function Documentation

◆ add_note()

virtual void MidiGhostRegion::add_note ( NoteBase )
virtual

Reimplemented in VelocityGhostRegion.

◆ clear_events()

void MidiGhostRegion::clear_events ( )

◆ find_event()

GhostEvent* MidiGhostRegion::find_event ( std::shared_ptr< GhostEvent::NoteType )
protected

◆ midi_view()

MidiStreamView* MidiGhostRegion::midi_view ( )

◆ model_changed()

void MidiGhostRegion::model_changed ( )

◆ note_selected()

virtual void MidiGhostRegion::note_selected ( NoteBase )
inlinevirtual

Reimplemented in VelocityGhostRegion.

Definition at line 120 of file ghostregion.h.

◆ remove_note()

virtual void MidiGhostRegion::remove_note ( NoteBase )
virtual

Reimplemented in VelocityGhostRegion.

◆ set_colors()

void MidiGhostRegion::set_colors ( )
virtual

Reimplemented from GhostRegion.

Reimplemented in VelocityGhostRegion.

◆ set_height()

void MidiGhostRegion::set_height ( )
virtual

Reimplemented from GhostRegion.

◆ set_samples_per_pixel()

void MidiGhostRegion::set_samples_per_pixel ( double  spu)
virtual

Implements GhostRegion.

◆ update_contents_height()

virtual void MidiGhostRegion::update_contents_height ( )
virtual

Reimplemented in VelocityGhostRegion.

◆ update_hit()

virtual void MidiGhostRegion::update_hit ( GhostEvent hit)
virtual

Reimplemented in VelocityGhostRegion.

◆ update_note()

virtual void MidiGhostRegion::update_note ( GhostEvent note)
virtual

Reimplemented in VelocityGhostRegion.

◆ view_changed()

void MidiGhostRegion::view_changed ( )

Member Data Documentation

◆ _note_group

ArdourCanvas::Container* MidiGhostRegion::_note_group
protected

Definition at line 127 of file ghostregion.h.

◆ _outline

Gtkmm2ext::Color MidiGhostRegion::_outline
protected

Definition at line 128 of file ghostregion.h.

◆ _tmp_poly

ArdourCanvas::Polygon* MidiGhostRegion::_tmp_poly
protected

Definition at line 130 of file ghostregion.h.

◆ _tmp_rect

ArdourCanvas::Rectangle* MidiGhostRegion::_tmp_rect
protected

Definition at line 129 of file ghostregion.h.

◆ events

GhostEvent::EventList MidiGhostRegion::events
protected

Definition at line 135 of file ghostregion.h.

◆ parent_mrv

MidiRegionView& MidiGhostRegion::parent_mrv
protected

Definition at line 132 of file ghostregion.h.


The documentation for this class was generated from the following file: