|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.pipeline.graphics.DefaultGraphicsPipeline
public class DefaultGraphicsPipeline
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.
Constructor Summary | |
---|---|
DefaultGraphicsPipeline()
Create an instance of the pipeline with nothing registered. |
|
DefaultGraphicsPipeline(GraphicsCullStage cs,
GraphicsSortStage ss)
Construct a pipeline with the sort and cull stages provided. |
Method Summary | |
---|---|
boolean |
displayOnly()
Cause the surface to redraw the next frame only, with no processing of the pipeline. |
GraphicsOutputDevice |
getGraphicsOutputDevice()
Get the currently registered drawable surface instance. |
void |
halt()
Force a halt of the current processing. |
boolean |
render()
Start the pipeline functioning now. |
void |
setCuller(GraphicsCullStage cs)
Set the cull instance to be used. |
void |
setErrorReporter(org.j3d.util.ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the node's internals can be reported in a nice, pretty fashion. |
void |
setEyePointOffset(float x,
float y,
float z)
Set the eyepoint offset from the centre position. |
void |
setGraphicsOutputDevice(GraphicsOutputDevice device)
Register a drawing surface that this pipeline will send its output to. |
void |
setRenderableLayers(LayerCullable[] layers,
int numLayers)
Set the set of layers to be used by this pipeline. |
void |
setRequestData(RenderableRequestData data)
Set the request data that should be passed along with the next frame. |
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(GraphicsSortStage 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 DefaultGraphicsPipeline()
public DefaultGraphicsPipeline(GraphicsCullStage cs, GraphicsSortStage ss)
ss
- The sort stage instance to usecs
- The cull stage instance to useMethod Detail |
---|
public void setGraphicsOutputDevice(GraphicsOutputDevice device)
setGraphicsOutputDevice
in interface GraphicsRenderPipeline
device
- The device instance to use or replacepublic GraphicsOutputDevice getGraphicsOutputDevice()
getGraphicsOutputDevice
in interface GraphicsRenderPipeline
public void setEyePointOffset(float x, float y, float z)
setEyePointOffset
in interface GraphicsRenderPipeline
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 GraphicsRenderPipeline
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 setErrorReporter(org.j3d.util.ErrorReporter reporter)
setErrorReporter
in interface RenderPipeline
reporter
- The instance to use or nullpublic void setRequestData(RenderableRequestData data)
This class expects the data to be Graphics-oriented.
setRequestData
in interface RenderPipeline
data
- The data instance to pass this next framepublic boolean render()
The return value indicates success or failure in the ability to render this frame. Typically it will indicate failure if the underlying surface has been disposed of, either directly through the calling of the method on this interface, or through an internal check mechanism. If failure is indicated, then check to see if the surface has been disposed of and discontinue rendering if it has.
render
in interface RenderPipeline
public boolean displayOnly()
The return value indicates success or failure in the ability to render this frame. Typically it will indicate failure if the underlying surface has been disposed of, either directly through the calling of the method on this interface, or through an internal check mechanism. If failure is indicated, then check to see if the surface has been disposed of and discontinue rendering if it has.
displayOnly
in interface RenderPipeline
public void swapBuffers()
swapBuffers
in interface GraphicsRenderPipeline
public void setRenderableLayers(LayerCullable[] 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 halt()
halt
in interface RenderPipeline
public void setSorter(GraphicsSortStage ss)
ss
- The sorter instance to use or nullpublic void setCuller(GraphicsCullStage cs)
cs
- The cull instance to use or null
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |