00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef LAMP_TRANSLATOR_H_
00026 #define LAMP_TRANSLATOR_H_
00027
00028 namespace Lamp{
00029 class Scene;
00030 class AnimationManager;
00031 class AnimationSet;
00032 }
00033
00034 namespace LampForMaya{
00035
00036 class TranslationScene;
00037
00038
00039
00040
00041
00042 class LampTranslator{
00043 friend class LampTextTranslator;
00044 friend class LampBinaryTranslator;
00045 public:
00046
00047
00048
00049
00050
00051
00052
00053
00054 virtual MStatus write(const MFileObject& file,
00055 const MString& optionsString, MPxFileTranslator::FileAccessMode mode,
00056 bool textFlag);
00057
00058
00059
00060
00061
00062
00063 static String getTextSceneExtension(){ return "tsn"; }
00064
00065
00066
00067
00068
00069 static String getTextAnimationExtension(){ return "tam"; }
00070
00071
00072
00073
00074
00075 static String getBinarySceneExtension(){ return "bsn"; }
00076
00077
00078
00079
00080
00081 static String getBinaryAnimationExtension(){ return "bam"; }
00082
00083 private:
00084
00085 LampTranslator();
00086
00087
00088 virtual ~LampTranslator();
00089
00090
00091 virtual MStatus errorCleanup();
00092
00093
00094 virtual void analyzeOption(const String& options);
00095
00096
00097 virtual void outputStartMessage();
00098
00099
00100 LampTranslator(const LampTranslator& copy);
00101
00102
00103 void operator =(const LampTranslator& copy);
00104
00105
00106 TranslationScene* translationScene_;
00107
00108 Scene* scene_;
00109
00110 AnimationManager* animationManager_;
00111
00112 AnimationSet* animationSet_;
00113
00114
00115 bool textExportFlag_;
00116
00117 bool exportSceneFlag_;
00118
00119 String picturePath_;
00120
00121 bool meshOptimizeFlag_;
00122
00123 float characterScale_;
00124
00125 bool exportAnimationFlag_;
00126
00127 bool deleteStaticChannelsFlag_;
00128 };
00129
00130
00131 }
00132 #endif // End of LAMP_TRANSLATOR_H_
00133