Enum Constant and Description |
---|
Cone
A circular cone with a diameter of 1, height of 1, and its center at
(0.5, 0.5, 0.5)
|
Cube
A 1x1x1 cube with its origin at its center (0.5, 0.5, 0.5)
|
Cylinder
A cylinder with a radius of 0.5 (diameter of 1), a height of 1, and its
origin at its center (0.5, 0.5, 0.5)
|
None
Default shape type
|
Sphere
A "half-unit" sphere with a radius of 0.5 (diameter of 1) with its origin
at its center
|
Tube
A cylinder with an inner and outer radius, an extruded annulus
|
Modifier and Type | Method and Description |
---|---|
static ShapeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ShapeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShapeType None
Default shape type
When rendering, None should be taken to mean "invisible". A PrimitiveShape with this type should have no effect on its parent.
public static final ShapeType Sphere
A "half-unit" sphere with a radius of 0.5 (diameter of 1) with its origin at its center
public static final ShapeType Cube
A 1x1x1 cube with its origin at its center (0.5, 0.5, 0.5)
public static final ShapeType Cylinder
A cylinder with a radius of 0.5 (diameter of 1), a height of 1, and its origin at its center (0.5, 0.5, 0.5)
public static final ShapeType Cone
A circular cone with a diameter of 1, height of 1, and its center at (0.5, 0.5, 0.5)
public static final ShapeType Tube
A cylinder with an inner and outer radius, an extruded annulus
public static ShapeType[] values()
for (ShapeType c : ShapeType.values()) System.out.println(c);
public static ShapeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null