ardour
Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
TapeAudioRegionView Class Reference

#include <tape_region_view.h>

Inheritance diagram for TapeAudioRegionView:
AudioRegionView RegionView TimeAxisViewItem Selectable PBD::ScopedConnectionList

Public Member Functions

 TapeAudioRegionView (ArdourCanvas::Container *, RouteTimeAxisView &, boost::shared_ptr< ARDOUR::AudioRegion >, double initial_samples_per_pixel, uint32_t base_color)
 
 ~TapeAudioRegionView ()
 
- Public Member Functions inherited from AudioRegionView
 AudioRegionView (ArdourCanvas::Container *, RouteTimeAxisView &, boost::shared_ptr< ARDOUR::AudioRegion >, double initial_samples_per_pixel, uint32_t base_color)
 
 AudioRegionView (ArdourCanvas::Container *, RouteTimeAxisView &, boost::shared_ptr< ARDOUR::AudioRegion >, double samples_per_pixel, uint32_t base_color, bool recording, TimeAxisViewItem::Visibility)
 
 AudioRegionView (const AudioRegionView &other, boost::shared_ptr< ARDOUR::AudioRegion >)
 
 ~AudioRegionView ()
 
boost::shared_ptr
< ARDOUR::AudioRegion
audio_region () const
 
void create_waves ()
 
void set_height (double)
 
void set_samples_per_pixel (double)
 
void set_amplitude_above_axis (gdouble spp)
 
void temporarily_hide_envelope ()
 Dangerous! More...
 
void unhide_envelope ()
 Dangerous! More...
 
void update_envelope_visibility ()
 
void add_gain_point_event (ArdourCanvas::Item *item, GdkEvent *event, bool with_guard_points)
 
void remove_gain_point_event (ArdourCanvas::Item *item, GdkEvent *event)
 
boost::shared_ptr
< AudioRegionGainLine
get_gain_line () const
 
void region_changed (const PBD::PropertyChange &)
 
void envelope_active_changed ()
 
GhostRegionadd_ghost (TimeAxisView &)
 
void reset_fade_in_shape_width (boost::shared_ptr< ARDOUR::AudioRegion > ar, framecnt_t, bool drag_active=false)
 
void reset_fade_out_shape_width (boost::shared_ptr< ARDOUR::AudioRegion > ar, framecnt_t, bool drag_active=false)
 
framepos_t get_fade_in_shape_width ()
 
framepos_t get_fade_out_shape_width ()
 
void set_fade_visibility (bool)
 
void update_coverage_frames (LayerDisplay)
 
void update_transient (float old_pos, float new_pos)
 
void remove_transient (float pos)
 
void show_region_editor ()
 
virtual void entered ()
 
virtual void exited ()
 
void thaw_after_trim ()
 
void drag_start ()
 
void drag_end ()
 
void redraw_start_xfade_to (boost::shared_ptr< ARDOUR::AudioRegion >, framecnt_t, ArdourCanvas::Points &, double, double)
 
void redraw_end_xfade_to (boost::shared_ptr< ARDOUR::AudioRegion >, framecnt_t, ArdourCanvas::Points &, double, double, double)
 
void redraw_start_xfade ()
 
void redraw_end_xfade ()
 
void hide_xfades ()
 
void hide_start_xfade ()
 
void hide_end_xfade ()
 
void show_xfades ()
 
void show_start_xfade ()
 
void show_end_xfade ()
 
bool start_xfade_visible () const
 
bool end_xfade_visible () const
 
- Public Member Functions inherited from RegionView
 RegionView (ArdourCanvas::Container *parent, TimeAxisView &time_view, boost::shared_ptr< ARDOUR::Region > region, double samples_per_pixel, uint32_t base_color, bool automation=false)
 
 RegionView (const RegionView &other)
 
 RegionView (const RegionView &other, boost::shared_ptr< ARDOUR::Region > other_region)
 
 ~RegionView ()
 
boost::shared_ptr< ARDOUR::Regionregion () const
 
bool is_valid () const
 
void set_valid (bool yn)
 
virtual bool set_duration (framecnt_t, void *)
 
void move (double xdelta, double ydelta)
 
void raise_to_top ()
 
void lower_to_bottom ()
 
bool set_position (framepos_t pos, void *src, double *delta=0)
 
void hide_region_editor ()
 
uint32_t get_fill_color () const
 
void remove_ghost_in (TimeAxisView &)
 
void remove_ghost (GhostRegion *)
 
virtual void enable_display (bool yn)
 
virtual void trim_front_starting ()
 
