Package snap.gfx3d
Class Renderer
java.lang.Object
snap.gfx3d.Renderer
- Direct Known Subclasses:
Renderer2D
This is an abstract class to renders a Scene3D for a Camera.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Called when camera changes.Returns the Camera.abstract String
getName()
Returns the name of this renderer.getScene()
Returns the Scene.Returns the 2D bounding rect for scene in camera bounds.static Renderer
newRenderer
(Camera aCamera) Returns a new default renderer.abstract void
renderAndPaint
(Painter aPainter) Renders scene for given painter, camera and scene.protected void
Called when scene changes.
-
Field Details
-
_camera
-
_scene
-
_factory
-
-
Constructor Details
-
Renderer
Constructor.
-
-
Method Details
-
getName
Returns the name of this renderer. -
getCamera
Returns the Camera. -
getScene
Returns the Scene. -
getSceneBoundsInView
Returns the 2D bounding rect for scene in camera bounds. -
renderAndPaint
Renders scene for given painter, camera and scene. -
cameraDidPropChange
Called when camera changes. -
sceneDidChange
protected void sceneDidChange()Called when scene changes. -
newRenderer
Returns a new default renderer.
-