Ardour  9.0-pre0-350-gf17a656217
AutomationRegionView Class Reference

#include <automation_region_view.h>

Inheritance diagram for AutomationRegionView:
[legend]

Public Member Functions

 AutomationRegionView (ArdourCanvas::Container *, AutomationTimeAxisView &, std::shared_ptr< ARDOUR::Region >, const Evoral::Parameter &parameter, std::shared_ptr< ARDOUR::AutomationList >, double initial_samples_per_pixel, uint32_t basic_color)
 
 ~AutomationRegionView ()
 
void init (bool wfd)
 
void set_selected (bool yn)
 
bool paste (Temporal::timepos_t const &pos, unsigned paste_count, float times, std::shared_ptr< const ARDOUR::AutomationList > slist)
 
AutomationTimeAxisViewautomation_view () const
 
std::shared_ptr< EditorAutomationLineline ()
 
virtual GhostRegionadd_ghost (TimeAxisView &)
 
uint32_t get_fill_color () const
 
void set_height (double)
 
void reset_width_dependent_items (double pixel_width)
 
void tempo_map_changed ()
 
MergeableLinemake_merger ()
 
void add_automation_event (GdkEvent *event)
 
Temporal::timepos_t drawn_time_filter (Temporal::timepos_t const &)
 
- Public Member Functions inherited from RegionView
 RegionView (ArdourCanvas::Container *parent, TimeAxisView &time_view, const std::shared_ptr< ARDOUR::Region > &region, double samples_per_pixel, uint32_t base_color, bool automation=false)
 
 RegionView (const RegionView &other)
 
 RegionView (const RegionView &other, const std::shared_ptr< ARDOUR::Region > &other_region)
 
 ~RegionView ()
 
std::shared_ptr< ARDOUR::Regionregion () const
 
bool is_valid () const
 
void set_valid (bool yn)
 
virtual void set_samples_per_pixel (double)
 
virtual bool set_duration (Temporal::timecnt_t const &, void *)
 
void move (double xdelta, double ydelta)
 
void visual_layer_on_top ()
 
void raise_to_top ()
 
void lower_to_bottom ()
 
bool set_position (Temporal::timepos_t const &pos, void *src, double *delta=0)
 
virtual void show_region_editor ()
 
void hide_region_editor ()
 
virtual void region_changed (const PBD::PropertyChange &)
 
void remove_ghost_in (TimeAxisView &)
 
void remove_ghost (GhostRegion *)
 
bool display_enabled () const
 
void redisplay ()
 
virtual void update_coverage_frame (LayerDisplay)
 
virtual void trim_front_starting ()
 
bool trim_front (Temporal::timepos_t const &, bool)
 
virtual void trim_front_ending ()
 
bool trim_end (Temporal::timepos_t const &, bool)
 
void move_contents (Temporal::timecnt_t const &)
 
virtual void thaw_after_trim ()
 
void set_silent_frames (const ARDOUR::AudioIntervalResult &, double threshold)
 
void drop_silent_frames ()
 
void hide_silent_frames ()
 
Temporal::timecnt_t snap_region_time_to_region_time (Temporal::timecnt_t const &, bool ensure_snap=false) const
 
void update_visibility ()
 
ARDOUR::CueMarker find_model_cue_marker (ArdourMarker *)
 
void drop_cue_marker (ArdourMarker *)
 
virtual void color_handler ()
 
- Public Member Functions inherited from TimeAxisViewItem
virtual ~TimeAxisViewItem ()
 
Temporal::timepos_t get_position () const
 
Temporal::timecnt_t get_duration () const
 
virtual void set_max_duration (Temporal::timecnt_t const &, void *)
 
Temporal::timecnt_t get_max_duration () const
 
virtual void set_min_duration (Temporal::timecnt_t const &, void *)
 
Temporal::timecnt_t get_min_duration () const
 
