nodes
Class TextureTransform

java.lang.Object
  |
  +--nodes.TextureTransform

public class TextureTransform
extends java.lang.Object

This class contains index constants to access fields in a TextureTransform node using the WF3DNode.getField (int fieldIndex) method.

In VRML, the TextureTransform node defines a 2D transformation that is applied to texture coordinates. This node affects the way textures coordinates are applied to the geometric surface.


Field Summary
static int center
          The constant used to access the center field of a TextureTransform node.
static int rotation
          The constant used to access the rotation field of a TextureTransform node.
static int scale
          The constant used to access the scale field of a TextureTransform node.
static int translation
          The constant used to access the translation field of a TextureTransform node.
 
Constructor Summary
TextureTransform()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

center

public static final int center
The constant used to access the center field of a TextureTransform node.
In VRML, this field specifies the center position for the texture coordinates. The center field specifies a translation offset in texture coordinate space about which the rotation and scale fields are applied.

This field is of VRML-type SFVec2f.

See Also:
Constant Field Values

rotation

public static final int rotation
The constant used to access the rotation field of a TextureTransform node.
In VRML, this field specifies the rotation angle for the texture. The rotation field specifies a rotation in radians of the texture coordinates about the center point after the scale has been applied. A positive rotation value makes the texture coordinates rotate counterclockwise about the center, thereby rotating the appearance of the texture itself clockwise.

This field is of VRML-type SFFloat.

See Also:
Constant Field Values

scale

public static final int scale
The constant used to access the scale field of a TextureTransform node.
In VRML, this field specifies the scale factor for the texture coordinates. The scale field specifies a scaling factor of the texture width and height about the center point. scale values shall be in the range of negative infinity to positive infinity.

This field is of VRML-type SFVec2f.

See Also:
Constant Field Values

translation

public static final int translation
The constant used to access the translation field of a TextureTransform node.
In VRML, this field specifies the translation vector of the texture coordinates.

This field is of VRML-type SFVec2f.

See Also:
Constant Field Values
Constructor Detail

TextureTransform

public TextureTransform()