29 #ifndef __PROXIMITYSENSOR_H__
30 #define __PROXIMITYSENSOR_H__
133 virtual void setValue(
const bool &b,
int _id = 0 ) {
158 Inst< SFVec3f > _center = 0,
159 Inst< SFBool > _enabled = 0,
160 Inst< SFVec3f > _size = 0,
161 Inst< SFTime > _enterTime = 0,
162 Inst< SFTime > _exitTime = 0,
163 Inst< SFBool > _isActive = 0,
164 Inst< SFVec3f > _centerOfRotation_changed = 0,
165 Inst< SFRotation > _orientation_changed = 0,
166 Inst< SFVec3f > _position_changed = 0);
220 Vec3f can_prev_vp_pos;
Header file for NavigationInfo, X3D scene-graph node.
Contains the SFRotation field class.
Contains the SFVec3f field class.
Header file for X3DEnvironmentalSensorNode, X3D scene-graph node.
Header file for X3DViewpointNode, X3D scene-graph node.
The SetBoolean class is specialize to set the value of either the enterTime or exitTime field in the ...
Definition: ProximitySensor.h:129
virtual void update()
Make the field up to date given that an event has occured.
Definition: ProximitySensor.h:145
The ProximitySensor node generates events when the viewer enters, exits, and moves within a region in...
Definition: ProximitySensor.h:122
H3DUniquePtr< SFRotation > orientation_changed
The orientation_changed fields send events whenever the user is contained within the proximity region...
Definition: ProximitySensor.h:193
TraverseInfo * prev_travinfoadr
Adress of traverseInfo only interested in adress, what it points to will be invalid.
Definition: ProximitySensor.h:215
H3DUniquePtr< SetTime > set_time
Sets enterTime if the set_boolean value is set to TRUE else sets exitTime.
Definition: ProximitySensor.h:211
H3DUniquePtr< SFVec3f > position_changed
The position_changed fields send events whenever the user is contained within the proximity region an...
Definition: ProximitySensor.h:203
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: ProximitySensor.h:224
H3DUniquePtr< SFVec3f > centerOfRotation_changed
The centerOfRotation_changed field sends events whenever the user is contained within the proximity r...
Definition: ProximitySensor.h:183
virtual void setValue(const bool &v, int id=0)
Set the value of the field.
Definition: SField.h:215
virtual void update()
Make the field up to date given that an event has occured.
Definition: SField.h:181
TraverseInfo is a structure that is passed along when traversing the scene graph.
Definition: TraverseInfo.h:57
This abstract node type is the base type for all sensors.
Definition: X3DEnvironmentalSensorNode.h:43
H3DUniquePtr< SFTime > enterTime
enterTime
Definition: X3DEnvironmentalSensorNode.h:74
H3DUniquePtr< SFTime > exitTime
exitTime
Definition: X3DEnvironmentalSensorNode.h:80
H3D API namespace.
Definition: Anchor.h:38
The AutoUpdate field is a template to force the BaseField to update itself as soon as an event is rec...
Definition: FieldTemplates.h:130
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194