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