Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Static Private Attributes
Leap::Finger Class Reference

#include <Leap.h>

Inheritance diagram for Leap::Finger:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Joint { JOINT_MCP = 0, JOINT_PIP = 1, JOINT_DIP = 2, JOINT_TIP = 3 }
enum  Type {
  TYPE_THUMB = 0, TYPE_INDEX = 1, TYPE_MIDDLE = 2, TYPE_RING = 3,
  TYPE_PINKY = 4
}

Public Member Functions

def __init__
def __str__
def bone
LEAP_EXPORT Bone bone (Bone::Type boneIx) const
 Finger (FingerImplementation *)
LEAP_EXPORT Finger ()
LEAP_EXPORT Finger (const Pointable &)
def joint_position
LEAP_EXPORT Vector jointPosition (Joint jointIx) const
std::string toString () const
LEAP_EXPORT Type type () const

Static Public Member Functions

static LEAP_EXPORT const Fingerinvalid ()

Public Attributes

 this

Static Public Attributes

 JOINT_DIP = LeapPython.Finger_JOINT_DIP
 JOINT_MCP = LeapPython.Finger_JOINT_MCP
 JOINT_PIP = LeapPython.Finger_JOINT_PIP
 JOINT_TIP = LeapPython.Finger_JOINT_TIP
tuple type = _swig_property(LeapPython.Finger_type_get)
 TYPE_INDEX = LeapPython.Finger_TYPE_INDEX
 TYPE_MIDDLE = LeapPython.Finger_TYPE_MIDDLE
 TYPE_PINKY = LeapPython.Finger_TYPE_PINKY
 TYPE_RING = LeapPython.Finger_TYPE_RING
 TYPE_THUMB = LeapPython.Finger_TYPE_THUMB

Private Member Functions

LEAP_EXPORT const char * toCString () const

Static Private Attributes

tuple __getattr__ = lambdaself,name:_swig_getattr(self, Finger, name)
 __repr__ = _swig_repr
tuple __setattr__ = lambdaself,name,value:_swig_setattr(self, Finger, name, value)
 __swig_destroy__ = LeapPython.delete_Finger
dictionary __swig_getmethods__ = {}
dictionary __swig_setmethods__ = {}

Detailed Description

The Finger class represents a tracked finger.

Fingers are Pointable objects that the Leap Motion software has classified as a finger. Get valid Finger objects from a Frame or a Hand object.

Fingers may be permanently associated to a hand. In this case the angular order of the finger IDs will be invariant. As fingers move in and out of view it is possible for the guessed ID of a finger to be incorrect. Consequently, it may be necessary for finger IDs to be exchanged. All tracked properties, such as velocity, will remain continuous in the API. However, quantities that are derived from the API output (such as a history of positions) will be discontinuous unless they have a corresponding ID exchange.

Note that Finger objects can be invalid, which means that they do not contain valid tracking data and do not correspond to a physical finger. Invalid Finger objects can be the result of asking for a Finger object using an ID from an earlier frame when no Finger objects with that ID exist in the current frame. A Finger object created from the Finger constructor is also invalid. Test for validity with the Finger::isValid() function.

Since:
1.0

Definition at line 891 of file Leap.h.


Member Enumeration Documentation

Deprecated as of version 2.0

Enumerator:
JOINT_MCP 
JOINT_PIP 
JOINT_DIP 
JOINT_TIP 

Definition at line 896 of file Leap.h.

Enumerates the names of the fingers.

Members of this enumeration are returned by Finger::type() to identify a Finger object.

Since:
2.0
Enumerator:
TYPE_THUMB 

The thumb

TYPE_INDEX 

The index or fore-finger

TYPE_MIDDLE 

The middle finger

TYPE_RING 

The ring finger

TYPE_PINKY 

The pinky or little finger

Definition at line 910 of file Leap.h.


Constructor & Destructor Documentation

Leap::Finger::Finger ( FingerImplementation *  )

Constructs a Finger object.

An uninitialized finger is considered invalid. Get valid Finger objects from a Frame or a Hand object.

Since:
1.0
LEAP_EXPORT Leap::Finger::Finger ( const Pointable ) [explicit]

If the specified Pointable object represents a finger, creates a copy of it as a Finger object; otherwise, creates an invalid Finger object.

Since:
1.0
def Leap::Finger::__init__ (   self,
  args 
)

