3Gear Systems SDK  v0.9.34
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
HandTrackingClient::HandState Class Reference

Structure holding the position, rotational frame and other information relevant to the state of the hand. More...

#include <HandTrackingMessage.h>

Public Member Functions

 HandState (const Vector3f &position, const Quaternionf &rotation, const int clickCount)
 Constructs a hand state with the given position and rotation.
 
 HandState ()
 Constructs a hand state with position = (0,0,0) and the identity rotation.
 
const Vector3fgetPosition () const
 Position estimate for the hand. More...
 
const QuaternionfgetRotation () const
 
const int getClickCount () const
 

Detailed Description

Structure holding the position, rotational frame and other information relevant to the state of the hand.

This is the overall position and rotation estimate for the hand. It is used to pass around location information for clicks. Users needing more detailed information about individual finger joints should look at the PoseMessage.

Member Function Documentation

const int HandTrackingClient::HandState::getClickCount ( ) const
inline

Returns 1 if the hand is single-clicked, 2 if the hand is double-clicked, and 0 if neither (no clicks active).

const Vector3f& HandTrackingClient::HandState::getPosition ( ) const
inline

Position estimate for the hand.

This is defined by the rigid frame given by the back of the hand, so it will be considerably more stable than the individual finger position estimates given by the PoseMessage.

const Quaternionf& HandTrackingClient::HandState::getRotation ( ) const
inline

Overall orientation estimate for the hand.

This is defined by the rigid frame given by the back of the hand, so it will be considerably more stable than the individual finger position estimates given by the PoseMessage.


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