SOFA plugin: LeapMotion  master
Open source framework for multi-physics simuation
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Leap::GestureList Class Reference

#include <Leap.h>

Inheritance diagram for Leap::GestureList:

Detailed Description

The GestureList class represents a list of Gesture objects.

Get a GestureList object from a Frame object.

Public Member Functions

 GestureList (const ListBaseImplementation< Gesture > &)
 
LEAP_EXPORT GestureList ()
 
LEAP_EXPORT int count () const
 
LEAP_EXPORT bool isEmpty () const
 
LEAP_EXPORT bool empty () const
 
LEAP_EXPORT Gesture operator[] (int index) const
 
LEAP_EXPORT GestureListappend (const GestureList &other)
 
LEAP_EXPORT const_iterator begin () const
 
LEAP_EXPORT const_iterator end () const
 

Additional Inherited Members

- Protected Attributes inherited from Leap::Interface
class SharedObject * m_object
 
- Protected Member Functions inherited from Leap::Interface
LEAP_EXPORT Interface (void *owner)
 
LEAP_EXPORT Interface (Implementation *reference, void *owner)
 
LEAP_EXPORT Interface (const Interface &rhs)
 
LEAP_EXPORT Interfaceoperator= (const Interface &rhs)
 
virtual LEAP_EXPORT ~Interface ()
 
template<typename T >
T * get () const
 

Constructor details

◆ GestureList() [1/2]

Leap::GestureList::GestureList ( const ListBaseImplementation< Gesture > &  )

◆ GestureList() [2/2]

LEAP_EXPORT Leap::GestureList::GestureList ( )

Constructs an empty gesture list.

Function details

◆ append()

LEAP_EXPORT GestureList& Leap::GestureList::append ( const GestureList other)

Appends the members of the specified GestureList to this GestureList.

Parameters
otherA GestureList object containing Gesture objects to append to the end of this GestureList.

◆ begin()

LEAP_EXPORT const_iterator Leap::GestureList::begin ( ) const

The C++ iterator set to the beginning of this GestureList.

◆ count()

LEAP_EXPORT int Leap::GestureList::count ( ) const

The length of this list.

Returns
The number of gestures in this list.

◆ empty()

LEAP_EXPORT bool Leap::GestureList::empty ( ) const

Deprecated. Use GestureList::isEmpty() instead.

See also
GestureList::isEmpty()

◆ end()

LEAP_EXPORT const_iterator Leap::GestureList::end ( ) const

The C++ iterator set to the end of this GestureList.

◆ isEmpty()

LEAP_EXPORT bool Leap::GestureList::isEmpty ( ) const

Reports whether the list is empty.

Returns
True, if the list has no members.

◆ operator[]()

LEAP_EXPORT Gesture Leap::GestureList::operator[] ( int  index) const

Access a list member by its position in the list.

Parameters
indexThe zero-based list position index.
Returns
The Gesture object at the specified index.