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 #include "../SO3Animation/SO3SequenceAnimation.h" 00029 #include "../SO3Animation/SO3SequenceAnimationTrack.h" 00030 #include "../SO3Animation/SO3SequenceAnimationKey.h" 00031 00032 namespace SO3 00033 { 00034 00035 SSequenceAnimationKey::SSequenceAnimationKey(SAnim* anim, float pos, float length, float transtime, float decaltime) 00036 { 00037 mPosition = pos; 00038 mLength = length; 00039 mAnim = anim; 00040 mTransitionTime = transtime; 00041 mDecalTime = decaltime; 00042 mUsed = false; 00043 } 00044 00045 SSequenceAnimationKey::~SSequenceAnimationKey() 00046 { 00047 } 00048 00049 SSequenceAnimationKey::SSequenceAnimationKey() 00050 { 00051 //Forbiden (private) 00052 } 00053 00054 SAnim* SSequenceAnimationKey::GetAnim() 00055 { 00056 return mAnim; 00057 } 00058 00059 float SSequenceAnimationKey::GetPosition() 00060 { 00061 return mPosition; 00062 } 00063 00064 void SSequenceAnimationKey::SetPosition(float pos) 00065 { 00066 mPosition = pos; 00067 } 00068 00069 float SSequenceAnimationKey::GetLength() 00070 { 00071 return mLength; 00072 } 00073 00074 void SSequenceAnimationKey::SetLength(float length) 00075 { 00076 mLength = length; 00077 } 00078 00079 00080 float SSequenceAnimationKey::GetTransitionTime() 00081 { 00082 return mTransitionTime; 00083 } 00084 00085 void SSequenceAnimationKey::SetTransitionTime(float transtime) 00086 { 00087 mTransitionTime = transtime; 00088 } 00089 00090 float SSequenceAnimationKey::GetDecalTime() 00091 { 00092 return mDecalTime; 00093 } 00094 00095 void SSequenceAnimationKey::SetDecalTime(float decaltime) 00096 { 00097 mDecalTime = decaltime; 00098 } 00099 00100 void SSequenceAnimationKey::SetUsed(bool state) 00101 { 00102 mUsed = state; 00103 } 00104 00105 00106 bool SSequenceAnimationKey::IsUsed() 00107 { 00108 return mUsed; 00109 } 00110 00111 00112 }
1.6.3