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

#include <region_gain_line.h>

Inheritance diagram for AudioRegionGainLine:
AutomationLine PBD::StatefulDestructible PBD::Stateful PBD::Destructible

Public Member Functions

 AudioRegionGainLine (const std::string &name, AudioRegionView &, ArdourCanvas::Container &parent, boost::shared_ptr< ARDOUR::AutomationList >)
 
void start_drag_single (ControlPoint *, double, float)
 
void end_drag (bool with_push, uint32_t final_index)
 
void remove_point (ControlPoint &)
 
- Public Member Functions inherited from AutomationLine
 AutomationLine (const std::string &name, TimeAxisView &tv, ArdourCanvas::Item &parent, boost::shared_ptr< ARDOUR::AutomationList > al, const ARDOUR::ParameterDescriptor &desc, Evoral::TimeConverter< double, ARDOUR::framepos_t > *converter=0)
 
virtual ~AutomationLine ()
 
void queue_reset ()
 
void reset ()
 
void clear ()
 
void set_selected_points (PointSelection const &)
 
void get_selectables (ARDOUR::framepos_t, ARDOUR::framepos_t, double, double, std::list< Selectable * > &)
 
void get_inverted_selectables (Selection &, std::list< Selectable * > &results)
 
bool control_points_adjacent (double xval, uint32_t &before, uint32_t &after)
 
virtual void start_drag_line (uint32_t, uint32_t, float)
 
virtual void start_drag_multiple (std::list< ControlPoint * >, float, XMLNode *)
 
virtual std::pair< double, float > drag_motion (double, float, bool, bool with_push, uint32_t &final_index)
 
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 (uint32_t)
 
uint32_t get_line_color () const
 
void set_visibility (VisibleAspects)
 
void add_visibility (VisibleAspects)
 
void remove_visibility (VisibleAspects)
 
void hide ()
 
void set_height (guint32)
 
void set_uses_gain_mapping (bool yn)
 
bool get_uses_gain_mapping () const
 
ArdourCanvas::Container & canvas_group () const
 
ArdourCanvas::Item & parent_group () const
 
ArdourCanvas::Item & grab_item () const
 
virtual std::string get_verbose_cursor_string (double) const
 
std::string get_verbose_cursor_relative_string (double, double) const
 
std::string fraction_to_string (double) const
 
std::string fraction_to_relative_string (double, double) const
 
double string_to_fraction (std::string const &) const
 
void view_to_model_coord (double &x, double &y) const
 
void view_to_model_coord_y (double &) const
 
void model_to_view_coord (double &x, double &y) const
 
void model_to_view_coord_y (double &) const
 
void set_list (boost::shared_ptr< ARDOUR::AutomationList > list)
 
boost::shared_ptr
< ARDOUR::AutomationList
the_list () const
 
void track_entered ()
 
void track_exited ()
 
bool is_last_point (ControlPoint &)
 
bool is_first_point (ControlPoint &)
 
XMLNodeget_state (void)
 
int set_state (const XMLNode &, int version)
 
void set_colors ()
 
void modify_point_y (ControlPoint &, double)
 
virtual MementoCommandBinder
< ARDOUR::AutomationList > * 
memento_command_binder ()
 
const Evoral::TimeConverter
< double, ARDOUR::framepos_t > & 
time_converter () const
 
std::pair< ARDOUR::framepos_t,
ARDOUR::framepos_t
get_point_x_range () const
 
void set_maximum_time (ARDOUR::framecnt_t)
 
ARDOUR::framecnt_t maximum_time () const
 
void set_offset (ARDOUR::framecnt_t)
 
void set_width (ARDOUR::framecnt_t)
 
framepos_t session_position (ARDOUR::AutomationList::const_iterator) const
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_changes (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 (Command *) const
 
virtual void rdiff (std::vector< 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
 Destructible ()
 
virtual ~Destructible ()
 
void drop_references ()
 

Private Member Functions

void region_changed (const PBD::PropertyChange &what_changed)
 

Private Attributes

PBD::ScopedConnection _region_changed_connection
 
AudioRegionViewrv
 

Additional Inherited Members

- Public Types inherited from AutomationLine
enum  VisibleAspects { Line = 0x1, ControlPoints = 0x2, SelectedControlPoints = 0x4 }
 
- Public Attributes inherited from AutomationLine
TimeAxisViewtrackview
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal1< void, const
PropertyChange & > 
PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal0< void > Destroyed
 
PBD::Signal0< void > DropReferences
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version = 0
 
static int loading_state_version = 0
 
- Protected Types inherited from AutomationLine
typedef boost::shared_ptr
< ContiguousControlPoints
CCP
 
- 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 ()
 
virtual bool event_handler (GdkEvent *)
 
- 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 &)
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
- Protected Attributes inherited from AutomationLine
std::string _name
 
guint32 _height
 
uint32_t _line_color
 
boost::shared_ptr
< ARDOUR::AutomationList
alist
 
Evoral::TimeConverter< double,
ARDOUR::framepos_t > * 
_time_converter
 
bool _our_time_converter
 
VisibleAspects _visible
 
bool _uses_gain_mapping
 
bool terminal_points_can_slide
 
bool update_pending
 
bool have_timeout
 
bool no_draw
 
bool _is_boolean
 
bool did_push
 
ArdourCanvas::Item & _parent_group
 
ArdourCanvas::Container * group
 
ArdourCanvas::PolyLine * line
 
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

Definition at line 35 of file region_gain_line.h.

Constructor & Destructor Documentation

AudioRegionGainLine::AudioRegionGainLine ( const std::string &  name,
AudioRegionView ,
ArdourCanvas::Container &  parent,
boost::shared_ptr< ARDOUR::AutomationList  
)

Definition at line 41 of file region_gain_line.cc.

Member Function Documentation

void AudioRegionGainLine::end_drag ( bool  with_push,
uint32_t  final_index 
)
virtual

Should be called to indicate the end of a drag

Reimplemented from AutomationLine.

Definition at line 92 of file region_gain_line.cc.

void AudioRegionGainLine::region_changed ( const PBD::PropertyChange what_changed)
private

Definition at line 103 of file region_gain_line.cc.

void AudioRegionGainLine::remove_point ( ControlPoint cp)
virtual

Reimplemented from AutomationLine.

Definition at line 73 of file region_gain_line.cc.

void AudioRegionGainLine::start_drag_single ( ControlPoint cp,
double  x,
float  fraction 
)
virtual

Start dragging a single point, possibly adding others if the supplied point is selected and there are other selected points.

Parameters
cpPoint to drag.
xInitial x position (units).
fractionInitial y position (as a fraction of the track height, where 0 is the bottom and 1 the top)

Reimplemented from AutomationLine.

Definition at line 59 of file region_gain_line.cc.

Member Data Documentation

PBD::ScopedConnection AudioRegionGainLine::_region_changed_connection
private

Definition at line 47 of file region_gain_line.h.

AudioRegionView& AudioRegionGainLine::rv
private

Definition at line 49 of file region_gain_line.h.


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