org.xith3d.scenegraph.primitives
Enum GeometryType

java.lang.Object
  extended by java.lang.Enum<GeometryType>
      extended by org.xith3d.scenegraph.primitives.GeometryType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GeometryType>

public enum GeometryType
extends java.lang.Enum<GeometryType>

An enumeration of Geometry types, that can be created by shape implementations.


Enum Constant Summary
INDEXED_TRIANGLE_ARRAY
           
INDEXED_TRIANGLE_STRIP_ARRAY
           
TRIANGLE_ARRAY
           
TRIANGLE_STRIP_ARRAY
           
 
Field Summary
static GeometryType ITA
          An alias for INDEXED_TRIANGLE_ARRAY.
static GeometryType ITSA
          An alias for INDEXED_TRIANGLE_STRIP_ARRAY.
static GeometryType TA
          An alias for TRIANGLE_ARRAY.
static GeometryType TSA
          An alias for TRIANGLE_STRIP_ARRAY.
 
Method Summary
 java.lang.Class<? extends Geometry> getCorrespondingClass()
           
static GeometryType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GeometryType[] 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

TRIANGLE_ARRAY

public static final GeometryType TRIANGLE_ARRAY

TRIANGLE_STRIP_ARRAY

public static final GeometryType TRIANGLE_STRIP_ARRAY

INDEXED_TRIANGLE_ARRAY

public static final GeometryType INDEXED_TRIANGLE_ARRAY

INDEXED_TRIANGLE_STRIP_ARRAY

public static final GeometryType INDEXED_TRIANGLE_STRIP_ARRAY
Field Detail

TA

public static final GeometryType TA
An alias for TRIANGLE_ARRAY.


TSA

public static final GeometryType TSA
An alias for TRIANGLE_STRIP_ARRAY.


ITA

public static final GeometryType ITA
An alias for INDEXED_TRIANGLE_ARRAY.


ITSA

public static final GeometryType ITSA
An alias for INDEXED_TRIANGLE_STRIP_ARRAY.

Method Detail

values

public static GeometryType[] 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 (GeometryType c : GeometryType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GeometryType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCorrespondingClass

public java.lang.Class<? extends Geometry> getCorrespondingClass()