org.ogre4j
Interface ISceneNode

All Superinterfaces:
IAllocatedObject<ISceneCtlAllocPolicy>, INativeObject, INode, IRenderable, ISceneCtlAllocatedObject
All Known Implementing Classes:
SceneNode

public interface ISceneNode
extends INativeObject, INode


Nested Class Summary
static interface ISceneNode.IConstObjectIterator
           
static interface ISceneNode.IObjectIterator
           
static interface ISceneNode.IObjectMap
           
 
Nested classes/interfaces inherited from interface org.ogre4j.INode
INode.IChildNodeIterator, INode.IChildNodeMap, INode.IChildUpdateSet, INode.IConstChildNodeIterator, INode.IListener, INode.IQueuedUpdates
 
Nested classes/interfaces inherited from interface org.ogre4j.IRenderable
IRenderable.ICustomParameterMap, IRenderable.IRenderSystemData, IRenderable.IVisitor
 
Method Summary
 void _addBoundingBoxToQueue(IRenderQueue queue)
          Add the bounding box to the rendering queue.
 void _autoTrack()
          Internal method used by OGRE to update auto-tracking cameras.
 void _findVisibleObjects(ICamera cam, IRenderQueue queue, IVisibleObjectsBoundsInfo visibleBounds, boolean includeChildren, boolean displayNodes, boolean onlyShadowCasters)
          Internal method which locates any visible objects attached to this node and adds them to the passed in queue.
 IAxisAlignedBox _getWorldAABB()
          Gets the axis-aligned bounding box of this node (and hence all subnodes).
 void _notifyRootNode()
          Notifies this that it is the root scene node.
 void _update(boolean updateChildren, boolean parentHasChanged)
          Internal method to update the .
 void _updateBounds()
          Tells the to update the world bound info it stores.
 void attachObject(IMovableObject obj)
          Adds an instance of a scene object to this node.
 void attachObject(IParticleSystem obj)
          This method has been added manually to prevent a runtime problem with C++ multiple inheritance and reinterprete_cast.
 ISceneNode createChildSceneNode(IVector3 translate, IQuaternion rotate)
          Creates an unnamed new as a child of this node.
 ISceneNode createChildSceneNode(java.lang.String name, IVector3 translate, IQuaternion rotate)
          Creates a new named as a child of this node.
 void detachAllObjects()
          Detaches all objects attached to this node.
 void detachObject(IMovableObject obj)
          Detaches an object by pointer.
 IMovableObject detachObject(int index)
          Detaches the indexed object from this scene node.
 IMovableObject detachObject(java.lang.String name)
          Detaches the named object from this node and returns a pointer to it.
 void findLights(ILightList destList, float radius)
          Allows retrieval of the nearest lights to the centre of this .
 void flipVisibility(boolean cascade)
          Inverts the visibility of all objects attached to this node.
 IMovableObject getAttachedObject(int index)
          Retrieves a pointer to an attached object.
 IMovableObject getAttachedObject(java.lang.String name)
          Retrieves a pointer to an attached object.
 void getAttachedObjectIterator_const(ISceneNode.IConstObjectIterator returnValue)
           
 void getAttachedObjectIterator(ISceneNode.IObjectIterator returnValue)
          Retrieves an iterator which can be used to efficiently step through the objects attached to this node.
 IVector3 getAutoTrackLocalDirection()
          Get the auto tracking local direction for this node, if it is auto tracking.
 IVector3 getAutoTrackOffset()
          Get the auto tracking offset for this node, if the node is auto tracking.
 ISceneNode getAutoTrackTarget()
          Get the auto tracking target for this node, if any.
 ISceneManager getCreator()
          Gets the creator of this scene node.
 ISceneNode getParentSceneNode()
          Gets the parent of this .
 boolean getShowBoundingBox()
          This allows scene managers to determine if the node's bounding box should be added to the rendering queue.
 boolean isInSceneGraph()
          Determines whether this node is in the scene graph, i.e. whether it's ultimate ancestor is the root scene node.
 void lookAt(IVector3 targetPoint, Node.TransformSpace relativeTo, IVector3 localDirectionVector)
          Points the local -Z direction of this node at a point in space.
 int numAttachedObjects()
          Reports the number of objects attached to this node.
 void removeAndDestroyAllChildren()
          Removes and destroys all children of this node.
 void removeAndDestroyChild(int index)
          This method removes and destroys the child and all of its children.
 void removeAndDestroyChild(java.lang.String name)
          This method removes and destroys the named child and all of its children.
 void setAutoTracking(boolean enabled, ISceneNode target, IVector3 localDirectionVector, IVector3 offset)
          Enables / disables automatic tracking of another .
 void setDebugDisplayEnabled(boolean enabled, boolean cascade)
          Tells all objects attached to this node whether to display their debug information or not.
 void setDirection(float x, float y, float z, Node.TransformSpace relativeTo, IVector3 localDirectionVector)
          Sets the node's direction vector ie it's local -z.
 void setDirection(IVector3 vec, Node.TransformSpace relativeTo, IVector3 localDirectionVector)
          Sets the node's direction vector ie it's local -z.
 void setFixedYawAxis(boolean useFixed, IVector3 fixedAxis)
          Tells the node whether to yaw around it's own local Y axis or a fixed axis of choice.
 void setVisible(boolean visible, boolean cascade)
          Makes all objects attached to this node become visible / invisible.
 void showBoundingBox(boolean bShow)
          Allows the showing of the node's bounding box.
 void yaw(IRadian angle, Node.TransformSpace relativeTo)
          Rotate the node around the Y-axis.
 
Methods inherited from interface org.ogre4j.INode
_getDerivedOrientation, _getDerivedPosition, _getDerivedScale, _getFullTransform, addChild, cancelUpdate, createChild, createChild, getChild, getChild, getChildIterator_const, getChildIterator, getInheritOrientation, getInheritScale, getInitialOrientation, getInitialPosition, getInitialScale, getLights, getListener, getLocalAxes, getMaterial, getName, getOrientation, getParent, getPosition, getRenderOperation, getScale, getSquaredViewDepth, getWorldTransforms, needUpdate, numChildren, pitch, removeAllChildren, removeChild, removeChild, removeChild, requestUpdate, resetOrientation, resetToInitialState, roll, rotate, rotate, scale, scale, setInheritOrientation, setInheritScale, setInitialState, setListener, setOrientation, setOrientation, setPosition, setPosition, setScale, setScale, translate, translate, translate, translate
 
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

attachObject

void attachObject(IMovableObject obj)
Adds an instance of a scene object to this node.


numAttachedObjects

int numAttachedObjects()
Reports the number of objects attached to this node.


getAttachedObject

IMovableObject getAttachedObject(int index)
Retrieves a pointer to an attached object.


getAttachedObject

IMovableObject getAttachedObject(java.lang.String name)
Retrieves a pointer to an attached object.


detachObject

IMovableObject detachObject(int index)
Detaches the indexed object from this scene node.


detachObject

void detachObject(IMovableObject obj)
Detaches an object by pointer.


detachObject

IMovableObject detachObject(java.lang.String name)
Detaches the named object from this node and returns a pointer to it.


detachAllObjects

void detachAllObjects()
Detaches all objects attached to this node.


isInSceneGraph

boolean isInSceneGraph()
Determines whether this node is in the scene graph, i.e. whether it's ultimate ancestor is the root scene node.


_notifyRootNode

void _notifyRootNode()
Notifies this that it is the root scene node.


_update

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

Specified by:
_update in interface INode

_updateBounds

void _updateBounds()
Tells the to update the world bound info it stores.


_findVisibleObjects

void _findVisibleObjects(ICamera cam,
                         IRenderQueue queue,
                         IVisibleObjectsBoundsInfo visibleBounds,
                         boolean includeChildren,
                         boolean displayNodes,
                         boolean onlyShadowCasters)
Internal method which locates any visible objects attached to this node and adds them to the passed in queue.


_getWorldAABB

IAxisAlignedBox _getWorldAABB()
Gets the axis-aligned bounding box of this node (and hence all subnodes).


getAttachedObjectIterator

void getAttachedObjectIterator(ISceneNode.IObjectIterator returnValue)
Retrieves an iterator which can be used to efficiently step through the objects attached to this node.


getAttachedObjectIterator_const

void getAttachedObjectIterator_const(ISceneNode.IConstObjectIterator returnValue)

getCreator

ISceneManager getCreator()
Gets the creator of this scene node.


removeAndDestroyChild

void removeAndDestroyChild(java.lang.String name)
This method removes and destroys the named child and all of its children.


removeAndDestroyChild

void removeAndDestroyChild(int index)
This method removes and destroys the child and all of its children.


removeAndDestroyAllChildren

void removeAndDestroyAllChildren()
Removes and destroys all children of this node.


showBoundingBox

void showBoundingBox(boolean bShow)
Allows the showing of the node's bounding box.


_addBoundingBoxToQueue

void _addBoundingBoxToQueue(IRenderQueue queue)
Add the bounding box to the rendering queue.


getShowBoundingBox

boolean getShowBoundingBox()
This allows scene managers to determine if the node's bounding box should be added to the rendering queue.


createChildSceneNode

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


createChildSceneNode

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


findLights

void findLights(ILightList destList,
                float radius)
Allows retrieval of the nearest lights to the centre of this .


setFixedYawAxis

void setFixedYawAxis(boolean useFixed,
                     IVector3 fixedAxis)
Tells the node whether to yaw around it's own local Y axis or a fixed axis of choice.


yaw

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

Specified by:
yaw in interface INode

setDirection

void setDirection(float x,
                  float y,
                  float z,
                  Node.TransformSpace relativeTo,
                  IVector3 localDirectionVector)
Sets the node's direction vector ie it's local -z.


setDirection

void setDirection(IVector3 vec,
                  Node.TransformSpace relativeTo,
                  IVector3 localDirectionVector)
Sets the node's direction vector ie it's local -z.


lookAt

void lookAt(IVector3 targetPoint,
            Node.TransformSpace relativeTo,
            IVector3 localDirectionVector)
Points the local -Z direction of this node at a point in space.


setAutoTracking

void setAutoTracking(boolean enabled,
                     ISceneNode target,
                     IVector3 localDirectionVector,
                     IVector3 offset)
Enables / disables automatic tracking of another .


getAutoTrackTarget

ISceneNode getAutoTrackTarget()
Get the auto tracking target for this node, if any.


getAutoTrackOffset

IVector3 getAutoTrackOffset()
Get the auto tracking offset for this node, if the node is auto tracking.


getAutoTrackLocalDirection

IVector3 getAutoTrackLocalDirection()
Get the auto tracking local direction for this node, if it is auto tracking.


_autoTrack

void _autoTrack()
Internal method used by OGRE to update auto-tracking cameras.


getParentSceneNode

ISceneNode getParentSceneNode()
Gets the parent of this .


setVisible

void setVisible(boolean visible,
                boolean cascade)
Makes all objects attached to this node become visible / invisible.


flipVisibility

void flipVisibility(boolean cascade)
Inverts the visibility of all objects attached to this node.


setDebugDisplayEnabled

void setDebugDisplayEnabled(boolean enabled,
                            boolean cascade)
Tells all objects attached to this node whether to display their debug information or not.


attachObject

void attachObject(IParticleSystem obj)
This method has been added manually to prevent a runtime problem with C++ multiple inheritance and reinterprete_cast.

ParticleSystem has two base classes:

SceneNode.attachObject casts given pointer to MovableObject. Because ParticleSystem's first base class is StringInterface, the runtime dies at this cast.

Parameters:
obj - ParticleSystem to attach.


Copyright © 2007 netAllied GmbH. All Rights Reserved.