|
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.DefaultRenderPipeline
The default implementation of the rendering pipeline usable by most applications.
This implementation is targeted towards single threaded architectures. After setting the stages, the render command will not return until everything is complete.
Note:
Layers are not implemented yet.
Constructor Summary | |
DefaultRenderPipeline()
Create an instance of the pipeline with nothing registered. |
|
DefaultRenderPipeline(CullStage cs,
SortStage ss)
Construct a pipeline with the sort and cull stages provided. |
Method Summary | |
void |
displayOnly()
Cause the surface to redraw the next frame only, with no processing of the pipeline. |
DrawableSurface |
getDrawableSurface()
Get the currently registered drawable surface instance. |
void |
render()
Start the pipeline functioning now. |
void |
setCuller(CullStage cs)
Set the cull instance to be used. |
void |
setDrawableSurface(DrawableSurface surface)
Register a drawing surface that this pipeline will send its output to. |
void |
setEyePointOffset(float x,
float y,
float z)
Set the eyepoint offset from the centre position. |
void |
setRenderableLayers(Layer[] layers,
int numLayers)
Set the set of layers to be used by this pipeline. |
void |
setRenderableScene(Scene scene)
Set the root of the scene graph to be used by this pipeline. |
void |
setScreenOrientation(float x,
float y,
float z,
float a)
Set the orientation of this screen relative to the user's normal view direction. |
void |
setSorter(SortStage ss)
Set the sorter instance to be used. |
void |
swapBuffers()
Instruct the drawable at the end of this pipeline to swap the buffers now. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultRenderPipeline()
public DefaultRenderPipeline(CullStage cs, SortStage ss)
ss
- The sort stage instance to usecs
- The cull stage instance to useMethod Detail |
public void setDrawableSurface(DrawableSurface surface)
setDrawableSurface
in interface RenderPipeline
surface
- The surface instance to use or replacepublic DrawableSurface getDrawableSurface()
getDrawableSurface
in interface RenderPipeline
public void render()
render
in interface RenderPipeline
public void displayOnly()
displayOnly
in interface RenderPipeline
public void swapBuffers()
swapBuffers
in interface RenderPipeline
public void setRenderableScene(Scene scene)
setRenderableScene
in interface RenderPipeline
scene
- The scene to be renderedpublic void setRenderableLayers(Layer[] layers, int numLayers)
If a scene is currently set, and a non-zero number of layers is provided, this will remove the scene and use the layers instead.
setRenderableLayers
in interface RenderPipeline
layers
- The collection of layers, in order, to rendernumLayers
- The number of valid layers to usepublic void setEyePointOffset(float x, float y, float z)
setEyePointOffset
in interface RenderPipeline
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 RenderPipeline
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 zeropublic void setSorter(SortStage ss)
ss
- The sorter instance to use or nullpublic void setCuller(CullStage cs)
cs
- The cull instance to use or null
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |