//------------------------------------------------------------------------------
// 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_DIRECTIONAL_LIHGT_H_
#define TRANSLATION_DIRECTIONAL_LIHGT_H_

#include <Translator/Light/TranslationLight.h>

namespace LampForMaya{

//------------------------------------------------------------------------------
/**
 * 変換ディレクショナルライト
 */
class TranslationDirectionalLight : public TranslationLight{
friend class TranslationLightManager;
public:
	/**
	 * デストラクタ
	 */
	virtual ~TranslationDirectionalLight();

	/**
	 * ディレクショナルライトかどうか
	 * @return ディレクショナルライトならtrue
	 */
	virtual bool isDirectionalLight() const{ return true; }

	/**
	 * 分析
	 * @return 成功すればtrue
	 */
	virtual bool analyze();

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

private:
	/**
	 * コンストラクタ
	 * @param initializeDagPath 初期化するDagパス
	 * @param initializeName 初期化する名前
	 */
	explicit TranslationDirectionalLight(
		const MDagPath& initializeDagPath, const String& initializeName);

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

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

	// 方向
	Vector3 direction_;

};

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