bool trim_front (framepos_t, bool)
 
virtual void trim_front_ending ()
 
bool trim_end (framepos_t, bool)
 
void move_contents (ARDOUR::frameoffset_t)
 
void set_silent_frames (const ARDOUR::AudioIntervalResult &, double threshold)
 
void drop_silent_frames ()
 
void hide_silent_frames ()
 
ARDOUR::frameoffset_t snap_frame_to_frame (ARDOUR::frameoffset_t) const
 
- Public Member Functions inherited from TimeAxisViewItem
virtual ~TimeAxisViewItem ()
 
framepos_t get_position () const
 
framecnt_t get_duration () const
 
virtual void set_max_duration (framecnt_t, void *)
 
framecnt_t get_max_duration () const
 
virtual void set_min_duration (framecnt_t, void *)
 
framecnt_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
 
virtual void set_selected (bool yn)
 
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 ()
 
ArdourCanvas::Item * get_canvas_frame ()
 
ArdourCanvas::Item * get_canvas_group ()
 
ArdourCanvas::Item * get_name_highlight ()
 
double get_samples_per_pixel () const
 
bool dragging () const
 
virtual void raise ()
 
virtual void lower ()
 
bool name_active () const
 
- Public Member Functions inherited from Selectable
 Selectable ()
 
virtual ~Selectable ()
 
bool get_selected () const
 
- Public Member Functions inherited from PBD::ScopedConnectionList
 ScopedConnectionList ()
 
virtual ~ScopedConnectionList ()
 
void add_connection (const UnscopedConnection &c)
 
void drop_connections ()
 

Protected Member Functions

void init (bool wait_for_waves)
 
void update (uint32_t n)
 
- Protected Member Functions inherited from AudioRegionView
void reset_fade_shapes ()
 
void reset_fade_in_shape ()
 
void reset_fade_out_shape ()
 
void fade_in_changed ()
 
void fade_out_changed ()
 
void fade_in_active_changed ()
 
void fade_out_active_changed ()
 
void region_resized (const PBD::PropertyChange &)
 
void region_muted ()
 
void region_scale_amplitude_changed ()
 
void region_renamed ()
 
void create_one_wave (uint32_t, bool)
 
void peaks_ready_handler (uint32_t)
 
void set_colors ()
 
void set_waveform_colors ()
 
void reset_width_dependent_items (double pixel_width)
 
void set_frame_color ()
 
void color_handler ()
 
void transients_changed ()
 
AutomationLine::VisibleAspects automation_line_visibility () const
 
- Protected Member Functions inherited from RegionView
 RegionView (ArdourCanvas::Container *, TimeAxisView &, boost::shared_ptr< ARDOUR::Region >, double samples_per_pixel, uint32_t basic_color, bool recording, TimeAxisViewItem::Visibility)
 
bool canvas_group_event (GdkEvent *)
 
void region_locked ()
 
void region_opacity ()
 
void region_sync_changed ()
 
std::string make_name () const
 
void lock_toggle ()
 
virtual void set_sync_mark_color ()
 
- Protected Member Functions inherited from TimeAxisViewItem
 TimeAxisViewItem (const std::string &, ArdourCanvas::Item &, TimeAxisView &, double, uint32_t fill_color, framepos_t, framecnt_t, bool recording=false, bool automation=false, Visibility v=Visibility(0))
 
 TimeAxisViewItem (const TimeAxisViewItem &)
 
void init (ArdourCanvas::Item *, double, uint32_t, framepos_t, framepos_t, Visibility, bool, bool)
 
virtual void set_frame_gradient ()
 
void set_trim_handle_colors ()
 
bool frame_handle_crossing (GdkEvent *, ArdourCanvas::Rectangle *)
 

Static Protected Attributes

static const
TimeAxisViewItem::Visibility 
default_tape_visibility
 

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
 
sigc::signal< void,
std::string, std::string, void * > 
NameChanged
 
sigc::signal< void, framepos_t,
void * > 
PositionChanged
 
sigc::signal< void, bool, void * > PositionLockChanged
 
sigc::signal< void, framecnt_t,
void * > 
DurationChanged
 
sigc::signal< void, framecnt_t,
void * > 
MaxDurationChanged
 
sigc::signal< void, framecnt_t,
void * > 
MinDurationChanged
 
- Static Public Attributes inherited from RegionView
static PBD::Signal1< void,
RegionView * > 
RegionViewGoingAway
 
- Static Public Attributes inherited from TimeAxisViewItem
static Pango::FontDescription NAME_FONT
 
static const double NAME_X_OFFSET = 15.0
 
static const double GRAB_HANDLE_TOP = 0.0
 
static const double GRAB_HANDLE_WIDTH = 10.0
 
static int NAME_HEIGHT
 
static double NAME_Y_OFFSET
 
static double NAME_HIGHLIGHT_SIZE
 
static double NAME_HIGHLIGHT_THRESH
 
- Protected Types inherited from AudioRegionView
enum  Flags { WaveformVisible = 0x4, WaveformRectified = 0x8, WaveformLogScaled = 0x10 }
 
- 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 AudioRegionView
std::vector
< ArdourCanvas::WaveView * > 
waves
 
std::vector
< ArdourCanvas::WaveView * > 
tmp_waves
 see ::create_waves() More...
 
std::list< std::pair
< framepos_t,
ArdourCanvas::Line * > > 
feature_lines
 
ArdourCanvas::Polygon * sync_mark
 polgyon for sync position More...
 
ArdourCanvas::Rectangle * fade_in_handle
 fade in handle, or 0 More...
 
ArdourCanvas::Rectangle * fade_out_handle
 fade out handle, or 0 More...
 
ArdourCanvas::Rectangle * fade_in_trim_handle
 fade in trim handle, or 0 More...
 
ArdourCanvas::Rectangle * fade_out_trim_handle
 fade out trim handle, or 0 More...
 
ArdourCanvas::XFadeCurve * start_xfade_curve
 
ArdourCanvas::Rectangle * start_xfade_rect
 
bool _start_xfade_visible
 
ArdourCanvas::XFadeCurve * end_xfade_curve
 
ArdourCanvas::Rectangle * end_xfade_rect
 
bool _end_xfade_visible
 
boost::shared_ptr
< AudioRegionGainLine
gain_line
 
double _amplitude_above_axis
 
- Protected Attributes inherited from RegionView
boost::shared_ptr< ARDOUR::Region_region
 
ArdourCanvas::Polygon * sync_mark
 polgyon for sync position More...
 
ArdourCanvas::Line * sync_line
 polgyon for sync position More...
 
RegionEditoreditor
 
std::vector< ControlPoint * > control_points
 
double current_visible_sync_position
 
bool valid
 see StreamView::redisplay_diskstream() More...
 
bool _enable_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_frames
 
std::list
< ArdourCanvas::Rectangle * > 
_silent_frames
 
std::list
< ArdourCanvas::Rectangle * > 
_silent_threshold_frames
 
ArdourCanvas::Text * _silence_text
 
- Protected Attributes inherited from TimeAxisViewItem
TimeAxisViewtrackview
 
bool position_locked
 
framepos_t frame_position
 
framecnt_t item_duration
 
framecnt_t max_item_duration
 
framecnt_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
 
bool show_vestigial
 
uint32_t fill_color
 
uint32_t last_item_width
 
int name_text_width
 
bool wide_enough_for_name
 
bool high_enough_for_name
 
ArdourCanvas::Container * group
 
ArdourCanvas::Rectangle * vestigial_frame
 
ArdourCanvas::Rectangle * frame
 
ArdourCanvas::Rectangle * selection_frame
 
ArdourCanvas::Text * name_text
 
ArdourCanvas::Rectangle * name_highlight
 
ArdourCanvas::Rectangle * frame_handle_start
 `frame' (fade) handle for the start of the item, or 0 More...
 
ArdourCanvas::Rectangle * frame_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
 
- Protected Attributes inherited from Selectable
bool _selected
 

Detailed Description

Definition at line 27 of file tape_region_view.h.

Constructor & Destructor Documentation

TapeAudioRegionView::TapeAudioRegionView ( ArdourCanvas::Container *  parent,
RouteTimeAxisView tv,
boost::shared_ptr< ARDOUR::AudioRegion r,
double  initial_samples_per_pixel,
uint32_t  base_color 
)

Definition at line 49 of file tape_region_view.cc.

TapeAudioRegionView::~TapeAudioRegionView ( )

Definition at line 77 of file tape_region_view.cc.

Member Function Documentation

void TapeAudioRegionView::init ( bool  wait_for_waves)
protectedvirtual

Reimplemented from AudioRegionView.

Definition at line 61 of file tape_region_view.cc.

void TapeAudioRegionView::update ( uint32_t  n)
protected

Definition at line 82 of file tape_region_view.cc.

Member Data Documentation

const TimeAxisViewItem::Visibility TapeAudioRegionView::default_tape_visibility
staticprotected

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