18 #include "pandabase.h" 20 #include "characterJoint.h" 21 #include "characterSlider.h" 22 #include "characterVertexSlider.h" 23 #include "jointVertexTransform.h" 24 #include "partBundleNode.h" 25 #include "vector_PartGroupStar.h" 26 #include "pointerTo.h" 28 #include "pStatCollector.h" 29 #include "transformTable.h" 30 #include "transformBlendTable.h" 31 #include "sliderTable.h" 34 class ComputedVertices;
55 virtual CPT(TransformState)
58 const TransformState *transform,
59 Thread *current_thread)
const;
69 void set_lod_animation(
const LPoint3 ¢er,
70 PN_stdfloat far_distance, PN_stdfloat near_distance,
71 PN_stdfloat delay_factor);
72 void clear_lod_animation();
77 void write_parts(ostream &out)
const;
78 void write_part_values(ostream &out)
const;
93 void set_lod_current_delay(
double delay);
105 const Character *from, NodeMap &node_map,
106 const JointMap &joint_map, GeomVertexMap &gvmap,
107 GeomJointMap &gjmap, GeomSliderMap &gsmap);
109 const JointMap &joint_map, GeomVertexMap &gvmap,
110 GeomJointMap &gjmap, GeomSliderMap &gsmap);
111 PT(
Geom) copy_geom(
const Geom *source,
112 const JointMap &joint_map, GeomVertexMap &gvmap,
113 GeomJointMap &gjmap, GeomSliderMap &gsmap);
118 const JointMap &joint_map,
119 GeomJointMap &gjmap);
122 GeomJointMap &gjmap);
124 GeomSliderMap &gsmap);
127 const JointMap &joint_map,
128 GeomJointMap &gjmap);
131 void r_clear_joint_characters(
PartGroup *part);
137 double _last_auto_update;
140 double _view_distance2;
143 PN_stdfloat _lod_far_distance;
144 PN_stdfloat _lod_near_distance;
145 PN_stdfloat _lod_delay_factor;
146 bool _do_lod_animation;
155 unsigned int _temp_num_parts;
169 return get_class_type();
171 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
175 static void init_type() {
176 PartBundleNode::init_type();
177 register_type(_type_handle,
"Character",
178 PartBundleNode::get_class_type());
185 #include "character.I" A basic node of the scene graph or data graph.
This is our own Panda specialization on the default STL map.
The collection of all the joints and sliders in the character.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
virtual PandaNode * combine_with(PandaNode *other)
Collapses this PandaNode with the other PandaNode, if possible, and returns a pointer to the combined...
An animated character, with skeleton-morph animation and either soft-skinned or hard-skinned vertices...
Base class for objects that can be written to and read from Bam files.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
This is a specialization on VertexSlider that returns the slider value associated with a particular C...
This is an abstract base class that retains some slider value, which is a linear value that typically...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is our own Panda specialization on the default STL list.
This is a morph slider within the character.
static void register_with_read_factory()
Tells the BamReader how to create objects of type PandaNode.
This is a trivial class returned by PartBundleNode::get_bundle().
A lightweight class that represents a single element that may be timed and/or counted via stats...
Stores the total set of VertexSliders that the vertices in a particular GeomVertexData object might d...
This is a node that contains a pointer to an PartBundle.
virtual PandaNode * dupe_for_flatten() const
This is similar to make_copy(), but it makes a copy for the specific purpose of flatten.
A container for geometry primitives.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
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 PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
A thread; that is, a lightweight process.
This is the root of a MovingPart hierarchy.
This represents one joint of the character's animation, containing an animating transform matrix...
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()...
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling...
This is the base class for PartRoot and MovingPart.