Panda3D
|
00001 // Filename: eggToDAE.h 00002 // Created by: pro-rsoft (04Oct08) 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 EGGTODAE_H 00016 #define EGGTODAE_H 00017 00018 #include "pandatoolbase.h" 00019 #include "eggToSomething.h" 00020 #include "eggGroup.h" 00021 #include "eggTransform.h" 00022 00023 #include "pre_fcollada_include.h" 00024 #include "FCollada.h" 00025 #include "FCDocument/FCDSceneNode.h" 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Class : EggToDAE 00029 // Description : A program to read an egg file and write a DAE file. 00030 //////////////////////////////////////////////////////////////////// 00031 class EggToDAE : public EggToSomething { 00032 public: 00033 EggToDAE(); 00034 00035 void run(); 00036 00037 private: 00038 FCDocument* _document; 00039 00040 void process_node(FCDSceneNode* parent, const PT(EggGroup) node); 00041 void apply_transform(FCDSceneNode* to, const PT(EggGroup) from); 00042 00043 }; 00044 00045 #endif 00046