Ardour  8.12
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 update_contents_height ()
 
void add_note (NoteBase *)
 
void update_note (GhostEvent *note)
 
void update_hit (GhostEvent *hit)
 
void remove_note (NoteBase *)
 
void note_selected (NoteBase *)
 
void set_colors ()
 
void drag_lolli (ArdourCanvas::Lollipop *l, GdkEventMotion *ev)
 
int y_position_to_velocity (double y) const
 
void set_selected (bool)
 
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::Rectanglebase_item ()
 
- Public Member Functions inherited from MidiGhostRegion
 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 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)
 
guint source_track_color (unsigned char alpha=0xff)
 
bool is_automation_ghost ()
 

Private Member Functions

bool base_event (GdkEvent *)
 
bool lollevent (GdkEvent *, MidiGhostRegion::GhostEvent *)
 
void set_size_and_position (MidiGhostRegion::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 ()
 

Private Attributes

bool dragging
 
ArdourCanvas::PolyLinedragging_line
 
int last_drag_x
 
bool drag_did_change
 
bool selected
 

Additional Inherited Members

- Public Attributes inherited from GhostRegion
RegionViewparent_rv
 
TimeAxisViewtrackview
 
TimeAxisViewsource_trackview
 
ArdourCanvas::Containergroup
 
ArdourCanvas::Rectanglebase_rect
 
- Protected Types inherited from MidiGhostRegion
typedef Evoral::Note< Temporal::BeatsNoteType
 
typedef boost::unordered_map< std::shared_ptr< NoteType >, MidiGhostRegion::GhostEvent * > EventList
 
- Protected Member Functions inherited from MidiGhostRegion
MidiGhostRegion::GhostEventfind_event (std::shared_ptr< NoteType >)
 
- Protected Attributes inherited from MidiGhostRegion
ArdourCanvas::Container_note_group
 
Gtkmm2ext::Color _outline
 
ArdourCanvas::Rectangle_tmp_rect
 
ArdourCanvas::Polygon_tmp_poly
 
MidiRegionViewparent_mrv
 
EventList events
 
EventList::iterator _optimization_iterator
 

Detailed Description

Definition at line 32 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 )
private

◆ base_item()

ArdourCanvas::Rectangle& VelocityGhostRegion::base_item ( )
inline

Definition at line 58 of file velocity_ghost_region.h.

◆ desensitize_lollis()

void VelocityGhostRegion::desensitize_lollis ( )
private

◆ drag_lolli()

void VelocityGhostRegion::drag_lolli ( ArdourCanvas::Lollipop l,
GdkEventMotion ev 
)

◆ end_line_drag()

void VelocityGhostRegion::end_line_drag ( bool  did_change)

◆ line_draw_motion()

bool VelocityGhostRegion::line_draw_motion ( ArdourCanvas::Duple const &  d,
ArdourCanvas::Rectangle const &  r,
double  last_x 
)

◆ line_extended()

bool VelocityGhostRegion::line_extended ( ArdourCanvas::Duple const &  from,
ArdourCanvas::Duple const &  to,
ArdourCanvas::Rectangle const &  r,
double  last_x 
)

◆ lollevent()

bool VelocityGhostRegion::lollevent ( GdkEvent ,
MidiGhostRegion::GhostEvent  
)
private

◆ lollis_between()

void VelocityGhostRegion::lollis_between ( int  x0,
int  x1,
std::vector< GhostEvent * > &  events 
)
private

◆ lollis_close_to_x()

void VelocityGhostRegion::lollis_close_to_x ( int  x,
double  distance,
std::vector< GhostEvent * > &  events 
)
private

◆ note_selected()

void VelocityGhostRegion::note_selected ( NoteBase )
virtual

Reimplemented from MidiGhostRegion.

◆ remove_note()

void VelocityGhostRegion::remove_note ( NoteBase )
virtual

Reimplemented from MidiGhostRegion.

◆ sensitize_lollis()

void VelocityGhostRegion::sensitize_lollis ( )
private

◆ set_colors()

void VelocityGhostRegion::set_colors ( )
virtual

Reimplemented from MidiGhostRegion.

◆ set_selected()

void VelocityGhostRegion::set_selected ( bool  )
virtual

Reimplemented from GhostRegion.

◆ set_size_and_position()

void VelocityGhostRegion::set_size_and_position ( MidiGhostRegion::GhostEvent )
private

◆ start_line_drag()

void VelocityGhostRegion::start_line_drag ( )

◆ update_contents_height()

void VelocityGhostRegion::update_contents_height ( )
virtual

Reimplemented from MidiGhostRegion.

◆ update_hit()

void VelocityGhostRegion::update_hit ( GhostEvent hit)
virtual

Reimplemented from MidiGhostRegion.

◆ update_note()

void VelocityGhostRegion::update_note ( GhostEvent note)
virtual

Reimplemented from MidiGhostRegion.

◆ y_position_to_velocity()

int VelocityGhostRegion::y_position_to_velocity ( double  y) const

Member Data Documentation

◆ drag_did_change

bool VelocityGhostRegion::drag_did_change
private

Definition at line 64 of file velocity_ghost_region.h.

◆ dragging

bool VelocityGhostRegion::dragging
private

Definition at line 61 of file velocity_ghost_region.h.

◆ dragging_line

ArdourCanvas::PolyLine* VelocityGhostRegion::dragging_line
private

Definition at line 62 of file velocity_ghost_region.h.

◆ last_drag_x

int VelocityGhostRegion::last_drag_x
private

Definition at line 63 of file velocity_ghost_region.h.

◆ selected

bool VelocityGhostRegion::selected
private

Definition at line 65 of file velocity_ghost_region.h.


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