public class SoVRMLGeoTouchSensor extends SoVRMLTouchSensor
SoVRMLGeoTouchSensor
node tracks the location and state of a pointing device and detects when the user points at geometry contained by the parent group of the GeoTouchSensor. This node provides the same functionality as a TouchSensor but also provides the ability to return the geographic coordinate under the pointing device.
This section describes the expected behavior of the node in a conforming X3D / VRML97 browser application. In some cases, the application is responsible for implementing portions of the expected behavior. Open Inventor viewer classes and IVF classes implement some of the application behaviors.
This section may reference portions of the X3D specification that are not present in this help file. The complete X3D spec is available at
The SoVRMLGeoTouchSensor
node tracks the location and state of a pointing device and detects when the user points at geometry contained by the parent group of the GeoTouchSensor. This node provides the same functionality as a TouchSensor but also provides the ability to return the geographic coordinate under the pointing device. The description
field in the GeoTouchSensor node specifies a textual description of the GeoTouchSensor node. This may be used by browser-specific user interfaces that wish to present users with more detailed information about the GeoTouchSensor. A SoVRMLGeoTouchSensor
can be enabled or disabled by sending an event of value true or false to the enabled
field. A disabled GeoTouchSensor does not track user input or send events. The geoOrigin
field is used to specify a local coordinate frame for extended precision as described in 25.2.5 Dealing with high-precision coordinates. The geoSystem
field is used to define the spatial reference frame and is described in 25.2.3 Specifying a spatial reference frame. The fields hitNormal_changed
, hitPoint_changed
, hitTexCoord_changed
, isActive
, isOver
, and touchTime
all have the same meaning as in the TouchSensor node. The hitGeoCoord_changed
field is generated while the pointing device is pointing towards the SoVRMLGeoTouchSensor
's geometry (i.e., when isOver is true). It is a field containing the geospatial coordinate for the point of intersection between the pointing device's location and the underlying geometry. The value of the geoSystem string defines the spatial reference frame of the geospatial coordinate. For example, given the default geoSystem value of "GD", the hitGeoCoord_changed
field will be in the format
(see 25.2.4 Specifying geospatial coordinates). The<latitude> <longitude> <elevation>
hitGeoCoordString_changed
is the MFString equivalent of hitGeoCoord_changed
.
File format/default:
VRMLGeoTouchSensor {
enabled | true |
description | "" |
metadata | NULL |
geoOrigin | NULL |
geoSystem | ["GD","WE"] |
SoSFString | description_changed |
SoSFBool | enabled_changed |
SoSFVec3f | hitNormal_changed |
SoSFVec3f | hitPoint_changed |
SoSFVec2f | hitTexCoord_changed |
SoSFVec2f | hitGeoCoord_changed |
SoMFString | hitGeoCoordString_changed |
SoSFBool | isActive |
SoSFBool | isOver (Note: Not implemented) |
SoSFTime | touchTime |
SoSFNode | metadata_changed |
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFNode |
geoOrigin
Deprecated.
An
SoVRMLGeoOrigin node specifying the origin of the local coordinate system. |
SoMFString |
geoSystem
Deprecated.
Defines the spatial reference frame.
|
SoSFVec3f |
hitGeoCoord_changed
Deprecated.
Output event sent when cursor on shape.
|
SoMFString |
hitGeoCoordString_changed
Deprecated.
Output event sent when cursor on shape.
|
description, enabled, hitNormal_changed, hitPoint_changed, hitTexCoord_changed, isActive, isOver, touchTime
metadata
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoVRMLGeoTouchSensor()
Deprecated.
Constructor.
|
enableEvents, isEventsEnabled
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFNode geoOrigin
SoVRMLGeoOrigin
node specifying the origin of the local coordinate system.public final SoMFString geoSystem
public final SoSFVec3f hitGeoCoord_changed
public final SoMFString hitGeoCoordString_changed
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com