Leap.py
Go to the documentation of this file.
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.3
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2, 6, 0):
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('LeapPython', [dirname(__file__)])
19  except ImportError:
20  import LeapPython
21  return LeapPython
22  if fp is not None:
23  try:
24  _mod = imp.load_module('LeapPython', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  LeapPython = swig_import_helper()
29  del swig_import_helper
30 else:
31  import LeapPython
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 
38 
39 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
40  if (name == "thisown"):
41  return self.this.own(value)
42  if (name == "this"):
43  if type(value).__name__ == 'SwigPyObject':
44  self.__dict__[name] = value
45  return
46  method = class_type.__swig_setmethods__.get(name, None)
47  if method:
48  return method(self, value)
49  if (not static):
50  object.__setattr__(self, name, value)
51  else:
52  raise AttributeError("You cannot add attributes to %s" % self)
53 
54 
55 def _swig_setattr(self, class_type, name, value):
56  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
57 
58 
59 def _swig_getattr_nondynamic(self, class_type, name, static=1):
60  if (name == "thisown"):
61  return self.this.own()
62  method = class_type.__swig_getmethods__.get(name, None)
63  if method:
64  return method(self)
65  if (not static):
66  return object.__getattr__(self, name)
67  else:
68  raise AttributeError(name)
69 
70 def _swig_getattr(self, class_type, name):
71  return _swig_getattr_nondynamic(self, class_type, name, 0)
72 
73 
74 def _swig_repr(self):
75  try:
76  strthis = "proxy of " + self.this.__repr__()
77  except:
78  strthis = ""
79  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
80 
81 try:
82  _object = object
83  _newclass = 1
84 except AttributeError:
85  class _object:
86  pass
87  _newclass = 0
88 
89 
90 try:
91  import weakref
92  weakref_proxy = weakref.proxy
93 except:
94  weakref_proxy = lambda x: x
95 
96 
98  __swig_setmethods__ = {}
99  __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
100  __swig_getmethods__ = {}
101  __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
102 
103  def __init__(self, *args, **kwargs):
104  raise AttributeError("No constructor defined - class is abstract")
105  __repr__ = _swig_repr
106  __swig_destroy__ = LeapPython.delete_SwigPyIterator
107  __del__ = lambda self: None
108 
109  def value(self):
110  return LeapPython.SwigPyIterator_value(self)
111 
112  def incr(self, n=1):
113  return LeapPython.SwigPyIterator_incr(self, n)
114 
115  def decr(self, n=1):
116  return LeapPython.SwigPyIterator_decr(self, n)
117 
118  def distance(self, x):
119  return LeapPython.SwigPyIterator_distance(self, x)
120 
121  def equal(self, x):
122  return LeapPython.SwigPyIterator_equal(self, x)
123 
124  def copy(self):
125  return LeapPython.SwigPyIterator_copy(self)
126 
127  def next(self):
128  return LeapPython.SwigPyIterator_next(self)
129 
130  def __next__(self):
131  return LeapPython.SwigPyIterator___next__(self)
132 
133  def previous(self):
134  return LeapPython.SwigPyIterator_previous(self)
135 
136  def advance(self, n):
137  return LeapPython.SwigPyIterator_advance(self, n)
138 
139  def __eq__(self, x):
140  return LeapPython.SwigPyIterator___eq__(self, x)
141 
142  def __ne__(self, x):
143  return LeapPython.SwigPyIterator___ne__(self, x)
144 
145  def __iadd__(self, n):
146  return LeapPython.SwigPyIterator___iadd__(self, n)
147 
148  def __isub__(self, n):
149  return LeapPython.SwigPyIterator___isub__(self, n)
150 
151  def __add__(self, n):
152  return LeapPython.SwigPyIterator___add__(self, n)
153 
154  def __sub__(self, *args):
155  return LeapPython.SwigPyIterator___sub__(self, *args)
156  def __iter__(self):
157  return self
158 SwigPyIterator_swigregister = LeapPython.SwigPyIterator_swigregister
159 SwigPyIterator_swigregister(SwigPyIterator)
160 
162  __swig_setmethods__ = {}
163  __setattr__ = lambda self, name, value: _swig_setattr(self, byte_array, name, value)
164  __swig_getmethods__ = {}
165  __getattr__ = lambda self, name: _swig_getattr(self, byte_array, name)
166  __repr__ = _swig_repr
167 
168  def __init__(self, nelements):
169  this = LeapPython.new_byte_array(nelements)
170  try:
171  self.this.append(this)
172  except:
173  self.this = this
174  __swig_destroy__ = LeapPython.delete_byte_array
175  __del__ = lambda self: None
176 
177  def __getitem__(self, index):
178  return LeapPython.byte_array___getitem__(self, index)
179 
180  def __setitem__(self, index, value):
181  return LeapPython.byte_array___setitem__(self, index, value)
182 
183  def cast(self):
184  return LeapPython.byte_array_cast(self)
185  __swig_getmethods__["frompointer"] = lambda x: LeapPython.byte_array_frompointer
186  if _newclass:
187  frompointer = staticmethod(LeapPython.byte_array_frompointer)
188 byte_array_swigregister = LeapPython.byte_array_swigregister
189 byte_array_swigregister(byte_array)
190 
192  return LeapPython.byte_array_frompointer(t)
193 byte_array_frompointer = LeapPython.byte_array_frompointer
194 
196  __swig_setmethods__ = {}
197  __setattr__ = lambda self, name, value: _swig_setattr(self, float_array, name, value)
198  __swig_getmethods__ = {}
199  __getattr__ = lambda self, name: _swig_getattr(self, float_array, name)
200  __repr__ = _swig_repr
201 
202  def __init__(self, nelements):
203  this = LeapPython.new_float_array(nelements)
204  try:
205  self.this.append(this)
206  except:
207  self.this = this
208  __swig_destroy__ = LeapPython.delete_float_array
209  __del__ = lambda self: None
210 
211  def __getitem__(self, index):
212  return LeapPython.float_array___getitem__(self, index)
213 
214  def __setitem__(self, index, value):
215  return LeapPython.float_array___setitem__(self, index, value)
216 
217  def cast(self):
218  return LeapPython.float_array_cast(self)
219  __swig_getmethods__["frompointer"] = lambda x: LeapPython.float_array_frompointer
220  if _newclass:
221  frompointer = staticmethod(LeapPython.float_array_frompointer)
222 float_array_swigregister = LeapPython.float_array_swigregister
223 float_array_swigregister(float_array)
224 
226  return LeapPython.float_array_frompointer(t)
227 float_array_frompointer = LeapPython.float_array_frompointer
228 
229 class Vector(_object):
230  __swig_setmethods__ = {}
231  __setattr__ = lambda self, name, value: _swig_setattr(self, Vector, name, value)
232  __swig_getmethods__ = {}
233  __getattr__ = lambda self, name: _swig_getattr(self, Vector, name)
234  __repr__ = _swig_repr
235 
236  def __init__(self, *args):
237  this = LeapPython.new_Vector(*args)
238  try:
239  self.this.append(this)
240  except:
241  self.this = this
242 
243  def distance_to(self, other):
244  return LeapPython.Vector_distance_to(self, other)
245 
246  def angle_to(self, other):
247  return LeapPython.Vector_angle_to(self, other)
248 
249  def dot(self, other):
250  return LeapPython.Vector_dot(self, other)
251 
252  def cross(self, other):
253  return LeapPython.Vector_cross(self, other)
254 
255  def __neg__(self):
256  return LeapPython.Vector___neg__(self)
257 
258  def __add__(self, other):
259  return LeapPython.Vector___add__(self, other)
260 
261  def __sub__(self, other):
262  return LeapPython.Vector___sub__(self, other)
263 
264  def __mul__(self, scalar):
265  return LeapPython.Vector___mul__(self, scalar)
266 
267  def __div__(self, scalar):
268  return LeapPython.Vector___div__(self, scalar)
269 
270  def __iadd__(self, other):
271  return LeapPython.Vector___iadd__(self, other)
272 
273  def __isub__(self, other):
274  return LeapPython.Vector___isub__(self, other)
275 
276  def __imul__(self, scalar):
277  return LeapPython.Vector___imul__(self, scalar)
278 
279  def __idiv__(self, scalar):
280  return LeapPython.Vector___idiv__(self, scalar)
281 
282  def __str__(self):
283  return LeapPython.Vector___str__(self)
284 
285  def __eq__(self, other):
286  return LeapPython.Vector___eq__(self, other)
287 
288  def __ne__(self, other):
289  return LeapPython.Vector___ne__(self, other)
290 
291  def is_valid(self):
292  return LeapPython.Vector_is_valid(self)
293 
294  def __getitem__(self, index):
295  return LeapPython.Vector___getitem__(self, index)
296  __swig_setmethods__["x"] = LeapPython.Vector_x_set
297  __swig_getmethods__["x"] = LeapPython.Vector_x_get
298  if _newclass:
299  x = _swig_property(LeapPython.Vector_x_get, LeapPython.Vector_x_set)
300  __swig_setmethods__["y"] = LeapPython.Vector_y_set
301  __swig_getmethods__["y"] = LeapPython.Vector_y_get
302  if _newclass:
303  y = _swig_property(LeapPython.Vector_y_get, LeapPython.Vector_y_set)
304  __swig_setmethods__["z"] = LeapPython.Vector_z_set
305  __swig_getmethods__["z"] = LeapPython.Vector_z_get
306  if _newclass:
307  z = _swig_property(LeapPython.Vector_z_get, LeapPython.Vector_z_set)
308  __swig_getmethods__["magnitude"] = LeapPython.Vector_magnitude_get
309  if _newclass:
310  magnitude = _swig_property(LeapPython.Vector_magnitude_get)
311  __swig_getmethods__["magnitude_squared"] = LeapPython.Vector_magnitude_squared_get
312  if _newclass:
313  magnitude_squared = _swig_property(LeapPython.Vector_magnitude_squared_get)
314  __swig_getmethods__["pitch"] = LeapPython.Vector_pitch_get
315  if _newclass:
316  pitch = _swig_property(LeapPython.Vector_pitch_get)
317  __swig_getmethods__["roll"] = LeapPython.Vector_roll_get
318  if _newclass:
319  roll = _swig_property(LeapPython.Vector_roll_get)
320  __swig_getmethods__["yaw"] = LeapPython.Vector_yaw_get
321  if _newclass:
322  yaw = _swig_property(LeapPython.Vector_yaw_get)
323  __swig_getmethods__["normalized"] = LeapPython.Vector_normalized_get
324  if _newclass:
325  normalized = _swig_property(LeapPython.Vector_normalized_get)
326  def to_float_array(self): return [self.x, self.y, self.z]
327  def to_tuple(self): return (self.x, self.y, self.z)
328 
329  __swig_destroy__ = LeapPython.delete_Vector
330  __del__ = lambda self: None
331 Vector_swigregister = LeapPython.Vector_swigregister
332 Vector_swigregister(Vector)
333 cvar = LeapPython.cvar
334 PI = cvar.PI
335 DEG_TO_RAD = cvar.DEG_TO_RAD
336 RAD_TO_DEG = cvar.RAD_TO_DEG
337 EPSILON = cvar.EPSILON
338 Vector.zero = LeapPython.cvar.Vector_zero
339 Vector.x_axis = LeapPython.cvar.Vector_x_axis
340 Vector.y_axis = LeapPython.cvar.Vector_y_axis
341 Vector.z_axis = LeapPython.cvar.Vector_z_axis
342 Vector.forward = LeapPython.cvar.Vector_forward
343 Vector.backward = LeapPython.cvar.Vector_backward
344 Vector.left = LeapPython.cvar.Vector_left
345 Vector.right = LeapPython.cvar.Vector_right
346 Vector.up = LeapPython.cvar.Vector_up
347 Vector.down = LeapPython.cvar.Vector_down
348 
349 class Matrix(_object):
350  __swig_setmethods__ = {}
351  __setattr__ = lambda self, name, value: _swig_setattr(self, Matrix, name, value)
352  __swig_getmethods__ = {}
353  __getattr__ = lambda self, name: _swig_getattr(self, Matrix, name)
354  __repr__ = _swig_repr
355 
356  def __init__(self, *args):
357  this = LeapPython.new_Matrix(*args)
358  try:
359  self.this.append(this)
360  except:
361  self.this = this
362 
363  def set_rotation(self, axis, angleRadians):
364  return LeapPython.Matrix_set_rotation(self, axis, angleRadians)
365 
366  def transform_point(self, arg2):
367  return LeapPython.Matrix_transform_point(self, arg2)
368 
369  def transform_direction(self, arg2):
370  return LeapPython.Matrix_transform_direction(self, arg2)
371 
372  def rigid_inverse(self):
373  return LeapPython.Matrix_rigid_inverse(self)
374 
375  def __mul__(self, other):
376  return LeapPython.Matrix___mul__(self, other)
377 
378  def __imul__(self, other):
379  return LeapPython.Matrix___imul__(self, other)
380 
381  def __eq__(self, other):
382  return LeapPython.Matrix___eq__(self, other)
383 
384  def __ne__(self, other):
385  return LeapPython.Matrix___ne__(self, other)
386 
387  def __str__(self):
388  return LeapPython.Matrix___str__(self)
389  __swig_setmethods__["x_basis"] = LeapPython.Matrix_x_basis_set
390  __swig_getmethods__["x_basis"] = LeapPython.Matrix_x_basis_get
391  if _newclass:
392  x_basis = _swig_property(LeapPython.Matrix_x_basis_get, LeapPython.Matrix_x_basis_set)
393  __swig_setmethods__["y_basis"] = LeapPython.Matrix_y_basis_set
394  __swig_getmethods__["y_basis"] = LeapPython.Matrix_y_basis_get
395  if _newclass:
396  y_basis = _swig_property(LeapPython.Matrix_y_basis_get, LeapPython.Matrix_y_basis_set)
397  __swig_setmethods__["z_basis"] = LeapPython.Matrix_z_basis_set
398  __swig_getmethods__["z_basis"] = LeapPython.Matrix_z_basis_get
399  if _newclass:
400  z_basis = _swig_property(LeapPython.Matrix_z_basis_get, LeapPython.Matrix_z_basis_set)
401  __swig_setmethods__["origin"] = LeapPython.Matrix_origin_set
402  __swig_getmethods__["origin"] = LeapPython.Matrix_origin_get
403  if _newclass:
404  origin = _swig_property(LeapPython.Matrix_origin_get, LeapPython.Matrix_origin_set)
405  def to_array_3x3(self, output = None):
406  if output is None:
407  output = [0]*9
408  output[0], output[1], output[2] = self.x_basis.x, self.x_basis.y, self.x_basis.z
409  output[3], output[4], output[5] = self.y_basis.x, self.y_basis.y, self.y_basis.z
410  output[6], output[7], output[8] = self.z_basis.x, self.z_basis.y, self.z_basis.z
411  return output
412  def to_array_4x4(self, output = None):
413  if output is None:
414  output = [0]*16
415  output[0], output[1], output[2], output[3] = self.x_basis.x, self.x_basis.y, self.x_basis.z, 0.0
416  output[4], output[5], output[6], output[7] = self.y_basis.x, self.y_basis.y, self.y_basis.z, 0.0
417  output[8], output[9], output[10], output[11] = self.z_basis.x, self.z_basis.y, self.z_basis.z, 0.0
418  output[12], output[13], output[14], output[15] = self.origin.x, self.origin.y, self.origin.z, 1.0
419  return output
420 
421  __swig_destroy__ = LeapPython.delete_Matrix
422  __del__ = lambda self: None
423 Matrix_swigregister = LeapPython.Matrix_swigregister
424 Matrix_swigregister(Matrix)
425 Matrix.identity = LeapPython.cvar.Matrix_identity
426 
427 class Interface(_object):
428  __swig_setmethods__ = {}
429  __setattr__ = lambda self, name, value: _swig_setattr(self, Interface, name, value)
430  __swig_getmethods__ = {}
431  __getattr__ = lambda self, name: _swig_getattr(self, Interface, name)
432 
433  def __init__(self, *args, **kwargs):
434  raise AttributeError("No constructor defined")
435  __repr__ = _swig_repr
436 Interface_swigregister = LeapPython.Interface_swigregister
437 Interface_swigregister(Interface)
438 
439 class Pointable(Interface):
440  __swig_setmethods__ = {}
441  for _s in [Interface]:
442  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
443  __setattr__ = lambda self, name, value: _swig_setattr(self, Pointable, name, value)
444  __swig_getmethods__ = {}
445  for _s in [Interface]:
446  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
447  __getattr__ = lambda self, name: _swig_getattr(self, Pointable, name)
448  __repr__ = _swig_repr
449  ZONE_NONE = LeapPython.Pointable_ZONE_NONE
450  ZONE_HOVERING = LeapPython.Pointable_ZONE_HOVERING
451  ZONE_TOUCHING = LeapPython.Pointable_ZONE_TOUCHING
452 
453  def __init__(self):
454  this = LeapPython.new_Pointable()
455  try:
456  self.this.append(this)
457  except:
458  self.this = this
459 
460  def __eq__(self, arg2):
461  return LeapPython.Pointable___eq__(self, arg2)
462 
463  def __ne__(self, arg2):
464  return LeapPython.Pointable___ne__(self, arg2)
465 
466  def __str__(self):
467  return LeapPython.Pointable___str__(self)
468  __swig_getmethods__["id"] = LeapPython.Pointable_id_get
469  if _newclass:
470  id = _swig_property(LeapPython.Pointable_id_get)
471  __swig_getmethods__["hand"] = LeapPython.Pointable_hand_get
472  if _newclass:
473  hand = _swig_property(LeapPython.Pointable_hand_get)
474  __swig_getmethods__["tip_position"] = LeapPython.Pointable_tip_position_get
475  if _newclass:
476  tip_position = _swig_property(LeapPython.Pointable_tip_position_get)
477  __swig_getmethods__["tip_velocity"] = LeapPython.Pointable_tip_velocity_get
478  if _newclass:
479  tip_velocity = _swig_property(LeapPython.Pointable_tip_velocity_get)
480  __swig_getmethods__["direction"] = LeapPython.Pointable_direction_get
481  if _newclass:
482  direction = _swig_property(LeapPython.Pointable_direction_get)
483  __swig_getmethods__["width"] = LeapPython.Pointable_width_get
484  if _newclass:
485  width = _swig_property(LeapPython.Pointable_width_get)
486  __swig_getmethods__["length"] = LeapPython.Pointable_length_get
487  if _newclass:
488  length = _swig_property(LeapPython.Pointable_length_get)
489  __swig_getmethods__["is_tool"] = LeapPython.Pointable_is_tool_get
490  if _newclass:
491  is_tool = _swig_property(LeapPython.Pointable_is_tool_get)
492  __swig_getmethods__["is_finger"] = LeapPython.Pointable_is_finger_get
493  if _newclass:
494  is_finger = _swig_property(LeapPython.Pointable_is_finger_get)
495  __swig_getmethods__["is_extended"] = LeapPython.Pointable_is_extended_get
496  if _newclass:
497  is_extended = _swig_property(LeapPython.Pointable_is_extended_get)
498  __swig_getmethods__["is_valid"] = LeapPython.Pointable_is_valid_get
499  if _newclass:
500  is_valid = _swig_property(LeapPython.Pointable_is_valid_get)
501  __swig_getmethods__["touch_zone"] = LeapPython.Pointable_touch_zone_get
502  if _newclass:
503  touch_zone = _swig_property(LeapPython.Pointable_touch_zone_get)
504  __swig_getmethods__["touch_distance"] = LeapPython.Pointable_touch_distance_get
505  if _newclass:
506  touch_distance = _swig_property(LeapPython.Pointable_touch_distance_get)
507  __swig_getmethods__["stabilized_tip_position"] = LeapPython.Pointable_stabilized_tip_position_get
508  if _newclass:
509  stabilized_tip_position = _swig_property(LeapPython.Pointable_stabilized_tip_position_get)
510  __swig_getmethods__["time_visible"] = LeapPython.Pointable_time_visible_get
511  if _newclass:
512  time_visible = _swig_property(LeapPython.Pointable_time_visible_get)
513  __swig_getmethods__["frame"] = LeapPython.Pointable_frame_get
514  if _newclass:
515  frame = _swig_property(LeapPython.Pointable_frame_get)
516  __swig_destroy__ = LeapPython.delete_Pointable
517  __del__ = lambda self: None
518 Pointable_swigregister = LeapPython.Pointable_swigregister
519 Pointable_swigregister(Pointable)
520 Pointable.invalid = LeapPython.cvar.Pointable_invalid
521 
522 class Arm(Interface):
523  __swig_setmethods__ = {}
524  for _s in [Interface]:
525  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
526  __setattr__ = lambda self, name, value: _swig_setattr(self, Arm, name, value)
527  __swig_getmethods__ = {}
528  for _s in [Interface]:
529  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
530  __getattr__ = lambda self, name: _swig_getattr(self, Arm, name)
531  __repr__ = _swig_repr
532 
533  def __init__(self):
534  this = LeapPython.new_Arm()
535  try:
536  self.this.append(this)
537  except:
538  self.this = this
539 
540  def __eq__(self, arg2):
541  return LeapPython.Arm___eq__(self, arg2)
542 
543  def __ne__(self, arg2):
544  return LeapPython.Arm___ne__(self, arg2)
545 
546  def __str__(self):
547  return LeapPython.Arm___str__(self)
548  __swig_getmethods__["width"] = LeapPython.Arm_width_get
549  if _newclass:
550  width = _swig_property(LeapPython.Arm_width_get)
551  __swig_getmethods__["center"] = LeapPython.Arm_center_get
552  if _newclass:
553  center = _swig_property(LeapPython.Arm_center_get)
554  __swig_getmethods__["direction"] = LeapPython.Arm_direction_get
555  if _newclass:
556  direction = _swig_property(LeapPython.Arm_direction_get)
557  __swig_getmethods__["basis"] = LeapPython.Arm_basis_get
558  if _newclass:
559  basis = _swig_property(LeapPython.Arm_basis_get)
560  __swig_getmethods__["elbow_position"] = LeapPython.Arm_elbow_position_get
561  if _newclass:
562  elbow_position = _swig_property(LeapPython.Arm_elbow_position_get)
563  __swig_getmethods__["wrist_position"] = LeapPython.Arm_wrist_position_get
564  if _newclass:
565  wrist_position = _swig_property(LeapPython.Arm_wrist_position_get)
566  __swig_getmethods__["is_valid"] = LeapPython.Arm_is_valid_get
567  if _newclass:
568  is_valid = _swig_property(LeapPython.Arm_is_valid_get)
569  __swig_destroy__ = LeapPython.delete_Arm
570  __del__ = lambda self: None
571 Arm_swigregister = LeapPython.Arm_swigregister
572 Arm_swigregister(Arm)
573 Arm.invalid = LeapPython.cvar.Arm_invalid
574 
575 class Bone(Interface):
576  __swig_setmethods__ = {}
577  for _s in [Interface]:
578  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
579  __setattr__ = lambda self, name, value: _swig_setattr(self, Bone, name, value)
580  __swig_getmethods__ = {}
581  for _s in [Interface]:
582  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
583  __getattr__ = lambda self, name: _swig_getattr(self, Bone, name)
584  __repr__ = _swig_repr
585  TYPE_METACARPAL = LeapPython.Bone_TYPE_METACARPAL
586  TYPE_PROXIMAL = LeapPython.Bone_TYPE_PROXIMAL
587  TYPE_INTERMEDIATE = LeapPython.Bone_TYPE_INTERMEDIATE
588  TYPE_DISTAL = LeapPython.Bone_TYPE_DISTAL
589 
590  def __init__(self):
591  this = LeapPython.new_Bone()
592  try:
593  self.this.append(this)
594  except:
595  self.this = this
596 
597  def __eq__(self, arg2):
598  return LeapPython.Bone___eq__(self, arg2)
599 
600  def __ne__(self, arg2):
601  return LeapPython.Bone___ne__(self, arg2)
602 
603  def __str__(self):
604  return LeapPython.Bone___str__(self)
605  __swig_getmethods__["prev_joint"] = LeapPython.Bone_prev_joint_get
606  if _newclass:
607  prev_joint = _swig_property(LeapPython.Bone_prev_joint_get)
608  __swig_getmethods__["next_joint"] = LeapPython.Bone_next_joint_get
609  if _newclass:
610  next_joint = _swig_property(LeapPython.Bone_next_joint_get)
611  __swig_getmethods__["center"] = LeapPython.Bone_center_get
612  if _newclass:
613  center = _swig_property(LeapPython.Bone_center_get)
614  __swig_getmethods__["direction"] = LeapPython.Bone_direction_get
615  if _newclass:
616  direction = _swig_property(LeapPython.Bone_direction_get)
617  __swig_getmethods__["length"] = LeapPython.Bone_length_get
618  if _newclass:
619  length = _swig_property(LeapPython.Bone_length_get)
620  __swig_getmethods__["width"] = LeapPython.Bone_width_get
621  if _newclass:
622  width = _swig_property(LeapPython.Bone_width_get)
623  __swig_getmethods__["type"] = LeapPython.Bone_type_get
624  if _newclass:
625  type = _swig_property(LeapPython.Bone_type_get)
626  __swig_getmethods__["basis"] = LeapPython.Bone_basis_get
627  if _newclass:
628  basis = _swig_property(LeapPython.Bone_basis_get)
629  __swig_getmethods__["is_valid"] = LeapPython.Bone_is_valid_get
630  if _newclass:
631  is_valid = _swig_property(LeapPython.Bone_is_valid_get)
632  __swig_destroy__ = LeapPython.delete_Bone
633  __del__ = lambda self: None
634 Bone_swigregister = LeapPython.Bone_swigregister
635 Bone_swigregister(Bone)
636 Bone.invalid = LeapPython.cvar.Bone_invalid
637 
638 class Finger(Pointable):
639  __swig_setmethods__ = {}
640  for _s in [Pointable]:
641  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
642  __setattr__ = lambda self, name, value: _swig_setattr(self, Finger, name, value)
643  __swig_getmethods__ = {}
644  for _s in [Pointable]:
645  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
646  __getattr__ = lambda self, name: _swig_getattr(self, Finger, name)
647  __repr__ = _swig_repr
648  JOINT_MCP = LeapPython.Finger_JOINT_MCP
649  JOINT_PIP = LeapPython.Finger_JOINT_PIP
650  JOINT_DIP = LeapPython.Finger_JOINT_DIP
651  JOINT_TIP = LeapPython.Finger_JOINT_TIP
652  TYPE_THUMB = LeapPython.Finger_TYPE_THUMB
653  TYPE_INDEX = LeapPython.Finger_TYPE_INDEX
654  TYPE_MIDDLE = LeapPython.Finger_TYPE_MIDDLE
655  TYPE_RING = LeapPython.Finger_TYPE_RING
656  TYPE_PINKY = LeapPython.Finger_TYPE_PINKY
657 
658  def __init__(self, *args):
659  this = LeapPython.new_Finger(*args)
660  try:
661  self.this.append(this)
662  except:
663  self.this = this
664 
665  def joint_position(self, jointIx):
666  return LeapPython.Finger_joint_position(self, jointIx)
667 
668  def bone(self, boneIx):
669  return LeapPython.Finger_bone(self, boneIx)
670 
671  def __str__(self):
672  return LeapPython.Finger___str__(self)
673  __swig_getmethods__["type"] = LeapPython.Finger_type_get
674  if _newclass:
675  type = _swig_property(LeapPython.Finger_type_get)
676  __swig_destroy__ = LeapPython.delete_Finger
677  __del__ = lambda self: None
678 Finger_swigregister = LeapPython.Finger_swigregister
679 Finger_swigregister(Finger)
680 Finger.invalid = LeapPython.cvar.Finger_invalid
681 
682 class Tool(Pointable):
683  __swig_setmethods__ = {}
684  for _s in [Pointable]:
685  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
686  __setattr__ = lambda self, name, value: _swig_setattr(self, Tool, name, value)
687  __swig_getmethods__ = {}
688  for _s in [Pointable]:
689  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
690  __getattr__ = lambda self, name: _swig_getattr(self, Tool, name)
691  __repr__ = _swig_repr
692 
693  def __init__(self, *args):
694  this = LeapPython.new_Tool(*args)
695  try:
696  self.this.append(this)
697  except:
698  self.this = this
699 
700  def __str__(self):
701  return LeapPython.Tool___str__(self)
702  __swig_destroy__ = LeapPython.delete_Tool
703  __del__ = lambda self: None
704 Tool_swigregister = LeapPython.Tool_swigregister
705 Tool_swigregister(Tool)
706 Tool.invalid = LeapPython.cvar.Tool_invalid
707 
708 class Hand(Interface):
709  __swig_setmethods__ = {}
710  for _s in [Interface]:
711  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
712  __setattr__ = lambda self, name, value: _swig_setattr(self, Hand, name, value)
713  __swig_getmethods__ = {}
714  for _s in [Interface]:
715  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
716  __getattr__ = lambda self, name: _swig_getattr(self, Hand, name)
717  __repr__ = _swig_repr
718 
719  def __init__(self):
720  this = LeapPython.new_Hand()
721  try:
722  self.this.append(this)
723  except:
724  self.this = this
725 
726  def pointable(self, id):
727  return LeapPython.Hand_pointable(self, id)
728 
729  def finger(self, id):
730  return LeapPython.Hand_finger(self, id)
731 
732  def tool(self, id):
733  return LeapPython.Hand_tool(self, id)
734 
735  def translation(self, sinceFrame):
736  return LeapPython.Hand_translation(self, sinceFrame)
737 
738  def translation_probability(self, sinceFrame):
739  return LeapPython.Hand_translation_probability(self, sinceFrame)
740 
741  def rotation_axis(self, sinceFrame):
742  return LeapPython.Hand_rotation_axis(self, sinceFrame)
743 
744  def rotation_angle(self, *args):
745  return LeapPython.Hand_rotation_angle(self, *args)
746 
747  def rotation_matrix(self, sinceFrame):
748  return LeapPython.Hand_rotation_matrix(self, sinceFrame)
749 
750  def rotation_probability(self, sinceFrame):
751  return LeapPython.Hand_rotation_probability(self, sinceFrame)
752 
753  def scale_factor(self, sinceFrame):
754  return LeapPython.Hand_scale_factor(self, sinceFrame)
755 
756  def scale_probability(self, sinceFrame):
757  return LeapPython.Hand_scale_probability(self, sinceFrame)
758 
759  def __eq__(self, arg2):
760  return LeapPython.Hand___eq__(self, arg2)
761 
762  def __ne__(self, arg2):
763  return LeapPython.Hand___ne__(self, arg2)
764 
765  def __str__(self):
766  return LeapPython.Hand___str__(self)
767  __swig_getmethods__["id"] = LeapPython.Hand_id_get
768  if _newclass:
769  id = _swig_property(LeapPython.Hand_id_get)
770  __swig_getmethods__["pointables"] = LeapPython.Hand_pointables_get
771  if _newclass:
772  pointables = _swig_property(LeapPython.Hand_pointables_get)
773  __swig_getmethods__["fingers"] = LeapPython.Hand_fingers_get
774  if _newclass:
775  fingers = _swig_property(LeapPython.Hand_fingers_get)
776  __swig_getmethods__["tools"] = LeapPython.Hand_tools_get
777  if _newclass:
778  tools = _swig_property(LeapPython.Hand_tools_get)
779  __swig_getmethods__["palm_position"] = LeapPython.Hand_palm_position_get
780  if _newclass:
781  palm_position = _swig_property(LeapPython.Hand_palm_position_get)
782  __swig_getmethods__["palm_velocity"] = LeapPython.Hand_palm_velocity_get
783  if _newclass:
784  palm_velocity = _swig_property(LeapPython.Hand_palm_velocity_get)
785  __swig_getmethods__["palm_normal"] = LeapPython.Hand_palm_normal_get
786  if _newclass:
787  palm_normal = _swig_property(LeapPython.Hand_palm_normal_get)
788  __swig_getmethods__["direction"] = LeapPython.Hand_direction_get
789  if _newclass:
790  direction = _swig_property(LeapPython.Hand_direction_get)
791  __swig_getmethods__["basis"] = LeapPython.Hand_basis_get
792  if _newclass:
793  basis = _swig_property(LeapPython.Hand_basis_get)
794  __swig_getmethods__["is_valid"] = LeapPython.Hand_is_valid_get
795  if _newclass:
796  is_valid = _swig_property(LeapPython.Hand_is_valid_get)
797  __swig_getmethods__["sphere_center"] = LeapPython.Hand_sphere_center_get
798  if _newclass:
799  sphere_center = _swig_property(LeapPython.Hand_sphere_center_get)
800  __swig_getmethods__["sphere_radius"] = LeapPython.Hand_sphere_radius_get
801  if _newclass:
802  sphere_radius = _swig_property(LeapPython.Hand_sphere_radius_get)
803  __swig_getmethods__["grab_strength"] = LeapPython.Hand_grab_strength_get
804  if _newclass:
805  grab_strength = _swig_property(LeapPython.Hand_grab_strength_get)
806  __swig_getmethods__["pinch_strength"] = LeapPython.Hand_pinch_strength_get
807  if _newclass:
808  pinch_strength = _swig_property(LeapPython.Hand_pinch_strength_get)
809  __swig_getmethods__["palm_width"] = LeapPython.Hand_palm_width_get
810  if _newclass:
811  palm_width = _swig_property(LeapPython.Hand_palm_width_get)
812  __swig_getmethods__["stabilized_palm_position"] = LeapPython.Hand_stabilized_palm_position_get
813  if _newclass:
814  stabilized_palm_position = _swig_property(LeapPython.Hand_stabilized_palm_position_get)
815  __swig_getmethods__["wrist_position"] = LeapPython.Hand_wrist_position_get
816  if _newclass:
817  wrist_position = _swig_property(LeapPython.Hand_wrist_position_get)
818  __swig_getmethods__["time_visible"] = LeapPython.Hand_time_visible_get
819  if _newclass:
820  time_visible = _swig_property(LeapPython.Hand_time_visible_get)
821  __swig_getmethods__["confidence"] = LeapPython.Hand_confidence_get
822  if _newclass:
823  confidence = _swig_property(LeapPython.Hand_confidence_get)
824  __swig_getmethods__["is_left"] = LeapPython.Hand_is_left_get
825  if _newclass:
826  is_left = _swig_property(LeapPython.Hand_is_left_get)
827  __swig_getmethods__["is_right"] = LeapPython.Hand_is_right_get
828  if _newclass:
829  is_right = _swig_property(LeapPython.Hand_is_right_get)
830  __swig_getmethods__["frame"] = LeapPython.Hand_frame_get
831  if _newclass:
832  frame = _swig_property(LeapPython.Hand_frame_get)
833  __swig_getmethods__["arm"] = LeapPython.Hand_arm_get
834  if _newclass:
835  arm = _swig_property(LeapPython.Hand_arm_get)
836  __swig_destroy__ = LeapPython.delete_Hand
837  __del__ = lambda self: None
838 Hand_swigregister = LeapPython.Hand_swigregister
839 Hand_swigregister(Hand)
840 Hand.invalid = LeapPython.cvar.Hand_invalid
841 
842 class Gesture(Interface):
843  __swig_setmethods__ = {}
844  for _s in [Interface]:
845  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
846  __setattr__ = lambda self, name, value: _swig_setattr(self, Gesture, name, value)
847  __swig_getmethods__ = {}
848  for _s in [Interface]:
849  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
850  __getattr__ = lambda self, name: _swig_getattr(self, Gesture, name)
851  __repr__ = _swig_repr
852  TYPE_INVALID = LeapPython.Gesture_TYPE_INVALID
853  TYPE_SWIPE = LeapPython.Gesture_TYPE_SWIPE
854  TYPE_CIRCLE = LeapPython.Gesture_TYPE_CIRCLE
855  TYPE_SCREEN_TAP = LeapPython.Gesture_TYPE_SCREEN_TAP
856  TYPE_KEY_TAP = LeapPython.Gesture_TYPE_KEY_TAP
857  STATE_INVALID = LeapPython.Gesture_STATE_INVALID
858  STATE_START = LeapPython.Gesture_STATE_START
859  STATE_UPDATE = LeapPython.Gesture_STATE_UPDATE
860  STATE_STOP = LeapPython.Gesture_STATE_STOP
861 
862  def __init__(self, *args):
863  this = LeapPython.new_Gesture(*args)
864  try:
865  self.this.append(this)
866  except:
867  self.this = this
868 
869  def __eq__(self, rhs):
870  return LeapPython.Gesture___eq__(self, rhs)
871 
872  def __ne__(self, rhs):
873  return LeapPython.Gesture___ne__(self, rhs)
874 
875  def __str__(self):
876  return LeapPython.Gesture___str__(self)
877  __swig_getmethods__["type"] = LeapPython.Gesture_type_get
878  if _newclass:
879  type = _swig_property(LeapPython.Gesture_type_get)
880  __swig_getmethods__["state"] = LeapPython.Gesture_state_get
881  if _newclass:
882  state = _swig_property(LeapPython.Gesture_state_get)
883  __swig_getmethods__["id"] = LeapPython.Gesture_id_get
884  if _newclass:
885  id = _swig_property(LeapPython.Gesture_id_get)
886  __swig_getmethods__["duration"] = LeapPython.Gesture_duration_get
887  if _newclass:
888  duration = _swig_property(LeapPython.Gesture_duration_get)
889  __swig_getmethods__["duration_seconds"] = LeapPython.Gesture_duration_seconds_get
890  if _newclass:
891  duration_seconds = _swig_property(LeapPython.Gesture_duration_seconds_get)
892  __swig_getmethods__["frame"] = LeapPython.Gesture_frame_get
893  if _newclass:
894  frame = _swig_property(LeapPython.Gesture_frame_get)
895  __swig_getmethods__["hands"] = LeapPython.Gesture_hands_get
896  if _newclass:
897  hands = _swig_property(LeapPython.Gesture_hands_get)
898  __swig_getmethods__["pointables"] = LeapPython.Gesture_pointables_get
899  if _newclass:
900  pointables = _swig_property(LeapPython.Gesture_pointables_get)
901  __swig_getmethods__["is_valid"] = LeapPython.Gesture_is_valid_get
902  if _newclass:
903  is_valid = _swig_property(LeapPython.Gesture_is_valid_get)
904  __swig_destroy__ = LeapPython.delete_Gesture
905  __del__ = lambda self: None
906 Gesture_swigregister = LeapPython.Gesture_swigregister
907 Gesture_swigregister(Gesture)
908 Gesture.invalid = LeapPython.cvar.Gesture_invalid
909 
910 class SwipeGesture(Gesture):
911  __swig_setmethods__ = {}
912  for _s in [Gesture]:
913  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
914  __setattr__ = lambda self, name, value: _swig_setattr(self, SwipeGesture, name, value)
915  __swig_getmethods__ = {}
916  for _s in [Gesture]:
917  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
918  __getattr__ = lambda self, name: _swig_getattr(self, SwipeGesture, name)
919  __repr__ = _swig_repr
920  __swig_getmethods__["class_type"] = lambda x: LeapPython.SwipeGesture_class_type
921  if _newclass:
922  class_type = staticmethod(LeapPython.SwipeGesture_class_type)
923 
924  def __init__(self, *args):
925  this = LeapPython.new_SwipeGesture(*args)
926  try:
927  self.this.append(this)
928  except:
929  self.this = this
930  __swig_getmethods__["start_position"] = LeapPython.SwipeGesture_start_position_get
931  if _newclass:
932  start_position = _swig_property(LeapPython.SwipeGesture_start_position_get)
933  __swig_getmethods__["position"] = LeapPython.SwipeGesture_position_get
934  if _newclass:
935  position = _swig_property(LeapPython.SwipeGesture_position_get)
936  __swig_getmethods__["direction"] = LeapPython.SwipeGesture_direction_get
937  if _newclass:
938  direction = _swig_property(LeapPython.SwipeGesture_direction_get)
939  __swig_getmethods__["speed"] = LeapPython.SwipeGesture_speed_get
940  if _newclass:
941  speed = _swig_property(LeapPython.SwipeGesture_speed_get)
942  __swig_getmethods__["pointable"] = LeapPython.SwipeGesture_pointable_get
943  if _newclass:
944  pointable = _swig_property(LeapPython.SwipeGesture_pointable_get)
945  __swig_destroy__ = LeapPython.delete_SwipeGesture
946  __del__ = lambda self: None
947 SwipeGesture_swigregister = LeapPython.SwipeGesture_swigregister
948 SwipeGesture_swigregister(SwipeGesture)
949 
951  return LeapPython.SwipeGesture_class_type()
952 SwipeGesture_class_type = LeapPython.SwipeGesture_class_type
953 
954 class CircleGesture(Gesture):
955  __swig_setmethods__ = {}
956  for _s in [Gesture]:
957  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
958  __setattr__ = lambda self, name, value: _swig_setattr(self, CircleGesture, name, value)
959  __swig_getmethods__ = {}
960  for _s in [Gesture]:
961  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
962  __getattr__ = lambda self, name: _swig_getattr(self, CircleGesture, name)
963  __repr__ = _swig_repr
964  __swig_getmethods__["class_type"] = lambda x: LeapPython.CircleGesture_class_type
965  if _newclass:
966  class_type = staticmethod(LeapPython.CircleGesture_class_type)
967 
968  def __init__(self, *args):
969  this = LeapPython.new_CircleGesture(*args)
970  try:
971  self.this.append(this)
972  except:
973  self.this = this
974  __swig_getmethods__["center"] = LeapPython.CircleGesture_center_get
975  if _newclass:
976  center = _swig_property(LeapPython.CircleGesture_center_get)
977  __swig_getmethods__["normal"] = LeapPython.CircleGesture_normal_get
978  if _newclass:
979  normal = _swig_property(LeapPython.CircleGesture_normal_get)
980  __swig_getmethods__["progress"] = LeapPython.CircleGesture_progress_get
981  if _newclass:
982  progress = _swig_property(LeapPython.CircleGesture_progress_get)
983  __swig_getmethods__["radius"] = LeapPython.CircleGesture_radius_get
984  if _newclass:
985  radius = _swig_property(LeapPython.CircleGesture_radius_get)
986  __swig_getmethods__["pointable"] = LeapPython.CircleGesture_pointable_get
987  if _newclass:
988  pointable = _swig_property(LeapPython.CircleGesture_pointable_get)
989  __swig_destroy__ = LeapPython.delete_CircleGesture
990  __del__ = lambda self: None
991 CircleGesture_swigregister = LeapPython.CircleGesture_swigregister
992 CircleGesture_swigregister(CircleGesture)
993 
995  return LeapPython.CircleGesture_class_type()
996 CircleGesture_class_type = LeapPython.CircleGesture_class_type
997 
999  __swig_setmethods__ = {}
1000  for _s in [Gesture]:
1001  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1002  __setattr__ = lambda self, name, value: _swig_setattr(self, ScreenTapGesture, name, value)
1003  __swig_getmethods__ = {}
1004  for _s in [Gesture]:
1005  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1006  __getattr__ = lambda self, name: _swig_getattr(self, ScreenTapGesture, name)
1007  __repr__ = _swig_repr
1008  __swig_getmethods__["class_type"] = lambda x: LeapPython.ScreenTapGesture_class_type
1009  if _newclass:
1010  class_type = staticmethod(LeapPython.ScreenTapGesture_class_type)
1011 
1012  def __init__(self, *args):
1013  this = LeapPython.new_ScreenTapGesture(*args)
1014  try:
1015  self.this.append(this)
1016  except:
1017  self.this = this
1018  __swig_getmethods__["position"] = LeapPython.ScreenTapGesture_position_get
1019  if _newclass:
1020  position = _swig_property(LeapPython.ScreenTapGesture_position_get)
1021  __swig_getmethods__["direction"] = LeapPython.ScreenTapGesture_direction_get
1022  if _newclass:
1023  direction = _swig_property(LeapPython.ScreenTapGesture_direction_get)
1024  __swig_getmethods__["progress"] = LeapPython.ScreenTapGesture_progress_get
1025  if _newclass:
1026  progress = _swig_property(LeapPython.ScreenTapGesture_progress_get)
1027  __swig_getmethods__["pointable"] = LeapPython.ScreenTapGesture_pointable_get
1028  if _newclass:
1029  pointable = _swig_property(LeapPython.ScreenTapGesture_pointable_get)
1030  __swig_destroy__ = LeapPython.delete_ScreenTapGesture
1031  __del__ = lambda self: None
1032 ScreenTapGesture_swigregister = LeapPython.ScreenTapGesture_swigregister
1033 ScreenTapGesture_swigregister(ScreenTapGesture)
1034 
1036  return LeapPython.ScreenTapGesture_class_type()
1037 ScreenTapGesture_class_type = LeapPython.ScreenTapGesture_class_type
1038 
1039 class KeyTapGesture(Gesture):
1040  __swig_setmethods__ = {}
1041  for _s in [Gesture]:
1042  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1043  __setattr__ = lambda self, name, value: _swig_setattr(self, KeyTapGesture, name, value)
1044  __swig_getmethods__ = {}
1045  for _s in [Gesture]:
1046  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1047  __getattr__ = lambda self, name: _swig_getattr(self, KeyTapGesture, name)
1048  __repr__ = _swig_repr
1049  __swig_getmethods__["class_type"] = lambda x: LeapPython.KeyTapGesture_class_type
1050  if _newclass:
1051  class_type = staticmethod(LeapPython.KeyTapGesture_class_type)
1052 
1053  def __init__(self, *args):
1054  this = LeapPython.new_KeyTapGesture(*args)
1055  try:
1056  self.this.append(this)
1057  except:
1058  self.this = this
1059  __swig_getmethods__["position"] = LeapPython.KeyTapGesture_position_get
1060  if _newclass:
1061  position = _swig_property(LeapPython.KeyTapGesture_position_get)
1062  __swig_getmethods__["direction"] = LeapPython.KeyTapGesture_direction_get
1063  if _newclass:
1064  direction = _swig_property(LeapPython.KeyTapGesture_direction_get)
1065  __swig_getmethods__["progress"] = LeapPython.KeyTapGesture_progress_get
1066  if _newclass:
1067  progress = _swig_property(LeapPython.KeyTapGesture_progress_get)
1068  __swig_getmethods__["pointable"] = LeapPython.KeyTapGesture_pointable_get
1069  if _newclass:
1070  pointable = _swig_property(LeapPython.KeyTapGesture_pointable_get)
1071  __swig_destroy__ = LeapPython.delete_KeyTapGesture
1072  __del__ = lambda self: None
1073 KeyTapGesture_swigregister = LeapPython.KeyTapGesture_swigregister
1074 KeyTapGesture_swigregister(KeyTapGesture)
1075 
1077  return LeapPython.KeyTapGesture_class_type()
1078 KeyTapGesture_class_type = LeapPython.KeyTapGesture_class_type
1079 
1080 class Screen(Interface):
1081  __swig_setmethods__ = {}
1082  for _s in [Interface]:
1083  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1084  __setattr__ = lambda self, name, value: _swig_setattr(self, Screen, name, value)
1085  __swig_getmethods__ = {}
1086  for _s in [Interface]:
1087  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1088  __getattr__ = lambda self, name: _swig_getattr(self, Screen, name)
1089  __repr__ = _swig_repr
1090 
1091  def __init__(self):
1092  this = LeapPython.new_Screen()
1093  try:
1094  self.this.append(this)
1095  except:
1096  self.this = this
1097 
1098  def intersect(self, *args):
1099  return LeapPython.Screen_intersect(self, *args)
1100 
1101  def project(self, position, normalize, clampRatio=1.0):
1102  return LeapPython.Screen_project(self, position, normalize, clampRatio)
1103 
1104  def normal(self):
1105  return LeapPython.Screen_normal(self)
1106 
1107  def distance_to_point(self, point):
1108  return LeapPython.Screen_distance_to_point(self, point)
1109 
1110  def __eq__(self, arg2):
1111  return LeapPython.Screen___eq__(self, arg2)
1112 
1113  def __ne__(self, arg2):
1114  return LeapPython.Screen___ne__(self, arg2)
1115 
1116  def __str__(self):
1117  return LeapPython.Screen___str__(self)
1118  __swig_getmethods__["id"] = LeapPython.Screen_id_get
1119  if _newclass:
1120  id = _swig_property(LeapPython.Screen_id_get)
1121  __swig_getmethods__["horizontal_axis"] = LeapPython.Screen_horizontal_axis_get
1122  if _newclass:
1123  horizontal_axis = _swig_property(LeapPython.Screen_horizontal_axis_get)
1124  __swig_getmethods__["vertical_axis"] = LeapPython.Screen_vertical_axis_get
1125  if _newclass:
1126  vertical_axis = _swig_property(LeapPython.Screen_vertical_axis_get)
1127  __swig_getmethods__["bottom_left_corner"] = LeapPython.Screen_bottom_left_corner_get
1128  if _newclass:
1129  bottom_left_corner = _swig_property(LeapPython.Screen_bottom_left_corner_get)
1130  __swig_getmethods__["width_pixels"] = LeapPython.Screen_width_pixels_get
1131  if _newclass:
1132  width_pixels = _swig_property(LeapPython.Screen_width_pixels_get)
1133  __swig_getmethods__["height_pixels"] = LeapPython.Screen_height_pixels_get
1134  if _newclass:
1135  height_pixels = _swig_property(LeapPython.Screen_height_pixels_get)
1136  __swig_getmethods__["is_valid"] = LeapPython.Screen_is_valid_get
1137  if _newclass:
1138  is_valid = _swig_property(LeapPython.Screen_is_valid_get)
1139  __swig_destroy__ = LeapPython.delete_Screen
1140  __del__ = lambda self: None
1141 Screen_swigregister = LeapPython.Screen_swigregister
1142 Screen_swigregister(Screen)
1143 Screen.invalid = LeapPython.cvar.Screen_invalid
1144 
1145 class Device(Interface):
1146  __swig_setmethods__ = {}
1147  for _s in [Interface]:
1148  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1149  __setattr__ = lambda self, name, value: _swig_setattr(self, Device, name, value)
1150  __swig_getmethods__ = {}
1151  for _s in [Interface]:
1152  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1153  __getattr__ = lambda self, name: _swig_getattr(self, Device, name)
1154  __repr__ = _swig_repr
1155  TYPE_PERIPHERAL = LeapPython.Device_TYPE_PERIPHERAL
1156  TYPE_LAPTOP = LeapPython.Device_TYPE_LAPTOP
1157  TYPE_KEYBOARD = LeapPython.Device_TYPE_KEYBOARD
1158 
1159  def __init__(self):
1160  this = LeapPython.new_Device()
1161  try:
1162  self.this.append(this)
1163  except:
1164  self.this = this
1165 
1166  def distance_to_boundary(self, position):
1167  return LeapPython.Device_distance_to_boundary(self, position)
1168 
1169  def __eq__(self, arg2):
1170  return LeapPython.Device___eq__(self, arg2)
1171 
1172  def __ne__(self, arg2):
1173  return LeapPython.Device___ne__(self, arg2)
1174 
1175  def __str__(self):
1176  return LeapPython.Device___str__(self)
1177  __swig_getmethods__["horizontal_view_angle"] = LeapPython.Device_horizontal_view_angle_get
1178  if _newclass:
1179  horizontal_view_angle = _swig_property(LeapPython.Device_horizontal_view_angle_get)
1180  __swig_getmethods__["vertical_view_angle"] = LeapPython.Device_vertical_view_angle_get
1181  if _newclass:
1182  vertical_view_angle = _swig_property(LeapPython.Device_vertical_view_angle_get)
1183  __swig_getmethods__["range"] = LeapPython.Device_range_get
1184  if _newclass:
1185  range = _swig_property(LeapPython.Device_range_get)
1186  __swig_getmethods__["baseline"] = LeapPython.Device_baseline_get
1187  if _newclass:
1188  baseline = _swig_property(LeapPython.Device_baseline_get)
1189  __swig_getmethods__["is_valid"] = LeapPython.Device_is_valid_get
1190  if _newclass:
1191  is_valid = _swig_property(LeapPython.Device_is_valid_get)
1192  __swig_getmethods__["is_embedded"] = LeapPython.Device_is_embedded_get
1193  if _newclass:
1194  is_embedded = _swig_property(LeapPython.Device_is_embedded_get)
1195  __swig_getmethods__["is_streaming"] = LeapPython.Device_is_streaming_get
1196  if _newclass:
1197  is_streaming = _swig_property(LeapPython.Device_is_streaming_get)
1198  __swig_getmethods__["is_flipped"] = LeapPython.Device_is_flipped_get
1199  if _newclass:
1200  is_flipped = _swig_property(LeapPython.Device_is_flipped_get)
1201  __swig_getmethods__["type"] = LeapPython.Device_type_get
1202  if _newclass:
1203  type = _swig_property(LeapPython.Device_type_get)
1204  __swig_getmethods__["serial_number"] = LeapPython.Device_serial_number_get
1205  if _newclass:
1206  serial_number = _swig_property(LeapPython.Device_serial_number_get)
1207  __swig_getmethods__["position"] = LeapPython.Device_position_get
1208  if _newclass:
1209  position = _swig_property(LeapPython.Device_position_get)
1210  __swig_getmethods__["orientation"] = LeapPython.Device_orientation_get
1211  if _newclass:
1212  orientation = _swig_property(LeapPython.Device_orientation_get)
1213  __swig_destroy__ = LeapPython.delete_Device
1214  __del__ = lambda self: None
1215 Device_swigregister = LeapPython.Device_swigregister
1216 Device_swigregister(Device)
1217 Device.invalid = LeapPython.cvar.Device_invalid
1218 
1219 class Image(Interface):
1220  __swig_setmethods__ = {}
1221  for _s in [Interface]:
1222  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1223  __setattr__ = lambda self, name, value: _swig_setattr(self, Image, name, value)
1224  __swig_getmethods__ = {}
1225  for _s in [Interface]:
1226  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1227  __getattr__ = lambda self, name: _swig_getattr(self, Image, name)
1228  __repr__ = _swig_repr
1229 
1230  def __init__(self):
1231  this = LeapPython.new_Image()
1232  try:
1233  self.this.append(this)
1234  except:
1235  self.this = this
1236 
1237  def data(self, dst):
1238  return LeapPython.Image_data(self, dst)
1239 
1240  def distortion(self, dst):
1241  return LeapPython.Image_distortion(self, dst)
1242  INFRARED = LeapPython.Image_INFRARED
1243 
1244  def rectify(self, uv):
1245  return LeapPython.Image_rectify(self, uv)
1246 
1247  def warp(self, xy):
1248  return LeapPython.Image_warp(self, xy)
1249 
1250  def __eq__(self, arg2):
1251  return LeapPython.Image___eq__(self, arg2)
1252 
1253  def __ne__(self, arg2):
1254  return LeapPython.Image___ne__(self, arg2)
1255 
1256  def __str__(self):
1257  return LeapPython.Image___str__(self)
1258  __swig_getmethods__["sequence_id"] = LeapPython.Image_sequence_id_get
1259  if _newclass:
1260  sequence_id = _swig_property(LeapPython.Image_sequence_id_get)
1261  __swig_getmethods__["id"] = LeapPython.Image_id_get
1262  if _newclass:
1263  id = _swig_property(LeapPython.Image_id_get)
1264  __swig_getmethods__["width"] = LeapPython.Image_width_get
1265  if _newclass:
1266  width = _swig_property(LeapPython.Image_width_get)
1267  __swig_getmethods__["height"] = LeapPython.Image_height_get
1268  if _newclass:
1269  height = _swig_property(LeapPython.Image_height_get)
1270  __swig_getmethods__["bytes_per_pixel"] = LeapPython.Image_bytes_per_pixel_get
1271  if _newclass:
1272  bytes_per_pixel = _swig_property(LeapPython.Image_bytes_per_pixel_get)
1273  __swig_getmethods__["format"] = LeapPython.Image_format_get
1274  if _newclass:
1275  format = _swig_property(LeapPython.Image_format_get)
1276  __swig_getmethods__["distortion_width"] = LeapPython.Image_distortion_width_get
1277  if _newclass:
1278  distortion_width = _swig_property(LeapPython.Image_distortion_width_get)
1279  __swig_getmethods__["distortion_height"] = LeapPython.Image_distortion_height_get
1280  if _newclass:
1281  distortion_height = _swig_property(LeapPython.Image_distortion_height_get)
1282  __swig_getmethods__["ray_offset_x"] = LeapPython.Image_ray_offset_x_get
1283  if _newclass:
1284  ray_offset_x = _swig_property(LeapPython.Image_ray_offset_x_get)
1285  __swig_getmethods__["ray_offset_y"] = LeapPython.Image_ray_offset_y_get
1286  if _newclass:
1287  ray_offset_y = _swig_property(LeapPython.Image_ray_offset_y_get)
1288  __swig_getmethods__["ray_scale_x"] = LeapPython.Image_ray_scale_x_get
1289  if _newclass:
1290  ray_scale_x = _swig_property(LeapPython.Image_ray_scale_x_get)
1291  __swig_getmethods__["ray_scale_y"] = LeapPython.Image_ray_scale_y_get
1292  if _newclass:
1293  ray_scale_y = _swig_property(LeapPython.Image_ray_scale_y_get)
1294  __swig_getmethods__["timestamp"] = LeapPython.Image_timestamp_get
1295  if _newclass:
1296  timestamp = _swig_property(LeapPython.Image_timestamp_get)
1297  __swig_getmethods__["is_valid"] = LeapPython.Image_is_valid_get
1298  if _newclass:
1299  is_valid = _swig_property(LeapPython.Image_is_valid_get)
1300  def data(self):
1301  ptr = byte_array(self.width * self.height * self.bytes_per_pixel)
1302  LeapPython.Image_data(self, ptr)
1303  return ptr
1304  def distortion(self):
1306  LeapPython.Image_distortion(self, ptr)
1307  return ptr
1308  __swig_getmethods__["data"] = data
1309  if _newclass:data = _swig_property(data)
1310  __swig_getmethods__["distortion"] = distortion
1311  if _newclass:distortion = _swig_property(distortion)
1312 
1313  __swig_getmethods__["data_pointer"] = LeapPython.Image_data_pointer_get
1314  if _newclass:
1315  data_pointer = _swig_property(LeapPython.Image_data_pointer_get)
1316  __swig_getmethods__["distortion_pointer"] = LeapPython.Image_distortion_pointer_get
1317  if _newclass:
1318  distortion_pointer = _swig_property(LeapPython.Image_distortion_pointer_get)
1319  __swig_destroy__ = LeapPython.delete_Image
1320  __del__ = lambda self: None
1321 Image_swigregister = LeapPython.Image_swigregister
1322 Image_swigregister(Image)
1323 Image.invalid = LeapPython.cvar.Image_invalid
1324 
1325 class Mask(Interface):
1326  __swig_setmethods__ = {}
1327  for _s in [Interface]:
1328  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1329  __setattr__ = lambda self, name, value: _swig_setattr(self, Mask, name, value)
1330  __swig_getmethods__ = {}
1331  for _s in [Interface]:
1332  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1333  __getattr__ = lambda self, name: _swig_getattr(self, Mask, name)
1334  __repr__ = _swig_repr
1335 
1336  def __init__(self):
1337  this = LeapPython.new_Mask()
1338  try:
1339  self.this.append(this)
1340  except:
1341  self.this = this
1342 
1343  def data(self, dst):
1344  return LeapPython.Mask_data(self, dst)
1345  __swig_getmethods__["invalid"] = lambda x: LeapPython.Mask_invalid
1346  if _newclass:
1347  invalid = staticmethod(LeapPython.Mask_invalid)
1348 
1349  def __eq__(self, arg2):
1350  return LeapPython.Mask___eq__(self, arg2)
1351 
1352  def __ne__(self, arg2):
1353  return LeapPython.Mask___ne__(self, arg2)
1354 
1355  def __str__(self):
1356  return LeapPython.Mask___str__(self)
1357  __swig_getmethods__["sequence_id"] = LeapPython.Mask_sequence_id_get
1358  if _newclass:
1359  sequence_id = _swig_property(LeapPython.Mask_sequence_id_get)
1360  __swig_getmethods__["id"] = LeapPython.Mask_id_get
1361  if _newclass:
1362  id = _swig_property(LeapPython.Mask_id_get)
1363  __swig_getmethods__["width"] = LeapPython.Mask_width_get
1364  if _newclass:
1365  width = _swig_property(LeapPython.Mask_width_get)
1366  __swig_getmethods__["height"] = LeapPython.Mask_height_get
1367  if _newclass:
1368  height = _swig_property(LeapPython.Mask_height_get)
1369  __swig_getmethods__["offset_x"] = LeapPython.Mask_offset_x_get
1370  if _newclass:
1371  offset_x = _swig_property(LeapPython.Mask_offset_x_get)
1372  __swig_getmethods__["offset_y"] = LeapPython.Mask_offset_y_get
1373  if _newclass:
1374  offset_y = _swig_property(LeapPython.Mask_offset_y_get)
1375  __swig_getmethods__["is_valid"] = LeapPython.Mask_is_valid_get
1376  if _newclass:
1377  is_valid = _swig_property(LeapPython.Mask_is_valid_get)
1378  def data(self):
1379  ptr = byte_array(self.width * self.height)
1380  LeapPython.Mask_data(self, ptr)
1381  return ptr
1382  __swig_getmethods__["data"] = data
1383  if _newclass:data = _swig_property(data)
1384 
1385  __swig_getmethods__["data_pointer"] = LeapPython.Mask_data_pointer_get
1386  if _newclass:
1387  data_pointer = _swig_property(LeapPython.Mask_data_pointer_get)
1388  __swig_destroy__ = LeapPython.delete_Mask
1389  __del__ = lambda self: None
1390 Mask_swigregister = LeapPython.Mask_swigregister
1391 Mask_swigregister(Mask)
1392 
1394  return LeapPython.Mask_invalid()
1395 Mask_invalid = LeapPython.Mask_invalid
1396 
1397 class PointableList(Interface):
1398  __swig_setmethods__ = {}
1399  for _s in [Interface]:
1400  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1401  __setattr__ = lambda self, name, value: _swig_setattr(self, PointableList, name, value)
1402  __swig_getmethods__ = {}
1403  for _s in [Interface]:
1404  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1405  __getattr__ = lambda self, name: _swig_getattr(self, PointableList, name)
1406  __repr__ = _swig_repr
1407 
1408  def __init__(self):
1409  this = LeapPython.new_PointableList()
1410  try:
1411  self.this.append(this)
1412  except:
1413  self.this = this
1414 
1415  def __len__(self):
1416  return LeapPython.PointableList___len__(self)
1417 
1418  def __getitem__(self, index):
1419  return LeapPython.PointableList___getitem__(self, index)
1420 
1421  def append(self, *args):
1422  return LeapPython.PointableList_append(self, *args)
1423 
1424  def extended(self):
1425  return LeapPython.PointableList_extended(self)
1426  __swig_getmethods__["is_empty"] = LeapPython.PointableList_is_empty_get
1427  if _newclass:
1428  is_empty = _swig_property(LeapPython.PointableList_is_empty_get)
1429  __swig_getmethods__["leftmost"] = LeapPython.PointableList_leftmost_get
1430  if _newclass:
1431  leftmost = _swig_property(LeapPython.PointableList_leftmost_get)
1432  __swig_getmethods__["rightmost"] = LeapPython.PointableList_rightmost_get
1433  if _newclass:
1434  rightmost = _swig_property(LeapPython.PointableList_rightmost_get)
1435  __swig_getmethods__["frontmost"] = LeapPython.PointableList_frontmost_get
1436  if _newclass:
1437  frontmost = _swig_property(LeapPython.PointableList_frontmost_get)
1438  def __iter__(self):
1439  _pos = 0
1440  while _pos < len(self):
1441  yield self[_pos]
1442  _pos += 1
1443 
1444  __swig_destroy__ = LeapPython.delete_PointableList
1445  __del__ = lambda self: None
1446 PointableList_swigregister = LeapPython.PointableList_swigregister
1447 PointableList_swigregister(PointableList)
1448 
1449 class FingerList(Interface):
1450  __swig_setmethods__ = {}
1451  for _s in [Interface]:
1452  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1453  __setattr__ = lambda self, name, value: _swig_setattr(self, FingerList, name, value)
1454  __swig_getmethods__ = {}
1455  for _s in [Interface]:
1456  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1457  __getattr__ = lambda self, name: _swig_getattr(self, FingerList, name)
1458  __repr__ = _swig_repr
1459 
1460  def __init__(self):
1461  this = LeapPython.new_FingerList()
1462  try:
1463  self.this.append(this)
1464  except:
1465  self.this = this
1466 
1467  def __len__(self):
1468  return LeapPython.FingerList___len__(self)
1469 
1470  def __getitem__(self, index):
1471  return LeapPython.FingerList___getitem__(self, index)
1472 
1473  def append(self, other):
1474  return LeapPython.FingerList_append(self, other)
1475 
1476  def extended(self):
1477  return LeapPython.FingerList_extended(self)
1478 
1479  def finger_type(self, type):
1480  return LeapPython.FingerList_finger_type(self, type)
1481  __swig_getmethods__["is_empty"] = LeapPython.FingerList_is_empty_get
1482  if _newclass:
1483  is_empty = _swig_property(LeapPython.FingerList_is_empty_get)
1484  __swig_getmethods__["leftmost"] = LeapPython.FingerList_leftmost_get
1485  if _newclass:
1486  leftmost = _swig_property(LeapPython.FingerList_leftmost_get)
1487  __swig_getmethods__["rightmost"] = LeapPython.FingerList_rightmost_get
1488  if _newclass:
1489  rightmost = _swig_property(LeapPython.FingerList_rightmost_get)
1490  __swig_getmethods__["frontmost"] = LeapPython.FingerList_frontmost_get
1491  if _newclass:
1492  frontmost = _swig_property(LeapPython.FingerList_frontmost_get)
1493  def __iter__(self):
1494  _pos = 0
1495  while _pos < len(self):
1496  yield self[_pos]
1497  _pos += 1
1498 
1499  __swig_destroy__ = LeapPython.delete_FingerList
1500  __del__ = lambda self: None
1501 FingerList_swigregister = LeapPython.FingerList_swigregister
1502 FingerList_swigregister(FingerList)
1503 
1504 class ToolList(Interface):
1505  __swig_setmethods__ = {}
1506  for _s in [Interface]:
1507  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1508  __setattr__ = lambda self, name, value: _swig_setattr(self, ToolList, name, value)
1509  __swig_getmethods__ = {}
1510  for _s in [Interface]:
1511  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1512  __getattr__ = lambda self, name: _swig_getattr(self, ToolList, name)
1513  __repr__ = _swig_repr
1514 
1515  def __init__(self):
1516  this = LeapPython.new_ToolList()
1517  try:
1518  self.this.append(this)
1519  except:
1520  self.this = this
1521 
1522  def __len__(self):
1523  return LeapPython.ToolList___len__(self)
1524 
1525  def __getitem__(self, index):
1526  return LeapPython.ToolList___getitem__(self, index)
1527 
1528  def append(self, other):
1529  return LeapPython.ToolList_append(self, other)
1530  __swig_getmethods__["is_empty"] = LeapPython.ToolList_is_empty_get
1531  if _newclass:
1532  is_empty = _swig_property(LeapPython.ToolList_is_empty_get)
1533  __swig_getmethods__["leftmost"] = LeapPython.ToolList_leftmost_get
1534  if _newclass:
1535  leftmost = _swig_property(LeapPython.ToolList_leftmost_get)
1536  __swig_getmethods__["rightmost"] = LeapPython.ToolList_rightmost_get
1537  if _newclass:
1538  rightmost = _swig_property(LeapPython.ToolList_rightmost_get)
1539  __swig_getmethods__["frontmost"] = LeapPython.ToolList_frontmost_get
1540  if _newclass:
1541  frontmost = _swig_property(LeapPython.ToolList_frontmost_get)
1542  def __iter__(self):
1543  _pos = 0
1544  while _pos < len(self):
1545  yield self[_pos]
1546  _pos += 1
1547 
1548  __swig_destroy__ = LeapPython.delete_ToolList
1549  __del__ = lambda self: None
1550 ToolList_swigregister = LeapPython.ToolList_swigregister
1551 ToolList_swigregister(ToolList)
1552 
1553 class HandList(Interface):
1554  __swig_setmethods__ = {}
1555  for _s in [Interface]:
1556  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1557  __setattr__ = lambda self, name, value: _swig_setattr(self, HandList, name, value)
1558  __swig_getmethods__ = {}
1559  for _s in [Interface]:
1560  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1561  __getattr__ = lambda self, name: _swig_getattr(self, HandList, name)
1562  __repr__ = _swig_repr
1563 
1564  def __init__(self):
1565  this = LeapPython.new_HandList()
1566  try:
1567  self.this.append(this)
1568  except:
1569  self.this = this
1570 
1571  def __len__(self):
1572  return LeapPython.HandList___len__(self)
1573 
1574  def __getitem__(self, index):
1575  return LeapPython.HandList___getitem__(self, index)
1576 
1577  def append(self, other):
1578  return LeapPython.HandList_append(self, other)
1579  __swig_getmethods__["is_empty"] = LeapPython.HandList_is_empty_get
1580  if _newclass:
1581  is_empty = _swig_property(LeapPython.HandList_is_empty_get)
1582  __swig_getmethods__["leftmost"] = LeapPython.HandList_leftmost_get
1583  if _newclass:
1584  leftmost = _swig_property(LeapPython.HandList_leftmost_get)
1585  __swig_getmethods__["rightmost"] = LeapPython.HandList_rightmost_get
1586  if _newclass:
1587  rightmost = _swig_property(LeapPython.HandList_rightmost_get)
1588  __swig_getmethods__["frontmost"] = LeapPython.HandList_frontmost_get
1589  if _newclass:
1590  frontmost = _swig_property(LeapPython.HandList_frontmost_get)
1591  def __iter__(self):
1592  _pos = 0
1593  while _pos < len(self):
1594  yield self[_pos]
1595  _pos += 1
1596 
1597  __swig_destroy__ = LeapPython.delete_HandList
1598  __del__ = lambda self: None
1599 HandList_swigregister = LeapPython.HandList_swigregister
1600 HandList_swigregister(HandList)
1601 
1602 class GestureList(Interface):
1603  __swig_setmethods__ = {}
1604  for _s in [Interface]:
1605  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1606  __setattr__ = lambda self, name, value: _swig_setattr(self, GestureList, name, value)
1607  __swig_getmethods__ = {}
1608  for _s in [Interface]:
1609  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1610  __getattr__ = lambda self, name: _swig_getattr(self, GestureList, name)
1611  __repr__ = _swig_repr
1612 
1613  def __init__(self):
1614  this = LeapPython.new_GestureList()
1615  try:
1616  self.this.append(this)
1617  except:
1618  self.this = this
1619 
1620  def __len__(self):
1621  return LeapPython.GestureList___len__(self)
1622 
1623  def __getitem__(self, index):
1624  return LeapPython.GestureList___getitem__(self, index)
1625 
1626  def append(self, other):
1627  return LeapPython.GestureList_append(self, other)
1628  __swig_getmethods__["is_empty"] = LeapPython.GestureList_is_empty_get
1629  if _newclass:
1630  is_empty = _swig_property(LeapPython.GestureList_is_empty_get)
1631  def __iter__(self):
1632  _pos = 0
1633  while _pos < len(self):
1634  yield self[_pos]
1635  _pos += 1
1636 
1637  __swig_destroy__ = LeapPython.delete_GestureList
1638  __del__ = lambda self: None
1639 GestureList_swigregister = LeapPython.GestureList_swigregister
1640 GestureList_swigregister(GestureList)
1641 
1642 class ScreenList(Interface):
1643  __swig_setmethods__ = {}
1644  for _s in [Interface]:
1645  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1646  __setattr__ = lambda self, name, value: _swig_setattr(self, ScreenList, name, value)
1647  __swig_getmethods__ = {}
1648  for _s in [Interface]:
1649  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1650  __getattr__ = lambda self, name: _swig_getattr(self, ScreenList, name)
1651  __repr__ = _swig_repr
1652 
1653  def __init__(self):
1654  this = LeapPython.new_ScreenList()
1655  try:
1656  self.this.append(this)
1657  except:
1658  self.this = this
1659 
1660  def __len__(self):
1661  return LeapPython.ScreenList___len__(self)
1662 
1663  def __getitem__(self, index):
1664  return LeapPython.ScreenList___getitem__(self, index)
1665 
1666  def closest_screen_hit(self, *args):
1667  return LeapPython.ScreenList_closest_screen_hit(self, *args)
1668 
1669  def closest_screen(self, position):
1670  return LeapPython.ScreenList_closest_screen(self, position)
1671  __swig_getmethods__["is_empty"] = LeapPython.ScreenList_is_empty_get
1672  if _newclass:
1673  is_empty = _swig_property(LeapPython.ScreenList_is_empty_get)
1674  def __iter__(self):
1675  _pos = 0
1676  while _pos < len(self):
1677  yield self[_pos]
1678  _pos += 1
1679 
1680  __swig_destroy__ = LeapPython.delete_ScreenList
1681  __del__ = lambda self: None
1682 ScreenList_swigregister = LeapPython.ScreenList_swigregister
1683 ScreenList_swigregister(ScreenList)
1684 
1685 class DeviceList(Interface):
1686  __swig_setmethods__ = {}
1687  for _s in [Interface]:
1688  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1689  __setattr__ = lambda self, name, value: _swig_setattr(self, DeviceList, name, value)
1690  __swig_getmethods__ = {}
1691  for _s in [Interface]:
1692  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1693  __getattr__ = lambda self, name: _swig_getattr(self, DeviceList, name)
1694  __repr__ = _swig_repr
1695 
1696  def __init__(self):
1697  this = LeapPython.new_DeviceList()
1698  try:
1699  self.this.append(this)
1700  except:
1701  self.this = this
1702 
1703  def __len__(self):
1704  return LeapPython.DeviceList___len__(self)
1705 
1706  def __getitem__(self, index):
1707  return LeapPython.DeviceList___getitem__(self, index)
1708 
1709  def append(self, other):
1710  return LeapPython.DeviceList_append(self, other)
1711  __swig_getmethods__["is_empty"] = LeapPython.DeviceList_is_empty_get
1712  if _newclass:
1713  is_empty = _swig_property(LeapPython.DeviceList_is_empty_get)
1714  def __iter__(self):
1715  _pos = 0
1716  while _pos < len(self):
1717  yield self[_pos]
1718  _pos += 1
1719 
1720  __swig_destroy__ = LeapPython.delete_DeviceList
1721  __del__ = lambda self: None
1722 DeviceList_swigregister = LeapPython.DeviceList_swigregister
1723 DeviceList_swigregister(DeviceList)
1724 
1725 class ImageList(Interface):
1726  __swig_setmethods__ = {}
1727  for _s in [Interface]:
1728  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1729  __setattr__ = lambda self, name, value: _swig_setattr(self, ImageList, name, value)
1730  __swig_getmethods__ = {}
1731  for _s in [Interface]:
1732  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1733  __getattr__ = lambda self, name: _swig_getattr(self, ImageList, name)
1734  __repr__ = _swig_repr
1735 
1736  def __init__(self):
1737  this = LeapPython.new_ImageList()
1738  try:
1739  self.this.append(this)
1740  except:
1741  self.this = this
1742 
1743  def __len__(self):
1744  return LeapPython.ImageList___len__(self)
1745 
1746  def __getitem__(self, index):
1747  return LeapPython.ImageList___getitem__(self, index)
1748 
1749  def append(self, other):
1750  return LeapPython.ImageList_append(self, other)
1751  __swig_getmethods__["is_empty"] = LeapPython.ImageList_is_empty_get
1752  if _newclass:
1753  is_empty = _swig_property(LeapPython.ImageList_is_empty_get)
1754  def __iter__(self):
1755  _pos = 0
1756  while _pos < len(self):
1757  yield self[_pos]
1758  _pos += 1
1759 
1760  __swig_destroy__ = LeapPython.delete_ImageList
1761  __del__ = lambda self: None
1762 ImageList_swigregister = LeapPython.ImageList_swigregister
1763 ImageList_swigregister(ImageList)
1764 
1765 class TrackedQuad(Interface):
1766  __swig_setmethods__ = {}
1767  for _s in [Interface]:
1768  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1769  __setattr__ = lambda self, name, value: _swig_setattr(self, TrackedQuad, name, value)
1770  __swig_getmethods__ = {}
1771  for _s in [Interface]:
1772  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1773  __getattr__ = lambda self, name: _swig_getattr(self, TrackedQuad, name)
1774  __repr__ = _swig_repr
1775 
1776  def __init__(self):
1777  this = LeapPython.new_TrackedQuad()
1778  try:
1779  self.this.append(this)
1780  except:
1781  self.this = this
1782 
1783  def __eq__(self, arg2):
1784  return LeapPython.TrackedQuad___eq__(self, arg2)
1785 
1786  def __ne__(self, arg2):
1787  return LeapPython.TrackedQuad___ne__(self, arg2)
1788 
1789  def __str__(self):
1790  return LeapPython.TrackedQuad___str__(self)
1791  __swig_getmethods__["width"] = LeapPython.TrackedQuad_width_get
1792  if _newclass:
1793  width = _swig_property(LeapPython.TrackedQuad_width_get)
1794  __swig_getmethods__["height"] = LeapPython.TrackedQuad_height_get
1795  if _newclass:
1796  height = _swig_property(LeapPython.TrackedQuad_height_get)
1797  __swig_getmethods__["resolution_x"] = LeapPython.TrackedQuad_resolution_x_get
1798  if _newclass:
1799  resolution_x = _swig_property(LeapPython.TrackedQuad_resolution_x_get)
1800  __swig_getmethods__["resolution_y"] = LeapPython.TrackedQuad_resolution_y_get
1801  if _newclass:
1802  resolution_y = _swig_property(LeapPython.TrackedQuad_resolution_y_get)
1803  __swig_getmethods__["visible"] = LeapPython.TrackedQuad_visible_get
1804  if _newclass:
1805  visible = _swig_property(LeapPython.TrackedQuad_visible_get)
1806  __swig_getmethods__["orientation"] = LeapPython.TrackedQuad_orientation_get
1807  if _newclass:
1808  orientation = _swig_property(LeapPython.TrackedQuad_orientation_get)
1809  __swig_getmethods__["position"] = LeapPython.TrackedQuad_position_get
1810  if _newclass:
1811  position = _swig_property(LeapPython.TrackedQuad_position_get)
1812  __swig_getmethods__["masks"] = LeapPython.TrackedQuad_masks_get
1813  if _newclass:
1814  masks = _swig_property(LeapPython.TrackedQuad_masks_get)
1815  __swig_getmethods__["images"] = LeapPython.TrackedQuad_images_get
1816  if _newclass:
1817  images = _swig_property(LeapPython.TrackedQuad_images_get)
1818  __swig_getmethods__["is_valid"] = LeapPython.TrackedQuad_is_valid_get
1819  if _newclass:
1820  is_valid = _swig_property(LeapPython.TrackedQuad_is_valid_get)
1821  __swig_destroy__ = LeapPython.delete_TrackedQuad
1822  __del__ = lambda self: None
1823 TrackedQuad_swigregister = LeapPython.TrackedQuad_swigregister
1824 TrackedQuad_swigregister(TrackedQuad)
1825 TrackedQuad.invalid = LeapPython.cvar.TrackedQuad_invalid
1826 
1827 class MaskList(Interface):
1828  __swig_setmethods__ = {}
1829  for _s in [Interface]:
1830  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1831  __setattr__ = lambda self, name, value: _swig_setattr(self, MaskList, name, value)
1832  __swig_getmethods__ = {}
1833  for _s in [Interface]:
1834  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1835  __getattr__ = lambda self, name: _swig_getattr(self, MaskList, name)
1836  __repr__ = _swig_repr
1837 
1838  def __init__(self):
1839  this = LeapPython.new_MaskList()
1840  try:
1841  self.this.append(this)
1842  except:
1843  self.this = this
1844 
1845  def __len__(self):
1846  return LeapPython.MaskList___len__(self)
1847 
1848  def __getitem__(self, index):
1849  return LeapPython.MaskList___getitem__(self, index)
1850 
1851  def append(self, other):
1852  return LeapPython.MaskList_append(self, other)
1853  __swig_getmethods__["is_empty"] = LeapPython.MaskList_is_empty_get
1854  if _newclass:
1855  is_empty = _swig_property(LeapPython.MaskList_is_empty_get)
1856  def __iter__(self):
1857  _pos = 0
1858  while _pos < len(self):
1859  yield self[_pos]
1860  _pos += 1
1861 
1862  __swig_destroy__ = LeapPython.delete_MaskList
1863  __del__ = lambda self: None
1864 MaskList_swigregister = LeapPython.MaskList_swigregister
1865 MaskList_swigregister(MaskList)
1866 
1867 class InteractionBox(Interface):
1868  __swig_setmethods__ = {}
1869  for _s in [Interface]:
1870  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1871  __setattr__ = lambda self, name, value: _swig_setattr(self, InteractionBox, name, value)
1872  __swig_getmethods__ = {}
1873  for _s in [Interface]:
1874  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1875  __getattr__ = lambda self, name: _swig_getattr(self, InteractionBox, name)
1876  __repr__ = _swig_repr
1877 
1878  def __init__(self):
1879  this = LeapPython.new_InteractionBox()
1880  try:
1881  self.this.append(this)
1882  except:
1883  self.this = this
1884 
1885  def normalize_point(self, position, clamp=True):
1886  return LeapPython.InteractionBox_normalize_point(self, position, clamp)
1887 
1888  def denormalize_point(self, normalizedPosition):
1889  return LeapPython.InteractionBox_denormalize_point(self, normalizedPosition)
1890 
1891  def __eq__(self, arg2):
1892  return LeapPython.InteractionBox___eq__(self, arg2)
1893 
1894  def __ne__(self, arg2):
1895  return LeapPython.InteractionBox___ne__(self, arg2)
1896 
1897  def __str__(self):
1898  return LeapPython.InteractionBox___str__(self)
1899  __swig_getmethods__["center"] = LeapPython.InteractionBox_center_get
1900  if _newclass:
1901  center = _swig_property(LeapPython.InteractionBox_center_get)
1902  __swig_getmethods__["width"] = LeapPython.InteractionBox_width_get
1903  if _newclass:
1904  width = _swig_property(LeapPython.InteractionBox_width_get)
1905  __swig_getmethods__["height"] = LeapPython.InteractionBox_height_get
1906  if _newclass:
1907  height = _swig_property(LeapPython.InteractionBox_height_get)
1908  __swig_getmethods__["depth"] = LeapPython.InteractionBox_depth_get
1909  if _newclass:
1910  depth = _swig_property(LeapPython.InteractionBox_depth_get)
1911  __swig_getmethods__["is_valid"] = LeapPython.InteractionBox_is_valid_get
1912  if _newclass:
1913  is_valid = _swig_property(LeapPython.InteractionBox_is_valid_get)
1914  __swig_destroy__ = LeapPython.delete_InteractionBox
1915  __del__ = lambda self: None
1916 InteractionBox_swigregister = LeapPython.InteractionBox_swigregister
1917 InteractionBox_swigregister(InteractionBox)
1918 InteractionBox.invalid = LeapPython.cvar.InteractionBox_invalid
1919 
1920 class Frame(Interface):
1921  __swig_setmethods__ = {}
1922  for _s in [Interface]:
1923  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
1924  __setattr__ = lambda self, name, value: _swig_setattr(self, Frame, name, value)
1925  __swig_getmethods__ = {}
1926  for _s in [Interface]:
1927  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
1928  __getattr__ = lambda self, name: _swig_getattr(self, Frame, name)
1929  __repr__ = _swig_repr
1930 
1931  def __init__(self):
1932  this = LeapPython.new_Frame()
1933  try:
1934  self.this.append(this)
1935  except:
1936  self.this = this
1937 
1938  def hand(self, id):
1939  return LeapPython.Frame_hand(self, id)
1940 
1941  def pointable(self, id):
1942  return LeapPython.Frame_pointable(self, id)
1943 
1944  def finger(self, id):
1945  return LeapPython.Frame_finger(self, id)
1946 
1947  def tool(self, id):
1948  return LeapPython.Frame_tool(self, id)
1949 
1950  def gesture(self, id):
1951  return LeapPython.Frame_gesture(self, id)
1952 
1953  def gestures(self, *args):
1954  return LeapPython.Frame_gestures(self, *args)
1955 
1956  def translation(self, sinceFrame):
1957  return LeapPython.Frame_translation(self, sinceFrame)
1958 
1959  def translation_probability(self, sinceFrame):
1960  return LeapPython.Frame_translation_probability(self, sinceFrame)
1961 
1962  def rotation_axis(self, sinceFrame):
1963  return LeapPython.Frame_rotation_axis(self, sinceFrame)
1964 
1965  def rotation_angle(self, *args):
1966  return LeapPython.Frame_rotation_angle(self, *args)
1967 
1968  def rotation_matrix(self, sinceFrame):
1969  return LeapPython.Frame_rotation_matrix(self, sinceFrame)
1970 
1971  def rotation_probability(self, sinceFrame):
1972  return LeapPython.Frame_rotation_probability(self, sinceFrame)
1973 
1974  def scale_factor(self, sinceFrame):
1975  return LeapPython.Frame_scale_factor(self, sinceFrame)
1976 
1977  def scale_probability(self, sinceFrame):
1978  return LeapPython.Frame_scale_probability(self, sinceFrame)
1979 
1980  def __eq__(self, arg2):
1981  return LeapPython.Frame___eq__(self, arg2)
1982 
1983  def __ne__(self, arg2):
1984  return LeapPython.Frame___ne__(self, arg2)
1985 
1986  def serialize(self, ptr):
1987  return LeapPython.Frame_serialize(self, ptr)
1988 
1989  def deserialize(self, ptr, length):
1990  return LeapPython.Frame_deserialize(self, ptr, length)
1991 
1992  def __str__(self):
1993  return LeapPython.Frame___str__(self)
1994  __swig_getmethods__["id"] = LeapPython.Frame_id_get
1995  if _newclass:
1996  id = _swig_property(LeapPython.Frame_id_get)
1997  __swig_getmethods__["timestamp"] = LeapPython.Frame_timestamp_get
1998  if _newclass:
1999  timestamp = _swig_property(LeapPython.Frame_timestamp_get)
2000  __swig_getmethods__["current_frames_per_second"] = LeapPython.Frame_current_frames_per_second_get
2001  if _newclass:
2002  current_frames_per_second = _swig_property(LeapPython.Frame_current_frames_per_second_get)
2003  __swig_getmethods__["pointables"] = LeapPython.Frame_pointables_get
2004  if _newclass:
2005  pointables = _swig_property(LeapPython.Frame_pointables_get)
2006  __swig_getmethods__["fingers"] = LeapPython.Frame_fingers_get
2007  if _newclass:
2008  fingers = _swig_property(LeapPython.Frame_fingers_get)
2009  __swig_getmethods__["tools"] = LeapPython.Frame_tools_get
2010  if _newclass:
2011  tools = _swig_property(LeapPython.Frame_tools_get)
2012  __swig_getmethods__["hands"] = LeapPython.Frame_hands_get
2013  if _newclass:
2014  hands = _swig_property(LeapPython.Frame_hands_get)
2015  __swig_getmethods__["images"] = LeapPython.Frame_images_get
2016  if _newclass:
2017  images = _swig_property(LeapPython.Frame_images_get)
2018  __swig_getmethods__["is_valid"] = LeapPython.Frame_is_valid_get
2019  if _newclass:
2020  is_valid = _swig_property(LeapPython.Frame_is_valid_get)
2021  __swig_getmethods__["interaction_box"] = LeapPython.Frame_interaction_box_get
2022  if _newclass:
2023  interaction_box = _swig_property(LeapPython.Frame_interaction_box_get)
2024  __swig_getmethods__["serialize_length"] = LeapPython.Frame_serialize_length_get
2025  if _newclass:
2026  serialize_length = _swig_property(LeapPython.Frame_serialize_length_get)
2027  __swig_getmethods__["tracked_quad"] = LeapPython.Frame_tracked_quad_get
2028  if _newclass:
2029  tracked_quad = _swig_property(LeapPython.Frame_tracked_quad_get)
2030  def serialize(self):
2031  length = self.serialize_length
2032  str = byte_array(length)
2033  LeapPython.Frame_serialize(self, str)
2034  return (str, length)
2035  def deserialize(self, tup):
2036  LeapPython.Frame_deserialize(self, tup[0], tup[1])
2037  __swig_getmethods__["serialize"] = serialize
2038  if _newclass:serialize = _swig_property(serialize)
2039 
2040  __swig_destroy__ = LeapPython.delete_Frame
2041  __del__ = lambda self: None
2042 Frame_swigregister = LeapPython.Frame_swigregister
2043 Frame_swigregister(Frame)
2044 Frame.invalid = LeapPython.cvar.Frame_invalid
2045 
2046 class BugReport(Interface):
2047  __swig_setmethods__ = {}
2048  for _s in [Interface]:
2049  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
2050  __setattr__ = lambda self, name, value: _swig_setattr(self, BugReport, name, value)
2051  __swig_getmethods__ = {}
2052  for _s in [Interface]:
2053  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
2054  __getattr__ = lambda self, name: _swig_getattr(self, BugReport, name)
2055  __repr__ = _swig_repr
2056 
2057  def __init__(self):
2058  this = LeapPython.new_BugReport()
2059  try:
2060  self.this.append(this)
2061  except:
2062  self.this = this
2063 
2064  def begin_recording(self):
2065  return LeapPython.BugReport_begin_recording(self)
2066 
2067  def end_recording(self):
2068  return LeapPython.BugReport_end_recording(self)
2069  __swig_getmethods__["is_active"] = LeapPython.BugReport_is_active_get
2070  if _newclass:
2071  is_active = _swig_property(LeapPython.BugReport_is_active_get)
2072  __swig_getmethods__["progress"] = LeapPython.BugReport_progress_get
2073  if _newclass:
2074  progress = _swig_property(LeapPython.BugReport_progress_get)
2075  __swig_getmethods__["duration"] = LeapPython.BugReport_duration_get
2076  if _newclass:
2077  duration = _swig_property(LeapPython.BugReport_duration_get)
2078  __swig_destroy__ = LeapPython.delete_BugReport
2079  __del__ = lambda self: None
2080 BugReport_swigregister = LeapPython.BugReport_swigregister
2081 BugReport_swigregister(BugReport)
2082 
2083 class Config(Interface):
2084  __swig_setmethods__ = {}
2085  for _s in [Interface]:
2086  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
2087  __setattr__ = lambda self, name, value: _swig_setattr(self, Config, name, value)
2088  __swig_getmethods__ = {}
2089  for _s in [Interface]:
2090  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
2091  __getattr__ = lambda self, name: _swig_getattr(self, Config, name)
2092  __repr__ = _swig_repr
2093 
2094  def __init__(self):
2095  this = LeapPython.new_Config()
2096  try:
2097  self.this.append(this)
2098  except:
2099  self.this = this
2100  TYPE_UNKNOWN = LeapPython.Config_TYPE_UNKNOWN
2101  TYPE_BOOLEAN = LeapPython.Config_TYPE_BOOLEAN
2102  TYPE_INT32 = LeapPython.Config_TYPE_INT32
2103  TYPE_FLOAT = LeapPython.Config_TYPE_FLOAT
2104  TYPE_STRING = LeapPython.Config_TYPE_STRING
2105 
2106 
2107 
2108 
2109 
2110 
2111 
2112 
2113 
2114 
2115  def save(self):
2116  return LeapPython.Config_save(self)
2117  def get(self, *args):
2118  type = LeapPython.Config_type(self, *args)
2119  if type == LeapPython.Config_TYPE_BOOLEAN:
2120  return LeapPython.Config_get_bool(self, *args)
2121  elif type == LeapPython.Config_TYPE_INT32:
2122  return LeapPython.Config_get_int_32(self, *args)
2123  elif type == LeapPython.Config_TYPE_FLOAT:
2124  return LeapPython.Config_get_float(self, *args)
2125  elif type == LeapPython.Config_TYPE_STRING:
2126  return LeapPython.Config_get_string(self, *args)
2127  return None
2128  def set(self, *args):
2129  type = LeapPython.Config_type(self, *args[:-1]) # Do not pass value through
2130  if type == LeapPython.Config_TYPE_BOOLEAN:
2131  return LeapPython.Config_set_bool(self, *args)
2132  elif type == LeapPython.Config_TYPE_INT32:
2133  return LeapPython.Config_set_int_32(self, *args)
2134  elif type == LeapPython.Config_TYPE_FLOAT:
2135  return LeapPython.Config_set_float(self, *args)
2136  elif type == LeapPython.Config_TYPE_STRING:
2137  return LeapPython.Config_set_string(self, *args)
2138  return False
2139 
2140  __swig_destroy__ = LeapPython.delete_Config
2141  __del__ = lambda self: None
2142 Config_swigregister = LeapPython.Config_swigregister
2143 Config_swigregister(Config)
2144 
2145 class Controller(Interface):
2146  __swig_setmethods__ = {}
2147  for _s in [Interface]:
2148  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
2149  __setattr__ = lambda self, name, value: _swig_setattr(self, Controller, name, value)
2150  __swig_getmethods__ = {}
2151  for _s in [Interface]:
2152  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
2153  __getattr__ = lambda self, name: _swig_getattr(self, Controller, name)
2154  __repr__ = _swig_repr
2155  __swig_destroy__ = LeapPython.delete_Controller
2156  __del__ = lambda self: None
2157 
2158  def __init__(self, *args):
2159  this = LeapPython.new_Controller(*args)
2160  try:
2161  self.this.append(this)
2162  except:
2163  self.this = this
2164 
2166  return LeapPython.Controller_is_service_connected(self)
2167  POLICY_DEFAULT = LeapPython.Controller_POLICY_DEFAULT
2168  POLICY_BACKGROUND_FRAMES = LeapPython.Controller_POLICY_BACKGROUND_FRAMES
2169  POLICY_IMAGES = LeapPython.Controller_POLICY_IMAGES
2170  POLICY_OPTIMIZE_HMD = LeapPython.Controller_POLICY_OPTIMIZE_HMD
2171 
2172  def set_policy_flags(self, flags):
2173  return LeapPython.Controller_set_policy_flags(self, flags)
2174 
2175  def set_policy(self, policy):
2176  return LeapPython.Controller_set_policy(self, policy)
2177 
2178  def clear_policy(self, policy):
2179  return LeapPython.Controller_clear_policy(self, policy)
2180 
2181  def is_policy_set(self, policy):
2182  return LeapPython.Controller_is_policy_set(self, policy)
2183 
2184  def add_listener(self, listener):
2185  return LeapPython.Controller_add_listener(self, listener)
2186 
2187  def remove_listener(self, listener):
2188  return LeapPython.Controller_remove_listener(self, listener)
2189 
2190  def frame(self, history=0):
2191  return LeapPython.Controller_frame(self, history)
2192 
2193  def enable_gesture(self, type, enable=True):
2194  return LeapPython.Controller_enable_gesture(self, type, enable)
2195 
2196  def is_gesture_enabled(self, type):
2197  return LeapPython.Controller_is_gesture_enabled(self, type)
2198 
2199  def now(self):
2200  return LeapPython.Controller_now(self)
2201  __swig_getmethods__["is_connected"] = LeapPython.Controller_is_connected_get
2202  if _newclass:
2203  is_connected = _swig_property(LeapPython.Controller_is_connected_get)
2204  __swig_getmethods__["has_focus"] = LeapPython.Controller_has_focus_get
2205  if _newclass:
2206  has_focus = _swig_property(LeapPython.Controller_has_focus_get)
2207  __swig_getmethods__["policy_flags"] = LeapPython.Controller_policy_flags_get
2208  if _newclass:
2209  policy_flags = _swig_property(LeapPython.Controller_policy_flags_get)
2210  __swig_getmethods__["config"] = LeapPython.Controller_config_get
2211  if _newclass:
2212  config = _swig_property(LeapPython.Controller_config_get)
2213  __swig_getmethods__["images"] = LeapPython.Controller_images_get
2214  if _newclass:
2215  images = _swig_property(LeapPython.Controller_images_get)
2216  __swig_getmethods__["located_screens"] = LeapPython.Controller_located_screens_get
2217  if _newclass:
2218  located_screens = _swig_property(LeapPython.Controller_located_screens_get)
2219  __swig_getmethods__["devices"] = LeapPython.Controller_devices_get
2220  if _newclass:
2221  devices = _swig_property(LeapPython.Controller_devices_get)
2222  __swig_getmethods__["tracked_quad"] = LeapPython.Controller_tracked_quad_get
2223  if _newclass:
2224  tracked_quad = _swig_property(LeapPython.Controller_tracked_quad_get)
2225  __swig_getmethods__["bug_report"] = LeapPython.Controller_bug_report_get
2226  if _newclass:
2227  bug_report = _swig_property(LeapPython.Controller_bug_report_get)
2228 Controller_swigregister = LeapPython.Controller_swigregister
2229 Controller_swigregister(Controller)
2230 
2231 class Listener(_object):
2232  __swig_setmethods__ = {}
2233  __setattr__ = lambda self, name, value: _swig_setattr(self, Listener, name, value)
2234  __swig_getmethods__ = {}
2235  __getattr__ = lambda self, name: _swig_getattr(self, Listener, name)
2236  __repr__ = _swig_repr
2237 
2238  def __init__(self):
2239  if self.__class__ == Listener:
2240  _self = None
2241  else:
2242  _self = self
2243  this = LeapPython.new_Listener(_self, )
2244  try:
2245  self.this.append(this)
2246  except:
2247  self.this = this
2248  __swig_destroy__ = LeapPython.delete_Listener
2249  __del__ = lambda self: None
2250 
2251  def on_init(self, arg0):
2252  return LeapPython.Listener_on_init(self, arg0)
2253 
2254  def on_connect(self, arg0):
2255  return LeapPython.Listener_on_connect(self, arg0)
2256 
2257  def on_disconnect(self, arg0):
2258  return LeapPython.Listener_on_disconnect(self, arg0)
2259 
2260  def on_exit(self, arg0):
2261  return LeapPython.Listener_on_exit(self, arg0)
2262 
2263  def on_frame(self, arg0):
2264  return LeapPython.Listener_on_frame(self, arg0)
2265 
2266  def on_focus_gained(self, arg0):
2267  return LeapPython.Listener_on_focus_gained(self, arg0)
2268 
2269  def on_focus_lost(self, arg0):
2270  return LeapPython.Listener_on_focus_lost(self, arg0)
2271 
2272  def on_service_connect(self, arg0):
2273  return LeapPython.Listener_on_service_connect(self, arg0)
2274 
2275  def on_service_disconnect(self, arg0):
2276  return LeapPython.Listener_on_service_disconnect(self, arg0)
2277 
2278  def on_device_change(self, arg0):
2279  return LeapPython.Listener_on_device_change(self, arg0)
2280 
2281  def on_images(self, arg0):
2282  return LeapPython.Listener_on_images(self, arg0)
2283  def __disown__(self):
2284  self.this.disown()
2285  LeapPython.disown_Listener(self)
2286  return weakref_proxy(self)
2287 Listener_swigregister = LeapPython.Listener_swigregister
2288 Listener_swigregister(Listener)
2289 
2290 # This file is compatible with both classic and new-style classes.
2291 
2292 
def __iter__(self)
Definition: Leap.py:1438
serialize_length
Definition: Leap.py:2026
def __str__(self)
Definition: Leap.py:1256
def scale_probability(self, sinceFrame)
Definition: Leap.py:1977
def __init__(self)
Definition: Leap.py:1776
Mask_swigregister
Definition: Leap.py:1390
def __init__(self)
Definition: Leap.py:453
def set_policy(self, policy)
Definition: Leap.py:2175
_swig_property
Definition: Leap.py:34
LEAP_EXPORT PointableList & append(const PointableList &other)
def _swig_repr(self)
Definition: Leap.py:74
def distance_to(self, other)
Definition: Leap.py:243
PointableList_swigregister
Definition: Leap.py:1446
def rotation_angle(self, args)
Definition: Leap.py:1965
def __disown__(self)
Definition: Leap.py:2283
def __init__(self)
Definition: Leap.py:1230
def __eq__(self, other)
Definition: Leap.py:285
Controller_swigregister
Definition: Leap.py:2228
def scale_factor(self, sinceFrame)
Definition: Leap.py:1974
def __ne__(self, arg2)
Definition: Leap.py:1786
def __init__(self)
Definition: Leap.py:719
def is_gesture_enabled(self, type)
Definition: Leap.py:2196
def add_listener(self, listener)
Definition: Leap.py:2184
LEAP_EXPORT Vector translation(const Frame &sinceFrame) const
def __len__(self)
Definition: Leap.py:1620
def __init__(self, args)
Definition: Leap.py:862
def __str__(self)
Definition: Leap.py:1116
Mask_invalid
Definition: Leap.py:1395
def __init__(self)
Definition: Leap.py:1878
def __init__(self, nelements)
Definition: Leap.py:202
CircleGesture_swigregister
Definition: Leap.py:991
distortion_width
Definition: Leap.py:1278
def __str__(self)
Definition: Leap.py:603
def previous(self)
Definition: Leap.py:133
def normalize_point(self, position, clamp=True)
Definition: Leap.py:1885
def __str__(self)
Definition: Leap.py:387
LEAP_EXPORT Finger finger(int32_t id) const
def __getitem__(self, index)
Definition: Leap.py:294
Pointable_swigregister
Definition: Leap.py:518
Tool_swigregister
Definition: Leap.py:704
def __init__(self, args)
Definition: Leap.py:356
def __init__(self)
Definition: Leap.py:1515
def __ne__(self, arg2)
Definition: Leap.py:762
def __setitem__(self, index, value)
Definition: Leap.py:214
def __getitem__(self, index)
Definition: Leap.py:1623
def enable_gesture(self, type, enable=True)
Definition: Leap.py:2193
def closest_screen(self, position)
Definition: Leap.py:1669
def __init__(self)
Definition: Leap.py:1613
Vector cross(const Vector &other) const
Definition: LeapMath.h:360
def __getitem__(self, index)
Definition: Leap.py:177
def rotation_probability(self, sinceFrame)
Definition: Leap.py:1971
def rotation_axis(self, sinceFrame)
Definition: Leap.py:1962
SwipeGesture_class_type
Definition: Leap.py:952
def __iadd__(self, other)
Definition: Leap.py:270
def __init__(self, args)
Definition: Leap.py:658
Listener_swigregister
Definition: Leap.py:2287
def on_init(self, arg0)
Definition: Leap.py:2251
def set(self, args)
Definition: Leap.py:2128
Image_swigregister
Definition: Leap.py:1321
def __sub__(self, args)
Definition: Leap.py:154
def __len__(self)
Definition: Leap.py:1743
Interface_swigregister
Definition: Leap.py:436
def __str__(self)
Definition: Leap.py:1897
void deserialize(const std::string &str)
Definition: Leap.h:5214
HandList_swigregister
Definition: Leap.py:1599
LEAP_EXPORT GestureList & append(const GestureList &other)
LEAP_EXPORT GestureList gestures() const
def __str__(self)
Definition: Leap.py:1355
def on_connect(self, arg0)
Definition: Leap.py:2254
def __init__(self)
Definition: Leap.py:1736
def __iter__(self)
Definition: Leap.py:1754
def __idiv__(self, scalar)
Definition: Leap.py:279
def __init__(self)
Definition: Leap.py:590
LEAP_EXPORT ImageList & append(const ImageList &other)
def __len__(self)
Definition: Leap.py:1660
Hand_swigregister
Definition: Leap.py:838
def joint_position(self, jointIx)
Definition: Leap.py:665
def __init__(self, args)
Definition: Leap.py:236
def swig_import_helper()
Definition: Leap.py:13
LEAP_EXPORT Vector translation(const Frame &sinceFrame) const
def to_float_array(self)
Definition: Leap.py:326
def value(self)
Definition: Leap.py:109
def __iter__(self)
Definition: Leap.py:1674
LEAP_EXPORT Tool tool(int32_t id) const
def __str__(self)
Definition: Leap.py:466
weakref_proxy
Definition: Leap.py:92
def __getitem__(self, index)
Definition: Leap.py:1706
def __ne__(self, arg2)
Definition: Leap.py:600
DeviceList_swigregister
Definition: Leap.py:1722
def on_frame(self, arg0)
Definition: Leap.py:2263
def rotation_axis(self, sinceFrame)
Definition: Leap.py:741
def __init__(self, args)
Definition: Leap.py:924
def _swig_getattr(self, class_type, name)
Definition: Leap.py:70
TrackedQuad_swigregister
Definition: Leap.py:1823
def __init__(self, args)
Definition: Leap.py:693
def rotation_matrix(self, sinceFrame)
Definition: Leap.py:747
def next(self)
Definition: Leap.py:127
LEAP_EXPORT int64_t now() const
def translation_probability(self, sinceFrame)
Definition: Leap.py:1959
def __eq__(self, arg2)
Definition: Leap.py:1891
Arm_swigregister
Definition: Leap.py:571
def __setitem__(self, index, value)
Definition: Leap.py:180
def __mul__(self, scalar)
Definition: Leap.py:264
def __ne__(self, arg2)
Definition: Leap.py:463
LEAP_EXPORT Finger finger(int32_t id) const
Frame_swigregister
Definition: Leap.py:2042
def is_policy_set(self, policy)
Definition: Leap.py:2181
def __ne__(self, other)
Definition: Leap.py:384
def scale_probability(self, sinceFrame)
Definition: Leap.py:756
def denormalize_point(self, normalizedPosition)
Definition: Leap.py:1888
KeyTapGesture_class_type
Definition: Leap.py:1078
def distance_to_point(self, point)
Definition: Leap.py:1107
def rotation_matrix(self, sinceFrame)
Definition: Leap.py:1968
float_array_frompointer
Definition: Leap.py:227
def __len__(self)
Definition: Leap.py:1703
SwipeGesture_swigregister
Definition: Leap.py:947
def __iter__(self)
Definition: Leap.py:1856
def _swig_getattr_nondynamic(self, class_type, name, static=1)
Definition: Leap.py:59
BugReport_swigregister
Definition: Leap.py:2080
LEAP_EXPORT Vector intersect(const Pointable &pointable, bool normalize, float clampRatio=1.0f) const
def __add__(self, other)
Definition: Leap.py:258
def __str__(self)
Definition: Leap.py:700
def __eq__(self, other)
Definition: Leap.py:381
LEAP_EXPORT Vector warp(const Vector &xy) const
def __eq__(self, arg2)
Definition: Leap.py:1349
LEAP_EXPORT HandList & append(const HandList &other)
def __iadd__(self, n)
Definition: Leap.py:145
LEAP_EXPORT Vector rectify(const Vector &uv) const
def __init__(self)
Definition: Leap.py:1653
LEAP_EXPORT const float * distortion() const
def cast(self)
Definition: Leap.py:217
def __mul__(self, other)
Definition: Leap.py:375
Device_swigregister
Definition: Leap.py:1215
def __init__(self)
Definition: Leap.py:1931
def __init__(self)
Definition: Leap.py:1336
def on_device_change(self, arg0)
Definition: Leap.py:2278
LEAP_EXPORT MaskList & append(const MaskList &other)
def __init__(self, args)
Definition: Leap.py:1053
Screen_swigregister
Definition: Leap.py:1141
byte_array_frompointer
Definition: Leap.py:193
def __iter__(self)
Definition: Leap.py:156
def distance_to_boundary(self, position)
Definition: Leap.py:1166
LEAP_EXPORT Pointable pointable(int32_t id) const
def __init__(self)
Definition: Leap.py:2094
def __eq__(self, arg2)
Definition: Leap.py:540
def __getitem__(self, index)
Definition: Leap.py:211
def __eq__(self, arg2)
Definition: Leap.py:759
LEAP_EXPORT FingerList extended() const
def __init__(self, args)
Definition: Leap.py:1012
def __ne__(self, arg2)
Definition: Leap.py:1253
InteractionBox_swigregister
Definition: Leap.py:1916
def __eq__(self, arg2)
Definition: Leap.py:460
LEAP_EXPORT Bone bone(Bone::Type boneIx) const
def __init__(self, args)
Definition: Leap.py:968
CircleGesture_class_type
Definition: Leap.py:996
def scale_factor(self, sinceFrame)
Definition: Leap.py:753
Config_swigregister
Definition: Leap.py:2142
def __next__(self)
Definition: Leap.py:130
def __ne__(self, arg2)
Definition: Leap.py:1894
def __init__(self)
Definition: Leap.py:2057
LEAP_EXPORT Gesture gesture(int32_t id) const
def __str__(self)
Definition: Leap.py:546
T * get() const
Definition: Leap.h:63
def __init__(self)
Definition: Leap.py:1159
def on_disconnect(self, arg0)
Definition: Leap.py:2257
def __str__(self)
Definition: Leap.py:282
def __init__(self)
Definition: Leap.py:1091
def rotation_angle(self, args)
Definition: Leap.py:744
def __len__(self)
Definition: Leap.py:1467
Bone_swigregister
Definition: Leap.py:634
def end_recording(self)
Definition: Leap.py:2067
def remove_listener(self, listener)
Definition: Leap.py:2187
def __eq__(self, x)
Definition: Leap.py:139
ImageList_swigregister
Definition: Leap.py:1762
def __add__(self, n)
Definition: Leap.py:151
def __str__(self)
Definition: Leap.py:875
def __str__(self)
Definition: Leap.py:671
ScreenTapGesture_swigregister
Definition: Leap.py:1032
def on_focus_gained(self, arg0)
Definition: Leap.py:2266
def begin_recording(self)
Definition: Leap.py:2064
KeyTapGesture_swigregister
Definition: Leap.py:1073
def __iter__(self)
Definition: Leap.py:1591
def set_policy_flags(self, flags)
Definition: Leap.py:2172
def __isub__(self, n)
Definition: Leap.py:148
LEAP_EXPORT const unsigned char * data() const
def __init__(self)
Definition: Leap.py:533
def __eq__(self, arg2)
Definition: Leap.py:1250
def __getitem__(self, index)
Definition: Leap.py:1574
def __len__(self)
Definition: Leap.py:1522
def __eq__(self, arg2)
Definition: Leap.py:1169
def __len__(self)
Definition: Leap.py:1571
def rigid_inverse(self)
Definition: Leap.py:372
float dot(const Vector &other) const
Definition: LeapMath.h:340
def copy(self)
Definition: Leap.py:124
LEAP_EXPORT Tool tool(int32_t id) const
def decr(self, n=1)
Definition: Leap.py:115
def clear_policy(self, policy)
Definition: Leap.py:2178
def __neg__(self)
Definition: Leap.py:255
LEAP_EXPORT Hand hand(int32_t id) const
def advance(self, n)
Definition: Leap.py:136
def __ne__(self, arg2)
Definition: Leap.py:1113
def __ne__(self, arg2)
Definition: Leap.py:1172
def __eq__(self, arg2)
Definition: Leap.py:1980
def transform_point(self, arg2)
Definition: Leap.py:366
Vector_swigregister
Definition: Leap.py:331
def __init__(self)
Definition: Leap.py:1408
def __str__(self)
Definition: Leap.py:1992
def __init__(self)
Definition: Leap.py:1838
def cast(self)
Definition: Leap.py:183
ScreenTapGesture_class_type
Definition: Leap.py:1037
def set_rotation(self, axis, angleRadians)
Definition: Leap.py:363
def __div__(self, scalar)
Definition: Leap.py:267
def on_images(self, arg0)
Definition: Leap.py:2281
def translation_probability(self, sinceFrame)
Definition: Leap.py:738
def __iter__(self)
Definition: Leap.py:1542
def closest_screen_hit(self, args)
Definition: Leap.py:1666
LEAP_EXPORT PointableList extended() const
def __eq__(self, rhs)
Definition: Leap.py:869
def __ne__(self, arg2)
Definition: Leap.py:1983
Finger_swigregister
Definition: Leap.py:678
def _swig_setattr_nondynamic(self, class_type, name, value, static=1)
Definition: Leap.py:39
def on_service_connect(self, arg0)
Definition: Leap.py:2272
float_array_swigregister
Definition: Leap.py:222
distortion_height
Definition: Leap.py:1281
def __init__(self)
Definition: Leap.py:2238
ToolList_swigregister
Definition: Leap.py:1550
def __iter__(self)
Definition: Leap.py:1493
LEAP_EXPORT bool save()
def angle_to(self, other)
Definition: Leap.py:246
LEAP_EXPORT const unsigned char * data() const
def __init__(self)
Definition: Leap.py:1564
def distance(self, x)
Definition: Leap.py:118
def on_focus_lost(self, arg0)
Definition: Leap.py:2269
def __isub__(self, other)
Definition: Leap.py:273
def __sub__(self, other)
Definition: Leap.py:261
LEAP_EXPORT FingerList & append(const FingerList &other)
def on_service_disconnect(self, arg0)
Definition: Leap.py:2275
def __init__(self)
Definition: Leap.py:1696
def __len__(self)
Definition: Leap.py:1845
def rotation_probability(self, sinceFrame)
Definition: Leap.py:750
def __str__(self)
Definition: Leap.py:1175
def __eq__(self, arg2)
Definition: Leap.py:1783
def __getitem__(self, index)
Definition: Leap.py:1418
def __init__(self, args, kwargs)
Definition: Leap.py:433
def __iter__(self)
Definition: Leap.py:1631
byte_array_swigregister
Definition: Leap.py:188
def incr(self, n=1)
Definition: Leap.py:112
LEAP_EXPORT ToolList & append(const ToolList &other)
def __init__(self, nelements)
Definition: Leap.py:168
FingerList_swigregister
Definition: Leap.py:1501
def __len__(self)
Definition: Leap.py:1415
def __iter__(self)
Definition: Leap.py:1714
SwigPyIterator_swigregister
Definition: Leap.py:158
def equal(self, x)
Definition: Leap.py:121
bytes_per_pixel
Definition: Leap.py:1272
def __imul__(self, other)
Definition: Leap.py:378
LEAP_EXPORT DeviceList & append(const DeviceList &other)
ScreenList_swigregister
Definition: Leap.py:1682
LEAP_EXPORT Frame frame(int history=0) const
def _swig_setattr(self, class_type, name, value)
Definition: Leap.py:55
def to_array_3x3(self, output=None)
Definition: Leap.py:405
def __imul__(self, scalar)
Definition: Leap.py:276
def __ne__(self, arg2)
Definition: Leap.py:1352
def __ne__(self, arg2)
Definition: Leap.py:543
def is_valid(self)
Definition: Leap.py:291
def is_service_connected(self)
Definition: Leap.py:2165
def __init__(self, args, kwargs)
Definition: Leap.py:103
Matrix_swigregister
Definition: Leap.py:423
def __getitem__(self, index)
Definition: Leap.py:1663
def __getitem__(self, index)
Definition: Leap.py:1525
std::string serialize() const
Definition: Leap.h:5179
def __ne__(self, rhs)
Definition: Leap.py:872
LEAP_EXPORT Vector normal() const
def __init__(self)
Definition: Leap.py:1460
def __getitem__(self, index)
Definition: Leap.py:1848
GestureList_swigregister
Definition: Leap.py:1639
Gesture_swigregister
Definition: Leap.py:906
def to_tuple(self)
Definition: Leap.py:327
def on_exit(self, arg0)
Definition: Leap.py:2260
def finger_type(self, type)
Definition: Leap.py:1479
def transform_direction(self, arg2)
Definition: Leap.py:369
def __eq__(self, arg2)
Definition: Leap.py:597
def __eq__(self, arg2)
Definition: Leap.py:1110
LEAP_EXPORT Pointable pointable(int32_t id) const
def __str__(self)
Definition: Leap.py:1789
def to_array_4x4(self, output=None)
Definition: Leap.py:412
def __init__(self, args)
Definition: Leap.py:2158
def __str__(self)
Definition: Leap.py:765
def __getitem__(self, index)
Definition: Leap.py:1746
def __ne__(self, other)
Definition: Leap.py:288
MaskList_swigregister
Definition: Leap.py:1864
def __ne__(self, x)
Definition: Leap.py:142
def __getitem__(self, index)
Definition: Leap.py:1470
LEAP_EXPORT Vector project(const Vector &position, bool normalize, float clampRatio=1.0f) const


leap_motion
Author(s): Florian Lier , Mirza Shah , Isaac IY Saito
autogenerated on Tue Jun 2 2020 03:58:01