|
Aviatrix3D 1.0 | ||||||||||
| 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 |
halt()
Force a halt of the current processing. |
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 use| Method Detail |
public void setDrawableSurface(DrawableSurface surface)
setDrawableSurface in interface RenderPipelinesurface - The surface instance to use or replacepublic DrawableSurface getDrawableSurface()
getDrawableSurface in interface RenderPipelinepublic void render()
render in interface RenderPipelinepublic void displayOnly()
displayOnly in interface RenderPipelinepublic void swapBuffers()
swapBuffers in interface RenderPipelinepublic void setRenderableScene(Scene scene)
setRenderableScene in interface RenderPipelinescene - The scene to be rendered
public 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 RenderPipelinelayers - The collection of layers, in order, to rendernumLayers - The number of valid layers to use
public void setEyePointOffset(float x,
float y,
float z)
setEyePointOffset in interface RenderPipelinex - The x axis offsety - The y axis offsetz - The z axis offset
public void setScreenOrientation(float x,
float y,
float z,
float a)
throws java.lang.IllegalArgumentException
setScreenOrientation in interface RenderPipelinex - 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 halt()
halt in interface RenderPipelinepublic void setSorter(SortStage ss)
ss - The sorter instance to use or nullpublic void setCuller(CullStage cs)
cs - The cull instance to use or null
|
Aviatrix3D 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||