All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.geometry.GeometrySensor

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

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

Geometry sensor abstract class for the plane, sphere and cylinder sensors

Author:
Justin Couch justin@vlc.com.au

Variable Index

 o _autoOffset
Internal storage of the autoOffset condition
 o _get_rotation_changed
Reference to the get_rotation_changed eventOut.
 o _get_trackPoint_changed
Reference to the trackPoint_changed eventOut.
 o _offset
Internal storage of the currently set offset
 o _set_autoOffset
Reference to the set_autoOffset eventIn.
 o _set_offset
Reference to the set_offset eventIn.

Constructor Index

 o GeometrySensor()
Empty constructor to prevent people creating instances of this class
 o GeometrySensor(Browser)
Constructor to pass the browser reference down to the base class

Method Index

 o get_autoOffset()
Get the current value of the autoOffset node
 o get_offset()
Get the current offset of the sensor
 o get_rotation_changed()
Get the value of the rotation_changed eventOut
 o get_trackPoint_changed()
Get the value of the trackPoint_changed eventOut
 o set_autoOffset(boolean)
Set the autoOffset condition
 o set_offset(float[])
Set the offset of the sensor

Variables

 o _set_offset
 protected EventInSFRotation _set_offset
Reference to the set_offset eventIn. This should be supplied by the derived class after creating its node instance.

 o _set_autoOffset
 protected EventInSFBool _set_autoOffset
Reference to the set_autoOffset eventIn. This should be supplied by the derived class after creating its node instance.

 o _get_rotation_changed
 protected EventOutSFRotation _get_rotation_changed
Reference to the get_rotation_changed eventOut. This should be supplied by the derived class after creating its node instance.

 o _get_trackPoint_changed
 protected EventOutSFVec3f _get_trackPoint_changed
Reference to the trackPoint_changed eventOut. This should be supplied by the derived class after creating its node instance.

 o _offset
 protected float _offset[]
Internal storage of the currently set offset

 o _autoOffset
 protected boolean _autoOffset
Internal storage of the autoOffset condition

Constructors

 o GeometrySensor
 protected GeometrySensor()
Empty constructor to prevent people creating instances of this class

 o GeometrySensor
 protected GeometrySensor(Browser b)
Constructor to pass the browser reference down to the base class

Parameters:
b - The browser reference to be passed on

Methods

 o set_offset
 public void set_offset(float offset[])
Set the offset of the sensor

Parameters:
offset - A vector of the offset where offset[0] = x, offset[1] = y, offset[2] = z
 o get_offset
 public float[] get_offset()
Get the current offset of the sensor

Returns:
A vector of the offset where offset[0] = x, offset[1] = y, offset[2] = z
 o set_autoOffset
 public void set_autoOffset(boolean auto)
Set the autoOffset condition

Parameters:
auto - True will enable autoOffset of the sensor
 o get_autoOffset
 public boolean get_autoOffset()
Get the current value of the autoOffset node

Returns:
The current setting.
 o get_rotation_changed
 public float[] get_rotation_changed()
Get the value of the rotation_changed eventOut

Returns:
The last value that appeared on the eventOut.
 o get_trackPoint_changed
 public float[] get_trackPoint_changed()
Get the value of the trackPoint_changed eventOut

Returns:
The last value that appeared on the eventOut

All Packages  Class Hierarchy  This Package  Previous  Next  Index