All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.TouchSensor
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.TouchSensor
- public class TouchSensor
- 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 TouchSensor node please see the
VRML 97 TouchSensor specification
- Author:
- Justin Couch justin@vlc.com.au
-
TouchSensor()
- Default Constructor.
-
TouchSensor(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
clone()
- Make a clone of this object
-
get_hitNormal_changed()
- Get the value of the hitNormal_changed eventOut.
-
get_hitPoint_changed()
- Get the value of the hitPoint_changed eventOut.
-
get_hitTexCoord_changed()
- Get the value of the hitTexCoord_changed eventOut.
-
get_isOver()
- Get the last value of the isOver eventOut.
-
get_touchTime()
- Get the last touchTime eventOut.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
TouchSensor
public TouchSensor()
- Default Constructor. Creates a default TouchSensor
TouchSensor
public TouchSensor(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default TouchSensor
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
get_hitNormal_changed
public float[] get_hitNormal_changed()
- Get the value of the hitNormal_changed eventOut. This is the last
hitNormal that was generated for this sensor.
- Returns:
- Normal value where
return[0] = x, return[1] = y, return[2] = z
get_hitPoint_changed
public float[] get_hitPoint_changed()
- Get the value of the hitPoint_changed eventOut. This is the last
point on the object that was generated for this sensor.
- Returns:
- position value where
return[0] = x, return[1] = y, return[2] = z
get_hitTexCoord_changed
public float[] get_hitTexCoord_changed()
- Get the value of the hitTexCoord_changed eventOut. This is the last
texture Coordinate that was generated for this sensor.
- Returns:
- Texture corrdinate value where
return[0] = x, return[1] = y, return[2] = z
get_isOver
public boolean get_isOver()
- Get the last value of the isOver eventOut. This indicates when the
object is over this sensor but not necessariyl clicked on.
- Returns:
- True if the user's pointing device is over the object false
if not.
get_touchTime
public double get_touchTime()
- Get the last touchTime eventOut. This is generated when the user
touches the object.
- Returns:
- The time that the user last clicked on the object 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