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

Animator Class Reference

#include <animator.H>

Inheritance diagram for Animator:

Inheritance graph
[legend]
Collaboration diagram for Animator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Animator (VIEWptr view)
 Animator ()
 ~Animator ()
bool on () const
bool play_on () const
bool rend_on () const
void toggle_activation ()
void press_render ()
void press_sync ()
void press_play ()
void press_stop ()
void press_beginning ()
void press_step_rev ()
void press_step_fwd ()
void press_jog_rev ()
void press_jog_fwd ()
void set_fps (int fps)
int get_fps () const
void set_jog_size (int jog)
int get_jog_size () const
void set_time_scale (double s)
double get_time_scale () const
void set_name (str_ptr name)
void set_current_frame (int f)
int get_current_frame () const
void set_end_frame (int f)
int get_end_frame () const
void set_loop (bool l)
bool get_loop () const
double pre_draw_CB ()
void post_draw_CB ()
 DEFINE_RTTI_METHODS_BASE ("Animator", CDATA_ITEM *)
virtual DATA_ITEMdup () const
virtual CTAGlist & tags () const
virtual STDdstreamformat (STDdstream &d) const
virtual void add_tags () const
virtual STDdstreamdecode (STDdstream &d)
virtual void recompute ()
virtual STAT_STR_RET class_name () const =0
virtual int is_of_type (Cstr_ptr &t) const

Static Public Member Functions

static STAT_STR_RET static_name ()
static int add_decoder (Cstr_ptr &d, DATA_ITEM *di, int copy=-1)
static void set_default_decoder (DATA_ITEM *(*d)(STDdstream &, Cstr_ptr &, DATA_ITEM *))
static DATA_ITEMDecode (STDdstream &d, int DelayDecoding=0)
static DATA_ITEMlookup (Cstr_ptr &d)
static HASHdi_hash ()

Protected Member Functions

int & fps_ ()
int & start_frame_ ()
int & end_frame_ ()
virtual void get_name (TAGformat &d)
virtual void put_name (TAGformat &d) const
void step (int inc)
int num_frames () const
void inc_frame (int inc)

Protected Attributes

VIEWptr _view
str_ptr _name
int _fps
int _start_frame
int _end_frame
int _cur_frame
int _jog_size
bool _loop
stop_watch _timer
bool _on
bool _play_on
bool _rend_on
bool _sync_on
double _time_scale
int _copy
TAGlist _DEFINERtags

Static Private Attributes

static TAGlist_a_tags = 0

Detailed Description

Definition at line 11 of file animator.H.


Constructor & Destructor Documentation

Animator::Animator VIEWptr  view  ) 
 

Definition at line 33 of file animator.C.

References _timer, and stop_watch::reset_hold().

Animator::Animator  )  [inline]
 

Definition at line 43 of file animator.H.

Animator::~Animator  )  [inline]
 

Definition at line 44 of file animator.H.


Member Function Documentation

int DATA_ITEM::add_decoder Cstr_ptr &  d,
DATA_ITEM di,
int  copy = -1
[static, inherited]
 

Definition at line 41 of file data_item.C.

References DATA_ITEM::_hash, and HASH::add().

Referenced by JOTvar< OBJ, TYPE >::check_inst_name(), FUNC_ITEM::FUNC_ITEM(), hashdist::hashdist(), JOTvar< OBJ, TYPE >::JOTvar(), and DISTRIB::notify_exist().

virtual void DATA_ITEM::add_tags  )  const [inline, virtual, inherited]
 

Definition at line 205 of file data_item.H.

virtual STAT_STR_RET DATA_ITEM::class_name  )  const [pure virtual, inherited]
 

Implemented in hashdist, JOTvar< OBJ, TYPE >, TDI< T >, and FUNC_ITEM.

Referenced by DATA_ITEM::decode(), DATA_ITEM::Decode(), GLSLShader::draw(), DATA_ITEM::format(), GLSLShader::get_uniform_loc(), GLSLShader::init(), DISTRIB::interpret(), BaseJOTappConfig::load(), next_texture(), GEOM::print(), DEFINER::print(), BMESH::print(), print_gel(), Patch::put_textures(), BMESH::read_jot_stream(), GTexture::type(), SolidColorTexture::write_stream(), and GTexture::write_stream().

DATA_ITEM * DATA_ITEM::Decode STDdstream d,
int  DelayDecoding = 0
[static, inherited]
 

Definition at line 57 of file data_item.C.

References DATA_ITEM::_copy, DATA_ITEM::_decode_unknown, DATA_ITEM::class_name(), DATA_ITEM::decode(), DATA_ITEM::dup(), Config::get_var_bool(), and DATA_ITEM::lookup().

Referenced by JOThash::get(), DISTRIB::interpret(), and operator>>().

STDdstream & DATA_ITEM::decode STDdstream d  )  [virtual, inherited]
 

Reimplemented in JOTsend_geom, and BMESH.

Definition at line 145 of file data_item.C.

References DATA_ITEM::class_name(), COMMENT::decode(), j, COMMENT::name(), TAGformat::read_end_id(), TAGformat::read_id(), DATA_ITEM::recompute(), and DATA_ITEM::tags().

Referenced by DATA_ITEM::Decode(), BMESH::decode(), JOTio::get(), BMESH::get_patches(), Patch::get_texture(), VIEW::get_view_animator(), and VIEW::get_view_data_file().

Animator::DEFINE_RTTI_METHODS_BASE "Animator"  ,
CDATA_ITEM * 
 

static HASH* DATA_ITEM::di_hash  )  [inline, static, inherited]
 

Definition at line 225 of file data_item.H.

References DATA_ITEM::_hash.

virtual DATA_ITEM* Animator::dup  )  const [inline, virtual]
 

Implements DATA_ITEM.

Definition at line 88 of file animator.H.

int& Animator::end_frame_  )  [inline, protected]
 

Definition at line 96 of file animator.H.

References _end_frame.

Referenced by tags().

STDdstream & Animator::format STDdstream d  )  const [virtual]
 

Reimplemented from DATA_ITEM.

Definition at line 288 of file animator.C.

References _end_frame, _fps, _name, _start_frame, NetStream::ascii_r, NetStream::ascii_w, IOManager::cached_prefix(), IOManager::current_prefix(), err_msg(), DATA_ITEM::format(), LOADobs::LOAD_ERROR_NONE, LOADobs::notify_load_obs(), SAVEobs::notify_save_obs(), NULL_STR, and SAVEobs::SAVE_ERROR_NONE.

Referenced by VIEW::put_view_animator().

int& Animator::fps_  )  [inline, protected]
 

Definition at line 94 of file animator.H.

References _fps.

Referenced by tags().

int Animator::get_current_frame  )  const [inline]
 

Definition at line 74 of file animator.H.

References _cur_frame.

int Animator::get_end_frame  )  const [inline]
 

Definition at line 77 of file animator.H.

References _end_frame.

int Animator::get_fps  )  const [inline]
 

Definition at line 63 of file animator.H.

References _fps.

int Animator::get_jog_size  )  const [inline]
 

Definition at line 66 of file animator.H.

References _jog_size.

bool Animator::get_loop  )  const [inline]
 

Definition at line 80 of file animator.H.

References _loop.

void Animator::get_name TAGformat d  )  [protected, virtual]
 

Definition at line 382 of file animator.C.

References _name, ERR_LEV_SPAM, err_mesg(), and NULL_STR.

Referenced by tags().

double Animator::get_time_scale  )  const [inline]
 

Definition at line 69 of file animator.H.

References _time_scale.

void Animator::inc_frame int  inc  )  [protected]
 

Definition at line 191 of file animator.C.

References _cur_frame, _end_frame, _loop, _start_frame, and wrap().

Referenced by post_draw_CB(), and step().

virtual int DATA_ITEM::is_of_type Cstr_ptr &  t  )  const [inline, virtual, inherited]
 

Definition at line 214 of file data_item.H.

References IS.

Referenced by BMESH::operator=().

static DATA_ITEM* DATA_ITEM::lookup Cstr_ptr &  d  )  [inline, static, inherited]
 

Definition at line 222 of file data_item.H.

References DATA_ITEM::_hash, and HASH::find().

Referenced by DATA_ITEM::Decode(), FUNC_ITEM::FUNC_ITEM(), Patch::get_tex(), and BMESH::read_jot_stream().

int Animator::num_frames  )  const [inline, protected]
 

Definition at line 105 of file animator.H.

References _end_frame, and _start_frame.

