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

VTrack Class Reference

#include <vtrack.h>

Inheritance diagram for VTrack:

Track Track List of all members.

Public Member Functions

 VTrack (EDL *edl, Tracks *tracks)
 ~VTrack ()
int create_objects ()
int load_defaults (Defaults *defaults)
void set_default_title ()
PluginSetnew_plugins ()
int channel_is_playable (int64_t position, int direction, int *do_channel)
int save_header (FileXML *file)
int save_derived (FileXML *file)
int load_header (FileXML *file, uint32_t load_flags)
int load_derived (FileXML *file, uint32_t load_flags)
int copy_settings (Track *track)
void synchronize_params (Track *track)
int64_t to_units (double position, int round)
double to_doubleunits (double position)
double from_units (int64_t position)
void calculate_input_transfer (Asset *asset, int64_t position, int direction, float &in_x, float &in_y, float &in_w, float &in_h, float &out_x, float &out_y, float &out_w, float &out_h)
void calculate_output_transfer (int channel, int64_t position, int direction, float &in_x, float &in_y, float &in_w, float &in_h, float &out_x, float &out_y, float &out_w, float &out_h)
int vertical_span (Theme *theme)
 VTrack ()
int create_derived_objs (int flash)
int get_projection (int channel, float &in_x1, float &in_y1, float &in_x2, float &in_y2, float &out_x1, float &out_y1, float &out_x2, float &out_y2, int frame_w, int frame_h, int64_t real_position, int direction)
int direct_copy_possible (int64_t current_frame, int direction, int use_nudge)
int copy_derived (int64_t start, int64_t end, FileXML *xml)
int paste_derived (int64_t start, int64_t end, int64_t total_length, FileXML *xml, int &current_channel)
int paste_output (int64_t startproject, int64_t endproject, int64_t startsource, int64_t endsource, int layer, Asset *asset)
int clear_derived (int64_t start, int64_t end)
int copy_automation_derived (AutoConf *auto_conf, int64_t start, int64_t end, FileXML *xml)
int paste_automation_derived (int64_t start, int64_t end, int64_t total_length, FileXML *xml, int shift_autos, int &current_pan)
int clear_automation_derived (AutoConf *auto_conf, int64_t start, int64_t end, int shift_autos=1)
int modify_handles (int64_t oldposition, int64_t newposition, int currentend)
int draw_autos_derived (float view_start, float zoom_units, AutoConf *auto_conf)
int draw_floating_autos_derived (float view_start, float zoom_units, AutoConf *auto_conf, int flash)
int select_auto_derived (float zoom_units, float view_start, AutoConf *auto_conf, int cursor_x, int cursor_y)
int move_auto_derived (float zoom_units, float view_start, AutoConf *auto_conf, int cursor_x, int cursor_y, int shift_down)
void translate (float offset_x, float offset_y, int do_camera)
int identical (int64_t sample1, int64_t sample2)
int get_dimensions (double &view_start, double &view_units, double &zoom_units)
 VTrack ()
 VTrack (MWindow *mwindow, Tracks *tracks)
 ~VTrack ()
int create_derived_objs (int flash)
int save_derived (FileXML *xml)
int load_derived (FileXML *xml, int automation_only, int edits_only, int load_all, int &output_channel)
int render (VFrame **output, long input_len, long input_position, float step)
int get_projection (float &in_x1, float &in_y1, float &in_x2, float &in_y2, float &out_x1, float &out_y1, float &out_x2, float &out_y2, int frame_w, int frame_h, long real_position, BezierAuto **before, BezierAuto **after)
int copy_derived (long start, long end, FileXML *xml)
int paste_derived (long start, long end, long total_length, FileXML *xml, int &current_channel)
int paste_output (long startproject, long endproject, long startsource, long endsource, int layer, Asset *asset)
int clear_derived (long start, long end)
int copy_automation_derived (AutoConf *auto_conf, long start, long end, FileXML *xml)
int paste_automation_derived (long start, long end, long total_length, FileXML *xml, int shift_autos, int &current_pan)
int clear_automation_derived (AutoConf *auto_conf, long start, long end, int shift_autos=1)
int paste_auto_silence_derived (long start, long end)
int modify_handles (long oldposition, long newposition, int currentend)
int draw_autos_derived (float view_start, float zoom_units, AutoConf *auto_conf)
int draw_floating_autos_derived (float view_start, float zoom_units, AutoConf *auto_conf, int flash)
int select_translation (int cursor_x, int cursor_y)
int update_translation (int cursor_x, int cursor_y, int shift_down)
int reset_translation (long start, long end)
int end_translation ()
int select_auto_derived (float zoom_units, float view_start, AutoConf *auto_conf, int cursor_x, int cursor_y)
int move_auto_derived (float zoom_units, float view_start, AutoConf *auto_conf, int cursor_x, int cursor_y, int shift_down)
int release_auto_derived ()
int scale_video (float camera_scale, float projector_scale, int *offsets)
int scale_time_derived (float rate_scale, int scale_edits, int scale_autos, long start, long end)
long length ()
long samples_to_units (long &samples)
int get_dimensions (float &view_start, float &view_units, float &zoom_units)

Public Attributes

BezierAutos * camera_autos
BezierAutos * projector_autos

Detailed Description

Definition at line 18 of file vtrack.h.


Constructor & Destructor Documentation

VTrack::VTrack EDL edl,
Tracks tracks
 

Definition at line 30 of file vtrack.C.

References Track::data_type, Track::draw, and TRACK_VIDEO.

VTrack::~VTrack  ) 
 

Definition at line 37 of file vtrack.C.

VTrack::VTrack  )  [inline]
 

Definition at line 56 of file vtrack.h.

VTrack::VTrack  )  [inline]
 

Definition at line 22 of file vtransition.h.

VTrack::VTrack MWindow mwindow,
Tracks tracks
 

Definition at line 19 of file vtransition.C.

References Track::data_type, and TRACK_VIDEO.

VTrack::~VTrack  ) 
 


Member Function Documentation

void VTrack::calculate_input_transfer Asset asset,
int64_t  position,
int  direction,
float &  in_x,
float &  in_y,
float &  in_w,
float &  in_h,
float &  out_x,
float &  out_y,
float &  out_w,
float &  out_h
 

Definition at line 297 of file vtrack.C.

References Track::automation, Automation::get_camera(), Asset::height, Track::track_h, Track::track_w, and Asset::width.

void VTrack::calculate_output_transfer int  channel,
int64_t  position,
int  direction,
float &  in_x,
float &  in_y,
float &  in_w,
float &  in_h,
float &  out_x,
float &  out_y,
float &  out_w,
float &  out_h
 

Definition at line 378 of file vtrack.C.

References Track::automation, Track::edl, Automation::get_projector(), EDLSession::output_h, EDLSession::output_w, EDL::session, Track::track_h, Track::track_w, EDLSession::vchannel_x, and EDLSession::vchannel_y.

Referenced by channel_is_playable().

int VTrack::channel_is_playable int64_t  position,
int  direction,
int *  do_channel
[virtual]
 

Reimplemented from Track.

Definition at line 273 of file vtrack.C.

References calculate_output_transfer(), Track::edl, EDL::session, and EDLSession::video_channels.

int VTrack::clear_automation_derived AutoConf auto_conf,
long  start,
long  end,
int  shift_autos = 1
 

Definition at line 207 of file vtransition.C.

References camera_autos, Tracking::mwindow, and projector_autos.

int VTrack::clear_automation_derived AutoConf auto_conf,
int64_t  start,
int64_t  end,
int  shift_autos = 1
 

Definition at line 246 of file vtrack.C.

int VTrack::clear_derived long  start,
long  end
 

Definition at line 191 of file vtransition.C.

References camera_autos, Tracking::mwindow, and projector_autos.

int VTrack::clear_derived int64_t  start,
int64_t  end
 

Definition at line 236 of file vtrack.C.

int VTrack::copy_automation_derived AutoConf auto_conf,
long  start,
long  end,
FileXML xml
 

Definition at line 126 of file vtransition.C.

References FileXML::append_newline(), FileXML::append_tag(), camera_autos, projector_autos, XMLTag::set_title(), and FileXML::tag.

int VTrack::copy_automation_derived AutoConf auto_conf,
int64_t  start,
int64_t  end,
FileXML xml
 

Definition at line 221 of file vtrack.C.

int VTrack::copy_derived long  start,
long  end,
FileXML xml
 

Definition at line 121 of file vtransition.C.

int VTrack::copy_derived int64_t  start,
int64_t  end,
FileXML xml
[virtual]
 

Reimplemented from Track.

Definition at line 215 of file vtrack.C.

int VTrack::copy_settings Track track  )  [virtual]
 

Reimplemented from Track.

Definition at line 59 of file vtrack.C.

References Track::copy_settings().

int VTrack::create_derived_objs int  flash  ) 
 

int VTrack::create_derived_objs int  flash  ) 
 

Definition at line 197 of file vtrack.C.

References Track::edits, and Track::edl.

int VTrack::create_objects  ) 
 

Reimplemented from Track.

Definition at line 41 of file vtrack.C.

References Track::automation, Automation::create_objects(), Track::create_objects(), Track::edits, and Track::edl.

Referenced by Tracks::add_video_track().

int VTrack::direct_copy_possible int64_t  current_frame,
int  direction,
int  use_nudge
[virtual]
 

Reimplemented from Track.

Definition at line 157 of file vtrack.C.

References Track::automation, Automation::direct_copy_possible(), Track::edl, Track::get_current_transition(), Track::nudge, EDLSession::output_h, EDLSession::output_w, Track::plugin_used(), EDL::session, Track::track_h, and Track::track_w.

int VTrack::draw_autos_derived float  view_start,
float  zoom_units,
AutoConf auto_conf
 

int VTrack::draw_autos_derived float  view_start,
float  zoom_units,
AutoConf auto_conf
 

Definition at line 251 of file vtrack.C.

int VTrack::draw_floating_autos_derived float  view_start,
float  zoom_units,
AutoConf auto_conf,
int  flash
 

int VTrack::draw_floating_autos_derived float  view_start,
float  zoom_units,
AutoConf auto_conf,
int  flash
 

Definition at line 268 of file vtrack.C.

int VTrack::end_translation  )  [virtual]
 

Reimplemented from Track.

Definition at line 271 of file vtransition.C.

References Track::edits.

double VTrack::from_units int64_t  position  )  [virtual]
 

Reimplemented from Track.

Definition at line 121 of file vtrack.C.

References Track::edl, EDLSession::frame_rate, and EDL::session.

int VTrack::get_dimensions float &  view_start,
float &  view_units,
float &  zoom_units
 

Definition at line 109 of file vtransition.C.

References Tracking::mwindow, Track::tracks, and MWindow::zoom_sample().

int VTrack::get_dimensions double &  view_start,
double &  view_units,
double &  zoom_units
[virtual]
 

Reimplemented from Track.

Definition at line 205 of file vtrack.C.

References Track::edl, EDLSession::frame_rate, EDL::local_session, EDLSession::sample_rate, EDL::session, LocalSession::view_start, and LocalSession::zoom_sample.

Referenced by select_translation(), and update_translation().

int VTrack::get_projection float &  in_x1,
float &  in_y1,
float &  in_x2,
float &  in_y2,
float &  out_x1,
float &  out_y1,
float &  out_x2,
float &  out_y2,
int  frame_w,
int  frame_h,
long  real_position,
BezierAuto **  before,
BezierAuto **  after
 

Definition at line 439 of file vtransition.C.

References Tracking::mwindow, and projector_autos.

int VTrack::get_projection int  channel,
float &  in_x1,
float &  in_y1,
float &  in_x2,
float &  in_y2,
float &  out_x1,
float &  out_y1,
float &  out_x2,
float &  out_y2,
int  frame_w,
int  frame_h,
int64_t  real_position,
int  direction
 

Definition at line 453 of file vtrack.C.

References Track::automation, Track::edl, Automation::get_projector(), EDLSession::output_h, EDLSession::output_w, and EDL::session.

int VTrack::identical int64_t  sample1,
int64_t  sample2
[virtual]
 

Reimplemented from Track.

Definition at line 129 of file vtrack.C.

long VTrack::length  ) 
 

Definition at line 104 of file vtransition.C.

References Track::edits, and Tracking::mwindow.

int VTrack::load_defaults Defaults *  defaults  )  [virtual]
 

Reimplemented from Track.

Definition at line 84 of file vtrack.C.

References Track::load_defaults().

int VTrack::load_derived FileXML xml,
int  automation_only,
int  edits_only,
int  load_all,
int &  output_channel
 

Definition at line 91 of file vtransition.C.

References camera_autos, projector_autos, FileXML::tag, and XMLTag::title_is().

int VTrack::load_derived FileXML file,
uint32_t  load_flags
[virtual]
 

Reimplemented from Track.

Definition at line 151 of file vtrack.C.

int VTrack::load_header FileXML file,
uint32_t  load_flags
[virtual]
 

Reimplemented from Track.

Definition at line 146 of file vtrack.C.

int VTrack::modify_handles long  oldposition,
long  newposition,
int  currentend
 

int VTrack::modify_handles int64_t  oldposition,
int64_t  newposition,
int  currentend
 

int VTrack::move_auto_derived float  zoom_units,
float  view_start,
AutoConf auto_conf,
int  cursor_x,
int  cursor_y,
int  shift_down
[virtual]
 

Reimplemented from Track.

int VTrack::move_auto_derived float  zoom_units,
float  view_start,
AutoConf auto_conf,
int  cursor_x,
int  cursor_y,
int  shift_down
[virtual]
 

Reimplemented from Track.

Definition at line 263 of file vtrack.C.

PluginSet * VTrack::new_plugins  )  [virtual]
 

Reimplemented from Track.

Definition at line 79 of file vtrack.C.

References Track::edl.

int VTrack::paste_auto_silence_derived long  start,
long  end
 

Definition at line 216 of file vtransition.C.

References camera_autos, and projector_autos.

int VTrack::paste_automation_derived long  start,
long  end,
long  total_length,
FileXML xml,
int  shift_autos,
int &  current_pan
 

Definition at line 200 of file vtransition.C.

References camera_autos, and projector_autos.

int VTrack::paste_automation_derived int64_t  start,
int64_t  end,
int64_t  total_length,
FileXML xml,
int  shift_autos,
int &  current_pan
 

Definition at line 241 of file vtrack.C.

int VTrack::paste_derived long  start,
long  end,
long  total_length,
FileXML xml,
int &  current_channel
 

Definition at line 154 of file vtransition.C.

References camera_autos, projector_autos, FileXML::tag, and XMLTag::title_is().

int VTrack::paste_derived int64_t  start,
int64_t  end,
int64_t  total_length,
FileXML xml,
int &  current_channel
[virtual]
 

Reimplemented from Track.

Definition at line 226 of file vtrack.C.

int VTrack::paste_output long  startproject,
long  endproject,
long  startsource,
long  endsource,
int  layer,
Asset asset
 

Definition at line 167 of file vtransition.C.

References Track::edits.

int VTrack::paste_output int64_t  startproject,
int64_t  endproject,
int64_t  startsource,
int64_t  endsource,
int  layer,
Asset asset
 

Definition at line 231 of file vtrack.C.

int VTrack::release_auto_derived  )  [virtual]
 

Reimplemented from Track.

Definition at line 384 of file vtransition.C.

References camera_autos, and projector_autos.

int VTrack::render VFrame **  output,
long  input_len,
long  input_position,
float  step
 

Definition at line 409 of file vtransition.C.

References Track::edits, Edit::length, and Edit::startproject.

int VTrack::reset_translation long  start,
long  end
 

