diff -ur enable-4.5.0/kiva/agg/src/affine_matrix.i enable-4.5.0_swig_fix/kiva/agg/src/affine_matrix.i
old
|
new
|
|
157 | 157 | }; |
158 | 158 | }; |
159 | 159 | |
160 | | %pythoncode { |
| 160 | %pythoncode %{ |
161 | 161 | def is_sequence(arg): |
162 | 162 | try: |
163 | 163 | len(arg) |
… |
… |
|
184 | 184 | """ |
185 | 185 | self.multiply(other) |
186 | 186 | return self |
187 | | } |
| 187 | %} |
188 | 188 | |
189 | 189 | %extend agg24::trans_affine |
190 | 190 | { |
diff -ur enable-4.5.0/kiva/agg/src/constants.i enable-4.5.0_swig_fix/kiva/agg/src/constants.i
old
|
new
|
|
44 | 44 | unsigned path_cmd(unsigned c); |
45 | 45 | unsigned path_flags(unsigned c); |
46 | 46 | |
47 | | %pythoncode { |
| 47 | %pythoncode %{ |
48 | 48 | |
49 | 49 | #---------------------------------------------------------------------------- |
50 | 50 | # |
… |
… |
|
141 | 141 | for key,value in interp_string_map.items(): |
142 | 142 | interp_enum_map[value] = key |
143 | 143 | |
144 | | } |
| 144 | %} |
diff -ur enable-4.5.0/kiva/agg/src/hit_test.i enable-4.5.0_swig_fix/kiva/agg/src/hit_test.i
old
|
new
|
|
22 | 22 | } |
23 | 23 | |
24 | 24 | %pythoncode |
25 | | { |
| 25 | %{ |
26 | 26 | from numpy import shape, transpose, zeros, rank, reshape, int32 |
27 | 27 | |
28 | 28 | def points_in_polygon(pts, poly_pts, use_winding=False): |
… |
… |
|
92 | 92 | else: |
93 | 93 | _agg.points_in_polygon(pts, poly_pts, results) |
94 | 94 | return results |
95 | | } |
| 95 | %} |
diff -ur enable-4.5.0/kiva/agg/src/rgba.i enable-4.5.0_swig_fix/kiva/agg/src/rgba.i
old
|
new
|
|
74 | 74 | } |
75 | 75 | |
76 | 76 | |
77 | | %pythoncode { |
| 77 | %pythoncode %{ |
78 | 78 | def is_sequence(arg): |
79 | 79 | try: |
80 | 80 | len(arg) |
… |
… |
|
90 | 90 | if len(args) not in [3,4]: |
91 | 91 | raise ValueError, "array argument must be 1x3 or 1x4" |
92 | 92 | _Rgba.__init__(self,*args) |
93 | | } |
| 93 | %} |
94 | 94 | |
95 | 95 | %clear double r, double g, double b, double a; |