All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.ProximitySensor
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.ProximitySensor
- public class ProximitySensor
- 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 ProximitySensor node please see the
VRML 97 ProximitySensor specification
- Author:
- Justin Couch justin@vlc.com.au
-
ProximitySensor()
- Default Constructor.
-
ProximitySensor(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
clone()
- Make a clone of this object
-
get_center()
- Get the location of the light in the local coordinate system
-
get_enterTime()
- Get the time when the user entered the sensor
-
get_exitTime()
- Get the time when the user left the sensor
-
get_orientation_changed()
- Get the value of the last orientatioin_changed eventOut from the node.
-
get_position_changed()
- Get the value of the last position_changed eventOut from the node.
-
get_size()
- Get the size to be of area monitored.
-
set_center(float[])
- Set the location of the light in the local coordinate system
-
set_size(float[])
- Set the size to be monitored.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
ProximitySensor
public ProximitySensor()
- Default Constructor. Creates a default ProximitySensor
ProximitySensor
public ProximitySensor(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default ProximitySensor
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_size
public void set_size(float pos[])
- Set the size to be monitored. The values are a box shape defining the
maximum values +/- in each extent.
- Parameters:
- size - The size in each axis
size[0] = x, size[1] = y, size[2] = z
get_size
public float[] get_size()
- Get the size to be of area monitored.
- Returns:
- The size in each axis
size[0] = x, size[1] = y, size[2] = z
set_center
public void set_center(float pos[])
- Set the location of the light in the local coordinate system
- Parameters:
- val - The position where
val[0] = x, val[1] = y, val[2] = z
get_center
public float[] get_center()
- Get the location of the light in the local coordinate system
- Returns:
- The position where
val[0] = x, val[1] = y, val[2] = z
get_position_changed
public float[] get_position_changed()
- Get the value of the last position_changed eventOut from the node.
- Returns:
- The position 3D coords where
pos[0] = x,, pos[1] = y, pos[2] = z
get_orientation_changed
public float[] get_orientation_changed()
- Get the value of the last orientatioin_changed eventOut from the node.
- Returns:
- The position 4D coords where
pos[0] = x,, pos[1] = y, pos[2] = z, pos[3] = angle
get_enterTime
public double get_enterTime()
- Get the time when the user entered the sensor
- Returns:
- The time in seconds
get_exitTime
public double get_exitTime()
- Get the time when the user left the sensor
- Returns:
- The time in seconds
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