14#ifndef CHARACTERMAKER_H
15#define CHARACTERMAKER_H
45class EXPCL_PANDA_EGG2PG CharacterMaker {
65 void make_geometry(
EggNode *egg_node);
71 typedef pmap<EggNode *, int> NodeMap;
74 typedef vector_PartGroupStar Parts;
78 VertexTransforms _vertex_transforms;
81 typedef pmap<std::string, PT(
VertexSlider) > VertexSliders;
82 VertexSliders _vertex_sliders;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The collection of all the joints and sliders in the character.
int egg_to_index(EggNode *egg_node) const
Returns the index number associated with the PartGroup node for the given egg node,...
std::string get_name() const
Returns the name of the character.
int create_slider(const std::string &name)
Creates a new morph slider of the given name, and returns its index.
VertexSlider * egg_to_slider(const std::string &name)
Returns the VertexSlider corresponding to the indicated egg slider name.
PartGroup * egg_to_part(EggNode *egg_node) const
Returns the PartGroup node associated with the given egg node.
VertexTransform * egg_to_transform(EggNode *egg_node)
Returns a JointVertexTransform suitable for applying the animation associated with the given egg node...
PandaNode * part_to_node(PartGroup *part, const std::string &name) const
Returns the scene graph node associated with the given PartGroup node, if there is one.
This is a morph slider within the character.
An animated character, with skeleton-morph animation and either soft- skinned or hard-skinned vertice...
A type of group node that holds related subnodes.
A base class for nodes in the hierarchy that are not leaf nodes.
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
Converts an egg data structure, possibly read from an egg file but not necessarily,...
A base class for things that may be directly added into the egg hierarchy.
A base class for any of a number of kinds of geometry primitives: polygons, point lights,...
A node that holds Geom objects, renderable pieces of geometry.
This is the base class for a single animatable piece that may be bound to one channel (or more,...
A basic node of the scene graph or data graph.
This is the base class for PartRoot and MovingPart.
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.
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.