#include <edits.h>
Inherits List< Edit >.
Inherited by AEdits, PluginSet, and VEdits.

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 Edits & | operator= (Edits &edits) |
| void | insert_edits (Edits *edits, int64_t position) |
| void | insert_asset (Asset *asset, int64_t length, int64_t sample, int track_number) |
| Edit * | split_edit (int64_t position) |
| int | clear_handle (double start, double end, int edit_plugins, double &distance) |
| virtual Edit * | create_edit () |
| Edit * | insert_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) |
| Edit * | create_and_insert_edit (int64_t start, int64_t end) |
| void | resample (double old_rate, double new_rate) |
| virtual Edit * | shift (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 Edit * | append_new_edit () |
| virtual Edit * | insert_edit_after (Edit *previous_edit) |
| virtual int | load_edit_properties (FileXML *xml) |
| Edit * | editof (int64_t position, int direction, int use_nudge) |
| Edit * | get_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 | |
| EDL * | edl |
| Track * | track |
| int64_t | loaded_length |
Private Member Functions | |
| virtual int | clone_derived (Edit *new_edit, Edit *old_edit) |
Definition at line 21 of file edits.h.
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.

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

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

Definition at line 92 of file edits.C.
References copy_from().

| void Edits::insert_edits | ( | Edits * | edits, | |
| int64_t | position | |||
| ) |
Definition at line 125 of file edits.C.
References Edit::asset, EDL::assets, LocalSession::clipboard_length, Edit::copy_from(), edl, List< TYPE >::first, insert_new_edit(), Edit::length, loaded_length, EDL::local_session, ListItem< TYPE >::next, paste_silence(), Edit::shift_keyframes(), Edit::startproject, Track::to_units(), track, and Assets::update().
Referenced by Track::insert_plugin_set(), and Track::insert_track().

| void Edits::insert_asset | ( | Asset * | asset, | |
| int64_t | length, | |||
| int64_t | sample, | |||
| int | track_number | |||
| ) |
Definition at line 100 of file edits.C.
References Edit::asset, Asset::audio_data, Edit::channel, Asset::channels, insert_new_edit(), Asset::layers, Edit::length, NEXT, ListItem< TYPE >::next, Edit::startproject, Edit::startsource, and Asset::video_data.
Referenced by Track::insert_asset().

| Edit * Edits::split_edit | ( | int64_t | position | ) |
Definition at line 204 of file edits.C.
References Edit::copy_from(), create_edit(), Track::dump(), EditPopup::edit, editof(), List< Edit >::insert_after(), List< Edit >::last, Edit::length, length(), Edit::startproject, Edit::startsource, track, and Edit::transition.
Referenced by clear(), insert_new_edit(), and shift().

| int Edits::clear_handle | ( | double | start, | |
| double | end, | |||
| int | edit_plugins, | |||
| double & | distance | |||
| ) |
Definition at line 726 of file edits.C.
References Edit::asset, Track::automation, edl, EDL::equivalent(), Asset::equivalent(), List< Edit >::first, Track::from_units(), Edit::length, length(), ListItem< TYPE >::next, optimize(), Automation::paste_silence(), Track::shift_effects(), Edit::startproject, Edit::startsource, and track.
Referenced by Track::clear_handle().

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

| int Edits::save | ( | FileXML * | xml, | |
| char * | output_path | |||
| ) |
| 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().

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

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

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

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

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

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

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

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

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

| int Edits::load_edit | ( | FileXML * | xml, | |
| int64_t & | startproject, | |||
| int | track_offset | |||
| ) |
Definition at line 483 of file edits.C.
References append_new_edit(), Edit::asset, EDL::assets, BCTEXTLEN, EDLSession::default_transition_length, edl, FileSystem::extract_dir(), FileXML::filename, Assets::get_asset(), XMLTag::get_property(), FileSystem::join_names(), Edit::length, Edit::load_properties(), Transition::load_xml(), FileXML::read_tag(), EDL::session, FileSystem::set_current_dir(), FileXML::tag, XMLTag::title_is(), Track::to_units(), track, and Edit::transition.
Referenced by load().

| 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 int Edits::load_edit_properties | ( | FileXML * | xml | ) | [inline, virtual] |
| Edit * Edits::editof | ( | int64_t | position, | |
| int | direction, | |||
| int | use_nudge | |||
| ) |
Definition at line 573 of file edits.C.
References List< Edit >::first, List< Edit >::last, Edit::length, NEXT, Track::nudge, PREVIOUS, Edit::startproject, and track.
Referenced by clear(), Track::copy_assets(), VRender::get_use_vconsole(), paste_silence(), VirtualVNode::read_data(), VirtualANode::read_data(), VModule::render(), and split_edit().
| Edit * Edits::get_playable_edit | ( | int64_t | position, | |
| int | use_nudge | |||
| ) |
Definition at line 599 of file edits.C.
References Edit::asset, List< Edit >::first, Edit::length, NEXT, Track::nudge, Edit::startproject, and track.
Referenced by PackageRenderer::direct_copy_possible().
| int64_t Edits::length | ( | ) |
Definition at line 565 of file edits.C.
References List< Edit >::last, Edit::length, and Edit::startproject.
Referenced by clear(), clear_handle(), Track::detach_shared_effects(), Track::edit_change_duration(), equivalent_output(), EDL::insert_asset(), ATrack::length(), PluginSet::load(), EDL::optimize(), PluginSet::save(), save(), and split_edit().
| 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 785 of file edits.C.
References edl, EDL::equivalent(), List< Edit >::first, Track::from_units(), Edit::length, ListItem< TYPE >::next, 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(), and Track::modify_pluginhandles().

| int Edits::optimize | ( | ) | [virtual] |
Reimplemented in PluginSet.
Definition at line 309 of file edits.C.
References Edit::asset, Edit::channel, create_edit(), Transition::edit, List< Edit >::first, List< Edit >::insert_after(), List< Edit >::insert_before(), List< Edit >::last, LAST_VIRTUAL_LENGTH, Edit::length, ListItem< TYPE >::next, NEXT, ListItem< TYPE >::previous, Edit::silence(), Edit::startproject, Edit::startsource, List< Edit >::swap(), and Edit::transition.
Referenced by clear(), clear_handle(), load(), modify_handles(), Track::optimize(), and Track::paste_silence().

Definition at line 67 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().
Definition at line 68 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().