virtual void set_position_locked (bool, void *)
 
bool get_position_locked () const
 
void set_max_duration_active (bool, void *)
 
bool get_max_duration_active () const
 
void set_min_duration_active (bool, void *)
 
bool get_min_duration_active () const
 
void set_item_name (std::string, void *)
 
virtual std::string get_item_name () const
 
void set_sensitive (bool yn)
 
bool sensitive () const
 
TimeAxisViewget_time_axis_view () const
 
void set_name_text (const std::string &)
 
virtual double height () const
 
void set_y (double)
 
void set_color (uint32_t)
 
void set_name_text_color ()
 
virtual void set_frame_color ()
 
ArdourCanvas::Itemget_canvas_frame ()
 
ArdourCanvas::Itemget_canvas_group () const
 
ArdourCanvas::Itemget_name_highlight ()
 
double get_samples_per_pixel () const
 
virtual void drag_start ()
 
virtual void drag_end ()
 
bool dragging () const
 
virtual void raise ()
 
virtual void lower ()
 
bool name_active () const
 
- Public Member Functions inherited from Selectable
 Selectable ()
 
virtual ~Selectable ()
 
virtual bool selected () 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 LineMerger
virtual ~LineMerger ()
 

Protected Member Functions

void create_line (std::shared_ptr< ARDOUR::AutomationList > list)
 
bool set_position (Temporal::timepos_t const &pos, void *src, double *ignored)
 
void region_resized (const PBD::PropertyChange &)
 
bool canvas_group_event (GdkEvent *ev)
 
void add_automation_event (Temporal::timepos_t const &when, double y, bool with_guard_points)
 
void mouse_mode_changed ()
 
void entered ()
 
void exited ()
 
void redisplay (bool)
 
- Protected Member Functions inherited from RegionView
 RegionView (ArdourCanvas::Container *, TimeAxisView &, const std::shared_ptr< ARDOUR::Region > &, double samples_per_pixel, uint32_t basic_color, bool recording, TimeAxisViewItem::Visibility)
 
bool canvas_group_event (GdkEvent *)
 
virtual void region_muted ()
 
void region_locked ()
 
void region_opacity ()
 
virtual void region_renamed ()
 
void region_sync_changed ()
 
std::string make_name () const
 
void lock_toggle ()
 
virtual void set_colors ()
 
virtual void set_sync_mark_color ()
 
virtual void parameter_changed (std::string const &)
 
void maybe_raise_cue_markers ()
 
Temporal::timecnt_t region_relative_distance (Temporal::timecnt_t const &, Temporal::TimeDomain desired_time_domain)
 
- Protected Member Functions inherited from TimeAxisViewItem
 TimeAxisViewItem (const std::string &, ArdourCanvas::Item &, TimeAxisView &, double, uint32_t fill_color, Temporal::timepos_t const &, Temporal::timecnt_t const &, bool recording=false, bool automation=false, Visibility v=Visibility(0))
 
 TimeAxisViewItem (const TimeAxisViewItem &)
 
void init (ArdourCanvas::Item *, double, uint32_t, Temporal::timepos_t const &, Temporal::timecnt_t const &, Visibility, bool, bool)
 
virtual void set_frame_gradient ()
 
void set_trim_handle_colors ()
 
bool frame_handle_crossing (GdkEvent *, ArdourCanvas::Rectangle *)
 
void manage_name_text ()
 

Private Attributes

Evoral::Parameter _parameter
 
std::shared_ptr< EditorAutomationLine_line
 
PBD::ScopedConnection _mouse_mode_connection
 

Additional Inherited Members

- Public Types inherited from TimeAxisViewItem
enum  Visibility {
  ShowFrame = 0x1 , ShowNameHighlight = 0x2 , ShowNameText = 0x4 , ShowHandles = 0x8 ,
  HideFrameLeft = 0x10 , HideFrameRight = 0x20 , HideFrameTB = 0x40 , FullWidthNameHighlight = 0x80
}
 
