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

AnimGroup Class Reference

#include <animGroup.h>

Inheritance diagram for AnimGroup:

TypedWritableReferenceCount Namable TypedWritable ReferenceCount TypedObject AnimBundle AnimChannelBase AnimChannel< SwitchType > AnimChannel< ACMatrixSwitchType > AnimChannel< ACScalarSwitchType > AnimChannelFixed< SwitchType > AnimChannelMatrixXfmTable AnimChannelScalarTable List of all members.

Public Member Functions

 AnimGroup (AnimGroup *parent, const string &name)
AnimGroup * get_child (int n) const
AnimGroup * find_child (const string &name) const
virtual TypeHandle get_value_type () const
void sort_descendants ()
virtual void write (ostream &out, int indent_level) const
virtual void write_datagram (BamWriter *manager, Datagram &me)
virtual int complete_pointers (TypedWritable **p_list, BamReader *manager)
virtual TypeHandle get_type () const
virtual TypeHandle force_init_type ()

Static Public Member Functions

void register_with_read_factory (void)
TypedWritablemake_AnimGroup (const FactoryParams &params)
TypeHandle get_class_type ()
void init_type ()

Public Attributes

PUBLISHED __pad0__: int get_num_children() const
PUBLISHED __pad1__: virtual void output(ostream &out) const

Protected Types

typedef pvector< PT(AnimGroup) Children )

Protected Member Functions

 AnimGroup (const string &name="")
void write_descendants (ostream &out, int indent_level) const
void fillin (DatagramIterator &scan, BamReader *manager)

Protected Attributes

Children _children
AnimBundle_root

Private Attributes

int _num_children

Static Private Attributes

TypeHandle _type_handle

Member Typedef Documentation

typedef pvector< PT(AnimGroup) AnimGroup::Children) [protected]
 

Definition at line 69 of file animGroup.h.


Constructor & Destructor Documentation

AnimGroup::AnimGroup const string &  name = ""  )  [inline, protected]
 

Definition at line 45 of file animGroup.h.

AnimGroup::AnimGroup AnimGroup *  parent,
const string &  name
 

Definition at line 44 of file animGroup.cxx.

References _children, _root, and NULL.


Member Function Documentation

int AnimGroup::complete_pointers TypedWritable **  p_list,
BamReader manager
[virtual]
 

Reimplemented from TypedWritable.

Definition at line 224 of file animGroup.cxx.

References _children, _num_children, _root, DCAST, TypeHandle::get_name(), get_type(), and TypedWritable::Null.

void AnimGroup::fillin DatagramIterator scan,
BamReader manager
[protected]
 

Reimplemented from TypedWritable.

Reimplemented in AnimBundle, AnimChannelBase, AnimChannelMatrixXfmTable, and AnimChannelScalarTable.

Definition at line 205 of file animGroup.cxx.

References _num_children, DatagramIterator::get_string(), DatagramIterator::get_uint16(), BamReader::read_pointer(), and Namable::set_name().

Referenced by AnimChannelBase::fillin(), AnimBundle::fillin(), and make_AnimGroup().

AnimGroup * AnimGroup::find_child const string &  name  )  const
 

Definition at line 81 of file animGroup.cxx.

References _children, and NULL.

virtual TypeHandle AnimGroup::force_init_type void   )  [inline, virtual]
 

Reimplemented from TypedWritableReferenceCount.

Reimplemented in AnimBundle, AnimChannel< SwitchType >, AnimChannelBase, AnimChannelFixed< SwitchType >, AnimChannelMatrixXfmTable, AnimChannelScalarTable, AnimChannel< ACScalarSwitchType >, and AnimChannel< ACMatrixSwitchType >.

Definition at line 91 of file animGroup.h.

References Namable::get_class_type(), and Namable::init_type().

AnimGroup * AnimGroup::get_child int  n  )  const
 

Definition at line 69 of file animGroup.cxx.

References _children, n, and NULL.

Referenced by PartGroup::check_hierarchy().

TypeHandle AnimGroup::get_class_type void   )  [inline, static]
 

Reimplemented from Namable.

Reimplemented in AnimBundle, AnimChannel< SwitchType >, AnimChannelBase, AnimChannelFixed< SwitchType >, AnimChannelMatrixXfmTable, AnimChannelScalarTable, AnimChannel< ACScalarSwitchType >, and AnimChannel< ACMatrixSwitchType >.

Definition at line 93 of file animGroup.h.

Referenced by AnimChannelBase::force_init_type(), AnimBundle::force_init_type(), AnimChannelBase::get_type(), AnimBundle::get_type(), AnimChannelBase::init_type(), AnimBundle::init_type(), and register_with_read_factory().

virtual TypeHandle AnimGroup::get_type void   )  const [inline, virtual]
 

Reimplemented from TypedWritableReferenceCount.