Definition at line 658 of file Leap.py.


Member Function Documentation

def Leap::Finger::__str__ (   self)

Reimplemented from Leap::Pointable.

Definition at line 671 of file Leap.py.

def Leap::Finger::bone (   self,
  boneIx 
)

Definition at line 668 of file Leap.py.

The bone at a given bone index on this finger.

Parameters:
boneIxAn index value from the Bone::Type enumeration identifying the bone of interest.
Returns:
The Bone that has the specified bone type.
Since:
2.0
static LEAP_EXPORT const Finger& Leap::Finger::invalid ( ) [static]

Returns an invalid Finger object.

You can use the instance returned by this function in comparisons testing whether a given Finger instance is valid or invalid. (You can also use the Finger::isValid() function.)

Returns:
The invalid Finger instance.
Since:
1.0

Reimplemented from Leap::Pointable.

def Leap::Finger::joint_position (   self,
  jointIx 
)

Definition at line 665 of file Leap.py.

Deprecated as of version 2.0 Use 'bone' method instead.

LEAP_EXPORT const char* Leap::Finger::toCString ( ) const [private]

Reimplemented from Leap::Pointable.

std::string Leap::Finger::toString ( ) const [inline]

A string containing a brief, human readable description of the Finger object.

Returns:
A description of the Finger object as a string.
Since:
1.0

Reimplemented from Leap::Pointable.

Definition at line 991 of file Leap.h.

The name of this finger.

Returns:
The anatomical type of this finger as a member of the Finger::Type enumeration.
Since:
2.0

Member Data Documentation

tuple Leap::Finger::__getattr__ = lambdaself,name:_swig_getattr(self, Finger, name) [static, private]

Reimplemented from Leap::Pointable.

Definition at line 646 of file Leap.py.

Leap::Finger::__repr__ = _swig_repr [static, private]

Reimplemented from Leap::Pointable.

Definition at line 647 of file Leap.py.

tuple Leap::Finger::__setattr__ = lambdaself,name,value:_swig_setattr(self, Finger, name, value) [static, private]

Reimplemented from Leap::Pointable.

Definition at line 642 of file Leap.py.

Leap::Finger::__swig_destroy__ = LeapPython.delete_Finger [static, private]

Reimplemented from Leap::Pointable.

Definition at line 676 of file Leap.py.

dictionary Leap::Finger::__swig_getmethods__ = {} [static, private]

Reimplemented from Leap::Pointable.

Definition at line 643 of file Leap.py.

dictionary Leap::Finger::__swig_setmethods__ = {} [static, private]

Reimplemented from Leap::Pointable.

Definition at line 639 of file Leap.py.

Leap::Finger::JOINT_DIP = LeapPython.Finger_JOINT_DIP [static]

Definition at line 650 of file Leap.py.

Leap::Finger::JOINT_MCP = LeapPython.Finger_JOINT_MCP [static]

Definition at line 648 of file Leap.py.

Leap::Finger::JOINT_PIP = LeapPython.Finger_JOINT_PIP [static]

Definition at line 649 of file Leap.py.

Leap::Finger::JOINT_TIP = LeapPython.Finger_JOINT_TIP [static]

Definition at line 651 of file Leap.py.

Reimplemented from Leap::Pointable.

Definition at line 658 of file Leap.py.

tuple Leap::Finger::type = _swig_property(LeapPython.Finger_type_get) [static]

Definition at line 675 of file Leap.py.

Leap::Finger::TYPE_INDEX = LeapPython.Finger_TYPE_INDEX [static]

Definition at line 653 of file Leap.py.

Leap::Finger::TYPE_MIDDLE = LeapPython.Finger_TYPE_MIDDLE [static]

Definition at line 654 of file Leap.py.

Leap::Finger::TYPE_PINKY = LeapPython.Finger_TYPE_PINKY [static]

Definition at line 656 of file Leap.py.

Leap::Finger::TYPE_RING = LeapPython.Finger_TYPE_RING [static]

Definition at line 655 of file Leap.py.

Leap::Finger::TYPE_THUMB = LeapPython.Finger_TYPE_THUMB [static]

Definition at line 652 of file Leap.py.


The documentation for this class was generated from the following files:


leap_motion
Author(s): Florian Lier , Mirza Shah , Isaac IY Saito
autogenerated on Sat Jun 8 2019 18:47:25