14 #ifndef DAECHARACTER_H 15 #define DAECHARACTER_H 25 #include <FCDocument/FCDSceneNode.h> 26 #include <FCDocument/FCDControllerInstance.h> 27 #include <FCDocument/FCDSkinController.h> 28 #include <FCDocument/FCDGeometryMesh.h> 40 INLINE
Joint(
EggGroup *group,
const FCDSceneNode *scene_node) :
42 _scene_node(scene_node),
44 _bind_pose(LMatrix4d::ident_mat()) {}
48 const FCDSceneNode *_scene_node;
51 typedef epvector<Joint> Joints;
56 const LMatrix4d &transform = LMatrix4d::ident_mat());
67 const FCDGeometryMesh *_skin_mesh;
68 const FCDControllerInstance *_instance;
69 LMatrix4d _bind_shape_mat;
73 const FCDSkinController *_skin_controller;
79 return get_class_type();
81 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
85 static void init_type() {
86 TypedReferenceCount::init_type();
88 TypedReferenceCount::get_class_type());
void r_collect_keys(FCDSceneNode *node, pset< float > &keys)
Collects all animation keys found for the given node tree.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
A base class for things which need to inherit from both TypedObject and from ReferenceCount.
Class representing an animated character.
This class supervises the construction of an EggData structure from a DAE file.
The main glue of the egg hierarchy, this corresponds to the <Group>, <Instance>, and <Joint> type nod...
void influence_vertex(int index, EggVertex *vertex)
Adds the influences for the given vertex.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Any one-, two-, three-, or four-component vertex, possibly with attributes such as a normal.
void bind_joints(JointMap &joint_map)
Binds the joints to the character.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is our own Panda specialization on the default STL set.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
void build_table(EggTable *parent, FCDSceneNode *node, const pset< float > &keys)
Processes a joint node and its transforms.
void collect_keys(pset< float > &keys)
Collects all animation keys of animations applied to this character.
void adjust_joints(FCDSceneNode *node, const JointMap &joint_map, const LMatrix4d &transform=LMatrix4d::ident_mat())
Traverses through the character hierarchy in order to bind the mesh to the character.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.