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  */
34 public:
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
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
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...
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...
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:31
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.