All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.internal.geometry.PositionInterpolator

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.PositionInterpolator

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

Author:
Justin Couch justin@vlc.com.au

Constructor Index

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

Method Index

 o clone()
Make a clone of this object
 o get_keyValue()
Get the current keyValue values
 o get_value_changed()
Get the current value of the value_changed eventOut.
 o set_keyValue(float[][])
Set the position keyValues to be used.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

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

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

Parameters:
b - A valid browser reference

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_keyValue
 public void set_keyValue(float positions[][])
Set the position 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:
positions - The array of position values where positions[i][0] = x, positions[i][1] = y, position[i][2] = z
 o get_keyValue
 public float[][] get_keyValue()
Get the current keyValue values

Returns:
The array of position values that are interpolated between where positions[i][0] = x, positions[i][1] = y, position[i][2] = z
 o get_value_changed
 public float[] get_value_changed()
Get the current value of the value_changed eventOut.

Returns:
The current interpolated position value on the eventOut
 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