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