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

#include <hit.h>

Inheritance diagram for Hit:
NoteBase

Public Types

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

Public Member Functions

 Hit (MidiRegionView &region, ArdourCanvas::Item *parent, double size, const boost::shared_ptr< NoteType > note=boost::shared_ptr< NoteType >(), bool with_events=true)
 
 ~Hit ()
 
void show ()
 
void hide ()
 
ArdourCanvas::Coord x0 () const
 
ArdourCanvas::Coord y0 () const
 
ArdourCanvas::Coord x1 () const
 
ArdourCanvas::Coord y1 () const
 
ArdourCanvas::Duple position ()
 
void set_position (ArdourCanvas::Duple)
 
void set_height (ArdourCanvas::Coord)
 
void set_outline_color (uint32_t)
 
void set_fill_color (uint32_t)
 
void set_ignore_events (bool)
 
void move_event (double, double)
 
bool big_enough_to_trim () const
 
- 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
 

Static Public Member Functions

static ArdourCanvas::Points points (ArdourCanvas::Distance height)
 
- 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...
 

Private Attributes

ArdourCanvas::Polygon * _polygon
 

Additional Inherited Members

- 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 30 of file hit.h.

Member Typedef Documentation

Definition at line 33 of file hit.h.

Constructor & Destructor Documentation

Hit::Hit ( MidiRegionView region,
ArdourCanvas::Item *  parent,
double  size,
const boost::shared_ptr< NoteType note = boost::shared_ptr<NoteType>(),
bool  with_events = true 
)

Definition at line 30 of file hit.cc.

Hit::~Hit ( )

Definition at line 39 of file hit.cc.

Member Function Documentation

bool Hit::big_enough_to_trim ( ) const
inlinevirtual

Reimplemented from NoteBase.

Definition at line 65 of file hit.h.

void Hit::hide ( )
virtual

Implements NoteBase.

Definition at line 74 of file hit.cc.

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

Implements NoteBase.

Definition at line 45 of file hit.cc.

Points Hit::points ( ArdourCanvas::Distance  height)
static

Definition at line 80 of file hit.cc.

Duple Hit::position ( )

Definition at line 102 of file hit.cc.

void Hit::set_fill_color ( uint32_t  color)
virtual

Implements NoteBase.

Definition at line 62 of file hit.cc.

void Hit::set_height ( ArdourCanvas::Coord  )

Definition at line 96 of file hit.cc.

void Hit::set_ignore_events ( bool  ignore)
virtual

Implements NoteBase.

Definition at line 142 of file hit.cc.

void Hit::set_outline_color ( uint32_t  color)
virtual

Implements NoteBase.

Definition at line 56 of file hit.cc.

void Hit::set_position ( ArdourCanvas::Duple  )

Definition at line 108 of file hit.cc.

void Hit::show ( )
virtual

Implements NoteBase.

Definition at line 68 of file hit.cc.

Coord Hit::x0 ( ) const
virtual

Implements NoteBase.

Definition at line 114 of file hit.cc.

Coord Hit::x1 ( ) const
virtual

Implements NoteBase.

Definition at line 121 of file hit.cc.

Coord Hit::y0 ( ) const
virtual

Implements NoteBase.

Definition at line 128 of file hit.cc.

Coord Hit::y1 ( ) const
virtual

Implements NoteBase.

Definition at line 135 of file hit.cc.

Member Data Documentation

ArdourCanvas::Polygon* Hit::_polygon
private

Definition at line 70 of file hit.h.


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