org.xith3d.scenegraph
Enum TexCoordGeneration.CoordMode

java.lang.Object
  extended by java.lang.Enum<TexCoordGeneration.CoordMode>
      extended by org.xith3d.scenegraph.TexCoordGeneration.CoordMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TexCoordGeneration.CoordMode>
Enclosing class:
TexCoordGeneration

public static enum TexCoordGeneration.CoordMode
extends java.lang.Enum<TexCoordGeneration.CoordMode>


Enum Constant Summary
TEXTURE_COORDINATES_1
          Generates 1D texture coordinates (S).
TEXTURE_COORDINATES_2
          Generates 2D texture coordinates (S and T).
TEXTURE_COORDINATES_3
          Generates 3D texture coordinates (S, T and R).
TEXTURE_COORDINATES_4
          Generates 4D texture coordinates (S, T, R and Q).
 
Method Summary
 int getBitMask()
           
static TexCoordGeneration.CoordMode getFromNumber(int number)
           
 int getNumTUs()
           
static TexCoordGeneration.CoordMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TexCoordGeneration.CoordMode[] 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

TEXTURE_COORDINATES_1

public static final TexCoordGeneration.CoordMode TEXTURE_COORDINATES_1
Generates 1D texture coordinates (S).


TEXTURE_COORDINATES_2

public static final TexCoordGeneration.CoordMode TEXTURE_COORDINATES_2
Generates 2D texture coordinates (S and T).


TEXTURE_COORDINATES_3

public static final TexCoordGeneration.CoordMode TEXTURE_COORDINATES_3
Generates 3D texture coordinates (S, T and R).


TEXTURE_COORDINATES_4

public static final TexCoordGeneration.CoordMode TEXTURE_COORDINATES_4
Generates 4D texture coordinates (S, T, R and Q).

Method Detail

values

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

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

valueOf

public static TexCoordGeneration.CoordMode 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

getNumTUs

public final int getNumTUs()
Returns:
the number of generated TUs.

getBitMask

public final int getBitMask()
Returns:
a bitmask with all bits set, that are lower or equal to this format's index.

getFromNumber

public static TexCoordGeneration.CoordMode getFromNumber(int number)