org.ogre4j
Interface INode

All Superinterfaces:
IAllocatedObject<ISceneCtlAllocPolicy>, INativeObject, IRenderable, ISceneCtlAllocatedObject
All Known Subinterfaces:
IBone, ISceneNode, ITagPoint
All Known Implementing Classes:
Bone, Node, SceneNode, TagPoint

public interface INode
extends INativeObject, IRenderable, ISceneCtlAllocatedObject


Nested Class Summary
static interface INode.IChildNodeIterator
           
static interface INode.IChildNodeMap
           
static interface INode.IChildUpdateSet
           
static interface INode.IConstChildNodeIterator
           
static interface INode.IListener
           
static interface INode.IQueuedUpdates
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IRenderable
IRenderable.ICustomParameterMap, IRenderable.IRenderSystemData, IRenderable.IVisitor
 
Method Summary
 IQuaternion _getDerivedOrientation()
          Gets the orientation of the node as derived from all parents.
 IVector3 _getDerivedPosition()
          Gets the position of the node as derived from all parents.
 IVector3 _getDerivedScale()
          Gets the scaling factor of the node as derived from all parents.
 IMatrix4 _getFullTransform()
          Gets the full transformation matrix for this node.
 void _update(boolean updateChildren, boolean parentHasChanged)
          Internal method to update the .
 void addChild(INode child)
          Adds a (precreated) child scene node to this node.
 void cancelUpdate(INode child)
          Called by children to notify their parent that they no longer need an update.
 INode createChild(IVector3 translate, IQuaternion rotate)
          Creates an unnamed new as a child of this node.
 INode createChild(java.lang.String name, IVector3 translate, IQuaternion rotate)
          Creates a new named as a child of this node.
 INode getChild(int index)
          Gets a pointer to a child node.
 INode getChild(java.lang.String name)
          Gets a pointer to a named child node.
 void getChildIterator_const(INode.IConstChildNodeIterator returnValue)
           
 void getChildIterator(INode.IChildNodeIterator returnValue)
          Retrieves an iterator for efficiently looping through all children of this node.
 boolean getInheritOrientation()
          Returns true if this node is affected by orientation applied to the parent node.
 boolean getInheritScale()
          Returns true if this node is affected by scaling factors applied to the parent node.
 IQuaternion getInitialOrientation()
          Gets the initial orientation of this node, see setInitialState for more info.
 IVector3 getInitialPosition()
          Gets the initial position of this node, see setInitialState for more info.
 IVector3 getInitialScale()
          Gets the initial position of this node, see setInitialState for more info.
 ILightList getLights()
          Gets a list of lights, ordered relative to how close they are to this renderable.
 INode.IListener getListener()
          Gets the current listener for this .
 void getLocalAxes(IMatrix3 returnValue)
          Gets a matrix whose columns are the local axes based on the nodes orientation relative to it's parent.
 IMaterialPtr getMaterial()
          Overridden from .
 java.lang.String getName()
          Returns the name of the node.
 IQuaternion getOrientation()
          Returns a quaternion representing the nodes orientation.
 INode getParent()
          Gets this node's parent (NULL if this is the root).
 IVector3 getPosition()
          Gets the position of the node relative to it's parent.
 void getRenderOperation(IRenderOperation op)
          Overridden from .
 IVector3 getScale()
          Gets the scaling factor of this node.
 float getSquaredViewDepth(ICamera cam)
          Overridden, see
 void getWorldTransforms(IMatrix4 xform)
          Overridden from .
 void needUpdate(boolean forceParentUpdate)
          To be called in the event of transform changes to this node that require it's recalculation.
 int numChildren()
          Reports the number of child nodes under this one.
 void pitch(IRadian angle, Node.TransformSpace relativeTo)
          Rotate the node around the X-axis.
 void removeAllChildren()
          Removes all child Nodes attached to this node.
 INode removeChild(INode child)
          Drops the specified child from this node.
 INode removeChild(int index)
          Drops the specified child from this node.
 INode removeChild(java.lang.String name)
          Drops the named child from this node.
 void requestUpdate(INode child, boolean forceParentUpdate)
          Called by children to notify their parent that they need an update.
 void resetOrientation()
          Resets the nodes orientation (local axes as world axes, no rotation).
 void resetToInitialState()
          Resets the position / orientation / scale of this node to it's initial state, see setInitialState for more info.
 void roll(IRadian angle, Node.TransformSpace relativeTo)
          Rotate the node around the Z-axis.
 void rotate(IQuaternion q, Node.TransformSpace relativeTo)
          Rotate the node around an aritrary axis using a Quarternion.
 void rotate(IVector3 axis, IRadian angle, Node.TransformSpace relativeTo)
          Rotate the node around an arbitrary axis.
 void scale(float x, float y, float z)
          Scales the node, combining it's current scale with the passed in scaling factor.
 void scale(IVector3 scale)
          Scales the node, combining it's current scale with the passed in scaling factor.
 void setInheritOrientation(boolean inherit)
          Tells the node whether it should inherit orientation from it's parent node.
 void setInheritScale(boolean inherit)
          Tells the node whether it should inherit scaling factors from it's parent node.
 void setInitialState()
          Sets the current transform of this node to be the 'initial state' ie that position / orientation / scale to be used as a basis for delta values used in keyframe animation.
 void setListener(INode.IListener listener)
          Sets a listener for this .
 void setOrientation(float w, float x, float y, float z)
          Sets the orientation of this node via quaternion parameters.
 void setOrientation(IQuaternion q)
          Sets the orientation of this node via a quaternion.
 void setPosition(float x, float y, float z)
          Sets the position of the node relative to it's parent.
 void setPosition(IVector3 pos)
          Sets the position of the node relative to it's parent.
 void setScale(float x, float y, float z)
          Sets the scaling factor applied to this node.
 void setScale(IVector3 scale)
          Sets the scaling factor applied to this node.
 void translate(float x, float y, float z, Node.TransformSpace relativeTo)
          Moves the node along the Cartesian axes.
 void translate(IMatrix3 axes, float x, float y, float z, Node.TransformSpace relativeTo)
          Moves the node along arbitrary axes.
 void translate(IMatrix3 axes, IVector3 move, Node.TransformSpace relativeTo)
          Moves the node along arbitrary axes.
 void translate(IVector3 d, Node.TransformSpace relativeTo)
          Moves the node along the Cartesian axes.
 void yaw(IRadian angle, Node.TransformSpace relativeTo)
          Rotate the node around the Y-axis.
 
