#include <Leap.h>
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 TrackedQuad & | invalid () |
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 Interface & | operator= (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 |
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.
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.
LEAP_EXPORT float Leap::TrackedQuad::height | ( | ) | const |
The physical height of the quad display area in millimeters.
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.
|
static |
An invalid object.
LEAP_EXPORT bool Leap::TrackedQuad::isValid | ( | ) | const |
Reports whether this is a valid object.
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.
LEAP_EXPORT bool Leap::TrackedQuad::operator!= | ( | const TrackedQuad & | ) | const |
Compares quad objects for inequality.
LEAP_EXPORT bool Leap::TrackedQuad::operator== | ( | const TrackedQuad & | ) | const |
Compares quad objects for equality.
LEAP_EXPORT Matrix Leap::TrackedQuad::orientation | ( | ) | const |
The orientation of the quad within the Leap Motion frame of reference.
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.
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.
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.
|
private |
LEAP_EXPORT bool Leap::TrackedQuad::visible | ( | ) | const |
Reports whether the quad is currently detected within the Leap Motion field of view.
LEAP_EXPORT float Leap::TrackedQuad::width | ( | ) | const |
The physical width of the quad display area in millimeters.
|
friend |
Provides a brief, human-readable description of this quad.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |