Package org.jzy3d.plot3d.rendering.scene
Class Scene
java.lang.Object
org.jzy3d.plot3d.rendering.scene.Scene
- Direct Known Subclasses:
ChartScene
A Scene holds a
to provide the effective (protected) GL2 calls for
initialization (List and Texture loading), clearing of window, and current view rendering.
Graph
to be rendered by a list View
s.
The creation of Views is not of user concern, since it is handled during the registration of the
Scene by a ICanvas
. The newView() is thus protected because it is supposed to be called
by a Canvas3d or a View only.
The Scene is called by the
invalid @link
Renderer3d
- Author:
- Martin Pernollet
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a list of drawable to the scene.void
Add a drawable to the scene.void
Add a drawable to the scene and refresh on demand.void
Add a light to the scene.void
void
dispose()
Handles disposing of the Graph as well as all views pointing to this Graph.getGraph()
Get the scene graph attached to this scene.Get the light set attached to this scene.Instantiate a View attached to the given Canvas, and return its reference.void
Remove a drawable from the scene.void
Remove a drawable from the scene and refresh on demand.void
Remove a drawable from the scene.void
Attach a scene graph to this scene.void
setLightSet
(LightSet lightSet) Attach a light set to this scene.toString()
Return the sceneGraph
string representation.
-
Field Details
-
views
-
graph
-
lightSet
-
factory
-
-
Constructor Details
-
Scene
-
Scene
-
-
Method Details
-
dispose
public void dispose()Handles disposing of the Graph as well as all views pointing to this Graph. -
setGraph
Attach a scene graph to this scene. -
getGraph
Get the scene graph attached to this scene. -
setLightSet
Attach a light set to this scene. -
getLightSet
Get the light set attached to this scene. -
add
Add a list of drawable to the scene. -
add
Add a drawable to the scene. -
add
Add a drawable to the scene and refresh on demand. -
remove
Remove a drawable from the scene and refresh on demand. -
remove
Remove a drawable from the scene. -
add
Add a light to the scene. -
remove
Remove a drawable from the scene. -
newView
Instantiate a View attached to the given Canvas, and return its reference. -
clearView
-
toString
Return the sceneGraph
string representation.
-