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

TranslationAnimationUtility.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_ANIMATION_UTILITY_H_
00026 #define TRANSLATION_ANIMATION_UTILITY_H_
00027 
00028 namespace Lamp{
00029     class VectorArrayInterpolator;
00030     class EulerArrayInterpolator;
00031 }
00032 
00033 namespace LampForMaya{
00034 
00035 //------------------------------------------------------------------------------
00036 /**
00037  * 変換アニメーションユーティリティ
00038  */
00039 class TranslationAnimationUtility{
00040 public:
00041     //--------------------------------------------------------------------------
00042     /**
00043      * ベクトルアニメーションの分析
00044      * @param object アニメーションを持つオブジェクト
00045      * @param attributeName ベクトルアニメーションを持つアトリビュート名
00046      * @param defaultValue デフォルト値
00047      * @param startTime 開始時間
00048      * @param endTime 終了時間
00049      * @return ベクトルアニメーション。呼び出し元でdeleteが必要。
00050      */
00051     static VectorArrayInterpolator* analyzeVectorAnimation(
00052         const MObject& object, const MString& attributeName,
00053         const Vector3& defaultValue, int startTime, int endTime);
00054 
00055     //--------------------------------------------------------------------------
00056     /**
00057      * 回転アニメーションの分析
00058      * @param object アニメーションを持つオブジェクト
00059      * @param attributeName ベクトルアニメーションを持つアトリビュート名
00060      * @param defaultValue デフォルト値
00061      * @param startTime 開始時間
00062      * @param endTime 終了時間
00063      * @return 回転アニメーション。呼び出し元でdeleteが必要。
00064      */
00065     static EulerArrayInterpolator* analyzeRotationAnimation(
00066         const MObject& object, const MString& attributeName,
00067         const Vector3& defaultValue, int startTime, int endTime);
00068 
00069 protected:
00070     /**
00071      * アニメーションしているか
00072      * @param plug アニメーションしているか調べるプラグ
00073      * @param startTime 開始時間
00074      * @param endTime 終了時間
00075      * @return アニメーションしていればtrue
00076      */
00077 //  static bool isAnimated(const MPlug& plug, int startTime, int endTime);
00078 
00079 private:
00080     // コンストラクタの隠蔽
00081     TranslationAnimationUtility();
00082 
00083     // デストラクタの隠蔽
00084     virtual ~TranslationAnimationUtility();
00085 
00086 };
00087 
00088 //------------------------------------------------------------------------------
00089 } // End of namespace LampForMaya
00090 #endif // End of TRANSLATION_ANIMATION_UTILITY_H_
00091 //------------------------------------------------------------------------------
00092 

Generated on Wed Mar 16 10:29:55 2005 for LampForMaya by doxygen 1.3.2