SO3Engine
include
SO3SceneLoader
ALKeyFrame.h
Go to the documentation of this file.
1
#ifndef ALKEYFRAME_H
2
#define ALKEYFRAME_H
3
4
#include "
ALSceneLoader.h
"
5
6
namespace
SO3
7
{
8
class
ALKeyFrame
9
{
10
public
:
11
ALKeyFrame
(
double
time);
12
~ALKeyFrame
();
13
14
bool
hasPosition
();
15
bool
hasScale
();
16
bool
hasRotation
();
17
18
void
setPosition
(aiVectorKey positionkey);
19
void
setScale
(aiVectorKey scaleKey);
20
void
setRotation
(aiQuatKey rotationKey);
21
22
double
getTime
();
23
aiVectorKey
getPosition
();
24
aiVectorKey
getScale
();
25
aiQuatKey
getRotation
();
26
27
void
createInterpolation
(std::vector<ALKeyFrame> keyframes, aiNode* initNode);
28
29
private
:
30
template
<
typename
T> T linearInterpolate(T at, T xa, T ya, T xb, T yb);
31
32
double
mTime;
33
34
aiVectorKey mPosition;
35
bool
mHasPos;
36
37
aiVectorKey mScale;
38
bool
mHasScl;
39
40
aiQuatKey mRotation;
41
bool
mHasRot;
42
};
43
};
44
45
#endif
// ALKEYFRAME_H
ALSceneLoader.h
SO3::ALKeyFrame
Definition
ALKeyFrame.h:9
SO3::ALKeyFrame::createInterpolation
void createInterpolation(std::vector< ALKeyFrame > keyframes, aiNode *initNode)
Definition
ALKeyFrame.cpp:78
SO3::ALKeyFrame::~ALKeyFrame
~ALKeyFrame()
Definition
ALKeyFrame.cpp:14
SO3::ALKeyFrame::setRotation
void setRotation(aiQuatKey rotationKey)
Definition
ALKeyFrame.cpp:50
SO3::ALKeyFrame::getRotation
aiQuatKey getRotation()
Definition
ALKeyFrame.cpp:66
SO3::ALKeyFrame::setPosition
void setPosition(aiVectorKey positionkey)
Definition
ALKeyFrame.cpp:38
SO3::ALKeyFrame::hasPosition
bool hasPosition()
Definition
ALKeyFrame.cpp:18
SO3::ALKeyFrame::getPosition
aiVectorKey getPosition()
Definition
ALKeyFrame.cpp:56
SO3::ALKeyFrame::getTime
double getTime()
Definition
ALKeyFrame.cpp:33
SO3::ALKeyFrame::setScale
void setScale(aiVectorKey scaleKey)
Definition
ALKeyFrame.cpp:44
SO3::ALKeyFrame::getScale
aiVectorKey getScale()
Definition
ALKeyFrame.cpp:61
SO3::ALKeyFrame::hasRotation
bool hasRotation()
Definition
ALKeyFrame.cpp:28
SO3::ALKeyFrame::hasScale
bool hasScale()
Definition
ALKeyFrame.cpp:23
SO3
Definition
SO3DataScol.h:38
Generated by
1.9.8