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

Edits Class Reference

#include <edits.h>

Inheritance diagram for Edits:

AEdits PluginSet VEdits APluginSet VPluginSet List of all members.

Public Member Functions

 Edits (EDL *edl, Track *track)
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 ()

Public Attributes

EDLedl
Tracktrack

Private Member Functions

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

Detailed Description

Definition at line 17 of file edits.h.


Constructor & Destructor Documentation

Edits::Edits EDL edl,
Track track
 

Definition at line 23 of file edits.C.

Edits::~Edits  )  [virtual]
 

Definition at line 30 of file edits.C.

Edits::Edits  )  [inline]
 

Definition at line 76 of file edits.h.


Member Function Documentation

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

Reimplemented in AEdits, and VEdits.

Definition at line 83 of file edits.h.

Referenced by load_edit().

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

Reimplemented in PluginSet.

Definition at line 620 of file edits.C.

References editof(), Edit::length, length(), optimize(), remove(), split_edit(), Edit::startproject, and Edit::startsource.

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

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

Definition at line 700 of file edits.C.

References Edit::asset, Track::automation, edl, EDL::equivalent(), Asset::equivalent(), Track::from_units(), Edit::length, length(), optimize(), Automation::paste_silence(), Track::shift_effects(), Edit::startproject, Edit::startsource, and track.

Referenced by Track::clear_handle().

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 682 of file edits.C.

References Track::clear(), and track.

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

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

Reimplemented in AEdits.

Definition at line 110 of file edits.h.

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

Definition at line 600 of file edits.C.

References FileXML::append_newline(), FileXML::append_tag(), Edit::copy(), XMLTag::set_title(), and FileXML::tag.

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

void Edits::copy_from Edits edits  )  [virtual]
 

Definition at line 72 of file edits.C.

References Edit::copy_from(), and create_edit().

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

Edit * Edits::create_and_insert_edit int64_t  start,
int64_t  end
 

Definition at line 895 of file edits.C.

References insert_new_edit(), Edit::length, and Edit::startproject.

Referenced by PluginSet::insert_plugin().

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

Reimplemented in AEdits, PluginSet, and VEdits.

Definition at line 37 of file edits.h.

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

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

Definition at line 547 of file edits.C.

References Edit::length, Track::nudge, Edit::startproject, and track.

Referenced by clear(), Track::copy_assets(), VRender::get_use_vconsole(), Tracks::paste_audio_transition(), paste_silence(), Tracks::paste_video_transition(), VModule::render(), and split_edit().

void Edits::equivalent_output Edits edits,
int64_t *  result
 

Definition at line 35 of file edits.C.

References Edit::equivalent_output(), length(), MIN, and Edit::startproject.

Referenced by Track::equivalent_output().

Edit * Edits::get_playable_edit int64_t  position,
int  use_nudge
 

Definition at line 573 of file edits.C.

References Edit::asset, Edit::length, Track::nudge, Edit::startproject, and track.

Referenced by PackageRenderer::direct_copy_possible().

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

Definition at line 91 of file edits.C.

References Edit::asset, Asset::audio_data, Edit::channel, Asset::channels, insert_new_edit(), Asset::layers, Edit::length, Edit::startproject, Edit::startsource, and Asset::video_data.

Referenced by Track::insert_asset().

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

Reimplemented in AEdits, PluginSet, and VEdits.

Definition at line 84 of file edits.h.

void Edits::insert_edits Edits edits,
int64_t  position
 

Definition at line 116 of file edits.C.

References Edit::asset, EDL::assets, LocalSession::clipboard_length, Edit::copy_from(), edl, insert_new_edit(), Edit::length, length(), EDL::local_session, paste_silence(), Edit::shift_keyframes(), Edit::startproject, Track::to_units(), track, and Assets::update().

Referenced by Track::insert_track().

Edit * Edits::insert_new_edit int64_t  sample  ) 
 

Definition at line 175 of file edits.C.

References create_edit(), split_edit(), and Edit::startproject.

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

int64_t Edits::length  ) 
 

Definition at line 528 of file edits.C.