Reimplemented in AnimBundle, AnimChannel< SwitchType >, AnimChannelBase, AnimChannelFixed< SwitchType >, AnimChannelMatrixXfmTable, AnimChannelScalarTable, AnimChannel< ACScalarSwitchType >, and AnimChannel< ACMatrixSwitchType >.

Definition at line 88 of file animGroup.h.

References Namable::get_class_type().

Referenced by complete_pointers().

TypeHandle AnimGroup::get_value_type  )  const [virtual]
 

Reimplemented in AnimChannel< SwitchType >, AnimChannelBase, AnimChannel< ACScalarSwitchType >, and AnimChannel< ACMatrixSwitchType >.

Definition at line 106 of file animGroup.cxx.

References TypeHandle::none().

Referenced by PartGroup::check_hierarchy().

void AnimGroup::init_type void   )  [inline, static]
 

Reimplemented from Namable.

Reimplemented in AnimBundle, AnimChannel< SwitchType >, AnimChannelBase, AnimChannelFixed< SwitchType >, AnimChannelMatrixXfmTable, AnimChannelScalarTable, AnimChannel< ACScalarSwitchType >, and AnimChannel< ACMatrixSwitchType >.

Definition at line 96 of file animGroup.h.

References ReferenceCount::get_class_type(), TypedWritableReferenceCount::init_type(), and register_type().

Referenced by ConfigureFn(), AnimChannelBase::force_init_type(), AnimBundle::force_init_type(), AnimChannelBase::init_type(), and AnimBundle::init_type().

TypedWritable * AnimGroup::make_AnimGroup const FactoryParams params  )  [static]
 

Definition at line 249 of file animGroup.cxx.

References fillin(), params, and parse_params().

Referenced by register_with_read_factory().

void AnimGroup::register_with_read_factory void   )  [static]
 

Reimplemented in AnimBundle, AnimChannelMatrixXfmTable, and AnimChannelScalarTable.

Definition at line 266 of file animGroup.cxx.

References get_class_type(), BamReader::get_factory(), make_AnimGroup(), and Factory< TypedWritable >::register_factory().

Referenced by ConfigureFn().

void AnimGroup::sort_descendants  ) 
 

Definition at line 129 of file animGroup.cxx.

References _children.

Referenced by AnimBundleMaker::make_bundle().

void AnimGroup::write ostream &  out,
int  indent_level
const [virtual]
 

Reimplemented in AnimChannelMatrixXfmTable, and AnimChannelScalarTable.

Definition at line 156 of file animGroup.cxx.

References indent(), and write_descendants().

void AnimGroup::write_datagram BamWriter manager,
Datagram me
[virtual]
 

Implements TypedWritableReferenceCount.

Reimplemented in AnimBundle, AnimChannelBase, AnimChannelMatrixXfmTable, and AnimChannelScalarTable.

Definition at line 184 of file animGroup.cxx.

References _children, Datagram::add_string(), Datagram::add_uint16(), Namable::get_name(), and BamWriter::write_pointer().

Referenced by AnimChannelBase::write_datagram(), and AnimBundle::write_datagram().

void AnimGroup::write_descendants ostream &  out,
int  indent_level
const [protected]
 

Definition at line 169 of file animGroup.cxx.

References _children.

Referenced by write(), AnimChannelScalarTable::write(), and AnimChannelMatrixXfmTable::write().


Member Data Documentation

PUBLISHED AnimGroup::__pad0__
 

Reimplemented from Namable.

Reimplemented in AnimBundle.

Definition at line 52 of file animGroup.h.

PUBLISHED AnimGroup::__pad1__
 

Definition at line 62 of file animGroup.h.

Children AnimGroup::_children [protected]
 

Definition at line 70 of file animGroup.h.

Referenced by AnimGroup(), complete_pointers(), find_child(), get_child(), sort_descendants(), AnimChannelScalarTable::write(), AnimChannelMatrixXfmTable::write(), write_datagram(), and write_descendants().

int AnimGroup::_num_children [private]
 

Definition at line 85 of file animGroup.h.

Referenced by complete_pointers(), and fillin().

AnimBundle* AnimGroup::_root [protected]
 

Definition at line 71 of file animGroup.h.

Referenced by AnimGroup(), complete_pointers(), AnimChannelScalarTable::set_table(), and AnimChannelMatrixXfmTable::set_table().

TypeHandle AnimGroup::_type_handle [static, private]
 

Reimplemented from Namable.

Reimplemented in AnimBundle, AnimChannel< SwitchType >, AnimChannelBase, AnimChannelFixed< SwitchType >, AnimChannelMatrixXfmTable, AnimChannelScalarTable, AnimChannel< ACScalarSwitchType >, and AnimChannel< ACMatrixSwitchType >.

Definition at line 33 of file animGroup.cxx.


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