- Cal3D 0.11 API Reference -
src
cal3d
corekeyframe.h
1
//****************************************************************************//
2
// corekeyframe.h //
3
// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //
4
//****************************************************************************//
5
// This library is free software; you can redistribute it and/or modify it //
6
// under the terms of the GNU Lesser General Public License as published by //
7
// the Free Software Foundation; either version 2.1 of the License, or (at //
8
// your option) any later version. //
9
//****************************************************************************//
10
11
#ifndef CAL_COREKEYFRAME_H
12
#define CAL_COREKEYFRAME_H
13
14
//****************************************************************************//
15
// Includes //
16
//****************************************************************************//
17
18
#include "cal3d/global.h"
19
#include "cal3d/matrix.h"
20
#include "cal3d/vector.h"
21
#include "cal3d/quaternion.h"
22
23
//****************************************************************************//
24
// Class declaration //
25
//****************************************************************************//
26
27
/*****************************************************************************/
31
class
CAL3D_API
CalCoreKeyframe
32
{
33
// member variables
34
protected
:
35
float
m_time;
36
CalVector
m_translation;
37
CalQuaternion
m_rotation;
38
39
public
:
40
// constructors/destructor
41
CalCoreKeyframe
();
42
virtual
~CalCoreKeyframe
();
43
44
// member functions
45
public
:
46
static
unsigned
int
numCalCoreKeyframes();
47
static
unsigned
int
numCalCoreKeyframeBytes();
48
49
bool
create();
50
unsigned
int
size();
51
void
destroy();
52
const
CalQuaternion
& getRotation()
const
;
53
54
/*****************************************************************************/
61
inline
float
getTime
()
const
62
{
63
return
m_time;
64
}
65
66
const
CalVector
& getTranslation()
const
;
67
void
setRotation(
const
CalQuaternion
& rotation);
68
void
setTime(
float
time);
69
void
setTranslation(
const
CalVector
& translation);
70
};
71
72
#endif
73
74
//****************************************************************************//
CalCoreKeyframe
The core keyframe class.
Definition
corekeyframe.h:32
CalCoreKeyframe::getTime
float getTime() const
Returns the time.
Definition
corekeyframe.h:61
CalQuaternion
The quaternion class.
Definition
quaternion.h:36
CalVector
The vector class.
Definition
vector.h:37
Generated by
The Cal3D Team
with
Doxygen 1.10.0