//------------------------------------------------------------------------------
// 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_LIGHT_INSTANCE_H_
#define TRANSLATION_LIGHT_INSTANCE_H_

#include "Translator/Instance/TranslationInstance.h"

namespace Lamp{
	class Light;
}

namespace LampForMaya{

//------------------------------------------------------------------------------
/**
 * 変換ライトインスタンス
 */
class TranslationLightInstance : public TranslationInstance{
friend class TranslationInstanceManager;
public:
	/**
	 * デストラクタ
	 */
	virtual ~TranslationLightInstance();

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

	/**
	 * アニメーションの変換
	 * @param animationManager アニメーションマネージャ
	 * @param animationSet アニメーションセット
	 * @return 成功すればtrue
	 */
	virtual bool convertAnimation(
		AnimationManager* animationManager, AnimationSet* animationSet);

	//--------------------------------------------------------------------------
	// RTTI
	//--------------------------------------------------------------------------
	/**
	 * 変換ライトインスタンスかどうか
	 * @return 変換ライトインスタンスならtrue
	 */
	virtual bool isTranslationLightInstance() const{ return true; }

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

	/// コピー元
	Light* source_;
	/// コピー先
	Light* destination_;

};

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