bool Animator::on  )  const [inline]
 

Definition at line 46 of file animator.H.

References _on.

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

bool Animator::play_on  )  const [inline]
 

Definition at line 47 of file animator.H.

References _play_on.

Referenced by GL_VIEW::paint().

void Animator::post_draw_CB  ) 
 

Definition at line 248 of file animator.C.

References _cur_frame, _end_frame, _fps, _loop, _name, _play_on, _rend_on, _start_frame, _sync_on, _view, Image::data(), err_msg(), Config::get_var_bool(), inc_frame(), press_stop(), VIEW_SIZE, and Image::write_png().

Referenced by VIEW::swap().

double Animator::pre_draw_CB  ) 
 

VIEW Callbacks

Definition at line 232 of file animator.C.

References _cur_frame, _fps, _on, _start_frame, _sync_on, _time_scale, _timer, and stop_watch::elapsed_time().

Referenced by VIEW::paint().

void Animator::press_beginning  ) 
 

Definition at line 86 of file animator.C.

References _cur_frame, _start_frame, _timer, and stop_watch::set_elapsed_time().

void Animator::press_jog_fwd  )  [inline]
 

Definition at line 60 of file animator.H.

References _jog_size, and step().

void Animator::press_jog_rev  )  [inline]
 

Definition at line 59 of file animator.H.

References _jog_size, and step().

void Animator::press_play  ) 
 

Definition at line 96 of file animator.C.

References _play_on, _timer, stop_watch::resume(), and show_msg().

void Animator::press_render  ) 
 

Definition at line 127 of file animator.C.

References _rend_on, _sync_on, and show_msg().

void Animator::press_step_fwd  )  [inline]
 

Definition at line 58 of file animator.H.

References step().

void Animator::press_step_rev  )  [inline]
 

Definition at line 57 of file animator.H.

References step().

void Animator::press_stop  ) 
 

Definition at line 111 of file animator.C.

References _play_on, _timer, stop_watch::pause(), and show_msg().

Referenced by post_draw_CB().

void Animator::press_sync  ) 
 

Definition at line 147 of file animator.C.

References _rend_on, _sync_on, and show_msg().

void Animator::put_name TAGformat d  )  const [protected, virtual]
 

Definition at line 404 of file animator.C.

References _name, TAGformat::end_id(), ERR_LEV_SPAM, err_mesg(), TAGformat::id(), and NULL_STR.

Referenced by tags().

virtual void DATA_ITEM::recompute  )  [inline, virtual, inherited]
 

Reimplemented in Patch.

Definition at line 208 of file data_item.H.

Referenced by DATA_ITEM::decode().

bool Animator::rend_on  )  const [inline]
 

Definition at line 48 of file animator.H.

References _rend_on.

Referenced by GL_VIEW::paint().

void Animator::set_current_frame int  f  )  [inline]
 

Definition at line 73 of file animator.H.

References _cur_frame.

static void DATA_ITEM::set_default_decoder DATA_ITEM *(*)(STDdstream &, Cstr_ptr &, DATA_ITEM *)  d  )  [inline, static, inherited]
 

Definition at line 218 of file data_item.H.

References DATA_ITEM::_decode_unknown.

void Animator::set_end_frame int  f  )  [inline]
 

Definition at line 76 of file animator.H.

References _end_frame.

void Animator::set_fps int  fps  )  [inline]
 

Definition at line 62 of file animator.H.

References _fps.

void Animator::set_jog_size int  jog  )  [inline]
 

Definition at line 65 of file animator.H.

References _jog_size.

void Animator::set_loop bool  l  )  [inline]
 

Definition at line 79 of file animator.H.

References _loop.

void Animator::set_name str_ptr  name  )  [inline]
 

Definition at line 71 of file animator.H.

References _name.

void Animator::set_time_scale double  s  )  [inline]
 

Definition at line 68 of file animator.H.

References _time_scale.

int& Animator::start_frame_  )  [inline, protected]
 

Definition at line 95 of file animator.H.

References _start_frame.

Referenced by tags().

STAT_STR_RET DATA_ITEM::static_name  )  [static, inherited]
 

Definition at line 31 of file data_item.C.

References RET_STAT_STR.

