|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISceneNode
| 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.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
void attachObject(IMovableObject obj)
int numAttachedObjects()
IMovableObject getAttachedObject(int index)
IMovableObject getAttachedObject(java.lang.String name)
IMovableObject detachObject(int index)
void detachObject(IMovableObject obj)
IMovableObject detachObject(java.lang.String name)
void detachAllObjects()
boolean isInSceneGraph()
void _notifyRootNode()
void _update(boolean updateChildren,
boolean parentHasChanged)
_update in interface INodevoid _updateBounds()
void _findVisibleObjects(ICamera cam,
IRenderQueue queue,
IVisibleObjectsBoundsInfo visibleBounds,
boolean includeChildren,
boolean displayNodes,
boolean onlyShadowCasters)
IAxisAlignedBox _getWorldAABB()
void getAttachedObjectIterator(ISceneNode.IObjectIterator returnValue)
void getAttachedObjectIterator_const(ISceneNode.IConstObjectIterator returnValue)
ISceneManager getCreator()
void removeAndDestroyChild(java.lang.String name)
void removeAndDestroyChild(int index)
void removeAndDestroyAllChildren()
void showBoundingBox(boolean bShow)
void _addBoundingBoxToQueue(IRenderQueue queue)
boolean getShowBoundingBox()
ISceneNode createChildSceneNode(IVector3 translate,
IQuaternion rotate)
ISceneNode createChildSceneNode(java.lang.String name,
IVector3 translate,
IQuaternion rotate)
void findLights(ILightList destList,
float radius)
void setFixedYawAxis(boolean useFixed,
IVector3 fixedAxis)
void yaw(IRadian angle,
Node.TransformSpace relativeTo)
yaw in interface INode
void setDirection(float x,
float y,
float z,
Node.TransformSpace relativeTo,
IVector3 localDirectionVector)
void setDirection(IVector3 vec,
Node.TransformSpace relativeTo,
IVector3 localDirectionVector)
void lookAt(IVector3 targetPoint,
Node.TransformSpace relativeTo,
IVector3 localDirectionVector)
void setAutoTracking(boolean enabled,
ISceneNode target,
IVector3 localDirectionVector,
IVector3 offset)
ISceneNode getAutoTrackTarget()
IVector3 getAutoTrackOffset()
IVector3 getAutoTrackLocalDirection()
void _autoTrack()
ISceneNode getParentSceneNode()
void setVisible(boolean visible,
boolean cascade)
void flipVisibility(boolean cascade)
void setDebugDisplayEnabled(boolean enabled,
boolean cascade)
void attachObject(IParticleSystem obj)
ParticleSystem has two base classes:
obj - ParticleSystem to attach.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||