Methods inherited from interface org.ogre4j.IRenderable
_updateCustomGpuParameter, getCastsShadows, getCustomParameter, getNumWorldTransforms, getPolygonModeOverrideable, getRenderSystemData, getTechnique, getUseIdentityProjection, getUseIdentityView, getUserAny, postRender, preRender, setCustomParameter, setPolygonModeOverrideable, setRenderSystemData, setUseIdentityProjection, setUseIdentityView, setUserAny
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getName

java.lang.String getName()
Returns the name of the node.


getParent

INode getParent()
Gets this node's parent (NULL if this is the root).


getOrientation

IQuaternion getOrientation()
Returns a quaternion representing the nodes orientation.


setOrientation

void setOrientation(IQuaternion q)
Sets the orientation of this node via a quaternion.


setOrientation

void setOrientation(float w,
                    float x,
                    float y,
                    float z)
Sets the orientation of this node via quaternion parameters.


resetOrientation

void resetOrientation()
Resets the nodes orientation (local axes as world axes, no rotation).


setPosition

void setPosition(IVector3 pos)
Sets the position of the node relative to it's parent.


setPosition

void setPosition(float x,
                 float y,
                 float z)
Sets the position of the node relative to it's parent.


getPosition

IVector3 getPosition()
Gets the position of the node relative to it's parent.


setScale

void setScale(IVector3 scale)
Sets the scaling factor applied to this node.


setScale

void setScale(float x,
              float y,
              float z)
Sets the scaling factor applied to this node.


getScale

IVector3 getScale()
Gets the scaling factor of this node.


setInheritOrientation

void setInheritOrientation(boolean inherit)
Tells the node whether it should inherit orientation from it's parent node.


getInheritOrientation

boolean getInheritOrientation()
Returns true if this node is affected by orientation applied to the parent node.


setInheritScale

void setInheritScale(boolean inherit)
Tells the node whether it should inherit scaling factors from it's parent node.


getInheritScale

boolean getInheritScale()
Returns true if this node is affected by scaling factors applied to the parent node.


scale

void scale(IVector3 scale)
Scales the node, combining it's current scale with the passed in scaling factor.


scale

void scale(float x,
           float y,
           float z)
Scales the node, combining it's current scale with the passed in scaling factor.


translate

void translate(IVector3 d,
               Node.TransformSpace relativeTo)
Moves the node along the Cartesian axes.


translate

void translate(float x,
               float y,
               float z,
               Node.TransformSpace relativeTo)
Moves the node along the Cartesian axes.


translate

void translate(IMatrix3 axes,
               IVector3 move,
               Node.TransformSpace relativeTo)
Moves the node along arbitrary axes.


