Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Static Private Attributes | Friends | List of all members
Leap::TrackedQuad Class Reference

#include <Leap.h>

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

Public Member Functions

def __eq__ (self, arg2)
 
def __init__ (self)
 
def __ne__ (self, arg2)
 
def __str__ (self)
 
LEAP_EXPORT float height () const
 
LEAP_EXPORT ImageList images () const
 
LEAP_EXPORT bool isValid () const
 
LEAP_EXPORT MaskList masks () const
 
LEAP_EXPORT bool operator!= (const TrackedQuad &) const
 
LEAP_EXPORT bool operator== (const TrackedQuad &) const
 
LEAP_EXPORT Matrix orientation () const
 
LEAP_EXPORT Vector position () const
 
LEAP_EXPORT int resolutionX () const
 
LEAP_EXPORT int resolutionY () const
 
std::string toString () const
 
 TrackedQuad (TrackedQuadImplementation *)
 
LEAP_EXPORT TrackedQuad ()
 
LEAP_EXPORT bool visible () const
 
LEAP_EXPORT float width () const
 
- Public Member Functions inherited from Leap::Interface
def __init__ (self, args, kwargs)
 

Static Public Member Functions

static LEAP_EXPORT const TrackedQuadinvalid ()
 

Public Attributes

 this
 

Static Public Attributes

 height = _swig_property(LeapPython.TrackedQuad_height_get)
 
 images = _swig_property(LeapPython.TrackedQuad_images_get)
 
 is_valid = _swig_property(LeapPython.TrackedQuad_is_valid_get)
 
 masks = _swig_property(LeapPython.TrackedQuad_masks_get)
 
 orientation = _swig_property(LeapPython.TrackedQuad_orientation_get)
 
 position = _swig_property(LeapPython.TrackedQuad_position_get)
 
 resolution_x = _swig_property(LeapPython.TrackedQuad_resolution_x_get)
 
 resolution_y = _swig_property(LeapPython.TrackedQuad_resolution_y_get)
 
 visible = _swig_property(LeapPython.TrackedQuad_visible_get)
 
 width = _swig_property(LeapPython.TrackedQuad_width_get)
 

Private Member Functions

LEAP_EXPORT const char * toCString () const
 

Static Private Attributes

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

Friends

LEAP_EXPORT friend std::ostream & operator<< (std::ostream &, const TrackedQuad &)
 

Additional Inherited Members

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

Detailed Description

Note: This class is an experimental API for internal use only. It may be removed without warning.

Represents a quad-like object tracked by the Leap Motion sensors.

Only one quad can be tracked. Once a supported quad is tracked, the state of that quad will be updated for each frame of Leap Motion tracking data.

A TrackedQuad object represents the state of the quad at one moment in time. Get a new object from subsequent frames to get the latest state information.

Since
2.2.6

Definition at line 4264 of file Leap.h.

Constructor & Destructor Documentation

Leap::TrackedQuad::TrackedQuad ( TrackedQuadImplementation *  )
LEAP_EXPORT Leap::TrackedQuad::TrackedQuad ( )

Constructs a new TrackedQuad object. Do not use. Get valid TrackedQuads from a Controller or Frame object.

Since
2.2.6
def Leap.TrackedQuad.__init__ (   self)

Definition at line 1776 of file Leap.py.

Member Function Documentation

def Leap.TrackedQuad.__eq__ (   self,
  arg2 
)

Definition at line 1783 of file Leap.py.

def Leap.TrackedQuad.__ne__ (   self,
  arg2 
)

Definition at line 1786 of file Leap.py.

def Leap.TrackedQuad.__str__ (   self)

Definition at line 1789 of file Leap.py.

LEAP_EXPORT float Leap::TrackedQuad::height ( ) const

The physical height of the quad display area in millimeters.

Since
2.2.6
LEAP_EXPORT ImageList Leap::TrackedQuad::images ( ) const

The images from which the state of this TrackedQuad was derived. These are the same image objects that you can get from the Controller or Frame object from which you got this TrackedQuad.

Since
2.2.6
static LEAP_EXPORT const TrackedQuad& Leap::TrackedQuad::invalid ( )
static

An invalid object.

Since
2.2.6
LEAP_EXPORT bool Leap::TrackedQuad::isValid ( ) const

Reports whether this is a valid object.

Since
2.2.6
LEAP_EXPORT MaskList Leap::TrackedQuad::masks ( ) const

The list of masks for the current set of images. A mask is a bitmap indicating which pixels in the image contain fingers or part of the hand in front of the quad.

The mask at index 0 corresponds to the left image; that with index 1, to the right image.

Since
2.2.6
LEAP_EXPORT bool Leap::TrackedQuad::operator!= ( const TrackedQuad ) const

Compares quad objects for inequality.

Since
2.2.6
LEAP_EXPORT bool Leap::TrackedQuad::operator== ( const TrackedQuad ) const

Compares quad objects for equality.

Since
2.2.6
LEAP_EXPORT Matrix Leap::TrackedQuad::orientation ( ) const

The orientation of the quad within the Leap Motion frame of reference.

Since
2.2.6
LEAP_EXPORT Vector Leap::TrackedQuad::position ( ) const

The position of the center of the quad display area within the Leap Motion frame of reference. In millimeters.

Since
2.2.6
LEAP_EXPORT int Leap::TrackedQuad::resolutionX ( ) const

The horizontal resolution of the quad display area in pixels. This value is set in a configuration file. It is not determined dynamically.

Since
2.2.6
LEAP_EXPORT int Leap::TrackedQuad::resolutionY ( ) const

The vertical resolution of the quad display area in pixels. This value is set in a configuration file. It is not determined dynamically.

Since
2.2.6
LEAP_EXPORT const char* Leap::TrackedQuad::toCString ( ) const
private
std::string Leap::TrackedQuad::toString ( ) const
inline

Definition at line 4384 of file Leap.h.

LEAP_EXPORT bool Leap::TrackedQuad::visible ( ) const

Reports whether the quad is currently detected within the Leap Motion field of view.

Since
2.2.6
LEAP_EXPORT float Leap::TrackedQuad::width ( ) const

The physical width of the quad display area in millimeters.

Since
2.2.6

Friends And Related Function Documentation

LEAP_EXPORT friend std::ostream& operator<< ( std::ostream &  ,
const TrackedQuad  
)
friend

Provides a brief, human-readable description of this quad.

Since
2.2.6

Member Data Documentation

Leap.TrackedQuad.__getattr__ = lambdaself,name:_swig_getattr(self, TrackedQuad, name)
staticprivate

Definition at line 1773 of file Leap.py.

Leap.TrackedQuad.__repr__ = _swig_repr
staticprivate

Definition at line 1774 of file Leap.py.

Leap.TrackedQuad.__setattr__ = lambdaself,name,value:_swig_setattr(self, TrackedQuad, name, value)
staticprivate

Definition at line 1769 of file Leap.py.

Leap.TrackedQuad.__swig_destroy__ = LeapPython.delete_TrackedQuad
staticprivate

Definition at line 1821 of file Leap.py.

dictionary Leap.TrackedQuad.__swig_getmethods__ = {}
staticprivate

Definition at line 1770 of file Leap.py.

dictionary Leap.TrackedQuad.__swig_setmethods__ = {}
staticprivate

Definition at line 1766 of file Leap.py.

Leap.TrackedQuad.height = _swig_property(LeapPython.TrackedQuad_height_get)
static

Definition at line 1796 of file Leap.py.

Leap.TrackedQuad.images = _swig_property(LeapPython.TrackedQuad_images_get)
static

Definition at line 1817 of file Leap.py.

Leap.TrackedQuad.is_valid = _swig_property(LeapPython.TrackedQuad_is_valid_get)
static

Definition at line 1820 of file Leap.py.

Leap.TrackedQuad.masks = _swig_property(LeapPython.TrackedQuad_masks_get)
static

Definition at line 1814 of file Leap.py.

Leap.TrackedQuad.orientation = _swig_property(LeapPython.TrackedQuad_orientation_get)
static

Definition at line 1808 of file Leap.py.

Leap.TrackedQuad.position = _swig_property(LeapPython.TrackedQuad_position_get)
static

Definition at line 1811 of file Leap.py.

Leap.TrackedQuad.resolution_x = _swig_property(LeapPython.TrackedQuad_resolution_x_get)
static

Definition at line 1799 of file Leap.py.

Leap.TrackedQuad.resolution_y = _swig_property(LeapPython.TrackedQuad_resolution_y_get)
static

Definition at line 1802 of file Leap.py.

Leap.TrackedQuad.this

Definition at line 1781 of file Leap.py.

Leap.TrackedQuad.visible = _swig_property(LeapPython.TrackedQuad_visible_get)
static

Definition at line 1805 of file Leap.py.

Leap.TrackedQuad.width = _swig_property(LeapPython.TrackedQuad_width_get)
static

Definition at line 1793 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 Tue Jun 2 2020 03:58:01