1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
\r
2 // This file is part of the "Irrlicht Engine".
\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
\r
5 #ifndef __C_DUMMY_TRANSFORMATION_SCENE_NODE_H_INCLUDED__
\r
6 #define __C_DUMMY_TRANSFORMATION_SCENE_NODE_H_INCLUDED__
\r
8 #include "IDummyTransformationSceneNode.h"
\r
15 class CDummyTransformationSceneNode : public IDummyTransformationSceneNode
\r
20 CDummyTransformationSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id);
\r
22 //! returns the axis aligned bounding box of this node
\r
23 const core::aabbox3d<f32>& getBoundingBox() const override;
\r
25 //! Returns a reference to the current relative transformation matrix.
\r
26 //! This is the matrix, this scene node uses instead of scale, translation
\r
28 core::matrix4& getRelativeTransformationMatrix() override;
\r
30 //! Returns the relative transformation of the scene node.
\r
31 core::matrix4 getRelativeTransformation() const override;
\r
34 void render() override {}
\r
36 //! Returns type of the scene node
\r
37 ESCENE_NODE_TYPE getType() const override { return ESNT_DUMMY_TRANSFORMATION; }
\r
39 //! Creates a clone of this scene node and its children.
\r
40 ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) override;
\r
45 // TODO: We can add least add some warnings to find troubles faster until we have
\r
46 // fixed bug id 2318691.
\r
47 const core::vector3df& getScale() const override;
\r
48 void setScale(const core::vector3df& scale) override;
\r
49 const core::vector3df& getRotation() const override;
\r
50 void setRotation(const core::vector3df& rotation) override;
\r
51 const core::vector3df& getPosition() const override;
\r
52 void setPosition(const core::vector3df& newpos) override;
\r
54 core::matrix4 RelativeTransformationMatrix;
\r
55 core::aabbox3d<f32> Box;
\r
58 } // end namespace scene
\r
59 } // end namespace irr
\r