Leap.py
Go to the documentation of this file.
00001 # This file was automatically generated by SWIG (http://www.swig.org).
00002 # Version 3.0.3
00003 #
00004 # Do not make changes to this file unless you know what you are doing--modify
00005 # the SWIG interface file instead.
00006 
00007 
00008 
00009 
00010 
00011 from sys import version_info
00012 if version_info >= (2, 6, 0):
00013     def swig_import_helper():
00014         from os.path import dirname
00015         import imp
00016         fp = None
00017         try:
00018             fp, pathname, description = imp.find_module('LeapPython', [dirname(__file__)])
00019         except ImportError:
00020             import LeapPython
00021             return LeapPython
00022         if fp is not None:
00023             try:
00024                 _mod = imp.load_module('LeapPython', fp, pathname, description)
00025             finally:
00026                 fp.close()
00027             return _mod
00028     LeapPython = swig_import_helper()
00029     del swig_import_helper
00030 else:
00031     import LeapPython
00032 del version_info
00033 try:
00034     _swig_property = property
00035 except NameError:
00036     pass  # Python < 2.2 doesn't have 'property'.
00037 
00038 
00039 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
00040     if (name == "thisown"):
00041         return self.this.own(value)
00042     if (name == "this"):
00043         if type(value).__name__ == 'SwigPyObject':
00044             self.__dict__[name] = value
00045             return
00046     method = class_type.__swig_setmethods__.get(name, None)
00047     if method:
00048         return method(self, value)
00049     if (not static):
00050         object.__setattr__(self, name, value)
00051     else:
00052         raise AttributeError("You cannot add attributes to %s" % self)
00053 
00054 
00055 def _swig_setattr(self, class_type, name, value):
00056     return _swig_setattr_nondynamic(self, class_type, name, value, 0)
00057 
00058 
00059 def _swig_getattr_nondynamic(self, class_type, name, static=1):
00060     if (name == "thisown"):
00061         return self.this.own()
00062     method = class_type.__swig_getmethods__.get(name, None)
00063     if method:
00064         return method(self)
00065     if (not static):
00066         return object.__getattr__(self, name)
00067     else:
00068         raise AttributeError(name)
00069 
00070 def _swig_getattr(self, class_type, name):
00071     return _swig_getattr_nondynamic(self, class_type, name, 0)
00072 
00073 
00074 def _swig_repr(self):
00075     try:
00076         strthis = "proxy of " + self.this.__repr__()
00077     except:
00078         strthis = ""
00079     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00080 
00081 try:
00082     _object = object
00083     _newclass = 1
00084 except AttributeError:
00085     class _object:
00086         pass
00087     _newclass = 0
00088 
00089 
00090 try:
00091     import weakref
00092     weakref_proxy = weakref.proxy
00093 except:
00094     weakref_proxy = lambda x: x
00095 
00096 
00097 class SwigPyIterator(_object):
00098     __swig_setmethods__ = {}
00099     __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
00100     __swig_getmethods__ = {}
00101     __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
00102 
00103     def __init__(self, *args, **kwargs):
00104         raise AttributeError("No constructor defined - class is abstract")
00105     __repr__ = _swig_repr
00106     __swig_destroy__ = LeapPython.delete_SwigPyIterator
00107     __del__ = lambda self: None
00108 
00109     def value(self):
00110         return LeapPython.SwigPyIterator_value(self)
00111 
00112     def incr(self, n=1):
00113         return LeapPython.SwigPyIterator_incr(self, n)
00114 
00115     def decr(self, n=1):
00116         return LeapPython.SwigPyIterator_decr(self, n)
00117 
00118     def distance(self, x):
00119         return LeapPython.SwigPyIterator_distance(self, x)
00120 
00121     def equal(self, x):
00122         return LeapPython.SwigPyIterator_equal(self, x)
00123 
00124     def copy(self):
00125         return LeapPython.SwigPyIterator_copy(self)
00126 
00127     def next(self):
00128         return LeapPython.SwigPyIterator_next(self)
00129 
00130     def __next__(self):
00131         return LeapPython.SwigPyIterator___next__(self)
00132 
00133     def previous(self):
00134         return LeapPython.SwigPyIterator_previous(self)
00135 
00136     def advance(self, n):
00137         return LeapPython.SwigPyIterator_advance(self, n)
00138 
00139     def __eq__(self, x):
00140         return LeapPython.SwigPyIterator___eq__(self, x)
00141 
00142     def __ne__(self, x):
00143         return LeapPython.SwigPyIterator___ne__(self, x)
00144 
00145     def __iadd__(self, n):
00146         return LeapPython.SwigPyIterator___iadd__(self, n)
00147 
00148     def __isub__(self, n):
00149         return LeapPython.SwigPyIterator___isub__(self, n)
00150 
00151     def __add__(self, n):
00152         return LeapPython.SwigPyIterator___add__(self, n)
00153 
00154     def __sub__(self, *args):
00155         return LeapPython.SwigPyIterator___sub__(self, *args)
00156     def __iter__(self):
00157         return self
00158 SwigPyIterator_swigregister = LeapPython.SwigPyIterator_swigregister
00159 SwigPyIterator_swigregister(SwigPyIterator)
00160 
00161 class byte_array(_object):
00162     __swig_setmethods__ = {}
00163     __setattr__ = lambda self, name, value: _swig_setattr(self, byte_array, name, value)
00164     __swig_getmethods__ = {}
00165     __getattr__ = lambda self, name: _swig_getattr(self, byte_array, name)
00166     __repr__ = _swig_repr
00167 
00168     def __init__(self, nelements):
00169         this = LeapPython.new_byte_array(nelements)
00170         try:
00171             self.this.append(this)
00172         except:
00173             self.this = this
00174     __swig_destroy__ = LeapPython.delete_byte_array
00175     __del__ = lambda self: None
00176 
00177     def __getitem__(self, index):
00178         return LeapPython.byte_array___getitem__(self, index)
00179 
00180     def __setitem__(self, index, value):
00181         return LeapPython.byte_array___setitem__(self, index, value)
00182 
00183     def cast(self):
00184         return LeapPython.byte_array_cast(self)
00185     __swig_getmethods__["frompointer"] = lambda x: LeapPython.byte_array_frompointer
00186     if _newclass:
00187         frompointer = staticmethod(LeapPython.byte_array_frompointer)
00188 byte_array_swigregister = LeapPython.byte_array_swigregister
00189 byte_array_swigregister(byte_array)
00190 
00191 def byte_array_frompointer(t):
00192     return LeapPython.byte_array_frompointer(t)
00193 byte_array_frompointer = LeapPython.byte_array_frompointer
00194 
00195 class float_array(_object):
00196     __swig_setmethods__ = {}
00197     __setattr__ = lambda self, name, value: _swig_setattr(self, float_array, name, value)
00198     __swig_getmethods__ = {}
00199     __getattr__ = lambda self, name: _swig_getattr(self, float_array, name)
00200     __repr__ = _swig_repr
00201 
00202     def __init__(self, nelements):
00203         this = LeapPython.new_float_array(nelements)
00204         try:
00205             self.this.append(this)
00206         except:
00207             self.this = this
00208     __swig_destroy__ = LeapPython.delete_float_array
00209     __del__ = lambda self: None
00210 
00211     def __getitem__(self, index):
00212         return LeapPython.float_array___getitem__(self, index)
00213 
00214     def __setitem__(self, index, value):
00215         return LeapPython.float_array___setitem__(self, index, value)
00216 
00217     def cast(self):
00218         return LeapPython.float_array_cast(self)
00219     __swig_getmethods__["frompointer"] = lambda x: LeapPython.float_array_frompointer
00220     if _newclass:
00221         frompointer = staticmethod(LeapPython.float_array_frompointer)
00222 float_array_swigregister = LeapPython.float_array_swigregister
00223 float_array_swigregister(float_array)
00224 
00225 def float_array_frompointer(t):
00226     return LeapPython.float_array_frompointer(t)
00227 float_array_frompointer = LeapPython.float_array_frompointer
00228 
00229 class Vector(_object):
00230     __swig_setmethods__ = {}
00231     __setattr__ = lambda self, name, value: _swig_setattr(self, Vector, name, value)
00232     __swig_getmethods__ = {}
00233     __getattr__ = lambda self, name: _swig_getattr(self, Vector, name)
00234     __repr__ = _swig_repr
00235 
00236     def __init__(self, *args):
00237         this = LeapPython.new_Vector(*args)
00238         try:
00239             self.this.append(this)
00240         except:
00241             self.this = this
00242 
00243     def distance_to(self, other):
00244         return LeapPython.Vector_distance_to(self, other)
00245 
00246     def angle_to(self, other):
00247         return LeapPython.Vector_angle_to(self, other)
00248 
00249     def dot(self, other):
00250         return LeapPython.Vector_dot(self, other)
00251 
00252     def cross(self, other):
00253         return LeapPython.Vector_cross(self, other)
00254 
00255     def __neg__(self):
00256         return LeapPython.Vector___neg__(self)
00257 
00258     def __add__(self, other):
00259         return LeapPython.Vector___add__(self, other)
00260 
00261     def __sub__(self, other):
00262         return LeapPython.Vector___sub__(self, other)
00263 
00264     def __mul__(self, scalar):
00265         return LeapPython.Vector___mul__(self, scalar)
00266 
00267     def __div__(self, scalar):
00268         return LeapPython.Vector___div__(self, scalar)
00269 
00270     def __iadd__(self, other):
00271         return LeapPython.Vector___iadd__(self, other)
00272 
00273     def __isub__(self, other):
00274         return LeapPython.Vector___isub__(self, other)
00275 
00276     def __imul__(self, scalar):
00277         return LeapPython.Vector___imul__(self, scalar)
00278 
00279     def __idiv__(self, scalar):
00280         return LeapPython.Vector___idiv__(self, scalar)
00281 
00282     def __str__(self):
00283         return LeapPython.Vector___str__(self)
00284 
00285     def __eq__(self, other):
00286         return LeapPython.Vector___eq__(self, other)
00287 
00288     def __ne__(self, other):
00289         return LeapPython.Vector___ne__(self, other)
00290 
00291     def is_valid(self):
00292         return LeapPython.Vector_is_valid(self)
00293 
00294     def __getitem__(self, index):
00295         return LeapPython.Vector___getitem__(self, index)
00296     __swig_setmethods__["x"] = LeapPython.Vector_x_set
00297     __swig_getmethods__["x"] = LeapPython.Vector_x_get
00298     if _newclass:
00299         x = _swig_property(LeapPython.Vector_x_get, LeapPython.Vector_x_set)
00300     __swig_setmethods__["y"] = LeapPython.Vector_y_set
00301     __swig_getmethods__["y"] = LeapPython.Vector_y_get
00302     if _newclass:
00303         y = _swig_property(LeapPython.Vector_y_get, LeapPython.Vector_y_set)
00304     __swig_setmethods__["z"] = LeapPython.Vector_z_set
00305     __swig_getmethods__["z"] = LeapPython.Vector_z_get
00306     if _newclass:
00307         z = _swig_property(LeapPython.Vector_z_get, LeapPython.Vector_z_set)
00308     __swig_getmethods__["magnitude"] = LeapPython.Vector_magnitude_get
00309     if _newclass:
00310         magnitude = _swig_property(LeapPython.Vector_magnitude_get)
00311     __swig_getmethods__["magnitude_squared"] = LeapPython.Vector_magnitude_squared_get
00312     if _newclass:
00313         magnitude_squared = _swig_property(LeapPython.Vector_magnitude_squared_get)
00314     __swig_getmethods__["pitch"] = LeapPython.Vector_pitch_get
00315     if _newclass:
00316         pitch = _swig_property(LeapPython.Vector_pitch_get)
00317     __swig_getmethods__["roll"] = LeapPython.Vector_roll_get
00318     if _newclass:
00319         roll = _swig_property(LeapPython.Vector_roll_get)
00320     __swig_getmethods__["yaw"] = LeapPython.Vector_yaw_get
00321     if _newclass:
00322         yaw = _swig_property(LeapPython.Vector_yaw_get)
00323     __swig_getmethods__["normalized"] = LeapPython.Vector_normalized_get
00324     if _newclass:
00325         normalized = _swig_property(LeapPython.Vector_normalized_get)
00326     def to_float_array(self): return [self.x, self.y, self.z]
00327     def to_tuple(self): return (self.x, self.y, self.z)
00328 
00329     __swig_destroy__ = LeapPython.delete_Vector
00330     __del__ = lambda self: None
00331 Vector_swigregister = LeapPython.Vector_swigregister
00332 Vector_swigregister(Vector)
00333 cvar = LeapPython.cvar
00334 PI = cvar.PI
00335 DEG_TO_RAD = cvar.DEG_TO_RAD
00336 RAD_TO_DEG = cvar.RAD_TO_DEG
00337 EPSILON = cvar.EPSILON
00338 Vector.zero = LeapPython.cvar.Vector_zero
00339 Vector.x_axis = LeapPython.cvar.Vector_x_axis
00340 Vector.y_axis = LeapPython.cvar.Vector_y_axis
00341 Vector.z_axis = LeapPython.cvar.Vector_z_axis
00342 Vector.forward = LeapPython.cvar.Vector_forward
00343 Vector.backward = LeapPython.cvar.Vector_backward
00344 Vector.left = LeapPython.cvar.Vector_left
00345 Vector.right = LeapPython.cvar.Vector_right
00346 Vector.up = LeapPython.cvar.Vector_up
00347 Vector.down = LeapPython.cvar.Vector_down
00348 
00349 class Matrix(_object):
00350     __swig_setmethods__ = {}
00351     __setattr__ = lambda self, name, value: _swig_setattr(self, Matrix, name, value)
00352     __swig_getmethods__ = {}
00353     __getattr__ = lambda self, name: _swig_getattr(self, Matrix, name)
00354     __repr__ = _swig_repr
00355 
00356     def __init__(self, *args):
00357         this = LeapPython.new_Matrix(*args)
00358         try:
00359             self.this.append(this)
00360         except:
00361             self.this = this
00362 
00363     def set_rotation(self, axis, angleRadians):
00364         return LeapPython.Matrix_set_rotation(self, axis, angleRadians)
00365 
00366     def transform_point(self, arg2):
00367         return LeapPython.Matrix_transform_point(self, arg2)
00368 
00369     def transform_direction(self, arg2):
00370         return LeapPython.Matrix_transform_direction(self, arg2)
00371 
00372     def rigid_inverse(self):
00373         return LeapPython.Matrix_rigid_inverse(self)
00374 
00375     def __mul__(self, other):
00376         return LeapPython.Matrix___mul__(self, other)
00377 
00378     def __imul__(self, other):
00379         return LeapPython.Matrix___imul__(self, other)
00380 
00381     def __eq__(self, other):
00382         return LeapPython.Matrix___eq__(self, other)
00383 
00384     def __ne__(self, other):
00385         return LeapPython.Matrix___ne__(self, other)
00386 
00387     def __str__(self):
00388         return LeapPython.Matrix___str__(self)
00389     __swig_setmethods__["x_basis"] = LeapPython.Matrix_x_basis_set
00390     __swig_getmethods__["x_basis"] = LeapPython.Matrix_x_basis_get
00391     if _newclass:
00392         x_basis = _swig_property(LeapPython.Matrix_x_basis_get, LeapPython.Matrix_x_basis_set)
00393     __swig_setmethods__["y_basis"] = LeapPython.Matrix_y_basis_set
00394     __swig_getmethods__["y_basis"] = LeapPython.Matrix_y_basis_get
00395     if _newclass:
00396         y_basis = _swig_property(LeapPython.Matrix_y_basis_get, LeapPython.Matrix_y_basis_set)
00397     __swig_setmethods__["z_basis"] = LeapPython.Matrix_z_basis_set
00398     __swig_getmethods__["z_basis"] = LeapPython.Matrix_z_basis_get
00399     if _newclass:
00400         z_basis = _swig_property(LeapPython.Matrix_z_basis_get, LeapPython.Matrix_z_basis_set)
00401     __swig_setmethods__["origin"] = LeapPython.Matrix_origin_set
00402     __swig_getmethods__["origin"] = LeapPython.Matrix_origin_get
00403     if _newclass:
00404         origin = _swig_property(LeapPython.Matrix_origin_get, LeapPython.Matrix_origin_set)
00405     def to_array_3x3(self, output = None):
00406         if output is None:
00407             output = [0]*9
00408         output[0], output[1], output[2] = self.x_basis.x, self.x_basis.y, self.x_basis.z
00409         output[3], output[4], output[5] = self.y_basis.x, self.y_basis.y, self.y_basis.z
00410         output[6], output[7], output[8] = self.z_basis.x, self.z_basis.y, self.z_basis.z
00411         return output
00412     def to_array_4x4(self, output = None):
00413         if output is None:
00414             output = [0]*16
00415         output[0],  output[1],  output[2],  output[3]  = self.x_basis.x, self.x_basis.y, self.x_basis.z, 0.0
00416         output[4],  output[5],  output[6],  output[7]  = self.y_basis.x, self.y_basis.y, self.y_basis.z, 0.0
00417         output[8],  output[9],  output[10], output[11] = self.z_basis.x, self.z_basis.y, self.z_basis.z, 0.0
00418         output[12], output[13], output[14], output[15] = self.origin.x,  self.origin.y,  self.origin.z,  1.0
00419         return output
00420 
00421     __swig_destroy__ = LeapPython.delete_Matrix
00422     __del__ = lambda self: None
00423 Matrix_swigregister = LeapPython.Matrix_swigregister
00424 Matrix_swigregister(Matrix)
00425 Matrix.identity = LeapPython.cvar.Matrix_identity
00426 
00427 class Interface(_object):
00428     __swig_setmethods__ = {}
00429     __setattr__ = lambda self, name, value: _swig_setattr(self, Interface, name, value)
00430     __swig_getmethods__ = {}
00431     __getattr__ = lambda self, name: _swig_getattr(self, Interface, name)
00432 
00433     def __init__(self, *args, **kwargs):
00434         raise AttributeError("No constructor defined")
00435     __repr__ = _swig_repr
00436 Interface_swigregister = LeapPython.Interface_swigregister
00437 Interface_swigregister(Interface)
00438 
00439 class Pointable(Interface):
00440     __swig_setmethods__ = {}
00441     for _s in [Interface]:
00442         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
00443     __setattr__ = lambda self, name, value: _swig_setattr(self, Pointable, name, value)
00444     __swig_getmethods__ = {}
00445     for _s in [Interface]:
00446         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
00447     __getattr__ = lambda self, name: _swig_getattr(self, Pointable, name)
00448     __repr__ = _swig_repr
00449     ZONE_NONE = LeapPython.Pointable_ZONE_NONE
00450     ZONE_HOVERING = LeapPython.Pointable_ZONE_HOVERING
00451     ZONE_TOUCHING = LeapPython.Pointable_ZONE_TOUCHING
00452 
00453     def __init__(self):
00454         this = LeapPython.new_Pointable()
00455         try:
00456             self.this.append(this)
00457         except:
00458             self.this = this
00459 
00460     def __eq__(self, arg2):
00461         return LeapPython.Pointable___eq__(self, arg2)
00462 
00463     def __ne__(self, arg2):
00464         return LeapPython.Pointable___ne__(self, arg2)
00465 
00466     def __str__(self):
00467         return LeapPython.Pointable___str__(self)
00468     __swig_getmethods__["id"] = LeapPython.Pointable_id_get
00469     if _newclass:
00470         id = _swig_property(LeapPython.Pointable_id_get)
00471     __swig_getmethods__["hand"] = LeapPython.Pointable_hand_get
00472     if _newclass:
00473         hand = _swig_property(LeapPython.Pointable_hand_get)
00474     __swig_getmethods__["tip_position"] = LeapPython.Pointable_tip_position_get
00475     if _newclass:
00476         tip_position = _swig_property(LeapPython.Pointable_tip_position_get)
00477     __swig_getmethods__["tip_velocity"] = LeapPython.Pointable_tip_velocity_get
00478     if _newclass:
00479         tip_velocity = _swig_property(LeapPython.Pointable_tip_velocity_get)
00480     __swig_getmethods__["direction"] = LeapPython.Pointable_direction_get
00481     if _newclass:
00482         direction = _swig_property(LeapPython.Pointable_direction_get)
00483     __swig_getmethods__["width"] = LeapPython.Pointable_width_get
00484     if _newclass:
00485         width = _swig_property(LeapPython.Pointable_width_get)
00486     __swig_getmethods__["length"] = LeapPython.Pointable_length_get
00487     if _newclass:
00488         length = _swig_property(LeapPython.Pointable_length_get)
00489     __swig_getmethods__["is_tool"] = LeapPython.Pointable_is_tool_get
00490     if _newclass:
00491         is_tool = _swig_property(LeapPython.Pointable_is_tool_get)
00492     __swig_getmethods__["is_finger"] = LeapPython.Pointable_is_finger_get
00493     if _newclass:
00494         is_finger = _swig_property(LeapPython.Pointable_is_finger_get)
00495     __swig_getmethods__["is_extended"] = LeapPython.Pointable_is_extended_get
00496     if _newclass:
00497         is_extended = _swig_property(LeapPython.Pointable_is_extended_get)
00498     __swig_getmethods__["is_valid"] = LeapPython.Pointable_is_valid_get
00499     if _newclass:
00500         is_valid = _swig_property(LeapPython.Pointable_is_valid_get)
00501     __swig_getmethods__["touch_zone"] = LeapPython.Pointable_touch_zone_get
00502     if _newclass:
00503         touch_zone = _swig_property(LeapPython.Pointable_touch_zone_get)
00504     __swig_getmethods__["touch_distance"] = LeapPython.Pointable_touch_distance_get
00505     if _newclass:
00506         touch_distance = _swig_property(LeapPython.Pointable_touch_distance_get)
00507     __swig_getmethods__["stabilized_tip_position"] = LeapPython.Pointable_stabilized_tip_position_get
00508     if _newclass:
00509         stabilized_tip_position = _swig_property(LeapPython.Pointable_stabilized_tip_position_get)
00510     __swig_getmethods__["time_visible"] = LeapPython.Pointable_time_visible_get
00511     if _newclass:
00512         time_visible = _swig_property(LeapPython.Pointable_time_visible_get)
00513     __swig_getmethods__["frame"] = LeapPython.Pointable_frame_get
00514     if _newclass:
00515         frame = _swig_property(LeapPython.Pointable_frame_get)
00516     __swig_destroy__ = LeapPython.delete_Pointable
00517     __del__ = lambda self: None
00518 Pointable_swigregister = LeapPython.Pointable_swigregister
00519 Pointable_swigregister(Pointable)
00520 Pointable.invalid = LeapPython.cvar.Pointable_invalid
00521 
00522 class Arm(Interface):
00523     __swig_setmethods__ = {}
00524     for _s in [Interface]:
00525         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
00526     __setattr__ = lambda self, name, value: _swig_setattr(self, Arm, name, value)
00527     __swig_getmethods__ = {}
00528     for _s in [Interface]:
00529         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
00530     __getattr__ = lambda self, name: _swig_getattr(self, Arm, name)
00531     __repr__ = _swig_repr
00532 
00533     def __init__(self):
00534         this = LeapPython.new_Arm()
00535         try:
00536             self.this.append(this)
00537         except:
00538             self.this = this
00539 
00540     def __eq__(self, arg2):
00541         return LeapPython.Arm___eq__(self, arg2)
00542 
00543     def __ne__(self, arg2):
00544         return LeapPython.Arm___ne__(self, arg2)
00545 
00546     def __str__(self):
00547         return LeapPython.Arm___str__(self)
00548     __swig_getmethods__["width"] = LeapPython.Arm_width_get
00549     if _newclass:
00550         width = _swig_property(LeapPython.Arm_width_get)
00551     __swig_getmethods__["center"] = LeapPython.Arm_center_get
00552     if _newclass:
00553         center = _swig_property(LeapPython.Arm_center_get)
00554     __swig_getmethods__["direction"] = LeapPython.Arm_direction_get
00555     if _newclass:
00556         direction = _swig_property(LeapPython.Arm_direction_get)
00557     __swig_getmethods__["basis"] = LeapPython.Arm_basis_get
00558     if _newclass:
00559         basis = _swig_property(LeapPython.Arm_basis_get)
00560     __swig_getmethods__["elbow_position"] = LeapPython.Arm_elbow_position_get
00561     if _newclass:
00562         elbow_position = _swig_property(LeapPython.Arm_elbow_position_get)
00563     __swig_getmethods__["wrist_position"] = LeapPython.Arm_wrist_position_get
00564     if _newclass:
00565         wrist_position = _swig_property(LeapPython.Arm_wrist_position_get)
00566     __swig_getmethods__["is_valid"] = LeapPython.Arm_is_valid_get
00567     if _newclass:
00568         is_valid = _swig_property(LeapPython.Arm_is_valid_get)
00569     __swig_destroy__ = LeapPython.delete_Arm
00570     __del__ = lambda self: None
00571 Arm_swigregister = LeapPython.Arm_swigregister
00572 Arm_swigregister(Arm)
00573 Arm.invalid = LeapPython.cvar.Arm_invalid
00574 
00575 class Bone(Interface):
00576     __swig_setmethods__ = {}
00577     for _s in [Interface]:
00578         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
00579     __setattr__ = lambda self, name, value: _swig_setattr(self, Bone, name, value)
00580     __swig_getmethods__ = {}
00581     for _s in [Interface]:
00582         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
00583     __getattr__ = lambda self, name: _swig_getattr(self, Bone, name)
00584     __repr__ = _swig_repr
00585     TYPE_METACARPAL = LeapPython.Bone_TYPE_METACARPAL
00586     TYPE_PROXIMAL = LeapPython.Bone_TYPE_PROXIMAL
00587     TYPE_INTERMEDIATE = LeapPython.Bone_TYPE_INTERMEDIATE
00588     TYPE_DISTAL = LeapPython.Bone_TYPE_DISTAL
00589 
00590     def __init__(self):
00591         this = LeapPython.new_Bone()
00592         try:
00593             self.this.append(this)
00594         except:
00595             self.this = this
00596 
00597     def __eq__(self, arg2):
00598         return LeapPython.Bone___eq__(self, arg2)
00599 
00600     def __ne__(self, arg2):
00601         return LeapPython.Bone___ne__(self, arg2)
00602 
00603     def __str__(self):
00604         return LeapPython.Bone___str__(self)
00605     __swig_getmethods__["prev_joint"] = LeapPython.Bone_prev_joint_get
00606     if _newclass:
00607         prev_joint = _swig_property(LeapPython.Bone_prev_joint_get)
00608     __swig_getmethods__["next_joint"] = LeapPython.Bone_next_joint_get
00609     if _newclass:
00610         next_joint = _swig_property(LeapPython.Bone_next_joint_get)
00611     __swig_getmethods__["center"] = LeapPython.Bone_center_get
00612     if _newclass:
00613         center = _swig_property(LeapPython.Bone_center_get)
00614     __swig_getmethods__["direction"] = LeapPython.Bone_direction_get
00615     if _newclass:
00616         direction = _swig_property(LeapPython.Bone_direction_get)
00617     __swig_getmethods__["length"] = LeapPython.Bone_length_get
00618     if _newclass:
00619         length = _swig_property(LeapPython.Bone_length_get)
00620     __swig_getmethods__["width"] = LeapPython.Bone_width_get
00621     if _newclass:
00622         width = _swig_property(LeapPython.Bone_width_get)
00623     __swig_getmethods__["type"] = LeapPython.Bone_type_get
00624     if _newclass:
00625         type = _swig_property(LeapPython.Bone_type_get)
00626     __swig_getmethods__["basis"] = LeapPython.Bone_basis_get
00627     if _newclass:
00628         basis = _swig_property(LeapPython.Bone_basis_get)
00629     __swig_getmethods__["is_valid"] = LeapPython.Bone_is_valid_get
00630     if _newclass:
00631         is_valid = _swig_property(LeapPython.Bone_is_valid_get)
00632     __swig_destroy__ = LeapPython.delete_Bone
00633     __del__ = lambda self: None
00634 Bone_swigregister = LeapPython.Bone_swigregister
00635 Bone_swigregister(Bone)
00636 Bone.invalid = LeapPython.cvar.Bone_invalid
00637 
00638 class Finger(Pointable):
00639     __swig_setmethods__ = {}
00640     for _s in [Pointable]:
00641         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
00642     __setattr__ = lambda self, name, value: _swig_setattr(self, Finger, name, value)
00643     __swig_getmethods__ = {}
00644     for _s in [Pointable]:
00645         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
00646     __getattr__ = lambda self, name: _swig_getattr(self, Finger, name)
00647     __repr__ = _swig_repr
00648     JOINT_MCP = LeapPython.Finger_JOINT_MCP
00649     JOINT_PIP = LeapPython.Finger_JOINT_PIP
00650     JOINT_DIP = LeapPython.Finger_JOINT_DIP
00651     JOINT_TIP = LeapPython.Finger_JOINT_TIP
00652     TYPE_THUMB = LeapPython.Finger_TYPE_THUMB
00653     TYPE_INDEX = LeapPython.Finger_TYPE_INDEX
00654     TYPE_MIDDLE = LeapPython.Finger_TYPE_MIDDLE
00655     TYPE_RING = LeapPython.Finger_TYPE_RING
00656     TYPE_PINKY = LeapPython.Finger_TYPE_PINKY
00657 
00658     def __init__(self, *args):
00659         this = LeapPython.new_Finger(*args)
00660         try:
00661             self.this.append(this)
00662         except:
00663             self.this = this
00664 
00665     def joint_position(self, jointIx):
00666         return LeapPython.Finger_joint_position(self, jointIx)
00667 
00668     def bone(self, boneIx):
00669         return LeapPython.Finger_bone(self, boneIx)
00670 
00671     def __str__(self):
00672         return LeapPython.Finger___str__(self)
00673     __swig_getmethods__["type"] = LeapPython.Finger_type_get
00674     if _newclass:
00675         type = _swig_property(LeapPython.Finger_type_get)
00676     __swig_destroy__ = LeapPython.delete_Finger
00677     __del__ = lambda self: None
00678 Finger_swigregister = LeapPython.Finger_swigregister
00679 Finger_swigregister(Finger)
00680 Finger.invalid = LeapPython.cvar.Finger_invalid
00681 
00682 class Tool(Pointable):
00683     __swig_setmethods__ = {}
00684     for _s in [Pointable]:
00685         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
00686     __setattr__ = lambda self, name, value: _swig_setattr(self, Tool, name, value)
00687     __swig_getmethods__ = {}
00688     for _s in [Pointable]:
00689         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
00690     __getattr__ = lambda self, name: _swig_getattr(self, Tool, name)
00691     __repr__ = _swig_repr
00692 
00693     def __init__(self, *args):
00694         this = LeapPython.new_Tool(*args)
00695         try:
00696             self.this.append(this)
00697         except:
00698             self.this = this
00699 
00700     def __str__(self):
00701         return LeapPython.Tool___str__(self)
00702     __swig_destroy__ = LeapPython.delete_Tool
00703     __del__ = lambda self: None
00704 Tool_swigregister = LeapPython.Tool_swigregister
00705 Tool_swigregister(Tool)
00706 Tool.invalid = LeapPython.cvar.Tool_invalid
00707 
00708 class Hand(Interface):
00709     __swig_setmethods__ = {}
00710     for _s in [Interface]:
00711         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
00712     __setattr__ = lambda self, name, value: _swig_setattr(self, Hand, name, value)
00713     __swig_getmethods__ = {}
00714     for _s in [Interface]:
00715         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
00716     __getattr__ = lambda self, name: _swig_getattr(self, Hand, name)
00717     __repr__ = _swig_repr
00718 
00719     def __init__(self):
00720         this = LeapPython.new_Hand()
00721         try:
00722             self.this.append(this)
00723         except:
00724             self.this = this
00725 
00726     def pointable(self, id):
00727         return LeapPython.Hand_pointable(self, id)
00728 
00729     def finger(self, id):
00730         return LeapPython.Hand_finger(self, id)
00731 
00732     def tool(self, id):
00733         return LeapPython.Hand_tool(self, id)
00734 
00735     def translation(self, sinceFrame):
00736         return LeapPython.Hand_translation(self, sinceFrame)
00737 
00738     def translation_probability(self, sinceFrame):
00739         return LeapPython.Hand_translation_probability(self, sinceFrame)
00740 
00741     def rotation_axis(self, sinceFrame):
00742         return LeapPython.Hand_rotation_axis(self, sinceFrame)
00743 
00744     def rotation_angle(self, *args):
00745         return LeapPython.Hand_rotation_angle(self, *args)
00746 
00747     def rotation_matrix(self, sinceFrame):
00748         return LeapPython.Hand_rotation_matrix(self, sinceFrame)
00749 
00750     def rotation_probability(self, sinceFrame):
00751         return LeapPython.Hand_rotation_probability(self, sinceFrame)
00752 
00753     def scale_factor(self, sinceFrame):
00754         return LeapPython.Hand_scale_factor(self, sinceFrame)
00755 
00756     def scale_probability(self, sinceFrame):
00757         return LeapPython.Hand_scale_probability(self, sinceFrame)
00758 
00759     def __eq__(self, arg2):
00760         return LeapPython.Hand___eq__(self, arg2)
00761 
00762     def __ne__(self, arg2):
00763         return LeapPython.Hand___ne__(self, arg2)
00764 
00765     def __str__(self):
00766         return LeapPython.Hand___str__(self)
00767     __swig_getmethods__["id"] = LeapPython.Hand_id_get
00768     if _newclass:
00769         id = _swig_property(LeapPython.Hand_id_get)
00770     __swig_getmethods__["pointables"] = LeapPython.Hand_pointables_get
00771     if _newclass:
00772         pointables = _swig_property(LeapPython.Hand_pointables_get)
00773     __swig_getmethods__["fingers"] = LeapPython.Hand_fingers_get
00774     if _newclass:
00775         fingers = _swig_property(LeapPython.Hand_fingers_get)
00776     __swig_getmethods__["tools"] = LeapPython.Hand_tools_get
00777     if _newclass:
00778         tools = _swig_property(LeapPython.Hand_tools_get)
00779     __swig_getmethods__["palm_position"] = LeapPython.Hand_palm_position_get
00780     if _newclass:
00781         palm_position = _swig_property(LeapPython.Hand_palm_position_get)
00782     __swig_getmethods__["palm_velocity"] = LeapPython.Hand_palm_velocity_get
00783     if _newclass:
00784         palm_velocity = _swig_property(LeapPython.Hand_palm_velocity_get)
00785     __swig_getmethods__["palm_normal"] = LeapPython.Hand_palm_normal_get
00786     if _newclass:
00787         palm_normal = _swig_property(LeapPython.Hand_palm_normal_get)
00788     __swig_getmethods__["direction"] = LeapPython.Hand_direction_get
00789     if _newclass:
00790         direction = _swig_property(LeapPython.Hand_direction_get)
00791     __swig_getmethods__["basis"] = LeapPython.Hand_basis_get
00792     if _newclass:
00793         basis = _swig_property(LeapPython.Hand_basis_get)
00794     __swig_getmethods__["is_valid"] = LeapPython.Hand_is_valid_get
00795     if _newclass:
00796         is_valid = _swig_property(LeapPython.Hand_is_valid_get)
00797     __swig_getmethods__["sphere_center"] = LeapPython.Hand_sphere_center_get
00798     if _newclass:
00799         sphere_center = _swig_property(LeapPython.Hand_sphere_center_get)
00800     __swig_getmethods__["sphere_radius"] = LeapPython.Hand_sphere_radius_get
00801     if _newclass:
00802         sphere_radius = _swig_property(LeapPython.Hand_sphere_radius_get)
00803     __swig_getmethods__["grab_strength"] = LeapPython.Hand_grab_strength_get
00804     if _newclass:
00805         grab_strength = _swig_property(LeapPython.Hand_grab_strength_get)
00806     __swig_getmethods__["pinch_strength"] = LeapPython.Hand_pinch_strength_get
00807     if _newclass:
00808         pinch_strength = _swig_property(LeapPython.Hand_pinch_strength_get)
00809     __swig_getmethods__["palm_width"] = LeapPython.Hand_palm_width_get
00810     if _newclass:
00811         palm_width = _swig_property(LeapPython.Hand_palm_width_get)
00812     __swig_getmethods__["stabilized_palm_position"] = LeapPython.Hand_stabilized_palm_position_get
00813     if _newclass:
00814         stabilized_palm_position = _swig_property(LeapPython.Hand_stabilized_palm_position_get)
00815     __swig_getmethods__["wrist_position"] = LeapPython.Hand_wrist_position_get
00816     if _newclass:
00817         wrist_position = _swig_property(LeapPython.Hand_wrist_position_get)
00818     __swig_getmethods__["time_visible"] = LeapPython.Hand_time_visible_get
00819     if _newclass:
00820         time_visible = _swig_property(LeapPython.Hand_time_visible_get)
00821     __swig_getmethods__["confidence"] = LeapPython.Hand_confidence_get
00822     if _newclass:
00823         confidence = _swig_property(LeapPython.Hand_confidence_get)
00824     __swig_getmethods__["is_left"] = LeapPython.Hand_is_left_get
00825     if _newclass:
00826         is_left = _swig_property(LeapPython.Hand_is_left_get)
00827     __swig_getmethods__["is_right"] = LeapPython.Hand_is_right_get
00828     if _newclass:
00829         is_right = _swig_property(LeapPython.Hand_is_right_get)
00830     __swig_getmethods__["frame"] = LeapPython.Hand_frame_get
00831     if _newclass:
00832         frame = _swig_property(LeapPython.Hand_frame_get)
00833     __swig_getmethods__["arm"] = LeapPython.Hand_arm_get
00834     if _newclass:
00835         arm = _swig_property(LeapPython.Hand_arm_get)
00836     __swig_destroy__ = LeapPython.delete_Hand
00837     __del__ = lambda self: None
00838 Hand_swigregister = LeapPython.Hand_swigregister
00839 Hand_swigregister(Hand)
00840 Hand.invalid = LeapPython.cvar.Hand_invalid
00841 
00842 class Gesture(Interface):
00843     __swig_setmethods__ = {}
00844     for _s in [Interface]:
00845         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
00846     __setattr__ = lambda self, name, value: _swig_setattr(self, Gesture, name, value)
00847     __swig_getmethods__ = {}
00848     for _s in [Interface]:
00849         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
00850     __getattr__ = lambda self, name: _swig_getattr(self, Gesture, name)
00851     __repr__ = _swig_repr
00852     TYPE_INVALID = LeapPython.Gesture_TYPE_INVALID
00853     TYPE_SWIPE = LeapPython.Gesture_TYPE_SWIPE
00854     TYPE_CIRCLE = LeapPython.Gesture_TYPE_CIRCLE
00855     TYPE_SCREEN_TAP = LeapPython.Gesture_TYPE_SCREEN_TAP
00856     TYPE_KEY_TAP = LeapPython.Gesture_TYPE_KEY_TAP
00857     STATE_INVALID = LeapPython.Gesture_STATE_INVALID
00858     STATE_START = LeapPython.Gesture_STATE_START
00859     STATE_UPDATE = LeapPython.Gesture_STATE_UPDATE
00860     STATE_STOP = LeapPython.Gesture_STATE_STOP
00861 
00862     def __init__(self, *args):
00863         this = LeapPython.new_Gesture(*args)
00864         try:
00865             self.this.append(this)
00866         except:
00867             self.this = this
00868 
00869     def __eq__(self, rhs):
00870         return LeapPython.Gesture___eq__(self, rhs)
00871 
00872     def __ne__(self, rhs):
00873         return LeapPython.Gesture___ne__(self, rhs)
00874 
00875     def __str__(self):
00876         return LeapPython.Gesture___str__(self)
00877     __swig_getmethods__["type"] = LeapPython.Gesture_type_get
00878     if _newclass:
00879         type = _swig_property(LeapPython.Gesture_type_get)
00880     __swig_getmethods__["state"] = LeapPython.Gesture_state_get
00881     if _newclass:
00882         state = _swig_property(LeapPython.Gesture_state_get)
00883     __swig_getmethods__["id"] = LeapPython.Gesture_id_get
00884     if _newclass:
00885         id = _swig_property(LeapPython.Gesture_id_get)
00886     __swig_getmethods__["duration"] = LeapPython.Gesture_duration_get
00887     if _newclass:
00888         duration = _swig_property(LeapPython.Gesture_duration_get)
00889     __swig_getmethods__["duration_seconds"] = LeapPython.Gesture_duration_seconds_get
00890     if _newclass:
00891         duration_seconds = _swig_property(LeapPython.Gesture_duration_seconds_get)
00892     __swig_getmethods__["frame"] = LeapPython.Gesture_frame_get
00893     if _newclass:
00894         frame = _swig_property(LeapPython.Gesture_frame_get)
00895     __swig_getmethods__["hands"] = LeapPython.Gesture_hands_get
00896     if _newclass:
00897         hands = _swig_property(LeapPython.Gesture_hands_get)
00898     __swig_getmethods__["pointables"] = LeapPython.Gesture_pointables_get
00899     if _newclass:
00900         pointables = _swig_property(LeapPython.Gesture_pointables_get)
00901     __swig_getmethods__["is_valid"] = LeapPython.Gesture_is_valid_get
00902     if _newclass:
00903         is_valid = _swig_property(LeapPython.Gesture_is_valid_get)
00904     __swig_destroy__ = LeapPython.delete_Gesture
00905     __del__ = lambda self: None
00906 Gesture_swigregister = LeapPython.Gesture_swigregister
00907 Gesture_swigregister(Gesture)
00908 Gesture.invalid = LeapPython.cvar.Gesture_invalid
00909 
00910 class SwipeGesture(Gesture):
00911     __swig_setmethods__ = {}
00912     for _s in [Gesture]:
00913         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
00914     __setattr__ = lambda self, name, value: _swig_setattr(self, SwipeGesture, name, value)
00915     __swig_getmethods__ = {}
00916     for _s in [Gesture]:
00917         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
00918     __getattr__ = lambda self, name: _swig_getattr(self, SwipeGesture, name)
00919     __repr__ = _swig_repr
00920     __swig_getmethods__["class_type"] = lambda x: LeapPython.SwipeGesture_class_type
00921     if _newclass:
00922         class_type = staticmethod(LeapPython.SwipeGesture_class_type)
00923 
00924     def __init__(self, *args):
00925         this = LeapPython.new_SwipeGesture(*args)
00926         try:
00927             self.this.append(this)
00928         except:
00929             self.this = this
00930     __swig_getmethods__["start_position"] = LeapPython.SwipeGesture_start_position_get
00931     if _newclass:
00932         start_position = _swig_property(LeapPython.SwipeGesture_start_position_get)
00933     __swig_getmethods__["position"] = LeapPython.SwipeGesture_position_get
00934     if _newclass:
00935         position = _swig_property(LeapPython.SwipeGesture_position_get)
00936     __swig_getmethods__["direction"] = LeapPython.SwipeGesture_direction_get
00937     if _newclass:
00938         direction = _swig_property(LeapPython.SwipeGesture_direction_get)
00939     __swig_getmethods__["speed"] = LeapPython.SwipeGesture_speed_get
00940     if _newclass:
00941         speed = _swig_property(LeapPython.SwipeGesture_speed_get)
00942     __swig_getmethods__["pointable"] = LeapPython.SwipeGesture_pointable_get
00943     if _newclass:
00944         pointable = _swig_property(LeapPython.SwipeGesture_pointable_get)
00945     __swig_destroy__ = LeapPython.delete_SwipeGesture
00946     __del__ = lambda self: None
00947 SwipeGesture_swigregister = LeapPython.SwipeGesture_swigregister
00948 SwipeGesture_swigregister(SwipeGesture)
00949 
00950 def SwipeGesture_class_type():
00951     return LeapPython.SwipeGesture_class_type()
00952 SwipeGesture_class_type = LeapPython.SwipeGesture_class_type
00953 
00954 class CircleGesture(Gesture):
00955     __swig_setmethods__ = {}
00956     for _s in [Gesture]:
00957         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
00958     __setattr__ = lambda self, name, value: _swig_setattr(self, CircleGesture, name, value)
00959     __swig_getmethods__ = {}
00960     for _s in [Gesture]:
00961         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
00962     __getattr__ = lambda self, name: _swig_getattr(self, CircleGesture, name)
00963     __repr__ = _swig_repr
00964     __swig_getmethods__["class_type"] = lambda x: LeapPython.CircleGesture_class_type
00965     if _newclass:
00966         class_type = staticmethod(LeapPython.CircleGesture_class_type)
00967 
00968     def __init__(self, *args):
00969         this = LeapPython.new_CircleGesture(*args)
00970         try:
00971             self.this.append(this)
00972         except:
00973             self.this = this
00974     __swig_getmethods__["center"] = LeapPython.CircleGesture_center_get
00975     if _newclass:
00976         center = _swig_property(LeapPython.CircleGesture_center_get)
00977     __swig_getmethods__["normal"] = LeapPython.CircleGesture_normal_get
00978     if _newclass:
00979         normal = _swig_property(LeapPython.CircleGesture_normal_get)
00980     __swig_getmethods__["progress"] = LeapPython.CircleGesture_progress_get
00981     if _newclass:
00982         progress = _swig_property(LeapPython.CircleGesture_progress_get)
00983     __swig_getmethods__["radius"] = LeapPython.CircleGesture_radius_get
00984     if _newclass:
00985         radius = _swig_property(LeapPython.CircleGesture_radius_get)
00986     __swig_getmethods__["pointable"] = LeapPython.CircleGesture_pointable_get
00987     if _newclass:
00988         pointable = _swig_property(LeapPython.CircleGesture_pointable_get)
00989     __swig_destroy__ = LeapPython.delete_CircleGesture
00990     __del__ = lambda self: None
00991 CircleGesture_swigregister = LeapPython.CircleGesture_swigregister
00992 CircleGesture_swigregister(CircleGesture)
00993 
00994 def CircleGesture_class_type():
00995     return LeapPython.CircleGesture_class_type()
00996 CircleGesture_class_type = LeapPython.CircleGesture_class_type
00997 
00998 class ScreenTapGesture(Gesture):
00999     __swig_setmethods__ = {}
01000     for _s in [Gesture]:
01001         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01002     __setattr__ = lambda self, name, value: _swig_setattr(self, ScreenTapGesture, name, value)
01003     __swig_getmethods__ = {}
01004     for _s in [Gesture]:
01005         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01006     __getattr__ = lambda self, name: _swig_getattr(self, ScreenTapGesture, name)
01007     __repr__ = _swig_repr
01008     __swig_getmethods__["class_type"] = lambda x: LeapPython.ScreenTapGesture_class_type
01009     if _newclass:
01010         class_type = staticmethod(LeapPython.ScreenTapGesture_class_type)
01011 
01012     def __init__(self, *args):
01013         this = LeapPython.new_ScreenTapGesture(*args)
01014         try:
01015             self.this.append(this)
01016         except:
01017             self.this = this
01018     __swig_getmethods__["position"] = LeapPython.ScreenTapGesture_position_get
01019     if _newclass:
01020         position = _swig_property(LeapPython.ScreenTapGesture_position_get)
01021     __swig_getmethods__["direction"] = LeapPython.ScreenTapGesture_direction_get
01022     if _newclass:
01023         direction = _swig_property(LeapPython.ScreenTapGesture_direction_get)
01024     __swig_getmethods__["progress"] = LeapPython.ScreenTapGesture_progress_get
01025     if _newclass:
01026         progress = _swig_property(LeapPython.ScreenTapGesture_progress_get)
01027     __swig_getmethods__["pointable"] = LeapPython.ScreenTapGesture_pointable_get
01028     if _newclass:
01029         pointable = _swig_property(LeapPython.ScreenTapGesture_pointable_get)
01030     __swig_destroy__ = LeapPython.delete_ScreenTapGesture
01031     __del__ = lambda self: None
01032 ScreenTapGesture_swigregister = LeapPython.ScreenTapGesture_swigregister
01033 ScreenTapGesture_swigregister(ScreenTapGesture)
01034 
01035 def ScreenTapGesture_class_type():
01036     return LeapPython.ScreenTapGesture_class_type()
01037 ScreenTapGesture_class_type = LeapPython.ScreenTapGesture_class_type
01038 
01039 class KeyTapGesture(Gesture):
01040     __swig_setmethods__ = {}
01041     for _s in [Gesture]:
01042         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01043     __setattr__ = lambda self, name, value: _swig_setattr(self, KeyTapGesture, name, value)
01044     __swig_getmethods__ = {}
01045     for _s in [Gesture]:
01046         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01047     __getattr__ = lambda self, name: _swig_getattr(self, KeyTapGesture, name)
01048     __repr__ = _swig_repr
01049     __swig_getmethods__["class_type"] = lambda x: LeapPython.KeyTapGesture_class_type
01050     if _newclass:
01051         class_type = staticmethod(LeapPython.KeyTapGesture_class_type)
01052 
01053     def __init__(self, *args):
01054         this = LeapPython.new_KeyTapGesture(*args)
01055         try:
01056             self.this.append(this)
01057         except:
01058             self.this = this
01059     __swig_getmethods__["position"] = LeapPython.KeyTapGesture_position_get
01060     if _newclass:
01061         position = _swig_property(LeapPython.KeyTapGesture_position_get)
01062     __swig_getmethods__["direction"] = LeapPython.KeyTapGesture_direction_get
01063     if _newclass:
01064         direction = _swig_property(LeapPython.KeyTapGesture_direction_get)
01065     __swig_getmethods__["progress"] = LeapPython.KeyTapGesture_progress_get
01066     if _newclass:
01067         progress = _swig_property(LeapPython.KeyTapGesture_progress_get)
01068     __swig_getmethods__["pointable"] = LeapPython.KeyTapGesture_pointable_get
01069     if _newclass:
01070         pointable = _swig_property(LeapPython.KeyTapGesture_pointable_get)
01071     __swig_destroy__ = LeapPython.delete_KeyTapGesture
01072     __del__ = lambda self: None
01073 KeyTapGesture_swigregister = LeapPython.KeyTapGesture_swigregister
01074 KeyTapGesture_swigregister(KeyTapGesture)
01075 
01076 def KeyTapGesture_class_type():
01077     return LeapPython.KeyTapGesture_class_type()
01078 KeyTapGesture_class_type = LeapPython.KeyTapGesture_class_type
01079 
01080 class Screen(Interface):
01081     __swig_setmethods__ = {}
01082     for _s in [Interface]:
01083         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01084     __setattr__ = lambda self, name, value: _swig_setattr(self, Screen, name, value)
01085     __swig_getmethods__ = {}
01086     for _s in [Interface]:
01087         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01088     __getattr__ = lambda self, name: _swig_getattr(self, Screen, name)
01089     __repr__ = _swig_repr
01090 
01091     def __init__(self):
01092         this = LeapPython.new_Screen()
01093         try:
01094             self.this.append(this)
01095         except:
01096             self.this = this
01097 
01098     def intersect(self, *args):
01099         return LeapPython.Screen_intersect(self, *args)
01100 
01101     def project(self, position, normalize, clampRatio=1.0):
01102         return LeapPython.Screen_project(self, position, normalize, clampRatio)
01103 
01104     def normal(self):
01105         return LeapPython.Screen_normal(self)
01106 
01107     def distance_to_point(self, point):
01108         return LeapPython.Screen_distance_to_point(self, point)
01109 
01110     def __eq__(self, arg2):
01111         return LeapPython.Screen___eq__(self, arg2)
01112 
01113     def __ne__(self, arg2):
01114         return LeapPython.Screen___ne__(self, arg2)
01115 
01116     def __str__(self):
01117         return LeapPython.Screen___str__(self)
01118     __swig_getmethods__["id"] = LeapPython.Screen_id_get
01119     if _newclass:
01120         id = _swig_property(LeapPython.Screen_id_get)
01121     __swig_getmethods__["horizontal_axis"] = LeapPython.Screen_horizontal_axis_get
01122     if _newclass:
01123         horizontal_axis = _swig_property(LeapPython.Screen_horizontal_axis_get)
01124     __swig_getmethods__["vertical_axis"] = LeapPython.Screen_vertical_axis_get
01125     if _newclass:
01126         vertical_axis = _swig_property(LeapPython.Screen_vertical_axis_get)
01127     __swig_getmethods__["bottom_left_corner"] = LeapPython.Screen_bottom_left_corner_get
01128     if _newclass:
01129         bottom_left_corner = _swig_property(LeapPython.Screen_bottom_left_corner_get)
01130     __swig_getmethods__["width_pixels"] = LeapPython.Screen_width_pixels_get
01131     if _newclass:
01132         width_pixels = _swig_property(LeapPython.Screen_width_pixels_get)
01133     __swig_getmethods__["height_pixels"] = LeapPython.Screen_height_pixels_get
01134     if _newclass:
01135         height_pixels = _swig_property(LeapPython.Screen_height_pixels_get)
01136     __swig_getmethods__["is_valid"] = LeapPython.Screen_is_valid_get
01137     if _newclass:
01138         is_valid = _swig_property(LeapPython.Screen_is_valid_get)
01139     __swig_destroy__ = LeapPython.delete_Screen
01140     __del__ = lambda self: None
01141 Screen_swigregister = LeapPython.Screen_swigregister
01142 Screen_swigregister(Screen)
01143 Screen.invalid = LeapPython.cvar.Screen_invalid
01144 
01145 class Device(Interface):
01146     __swig_setmethods__ = {}
01147     for _s in [Interface]:
01148         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01149     __setattr__ = lambda self, name, value: _swig_setattr(self, Device, name, value)
01150     __swig_getmethods__ = {}
01151     for _s in [Interface]:
01152         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01153     __getattr__ = lambda self, name: _swig_getattr(self, Device, name)
01154     __repr__ = _swig_repr
01155     TYPE_PERIPHERAL = LeapPython.Device_TYPE_PERIPHERAL
01156     TYPE_LAPTOP = LeapPython.Device_TYPE_LAPTOP
01157     TYPE_KEYBOARD = LeapPython.Device_TYPE_KEYBOARD
01158 
01159     def __init__(self):
01160         this = LeapPython.new_Device()
01161         try:
01162             self.this.append(this)
01163         except:
01164             self.this = this
01165 
01166     def distance_to_boundary(self, position):
01167         return LeapPython.Device_distance_to_boundary(self, position)
01168 
01169     def __eq__(self, arg2):
01170         return LeapPython.Device___eq__(self, arg2)
01171 
01172     def __ne__(self, arg2):
01173         return LeapPython.Device___ne__(self, arg2)
01174 
01175     def __str__(self):
01176         return LeapPython.Device___str__(self)
01177     __swig_getmethods__["horizontal_view_angle"] = LeapPython.Device_horizontal_view_angle_get
01178     if _newclass:
01179         horizontal_view_angle = _swig_property(LeapPython.Device_horizontal_view_angle_get)
01180     __swig_getmethods__["vertical_view_angle"] = LeapPython.Device_vertical_view_angle_get
01181     if _newclass:
01182         vertical_view_angle = _swig_property(LeapPython.Device_vertical_view_angle_get)
01183     __swig_getmethods__["range"] = LeapPython.Device_range_get
01184     if _newclass:
01185         range = _swig_property(LeapPython.Device_range_get)
01186     __swig_getmethods__["baseline"] = LeapPython.Device_baseline_get
01187     if _newclass:
01188         baseline = _swig_property(LeapPython.Device_baseline_get)
01189     __swig_getmethods__["is_valid"] = LeapPython.Device_is_valid_get
01190     if _newclass:
01191         is_valid = _swig_property(LeapPython.Device_is_valid_get)
01192     __swig_getmethods__["is_embedded"] = LeapPython.Device_is_embedded_get
01193     if _newclass:
01194         is_embedded = _swig_property(LeapPython.Device_is_embedded_get)
01195     __swig_getmethods__["is_streaming"] = LeapPython.Device_is_streaming_get
01196     if _newclass:
01197         is_streaming = _swig_property(LeapPython.Device_is_streaming_get)
01198     __swig_getmethods__["is_flipped"] = LeapPython.Device_is_flipped_get
01199     if _newclass:
01200         is_flipped = _swig_property(LeapPython.Device_is_flipped_get)
01201     __swig_getmethods__["type"] = LeapPython.Device_type_get
01202     if _newclass:
01203         type = _swig_property(LeapPython.Device_type_get)
01204     __swig_getmethods__["serial_number"] = LeapPython.Device_serial_number_get
01205     if _newclass:
01206         serial_number = _swig_property(LeapPython.Device_serial_number_get)
01207     __swig_getmethods__["position"] = LeapPython.Device_position_get
01208     if _newclass:
01209         position = _swig_property(LeapPython.Device_position_get)
01210     __swig_getmethods__["orientation"] = LeapPython.Device_orientation_get
01211     if _newclass:
01212         orientation = _swig_property(LeapPython.Device_orientation_get)
01213     __swig_destroy__ = LeapPython.delete_Device
01214     __del__ = lambda self: None
01215 Device_swigregister = LeapPython.Device_swigregister
01216 Device_swigregister(Device)
01217 Device.invalid = LeapPython.cvar.Device_invalid
01218 
01219 class Image(Interface):
01220     __swig_setmethods__ = {}
01221     for _s in [Interface]:
01222         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01223     __setattr__ = lambda self, name, value: _swig_setattr(self, Image, name, value)
01224     __swig_getmethods__ = {}
01225     for _s in [Interface]:
01226         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01227     __getattr__ = lambda self, name: _swig_getattr(self, Image, name)
01228     __repr__ = _swig_repr
01229 
01230     def __init__(self):
01231         this = LeapPython.new_Image()
01232         try:
01233             self.this.append(this)
01234         except:
01235             self.this = this
01236 
01237     def data(self, dst):
01238         return LeapPython.Image_data(self, dst)
01239 
01240     def distortion(self, dst):
01241         return LeapPython.Image_distortion(self, dst)
01242     INFRARED = LeapPython.Image_INFRARED
01243 
01244     def rectify(self, uv):
01245         return LeapPython.Image_rectify(self, uv)
01246 
01247     def warp(self, xy):
01248         return LeapPython.Image_warp(self, xy)
01249 
01250     def __eq__(self, arg2):
01251         return LeapPython.Image___eq__(self, arg2)
01252 
01253     def __ne__(self, arg2):
01254         return LeapPython.Image___ne__(self, arg2)
01255 
01256     def __str__(self):
01257         return LeapPython.Image___str__(self)
01258     __swig_getmethods__["sequence_id"] = LeapPython.Image_sequence_id_get
01259     if _newclass:
01260         sequence_id = _swig_property(LeapPython.Image_sequence_id_get)
01261     __swig_getmethods__["id"] = LeapPython.Image_id_get
01262     if _newclass:
01263         id = _swig_property(LeapPython.Image_id_get)
01264     __swig_getmethods__["width"] = LeapPython.Image_width_get
01265     if _newclass:
01266         width = _swig_property(LeapPython.Image_width_get)
01267     __swig_getmethods__["height"] = LeapPython.Image_height_get
01268     if _newclass:
01269         height = _swig_property(LeapPython.Image_height_get)
01270     __swig_getmethods__["bytes_per_pixel"] = LeapPython.Image_bytes_per_pixel_get
01271     if _newclass:
01272         bytes_per_pixel = _swig_property(LeapPython.Image_bytes_per_pixel_get)
01273     __swig_getmethods__["format"] = LeapPython.Image_format_get
01274     if _newclass:
01275         format = _swig_property(LeapPython.Image_format_get)
01276     __swig_getmethods__["distortion_width"] = LeapPython.Image_distortion_width_get
01277     if _newclass:
01278         distortion_width = _swig_property(LeapPython.Image_distortion_width_get)
01279     __swig_getmethods__["distortion_height"] = LeapPython.Image_distortion_height_get
01280     if _newclass:
01281         distortion_height = _swig_property(LeapPython.Image_distortion_height_get)
01282     __swig_getmethods__["ray_offset_x"] = LeapPython.Image_ray_offset_x_get
01283     if _newclass:
01284         ray_offset_x = _swig_property(LeapPython.Image_ray_offset_x_get)
01285     __swig_getmethods__["ray_offset_y"] = LeapPython.Image_ray_offset_y_get
01286     if _newclass:
01287         ray_offset_y = _swig_property(LeapPython.Image_ray_offset_y_get)
01288     __swig_getmethods__["ray_scale_x"] = LeapPython.Image_ray_scale_x_get
01289     if _newclass:
01290         ray_scale_x = _swig_property(LeapPython.Image_ray_scale_x_get)
01291     __swig_getmethods__["ray_scale_y"] = LeapPython.Image_ray_scale_y_get
01292     if _newclass:
01293         ray_scale_y = _swig_property(LeapPython.Image_ray_scale_y_get)
01294     __swig_getmethods__["timestamp"] = LeapPython.Image_timestamp_get
01295     if _newclass:
01296         timestamp = _swig_property(LeapPython.Image_timestamp_get)
01297     __swig_getmethods__["is_valid"] = LeapPython.Image_is_valid_get
01298     if _newclass:
01299         is_valid = _swig_property(LeapPython.Image_is_valid_get)
01300     def data(self):
01301         ptr = byte_array(self.width * self.height * self.bytes_per_pixel)
01302         LeapPython.Image_data(self, ptr)
01303         return ptr
01304     def distortion(self):
01305         ptr = float_array(self.distortion_width * self.distortion_height)
01306         LeapPython.Image_distortion(self, ptr)
01307         return ptr
01308     __swig_getmethods__["data"] = data
01309     if _newclass:data = _swig_property(data)
01310     __swig_getmethods__["distortion"] = distortion
01311     if _newclass:distortion = _swig_property(distortion)
01312 
01313     __swig_getmethods__["data_pointer"] = LeapPython.Image_data_pointer_get
01314     if _newclass:
01315         data_pointer = _swig_property(LeapPython.Image_data_pointer_get)
01316     __swig_getmethods__["distortion_pointer"] = LeapPython.Image_distortion_pointer_get
01317     if _newclass:
01318         distortion_pointer = _swig_property(LeapPython.Image_distortion_pointer_get)
01319     __swig_destroy__ = LeapPython.delete_Image
01320     __del__ = lambda self: None
01321 Image_swigregister = LeapPython.Image_swigregister
01322 Image_swigregister(Image)
01323 Image.invalid = LeapPython.cvar.Image_invalid
01324 
01325 class Mask(Interface):
01326     __swig_setmethods__ = {}
01327     for _s in [Interface]:
01328         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01329     __setattr__ = lambda self, name, value: _swig_setattr(self, Mask, name, value)
01330     __swig_getmethods__ = {}
01331     for _s in [Interface]:
01332         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01333     __getattr__ = lambda self, name: _swig_getattr(self, Mask, name)
01334     __repr__ = _swig_repr
01335 
01336     def __init__(self):
01337         this = LeapPython.new_Mask()
01338         try:
01339             self.this.append(this)
01340         except:
01341             self.this = this
01342 
01343     def data(self, dst):
01344         return LeapPython.Mask_data(self, dst)
01345     __swig_getmethods__["invalid"] = lambda x: LeapPython.Mask_invalid
01346     if _newclass:
01347         invalid = staticmethod(LeapPython.Mask_invalid)
01348 
01349     def __eq__(self, arg2):
01350         return LeapPython.Mask___eq__(self, arg2)
01351 
01352     def __ne__(self, arg2):
01353         return LeapPython.Mask___ne__(self, arg2)
01354 
01355     def __str__(self):
01356         return LeapPython.Mask___str__(self)
01357     __swig_getmethods__["sequence_id"] = LeapPython.Mask_sequence_id_get
01358     if _newclass:
01359         sequence_id = _swig_property(LeapPython.Mask_sequence_id_get)
01360     __swig_getmethods__["id"] = LeapPython.Mask_id_get
01361     if _newclass:
01362         id = _swig_property(LeapPython.Mask_id_get)
01363     __swig_getmethods__["width"] = LeapPython.Mask_width_get
01364     if _newclass:
01365         width = _swig_property(LeapPython.Mask_width_get)
01366     __swig_getmethods__["height"] = LeapPython.Mask_height_get
01367     if _newclass:
01368         height = _swig_property(LeapPython.Mask_height_get)
01369     __swig_getmethods__["offset_x"] = LeapPython.Mask_offset_x_get
01370     if _newclass:
01371         offset_x = _swig_property(LeapPython.Mask_offset_x_get)
01372     __swig_getmethods__["offset_y"] = LeapPython.Mask_offset_y_get
01373     if _newclass:
01374         offset_y = _swig_property(LeapPython.Mask_offset_y_get)
01375     __swig_getmethods__["is_valid"] = LeapPython.Mask_is_valid_get
01376     if _newclass:
01377         is_valid = _swig_property(LeapPython.Mask_is_valid_get)
01378     def data(self):
01379         ptr = byte_array(self.width * self.height)
01380         LeapPython.Mask_data(self, ptr)
01381         return ptr
01382     __swig_getmethods__["data"] = data
01383     if _newclass:data = _swig_property(data)
01384 
01385     __swig_getmethods__["data_pointer"] = LeapPython.Mask_data_pointer_get
01386     if _newclass:
01387         data_pointer = _swig_property(LeapPython.Mask_data_pointer_get)
01388     __swig_destroy__ = LeapPython.delete_Mask
01389     __del__ = lambda self: None
01390 Mask_swigregister = LeapPython.Mask_swigregister
01391 Mask_swigregister(Mask)
01392 
01393 def Mask_invalid():
01394     return LeapPython.Mask_invalid()
01395 Mask_invalid = LeapPython.Mask_invalid
01396 
01397 class PointableList(Interface):
01398     __swig_setmethods__ = {}
01399     for _s in [Interface]:
01400         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01401     __setattr__ = lambda self, name, value: _swig_setattr(self, PointableList, name, value)
01402     __swig_getmethods__ = {}
01403     for _s in [Interface]:
01404         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01405     __getattr__ = lambda self, name: _swig_getattr(self, PointableList, name)
01406     __repr__ = _swig_repr
01407 
01408     def __init__(self):
01409         this = LeapPython.new_PointableList()
01410         try:
01411             self.this.append(this)
01412         except:
01413             self.this = this
01414 
01415     def __len__(self):
01416         return LeapPython.PointableList___len__(self)
01417 
01418     def __getitem__(self, index):
01419         return LeapPython.PointableList___getitem__(self, index)
01420 
01421     def append(self, *args):
01422         return LeapPython.PointableList_append(self, *args)
01423 
01424     def extended(self):
01425         return LeapPython.PointableList_extended(self)
01426     __swig_getmethods__["is_empty"] = LeapPython.PointableList_is_empty_get
01427     if _newclass:
01428         is_empty = _swig_property(LeapPython.PointableList_is_empty_get)
01429     __swig_getmethods__["leftmost"] = LeapPython.PointableList_leftmost_get
01430     if _newclass:
01431         leftmost = _swig_property(LeapPython.PointableList_leftmost_get)
01432     __swig_getmethods__["rightmost"] = LeapPython.PointableList_rightmost_get
01433     if _newclass:
01434         rightmost = _swig_property(LeapPython.PointableList_rightmost_get)
01435     __swig_getmethods__["frontmost"] = LeapPython.PointableList_frontmost_get
01436     if _newclass:
01437         frontmost = _swig_property(LeapPython.PointableList_frontmost_get)
01438     def __iter__(self):
01439       _pos = 0
01440       while _pos < len(self):
01441         yield self[_pos]
01442         _pos += 1
01443 
01444     __swig_destroy__ = LeapPython.delete_PointableList
01445     __del__ = lambda self: None
01446 PointableList_swigregister = LeapPython.PointableList_swigregister
01447 PointableList_swigregister(PointableList)
01448 
01449 class FingerList(Interface):
01450     __swig_setmethods__ = {}
01451     for _s in [Interface]:
01452         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01453     __setattr__ = lambda self, name, value: _swig_setattr(self, FingerList, name, value)
01454     __swig_getmethods__ = {}
01455     for _s in [Interface]:
01456         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01457     __getattr__ = lambda self, name: _swig_getattr(self, FingerList, name)
01458     __repr__ = _swig_repr
01459 
01460     def __init__(self):
01461         this = LeapPython.new_FingerList()
01462         try:
01463             self.this.append(this)
01464         except:
01465             self.this = this
01466 
01467     def __len__(self):
01468         return LeapPython.FingerList___len__(self)
01469 
01470     def __getitem__(self, index):
01471         return LeapPython.FingerList___getitem__(self, index)
01472 
01473     def append(self, other):
01474         return LeapPython.FingerList_append(self, other)
01475 
01476     def extended(self):
01477         return LeapPython.FingerList_extended(self)
01478 
01479     def finger_type(self, type):
01480         return LeapPython.FingerList_finger_type(self, type)
01481     __swig_getmethods__["is_empty"] = LeapPython.FingerList_is_empty_get
01482     if _newclass:
01483         is_empty = _swig_property(LeapPython.FingerList_is_empty_get)
01484     __swig_getmethods__["leftmost"] = LeapPython.FingerList_leftmost_get
01485     if _newclass:
01486         leftmost = _swig_property(LeapPython.FingerList_leftmost_get)
01487     __swig_getmethods__["rightmost"] = LeapPython.FingerList_rightmost_get
01488     if _newclass:
01489         rightmost = _swig_property(LeapPython.FingerList_rightmost_get)
01490     __swig_getmethods__["frontmost"] = LeapPython.FingerList_frontmost_get
01491     if _newclass:
01492         frontmost = _swig_property(LeapPython.FingerList_frontmost_get)
01493     def __iter__(self):
01494       _pos = 0
01495       while _pos < len(self):
01496         yield self[_pos]
01497         _pos += 1
01498 
01499     __swig_destroy__ = LeapPython.delete_FingerList
01500     __del__ = lambda self: None
01501 FingerList_swigregister = LeapPython.FingerList_swigregister
01502 FingerList_swigregister(FingerList)
01503 
01504 class ToolList(Interface):
01505     __swig_setmethods__ = {}
01506     for _s in [Interface]:
01507         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01508     __setattr__ = lambda self, name, value: _swig_setattr(self, ToolList, name, value)
01509     __swig_getmethods__ = {}
01510     for _s in [Interface]:
01511         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01512     __getattr__ = lambda self, name: _swig_getattr(self, ToolList, name)
01513     __repr__ = _swig_repr
01514 
01515     def __init__(self):
01516         this = LeapPython.new_ToolList()
01517         try:
01518             self.this.append(this)
01519         except:
01520             self.this = this
01521 
01522     def __len__(self):
01523         return LeapPython.ToolList___len__(self)
01524 
01525     def __getitem__(self, index):
01526         return LeapPython.ToolList___getitem__(self, index)
01527 
01528     def append(self, other):
01529         return LeapPython.ToolList_append(self, other)
01530     __swig_getmethods__["is_empty"] = LeapPython.ToolList_is_empty_get
01531     if _newclass:
01532         is_empty = _swig_property(LeapPython.ToolList_is_empty_get)
01533     __swig_getmethods__["leftmost"] = LeapPython.ToolList_leftmost_get
01534     if _newclass:
01535         leftmost = _swig_property(LeapPython.ToolList_leftmost_get)
01536     __swig_getmethods__["rightmost"] = LeapPython.ToolList_rightmost_get
01537     if _newclass:
01538         rightmost = _swig_property(LeapPython.ToolList_rightmost_get)
01539     __swig_getmethods__["frontmost"] = LeapPython.ToolList_frontmost_get
01540     if _newclass:
01541         frontmost = _swig_property(LeapPython.ToolList_frontmost_get)
01542     def __iter__(self):
01543       _pos = 0
01544       while _pos < len(self):
01545         yield self[_pos]
01546         _pos += 1
01547 
01548     __swig_destroy__ = LeapPython.delete_ToolList
01549     __del__ = lambda self: None
01550 ToolList_swigregister = LeapPython.ToolList_swigregister
01551 ToolList_swigregister(ToolList)
01552 
01553 class HandList(Interface):
01554     __swig_setmethods__ = {}
01555     for _s in [Interface]:
01556         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01557     __setattr__ = lambda self, name, value: _swig_setattr(self, HandList, name, value)
01558     __swig_getmethods__ = {}
01559     for _s in [Interface]:
01560         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01561     __getattr__ = lambda self, name: _swig_getattr(self, HandList, name)
01562     __repr__ = _swig_repr
01563 
01564     def __init__(self):
01565         this = LeapPython.new_HandList()
01566         try:
01567             self.this.append(this)
01568         except:
01569             self.this = this
01570 
01571     def __len__(self):
01572         return LeapPython.HandList___len__(self)
01573 
01574     def __getitem__(self, index):
01575         return LeapPython.HandList___getitem__(self, index)
01576 
01577     def append(self, other):
01578         return LeapPython.HandList_append(self, other)
01579     __swig_getmethods__["is_empty"] = LeapPython.HandList_is_empty_get
01580     if _newclass:
01581         is_empty = _swig_property(LeapPython.HandList_is_empty_get)
01582     __swig_getmethods__["leftmost"] = LeapPython.HandList_leftmost_get
01583     if _newclass:
01584         leftmost = _swig_property(LeapPython.HandList_leftmost_get)
01585     __swig_getmethods__["rightmost"] = LeapPython.HandList_rightmost_get
01586     if _newclass:
01587         rightmost = _swig_property(LeapPython.HandList_rightmost_get)
01588     __swig_getmethods__["frontmost"] = LeapPython.HandList_frontmost_get
01589     if _newclass:
01590         frontmost = _swig_property(LeapPython.HandList_frontmost_get)
01591     def __iter__(self):
01592       _pos = 0
01593       while _pos < len(self):
01594         yield self[_pos]
01595         _pos += 1
01596 
01597     __swig_destroy__ = LeapPython.delete_HandList
01598     __del__ = lambda self: None
01599 HandList_swigregister = LeapPython.HandList_swigregister
01600 HandList_swigregister(HandList)
01601 
01602 class GestureList(Interface):
01603     __swig_setmethods__ = {}
01604     for _s in [Interface]:
01605         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01606     __setattr__ = lambda self, name, value: _swig_setattr(self, GestureList, name, value)
01607     __swig_getmethods__ = {}
01608     for _s in [Interface]:
01609         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01610     __getattr__ = lambda self, name: _swig_getattr(self, GestureList, name)
01611     __repr__ = _swig_repr
01612 
01613     def __init__(self):
01614         this = LeapPython.new_GestureList()
01615         try:
01616             self.this.append(this)
01617         except:
01618             self.this = this
01619 
01620     def __len__(self):
01621         return LeapPython.GestureList___len__(self)
01622 
01623     def __getitem__(self, index):
01624         return LeapPython.GestureList___getitem__(self, index)
01625 
01626     def append(self, other):
01627         return LeapPython.GestureList_append(self, other)
01628     __swig_getmethods__["is_empty"] = LeapPython.GestureList_is_empty_get
01629     if _newclass:
01630         is_empty = _swig_property(LeapPython.GestureList_is_empty_get)
01631     def __iter__(self):
01632       _pos = 0
01633       while _pos < len(self):
01634         yield self[_pos]
01635         _pos += 1
01636 
01637     __swig_destroy__ = LeapPython.delete_GestureList
01638     __del__ = lambda self: None
01639 GestureList_swigregister = LeapPython.GestureList_swigregister
01640 GestureList_swigregister(GestureList)
01641 
01642 class ScreenList(Interface):
01643     __swig_setmethods__ = {}
01644     for _s in [Interface]:
01645         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01646     __setattr__ = lambda self, name, value: _swig_setattr(self, ScreenList, name, value)
01647     __swig_getmethods__ = {}
01648     for _s in [Interface]:
01649         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01650     __getattr__ = lambda self, name: _swig_getattr(self, ScreenList, name)
01651     __repr__ = _swig_repr
01652 
01653     def __init__(self):
01654         this = LeapPython.new_ScreenList()
01655         try:
01656             self.this.append(this)
01657         except:
01658             self.this = this
01659 
01660     def __len__(self):
01661         return LeapPython.ScreenList___len__(self)
01662 
01663     def __getitem__(self, index):
01664         return LeapPython.ScreenList___getitem__(self, index)
01665 
01666     def closest_screen_hit(self, *args):
01667         return LeapPython.ScreenList_closest_screen_hit(self, *args)
01668 
01669     def closest_screen(self, position):
01670         return LeapPython.ScreenList_closest_screen(self, position)
01671     __swig_getmethods__["is_empty"] = LeapPython.ScreenList_is_empty_get
01672     if _newclass:
01673         is_empty = _swig_property(LeapPython.ScreenList_is_empty_get)
01674     def __iter__(self):
01675       _pos = 0
01676       while _pos < len(self):
01677         yield self[_pos]
01678         _pos += 1
01679 
01680     __swig_destroy__ = LeapPython.delete_ScreenList
01681     __del__ = lambda self: None
01682 ScreenList_swigregister = LeapPython.ScreenList_swigregister
01683 ScreenList_swigregister(ScreenList)
01684 
01685 class DeviceList(Interface):
01686     __swig_setmethods__ = {}
01687     for _s in [Interface]:
01688         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01689     __setattr__ = lambda self, name, value: _swig_setattr(self, DeviceList, name, value)
01690     __swig_getmethods__ = {}
01691     for _s in [Interface]:
01692         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01693     __getattr__ = lambda self, name: _swig_getattr(self, DeviceList, name)
01694     __repr__ = _swig_repr
01695 
01696     def __init__(self):
01697         this = LeapPython.new_DeviceList()
01698         try:
01699             self.this.append(this)
01700         except:
01701             self.this = this
01702 
01703     def __len__(self):
01704         return LeapPython.DeviceList___len__(self)
01705 
01706     def __getitem__(self, index):
01707         return LeapPython.DeviceList___getitem__(self, index)
01708 
01709     def append(self, other):
01710         return LeapPython.DeviceList_append(self, other)
01711     __swig_getmethods__["is_empty"] = LeapPython.DeviceList_is_empty_get
01712     if _newclass:
01713         is_empty = _swig_property(LeapPython.DeviceList_is_empty_get)
01714     def __iter__(self):
01715       _pos = 0
01716       while _pos < len(self):
01717         yield self[_pos]
01718         _pos += 1
01719 
01720     __swig_destroy__ = LeapPython.delete_DeviceList
01721     __del__ = lambda self: None
01722 DeviceList_swigregister = LeapPython.DeviceList_swigregister
01723 DeviceList_swigregister(DeviceList)
01724 
01725 class ImageList(Interface):
01726     __swig_setmethods__ = {}
01727     for _s in [Interface]:
01728         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01729     __setattr__ = lambda self, name, value: _swig_setattr(self, ImageList, name, value)
01730     __swig_getmethods__ = {}
01731     for _s in [Interface]:
01732         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01733     __getattr__ = lambda self, name: _swig_getattr(self, ImageList, name)
01734     __repr__ = _swig_repr
01735 
01736     def __init__(self):
01737         this = LeapPython.new_ImageList()
01738         try:
01739             self.this.append(this)
01740         except:
01741             self.this = this
01742 
01743     def __len__(self):
01744         return LeapPython.ImageList___len__(self)
01745 
01746     def __getitem__(self, index):
01747         return LeapPython.ImageList___getitem__(self, index)
01748 
01749     def append(self, other):
01750         return LeapPython.ImageList_append(self, other)
01751     __swig_getmethods__["is_empty"] = LeapPython.ImageList_is_empty_get
01752     if _newclass:
01753         is_empty = _swig_property(LeapPython.ImageList_is_empty_get)
01754     def __iter__(self):
01755       _pos = 0
01756       while _pos < len(self):
01757         yield self[_pos]
01758         _pos += 1
01759 
01760     __swig_destroy__ = LeapPython.delete_ImageList
01761     __del__ = lambda self: None
01762 ImageList_swigregister = LeapPython.ImageList_swigregister
01763 ImageList_swigregister(ImageList)
01764 
01765 class TrackedQuad(Interface):
01766     __swig_setmethods__ = {}
01767     for _s in [Interface]:
01768         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01769     __setattr__ = lambda self, name, value: _swig_setattr(self, TrackedQuad, name, value)
01770     __swig_getmethods__ = {}
01771     for _s in [Interface]:
01772         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01773     __getattr__ = lambda self, name: _swig_getattr(self, TrackedQuad, name)
01774     __repr__ = _swig_repr
01775 
01776     def __init__(self):
01777         this = LeapPython.new_TrackedQuad()
01778         try:
01779             self.this.append(this)
01780         except:
01781             self.this = this
01782 
01783     def __eq__(self, arg2):
01784         return LeapPython.TrackedQuad___eq__(self, arg2)
01785 
01786     def __ne__(self, arg2):
01787         return LeapPython.TrackedQuad___ne__(self, arg2)
01788 
01789     def __str__(self):
01790         return LeapPython.TrackedQuad___str__(self)
01791     __swig_getmethods__["width"] = LeapPython.TrackedQuad_width_get
01792     if _newclass:
01793         width = _swig_property(LeapPython.TrackedQuad_width_get)
01794     __swig_getmethods__["height"] = LeapPython.TrackedQuad_height_get
01795     if _newclass:
01796         height = _swig_property(LeapPython.TrackedQuad_height_get)
01797     __swig_getmethods__["resolution_x"] = LeapPython.TrackedQuad_resolution_x_get
01798     if _newclass:
01799         resolution_x = _swig_property(LeapPython.TrackedQuad_resolution_x_get)
01800     __swig_getmethods__["resolution_y"] = LeapPython.TrackedQuad_resolution_y_get
01801     if _newclass:
01802         resolution_y = _swig_property(LeapPython.TrackedQuad_resolution_y_get)
01803     __swig_getmethods__["visible"] = LeapPython.TrackedQuad_visible_get
01804     if _newclass:
01805         visible = _swig_property(LeapPython.TrackedQuad_visible_get)
01806     __swig_getmethods__["orientation"] = LeapPython.TrackedQuad_orientation_get
01807     if _newclass:
01808         orientation = _swig_property(LeapPython.TrackedQuad_orientation_get)
01809     __swig_getmethods__["position"] = LeapPython.TrackedQuad_position_get
01810     if _newclass:
01811         position = _swig_property(LeapPython.TrackedQuad_position_get)
01812     __swig_getmethods__["masks"] = LeapPython.TrackedQuad_masks_get
01813     if _newclass:
01814         masks = _swig_property(LeapPython.TrackedQuad_masks_get)
01815     __swig_getmethods__["images"] = LeapPython.TrackedQuad_images_get
01816     if _newclass:
01817         images = _swig_property(LeapPython.TrackedQuad_images_get)
01818     __swig_getmethods__["is_valid"] = LeapPython.TrackedQuad_is_valid_get
01819     if _newclass:
01820         is_valid = _swig_property(LeapPython.TrackedQuad_is_valid_get)
01821     __swig_destroy__ = LeapPython.delete_TrackedQuad
01822     __del__ = lambda self: None
01823 TrackedQuad_swigregister = LeapPython.TrackedQuad_swigregister
01824 TrackedQuad_swigregister(TrackedQuad)
01825 TrackedQuad.invalid = LeapPython.cvar.TrackedQuad_invalid
01826 
01827 class MaskList(Interface):
01828     __swig_setmethods__ = {}
01829     for _s in [Interface]:
01830         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01831     __setattr__ = lambda self, name, value: _swig_setattr(self, MaskList, name, value)
01832     __swig_getmethods__ = {}
01833     for _s in [Interface]:
01834         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01835     __getattr__ = lambda self, name: _swig_getattr(self, MaskList, name)
01836     __repr__ = _swig_repr
01837 
01838     def __init__(self):
01839         this = LeapPython.new_MaskList()
01840         try:
01841             self.this.append(this)
01842         except:
01843             self.this = this
01844 
01845     def __len__(self):
01846         return LeapPython.MaskList___len__(self)
01847 
01848     def __getitem__(self, index):
01849         return LeapPython.MaskList___getitem__(self, index)
01850 
01851     def append(self, other):
01852         return LeapPython.MaskList_append(self, other)
01853     __swig_getmethods__["is_empty"] = LeapPython.MaskList_is_empty_get
01854     if _newclass:
01855         is_empty = _swig_property(LeapPython.MaskList_is_empty_get)
01856     def __iter__(self):
01857       _pos = 0
01858       while _pos < len(self):
01859         yield self[_pos]
01860         _pos += 1
01861 
01862     __swig_destroy__ = LeapPython.delete_MaskList
01863     __del__ = lambda self: None
01864 MaskList_swigregister = LeapPython.MaskList_swigregister
01865 MaskList_swigregister(MaskList)
01866 
01867 class InteractionBox(Interface):
01868     __swig_setmethods__ = {}
01869     for _s in [Interface]:
01870         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01871     __setattr__ = lambda self, name, value: _swig_setattr(self, InteractionBox, name, value)
01872     __swig_getmethods__ = {}
01873     for _s in [Interface]:
01874         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01875     __getattr__ = lambda self, name: _swig_getattr(self, InteractionBox, name)
01876     __repr__ = _swig_repr
01877 
01878     def __init__(self):
01879         this = LeapPython.new_InteractionBox()
01880         try:
01881             self.this.append(this)
01882         except:
01883             self.this = this
01884 
01885     def normalize_point(self, position, clamp=True):
01886         return LeapPython.InteractionBox_normalize_point(self, position, clamp)
01887 
01888     def denormalize_point(self, normalizedPosition):
01889         return LeapPython.InteractionBox_denormalize_point(self, normalizedPosition)
01890 
01891     def __eq__(self, arg2):
01892         return LeapPython.InteractionBox___eq__(self, arg2)
01893 
01894     def __ne__(self, arg2):
01895         return LeapPython.InteractionBox___ne__(self, arg2)
01896 
01897     def __str__(self):
01898         return LeapPython.InteractionBox___str__(self)
01899     __swig_getmethods__["center"] = LeapPython.InteractionBox_center_get
01900     if _newclass:
01901         center = _swig_property(LeapPython.InteractionBox_center_get)
01902     __swig_getmethods__["width"] = LeapPython.InteractionBox_width_get
01903     if _newclass:
01904         width = _swig_property(LeapPython.InteractionBox_width_get)
01905     __swig_getmethods__["height"] = LeapPython.InteractionBox_height_get
01906     if _newclass:
01907         height = _swig_property(LeapPython.InteractionBox_height_get)
01908     __swig_getmethods__["depth"] = LeapPython.InteractionBox_depth_get
01909     if _newclass:
01910         depth = _swig_property(LeapPython.InteractionBox_depth_get)
01911     __swig_getmethods__["is_valid"] = LeapPython.InteractionBox_is_valid_get
01912     if _newclass:
01913         is_valid = _swig_property(LeapPython.InteractionBox_is_valid_get)
01914     __swig_destroy__ = LeapPython.delete_InteractionBox
01915     __del__ = lambda self: None
01916 InteractionBox_swigregister = LeapPython.InteractionBox_swigregister
01917 InteractionBox_swigregister(InteractionBox)
01918 InteractionBox.invalid = LeapPython.cvar.InteractionBox_invalid
01919 
01920 class Frame(Interface):
01921     __swig_setmethods__ = {}
01922     for _s in [Interface]:
01923         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
01924     __setattr__ = lambda self, name, value: _swig_setattr(self, Frame, name, value)
01925     __swig_getmethods__ = {}
01926     for _s in [Interface]:
01927         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
01928     __getattr__ = lambda self, name: _swig_getattr(self, Frame, name)
01929     __repr__ = _swig_repr
01930 
01931     def __init__(self):
01932         this = LeapPython.new_Frame()
01933         try:
01934             self.this.append(this)
01935         except:
01936             self.this = this
01937 
01938     def hand(self, id):
01939         return LeapPython.Frame_hand(self, id)
01940 
01941     def pointable(self, id):
01942         return LeapPython.Frame_pointable(self, id)
01943 
01944     def finger(self, id):
01945         return LeapPython.Frame_finger(self, id)
01946 
01947     def tool(self, id):
01948         return LeapPython.Frame_tool(self, id)
01949 
01950     def gesture(self, id):
01951         return LeapPython.Frame_gesture(self, id)
01952 
01953     def gestures(self, *args):
01954         return LeapPython.Frame_gestures(self, *args)
01955 
01956     def translation(self, sinceFrame):
01957         return LeapPython.Frame_translation(self, sinceFrame)
01958 
01959     def translation_probability(self, sinceFrame):
01960         return LeapPython.Frame_translation_probability(self, sinceFrame)
01961 
01962     def rotation_axis(self, sinceFrame):
01963         return LeapPython.Frame_rotation_axis(self, sinceFrame)
01964 
01965     def rotation_angle(self, *args):
01966         return LeapPython.Frame_rotation_angle(self, *args)
01967 
01968     def rotation_matrix(self, sinceFrame):
01969         return LeapPython.Frame_rotation_matrix(self, sinceFrame)
01970 
01971     def rotation_probability(self, sinceFrame):
01972         return LeapPython.Frame_rotation_probability(self, sinceFrame)
01973 
01974     def scale_factor(self, sinceFrame):
01975         return LeapPython.Frame_scale_factor(self, sinceFrame)
01976 
01977     def scale_probability(self, sinceFrame):
01978         return LeapPython.Frame_scale_probability(self, sinceFrame)
01979 
01980     def __eq__(self, arg2):
01981         return LeapPython.Frame___eq__(self, arg2)
01982 
01983     def __ne__(self, arg2):
01984         return LeapPython.Frame___ne__(self, arg2)
01985 
01986     def serialize(self, ptr):
01987         return LeapPython.Frame_serialize(self, ptr)
01988 
01989     def deserialize(self, ptr, length):
01990         return LeapPython.Frame_deserialize(self, ptr, length)
01991 
01992     def __str__(self):
01993         return LeapPython.Frame___str__(self)
01994     __swig_getmethods__["id"] = LeapPython.Frame_id_get
01995     if _newclass:
01996         id = _swig_property(LeapPython.Frame_id_get)
01997     __swig_getmethods__["timestamp"] = LeapPython.Frame_timestamp_get
01998     if _newclass:
01999         timestamp = _swig_property(LeapPython.Frame_timestamp_get)
02000     __swig_getmethods__["current_frames_per_second"] = LeapPython.Frame_current_frames_per_second_get
02001     if _newclass:
02002         current_frames_per_second = _swig_property(LeapPython.Frame_current_frames_per_second_get)
02003     __swig_getmethods__["pointables"] = LeapPython.Frame_pointables_get
02004     if _newclass:
02005         pointables = _swig_property(LeapPython.Frame_pointables_get)
02006     __swig_getmethods__["fingers"] = LeapPython.Frame_fingers_get
02007     if _newclass:
02008         fingers = _swig_property(LeapPython.Frame_fingers_get)
02009     __swig_getmethods__["tools"] = LeapPython.Frame_tools_get
02010     if _newclass:
02011         tools = _swig_property(LeapPython.Frame_tools_get)
02012     __swig_getmethods__["hands"] = LeapPython.Frame_hands_get
02013     if _newclass:
02014         hands = _swig_property(LeapPython.Frame_hands_get)
02015     __swig_getmethods__["images"] = LeapPython.Frame_images_get
02016     if _newclass:
02017         images = _swig_property(LeapPython.Frame_images_get)
02018     __swig_getmethods__["is_valid"] = LeapPython.Frame_is_valid_get
02019     if _newclass:
02020         is_valid = _swig_property(LeapPython.Frame_is_valid_get)
02021     __swig_getmethods__["interaction_box"] = LeapPython.Frame_interaction_box_get
02022     if _newclass:
02023         interaction_box = _swig_property(LeapPython.Frame_interaction_box_get)
02024     __swig_getmethods__["serialize_length"] = LeapPython.Frame_serialize_length_get
02025     if _newclass:
02026         serialize_length = _swig_property(LeapPython.Frame_serialize_length_get)
02027     __swig_getmethods__["tracked_quad"] = LeapPython.Frame_tracked_quad_get
02028     if _newclass:
02029         tracked_quad = _swig_property(LeapPython.Frame_tracked_quad_get)
02030     def serialize(self):
02031         length = self.serialize_length
02032         str = byte_array(length)
02033         LeapPython.Frame_serialize(self, str)
02034         return (str, length)
02035     def deserialize(self, tup):
02036         LeapPython.Frame_deserialize(self, tup[0], tup[1])
02037     __swig_getmethods__["serialize"] = serialize
02038     if _newclass:serialize = _swig_property(serialize)
02039 
02040     __swig_destroy__ = LeapPython.delete_Frame
02041     __del__ = lambda self: None
02042 Frame_swigregister = LeapPython.Frame_swigregister
02043 Frame_swigregister(Frame)
02044 Frame.invalid = LeapPython.cvar.Frame_invalid
02045 
02046 class BugReport(Interface):
02047     __swig_setmethods__ = {}
02048     for _s in [Interface]:
02049         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
02050     __setattr__ = lambda self, name, value: _swig_setattr(self, BugReport, name, value)
02051     __swig_getmethods__ = {}
02052     for _s in [Interface]:
02053         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
02054     __getattr__ = lambda self, name: _swig_getattr(self, BugReport, name)
02055     __repr__ = _swig_repr
02056 
02057     def __init__(self):
02058         this = LeapPython.new_BugReport()
02059         try:
02060             self.this.append(this)
02061         except:
02062             self.this = this
02063 
02064     def begin_recording(self):
02065         return LeapPython.BugReport_begin_recording(self)
02066 
02067     def end_recording(self):
02068         return LeapPython.BugReport_end_recording(self)
02069     __swig_getmethods__["is_active"] = LeapPython.BugReport_is_active_get
02070     if _newclass:
02071         is_active = _swig_property(LeapPython.BugReport_is_active_get)
02072     __swig_getmethods__["progress"] = LeapPython.BugReport_progress_get
02073     if _newclass:
02074         progress = _swig_property(LeapPython.BugReport_progress_get)
02075     __swig_getmethods__["duration"] = LeapPython.BugReport_duration_get
02076     if _newclass:
02077         duration = _swig_property(LeapPython.BugReport_duration_get)
02078     __swig_destroy__ = LeapPython.delete_BugReport
02079     __del__ = lambda self: None
02080 BugReport_swigregister = LeapPython.BugReport_swigregister
02081 BugReport_swigregister(BugReport)
02082 
02083 class Config(Interface):
02084     __swig_setmethods__ = {}
02085     for _s in [Interface]:
02086         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
02087     __setattr__ = lambda self, name, value: _swig_setattr(self, Config, name, value)
02088     __swig_getmethods__ = {}
02089     for _s in [Interface]:
02090         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
02091     __getattr__ = lambda self, name: _swig_getattr(self, Config, name)
02092     __repr__ = _swig_repr
02093 
02094     def __init__(self):
02095         this = LeapPython.new_Config()
02096         try:
02097             self.this.append(this)
02098         except:
02099             self.this = this
02100     TYPE_UNKNOWN = LeapPython.Config_TYPE_UNKNOWN
02101     TYPE_BOOLEAN = LeapPython.Config_TYPE_BOOLEAN
02102     TYPE_INT32 = LeapPython.Config_TYPE_INT32
02103     TYPE_FLOAT = LeapPython.Config_TYPE_FLOAT
02104     TYPE_STRING = LeapPython.Config_TYPE_STRING
02105 
02106 
02107 
02108 
02109 
02110 
02111 
02112 
02113 
02114 
02115     def save(self):
02116         return LeapPython.Config_save(self)
02117     def get(self, *args):
02118       type = LeapPython.Config_type(self, *args)
02119       if type == LeapPython.Config_TYPE_BOOLEAN:
02120         return LeapPython.Config_get_bool(self, *args)
02121       elif type == LeapPython.Config_TYPE_INT32:
02122         return LeapPython.Config_get_int_32(self, *args)
02123       elif type == LeapPython.Config_TYPE_FLOAT:
02124         return LeapPython.Config_get_float(self, *args)
02125       elif type == LeapPython.Config_TYPE_STRING:
02126         return LeapPython.Config_get_string(self, *args)
02127       return None
02128     def set(self, *args):
02129       type = LeapPython.Config_type(self, *args[:-1])  # Do not pass value through
02130       if type == LeapPython.Config_TYPE_BOOLEAN:
02131         return LeapPython.Config_set_bool(self, *args)
02132       elif type == LeapPython.Config_TYPE_INT32:
02133         return LeapPython.Config_set_int_32(self, *args)
02134       elif type == LeapPython.Config_TYPE_FLOAT:
02135         return LeapPython.Config_set_float(self, *args)
02136       elif type == LeapPython.Config_TYPE_STRING:
02137         return LeapPython.Config_set_string(self, *args)
02138       return False
02139 
02140     __swig_destroy__ = LeapPython.delete_Config
02141     __del__ = lambda self: None
02142 Config_swigregister = LeapPython.Config_swigregister
02143 Config_swigregister(Config)
02144 
02145 class Controller(Interface):
02146     __swig_setmethods__ = {}
02147     for _s in [Interface]:
02148         __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
02149     __setattr__ = lambda self, name, value: _swig_setattr(self, Controller, name, value)
02150     __swig_getmethods__ = {}
02151     for _s in [Interface]:
02152         __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
02153     __getattr__ = lambda self, name: _swig_getattr(self, Controller, name)
02154     __repr__ = _swig_repr
02155     __swig_destroy__ = LeapPython.delete_Controller
02156     __del__ = lambda self: None
02157 
02158     def __init__(self, *args):
02159         this = LeapPython.new_Controller(*args)
02160         try:
02161             self.this.append(this)
02162         except:
02163             self.this = this
02164 
02165     def is_service_connected(self):
02166         return LeapPython.Controller_is_service_connected(self)
02167     POLICY_DEFAULT = LeapPython.Controller_POLICY_DEFAULT
02168     POLICY_BACKGROUND_FRAMES = LeapPython.Controller_POLICY_BACKGROUND_FRAMES
02169     POLICY_IMAGES = LeapPython.Controller_POLICY_IMAGES
02170     POLICY_OPTIMIZE_HMD = LeapPython.Controller_POLICY_OPTIMIZE_HMD
02171 
02172     def set_policy_flags(self, flags):
02173         return LeapPython.Controller_set_policy_flags(self, flags)
02174 
02175     def set_policy(self, policy):
02176         return LeapPython.Controller_set_policy(self, policy)
02177 
02178     def clear_policy(self, policy):
02179         return LeapPython.Controller_clear_policy(self, policy)
02180 
02181     def is_policy_set(self, policy):
02182         return LeapPython.Controller_is_policy_set(self, policy)
02183 
02184     def add_listener(self, listener):
02185         return LeapPython.Controller_add_listener(self, listener)
02186 
02187     def remove_listener(self, listener):
02188         return LeapPython.Controller_remove_listener(self, listener)
02189 
02190     def frame(self, history=0):
02191         return LeapPython.Controller_frame(self, history)
02192 
02193     def enable_gesture(self, type, enable=True):
02194         return LeapPython.Controller_enable_gesture(self, type, enable)
02195 
02196     def is_gesture_enabled(self, type):
02197         return LeapPython.Controller_is_gesture_enabled(self, type)
02198 
02199     def now(self):
02200         return LeapPython.Controller_now(self)
02201     __swig_getmethods__["is_connected"] = LeapPython.Controller_is_connected_get
02202     if _newclass:
02203         is_connected = _swig_property(LeapPython.Controller_is_connected_get)
02204     __swig_getmethods__["has_focus"] = LeapPython.Controller_has_focus_get
02205     if _newclass:
02206         has_focus = _swig_property(LeapPython.Controller_has_focus_get)
02207     __swig_getmethods__["policy_flags"] = LeapPython.Controller_policy_flags_get
02208     if _newclass:
02209         policy_flags = _swig_property(LeapPython.Controller_policy_flags_get)
02210     __swig_getmethods__["config"] = LeapPython.Controller_config_get
02211     if _newclass:
02212         config = _swig_property(LeapPython.Controller_config_get)
02213     __swig_getmethods__["images"] = LeapPython.Controller_images_get
02214     if _newclass:
02215         images = _swig_property(LeapPython.Controller_images_get)
02216     __swig_getmethods__["located_screens"] = LeapPython.Controller_located_screens_get
02217     if _newclass:
02218         located_screens = _swig_property(LeapPython.Controller_located_screens_get)
02219     __swig_getmethods__["devices"] = LeapPython.Controller_devices_get
02220     if _newclass:
02221         devices = _swig_property(LeapPython.Controller_devices_get)
02222     __swig_getmethods__["tracked_quad"] = LeapPython.Controller_tracked_quad_get
02223     if _newclass:
02224         tracked_quad = _swig_property(LeapPython.Controller_tracked_quad_get)
02225     __swig_getmethods__["bug_report"] = LeapPython.Controller_bug_report_get
02226     if _newclass:
02227         bug_report = _swig_property(LeapPython.Controller_bug_report_get)
02228 Controller_swigregister = LeapPython.Controller_swigregister
02229 Controller_swigregister(Controller)
02230 
02231 class Listener(_object):
02232     __swig_setmethods__ = {}
02233     __setattr__ = lambda self, name, value: _swig_setattr(self, Listener, name, value)
02234     __swig_getmethods__ = {}
02235     __getattr__ = lambda self, name: _swig_getattr(self, Listener, name)
02236     __repr__ = _swig_repr
02237 
02238     def __init__(self):
02239         if self.__class__ == Listener:
02240             _self = None
02241         else:
02242             _self = self
02243         this = LeapPython.new_Listener(_self, )
02244         try:
02245             self.this.append(this)
02246         except:
02247             self.this = this
02248     __swig_destroy__ = LeapPython.delete_Listener
02249     __del__ = lambda self: None
02250 
02251     def on_init(self, arg0):
02252         return LeapPython.Listener_on_init(self, arg0)
02253 
02254     def on_connect(self, arg0):
02255         return LeapPython.Listener_on_connect(self, arg0)
02256 
02257     def on_disconnect(self, arg0):
02258         return LeapPython.Listener_on_disconnect(self, arg0)
02259 
02260     def on_exit(self, arg0):
02261         return LeapPython.Listener_on_exit(self, arg0)
02262 
02263     def on_frame(self, arg0):
02264         return LeapPython.Listener_on_frame(self, arg0)
02265 
02266     def on_focus_gained(self, arg0):
02267         return LeapPython.Listener_on_focus_gained(self, arg0)
02268 
02269     def on_focus_lost(self, arg0):
02270         return LeapPython.Listener_on_focus_lost(self, arg0)
02271 
02272     def on_service_connect(self, arg0):
02273         return LeapPython.Listener_on_service_connect(self, arg0)
02274 
02275     def on_service_disconnect(self, arg0):
02276         return LeapPython.Listener_on_service_disconnect(self, arg0)
02277 
02278     def on_device_change(self, arg0):
02279         return LeapPython.Listener_on_device_change(self, arg0)
02280 
02281     def on_images(self, arg0):
02282         return LeapPython.Listener_on_images(self, arg0)
02283     def __disown__(self):
02284         self.this.disown()
02285         LeapPython.disown_Listener(self)
02286         return weakref_proxy(self)
02287 Listener_swigregister = LeapPython.Listener_swigregister
02288 Listener_swigregister(Listener)
02289 
02290 # This file is compatible with both classic and new-style classes.
02291 
02292 


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