Ardour  9.0-pre0-582-g084a23a80d
TempoMarker Class Reference

#include <marker.h>

Inheritance diagram for TempoMarker:
[legend]

Public Member Functions

 TempoMarker (PublicEditor &editor, ArdourCanvas::Item &parent, std::string const &color_name, const std::string &text, Temporal::TempoPoint const &, samplepos_t sample, uint32_t curve_color)
 
 ~TempoMarker ()
 
void reset_tempo (Temporal::TempoPoint const &t)
 
void update ()
 
void reposition ()
 
Temporal::TempoPoint const & tempo () const
 
Temporal::Point const & point () const
 
TempoCurvecurve ()
 
- Public Member Functions inherited from MetricMarker
 MetricMarker (PublicEditor &ed, ArdourCanvas::Item &parent, std::string const &color_name, const std::string &annotation, Type type, Temporal::timepos_t const &pos, bool handle_events)
 
- Public Member Functions inherited from ArdourMarker
 ArdourMarker (PublicEditor &editor, ArdourCanvas::Item &, std::string const &color_name, std::string const &text, Type, Temporal::timepos_t const &position, bool handle_events=true, RegionView *rv=nullptr, bool use_tooltip=true)
 
virtual ~ArdourMarker ()
 
ArdourCanvas::Itemthe_item () const
 
void set_selected (bool)
 
void set_entered (bool)
 
void set_show_line (bool)
 
void set_line_height (double)
 
virtual void set_position (Temporal::timepos_t const &)
 
void set_name (const std::string &, const std::string &tooltip=std::string())
 
void set_color (std::string const &color_name)
 
void set_points_color (std::string const &color_name)
 
void setup_line ()
 
ARDOUR::timepos_t position () const
 
ArdourCanvas::Itemget_parent ()
 
void reparent (ArdourCanvas::Item &parent)
 
void hide ()
 
void show ()
 
Type type ()
 
void set_left_label_limit (double)
 
void set_right_label_limit (double)
 
std::string name () const
 
bool label_on_left () const
 
RegionViewregion_view () const
 
void set_cue_index (int c)
 
int cue_index () const
 

Private Attributes

Temporal::TempoPoint const * _tempo
 
TempoCurve_curve
 

Additional Inherited Members

- Public Types inherited from ArdourMarker
enum  Type {
  Mark , Tempo , Meter , BBTPosition ,
  SessionStart , SessionEnd , Section , RangeStart ,
  RangeEnd , LoopStart , LoopEnd , PunchIn ,
  PunchOut , RegionCue , Cue , SelectionStart ,
  SelectionEnd
}
 
- Static Public Member Functions inherited from ArdourMarker
static void setup_sizes (const double timebar_height)
 
- Static Public Attributes inherited from ArdourMarker
static PBD::Signal< void(ArdourMarker *)> CatchDeletion
 
- Protected Member Functions inherited from ArdourMarker
void setup_line_x ()
 
void setup_name_display ()
 
- Protected Attributes inherited from ArdourMarker
PublicEditoreditor
 
Pango::FontDescription name_font
 
ArdourCanvas::Item_parent
 
ArdourCanvas::Itemgroup
 
ArdourCanvas::Circle_pcue
 
ArdourCanvas::Polygon_pmark
 
ArdourCanvas::Text_name_item
 
ArdourCanvas::Pointspoints
 
ArdourCanvas::Line_track_canvas_line
 
ArdourCanvas::Rectangle_name_flag
 
std::string _name
 
double unit_position
 
ARDOUR::timepos_t _position
 
double _shift
 
Type _type
 
int name_height
 
int name_descent
 
bool _selected
 
bool _entered
 
bool _shown
 
bool _line_shown
 
bool _use_tooltip
 
std::string _color
 
std::string _points_color
 
double _left_label_limit
 the number of pixels available to the left of this marker for a label More...
 
double _right_label_limit
 the number of pixels available to the right of this marker for a label More...
 
double _label_offset
 
double _line_height
 
RegionView_region_view
 
int _cue_index
 

Detailed Description

Definition at line 195 of file marker.h.

Constructor & Destructor Documentation

◆ TempoMarker()

TempoMarker::TempoMarker ( PublicEditor editor,
ArdourCanvas::Item parent,
std::string const &  color_name,
const std::string &  text,
Temporal::TempoPoint const &  ,
samplepos_t  sample,
uint32_t  curve_color 
)

◆ ~TempoMarker()

TempoMarker::~TempoMarker ( )

Member Function Documentation

◆ curve()

TempoCurve& TempoMarker::curve ( )

◆ point()

Temporal::Point const& TempoMarker::point ( ) const
virtual

Implements MetricMarker.

◆ reposition()

void TempoMarker::reposition ( )
virtual

Reimplemented from ArdourMarker.

◆ reset_tempo()

void TempoMarker::reset_tempo ( Temporal::TempoPoint const &  t)

◆ tempo()

Temporal::TempoPoint const& TempoMarker::tempo ( ) const
inline

Definition at line 205 of file marker.h.

◆ update()

void TempoMarker::update ( )
virtual

Implements MetricMarker.

Member Data Documentation

◆ _curve

TempoCurve* TempoMarker::_curve
private

Definition at line 212 of file marker.h.

◆ _tempo

Temporal::TempoPoint const* TempoMarker::_tempo
private

Definition at line 211 of file marker.h.


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