Go to the documentation of this file.
43 explicit Character(
const std::string &name);
53 calc_tight_bounds(LPoint3 &min_point, LPoint3 &max_point,
56 Thread *current_thread)
const;
66 void set_lod_animation(
const LPoint3 ¢er,
67 PN_stdfloat far_distance, PN_stdfloat near_distance,
68 PN_stdfloat delay_factor);
69 void clear_lod_animation();
74 void write_parts(std::ostream &out)
const;
75 void write_part_values(std::ostream &out)
const;
90 void set_lod_current_delay(
double delay);
108 PT(
Geom) copy_geom(
const Geom *source,
128 void r_clear_joint_characters(
PartGroup *part);
133 double _last_auto_update;
136 double _view_distance2;
139 PN_stdfloat _lod_far_distance;
140 PN_stdfloat _lod_near_distance;
141 PN_stdfloat _lod_delay_factor;
142 bool _do_lod_animation;
150 unsigned int _temp_num_parts;
164 return get_class_type();
166 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
170 static void init_type() {
171 PartBundleNode::init_type();
173 PartBundleNode::get_class_type());
A container for geometry primitives.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual PandaNode * combine_with(PandaNode *other)
Collapses this PandaNode with the other PandaNode, if possible, and returns a pointer to the combined...
Stores the total set of VertexSliders that the vertices in a particular GeomVertexData object might d...
This is the base class for PartRoot and MovingPart.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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 our own Panda specialization on the default STL map.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is a trivial class returned by PartBundleNode::get_bundle().
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
This represents one joint of the character's animation, containing an animating transform matrix.
virtual PandaNode * dupe_for_flatten() const
This is similar to make_copy(), but it makes a copy for the specific purpose of flatten.
Base class for objects that can be written to and read from Bam files.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
TypeHandle is the identifier used to differentiate C++ class types.
This is a specialization on VertexSlider that returns the slider value associated with a particular C...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This is a morph slider within the character.
A lightweight class that represents a single element that may be timed and/or counted via stats.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
This is our own Panda specialization on the default STL list.
This is an abstract base class that retains some slider value, which is a linear value that typically...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The collection of all the joints and sliders in the character.
virtual PandaNode * make_copy() const
Returns a newly-allocated PandaNode that is a shallow copy of this one.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write_datagram(BamWriter *manager, Datagram &me)
Writes the contents of this object to the datagram for shipping out to a Bam file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
A thread; that is, a lightweight process.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static void register_with_read_factory()
Tells the BamReader how to create objects of type PandaNode.
This is the root of a MovingPart hierarchy.
An animated character, with skeleton-morph animation and either soft- skinned or hard-skinned vertice...
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().
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.