KiCad Pcbnew Python Scripting
pcbnew.py
Go to the documentation of this file.
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.8
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 False:
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_pcbnew', [dirname(__file__)])
19  except ImportError:
20  import _pcbnew
21  return _pcbnew
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_pcbnew', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _pcbnew = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _pcbnew
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  if _newclass:
51  object.__setattr__(self, name, value)
52  else:
53  self.__dict__[name] = value
54  else:
55  raise AttributeError("You cannot add attributes to %s" % self)
56 
57 
58 def _swig_setattr(self, class_type, name, value):
59  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
60 
61 
62 def _swig_getattr_nondynamic(self, class_type, name, static=1):
63  if (name == "thisown"):
64  return self.this.own()
65  method = class_type.__swig_getmethods__.get(name, None)
66  if method:
67  return method(self)
68  if (not static):
69  return object.__getattr__(self, name)
70  else:
71  raise AttributeError(name)
72 
73 def _swig_getattr(self, class_type, name):
74  return _swig_getattr_nondynamic(self, class_type, name, 0)
75 
76 
77 def _swig_repr(self):
78  try:
79  strthis = "proxy of " + self.this.__repr__()
80  except Exception:
81  strthis = ""
82  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
83 
84 try:
85  _object = object
86  _newclass = 1
87 except AttributeError:
88  class _object:
89  pass
90  _newclass = 0
91 
92 
94  """Proxy of C++ swig::SwigPyIterator class."""
95 
96  __swig_setmethods__ = {}
97  __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
98  __swig_getmethods__ = {}
99  __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)
100 
101  def __init__(self, *args, **kwargs):
102  raise AttributeError("No constructor defined - class is abstract")
103  __repr__ = _swig_repr
104  __swig_destroy__ = _pcbnew.delete_SwigPyIterator
105  __del__ = lambda self: None
106 
107  def value(self):
108  """value(SwigPyIterator self) -> PyObject *"""
109  return _pcbnew.SwigPyIterator_value(self)
110 
111 
112  def incr(self, n=1):
113  """
114  incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
115  incr(SwigPyIterator self) -> SwigPyIterator
116  """
117  return _pcbnew.SwigPyIterator_incr(self, n)
118 
119 
120  def decr(self, n=1):
121  """
122  decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator
123  decr(SwigPyIterator self) -> SwigPyIterator
124  """
125  return _pcbnew.SwigPyIterator_decr(self, n)
126 
127 
128  def distance(self, x):
129  """distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
130  return _pcbnew.SwigPyIterator_distance(self, x)
131 
132 
133  def equal(self, x):
134  """equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
135  return _pcbnew.SwigPyIterator_equal(self, x)
136 
137 
138  def copy(self):
139  """copy(SwigPyIterator self) -> SwigPyIterator"""
140  return _pcbnew.SwigPyIterator_copy(self)
141 
142 
143  def next(self):
144  """next(SwigPyIterator self) -> PyObject *"""
145  return _pcbnew.SwigPyIterator_next(self)
146 
147 
148  def __next__(self):
149  """__next__(SwigPyIterator self) -> PyObject *"""
150  return _pcbnew.SwigPyIterator___next__(self)
151 
152 
153  def previous(self):
154  """previous(SwigPyIterator self) -> PyObject *"""
155  return _pcbnew.SwigPyIterator_previous(self)
156 
157 
158  def advance(self, n):
159  """advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
160  return _pcbnew.SwigPyIterator_advance(self, n)
161 
162 
163  def __eq__(self, x):
164  """__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
165  return _pcbnew.SwigPyIterator___eq__(self, x)
166 
167 
168  def __ne__(self, x):
169  """__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
170  return _pcbnew.SwigPyIterator___ne__(self, x)
171 
172 
173  def __iadd__(self, n):
174  """__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
175  return _pcbnew.SwigPyIterator___iadd__(self, n)
176 
177 
178  def __isub__(self, n):
179  """__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
180  return _pcbnew.SwigPyIterator___isub__(self, n)
181 
182 
183  def __add__(self, n):
184  """__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
185  return _pcbnew.SwigPyIterator___add__(self, n)
186 
187 
188  def __sub__(self, *args):
189  """
190  __sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
191  __sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
192  """
193  return _pcbnew.SwigPyIterator___sub__(self, *args)
194 
195  def __iter__(self):
196  return self
197 SwigPyIterator_swigregister = _pcbnew.SwigPyIterator_swigregister
198 SwigPyIterator_swigregister(SwigPyIterator)
199 
201  """Proxy of C++ std::basic_string<(char)> class."""
202 
203  __swig_setmethods__ = {}
204  __setattr__ = lambda self, name, value: _swig_setattr(self, string, name, value)
205  __swig_getmethods__ = {}
206  __getattr__ = lambda self, name: _swig_getattr(self, string, name)
207  __repr__ = _swig_repr
208 
209  def length(self):
210  """length(string self) -> std::basic_string< char >::size_type"""
211  return _pcbnew.string_length(self)
212 
213 
214  def max_size(self):
215  """max_size(string self) -> std::basic_string< char >::size_type"""
216  return _pcbnew.string_max_size(self)
217 
218 
219  def capacity(self):
220  """capacity(string self) -> std::basic_string< char >::size_type"""
221  return _pcbnew.string_capacity(self)
222 
223 
224  def reserve(self, __res_arg=0):
225  """
226  reserve(string self, std::basic_string< char >::size_type __res_arg=0)
227  reserve(string self)
228  """
229  return _pcbnew.string_reserve(self, __res_arg)
230 
231 
232  def copy(self, __s, __n, __pos=0):
233  """
234  copy(string self, char * __s, std::basic_string< char >::size_type __n, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
235  copy(string self, char * __s, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
236  """
237  return _pcbnew.string_copy(self, __s, __n, __pos)
238 
239 
240  def c_str(self):
241  """c_str(string self) -> char const *"""
242  return _pcbnew.string_c_str(self)
243 
244 
245  def find(self, *args):
246  """
247  find(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
248  find(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
249  find(string self, string __str) -> std::basic_string< char >::size_type
250  find(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
251  find(string self, char __c) -> std::basic_string< char >::size_type
252  """
253  return _pcbnew.string_find(self, *args)
254 
255 
256  def rfind(self, *args):
257  """
258  rfind(string self, string __str, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
259  rfind(string self, string __str) -> std::basic_string< char >::size_type
260  rfind(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
261  rfind(string self, char __c, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
262  rfind(string self, char __c) -> std::basic_string< char >::size_type
263  """
264  return _pcbnew.string_rfind(self, *args)
265 
266 
267  def find_first_of(self, *args):
268  """
269  find_first_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
270  find_first_of(string self, string __str) -> std::basic_string< char >::size_type
271  find_first_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
272  find_first_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
273  find_first_of(string self, char __c) -> std::basic_string< char >::size_type
274  """
275  return _pcbnew.string_find_first_of(self, *args)
276 
277 
278  def find_last_of(self, *args):
279  """
280  find_last_of(string self, string __str, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
281  find_last_of(string self, string __str) -> std::basic_string< char >::size_type
282  find_last_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
283  find_last_of(string self, char __c, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
284  find_last_of(string self, char __c) -> std::basic_string< char >::size_type
285  """
286  return _pcbnew.string_find_last_of(self, *args)
287 
288 
289  def find_first_not_of(self, *args):
290  """
291  find_first_not_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
292  find_first_not_of(string self, string __str) -> std::basic_string< char >::size_type
293  find_first_not_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
294  find_first_not_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
295  find_first_not_of(string self, char __c) -> std::basic_string< char >::size_type
296  """
297  return _pcbnew.string_find_first_not_of(self, *args)
298 
299 
300  def find_last_not_of(self, *args):
301  """
302  find_last_not_of(string self, string __str, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
303  find_last_not_of(string self, string __str) -> std::basic_string< char >::size_type
304  find_last_not_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
305  find_last_not_of(string self, char __c, std::basic_string< char >::size_type __pos) -> std::basic_string< char >::size_type
306  find_last_not_of(string self, char __c) -> std::basic_string< char >::size_type
307  """
308  return _pcbnew.string_find_last_not_of(self, *args)
309 
310 
311  def substr(self, *args):
312  """
313  substr(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n) -> string
314  substr(string self, std::basic_string< char >::size_type __pos=0) -> string
315  substr(string self) -> string
316  """
317  return _pcbnew.string_substr(self, *args)
318 
319 
320  def empty(self):
321  """empty(string self) -> bool"""
322  return _pcbnew.string_empty(self)
323 
324 
325  def size(self):
326  """size(string self) -> std::basic_string< char >::size_type"""
327  return _pcbnew.string_size(self)
328 
329 
330  def swap(self, v):
331  """swap(string self, string v)"""
332  return _pcbnew.string_swap(self, v)
333 
334 
335  def begin(self):
336  """begin(string self) -> std::basic_string< char >::iterator"""
337  return _pcbnew.string_begin(self)
338 
339 
340  def end(self):
341  """end(string self) -> std::basic_string< char >::iterator"""
342  return _pcbnew.string_end(self)
343 
344 
345  def rbegin(self):
346  """rbegin(string self) -> std::basic_string< char >::reverse_iterator"""
347  return _pcbnew.string_rbegin(self)
348 
349 
350  def rend(self):
351  """rend(string self) -> std::basic_string< char >::reverse_iterator"""
352  return _pcbnew.string_rend(self)
353 
354 
355  def get_allocator(self):
356  """get_allocator(string self) -> std::basic_string< char >::allocator_type"""
357  return _pcbnew.string_get_allocator(self)
358 
359 
360  def erase(self, *args):
361  """
362  erase(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n) -> string
363  erase(string self, std::basic_string< char >::size_type __pos=0) -> string
364  erase(string self) -> string
365  erase(string self, std::basic_string< char >::iterator pos) -> std::basic_string< char >::iterator
366  erase(string self, std::basic_string< char >::iterator first, std::basic_string< char >::iterator last) -> std::basic_string< char >::iterator
367  """
368  return _pcbnew.string_erase(self, *args)
369 
370 
371  def __init__(self, *args):
372  """
373  __init__(std::basic_string<(char)> self, char const * __s, std::basic_string< char >::size_type __n) -> string
374  __init__(std::basic_string<(char)> self) -> string
375  __init__(std::basic_string<(char)> self, string arg2) -> string
376  __init__(std::basic_string<(char)> self, std::basic_string< char >::size_type size, std::basic_string< char >::value_type value) -> string
377  """
378  this = _pcbnew.new_string(*args)
379  try:
380  self.this.append(this)
381  except Exception:
382  self.this = this
383 
384  def assign(self, *args):
385  """
386  assign(string self, string __str) -> string
387  assign(string self, string __str, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> string
388  assign(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
389  assign(string self, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
390  """
391  return _pcbnew.string_assign(self, *args)
392 
393 
394  def resize(self, *args):
395  """
396  resize(string self, std::basic_string< char >::size_type new_size)
397  resize(string self, std::basic_string< char >::size_type new_size, std::basic_string< char >::value_type x)
398  """
399  return _pcbnew.string_resize(self, *args)
400 
401 
402  def iterator(self):
403  """iterator(string self) -> SwigPyIterator"""
404  return _pcbnew.string_iterator(self)
405 
406  def __iter__(self):
407  return self.iterator()
408 
409  def __nonzero__(self):
410  """__nonzero__(string self) -> bool"""
411  return _pcbnew.string___nonzero__(self)
412 
413 
414  def __bool__(self):
415  """__bool__(string self) -> bool"""
416  return _pcbnew.string___bool__(self)
417 
418 
419  def __len__(self):
420  """__len__(string self) -> std::basic_string< char >::size_type"""
421  return _pcbnew.string___len__(self)
422 
423 
424  def __getslice__(self, i, j):
425  """__getslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j) -> string"""
426  return _pcbnew.string___getslice__(self, i, j)
427 
428 
429  def __setslice__(self, *args):
430  """
431  __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)
432  __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j, string v)
433  """
434  return _pcbnew.string___setslice__(self, *args)
435 
436 
437  def __delslice__(self, i, j):
438  """__delslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)"""
439  return _pcbnew.string___delslice__(self, i, j)
440 
441 
442  def __delitem__(self, *args):
443  """
444  __delitem__(string self, std::basic_string< char >::difference_type i)
445  __delitem__(string self, PySliceObject * slice)
446  """
447  return _pcbnew.string___delitem__(self, *args)
448 
449 
450  def __getitem__(self, *args):
451  """
452  __getitem__(string self, PySliceObject * slice) -> string
453  __getitem__(string self, std::basic_string< char >::difference_type i) -> std::basic_string< char >::value_type
454  """
455  return _pcbnew.string___getitem__(self, *args)
456 
457 
458  def __setitem__(self, *args):
459  """
460  __setitem__(string self, PySliceObject * slice, string v)
461  __setitem__(string self, PySliceObject * slice)
462  __setitem__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::value_type x)
463  """
464  return _pcbnew.string___setitem__(self, *args)
465 
466 
467  def insert(self, *args):
468  """
469  insert(string self, std::basic_string< char >::size_type __pos1, string __str) -> string
470  insert(string self, std::basic_string< char >::size_type __pos1, string __str, std::basic_string< char >::size_type __pos2, std::basic_string< char >::size_type __n) -> string
471  insert(string self, std::basic_string< char >::size_type __pos, char const * __s, std::basic_string< char >::size_type __n) -> string
472  insert(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, char __c) -> string
473  insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::value_type x) -> std::basic_string< char >::iterator
474  insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
475  insert(string self, std::basic_string< char >::iterator __p, std::basic_string< char >::size_type __n, char __c)
476  """
477  return _pcbnew.string_insert(self, *args)
478 
479 
480  def replace(self, *args):
481  """
482  replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, string __str) -> string
483  replace(string self, std::basic_string< char >::size_type __pos1, std::basic_string< char >::size_type __n1, string __str, std::basic_string< char >::size_type __pos2, std::basic_string< char >::size_type __n2) -> string
484  replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n1, char const * __s, std::basic_string< char >::size_type __n2) -> string
485  replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n1, std::basic_string< char >::size_type __n2, char __c) -> string
486  replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, string __str) -> string
487  replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __s, std::basic_string< char >::size_type __n) -> string
488  replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, std::basic_string< char >::size_type __n, char __c) -> string
489  replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __k1, char const * __k2) -> string
490  replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, std::basic_string< char >::const_iterator __k1, std::basic_string< char >::const_iterator __k2) -> string
491  """
492  return _pcbnew.string_replace(self, *args)
493 
494 
495  def __iadd__(self, v):
496  """__iadd__(string self, string v) -> string"""
497  return _pcbnew.string___iadd__(self, v)
498 
499 
500  def __add__(self, v):
501  """__add__(string self, string v) -> string"""
502  return _pcbnew.string___add__(self, v)
503 
504 
505  def __radd__(self, v):
506  """__radd__(string self, string v) -> string"""
507  return _pcbnew.string___radd__(self, v)
508 
509 
510  def __str__(self):
511  """__str__(string self) -> string"""
512  return _pcbnew.string___str__(self)
513 
514 
515  def __rlshift__(self, out):
516  """__rlshift__(string self, std::basic_ostream< char,std::char_traits< char > > & out) -> std::basic_ostream< char,std::char_traits< char > > &"""
517  return _pcbnew.string___rlshift__(self, out)
518 
519 
520  def __eq__(self, v):
521  """__eq__(string self, string v) -> bool"""
522  return _pcbnew.string___eq__(self, v)
523 
524 
525  def __ne__(self, v):
526  """__ne__(string self, string v) -> bool"""
527  return _pcbnew.string___ne__(self, v)
528 
529 
530  def __gt__(self, v):
531  """__gt__(string self, string v) -> bool"""
532  return _pcbnew.string___gt__(self, v)
533 
534 
535  def __lt__(self, v):
536  """__lt__(string self, string v) -> bool"""
537  return _pcbnew.string___lt__(self, v)
538 
539 
540  def __ge__(self, v):
541  """__ge__(string self, string v) -> bool"""
542  return _pcbnew.string___ge__(self, v)
543 
544 
545  def __le__(self, v):
546  """__le__(string self, string v) -> bool"""
547  return _pcbnew.string___le__(self, v)
548 
549  __swig_destroy__ = _pcbnew.delete_string
550  __del__ = lambda self: None
551 string_swigregister = _pcbnew.string_swigregister
552 string_swigregister(string)
553 cvar = _pcbnew.cvar
554 string.npos = _pcbnew.cvar.string_npos
555 
556 
557 _pcbnew.SHARED_PTR_DISOWN_swigconstant(_pcbnew)
558 SHARED_PTR_DISOWN = _pcbnew.SHARED_PTR_DISOWN
560  """Proxy of C++ KI_PARAM_ERROR class."""
561 
562  __swig_setmethods__ = {}
563  __setattr__ = lambda self, name, value: _swig_setattr(self, KI_PARAM_ERROR, name, value)
564  __swig_getmethods__ = {}
565  __getattr__ = lambda self, name: _swig_getattr(self, KI_PARAM_ERROR, name)
566  __repr__ = _swig_repr
567 
568  def __init__(self, *args):
569  """
570  __init__(KI_PARAM_ERROR self, wxString aMessage) -> KI_PARAM_ERROR
571  __init__(KI_PARAM_ERROR self) -> KI_PARAM_ERROR
572  """
573  this = _pcbnew.new_KI_PARAM_ERROR(*args)
574  try:
575  self.this.append(this)
576  except Exception:
577  self.this = this
578 
579  def What(self):
580  """What(KI_PARAM_ERROR self) -> wxString"""
581  return _pcbnew.KI_PARAM_ERROR_What(self)
582 
583  __swig_destroy__ = _pcbnew.delete_KI_PARAM_ERROR
584  __del__ = lambda self: None
585 KI_PARAM_ERROR_swigregister = _pcbnew.KI_PARAM_ERROR_swigregister
586 KI_PARAM_ERROR_swigregister(KI_PARAM_ERROR)
587 
589  """Proxy of C++ IO_ERROR class."""
590 
591  __swig_setmethods__ = {}
592  __setattr__ = lambda self, name, value: _swig_setattr(self, IO_ERROR, name, value)
593  __swig_getmethods__ = {}
594  __getattr__ = lambda self, name: _swig_getattr(self, IO_ERROR, name)
595  __repr__ = _swig_repr
596 
597  def __init__(self, *args):
598  """
599  __init__(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber) -> IO_ERROR
600  __init__(IO_ERROR self) -> IO_ERROR
601  """
602  this = _pcbnew.new_IO_ERROR(*args)
603  try:
604  self.this.append(this)
605  except Exception:
606  self.this = this
607 
608  def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber):
609  """init(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber)"""
610  return _pcbnew.IO_ERROR_init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
611 
612 
613  def Problem(self):
614  """Problem(IO_ERROR self) -> wxString"""
615  return _pcbnew.IO_ERROR_Problem(self)
616 
617 
618  def Where(self):
619  """Where(IO_ERROR self) -> wxString"""
620  return _pcbnew.IO_ERROR_Where(self)
621 
622 
623  def What(self):
624  """What(IO_ERROR self) -> wxString"""
625  return _pcbnew.IO_ERROR_What(self)
626 
627  __swig_destroy__ = _pcbnew.delete_IO_ERROR
628  __del__ = lambda self: None
629 IO_ERROR_swigregister = _pcbnew.IO_ERROR_swigregister
630 IO_ERROR_swigregister(IO_ERROR)
631 
632 class DHEAD(_object):
633  """Proxy of C++ DHEAD class."""
634 
635  __swig_setmethods__ = {}
636  __setattr__ = lambda self, name, value: _swig_setattr(self, DHEAD, name, value)
637  __swig_getmethods__ = {}
638  __getattr__ = lambda self, name: _swig_getattr(self, DHEAD, name)
639 
640  def __init__(self, *args, **kwargs):
641  raise AttributeError("No constructor defined")
642  __repr__ = _swig_repr
643 
644  def DeleteAll(self):
645  """DeleteAll(DHEAD self)"""
646  return _pcbnew.DHEAD_DeleteAll(self)
647 
648 
649  def SetOwnership(self, Iown):
650  """SetOwnership(DHEAD self, bool Iown)"""
651  return _pcbnew.DHEAD_SetOwnership(self, Iown)
652 
653 
654  def GetCount(self):
655  """GetCount(DHEAD self) -> unsigned int"""
656  return _pcbnew.DHEAD_GetCount(self)
657 
658 DHEAD_swigregister = _pcbnew.DHEAD_swigregister
659 DHEAD_swigregister(DHEAD)
660 
661 
663  """wxSetDefaultPyEncoding(char const * encoding)"""
664  return _pcbnew.wxSetDefaultPyEncoding(encoding)
665 
667  """wxGetDefaultPyEncoding() -> char const *"""
668  return _pcbnew.wxGetDefaultPyEncoding()
670  """Proxy of C++ wxRect class."""
671 
672  __swig_setmethods__ = {}
673  __setattr__ = lambda self, name, value: _swig_setattr(self, wxRect, name, value)
674  __swig_getmethods__ = {}
675  __getattr__ = lambda self, name: _swig_getattr(self, wxRect, name)
676  __repr__ = _swig_repr
677 
678  def __init__(self, *args):
679  """
680  __init__(wxRect self) -> wxRect
681  __init__(wxRect self, int xx, int yy, int ww, int hh) -> wxRect
682  __init__(wxRect self, wxPoint topLeft, wxPoint bottomRight) -> wxRect
683  __init__(wxRect self, wxPoint pt, wxSize size) -> wxRect
684  __init__(wxRect self, wxSize size) -> wxRect
685  """
686  this = _pcbnew.new_wxRect(*args)
687  try:
688  self.this.append(this)
689  except Exception:
690  self.this = this
691 
692  def GetX(self):
693  """GetX(wxRect self) -> int"""
694  return _pcbnew.wxRect_GetX(self)
695 
696 
697  def SetX(self, xx):
698  """SetX(wxRect self, int xx)"""
699  return _pcbnew.wxRect_SetX(self, xx)
700 
701 
702  def GetY(self):
703  """GetY(wxRect self) -> int"""
704  return _pcbnew.wxRect_GetY(self)
705 
706 
707  def SetY(self, yy):
708  """SetY(wxRect self, int yy)"""
709  return _pcbnew.wxRect_SetY(self, yy)
710 
711 
712  def GetWidth(self):
713  """GetWidth(wxRect self) -> int"""
714  return _pcbnew.wxRect_GetWidth(self)
715 
716 
717  def SetWidth(self, w):
718  """SetWidth(wxRect self, int w)"""
719  return _pcbnew.wxRect_SetWidth(self, w)
720 
721 
722  def GetHeight(self):
723  """GetHeight(wxRect self) -> int"""
724  return _pcbnew.wxRect_GetHeight(self)
725 
726 
727  def SetHeight(self, h):
728  """SetHeight(wxRect self, int h)"""
729  return _pcbnew.wxRect_SetHeight(self, h)
730 
731 
732  def GetPosition(self):
733  """GetPosition(wxRect self) -> wxPoint"""
734  return _pcbnew.wxRect_GetPosition(self)
735 
736 
737  def SetPosition(self, p):
738  """SetPosition(wxRect self, wxPoint p)"""
739  return _pcbnew.wxRect_SetPosition(self, p)
740 
741  __swig_setmethods__["x"] = _pcbnew.wxRect_x_set
742  __swig_getmethods__["x"] = _pcbnew.wxRect_x_get
743  if _newclass:
744  x = _swig_property(_pcbnew.wxRect_x_get, _pcbnew.wxRect_x_set)
745  __swig_setmethods__["y"] = _pcbnew.wxRect_y_set
746  __swig_getmethods__["y"] = _pcbnew.wxRect_y_get
747  if _newclass:
748  y = _swig_property(_pcbnew.wxRect_y_get, _pcbnew.wxRect_y_set)
749  __swig_setmethods__["width"] = _pcbnew.wxRect_width_set
750  __swig_getmethods__["width"] = _pcbnew.wxRect_width_get
751  if _newclass:
752  width = _swig_property(_pcbnew.wxRect_width_get, _pcbnew.wxRect_width_set)
753  __swig_setmethods__["height"] = _pcbnew.wxRect_height_set
754  __swig_getmethods__["height"] = _pcbnew.wxRect_height_get
755  if _newclass:
756  height = _swig_property(_pcbnew.wxRect_height_get, _pcbnew.wxRect_height_set)
757 
758  def Get(self):
759  """Get(wxRect self) -> PyObject *"""
760  return _pcbnew.wxRect_Get(self)
761 
762 
763 
764  def __eq__(self,other):
765  return self.x==other.x and self.y==other.y and self.width==other.width and self.height==other.height
766  def __str__(self): return str(self.Get())
767  def __repr__(self): return 'wxRect'+str(self.Get())
768  def __len__(self): return len(self.Get())
769  def __getitem__(self, index): return self.Get()[index]
770  def __setitem__(self, index, val):
771  if index == 0: self.SetX(val)
772  elif index == 1: self.SetY(val)
773  elif index == 2: self.SetWidth(val)
774  elif index == 3: self.SetHeight(val)
775  else: raise IndexError
776  def __nonzero__(self): return self.Get() != (0,0,0,0)
777  __safe_for_unpickling__ = True
778 
779  __swig_destroy__ = _pcbnew.delete_wxRect
780  __del__ = lambda self: None
781 wxRect_swigregister = _pcbnew.wxRect_swigregister
782 wxRect_swigregister(wxRect)
783 
785  """Proxy of C++ wxSize class."""
786 
787  __swig_setmethods__ = {}
788  __setattr__ = lambda self, name, value: _swig_setattr(self, wxSize, name, value)
789  __swig_getmethods__ = {}
790  __getattr__ = lambda self, name: _swig_getattr(self, wxSize, name)
791  __repr__ = _swig_repr
792  __swig_setmethods__["x"] = _pcbnew.wxSize_x_set
793  __swig_getmethods__["x"] = _pcbnew.wxSize_x_get
794  if _newclass:
795  x = _swig_property(_pcbnew.wxSize_x_get, _pcbnew.wxSize_x_set)
796  __swig_setmethods__["y"] = _pcbnew.wxSize_y_set
797  __swig_getmethods__["y"] = _pcbnew.wxSize_y_get
798  if _newclass:
799  y = _swig_property(_pcbnew.wxSize_y_get, _pcbnew.wxSize_y_set)
800 
801  def __init__(self, *args):
802  """
803  __init__(wxSize self, int xx, int yy) -> wxSize
804  __init__(wxSize self, double xx, double yy) -> wxSize
805  """
806  this = _pcbnew.new_wxSize(*args)
807  try:
808  self.this.append(this)
809  except Exception:
810  self.this = this
811 
812  def Get(self):
813  """Get(wxSize self) -> PyObject *"""
814  return _pcbnew.wxSize_Get(self)
815 
816  __swig_destroy__ = _pcbnew.delete_wxSize
817  __del__ = lambda self: None
818 
819  def SetWidth(self, w):
820  """SetWidth(wxSize self, int w)"""
821  return _pcbnew.wxSize_SetWidth(self, w)
822 
823 
824  def SetHeight(self, h):
825  """SetHeight(wxSize self, int h)"""
826  return _pcbnew.wxSize_SetHeight(self, h)
827 
828 
829  def GetWidth(self):
830  """GetWidth(wxSize self) -> int"""
831  return _pcbnew.wxSize_GetWidth(self)
832 
833 
834  def GetHeight(self):
835  """GetHeight(wxSize self) -> int"""
836  return _pcbnew.wxSize_GetHeight(self)
837 
838 
839  def Scale(self,xscale,yscale):
840  return wxSize(self.x*xscale,self.y*yscale)
841  def __eq__(self,other):
842  return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
843  def __str__(self): return str(self.Get())
844  def __repr__(self): return 'wxSize'+str(self.Get())
845  def __len__(self): return len(self.Get())
846  def __getitem__(self, index): return self.Get()[index]
847  def __setitem__(self, index, val):
848  if index == 0: self.SetWidth(val)
849  elif index == 1: self.SetHeight(val)
850  else: raise IndexError
851  def __nonzero__(self): return self.Get() != (0,0)
852  __safe_for_unpickling__ = True
853 
854 
855 wxSize_swigregister = _pcbnew.wxSize_swigregister
856 wxSize_swigregister(wxSize)
857 
859  """Proxy of C++ wxPoint class."""
860 
861  __swig_setmethods__ = {}
862  __setattr__ = lambda self, name, value: _swig_setattr(self, wxPoint, name, value)
863  __swig_getmethods__ = {}
864  __getattr__ = lambda self, name: _swig_getattr(self, wxPoint, name)
865  __repr__ = _swig_repr
866  __swig_setmethods__["x"] = _pcbnew.wxPoint_x_set
867  __swig_getmethods__["x"] = _pcbnew.wxPoint_x_get
868  if _newclass:
869  x = _swig_property(_pcbnew.wxPoint_x_get, _pcbnew.wxPoint_x_set)
870  __swig_setmethods__["y"] = _pcbnew.wxPoint_y_set
871  __swig_getmethods__["y"] = _pcbnew.wxPoint_y_get
872  if _newclass:
873  y = _swig_property(_pcbnew.wxPoint_y_get, _pcbnew.wxPoint_y_set)
874 
875  def __init__(self, *args):
876  """
877  __init__(wxPoint self, int xx, int yy) -> wxPoint
878  __init__(wxPoint self, double xx, double yy) -> wxPoint
879  """
880  this = _pcbnew.new_wxPoint(*args)
881  try:
882  self.this.append(this)
883  except Exception:
884  self.this = this
885  __swig_destroy__ = _pcbnew.delete_wxPoint
886  __del__ = lambda self: None
887 
888  def __add__(self, pt):
889  """__add__(wxPoint self, wxPoint pt) -> wxPoint"""
890  return _pcbnew.wxPoint___add__(self, pt)
891 
892 
893  def __sub__(self, pt):
894  """__sub__(wxPoint self, wxPoint pt) -> wxPoint"""
895  return _pcbnew.wxPoint___sub__(self, pt)
896 
897 
898  def Set(self, x, y):
899  """Set(wxPoint self, long x, long y)"""
900  return _pcbnew.wxPoint_Set(self, x, y)
901 
902 
903  def Get(self):
904  """Get(wxPoint self) -> PyObject *"""
905  return _pcbnew.wxPoint_Get(self)
906 
907 
908  def __eq__(self,other): return (self.x==other.x and self.y==other.y)
909  def __ne__(self,other): return not (self==other)
910  def __str__(self): return str(self.Get())
911  def __repr__(self): return 'wxPoint'+str(self.Get())
912  def __len__(self): return len(self.Get())
913  def __getitem__(self, index): return self.Get()[index]
914  def __setitem__(self, index, val):
915  if index == 0:
916  self.x = val
917  elif index == 1:
918  self.y = val
919  else:
920  raise IndexError
921  def __nonzero__(self): return self.Get() != (0,0)
922 
923 
924 wxPoint_swigregister = _pcbnew.wxPoint_swigregister
925 wxPoint_swigregister(wxPoint)
926 
928  """Proxy of C++ wxString class."""
929 
930  __swig_setmethods__ = {}
931  __setattr__ = lambda self, name, value: _swig_setattr(self, wxString, name, value)
932  __swig_getmethods__ = {}
933  __getattr__ = lambda self, name: _swig_getattr(self, wxString, name)
934  __repr__ = _swig_repr
935  __swig_destroy__ = _pcbnew.delete_wxString
936  __del__ = lambda self: None
937 
938  def __str__(self):
939  """__str__(wxString self) -> PyObject *"""
940  return _pcbnew.wxString___str__(self)
941 
942 
943  def __repr__(self): return 'wxString(\'' + self.__str__() + '\')'
944 
945 
946  def __init__(self):
947  """__init__(wxString self) -> wxString"""
948  this = _pcbnew.new_wxString()
949  try:
950  self.this.append(this)
951  except Exception:
952  self.this = this
953 wxString_swigregister = _pcbnew.wxString_swigregister
954 wxString_swigregister(wxString)
955 
957  """Proxy of C++ std::vector<(wxPoint)> class."""
958 
959  __swig_setmethods__ = {}
960  __setattr__ = lambda self, name, value: _swig_setattr(self, wxPoint_Vector, name, value)
961  __swig_getmethods__ = {}
962  __getattr__ = lambda self, name: _swig_getattr(self, wxPoint_Vector, name)
963  __repr__ = _swig_repr
964 
965  def iterator(self):
966  """iterator(wxPoint_Vector self) -> SwigPyIterator"""
967  return _pcbnew.wxPoint_Vector_iterator(self)
968 
969  def __iter__(self):
970  return self.iterator()
971 
972  def __nonzero__(self):
973  """__nonzero__(wxPoint_Vector self) -> bool"""
974  return _pcbnew.wxPoint_Vector___nonzero__(self)
975 
976 
977  def __bool__(self):
978  """__bool__(wxPoint_Vector self) -> bool"""
979  return _pcbnew.wxPoint_Vector___bool__(self)
980 
981 
982  def __len__(self):
983  """__len__(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
984  return _pcbnew.wxPoint_Vector___len__(self)
985 
986 
987  def __getslice__(self, i, j):
988  """__getslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j) -> wxPoint_Vector"""
989  return _pcbnew.wxPoint_Vector___getslice__(self, i, j)
990 
991 
992  def __setslice__(self, *args):
993  """
994  __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)
995  __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j, wxPoint_Vector v)
996  """
997  return _pcbnew.wxPoint_Vector___setslice__(self, *args)
998 
999 
1000  def __delslice__(self, i, j):
1001  """__delslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)"""
1002  return _pcbnew.wxPoint_Vector___delslice__(self, i, j)
1003 
1004 
1005  def __delitem__(self, *args):
1006  """
1007  __delitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i)
1008  __delitem__(wxPoint_Vector self, PySliceObject * slice)
1009  """
1010  return _pcbnew.wxPoint_Vector___delitem__(self, *args)
1011 
1012 
1013  def __getitem__(self, *args):
1014  """
1015  __getitem__(wxPoint_Vector self, PySliceObject * slice) -> wxPoint_Vector
1016  __getitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i) -> wxPoint
1017  """
1018  return _pcbnew.wxPoint_Vector___getitem__(self, *args)
1019 
1020 
1021  def __setitem__(self, *args):
1022  """
1023  __setitem__(wxPoint_Vector self, PySliceObject * slice, wxPoint_Vector v)
1024  __setitem__(wxPoint_Vector self, PySliceObject * slice)
1025  __setitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, wxPoint x)
1026  """
1027  return _pcbnew.wxPoint_Vector___setitem__(self, *args)
1028 
1029 
1030  def pop(self):
1031  """pop(wxPoint_Vector self) -> wxPoint"""
1032  return _pcbnew.wxPoint_Vector_pop(self)
1033 
1034 
1035  def append(self, x):
1036  """append(wxPoint_Vector self, wxPoint x)"""
1037  return _pcbnew.wxPoint_Vector_append(self, x)
1038 
1039 
1040  def empty(self):
1041  """empty(wxPoint_Vector self) -> bool"""
1042  return _pcbnew.wxPoint_Vector_empty(self)
1043 
1044 
1045  def size(self):
1046  """size(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
1047  return _pcbnew.wxPoint_Vector_size(self)
1048 
1049 
1050  def swap(self, v):
1051  """swap(wxPoint_Vector self, wxPoint_Vector v)"""
1052  return _pcbnew.wxPoint_Vector_swap(self, v)
1053 
1054 
1055  def begin(self):
1056  """begin(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
1057  return _pcbnew.wxPoint_Vector_begin(self)
1058 
1059 
1060  def end(self):
1061  """end(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
1062  return _pcbnew.wxPoint_Vector_end(self)
1063 
1064 
1065  def rbegin(self):
1066  """rbegin(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
1067  return _pcbnew.wxPoint_Vector_rbegin(self)
1068 
1069 
1070  def rend(self):
1071  """rend(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
1072  return _pcbnew.wxPoint_Vector_rend(self)
1073 
1074 
1075  def clear(self):
1076  """clear(wxPoint_Vector self)"""
1077  return _pcbnew.wxPoint_Vector_clear(self)
1078 
1079 
1080  def get_allocator(self):
1081  """get_allocator(wxPoint_Vector self) -> std::vector< wxPoint >::allocator_type"""
1082  return _pcbnew.wxPoint_Vector_get_allocator(self)
1083 
1084 
1085  def pop_back(self):
1086  """pop_back(wxPoint_Vector self)"""
1087  return _pcbnew.wxPoint_Vector_pop_back(self)
1088 
1089 
1090  def erase(self, *args):
1091  """
1092  erase(wxPoint_Vector self, std::vector< wxPoint >::iterator pos) -> std::vector< wxPoint >::iterator
1093  erase(wxPoint_Vector self, std::vector< wxPoint >::iterator first, std::vector< wxPoint >::iterator last) -> std::vector< wxPoint >::iterator
1094  """
1095  return _pcbnew.wxPoint_Vector_erase(self, *args)
1096 
1097 
1098  def __init__(self, *args):
1099  """
1100  __init__(std::vector<(wxPoint)> self) -> wxPoint_Vector
1101  __init__(std::vector<(wxPoint)> self, wxPoint_Vector arg2) -> wxPoint_Vector
1102  __init__(std::vector<(wxPoint)> self, std::vector< wxPoint >::size_type size) -> wxPoint_Vector
1103  __init__(std::vector<(wxPoint)> self, std::vector< wxPoint >::size_type size, wxPoint value) -> wxPoint_Vector
1104  """
1105  this = _pcbnew.new_wxPoint_Vector(*args)
1106  try:
1107  self.this.append(this)
1108  except Exception:
1109  self.this = this
1110 
1111  def push_back(self, x):
1112  """push_back(wxPoint_Vector self, wxPoint x)"""
1113  return _pcbnew.wxPoint_Vector_push_back(self, x)
1114 
1115 
1116  def front(self):
1117  """front(wxPoint_Vector self) -> wxPoint"""
1118  return _pcbnew.wxPoint_Vector_front(self)
1119 
1120 
1121  def back(self):
1122  """back(wxPoint_Vector self) -> wxPoint"""
1123  return _pcbnew.wxPoint_Vector_back(self)
1124 
1125 
1126  def assign(self, n, x):
1127  """assign(wxPoint_Vector self, std::vector< wxPoint >::size_type n, wxPoint x)"""
1128  return _pcbnew.wxPoint_Vector_assign(self, n, x)
1129 
1130 
1131  def resize(self, *args):
1132  """
1133  resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size)
1134  resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size, wxPoint x)
1135  """
1136  return _pcbnew.wxPoint_Vector_resize(self, *args)
1137 
1138 
1139  def insert(self, *args):
1140  """
1141  insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, wxPoint x) -> std::vector< wxPoint >::iterator
1142  insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, std::vector< wxPoint >::size_type n, wxPoint x)
1143  """
1144  return _pcbnew.wxPoint_Vector_insert(self, *args)
1145 
1146 
1147  def reserve(self, n):
1148  """reserve(wxPoint_Vector self, std::vector< wxPoint >::size_type n)"""
1149  return _pcbnew.wxPoint_Vector_reserve(self, n)
1150 
1151 
1152  def capacity(self):
1153  """capacity(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
1154  return _pcbnew.wxPoint_Vector_capacity(self)
1155 
1156  __swig_destroy__ = _pcbnew.delete_wxPoint_Vector
1157  __del__ = lambda self: None
1158 wxPoint_Vector_swigregister = _pcbnew.wxPoint_Vector_swigregister
1159 wxPoint_Vector_swigregister(wxPoint_Vector)
1160 
1161 
1162 def FROM_UTF8(cstring):
1163  """FROM_UTF8(char const * cstring) -> wxString"""
1164  return _pcbnew.FROM_UTF8(cstring)
1165 
1166 def AccumulateDescription(aDesc, aItem):
1167  """AccumulateDescription(wxString aDesc, wxString aItem)"""
1168  return _pcbnew.AccumulateDescription(aDesc, aItem)
1169 
1170 def GetChars(s):
1171  """GetChars(wxString s) -> wxChar const *"""
1172  return _pcbnew.GetChars(s)
1173 
1174 _pcbnew.NOT_USED_swigconstant(_pcbnew)
1175 NOT_USED = _pcbnew.NOT_USED
1176 
1177 _pcbnew.EOT_swigconstant(_pcbnew)
1178 EOT = _pcbnew.EOT
1179 
1180 _pcbnew.TYPE_NOT_INIT_swigconstant(_pcbnew)
1181 TYPE_NOT_INIT = _pcbnew.TYPE_NOT_INIT
1182 
1183 _pcbnew.PCB_T_swigconstant(_pcbnew)
1184 PCB_T = _pcbnew.PCB_T
1185 
1186 _pcbnew.SCREEN_T_swigconstant(_pcbnew)
1187 SCREEN_T = _pcbnew.SCREEN_T
1188 
1189 _pcbnew.PCB_MODULE_T_swigconstant(_pcbnew)
1190 PCB_MODULE_T = _pcbnew.PCB_MODULE_T
1191 
1192 _pcbnew.PCB_PAD_T_swigconstant(_pcbnew)
1193 PCB_PAD_T = _pcbnew.PCB_PAD_T
1194 
1195 _pcbnew.PCB_LINE_T_swigconstant(_pcbnew)
1196 PCB_LINE_T = _pcbnew.PCB_LINE_T
1197 
1198 _pcbnew.PCB_TEXT_T_swigconstant(_pcbnew)
1199 PCB_TEXT_T = _pcbnew.PCB_TEXT_T
1200 
1201 _pcbnew.PCB_MODULE_TEXT_T_swigconstant(_pcbnew)
1202 PCB_MODULE_TEXT_T = _pcbnew.PCB_MODULE_TEXT_T
1203 
1204 _pcbnew.PCB_MODULE_EDGE_T_swigconstant(_pcbnew)
1205 PCB_MODULE_EDGE_T = _pcbnew.PCB_MODULE_EDGE_T
1206 
1207 _pcbnew.PCB_TRACE_T_swigconstant(_pcbnew)
1208 PCB_TRACE_T = _pcbnew.PCB_TRACE_T
1209 
1210 _pcbnew.PCB_VIA_T_swigconstant(_pcbnew)
1211 PCB_VIA_T = _pcbnew.PCB_VIA_T
1212 
1213 _pcbnew.PCB_ZONE_T_swigconstant(_pcbnew)
1214 PCB_ZONE_T = _pcbnew.PCB_ZONE_T
1215 
1216 _pcbnew.PCB_MARKER_T_swigconstant(_pcbnew)
1217 PCB_MARKER_T = _pcbnew.PCB_MARKER_T
1218 
1219 _pcbnew.PCB_DIMENSION_T_swigconstant(_pcbnew)
1220 PCB_DIMENSION_T = _pcbnew.PCB_DIMENSION_T
1221 
1222 _pcbnew.PCB_TARGET_T_swigconstant(_pcbnew)
1223 PCB_TARGET_T = _pcbnew.PCB_TARGET_T
1224 
1225 _pcbnew.PCB_ZONE_AREA_T_swigconstant(_pcbnew)
1226 PCB_ZONE_AREA_T = _pcbnew.PCB_ZONE_AREA_T
1227 
1228 _pcbnew.PCB_ITEM_LIST_T_swigconstant(_pcbnew)
1229 PCB_ITEM_LIST_T = _pcbnew.PCB_ITEM_LIST_T
1230 
1231 _pcbnew.PCB_NETINFO_T_swigconstant(_pcbnew)
1232 PCB_NETINFO_T = _pcbnew.PCB_NETINFO_T
1233 
1234 _pcbnew.SCH_MARKER_T_swigconstant(_pcbnew)
1235 SCH_MARKER_T = _pcbnew.SCH_MARKER_T
1236 
1237 _pcbnew.SCH_JUNCTION_T_swigconstant(_pcbnew)
1238 SCH_JUNCTION_T = _pcbnew.SCH_JUNCTION_T
1239 
1240 _pcbnew.SCH_NO_CONNECT_T_swigconstant(_pcbnew)
1241 SCH_NO_CONNECT_T = _pcbnew.SCH_NO_CONNECT_T
1242 
1243 _pcbnew.SCH_BUS_WIRE_ENTRY_T_swigconstant(_pcbnew)
1244 SCH_BUS_WIRE_ENTRY_T = _pcbnew.SCH_BUS_WIRE_ENTRY_T
1245 
1246 _pcbnew.SCH_BUS_BUS_ENTRY_T_swigconstant(_pcbnew)
1247 SCH_BUS_BUS_ENTRY_T = _pcbnew.SCH_BUS_BUS_ENTRY_T
1248 
1249 _pcbnew.SCH_LINE_T_swigconstant(_pcbnew)
1250 SCH_LINE_T = _pcbnew.SCH_LINE_T
1251 
1252 _pcbnew.SCH_BITMAP_T_swigconstant(_pcbnew)
1253 SCH_BITMAP_T = _pcbnew.SCH_BITMAP_T
1254 
1255 _pcbnew.SCH_TEXT_T_swigconstant(_pcbnew)
1256 SCH_TEXT_T = _pcbnew.SCH_TEXT_T
1257 
1258 _pcbnew.SCH_LABEL_T_swigconstant(_pcbnew)
1259 SCH_LABEL_T = _pcbnew.SCH_LABEL_T
1260 
1261 _pcbnew.SCH_GLOBAL_LABEL_T_swigconstant(_pcbnew)
1262 SCH_GLOBAL_LABEL_T = _pcbnew.SCH_GLOBAL_LABEL_T
1263 
1264 _pcbnew.SCH_HIERARCHICAL_LABEL_T_swigconstant(_pcbnew)
1265 SCH_HIERARCHICAL_LABEL_T = _pcbnew.SCH_HIERARCHICAL_LABEL_T
1266 
1267 _pcbnew.SCH_FIELD_T_swigconstant(_pcbnew)
1268 SCH_FIELD_T = _pcbnew.SCH_FIELD_T
1269 
1270 _pcbnew.SCH_COMPONENT_T_swigconstant(_pcbnew)
1271 SCH_COMPONENT_T = _pcbnew.SCH_COMPONENT_T
1272 
1273 _pcbnew.SCH_SHEET_PIN_T_swigconstant(_pcbnew)
1274 SCH_SHEET_PIN_T = _pcbnew.SCH_SHEET_PIN_T
1275 
1276 _pcbnew.SCH_SHEET_T_swigconstant(_pcbnew)
1277 SCH_SHEET_T = _pcbnew.SCH_SHEET_T
1278 
1279 _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T_swigconstant(_pcbnew)
1280 SCH_FIELD_LOCATE_REFERENCE_T = _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T
1281 
1282 _pcbnew.SCH_FIELD_LOCATE_VALUE_T_swigconstant(_pcbnew)
1283 SCH_FIELD_LOCATE_VALUE_T = _pcbnew.SCH_FIELD_LOCATE_VALUE_T
1284 
1285 _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T_swigconstant(_pcbnew)
1286 SCH_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T
1287 
1288 _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T_swigconstant(_pcbnew)
1289 SCH_FIELD_LOCATE_DATASHEET_T = _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T
1290 
1291 _pcbnew.SCH_SCREEN_T_swigconstant(_pcbnew)
1292 SCH_SCREEN_T = _pcbnew.SCH_SCREEN_T
1293 
1294 _pcbnew.LIB_PART_T_swigconstant(_pcbnew)
1295 LIB_PART_T = _pcbnew.LIB_PART_T
1296 
1297 _pcbnew.LIB_ALIAS_T_swigconstant(_pcbnew)
1298 LIB_ALIAS_T = _pcbnew.LIB_ALIAS_T
1299 
1300 _pcbnew.LIB_ARC_T_swigconstant(_pcbnew)
1301 LIB_ARC_T = _pcbnew.LIB_ARC_T
1302 
1303 _pcbnew.LIB_CIRCLE_T_swigconstant(_pcbnew)
1304 LIB_CIRCLE_T = _pcbnew.LIB_CIRCLE_T
1305 
1306 _pcbnew.LIB_TEXT_T_swigconstant(_pcbnew)
1307 LIB_TEXT_T = _pcbnew.LIB_TEXT_T
1308 
1309 _pcbnew.LIB_RECTANGLE_T_swigconstant(_pcbnew)
1310 LIB_RECTANGLE_T = _pcbnew.LIB_RECTANGLE_T
1311 
1312 _pcbnew.LIB_POLYLINE_T_swigconstant(_pcbnew)
1313 LIB_POLYLINE_T = _pcbnew.LIB_POLYLINE_T
1314 
1315 _pcbnew.LIB_BEZIER_T_swigconstant(_pcbnew)
1316 LIB_BEZIER_T = _pcbnew.LIB_BEZIER_T
1317 
1318 _pcbnew.LIB_PIN_T_swigconstant(_pcbnew)
1319 LIB_PIN_T = _pcbnew.LIB_PIN_T
1320 
1321 _pcbnew.LIB_FIELD_T_swigconstant(_pcbnew)
1322 LIB_FIELD_T = _pcbnew.LIB_FIELD_T
1323 
1324 _pcbnew.GERBER_LAYOUT_T_swigconstant(_pcbnew)
1325 GERBER_LAYOUT_T = _pcbnew.GERBER_LAYOUT_T
1326 
1327 _pcbnew.GERBER_DRAW_ITEM_T_swigconstant(_pcbnew)
1328 GERBER_DRAW_ITEM_T = _pcbnew.GERBER_DRAW_ITEM_T
1329 
1330 _pcbnew.GERBER_IMAGE_LIST_T_swigconstant(_pcbnew)
1331 GERBER_IMAGE_LIST_T = _pcbnew.GERBER_IMAGE_LIST_T
1332 
1333 _pcbnew.GERBER_IMAGE_T_swigconstant(_pcbnew)
1334 GERBER_IMAGE_T = _pcbnew.GERBER_IMAGE_T
1335 
1336 _pcbnew.TYPE_PL_EDITOR_LAYOUT_swigconstant(_pcbnew)
1337 TYPE_PL_EDITOR_LAYOUT = _pcbnew.TYPE_PL_EDITOR_LAYOUT
1338 
1339 _pcbnew.SYMBOL_LIB_TABLE_T_swigconstant(_pcbnew)
1340 SYMBOL_LIB_TABLE_T = _pcbnew.SYMBOL_LIB_TABLE_T
1341 
1342 _pcbnew.FP_LIB_TABLE_T_swigconstant(_pcbnew)
1343 FP_LIB_TABLE_T = _pcbnew.FP_LIB_TABLE_T
1344 
1345 _pcbnew.PART_LIBS_T_swigconstant(_pcbnew)
1346 PART_LIBS_T = _pcbnew.PART_LIBS_T
1347 
1348 _pcbnew.SEARCH_STACK_T_swigconstant(_pcbnew)
1349 SEARCH_STACK_T = _pcbnew.SEARCH_STACK_T
1350 
1351 _pcbnew.CACHE_WRAPPER_T_swigconstant(_pcbnew)
1352 CACHE_WRAPPER_T = _pcbnew.CACHE_WRAPPER_T
1353 
1354 _pcbnew.MAX_STRUCT_TYPE_ID_swigconstant(_pcbnew)
1355 MAX_STRUCT_TYPE_ID = _pcbnew.MAX_STRUCT_TYPE_ID
1356 
1357 _pcbnew.NO_FILL_swigconstant(_pcbnew)
1358 NO_FILL = _pcbnew.NO_FILL
1359 
1360 _pcbnew.FILLED_SHAPE_swigconstant(_pcbnew)
1361 FILLED_SHAPE = _pcbnew.FILLED_SHAPE
1362 
1363 _pcbnew.FILLED_WITH_BG_BODYCOLOR_swigconstant(_pcbnew)
1364 FILLED_WITH_BG_BODYCOLOR = _pcbnew.FILLED_WITH_BG_BODYCOLOR
1365 
1366 _pcbnew.SEARCH_QUIT_swigconstant(_pcbnew)
1367 SEARCH_QUIT = _pcbnew.SEARCH_QUIT
1368 
1369 _pcbnew.SEARCH_CONTINUE_swigconstant(_pcbnew)
1370 SEARCH_CONTINUE = _pcbnew.SEARCH_CONTINUE
1371 
1372 _pcbnew.IS_CHANGED_swigconstant(_pcbnew)
1373 IS_CHANGED = _pcbnew.IS_CHANGED
1374 
1375 _pcbnew.IS_LINKED_swigconstant(_pcbnew)
1376 IS_LINKED = _pcbnew.IS_LINKED
1377 
1378 _pcbnew.IN_EDIT_swigconstant(_pcbnew)
1379 IN_EDIT = _pcbnew.IN_EDIT
1380 
1381 _pcbnew.IS_MOVED_swigconstant(_pcbnew)
1382 IS_MOVED = _pcbnew.IS_MOVED
1383 
1384 _pcbnew.IS_NEW_swigconstant(_pcbnew)
1385 IS_NEW = _pcbnew.IS_NEW
1386 
1387 _pcbnew.IS_RESIZED_swigconstant(_pcbnew)
1388 IS_RESIZED = _pcbnew.IS_RESIZED
1389 
1390 _pcbnew.IS_DRAGGED_swigconstant(_pcbnew)
1391 IS_DRAGGED = _pcbnew.IS_DRAGGED
1392 
1393 _pcbnew.IS_DELETED_swigconstant(_pcbnew)
1394 IS_DELETED = _pcbnew.IS_DELETED
1395 
1396 _pcbnew.IS_WIRE_IMAGE_swigconstant(_pcbnew)
1397 IS_WIRE_IMAGE = _pcbnew.IS_WIRE_IMAGE
1398 
1399 _pcbnew.STARTPOINT_swigconstant(_pcbnew)
1400 STARTPOINT = _pcbnew.STARTPOINT
1401 
1402 _pcbnew.ENDPOINT_swigconstant(_pcbnew)
1403 ENDPOINT = _pcbnew.ENDPOINT
1404 
1405 _pcbnew.SELECTED_swigconstant(_pcbnew)
1406 SELECTED = _pcbnew.SELECTED
1407 
1408 _pcbnew.SELECTEDNODE_swigconstant(_pcbnew)
1409 SELECTEDNODE = _pcbnew.SELECTEDNODE
1410 
1411 _pcbnew.STRUCT_DELETED_swigconstant(_pcbnew)
1412 STRUCT_DELETED = _pcbnew.STRUCT_DELETED
1413 
1414 _pcbnew.CANDIDATE_swigconstant(_pcbnew)
1415 CANDIDATE = _pcbnew.CANDIDATE
1416 
1417 _pcbnew.SKIP_STRUCT_swigconstant(_pcbnew)
1418 SKIP_STRUCT = _pcbnew.SKIP_STRUCT
1419 
1420 _pcbnew.DO_NOT_DRAW_swigconstant(_pcbnew)
1421 DO_NOT_DRAW = _pcbnew.DO_NOT_DRAW
1422 
1423 _pcbnew.IS_CANCELLED_swigconstant(_pcbnew)
1424 IS_CANCELLED = _pcbnew.IS_CANCELLED
1425 
1426 _pcbnew.TRACK_LOCKED_swigconstant(_pcbnew)
1427 TRACK_LOCKED = _pcbnew.TRACK_LOCKED
1428 
1429 _pcbnew.TRACK_AR_swigconstant(_pcbnew)
1430 TRACK_AR = _pcbnew.TRACK_AR
1431 
1432 _pcbnew.FLAG1_swigconstant(_pcbnew)
1433 FLAG1 = _pcbnew.FLAG1
1434 
1435 _pcbnew.FLAG0_swigconstant(_pcbnew)
1436 FLAG0 = _pcbnew.FLAG0
1437 
1438 _pcbnew.BEGIN_ONPAD_swigconstant(_pcbnew)
1439 BEGIN_ONPAD = _pcbnew.BEGIN_ONPAD
1440 
1441 _pcbnew.END_ONPAD_swigconstant(_pcbnew)
1442 END_ONPAD = _pcbnew.END_ONPAD
1443 
1444 _pcbnew.BUSY_swigconstant(_pcbnew)
1445 BUSY = _pcbnew.BUSY
1446 
1447 _pcbnew.HIGHLIGHTED_swigconstant(_pcbnew)
1448 HIGHLIGHTED = _pcbnew.HIGHLIGHTED
1449 
1450 _pcbnew.BRIGHTENED_swigconstant(_pcbnew)
1451 BRIGHTENED = _pcbnew.BRIGHTENED
1452 
1453 _pcbnew.DP_COUPLED_swigconstant(_pcbnew)
1454 DP_COUPLED = _pcbnew.DP_COUPLED
1455 
1456 _pcbnew.UR_TRANSIENT_swigconstant(_pcbnew)
1457 UR_TRANSIENT = _pcbnew.UR_TRANSIENT
1458 
1459 _pcbnew.EDA_ITEM_ALL_FLAGS_swigconstant(_pcbnew)
1460 EDA_ITEM_ALL_FLAGS = _pcbnew.EDA_ITEM_ALL_FLAGS
1462  """Proxy of C++ EDA_ITEM class."""
1463 
1464  __swig_setmethods__ = {}
1465  __setattr__ = lambda self, name, value: _swig_setattr(self, EDA_ITEM, name, value)
1466  __swig_getmethods__ = {}
1467  __getattr__ = lambda self, name: _swig_getattr(self, EDA_ITEM, name)
1468 
1469  def __init__(self, *args, **kwargs):
1470  raise AttributeError("No constructor defined - class is abstract")
1471  __repr__ = _swig_repr
1472  __swig_destroy__ = _pcbnew.delete_EDA_ITEM
1473  __del__ = lambda self: None
1474 
1475  def Type(self):
1476  """Type(EDA_ITEM self) -> KICAD_T"""
1477  return _pcbnew.EDA_ITEM_Type(self)
1478 
1479 
1480  def SetTimeStamp(self, aNewTimeStamp):
1481  """SetTimeStamp(EDA_ITEM self, timestamp_t aNewTimeStamp)"""
1482  return _pcbnew.EDA_ITEM_SetTimeStamp(self, aNewTimeStamp)
1483 
1484 
1485  def GetTimeStamp(self):
1486  """GetTimeStamp(EDA_ITEM self) -> timestamp_t"""
1487  return _pcbnew.EDA_ITEM_GetTimeStamp(self)
1488 
1489 
1490  def Next(self):
1491  """Next(EDA_ITEM self) -> EDA_ITEM"""
1492  return _pcbnew.EDA_ITEM_Next(self)
1493 
1494 
1495  def Back(self):
1496  """Back(EDA_ITEM self) -> EDA_ITEM"""
1497  return _pcbnew.EDA_ITEM_Back(self)
1498 
1499 
1500  def GetParent(self):
1501  """GetParent(EDA_ITEM self) -> EDA_ITEM"""
1502  return _pcbnew.EDA_ITEM_GetParent(self)
1503 
1504 
1505  def GetList(self):
1506  """GetList(EDA_ITEM self) -> DHEAD"""
1507  return _pcbnew.EDA_ITEM_GetList(self)
1508 
1509 
1510  def SetParent(self, aParent):
1511  """SetParent(EDA_ITEM self, EDA_ITEM aParent)"""
1512  return _pcbnew.EDA_ITEM_SetParent(self, aParent)
1513 
1514 
1515  def SetList(self, aList):
1516  """SetList(EDA_ITEM self, DHEAD aList)"""
1517  return _pcbnew.EDA_ITEM_SetList(self, aList)
1518 
1519 
1520  def IsNew(self):
1521  """IsNew(EDA_ITEM self) -> bool"""
1522  return _pcbnew.EDA_ITEM_IsNew(self)
1523 
1524 
1525  def IsModified(self):
1526  """IsModified(EDA_ITEM self) -> bool"""
1527  return _pcbnew.EDA_ITEM_IsModified(self)
1528 
1529 
1530  def IsMoving(self):
1531  """IsMoving(EDA_ITEM self) -> bool"""
1532  return _pcbnew.EDA_ITEM_IsMoving(self)
1533 
1534 
1535  def IsDragging(self):
1536  """IsDragging(EDA_ITEM self) -> bool"""
1537  return _pcbnew.EDA_ITEM_IsDragging(self)
1538 
1539 
1540  def IsWireImage(self):
1541  """IsWireImage(EDA_ITEM self) -> bool"""
1542  return _pcbnew.EDA_ITEM_IsWireImage(self)
1543 
1544 
1545  def IsSelected(self):
1546  """IsSelected(EDA_ITEM self) -> bool"""
1547  return _pcbnew.EDA_ITEM_IsSelected(self)
1548 
1549 
1550  def IsResized(self):
1551  """IsResized(EDA_ITEM self) -> bool"""
1552  return _pcbnew.EDA_ITEM_IsResized(self)
1553 
1554 
1555  def IsHighlighted(self):
1556  """IsHighlighted(EDA_ITEM self) -> bool"""
1557  return _pcbnew.EDA_ITEM_IsHighlighted(self)
1558 
1559 
1560  def IsBrightened(self):
1561  """IsBrightened(EDA_ITEM self) -> bool"""
1562  return _pcbnew.EDA_ITEM_IsBrightened(self)
1563 
1564 
1565  def SetWireImage(self):
1566  """SetWireImage(EDA_ITEM self)"""
1567  return _pcbnew.EDA_ITEM_SetWireImage(self)
1568 
1569 
1570  def SetSelected(self):
1571  """SetSelected(EDA_ITEM self)"""
1572  return _pcbnew.EDA_ITEM_SetSelected(self)
1573 
1574 
1575  def SetHighlighted(self):
1576  """SetHighlighted(EDA_ITEM self)"""
1577  return _pcbnew.EDA_ITEM_SetHighlighted(self)
1578 
1579 
1580  def SetBrightened(self):
1581  """SetBrightened(EDA_ITEM self)"""
1582  return _pcbnew.EDA_ITEM_SetBrightened(self)
1583 
1584 
1585  def ClearSelected(self):
1586  """ClearSelected(EDA_ITEM self)"""
1587  return _pcbnew.EDA_ITEM_ClearSelected(self)
1588 
1589 
1590  def ClearHighlighted(self):
1591  """ClearHighlighted(EDA_ITEM self)"""
1592  return _pcbnew.EDA_ITEM_ClearHighlighted(self)
1593 
1594 
1595  def ClearBrightened(self):
1596  """ClearBrightened(EDA_ITEM self)"""
1597  return _pcbnew.EDA_ITEM_ClearBrightened(self)
1598 
1599 
1600  def SetModified(self):
1601  """SetModified(EDA_ITEM self)"""
1602  return _pcbnew.EDA_ITEM_SetModified(self)
1603 
1604 
1605  def GetState(self, type):
1606  """GetState(EDA_ITEM self, int type) -> int"""
1607  return _pcbnew.EDA_ITEM_GetState(self, type)
1608 
1609 
1610  def SetState(self, type, state):
1611  """SetState(EDA_ITEM self, int type, int state)"""
1612  return _pcbnew.EDA_ITEM_SetState(self, type, state)
1613 
1614 
1615  def GetStatus(self):
1616  """GetStatus(EDA_ITEM self) -> STATUS_FLAGS"""
1617  return _pcbnew.EDA_ITEM_GetStatus(self)
1618 
1619 
1620  def SetStatus(self, aStatus):
1621  """SetStatus(EDA_ITEM self, STATUS_FLAGS aStatus)"""
1622  return _pcbnew.EDA_ITEM_SetStatus(self, aStatus)
1623 
1624 
1625  def SetFlags(self, aMask):
1626  """SetFlags(EDA_ITEM self, STATUS_FLAGS aMask)"""
1627  return _pcbnew.EDA_ITEM_SetFlags(self, aMask)
1628 
1629 
1630  def ClearFlags(self, aMask=-1):
1631  """
1632  ClearFlags(EDA_ITEM self, STATUS_FLAGS aMask=-1)
1633  ClearFlags(EDA_ITEM self)
1634  """
1635  return _pcbnew.EDA_ITEM_ClearFlags(self, aMask)
1636 
1637 
1638  def GetFlags(self):
1639  """GetFlags(EDA_ITEM self) -> STATUS_FLAGS"""
1640  return _pcbnew.EDA_ITEM_GetFlags(self)
1641 
1642 
1643  def IsType(self, aScanTypes):
1644  """IsType(EDA_ITEM self, KICAD_T const [] aScanTypes) -> bool"""
1645  return _pcbnew.EDA_ITEM_IsType(self, aScanTypes)
1646 
1647 
1648  def SetForceVisible(self, aEnable):
1649  """SetForceVisible(EDA_ITEM self, bool aEnable)"""
1650  return _pcbnew.EDA_ITEM_SetForceVisible(self, aEnable)
1651 
1652 
1653  def GetMsgPanelInfo(self, aUnits, aList):
1654  """GetMsgPanelInfo(EDA_ITEM self, EDA_UNITS_T aUnits, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
1655  return _pcbnew.EDA_ITEM_GetMsgPanelInfo(self, aUnits, aList)
1656 
1657 
1658  def HitTest(self, aPosition):
1659  """HitTest(EDA_ITEM self, wxPoint aPosition) -> bool"""
1660  return _pcbnew.EDA_ITEM_HitTest(self, aPosition)
1661 
1662 
1663  def GetBoundingBox(self):
1664  """GetBoundingBox(EDA_ITEM self) -> EDA_RECT"""
1665  return _pcbnew.EDA_ITEM_GetBoundingBox(self)
1666 
1667 
1668  def Clone(self):
1669  """Clone(EDA_ITEM self) -> EDA_ITEM"""
1670  return _pcbnew.EDA_ITEM_Clone(self)
1671 
1672 
1673  def IterateForward(listStart, inspector, testData, scanTypes):
1674  """IterateForward(EDA_ITEM listStart, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
1675  return _pcbnew.EDA_ITEM_IterateForward(listStart, inspector, testData, scanTypes)
1676 
1677  if _newclass:
1678  IterateForward = staticmethod(IterateForward)
1679  __swig_getmethods__["IterateForward"] = lambda x: IterateForward
1680 
1681  def Visit(self, inspector, testData, scanTypes):
1682  """Visit(EDA_ITEM self, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
1683  return _pcbnew.EDA_ITEM_Visit(self, inspector, testData, scanTypes)
1684 
1685 
1686  def GetClass(self):
1687  """GetClass(EDA_ITEM self) -> wxString"""
1688  return _pcbnew.EDA_ITEM_GetClass(self)
1689 
1690 
1691  def GetSelectMenuText(self, aUnits):
1692  """GetSelectMenuText(EDA_ITEM self, EDA_UNITS_T aUnits) -> wxString"""
1693  return _pcbnew.EDA_ITEM_GetSelectMenuText(self, aUnits)
1694 
1695 
1696  def GetMenuImage(self):
1697  """GetMenuImage(EDA_ITEM self) -> BITMAP_DEF"""
1698  return _pcbnew.EDA_ITEM_GetMenuImage(self)
1699 
1700 
1701  def Matches(self, aSearchData, aAuxData, aFindLocation):
1702  """Matches(EDA_ITEM self, wxFindReplaceData & aSearchData, void * aAuxData, wxPoint aFindLocation) -> bool"""
1703  return _pcbnew.EDA_ITEM_Matches(self, aSearchData, aAuxData, aFindLocation)
1704 
1705 
1706  def Replace(self, *args):
1707  """
1708  Replace(EDA_ITEM self, wxFindReplaceData & aSearchData, wxString aText) -> bool
1709  Replace(EDA_ITEM self, wxFindReplaceData & aSearchData, void * aAuxData=None) -> bool
1710  Replace(EDA_ITEM self, wxFindReplaceData & aSearchData) -> bool
1711  """
1712  return _pcbnew.EDA_ITEM_Replace(self, *args)
1713 
1714 
1715  def IsReplaceable(self):
1716  """IsReplaceable(EDA_ITEM self) -> bool"""
1717  return _pcbnew.EDA_ITEM_IsReplaceable(self)
1718 
1719 
1720  def __lt__(self, aItem):
1721  """__lt__(EDA_ITEM self, EDA_ITEM aItem) -> bool"""
1722  return _pcbnew.EDA_ITEM___lt__(self, aItem)
1723 
1724 
1725  def Sort(aLeft, aRight):
1726  """Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1727  return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1728 
1729  if _newclass:
1730  Sort = staticmethod(Sort)
1731  __swig_getmethods__["Sort"] = lambda x: Sort
1732 
1733  def ViewBBox(self):
1734  """ViewBBox(EDA_ITEM self) -> BOX2I const"""
1735  return _pcbnew.EDA_ITEM_ViewBBox(self)
1736 
1737 
1738  def ViewGetLayers(self, aLayers, aCount):
1739  """ViewGetLayers(EDA_ITEM self, int [] aLayers, int & aCount)"""
1740  return _pcbnew.EDA_ITEM_ViewGetLayers(self, aLayers, aCount)
1741 
1742 EDA_ITEM_swigregister = _pcbnew.EDA_ITEM_swigregister
1743 EDA_ITEM_swigregister(EDA_ITEM)
1744 
1745 def EDA_ITEM_IterateForward(listStart, inspector, testData, scanTypes):
1746  """EDA_ITEM_IterateForward(EDA_ITEM listStart, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
1747  return _pcbnew.EDA_ITEM_IterateForward(listStart, inspector, testData, scanTypes)
1748 
1749 def EDA_ITEM_Sort(aLeft, aRight):
1750  """EDA_ITEM_Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1751  return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1752 
1753 
1754 def new_clone(aItem):
1755  """new_clone(EDA_ITEM aItem) -> EDA_ITEM"""
1756  return _pcbnew.new_clone(aItem)
1758  """Proxy of C++ EDA_RECT class."""
1759 
1760  __swig_setmethods__ = {}
1761  __setattr__ = lambda self, name, value: _swig_setattr(self, EDA_RECT, name, value)
1762  __swig_getmethods__ = {}
1763  __getattr__ = lambda self, name: _swig_getattr(self, EDA_RECT, name)
1764  __repr__ = _swig_repr
1765 
1766  def __init__(self, *args):
1767  """
1768  __init__(EDA_RECT self) -> EDA_RECT
1769  __init__(EDA_RECT self, wxPoint aPos, wxSize aSize) -> EDA_RECT
1770  """
1771  this = _pcbnew.new_EDA_RECT(*args)
1772  try:
1773  self.this.append(this)
1774  except Exception:
1775  self.this = this
1776  __swig_destroy__ = _pcbnew.delete_EDA_RECT
1777  __del__ = lambda self: None
1778 
1779  def Centre(self):
1780  """Centre(EDA_RECT self) -> wxPoint"""
1781  return _pcbnew.EDA_RECT_Centre(self)
1782 
1783 
1784  def Move(self, aMoveVector):
1785  """Move(EDA_RECT self, wxPoint aMoveVector)"""
1786  return _pcbnew.EDA_RECT_Move(self, aMoveVector)
1787 
1788 
1789  def Normalize(self):
1790  """Normalize(EDA_RECT self)"""
1791  return _pcbnew.EDA_RECT_Normalize(self)
1792 
1793 
1794  def Contains(self, *args):
1795  """
1796  Contains(EDA_RECT self, wxPoint aPoint) -> bool
1797  Contains(EDA_RECT self, int x, int y) -> bool
1798  Contains(EDA_RECT self, EDA_RECT aRect) -> bool
1799  """
1800  return _pcbnew.EDA_RECT_Contains(self, *args)
1801 
1802 
1803  def GetSize(self):
1804  """GetSize(EDA_RECT self) -> wxSize"""
1805  return _pcbnew.EDA_RECT_GetSize(self)
1806 
1807 
1808  def GetSizeMax(self):
1809  """GetSizeMax(EDA_RECT self) -> int"""
1810  return _pcbnew.EDA_RECT_GetSizeMax(self)
1811 
1812 
1813  def GetX(self):
1814  """GetX(EDA_RECT self) -> int"""
1815  return _pcbnew.EDA_RECT_GetX(self)
1816 
1817 
1818  def GetY(self):
1819  """GetY(EDA_RECT self) -> int"""
1820  return _pcbnew.EDA_RECT_GetY(self)
1821 
1822 
1823  def GetOrigin(self):
1824  """GetOrigin(EDA_RECT self) -> wxPoint"""
1825  return _pcbnew.EDA_RECT_GetOrigin(self)
1826 
1827 
1828  def GetPosition(self):
1829  """GetPosition(EDA_RECT self) -> wxPoint"""
1830  return _pcbnew.EDA_RECT_GetPosition(self)
1831 
1832 
1833  def GetEnd(self):
1834  """GetEnd(EDA_RECT self) -> wxPoint"""
1835  return _pcbnew.EDA_RECT_GetEnd(self)
1836 
1837 
1838  def GetCenter(self):
1839  """GetCenter(EDA_RECT self) -> wxPoint"""
1840  return _pcbnew.EDA_RECT_GetCenter(self)
1841 
1842 
1843  def GetWidth(self):
1844  """GetWidth(EDA_RECT self) -> int"""
1845  return _pcbnew.EDA_RECT_GetWidth(self)
1846 
1847 
1848  def GetHeight(self):
1849  """GetHeight(EDA_RECT self) -> int"""
1850  return _pcbnew.EDA_RECT_GetHeight(self)
1851 
1852 
1853  def GetRight(self):
1854  """GetRight(EDA_RECT self) -> int"""
1855  return _pcbnew.EDA_RECT_GetRight(self)
1856 
1857 
1858  def GetLeft(self):
1859  """GetLeft(EDA_RECT self) -> int"""
1860  return _pcbnew.EDA_RECT_GetLeft(self)
1861 
1862 
1863  def GetTop(self):
1864  """GetTop(EDA_RECT self) -> int"""
1865  return _pcbnew.EDA_RECT_GetTop(self)
1866 
1867 
1868  def GetBottom(self):
1869  """GetBottom(EDA_RECT self) -> int"""
1870  return _pcbnew.EDA_RECT_GetBottom(self)
1871 
1872 
1873  def SetOrigin(self, *args):
1874  """
1875  SetOrigin(EDA_RECT self, wxPoint pos)
1876  SetOrigin(EDA_RECT self, int x, int y)
1877  """
1878  return _pcbnew.EDA_RECT_SetOrigin(self, *args)
1879 
1880 
1881  def SetSize(self, *args):
1882  """
1883  SetSize(EDA_RECT self, wxSize size)
1884  SetSize(EDA_RECT self, int w, int h)
1885  """
1886  return _pcbnew.EDA_RECT_SetSize(self, *args)
1887 
1888 
1889  def Offset(self, *args):
1890  """
1891  Offset(EDA_RECT self, int dx, int dy)
1892  Offset(EDA_RECT self, wxPoint offset)
1893  """
1894  return _pcbnew.EDA_RECT_Offset(self, *args)
1895 
1896 
1897  def SetX(self, val):
1898  """SetX(EDA_RECT self, int val)"""
1899  return _pcbnew.EDA_RECT_SetX(self, val)
1900 
1901 
1902  def SetY(self, val):
1903  """SetY(EDA_RECT self, int val)"""
1904  return _pcbnew.EDA_RECT_SetY(self, val)
1905 
1906 
1907  def SetWidth(self, val):
1908  """SetWidth(EDA_RECT self, int val)"""
1909  return _pcbnew.EDA_RECT_SetWidth(self, val)
1910 
1911 
1912  def SetHeight(self, val):
1913  """SetHeight(EDA_RECT self, int val)"""
1914  return _pcbnew.EDA_RECT_SetHeight(self, val)
1915 
1916 
1917  def SetEnd(self, *args):
1918  """
1919  SetEnd(EDA_RECT self, int x, int y)
1920  SetEnd(EDA_RECT self, wxPoint pos)
1921  """
1922  return _pcbnew.EDA_RECT_SetEnd(self, *args)
1923 
1924 
1925  def RevertYAxis(self):
1926  """RevertYAxis(EDA_RECT self)"""
1927  return _pcbnew.EDA_RECT_RevertYAxis(self)
1928 
1929 
1930  def Intersects(self, *args):
1931  """
1932  Intersects(EDA_RECT self, EDA_RECT aRect) -> bool
1933  Intersects(EDA_RECT self, EDA_RECT aRect, double aRot) -> bool
1934  Intersects(EDA_RECT self, wxPoint aPoint1, wxPoint aPoint2) -> bool
1935  """
1936  return _pcbnew.EDA_RECT_Intersects(self, *args)
1937 
1938 
1939  def ClosestPointTo(self, aPoint):
1940  """ClosestPointTo(EDA_RECT self, wxPoint aPoint) -> wxPoint"""
1941  return _pcbnew.EDA_RECT_ClosestPointTo(self, aPoint)
1942 
1943 
1944  def FarthestPointTo(self, aPoint):
1945  """FarthestPointTo(EDA_RECT self, wxPoint aPoint) -> wxPoint"""
1946  return _pcbnew.EDA_RECT_FarthestPointTo(self, aPoint)
1947 
1948 
1949  def IntersectsCircle(self, aCenter, aRadius):
1950  """IntersectsCircle(EDA_RECT self, wxPoint aCenter, int const aRadius) -> bool"""
1951  return _pcbnew.EDA_RECT_IntersectsCircle(self, aCenter, aRadius)
1952 
1953 
1954  def IntersectsCircleEdge(self, aCenter, aRadius, aWidth):
1955  """IntersectsCircleEdge(EDA_RECT self, wxPoint aCenter, int const aRadius, int const aWidth) -> bool"""
1956  return _pcbnew.EDA_RECT_IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
1957 
1958 
1959  def getWxRect(self):
1960  """getWxRect(EDA_RECT self) -> wxRect"""
1961  return _pcbnew.EDA_RECT_getWxRect(self)
1962 
1963 
1964  def getBOX2I(self):
1965  """getBOX2I(EDA_RECT self) -> BOX2I"""
1966  return _pcbnew.EDA_RECT_getBOX2I(self)
1967 
1968 
1969  def Inflate(self, *args):
1970  """
1971  Inflate(EDA_RECT self, wxCoord dx, wxCoord dy) -> EDA_RECT
1972  Inflate(EDA_RECT self, int aDelta) -> EDA_RECT
1973  """
1974  return _pcbnew.EDA_RECT_Inflate(self, *args)
1975 
1976 
1977  def Merge(self, *args):
1978  """
1979  Merge(EDA_RECT self, EDA_RECT aRect)
1980  Merge(EDA_RECT self, wxPoint aPoint)
1981  """
1982  return _pcbnew.EDA_RECT_Merge(self, *args)
1983 
1984 
1985  def GetArea(self):
1986  """GetArea(EDA_RECT self) -> double"""
1987  return _pcbnew.EDA_RECT_GetArea(self)
1988 
1989 
1990  def Common(self, aRect):
1991  """Common(EDA_RECT self, EDA_RECT aRect) -> EDA_RECT"""
1992  return _pcbnew.EDA_RECT_Common(self, aRect)
1993 
1994 
1995  def GetBoundingBoxRotated(self, aRotCenter, aAngle):
1996  """GetBoundingBoxRotated(EDA_RECT self, wxPoint aRotCenter, double aAngle) -> EDA_RECT"""
1997  return _pcbnew.EDA_RECT_GetBoundingBoxRotated(self, aRotCenter, aAngle)
1998 
1999 EDA_RECT_swigregister = _pcbnew.EDA_RECT_swigregister
2000 EDA_RECT_swigregister(EDA_RECT)
2001 
2002 
2003 _pcbnew.EDA_PANNING_UP_KEY_swigconstant(_pcbnew)
2004 EDA_PANNING_UP_KEY = _pcbnew.EDA_PANNING_UP_KEY
2005 
2006 _pcbnew.EDA_PANNING_DOWN_KEY_swigconstant(_pcbnew)
2007 EDA_PANNING_DOWN_KEY = _pcbnew.EDA_PANNING_DOWN_KEY
2008 
2009 _pcbnew.EDA_PANNING_LEFT_KEY_swigconstant(_pcbnew)
2010 EDA_PANNING_LEFT_KEY = _pcbnew.EDA_PANNING_LEFT_KEY
2011 
2012 _pcbnew.EDA_PANNING_RIGHT_KEY_swigconstant(_pcbnew)
2013 EDA_PANNING_RIGHT_KEY = _pcbnew.EDA_PANNING_RIGHT_KEY
2014 
2015 _pcbnew.EDA_ZOOM_IN_FROM_MOUSE_swigconstant(_pcbnew)
2016 EDA_ZOOM_IN_FROM_MOUSE = _pcbnew.EDA_ZOOM_IN_FROM_MOUSE
2017 
2018 _pcbnew.EDA_ZOOM_OUT_FROM_MOUSE_swigconstant(_pcbnew)
2019 EDA_ZOOM_OUT_FROM_MOUSE = _pcbnew.EDA_ZOOM_OUT_FROM_MOUSE
2020 
2021 _pcbnew.EDA_ZOOM_CENTER_FROM_MOUSE_swigconstant(_pcbnew)
2022 EDA_ZOOM_CENTER_FROM_MOUSE = _pcbnew.EDA_ZOOM_CENTER_FROM_MOUSE
2023 
2024 _pcbnew.ESC_swigconstant(_pcbnew)
2025 ESC = _pcbnew.ESC
2026 
2027 _pcbnew.TEXT_ANGLE_HORIZ_swigconstant(_pcbnew)
2028 TEXT_ANGLE_HORIZ = _pcbnew.TEXT_ANGLE_HORIZ
2029 
2030 _pcbnew.TEXT_ANGLE_VERT_swigconstant(_pcbnew)
2031 TEXT_ANGLE_VERT = _pcbnew.TEXT_ANGLE_VERT
2032 
2033 def KiROUND(v):
2034  """KiROUND(double v) -> int"""
2035  return _pcbnew.KiROUND(v)
2036 
2037 _pcbnew.INCHES_swigconstant(_pcbnew)
2038 INCHES = _pcbnew.INCHES
2039 
2040 _pcbnew.MILLIMETRES_swigconstant(_pcbnew)
2041 MILLIMETRES = _pcbnew.MILLIMETRES
2042 
2043 _pcbnew.UNSCALED_UNITS_swigconstant(_pcbnew)
2044 UNSCALED_UNITS = _pcbnew.UNSCALED_UNITS
2045 
2046 _pcbnew.DEGREES_swigconstant(_pcbnew)
2047 DEGREES = _pcbnew.DEGREES
2049  """Proxy of C++ LOCALE_IO class."""
2050 
2051  __swig_setmethods__ = {}
2052  __setattr__ = lambda self, name, value: _swig_setattr(self, LOCALE_IO, name, value)
2053  __swig_getmethods__ = {}
2054  __getattr__ = lambda self, name: _swig_getattr(self, LOCALE_IO, name)
2055  __repr__ = _swig_repr
2056 
2057  def __init__(self):
2058  """__init__(LOCALE_IO self) -> LOCALE_IO"""
2059  this = _pcbnew.new_LOCALE_IO()
2060  try:
2061  self.this.append(this)
2062  except Exception:
2063  self.this = this
2064  __swig_destroy__ = _pcbnew.delete_LOCALE_IO
2065  __del__ = lambda self: None
2066 LOCALE_IO_swigregister = _pcbnew.LOCALE_IO_swigregister
2067 LOCALE_IO_swigregister(LOCALE_IO)
2068 
2069 
2070 def GetTextSize(aSingleLine, aWindow):
2071  """GetTextSize(wxString aSingleLine, wxWindow * aWindow) -> wxSize"""
2072  return _pcbnew.GetTextSize(aSingleLine, aWindow)
2073 
2074 def EnsureTextCtrlWidth(aCtrl, aString=None):
2075  """
2076  EnsureTextCtrlWidth(wxTextCtrl * aCtrl, wxString aString=None) -> bool
2077  EnsureTextCtrlWidth(wxTextCtrl * aCtrl) -> bool
2078  """
2079  return _pcbnew.EnsureTextCtrlWidth(aCtrl, aString)
2080 
2081 def ProcessExecute(*args):
2082  """
2083  ProcessExecute(wxString aCommandLine, int aFlags, wxProcess * callback=None) -> int
2084  ProcessExecute(wxString aCommandLine, int aFlags) -> int
2085  ProcessExecute(wxString aCommandLine) -> int
2086  """
2087  return _pcbnew.ProcessExecute(*args)
2088 
2090  """GetNewTimeStamp() -> timestamp_t"""
2091  return _pcbnew.GetNewTimeStamp()
2092 
2093 def RoundTo0(x, precision):
2094  """RoundTo0(double x, double precision) -> double"""
2095  return _pcbnew.RoundTo0(x, precision)
2096 
2097 def wxStringSplit(aText, aStrings, aSplitter):
2098  """wxStringSplit(wxString aText, wxArrayString & aStrings, wxChar aSplitter)"""
2099  return _pcbnew.wxStringSplit(aText, aStrings, aSplitter)
2100 
2101 def SearchHelpFileFullPath(aSearchStack, aBaseName):
2102  """SearchHelpFileFullPath(SEARCH_STACK const & aSearchStack, wxString aBaseName) -> wxString"""
2103  return _pcbnew.SearchHelpFileFullPath(aSearchStack, aBaseName)
2104 
2105 def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None):
2106  """
2107  EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename, REPORTER * aReporter=None) -> bool
2108  EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename) -> bool
2109  """
2110  return _pcbnew.EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter)
2111 
2112 def PrePendPath(aEnvVar, aPriorityPath):
2113  """PrePendPath(wxString aEnvVar, wxString aPriorityPath) -> wxString"""
2114  return _pcbnew.PrePendPath(aEnvVar, aPriorityPath)
2115 
2116 def GetNewConfig(aProgName):
2117  """GetNewConfig(wxString aProgName) -> wxConfigBase *"""
2118  return _pcbnew.GetNewConfig(aProgName)
2119 
2121  """GetKicadConfigPath() -> wxString"""
2122  return _pcbnew.GetKicadConfigPath()
2123 
2125  """ExpandEnvVarSubstitutions(wxString aString) -> wxString"""
2126  return _pcbnew.ExpandEnvVarSubstitutions(aString)
2127 
2129  """ResolveUriByEnvVars(wxString aUri) -> wxString"""
2130  return _pcbnew.ResolveUriByEnvVars(aUri)
2132  """Proxy of C++ WX_FILENAME class."""
2133 
2134  __swig_setmethods__ = {}
2135  __setattr__ = lambda self, name, value: _swig_setattr(self, WX_FILENAME, name, value)
2136  __swig_getmethods__ = {}
2137  __getattr__ = lambda self, name: _swig_getattr(self, WX_FILENAME, name)
2138  __repr__ = _swig_repr
2139 
2140  def __init__(self, aPath, aFilename):
2141  """__init__(WX_FILENAME self, wxString aPath, wxString aFilename) -> WX_FILENAME"""
2142  this = _pcbnew.new_WX_FILENAME(aPath, aFilename)
2143  try:
2144  self.this.append(this)
2145  except Exception:
2146  self.this = this
2147 
2148  def SetFullName(self, aFileNameAndExtension):
2149  """SetFullName(WX_FILENAME self, wxString aFileNameAndExtension)"""
2150  return _pcbnew.WX_FILENAME_SetFullName(self, aFileNameAndExtension)
2151 
2152 
2153  def GetName(self):
2154  """GetName(WX_FILENAME self) -> wxString"""
2155  return _pcbnew.WX_FILENAME_GetName(self)
2156 
2157 
2158  def GetFullName(self):
2159  """GetFullName(WX_FILENAME self) -> wxString"""
2160  return _pcbnew.WX_FILENAME_GetFullName(self)
2161 
2162 
2163  def GetPath(self):
2164  """GetPath(WX_FILENAME self) -> wxString"""
2165  return _pcbnew.WX_FILENAME_GetPath(self)
2166 
2167 
2168  def GetFullPath(self):
2169  """GetFullPath(WX_FILENAME self) -> wxString"""
2170  return _pcbnew.WX_FILENAME_GetFullPath(self)
2171 
2172 
2173  def GetTimestamp(self):
2174  """GetTimestamp(WX_FILENAME self) -> long long"""
2175  return _pcbnew.WX_FILENAME_GetTimestamp(self)
2176 
2177  __swig_destroy__ = _pcbnew.delete_WX_FILENAME
2178  __del__ = lambda self: None
2179 WX_FILENAME_swigregister = _pcbnew.WX_FILENAME_swigregister
2180 WX_FILENAME_swigregister(WX_FILENAME)
2181 
2182 
2183 def TimestampDir(aDirPath, aFilespec):
2184  """TimestampDir(wxString aDirPath, wxString aFilespec) -> long long"""
2185  return _pcbnew.TimestampDir(aDirPath, aFilespec)
2187  """Proxy of C++ TITLE_BLOCK class."""
2188 
2189  __swig_setmethods__ = {}
2190  __setattr__ = lambda self, name, value: _swig_setattr(self, TITLE_BLOCK, name, value)
2191  __swig_getmethods__ = {}
2192  __getattr__ = lambda self, name: _swig_getattr(self, TITLE_BLOCK, name)
2193  __repr__ = _swig_repr
2194 
2195  def __init__(self):
2196  """__init__(TITLE_BLOCK self) -> TITLE_BLOCK"""
2197  this = _pcbnew.new_TITLE_BLOCK()
2198  try:
2199  self.this.append(this)
2200  except Exception:
2201  self.this = this
2202  __swig_destroy__ = _pcbnew.delete_TITLE_BLOCK
2203  __del__ = lambda self: None
2204 
2205  def SetTitle(self, aTitle):
2206  """SetTitle(TITLE_BLOCK self, wxString aTitle)"""
2207  return _pcbnew.TITLE_BLOCK_SetTitle(self, aTitle)
2208 
2209 
2210  def GetTitle(self):
2211  """GetTitle(TITLE_BLOCK self) -> wxString"""
2212  return _pcbnew.TITLE_BLOCK_GetTitle(self)
2213 
2214 
2215  def SetDate(self, aDate):
2216  """SetDate(TITLE_BLOCK self, wxString aDate)"""
2217  return _pcbnew.TITLE_BLOCK_SetDate(self, aDate)
2218 
2219 
2220  def GetDate(self):
2221  """GetDate(TITLE_BLOCK self) -> wxString"""
2222  return _pcbnew.TITLE_BLOCK_GetDate(self)
2223 
2224 
2225  def SetRevision(self, aRevision):
2226  """SetRevision(TITLE_BLOCK self, wxString aRevision)"""
2227  return _pcbnew.TITLE_BLOCK_SetRevision(self, aRevision)
2228 
2229 
2230  def GetRevision(self):
2231  """GetRevision(TITLE_BLOCK self) -> wxString"""
2232  return _pcbnew.TITLE_BLOCK_GetRevision(self)
2233 
2234 
2235  def SetCompany(self, aCompany):
2236  """SetCompany(TITLE_BLOCK self, wxString aCompany)"""
2237  return _pcbnew.TITLE_BLOCK_SetCompany(self, aCompany)
2238 
2239 
2240  def GetCompany(self):
2241  """GetCompany(TITLE_BLOCK self) -> wxString"""
2242  return _pcbnew.TITLE_BLOCK_GetCompany(self)
2243 
2244 
2245  def SetComment(self, aIdx, aComment):
2246  """SetComment(TITLE_BLOCK self, int aIdx, wxString aComment)"""
2247  return _pcbnew.TITLE_BLOCK_SetComment(self, aIdx, aComment)
2248 
2249 
2250  def GetComment(self, aIdx):
2251  """GetComment(TITLE_BLOCK self, int aIdx) -> wxString"""
2252  return _pcbnew.TITLE_BLOCK_GetComment(self, aIdx)
2253 
2254 
2255  def SetComment1(self, aComment):
2256  """SetComment1(TITLE_BLOCK self, wxString aComment)"""
2257  return _pcbnew.TITLE_BLOCK_SetComment1(self, aComment)
2258 
2259 
2260  def SetComment2(self, aComment):
2261  """SetComment2(TITLE_BLOCK self, wxString aComment)"""
2262  return _pcbnew.TITLE_BLOCK_SetComment2(self, aComment)
2263 
2264 
2265  def SetComment3(self, aComment):
2266  """SetComment3(TITLE_BLOCK self, wxString aComment)"""
2267  return _pcbnew.TITLE_BLOCK_SetComment3(self, aComment)
2268 
2269 
2270  def SetComment4(self, aComment):
2271  """SetComment4(TITLE_BLOCK self, wxString aComment)"""
2272  return _pcbnew.TITLE_BLOCK_SetComment4(self, aComment)
2273 
2274 
2275  def GetComment1(self):
2276  """GetComment1(TITLE_BLOCK self) -> wxString"""
2277  return _pcbnew.TITLE_BLOCK_GetComment1(self)
2278 
2279 
2280  def GetComment2(self):
2281  """GetComment2(TITLE_BLOCK self) -> wxString"""
2282  return _pcbnew.TITLE_BLOCK_GetComment2(self)
2283 
2284 
2285  def GetComment3(self):
2286  """GetComment3(TITLE_BLOCK self) -> wxString"""
2287  return _pcbnew.TITLE_BLOCK_GetComment3(self)
2288 
2289 
2290  def GetComment4(self):
2291  """GetComment4(TITLE_BLOCK self) -> wxString"""
2292  return _pcbnew.TITLE_BLOCK_GetComment4(self)
2293 
2294 
2295  def Clear(self):
2296  """Clear(TITLE_BLOCK self)"""
2297  return _pcbnew.TITLE_BLOCK_Clear(self)
2298 
2299 
2300  def Format(self, aFormatter, aNestLevel, aControlBits):
2301  """Format(TITLE_BLOCK self, OUTPUTFORMATTER * aFormatter, int aNestLevel, int aControlBits)"""
2302  return _pcbnew.TITLE_BLOCK_Format(self, aFormatter, aNestLevel, aControlBits)
2303 
2304 TITLE_BLOCK_swigregister = _pcbnew.TITLE_BLOCK_swigregister
2305 TITLE_BLOCK_swigregister(TITLE_BLOCK)
2306 
2308  """Proxy of C++ KIGFX::COLOR4D class."""
2309 
2310  __swig_setmethods__ = {}
2311  __setattr__ = lambda self, name, value: _swig_setattr(self, COLOR4D, name, value)
2312  __swig_getmethods__ = {}
2313  __getattr__ = lambda self, name: _swig_getattr(self, COLOR4D, name)
2314  __repr__ = _swig_repr
2315 
2316  def __init__(self, *args):
2317  """
2318  __init__(KIGFX::COLOR4D self) -> COLOR4D
2319  __init__(KIGFX::COLOR4D self, double aRed, double aGreen, double aBlue, double aAlpha) -> COLOR4D
2320  __init__(KIGFX::COLOR4D self, EDA_COLOR_T aColor) -> COLOR4D
2321  __init__(KIGFX::COLOR4D self, wxColour const & aColor) -> COLOR4D
2322  """
2323  this = _pcbnew.new_COLOR4D(*args)
2324  try:
2325  self.this.append(this)
2326  except Exception:
2327  self.this = this
2328 
2329  def SetFromWxString(self, aColorString):
2330  """SetFromWxString(COLOR4D self, wxString aColorString) -> bool"""
2331  return _pcbnew.COLOR4D_SetFromWxString(self, aColorString)
2332 
2333 
2334  def ToWxString(self, flags):
2335  """ToWxString(COLOR4D self, long flags) -> wxString"""
2336  return _pcbnew.COLOR4D_ToWxString(self, flags)
2337 
2338 
2339  def ToColour(self):
2340  """ToColour(COLOR4D self) -> wxColour"""
2341  return _pcbnew.COLOR4D_ToColour(self)
2342 
2343 
2344  def LegacyMix(self, aColor):
2345  """LegacyMix(COLOR4D self, COLOR4D aColor) -> COLOR4D"""
2346  return _pcbnew.COLOR4D_LegacyMix(self, aColor)
2347 
2348 
2350  """SetToLegacyHighlightColor(COLOR4D self) -> COLOR4D"""
2351  return _pcbnew.COLOR4D_SetToLegacyHighlightColor(self)
2352 
2353 
2355  """SetToNearestLegacyColor(COLOR4D self) -> COLOR4D"""
2356  return _pcbnew.COLOR4D_SetToNearestLegacyColor(self)
2357 
2358 
2359  def AsLegacyColor(self):
2360  """AsLegacyColor(COLOR4D self) -> COLOR4D"""
2361  return _pcbnew.COLOR4D_AsLegacyColor(self)
2362 
2363 
2364  def ToU32(self):
2365  """ToU32(COLOR4D self) -> unsigned int"""
2366  return _pcbnew.COLOR4D_ToU32(self)
2367 
2368 
2369  def FromU32(self, aPackedColor):
2370  """FromU32(COLOR4D self, unsigned int aPackedColor)"""
2371  return _pcbnew.COLOR4D_FromU32(self, aPackedColor)
2372 
2373 
2375  """GetNearestLegacyColor(COLOR4D aColor) -> EDA_COLOR_T"""
2376  return _pcbnew.COLOR4D_GetNearestLegacyColor(aColor)
2377 
2378  if _newclass:
2379  GetNearestLegacyColor = staticmethod(GetNearestLegacyColor)
2380  __swig_getmethods__["GetNearestLegacyColor"] = lambda x: GetNearestLegacyColor
2381 
2382  def Brighten(self, aFactor):
2383  """Brighten(COLOR4D self, double aFactor) -> COLOR4D"""
2384  return _pcbnew.COLOR4D_Brighten(self, aFactor)
2385 
2386 
2387  def Darken(self, aFactor):
2388  """Darken(COLOR4D self, double aFactor) -> COLOR4D"""
2389  return _pcbnew.COLOR4D_Darken(self, aFactor)
2390 
2391 
2392  def Invert(self):
2393  """Invert(COLOR4D self) -> COLOR4D"""
2394  return _pcbnew.COLOR4D_Invert(self)
2395 
2396 
2397  def Saturate(self, aFactor):
2398  """Saturate(COLOR4D self, double aFactor) -> COLOR4D"""
2399  return _pcbnew.COLOR4D_Saturate(self, aFactor)
2400 
2401 
2402  def Brightened(self, aFactor):
2403  """Brightened(COLOR4D self, double aFactor) -> COLOR4D"""
2404  return _pcbnew.COLOR4D_Brightened(self, aFactor)
2405 
2406 
2407  def Darkened(self, aFactor):
2408  """Darkened(COLOR4D self, double aFactor) -> COLOR4D"""
2409  return _pcbnew.COLOR4D_Darkened(self, aFactor)
2410 
2411 
2412  def WithAlpha(self, aAlpha):
2413  """WithAlpha(COLOR4D self, double aAlpha) -> COLOR4D"""
2414  return _pcbnew.COLOR4D_WithAlpha(self, aAlpha)
2415 
2416 
2417  def Inverted(self):
2418  """Inverted(COLOR4D self) -> COLOR4D"""
2419  return _pcbnew.COLOR4D_Inverted(self)
2420 
2421 
2422  def GetBrightness(self):
2423  """GetBrightness(COLOR4D self) -> double"""
2424  return _pcbnew.COLOR4D_GetBrightness(self)
2425 
2426 
2427  def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False):
2428  """
2429  ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue, bool aAlwaysDefineHue=False)
2430  ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue)
2431  """
2432  return _pcbnew.COLOR4D_ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue)
2433 
2434 
2435  def FromHSV(self, aInH, aInS, aInV):
2436  """FromHSV(COLOR4D self, double aInH, double aInS, double aInV)"""
2437  return _pcbnew.COLOR4D_FromHSV(self, aInH, aInS, aInV)
2438 
2439  __swig_setmethods__["r"] = _pcbnew.COLOR4D_r_set
2440  __swig_getmethods__["r"] = _pcbnew.COLOR4D_r_get
2441  if _newclass:
2442  r = _swig_property(_pcbnew.COLOR4D_r_get, _pcbnew.COLOR4D_r_set)
2443  __swig_setmethods__["g"] = _pcbnew.COLOR4D_g_set
2444  __swig_getmethods__["g"] = _pcbnew.COLOR4D_g_get
2445  if _newclass:
2446  g = _swig_property(_pcbnew.COLOR4D_g_get, _pcbnew.COLOR4D_g_set)
2447  __swig_setmethods__["b"] = _pcbnew.COLOR4D_b_set
2448  __swig_getmethods__["b"] = _pcbnew.COLOR4D_b_get
2449  if _newclass:
2450  b = _swig_property(_pcbnew.COLOR4D_b_get, _pcbnew.COLOR4D_b_set)
2451  __swig_setmethods__["a"] = _pcbnew.COLOR4D_a_set
2452  __swig_getmethods__["a"] = _pcbnew.COLOR4D_a_get
2453  if _newclass:
2454  a = _swig_property(_pcbnew.COLOR4D_a_get, _pcbnew.COLOR4D_a_set)
2455  __swig_destroy__ = _pcbnew.delete_COLOR4D
2456  __del__ = lambda self: None
2457 COLOR4D_swigregister = _pcbnew.COLOR4D_swigregister
2458 COLOR4D_swigregister(COLOR4D)
2459 
2461  """COLOR4D_GetNearestLegacyColor(COLOR4D aColor) -> EDA_COLOR_T"""
2462  return _pcbnew.COLOR4D_GetNearestLegacyColor(aColor)
2463 COLOR4D.UNSPECIFIED = _pcbnew.cvar.COLOR4D_UNSPECIFIED
2464 COLOR4D.WHITE = _pcbnew.cvar.COLOR4D_WHITE
2465 COLOR4D.BLACK = _pcbnew.cvar.COLOR4D_BLACK
2466 
2467 
2468 def __eq__(lhs, rhs):
2469  """__eq__(COLOR4D lhs, COLOR4D rhs) -> bool const"""
2470  return _pcbnew.__eq__(lhs, rhs)
2471 
2472 def __ne__(lhs, rhs):
2473  """__ne__(COLOR4D lhs, COLOR4D rhs) -> bool const"""
2474  return _pcbnew.__ne__(lhs, rhs)
2475 
2476 def __lshift__(aStream, aColor):
2477  """__lshift__(std::ostream & aStream, COLOR4D aColor) -> std::ostream &"""
2478  return _pcbnew.__lshift__(aStream, aColor)
2480  """Proxy of C++ COLORS_DESIGN_SETTINGS class."""
2481 
2482  __swig_setmethods__ = {}
2483  __setattr__ = lambda self, name, value: _swig_setattr(self, COLORS_DESIGN_SETTINGS, name, value)
2484  __swig_getmethods__ = {}
2485  __getattr__ = lambda self, name: _swig_getattr(self, COLORS_DESIGN_SETTINGS, name)
2486  __repr__ = _swig_repr
2487  __swig_setmethods__["m_LayersColors"] = _pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_set
2488  __swig_getmethods__["m_LayersColors"] = _pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_get
2489  if _newclass:
2490  m_LayersColors = _swig_property(_pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_get, _pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_set)
2491 
2492  def __init__(self, aFrameType):
2493  """__init__(COLORS_DESIGN_SETTINGS self, FRAME_T aFrameType) -> COLORS_DESIGN_SETTINGS"""
2494  this = _pcbnew.new_COLORS_DESIGN_SETTINGS(aFrameType)
2495  try:
2496  self.this.append(this)
2497  except Exception:
2498  self.this = this
2499  __swig_destroy__ = _pcbnew.delete_COLORS_DESIGN_SETTINGS
2500  __del__ = lambda self: None
2501 
2502  def Load(self, aConfig):
2503  """Load(COLORS_DESIGN_SETTINGS self, wxConfigBase * aConfig)"""
2504  return _pcbnew.COLORS_DESIGN_SETTINGS_Load(self, aConfig)
2505 
2506 
2507  def Save(self, aConfig):
2508  """Save(COLORS_DESIGN_SETTINGS self, wxConfigBase * aConfig)"""
2509  return _pcbnew.COLORS_DESIGN_SETTINGS_Save(self, aConfig)
2510 
2511 
2512  def GetLayerColor(self, aLayer):
2513  """GetLayerColor(COLORS_DESIGN_SETTINGS self, LAYER_NUM aLayer) -> COLOR4D"""
2514  return _pcbnew.COLORS_DESIGN_SETTINGS_GetLayerColor(self, aLayer)
2515 
2516 
2517  def SetLayerColor(self, aLayer, aColor):
2518  """SetLayerColor(COLORS_DESIGN_SETTINGS self, LAYER_NUM aLayer, COLOR4D aColor)"""
2519  return _pcbnew.COLORS_DESIGN_SETTINGS_SetLayerColor(self, aLayer, aColor)
2520 
2521 
2522  def GetItemColor(self, aItemIdx):
2523  """GetItemColor(COLORS_DESIGN_SETTINGS self, int aItemIdx) -> COLOR4D"""
2524  return _pcbnew.COLORS_DESIGN_SETTINGS_GetItemColor(self, aItemIdx)
2525 
2526 
2527  def SetItemColor(self, aItemIdx, aColor):
2528  """SetItemColor(COLORS_DESIGN_SETTINGS self, int aItemIdx, COLOR4D aColor)"""
2529  return _pcbnew.COLORS_DESIGN_SETTINGS_SetItemColor(self, aItemIdx, aColor)
2530 
2531 
2532  def SetAllColorsAs(self, aColor):
2533  """SetAllColorsAs(COLORS_DESIGN_SETTINGS self, COLOR4D aColor)"""
2534  return _pcbnew.COLORS_DESIGN_SETTINGS_SetAllColorsAs(self, aColor)
2535 
2536 
2537  def SetLegacyMode(self, aMode):
2538  """SetLegacyMode(COLORS_DESIGN_SETTINGS self, bool aMode)"""
2539  return _pcbnew.COLORS_DESIGN_SETTINGS_SetLegacyMode(self, aMode)
2540 
2541 COLORS_DESIGN_SETTINGS_swigregister = _pcbnew.COLORS_DESIGN_SETTINGS_swigregister
2542 COLORS_DESIGN_SETTINGS_swigregister(COLORS_DESIGN_SETTINGS)
2543 
2545  """Proxy of C++ MARKER_BASE class."""
2546 
2547  __swig_setmethods__ = {}
2548  __setattr__ = lambda self, name, value: _swig_setattr(self, MARKER_BASE, name, value)
2549  __swig_getmethods__ = {}
2550  __getattr__ = lambda self, name: _swig_getattr(self, MARKER_BASE, name)
2551  __repr__ = _swig_repr
2552  MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
2553  MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
2554  MARKER_PCB = _pcbnew.MARKER_BASE_MARKER_PCB
2555  MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
2556  MARKER_SEVERITY_UNSPEC = _pcbnew.MARKER_BASE_MARKER_SEVERITY_UNSPEC
2557  MARKER_SEVERITY_INFO = _pcbnew.MARKER_BASE_MARKER_SEVERITY_INFO
2558  MARKER_SEVERITY_WARNING = _pcbnew.MARKER_BASE_MARKER_SEVERITY_WARNING
2559  MARKER_SEVERITY_ERROR = _pcbnew.MARKER_BASE_MARKER_SEVERITY_ERROR
2560  __swig_setmethods__["m_Pos"] = _pcbnew.MARKER_BASE_m_Pos_set
2561  __swig_getmethods__["m_Pos"] = _pcbnew.MARKER_BASE_m_Pos_get
2562  if _newclass:
2563  m_Pos = _swig_property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set)
2564 
2565  def __init__(self, *args):
2566  """
2567  __init__(MARKER_BASE self) -> MARKER_BASE
2568  __init__(MARKER_BASE self, EDA_UNITS_T aUnits, int aErrorCode, wxPoint aMarkerPos, EDA_ITEM aItem, wxPoint aPos, EDA_ITEM bItem, wxPoint bPos) -> MARKER_BASE
2569  __init__(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos, wxString bText, wxPoint bPos) -> MARKER_BASE
2570  __init__(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos) -> MARKER_BASE
2571  __init__(MARKER_BASE self, MARKER_BASE aMarker) -> MARKER_BASE
2572  """
2573  this = _pcbnew.new_MARKER_BASE(*args)
2574  try:
2575  self.this.append(this)
2576  except Exception:
2577  self.this = this
2578  __swig_destroy__ = _pcbnew.delete_MARKER_BASE
2579  __del__ = lambda self: None
2580 
2581  def DrawMarker(self, aPanel, aDC, aDrawMode, aOffset):
2582  """DrawMarker(MARKER_BASE self, EDA_DRAW_PANEL * aPanel, wxDC * aDC, GR_DRAWMODE aDrawMode, wxPoint aOffset)"""
2583  return _pcbnew.MARKER_BASE_DrawMarker(self, aPanel, aDC, aDrawMode, aOffset)
2584 
2585 
2586  def GetPos(self):
2587  """GetPos(MARKER_BASE self) -> wxPoint"""
2588  return _pcbnew.MARKER_BASE_GetPos(self)
2589 
2590 
2591  def SetColor(self, aColor):
2592  """SetColor(MARKER_BASE self, COLOR4D aColor)"""
2593  return _pcbnew.MARKER_BASE_SetColor(self, aColor)
2594 
2595 
2596  def SetErrorLevel(self, aErrorLevel):
2597  """SetErrorLevel(MARKER_BASE self, MARKER_BASE::MARKER_SEVERITY aErrorLevel)"""
2598  return _pcbnew.MARKER_BASE_SetErrorLevel(self, aErrorLevel)
2599 
2600 
2601  def GetErrorLevel(self):
2602  """GetErrorLevel(MARKER_BASE self) -> MARKER_BASE::MARKER_SEVERITY"""
2603  return _pcbnew.MARKER_BASE_GetErrorLevel(self)
2604 
2605 
2606  def SetMarkerType(self, aMarkerType):
2607  """SetMarkerType(MARKER_BASE self, enum MARKER_BASE::TYPEMARKER aMarkerType)"""
2608  return _pcbnew.MARKER_BASE_SetMarkerType(self, aMarkerType)
2609 
2610 
2611  def GetMarkerType(self):
2612  """GetMarkerType(MARKER_BASE self) -> enum MARKER_BASE::TYPEMARKER"""
2613  return _pcbnew.MARKER_BASE_GetMarkerType(self)
2614 
2615 
2616  def SetData(self, *args):
2617  """
2618  SetData(MARKER_BASE self, EDA_UNITS_T aUnits, int aErrorCode, wxPoint aMarkerPos, EDA_ITEM aItem, wxPoint aPos, EDA_ITEM bItem=None, wxPoint bPos)
2619  SetData(MARKER_BASE self, EDA_UNITS_T aUnits, int aErrorCode, wxPoint aMarkerPos, EDA_ITEM aItem, wxPoint aPos, EDA_ITEM bItem=None)
2620  SetData(MARKER_BASE self, EDA_UNITS_T aUnits, int aErrorCode, wxPoint aMarkerPos, EDA_ITEM aItem, wxPoint aPos)
2621  SetData(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos, wxString bText, wxPoint bPos)
2622  SetData(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos, wxString bText)
2623  SetData(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos)
2624  """
2625  return _pcbnew.MARKER_BASE_SetData(self, *args)
2626 
2627 
2628  def SetAuxiliaryData(self, aAuxiliaryText, aAuxiliaryPos):
2629  """SetAuxiliaryData(MARKER_BASE self, wxString aAuxiliaryText, wxPoint aAuxiliaryPos)"""
2630  return _pcbnew.MARKER_BASE_SetAuxiliaryData(self, aAuxiliaryText, aAuxiliaryPos)
2631 
2632 
2634  """SetShowNoCoordinate(MARKER_BASE self)"""
2635  return _pcbnew.MARKER_BASE_SetShowNoCoordinate(self)
2636 
2637 
2638  def GetReporter(self):
2639  """GetReporter(MARKER_BASE self) -> DRC_ITEM const &"""
2640  return _pcbnew.MARKER_BASE_GetReporter(self)
2641 
2642 
2643  def DisplayMarkerInfo(self, aFrame):
2644  """DisplayMarkerInfo(MARKER_BASE self, EDA_DRAW_FRAME * aFrame)"""
2645  return _pcbnew.MARKER_BASE_DisplayMarkerInfo(self, aFrame)
2646 
2647 
2648  def HitTestMarker(self, ref_pos):
2649  """HitTestMarker(MARKER_BASE self, wxPoint ref_pos) -> bool"""
2650  return _pcbnew.MARKER_BASE_HitTestMarker(self, ref_pos)
2651 
2652 
2654  """GetBoundingBoxMarker(MARKER_BASE self) -> EDA_RECT"""
2655  return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2656 
2657 MARKER_BASE_swigregister = _pcbnew.MARKER_BASE_swigregister
2658 MARKER_BASE_swigregister(MARKER_BASE)
2659 
2661  """Proxy of C++ UNIQUE_MUTEX class."""
2662 
2663  __swig_setmethods__ = {}
2664  __setattr__ = lambda self, name, value: _swig_setattr(self, UNIQUE_MUTEX, name, value)
2665  __swig_getmethods__ = {}
2666  __getattr__ = lambda self, name: _swig_getattr(self, UNIQUE_MUTEX, name)
2667  __repr__ = _swig_repr
2668 
2669  def __init__(self, *args):
2670  """
2671  __init__(UNIQUE_MUTEX self) -> UNIQUE_MUTEX
2672  __init__(UNIQUE_MUTEX self, UNIQUE_MUTEX arg2) -> UNIQUE_MUTEX
2673  """
2674  this = _pcbnew.new_UNIQUE_MUTEX(*args)
2675  try:
2676  self.this.append(this)
2677  except Exception:
2678  self.this = this
2679  __swig_destroy__ = _pcbnew.delete_UNIQUE_MUTEX
2680  __del__ = lambda self: None
2681 UNIQUE_MUTEX_swigregister = _pcbnew.UNIQUE_MUTEX_swigregister
2682 UNIQUE_MUTEX_swigregister(UNIQUE_MUTEX)
2683 
2684 
2685 _pcbnew.CTL_OMIT_HIDE_swigconstant(_pcbnew)
2686 CTL_OMIT_HIDE = _pcbnew.CTL_OMIT_HIDE
2687 
2688 _pcbnew.GR_TEXT_HJUSTIFY_LEFT_swigconstant(_pcbnew)
2689 GR_TEXT_HJUSTIFY_LEFT = _pcbnew.GR_TEXT_HJUSTIFY_LEFT
2690 
2691 _pcbnew.GR_TEXT_HJUSTIFY_CENTER_swigconstant(_pcbnew)
2692 GR_TEXT_HJUSTIFY_CENTER = _pcbnew.GR_TEXT_HJUSTIFY_CENTER
2693 
2694 _pcbnew.GR_TEXT_HJUSTIFY_RIGHT_swigconstant(_pcbnew)
2695 GR_TEXT_HJUSTIFY_RIGHT = _pcbnew.GR_TEXT_HJUSTIFY_RIGHT
2696 
2697 _pcbnew.GR_TEXT_VJUSTIFY_TOP_swigconstant(_pcbnew)
2698 GR_TEXT_VJUSTIFY_TOP = _pcbnew.GR_TEXT_VJUSTIFY_TOP
2699 
2700 _pcbnew.GR_TEXT_VJUSTIFY_CENTER_swigconstant(_pcbnew)
2701 GR_TEXT_VJUSTIFY_CENTER = _pcbnew.GR_TEXT_VJUSTIFY_CENTER
2702 
2703 _pcbnew.GR_TEXT_VJUSTIFY_BOTTOM_swigconstant(_pcbnew)
2704 GR_TEXT_VJUSTIFY_BOTTOM = _pcbnew.GR_TEXT_VJUSTIFY_BOTTOM
2705 
2706 _pcbnew.FILLED_swigconstant(_pcbnew)
2707 FILLED = _pcbnew.FILLED
2708 
2709 _pcbnew.SKETCH_swigconstant(_pcbnew)
2710 SKETCH = _pcbnew.SKETCH
2711 
2712 _pcbnew.DEFAULT_SIZE_TEXT_swigconstant(_pcbnew)
2713 DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2714 
2715 _pcbnew.DIM_ANCRE_TEXTE_swigconstant(_pcbnew)
2716 DIM_ANCRE_TEXTE = _pcbnew.DIM_ANCRE_TEXTE
2718  """Proxy of C++ TEXT_EFFECTS class."""
2719 
2720  __swig_setmethods__ = {}
2721  __setattr__ = lambda self, name, value: _swig_setattr(self, TEXT_EFFECTS, name, value)
2722  __swig_getmethods__ = {}
2723  __getattr__ = lambda self, name: _swig_getattr(self, TEXT_EFFECTS, name)
2724  __repr__ = _swig_repr
2725 
2726  def __init__(self, aSetOfBits=0):
2727  """
2728  __init__(TEXT_EFFECTS self, int aSetOfBits=0) -> TEXT_EFFECTS
2729  __init__(TEXT_EFFECTS self) -> TEXT_EFFECTS
2730  """
2731  this = _pcbnew.new_TEXT_EFFECTS(aSetOfBits)
2732  try:
2733  self.this.append(this)
2734  except Exception:
2735  self.this = this
2736  __swig_setmethods__["bits"] = _pcbnew.TEXT_EFFECTS_bits_set
2737  __swig_getmethods__["bits"] = _pcbnew.TEXT_EFFECTS_bits_get
2738  if _newclass:
2739  bits = _swig_property(_pcbnew.TEXT_EFFECTS_bits_get, _pcbnew.TEXT_EFFECTS_bits_set)
2740  __swig_setmethods__["hjustify"] = _pcbnew.TEXT_EFFECTS_hjustify_set
2741  __swig_getmethods__["hjustify"] = _pcbnew.TEXT_EFFECTS_hjustify_get
2742  if _newclass:
2743  hjustify = _swig_property(_pcbnew.TEXT_EFFECTS_hjustify_get, _pcbnew.TEXT_EFFECTS_hjustify_set)
2744  __swig_setmethods__["vjustify"] = _pcbnew.TEXT_EFFECTS_vjustify_set
2745  __swig_getmethods__["vjustify"] = _pcbnew.TEXT_EFFECTS_vjustify_get
2746  if _newclass:
2747  vjustify = _swig_property(_pcbnew.TEXT_EFFECTS_vjustify_get, _pcbnew.TEXT_EFFECTS_vjustify_set)
2748  __swig_setmethods__["size"] = _pcbnew.TEXT_EFFECTS_size_set
2749  __swig_getmethods__["size"] = _pcbnew.TEXT_EFFECTS_size_get
2750  if _newclass:
2751  size = _swig_property(_pcbnew.TEXT_EFFECTS_size_get, _pcbnew.TEXT_EFFECTS_size_set)
2752  __swig_setmethods__["penwidth"] = _pcbnew.TEXT_EFFECTS_penwidth_set
2753  __swig_getmethods__["penwidth"] = _pcbnew.TEXT_EFFECTS_penwidth_get
2754  if _newclass:
2755  penwidth = _swig_property(_pcbnew.TEXT_EFFECTS_penwidth_get, _pcbnew.TEXT_EFFECTS_penwidth_set)
2756  __swig_setmethods__["angle"] = _pcbnew.TEXT_EFFECTS_angle_set
2757  __swig_getmethods__["angle"] = _pcbnew.TEXT_EFFECTS_angle_get
2758  if _newclass:
2759  angle = _swig_property(_pcbnew.TEXT_EFFECTS_angle_get, _pcbnew.TEXT_EFFECTS_angle_set)
2760  __swig_setmethods__["pos"] = _pcbnew.TEXT_EFFECTS_pos_set
2761  __swig_getmethods__["pos"] = _pcbnew.TEXT_EFFECTS_pos_get
2762  if _newclass:
2763  pos = _swig_property(_pcbnew.TEXT_EFFECTS_pos_get, _pcbnew.TEXT_EFFECTS_pos_set)
2764 
2765  def Bit(self, *args):
2766  """
2767  Bit(TEXT_EFFECTS self, int aBit, bool aValue)
2768  Bit(TEXT_EFFECTS self, int aBit) -> bool
2769  """
2770  return _pcbnew.TEXT_EFFECTS_Bit(self, *args)
2771 
2772  __swig_destroy__ = _pcbnew.delete_TEXT_EFFECTS
2773  __del__ = lambda self: None
2774 TEXT_EFFECTS_swigregister = _pcbnew.TEXT_EFFECTS_swigregister
2775 TEXT_EFFECTS_swigregister(TEXT_EFFECTS)
2776 
2778  """Proxy of C++ EDA_TEXT class."""
2779 
2780  __swig_setmethods__ = {}
2781  __setattr__ = lambda self, name, value: _swig_setattr(self, EDA_TEXT, name, value)
2782  __swig_getmethods__ = {}
2783  __getattr__ = lambda self, name: _swig_getattr(self, EDA_TEXT, name)
2784  __repr__ = _swig_repr
2785 
2786  def __init__(self, *args):
2787  """
2788  __init__(EDA_TEXT self, wxString text) -> EDA_TEXT
2789  __init__(EDA_TEXT self) -> EDA_TEXT
2790  """
2791  this = _pcbnew.new_EDA_TEXT(*args)
2792  try:
2793  self.this.append(this)
2794  except Exception:
2795  self.this = this
2796  __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2797  __del__ = lambda self: None
2798 
2799  def GetText(self):
2800  """GetText(EDA_TEXT self) -> wxString"""
2801  return _pcbnew.EDA_TEXT_GetText(self)
2802 
2803 
2804  def GetShownText(self):
2805  """GetShownText(EDA_TEXT self) -> wxString"""
2806  return _pcbnew.EDA_TEXT_GetShownText(self)
2807 
2808 
2810  """ShortenedShownText(EDA_TEXT self) -> wxString"""
2811  return _pcbnew.EDA_TEXT_ShortenedShownText(self)
2812 
2813 
2814  def SetText(self, aText):
2815  """SetText(EDA_TEXT self, wxString aText)"""
2816  return _pcbnew.EDA_TEXT_SetText(self, aText)
2817 
2818 
2819  def SetThickness(self, aNewThickness):
2820  """SetThickness(EDA_TEXT self, int aNewThickness)"""
2821  return _pcbnew.EDA_TEXT_SetThickness(self, aNewThickness)
2822 
2823 
2824  def GetThickness(self):
2825  """GetThickness(EDA_TEXT self) -> int"""
2826  return _pcbnew.EDA_TEXT_GetThickness(self)
2827 
2828 
2829  def SetTextAngle(self, aAngle):
2830  """SetTextAngle(EDA_TEXT self, double aAngle)"""
2831  return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2832 
2833 
2834  def GetTextAngle(self):
2835  """GetTextAngle(EDA_TEXT self) -> double"""
2836  return _pcbnew.EDA_TEXT_GetTextAngle(self)
2837 
2838 
2840  """GetTextAngleDegrees(EDA_TEXT self) -> double"""
2841  return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2842 
2843 
2845  """GetTextAngleRadians(EDA_TEXT self) -> double"""
2846  return _pcbnew.EDA_TEXT_GetTextAngleRadians(self)
2847 
2848 
2849  def SetItalic(self, isItalic):
2850  """SetItalic(EDA_TEXT self, bool isItalic)"""
2851  return _pcbnew.EDA_TEXT_SetItalic(self, isItalic)
2852 
2853 
2854  def IsItalic(self):
2855  """IsItalic(EDA_TEXT self) -> bool"""
2856  return _pcbnew.EDA_TEXT_IsItalic(self)
2857 
2858 
2859  def SetBold(self, aBold):
2860  """SetBold(EDA_TEXT self, bool aBold)"""
2861  return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2862 
2863 
2864  def IsBold(self):
2865  """IsBold(EDA_TEXT self) -> bool"""
2866  return _pcbnew.EDA_TEXT_IsBold(self)
2867 
2868 
2869  def SetVisible(self, aVisible):
2870  """SetVisible(EDA_TEXT self, bool aVisible)"""
2871  return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2872 
2873 
2874  def IsVisible(self):
2875  """IsVisible(EDA_TEXT self) -> bool"""
2876  return _pcbnew.EDA_TEXT_IsVisible(self)
2877 
2878 
2879  def SetMirrored(self, isMirrored):
2880  """SetMirrored(EDA_TEXT self, bool isMirrored)"""
2881  return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2882 
2883 
2884  def IsMirrored(self):
2885  """IsMirrored(EDA_TEXT self) -> bool"""
2886  return _pcbnew.EDA_TEXT_IsMirrored(self)
2887 
2888 
2889  def SetMultilineAllowed(self, aAllow):
2890  """SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2891  return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2892 
2893 
2895  """IsMultilineAllowed(EDA_TEXT self) -> bool"""
2896  return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2897 
2898 
2899  def GetHorizJustify(self):
2900  """GetHorizJustify(EDA_TEXT self) -> EDA_TEXT_HJUSTIFY_T"""
2901  return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2902 
2903 
2904  def GetVertJustify(self):
2905  """GetVertJustify(EDA_TEXT self) -> EDA_TEXT_VJUSTIFY_T"""
2906  return _pcbnew.EDA_TEXT_GetVertJustify(self)
2907 
2908 
2909  def SetHorizJustify(self, aType):
2910  """SetHorizJustify(EDA_TEXT self, EDA_TEXT_HJUSTIFY_T aType)"""
2911  return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2912 
2913 
2914  def SetVertJustify(self, aType):
2915  """SetVertJustify(EDA_TEXT self, EDA_TEXT_VJUSTIFY_T aType)"""
2916  return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2917 
2918 
2919  def SetEffects(self, aSrc):
2920  """SetEffects(EDA_TEXT self, EDA_TEXT aSrc)"""
2921  return _pcbnew.EDA_TEXT_SetEffects(self, aSrc)
2922 
2923 
2924  def SwapEffects(self, aTradingPartner):
2925  """SwapEffects(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2926  return _pcbnew.EDA_TEXT_SwapEffects(self, aTradingPartner)
2927 
2928 
2930  """IsDefaultFormatting(EDA_TEXT self) -> bool"""
2931  return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2932 
2933 
2934  def SetTextSize(self, aNewSize):
2935  """SetTextSize(EDA_TEXT self, wxSize aNewSize)"""
2936  return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize)
2937 
2938 
2939  def GetTextSize(self):
2940  """GetTextSize(EDA_TEXT self) -> wxSize"""
2941  return _pcbnew.EDA_TEXT_GetTextSize(self)
2942 
2943 
2944  def SetTextWidth(self, aWidth):
2945  """SetTextWidth(EDA_TEXT self, int aWidth)"""
2946  return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2947 
2948 
2949  def GetTextWidth(self):
2950  """GetTextWidth(EDA_TEXT self) -> int"""
2951  return _pcbnew.EDA_TEXT_GetTextWidth(self)
2952 
2953 
2954  def SetTextHeight(self, aHeight):
2955  """SetTextHeight(EDA_TEXT self, int aHeight)"""
2956  return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2957 
2958 
2959  def GetTextHeight(self):
2960  """GetTextHeight(EDA_TEXT self) -> int"""
2961  return _pcbnew.EDA_TEXT_GetTextHeight(self)
2962 
2963 
2964  def SetTextPos(self, aPoint):
2965  """SetTextPos(EDA_TEXT self, wxPoint aPoint)"""
2966  return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2967 
2968 
2969  def GetTextPos(self):
2970  """GetTextPos(EDA_TEXT self) -> wxPoint"""
2971  return _pcbnew.EDA_TEXT_GetTextPos(self)
2972 
2973 
2974  def SetTextX(self, aX):
2975  """SetTextX(EDA_TEXT self, int aX)"""
2976  return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2977 
2978 
2979  def SetTextY(self, aY):
2980  """SetTextY(EDA_TEXT self, int aY)"""
2981  return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2982 
2983 
2984  def Offset(self, aOffset):
2985  """Offset(EDA_TEXT self, wxPoint aOffset)"""
2986  return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2987 
2988 
2989  def Empty(self):
2990  """Empty(EDA_TEXT self)"""
2991  return _pcbnew.EDA_TEXT_Empty(self)
2992 
2993 
2994  def Draw(self, *args):
2995  """
2996  Draw(EDA_TEXT self, EDA_RECT aClipBox, wxDC * aDC, wxPoint aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode, EDA_DRAW_MODE_T aDisplay_mode=FILLED, COLOR4D aAnchor_color)
2997  Draw(EDA_TEXT self, EDA_RECT aClipBox, wxDC * aDC, wxPoint aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode, EDA_DRAW_MODE_T aDisplay_mode=FILLED)
2998  Draw(EDA_TEXT self, EDA_RECT aClipBox, wxDC * aDC, wxPoint aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode)
2999  """
3000  return _pcbnew.EDA_TEXT_Draw(self, *args)
3001 
3002 
3003  def TransformTextShapeToSegmentList(self, aCornerBuffer):
3004  """TransformTextShapeToSegmentList(EDA_TEXT self, wxPoint_Vector aCornerBuffer)"""
3005  return _pcbnew.EDA_TEXT_TransformTextShapeToSegmentList(self, aCornerBuffer)
3006 
3007 
3008  def TransformBoundingBoxWithClearanceToPolygon(self, aCornerBuffer, aClearanceValue):
3009  """TransformBoundingBoxWithClearanceToPolygon(EDA_TEXT self, SHAPE_POLY_SET aCornerBuffer, int aClearanceValue)"""
3010  return _pcbnew.EDA_TEXT_TransformBoundingBoxWithClearanceToPolygon(self, aCornerBuffer, aClearanceValue)
3011 
3012 
3013  def TextHitTest(self, *args):
3014  """
3015  TextHitTest(EDA_TEXT self, wxPoint aPoint, int aAccuracy=0) -> bool
3016  TextHitTest(EDA_TEXT self, wxPoint aPoint) -> bool
3017  TextHitTest(EDA_TEXT self, EDA_RECT aRect, bool aContains=False, int aAccuracy=0) -> bool
3018  TextHitTest(EDA_TEXT self, EDA_RECT aRect, bool aContains=False) -> bool
3019  TextHitTest(EDA_TEXT self, EDA_RECT aRect) -> bool
3020  """
3021  return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
3022 
3023 
3024  def LenSize(self, aLine):
3025  """LenSize(EDA_TEXT self, wxString aLine) -> int"""
3026  return _pcbnew.EDA_TEXT_LenSize(self, aLine)
3027 
3028 
3029  def GetTextBox(self, aLine=-1, aThickness=-1, aInvertY=False):
3030  """
3031  GetTextBox(EDA_TEXT self, int aLine=-1, int aThickness=-1, bool aInvertY=False) -> EDA_RECT
3032  GetTextBox(EDA_TEXT self, int aLine=-1, int aThickness=-1) -> EDA_RECT
3033  GetTextBox(EDA_TEXT self, int aLine=-1) -> EDA_RECT
3034  GetTextBox(EDA_TEXT self) -> EDA_RECT
3035  """
3036  return _pcbnew.EDA_TEXT_GetTextBox(self, aLine, aThickness, aInvertY)
3037 
3038 
3039  def GetInterline(self, aTextThickness=-1):
3040  """
3041  GetInterline(EDA_TEXT self, int aTextThickness=-1) -> int
3042  GetInterline(EDA_TEXT self) -> int
3043  """
3044  return _pcbnew.EDA_TEXT_GetInterline(self, aTextThickness)
3045 
3046 
3047  def GetTextStyleName(self):
3048  """GetTextStyleName(EDA_TEXT self) -> wxString"""
3049  return _pcbnew.EDA_TEXT_GetTextStyleName(self)
3050 
3051 
3052  def GetPositionsOfLinesOfMultilineText(self, aPositions, aLineCount):
3053  """GetPositionsOfLinesOfMultilineText(EDA_TEXT self, wxPoint_Vector aPositions, int aLineCount)"""
3054  return _pcbnew.EDA_TEXT_GetPositionsOfLinesOfMultilineText(self, aPositions, aLineCount)
3055 
3056 
3057  def Format(self, aFormatter, aNestLevel, aControlBits):
3058  """Format(EDA_TEXT self, OUTPUTFORMATTER * aFormatter, int aNestLevel, int aControlBits)"""
3059  return _pcbnew.EDA_TEXT_Format(self, aFormatter, aNestLevel, aControlBits)
3060 
3061 EDA_TEXT_swigregister = _pcbnew.EDA_TEXT_swigregister
3062 EDA_TEXT_swigregister(EDA_TEXT)
3063 
3065  """Proxy of C++ std::vector<(int)> class."""
3066 
3067  __swig_setmethods__ = {}
3068  __setattr__ = lambda self, name, value: _swig_setattr(self, intVector, name, value)
3069  __swig_getmethods__ = {}
3070  __getattr__ = lambda self, name: _swig_getattr(self, intVector, name)
3071  __repr__ = _swig_repr
3072 
3073  def iterator(self):
3074  """iterator(intVector self) -> SwigPyIterator"""
3075  return _pcbnew.intVector_iterator(self)
3076 
3077  def __iter__(self):
3078  return self.iterator()
3079 
3080  def __nonzero__(self):
3081  """__nonzero__(intVector self) -> bool"""
3082  return _pcbnew.intVector___nonzero__(self)
3083 
3084 
3085  def __bool__(self):
3086  """__bool__(intVector self) -> bool"""
3087  return _pcbnew.intVector___bool__(self)
3088 
3089 
3090  def __len__(self):
3091  """__len__(intVector self) -> std::vector< int >::size_type"""
3092  return _pcbnew.intVector___len__(self)
3093 
3094 
3095  def __getslice__(self, i, j):
3096  """__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
3097  return _pcbnew.intVector___getslice__(self, i, j)
3098 
3099 
3100  def __setslice__(self, *args):
3101  """
3102  __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
3103  __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
3104  """
3105  return _pcbnew.intVector___setslice__(self, *args)
3106 
3107 
3108  def __delslice__(self, i, j):
3109  """__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
3110  return _pcbnew.intVector___delslice__(self, i, j)
3111 
3112 
3113  def __delitem__(self, *args):
3114  """
3115  __delitem__(intVector self, std::vector< int >::difference_type i)
3116  __delitem__(intVector self, PySliceObject * slice)
3117  """
3118  return _pcbnew.intVector___delitem__(self, *args)
3119 
3120 
3121  def __getitem__(self, *args):
3122  """
3123  __getitem__(intVector self, PySliceObject * slice) -> intVector
3124  __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
3125  """
3126  return _pcbnew.intVector___getitem__(self, *args)
3127 
3128 
3129  def __setitem__(self, *args):
3130  """
3131  __setitem__(intVector self, PySliceObject * slice, intVector v)
3132  __setitem__(intVector self, PySliceObject * slice)
3133  __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
3134  """
3135  return _pcbnew.intVector___setitem__(self, *args)
3136 
3137 
3138  def pop(self):
3139  """pop(intVector self) -> std::vector< int >::value_type"""
3140  return _pcbnew.intVector_pop(self)
3141 
3142 
3143  def append(self, x):
3144  """append(intVector self, std::vector< int >::value_type const & x)"""
3145  return _pcbnew.intVector_append(self, x)
3146 
3147 
3148  def empty(self):
3149  """empty(intVector self) -> bool"""
3150  return _pcbnew.intVector_empty(self)
3151 
3152 
3153  def size(self):
3154  """size(intVector self) -> std::vector< int >::size_type"""
3155  return _pcbnew.intVector_size(self)
3156 
3157 
3158  def swap(self, v):
3159  """swap(intVector self, intVector v)"""
3160  return _pcbnew.intVector_swap(self, v)
3161 
3162 
3163  def begin(self):
3164  """begin(intVector self) -> std::vector< int >::iterator"""
3165  return _pcbnew.intVector_begin(self)
3166 
3167 
3168  def end(self):
3169  """end(intVector self) -> std::vector< int >::iterator"""
3170  return _pcbnew.intVector_end(self)
3171 
3172 
3173  def rbegin(self):
3174  """rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
3175  return _pcbnew.intVector_rbegin(self)
3176 
3177 
3178  def rend(self):
3179  """rend(intVector self) -> std::vector< int >::reverse_iterator"""
3180  return _pcbnew.intVector_rend(self)
3181 
3182 
3183  def clear(self):
3184  """clear(intVector self)"""
3185  return _pcbnew.intVector_clear(self)
3186 
3187 
3188  def get_allocator(self):
3189  """get_allocator(intVector self) -> std::vector< int >::allocator_type"""
3190  return _pcbnew.intVector_get_allocator(self)
3191 
3192 
3193  def pop_back(self):
3194  """pop_back(intVector self)"""
3195  return _pcbnew.intVector_pop_back(self)
3196 
3197 
3198  def erase(self, *args):
3199  """
3200  erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
3201  erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
3202  """
3203  return _pcbnew.intVector_erase(self, *args)
3204 
3205 
3206  def __init__(self, *args):
3207  """
3208  __init__(std::vector<(int)> self) -> intVector
3209  __init__(std::vector<(int)> self, intVector arg2) -> intVector
3210  __init__(std::vector<(int)> self, std::vector< int >::size_type size) -> intVector
3211  __init__(std::vector<(int)> self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
3212  """
3213  this = _pcbnew.new_intVector(*args)
3214  try:
3215  self.this.append(this)
3216  except Exception:
3217  self.this = this
3218 
3219  def push_back(self, x):
3220  """push_back(intVector self, std::vector< int >::value_type const & x)"""
3221  return _pcbnew.intVector_push_back(self, x)
3222 
3223 
3224  def front(self):
3225  """front(intVector self) -> std::vector< int >::value_type const &"""
3226  return _pcbnew.intVector_front(self)
3227 
3228 
3229  def back(self):
3230  """back(intVector self) -> std::vector< int >::value_type const &"""
3231  return _pcbnew.intVector_back(self)
3232 
3233 
3234  def assign(self, n, x):
3235  """assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
3236  return _pcbnew.intVector_assign(self, n, x)
3237 
3238 
3239  def resize(self, *args):
3240  """
3241  resize(intVector self, std::vector< int >::size_type new_size)
3242  resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
3243  """
3244  return _pcbnew.intVector_resize(self, *args)
3245 
3246 
3247  def insert(self, *args):
3248  """
3249  insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
3250  insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
3251  """
3252  return _pcbnew.intVector_insert(self, *args)
3253 
3254 
3255  def reserve(self, n):
3256  """reserve(intVector self, std::vector< int >::size_type n)"""
3257  return _pcbnew.intVector_reserve(self, n)
3258 
3259 
3260  def capacity(self):
3261  """capacity(intVector self) -> std::vector< int >::size_type"""
3262  return _pcbnew.intVector_capacity(self)
3263 
3264  __swig_destroy__ = _pcbnew.delete_intVector
3265  __del__ = lambda self: None
3266 intVector_swigregister = _pcbnew.intVector_swigregister
3267 intVector_swigregister(intVector)
3268 
3270  """Proxy of C++ std::map<(std::string,UTF8)> class."""
3271 
3272  __swig_setmethods__ = {}
3273  __setattr__ = lambda self, name, value: _swig_setattr(self, str_utf8_Map, name, value)
3274  __swig_getmethods__ = {}
3275  __getattr__ = lambda self, name: _swig_getattr(self, str_utf8_Map, name)
3276  __repr__ = _swig_repr
3277 
3278  def iterator(self):
3279  """iterator(str_utf8_Map self) -> SwigPyIterator"""
3280  return _pcbnew.str_utf8_Map_iterator(self)
3281 
3282  def __iter__(self):
3283  return self.iterator()
3284 
3285  def __nonzero__(self):
3286  """__nonzero__(str_utf8_Map self) -> bool"""
3287  return _pcbnew.str_utf8_Map___nonzero__(self)
3288 
3289 
3290  def __bool__(self):
3291  """__bool__(str_utf8_Map self) -> bool"""
3292  return _pcbnew.str_utf8_Map___bool__(self)
3293 
3294 
3295  def __len__(self):
3296  """__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3297  return _pcbnew.str_utf8_Map___len__(self)
3298 
3299  def __iter__(self):
3300  return self.key_iterator()
3301  def iterkeys(self):
3302  return self.key_iterator()
3303  def itervalues(self):
3304  return self.value_iterator()
3305  def iteritems(self):
3306  return self.iterator()
3307 
3308  def __getitem__(self, key):
3309  """__getitem__(str_utf8_Map self, string key) -> UTF8"""
3310  return _pcbnew.str_utf8_Map___getitem__(self, key)
3311 
3312 
3313  def __delitem__(self, key):
3314  """__delitem__(str_utf8_Map self, string key)"""
3315  return _pcbnew.str_utf8_Map___delitem__(self, key)
3316 
3317 
3318  def has_key(self, key):
3319  """has_key(str_utf8_Map self, string key) -> bool"""
3320  return _pcbnew.str_utf8_Map_has_key(self, key)
3321 
3322 
3323  def keys(self):
3324  """keys(str_utf8_Map self) -> PyObject *"""
3325  return _pcbnew.str_utf8_Map_keys(self)
3326 
3327 
3328  def values(self):
3329  """values(str_utf8_Map self) -> PyObject *"""
3330  return _pcbnew.str_utf8_Map_values(self)
3331 
3332 
3333  def items(self):
3334  """items(str_utf8_Map self) -> PyObject *"""
3335  return _pcbnew.str_utf8_Map_items(self)
3336 
3337 
3338  def __contains__(self, key):
3339  """__contains__(str_utf8_Map self, string key) -> bool"""
3340  return _pcbnew.str_utf8_Map___contains__(self, key)
3341 
3342 
3343  def key_iterator(self):
3344  """key_iterator(str_utf8_Map self) -> SwigPyIterator"""
3345  return _pcbnew.str_utf8_Map_key_iterator(self)
3346 
3347 
3348  def value_iterator(self):
3349  """value_iterator(str_utf8_Map self) -> SwigPyIterator"""
3350  return _pcbnew.str_utf8_Map_value_iterator(self)
3351 
3352 
3353  def __setitem__(self, *args):
3354  """
3355  __setitem__(str_utf8_Map self, string key)
3356  __setitem__(str_utf8_Map self, string key, UTF8 x)
3357  """
3358  return _pcbnew.str_utf8_Map___setitem__(self, *args)
3359 
3360 
3361  def asdict(self):
3362  """asdict(str_utf8_Map self) -> PyObject *"""
3363  return _pcbnew.str_utf8_Map_asdict(self)
3364 
3365 
3366  def __init__(self, *args):
3367  """
3368  __init__(std::map<(std::string,UTF8)> self, std::less< std::basic_string< char,std::char_traits< char >,std::allocator< char > > > const & arg2) -> str_utf8_Map
3369  __init__(std::map<(std::string,UTF8)> self) -> str_utf8_Map
3370  __init__(std::map<(std::string,UTF8)> self, str_utf8_Map arg2) -> str_utf8_Map
3371  """
3372  this = _pcbnew.new_str_utf8_Map(*args)
3373  try:
3374  self.this.append(this)
3375  except Exception:
3376  self.this = this
3377 
3378  def empty(self):
3379  """empty(str_utf8_Map self) -> bool"""
3380  return _pcbnew.str_utf8_Map_empty(self)
3381 
3382 
3383  def size(self):
3384  """size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3385  return _pcbnew.str_utf8_Map_size(self)
3386 
3387 
3388  def swap(self, v):
3389  """swap(str_utf8_Map self, str_utf8_Map v)"""
3390  return _pcbnew.str_utf8_Map_swap(self, v)
3391 
3392 
3393  def begin(self):
3394  """begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3395  return _pcbnew.str_utf8_Map_begin(self)
3396 
3397 
3398  def end(self):
3399  """end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3400  return _pcbnew.str_utf8_Map_end(self)
3401 
3402 
3403  def rbegin(self):
3404  """rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
3405  return _pcbnew.str_utf8_Map_rbegin(self)
3406 
3407 
3408  def rend(self):
3409  """rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
3410  return _pcbnew.str_utf8_Map_rend(self)
3411 
3412 
3413  def clear(self):
3414  """clear(str_utf8_Map self)"""
3415  return _pcbnew.str_utf8_Map_clear(self)
3416 
3417 
3418  def get_allocator(self):
3419  """get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
3420  return _pcbnew.str_utf8_Map_get_allocator(self)
3421 
3422 
3423  def count(self, x):
3424  """count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3425  return _pcbnew.str_utf8_Map_count(self, x)
3426 
3427 
3428  def erase(self, *args):
3429  """
3430  erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
3431  erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
3432  erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator first, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator last)
3433  """
3434  return _pcbnew.str_utf8_Map_erase(self, *args)
3435 
3436 
3437  def find(self, x):
3438  """find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3439  return _pcbnew.str_utf8_Map_find(self, x)
3440 
3441 
3442  def lower_bound(self, x):
3443  """lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3444  return _pcbnew.str_utf8_Map_lower_bound(self, x)
3445 
3446 
3447  def upper_bound(self, x):
3448  """upper_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3449  return _pcbnew.str_utf8_Map_upper_bound(self, x)
3450 
3451  __swig_destroy__ = _pcbnew.delete_str_utf8_Map
3452  __del__ = lambda self: None
3453 str_utf8_Map_swigregister = _pcbnew.str_utf8_Map_swigregister
3454 str_utf8_Map_swigregister(str_utf8_Map)
3455 
3457  """Proxy of C++ std::vector<(enum PCB_LAYER_ID)> class."""
3458 
3459  __swig_setmethods__ = {}
3460  __setattr__ = lambda self, name, value: _swig_setattr(self, base_seqVect, name, value)
3461  __swig_getmethods__ = {}
3462  __getattr__ = lambda self, name: _swig_getattr(self, base_seqVect, name)
3463  __repr__ = _swig_repr
3464 
3465  def iterator(self):
3466  """iterator(base_seqVect self) -> SwigPyIterator"""
3467  return _pcbnew.base_seqVect_iterator(self)
3468 
3469  def __iter__(self):
3470  return self.iterator()
3471 
3472  def __nonzero__(self):
3473  """__nonzero__(base_seqVect self) -> bool"""
3474  return _pcbnew.base_seqVect___nonzero__(self)
3475 
3476 
3477  def __bool__(self):
3478  """__bool__(base_seqVect self) -> bool"""
3479  return _pcbnew.base_seqVect___bool__(self)
3480 
3481 
3482  def __len__(self):
3483  """__len__(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
3484  return _pcbnew.base_seqVect___len__(self)
3485 
3486 
3487  def __getslice__(self, i, j):
3488  """__getslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j) -> base_seqVect"""
3489  return _pcbnew.base_seqVect___getslice__(self, i, j)
3490 
3491 
3492  def __setslice__(self, *args):
3493  """
3494  __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)
3495  __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j, base_seqVect v)
3496  """
3497  return _pcbnew.base_seqVect___setslice__(self, *args)
3498 
3499 
3500  def __delslice__(self, i, j):
3501  """__delslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)"""
3502  return _pcbnew.base_seqVect___delslice__(self, i, j)
3503 
3504 
3505  def __delitem__(self, *args):
3506  """
3507  __delitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i)
3508  __delitem__(base_seqVect self, PySliceObject * slice)
3509  """
3510  return _pcbnew.base_seqVect___delitem__(self, *args)
3511 
3512 
3513  def __getitem__(self, *args):
3514  """
3515  __getitem__(base_seqVect self, PySliceObject * slice) -> base_seqVect
3516  __getitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i) -> std::vector< enum PCB_LAYER_ID >::value_type const &
3517  """
3518  return _pcbnew.base_seqVect___getitem__(self, *args)
3519 
3520 
3521  def __setitem__(self, *args):
3522  """
3523  __setitem__(base_seqVect self, PySliceObject * slice, base_seqVect v)
3524  __setitem__(base_seqVect self, PySliceObject * slice)
3525  __setitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::value_type const & x)
3526  """
3527  return _pcbnew.base_seqVect___setitem__(self, *args)
3528 
3529 
3530  def pop(self):
3531  """pop(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type"""
3532  return _pcbnew.base_seqVect_pop(self)
3533 
3534 
3535  def append(self, x):
3536  """append(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
3537  return _pcbnew.base_seqVect_append(self, x)
3538 
3539 
3540  def empty(self):
3541  """empty(base_seqVect self) -> bool"""
3542  return _pcbnew.base_seqVect_empty(self)
3543 
3544 
3545  def size(self):
3546  """size(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
3547  return _pcbnew.base_seqVect_size(self)
3548 
3549 
3550  def swap(self, v):
3551  """swap(base_seqVect self, base_seqVect v)"""
3552  return _pcbnew.base_seqVect_swap(self, v)
3553 
3554 
3555  def begin(self):
3556  """begin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
3557  return _pcbnew.base_seqVect_begin(self)
3558 
3559 
3560  def end(self):
3561  """end(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
3562  return _pcbnew.base_seqVect_end(self)
3563 
3564 
3565  def rbegin(self):
3566  """rbegin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
3567  return _pcbnew.base_seqVect_rbegin(self)
3568 
3569 
3570  def rend(self):
3571  """rend(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
3572  return _pcbnew.base_seqVect_rend(self)
3573 
3574 
3575  def clear(self):
3576  """clear(base_seqVect self)"""
3577  return _pcbnew.base_seqVect_clear(self)
3578 
3579 
3580  def get_allocator(self):
3581  """get_allocator(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::allocator_type"""
3582  return _pcbnew.base_seqVect_get_allocator(self)
3583 
3584 
3585  def pop_back(self):
3586  """pop_back(base_seqVect self)"""
3587  return _pcbnew.base_seqVect_pop_back(self)
3588 
3589 
3590  def erase(self, *args):
3591  """
3592  erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos) -> std::vector< enum PCB_LAYER_ID >::iterator
3593  erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator first, std::vector< enum PCB_LAYER_ID >::iterator last) -> std::vector< enum PCB_LAYER_ID >::iterator
3594  """
3595  return _pcbnew.base_seqVect_erase(self, *args)
3596 
3597 
3598  def __init__(self, *args):
3599  """
3600  __init__(std::vector<(enum PCB_LAYER_ID)> self) -> base_seqVect
3601  __init__(std::vector<(enum PCB_LAYER_ID)> self, base_seqVect arg2) -> base_seqVect
3602  __init__(std::vector<(enum PCB_LAYER_ID)> self, std::vector< enum PCB_LAYER_ID >::size_type size) -> base_seqVect
3603  __init__(std::vector<(enum PCB_LAYER_ID)> self, std::vector< enum PCB_LAYER_ID >::size_type size, std::vector< enum PCB_LAYER_ID >::value_type const & value) -> base_seqVect
3604  """
3605  this = _pcbnew.new_base_seqVect(*args)
3606  try:
3607  self.this.append(this)
3608  except Exception:
3609  self.this = this
3610 
3611  def push_back(self, x):
3612  """push_back(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
3613  return _pcbnew.base_seqVect_push_back(self, x)
3614 
3615 
3616  def front(self):
3617  """front(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
3618  return _pcbnew.base_seqVect_front(self)
3619 
3620 
3621  def back(self):
3622  """back(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
3623  return _pcbnew.base_seqVect_back(self)
3624 
3625 
3626  def assign(self, n, x):
3627  """assign(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
3628  return _pcbnew.base_seqVect_assign(self, n, x)
3629 
3630 
3631  def resize(self, *args):
3632  """
3633  resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size)
3634  resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size, std::vector< enum PCB_LAYER_ID >::value_type const & x)
3635  """
3636  return _pcbnew.base_seqVect_resize(self, *args)
3637 
3638 
3639  def insert(self, *args):
3640  """
3641  insert(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos, std::vector< enum PCB_LAYER_ID >::value_type const & x) -> std::vector< enum PCB_LAYER_ID >::iterator
3642  insert(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)
3643  """
3644  return _pcbnew.base_seqVect_insert(self, *args)
3645 
3646 
3647  def reserve(self, n):
3648  """reserve(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n)"""
3649  return _pcbnew.base_seqVect_reserve(self, n)
3650 
3651 
3652  def capacity(self):
3653  """capacity(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
3654  return _pcbnew.base_seqVect_capacity(self)
3655 
3656  __swig_destroy__ = _pcbnew.delete_base_seqVect
3657  __del__ = lambda self: None
3658 base_seqVect_swigregister = _pcbnew.base_seqVect_swigregister
3659 base_seqVect_swigregister(base_seqVect)
3660 
3661 
3662 
3663 KICAD_PLUGINS={} # the list of loaded footprint wizards
3664 
3665 """ the list of not loaded python scripts
3666  (usually because there is a syntax error in python script)
3667  this is the python script full filenames list.
3668  filenames are separated by '\n'
3669 """
3670 NOT_LOADED_WIZARDS=""
3671 
3672 """ the list of paths used to search python scripts.
3673  Stored here to be displayed on request in Pcbnew
3674  paths are separated by '\n'
3675 """
3676 PLUGIN_DIRECTORIES_SEARCH=""
3677 
3678 """ the trace of errors during execution of footprint wizards scripts
3679 """
3680 FULL_BACK_TRACE=""
3681 
3683  global NOT_LOADED_WIZARDS
3684  return NOT_LOADED_WIZARDS
3685 
3687  global PLUGIN_DIRECTORIES_SEARCH
3688  return PLUGIN_DIRECTORIES_SEARCH
3689 
3691  global FULL_BACK_TRACE
3692  return FULL_BACK_TRACE
3693 
3694 
3695 def LoadOnePlugin(Dirname, ModuleName):
3696  """
3697  Load the plugin file ModuleName found in folder Dirname.
3698  If this file cannot be loaded, its name is stored in failed_wizards_list
3699  and the error trace is stored in FULL_BACK_TRACE
3700  """
3701  import os
3702  import sys
3703  import traceback
3704 
3705  global NOT_LOADED_WIZARDS
3706  global FULL_BACK_TRACE
3707 
3708  module_filename = os.path.join(Dirname, ModuleName)
3709 
3710  try: # If there is an error loading the script, skip it
3711  mtime = os.path.getmtime(module_filename)
3712 
3713  if KICAD_PLUGINS.has_key(ModuleName):
3714  plugin = KICAD_PLUGINS[ModuleName]
3715 
3716  if not plugin["modification_time"] == mtime:
3717  mod = reload(plugin["ModuleName"])
3718  plugin["modification_time"] = mtime
3719  else:
3720  mod = plugin["ModuleName"]
3721  else:
3722  mod = __import__(ModuleName[:-3], locals(), globals() )
3723 
3724  KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
3725  "modification_time":mtime,
3726  "ModuleName":mod }
3727 
3728  except:
3729  if NOT_LOADED_WIZARDS != "" :
3730  NOT_LOADED_WIZARDS += "\n"
3731  NOT_LOADED_WIZARDS += module_filename
3732  FULL_BACK_TRACE += traceback.format_exc(sys.exc_info())
3733  pass
3734 
3735 
3736 
3737 def LoadOneSubdirPlugin(Dirname, SubDirname):
3738  """
3739  Load the plugins found in folder Dirname/SubDirname, by loading __ini__.py file.
3740  If files cannot be loaded, its name is stored in failed_wizards_list
3741  and the error trace is stored in FULL_BACK_TRACE
3742  """
3743  import os
3744  import sys
3745  import traceback
3746 
3747  global NOT_LOADED_WIZARDS
3748  global FULL_BACK_TRACE
3749 
3750  fullPath = os.path.join(Dirname,SubDirname)
3751 
3752  if os.path.isdir(fullPath):
3753  """
3754  Skip subdir which does not contain __init__.py, becuase if can be
3755  a non python subdir (can be a subdir for .xsl plugins for instance)
3756  """
3757  if os.path.exists( os.path.join(fullPath, '__init__.py') ):
3758  try: # If there is an error loading the script, skip it
3759  __import__(SubDirname, locals(), globals())
3760 
3761  except:
3762  if NOT_LOADED_WIZARDS != "" :
3763  NOT_LOADED_WIZARDS += "\n"
3764  NOT_LOADED_WIZARDS += fullPath
3765  FULL_BACK_TRACE += traceback.format_exc(sys.exc_info())
3766  pass
3767 
3768  else:
3769  if NOT_LOADED_WIZARDS != "" :
3770  NOT_LOADED_WIZARDS += "\n"
3771  NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
3772 
3773 
3774 def LoadPlugins(bundlepath=None):
3775  """
3776  Initialise Scripting/Plugin python environment and load plugins.
3777 
3778  Arguments:
3779  bundlepath -- The path to the bundled scripts.
3780  The bundled Plugins are relative to this path, in the
3781  "plugins" subdirectory.
3782  WARNING: bundlepath must use '/' as path separator, and not '\'
3783  because it creates issues:
3784  \n and \r are seen as a escaped seq when passing this string to this method
3785  I am thinking this is due to the fact LoadPlugins is called from C++ code by
3786  PyRun_SimpleString()
3787 
3788  NOTE: These are all of the possible "default" search paths for kicad
3789  python scripts. These paths will ONLY be added to the python
3790  search path ONLY IF they already exist.
3791 
3792  The Scripts bundled with the KiCad installation:
3793  <bundlepath>/
3794  <bundlepath>/plugins/
3795 
3796  The Scripts relative to the KiCad search path environment variable:
3797  [KICAD_PATH]/scripting/
3798  [KICAD_PATH]/scripting/plugins/
3799 
3800  The Scripts relative to the KiCad Users configuration:
3801  <kicad_config_path>/scripting/
3802  <kicad_config_path>/scripting/plugins/
3803 
3804  And on Linux ONLY, extra paths relative to the users home directory:
3805  ~/.kicad_plugins/
3806  ~/.kicad/scripting/
3807  ~/.kicad/scripting/plugins/
3808  """
3809  import os
3810  import sys
3811  import traceback
3812  import pcbnew
3813 
3814  kicad_path = os.environ.get('KICAD_PATH')
3815  config_path = pcbnew.GetKicadConfigPath()
3816  plugin_directories=[]
3817 
3818  """
3819  To be consistent with others paths, on windows, convert the unix '/' separator
3820  to the windows separator, although using '/' works
3821  """
3822  if sys.platform.startswith('win32'):
3823  bundlepath = bundlepath.replace("/","\\")
3824 
3825  if bundlepath:
3826  plugin_directories.append(bundlepath)
3827  plugin_directories.append(os.path.join(bundlepath, 'plugins'))
3828 
3829  if kicad_path:
3830  plugin_directories.append(os.path.join(kicad_path, 'scripting'))
3831  plugin_directories.append(os.path.join(kicad_path, 'scripting', 'plugins'))
3832 
3833  if config_path:
3834  plugin_directories.append(os.path.join(config_path, 'scripting'))
3835  plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
3836 
3837  if sys.platform.startswith('linux'):
3838  plugin_directories.append(os.path.join(os.environ['HOME'],'.kicad_plugins'))
3839  plugin_directories.append(os.path.join(os.environ['HOME'],'.kicad','scripting'))
3840  plugin_directories.append(os.path.join(os.environ['HOME'],'.kicad','scripting','plugins'))
3841 
3842  global PLUGIN_DIRECTORIES_SEARCH
3843  PLUGIN_DIRECTORIES_SEARCH=""
3844  for plugins_dir in plugin_directories: # save search path list for later use
3845  if PLUGIN_DIRECTORIES_SEARCH != "" :
3846  PLUGIN_DIRECTORIES_SEARCH += "\n"
3847  PLUGIN_DIRECTORIES_SEARCH += plugins_dir
3848 
3849  global FULL_BACK_TRACE
3850  FULL_BACK_TRACE="" # clear any existing trace
3851 
3852  global NOT_LOADED_WIZARDS
3853  NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
3854 
3855  global KICAD_PLUGINS
3856 
3857  for plugins_dir in plugin_directories:
3858  if not os.path.isdir(plugins_dir):
3859  continue
3860 
3861  sys.path.append(plugins_dir)
3862 
3863  for module in os.listdir(plugins_dir):
3864  if os.path.isdir(os.path.join(plugins_dir,module)):
3865  LoadOneSubdirPlugin(plugins_dir, module)
3866  continue
3867 
3868  if module == '__init__.py' or module[-3:] != '.py':
3869  continue
3870 
3871  LoadOnePlugin(plugins_dir, module)
3872 
3873 
3875  def __init__(self):
3876  pass
3877 
3878  def register(self):
3879  import inspect
3880  import os
3881 
3882  if isinstance(self,FilePlugin):
3883  pass # register to file plugins in C++
3884 
3885  if isinstance(self,FootprintWizardPlugin):
3886  PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
3887  return
3888 
3889  if isinstance(self,ActionPlugin):
3890  """
3891  Get path to .py or .pyc that has definition of plugin class.
3892  If path is binary but source also exists, assume definition is in source.
3893  """
3894  self.__plugin_path = inspect.getfile(self.__class__)
3895  if self.__plugin_path.endswith('.pyc') and os.path.isfile(self.__plugin_path[:-1]):
3896  self.__plugin_path = self.__plugin_path[:-1]
3897  self.__plugin_path = self.__plugin_path + '/' + self.__class__.__name__
3898  PYTHON_ACTION_PLUGINS.register_action(self)
3899  return
3900 
3901  return
3902 
3903  def deregister(self):
3904  if isinstance(self,FilePlugin):
3905  pass # deregister to file plugins in C++
3906 
3907  if isinstance(self,FootprintWizardPlugin):
3908  PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
3909  return
3910 
3911  if isinstance(self,ActionPlugin):
3912  PYTHON_ACTION_PLUGINS.deregister_action(self)
3913  return
3914 
3915  return
3916 
3917  def GetPluginPath( self ):
3918  return self.__plugin_path
3919 
3920 
3922  def __init__(self):
3923  KiCadPlugin.__init__(self)
3924 
3925 
3926 from math import ceil, floor, sqrt
3927 
3928 uMM = "mm" # Millimetres
3929 uMils = "mils" # Mils
3930 uFloat = "float" # Natural number units (dimensionless)
3931 uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
3932 uBool = "bool" # Boolean value
3933 uRadians = "radians" # Angular units (radians)
3934 uDegrees = "degrees" # Angular units (degrees)
3935 uPercent = "%" # Percent (0% -> 100%)
3936 uString = "string" # Raw string
3937 
3938 uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
3939 uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
3940 
3942  _true = ['true','t','y','yes','on','1',1,]
3943  _false = ['false','f','n','no','off','0',0,'',None]
3944 
3945  _bools = _true + _false
3946 
3947  def __init__(self, page, name, units, default, **kwarg):
3948  self.page = page
3949  self.name = name
3950  self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
3951  self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
3952 
3953  if units.lower() in uUnits:
3954  self.units = units.lower()
3955  elif units.lower() == 'percent':
3956  self.units = uPercent
3957  elif type(units) in [list, tuple]: # Convert a list of options into a single string
3958  self.units = ",".join([str(el).strip() for el in units])
3959  else:
3960  self.units = units
3961 
3962  self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
3963  self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
3964  self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
3965 
3966  self.SetValue(default)
3967  self.default = self.raw_value # Save value as default
3968 
3969  def ClearErrors(self):
3970  self.error_list = []
3971 
3972  def AddError(self, err, info=None):
3973 
3974  if err in self.error_list: # prevent duplicate error messages
3975  return
3976  if info is not None:
3977  err = err + " (" + str(info) + ")"
3978 
3979  self.error_list.append(err)
3980 
3981  def Check(self, min_value=None, max_value=None, multiple=None, info=None):
3982 
3983  if min_value is None:
3984  min_value = self.min_value
3985  if max_value is None:
3986  max_value = self.max_value
3987  if multiple is None:
3988  multiple = self.multiple
3989 
3990  if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
3991  self.AddError("type '{t}' unknown".format(t=self.units),info)
3992  self.AddError("Allowable types: " + str(self.units),info)
3993 
3994  if self.units in uNumeric:
3995  try:
3996  to_num = float(self.raw_value)
3997 
3998  if min_value is not None: # Check minimum value if it is present
3999  if to_num < min_value:
4000  self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
4001 
4002  if max_value is not None: # Check maximum value if it is present
4003  if to_num > max_value:
4004  self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
4005 
4006  except:
4007  self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
4008 
4009  if self.units == uInteger: # Perform integer specific checks
4010  try:
4011  to_int = int(self.raw_value)
4012 
4013  if multiple is not None and multiple > 1:
4014  if (to_int % multiple) > 0:
4015  self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
4016  except:
4017  self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
4018 
4019  if self.units == uBool: # Check that the value is of a correct boolean format
4020  if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
4021  pass
4022  else:
4023  self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
4024 
4025  @property
4026  def value(self): # Return the current value, converted to appropriate units (from string representation) if required
4027  v = str(self.raw_value) # Enforce string type for known starting point
4028 
4029  if self.units == uInteger: # Integer values
4030  return int(v)
4031  elif self.units in uNumeric: # Any values that use floating points
4032  v = v.replace(",",".") # Replace "," separators with "."
4033  v = float(v)
4034 
4035  if self.units == uMM: # Convert from millimetres to nanometres
4036  return FromMM(v)
4037 
4038  elif self.units == uMils: # Convert from mils to nanometres
4039  return FromMils(v)
4040 
4041  else: # Any other floating-point values
4042  return v
4043 
4044  elif self.units == uBool:
4045  if v.lower() in self._true:
4046  return True
4047  else:
4048  return False
4049  else:
4050  return v
4051 
4052  def DefaultValue(self): # Reset the value of the parameter to its default
4053  self.raw_value = str(self.default)
4054 
4055  def SetValue(self, new_value): # Update the value
4056  new_value = str(new_value)
4057 
4058  if len(new_value.strip()) == 0:
4059  if not self.units in [uString, uBool]:
4060  return # Ignore empty values unless for strings or bools
4061 
4062  if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
4063  new_value = "1" if new_value.lower() in self._true else "0"
4064  elif self.units in uNumeric:
4065  new_value = new_value.replace(",", ".") # Enforce decimal point separators
4066  elif ',' in self.units: # Select from a list of values
4067  if new_value not in self.units.split(','):
4068  new_value = self.units.split(',')[0]
4069 
4070  self.raw_value = new_value
4071 
4072  def __str__(self): # pretty-print the parameter
4073 
4074  s = self.name + ": " + str(self.raw_value)
4075 
4076  if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
4077  s += self.units
4078  elif self.units == uBool: # Special case for Boolean values
4079  s = self.name + ": {b}".format(b = "True" if self.value else "False")
4080  elif self.units == uString:
4081  s = self.name + ": '" + self.raw_value + "'"
4082 
4083  return s
4084 
4085 
4087  def __init__(self):
4088  KiCadPlugin.__init__(self)
4089  self.defaults()
4090 
4091  def defaults(self):
4092  self.module = None
4093  self.params = [] # List of added parameters that observes addition order
4094 
4095  self.name = "KiCad FP Wizard"
4096  self.description = "Undefined Footprint Wizard plugin"
4097  self.image = ""
4098  self.buildmessages = ""
4099 
4100  def AddParam(self, page, name, unit, default, **kwarg):
4101 
4102  if self.GetParam(page,name) is not None: # Param already exists!
4103  return
4104 
4105  param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
4106  self.params.append(param)
4107 
4108  @property
4109  def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
4110  pages = {} # Page dict
4111  for p in self.params:
4112  if p.page not in pages:
4113  pages[p.page] = {}
4114 
4115  pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
4116 
4117  return pages
4118 
4119  @property
4120  def values(self): # Same as above
4121  return self.parameters
4122 
4123  def ResetWizard(self): # Reset all parameters to default values
4124  for p in self.params:
4125  p.DefaultValue()
4126 
4127  def GetName(self): # Return the name of this wizard
4128  return self.name
4129 
4130  def GetImage(self): # Return the filename of the preview image associated with this wizard
4131  return self.image
4132 
4133  def GetDescription(self): # Return the description text
4134  return self.description
4135 
4136  def GetValue(self):
4137  raise NotImplementedError
4138 
4140  return "REF" # Default reference prefix for any footprint
4141 
4142  def GetParam(self, page, name): # Grab a parameter
4143  for p in self.params:
4144  if p.page == page and p.name == name:
4145  return p
4146 
4147  return None
4148 
4149  def CheckParam(self, page, name, **kwarg):
4150  self.GetParam(page,name).Check(**kwarg)
4151 
4152  def AnyErrors(self):
4153  return any([len(p.error_list) > 0 for p in self.params])
4154 
4155  @property
4156  def pages(self): # Return an (ordered) list of the available page names
4157  page_list = []
4158  for p in self.params:
4159  if p.page not in page_list:
4160  page_list.append(p.page)
4161 
4162  return page_list
4163 
4164  def GetNumParameterPages(self): # Return the number of parameter pages
4165  return len(self.pages)
4166 
4167  def GetParameterPageName(self,page_n): # Return the name of a page at a given index
4168  return self.pages[page_n]
4169 
4170  def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
4171  params = []
4172 
4173  for p in self.params:
4174  if p.page == page_name:
4175  params.append(p)
4176 
4177  return params
4178 
4179  def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
4180  return self.GetParametersByPageName(self.GetParameterPageName(page_index))
4181 
4182  def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4183  params = self.GetParametersByPageIndex(page_index)
4184  return [p.designator for p in params]
4185 
4186  def GetParameterNames(self,page_index): # Return the list of names associated with a given page
4187  params = self.GetParametersByPageIndex(page_index)
4188  return [p.name for p in params]
4189 
4190  def GetParameterValues(self,page_index): # Return the list of values associated with a given page
4191  params = self.GetParametersByPageIndex(page_index)
4192  return [str(p.raw_value) for p in params]
4193 
4194  def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
4195  params = self.GetParametersByPageIndex(page_index)
4196  return [str("\n".join(p.error_list)) for p in params]
4197 
4198  def GetParameterTypes(self, page_index): # Return list of units associated with a given page
4199  params = self.GetParametersByPageIndex(page_index)
4200  return [str(p.units) for p in params]
4201 
4202  def GetParameterHints(self, page_index): # Return a list of units associated with a given page
4203  params = self.GetParametersByPageIndex(page_index)
4204  return [str(p.hint) for p in params]
4205 
4206  def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4207  params = self.GetParametersByPageIndex(page_index)
4208  return [str(p.designator) for p in params]
4209 
4210  def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
4211 
4212  params = self.GetParametersByPageIndex(page_index)
4213 
4214  for i, param in enumerate(params):
4215  if i >= len(list_of_values):
4216  break
4217  param.SetValue(list_of_values[i])
4218 
4219  def GetFootprint( self ):
4220  self.BuildFootprint()
4221  return self.module
4222 
4223  def BuildFootprint(self):
4224  return
4225 
4226  def GetBuildMessages( self ):
4227  return self.buildmessages
4228 
4229  def Show(self):
4230  text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
4231  text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
4232 
4233  n_pages = self.GetNumParameterPages()
4234 
4235  text += "Pages: {n}\n".format(n=n_pages)
4236 
4237  for i in range(n_pages):
4238  name = self.GetParameterPageName(i)
4239 
4240  params = self.GetParametersByPageName(name)
4241 
4242  text += "{name}\n".format(name=name)
4243 
4244  for j in range(len(params)):
4245  text += ("\t{param}{err}\n".format(
4246  param = str(params[j]),
4247  err = ' *' if len(params[j].error_list) > 0 else ''
4248  ))
4249 
4250  if self.AnyErrors():
4251  text += " * Errors exist for these parameters"
4252 
4253  return text
4254 
4256  def __init__( self ):
4257  KiCadPlugin.__init__( self )
4258  self.icon_file_name = ""
4259  self.show_toolbar_button = False
4260  self.defaults()
4261 
4262  def defaults( self ):
4263  self.name = "Undefined Action plugin"
4264  self.category = "Undefined"
4265  self.description = ""
4266 
4267  def GetName( self ):
4268  return self.name
4269 
4270  def GetCategoryName( self ):
4271  return self.category
4272 
4273  def GetDescription( self ):
4274  return self.description
4275 
4277  return self.show_toolbar_button
4278 
4279  def GetIconFileName( self ):
4280  return self.icon_file_name
4281 
4282  def Run(self):
4283  return
4284 
4285 
4286 class CSegment(_object):
4287  """Proxy of C++ CSegment class."""
4288 
4289  __swig_setmethods__ = {}
4290  __setattr__ = lambda self, name, value: _swig_setattr(self, CSegment, name, value)
4291  __swig_getmethods__ = {}
4292  __getattr__ = lambda self, name: _swig_getattr(self, CSegment, name)
4293  __repr__ = _swig_repr
4294  __swig_setmethods__["m_Start"] = _pcbnew.CSegment_m_Start_set
4295  __swig_getmethods__["m_Start"] = _pcbnew.CSegment_m_Start_get
4296  if _newclass:
4297  m_Start = _swig_property(_pcbnew.CSegment_m_Start_get, _pcbnew.CSegment_m_Start_set)
4298  __swig_setmethods__["m_End"] = _pcbnew.CSegment_m_End_set
4299  __swig_getmethods__["m_End"] = _pcbnew.CSegment_m_End_get
4300  if _newclass:
4301  m_End = _swig_property(_pcbnew.CSegment_m_End_get, _pcbnew.CSegment_m_End_set)
4302 
4303  def __init__(self, *args):
4304  """
4305  __init__(CSegment self) -> CSegment
4306  __init__(CSegment self, wxPoint aStart, wxPoint aEnd) -> CSegment
4307  __init__(CSegment self, int x0, int y0, int x1, int y1) -> CSegment
4308  """
4309  this = _pcbnew.new_CSegment(*args)
4310  try:
4311  self.this.append(this)
4312  except Exception:
4313  self.this = this
4314  __swig_destroy__ = _pcbnew.delete_CSegment
4315  __del__ = lambda self: None
4316 CSegment_swigregister = _pcbnew.CSegment_swigregister
4317 CSegment_swigregister(CSegment)
4318 
4320  """Proxy of C++ CPolyPt class."""
4321 
4322  __swig_setmethods__ = {}
4323  for _s in [wxPoint]:
4324  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
4325  __setattr__ = lambda self, name, value: _swig_setattr(self, CPolyPt, name, value)
4326  __swig_getmethods__ = {}
4327  for _s in [wxPoint]:
4328  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
4329  __getattr__ = lambda self, name: _swig_getattr(self, CPolyPt, name)
4330  __repr__ = _swig_repr
4331 
4332  def __init__(self, *args):
4333  """
4334  __init__(CPolyPt self, int aX=0, int aY=0, bool aEnd=False, int aUtility=0) -> CPolyPt
4335  __init__(CPolyPt self, int aX=0, int aY=0, bool aEnd=False) -> CPolyPt
4336  __init__(CPolyPt self, int aX=0, int aY=0) -> CPolyPt
4337  __init__(CPolyPt self, int aX=0) -> CPolyPt
4338  __init__(CPolyPt self) -> CPolyPt
4339  __init__(CPolyPt self, CPolyPt aPt) -> CPolyPt
4340  __init__(CPolyPt self, wxPoint aPoint) -> CPolyPt
4341  """
4342  this = _pcbnew.new_CPolyPt(*args)
4343  try:
4344  self.this.append(this)
4345  except Exception:
4346  self.this = this
4347  __swig_setmethods__["end_contour"] = _pcbnew.CPolyPt_end_contour_set
4348  __swig_getmethods__["end_contour"] = _pcbnew.CPolyPt_end_contour_get
4349  if _newclass:
4350  end_contour = _swig_property(_pcbnew.CPolyPt_end_contour_get, _pcbnew.CPolyPt_end_contour_set)
4351  __swig_setmethods__["m_flags"] = _pcbnew.CPolyPt_m_flags_set
4352  __swig_getmethods__["m_flags"] = _pcbnew.CPolyPt_m_flags_get
4353  if _newclass:
4354  m_flags = _swig_property(_pcbnew.CPolyPt_m_flags_get, _pcbnew.CPolyPt_m_flags_set)
4355 
4356  def __eq__(self, cpt2):
4357  """__eq__(CPolyPt self, CPolyPt cpt2) -> bool"""
4358  return _pcbnew.CPolyPt___eq__(self, cpt2)
4359 
4360 
4361  def __ne__(self, cpt2):
4362  """__ne__(CPolyPt self, CPolyPt cpt2) -> bool"""
4363  return _pcbnew.CPolyPt___ne__(self, cpt2)
4364 
4365  __swig_destroy__ = _pcbnew.delete_CPolyPt
4366  __del__ = lambda self: None
4367 CPolyPt_swigregister = _pcbnew.CPolyPt_swigregister
4368 CPolyPt_swigregister(CPolyPt)
4369 
4371  """Proxy of C++ CPolyLine class."""
4372 
4373  __swig_setmethods__ = {}
4374  __setattr__ = lambda self, name, value: _swig_setattr(self, CPolyLine, name, value)
4375  __swig_getmethods__ = {}
4376  __getattr__ = lambda self, name: _swig_getattr(self, CPolyLine, name)
4377  __repr__ = _swig_repr
4378  NO_HATCH = _pcbnew.CPolyLine_NO_HATCH
4379  DIAGONAL_FULL = _pcbnew.CPolyLine_DIAGONAL_FULL
4380  DIAGONAL_EDGE = _pcbnew.CPolyLine_DIAGONAL_EDGE
4381 
4382  def __init__(self, *args):
4383  """
4384  __init__(CPolyLine self) -> CPolyLine
4385  __init__(CPolyLine self, CPolyLine aCPolyLine) -> CPolyLine
4386  """
4387  this = _pcbnew.new_CPolyLine(*args)
4388  try:
4389  self.this.append(this)
4390  except Exception:
4391  self.this = this
4392  __swig_destroy__ = _pcbnew.delete_CPolyLine
4393  __del__ = lambda self: None
4394 
4395  def ImportSettings(self, aPoly):
4396  """ImportSettings(CPolyLine self, CPolyLine aPoly)"""
4397  return _pcbnew.CPolyLine_ImportSettings(self, aPoly)
4398 
4399 
4400  def Start(self, layer, x, y, hatch):
4401  """Start(CPolyLine self, LAYER_NUM layer, int x, int y, int hatch)"""
4402  return _pcbnew.CPolyLine_Start(self, layer, x, y, hatch)
4403 
4404 
4405  def AppendCorner(self, x, y):
4406  """AppendCorner(CPolyLine self, int x, int y)"""
4407  return _pcbnew.CPolyLine_AppendCorner(self, x, y)
4408 
4409 
4410  def InsertCorner(self, ic, x, y):
4411  """InsertCorner(CPolyLine self, int ic, int x, int y)"""
4412  return _pcbnew.CPolyLine_InsertCorner(self, ic, x, y)
4413 
4414 
4415  def DeleteCorner(self, ic):
4416  """DeleteCorner(CPolyLine self, int ic)"""
4417  return _pcbnew.CPolyLine_DeleteCorner(self, ic)
4418 
4419 
4420  def MoveCorner(self, ic, x, y):
4421  """MoveCorner(CPolyLine self, int ic, int x, int y)"""
4422  return _pcbnew.CPolyLine_MoveCorner(self, ic, x, y)
4423 
4424 
4425  def CloseLastContour(self):
4426  """CloseLastContour(CPolyLine self)"""
4427  return _pcbnew.CPolyLine_CloseLastContour(self)
4428 
4429 
4430  def RemoveContour(self, icont):
4431  """RemoveContour(CPolyLine self, int icont)"""
4432  return _pcbnew.CPolyLine_RemoveContour(self, icont)
4433 
4434 
4436  """IsPolygonSelfIntersecting(CPolyLine self) -> bool"""
4437  return _pcbnew.CPolyLine_IsPolygonSelfIntersecting(self)
4438 
4439 
4440  def Chamfer(self, aDistance):
4441  """Chamfer(CPolyLine self, unsigned int aDistance) -> CPolyLine"""
4442  return _pcbnew.CPolyLine_Chamfer(self, aDistance)
4443 
4444 
4445  def Fillet(self, aRadius, aSegments):
4446  """Fillet(CPolyLine self, unsigned int aRadius, unsigned int aSegments) -> CPolyLine"""
4447  return _pcbnew.CPolyLine_Fillet(self, aRadius, aSegments)
4448 
4449 
4451  """RemoveNullSegments(CPolyLine self) -> int"""
4452  return _pcbnew.CPolyLine_RemoveNullSegments(self)
4453 
4454 
4456  """RemoveAllContours(CPolyLine self)"""
4457  return _pcbnew.CPolyLine_RemoveAllContours(self)
4458 
4459 
4460  def UnHatch(self):
4461  """UnHatch(CPolyLine self)"""
4462  return _pcbnew.CPolyLine_UnHatch(self)
4463 
4464 
4465  def Hatch(self):
4466  """Hatch(CPolyLine self)"""
4467  return _pcbnew.CPolyLine_Hatch(self)
4468 
4469 
4470  def MoveOrigin(self, x_off, y_off):
4471  """MoveOrigin(CPolyLine self, int x_off, int y_off)"""
4472  return _pcbnew.CPolyLine_MoveOrigin(self, x_off, y_off)
4473 
4474 
4475  def GetBoundingBox(self, *args):
4476  """
4477  GetBoundingBox(CPolyLine self) -> EDA_RECT
4478  GetBoundingBox(CPolyLine self, int icont) -> EDA_RECT
4479  """
4480  return _pcbnew.CPolyLine_GetBoundingBox(self, *args)
4481 
4482 
4483  def Copy(self, src):
4484  """Copy(CPolyLine self, CPolyLine src)"""
4485  return _pcbnew.CPolyLine_Copy(self, src)
4486 
4487 
4488  def TestPointInside(self, x, y):
4489  """TestPointInside(CPolyLine self, int x, int y) -> bool"""
4490  return _pcbnew.CPolyLine_TestPointInside(self, x, y)
4491 
4492 
4493  def IsCutoutContour(self, aCornerIdx):
4494  """IsCutoutContour(CPolyLine self, int aCornerIdx) -> bool"""
4495  return _pcbnew.CPolyLine_IsCutoutContour(self, aCornerIdx)
4496 
4497 
4498  def AppendArc(self, xi, yi, xf, yf, xc, yc, num):
4499  """AppendArc(CPolyLine self, int xi, int yi, int xf, int yf, int xc, int yc, int num)"""
4500  return _pcbnew.CPolyLine_AppendArc(self, xi, yi, xf, yf, xc, yc, num)
4501 
4502 
4503  def SetLayer(self, aLayer):
4504  """SetLayer(CPolyLine self, LAYER_NUM aLayer)"""
4505  return _pcbnew.CPolyLine_SetLayer(self, aLayer)
4506 
4507 
4508  def GetLayer(self):
4509  """GetLayer(CPolyLine self) -> LAYER_NUM"""
4510  return _pcbnew.CPolyLine_GetLayer(self)
4511 
4512 
4513  def GetCornersCount(self):
4514  """GetCornersCount(CPolyLine self) -> int"""
4515  return _pcbnew.CPolyLine_GetCornersCount(self)
4516 
4517 
4518  def GetClosed(self):
4519  """GetClosed(CPolyLine self) -> bool"""
4520  return _pcbnew.CPolyLine_GetClosed(self)
4521 
4522 
4523  def GetContoursCount(self):
4524  """GetContoursCount(CPolyLine self) -> int"""
4525  return _pcbnew.CPolyLine_GetContoursCount(self)
4526 
4527 
4528  def GetContour(self, ic):
4529  """GetContour(CPolyLine self, int ic) -> int"""
4530  return _pcbnew.CPolyLine_GetContour(self, ic)
4531 
4532 
4533  def GetContourStart(self, icont):
4534  """GetContourStart(CPolyLine self, int icont) -> int"""
4535  return _pcbnew.CPolyLine_GetContourStart(self, icont)
4536 
4537 
4538  def GetContourEnd(self, icont):
4539  """GetContourEnd(CPolyLine self, int icont) -> int"""
4540  return _pcbnew.CPolyLine_GetContourEnd(self, icont)
4541 
4542 
4543  def GetContourSize(self, icont):
4544  """GetContourSize(CPolyLine self, int icont) -> int"""
4545  return _pcbnew.CPolyLine_GetContourSize(self, icont)
4546 
4547 
4548  def GetX(self, ic):
4549  """GetX(CPolyLine self, int ic) -> int"""
4550  return _pcbnew.CPolyLine_GetX(self, ic)
4551 
4552 
4553  def GetY(self, ic):
4554  """GetY(CPolyLine self, int ic) -> int"""
4555  return _pcbnew.CPolyLine_GetY(self, ic)
4556 
4557 
4558  def IsEndContour(self, ic):
4559  """IsEndContour(CPolyLine self, int ic) -> bool"""
4560  return _pcbnew.CPolyLine_IsEndContour(self, ic)
4561 
4562 
4563  def GetPos(self, ic):
4564  """GetPos(CPolyLine self, int ic) -> wxPoint"""
4565  return _pcbnew.CPolyLine_GetPos(self, ic)
4566 
4567 
4568  def GetHatchPitch(self):
4569  """GetHatchPitch(CPolyLine self) -> int"""
4570  return _pcbnew.CPolyLine_GetHatchPitch(self)
4571 
4572 
4574  """GetDefaultHatchPitchMils() -> int"""
4575  return _pcbnew.CPolyLine_GetDefaultHatchPitchMils()
4576 
4577  if _newclass:
4578  GetDefaultHatchPitchMils = staticmethod(GetDefaultHatchPitchMils)
4579  __swig_getmethods__["GetDefaultHatchPitchMils"] = lambda x: GetDefaultHatchPitchMils
4580 
4581  def GetHatchStyle(self):
4582  """GetHatchStyle(CPolyLine self) -> enum CPolyLine::HATCH_STYLE"""
4583  return _pcbnew.CPolyLine_GetHatchStyle(self)
4584 
4585 
4586  def SetHatch(self, aHatchStyle, aHatchPitch, aRebuildHatch):
4587  """SetHatch(CPolyLine self, int aHatchStyle, int aHatchPitch, bool aRebuildHatch)"""
4588  return _pcbnew.CPolyLine_SetHatch(self, aHatchStyle, aHatchPitch, aRebuildHatch)
4589 
4590 
4591  def SetX(self, ic, x):
4592  """SetX(CPolyLine self, int ic, int x)"""
4593  return _pcbnew.CPolyLine_SetX(self, ic, x)
4594 
4595 
4596  def SetY(self, ic, y):
4597  """SetY(CPolyLine self, int ic, int y)"""
4598  return _pcbnew.CPolyLine_SetY(self, ic, y)
4599 
4600 
4601  def SetHatchStyle(self, style):
4602  """SetHatchStyle(CPolyLine self, enum CPolyLine::HATCH_STYLE style)"""
4603  return _pcbnew.CPolyLine_SetHatchStyle(self, style)
4604 
4605 
4606  def SetHatchPitch(self, pitch):
4607  """SetHatchPitch(CPolyLine self, int pitch)"""
4608  return _pcbnew.CPolyLine_SetHatchPitch(self, pitch)
4609 
4610 
4611  def NormalizeAreaOutlines(self, aNewPolygonList):
4612  """NormalizeAreaOutlines(CPolyLine self, std::vector< CPolyLine *,std::allocator< CPolyLine * > > * aNewPolygonList) -> int"""
4613  return _pcbnew.CPolyLine_NormalizeAreaOutlines(self, aNewPolygonList)
4614 
4615 
4616  def AppendBezier(self, *args):
4617  """
4618  AppendBezier(CPolyLine self, int x1, int y1, int x2, int y2, int x3, int y3)
4619  AppendBezier(CPolyLine self, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
4620  """
4621  return _pcbnew.CPolyLine_AppendBezier(self, *args)
4622 
4623 
4624  def Distance(self, *args):
4625  """
4626  Distance(CPolyLine self, wxPoint aPoint) -> int
4627  Distance(CPolyLine self, wxPoint aStart, wxPoint aEnd, int aWidth) -> int
4628  """
4629  return _pcbnew.CPolyLine_Distance(self, *args)
4630 
4631 
4632  def HitTestForEdge(self, aPos, aDistMax):
4633  """HitTestForEdge(CPolyLine self, wxPoint aPos, int aDistMax) -> int"""
4634  return _pcbnew.CPolyLine_HitTestForEdge(self, aPos, aDistMax)
4635 
4636 
4637  def HitTestForCorner(self, aPos, aDistMax):
4638  """HitTestForCorner(CPolyLine self, wxPoint aPos, int aDistMax) -> int"""
4639  return _pcbnew.CPolyLine_HitTestForCorner(self, aPos, aDistMax)
4640 
4641  __swig_setmethods__["m_CornersList"] = _pcbnew.CPolyLine_m_CornersList_set
4642  __swig_getmethods__["m_CornersList"] = _pcbnew.CPolyLine_m_CornersList_get
4643  if _newclass:
4644  m_CornersList = _swig_property(_pcbnew.CPolyLine_m_CornersList_get, _pcbnew.CPolyLine_m_CornersList_set)
4645  __swig_setmethods__["m_HatchLines"] = _pcbnew.CPolyLine_m_HatchLines_set
4646  __swig_getmethods__["m_HatchLines"] = _pcbnew.CPolyLine_m_HatchLines_get
4647  if _newclass:
4648  m_HatchLines = _swig_property(_pcbnew.CPolyLine_m_HatchLines_get, _pcbnew.CPolyLine_m_HatchLines_set)
4649 CPolyLine_swigregister = _pcbnew.CPolyLine_swigregister
4650 CPolyLine_swigregister(CPolyLine)
4651 
4653  """CPolyLine_GetDefaultHatchPitchMils() -> int"""
4654  return _pcbnew.CPolyLine_GetDefaultHatchPitchMils()
4655 
4656 
4658  """ConvertPolyListToPolySet(CPOLYGONS_LIST const & aList) -> SHAPE_POLY_SET"""
4659  return _pcbnew.ConvertPolyListToPolySet(aList)
4660 
4662  """ConvertPolySetToPolyList(SHAPE_POLY_SET aPolyset) -> CPOLYGONS_LIST const"""
4663  return _pcbnew.ConvertPolySetToPolyList(aPolyset)
4664 
4665 _pcbnew.SH_RECT_swigconstant(_pcbnew)
4666 SH_RECT = _pcbnew.SH_RECT
4667 
4668 _pcbnew.SH_SEGMENT_swigconstant(_pcbnew)
4669 SH_SEGMENT = _pcbnew.SH_SEGMENT
4670 
4671 _pcbnew.SH_LINE_CHAIN_swigconstant(_pcbnew)
4672 SH_LINE_CHAIN = _pcbnew.SH_LINE_CHAIN
4673 
4674 _pcbnew.SH_CIRCLE_swigconstant(_pcbnew)
4675 SH_CIRCLE = _pcbnew.SH_CIRCLE
4676 
4677 _pcbnew.SH_SIMPLE_swigconstant(_pcbnew)
4678 SH_SIMPLE = _pcbnew.SH_SIMPLE
4679 
4680 _pcbnew.SH_POLY_SET_swigconstant(_pcbnew)
4681 SH_POLY_SET = _pcbnew.SH_POLY_SET
4682 
4683 _pcbnew.SH_COMPOUND_swigconstant(_pcbnew)
4684 SH_COMPOUND = _pcbnew.SH_COMPOUND
4685 
4686 _pcbnew.SH_ARC_swigconstant(_pcbnew)
4687 SH_ARC = _pcbnew.SH_ARC
4689  """Proxy of C++ SHAPE class."""
4690 
4691  __swig_setmethods__ = {}
4692  __setattr__ = lambda self, name, value: _swig_setattr(self, SHAPE, name, value)
4693  __swig_getmethods__ = {}
4694  __getattr__ = lambda self, name: _swig_getattr(self, SHAPE, name)
4695 
4696  def __init__(self, *args, **kwargs):
4697  raise AttributeError("No constructor defined - class is abstract")
4698  __repr__ = _swig_repr
4699  __swig_destroy__ = _pcbnew.delete_SHAPE
4700  __del__ = lambda self: None
4701 
4702  def Type(self):
4703  """Type(SHAPE self) -> SHAPE_TYPE"""
4704  return _pcbnew.SHAPE_Type(self)
4705 
4706 
4707  def Clone(self):
4708  """Clone(SHAPE self) -> SHAPE"""
4709  return _pcbnew.SHAPE_Clone(self)
4710 
4711 
4712  def Collide(self, *args):
4713  """
4714  Collide(SHAPE self, VECTOR2I aP, int aClearance=0) -> bool
4715  Collide(SHAPE self, VECTOR2I aP) -> bool
4716  Collide(SHAPE self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
4717  Collide(SHAPE self, SHAPE aShape, int aClearance=0) -> bool
4718  Collide(SHAPE self, SHAPE aShape) -> bool
4719  Collide(SHAPE self, SEG const & aSeg, int aClearance=0) -> bool
4720  Collide(SHAPE self, SEG const & aSeg) -> bool
4721  """
4722  return _pcbnew.SHAPE_Collide(self, *args)
4723 
4724 
4725  def BBox(self, aClearance=0):
4726  """
4727  BBox(SHAPE self, int aClearance=0) -> BOX2I const
4728  BBox(SHAPE self) -> BOX2I const
4729  """
4730  return _pcbnew.SHAPE_BBox(self, aClearance)
4731 
4732 
4733  def Centre(self):
4734  """Centre(SHAPE self) -> VECTOR2I"""
4735  return _pcbnew.SHAPE_Centre(self)
4736 
4737 
4738  def Move(self, aVector):
4739  """Move(SHAPE self, VECTOR2I aVector)"""
4740  return _pcbnew.SHAPE_Move(self, aVector)
4741 
4742 
4743  def IsSolid(self):
4744  """IsSolid(SHAPE self) -> bool"""
4745  return _pcbnew.SHAPE_IsSolid(self)
4746 
4747 
4748  def Parse(self, aStream):
4749  """Parse(SHAPE self, std::stringstream & aStream) -> bool"""
4750  return _pcbnew.SHAPE_Parse(self, aStream)
4751 
4752 
4753  def Format(self):
4754  """Format(SHAPE self) -> string"""
4755  return _pcbnew.SHAPE_Format(self)
4756 
4757 SHAPE_swigregister = _pcbnew.SHAPE_swigregister
4758 SHAPE_swigregister(SHAPE)
4759 
4760 
4761 def CollideShapes(aA, aB, aClearance, aNeedMTV, aMTV):
4762  """CollideShapes(SHAPE aA, SHAPE aB, int aClearance, bool aNeedMTV, VECTOR2I aMTV) -> bool"""
4763  return _pcbnew.CollideShapes(aA, aB, aClearance, aNeedMTV, aMTV)
4765  """Proxy of C++ VECTOR2<(int)> class."""
4766 
4767  __swig_setmethods__ = {}
4768  __setattr__ = lambda self, name, value: _swig_setattr(self, VECTOR2I, name, value)
4769  __swig_getmethods__ = {}
4770  __getattr__ = lambda self, name: _swig_getattr(self, VECTOR2I, name)
4771  __repr__ = _swig_repr
4772  __swig_setmethods__["x"] = _pcbnew.VECTOR2I_x_set
4773  __swig_getmethods__["x"] = _pcbnew.VECTOR2I_x_get
4774  if _newclass:
4775  x = _swig_property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set)
4776  __swig_setmethods__["y"] = _pcbnew.VECTOR2I_y_set
4777  __swig_getmethods__["y"] = _pcbnew.VECTOR2I_y_get
4778  if _newclass:
4779  y = _swig_property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set)
4780 
4781  def __init__(self, *args):
4782  """
4783  __init__(VECTOR2<(int)> self) -> VECTOR2I
4784  __init__(VECTOR2<(int)> self, wxPoint aPoint) -> VECTOR2I
4785  __init__(VECTOR2<(int)> self, wxSize aSize) -> VECTOR2I
4786  __init__(VECTOR2<(int)> self, int x, int y) -> VECTOR2I
4787  """
4788  this = _pcbnew.new_VECTOR2I(*args)
4789  try:
4790  self.this.append(this)
4791  except Exception:
4792  self.this = this
4793 
4794  def EuclideanNorm(self):
4795  """EuclideanNorm(VECTOR2I self) -> int"""
4796  return _pcbnew.VECTOR2I_EuclideanNorm(self)
4797 
4798 
4800  """SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type"""
4801  return _pcbnew.VECTOR2I_SquaredEuclideanNorm(self)
4802 
4803 
4804  def Perpendicular(self):
4805  """Perpendicular(VECTOR2I self) -> VECTOR2I"""
4806  return _pcbnew.VECTOR2I_Perpendicular(self)
4807 
4808 
4809  def Resize(self, aNewLength):
4810  """Resize(VECTOR2I self, int aNewLength) -> VECTOR2I"""
4811  return _pcbnew.VECTOR2I_Resize(self, aNewLength)
4812 
4813 
4814  def Angle(self):
4815  """Angle(VECTOR2I self) -> double"""
4816  return _pcbnew.VECTOR2I_Angle(self)
4817 
4818 
4819  def Rotate(self, aAngle):
4820  """Rotate(VECTOR2I self, double aAngle) -> VECTOR2I"""
4821  return _pcbnew.VECTOR2I_Rotate(self, aAngle)
4822 
4823 
4824  def Format(self):
4825  """Format(VECTOR2I self) -> string"""
4826  return _pcbnew.VECTOR2I_Format(self)
4827 
4828 
4829  def Cross(self, aVector):
4830  """Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4831  return _pcbnew.VECTOR2I_Cross(self, aVector)
4832 
4833 
4834  def Dot(self, aVector):
4835  """Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4836  return _pcbnew.VECTOR2I_Dot(self, aVector)
4837 
4838 
4839  def __add__(self, *args):
4840  """
4841  __add__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4842  __add__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4843  """
4844  return _pcbnew.VECTOR2I___add__(self, *args)
4845 
4846 
4847  def __iadd__(self, *args):
4848  """
4849  __iadd__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4850  __iadd__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4851  """
4852  return _pcbnew.VECTOR2I___iadd__(self, *args)
4853 
4854 
4855  def __sub__(self, *args):
4856  """
4857  __sub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4858  __sub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4859  """
4860  return _pcbnew.VECTOR2I___sub__(self, *args)
4861 
4862 
4863  def __isub__(self, *args):
4864  """
4865  __isub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4866  __isub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4867  """
4868  return _pcbnew.VECTOR2I___isub__(self, *args)
4869 
4870 
4871  def __neg__(self):
4872  """__neg__(VECTOR2I self) -> VECTOR2I"""
4873  return _pcbnew.VECTOR2I___neg__(self)
4874 
4875 
4876  def __mul__(self, *args):
4877  """
4878  __mul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type
4879  __mul__(VECTOR2I self, int const & aFactor) -> VECTOR2I
4880  """
4881  return _pcbnew.VECTOR2I___mul__(self, *args)
4882 
4883 
4884  def __div__(self, aFactor):
4885  """__div__(VECTOR2I self, int const & aFactor) -> VECTOR2I"""
4886  return _pcbnew.VECTOR2I___div__(self, aFactor)
4887 
4888 
4889  def __eq__(self, aVector):
4890  """__eq__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4891  return _pcbnew.VECTOR2I___eq__(self, aVector)
4892 
4893 
4894  def __ne__(self, aVector):
4895  """__ne__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4896  return _pcbnew.VECTOR2I___ne__(self, aVector)
4897 
4898 
4899  def __lt__(self, aVector):
4900  """__lt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4901  return _pcbnew.VECTOR2I___lt__(self, aVector)
4902 
4903 
4904  def __le__(self, aVector):
4905  """__le__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4906  return _pcbnew.VECTOR2I___le__(self, aVector)
4907 
4908 
4909  def __gt__(self, aVector):
4910  """__gt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4911  return _pcbnew.VECTOR2I___gt__(self, aVector)
4912 
4913 
4914  def __ge__(self, aVector):
4915  """__ge__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4916  return _pcbnew.VECTOR2I___ge__(self, aVector)
4917 
4918  __swig_destroy__ = _pcbnew.delete_VECTOR2I
4919  __del__ = lambda self: None
4920 VECTOR2I_swigregister = _pcbnew.VECTOR2I_swigregister
4921 VECTOR2I_swigregister(VECTOR2I)
4922 
4924  """Proxy of C++ SHAPE_LINE_CHAIN class."""
4925 
4926  __swig_setmethods__ = {}
4927  for _s in [SHAPE]:
4928  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
4929  __setattr__ = lambda self, name, value: _swig_setattr(self, SHAPE_LINE_CHAIN, name, value)
4930  __swig_getmethods__ = {}
4931  for _s in [SHAPE]:
4932  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
4933  __getattr__ = lambda self, name: _swig_getattr(self, SHAPE_LINE_CHAIN, name)
4934  __repr__ = _swig_repr
4935 
4936  def __init__(self, *args):
4937  """
4938  __init__(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN
4939  __init__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aShape) -> SHAPE_LINE_CHAIN
4940  __init__(SHAPE_LINE_CHAIN self, VECTOR2I aA, VECTOR2I aB) -> SHAPE_LINE_CHAIN
4941  __init__(SHAPE_LINE_CHAIN self, VECTOR2I aA, VECTOR2I aB, VECTOR2I aC) -> SHAPE_LINE_CHAIN
4942  __init__(SHAPE_LINE_CHAIN self, VECTOR2I aA, VECTOR2I aB, VECTOR2I aC, VECTOR2I aD) -> SHAPE_LINE_CHAIN
4943  __init__(SHAPE_LINE_CHAIN self, VECTOR2I aV, int aCount) -> SHAPE_LINE_CHAIN
4944  __init__(SHAPE_LINE_CHAIN self, ClipperLib::Path const & aPath) -> SHAPE_LINE_CHAIN
4945  """
4946  this = _pcbnew.new_SHAPE_LINE_CHAIN(*args)
4947  try:
4948  self.this.append(this)
4949  except Exception:
4950  self.this = this
4951  __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN
4952  __del__ = lambda self: None
4953 
4954  def Clone(self):
4955  """Clone(SHAPE_LINE_CHAIN self) -> SHAPE"""
4956  return _pcbnew.SHAPE_LINE_CHAIN_Clone(self)
4957 
4958 
4959  def Clear(self):
4960  """Clear(SHAPE_LINE_CHAIN self)"""
4961  return _pcbnew.SHAPE_LINE_CHAIN_Clear(self)
4962 
4963 
4964  def SetClosed(self, aClosed):
4965  """SetClosed(SHAPE_LINE_CHAIN self, bool aClosed)"""
4966  return _pcbnew.SHAPE_LINE_CHAIN_SetClosed(self, aClosed)
4967 
4968 
4969  def IsClosed(self):
4970  """IsClosed(SHAPE_LINE_CHAIN self) -> bool"""
4971  return _pcbnew.SHAPE_LINE_CHAIN_IsClosed(self)
4972 
4973 
4974  def SegmentCount(self):
4975  """SegmentCount(SHAPE_LINE_CHAIN self) -> int"""
4976  return _pcbnew.SHAPE_LINE_CHAIN_SegmentCount(self)
4977 
4978 
4979  def PointCount(self):
4980  """PointCount(SHAPE_LINE_CHAIN self) -> int"""
4981  return _pcbnew.SHAPE_LINE_CHAIN_PointCount(self)
4982 
4983 
4984  def Segment(self, aIndex):
4985  """Segment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
4986  return _pcbnew.SHAPE_LINE_CHAIN_Segment(self, aIndex)
4987 
4988 
4989  def CSegment(self, aIndex):
4990  """CSegment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG const"""
4991  return _pcbnew.SHAPE_LINE_CHAIN_CSegment(self, aIndex)
4992 
4993 
4994  def Point(self, aIndex):
4995  """Point(SHAPE_LINE_CHAIN self, int aIndex) -> VECTOR2I"""
4996  return _pcbnew.SHAPE_LINE_CHAIN_Point(self, aIndex)
4997 
4998 
4999  def CPoint(self, aIndex):
5000  """CPoint(SHAPE_LINE_CHAIN self, int aIndex) -> VECTOR2I"""
5001  return _pcbnew.SHAPE_LINE_CHAIN_CPoint(self, aIndex)
5002 
5003 
5004  def CPoints(self):
5005  """CPoints(SHAPE_LINE_CHAIN self) -> std::vector< VECTOR2I,std::allocator< VECTOR2I > > const &"""
5006  return _pcbnew.SHAPE_LINE_CHAIN_CPoints(self)
5007 
5008 
5009  def LastPoint(self):
5010  """LastPoint(SHAPE_LINE_CHAIN self) -> VECTOR2I"""
5011  return _pcbnew.SHAPE_LINE_CHAIN_LastPoint(self)
5012 
5013 
5014  def CLastPoint(self):
5015  """CLastPoint(SHAPE_LINE_CHAIN self) -> VECTOR2I"""
5016  return _pcbnew.SHAPE_LINE_CHAIN_CLastPoint(self)
5017 
5018 
5019  def BBox(self, aClearance=0):
5020  """
5021  BBox(SHAPE_LINE_CHAIN self, int aClearance=0) -> BOX2I const
5022  BBox(SHAPE_LINE_CHAIN self) -> BOX2I const
5023  """
5024  return _pcbnew.SHAPE_LINE_CHAIN_BBox(self, aClearance)
5025 
5026 
5027  def Collide(self, *args):
5028  """
5029  Collide(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aClearance=0) -> bool
5030  Collide(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> bool
5031  Collide(SHAPE_LINE_CHAIN self, SEG const & aSeg, int aClearance=0) -> bool
5032  Collide(SHAPE_LINE_CHAIN self, SEG const & aSeg) -> bool
5033  """
5034  return _pcbnew.SHAPE_LINE_CHAIN_Collide(self, *args)
5035 
5036 
5037  def Distance(self, aP, aOutlineOnly=False):
5038  """
5039  Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aOutlineOnly=False) -> int
5040  Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int
5041  """
5042  return _pcbnew.SHAPE_LINE_CHAIN_Distance(self, aP, aOutlineOnly)
5043 
5044 
5045  def Reverse(self):
5046  """Reverse(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN"""
5047  return _pcbnew.SHAPE_LINE_CHAIN_Reverse(self)
5048 
5049 
5050  def Length(self):
5051  """Length(SHAPE_LINE_CHAIN self) -> int"""
5052  return _pcbnew.SHAPE_LINE_CHAIN_Length(self)
5053 
5054 
5055  def Append(self, *args):
5056  """
5057  Append(SHAPE_LINE_CHAIN self, int aX, int aY, bool aAllowDuplication=False)
5058  Append(SHAPE_LINE_CHAIN self, int aX, int aY)
5059  Append(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowDuplication=False)
5060  Append(SHAPE_LINE_CHAIN self, VECTOR2I aP)
5061  Append(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOtherLine)
5062  """
5063  return _pcbnew.SHAPE_LINE_CHAIN_Append(self, *args)
5064 
5065 
5066  def Insert(self, aVertex, aP):
5067  """Insert(SHAPE_LINE_CHAIN self, int aVertex, VECTOR2I aP)"""
5068  return _pcbnew.SHAPE_LINE_CHAIN_Insert(self, aVertex, aP)
5069 
5070 
5071  def Replace(self, *args):
5072  """
5073  Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, VECTOR2I aP)
5074  Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, SHAPE_LINE_CHAIN aLine)
5075  """
5076  return _pcbnew.SHAPE_LINE_CHAIN_Replace(self, *args)
5077 
5078 
5079  def Remove(self, *args):
5080  """
5081  Remove(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex)
5082  Remove(SHAPE_LINE_CHAIN self, int aIndex)
5083  """
5084  return _pcbnew.SHAPE_LINE_CHAIN_Remove(self, *args)
5085 
5086 
5087  def Split(self, aP):
5088  """Split(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
5089  return _pcbnew.SHAPE_LINE_CHAIN_Split(self, aP)
5090 
5091 
5092  def Find(self, aP):
5093  """Find(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
5094  return _pcbnew.SHAPE_LINE_CHAIN_Find(self, aP)
5095 
5096 
5097  def FindSegment(self, aP):
5098  """FindSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
5099  return _pcbnew.SHAPE_LINE_CHAIN_FindSegment(self, aP)
5100 
5101 
5102  def Slice(self, aStartIndex, aEndIndex=-1):
5103  """
5104  Slice(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex=-1) -> SHAPE_LINE_CHAIN
5105  Slice(SHAPE_LINE_CHAIN self, int aStartIndex) -> SHAPE_LINE_CHAIN
5106  """
5107  return _pcbnew.SHAPE_LINE_CHAIN_Slice(self, aStartIndex, aEndIndex)
5108 
5109 
5110  def Intersects(self, aChain):
5111  """Intersects(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain) -> bool"""
5112  return _pcbnew.SHAPE_LINE_CHAIN_Intersects(self, aChain)
5113 
5114 
5115  def Intersect(self, *args):
5116  """
5117  Intersect(SHAPE_LINE_CHAIN self, SEG const & aSeg, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp) -> int
5118  Intersect(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp) -> int
5119  """
5120  return _pcbnew.SHAPE_LINE_CHAIN_Intersect(self, *args)
5121 
5122 
5123  def PathLength(self, aP):
5124  """PathLength(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
5125  return _pcbnew.SHAPE_LINE_CHAIN_PathLength(self, aP)
5126 
5127 
5128  def PointInside(self, aP):
5129  """PointInside(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> bool"""
5130  return _pcbnew.SHAPE_LINE_CHAIN_PointInside(self, aP)
5131 
5132 
5133  def PointOnEdge(self, aP):
5134  """PointOnEdge(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> bool"""
5135  return _pcbnew.SHAPE_LINE_CHAIN_PointOnEdge(self, aP)
5136 
5137 
5138  def CheckClearance(self, aP, aDist):
5139  """CheckClearance(SHAPE_LINE_CHAIN self, VECTOR2I aP, int const aDist) -> bool"""
5140  return _pcbnew.SHAPE_LINE_CHAIN_CheckClearance(self, aP, aDist)
5141 
5142 
5143  def SelfIntersecting(self):
5144  """SelfIntersecting(SHAPE_LINE_CHAIN self) -> OPT< SHAPE_LINE_CHAIN::INTERSECTION > const"""
5145  return _pcbnew.SHAPE_LINE_CHAIN_SelfIntersecting(self)
5146 
5147 
5148  def Simplify(self):
5149  """Simplify(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN"""
5150  return _pcbnew.SHAPE_LINE_CHAIN_Simplify(self)
5151 
5152 
5153  def convertToClipper(self, aRequiredOrientation):
5154  """convertToClipper(SHAPE_LINE_CHAIN self, bool aRequiredOrientation) -> ClipperLib::Path"""
5155  return _pcbnew.SHAPE_LINE_CHAIN_convertToClipper(self, aRequiredOrientation)
5156 
5157 
5158  def NearestPoint(self, *args):
5159  """
5160  NearestPoint(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> VECTOR2I
5161  NearestPoint(SHAPE_LINE_CHAIN self, SEG const & aSeg, int & dist) -> VECTOR2I
5162  """
5163  return _pcbnew.SHAPE_LINE_CHAIN_NearestPoint(self, *args)
5164 
5165 
5166  def Format(self):
5167  """Format(SHAPE_LINE_CHAIN self) -> string"""
5168  return _pcbnew.SHAPE_LINE_CHAIN_Format(self)
5169 
5170 
5171  def Parse(self, aStream):
5172  """Parse(SHAPE_LINE_CHAIN self, std::stringstream & aStream) -> bool"""
5173  return _pcbnew.SHAPE_LINE_CHAIN_Parse(self, aStream)
5174 
5175 
5176  def __ne__(self, aRhs):
5177  """__ne__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aRhs) -> bool"""
5178  return _pcbnew.SHAPE_LINE_CHAIN___ne__(self, aRhs)
5179 
5180 
5181  def CompareGeometry(self, aOther):
5182  """CompareGeometry(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOther) -> bool"""
5183  return _pcbnew.SHAPE_LINE_CHAIN_CompareGeometry(self, aOther)
5184 
5185 
5186  def Move(self, aVector):
5187  """Move(SHAPE_LINE_CHAIN self, VECTOR2I aVector)"""
5188  return _pcbnew.SHAPE_LINE_CHAIN_Move(self, aVector)
5189 
5190 
5191  def Rotate(self, aAngle, aCenter):
5192  """Rotate(SHAPE_LINE_CHAIN self, double aAngle, VECTOR2I aCenter)"""
5193  return _pcbnew.SHAPE_LINE_CHAIN_Rotate(self, aAngle, aCenter)
5194 
5195 
5196  def IsSolid(self):
5197  """IsSolid(SHAPE_LINE_CHAIN self) -> bool"""
5198  return _pcbnew.SHAPE_LINE_CHAIN_IsSolid(self)
5199 
5200 
5201  def PointAlong(self, aPathLength):
5202  """PointAlong(SHAPE_LINE_CHAIN self, int aPathLength) -> VECTOR2I"""
5203  return _pcbnew.SHAPE_LINE_CHAIN_PointAlong(self, aPathLength)
5204 
5205 
5206  def Area(self):
5207  """Area(SHAPE_LINE_CHAIN self) -> double"""
5208  return _pcbnew.SHAPE_LINE_CHAIN_Area(self)
5209 
5210 SHAPE_LINE_CHAIN_swigregister = _pcbnew.SHAPE_LINE_CHAIN_swigregister
5211 SHAPE_LINE_CHAIN_swigregister(SHAPE_LINE_CHAIN)
5212 
5214  """Proxy of C++ SHAPE_POLY_SET class."""
5215 
5216  __swig_setmethods__ = {}
5217  for _s in [SHAPE]:
5218  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
5219  __setattr__ = lambda self, name, value: _swig_setattr(self, SHAPE_POLY_SET, name, value)
5220  __swig_getmethods__ = {}
5221  for _s in [SHAPE]:
5222  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
5223  __getattr__ = lambda self, name: _swig_getattr(self, SHAPE_POLY_SET, name)
5224  __repr__ = _swig_repr
5225 
5226  def __init__(self, *args):
5227  """
5228  __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
5229  __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther, bool aDeepCopy=False) -> SHAPE_POLY_SET
5230  __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET
5231  """
5232  this = _pcbnew.new_SHAPE_POLY_SET(*args)
5233  try:
5234  self.this.append(this)
5235  except Exception:
5236  self.this = this
5237  __swig_destroy__ = _pcbnew.delete_SHAPE_POLY_SET
5238  __del__ = lambda self: None
5239 
5240  def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices):
5241  """GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool"""
5242  return _pcbnew.SHAPE_POLY_SET_GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
5243 
5244 
5245  def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx):
5246  """GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool"""
5247  return _pcbnew.SHAPE_POLY_SET_GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
5248 
5249 
5250  def Clone(self):
5251  """Clone(SHAPE_POLY_SET self) -> SHAPE"""
5252  return _pcbnew.SHAPE_POLY_SET_Clone(self)
5253 
5254 
5255  def NewOutline(self):
5256  """NewOutline(SHAPE_POLY_SET self) -> int"""
5257  return _pcbnew.SHAPE_POLY_SET_NewOutline(self)
5258 
5259 
5260  def NewHole(self, aOutline=-1):
5261  """
5262  NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int
5263  NewHole(SHAPE_POLY_SET self) -> int
5264  """
5265  return _pcbnew.SHAPE_POLY_SET_NewHole(self, aOutline)
5266 
5267 
5268  def AddOutline(self, aOutline):
5269  """AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> int"""
5270  return _pcbnew.SHAPE_POLY_SET_AddOutline(self, aOutline)
5271 
5272 
5273  def AddHole(self, aHole, aOutline=-1):
5274  """
5275  AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole, int aOutline=-1) -> int
5276  AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole) -> int
5277  """
5278  return _pcbnew.SHAPE_POLY_SET_AddHole(self, aHole, aOutline)
5279 
5280 
5281  def Append(self, *args):
5282  """
5283  Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
5284  Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1) -> int
5285  Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1) -> int
5286  Append(SHAPE_POLY_SET self, int x, int y) -> int
5287  Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
5288  Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1, int aHole=-1)
5289  Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1)
5290  Append(SHAPE_POLY_SET self, VECTOR2I aP)
5291  """
5292  return _pcbnew.SHAPE_POLY_SET_Append(self, *args)
5293 
5294 
5295  def InsertVertex(self, aGlobalIndex, aNewVertex):
5296  """InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)"""
5297  return _pcbnew.SHAPE_POLY_SET_InsertVertex(self, aGlobalIndex, aNewVertex)
5298 
5299 
5300  def Vertex(self, *args):
5301  """
5302  Vertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
5303  Vertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
5304  Vertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I
5305  """
5306  return _pcbnew.SHAPE_POLY_SET_Vertex(self, *args)
5307 
5308 
5309  def CVertex(self, *args):
5310  """
5311  CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
5312  CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
5313  CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I
5314  """
5315  return _pcbnew.SHAPE_POLY_SET_CVertex(self, *args)
5316 
5317 
5318  def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext):
5319  """GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool"""
5320  return _pcbnew.SHAPE_POLY_SET_GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
5321 
5322 
5323  def IsPolygonSelfIntersecting(self, aPolygonIndex):
5324  """IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool"""
5325  return _pcbnew.SHAPE_POLY_SET_IsPolygonSelfIntersecting(self, aPolygonIndex)
5326 
5327 
5329  """IsSelfIntersecting(SHAPE_POLY_SET self) -> bool"""
5330  return _pcbnew.SHAPE_POLY_SET_IsSelfIntersecting(self)
5331 
5332 
5334  """TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int"""
5335  return _pcbnew.SHAPE_POLY_SET_TriangulatedPolyCount(self)
5336 
5337 
5338  def OutlineCount(self):
5339  """OutlineCount(SHAPE_POLY_SET self) -> int"""
5340  return _pcbnew.SHAPE_POLY_SET_OutlineCount(self)
5341 
5342 
5343  def VertexCount(self, aOutline=-1, aHole=-1):
5344  """
5345  VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int
5346  VertexCount(SHAPE_POLY_SET self, int aOutline=-1) -> int
5347  VertexCount(SHAPE_POLY_SET self) -> int
5348  """
5349  return _pcbnew.SHAPE_POLY_SET_VertexCount(self, aOutline, aHole)
5350 
5351 
5352  def HoleCount(self, aOutline):
5353  """HoleCount(SHAPE_POLY_SET self, int aOutline) -> int"""
5354  return _pcbnew.SHAPE_POLY_SET_HoleCount(self, aOutline)
5355 
5356 
5357  def Outline(self, aIndex):
5358  """Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN"""
5359  return _pcbnew.SHAPE_POLY_SET_Outline(self, aIndex)
5360 
5361 
5362  def Subset(self, aFirstPolygon, aLastPolygon):
5363  """Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET"""
5364  return _pcbnew.SHAPE_POLY_SET_Subset(self, aFirstPolygon, aLastPolygon)
5365 
5366 
5367  def UnitSet(self, aPolygonIndex):
5368  """UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET"""
5369  return _pcbnew.SHAPE_POLY_SET_UnitSet(self, aPolygonIndex)
5370 
5371 
5372  def Hole(self, aOutline, aHole):
5373  """Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
5374  return _pcbnew.SHAPE_POLY_SET_Hole(self, aOutline, aHole)
5375 
5376 
5377  def Polygon(self, *args):
5378  """
5379  Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
5380  Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &
5381  """
5382  return _pcbnew.SHAPE_POLY_SET_Polygon(self, *args)
5383 
5384 
5385  def TriangulatedPolygon(self, aIndex):
5386  """TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *"""
5387  return _pcbnew.SHAPE_POLY_SET_TriangulatedPolygon(self, aIndex)
5388 
5389 
5390  def COutline(self, aIndex):
5391  """COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN"""
5392  return _pcbnew.SHAPE_POLY_SET_COutline(self, aIndex)
5393 
5394 
5395  def CHole(self, aOutline, aHole):
5396  """CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
5397  return _pcbnew.SHAPE_POLY_SET_CHole(self, aOutline, aHole)
5398 
5399 
5400  def CPolygon(self, aIndex):
5401  """CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &"""
5402  return _pcbnew.SHAPE_POLY_SET_CPolygon(self, aIndex)
5403 
5404 
5405  def Iterate(self, *args):
5406  """
5407  Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
5408  Iterate(SHAPE_POLY_SET self, int aFirst, int aLast) -> SHAPE_POLY_SET::ITERATOR
5409  Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
5410  Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
5411  """
5412  return _pcbnew.SHAPE_POLY_SET_Iterate(self, *args)
5413 
5414 
5415  def IterateWithHoles(self, *args):
5416  """
5417  IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
5418  IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
5419  """
5420  return _pcbnew.SHAPE_POLY_SET_IterateWithHoles(self, *args)
5421 
5422 
5423  def CIterate(self, *args):
5424  """
5425  CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
5426  CIterate(SHAPE_POLY_SET self, int aFirst, int aLast) -> SHAPE_POLY_SET::CONST_ITERATOR
5427  CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
5428  CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
5429  """
5430  return _pcbnew.SHAPE_POLY_SET_CIterate(self, *args)
5431 
5432 
5433  def CIterateWithHoles(self, *args):
5434  """
5435  CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
5436  CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
5437  """
5438  return _pcbnew.SHAPE_POLY_SET_CIterateWithHoles(self, *args)
5439 
5440 
5441  def IterateFromVertexWithHoles(self, aGlobalIdx):
5442  """IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR"""
5443  return _pcbnew.SHAPE_POLY_SET_IterateFromVertexWithHoles(self, aGlobalIdx)
5444 
5445 
5446  def IterateSegments(self, *args):
5447  """
5448  IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5449  IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5450  IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5451  IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5452  """
5453  return _pcbnew.SHAPE_POLY_SET_IterateSegments(self, *args)
5454 
5455 
5456  def IterateSegmentsWithHoles(self, *args):
5457  """
5458  IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5459  IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
5460  """
5461  return _pcbnew.SHAPE_POLY_SET_IterateSegmentsWithHoles(self, *args)
5462 
5463  PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
5464  PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
5465 
5466  def BooleanAdd(self, *args):
5467  """
5468  BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5469  BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5470  """
5471  return _pcbnew.SHAPE_POLY_SET_BooleanAdd(self, *args)
5472 
5473 
5474  def BooleanSubtract(self, *args):
5475  """
5476  BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5477  BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5478  """
5479  return _pcbnew.SHAPE_POLY_SET_BooleanSubtract(self, *args)
5480 
5481 
5482  def BooleanIntersection(self, *args):
5483  """
5484  BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5485  BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
5486  """
5487  return _pcbnew.SHAPE_POLY_SET_BooleanIntersection(self, *args)
5488 
5489 
5490  def Inflate(self, aFactor, aCircleSegmentsCount):
5491  """Inflate(SHAPE_POLY_SET self, int aFactor, int aCircleSegmentsCount)"""
5492  return _pcbnew.SHAPE_POLY_SET_Inflate(self, aFactor, aCircleSegmentsCount)
5493 
5494 
5495  def Fracture(self, aFastMode):
5496  """Fracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
5497  return _pcbnew.SHAPE_POLY_SET_Fracture(self, aFastMode)
5498 
5499 
5500  def Unfracture(self, aFastMode):
5501  """Unfracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
5502  return _pcbnew.SHAPE_POLY_SET_Unfracture(self, aFastMode)
5503 
5504 
5505  def HasHoles(self):
5506  """HasHoles(SHAPE_POLY_SET self) -> bool"""
5507  return _pcbnew.SHAPE_POLY_SET_HasHoles(self)
5508 
5509 
5510  def HasTouchingHoles(self):
5511  """HasTouchingHoles(SHAPE_POLY_SET self) -> bool"""
5512  return _pcbnew.SHAPE_POLY_SET_HasTouchingHoles(self)
5513 
5514 
5515  def Simplify(self, aFastMode):
5516  """Simplify(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
5517  return _pcbnew.SHAPE_POLY_SET_Simplify(self, aFastMode)
5518 
5519 
5521  """NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int"""
5522  return _pcbnew.SHAPE_POLY_SET_NormalizeAreaOutlines(self)
5523 
5524 
5525  def Format(self):
5526  """Format(SHAPE_POLY_SET self) -> string"""
5527  return _pcbnew.SHAPE_POLY_SET_Format(self)
5528 
5529 
5530  def Parse(self, aStream):
5531  """Parse(SHAPE_POLY_SET self, std::stringstream & aStream) -> bool"""
5532  return _pcbnew.SHAPE_POLY_SET_Parse(self, aStream)
5533 
5534 
5535  def Move(self, aVector):
5536  """Move(SHAPE_POLY_SET self, VECTOR2I aVector)"""
5537  return _pcbnew.SHAPE_POLY_SET_Move(self, aVector)
5538 
5539 
5540  def Rotate(self, aAngle, aCenter):
5541  """Rotate(SHAPE_POLY_SET self, double aAngle, VECTOR2I aCenter)"""
5542  return _pcbnew.SHAPE_POLY_SET_Rotate(self, aAngle, aCenter)
5543 
5544 
5545  def IsSolid(self):
5546  """IsSolid(SHAPE_POLY_SET self) -> bool"""
5547  return _pcbnew.SHAPE_POLY_SET_IsSolid(self)
5548 
5549 
5550  def BBox(self, aClearance=0):
5551  """
5552  BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I const
5553  BBox(SHAPE_POLY_SET self) -> BOX2I const
5554  """
5555  return _pcbnew.SHAPE_POLY_SET_BBox(self, aClearance)
5556 
5557 
5558  def PointOnEdge(self, aP):
5559  """PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP) -> bool"""
5560  return _pcbnew.SHAPE_POLY_SET_PointOnEdge(self, aP)
5561 
5562 
5563  def Collide(self, *args):
5564  """
5565  Collide(SHAPE_POLY_SET self, VECTOR2I aP, int aClearance=0) -> bool
5566  Collide(SHAPE_POLY_SET self, VECTOR2I aP) -> bool
5567  Collide(SHAPE_POLY_SET self, SEG const & aSeg, int aClearance=0) -> bool
5568  Collide(SHAPE_POLY_SET self, SEG const & aSeg) -> bool
5569  """
5570  return _pcbnew.SHAPE_POLY_SET_Collide(self, *args)
5571 
5572 
5573  def CollideVertex(self, aPoint, aClosestVertex, aClearance=0):
5574  """
5575  CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex, int aClearance=0) -> bool
5576  CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex) -> bool
5577  """
5578  return _pcbnew.SHAPE_POLY_SET_CollideVertex(self, aPoint, aClosestVertex, aClearance)
5579 
5580 
5581  def CollideEdge(self, aPoint, aClosestVertex, aClearance=0):
5582  """
5583  CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex, int aClearance=0) -> bool
5584  CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex) -> bool
5585  """
5586  return _pcbnew.SHAPE_POLY_SET_CollideEdge(self, aPoint, aClosestVertex, aClearance)
5587 
5588 
5589  def Contains(self, aP, aSubpolyIndex=-1, aIgnoreHoles=False):
5590  """
5591  Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1, bool aIgnoreHoles=False) -> bool
5592  Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1) -> bool
5593  Contains(SHAPE_POLY_SET self, VECTOR2I aP) -> bool
5594  """
5595  return _pcbnew.SHAPE_POLY_SET_Contains(self, aP, aSubpolyIndex, aIgnoreHoles)
5596 
5597 
5598  def IsEmpty(self):
5599  """IsEmpty(SHAPE_POLY_SET self) -> bool"""
5600  return _pcbnew.SHAPE_POLY_SET_IsEmpty(self)
5601 
5602 
5603  def RemoveVertex(self, *args):
5604  """
5605  RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
5606  RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)
5607  """
5608  return _pcbnew.SHAPE_POLY_SET_RemoveVertex(self, *args)
5609 
5610 
5612  """RemoveAllContours(SHAPE_POLY_SET self)"""
5613  return _pcbnew.SHAPE_POLY_SET_RemoveAllContours(self)
5614 
5615 
5616  def RemoveContour(self, aContourIdx, aPolygonIdx=-1):
5617  """
5618  RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)
5619  RemoveContour(SHAPE_POLY_SET self, int aContourIdx)
5620  """
5621  return _pcbnew.SHAPE_POLY_SET_RemoveContour(self, aContourIdx, aPolygonIdx)
5622 
5623 
5625  """RemoveNullSegments(SHAPE_POLY_SET self) -> int"""
5626  return _pcbnew.SHAPE_POLY_SET_RemoveNullSegments(self)
5627 
5628 
5629  def TotalVertices(self):
5630  """TotalVertices(SHAPE_POLY_SET self) -> int"""
5631  return _pcbnew.SHAPE_POLY_SET_TotalVertices(self)
5632 
5633 
5634  def DeletePolygon(self, aIdx):
5635  """DeletePolygon(SHAPE_POLY_SET self, int aIdx)"""
5636  return _pcbnew.SHAPE_POLY_SET_DeletePolygon(self, aIdx)
5637 
5638 
5639  def ChamferPolygon(self, aDistance, aIndex=0):
5640  """
5641  ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex=0) -> SHAPE_POLY_SET::POLYGON
5642  ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance) -> SHAPE_POLY_SET::POLYGON
5643  """
5644  return _pcbnew.SHAPE_POLY_SET_ChamferPolygon(self, aDistance, aIndex)
5645 
5646 
5647  def FilletPolygon(self, aRadius, aErrorMax, aIndex=0):
5648  """
5649  FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex=0) -> SHAPE_POLY_SET::POLYGON
5650  FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax) -> SHAPE_POLY_SET::POLYGON
5651  """
5652  return _pcbnew.SHAPE_POLY_SET_FilletPolygon(self, aRadius, aErrorMax, aIndex)
5653 
5654 
5655  def Chamfer(self, aDistance):
5656  """Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET"""
5657  return _pcbnew.SHAPE_POLY_SET_Chamfer(self, aDistance)
5658 
5659 
5660  def Fillet(self, aRadius, aErrorMax):
5661  """Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET"""
5662  return _pcbnew.SHAPE_POLY_SET_Fillet(self, aRadius, aErrorMax)
5663 
5664 
5665  def DistanceToPolygon(self, *args):
5666  """
5667  DistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex) -> int
5668  DistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex, int aSegmentWidth=0) -> int
5669  DistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex) -> int
5670  """
5671  return _pcbnew.SHAPE_POLY_SET_DistanceToPolygon(self, *args)
5672 
5673 
5674  def Distance(self, *args):
5675  """
5676  Distance(SHAPE_POLY_SET self, VECTOR2I aPoint) -> int
5677  Distance(SHAPE_POLY_SET self, SEG const & aSegment, int aSegmentWidth=0) -> int
5678  Distance(SHAPE_POLY_SET self, SEG const & aSegment) -> int
5679  """
5680  return _pcbnew.SHAPE_POLY_SET_Distance(self, *args)
5681 
5682 
5683  def IsVertexInHole(self, aGlobalIdx):
5684  """IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool"""
5685  return _pcbnew.SHAPE_POLY_SET_IsVertexInHole(self, aGlobalIdx)
5686 
5687 
5689  """CacheTriangulation(SHAPE_POLY_SET self)"""
5690  return _pcbnew.SHAPE_POLY_SET_CacheTriangulation(self)
5691 
5692 
5694  """IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool"""
5695  return _pcbnew.SHAPE_POLY_SET_IsTriangulationUpToDate(self)
5696 
5697 
5698  def GetHash(self):
5699  """GetHash(SHAPE_POLY_SET self) -> MD5_HASH"""
5700  return _pcbnew.SHAPE_POLY_SET_GetHash(self)
5701 
5702 SHAPE_POLY_SET_swigregister = _pcbnew.SHAPE_POLY_SET_swigregister
5703 SHAPE_POLY_SET_swigregister(SHAPE_POLY_SET)
5704 
5705 
5706 def IsUTF8(aString):
5707  """IsUTF8(char const * aString) -> bool"""
5708  return _pcbnew.IsUTF8(aString)
5709 class UTF8(_object):
5710  """Proxy of C++ UTF8 class."""
5711 
5712  __swig_setmethods__ = {}
5713  __setattr__ = lambda self, name, value: _swig_setattr(self, UTF8, name, value)
5714  __swig_getmethods__ = {}
5715  __getattr__ = lambda self, name: _swig_getattr(self, UTF8, name)
5716  __repr__ = _swig_repr
5717 
5718  def __init__(self, *args):
5719  """
5720  __init__(UTF8 self, wxString o) -> UTF8
5721  __init__(UTF8 self, char const * txt) -> UTF8
5722  __init__(UTF8 self, wchar_t const * txt) -> UTF8
5723  __init__(UTF8 self, string o) -> UTF8
5724  __init__(UTF8 self) -> UTF8
5725  """
5726  this = _pcbnew.new_UTF8(*args)
5727  try:
5728  self.this.append(this)
5729  except Exception:
5730  self.this = this
5731  __swig_destroy__ = _pcbnew.delete_UTF8
5732  __del__ = lambda self: None
5733 
5734  def c_str(self):
5735  """c_str(UTF8 self) -> char const *"""
5736  return _pcbnew.UTF8_c_str(self)
5737 
5738 
5739  def empty(self):
5740  """empty(UTF8 self) -> bool"""
5741  return _pcbnew.UTF8_empty(self)
5742 
5743 
5744  def find(self, *args):
5745  """
5746  find(UTF8 self, char c) -> std::string::size_type
5747  find(UTF8 self, char c, size_t & s) -> std::string::size_type
5748  """
5749  return _pcbnew.UTF8_find(self, *args)
5750 
5751 
5752  def clear(self):
5753  """clear(UTF8 self)"""
5754  return _pcbnew.UTF8_clear(self)
5755 
5756 
5757  def length(self):
5758  """length(UTF8 self) -> std::string::size_type"""
5759  return _pcbnew.UTF8_length(self)
5760 
5761 
5762  def size(self):
5763  """size(UTF8 self) -> std::string::size_type"""
5764  return _pcbnew.UTF8_size(self)
5765 
5766 
5767  def compare(self, s):
5768  """compare(UTF8 self, string s) -> int"""
5769  return _pcbnew.UTF8_compare(self, s)
5770 
5771 
5772  def __eq__(self, *args):
5773  """
5774  __eq__(UTF8 self, UTF8 rhs) -> bool
5775  __eq__(UTF8 self, string rhs) -> bool
5776  __eq__(UTF8 self, char const * s) -> bool
5777  """
5778  return _pcbnew.UTF8___eq__(self, *args)
5779 
5780 
5781  def find_first_of(self, str, pos=0):
5782  """
5783  find_first_of(UTF8 self, string str, std::string::size_type pos=0) -> std::string::size_type
5784  find_first_of(UTF8 self, string str) -> std::string::size_type
5785  """
5786  return _pcbnew.UTF8_find_first_of(self, str, pos)
5787 
5788 
5789  def __iadd__(self, *args):
5790  """
5791  __iadd__(UTF8 self, UTF8 str) -> UTF8
5792  __iadd__(UTF8 self, char ch) -> UTF8
5793  __iadd__(UTF8 self, char const * s) -> UTF8
5794  __iadd__(UTF8 self, unsigned int w_ch) -> UTF8
5795  """
5796  return _pcbnew.UTF8___iadd__(self, *args)
5797 
5798  npos = _pcbnew.UTF8_npos
5799 
5800  def substr(self, *args):
5801  """
5802  substr(UTF8 self, size_t pos=0, size_t len) -> string
5803  substr(UTF8 self, size_t pos=0) -> string
5804  substr(UTF8 self) -> string
5805  """
5806  return _pcbnew.UTF8_substr(self, *args)
5807 
5808 
5809  def wx_str(self):
5810  """wx_str(UTF8 self) -> wxString"""
5811  return _pcbnew.UTF8_wx_str(self)
5812 
5813 
5814  def utf8_to_wxstring(self):
5815  """utf8_to_wxstring(UTF8 self) -> wxString"""
5816  return _pcbnew.UTF8_utf8_to_wxstring(self)
5817 
5818 
5819  def begin(self):
5820  """begin(UTF8 self) -> std::string::const_iterator"""
5821  return _pcbnew.UTF8_begin(self)
5822 
5823 
5824  def end(self):
5825  """end(UTF8 self) -> std::string::const_iterator"""
5826  return _pcbnew.UTF8_end(self)
5827 
5828 
5829  def Cast_to_CChar(self):
5830  """Cast_to_CChar(UTF8 self) -> char const *"""
5831  return _pcbnew.UTF8_Cast_to_CChar(self)
5832 
5833 
5834 
5835  # Get the char buffer of the UTF8 string
5836  def GetChars(self):
5837  return self.Cast_to_CChar()
5838 
5839  # Convert the UTF8 string to a python string
5840  # Same as GetChars(), but more easy to use in print command
5841  def __str__(self):
5842  return self.GetChars()
5843 
5844 
5845 UTF8_swigregister = _pcbnew.UTF8_swigregister
5846 UTF8_swigregister(UTF8)
5847 
5848 
5849 def Mils2iu(mils):
5850  """Mils2iu(int mils) -> int"""
5851  return _pcbnew.Mils2iu(mils)
5852 
5854  """Millimeter2iu(double mm) -> int"""
5855  return _pcbnew.Millimeter2iu(mm)
5856 
5858  """Iu2Millimeter(int iu) -> double"""
5859  return _pcbnew.Iu2Millimeter(iu)
5860 
5861 def Iu2Mils(iu):
5862  """Iu2Mils(int iu) -> double"""
5863  return _pcbnew.Iu2Mils(iu)
5865  """Proxy of C++ LIB_ID class."""
5866 
5867  __swig_setmethods__ = {}
5868  __setattr__ = lambda self, name, value: _swig_setattr(self, LIB_ID, name, value)
5869  __swig_getmethods__ = {}
5870  __getattr__ = lambda self, name: _swig_getattr(self, LIB_ID, name)
5871  __repr__ = _swig_repr
5872  ID_SCH = _pcbnew.LIB_ID_ID_SCH