00001 // Filename: eggRetargetAnim.h 00002 // Created by: drose (05May05) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef EGGRETARGETANIM_H 00016 #define EGGRETARGETANIM_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "eggCharacterFilter.h" 00021 #include "luse.h" 00022 #include "pvector.h" 00023 #include "pset.h" 00024 00025 class EggCharacterData; 00026 class EggJointData; 00027 class EggCharacterDb; 00028 00029 //////////////////////////////////////////////////////////////////// 00030 // Class : EggRetargetAnim 00031 // Description : Retargets one or more animation files from one 00032 // particular skeleton to a similar, but differently 00033 // scaled skeleton by preserving the rotation 00034 // information but discarding translation and/or scale. 00035 //////////////////////////////////////////////////////////////////// 00036 class EggRetargetAnim : public EggCharacterFilter { 00037 public: 00038 EggRetargetAnim(); 00039 00040 void run(); 00041 00042 void retarget_anim(EggCharacterData *char_data, EggJointData *joint_data, 00043 int reference_model, const pset<string> &keep_names, 00044 EggCharacterDb &db); 00045 00046 Filename _reference_filename; 00047 vector_string _keep_joints; 00048 }; 00049 00050 #endif 00051