org.ogre4j
Interface IShadowCaster

All Superinterfaces:
INativeObject
All Known Subinterfaces:
IBillboardChain, IBillboardSet, ICamera, IEntity, IFrustum, IInstancedGeometry.IBatchInstance, IInstancedGeometry.IGeometryBucket, ILight, IManualObject, IMovableObject, IMovablePlane, IParticleSystem, IRectangle2D, IRibbonTrail, ISimpleRenderable, IStaticGeometry.IRegion, IWireBoundingBox
All Known Implementing Classes:
BillboardChain, BillboardSet, Camera, Entity, Frustum, InstancedGeometry.BatchInstance, InstancedGeometry.GeometryBucket, Light, ManualObject, MovableObject, MovablePlane, ParticleSystem, Rectangle2D, RibbonTrail, ShadowCaster, SimpleRenderable, StaticGeometry.Region, WireBoundingBox

public interface IShadowCaster
extends INativeObject


Nested Class Summary
static interface IShadowCaster.IShadowRenderableList
           
static interface IShadowCaster.IShadowRenderableListIterator
           
 
Method Summary
 boolean getCastShadows()
          Returns whether or not this object currently casts a shadow.
 IAxisAlignedBox getDarkCapBounds(ILight light, float dirLightExtrusionDist)
          Gets the world space bounding box of the dark cap, as extruded using the light provided
 IEdgeData getEdgeList()
          Returns details of the edges which might be used to determine a silhouette.
 IAxisAlignedBox getLightCapBounds()
          Gets the world space bounding box of the light cap
 float getPointExtrusionDistance(ILight l)
          Get the distance to extrude for a point/spot light
 void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue, ShadowTechnique shadowTechnique, ILight light, IHardwareIndexBufferSharedPtr indexBuffer, boolean extrudeVertices, float extrusionDistance, long flags)
          Gets an iterator over the renderables required to render the shadow volume.
 IAxisAlignedBox getWorldBoundingBox(boolean derive)
          Get the world bounding box of the caster.
 boolean hasEdgeList()
          Returns whether the object has a valid edge list.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

getCastShadows

boolean getCastShadows()
Returns whether or not this object currently casts a shadow.


getEdgeList

IEdgeData getEdgeList()
Returns details of the edges which might be used to determine a silhouette.


hasEdgeList

boolean hasEdgeList()
Returns whether the object has a valid edge list.


getWorldBoundingBox

IAxisAlignedBox getWorldBoundingBox(boolean derive)
Get the world bounding box of the caster.


getLightCapBounds

IAxisAlignedBox getLightCapBounds()
Gets the world space bounding box of the light cap


getDarkCapBounds

IAxisAlignedBox getDarkCapBounds(ILight light,
                                 float dirLightExtrusionDist)
Gets the world space bounding box of the dark cap, as extruded using the light provided


getShadowVolumeRenderableIterator

void getShadowVolumeRenderableIterator(IShadowCaster.IShadowRenderableListIterator returnValue,
                                       ShadowTechnique shadowTechnique,
                                       ILight light,
                                       IHardwareIndexBufferSharedPtr indexBuffer,
                                       boolean extrudeVertices,
                                       float extrusionDistance,
                                       long flags)
Gets an iterator over the renderables required to render the shadow volume.


getPointExtrusionDistance

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



Copyright © 2007 netAllied GmbH. All Rights Reserved.