|
|
|
This is a node that contains a pointer to an PartBundle.
More...
#include "partBundleNode.h"
List of all members.
Public Member Functions |
| | PartBundleNode (const string &name, PartBundle *bundle) |
| | The PartBundle and its node should be constructed together.
|
| virtual void | apply_attribs_to_vertices (const AccumulatedAttribs &attribs, int attrib_types, GeomTransformer &transformer) |
| | Applies whatever attributes are specified in the AccumulatedAttribs object (and by the attrib_types bitmask) to the vertices on this node, if appropriate.
|
| virtual int | complete_pointers (TypedWritable **p_list, BamReader *manager) |
| | Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
|
|
virtual TypeHandle | force_init_type () |
|
PartBundle * | get_bundle (int n) const |
| PartBundleHandle * | get_bundle_handle (int n) const |
| | Returns the PartBundleHandle that wraps around the actual nth PartBundle.
|
|
int | get_num_bundles () const |
|
virtual TypeHandle | get_type () const |
|
| MAKE_SEQ (get_bundles, get_num_bundles, get_bundle) |
|
| MAKE_SEQ (get_bundle_handles, get_num_bundles, get_bundle_handle) |
| virtual void | write_datagram (BamWriter *manager, Datagram &me) |
| | Writes the contents of this object to the datagram for shipping out to a Bam file.
|
| virtual void | xform (const LMatrix4f &mat) |
| | Transforms the contents of this PandaNode by the indicated matrix, if it means anything to do so.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
Protected Types |
|
typedef pvector< PT(PartBundleHandle) > | Bundles |
Protected Member Functions |
| | PartBundleNode () |
| | For internal use only.
|
| | PartBundleNode (const PartBundleNode ©) |
| | Use make_copy() or copy_subgraph() to copy one of these.
|
|
void | add_bundle (PartBundle *bundle) |
|
void | add_bundle_handle (PartBundleHandle *handle) |
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new PandaNode.
|
| void | steal_bundles (PartBundleNode *other) |
| | Moves the PartBundles from the other node onto this one.
|
| virtual void | update_bundle (PartBundleHandle *old_bundle_handle, PartBundle *new_bundle) |
| | Replaces the contents of the indicated PartBundleHandle (presumably stored within this node) with new_bundle.
|
Protected Attributes |
|
Bundles | _bundles |
Detailed Description
This is a node that contains a pointer to an PartBundle.
Like AnimBundleNode, it exists to make it easy to store PartBundles in the scene graph.
(Unlike AnimBundleNode, however, PartBundleNode has an additional function: it is also the base class of the Character node type, which adds additional functionality.)
Definition at line 38 of file partBundleNode.h.
Constructor & Destructor Documentation
| PartBundleNode::PartBundleNode |
( |
const string & |
name, |
|
|
PartBundle * |
bundle |
|
) |
| [inline] |
| PartBundleNode::PartBundleNode |
( |
| ) |
[inline, protected] |
| PartBundleNode::PartBundleNode |
( |
const PartBundleNode & |
copy | ) |
[inline, protected] |
Use make_copy() or copy_subgraph() to copy one of these.
This constructor does not copy the bundle pointers.
Definition at line 50 of file partBundleNode.I.
Member Function Documentation
| void PartBundleNode::steal_bundles |
( |
PartBundleNode * |
other | ) |
[protected] |
| void PartBundleNode::xform |
( |
const LMatrix4f & |
mat | ) |
[virtual] |
The documentation for this class was generated from the following files:
| | |