14 #ifndef CHARACTERJOINT_H
15 #define CHARACTERJOINT_H
39 PartGroup *parent,
const std::string &name,
40 const LMatrix4 &default_value);
48 bool self_changed,
bool parent_changed,
50 virtual void do_xform(
const LMatrix4 &mat,
const LMatrix4 &inv_mat);
54 bool remove_net_transform(
PandaNode *node);
55 bool has_net_transform(
PandaNode *node)
const;
56 void clear_net_transforms();
59 bool add_local_transform(
PandaNode *node);
60 bool remove_local_transform(
PandaNode *node);
61 bool has_local_transform(
PandaNode *node)
const;
62 void clear_local_transforms();
65 void get_transform(LMatrix4 &transform)
const;
66 INLINE
const LMatrix4 &get_transform()
const;
69 void get_net_transform(LMatrix4 &transform)
const;
99 int _num_net_nodes, _num_local_nodes;
108 LMatrix4 _net_transform;
109 LMatrix4 _initial_net_transform_inverse;
115 LMatrix4 _skinning_matrix;
119 return get_class_type();
121 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
125 static void init_type() {
126 MovingPartMatrix::init_type();
128 MovingPartMatrix::get_class_type());
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...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
The collection of all the joints and sliders in the character.
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 ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual bool update_internals(PartBundle *root, PartGroup *parent, bool self_changed, bool parent_changed, Thread *current_thread)
This is called by do_update() whenever the part or some ancestor has changed values.
virtual int complete_pointers(TypedWritable **plist, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
This is a particular kind of MovingPart that accepts a matrix each frame.
static void register_with_read_factory()
Factory method to generate a MovingPartMatrix object.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Function to write the important information in the particular object to a Datagram.
This is a set of zero or more NodePaths.
A basic node of the scene graph or data graph.
This is the root of a MovingPart hierarchy.
This is the base class for PartRoot and MovingPart.
virtual PartGroup * make_copy() const
Allocates and returns a new copy of the node.
virtual bool is_character_joint() const
Returns true if this part is a CharacterJoint, false otherwise.
virtual void do_xform(const LMatrix4 &mat, const LMatrix4 &inv_mat)
Called by PartBundle::xform(), this indicates the indicated transform is being applied to the root jo...
A thread; that is, a lightweight process.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
A specialization of ordered_vector that emulates a standard STL set: one copy of each element is allo...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...