ardour
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
MidiGhostRegion Class Reference

#include <ghostregion.h>

Inheritance diagram for MidiGhostRegion:
GhostRegion

Classes

class  GhostEvent
 

Public Member Functions

 MidiGhostRegion (TimeAxisView &tv, TimeAxisView &source_tv, double initial_unit_pos)
 
 MidiGhostRegion (MidiStreamView &msv, TimeAxisView &source_tv, double initial_unit_pos)
 
 ~MidiGhostRegion ()
 
MidiStreamViewmidi_view ()
 
void set_height ()
 
void set_samples_per_pixel (double spu)
 
void set_colors ()
 
void update_range ()
 
void add_note (NoteBase *)
 
void update_note (NoteBase *)
 
void remove_note (NoteBase *)
 
void clear_events ()
 
- Public Member Functions inherited from GhostRegion
 GhostRegion (ArdourCanvas::Container *parent, TimeAxisView &tv, TimeAxisView &source_tv, double initial_unit_pos)
 
virtual ~GhostRegion ()
 
void set_duration (double units)
 
guint source_track_color (unsigned char alpha=0xff)
 
bool is_automation_ghost ()
 

Private Types

typedef std::list
< MidiGhostRegion::GhostEvent * > 
EventList
 

Private Member Functions

MidiGhostRegion::GhostEventfind_event (NoteBase *)
 

Private Attributes

EventList events
 
EventList::iterator _optimization_iterator
 

Additional Inherited Members

- Public Attributes inherited from GhostRegion
TimeAxisViewtrackview
 
TimeAxisViewsource_trackview
 
ArdourCanvas::Container * group
 
ArdourCanvas::Rectangle * base_rect
 
- Static Public Attributes inherited from GhostRegion
static PBD::Signal1< void,
GhostRegion * > 
CatchDeletion
 

Detailed Description

Definition at line 72 of file ghostregion.h.

Member Typedef Documentation

Definition at line 105 of file ghostregion.h.

Constructor & Destructor Documentation

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

The general constructor; called when the destination timeaxisview doesn't have a midistreamview.

Parameters
tvTimeAxisView that this ghost region is on.
source_tvTimeAxisView that we are the ghost for.

Definition at line 166 of file ghostregion.cc.

MidiGhostRegion::MidiGhostRegion ( MidiStreamView msv,
TimeAxisView source_tv,
double  initial_unit_pos 
)
Parameters
msvMidiStreamView that this ghost region is on.
source_tvTimeAxisView that we are the ghost for.

Definition at line 180 of file ghostregion.cc.

MidiGhostRegion::~MidiGhostRegion ( )

Definition at line 190 of file ghostregion.cc.

Member Function Documentation

void MidiGhostRegion::add_note ( NoteBase n)

Definition at line 307 of file ghostregion.cc.

void MidiGhostRegion::clear_events ( )

Definition at line 341 of file ghostregion.cc.

MidiGhostRegion::GhostEvent * MidiGhostRegion::find_event ( NoteBase parent)
private

Given a note in our parent region (ie the actual MidiRegionView), find our representation of it.

Returns
Our Event, or 0 if not found.

Definition at line 402 of file ghostregion.cc.

MidiStreamView * MidiGhostRegion::midi_view ( )
Returns
MidiStreamView that we are providing a ghost for

Definition at line 225 of file ghostregion.cc.

void MidiGhostRegion::remove_note ( NoteBase note)

Definition at line 384 of file ghostregion.cc.

void MidiGhostRegion::set_colors ( )
virtual

Reimplemented from GhostRegion.

Definition at line 243 of file ghostregion.cc.

void MidiGhostRegion::set_height ( )
virtual

Reimplemented from GhostRegion.

Definition at line 236 of file ghostregion.cc.

void MidiGhostRegion::set_samples_per_pixel ( double  spu)
virtual

Implements GhostRegion.

Definition at line 219 of file ghostregion.cc.

void MidiGhostRegion::update_note ( NoteBase parent)

Update the x positions of our representation of a parent's note.

Parameters
parentThe CanvasNote from the parent MidiRegionView.

Definition at line 355 of file ghostregion.cc.

void MidiGhostRegion::update_range ( )

Definition at line 273 of file ghostregion.cc.

Member Data Documentation

EventList::iterator MidiGhostRegion::_optimization_iterator
private

Definition at line 107 of file ghostregion.h.

EventList MidiGhostRegion::events
private

Definition at line 106 of file ghostregion.h.


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