//------------------------------------------------------------------------------
// 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_STANDARD_MODEL_H_
#define TRANSLATION_STANDARD_MODEL_H_

#include <Translator/Model/TranslationModel.h>

namespace LampForMaya{

class TranslationRigidMesh;

//------------------------------------------------------------------------------
/**
 * 変換標準モデル
 */
class TranslationStandardModel : public TranslationModel{
friend class TranslationModelManager;
public:
	/**
	 * デストラクタ
	 */
	virtual ~TranslationStandardModel();

	/**
	 * 標準モデルかどうか
	 * @return 標準モデルならtrue
	 */
	virtual bool isStandardStandardModel() const{ return true; }

	//--------------------------------------------------------------------------
	/**
	 * 分析
	 * @param meshManager メッシュマネージャ
	 * @return 成功すればtrue
	 */
	virtual bool analyze(TranslationMeshManager* meshManager);

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

	//--------------------------------------------------------------------------

protected:
	/**
	 * コンストラクタ
	 * @param initializeObject 初期化するオブジェクト
	 * @param initializeName 初期化する名前
	 */
	TranslationStandardModel(
		const MObject& initializeObject, const String& initializeName);

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

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

	// 変換メッシュ配列
	TranslationRigidMesh** transMeshes_;
};

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

