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

The most basic form of the hand tracking message includes a type, which hand was updated, and the position and rotational frame of each hand. The hand rotation is specified as a quaternion (x,y,z,w). More...

Inheritance diagram for ThreeGear.BasicMessage:
ThreeGear.HandTrackingMessage ThreeGear.BimanualPinchMessage ThreeGear.PinchMessage ThreeGear.PoseMessage

Public Member Functions

HandState GetHandState (int hand)
 The frame defined by the position and rotation of the back of the hand (excluding the wrist). More...
 
override string Serialize ()
 Serialize the message to a string, which could then be sent using the network protocol. More...
 

Static Public Member Functions

static BasicMessage Parse (TokenStream tokenStream, MessageType type)
 
- Static Public Member Functions inherited from ThreeGear.HandTrackingMessage
static HandTrackingMessage Deserialize (string data)
 Factory method that parses a HandTrackingMessage from a string More...
 

Protected Member Functions

 BasicMessage (MessageType type, Vector3D positionLeft, Quaternion rotationLeft, int clickCountLeft, Vector3D positionRight, Quaternion rotationRight, int clickCountRight)
 Constructs a BasicMessage. Should generally not be called by users of the API. More...
 
 BasicMessage (BasicMessage message)
 Copy constructor for a BasicMessage. More...
 
- Protected Member Functions inherited from ThreeGear.HandTrackingMessage
 HandTrackingMessage (MessageType type)
 
 HandTrackingMessage (HandTrackingMessage msg)
 
string ToString (double x)
 
string ToString (int i)
 
string ToString (Vector3D v)
 
string ToString (Quaternion q)
 

Protected Attributes

HandState[] hands
 

Additional Inherited Members

- Public Attributes inherited from ThreeGear.HandTrackingMessage
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...
 
- Properties inherited from ThreeGear.HandTrackingMessage
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

The most basic form of the hand tracking message includes a type, which hand was updated, and the position and rotational frame of each hand. The hand rotation is specified as a quaternion (x,y,z,w).

Constructor & Destructor Documentation

ThreeGear.BasicMessage.BasicMessage ( MessageType  type,
Vector3D  positionLeft,
Quaternion  rotationLeft,
int  clickCountLeft,
Vector3D  positionRight,
Quaternion  rotationRight,
int  clickCountRight 
)
inlineprotected

Constructs a BasicMessage. Should generally not be called by users of the API.

ThreeGear.BasicMessage.BasicMessage ( BasicMessage  message)
inlineprotected

Copy constructor for a BasicMessage.

Member Function Documentation

HandState ThreeGear.BasicMessage.GetHandState ( int  hand)
inline

The frame defined by the position and rotation of the back of the hand (excluding the wrist).

This frame is the most rigid, stable frame returned by the hand tracking and is probably the one you want to use for selection.

Parameters
handLeft (0) or right (1) hand.
Returns
The overall general hand state, excluding fingers.
override string ThreeGear.BasicMessage.Serialize ( )
inlinevirtual

Serialize the message to a string, which could then be sent using the network protocol.

Implements ThreeGear.HandTrackingMessage.

Reimplemented in ThreeGear.PoseMessage, ThreeGear.BimanualPinchMessage, and ThreeGear.PinchMessage.


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