ardour
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ARDOUR::Pannable Class Reference

#include <pannable.h>

Inheritance diagram for ARDOUR::Pannable:
PBD::Stateful ARDOUR::Automatable ARDOUR::SessionHandleRef Evoral::ControlSet PBD::ScopedConnectionList

Public Member Functions

 Pannable (Session &s)
 
 ~Pannable ()
 
boost::shared_ptr< Pannerpanner () const
 
void set_panner (boost::shared_ptr< Panner >)
 
Sessionsession ()
 
void set_automation_state (AutoState)
 
AutoState automation_state () const
 
void set_automation_style (AutoStyle m)
 
AutoStyle automation_style () const
 
bool automation_playback () const
 
bool automation_write () const
 
std::string value_as_string (boost::shared_ptr< AutomationControl >) const
 
void start_touch (double when)
 
void stop_touch (bool mark, double when)
 
bool touching () const
 
bool writing () const
 
bool touch_enabled () const
 
XMLNodeget_state ()
 
XMLNodestate (bool full_state)
 
int set_state (const XMLNode &, int version)
 
bool has_state () 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 ARDOUR::Automatable
 Automatable (Session &)
 
 Automatable (const Automatable &other)
 
virtual ~Automatable ()
 
boost::shared_ptr
< Evoral::Control
control_factory (const Evoral::Parameter &id)
 
boost::shared_ptr
< AutomationControl
automation_control (const Evoral::Parameter &id, bool create_if_missing=false)
 
boost::shared_ptr< const
AutomationControl
automation_control (const Evoral::Parameter &id) const
 
virtual void add_control (boost::shared_ptr< Evoral::Control >)
 
void clear_controls ()
 
virtual void transport_located (framepos_t now)
 
virtual void transport_stopped (framepos_t now)
 
virtual std::string describe_parameter (Evoral::Parameter param)
 
AutoState get_parameter_automation_state (Evoral::Parameter param)
 
virtual void set_parameter_automation_state (Evoral::Parameter param, AutoState)
 
AutoStyle get_parameter_automation_style (Evoral::Parameter param)
 
void set_parameter_automation_style (Evoral::Parameter param, AutoStyle)
 
void protect_automation ()
 
const std::set
< Evoral::Parameter > & 
what_can_be_automated () const
 
void what_has_existing_automation (std::set< Evoral::Parameter > &) const
 
int set_automation_xml_state (const XMLNode &, Evoral::Parameter default_param)
 
XMLNodeget_automation_xml_state ()
 
- Public Member Functions inherited from Evoral::ControlSet
 ControlSet ()
 
 ControlSet (const ControlSet &)
 
virtual ~ControlSet ()
 
boost::shared_ptr< Controlcontrol (const Parameter &id, bool create_if_missing=false)
 
boost::shared_ptr< const Controlcontrol (const Parameter &id) const
 
Controlscontrols ()
 
const Controlscontrols () const
 
bool find_next_event (double start, double end, ControlEvent &ev) const
 
virtual bool controls_empty () const
 
void what_has_data (std::set< Parameter > &) const
 
Glib::Threads::Mutex & control_lock () const
 
- Public Member Functions inherited from ARDOUR::SessionHandleRef
 SessionHandleRef (ARDOUR::Session &s)
 
virtual ~SessionHandleRef ()
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Public Attributes

boost::shared_ptr
< AutomationControl
pan_azimuth_control
 
boost::shared_ptr
< AutomationControl
pan_elevation_control
 
boost::shared_ptr
< AutomationControl
pan_width_control
 
boost::shared_ptr
< AutomationControl
pan_frontback_control
 
boost::shared_ptr
< AutomationControl
pan_lfe_control
 
PBD::Signal1< void, AutoStateautomation_state_changed
 
PBD::Signal0< void > automation_style_changed
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal1< void, const
PropertyChange & > 
PropertyChanged
 
- Public Attributes inherited from ARDOUR::Automatable
PBD::Signal0< void > AutomationStateChanged
 

Protected Member Functions

void control_auto_state_changed (AutoState)
 
- 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 Member Functions inherited from ARDOUR::Automatable
void can_automate (Evoral::Parameter)
 
virtual void automation_list_automation_state_changed (Evoral::Parameter, AutoState)
 
int load_automation (const std::string &path)
 
int old_set_automation_state (const XMLNode &)
 
- Protected Member Functions inherited from Evoral::ControlSet
virtual void control_list_marked_dirty ()
 
virtual void control_list_interpolation_changed (Parameter, ControlList::InterpolationStyle)
 
- Protected Member Functions inherited from ARDOUR::SessionHandleRef
virtual void session_going_away ()
 
virtual void insanity_check ()
 

Protected Attributes

boost::weak_ptr< Panner_panner
 
AutoState _auto_state
 
AutoStyle _auto_style
 
gint _touching
 
bool _has_state
 
uint32_t _responding_to_control_auto_state_change
 
- 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
 
- Protected Attributes inherited from ARDOUR::Automatable
Session_a_session
 
std::set< Evoral::Parameter_can_automate_list
 
framepos_t _last_automation_snapshot
 
- Protected Attributes inherited from Evoral::ControlSet
Glib::Threads::Mutex _control_lock
 
Controls _controls
 
PBD::ScopedConnectionList _list_connections
 
- Protected Attributes inherited from ARDOUR::SessionHandleRef
ARDOUR::Session_session
 

Private Member Functions

void value_changed ()
 

Additional Inherited Members

- Public Types inherited from Evoral::ControlSet
typedef std::map< Parameter,
boost::shared_ptr< Control > > 
Controls
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version = 0
 
static int loading_state_version = 0
 
- Static Public Attributes inherited from ARDOUR::Automatable
static const std::string xml_node_name = X_("Automation")
 

Detailed Description

Definition at line 39 of file pannable.h.

Constructor & Destructor Documentation

Pannable::Pannable ( Session s)

Definition at line 39 of file pannable.cc.

Pannable::~Pannable ( )

Definition at line 75 of file pannable.cc.

Member Function Documentation

bool ARDOUR::Pannable::automation_playback ( ) const
inline

Definition at line 64 of file pannable.h.

AutoState ARDOUR::Pannable::automation_state ( ) const
inline

Definition at line 57 of file pannable.h.

AutoStyle ARDOUR::Pannable::automation_style ( ) const
inline

Definition at line 61 of file pannable.h.

bool ARDOUR::Pannable::automation_write ( ) const
inline

Definition at line 67 of file pannable.h.

void Pannable::control_auto_state_changed ( AutoState  new_state)
protected

Definition at line 81 of file pannable.cc.

XMLNode & Pannable::get_state ( void  )
virtual

Implements PBD::Stateful.

Definition at line 182 of file pannable.cc.

bool ARDOUR::Pannable::has_state ( ) const
inline

Definition at line 83 of file pannable.h.

boost::shared_ptr<Panner> ARDOUR::Pannable::panner ( ) const
inline

Definition at line 51 of file pannable.h.

Session& ARDOUR::Pannable::session ( )
inline

Definition at line 54 of file pannable.h.

void Pannable::set_automation_state ( AutoState  state)

Definition at line 114 of file pannable.cc.

void Pannable::set_automation_style ( AutoStyle  m)

Definition at line 134 of file pannable.cc.

void Pannable::set_panner ( boost::shared_ptr< Panner p)

Definition at line 102 of file pannable.cc.

int Pannable::set_state ( const XMLNode root,
int  version 
)
virtual

Implements PBD::Stateful.

Definition at line 204 of file pannable.cc.

void Pannable::start_touch ( double  when)

Definition at line 154 of file pannable.cc.

XMLNode & Pannable::state ( bool  full_state)

Definition at line 188 of file pannable.cc.

void Pannable::stop_touch ( bool  mark,
double  when 
)

Definition at line 168 of file pannable.cc.

bool ARDOUR::Pannable::touch_enabled ( ) const
inline

Definition at line 77 of file pannable.h.

bool ARDOUR::Pannable::touching ( ) const
inline

Definition at line 75 of file pannable.h.

string Pannable::value_as_string ( boost::shared_ptr< AutomationControl ac) const
virtual

Reimplemented from ARDOUR::Automatable.

Definition at line 277 of file pannable.cc.

void Pannable::value_changed ( )
private

Definition at line 108 of file pannable.cc.

bool ARDOUR::Pannable::writing ( ) const
inline

Definition at line 76 of file pannable.h.

Member Data Documentation

AutoState ARDOUR::Pannable::_auto_state
protected

Definition at line 87 of file pannable.h.

AutoStyle ARDOUR::Pannable::_auto_style
protected

Definition at line 88 of file pannable.h.

bool ARDOUR::Pannable::_has_state
protected

Definition at line 90 of file pannable.h.

boost::weak_ptr<Panner> ARDOUR::Pannable::_panner
protected

Definition at line 86 of file pannable.h.

uint32_t ARDOUR::Pannable::_responding_to_control_auto_state_change
protected

Definition at line 91 of file pannable.h.

gint ARDOUR::Pannable::_touching
protected

Definition at line 89 of file pannable.h.

PBD::Signal1<void, AutoState> ARDOUR::Pannable::automation_state_changed

Definition at line 58 of file pannable.h.

PBD::Signal0<void> ARDOUR::Pannable::automation_style_changed

Definition at line 62 of file pannable.h.

boost::shared_ptr<AutomationControl> ARDOUR::Pannable::pan_azimuth_control

Definition at line 45 of file pannable.h.

boost::shared_ptr<AutomationControl> ARDOUR::Pannable::pan_elevation_control

Definition at line 46 of file pannable.h.

boost::shared_ptr<AutomationControl> ARDOUR::Pannable::pan_frontback_control

Definition at line 48 of file pannable.h.

boost::shared_ptr<AutomationControl> ARDOUR::Pannable::pan_lfe_control

Definition at line 49 of file pannable.h.

boost::shared_ptr<AutomationControl> ARDOUR::Pannable::pan_width_control

Definition at line 47 of file pannable.h.


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