1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
--- /usr/include/Leap.i 2019-01-25 12:36:21.000000000 +0100
+++ Leap.i 2019-01-26 15:17:38.023742750 +0100
@@ -539,7 +539,7 @@
if _newclass:data = _swig_property(data)
__swig_getmethods__["distortion"] = distortion
if _newclass:distortion = _swig_property(distortion)
-%}}
+}}
%extend Leap::Mask {
%pythoncode {
@@ -549,7 +549,7 @@
return ptr
__swig_getmethods__["data"] = data
if _newclass:data = _swig_property(data)
-%}}
+}}
%extend Leap::Frame {
%pythoncode {
@@ -562,7 +562,7 @@
LeapPython.Frame_deserialize(self, tup[0], tup[1])
__swig_getmethods__["serialize"] = serialize
if _newclass:serialize = _swig_property(serialize)
-%}}
+}}
%constattrib( Leap::Image, void*, dataPointer );
%constattrib( Leap::Image, void*, distortionPointer );
@@ -988,7 +988,7 @@
%pythoncode {
def to_float_array(self): return [self.x, self.y, self.z]
def to_tuple(self): return (self.x, self.y, self.z)
-%}}
+}}
%extend Leap::Matrix {
%pythoncode {
def to_array_3x3(self, output = None):
@@ -1006,7 +1006,7 @@
output[8], output[9], output[10], output[11] = self.z_basis.x, self.z_basis.y, self.z_basis.z, 0.0
output[12], output[13], output[14], output[15] = self.origin.x, self.origin.y, self.origin.z, 1.0
return output
-%}}
+}}
#endif
@@ -1094,7 +1094,7 @@
while _pos < len(self):
yield self[_pos]
_pos += 1
-%}}
+}}
%enddef
#else
@@ -1153,7 +1153,7 @@
elif type == LeapPython.Config_TYPE_STRING:
return LeapPython.Config_set_string(self, *args)
return False
-%}}
+}}
// Ignore methods that are unnecessary due to get and set functions defined above
%feature("shadow") Leap::Config::type(const std::string& key) const %{%}
%feature("shadow") Leap::Config::getBool(const std::string& key) const %{%}
|