From 959831f4ef5a3e797f576c3de08cd65032c997ad Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 18:54:10 +1000 Subject: Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard. --- .../Irrlicht/CDummyTransformationSceneNode.cpp | 210 ++++++++++----------- 1 file changed, 105 insertions(+), 105 deletions(-) (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.cpp') diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.cpp b/libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.cpp index 812145a..34920d7 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.cpp +++ b/libraries/irrlicht-1.8/source/Irrlicht/CDummyTransformationSceneNode.cpp @@ -1,105 +1,105 @@ -// 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 - -#include "CDummyTransformationSceneNode.h" -#include "os.h" - -namespace irr -{ -namespace scene -{ - -//! constructor -CDummyTransformationSceneNode::CDummyTransformationSceneNode( - ISceneNode* parent, ISceneManager* mgr, s32 id) - : IDummyTransformationSceneNode(parent, mgr, id) -{ - #ifdef _DEBUG - setDebugName("CDummyTransformationSceneNode"); - #endif - - setAutomaticCulling(scene::EAC_OFF); -} - - -//! returns the axis aligned bounding box of this node -const core::aabbox3d& CDummyTransformationSceneNode::getBoundingBox() const -{ - return Box; -} - - -//! Returns a reference to the current relative transformation matrix. -//! This is the matrix, this scene node uses instead of scale, translation -//! and rotation. -core::matrix4& CDummyTransformationSceneNode::getRelativeTransformationMatrix() -{ - return RelativeTransformationMatrix; -} - - -//! Returns the relative transformation of the scene node. -core::matrix4 CDummyTransformationSceneNode::getRelativeTransformation() const -{ - return RelativeTransformationMatrix; -} - -//! Creates a clone of this scene node and its children. -ISceneNode* CDummyTransformationSceneNode::clone(ISceneNode* newParent, ISceneManager* newManager) -{ - if (!newParent) - newParent = Parent; - if (!newManager) - newManager = SceneManager; - - CDummyTransformationSceneNode* nb = new CDummyTransformationSceneNode(newParent, - newManager, ID); - - nb->cloneMembers(this, newManager); - nb->RelativeTransformationMatrix = RelativeTransformationMatrix; - nb->Box = Box; - - if ( newParent ) - nb->drop(); - return nb; -} - -const core::vector3df& CDummyTransformationSceneNode::getScale() const -{ - os::Printer::log("CDummyTransformationSceneNode::getScale() does not contain the relative transformation.", ELL_DEBUG); - return RelativeScale; -} - -void CDummyTransformationSceneNode::setScale(const core::vector3df& scale) -{ - os::Printer::log("CDummyTransformationSceneNode::setScale() does not affect the relative transformation.", ELL_DEBUG); - RelativeScale = scale; -} - -const core::vector3df& CDummyTransformationSceneNode::getRotation() const -{ - os::Printer::log("CDummyTransformationSceneNode::getRotation() does not contain the relative transformation.", ELL_DEBUG); - return RelativeRotation; -} - -void CDummyTransformationSceneNode::setRotation(const core::vector3df& rotation) -{ - os::Printer::log("CDummyTransformationSceneNode::setRotation() does not affect the relative transformation.", ELL_DEBUG); - RelativeRotation = rotation; -} - -const core::vector3df& CDummyTransformationSceneNode::getPosition() const -{ - os::Printer::log("CDummyTransformationSceneNode::getPosition() does not contain the relative transformation.", ELL_DEBUG); - return RelativeTranslation; -} - -void CDummyTransformationSceneNode::setPosition(const core::vector3df& newpos) -{ - os::Printer::log("CDummyTransformationSceneNode::setPosition() does not affect the relative transformation.", ELL_DEBUG); - RelativeTranslation = newpos; -} - -} // end namespace scene -} // end namespace irr +// 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 + +#include "CDummyTransformationSceneNode.h" +#include "os.h" + +namespace irr +{ +namespace scene +{ + +//! constructor +CDummyTransformationSceneNode::CDummyTransformationSceneNode( + ISceneNode* parent, ISceneManager* mgr, s32 id) + : IDummyTransformationSceneNode(parent, mgr, id) +{ + #ifdef _DEBUG + setDebugName("CDummyTransformationSceneNode"); + #endif + + setAutomaticCulling(scene::EAC_OFF); +} + + +//! returns the axis aligned bounding box of this node +const core::aabbox3d& CDummyTransformationSceneNode::getBoundingBox() const +{ + return Box; +} + + +//! Returns a reference to the current relative transformation matrix. +//! This is the matrix, this scene node uses instead of scale, translation +//! and rotation. +core::matrix4& CDummyTransformationSceneNode::getRelativeTransformationMatrix() +{ + return RelativeTransformationMatrix; +} + + +//! Returns the relative transformation of the scene node. +core::matrix4 CDummyTransformationSceneNode::getRelativeTransformation() const +{ + return RelativeTransformationMatrix; +} + +//! Creates a clone of this scene node and its children. +ISceneNode* CDummyTransformationSceneNode::clone(ISceneNode* newParent, ISceneManager* newManager) +{ + if (!newParent) + newParent = Parent; + if (!newManager) + newManager = SceneManager; + + CDummyTransformationSceneNode* nb = new CDummyTransformationSceneNode(newParent, + newManager, ID); + + nb->cloneMembers(this, newManager); + nb->RelativeTransformationMatrix = RelativeTransformationMatrix; + nb->Box = Box; + + if ( newParent ) + nb->drop(); + return nb; +} + +const core::vector3df& CDummyTransformationSceneNode::getScale() const +{ + os::Printer::log("CDummyTransformationSceneNode::getScale() does not contain the relative transformation.", ELL_DEBUG); + return RelativeScale; +} + +void CDummyTransformationSceneNode::setScale(const core::vector3df& scale) +{ + os::Printer::log("CDummyTransformationSceneNode::setScale() does not affect the relative transformation.", ELL_DEBUG); + RelativeScale = scale; +} + +const core::vector3df& CDummyTransformationSceneNode::getRotation() const +{ + os::Printer::log("CDummyTransformationSceneNode::getRotation() does not contain the relative transformation.", ELL_DEBUG); + return RelativeRotation; +} + +void CDummyTransformationSceneNode::setRotation(const core::vector3df& rotation) +{ + os::Printer::log("CDummyTransformationSceneNode::setRotation() does not affect the relative transformation.", ELL_DEBUG); + RelativeRotation = rotation; +} + +const core::vector3df& CDummyTransformationSceneNode::getPosition() const +{ + os::Printer::log("CDummyTransformationSceneNode::getPosition() does not contain the relative transformation.", ELL_DEBUG); + return RelativeTranslation; +} + +void CDummyTransformationSceneNode::setPosition(const core::vector3df& newpos) +{ + os::Printer::log("CDummyTransformationSceneNode::setPosition() does not affect the relative transformation.", ELL_DEBUG); + RelativeTranslation = newpos; +} + +} // end namespace scene +} // end namespace irr -- cgit v1.1