Package snap.gfx3d

Class Scene3D

All Implemented Interfaces:
PropChange.DoChange

public class Scene3D extends ParentShape
This class is the root ParentShape of all scene shapes. It also manages cameras and lights.
  • Constructor Details

    • Scene3D

      public Scene3D()
      Constructor.
  • Method Details

    • getCamera

      public Camera getCamera()
      Returns the camera that renders this scene.
    • getLight

      public Light3D getLight()
      Returns the light that illumiates this scene.
    • setChildren

      public void setChildren(Shape3D[] theChildren)
      Override to notify camera.
      Overrides:
      setChildren in class ParentShape
    • addChild

      public void addChild(Shape3D aShape, int anIndex)
      Adds a child.
      Overrides:
      addChild in class ParentShape
    • removeChild

      public Shape3D removeChild(int anIndex)
      Removes the child at given index.
      Overrides:
      removeChild in class ParentShape