ardour
Public Types | Public Member Functions | Private Attributes | List of all members
Note Class Reference

#include <note.h>

Inheritance diagram for Note:
NoteBase

Public Types

typedef Evoral::Note
< Evoral::Beats
NoteType
 
- Public Types inherited from NoteBase
typedef Evoral::Note
< Evoral::Beats
NoteType
 

Public Member Functions

 Note (MidiRegionView &region, ArdourCanvas::Item *parent, const boost::shared_ptr< NoteType > note=boost::shared_ptr< NoteType >(), bool with_events=true)
 
 ~Note ()
 
ArdourCanvas::Coord x0 () const
 
ArdourCanvas::Coord y0 () const
 
ArdourCanvas::Coord x1 () const
 
ArdourCanvas::Coord y1 () const
 
void set_x0 (ArdourCanvas::Coord)
 
void set_y0 (ArdourCanvas::Coord)
 
void set_x1 (ArdourCanvas::Coord)
 
void set_y1 (ArdourCanvas::Coord)
 
void set_outline_what (ArdourCanvas::Rectangle::What)
 
void set_outline_all ()
 
void set_outline_color (uint32_t)
 
void set_fill_color (uint32_t)
 
void show ()
 
void hide ()
 
void set_ignore_events (bool)
 
void move_event (double dx, double dy)
 
- Public Member Functions inherited from NoteBase
 NoteBase (MidiRegionView &region, bool, const boost::shared_ptr< NoteType > note=boost::shared_ptr< NoteType >())
 
virtual ~NoteBase ()
 
void set_item (ArdourCanvas::Item *)
 
ArdourCanvas::Item * item () const
 
bool valid () const
 
void invalidate ()
 
void validate ()
 
bool selected () const
 
void set_selected (bool yn)
 
uint32_t base_color ()
 
void show_velocity ()
 
void hide_velocity ()
 
void on_channel_change (uint8_t channel)
 
void on_channel_selection_change (uint16_t selection)
 
float mouse_x_fraction () const
 
float mouse_y_fraction () const
 
const boost::shared_ptr< NoteTypenote () const
 
MidiRegionViewregion_view () const
 
bool mouse_near_ends () const
 
virtual bool big_enough_to_trim () const
 

Private Attributes

ArdourCanvas::Rectangle * _rectangle
 

Additional Inherited Members

- Static Public Member Functions inherited from NoteBase
static uint32_t meter_style_fill_color (uint8_t vel, bool selected)
 
static uint32_t calculate_outline (uint32_t color, bool selected=false)
 calculate outline colors from fill colors of notes More...
 
- Static Public Attributes inherited from NoteBase
static PBD::Signal1< void,
NoteBase * > 
NoteBaseDeleted
 
static const uint32_t midi_channel_colors [16]
 hue circle divided into 16 equal-looking parts, courtesy Thorsten Wilms More...
 
- Protected Types inherited from NoteBase
enum  State { None, Pressed, Dragging }
 
- Protected Member Functions inherited from NoteBase
void set_mouse_fractions (GdkEvent *)
 
- Protected Attributes inherited from NoteBase
MidiRegionView_region
 
ArdourCanvas::Item * _item
 
ArdourCanvas::Text * _text
 
State _state
 
const boost::shared_ptr< NoteType_note
 
bool _with_events
 
bool _own_note
 
bool _selected
 
bool _valid
 
float _mouse_x_fraction
 
float _mouse_y_fraction
 

Detailed Description

Definition at line 32 of file note.h.

Member Typedef Documentation

Definition at line 35 of file note.h.

Constructor & Destructor Documentation

Note::Note ( MidiRegionView region,
ArdourCanvas::Item *  parent,
const boost::shared_ptr< NoteType note = boost::shared_ptrNoteType >(),
bool  with_events = true 
)
Note::~Note ( )

Definition at line 41 of file note.cc.

Member Function Documentation

void Note::hide ( )
virtual

Implements NoteBase.

Definition at line 95 of file note.cc.

void Note::move_event ( double  dx,
double  dy 
)
virtual

Implements NoteBase.

Definition at line 47 of file note.cc.

void Note::set_fill_color ( uint32_t  color)
virtual

Implements NoteBase.

Definition at line 83 of file note.cc.

void Note::set_ignore_events ( bool  ignore)
virtual

Implements NoteBase.

Definition at line 137 of file note.cc.

void Note::set_outline_all ( )

Definition at line 131 of file note.cc.

void Note::set_outline_color ( uint32_t  color)
virtual

Implements NoteBase.

Definition at line 77 of file note.cc.

void Note::set_outline_what ( ArdourCanvas::Rectangle::What  what)

Definition at line 125 of file note.cc.

void Note::set_x0 ( ArdourCanvas::Coord  )

Definition at line 101 of file note.cc.

void Note::set_x1 ( ArdourCanvas::Coord  )

Definition at line 113 of file note.cc.

void Note::set_y0 ( ArdourCanvas::Coord  )

Definition at line 107 of file note.cc.

void Note::set_y1 ( ArdourCanvas::Coord  )

Definition at line 119 of file note.cc.

void Note::show ( )
virtual

Implements NoteBase.

Definition at line 89 of file note.cc.

Coord Note::x0 ( ) const
virtual

Implements NoteBase.

Definition at line 53 of file note.cc.

Coord Note::x1 ( ) const
virtual

Implements NoteBase.

Definition at line 59 of file note.cc.

Coord Note::y0 ( ) const
virtual

Implements NoteBase.

Definition at line 65 of file note.cc.

Coord Note::y1 ( ) const
virtual

Implements NoteBase.

Definition at line 71 of file note.cc.

Member Data Documentation

ArdourCanvas::Rectangle* Note::_rectangle
private

Definition at line 68 of file note.h.


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