- Static Public Member Functions inherited from TimeAxisViewItem
static void set_constant_heights ()
 
- Public Attributes inherited from TimeAxisViewItem
sigc::signal< void, std::string, void * > ItemRemoved
 
- Static Public Attributes inherited from RegionView
static PBD::Signal< void(RegionView *)> RegionViewGoingAway
 
- Static Public Attributes inherited from TimeAxisViewItem
static Pango::FontDescription NAME_FONT
 
static const double NAME_X_OFFSET
 
static const double GRAB_HANDLE_TOP
 
static const double GRAB_HANDLE_WIDTH
 
static int NAME_HEIGHT
 
static double NAME_Y_OFFSET
 
static double NAME_HIGHLIGHT_SIZE
 
static double NAME_HIGHLIGHT_THRESH
 
- Static Protected Member Functions inherited from RegionView
static gint _lock_toggle (ArdourCanvas::Item *, GdkEvent *, void *)
 
- Static Protected Member Functions inherited from TimeAxisViewItem
static gint idle_remove_this_item (TimeAxisViewItem *, void *)
 
- Protected Attributes inherited from RegionView
std::shared_ptr< ARDOUR::Region_region
 
ArdourCanvas::Polygonsync_mark
 polygon for sync position More...
 
ArdourCanvas::Linesync_line
 polygon for sync position More...
 
RegionEditoreditor
 
std::vector< ControlPoint * > control_points
 
double current_visible_sync_position
 
bool valid
 see StreamView::redisplay_diskstream() More...
 
uint32_t _disable_display
 see StreamView::redisplay_diskstream() More...
 
double _pixel_width
 
bool in_destructor
 
bool wait_for_data
 
std::vector< GhostRegion * > ghosts
 
std::list< ArdourCanvas::Rectangle * > _coverage_frame
 
std::list< ArdourCanvas::Rectangle * > _silent_frames
 
std::list< ArdourCanvas::Rectangle * > _silent_threshold_samples
 
ArdourCanvas::Text_silence_text
 
- Protected Attributes inherited from TimeAxisViewItem
TimeAxisViewtrackview
 
bool position_locked
 
Temporal::timepos_t time_position
 
Temporal::timecnt_t item_duration
 
Temporal::timecnt_t max_item_duration
 
Temporal::timecnt_t min_item_duration
 
bool max_duration_active
 
bool min_duration_active
 
double samples_per_pixel
 
bool _sensitive
 
std::string item_name
 
bool name_connected
 
uint32_t fill_color
 
uint32_t last_item_width
 
int name_text_width
 
bool wide_enough_for_name
 
bool high_enough_for_name
 
ArdourCanvas::Containergroup
 
ArdourCanvas::Rectangleframe
 
ArdourCanvas::Rectangleselection_frame
 
ArdourCanvas::Textname_text
 
ArdourCanvas::Rectanglename_highlight
 
ArdourCanvas::Rectangleframe_handle_start
 ‘frame’ (fade) handle for the start of the item, or 0 More...
 
ArdourCanvas::Rectangleframe_handle_end
 ‘frame’ (fade) handle for the end of the item, or 0 More...
 
double _height
 
Visibility visibility
 
std::string fill_color_name
 
bool _recregion
 
bool _automation
 true if this is an automation region view More...
 
bool _dragging
 
double _width
 
- Protected Attributes inherited from Selectable
bool _selected
 

Detailed Description

Definition at line 38 of file automation_region_view.h.

Constructor & Destructor Documentation

◆ AutomationRegionView()

AutomationRegionView::AutomationRegionView ( ArdourCanvas::Container ,
AutomationTimeAxisView ,
std::shared_ptr< ARDOUR::Region ,
const Evoral::Parameter parameter,
std::shared_ptr< ARDOUR::AutomationList ,
double  initial_samples_per_pixel,
uint32_t  basic_color 
)

