Edit Class Reference

#include <edit.h>

Inherits ListItem< Edit >.

Inherited by AEdit, Plugin, and VEdit.

Collaboration diagram for Edit:

Collaboration graph
[legend]

Public Member Functions

 Edit (EDL *edl, Edits *edits)
 Edit (EDL *edl, Track *track)
 Edit ()
virtual ~Edit ()
void reset ()
virtual void copy_from (Edit *edit)
virtual int identical (Edit &edit)
virtual Editoperator= (Edit &edit)
virtual void equivalent_output (Edit *edit, int64_t *result)
virtual int operator== (Edit &edit)
virtual void synchronize_params (Edit *edit)
virtual void shift_keyframes (int64_t position)
double picon_w ()
int picon_h ()
double frame_w ()
double frames_per_picon ()
int copy (int64_t start, int64_t end, FileXML *xml, char *output_path)
virtual void resample (double old_rate, double new_rate)
virtual void shift (int64_t difference)
int shift_start_in (int edit_mode, int64_t newposition, int64_t oldposition, int edit_edits, int edit_labels, int edit_plugins, Edits *trim_edits)
int shift_start_out (int edit_mode, int64_t newposition, int64_t oldposition, int edit_edits, int edit_labels, int edit_plugins, Edits *trim_edits)
int shift_end_in (int edit_mode, int64_t newposition, int64_t oldposition, int edit_edits, int edit_labels, int edit_plugins, Edits *trim_edits)
int shift_end_out (int edit_mode, int64_t newposition, int64_t oldposition, int edit_edits, int edit_labels, int edit_plugins, Edits *trim_edits)
void insert_transition (char *title)
void detach_transition ()
virtual int silence ()
int load_properties (FileXML *xml, int64_t &startproject)
virtual int load_properties_derived (FileXML *xml)
virtual int draw (int flash, int center_pixel, int x, int w, int y, int h, int set_index_file)
virtual int set_index_file (int flash, int center_pixel, int x, int y, int w, int h)
int draw_transition (int flash, int center_pixel, int x, int w, int y, int h, int set_index_file)
int draw_handles (BC_SubWindow *canvas, float view_start, float view_units, float zoom_units, int view_pixels, int center_pixel)
int draw_titles (BC_SubWindow *canvas, float view_start, float zoom_units, int view_pixels, int center_pixel)
virtual int copy_properties_derived (FileXML *xml, int64_t length_in_selection)
int popup_transition (float view_start, float zoom_units, int cursor_x, int cursor_y)
int select_handle (float view_start, float zoom_units, int cursor_x, int cursor_y, int64_t &selection)
virtual int get_handle_parameters (int64_t &left, int64_t &right, int64_t &left_sample, int64_t &right_sample, float view_start, float zoom_units)
virtual int64_t get_source_end (int64_t default_)
int dump ()
virtual int dump_derived ()

Data Fields

int64_t startsource
int64_t startproject
int64_t length
int channel
int id
char user_title [BCTEXTLEN]
Transitiontransition
EDLedl
Editsedits
Tracktrack
Assetasset

Detailed Description

Definition at line 19 of file edit.h.


Constructor & Destructor Documentation

Edit::Edit ( EDL edl,
Edits edits 
)

Definition at line 33 of file edit.C.

References EDL::next_id(), reset(), Edits::track, and track.

Here is the call graph for this function:

Edit::Edit ( EDL edl,
Track track 
)

Definition at line 24 of file edit.C.

References Track::edits, edits, EDL::next_id(), and reset().

Here is the call graph for this function:

Edit::Edit (  ) 

Definition at line 19 of file edit.C.

References reset().

Here is the call graph for this function:

Edit::~Edit (  )  [virtual]

Definition at line 42 of file edit.C.

References transition.


Member Function Documentation

void Edit::reset (  ) 

Definition at line 49 of file edit.C.

References asset, channel, edits, edl, length, startproject, startsource, track, transition, and user_title.

