Methods:
The GestureList class represents a list of Gesture objects.
Get a GestureList object from a Frame object.
Public Functions
- Since
- 1.0
GestureList & append(const GestureList & other)Appends the members of the specified GestureList to this GestureList.
- Since
- 1.0
- Parameters
- other -
A GestureList object containing Gesture objects to append to the end of this GestureList.
const_iterator begin()The C++ iterator set to the beginning of this GestureList.
Leap::GestureList gestures = frame.gestures(); for(Leap::GestureList::const_iterator gl = gestures.begin(); gl != gestures.end(); gl++) { std::cout << (*gl).toString() << std::endl; }
- Since
- 1.0
int count()const_iterator end()The C++ iterator set to the end of this GestureList.
Leap::GestureList gestures = frame.gestures(); for(Leap::GestureList::const_iterator gl = gestures.begin(); gl != gestures.end(); gl++) std::cout << (*gl).toString() << std::endl;
- Since
- 1.0
GestureList()Constructs an empty gesture list.
- Since
- 1.0
bool isEmpty()Gesture operator[](int index)Access a list member by its position in the list.
Leap::GestureList allGestures = frame.gestures(); Leap::Gesture firstGesture = allGestures[0];
- Return
- The Gesture object at the specified index.
- Since
- 1.0
- Parameters
- index -
The zero-based list position index.