SO3Engine
include
SO3SceneLoader
ALConverterNodeAnim.h
Go to the documentation of this file.
1
#ifndef ALCONVERTERNODEANIM_H
2
#define ALCONVERTERNODEANIM_H
3
4
#include "
ALObject.h
"
5
6
// STL
7
#include <vector>
8
9
// Tinyxml2
10
#include "
SO3SceneLoader/tinyxml2.h
"
11
12
13
namespace
SO3
14
{
15
class
ALScene;
16
17
class
ALConverterNodeAnim
18
{
19
public
:
20
ALConverterNodeAnim
(
ALScene
* scene, aiAnimation* animation, aiNodeAnim* nodeAnim, aiNode* node,
double
tickPerSec);
21
22
~ALConverterNodeAnim
();
23
24
bool
isAffected
(aiString nodeName);
25
void
convert
(
tinyxml2::XMLElement
* xmlAnimations,
bool
first =
false
);
26
void
load
(
SNode
* ogNode);
27
private
:
28
double
getTime();
29
unsigned
int
getBiggest(
unsigned
int
* data,
unsigned
int
size);
30
template
<
typename
T> T getBiggerValue(T* data,
unsigned
int
size);
31
32
aiAnimation* mAnim;
33
aiNodeAnim* mNodeAnim;
34
aiNode* mNode;
35
ALScene
* mScene;
36
double
mTickPerSec;
37
};
38
};
39
40
#endif
// ALCONVERTERNODEANIM_H
ALObject.h
SO3::ALConverterNodeAnim
Definition
ALConverterNodeAnim.h:18
SO3::ALConverterNodeAnim::~ALConverterNodeAnim
~ALConverterNodeAnim()
Definition
ALConverterNodeAnim.cpp:25
SO3::ALConverterNodeAnim::load
void load(SNode *ogNode)
Definition
ALConverterNodeAnim.cpp:173
SO3::ALConverterNodeAnim::isAffected
bool isAffected(aiString nodeName)
Definition
ALConverterNodeAnim.cpp:30
SO3::ALConverterNodeAnim::convert
void convert(tinyxml2::XMLElement *xmlAnimations, bool first=false)
Definition
ALConverterNodeAnim.cpp:62
SO3::ALScene
Definition
ALScene.h:31
SO3::SNode
Definition
SO3NodeScol.h:43
tinyxml2::XMLElement
Definition
tinyxml2.h:1130
SO3
Definition
SO3DataScol.h:38
tinyxml2.h
Generated by
1.9.8