LeapMotionFrame¶
- Inherit:
- SimObject
Description¶
UNDOCUMENTED!
Methods¶
-
int
LeapMotionFrame::getFrameInternalId()¶ Provides the internal ID for this frame.
Returns: Internal ID of this frame.
-
int
LeapMotionFrame::getFrameRealTime()¶ Get the real time that this frame was generated.
Returns: Real time of this frame in milliseconds.
-
int
LeapMotionFrame::getFrameSimTime()¶ Get the sim time that this frame was generated.
Returns: Sim time of this frame in milliseconds.
-
int
LeapMotionFrame::getHandCount()¶ Get the number of hands defined in this frame.
Returns: The number of defined hands.
-
int
LeapMotionFrame::getHandId(int index)¶ Get the ID of the requested hand.
Parameters: index – The hand index to check. Returns: ID of the requested hand.
-
int
LeapMotionFrame::getHandPointablesCount(int index)¶ Get the number of pointables associated with this hand.
Parameters: index – The hand index to check. Returns: Number of pointables that belong with this hand.
-
Point3I
LeapMotionFrame::getHandPos(int index)¶ Get the position of the requested hand. The position is the hand’s integer position converted to Torque 3D coordinates (in millimeters).
Parameters: index – The hand index to check. Returns: Integer position of the requested hand (in millimeters).
-
Point3F
LeapMotionFrame::getHandRawPos(int index)¶ Get the raw position of the requested hand. The raw position is the hand’s floating point position converted to Torque 3D coordinates (in millimeters).
Parameters: index – The hand index to check. Returns: Raw position of the requested hand.
-
TransformF
LeapMotionFrame::getHandRawTransform(int index)¶ Get the raw transform of the requested hand.
Parameters: index – The hand index to check. Returns: The raw position and rotation of the requested hand (in Torque 3D coordinates).
-
AngAxisF
LeapMotionFrame::getHandRot(int index)¶ Get the rotation of the requested hand. The Leap Motion hand rotation as converted into the Torque 3Dcoordinate system.
Parameters: index – The hand index to check. Returns: Rotation of the requested hand.
-
Point2F
LeapMotionFrame::getHandRotAxis(int index)¶ Get the axis rotation of the requested hand. This is the axis rotation of the hand as if the hand were a gamepad thumb stick. Imagine a stick coming out the top of the hand and tilting the hand front, back, left and right controls that stick. The values returned along the x and y stick axis are normalized from -1.0 to 1.0 with the maximum hand tilt angle for these values as defined by $LeapMotion::MaximumHandAxisAngle .
Parameters: index – The hand index to check. Returns: Axis rotation of the requested hand.
-
TransformF
LeapMotionFrame::getHandTransform(int index)¶ Get the transform of the requested hand.
Parameters: index – The hand index to check. Returns: The position and rotation of the requested hand (in Torque 3D coordinates).
-
bool
LeapMotionFrame::getHandValid(int index)¶ Check if the requested hand is valid.
Parameters: index – The hand index to check. Returns: True if the hand is valid.
-
int
LeapMotionFrame::getPointableHandIndex(int index)¶ Get the index of the hand that this pointable belongs to, if any.
Parameters: index – The pointable index to check. Returns: Index of the hand this pointable belongs to, or -1 if there is no associated hand.
-
int
LeapMotionFrame::getPointableId(int index)¶ Get the ID of the requested pointable.
Parameters: index – The pointable index to check. Returns: ID of the requested pointable.
-
float
LeapMotionFrame::getPointableLength(int index)¶ Get the length of the requested pointable.
Parameters: index – The pointable index to check. Returns: Length of the requested pointable (in millimeters).
-
Point3I
LeapMotionFrame::getPointablePos(int index)¶ Get the position of the requested pointable. The position is the pointable’s integer position converted to Torque 3D coordinates (in millimeters).
Parameters: index – The pointable index to check. Returns: Integer position of the requested pointable (in millimeters).
-
Point3F
LeapMotionFrame::getPointableRawPos(int index)¶ Get the raw position of the requested pointable. The raw position is the pointable’s floating point position converted to Torque 3D coordinates (in millimeters).
Parameters: index – The pointable index to check. Returns: Raw position of the requested pointable.
-
TransformF
LeapMotionFrame::getPointableRawTransform(int index)¶ Get the raw transform of the requested pointable.
Parameters: index – The pointable index to check. Returns: The raw position and rotation of the requested pointable (in Torque 3D coordinates).
-
AngAxisF
LeapMotionFrame::getPointableRot(int index)¶ Get the rotation of the requested pointable. The Leap Motion pointable rotation as converted into the Torque 3Dcoordinate system.
Parameters: index – The pointable index to check. Returns: Rotation of the requested pointable.
-
int
LeapMotionFrame::getPointablesCount()¶ Get the number of pointables defined in this frame.
Returns: The number of defined pointables.
-
TransformF
LeapMotionFrame::getPointableTransform(int index)¶ Get the transform of the requested pointable.
Parameters: index – The pointable index to check. Returns: The position and rotation of the requested pointable (in Torque 3D coordinates).
-
LeapMotionFramePointableType
LeapMotionFrame::getPointableType(int index)¶ Get the type of the requested pointable.
Parameters: index – The pointable index to check. Returns: Type of the requested pointable.
-
bool
LeapMotionFrame::getPointableValid(int index)¶ Check if the requested pointable is valid.
Parameters: index – The pointable index to check. Returns: True if the pointable is valid.
-
float
LeapMotionFrame::getPointableWidth(int index)¶ Get the width of the requested pointable.
Parameters: index – The pointable index to check. Returns: Width of the requested pointable (in millimeters).
-
bool
LeapMotionFrame::isFrameValid()¶ Checks if this frame is valid.
Returns: True if the frame is valid.