00001 /* 00002 ----------------------------------------------------------------------------- 00003 This source file is part of OpenSpace3D 00004 For the latest info, see http://www.openspace3d.com 00005 00006 Copyright (c) 2010 I-maginer 00007 00008 This program is free software; you can redistribute it and/or modify it under 00009 the terms of the GNU Lesser General Public License as published by the Free Software 00010 Foundation; either version 2 of the License, or (at your option) any later 00011 version. 00012 00013 This program is distributed in the hope that it will be useful, but WITHOUT 00014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00015 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public License along with 00018 this program; if not, write to the Free Software Foundation, Inc., 59 Temple 00019 Place - Suite 330, Boston, MA 02111-1307, USA, or go to 00020 http://www.gnu.org/copyleft/lesser.txt 00021 00022 You may alternatively use this source under the terms of a specific version of 00023 the OpenSpace3D Unrestricted License provided you have obtained such a license from 00024 I-maginer. 00025 ----------------------------------------------------------------------------- 00026 */ 00027 00028 #ifndef __SO3_SEQUENCE_ANIMATION_KEY_H__ 00029 #define __SO3_SEQUENCE_ANIMATION_KEY_H__ 00030 00031 namespace SO3 00032 { 00033 00034 class SSequenceAnimationKey 00035 { 00036 public: 00037 protected: 00038 float mPosition; 00039 float mLength; 00040 float mDecalTime; 00041 float mTransitionTime; 00042 bool mUsed; 00043 SAnim* mAnim; 00044 private: 00045 00046 public: 00050 SSequenceAnimationKey(SAnim* anim, float pos, float length, float transtime, float decaltime); 00051 00052 SAnim* GetAnim(); 00053 00056 float GetPosition(); 00057 00060 void SetPosition(float pos); 00061 00064 float GetLength(); 00065 00068 void SetLength(float length); 00069 00072 float GetTransitionTime(); 00073 00076 void SetTransitionTime(float transtime); 00077 00080 float GetDecalTime(); 00081 00084 void SetDecalTime(float decaltime); 00085 00088 void SetUsed(bool state); 00089 00092 bool IsUsed(); 00093 00096 ~SSequenceAnimationKey(); 00097 protected: 00098 private: 00102 SSequenceAnimationKey(); 00103 }; 00104 00105 } 00106 00107 #endif
1.6.3