Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Recorder Class Reference

#include <recorder.H>

Collaboration diagram for Recorder:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Recorder (VIEWptr view)
 ~Recorder ()
RecorderUIBaseget_ui () const
void set_ui (RecorderUIBase *ui)
bool on ()
void rec_record ()
void rec_play ()
void rec_stop ()
void rec_pause ()
void step_fwd ()
void step_rev ()
void replay ()
void render_on ()
void render_off ()
int & rec_on ()
int & play_on ()
int & rend_on ()
int & pause_on ()
int & path_pos ()
boolsync ()
void set_sync (bool s)
int & target_frame ()
boolplay_all_frames ()
void activate ()
void deactivate ()
int save_path (int pathnum)
int open_path (char *filename)
int new_path ()
int del_path (int num)
int num_paths ()
int set_path (int pathnum)
int * get_path ()
void set_pos (int pos)
int * get_fps ()
int set_fps (int fps)
void pre_draw_CB ()
void post_draw_CB ()

Public Attributes

str_ptr _name_buf

Protected Attributes

VIEWptr _view
stop_watch_swatch
ARRAY< CameraPath * > _campaths
CameraPath_cur_path
int _cur_path_num
int _fps
bool _on
int _record_on
int _play_on
int _render_on
int _paused
int _path_pos
bool _play_all_frames
double _start_time
double _path_time
double _next_time
bool _sync
int _target_frame
RecorderUIBase_ui

Detailed Description

Definition at line 70 of file recorder.H.


Constructor & Destructor Documentation

Recorder::Recorder VIEWptr  view  ) 
 

Definition at line 33 of file recorder.C.

Recorder::~Recorder  ) 
 

Definition at line 54 of file recorder.C.

References _campaths, _ui, _view, and ARRAY< T >::num().


Member Function Documentation

void Recorder::activate  ) 
 

Definition at line 64 of file recorder.C.

References _on, _swatch, _ui, stop_watch::set(), and RecorderUIBase::show().

Referenced by toggle_recorder().

void Recorder::deactivate  ) 
 

Definition at line 76 of file recorder.C.

References _on, _ui, and RecorderUIBase::hide().

Referenced by toggle_recorder().

int Recorder::del_path int  num  ) 
 

Definition at line 264 of file recorder.C.

References _campaths, _cur_path, _cur_path_num, _ui, RecorderUIBase::del_path_entry(), set_path(), and RecorderUIBase::sync_live().

Referenced by RecorderUI::button_cb().

int * Recorder::get_fps  ) 
 

Definition at line 357 of file recorder.C.

References _fps.

Referenced by RecorderUI::init().

int * Recorder::get_path  ) 
 

Definition at line 351 of file recorder.C.

References _cur_path_num.

Referenced by RecorderUI::button_cb(), and RecorderUI::init().

RecorderUIBase* Recorder::get_ui  )  const [inline]
 

Definition at line 107 of file recorder.H.

References _ui.

Referenced by toggle_recorder().

int Recorder::new_path  ) 
 

Definition at line 247 of file recorder.C.

References _campaths, _cur_path, _cur_path_num, _name_buf, _path_pos, _path_time, _ui, ARRAY< T >::add(), RecorderUIBase::add_path_entry(), ARRAY< T >::num(), and RecorderUIBase::sync_live().

Referenced by RecorderUI::button_cb().

int Recorder::num_paths  ) 
 

Definition at line 325 of file recorder.C.

References _campaths, and ARRAY< T >::num().

bool Recorder::on  ) 
 

Definition at line 89 of file recorder.C.

References _on.

Referenced by VIEW::paint(), VIEW::swap(), and toggle_recorder().

int Recorder::open_path char *  filename  ) 
 

Definition at line 296 of file recorder.C.

References _campaths, _ui, ARRAY< T >::add(), RecorderUIBase::add_path_entry(), err_ret(), ARRAY< T >::num(), CameraPath::read_stream(), and set_path().

Referenced by RecorderUI::button_cb().

int& Recorder::path_pos  )  [inline]
 

Definition at line 132 of file recorder.H.

References _path_pos.

Referenced by RecorderUI::set_framenum_cb().

int& Recorder::pause_on  )  [inline]
 

Definition at line 131 of file recorder.H.

References _paused.

Referenced by RecorderUI::update_checks().

bool& Recorder::play_all_frames  )  [inline]
 

Definition at line 139 of file recorder.H.

References _play_all_frames.

Referenced by RecorderUI::set_play_all_frames(), and RecorderUI::update_checks().

int& Recorder::play_on  )  [inline]
 

Definition at line 129 of file recorder.H.

References _play_on.

Referenced by RecorderUI::update_checks().

void Recorder::post_draw_CB  ) 
 

Definition at line 499 of file recorder.C.

References _cur_path, _path_pos, _paused, _play_on, _render_on, _view, Image::data(), CameraPath::get_name(), VIEW_SIZE, and Image::write_png().

Referenced by VIEW::swap().

void Recorder::pre_draw_CB  ) 
 

Definition at line 397 of file recorder.C.

References _cur_path, _fps, _next_time, _path_pos, _paused, _play_all_frames, _play_on, _record_on, _render_on, _swatch, _sync, _target_frame, _ui, _view, CameraPath::add(), stop_watch::elapsed_time(), ARRAY< T >::num(), rec_pause(), rec_stop(), replay(), RecorderUIBase::set_frame_num(), CameraPath::state_list, and RecorderUIBase::update_checks().

Referenced by VIEW::paint().

int& Recorder::rec_on  )  [inline]
 

Definition at line 128 of file recorder.H.

References _record_on.

Referenced by RecorderUI::update_checks().

void Recorder::rec_pause  ) 
 

Definition at line 222 of file recorder.C.

References _paused, _start_time, _swatch, stop_watch::elapsed_time(), and stop_watch::set().

Referenced by RecorderUI::button_cb(), pre_draw_CB(), and rec_pause().

void Recorder::rec_play  ) 
 

Definition at line 114 of file recorder.C.

References _cur_path, _paused, _play_on, _record_on, _swatch, _target_frame, ARRAY< T >::num(), stop_watch::set(), and CameraPath::state_list.

Referenced by RecorderUI::button_cb(), and rec_play().

void Recorder::rec_record  ) 
 

Definition at line 93 of file recorder.C.

References _next_time, _paused, _play_on, _record_on, _render_on, _start_time, _swatch, and stop_watch::set().

Referenced by RecorderUI::button_cb(), and rec_rec().

void Recorder::rec_stop  ) 
 

Definition at line 206 of file recorder.C.

References _cur_path, _path_pos, _path_time, _paused, _play_on, _record_on, _render_on, _target_frame, ARRAY< T >::num(), and CameraPath::state_list.

Referenced by RecorderUI::button_cb(), pre_draw_CB(), and rec_stop().

int& Recorder::rend_on  )  [inline]
 

Definition at line 130 of file recorder.H.

References _render_on.

void Recorder::render_off  ) 
 

Definition at line 240 of file recorder.C.

References _render_on.

Referenced by RecorderUI::set_render_state().

void Recorder::render_on  ) 
 

Definition at line 235 of file recorder.C.

References _render_on.

Referenced by RecorderUI::set_render_state().

void Recorder::replay  ) 
 

Definition at line 127 of file recorder.C.

References _path_pos, _paused, _play_all_frames, _play_on, _swatch, _ui, stop_watch::set(), RecorderUIBase::set_frame_num(), RecorderUIBase::set_play_all_frames(), and RecorderUIBase::update_checks().

Referenced by pre_draw_CB(), set_pos(), set_sync(), and step_rev().

int Recorder::save_path int  pathnum  ) 
 

Definition at line 278 of file recorder.C.

References _campaths, err_msg(), err_ret(), CameraPath::get_name(), ARRAY< T >::num(), and CameraPath::write_stream().

Referenced by RecorderUI::button_cb().

int Recorder::set_fps int  fps  ) 
 

Definition at line 359 of file recorder.C.

References _fps.

Referenced by RecorderUI::set_fps_cb().

int Recorder::set_path int  pathnum  ) 
 

Definition at line 331 of file recorder.C.

References _campaths, _cur_path, _cur_path_num, _path_pos, _path_time, _ui, ARRAY< T >::num(), and RecorderUIBase::sync_live().

Referenced by del_path(), open_path(), and RecorderUI::path_listbox_cb().

void Recorder::set_pos int  pos  ) 
 

Definition at line 371 of file recorder.C.

References _path_pos, _paused, _play_all_frames, _play_on, _sync, _target_frame, replay(), and target_frame().

Referenced by RecorderUI::set_framenum_cb().

void Recorder::set_sync bool  s  ) 
 

Definition at line 151 of file recorder.C.

References _cur_path, _path_pos, _path_time, _sync, _target_frame, replay(), and CameraPath::state_list.

Referenced by RecorderUI::resync_cb().

void Recorder::set_ui RecorderUIBase ui  )  [inline]
 

Definition at line 108 of file recorder.H.

References _ui.

Referenced by toggle_recorder().

void Recorder::step_fwd  ) 
 

Definition at line 163 of file recorder.C.

References _cur_path, _path_pos, _path_time, _paused, _play_all_frames, _play_on, _start_time, _target_frame, _ui, min(), ARRAY< T >::num(), RecorderUIBase::set_frame_num(), and CameraPath::state_list.

Referenced by RecorderUI::button_cb().

void Recorder::step_rev  ) 
 

Definition at line 180 of file recorder.C.

References _cur_path, _path_pos, _path_time, _paused, _play_all_frames, _play_on, _start_time, _sync, _target_frame, _ui, max(), replay(), RecorderUIBase::set_frame_num(), and CameraPath::state_list.

Referenced by RecorderUI::button_cb().

bool& Recorder::sync  )  [inline]
 

Definition at line 134 of file recorder.H.

References _sync.

Referenced by RecorderUI::set_sync().

int& Recorder::target_frame  )  [inline]
 

Definition at line 136 of file recorder.H.

References _target_frame.

Referenced by set_pos().


Member Data Documentation

ARRAY<CameraPath*> Recorder::_campaths [protected]
 

Definition at line 76 of file recorder.H.

Referenced by del_path(), new_path(), num_paths(), open_path(), save_path(), set_path(), and ~Recorder().

CameraPath* Recorder::_cur_path [protected]
 

Definition at line 77 of file recorder.H.

Referenced by del_path(), new_path(), post_draw_CB(), pre_draw_CB(), rec_play(), rec_stop(), set_path(), set_sync(), step_fwd(), and step_rev().

int Recorder::_cur_path_num [protected]
 

Definition at line 79 of file recorder.H.

Referenced by del_path(), get_path(), new_path(), and set_path().

int Recorder::_fps [protected]
 

Definition at line 80 of file recorder.H.

Referenced by get_fps(), pre_draw_CB(), and set_fps().

str_ptr Recorder::_name_buf
 

Definition at line 104 of file recorder.H.

Referenced by RecorderUI::name_edittext_cb(), and new_path().

double Recorder::_next_time [protected]
 

Definition at line 91 of file recorder.H.

Referenced by pre_draw_CB(), and rec_record().

bool Recorder::_on [protected]
 

Definition at line 81 of file recorder.H.

Referenced by activate(), deactivate(), and on().

int Recorder::_path_pos [protected]
 

Definition at line 86 of file recorder.H.

Referenced by new_path(), path_pos(), post_draw_CB(), pre_draw_CB(), rec_stop(), replay(), set_path(), set_pos(), set_sync(), step_fwd(), and step_rev().

double Recorder::_path_time [protected]
 

Definition at line 90 of file recorder.H.

Referenced by new_path(), rec_stop(), set_path(), set_sync(), step_fwd(), and step_rev().

int Recorder::_paused [protected]
 

Definition at line 85 of file recorder.H.

Referenced by pause_on(), post_draw_CB(), pre_draw_CB(), rec_pause(), rec_play(), rec_record(), rec_stop(), replay(), set_pos(), step_fwd(), and step_rev().

bool Recorder::_play_all_frames [protected]
 

Definition at line 88 of file recorder.H.

Referenced by play_all_frames(), pre_draw_CB(), replay(), set_pos(), step_fwd(), and step_rev().

int Recorder::_play_on [protected]
 

Definition at line 83 of file recorder.H.

Referenced by play_on(), post_draw_CB(), pre_draw_CB(), rec_play(), rec_record(), rec_stop(), replay(), set_pos(), step_fwd(), and step_rev().

int Recorder::_record_on [protected]
 

Definition at line 82 of file recorder.H.

Referenced by pre_draw_CB(), rec_on(), rec_play(), rec_record(), and rec_stop().

int Recorder::_render_on [protected]
 

Definition at line 84 of file recorder.H.

Referenced by post_draw_CB(), pre_draw_CB(), rec_record(), rec_stop(), rend_on(), render_off(), and render_on().

double Recorder::_start_time [protected]
 

Definition at line 89 of file recorder.H.

Referenced by rec_pause(), rec_record(), step_fwd(), and step_rev().

stop_watch* Recorder::_swatch [protected]
 

Definition at line 75 of file recorder.H.

Referenced by activate(), pre_draw_CB(), rec_pause(), rec_play(), rec_record(), and replay().

bool Recorder::_sync [protected]
 

Definition at line 93 of file recorder.H.

Referenced by pre_draw_CB(), set_pos(), set_sync(), step_rev(), and sync().

int Recorder::_target_frame [protected]
 

Definition at line 94 of file recorder.H.

Referenced by pre_draw_CB(), rec_play(), rec_stop(), set_pos(), set_sync(), step_fwd(), step_rev(), and target_frame().

RecorderUIBase* Recorder::_ui [protected]
 

Definition at line 96 of file recorder.H.

Referenced by activate(), deactivate(), del_path(), get_ui(), new_path(), open_path(), pre_draw_CB(), replay(), set_path(), set_ui(), step_fwd(), step_rev(), and ~Recorder().

VIEWptr Recorder::_view [protected]
 

Definition at line 74 of file recorder.H.

Referenced by post_draw_CB(), pre_draw_CB(), and ~Recorder().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:46:58 2006 for jot by  doxygen 1.4.4