hmi.graphics.scenegraph
Enum GMesh.MeshType
java.lang.Object
java.lang.Enum<GMesh.MeshType>
hmi.graphics.scenegraph.GMesh.MeshType
- All Implemented Interfaces:
- Serializable, Comparable<GMesh.MeshType>
- Enclosing class:
- GMesh
public static enum GMesh.MeshType
- extends Enum<GMesh.MeshType>
MeshType enumerates the legal mesh geometry, like Triangles, Tristrips, Polygons, etc.
|
Method Summary |
static GMesh.MeshType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GMesh.MeshType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Undefined
public static final GMesh.MeshType Undefined
Triangles
public static final GMesh.MeshType Triangles
Trifans
public static final GMesh.MeshType Trifans
Tristrips
public static final GMesh.MeshType Tristrips
Polygons
public static final GMesh.MeshType Polygons
Polylist
public static final GMesh.MeshType Polylist
values
public static GMesh.MeshType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (GMesh.MeshType c : GMesh.MeshType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static GMesh.MeshType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null