Referenced by BALLwidget_anchor::BALLwidget_anchor(), CAMwidget_anchor::CAMwidget_anchor(), Patch::cur_tex(), OGLTexture::draw_id_ref(), OGLTexture::draw_id_triangles(), OGLTexture::draw_vis_ref(), VIEW::get_view_animator(), GRIDwidget_anchor::GRIDwidget_anchor(), and toggle_sil_frame().

void Animator::step int  inc  )  [protected]
 

Definition at line 205 of file animator.C.

References _cur_frame, _end_frame, _fps, _play_on, _start_frame, _sync_on, _timer, stop_watch::inc_elapsed_time(), inc_frame(), stop_watch::is_paused(), and show_msg().

Referenced by press_jog_fwd(), press_jog_rev(), press_step_fwd(), and press_step_rev().

CTAGlist & Animator::tags  )  const [virtual]
 

Reimplemented from DATA_ITEM.

Definition at line 354 of file animator.C.

References _a_tags, end_frame_(), fps_(), get_name(), put_name(), and start_frame_().

void Animator::toggle_activation  ) 
 

Definition at line 56 of file animator.C.

References _end_frame, _fps, _name, _on, _start_frame, _timer, debug, err_adv(), NULL_STR, stop_watch::set_elapsed_time(), and show_msg().


Member Data Documentation

TAGlist * Animator::_a_tags = 0 [static, private]
 

Definition at line 14 of file animator.H.

Referenced by tags().

int DATA_ITEM::_copy [protected, inherited]
 

Definition at line 197 of file data_item.H.

Referenced by DATA_ITEM::Decode().

int Animator::_cur_frame [protected]
 

Definition at line 25 of file animator.H.

Referenced by get_current_frame(), inc_frame(), post_draw_CB(), pre_draw_CB(), press_beginning(), set_current_frame(), and step().

TAGlist DATA_ITEM::_DEFINERtags [protected, inherited]
 

Definition at line 198 of file data_item.H.

Referenced by DATA_ITEM::tags().

int Animator::_end_frame [protected]
 

Definition at line 24 of file animator.H.

Referenced by end_frame_(), format(), get_end_frame(), inc_frame(), num_frames(), post_draw_CB(), set_end_frame(), step(), and toggle_activation().

int Animator::_fps [protected]
 

Definition at line 22 of file animator.H.

Referenced by format(), fps_(), get_fps(), post_draw_CB(), pre_draw_CB(), set_fps(), step(), and toggle_activation().

int Animator::_jog_size [protected]
 

Definition at line 26 of file animator.H.

Referenced by get_jog_size(), press_jog_fwd(), press_jog_rev(), and set_jog_size().

bool Animator::_loop [protected]
 

Definition at line 27 of file animator.H.

Referenced by get_loop(), inc_frame(), post_draw_CB(), and set_loop().

str_ptr Animator::_name [protected]
 

Definition at line 19 of file animator.H.

Referenced by format(), get_name(), post_draw_CB(), put_name(), set_name(), and toggle_activation().

bool Animator::_on [protected]
 

Definition at line 34 of file animator.H.

Referenced by on(), pre_draw_CB(), and toggle_activation().

bool Animator::_play_on [protected]
 

Definition at line 35 of file animator.H.

Referenced by play_on(), post_draw_CB(), press_play(), press_stop(), and step().

bool Animator::_rend_on [protected]
 

Definition at line 36 of file animator.H.

Referenced by post_draw_CB(), press_render(), press_sync(), and rend_on().

int Animator::_start_frame [protected]
 

Definition at line 23 of file animator.H.

Referenced by format(), inc_frame(), num_frames(), post_draw_CB(), pre_draw_CB(), press_beginning(), start_frame_(), step(), and toggle_activation().

bool Animator::_sync_on [protected]
 

Definition at line 37 of file animator.H.

Referenced by post_draw_CB(), pre_draw_CB(), press_render(), press_sync(), and step().

double Animator::_time_scale [protected]
 

Definition at line 38 of file animator.H.

Referenced by get_time_scale(), pre_draw_CB(), and set_time_scale().

stop_watch Animator::_timer [protected]
 

Definition at line 31 of file animator.H.

Referenced by Animator(), pre_draw_CB(), press_beginning(), press_play(), press_stop(), step(), and toggle_activation().

VIEWptr Animator::_view [protected]
 

Definition at line 18 of file animator.H.

Referenced by post_draw_CB().


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