|
Aviatrix3D 2.0 Dev |
||||||||||
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
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.
A scene may also provide an instance RenderEffectsProcessor
that
allows the user to provide pre or post processing effects on a per-scene
basis. Note that if you are running layers, this will be pre and post
processing per layer, not per final rendering. The processor allows a
limited form of immediate-mode rendering.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, LISTENER_SET_NOT_LIVE_MESSAGE, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
SimpleScene()
Create a default instance of this scene with no content provided. |
Method Summary | |
Background |
getActiveBackground()
Get the currently set active background. |
Fog |
getActiveFog()
Get the currently set active fog. |
Viewpoint |
getActiveView()
Get the currently set active view. |
Group |
getRenderedGeometry()
Get the root of the currently rendered scene. |
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, getUserData, isLive, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleScene()
Method Detail |
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.0 Dev |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |