OGRE-Next  2.3
Object-Oriented Graphics Rendering Engine
Ogre::v1::OldNode Class Referenceabstract

Class representing a general-purpose OldNode an articulated scene graph. More...

#include <OgreOldNode.h>

+ Inheritance diagram for Ogre::v1::OldNode:

Classes

class  Listener
 Listener which gets called back on OldNode events. More...
 

Public Types

typedef MapIterator< ChildOldNodeMapChildOldNodeIterator
 
typedef unordered_map< String, OldNode * >::type ChildOldNodeMap
 
typedef ConstMapIterator< ChildOldNodeMapConstChildOldNodeIterator
 
enum  TransformSpace { TS_LOCAL , TS_PARENT , TS_WORLD }
 Enumeration denoting the spaces which a transform can be relative to. More...
 

Public Member Functions

 OldNode ()
 Constructor, should only be called by parent, not directly. More...
 
 OldNode (const String &name)
 Constructor, should only be called by parent, not directly. More...
 
virtual ~OldNode ()
 
virtual const Quaternion_getDerivedOrientation () const
 Gets the orientation of the OldNode as derived from all parents. More...
 
virtual const Vector3_getDerivedPosition () const
 Gets the position of the OldNode as derived from all parents. More...
 
virtual const Vector3_getDerivedScale () const
 Gets the scaling factor of the OldNode as derived from all parents. More...
 
virtual const Matrix4_getFullTransform () const
 Gets the full transformation matrix for this OldNode. More...
 
virtual void _setDerivedOrientation (const Quaternion &q)
 Sets the final world orientation of the OldNode directly. More...
 
virtual void _setDerivedPosition (const Vector3 &pos)
 Sets the final world position of the OldNode directly. More...
 
virtual void _update (bool updateChildren, bool parentHasChanged)
 Internal method to update the OldNode. More...
 
virtual void addChild (OldNode *child)
 Adds a (precreated) child scene OldNode to this OldNode. More...
 
virtual void cancelUpdate (OldNode *child)
 Called by children to notify their parent that they no longer need an update. More...
 
virtual Quaternion convertLocalToWorldOrientation (const Quaternion &localOrientation)
 Gets the world orientation of an orientation in the OldNode local space useful for simple transforms that don't require a child OldNode. More...
 
virtual Vector3 convertLocalToWorldPosition (const Vector3 &localPos)
 Gets the world position of a point in the OldNode local space useful for simple transforms that don't require a child OldNode. More...
 
virtual Quaternion convertWorldToLocalOrientation (const Quaternion &worldOrientation)
 Gets the local orientation, relative to this OldNode, of the given world-space orientation. More...
 
virtual Vector3 convertWorldToLocalPosition (const Vector3 &worldPos)
 Gets the local position, relative to this OldNode, of the given world-space position. More...
 
virtual OldNodecreateChild (const String &name, const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY)
 Creates a new named OldNode as a child of this OldNode. More...
 
virtual OldNodecreateChild (const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY)
 Creates an unnamed new OldNode as a child of this OldNode. More...
 
virtual OldNodegetChild (const String &name) const
 Gets a pointer to a named child OldNode. More...
 
virtual OldNodegetChild (unsigned short index) const
 Gets a pointer to a child OldNode. More...
 
virtual ChildOldNodeIterator getChildIterator ()
 Retrieves an iterator for efficiently looping through all children of this OldNode. More...
 
virtual ConstChildOldNodeIterator getChildIterator () const
 Retrieves an iterator for efficiently looping through all children of this OldNode. More...
 
virtual bool getInheritOrientation () const
 Returns true if this OldNode is affected by orientation applied to the parent OldNode. More...
 
virtual bool getInheritScale () const
 Returns true if this OldNode is affected by scaling factors applied to the parent OldNode. More...
 
virtual const QuaterniongetInitialOrientation () const
 Gets the initial orientation of this OldNode, see setInitialState for more info. More...
 
virtual const Vector3getInitialPosition () const
 Gets the initial position of this OldNode, see setInitialState for more info. More...
 
virtual const Vector3getInitialScale () const
 Gets the initial position of this OldNode, see setInitialState for more info. More...
 
virtual ListenergetListener () const
 Gets the current listener for this OldNode. More...
 
virtual Matrix3 getLocalAxes () const
 Gets a matrix whose columns are the local axes based on the OldNodes orientation relative to it's parent. More...
 
const StringgetName () const
 Returns the name of the OldNode. More...
 
virtual const QuaterniongetOrientation () const
 Returns a quaternion representing the OldNodes orientation. More...
 
virtual OldNodegetParent () const
 Gets this OldNode's parent (NULL if this is the root). More...
 
virtual const Vector3getPosition () const
 Gets the position of the OldNode relative to it's parent. More...
 
virtual const Vector3getScale () const
 Gets the scaling factor of this OldNode. More...
 
virtual Real getSquaredViewDepth (const Camera *cam) const
 Helper function, get the squared view depth. More...
 
virtual const AnygetUserAny () const
 
UserObjectBindingsgetUserObjectBindings ()
 Return an instance of user objects binding associated with this class. More...
 
const UserObjectBindingsgetUserObjectBindings () const
 Return an instance of user objects binding associated with this class. More...
 
virtual void needUpdate (bool forceParentUpdate=false)
 To be called in the event of transform changes to this OldNode that require it's recalculation. More...
 
virtual unsigned short numChildren () const
 Reports the number of child OldNodes under this one. More...
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
virtual void pitch (const Radian &angle, TransformSpace relativeTo=TS_LOCAL)
 Rotate the OldNode around the X-axis. More...
 
virtual void removeAllChildren ()
 Removes all child OldNodes attached to this OldNode. More...
 
virtual OldNoderemoveChild (const String &name)
 Drops the named child from this OldNode. More...
 
virtual OldNoderemoveChild (OldNode *child)
 Drops the specified child from this OldNode. More...
 
virtual OldNoderemoveChild (unsigned short index)
 Drops the specified child from this OldNode. More...
 
virtual void requestUpdate (OldNode *child, bool forceParentUpdate=false)
 Called by children to notify their parent that they need an update. More...
 
virtual void resetOrientation ()
 Resets the OldNodes orientation (local axes as world axes, no rotation). More...
 
virtual void resetToInitialState ()
 Resets the position / orientation / scale of this OldNode to it's initial state, see setInitialState for more info. More...
 
virtual void roll (const Radian &angle, TransformSpace relativeTo=TS_LOCAL)
 Rotate the OldNode around the Z-axis. More...
 
virtual void rotate (const Quaternion &q, TransformSpace relativeTo=TS_LOCAL)
 Rotate the OldNode around an aritrary axis using a Quarternion. More...
 
virtual void rotate (const Vector3 &axis, const Radian &angle, TransformSpace relativeTo=TS_LOCAL)
 Rotate the OldNode around an arbitrary axis. More...
 
virtual void scale (const Vector3 &scale)
 Scales the OldNode, combining it's current scale with the passed in scaling factor. More...
 
virtual void scale (Real x, Real y, Real z)
 Scales the OldNode, combining it's current scale with the passed in scaling factor. More...
 
virtual void setInheritOrientation (bool inherit)
 Tells the OldNode whether it should inherit orientation from it's parent OldNode. More...
 
virtual void setInheritScale (bool inherit)
 Tells the OldNode whether it should inherit scaling factors from it's parent OldNode. More...
 
virtual void setInitialState ()
 Sets the current transform of this OldNode to be the 'initial state' ie that position / orientation / scale to be used as a basis for delta values used in keyframe animation. More...
 
virtual void setListener (Listener *listener)
 Sets a listener for this OldNode. More...
 
virtual void setOrientation (const Quaternion &q)
 Sets the orientation of this OldNode via a quaternion. More...
 
virtual void setOrientation (Real w, Real x, Real y, Real z)
 Sets the orientation of this OldNode via quaternion parameters. More...
 
virtual void setPosition (const Vector3 &pos)
 Sets the position of the OldNode relative to it's parent. More...
 
virtual void setPosition (Real x, Real y, Real z)
 Sets the position of the OldNode relative to it's parent. More...
 
virtual void setScale (const Vector3 &scale)
 Sets the scaling factor applied to this OldNode. More...
 
virtual void setScale (Real x, Real y, Real z)
 Sets the scaling factor applied to this OldNode. More...
 
virtual void setUserAny (const Any &anything)
 
virtual void translate (const Matrix3 &axes, const Vector3 &move, TransformSpace relativeTo=TS_PARENT)
 Moves the OldNode along arbitrary axes. More...
 
virtual void translate (const Matrix3 &axes, Real x, Real y, Real z, TransformSpace relativeTo=TS_PARENT)
 Moves the OldNode along arbitrary axes. More...
 
virtual void translate (const Vector3 &d, TransformSpace relativeTo=TS_PARENT)
 Moves the OldNode along the Cartesian axes. More...
 
virtual void translate (Real x, Real y, Real z, TransformSpace relativeTo=TS_PARENT)
 Moves the OldNode along the Cartesian axes. More...
 
virtual void yaw (const Radian &angle, TransformSpace relativeTo=TS_LOCAL)
 Rotate the OldNode around the Y-axis. More...
 

Static Public Member Functions

static void processQueuedUpdates ()
 Process queued 'needUpdate' calls. More...
 
static void queueNeedUpdate (OldNode *n)
 Queue a 'needUpdate' call to a OldNode safely. More...
 

Detailed Description

Class representing a general-purpose OldNode an articulated scene graph.

Remarks
A OldNode in the scene graph is a OldNode in a structured tree. A OldNode contains information about the transformation which will apply to it and all of it's children. Child OldNodes can have transforms of their own, which are combined with their parent's transformations.
This is an abstract class - concrete classes are based on this for specific purposes, e.g. OldBone

Member Typedef Documentation

◆ ChildOldNodeIterator

◆ ChildOldNodeMap

typedef unordered_map<String, OldNode*>::type Ogre::v1::OldNode::ChildOldNodeMap

◆ ConstChildOldNodeIterator

Member Enumeration Documentation

◆ TransformSpace

Enumeration denoting the spaces which a transform can be relative to.

Enumerator
TS_LOCAL 

Transform is relative to the local space.

TS_PARENT 

Transform is relative to the space of the parent OldNode.

TS_WORLD 

Transform is relative to world space.

Constructor & Destructor Documentation

◆ OldNode() [1/2]

Ogre::v1::OldNode::OldNode ( )

Constructor, should only be called by parent, not directly.

Remarks
Generates a name.

◆ OldNode() [2/2]

Ogre::v1::OldNode::OldNode ( const String name)

Constructor, should only be called by parent, not directly.

Remarks
Assigned a name.

◆ ~OldNode()

virtual Ogre::v1::OldNode::~OldNode ( )
virtual

Member Function Documentation

◆ _getDerivedOrientation()

virtual const Quaternion& Ogre::v1::OldNode::_getDerivedOrientation ( ) const
virtual

Gets the orientation of the OldNode as derived from all parents.

◆ _getDerivedPosition()

virtual const Vector3& Ogre::v1::OldNode::_getDerivedPosition ( ) const
virtual

Gets the position of the OldNode as derived from all parents.

◆ _getDerivedScale()

virtual const Vector3& Ogre::v1::OldNode::_getDerivedScale ( ) const
virtual

Gets the scaling factor of the OldNode as derived from all parents.

◆ _getFullTransform()

virtual const Matrix4& Ogre::v1::OldNode::_getFullTransform ( ) const
virtual

Gets the full transformation matrix for this OldNode.

Remarks
This method returns the full transformation matrix for this OldNode, including the effect of any parent OldNode transformations, provided they have been updated using the OldNode::_update method. This should only be called by a SceneManager which knows the derived transforms have been updated before calling this method. Applications using Ogre should just use the relative transforms.

◆ _setDerivedOrientation()

virtual void Ogre::v1::OldNode::_setDerivedOrientation ( const Quaternion q)
virtual

Sets the final world orientation of the OldNode directly.

Remarks
It's advisable to use the local setOrientation if possible, this simply does the conversion for you.

◆ _setDerivedPosition()

virtual void Ogre::v1::OldNode::_setDerivedPosition ( const Vector3 pos)
virtual

Sets the final world position of the OldNode directly.

Remarks
It's advisable to use the local setPosition if possible

◆ _update()

virtual void Ogre::v1::OldNode::_update ( bool  updateChildren,
bool  parentHasChanged 
)
virtual

Internal method to update the OldNode.

Note
Updates this OldNode and any relevant children to incorporate transforms etc. Don't call this yourself unless you are writing a SceneManager implementation.
Parameters
updateChildrenIf true, the update cascades down to all children. Specify false if you wish to update children separately, e.g. because of a more selective SceneManager implementation.
parentHasChangedThis flag indicates that the parent transform has changed, so the child should retrieve the parent's transform and combine it with its own even if it hasn't changed itself.

◆ addChild()

virtual void Ogre::v1::OldNode::addChild ( OldNode child)
virtual

Adds a (precreated) child scene OldNode to this OldNode.

If it is attached to another OldNode, it must be detached first.

Parameters
childThe OldNode which is to become a child OldNode of this one

◆ cancelUpdate()

virtual void Ogre::v1::OldNode::cancelUpdate ( OldNode child)
virtual

Called by children to notify their parent that they no longer need an update.

◆ convertLocalToWorldOrientation()

virtual Quaternion Ogre::v1::OldNode::convertLocalToWorldOrientation ( const Quaternion localOrientation)
virtual

Gets the world orientation of an orientation in the OldNode local space useful for simple transforms that don't require a child OldNode.

◆ convertLocalToWorldPosition()

virtual Vector3 Ogre::v1::OldNode::convertLocalToWorldPosition ( const Vector3 localPos)
virtual

Gets the world position of a point in the OldNode local space useful for simple transforms that don't require a child OldNode.

◆ convertWorldToLocalOrientation()

virtual Quaternion Ogre::v1::OldNode::convertWorldToLocalOrientation ( const Quaternion worldOrientation)
virtual

Gets the local orientation, relative to this OldNode, of the given world-space orientation.

◆ convertWorldToLocalPosition()

virtual Vector3 Ogre::v1::OldNode::convertWorldToLocalPosition ( const Vector3 worldPos)
virtual

Gets the local position, relative to this OldNode, of the given world-space position.

◆ createChild() [1/2]

virtual OldNode* Ogre::v1::OldNode::createChild ( const String name,
const Vector3 translate = Vector3::ZERO,
const Quaternion rotate = Quaternion::IDENTITY 
)
virtual

Creates a new named OldNode as a child of this OldNode.

Remarks
This creates a child OldNode with a given name, which allows you to look the OldNode up from the parent which holds this collection of OldNodes.
Parameters
translateInitial translation offset of child relative to parent
rotateInitial rotation relative to parent

◆ createChild() [2/2]

virtual OldNode* Ogre::v1::OldNode::createChild ( const Vector3 translate = Vector3::ZERO,
const Quaternion rotate = Quaternion::IDENTITY 
)
virtual

Creates an unnamed new OldNode as a child of this OldNode.

Parameters
translateInitial translation offset of child relative to parent
rotateInitial rotation relative to parent

◆ getChild() [1/2]

virtual OldNode* Ogre::v1::OldNode::getChild ( const String name) const
virtual

Gets a pointer to a named child OldNode.

◆ getChild() [2/2]

virtual OldNode* Ogre::v1::OldNode::getChild ( unsigned short  index) const
virtual

Gets a pointer to a child OldNode.

Remarks
There is an alternate getChild method which returns a named child.

◆ getChildIterator() [1/2]

virtual ChildOldNodeIterator Ogre::v1::OldNode::getChildIterator ( )
virtual

Retrieves an iterator for efficiently looping through all children of this OldNode.

Remarks
Using this is faster than repeatedly calling getChild if you want to go through all (or most of) the children of this OldNode. Note that the returned iterator is only valid whilst no children are added or removed from this OldNode. Thus you should not store this returned iterator for later use, nor should you add / remove children whilst iterating through it; store up changes for later. Note that calling methods on returned items in the iterator IS allowed and does not invalidate the iterator.

◆ getChildIterator() [2/2]

virtual ConstChildOldNodeIterator Ogre::v1::OldNode::getChildIterator ( ) const
virtual

Retrieves an iterator for efficiently looping through all children of this OldNode.

Remarks
Using this is faster than repeatedly calling getChild if you want to go through all (or most of) the children of this OldNode. Note that the returned iterator is only valid whilst no children are added or removed from this OldNode. Thus you should not store this returned iterator for later use, nor should you add / remove children whilst iterating through it; store up changes for later. Note that calling methods on returned items in the iterator IS allowed and does not invalidate the iterator.

