Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

Autos Class Reference

#include <autos.h>

Inheritance diagram for Autos:

FloatAutos IntAutos KeyFrames MaskAutos PanAutos PluginAutos List of all members.

Public Member Functions

 Autos (EDL *edl, Track *track)
virtual ~Autos ()
void resample (double old_rate, double new_rate)
virtual void create_objects ()
void equivalent_output (Autos *autos, int64_t startproject, int64_t *result)
void copy_from (Autos *autos)
virtual Autonew_auto ()
Autoget_prev_auto (int64_t position, int direction, Auto *&current, int use_default=1)
Autoget_prev_auto (int direction, Auto *&current)
Autoget_next_auto (int64_t position, int direction, Auto *&current, int use_default=1)
int auto_exists_for_editing (double position)
Autoget_auto_at_position (double position=-1)
Autoget_auto_for_editing (double position=-1)
Autoinsert_auto (int64_t position)
Autoinsert_auto_for_editing (int64_t position)
void insert_track (Autos *automation, int64_t start_unit, int64_t length_units, int replace_default)
virtual int load (FileXML *xml)
void paste (int64_t start, int64_t length, double scale, FileXML *file, int default_only)
void remove_nonsequential (Auto *keyframe)
void optimize ()
int get_type ()
int64_t get_length ()
virtual void get_extents (float *min, float *max, int *coords_undefined, int64_t unit_start, int64_t unit_end)
virtual void dump ()
int clear_all ()
int insert (int64_t start, int64_t end)
int paste_silence (int64_t start, int64_t end)
int copy (int64_t start, int64_t end, FileXML *xml, int default_only, int autos_only)
void clear (int64_t start, int64_t end, int shift_autos)
int clear_auto (int64_t position)
int save (FileXML *xml)
virtual int slope_adjustment (int64_t ax, double slope)
int release_auto ()
virtual int release_auto_derived ()
Autoappend_auto ()
int scale_time (float rate_scale, int scale_edits, int scale_autos, int64_t start, int64_t end)
int get_neighbors (int64_t start, int64_t end, Auto **before, Auto **after)
virtual int automation_is_constant (int64_t start, int64_t end)
virtual double get_automation_constant (int64_t start, int64_t end)
int init_automation (int64_t &buffer_position, int64_t &input_start, int64_t &input_end, int &automate, double &constant, int64_t input_position, int64_t buffer_len, Auto **before, Auto **after, int reverse)
int init_slope (Auto **current_auto, double &slope_start, double &slope_value, double &slope_position, int64_t &input_start, int64_t &input_end, Auto **before, Auto **after, int reverse)
int get_slope (Auto **current_auto, double &slope_start, double &slope_end, double &slope_value, double &slope, int64_t buffer_len, int64_t buffer_position, int reverse)
int advance_slope (Auto **current_auto, double &slope_start, double &slope_value, double &slope_position, int reverse)
Autoautoof (int64_t position)
Autonearest_before (int64_t position)
Autonearest_after (int64_t position)

Public Attributes

EDLedl
Tracktrack
Autodefault_auto
int type
Autoselected
int skip_selected
int64_t selected_position
int64_t selected_position_
double selected_value
double selected_value_
float virtual_h
int virtual_center
int stack_number
int stack_total

Detailed Description

Definition at line 15 of file autos.h.


Constructor & Destructor Documentation

Autos::Autos EDL edl,
Track track
 

Definition at line 13 of file autos.C.

References type.

Autos::~Autos  )  [virtual]
 

Definition at line 23 of file autos.C.

References default_auto.


Member Function Documentation

int Autos::advance_slope Auto **  current_auto,
double &  slope_start,
double &  slope_value,
double &  slope_position,
int  reverse
 

Definition at line 881 of file autos.C.

Auto * Autos::append_auto  ) 
 

Reimplemented in FloatAutos.

Definition at line 41 of file autos.C.

References new_auto().

Referenced by clear_all().

int Autos::auto_exists_for_editing double  position  ) 
 

Definition at line 227 of file autos.C.

References EDL::align_to_frame(), EDLSession::auto_keyframes, edl, get_auto_at_position(), and EDL::session.

Referenced by VModePatch::handle_event(), APanPatch::handle_event(), VFadePatch::update_edl(), and AFadePatch::update_edl().

int Autos::automation_is_constant int64_t  start,
int64_t  end
[virtual]
 

Reimplemented in IntAutos.

Definition at line 780 of file autos.C.

Referenced by VAutomation::direct_copy_possible(), and init_automation().

