Ardour  9.0-pre0-582-g084a23a80d
VelocityDisplay Class Referenceabstract

#include <velocity_display.h>

Inheritance diagram for VelocityDisplay:
[legend]

Public Member Functions

 VelocityDisplay (EditingContext &, MidiViewBackground &, MidiView &, ArdourCanvas::Rectangle &base_rect, ArdourCanvas::Container &, 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 update_note (GhostEvent *gev)
 
void update_hit (GhostEvent *gev)
 
virtual void remove_note (NoteBase *)=0
 
void note_selected (NoteBase *)
 
void clear ()
 
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 ()
 
MidiViewmidi_view () const
 

Protected Member Functions

virtual bool lollevent (GdkEvent *, GhostEvent *)=0
 
virtual bool base_event (GdkEvent *)=0
 
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

EditingContextediting_context
 
MidiViewBackgroundbg
 
MidiViewview
 
ArdourCanvas::Rectanglebase
 
ArdourCanvas::Containerlolli_container
 
GhostEvent::EventListevents
 
Gtkmm2ext::Color _outline
 
bool dragging
 
ArdourCanvas::PolyLinedragging_line
 
int last_drag_x
 
bool drag_did_change
 
bool selected
 
GhostEvent::EventList::iterator _optimization_iterator
 

Detailed Description

Definition at line 41 of file velocity_display.h.

Constructor & Destructor Documentation

◆ VelocityDisplay()

VelocityDisplay::VelocityDisplay ( EditingContext ,
MidiViewBackground ,
MidiView ,
ArdourCanvas::Rectangle base_rect,
ArdourCanvas::Container ,
GhostEvent::EventList el,
Gtkmm2ext::Color  oc 
)

◆ ~VelocityDisplay()

virtual VelocityDisplay::~VelocityDisplay ( )
virtual

Member Function Documentation

◆ add_note()

void VelocityDisplay::add_note ( NoteBase )

◆ base_event()

virtual bool VelocityDisplay::base_event ( GdkEvent )
protectedpure virtual

◆ base_item()

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

Definition at line 76 of file velocity_display.h.

◆ clear()

void VelocityDisplay::clear ( )

◆ desensitize_lollis()

void VelocityDisplay::desensitize_lollis ( )
protected

◆ drag_lolli()

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

◆ end_line_drag()

void VelocityDisplay::end_line_drag ( bool  did_change)

◆ hide()

void VelocityDisplay::hide ( )

◆ line_draw_motion()

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

◆ line_extended()

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

◆ lollevent()

virtual bool VelocityDisplay::lollevent ( GdkEvent ,
GhostEvent  
)
protectedpure virtual

◆ lollis_between()

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

◆ lollis_close_to_x()

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

◆ midi_view()

MidiView& VelocityDisplay::midi_view ( ) const
inline

Definition at line 77 of file velocity_display.h.

◆ note_selected()

void VelocityDisplay::note_selected ( NoteBase )

◆ redisplay()

void VelocityDisplay::redisplay ( )

◆ remove_note()

virtual void VelocityDisplay::remove_note ( NoteBase )
pure virtual

◆ sensitize_lollis()

void VelocityDisplay::sensitize_lollis ( )
protected

◆ set_colors()

void VelocityDisplay::set_colors ( )

◆ set_selected()

void VelocityDisplay::set_selected ( bool  )

◆ set_size_and_position()

void VelocityDisplay::set_size_and_position ( GhostEvent )
protected

◆ show()

void VelocityDisplay::show ( )

◆ start_line_drag()

void VelocityDisplay::start_line_drag ( )

◆ update_ghost_event()

void VelocityDisplay::update_ghost_event ( GhostEvent )

◆ update_hit()

void VelocityDisplay::update_hit ( GhostEvent gev)
inline

Definition at line 57 of file velocity_display.h.

◆ update_note() [1/2]

void VelocityDisplay::update_note ( GhostEvent gev)
inline

Definition at line 56 of file velocity_display.h.

◆ update_note() [2/2]

void VelocityDisplay::update_note ( NoteBase )

◆ y_position_to_velocity()

int VelocityDisplay::y_position_to_velocity ( double  y) const

Member Data Documentation

◆ _optimization_iterator

GhostEvent::EventList::iterator VelocityDisplay::_optimization_iterator
protected

Definition at line 94 of file velocity_display.h.

◆ _outline

Gtkmm2ext::Color VelocityDisplay::_outline
protected

Definition at line 88 of file velocity_display.h.

◆ base

ArdourCanvas::Rectangle& VelocityDisplay::base
protected

Definition at line 85 of file velocity_display.h.

◆ bg

MidiViewBackground& VelocityDisplay::bg
protected

Definition at line 83 of file velocity_display.h.

◆ drag_did_change

bool VelocityDisplay::drag_did_change
protected

Definition at line 92 of file velocity_display.h.

◆ dragging

bool VelocityDisplay::dragging
protected

Definition at line 89 of file velocity_display.h.

◆ dragging_line

ArdourCanvas::PolyLine* VelocityDisplay::dragging_line
protected

Definition at line 90 of file velocity_display.h.

◆ editing_context

EditingContext& VelocityDisplay::editing_context
protected

Definition at line 82 of file velocity_display.h.

◆ events

GhostEvent::EventList& VelocityDisplay::events
protected

Definition at line 87 of file velocity_display.h.

◆ last_drag_x

int VelocityDisplay::last_drag_x
protected

Definition at line 91 of file velocity_display.h.

◆ lolli_container

ArdourCanvas::Container* VelocityDisplay::lolli_container
protected

Definition at line 86 of file velocity_display.h.

◆ selected

bool VelocityDisplay::selected
protected

Definition at line 93 of file velocity_display.h.

◆ view

MidiView& VelocityDisplay::view
protected

Definition at line 84 of file velocity_display.h.


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