|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.SimpleRenderable
public class SimpleRenderable
| Nested Class Summary |
|---|
| 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 | |
|---|---|
|
SimpleRenderable(InstancePointer p)
This constructor is public for internal useage only! |
protected |
SimpleRenderable(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
SimpleRenderable(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 |
_updateCustomGpuParameter(IGpuProgramParameters.IAutoConstantEntry constantEntry,
IGpuProgramParameters params)
Update a custom constant which is derived from information only this knows. |
void |
_updateRenderQueue(IRenderQueue queue)
Internal method by which the movable object must add subclass instances to the rendering queue. |
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 |
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. |
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. |
IEdgeData |
getEdgeList()
Returns details of the edges which might be used to determine a silhouette. |
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 |
getMovableType()
Overridden from |
java.lang.String |
getName()
Returns the name of this object. |
int |
getNumWorldTransforms()
Returns the number of world transform matrices this renderable requires. |
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 op)
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. |
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. |
long |
getVisibilityFlags()
|
boolean |
getVisible()
Gets this object whether to be visible or not, if it has a renderable component. |
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 xform)
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 |
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 |
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 |
setBoundingBox(IAxisAlignedBox box)
|
void |
setCastShadows(boolean enabled)
Sets whether or not this object will cast shadows. |
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 |
setListener(IMovableObject.IListener listener)
Sets a listener for this object. |
void |
setMaterial(java.lang.String matName)
|
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 |
setRenderOperation(IRenderOperation rend)
|
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 |
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 |
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 |
setWorldTransform(IMatrix4 xform)
|
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 |
|---|
public SimpleRenderable(InstancePointer p)
protected SimpleRenderable(InstancePointer p,
boolean remote)
public SimpleRenderable(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()| 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 NativeObjectpublic void setMaterial(java.lang.String matName)
setMaterial in interface ISimpleRenderablepublic IMaterialPtr getMaterial()
IRenderable
getMaterial in interface IRenderablegetMaterial in interface ISimpleRenderablepublic void setRenderOperation(IRenderOperation rend)
setRenderOperation in interface ISimpleRenderablepublic void getRenderOperation(IRenderOperation op)
IRenderable
getRenderOperation in interface IRenderablegetRenderOperation in interface ISimpleRenderablepublic void setWorldTransform(IMatrix4 xform)
setWorldTransform in interface ISimpleRenderablepublic void getWorldTransforms(IMatrix4 xform)
IRenderable
getWorldTransforms in interface IRenderablegetWorldTransforms in interface ISimpleRenderablepublic void _notifyCurrentCamera(ICamera cam)
IMovableObject
_notifyCurrentCamera in interface IMovableObject_notifyCurrentCamera in interface ISimpleRenderablepublic void setBoundingBox(IAxisAlignedBox box)
setBoundingBox in interface ISimpleRenderablepublic IAxisAlignedBox getBoundingBox()
IMovableObject
getBoundingBox in interface IMovableObjectgetBoundingBox in interface ISimpleRenderablepublic void _updateRenderQueue(IRenderQueue queue)
IMovableObject
_updateRenderQueue in interface IMovableObject_updateRenderQueue in interface ISimpleRenderable
public void visitRenderables(IRenderable.IVisitor visitor,
boolean debugRenderables)
IMovableObject
visitRenderables in interface IMovableObjectvisitRenderables in interface ISimpleRenderablepublic java.lang.String getMovableType()
getMovableType in interface IMovableObjectgetMovableType in interface ISimpleRenderablepublic ILightList getLights()
IRenderable
getLights in interface IRenderablegetLights in interface ISimpleRenderablepublic void _notifyCreator(IMovableObjectFactory fact)
_notifyCreator in interface IMovableObjectpublic IMovableObjectFactory _getCreator()
_getCreator in interface IMovableObjectpublic void _notifyManager(ISceneManager man)
_notifyManager in interface IMovableObjectpublic ISceneManager _getManager()
_getManager in interface IMovableObjectpublic java.lang.String getName()
getName in interface IMovableObjectpublic INode getParentNode()
getParentNode in interface IMovableObjectpublic ISceneNode getParentSceneNode()
getParentSceneNode in interface IMovableObject
public void _notifyAttached(INode parent,
boolean isTagPoint)
_notifyAttached in interface IMovableObjectpublic boolean isAttached()
isAttached in interface IMovableObjectpublic void detatchFromParent()
detatchFromParent in interface IMovableObjectpublic boolean isInScene()
isInScene in interface IMovableObjectpublic void _notifyMoved()
_notifyMoved in interface IMovableObjectpublic float getBoundingRadius()
getBoundingRadius in interface IMovableObjectpublic IAxisAlignedBox getWorldBoundingBox(boolean derive)
getWorldBoundingBox in interface IMovableObjectgetWorldBoundingBox in interface IShadowCasterpublic ISphere getWorldBoundingSphere(boolean derive)
getWorldBoundingSphere in interface IMovableObjectpublic void setVisible(boolean visible)
setVisible in interface IMovableObjectpublic boolean getVisible()
getVisible in interface IMovableObjectpublic boolean isVisible()
isVisible in interface IMovableObjectpublic void setRenderingDistance(float dist)
setRenderingDistance in interface IMovableObjectpublic float getRenderingDistance()
getRenderingDistance in interface IMovableObjectpublic void setUserObject(IUserDefinedObject obj)
setUserObject in interface IMovableObjectpublic IUserDefinedObject getUserObject()
getUserObject in interface IMovableObjectpublic void setUserAny(IAny anything)
setUserAny in interface IMovableObjectsetUserAny in interface IRenderablepublic IAny getUserAny()
getUserAny in interface IMovableObjectgetUserAny in interface IRenderablepublic void setRenderQueueGroup(short queueID)
setRenderQueueGroup in interface IMovableObjectpublic short getRenderQueueGroup()
getRenderQueueGroup in interface IMovableObjectpublic IMatrix4 _getParentNodeFullTransform()
_getParentNodeFullTransform in interface IMovableObjectpublic void setQueryFlags(long flags)
setQueryFlags in interface IMovableObjectpublic void addQueryFlags(long flags)
addQueryFlags in interface IMovableObjectpublic void removeQueryFlags(long flags)
removeQueryFlags in interface IMovableObjectpublic long getQueryFlags()
getQueryFlags in interface IMovableObjectpublic void setVisibilityFlags(long flags)
setVisibilityFlags in interface IMovableObjectpublic void addVisibilityFlags(long flags)
addVisibilityFlags in interface IMovableObjectpublic void removeVisibilityFlags(long flags)
removeVisibilityFlags in interface IMovableObjectpublic long getVisibilityFlags()
getVisibilityFlags in interface IMovableObjectpublic void setListener(IMovableObject.IListener listener)
setListener in interface IMovableObjectpublic IMovableObject.IListener getListener()
getListener in interface IMovableObjectpublic ILightList queryLights()
queryLights in interface IMovableObjectpublic ILightList _getLightList()
_getLightList in interface IMovableObjectpublic IEdgeData getEdgeList()
IShadowCaster
getEdgeList in interface IMovableObjectgetEdgeList in interface IShadowCasterpublic boolean hasEdgeList()
IShadowCaster
hasEdgeList in interface IMovableObjecthasEdgeList in interface IShadowCaster
public void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
ShadowTechnique shadowTechnique,
ILight light,
IHardwareIndexBufferSharedPtr indexBuffer,
boolean extrudeVertices,
float extrusionDist,
long flags)
IShadowCaster
getShadowVolumeRenderableIterator in interface IMovableObjectgetShadowVolumeRenderableIterator in interface IShadowCasterpublic IAxisAlignedBox getLightCapBounds()
getLightCapBounds in interface IMovableObjectgetLightCapBounds in interface IShadowCaster
public IAxisAlignedBox getDarkCapBounds(ILight light,
float dirLightExtrusionDist)
getDarkCapBounds in interface IMovableObjectgetDarkCapBounds in interface IShadowCasterpublic void setCastShadows(boolean enabled)
setCastShadows in interface IMovableObjectpublic boolean getCastShadows()
getCastShadows in interface IMovableObjectgetCastShadows in interface IShadowCasterpublic float getPointExtrusionDistance(ILight l)
getPointExtrusionDistance in interface IMovableObjectgetPointExtrusionDistance in interface IShadowCasterpublic long getTypeFlags()
getTypeFlags in interface IMovableObjectpublic void setDebugDisplayEnabled(boolean enabled)
setDebugDisplayEnabled in interface IMovableObjectpublic boolean isDebugDisplayEnabled()
isDebugDisplayEnabled in interface IMovableObjectpublic static void setDefaultQueryFlags(long flags)
public static long getDefaultQueryFlags()
public static void setDefaultVisibilityFlags(long flags)
public static long getDefaultVisibilityFlags()
public static void extrudeVertices(IHardwareVertexBufferSharedPtr vertexBuffer,
int originalVertexCount,
IVector4 lightPos,
float extrudeDist)
public IStringVector getAnimableValueNames()
getAnimableValueNames in interface IAnimableObject
public void createAnimableValue(IAnimableValuePtr returnValue,
java.lang.String valueName)
createAnimableValue in interface IAnimableObjectpublic 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 float getSquaredViewDepth(ICamera cam)
getSquaredViewDepth 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 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 | |||||||||