The CircleGesture classes represents a circular finger movement. More...
Inherits Gesture.
Public Types | |
| enum | State |
| The possible gesture states. More... | |
| enum | Type |
| The supported types of gestures. More... | |
Public Member Functions | |
| Vector | center () const |
| The center point of the circle within the Leap Motion frame of reference. More... | |
| CircleGesture () | |
| Constructs a new CircleGesture object. More... | |
| CircleGesture (const Gesture &rhs) | |
| Constructs a CircleGesture object from an instance of the Gesture class. 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... | |
| Vector | normal () const |
| Returns the normal vector for the circle being traced. 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 circle gesture. More... | |
| PointableList | pointables () const |
| The list of fingers and tools associated with this Gesture, if any. More... | |
| float | progress () const |
| The number of times the finger tip has traversed the circle. More... | |
| float | radius () const |
| The radius of the circle. 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 circle gesture type. More... | |
| static const Gesture & | invalid () |
| Returns an invalid Gesture object. More... | |
The CircleGesture classes represents a circular finger movement.
|
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.
|
| CircleGesture | ( | ) |
Constructs a new CircleGesture object.
An uninitialized CircleGesture object is considered invalid. Get valid instances of the CircleGesture class from a Frame object.
| CircleGesture | ( | const Gesture & | rhs | ) |
Constructs a CircleGesture object from an instance of the Gesture class.
| rhs | The Gesture instance to specialize. This Gesture instance must be a CircleGesture object. |
| Vector center | ( | ) | const |
The center point of the circle within the Leap Motion frame of reference.
|
inlinestatic |
The circle gesture type.
|
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.
| Vector normal | ( | ) | const |
Returns the normal vector for the circle being traced.
|
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 circle 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.
| float progress | ( | ) | const |
The number of times the finger tip has traversed the circle.
| float radius | ( | ) | const |
The radius of the circle.
|
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.