|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.pipeline.GenericCullStage
A cull stange that does not cull anything except those parts requested by
the Cullable
interface.
By default, the implementation will walk into shape3Ds looking for any offscreen textures to be rendered. If you know that you do not have any in the scene, then you can set an internal flag to not look for them, thus achieving a simple performance boost.
Note:
Layers are not implemented yet.
Constructor Summary | |
GenericCullStage()
Create a basic instance of this class with the list assuming there are no off-screen buffers in use for the initial internal setup. |
|
GenericCullStage(int numSurfaces)
Create a basic instance of this class with the list initial internal setup for the given number of renderable surfaces. |
Method Summary | |
void |
cull(Layer[] layers,
int numLayers,
int buffer)
Update and cull the scenegraph defined by a set of layers. |
void |
cull(Scene scene,
int buffer)
Update and cull the scenegraph. |
boolean |
isOffscreenCheckEnabled()
Find out what the current offscreen check state is. |
void |
setCulledGeometryReceiver(CulledGeometryReceiver sgr)
Register a reciever for the output of the sorter. |
void |
setEyePointOffset(float x,
float y,
float z)
Set the eyepoint offset from the centre position. |
void |
setOffscreenCheckEnabled(boolean state)
Set the flag for whether to check for offscreen textures or not. |
void |
setScreenOrientation(float x,
float y,
float z,
float a)
Set the orientation of this screen relative to the user's normal view direction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenericCullStage()
public GenericCullStage(int numSurfaces)
numSurfaces
- Total number of surfaces to prepare rendering forMethod Detail |
public void cull(Scene scene, int buffer)
cull
in interface CullStage
scene
- The scene instance to cullbuffer
- The buffer ID to use to output the data to when
multi-threadedpublic void cull(Layer[] layers, int numLayers, int buffer)
cull
in interface CullStage
layers
- The collection of layers, in order, to rendernumLayers
- The number of valid layers to usebuffer
- The buffer ID to use to output the data to when
multi-threadedpublic void setCulledGeometryReceiver(CulledGeometryReceiver sgr)
setCulledGeometryReceiver
in interface CullStage
sgr
- The receiver instance to add or nullpublic void setOffscreenCheckEnabled(boolean state)
setOffscreenCheckEnabled
in interface CullStage
state
- true if offscreen textures should be looked forpublic boolean isOffscreenCheckEnabled()
isOffscreenCheckEnabled
in interface CullStage
public void setEyePointOffset(float x, float y, float z)
setEyePointOffset
in interface CullStage
x
- The x axis offsety
- The y axis offsetz
- The z axis offsetpublic void setScreenOrientation(float x, float y, float z, float a) throws java.lang.IllegalArgumentException
setScreenOrientation
in interface CullStage
x
- The x axis componenty
- The y axis componentz
- The z axis componenta
- The angle to rotate around the axis in radians
java.lang.IllegalArgumentException
- The length of the axis is zero
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |