|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.aviatrix3d.management.DisplayCollection
org.j3d.aviatrix3d.management.SingleDisplayCollection
public class SingleDisplayCollection
Display collection that manages just a single set of audio + graphics pipeline and a single output surface.
| Field Summary |
|---|
| Fields inherited from class org.j3d.aviatrix3d.management.DisplayCollection |
|---|
ACTIVE_RENDERING_MSG, deletionList, enabled, errorReporter, LAYER_SET_SIZE_ERR, LAYER_TIMING_MSG, numDeletables, numShaderInit, numShaderLog, shaderInitList, shaderLogList, terminate, writeEnabled |
| Constructor Summary | |
|---|---|
SingleDisplayCollection()
Create a new instance of this collection with no pipelines preset. |
|
SingleDisplayCollection(GraphicsRenderPipeline graphicsPipe)
Constructs a new collection for a single channel |
|
SingleDisplayCollection(GraphicsRenderPipeline graphicsPipe,
AudioRenderPipeline audioPipe)
Constructs a new collection for a single channel based on the give audio and graphics pipelines. |
|
| Method Summary | |
|---|---|
void |
addPipeline(RenderPipeline pipe)
Add a pipeline to be rendered to the manager. |
boolean |
displayOnly()
Cause the surface to redraw the next frame only, with no processing of the pipeline. |
void |
getLayers(Layer[] layers)
Fetch the current layers that are set. |
void |
halt()
Force a halt of the current processing. |
boolean |
isDisposed()
Check to see if this pipeline is now inoperable. |
boolean |
isEnabled()
Get the current render state of the manager. |
int |
numLayers()
Get the number of layers that are currently set. |
boolean |
process()
Force a single render of all pipelines now contained in this collection now. |
void |
removePipeline(RenderPipeline pipe)
Remove an already registered pipeline from the manager. |
void |
setEnabled(boolean state)
Tell render to start or stop management. |
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 |
setLayers(Layer[] layers,
int numLayers)
Set the set of layers for this manager. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the update handler that controls synchronisations of write/read process to the scene graph. |
void |
shutdown()
Notification to shutdown the internals of the renderer because the application is about to exit. |
| Methods inherited from class org.j3d.aviatrix3d.management.DisplayCollection |
|---|
enableLayerChange, queueDeletedObjects, queueShaderObjects |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleDisplayCollection()
public SingleDisplayCollection(GraphicsRenderPipeline graphicsPipe)
graphicsPipe - The graphics pipeline instance to be used
public SingleDisplayCollection(GraphicsRenderPipeline graphicsPipe,
AudioRenderPipeline audioPipe)
graphicsPipe - The graphics pipeline instance to be used| Method Detail |
|---|
public void setErrorReporter(org.j3d.util.ErrorReporter reporter)
setErrorReporter in class DisplayCollectionreporter - The instance to use or nullpublic void setEnabled(boolean state)
setEnabled in class DisplayCollectionstate - True if to enable managementpublic boolean isEnabled()
isEnabled in class DisplayCollectionpublic boolean process()
In general, it is inadvisable that method be called by end users as it is normally managed by the RenderManager. 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.
process in class DisplayCollectionpublic 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 class DisplayCollectionpublic void halt()
halt in class DisplayCollection
public void setLayers(Layer[] layers,
int numLayers)
throws java.lang.IllegalArgumentException,
InvalidWriteTimingException
null will remove the currently set of layers. If this is
set while a current scene is set, then the scene will be cleared. Layers
are presented in depth order - layers[0] is rendered before layers[1]
etc.
If this render manager is currently running, this method can only be called during the main update
setLayers in class DisplayCollectionlayers - The collection of layers, in order, to rendernumLayers - The number of valid layers to use
java.lang.IllegalArgumentException - The length of the layers array is less
than numLayers
InvalidWriteTimingException - The method was called with the
system enabled and not during the app observer callbackpublic int numLayers()
numLayers in class DisplayCollectionpublic void getLayers(Layer[] layers)
numLayers() in length. If not, this method does nothing (the
provided array will be unchanged).
getLayers in class DisplayCollectionlayers - An array to copy the values into
public void addPipeline(RenderPipeline pipe)
throws java.lang.IllegalStateException
addPipeline in class DisplayCollectionpipe - The new pipe instance to be added
java.lang.IllegalStateException - The system is currently management and
should be disabled first.
public void removePipeline(RenderPipeline pipe)
throws java.lang.IllegalStateException
removePipeline in class DisplayCollectionpipe - The pipe instance to be removed
java.lang.IllegalStateException - The system is currently management and
should be disabled first.protected void setUpdateHandler(NodeUpdateHandler handler)
setUpdateHandler in class DisplayCollectionhandler - The new handler instance to usepublic void shutdown()
RenderManager and should not need to be called by
end users.
shutdown in class DisplayCollectionpublic boolean isDisposed()
isDisposed in class DisplayCollection
|
Aviatrix3D 2.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||