Maven module :un.api : api-display :
Class : un.engine.scenegraph.DefaultSceneNode
Extends/Implements : un.api.model.tree.DefaultNode un.engine.scenegraph.SceneNode
Subclasses : -

Default scene node implementation.
author  Johann Sorel


Variables : modelTransform, coordinateSystem, parent
Functions : DefaultSceneNode, DefaultSceneNode, DefaultSceneNode, DefaultSceneNode, getDimension, getCoordinateSystem, getLocalCoordinateSystem, setLocalCoordinateSystem, getNodeTransform, getProperties, getRootToNodeSpace, getNodeToRootSpace, setRootToNodeSpace, setRootToNodeSpace, getParent, getRoot, addChildren, replaceChildren, removeChildNode, removeChildren



This node 'Parent to Node' Matrix.
protected NodeTransform modelTransform

protected CoordinateSystem coordinateSystem

protected SceneNode parent



Create a scene node with a defined world dimension.
The dimension is use by the node transform.
param  dimension
public void DefaultSceneNode (int dimension)


Create a scene node with a defined coordinate system.
The dimension is use by the node transform.
param  cs
public void DefaultSceneNode (CoordinateSystem cs)


Create a scene node with a defined coordinate system.
The dimension is use by the node transform.
param  cs
param  allowChildren
public void DefaultSceneNode (CoordinateSystem cs, boolean allowChildren)


Create a scene node with a defined world dimension.
The dimension is use by the node transform.
param  dimension
param  allowChildren true to allow children, false otherwise
public void DefaultSceneNode (int dimension, boolean allowChildren)


{@inheritDoc }
@return
public int getDimension ()


{@inheritDoc }
public CoordinateSystem getCoordinateSystem ()


{@inheritDoc }
public CoordinateSystem getLocalCoordinateSystem ()


{@inheritDoc }
public void setLocalCoordinateSystem (CoordinateSystem coordinateSystem)


{@inheritDoc }
@return
public NodeTransform getNodeTransform ()


User defined properties.
Can be used to store additional informations on a node without
creating a new sub class.
return  Dictionary, never null
public Dictionary getProperties ()


{@inheritDoc }
public Matrix getRootToNodeSpace ()


{@inheritDoc }
public Matrix getNodeToRootSpace ()


{@inheritDoc }
@param wtn
public void setRootToNodeSpace (NodeTransform wtn)


{@inheritDoc }
@param wtn
public void setRootToNodeSpace (Matrix wtn)


{@inheritDoc }
@return
public SceneNode getParent ()


{@inheritDoc }
@return root node
public SceneNode getRoot ()


{@inheritDoc }
Set parent reference on new children nodes.

@param array
@param index
protected void addChildren (int index, Object[] array)

protected void replaceChildren (Object[] children)


{@inheritDoc }
Removes parent reference on children node.

@param index
protected boolean removeChildNode (int index)

protected boolean removeChildren ()