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

Edit Class Reference

#include <edit.h>

Inheritance diagram for Edit:

AEdit Plugin VEdit APlugin Transition VPlugin List of all members.

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 ()

Public Attributes

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.

Edit::Edit EDL edl,
Track track
 

Definition at line 24 of file edit.C.

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

Edit::Edit  ) 
 

Definition at line 19 of file edit.C.

References reset().

Edit::~Edit  )  [virtual]
 

Definition at line 42 of file edit.C.

References transition.


Member Function Documentation

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

Definition at line 63 of file edit.C.

References FileXML::append_newline(), FileXML::append_tag(), asset, channel, copy_properties_derived(), length, Asset::path, Transition::save_xml(), XMLTag::set_property(), XMLTag::set_title(), startproject, startsource, FileXML::tag, transition, and user_title.

Referenced by Edits::copy().

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().

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().

void Edit::detach_transition  ) 
 

Definition at line 179 of file edit.C.

References transition.

Referenced by MWindow::detach_transition().

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.

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
 

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

int Edit::dump  ) 
 

Reimplemented in Plugin, and Transition.

Definition at line 300 of file edit.C.

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

Referenced by Track::dump().

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

Reimplemented in AEdit, and VEdit.

Definition at line 152 of file edit.h.

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.

Referenced by Edits::equivalent_output().

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().

double Edit::frames_per_picon  ) 
 

Definition at line 279 of file edit.C.

References frame_w(), and picon_w().

Referenced by ResourcePixmap::draw_video_resource().

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::identical Edit edit  )  [virtual]
 

Definition at line 263 of file edit.C.

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

Referenced by operator==().

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().

int Edit::load_properties FileXML xml,
int64_t &  startproject
 

Definition at line 314 of file edit.C.

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

Referenced by Edits::load_edit().

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().

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

Reimplemented in Plugin, and Transition.

Definition at line 249 of file edit.C.

References copy_from().

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

Reimplemented in Plugin, and Transition.

Definition at line 274 of file edit.C.

References identical().

int Edit::picon_h  ) 
 

Definition at line 294 of file edit.C.

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

Referenced by ResourcePixmap::draw_video_resource().

double Edit::picon_w  ) 
 

Definition at line 289 of file edit.C.

References asset, edl, Asset::height, EDL::local_session, Asset::width, and LocalSession::zoom_track.

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

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

Definition at line 685 of file edit.C.

References get_handle_parameters(), and transition.

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

Reimplemented in Plugin.

Definition at line 46 of file edit.h.

Referenced by Edits::resample().

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().

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

Definition at line 699 of file edit.C.

References get_handle_parameters(), length, and startproject.

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.

void Edit::shift int64_t  difference  )  [virtual]
 

Reimplemented in Plugin.

Definition at line 325 of file edit.C.

References startproject.

Referenced by Plugin::shift(), and Edits::shift().

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 493 of file edit.C.

References Edits::clear_recursive(), edits, get_source_end(), length, startproject, and startsource.

Referenced by Edits::modify_handles().

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
 

Definition at line 591 of file edit.C.

References edits, get_source_end(), length, Edits::shift_effects_recursive(), Edits::shift_keyframes_recursive(), startproject, and startsource.

Referenced by Edits::modify_handles().

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().

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 332 of file edit.C.

References Edits::clear_recursive(), Edits::create_edit(), edits, get_source_end(), Edits::length(), length, startproject, and startsource.

Referenced by Edits::modify_handles().

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
 

Definition at line 421 of file edit.C.

References asset, edits, get_source_end(), length, Edits::shift_effects_recursive(), Edits::shift_keyframes_recursive(), startproject, and startsource.

Referenced by Edits::modify_handles().

int Edit::silence  )  [virtual]
 

Reimplemented in Plugin.

Definition at line 185 of file edit.C.

References asset.

void Edit::synchronize_params Edit edit  )  [virtual]
 

Reimplemented in Plugin.

Definition at line 256 of file edit.C.

References copy_from().

Referenced by Track::synchronize_params().


Member Data Documentation

Asset* Edit::asset
 

Definition at line 112 of file edit.h.

