Ardour  9.0-pre0-822-g12e3bc5c20
PianorollVelocityDisplay Class Reference

#include <pianoroll_velocity.h>

Inheritance diagram for PianorollVelocityDisplay:
[legend]

Public Member Functions

 PianorollVelocityDisplay (EditingContext &, MidiViewBackground &, MidiView &, ArdourCanvas::Rectangle &base_rect, Gtkmm2ext::Color oc)
 
void remove_note (NoteBase *)
 
void set_colors ()
 
void set_height (double)
 
- Public Member Functions inherited from VelocityDisplay
 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 color_ghost_event (GhostEvent *)
 
void update_note (GhostEvent *gev)
 
void update_hit (GhostEvent *gev)
 
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_sensitive (bool yn)
 
bool sensitive () 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
 

Private Member Functions

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

Private Attributes

ArdourCanvas::Container_note_group
 
GhostEvent::EventList events
 
GhostEvent::EventList::iterator _optimization_iterator
 

Additional Inherited Members

- 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 VelocityDisplay
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
 
bool _sensitive
 

Detailed Description

Definition at line 24 of file pianoroll_velocity.h.

Constructor & Destructor Documentation

◆ PianorollVelocityDisplay()

PianorollVelocityDisplay::PianorollVelocityDisplay ( EditingContext ,
MidiViewBackground ,
MidiView ,
ArdourCanvas::Rectangle base_rect,
Gtkmm2ext::Color  oc 
)

Member Function Documentation

◆ base_event()

bool PianorollVelocityDisplay::base_event ( GdkEvent *  )
privatevirtual

Implements VelocityDisplay.

◆ lollevent()

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

Implements VelocityDisplay.

◆ remove_note()

void PianorollVelocityDisplay::remove_note ( NoteBase )
virtual

Implements VelocityDisplay.

◆ set_colors()

void PianorollVelocityDisplay::set_colors ( )

◆ set_height()

void PianorollVelocityDisplay::set_height ( double  )

Member Data Documentation

◆ _note_group

ArdourCanvas::Container* PianorollVelocityDisplay::_note_group
private

Definition at line 34 of file pianoroll_velocity.h.

◆ _optimization_iterator

GhostEvent::EventList::iterator PianorollVelocityDisplay::_optimization_iterator
private

Definition at line 36 of file pianoroll_velocity.h.

◆ events

GhostEvent::EventList PianorollVelocityDisplay::events
private

Definition at line 35 of file pianoroll_velocity.h.


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