Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

AnimControlCollection Class Reference

#include <animControlCollection.h>

Inheritance diagram for AnimControlCollection:

PartBundle CharacterJointBundle List of all members.

Private Types

typedef pmap< string, PT(AnimControlControls )

Private Member Functions

 ~AnimControlCollection ()
void store_anim (AnimControl *control, const string &name)
AnimControlfind_anim (const string &name) const
bool unbind_anim (const string &name)
int get_num_anims () const
void clear_anims ()
INLINE void set_stop_event (const CPT_Event &stop_event)
INLINE void clear_stop_event ()
INLINE bool has_stop_event () const
INLINE CPT_Event get_stop_event () const
INLINE bool play (const string &anim_name)
INLINE bool play (const string &anim_name, int from, int to)
INLINE bool loop (const string &anim_name, bool restart)
INLINE bool loop (const string &anim_name, bool restart, int from, int to)
INLINE bool stop (const string &anim_name)
INLINE bool pose (const string &anim_name, int frame)
void play_all ()
void play_all (int from, int to)
void loop_all (bool restart)
void loop_all (bool restart, int from, int to)
bool stop_all ()
void pose_all (int frame)
INLINE int get_frame (const string &anim_name) const
INLINE int get_frame () const
INLINE int get_num_frames (const string &anim_name) const
INLINE bool is_playing (const string &anim_name) const
INLINE bool is_playing () const
string which_anim_playing () const

Private Attributes

PUBLISHED __pad0__: AnimControlCollection()
Controls _controls
CPT_Event _stop_event
AnimControl_last_started_control

Member Typedef Documentation

typedef pmap<string, PT(AnimControl) AnimControlCollection::Controls) [private]
 

Definition at line 88 of file animControlCollection.h.


Constructor & Destructor Documentation

AnimControlCollection::~AnimControlCollection  )  [private]
 

Definition at line 40 of file animControlCollection.cxx.


Member Function Documentation

void AnimControlCollection::clear_anims  )  [private]
 

Definition at line 118 of file animControlCollection.cxx.

References _controls.

INLINE void AnimControlCollection::clear_stop_event  )  [private]
 

AnimControl * AnimControlCollection::find_anim const string &  name  )  const [private]
 

Definition at line 72 of file animControlCollection.cxx.

References _controls, and NULL.

Referenced by bind_anims().

INLINE int AnimControlCollection::get_frame  )  const [private]
 

INLINE int AnimControlCollection::get_frame const string &  anim_name  )  const [private]
 

int AnimControlCollection::get_num_anims  )  const [private]
 

Definition at line 108 of file animControlCollection.cxx.

References _controls.

INLINE int AnimControlCollection::get_num_frames const string &  anim_name  )  const [private]
 

INLINE CPT_Event AnimControlCollection::get_stop_event  )  const [private]
 

INLINE bool AnimControlCollection::has_stop_event  )  const [private]
 

INLINE bool AnimControlCollection::is_playing  )  const [private]
 

INLINE bool AnimControlCollection::is_playing const string &  anim_name  )  const [private]
 

INLINE bool AnimControlCollection::loop const string &  anim_name,
bool  restart,
int  from,
int  to
[private]
 

INLINE bool AnimControlCollection::loop const string &  anim_name,
bool  restart
[private]
 

void AnimControlCollection::loop_all bool  restart,
int  from,
int  to
[private]
 

Definition at line 167 of file animControlCollection.cxx.

References _controls.

void AnimControlCollection::loop_all bool  restart  )  [private]
 

Definition at line 154 of file animControlCollection.cxx.

References _controls.

Referenced by herc_keys(), load_our_models(), and WindowFramework::loop_animations().

INLINE bool AnimControlCollection::play const string &  anim_name,
int  from,
int  to
[private]
 

INLINE bool AnimControlCollection::play const string &  anim_name  )  [private]
 

void AnimControlCollection::play_all int  from,
int  to
[private]
 

Definition at line 141 of file animControlCollection.cxx.

References _controls.

void AnimControlCollection::play_all  )  [private]
 

Definition at line 128 of file animControlCollection.cxx.

References _controls.

INLINE bool AnimControlCollection::pose const string &  anim_name,
int  frame
[private]
 

void AnimControlCollection::pose_all int  frame  )  [private]
 

Definition at line 201 of file animControlCollection.cxx.

References _controls.

INLINE void AnimControlCollection::set_stop_event const CPT_Event stop_event  )  [private]
 

INLINE bool AnimControlCollection::stop const string &  anim_name  )  [private]
 

bool AnimControlCollection::stop_all  )  [private]
 

Definition at line 182 of file animControlCollection.cxx.

References _controls.

void AnimControlCollection::store_anim AnimControl control,
const string &  name
[private]
 

Definition at line 53 of file animControlCollection.cxx.

References _controls, _last_started_control, and NULL.

Referenced by PartBundle::bind_anim(), and bind_anims().

bool AnimControlCollection::unbind_anim const string &  name  )  [private]
 

Definition at line 89 of file animControlCollection.cxx.

References _controls, _last_started_control, and NULL.

string AnimControlCollection::which_anim_playing  )  const [private]
 

Definition at line 217 of file animControlCollection.cxx.

References _controls.


Member Data Documentation

PUBLISHED AnimControlCollection::__pad0__ [private]
 

Reimplemented in PartBundle, and CharacterJointBundle.

Definition at line 44 of file animControlCollection.h.

Controls AnimControlCollection::_controls [private]
 

Definition at line 89 of file animControlCollection.h.

Referenced by clear_anims(), find_anim(), get_num_anims(), loop_all(), play_all(), pose_all(), stop_all(), store_anim(), unbind_anim(), and which_anim_playing().

AnimControl* AnimControlCollection::_last_started_control [private]
 

Definition at line 91 of file animControlCollection.h.

Referenced by store_anim(), and unbind_anim().

CPT_Event AnimControlCollection::_stop_event [private]
 

Definition at line 90 of file animControlCollection.h.


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:11:18 2003 for Panda by doxygen1.3