|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.Scene
org.j3d.aviatrix3d.MultipassScene
Representation of the top level structure of a piece of scene graph that permits multipass rendering to be performed.
A multipass scene consists of a set of consecutive rendering passes over a single set of buffers. Buffers may or may not be cleared on each pass, depending on the buffer state attributes that are set. The end result is a single image that forms the content of a layer.
A multipass scene has a single background node that is rendered at the start of the first pass and not applied to any other passes. Fog and viewpoints are applied on a per-pass basis.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
MultipassScene()
Create a default instance of this scene with no content provided. |
Method Summary | |
void |
addRenderPass(RenderPass pass)
Add a new pass to the end of the current rendering list. |
Background |
getActiveBackground()
Get the currently set active view. |
RenderPass |
getRenderPass(int passNumber)
Get the render pass at the given pass number. |
void |
getRenderPasses(RenderPass[] passes)
Get all the render passes currently registered. |
int |
numRenderPasses()
Request the number of rendering passes currently registered with this scene. |
void |
removeRenderPass(int passNumber)
Remove the render pass at the given index. |
void |
setActiveBackground(Background bg)
Set the background path that should be applied to the current surface. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
void |
setRenderPass(int passNumber,
RenderPass pass)
Replace the render pass at the given index with a different pass representation. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the scenegraph update handler for this node. |
Methods inherited from class org.j3d.aviatrix3d.Scene |
getRenderEffectsProcessor, getViewEnvironment, setRenderEffectsProcessor |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, checkForCyclicParent, dataChanged, getUserData, isLive, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultipassScene()
Method Detail |
protected void setLive(boolean state)
setLive
in class Scene
state
- true if this should be marked as live nowprotected void setUpdateHandler(NodeUpdateHandler handler)
setUpdateHandler
in class Scene
handler
- The instance to use as a handlerpublic void addRenderPass(RenderPass pass) throws InvalidWriteTimingException, java.lang.IllegalArgumentException
pass
- The rendering pass description to use
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback method
java.lang.IllegalArgumentException
- The object passed was nullpublic void setRenderPass(int passNumber, RenderPass pass) throws InvalidWriteTimingException, java.lang.IllegalArgumentException
passNumber
- The index of the pass to return, zero basedpass
- The rendering pass description to use
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback method
java.lang.IllegalArgumentException
- The index is out of range or the pass
object was nullpublic void removeRenderPass(int passNumber) throws InvalidWriteTimingException, java.lang.IllegalArgumentException
passNumber
- The index of the pass to return, zero based
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback method
java.lang.IllegalArgumentException
- The index is out of rangepublic RenderPass getRenderPass(int passNumber) throws java.lang.IllegalArgumentException
passNumber
- The index of the pass to return, zero based
java.lang.IllegalArgumentException
- The index is out of rangepublic void getRenderPasses(RenderPass[] passes) throws java.lang.IllegalArgumentException
passes
- An array to copy everything into
java.lang.IllegalArgumentException
- The index is out of rangepublic int numRenderPasses()
public void setActiveBackground(Background bg) throws InvalidWriteTimingException, java.lang.IllegalArgumentException
bg
- The instance of the active background
java.lang.IllegalArgumentException
- The path contains a SharedGroup or
the node is not live
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic Background getActiveBackground()
|
Aviatrix3D 2.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |