-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKeyframe.cpp
116 lines (93 loc) · 1.5 KB
/
Keyframe.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
#include "Keyframe.h"
Keyframe::Keyframe()
{
_time = 0;
_value = 0;
_tangentInType = Flat;
_tangentOutType = Flat;
_tangentInValue = 0;
_tangentOutValue = 0;
}
Keyframe::~Keyframe()
{
}
float Keyframe::time() const
{
return _time;
}
void Keyframe::setTime(float time)
{
_time = time;
}
float Keyframe::value() const
{
return _value;
}
void Keyframe::setValue(float value)
{
_value = value;
}
Keyframe::TangentType Keyframe::tangentInType() const
{
return _tangentInType;
}
void Keyframe::setTangentInType(Keyframe::TangentType tangentIn)
{
_tangentInType = tangentIn;
}
Keyframe::TangentType Keyframe::tangentOutType() const
{
return _tangentOutType;
}
void Keyframe::setTangentOutType(Keyframe::TangentType tangentOut)
{
_tangentOutType = tangentOut;
}
float Keyframe::tangentInValue() const
{
return _tangentInValue;
}
void Keyframe::setTangentInValue(float tangentInValue)
{
_tangentInValue = tangentInValue;
}
float Keyframe::tangentOutValue() const
{
return _tangentOutValue;
}
void Keyframe::setTangentOutValue(float tangentOutValue)
{
_tangentOutValue = tangentOutValue;
}
float Keyframe::a() const
{
return _a;
}
void Keyframe::setA(float a)
{
_a = a;
}
float Keyframe::b() const
{
return _b;
}
void Keyframe::setB(float b)
{
_b = b;
}
float Keyframe::c() const
{
return _c;
}
void Keyframe::setC(float c)
{
_c = c;
}
float Keyframe::d() const
{
return _d;
}
void Keyframe::setD(float d)
{
_d = d;
}