|
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.RenderPass
public class 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.
Internationalisation Resource Names
Field Summary |
---|
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
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. |
BufferStateRenderable |
getGeneralBufferRenderable()
Fetch renderable information about the general buffer. |
GeneralBufferState |
getGeneralBufferState()
Get the currently set general buffer state. |
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. |
void |
getViewportDimensions(float[] vals)
Get the viewport dimensions. |
ViewportRenderable |
getViewportRenderable()
Fetch the renderable used to control the viewport setting. |
boolean |
is2D()
Check to see if this represents a 2D scene that has no 3D rendering capabilities. |
boolean |
isActiveSoundLayer()
Check to see if this is the currently active layer for sound rendering. |
boolean |
isAudioSource()
Check to see if this render pass is the one that also has the spatialised audio to be rendered for this frame. |
boolean |
isEnabled()
Check to see if this render pass is valid to render for this frame. |
void |
makeActiveSoundLayer()
Set this layer to be the currently active sound layer. |
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. |
void |
setEnabled(boolean state)
Set the enabled state of the light. |
void |
setGeneralBufferState(GeneralBufferState state)
Set the general 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. |
void |
setViewportDimensions(int x,
int y,
int w,
int h)
Override the scene's viewport dimensions with a specific set for this pass only. |
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.RenderPassCullable |
---|
getUserData |
Constructor Detail |
---|
public RenderPass()
Method Detail |
---|
public boolean isEnabled()
isEnabled
in interface RenderPassCullable
public boolean is2D()
is2D
in interface RenderPassCullable
public boolean isAudioSource()
isAudioSource
in interface RenderPassCullable
public ViewportRenderable getViewportRenderable()
getViewportRenderable
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 getGeneralBufferRenderable()
getGeneralBufferRenderable
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 void setEnabled(boolean state) throws InvalidWriteTimingException
state
- The new state of the light
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener data changed callback methodpublic void makeActiveSoundLayer() throws InvalidWriteTimingException
InvalidWriteTimingException
public boolean isActiveSoundLayer()
makeActiveSoundLayer()
. The effects, however, will be rendered
starting the frame that this is set.
public 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 setGeneralBufferState(GeneralBufferState state) throws InvalidWriteTimingException
state
- The instance of the state to set
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic GeneralBufferState getGeneralBufferState()
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()
public void setViewportDimensions(int x, int y, int w, int h) throws InvalidWriteTimingException
x
- The left position of the locationy
- The top position of the locationw
- The width of the viewporth
- The left position of the location
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic void getViewportDimensions(float[] vals)
vals
- The array to copy dimensions in to
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |