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

Constructor Index

 o TextureTransform()
Default Constructor.
 o TextureTransform(Browser)
Default Constructor when you wish to supply your own Browser reference.

Method Index

 o clone()
Make a clone of this object
 o get_center()
Get the current center settings
 o get_rotation()
Get the current amount of rotation for the texture.
 o get_scale()
Get the current scaling factor.
 o get_translation()
Get the current translation factor.
 o set_center(float, float)
Set the center of the transformations
 o set_rotation(float)
Set the amount of rotation for the texture.
 o set_scale(float, float)
Set the scaling factors for the texture.
 o set_translation(float, float)
Set the translation factors for the texture.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o TextureTransform
 public TextureTransform()
Default Constructor. Creates a default TextureTransform

 o TextureTransform
 public TextureTransform(Browser b)
Default Constructor when you wish to supply your own Browser reference. Creates a default TextureTranform

Methods

 o 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
 o 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
 o get_center
 public float[] get_center()
Get the current center settings

Returns:
The center where return[0] = x, return[1] = y
 o 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
 o get_scale
 public float[] get_scale()
Get the current scaling factor.

Returns:
The scaling values where return[0] = x, return[1] = y
 o 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
 o get_translation
 public float[] get_translation()
Get the current translation factor.

Returns:
The translation values where return[0] = x, return[1] = y
 o 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.
 o get_rotation
 public float get_rotation()
Get the current amount of rotation for the texture.

Returns:
The amount to rotate by in radians.
 o 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