public class Cube extends Shape3D
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
Constructor and Description |
---|
Cube()
Constructs a color cube with unit scale.
|
Cube(double scale)
Constructs a color cube with the specified scale.
|
Cube(double xScale,
double yScale,
double zScale)
Constructs a color cube with the specified scale.
|
Cube(double xScale,
double yScale,
double zScale,
float r,
float g,
float b) |
Cube(double scale,
float r,
float g,
float b) |
Cube(float xMin,
float yMin,
float zMin,
float xMax,
float yMax,
float zMax) |
Modifier and Type | Method and Description |
---|---|
static java.nio.FloatBuffer |
makeFloatBuffer(float[] arr) |
addGeometry, cloneNode, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
public Cube()
public Cube(double scale)
scale
- the scale of the cubepublic Cube(double scale, float r, float g, float b)
public Cube(double xScale, double yScale, double zScale)
scale
- the scale of the cubepublic Cube(double xScale, double yScale, double zScale, float r, float g, float b)
public Cube(float xMin, float yMin, float zMin, float xMax, float yMax, float zMax)