|
|
|
This is the base class for AnimChannel and AnimBundle.
More...
#include "animGroup.h"
List of all members.
Public Member Functions |
| | AnimGroup (AnimGroup *parent, const string &name) |
| | Creates the AnimGroup, and adds it to the indicated parent.
|
| virtual int | complete_pointers (TypedWritable **p_list, BamReader *manager) |
| | Takes in a vector of pointes to TypedWritable objects that correspond to all the requests for pointers that this object made to BamReader.
|
| AnimGroup * | find_child (const string &name) const |
| | Returns the first descendant found with the indicated name, or NULL if no such descendant exists.
|
|
virtual TypeHandle | force_init_type () |
| AnimGroup * | get_child (int n) const |
| | Returns the nth child of the group.
|
| AnimGroup * | get_child_named (const string &name) const |
| | Returns the first child found with the indicated name, or NULL if no such child exists.
|
| int | get_num_children () const |
| | Returns the number of child nodes of the group.
|
|
virtual TypeHandle | get_type () const |
| virtual TypeHandle | get_value_type () const |
| | Returns the TypeHandle associated with the ValueType we are concerned with.
|
|
| MAKE_SEQ (get_children, get_num_children, get_child) |
| virtual void | output (ostream &out) const |
| | Writes a one-line description of the group.
|
| void | sort_descendants () |
| | Sorts the children nodes at each level of the hierarchy into alphabetical order.
|
| virtual void | write (ostream &out, int indent_level) const |
| | Writes a brief description of the group and all of its descendants.
|
| virtual void | write_datagram (BamWriter *manager, Datagram &me) |
| | Function to write the important information in the particular object to a Datagram.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
| static TypedWritable * | make_AnimGroup (const FactoryParams ¶ms) |
| | Factory method to generate a AnimGroup object.
|
| static void | register_with_read_factory () |
| | Factory method to generate a AnimGroup object.
|
Protected Types |
|
typedef pvector< PT(AnimGroup) > | Children |
Protected Member Functions |
| | AnimGroup (const string &name="") |
| | The default constructor is protected: don't try to create an AnimGroup without a parent.
|
| | AnimGroup (AnimGroup *parent, const AnimGroup ©) |
| | Creates a new AnimGroup, just like this one, without copying any children.
|
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | Function that reads out of the datagram (or asks manager to read) all of the data that is needed to re-create this object and stores it in the appropiate place.
|
| virtual AnimGroup * | make_copy (AnimGroup *parent) const |
| | Returns a copy of this object, and attaches it to the indicated parent (which may be NULL only if this is an AnimBundle).
|
|
| PT (AnimGroup) copy_subtree(AnimGroup *parent) const |
| void | write_descendants (ostream &out, int indent_level) const |
| | Writes a brief description of all of the group's descendants.
|
Protected Attributes |
|
Children | _children |
|
AnimBundle * | _root |
Detailed Description
This is the base class for AnimChannel and AnimBundle.
It implements a hierarchy of AnimChannels. The root of the hierarchy must be an AnimBundle.
Definition at line 36 of file animGroup.h.
Constructor & Destructor Documentation
Creates a new AnimGroup, just like this one, without copying any children.
The new copy is added to the indicated parent. Intended to be called by make_copy() only.
Definition at line 58 of file animGroup.cxx.
Creates the AnimGroup, and adds it to the indicated parent.
The only way to delete it subsequently is to delete the entire hierarchy.
Definition at line 78 of file animGroup.cxx.
Member Function Documentation
Sorts the children nodes at each level of the hierarchy into alphabetical order.
This should be done after creating the hierarchy, to guarantee that the correct names will match up together when the AnimBundle is later bound to a PlayerRoot.
Definition at line 185 of file animGroup.cxx.
The documentation for this class was generated from the following files:
| | |