29 #ifndef __VISIBILITYSENSOR_H__
30 #define __VISIBILITYSENSOR_H__
97 Inst< SFNode > _metadata = 0,
98 Inst< SFVec3f > _center = 0,
99 Inst< SFVec3f > _size = 0,
100 Inst< SFTime > _enterTime = 0,
101 Inst< SFTime > _exitTime = 0,
102 Inst< SFBool > _enabled = 0,
103 Inst< SFBool > _isActive = 0,
104 Inst< SFBool > _viewFrustumMode = 0 );
107 if ( prev_travinfoadr && glIsQuery( queryId ) )
108 glDeleteQueriesARB(1, &queryId );
117 virtual void setValue(
const bool &b,
int _id = 0 ) {
169 int visib_pix_no_threshold;
174 Vec3f can_prev_vp_pos;
182 bool queryNoViewFrustum( std::vector<Vec3f> &global_points );
184 bool queryViewFrustum( std::vector<Vec3f> &global_points );
Contains the SFVec3f field class.
Header file for X3DEnvironmentalSensorNode, X3D scene-graph node.
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
The SetTime class is specialize to set the value of either the inputTrue or inputFalse field in the B...
Definition: VisibilitySensor.h:113
virtual void update()
Sets either the inputTrue or inputFalse field depending on the new value.
Definition: VisibilitySensor.h:129
virtual void setValue(const bool &b, int _id=0)
Sets either the inputTrue or inputFalse field depending on the new value.
Definition: VisibilitySensor.h:117
The VisibilitySensor node detects visibility changes of a rectangular box as the user navigates the w...
Definition: VisibilitySensor.h:92
H3DUniquePtr< SFBool > viewFrustumMode
If true, isActive field will be true as long as the sensor stays within the view frustum without bein...
Definition: VisibilitySensor.h:156
H3DUniquePtr< SetTime > set_time
Sets enterTime if the set_boolean value is set to TRUE.
Definition: VisibilitySensor.h:148
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: VisibilitySensor.h:177
TraverseInfo * prev_travinfoadr
Adress of traverseInfo only interested in adress, what it points to will be invalid.
Definition: VisibilitySensor.h:160
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