H3D::SpaceWareSensor Class Reference
[H3D specific Node classes.]

This is a X3DSensorNode for reading values from a 3DConnexion motion controller such as the SpaceTraveller or SpaceMouse 5000. More...

#include <SpaceWareSensor.h>

Inheritance diagram for H3D::SpaceWareSensor:

Inheritance graph
List of all members.

Public Member Functions

 SpaceWareSensor (Inst< SFBool > _enabled=0, Inst< SFNode > _metadata=0, Inst< SFBool > _isActive=0, Inst< SFVec3f > _rawTranslation=0, Inst< SFRotation > _rawYaw=0, Inst< SFRotation > _rawPitch=0, Inst< SFRotation > _rawRoll=0, Inst< SFRotation > _rawRotation=0, Inst< ScaleTranslation > _instantTranslation=0, Inst< ScaleRotation > _instantYaw=0, Inst< ScaleRotation > _instantPitch=0, Inst< ScaleRotation > _instantRoll=0, Inst< ScaleRotation > _instantRotation=0, Inst< AccumulateTranslation > _accumulatedTranslation=0, Inst< AccumulateRotation > _accumulatedYaw=0, Inst< AccumulateRotation > _accumulatedPitch=0, Inst< AccumulateRotation > _accumulatedRoll=0, Inst< AccumulateRotation > _accumulatedRotation=0, Inst< SFFloat > _translationScale=0, Inst< SFFloat > _rotationScale=0, Inst< SFInt32 > _buttons=0, Inst< SFInt32 > _latestButtonPress=0, Inst< SFInt32 > _latestButtonRelease=0)
 Constructor.

Public Attributes

auto_ptr< SFVec3frawTranslation
 Contains the current translation as reported by the device.
auto_ptr< SFRotationrawYaw
 Contains the current rotation around the x-axis as reported by the device.
auto_ptr< SFRotationrawPitch
 Contains the current rotation around the y-axis as reported by the device.
auto_ptr< SFRotationrawRoll
 Contains the current rotation around the z-axis as reported by the device.
auto_ptr< SFRotationrawRotation
 Contains the current total rotation as reported by the device.
auto_ptr< ScaleTranslationinstantTranslation
 rawTranslation scaled by rotationScale
auto_ptr< ScaleRotationinstantYaw
 rawYaw scaled by rotationScale
auto_ptr< ScaleRotationinstantPitch
 rawPitch scaled by rotationScale
auto_ptr< ScaleRotationinstantRoll
 rawRoll scaled by rotationScale
auto_ptr< ScaleRotationinstantRotation
 Composite rotation of instantYaw, instantPitch and instantRoll.
auto_ptr< AccumulateTranslationaccumulatedTranslation
 The sum of all instantTranslation values.
auto_ptr< AccumulateRotationaccumulatedYaw
 The sum of all instantYaw values.
auto_ptr< AccumulateRotationaccumulatedPitch
 The sum of all instantPitch values.
auto_ptr< AccumulateRotationaccumulatedRoll
 The sum of all instantRoll values.
auto_ptr< AccumulateRotationaccumulatedRotation
 The sum of all instantRotation values.
auto_ptr< SFFloattranslationScale
 The scale factor for the instantTranslation field.
auto_ptr< SFFloatrotationScale
 The scale factor for the instant version of the different rotation fields.
auto_ptr< SFInt32buttons
 Integer representing the current status of the buttons.
auto_ptr< SFInt32latestButtonPress
 The button number of the last button that was pressed.
auto_ptr< SFInt32latestButtonRelease
 The button number of the last button that was released.
bool thread_motion_event
vector< ButtonData > thread_buttons
Vec3f thread_rotation
Vec3f thread_translation

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Classes

struct  AccumulateRotation
 This class is an AutoUpdate class that accumulates the rotation values routed to it, i.e. More...
struct  AccumulateTranslation
 This class is an AutoUpdate class that accumulates the Vec3f values routed to it, i.e. More...
struct  ScaleRotation
 Updates itself to the Rotation routed to it where the angle is scaled by the scale factor. More...
struct  ScaleTranslation
 Updates itself to the SFVec3f routed to it scaled by the scale factor. More...

Detailed Description

This is a X3DSensorNode for reading values from a 3DConnexion motion controller such as the SpaceTraveller or SpaceMouse 5000.

Internal routes:
SpaceWareSensor.dot


Member Data Documentation

auto_ptr< AccumulateRotation> H3D::SpaceWareSensor::accumulatedPitch
 

The sum of all instantPitch values.

