![]() |
3Gear Systems SDK
v0.9.34
|
Message that indicates the progress of calibrating the user's hand scale. More...
#include <HandTrackingMessage.h>
Public Member Functions | |
CalibrationMessage (const float percentComplete, const float currentScale) | |
Constructs a CalibrationMessage. Should not generally be called by users of the API. | |
float | getPercentComplete () const |
float | getCurrentScale () const |
Contains the current hand scale; ranges between roughly 0.5 and 1.3. | |
MessageType | getType () const |
std::string | serialize () const |
Serializes the message to send over the network. More... | |
Additional Inherited Members |
Message that indicates the progress of calibrating the user's hand scale.
For the tracking to succeed, it is important to understand the overall size of the user's hands. In order to infer this quickly, we ask that new users spread their fingers out; calibrating then takes about a second. The CalibrationMessage provides a way for applications to provide feedback to the user about the state of the calibration process.
|
inline |
The percentage of completion of the calibration process. Ranges from 0 (no calibration active) to 1 (calibration complete).
|
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 send over the network.
Developers should not need to worry about this function unless they write their own networking code.
Implements HandTrackingClient::HandTrackingMessage.