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 Views.
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a list of drawable to the scene.voidAdd a drawable to the scene.voidAdd a drawable to the scene and refresh on demand.voidAdd a light to the scene.voidvoiddispose()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.voidRemove a drawable from the scene.voidRemove a drawable from the scene and refresh on demand.voidRemove a drawable from the scene.voidAttach a scene graph to this scene.voidsetLightSet(LightSet lightSet) Attach a light set to this scene.toString()Return the sceneGraphstring 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 sceneGraphstring representation.
-