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 TRANSLATION_CAMERA_MANAGER_H_
00026 #define TRANSLATION_CAMERA_MANAGER_H_
00027
00028 #include <Core/Container/HashMap.h>
00029 #include <Core/Container/ArrayList.h>
00030 #include <Translator/Camera/TranslationCamera.h>
00031
00032 namespace LampForMaya{
00033
00034 class TranslationModelManager;
00035
00036
00037
00038
00039
00040 class TranslationCameraManager{
00041 public:
00042
00043
00044
00045 TranslationCameraManager();
00046
00047
00048
00049
00050 virtual ~TranslationCameraManager();
00051
00052
00053
00054
00055
00056 virtual bool collectCameras();
00057
00058
00059
00060
00061
00062 virtual bool collectAnimations();
00063
00064
00065
00066
00067
00068
00069 virtual bool convertToLamp(Scene* scene) const;
00070
00071
00072
00073
00074
00075
00076
00077 virtual bool convertAnimation(
00078 AnimationManager* animationManager, AnimationSet* animationSet);
00079
00080
00081
00082
00083
00084 virtual int clear();
00085
00086
00087
00088
00089
00090 virtual int getCount() const{ return array_.getCount(); }
00091
00092
00093
00094
00095
00096
00097 virtual TranslationCamera* get(int index) const{
00098 return array_.get(index);
00099 }
00100
00101
00102
00103
00104
00105
00106 virtual TranslationCamera* search(String name) const{
00107 return database_.get(name);
00108 }
00109
00110 protected:
00111
00112
00113
00114
00115
00116 virtual bool analysisCamera(MDagPath dagPath);
00117
00118 private:
00119
00120 TranslationCameraManager(const TranslationCameraManager& copy);
00121
00122
00123 void operator =(const TranslationCameraManager& copy);
00124
00125
00126 Lamp::HashMap<String, TranslationCamera*> database_;
00127
00128 ArrayList<TranslationCamera*> array_;
00129
00130 };
00131
00132
00133 }
00134 #endif // End of TRANSLATION_CAMERA_MANAGER_H_
00135