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_SCREEN_T_swigconstant(_pcbnew)
1289 SCH_SCREEN_T = _pcbnew.SCH_SCREEN_T
1290 
1291 _pcbnew.LIB_PART_T_swigconstant(_pcbnew)
1292 LIB_PART_T = _pcbnew.LIB_PART_T
1293 
1294 _pcbnew.LIB_ALIAS_T_swigconstant(_pcbnew)
1295 LIB_ALIAS_T = _pcbnew.LIB_ALIAS_T
1296 
1297 _pcbnew.LIB_ARC_T_swigconstant(_pcbnew)
1298 LIB_ARC_T = _pcbnew.LIB_ARC_T
1299 
1300 _pcbnew.LIB_CIRCLE_T_swigconstant(_pcbnew)
1301 LIB_CIRCLE_T = _pcbnew.LIB_CIRCLE_T
1302 
1303 _pcbnew.LIB_TEXT_T_swigconstant(_pcbnew)
1304 LIB_TEXT_T = _pcbnew.LIB_TEXT_T
1305 
1306 _pcbnew.LIB_RECTANGLE_T_swigconstant(_pcbnew)
1307 LIB_RECTANGLE_T = _pcbnew.LIB_RECTANGLE_T
1308 
1309 _pcbnew.LIB_POLYLINE_T_swigconstant(_pcbnew)
1310 LIB_POLYLINE_T = _pcbnew.LIB_POLYLINE_T
1311 
1312 _pcbnew.LIB_BEZIER_T_swigconstant(_pcbnew)
1313 LIB_BEZIER_T = _pcbnew.LIB_BEZIER_T
1314 
1315 _pcbnew.LIB_PIN_T_swigconstant(_pcbnew)
1316 LIB_PIN_T = _pcbnew.LIB_PIN_T
1317 
1318 _pcbnew.LIB_FIELD_T_swigconstant(_pcbnew)
1319 LIB_FIELD_T = _pcbnew.LIB_FIELD_T
1320 
1321 _pcbnew.GERBER_LAYOUT_T_swigconstant(_pcbnew)
1322 GERBER_LAYOUT_T = _pcbnew.GERBER_LAYOUT_T
1323 
1324 _pcbnew.GERBER_DRAW_ITEM_T_swigconstant(_pcbnew)
1325 GERBER_DRAW_ITEM_T = _pcbnew.GERBER_DRAW_ITEM_T
1326 
1327 _pcbnew.GERBER_IMAGE_LIST_T_swigconstant(_pcbnew)
1328 GERBER_IMAGE_LIST_T = _pcbnew.GERBER_IMAGE_LIST_T
1329 
1330 _pcbnew.GERBER_IMAGE_T_swigconstant(_pcbnew)
1331 GERBER_IMAGE_T = _pcbnew.GERBER_IMAGE_T
1332 
1333 _pcbnew.TYPE_PL_EDITOR_LAYOUT_swigconstant(_pcbnew)
1334 TYPE_PL_EDITOR_LAYOUT = _pcbnew.TYPE_PL_EDITOR_LAYOUT
1335 
1336 _pcbnew.MAX_STRUCT_TYPE_ID_swigconstant(_pcbnew)
1337 MAX_STRUCT_TYPE_ID = _pcbnew.MAX_STRUCT_TYPE_ID
1338 
1339 _pcbnew.NO_FILL_swigconstant(_pcbnew)
1340 NO_FILL = _pcbnew.NO_FILL
1341 
1342 _pcbnew.FILLED_SHAPE_swigconstant(_pcbnew)
1343 FILLED_SHAPE = _pcbnew.FILLED_SHAPE
1344 
1345 _pcbnew.FILLED_WITH_BG_BODYCOLOR_swigconstant(_pcbnew)
1346 FILLED_WITH_BG_BODYCOLOR = _pcbnew.FILLED_WITH_BG_BODYCOLOR
1347 
1348 _pcbnew.SEARCH_QUIT_swigconstant(_pcbnew)
1349 SEARCH_QUIT = _pcbnew.SEARCH_QUIT
1350 
1351 _pcbnew.SEARCH_CONTINUE_swigconstant(_pcbnew)
1352 SEARCH_CONTINUE = _pcbnew.SEARCH_CONTINUE
1353 
1354 _pcbnew.IS_CHANGED_swigconstant(_pcbnew)
1355 IS_CHANGED = _pcbnew.IS_CHANGED
1356 
1357 _pcbnew.IS_LINKED_swigconstant(_pcbnew)
1358 IS_LINKED = _pcbnew.IS_LINKED
1359 
1360 _pcbnew.IN_EDIT_swigconstant(_pcbnew)
1361 IN_EDIT = _pcbnew.IN_EDIT
1362 
1363 _pcbnew.IS_MOVED_swigconstant(_pcbnew)
1364 IS_MOVED = _pcbnew.IS_MOVED
1365 
1366 _pcbnew.IS_NEW_swigconstant(_pcbnew)
1367 IS_NEW = _pcbnew.IS_NEW
1368 
1369 _pcbnew.IS_RESIZED_swigconstant(_pcbnew)
1370 IS_RESIZED = _pcbnew.IS_RESIZED
1371 
1372 _pcbnew.IS_DRAGGED_swigconstant(_pcbnew)
1373 IS_DRAGGED = _pcbnew.IS_DRAGGED
1374 
1375 _pcbnew.IS_DELETED_swigconstant(_pcbnew)
1376 IS_DELETED = _pcbnew.IS_DELETED
1377 
1378 _pcbnew.IS_WIRE_IMAGE_swigconstant(_pcbnew)
1379 IS_WIRE_IMAGE = _pcbnew.IS_WIRE_IMAGE
1380 
1381 _pcbnew.STARTPOINT_swigconstant(_pcbnew)
1382 STARTPOINT = _pcbnew.STARTPOINT
1383 
1384 _pcbnew.ENDPOINT_swigconstant(_pcbnew)
1385 ENDPOINT = _pcbnew.ENDPOINT
1386 
1387 _pcbnew.SELECTED_swigconstant(_pcbnew)
1388 SELECTED = _pcbnew.SELECTED
1389 
1390 _pcbnew.SELECTEDNODE_swigconstant(_pcbnew)
1391 SELECTEDNODE = _pcbnew.SELECTEDNODE
1392 
1393 _pcbnew.STRUCT_DELETED_swigconstant(_pcbnew)
1394 STRUCT_DELETED = _pcbnew.STRUCT_DELETED
1395 
1396 _pcbnew.CANDIDATE_swigconstant(_pcbnew)
1397 CANDIDATE = _pcbnew.CANDIDATE
1398 
1399 _pcbnew.SKIP_STRUCT_swigconstant(_pcbnew)
1400 SKIP_STRUCT = _pcbnew.SKIP_STRUCT
1401 
1402 _pcbnew.DO_NOT_DRAW_swigconstant(_pcbnew)
1403 DO_NOT_DRAW = _pcbnew.DO_NOT_DRAW
1404 
1405 _pcbnew.IS_CANCELLED_swigconstant(_pcbnew)
1406 IS_CANCELLED = _pcbnew.IS_CANCELLED
1407 
1408 _pcbnew.TRACK_LOCKED_swigconstant(_pcbnew)
1409 TRACK_LOCKED = _pcbnew.TRACK_LOCKED
1410 
1411 _pcbnew.TRACK_AR_swigconstant(_pcbnew)
1412 TRACK_AR = _pcbnew.TRACK_AR
1413 
1414 _pcbnew.FLAG1_swigconstant(_pcbnew)
1415 FLAG1 = _pcbnew.FLAG1
1416 
1417 _pcbnew.FLAG0_swigconstant(_pcbnew)
1418 FLAG0 = _pcbnew.FLAG0
1419 
1420 _pcbnew.BEGIN_ONPAD_swigconstant(_pcbnew)
1421 BEGIN_ONPAD = _pcbnew.BEGIN_ONPAD
1422 
1423 _pcbnew.END_ONPAD_swigconstant(_pcbnew)
1424 END_ONPAD = _pcbnew.END_ONPAD
1425 
1426 _pcbnew.BUSY_swigconstant(_pcbnew)
1427 BUSY = _pcbnew.BUSY
1428 
1429 _pcbnew.HIGHLIGHTED_swigconstant(_pcbnew)
1430 HIGHLIGHTED = _pcbnew.HIGHLIGHTED
1431 
1432 _pcbnew.BRIGHTENED_swigconstant(_pcbnew)
1433 BRIGHTENED = _pcbnew.BRIGHTENED
1434 
1435 _pcbnew.DP_COUPLED_swigconstant(_pcbnew)
1436 DP_COUPLED = _pcbnew.DP_COUPLED
1437 
1438 _pcbnew.UR_TRANSIENT_swigconstant(_pcbnew)
1439 UR_TRANSIENT = _pcbnew.UR_TRANSIENT
1440 
1441 _pcbnew.EDA_ITEM_ALL_FLAGS_swigconstant(_pcbnew)
1442 EDA_ITEM_ALL_FLAGS = _pcbnew.EDA_ITEM_ALL_FLAGS
1444  """Proxy of C++ EDA_ITEM class."""
1445 
1446  __swig_setmethods__ = {}
1447  __setattr__ = lambda self, name, value: _swig_setattr(self, EDA_ITEM, name, value)
1448  __swig_getmethods__ = {}
1449  __getattr__ = lambda self, name: _swig_getattr(self, EDA_ITEM, name)
1450 
1451  def __init__(self, *args, **kwargs):
1452  raise AttributeError("No constructor defined - class is abstract")
1453  __repr__ = _swig_repr
1454  __swig_destroy__ = _pcbnew.delete_EDA_ITEM
1455  __del__ = lambda self: None
1456 
1457  def Type(self):
1458  """Type(EDA_ITEM self) -> KICAD_T"""
1459  return _pcbnew.EDA_ITEM_Type(self)
1460 
1461 
1462  def SetTimeStamp(self, aNewTimeStamp):
1463  """SetTimeStamp(EDA_ITEM self, timestamp_t aNewTimeStamp)"""
1464  return _pcbnew.EDA_ITEM_SetTimeStamp(self, aNewTimeStamp)
1465 
1466 
1467  def GetTimeStamp(self):
1468  """GetTimeStamp(EDA_ITEM self) -> timestamp_t"""
1469  return _pcbnew.EDA_ITEM_GetTimeStamp(self)
1470 
1471 
1472  def Next(self):
1473  """Next(EDA_ITEM self) -> EDA_ITEM"""
1474  return _pcbnew.EDA_ITEM_Next(self)
1475 
1476 
1477  def Back(self):
1478  """Back(EDA_ITEM self) -> EDA_ITEM"""
1479  return _pcbnew.EDA_ITEM_Back(self)
1480 
1481 
1482  def GetParent(self):
1483  """GetParent(EDA_ITEM self) -> EDA_ITEM"""
1484  return _pcbnew.EDA_ITEM_GetParent(self)
1485 
1486 
1487  def GetList(self):
1488  """GetList(EDA_ITEM self) -> DHEAD"""
1489  return _pcbnew.EDA_ITEM_GetList(self)
1490 
1491 
1492  def SetParent(self, aParent):
1493  """SetParent(EDA_ITEM self, EDA_ITEM aParent)"""
1494  return _pcbnew.EDA_ITEM_SetParent(self, aParent)
1495 
1496 
1497  def SetList(self, aList):
1498  """SetList(EDA_ITEM self, DHEAD aList)"""
1499  return _pcbnew.EDA_ITEM_SetList(self, aList)
1500 
1501 
1502  def IsNew(self):
1503  """IsNew(EDA_ITEM self) -> bool"""
1504  return _pcbnew.EDA_ITEM_IsNew(self)
1505 
1506 
1507  def IsModified(self):
1508  """IsModified(EDA_ITEM self) -> bool"""
1509  return _pcbnew.EDA_ITEM_IsModified(self)
1510 
1511 
1512  def IsMoving(self):
1513  """IsMoving(EDA_ITEM self) -> bool"""
1514  return _pcbnew.EDA_ITEM_IsMoving(self)
1515 
1516 
1517  def IsDragging(self):
1518  """IsDragging(EDA_ITEM self) -> bool"""
1519  return _pcbnew.EDA_ITEM_IsDragging(self)
1520 
1521 
1522  def IsWireImage(self):
1523  """IsWireImage(EDA_ITEM self) -> bool"""
1524  return _pcbnew.EDA_ITEM_IsWireImage(self)
1525 
1526 
1527  def IsSelected(self):
1528  """IsSelected(EDA_ITEM self) -> bool"""
1529  return _pcbnew.EDA_ITEM_IsSelected(self)
1530 
1531 
1532  def IsResized(self):
1533  """IsResized(EDA_ITEM self) -> bool"""
1534  return _pcbnew.EDA_ITEM_IsResized(self)
1535 
1536 
1537  def IsHighlighted(self):
1538  """IsHighlighted(EDA_ITEM self) -> bool"""
1539  return _pcbnew.EDA_ITEM_IsHighlighted(self)
1540 
1541 
1542  def IsBrightened(self):
1543  """IsBrightened(EDA_ITEM self) -> bool"""
1544  return _pcbnew.EDA_ITEM_IsBrightened(self)
1545 
1546 
1547  def SetWireImage(self):
1548  """SetWireImage(EDA_ITEM self)"""
1549  return _pcbnew.EDA_ITEM_SetWireImage(self)
1550 
1551 
1552  def SetSelected(self):
1553  """SetSelected(EDA_ITEM self)"""
1554  return _pcbnew.EDA_ITEM_SetSelected(self)
1555 
1556 
1557  def SetHighlighted(self):
1558  """SetHighlighted(EDA_ITEM self)"""
1559  return _pcbnew.EDA_ITEM_SetHighlighted(self)
1560 
1561 
1562  def SetBrightened(self):
1563  """SetBrightened(EDA_ITEM self)"""
1564  return _pcbnew.EDA_ITEM_SetBrightened(self)
1565 
1566 
1567  def ClearSelected(self):
1568  """ClearSelected(EDA_ITEM self)"""
1569  return _pcbnew.EDA_ITEM_ClearSelected(self)
1570 
1571 
1572  def ClearHighlighted(self):
1573  """ClearHighlighted(EDA_ITEM self)"""
1574  return _pcbnew.EDA_ITEM_ClearHighlighted(self)
1575 
1576 
1577  def ClearBrightened(self):
1578  """ClearBrightened(EDA_ITEM self)"""
1579  return _pcbnew.EDA_ITEM_ClearBrightened(self)
1580 
1581 
1582  def SetModified(self):
1583  """SetModified(EDA_ITEM self)"""
1584  return _pcbnew.EDA_ITEM_SetModified(self)
1585 
1586 
1587  def GetState(self, type):
1588  """GetState(EDA_ITEM self, int type) -> int"""
1589  return _pcbnew.EDA_ITEM_GetState(self, type)
1590 
1591 
1592  def SetState(self, type, state):
1593  """SetState(EDA_ITEM self, int type, int state)"""
1594  return _pcbnew.EDA_ITEM_SetState(self, type, state)
1595 
1596 
1597  def GetStatus(self):
1598  """GetStatus(EDA_ITEM self) -> STATUS_FLAGS"""
1599  return _pcbnew.EDA_ITEM_GetStatus(self)
1600 
1601 
1602  def SetStatus(self, aStatus):
1603  """SetStatus(EDA_ITEM self, STATUS_FLAGS aStatus)"""
1604  return _pcbnew.EDA_ITEM_SetStatus(self, aStatus)
1605 
1606 
1607  def SetFlags(self, aMask):
1608  """SetFlags(EDA_ITEM self, STATUS_FLAGS aMask)"""
1609  return _pcbnew.EDA_ITEM_SetFlags(self, aMask)
1610 
1611 
1612  def ClearFlags(self, aMask=-1):
1613  """
1614  ClearFlags(EDA_ITEM self, STATUS_FLAGS aMask=-1)
1615  ClearFlags(EDA_ITEM self)
1616  """
1617  return _pcbnew.EDA_ITEM_ClearFlags(self, aMask)
1618 
1619 
1620  def GetFlags(self):
1621  """GetFlags(EDA_ITEM self) -> STATUS_FLAGS"""
1622  return _pcbnew.EDA_ITEM_GetFlags(self)
1623 
1624 
1625  def SetForceVisible(self, aEnable):
1626  """SetForceVisible(EDA_ITEM self, bool aEnable)"""
1627  return _pcbnew.EDA_ITEM_SetForceVisible(self, aEnable)
1628 
1629 
1630  def GetMsgPanelInfo(self, aList):
1631  """GetMsgPanelInfo(EDA_ITEM self, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
1632  return _pcbnew.EDA_ITEM_GetMsgPanelInfo(self, aList)
1633 
1634 
1635  def HitTest(self, aPosition):
1636  """HitTest(EDA_ITEM self, wxPoint aPosition) -> bool"""
1637  return _pcbnew.EDA_ITEM_HitTest(self, aPosition)
1638 
1639 
1640  def GetBoundingBox(self):
1641  """GetBoundingBox(EDA_ITEM self) -> EDA_RECT"""
1642  return _pcbnew.EDA_ITEM_GetBoundingBox(self)
1643 
1644 
1645  def Clone(self):
1646  """Clone(EDA_ITEM self) -> EDA_ITEM"""
1647  return _pcbnew.EDA_ITEM_Clone(self)
1648 
1649 
1650  def IterateForward(listStart, inspector, testData, scanTypes):
1651  """IterateForward(EDA_ITEM listStart, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
1652  return _pcbnew.EDA_ITEM_IterateForward(listStart, inspector, testData, scanTypes)
1653 
1654  if _newclass:
1655  IterateForward = staticmethod(IterateForward)
1656  __swig_getmethods__["IterateForward"] = lambda x: IterateForward
1657 
1658  def Visit(self, inspector, testData, scanTypes):
1659  """Visit(EDA_ITEM self, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
1660  return _pcbnew.EDA_ITEM_Visit(self, inspector, testData, scanTypes)
1661 
1662 
1663  def GetClass(self):
1664  """GetClass(EDA_ITEM self) -> wxString"""
1665  return _pcbnew.EDA_ITEM_GetClass(self)
1666 
1667 
1669  """GetSelectMenuText(EDA_ITEM self) -> wxString"""
1670  return _pcbnew.EDA_ITEM_GetSelectMenuText(self)
1671 
1672 
1673  def GetMenuImage(self):
1674  """GetMenuImage(EDA_ITEM self) -> BITMAP_DEF"""
1675  return _pcbnew.EDA_ITEM_GetMenuImage(self)
1676 
1677 
1678  def Matches(self, aSearchData, aAuxData, aFindLocation):
1679  """Matches(EDA_ITEM self, wxFindReplaceData & aSearchData, void * aAuxData, wxPoint aFindLocation) -> bool"""
1680  return _pcbnew.EDA_ITEM_Matches(self, aSearchData, aAuxData, aFindLocation)
1681 
1682 
1683  def Replace(self, *args):
1684  """
1685  Replace(EDA_ITEM self, wxFindReplaceData & aSearchData, wxString aText) -> bool
1686  Replace(EDA_ITEM self, wxFindReplaceData & aSearchData, void * aAuxData=None) -> bool
1687  Replace(EDA_ITEM self, wxFindReplaceData & aSearchData) -> bool
1688  """
1689  return _pcbnew.EDA_ITEM_Replace(self, *args)
1690 
1691 
1692  def IsReplaceable(self):
1693  """IsReplaceable(EDA_ITEM self) -> bool"""
1694  return _pcbnew.EDA_ITEM_IsReplaceable(self)
1695 
1696 
1697  def __lt__(self, aItem):
1698  """__lt__(EDA_ITEM self, EDA_ITEM aItem) -> bool"""
1699  return _pcbnew.EDA_ITEM___lt__(self, aItem)
1700 
1701 
1702  def Sort(aLeft, aRight):
1703  """Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1704  return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1705 
1706  if _newclass:
1707  Sort = staticmethod(Sort)
1708  __swig_getmethods__["Sort"] = lambda x: Sort
1709 
1710  def ViewBBox(self):
1711  """ViewBBox(EDA_ITEM self) -> BOX2I const"""
1712  return _pcbnew.EDA_ITEM_ViewBBox(self)
1713 
1714 
1715  def ViewGetLayers(self, aLayers, aCount):
1716  """ViewGetLayers(EDA_ITEM self, int [] aLayers, int & aCount)"""
1717  return _pcbnew.EDA_ITEM_ViewGetLayers(self, aLayers, aCount)
1718 
1719 EDA_ITEM_swigregister = _pcbnew.EDA_ITEM_swigregister
1720 EDA_ITEM_swigregister(EDA_ITEM)
1721 
1722 def EDA_ITEM_IterateForward(listStart, inspector, testData, scanTypes):
1723  """EDA_ITEM_IterateForward(EDA_ITEM listStart, INSPECTOR inspector, void * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
1724  return _pcbnew.EDA_ITEM_IterateForward(listStart, inspector, testData, scanTypes)
1725 
1726 def EDA_ITEM_Sort(aLeft, aRight):
1727  """EDA_ITEM_Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1728  return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1729 
1730 
1731 def new_clone(aItem):
1732  """new_clone(EDA_ITEM aItem) -> EDA_ITEM"""
1733  return _pcbnew.new_clone(aItem)
1735  """Proxy of C++ EDA_RECT class."""
1736 
1737  __swig_setmethods__ = {}
1738  __setattr__ = lambda self, name, value: _swig_setattr(self, EDA_RECT, name, value)
1739  __swig_getmethods__ = {}
1740  __getattr__ = lambda self, name: _swig_getattr(self, EDA_RECT, name)
1741  __repr__ = _swig_repr
1742 
1743  def __init__(self, *args):
1744  """
1745  __init__(EDA_RECT self) -> EDA_RECT
1746  __init__(EDA_RECT self, wxPoint aPos, wxSize aSize) -> EDA_RECT
1747  """
1748  this = _pcbnew.new_EDA_RECT(*args)
1749  try:
1750  self.this.append(this)
1751  except Exception:
1752  self.this = this
1753  __swig_destroy__ = _pcbnew.delete_EDA_RECT
1754  __del__ = lambda self: None
1755 
1756  def Centre(self):
1757  """Centre(EDA_RECT self) -> wxPoint"""
1758  return _pcbnew.EDA_RECT_Centre(self)
1759 
1760 
1761  def Move(self, aMoveVector):
1762  """Move(EDA_RECT self, wxPoint aMoveVector)"""
1763  return _pcbnew.EDA_RECT_Move(self, aMoveVector)
1764 
1765 
1766  def Normalize(self):
1767  """Normalize(EDA_RECT self)"""
1768  return _pcbnew.EDA_RECT_Normalize(self)
1769 
1770 
1771  def Contains(self, *args):
1772  """
1773  Contains(EDA_RECT self, wxPoint aPoint) -> bool
1774  Contains(EDA_RECT self, int x, int y) -> bool
1775  Contains(EDA_RECT self, EDA_RECT aRect) -> bool
1776  """
1777  return _pcbnew.EDA_RECT_Contains(self, *args)
1778 
1779 
1780  def GetSize(self):
1781  """GetSize(EDA_RECT self) -> wxSize"""
1782  return _pcbnew.EDA_RECT_GetSize(self)
1783 
1784 
1785  def GetSizeMax(self):
1786  """GetSizeMax(EDA_RECT self) -> int"""
1787  return _pcbnew.EDA_RECT_GetSizeMax(self)
1788 
1789 
1790  def GetX(self):
1791  """GetX(EDA_RECT self) -> int"""
1792  return _pcbnew.EDA_RECT_GetX(self)
1793 
1794 
1795  def GetY(self):
1796  """GetY(EDA_RECT self) -> int"""
1797  return _pcbnew.EDA_RECT_GetY(self)
1798 
1799 
1800  def GetOrigin(self):
1801  """GetOrigin(EDA_RECT self) -> wxPoint"""
1802  return _pcbnew.EDA_RECT_GetOrigin(self)
1803 
1804 
1805  def GetPosition(self):
1806  """GetPosition(EDA_RECT self) -> wxPoint"""
1807  return _pcbnew.EDA_RECT_GetPosition(self)
1808 
1809 
1810  def GetEnd(self):
1811  """GetEnd(EDA_RECT self) -> wxPoint"""
1812  return _pcbnew.EDA_RECT_GetEnd(self)
1813 
1814 
1815  def GetCenter(self):
1816  """GetCenter(EDA_RECT self) -> wxPoint"""
1817  return _pcbnew.EDA_RECT_GetCenter(self)
1818 
1819 
1820  def GetWidth(self):
1821  """GetWidth(EDA_RECT self) -> int"""
1822  return _pcbnew.EDA_RECT_GetWidth(self)
1823 
1824 
1825  def GetHeight(self):
1826  """GetHeight(EDA_RECT self) -> int"""
1827  return _pcbnew.EDA_RECT_GetHeight(self)
1828 
1829 
1830  def GetRight(self):
1831  """GetRight(EDA_RECT self) -> int"""
1832  return _pcbnew.EDA_RECT_GetRight(self)
1833 
1834 
1835  def GetLeft(self):
1836  """GetLeft(EDA_RECT self) -> int"""
1837  return _pcbnew.EDA_RECT_GetLeft(self)
1838 
1839 
1840  def GetTop(self):
1841  """GetTop(EDA_RECT self) -> int"""
1842  return _pcbnew.EDA_RECT_GetTop(self)
1843 
1844 
1845  def GetBottom(self):
1846  """GetBottom(EDA_RECT self) -> int"""
1847  return _pcbnew.EDA_RECT_GetBottom(self)
1848 
1849 
1850  def SetOrigin(self, *args):
1851  """
1852  SetOrigin(EDA_RECT self, wxPoint pos)
1853  SetOrigin(EDA_RECT self, int x, int y)
1854  """
1855  return _pcbnew.EDA_RECT_SetOrigin(self, *args)
1856 
1857 
1858  def SetSize(self, *args):
1859  """
1860  SetSize(EDA_RECT self, wxSize size)
1861  SetSize(EDA_RECT self, int w, int h)
1862  """
1863  return _pcbnew.EDA_RECT_SetSize(self, *args)
1864 
1865 
1866  def Offset(self, *args):
1867  """
1868  Offset(EDA_RECT self, int dx, int dy)
1869  Offset(EDA_RECT self, wxPoint offset)
1870  """
1871  return _pcbnew.EDA_RECT_Offset(self, *args)
1872 
1873 
1874  def SetX(self, val):
1875  """SetX(EDA_RECT self, int val)"""
1876  return _pcbnew.EDA_RECT_SetX(self, val)
1877 
1878 
1879  def SetY(self, val):
1880  """SetY(EDA_RECT self, int val)"""
1881  return _pcbnew.EDA_RECT_SetY(self, val)
1882 
1883 
1884  def SetWidth(self, val):
1885  """SetWidth(EDA_RECT self, int val)"""
1886  return _pcbnew.EDA_RECT_SetWidth(self, val)
1887 
1888 
1889  def SetHeight(self, val):
1890  """SetHeight(EDA_RECT self, int val)"""
1891  return _pcbnew.EDA_RECT_SetHeight(self, val)
1892 
1893 
1894  def SetEnd(self, *args):
1895  """
1896  SetEnd(EDA_RECT self, int x, int y)
1897  SetEnd(EDA_RECT self, wxPoint pos)
1898  """
1899  return _pcbnew.EDA_RECT_SetEnd(self, *args)
1900 
1901 
1902  def RevertYAxis(self):
1903  """RevertYAxis(EDA_RECT self)"""
1904  return _pcbnew.EDA_RECT_RevertYAxis(self)
1905 
1906 
1907  def Intersects(self, *args):
1908  """
1909  Intersects(EDA_RECT self, EDA_RECT aRect) -> bool
1910  Intersects(EDA_RECT self, EDA_RECT aRect, double aRot) -> bool
1911  Intersects(EDA_RECT self, wxPoint aPoint1, wxPoint aPoint2) -> bool
1912  """
1913  return _pcbnew.EDA_RECT_Intersects(self, *args)
1914 
1915 
1916  def ClosestPointTo(self, aPoint):
1917  """ClosestPointTo(EDA_RECT self, wxPoint aPoint) -> wxPoint"""
1918  return _pcbnew.EDA_RECT_ClosestPointTo(self, aPoint)
1919 
1920 
1921  def FarthestPointTo(self, aPoint):
1922  """FarthestPointTo(EDA_RECT self, wxPoint aPoint) -> wxPoint"""
1923  return _pcbnew.EDA_RECT_FarthestPointTo(self, aPoint)
1924 
1925 
1926  def IntersectsCircle(self, aCenter, aRadius):
1927  """IntersectsCircle(EDA_RECT self, wxPoint aCenter, int const aRadius) -> bool"""
1928  return _pcbnew.EDA_RECT_IntersectsCircle(self, aCenter, aRadius)
1929 
1930 
1931  def IntersectsCircleEdge(self, aCenter, aRadius, aWidth):
1932  """IntersectsCircleEdge(EDA_RECT self, wxPoint aCenter, int const aRadius, int const aWidth) -> bool"""
1933  return _pcbnew.EDA_RECT_IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
1934 
1935 
1936  def getWxRect(self):
1937  """getWxRect(EDA_RECT self) -> wxRect"""
1938  return _pcbnew.EDA_RECT_getWxRect(self)
1939 
1940 
1941  def getBOX2I(self):
1942  """getBOX2I(EDA_RECT self) -> BOX2I"""
1943  return _pcbnew.EDA_RECT_getBOX2I(self)
1944 
1945 
1946  def Inflate(self, *args):
1947  """
1948  Inflate(EDA_RECT self, wxCoord dx, wxCoord dy) -> EDA_RECT
1949  Inflate(EDA_RECT self, int aDelta) -> EDA_RECT
1950  """
1951  return _pcbnew.EDA_RECT_Inflate(self, *args)
1952 
1953 
1954  def Merge(self, *args):
1955  """
1956  Merge(EDA_RECT self, EDA_RECT aRect)
1957  Merge(EDA_RECT self, wxPoint aPoint)
1958  """
1959  return _pcbnew.EDA_RECT_Merge(self, *args)
1960 
1961 
1962  def GetArea(self):
1963  """GetArea(EDA_RECT self) -> double"""
1964  return _pcbnew.EDA_RECT_GetArea(self)
1965 
1966 
1967  def Common(self, aRect):
1968  """Common(EDA_RECT self, EDA_RECT aRect) -> EDA_RECT"""
1969  return _pcbnew.EDA_RECT_Common(self, aRect)
1970 
1971 
1972  def GetBoundingBoxRotated(self, aRotCenter, aAngle):
1973  """GetBoundingBoxRotated(EDA_RECT self, wxPoint aRotCenter, double aAngle) -> EDA_RECT"""
1974  return _pcbnew.EDA_RECT_GetBoundingBoxRotated(self, aRotCenter, aAngle)
1975 
1976 EDA_RECT_swigregister = _pcbnew.EDA_RECT_swigregister
1977 EDA_RECT_swigregister(EDA_RECT)
1978 
1979 
1980 _pcbnew.EDA_PANNING_UP_KEY_swigconstant(_pcbnew)
1981 EDA_PANNING_UP_KEY = _pcbnew.EDA_PANNING_UP_KEY
1982 
1983 _pcbnew.EDA_PANNING_DOWN_KEY_swigconstant(_pcbnew)
1984 EDA_PANNING_DOWN_KEY = _pcbnew.EDA_PANNING_DOWN_KEY
1985 
1986 _pcbnew.EDA_PANNING_LEFT_KEY_swigconstant(_pcbnew)
1987 EDA_PANNING_LEFT_KEY = _pcbnew.EDA_PANNING_LEFT_KEY
1988 
1989 _pcbnew.EDA_PANNING_RIGHT_KEY_swigconstant(_pcbnew)
1990 EDA_PANNING_RIGHT_KEY = _pcbnew.EDA_PANNING_RIGHT_KEY
1991 
1992 _pcbnew.EDA_ZOOM_IN_FROM_MOUSE_swigconstant(_pcbnew)
1993 EDA_ZOOM_IN_FROM_MOUSE = _pcbnew.EDA_ZOOM_IN_FROM_MOUSE
1994 
1995 _pcbnew.EDA_ZOOM_OUT_FROM_MOUSE_swigconstant(_pcbnew)
1996 EDA_ZOOM_OUT_FROM_MOUSE = _pcbnew.EDA_ZOOM_OUT_FROM_MOUSE
1997 
1998 _pcbnew.EDA_ZOOM_CENTER_FROM_MOUSE_swigconstant(_pcbnew)
1999 EDA_ZOOM_CENTER_FROM_MOUSE = _pcbnew.EDA_ZOOM_CENTER_FROM_MOUSE
2000 
2001 _pcbnew.ESC_swigconstant(_pcbnew)
2002 ESC = _pcbnew.ESC
2003 
2004 _pcbnew.TEXT_ANGLE_HORIZ_swigconstant(_pcbnew)
2005 TEXT_ANGLE_HORIZ = _pcbnew.TEXT_ANGLE_HORIZ
2006 
2007 _pcbnew.TEXT_ANGLE_VERT_swigconstant(_pcbnew)
2008 TEXT_ANGLE_VERT = _pcbnew.TEXT_ANGLE_VERT
2009 
2010 def KiROUND(v):
2011  """KiROUND(double v) -> int"""
2012  return _pcbnew.KiROUND(v)
2013 
2014 _pcbnew.INCHES_swigconstant(_pcbnew)
2015 INCHES = _pcbnew.INCHES
2016 
2017 _pcbnew.MILLIMETRES_swigconstant(_pcbnew)
2018 MILLIMETRES = _pcbnew.MILLIMETRES
2019 
2020 _pcbnew.UNSCALED_UNITS_swigconstant(_pcbnew)
2021 UNSCALED_UNITS = _pcbnew.UNSCALED_UNITS
2022 
2023 _pcbnew.DEGREES_swigconstant(_pcbnew)
2024 DEGREES = _pcbnew.DEGREES
2026  """Proxy of C++ LOCALE_IO class."""
2027 
2028  __swig_setmethods__ = {}
2029  __setattr__ = lambda self, name, value: _swig_setattr(self, LOCALE_IO, name, value)
2030  __swig_getmethods__ = {}
2031  __getattr__ = lambda self, name: _swig_getattr(self, LOCALE_IO, name)
2032  __repr__ = _swig_repr
2033 
2034  def __init__(self):
2035  """__init__(LOCALE_IO self) -> LOCALE_IO"""
2036  this = _pcbnew.new_LOCALE_IO()
2037  try:
2038  self.this.append(this)
2039  except Exception:
2040  self.this = this
2041  __swig_destroy__ = _pcbnew.delete_LOCALE_IO
2042  __del__ = lambda self: None
2043 LOCALE_IO_swigregister = _pcbnew.LOCALE_IO_swigregister
2044 LOCALE_IO_swigregister(LOCALE_IO)
2045 
2046 
2047 def GetTextSize(aSingleLine, aWindow):
2048  """GetTextSize(wxString aSingleLine, wxWindow * aWindow) -> wxSize"""
2049  return _pcbnew.GetTextSize(aSingleLine, aWindow)
2050 
2051 def EnsureTextCtrlWidth(aCtrl, aString=None):
2052  """
2053  EnsureTextCtrlWidth(wxTextCtrl * aCtrl, wxString aString=None) -> bool
2054  EnsureTextCtrlWidth(wxTextCtrl * aCtrl) -> bool
2055  """
2056  return _pcbnew.EnsureTextCtrlWidth(aCtrl, aString)
2057 
2058 def ProcessExecute(*args):
2059  """
2060  ProcessExecute(wxString aCommandLine, int aFlags, wxProcess * callback=None) -> int
2061  ProcessExecute(wxString aCommandLine, int aFlags) -> int
2062  ProcessExecute(wxString aCommandLine) -> int
2063  """
2064  return _pcbnew.ProcessExecute(*args)
2065 
2067  """GetNewTimeStamp() -> timestamp_t"""
2068  return _pcbnew.GetNewTimeStamp()
2069 
2070 def RoundTo0(x, precision):
2071  """RoundTo0(double x, double precision) -> double"""
2072  return _pcbnew.RoundTo0(x, precision)
2073 
2074 def wxStringSplit(aText, aStrings, aSplitter):
2075  """wxStringSplit(wxString aText, wxArrayString & aStrings, wxChar aSplitter)"""
2076  return _pcbnew.wxStringSplit(aText, aStrings, aSplitter)
2077 
2078 def SearchHelpFileFullPath(aSearchStack, aBaseName):
2079  """SearchHelpFileFullPath(SEARCH_STACK const & aSearchStack, wxString aBaseName) -> wxString"""
2080  return _pcbnew.SearchHelpFileFullPath(aSearchStack, aBaseName)
2081 
2082 def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None):
2083  """
2084  EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename, REPORTER * aReporter=None) -> bool
2085  EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename) -> bool
2086  """
2087  return _pcbnew.EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter)
2088 
2089 def PrePendPath(aEnvVar, aPriorityPath):
2090  """PrePendPath(wxString aEnvVar, wxString aPriorityPath) -> wxString"""
2091  return _pcbnew.PrePendPath(aEnvVar, aPriorityPath)
2092 
2093 def GetNewConfig(aProgName):
2094  """GetNewConfig(wxString aProgName) -> wxConfigBase *"""
2095  return _pcbnew.GetNewConfig(aProgName)
2096 
2098  """GetKicadConfigPath() -> wxString"""
2099  return _pcbnew.GetKicadConfigPath()
2100 
2102  """ExpandEnvVarSubstitutions(wxString aString) -> wxString"""
2103  return _pcbnew.ExpandEnvVarSubstitutions(aString)
2104 
2106  """ResolveUriByEnvVars(wxString aUri) -> wxString"""
2107  return _pcbnew.ResolveUriByEnvVars(aUri)
2109  """Proxy of C++ TITLE_BLOCK class."""
2110 
2111  __swig_setmethods__ = {}
2112  __setattr__ = lambda self, name, value: _swig_setattr(self, TITLE_BLOCK, name, value)
2113  __swig_getmethods__ = {}
2114  __getattr__ = lambda self, name: _swig_getattr(self, TITLE_BLOCK, name)
2115  __repr__ = _swig_repr
2116 
2117  def __init__(self):
2118  """__init__(TITLE_BLOCK self) -> TITLE_BLOCK"""
2119  this = _pcbnew.new_TITLE_BLOCK()
2120  try:
2121  self.this.append(this)
2122  except Exception:
2123  self.this = this
2124  __swig_destroy__ = _pcbnew.delete_TITLE_BLOCK
2125  __del__ = lambda self: None
2126 
2127  def SetTitle(self, aTitle):
2128  """SetTitle(TITLE_BLOCK self, wxString aTitle)"""
2129  return _pcbnew.TITLE_BLOCK_SetTitle(self, aTitle)
2130 
2131 
2132  def GetTitle(self):
2133  """GetTitle(TITLE_BLOCK self) -> wxString"""
2134  return _pcbnew.TITLE_BLOCK_GetTitle(self)
2135 
2136 
2137  def SetDate(self, aDate):
2138  """SetDate(TITLE_BLOCK self, wxString aDate)"""
2139  return _pcbnew.TITLE_BLOCK_SetDate(self, aDate)
2140 
2141 
2142  def GetDate(self):
2143  """GetDate(TITLE_BLOCK self) -> wxString"""
2144  return _pcbnew.TITLE_BLOCK_GetDate(self)
2145 
2146 
2147  def SetRevision(self, aRevision):
2148  """SetRevision(TITLE_BLOCK self, wxString aRevision)"""
2149  return _pcbnew.TITLE_BLOCK_SetRevision(self, aRevision)
2150 
2151 
2152  def GetRevision(self):
2153  """GetRevision(TITLE_BLOCK self) -> wxString"""
2154  return _pcbnew.TITLE_BLOCK_GetRevision(self)
2155 
2156 
2157  def SetCompany(self, aCompany):
2158  """SetCompany(TITLE_BLOCK self, wxString aCompany)"""
2159  return _pcbnew.TITLE_BLOCK_SetCompany(self, aCompany)
2160 
2161 
2162  def GetCompany(self):
2163  """GetCompany(TITLE_BLOCK self) -> wxString"""
2164  return _pcbnew.TITLE_BLOCK_GetCompany(self)
2165 
2166 
2167  def SetComment(self, aIdx, aComment):
2168  """SetComment(TITLE_BLOCK self, int aIdx, wxString aComment)"""
2169  return _pcbnew.TITLE_BLOCK_SetComment(self, aIdx, aComment)
2170 
2171 
2172  def GetComment(self, aIdx):
2173  """GetComment(TITLE_BLOCK self, int aIdx) -> wxString"""
2174  return _pcbnew.TITLE_BLOCK_GetComment(self, aIdx)
2175 
2176 
2177  def SetComment1(self, aComment):
2178  """SetComment1(TITLE_BLOCK self, wxString aComment)"""
2179  return _pcbnew.TITLE_BLOCK_SetComment1(self, aComment)
2180 
2181 
2182  def SetComment2(self, aComment):
2183  """SetComment2(TITLE_BLOCK self, wxString aComment)"""
2184  return _pcbnew.TITLE_BLOCK_SetComment2(self, aComment)
2185 
2186 
2187  def SetComment3(self, aComment):
2188  """SetComment3(TITLE_BLOCK self, wxString aComment)"""
2189  return _pcbnew.TITLE_BLOCK_SetComment3(self, aComment)
2190 
2191 
2192  def SetComment4(self, aComment):
2193  """SetComment4(TITLE_BLOCK self, wxString aComment)"""
2194  return _pcbnew.TITLE_BLOCK_SetComment4(self, aComment)
2195 
2196 
2197  def GetComment1(self):
2198  """GetComment1(TITLE_BLOCK self) -> wxString"""
2199  return _pcbnew.TITLE_BLOCK_GetComment1(self)
2200 
2201 
2202  def GetComment2(self):
2203  """GetComment2(TITLE_BLOCK self) -> wxString"""
2204  return _pcbnew.TITLE_BLOCK_GetComment2(self)
2205 
2206 
2207  def GetComment3(self):
2208  """GetComment3(TITLE_BLOCK self) -> wxString"""
2209  return _pcbnew.TITLE_BLOCK_GetComment3(self)
2210 
2211 
2212  def GetComment4(self):
2213  """GetComment4(TITLE_BLOCK self) -> wxString"""
2214  return _pcbnew.TITLE_BLOCK_GetComment4(self)
2215 
2216 
2217  def Clear(self):
2218  """Clear(TITLE_BLOCK self)"""
2219  return _pcbnew.TITLE_BLOCK_Clear(self)
2220 
2221 
2222  def Format(self, aFormatter, aNestLevel, aControlBits):
2223  """Format(TITLE_BLOCK self, OUTPUTFORMATTER * aFormatter, int aNestLevel, int aControlBits)"""
2224  return _pcbnew.TITLE_BLOCK_Format(self, aFormatter, aNestLevel, aControlBits)
2225 
2226 TITLE_BLOCK_swigregister = _pcbnew.TITLE_BLOCK_swigregister
2227 TITLE_BLOCK_swigregister(TITLE_BLOCK)
2228 
2230  """Proxy of C++ KIGFX::COLOR4D class."""
2231 
2232  __swig_setmethods__ = {}
2233  __setattr__ = lambda self, name, value: _swig_setattr(self, COLOR4D, name, value)
2234  __swig_getmethods__ = {}
2235  __getattr__ = lambda self, name: _swig_getattr(self, COLOR4D, name)
2236  __repr__ = _swig_repr
2237 
2238  def __init__(self, *args):
2239  """
2240  __init__(KIGFX::COLOR4D self) -> COLOR4D
2241  __init__(KIGFX::COLOR4D self, double aRed, double aGreen, double aBlue, double aAlpha) -> COLOR4D
2242  __init__(KIGFX::COLOR4D self, EDA_COLOR_T aColor) -> COLOR4D
2243  __init__(KIGFX::COLOR4D self, wxColour const & aColor) -> COLOR4D
2244  """
2245  this = _pcbnew.new_COLOR4D(*args)
2246  try:
2247  self.this.append(this)
2248  except Exception:
2249  self.this = this
2250 
2251  def SetFromWxString(self, aColorString):
2252  """SetFromWxString(COLOR4D self, wxString aColorString) -> bool"""
2253  return _pcbnew.COLOR4D_SetFromWxString(self, aColorString)
2254 
2255 
2256  def ToWxString(self, flags):
2257  """ToWxString(COLOR4D self, long flags) -> wxString"""
2258  return _pcbnew.COLOR4D_ToWxString(self, flags)
2259 
2260 
2261  def ToColour(self):
2262  """ToColour(COLOR4D self) -> wxColour"""
2263  return _pcbnew.COLOR4D_ToColour(self)
2264 
2265 
2266  def LegacyMix(self, aColor):
2267  """LegacyMix(COLOR4D self, COLOR4D aColor) -> COLOR4D"""
2268  return _pcbnew.COLOR4D_LegacyMix(self, aColor)
2269 
2270 
2272  """SetToLegacyHighlightColor(COLOR4D self) -> COLOR4D"""
2273  return _pcbnew.COLOR4D_SetToLegacyHighlightColor(self)
2274 
2275 
2277  """SetToNearestLegacyColor(COLOR4D self) -> COLOR4D"""
2278  return _pcbnew.COLOR4D_SetToNearestLegacyColor(self)
2279 
2280 
2281  def AsLegacyColor(self):
2282  """AsLegacyColor(COLOR4D self) -> COLOR4D"""
2283  return _pcbnew.COLOR4D_AsLegacyColor(self)
2284 
2285 
2286  def ToU32(self):
2287  """ToU32(COLOR4D self) -> unsigned int"""
2288  return _pcbnew.COLOR4D_ToU32(self)
2289 
2290 
2291  def FromU32(self, aPackedColor):
2292  """FromU32(COLOR4D self, unsigned int aPackedColor)"""
2293  return _pcbnew.COLOR4D_FromU32(self, aPackedColor)
2294 
2295 
2297  """GetNearestLegacyColor(COLOR4D aColor) -> EDA_COLOR_T"""
2298  return _pcbnew.COLOR4D_GetNearestLegacyColor(aColor)
2299 
2300  if _newclass:
2301  GetNearestLegacyColor = staticmethod(GetNearestLegacyColor)
2302  __swig_getmethods__["GetNearestLegacyColor"] = lambda x: GetNearestLegacyColor
2303 
2304  def Brighten(self, aFactor):
2305  """Brighten(COLOR4D self, double aFactor) -> COLOR4D"""
2306  return _pcbnew.COLOR4D_Brighten(self, aFactor)
2307 
2308 
2309  def Darken(self, aFactor):
2310  """Darken(COLOR4D self, double aFactor) -> COLOR4D"""
2311  return _pcbnew.COLOR4D_Darken(self, aFactor)
2312 
2313 
2314  def Invert(self):
2315  """Invert(COLOR4D self) -> COLOR4D"""
2316  return _pcbnew.COLOR4D_Invert(self)
2317 
2318 
2319  def Saturate(self, aFactor):
2320  """Saturate(COLOR4D self, double aFactor) -> COLOR4D"""
2321  return _pcbnew.COLOR4D_Saturate(self, aFactor)
2322 
2323 
2324  def Brightened(self, aFactor):
2325  """Brightened(COLOR4D self, double aFactor) -> COLOR4D"""
2326  return _pcbnew.COLOR4D_Brightened(self, aFactor)
2327 
2328 
2329  def Darkened(self, aFactor):
2330  """Darkened(COLOR4D self, double aFactor) -> COLOR4D"""
2331  return _pcbnew.COLOR4D_Darkened(self, aFactor)
2332 
2333 
2334  def WithAlpha(self, aAlpha):
2335  """WithAlpha(COLOR4D self, double aAlpha) -> COLOR4D"""
2336  return _pcbnew.COLOR4D_WithAlpha(self, aAlpha)
2337 
2338 
2339  def Inverted(self):
2340  """Inverted(COLOR4D self) -> COLOR4D"""
2341  return _pcbnew.COLOR4D_Inverted(self)
2342 
2343 
2344  def GetBrightness(self):
2345  """GetBrightness(COLOR4D self) -> double"""
2346  return _pcbnew.COLOR4D_GetBrightness(self)
2347 
2348 
2349  def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False):
2350  """
2351  ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue, bool aAlwaysDefineHue=False)
2352  ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue)
2353  """
2354  return _pcbnew.COLOR4D_ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue)
2355 
2356 
2357  def FromHSV(self, aInH, aInS, aInV):
2358  """FromHSV(COLOR4D self, double aInH, double aInS, double aInV)"""
2359  return _pcbnew.COLOR4D_FromHSV(self, aInH, aInS, aInV)
2360 
2361  __swig_setmethods__["r"] = _pcbnew.COLOR4D_r_set
2362  __swig_getmethods__["r"] = _pcbnew.COLOR4D_r_get
2363  if _newclass:
2364  r = _swig_property(_pcbnew.COLOR4D_r_get, _pcbnew.COLOR4D_r_set)
2365  __swig_setmethods__["g"] = _pcbnew.COLOR4D_g_set
2366  __swig_getmethods__["g"] = _pcbnew.COLOR4D_g_get
2367  if _newclass:
2368  g = _swig_property(_pcbnew.COLOR4D_g_get, _pcbnew.COLOR4D_g_set)
2369  __swig_setmethods__["b"] = _pcbnew.COLOR4D_b_set
2370  __swig_getmethods__["b"] = _pcbnew.COLOR4D_b_get
2371  if _newclass:
2372  b = _swig_property(_pcbnew.COLOR4D_b_get, _pcbnew.COLOR4D_b_set)
2373  __swig_setmethods__["a"] = _pcbnew.COLOR4D_a_set
2374  __swig_getmethods__["a"] = _pcbnew.COLOR4D_a_get
2375  if _newclass:
2376  a = _swig_property(_pcbnew.COLOR4D_a_get, _pcbnew.COLOR4D_a_set)
2377  __swig_destroy__ = _pcbnew.delete_COLOR4D
2378  __del__ = lambda self: None
2379 COLOR4D_swigregister = _pcbnew.COLOR4D_swigregister
2380 COLOR4D_swigregister(COLOR4D)
2381 
2383  """COLOR4D_GetNearestLegacyColor(COLOR4D aColor) -> EDA_COLOR_T"""
2384  return _pcbnew.COLOR4D_GetNearestLegacyColor(aColor)
2385 COLOR4D.UNSPECIFIED = _pcbnew.cvar.COLOR4D_UNSPECIFIED
2386 COLOR4D.WHITE = _pcbnew.cvar.COLOR4D_WHITE
2387 COLOR4D.BLACK = _pcbnew.cvar.COLOR4D_BLACK
2388 
2389 
2390 def __eq__(lhs, rhs):
2391  """__eq__(COLOR4D lhs, COLOR4D rhs) -> bool const"""
2392  return _pcbnew.__eq__(lhs, rhs)
2393 
2394 def __ne__(lhs, rhs):
2395  """__ne__(COLOR4D lhs, COLOR4D rhs) -> bool const"""
2396  return _pcbnew.__ne__(lhs, rhs)
2397 
2398 def __lshift__(aStream, aColor):
2399  """__lshift__(std::ostream & aStream, COLOR4D aColor) -> std::ostream &"""
2400  return _pcbnew.__lshift__(aStream, aColor)
2402  """Proxy of C++ COLORS_DESIGN_SETTINGS class."""
2403 
2404  __swig_setmethods__ = {}
2405  __setattr__ = lambda self, name, value: _swig_setattr(self, COLORS_DESIGN_SETTINGS, name, value)
2406  __swig_getmethods__ = {}
2407  __getattr__ = lambda self, name: _swig_getattr(self, COLORS_DESIGN_SETTINGS, name)
2408  __repr__ = _swig_repr
2409  __swig_setmethods__["m_LayersColors"] = _pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_set
2410  __swig_getmethods__["m_LayersColors"] = _pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_get
2411  if _newclass:
2412  m_LayersColors = _swig_property(_pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_get, _pcbnew.COLORS_DESIGN_SETTINGS_m_LayersColors_set)
2413 
2414  def __init__(self, aFrameType):
2415  """__init__(COLORS_DESIGN_SETTINGS self, FRAME_T aFrameType) -> COLORS_DESIGN_SETTINGS"""
2416  this = _pcbnew.new_COLORS_DESIGN_SETTINGS(aFrameType)
2417  try:
2418  self.this.append(this)
2419  except Exception:
2420  self.this = this
2421  __swig_destroy__ = _pcbnew.delete_COLORS_DESIGN_SETTINGS
2422  __del__ = lambda self: None
2423 
2424  def Load(self, aConfig):
2425  """Load(COLORS_DESIGN_SETTINGS self, wxConfigBase * aConfig)"""
2426  return _pcbnew.COLORS_DESIGN_SETTINGS_Load(self, aConfig)
2427 
2428 
2429  def Save(self, aConfig):
2430  """Save(COLORS_DESIGN_SETTINGS self, wxConfigBase * aConfig)"""
2431  return _pcbnew.COLORS_DESIGN_SETTINGS_Save(self, aConfig)
2432 
2433 
2434  def GetLayerColor(self, aLayer):
2435  """GetLayerColor(COLORS_DESIGN_SETTINGS self, LAYER_NUM aLayer) -> COLOR4D"""
2436  return _pcbnew.COLORS_DESIGN_SETTINGS_GetLayerColor(self, aLayer)
2437 
2438 
2439  def SetLayerColor(self, aLayer, aColor):
2440  """SetLayerColor(COLORS_DESIGN_SETTINGS self, LAYER_NUM aLayer, COLOR4D aColor)"""
2441  return _pcbnew.COLORS_DESIGN_SETTINGS_SetLayerColor(self, aLayer, aColor)
2442 
2443 
2444  def GetItemColor(self, aItemIdx):
2445  """GetItemColor(COLORS_DESIGN_SETTINGS self, int aItemIdx) -> COLOR4D"""
2446  return _pcbnew.COLORS_DESIGN_SETTINGS_GetItemColor(self, aItemIdx)
2447 
2448 
2449  def SetItemColor(self, aItemIdx, aColor):
2450  """SetItemColor(COLORS_DESIGN_SETTINGS self, int aItemIdx, COLOR4D aColor)"""
2451  return _pcbnew.COLORS_DESIGN_SETTINGS_SetItemColor(self, aItemIdx, aColor)
2452 
2453 
2454  def SetAllColorsAs(self, aColor):
2455  """SetAllColorsAs(COLORS_DESIGN_SETTINGS self, COLOR4D aColor)"""
2456  return _pcbnew.COLORS_DESIGN_SETTINGS_SetAllColorsAs(self, aColor)
2457 
2458 
2459  def SetLegacyMode(self, aMode):
2460  """SetLegacyMode(COLORS_DESIGN_SETTINGS self, bool aMode)"""
2461  return _pcbnew.COLORS_DESIGN_SETTINGS_SetLegacyMode(self, aMode)
2462 
2463 COLORS_DESIGN_SETTINGS_swigregister = _pcbnew.COLORS_DESIGN_SETTINGS_swigregister
2464 COLORS_DESIGN_SETTINGS_swigregister(COLORS_DESIGN_SETTINGS)
2465 
2467  """Proxy of C++ MARKER_BASE class."""
2468 
2469  __swig_setmethods__ = {}
2470  __setattr__ = lambda self, name, value: _swig_setattr(self, MARKER_BASE, name, value)
2471  __swig_getmethods__ = {}
2472  __getattr__ = lambda self, name: _swig_getattr(self, MARKER_BASE, name)
2473  __repr__ = _swig_repr
2474  MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
2475  MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
2476  MARKER_PCB = _pcbnew.MARKER_BASE_MARKER_PCB
2477  MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
2478  MARKER_SEVERITY_UNSPEC = _pcbnew.MARKER_BASE_MARKER_SEVERITY_UNSPEC
2479  MARKER_SEVERITY_INFO = _pcbnew.MARKER_BASE_MARKER_SEVERITY_INFO
2480  MARKER_SEVERITY_WARNING = _pcbnew.MARKER_BASE_MARKER_SEVERITY_WARNING
2481  MARKER_SEVERITY_ERROR = _pcbnew.MARKER_BASE_MARKER_SEVERITY_ERROR
2482  __swig_setmethods__["m_Pos"] = _pcbnew.MARKER_BASE_m_Pos_set
2483  __swig_getmethods__["m_Pos"] = _pcbnew.MARKER_BASE_m_Pos_get
2484  if _newclass:
2485  m_Pos = _swig_property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set)
2486 
2487  def __init__(self, *args):
2488  """
2489  __init__(MARKER_BASE self) -> MARKER_BASE
2490  __init__(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos, wxString bText, wxPoint bPos) -> MARKER_BASE
2491  __init__(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos) -> MARKER_BASE
2492  __init__(MARKER_BASE self, MARKER_BASE aMarker) -> MARKER_BASE
2493  """
2494  this = _pcbnew.new_MARKER_BASE(*args)
2495  try:
2496  self.this.append(this)
2497  except Exception:
2498  self.this = this
2499  __swig_destroy__ = _pcbnew.delete_MARKER_BASE
2500  __del__ = lambda self: None
2501 
2502  def DrawMarker(self, aPanel, aDC, aDrawMode, aOffset):
2503  """DrawMarker(MARKER_BASE self, EDA_DRAW_PANEL * aPanel, wxDC * aDC, GR_DRAWMODE aDrawMode, wxPoint aOffset)"""
2504  return _pcbnew.MARKER_BASE_DrawMarker(self, aPanel, aDC, aDrawMode, aOffset)
2505 
2506 
2507  def GetPos(self):
2508  """GetPos(MARKER_BASE self) -> wxPoint"""
2509  return _pcbnew.MARKER_BASE_GetPos(self)
2510 
2511 
2512  def SetColor(self, aColor):
2513  """SetColor(MARKER_BASE self, COLOR4D aColor)"""
2514  return _pcbnew.MARKER_BASE_SetColor(self, aColor)
2515 
2516 
2517  def SetErrorLevel(self, aErrorLevel):
2518  """SetErrorLevel(MARKER_BASE self, MARKER_BASE::MARKER_SEVERITY aErrorLevel)"""
2519  return _pcbnew.MARKER_BASE_SetErrorLevel(self, aErrorLevel)
2520 
2521 
2522  def GetErrorLevel(self):
2523  """GetErrorLevel(MARKER_BASE self) -> MARKER_BASE::MARKER_SEVERITY"""
2524  return _pcbnew.MARKER_BASE_GetErrorLevel(self)
2525 
2526 
2527  def SetMarkerType(self, aMarkerType):
2528  """SetMarkerType(MARKER_BASE self, enum MARKER_BASE::TYPEMARKER aMarkerType)"""
2529  return _pcbnew.MARKER_BASE_SetMarkerType(self, aMarkerType)
2530 
2531 
2532  def GetMarkerType(self):
2533  """GetMarkerType(MARKER_BASE self) -> enum MARKER_BASE::TYPEMARKER"""
2534  return _pcbnew.MARKER_BASE_GetMarkerType(self)
2535 
2536 
2537  def SetData(self, *args):
2538  """
2539  SetData(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos, wxString bText, wxPoint bPos)
2540  SetData(MARKER_BASE self, int aErrorCode, wxPoint aMarkerPos, wxString aText, wxPoint aPos)
2541  """
2542  return _pcbnew.MARKER_BASE_SetData(self, *args)
2543 
2544 
2545  def SetAuxiliaryData(self, aAuxiliaryText, aAuxiliaryPos):
2546  """SetAuxiliaryData(MARKER_BASE self, wxString aAuxiliaryText, wxPoint aAuxiliaryPos)"""
2547  return _pcbnew.MARKER_BASE_SetAuxiliaryData(self, aAuxiliaryText, aAuxiliaryPos)
2548 
2549 
2551  """SetShowNoCoordinate(MARKER_BASE self)"""
2552  return _pcbnew.MARKER_BASE_SetShowNoCoordinate(self)
2553 
2554 
2555  def GetReporter(self):
2556  """GetReporter(MARKER_BASE self) -> DRC_ITEM const &"""
2557  return _pcbnew.MARKER_BASE_GetReporter(self)
2558 
2559 
2560  def DisplayMarkerInfo(self, aFrame):
2561  """DisplayMarkerInfo(MARKER_BASE self, EDA_DRAW_FRAME * aFrame)"""
2562  return _pcbnew.MARKER_BASE_DisplayMarkerInfo(self, aFrame)
2563 
2564 
2565  def HitTestMarker(self, ref_pos):
2566  """HitTestMarker(MARKER_BASE self, wxPoint ref_pos) -> bool"""
2567  return _pcbnew.MARKER_BASE_HitTestMarker(self, ref_pos)
2568 
2569 
2571  """GetBoundingBoxMarker(MARKER_BASE self) -> EDA_RECT"""
2572  return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2573 
2574 MARKER_BASE_swigregister = _pcbnew.MARKER_BASE_swigregister
2575 MARKER_BASE_swigregister(MARKER_BASE)
2576 
2577 
2578 _pcbnew.CTL_OMIT_HIDE_swigconstant(_pcbnew)
2579 CTL_OMIT_HIDE = _pcbnew.CTL_OMIT_HIDE
2580 
2581 _pcbnew.GR_TEXT_HJUSTIFY_LEFT_swigconstant(_pcbnew)
2582 GR_TEXT_HJUSTIFY_LEFT = _pcbnew.GR_TEXT_HJUSTIFY_LEFT
2583 
2584 _pcbnew.GR_TEXT_HJUSTIFY_CENTER_swigconstant(_pcbnew)
2585 GR_TEXT_HJUSTIFY_CENTER = _pcbnew.GR_TEXT_HJUSTIFY_CENTER
2586 
2587 _pcbnew.GR_TEXT_HJUSTIFY_RIGHT_swigconstant(_pcbnew)
2588 GR_TEXT_HJUSTIFY_RIGHT = _pcbnew.GR_TEXT_HJUSTIFY_RIGHT
2589 
2590 _pcbnew.GR_TEXT_VJUSTIFY_TOP_swigconstant(_pcbnew)
2591 GR_TEXT_VJUSTIFY_TOP = _pcbnew.GR_TEXT_VJUSTIFY_TOP
2592 
2593 _pcbnew.GR_TEXT_VJUSTIFY_CENTER_swigconstant(_pcbnew)
2594 GR_TEXT_VJUSTIFY_CENTER = _pcbnew.GR_TEXT_VJUSTIFY_CENTER
2595 
2596 _pcbnew.GR_TEXT_VJUSTIFY_BOTTOM_swigconstant(_pcbnew)
2597 GR_TEXT_VJUSTIFY_BOTTOM = _pcbnew.GR_TEXT_VJUSTIFY_BOTTOM
2598 
2599 _pcbnew.FILLED_swigconstant(_pcbnew)
2600 FILLED = _pcbnew.FILLED
2601 
2602 _pcbnew.SKETCH_swigconstant(_pcbnew)
2603 SKETCH = _pcbnew.SKETCH
2604 
2605 _pcbnew.DEFAULT_SIZE_TEXT_swigconstant(_pcbnew)
2606 DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2607 
2608 _pcbnew.DIM_ANCRE_TEXTE_swigconstant(_pcbnew)
2609 DIM_ANCRE_TEXTE = _pcbnew.DIM_ANCRE_TEXTE
2611  """Proxy of C++ TEXT_EFFECTS class."""
2612 
2613  __swig_setmethods__ = {}
2614  __setattr__ = lambda self, name, value: _swig_setattr(self, TEXT_EFFECTS, name, value)
2615  __swig_getmethods__ = {}
2616  __getattr__ = lambda self, name: _swig_getattr(self, TEXT_EFFECTS, name)
2617  __repr__ = _swig_repr
2618 
2619  def __init__(self, aSetOfBits=0):
2620  """
2621  __init__(TEXT_EFFECTS self, int aSetOfBits=0) -> TEXT_EFFECTS
2622  __init__(TEXT_EFFECTS self) -> TEXT_EFFECTS
2623  """
2624  this = _pcbnew.new_TEXT_EFFECTS(aSetOfBits)
2625  try:
2626  self.this.append(this)
2627  except Exception:
2628  self.this = this
2629  __swig_setmethods__["bits"] = _pcbnew.TEXT_EFFECTS_bits_set
2630  __swig_getmethods__["bits"] = _pcbnew.TEXT_EFFECTS_bits_get
2631  if _newclass:
2632  bits = _swig_property(_pcbnew.TEXT_EFFECTS_bits_get, _pcbnew.TEXT_EFFECTS_bits_set)
2633  __swig_setmethods__["hjustify"] = _pcbnew.TEXT_EFFECTS_hjustify_set
2634  __swig_getmethods__["hjustify"] = _pcbnew.TEXT_EFFECTS_hjustify_get
2635  if _newclass:
2636  hjustify = _swig_property(_pcbnew.TEXT_EFFECTS_hjustify_get, _pcbnew.TEXT_EFFECTS_hjustify_set)
2637  __swig_setmethods__["vjustify"] = _pcbnew.TEXT_EFFECTS_vjustify_set
2638  __swig_getmethods__["vjustify"] = _pcbnew.TEXT_EFFECTS_vjustify_get
2639  if _newclass:
2640  vjustify = _swig_property(_pcbnew.TEXT_EFFECTS_vjustify_get, _pcbnew.TEXT_EFFECTS_vjustify_set)
2641  __swig_setmethods__["size"] = _pcbnew.TEXT_EFFECTS_size_set
2642  __swig_getmethods__["size"] = _pcbnew.TEXT_EFFECTS_size_get
2643  if _newclass:
2644  size = _swig_property(_pcbnew.TEXT_EFFECTS_size_get, _pcbnew.TEXT_EFFECTS_size_set)
2645  __swig_setmethods__["penwidth"] = _pcbnew.TEXT_EFFECTS_penwidth_set
2646  __swig_getmethods__["penwidth"] = _pcbnew.TEXT_EFFECTS_penwidth_get
2647  if _newclass:
2648  penwidth = _swig_property(_pcbnew.TEXT_EFFECTS_penwidth_get, _pcbnew.TEXT_EFFECTS_penwidth_set)
2649  __swig_setmethods__["angle"] = _pcbnew.TEXT_EFFECTS_angle_set
2650  __swig_getmethods__["angle"] = _pcbnew.TEXT_EFFECTS_angle_get
2651  if _newclass:
2652  angle = _swig_property(_pcbnew.TEXT_EFFECTS_angle_get, _pcbnew.TEXT_EFFECTS_angle_set)
2653  __swig_setmethods__["pos"] = _pcbnew.TEXT_EFFECTS_pos_set
2654  __swig_getmethods__["pos"] = _pcbnew.TEXT_EFFECTS_pos_get
2655  if _newclass:
2656  pos = _swig_property(_pcbnew.TEXT_EFFECTS_pos_get, _pcbnew.TEXT_EFFECTS_pos_set)
2657 
2658  def Bit(self, *args):
2659  """
2660  Bit(TEXT_EFFECTS self, int aBit, bool aValue)
2661  Bit(TEXT_EFFECTS self, int aBit) -> bool
2662  """
2663  return _pcbnew.TEXT_EFFECTS_Bit(self, *args)
2664 
2665  __swig_destroy__ = _pcbnew.delete_TEXT_EFFECTS
2666  __del__ = lambda self: None
2667 TEXT_EFFECTS_swigregister = _pcbnew.TEXT_EFFECTS_swigregister
2668 TEXT_EFFECTS_swigregister(TEXT_EFFECTS)
2669 
2671  """Proxy of C++ EDA_TEXT class."""
2672 
2673  __swig_setmethods__ = {}
2674  __setattr__ = lambda self, name, value: _swig_setattr(self, EDA_TEXT, name, value)
2675  __swig_getmethods__ = {}
2676  __getattr__ = lambda self, name: _swig_getattr(self, EDA_TEXT, name)
2677  __repr__ = _swig_repr
2678 
2679  def __init__(self, *args):
2680  """
2681  __init__(EDA_TEXT self, wxString text) -> EDA_TEXT
2682  __init__(EDA_TEXT self) -> EDA_TEXT
2683  """
2684  this = _pcbnew.new_EDA_TEXT(*args)
2685  try:
2686  self.this.append(this)
2687  except Exception:
2688  self.this = this
2689  __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2690  __del__ = lambda self: None
2691 
2692  def GetText(self):
2693  """GetText(EDA_TEXT self) -> wxString"""
2694  return _pcbnew.EDA_TEXT_GetText(self)
2695 
2696 
2697  def GetShownText(self):
2698  """GetShownText(EDA_TEXT self) -> wxString"""
2699  return _pcbnew.EDA_TEXT_GetShownText(self)
2700 
2701 
2703  """ShortenedShownText(EDA_TEXT self) -> wxString"""
2704  return _pcbnew.EDA_TEXT_ShortenedShownText(self)
2705 
2706 
2707  def SetText(self, aText):
2708  """SetText(EDA_TEXT self, wxString aText)"""
2709  return _pcbnew.EDA_TEXT_SetText(self, aText)
2710 
2711 
2712  def SetThickness(self, aNewThickness):
2713  """SetThickness(EDA_TEXT self, int aNewThickness)"""
2714  return _pcbnew.EDA_TEXT_SetThickness(self, aNewThickness)
2715 
2716 
2717  def GetThickness(self):
2718  """GetThickness(EDA_TEXT self) -> int"""
2719  return _pcbnew.EDA_TEXT_GetThickness(self)
2720 
2721 
2722  def SetTextAngle(self, aAngle):
2723  """SetTextAngle(EDA_TEXT self, double aAngle)"""
2724  return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2725 
2726 
2727  def GetTextAngle(self):
2728  """GetTextAngle(EDA_TEXT self) -> double"""
2729  return _pcbnew.EDA_TEXT_GetTextAngle(self)
2730 
2731 
2733  """GetTextAngleDegrees(EDA_TEXT self) -> double"""
2734  return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2735 
2736 
2738  """GetTextAngleRadians(EDA_TEXT self) -> double"""
2739  return _pcbnew.EDA_TEXT_GetTextAngleRadians(self)
2740 
2741 
2742  def SetItalic(self, isItalic):
2743  """SetItalic(EDA_TEXT self, bool isItalic)"""
2744  return _pcbnew.EDA_TEXT_SetItalic(self, isItalic)
2745 
2746 
2747  def IsItalic(self):
2748  """IsItalic(EDA_TEXT self) -> bool"""
2749  return _pcbnew.EDA_TEXT_IsItalic(self)
2750 
2751 
2752  def SetBold(self, aBold):
2753  """SetBold(EDA_TEXT self, bool aBold)"""
2754  return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2755 
2756 
2757  def IsBold(self):
2758  """IsBold(EDA_TEXT self) -> bool"""
2759  return _pcbnew.EDA_TEXT_IsBold(self)
2760 
2761 
2762  def SetVisible(self, aVisible):
2763  """SetVisible(EDA_TEXT self, bool aVisible)"""
2764  return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2765 
2766 
2767  def IsVisible(self):
2768  """IsVisible(EDA_TEXT self) -> bool"""
2769  return _pcbnew.EDA_TEXT_IsVisible(self)
2770 
2771 
2772  def SetMirrored(self, isMirrored):
2773  """SetMirrored(EDA_TEXT self, bool isMirrored)"""
2774  return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2775 
2776 
2777  def IsMirrored(self):
2778  """IsMirrored(EDA_TEXT self) -> bool"""
2779  return _pcbnew.EDA_TEXT_IsMirrored(self)
2780 
2781 
2782  def SetMultilineAllowed(self, aAllow):
2783  """SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2784  return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2785 
2786 
2788  """IsMultilineAllowed(EDA_TEXT self) -> bool"""
2789  return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2790 
2791 
2792  def GetHorizJustify(self):
2793  """GetHorizJustify(EDA_TEXT self) -> EDA_TEXT_HJUSTIFY_T"""
2794  return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2795 
2796 
2797  def GetVertJustify(self):
2798  """GetVertJustify(EDA_TEXT self) -> EDA_TEXT_VJUSTIFY_T"""
2799  return _pcbnew.EDA_TEXT_GetVertJustify(self)
2800 
2801 
2802  def SetHorizJustify(self, aType):
2803  """SetHorizJustify(EDA_TEXT self, EDA_TEXT_HJUSTIFY_T aType)"""
2804  return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2805 
2806 
2807  def SetVertJustify(self, aType):
2808  """SetVertJustify(EDA_TEXT self, EDA_TEXT_VJUSTIFY_T aType)"""
2809  return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2810 
2811 
2812  def SetEffects(self, aSrc):
2813  """SetEffects(EDA_TEXT self, EDA_TEXT aSrc)"""
2814  return _pcbnew.EDA_TEXT_SetEffects(self, aSrc)
2815 
2816 
2817  def SwapEffects(self, aTradingPartner):
2818  """SwapEffects(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2819  return _pcbnew.EDA_TEXT_SwapEffects(self, aTradingPartner)
2820 
2821 
2823  """IsDefaultFormatting(EDA_TEXT self) -> bool"""
2824  return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2825 
2826 
2827  def SetTextSize(self, aNewSize):
2828  """SetTextSize(EDA_TEXT self, wxSize aNewSize)"""
2829  return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize)
2830 
2831 
2832  def GetTextSize(self):
2833  """GetTextSize(EDA_TEXT self) -> wxSize"""
2834  return _pcbnew.EDA_TEXT_GetTextSize(self)
2835 
2836 
2837  def SetTextWidth(self, aWidth):
2838  """SetTextWidth(EDA_TEXT self, int aWidth)"""
2839  return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2840 
2841 
2842  def GetTextWidth(self):
2843  """GetTextWidth(EDA_TEXT self) -> int"""
2844  return _pcbnew.EDA_TEXT_GetTextWidth(self)
2845 
2846 
2847  def SetTextHeight(self, aHeight):
2848  """SetTextHeight(EDA_TEXT self, int aHeight)"""
2849  return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2850 
2851 
2852  def GetTextHeight(self):
2853  """GetTextHeight(EDA_TEXT self) -> int"""
2854  return _pcbnew.EDA_TEXT_GetTextHeight(self)
2855 
2856 
2857  def SetTextPos(self, aPoint):
2858  """SetTextPos(EDA_TEXT self, wxPoint aPoint)"""
2859  return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2860 
2861 
2862  def GetTextPos(self):
2863  """GetTextPos(EDA_TEXT self) -> wxPoint"""
2864  return _pcbnew.EDA_TEXT_GetTextPos(self)
2865 
2866 
2867  def SetTextX(self, aX):
2868  """SetTextX(EDA_TEXT self, int aX)"""
2869  return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2870 
2871 
2872  def SetTextY(self, aY):
2873  """SetTextY(EDA_TEXT self, int aY)"""
2874  return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2875 
2876 
2877  def Offset(self, aOffset):
2878  """Offset(EDA_TEXT self, wxPoint aOffset)"""
2879  return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2880 
2881 
2882  def Empty(self):
2883  """Empty(EDA_TEXT self)"""
2884  return _pcbnew.EDA_TEXT_Empty(self)
2885 
2886 
2887  def Draw(self, *args):
2888  """
2889  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)
2890  Draw(EDA_TEXT self, EDA_RECT aClipBox, wxDC * aDC, wxPoint aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode, EDA_DRAW_MODE_T aDisplay_mode=FILLED)
2891  Draw(EDA_TEXT self, EDA_RECT aClipBox, wxDC * aDC, wxPoint aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode)
2892  """
2893  return _pcbnew.EDA_TEXT_Draw(self, *args)
2894 
2895 
2896  def TransformTextShapeToSegmentList(self, aCornerBuffer):
2897  """TransformTextShapeToSegmentList(EDA_TEXT self, wxPoint_Vector aCornerBuffer)"""
2898  return _pcbnew.EDA_TEXT_TransformTextShapeToSegmentList(self, aCornerBuffer)
2899 
2900 
2901  def TextHitTest(self, *args):
2902  """
2903  TextHitTest(EDA_TEXT self, wxPoint aPoint, int aAccuracy=0) -> bool
2904  TextHitTest(EDA_TEXT self, wxPoint aPoint) -> bool
2905  TextHitTest(EDA_TEXT self, EDA_RECT aRect, bool aContains=False, int aAccuracy=0) -> bool
2906  TextHitTest(EDA_TEXT self, EDA_RECT aRect, bool aContains=False) -> bool
2907  TextHitTest(EDA_TEXT self, EDA_RECT aRect) -> bool
2908  """
2909  return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
2910 
2911 
2912  def LenSize(self, aLine):
2913  """LenSize(EDA_TEXT self, wxString aLine) -> int"""
2914  return _pcbnew.EDA_TEXT_LenSize(self, aLine)
2915 
2916 
2917  def GetTextBox(self, aLine=-1, aThickness=-1, aInvertY=False):
2918  """
2919  GetTextBox(EDA_TEXT self, int aLine=-1, int aThickness=-1, bool aInvertY=False) -> EDA_RECT
2920  GetTextBox(EDA_TEXT self, int aLine=-1, int aThickness=-1) -> EDA_RECT
2921  GetTextBox(EDA_TEXT self, int aLine=-1) -> EDA_RECT
2922  GetTextBox(EDA_TEXT self) -> EDA_RECT
2923  """
2924  return _pcbnew.EDA_TEXT_GetTextBox(self, aLine, aThickness, aInvertY)
2925 
2926 
2927  def GetInterline(self, aTextThickness=-1):
2928  """
2929  GetInterline(EDA_TEXT self, int aTextThickness=-1) -> int
2930  GetInterline(EDA_TEXT self) -> int
2931  """
2932  return _pcbnew.EDA_TEXT_GetInterline(self, aTextThickness)
2933 
2934 
2935  def GetTextStyleName(self):
2936  """GetTextStyleName(EDA_TEXT self) -> wxString"""
2937  return _pcbnew.EDA_TEXT_GetTextStyleName(self)
2938 
2939 
2940  def GetPositionsOfLinesOfMultilineText(self, aPositions, aLineCount):
2941  """GetPositionsOfLinesOfMultilineText(EDA_TEXT self, wxPoint_Vector aPositions, int aLineCount)"""
2942  return _pcbnew.EDA_TEXT_GetPositionsOfLinesOfMultilineText(self, aPositions, aLineCount)
2943 
2944 
2945  def Format(self, aFormatter, aNestLevel, aControlBits):
2946  """Format(EDA_TEXT self, OUTPUTFORMATTER * aFormatter, int aNestLevel, int aControlBits)"""
2947  return _pcbnew.EDA_TEXT_Format(self, aFormatter, aNestLevel, aControlBits)
2948 
2949 EDA_TEXT_swigregister = _pcbnew.EDA_TEXT_swigregister
2950 EDA_TEXT_swigregister(EDA_TEXT)
2951 
2953  """Proxy of C++ std::vector<(int)> class."""
2954 
2955  __swig_setmethods__ = {}
2956  __setattr__ = lambda self, name, value: _swig_setattr(self, intVector, name, value)
2957  __swig_getmethods__ = {}
2958  __getattr__ = lambda self, name: _swig_getattr(self, intVector, name)
2959  __repr__ = _swig_repr
2960 
2961  def iterator(self):
2962  """iterator(intVector self) -> SwigPyIterator"""
2963  return _pcbnew.intVector_iterator(self)
2964 
2965  def __iter__(self):
2966  return self.iterator()
2967 
2968  def __nonzero__(self):
2969  """__nonzero__(intVector self) -> bool"""
2970  return _pcbnew.intVector___nonzero__(self)
2971 
2972 
2973  def __bool__(self):
2974  """__bool__(intVector self) -> bool"""
2975  return _pcbnew.intVector___bool__(self)
2976 
2977 
2978  def __len__(self):
2979  """__len__(intVector self) -> std::vector< int >::size_type"""
2980  return _pcbnew.intVector___len__(self)
2981 
2982 
2983  def __getslice__(self, i, j):
2984  """__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
2985  return _pcbnew.intVector___getslice__(self, i, j)
2986 
2987 
2988  def __setslice__(self, *args):
2989  """
2990  __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
2991  __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
2992  """
2993  return _pcbnew.intVector___setslice__(self, *args)
2994 
2995 
2996  def __delslice__(self, i, j):
2997  """__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
2998  return _pcbnew.intVector___delslice__(self, i, j)
2999 
3000 
3001  def __delitem__(self, *args):
3002  """
3003  __delitem__(intVector self, std::vector< int >::difference_type i)
3004  __delitem__(intVector self, PySliceObject * slice)
3005  """
3006  return _pcbnew.intVector___delitem__(self, *args)
3007 
3008 
3009  def __getitem__(self, *args):
3010  """
3011  __getitem__(intVector self, PySliceObject * slice) -> intVector
3012  __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
3013  """
3014  return _pcbnew.intVector___getitem__(self, *args)
3015 
3016 
3017  def __setitem__(self, *args):
3018  """
3019  __setitem__(intVector self, PySliceObject * slice, intVector v)
3020  __setitem__(intVector self, PySliceObject * slice)
3021  __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
3022  """
3023  return _pcbnew.intVector___setitem__(self, *args)
3024 
3025 
3026  def pop(self):
3027  """pop(intVector self) -> std::vector< int >::value_type"""
3028  return _pcbnew.intVector_pop(self)
3029 
3030 
3031  def append(self, x):
3032  """append(intVector self, std::vector< int >::value_type const & x)"""
3033  return _pcbnew.intVector_append(self, x)
3034 
3035 
3036  def empty(self):
3037  """empty(intVector self) -> bool"""
3038  return _pcbnew.intVector_empty(self)
3039 
3040 
3041  def size(self):
3042  """size(intVector self) -> std::vector< int >::size_type"""
3043  return _pcbnew.intVector_size(self)
3044 
3045 
3046  def swap(self, v):
3047  """swap(intVector self, intVector v)"""
3048  return _pcbnew.intVector_swap(self, v)
3049 
3050 
3051  def begin(self):
3052  """begin(intVector self) -> std::vector< int >::iterator"""
3053  return _pcbnew.intVector_begin(self)
3054 
3055 
3056  def end(self):
3057  """end(intVector self) -> std::vector< int >::iterator"""
3058  return _pcbnew.intVector_end(self)
3059 
3060 
3061  def rbegin(self):
3062  """rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
3063  return _pcbnew.intVector_rbegin(self)
3064 
3065 
3066  def rend(self):
3067  """rend(intVector self) -> std::vector< int >::reverse_iterator"""
3068  return _pcbnew.intVector_rend(self)
3069 
3070 
3071  def clear(self):
3072  """clear(intVector self)"""
3073  return _pcbnew.intVector_clear(self)
3074 
3075 
3076  def get_allocator(self):
3077  """get_allocator(intVector self) -> std::vector< int >::allocator_type"""
3078  return _pcbnew.intVector_get_allocator(self)
3079 
3080 
3081  def pop_back(self):
3082  """pop_back(intVector self)"""
3083  return _pcbnew.intVector_pop_back(self)
3084 
3085 
3086  def erase(self, *args):
3087  """
3088  erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
3089  erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
3090  """
3091  return _pcbnew.intVector_erase(self, *args)
3092 
3093 
3094  def __init__(self, *args):
3095  """
3096  __init__(std::vector<(int)> self) -> intVector
3097  __init__(std::vector<(int)> self, intVector arg2) -> intVector
3098  __init__(std::vector<(int)> self, std::vector< int >::size_type size) -> intVector
3099  __init__(std::vector<(int)> self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
3100  """
3101  this = _pcbnew.new_intVector(*args)
3102  try:
3103  self.this.append(this)
3104  except Exception:
3105  self.this = this
3106 
3107  def push_back(self, x):
3108  """push_back(intVector self, std::vector< int >::value_type const & x)"""
3109  return _pcbnew.intVector_push_back(self, x)
3110 
3111 
3112  def front(self):
3113  """front(intVector self) -> std::vector< int >::value_type const &"""
3114  return _pcbnew.intVector_front(self)
3115 
3116 
3117  def back(self):
3118  """back(intVector self) -> std::vector< int >::value_type const &"""
3119  return _pcbnew.intVector_back(self)
3120 
3121 
3122  def assign(self, n, x):
3123  """assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
3124  return _pcbnew.intVector_assign(self, n, x)
3125 
3126 
3127  def resize(self, *args):
3128  """
3129  resize(intVector self, std::vector< int >::size_type new_size)
3130  resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
3131  """
3132  return _pcbnew.intVector_resize(self, *args)
3133 
3134 
3135  def insert(self, *args):
3136  """
3137  insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
3138  insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
3139  """
3140  return _pcbnew.intVector_insert(self, *args)
3141 
3142 
3143  def reserve(self, n):
3144  """reserve(intVector self, std::vector< int >::size_type n)"""
3145  return _pcbnew.intVector_reserve(self, n)
3146 
3147 
3148  def capacity(self):
3149  """capacity(intVector self) -> std::vector< int >::size_type"""
3150  return _pcbnew.intVector_capacity(self)
3151 
3152  __swig_destroy__ = _pcbnew.delete_intVector
3153  __del__ = lambda self: None
3154 intVector_swigregister = _pcbnew.intVector_swigregister
3155 intVector_swigregister(intVector)
3156 
3158  """Proxy of C++ std::map<(std::string,UTF8)> class."""
3159 
3160  __swig_setmethods__ = {}
3161  __setattr__ = lambda self, name, value: _swig_setattr(self, str_utf8_Map, name, value)
3162  __swig_getmethods__ = {}
3163  __getattr__ = lambda self, name: _swig_getattr(self, str_utf8_Map, name)
3164  __repr__ = _swig_repr
3165 
3166  def iterator(self):
3167  """iterator(str_utf8_Map self) -> SwigPyIterator"""
3168  return _pcbnew.str_utf8_Map_iterator(self)
3169 
3170  def __iter__(self):
3171  return self.iterator()
3172 
3173  def __nonzero__(self):
3174  """__nonzero__(str_utf8_Map self) -> bool"""
3175  return _pcbnew.str_utf8_Map___nonzero__(self)
3176 
3177 
3178  def __bool__(self):
3179  """__bool__(str_utf8_Map self) -> bool"""
3180  return _pcbnew.str_utf8_Map___bool__(self)
3181 
3182 
3183  def __len__(self):
3184  """__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3185  return _pcbnew.str_utf8_Map___len__(self)
3186 
3187  def __iter__(self):
3188  return self.key_iterator()
3189  def iterkeys(self):
3190  return self.key_iterator()
3191  def itervalues(self):
3192  return self.value_iterator()
3193  def iteritems(self):
3194  return self.iterator()
3195 
3196  def __getitem__(self, key):
3197  """__getitem__(str_utf8_Map self, string key) -> UTF8"""
3198  return _pcbnew.str_utf8_Map___getitem__(self, key)
3199 
3200 
3201  def __delitem__(self, key):
3202  """__delitem__(str_utf8_Map self, string key)"""
3203  return _pcbnew.str_utf8_Map___delitem__(self, key)
3204 
3205 
3206  def has_key(self, key):
3207  """has_key(str_utf8_Map self, string key) -> bool"""
3208  return _pcbnew.str_utf8_Map_has_key(self, key)
3209 
3210 
3211  def keys(self):
3212  """keys(str_utf8_Map self) -> PyObject *"""
3213  return _pcbnew.str_utf8_Map_keys(self)
3214 
3215 
3216  def values(self):
3217  """values(str_utf8_Map self) -> PyObject *"""
3218  return _pcbnew.str_utf8_Map_values(self)
3219 
3220 
3221  def items(self):
3222  """items(str_utf8_Map self) -> PyObject *"""
3223  return _pcbnew.str_utf8_Map_items(self)
3224 
3225 
3226  def __contains__(self, key):
3227  """__contains__(str_utf8_Map self, string key) -> bool"""
3228  return _pcbnew.str_utf8_Map___contains__(self, key)
3229 
3230 
3231  def key_iterator(self):
3232  """key_iterator(str_utf8_Map self) -> SwigPyIterator"""
3233  return _pcbnew.str_utf8_Map_key_iterator(self)
3234 
3235 
3236  def value_iterator(self):
3237  """value_iterator(str_utf8_Map self) -> SwigPyIterator"""
3238  return _pcbnew.str_utf8_Map_value_iterator(self)
3239 
3240 
3241  def __setitem__(self, *args):
3242  """
3243  __setitem__(str_utf8_Map self, string key)
3244  __setitem__(str_utf8_Map self, string key, UTF8 x)
3245  """
3246  return _pcbnew.str_utf8_Map___setitem__(self, *args)
3247 
3248 
3249  def asdict(self):
3250  """asdict(str_utf8_Map self) -> PyObject *"""
3251  return _pcbnew.str_utf8_Map_asdict(self)
3252 
3253 
3254  def __init__(self, *args):
3255  """
3256  __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
3257  __init__(std::map<(std::string,UTF8)> self) -> str_utf8_Map
3258  __init__(std::map<(std::string,UTF8)> self, str_utf8_Map arg2) -> str_utf8_Map
3259  """
3260  this = _pcbnew.new_str_utf8_Map(*args)
3261  try:
3262  self.this.append(this)
3263  except Exception:
3264  self.this = this
3265 
3266  def empty(self):
3267  """empty(str_utf8_Map self) -> bool"""
3268  return _pcbnew.str_utf8_Map_empty(self)
3269 
3270 
3271  def size(self):
3272  """size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3273  return _pcbnew.str_utf8_Map_size(self)
3274 
3275 
3276  def swap(self, v):
3277  """swap(str_utf8_Map self, str_utf8_Map v)"""
3278  return _pcbnew.str_utf8_Map_swap(self, v)
3279 
3280 
3281  def begin(self):
3282  """begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3283  return _pcbnew.str_utf8_Map_begin(self)
3284 
3285 
3286  def end(self):
3287  """end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3288  return _pcbnew.str_utf8_Map_end(self)
3289 
3290 
3291  def rbegin(self):
3292  """rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
3293  return _pcbnew.str_utf8_Map_rbegin(self)
3294 
3295 
3296  def rend(self):
3297  """rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
3298  return _pcbnew.str_utf8_Map_rend(self)
3299 
3300 
3301  def clear(self):
3302  """clear(str_utf8_Map self)"""
3303  return _pcbnew.str_utf8_Map_clear(self)
3304 
3305 
3306  def get_allocator(self):
3307  """get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
3308  return _pcbnew.str_utf8_Map_get_allocator(self)
3309 
3310 
3311  def count(self, x):
3312  """count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3313  return _pcbnew.str_utf8_Map_count(self, x)
3314 
3315 
3316  def erase(self, *args):
3317  """
3318  erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
3319  erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
3320  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)
3321  """
3322  return _pcbnew.str_utf8_Map_erase(self, *args)
3323 
3324 
3325  def find(self, x):
3326  """find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3327  return _pcbnew.str_utf8_Map_find(self, x)
3328 
3329 
3330  def lower_bound(self, x):
3331  """lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3332  return _pcbnew.str_utf8_Map_lower_bound(self, x)
3333 
3334 
3335  def upper_bound(self, x):
3336  """upper_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3337  return _pcbnew.str_utf8_Map_upper_bound(self, x)
3338 
3339  __swig_destroy__ = _pcbnew.delete_str_utf8_Map
3340  __del__ = lambda self: None
3341 str_utf8_Map_swigregister = _pcbnew.str_utf8_Map_swigregister
3342 str_utf8_Map_swigregister(str_utf8_Map)
3343 
3345  """Proxy of C++ std::vector<(enum PCB_LAYER_ID)> class."""
3346 
3347  __swig_setmethods__ = {}
3348  __setattr__ = lambda self, name, value: _swig_setattr(self, base_seqVect, name, value)
3349  __swig_getmethods__ = {}
3350  __getattr__ = lambda self, name: _swig_getattr(self, base_seqVect, name)
3351  __repr__ = _swig_repr
3352 
3353  def iterator(self):
3354  """iterator(base_seqVect self) -> SwigPyIterator"""
3355  return _pcbnew.base_seqVect_iterator(self)
3356 
3357  def __iter__(self):
3358  return self.iterator()
3359 
3360  def __nonzero__(self):
3361  """__nonzero__(base_seqVect self) -> bool"""
3362  return _pcbnew.base_seqVect___nonzero__(self)
3363 
3364 
3365  def __bool__(self):
3366  """__bool__(base_seqVect self) -> bool"""
3367  return _pcbnew.base_seqVect___bool__(self)
3368 
3369 
3370  def __len__(self):
3371  """__len__(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
3372  return _pcbnew.base_seqVect___len__(self)
3373 
3374 
3375  def __getslice__(self, i, j):
3376  """__getslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j) -> base_seqVect"""
3377  return _pcbnew.base_seqVect___getslice__(self, i, j)
3378 
3379 
3380  def __setslice__(self, *args):
3381  """
3382  __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)
3383  __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)
3384  """
3385  return _pcbnew.base_seqVect___setslice__(self, *args)
3386 
3387 
3388  def __delslice__(self, i, j):
3389  """__delslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)"""
3390  return _pcbnew.base_seqVect___delslice__(self, i, j)
3391 
3392 
3393  def __delitem__(self, *args):
3394  """
3395  __delitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i)
3396  __delitem__(base_seqVect self, PySliceObject * slice)
3397  """
3398  return _pcbnew.base_seqVect___delitem__(self, *args)
3399 
3400 
3401  def __getitem__(self, *args):
3402  """
3403  __getitem__(base_seqVect self, PySliceObject * slice) -> base_seqVect
3404  __getitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i) -> std::vector< enum PCB_LAYER_ID >::value_type const &
3405  """
3406  return _pcbnew.base_seqVect___getitem__(self, *args)
3407 
3408 
3409  def __setitem__(self, *args):
3410  """
3411  __setitem__(base_seqVect self, PySliceObject * slice, base_seqVect v)
3412  __setitem__(base_seqVect self, PySliceObject * slice)
3413  __setitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::value_type const & x)
3414  """
3415  return _pcbnew.base_seqVect___setitem__(self, *args)
3416 
3417 
3418  def pop(self):
3419  """pop(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type"""
3420  return _pcbnew.base_seqVect_pop(self)
3421 
3422 
3423  def append(self, x):
3424  """append(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
3425  return _pcbnew.base_seqVect_append(self, x)
3426 
3427 
3428  def empty(self):
3429  """empty(base_seqVect self) -> bool"""
3430  return _pcbnew.base_seqVect_empty(self)
3431 
3432 
3433  def size(self):
3434  """size(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
3435  return _pcbnew.base_seqVect_size(self)
3436 
3437 
3438  def swap(self, v):
3439  """swap(base_seqVect self, base_seqVect v)"""
3440  return _pcbnew.base_seqVect_swap(self, v)
3441 
3442 
3443  def begin(self):
3444  """begin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
3445  return _pcbnew.base_seqVect_begin(self)
3446 
3447 
3448  def end(self):
3449  """end(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
3450  return _pcbnew.base_seqVect_end(self)
3451 
3452 
3453  def rbegin(self):
3454  """rbegin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
3455  return _pcbnew.base_seqVect_rbegin(self)
3456 
3457 
3458  def rend(self):
3459  """rend(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
3460  return _pcbnew.base_seqVect_rend(self)
3461 
3462 
3463  def clear(self):
3464  """clear(base_seqVect self)"""
3465  return _pcbnew.base_seqVect_clear(self)
3466 
3467 
3468  def get_allocator(self):
3469  """get_allocator(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::allocator_type"""
3470  return _pcbnew.base_seqVect_get_allocator(self)
3471 
3472 
3473  def pop_back(self):
3474  """pop_back(base_seqVect self)"""
3475  return _pcbnew.base_seqVect_pop_back(self)
3476 
3477 
3478  def erase(self, *args):
3479  """
3480  erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos) -> std::vector< enum PCB_LAYER_ID >::iterator
3481  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
3482  """
3483  return _pcbnew.base_seqVect_erase(self, *args)
3484 
3485 
3486  def __init__(self, *args):
3487  """
3488  __init__(std::vector<(enum PCB_LAYER_ID)> self) -> base_seqVect
3489  __init__(std::vector<(enum PCB_LAYER_ID)> self, base_seqVect arg2) -> base_seqVect
3490  __init__(std::vector<(enum PCB_LAYER_ID)> self, std::vector< enum PCB_LAYER_ID >::size_type size) -> base_seqVect
3491  __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
3492  """
3493  this = _pcbnew.new_base_seqVect(*args)
3494  try:
3495  self.this.append(this)
3496  except Exception:
3497  self.this = this
3498 
3499  def push_back(self, x):
3500  """push_back(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
3501  return _pcbnew.base_seqVect_push_back(self, x)
3502 
3503 
3504  def front(self):
3505  """front(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
3506  return _pcbnew.base_seqVect_front(self)
3507 
3508 
3509  def back(self):
3510  """back(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
3511  return _pcbnew.base_seqVect_back(self)
3512 
3513 
3514  def assign(self, n, x):
3515  """assign(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
3516  return _pcbnew.base_seqVect_assign(self, n, x)
3517 
3518 
3519  def resize(self, *args):
3520  """
3521  resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size)
3522  resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size, std::vector< enum PCB_LAYER_ID >::value_type const & x)
3523  """
3524  return _pcbnew.base_seqVect_resize(self, *args)
3525 
3526 
3527  def insert(self, *args):
3528  """
3529  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
3530  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)
3531  """
3532  return _pcbnew.base_seqVect_insert(self, *args)
3533 
3534 
3535  def reserve(self, n):
3536  """reserve(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n)"""
3537  return _pcbnew.base_seqVect_reserve(self, n)
3538 
3539 
3540  def capacity(self):
3541  """capacity(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
3542  return _pcbnew.base_seqVect_capacity(self)
3543 
3544  __swig_destroy__ = _pcbnew.delete_base_seqVect
3545  __del__ = lambda self: None
3546 base_seqVect_swigregister = _pcbnew.base_seqVect_swigregister
3547 base_seqVect_swigregister(base_seqVect)
3548 
3549 
3550 
3551 KICAD_PLUGINS={} # the list of loaded footprint wizards
3552 
3553 """ the list of not loaded python scripts
3554  (usually because there is a syntax error in python script)
3555  this is the python script full filenames list.
3556  filenames are separated by '\n'
3557 """
3558 NOT_LOADED_WIZARDS=""
3559 
3560 """ the list of paths used to search python scripts.
3561  Stored here to be displayed on request in Pcbnew
3562  paths are separated by '\n'
3563 """
3564 PLUGIN_DIRECTORIES_SEARCH=""
3565 
3566 """ the trace of errors during execution of footprint wizards scripts
3567 """
3568 FULL_BACK_TRACE=""
3569 
3571  global NOT_LOADED_WIZARDS
3572  return NOT_LOADED_WIZARDS
3573 
3575  global PLUGIN_DIRECTORIES_SEARCH
3576  return PLUGIN_DIRECTORIES_SEARCH
3577 
3579  global FULL_BACK_TRACE
3580  return FULL_BACK_TRACE
3581 
3582 
3583 def LoadOnePlugin(Dirname, ModuleName):
3584  """
3585  Load the plugin file ModuleName found in folder Dirname.
3586  If this file cannot be loaded, its name is stored in failed_wizards_list
3587  and the error trace is stored in FULL_BACK_TRACE
3588  """
3589  import os
3590  import sys
3591  import traceback
3592 
3593  global NOT_LOADED_WIZARDS
3594  global FULL_BACK_TRACE
3595 
3596  module_filename = os.path.join(Dirname, ModuleName)
3597 
3598  try: # If there is an error loading the script, skip it
3599  mtime = os.path.getmtime(module_filename)
3600 
3601  if KICAD_PLUGINS.has_key(ModuleName):
3602  plugin = KICAD_PLUGINS[ModuleName]
3603 
3604  if not plugin["modification_time"] == mtime:
3605  mod = reload(plugin["ModuleName"])
3606  plugin["modification_time"] = mtime
3607  else:
3608  mod = plugin["ModuleName"]
3609  else:
3610  mod = __import__(ModuleName[:-3], locals(), globals() )
3611 
3612  KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
3613  "modification_time":mtime,
3614  "ModuleName":mod }
3615 
3616  except:
3617  if NOT_LOADED_WIZARDS != "" :
3618  NOT_LOADED_WIZARDS += "\n"
3619  NOT_LOADED_WIZARDS += module_filename
3620  FULL_BACK_TRACE += traceback.format_exc(sys.exc_info())
3621  pass
3622 
3623 
3624 
3625 def LoadOneSubdirPlugin(Dirname, SubDirname):
3626  """
3627  Load the plugins found in folder Dirname/SubDirname, by loading __ini__.py file.
3628  If files cannot be loaded, its name is stored in failed_wizards_list
3629  and the error trace is stored in FULL_BACK_TRACE
3630  """
3631  import os
3632  import sys
3633  import traceback
3634 
3635  global NOT_LOADED_WIZARDS
3636  global FULL_BACK_TRACE
3637 
3638  fullPath = os.path.join(Dirname,SubDirname)
3639 
3640  if os.path.isdir(fullPath):
3641  """
3642  Skip subdir which does not contain __init__.py, becuase if can be
3643  a non python subdir (can be a subdir for .xsl plugins for instance)
3644  """
3645  if os.path.exists( os.path.join(fullPath, '__init__.py') ):
3646  try: # If there is an error loading the script, skip it
3647  __import__(SubDirname, locals(), globals())
3648 
3649  except:
3650  if NOT_LOADED_WIZARDS != "" :
3651  NOT_LOADED_WIZARDS += "\n"
3652  NOT_LOADED_WIZARDS += fullPath
3653  FULL_BACK_TRACE += traceback.format_exc(sys.exc_info())
3654  pass
3655 
3656  else:
3657  if NOT_LOADED_WIZARDS != "" :
3658  NOT_LOADED_WIZARDS += "\n"
3659  NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
3660 
3661 
3662 def LoadPlugins(bundlepath=None):
3663  """
3664  Initialise Scripting/Plugin python environment and load plugins.
3665 
3666  Arguments:
3667  bundlepath -- The path to the bundled scripts.
3668  The bundled Plugins are relative to this path, in the
3669  "plugins" subdirectory.
3670  WARNING: bundlepath must use '/' as path separator, and not '\'
3671  because it creates issues:
3672  \n and \r are seen as a escaped seq when passing this string to this method
3673  I am thinking this is due to the fact LoadPlugins is called from C++ code by
3674  PyRun_SimpleString()
3675 
3676  NOTE: These are all of the possible "default" search paths for kicad
3677  python scripts. These paths will ONLY be added to the python
3678  search path ONLY IF they already exist.
3679 
3680  The Scripts bundled with the KiCad installation:
3681  <bundlepath>/
3682  <bundlepath>/plugins/
3683 
3684  The Scripts relative to the KiCad search path environment variable:
3685  [KICAD_PATH]/scripting/
3686  [KICAD_PATH]/scripting/plugins/
3687 
3688  The Scripts relative to the KiCad Users configuration:
3689  <kicad_config_path>/scripting/
3690  <kicad_config_path>/scripting/plugins/
3691 
3692  And on Linux ONLY, extra paths relative to the users home directory:
3693  ~/.kicad_plugins/
3694  ~/.kicad/scripting/
3695  ~/.kicad/scripting/plugins/
3696  """
3697  import os
3698  import sys
3699  import traceback
3700  import pcbnew
3701 
3702  kicad_path = os.environ.get('KICAD_PATH')
3703  config_path = pcbnew.GetKicadConfigPath()
3704  plugin_directories=[]
3705 
3706  """
3707  To be consistent with others paths, on windows, convert the unix '/' separator
3708  to the windows separator, although using '/' works
3709  """
3710  if sys.platform.startswith('win32'):
3711  bundlepath = bundlepath.replace("/","\\")
3712 
3713  if bundlepath:
3714  plugin_directories.append(bundlepath)
3715  plugin_directories.append(os.path.join(bundlepath, 'plugins'))
3716 
3717  if kicad_path:
3718  plugin_directories.append(os.path.join(kicad_path, 'scripting'))
3719  plugin_directories.append(os.path.join(kicad_path, 'scripting', 'plugins'))
3720 
3721  if config_path:
3722  plugin_directories.append(os.path.join(config_path, 'scripting'))
3723  plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
3724 
3725  if sys.platform.startswith('linux'):
3726  plugin_directories.append(os.path.join(os.environ['HOME'],'.kicad_plugins'))
3727  plugin_directories.append(os.path.join(os.environ['HOME'],'.kicad','scripting'))
3728  plugin_directories.append(os.path.join(os.environ['HOME'],'.kicad','scripting','plugins'))
3729 
3730  global PLUGIN_DIRECTORIES_SEARCH
3731  PLUGIN_DIRECTORIES_SEARCH=""
3732  for plugins_dir in plugin_directories: # save search path list for later use
3733  if PLUGIN_DIRECTORIES_SEARCH != "" :
3734  PLUGIN_DIRECTORIES_SEARCH += "\n"
3735  PLUGIN_DIRECTORIES_SEARCH += plugins_dir
3736 
3737  global FULL_BACK_TRACE
3738  FULL_BACK_TRACE="" # clear any existing trace
3739 
3740  global NOT_LOADED_WIZARDS
3741  NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
3742 
3743  global KICAD_PLUGINS
3744 
3745  for plugins_dir in plugin_directories:
3746  if not os.path.isdir(plugins_dir):
3747  continue
3748 
3749  sys.path.append(plugins_dir)
3750 
3751  for module in os.listdir(plugins_dir):
3752  if os.path.isdir(os.path.join(plugins_dir,module)):
3753  LoadOneSubdirPlugin(plugins_dir, module)
3754  continue
3755 
3756  if module == '__init__.py' or module[-3:] != '.py':
3757  continue
3758 
3759  LoadOnePlugin(plugins_dir, module);
3760 
3761 
3763  def __init__(self):
3764  pass
3765 
3766  def register(self):
3767  if isinstance(self,FilePlugin):
3768  pass # register to file plugins in C++
3769 
3770  if isinstance(self,FootprintWizardPlugin):
3771  PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
3772  return
3773 
3774  if isinstance(self,ActionPlugin):
3775  PYTHON_ACTION_PLUGINS.register_action(self)
3776  return
3777 
3778  return
3779 
3780  def deregister(self):
3781  if isinstance(self,FilePlugin):
3782  pass # deregister to file plugins in C++
3783 
3784  if isinstance(self,FootprintWizardPlugin):
3785  PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
3786  return
3787 
3788  if isinstance(self,ActionPlugin):
3789  PYTHON_ACTION_PLUGINS.deregister_action(self)
3790  return
3791 
3792  return
3793 
3794 
3796  def __init__(self):
3797  KiCadPlugin.__init__(self)
3798 
3799 
3800 from math import ceil, floor, sqrt
3801 
3802 uMM = "mm" # Millimetres
3803 uMils = "mils" # Mils
3804 uFloat = "float" # Natural number units (dimensionless)
3805 uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
3806 uBool = "bool" # Boolean value
3807 uRadians = "radians" # Angular units (radians)
3808 uDegrees = "degrees" # Angular units (degrees)
3809 uPercent = "%" # Percent (0% -> 100%)
3810 uString = "string" # Raw string
3811 
3812 uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
3813 uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
3814 
3816  _true = ['true','t','y','yes','on','1',1,]
3817  _false = ['false','f','n','no','off','0',0,'',None]
3818 
3819  _bools = _true + _false
3820 
3821  def __init__(self, page, name, units, default, **kwarg):
3822  self.page = page
3823  self.name = name
3824  self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
3825  self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
3826 
3827  if units.lower() in uUnits:
3828  self.units = units.lower()
3829  elif units.lower() == 'percent':
3830  self.units = uPercent
3831  elif type(units) in [list, tuple]: # Convert a list of options into a single string
3832  self.units = ",".join([str(el).strip() for el in units])
3833  else:
3834  self.units = units
3835 
3836  self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
3837  self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
3838  self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
3839 
3840  self.SetValue(default)
3841  self.default = self.raw_value # Save value as default
3842 
3843  def ClearErrors(self):
3844  self.error_list = []
3845 
3846  def AddError(self, err, info=None):
3847 
3848  if err in self.error_list: # prevent duplicate error messages
3849  return
3850  if info is not None:
3851  err = err + " (" + str(info) + ")"
3852 
3853  self.error_list.append(err)
3854 
3855  def Check(self, min_value=None, max_value=None, multiple=None, info=None):
3856 
3857  if min_value is None:
3858  min_value = self.min_value
3859  if max_value is None:
3860  max_value = self.max_value
3861  if multiple is None:
3862  multiple = self.multiple
3863 
3864  if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
3865  self.AddError("type '{t}' unknown".format(t=self.units),info)
3866  self.AddError("Allowable types: " + str(self.units),info)
3867 
3868  if self.units in uNumeric:
3869  try:
3870  to_num = float(self.raw_value)
3871 
3872  if min_value is not None: # Check minimum value if it is present
3873  if to_num < min_value:
3874  self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
3875 
3876  if max_value is not None: # Check maximum value if it is present
3877  if to_num > max_value:
3878  self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
3879 
3880  except:
3881  self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
3882 
3883  if self.units == uInteger: # Perform integer specific checks
3884  try:
3885  to_int = int(self.raw_value)
3886 
3887  if multiple is not None and multiple > 1:
3888  if (to_int % multiple) > 0:
3889  self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
3890  except:
3891  self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
3892 
3893  if self.units == uBool: # Check that the value is of a correct boolean format
3894  if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
3895  pass
3896  else:
3897  self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
3898 
3899  @property
3900  def value(self): # Return the current value, converted to appropriate units (from string representation) if required
3901  v = str(self.raw_value) # Enforce string type for known starting point
3902 
3903  if self.units == uInteger: # Integer values
3904  return int(v)
3905  elif self.units in uNumeric: # Any values that use floating points
3906  v = v.replace(",",".") # Replace "," separators with "."
3907  v = float(v)
3908 
3909  if self.units == uMM: # Convert from millimetres to nanometres
3910  return FromMM(v)
3911 
3912  elif self.units == uMils: # Convert from mils to nanometres
3913  return FromMils(v)
3914 
3915  else: # Any other floating-point values
3916  return v
3917 
3918  elif self.units == uBool:
3919  if v.lower() in self._true:
3920  return True
3921  else:
3922  return False
3923  else:
3924  return v
3925 
3926  def DefaultValue(self): # Reset the value of the parameter to its default
3927  self.raw_value = str(self.default)
3928 
3929  def SetValue(self, new_value): # Update the value
3930  new_value = str(new_value)
3931 
3932  if len(new_value.strip()) == 0:
3933  if not self.units in [uString, uBool]:
3934  return # Ignore empty values unless for strings or bools
3935 
3936  if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
3937  new_value = "1" if new_value.lower() in self._true else "0"
3938  elif self.units in uNumeric:
3939  new_value = new_value.replace(",", ".") # Enforce decimal point separators
3940  elif ',' in self.units: # Select from a list of values
3941  if new_value not in self.units.split(','):
3942  new_value = self.units.split(',')[0]
3943 
3944  self.raw_value = new_value
3945 
3946  def __str__(self): # pretty-print the parameter
3947 
3948  s = self.name + ": " + str(self.raw_value)
3949 
3950  if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
3951  s += self.units
3952  elif self.units == uBool: # Special case for Boolean values
3953  s = self.name + ": {b}".format(b = "True" if self.value else "False")
3954  elif self.units == uString:
3955  s = self.name + ": '" + self.raw_value + "'"
3956 
3957  return s
3958 
3959 
3961  def __init__(self):
3962  KiCadPlugin.__init__(self)
3963  self.defaults()
3964 
3965  def defaults(self):
3966  self.module = None
3967  self.params = [] # List of added parameters that observes addition order
3968 
3969  self.name = "KiCad FP Wizard"
3970  self.description = "Undefined Footprint Wizard plugin"
3971  self.image = ""
3972  self.buildmessages = ""
3973 
3974  def AddParam(self, page, name, unit, default, **kwarg):
3975 
3976  if self.GetParam(page,name) is not None: # Param already exists!
3977  return
3978 
3979  param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
3980  self.params.append(param)
3981 
3982  @property
3983  def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
3984  pages = {} # Page dict
3985  for p in self.params:
3986  if p.page not in pages:
3987  pages[p.page] = {}
3988 
3989  pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
3990 
3991  return pages
3992 
3993  @property
3994  def values(self): # Same as above
3995  return self.parameters
3996 
3997  def ResetWizard(self): # Reset all parameters to default values
3998  for p in self.params:
3999  p.DefaultValue()
4000 
4001  def GetName(self): # Return the name of this wizard
4002  return self.name
4003 
4004  def GetImage(self): # Return the filename of the preview image associated with this wizard
4005  return self.image
4006 
4007  def GetDescription(self): # Return the description text
4008  return self.description
4009 
4010  def GetValue(self):
4011  raise NotImplementedError
4012 
4014  return "REF" # Default reference prefix for any footprint
4015 
4016  def GetParam(self, page, name): # Grab a parameter
4017  for p in self.params:
4018  if p.page == page and p.name == name:
4019  return p
4020 
4021  return None
4022 
4023  def CheckParam(self, page, name, **kwarg):
4024  self.GetParam(page,name).Check(**kwarg)
4025 
4026  def AnyErrors(self):
4027  return any([len(p.error_list) > 0 for p in self.params])
4028 
4029  @property
4030  def pages(self): # Return an (ordered) list of the available page names
4031  page_list = []
4032  for p in self.params:
4033  if p.page not in page_list:
4034  page_list.append(p.page)
4035 
4036  return page_list
4037 
4038  def GetNumParameterPages(self): # Return the number of parameter pages
4039  return len(self.pages)
4040 
4041  def GetParameterPageName(self,page_n): # Return the name of a page at a given index
4042  return self.pages[page_n]
4043 
4044  def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
4045  params = []
4046 
4047  for p in self.params:
4048  if p.page == page_name:
4049  params.append(p)
4050 
4051  return params
4052 
4053  def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
4054  return self.GetParametersByPageName(self.GetParameterPageName(page_index))
4055 
4056  def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4057  params = self.GetParametersByPageIndex(page_index)
4058  return [p.designator for p in params]
4059 
4060  def GetParameterNames(self,page_index): # Return the list of names associated with a given page
4061  params = self.GetParametersByPageIndex(page_index)
4062  return [p.name for p in params]
4063 
4064  def GetParameterValues(self,page_index): # Return the list of values associated with a given page
4065  params = self.GetParametersByPageIndex(page_index)
4066  return [str(p.raw_value) for p in params]
4067 
4068  def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
4069  params = self.GetParametersByPageIndex(page_index)
4070  return [str("\n".join(p.error_list)) for p in params]
4071 
4072  def GetParameterTypes(self, page_index): # Return list of units associated with a given page
4073  params = self.GetParametersByPageIndex(page_index)
4074  return [str(p.units) for p in params]
4075 
4076  def GetParameterHints(self, page_index): # Return a list of units associated with a given page
4077  params = self.GetParametersByPageIndex(page_index)
4078  return [str(p.hint) for p in params]
4079 
4080  def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4081  params = self.GetParametersByPageIndex(page_index)
4082  return [str(p.designator) for p in params]
4083 
4084  def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
4085 
4086  params = self.GetParametersByPageIndex(page_index)
4087 
4088  for i, param in enumerate(params):
4089  if i >= len(list_of_values):
4090  break
4091  param.SetValue(list_of_values[i])
4092 
4093  def GetFootprint( self ):
4094  self.BuildFootprint()
4095  return self.module
4096 
4097  def BuildFootprint(self):
4098  return
4099 
4100  def GetBuildMessages( self ):
4101  return self.buildmessages
4102 
4103  def Show(self):
4104  text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
4105  text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
4106 
4107  n_pages = self.GetNumParameterPages()
4108 
4109  text += "Pages: {n}\n".format(n=n_pages)
4110 
4111  for i in range(n_pages):
4112  name = self.GetParameterPageName(i)
4113 
4114  params = self.GetParametersByPageName(name)
4115 
4116  text += "{name}\n".format(name=name)
4117 
4118  for j in range(len(params)):
4119  text += ("\t{param}{err}\n".format(
4120  param = str(params[j]),
4121  err = ' *' if len(params[j].error_list) > 0 else ''
4122  ))
4123 
4124  if self.AnyErrors():
4125  text += " * Errors exist for these parameters"
4126 
4127  return text
4128 
4130  def __init__( self ):
4131  KiCadPlugin.__init__( self )
4132  self.defaults()
4133 
4134  def defaults( self ):
4135  self.name = "Undefined Action plugin"
4136  self.category = "Undefined"
4137  self.description = ""
4138 
4139  def GetName( self ):
4140  return self.name
4141 
4142  def GetCategoryName( self ):
4143  return self.category
4144 
4145  def GetDescription( self ):
4146  return self.description
4147 
4148  def Run(self):
4149  return
4150 
4151 
4152 class CSegment(_object):
4153  """Proxy of C++ CSegment class."""
4154 
4155  __swig_setmethods__ = {}
4156  __setattr__ = lambda self, name, value: _swig_setattr(self, CSegment, name, value)
4157  __swig_getmethods__ = {}
4158  __getattr__ = lambda self, name: _swig_getattr(self, CSegment, name)
4159  __repr__ = _swig_repr
4160  __swig_setmethods__["m_Start"] = _pcbnew.CSegment_m_Start_set
4161  __swig_getmethods__["m_Start"] = _pcbnew.CSegment_m_Start_get
4162  if _newclass:
4163  m_Start = _swig_property(_pcbnew.CSegment_m_Start_get, _pcbnew.CSegment_m_Start_set)
4164  __swig_setmethods__["m_End"] = _pcbnew.CSegment_m_End_set
4165  __swig_getmethods__["m_End"] = _pcbnew.CSegment_m_End_get
4166  if _newclass:
4167  m_End = _swig_property(_pcbnew.CSegment_m_End_get, _pcbnew.CSegment_m_End_set)
4168 
4169  def __init__(self, *args):
4170  """
4171  __init__(CSegment self) -> CSegment
4172  __init__(CSegment self, wxPoint aStart, wxPoint aEnd) -> CSegment
4173  __init__(CSegment self, int x0, int y0, int x1, int y1) -> CSegment
4174  """
4175  this = _pcbnew.new_CSegment(*args)
4176  try:
4177  self.this.append(this)
4178  except Exception:
4179  self.this = this
4180  __swig_destroy__ = _pcbnew.delete_CSegment
4181  __del__ = lambda self: None
4182 CSegment_swigregister = _pcbnew.CSegment_swigregister
4183 CSegment_swigregister(CSegment)
4184 
4186  """Proxy of C++ CPolyPt class."""
4187 
4188  __swig_setmethods__ = {}
4189  for _s in [wxPoint]:
4190  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
4191  __setattr__ = lambda self, name, value: _swig_setattr(self, CPolyPt, name, value)
4192  __swig_getmethods__ = {}
4193  for _s in [wxPoint]:
4194  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
4195  __getattr__ = lambda self, name: _swig_getattr(self, CPolyPt, name)
4196  __repr__ = _swig_repr
4197 
4198  def __init__(self, *args):
4199  """
4200  __init__(CPolyPt self, int aX=0, int aY=0, bool aEnd=False, int aUtility=0) -> CPolyPt
4201  __init__(CPolyPt self, int aX=0, int aY=0, bool aEnd=False) -> CPolyPt
4202  __init__(CPolyPt self, int aX=0, int aY=0) -> CPolyPt
4203  __init__(CPolyPt self, int aX=0) -> CPolyPt
4204  __init__(CPolyPt self) -> CPolyPt
4205  __init__(CPolyPt self, CPolyPt aPt) -> CPolyPt
4206  __init__(CPolyPt self, wxPoint aPoint) -> CPolyPt
4207  """
4208  this = _pcbnew.new_CPolyPt(*args)
4209  try:
4210  self.this.append(this)
4211  except Exception:
4212  self.this = this
4213  __swig_setmethods__["end_contour"] = _pcbnew.CPolyPt_end_contour_set
4214  __swig_getmethods__["end_contour"] = _pcbnew.CPolyPt_end_contour_get
4215  if _newclass:
4216  end_contour = _swig_property(_pcbnew.CPolyPt_end_contour_get, _pcbnew.CPolyPt_end_contour_set)
4217  __swig_setmethods__["m_flags"] = _pcbnew.CPolyPt_m_flags_set
4218  __swig_getmethods__["m_flags"] = _pcbnew.CPolyPt_m_flags_get
4219  if _newclass:
4220  m_flags = _swig_property(_pcbnew.CPolyPt_m_flags_get, _pcbnew.CPolyPt_m_flags_set)
4221 
4222  def __eq__(self, cpt2):
4223  """__eq__(CPolyPt self, CPolyPt cpt2) -> bool"""
4224  return _pcbnew.CPolyPt___eq__(self, cpt2)
4225 
4226 
4227  def __ne__(self, cpt2):
4228  """__ne__(CPolyPt self, CPolyPt cpt2) -> bool"""
4229  return _pcbnew.CPolyPt___ne__(self, cpt2)
4230 
4231  __swig_destroy__ = _pcbnew.delete_CPolyPt
4232  __del__ = lambda self: None
4233 CPolyPt_swigregister = _pcbnew.CPolyPt_swigregister
4234 CPolyPt_swigregister(CPolyPt)
4235 
4237  """Proxy of C++ CPolyLine class."""
4238 
4239  __swig_setmethods__ = {}
4240  __setattr__ = lambda self, name, value: _swig_setattr(self, CPolyLine, name, value)
4241  __swig_getmethods__ = {}
4242  __getattr__ = lambda self, name: _swig_getattr(self, CPolyLine, name)
4243  __repr__ = _swig_repr
4244  NO_HATCH = _pcbnew.CPolyLine_NO_HATCH
4245  DIAGONAL_FULL = _pcbnew.CPolyLine_DIAGONAL_FULL
4246  DIAGONAL_EDGE = _pcbnew.CPolyLine_DIAGONAL_EDGE
4247 
4248  def __init__(self, *args):
4249  """
4250  __init__(CPolyLine self) -> CPolyLine
4251  __init__(CPolyLine self, CPolyLine aCPolyLine) -> CPolyLine
4252  """
4253  this = _pcbnew.new_CPolyLine(*args)
4254  try:
4255  self.this.append(this)
4256  except Exception:
4257  self.this = this
4258  __swig_destroy__ = _pcbnew.delete_CPolyLine
4259  __del__ = lambda self: None
4260 
4261  def ImportSettings(self, aPoly):
4262  """ImportSettings(CPolyLine self, CPolyLine aPoly)"""
4263  return _pcbnew.CPolyLine_ImportSettings(self, aPoly)
4264 
4265 
4266  def Start(self, layer, x, y, hatch):
4267  """Start(CPolyLine self, LAYER_NUM layer, int x, int y, int hatch)"""
4268  return _pcbnew.CPolyLine_Start(self, layer, x, y, hatch)
4269 
4270 
4271  def AppendCorner(self, x, y):
4272  """AppendCorner(CPolyLine self, int x, int y)"""
4273  return _pcbnew.CPolyLine_AppendCorner(self, x, y)
4274 
4275 
4276  def InsertCorner(self, ic, x, y):
4277  """InsertCorner(CPolyLine self, int ic, int x, int y)"""
4278  return _pcbnew.CPolyLine_InsertCorner(self, ic, x, y)
4279 
4280 
4281  def DeleteCorner(self, ic):
4282  """DeleteCorner(CPolyLine self, int ic)"""
4283  return _pcbnew.CPolyLine_DeleteCorner(self, ic)
4284 
4285 
4286  def MoveCorner(self, ic, x, y):
4287  """MoveCorner(CPolyLine self, int ic, int x, int y)"""
4288  return _pcbnew.CPolyLine_MoveCorner(self, ic, x, y)
4289 
4290 
4291  def CloseLastContour(self):
4292  """CloseLastContour(CPolyLine self)"""
4293  return _pcbnew.CPolyLine_CloseLastContour(self)
4294 
4295 
4296  def RemoveContour(self, icont):
4297  """RemoveContour(CPolyLine self, int icont)"""
4298  return _pcbnew.CPolyLine_RemoveContour(self, icont)
4299 
4300 
4302  """IsPolygonSelfIntersecting(CPolyLine self) -> bool"""
4303  return _pcbnew.CPolyLine_IsPolygonSelfIntersecting(self)
4304 
4305 
4306  def Chamfer(self, aDistance):
4307  """Chamfer(CPolyLine self, unsigned int aDistance) -> CPolyLine"""
4308  return _pcbnew.CPolyLine_Chamfer(self, aDistance)
4309 
4310 
4311  def Fillet(self, aRadius, aSegments):
4312  """Fillet(CPolyLine self, unsigned int aRadius, unsigned int aSegments) -> CPolyLine"""
4313  return _pcbnew.CPolyLine_Fillet(self, aRadius, aSegments)
4314 
4315 
4317  """RemoveNullSegments(CPolyLine self) -> int"""
4318  return _pcbnew.CPolyLine_RemoveNullSegments(self)
4319 
4320 
4322  """RemoveAllContours(CPolyLine self)"""
4323  return _pcbnew.CPolyLine_RemoveAllContours(self)
4324 
4325 
4326  def UnHatch(self):
4327  """UnHatch(CPolyLine self)"""
4328  return _pcbnew.CPolyLine_UnHatch(self)
4329 
4330 
4331  def Hatch(self):
4332  """Hatch(CPolyLine self)"""
4333  return _pcbnew.CPolyLine_Hatch(self)
4334 
4335 
4336  def MoveOrigin(self, x_off, y_off):
4337  """MoveOrigin(CPolyLine self, int x_off, int y_off)"""
4338  return _pcbnew.CPolyLine_MoveOrigin(self, x_off, y_off)
4339 
4340 
4341  def GetBoundingBox(self, *args):
4342  """
4343  GetBoundingBox(CPolyLine self) -> EDA_RECT
4344  GetBoundingBox(CPolyLine self, int icont) -> EDA_RECT
4345  """
4346  return _pcbnew.CPolyLine_GetBoundingBox(self, *args)
4347 
4348 
4349  def Copy(self, src):
4350  """Copy(CPolyLine self, CPolyLine src)"""
4351  return _pcbnew.CPolyLine_Copy(self, src)
4352 
4353 
4354  def TestPointInside(self, x, y):
4355  """TestPointInside(CPolyLine self, int x, int y) -> bool"""
4356  return _pcbnew.CPolyLine_TestPointInside(self, x, y)
4357 
4358 
4359  def IsCutoutContour(self, aCornerIdx):
4360  """IsCutoutContour(CPolyLine self, int aCornerIdx) -> bool"""
4361  return _pcbnew.CPolyLine_IsCutoutContour(self, aCornerIdx)
4362 
4363 
4364  def AppendArc(self, xi, yi, xf, yf, xc, yc, num):
4365  """AppendArc(CPolyLine self, int xi, int yi, int xf, int yf, int xc, int yc, int num)"""
4366  return _pcbnew.CPolyLine_AppendArc(self, xi, yi, xf, yf, xc, yc, num)
4367 
4368 
4369  def SetLayer(self, aLayer):
4370  """SetLayer(CPolyLine self, LAYER_NUM aLayer)"""
4371  return _pcbnew.CPolyLine_SetLayer(self, aLayer)
4372 
4373 
4374  def GetLayer(self):
4375  """GetLayer(CPolyLine self) -> LAYER_NUM"""
4376  return _pcbnew.CPolyLine_GetLayer(self)
4377 
4378 
4379  def GetCornersCount(self):
4380  """GetCornersCount(CPolyLine self) -> int"""
4381  return _pcbnew.CPolyLine_GetCornersCount(self)
4382 
4383 
4384  def GetClosed(self):
4385  """GetClosed(CPolyLine self) -> bool"""
4386  return _pcbnew.CPolyLine_GetClosed(self)
4387 
4388 
4389  def GetContoursCount(self):
4390  """GetContoursCount(CPolyLine self) -> int"""
4391  return _pcbnew.CPolyLine_GetContoursCount(self)
4392 
4393 
4394  def GetContour(self, ic):
4395  """GetContour(CPolyLine self, int ic) -> int"""
4396  return _pcbnew.CPolyLine_GetContour(self, ic)
4397 
4398 
4399  def GetContourStart(self, icont):
4400  """GetContourStart(CPolyLine self, int icont) -> int"""
4401  return _pcbnew.CPolyLine_GetContourStart(self, icont)
4402 
4403 
4404  def GetContourEnd(self, icont):
4405  """GetContourEnd(CPolyLine self, int icont) -> int"""
4406  return _pcbnew.CPolyLine_GetContourEnd(self, icont)
4407 
4408 
4409  def GetContourSize(self, icont):
4410  """GetContourSize(CPolyLine self, int icont) -> int"""
4411  return _pcbnew.CPolyLine_GetContourSize(self, icont)
4412 
4413 
4414  def GetX(self, ic):
4415  """GetX(CPolyLine self, int ic) -> int"""
4416  return _pcbnew.CPolyLine_GetX(self, ic)
4417 
4418 
4419  def GetY(self, ic):
4420  """GetY(CPolyLine self, int ic) -> int"""
4421  return _pcbnew.CPolyLine_GetY(self, ic)
4422 
4423 
4424  def IsEndContour(self, ic):
4425  """IsEndContour(CPolyLine self, int ic) -> bool"""
4426  return _pcbnew.CPolyLine_IsEndContour(self, ic)
4427 
4428 
4429  def GetPos(self, ic):
4430  """GetPos(CPolyLine self, int ic) -> wxPoint"""
4431  return _pcbnew.CPolyLine_GetPos(self, ic)
4432 
4433 
4434  def GetHatchPitch(self):
4435  """GetHatchPitch(CPolyLine self) -> int"""
4436  return _pcbnew.CPolyLine_GetHatchPitch(self)
4437 
4438 
4440  """GetDefaultHatchPitchMils() -> int"""
4441  return _pcbnew.CPolyLine_GetDefaultHatchPitchMils()
4442 
4443  if _newclass:
4444  GetDefaultHatchPitchMils = staticmethod(GetDefaultHatchPitchMils)
4445  __swig_getmethods__["GetDefaultHatchPitchMils"] = lambda x: GetDefaultHatchPitchMils
4446 
4447  def GetHatchStyle(self):
4448  """GetHatchStyle(CPolyLine self) -> enum CPolyLine::HATCH_STYLE"""
4449  return _pcbnew.CPolyLine_GetHatchStyle(self)
4450 
4451 
4452  def SetHatch(self, aHatchStyle, aHatchPitch, aRebuildHatch):
4453  """SetHatch(CPolyLine self, int aHatchStyle, int aHatchPitch, bool aRebuildHatch)"""
4454  return _pcbnew.CPolyLine_SetHatch(self, aHatchStyle, aHatchPitch, aRebuildHatch)
4455 
4456 
4457  def SetX(self, ic, x):
4458  """SetX(CPolyLine self, int ic, int x)"""
4459  return _pcbnew.CPolyLine_SetX(self, ic, x)
4460 
4461 
4462  def SetY(self, ic, y):
4463  """SetY(CPolyLine self, int ic, int y)"""
4464  return _pcbnew.CPolyLine_SetY(self, ic, y)
4465 
4466 
4467  def SetHatchStyle(self, style):
4468  """SetHatchStyle(CPolyLine self, enum CPolyLine::HATCH_STYLE style)"""
4469  return _pcbnew.CPolyLine_SetHatchStyle(self, style)
4470 
4471 
4472  def SetHatchPitch(self, pitch):
4473  """SetHatchPitch(CPolyLine self, int pitch)"""
4474  return _pcbnew.CPolyLine_SetHatchPitch(self, pitch)
4475 
4476 
4477  def NormalizeAreaOutlines(self, aNewPolygonList):
4478  """NormalizeAreaOutlines(CPolyLine self, std::vector< CPolyLine *,std::allocator< CPolyLine * > > * aNewPolygonList) -> int"""
4479  return _pcbnew.CPolyLine_NormalizeAreaOutlines(self, aNewPolygonList)
4480 
4481 
4482  def AppendBezier(self, *args):
4483  """
4484  AppendBezier(CPolyLine self, int x1, int y1, int x2, int y2, int x3, int y3)
4485  AppendBezier(CPolyLine self, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)
4486  """
4487  return _pcbnew.CPolyLine_AppendBezier(self, *args)
4488 
4489 
4490  def Distance(self, *args):
4491  """
4492  Distance(CPolyLine self, wxPoint aPoint) -> int
4493  Distance(CPolyLine self, wxPoint aStart, wxPoint aEnd, int aWidth) -> int
4494  """
4495  return _pcbnew.CPolyLine_Distance(self, *args)
4496 
4497 
4498  def HitTestForEdge(self, aPos, aDistMax):
4499  """HitTestForEdge(CPolyLine self, wxPoint aPos, int aDistMax) -> int"""
4500  return _pcbnew.CPolyLine_HitTestForEdge(self, aPos, aDistMax)
4501 
4502 
4503  def HitTestForCorner(self, aPos, aDistMax):
4504  """HitTestForCorner(CPolyLine self, wxPoint aPos, int aDistMax) -> int"""
4505  return _pcbnew.CPolyLine_HitTestForCorner(self, aPos, aDistMax)
4506 
4507  __swig_setmethods__["m_CornersList"] = _pcbnew.CPolyLine_m_CornersList_set
4508  __swig_getmethods__["m_CornersList"] = _pcbnew.CPolyLine_m_CornersList_get
4509  if _newclass:
4510  m_CornersList = _swig_property(_pcbnew.CPolyLine_m_CornersList_get, _pcbnew.CPolyLine_m_CornersList_set)
4511  __swig_setmethods__["m_HatchLines"] = _pcbnew.CPolyLine_m_HatchLines_set
4512  __swig_getmethods__["m_HatchLines"] = _pcbnew.CPolyLine_m_HatchLines_get
4513  if _newclass:
4514  m_HatchLines = _swig_property(_pcbnew.CPolyLine_m_HatchLines_get, _pcbnew.CPolyLine_m_HatchLines_set)
4515 CPolyLine_swigregister = _pcbnew.CPolyLine_swigregister
4516 CPolyLine_swigregister(CPolyLine)
4517 
4519  """CPolyLine_GetDefaultHatchPitchMils() -> int"""
4520  return _pcbnew.CPolyLine_GetDefaultHatchPitchMils()
4521 
4522 
4524  """ConvertPolyListToPolySet(CPOLYGONS_LIST const & aList) -> SHAPE_POLY_SET"""
4525  return _pcbnew.ConvertPolyListToPolySet(aList)
4526 
4528  """ConvertPolySetToPolyList(SHAPE_POLY_SET aPolyset) -> CPOLYGONS_LIST const"""
4529  return _pcbnew.ConvertPolySetToPolyList(aPolyset)
4530 
4531 _pcbnew.SH_RECT_swigconstant(_pcbnew)
4532 SH_RECT = _pcbnew.SH_RECT
4533 
4534 _pcbnew.SH_SEGMENT_swigconstant(_pcbnew)
4535 SH_SEGMENT = _pcbnew.SH_SEGMENT
4536 
4537 _pcbnew.SH_LINE_CHAIN_swigconstant(_pcbnew)
4538 SH_LINE_CHAIN = _pcbnew.SH_LINE_CHAIN
4539 
4540 _pcbnew.SH_CIRCLE_swigconstant(_pcbnew)
4541 SH_CIRCLE = _pcbnew.SH_CIRCLE
4542 
4543 _pcbnew.SH_SIMPLE_swigconstant(_pcbnew)
4544 SH_SIMPLE = _pcbnew.SH_SIMPLE
4545 
4546 _pcbnew.SH_POLY_SET_swigconstant(_pcbnew)
4547 SH_POLY_SET = _pcbnew.SH_POLY_SET
4548 
4549 _pcbnew.SH_COMPOUND_swigconstant(_pcbnew)
4550 SH_COMPOUND = _pcbnew.SH_COMPOUND
4551 
4552 _pcbnew.SH_ARC_swigconstant(_pcbnew)
4553 SH_ARC = _pcbnew.SH_ARC
4555  """Proxy of C++ SHAPE class."""
4556 
4557  __swig_setmethods__ = {}
4558  __setattr__ = lambda self, name, value: _swig_setattr(self, SHAPE, name, value)
4559  __swig_getmethods__ = {}
4560  __getattr__ = lambda self, name: _swig_getattr(self, SHAPE, name)
4561 
4562  def __init__(self, *args, **kwargs):
4563  raise AttributeError("No constructor defined - class is abstract")
4564  __repr__ = _swig_repr
4565  __swig_destroy__ = _pcbnew.delete_SHAPE
4566  __del__ = lambda self: None
4567 
4568  def Type(self):
4569  """Type(SHAPE self) -> SHAPE_TYPE"""
4570  return _pcbnew.SHAPE_Type(self)
4571 
4572 
4573  def Clone(self):
4574  """Clone(SHAPE self) -> SHAPE"""
4575  return _pcbnew.SHAPE_Clone(self)
4576 
4577 
4578  def Collide(self, *args):
4579  """
4580  Collide(SHAPE self, VECTOR2I const & aP, int aClearance=0) -> bool
4581  Collide(SHAPE self, VECTOR2I const & aP) -> bool
4582  Collide(SHAPE self, SHAPE aShape, int aClearance, VECTOR2I & aMTV) -> bool
4583  Collide(SHAPE self, SHAPE aShape, int aClearance=0) -> bool
4584  Collide(SHAPE self, SHAPE aShape) -> bool
4585  Collide(SHAPE self, SEG const & aSeg, int aClearance=0) -> bool
4586  Collide(SHAPE self, SEG const & aSeg) -> bool
4587  """
4588  return _pcbnew.SHAPE_Collide(self, *args)
4589 
4590 
4591  def BBox(self, aClearance=0):
4592  """
4593  BBox(SHAPE self, int aClearance=0) -> BOX2I const
4594  BBox(SHAPE self) -> BOX2I const
4595  """
4596  return _pcbnew.SHAPE_BBox(self, aClearance)
4597 
4598 
4599  def Centre(self):
4600  """Centre(SHAPE self) -> VECTOR2I"""
4601  return _pcbnew.SHAPE_Centre(self)
4602 
4603 
4604  def Move(self, aVector):
4605  """Move(SHAPE self, VECTOR2I const & aVector)"""
4606  return _pcbnew.SHAPE_Move(self, aVector)
4607 
4608 
4609  def IsSolid(self):
4610  """IsSolid(SHAPE self) -> bool"""
4611  return _pcbnew.SHAPE_IsSolid(self)
4612 
4613 
4614  def Parse(self, aStream):
4615  """Parse(SHAPE self, std::stringstream & aStream) -> bool"""
4616  return _pcbnew.SHAPE_Parse(self, aStream)
4617 
4618 
4619  def Format(self):
4620  """Format(SHAPE self) -> string"""
4621  return _pcbnew.SHAPE_Format(self)
4622 
4623 SHAPE_swigregister = _pcbnew.SHAPE_swigregister
4624 SHAPE_swigregister(SHAPE)
4625 
4626 
4627 def CollideShapes(aA, aB, aClearance, aNeedMTV, aMTV):
4628  """CollideShapes(SHAPE aA, SHAPE aB, int aClearance, bool aNeedMTV, VECTOR2I & aMTV) -> bool"""
4629  return _pcbnew.CollideShapes(aA, aB, aClearance, aNeedMTV, aMTV)
4631  """Proxy of C++ SHAPE_POLY_SET class."""
4632 
4633  __swig_setmethods__ = {}
4634  for _s in [SHAPE]:
4635  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
4636  __setattr__ = lambda self, name, value: _swig_setattr(self, SHAPE_POLY_SET, name, value)
4637  __swig_getmethods__ = {}
4638  for _s in [SHAPE]:
4639  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
4640  __getattr__ = lambda self, name: _swig_getattr(self, SHAPE_POLY_SET, name)
4641  __repr__ = _swig_repr
4642 
4643  def __init__(self, *args):
4644  """
4645  __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
4646  __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET
4647  """
4648  this = _pcbnew.new_SHAPE_POLY_SET(*args)
4649  try:
4650  self.this.append(this)
4651  except Exception:
4652  self.this = this
4653  __swig_destroy__ = _pcbnew.delete_SHAPE_POLY_SET
4654  __del__ = lambda self: None
4655 
4656  def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices):
4657  """GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool"""
4658  return _pcbnew.SHAPE_POLY_SET_GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
4659 
4660 
4661  def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx):
4662  """GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool"""
4663  return _pcbnew.SHAPE_POLY_SET_GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
4664 
4665 
4666  def Clone(self):
4667  """Clone(SHAPE_POLY_SET self) -> SHAPE"""
4668  return _pcbnew.SHAPE_POLY_SET_Clone(self)
4669 
4670 
4671  def NewOutline(self):
4672  """NewOutline(SHAPE_POLY_SET self) -> int"""
4673  return _pcbnew.SHAPE_POLY_SET_NewOutline(self)
4674 
4675 
4676  def NewHole(self, aOutline=-1):
4677  """
4678  NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int
4679  NewHole(SHAPE_POLY_SET self) -> int
4680  """
4681  return _pcbnew.SHAPE_POLY_SET_NewHole(self, aOutline)
4682 
4683 
4684  def AddOutline(self, aOutline):
4685  """AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN const & aOutline) -> int"""
4686  return _pcbnew.SHAPE_POLY_SET_AddOutline(self, aOutline)
4687 
4688 
4689  def AddHole(self, aHole, aOutline=-1):
4690  """
4691  AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN const & aHole, int aOutline=-1) -> int
4692  AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN const & aHole) -> int
4693  """
4694  return _pcbnew.SHAPE_POLY_SET_AddHole(self, aHole, aOutline)
4695 
4696 
4697  def Append(self, *args):
4698  """
4699  Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
4700  Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1) -> int
4701  Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1) -> int
4702  Append(SHAPE_POLY_SET self, int x, int y) -> int
4703  Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
4704  Append(SHAPE_POLY_SET self, VECTOR2I const & aP, int aOutline=-1, int aHole=-1)
4705  Append(SHAPE_POLY_SET self, VECTOR2I const & aP, int aOutline=-1)
4706  Append(SHAPE_POLY_SET self, VECTOR2I const & aP)
4707  """
4708  return _pcbnew.SHAPE_POLY_SET_Append(self, *args)
4709 
4710 
4711  def InsertVertex(self, aGlobalIndex, aNewVertex):
4712  """InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)"""
4713  return _pcbnew.SHAPE_POLY_SET_InsertVertex(self, aGlobalIndex, aNewVertex)
4714 
4715 
4716  def Vertex(self, *args):
4717  """
4718  Vertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
4719  Vertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
4720  Vertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I &
4721  """
4722  return _pcbnew.SHAPE_POLY_SET_Vertex(self, *args)
4723 
4724 
4725  def CVertex(self, *args):
4726  """
4727  CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I const
4728  CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I const
4729  CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I const &
4730  """
4731  return _pcbnew.SHAPE_POLY_SET_CVertex(self, *args)
4732 
4733 
4734  def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext):
4735  """GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool"""
4736  return _pcbnew.SHAPE_POLY_SET_GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
4737 
4738 
4739  def IsPolygonSelfIntersecting(self, aPolygonIndex):
4740  """IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool"""
4741  return _pcbnew.SHAPE_POLY_SET_IsPolygonSelfIntersecting(self, aPolygonIndex)
4742 
4743 
4745  """IsSelfIntersecting(SHAPE_POLY_SET self) -> bool"""
4746  return _pcbnew.SHAPE_POLY_SET_IsSelfIntersecting(self)
4747 
4748 
4750  """TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int"""
4751  return _pcbnew.SHAPE_POLY_SET_TriangulatedPolyCount(self)
4752 
4753 
4754  def OutlineCount(self):
4755  """OutlineCount(SHAPE_POLY_SET self) -> int"""
4756  return _pcbnew.SHAPE_POLY_SET_OutlineCount(self)
4757 
4758 
4759  def VertexCount(self, aOutline=-1, aHole=-1):
4760  """
4761  VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int
4762  VertexCount(SHAPE_POLY_SET self, int aOutline=-1) -> int
4763  VertexCount(SHAPE_POLY_SET self) -> int
4764  """
4765  return _pcbnew.SHAPE_POLY_SET_VertexCount(self, aOutline, aHole)
4766 
4767 
4768  def HoleCount(self, aOutline):
4769  """HoleCount(SHAPE_POLY_SET self, int aOutline) -> int"""
4770  return _pcbnew.SHAPE_POLY_SET_HoleCount(self, aOutline)
4771 
4772 
4773  def Outline(self, aIndex):
4774  """Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN &"""
4775  return _pcbnew.SHAPE_POLY_SET_Outline(self, aIndex)
4776 
4777 
4778  def Subset(self, aFirstPolygon, aLastPolygon):
4779  """Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET"""
4780  return _pcbnew.SHAPE_POLY_SET_Subset(self, aFirstPolygon, aLastPolygon)
4781 
4782 
4783  def UnitSet(self, aPolygonIndex):
4784  """UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET"""
4785  return _pcbnew.SHAPE_POLY_SET_UnitSet(self, aPolygonIndex)
4786 
4787 
4788  def Hole(self, aOutline, aHole):
4789  """Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN &"""
4790  return _pcbnew.SHAPE_POLY_SET_Hole(self, aOutline, aHole)
4791 
4792 
4793  def Polygon(self, *args):
4794  """
4795  Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
4796  Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &
4797  """
4798  return _pcbnew.SHAPE_POLY_SET_Polygon(self, *args)
4799 
4800 
4801  def TriangulatedPolygon(self, aIndex):
4802  """TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *"""
4803  return _pcbnew.SHAPE_POLY_SET_TriangulatedPolygon(self, aIndex)
4804 
4805 
4806  def COutline(self, aIndex):
4807  """COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN const &"""
4808  return _pcbnew.SHAPE_POLY_SET_COutline(self, aIndex)
4809 
4810 
4811  def CHole(self, aOutline, aHole):
4812  """CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN const &"""
4813  return _pcbnew.SHAPE_POLY_SET_CHole(self, aOutline, aHole)
4814 
4815 
4816  def CPolygon(self, aIndex):
4817  """CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &"""
4818  return _pcbnew.SHAPE_POLY_SET_CPolygon(self, aIndex)
4819 
4820 
4821  def Iterate(self, *args):
4822  """
4823  Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
4824  Iterate(SHAPE_POLY_SET self, int aFirst, int aLast) -> SHAPE_POLY_SET::ITERATOR
4825  Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
4826  Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
4827  """
4828  return _pcbnew.SHAPE_POLY_SET_Iterate(self, *args)
4829 
4830 
4831  def IterateWithHoles(self, *args):
4832  """
4833  IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
4834  IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
4835  """
4836  return _pcbnew.SHAPE_POLY_SET_IterateWithHoles(self, *args)
4837 
4838 
4839  def CIterate(self, *args):
4840  """
4841  CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
4842  CIterate(SHAPE_POLY_SET self, int aFirst, int aLast) -> SHAPE_POLY_SET::CONST_ITERATOR
4843  CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
4844  CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
4845  """
4846  return _pcbnew.SHAPE_POLY_SET_CIterate(self, *args)
4847 
4848 
4849  def CIterateWithHoles(self, *args):
4850  """
4851  CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
4852  CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
4853  """
4854  return _pcbnew.SHAPE_POLY_SET_CIterateWithHoles(self, *args)
4855 
4856 
4857  def IterateFromVertexWithHoles(self, aGlobalIdx):
4858  """IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR"""
4859  return _pcbnew.SHAPE_POLY_SET_IterateFromVertexWithHoles(self, aGlobalIdx)
4860 
4861 
4862  def IterateSegments(self, *args):
4863  """
4864  IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
4865  IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
4866  IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
4867  IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
4868  """
4869  return _pcbnew.SHAPE_POLY_SET_IterateSegments(self, *args)
4870 
4871 
4872  def IterateSegmentsWithHoles(self, *args):
4873  """
4874  IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
4875  IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
4876  """
4877  return _pcbnew.SHAPE_POLY_SET_IterateSegmentsWithHoles(self, *args)
4878 
4879  PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
4880  PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
4881 
4882  def BooleanAdd(self, *args):
4883  """
4884  BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
4885  BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
4886  """
4887  return _pcbnew.SHAPE_POLY_SET_BooleanAdd(self, *args)
4888 
4889 
4890  def BooleanSubtract(self, *args):
4891  """
4892  BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
4893  BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
4894  """
4895  return _pcbnew.SHAPE_POLY_SET_BooleanSubtract(self, *args)
4896 
4897 
4898  def BooleanIntersection(self, *args):
4899  """
4900  BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
4901  BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
4902  """
4903  return _pcbnew.SHAPE_POLY_SET_BooleanIntersection(self, *args)
4904 
4905 
4906  def Inflate(self, aFactor, aCircleSegmentsCount):
4907  """Inflate(SHAPE_POLY_SET self, int aFactor, int aCircleSegmentsCount)"""
4908  return _pcbnew.SHAPE_POLY_SET_Inflate(self, aFactor, aCircleSegmentsCount)
4909 
4910 
4911  def Fracture(self, aFastMode):
4912  """Fracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
4913  return _pcbnew.SHAPE_POLY_SET_Fracture(self, aFastMode)
4914 
4915 
4916  def Unfracture(self, aFastMode):
4917  """Unfracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
4918  return _pcbnew.SHAPE_POLY_SET_Unfracture(self, aFastMode)
4919 
4920 
4921  def HasHoles(self):
4922  """HasHoles(SHAPE_POLY_SET self) -> bool"""
4923  return _pcbnew.SHAPE_POLY_SET_HasHoles(self)
4924 
4925 
4926  def HasTouchingHoles(self):
4927  """HasTouchingHoles(SHAPE_POLY_SET self) -> bool"""
4928  return _pcbnew.SHAPE_POLY_SET_HasTouchingHoles(self)
4929 
4930 
4931  def Simplify(self, aFastMode):
4932  """Simplify(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
4933  return _pcbnew.SHAPE_POLY_SET_Simplify(self, aFastMode)
4934 
4935 
4937  """NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int"""
4938  return _pcbnew.SHAPE_POLY_SET_NormalizeAreaOutlines(self)
4939 
4940 
4941  def Format(self):
4942  """Format(SHAPE_POLY_SET self) -> string"""
4943  return _pcbnew.SHAPE_POLY_SET_Format(self)
4944 
4945 
4946  def Parse(self, aStream):
4947  """Parse(SHAPE_POLY_SET self, std::stringstream & aStream) -> bool"""
4948  return _pcbnew.SHAPE_POLY_SET_Parse(self, aStream)
4949 
4950 
4951  def Move(self, aVector):
4952  """Move(SHAPE_POLY_SET self, VECTOR2I const & aVector)"""
4953  return _pcbnew.SHAPE_POLY_SET_Move(self, aVector)
4954 
4955 
4956  def Rotate(self, aAngle, aCenter):
4957  """Rotate(SHAPE_POLY_SET self, double aAngle, VECTOR2I const & aCenter)"""
4958  return _pcbnew.SHAPE_POLY_SET_Rotate(self, aAngle, aCenter)
4959 
4960 
4961  def IsSolid(self):
4962  """IsSolid(SHAPE_POLY_SET self) -> bool"""
4963  return _pcbnew.SHAPE_POLY_SET_IsSolid(self)
4964 
4965 
4966  def BBox(self, aClearance=0):
4967  """
4968  BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I const
4969  BBox(SHAPE_POLY_SET self) -> BOX2I const
4970  """
4971  return _pcbnew.SHAPE_POLY_SET_BBox(self, aClearance)
4972 
4973 
4974  def PointOnEdge(self, aP):
4975  """PointOnEdge(SHAPE_POLY_SET self, VECTOR2I const & aP) -> bool"""
4976  return _pcbnew.SHAPE_POLY_SET_PointOnEdge(self, aP)
4977 
4978 
4979  def Collide(self, *args):
4980  """
4981  Collide(SHAPE_POLY_SET self, VECTOR2I const & aP, int aClearance=0) -> bool
4982  Collide(SHAPE_POLY_SET self, VECTOR2I const & aP) -> bool
4983  Collide(SHAPE_POLY_SET self, SEG const & aSeg, int aClearance=0) -> bool
4984  Collide(SHAPE_POLY_SET self, SEG const & aSeg) -> bool
4985  """
4986  return _pcbnew.SHAPE_POLY_SET_Collide(self, *args)
4987 
4988 
4989  def CollideVertex(self, aPoint, aClosestVertex, aClearance=0):
4990  """
4991  CollideVertex(SHAPE_POLY_SET self, VECTOR2I const & aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex, int aClearance=0) -> bool
4992  CollideVertex(SHAPE_POLY_SET self, VECTOR2I const & aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex) -> bool
4993  """
4994  return _pcbnew.SHAPE_POLY_SET_CollideVertex(self, aPoint, aClosestVertex, aClearance)
4995 
4996 
4997  def CollideEdge(self, aPoint, aClosestVertex, aClearance=0):
4998  """
4999  CollideEdge(SHAPE_POLY_SET self, VECTOR2I const & aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex, int aClearance=0) -> bool
5000  CollideEdge(SHAPE_POLY_SET self, VECTOR2I const & aPoint, SHAPE_POLY_SET::VERTEX_INDEX & aClosestVertex) -> bool
5001  """
5002  return _pcbnew.SHAPE_POLY_SET_CollideEdge(self, aPoint, aClosestVertex, aClearance)
5003 
5004 
5005  def Contains(self, aP, aSubpolyIndex=-1, aIgnoreHoles=False):
5006  """
5007  Contains(SHAPE_POLY_SET self, VECTOR2I const & aP, int aSubpolyIndex=-1, bool aIgnoreHoles=False) -> bool
5008  Contains(SHAPE_POLY_SET self, VECTOR2I const & aP, int aSubpolyIndex=-1) -> bool
5009  Contains(SHAPE_POLY_SET self, VECTOR2I const & aP) -> bool
5010  """
5011  return _pcbnew.SHAPE_POLY_SET_Contains(self, aP, aSubpolyIndex, aIgnoreHoles)
5012 
5013 
5014  def IsEmpty(self):
5015  """IsEmpty(SHAPE_POLY_SET self) -> bool"""
5016  return _pcbnew.SHAPE_POLY_SET_IsEmpty(self)
5017 
5018 
5019  def RemoveVertex(self, *args):
5020  """
5021  RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
5022  RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)
5023  """
5024  return _pcbnew.SHAPE_POLY_SET_RemoveVertex(self, *args)
5025 
5026 
5028  """RemoveAllContours(SHAPE_POLY_SET self)"""
5029  return _pcbnew.SHAPE_POLY_SET_RemoveAllContours(self)
5030 
5031 
5032  def RemoveContour(self, aContourIdx, aPolygonIdx=-1):
5033  """
5034  RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)
5035  RemoveContour(SHAPE_POLY_SET self, int aContourIdx)
5036  """
5037  return _pcbnew.SHAPE_POLY_SET_RemoveContour(self, aContourIdx, aPolygonIdx)
5038 
5039 
5041  """RemoveNullSegments(SHAPE_POLY_SET self) -> int"""
5042  return _pcbnew.SHAPE_POLY_SET_RemoveNullSegments(self)
5043 
5044 
5045  def TotalVertices(self):
5046  """TotalVertices(SHAPE_POLY_SET self) -> int"""
5047  return _pcbnew.SHAPE_POLY_SET_TotalVertices(self)
5048 
5049 
5050  def DeletePolygon(self, aIdx):
5051  """DeletePolygon(SHAPE_POLY_SET self, int aIdx)"""
5052  return _pcbnew.SHAPE_POLY_SET_DeletePolygon(self, aIdx)
5053 
5054 
5055  def ChamferPolygon(self, aDistance, aIndex=0):
5056  """
5057  ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex=0) -> SHAPE_POLY_SET::POLYGON
5058  ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance) -> SHAPE_POLY_SET::POLYGON
5059  """
5060  return _pcbnew.SHAPE_POLY_SET_ChamferPolygon(self, aDistance, aIndex)
5061 
5062 
5063  def FilletPolygon(self, aRadius, aErrorMax, aIndex=0):
5064  """
5065  FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex=0) -> SHAPE_POLY_SET::POLYGON
5066  FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax) -> SHAPE_POLY_SET::POLYGON
5067  """
5068  return _pcbnew.SHAPE_POLY_SET_FilletPolygon(self, aRadius, aErrorMax, aIndex)
5069 
5070 
5071  def Chamfer(self, aDistance):
5072  """Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET"""
5073  return _pcbnew.SHAPE_POLY_SET_Chamfer(self, aDistance)
5074 
5075 
5076  def Fillet(self, aRadius, aErrorMax):
5077  """Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET"""
5078  return _pcbnew.SHAPE_POLY_SET_Fillet(self, aRadius, aErrorMax)
5079 
5080 
5081  def DistanceToPolygon(self, *args):
5082  """
5083  DistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex) -> int
5084  DistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex, int aSegmentWidth=0) -> int
5085  DistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex) -> int
5086  """
5087  return _pcbnew.SHAPE_POLY_SET_DistanceToPolygon(self, *args)
5088 
5089 
5090  def Distance(self, *args):
5091  """
5092  Distance(SHAPE_POLY_SET self, VECTOR2I aPoint) -> int
5093  Distance(SHAPE_POLY_SET self, SEG const & aSegment, int aSegmentWidth=0) -> int
5094  Distance(SHAPE_POLY_SET self, SEG const & aSegment) -> int
5095  """
5096  return _pcbnew.SHAPE_POLY_SET_Distance(self, *args)
5097 
5098 
5099  def IsVertexInHole(self, aGlobalIdx):
5100  """IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool"""
5101  return _pcbnew.SHAPE_POLY_SET_IsVertexInHole(self, aGlobalIdx)
5102 
5103 
5105  """CacheTriangulation(SHAPE_POLY_SET self)"""
5106  return _pcbnew.SHAPE_POLY_SET_CacheTriangulation(self)
5107 
5108 
5110  """IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool"""
5111  return _pcbnew.SHAPE_POLY_SET_IsTriangulationUpToDate(self)
5112 
5113 
5114  def GetHash(self):
5115  """GetHash(SHAPE_POLY_SET self) -> MD5_HASH"""
5116  return _pcbnew.SHAPE_POLY_SET_GetHash(self)
5117 
5118 SHAPE_POLY_SET_swigregister = _pcbnew.SHAPE_POLY_SET_swigregister
5119 SHAPE_POLY_SET_swigregister(SHAPE_POLY_SET)
5120 
5121 
5122 def IsUTF8(aString):
5123  """IsUTF8(char const * aString) -> bool"""
5124  return _pcbnew.IsUTF8(aString)
5125 class UTF8(_object):
5126  """Proxy of C++ UTF8 class."""
5127 
5128  __swig_setmethods__ = {}
5129  __setattr__ = lambda self, name, value: _swig_setattr(self, UTF8, name, value)
5130  __swig_getmethods__ = {}
5131  __getattr__ = lambda self, name: _swig_getattr(self, UTF8, name)
5132  __repr__ = _swig_repr
5133 
5134  def __init__(self, *args):
5135  """
5136  __init__(UTF8 self, wxString o) -> UTF8
5137  __init__(UTF8 self, char const * txt) -> UTF8
5138  __init__(UTF8 self, wchar_t const * txt) -> UTF8
5139  __init__(UTF8 self, string o) -> UTF8
5140  __init__(UTF8 self) -> UTF8
5141  """
5142  this = _pcbnew.new_UTF8(*args)
5143  try:
5144  self.this.append(this)
5145  except Exception:
5146  self.this = this
5147  __swig_destroy__ = _pcbnew.delete_UTF8
5148  __del__ = lambda self: None
5149 
5150  def c_str(self):
5151  """c_str(UTF8 self) -> char const *"""
5152  return _pcbnew.UTF8_c_str(self)
5153 
5154 
5155  def empty(self):
5156  """empty(UTF8 self) -> bool"""
5157  return _pcbnew.UTF8_empty(self)
5158 
5159 
5160  def find(self, *args):
5161  """
5162  find(UTF8 self, char c) -> std::string::size_type
5163  find(UTF8 self, char c, size_t & s) -> std::string::size_type
5164  """
5165  return _pcbnew.UTF8_find(self, *args)
5166 
5167 
5168  def clear(self):
5169  """clear(UTF8 self)"""
5170  return _pcbnew.UTF8_clear(self)
5171 
5172 
5173  def length(self):
5174  """length(UTF8 self) -> std::string::size_type"""
5175  return _pcbnew.UTF8_length(self)
5176 
5177 
5178  def size(self):
5179  """size(UTF8 self) -> std::string::size_type"""
5180  return _pcbnew.UTF8_size(self)
5181 
5182 
5183  def compare(self, s):
5184  """compare(UTF8 self, string s) -> int"""
5185  return _pcbnew.UTF8_compare(self, s)
5186 
5187 
5188  def __eq__(self, *args):
5189  """
5190  __eq__(UTF8 self, UTF8 rhs) -> bool
5191  __eq__(UTF8 self, string rhs) -> bool
5192  __eq__(UTF8 self, char const * s) -> bool
5193  """
5194  return _pcbnew.UTF8___eq__(self, *args)
5195 
5196 
5197  def find_first_of(self, str, pos=0):
5198  """
5199  find_first_of(UTF8 self, string str, std::string::size_type pos=0) -> std::string::size_type
5200  find_first_of(UTF8 self, string str) -> std::string::size_type
5201  """
5202  return _pcbnew.UTF8_find_first_of(self, str, pos)
5203 
5204 
5205  def __iadd__(self, *args):
5206  """
5207  __iadd__(UTF8 self, UTF8 str) -> UTF8
5208  __iadd__(UTF8 self, char ch) -> UTF8
5209  __iadd__(UTF8 self, char const * s) -> UTF8
5210  __iadd__(UTF8 self, unsigned int w_ch) -> UTF8
5211  """
5212  return _pcbnew.UTF8___iadd__(self, *args)
5213 
5214  npos = _pcbnew.UTF8_npos
5215 
5216  def substr(self, *args):
5217  """
5218  substr(UTF8 self, size_t pos=0, size_t len) -> string
5219  substr(UTF8 self, size_t pos=0) -> string
5220  substr(UTF8 self) -> string
5221  """
5222  return _pcbnew.UTF8_substr(self, *args)
5223 
5224 
5225  def wx_str(self):
5226  """wx_str(UTF8 self) -> wxString"""
5227  return _pcbnew.UTF8_wx_str(self)
5228 
5229 
5230  def utf8_to_wxstring(self):
5231  """utf8_to_wxstring(UTF8 self) -> wxString"""
5232  return _pcbnew.UTF8_utf8_to_wxstring(self)
5233 
5234 
5235  def begin(self):
5236  """begin(UTF8 self) -> std::string::const_iterator"""
5237  return _pcbnew.UTF8_begin(self)
5238 
5239 
5240  def end(self):
5241  """end(UTF8 self) -> std::string::const_iterator"""
5242  return _pcbnew.UTF8_end(self)
5243 
5244 
5245  def Cast_to_CChar(self):
5246  """Cast_to_CChar(UTF8 self) -> char const *"""
5247  return _pcbnew.UTF8_Cast_to_CChar(self)
5248 
5249 
5250 
5251  # Get the char buffer of the UTF8 string
5252  def GetChars(self):
5253  return self.Cast_to_CChar()
5254 
5255  # Convert the UTF8 string to a python string
5256  # Same as GetChars(), but more easy to use in print command
5257  def __str__(self):
5258  return self.GetChars()
5259 
5260 
5261 UTF8_swigregister = _pcbnew.UTF8_swigregister
5262 UTF8_swigregister(UTF8)
5263 
5264 
5265 def Mils2iu(mils):
5266  """Mils2iu(int mils) -> int"""
5267  return _pcbnew.Mils2iu(mils)
5268 
5270  """Millimeter2iu(double mm) -> int"""
5271  return _pcbnew.Millimeter2iu(mm)
5272 
5274  """Iu2Millimeter(int iu) -> double"""
5275  return _pcbnew.Iu2Millimeter(iu)
5276 
5277 def Iu2Mils(iu):
5278  """Iu2Mils(int iu) -> double"""
5279  return _pcbnew.Iu2Mils(iu)
5281  """Proxy of C++ LIB_ID class."""
5282 
5283  __swig_setmethods__ = {}
5284  __setattr__ = lambda self, name, value: _swig_setattr(self, LIB_ID, name, value)
5285  __swig_getmethods__ = {}
5286  __getattr__ = lambda self, name: _swig_getattr(self, LIB_ID, name)
5287  __repr__ = _swig_repr
5288  ID_SCH = _pcbnew.LIB_ID_ID_SCH
5289  ID_ALIAS = _pcbnew.LIB_ID_ID_ALIAS
5290  ID_PCB = _pcbnew.LIB_ID_ID_PCB
5291 
5292  def __init__(self, *args):
5293  """
5294  __init__(LIB_ID self) -> LIB_ID
5295  __init__(LIB_ID self, UTF8 aId) -> LIB_ID
5296  __init__(LIB_ID self, wxString aId) -> LIB_ID
5297  __init__(LIB_ID self, wxString aLibName, wxString aLibItemName, wxString aRevision) -> LIB_ID
5298  __init__(LIB_ID self, wxString aLibName, wxString aLibItemName) -> LIB_ID
5299  """
5300  this = _pcbnew.new_LIB_ID(*args)
5301  try:
5302  self.this.append(this)
5303  except Exception:
5304  self.this = this
5305 
5306  def Parse(self, aId):
5307  """Parse(LIB_ID self, UTF8 aId) -> int"""
5308  return _pcbnew.LIB_ID_Parse(self, aId)
5309 
5310 
5311  def GetLibNickname(self):
5312  """GetLibNickname(LIB_ID self) -> UTF8"""
5313  return _pcbnew.LIB_ID_GetLibNickname(self)
5314 
5315 
5316  def SetLibNickname(self, aNickname):
5317  """SetLibNickname(LIB_ID self, UTF8 aNickname) -> int"""
5318  return _pcbnew.LIB_ID_SetLibNickname(self, aNickname)
5319 
5320 
5321  def GetLibItemName(self):
5322  """GetLibItemName(LIB_ID self) -> UTF8"""
5323  return _pcbnew.LIB_ID_GetLibItemName(self)
5324 
5325 
5327  """GetUniStringLibItemName(LIB_ID self) -> wxString"""
5328  return _pcbnew.LIB_ID_GetUniStringLibItemName(self)
5329 
5330 
5331  def SetLibItemName(self, aLibItemName, aTestForRev=True):
5332  """
5333  SetLibItemName(LIB_ID self, UTF8 aLibItemName, bool aTestForRev=True) -> int
5334  SetLibItemName(LIB_ID self, UTF8 aLibItemName) -> int
5335  """
5336  return _pcbnew.LIB_ID_SetLibItemName(self, aLibItemName, aTestForRev)
5337 
5338 
5339  def SetRevision(self, aRevision):
5340  """SetRevision(LIB_ID self, UTF8 aRevision) -> int"""
5341  return _pcbnew.LIB_ID_SetRevision(self, aRevision)
5342 
5343 
5344  def GetRevision(self):
5345  """GetRevision(LIB_ID self) -> UTF8"""
5346  return _pcbnew.LIB_ID_GetRevision(self)
5347 
5348 
5350  """GetLibItemNameAndRev(LIB_ID self) -> UTF8"""
5351  return _pcbnew.LIB_ID_GetLibItemNameAndRev(self)
5352 
5353 
5355  """GetUniStringLibId(LIB_ID self) -> wxString"""
5356  return _pcbnew.LIB_ID_GetUniStringLibId(self)
5357 
5358 
5359  def Format(*args):
5360  """
5361  Format() -> UTF8
5362  Format(UTF8 aLibNickname, UTF8 aLibItemName, UTF8 aRevision) -> UTF8
5363  Format(UTF8 aLibNickname, UTF8 aLibItemName) -> UTF8
5364  """
5365  return _pcbnew.LIB_ID_Format(*args)
5366 
5367  if _newclass:
5368  Format = staticmethod(Format)
5369  __swig_getmethods__["Format"] = lambda x: Format
5370 
5371  def IsValid(self):
5372  """IsValid(LIB_ID self) -> bool"""
5373  return _pcbnew.LIB_ID_IsValid(self)
5374 
5375 
5376  def IsLegacy(self):
5377  """IsLegacy(LIB_ID self) -> bool"""
5378  return _pcbnew.LIB_ID_IsLegacy(self)
5379 
5380 
5381  def clear(self):
5382  """clear(LIB_ID self)"""
5383  return _pcbnew.LIB_ID_clear(self)
5384 
5385 
5386  def empty(self):
5387  """empty(LIB_ID self) -> bool"""
5388  return _pcbnew.LIB_ID_empty(self)
5389 
5390 
5391  def compare(self, aLibId):
5392  """compare(LIB_ID self, LIB_ID aLibId) -> int"""
5393  return _pcbnew.LIB_ID_compare(self, aLibId)
5394 
5395 
5396  def __lt__(self, aLibId):
5397  """__lt__(LIB_ID self, LIB_ID aLibId) -> bool"""
5398  return _pcbnew.LIB_ID___lt__(self, aLibId)
5399 
5400 
5401  def __gt__(self, aLibId):
5402  """__gt__(LIB_ID self, LIB_ID aLibId) -> bool"""
5403  return _pcbnew.LIB_ID___gt__(self, aLibId)
5404 
5405 
5406  def __eq__(self, aLibId):
5407  """__eq__(LIB_ID self, LIB_ID aLibId) -> bool"""
5408  return _pcbnew.LIB_ID___eq__(self, aLibId)
5409 
5410 
5411  def __ne__(self, aLibId):
5412  """__ne__(LIB_ID self, LIB_ID aLibId) -> bool"""
5413  return _pcbnew.LIB_ID___ne__(self, aLibId)
5414 
5415 
5416  def HasIllegalChars(aLibItemName, aType):
5417  """HasIllegalChars(UTF8 aLibItemName, LIB_ID::LIB_ID_TYPE aType) -> bool"""
5418  return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName, aType)
5419 
5420  if _newclass:
5421  HasIllegalChars = staticmethod(HasIllegalChars)
5422  __swig_getmethods__["HasIllegalChars"] = lambda x: HasIllegalChars
5423 
5424  def FixIllegalChars(aLibItemName, aType, aLib=False):
5425  """
5426  FixIllegalChars(UTF8 aLibItemName, LIB_ID::LIB_ID_TYPE aType, bool aLib=False) -> UTF8
5427  FixIllegalChars(UTF8 aLibItemName, LIB_ID::LIB_ID_TYPE aType) -> UTF8
5428  """
5429  return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aType, aLib)
5430 
5431  if _newclass:
5432  FixIllegalChars = staticmethod(FixIllegalChars)
5433  __swig_getmethods__["FixIllegalChars"] = lambda x: FixIllegalChars
5434 
5435  def FindIllegalLibNicknameChar(aNickname, aType):
5436  """FindIllegalLibNicknameChar(UTF8 aNickname, LIB_ID::LIB_ID_TYPE aType) -> unsigned int"""
5437  return _pcbnew.LIB_ID_FindIllegalLibNicknameChar(aNickname, aType)
5438 
5439  if _newclass:
5440  FindIllegalLibNicknameChar = staticmethod(FindIllegalLibNicknameChar)
5441  __swig_getmethods__["FindIllegalLibNicknameChar"] = lambda x: FindIllegalLibNicknameChar
5442  __swig_destroy__ = _pcbnew.delete_LIB_ID
5443  __del__ = lambda self: None
5444 LIB_ID_swigregister = _pcbnew.LIB_ID_swigregister
5445 LIB_ID_swigregister(LIB_ID)
5446 IU_PER_MM = cvar.IU_PER_MM
5447 IU_PER_MILS = cvar.IU_PER_MILS
5448 MM_PER_IU = cvar.MM_PER_IU
5449 ARC_LOW_DEF = cvar.ARC_LOW_DEF
5450 ARC_HIGH_DEF = cvar.ARC_HIGH_DEF
5451 
5452 def LIB_ID_Format(*args):
5453  """
5454  Format() -> UTF8
5455  Format(UTF8 aLibNickname, UTF8 aLibItemName, UTF8 aRevision) -> UTF8
5456  LIB_ID_Format(UTF8 aLibNickname, UTF8 aLibItemName) -> UTF8
5457  """
5458  return _pcbnew.LIB_ID_Format(*args)
5459 
5460 def LIB_ID_HasIllegalChars(aLibItemName, aType):
5461  """LIB_ID_HasIllegalChars(UTF8 aLibItemName, LIB_ID::LIB_ID_TYPE aType) -> bool"""
5462  return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName, aType)
5463 
5464 def LIB_ID_FixIllegalChars(aLibItemName, aType, aLib=False):
5465  """
5466  FixIllegalChars(UTF8 aLibItemName, LIB_ID::LIB_ID_TYPE aType, bool aLib=False) -> UTF8
5467  LIB_ID_FixIllegalChars(UTF8 aLibItemName, LIB_ID::LIB_ID_TYPE aType) -> UTF8
5468  """
5469  return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aType, aLib)
5470 
5472  """LIB_ID_FindIllegalLibNicknameChar(UTF8 aNickname, LIB_ID::LIB_ID_TYPE aType) -> unsigned int"""
5473  return _pcbnew.LIB_ID_FindIllegalLibNicknameChar(aNickname, aType)
5474 
5476  """Proxy of C++ BASE_SET class."""
5477 
5478  __swig_setmethods__ = {}
5479  __setattr__ = lambda self, name, value: _swig_setattr(self, BASE_SET, name, value)
5480  __swig_getmethods__ = {}
5481  __getattr__ = lambda self, name: _swig_getattr(self, BASE_SET, name)
5482 
5483  def __init__(self, *args, **kwargs):
5484  raise AttributeError("No constructor defined")
5485  __repr__ = _swig_repr
5486  __swig_destroy__ = _pcbnew.delete_BASE_SET
5487  __del__ = lambda self: None
5488 BASE_SET_swigregister = _pcbnew.BASE_SET_swigregister
5489 BASE_SET_swigregister(BASE_SET)
5490 
5492  """Proxy of C++ IO_MGR class."""
5493 
5494  __swig_setmethods__ = {}
5495  __setattr__ = lambda self, name, value: _swig_setattr(self, IO_MGR, name, value)
5496  __swig_getmethods__ = {}
5497  __getattr__ = lambda self, name: _swig_getattr(self, IO_MGR, name)
5498  __repr__ = _swig_repr
5499  LEGACY = _pcbnew.IO_MGR_LEGACY
5500  KICAD_SEXP = _pcbnew.IO_MGR_KICAD_SEXP
5501  EAGLE = _pcbnew.IO_MGR_EAGLE
5502  PCAD = _pcbnew.IO_MGR_PCAD
5503  GEDA_PCB = _pcbnew.IO_MGR_GEDA_PCB
5504  GITHUB = _pcbnew.IO_MGR_GITHUB
5505  FILE_TYPE_NONE = _pcbnew.IO_MGR_FILE_TYPE_NONE
5506 
5507  def PluginFind(aFileType):
5508  """PluginFind(IO_MGR::PCB_FILE_T aFileType) -> PLUGIN"""
5509  return _pcbnew.IO_MGR_PluginFind(aFileType)
5510 
5511  if _newclass:
5512  PluginFind = staticmethod(PluginFind)
5513  __swig_getmethods__["PluginFind"] = lambda x: PluginFind
5514 
5515  def PluginRelease(aPlugin):
5516  """PluginRelease(PLUGIN aPlugin)"""
5517  return _pcbnew.IO_MGR_PluginRelease(aPlugin)
5518 
5519  if _newclass:
5520  PluginRelease = staticmethod(PluginRelease)
5521  __swig_getmethods__["PluginRelease"] = lambda x: PluginRelease
5522 
5523  def ShowType(aFileType):
5524  """ShowType(IO_MGR::PCB_FILE_T aFileType) -> wxString"""
5525  return _pcbnew.IO_MGR_ShowType(aFileType)
5526 
5527  if _newclass:
5528  ShowType = staticmethod(ShowType)
5529  __swig_getmethods__["ShowType"] = lambda x: ShowType
5530 
5531  def EnumFromStr(aFileType):
5532  """EnumFromStr(wxString aFileType) -> IO_MGR::PCB_FILE_T"""
5533  return _pcbnew.IO_MGR_EnumFromStr(aFileType)
5534 
5535  if _newclass:
5536  EnumFromStr = staticmethod(EnumFromStr)
5537  __swig_getmethods__["EnumFromStr"] = lambda x: EnumFromStr
5538 
5539  def GetFileExtension(aFileType):
5540  """GetFileExtension(IO_MGR::PCB_FILE_T aFileType) -> wxString"""
5541  return _pcbnew.IO_MGR_GetFileExtension(aFileType)
5542 
5543  if _newclass:
5544  GetFileExtension = staticmethod(GetFileExtension)
5545  __swig_getmethods__["GetFileExtension"] = lambda x: GetFileExtension
5546 
5548  """GuessPluginTypeFromLibPath(wxString aLibPath) -> IO_MGR::PCB_FILE_T"""
5549  return _pcbnew.IO_MGR_GuessPluginTypeFromLibPath(aLibPath)
5550 
5551  if _newclass:
5552  GuessPluginTypeFromLibPath = staticmethod(GuessPluginTypeFromLibPath)
5553  __swig_getmethods__["GuessPluginTypeFromLibPath"] = lambda x: GuessPluginTypeFromLibPath
5554 
5555  def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None):
5556  """
5557  Load(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aAppendToMe=None, PROPERTIES const * aProperties=None) -> BOARD
5558  Load(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aAppendToMe=None) -> BOARD
5559  Load(IO_MGR::PCB_FILE_T aFileType, wxString aFileName) -> BOARD
5560  """
5561  return _pcbnew.IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties)
5562 
5563  if _newclass:
5564  Load = staticmethod(Load)
5565  __swig_getmethods__["Load"] = lambda x: Load
5566 
5567  def Save(aFileType, aFileName, aBoard, aProperties=None):
5568  """
5569  Save(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, PROPERTIES const * aProperties=None)
5570  Save(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard)
5571  """
5572  return _pcbnew.IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
5573 
5574  if _newclass:
5575  Save = staticmethod(Save)
5576  __swig_getmethods__["Save"] = lambda x: Save
5577 
5578  def __init__(self):
5579  """__init__(IO_MGR self) -> IO_MGR"""
5580  this = _pcbnew.new_IO_MGR()
5581  try:
5582  self.this.append(this)
5583  except Exception:
5584  self.this = this
5585  __swig_destroy__ = _pcbnew.delete_IO_MGR
5586  __del__ = lambda self: None
5587 IO_MGR_swigregister = _pcbnew.IO_MGR_swigregister
5588 IO_MGR_swigregister(IO_MGR)
5589 
5590 def IO_MGR_PluginFind(aFileType):
5591  """IO_MGR_PluginFind(IO_MGR::PCB_FILE_T aFileType) -> PLUGIN"""
5592  return _pcbnew.IO_MGR_PluginFind(aFileType)
5593 
5595  """IO_MGR_PluginRelease(PLUGIN aPlugin)"""
5596  return _pcbnew.IO_MGR_PluginRelease(aPlugin)
5597 
5598 def IO_MGR_ShowType(aFileType):
5599  """IO_MGR_ShowType(IO_MGR::PCB_FILE_T aFileType) -> wxString"""
5600  return _pcbnew.IO_MGR_ShowType(aFileType)
5601 
5602 def IO_MGR_EnumFromStr(aFileType):
5603  """IO_MGR_EnumFromStr(wxString aFileType) -> IO_MGR::PCB_FILE_T"""
5604  return _pcbnew.IO_MGR_EnumFromStr(aFileType)
5605 
5607  """IO_MGR_GetFileExtension(IO_MGR::PCB_FILE_T aFileType) -> wxString"""
5608  return _pcbnew.IO_MGR_GetFileExtension(aFileType)
5609 
5611  """IO_MGR_GuessPluginTypeFromLibPath(wxString aLibPath) -> IO_MGR::PCB_FILE_T"""
5612  return _pcbnew.IO_MGR_GuessPluginTypeFromLibPath(aLibPath)
5613 
5614 def IO_MGR_Load(aFileType, aFileName, aAppendToMe=None, aProperties=None):
5615  """
5616  Load(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aAppendToMe=None, PROPERTIES const * aProperties=None) -> BOARD
5617  Load(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aAppendToMe=None) -> BOARD
5618  IO_MGR_Load(IO_MGR::PCB_FILE_T aFileType, wxString aFileName) -> BOARD
5619  """
5620  return _pcbnew.IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties)
5621 
5622 def IO_MGR_Save(aFileType, aFileName, aBoard, aProperties=None):
5623  """
5624  Save(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, PROPERTIES const * aProperties=None)
5625  IO_MGR_Save(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard)
5626  """
5627  return _pcbnew.IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
5628 
5630  """Proxy of C++ PLUGIN class."""
5631 
5632  __swig_setmethods__ = {}
5633  __setattr__ = lambda self, name, value: _swig_setattr(self, PLUGIN, name, value)
5634  __swig_getmethods__ = {}
5635  __getattr__ = lambda self, name: _swig_getattr(self, PLUGIN, name)
5636 
5637  def __init__(self, *args, **kwargs):
5638  raise AttributeError("No constructor defined - class is abstract")
5639  __repr__ = _swig_repr
5640 
5641  def PluginName(self):
5642  """PluginName(PLUGIN self) -> wxString"""
5643  return _pcbnew.PLUGIN_PluginName(self)
5644 
5645 
5646  def GetFileExtension(self):
5647  """GetFileExtension(PLUGIN self) -> wxString"""
5648  return _pcbnew.PLUGIN_GetFileExtension(self)
5649 
5650 
5651  def Load(self, aFileName, aAppendToMe, aProperties=None):
5652  """
5653  Load(PLUGIN self, wxString aFileName, BOARD aAppendToMe, PROPERTIES const * aProperties=None) -> BOARD
5654  Load(PLUGIN self, wxString aFileName, BOARD aAppendToMe) -> BOARD
5655  """
5656  return _pcbnew.PLUGIN_Load(self, aFileName, aAppendToMe, aProperties)
5657 
5658 
5659  def Save(self, aFileName, aBoard, aProperties=None):
5660  """
5661  Save(PLUGIN self, wxString aFileName, BOARD aBoard, PROPERTIES const * aProperties=None)
5662  Save(PLUGIN self, wxString aFileName, BOARD aBoard)
5663  """
5664  return _pcbnew.PLUGIN_Save(self, aFileName, aBoard, aProperties)
5665 
5666 
5667  def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aProperties=None):
5668  """
5669  FootprintEnumerate(PLUGIN self, wxArrayString & aFootprintNames, wxString aLibraryPath, PROPERTIES const * aProperties=None)
5670  FootprintEnumerate(PLUGIN self, wxArrayString & aFootprintNames, wxString aLibraryPath)
5671  """
5672  return _pcbnew.PLUGIN_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aProperties)
5673 
5674 
5675  def GetLibraryTimestamp(self, aLibraryPath):
5676  """GetLibraryTimestamp(PLUGIN self, wxString aLibraryPath) -> long long"""
5677  return _pcbnew.PLUGIN_GetLibraryTimestamp(self, aLibraryPath)
5678 
5679 
5680  def PrefetchLib(self, aLibraryPath, aProperties=None):
5681  """
5682  PrefetchLib(PLUGIN self, wxString aLibraryPath, PROPERTIES const * aProperties=None)
5683  PrefetchLib(PLUGIN self, wxString aLibraryPath)
5684  """
5685  return _pcbnew.PLUGIN_PrefetchLib(self, aLibraryPath, aProperties)
5686 
5687 
5688  def FootprintLoad(self, aLibraryPath, aFootprintName, aProperties=None):
5689  """
5690  FootprintLoad(PLUGIN self, wxString aLibraryPath, wxString aFootprintName, PROPERTIES const * aProperties=None) -> MODULE
5691  FootprintLoad(PLUGIN self, wxString aLibraryPath, wxString aFootprintName) -> MODULE
5692  """
5693  return _pcbnew.PLUGIN_FootprintLoad(self, aLibraryPath, aFootprintName, aProperties)
5694 
5695 
5696  def LoadEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
5697  """
5698  LoadEnumeratedFootprint(PLUGIN self, wxString aLibraryPath, wxString aFootprintName, PROPERTIES const * aProperties=None) -> MODULE
5699  LoadEnumeratedFootprint(PLUGIN self, wxString aLibraryPath, wxString aFootprintName) -> MODULE
5700  """
5701  return _pcbnew.PLUGIN_LoadEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
5702 
5703 
5704  def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
5705  """
5706  FootprintSave(PLUGIN self, wxString aLibraryPath, MODULE aFootprint, PROPERTIES const * aProperties=None)
5707  FootprintSave(PLUGIN self, wxString aLibraryPath, MODULE aFootprint)
5708  """
5709  return _pcbnew.PLUGIN_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
5710 
5711 
5712  def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
5713  """
5714  FootprintDelete(PLUGIN self, wxString aLibraryPath, wxString aFootprintName, PROPERTIES const * aProperties=None)
5715  FootprintDelete(PLUGIN self, wxString aLibraryPath, wxString aFootprintName)
5716  """
5717  return _pcbnew.PLUGIN_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
5718 
5719 
5720  def FootprintLibCreate(self, aLibraryPath, aProperties=None):
5721  """
5722  FootprintLibCreate(PLUGIN self, wxString aLibraryPath, PROPERTIES const * aProperties=None)
5723  FootprintLibCreate(PLUGIN self, wxString aLibraryPath)
5724  """
5725  return _pcbnew.PLUGIN_FootprintLibCreate(self, aLibraryPath, aProperties)
5726 
5727 
5728  def FootprintLibDelete(self, aLibraryPath, aProperties=None):
5729  """
5730  FootprintLibDelete(PLUGIN self, wxString aLibraryPath, PROPERTIES const * aProperties=None) -> bool
5731  FootprintLibDelete(PLUGIN self, wxString aLibraryPath) -> bool
5732  """
5733  return _pcbnew.PLUGIN_FootprintLibDelete(self, aLibraryPath, aProperties)
5734 
5735 
5736  def IsFootprintLibWritable(self, aLibraryPath):
5737  """IsFootprintLibWritable(PLUGIN self, wxString aLibraryPath) -> bool"""
5738  return _pcbnew.PLUGIN_IsFootprintLibWritable(self, aLibraryPath)
5739 
5740 
5741  def FootprintLibOptions(self, aListToAppendTo):
5742  """FootprintLibOptions(PLUGIN self, PROPERTIES * aListToAppendTo)"""
5743  return _pcbnew.PLUGIN_FootprintLibOptions(self, aListToAppendTo)
5744 
5745  __swig_destroy__ = _pcbnew.delete_PLUGIN
5746  __del__ = lambda self: None
5747 
5748  def footprintPyEnumerate(self, aLibraryPath, aExitOnError):
5749  """footprintPyEnumerate(PLUGIN self, wxString aLibraryPath, bool aExitOnError) -> wxArrayString"""
5750  return _pcbnew.PLUGIN_footprintPyEnumerate(self, aLibraryPath, aExitOnError)
5751 
5752 
5753  def FootprintEnumerate(self, libname):
5754  return self.footprintPyEnumerate( libname, True )
5755 
5756 PLUGIN_swigregister = _pcbnew.PLUGIN_swigregister
5757 PLUGIN_swigregister(PLUGIN)
5758 
5759 
5760 _pcbnew.SEXPR_BOARD_FILE_VERSION_swigconstant(_pcbnew)
5761 SEXPR_BOARD_FILE_VERSION = _pcbnew.SEXPR_BOARD_FILE_VERSION
5762 
5763 _pcbnew.CTL_STD_LAYER_NAMES_swigconstant(_pcbnew)
5764 CTL_STD_LAYER_NAMES = _pcbnew.CTL_STD_LAYER_NAMES
5765 
5766 _pcbnew.CTL_OMIT_NETS_swigconstant(_pcbnew)
5767 CTL_OMIT_NETS = _pcbnew.CTL_OMIT_NETS
5768 
5769 _pcbnew.CTL_OMIT_TSTAMPS_swigconstant(_pcbnew)
5770 CTL_OMIT_TSTAMPS = _pcbnew.CTL_OMIT_TSTAMPS
5771 
5772 _pcbnew.CTL_OMIT_INITIAL_COMMENTS_swigconstant(_pcbnew)
5773 CTL_OMIT_INITIAL_COMMENTS = _pcbnew.CTL_OMIT_INITIAL_COMMENTS
5774 
5775 _pcbnew.CTL_OMIT_PATH_swigconstant(_pcbnew)
5776 CTL_OMIT_PATH = _pcbnew.CTL_OMIT_PATH
5777 
5778 _pcbnew.CTL_OMIT_AT_swigconstant(_pcbnew)
5779 CTL_OMIT_AT = _pcbnew.CTL_OMIT_AT
5780 
5781 _pcbnew.CTL_FOR_CLIPBOARD_swigconstant(_pcbnew)
5782 CTL_FOR_CLIPBOARD = _pcbnew.CTL_FOR_CLIPBOARD
5783 
5784 _pcbnew.CTL_FOR_LIBRARY_swigconstant(_pcbnew)
5785 CTL_FOR_LIBRARY = _pcbnew.CTL_FOR_LIBRARY
5786 
5787 _pcbnew.CTL_FOR_BOARD_swigconstant(_pcbnew)
5788 CTL_FOR_BOARD = _pcbnew.CTL_FOR_BOARD
5790  """Proxy of C++ PCB_IO class."""
5791 
5792  __swig_setmethods__ = {}
5793  for _s in [PLUGIN]:
5794  __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
5795  __setattr__ = lambda self, name, value: _swig_setattr(self, PCB_IO, name, value)
5796  __swig_getmethods__ = {}
5797  for _s in [PLUGIN]:
5798  __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
5799  __getattr__ = lambda self, name: _swig_getattr(self, PCB_IO, name)
5800  __repr__ = _swig_repr
5801 
5802  def PluginName(self):
5803  """PluginName(PCB_IO self) -> wxString"""
5804  return _pcbnew.PCB_IO_PluginName(self)
5805 
5806 
5807  def GetFileExtension(self):
5808  """GetFileExtension(PCB_IO self) -> wxString"""
5809  return _pcbnew.PCB_IO_GetFileExtension(self)
5810 
5811 
5812  def Save(self, aFileName, aBoard, aProperties=None):
5813  """
5814  Save(PCB_IO self, wxString aFileName, BOARD aBoard, PROPERTIES const * aProperties=None)
5815  Save(PCB_IO self, wxString aFileName, BOARD aBoard)
5816  """
5817  return _pcbnew.PCB_IO_Save(self, aFileName, aBoard, aProperties)
5818 
5819 
5820  def Load(self, aFileName, aAppendToMe, aProperties=None):
5821  """
5822  Load(PCB_IO self, wxString aFileName, BOARD aAppendToMe, PROPERTIES const * aProperties=None) -> BOARD
5823  Load(PCB_IO self, wxString aFileName, BOARD aAppendToMe) -> BOARD
5824  """
5825  return _pcbnew.PCB_IO_Load(self, aFileName, aAppendToMe, aProperties)
5826 
5827 
5828  def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aProperties=None):
5829  """
5830  FootprintEnumerate(PCB_IO self, wxArrayString & aFootprintNames, wxString aLibraryPath, PROPERTIES const * aProperties=None)
5831  FootprintEnumerate(PCB_IO self, wxArrayString & aFootprintNames, wxString aLibraryPath)
5832  """
5833  return _pcbnew.PCB_IO_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aProperties)
5834 
5835 
5836  def LoadEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
5837  """
5838  LoadEnumeratedFootprint(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, PROPERTIES const * aProperties=None) -> MODULE
5839  LoadEnumeratedFootprint(PCB_IO self, wxString aLibraryPath, wxString aFootprintName) -> MODULE
5840  """
5841  return _pcbnew.PCB_IO_LoadEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
5842 
5843 
5844  def FootprintLoad(self, aLibraryPath, aFootprintName, aProperties=None):
5845  """
5846  FootprintLoad(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, PROPERTIES const * aProperties=None) -> MODULE
5847  FootprintLoad(PCB_IO self, wxString aLibraryPath, wxString aFootprintName) -> MODULE
5848  """
5849  return _pcbnew.PCB_IO_FootprintLoad(self, aLibraryPath, aFootprintName, aProperties)
5850 
5851 
5852  def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
5853  """
5854  FootprintSave(PCB_IO self, wxString aLibraryPath, MODULE aFootprint, PROPERTIES const * aProperties=None)
5855  FootprintSave(PCB_IO self, wxString aLibraryPath, MODULE aFootprint)
5856  """
5857  return _pcbnew.PCB_IO_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
5858 
5859 
5860  def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
5861  """
5862  FootprintDelete(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, PROPERTIES const * aProperties=None)
5863  FootprintDelete(PCB_IO self, wxString aLibraryPath, wxString aFootprintName)
5864  """
5865  return _pcbnew.PCB_IO_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
5866 
5867 
5868  def