-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKeyframe.h
60 lines (46 loc) · 1.21 KB
/
Keyframe.h
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
#ifndef KEY_H
#define KEY_H
class Keyframe
{
public:
enum TangentType {
Smooth,
Flat,
Linear,
Fixed
};
Keyframe();
virtual ~Keyframe();
float time() const;
void setTime(float time);
float value() const;
void setValue(float value);
TangentType tangentInType() const;
void setTangentInType(TangentType tangentInType);
TangentType tangentOutType() const;
void setTangentOutType(TangentType tangentOutType);
float tangentInValue() const;
void setTangentInValue(float tangentInValue);
float tangentOutValue() const;
void setTangentOutValue(float tangentOutValue);
float a() const;
void setA(float a);
float b() const;
void setB(float b);
float c() const;
void setC(float c);
float d() const;
void setD(float d);
private:
float _time;
float _value;
TangentType _tangentInType;
TangentType _tangentOutType;
float _tangentInValue;
float _tangentOutValue;
float _a;
float _b;
float _c;
float _d;
};
#endif // KEY_H