Ardour  9.8-201-g363d29fd54
VelocityGhostRegion Class Reference

#include <velocity_ghost_region.h>

Inheritance diagram for VelocityGhostRegion:
[legend]

Public Member Functions

 VelocityGhostRegion (MidiRegionView &, TimeAxisView &tv, TimeAxisView &source_tv, double initial_unit_pos)
 
 ~VelocityGhostRegion ()
 
void remove_note (NoteBase *)
 
void add_note (NoteBase *)
 
void note_selected (NoteBase *)
 
void update_note (GhostEvent *)
 
void update_contents_height ()
 
void update_hit (GhostEvent *)
 
ArdourCanvas::Rectangle & base_item ()
 
void set_colors ()
 
- Public Member Functions inherited from MidiGhostRegion
 MidiGhostRegion (MidiRegionView &rv, TimeAxisView &tv, TimeAxisView &source_tv, double initial_unit_pos)
 
 ~MidiGhostRegion ()
 
MidiStreamView * midi_view ()
 
void set_height ()
 
void set_samples_per_pixel (double spu)
 
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 ()
 
- Public Member Functions inherited from VelocityDisplay
 VelocityDisplay (EditingContext &, MidiViewBackground &, MidiView &, ArdourCanvas::Rectangle &base_rect, GhostEvent::EventList &el, Gtkmm2ext::Color oc)
 
virtual ~VelocityDisplay ()
 
void hide ()
 
void show ()
 
void redisplay ()
 
void add_note (NoteBase *)
 
void update_note (NoteBase *)
 
void update_ghost_event (GhostEvent *)
 
void color_ghost_event (GhostEvent *)
 
void update_note (GhostEvent *gev)
 
void update_hit (GhostEvent *gev)
 
void note_selected (NoteBase *)
 
void clear ()
 
void drag_lolli (ArdourCanvas::Lollipop *l, GdkEventMotion *ev)
 
int y_position_to_velocity (double y) const
 
void set_sensitive (bool yn)
 
bool sensitive () const
 
bool line_draw_motion (ArdourCanvas::Duple const &d, ArdourCanvas::Rectangle const &r, double last_x)
 
bool line_extended (ArdourCanvas::Duple const &from, ArdourCanvas::Duple const &to, ArdourCanvas::Rectangle const &r, double last_x)
 
void start_line_drag ()
 
void end_line_drag (bool did_change)
 
ArdourCanvas::Rectangle & base_item ()
 
MidiView & midi_view () const
 

Private Member Functions

bool base_event (GdkEvent *)
 
bool lollevent (GdkEvent *, GhostEvent *)
 
void model_changed ()
 

Additional Inherited Members

- Public Attributes inherited from GhostRegion
RegionView & parent_rv
 
TimeAxisView & trackview
 
TimeAxisView & source_trackview
 
ArdourCanvas::Container * group
 
ArdourCanvas::Rectangle * base_rect
 
- Protected Member Functions inherited from MidiGhostRegion
GhostEvent * find_event (std::shared_ptr< GhostEvent::NoteType >)
 
- Protected Member Functions inherited from VelocityDisplay
void set_size_and_position (GhostEvent &)
 
void lollis_close_to_x (int x, double distance, std::vector< GhostEvent * > &events)
 
void lollis_between (int x0, int x1, std::vector< GhostEvent * > &events)
 
void desensitize_lollis ()
 
void sensitize_lollis ()
 
- Protected Attributes inherited from MidiGhostRegion
Gtkmm2ext::Color _outline
 
ArdourCanvas::Rectangle * _tmp_rect
 
ArdourCanvas::Polygon * _tmp_poly
 
MidiRegionView & parent_mrv
 
GhostEvent::EventList events
 
- Protected Attributes inherited from VelocityDisplay
EditingContext & editing_context
 
MidiViewBackground & bg
 
MidiView & view
 
ArdourCanvas::Rectangle & base
 
GhostEvent::EventList & events
 
Gtkmm2ext::Color _outline
 
bool dragging
 
ArdourCanvas::PolyLine * dragging_line
 
int last_drag_x
 
bool drag_did_change
 
bool selected
 
GhostEvent::EventList::iterator _optimization_iterator
 
bool _sensitive
 
sigc::connection base_connection
 

Detailed Description

Definition at line 34 of file velocity_ghost_region.h.

Constructor & Destructor Documentation

◆ VelocityGhostRegion()

VelocityGhostRegion::VelocityGhostRegion ( MidiRegionView &  ,
TimeAxisView &  tv,
TimeAxisView &  source_tv,
double  initial_unit_pos 
)

◆ ~VelocityGhostRegion()

VelocityGhostRegion::~VelocityGhostRegion ( )

Member Function Documentation

◆ add_note()

void VelocityGhostRegion::add_note ( NoteBase *  )
virtual

Reimplemented from MidiGhostRegion.

◆ base_event()

bool VelocityGhostRegion::base_event ( GdkEvent *  )
privatevirtual

Implements VelocityDisplay.

◆ base_item()

ArdourCanvas::Rectangle& VelocityGhostRegion::base_item ( )

◆ lollevent()

bool VelocityGhostRegion::lollevent ( GdkEvent *  ,
GhostEvent *   
)
privatevirtual

Implements VelocityDisplay.

◆ model_changed()

void VelocityGhostRegion::model_changed ( )
privatevirtual

Reimplemented from MidiGhostRegion.

◆ note_selected()

void VelocityGhostRegion::note_selected ( NoteBase *  )
virtual

Reimplemented from MidiGhostRegion.

◆ remove_note()

void VelocityGhostRegion::remove_note ( NoteBase *  )
virtual

Reimplemented from MidiGhostRegion.

◆ set_colors()

void VelocityGhostRegion::set_colors ( )
virtual

Reimplemented from MidiGhostRegion.

◆ update_contents_height()

void VelocityGhostRegion::update_contents_height ( )
virtual

Reimplemented from MidiGhostRegion.

◆ update_hit()

void VelocityGhostRegion::update_hit ( GhostEvent *  )
virtual

Reimplemented from MidiGhostRegion.

◆ update_note()

void VelocityGhostRegion::update_note ( GhostEvent *  )
virtual

Reimplemented from MidiGhostRegion.


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