Package snap.gfx3d

Class Renderer

java.lang.Object
snap.gfx3d.Renderer
Direct Known Subclasses:
Renderer2D

public abstract class Renderer extends Object
This is an abstract class to renders a Scene3D for a Camera.
  • Field Details

  • Constructor Details

    • Renderer

      public Renderer(Camera aCamera)
      Constructor.
  • Method Details

    • getName

      public abstract String getName()
      Returns the name of this renderer.
    • getCamera

      public Camera getCamera()
      Returns the Camera.
    • getScene

      public Scene3D getScene()
      Returns the Scene.
    • getSceneBoundsInView

      public Rect getSceneBoundsInView()
      Returns the 2D bounding rect for scene in camera bounds.
    • renderAndPaint

      public abstract void renderAndPaint(Painter aPainter)
      Renders scene for given painter, camera and scene.
    • cameraDidPropChange

      protected void cameraDidPropChange(PropChange aPC)
      Called when camera changes.
    • sceneDidChange

      protected void sceneDidChange()
      Called when scene changes.
    • newRenderer

      public static Renderer newRenderer(Camera aCamera)
      Returns a new default renderer.