translate

void translate(IMatrix3 axes,
               float x,
               float y,
               float z,
               Node.TransformSpace relativeTo)
Moves the node along arbitrary axes.


roll

void roll(IRadian angle,
          Node.TransformSpace relativeTo)
Rotate the node around the Z-axis.


pitch

void pitch(IRadian angle,
           Node.TransformSpace relativeTo)
Rotate the node around the X-axis.


yaw

void yaw(IRadian angle,
         Node.TransformSpace relativeTo)
Rotate the node around the Y-axis.


rotate

void rotate(IVector3 axis,
            IRadian angle,
            Node.TransformSpace relativeTo)
Rotate the node around an arbitrary axis.


rotate

void rotate(IQuaternion q,
            Node.TransformSpace relativeTo)
Rotate the node around an aritrary axis using a Quarternion.


getLocalAxes

void getLocalAxes(IMatrix3 returnValue)
Gets a matrix whose columns are the local axes based on the nodes orientation relative to it's parent.


createChild

INode createChild(IVector3 translate,
                  IQuaternion rotate)
Creates an unnamed new as a child of this node.


createChild

INode createChild(java.lang.String name,
                  IVector3 translate,
                  IQuaternion rotate)
Creates a new named as a child of this node.


addChild

void addChild(INode child)
Adds a (precreated) child scene node to this node. If it is attached to another node, it must be detached first.


numChildren

int numChildren()
Reports the number of child nodes under this one.


getChild

INode getChild(int index)
Gets a pointer to a child node.


getChild

INode getChild(java.lang.String name)
Gets a pointer to a named child node.


getChildIterator

void getChildIterator(INode.IChildNodeIterator returnValue)
Retrieves an iterator for efficiently looping through all children of this node.


getChildIterator_const

void getChildIterator_const(INode.IConstChildNodeIterator returnValue)

removeChild

INode removeChild(int index)
Drops the specified child from this node.


removeChild

INode removeChild(INode child)
Drops the specified child from this node.


removeChild

INode removeChild(java.lang.String name)
Drops the named child from this node.


removeAllChildren

void removeAllChildren()
Removes all child Nodes attached to this node. Does not delete the nodes, just detaches them from this parent, potentially to be reattached elsewhere.


_getDerivedOrientation

IQuaternion _getDerivedOrientation()
Gets the orientation of the node as derived from all parents.


_getDerivedPosition

IVector3 _getDerivedPosition()
Gets the position of the node as derived from all parents.


_getDerivedScale

IVector3 _getDerivedScale()
Gets the scaling factor of the node as derived from all parents.


_getFullTransform

IMatrix4 _getFullTransform()
Gets the full transformation matrix for this node.


_update

void _update(boolean updateChildren,
             boolean parentHasChanged)
Internal method to update the .


setListener

void setListener(INode.IListener listener)
Sets a listener for this .


getListener

INode.IListener getListener()
Gets the current listener for this .


getMaterial

IMaterialPtr getMaterial()
Overridden from .

Specified by:
getMaterial in interface IRenderable

getRenderOperation

void getRenderOperation(IRenderOperation op)
Overridden from .

Specified by:
getRenderOperation in interface IRenderable

getWorldTransforms

void getWorldTransforms(IMatrix4 xform)
Overridden from .

Specified by:
getWorldTransforms in interface IRenderable

setInitialState

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


resetToInitialState

void resetToInitialState()
Resets the position / orientation / scale of this node to it's initial state, see setInitialState for more info.


getInitialPosition

IVector3 getInitialPosition()
Gets the initial position of this node, see setInitialState for more info.


getInitialOrientation

IQuaternion getInitialOrientation()
Gets the initial orientation of this node, see setInitialState for more info.


getInitialScale

IVector3 getInitialScale()
Gets the initial position of this node, see setInitialState for more info.


getSquaredViewDepth

float getSquaredViewDepth(ICamera cam)
Overridden, see

Specified by:
getSquaredViewDepth in interface IRenderable

needUpdate

void needUpdate(boolean forceParentUpdate)
To be called in the event of transform changes to this node that require it's recalculation.


requestUpdate

void requestUpdate(INode child,
                   boolean forceParentUpdate)
Called by children to notify their parent that they need an update.


cancelUpdate

void cancelUpdate(INode child)
Called by children to notify their parent that they no longer need an update.


getLights

ILightList getLights()
Description copied from interface: IRenderable
Gets a list of lights, ordered relative to how close they are to this renderable.

Specified by:
getLights in interface IRenderable


Copyright © 2007 netAllied GmbH. All Rights Reserved.