ardour
Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
StreamView Class Referenceabstract

#include <streamview.h>

Inheritance diagram for StreamView:
PBD::ScopedConnectionList AudioStreamView AutomationStreamView MidiStreamView

Public Types

enum  ColorTarget { RegionColor, StreamBaseColor }
 

Public Member Functions

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 ()
 
virtual void redisplay_track ()=0
 
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 ()
 

Public Attributes

sigc::signal< void, RegionView * > RegionViewAdded
 
sigc::signal< void > RegionViewRemoved
 
sigc::signal< void > ContentsHeightChanged
 

Protected Types

typedef std::list< RegionView * > RegionViewList
 

Protected Member Functions

 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 setup_rec_box ()=0
 
virtual void update_rec_box ()
 
virtual RegionViewadd_region_view_internal (boost::shared_ptr< ARDOUR::Region >, bool wait_for_waves, bool recording=false)=0
 
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 >)
 
virtual void color_handler ()=0
 
void setup_new_rec_layer_time (boost::shared_ptr< ARDOUR::Region >)
 

Protected Attributes

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
 

Private Member Functions

void update_coverage_frames ()
 

Detailed Description

Definition at line 61 of file streamview.h.

Member Typedef Documentation

typedef std::list<RegionView* > StreamView::RegionViewList
protected

Definition at line 155 of file streamview.h.

Member Enumeration Documentation

Enumerator
RegionColor 
StreamBaseColor 

Definition at line 84 of file streamview.h.

Constructor & Destructor Documentation

StreamView::~StreamView ( )
virtual

Definition at line 92 of file streamview.cc.

StreamView::StreamView ( RouteTimeAxisView tv,
ArdourCanvas::Container *  canvas_group = 0 
)
protected

Definition at line 57 of file streamview.cc.

Member Function Documentation

void StreamView::add_region_view ( boost::weak_ptr< ARDOUR::Region wr)

Definition at line 165 of file streamview.cc.

virtual RegionView* StreamView::add_region_view_internal ( boost::shared_ptr< ARDOUR::Region ,
bool  wait_for_waves,
bool  recording = false 
)
protectedpure virtual
void StreamView::apply_color ( uint32_t  color,
ColorTarget  t 
)

Definition at line 354 of file streamview.cc.

void StreamView::apply_color ( Gdk::Color const &  c,
ColorTarget  t 
)

Definition at line 348 of file streamview.cc.

void StreamView::attach ( )

Definition at line 100 of file streamview.cc.

ArdourCanvas::Container* StreamView::canvas_item ( )
inline

Definition at line 82 of file streamview.h.

void StreamView::check_record_layers ( boost::shared_ptr< ARDOUR::Region region,
ARDOUR::framepos_t  to 
)

Definition at line 688 of file streamview.cc.

double StreamView::child_height ( ) const
Returns
height of a child region view, depending on stacked / overlaid mode

Definition at line 613 of file streamview.cc.

virtual void StreamView::color_handler ( )
protectedpure virtual
void StreamView::create_rec_box ( framepos_t  frame_pos,
double  width 
)
protected

Definition at line 409 of file streamview.cc.

virtual RegionView* StreamView::create_region_view ( boost::shared_ptr< ARDOUR::Region ,
bool  ,
bool   
)
inlinevirtual

Reimplemented in MidiStreamView, and AudioStreamView.

Definition at line 114 of file streamview.h.

void StreamView::diskstream_changed ( )
protected

Definition at line 336 of file streamview.cc.

void StreamView::display_track ( boost::shared_ptr< ARDOUR::Track tr)
protected

Definition at line 216 of file streamview.cc.

RegionView * StreamView::find_view ( boost::shared_ptr< const ARDOUR::Region region)

Definition at line 481 of file streamview.cc.

void StreamView::foreach_regionview ( sigc::slot< void, RegionView * >  slot)

Definition at line 506 of file streamview.cc.

void StreamView::foreach_selected_regionview ( sigc::slot< void, RegionView * >  slot)

Definition at line 514 of file streamview.cc.

void StreamView::get_inverted_selectables ( Selection sel,
std::list< Selectable * > &  results 
)

Definition at line 602 of file streamview.cc.

uint32_t StreamView::get_region_color ( ) const
inline

Definition at line 89 of file streamview.h.

gdouble StreamView::get_samples_per_pixel ( ) const
inline

Definition at line 77 of file streamview.h.

void StreamView::get_selectables ( ARDOUR::framepos_t  start,
ARDOUR::framepos_t  end,
double  top,
double  bottom,
std::list< Selectable * > &  results,
bool  within = false 
)

Get selectable things within a given range.

Parameters
startStart time in session frames.
endEnd time in session frames.
topTop y range, in trackview coordinates (ie 0 is the top of the track view)
botBottom y range, in trackview coordinates (ie 0 is the top of the track view)
resultFilled in with selectable things.

Definition at line 551 of file streamview.cc.

LayerDisplay StreamView::layer_display ( ) const
inline

Definition at line 80 of file streamview.h.

void StreamView::layer_regions ( )
protected

Definition at line 224 of file streamview.cc.

ARDOUR::layer_t StreamView::layers ( ) const
inline

Definition at line 112 of file streamview.h.

uint32_t StreamView::num_selected_regionviews ( ) const

Definition at line 493 of file streamview.cc.

void StreamView::playlist_layered ( boost::weak_ptr< ARDOUR::Track wtr)
virtual

Definition at line 281 of file streamview.cc.

void StreamView::playlist_switched ( boost::weak_ptr< ARDOUR::Track wtr)
protected

Definition at line 304 of file streamview.cc.

void StreamView::rec_enable_changed ( )
protected

Definition at line 383 of file streamview.cc.

virtual void StreamView::redisplay_track ( )
pure virtual
void StreamView::region_layered ( RegionView rv)

Definition at line 374 of file streamview.cc.

void StreamView::remove_region_view ( boost::weak_ptr< ARDOUR::Region weak_r)
protectedvirtual

Definition at line 180 of file streamview.cc.

void StreamView::sess_rec_enable_changed ( )
protected

Definition at line 389 of file streamview.cc.

int StreamView::set_height ( double  h)
virtual

Definition at line 115 of file streamview.cc.

void StreamView::set_layer_display ( LayerDisplay  d)

Definition at line 667 of file streamview.cc.

int StreamView::set_position ( gdouble  x,
gdouble  y 
)

Definition at line 108 of file streamview.cc.

int StreamView::set_samples_per_pixel ( double  fpp)
virtual

Definition at line 135 of file streamview.cc.

void StreamView::set_selected_regionviews ( RegionSelection regions)

Definition at line 524 of file streamview.cc.

void StreamView::set_zoom_all ( )
void StreamView::setup_new_rec_layer_time ( boost::shared_ptr< ARDOUR::Region region)
protected

Definition at line 712 of file streamview.cc.

virtual void StreamView::setup_rec_box ( )
protectedpure virtual
RouteTimeAxisView& StreamView::trackview ( )
inline

Definition at line 66 of file streamview.h.

const RouteTimeAxisView& StreamView::trackview ( ) const
inline

Definition at line 67 of file streamview.h.

void StreamView::transport_changed ( )
protected

Definition at line 395 of file streamview.cc.

void StreamView::transport_looped ( )
protected

Definition at line 401 of file streamview.cc.

void StreamView::undisplay_track ( )
protectedvirtual

Definition at line 203 of file streamview.cc.

void StreamView::update_contents_height ( )
virtual

Reimplemented in MidiStreamView.

Definition at line 629 of file streamview.cc.

virtual void StreamView::update_contents_metrics ( boost::shared_ptr< ARDOUR::Region )
inlinevirtual

Reimplemented in MidiStreamView.

Definition at line 103 of file streamview.h.

void StreamView::update_coverage_frames ( )
private

Definition at line 680 of file streamview.cc.

void StreamView::update_rec_box ( )
protectedvirtual

Reimplemented in MidiStreamView.

Definition at line 445 of file streamview.cc.

Member Data Documentation

ArdourCanvas::Container* StreamView::_canvas_group
protected

Definition at line 152 of file streamview.h.

LayerDisplay StreamView::_layer_display
protected

Definition at line 173 of file streamview.h.

ARDOUR::layer_t StreamView::_layers
protected

Definition at line 172 of file streamview.h.

framepos_t StreamView::_new_rec_layer_time
protected

Definition at line 183 of file streamview.h.

double StreamView::_samples_per_pixel
protected

Definition at line 158 of file streamview.h.

RouteTimeAxisView& StreamView::_trackview
protected

Definition at line 151 of file streamview.h.

ArdourCanvas::Rectangle* StreamView::canvas_rect
protected

Definition at line 153 of file streamview.h.

sigc::signal<void> StreamView::ContentsHeightChanged

Emitted when the height of regions has changed

Definition at line 125 of file streamview.h.

double StreamView::height
protected

Definition at line 175 of file streamview.h.

framepos_t StreamView::last_rec_data_frame
protected

Definition at line 178 of file streamview.h.

PBD::ScopedConnectionList StreamView::playlist_connections
protected

Definition at line 169 of file streamview.h.

PBD::ScopedConnection StreamView::playlist_switched_connection
protected

Definition at line 170 of file streamview.h.

bool StreamView::rec_active
protected

Definition at line 164 of file streamview.h.

PBD::ScopedConnectionList StreamView::rec_data_ready_connections
protected

Definition at line 177 of file streamview.h.

std::vector<RecBoxInfo> StreamView::rec_rects
protected

Definition at line 161 of file streamview.h.

std::list< std::pair<boost::shared_ptr<ARDOUR::Region>,RegionView* > > StreamView::rec_regions
protected

Definition at line 162 of file streamview.h.

bool StreamView::rec_updating
protected

Definition at line 163 of file streamview.h.

uint32_t StreamView::region_color
protected

Contained region color.

Definition at line 166 of file streamview.h.

RegionViewList StreamView::region_views
protected

Definition at line 156 of file streamview.h.

sigc::signal<void, RegionView*> StreamView::RegionViewAdded

Definition at line 122 of file streamview.h.

sigc::signal<void> StreamView::RegionViewRemoved

Definition at line 123 of file streamview.h.

sigc::connection StreamView::screen_update_connection
protected

Definition at line 160 of file streamview.h.

uint32_t StreamView::stream_base_color
protected

Background color.

Definition at line 167 of file streamview.h.


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