3Gear Systems SDK  v0.9.34
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
ThreeGear.HandTrackingMessage Class Referenceabstract

Base class for all hand-tracking messages / events. More...

Inheritance diagram for ThreeGear.HandTrackingMessage:
ThreeGear.BasicMessage ThreeGear.CalibrationMessage ThreeGear.PointMessage ThreeGear.UserMessage ThreeGear.WelcomeMessage ThreeGear.BimanualPinchMessage ThreeGear.PinchMessage ThreeGear.PoseMessage

Public Member Functions

abstract String Serialize ()
 

Static Public Member Functions

static HandTrackingMessage Deserialize (string data)
 Factory method that parses a HandTrackingMessage from a string More...
 

Public Attributes

const int N_JOINTS = 17
 The number of joints in the hand model, currently 17 (arm, wrist, and 3 each for the 5 fingers). More...
 
const int N_FINGERS = 5
 The number of fingers is five (thumb, index, middle, ring, pinky). More...
 
const int N_HANDS = 2
 Two hands (left and right). More...
 
const int N_POSES = 7
 The number of specifically recognized poses. More...
 
const int N_FINGER_DOFS_PER_HAND = 16
 The number of finger degrees of freedom per hand. More...
 

Protected Member Functions

 HandTrackingMessage (MessageType type)
 
 HandTrackingMessage (HandTrackingMessage msg)
 
string ToString (double x)
 
string ToString (int i)
 
string ToString (Vector3D v)
 
string ToString (Quaternion q)
 

Properties

MessageType Type [get]
 The message type is useful for distinguishing between similar messages, e.g., between PRESSED and RELEASED, which are both PinchMessages. More...
 

Detailed Description

Base class for all hand-tracking messages / events.

Member Function Documentation

static HandTrackingMessage ThreeGear.HandTrackingMessage.Deserialize ( string  data)
inlinestatic

Factory method that parses a HandTrackingMessage from a string

Returns
Returns the parsed hand tracking message or null if parsing fails

Member Data Documentation

const int ThreeGear.HandTrackingMessage.N_FINGER_DOFS_PER_HAND = 16

The number of finger degrees of freedom per hand.

const int ThreeGear.HandTrackingMessage.N_FINGERS = 5

The number of fingers is five (thumb, index, middle, ring, pinky).

const int ThreeGear.HandTrackingMessage.N_HANDS = 2

Two hands (left and right).

const int ThreeGear.HandTrackingMessage.N_JOINTS = 17

The number of joints in the hand model, currently 17 (arm, wrist, and 3 each for the 5 fingers).

const int ThreeGear.HandTrackingMessage.N_POSES = 7

The number of specifically recognized poses.

For a complete list, see HandPose

Property Documentation

MessageType ThreeGear.HandTrackingMessage.Type
get

The message type is useful for distinguishing between similar messages, e.g., between PRESSED and RELEASED, which are both PinchMessages.

if (msg.Type == MessageType.PRESSED) { // Handle press } else if (msg.Type == MessageType.RELEASED) { // Handle release }


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