- Cal3D 0.11 API Reference - |
00001 //****************************************************************************// 00002 // corekeyframe.h // 00003 // Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger // 00004 //****************************************************************************// 00005 // This library is free software; you can redistribute it and/or modify it // 00006 // under the terms of the GNU Lesser General Public License as published by // 00007 // the Free Software Foundation; either version 2.1 of the License, or (at // 00008 // your option) any later version. // 00009 //****************************************************************************// 00010 00011 #ifndef CAL_COREKEYFRAME_H 00012 #define CAL_COREKEYFRAME_H 00013 00014 //****************************************************************************// 00015 // Includes // 00016 //****************************************************************************// 00017 00018 #include "cal3d/global.h" 00019 #include "cal3d/matrix.h" 00020 #include "cal3d/vector.h" 00021 #include "cal3d/quaternion.h" 00022 00023 //****************************************************************************// 00024 // Class declaration // 00025 //****************************************************************************// 00026 00027 /*****************************************************************************/ 00031 class CAL3D_API CalCoreKeyframe 00032 { 00033 // member variables 00034 protected: 00035 float m_time; 00036 CalVector m_translation; 00037 CalQuaternion m_rotation; 00038 00039 public: 00040 // constructors/destructor 00041 CalCoreKeyframe(); 00042 virtual ~CalCoreKeyframe(); 00043 00044 // member functions 00045 public: 00046 bool create(); 00047 void destroy(); 00048 const CalQuaternion& getRotation(); 00049 00050 /*****************************************************************************/ 00057 inline float getTime() const 00058 { 00059 return m_time; 00060 } 00061 00062 const CalVector& getTranslation(); 00063 void setRotation(const CalQuaternion& rotation); 00064 void setTime(float time); 00065 void setTranslation(const CalVector& translation); 00066 }; 00067 00068 #endif 00069 00070 //****************************************************************************//