Xj3D 2.0 VRML/X3D Code API

org.web3d.x3d.sai
Interface X3DTextureTransform2DNode

All Superinterfaces:
X3DAppearanceChildNode, X3DNode, X3DTextureTransformNode

public interface X3DTextureTransform2DNode
extends X3DTextureTransformNode

Defines a 2D transformation that is applied to a texture.

Version:
$Revision: 1.3 $
Author:
Justin Couch

Method Summary
 void getCenter(float[] position)
          Get the value of the current center position.
 float getRotation()
          Get the value of the current center position.
 void getScale(float[] scale)
          Get the value of the current scale applied to the texture.
 void getTranslation(float[] trans)
          Get the value of the current translation.
 void setCenter(float[] position)
          Set the center to a new position.
 void setRotation(float angle)
          Set the rotation of the texture to a new value.
 void setScale(float[] scale)
          Set the scale amount to a new value.
 void setTranslation(float[] trans)
          Set the translation value of the texture to a new position.
 
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
 

Method Detail

getCenter

void getCenter(float[] position)
Get the value of the current center position.

Parameters:
position - The array to copy the position into

setCenter

void setCenter(float[] position)
Set the center to a new position.

Parameters:
position - The new value to use

getRotation

float getRotation()
Get the value of the current center position.

Returns:
The current rotation value.

setRotation

void setRotation(float angle)
Set the rotation of the texture to a new value. Rotations are in radians.

Parameters:
angle - The new value to use

getScale

void getScale(float[] scale)
Get the value of the current scale applied to the texture.

Parameters:
scale - The array to copy the scale into

setScale

void setScale(float[] scale)
Set the scale amount to a new value.

Parameters:
scale - The new value to use

getTranslation

void getTranslation(float[] trans)
Get the value of the current translation.

Parameters:
trans - The array to copy the position into

setTranslation

void setTranslation(float[] trans)
Set the translation value of the texture to a new position.

Parameters:
trans - The new value to use

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium