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

TranslationCameraManager.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_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      * @return 成功すればtrue
00055      */
00056     virtual bool collectCameras();
00057 
00058     /**
00059      * アニメーションの収集
00060      * @return 成功すればtrue
00061      */
00062     virtual bool collectAnimations();
00063 
00064     /**
00065      * Lampへの変換
00066      * @param scene 変換先シーン
00067      * @return 成功すればtrue
00068      */
00069     virtual bool convertToLamp(Scene* scene) const;
00070 
00071     /**
00072      * アニメーションの変換
00073      * @param animationManager アニメーションマネージャ
00074      * @param animationSet アニメーションセット
00075      * @return 成功すればtrue
00076      */
00077     virtual bool convertAnimation(
00078         AnimationManager* animationManager, AnimationSet* animationSet);
00079 
00080     /**
00081      * クリア
00082      * @return 削除したオブジェクト数
00083      */
00084     virtual int clear();
00085 
00086     /**
00087      * カメラ数の取得
00088      * @return カメラ数
00089      */
00090     virtual int getCount() const{ return array_.getCount(); }
00091 
00092     /**
00093      * カメラの取得
00094      * @param index カメラのインデクス
00095      * @return カメラ
00096      */
00097     virtual TranslationCamera* get(int index) const{
00098         return array_.get(index);
00099     }
00100 
00101     /**
00102      * カメラの検索
00103      * @param name 検索するカメラ名
00104      * @return カメラ
00105      */
00106     virtual TranslationCamera* search(String name) const{
00107         return database_.get(name);
00108     }
00109 
00110 protected:
00111     /**
00112      * カメラの解析
00113      * @param dagPath DAGパス
00114      * @return 成功すればtrue
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 } // End of namespace LampForMaya
00134 #endif // End of TRANSLATION_CAMERA_MANAGER_H_
00135 //------------------------------------------------------------------------------

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