All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.ScalarInterpolator
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.ChildrenNode
|
+----vlc.vrml.internal.geometry.Interpolator
|
+----vlc.vrml.internal.geometry.ScalarInterpolator
- public class ScalarInterpolator
- extends Interpolator
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 ScalarInterpolator node please see the
VRML 97 ScalarInterpolator specification
- Author:
- Justin Couch justin@vlc.com.au
-
ScalarInterpolator()
- Default Constructor.
-
ScalarInterpolator(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
clone()
- Make a clone of this object
-
get_keyValue()
- Get the current keyValue values
-
get_value_changed()
- Get the current value of the value_changed eventOut.
-
set_keyValue(float[])
- Set the scalar keyValues to be used.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
ScalarInterpolator
public ScalarInterpolator()
- Default Constructor. Creates a default ScalarInterpolator
ScalarInterpolator
public ScalarInterpolator(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default ScalarInterpolator
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_keyValue
public void set_keyValue(float scalar[])
- Set the scalar keyValues to be used. The length of this array should
exactly correspond to the length of the key array. No checking
is done to enforce this as it is allowable to have different lengths
in the VRML 97 spec.
- Parameters:
- color - The array of values where to be interpolated between
get_keyValue
public float[] get_keyValue()
- Get the current keyValue values
- Returns:
- The array of scalar values that are interpolated between
get_value_changed
public float get_value_changed()
- Get the current value of the value_changed eventOut.
- Returns:
- The current interpolated scalar value on the eventOut
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