#include <Leap.h>
Public Member Functions | |
def | __init__ (self, args) |
def | __str__ (self) |
Tool (ToolImplementation *) | |
LEAP_EXPORT | Tool () |
LEAP_EXPORT | Tool (const Pointable &) |
std::string | toString () const |
Public Member Functions inherited from Leap::Pointable | |
def | __eq__ (self, arg2) |
def | __init__ (self) |
def | __ne__ (self, arg2) |
def | __str__ (self) |
LEAP_EXPORT Vector | direction () const |
LEAP_EXPORT Frame | frame () const |
LEAP_EXPORT Hand | hand () const |
LEAP_EXPORT int32_t | id () const |
LEAP_EXPORT bool | isExtended () const |
LEAP_EXPORT bool | isFinger () const |
LEAP_EXPORT bool | isTool () const |
LEAP_EXPORT bool | isValid () const |
LEAP_EXPORT float | length () const |
LEAP_EXPORT bool | operator!= (const Pointable &) const |
LEAP_EXPORT bool | operator== (const Pointable &) const |
Pointable (PointableImplementation *) | |
Pointable (FingerImplementation *) | |
Pointable (ToolImplementation *) | |
LEAP_EXPORT | Pointable () |
LEAP_EXPORT Vector | stabilizedTipPosition () const |
LEAP_EXPORT float | timeVisible () const |
LEAP_EXPORT Vector | tipPosition () const |
LEAP_EXPORT Vector | tipVelocity () const |
std::string | toString () const |
LEAP_EXPORT float | touchDistance () const |
LEAP_EXPORT Zone | touchZone () 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 Tool & | invalid () |
Static Public Member Functions inherited from Leap::Pointable | |
static LEAP_EXPORT const Pointable & | invalid () |
Public Attributes | |
this | |
Public Attributes inherited from Leap::Pointable | |
this | |
Private Member Functions | |
LEAP_EXPORT const char * | toCString () const |
Static Private Attributes | |
__getattr__ = lambdaself,name:_swig_getattr(self, Tool, name) | |
__repr__ = _swig_repr | |
__setattr__ = lambdaself,name,value:_swig_setattr(self, Tool, name, value) | |
__swig_destroy__ = LeapPython.delete_Tool | |
dictionary | __swig_getmethods__ = {} |
dictionary | __swig_setmethods__ = {} |
Additional Inherited Members | |
Public Types inherited from Leap::Pointable | |
enum | Zone { ZONE_NONE = 0, ZONE_HOVERING = 1, ZONE_TOUCHING = 2 } |
Static Public Attributes inherited from Leap::Pointable | |
direction = _swig_property(LeapPython.Pointable_direction_get) | |
frame = _swig_property(LeapPython.Pointable_frame_get) | |
hand = _swig_property(LeapPython.Pointable_hand_get) | |
id = _swig_property(LeapPython.Pointable_id_get) | |
is_extended = _swig_property(LeapPython.Pointable_is_extended_get) | |
is_finger = _swig_property(LeapPython.Pointable_is_finger_get) | |
is_tool = _swig_property(LeapPython.Pointable_is_tool_get) | |
is_valid = _swig_property(LeapPython.Pointable_is_valid_get) | |
length = _swig_property(LeapPython.Pointable_length_get) | |
stabilized_tip_position = _swig_property(LeapPython.Pointable_stabilized_tip_position_get) | |
time_visible = _swig_property(LeapPython.Pointable_time_visible_get) | |
tip_position = _swig_property(LeapPython.Pointable_tip_position_get) | |
tip_velocity = _swig_property(LeapPython.Pointable_tip_velocity_get) | |
touch_distance = _swig_property(LeapPython.Pointable_touch_distance_get) | |
touch_zone = _swig_property(LeapPython.Pointable_touch_zone_get) | |
width = _swig_property(LeapPython.Pointable_width_get) | |
ZONE_HOVERING = LeapPython.Pointable_ZONE_HOVERING | |
ZONE_NONE = LeapPython.Pointable_ZONE_NONE | |
ZONE_TOUCHING = LeapPython.Pointable_ZONE_TOUCHING | |
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 |
The Tool class represents a tracked tool.
Tools are Pointable objects that the Leap Motion software has classified as a tool.
Get valid Tool objects from a Frame object.
Note that Tool objects can be invalid, which means that they do not contain valid tracking data and do not correspond to a physical tool. Invalid Tool objects can be the result of asking for a Tool object using an ID from an earlier frame when no Tool objects with that ID exist in the current frame. A Tool object created from the Tool constructor is also invalid. Test for validity with the Tool::isValid() function.
Leap::Tool::Tool | ( | ToolImplementation * | ) |
LEAP_EXPORT Leap::Tool::Tool | ( | ) |
|
explicit |
|
static |
Returns an invalid Tool object.
You can use the instance returned by this function in comparisons testing whether a given Tool instance is valid or invalid. (You can also use the Tool::isValid() function.)
|
private |
|
inline |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |