GeoProximitySensor
Overview
GeoProximitySensor generates events when the viewer enters, exits and moves within a region of space (defined by a box).
The GeoProximitySensor node belongs to the Geospatial component and requires at least level 2, its default container field is children. It is available from X3D version 3.2 or higher.
Hierarchy
1
2
3
4
5
+ X3DNode
+ X3DChildNode
+ X3DSensorNode
+ X3DEnvironmentalSensorNode
+ GeoProximitySensor
Fields
SFNode [in, out] metadata NULL [X3DMetadataObject]
Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
Hint
SFString [in, out] description “”
Author-provided prose that describes intended purpose of the node.
Hint
- Many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for “ quotation-mark character).
SFNode [ ] geoOrigin NULL [GeoOrigin] (deprecated)
Single contained GeoOrigin node that can specify a local coordinate frame for extended precision.
Hint
Warning
- XML validation requires placement as first child node following contained metadata nodes (if any).
MFString [ ] geoSystem [ “GD”, “WE” ]
Identifies spatial reference frame: Geodetic (GD), Geocentric (GC), Universal Transverse Mercator (UTM). Supported values: “GD” “UTM” or “GC” followed by additional quoted string parameters as appropriate for the type.
Hints
- X3D Architecture 25.2.2 Spatial reference frames
- X3D Architecture 25.2.4 Specifying geospatial coordinates
- UTM is Universal Transverse Mercator coordinate system
Warning
- Deprecated values are GDC (replaced by GD) and GCC (replaced by GC).
SFBool [in, out] enabled TRUE
Enables/disables node operation.
SFVec3f [in, out] size 0 0 0 [0,∞)
size of Proximity box around center location, oriented within local transformation frame.
Hint
- size 0 0 0 is same as enabled false.
SFVec3d [in, out] center 0 0 0 (-∞,∞) (starting with vs. 3.3)
Position offset from origin of local coordinate system.
SFVec3d [in, out] geoCenter 0 0 0 (-∞,∞)
Position offset from origin of local coordinate system.
Hint
Warning
- Requires X3D
profile='Full'
or else include<component name='Geospatial' level='1'/>
SFBool [out] isActive
isActive true/false events are sent as viewer enters/exits Proximity box. isActive=true when viewer enters Proximity box, isActive=false when viewer exits Proximity box.
Warning
- It is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
SFTime [out] enterTime
Time event generated when user’s camera enters the box.
Warning
- It is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
SFTime [out] exitTime
Time event generated when user’s camera exits the box.
Warning
- It is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
SFVec3d [out] geoCoord_changed
Sends geospatial coordinates of viewer’s position corresponding to world position returned by position_changed.
Hint
Warnings
- Requires X3D
profile='Full'
or else include<component name='Geospatial' level='1'/>
- It is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
SFVec3f [out] position_changed
Sends translation event relative to center.
Warning
- It is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
SFRotation [out] orientation_changed
Sends rotation event relative to center.
Warning
- It is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
SFVec3f [out] centerOfRotation_changed
Sends changed centerOfRotation values, likely caused by user interaction.
Warning
- It is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
Advice
Hints
- Multiple USEd instances are cumulative, but avoid overlaps.
- Can first use GeoTransform to relocate/reorient box.
- Surround entire world to start behaviors once scene is loaded.
- X3D for Advanced Modeling (X3D4AM) slideset
Warning
- Requires X3D
profile='Full'
or else include<component name='Geospatial' level='2'/>