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

# TranslationFog.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 TRANSLATION_FOG_H_
    00026 #define TRANSLATION_FOG_H_
    00027
    00028 namespace Lamp{
    00029     class Scene;
    00030 }
    00031
    00032 namespace LampForMaya{
    00033
    00034 //------------------------------------------------------------------------------
    00035 /**
    00036  * 変換フォグ
    00037  */
    00038 class TranslationFog{
    00039 public:
    00040     /**
    00041      * コンストラクタ
    00042      */
    00043     TranslationFog();
    00044
    00045     /**
    00046      * デストラクタ
    00047      */
    00048     virtual ~TranslationFog();
    00049
    00050     //--------------------------------------------------------------------------
    00051     /**
    00052      * 分析
    00053      * @return 成功すればtrue
    00054      */
    00055     virtual bool analyze();
    00056
    00057     //--------------------------------------------------------------------------
    00058     /**
    00059      * Lampへの変換
    00060      * @param scene シーン
    00061      * @return 成功すればtrue
    00062      */
    00063     virtual bool convertToLamp(Scene* scene);
    00064
    00065     //--------------------------------------------------------------------------
    00066
    00067 private:
    00068     // コピーコンストラクタの隠蔽
    00069     TranslationFog(const TranslationFog& copy);
    00070
    00071     // 代入コピーの隠蔽
    00072     void operator =(const TranslationFog& copy);
    00073
    00074     // フォグが有効かどうか
    00075     bool fogEnabled_;
    00076     // フォグカラー
    00077     Color4f fogColor_;
    00078     // フォグモード
    00079     MString fogMode_;
    00080     // フォグ濃度
    00081     float fogDensity_;
    00082     // フォグニア
    00083     float fogNear_;
    00084     // フォグファー
    00085     float fogFar_;
    00086 };
    00087
    00088 //------------------------------------------------------------------------------
    00089 } // End of namespace LampForMaya
    00090 #endif // End of TRANSLATION_FOG_H_
    00091 //------------------------------------------------------------------------------
    00092