Neo  0.5.0
Developer Documentation
Object3dAnim.h
Go to the documentation of this file.
1 //========================================================================
2 // Copyright (c) 2003-2011 Anael Seghezzi <www.maratis3d.com>
3 //
4 // This software is provided 'as-is', without any express or implied
5 // warranty. In no event will the authors be held liable for any damages
6 // arising from the use of this software.
7 //
8 // Permission is granted to anyone to use this software for any purpose,
9 // including commercial applications, and to alter it and redistribute it
10 // freely, subject to the following restrictions:
11 //
12 // 1. The origin of this software must not be misrepresented; you must not
13 // claim that you wrote the original software. If you use this software
14 // in a product, an acknowledgment in the product documentation would
15 // be appreciated but is not required.
16 //
17 // 2. Altered source versions must be plainly marked as such, and must not
18 // be misrepresented as being the original software.
19 //
20 // 3. This notice may not be removed or altered from any source
21 // distribution.
22 //
23 //========================================================================
24 
25 
26 #ifndef __OBJECT3D_ANIM
27 #define __OBJECT3D_ANIM
28 
29 namespace Neo
30 {
31 class NEO_ENGINE_EXPORT Object3dAnim
32 {
33 public:
34 
35  Object3dAnim(void);
36  ~Object3dAnim(void);
37 
38 private:
39 
40  unsigned int m_positionKeysNumber;
41  unsigned int m_scaleKeysNumber;
42  unsigned int m_rotationKeysNumber;
43 
44  Key * m_positionKeys;
45  Key * m_scaleKeys;
46  Key * m_rotationKeys;
47 
48 public:
49 
50  Key * allocPositionKeys(unsigned int size);
51  Key * allocScaleKeys(unsigned int size);
52  Key * allocRotationKeys(unsigned int size);
53 
54  void clearPositionKeys(void);
55  void clearScaleKeys(void);
56  void clearRotationKeys(void);
57 
58  inline unsigned int getPositionKeysNumber(void){ return m_positionKeysNumber; }
59  inline unsigned int getScaleKeysNumber(void){ return m_scaleKeysNumber; }
60  inline unsigned int getRotationKeysNumber(void){ return m_rotationKeysNumber; }
61 
62  inline Key * getPositionKeys(void){ return m_positionKeys; }
63  inline Key * getScaleKeys(void){ return m_scaleKeys; }
64  inline Key * getRotationKeys(void){ return m_rotationKeys; }
65 };
66 }
67 
68 #endif
unsigned int getPositionKeysNumber(void)
Definition: Object3dAnim.h:58
Definition: Object3dAnim.h:31
Key * getRotationKeys(void)
Definition: Object3dAnim.h:64
Definition: Key.h:31
unsigned int getScaleKeysNumber(void)
Definition: Object3dAnim.h:59
Key * getPositionKeys(void)
Definition: Object3dAnim.h:62
Key * getScaleKeys(void)
Definition: Object3dAnim.h:63
unsigned int getRotationKeysNumber(void)
Definition: Object3dAnim.h:60
Definition: Color.h:29