Ardour  9.0-pre0-350-gf17a656217
MidiAutomationLine Class Reference

#include <midi_automation_line.h>

Inheritance diagram for MidiAutomationLine:
[legend]

Public Member Functions

 MidiAutomationLine (const std::string &, TimeAxisView &, ArdourCanvas::Item &, std::shared_ptr< ARDOUR::AutomationList >, std::shared_ptr< ARDOUR::MidiRegion >, Evoral::Parameter)
 
MementoCommandBinder< ARDOUR::AutomationList > * memento_command_binder ()
 
virtual std::string get_verbose_cursor_string (double) const
 
Temporal::timepos_t get_origin () const
 
- Public Member Functions inherited from EditorAutomationLine
 EditorAutomationLine (const std::string &name, TimeAxisView &tv, ArdourCanvas::Item &parent, std::shared_ptr< ARDOUR::AutomationList > al, const ARDOUR::ParameterDescriptor &desc)
 
virtual ~EditorAutomationLine ()
 
- Public Member Functions inherited from AutomationLine
 AutomationLine (const std::string &name, EditingContext &ec, ArdourCanvas::Item &parent, ArdourCanvas::Rectangle *drag_base, std::shared_ptr< ARDOUR::AutomationList > al, const ARDOUR::ParameterDescriptor &desc)
 
virtual ~AutomationLine ()
 
ArdourCanvas::Rectangledrag_base () const
 
void queue_reset ()
 
void reset ()
 
void clear ()
 
void set_fill (bool f)
 
void set_selected_points (PointSelection const &)
 
void _get_selectables (Temporal::timepos_t const &, Temporal::timepos_t const &, double, double, std::list< Selectable * > &, bool within)
 
void get_inverted_selectables (Selection &, std::list< Selectable * > &results)
 
virtual void remove_point (ControlPoint &)
 
bool control_points_adjacent (double xval, uint32_t &before, uint32_t &after)
 
virtual void start_drag_single (ControlPoint *, double, float)
 
virtual void start_drag_line (uint32_t, uint32_t, float)
 
virtual void start_drag_multiple (std::list< ControlPoint * >, float, XMLNode *)
 
virtual std::pair< float, float > drag_motion (Temporal::timecnt_t const &, float, bool, bool with_push, uint32_t &final_index)
 
virtual void end_drag (bool with_push, uint32_t final_index)
 
virtual void end_draw_merge ()
 
ControlPointnth (uint32_t)
 
ControlPoint const * nth (uint32_t) const
 
uint32_t npoints () const
 
std::string name () const
 
bool visible () const
 
guint32 height () const
 
void set_line_color (std::string color, std::string mod="")
 
uint32_t get_line_color () const
 
void set_visibility (VisibleAspects)
 
void add_visibility (VisibleAspects)
 
void remove_visibility (VisibleAspects)
 
void hide ()
 
void set_height (guint32)
 
bool get_uses_gain_mapping () const
 
void tempo_map_changed ()
 
ArdourCanvas::Containercanvas_group () const
 
ArdourCanvas::Itemparent_group () const
 
ArdourCanvas::Itemgrab_item () const
 
std::string get_verbose_cursor_relative_string (double, double) const
 
std::string fraction_to_string (double) const
 
std::string delta_to_string (double) const
 
double string_to_fraction (std::string const &) const
 
void view_to_model_coord_y (double &) const
 
double model_to_view_coord_y (double) const
 
Temporal::timecnt_t model_to_view_coord_x (Temporal::timepos_t const &) const
 
double compute_delta (double from, double to) const
 
void apply_delta (double &val, double delta) const
 
void set_list (std::shared_ptr< ARDOUR::AutomationList > list)
 
std::shared_ptr< ARDOUR::AutomationListthe_list () const
 
void track_entered ()
 
void track_exited ()
 
bool is_last_point (ControlPoint &)
 
bool is_first_point (ControlPoint &)
 
XMLNodeget_state () const
 
int set_state (const XMLNode &, int version)
 
void set_colors ()
 
void modify_points_y (std::vector< ControlPoint * > const &, double)
 
std::pair< Temporal::timepos_t, Temporal::timepos_tget_point_x_range () const
 
void set_maximum_time (Temporal::timepos_t const &)
 
Temporal::timepos_t maximum_time () const
 
void set_offset (Temporal::timepos_t const &)
 
Temporal::timepos_t offset ()
 
void set_width (Temporal::timecnt_t const &)
 
Temporal::timepos_t session_position (Temporal::timepos_t const &) const
 
void dump (std::ostream &) const
 
double dt_to_dx (Temporal::timepos_t const &, Temporal::timecnt_t const &)
 
ARDOUR::ParameterDescriptor const & param () const
 
EditingContextediting_context () const
 
void add (std::shared_ptr< ARDOUR::AutomationControl >, GdkEvent *, Temporal::timepos_t const &, double y, bool with_guard_points)
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_change (PropertyBase const &)
 
PropertyChange apply_changes (PropertyList const &)
 
const OwnedPropertyListproperties () const
 
