SO3Engine
src
SO3Animation
SO3SequenceAnimationKey.cpp
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of OpenSpace3D
4
For the latest info, see http://www.openspace3d.com
5
6
Copyright (c) 2012 I-maginer
7
8
This program is free software; you can redistribute it and/or modify it under
9
the terms of the GNU Lesser General Public License as published by the Free Software
10
Foundation; either version 2 of the License, or (at your option) any later
11
version.
12
13
This program is distributed in the hope that it will be useful, but WITHOUT
14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
16
17
You should have received a copy of the GNU Lesser General Public License along with
18
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
19
Place - Suite 330, Boston, MA 02111-1307, USA, or go to
20
http://www.gnu.org/copyleft/lesser.txt
21
22
-----------------------------------------------------------------------------
23
*/
24
25
#include "
SO3Animation/SO3SequenceAnimation.h
"
26
#include "
SO3Animation/SO3SequenceAnimationTrack.h
"
27
#include "
SO3Animation/SO3SequenceAnimationKey.h
"
28
29
namespace
SO3
30
{
31
32
SSequenceAnimationKey::SSequenceAnimationKey(
SAnim
* anim,
const
float
& pos,
const
float
& length,
const
float
& transtime,
const
float
& decaltime)
33
{
34
mPosition
= pos;
35
mLength
= length;
36
mAnim
= anim;
37
mTransitionTime
= transtime;
38
mDecalTime
= decaltime;
39
mUsed
=
false
;
40
}
41
42
SSequenceAnimationKey::~SSequenceAnimationKey
()
43
{
44
}
45
46
SSequenceAnimationKey::SSequenceAnimationKey()
47
{
48
//Forbiden (private)
49
}
50
51
SAnim
*
SSequenceAnimationKey::GetAnim
()
52
{
53
return
mAnim
;
54
}
55
56
float
SSequenceAnimationKey::GetPosition
()
57
{
58
return
mPosition
;
59
}
60
61
void
SSequenceAnimationKey::SetPosition
(
const
float
& pos)
62
{
63
mPosition
= pos;
64
}
65
66
float
SSequenceAnimationKey::GetLength
()
67
{
68
return
mLength
;
69
}
70
71
void
SSequenceAnimationKey::SetLength
(
const
float
& length)
72
{
73
mLength
= length;
74
}
75
76
float
SSequenceAnimationKey::GetTransitionTime
()
77
{
78
return
mTransitionTime
;
79
}
80
81
void
SSequenceAnimationKey::SetTransitionTime
(
const
float
& transtime)
82
{
83
mTransitionTime
= transtime;
84
}
85
86
float
SSequenceAnimationKey::GetDecalTime
()
87
{
88
return
mDecalTime
;
89
}
90
91
void
SSequenceAnimationKey::SetDecalTime
(
const
float
& decaltime)
92
{
93
mDecalTime
= decaltime;
94
}
95
96
void
SSequenceAnimationKey::SetUsed
(
const
bool
& state)
97
{
98
mUsed
= state;
99
}
100
101
bool
SSequenceAnimationKey::IsUsed
()
102
{
103
return
mUsed
;
104
}
105
106
}
SO3SequenceAnimation.h
SO3SequenceAnimationKey.h
SO3SequenceAnimationTrack.h
SO3::SAnim
Definition
SO3Anim.h:42
SO3::SSequenceAnimationKey::GetPosition
float GetPosition()
Definition
SO3SequenceAnimationKey.cpp:56
SO3::SSequenceAnimationKey::SetUsed
void SetUsed(const bool &state)
Definition
SO3SequenceAnimationKey.cpp:96
SO3::SSequenceAnimationKey::GetLength
float GetLength()
Definition
SO3SequenceAnimationKey.cpp:66
SO3::SSequenceAnimationKey::mPosition
float mPosition
Definition
SO3SequenceAnimationKey.h:35
SO3::SSequenceAnimationKey::IsUsed
bool IsUsed()
Definition
SO3SequenceAnimationKey.cpp:101
SO3::SSequenceAnimationKey::SetLength
void SetLength(const float &length)
Definition
SO3SequenceAnimationKey.cpp:71
SO3::SSequenceAnimationKey::GetDecalTime
float GetDecalTime()
Definition
SO3SequenceAnimationKey.cpp:86
SO3::SSequenceAnimationKey::SetTransitionTime
void SetTransitionTime(const float &transtime)
Definition
SO3SequenceAnimationKey.cpp:81
SO3::SSequenceAnimationKey::mAnim
SAnim * mAnim
Definition
SO3SequenceAnimationKey.h:40
SO3::SSequenceAnimationKey::GetAnim
SAnim * GetAnim()
Definition
SO3SequenceAnimationKey.cpp:51
SO3::SSequenceAnimationKey::SetDecalTime
void SetDecalTime(const float &decaltime)
Definition
SO3SequenceAnimationKey.cpp:91
SO3::SSequenceAnimationKey::GetTransitionTime
float GetTransitionTime()
Definition
SO3SequenceAnimationKey.cpp:76
SO3::SSequenceAnimationKey::mLength
float mLength
Definition
SO3SequenceAnimationKey.h:36
SO3::SSequenceAnimationKey::mDecalTime
float mDecalTime
Definition
SO3SequenceAnimationKey.h:37
SO3::SSequenceAnimationKey::~SSequenceAnimationKey
~SSequenceAnimationKey()
Definition
SO3SequenceAnimationKey.cpp:42
SO3::SSequenceAnimationKey::mUsed
bool mUsed
Definition
SO3SequenceAnimationKey.h:39
SO3::SSequenceAnimationKey::mTransitionTime
float mTransitionTime
Definition
SO3SequenceAnimationKey.h:38
SO3::SSequenceAnimationKey::SetPosition
void SetPosition(const float &pos)
Definition
SO3SequenceAnimationKey.cpp:61
SO3
Definition
SO3DataScol.h:38
Generated by
1.9.8