Panda3D

Loading...
Searching...
No Matches
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
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::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:44
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.