ardour
|
#include <ghostregion.h>
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 () | |
MidiStreamView * | midi_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::GhostEvent * | find_event (NoteBase *) |
Private Attributes | |
EventList | events |
EventList::iterator | _optimization_iterator |
Additional Inherited Members | |
Public Attributes inherited from GhostRegion | |
TimeAxisView & | trackview |
TimeAxisView & | source_trackview |
ArdourCanvas::Container * | group |
ArdourCanvas::Rectangle * | base_rect |
Static Public Attributes inherited from GhostRegion | |
static PBD::Signal1< void, GhostRegion * > | CatchDeletion |
Definition at line 72 of file ghostregion.h.
|
private |
Definition at line 105 of file ghostregion.h.
MidiGhostRegion::MidiGhostRegion | ( | TimeAxisView & | tv, |
TimeAxisView & | source_tv, | ||
double | initial_unit_pos | ||
) |
The general constructor; called when the destination timeaxisview doesn't have a midistreamview.
tv | TimeAxisView that this ghost region is on. |
source_tv | TimeAxisView 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 | ||
) |
msv | MidiStreamView that this ghost region is on. |
source_tv | TimeAxisView that we are the ghost for. |
Definition at line 180 of file ghostregion.cc.
MidiGhostRegion::~MidiGhostRegion | ( | ) |
Definition at line 190 of file ghostregion.cc.
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.
|
private |
Given a note in our parent region (ie the actual MidiRegionView), find our representation of it.
Definition at line 402 of file ghostregion.cc.
MidiStreamView * MidiGhostRegion::midi_view | ( | ) |
Definition at line 225 of file ghostregion.cc.
void MidiGhostRegion::remove_note | ( | NoteBase * | note | ) |
Definition at line 384 of file ghostregion.cc.
|
virtual |
Reimplemented from GhostRegion.
Definition at line 243 of file ghostregion.cc.
|
virtual |
Reimplemented from GhostRegion.
Definition at line 236 of file ghostregion.cc.
|
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.
parent | The 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.
|
private |
Definition at line 107 of file ghostregion.h.
|
private |
Definition at line 106 of file ghostregion.h.