Ardour  9.0-pre0-582-g084a23a80d
StreamView Class Referenceabstract

#include <streamview.h>

Inheritance diagram for StreamView:
[legend]

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
 
virtual void set_layer_display (LayerDisplay)
 
virtual bool can_change_layer_display () const
 
LayerDisplay layer_display () const
 
virtual ArdourCanvas::Containerregion_canvas () const
 
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 (std::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 (Temporal::timepos_t const &, Temporal::timepos_t const &, double, double, std::list< Selectable * > &, bool within)
 
void get_inverted_selectables (Selection &, std::list< Selectable * > &results)
 
void get_regionviews_at_or_after (Temporal::timepos_t const &, RegionSelection &)
 
virtual void update_contents_metrics (std::shared_ptr< ARDOUR::Region >)
 
void add_region_view (std::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 (std::shared_ptr< ARDOUR::Region >, bool, bool)
 
void check_record_layers (std::shared_ptr< ARDOUR::Region >, ARDOUR::samplepos_t)
 
virtual void playlist_layered (std::weak_ptr< ARDOUR::Track >)
 
void update_coverage_frame ()
 
virtual void parameter_changed (std::string const &)
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
 ScopedConnectionList (const ScopedConnectionList &)=delete
 
ScopedConnectionListoperator= (const ScopedConnectionList &)=delete
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 
- Public Member Functions inherited from ViewBackground
 ViewBackground ()
 
virtual ~ViewBackground ()
 
virtual double height () const
 
virtual double width () const
 
virtual double contents_height () const
 
virtual double y_position () const
 
- 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)
 

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 (samplepos_t sample_pos, double width)
 
void cleanup_rec_box ()
 
virtual void setup_rec_box ()=0
 
virtual void update_rec_box ()
 
virtual RegionViewadd_region_view_internal (std::shared_ptr< ARDOUR::Region >, bool wait_for_waves, bool recording=false)=0
 
virtual void remove_region_view (std::weak_ptr< ARDOUR::Region >)
 
void display_track (std::shared_ptr< ARDOUR::Track >)
 
virtual void undisplay_track ()
 
void layer_regions ()
 
void playlist_switched (std::weak_ptr< ARDOUR::Track >)
 
virtual void color_handler ()=0
 
void setup_new_rec_layer_time (std::shared_ptr< ARDOUR::Region >)
 

Protected Attributes

RouteTimeAxisView_trackview
 
ArdourCanvas::Container_canvas_group
 
ArdourCanvas::Rectanglecanvas_rect
 
RegionViewList region_views
 
double _samples_per_pixel
 
sigc::connection screen_update_connection
 
std::vector< RecBoxInforec_rects
 
std::list< std::pair< std::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
 
samplepos_t last_rec_data_sample
 
samplepos_t _new_rec_layer_time
 

Detailed Description

Definition at line 68 of file streamview.h.

Member Typedef Documentation

◆ RegionViewList

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

Definition at line 168 of file streamview.h.

Member Enumeration Documentation

◆ ColorTarget

Enumerator
RegionColor 
StreamBaseColor 

Definition at line 92 of file streamview.h.

Constructor & Destructor Documentation

◆ ~StreamView()

virtual StreamView::~StreamView ( )
virtual

◆ StreamView()

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

Member Function Documentation

◆ _get_selectables()

void StreamView::_get_selectables ( Temporal::timepos_t const &  ,
Temporal::timepos_t const &  ,
double  ,
double  ,
std::list< Selectable * > &  ,
bool  within 
)
virtual

Implements SelectableOwner.

◆ add_region_view()

void StreamView::add_region_view ( std::weak_ptr< ARDOUR::Region )

◆ add_region_view_internal()

virtual RegionView* StreamView::add_region_view_internal ( std::shared_ptr< ARDOUR::Region ,
bool  wait_for_waves,
bool  recording = false 
)
protectedpure virtual

◆ apply_color() [1/2]

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

◆ apply_color() [2/2]

void StreamView::apply_color ( uint32_t  ,
ColorTarget  t 
)

◆ attach()

void StreamView::attach ( )

◆ can_change_layer_display()

virtual bool StreamView::can_change_layer_display ( ) const
inlinevirtual

Definition at line 87 of file streamview.h.

◆ check_record_layers()

void StreamView::check_record_layers ( std::shared_ptr< ARDOUR::Region ,
ARDOUR::samplepos_t   
)

◆ child_height()

double StreamView::child_height ( ) const

◆ cleanup_rec_box()

void StreamView::cleanup_rec_box ( )
protected

◆ color_handler()

virtual void StreamView::color_handler ( )
protectedpure virtual

Reimplemented from ViewBackground.

Implemented in MidiStreamView, AutomationStreamView, and AudioStreamView.

◆ create_rec_box()

void StreamView::create_rec_box ( samplepos_t  sample_pos,
double  width 
)
protected

◆ create_region_view()

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

Reimplemented in MidiStreamView, and AudioStreamView.

Definition at line 123 of file streamview.h.

◆ display_track()

void StreamView::display_track ( std::shared_ptr< ARDOUR::Track )
protected

◆ find_view()

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

◆ foreach_regionview()

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

◆ foreach_selected_regionview()

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

◆ get_inverted_selectables()

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

Implements SelectableOwner.

◆ get_region_color()

uint32_t StreamView::get_region_color ( ) const
inline

Definition at line 97 of file streamview.h.

◆ get_regionviews_at_or_after()

void StreamView::get_regionviews_at_or_after ( Temporal::timepos_t const &  ,
RegionSelection  
)

◆ get_samples_per_pixel()

gdouble StreamView::get_samples_per_pixel ( ) const
inline

Definition at line 84 of file streamview.h.

◆ layer_display()

LayerDisplay StreamView::layer_display ( ) const
inline

Definition at line 88 of file streamview.h.

◆ layer_regions()

void StreamView::layer_regions ( )
protected

◆ layers()

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

Definition at line 121 of file streamview.h.

◆ num_selected_regionviews()

uint32_t StreamView::num_selected_regionviews ( ) const

◆ parameter_changed()

virtual void StreamView::parameter_changed ( std::string const &  )
virtual

Reimplemented from ViewBackground.

Reimplemented in MidiStreamView.

◆ playlist_layered()

virtual void StreamView::playlist_layered ( std::weak_ptr< ARDOUR::Track )
virtual

◆ playlist_switched()

void StreamView::playlist_switched ( std::weak_ptr< ARDOUR::Track )
protected

◆ rec_enable_changed()

void StreamView::rec_enable_changed ( )
protected

◆ redisplay_track()

virtual void StreamView::redisplay_track ( )
pure virtual

◆ region_canvas()

virtual ArdourCanvas::Container* StreamView::region_canvas ( ) const
inlinevirtual

Reimplemented in MidiStreamView, and AudioStreamView.

Definition at line 90 of file streamview.h.

◆ region_layered()

void StreamView::region_layered ( RegionView )

◆ remove_region_view()

virtual void StreamView::remove_region_view ( std::weak_ptr< ARDOUR::Region )
protectedvirtual

◆ sess_rec_enable_changed()

void StreamView::sess_rec_enable_changed ( )
protected

◆ set_height()

virtual int StreamView::set_height ( double  )
virtual

◆ set_layer_display()

virtual void StreamView::set_layer_display ( LayerDisplay  )
virtual

Reimplemented in MidiStreamView, and AudioStreamView.

◆ set_position()

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

◆ set_samples_per_pixel()

virtual int StreamView::set_samples_per_pixel ( double  )
virtual

◆ set_selected_regionviews()

void StreamView::set_selected_regionviews ( RegionSelection )

◆ set_zoom_all()

void StreamView::set_zoom_all ( )

◆ setup_new_rec_layer_time()

void StreamView::setup_new_rec_layer_time ( std::shared_ptr< ARDOUR::Region )
protected

◆ setup_rec_box()

virtual void StreamView::setup_rec_box ( )
protectedpure virtual

◆ trackview() [1/2]

RouteTimeAxisView& StreamView::trackview ( )
inline

Definition at line 73 of file streamview.h.

◆ trackview() [2/2]

const RouteTimeAxisView& StreamView::trackview ( ) const
inline

Definition at line 74 of file streamview.h.

◆ transport_changed()

void StreamView::transport_changed ( )
protected

◆ transport_looped()

void StreamView::transport_looped ( )
protected

◆ undisplay_track()

virtual void StreamView::undisplay_track ( )
protectedvirtual

◆ update_contents_height()

virtual void StreamView::update_contents_height ( )
virtual

Reimplemented from ViewBackground.

Reimplemented in MidiStreamView.

◆ update_contents_metrics()

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

Reimplemented in MidiStreamView.

Definition at line 112 of file streamview.h.

◆ update_coverage_frame()

void StreamView::update_coverage_frame ( )

◆ update_rec_box()

virtual void StreamView::update_rec_box ( )
protectedvirtual

Reimplemented in MidiStreamView.

Member Data Documentation

◆ _canvas_group

ArdourCanvas::Container* StreamView::_canvas_group
protected

Definition at line 165 of file streamview.h.

◆ _layer_display

LayerDisplay StreamView::_layer_display
protected

Definition at line 186 of file streamview.h.

◆ _layers

ARDOUR::layer_t StreamView::_layers
protected

Definition at line 185 of file streamview.h.

◆ _new_rec_layer_time

samplepos_t StreamView::_new_rec_layer_time
protected

Definition at line 196 of file streamview.h.

◆ _samples_per_pixel

double StreamView::_samples_per_pixel
protected

Definition at line 171 of file streamview.h.

◆ _trackview

RouteTimeAxisView& StreamView::_trackview
protected

Definition at line 164 of file streamview.h.

◆ canvas_rect

ArdourCanvas::Rectangle* StreamView::canvas_rect
protected

Definition at line 166 of file streamview.h.

◆ ContentsHeightChanged

sigc::signal<void> StreamView::ContentsHeightChanged

Emitted when the height of regions has changed

Definition at line 135 of file streamview.h.

◆ height

double StreamView::height
protected

Definition at line 188 of file streamview.h.

◆ last_rec_data_sample

samplepos_t StreamView::last_rec_data_sample
protected

Definition at line 191 of file streamview.h.

◆ playlist_connections

PBD::ScopedConnectionList StreamView::playlist_connections
protected

Definition at line 182 of file streamview.h.

◆ playlist_switched_connection

PBD::ScopedConnection StreamView::playlist_switched_connection
protected

Definition at line 183 of file streamview.h.

◆ rec_active

bool StreamView::rec_active
protected

Definition at line 177 of file streamview.h.

◆ rec_data_ready_connections

PBD::ScopedConnectionList StreamView::rec_data_ready_connections
protected

Definition at line 190 of file streamview.h.

◆ rec_rects

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

Definition at line 174 of file streamview.h.

◆ rec_regions

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

Definition at line 175 of file streamview.h.

◆ rec_updating

bool StreamView::rec_updating
protected

Definition at line 176 of file streamview.h.

◆ region_color

uint32_t StreamView::region_color
protected

Contained region color.

Definition at line 179 of file streamview.h.

◆ region_views

RegionViewList StreamView::region_views
protected

Definition at line 169 of file streamview.h.

◆ RegionViewAdded

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

Definition at line 132 of file streamview.h.

◆ RegionViewRemoved

sigc::signal<void> StreamView::RegionViewRemoved

Definition at line 133 of file streamview.h.

◆ screen_update_connection

sigc::connection StreamView::screen_update_connection
protected

Definition at line 173 of file streamview.h.

◆ stream_base_color

uint32_t StreamView::stream_base_color
protected

Background color.

Definition at line 180 of file streamview.h.


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