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