The LeapSwipeGesture class represents a swiping motion of fingers and tools.
More...
Inherits LeapGesture.
The LeapSwipeGesture class represents a swiping motion of fingers and tools.
[controller.
config setFloat:
@"Gesture.Swipe.MinLength" value:200.0];
[controller.
config setFloat:
@"Gesture.Swipe.MinVelocity" value:750];
Compare LeapGesture object equality.
[thisGesture equals:thatGesture];
- Parameters
-
The finger or tool performing the swipe gesture.
- Returns
- A LeapPointable object representing the swiping finger or tool.
The unit direction vector parallel to the swipe motion.
- Returns
- LeapVector The unit direction vector representing the swipe motion.
|
readnonatomicassigninherited |
The elapsed duration of the recognized movement up to the frame containing this LeapGesture object, in microseconds.
int64_t microseconds = gesture.duration;
- Returns
- int64_t the elapsed duration in microseconds.
- (float) durationSeconds |
|
readnonatomicassigninherited |
The elapsed duration in seconds.
float seconds = gesture.duration;
- See also
- duration
- Returns
- float the elapsed duration in seconds.
|
readnonatomicstronginherited |
|
readnonatomicstronginherited |
The list of hands associated with this LeapGesture, if any.
NSArray *handList = gesture.hands;
LeapHand *gesturingHand = [handList objectAtIndex:0];
- Returns
- NSArray the list of related LeapHand objects.
|
readnonatomicassigninherited |
The gesture ID.
int gestureID = gesture.id;
- Returns
- int32_t the ID of this LeapGesture.
|
readnonatomicassigninherited |
Reports whether this LeapGesture instance represents a valid gesture.
LeapGesture *trackedGesture = [frame gesture:trackedGestureID];
{
}
- Returns
- bool Yes, if this is a valid LeapGesture instance; NO, otherwise.
|
readnonatomicstronginherited |
The list of fingers and tools associated with this LeapGesture, if any.
NSArray *pointableList = gesture.pointables;
LeapHand *gesturingPointable = [pointableList objectAtIndex:0];
- Returns
- NSArray the list of related LeapPointable objects.
The current position of the swipe.
- Returns
- LeapVector The current swipe position within the Leap frame of reference, in mm.
The swipe speed in mm/second.
float velocity = swipe.speed;
- Returns
- float The speed of the finger performing the swipe gesture in millimeters per second.
The position where the swipe began.
- Returns
- LeapVector The starting position within the Leap frame of reference, in mm.
- (LeapGestureState) state |
|
readnonatomicassigninherited |
The gesture state.
- Returns
- LeapGestureState A value from the LeapGestureState enumeration.
|
readnonatomicassigninherited |
The gesture type.
LeapGestureType type = gesture.type;
- Returns
- LeapGestureType A value from the LeapGestureType enumeration.