shout3d.core
Class TextureTransformMapping
java.lang.Object
|
+--shout3d.core.Node
|
+--shout3d.core.TextureMapping
|
+--shout3d.core.TextureTransformMapping
- public class TextureTransformMapping
- extends TextureMapping
- implements FieldObserver
TextureTransformMapping Node.
Initial texture coordinates are stored in
referenceTexCoord field
Fields to transform them are in:
translate (2D translation)
center (2D location about which rotate/scale are performed)
rotate (single float, positive value is clockwise)
scale (2D scale)
When any of the above 5 fields changes (or the point field within the referenceTexCoord node),
new values are generated for the texCoord field.
Method Summary |
void |
onFieldChange(Field theField,
java.lang.Object userData)
Subclasses must call this within their own onFieldChange() method. |
Methods inherited from class shout3d.core.Node |
cleanUp,
getDEFName,
getField,
getFieldByIndex,
getFieldName,
getNumFields,
getTypeName,
getViewer,
isOfType,
setDEFName,
setViewer |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
referenceTexCoord
public final NodeField referenceTexCoord
center
public final FloatArrayField center
rotation
public final FloatField rotation
scale
public final FloatArrayField scale
translation
public final FloatArrayField translation
TextureTransformMapping
public TextureTransformMapping()
- Constructs a default TextureTransformMapping
onFieldChange
public void onFieldChange(Field theField,
java.lang.Object userData)
- Subclasses must call this within their own onFieldChange() method.
- Specified by:
- onFieldChange in interface FieldObserver
- Overrides:
- onFieldChange in class TextureMapping