hmi.graphics.scenegraph
Enum GMesh.MeshType

java.lang.Object
  extended by java.lang.Enum<GMesh.MeshType>
      extended by 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.


Enum Constant Summary
Polygons
           
Polylist
           
Triangles
           
Trifans
           
Tristrips
           
Undefined
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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