|
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.SimpleScene
public class SimpleScene
Representation of the top level structure of a piece of scene graph that can form a coherent rendering.
A scene encapsulates a viewpoint that is used to view the scene from, the geometry structure to render, data defining the view environment (eg projection type) and global data, such as the background, global fog etc.
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 | |
---|---|
SimpleScene()
Create a default instance of this scene with no content provided. |
Method Summary | |
---|---|
BufferStateRenderable |
getAccumBufferRenderable()
Fetch renderable information about the accumulation buffer. |
Background |
getActiveBackground()
Get the currently set active background. |
Fog |
getActiveFog()
Get the currently set active fog. |
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. |
RenderPassCullable |
getCullablePass(int passIndex)
Get the cullable layer child that for the given layer index. |
BufferStateRenderable |
getDepthBufferRenderable()
Fetch renderable information about the depth buffer. |
LeafCullable |
getFogCullable()
Get the cullable object representing the active fog in this environment. |
BufferStateRenderable |
getGeneralBufferRenderable()
Fetch renderable information about the general buffer. |
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. |
ViewEnvironmentCullable |
getViewCullable()
Get the primary view environment information. |
EnvironmentCullable |
getViewpointCullable()
Get the cullable object representing the active viewpoint that in this environment. |
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 |
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. |
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. |
void |
setActiveBackground(Background bg)
Set the background path that should be applied to the current surface. |
void |
setActiveFog(Fog fog)
Set the fog that should be applied to the current surface. |
void |
setActiveView(Viewpoint vp)
Set the viewpoint path that should be applied to the current surface. |
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. |
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 |
Methods inherited from interface org.j3d.aviatrix3d.rendering.RenderPassCullable |
---|
getUserData |
Constructor Detail |
---|
public SimpleScene()
Method Detail |
---|
public boolean isEnabled()
isEnabled
in interface RenderPassCullable
public boolean isMultipassScene()
isMultipassScene
in interface SceneCullable
public boolean isAudioSource()
isAudioSource
in interface RenderPassCullable
public ViewEnvironmentCullable getViewCullable()
getViewCullable
in interface RenderPassCullable
getViewCullable
in interface SceneCullable
public RenderPassCullable getCullablePass(int passIndex)
getCullablePass
in interface SceneCullable
passIndex
- The index of the pass to fetch
public int numCullableChildren()
numCullableChildren
in interface SceneCullable
public boolean is2D()
is2D
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 ViewportRenderable getViewportRenderable()
getViewportRenderable
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 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 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 setActiveFog(Fog fog) throws InvalidWriteTimingException, java.lang.IllegalArgumentException
fog
- The instance of the active fog node
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 Fog getActiveFog()
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 |