| - Cal3D 0.11 API Reference - |
00001 //****************************************************************************// 00002 // coreanimatedMorph.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_COREANIMATEDMORPH_H 00012 #define CAL_COREANIMATEDMORPH_H 00013 00014 //****************************************************************************// 00015 // Includes // 00016 //****************************************************************************// 00017 00018 #include "cal3d/global.h" 00019 #include "cal3d/coremorphtrack.h" 00020 00021 //****************************************************************************// 00022 // Forward declarations // 00023 //****************************************************************************// 00024 00025 class CalCoreMorphTrack; 00026 00027 //****************************************************************************// 00028 // Class declaration // 00029 //****************************************************************************// 00030 00031 /*****************************************************************************/ 00036 class CAL3D_API CalCoreAnimatedMorph 00037 { 00038 // member variables 00039 protected: 00040 std::string m_name; 00041 float m_duration; 00042 std::list<CalCoreMorphTrack> m_listCoreTrack; 00043 std::list<CalCoreMorphTrack*> m_tracksToDelete; 00044 00045 // constructors/destructor 00046 public: 00047 CalCoreAnimatedMorph(); 00048 virtual ~CalCoreAnimatedMorph(); 00049 00050 // member functions 00051 public: 00052 const std::string& getName() const {return m_name;} 00053 void setName(const std::string& name) {m_name = name;} 00054 bool addCoreTrack(CalCoreMorphTrack *pCoreTrack); 00055 bool create(); 00056 void destroy(); 00057 CalCoreMorphTrack *getCoreTrack(std::string const & trackId); 00058 float getDuration() const; 00059 std::list<CalCoreMorphTrack>& getListCoreTrack(); 00060 const std::list<CalCoreMorphTrack>& getListCoreTrack() const; 00061 void setDuration(float duration); 00062 void scale(float factor); 00063 void removeZeroScaleTracks(); 00064 static int getNumCoreAnimatedMorphs(); 00065 }; 00066 00067 #endif 00068 00069 //****************************************************************************//