2019-12-12 17:32:41 +01:00
|
|
|
// Copyright (C) 2002-2012 Nikolaus Gebhardt
|
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
2021-08-27 17:55:04 +02:00
|
|
|
#ifndef IRR_C_DUMMY_TRANSFORMATION_SCENE_NODE_H_INCLUDED
|
|
|
|
#define IRR_C_DUMMY_TRANSFORMATION_SCENE_NODE_H_INCLUDED
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
#include "IDummyTransformationSceneNode.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
namespace scene
|
|
|
|
{
|
|
|
|
|
|
|
|
class CDummyTransformationSceneNode : public IDummyTransformationSceneNode
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
//! constructor
|
|
|
|
CDummyTransformationSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id);
|
|
|
|
|
|
|
|
//! returns the axis aligned bounding box of this node
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual const core::aabbox3d<f32>& getBoundingBox() const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns a reference to the current relative transformation matrix.
|
|
|
|
//! This is the matrix, this scene node uses instead of scale, translation
|
|
|
|
//! and rotation.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::matrix4& getRelativeTransformationMatrix() IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns the relative transformation of the scene node.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual core::matrix4 getRelativeTransformation() const IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! does nothing.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual void render() IRR_OVERRIDE {}
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Returns type of the scene node
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual ESCENE_NODE_TYPE getType() const IRR_OVERRIDE { return ESNT_DUMMY_TRANSFORMATION; }
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
//! Creates a clone of this scene node and its children.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
// TODO: We can add least add some warnings to find troubles faster until we have
|
|
|
|
// fixed bug id 2318691.
|
2021-08-27 14:55:10 +02:00
|
|
|
virtual const core::vector3df& getScale() const IRR_OVERRIDE;
|
|
|
|
virtual void setScale(const core::vector3df& scale) IRR_OVERRIDE;
|
|
|
|
virtual const core::vector3df& getRotation() const IRR_OVERRIDE;
|
|
|
|
virtual void setRotation(const core::vector3df& rotation) IRR_OVERRIDE;
|
|
|
|
virtual const core::vector3df& getPosition() const IRR_OVERRIDE;
|
|
|
|
virtual void setPosition(const core::vector3df& newpos) IRR_OVERRIDE;
|
2019-12-12 17:32:41 +01:00
|
|
|
|
|
|
|
core::matrix4 RelativeTransformationMatrix;
|
|
|
|
core::aabbox3d<f32> Box;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace scene
|
|
|
|
} // end namespace irr
|
|
|
|
|
|
|
|
#endif
|