Referenced by Edit().

void Edit::copy_from ( Edit edit  )  [virtual]

Reimplemented in Plugin.

Definition at line 194 of file edit.C.

References asset, EDL::assets, channel, edl, length, startproject, startsource, Plugin::title, transition, Assets::update(), and user_title.

Referenced by Edits::copy_from(), Edits::insert_edits(), Tracks::move_edits(), operator=(), Edits::split_edit(), and synchronize_params().

Here is the call graph for this function:

int Edit::identical ( Edit edit  )  [virtual]

Definition at line 263 of file edit.C.

References asset, channel, length, startproject, startsource, and transition.

Referenced by operator==().

Edit & Edit::operator= ( Edit edit  )  [virtual]

Reimplemented in Plugin, and Transition.

Definition at line 249 of file edit.C.

References copy_from().

Here is the call graph for this function:

void Edit::equivalent_output ( Edit edit,
int64_t *  result 
) [virtual]

Reimplemented in Plugin.

Definition at line 213 of file edit.C.

References asset, Asset::equivalent(), Transition::identical(), length, MIN, startproject, startsource, and transition.

Here is the call graph for this function:

int Edit::operator== ( Edit edit  )  [virtual]

Reimplemented in Plugin, and Transition.

Definition at line 274 of file edit.C.

References identical().

Here is the call graph for this function:

void Edit::synchronize_params ( Edit edit  )  [virtual]

Reimplemented in Plugin.

Definition at line 256 of file edit.C.

References copy_from().

Here is the call graph for this function:

virtual void Edit::shift_keyframes ( int64_t  position  )  [inline, virtual]

Reimplemented in Plugin.

Definition at line 37 of file edit.h.

Referenced by Edits::insert_edits().

double Edit::picon_w (  ) 

int Edit::picon_h (  ) 

Definition at line 298 of file edit.C.

References edl, EDL::local_session, and LocalSession::zoom_track.

Referenced by ResourcePixmap::draw_video_resource().

double Edit::frame_w (  ) 

Definition at line 284 of file edit.C.

References edl, Track::from_units(), EDL::local_session, EDLSession::sample_rate, EDL::session, track, and LocalSession::zoom_sample.

Referenced by ResourcePixmap::draw_video_resource(), and frames_per_picon().

Here is the call graph for this function:

double Edit::frames_per_picon (  ) 

Definition at line 279 of file edit.C.

References frame_w(), picon_w(), and Units::round().

Referenced by ResourcePixmap::draw_video_resource().

Here is the call graph for this function:

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

virtual void Edit::resample ( double  old_rate,
double  new_rate 
) [inline, virtual]

Reimplemented in Plugin.

Definition at line 46 of file edit.h.

void Edit::shift ( int64_t  difference  )  [virtual]

Reimplemented in Plugin.

Definition at line 329 of file edit.C.

References startproject.

Referenced by Plugin::shift().

int Edit::shift_start_in ( int  edit_mode,
int64_t  newposition,
int64_t  oldposition,
int  edit_edits,
int  edit_labels,
int  edit_plugins,
Edits trim_edits 
)

Definition at line 336 of file edit.C.

References Edits::clear_recursive(), Edits::create_edit(), edits, get_source_end(), List< TYPE >::insert_before(), length, ListItem< Edit >::previous, startproject, and startsource.

Referenced by Edits::modify_handles().

Here is the call graph for this function:

int Edit::shift_start_out ( int  edit_mode,
int64_t  newposition,
int64_t  oldposition,
int  edit_edits,
int  edit_labels,
int  edit_plugins,
Edits trim_edits 
)

int Edit::shift_end_in ( int  edit_mode,
int64_t  newposition,
int64_t  oldposition,
int  edit_edits,
int  edit_labels,
int  edit_plugins,
Edits trim_edits 
)

Definition at line 497 of file edit.C.

References asset, Edits::clear_recursive(), edits, get_source_end(), length, ListItem< Edit >::next, startproject, and startsource.

Referenced by Edits::modify_handles().

Here is the call graph for this function:

int Edit::shift_end_out ( int  edit_mode,
int64_t  newposition,
int64_t  oldposition,
int  edit_edits,
int  edit_labels,
int  edit_plugins,
Edits trim_edits 
)

void Edit::insert_transition ( char *  title  ) 

Definition at line 170 of file edit.C.

References EDLSession::default_transition_length, edl, EDL::session, Track::to_units(), track, and transition.

Referenced by Tracks::paste_transition().

Here is the call graph for this function:

void Edit::detach_transition (  ) 

Definition at line 179 of file edit.C.

References transition.

Referenced by MWindow::detach_transition().

int Edit::silence (  )  [virtual]

Reimplemented in Plugin.

Definition at line 185 of file edit.C.

References asset.

Referenced by Track::detach_effect(), Track::detach_shared_effects(), Track::optimize(), PluginSet::optimize(), and Edits::optimize().

int Edit::load_properties ( FileXML xml,
int64_t &  startproject 
)

Definition at line 318 of file edit.C.

References XMLTag::get_property(), length, load_properties_derived(), startsource, FileXML::tag, and user_title.

Referenced by Edits::load_edit().

Here is the call graph for this function:

virtual int Edit::load_properties_derived ( FileXML xml  )  [inline, virtual]

Reimplemented in AEdit, and VEdit.

Definition at line 130 of file edit.h.

Referenced by load_properties().

virtual int Edit::draw ( int  flash,
int  center_pixel,
int  x,
int  w,
int  y,
int  h,
int  set_index_file 
) [inline, virtual]

Definition at line 134 of file edit.h.

virtual int Edit::set_index_file ( int  flash,
int  center_pixel,
int  x,
int  y,
int  w,
int  h 
) [inline, virtual]

Definition at line 135 of file edit.h.

int Edit::draw_transition ( int  flash,
int  center_pixel,
int  x,
int  w,
int  y,
int  h,
int  set_index_file 
)

int Edit::draw_handles ( BC_SubWindow canvas,
float  view_start,
float  view_units,
float  zoom_units,
int  view_pixels,
int  center_pixel 
)

int Edit::draw_titles ( BC_SubWindow canvas,
float  view_start,
float  zoom_units,
int  view_pixels,
int  center_pixel 
)

virtual int Edit::copy_properties_derived ( FileXML xml,
int64_t  length_in_selection 
) [inline, virtual]

Reimplemented in AEdit, and VEdit.

Definition at line 143 of file edit.h.

Referenced by copy().

int Edit::popup_transition ( float  view_start,
float  zoom_units,
int  cursor_x,
int  cursor_y 
)

Definition at line 689 of file edit.C.

References get_handle_parameters(), and transition.

Here is the call graph for this function:

int Edit::select_handle ( float  view_start,
float  zoom_units,
int  cursor_x,
int  cursor_y,
int64_t &  selection 
)

Definition at line 703 of file edit.C.

References get_handle_parameters(), length, and startproject.

Here is the call graph for this function:

virtual int Edit::get_handle_parameters ( int64_t &  left,
int64_t &  right,
int64_t &  left_sample,
int64_t &  right_sample,
float  view_start,
float  zoom_units 
) [inline, virtual]

Definition at line 149 of file edit.h.

Referenced by popup_transition(), and select_handle().

int64_t Edit::get_source_end ( int64_t  default_  )  [virtual]

Reimplemented in AEdit, and VEdit.

Definition at line 165 of file edit.C.

Referenced by shift_end_in(), shift_end_out(), shift_start_in(), and shift_start_out().

int Edit::dump (  ) 

Reimplemented in Plugin, and Transition.

Definition at line 304 of file edit.C.

References asset, channel, Transition::dump(), length, startproject, startsource, and transition.

Here is the call graph for this function:

virtual int Edit::dump_derived (  )  [inline, virtual]

Reimplemented in AEdit, and VEdit.

