//------------------------------------------------------------------------------
// Lamp : Open source game middleware
// Copyright (C) 2004  Junpei Ohtani ( Email : junpee@users.sourceforge.jp )
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//------------------------------------------------------------------------------

/** @file
 * 変換剛体メッシュヘッダ
 * @author Junpee
 */

#ifndef TRANSLATION_RIGID_MESH_H_
#define TRANSLATION_RIGID_MESH_H_

#include <Translator/Mesh/TranslationMesh.h>
#include <Core/Container/ArrayList.h>

namespace LampForMaya{

//------------------------------------------------------------------------------
/**
 * 変換剛体メッシュ
 */
class TranslationRigidMesh : public TranslationMesh{
friend class TranslationMeshManager;
public:
	/**
	 * デストラクタ
	 */
	virtual ~TranslationRigidMesh();

	/**
	 * 静的剛体メッシュかどうか
	 * @return 静的剛体メッシュならtrue
	 */
	virtual bool isRigidMesh() const{ return true; }

	/**
	 * ピボットのコンパイル
	 * @param pivot ピボット位置
	 */
	virtual void compilePivot(const Vector3& pivot);

	//--------------------------------------------------------------------------
	/**
	 * 論理チェック
	 * @return 成功すればtrue
	 */
	virtual bool logicalCheck();

	//--------------------------------------------------------------------------
	/**
	 * Lampへの変換
	 * @param scene シーン
	 * @return 成功すればtrue
	 */
	virtual bool convertToLamp(Scene* scene);

	//--------------------------------------------------------------------------
protected:
	/**
	 * コンストラクタ
	 * @param initializeName 初期化する名前
	 */
	TranslationRigidMesh(const String& initializeName);

private:
	// コピーコンストラクタの隠蔽
	TranslationRigidMesh(const TranslationRigidMesh& copy);

	// 代入コピーの隠蔽
	void operator =(const TranslationRigidMesh& copy);


};

//------------------------------------------------------------------------------
} // End of namespace LampForMaya
#endif // End of TRANSLATION_RIGID_MESH_H_
//------------------------------------------------------------------------------

