org.ogre4j
Class RibbonTrail

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.RibbonTrail
All Implemented Interfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IAnimableObject, IBillboardChain, IMovableObject, IMovableObject.IListener, IRenderable, IRibbonTrail, ISceneObjAllocatedObject, IShadowCaster, INativeObject

public class RibbonTrail
extends NativeObject
implements IRibbonTrail


Nested Class Summary
protected static class RibbonTrail.ColourValueList
           
protected static class RibbonTrail.IndexVector
           
static class RibbonTrail.NodeIterator
           
static class RibbonTrail.NodeList
           
protected static class RibbonTrail.NodeToChainSegmentMap
           
protected static class RibbonTrail.RealList
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IRibbonTrail
IRibbonTrail.IColourValueList, IRibbonTrail.IIndexVector, IRibbonTrail.INodeIterator, IRibbonTrail.INodeList, IRibbonTrail.INodeToChainSegmentMap, IRibbonTrail.IRealList
 
Nested classes/interfaces inherited from interface org.ogre4j.IBillboardChain
IBillboardChain.IChainSegment, IBillboardChain.IChainSegmentList, IBillboardChain.IElement, IBillboardChain.IElementList
 
Nested classes/interfaces inherited from interface org.ogre4j.IMovableObject
IMovableObject.IListener
 
Nested classes/interfaces inherited from interface org.ogre4j.IShadowCaster
IShadowCaster.IShadowRenderableList, IShadowCaster.IShadowRenderableListIterator
 
Nested classes/interfaces inherited from interface org.ogre4j.IAnimableObject
IAnimableObject.IAnimableDictionaryMap
 
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
  RibbonTrail(InstancePointer p)
          This constructor is public for internal useage only!
protected RibbonTrail(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  RibbonTrail(java.lang.String name, int maxElements, int numberOfChains, boolean useTextureCoords, boolean useColours)
          Constructor (don't use directly, use factory)
  RibbonTrail(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 IMovableObjectFactory _getCreator()
          Get the creator of this object, if any (internal use only)
 ILightList _getLightList()
          Returns a pointer to the current list of lights for this object.
 ISceneManager _getManager()
          Get the manager of this object, if any (internal use only)
 IMatrix4 _getParentNodeFullTransform()
           
 void _notifyAttached(INode parent, boolean isTagPoint)
          Internal method called to notify the object that it has been attached to a node.
 void _notifyCreator(IMovableObjectFactory fact)
          Notify the object of it's creator (internal use only)
 void _notifyCurrentCamera(ICamera cam)
          Internal method to notify the object of the camera to be used for the next rendering operation.
 void _notifyManager(ISceneManager man)
          Notify the object of it's manager (internal use only)
 void _notifyMoved()
          Internal method called to notify the object that it has been moved.
 void _timeUpdate(float time)
           
 void _updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry, IGpuProgramParameters params)
          Update a custom constant which is derived from information only this knows.
 void _updateRenderQueue(IRenderQueue a1)
          Internal method by which the movable object must add subclass instances to the rendering queue.
 void addChainElement(int chainIndex, IBillboardChain.IElement billboardChainElement)
          Add an element to the 'head' of a chain.
 void addNode(INode n)
          Add a node to be tracked.
 void addQueryFlags(long flags)
          As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.
 void addVisibilityFlags(long flags)
          As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.
 void clearAllChains()
          Remove all elements from all chains (but leave the chains themselves intact).
 void clearChain(int chainIndex)
          Remove all elements of a given chain (but leave the chain intact).
 void createAnimableValue(IAnimableValuePtr returnValue, java.lang.String valueName)
          Create a reference-counted AnimableValuePtr for the named value.
 void delete()
          Deletes the corresponding C++ object.
 void detatchFromParent()
          Detaches an object from a parent or , if attached.
static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer, int originalVertexCount, IVector4 lightPos, float extrudeDist)
          Utility method for extruding vertices based on a light.
 void finalize()
           
 IStringVector getAnimableValueNames()
          Gets a list of animable value names for this object.
 IAxisAlignedBox getBoundingBox()
          Retrieves the local axis-aligned bounding box for this object.
 float getBoundingRadius()
          Retrieves the radius of the origin-centered bounding sphere for this object.
 boolean getCastShadows()
          Returns whether shadow casting is enabled for this object.
 boolean getCastsShadows()
          Method which reports whether this renderable would normally cast a shadow.
 IBillboardChain.IElement getChainElement(int chainIndex, int elementIndex)
          Get the detail of a chain element.
 int getChainIndexForNode(INode n)
          Get the chain index for a given being tracked.
 IColourValue getColourChange(int chainIndex)
          Get the per-second fading amount
 IVector4 getCustomParameter(int index)
          Gets the custom value associated with this at the given index.
 IAxisAlignedBox getDarkCapBounds(ILight light, float dirLightExtrusionDist)
          Overridden member from .
static long getDefaultQueryFlags()
          Get the default query flags for all future instances.
static long getDefaultVisibilityFlags()
          Get the default visibility flags for all future instances.
 boolean getDynamic()
          Gets whether or not the buffers created for this object are suitable for dynamic alteration.
 IEdgeData getEdgeList()
          Returns details of the edges which might be used to determine a silhouette.
 IColourValue getInitialColour(int chainIndex)
          Get the starting ribbon colour.
 float getInitialWidth(int chainIndex)
          Get the starting ribbon width in world units.
 IAxisAlignedBox getLightCapBounds()
          Overridden member from .
 ILightList getLights()
          Gets a list of lights, ordered relative to how close they are to this renderable.
 IMovableObject.IListener getListener()
          Gets the current listener for this object.
 IMaterialPtr getMaterial()
          Retrieves a weak reference to the material this renderable object uses.
 java.lang.String getMaterialName()
           
 int getMaxChainElements()
          Get the maximum number of chain elements per chain
 java.lang.String getMovableType()
          Overridden from
 java.lang.String getName()
          Returns the name of this object.
 void getNodeIterator(IRibbonTrail.INodeIterator returnValue)
          Get an iterator over the nodes which are being tracked.
 int getNumberOfChains()
          Get the number of chain segments (this class can render multiple chains at once using the same material).
 int getNumChainElements(int chainIndex)
          Returns the number of chain elements.
 int getNumWorldTransforms()
          Returns the number of world transform matrices this renderable requires.
 FloatPointer getOtherTextureCoordRange()
          Get the range of the texture coordinates generated across the width of the chain elements.
 INode getParentNode()
          Returns the node to which this object is attached.
 ISceneNode getParentSceneNode()
          Returns the scene node to which this object is attached.
 float getPointExtrusionDistance(ILight l)
          Get the distance to extrude for a point/spot light
 boolean getPolygonModeOverrideable()
          Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
 long getQueryFlags()
           
 float getRenderingDistance()
          Gets the distance at which batches are no longer rendered.
 void getRenderOperation(IRenderOperation a1)
          Gets the render operation required to send this object to the frame buffer.
 short getRenderQueueGroup()
          Gets the queue group for this entity, see setRenderQueueGroup for full details.
 IRenderable.IRenderSystemData getRenderSystemData()
          Sets render system private data
 void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue, ShadowTechnique shadowTechnique, ILight light, IHardwareIndexBufferSharedPtr indexBuffer, boolean extrudeVertices, float extrusionDist, long flags)
          Gets an iterator over the renderables required to render the shadow volume.
 float getSquaredViewDepth(ICamera cam)
          Returns the camera-relative squared depth of this renderable.
 ITechnique getTechnique()
          Retrieves a pointer to the this renderable object uses.
 BillboardChain.TexCoordDirection getTextureCoordDirection()
          Gets the direction in which texture coords specified on each element are deemed to run.
 float getTrailLength()
          Get the length of the trail.
 long getTypeFlags()
          Get the 'type flags' for this .
 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.
 IUserDefinedObject getUserObject()
          Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.
 boolean getUseTextureCoords()
          Gets whether texture coordinate information should be included in the final buffers generated.
 boolean getUseVertexColours()
          Gets whether vertex colour information should be included in the final buffers generated.
 long getVisibilityFlags()
           
 boolean getVisible()
          Gets this object whether to be visible or not, if it has a renderable component.
 float getWidthChange(int chainIndex)
          Get the change in ribbon width per second.
 IAxisAlignedBox getWorldBoundingBox(boolean derive)
          Retrieves the axis-aligned bounding box for this object in world coordinates.
 ISphere getWorldBoundingSphere(boolean derive)
          Retrieves the worldspace bounding sphere for this object.
 void getWorldTransforms(IMatrix4 a1)
          Gets the world transform matrix / matrices for this renderable object.
 boolean hasEdgeList()
          Returns whether the object has a valid edge list.
 boolean isAttached()
          Returns true if this object is attached to a or .
 boolean isDebugDisplayEnabled()
           
 boolean isInScene()
          Returns true if this object is attached to a or , and this / is currently in an active part of the scene graph.
 boolean isVisible()
          Returns whether or not this object is supposed to be visible or not.
 void nodeDestroyed(INode node)
           
 void nodeUpdated(INode node)
           
 void objectAttached(IMovableObject a1)
          has been attached to a node
 void objectDestroyed(IMovableObject a1)
          is being destroyed
 void objectDetached(IMovableObject a1)
          has been detached from a node
 void objectMoved(IMovableObject a1)
          has been moved
 ILightList objectQueryLights(IMovableObject a1)
          Called when the movable object needs to query a light list.
 boolean objectRendering(IMovableObject a1, ICamera a2)
          Called when the movable object of the camera to be used for rendering.
 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.
 ILightList queryLights()
          Gets a list of lights, ordered relative to how close they are to this movable object.
 void removeChainElement(int chainIndex)
          Remove an element from the 'tail' of a chain.
 void removeNode(INode n)
          Remove tracking on a given node.
 void removeQueryFlags(long flags)
          As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.
 void removeVisibilityFlags(long flags)
          As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.
 void setCastShadows(boolean enabled)
          Sets whether or not this object will cast shadows.
 void setColourChange(int chainIndex, float r, float g, float b, float a)
          Enables / disables fading the trail using colour.
 void setColourChange(int chainIndex, IColourValue valuePerSecond)
          Enables / disables fading the trail using colour.
 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 setDebugDisplayEnabled(boolean enabled)
          Sets whether or not the debug display of this object is enabled.
static void setDefaultQueryFlags(long flags)
          Set the default query flags for all future instances.
static void setDefaultVisibilityFlags(long flags)
          Set the default visibility flags for all future instances.
 void setDynamic(boolean dyn)
          Sets whether or not the buffers created for this object are suitable for dynamic alteration.
 void setInitialColour(int chainIndex, float r, float g, float b, float a)
          Set the starting ribbon colour.
 void setInitialColour(int chainIndex, IColourValue col)
          Set the starting ribbon colour for a given segment.
 void setInitialWidth(int chainIndex, float width)
          Set the starting ribbon width in world units.
 void setListener(IMovableObject.IListener listener)
          Sets a listener for this object.
 void setMaterialName(java.lang.String name)
           
 void setMaxChainElements(int maxElements)
          Set the maximum number of chain elements per chain
 void setNumberOfChains(int numChains)
          Set the number of chain segments (this class can render multiple chains at once using the same material).
 void setOtherTextureCoordRange(float start, float end)
          Set the range of the texture coordinates generated across the width of the chain elements.
 void setPolygonModeOverrideable(boolean override)
          Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
 void setQueryFlags(long flags)
          Sets the query flags for this object.
 void setRenderingDistance(float dist)
          Sets the distance at which the object is no longer rendered.
 void setRenderQueueGroup(short queueID)
          Sets the render queue group this entity will be rendered through.
 void setRenderSystemData(IRenderable.IRenderSystemData val)
          gets render system private data
 void setTextureCoordDirection(BillboardChain.TexCoordDirection dir)
          Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain.
 void setTrailLength(float len)
          Set the length of the trail.
 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 setUserObject(IUserDefinedObject obj)
          Call this to associate your own custom user object instance with this .
 void setUseTextureCoords(boolean use)
          Sets whether texture coordinate information should be included in the final buffers generated.
 void setUseVertexColours(boolean use)
          Sets whether vertex colour information should be included in the final buffers generated.
 void setVisibilityFlags(long flags)
          Sets the visiblity flags for this object.
 void setVisible(boolean visible)
          Tells this object whether to be visible or not, if it has a renderable component.
 void setWidthChange(int chainIndex, float widthDeltaPerSecond)
          Set the change in ribbon width per second.
 void updateChainElement(int chainIndex, int elementIndex, IBillboardChain.IElement billboardChainElement)
          Update the details of an existing chain element.
 void visitRenderables(IRenderable.IVisitor visitor, boolean debugRenderables)
          Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any.
 
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

RibbonTrail

public RibbonTrail(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


RibbonTrail

protected RibbonTrail(InstancePointer p,
                      boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


RibbonTrail

public RibbonTrail(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

RibbonTrail

public RibbonTrail(java.lang.String name,
                   int maxElements,
                   int numberOfChains,
                   boolean useTextureCoords,
                   boolean useColours)
Constructor (don't use directly, use factory)

Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

addNode

public void addNode(INode n)
Add a node to be tracked.

Specified by:
addNode in interface IRibbonTrail

removeNode

public void removeNode(INode n)
Remove tracking on a given node.

Specified by:
removeNode in interface IRibbonTrail

getNodeIterator

public void getNodeIterator(IRibbonTrail.INodeIterator returnValue)
Get an iterator over the nodes which are being tracked.

Specified by:
getNodeIterator in interface IRibbonTrail

getChainIndexForNode

public int getChainIndexForNode(INode n)
Get the chain index for a given being tracked.

Specified by:
getChainIndexForNode in interface IRibbonTrail

setTrailLength

public void setTrailLength(float len)
Set the length of the trail.

Specified by:
setTrailLength in interface IRibbonTrail

getTrailLength

public float getTrailLength()
Get the length of the trail.

Specified by:
getTrailLength in interface IRibbonTrail

setMaxChainElements

public void setMaxChainElements(int maxElements)
Description copied from interface: IBillboardChain
Set the maximum number of chain elements per chain

Specified by:
setMaxChainElements in interface IBillboardChain
Specified by:
setMaxChainElements in interface IRibbonTrail

setNumberOfChains

public void setNumberOfChains(int numChains)
Description copied from interface: IBillboardChain
Set the number of chain segments (this class can render multiple chains at once using the same material).

Specified by:
setNumberOfChains in interface IBillboardChain
Specified by:
setNumberOfChains in interface IRibbonTrail

clearChain

public void clearChain(int chainIndex)
Description copied from interface: IBillboardChain
Remove all elements of a given chain (but leave the chain intact).

Specified by:
clearChain in interface IBillboardChain
Specified by:
clearChain in interface IRibbonTrail

setInitialColour

public void setInitialColour(int chainIndex,
                             IColourValue col)
Set the starting ribbon colour for a given segment.

Specified by:
setInitialColour in interface IRibbonTrail

setInitialColour

public void setInitialColour(int chainIndex,
                             float r,
                             float g,
                             float b,
                             float a)
Set the starting ribbon colour.

Specified by:
setInitialColour in interface IRibbonTrail

getInitialColour

public IColourValue getInitialColour(int chainIndex)
Get the starting ribbon colour.

Specified by:
getInitialColour in interface IRibbonTrail

setColourChange

public void setColourChange(int chainIndex,
                            IColourValue valuePerSecond)
Enables / disables fading the trail using colour.

Specified by:
setColourChange in interface IRibbonTrail

setInitialWidth

public void setInitialWidth(int chainIndex,
                            float width)
Set the starting ribbon width in world units.

Specified by:
setInitialWidth in interface IRibbonTrail

getInitialWidth

public float getInitialWidth(int chainIndex)
Get the starting ribbon width in world units.

Specified by:
getInitialWidth in interface IRibbonTrail

setWidthChange

public void setWidthChange(int chainIndex,
                           float widthDeltaPerSecond)
Set the change in ribbon width per second.

Specified by:
setWidthChange in interface IRibbonTrail

getWidthChange

public float getWidthChange(int chainIndex)
Get the change in ribbon width per second.

Specified by:
getWidthChange in interface IRibbonTrail

setColourChange

public void setColourChange(int chainIndex,
                            float r,
                            float g,
                            float b,
                            float a)
Enables / disables fading the trail using colour.

Specified by:
setColourChange in interface IRibbonTrail

getColourChange

public IColourValue getColourChange(int chainIndex)
Get the per-second fading amount

Specified by:
getColourChange in interface IRibbonTrail

nodeUpdated

public void nodeUpdated(INode node)
Specified by:
nodeUpdated in interface IRibbonTrail

nodeDestroyed

public void nodeDestroyed(INode node)
Specified by:
nodeDestroyed in interface IRibbonTrail

_timeUpdate

public void _timeUpdate(float time)
Specified by:
_timeUpdate in interface IRibbonTrail

getMovableType

public java.lang.String getMovableType()
Overridden from

Specified by:
getMovableType in interface IBillboardChain
Specified by:
getMovableType in interface IMovableObject
Specified by:
getMovableType in interface IRibbonTrail

getMaxChainElements

public int getMaxChainElements()
Get the maximum number of chain elements per chain

Specified by:
getMaxChainElements in interface IBillboardChain

getNumberOfChains

public int getNumberOfChains()
Get the number of chain segments (this class can render multiple chains at once using the same material).

Specified by:
getNumberOfChains in interface IBillboardChain

setUseTextureCoords

public void setUseTextureCoords(boolean use)
Sets whether texture coordinate information should be included in the final buffers generated.

Specified by:
setUseTextureCoords in interface IBillboardChain

getUseTextureCoords

public boolean getUseTextureCoords()
Gets whether texture coordinate information should be included in the final buffers generated.

Specified by:
getUseTextureCoords in interface IBillboardChain

setTextureCoordDirection

public void setTextureCoordDirection(BillboardChain.TexCoordDirection dir)
Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain.

Specified by:
setTextureCoordDirection in interface IBillboardChain

getTextureCoordDirection

public BillboardChain.TexCoordDirection getTextureCoordDirection()
Gets the direction in which texture coords specified on each element are deemed to run.

Specified by:
getTextureCoordDirection in interface IBillboardChain

setOtherTextureCoordRange

public void setOtherTextureCoordRange(float start,
                                      float end)
Set the range of the texture coordinates generated across the width of the chain elements.

Specified by:
setOtherTextureCoordRange in interface IBillboardChain

getOtherTextureCoordRange

public FloatPointer getOtherTextureCoordRange()
Get the range of the texture coordinates generated across the width of the chain elements.

Specified by:
getOtherTextureCoordRange in interface IBillboardChain

setUseVertexColours

public void setUseVertexColours(boolean use)
Sets whether vertex colour information should be included in the final buffers generated.

Specified by:
setUseVertexColours in interface IBillboardChain

getUseVertexColours

public boolean getUseVertexColours()
Gets whether vertex colour information should be included in the final buffers generated.

Specified by:
getUseVertexColours in interface IBillboardChain

setDynamic

public void setDynamic(boolean dyn)
Sets whether or not the buffers created for this object are suitable for dynamic alteration.

Specified by:
setDynamic in interface IBillboardChain

getDynamic

public boolean getDynamic()
Gets whether or not the buffers created for this object are suitable for dynamic alteration.

Specified by:
getDynamic in interface IBillboardChain

addChainElement

public void addChainElement(int chainIndex,
                            IBillboardChain.IElement billboardChainElement)
Add an element to the 'head' of a chain.

Specified by:
addChainElement in interface IBillboardChain

removeChainElement

public void removeChainElement(int chainIndex)
Remove an element from the 'tail' of a chain.

Specified by:
removeChainElement in interface IBillboardChain

updateChainElement

public void updateChainElement(int chainIndex,
                               int elementIndex,
                               IBillboardChain.IElement billboardChainElement)
Update the details of an existing chain element.

Specified by:
updateChainElement in interface IBillboardChain

getChainElement

public IBillboardChain.IElement getChainElement(int chainIndex,
                                                int elementIndex)
Get the detail of a chain element.

Specified by:
getChainElement in interface IBillboardChain

getNumChainElements

public int getNumChainElements(int chainIndex)
Returns the number of chain elements.

Specified by:
getNumChainElements in interface IBillboardChain

clearAllChains

public void clearAllChains()
Remove all elements from all chains (but leave the chains themselves intact).

Specified by:
clearAllChains in interface IBillboardChain

getMaterialName

public java.lang.String getMaterialName()
Specified by:
getMaterialName in interface IBillboardChain

setMaterialName

public void setMaterialName(java.lang.String name)
Specified by:
setMaterialName in interface IBillboardChain

_notifyCurrentCamera

public void _notifyCurrentCamera(ICamera cam)
Description copied from interface: IMovableObject
Internal method to notify the object of the camera to be used for the next rendering operation.

Specified by:
_notifyCurrentCamera in interface IBillboardChain
Specified by:
_notifyCurrentCamera in interface IMovableObject

getSquaredViewDepth

public float getSquaredViewDepth(ICamera cam)
Description copied from interface: IRenderable
Returns the camera-relative squared depth of this renderable.

Specified by:
getSquaredViewDepth in interface IBillboardChain
Specified by:
getSquaredViewDepth in interface IRenderable

getBoundingRadius

public float getBoundingRadius()
Description copied from interface: IMovableObject
Retrieves the radius of the origin-centered bounding sphere for this object.

Specified by:
getBoundingRadius in interface IBillboardChain
Specified by:
getBoundingRadius in interface IMovableObject

getBoundingBox

public IAxisAlignedBox getBoundingBox()
Description copied from interface: IMovableObject
Retrieves the local axis-aligned bounding box for this object.

Specified by:
getBoundingBox in interface IBillboardChain
Specified by:
getBoundingBox in interface IMovableObject

getMaterial

public IMaterialPtr getMaterial()
Description copied from interface: IRenderable
Retrieves a weak reference to the material this renderable object uses.

Specified by:
getMaterial in interface IBillboardChain
Specified by:
getMaterial in interface IRenderable

_updateRenderQueue

public void _updateRenderQueue(IRenderQueue a1)
Description copied from interface: IMovableObject
Internal method by which the movable object must add subclass instances to the rendering queue.

Specified by:
_updateRenderQueue in interface IBillboardChain
Specified by:
_updateRenderQueue in interface IMovableObject

getRenderOperation

public void getRenderOperation(IRenderOperation a1)
Description copied from interface: IRenderable
Gets the render operation required to send this object to the frame buffer.

Specified by:
getRenderOperation in interface IBillboardChain
Specified by:
getRenderOperation in interface IRenderable

getWorldTransforms

public void getWorldTransforms(IMatrix4 a1)
Description copied from interface: IRenderable
Gets the world transform matrix / matrices for this renderable object.

Specified by:
getWorldTransforms in interface IBillboardChain
Specified by:
getWorldTransforms in interface IRenderable

getLights

public ILightList getLights()
Description copied from interface: IRenderable
Gets a list of lights, ordered relative to how close they are to this renderable.

Specified by:
getLights in interface IBillboardChain
Specified by:
getLights in interface IRenderable

visitRenderables

public void visitRenderables(IRenderable.IVisitor visitor,
                             boolean debugRenderables)
Description copied from interface: IMovableObject
Method to allow a caller to abstractly iterate over the instances that this will add to the render queue when asked, if any.

Specified by:
visitRenderables in interface IBillboardChain
Specified by:
visitRenderables in interface IMovableObject

_notifyCreator

public void _notifyCreator(IMovableObjectFactory fact)
Notify the object of it's creator (internal use only)

Specified by:
_notifyCreator in interface IMovableObject

_getCreator

public IMovableObjectFactory _getCreator()
Get the creator of this object, if any (internal use only)

Specified by:
_getCreator in interface IMovableObject

_notifyManager

public void _notifyManager(ISceneManager man)
Notify the object of it's manager (internal use only)

Specified by:
_notifyManager in interface IMovableObject

_getManager

public ISceneManager _getManager()
Get the manager of this object, if any (internal use only)

Specified by:
_getManager in interface IMovableObject

getName

public java.lang.String getName()
Returns the name of this object.

Specified by:
getName in interface IMovableObject

getParentNode

public INode getParentNode()
Returns the node to which this object is attached.

Specified by:
getParentNode in interface IMovableObject

getParentSceneNode

public ISceneNode getParentSceneNode()
Returns the scene node to which this object is attached.

Specified by:
getParentSceneNode in interface IMovableObject

_notifyAttached

public void _notifyAttached(INode parent,
                            boolean isTagPoint)
Internal method called to notify the object that it has been attached to a node.

Specified by:
_notifyAttached in interface IMovableObject

isAttached

public boolean isAttached()
Returns true if this object is attached to a or .

Specified by:
isAttached in interface IMovableObject

detatchFromParent

public void detatchFromParent()
Detaches an object from a parent or , if attached.

Specified by:
detatchFromParent in interface IMovableObject

isInScene

public boolean isInScene()
Returns true if this object is attached to a or , and this / is currently in an active part of the scene graph.

Specified by:
isInScene in interface IMovableObject

_notifyMoved

public void _notifyMoved()
Internal method called to notify the object that it has been moved.

Specified by:
_notifyMoved in interface IMovableObject

getWorldBoundingBox

public IAxisAlignedBox getWorldBoundingBox(boolean derive)
Retrieves the axis-aligned bounding box for this object in world coordinates.

Specified by:
getWorldBoundingBox in interface IMovableObject
Specified by:
getWorldBoundingBox in interface IShadowCaster

getWorldBoundingSphere

public ISphere getWorldBoundingSphere(boolean derive)
Retrieves the worldspace bounding sphere for this object.

Specified by:
getWorldBoundingSphere in interface IMovableObject

setVisible

public void setVisible(boolean visible)
Tells this object whether to be visible or not, if it has a renderable component.

Specified by:
setVisible in interface IMovableObject

getVisible

public boolean getVisible()
Gets this object whether to be visible or not, if it has a renderable component.

Specified by:
getVisible in interface IMovableObject

isVisible

public boolean isVisible()
Returns whether or not this object is supposed to be visible or not.

Specified by:
isVisible in interface IMovableObject

setRenderingDistance

public void setRenderingDistance(float dist)
Sets the distance at which the object is no longer rendered.

Specified by:
setRenderingDistance in interface IMovableObject

getRenderingDistance

public float getRenderingDistance()
Gets the distance at which batches are no longer rendered.

Specified by:
getRenderingDistance in interface IMovableObject

setUserObject

public void setUserObject(IUserDefinedObject obj)
Call this to associate your own custom user object instance with this .

Specified by:
setUserObject in interface IMovableObject

getUserObject

public IUserDefinedObject getUserObject()
Retrieves a pointer to a custom application object associated with this movable by an earlier call to setUserObject.

Specified by:
getUserObject in interface IMovableObject

setUserAny

public void setUserAny(IAny anything)
Sets any kind of user value on this object.

Specified by:
setUserAny in interface IMovableObject
Specified by:
setUserAny in interface IRenderable

getUserAny

public IAny getUserAny()
Retrieves the custom user value associated with this object.

Specified by:
getUserAny in interface IMovableObject
Specified by:
getUserAny in interface IRenderable

setRenderQueueGroup

public void setRenderQueueGroup(short queueID)
Sets the render queue group this entity will be rendered through.

Specified by:
setRenderQueueGroup in interface IMovableObject

getRenderQueueGroup

public short getRenderQueueGroup()
Gets the queue group for this entity, see setRenderQueueGroup for full details.

Specified by:
getRenderQueueGroup in interface IMovableObject

_getParentNodeFullTransform

public IMatrix4 _getParentNodeFullTransform()
Specified by:
_getParentNodeFullTransform in interface IMovableObject

setQueryFlags

public void setQueryFlags(long flags)
Sets the query flags for this object.

Specified by:
setQueryFlags in interface IMovableObject

addQueryFlags

public void addQueryFlags(long flags)
As setQueryFlags, except the flags passed as parameters are appended to the existing flags on this object.

Specified by:
addQueryFlags in interface IMovableObject

removeQueryFlags

public void removeQueryFlags(long flags)
As setQueryFlags, except the flags passed as parameters are removed from the existing flags on this object.

Specified by:
removeQueryFlags in interface IMovableObject

getQueryFlags

public long getQueryFlags()
Specified by:
getQueryFlags in interface IMovableObject

setVisibilityFlags

public void setVisibilityFlags(long flags)
Sets the visiblity flags for this object.

Specified by:
setVisibilityFlags in interface IMovableObject

addVisibilityFlags

public void addVisibilityFlags(long flags)
As setVisibilityFlags, except the flags passed as parameters are appended to the existing flags on this object.

Specified by:
addVisibilityFlags in interface IMovableObject

removeVisibilityFlags

public void removeVisibilityFlags(long flags)
As setVisibilityFlags, except the flags passed as parameters are removed from the existing flags on this object.

Specified by:
removeVisibilityFlags in interface IMovableObject

getVisibilityFlags

public long getVisibilityFlags()
Specified by:
getVisibilityFlags in interface IMovableObject

setListener

public void setListener(IMovableObject.IListener listener)
Sets a listener for this object.

Specified by:
setListener in interface IMovableObject

getListener

public IMovableObject.IListener getListener()
Gets the current listener for this object.

Specified by:
getListener in interface IMovableObject

queryLights

public ILightList queryLights()
Gets a list of lights, ordered relative to how close they are to this movable object.

Specified by:
queryLights in interface IMovableObject

_getLightList

public ILightList _getLightList()
Returns a pointer to the current list of lights for this object.

Specified by:
_getLightList in interface IMovableObject

getEdgeList

public IEdgeData getEdgeList()
Description copied from interface: IShadowCaster
Returns details of the edges which might be used to determine a silhouette.

Specified by:
getEdgeList in interface IMovableObject
Specified by:
getEdgeList in interface IShadowCaster

hasEdgeList

public boolean hasEdgeList()
Description copied from interface: IShadowCaster
Returns whether the object has a valid edge list.

Specified by:
hasEdgeList in interface IMovableObject
Specified by:
hasEdgeList in interface IShadowCaster

getShadowVolumeRenderableIterator

public void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
                                              ShadowTechnique shadowTechnique,
                                              ILight light,
                                              IHardwareIndexBufferSharedPtr indexBuffer,
                                              boolean extrudeVertices,
                                              float extrusionDist,
                                              long flags)
Description copied from interface: IShadowCaster
Gets an iterator over the renderables required to render the shadow volume.

Specified by:
getShadowVolumeRenderableIterator in interface IMovableObject
Specified by:
getShadowVolumeRenderableIterator in interface IShadowCaster

getLightCapBounds

public IAxisAlignedBox getLightCapBounds()
Overridden member from .

Specified by:
getLightCapBounds in interface IMovableObject
Specified by:
getLightCapBounds in interface IShadowCaster

getDarkCapBounds

public IAxisAlignedBox getDarkCapBounds(ILight light,
                                        float dirLightExtrusionDist)
Overridden member from .

Specified by:
getDarkCapBounds in interface IMovableObject
Specified by:
getDarkCapBounds in interface IShadowCaster

setCastShadows

public void setCastShadows(boolean enabled)
Sets whether or not this object will cast shadows.

Specified by:
setCastShadows in interface IMovableObject

getCastShadows

public boolean getCastShadows()
Returns whether shadow casting is enabled for this object.

Specified by:
getCastShadows in interface IMovableObject
Specified by:
getCastShadows in interface IShadowCaster

getPointExtrusionDistance

public float getPointExtrusionDistance(ILight l)
Get the distance to extrude for a point/spot light

Specified by:
getPointExtrusionDistance in interface IMovableObject
Specified by:
getPointExtrusionDistance in interface IShadowCaster

getTypeFlags

public long getTypeFlags()
Get the 'type flags' for this .

Specified by:
getTypeFlags in interface IMovableObject

setDebugDisplayEnabled

public void setDebugDisplayEnabled(boolean enabled)
Sets whether or not the debug display of this object is enabled.

Specified by:
setDebugDisplayEnabled in interface IMovableObject

isDebugDisplayEnabled

public boolean isDebugDisplayEnabled()
Specified by:
isDebugDisplayEnabled in interface IMovableObject

setDefaultQueryFlags

public static void setDefaultQueryFlags(long flags)
Set the default query flags for all future instances.


getDefaultQueryFlags

public static long getDefaultQueryFlags()
Get the default query flags for all future instances.


setDefaultVisibilityFlags

public static void setDefaultVisibilityFlags(long flags)
Set the default visibility flags for all future instances.


getDefaultVisibilityFlags

public static long getDefaultVisibilityFlags()
Get the default visibility flags for all future instances.


extrudeVertices

public static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer,
                                   int originalVertexCount,
                                   IVector4 lightPos,
                                   float extrudeDist)
Utility method for extruding vertices based on a light.


getAnimableValueNames

public IStringVector getAnimableValueNames()
Gets a list of animable value names for this object.

Specified by:
getAnimableValueNames in interface IAnimableObject

createAnimableValue

public void createAnimableValue(IAnimableValuePtr returnValue,
                                java.lang.String valueName)
Create a reference-counted AnimableValuePtr for the named value.

Specified by:
createAnimableValue in interface IAnimableObject

getTechnique

public ITechnique getTechnique()
Retrieves a pointer to the this renderable object uses.

Specified by:
getTechnique in interface IRenderable

preRender

public boolean preRender(ISceneManager sm,
                         IRenderSystem rsys)
Called just prior to the being rendered.

Specified by:
preRender in interface IRenderable

postRender

public void postRender(ISceneManager sm,
                       IRenderSystem rsys)
Called immediately after the has been rendered.

Specified by:
postRender in interface IRenderable

getNumWorldTransforms

public int getNumWorldTransforms()
Returns the number of world transform matrices this renderable requires.

Specified by:
getNumWorldTransforms in interface IRenderable

setUseIdentityProjection

public void setUseIdentityProjection(boolean useIdentityProjection)
Sets whether or not to use an 'identity' projection.

Specified by:
setUseIdentityProjection in interface IRenderable

getUseIdentityProjection

public boolean getUseIdentityProjection()
Returns whether or not to use an 'identity' projection.

Specified by:
getUseIdentityProjection in interface IRenderable

setUseIdentityView

public void setUseIdentityView(boolean useIdentityView)
Sets whether or not to use an 'identity' view.

Specified by:
setUseIdentityView in interface IRenderable

getUseIdentityView

public boolean getUseIdentityView()
Returns whether or not to use an 'identity' view.

Specified by:
getUseIdentityView in interface IRenderable

getCastsShadows

public boolean getCastsShadows()
Method which reports whether this renderable would normally cast a shadow.

Specified by:
getCastsShadows in interface IRenderable

setCustomParameter

public 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.

Specified by:
setCustomParameter in interface IRenderable

getCustomParameter

public IVector4 getCustomParameter(int index)
Gets the custom value associated with this at the given index.

Specified by:
getCustomParameter in interface IRenderable

_updateCustomGpuParameter

public void _updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry,
                                      IGpuProgramParameters params)
Update a custom constant which is derived from information only this knows.

Specified by:
_updateCustomGpuParameter in interface IRenderable

setPolygonModeOverrideable

public void setPolygonModeOverrideable(boolean override)
Sets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.

Specified by:
setPolygonModeOverrideable in interface IRenderable

getPolygonModeOverrideable

public boolean getPolygonModeOverrideable()
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.

Specified by:
getPolygonModeOverrideable in interface IRenderable

getRenderSystemData

public IRenderable.IRenderSystemData getRenderSystemData()
Sets render system private data

Specified by:
getRenderSystemData in interface IRenderable

setRenderSystemData

public void setRenderSystemData(IRenderable.IRenderSystemData val)
gets render system private data

Specified by:
setRenderSystemData in interface IRenderable

objectDestroyed

public void objectDestroyed(IMovableObject a1)
is being destroyed

Specified by:
objectDestroyed in interface IMovableObject.IListener

objectAttached

public void objectAttached(IMovableObject a1)
has been attached to a node

Specified by:
objectAttached in interface IMovableObject.IListener

objectDetached

public void objectDetached(IMovableObject a1)
has been detached from a node

Specified by:
objectDetached in interface IMovableObject.IListener

objectMoved

public void objectMoved(IMovableObject a1)
has been moved

Specified by:
objectMoved in interface IMovableObject.IListener

objectRendering

public boolean objectRendering(IMovableObject a1,
                               ICamera a2)
Called when the movable object of the camera to be used for rendering.

Specified by:
objectRendering in interface IMovableObject.IListener

objectQueryLights

public ILightList objectQueryLights(IMovableObject a1)
Called when the movable object needs to query a light list.

Specified by:
objectQueryLights in interface IMovableObject.IListener


Copyright © 2007 netAllied GmbH. All Rights Reserved.