Access type: outputOnly

SpaceWareSensor_accumulatedPitch.dot

auto_ptr< AccumulateRotation> H3D::SpaceWareSensor::accumulatedRoll
 

The sum of all instantRoll values.

Access type: outputOnly

SpaceWareSensor_accumulatedRoll.dot

auto_ptr< AccumulateRotation> H3D::SpaceWareSensor::accumulatedRotation
 

The sum of all instantRotation values.

Access type: outputOnly

SpaceWareSensor_accumulatedRotation.dot

auto_ptr< AccumulateTranslation> H3D::SpaceWareSensor::accumulatedTranslation
 

The sum of all instantTranslation values.

Access type: outputOnly

SpaceWareSensor_accumulatedTranslation.dot

auto_ptr< AccumulateRotation> H3D::SpaceWareSensor::accumulatedYaw
 

The sum of all instantYaw values.

Access type: outputOnly

SpaceWareSensor_accumulatedYaw.dot

auto_ptr< SFInt32 > H3D::SpaceWareSensor::buttons
 

Integer representing the current status of the buttons.

Each bit represents the status of a button where 1 means that it is pressed. There are three special button bits: SI_RESET_BIT, SI_PICK_BIT and SI_DIALOG_BIT (these buttons are not present on all devices). Aside from these the first button is the 0x2 bit, the second is the 0x4 and so on.

Access type: outputOnly

SpaceWareSensor_buttons.dot

auto_ptr< ScaleRotation> H3D::SpaceWareSensor::instantPitch
 

rawPitch scaled by rotationScale

Access type: outputOnly

SpaceWareSensor_instantPitch.dot

auto_ptr< ScaleRotation> H3D::SpaceWareSensor::instantRoll
 

rawRoll scaled by rotationScale

Access type: outputOnly

SpaceWareSensor_instantRoll.dot

auto_ptr< ScaleRotation> H3D::SpaceWareSensor::instantRotation
 

Composite rotation of instantYaw, instantPitch and instantRoll.

Access type: outputOnly

SpaceWareSensor_instantRotation.dot

auto_ptr< ScaleTranslation> H3D::SpaceWareSensor::instantTranslation
 

rawTranslation scaled by rotationScale

Access type: outputOnly

SpaceWareSensor_instantTranslation.dot

auto_ptr< ScaleRotation> H3D::SpaceWareSensor::instantYaw
 

rawYaw scaled by rotationScale

Access type: outputOnly

SpaceWareSensor_instantYaw.dot

auto_ptr< SFInt32 > H3D::SpaceWareSensor::latestButtonPress
 

The button number of the last button that was pressed.

Access type: outputOnly

SpaceWareSensor_latestButtonPress.dot

auto_ptr< SFInt32 > H3D::SpaceWareSensor::latestButtonRelease
 

The button number of the last button that was released.

Access type: outputOnly

SpaceWareSensor_latestButtonRelease.dot

auto_ptr< SFRotation> H3D::SpaceWareSensor::rawPitch
 

Contains the current rotation around the y-axis as reported by the device.

Access type: outputOnly

SpaceWareSensor_rawPitch.dot

auto_ptr< SFRotation> H3D::SpaceWareSensor::rawRoll
 

Contains the current rotation around the z-axis as reported by the device.

Access type: outputOnly

SpaceWareSensor_rawRoll.dot

auto_ptr< SFRotation> H3D::SpaceWareSensor::rawRotation
 

Contains the current total rotation as reported by the device.

Access type: outputOnly

SpaceWareSensor_rawRotation.dot

auto_ptr< SFVec3f> H3D::SpaceWareSensor::rawTranslation
 

Contains the current translation as reported by the device.

Access type: outputOnly

SpaceWareSensor_rawTranslation.dot

auto_ptr< SFRotation> H3D::SpaceWareSensor::rawYaw
 

Contains the current rotation around the x-axis as reported by the device.

Access type: outputOnly

SpaceWareSensor_rawYaw.dot

auto_ptr< SFFloat> H3D::SpaceWareSensor::rotationScale
 

The scale factor for the instant version of the different rotation fields.

Access type: inputOutput
Default value: 1

SpaceWareSensor_rotationScale.dot

auto_ptr< SFFloat> H3D::SpaceWareSensor::translationScale
 

The scale factor for the instantTranslation field.

Access type: inputOutput
Default value: 1

SpaceWareSensor_translationScale.dot


Generated on Thu Aug 24 12:40:03 2006 for H3D API by  doxygen 1.4.5