org.smurn.jply.util
Enum TextureMode

java.lang.Object
  extended by java.lang.Enum<TextureMode>
      extended by org.smurn.jply.util.TextureMode
All Implemented Interfaces:
Serializable, Comparable<TextureMode>

public enum TextureMode
extends Enum<TextureMode>

Operation modes for texture coordinate generation by NormalizingPlyReader.


Enum Constant Summary
PASS_THROUGH
          Do not change existing texture coordinates, nor add any if the coordinates are missing in the file.
XY
          Generate texture coordinates based on the vertex's x (u) and y (v) coordinates.
XZ
          Generate texture coordinates based on the vertex's x (u) and z (v) coordinates.
YZ
          Generate texture coordinates based on the vertex's y (u) and z (v) coordinates.
 
Method Summary
static TextureMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TextureMode[] 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

PASS_THROUGH

public static final TextureMode PASS_THROUGH
Do not change existing texture coordinates, nor add any if the coordinates are missing in the file.


XY

public static final TextureMode XY
Generate texture coordinates based on the vertex's x (u) and y (v) coordinates.

The scale and offset is selected to use the complete [0,1] range of the texture coordinates.

If there are existing coordinates in the file this mode does nothing.


XZ

public static final TextureMode XZ
Generate texture coordinates based on the vertex's x (u) and z (v) coordinates.

The scale and offset is selected to use the complete [0,1] range of the texture coordinates.

If there are existing coordinates in the file this mode does nothing.


YZ

public static final TextureMode YZ
Generate texture coordinates based on the vertex's y (u) and z (v) coordinates.

The scale and offset is selected to use the complete [0,1] range of the texture coordinates.

If there are existing coordinates in the file this mode does nothing.

Method Detail

values

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

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

valueOf

public static TextureMode 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


Copyright © 2011. All Rights Reserved.