Edits Class Reference

#include <edits.h>

Inherits List< Edit >.

Inherited by AEdits, PluginSet, and VEdits.

Collaboration diagram for Edits:

Collaboration graph
[legend]

Public Member Functions

 Edits (EDL *edl, Track *track, Edit *default_edit)
virtual ~Edits ()
void equivalent_output (Edits *edits, int64_t *result)
virtual void copy_from (Edits *edits)
virtual Editsoperator= (Edits &edits)
void insert_edits (Edits *edits, int64_t position)
void insert_asset (Asset *asset, int64_t length, int64_t sample, int track_number)
Editsplit_edit (int64_t position)
int clear_handle (double start, double end, int edit_plugins, double &distance)
virtual Editcreate_edit ()
Editinsert_new_edit (int64_t sample)
int save (FileXML *xml, char *output_path)
int copy (int64_t start, int64_t end, FileXML *xml, char *output_path)
virtual void clear (int64_t start, int64_t end)
virtual void clear_recursive (int64_t start, int64_t end, int edit_edits, int edit_labels, int edit_plugins, Edits *trim_edits)
virtual void shift_keyframes_recursive (int64_t position, int64_t length)
virtual void shift_effects_recursive (int64_t position, int64_t length)
void paste_silence (int64_t start, int64_t end)
Editcreate_and_insert_edit (int64_t start, int64_t end)
void resample (double old_rate, double new_rate)
virtual Editshift (int64_t position, int64_t difference)
 Edits ()
int load (FileXML *xml, int track_offset)
int load_edit (FileXML *xml, int64_t &startproject, int track_offset)
virtual Editappend_new_edit ()
virtual Editinsert_edit_after (Edit *previous_edit)
virtual int load_edit_properties (FileXML *xml)
Editeditof (int64_t position, int direction, int use_nudge)
Editget_playable_edit (int64_t position, int use_nudge)
int64_t length ()
int modify_handles (double oldposition, double newposition, int currentend, int edit_mode, int edit_edits, int edit_labels, int edit_plugins, Edits *trim_edits)
virtual int optimize ()

Data Fields

EDLedl
Tracktrack
int64_t loaded_length

Private Member Functions

virtual int clone_derived (Edit *new_edit, Edit *old_edit)

Detailed Description

Definition at line 21 of file edits.h.


Constructor & Destructor Documentation

Edits::Edits ( EDL edl,
Track track,
Edit default_edit 
)

Definition at line 23 of file edits.C.

References Edit::edl, List< Edit >::insert_after(), LAST_VIRTUAL_LENGTH, Edit::length, loaded_length, Edit::startproject, and Edit::track.

Here is the call graph for this function:

Edits::~Edits (  )  [virtual]

Definition at line 38 of file edits.C.

Edits::Edits (  )  [inline]

Definition at line 80 of file edits.h.


Member Function Documentation

void Edits::equivalent_output ( Edits edits,
int64_t *  result 
)

Definition at line 43 of file edits.C.

References List< TYPE >::first, List< Edit >::first, length(), MIN, and NEXT.

Referenced by Track::equivalent_output().

Here is the call graph for this function:

void Edits::copy_from ( Edits edits  )  [virtual]

Definition at line 80 of file edits.C.

References List< Edit >::append(), Edit::copy_from(), create_edit(), List< TYPE >::first, List< Edit >::last, loaded_length, and NEXT.

Referenced by Track::copy_from(), and operator=().

Here is the call graph for this function:

Edits & Edits::operator= ( Edits edits  )  [virtual]

Definition at line 92 of file edits.C.

References copy_from().

Here is the call graph for this function:

void Edits::insert_edits ( Edits edits,
int64_t  position 
)

void Edits::insert_asset ( Asset asset,
int64_t  length,
int64_t  sample,
int  track_number 
)

Edit * Edits::split_edit ( int64_t  position  ) 

int Edits::clear_handle ( double  start,
double  end,
int  edit_plugins,
double &  distance 
)

virtual Edit* Edits::create_edit (  )  [inline, virtual]

Reimplemented in AEdits, PluginSet, and VEdits.

Definition at line 41 of file edits.h.

Referenced by copy_from(), insert_new_edit(), Tracks::move_edits(), optimize(), Edit::shift_start_in(), and split_edit().

Edit * Edits::insert_new_edit ( int64_t  sample  ) 

Definition at line 181 of file edits.C.

References create_edit(), List< Edit >::insert_after(), Edit::length, PREVIOUS, split_edit(), and Edit::startproject.

Referenced by create_and_insert_edit(), insert_asset(), insert_edits(), and paste_silence().

Here is the call graph for this function:

int Edits::save ( FileXML xml,
char *  output_path 
)

Definition at line 265 of file edits.C.

References copy(), and length().

