The LeapPointable class reports the physical characteristics of a detected finger or tool. More...
Inherits NSObject.
Inherited by LeapFinger, and LeapTool.
Class Methods | |
| (LeapPointable *) | + invalid |
| Returns an invalid LeapPointable object. More... | |
Properties | |
| LeapVector * | direction |
| The direction in which this finger or tool is pointing. More... | |
| LeapFrame * | frame |
| The LeapFrame associated with this LeapPointable object. More... | |
| LeapHand * | hand |
| The LeapHand associated with a finger. More... | |
| int32_t | id |
| A unique ID assigned to this LeapPointable object, whose value remains the same across consecutive frames while the tracked finger or tool remains visible. More... | |
| BOOL | isExtended |
| Whether or not this Pointable is in an extended posture. More... | |
| BOOL | isFinger |
| Whether or not the LeapPointable is classified a finger. More... | |
| BOOL | isTool |
| Whether or not the LeapPointable is classified to be a tool. More... | |
| BOOL | isValid |
| Reports whether this is a valid LeapPointable object. More... | |
| float | length |
| The estimated length of the finger or tool in millimeters. More... | |
| LeapVector * | stabilizedTipPosition |
| The stabilized tip position of this LeapPointable. More... | |
| float | timeVisible |
| The duration of time this Pointable has been visible to the Leap Motion Controller. More... | |
| LeapVector * | tipPosition |
| The tip position in millimeters from the Leap origin. More... | |
| LeapVector * | tipVelocity |
| The rate of change of the tip position in millimeters/second. More... | |
| float | touchDistance |
| A value proportional to the distance between this LeapPointable object and the adaptive touch plane. More... | |
| LeapPointableZone | touchZone |
| The current touch zone of this LeapPointable object. More... | |
| float | width |
| The estimated width of the finger or tool in millimeters. More... | |
The LeapPointable class reports the physical characteristics of a detected finger or tool.
Both fingers and tools are classified as LeapPointable objects. Use the [LeapPointable isFinger] function to determine whether a pointable object represents a finger. The Leap classifies a detected entity as a tool when it is thinner, straighter, and longer than a typical finger.
To provide touch emulation, the Leap Motion software associates a floating touch plane that adapts to the user's finger movement and hand posture. The Leap Motion interprets purposeful movements toward this plane as potential touch points. The logic used by the LeapPointable class is the same as that used by the Leap Motion software for OS-level touch and mouse input emulation.
Note that LeapPointable objects can be invalid, which means that they do not contain valid tracking data and do not correspond to a physical entity. Invalid LeapPointable objects can be the result of asking for a pointable object using an ID from an earlier frame when no pointable objects with that ID exist in the current frame. A pointable object created from the LeapPointable constructor is also invalid. Test for validity with the [LeapPointable isValid] function.
| + (LeapPointable *) invalid |
|
readnonatomicassign |
The direction in which this finger or tool is pointing.
The direction is expressed as a unit vector pointing in the same direction as the tip.
|
readnonatomicweak |
The LeapFrame associated with this LeapPointable object.
This property is a weak reference to the LeapFrame object so it is only valid during the lifetime of the LeapFrame object – while the LeapFrame object is in the history buffer or while your application maintains its own reference.
|
readnonatomicweak |
The LeapHand associated with a finger.
This property is a weak reference to the LeapHand object so it is only valid during the lifetime of that LeapHand object – in other words, while the parent LeapFrame object is valid or while your application maintains its own reference.
As of version 2, tools are not associated with hands, so this property always returns an invalid LeapHand object for tools.
|
readnonatomicassign |
A unique ID assigned to this LeapPointable object, whose value remains the same across consecutive frames while the tracked finger or tool remains visible.
If tracking is lost, the Leap may assign a new ID when it detects the entity in a future frame.
Use the ID value with the [LeapFrame pointable:] function to find this LeapPointable object in future frames.
|
readnonatomicassign |
Whether or not this Pointable is in an extended posture.
A finger is considered extended if it is extended straight from the hand as if pointing. A finger is not extended when it is bent down and curled towards the palm.
|
readnonatomicassign |
Whether or not the LeapPointable is classified a finger.
|
readnonatomicassign |
Whether or not the LeapPointable is classified to be a tool.
|
readnonatomicassign |
Reports whether this is a valid LeapPointable object.
|
readnonatomicassign |
The estimated length of the finger or tool in millimeters.
The reported length is the visible length of the finger or tool. If the length isn't known, then a value of 0 is returned.
|
readnonatomicassign |
The stabilized tip position of this LeapPointable.
Smoothing and stabilization is performed in order to make this value more suitable for interaction with 2D content.
|
readnonatomicassign |
The duration of time this Pointable has been visible to the Leap Motion Controller.
|
readnonatomicassign |
The tip position in millimeters from the Leap origin.
|
readnonatomicassign |
The rate of change of the tip position in millimeters/second.
|
readnonatomicassign |
A value proportional to the distance between this LeapPointable object and the adaptive touch plane.
|
readnonatomicassign |
The current touch zone of this LeapPointable object.
|
readnonatomicassign |
The estimated width of the finger or tool in millimeters.
The reported width is the average width of the visible portion of the finger or tool. If the width isn't known, then a value of 0 is returned.
Objective-C