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 | Properties | List of all members
ThreeGear.PinchMessage Class Reference

Messages relating to pressing, releasing, dragging and moving of each hand. More...

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

Public Member Functions

 PinchMessage (MessageType type, Hand hand, Vector3D positionLeft, Quaternion rotationLeft, int clickCountLeft, Vector3D positionRight, Quaternion rotationRight, int clickCountRight)
 
override string Serialize ()
 Serialize the message to a string, which could then be sent using the network protocol. More...
 
- Public Member Functions inherited from ThreeGear.BasicMessage
HandState GetHandState (int hand)
 The frame defined by the position and rotation of the back of the hand (excluding the wrist). More...
 

Static Public Member Functions

static new PinchMessage Parse (TokenStream tokenStream, MessageType type)
 
- Static Public Member Functions inherited from ThreeGear.BasicMessage
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

 PinchMessage (BasicMessage message, Hand hand)
 
- Protected Member Functions inherited from ThreeGear.BasicMessage
 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

Hand hand
 
- Protected Attributes inherited from ThreeGear.BasicMessage
HandState[] hands
 

Properties

Hand Hand [get]
 Which hand the message returns to (left or right). More...
 

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...
 

Detailed Description

Messages relating to pressing, releasing, dragging and moving of each hand.

Pinch messages are always a single hand at a time. That is, if the user pinches left and right simultaneously, you will still get two separate PRESS messages (one for the right and one for the left). As a result, there is less lag for pinch messages (which can be reported as soon as they happen) than for the "higher-level" BimanualPinchMessage messages.

Note that we do not recommend responding to both the PinchMessage and the BimanualPinchMessage; applications should generally pick one or the other. Responding to both can lead to very confusing interactions (since most pinches will be detected at least twice).

Member Function Documentation

override string ThreeGear.PinchMessage.Serialize ( )
inlinevirtual

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

Reimplemented from ThreeGear.BasicMessage.

Property Documentation

Hand ThreeGear.PinchMessage.Hand
get

Which hand the message returns to (left or right).


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