Here is the call graph for this function:

int Edits::copy ( int64_t  start,
int64_t  end,
FileXML xml,
char *  output_path 
)

Definition at line 626 of file edits.C.

References FileXML::append_newline(), FileXML::append_tag(), Edit::copy(), List< Edit >::first, ListItem< TYPE >::next, XMLTag::set_title(), and FileXML::tag.

Referenced by Track::copy(), and save().

Here is the call graph for this function:

void Edits::clear ( int64_t  start,
int64_t  end 
) [virtual]

Reimplemented in PluginSet.

Definition at line 646 of file edits.C.

References editof(), List< Edit >::last, Edit::length, length(), ListItem< TYPE >::next, optimize(), split_edit(), Edit::startproject, and Edit::startsource.

Referenced by Track::clear(), PluginSet::clear(), and Tracks::move_edits().

Here is the call graph for this function:

void Edits::clear_recursive ( int64_t  start,
int64_t  end,
int  edit_edits,
int  edit_labels,
int  edit_plugins,
Edits trim_edits 
) [virtual]

Definition at line 708 of file edits.C.

References Track::clear(), and track.

Referenced by Edit::shift_end_in(), and Edit::shift_start_in().

Here is the call graph for this function:

void Edits::shift_keyframes_recursive ( int64_t  position,
int64_t  length 
) [virtual]

Reimplemented in PluginSet.

Definition at line 949 of file edits.C.

References Track::shift_keyframes(), and track.

Referenced by Edit::shift_end_out(), and Edit::shift_start_out().

Here is the call graph for this function:

void Edits::shift_effects_recursive ( int64_t  position,
int64_t  length 
) [virtual]

Reimplemented in PluginSet.

Definition at line 954 of file edits.C.

References Track::shift_effects(), and track.

Referenced by Edit::shift_end_out(), and Edit::shift_start_out().

Here is the call graph for this function:

void Edits::paste_silence ( int64_t  start,
int64_t  end 
)

Definition at line 895 of file edits.C.

References Edit::asset, editof(), insert_new_edit(), Edit::length, NEXT, and ListItem< TYPE >::next.

Referenced by Track::detach_effect(), Track::detach_shared_effects(), insert_edits(), Tracks::move_edits(), and Track::paste_silence().

Here is the call graph for this function:

Edit * Edits::create_and_insert_edit ( int64_t  start,
int64_t  end 
)

Definition at line 921 of file edits.C.

References insert_new_edit(), Edit::length, NEXT, and ListItem< TYPE >::next.

Referenced by PluginSet::insert_plugin().

Here is the call graph for this function:

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

Definition at line 271 of file edits.C.

References List< Edit >::first, NEXT, PREVIOUS, and Units::to_int64().

Referenced by Track::resample().

Here is the call graph for this function:

Edit * Edits::shift ( int64_t  position,
int64_t  difference 
) [virtual]

Definition at line 932 of file edits.C.

References List< Edit >::first, NEXT, and split_edit().

Referenced by Tracks::move_effect().

Here is the call graph for this function:

int Edits::load ( FileXML xml,
int  track_offset 
)

Definition at line 451 of file edits.C.

References XMLTag::get_title(), List< Edit >::last, Edit::length, load_edit(), loaded_length, optimize(), FileXML::read_tag(), Edit::startproject, and FileXML::tag.

Referenced by Track::load().

Here is the call graph for this function:

int Edits::load_edit ( FileXML xml,
int64_t &  startproject,
int  track_offset 
)

virtual Edit* Edits::append_new_edit (  )  [inline, virtual]

Reimplemented in AEdits, and VEdits.

Definition at line 87 of file edits.h.

Referenced by load_edit().

virtual Edit* Edits::insert_edit_after ( Edit previous_edit  )  [inline, virtual]

Reimplemented in AEdits, PluginSet, and VEdits.

Definition at line 88 of file edits.h.

virtual int Edits::load_edit_properties ( FileXML xml  )  [inline, virtual]

Definition at line 89 of file edits.h.

Edit * Edits::editof ( int64_t  position,
int  direction,
int  use_nudge 
)

Edit * Edits::get_playable_edit ( int64_t  position,
int  use_nudge 
)

int64_t Edits::length (  ) 

int Edits::modify_handles ( double  oldposition,
double  newposition,
int  currentend,
int  edit_mode,
int  edit_edits,
int  edit_labels,
int  edit_plugins,
Edits trim_edits 
)

int Edits::optimize (  )  [virtual]

virtual int Edits::clone_derived ( Edit new_edit,
Edit old_edit 
) [inline, private, virtual]

Reimplemented in AEdits.

Definition at line 114 of file edits.h.


Field Documentation


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

Generated on Mon Apr 28 14:23:52 2008 for Cinelerra by  doxygen 1.5.5