OGRE
2.2.4
Object-Oriented Graphics Rendering Engine
|
Class representing a node in the scene graph. More...
#include <OgreSceneNode.h>
Public Types | |
typedef ConstVectorIterator< NodeVec > | ConstNodeVecIterator |
typedef ConstVectorIterator< ObjectVec > | ConstObjectIterator |
typedef vector< Node * >::type | NodeVec |
typedef VectorIterator< NodeVec > | NodeVecIterator |
typedef VectorIterator< ObjectVec > | ObjectIterator |
typedef vector< MovableObject * >::type | ObjectVec |
enum | TransformSpace { TS_LOCAL, TS_PARENT, TS_WORLD } |
Enumeration denoting the spaces which a transform can be relative to. More... | |
Public Member Functions | |
SceneNode (IdType id, SceneManager *creator, NodeMemoryManager *nodeMemoryManager, SceneNode *parent) | |
Constructor, only to be called by the creator SceneManager. More... | |
SceneNode (const Transform &transformPtrs) | |
Don't use this constructor unless you know what you're doing. More... | |
virtual | ~SceneNode () |
virtual_l1 void | _attachBone (SkeletonInstance *skeletonInstance, Bone *bone) |
Attaches a bone to this SceneNode. More... | |
virtual void | _callMemoryChangeListeners (void) |
Internal use, notifies all attached objects that our memory pointers (i.e. More... | |
virtual_l1 void | _detachAllBones (SkeletonInstance *skeletonInstance) |
Detaches all bones from this SceneNode that belong to the given SkeletonInstance. More... | |
virtual_l1 void | _detachBone (SkeletonInstance *skeletonInstance, Bone *bone) |
Detaches a bone from this SceneNode. More... | |
virtual_l2 Quaternion | _getDerivedOrientation (void) const |
Gets the orientation of the node as derived from all parents. More... | |
virtual_l2 Quaternion | _getDerivedOrientationUpdated (void) |
Gets the orientation of the node as derived from all parents. More... | |
virtual_l2 Vector3 | _getDerivedPosition (void) const |
Gets the position of the node as derived from all parents. More... | |
virtual_l2 Vector3 | _getDerivedPositionUpdated (void) |
Gets the position of the node as derived from all parents. More... | |
virtual_l2 Vector3 | _getDerivedScale (void) const |
Gets the scaling factor of the node as derived from all parents. More... | |
virtual_l2 Vector3 | _getDerivedScaleUpdated (void) |
Gets the scalling factor of the node as derived from all parents. More... | |
virtual_l2 FORCEINLINE const Matrix4 & | _getFullTransform (void) const |
Gets the full transformation matrix for this node. More... | |
virtual_l2 const Matrix4 & | _getFullTransformUpdated (void) |
_getDerivedScaleUpdated remarks. More... | |
Transform & | _getTransform () |
Returns a direct access to the Transform state. More... | |
virtual void | _notifyStaticDirty (void) const |
Called by SceneManager when it is telling we're a static node being dirty Don't call this directly. More... | |
virtual_l2 void | _setDerivedOrientation (const Quaternion &q) |
Sets the final world orientation of the node directly. More... | |
virtual_l2 void | _setDerivedPosition (const Vector3 &pos) |
Sets the final world position of the node directly. More... | |
void | _setNullNodeMemoryManager (void) |
Manually set the mNodeMemoryManager to a null ptr. More... | |
void | addChild (Node *child) |
Adds a (precreated) child scene node to this node. More... | |
virtual_l2 void | attachObject (MovableObject *obj) |
Adds an instance of a scene object to this node. More... | |
virtual_l2 Vector3 | convertLocalToWorldDirection (const Vector3 &localDir, bool useScale) |
Gets the world direction of a point in the node local space useful for simple transforms that don't require a child node. More... | |
Vector3 | convertLocalToWorldDirectionUpdated (const Vector3 &localDir, bool useScale) |
virtual_l2 Quaternion | convertLocalToWorldOrientation (const Quaternion &localOrientation) |
Gets the world orientation of an orientation in the node local space useful for simple transforms that don't require a child node. More... | |
Quaternion | convertLocalToWorldOrientationUpdated (const Quaternion &localOrientation) |
virtual_l2 Vector3 | convertLocalToWorldPosition (const Vector3 &localPos) |
Gets the world position of a point in the node local space useful for simple transforms that don't require a child node. More... | |
Vector3 | convertLocalToWorldPositionUpdated (const Vector3 &localPos) |
virtual_l2 Vector3 | convertWorldToLocalDirection (const Vector3 &worldDir, bool useScale) |
Gets the local direction, relative to this node, of the given world-space direction. More... | |
Vector3 | convertWorldToLocalDirectionUpdated (const Vector3 &worldDir, bool useScale) |
virtual_l2 Quaternion | convertWorldToLocalOrientation (const Quaternion &worldOrientation) |
Gets the local orientation, relative to this node, of the given world-space orientation. More... | |
Quaternion | convertWorldToLocalOrientationUpdated (const Quaternion &worldOrientation) |
virtual_l2 Vector3 | convertWorldToLocalPosition (const Vector3 &worldPos) |
Gets the local position, relative to this node, of the given world-space position. More... | |
Vector3 | convertWorldToLocalPositionUpdated (const Vector3 &worldPos) |
virtual Node * | createChild (SceneMemoryMgrTypes sceneType=SCENE_DYNAMIC, const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY) |
Creates an unnamed new Node as a child of this node. More... | |
virtual SceneNode * | createChildSceneNode (SceneMemoryMgrTypes sceneType=SCENE_DYNAMIC, const Vector3 &translate=Vector3::ZERO, const Quaternion &rotate=Quaternion::IDENTITY) |
Creates an unnamed new SceneNode as a child of this node. More... | |
virtual void | detachAllBones (void) |
Detaches all bones from from this SceneNode. It is safe to use directly. More... | |
virtual void | detachAllObjects (void) |
Detaches all objects attached to this node. More... | |
virtual_l2 void | detachObject (MovableObject *obj) |
Detaches an object by pointer. More... | |
virtual void | flipVisibility (bool cascade=true) |
Inverts the visibility of all objects attached to this node. More... | |
MovableObject * | getAttachedObject (size_t index) |
Retrieves a pointer to an attached object. More... | |
MovableObject * | getAttachedObject (const String &name) |
Retrieves a pointer to an attached object. More... | |
virtual ObjectIterator | getAttachedObjectIterator (void) |
Retrieves an iterator which can be used to efficiently step through the objects attached to this node. More... | |
virtual ConstObjectIterator | getAttachedObjectIterator (void) const |
Retrieves an iterator which can be used to efficiently step through the objects attached to this node. More... | |
Node * | getChild (size_t index) |
Gets a pointer to a child node. More... | |
const Node * | getChild (size_t index) const |
NodeVecIterator | getChildIterator (void) |
Retrieves an iterator for efficiently looping through all children of this node. More... | |
ConstNodeVecIterator | getChildIterator (void) const |
Retrieves an iterator for efficiently looping through all children of this node. More... | |
SceneManager * | getCreator (void) const |
Gets the creator of this scene node. More... | |
virtual NodeMemoryManager * | getDefaultNodeMemoryManager (SceneMemoryMgrTypes sceneType) |
As Node::getDebugRenderable, except scaling is automatically determined. More... | |
uint16 | getDepthLevel () const |
Returns how deep in the hierarchy we are (eg. 0 -> root node, 1 -> child of root) More... | |
IdType | getId () const |
Get the unique id of this object. More... | |
bool | getIndestructibleByClearScene (void) const |
virtual_l2 bool | getInheritOrientation (void) const |
Returns true if this node is affected by orientation applied to the parent node. More... | |
virtual_l2 bool | getInheritScale (void) const |
Returns true if this node is affected by scaling factors applied to the parent node. More... | |
Listener * | getListener (void) const |
Gets the current listener for this Node. More... | |
virtual_l2 Matrix3 | getLocalAxes (void) const |
Gets a matrix whose columns are the local axes based on the nodes orientation relative to it's parent. More... | |
const String & | getName (void) const |
Returns the name of the node. More... | |
virtual_l2 Quaternion | getOrientation () const |
Returns a quaternion representing the nodes orientation. More... | |
Node * | getParent (void) const |
Gets this node's parent (NULL if this is the root). More... | |
SceneNode * | getParentSceneNode (void) const |
Gets the parent of this SceneNode. More... | |
virtual_l2 Vector3 | getPosition (void) const |
Gets the position of the node relative to it's parent. More... | |
virtual_l2 Vector3 | getScale (void) const |
Gets the scaling factor of this node. More... | |
virtual Real | getSquaredViewDepth (const Camera *cam) const |
Helper function, get the squared view depth. More... | |
virtual OGRE_DEPRECATED const Any & | getUserAny (void) const |
UserObjectBindings & | getUserObjectBindings () |
Return an instance of user objects binding associated with this class. More... | |
const UserObjectBindings & | getUserObjectBindings () const |
Return an instance of user objects binding associated with this class. More... | |
bool | isStatic () const |
Checks whether this node is static. setStatic. More... | |
bool | isYawFixed (void) const |
virtual void | lookAt (const Vector3 &targetPoint, TransformSpace relativeTo, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) |
Points the local -Z direction of this node at a point in space. More... | |
void | migrateTo (NodeMemoryManager *nodeMemoryManager) |
Migrates the node and all of its children to the new memory manager, at the same depth level. More... | |
size_t | numAttachedObjects (void) const |
Reports the number of objects attached to this node. More... | |
size_t | numChildren (void) const |
Reports the number of child nodes under this one. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
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 * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
bool | operator() (const IdObject *left, const IdObject *right) |
bool | operator() (const IdObject &left, const IdObject &right) |
virtual_l2 void | pitch (const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around the X-axis. More... | |
virtual void | removeAllChildren (void) |
Removes all child Nodes attached to this node. More... | |
virtual void | removeAndDestroyAllChildren (void) |
Removes and destroys all children of this node. More... | |
virtual void | removeAndDestroyChild (SceneNode *sceneNode) |
This method removes and destroys the child and all of its children. More... | |
virtual void | removeChild (Node *child) |
Drops the specified child from this node. More... | |
virtual_l1 void | resetOrientation (void) |
Resets the nodes orientation (local axes as world axes, no rotation). More... | |
virtual_l2 void | roll (const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around the Z-axis. More... | |
virtual_l2 void | rotate (const Vector3 &axis, const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around an arbitrary axis. More... | |
virtual_l2 void | rotate (const Quaternion &q, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around an aritrary axis using a Quarternion. More... | |
virtual_l2 void | scale (const Vector3 &scale) |
Scales the node, combining it's current scale with the passed in scaling factor. More... | |
virtual_l2 void | scale (Real x, Real y, Real z) |
Scales the node, combining it's current scale with the passed in scaling factor. More... | |
virtual void | setAutoTracking (bool enabled, SceneNode *const target=0, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z, const Vector3 &offset=Vector3::ZERO) |
Enables / disables automatic tracking of another SceneNode. More... | |
virtual void | setDirection (Real x, Real y, Real z, TransformSpace relativeTo=TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) |
Sets the node's direction vector ie it's local -z. More... | |
virtual void | setDirection (const Vector3 &vec, TransformSpace relativeTo=TS_LOCAL, const Vector3 &localDirectionVector=Vector3::NEGATIVE_UNIT_Z) |
Sets the node's direction vector ie it's local -z. More... | |
void | setFixedYawAxis (bool useFixed, const Vector3 &fixedAxis=Vector3::UNIT_Y) |
Tells the node whether to yaw around it's own local Y axis or a fixed axis of choice. More... | |
void | setIndestructibleByClearScene (bool indestructible) |
Calling SceneManager::clearScene won't destroy this node nor detach its objects (but may still destroy parent and children nodes if they're not indestructible) when this is true. More... | |
virtual_l2 void | setInheritOrientation (bool inherit) |
Tells the node whether it should inherit orientation from it's parent node. More... | |
virtual_l2 void | setInheritScale (bool inherit) |
Tells the node whether it should inherit scaling factors from it's parent node. More... | |
virtual void | setListener (Listener *listener) |
Sets a listener for this Node. More... | |
void | setName (const String &name) |
Sets a custom name for this node. More... | |
virtual_l1 void | setOrientation (Quaternion q) |
Sets the orientation of this node via a quaternion. More... | |
virtual_l1 void | setOrientation (Real w, Real x, Real y, Real z) |
Sets the orientation of this node via quaternion parameters. More... | |
virtual_l1 void | setPosition (const Vector3 &pos) |
Sets the position of the node relative to it's parent. More... | |
virtual_l1 void | setPosition (Real x, Real y, Real z) |
Sets the position of the node relative to it's parent. More... | |
virtual_l1 void | setScale (const Vector3 &scale) |
Sets the scaling factor applied to this node. More... | |
virtual_l1 void | setScale (Real x, Real y, Real z) |
Sets the scaling factor applied to this node. More... | |
virtual bool | setStatic (bool bStatic) |
Turns this Node into static or dynamic. More... | |
virtual OGRE_DEPRECATED void | setUserAny (const Any &anything) |
virtual void | setVisible (bool visible, bool cascade=true) |
Makes all objects attached to this node become visible / invisible. More... | |
virtual_l2 void | translate (const Vector3 &d, TransformSpace relativeTo=TS_PARENT) |
Moves the node along the Cartesian axes. More... | |
virtual_l2 void | translate (Real x, Real y, Real z, TransformSpace relativeTo=TS_PARENT) |
Moves the node along the Cartesian axes. More... | |
virtual_l2 void | translate (const Matrix3 &axes, const Vector3 &move, TransformSpace relativeTo=TS_PARENT) |
Moves the node along arbitrary axes. More... | |
virtual_l2 void | translate (const Matrix3 &axes, Real x, Real y, Real z, TransformSpace relativeTo=TS_PARENT) |
Moves the node along arbitrary axes. More... | |
void | yaw (const Radian &angle, TransformSpace relativeTo=TS_LOCAL) |
Rotate the node around the Y-axis. More... | |
Static Public Member Functions | |
static void | updateAllTransforms (const size_t numNodes, Transform t) |
SceneManager::updateAllTransforms() More... | |
Public Attributes | |
size_t | mGlobalIndex |
Index in the vector holding this node reference (could be our parent node, or a global array tracking all created nodes to avoid memory leaks). More... | |
size_t | mParentIndex |
Index in the vector holding this node reference (could be our parent node, or a global array tracking all created nodes to avoid memory leaks). More... | |
Class representing a node in the scene graph.
|
inherited |
|
inherited |
|
inherited |
typedef vector<MovableObject*>::type Ogre::SceneNode::ObjectVec |
|
inherited |
Ogre::SceneNode::SceneNode | ( | IdType | id, |
SceneManager * | creator, | ||
NodeMemoryManager * | nodeMemoryManager, | ||
SceneNode * | parent | ||
) |
Constructor, only to be called by the creator SceneManager.
Ogre::SceneNode::SceneNode | ( | const Transform & | transformPtrs | ) |
Don't use this constructor unless you know what you're doing.
NodeMemoryManager::mDummyNode
|
virtual |
virtual_l1 void Ogre::SceneNode::_attachBone | ( | SkeletonInstance * | skeletonInstance, |
Bone * | bone | ||
) |
Attaches a bone to this SceneNode.
Don't use directly.
|
virtual |
Internal use, notifies all attached objects that our memory pointers (i.e.
Transform) may have changed (e.g. during cleanups, change of parent, etc)
Implements Ogre::Node.
virtual_l1 void Ogre::SceneNode::_detachAllBones | ( | SkeletonInstance * | skeletonInstance | ) |
Detaches all bones from this SceneNode that belong to the given SkeletonInstance.
Don't use directly.
virtual_l1 void Ogre::SceneNode::_detachBone | ( | SkeletonInstance * | skeletonInstance, |
Bone * | bone | ||
) |
Detaches a bone from this SceneNode.
Don't use directly.
|
inherited |
Gets the orientation of the node as derived from all parents.
|
inherited |
Gets the orientation of the node as derived from all parents.
|
inherited |
Gets the position of the node as derived from all parents.
|
inherited |
Gets the position of the node as derived from all parents.
|
inherited |
Gets the scaling factor of the node as derived from all parents.
|
inherited |
Gets the scalling factor of the node as derived from all parents.
|
inlineinherited |
Gets the full transformation matrix for this node.
References Ogre::Transform::mDerivedTransform, Ogre::Transform::mIndex, and virtual_l2.
|
inherited |
_getDerivedScaleUpdated remarks.
_getFullTransform
|
inlineinherited |
Returns a direct access to the Transform state.
References Ogre::Quaternion::IDENTITY, Ogre::SCENE_DYNAMIC, virtual_l1, virtual_l2, and Ogre::Vector3::ZERO.
|
virtual |
Called by SceneManager when it is telling we're a static node being dirty Don't call this directly.
Reimplemented from Ogre::Node.
|
inherited |
Sets the final world orientation of the node directly.
|
inherited |
Sets the final world position of the node directly.
|
inlineinherited |
Manually set the mNodeMemoryManager to a null ptr.
|
inherited |
Adds a (precreated) child scene node to this node.
If it is attached to another node, it must be detached first.
child | The Node which is to become a child node of this one |
virtual_l2 void Ogre::SceneNode::attachObject | ( | MovableObject * | obj | ) |
Adds an instance of a scene object to this node.
|
inherited |
Gets the world direction of a point in the node local space useful for simple transforms that don't require a child node.
|
inlineinherited |
References virtual_l2.
|
inherited |
Gets the world orientation of an orientation in the node local space useful for simple transforms that don't require a child node.
|
inlineinherited |
|
inherited |
Gets the world position of a point in the node local space useful for simple transforms that don't require a child node.
References virtual_l2.
|
inherited |
Gets the local direction, relative to this node, of the given world-space direction.
|
inlineinherited |
References virtual_l2.
|
inherited |
Gets the local orientation, relative to this node, of the given world-space orientation.
|
inlineinherited |
References virtual_l2.
|
inherited |
Gets the local position, relative to this node, of the given world-space position.
References virtual_l2.
|
virtualinherited |
Creates an unnamed new Node as a child of this node.
translate | Initial translation offset of child relative to parent |
rotate | Initial rotation relative to parent |
|
virtual |
Creates an unnamed new SceneNode as a child of this node.
translate | Initial translation offset of child relative to parent |
rotate | Initial rotation relative to parent |
|
virtual |
Detaches all bones from from this SceneNode. It is safe to use directly.
|
virtual |
Detaches all objects attached to this node.
virtual_l2 void Ogre::SceneNode::detachObject | ( | MovableObject * | obj | ) |
Detaches an object by pointer.
|
virtual |
Inverts the visibility of all objects attached to this node.
cascade | If true, this setting cascades into child nodes too. |
|
inline |
Retrieves a pointer to an attached object.
References virtual_l1, and virtual_l2.
MovableObject* Ogre::SceneNode::getAttachedObject | ( | const String & | name | ) |
Retrieves a pointer to an attached object.
|
virtual |
Retrieves an iterator which can be used to efficiently step through the objects attached to this node.
|
virtual |
Retrieves an iterator which can be used to efficiently step through the objects attached to this node.
|
inlineinherited |
Gets a pointer to a child node.
|
inlineinherited |
References virtual_l2.
|
inherited |
Retrieves an iterator for efficiently looping through all children of this node.
|
inherited |
Retrieves an iterator for efficiently looping through all children of this node.
|
inline |
Gets the creator of this scene node.
References Ogre::Quaternion::IDENTITY, Ogre::SCENE_DYNAMIC, Ogre::Vector3::UNIT_Y, and Ogre::Vector3::ZERO.
|
virtual |
As Node::getDebugRenderable, except scaling is automatically determined.
Implements Ogre::Node.
|
inlineinherited |
Returns how deep in the hierarchy we are (eg. 0 -> root node, 1 -> child of root)
|
inlineinherited |
Get the unique id of this object.
|
inherited |
|
inherited |
Returns true if this node is affected by orientation applied to the parent node.
|
inherited |
Returns true if this node is affected by scaling factors applied to the parent node.
|
inlineinherited |
Gets the current listener for this Node.
References virtual_l2.
|
inherited |
Gets a matrix whose columns are the local axes based on the nodes orientation relative to it's parent.
|
inlineinherited |
Returns the name of the node.
|
inherited |
Returns a quaternion representing the nodes orientation.
|
inherited |
Gets this node's parent (NULL if this is the root).
|
inherited |
Gets the position of the node relative to it's parent.
|
inherited |
Gets the scaling factor of this node.
Helper function, get the squared view depth.
|
inlinevirtualinherited |
Retrieves the custom user value associated with this object.
|
inlineinherited |
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.
|
inlineinherited |
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.
|
inherited |
Checks whether this node is static. setStatic.
|
inline |
References Ogre::Vector3::NEGATIVE_UNIT_Z, and Ogre::Vector3::ZERO.
|
virtual |
Points the local -Z direction of this node at a point in space.
targetPoint | A vector specifying the look at point. |
relativeTo | The space in which the point resides |
localDirectionVector | The vector which normally describes the natural direction of the node, usually -Z |
|
inherited |
Migrates the node and all of its children to the new memory manager, at the same depth level.
nodeMemoryManager | New memory manager to migrate to. |
|
inline |
Reports the number of objects attached to this node.
|
inlineinherited |
Reports the number of child nodes under this one.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
|
inlineinherited |
placement operator new
|
inlineinherited |
array operator new, with debug line info
|
inlineinherited |
|
inherited |
Rotate the node around the X-axis.
|
virtualinherited |
Removes all child Nodes attached to this node.
Does not delete the nodes, just detaches them from this parent, potentially to be reattached elsewhere.
|
virtual |
Removes and destroys all children of this node.
|
virtual |
This method removes and destroys the child and all of its children.
SceneNode,must | be a child of ours |
|
virtualinherited |
Drops the specified child from this node.
|
inherited |
Resets the nodes orientation (local axes as world axes, no rotation).
|
inherited |
Rotate the node around the Z-axis.
|
inherited |
Rotate the node around an arbitrary axis.
|
inherited |
Rotate the node around an aritrary axis using a Quarternion.
|
inherited |
Scales the node, combining it's current scale with the passed in scaling factor.
|
inherited |
Scales the node, combining it's current scale with the passed in scaling factor.
|
virtual |
Enables / disables automatic tracking of another SceneNode.
enabled | If true, tracking will be enabled and the next parameter cannot be null. If false tracking will be disabled and the current orientation will be maintained. |
target | Pointer to the SceneNode to track. Make sure you don't delete this SceneNode before turning off tracking (e.g. SceneManager::clearScene will delete it so be careful of this). Can be null if and only if the enabled param is false. |
localDirectionVector | The local vector considered to be the usual 'direction' of the node; normally the local -Z but can be another direction. |
offset | If supplied, this is the target point in local space of the target node instead of the origin of the target node. Good for fine tuning the look at point. |
|
virtual |
Sets the node's direction vector ie it's local -z.
x,y,z | The components of the direction vector |
relativeTo | The space in which this direction vector is expressed |
localDirectionVector | The vector which normally describes the natural direction of the node, usually -Z |
|
virtual |
Sets the node's direction vector ie it's local -z.
vec | The direction vector |
relativeTo | The space in which this direction vector is expressed |
localDirectionVector | The vector which normally describes the natural direction of the node, usually -Z |
void Ogre::SceneNode::setFixedYawAxis | ( | bool | useFixed, |
const Vector3 & | fixedAxis = Vector3::UNIT_Y |
||
) |
Tells the node whether to yaw around it's own local Y axis or a fixed axis of choice.
useFixed | If true, the axis passed in the second parameter will always be the yaw axis no matter what the node orientation. If false, the node returns to it's default behaviour. |
fixedAxis | The axis to use if the first parameter is true. |
|
inherited |
Calling SceneManager::clearScene won't destroy this node nor detach its objects (but may still destroy parent and children nodes if they're not indestructible) when this is true.
|
inherited |
Tells the node whether it should inherit orientation from it's parent node.
inherit | If true, this node's orientation will be affected by its parent's orientation. If false, it will not be affected. |
|
inherited |
Tells the node whether it should inherit scaling factors from it's parent node.
inherit | If true, this node's scale will be affected by its parent's scale. If false, it will not be affected. |
|
virtual |
Sets a listener for this Node.
Reimplemented from Ogre::Node.
|
inlineinherited |
Sets a custom name for this node.
Doesn't have to be unique
|
inherited |
Sets the orientation of this node via a quaternion.
|
inherited |
Sets the orientation of this node via quaternion parameters.
|
inherited |
Sets the position of the node relative to it's parent.
|
inherited |
Sets the position of the node relative to it's parent.
|
inherited |
Sets the scaling factor applied to this node.
|
inherited |
Sets the scaling factor applied to this node.
|
virtual |
Turns this Node into static or dynamic.
Reimplemented from Ogre::Node.
|
inlinevirtualinherited |
Sets any kind of user value on this object.
|
virtual |
Makes all objects attached to this node become visible / invisible.
visible | Whether the objects are to be made visible or invisible |
cascade | If true, this setting cascades into child nodes too. |
|
inherited |
Moves the node along the Cartesian axes.
d | Vector with x,y,z values representing the translation. |
relativeTo | The space which this transform is relative to. |
|
inherited |
Moves the node along the Cartesian axes.
x | Real x value representing the translation. |
y | Real y value representing the translation. |
z | Real z value representing the translation. |
relativeTo | The space which this transform is relative to. |
|
inherited |
Moves the node along arbitrary axes.
axes | A 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 1i.e. the identity matrix. |
move | Vector relative to the axes above. |
relativeTo | The space which this transform is relative to. |
|
inherited |
Moves the node along arbitrary axes.
axes | A 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 1i.e. the identity matrix. |
x | The x translation component relative to the axes above. |
y | The y translation component relative to the axes above. |
z | The z translation component relative to the axes above. |
relativeTo | The space which this transform is relative to. |
|
staticinherited |
SceneManager::updateAllTransforms()
void Ogre::SceneNode::yaw | ( | const Radian & | angle, |
TransformSpace | relativeTo = TS_LOCAL |
||
) |
Rotate the node around the Y-axis.
|
inherited |
Index in the vector holding this node reference (could be our parent node, or a global array tracking all created nodes to avoid memory leaks).
Used for O(1) removals.
|
inherited |
Index in the vector holding this node reference (could be our parent node, or a global array tracking all created nodes to avoid memory leaks).
Used for O(1) removals.