- 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  /*****************************************************************************/
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
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 //****************************************************************************//
float getTime() const
Returns the time.
Definition: corekeyframe.h:57
The vector class.
Definition: vector.h:36
The core keyframe class.
Definition: corekeyframe.h:31
The quaternion class.
Definition: quaternion.h:35

Generated at Wed Nov 26 2014 05:33:20 by The Cal3D Team with Doxygen 1.8.7