Auto * Autos::autoof int64_t  position  ) 
 

Definition at line 728 of file autos.C.

References Auto::position.

Referenced by FloatAutos::add_auto(), clear(), clear_auto(), and copy().

void Autos::clear int64_t  start,
int64_t  end,
int  shift_autos
 

Definition at line 623 of file autos.C.

References autoof(), Auto::position, and remove().

Referenced by PluginSet::clear(), Automation::clear(), and Plugin::clear_keyframes().

int Autos::clear_all  ) 
 

Definition at line 432 of file autos.C.

References append_auto(), and remove().

int Autos::clear_auto int64_t  position  ) 
 

Definition at line 654 of file autos.C.

References autoof(), Auto::position, and remove().

int Autos::copy int64_t  start,
int64_t  end,
FileXML xml,
int  default_only,
int  autos_only
 

Definition at line 528 of file autos.C.

References autoof(), Auto::copy(), default_auto, and Auto::position.

Referenced by Plugin::copy(), Automation::copy(), Plugin::copy_keyframes(), and Transition::save_xml().

void Autos::copy_from Autos autos  ) 
 

Definition at line 115 of file autos.C.

References Auto::copy_from(), default_auto, and new_auto().

Referenced by Automation::copy_from(), and Plugin::copy_keyframes().

void Autos::create_objects  )  [virtual]
 

Definition at line 29 of file autos.C.

References default_auto, Auto::is_default, and new_auto().

Referenced by VAutomation::create_objects(), Automation::create_objects(), AAutomation::create_objects(), and Plugin::Plugin().

void Autos::dump  )  [virtual]
 

Reimplemented in FloatAutos, IntAutos, KeyFrames, MaskAutos, and PanAutos.

Definition at line 915 of file autos.C.

Referenced by Automation::dump().

void Autos::equivalent_output Autos autos,
int64_t  startproject,
int64_t *  result
 

Definition at line 63 of file autos.C.

References default_auto, MIN, and Auto::position.

Referenced by Plugin::equivalent_output(), and Automation::equivalent_output().

Auto * Autos::get_auto_at_position double  position = -1  ) 
 

Definition at line 246 of file autos.C.

References edl, EDL::equivalent(), Auto::position, Track::to_units(), and track.

Referenced by auto_exists_for_editing(), and TrackCanvas::synchronize_autos().

Auto * Autos::get_auto_for_editing double  position = -1  ) 
 

Definition at line 263 of file autos.C.

References EDL::align_to_frame(), EDLSession::auto_keyframes, edl, get_prev_auto(), LocalSession::get_selectionstart(), insert_auto_for_editing(), EDL::local_session, EDL::session, Track::to_units(), and track.

Referenced by MutePatch::button_press_event(), CWindow::calculate_affected_auto(), PatchBay::cursor_motion_event(), VModePatch::handle_event(), APanPatch::handle_event(), Tracks::select_all(), PatchBay::synchronize_faders(), VFadePatch::update_edl(), and AFadePatch::update_edl().

double Autos::get_automation_constant int64_t  start,
int64_t  end
[virtual]
 

Reimplemented in FloatAutos, and IntAutos.

Definition at line 785 of file autos.C.

Referenced by VAutomation::direct_copy_possible(), and init_automation().

void Autos::get_extents float *  min,
float *  max,
int *  coords_undefined,
int64_t  unit_start,
int64_t  unit_end
[virtual]
 

Reimplemented in FloatAutos, and IntAutos.

Definition at line 905 of file autos.C.

Referenced by Automation::get_extents().

int64_t Autos::get_length  ) 
 

Definition at line 897 of file autos.C.

Referenced by Automation::get_length().

int Autos::get_neighbors int64_t  start,
int64_t  end,
Auto **  before,
Auto **  after
 

Definition at line 763 of file autos.C.

References Auto::position.

Referenced by IntAutos::automation_is_constant(), IntAutos::get_automation_constant(), and FloatAutos::get_automation_constant().

Auto * Autos::get_next_auto int64_t  position,
int  direction,
Auto *&  current,
int  use_default = 1
 

Definition at line 292 of file autos.C.

References default_auto, and Auto::position.

Referenced by FloatAutos::get_fade_automation(), PanAutos::get_handle(), VirtualNode::get_mute_fragment(), VirtualANode::get_pan_automation(), and FloatAutos::get_value().

Auto * Autos::get_prev_auto int  direction,
Auto *&  current
 

Definition at line 216 of file autos.C.

References EDL::align_to_frame(), edl, get_prev_auto(), LocalSession::get_selectionstart(), EDL::local_session, Track::to_units(), and track.

