All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.internal.geometry.Transform

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.internal.geometry.VrmlObject
                   |
                   +----vlc.vrml.internal.geometry.ChildrenNode
                           |
                           +----vlc.vrml.internal.geometry.GroupingNode
                                   |
                                   +----vlc.vrml.internal.geometry.Transform

public class Transform
extends GroupingNode
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 Transform node please see the VRML 97 Transform specification

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o Transform()
Default Constructor.
 o Transform(Browser)
Default Constructor when you wish to supply your own Browser reference.
 o Transform(Browser, float[], float[])
Cosntructor to use when you want to supply non-default values of the bounding box center or size and to use your own Browser reference.
 o Transform(float[], float[])
Cosntructor to use when you want to supply non-default values of the bounding box center or size.

Method Index

 o cleanup()
Call when about to remove the node from the scenegraph.
 o clone()
Make a clone of this object
 o get_center()
Get the current center field of the node.
 o get_rotation()
Get the rotation of the object.
 o get_scale()
Get the current scale field of the node.
 o get_scaleOrientation()
Get the scale orientation of the object.
 o get_translation()
Get the current translation of this object.
 o set_center(float[])
Set the center field of the node.
 o set_rotation(float[])
Set the rotation of the object.
 o set_scale(float[])
Set the scale field of the node.
 o set_scaleOrientation(float[])
Set the axis that the scale field takes place along.
 o set_translation(float[])
Set the translation value of this object.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

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

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

 o Transform
 public Transform(float bboxCenter[],
                  float bboxSize[])
Cosntructor to use when you want to supply non-default values of the bounding box center or size.

 o Transform
 public Transform(Browser b,
                  float bboxCenter[],
                  float bboxSize[])
Cosntructor to use when you want to supply non-default values of the bounding box center or size and to use your own Browser reference.

Methods

 o cleanup
 public void cleanup()
Call when about to remove the node from the scenegraph.

Overrides:
cleanup in class VrmlObject
 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 center[])
Set the center field of the node. This is the center about which all the other operations take place.

Parameters:
center - The position of the center where center[0] = x, center[1] = y, center[2] = z
 o get_center
 public float[] get_center()
Get the current center field of the node.

Returns:
The position of the center where center[0] = x, center[1] = y, center[2] = z
 o set_rotation
 public void set_rotation(float rotation[])
Set the rotation of the object.

Parameters:
rotation - The rotation value to use where rotation[0] = x,
rotation[1] = y,
rotation[2] = z,
rotation[0] = angle,
 o get_rotation
 public float[] get_rotation()
Get the rotation of the object.

Returns:
the rotation value. For order
See Also:
set_rotation
 o set_scale
 public void set_scale(float scale[])
Set the scale field of the node. The axis that the scale is relative to is determined by the scaleOrientation field.

Parameters:
scale - The amount to scale along each axis. scale[0] = x, scale[1] = y, scale[2] = z
 o get_scale
 public float[] get_scale()
Get the current scale field of the node.

Returns:
The amount of scale along each axis. scale[0] = x, scale[1] = y, scale[2] = z
 o set_scaleOrientation
 public void set_scaleOrientation(float val[])
Set the axis that the scale field takes place along.

Parameters:
val - The orientation value to use where val[0] = x,
val[1] = y,
val[2] = z,
val[0] = angle,
 o get_scaleOrientation
 public float[] get_scaleOrientation()
Get the scale orientation of the object.

Returns:
the rotation value. For order
See Also:
set_scaleOrientation
 o set_translation
 public void set_translation(float val[])
Set the translation value of this object.

Parameters:
val - The amount to translate it in each direction val[0] = x, val[1] = y, val[2] = z
 o get_translation
 public float[] get_translation()
Get the current translation of this object.

Returns:
The amount to translated in each direction val[0] = x, val[1] = y, val[2] = z
 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