◆ ~AutomationRegionView()

AutomationRegionView::~AutomationRegionView ( )

Member Function Documentation

◆ add_automation_event() [1/2]

void AutomationRegionView::add_automation_event ( GdkEvent event)

◆ add_automation_event() [2/2]

void AutomationRegionView::add_automation_event ( Temporal::timepos_t const &  when,
double  y,
bool  with_guard_points 
)
protected

◆ add_ghost()

virtual GhostRegion* AutomationRegionView::add_ghost ( TimeAxisView )
inlinevirtual

Implements RegionView.

Definition at line 66 of file automation_region_view.h.

◆ automation_view()

AutomationTimeAxisView* AutomationRegionView::automation_view ( ) const
inline

Definition at line 60 of file automation_region_view.h.

◆ canvas_group_event()

bool AutomationRegionView::canvas_group_event ( GdkEvent ev)
protectedvirtual

Reimplemented from TimeAxisViewItem.

◆ create_line()

void AutomationRegionView::create_line ( std::shared_ptr< ARDOUR::AutomationList list)
protected

◆ drawn_time_filter()

Temporal::timepos_t AutomationRegionView::drawn_time_filter ( Temporal::timepos_t const &  )

◆ entered()

void AutomationRegionView::entered ( )
protectedvirtual

Reimplemented from RegionView.

◆ exited()

void AutomationRegionView::exited ( )
protectedvirtual

Reimplemented from RegionView.

◆ get_fill_color()

uint32_t AutomationRegionView::get_fill_color ( ) const
virtual

Reimplemented from TimeAxisViewItem.

◆ init()

void AutomationRegionView::init ( bool  wfd)
virtual

Reimplemented from RegionView.

◆ line()

std::shared_ptr<EditorAutomationLine> AutomationRegionView::line ( )
inline

Definition at line 63 of file automation_region_view.h.

◆ make_merger()

MergeableLine* AutomationRegionView::make_merger ( )
virtual

Implements LineMerger.

◆ mouse_mode_changed()

void AutomationRegionView::mouse_mode_changed ( )
protected

◆ paste()

bool AutomationRegionView::paste ( Temporal::timepos_t const &  pos,
unsigned  paste_count,
float  times,
std::shared_ptr< const ARDOUR::AutomationList slist 
)

◆ redisplay()

void AutomationRegionView::redisplay ( bool  )
inlineprotectedvirtual

Implements RegionView.

Definition at line 89 of file automation_region_view.h.

◆ region_resized()

void AutomationRegionView::region_resized ( const PBD::PropertyChange )
protectedvirtual

Reimplemented from RegionView.

◆ reset_width_dependent_items()

void AutomationRegionView::reset_width_dependent_items ( double  pixel_width)
virtual

Reimplemented from RegionView.

◆ set_height()

void AutomationRegionView::set_height ( double  )
virtual

Reimplemented from RegionView.

◆ set_position()

bool AutomationRegionView::set_position ( Temporal::timepos_t const &  pos,
void *  src,
double *  ignored 
)
protectedvirtual

Reimplemented from TimeAxisViewItem.

◆ set_selected()

void AutomationRegionView::set_selected ( bool  yn)
virtual

Reimplemented from RegionView.

◆ tempo_map_changed()

void AutomationRegionView::tempo_map_changed ( )
virtual

Reimplemented from RegionView.

Member Data Documentation

◆ _line

std::shared_ptr<EditorAutomationLine> AutomationRegionView::_line
private

Definition at line 93 of file automation_region_view.h.

◆ _mouse_mode_connection

PBD::ScopedConnection AutomationRegionView::_mouse_mode_connection
private

Definition at line 94 of file automation_region_view.h.

◆ _parameter

Evoral::Parameter AutomationRegionView::_parameter
private

Definition at line 92 of file automation_region_view.h.


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