Auto * Autos::get_prev_auto int64_t  position,
int  direction,
Auto *&  current,
int  use_default = 1
 

Definition at line 170 of file autos.C.

References default_auto, and Auto::position.

Referenced by CWindow::calculate_affected_auto(), PatchBay::cursor_motion_event(), MaskEngine::do_mask(), get_auto_for_editing(), FloatAutos::get_fade_automation(), PanAutos::get_handle(), VModePatch::get_keyframe(), VFadePatch::get_keyframe(), MutePatch::get_keyframe(), APanPatch::get_keyframe(), AFadePatch::get_keyframe(), VirtualNode::get_mute_fragment(), VirtualANode::get_pan_automation(), get_prev_auto(), FloatAutos::get_value(), MaskAutos::mask_exists(), VirtualVNode::render_projector(), and Tracks::total_of().

int Autos::get_slope Auto **  current_auto,
double &  slope_start,
double &  slope_end,
double &  slope_value,
double &  slope,
int64_t  buffer_len,
int64_t  buffer_position,
int  reverse
 

Definition at line 855 of file autos.C.

int Autos::get_type  ) 
 

Definition at line 36 of file autos.C.

References type.

Referenced by TrackCanvas::do_keyframes().

int Autos::init_automation int64_t &  buffer_position,
int64_t &  input_start,
int64_t &  input_end,
int &  automate,
double &  constant,
int64_t  input_position,
int64_t  buffer_len,
Auto **  before,
Auto **  after,
int  reverse
 

Definition at line 791 of file autos.C.

References automation_is_constant(), and get_automation_constant().

int Autos::init_slope Auto **  current_auto,
double &  slope_start,
double &  slope_value,
double &  slope_position,
int64_t &  input_start,
int64_t &  input_end,
Auto **  before,
Auto **  after,
int  reverse
 

Definition at line 822 of file autos.C.

References Auto::position.

int Autos::insert int64_t  start,
int64_t  end
 

Definition at line 445 of file autos.C.

References Auto::position.

Referenced by insert_track(), and paste_silence().

Auto * Autos::insert_auto int64_t  position  ) 
 

Definition at line 335 of file autos.C.

References Auto::copy_from(), default_auto, edl, EDL::equivalent(), new_auto(), and Auto::position.

Referenced by Plugin::get_keyframe(), insert_track(), paste(), PluginSet::paste_keyframes(), TrackCanvas::synchronize_autos(), TrackCanvas::test_floatline(), and TrackCanvas::test_toggleline().

Auto * Autos::insert_auto_for_editing int64_t  position  ) 
 

Definition at line 383 of file autos.C.

References Auto::copy_from(), default_auto, edl, EDL::equivalent(), Auto::interpolate_from(), new_auto(), and Auto::position.

Referenced by get_auto_for_editing().

void Autos::insert_track Autos automation,
int64_t  start_unit,
int64_t  length_units,
int  replace_default
 

Definition at line 152 of file autos.C.

References Auto::copy_from(), default_auto, insert(), insert_auto(), new_auto(), and Auto::position.

Referenced by Automation::insert_track().

int Autos::load FileXML xml  )  [virtual]
 

Definition at line 662 of file autos.C.

References default_auto, XMLTag::get_property(), XMLTag::get_title(), Auto::load(), new_auto(), Auto::position, FileXML::read_tag(), remove(), FileXML::tag, and XMLTag::title_is().

Referenced by Automation::load().

Auto * Autos::nearest_after int64_t  position  ) 
 

Definition at line 752 of file autos.C.

References Auto::position.

Auto * Autos::nearest_before int64_t  position  ) 
 

Definition at line 741 of file autos.C.

References Auto::position.

Auto * Autos::new_auto  )  [virtual]
 

Reimplemented in FloatAutos, IntAutos, KeyFrames, MaskAutos, and PanAutos.

Definition at line 47 of file autos.C.

References edl.

Referenced by append_auto(), copy_from(), create_objects(), insert_auto(), insert_auto_for_editing(), insert_track(), and load().

void Autos::optimize  ) 
 

Definition at line 570 of file autos.C.

References default_auto, and Auto::position.

void Autos::paste int64_t  start,
int64_t  length,
double  scale,
FileXML file,
int  default_only
 

Definition at line 462 of file autos.C.

References default_auto, XMLTag::get_property(), XMLTag::get_title(), insert_auto(), Auto::load(), FileXML::read_tag(), FileXML::tag, and XMLTag::title_is().

Referenced by Automation::paste().

