29 #ifndef __SPHERESENSOR_H__
30 #define __SPHERESENSOR_H__
99 Inst< SFString > _description = 0,
100 Inst< SFBool > _enabled = 0,
101 Inst< SFNode > _metadata = 0,
102 Inst< SFRotation > _offset = 0,
103 Inst< SFBool > _isActive = 0,
104 Inst< SFBool > _isOver = 0,
105 Inst< SFRotation > _rotation_changed = 0,
106 Inst< SFVec3f > _trackPoint_changed = 0 );
140 virtual void setDragOutputEvents(
bool _enabled,
147 Matrix4f *global_to_local = 0 );
151 Vec3f geometry_intersection;
155 Matrix4f geometry_global_to_local;
160 int intersectSegmentSphere( Vec3f a1, Vec3f a2,
H3DFloat & t, Vec3f &q );
167 Vec3f last_intersection;
173 Matrix4f active_global_to_local_matrix;
Contains the SFRotation field class.
Contains the SFVec2f field class.
Header file for X3DDragSensorNode, X3D scene-graph node.
The SphereSensor node maps pointing device motion into spherical rotation about the origin of the loc...
Definition: SphereSensor.h:94
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: SphereSensor.h:129
H3DUniquePtr< SFRotation > rotation_changed
For each position of the bearing when isActive is true, a rotation_changed event is sent which corres...
Definition: SphereSensor.h:126
bool new_radius
If true a new radius will be defined.
Definition: SphereSensor.h:175
H3DUniquePtr< SFRotation > offset
When the pointing device is deactivated and autoOffset is TRUE, offset is set to the last rotation_ch...
Definition: SphereSensor.h:116
This abstract node type is the base type for all drag-style pointing device sensors.
Definition: X3DDragSensorNode.h:42
H3D API namespace.
Definition: Anchor.h:38
The H3DNodeDatabase contains a mapping between a name of a Node and the constructor for the Node with...
Definition: H3DNodeDatabase.h:194
Used as input to intersection functions.
Definition: Node.h:114