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