Referenced by Track::asset_used(), FileYUV::can_copy_from(), FileTIFF::can_copy_from(), FileTGA::can_copy_from(), FilePNG::can_copy_from(), FileMOV::can_copy_from(), FileJPEG::can_copy_from(), File::can_copy_from(), Edits::clear_handle(), copy(), Track::copy_assets(), copy_from(), ResourcePixmap::draw_audio_resource(), ResourcePixmap::draw_audio_source(), ResourcePixmap::draw_data(), IndexFile::draw_index(), TrackCanvas::draw_resources(), ResourcePixmap::draw_title(), ResourcePixmap::draw_video_resource(), dump(), Track::edit_change_duration(), equivalent_output(), VRender::get_colormodel(), TrackCanvas::get_drop_position(), Edits::get_playable_edit(), Track::get_source_dimensions(), VEdit::get_source_end(), AEdit::get_source_end(), VRender::get_use_vconsole(), identical(), VModule::import_frame(), Edits::insert_asset(), Edits::insert_edits(), VRender::insert_timecode(), Edits::load_edit(), Track::need_edit(), Edits::optimize(), Edits::paste_silence(), picon_w(), Track::playable_edit(), VEdit::read_frame(), Track::remove_asset(), reset(), ResourcePixmap::ResourcePixmap(), shift_start_out(), and silence().

int Edit::channel
 

Definition at line 95 of file edit.h.

Referenced by copy(), copy_from(), ResourcePixmap::draw_audio_source(), IndexFile::draw_index(), ResourcePixmap::draw_title(), ResourcePixmap::draw_video_resource(), dump(), identical(), VModule::import_frame(), Edits::insert_asset(), VEdit::load_properties_derived(), AEdit::load_properties_derived(), Edits::optimize(), VEdit::read_frame(), and reset().

Edits* Edit::edits
 

Definition at line 107 of file edit.h.

Referenced by ResourcePixmap::draw_data(), Edit(), TrackCanvas::edit_dimensions(), reset(), shift_end_in(), shift_end_out(), shift_start_in(), and shift_start_out().

EDL* Edit::edl
 

Definition at line 105 of file edit.h.

Referenced by Plugin::calculate_title(), copy_from(), ResourcePixmap::draw_data(), frame_w(), PluginServer::get_interpolation_type(), Plugin::get_keyframe(), Plugin::get_next_keyframe(), Plugin::get_prev_keyframe(), Plugin::get_shared_location(), Plugin::get_shared_track(), VEdit::get_source_end(), AEdit::get_source_end(), insert_transition(), Plugin::is_synthesis(), Plugin::load(), picon_h(), picon_w(), VEdit::read_frame(), reset(), and ResourcePixmap::ResourcePixmap().

int Edit::id
 

Definition at line 97 of file edit.h.

Referenced by AttachmentPoint::AttachmentPoint(), TrackCanvas::create_pixmap(), ResourcePixmap::draw_data(), TrackCanvas::draw_resources(), ResourcePixmap::ResourcePixmap(), TransitionHandles::update(), and EditHandles::update().

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(), Track::detach_shared_effects(), TrackCanvas::do_edit_handles(), TrackCanvas::do_edits(), TrackCanvas::do_plugin_handles(), TrackCanvas::do_plugins(), TrackCanvas::drag_stop(), TrackCanvas::draw_highlighting(), TrackCanvas::draw_paste_destination(), TrackCanvas::draw_transitions(), Transition::dump(), Plugin::dump(), dump(), VEdit::dump_derived(), Track::edit_change_duration(), TrackCanvas::edit_dimensions(), Edits::editof(), Plugin::equivalent_output(), equivalent_output(), Track::get_current_plugin(), Track::get_current_transition(), TrackCanvas::get_drop_position(), Edits::get_playable_edit(), Track::get_source_dimensions(), TransitionLengthText::handle_event(), Transition::identical(), identical(), Edits::insert_asset(), Edits::insert_edits(), Track::insert_effect(), Edits::load_edit(), load_properties(), Transition::load_xml(), Edits::modify_handles(), Tracks::move_edits(), Tracks::move_effect(), PluginSet::optimize(), Edits::optimize(), Plugin::paste(), PluginSet::paste_keyframes(), Edits::paste_silence(), Track::playable_edit(), PluginSet::plugin_change_duration(), TrackCanvas::plugin_dimensions(), VTrack::render(), VModule::render(), VAttachmentPoint::render(), AModule::render(), AAttachmentPoint::render(), Edits::resample(), reset(), Transition::save_xml(), select_handle(), PluginSet::shift_effects(), 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().

int64_t Edit::startproject
 

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(), Edits::create_and_insert_edit(), Track::detach_effect(), Track::detach_shared_effects(), TrackCanvas::do_edit_handles(), TrackCanvas::do_edits(), 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(), Edits::editof(), Track::equivalent_output(), Plugin::equivalent_output(), Edits::equivalent_output(), equivalent_output(), Tracks::get_affected_edits(), Track::get_current_plugin(), Track::get_current_transition(), TrackCanvas::get_drop_position(), Edits::get_playable_edit(), Track::get_source_dimensions(), identical(), Plugin::identical_location(), VModule::import_frame(), Edits::insert_asset(), Edits::insert_edits(), Track::insert_effect(), Edits::insert_new_edit(), VRender::insert_timecode(), Edits::modify_handles(), Tracks::move_edits(), Tracks::move_effect(), PluginSet::optimize(), Edits::optimize(), PluginSet::paste_keyframes(), Edits::paste_silence(), Track::playable_edit(), PluginSet::plugin_change_duration(), TrackCanvas::plugin_dimensions(), PluginServer::process_buffer(), VEdit::read_frame(), VTrack::render(), Edits::resample(), reset(), select_handle(), Edits::shift(), shift(), PluginSet::shift_effects(), 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::startsource
 

Definition at line 89 of file edit.h.

Referenced by Edits::clear(), Edits::clear_handle(), Plugin::copy(), copy(), Plugin::copy_from(), copy_from(), ResourcePixmap::draw_audio_source(), ResourcePixmap::draw_data(), IndexFile::draw_index(), ResourcePixmap::draw_video_resource(), dump(), equivalent_output(), identical(), VModule::import_frame(), Edits::insert_asset(), VRender::insert_timecode(), load_properties(), Edits::optimize(), VEdit::read_frame(), Edits::resample(), reset(), ResourcePixmap::ResourcePixmap(), shift_end_in(), shift_end_out(), shift_start_in(), shift_start_out(), and Edits::split_edit().

Track* Edit::track
 

Definition at line 109 of file edit.h.

Referenced by MWindow::detach_transition(), TrackCanvas::do_edit_handles(), TrackCanvas::do_edits(), TrackCanvas::do_plugin_handles(), TrackCanvas::do_plugins(), TrackCanvas::drag_stop(), IndexFile::draw_index(), TrackCanvas::draw_paste_destination(), TrackCanvas::draw_resources(), TrackCanvas::draw_transitions(), Edit(), TrackCanvas::edit_dimensions(), frame_w(), PluginServer::generate_display_title(), TrackCanvas::get_drop_position(), Plugin::get_keyframe(), Plugin::get_next_keyframe(), Plugin::get_prev_keyframe(), Plugin::get_shared_location(), TransitionLengthText::handle_event(), PluginPopupDetach::handle_event(), PluginPopupChange::handle_event(), insert_transition(), Plugin::is_synthesis(), Tracks::move_edits(), Tracks::move_effect(), Plugin::Plugin(), TrackCanvas::plugin_dimensions(), VEdit::read_frame(), reset(), ResourcePixmap::ResourcePixmap(), MWindow::show_plugin(), and TransitionPopup::update().

Transition* Edit::transition
 

Definition at line 104 of file edit.h.

Referenced by copy(), copy_from(), detach_transition(), TrackCanvas::do_transitions(), TrackCanvas::draw_transitions(), dump(), Track::edit_change_duration(), equivalent_output(), Track::get_current_transition(), identical(), insert_transition(), Edits::load_edit(), Track::need_edit(), Track::playable_edit(), popup_transition(), Edits::resample(), reset(), Edits::split_edit(), MWindow::test_plugins(), TransitionHandles::update(), and ~Edit().

char Edit::user_title[BCTEXTLEN]
 

Definition at line 99 of file edit.h.

Referenced by copy(), copy_from(), ResourcePixmap::draw_title(), EditPopupTitle::handle_event(), load_properties(), and reset().


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