◆ getInheritOrientation()

virtual bool Ogre::v1::OldNode::getInheritOrientation ( ) const
virtual

Returns true if this OldNode is affected by orientation applied to the parent OldNode.

Remarks
Orientations, unlike other transforms, are not always inherited by child OldNodes. Whether or not orientations affect the orientation of the child OldNodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent OldNode to apply to a child OldNode (e.g. where the child OldNode is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child OldNode is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms.
See setInheritOrientation for more info.

◆ getInheritScale()

virtual bool Ogre::v1::OldNode::getInheritScale ( ) const
virtual

Returns true if this OldNode is affected by scaling factors applied to the parent OldNode.

Remarks
See setInheritScale for more info.

◆ getInitialOrientation()

virtual const Quaternion& Ogre::v1::OldNode::getInitialOrientation ( ) const
virtual

Gets the initial orientation of this OldNode, see setInitialState for more info.

◆ getInitialPosition()

virtual const Vector3& Ogre::v1::OldNode::getInitialPosition ( ) const
virtual

Gets the initial position of this OldNode, see setInitialState for more info.

Remarks
Also resets the cumulative animation weight used for blending.

◆ getInitialScale()

virtual const Vector3& Ogre::v1::OldNode::getInitialScale ( ) const
virtual

Gets the initial position of this OldNode, see setInitialState for more info.

◆ getListener()

virtual Listener* Ogre::v1::OldNode::getListener ( ) const
inlinevirtual

Gets the current listener for this OldNode.

◆ getLocalAxes()

virtual Matrix3 Ogre::v1::OldNode::getLocalAxes ( ) const
virtual

Gets a matrix whose columns are the local axes based on the OldNodes orientation relative to it's parent.

◆ getName()

const String& Ogre::v1::OldNode::getName ( ) const

Returns the name of the OldNode.

◆ getOrientation()

virtual const Quaternion& Ogre::v1::OldNode::getOrientation ( ) const
virtual

Returns a quaternion representing the OldNodes orientation.

◆ getParent()

virtual OldNode* Ogre::v1::OldNode::getParent ( ) const
virtual

Gets this OldNode's parent (NULL if this is the root).

◆ getPosition()

virtual const Vector3& Ogre::v1::OldNode::getPosition ( ) const
virtual

Gets the position of the OldNode relative to it's parent.

◆ getScale()

virtual const Vector3& Ogre::v1::OldNode::getScale ( ) const
virtual

Gets the scaling factor of this OldNode.

◆ getSquaredViewDepth()

virtual Real Ogre::v1::OldNode::getSquaredViewDepth ( const Camera cam) const
virtual

Helper function, get the squared view depth.


◆ getUserAny()

virtual const Any& Ogre::v1::OldNode::getUserAny ( ) const
inlinevirtual
Deprecated:
use UserObjectBindings::getUserAny via getUserObjectBindings() instead.

Retrieves the custom user value associated with this object.

◆ getUserObjectBindings() [1/2]

UserObjectBindings& Ogre::v1::OldNode::getUserObjectBindings ( )
inline

Return an instance of user objects binding associated with this class.

You can use it to associate one or more custom objects with this class instance.

See also
UserObjectBindings::setUserAny.

◆ getUserObjectBindings() [2/2]

const UserObjectBindings& Ogre::v1::OldNode::getUserObjectBindings ( ) const
inline

Return an instance of user objects binding associated with this class.

You can use it to associate one or more custom objects with this class instance.

See also
UserObjectBindings::setUserAny.

◆ needUpdate()

virtual void Ogre::v1::OldNode::needUpdate ( bool  forceParentUpdate = false)
virtual

To be called in the event of transform changes to this OldNode that require it's recalculation.

Remarks
This not only tags the OldNode state as being 'dirty', it also requests it's parent to know about it's dirtiness so it will get an update next time.
Parameters
forceParentUpdateEven if the OldNode thinks it has already told it's parent, tell it anyway

Reimplemented in Ogre::v1::TagPoint, and Ogre::v1::OldBone.

◆ numChildren()

virtual unsigned short Ogre::v1::OldNode::numChildren ( ) const
virtual

Reports the number of child OldNodes under this one.

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

◆ pitch()

virtual void Ogre::v1::OldNode::pitch ( const Radian angle,
TransformSpace  relativeTo = TS_LOCAL 
)
virtual

Rotate the OldNode around the X-axis.

◆ processQueuedUpdates()

static void Ogre::v1::OldNode::processQueuedUpdates ( )
static

Process queued 'needUpdate' calls.

◆ queueNeedUpdate()

static void Ogre::v1::OldNode::queueNeedUpdate ( OldNode n)
static

Queue a 'needUpdate' call to a OldNode safely.

Remarks
You can't call needUpdate() during the scene graph update, e.g. in response to a OldNode::Listener hook, because the graph is already being updated, and update flag changes cannot be made reliably in that context. Call this method if you need to queue a needUpdate call in this case.

◆ removeAllChildren()

virtual void Ogre::v1::OldNode::removeAllChildren ( )
virtual

Removes all child OldNodes attached to this OldNode.

Does not delete the OldNodes, just detaches them from this parent, potentially to be reattached elsewhere.

◆ removeChild() [1/3]

virtual OldNode* Ogre::v1::OldNode::removeChild ( const String name)
virtual

Drops the named child from this OldNode.

Remarks
Does not delete the OldNode, just detaches it from this parent, potentially to be reattached elsewhere.

◆ removeChild() [2/3]

virtual OldNode* Ogre::v1::OldNode::removeChild ( OldNode child)
virtual

Drops the specified child from this OldNode.

Remarks
Does not delete the OldNode, just detaches it from this parent, potentially to be reattached elsewhere. There is also an alternate version which drops a named child from this OldNode.

◆ removeChild() [3/3]

virtual OldNode* Ogre::v1::OldNode::removeChild ( unsigned short  index)
virtual

Drops the specified child from this OldNode.

Remarks
Does not delete the OldNode, just detaches it from this parent, potentially to be reattached elsewhere. There is also an alternate version which drops a named child from this OldNode.

◆ requestUpdate()

virtual void Ogre::v1::OldNode::requestUpdate ( OldNode child,
bool  forceParentUpdate = false 
)
virtual

Called by children to notify their parent that they need an update.

Parameters
forceParentUpdateEven if the OldNode thinks it has already told it's parent, tell it anyway

◆ resetOrientation()

virtual void Ogre::v1::OldNode::resetOrientation ( )
virtual

Resets the OldNodes orientation (local axes as world axes, no rotation).

Remarks
Orientations, unlike other transforms, are not always inherited by child OldNodes. Whether or not orientations affect the orientation of the child OldNodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent OldNode to apply to a child OldNode (e.g. where the child OldNode is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child OldNode is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms.
Note that rotations are oriented around the OldNode's origin.

◆ resetToInitialState()

virtual void Ogre::v1::OldNode::resetToInitialState ( )
virtual

Resets the position / orientation / scale of this OldNode to it's initial state, see setInitialState for more info.

◆ roll()

virtual void Ogre::v1::OldNode::roll ( const Radian angle,
TransformSpace  relativeTo = TS_LOCAL 
)
virtual

Rotate the OldNode around the Z-axis.

◆ rotate() [1/2]

virtual void Ogre::v1::OldNode::rotate ( const Quaternion q,
TransformSpace  relativeTo = TS_LOCAL 
)
virtual

Rotate the OldNode around an aritrary axis using a Quarternion.

◆ rotate() [2/2]

virtual void Ogre::v1::OldNode::rotate ( const Vector3 axis,
const Radian angle,
TransformSpace  relativeTo = TS_LOCAL 
)
virtual

Rotate the OldNode around an arbitrary axis.

◆ scale() [1/2]

virtual void Ogre::v1::OldNode::scale ( const Vector3 scale)
virtual

Scales the OldNode, combining it's current scale with the passed in scaling factor.

Remarks
This method applies an extra scaling factor to the OldNode's existing scale, (unlike setScale which overwrites it) combining it's current scale with the new one. E.g. calling this method twice with Vector3(2,2,2) would have the same effect as setScale(Vector3(4,4,4)) if the existing scale was 1.
Note that like rotations, scalings are oriented around the OldNode's origin.

◆ scale() [2/2]

virtual void Ogre::v1::OldNode::scale ( Real  x,
Real  y,
Real  z 
)
virtual

Scales the OldNode, combining it's current scale with the passed in scaling factor.

Remarks
This method applies an extra scaling factor to the OldNode's existing scale, (unlike setScale which overwrites it) combining it's current scale with the new one. E.g. calling this method twice with Vector3(2,2,2) would have the same effect as setScale(Vector3(4,4,4)) if the existing scale was 1.
Note that like rotations, scalings are oriented around the OldNode's origin.

◆ setInheritOrientation()

virtual void Ogre::v1::OldNode::setInheritOrientation ( bool  inherit)
virtual

Tells the OldNode whether it should inherit orientation from it's parent OldNode.

Remarks
Orientations, unlike other transforms, are not always inherited by child OldNodes. Whether or not orientations affect the orientation of the child OldNodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent OldNode to apply to a child OldNode (e.g. where the child OldNode is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child OldNode is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms.
Parameters
inheritIf true, this OldNode's orientation will be affected by its parent's orientation. If false, it will not be affected.

◆ setInheritScale()

virtual void Ogre::v1::OldNode::setInheritScale ( bool  inherit)
virtual

Tells the OldNode whether it should inherit scaling factors from it's parent OldNode.

Remarks
Scaling factors, unlike other transforms, are not always inherited by child OldNodes. Whether or not scalings affect the size of the child OldNodes depends on the setInheritScale option of the child. In some cases you want a scaling factor of a parent OldNode to apply to a child OldNode (e.g. where the child OldNode is a part of the same object, so you want it to be the same relative size based on the parent's size), but not in other cases (e.g. where the child OldNode is just for positioning another object, you want it to maintain it's own size). The default is to inherit as with other transforms.
Parameters
inheritIf true, this OldNode's scale will be affected by its parent's scale. If false, it will not be affected.

◆ setInitialState()

virtual void Ogre::v1::OldNode::setInitialState ( )
virtual

Sets the current transform of this OldNode to be the 'initial state' ie that position / orientation / scale to be used as a basis for delta values used in keyframe animation.

Remarks
You never need to call this method unless you plan to animate this OldNode. If you do plan to animate it, call this method once you've loaded the OldNode with it's base state, ie the state on which all keyframes are based.
If you never call this method, the initial state is the identity transform, ie do nothing.

◆ setListener()

virtual void Ogre::v1::OldNode::setListener ( Listener listener)
inlinevirtual

Sets a listener for this OldNode.

Remarks
Note for size and performance reasons only one listener per OldNode is allowed.

◆ setOrientation() [1/2]

virtual void Ogre::v1::OldNode::setOrientation ( const Quaternion q)
virtual

Sets the orientation of this OldNode via a quaternion.

Remarks
Orientations, unlike other transforms, are not always inherited by child OldNodes. Whether or not orientations affect the orientation of the child OldNodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent OldNode to apply to a child OldNode (e.g. where the child OldNode is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child OldNode is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms.
Note that rotations are oriented around the OldNode's origin.

◆ setOrientation() [2/2]

virtual void Ogre::v1::OldNode::setOrientation ( Real  w,
Real  x,
Real  y,
Real  z 
)
virtual

Sets the orientation of this OldNode via quaternion parameters.

Remarks
Orientations, unlike other transforms, are not always inherited by child OldNodes. Whether or not orientations affect the orientation of the child OldNodes depends on the setInheritOrientation option of the child. In some cases you want a orientating of a parent OldNode to apply to a child OldNode (e.g. where the child OldNode is a part of the same object, so you want it to be the same relative orientation based on the parent's orientation), but not in other cases (e.g. where the child OldNode is just for positioning another object, you want it to maintain it's own orientation). The default is to inherit as with other transforms.
Note that rotations are oriented around the OldNode's origin.

◆ setPosition() [1/2]

virtual void Ogre::v1::OldNode::setPosition ( const Vector3 pos)
virtual

Sets the position of the OldNode relative to it's parent.

◆ setPosition() [2/2]

virtual void Ogre::v1::OldNode::setPosition ( Real  x,
Real  y,
Real  z 
)
virtual

Sets the position of the OldNode relative to it's parent.

◆ setScale() [1/2]

virtual void Ogre::v1::OldNode::setScale ( const Vector3 scale)
virtual

Sets the scaling factor applied to this OldNode.

Remarks
Scaling factors, unlike other transforms, are not always inherited by child OldNodes. Whether or not scalings affect the size of the child OldNodes depends on the setInheritScale option of the child. In some cases you want a scaling factor of a parent OldNode to apply to a child OldNode (e.g. where the child OldNode is a part of the same object, so you want it to be the same relative size based on the parent's size), but not in other cases (e.g. where the child OldNode is just for positioning another object, you want it to maintain it's own size). The default is to inherit as with other transforms.
Note that like rotations, scalings are oriented around the OldNode's origin.

◆ setScale() [2/2]

virtual void Ogre::v1::OldNode::setScale ( Real  x,
Real  y,
Real  z 
)
virtual

Sets the scaling factor applied to this OldNode.

Remarks
Scaling factors, unlike other transforms, are not always inherited by child OldNodes. Whether or not scalings affect the size of the child OldNodes depends on the setInheritScale option of the child. In some cases you want a scaling factor of a parent OldNode to apply to a child OldNode (e.g. where the child OldNode is a part of the same object, so you want it to be the same relative size based on the parent's size), but not in other cases (e.g. where the child OldNode is just for positioning another object, you want it to maintain it's own size). The default is to inherit as with other transforms.
Note that like rotations, scalings are oriented around the OldNode's origin.

◆ setUserAny()

virtual void Ogre::v1::OldNode::setUserAny ( const Any anything)
inlinevirtual
Deprecated:
use UserObjectBindings::setUserAny via getUserObjectBindings() instead.

Sets any kind of user value on this object.

Remarks
This method allows you to associate any user value you like with this OldNode. This can be a pointer back to one of your own classes for instance.

◆ translate() [1/4]

virtual void Ogre::v1::OldNode::translate ( const Matrix3 axes,
const Vector3 move,
TransformSpace  relativeTo = TS_PARENT 
)
virtual

Moves the OldNode along arbitrary axes.

Remarks
This method translates the OldNode by a vector which is relative to a custom set of axes.
Parameters
axesA 3x3 Matrix containing 3 column vectors each representing the axes X, Y and Z respectively. In this format the standard cartesian axes would be expressed as:
    1 0 0
    0 1 0
    0 0 1
    
i.e. the identity matrix.
moveVector relative to the axes above.
relativeToThe space which this transform is relative to.

◆ translate() [2/4]

virtual void Ogre::v1::OldNode::translate ( const Matrix3 axes,
Real  x,
Real  y,
Real  z,
TransformSpace  relativeTo = TS_PARENT 
)
virtual

Moves the OldNode along arbitrary axes.

Remarks
This method translates the OldNode by a vector which is relative to a custom set of axes.
Parameters
axesA 3x3 Matrix containing 3 column vectors each representing the axes X, Y and Z respectively. In this format the standard cartesian axes would be expressed as
    1 0 0
    0 1 0
    0 0 1
    
i.e. the identity matrix.
xThe x translation component relative to the axes above.
yThe y translation component relative to the axes above.
zThe z translation component relative to the axes above.
relativeToThe space which this transform is relative to.

◆ translate() [3/4]

virtual void Ogre::v1::OldNode::translate ( const Vector3 d,
TransformSpace  relativeTo = TS_PARENT 
)
virtual

Moves the OldNode along the Cartesian axes.

This method moves the OldNode by the supplied vector along the world Cartesian axes, i.e. along world x,y,z
Parameters
dVector with x,y,z values representing the translation.
relativeToThe space which this transform is relative to.

◆ translate() [4/4]

virtual void Ogre::v1::OldNode::translate ( Real  x,
Real  y,
Real  z,
TransformSpace  relativeTo = TS_PARENT 
)
virtual

Moves the OldNode along the Cartesian axes.

This method moves the OldNode by the supplied vector along the world Cartesian axes, i.e. along world x,y,z
Parameters
xReal x value representing the translation.
yReal y value representing the translation.
zReal z value representing the translation.
relativeToThe space which this transform is relative to.

◆ yaw()

virtual void Ogre::v1::OldNode::yaw ( const Radian angle,
TransformSpace  relativeTo = TS_LOCAL 
)
virtual

Rotate the OldNode around the Y-axis.


The documentation for this class was generated from the following file: