29 #ifndef __PLANESENSOR_H__
30 #define __PLANESENSOR_H__
119 virtual void onValueChange(
const Vec3f & ) {
121 ps->last_offset_axis_rotation_inv =
128 Inst< SFString > _description = 0,
129 Inst< SFBool > _enabled = 0,
130 Inst< SFVec2f > _maxPosition = 0,
131 Inst< SFNode > _metadata = 0,
132 Inst< SFVec2f > _minPosition = 0,
133 Inst< SFOffset > _offset = 0,
134 Inst< SFBool > _isActive = 0,
135 Inst< SFBool > _isOver = 0,
136 Inst< SFVec3f > _trackPoint_changed = 0,
137 Inst< SFVec3f > _translation_changed = 0,
138 Inst< SFRotation > _axisRotation = 0 );
199 virtual void setDragOutputEvents(
bool _enabled,
206 Matrix4f *global_to_local = 0 );
210 Vec3f geometry_intersection;
214 Matrix4f geometry_global_to_local;
219 int intersectLinePlane( Vec3f a, Vec3f b,
float &t, Vec3f &q );
223 Vec3f last_intersection;
231 Matrix4f active_global_to_local_matrix;
235 Matrix4f last_offset_axis_rotation_inv;
Contains the SFRotation field class.
Contains the SFVec2f field class.
Header file for X3DDragSensorNode, X3D scene-graph node.
Template for adding the virtual function onValueChange that can be overridden in subclasses in order ...
Definition: FieldTemplates.h:49
Class used to store some information about axisRotation when offset is set, in order to set the corre...
Definition: PlaneSensor.h:116
The PlaneSensor node maps pointing device motion into two-dimensional translation in a plane parallel...
Definition: PlaneSensor.h:109
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: PlaneSensor.h:189
H3DUniquePtr< SFOffset > offset
Stores the last translation_changed value at deactivation if autoOffset is true.
Definition: PlaneSensor.h:167
H3DUniquePtr< SFVec2f > minPosition
minPosition can be used to clamp translation_changed events
Definition: PlaneSensor.h:157
H3DUniquePtr< SFVec2f > maxPosition
maxPosition can be used to clamp translation_changed events.
Definition: PlaneSensor.h:148
H3DUniquePtr< SFRotation > axisRotation
The local sensor coordinate system is created by applying the axisRotation field value to the local c...
Definition: PlaneSensor.h:186
H3DUniquePtr< SFVec3f > translation_changed
For each subsequent movement of the bearing, a translation_changed event is output which corresponds ...
Definition: PlaneSensor.h:177
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