All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.external.geometry.TextureTransform
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.TextureTransform
- public class TextureTransform
- extends VrmlObject
JVerge
- Version:
- 0.8 (beta 4)
Copyright 1997
The Virtual Light Company
under the
GNU LGPL
The latest information and bugs in JVerge can be found at
http://www.vlc.com.au/JVerge
For definition of the Anchor node please see the
VRML 97 Anchor specification
- Author:
- Justin Couch justin@vlc.com.au
-
TextureTransform()
- Default Constructor.
-
TextureTransform(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
clone()
- Make a clone of this object
-
get_center()
- Get the current center settings
-
get_rotation()
- Get the current amount of rotation for the texture.
-
get_scale()
- Get the current scaling factor.
-
get_translation()
- Get the current translation factor.
-
set_center(float, float)
- Set the center of the transformations
-
set_rotation(float)
- Set the amount of rotation for the texture.
-
set_scale(float, float)
- Set the scaling factors for the texture.
-
set_translation(float, float)
- Set the translation factors for the texture.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
TextureTransform
public TextureTransform()
- Default Constructor. Creates a default TextureTransform
TextureTransform
public TextureTransform(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default TextureTranform
writeToStream
public void writeToStream(int indent)
- Prints the formatted contents of this node to the given stream.
- Parameters:
- indent - The number of spaces to indent this node in the string
- Overrides:
- writeToStream in class VrmlObject
set_center
public void set_center(float x,
float y)
- Set the center of the transformations
- Parameters:
- x - Position in S direction.
- y - Postion in T direction
get_center
public float[] get_center()
- Get the current center settings
- Returns:
- The center where return[0] = x, return[1] = y
set_scale
public void set_scale(float x,
float y)
- Set the scaling factors for the texture.
- Parameters:
- x - The x scale factor
- y - The y scale factor
get_scale
public float[] get_scale()
- Get the current scaling factor.
- Returns:
- The scaling values where return[0] = x, return[1] = y
set_translation
public void set_translation(float x,
float y)
- Set the translation factors for the texture.
- Parameters:
- x - The x translation
- y - The y translation
get_translation
public float[] get_translation()
- Get the current translation factor.
- Returns:
- The translation values where return[0] = x, return[1] = y
set_rotation
public void set_rotation(float val)
- Set the amount of rotation for the texture.
- Parameters:
- val - The amount to rotate by in radians.
get_rotation
public float get_rotation()
- Get the current amount of rotation for the texture.
- Returns:
- The amount to rotate by in radians.
clone
public Object clone()
- Make a clone of this object
- Returns:
- A deep clone copy of this object
- Overrides:
- clone in class VrmlObject
All Packages Class Hierarchy This Package Previous Next Index