11 from sys
import version_info
12 if version_info >= (2, 6, 0):
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'LeapPython', [dirname(__file__)])
24 _mod = imp.load_module(
'LeapPython', fp, pathname, description)
29 del swig_import_helper
34 _swig_property = property
40 if (name ==
"thisown"):
41 return self.this.own(value)
43 if type(value).__name__ ==
'SwigPyObject':
44 self.__dict__[name] = value
46 method = class_type.__swig_setmethods__.get(name,
None)
48 return method(self, value)
50 object.__setattr__(self, name, value)
52 raise AttributeError(
"You cannot add attributes to %s" % self)
60 if (name ==
"thisown"):
61 return self.this.own()
62 method = class_type.__swig_getmethods__.get(name,
None)
66 return object.__getattr__(self, name)
68 raise AttributeError(name)
76 strthis =
"proxy of " + self.this.__repr__()
79 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
84 except AttributeError:
92 weakref_proxy = weakref.proxy
94 weakref_proxy =
lambda x: x
98 __swig_setmethods__ = {}
99 __setattr__ =
lambda self, name, value:
_swig_setattr(self, SwigPyIterator, name, value)
100 __swig_getmethods__ = {}
104 raise AttributeError(
"No constructor defined - class is abstract")
105 __repr__ = _swig_repr
106 __swig_destroy__ = LeapPython.delete_SwigPyIterator
107 __del__ =
lambda self:
None 110 return LeapPython.SwigPyIterator_value(self)
113 return LeapPython.SwigPyIterator_incr(self, n)
116 return LeapPython.SwigPyIterator_decr(self, n)
119 return LeapPython.SwigPyIterator_distance(self, x)
122 return LeapPython.SwigPyIterator_equal(self, x)
125 return LeapPython.SwigPyIterator_copy(self)
128 return LeapPython.SwigPyIterator_next(self)
131 return LeapPython.SwigPyIterator___next__(self)
134 return LeapPython.SwigPyIterator_previous(self)
137 return LeapPython.SwigPyIterator_advance(self, n)
140 return LeapPython.SwigPyIterator___eq__(self, x)
143 return LeapPython.SwigPyIterator___ne__(self, x)
146 return LeapPython.SwigPyIterator___iadd__(self, n)
149 return LeapPython.SwigPyIterator___isub__(self, n)
152 return LeapPython.SwigPyIterator___add__(self, n)
155 return LeapPython.SwigPyIterator___sub__(self, *args)
158 SwigPyIterator_swigregister = LeapPython.SwigPyIterator_swigregister
162 __swig_setmethods__ = {}
163 __setattr__ =
lambda self, name, value:
_swig_setattr(self, byte_array, name, value)
164 __swig_getmethods__ = {}
166 __repr__ = _swig_repr
169 this = LeapPython.new_byte_array(nelements)
171 self.this.append(this)
174 __swig_destroy__ = LeapPython.delete_byte_array
175 __del__ =
lambda self:
None 178 return LeapPython.byte_array___getitem__(self, index)
181 return LeapPython.byte_array___setitem__(self, index, value)
184 return LeapPython.byte_array_cast(self)
185 __swig_getmethods__[
"frompointer"] =
lambda x: LeapPython.byte_array_frompointer
187 frompointer = staticmethod(LeapPython.byte_array_frompointer)
188 byte_array_swigregister = LeapPython.byte_array_swigregister
192 return LeapPython.byte_array_frompointer(t)
193 byte_array_frompointer = LeapPython.byte_array_frompointer
196 __swig_setmethods__ = {}
197 __setattr__ =
lambda self, name, value:
_swig_setattr(self, float_array, name, value)
198 __swig_getmethods__ = {}
200 __repr__ = _swig_repr
203 this = LeapPython.new_float_array(nelements)
205 self.this.append(this)
208 __swig_destroy__ = LeapPython.delete_float_array
209 __del__ =
lambda self:
None 212 return LeapPython.float_array___getitem__(self, index)
215 return LeapPython.float_array___setitem__(self, index, value)
218 return LeapPython.float_array_cast(self)
219 __swig_getmethods__[
"frompointer"] =
lambda x: LeapPython.float_array_frompointer
221 frompointer = staticmethod(LeapPython.float_array_frompointer)
222 float_array_swigregister = LeapPython.float_array_swigregister
226 return LeapPython.float_array_frompointer(t)
227 float_array_frompointer = LeapPython.float_array_frompointer
230 __swig_setmethods__ = {}
231 __setattr__ =
lambda self, name, value:
_swig_setattr(self, Vector, name, value)
232 __swig_getmethods__ = {}
234 __repr__ = _swig_repr
237 this = LeapPython.new_Vector(*args)
239 self.this.append(this)
244 return LeapPython.Vector_distance_to(self, other)
247 return LeapPython.Vector_angle_to(self, other)
250 return LeapPython.Vector_dot(self, other)
253 return LeapPython.Vector_cross(self, other)
256 return LeapPython.Vector___neg__(self)
259 return LeapPython.Vector___add__(self, other)
262 return LeapPython.Vector___sub__(self, other)
265 return LeapPython.Vector___mul__(self, scalar)
268 return LeapPython.Vector___div__(self, scalar)
271 return LeapPython.Vector___iadd__(self, other)
274 return LeapPython.Vector___isub__(self, other)
277 return LeapPython.Vector___imul__(self, scalar)
280 return LeapPython.Vector___idiv__(self, scalar)
283 return LeapPython.Vector___str__(self)
286 return LeapPython.Vector___eq__(self, other)
289 return LeapPython.Vector___ne__(self, other)
292 return LeapPython.Vector_is_valid(self)
295 return LeapPython.Vector___getitem__(self, index)
296 __swig_setmethods__[
"x"] = LeapPython.Vector_x_set
297 __swig_getmethods__[
"x"] = LeapPython.Vector_x_get
300 __swig_setmethods__[
"y"] = LeapPython.Vector_y_set
301 __swig_getmethods__[
"y"] = LeapPython.Vector_y_get
304 __swig_setmethods__[
"z"] = LeapPython.Vector_z_set
305 __swig_getmethods__[
"z"] = LeapPython.Vector_z_get
308 __swig_getmethods__[
"magnitude"] = LeapPython.Vector_magnitude_get
311 __swig_getmethods__[
"magnitude_squared"] = LeapPython.Vector_magnitude_squared_get
314 __swig_getmethods__[
"pitch"] = LeapPython.Vector_pitch_get
317 __swig_getmethods__[
"roll"] = LeapPython.Vector_roll_get
320 __swig_getmethods__[
"yaw"] = LeapPython.Vector_yaw_get
323 __swig_getmethods__[
"normalized"] = LeapPython.Vector_normalized_get
329 __swig_destroy__ = LeapPython.delete_Vector
330 __del__ =
lambda self:
None 331 Vector_swigregister = LeapPython.Vector_swigregister
333 cvar = LeapPython.cvar
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
350 __swig_setmethods__ = {}
351 __setattr__ =
lambda self, name, value:
_swig_setattr(self, Matrix, name, value)
352 __swig_getmethods__ = {}
354 __repr__ = _swig_repr
357 this = LeapPython.new_Matrix(*args)
359 self.this.append(this)
364 return LeapPython.Matrix_set_rotation(self, axis, angleRadians)
367 return LeapPython.Matrix_transform_point(self, arg2)
370 return LeapPython.Matrix_transform_direction(self, arg2)
373 return LeapPython.Matrix_rigid_inverse(self)
376 return LeapPython.Matrix___mul__(self, other)
379 return LeapPython.Matrix___imul__(self, other)
382 return LeapPython.Matrix___eq__(self, other)
385 return LeapPython.Matrix___ne__(self, other)
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
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
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
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
404 origin =
_swig_property(LeapPython.Matrix_origin_get, LeapPython.Matrix_origin_set)
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
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
421 __swig_destroy__ = LeapPython.delete_Matrix
422 __del__ =
lambda self:
None 423 Matrix_swigregister = LeapPython.Matrix_swigregister
425 Matrix.identity = LeapPython.cvar.Matrix_identity
428 __swig_setmethods__ = {}
429 __setattr__ =
lambda self, name, value:
_swig_setattr(self, Interface, name, value)
430 __swig_getmethods__ = {}
434 raise AttributeError(
"No constructor defined")
435 __repr__ = _swig_repr
436 Interface_swigregister = LeapPython.Interface_swigregister
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__', {}))
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
454 this = LeapPython.new_Pointable()
456 self.this.append(this)
461 return LeapPython.Pointable___eq__(self, arg2)
464 return LeapPython.Pointable___ne__(self, arg2)
467 return LeapPython.Pointable___str__(self)
468 __swig_getmethods__[
"id"] = LeapPython.Pointable_id_get
471 __swig_getmethods__[
"hand"] = LeapPython.Pointable_hand_get
474 __swig_getmethods__[
"tip_position"] = LeapPython.Pointable_tip_position_get
477 __swig_getmethods__[
"tip_velocity"] = LeapPython.Pointable_tip_velocity_get
480 __swig_getmethods__[
"direction"] = LeapPython.Pointable_direction_get
483 __swig_getmethods__[
"width"] = LeapPython.Pointable_width_get
486 __swig_getmethods__[
"length"] = LeapPython.Pointable_length_get
489 __swig_getmethods__[
"is_tool"] = LeapPython.Pointable_is_tool_get
492 __swig_getmethods__[
"is_finger"] = LeapPython.Pointable_is_finger_get
495 __swig_getmethods__[
"is_extended"] = LeapPython.Pointable_is_extended_get
498 __swig_getmethods__[
"is_valid"] = LeapPython.Pointable_is_valid_get
501 __swig_getmethods__[
"touch_zone"] = LeapPython.Pointable_touch_zone_get
504 __swig_getmethods__[
"touch_distance"] = LeapPython.Pointable_touch_distance_get
507 __swig_getmethods__[
"stabilized_tip_position"] = LeapPython.Pointable_stabilized_tip_position_get
509 stabilized_tip_position =
_swig_property(LeapPython.Pointable_stabilized_tip_position_get)
510 __swig_getmethods__[
"time_visible"] = LeapPython.Pointable_time_visible_get
513 __swig_getmethods__[
"frame"] = LeapPython.Pointable_frame_get
516 __swig_destroy__ = LeapPython.delete_Pointable
517 __del__ =
lambda self:
None 518 Pointable_swigregister = LeapPython.Pointable_swigregister
520 Pointable.invalid = LeapPython.cvar.Pointable_invalid
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__', {}))
531 __repr__ = _swig_repr
534 this = LeapPython.new_Arm()
536 self.this.append(this)
541 return LeapPython.Arm___eq__(self, arg2)
544 return LeapPython.Arm___ne__(self, arg2)
547 return LeapPython.Arm___str__(self)
548 __swig_getmethods__[
"width"] = LeapPython.Arm_width_get
551 __swig_getmethods__[
"center"] = LeapPython.Arm_center_get
554 __swig_getmethods__[
"direction"] = LeapPython.Arm_direction_get
557 __swig_getmethods__[
"basis"] = LeapPython.Arm_basis_get
560 __swig_getmethods__[
"elbow_position"] = LeapPython.Arm_elbow_position_get
563 __swig_getmethods__[
"wrist_position"] = LeapPython.Arm_wrist_position_get
566 __swig_getmethods__[
"is_valid"] = LeapPython.Arm_is_valid_get
569 __swig_destroy__ = LeapPython.delete_Arm
570 __del__ =
lambda self:
None 571 Arm_swigregister = LeapPython.Arm_swigregister
573 Arm.invalid = LeapPython.cvar.Arm_invalid
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__', {}))
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
591 this = LeapPython.new_Bone()
593 self.this.append(this)
598 return LeapPython.Bone___eq__(self, arg2)
601 return LeapPython.Bone___ne__(self, arg2)
604 return LeapPython.Bone___str__(self)
605 __swig_getmethods__[
"prev_joint"] = LeapPython.Bone_prev_joint_get
608 __swig_getmethods__[
"next_joint"] = LeapPython.Bone_next_joint_get
611 __swig_getmethods__[
"center"] = LeapPython.Bone_center_get
614 __swig_getmethods__[
"direction"] = LeapPython.Bone_direction_get
617 __swig_getmethods__[
"length"] = LeapPython.Bone_length_get
620 __swig_getmethods__[
"width"] = LeapPython.Bone_width_get
623 __swig_getmethods__[
"type"] = LeapPython.Bone_type_get
626 __swig_getmethods__[
"basis"] = LeapPython.Bone_basis_get
629 __swig_getmethods__[
"is_valid"] = LeapPython.Bone_is_valid_get
632 __swig_destroy__ = LeapPython.delete_Bone
633 __del__ =
lambda self:
None 634 Bone_swigregister = LeapPython.Bone_swigregister
636 Bone.invalid = LeapPython.cvar.Bone_invalid
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__', {}))
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
659 this = LeapPython.new_Finger(*args)
661 self.this.append(this)
666 return LeapPython.Finger_joint_position(self, jointIx)
669 return LeapPython.Finger_bone(self, boneIx)
672 return LeapPython.Finger___str__(self)
673 __swig_getmethods__[
"type"] = LeapPython.Finger_type_get
676 __swig_destroy__ = LeapPython.delete_Finger
677 __del__ =
lambda self:
None 678 Finger_swigregister = LeapPython.Finger_swigregister
680 Finger.invalid = LeapPython.cvar.Finger_invalid
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__', {}))
691 __repr__ = _swig_repr
694 this = LeapPython.new_Tool(*args)
696 self.this.append(this)
701 return LeapPython.Tool___str__(self)
702 __swig_destroy__ = LeapPython.delete_Tool
703 __del__ =
lambda self:
None 704 Tool_swigregister = LeapPython.Tool_swigregister
706 Tool.invalid = LeapPython.cvar.Tool_invalid
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__', {}))
717 __repr__ = _swig_repr
720 this = LeapPython.new_Hand()
722 self.this.append(this)
727 return LeapPython.Hand_pointable(self, id)
730 return LeapPython.Hand_finger(self, id)
733 return LeapPython.Hand_tool(self, id)
736 return LeapPython.Hand_translation(self, sinceFrame)
739 return LeapPython.Hand_translation_probability(self, sinceFrame)
742 return LeapPython.Hand_rotation_axis(self, sinceFrame)
745 return LeapPython.Hand_rotation_angle(self, *args)
748 return LeapPython.Hand_rotation_matrix(self, sinceFrame)
751 return LeapPython.Hand_rotation_probability(self, sinceFrame)
754 return LeapPython.Hand_scale_factor(self, sinceFrame)
757 return LeapPython.Hand_scale_probability(self, sinceFrame)
760 return LeapPython.Hand___eq__(self, arg2)
763 return LeapPython.Hand___ne__(self, arg2)
766 return LeapPython.Hand___str__(self)
767 __swig_getmethods__[
"id"] = LeapPython.Hand_id_get
770 __swig_getmethods__[
"pointables"] = LeapPython.Hand_pointables_get
773 __swig_getmethods__[
"fingers"] = LeapPython.Hand_fingers_get
776 __swig_getmethods__[
"tools"] = LeapPython.Hand_tools_get
779 __swig_getmethods__[
"palm_position"] = LeapPython.Hand_palm_position_get
782 __swig_getmethods__[
"palm_velocity"] = LeapPython.Hand_palm_velocity_get
785 __swig_getmethods__[
"palm_normal"] = LeapPython.Hand_palm_normal_get
788 __swig_getmethods__[
"direction"] = LeapPython.Hand_direction_get
791 __swig_getmethods__[
"basis"] = LeapPython.Hand_basis_get
794 __swig_getmethods__[
"is_valid"] = LeapPython.Hand_is_valid_get
797 __swig_getmethods__[
"sphere_center"] = LeapPython.Hand_sphere_center_get
800 __swig_getmethods__[
"sphere_radius"] = LeapPython.Hand_sphere_radius_get
803 __swig_getmethods__[
"grab_strength"] = LeapPython.Hand_grab_strength_get
806 __swig_getmethods__[
"pinch_strength"] = LeapPython.Hand_pinch_strength_get
809 __swig_getmethods__[
"palm_width"] = LeapPython.Hand_palm_width_get
812 __swig_getmethods__[
"stabilized_palm_position"] = LeapPython.Hand_stabilized_palm_position_get
814 stabilized_palm_position =
_swig_property(LeapPython.Hand_stabilized_palm_position_get)
815 __swig_getmethods__[
"wrist_position"] = LeapPython.Hand_wrist_position_get
818 __swig_getmethods__[
"time_visible"] = LeapPython.Hand_time_visible_get
821 __swig_getmethods__[
"confidence"] = LeapPython.Hand_confidence_get
824 __swig_getmethods__[
"is_left"] = LeapPython.Hand_is_left_get
827 __swig_getmethods__[
"is_right"] = LeapPython.Hand_is_right_get
830 __swig_getmethods__[
"frame"] = LeapPython.Hand_frame_get
833 __swig_getmethods__[
"arm"] = LeapPython.Hand_arm_get
836 __swig_destroy__ = LeapPython.delete_Hand
837 __del__ =
lambda self:
None 838 Hand_swigregister = LeapPython.Hand_swigregister
840 Hand.invalid = LeapPython.cvar.Hand_invalid
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__', {}))
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
863 this = LeapPython.new_Gesture(*args)
865 self.this.append(this)
870 return LeapPython.Gesture___eq__(self, rhs)
873 return LeapPython.Gesture___ne__(self, rhs)
876 return LeapPython.Gesture___str__(self)
877 __swig_getmethods__[
"type"] = LeapPython.Gesture_type_get
880 __swig_getmethods__[
"state"] = LeapPython.Gesture_state_get
883 __swig_getmethods__[
"id"] = LeapPython.Gesture_id_get
886 __swig_getmethods__[
"duration"] = LeapPython.Gesture_duration_get
889 __swig_getmethods__[
"duration_seconds"] = LeapPython.Gesture_duration_seconds_get
892 __swig_getmethods__[
"frame"] = LeapPython.Gesture_frame_get
895 __swig_getmethods__[
"hands"] = LeapPython.Gesture_hands_get
898 __swig_getmethods__[
"pointables"] = LeapPython.Gesture_pointables_get
901 __swig_getmethods__[
"is_valid"] = LeapPython.Gesture_is_valid_get
904 __swig_destroy__ = LeapPython.delete_Gesture
905 __del__ =
lambda self:
None 906 Gesture_swigregister = LeapPython.Gesture_swigregister
908 Gesture.invalid = LeapPython.cvar.Gesture_invalid
911 __swig_setmethods__ = {}
913 __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__', {}))
914 __setattr__ =
lambda self, name, value:
_swig_setattr(self, SwipeGesture, name, value)
915 __swig_getmethods__ = {}
917 __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__', {}))
919 __repr__ = _swig_repr
920 __swig_getmethods__[
"class_type"] =
lambda x: LeapPython.SwipeGesture_class_type
922 class_type = staticmethod(LeapPython.SwipeGesture_class_type)
925 this = LeapPython.new_SwipeGesture(*args)
927 self.this.append(this)
930 __swig_getmethods__[
"start_position"] = LeapPython.SwipeGesture_start_position_get
933 __swig_getmethods__[
"position"] = LeapPython.SwipeGesture_position_get
936 __swig_getmethods__[
"direction"] = LeapPython.SwipeGesture_direction_get
939 __swig_getmethods__[
"speed"] = LeapPython.SwipeGesture_speed_get
942 __swig_getmethods__[
"pointable"] = LeapPython.SwipeGesture_pointable_get
945 __swig_destroy__ = LeapPython.delete_SwipeGesture
946 __del__ =
lambda self:
None 947 SwipeGesture_swigregister = LeapPython.SwipeGesture_swigregister
951 return LeapPython.SwipeGesture_class_type()
952 SwipeGesture_class_type = LeapPython.SwipeGesture_class_type
955 __swig_setmethods__ = {}
957 __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__', {}))
958 __setattr__ =
lambda self, name, value:
_swig_setattr(self, CircleGesture, name, value)
959 __swig_getmethods__ = {}
961 __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__', {}))
963 __repr__ = _swig_repr
964 __swig_getmethods__[
"class_type"] =
lambda x: LeapPython.CircleGesture_class_type
966 class_type = staticmethod(LeapPython.CircleGesture_class_type)
969 this = LeapPython.new_CircleGesture(*args)
971 self.this.append(this)
974 __swig_getmethods__[
"center"] = LeapPython.CircleGesture_center_get
977 __swig_getmethods__[
"normal"] = LeapPython.CircleGesture_normal_get
980 __swig_getmethods__[
"progress"] = LeapPython.CircleGesture_progress_get
983 __swig_getmethods__[
"radius"] = LeapPython.CircleGesture_radius_get
986 __swig_getmethods__[
"pointable"] = LeapPython.CircleGesture_pointable_get
989 __swig_destroy__ = LeapPython.delete_CircleGesture
990 __del__ =
lambda self:
None 991 CircleGesture_swigregister = LeapPython.CircleGesture_swigregister
995 return LeapPython.CircleGesture_class_type()
996 CircleGesture_class_type = LeapPython.CircleGesture_class_type
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__', {}))
1007 __repr__ = _swig_repr
1008 __swig_getmethods__[
"class_type"] =
lambda x: LeapPython.ScreenTapGesture_class_type
1010 class_type = staticmethod(LeapPython.ScreenTapGesture_class_type)
1013 this = LeapPython.new_ScreenTapGesture(*args)
1015 self.this.append(this)
1018 __swig_getmethods__[
"position"] = LeapPython.ScreenTapGesture_position_get
1021 __swig_getmethods__[
"direction"] = LeapPython.ScreenTapGesture_direction_get
1024 __swig_getmethods__[
"progress"] = LeapPython.ScreenTapGesture_progress_get
1027 __swig_getmethods__[
"pointable"] = LeapPython.ScreenTapGesture_pointable_get
1030 __swig_destroy__ = LeapPython.delete_ScreenTapGesture
1031 __del__ =
lambda self:
None 1032 ScreenTapGesture_swigregister = LeapPython.ScreenTapGesture_swigregister
1036 return LeapPython.ScreenTapGesture_class_type()
1037 ScreenTapGesture_class_type = LeapPython.ScreenTapGesture_class_type
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__', {}))
1048 __repr__ = _swig_repr
1049 __swig_getmethods__[
"class_type"] =
lambda x: LeapPython.KeyTapGesture_class_type
1051 class_type = staticmethod(LeapPython.KeyTapGesture_class_type)
1054 this = LeapPython.new_KeyTapGesture(*args)
1056 self.this.append(this)
1059 __swig_getmethods__[
"position"] = LeapPython.KeyTapGesture_position_get
1062 __swig_getmethods__[
"direction"] = LeapPython.KeyTapGesture_direction_get
1065 __swig_getmethods__[
"progress"] = LeapPython.KeyTapGesture_progress_get
1068 __swig_getmethods__[
"pointable"] = LeapPython.KeyTapGesture_pointable_get
1071 __swig_destroy__ = LeapPython.delete_KeyTapGesture
1072 __del__ =
lambda self:
None 1073 KeyTapGesture_swigregister = LeapPython.KeyTapGesture_swigregister
1077 return LeapPython.KeyTapGesture_class_type()
1078 KeyTapGesture_class_type = LeapPython.KeyTapGesture_class_type
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__', {}))
1089 __repr__ = _swig_repr
1092 this = LeapPython.new_Screen()
1094 self.this.append(this)
1099 return LeapPython.Screen_intersect(self, *args)
1101 def project(self, position, normalize, clampRatio=1.0):
1102 return LeapPython.Screen_project(self, position, normalize, clampRatio)
1105 return LeapPython.Screen_normal(self)
1108 return LeapPython.Screen_distance_to_point(self, point)
1111 return LeapPython.Screen___eq__(self, arg2)
1114 return LeapPython.Screen___ne__(self, arg2)
1117 return LeapPython.Screen___str__(self)
1118 __swig_getmethods__[
"id"] = LeapPython.Screen_id_get
1121 __swig_getmethods__[
"horizontal_axis"] = LeapPython.Screen_horizontal_axis_get
1124 __swig_getmethods__[
"vertical_axis"] = LeapPython.Screen_vertical_axis_get
1127 __swig_getmethods__[
"bottom_left_corner"] = LeapPython.Screen_bottom_left_corner_get
1130 __swig_getmethods__[
"width_pixels"] = LeapPython.Screen_width_pixels_get
1133 __swig_getmethods__[
"height_pixels"] = LeapPython.Screen_height_pixels_get
1136 __swig_getmethods__[
"is_valid"] = LeapPython.Screen_is_valid_get
1139 __swig_destroy__ = LeapPython.delete_Screen
1140 __del__ =
lambda self:
None 1141 Screen_swigregister = LeapPython.Screen_swigregister
1143 Screen.invalid = LeapPython.cvar.Screen_invalid
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__', {}))
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
1160 this = LeapPython.new_Device()
1162 self.this.append(this)
1167 return LeapPython.Device_distance_to_boundary(self, position)
1170 return LeapPython.Device___eq__(self, arg2)
1173 return LeapPython.Device___ne__(self, arg2)
1176 return LeapPython.Device___str__(self)
1177 __swig_getmethods__[
"horizontal_view_angle"] = LeapPython.Device_horizontal_view_angle_get
1180 __swig_getmethods__[
"vertical_view_angle"] = LeapPython.Device_vertical_view_angle_get
1183 __swig_getmethods__[
"range"] = LeapPython.Device_range_get
1186 __swig_getmethods__[
"baseline"] = LeapPython.Device_baseline_get
1189 __swig_getmethods__[
"is_valid"] = LeapPython.Device_is_valid_get
1192 __swig_getmethods__[
"is_embedded"] = LeapPython.Device_is_embedded_get
1195 __swig_getmethods__[
"is_streaming"] = LeapPython.Device_is_streaming_get
1198 __swig_getmethods__[
"is_flipped"] = LeapPython.Device_is_flipped_get
1201 __swig_getmethods__[
"type"] = LeapPython.Device_type_get
1204 __swig_getmethods__[
"serial_number"] = LeapPython.Device_serial_number_get
1207 __swig_getmethods__[
"position"] = LeapPython.Device_position_get
1210 __swig_getmethods__[
"orientation"] = LeapPython.Device_orientation_get
1213 __swig_destroy__ = LeapPython.delete_Device
1214 __del__ =
lambda self:
None 1215 Device_swigregister = LeapPython.Device_swigregister
1217 Device.invalid = LeapPython.cvar.Device_invalid
1220 __swig_setmethods__ = {}
1221 for _s
in [Interface]:
1222 __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__', {}))
1224 __swig_getmethods__ = {}
1225 for _s
in [Interface]:
1226 __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__', {}))
1228 __repr__ = _swig_repr
1231 this = LeapPython.new_Image()
1233 self.this.append(this)
1238 return LeapPython.Image_data(self, dst)
1241 return LeapPython.Image_distortion(self, dst)
1242 INFRARED = LeapPython.Image_INFRARED
1245 return LeapPython.Image_rectify(self, uv)
1248 return LeapPython.Image_warp(self, xy)
1251 return LeapPython.Image___eq__(self, arg2)
1254 return LeapPython.Image___ne__(self, arg2)
1257 return LeapPython.Image___str__(self)
1258 __swig_getmethods__[
"sequence_id"] = LeapPython.Image_sequence_id_get
1261 __swig_getmethods__[
"id"] = LeapPython.Image_id_get
1264 __swig_getmethods__[
"width"] = LeapPython.Image_width_get
1267 __swig_getmethods__[
"height"] = LeapPython.Image_height_get
1270 __swig_getmethods__[
"bytes_per_pixel"] = LeapPython.Image_bytes_per_pixel_get
1273 __swig_getmethods__[
"format"] = LeapPython.Image_format_get
1276 __swig_getmethods__[
"distortion_width"] = LeapPython.Image_distortion_width_get
1279 __swig_getmethods__[
"distortion_height"] = LeapPython.Image_distortion_height_get
1282 __swig_getmethods__[
"ray_offset_x"] = LeapPython.Image_ray_offset_x_get
1285 __swig_getmethods__[
"ray_offset_y"] = LeapPython.Image_ray_offset_y_get
1288 __swig_getmethods__[
"ray_scale_x"] = LeapPython.Image_ray_scale_x_get
1291 __swig_getmethods__[
"ray_scale_y"] = LeapPython.Image_ray_scale_y_get
1294 __swig_getmethods__[
"timestamp"] = LeapPython.Image_timestamp_get
1297 __swig_getmethods__[
"is_valid"] = LeapPython.Image_is_valid_get
1302 LeapPython.Image_data(self, ptr)
1306 LeapPython.Image_distortion(self, ptr)
1308 __swig_getmethods__[
"data"] = data
1310 __swig_getmethods__[
"distortion"] = distortion
1313 __swig_getmethods__[
"data_pointer"] = LeapPython.Image_data_pointer_get
1316 __swig_getmethods__[
"distortion_pointer"] = LeapPython.Image_distortion_pointer_get
1319 __swig_destroy__ = LeapPython.delete_Image
1320 __del__ =
lambda self:
None 1321 Image_swigregister = LeapPython.Image_swigregister
1323 Image.invalid = LeapPython.cvar.Image_invalid
1326 __swig_setmethods__ = {}
1327 for _s
in [Interface]:
1328 __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__', {}))
1330 __swig_getmethods__ = {}
1331 for _s
in [Interface]:
1332 __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__', {}))
1334 __repr__ = _swig_repr
1337 this = LeapPython.new_Mask()
1339 self.this.append(this)
1344 return LeapPython.Mask_data(self, dst)
1345 __swig_getmethods__[
"invalid"] =
lambda x: LeapPython.Mask_invalid
1347 invalid = staticmethod(LeapPython.Mask_invalid)
1350 return LeapPython.Mask___eq__(self, arg2)
1353 return LeapPython.Mask___ne__(self, arg2)
1356 return LeapPython.Mask___str__(self)
1357 __swig_getmethods__[
"sequence_id"] = LeapPython.Mask_sequence_id_get
1360 __swig_getmethods__[
"id"] = LeapPython.Mask_id_get
1363 __swig_getmethods__[
"width"] = LeapPython.Mask_width_get
1366 __swig_getmethods__[
"height"] = LeapPython.Mask_height_get
1369 __swig_getmethods__[
"offset_x"] = LeapPython.Mask_offset_x_get
1372 __swig_getmethods__[
"offset_y"] = LeapPython.Mask_offset_y_get
1375 __swig_getmethods__[
"is_valid"] = LeapPython.Mask_is_valid_get
1380 LeapPython.Mask_data(self, ptr)
1382 __swig_getmethods__[
"data"] = data
1385 __swig_getmethods__[
"data_pointer"] = LeapPython.Mask_data_pointer_get
1388 __swig_destroy__ = LeapPython.delete_Mask
1389 __del__ =
lambda self:
None 1390 Mask_swigregister = LeapPython.Mask_swigregister
1394 return LeapPython.Mask_invalid()
1395 Mask_invalid = LeapPython.Mask_invalid
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__', {}))
1406 __repr__ = _swig_repr
1409 this = LeapPython.new_PointableList()
1411 self.this.append(this)
1416 return LeapPython.PointableList___len__(self)
1419 return LeapPython.PointableList___getitem__(self, index)
1422 return LeapPython.PointableList_append(self, *args)
1425 return LeapPython.PointableList_extended(self)
1426 __swig_getmethods__[
"is_empty"] = LeapPython.PointableList_is_empty_get
1429 __swig_getmethods__[
"leftmost"] = LeapPython.PointableList_leftmost_get
1432 __swig_getmethods__[
"rightmost"] = LeapPython.PointableList_rightmost_get
1435 __swig_getmethods__[
"frontmost"] = LeapPython.PointableList_frontmost_get
1440 while _pos < len(self):
1444 __swig_destroy__ = LeapPython.delete_PointableList
1445 __del__ =
lambda self:
None 1446 PointableList_swigregister = LeapPython.PointableList_swigregister
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__', {}))
1458 __repr__ = _swig_repr
1461 this = LeapPython.new_FingerList()
1463 self.this.append(this)
1468 return LeapPython.FingerList___len__(self)
1471 return LeapPython.FingerList___getitem__(self, index)
1474 return LeapPython.FingerList_append(self, other)
1477 return LeapPython.FingerList_extended(self)
1480 return LeapPython.FingerList_finger_type(self, type)
1481 __swig_getmethods__[
"is_empty"] = LeapPython.FingerList_is_empty_get
1484 __swig_getmethods__[
"leftmost"] = LeapPython.FingerList_leftmost_get
1487 __swig_getmethods__[
"rightmost"] = LeapPython.FingerList_rightmost_get
1490 __swig_getmethods__[
"frontmost"] = LeapPython.FingerList_frontmost_get
1495 while _pos < len(self):
1499 __swig_destroy__ = LeapPython.delete_FingerList
1500 __del__ =
lambda self:
None 1501 FingerList_swigregister = LeapPython.FingerList_swigregister
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__', {}))
1513 __repr__ = _swig_repr
1516 this = LeapPython.new_ToolList()
1518 self.this.append(this)
1523 return LeapPython.ToolList___len__(self)
1526 return LeapPython.ToolList___getitem__(self, index)
1529 return LeapPython.ToolList_append(self, other)
1530 __swig_getmethods__[
"is_empty"] = LeapPython.ToolList_is_empty_get
1533 __swig_getmethods__[
"leftmost"] = LeapPython.ToolList_leftmost_get
1536 __swig_getmethods__[
"rightmost"] = LeapPython.ToolList_rightmost_get
1539 __swig_getmethods__[
"frontmost"] = LeapPython.ToolList_frontmost_get
1544 while _pos < len(self):
1548 __swig_destroy__ = LeapPython.delete_ToolList
1549 __del__ =
lambda self:
None 1550 ToolList_swigregister = LeapPython.ToolList_swigregister
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__', {}))
1562 __repr__ = _swig_repr
1565 this = LeapPython.new_HandList()
1567 self.this.append(this)
1572 return LeapPython.HandList___len__(self)
1575 return LeapPython.HandList___getitem__(self, index)
1578 return LeapPython.HandList_append(self, other)
1579 __swig_getmethods__[
"is_empty"] = LeapPython.HandList_is_empty_get
1582 __swig_getmethods__[
"leftmost"] = LeapPython.HandList_leftmost_get
1585 __swig_getmethods__[
"rightmost"] = LeapPython.HandList_rightmost_get
1588 __swig_getmethods__[
"frontmost"] = LeapPython.HandList_frontmost_get
1593 while _pos < len(self):
1597 __swig_destroy__ = LeapPython.delete_HandList
1598 __del__ =
lambda self:
None 1599 HandList_swigregister = LeapPython.HandList_swigregister
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__', {}))
1611 __repr__ = _swig_repr
1614 this = LeapPython.new_GestureList()
1616 self.this.append(this)
1621 return LeapPython.GestureList___len__(self)
1624 return LeapPython.GestureList___getitem__(self, index)
1627 return LeapPython.GestureList_append(self, other)
1628 __swig_getmethods__[
"is_empty"] = LeapPython.GestureList_is_empty_get
1633 while _pos < len(self):
1637 __swig_destroy__ = LeapPython.delete_GestureList
1638 __del__ =
lambda self:
None 1639 GestureList_swigregister = LeapPython.GestureList_swigregister
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__', {}))
1651 __repr__ = _swig_repr
1654 this = LeapPython.new_ScreenList()
1656 self.this.append(this)
1661 return LeapPython.ScreenList___len__(self)
1664 return LeapPython.ScreenList___getitem__(self, index)
1667 return LeapPython.ScreenList_closest_screen_hit(self, *args)
1670 return LeapPython.ScreenList_closest_screen(self, position)
1671 __swig_getmethods__[
"is_empty"] = LeapPython.ScreenList_is_empty_get
1676 while _pos < len(self):
1680 __swig_destroy__ = LeapPython.delete_ScreenList
1681 __del__ =
lambda self:
None 1682 ScreenList_swigregister = LeapPython.ScreenList_swigregister
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__', {}))
1694 __repr__ = _swig_repr
1697 this = LeapPython.new_DeviceList()
1699 self.this.append(this)
1704 return LeapPython.DeviceList___len__(self)
1707 return LeapPython.DeviceList___getitem__(self, index)
1710 return LeapPython.DeviceList_append(self, other)
1711 __swig_getmethods__[
"is_empty"] = LeapPython.DeviceList_is_empty_get
1716 while _pos < len(self):
1720 __swig_destroy__ = LeapPython.delete_DeviceList
1721 __del__ =
lambda self:
None 1722 DeviceList_swigregister = LeapPython.DeviceList_swigregister
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__', {}))
1734 __repr__ = _swig_repr
1737 this = LeapPython.new_ImageList()
1739 self.this.append(this)
1744 return LeapPython.ImageList___len__(self)
1747 return LeapPython.ImageList___getitem__(self, index)
1750 return LeapPython.ImageList_append(self, other)
1751 __swig_getmethods__[
"is_empty"] = LeapPython.ImageList_is_empty_get
1756 while _pos < len(self):
1760 __swig_destroy__ = LeapPython.delete_ImageList
1761 __del__ =
lambda self:
None 1762 ImageList_swigregister = LeapPython.ImageList_swigregister
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__', {}))
1774 __repr__ = _swig_repr
1777 this = LeapPython.new_TrackedQuad()
1779 self.this.append(this)
1784 return LeapPython.TrackedQuad___eq__(self, arg2)
1787 return LeapPython.TrackedQuad___ne__(self, arg2)
1790 return LeapPython.TrackedQuad___str__(self)
1791 __swig_getmethods__[
"width"] = LeapPython.TrackedQuad_width_get
1794 __swig_getmethods__[
"height"] = LeapPython.TrackedQuad_height_get
1797 __swig_getmethods__[
"resolution_x"] = LeapPython.TrackedQuad_resolution_x_get
1800 __swig_getmethods__[
"resolution_y"] = LeapPython.TrackedQuad_resolution_y_get
1803 __swig_getmethods__[
"visible"] = LeapPython.TrackedQuad_visible_get
1806 __swig_getmethods__[
"orientation"] = LeapPython.TrackedQuad_orientation_get
1809 __swig_getmethods__[
"position"] = LeapPython.TrackedQuad_position_get
1812 __swig_getmethods__[
"masks"] = LeapPython.TrackedQuad_masks_get
1815 __swig_getmethods__[
"images"] = LeapPython.TrackedQuad_images_get
1818 __swig_getmethods__[
"is_valid"] = LeapPython.TrackedQuad_is_valid_get
1821 __swig_destroy__ = LeapPython.delete_TrackedQuad
1822 __del__ =
lambda self:
None 1823 TrackedQuad_swigregister = LeapPython.TrackedQuad_swigregister
1825 TrackedQuad.invalid = LeapPython.cvar.TrackedQuad_invalid
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__', {}))
1836 __repr__ = _swig_repr
1839 this = LeapPython.new_MaskList()
1841 self.this.append(this)
1846 return LeapPython.MaskList___len__(self)
1849 return LeapPython.MaskList___getitem__(self, index)
1852 return LeapPython.MaskList_append(self, other)
1853 __swig_getmethods__[
"is_empty"] = LeapPython.MaskList_is_empty_get
1858 while _pos < len(self):
1862 __swig_destroy__ = LeapPython.delete_MaskList
1863 __del__ =
lambda self:
None 1864 MaskList_swigregister = LeapPython.MaskList_swigregister
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__', {}))
1876 __repr__ = _swig_repr
1879 this = LeapPython.new_InteractionBox()
1881 self.this.append(this)
1886 return LeapPython.InteractionBox_normalize_point(self, position, clamp)
1889 return LeapPython.InteractionBox_denormalize_point(self, normalizedPosition)
1892 return LeapPython.InteractionBox___eq__(self, arg2)
1895 return LeapPython.InteractionBox___ne__(self, arg2)
1898 return LeapPython.InteractionBox___str__(self)
1899 __swig_getmethods__[
"center"] = LeapPython.InteractionBox_center_get
1902 __swig_getmethods__[
"width"] = LeapPython.InteractionBox_width_get
1905 __swig_getmethods__[
"height"] = LeapPython.InteractionBox_height_get
1908 __swig_getmethods__[
"depth"] = LeapPython.InteractionBox_depth_get
1911 __swig_getmethods__[
"is_valid"] = LeapPython.InteractionBox_is_valid_get
1914 __swig_destroy__ = LeapPython.delete_InteractionBox
1915 __del__ =
lambda self:
None 1916 InteractionBox_swigregister = LeapPython.InteractionBox_swigregister
1918 InteractionBox.invalid = LeapPython.cvar.InteractionBox_invalid
1921 __swig_setmethods__ = {}
1922 for _s
in [Interface]:
1923 __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__', {}))
1925 __swig_getmethods__ = {}
1926 for _s
in [Interface]:
1927 __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__', {}))
1929 __repr__ = _swig_repr
1932 this = LeapPython.new_Frame()
1934 self.this.append(this)
1939 return LeapPython.Frame_hand(self, id)
1942 return LeapPython.Frame_pointable(self, id)
1945 return LeapPython.Frame_finger(self, id)
1948 return LeapPython.Frame_tool(self, id)
1951 return LeapPython.Frame_gesture(self, id)
1954 return LeapPython.Frame_gestures(self, *args)
1957 return LeapPython.Frame_translation(self, sinceFrame)
1960 return LeapPython.Frame_translation_probability(self, sinceFrame)
1963 return LeapPython.Frame_rotation_axis(self, sinceFrame)
1966 return LeapPython.Frame_rotation_angle(self, *args)
1969 return LeapPython.Frame_rotation_matrix(self, sinceFrame)
1972 return LeapPython.Frame_rotation_probability(self, sinceFrame)
1975 return LeapPython.Frame_scale_factor(self, sinceFrame)
1978 return LeapPython.Frame_scale_probability(self, sinceFrame)
1981 return LeapPython.Frame___eq__(self, arg2)
1984 return LeapPython.Frame___ne__(self, arg2)
1987 return LeapPython.Frame_serialize(self, ptr)
1990 return LeapPython.Frame_deserialize(self, ptr, length)
1993 return LeapPython.Frame___str__(self)
1994 __swig_getmethods__[
"id"] = LeapPython.Frame_id_get
1997 __swig_getmethods__[
"timestamp"] = LeapPython.Frame_timestamp_get
2000 __swig_getmethods__[
"current_frames_per_second"] = LeapPython.Frame_current_frames_per_second_get
2002 current_frames_per_second =
_swig_property(LeapPython.Frame_current_frames_per_second_get)
2003 __swig_getmethods__[
"pointables"] = LeapPython.Frame_pointables_get
2006 __swig_getmethods__[
"fingers"] = LeapPython.Frame_fingers_get
2009 __swig_getmethods__[
"tools"] = LeapPython.Frame_tools_get
2012 __swig_getmethods__[
"hands"] = LeapPython.Frame_hands_get
2015 __swig_getmethods__[
"images"] = LeapPython.Frame_images_get
2018 __swig_getmethods__[
"is_valid"] = LeapPython.Frame_is_valid_get
2021 __swig_getmethods__[
"interaction_box"] = LeapPython.Frame_interaction_box_get
2024 __swig_getmethods__[
"serialize_length"] = LeapPython.Frame_serialize_length_get
2027 __swig_getmethods__[
"tracked_quad"] = LeapPython.Frame_tracked_quad_get
2033 LeapPython.Frame_serialize(self, str)
2034 return (str, length)
2036 LeapPython.Frame_deserialize(self, tup[0], tup[1])
2037 __swig_getmethods__[
"serialize"] = serialize
2040 __swig_destroy__ = LeapPython.delete_Frame
2041 __del__ =
lambda self:
None 2042 Frame_swigregister = LeapPython.Frame_swigregister
2044 Frame.invalid = LeapPython.cvar.Frame_invalid
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__', {}))
2055 __repr__ = _swig_repr
2058 this = LeapPython.new_BugReport()
2060 self.this.append(this)
2065 return LeapPython.BugReport_begin_recording(self)
2068 return LeapPython.BugReport_end_recording(self)
2069 __swig_getmethods__[
"is_active"] = LeapPython.BugReport_is_active_get
2072 __swig_getmethods__[
"progress"] = LeapPython.BugReport_progress_get
2075 __swig_getmethods__[
"duration"] = LeapPython.BugReport_duration_get
2078 __swig_destroy__ = LeapPython.delete_BugReport
2079 __del__ =
lambda self:
None 2080 BugReport_swigregister = LeapPython.BugReport_swigregister
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__', {}))
2092 __repr__ = _swig_repr
2095 this = LeapPython.new_Config()
2097 self.this.append(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
2116 return LeapPython.Config_save(self)
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)
2129 type = LeapPython.Config_type(self, *args[:-1])
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)
2140 __swig_destroy__ = LeapPython.delete_Config
2141 __del__ =
lambda self:
None 2142 Config_swigregister = LeapPython.Config_swigregister
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__', {}))
2154 __repr__ = _swig_repr
2155 __swig_destroy__ = LeapPython.delete_Controller
2156 __del__ =
lambda self:
None 2159 this = LeapPython.new_Controller(*args)
2161 self.this.append(this)
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
2173 return LeapPython.Controller_set_policy_flags(self, flags)
2176 return LeapPython.Controller_set_policy(self, policy)
2179 return LeapPython.Controller_clear_policy(self, policy)
2182 return LeapPython.Controller_is_policy_set(self, policy)
2185 return LeapPython.Controller_add_listener(self, listener)
2188 return LeapPython.Controller_remove_listener(self, listener)
2191 return LeapPython.Controller_frame(self, history)
2194 return LeapPython.Controller_enable_gesture(self, type, enable)
2197 return LeapPython.Controller_is_gesture_enabled(self, type)
2200 return LeapPython.Controller_now(self)
2201 __swig_getmethods__[
"is_connected"] = LeapPython.Controller_is_connected_get
2204 __swig_getmethods__[
"has_focus"] = LeapPython.Controller_has_focus_get
2207 __swig_getmethods__[
"policy_flags"] = LeapPython.Controller_policy_flags_get
2210 __swig_getmethods__[
"config"] = LeapPython.Controller_config_get
2213 __swig_getmethods__[
"images"] = LeapPython.Controller_images_get
2216 __swig_getmethods__[
"located_screens"] = LeapPython.Controller_located_screens_get
2219 __swig_getmethods__[
"devices"] = LeapPython.Controller_devices_get
2222 __swig_getmethods__[
"tracked_quad"] = LeapPython.Controller_tracked_quad_get
2225 __swig_getmethods__[
"bug_report"] = LeapPython.Controller_bug_report_get
2227 bug_report =
_swig_property(LeapPython.Controller_bug_report_get)
2228 Controller_swigregister = LeapPython.Controller_swigregister
2232 __swig_setmethods__ = {}
2233 __setattr__ =
lambda self, name, value:
_swig_setattr(self, Listener, name, value)
2234 __swig_getmethods__ = {}
2236 __repr__ = _swig_repr
2243 this = LeapPython.new_Listener(_self, )
2245 self.this.append(this)
2248 __swig_destroy__ = LeapPython.delete_Listener
2249 __del__ =
lambda self:
None 2252 return LeapPython.Listener_on_init(self, arg0)
2255 return LeapPython.Listener_on_connect(self, arg0)
2258 return LeapPython.Listener_on_disconnect(self, arg0)
2261 return LeapPython.Listener_on_exit(self, arg0)
2264 return LeapPython.Listener_on_frame(self, arg0)
2267 return LeapPython.Listener_on_focus_gained(self, arg0)
2270 return LeapPython.Listener_on_focus_lost(self, arg0)
2273 return LeapPython.Listener_on_service_connect(self, arg0)
2276 return LeapPython.Listener_on_service_disconnect(self, arg0)
2279 return LeapPython.Listener_on_device_change(self, arg0)
2282 return LeapPython.Listener_on_images(self, arg0)
2285 LeapPython.disown_Listener(self)
2287 Listener_swigregister = LeapPython.Listener_swigregister
def scale_probability(self, sinceFrame)
def set_policy(self, policy)
LEAP_EXPORT PointableList & append(const PointableList &other)
def distance_to(self, other)
PointableList_swigregister
def rotation_angle(self, args)
def scale_factor(self, sinceFrame)
def is_gesture_enabled(self, type)
def add_listener(self, listener)
LEAP_EXPORT Vector translation(const Frame &sinceFrame) const
def __init__(self, nelements)
CircleGesture_swigregister
def normalize_point(self, position, clamp=True)
LEAP_EXPORT Finger finger(int32_t id) const
def __getitem__(self, index)
def __setitem__(self, index, value)
def __getitem__(self, index)
def enable_gesture(self, type, enable=True)
def closest_screen(self, position)
Vector cross(const Vector &other) const
def __getitem__(self, index)
def rotation_probability(self, sinceFrame)
def rotation_axis(self, sinceFrame)
def __iadd__(self, other)
void deserialize(const std::string &str)
LEAP_EXPORT GestureList & append(const GestureList &other)
LEAP_EXPORT GestureList gestures() const
def on_connect(self, arg0)
def __idiv__(self, scalar)
LEAP_EXPORT ImageList & append(const ImageList &other)
def joint_position(self, jointIx)
LEAP_EXPORT Vector translation(const Frame &sinceFrame) const
LEAP_EXPORT Tool tool(int32_t id) const
def __getitem__(self, index)
def rotation_axis(self, sinceFrame)
def _swig_getattr(self, class_type, name)
def rotation_matrix(self, sinceFrame)
LEAP_EXPORT int64_t now() const
def translation_probability(self, sinceFrame)
def __setitem__(self, index, value)
def __mul__(self, scalar)
LEAP_EXPORT Finger finger(int32_t id) const
def is_policy_set(self, policy)
def scale_probability(self, sinceFrame)
def denormalize_point(self, normalizedPosition)
def distance_to_point(self, point)
def rotation_matrix(self, sinceFrame)
SwipeGesture_swigregister
def _swig_getattr_nondynamic(self, class_type, name, static=1)
LEAP_EXPORT Vector intersect(const Pointable &pointable, bool normalize, float clampRatio=1.0f) const
LEAP_EXPORT Vector warp(const Vector &xy) const
LEAP_EXPORT HandList & append(const HandList &other)
LEAP_EXPORT Vector rectify(const Vector &uv) const
LEAP_EXPORT const float * distortion() const
def on_device_change(self, arg0)
LEAP_EXPORT MaskList & append(const MaskList &other)
def distance_to_boundary(self, position)
LEAP_EXPORT Pointable pointable(int32_t id) const
def __getitem__(self, index)
LEAP_EXPORT FingerList extended() const
InteractionBox_swigregister
LEAP_EXPORT Bone bone(Bone::Type boneIx) const
def scale_factor(self, sinceFrame)
LEAP_EXPORT Gesture gesture(int32_t id) const
def on_disconnect(self, arg0)
def rotation_angle(self, args)
def remove_listener(self, listener)
ScreenTapGesture_swigregister
def on_focus_gained(self, arg0)
def begin_recording(self)
KeyTapGesture_swigregister
def set_policy_flags(self, flags)
LEAP_EXPORT const unsigned char * data() const
def __getitem__(self, index)
float dot(const Vector &other) const
LEAP_EXPORT Tool tool(int32_t id) const
def clear_policy(self, policy)
LEAP_EXPORT Hand hand(int32_t id) const
def transform_point(self, arg2)
ScreenTapGesture_class_type
def set_rotation(self, axis, angleRadians)
def __div__(self, scalar)
def on_images(self, arg0)
def translation_probability(self, sinceFrame)
def closest_screen_hit(self, args)
LEAP_EXPORT PointableList extended() const
def _swig_setattr_nondynamic(self, class_type, name, value, static=1)
def on_service_connect(self, arg0)
def angle_to(self, other)
LEAP_EXPORT const unsigned char * data() const
def on_focus_lost(self, arg0)
def __isub__(self, other)
LEAP_EXPORT FingerList & append(const FingerList &other)
def on_service_disconnect(self, arg0)
def rotation_probability(self, sinceFrame)
def __getitem__(self, index)
def __init__(self, args, kwargs)
def __init__(self, nelements)
SwigPyIterator_swigregister
def __imul__(self, other)
LEAP_EXPORT DeviceList & append(const DeviceList &other)
LEAP_EXPORT Frame frame(int history=0) const
def _swig_setattr(self, class_type, name, value)
def to_array_3x3(self, output=None)
def __imul__(self, scalar)
def is_service_connected(self)
def __init__(self, args, kwargs)
def __getitem__(self, index)
std::string serialize() const
LEAP_EXPORT Vector normal() const
def __getitem__(self, index)
def finger_type(self, type)
def transform_direction(self, arg2)
LEAP_EXPORT Pointable pointable(int32_t id) const
def to_array_4x4(self, output=None)
def __getitem__(self, index)
def __getitem__(self, index)
LEAP_EXPORT Vector project(const Vector &position, bool normalize, float clampRatio=1.0f) const