Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions
CharacterJointBundle Class Reference

The collection of all the joints and sliders in the character. More...

#include "characterJointBundle.h"

Inheritance diagram for CharacterJointBundle:
PartBundle PartGroup TypedWritableReferenceCount Namable TypedWritable ReferenceCount MemoryBase TypedObject MemoryBase MemoryBase

List of all members.

Public Member Functions

 CharacterJointBundle (const string &name="")
 Normally, there is no need to create a CharacterJointBundle directly.
virtual TypeHandle force_init_type ()
Characterget_node (int n) const
 Returns the nth Character associated with this PartBundle.
virtual TypeHandle get_type () const

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
static TypedWritablemake_CharacterJointBundle (const FactoryParams &params)
 Factory method to generate a CharacterJointBundle object.
static void register_with_read_factory ()
 Factory method to generate a CharacterJointBundle object.

Protected Member Functions

 CharacterJointBundle (const CharacterJointBundle &copy)
 Normally, you'd use make_copy() or copy_subgraph() to make a copy of this.
virtual void add_node (PartBundleNode *node)
 Adds the PartBundleNode pointer to the set of nodes associated with the PartBundle.
virtual PartGroupmake_copy () const
 Allocates and returns a new copy of the node.
virtual void remove_node (PartBundleNode *node)
 Removes the PartBundleNode pointer from the set of nodes associated with the PartBundle.

Detailed Description

The collection of all the joints and sliders in the character.

Definition at line 31 of file characterJointBundle.h.


Constructor & Destructor Documentation

Normally, you'd use make_copy() or copy_subgraph() to make a copy of this.

Definition at line 28 of file characterJointBundle.I.

Referenced by make_CharacterJointBundle(), and make_copy().

CharacterJointBundle::CharacterJointBundle ( const string &  name = "")

Normally, there is no need to create a CharacterJointBundle directly.

The Character node will automatically create one for itself.

Definition at line 31 of file characterJointBundle.cxx.


Member Function Documentation

void CharacterJointBundle::add_node ( PartBundleNode node) [protected, virtual]

Adds the PartBundleNode pointer to the set of nodes associated with the PartBundle.

Normally called only by the PartBundleNode itself, for instance when the bundle is flattened with another node.

Reimplemented from PartBundle.

Definition at line 63 of file characterJointBundle.cxx.

References TypedObject::is_of_type().

Character * CharacterJointBundle::get_node ( int  n) const [inline]

Returns the nth Character associated with this PartBundle.

Reimplemented from PartBundle.

Definition at line 40 of file characterJointBundle.I.

References PartBundle::get_node().

Referenced by remove_node().

PartGroup * CharacterJointBundle::make_copy ( ) const [protected, virtual]

Allocates and returns a new copy of the node.

Children are not copied, but see copy_subgraph().

Reimplemented from PartBundle.

Definition at line 50 of file characterJointBundle.cxx.

References CharacterJointBundle().

Factory method to generate a CharacterJointBundle object.

Reimplemented from PartBundle.

Definition at line 139 of file characterJointBundle.cxx.

References BamReader::get_factory(), make_CharacterJointBundle(), and Factory< Type >::register_factory().

void CharacterJointBundle::remove_node ( PartBundleNode node) [protected, virtual]

Removes the PartBundleNode pointer from the set of nodes associated with the PartBundle.

Normally called only by the PartBundleNode itself, for instance when the bundle is flattened with another node.

Reimplemented from PartBundle.

Definition at line 81 of file characterJointBundle.cxx.

References get_node(), and PartBundle::get_num_nodes().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations