|
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.SceneGraphObject
org.j3d.aviatrix3d.Scene
org.j3d.aviatrix3d.MultipassScene
public class 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.
Internationalisation Resource Names
| Field Summary |
|---|
| Fields inherited from class org.j3d.aviatrix3d.Scene |
|---|
processor, viewEnvironment |
| Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
|---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
| 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. |
RenderPassCullable |
getCullablePass(int passIndex)
Get the cullable layer child that for the given layer index. |
RenderPass |
getRenderPass(int passNumber)
Get the render pass at the given pass number. |
void |
getRenderPasses(RenderPass[] passes)
Get all the render passes currently registered. |
ViewEnvironmentCullable |
getViewCullable()
Get the primary view environment information. |
boolean |
isMultipassScene()
Check to see if this is a multipass cullable or single pass. |
int |
numCullableChildren()
Returns the number of valid cullable rendering passes to process. |
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, getAppUpdateWriteTimingMessage, getBoundsWriteTimingMessage, getDataWriteTimingMessage, getUserData, isLive, setUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.j3d.aviatrix3d.rendering.SceneCullable |
|---|
getRenderEffectsProcessor, getUserData |
| Constructor Detail |
|---|
public MultipassScene()
| Method Detail |
|---|
public boolean isMultipassScene()
isMultipassScene in interface SceneCullablepublic ViewEnvironmentCullable getViewCullable()
getViewCullable in interface SceneCullablepublic RenderPassCullable getCullablePass(int passIndex)
getCullablePass in interface SceneCullablepassIndex - The index of the pass to fetch
public int numCullableChildren()
numCullableChildren in interface SceneCullableprotected void setLive(boolean state)
setLive in class Scenestate - true if this should be marked as live nowprotected void setUpdateHandler(NodeUpdateHandler handler)
setUpdateHandler in class Scenehandler - The instance to use as a handler
public 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 null
public 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 null
public 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 range
public 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 range
public 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.1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||