All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.internal.geometry.PlaneSensor

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.internal.geometry.VrmlObject
                   |
                   +----vlc.vrml.internal.geometry.ChildrenNode
                           |
                           +----vlc.vrml.internal.geometry.Sensor
                                   |
                                   +----vlc.vrml.internal.geometry.GeometrySensor
                                           |
                                           +----vlc.vrml.internal.geometry.PlaneSensor

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

We need to override the _offset and _set_offset methods and variables here because in the GeometrySensor they are a 4 value SFRotation rather than the required SFVec3f by the PlaneSensor.

Author:
Justin Couch justin@vlc.com.au

Constructor Index

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

Method Index

 o clone()
Make a clone of this object
 o get_maxPosition()
Get the maximum postion that the sensor can travel to.
 o get_minPosition()
Get the minimum postion that the sensor can travel to.
 o get_offset()
Get the amount of offset from the centre to put the sensor
 o get_trackPoint_changed()
Should not be used.
 o get_translation_changed()
Get the last generated value of the translation_changed eventOut
 o set_maxPosition(float[])
Set the maximum postion that the sensor can travel to.
 o set_minPosition(float[])
Set the minimum postion that the sensor can travel to.
 o set_offset(float[])
Set the amount of offset from the centre to put the sensor
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

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

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

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_maxPosition
 public void set_maxPosition(float pos[])
Set the maximum postion that the sensor can travel to.

Parameters:
pos - A vector defining the max position in 2D
 o get_maxPosition
 public float[] get_maxPosition()
Get the maximum postion that the sensor can travel to.

Returns:
A vector defining the max position in 2D
 o set_minPosition
 public void set_minPosition(float pos[])
Set the minimum postion that the sensor can travel to.

Parameters:
pos - A vector defining the min position in 2D
 o get_minPosition
 public float[] get_minPosition()
Get the minimum postion that the sensor can travel to.

Returns:
A vector defining the min position in 2D
 o set_offset
 public void set_offset(float offset[])
Set the amount of offset from the centre to put the sensor

Parameters:
offset - The offset used in 3D
Overrides:
set_offset in class GeometrySensor
 o get_offset
 public float[] get_offset()
Get the amount of offset from the centre to put the sensor

Returns:
The offset used in 3D
Overrides:
get_offset in class GeometrySensor
 o get_trackPoint_changed
 public float[] get_trackPoint_changed()
Should not be used. Just in case someone calls this method (which they shouldn't) it returns null.

Returns:
null
Overrides:
get_trackPoint_changed in class GeometrySensor
 o get_translation_changed
 public float[] get_translation_changed()
Get the last generated value of the translation_changed eventOut

Returns:
The last translation value generated in 3D.
 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