Definition at line 152 of file edit.h.


Field Documentation

Definition at line 91 of file edit.h.

Referenced by Plugin::calculate_title(), Edits::clear(), Edits::clear_handle(), Plugin::copy(), copy(), Track::copy_assets(), Plugin::copy_from(), copy_from(), Track::detach_effect(), TrackCanvas::do_edit_handles(), TrackCanvas::do_plugin_handles(), TrackCanvas::do_plugins(), TrackCanvas::drag_stop(), IndexFile::draw_index(), TrackCanvas::draw_paste_destination(), Plugin::dump(), dump(), VEdit::dump_derived(), Track::edit_change_duration(), TrackCanvas::edit_dimensions(), ExportEDLAsset::edit_to_timecodes(), Edits::editof(), Edits::Edits(), Track::equivalent_output(), Plugin::equivalent_output(), equivalent_output(), Track::get_current_plugin(), Track::get_current_transition(), TrackCanvas::get_drop_position(), Track::get_length(), Edits::get_playable_edit(), identical(), Plugin::identical_location(), VModule::import_frame(), Edits::insert_asset(), Edits::insert_edits(), Track::insert_effect(), Edits::insert_new_edit(), VRender::insert_timecode(), Edits::length(), Edits::load(), Tracks::loaded_lengths_to_tracklengths(), Edits::modify_handles(), Tracks::move_edits(), Tracks::move_effect(), PluginSet::optimize(), Edits::optimize(), PluginSet::paste_keyframes(), PluginSet::plugin_change_duration(), TrackCanvas::plugin_dimensions(), PluginServer::process_buffer(), VEdit::read_frame(), VModule::render(), AModule::render(), reset(), select_handle(), shift(), shift_end_in(), shift_end_out(), shift_start_in(), shift_start_out(), PluginServer::show_gui(), Edits::split_edit(), and PluginServer::update_gui().

int64_t Edit::length

Definition at line 93 of file edit.h.

Referenced by Edits::clear(), Edits::clear_handle(), Plugin::copy(), copy(), Plugin::copy_from(), copy_from(), Edits::create_and_insert_edit(), Track::detach_effect(), TrackCanvas::do_edit_handles(), TrackCanvas::do_plugin_handles(), TrackCanvas::do_plugins(), TrackCanvas::drag_stop(), TrackCanvas::draw_highlighting(), TrackCanvas::draw_paste_destination(), Transition::dump(), Plugin::dump(), dump(), VEdit::dump_derived(), Track::edit_change_duration(), TrackCanvas::edit_dimensions(), ExportEDLAsset::edit_to_timecodes(), Edits::editof(), Edits::Edits(), Plugin::equivalent_output(), equivalent_output(), Track::get_current_plugin(), Track::get_current_transition(), TrackCanvas::get_drop_position(), Track::get_length(), Edits::get_playable_edit(), TransitionLengthText::handle_event(), Transition::identical(), identical(), Edits::insert_asset(), Edits::insert_edits(), Track::insert_effect(), Edits::insert_new_edit(), Edits::length(), Edits::load(), Edits::load_edit(), load_properties(), Transition::load_xml(), Edits::modify_handles(), Tracks::move_edits(), Tracks::move_effect(), PluginSet::optimize(), Edits::optimize(), Plugin::paste(), Edits::paste_silence(), PluginSet::plugin_change_duration(), TrackCanvas::plugin_dimensions(), VModule::render(), VAttachmentPoint::render(), AModule::render(), AAttachmentPoint::render(), reset(), Transition::save_xml(), select_handle(), shift_end_in(), shift_end_out(), shift_start_in(), shift_start_out(), PluginServer::show_gui(), Edits::split_edit(), Transition::Transition(), TransitionPopup::update(), and PluginServer::update_gui().

int Edit::id

char Edit::user_title[BCTEXTLEN]


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

Generated on Mon Apr 28 14:22:59 2008 for Cinelerra by  doxygen 1.5.5