#include <Leap.h>
Public Member Functions | |
def | __eq__ |
def | __init__ |
def | __ne__ |
def | __str__ |
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 |
Static Public Member Functions | |
static LEAP_EXPORT const TrackedQuad & | invalid () |
Public Attributes | |
this | |
Static Public Attributes | |
tuple | height = _swig_property(LeapPython.TrackedQuad_height_get) |
tuple | images = _swig_property(LeapPython.TrackedQuad_images_get) |
tuple | is_valid = _swig_property(LeapPython.TrackedQuad_is_valid_get) |
tuple | masks = _swig_property(LeapPython.TrackedQuad_masks_get) |
tuple | orientation = _swig_property(LeapPython.TrackedQuad_orientation_get) |
tuple | position = _swig_property(LeapPython.TrackedQuad_position_get) |
tuple | resolution_x = _swig_property(LeapPython.TrackedQuad_resolution_x_get) |
tuple | resolution_y = _swig_property(LeapPython.TrackedQuad_resolution_y_get) |
tuple | visible = _swig_property(LeapPython.TrackedQuad_visible_get) |
tuple | width = _swig_property(LeapPython.TrackedQuad_width_get) |
Private Member Functions | |
LEAP_EXPORT const char * | toCString () const |
Static Private Attributes | |
tuple | __getattr__ = lambdaself,name:_swig_getattr(self, TrackedQuad, name) |
__repr__ = _swig_repr | |
tuple | __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 &) |
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 * | ) |
Constructs a new TrackedQuad object. Do not use. Get valid TrackedQuads from a Controller or Frame object.
def Leap::TrackedQuad::__init__ | ( | self | ) |
def Leap::TrackedQuad::__eq__ | ( | self, | |
arg2 | |||
) |
def Leap::TrackedQuad::__ne__ | ( | self, | |
arg2 | |||
) |
def Leap::TrackedQuad::__str__ | ( | self | ) |
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 LEAP_EXPORT const TrackedQuad& Leap::TrackedQuad::invalid | ( | ) | [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 |
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.
LEAP_EXPORT const char* Leap::TrackedQuad::toCString | ( | ) | const [private] |
std::string Leap::TrackedQuad::toString | ( | ) | const [inline] |
LEAP_EXPORT bool Leap::TrackedQuad::visible | ( | ) | const |
LEAP_EXPORT float Leap::TrackedQuad::width | ( | ) | const |
The physical width of the quad display area in millimeters.
LEAP_EXPORT friend std::ostream& operator<< | ( | std::ostream & | , |
const TrackedQuad & | |||
) | [friend] |
Provides a brief, human-readable description of this quad.
tuple Leap::TrackedQuad::__getattr__ = lambdaself,name:_swig_getattr(self, TrackedQuad, name) [static, private] |
Reimplemented from Leap::Interface.
Leap::TrackedQuad::__repr__ = _swig_repr [static, private] |
tuple Leap::TrackedQuad::__setattr__ = lambdaself,name,value:_swig_setattr(self, TrackedQuad, name, value) [static, private] |
Reimplemented from Leap::Interface.
Leap::TrackedQuad::__swig_destroy__ = LeapPython.delete_TrackedQuad [static, private] |
dictionary Leap::TrackedQuad::__swig_getmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
dictionary Leap::TrackedQuad::__swig_setmethods__ = {} [static, private] |
Reimplemented from Leap::Interface.
tuple Leap::TrackedQuad::height = _swig_property(LeapPython.TrackedQuad_height_get) [static] |
tuple Leap::TrackedQuad::images = _swig_property(LeapPython.TrackedQuad_images_get) [static] |
tuple Leap::TrackedQuad::is_valid = _swig_property(LeapPython.TrackedQuad_is_valid_get) [static] |
tuple Leap::TrackedQuad::masks = _swig_property(LeapPython.TrackedQuad_masks_get) [static] |
tuple Leap::TrackedQuad::orientation = _swig_property(LeapPython.TrackedQuad_orientation_get) [static] |
tuple Leap::TrackedQuad::position = _swig_property(LeapPython.TrackedQuad_position_get) [static] |
tuple Leap::TrackedQuad::resolution_x = _swig_property(LeapPython.TrackedQuad_resolution_x_get) [static] |
tuple Leap::TrackedQuad::resolution_y = _swig_property(LeapPython.TrackedQuad_resolution_y_get) [static] |
tuple Leap::TrackedQuad::visible = _swig_property(LeapPython.TrackedQuad_visible_get) [static] |
tuple Leap::TrackedQuad::width = _swig_property(LeapPython.TrackedQuad_width_get) [static] |