Package snap.gfx3d
Class CubeShape
java.lang.Object
snap.props.PropObject
snap.gfx3d.Shape3D
snap.gfx3d.ParentShape
snap.gfx3d.CubeShape
- All Implemented Interfaces:
PropChange.DoChange
This ParentShape subclass displays an axis box.
-
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
Add side textures.getSideShape
(Side3D aSide) Returns the side shape.boolean
isSideVisible
(Side3D aSide) Returns whether given side is visible.void
setTextureForSideAndPos
(Side3D aSide, Pos aPos) Sets the texture for given side and position.Methods inherited from class snap.gfx3d.ParentShape
addChild, addChild, buildShape, buildShapeImpl, createBounds3D, getChild, getChildCount, getChildren, getTriangleArray, isNeedsRepaint, rebuildShape, removeChild, removeChild, removeChildren, repaintShape, setChildren, 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
-
CubeShape
public CubeShape()Constructor.
-
-
Method Details
-
getSideShape
Returns the side shape. -
isSideVisible
Returns whether given side is visible. -
addSideTextures
public void addSideTextures()Add side textures. -
setTextureForSideAndPos
Sets the texture for given side and position.
-