Definition at line 281 of file vtransition.C.

References Track::edits.

long VTrack::samples_to_units long &  samples  ) 
 

Definition at line 116 of file vtransition.C.

References Tracking::mwindow.

int VTrack::save_derived FileXML xml  )  [virtual]
 

Reimplemented from Track.

int VTrack::save_derived FileXML file  )  [virtual]
 

Reimplemented from Track.

Definition at line 141 of file vtrack.C.

int VTrack::save_header FileXML file  )  [virtual]
 

Reimplemented from Track.

Definition at line 135 of file vtrack.C.

References XMLTag::set_property(), and FileXML::tag.

int VTrack::scale_time_derived float  rate_scale,
int  scale_edits,
int  scale_autos,
long  start,
long  end
 

Definition at line 491 of file vtransition.C.

References camera_autos, and projector_autos.

int VTrack::scale_video float  camera_scale,
float  projector_scale,
int *  offsets
 

Definition at line 395 of file vtransition.C.

References Track::edits, and projector_autos.

int VTrack::select_auto_derived float  zoom_units,
float  view_start,
AutoConf auto_conf,
int  cursor_x,
int  cursor_y
[virtual]
 

Reimplemented from Track.

int VTrack::select_auto_derived float  zoom_units,
float  view_start,
AutoConf auto_conf,
int  cursor_x,
int  cursor_y
[virtual]
 

Reimplemented from Track.

Definition at line 257 of file vtrack.C.

int VTrack::select_translation int  cursor_x,
int  cursor_y
[virtual]
 

Reimplemented from Track.

Definition at line 241 of file vtransition.C.

References Track::edits, get_dimensions(), Tracking::mwindow, Track::pixel, and MWindow::zoom_track().

void VTrack::set_default_title  ) 
 

Definition at line 90 of file vtrack.C.

References _, Track::data_type, Track::title, and TRACK_VIDEO.

Referenced by Tracks::add_video_track().

void VTrack::synchronize_params Track track  )  [virtual]
 

Reimplemented from Track.

Definition at line 51 of file vtrack.C.

References Track::synchronize_params().

double VTrack::to_doubleunits double  position  )  [virtual]
 

Reimplemented from Track.

Definition at line 115 of file vtrack.C.

References Track::edl, EDLSession::frame_rate, and EDL::session.

int64_t VTrack::to_units double  position,
int  round
[virtual]
 

Reimplemented from Track.

Definition at line 101 of file vtrack.C.

References Track::edl, EDLSession::frame_rate, and EDL::session.

Referenced by VModePatch::get_keyframe(), VFadePatch::get_keyframe(), and VPatchGUI::update().

void VTrack::translate float  offset_x,
float  offset_y,
int  do_camera
 

Definition at line 521 of file vtrack.C.

References Track::automation, Automation::autos, and Autos::default_auto.

int VTrack::update_translation int  cursor_x,
int  cursor_y,
int  shift_down
[virtual]
 

Reimplemented from Track.

Definition at line 258 of file vtransition.C.

References Track::edits, and get_dimensions().

int VTrack::vertical_span Theme theme  )  [virtual]
 

Reimplemented from Track.

Definition at line 67 of file vtrack.C.

References Track::expand_view, Theme::fade_h, Theme::mode_h, Theme::play_h, Theme::title_h, Track::track_h, and Track::vertical_span().


Member Data Documentation

BezierAutos* VTrack::camera_autos
 

Definition at line 66 of file vtransition.h.

Referenced by clear_automation_derived(), clear_derived(), copy_automation_derived(), load_derived(), paste_auto_silence_derived(), paste_automation_derived(), paste_derived(), release_auto_derived(), and scale_time_derived().

BezierAutos* VTrack::projector_autos
 

Definition at line 67 of file vtransition.h.

Referenced by clear_automation_derived(), clear_derived(), copy_automation_derived(), get_projection(), load_derived(), paste_auto_silence_derived(), paste_automation_derived(), paste_derived(), release_auto_derived(), scale_time_derived(), and scale_video().


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