Autos Class Reference

#include <autos.h>

Inherits List< Auto >.

Inherited by FloatAutos, IntAutos, KeyFrames, MaskAutos, PanAutos, and PluginAutos.

Collaboration diagram for Autos:

Collaboration graph
[legend]

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)
virtual void straighten (int64_t start, int64_t end)
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)

Data Fields

EDLedl
Tracktrack
Autodefault_auto
int autoidx
int autogrouptype
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 autogrouptype, autoidx, and type.

Autos::~Autos (  )  [virtual]

Definition at line 25 of file autos.C.

References default_auto, and List< Auto >::last.


Member Function Documentation

void Autos::resample ( double  old_rate,
double  new_rate 
)

Definition at line 54 of file autos.C.

References List< Auto >::first, and NEXT.

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

void Autos::create_objects (  )  [virtual]

Definition at line 31 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().

Here is the call graph for this function:

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

void Autos::copy_from ( Autos autos  ) 

Definition at line 117 of file autos.C.

References List< Auto >::append(), Auto::copy_from(), default_auto, List< Auto >::first, List< TYPE >::first, List< TYPE >::last, new_auto(), and NEXT.

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

Here is the call graph for this function:

Auto * Autos::new_auto (  )  [virtual]

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

Definition at line 49 of file autos.C.

References edl.

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

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

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

Definition at line 218 of file autos.C.

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

Here is the call graph for this function:

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

int Autos::auto_exists_for_editing ( double  position  ) 

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

Definition at line 248 of file autos.C.

References edl, EDL::equivalent(), List< Auto >::first, NEXT, Track::to_units(), and track.

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

Here is the call graph for this function:

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

Auto * Autos::insert_auto ( int64_t  position  ) 

Auto * Autos::insert_auto_for_editing ( int64_t  position  ) 

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

Definition at line 154 of file autos.C.

References Auto::copy_from(), default_auto, List< TYPE >::first, insert(), insert_auto(), new_auto(), NEXT, and Auto::position.

Referenced by Automation::insert_track().

Here is the call graph for this function:

int Autos::load ( FileXML xml  )  [virtual]

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

void Autos::remove_nonsequential ( Auto keyframe  ) 

void Autos::optimize (  ) 

Definition at line 571 of file autos.C.

References default_auto, List< Auto >::first, NEXT, Auto::position, and PREVIOUS.

int Autos::get_type (  ) 

Definition at line 38 of file autos.C.

References type.

Referenced by TrackCanvas::do_keyframes().

int64_t Autos::get_length (  ) 

Definition at line 900 of file autos.C.

References List< Auto >::last, and Auto::position.

Referenced by Automation::get_length().

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 908 of file autos.C.

Referenced by Automation::get_extents().

void Autos::dump (  )  [virtual]

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

Definition at line 918 of file autos.C.

Referenced by Automation::dump().

int Autos::clear_all (  ) 

Definition at line 433 of file autos.C.

References append_auto(), List< Auto >::first, and NEXT.

Here is the call graph for this function:

int Autos::insert ( int64_t  start,
int64_t  end 
)

Definition at line 446 of file autos.C.

References List< Auto >::first, NEXT, and Auto::position.

Referenced by insert_track(), and paste_silence().

int Autos::paste_silence ( int64_t  start,
int64_t  end 
)

Definition at line 523 of file autos.C.

References insert().

Referenced by Automation::paste_silence().

Here is the call graph for this function:

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

Definition at line 529 of file autos.C.

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

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

Here is the call graph for this function:

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

Definition at line 626 of file autos.C.

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

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

Here is the call graph for this function:

void Autos::straighten ( int64_t  start,
int64_t  end 
) [virtual]

Reimplemented in FloatAutos.

Definition at line 622 of file autos.C.

Referenced by Automation::straighten().

int Autos::clear_auto ( int64_t  position  ) 

Definition at line 657 of file autos.C.

References autoof(), and Auto::position.

Here is the call graph for this function:

int Autos::save ( FileXML xml  ) 

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

Definition at line 711 of file autos.C.

int Autos::release_auto (  ) 

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

Definition at line 111 of file autos.h.

Auto * Autos::append_auto (  ) 

Reimplemented in FloatAutos.

Definition at line 43 of file autos.C.

References List< Auto >::append(), and new_auto().

Referenced by clear_all().

Here is the call graph for this function:

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

Definition at line 717 of file autos.C.

References List< Auto >::first, NEXT, and Auto::position.

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

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

Reimplemented in IntAutos.

Definition at line 783 of file autos.C.

Referenced by init_automation().

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

Reimplemented in FloatAutos, and IntAutos.

Definition at line 788 of file autos.C.

Referenced by init_automation().

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 794 of file autos.C.

References automation_is_constant(), and get_automation_constant().

Here is the call graph for this function:

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 825 of file autos.C.

References List< Auto >::first, List< Auto >::last, and Auto::position.

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 858 of file autos.C.

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

Definition at line 884 of file autos.C.

Auto * Autos::autoof ( int64_t  position  ) 

Definition at line 731 of file autos.C.

References List< Auto >::first, NEXT, and Auto::position.

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

Auto * Autos::nearest_before ( int64_t  position  ) 

Definition at line 744 of file autos.C.

References List< Auto >::last, Auto::position, and PREVIOUS.

Auto * Autos::nearest_after ( int64_t  position  ) 

Definition at line 755 of file autos.C.

References List< Auto >::first, NEXT, and Auto::position.


Field Documentation

Definition at line 161 of