|
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.MultiThreadRenderManager
Implementation of the RenderPipelineManager that uses separate threads for each of the pipelines that it is managing, allowing it to run multiple output surfaces simultaneously (eg Powerwall, CAVE etc).
By default the manager does not start of enabled. An explicit enable call will be needed to kick the rendering process off.
Constructor Summary | |
MultiThreadRenderManager()
Construct a new render manager with no pipelines or renderers registered. |
|
MultiThreadRenderManager(int numPipes)
Construct a new render manager with no pipelines or renderers registered, but with internal arrays setup for the given number of pipelines to be added. |
Method Summary | |
void |
addPipeline(RenderPipeline pipe)
Add a pipeline to be rendered to the manager. |
boolean |
boundsChanged(NodeUpdateListener l,
java.lang.Object src,
InternalNodeUpdateListener intL)
Notify the handler that you have updates to the SG that might alter a node's bounds. |
void |
dataChanged(NodeUpdateListener l,
java.lang.Object src)
Notify the handler that you have updates to the SG that will not alter a node's bounds. |
void |
frameFinished()
Notification that the frame state has finished rendering. |
PickingHandler |
getPickHandler()
Get the picking handler so that we can do some picking operations. |
boolean |
isBoundsWritePermitted(java.lang.Object src)
Check to see if writing to the node is permitted currently. |
boolean |
isDataWritePermitted(java.lang.Object src)
Check to see if writing to the node is permitted currently. |
boolean |
isEnabled()
Get the current render state of the manager. |
boolean |
isPickingPermitted()
Check to see if picking is permitted currently. |
void |
objectRemoved(DeletableSceneGraphObject obj)
The object provided is no longer needed by its parent. |
void |
removePipeline(RenderPipeline pipe)
Remove an already registered pipeline from the manager. |
void |
renderOnce()
Force a single render of all pipelines now. |
void |
run()
Run method used to synchronise the internal rendering state and the external state of the canvas. |
void |
setApplicationObserver(ApplicationUpdateObserver obs)
Register an observer that can be used to know when the application is safe to update the scene graph. |
void |
setEnabled(boolean state)
Tell render to start or stop rendering. |
void |
setMinimumFrameInterval(int cycleTime)
Set the minimum duty cycle of the render manager. |
void |
setScene(Scene scene)
Set the scene for this manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiThreadRenderManager()
public MultiThreadRenderManager(int numPipes)
numPipes
- The initial number of pipelines to prepareMethod Detail |
public void setEnabled(boolean state)
setEnabled
in interface RenderPipelineManager
state
- True if to enable renderingpublic boolean isEnabled()
isEnabled
in interface RenderPipelineManager
public void renderOnce() throws java.lang.IllegalStateException
renderOnce
in interface RenderPipelineManager
java.lang.IllegalStateException
- The system is currently rendering and
should be disabled first.public void setMinimumFrameInterval(int cycleTime)
setMinimumFrameInterval
in interface RenderPipelineManager
cycleTime
- The minimum time in milliseconds between framespublic void addPipeline(RenderPipeline pipe) throws java.lang.IllegalStateException
addPipeline
in interface RenderPipelineManager
pipe
- The new pipe instance to be added
java.lang.IllegalStateException
- The system is currently rendering and
should be disabled first.public void removePipeline(RenderPipeline pipe) throws java.lang.IllegalStateException
removePipeline
in interface RenderPipelineManager
pipe
- The pipe instance to be removed
java.lang.IllegalStateException
- The system is currently rendering and
should be disabled first.public void setApplicationObserver(ApplicationUpdateObserver obs)
setApplicationObserver
in interface RenderPipelineManager
obs
- The observer instance to usepublic void setScene(Scene scene)
setScene
in interface RenderPipelineManager
scene
- The new scenepublic void run()
run
in interface java.lang.Runnable
public void frameFinished()
frameFinished
in interface org.j3d.aviatrix3d.pipeline.PipelineStateObserver
public boolean isDataWritePermitted(java.lang.Object src)
isDataWritePermitted
in interface NodeUpdateHandler
src
- The object that is requesting the check
public boolean isBoundsWritePermitted(java.lang.Object src)
isBoundsWritePermitted
in interface NodeUpdateHandler
src
- The object that is requesting the check
public boolean isPickingPermitted()
isPickingPermitted
in interface NodeUpdateHandler
public boolean boundsChanged(NodeUpdateListener l, java.lang.Object src, InternalNodeUpdateListener intL)
boundsChanged
in interface NodeUpdateHandler
l
- The change requestorsrc
- The object that is passing this listener through.intL
- Internal listener for making callbacks at a later time
to propogate the bounds changes.
public void dataChanged(NodeUpdateListener l, java.lang.Object src)
dataChanged
in interface NodeUpdateHandler
l
- The change requestorsrc
- The object that is passing this listener through.public void objectRemoved(DeletableSceneGraphObject obj)
objectRemoved
in interface NodeUpdateHandler
obj
- The object that is registering itself for deletionpublic PickingHandler getPickHandler()
getPickHandler
in interface NodeUpdateHandler
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |