29 #ifndef __H3D_OCULUSRIFTSENSOR_H__
30 #define __H3D_OCULUSRIFTSENSOR_H__
66 public AutoUpdate< OnNewValueSField< SFBool > > {
69 virtual void onNewValue(
const bool &new_value);
72 class H3DAPI_API MSAAEnabledField :
73 public AutoUpdate< OnNewValueSField< SFBool > > {
76 virtual void onNewValue(
const bool &new_value);
79 class H3DAPI_API PerformanceStatsField :
80 public AutoUpdate< OnNewValueSField< SFString > > {
83 virtual void onNewValue(
const string &new_value);
91 Inst< SFBool > _enabled = 0,
92 Inst< SFNode > _metadata = 0,
93 Inst< SFBool > _isActive = 0,
94 Inst< SFVec3f > _headPosition = 0,
95 Inst< SFRotation > _headOrientation = 0,
96 Inst< PerformanceStatsField > _performanceStats = 0,
97 Inst< RecenterTrackingField > _recenterTracking = 0,
98 Inst< MSAAEnabledField > _MSAAEnabled = 0,
99 Inst< SFVec3f > _leftHandPosition = 0,
100 Inst< SFRotation > _leftHandOrientation = 0,
101 Inst< SFFloat > _leftHandTrigger = 0,
102 Inst< SFFloat > _leftHandIndexTrigger = 0,
103 Inst< SFVec2f > _leftHandThumbstick = 0,
104 Inst< SFFloat > _leftHandVibrationFrequency = 0,
105 Inst< SFFloat > _leftHandVibrationAmplitude = 0,
106 Inst< SFVec3f > _rightHandPosition = 0,
107 Inst< SFRotation > _rightHandOrientation = 0,
108 Inst< SFFloat > _rightHandTrigger = 0,
109 Inst< SFFloat > _rightHandIndexTrigger = 0,
110 Inst< SFVec2f > _rightHandThumbstick = 0,
111 Inst< SFFloat > _rightHandVibrationFrequency = 0,
112 Inst< SFFloat > _rightHandVibrationAmplitude = 0,
113 Inst< SFInt32 > _buttons = 0,
114 Inst< SFInt32 > _touches = 0
117 ~OculusRiftSensor() {
293 struct H3DAPI_API Update
297 (owner)->updateValues();
301 H3DUniquePtr< Update > update;
Header file for the Oculus Rift support code.
Contains the SFFloat field class.
Contains the SFInt32 field class.
Contains the SFRotation field class.
Contains the SFVec2f field class.
Contains the SFVec3f field class.
Header file for X3DSensorNode, X3D scene-graph node.
This class is an AutoUpdate class that sets the field accumulatedRotation to its input value and also...
Definition: OculusRiftSensor.h:66
This is a X3DSensorNode for reading values from a Oculus Rift HMD.
Definition: OculusRiftSensor.h:56
static H3DNodeDatabase database
The H3DNodeDatabase for this node.
Definition: OculusRiftSensor.h:281
H3DUniquePtr< PerformanceStatsField > performanceStats
Makes it possible to show performance stats of the oculus.
Definition: OculusRiftSensor.h:144
H3DUniquePtr< SFFloat > leftHandVibrationFrequency
Used to control the vibration frequency of the left touch controller.
Definition: OculusRiftSensor.h:203
H3DUniquePtr< SFFloat > rightHandVibrationAmplitude
Used to control the vibration amplitude of the right touch controller.
Definition: OculusRiftSensor.h:262
H3DUniquePtr< SFVec3f > leftHandPosition
The position of the left touch controller.
Definition: OculusRiftSensor.h:167
H3DUniquePtr< SFVec2f > rightHandThumbstick
The value for the right hand thumb stick.
Definition: OculusRiftSensor.h:246
H3DUniquePtr< RecenterTrackingField > recenterTracking
Recenter the tracking for oculus.
Definition: OculusRiftSensor.h:152
H3DUniquePtr< SFRotation > headOrientation
Contains the current head orientation around the x-axis as reported by the device.
Definition: OculusRiftSensor.h:133
H3DUniquePtr< SFRotation > leftHandOrientation
The orientation of the left touch controller.
Definition: OculusRiftSensor.h:174
H3DUniquePtr< SFRotation > rightHandOrientation
The orientation of the right touch controller.
Definition: OculusRiftSensor.h:225
H3DUniquePtr< SFFloat > leftHandIndexTrigger
The value for the left hand index trigger.
Definition: OculusRiftSensor.h:188
H3DUniquePtr< SFFloat > rightHandIndexTrigger
The value for the right hand index trigger.
Definition: OculusRiftSensor.h:239
H3DUniquePtr< SFFloat > leftHandTrigger
The value for the left hand trigger.
Definition: OculusRiftSensor.h:181
H3DUniquePtr< SFVec3f > rightHandPosition
The position of the right touch controller.
Definition: OculusRiftSensor.h:218
H3DUniquePtr< SFVec3f > headPosition
Contains the current head translation as reported by the device.
Definition: OculusRiftSensor.h:125
H3DUniquePtr< SFFloat > leftHandVibrationAmplitude
Used to control the vibration amplitude of the left touch controller.
Definition: OculusRiftSensor.h:211
H3DUniquePtr< SFFloat > rightHandVibrationFrequency
Used to control the vibration frequency of the right touch controller.
Definition: OculusRiftSensor.h:254
H3DUniquePtr< SFInt32 > touches
Setting some touched output state.
Definition: OculusRiftSensor.h:276
H3DUniquePtr< SFInt32 > buttons
Indicates which buttons are pressed.
Definition: OculusRiftSensor.h:269
H3DUniquePtr< SFVec2f > leftHandThumbstick
The value for the left hand thumb stick.
Definition: OculusRiftSensor.h:195
H3DUniquePtr< MSAAEnabledField > MSAAEnabled
Controls multi sample anti aliasing on the oculus.
Definition: OculusRiftSensor.h:160
H3DUniquePtr< SFFloat > rightHandTrigger
The value for the right hand trigger.
Definition: OculusRiftSensor.h:232
This abstract node type is the base type for all sensors.
Definition: X3DSensorNode.h:40
The OculusRiftHandler class provides support for the Oculus Rift VR device.
Definition: OculusRiftHandler.h:49
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