Panda3D

eggRetargetAnim.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file eggRetargetAnim.h
10 * @author drose
11 * @date 2005-05-05
12 */
13
14 #ifndef EGGRETARGETANIM_H
15 #define EGGRETARGETANIM_H
16
17 #include "pandatoolbase.h"
18
19 #include "eggCharacterFilter.h"
20 #include "luse.h"
21 #include "pvector.h"
22 #include "pset.h"
23
24 class EggCharacterData;
25 class EggJointData;
26 class EggCharacterDb;
27
28 /**
29 * Retargets one or more animation files from one particular skeleton to a
30 * similar, but differently scaled skeleton by preserving the rotation
31 * information but discarding translation and/or scale.
32 */
33 class EggRetargetAnim : public EggCharacterFilter {
34 public:
35 EggRetargetAnim();
36
37 void run();
38
39 void retarget_anim(EggCharacterData *char_data, EggJointData *joint_data,
40 int reference_model, const pset<std::string> &keep_names,
41 EggCharacterDb &db);
42
43 Filename _reference_filename;
44 vector_string _keep_joints;
45 };
46
47 #endif
EggCharacterData
Represents a single character, as read and collected from several models and animation files.
Definition: eggCharacterData.h:52
EggCharacterDb
This class is used during joint optimization or restructuring to store the table of interim joint com...
Definition: eggCharacterDb.h:41
EggCharacterFilter
This is the base class for a family of programs that operate on a number of character models and thei...
Definition: eggCharacterFilter.h:32
EggJointData
This is one node of a hierarchy of EggJointData nodes, each of which represents a single joint of the...
Definition: eggJointData.h:31
EggRetargetAnim
Retargets one or more animation files from one particular skeleton to a similar, but differently scal...
Definition: eggRetargetAnim.h:33
EggRetargetAnim::retarget_anim
void retarget_anim(EggCharacterData *char_data, EggJointData *joint_data, int reference_model, const pset< std::string > &keep_names, EggCharacterDb &db)
Recursively replaces the scale and translate information on all of the joints in the char_data hierar...
Definition: eggRetargetAnim.cxx:135
Filename
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
pset< std::string >
eggCharacterFilter.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pset.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pvector.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.