|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INode
| 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.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
java.lang.String getName()
INode getParent()
IQuaternion getOrientation()
void setOrientation(IQuaternion q)
void setOrientation(float w,
float x,
float y,
float z)
void resetOrientation()
void setPosition(IVector3 pos)
void setPosition(float x,
float y,
float z)
IVector3 getPosition()
void setScale(IVector3 scale)
void setScale(float x,
float y,
float z)
IVector3 getScale()
void setInheritOrientation(boolean inherit)
boolean getInheritOrientation()
void setInheritScale(boolean inherit)
boolean getInheritScale()
void scale(IVector3 scale)
void scale(float x,
float y,
float z)
void translate(IVector3 d,
Node.TransformSpace relativeTo)
void translate(float x,
float y,
float z,
Node.TransformSpace relativeTo)
void translate(IMatrix3 axes,
IVector3 move,
Node.TransformSpace relativeTo)
void translate(IMatrix3 axes,
float x,
float y,
float z,
Node.TransformSpace relativeTo)
void roll(IRadian angle,
Node.TransformSpace relativeTo)
void pitch(IRadian angle,
Node.TransformSpace relativeTo)
void yaw(IRadian angle,
Node.TransformSpace relativeTo)
void rotate(IVector3 axis,
IRadian angle,
Node.TransformSpace relativeTo)
void rotate(IQuaternion q,
Node.TransformSpace relativeTo)
void getLocalAxes(IMatrix3 returnValue)
INode createChild(IVector3 translate,
IQuaternion rotate)
INode createChild(java.lang.String name,
IVector3 translate,
IQuaternion rotate)
void addChild(INode child)
int numChildren()
INode getChild(int index)
INode getChild(java.lang.String name)
void getChildIterator(INode.IChildNodeIterator returnValue)
void getChildIterator_const(INode.IConstChildNodeIterator returnValue)
INode removeChild(int index)
INode removeChild(INode child)
INode removeChild(java.lang.String name)
void removeAllChildren()
IQuaternion _getDerivedOrientation()
IVector3 _getDerivedPosition()
IVector3 _getDerivedScale()
IMatrix4 _getFullTransform()
void _update(boolean updateChildren,
boolean parentHasChanged)
void setListener(INode.IListener listener)
INode.IListener getListener()
IMaterialPtr getMaterial()
getMaterial in interface IRenderablevoid getRenderOperation(IRenderOperation op)
getRenderOperation in interface IRenderablevoid getWorldTransforms(IMatrix4 xform)
getWorldTransforms in interface IRenderablevoid setInitialState()
void resetToInitialState()
IVector3 getInitialPosition()
IQuaternion getInitialOrientation()
IVector3 getInitialScale()
float getSquaredViewDepth(ICamera cam)
getSquaredViewDepth in interface IRenderablevoid needUpdate(boolean forceParentUpdate)
void requestUpdate(INode child,
boolean forceParentUpdate)
void cancelUpdate(INode child)
ILightList getLights()
IRenderable
getLights in interface IRenderable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||