|
Aviatrix3D 2.0 Beta 2 |
||||||||||
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.RenderPass
Representation of a single pass in a multipass rendering layer setup.
A render pass encapsulates a viewpoint that is used to view the scene from, the geometry structure to render, global fog, the geometry of the scene and a collection of buffer states.
Each pass has its own view environment that works in addition to the global environment from the parent scene. Some aspects of this environment are ignored for multipass rendering, such as the stereo flags.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
RenderPass()
Create a default instance of this scene with no content provided. |
Method Summary | |
BufferStateRenderable |
getAccumBufferRenderable()
Fetch renderable information about the accumulation buffer. |
AccumulationBufferState |
getAccumulationBufferState()
Get the currently set accumulation buffer state. |
Viewpoint |
getActiveView()
Get the currently set active view. |
EnvironmentCullable |
getBackgroundCullable()
Get the cullable object representing the active background that in this environment. |
BufferStateRenderable |
getColorBufferRenderable()
Fetch renderable information about the colour buffer. |
ColorBufferState |
getColorBufferState()
Get the currently set color buffer state. |
BufferStateRenderable |
getDepthBufferRenderable()
Fetch renderable information about the depth buffer. |
DepthBufferState |
getDepthBufferState()
Get the currently set depth buffer state. |
LeafCullable |
getFogCullable()
Get the cullable object representing the active fog in this environment. |
Group |
getRenderedGeometry()
Get the root of the currently rendered scene. |
Cullable |
getRootCullable()
Get the primary cullable that represents the root of the scene graph. |
BufferStateRenderable |
getStencilBufferRenderable()
Fetch renderable information about the stencil buffer. |
StencilBufferState |
getStencilBufferState()
Get the currently set stencil buffer state. |
ViewEnvironmentCullable |
getViewCullable()
Get the primary view environment. |
ViewEnvironment |
getViewEnvironment()
Get the currently set active view. |
EnvironmentCullable |
getViewpointCullable()
Get the cullable object representing the active viewpoint that in this environment. |
boolean |
is2D()
Check to see if this represents a 2D scene that has no 3D rendering capabilities. |
void |
setAccumulationBufferState(AccumulationBufferState state)
Set the accumulation buffer state that should be applied to the during this pass. |
void |
setActiveView(Viewpoint vp)
Set the viewpoint path that should be applied to the current surface. |
void |
setColorBufferState(ColorBufferState state)
Set the color buffer state that should be applied to the during this pass. |
void |
setDepthBufferState(DepthBufferState state)
Set the depth buffer state that should be applied to the during this pass. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
void |
setRenderedGeometry(Group geom)
Set the collection of geometry that should be rendered to this texture. |
void |
setStencilBufferState(StencilBufferState state)
Set the stencil buffer state that should be applied to the during this pass. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the scenegraph update handler for this node. |
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 |
Methods inherited from interface org.j3d.aviatrix3d.rendering.RenderPassCullable |
getUserData |
Constructor Detail |
public RenderPass()
Method Detail |
public boolean is2D()
is2D
in interface RenderPassCullable
public ViewEnvironmentCullable getViewCullable()
getViewCullable
in interface RenderPassCullable
public EnvironmentCullable getViewpointCullable()
getViewpointCullable
in interface RenderPassCullable
public EnvironmentCullable getBackgroundCullable()
getBackgroundCullable
in interface RenderPassCullable
public LeafCullable getFogCullable()
getFogCullable
in interface RenderPassCullable
public Cullable getRootCullable()
getRootCullable
in interface RenderPassCullable
public BufferStateRenderable getColorBufferRenderable()
getColorBufferRenderable
in interface RenderPassCullable
public BufferStateRenderable getDepthBufferRenderable()
getDepthBufferRenderable
in interface RenderPassCullable
public BufferStateRenderable getStencilBufferRenderable()
getStencilBufferRenderable
in interface RenderPassCullable
public BufferStateRenderable getAccumBufferRenderable()
getAccumBufferRenderable
in interface RenderPassCullable
protected void setLive(boolean state)
setLive
in class SceneGraphObject
state
- true if this should be marked as live nowprotected void setUpdateHandler(NodeUpdateHandler handler)
setUpdateHandler
in class SceneGraphObject
handler
- The instance to use as a handlerpublic ViewEnvironment getViewEnvironment()
public void setRenderedGeometry(Group geom) throws InvalidWriteTimingException
geom
- The new geometry to use or null
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic Group getRenderedGeometry()
public void setActiveView(Viewpoint vp) throws InvalidWriteTimingException, java.lang.IllegalArgumentException
vp
- The instance of the active viewpoint to use
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 Viewpoint getActiveView()
public void setStencilBufferState(StencilBufferState state) throws InvalidWriteTimingException
state
- The instance of the state to set
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic StencilBufferState getStencilBufferState()
public void setDepthBufferState(DepthBufferState state) throws InvalidWriteTimingException
state
- The instance of the state to set
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic DepthBufferState getDepthBufferState()
public void setColorBufferState(ColorBufferState state) throws InvalidWriteTimingException
state
- The instance of the state to set
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic ColorBufferState getColorBufferState()
public void setAccumulationBufferState(AccumulationBufferState state) throws InvalidWriteTimingException
state
- The instance of the state to set
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic AccumulationBufferState getAccumulationBufferState()
|
Aviatrix3D 2.0 Beta 2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |