DTrackSDK  v2.9.0
Public Member Functions | Public Attributes | List of all members
DTrackSDK_Datatypes::DTrackFlyStick Struct Reference

A.R.T. Flystick data (6DOF + buttons). More...

#include <DTrackDataTypes.hpp>

Public Member Functions

bool isTracked () const
 Returns if Flystick is currently tracked. More...
 
DTrackQuaternion getQuaternion () const
 Returns rotation as quaternion. More...
 

Public Attributes

int id
 ID number (starting with 0)
 
double quality
 Quality (0.0 <= qu <= 1.0, no tracking if -1.0)
 
int num_button
 Number of buttons.
 
int button [DTRACKSDK_FLYSTICK_MAX_BUTTON]
 Button state (1 pressed, 0 not pressed): 0 front, 1..n-1 right to left.
 
int num_joystick
 Number of joystick values.
 
double joystick [DTRACKSDK_FLYSTICK_MAX_JOYSTICK]
 Joystick value (-1.0 <= joystick <= 1.0); 0 horizontal, 1 vertical.
 
double loc [3]
 Location (in [mm])
 
double rot [9]
 Rotation matrix (column-wise)
 

Detailed Description

A.R.T. Flystick data (6DOF + buttons).

Note the maximum number of buttons and joystick values.

Definition at line 146 of file DTrackDataTypes.hpp.

Member Function Documentation

◆ getQuaternion()

DTrackQuaternion DTrackSDK_Datatypes::DTrackFlyStick::getQuaternion ( ) const
inline

Returns rotation as quaternion.

Returns
Quaternion

Definition at line 170 of file DTrackDataTypes.hpp.

References rot.

◆ isTracked()

bool DTrackSDK_Datatypes::DTrackFlyStick::isTracked ( ) const
inline

Returns if Flystick is currently tracked.

Returns
Is tracked?

Definition at line 162 of file DTrackDataTypes.hpp.

References quality.


The documentation for this struct was generated from the following file: