|
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
public abstract class Scene
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 | |
---|---|
protected RenderEffectsProcessor |
processor
Current effects processor |
protected ViewEnvironment |
viewEnvironment
Current view environment |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
---|
alive, LISTENER_SET_TIMING_ERR_PROP, updateHandler |
Constructor Summary | |
---|---|
Scene()
Create a default instance of this scene with no content provided. |
Method Summary | |
---|---|
RenderEffectsProcessor |
getRenderEffectsProcessor()
Get the currently set scene processor instance. |
ViewEnvironment |
getViewEnvironment()
Get the currently set active view. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
void |
setRenderEffectsProcessor(RenderEffectsProcessor prc)
Register the scene processor to be used for this scene for pre and post rendering effects. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the scenegraph update handler for this node. |
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 |
Field Detail |
---|
protected ViewEnvironment viewEnvironment
protected RenderEffectsProcessor processor
Constructor Detail |
---|
public Scene()
Method Detail |
---|
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 setRenderEffectsProcessor(RenderEffectsProcessor prc) throws InvalidWriteTimingException
prc
- The instance to use or null
InvalidWriteTimingException
- An attempt was made to write outside
of the ApplicationUpdateObserver callback methodpublic RenderEffectsProcessor getRenderEffectsProcessor()
public ViewEnvironment getViewEnvironment()
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |