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

#include <automation_streamview.h>

Inheritance diagram for AutomationStreamView:
StreamView PBD::ScopedConnectionList

Public Member Functions

 AutomationStreamView (AutomationTimeAxisView &tv)
 
 ~AutomationStreamView ()
 
void set_automation_state (ARDOUR::AutoState state)
 
ARDOUR::AutoState automation_state () const
 
void redisplay_track ()
 
double contents_height () const
 
bool has_automation () const
 
void set_interpolation (ARDOUR::AutomationList::InterpolationStyle)
 
ARDOUR::AutomationList::InterpolationStyle interpolation () const
 
void clear ()
 
void get_selectables (ARDOUR::framepos_t, ARDOUR::framepos_t, double, double, std::list< Selectable * > &, bool within=false)
 
void set_selected_points (PointSelection &)
 
std::list< boost::shared_ptr
< AutomationLine > > 
get_lines () const
 
bool paste (framepos_t pos, unsigned paste_count, float times, boost::shared_ptr< ARDOUR::AutomationList > list)
 
- Public Member Functions inherited from StreamView
virtual ~StreamView ()
 
RouteTimeAxisViewtrackview ()
 
const RouteTimeAxisViewtrackview () const
 
void attach ()
 
void set_zoom_all ()
 
int set_position (gdouble x, gdouble y)
 
virtual int set_height (double)
 
virtual int set_samples_per_pixel (double)
 
gdouble get_samples_per_pixel () const
 
void set_layer_display (LayerDisplay)
 
LayerDisplay layer_display () const
 
ArdourCanvas::Container * canvas_item ()
 
uint32_t get_region_color () const
 
void apply_color (uint32_t, ColorTarget t)
 
void apply_color (Gdk::Color const &, ColorTarget t)
 
uint32_t num_selected_regionviews () const
 
RegionViewfind_view (boost::shared_ptr< const ARDOUR::Region >)
 
void foreach_regionview (sigc::slot< void, RegionView * > slot)
 
void foreach_selected_regionview (sigc::slot< void, RegionView * > slot)
 
void set_selected_regionviews (RegionSelection &)
 
void get_selectables (ARDOUR::framepos_t, ARDOUR::framepos_t, double, double, std::list< Selectable * > &, bool within=false)
 
void get_inverted_selectables (Selection &, std::list< Selectable * > &results)
 
virtual void update_contents_metrics (boost::shared_ptr< ARDOUR::Region >)
 
void add_region_view (boost::weak_ptr< ARDOUR::Region >)
 
void region_layered (RegionView *)
 
virtual void update_contents_height ()
 
double child_height () const
 
ARDOUR::layer_t layers () const
 
virtual RegionViewcreate_region_view (boost::shared_ptr< ARDOUR::Region >, bool, bool)
 
void check_record_layers (boost::shared_ptr< ARDOUR::Region >, ARDOUR::framepos_t)
 
virtual void playlist_layered (boost::weak_ptr< ARDOUR::Track >)
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Private Member Functions

void setup_rec_box ()
 
RegionViewadd_region_view_internal (boost::shared_ptr< ARDOUR::Region >, bool wait_for_data, bool recording=false)
 
void display_region (AutomationRegionView *region_view)
 
void color_handler ()
 

Private Attributes

AutomationTimeAxisView_automation_view
 
ARDOUR::AutoState _pending_automation_state
 

Additional Inherited Members

- Public Types inherited from StreamView
enum  ColorTarget { RegionColor, StreamBaseColor }
 
- Public Attributes inherited from StreamView
sigc::signal< void, RegionView * > RegionViewAdded
 
sigc::signal< void > RegionViewRemoved
 
sigc::signal< void > ContentsHeightChanged
 
- Protected Types inherited from StreamView
typedef std::list< RegionView * > RegionViewList
 
- Protected Member Functions inherited from StreamView
 StreamView (RouteTimeAxisView &, ArdourCanvas::Container *canvas_group=0)
 
void transport_changed ()
 
void transport_looped ()
 
void rec_enable_changed ()
 
void sess_rec_enable_changed ()
 
void create_rec_box (framepos_t frame_pos, double width)
 
virtual void update_rec_box ()
 
virtual void remove_region_view (boost::weak_ptr< ARDOUR::Region >)
 
void display_track (boost::shared_ptr< ARDOUR::Track >)
 
virtual void undisplay_track ()
 
void diskstream_changed ()
 
void layer_regions ()
 
void playlist_switched (boost::weak_ptr< ARDOUR::Track >)
 
void setup_new_rec_layer_time (boost::shared_ptr< ARDOUR::Region >)
 
- Protected Attributes inherited from StreamView
RouteTimeAxisView_trackview
 
ArdourCanvas::Container * _canvas_group
 
ArdourCanvas::Rectangle * canvas_rect
 
RegionViewList region_views
 
double _samples_per_pixel
 
sigc::connection screen_update_connection
 
std::vector< RecBoxInforec_rects
 
std::list< std::pair
< boost::shared_ptr
< ARDOUR::Region >, RegionView * > > 
rec_regions
 
bool rec_updating
 
bool rec_active
 
uint32_t region_color
 Contained region color. More...
 
uint32_t stream_base_color
 Background color. More...
 
PBD::ScopedConnectionList playlist_connections
 
PBD::ScopedConnection playlist_switched_connection
 
ARDOUR::layer_t _layers
 
LayerDisplay _layer_display
 
double height
 
PBD::ScopedConnectionList rec_data_ready_connections
 
framepos_t last_rec_data_frame
 
framepos_t _new_rec_layer_time
 

Detailed Description

Definition at line 41 of file automation_streamview.h.

Constructor & Destructor Documentation

AutomationStreamView::AutomationStreamView ( AutomationTimeAxisView tv)

Definition at line 53 of file automation_streamview.cc.

AutomationStreamView::~AutomationStreamView ( )

Definition at line 67 of file automation_streamview.cc.

Member Function Documentation

RegionView * AutomationStreamView::add_region_view_internal ( boost::shared_ptr< ARDOUR::Region region,
bool  wait_for_data,
bool  recording = false 
)
privatevirtual

Implements StreamView.

Definition at line 73 of file automation_streamview.cc.

AutoState AutomationStreamView::automation_state ( ) const

Definition at line 213 of file automation_streamview.cc.

void AutomationStreamView::clear ( )

Clear all automation displayed in this view

Definition at line 270 of file automation_streamview.cc.

void AutomationStreamView::color_handler ( )
privatevirtual

Implements StreamView.

Definition at line 203 of file automation_streamview.cc.

double AutomationStreamView::contents_height ( ) const
inline

Definition at line 52 of file automation_streamview.h.

void AutomationStreamView::display_region ( AutomationRegionView region_view)
private

Definition at line 153 of file automation_streamview.cc.

list< boost::shared_ptr< AutomationLine > > AutomationStreamView::get_lines ( ) const

Definition at line 308 of file automation_streamview.cc.

void AutomationStreamView::get_selectables ( ARDOUR::framepos_t  start,
ARDOUR::framepos_t  end,
double  botfrac,
double  topfrac,
std::list< Selectable * > &  results,
bool  within = false 
)
Parameters
startStart position in session frames.
endEnd position in session frames.
botBottom position expressed as a fraction of track height where 0 is the bottom of the track.
topTop position expressed as a fraction of track height where 0 is the bottom of the track. NOTE: this y system is different to that for the StreamView method that this overrides, which is a little confusing.

Definition at line 287 of file automation_streamview.cc.

bool AutomationStreamView::has_automation ( ) const

Definition at line 228 of file automation_streamview.cc.

AutomationList::InterpolationStyle AutomationStreamView::interpolation ( ) const

Definition at line 255 of file automation_streamview.cc.

bool AutomationStreamView::paste ( framepos_t  pos,
unsigned  paste_count,
float  times,
boost::shared_ptr< ARDOUR::AutomationList list 
)

Definition at line 323 of file automation_streamview.cc.

void AutomationStreamView::redisplay_track ( )
virtual

Implements StreamView.

Definition at line 177 of file automation_streamview.cc.

void AutomationStreamView::set_automation_state ( ARDOUR::AutoState  state)

Definition at line 159 of file automation_streamview.cc.

void AutomationStreamView::set_interpolation ( ARDOUR::AutomationList::InterpolationStyle  )

Our parent AutomationTimeAxisView calls this when the user requests a particular InterpolationStyle; tell the AutomationLists in our regions.

Definition at line 245 of file automation_streamview.cc.

void AutomationStreamView::set_selected_points ( PointSelection ps)

Definition at line 298 of file automation_streamview.cc.

void AutomationStreamView::setup_rec_box ( )
privatevirtual

Implements StreamView.

Definition at line 198 of file automation_streamview.cc.

Member Data Documentation

AutomationTimeAxisView& AutomationStreamView::_automation_view
private

Definition at line 81 of file automation_streamview.h.

ARDOUR::AutoState AutomationStreamView::_pending_automation_state
private

automation state that should be applied when this view gets its first RegionView

Definition at line 83 of file automation_streamview.h.


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