#include <edit.h>
Inherits ListItem< Edit >.
Inherited by AEdit, Plugin, and VEdit.

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 Edit & | operator= (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] |
| Transition * | transition |
| EDL * | edl |
| Edits * | edits |
| Track * | track |
| Asset * | asset |
Definition at line 19 of file edit.h.
Definition at line 33 of file edit.C.
References EDL::next_id(), reset(), Edits::track, and track.

Definition at line 24 of file edit.C.
References Track::edits, edits, EDL::next_id(), and reset().

| Edit::Edit | ( | ) |
| Edit::~Edit | ( | ) | [virtual] |
| 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().

| 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==().
Reimplemented in Plugin, and Transition.
Definition at line 249 of file edit.C.
References copy_from().

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

| int Edit::operator== | ( | Edit & | edit | ) | [virtual] |
Reimplemented in Plugin, and Transition.
Definition at line 274 of file edit.C.
References identical().

| void Edit::synchronize_params | ( | Edit * | edit | ) | [virtual] |
Reimplemented in Plugin.
Definition at line 256 of file edit.C.
References copy_from().

| virtual void Edit::shift_keyframes | ( | int64_t | position | ) | [inline, virtual] |
| double Edit::picon_w | ( | ) |
Definition at line 291 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::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().

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

| 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(), FileSystem::extract_dir(), FileSystem::extract_name(), length, Asset::path, Transition::save_xml(), XMLTag::set_property(), XMLTag::set_title(), startproject, startsource, FileXML::tag, transition, and user_title.
Referenced by Edits::copy().

| virtual void Edit::resample | ( | double | old_rate, | |
| double | new_rate | |||
| ) | [inline, virtual] |
| 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().

| 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 425 of file edit.C.
References asset, edits, get_source_end(), length, ListItem< TYPE >::next, ListItem< Edit >::next, ListItem< Edit >::previous, Edits::shift_effects_recursive(), Edits::shift_keyframes_recursive(), startproject, and startsource.
Referenced by Edits::modify_handles().

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

| 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 595 of file edit.C.
References edits, get_source_end(), length, ListItem< TYPE >::next, ListItem< Edit >::next, Edits::shift_effects_recursive(), Edits::shift_keyframes_recursive(), startproject, and startsource.
Referenced by Edits::modify_handles().

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

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

| 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] |
| virtual int Edit::set_index_file | ( | int | flash, | |
| int | center_pixel, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) | [inline, virtual] |
| 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] |
| 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.

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

| 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] |
| 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.

| virtual int Edit::dump_derived | ( | ) | [inline, virtual] |
| 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(), ExportEDLAsset::edit_to_timecodes(), equivalent_output(), identical(), VModule::import_frame(), Edits::insert_asset(), VRender::insert_timecode(), load_properties(), Edits::optimize(), VEdit::read_frame(), AModule::render(), reset(), ResourcePixmap::ResourcePixmap(), shift_end_in(), shift_end_out(), shift_start_in(), shift_start_out(), and Edits::split_edit().
| 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(), 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::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(), AModule::render(), and reset().
| int Edit::id |
Definition at line 97 of file edit.h.
Referenced by AttachmentPoint::AttachmentPoint(), TrackCanvas::create_pixmap(), ResourcePixmap::draw_data(), ResourcePixmap::ResourcePixmap(), TransitionHandles::update(), and EditHandles::update().
| char Edit::user_title[BCTEXTLEN] |
Definition at line 99 of file edit.h.
Referenced by copy(), copy_from(), ResourcePixmap::draw_title(), EditPopupTitleWindow::EditPopupTitleWindow(), EditPopupTitle::handle_event(), load_properties(), and reset().
Definition at line 104 of file edit.h.
Referenced by copy(), copy_from(), detach_transition(), TrackCanvas::do_transitions(), dump(), Track::edit_change_duration(), equivalent_output(), Track::get_current_transition(), Track::get_length(), identical(), insert_transition(), Edits::load_edit(), Track::need_edit(), Edits::optimize(), popup_transition(), reset(), Edits::split_edit(), TransitionHandles::update(), and ~Edit().
Definition at line 105 of file edit.h.
Referenced by Plugin::calculate_title(), copy_from(), ResourcePixmap::draw_data(), Edits::Edits(), 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().
Definition at line 107 of file edit.h.
Referenced by ResourcePixmap::draw_data(), Edit(), TrackCanvas::edit_dimensions(), Tracks::move_edits(), reset(), shift_end_in(), shift_end_out(), shift_start_in(), shift_start_out(), and TransitionHandles::update().
Definition at line 109 of file edit.h.
Referenced by MWindow::detach_transition(), TrackCanvas::do_edit_handles(), TrackCanvas::do_plugin_handles(), TrackCanvas::do_plugins(), TrackCanvas::drag_stop(), IndexFile::draw_index(), TrackCanvas::draw_paste_destination(), Edit(), TrackCanvas::edit_dimensions(), ExportEDLAsset::edit_to_timecodes(), Edits::Edits(), frame_w(), PluginServer::generate_display_title(), PluginServer::get_camera(), TrackCanvas::get_drop_position(), Plugin::get_keyframe(), Plugin::get_next_keyframe(), Plugin::get_prev_keyframe(), PluginServer::get_projector(), 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().
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(), FileDV::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(), ResourcePixmap::draw_title(), ResourcePixmap::draw_video_resource(), dump(), Track::edit_change_duration(), ExportEDLAsset::edit_to_timecodes(), equivalent_output(), VRender::get_colormodel(), TrackCanvas::get_drop_position(), Edits::get_playable_edit(), 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(), VEdit::read_frame(), AModule::render(), reset(), ResourcePixmap::ResourcePixmap(), shift_end_in(), shift_start_out(), and silence().
1.5.5