Referenced by clear(), clear_handle(), Track::detach_effect(), Track::detach_shared_effects(), TrackCanvas::drag_stop(), TrackCanvas::draw_paste_destination(), Track::edit_change_duration(), equivalent_output(), Track::get_length(), EDL::insert_asset(), insert_edits(), ATrack::length(), PluginSet::load(), EDL::optimize(), PluginSet::save(), save(), and Edit::shift_start_in().

int Edits::load FileXML xml,
int  track_offset
 

Definition at line 419 of file edits.C.

References XMLTag::get_title(), load_edit(), optimize(), FileXML::read_tag(), and FileXML::tag.

Referenced by Track::load().

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

Definition at line 446 of file edits.C.

References append_new_edit(), Edit::asset, EDL::assets, EDLSession::default_transition_length, edl, FileXML::filename, Assets::get_asset(), XMLTag::get_property(), Edit::length, Edit::load_properties(), Transition::load_xml(), FileXML::read_tag(), EDL::session, FileXML::tag, XMLTag::title_is(), Track::to_units(), track, and Edit::transition.

Referenced by load().

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

Definition at line 85 of file edits.h.

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
 

Definition at line 759 of file edits.C.

References edl, EDL::equivalent(), Track::from_units(), Edit::length, optimize(), Edit::shift_end_in(), Edit::shift_end_out(), Edit::shift_start_in(), Edit::shift_start_out(), Edit::startproject, Track::to_units(), and track.

Referenced by Track::modify_edithandles().

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

Definition at line 83 of file edits.C.

References copy_from().

int Edits::optimize  )  [virtual]
 

Reimplemented in PluginSet.

Definition at line 291 of file edits.C.

References Edit::asset, Edit::channel, create_edit(), Edit::length, remove(), Edit::startproject, and Edit::startsource.

Referenced by clear(), clear_handle(), load(), modify_handles(), Track::optimize(), and Track::paste_silence().

void Edits::paste_silence int64_t  start,
int64_t  end
 

Definition at line 869 of file edits.C.

References Edit::asset, editof(), insert_new_edit(), Edit::length, and Edit::startproject.

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

void Edits::resample double  old_rate,
double  new_rate
 

Definition at line 253 of file edits.C.

References Edit::length, Edit::resample(), Edit::startproject, Edit::startsource, and Edit::transition.

Referenced by Track::resample().

int Edits::save FileXML xml,
char *  output_path
 

Definition at line 247 of file edits.C.

References copy(), and length().

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

Definition at line 906 of file edits.C.

References Edit::shift(), split_edit(), and Edit::startproject.

Referenced by Tracks::move_edits(), and Tracks::move_effect().

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

Reimplemented in PluginSet.

Definition at line 928 of file edits.C.

References Track::shift_effects(), and track.

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

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

Reimplemented in PluginSet.

Definition at line 923 of file edits.C.

References Track::shift_keyframes(), and track.

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

Edit * Edits::split_edit int64_t  position  ) 
 

Definition at line 194 of file edits.C.

References Edit::copy_from(), create_edit(), Track::dump(), EditPopup::edit, editof(), Edit::length, Edit::startproject, Edit::startsource, track, and Edit::transition.

Referenced by clear(), insert_new_edit(), and shift().


Member Data Documentation

EDL* Edits::edl
 

Definition at line 63 of file edits.h.

Referenced by VEdits::append_new_edit(), AEdits::append_new_edit(), clear_handle(), VEdits::create_edit(), PluginSet::create_edit(), AEdits::create_edit(), VPluginSet::create_plugin(), APluginSet::create_plugin(), VEdits::insert_edit_after(), PluginSet::insert_edit_after(), AEdits::insert_edit_after(), insert_edits(), load_edit(), modify_handles(), and PluginSet::optimize().

Track* Edits::track
 

Definition at line 64 of file edits.h.

Referenced by clear_handle(), clear_recursive(), ResourcePixmap::draw_data(), Edit::Edit(), TrackCanvas::edit_dimensions(), editof(), PluginSet::get_number(), get_playable_edit(), EDL::get_shared_plugins(), Plugin::identical_location(), insert_edits(), load_edit(), modify_handles(), Tracks::move_effect(), MWindow::move_plugins_down(), MWindow::move_plugins_up(), Plugin::Plugin(), EDL::remove_from_project(), shift_effects_recursive(), shift_keyframes_recursive(), and split_edit().


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