#include <characterMaker.h>
Public Member Functions | |
CharacterMaker (EggGroup *root, EggLoader &loader) | |
Character * | make_node () |
PartGroup * | egg_to_part (EggNode *egg_node) const |
Returns the PartGroup node associated with the given egg node. | |
int | egg_to_index (EggNode *egg_node) const |
Returns the index number associated with the PartGroup node for the given egg node, or -1. | |
PandaNode * | part_to_node (PartGroup *part) const |
Returns the scene graph node associated with the given PartGroup node, if there is one. | |
int | create_slider (const string &name) |
Creates a new morph slider of the given name, and returns its index. | |
Private Types | |
typedef pmap< EggNode *, int > | NodeMap |
typedef vector_PartGroupStar | Parts |
Private Member Functions | |
CharacterJointBundle * | make_bundle () |
void | build_joint_hierarchy (EggNode *egg_node, PartGroup *part) |
void | parent_joint_nodes (PartGroup *part) |
Walks the joint hierarchy, and parents any explicit nodes created for the joints under the character node. | |
void | make_geometry (EggNode *egg_node) |
void | make_static_primitive (EggPrimitive *egg_primitive, EggGroupNode *prim_home) |
void | make_dynamic_primitive (EggPrimitive *egg_primitive, EggGroupNode *prim_home) |
EggGroupNode * | determine_primitive_home (EggPrimitive *egg_primitive) |
Private Attributes | |
NodeMap | _node_map |
Parts | _parts |
EggLoader & | _loader |
EggGroup * | _egg_root |
Character * | _character_node |
CharacterJointBundle * | _bundle |
ComputedVerticesMaker | _comp_verts_maker |
PartGroup * | _morph_root |
PartGroup * | _skeleton_root |
Definition at line 56 of file characterMaker.h.
|
Definition at line 81 of file characterMaker.h. |
|
Definition at line 84 of file characterMaker.h. |
|
Definition at line 44 of file characterMaker.cxx. References NULL. |
|
Definition at line 196 of file characterMaker.cxx. References EggGroupNode::const_iterator. |
|
Creates a new morph slider of the given name, and returns its index. This is actually called by ComputedVerticesMaker, which is responsible for identifying all the unique morph target names. Definition at line 156 of file characterMaker.cxx. References DCAST, EggGroup::get_class_type(), EggGroup::get_group_type(), EggGroup::GT_joint, and TypedObject::is_of_type(). |
|
Definition at line 352 of file characterMaker.cxx. References NULL. |
|
Returns the index number associated with the PartGroup node for the given egg node, or -1.
Definition at line 106 of file characterMaker.cxx. References _character_node, DCAST, CharacterJoint::get_class_type(), TypedObject::is_of_type(), and NULL. Referenced by make_node(). |
|
Returns the PartGroup node associated with the given egg node. If the egg node is not a node in the character's hierarchy, returns the top of the character's hierarchy. Definition at line 84 of file characterMaker.cxx. References _node_map. |
|
Definition at line 175 of file characterMaker.cxx. References EggTransform3d::get_transform(). |
|
Definition at line 333 of file characterMaker.cxx. References EggNode::get_parent(). |
|
Definition at line 276 of file characterMaker.cxx. References _loader. |
|
Definition at line 62 of file characterMaker.cxx. References _bundle, _parts, egg_to_index(), nassertr, and NULL. Referenced by EggLoader::make_node(). |
|
Definition at line 313 of file characterMaker.cxx. References EggPrimitive::const_iterator, and NULL. |
|
Walks the joint hierarchy, and parents any explicit nodes created for the joints under the character node.
Definition at line 252 of file characterMaker.cxx. |
|
Returns the scene graph node associated with the given PartGroup node, if there is one. If the PartGroup does not have an associated node, returns the character's top node. Definition at line 129 of file characterMaker.cxx. References _morph_root. |
|
Definition at line 90 of file characterMaker.h. Referenced by make_node(). |
|
Definition at line 89 of file characterMaker.h. Referenced by egg_to_index(). |
|
Definition at line 91 of file characterMaker.h. |
|
Definition at line 88 of file characterMaker.h. |
|
Definition at line 87 of file characterMaker.h. Referenced by make_geometry(). |
|
Definition at line 92 of file characterMaker.h. Referenced by part_to_node(). |
|
Definition at line 82 of file characterMaker.h. Referenced by egg_to_part(). |
|
Definition at line 85 of file characterMaker.h. Referenced by make_node(). |
|
Definition at line 93 of file characterMaker.h. |