int Autos::paste_silence int64_t  start,
int64_t  end
 

Definition at line 522 of file autos.C.

References insert().

Referenced by Automation::paste_silence(), and PluginSet::shift_effects().

int Autos::release_auto  ) 
 

virtual int Autos::release_auto_derived  )  [inline, virtual]
 

Definition at line 108 of file autos.h.

void Autos::remove_nonsequential Auto keyframe  ) 
 

Definition at line 611 of file autos.C.

References Auto::position.

Referenced by TrackCanvas::button_release_event(), and TrackCanvas::synchronize_autos().

void Autos::resample double  old_rate,
double  new_rate
 

Definition at line 52 of file autos.C.

References Auto::position.

Referenced by Plugin::resample(), and Automation::resample().

int Autos::save FileXML xml  ) 
 

int Autos::scale_time float  rate_scale,
int  scale_edits,
int  scale_autos,
int64_t  start,
int64_t  end
 

Definition at line 714 of file autos.C.

References Auto::position.

int Autos::slope_adjustment int64_t  ax,
double  slope
[virtual]
 

Definition at line 708 of file autos.C.


Member Data Documentation

Auto* Autos::default_auto
 

Definition at line 79 of file autos.h.

Referenced by Tracks::add_audio_track(), FloatAutos::automation_is_constant(), copy(), copy_from(), create_objects(), TrackCanvas::do_float_autos(), MaskEngine::do_mask(), CWindowCanvas::do_mask(), TrackCanvas::do_toggle_autos(), PanAutos::dump(), MaskAutos::dump(), KeyFrames::dump(), IntAutos::dump(), FloatAutos::dump(), equivalent_output(), IntAutos::get_automation_constant(), FloatAutos::get_automation_constant(), IntAutos::get_extents(), FloatAutos::get_extents(), Transition::get_keyframe(), Plugin::get_keyframe(), get_next_auto(), Plugin::get_next_keyframe(), MaskAutos::get_points(), get_prev_auto(), Plugin::get_prev_keyframe(), FloatAutos::get_value(), CWindowMaskDelete::handle_event(), CWindowMaskMode::handle_event(), Plugin::identical(), insert_auto(), insert_auto_for_editing(), PluginSet::insert_plugin(), insert_track(), Plugin::load(), load(), Transition::load_xml(), PluginSet::optimize(), optimize(), paste(), PluginSet::paste_keyframes(), EDL::rechannel(), PluginSet::shift_effects(), MaskAutos::total_submasks(), VTrack::translate(), MaskAutos::translate_masks(), CWindowMaskGUI::update(), and ~Autos().

EDL* Autos::edl
 

Definition at line 72 of file autos.h.

Referenced by auto_exists_for_editing(), get_auto_at_position(), get_auto_for_editing(), FloatAutos::get_extents(), get_prev_auto(), insert_auto(), insert_auto_for_editing(), PanAutos::new_auto(), MaskAutos::new_auto(), KeyFrames::new_auto(), IntAutos::new_auto(), FloatAutos::new_auto(), and new_auto().

Auto* Autos::selected
 

Definition at line 158 of file autos.h.

int64_t Autos::selected_position
 

Definition at line 160 of file autos.h.

int64_t Autos::selected_position_
 

Definition at line 160 of file autos.h.

double Autos::selected_value
 

Definition at line 161 of file autos.h.

double Autos::selected_value_
 

Definition at line 161 of file autos.h.

int Autos::skip_selected
 

Definition at line 159 of file autos.h.

int Autos::stack_number
 

Definition at line 164 of file autos.h.

int Autos::stack_total
 

Definition at line 165 of file autos.h.

Track* Autos::track
 

Definition at line 73 of file autos.h.

Referenced by TrackCanvas::do_autos(), get_auto_at_position(), get_auto_for_editing(), FloatAutos::get_extents(), get_prev_auto(), TrackCanvas::test_toggleline(), TrackCanvas::update_drag_auto(), TrackCanvas::update_drag_floatauto(), TrackCanvas::update_drag_pluginauto(), and TrackCanvas::update_drag_toggleauto().

int Autos::type
 

Definition at line 81 of file autos.h.

Referenced by Autos(), FloatAutos::FloatAutos(), get_type(), IntAutos::IntAutos(), MaskAutos::MaskAutos(), and PanAutos::PanAutos().

int Autos::virtual_center
 

Definition at line 163 of file autos.h.

float Autos::virtual_h
 

Definition at line 162 of file autos.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:09 2006 for Cinelerra-svn by  doxygen 1.4.4