All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.generic.geometry.GeometrySensor

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.generic.geometry.ChildrenNode
                   |
                   +----vlc.vrml.generic.geometry.Sensor
                           |
                           +----vlc.vrml.generic.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 _offset
Internal storage of the currently set offset

Constructor Index

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

Method Index

 o clone()
Make a clone of this object
 o get_autoOffset()
Get the current value of the autoOffset node
 o get_offset()
Get the current offset of the sensor
 o set_autoOffset(boolean)
Set the autoOffset condition
 o set_offset(float[])
Set the offset of the sensor

Variables

 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

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 clone
 public Object clone()
Make a clone of this object

Returns:
A deep clone copy of this object
Overrides:
clone in class Sensor

All Packages  Class Hierarchy  This Package  Previous  Next  Index