Panda3D
|
00001 // Filename: eggCharacterFilter.h 00002 // Created by: drose (23Feb01) 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 EGGCHARACTERFILTER_H 00016 #define EGGCHARACTERFILTER_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "eggMultiFilter.h" 00021 00022 class EggCharacterData; 00023 class EggCharacterCollection; 00024 00025 //////////////////////////////////////////////////////////////////// 00026 // Class : EggCharacterFilter 00027 // Description : This is the base class for a family of programs that 00028 // operate on a number of character models and their 00029 // associated animation files together. It reads in a 00030 // number of egg files, any combination of model files 00031 // or character files which must all represent the same 00032 // character skeleton, and maintains a single hierarchy 00033 // of joints and sliders that may be operated on before 00034 // writing the files back out. 00035 //////////////////////////////////////////////////////////////////// 00036 class EggCharacterFilter : public EggMultiFilter { 00037 public: 00038 EggCharacterFilter(); 00039 virtual ~EggCharacterFilter(); 00040 00041 void add_fixrest_option(); 00042 00043 protected: 00044 virtual bool post_command_line(); 00045 virtual void write_eggs(); 00046 00047 virtual EggCharacterCollection *make_collection(); 00048 00049 EggCharacterCollection *_collection; 00050 bool _force_initial_rest_frame; 00051 }; 00052 00053 #endif 00054 00055