Go to the documentation of this file.
26 CharacterJointBundle::
27 CharacterJointBundle(
const std::string &name) :
PartBundle(name) {
33 CharacterJointBundle::
34 ~CharacterJointBundle() {
51 void CharacterJointBundle::
53 PartBundle::add_node(node);
54 if (node->
is_of_type(Character::get_class_type())) {
56 r_set_character(
this, character);
65 void CharacterJointBundle::
67 PartBundle::remove_node(node);
79 void CharacterJointBundle::
81 if (group ==
nullptr) {
91 Children::const_iterator ci;
92 for (ci = group->_children.begin(); ci != group->_children.end(); ++ci) {
93 r_set_character((*ci), character);
108 me->fillin(scan, manager);
This is the base class for PartRoot and MovingPart.
This is a node that contains a pointer to an PartBundle.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
static WritableFactory * get_factory()
Returns the global WritableFactory for generating TypedWritable objects.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This represents one joint of the character's animation, containing an animating transform matrix.
Base class for objects that can be written to and read from Bam files.
virtual bool is_character_joint() const
Returns true if this part is a CharacterJoint, false otherwise.
get_num_nodes
Returns the number of PartBundleNodes that contain a pointer to this PartBundle.
TypeHandle is the identifier used to differentiate C++ class types.
void register_finalize(TypedWritable *whom)
Should be called by an object reading itself from the Bam file to indicate that this particular objec...
static TypedWritable * make_CharacterJointBundle(const FactoryParams ¶ms)
Factory method to generate a CharacterJointBundle object.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_factory(TypeHandle handle, CreateFunc *func, void *user_data=nullptr)
Registers a new kind of thing the Factory will be able to create.
The collection of all the joints and sliders in the character.
get_node
Returns the nth PartBundleNode associated with this PartBundle.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static void register_with_read_factory()
Factory method to generate a CharacterJointBundle object.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void parse_params(const FactoryParams ¶ms, DatagramIterator &scan, BamReader *&manager)
Takes in a FactoryParams, passed from a WritableFactory into any TypedWritable's make function,...
This is the root of a MovingPart hierarchy.
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.
An animated character, with skeleton-morph animation and either soft- skinned or hard-skinned vertice...