|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Bone
public class Bone
| Nested Class Summary |
|---|
| 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 |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Bone(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Bone(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Bone(int handle,
ISkeleton creator)
Constructor, not to be used directly (use or ) |
|
Bone(java.lang.String name,
int handle,
ISkeleton creator)
Constructor, not to be used directly (use or ) |
|
Bone(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
IQuaternion |
_getBindingPoseInverseOrientation()
Gets the inverted binding pose orientation. |
IVector3 |
_getBindingPoseInversePosition()
Gets the inverted binding pose position. |
IVector3 |
_getBindingPoseInverseScale()
Gets the inverted binding pose scale. |
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 |
_getOffsetTransform(IMatrix4 m)
Gets the transform which takes bone space to current from the binding pose. |
void |
_update(boolean updateChildren,
boolean parentHasChanged)
Internal method to update the . |
void |
_updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry,
IGpuProgramParameters params)
Update a custom constant which is derived from information only this knows. |
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. |
IBone |
createChild(int handle,
IVector3 translate,
IQuaternion rotate)
Creates a new as a child of this bone. |
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. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
boolean |
getCastsShadows()
Method which reports whether this renderable would normally cast a shadow. |
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. |
IVector4 |
getCustomParameter(int index)
Gets the custom value associated with this at the given index. |
int |
getHandle()
Gets the numeric handle for this bone (unique within the skeleton). |
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. |
int |
getNumWorldTransforms()
Returns the number of world transform matrices this renderable requires. |
IQuaternion |
getOrientation()
Returns a quaternion representing the nodes orientation. |
INode |
getParent()
Gets this node's parent (NULL if this is the root). |
boolean |
getPolygonModeOverrideable()
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. |
IVector3 |
getPosition()
Gets the position of the node relative to it's parent. |
void |
getRenderOperation(IRenderOperation op)
Overridden from . |
IRenderable.IRenderSystemData |
getRenderSystemData()
Sets render system private data |
IVector3 |
getScale()
Gets the scaling factor of this node. |
float |
getSquaredViewDepth(ICamera cam)
Overridden, see |
ITechnique |
getTechnique()
Retrieves a pointer to the this renderable object uses. |
boolean |
getUseIdentityProjection()
Returns whether or not to use an 'identity' projection. |
boolean |
getUseIdentityView()
Returns whether or not to use an 'identity' view. |
IAny |
getUserAny()
Retrieves the custom user value associated with this object. |
void |
getWorldTransforms(IMatrix4 xform)
Overridden from . |
boolean |
isManuallyControlled()
Getter for mManuallyControlled Flag |
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 |
postRender(ISceneManager sm,
IRenderSystem rsys)
Called immediately after the has been rendered. |
boolean |
preRender(ISceneManager sm,
IRenderSystem rsys)
Called just prior to the being rendered. |
static void |
processQueuedUpdates()
Process queued 'needUpdate' calls. |
static void |
queueNeedUpdate(INode n)
Queue a 'needUpdate' call to a node safely. |
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 |
reset()
Resets the position and orientation of this to the original binding position. |
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 |
setBindingPose()
Sets the current position / orientation to be the 'binding pose' ie the layout in which bones were originally bound to a mesh. |
void |
setCustomParameter(int index,
IVector4 value)
Sets a custom parameter for this , which may be used to drive calculations for this specific , like GPU program parameters. |
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 |
setManuallyControlled(boolean manuallyControlled)
Sets whether or not this bone is manually controlled. |
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 |
setPolygonModeOverrideable(boolean override)
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting. |
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 |
setRenderSystemData(IRenderable.IRenderSystemData val)
gets render system private data |
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 |
setUseIdentityProjection(boolean useIdentityProjection)
Sets whether or not to use an 'identity' projection. |
void |
setUseIdentityView(boolean useIdentityView)
Sets whether or not to use an 'identity' view. |
void |
setUserAny(IAny anything)
Sets any kind of user value on this object. |
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 class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public Bone(InstancePointer p)
protected Bone(InstancePointer p,
boolean remote)
public Bone(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public Bone(int handle,
ISkeleton creator)
public Bone(java.lang.String name,
int handle,
ISkeleton creator)
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObject
public IBone createChild(int handle,
IVector3 translate,
IQuaternion rotate)
createChild in interface IBonepublic int getHandle()
getHandle in interface IBonepublic void setBindingPose()
setBindingPose in interface IBonepublic void reset()
reset in interface IBonepublic void setManuallyControlled(boolean manuallyControlled)
setManuallyControlled in interface IBonepublic boolean isManuallyControlled()
isManuallyControlled in interface IBonepublic void _getOffsetTransform(IMatrix4 m)
_getOffsetTransform in interface IBonepublic IVector3 _getBindingPoseInverseScale()
_getBindingPoseInverseScale in interface IBonepublic IVector3 _getBindingPoseInversePosition()
_getBindingPoseInversePosition in interface IBonepublic IQuaternion _getBindingPoseInverseOrientation()
_getBindingPoseInverseOrientation in interface IBonepublic void needUpdate(boolean forceParentUpdate)
INode
needUpdate in interface IBoneneedUpdate in interface INodepublic java.lang.String getName()
getName in interface INodepublic INode getParent()
getParent in interface INodepublic IQuaternion getOrientation()
getOrientation in interface INodepublic void setOrientation(IQuaternion q)
setOrientation in interface INode
public void setOrientation(float w,
float x,
float y,
float z)
setOrientation in interface INodepublic void resetOrientation()
resetOrientation in interface INodepublic void setPosition(IVector3 pos)
setPosition in interface INode
public void setPosition(float x,
float y,
float z)
setPosition in interface INodepublic IVector3 getPosition()
getPosition in interface INodepublic void setScale(IVector3 scale)
setScale in interface INode
public void setScale(float x,
float y,
float z)
setScale in interface INodepublic IVector3 getScale()
getScale in interface INodepublic void setInheritOrientation(boolean inherit)
setInheritOrientation in interface INodepublic boolean getInheritOrientation()
getInheritOrientation in interface INodepublic void setInheritScale(boolean inherit)
setInheritScale in interface INodepublic boolean getInheritScale()
getInheritScale in interface INodepublic void scale(IVector3 scale)
scale in interface INode
public void scale(float x,
float y,
float z)
scale in interface INode
public void translate(IVector3 d,
Node.TransformSpace relativeTo)
translate in interface INode
public void translate(float x,
float y,
float z,
Node.TransformSpace relativeTo)
translate in interface INode
public void translate(IMatrix3 axes,
IVector3 move,
Node.TransformSpace relativeTo)
translate in interface INode
public void translate(IMatrix3 axes,
float x,
float y,
float z,
Node.TransformSpace relativeTo)
translate in interface INode
public void roll(IRadian angle,
Node.TransformSpace relativeTo)
roll in interface INode
public void pitch(IRadian angle,
Node.TransformSpace relativeTo)
pitch in interface INode
public void yaw(IRadian angle,
Node.TransformSpace relativeTo)
yaw in interface INode
public void rotate(IVector3 axis,
IRadian angle,
Node.TransformSpace relativeTo)
rotate in interface INode
public void rotate(IQuaternion q,
Node.TransformSpace relativeTo)
rotate in interface INodepublic void getLocalAxes(IMatrix3 returnValue)
getLocalAxes in interface INode
public INode createChild(IVector3 translate,
IQuaternion rotate)
createChild in interface INode
public INode createChild(java.lang.String name,
IVector3 translate,
IQuaternion rotate)
createChild in interface INodepublic void addChild(INode child)
addChild in interface INodepublic int numChildren()
numChildren in interface INodepublic INode getChild(int index)
getChild in interface INodepublic INode getChild(java.lang.String name)
getChild in interface INodepublic void getChildIterator(INode.IChildNodeIterator returnValue)
getChildIterator in interface INodepublic void getChildIterator_const(INode.IConstChildNodeIterator returnValue)
getChildIterator_const in interface INodepublic INode removeChild(int index)
removeChild in interface INodepublic INode removeChild(INode child)
removeChild in interface INodepublic INode removeChild(java.lang.String name)
removeChild in interface INodepublic void removeAllChildren()
removeAllChildren in interface INodepublic IQuaternion _getDerivedOrientation()
_getDerivedOrientation in interface INodepublic IVector3 _getDerivedPosition()
_getDerivedPosition in interface INodepublic IVector3 _getDerivedScale()
_getDerivedScale in interface INodepublic IMatrix4 _getFullTransform()
_getFullTransform in interface INode
public void _update(boolean updateChildren,
boolean parentHasChanged)
_update in interface INodepublic void setListener(INode.IListener listener)
setListener in interface INodepublic INode.IListener getListener()
getListener in interface INodepublic IMaterialPtr getMaterial()
getMaterial in interface INodegetMaterial in interface IRenderablepublic void getRenderOperation(IRenderOperation op)
getRenderOperation in interface INodegetRenderOperation in interface IRenderablepublic void getWorldTransforms(IMatrix4 xform)
getWorldTransforms in interface INodegetWorldTransforms in interface IRenderablepublic void setInitialState()
setInitialState in interface INodepublic void resetToInitialState()
resetToInitialState in interface INodepublic IVector3 getInitialPosition()
getInitialPosition in interface INodepublic IQuaternion getInitialOrientation()
getInitialOrientation in interface INodepublic IVector3 getInitialScale()
getInitialScale in interface INodepublic float getSquaredViewDepth(ICamera cam)
getSquaredViewDepth in interface INodegetSquaredViewDepth in interface IRenderable
public void requestUpdate(INode child,
boolean forceParentUpdate)
requestUpdate in interface INodepublic void cancelUpdate(INode child)
cancelUpdate in interface INodepublic ILightList getLights()
IRenderable
getLights in interface INodegetLights in interface IRenderablepublic static void queueNeedUpdate(INode n)
public static void processQueuedUpdates()
public ITechnique getTechnique()
getTechnique in interface IRenderable
public boolean preRender(ISceneManager sm,
IRenderSystem rsys)
preRender in interface IRenderable
public void postRender(ISceneManager sm,
IRenderSystem rsys)
postRender in interface IRenderablepublic int getNumWorldTransforms()
getNumWorldTransforms in interface IRenderablepublic void setUseIdentityProjection(boolean useIdentityProjection)
setUseIdentityProjection in interface IRenderablepublic boolean getUseIdentityProjection()
getUseIdentityProjection in interface IRenderablepublic void setUseIdentityView(boolean useIdentityView)
setUseIdentityView in interface IRenderablepublic boolean getUseIdentityView()
getUseIdentityView in interface IRenderablepublic boolean getCastsShadows()
getCastsShadows in interface IRenderable
public void setCustomParameter(int index,
IVector4 value)
setCustomParameter in interface IRenderablepublic IVector4 getCustomParameter(int index)
getCustomParameter in interface IRenderable
public void _updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry,
IGpuProgramParameters params)
_updateCustomGpuParameter in interface IRenderablepublic void setPolygonModeOverrideable(boolean override)
setPolygonModeOverrideable in interface IRenderablepublic boolean getPolygonModeOverrideable()
getPolygonModeOverrideable in interface IRenderablepublic void setUserAny(IAny anything)
setUserAny in interface IRenderablepublic IAny getUserAny()
getUserAny in interface IRenderablepublic IRenderable.IRenderSystemData getRenderSystemData()
getRenderSystemData in interface IRenderablepublic void setRenderSystemData(IRenderable.IRenderSystemData val)
setRenderSystemData in interface IRenderable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||