The ScreenTapGesture class represents a tapping gesture by a finger or tool. More...
Inherits Gesture.
Public Types | |
| enum | State |
| The possible gesture states. More... | |
| enum | Type |
| The supported types of gestures. More... | |
Public Member Functions | |
| Vector | direction () const |
| The direction of finger tip motion. More... | |
| int64_t | duration () const |
| The elapsed duration of the recognized movement up to the frame containing this Gesture object, in microseconds. More... | |
| float | durationSeconds () const |
| The elapsed duration in seconds. More... | |
| Frame | frame () const |
| The Frame containing this Gesture instance. More... | |
| HandList | hands () const |
| The list of hands associated with this Gesture, if any. More... | |
| int32_t | id () const |
| The gesture ID. More... | |
| bool | isValid () const |
| Reports whether this Gesture instance represents a valid Gesture. More... | |
| bool | operator!= (const Gesture &rhs) const |
| Compare Gesture object inequality. More... | |
| bool | operator== (const Gesture &rhs) const |
| Compare Gesture object equality. More... | |
| Pointable | pointable () const |
| The finger performing the screen tap gesture. More... | |
| PointableList | pointables () const |
| The list of fingers and tools associated with this Gesture, if any. More... | |
| Vector | position () const |
| The position where the screen tap is registered. More... | |
| float | progress () const |
| The progress value is always 1.0 for a screen tap gesture. More... | |
| ScreenTapGesture () | |
| Constructs a new ScreenTapGesture object. More... | |
| ScreenTapGesture (const Gesture &rhs) | |
| Constructs a ScreenTapGesture object from an instance of the Gesture class. More... | |
| State | state () const |
| The gesture state. More... | |
| std::string | toString () const |
| A string containing a brief, human-readable description of this Gesture. More... | |
| Type | type () const |
| The gesture type. More... | |
Static Public Member Functions | |
| static Type | classType () |
| The screen tap gesture type. More... | |
| static const Gesture & | invalid () |
| Returns an invalid Gesture object. More... | |
|
inherited |
The possible gesture states.
| Enumerator | |
|---|---|
| STATE_INVALID |
An invalid state.
|
| STATE_START |
The gesture is starting. Just enough has happened to recognize it.
|
| STATE_UPDATE |
The gesture is in progress. (Note: not all gestures have updates).
|
| STATE_STOP |
The gesture has completed or stopped.
|
|
inherited |
The supported types of gestures.
| Enumerator | |
|---|---|
| TYPE_INVALID |
An invalid type.
|
| TYPE_SWIPE |
A straight line movement by the hand with fingers extended.
|
| TYPE_CIRCLE |
A circular movement by a finger.
|
| TYPE_SCREEN_TAP |
A forward tapping movement by a finger.
|
| TYPE_KEY_TAP |
A downward tapping movement by a finger.
|
| ScreenTapGesture | ( | ) |
Constructs a new ScreenTapGesture object.
An uninitialized ScreenTapGesture object is considered invalid. Get valid instances of the ScreenTapGesture class from a Frame object.
| ScreenTapGesture | ( | const Gesture & | rhs | ) |
Constructs a ScreenTapGesture object from an instance of the Gesture class.
| rhs | The Gesture instance to specialize. This Gesture instance must be a ScreenTapGesture object. |
|
inlinestatic |
The screen tap gesture type.
| Vector direction | ( | ) | const |
The direction of finger tip motion.
|
inherited |
The elapsed duration of the recognized movement up to the frame containing this Gesture object, in microseconds.
The duration reported for the first Gesture in the sequence (with the STATE_START state) will typically be a small positive number since the movement must progress far enough for the Leap Motion software to recognize it as an intentional gesture.
|
inherited |
The elapsed duration in seconds.
|
inherited |
The Frame containing this Gesture instance.
|
inherited |
The list of hands associated with this Gesture, if any.
If no hands are related to this gesture, the list is empty.
|
inherited |
The gesture ID.
All Gesture objects belonging to the same recognized movement share the same ID value. Use the ID value with the Frame::gesture() method to find updates related to this Gesture object in subsequent frames.
|
staticinherited |
Returns an invalid Gesture object.
|
inherited |
Reports whether this Gesture instance represents a valid Gesture.
|
inherited |
Compare Gesture object inequality.
Two Gestures are equal only if they represent the same snapshot of the same recognized movement.
|
inherited |
Compare Gesture object equality.
Two Gestures are equal if they represent the same snapshot of the same recognized movement.
| Pointable pointable | ( | ) | const |
The finger performing the screen tap gesture.
|
inherited |
The list of fingers and tools associated with this Gesture, if any.
If no Pointable objects are related to this gesture, the list is empty.
| Vector position | ( | ) | const |
The position where the screen tap is registered.
| float progress | ( | ) | const |
The progress value is always 1.0 for a screen tap gesture.
|
inherited |
The gesture state.
Recognized movements occur over time and have a beginning, a middle, and an end. The 'state()' attribute reports where in that sequence this Gesture object falls.
|
inlineinherited |
A string containing a brief, human-readable description of this Gesture.
|
inherited |
The gesture type.
C++