Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

TranslationScene.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 // Lamp : Open source game middleware
00003 // Copyright (C) 2004  Junpei Ohtani ( Email : junpee@users.sourceforge.jp )
00004 //
00005 // This library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 //
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 //------------------------------------------------------------------------------
00019 
00020 /** @file
00021  * 変換シーンヘッダ
00022  * @author Junpee
00023  */
00024 
00025 #ifndef TRANSLATION_SCENE_H_
00026 #define TRANSLATION_SCENE_H_
00027 
00028 namespace Lamp{
00029     class Scene;
00030     class AnimationManager;
00031     class AnimationSet;
00032 }
00033 
00034 namespace LampForMaya{
00035 
00036 class TranslationFog;
00037 class TranslationInstanceManager;
00038 class TranslationCameraManager;
00039 class TranslationLightManager;
00040 class TranslationSceneNodeManager;
00041 class TranslationModelManager;
00042 class TranslationMeshManager;
00043 class TranslationMaterialManager;
00044 class TranslationTextureManager;
00045 class TranslationPictureManager;
00046 
00047 //------------------------------------------------------------------------------
00048 /**
00049  * 変換シーン
00050  */
00051 class TranslationScene{
00052 public:
00053     /**
00054      * コンストラクタ
00055      */
00056     TranslationScene();
00057 
00058     /**
00059      * デストラクタ
00060      */
00061     virtual ~TranslationScene();
00062 
00063     /**
00064      * 情報の収集
00065      * @return 成功すればtrue
00066      */
00067     virtual bool collection();
00068 
00069     /**
00070      * アニメーション情報の収集
00071      * @return 成功すればtrue
00072      */
00073     virtual bool collectAnimation();
00074 
00075     /**
00076      * Lampへの変換
00077      * @param scene 変換先シーン
00078      * @return 成功すればtrue
00079      */
00080     virtual bool convertToLamp(Scene* scene);
00081 
00082     /**
00083      * アニメーションの変換
00084      * @param animationManager アニメーションマネージャ
00085      * @param animationSet アニメーションセット
00086      * @return 成功すればtrue
00087      */
00088     virtual bool convertAnimation(
00089         AnimationManager* animationManager, AnimationSet* animationSet);
00090 
00091     /**
00092      * クリア
00093      *
00094      * 強制的にシーン内の全オブジェクトを破棄します
00095      * @return 削除したオブジェクト数
00096      */
00097     virtual int clear();
00098 
00099 private:
00100     // コピーコンストラクタの隠蔽
00101     TranslationScene(const TranslationScene& copy);
00102 
00103     // 代入コピーの隠蔽
00104     void operator =(const TranslationScene& copy);
00105 
00106     // フォグ
00107     TranslationFog* fog_;
00108     // インスタンスマネージャ
00109     TranslationInstanceManager* instanceManager_;
00110     // カメラマネージャ
00111     TranslationCameraManager* cameraManager_;
00112     // ライトマネージャ
00113     TranslationLightManager* lightManager_;
00114     // シーンノードマネージャ
00115     TranslationSceneNodeManager* sceneNodeManager_;
00116     // モデルマネージャ
00117     TranslationModelManager* modelManager_;
00118     // メッシュマネージャ
00119     TranslationMeshManager* meshManager_;
00120     // マテリアルマネージャ
00121     TranslationMaterialManager* materialManager_;
00122     // テクスチャマネージャ
00123     TranslationTextureManager* textureManager_;
00124     // ピクチャマネージャ
00125     TranslationPictureManager* pictureManager_;
00126 };
00127 
00128 //------------------------------------------------------------------------------
00129 } // End of namespace LampForMaya
00130 #endif // End of TRANSLATION_SCENE_H_
00131 //------------------------------------------------------------------------------

Generated on Wed Mar 16 10:29:56 2005 for LampForMaya by doxygen 1.3.2