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
-
Transform()
- Default Constructor.
-
Transform(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
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.
-
Transform(float[], float[])
- Cosntructor to use when you want to supply non-default values of
the bounding box center or size.
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_center()
- Get the current center field of the node.
-
get_rotation()
- Get the rotation of the object.
-
get_scale()
- Get the current scale field of the node.
-
get_scaleOrientation()
- Get the scale orientation of the object.
-
get_translation()
- Get the current translation of this object.
-
set_center(float[])
- Set the center field of the node.
-
set_rotation(float[])
- Set the rotation of the object.
-
set_scale(float[])
- Set the scale field of the node.
-
set_scaleOrientation(float[])
- Set the axis that the scale field takes place along.
-
set_translation(float[])
- Set the translation value of this object.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Transform
public Transform()
- Default Constructor. Creates a default Transform
Transform
public Transform(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default Transform
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.
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.
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup in class VrmlObject
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 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
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
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,
get_rotation
public float[] get_rotation()
- Get the rotation of the object.
- Returns:
- the rotation value. For order
- See Also:
- set_rotation
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
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
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,
get_scaleOrientation
public float[] get_scaleOrientation()
- Get the scale orientation of the object.
- Returns:
- the rotation value. For order
- See Also:
- set_scaleOrientation
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
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
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