![]() |
3Gear Systems SDK
v0.9.34
|
#include <HandTrackingMessage.h>
Public Member Functions | |
MessageType | getType () const |
const HandState & | getHandState (int hand) const |
Returns the overall general hand state, excluding fingers. More... | |
BasicMessage (const MessageType type, const Vector3f &positionLeft, const Quaternionf &rotationLeft, const int clickCountLeft, const Vector3f &positionRight, const Quaternionf &rotationRight, const int clickCountRight) | |
Constructs a BasicMessage. Should not generally be called by users of the API. | |
std::string | serialize () const |
Additional Inherited Members |
The basic form of the message includes a type, which hand was updated, and the position and rotational frame of each hand.
|
inline |
Returns the overall general hand state, excluding fingers.
This is the most rigid, stable frame returned by the hand tracking and is probably the one you want to use for selection. It is defined by the position and rotation of the back of the hand (excluding the wrist).
|
inlinevirtual |
Returns the message type (e.g. PRESSED or DRAGGED). The message type is useful for distinguishing between similar messages, e.g., between PRESSED and RELEASED, which are both PinchMessages.
Implements HandTrackingClient::HandTrackingMessage.
|
virtual |
Serializes the message to a string, which could then be output over the network.
Implements HandTrackingClient::HandTrackingMessage.
Reimplemented in HandTrackingClient::PoseMessage, HandTrackingClient::BimanualPinchMessage, and HandTrackingClient::PinchMessage.