- Cal3D 0.11 API Reference -

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 /*****************************************************************************/
30
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 bool create();
47 void destroy();
48 const CalQuaternion& getRotation();
49
50 /*****************************************************************************/
57 inline float getTime() const
58 {
59 return m_time;
60 }
61
62 const CalVector& getTranslation();
63 void setRotation(const CalQuaternion& rotation);
64 void setTime(float time);
65 void setTranslation(const CalVector& translation);
66};
67
68#endif
69
70//****************************************************************************//
CalCoreKeyframe::getRotation
const CalQuaternion & getRotation()
Returns the rotation.
Definition corekeyframe.cpp:76
CalCoreKeyframe::getTime
float getTime() const
Returns the time.
Definition corekeyframe.h:57
CalCoreKeyframe::destroy
void destroy()
Destroys the core keyframe instance.
Definition corekeyframe.cpp:64
CalCoreKeyframe::CalCoreKeyframe
CalCoreKeyframe()
Constructs the core keyframe instance.
Definition corekeyframe.cpp:27
CalCoreKeyframe::create
bool create()
Creates the core keyframe instance.
Definition corekeyframe.cpp:52
CalQuaternion
The quaternion class.
Definition quaternion.h:36
CalVector
The vector class.
Definition vector.h:37

Generated by The Cal3D Team with Doxygen 1.15.0