VTrack Class Reference

#include <vtrack.h>

Inherits Track, and Track.

Collaboration diagram for VTrack:

Collaboration graph
[legend]

Public Member Functions

 VTrack (EDL *edl, Tracks *tracks)
 ~VTrack ()
int create_objects ()
int load_defaults (BC_Hash *defaults)
void set_default_title ()
PluginSetnew_plugins ()
int is_playable (int64_t position, int direction)
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 (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 (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)

Data Fields

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

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

Here is the call graph for this function:

int VTrack::load_defaults ( BC_Hash defaults  )  [virtual]

Reimplemented from Track.

Definition at line 84 of file vtrack.C.

References Track::load_defaults().

Here is the call graph for this function:

void VTrack::set_default_title (  ) 

Definition at line 90 of file vtrack.C.

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

Referenced by Tracks::add_video_track().

PluginSet * VTrack::new_plugins (  )  [virtual]

Reimplemented from Track.

Definition at line 79 of file vtrack.C.

References Track::edl.

int VTrack::is_playable ( int64_t  position,
int  direction 
) [virtual]

Reimplemented from Track.

Definition at line 273 of file vtrack.C.

References calculate_output_transfer().

Here is the call graph for this function:

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.

Here is the call graph for this function:

int VTrack::save_derived ( FileXML file  )  [virtual]

Reimplemented from Track.

Definition at line 141 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::load_derived ( FileXML file,
uint32_t  load_flags 
) [virtual]

Reimplemented from Track.

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

Here is the call graph for this function:

void VTrack::synchronize_params ( Track track  )  [virtual]

Reimplemented from Track.

Definition at line 51 of file vtrack.C.

References Track::synchronize_params().

Here is the call graph for this function:

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, Units::round(), EDL::session, and Units::to_int64().

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

Here is the call graph for this function:

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.

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.

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 291 of file vtrack.C.

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

Here is the call graph for this function:

void VTrack::calculate_output_transfer ( 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 VTrack::vertical_span ( Theme theme  )  [virtual]

Reimplemented from Track.

Definition at line 67 of file vtrack.C.

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

Here is the call graph for this function:

int VTrack::create_derived_objs ( int  flash  ) 

Definition at line 197 of file vtrack.C.

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

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,
int64_t  real_position,
int  direction 
)

Definition at line 442 of file vtrack.C.

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

Here is the call graph for this function:

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

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::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 ( 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::clear_derived ( int64_t  start,
int64_t  end 
)

Definition at line 236 of file vtrack.C.

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::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::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::modify_handles ( int64_t  oldposition,
int64_t  newposition,
int  currentend 
)

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 
)

Definition at line 268 of file vtrack.C.

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

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

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

Reimplemented from Track.

Definition at line 129 of file vtrack.C.

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

int VTrack::create_derived_objs ( int  flash  ) 

int VTrack::save_derived ( FileXML xml  )  [virtual]

Reimplemented from Track.

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

Here is the call graph for this function:

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

Definition at line 409 of file vtransition.C.

References VFrame::clear_frame(), Track::edits, List< TYPE >::last, and PREVIOUS.

Here is the call graph for this function:

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::copy_derived ( long  start,
long  end,
FileXML xml 
)

Definition at line 121 of file vtransition.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().

Here is the call graph for this function:

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::clear_derived ( long  start,
long  end 
)

Definition at line 191 of file vtransition.C.

References camera_autos, Tracking::mwindow, and projector_autos.

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.

Here is the call graph for this function:

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::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::paste_auto_silence_derived ( long  start,
long  end 
)

Definition at line 216 of file vtransition.C.

References camera_autos, and projector_autos.

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

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

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

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, List< TYPE >::first, get_dimensions(), NEXT, and Track::pixel.

Here is the call graph for this function:

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, List< TYPE >::first, get_dimensions(), and NEXT.

Here is the call graph for this function:

int VTrack::reset_translation ( long  start,
long  end 
)

Definition at line 281 of file vtransition.C.

References Track::edits, List< TYPE >::first, and NEXT.

int VTrack::end_translation (  )  [virtual]

Reimplemented from Track.

Definition at line 271 of file vtransition.C.

References Track::edits, List< TYPE >::first, and NEXT.

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::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::release_auto_derived (  )  [virtual]

Reimplemented from Track.

Definition at line 384 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, List< TYPE >::first, NEXT, and projector_autos.

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.

long VTrack::length (  ) 

Definition at line 104 of file vtransition.C.

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

long VTrack::samples_to_units ( long &  samples  ) 

Definition at line 116 of file vtransition.C.

References Tracking::mwindow.

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

Here is the call graph for this function:


Field Documentation

BezierAutos* VTrack::camera_autos


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

Generated on Mon Apr 28 14:50:09 2008 for Cinelerra by  doxygen 1.5.5