Package snap.gfx3d
Class Scene3D
java.lang.Object
snap.props.PropObject
snap.gfx3d.Shape3D
snap.gfx3d.ParentShape
snap.gfx3d.Scene3D
- All Implemented Interfaces:
PropChange.DoChange
This class is the root ParentShape of all scene shapes. It also manages cameras and lights.
-
Field Summary
Fields inherited from class snap.gfx3d.ParentShape
NeedsRepaint_Prop
Fields inherited from class snap.gfx3d.Shape3D
_smoothSides
Fields inherited from class snap.props.PropObject
_pcs, EMPTY_OBJECT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a child.Returns the camera that renders this scene.getLight()
Returns the light that illumiates this scene.removeChild
(int anIndex) Removes the child at given index.void
setChildren
(Shape3D[] theChildren) Override to notify camera.Methods inherited from class snap.gfx3d.ParentShape
addChild, buildShape, buildShapeImpl, createBounds3D, getChild, getChildCount, getChildren, getTriangleArray, isNeedsRepaint, rebuildShape, removeChild, removeChildren, repaintShape, setNeedsRepaint
Methods inherited from class snap.gfx3d.Shape3D
clearCachedValues, getBounds3D, getBoundsCenter, getColor, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getName, getOpacity, getParent, getStroke, getStrokeColor, isDoubleSided, isVisible, setBounds3D, setColor, setDoubleSided, setName, setOpacity, setParent, setSmoothSides, setStroke, setStroke, setStrokeColor, setVisible, toStringProps
Methods inherited from class snap.props.PropObject
addDeepChangeListener, addPropChangeListener, addPropChangeListener, clone, firePropChange, firePropChange, firePropChange, getPropDefault, getPropForName, getPropParent, getPropSet, getPropsForArchival, getPropsForArchivalExtra, getPropsString, getPropValue, initProps, isPropDefault, processPropChange, removeDeepChangeListener, removePropChangeListener, removePropChangeListener, setPropsString, setPropValue, setPropValues, toString
-
Constructor Details
-
Scene3D
public Scene3D()Constructor.
-
-
Method Details
-
getCamera
Returns the camera that renders this scene. -
getLight
Returns the light that illumiates this scene. -
setChildren
Override to notify camera.- Overrides:
setChildren
in classParentShape
-
addChild
Adds a child.- Overrides:
addChild
in classParentShape
-
removeChild
Removes the child at given index.- Overrides:
removeChild
in classParentShape
-