|
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 RenderPassCullablepublic boolean isMultipassScene()
isMultipassScene in interface SceneCullablepublic boolean isAudioSource()
isAudioSource in interface RenderPassCullablepublic ViewEnvironmentCullable getViewCullable()
getViewCullable in interface RenderPassCullablegetViewCullable in interface SceneCullablepublic RenderPassCullable getCullablePass(int passIndex)
getCullablePass in interface SceneCullablepassIndex - The index of the pass to fetch
public int numCullableChildren()
numCullableChildren in interface SceneCullablepublic boolean is2D()
is2D in interface RenderPassCullablepublic EnvironmentCullable getViewpointCullable()
getViewpointCullable in interface RenderPassCullablepublic EnvironmentCullable getBackgroundCullable()
getBackgroundCullable in interface RenderPassCullablepublic LeafCullable getFogCullable()
getFogCullable in interface RenderPassCullablepublic Cullable getRootCullable()
getRootCullable in interface RenderPassCullablepublic ViewportRenderable getViewportRenderable()
getViewportRenderable in interface RenderPassCullablepublic BufferStateRenderable getGeneralBufferRenderable()
getGeneralBufferRenderable in interface RenderPassCullablepublic BufferStateRenderable getColorBufferRenderable()
getColorBufferRenderable in interface RenderPassCullablepublic BufferStateRenderable getDepthBufferRenderable()
getDepthBufferRenderable in interface RenderPassCullablepublic BufferStateRenderable getStencilBufferRenderable()
getStencilBufferRenderable in interface RenderPassCullablepublic BufferStateRenderable getAccumBufferRenderable()
getAccumBufferRenderable in interface RenderPassCullableprotected 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 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 | |||||||||