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
-
PlaneSensor()
- Default Constructor.
-
PlaneSensor(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
clone()
- Make a clone of this object
-
get_maxPosition()
- Get the maximum postion that the sensor can travel to.
-
get_minPosition()
- Get the minimum postion that the sensor can travel to.
-
get_offset()
- Get the amount of offset from the centre to put the sensor
-
get_trackPoint_changed()
- Should not be used.
-
get_translation_changed()
- Get the last generated value of the translation_changed eventOut
-
set_maxPosition(float[])
- Set the maximum postion that the sensor can travel to.
-
set_minPosition(float[])
- Set the minimum postion that the sensor can travel to.
-
set_offset(float[])
- Set the amount of offset from the centre to put the sensor
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
PlaneSensor
public PlaneSensor()
- Default Constructor. Creates a default PlaneSensor
PlaneSensor
public PlaneSensor(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default PlaneSensor
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_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
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
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
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
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
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
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
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.
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