aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/source/Irrlicht/CDummyTransformationSceneNode.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/irrlicht-1.8.1/source/Irrlicht/CDummyTransformationSceneNode.h')
-rw-r--r--src/others/irrlicht-1.8.1/source/Irrlicht/CDummyTransformationSceneNode.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/source/Irrlicht/CDummyTransformationSceneNode.h b/src/others/irrlicht-1.8.1/source/Irrlicht/CDummyTransformationSceneNode.h
new file mode 100644
index 0000000..2ad2266
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/source/Irrlicht/CDummyTransformationSceneNode.h
@@ -0,0 +1,62 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5#ifndef __C_DUMMY_TRANSFORMATION_SCENE_NODE_H_INCLUDED__
6#define __C_DUMMY_TRANSFORMATION_SCENE_NODE_H_INCLUDED__
7
8#include "IDummyTransformationSceneNode.h"
9
10namespace irr
11{
12namespace scene
13{
14
15 class CDummyTransformationSceneNode : public IDummyTransformationSceneNode
16 {
17 public:
18
19 //! constructor
20 CDummyTransformationSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id);
21
22 //! returns the axis aligned bounding box of this node
23 virtual const core::aabbox3d<f32>& getBoundingBox() const;
24
25 //! Returns a reference to the current relative transformation matrix.
26 //! This is the matrix, this scene node uses instead of scale, translation
27 //! and rotation.
28 virtual core::matrix4& getRelativeTransformationMatrix();
29
30 //! Returns the relative transformation of the scene node.
31 virtual core::matrix4 getRelativeTransformation() const;
32
33 //! does nothing.
34 virtual void render() {}
35
36 //! Returns type of the scene node
37 virtual ESCENE_NODE_TYPE getType() const { return ESNT_DUMMY_TRANSFORMATION; }
38
39 //! Creates a clone of this scene node and its children.
40 virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0);
41
42
43 private:
44
45 // TODO: We can add least add some warnings to find troubles faster until we have
46 // fixed bug id 2318691.
47 virtual const core::vector3df& getScale() const;
48 virtual void setScale(const core::vector3df& scale);
49 virtual const core::vector3df& getRotation() const;
50 virtual void setRotation(const core::vector3df& rotation);
51 virtual const core::vector3df& getPosition() const;
52 virtual void setPosition(const core::vector3df& newpos);
53
54 core::matrix4 RelativeTransformationMatrix;
55 core::aabbox3d<f32> Box;
56 };
57
58} // end namespace scene
59} // end namespace irr
60
61#endif
62