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

StandardModel.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 STANDARD_MODEL_H_
00026 #define STANDARD_MODEL_H_
00027 
00028 #include <Graphics/Model/Model.h>
00029 
00030 namespace Lamp{
00031 
00032 //------------------------------------------------------------------------------
00033 /**
00034  * 標準モデル
00035  */
00036 class StandardModel : public Model{
00037 friend class ModelManager;
00038 public:
00039     /**
00040      * 標準モデルかどうか
00041      * @return 標準モデルならtrue
00042      */
00043     virtual bool isStandardModel() const{ return true; }
00044 
00045     //--------------------------------------------------------------------------
00046     /**
00047      * コピー
00048      * @param copyMask コピーマスク
00049      * @return コピーされたシーンリーフ
00050      */
00051     virtual SceneLeaf* copy(u_int copyMask = 0) const{
00052         return copyStandardModel(copyMask);
00053     }
00054 
00055     /**
00056      * モデルのコピー
00057      * @param copyMask コピーマスク
00058      * @return コピーされたモデル
00059      */
00060     virtual Model* copyModel(u_int copyMask = 0) const{
00061         return copyStandardModel(copyMask);
00062     }
00063 
00064     /**
00065      * 標準モデルのコピー
00066      * @param copyMask コピーマスク
00067      * @return コピーされたモデル
00068      */
00069     virtual StandardModel* copyStandardModel(u_int copyMask = 0) const;
00070 
00071     //--------------------------------------------------------------------------
00072     /**
00073      * メッシュの追加
00074      * @param mesh 追加するメッシュ
00075      */
00076     virtual void addMesh(Mesh* mesh);
00077 
00078 protected:
00079     /**
00080      * コンストラクタ
00081      * @param name 名前
00082      * @param scene シーン
00083      */
00084     StandardModel(const String& name, Scene* scene);
00085 
00086     /**
00087      * デストラクタ
00088      */
00089     virtual ~StandardModel();
00090 
00091     //--------------------------------------------------------------------------
00092 private:
00093 
00094 };
00095 
00096 //------------------------------------------------------------------------------
00097 } // End of namespace Lamp
00098 #endif // End of STANDARD_MODEL_H_
00099 //------------------------------------------------------------------------------
00100 

Generated on Wed Mar 16 10:29:36 2005 for Lamp by doxygen 1.3.2