void add_property (PropertyBase &s)
 
void add_extra_xml (XMLNode &)
 
XMLNodeextra_xml (const std::string &str, bool add_if_missing=false)
 
void save_extra_xml (const XMLNode &)
 
const PBD::IDid () const
 
bool set_id (const XMLNode &)
 
void set_id (const std::string &)
 
void reset_id ()
 
void clear_changes ()
 
virtual void clear_owned_changes ()
 
PropertyListget_changes_as_properties (PBD::Command *) const
 
virtual void rdiff (std::vector< PBD::Command * > &) const
 
bool changed () const
 
virtual PropertyListproperty_factory (const XMLNode &) const
 
virtual void suspend_property_changes ()
 
virtual void resume_property_changes ()
 
bool property_changes_suspended () const
 
- Public Member Functions inherited from PBD::Destructible
virtual ~Destructible ()
 
virtual void drop_references ()
 
- Public Member Functions inherited from SelectableOwner
 SelectableOwner ()
 
virtual ~SelectableOwner ()
 
void get_selectables (Temporal::timepos_t const &start, Temporal::timepos_t const &end, double x, double y, std::list< Selectable * > &sl, bool within=false)
 

Private Attributes

std::shared_ptr< ARDOUR::MidiRegion_region
 
Evoral::Parameter _parameter
 

Additional Inherited Members

- Public Types inherited from AutomationLine
enum  VisibleAspects { Line = 0x1 , ControlPoints = 0x2 , SelectedControlPoints = 0x4 }
 
- Public Attributes inherited from EditorAutomationLine
TimeAxisViewtrackview
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal< void(const PropertyChange &)> PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal< void()> Destroyed
 
PBD::Signal< void()> DropReferences
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 
- Protected Types inherited from AutomationLine
typedef std::shared_ptr< ContiguousControlPointsCCP
 
- Protected Member Functions inherited from EditorAutomationLine
virtual bool event_handler (GdkEvent *)
 
- Protected Member Functions inherited from AutomationLine
bool sync_model_with_view_point (ControlPoint &)
 
bool sync_model_with_view_points (std::list< ControlPoint * >)
 
void start_drag_common (double, float)
 
void reset_callback (const Evoral::ControlList &)
 
void list_changed ()
 
- Protected Member Functions inherited from PBD::Stateful
void add_instant_xml (XMLNode &, const std::string &directory_path)
 
XMLNodeinstant_xml (const std::string &str, const std::string &directory_path)
 
void add_properties (XMLNode &) const
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
bool regenerate_xml_or_string_ids () const
 
- Protected Attributes inherited from AutomationLine
std::string _name
 
guint32 _height
 
std::string _line_color
 
std::string _line_color_mod
 
uint32_t _view_index_offset
 
std::shared_ptr< ARDOUR::AutomationListalist
 
VisibleAspects _visible
 
bool terminal_points_can_slide
 
bool update_pending
 
bool have_reset_timeout
 
bool no_draw
 
bool _is_boolean
 
bool did_push
 
EditingContext_editing_context
 
ArdourCanvas::Item_parent_group
 
ArdourCanvas::Rectangle_drag_base
 
ArdourCanvas::Containergroup
 
ArdourCanvas::PolyLineline
 
ArdourCanvas::Points line_points
 
std::vector< ControlPoint * > control_points
 
std::vector< CCPcontiguous_points
 
- Protected Attributes inherited from PBD::Stateful
XMLNode_extra_xml
 
XMLNode_instant_xml
 
PBD::PropertyChange _pending_changed
 
Glib::Threads::Mutex _lock
 
std::string _xml_node_name
 name of node to use for this object in XML More...
 
OwnedPropertyList_properties
 

Detailed Description

Stub class so that lines for MIDI AutomationRegionViews can use the correct MementoCommandBinder.

Definition at line 30 of file midi_automation_line.h.

Constructor & Destructor Documentation

◆ MidiAutomationLine()

MidiAutomationLine::MidiAutomationLine ( const std::string &  ,
TimeAxisView ,
ArdourCanvas::Item ,
std::shared_ptr< ARDOUR::AutomationList ,
std::shared_ptr< ARDOUR::MidiRegion ,
Evoral::Parameter   
)

Member Function Documentation

◆ get_origin()

Temporal::timepos_t MidiAutomationLine::get_origin ( ) const
virtual

Reimplemented from AutomationLine.

◆ get_verbose_cursor_string()

virtual std::string MidiAutomationLine::get_verbose_cursor_string ( double  ) const
virtual

Reimplemented from AutomationLine.

◆ memento_command_binder()

MementoCommandBinder<ARDOUR::AutomationList>* MidiAutomationLine::memento_command_binder ( )
virtual

Reimplemented from AutomationLine.

Member Data Documentation

◆ _parameter

Evoral::Parameter MidiAutomationLine::_parameter
private

Definition at line 45 of file midi_automation_line.h.

◆ _region

std::shared_ptr<ARDOUR::MidiRegion> MidiAutomationLine::_region
private

Definition at line 44 of file midi_automation_line.h.


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