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 4.0.2
3#
4# Do not make changes to this file unless you know what you are doing--modify
5# the SWIG interface file instead.
6
7from sys import version_info as _swig_python_version_info
8if _swig_python_version_info < (2, 7, 0):
9 raise RuntimeError("Python 2.7 or later required")
10
11# Import the low-level C/C++ module
12if __package__ or "." in __name__:
13 from . import _pcbnew
14else:
15 import _pcbnew
16
17try:
18 import builtins as __builtin__
19except ImportError:
20 import __builtin__
21
22def _swig_repr(self):
23 try:
24 strthis = "proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
26 strthis = ""
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28
29
30def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
32 if name == "thisown":
33 self.this.own(value)
34 elif name == "this":
35 set(self, name, value)
36 elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
38 else:
39 raise AttributeError("You cannot add instance attributes to %s" % self)
40 return set_instance_attr
41
42
43def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46 set(cls, name, value)
47 else:
48 raise AttributeError("You cannot add class attributes to %s" % cls)
49 return set_class_attr
50
51
52def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54 def wrapper(cls):
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56 return wrapper
57
58
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62
63
64class SwigPyIterator(object):
65 r"""Proxy of C++ swig::SwigPyIterator class."""
66
67 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
68
69 def __init__(self, *args, **kwargs):
70 raise AttributeError("No constructor defined - class is abstract")
71 __repr__ = _swig_repr
72 __swig_destroy__ = _pcbnew.delete_SwigPyIterator
73
74 def value(self):
75 r"""value(SwigPyIterator self) -> PyObject *"""
76 return _pcbnew.SwigPyIterator_value(self)
77
78 def incr(self, n=1):
79 r"""incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
80 return _pcbnew.SwigPyIterator_incr(self, n)
81
82 def decr(self, n=1):
83 r"""decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
84 return _pcbnew.SwigPyIterator_decr(self, n)
85
86 def distance(self, x):
87 r"""distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
88 return _pcbnew.SwigPyIterator_distance(self, x)
89
90 def equal(self, x):
91 r"""equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
92 return _pcbnew.SwigPyIterator_equal(self, x)
93
94 def copy(self):
95 r"""copy(SwigPyIterator self) -> SwigPyIterator"""
96 return _pcbnew.SwigPyIterator_copy(self)
97
98 def next(self):
99 r"""next(SwigPyIterator self) -> PyObject *"""
100 return _pcbnew.SwigPyIterator_next(self)
101
102 def __next__(self):
103 r"""__next__(SwigPyIterator self) -> PyObject *"""
104 return _pcbnew.SwigPyIterator___next__(self)
105
106 def previous(self):
107 r"""previous(SwigPyIterator self) -> PyObject *"""
108 return _pcbnew.SwigPyIterator_previous(self)
109
110 def advance(self, n):
111 r"""advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
112 return _pcbnew.SwigPyIterator_advance(self, n)
113
114 def __eq__(self, x):
115 r"""__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
116 return _pcbnew.SwigPyIterator___eq__(self, x)
117
118 def __ne__(self, x):
119 r"""__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
120 return _pcbnew.SwigPyIterator___ne__(self, x)
121
122 def __iadd__(self, n):
123 r"""__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
124 return _pcbnew.SwigPyIterator___iadd__(self, n)
125
126 def __isub__(self, n):
127 r"""__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
128 return _pcbnew.SwigPyIterator___isub__(self, n)
129
130 def __add__(self, n):
131 r"""__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
132 return _pcbnew.SwigPyIterator___add__(self, n)
133
134 def __sub__(self, *args):
135 r"""
136 __sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
137 __sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
138 """
139 return _pcbnew.SwigPyIterator___sub__(self, *args)
140 def __iter__(self):
141 return self
142
143# Register SwigPyIterator in _pcbnew:
144_pcbnew.SwigPyIterator_swigregister(SwigPyIterator)
145
147 r"""Proxy of C++ std::basic_string< char > class."""
148
149 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
150 __repr__ = _swig_repr
151
152 def length(self):
153 r"""length(string self) -> std::basic_string< char >::size_type"""
154 return _pcbnew.string_length(self)
155
156 def max_size(self):
157 r"""max_size(string self) -> std::basic_string< char >::size_type"""
158 return _pcbnew.string_max_size(self)
159
160 def capacity(self):
161 r"""capacity(string self) -> std::basic_string< char >::size_type"""
162 return _pcbnew.string_capacity(self)
163
164 def reserve(self, __res_arg=0):
165 r"""reserve(string self, std::basic_string< char >::size_type __res_arg=0)"""
166 return _pcbnew.string_reserve(self, __res_arg)
167
168 def copy(self, __s, __n, __pos=0):
169 r"""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"""
170 return _pcbnew.string_copy(self, __s, __n, __pos)
171
172 def c_str(self):
173 r"""c_str(string self) -> char const *"""
174 return _pcbnew.string_c_str(self)
175
176 def find(self, *args):
177 r"""
178 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
179 find(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
180 find(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
181 """
182 return _pcbnew.string_find(self, *args)
183
184 def rfind(self, *args):
185 r"""
186 rfind(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
187 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
188 rfind(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
189 """
190 return _pcbnew.string_rfind(self, *args)
191
192 def find_first_of(self, *args):
193 r"""
194 find_first_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
195 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
196 find_first_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
197 """
198 return _pcbnew.string_find_first_of(self, *args)
199
200 def find_last_of(self, *args):
201 r"""
202 find_last_of(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
203 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
204 find_last_of(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
205 """
206 return _pcbnew.string_find_last_of(self, *args)
207
208 def find_first_not_of(self, *args):
209 r"""
210 find_first_not_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
211 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
212 find_first_not_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
213 """
214 return _pcbnew.string_find_first_not_of(self, *args)
215
216 def find_last_not_of(self, *args):
217 r"""
218 find_last_not_of(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
219 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
220 find_last_not_of(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
221 """
222 return _pcbnew.string_find_last_not_of(self, *args)
223
224 def substr(self, *args):
225 r"""substr(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n=std::basic_string< char >::npos) -> string"""
226 return _pcbnew.string_substr(self, *args)
227
228 def empty(self):
229 r"""empty(string self) -> bool"""
230 return _pcbnew.string_empty(self)
231
232 def size(self):
233 r"""size(string self) -> std::basic_string< char >::size_type"""
234 return _pcbnew.string_size(self)
235
236 def swap(self, v):
237 r"""swap(string self, string v)"""
238 return _pcbnew.string_swap(self, v)
239
240 def begin(self):
241 r"""begin(string self) -> std::basic_string< char >::iterator"""
242 return _pcbnew.string_begin(self)
243
244 def end(self):
245 r"""end(string self) -> std::basic_string< char >::iterator"""
246 return _pcbnew.string_end(self)
247
248 def rbegin(self):
249 r"""rbegin(string self) -> std::basic_string< char >::reverse_iterator"""
250 return _pcbnew.string_rbegin(self)
251
252 def rend(self):
253 r"""rend(string self) -> std::basic_string< char >::reverse_iterator"""
254 return _pcbnew.string_rend(self)
255
256 def get_allocator(self):
257 r"""get_allocator(string self) -> std::basic_string< char >::allocator_type"""
258 return _pcbnew.string_get_allocator(self)
259
260 def erase(self, *args):
261 r"""
262 erase(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n=std::basic_string< char >::npos) -> string
263 erase(string self, std::basic_string< char >::iterator pos) -> std::basic_string< char >::iterator
264 erase(string self, std::basic_string< char >::iterator first, std::basic_string< char >::iterator last) -> std::basic_string< char >::iterator
265 """
266 return _pcbnew.string_erase(self, *args)
267
268 def __init__(self, *args):
269 r"""
270 __init__(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
271 __init__(string self) -> string
272 __init__(string self, string other) -> string
273 __init__(string self, std::basic_string< char >::size_type size, std::basic_string< char >::value_type value) -> string
274 """
275 _pcbnew.string_swiginit(self, _pcbnew.new_string(*args))
276
277 def assign(self, *args):
278 r"""
279 assign(string self, string __str) -> string
280 assign(string self, string __str, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> string
281 assign(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
282 assign(string self, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
283 """
284 return _pcbnew.string_assign(self, *args)
285
286 def resize(self, *args):
287 r"""
288 resize(string self, std::basic_string< char >::size_type new_size)
289 resize(string self, std::basic_string< char >::size_type new_size, std::basic_string< char >::value_type x)
290 """
291 return _pcbnew.string_resize(self, *args)
292
293 def iterator(self):
294 r"""iterator(string self) -> SwigPyIterator"""
295 return _pcbnew.string_iterator(self)
296 def __iter__(self):
297 return self.iterator()
298
299 def __nonzero__(self):
300 r"""__nonzero__(string self) -> bool"""
301 return _pcbnew.string___nonzero__(self)
302
303 def __bool__(self):
304 r"""__bool__(string self) -> bool"""
305 return _pcbnew.string___bool__(self)
306
307 def __len__(self):
308 r"""__len__(string self) -> std::basic_string< char >::size_type"""
309 return _pcbnew.string___len__(self)
310
311 def __getslice__(self, i, j):
312 r"""__getslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j) -> string"""
313 return _pcbnew.string___getslice__(self, i, j)
314
315 def __setslice__(self, *args):
316 r"""
317 __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)
318 __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j, string v)
319 """
320 return _pcbnew.string___setslice__(self, *args)
321
322 def __delslice__(self, i, j):
323 r"""__delslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)"""
324 return _pcbnew.string___delslice__(self, i, j)
325
326 def __delitem__(self, *args):
327 r"""
328 __delitem__(string self, std::basic_string< char >::difference_type i)
329 __delitem__(string self, PySliceObject * slice)
330 """
331 return _pcbnew.string___delitem__(self, *args)
332
333 def __getitem__(self, *args):
334 r"""
335 __getitem__(string self, PySliceObject * slice) -> string
336 __getitem__(string self, std::basic_string< char >::difference_type i) -> std::basic_string< char >::value_type
337 """
338 return _pcbnew.string___getitem__(self, *args)
339
340 def __setitem__(self, *args):
341 r"""
342 __setitem__(string self, PySliceObject * slice, string v)
343 __setitem__(string self, PySliceObject * slice)
344 __setitem__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::value_type x)
345 """
346 return _pcbnew.string___setitem__(self, *args)
347
348 def insert(self, *args):
349 r"""
350 insert(string self, std::basic_string< char >::size_type __pos1, string __str) -> string
351 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
352 insert(string self, std::basic_string< char >::size_type __pos, char const * __s, std::basic_string< char >::size_type __n) -> string
353 insert(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, char __c) -> string
354 insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::value_type x) -> std::basic_string< char >::iterator
355 insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
356 insert(string self, std::basic_string< char >::iterator __p, std::basic_string< char >::size_type __n, char __c)
357 """
358 return _pcbnew.string_insert(self, *args)
359
360 def replace(self, *args):
361 r"""
362 replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, string __str) -> string
363 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
364 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
365 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
366 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, string __str) -> string
367 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
368 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
369 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __k1, char const * __k2) -> string
370 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
371 """
372 return _pcbnew.string_replace(self, *args)
373
374 def __iadd__(self, v):
375 r"""__iadd__(string self, string v) -> string"""
376 return _pcbnew.string___iadd__(self, v)
377
378 def __add__(self, v):
379 r"""__add__(string self, string v) -> string"""
380 return _pcbnew.string___add__(self, v)
381
382 def __radd__(self, v):
383 r"""__radd__(string self, string v) -> string"""
384 return _pcbnew.string___radd__(self, v)
385
386 def __str__(self):
387 r"""__str__(string self) -> string"""
388 return _pcbnew.string___str__(self)
389
390 def __rlshift__(self, out):
391 r"""__rlshift__(string self, std::basic_ostream< char,std::char_traits< char > > & out) -> std::basic_ostream< char,std::char_traits< char > > &"""
392 return _pcbnew.string___rlshift__(self, out)
393
394 def __eq__(self, v):
395 r"""__eq__(string self, string v) -> bool"""
396 return _pcbnew.string___eq__(self, v)
397
398 def __ne__(self, v):
399 r"""__ne__(string self, string v) -> bool"""
400 return _pcbnew.string___ne__(self, v)
401
402 def __gt__(self, v):
403 r"""__gt__(string self, string v) -> bool"""
404 return _pcbnew.string___gt__(self, v)
405
406 def __lt__(self, v):
407 r"""__lt__(string self, string v) -> bool"""
408 return _pcbnew.string___lt__(self, v)
409
410 def __ge__(self, v):
411 r"""__ge__(string self, string v) -> bool"""
412 return _pcbnew.string___ge__(self, v)
413
414 def __le__(self, v):
415 r"""__le__(string self, string v) -> bool"""
416 return _pcbnew.string___le__(self, v)
417 __swig_destroy__ = _pcbnew.delete_string
418
419# Register string in _pcbnew:
420_pcbnew.string_swigregister(string)
421cvar = _pcbnew.cvar
422string.npos = _pcbnew.cvar.string_npos
423
424SHARED_PTR_DISOWN = _pcbnew.SHARED_PTR_DISOWN
425
427 r"""Proxy of C++ KI_PARAM_ERROR class."""
428
429 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
430 __repr__ = _swig_repr
431
432 def __init__(self, *args):
433 r"""
434 __init__(KI_PARAM_ERROR self, wxString aMessage) -> KI_PARAM_ERROR
435 __init__(KI_PARAM_ERROR self) -> KI_PARAM_ERROR
436 """
437 _pcbnew.KI_PARAM_ERROR_swiginit(self, _pcbnew.new_KI_PARAM_ERROR(*args))
438
439 def What(self):
440 r"""What(KI_PARAM_ERROR self) -> wxString"""
441 return _pcbnew.KI_PARAM_ERROR_What(self)
442 __swig_destroy__ = _pcbnew.delete_KI_PARAM_ERROR
443
444# Register KI_PARAM_ERROR in _pcbnew:
445_pcbnew.KI_PARAM_ERROR_swigregister(KI_PARAM_ERROR)
446
448 r"""Proxy of C++ IO_ERROR class."""
449
450 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
451 __repr__ = _swig_repr
452
453 def __init__(self, *args):
454 r"""
455 __init__(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber) -> IO_ERROR
456 __init__(IO_ERROR self) -> IO_ERROR
457 """
458 _pcbnew.IO_ERROR_swiginit(self, _pcbnew.new_IO_ERROR(*args))
459
460 def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber):
461 r"""init(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber)"""
462 return _pcbnew.IO_ERROR_init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
463
464 def Problem(self):
465 r"""Problem(IO_ERROR self) -> wxString"""
466 return _pcbnew.IO_ERROR_Problem(self)
467
468 def Where(self):
469 r"""Where(IO_ERROR self) -> wxString"""
470 return _pcbnew.IO_ERROR_Where(self)
471
472 def What(self):
473 r"""What(IO_ERROR self) -> wxString"""
474 return _pcbnew.IO_ERROR_What(self)
475 __swig_destroy__ = _pcbnew.delete_IO_ERROR
476
477# Register IO_ERROR in _pcbnew:
478_pcbnew.IO_ERROR_swigregister(IO_ERROR)
479
480
482 r"""wxSetDefaultPyEncoding(char const * encoding)"""
483 return _pcbnew.wxSetDefaultPyEncoding(encoding)
484
486 r"""wxGetDefaultPyEncoding() -> char const *"""
487 return _pcbnew.wxGetDefaultPyEncoding()
489 r"""Proxy of C++ wxRect class."""
490
491 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
492 __repr__ = _swig_repr
493
494 def __init__(self, *args):
495 r"""
496 __init__(wxRect self) -> wxRect
497 __init__(wxRect self, int xx, int yy, int ww, int hh) -> wxRect
498 __init__(wxRect self, wxPoint topLeft, wxPoint bottomRight) -> wxRect
499 __init__(wxRect self, wxPoint pt, wxSize size) -> wxRect
500 __init__(wxRect self, wxSize size) -> wxRect
501 """
502 _pcbnew.wxRect_swiginit(self, _pcbnew.new_wxRect(*args))
503
504 def GetX(self):
505 r"""GetX(wxRect self) -> int"""
506 return _pcbnew.wxRect_GetX(self)
507
508 def SetX(self, xx):
509 r"""SetX(wxRect self, int xx)"""
510 return _pcbnew.wxRect_SetX(self, xx)
511
512 def GetY(self):
513 r"""GetY(wxRect self) -> int"""
514 return _pcbnew.wxRect_GetY(self)
515
516 def SetY(self, yy):
517 r"""SetY(wxRect self, int yy)"""
518 return _pcbnew.wxRect_SetY(self, yy)
519
520 def GetWidth(self):
521 r"""GetWidth(wxRect self) -> int"""
522 return _pcbnew.wxRect_GetWidth(self)
523
524 def SetWidth(self, w):
525 r"""SetWidth(wxRect self, int w)"""
526 return _pcbnew.wxRect_SetWidth(self, w)
527
528 def GetHeight(self):
529 r"""GetHeight(wxRect self) -> int"""
530 return _pcbnew.wxRect_GetHeight(self)
531
532 def SetHeight(self, h):
533 r"""SetHeight(wxRect self, int h)"""
534 return _pcbnew.wxRect_SetHeight(self, h)
535
536 def GetPosition(self):
537 r"""GetPosition(wxRect self) -> wxPoint"""
538 return _pcbnew.wxRect_GetPosition(self)
539
540 def SetPosition(self, p):
541 r"""SetPosition(wxRect self, wxPoint p)"""
542 return _pcbnew.wxRect_SetPosition(self, p)
543 x = property(_pcbnew.wxRect_x_get, _pcbnew.wxRect_x_set, doc=r"""x : int""")
544 y = property(_pcbnew.wxRect_y_get, _pcbnew.wxRect_y_set, doc=r"""y : int""")
545 width = property(_pcbnew.wxRect_width_get, _pcbnew.wxRect_width_set, doc=r"""width : int""")
546 height = property(_pcbnew.wxRect_height_get, _pcbnew.wxRect_height_set, doc=r"""height : int""")
547
548 def Get(self):
549 r"""Get(wxRect self) -> PyObject *"""
550 return _pcbnew.wxRect_Get(self)
551
552
553 def __eq__(self,other):
554 return self.x==other.x and self.y==other.y and self.width==other.width and self.height==other.height
555 def __str__(self): return str(self.Get())
556 def __repr__(self): return 'wxRect'+str(self.Get())
557 def __len__(self): return len(self.Get())
558 def __getitem__(self, index): return self.Get()[index]
559 def __setitem__(self, index, val):
560 if index == 0: self.SetX(val)
561 elif index == 1: self.SetY(val)
562 elif index == 2: self.SetWidth(val)
563 elif index == 3: self.SetHeight(val)
564 else: raise IndexError
565 def __nonzero__(self): return self.Get() != (0,0,0,0)
566 __safe_for_unpickling__ = True
567
568 __swig_destroy__ = _pcbnew.delete_wxRect
569
570# Register wxRect in _pcbnew:
571_pcbnew.wxRect_swigregister(wxRect)
572
574 r"""Proxy of C++ wxSize class."""
575
576 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
577 __repr__ = _swig_repr
578 x = property(_pcbnew.wxSize_x_get, _pcbnew.wxSize_x_set, doc=r"""x : int""")
579 y = property(_pcbnew.wxSize_y_get, _pcbnew.wxSize_y_set, doc=r"""y : int""")
580
581 def __init__(self, *args):
582 r"""
583 __init__(wxSize self, int xx, int yy) -> wxSize
584 __init__(wxSize self, double xx, double yy) -> wxSize
585 """
586 _pcbnew.wxSize_swiginit(self, _pcbnew.new_wxSize(*args))
587
588 def Get(self):
589 r"""Get(wxSize self) -> PyObject *"""
590 return _pcbnew.wxSize_Get(self)
591 __swig_destroy__ = _pcbnew.delete_wxSize
592
593 def SetWidth(self, w):
594 r"""SetWidth(wxSize self, int w)"""
595 return _pcbnew.wxSize_SetWidth(self, w)
596
597 def SetHeight(self, h):
598 r"""SetHeight(wxSize self, int h)"""
599 return _pcbnew.wxSize_SetHeight(self, h)
600
601 def GetWidth(self):
602 r"""GetWidth(wxSize self) -> int"""
603 return _pcbnew.wxSize_GetWidth(self)
604
605 def GetHeight(self):
606 r"""GetHeight(wxSize self) -> int"""
607 return _pcbnew.wxSize_GetHeight(self)
608
609 def Scale(self,xscale,yscale):
610 return wxSize(self.x*xscale,self.y*yscale)
611 def __eq__(self,other):
612 return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
613 def __str__(self): return str(self.Get())
614 def __repr__(self): return 'wxSize'+str(self.Get())
615 def __len__(self): return len(self.Get())
616 def __getitem__(self, index): return self.Get()[index]
617 def __setitem__(self, index, val):
618 if index == 0: self.SetWidth(val)
619 elif index == 1: self.SetHeight(val)
620 else: raise IndexError
621 def __nonzero__(self): return self.Get() != (0,0)
622 __safe_for_unpickling__ = True
623
624
625
626# Register wxSize in _pcbnew:
627_pcbnew.wxSize_swigregister(wxSize)
628
630 r"""Proxy of C++ wxPoint class."""
631
632 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
633 __repr__ = _swig_repr
634 x = property(_pcbnew.wxPoint_x_get, _pcbnew.wxPoint_x_set, doc=r"""x : int""")
635 y = property(_pcbnew.wxPoint_y_get, _pcbnew.wxPoint_y_set, doc=r"""y : int""")
636
637 def __init__(self, *args):
638 r"""
639 __init__(wxPoint self, int xx, int yy) -> wxPoint
640 __init__(wxPoint self, double xx, double yy) -> wxPoint
641 """
642 _pcbnew.wxPoint_swiginit(self, _pcbnew.new_wxPoint(*args))
643 __swig_destroy__ = _pcbnew.delete_wxPoint
644
645 def __add__(self, pt):
646 r"""__add__(wxPoint self, wxPoint pt) -> wxPoint"""
647 return _pcbnew.wxPoint___add__(self, pt)
648
649 def __sub__(self, pt):
650 r"""__sub__(wxPoint self, wxPoint pt) -> wxPoint"""
651 return _pcbnew.wxPoint___sub__(self, pt)
652
653 def Set(self, x, y):
654 r"""Set(wxPoint self, long x, long y)"""
655 return _pcbnew.wxPoint_Set(self, x, y)
656
657 def Get(self):
658 r"""Get(wxPoint self) -> PyObject *"""
659 return _pcbnew.wxPoint_Get(self)
660
661 def __eq__(self,other): return (self.x==other.x and self.y==other.y)
662 def __ne__(self,other): return not (self==other)
663 def __str__(self): return str(self.Get())
664 def __repr__(self): return 'wxPoint'+str(self.Get())
665 def __len__(self): return len(self.Get())
666 def __getitem__(self, index): return self.Get()[index]
667 def __setitem__(self, index, val):
668 if index == 0:
669 self.x = val
670 elif index == 1:
671 self.y = val
672 else:
673 raise IndexError
674 def __nonzero__(self): return self.Get() != (0,0)
675
676
677
678# Register wxPoint in _pcbnew:
679_pcbnew.wxPoint_swigregister(wxPoint)
680
682 r"""Proxy of C++ wxString class."""
683
684 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
685 __repr__ = _swig_repr
686 __swig_destroy__ = _pcbnew.delete_wxString
687
688 def __str__(self):
689 r"""__str__(wxString self) -> PyObject *"""
690 return _pcbnew.wxString___str__(self)
691
692 def __repr__(self): return 'wxString(\'' + self.__str__() + '\')'
693
694
695 def __init__(self):
696 r"""__init__(wxString self) -> wxString"""
697 _pcbnew.wxString_swiginit(self, _pcbnew.new_wxString())
698
699# Register wxString in _pcbnew:
700_pcbnew.wxString_swigregister(wxString)
701
703 r"""Proxy of C++ std::vector< wxPoint > class."""
704
705 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
706 __repr__ = _swig_repr
707
708 def iterator(self):
709 r"""iterator(wxPoint_Vector self) -> SwigPyIterator"""
710 return _pcbnew.wxPoint_Vector_iterator(self)
711 def __iter__(self):
712 return self.iterator()
713
714 def __nonzero__(self):
715 r"""__nonzero__(wxPoint_Vector self) -> bool"""
716 return _pcbnew.wxPoint_Vector___nonzero__(self)
717
718 def __bool__(self):
719 r"""__bool__(wxPoint_Vector self) -> bool"""
720 return _pcbnew.wxPoint_Vector___bool__(self)
721
722 def __len__(self):
723 r"""__len__(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
724 return _pcbnew.wxPoint_Vector___len__(self)
725
726 def __getslice__(self, i, j):
727 r"""__getslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j) -> wxPoint_Vector"""
728 return _pcbnew.wxPoint_Vector___getslice__(self, i, j)
729
730 def __setslice__(self, *args):
731 r"""
732 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)
733 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j, wxPoint_Vector v)
734 """
735 return _pcbnew.wxPoint_Vector___setslice__(self, *args)
736
737 def __delslice__(self, i, j):
738 r"""__delslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)"""
739 return _pcbnew.wxPoint_Vector___delslice__(self, i, j)
740
741 def __delitem__(self, *args):
742 r"""
743 __delitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i)
744 __delitem__(wxPoint_Vector self, PySliceObject * slice)
745 """
746 return _pcbnew.wxPoint_Vector___delitem__(self, *args)
747
748 def __getitem__(self, *args):
749 r"""
750 __getitem__(wxPoint_Vector self, PySliceObject * slice) -> wxPoint_Vector
751 __getitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i) -> wxPoint
752 """
753 return _pcbnew.wxPoint_Vector___getitem__(self, *args)
754
755 def __setitem__(self, *args):
756 r"""
757 __setitem__(wxPoint_Vector self, PySliceObject * slice, wxPoint_Vector v)
758 __setitem__(wxPoint_Vector self, PySliceObject * slice)
759 __setitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, wxPoint x)
760 """
761 return _pcbnew.wxPoint_Vector___setitem__(self, *args)
762
763 def pop(self):
764 r"""pop(wxPoint_Vector self) -> wxPoint"""
765 return _pcbnew.wxPoint_Vector_pop(self)
766
767 def append(self, x):
768 r"""append(wxPoint_Vector self, wxPoint x)"""
769 return _pcbnew.wxPoint_Vector_append(self, x)
770
771 def empty(self):
772 r"""empty(wxPoint_Vector self) -> bool"""
773 return _pcbnew.wxPoint_Vector_empty(self)
774
775 def size(self):
776 r"""size(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
777 return _pcbnew.wxPoint_Vector_size(self)
778
779 def swap(self, v):
780 r"""swap(wxPoint_Vector self, wxPoint_Vector v)"""
781 return _pcbnew.wxPoint_Vector_swap(self, v)
782
783 def begin(self):
784 r"""begin(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
785 return _pcbnew.wxPoint_Vector_begin(self)
786
787 def end(self):
788 r"""end(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
789 return _pcbnew.wxPoint_Vector_end(self)
790
791 def rbegin(self):
792 r"""rbegin(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
793 return _pcbnew.wxPoint_Vector_rbegin(self)
794
795 def rend(self):
796 r"""rend(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
797 return _pcbnew.wxPoint_Vector_rend(self)
798
799 def clear(self):
800 r"""clear(wxPoint_Vector self)"""
801 return _pcbnew.wxPoint_Vector_clear(self)
802
803 def get_allocator(self):
804 r"""get_allocator(wxPoint_Vector self) -> std::vector< wxPoint >::allocator_type"""
805 return _pcbnew.wxPoint_Vector_get_allocator(self)
806
807 def pop_back(self):
808 r"""pop_back(wxPoint_Vector self)"""
809 return _pcbnew.wxPoint_Vector_pop_back(self)
810
811 def erase(self, *args):
812 r"""
813 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator pos) -> std::vector< wxPoint >::iterator
814 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator first, std::vector< wxPoint >::iterator last) -> std::vector< wxPoint >::iterator
815 """
816 return _pcbnew.wxPoint_Vector_erase(self, *args)
817
818 def __init__(self, *args):
819 r"""
820 __init__(wxPoint_Vector self) -> wxPoint_Vector
821 __init__(wxPoint_Vector self, wxPoint_Vector other) -> wxPoint_Vector
822 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size) -> wxPoint_Vector
823 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size, wxPoint value) -> wxPoint_Vector
824 """
825 _pcbnew.wxPoint_Vector_swiginit(self, _pcbnew.new_wxPoint_Vector(*args))
826
827 def push_back(self, x):
828 r"""push_back(wxPoint_Vector self, wxPoint x)"""
829 return _pcbnew.wxPoint_Vector_push_back(self, x)
830
831 def front(self):
832 r"""front(wxPoint_Vector self) -> wxPoint"""
833 return _pcbnew.wxPoint_Vector_front(self)
834
835 def back(self):
836 r"""back(wxPoint_Vector self) -> wxPoint"""
837 return _pcbnew.wxPoint_Vector_back(self)
838
839 def assign(self, n, x):
840 r"""assign(wxPoint_Vector self, std::vector< wxPoint >::size_type n, wxPoint x)"""
841 return _pcbnew.wxPoint_Vector_assign(self, n, x)
842
843 def resize(self, *args):
844 r"""
845 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size)
846 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size, wxPoint x)
847 """
848 return _pcbnew.wxPoint_Vector_resize(self, *args)
849
850 def insert(self, *args):
851 r"""
852 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, wxPoint x) -> std::vector< wxPoint >::iterator
853 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, std::vector< wxPoint >::size_type n, wxPoint x)
854 """
855 return _pcbnew.wxPoint_Vector_insert(self, *args)
856
857 def reserve(self, n):
858 r"""reserve(wxPoint_Vector self, std::vector< wxPoint >::size_type n)"""
859 return _pcbnew.wxPoint_Vector_reserve(self, n)
860
861 def capacity(self):
862 r"""capacity(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
863 return _pcbnew.wxPoint_Vector_capacity(self)
864 __swig_destroy__ = _pcbnew.delete_wxPoint_Vector
865
866# Register wxPoint_Vector in _pcbnew:
867_pcbnew.wxPoint_Vector_swigregister(wxPoint_Vector)
868
870 r"""Proxy of C++ std::vector< enum PCB_LAYER_ID > class."""
871
872 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
873 __repr__ = _swig_repr
874
875 def iterator(self):
876 r"""iterator(base_seqVect self) -> SwigPyIterator"""
877 return _pcbnew.base_seqVect_iterator(self)
878 def __iter__(self):
879 return self.iterator()
880
881 def __nonzero__(self):
882 r"""__nonzero__(base_seqVect self) -> bool"""
883 return _pcbnew.base_seqVect___nonzero__(self)
884
885 def __bool__(self):
886 r"""__bool__(base_seqVect self) -> bool"""
887 return _pcbnew.base_seqVect___bool__(self)
888
889 def __len__(self):
890 r"""__len__(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
891 return _pcbnew.base_seqVect___len__(self)
892
893 def __getslice__(self, i, j):
894 r"""__getslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j) -> base_seqVect"""
895 return _pcbnew.base_seqVect___getslice__(self, i, j)
896
897 def __setslice__(self, *args):
898 r"""
899 __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)
900 __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)
901 """
902 return _pcbnew.base_seqVect___setslice__(self, *args)
903
904 def __delslice__(self, i, j):
905 r"""__delslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)"""
906 return _pcbnew.base_seqVect___delslice__(self, i, j)
907
908 def __delitem__(self, *args):
909 r"""
910 __delitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i)
911 __delitem__(base_seqVect self, PySliceObject * slice)
912 """
913 return _pcbnew.base_seqVect___delitem__(self, *args)
914
915 def __getitem__(self, *args):
916 r"""
917 __getitem__(base_seqVect self, PySliceObject * slice) -> base_seqVect
918 __getitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i) -> std::vector< enum PCB_LAYER_ID >::value_type const &
919 """
920 return _pcbnew.base_seqVect___getitem__(self, *args)
921
922 def __setitem__(self, *args):
923 r"""
924 __setitem__(base_seqVect self, PySliceObject * slice, base_seqVect v)
925 __setitem__(base_seqVect self, PySliceObject * slice)
926 __setitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::value_type const & x)
927 """
928 return _pcbnew.base_seqVect___setitem__(self, *args)
929
930 def pop(self):
931 r"""pop(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type"""
932 return _pcbnew.base_seqVect_pop(self)
933
934 def append(self, x):
935 r"""append(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
936 return _pcbnew.base_seqVect_append(self, x)
937
938 def empty(self):
939 r"""empty(base_seqVect self) -> bool"""
940 return _pcbnew.base_seqVect_empty(self)
941
942 def size(self):
943 r"""size(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
944 return _pcbnew.base_seqVect_size(self)
945
946 def swap(self, v):
947 r"""swap(base_seqVect self, base_seqVect v)"""
948 return _pcbnew.base_seqVect_swap(self, v)
949
950 def begin(self):
951 r"""begin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
952 return _pcbnew.base_seqVect_begin(self)
953
954 def end(self):
955 r"""end(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
956 return _pcbnew.base_seqVect_end(self)
957
958 def rbegin(self):
959 r"""rbegin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
960 return _pcbnew.base_seqVect_rbegin(self)
961
962 def rend(self):
963 r"""rend(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
964 return _pcbnew.base_seqVect_rend(self)
965
966 def clear(self):
967 r"""clear(base_seqVect self)"""
968 return _pcbnew.base_seqVect_clear(self)
969
970 def get_allocator(self):
971 r"""get_allocator(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::allocator_type"""
972 return _pcbnew.base_seqVect_get_allocator(self)
973
974 def pop_back(self):
975 r"""pop_back(base_seqVect self)"""
976 return _pcbnew.base_seqVect_pop_back(self)
977
978 def erase(self, *args):
979 r"""
980 erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos) -> std::vector< enum PCB_LAYER_ID >::iterator
981 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
982 """
983 return _pcbnew.base_seqVect_erase(self, *args)
984
985 def __init__(self, *args):
986 r"""
987 __init__(base_seqVect self) -> base_seqVect
988 __init__(base_seqVect self, base_seqVect other) -> base_seqVect
989 __init__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type size) -> base_seqVect
990 __init__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type size, std::vector< enum PCB_LAYER_ID >::value_type const & value) -> base_seqVect
991 """
992 _pcbnew.base_seqVect_swiginit(self, _pcbnew.new_base_seqVect(*args))
993
994 def push_back(self, x):
995 r"""push_back(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
996 return _pcbnew.base_seqVect_push_back(self, x)
997
998 def front(self):
999 r"""front(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
1000 return _pcbnew.base_seqVect_front(self)
1001
1002 def back(self):
1003 r"""back(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
1004 return _pcbnew.base_seqVect_back(self)
1005
1006 def assign(self, n, x):
1007 r"""assign(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
1008 return _pcbnew.base_seqVect_assign(self, n, x)
1009
1010 def resize(self, *args):
1011 r"""
1012 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size)
1013 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size, std::vector< enum PCB_LAYER_ID >::value_type const & x)
1014 """
1015 return _pcbnew.base_seqVect_resize(self, *args)
1016
1017 def insert(self, *args):
1018 r"""
1019 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
1020 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)
1021 """
1022 return _pcbnew.base_seqVect_insert(self, *args)
1023
1024 def reserve(self, n):
1025 r"""reserve(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n)"""
1026 return _pcbnew.base_seqVect_reserve(self, n)
1027
1028 def capacity(self):
1029 r"""capacity(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
1030 return _pcbnew.base_seqVect_capacity(self)
1031 __swig_destroy__ = _pcbnew.delete_base_seqVect
1032
1033# Register base_seqVect in _pcbnew:
1034_pcbnew.base_seqVect_swigregister(base_seqVect)
1035
1036SKETCH = _pcbnew.SKETCH
1037
1038FILLED = _pcbnew.FILLED
1039
1041 r"""Proxy of C++ KIID class."""
1042
1043 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1044 __repr__ = _swig_repr
1045
1046 def __init__(self, *args):
1047 r"""
1048 __init__(KIID self) -> KIID
1049 __init__(KIID self, int null) -> KIID
1050 __init__(KIID self, string aString) -> KIID
1051 __init__(KIID self, char const * aString) -> KIID
1052 __init__(KIID self, wxString aString) -> KIID
1053 __init__(KIID self, timestamp_t aTimestamp) -> KIID
1054 """
1055 _pcbnew.KIID_swiginit(self, _pcbnew.new_KIID(*args))
1056
1057 def Clone(self, aUUID):
1058 r"""Clone(KIID self, KIID aUUID)"""
1059 return _pcbnew.KIID_Clone(self, aUUID)
1060
1061 def Hash(self):
1062 r"""Hash(KIID self) -> size_t"""
1063 return _pcbnew.KIID_Hash(self)
1064
1066 r"""IsLegacyTimestamp(KIID self) -> bool"""
1067 return _pcbnew.KIID_IsLegacyTimestamp(self)
1068
1070 r"""AsLegacyTimestamp(KIID self) -> timestamp_t"""
1071 return _pcbnew.KIID_AsLegacyTimestamp(self)
1072
1073 def AsString(self):
1074 r"""AsString(KIID self) -> wxString"""
1075 return _pcbnew.KIID_AsString(self)
1076
1078 r"""AsLegacyTimestampString(KIID self) -> wxString"""
1079 return _pcbnew.KIID_AsLegacyTimestampString(self)
1080
1081 @staticmethod
1082 def SniffTest(aCandidate):
1083 r"""SniffTest(wxString aCandidate) -> bool"""
1084 return _pcbnew.KIID_SniffTest(aCandidate)
1085
1086 @staticmethod
1087 def CreateNilUuids(aNil=True):
1088 r"""CreateNilUuids(bool aNil=True)"""
1089 return _pcbnew.KIID_CreateNilUuids(aNil)
1090
1091 @staticmethod
1092 def SeedGenerator(aSeed):
1093 r"""SeedGenerator(unsigned int aSeed)"""
1094 return _pcbnew.KIID_SeedGenerator(aSeed)
1095
1097 r"""ConvertTimestampToUuid(KIID self)"""
1098 return _pcbnew.KIID_ConvertTimestampToUuid(self)
1099
1100 def Increment(self):
1101 r"""Increment(KIID self)"""
1102 return _pcbnew.KIID_Increment(self)
1103
1104 def __eq__(self, rhs):
1105 r"""__eq__(KIID self, KIID rhs) -> bool"""
1106 return _pcbnew.KIID___eq__(self, rhs)
1107
1108 def __ne__(self, rhs):
1109 r"""__ne__(KIID self, KIID rhs) -> bool"""
1110 return _pcbnew.KIID___ne__(self, rhs)
1111
1112 def __lt__(self, rhs):
1113 r"""__lt__(KIID self, KIID rhs) -> bool"""
1114 return _pcbnew.KIID___lt__(self, rhs)
1115
1116 def __gt__(self, rhs):
1117 r"""__gt__(KIID self, KIID rhs) -> bool"""
1118 return _pcbnew.KIID___gt__(self, rhs)
1119 __swig_destroy__ = _pcbnew.delete_KIID
1120
1121# Register KIID in _pcbnew:
1122_pcbnew.KIID_swigregister(KIID)
1123
1124def KIID_SniffTest(aCandidate):
1125 r"""KIID_SniffTest(wxString aCandidate) -> bool"""
1126 return _pcbnew.KIID_SniffTest(aCandidate)
1127
1128def KIID_CreateNilUuids(aNil=True):
1129 r"""KIID_CreateNilUuids(bool aNil=True)"""
1130 return _pcbnew.KIID_CreateNilUuids(aNil)
1131
1133 r"""KIID_SeedGenerator(unsigned int aSeed)"""
1134 return _pcbnew.KIID_SeedGenerator(aSeed)
1135
1136
1138 r"""NilUuid() -> KIID"""
1139 return _pcbnew.NilUuid()
1141 r"""Proxy of C++ std::vector< KIID > class."""
1142
1143 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1144 __repr__ = _swig_repr
1145
1146 def iterator(self):
1147 r"""iterator(KIID_VECT_LIST self) -> SwigPyIterator"""
1148 return _pcbnew.KIID_VECT_LIST_iterator(self)
1149 def __iter__(self):
1150 return self.iterator()
1151
1152 def __nonzero__(self):
1153 r"""__nonzero__(KIID_VECT_LIST self) -> bool"""
1154 return _pcbnew.KIID_VECT_LIST___nonzero__(self)
1155
1156 def __bool__(self):
1157 r"""__bool__(KIID_VECT_LIST self) -> bool"""
1158 return _pcbnew.KIID_VECT_LIST___bool__(self)
1159
1160 def __len__(self):
1161 r"""__len__(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1162 return _pcbnew.KIID_VECT_LIST___len__(self)
1163
1164 def __getslice__(self, i, j):
1165 r"""__getslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j) -> KIID_VECT_LIST"""
1166 return _pcbnew.KIID_VECT_LIST___getslice__(self, i, j)
1167
1168 def __setslice__(self, *args):
1169 r"""
1170 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)
1171 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j, KIID_VECT_LIST v)
1172 """
1173 return _pcbnew.KIID_VECT_LIST___setslice__(self, *args)
1174
1175 def __delslice__(self, i, j):
1176 r"""__delslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)"""
1177 return _pcbnew.KIID_VECT_LIST___delslice__(self, i, j)
1178
1179 def __delitem__(self, *args):
1180 r"""
1181 __delitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i)
1182 __delitem__(KIID_VECT_LIST self, PySliceObject * slice)
1183 """
1184 return _pcbnew.KIID_VECT_LIST___delitem__(self, *args)
1185
1186 def __getitem__(self, *args):
1187 r"""
1188 __getitem__(KIID_VECT_LIST self, PySliceObject * slice) -> KIID_VECT_LIST
1189 __getitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i) -> KIID
1190 """
1191 return _pcbnew.KIID_VECT_LIST___getitem__(self, *args)
1192
1193 def __setitem__(self, *args):
1194 r"""
1195 __setitem__(KIID_VECT_LIST self, PySliceObject * slice, KIID_VECT_LIST v)
1196 __setitem__(KIID_VECT_LIST self, PySliceObject * slice)
1197 __setitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, KIID x)
1198 """
1199 return _pcbnew.KIID_VECT_LIST___setitem__(self, *args)
1200
1201 def pop(self):
1202 r"""pop(KIID_VECT_LIST self) -> KIID"""
1203 return _pcbnew.KIID_VECT_LIST_pop(self)
1204
1205 def append(self, x):
1206 r"""append(KIID_VECT_LIST self, KIID x)"""
1207 return _pcbnew.KIID_VECT_LIST_append(self, x)
1208
1209 def empty(self):
1210 r"""empty(KIID_VECT_LIST self) -> bool"""
1211 return _pcbnew.KIID_VECT_LIST_empty(self)
1212
1213 def size(self):
1214 r"""size(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1215 return _pcbnew.KIID_VECT_LIST_size(self)
1216
1217 def swap(self, v):
1218 r"""swap(KIID_VECT_LIST self, KIID_VECT_LIST v)"""
1219 return _pcbnew.KIID_VECT_LIST_swap(self, v)
1220
1221 def begin(self):
1222 r"""begin(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1223 return _pcbnew.KIID_VECT_LIST_begin(self)
1224
1225 def end(self):
1226 r"""end(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1227 return _pcbnew.KIID_VECT_LIST_end(self)
1228
1229 def rbegin(self):
1230 r"""rbegin(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1231 return _pcbnew.KIID_VECT_LIST_rbegin(self)
1232
1233 def rend(self):
1234 r"""rend(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1235 return _pcbnew.KIID_VECT_LIST_rend(self)
1236
1237 def clear(self):
1238 r"""clear(KIID_VECT_LIST self)"""
1239 return _pcbnew.KIID_VECT_LIST_clear(self)
1240
1241 def get_allocator(self):
1242 r"""get_allocator(KIID_VECT_LIST self) -> std::vector< KIID >::allocator_type"""
1243 return _pcbnew.KIID_VECT_LIST_get_allocator(self)
1244
1245 def pop_back(self):
1246 r"""pop_back(KIID_VECT_LIST self)"""
1247 return _pcbnew.KIID_VECT_LIST_pop_back(self)
1248
1249 def erase(self, *args):
1250 r"""
1251 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator pos) -> std::vector< KIID >::iterator
1252 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator first, std::vector< KIID >::iterator last) -> std::vector< KIID >::iterator
1253 """
1254 return _pcbnew.KIID_VECT_LIST_erase(self, *args)
1255
1256 def __init__(self, *args):
1257 r"""
1258 __init__(KIID_VECT_LIST self) -> KIID_VECT_LIST
1259 __init__(KIID_VECT_LIST self, KIID_VECT_LIST other) -> KIID_VECT_LIST
1260 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size) -> KIID_VECT_LIST
1261 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size, KIID value) -> KIID_VECT_LIST
1262 """
1263 _pcbnew.KIID_VECT_LIST_swiginit(self, _pcbnew.new_KIID_VECT_LIST(*args))
1264
1265 def push_back(self, x):
1266 r"""push_back(KIID_VECT_LIST self, KIID x)"""
1267 return _pcbnew.KIID_VECT_LIST_push_back(self, x)
1268
1269 def front(self):
1270 r"""front(KIID_VECT_LIST self) -> KIID"""
1271 return _pcbnew.KIID_VECT_LIST_front(self)
1272
1273 def back(self):
1274 r"""back(KIID_VECT_LIST self) -> KIID"""
1275 return _pcbnew.KIID_VECT_LIST_back(self)
1276
1277 def assign(self, n, x):
1278 r"""assign(KIID_VECT_LIST self, std::vector< KIID >::size_type n, KIID x)"""
1279 return _pcbnew.KIID_VECT_LIST_assign(self, n, x)
1280
1281 def resize(self, *args):
1282 r"""
1283 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size)
1284 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size, KIID x)
1285 """
1286 return _pcbnew.KIID_VECT_LIST_resize(self, *args)
1287
1288 def insert(self, *args):
1289 r"""
1290 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, KIID x) -> std::vector< KIID >::iterator
1291 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, std::vector< KIID >::size_type n, KIID x)
1292 """
1293 return _pcbnew.KIID_VECT_LIST_insert(self, *args)
1294
1295 def reserve(self, n):
1296 r"""reserve(KIID_VECT_LIST self, std::vector< KIID >::size_type n)"""
1297 return _pcbnew.KIID_VECT_LIST_reserve(self, n)
1298
1299 def capacity(self):
1300 r"""capacity(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1301 return _pcbnew.KIID_VECT_LIST_capacity(self)
1302 __swig_destroy__ = _pcbnew.delete_KIID_VECT_LIST
1303
1304# Register KIID_VECT_LIST in _pcbnew:
1305_pcbnew.KIID_VECT_LIST_swigregister(KIID_VECT_LIST)
1306
1308 r"""Proxy of C++ KIID_PATH class."""
1309
1310 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1311 __repr__ = _swig_repr
1312
1313 def __init__(self, *args):
1314 r"""
1315 __init__(KIID_PATH self) -> KIID_PATH
1316 __init__(KIID_PATH self, wxString aString) -> KIID_PATH
1317 """
1318 _pcbnew.KIID_PATH_swiginit(self, _pcbnew.new_KIID_PATH(*args))
1319
1320 def MakeRelativeTo(self, aPath):
1321 r"""MakeRelativeTo(KIID_PATH self, KIID_PATH aPath) -> bool"""
1322 return _pcbnew.KIID_PATH_MakeRelativeTo(self, aPath)
1323
1324 def EndsWith(self, aPath):
1325 r"""EndsWith(KIID_PATH self, KIID_PATH aPath) -> bool"""
1326 return _pcbnew.KIID_PATH_EndsWith(self, aPath)
1327
1328 def AsString(self):
1329 r"""AsString(KIID_PATH self) -> wxString"""
1330 return _pcbnew.KIID_PATH_AsString(self)
1331
1332 def __eq__(self, rhs):
1333 r"""__eq__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1334 return _pcbnew.KIID_PATH___eq__(self, rhs)
1335
1336 def __lt__(self, rhs):
1337 r"""__lt__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1338 return _pcbnew.KIID_PATH___lt__(self, rhs)
1339
1340 def __iadd__(self, aRhs):
1341 r"""__iadd__(KIID_PATH self, KIID_PATH aRhs) -> KIID_PATH"""
1342 return _pcbnew.KIID_PATH___iadd__(self, aRhs)
1343 __swig_destroy__ = _pcbnew.delete_KIID_PATH
1344
1345# Register KIID_PATH in _pcbnew:
1346_pcbnew.KIID_PATH_swigregister(KIID_PATH)
1347
1349 r"""Proxy of C++ KIID_NIL_SET_RESET class."""
1350
1351 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1352 __repr__ = _swig_repr
1353
1354 def __init__(self):
1355 r"""__init__(KIID_NIL_SET_RESET self) -> KIID_NIL_SET_RESET"""
1356 _pcbnew.KIID_NIL_SET_RESET_swiginit(self, _pcbnew.new_KIID_NIL_SET_RESET())
1357 __swig_destroy__ = _pcbnew.delete_KIID_NIL_SET_RESET
1358
1359# Register KIID_NIL_SET_RESET in _pcbnew:
1360_pcbnew.KIID_NIL_SET_RESET_swigregister(KIID_NIL_SET_RESET)
1361
1362NOT_USED = _pcbnew.NOT_USED
1363
1364TYPE_NOT_INIT = _pcbnew.TYPE_NOT_INIT
1365
1366PCB_T = _pcbnew.PCB_T
1367
1368SCREEN_T = _pcbnew.SCREEN_T
1369
1370PCB_FOOTPRINT_T = _pcbnew.PCB_FOOTPRINT_T
1371
1372PCB_PAD_T = _pcbnew.PCB_PAD_T
1373
1374PCB_SHAPE_T = _pcbnew.PCB_SHAPE_T
1375
1376PCB_BITMAP_T = _pcbnew.PCB_BITMAP_T
1377
1378PCB_TEXT_T = _pcbnew.PCB_TEXT_T
1379
1380PCB_TEXTBOX_T = _pcbnew.PCB_TEXTBOX_T
1381
1382PCB_FP_TEXT_T = _pcbnew.PCB_FP_TEXT_T
1383
1384PCB_FP_TEXTBOX_T = _pcbnew.PCB_FP_TEXTBOX_T
1385
1386PCB_FP_SHAPE_T = _pcbnew.PCB_FP_SHAPE_T
1387
1388PCB_FP_DIM_ALIGNED_T = _pcbnew.PCB_FP_DIM_ALIGNED_T
1389
1390PCB_FP_DIM_LEADER_T = _pcbnew.PCB_FP_DIM_LEADER_T
1391
1392PCB_FP_DIM_CENTER_T = _pcbnew.PCB_FP_DIM_CENTER_T
1393
1394PCB_FP_DIM_RADIAL_T = _pcbnew.PCB_FP_DIM_RADIAL_T
1395
1396PCB_FP_DIM_ORTHOGONAL_T = _pcbnew.PCB_FP_DIM_ORTHOGONAL_T
1397
1398PCB_FP_ZONE_T = _pcbnew.PCB_FP_ZONE_T
1399
1400PCB_TRACE_T = _pcbnew.PCB_TRACE_T
1401
1402PCB_VIA_T = _pcbnew.PCB_VIA_T
1403
1404PCB_ARC_T = _pcbnew.PCB_ARC_T
1405
1406PCB_MARKER_T = _pcbnew.PCB_MARKER_T
1407
1408PCB_DIMENSION_T = _pcbnew.PCB_DIMENSION_T
1409
1410PCB_DIM_ALIGNED_T = _pcbnew.PCB_DIM_ALIGNED_T
1411
1412PCB_DIM_LEADER_T = _pcbnew.PCB_DIM_LEADER_T
1413
1414PCB_DIM_CENTER_T = _pcbnew.PCB_DIM_CENTER_T
1415
1416PCB_DIM_RADIAL_T = _pcbnew.PCB_DIM_RADIAL_T
1417
1418PCB_DIM_ORTHOGONAL_T = _pcbnew.PCB_DIM_ORTHOGONAL_T
1419
1420PCB_TARGET_T = _pcbnew.PCB_TARGET_T
1421
1422PCB_ZONE_T = _pcbnew.PCB_ZONE_T
1423
1424PCB_ITEM_LIST_T = _pcbnew.PCB_ITEM_LIST_T
1425
1426PCB_NETINFO_T = _pcbnew.PCB_NETINFO_T
1427
1428PCB_GROUP_T = _pcbnew.PCB_GROUP_T
1429
1430PCB_LOCATE_STDVIA_T = _pcbnew.PCB_LOCATE_STDVIA_T
1431
1432PCB_LOCATE_UVIA_T = _pcbnew.PCB_LOCATE_UVIA_T
1433
1434PCB_LOCATE_BBVIA_T = _pcbnew.PCB_LOCATE_BBVIA_T
1435
1436PCB_LOCATE_TEXT_T = _pcbnew.PCB_LOCATE_TEXT_T
1437
1438PCB_LOCATE_GRAPHIC_T = _pcbnew.PCB_LOCATE_GRAPHIC_T
1439
1440PCB_LOCATE_HOLE_T = _pcbnew.PCB_LOCATE_HOLE_T
1441
1442PCB_LOCATE_PTH_T = _pcbnew.PCB_LOCATE_PTH_T
1443
1444PCB_LOCATE_NPTH_T = _pcbnew.PCB_LOCATE_NPTH_T
1445
1446PCB_LOCATE_BOARD_EDGE_T = _pcbnew.PCB_LOCATE_BOARD_EDGE_T
1447
1448PCB_SHAPE_LOCATE_SEGMENT_T = _pcbnew.PCB_SHAPE_LOCATE_SEGMENT_T
1449
1450PCB_SHAPE_LOCATE_RECT_T = _pcbnew.PCB_SHAPE_LOCATE_RECT_T
1451
1452PCB_SHAPE_LOCATE_CIRCLE_T = _pcbnew.PCB_SHAPE_LOCATE_CIRCLE_T
1453
1454PCB_SHAPE_LOCATE_ARC_T = _pcbnew.PCB_SHAPE_LOCATE_ARC_T
1455
1456PCB_SHAPE_LOCATE_POLY_T = _pcbnew.PCB_SHAPE_LOCATE_POLY_T
1457
1458PCB_SHAPE_LOCATE_BEZIER_T = _pcbnew.PCB_SHAPE_LOCATE_BEZIER_T
1459
1460SCH_MARKER_T = _pcbnew.SCH_MARKER_T
1461
1462SCH_JUNCTION_T = _pcbnew.SCH_JUNCTION_T
1463
1464SCH_NO_CONNECT_T = _pcbnew.SCH_NO_CONNECT_T
1465
1466SCH_BUS_WIRE_ENTRY_T = _pcbnew.SCH_BUS_WIRE_ENTRY_T
1467
1468SCH_BUS_BUS_ENTRY_T = _pcbnew.SCH_BUS_BUS_ENTRY_T
1469
1470SCH_LINE_T = _pcbnew.SCH_LINE_T
1471
1472SCH_SHAPE_T = _pcbnew.SCH_SHAPE_T
1473
1474SCH_BITMAP_T = _pcbnew.SCH_BITMAP_T
1475
1476SCH_TEXTBOX_T = _pcbnew.SCH_TEXTBOX_T
1477
1478SCH_TEXT_T = _pcbnew.SCH_TEXT_T
1479
1480SCH_LABEL_T = _pcbnew.SCH_LABEL_T
1481
1482SCH_GLOBAL_LABEL_T = _pcbnew.SCH_GLOBAL_LABEL_T
1483
1484SCH_HIER_LABEL_T = _pcbnew.SCH_HIER_LABEL_T
1485
1486SCH_DIRECTIVE_LABEL_T = _pcbnew.SCH_DIRECTIVE_LABEL_T
1487
1488SCH_FIELD_T = _pcbnew.SCH_FIELD_T
1489
1490SCH_SYMBOL_T = _pcbnew.SCH_SYMBOL_T
1491
1492SCH_SHEET_PIN_T = _pcbnew.SCH_SHEET_PIN_T
1493
1494SCH_SHEET_T = _pcbnew.SCH_SHEET_T
1495
1496SCH_PIN_T = _pcbnew.SCH_PIN_T
1497
1498SCH_FIELD_LOCATE_REFERENCE_T = _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T
1499
1500SCH_FIELD_LOCATE_VALUE_T = _pcbnew.SCH_FIELD_LOCATE_VALUE_T
1501
1502SCH_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T
1503
1504SCH_FIELD_LOCATE_DATASHEET_T = _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T
1505
1506SCH_ITEM_LOCATE_WIRE_T = _pcbnew.SCH_ITEM_LOCATE_WIRE_T
1507
1508SCH_ITEM_LOCATE_BUS_T = _pcbnew.SCH_ITEM_LOCATE_BUS_T
1509
1510SCH_ITEM_LOCATE_GRAPHIC_LINE_T = _pcbnew.SCH_ITEM_LOCATE_GRAPHIC_LINE_T
1511
1512SCH_LABEL_LOCATE_ANY_T = _pcbnew.SCH_LABEL_LOCATE_ANY_T
1513
1514SCH_LABEL_LOCATE_WIRE_T = _pcbnew.SCH_LABEL_LOCATE_WIRE_T
1515
1516SCH_LABEL_LOCATE_BUS_T = _pcbnew.SCH_LABEL_LOCATE_BUS_T
1517
1518SCH_SYMBOL_LOCATE_POWER_T = _pcbnew.SCH_SYMBOL_LOCATE_POWER_T
1519
1520SCH_LOCATE_ANY_T = _pcbnew.SCH_LOCATE_ANY_T
1521
1522SCH_SCREEN_T = _pcbnew.SCH_SCREEN_T
1523
1524SCHEMATIC_T = _pcbnew.SCHEMATIC_T
1525
1526LIB_SYMBOL_T = _pcbnew.LIB_SYMBOL_T
1527
1528LIB_SHAPE_T = _pcbnew.LIB_SHAPE_T
1529
1530LIB_TEXT_T = _pcbnew.LIB_TEXT_T
1531
1532LIB_TEXTBOX_T = _pcbnew.LIB_TEXTBOX_T
1533
1534LIB_PIN_T = _pcbnew.LIB_PIN_T
1535
1536LIB_FIELD_T = _pcbnew.LIB_FIELD_T
1537
1538GERBER_LAYOUT_T = _pcbnew.GERBER_LAYOUT_T
1539
1540GERBER_DRAW_ITEM_T = _pcbnew.GERBER_DRAW_ITEM_T
1541
1542GERBER_IMAGE_T = _pcbnew.GERBER_IMAGE_T
1543
1544WSG_LINE_T = _pcbnew.WSG_LINE_T
1545
1546WSG_RECT_T = _pcbnew.WSG_RECT_T
1547
1548WSG_POLY_T = _pcbnew.WSG_POLY_T
1549
1550WSG_TEXT_T = _pcbnew.WSG_TEXT_T
1551
1552WSG_BITMAP_T = _pcbnew.WSG_BITMAP_T
1553
1554WSG_PAGE_T = _pcbnew.WSG_PAGE_T
1555
1556WS_PROXY_UNDO_ITEM_T = _pcbnew.WS_PROXY_UNDO_ITEM_T
1557
1558WS_PROXY_UNDO_ITEM_PLUS_T = _pcbnew.WS_PROXY_UNDO_ITEM_PLUS_T
1559
1560SYMBOL_LIB_TABLE_T = _pcbnew.SYMBOL_LIB_TABLE_T
1561
1562FP_LIB_TABLE_T = _pcbnew.FP_LIB_TABLE_T
1563
1564SYMBOL_LIBS_T = _pcbnew.SYMBOL_LIBS_T
1565
1566SEARCH_STACK_T = _pcbnew.SEARCH_STACK_T
1567
1568S3D_CACHE_T = _pcbnew.S3D_CACHE_T
1569
1570MAX_STRUCT_TYPE_ID = _pcbnew.MAX_STRUCT_TYPE_ID
1571
1572
1573def BaseType(aType):
1574 r"""BaseType(KICAD_T const aType) -> KICAD_T"""
1575 return _pcbnew.BaseType(aType)
1576
1577def IsNullType(aType):
1578 r"""IsNullType(KICAD_T const aType) -> bool"""
1579 return _pcbnew.IsNullType(aType)
1580
1582 r"""IsInstantiableType(KICAD_T const aType) -> bool"""
1583 return _pcbnew.IsInstantiableType(aType)
1584
1586 r"""IsEeschemaType(KICAD_T const aType) -> bool"""
1587 return _pcbnew.IsEeschemaType(aType)
1588
1589def IsPcbnewType(aType):
1590 r"""IsPcbnewType(KICAD_T const aType) -> bool"""
1591 return _pcbnew.IsPcbnewType(aType)
1592
1594 r"""IsGerbviewType(KICAD_T const aType) -> bool"""
1595 return _pcbnew.IsGerbviewType(aType)
1596
1598 r"""IsPageLayoutEditorType(KICAD_T const aType) -> bool"""
1599 return _pcbnew.IsPageLayoutEditorType(aType)
1600
1601def IsMiscType(aType):
1602 r"""IsMiscType(KICAD_T const aType) -> bool"""
1603 return _pcbnew.IsMiscType(aType)
1604
1605def IsTypeCorrect(aType):
1606 r"""IsTypeCorrect(KICAD_T aType) -> bool"""
1607 return _pcbnew.IsTypeCorrect(aType)
1608
1610 r"""IsTypeAvailable(KICAD_T aType) -> bool"""
1611 return _pcbnew.IsTypeAvailable(aType)
1612INSPECT_RESULT_QUIT = _pcbnew.INSPECT_RESULT_QUIT
1613
1614INSPECT_RESULT_CONTINUE = _pcbnew.INSPECT_RESULT_CONTINUE
1615
1617 r"""Proxy of C++ EDA_ITEM class."""
1618
1619 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1620
1621 def __init__(self, *args, **kwargs):
1622 raise AttributeError("No constructor defined - class is abstract")
1623 __repr__ = _swig_repr
1624 __swig_destroy__ = _pcbnew.delete_EDA_ITEM
1625
1626 def Type(self):
1627 r"""Type(EDA_ITEM self) -> KICAD_T"""
1628 return _pcbnew.EDA_ITEM_Type(self)
1629
1630 def GetParent(self):
1631 r"""GetParent(EDA_ITEM self) -> EDA_ITEM"""
1632 return _pcbnew.EDA_ITEM_GetParent(self)
1633
1634 def SetParent(self, aParent):
1635 r"""SetParent(EDA_ITEM self, EDA_ITEM aParent)"""
1636 return _pcbnew.EDA_ITEM_SetParent(self, aParent)
1637
1638 def IsModified(self):
1639 r"""IsModified(EDA_ITEM self) -> bool"""
1640 return _pcbnew.EDA_ITEM_IsModified(self)
1641
1642 def IsNew(self):
1643 r"""IsNew(EDA_ITEM self) -> bool"""
1644 return _pcbnew.EDA_ITEM_IsNew(self)
1645
1646 def IsMoving(self):
1647 r"""IsMoving(EDA_ITEM self) -> bool"""
1648 return _pcbnew.EDA_ITEM_IsMoving(self)
1649
1650 def IsSelected(self):
1651 r"""IsSelected(EDA_ITEM self) -> bool"""
1652 return _pcbnew.EDA_ITEM_IsSelected(self)
1653
1654 def IsEntered(self):
1655 r"""IsEntered(EDA_ITEM self) -> bool"""
1656 return _pcbnew.EDA_ITEM_IsEntered(self)
1657
1658 def IsBrightened(self):
1659 r"""IsBrightened(EDA_ITEM self) -> bool"""
1660 return _pcbnew.EDA_ITEM_IsBrightened(self)
1661
1662 def IsRollover(self):
1663 r"""IsRollover(EDA_ITEM self) -> bool"""
1664 return _pcbnew.EDA_ITEM_IsRollover(self)
1665
1666 def SetSelected(self):
1667 r"""SetSelected(EDA_ITEM self)"""
1668 return _pcbnew.EDA_ITEM_SetSelected(self)
1669
1670 def SetBrightened(self):
1671 r"""SetBrightened(EDA_ITEM self)"""
1672 return _pcbnew.EDA_ITEM_SetBrightened(self)
1673
1674 def ClearSelected(self):
1675 r"""ClearSelected(EDA_ITEM self)"""
1676 return _pcbnew.EDA_ITEM_ClearSelected(self)
1677
1679 r"""ClearBrightened(EDA_ITEM self)"""
1680 return _pcbnew.EDA_ITEM_ClearBrightened(self)
1681
1682 def SetModified(self):
1683 r"""SetModified(EDA_ITEM self)"""
1684 return _pcbnew.EDA_ITEM_SetModified(self)
1685
1686 def GetState(self, type):
1687 r"""GetState(EDA_ITEM self, EDA_ITEM_FLAGS type) -> int"""
1688 return _pcbnew.EDA_ITEM_GetState(self, type)
1689
1690 def SetState(self, type, state):
1691 r"""SetState(EDA_ITEM self, EDA_ITEM_FLAGS type, bool state)"""
1692 return _pcbnew.EDA_ITEM_SetState(self, type, state)
1693
1694 def GetStatus(self):
1695 r"""GetStatus(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1696 return _pcbnew.EDA_ITEM_GetStatus(self)
1697
1698 def SetStatus(self, aStatus):
1699 r"""SetStatus(EDA_ITEM self, EDA_ITEM_FLAGS aStatus)"""
1700 return _pcbnew.EDA_ITEM_SetStatus(self, aStatus)
1701
1702 def SetFlags(self, aMask):
1703 r"""SetFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1704 return _pcbnew.EDA_ITEM_SetFlags(self, aMask)
1705
1706 def XorFlags(self, aMask):
1707 r"""XorFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1708 return _pcbnew.EDA_ITEM_XorFlags(self, aMask)
1709
1710 def ClearFlags(self, *args):
1711 r"""ClearFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)"""
1712 return _pcbnew.EDA_ITEM_ClearFlags(self, *args)
1713
1714 def GetFlags(self):
1715 r"""GetFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1716 return _pcbnew.EDA_ITEM_GetFlags(self)
1717
1718 def HasFlag(self, aFlag):
1719 r"""HasFlag(EDA_ITEM self, EDA_ITEM_FLAGS aFlag) -> bool"""
1720 return _pcbnew.EDA_ITEM_HasFlag(self, aFlag)
1721
1722 def GetEditFlags(self):
1723 r"""GetEditFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1724 return _pcbnew.EDA_ITEM_GetEditFlags(self)
1725
1727 r"""ClearTempFlags(EDA_ITEM self)"""
1728 return _pcbnew.EDA_ITEM_ClearTempFlags(self)
1729
1731 r"""ClearEditFlags(EDA_ITEM self)"""
1732 return _pcbnew.EDA_ITEM_ClearEditFlags(self)
1733
1734 def RenderAsBitmap(self, aWorldScale):
1735 r"""RenderAsBitmap(EDA_ITEM self, double aWorldScale) -> bool"""
1736 return _pcbnew.EDA_ITEM_RenderAsBitmap(self, aWorldScale)
1737
1738 def SetIsShownAsBitmap(self, aBitmap):
1739 r"""SetIsShownAsBitmap(EDA_ITEM self, bool aBitmap)"""
1740 return _pcbnew.EDA_ITEM_SetIsShownAsBitmap(self, aBitmap)
1741
1743 r"""IsShownAsBitmap(EDA_ITEM self) -> bool"""
1744 return _pcbnew.EDA_ITEM_IsShownAsBitmap(self)
1745
1746 def IsType(self, aScanTypes):
1747 r"""IsType(EDA_ITEM self, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> bool"""
1748 return _pcbnew.EDA_ITEM_IsType(self, aScanTypes)
1749
1750 def SetForceVisible(self, aEnable):
1751 r"""SetForceVisible(EDA_ITEM self, bool aEnable)"""
1752 return _pcbnew.EDA_ITEM_SetForceVisible(self, aEnable)
1753
1755 r"""IsForceVisible(EDA_ITEM self) -> bool"""
1756 return _pcbnew.EDA_ITEM_IsForceVisible(self)
1757
1758 def GetMsgPanelInfo(self, aFrame, aList):
1759 r"""GetMsgPanelInfo(EDA_ITEM self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
1760 return _pcbnew.EDA_ITEM_GetMsgPanelInfo(self, aFrame, aList)
1761
1763 r"""GetFriendlyName(EDA_ITEM self) -> wxString"""
1764 return _pcbnew.EDA_ITEM_GetFriendlyName(self)
1765
1766 def HitTest(self, *args):
1767 r"""
1768 HitTest(EDA_ITEM self, VECTOR2I aPosition, int aAccuracy=0) -> bool
1769 HitTest(EDA_ITEM self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
1770 """
1771 return _pcbnew.EDA_ITEM_HitTest(self, *args)
1772
1774 r"""GetBoundingBox(EDA_ITEM self) -> BOX2I"""
1775 return _pcbnew.EDA_ITEM_GetBoundingBox(self)
1776
1777 def GetPosition(self):
1778 r"""GetPosition(EDA_ITEM self) -> VECTOR2I"""
1779 return _pcbnew.EDA_ITEM_GetPosition(self)
1780
1781 def SetPosition(self, aPos):
1782 r"""SetPosition(EDA_ITEM self, VECTOR2I aPos)"""
1783 return _pcbnew.EDA_ITEM_SetPosition(self, aPos)
1784
1786 r"""GetFocusPosition(EDA_ITEM self) -> VECTOR2I"""
1787 return _pcbnew.EDA_ITEM_GetFocusPosition(self)
1788
1790 r"""GetSortPosition(EDA_ITEM self) -> VECTOR2I"""
1791 return _pcbnew.EDA_ITEM_GetSortPosition(self)
1792
1793 def Clone(self):
1794 r"""Clone(EDA_ITEM self) -> EDA_ITEM"""
1795 return _pcbnew.EDA_ITEM_Clone(self)
1796
1797 def Visit(self, inspector, testData, aScanTypes):
1798 r"""Visit(EDA_ITEM self, INSPECTOR inspector, void * testData, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> INSPECT_RESULT"""
1799 return _pcbnew.EDA_ITEM_Visit(self, inspector, testData, aScanTypes)
1800
1801 def GetClass(self):
1802 r"""GetClass(EDA_ITEM self) -> wxString"""
1803 return _pcbnew.EDA_ITEM_GetClass(self)
1804
1805 def GetTypeDesc(self):
1806 r"""GetTypeDesc(EDA_ITEM self) -> wxString"""
1807 return _pcbnew.EDA_ITEM_GetTypeDesc(self)
1808
1809 def GetItemDescription(self, aUnitsProvider):
1810 r"""GetItemDescription(EDA_ITEM self, UNITS_PROVIDER aUnitsProvider) -> wxString"""
1811 return _pcbnew.EDA_ITEM_GetItemDescription(self, aUnitsProvider)
1812
1813 def GetMenuImage(self):
1814 r"""GetMenuImage(EDA_ITEM self) -> BITMAPS"""
1815 return _pcbnew.EDA_ITEM_GetMenuImage(self)
1816
1817 def Matches(self, aSearchData, aAuxData):
1818 r"""Matches(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData) -> bool"""
1819 return _pcbnew.EDA_ITEM_Matches(self, aSearchData, aAuxData)
1820
1821 def Replace(self, *args):
1822 r"""
1823 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, wxString aText) -> bool
1824 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData=None) -> bool
1825 """
1826 return _pcbnew.EDA_ITEM_Replace(self, *args)
1827
1828 def IsReplaceable(self):
1829 r"""IsReplaceable(EDA_ITEM self) -> bool"""
1830 return _pcbnew.EDA_ITEM_IsReplaceable(self)
1831
1832 def __lt__(self, aItem):
1833 r"""__lt__(EDA_ITEM self, EDA_ITEM aItem) -> bool"""
1834 return _pcbnew.EDA_ITEM___lt__(self, aItem)
1835
1836 @staticmethod
1837 def Sort(aLeft, aRight):
1838 r"""Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1839 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1840
1841 def ViewBBox(self):
1842 r"""ViewBBox(EDA_ITEM self) -> BOX2I"""
1843 return _pcbnew.EDA_ITEM_ViewBBox(self)
1844
1845 def ViewGetLayers(self, aLayers, aCount):
1846 r"""ViewGetLayers(EDA_ITEM self, int [] aLayers, int & aCount)"""
1847 return _pcbnew.EDA_ITEM_ViewGetLayers(self, aLayers, aCount)
1848 m_Uuid = property(_pcbnew.EDA_ITEM_m_Uuid_get, doc=r"""m_Uuid : q(const).KIID""")
1849
1850# Register EDA_ITEM in _pcbnew:
1851_pcbnew.EDA_ITEM_swigregister(EDA_ITEM)
1852
1853def EDA_ITEM_Sort(aLeft, aRight):
1854 r"""EDA_ITEM_Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1855 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1856
1857
1858def new_clone(aItem):
1859 r"""new_clone(EDA_ITEM aItem) -> EDA_ITEM"""
1860 return _pcbnew.new_clone(aItem)
1862 r"""Proxy of C++ EDA_IU_SCALE class."""
1863
1864 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1865 __repr__ = _swig_repr
1866 IU_PER_MM = property(_pcbnew.EDA_IU_SCALE_IU_PER_MM_get, doc=r"""IU_PER_MM : q(const).double""")
1867 IU_PER_MILS = property(_pcbnew.EDA_IU_SCALE_IU_PER_MILS_get, doc=r"""IU_PER_MILS : q(const).double""")
1868 MM_PER_IU = property(_pcbnew.EDA_IU_SCALE_MM_PER_IU_get, doc=r"""MM_PER_IU : q(const).double""")
1869
1870 def __init__(self, aIUPerMM):
1871 r"""__init__(EDA_IU_SCALE self, double aIUPerMM) -> EDA_IU_SCALE"""
1872 _pcbnew.EDA_IU_SCALE_swiginit(self, _pcbnew.new_EDA_IU_SCALE(aIUPerMM))
1873
1874 def IUTomm(self, iu):
1875 r"""IUTomm(EDA_IU_SCALE self, int iu) -> double"""
1876 return _pcbnew.EDA_IU_SCALE_IUTomm(self, iu)
1877
1878 def mmToIU(self, mm):
1879 r"""mmToIU(EDA_IU_SCALE self, double mm) -> int"""
1880 return _pcbnew.EDA_IU_SCALE_mmToIU(self, mm)
1881
1882 def MilsToIU(self, mils):
1883 r"""MilsToIU(EDA_IU_SCALE self, int mils) -> int"""
1884 return _pcbnew.EDA_IU_SCALE_MilsToIU(self, mils)
1885
1886 def IUToMils(self, iu):
1887 r"""IUToMils(EDA_IU_SCALE self, int iu) -> int"""
1888 return _pcbnew.EDA_IU_SCALE_IUToMils(self, iu)
1889 __swig_destroy__ = _pcbnew.delete_EDA_IU_SCALE
1890
1891# Register EDA_IU_SCALE in _pcbnew:
1892_pcbnew.EDA_IU_SCALE_swigregister(EDA_IU_SCALE)
1893GERB_IU_PER_MM = cvar.GERB_IU_PER_MM
1894PCB_IU_PER_MM = cvar.PCB_IU_PER_MM
1895PL_IU_PER_MM = cvar.PL_IU_PER_MM
1896SCH_IU_PER_MM = cvar.SCH_IU_PER_MM
1897
1898EDA_DATA_TYPE_DISTANCE = _pcbnew.EDA_DATA_TYPE_DISTANCE
1899
1900EDA_DATA_TYPE_AREA = _pcbnew.EDA_DATA_TYPE_AREA
1901
1902EDA_DATA_TYPE_VOLUME = _pcbnew.EDA_DATA_TYPE_VOLUME
1903
1904EDA_UNITS_INCHES = _pcbnew.EDA_UNITS_INCHES
1905
1906EDA_UNITS_MILLIMETRES = _pcbnew.EDA_UNITS_MILLIMETRES
1907
1908EDA_UNITS_UNSCALED = _pcbnew.EDA_UNITS_UNSCALED
1909
1910EDA_UNITS_DEGREES = _pcbnew.EDA_UNITS_DEGREES
1911
1912EDA_UNITS_PERCENT = _pcbnew.EDA_UNITS_PERCENT
1913
1914EDA_UNITS_MILS = _pcbnew.EDA_UNITS_MILS
1915
1916
1918 r"""IsImperialUnit(EDA_UNITS aUnit) -> bool"""
1919 return _pcbnew.IsImperialUnit(aUnit)
1920
1921def IsMetricUnit(aUnit):
1922 r"""IsMetricUnit(EDA_UNITS aUnit) -> bool"""
1923 return _pcbnew.IsMetricUnit(aUnit)
1924
1925def Mm2mils(aVal):
1926 r"""Mm2mils(double aVal) -> int"""
1927 return _pcbnew.Mm2mils(aVal)
1928
1929def Mils2mm(aVal):
1930 r"""Mils2mm(double aVal) -> int"""
1931 return _pcbnew.Mils2mm(aVal)
1932
1933def FetchUnitsFromString(aTextValue, aUnits):
1934 r"""FetchUnitsFromString(wxString aTextValue, EDA_UNITS & aUnits) -> bool"""
1935 return _pcbnew.FetchUnitsFromString(aTextValue, aUnits)
1936
1937def GetText(*args):
1938 r"""GetText(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1939 return _pcbnew.GetText(*args)
1940
1941def GetLabel(*args):
1942 r"""GetLabel(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1943 return _pcbnew.GetLabel(*args)
1944
1945def FormatAngle(aAngle):
1946 r"""FormatAngle(EDA_ANGLE aAngle) -> string"""
1947 return _pcbnew.FormatAngle(aAngle)
1948
1950 r"""
1951 FormatInternalUnits(EDA_IU_SCALE aIuScale, int aValue) -> string
1952 FormatInternalUnits(EDA_IU_SCALE aIuScale, wxPoint aPoint) -> string
1953 FormatInternalUnits(EDA_IU_SCALE aIuScale, wxSize aSize) -> string
1954 FormatInternalUnits(EDA_IU_SCALE aIuScale, VECTOR2I aPoint) -> string
1955 """
1956 return _pcbnew.FormatInternalUnits(*args)
1957
1958def Mils2IU(aIuScale, mils):
1959 r"""Mils2IU(EDA_IU_SCALE aIuScale, int mils) -> int"""
1960 return _pcbnew.Mils2IU(aIuScale, mils)
1961
1962def ToUserUnit(aIuScale, aUnit, aValue):
1963 r"""ToUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1964 return _pcbnew.ToUserUnit(aIuScale, aUnit, aValue)
1965
1967 r"""StringFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1968 return _pcbnew.StringFromValue(*args)
1969
1971 r"""
1972 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1973 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, int aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1974 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, long long aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1975 MessageTextFromValue(EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
1976 """
1977 return _pcbnew.MessageTextFromValue(*args)
1978
1979def FromUserUnit(aIuScale, aUnit, aValue):
1980 r"""FromUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1981 return _pcbnew.FromUserUnit(aIuScale, aUnit, aValue)
1982
1984 r"""
1985 DoubleValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> double
1986 DoubleValueFromString(wxString aTextValue) -> double
1987 """
1988 return _pcbnew.DoubleValueFromString(*args)
1989
1991 r"""
1992 ValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> long long
1993 ValueFromString(wxString aTextValue) -> long long
1994 """
1995 return _pcbnew.ValueFromString(*args)
1996
1998 r"""SearchHelpFileFullPath(wxString aBaseName) -> wxString"""
1999 return _pcbnew.SearchHelpFileFullPath(aBaseName)
2000
2001def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None):
2002 r"""EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename, REPORTER * aReporter=None) -> bool"""
2003 return _pcbnew.EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter)
2004
2005def ExpandEnvVarSubstitutions(aString, aProject):
2006 r"""ExpandEnvVarSubstitutions(wxString aString, PROJECT const * aProject) -> wxString"""
2007 return _pcbnew.ExpandEnvVarSubstitutions(aString, aProject)
2008
2010 r"""
2011 ExpandTextVars(wxString aSource, std::function< bool (wxString *) > const * aResolver) -> wxString
2012 ExpandTextVars(wxString aSource, PROJECT const * aProject) -> wxString
2013 """
2014 return _pcbnew.ExpandTextVars(*args)
2015
2016def ResolveUriByEnvVars(aUri, aProject):
2017 r"""ResolveUriByEnvVars(wxString aUri, PROJECT * aProject) -> wxString"""
2018 return _pcbnew.ResolveUriByEnvVars(aUri, aProject)
2019
2020def TimestampDir(aDirPath, aFilespec):
2021 r"""TimestampDir(wxString aDirPath, wxString aFilespec) -> long long"""
2022 return _pcbnew.TimestampDir(aDirPath, aFilespec)
2023
2025 r"""WarnUserIfOperatingSystemUnsupported() -> bool"""
2026 return _pcbnew.WarnUserIfOperatingSystemUnsupported()
2027
2028def StrPrintf(*args):
2029 r"""
2030 StrPrintf(string aResult, char const * aFormat) -> int
2031 StrPrintf(char const * format) -> string
2032 """
2033 return _pcbnew.StrPrintf(*args)
2034
2035def SafeReadFile(aFilePath, aReadType):
2036 r"""SafeReadFile(wxString aFilePath, wxString aReadType) -> wxString"""
2037 return _pcbnew.SafeReadFile(aFilePath, aReadType)
2038LINE_READER_LINE_DEFAULT_MAX = _pcbnew.LINE_READER_LINE_DEFAULT_MAX
2039
2040LINE_READER_LINE_INITIAL_SIZE = _pcbnew.LINE_READER_LINE_INITIAL_SIZE
2041
2043 r"""Proxy of C++ LINE_READER class."""
2044
2045 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2046
2047 def __init__(self, *args, **kwargs):
2048 raise AttributeError("No constructor defined - class is abstract")
2049 __repr__ = _swig_repr
2050 __swig_destroy__ = _pcbnew.delete_LINE_READER
2051
2052 def ReadLine(self):
2053 r"""ReadLine(LINE_READER self) -> char *"""
2054 return _pcbnew.LINE_READER_ReadLine(self)
2055
2056 def GetSource(self):
2057 r"""GetSource(LINE_READER self) -> wxString"""
2058 return _pcbnew.LINE_READER_GetSource(self)
2059
2060 def Line(self):
2061 r"""Line(LINE_READER self) -> char *"""
2062 return _pcbnew.LINE_READER_Line(self)
2063
2064 def LineNumber(self):
2065 r"""LineNumber(LINE_READER self) -> unsigned int"""
2066 return _pcbnew.LINE_READER_LineNumber(self)
2067
2068 def Length(self):
2069 r"""Length(LINE_READER self) -> unsigned int"""
2070 return _pcbnew.LINE_READER_Length(self)
2071
2072# Register LINE_READER in _pcbnew:
2073_pcbnew.LINE_READER_swigregister(LINE_READER)
2074gerbIUScale = cvar.gerbIUScale
2075pcbIUScale = cvar.pcbIUScale
2076drawSheetIUScale = cvar.drawSheetIUScale
2077schIUScale = cvar.schIUScale
2078unityScale = cvar.unityScale
2079
2081 r"""Proxy of C++ FILE_LINE_READER class."""
2082
2083 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2084 __repr__ = _swig_repr
2085
2086 def __init__(self, *args):
2087 r"""
2088 __init__(FILE_LINE_READER self, wxString aFileName, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
2089 __init__(FILE_LINE_READER self, FILE * aFile, wxString aFileName, bool doOwn=True, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
2090 """
2091 _pcbnew.FILE_LINE_READER_swiginit(self, _pcbnew.new_FILE_LINE_READER(*args))
2092 __swig_destroy__ = _pcbnew.delete_FILE_LINE_READER
2093
2094 def Rewind(self):
2095 r"""Rewind(FILE_LINE_READER self)"""
2096 return _pcbnew.FILE_LINE_READER_Rewind(self)
2097
2098 def FileLength(self):
2099 r"""FileLength(FILE_LINE_READER self) -> long"""
2100 return _pcbnew.FILE_LINE_READER_FileLength(self)
2101
2102 def CurPos(self):
2103 r"""CurPos(FILE_LINE_READER self) -> long"""
2104 return _pcbnew.FILE_LINE_READER_CurPos(self)
2105
2106# Register FILE_LINE_READER in _pcbnew:
2107_pcbnew.FILE_LINE_READER_swigregister(FILE_LINE_READER)
2108
2110 r"""Proxy of C++ STRING_LINE_READER class."""
2111
2112 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2113 __repr__ = _swig_repr
2114
2115 def __init__(self, *args):
2116 r"""
2117 __init__(STRING_LINE_READER self, string aString, wxString aSource) -> STRING_LINE_READER
2118 __init__(STRING_LINE_READER self, STRING_LINE_READER aStartingPoint) -> STRING_LINE_READER
2119 """
2120 _pcbnew.STRING_LINE_READER_swiginit(self, _pcbnew.new_STRING_LINE_READER(*args))
2121 __swig_destroy__ = _pcbnew.delete_STRING_LINE_READER
2122
2123# Register STRING_LINE_READER in _pcbnew:
2124_pcbnew.STRING_LINE_READER_swigregister(STRING_LINE_READER)
2125
2127 r"""Proxy of C++ INPUTSTREAM_LINE_READER class."""
2128
2129 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2130 __repr__ = _swig_repr
2131
2132 def __init__(self, aStream, aSource):
2133 r"""__init__(INPUTSTREAM_LINE_READER self, wxInputStream * aStream, wxString aSource) -> INPUTSTREAM_LINE_READER"""
2134 _pcbnew.INPUTSTREAM_LINE_READER_swiginit(self, _pcbnew.new_INPUTSTREAM_LINE_READER(aStream, aSource))
2135 __swig_destroy__ = _pcbnew.delete_INPUTSTREAM_LINE_READER
2136
2137# Register INPUTSTREAM_LINE_READER in _pcbnew:
2138_pcbnew.INPUTSTREAM_LINE_READER_swigregister(INPUTSTREAM_LINE_READER)
2139
2140OUTPUTFMTBUFZ = _pcbnew.OUTPUTFMTBUFZ
2141
2143 r"""Proxy of C++ OUTPUTFORMATTER class."""
2144
2145 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2146
2147 def __init__(self, *args, **kwargs):
2148 raise AttributeError("No constructor defined - class is abstract")
2149 __repr__ = _swig_repr
2150
2151 def Print(self, nestLevel, fmt):
2152 r"""Print(OUTPUTFORMATTER self, int nestLevel, char const * fmt) -> int"""
2153 return _pcbnew.OUTPUTFORMATTER_Print(self, nestLevel, fmt)
2154
2155 def GetQuoteChar(self, wrapee):
2156 r"""GetQuoteChar(OUTPUTFORMATTER self, char const * wrapee) -> char const *"""
2157 return _pcbnew.OUTPUTFORMATTER_GetQuoteChar(self, wrapee)
2158
2159 def Quotes(self, aWrapee):
2160 r"""Quotes(OUTPUTFORMATTER self, string aWrapee) -> string"""
2161 return _pcbnew.OUTPUTFORMATTER_Quotes(self, aWrapee)
2162
2163 def Quotew(self, aWrapee):
2164 r"""Quotew(OUTPUTFORMATTER self, wxString aWrapee) -> string"""
2165 return _pcbnew.OUTPUTFORMATTER_Quotew(self, aWrapee)
2166
2167# Register OUTPUTFORMATTER in _pcbnew:
2168_pcbnew.OUTPUTFORMATTER_swigregister(OUTPUTFORMATTER)
2169
2171 r"""Proxy of C++ STRING_FORMATTER class."""
2172
2173 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2174 __repr__ = _swig_repr
2175
2176 def __init__(self, *args):
2177 r"""__init__(STRING_FORMATTER self, int aReserve=500, char aQuoteChar='\"') -> STRING_FORMATTER"""
2178 _pcbnew.STRING_FORMATTER_swiginit(self, _pcbnew.new_STRING_FORMATTER(*args))
2179
2180 def Clear(self):
2181 r"""Clear(STRING_FORMATTER self)"""
2182 return _pcbnew.STRING_FORMATTER_Clear(self)
2183
2184 def StripUseless(self):
2185 r"""StripUseless(STRING_FORMATTER self)"""
2186 return _pcbnew.STRING_FORMATTER_StripUseless(self)
2187
2188 def GetString(self):
2189 r"""GetString(STRING_FORMATTER self) -> string"""
2190 return _pcbnew.STRING_FORMATTER_GetString(self)
2191 __swig_destroy__ = _pcbnew.delete_STRING_FORMATTER
2192
2193# Register STRING_FORMATTER in _pcbnew:
2194_pcbnew.STRING_FORMATTER_swigregister(STRING_FORMATTER)
2195
2197 r"""Proxy of C++ FILE_OUTPUTFORMATTER class."""
2198
2199 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2200 __repr__ = _swig_repr
2201
2202 def __init__(self, *args):
2203 r"""__init__(FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> FILE_OUTPUTFORMATTER"""
2204 _pcbnew.FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_FILE_OUTPUTFORMATTER(*args))
2205 __swig_destroy__ = _pcbnew.delete_FILE_OUTPUTFORMATTER
2206
2207# Register FILE_OUTPUTFORMATTER in _pcbnew:
2208_pcbnew.FILE_OUTPUTFORMATTER_swigregister(FILE_OUTPUTFORMATTER)
2209
2211 r"""Proxy of C++ STREAM_OUTPUTFORMATTER class."""
2212
2213 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2214 __repr__ = _swig_repr
2215
2216 def __init__(self, *args):
2217 r"""__init__(STREAM_OUTPUTFORMATTER self, wxOutputStream & aStream, char aQuoteChar='\"') -> STREAM_OUTPUTFORMATTER"""
2218 _pcbnew.STREAM_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_STREAM_OUTPUTFORMATTER(*args))
2219 __swig_destroy__ = _pcbnew.delete_STREAM_OUTPUTFORMATTER
2220
2221# Register STREAM_OUTPUTFORMATTER in _pcbnew:
2222_pcbnew.STREAM_OUTPUTFORMATTER_swigregister(STREAM_OUTPUTFORMATTER)
2223
2225 r"""Proxy of C++ TITLE_BLOCK class."""
2226
2227 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2228 __repr__ = _swig_repr
2229
2230 def __init__(self):
2231 r"""__init__(TITLE_BLOCK self) -> TITLE_BLOCK"""
2232 _pcbnew.TITLE_BLOCK_swiginit(self, _pcbnew.new_TITLE_BLOCK())
2233 __swig_destroy__ = _pcbnew.delete_TITLE_BLOCK
2234
2235 def SetTitle(self, aTitle):
2236 r"""SetTitle(TITLE_BLOCK self, wxString aTitle)"""
2237 return _pcbnew.TITLE_BLOCK_SetTitle(self, aTitle)
2238
2239 def GetTitle(self):
2240 r"""GetTitle(TITLE_BLOCK self) -> wxString"""
2241 return _pcbnew.TITLE_BLOCK_GetTitle(self)
2242
2243 def SetDate(self, aDate):
2244 r"""SetDate(TITLE_BLOCK self, wxString aDate)"""
2245 return _pcbnew.TITLE_BLOCK_SetDate(self, aDate)
2246
2247 def GetDate(self):
2248 r"""GetDate(TITLE_BLOCK self) -> wxString"""
2249 return _pcbnew.TITLE_BLOCK_GetDate(self)
2250
2251 def SetRevision(self, aRevision):
2252 r"""SetRevision(TITLE_BLOCK self, wxString aRevision)"""
2253 return _pcbnew.TITLE_BLOCK_SetRevision(self, aRevision)
2254
2255 def GetRevision(self):
2256 r"""GetRevision(TITLE_BLOCK self) -> wxString"""
2257 return _pcbnew.TITLE_BLOCK_GetRevision(self)
2258
2259 def SetCompany(self, aCompany):
2260 r"""SetCompany(TITLE_BLOCK self, wxString aCompany)"""
2261 return _pcbnew.TITLE_BLOCK_SetCompany(self, aCompany)
2262
2263 def GetCompany(self):
2264 r"""GetCompany(TITLE_BLOCK self) -> wxString"""
2265 return _pcbnew.TITLE_BLOCK_GetCompany(self)
2266
2267 def SetComment(self, aIdx, aComment):
2268 r"""SetComment(TITLE_BLOCK self, int aIdx, wxString aComment)"""
2269 return _pcbnew.TITLE_BLOCK_SetComment(self, aIdx, aComment)
2270
2271 def GetComment(self, aIdx):
2272 r"""GetComment(TITLE_BLOCK self, int aIdx) -> wxString"""
2273 return _pcbnew.TITLE_BLOCK_GetComment(self, aIdx)
2274
2275 def Clear(self):
2276 r"""Clear(TITLE_BLOCK self)"""
2277 return _pcbnew.TITLE_BLOCK_Clear(self)
2278
2279 @staticmethod
2281 r"""GetContextualTextVars(wxArrayString * aVars)"""
2282 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2283
2284 def TextVarResolver(self, aToken, aProject):
2285 r"""TextVarResolver(TITLE_BLOCK self, wxString aToken, PROJECT const * aProject) -> bool"""
2286 return _pcbnew.TITLE_BLOCK_TextVarResolver(self, aToken, aProject)
2287
2288 def Format(self, aFormatter, aNestLevel, aControlBits):
2289 r"""Format(TITLE_BLOCK self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControlBits)"""
2290 return _pcbnew.TITLE_BLOCK_Format(self, aFormatter, aNestLevel, aControlBits)
2291
2292# Register TITLE_BLOCK in _pcbnew:
2293_pcbnew.TITLE_BLOCK_swigregister(TITLE_BLOCK)
2294
2296 r"""TITLE_BLOCK_GetContextualTextVars(wxArrayString * aVars)"""
2297 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2298
2299UNSPECIFIED_COLOR = _pcbnew.UNSPECIFIED_COLOR
2300
2301BLACK = _pcbnew.BLACK
2302
2303DARKDARKGRAY = _pcbnew.DARKDARKGRAY
2304
2305DARKGRAY = _pcbnew.DARKGRAY
2306
2307LIGHTGRAY = _pcbnew.LIGHTGRAY
2308
2309WHITE = _pcbnew.WHITE
2310
2311LIGHTYELLOW = _pcbnew.LIGHTYELLOW
2312
2313DARKBLUE = _pcbnew.DARKBLUE
2314
2315DARKGREEN = _pcbnew.DARKGREEN
2316
2317DARKCYAN = _pcbnew.DARKCYAN
2318
2319DARKRED = _pcbnew.DARKRED
2320
2321DARKMAGENTA = _pcbnew.DARKMAGENTA
2322
2323DARKBROWN = _pcbnew.DARKBROWN
2324
2325BLUE = _pcbnew.BLUE
2326
2327GREEN = _pcbnew.GREEN
2328
2329CYAN = _pcbnew.CYAN
2330
2331RED = _pcbnew.RED
2332
2333MAGENTA = _pcbnew.MAGENTA
2334
2335BROWN = _pcbnew.BROWN
2336
2337LIGHTBLUE = _pcbnew.LIGHTBLUE
2338
2339LIGHTGREEN = _pcbnew.LIGHTGREEN
2340
2341LIGHTCYAN = _pcbnew.LIGHTCYAN
2342
2343LIGHTRED = _pcbnew.LIGHTRED
2344
2345LIGHTMAGENTA = _pcbnew.LIGHTMAGENTA
2346
2347YELLOW = _pcbnew.YELLOW
2348
2349PUREBLUE = _pcbnew.PUREBLUE
2350
2351PUREGREEN = _pcbnew.PUREGREEN
2352
2353PURECYAN = _pcbnew.PURECYAN
2354
2355PURERED = _pcbnew.PURERED
2356
2357PUREMAGENTA = _pcbnew.PUREMAGENTA
2358
2359PUREYELLOW = _pcbnew.PUREYELLOW
2360
2361LIGHTERORANGE = _pcbnew.LIGHTERORANGE
2362
2363DARKORANGE = _pcbnew.DARKORANGE
2364
2365ORANGE = _pcbnew.ORANGE
2366
2367LIGHTORANGE = _pcbnew.LIGHTORANGE
2368
2369PUREORANGE = _pcbnew.PUREORANGE
2370
2371NBCOLORS = _pcbnew.NBCOLORS
2372
2373HIGHLIGHT_FLAG = _pcbnew.HIGHLIGHT_FLAG
2374
2375MASKCOLOR = _pcbnew.MASKCOLOR
2376
2378 r"""Proxy of C++ StructColors class."""
2379
2380 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2381 __repr__ = _swig_repr
2382 m_Blue = property(_pcbnew.StructColors_m_Blue_get, _pcbnew.StructColors_m_Blue_set, doc=r"""m_Blue : unsigned char""")
2383 m_Green = property(_pcbnew.StructColors_m_Green_get, _pcbnew.StructColors_m_Green_set, doc=r"""m_Green : unsigned char""")
2384 m_Red = property(_pcbnew.StructColors_m_Red_get, _pcbnew.StructColors_m_Red_set, doc=r"""m_Red : unsigned char""")
2385 m_Numcolor = property(_pcbnew.StructColors_m_Numcolor_get, _pcbnew.StructColors_m_Numcolor_set, doc=r"""m_Numcolor : EDA_COLOR_T""")
2386 m_ColorName = property(_pcbnew.StructColors_m_ColorName_get, _pcbnew.StructColors_m_ColorName_set, doc=r"""m_ColorName : std::string""")
2387 m_LightColor = property(_pcbnew.StructColors_m_LightColor_get, _pcbnew.StructColors_m_LightColor_set, doc=r"""m_LightColor : EDA_COLOR_T""")
2388
2389 def __init__(self):
2390 r"""__init__(StructColors self) -> StructColors"""
2391 _pcbnew.StructColors_swiginit(self, _pcbnew.new_StructColors())
2392 __swig_destroy__ = _pcbnew.delete_StructColors
2393
2394# Register StructColors in _pcbnew:
2395_pcbnew.StructColors_swigregister(StructColors)
2396
2397
2399 r"""colorRefs() -> StructColors"""
2400 return _pcbnew.colorRefs()
2402 r"""Proxy of C++ KIGFX::COLOR4D class."""
2403
2404 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2405 __repr__ = _swig_repr
2406
2407 def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0):
2408 r"""FromCSSRGBA(COLOR4D self, int aRed, int aGreen, int aBlue, double aAlpha=1.0) -> COLOR4D"""
2409 return _pcbnew.COLOR4D_FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha)
2410
2411 def __init__(self, *args):
2412 r"""
2413 __init__(COLOR4D self) -> COLOR4D
2414 __init__(COLOR4D self, double aRed, double aGreen, double aBlue, double aAlpha) -> COLOR4D
2415 __init__(COLOR4D self, EDA_COLOR_T aColor) -> COLOR4D
2416 __init__(COLOR4D self, wxString aColorStr) -> COLOR4D
2417 __init__(COLOR4D self, wxColour const & aColor) -> COLOR4D
2418 """
2419 _pcbnew.COLOR4D_swiginit(self, _pcbnew.new_COLOR4D(*args))
2420
2421 def SetFromWxString(self, aColorString):
2422 r"""SetFromWxString(COLOR4D self, wxString aColorString) -> bool"""
2423 return _pcbnew.COLOR4D_SetFromWxString(self, aColorString)
2424
2425 def ToCSSString(self):
2426 r"""ToCSSString(COLOR4D self) -> wxString"""
2427 return _pcbnew.COLOR4D_ToCSSString(self)
2428
2429 def SetFromHexString(self, aColorString):
2430 r"""SetFromHexString(COLOR4D self, wxString aColorString) -> bool"""
2431 return _pcbnew.COLOR4D_SetFromHexString(self, aColorString)
2432
2433 def ToHexString(self):
2434 r"""ToHexString(COLOR4D self) -> wxString"""
2435 return _pcbnew.COLOR4D_ToHexString(self)
2436
2437 def ToColour(self):
2438 r"""ToColour(COLOR4D self) -> wxColour"""
2439 return _pcbnew.COLOR4D_ToColour(self)
2440
2441 def LegacyMix(self, aColor):
2442 r"""LegacyMix(COLOR4D self, COLOR4D aColor) -> COLOR4D"""
2443 return _pcbnew.COLOR4D_LegacyMix(self, aColor)
2444
2445 def ToU32(self):
2446 r"""ToU32(COLOR4D self) -> unsigned int"""
2447 return _pcbnew.COLOR4D_ToU32(self)
2448
2449 def FromU32(self, aPackedColor):
2450 r"""FromU32(COLOR4D self, unsigned int aPackedColor)"""
2451 return _pcbnew.COLOR4D_FromU32(self, aPackedColor)
2452
2453 def ToHSL(self, aOutHue, aOutSaturation, aOutValue):
2454 r"""ToHSL(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue)"""
2455 return _pcbnew.COLOR4D_ToHSL(self, aOutHue, aOutSaturation, aOutValue)
2456
2457 def FromHSL(self, aInHue, aInSaturation, aInLightness):
2458 r"""FromHSL(COLOR4D self, double aInHue, double aInSaturation, double aInLightness)"""
2459 return _pcbnew.COLOR4D_FromHSL(self, aInHue, aInSaturation, aInLightness)
2460
2461 def Brighten(self, aFactor):
2462 r"""Brighten(COLOR4D self, double aFactor) -> COLOR4D"""
2463 return _pcbnew.COLOR4D_Brighten(self, aFactor)
2464
2465 def Darken(self, aFactor):
2466 r"""Darken(COLOR4D self, double aFactor) -> COLOR4D"""
2467 return _pcbnew.COLOR4D_Darken(self, aFactor)
2468
2469 def Invert(self):
2470 r"""Invert(COLOR4D self) -> COLOR4D"""
2471 return _pcbnew.COLOR4D_Invert(self)
2472
2473 def Saturate(self, aFactor):
2474 r"""Saturate(COLOR4D self, double aFactor) -> COLOR4D"""
2475 return _pcbnew.COLOR4D_Saturate(self, aFactor)
2476
2477 def Desaturate(self):
2478 r"""Desaturate(COLOR4D self) -> COLOR4D"""
2479 return _pcbnew.COLOR4D_Desaturate(self)
2480
2481 def Brightened(self, aFactor):
2482 r"""Brightened(COLOR4D self, double aFactor) -> COLOR4D"""
2483 return _pcbnew.COLOR4D_Brightened(self, aFactor)
2484
2485 def Darkened(self, aFactor):
2486 r"""Darkened(COLOR4D self, double aFactor) -> COLOR4D"""
2487 return _pcbnew.COLOR4D_Darkened(self, aFactor)
2488
2489 def Mix(self, aColor, aFactor):
2490 r"""Mix(COLOR4D self, COLOR4D aColor, double aFactor) -> COLOR4D"""
2491 return _pcbnew.COLOR4D_Mix(self, aColor, aFactor)
2492
2493 def WithAlpha(self, aAlpha):
2494 r"""WithAlpha(COLOR4D self, double aAlpha) -> COLOR4D"""
2495 return _pcbnew.COLOR4D_WithAlpha(self, aAlpha)
2496
2497 def Inverted(self):
2498 r"""Inverted(COLOR4D self) -> COLOR4D"""
2499 return _pcbnew.COLOR4D_Inverted(self)
2500
2501 def GetBrightness(self):
2502 r"""GetBrightness(COLOR4D self) -> double"""
2503 return _pcbnew.COLOR4D_GetBrightness(self)
2504
2505 def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False):
2506 r"""ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue, bool aAlwaysDefineHue=False)"""
2507 return _pcbnew.COLOR4D_ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue)
2508
2509 def FromHSV(self, aInH, aInS, aInV):
2510 r"""FromHSV(COLOR4D self, double aInH, double aInS, double aInV)"""
2511 return _pcbnew.COLOR4D_FromHSV(self, aInH, aInS, aInV)
2512
2513 def Distance(self, other):
2514 r"""Distance(COLOR4D self, COLOR4D other) -> double"""
2515 return _pcbnew.COLOR4D_Distance(self, other)
2516
2517 @staticmethod
2518 def FindNearestLegacyColor(aR, aG, aB):
2519 r"""FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2520 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2521 r = property(_pcbnew.COLOR4D_r_get, _pcbnew.COLOR4D_r_set, doc=r"""r : double""")
2522 g = property(_pcbnew.COLOR4D_g_get, _pcbnew.COLOR4D_g_set, doc=r"""g : double""")
2523 b = property(_pcbnew.COLOR4D_b_get, _pcbnew.COLOR4D_b_set, doc=r"""b : double""")
2524 a = property(_pcbnew.COLOR4D_a_get, _pcbnew.COLOR4D_a_set, doc=r"""a : double""")
2525 __swig_destroy__ = _pcbnew.delete_COLOR4D
2526
2527# Register COLOR4D in _pcbnew:
2528_pcbnew.COLOR4D_swigregister(COLOR4D)
2529
2531 r"""COLOR4D_FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2532 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2533COLOR4D.UNSPECIFIED = _pcbnew.cvar.COLOR4D_UNSPECIFIED
2534COLOR4D.WHITE = _pcbnew.cvar.COLOR4D_WHITE
2535COLOR4D.BLACK = _pcbnew.cvar.COLOR4D_BLACK
2536COLOR4D.CLEAR = _pcbnew.cvar.COLOR4D_CLEAR
2537
2538
2539def __eq__(lhs, rhs):
2540 r"""__eq__(COLOR4D lhs, COLOR4D rhs) -> bool const"""
2541 return _pcbnew.__eq__(lhs, rhs)
2542
2543def __ne__(lhs, rhs):
2544 r"""__ne__(COLOR4D lhs, COLOR4D rhs) -> bool const"""
2545 return _pcbnew.__ne__(lhs, rhs)
2546
2547def __lt__(lhs, rhs):
2548 r"""__lt__(COLOR4D lhs, COLOR4D rhs) -> bool const"""
2549 return _pcbnew.__lt__(lhs, rhs)
2550
2551def __lshift__(aStream, aColor):
2552 r"""__lshift__(std::ostream & aStream, COLOR4D aColor) -> std::ostream &"""
2553 return _pcbnew.__lshift__(aStream, aColor)
2555 r"""Proxy of C++ MARKER_BASE class."""
2556
2557 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2558
2559 def __init__(self, *args, **kwargs):
2560 raise AttributeError("No constructor defined - class is abstract")
2561 __repr__ = _swig_repr
2562 MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
2563
2564 MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
2565
2566 MARKER_DRC = _pcbnew.MARKER_BASE_MARKER_DRC
2567
2568 MARKER_DRAWING_SHEET = _pcbnew.MARKER_BASE_MARKER_DRAWING_SHEET
2569
2570 MARKER_RATSNEST = _pcbnew.MARKER_BASE_MARKER_RATSNEST
2571
2572 MARKER_PARITY = _pcbnew.MARKER_BASE_MARKER_PARITY
2573
2574 MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
2575
2576 __swig_destroy__ = _pcbnew.delete_MARKER_BASE
2577
2578 def MarkerScale(self):
2579 r"""MarkerScale(MARKER_BASE self) -> int"""
2580 return _pcbnew.MARKER_BASE_MarkerScale(self)
2581
2582 def SetMarkerScale(self, aScale):
2583 r"""SetMarkerScale(MARKER_BASE self, int aScale)"""
2584 return _pcbnew.MARKER_BASE_SetMarkerScale(self, aScale)
2585
2586 def ShapeToPolygon(self, aPolygon, aScale=-1):
2587 r"""ShapeToPolygon(MARKER_BASE self, SHAPE_LINE_CHAIN aPolygon, int aScale=-1)"""
2588 return _pcbnew.MARKER_BASE_ShapeToPolygon(self, aPolygon, aScale)
2589
2590 def PrintMarker(self, aSettings, aOffset):
2591 r"""PrintMarker(MARKER_BASE self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset)"""
2592 return _pcbnew.MARKER_BASE_PrintMarker(self, aSettings, aOffset)
2593
2594 def GetPos(self):
2595 r"""GetPos(MARKER_BASE self) -> VECTOR2I"""
2596 return _pcbnew.MARKER_BASE_GetPos(self)
2597
2598 def GetUUID(self):
2599 r"""GetUUID(MARKER_BASE self) -> KIID"""
2600 return _pcbnew.MARKER_BASE_GetUUID(self)
2601
2602 def SetMarkerType(self, aMarkerType):
2603 r"""SetMarkerType(MARKER_BASE self, enum MARKER_BASE::TYPEMARKER aMarkerType)"""
2604 return _pcbnew.MARKER_BASE_SetMarkerType(self, aMarkerType)
2605
2606 def GetMarkerType(self):
2607 r"""GetMarkerType(MARKER_BASE self) -> enum MARKER_BASE::TYPEMARKER"""
2608 return _pcbnew.MARKER_BASE_GetMarkerType(self)
2609
2610 def IsExcluded(self):
2611 r"""IsExcluded(MARKER_BASE self) -> bool"""
2612 return _pcbnew.MARKER_BASE_IsExcluded(self)
2613
2614 def SetExcluded(self, aExcluded):
2615 r"""SetExcluded(MARKER_BASE self, bool aExcluded)"""
2616 return _pcbnew.MARKER_BASE_SetExcluded(self, aExcluded)
2617
2618 def GetSeverity(self):
2619 r"""GetSeverity(MARKER_BASE self) -> SEVERITY"""
2620 return _pcbnew.MARKER_BASE_GetSeverity(self)
2621
2622 def GetRCItem(self):
2623 r"""GetRCItem(MARKER_BASE self) -> std::shared_ptr< RC_ITEM >"""
2624 return _pcbnew.MARKER_BASE_GetRCItem(self)
2625
2626 def HitTestMarker(self, aHitPosition, aAccuracy):
2627 r"""HitTestMarker(MARKER_BASE self, VECTOR2I aHitPosition, int aAccuracy) -> bool"""
2628 return _pcbnew.MARKER_BASE_HitTestMarker(self, aHitPosition, aAccuracy)
2629
2631 r"""GetBoundingBoxMarker(MARKER_BASE self) -> BOX2I"""
2632 return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2633 m_Pos = property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set, doc=r"""m_Pos : VECTOR2I""")
2634
2635# Register MARKER_BASE in _pcbnew:
2636_pcbnew.MARKER_BASE_swigregister(MARKER_BASE)
2637
2638CTL_OMIT_HIDE = _pcbnew.CTL_OMIT_HIDE
2639
2640DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2641
2642DIM_ANCRE_TEXTE = _pcbnew.DIM_ANCRE_TEXTE
2643
2645 r"""Proxy of C++ EDA_TEXT class."""
2646
2647 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2648 __repr__ = _swig_repr
2649
2650 def __init__(self, *args):
2651 r"""
2652 __init__(EDA_TEXT self, EDA_IU_SCALE aIuScale, wxString aText=wxEmptyString) -> EDA_TEXT
2653 __init__(EDA_TEXT self, EDA_TEXT aText) -> EDA_TEXT
2654 """
2655 _pcbnew.EDA_TEXT_swiginit(self, _pcbnew.new_EDA_TEXT(*args))
2656 __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2657
2658 def GetText(self):
2659 r"""GetText(EDA_TEXT self) -> wxString"""
2660 return _pcbnew.EDA_TEXT_GetText(self)
2661
2662 def GetShownText(self, aAllowExtraText, aDepth=0):
2663 r"""GetShownText(EDA_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
2664 return _pcbnew.EDA_TEXT_GetShownText(self, aAllowExtraText, aDepth)
2665
2666 def HasTextVars(self):
2667 r"""HasTextVars(EDA_TEXT self) -> bool"""
2668 return _pcbnew.EDA_TEXT_HasTextVars(self)
2669
2670 def SetText(self, aText):
2671 r"""SetText(EDA_TEXT self, wxString aText)"""
2672 return _pcbnew.EDA_TEXT_SetText(self, aText)
2673
2674 def SetTextThickness(self, aWidth):
2675 r"""SetTextThickness(EDA_TEXT self, int aWidth)"""
2676 return _pcbnew.EDA_TEXT_SetTextThickness(self, aWidth)
2677
2679 r"""GetTextThickness(EDA_TEXT self) -> int"""
2680 return _pcbnew.EDA_TEXT_GetTextThickness(self)
2681
2682 def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0):
2683 r"""GetEffectiveTextPenWidth(EDA_TEXT self, int aDefaultPenWidth=0) -> int"""
2684 return _pcbnew.EDA_TEXT_GetEffectiveTextPenWidth(self, aDefaultPenWidth)
2685
2686 def SetTextAngle(self, aAngle):
2687 r"""SetTextAngle(EDA_TEXT self, EDA_ANGLE aAngle)"""
2688 return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2689
2690 def GetTextAngle(self):
2691 r"""GetTextAngle(EDA_TEXT self) -> EDA_ANGLE"""
2692 return _pcbnew.EDA_TEXT_GetTextAngle(self)
2693
2694 def SetTextAngleDegrees(self, aOrientation):
2695 r"""SetTextAngleDegrees(EDA_TEXT self, double aOrientation)"""
2696 return _pcbnew.EDA_TEXT_SetTextAngleDegrees(self, aOrientation)
2697
2699 r"""GetTextAngleDegrees(EDA_TEXT self) -> double"""
2700 return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2701
2702 def SetItalic(self, aItalic):
2703 r"""SetItalic(EDA_TEXT self, bool aItalic)"""
2704 return _pcbnew.EDA_TEXT_SetItalic(self, aItalic)
2705
2706 def IsItalic(self):
2707 r"""IsItalic(EDA_TEXT self) -> bool"""
2708 return _pcbnew.EDA_TEXT_IsItalic(self)
2709
2710 def SetBold(self, aBold):
2711 r"""SetBold(EDA_TEXT self, bool aBold)"""
2712 return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2713
2714 def IsBold(self):
2715 r"""IsBold(EDA_TEXT self) -> bool"""
2716 return _pcbnew.EDA_TEXT_IsBold(self)
2717
2718 def SetVisible(self, aVisible):
2719 r"""SetVisible(EDA_TEXT self, bool aVisible)"""
2720 return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2721
2722 def IsVisible(self):
2723 r"""IsVisible(EDA_TEXT self) -> bool"""
2724 return _pcbnew.EDA_TEXT_IsVisible(self)
2725
2726 def SetMirrored(self, isMirrored):
2727 r"""SetMirrored(EDA_TEXT self, bool isMirrored)"""
2728 return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2729
2730 def IsMirrored(self):
2731 r"""IsMirrored(EDA_TEXT self) -> bool"""
2732 return _pcbnew.EDA_TEXT_IsMirrored(self)
2733
2734 def SetMultilineAllowed(self, aAllow):
2735 r"""SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2736 return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2737
2739 r"""IsMultilineAllowed(EDA_TEXT self) -> bool"""
2740 return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2741
2742 def SetHorizJustify(self, aType):
2743 r"""SetHorizJustify(EDA_TEXT self, GR_TEXT_H_ALIGN_T aType)"""
2744 return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2745
2747 r"""GetHorizJustify(EDA_TEXT self) -> GR_TEXT_H_ALIGN_T"""
2748 return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2749
2750 def SetVertJustify(self, aType):
2751 r"""SetVertJustify(EDA_TEXT self, GR_TEXT_V_ALIGN_T aType)"""
2752 return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2753
2755 r"""GetVertJustify(EDA_TEXT self) -> GR_TEXT_V_ALIGN_T"""
2756 return _pcbnew.EDA_TEXT_GetVertJustify(self)
2757
2758 def SetKeepUpright(self, aKeepUpright):
2759 r"""SetKeepUpright(EDA_TEXT self, bool aKeepUpright)"""
2760 return _pcbnew.EDA_TEXT_SetKeepUpright(self, aKeepUpright)
2761
2762 def IsKeepUpright(self):
2763 r"""IsKeepUpright(EDA_TEXT self) -> bool"""
2764 return _pcbnew.EDA_TEXT_IsKeepUpright(self)
2765
2766 def SwapAttributes(self, aTradingPartner):
2767 r"""SwapAttributes(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2768 return _pcbnew.EDA_TEXT_SwapAttributes(self, aTradingPartner)
2769
2770 def SwapText(self, aTradingPartner):
2771 r"""SwapText(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2772 return _pcbnew.EDA_TEXT_SwapText(self, aTradingPartner)
2773
2774 def CopyText(self, aSrc):
2775 r"""CopyText(EDA_TEXT self, EDA_TEXT aSrc)"""
2776 return _pcbnew.EDA_TEXT_CopyText(self, aSrc)
2777
2778 def SetAttributes(self, *args):
2779 r"""
2780 SetAttributes(EDA_TEXT self, EDA_TEXT aSrc)
2781 SetAttributes(EDA_TEXT self, TEXT_ATTRIBUTES aTextAttrs)
2782 """
2783 return _pcbnew.EDA_TEXT_SetAttributes(self, *args)
2784
2785 def GetAttributes(self):
2786 r"""GetAttributes(EDA_TEXT self) -> TEXT_ATTRIBUTES"""
2787 return _pcbnew.EDA_TEXT_GetAttributes(self)
2788
2789 def Replace(self, aSearchData):
2790 r"""Replace(EDA_TEXT self, EDA_SEARCH_DATA const & aSearchData) -> bool"""
2791 return _pcbnew.EDA_TEXT_Replace(self, aSearchData)
2792
2794 r"""IsDefaultFormatting(EDA_TEXT self) -> bool"""
2795 return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2796
2797 def SetFont(self, aFont):
2798 r"""SetFont(EDA_TEXT self, KIFONT::FONT * aFont)"""
2799 return _pcbnew.EDA_TEXT_SetFont(self, aFont)
2800
2801 def GetFont(self):
2802 r"""GetFont(EDA_TEXT self) -> KIFONT::FONT *"""
2803 return _pcbnew.EDA_TEXT_GetFont(self)
2804
2805 def GetFontName(self):
2806 r"""GetFontName(EDA_TEXT self) -> wxString"""
2807 return _pcbnew.EDA_TEXT_GetFontName(self)
2808
2809 def SetLineSpacing(self, aLineSpacing):
2810 r"""SetLineSpacing(EDA_TEXT self, double aLineSpacing)"""
2811 return _pcbnew.EDA_TEXT_SetLineSpacing(self, aLineSpacing)
2812
2814 r"""GetLineSpacing(EDA_TEXT self) -> double"""
2815 return _pcbnew.EDA_TEXT_GetLineSpacing(self)
2816
2817 def SetTextSize(self, aNewSize):
2818 r"""SetTextSize(EDA_TEXT self, VECTOR2I aNewSize)"""
2819 return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize)
2820
2821 def GetTextSize(self):
2822 r"""GetTextSize(EDA_TEXT self) -> VECTOR2I"""
2823 return _pcbnew.EDA_TEXT_GetTextSize(self)
2824
2825 def SetTextWidth(self, aWidth):
2826 r"""SetTextWidth(EDA_TEXT self, int aWidth)"""
2827 return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2828
2829 def GetTextWidth(self):
2830 r"""GetTextWidth(EDA_TEXT self) -> int"""
2831 return _pcbnew.EDA_TEXT_GetTextWidth(self)
2832
2833 def SetTextHeight(self, aHeight):
2834 r"""SetTextHeight(EDA_TEXT self, int aHeight)"""
2835 return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2836
2837 def GetTextHeight(self):
2838 r"""GetTextHeight(EDA_TEXT self) -> int"""
2839 return _pcbnew.EDA_TEXT_GetTextHeight(self)
2840
2841 def SetTextColor(self, aColor):
2842 r"""SetTextColor(EDA_TEXT self, COLOR4D aColor)"""
2843 return _pcbnew.EDA_TEXT_SetTextColor(self, aColor)
2844
2845 def GetTextColor(self):
2846 r"""GetTextColor(EDA_TEXT self) -> COLOR4D"""
2847 return _pcbnew.EDA_TEXT_GetTextColor(self)
2848
2849 def SetTextPos(self, aPoint):
2850 r"""SetTextPos(EDA_TEXT self, VECTOR2I aPoint)"""
2851 return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2852
2853 def GetTextPos(self):
2854 r"""GetTextPos(EDA_TEXT self) -> VECTOR2I"""
2855 return _pcbnew.EDA_TEXT_GetTextPos(self)
2856
2857 def SetTextX(self, aX):
2858 r"""SetTextX(EDA_TEXT self, int aX)"""
2859 return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2860
2861 def SetTextY(self, aY):
2862 r"""SetTextY(EDA_TEXT self, int aY)"""
2863 return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2864
2865 def Offset(self, aOffset):
2866 r"""Offset(EDA_TEXT self, VECTOR2I aOffset)"""
2867 return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2868
2869 def Empty(self):
2870 r"""Empty(EDA_TEXT self)"""
2871 return _pcbnew.EDA_TEXT_Empty(self)
2872
2873 @staticmethod
2874 def MapHorizJustify(aHorizJustify):
2875 r"""MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
2876 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
2877
2878 @staticmethod
2879 def MapVertJustify(aVertJustify):
2880 r"""MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
2881 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
2882
2883 def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED):
2884 r"""Print(EDA_TEXT self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset, COLOR4D aColor, OUTLINE_MODE aDisplay_mode=FILLED)"""
2885 return _pcbnew.EDA_TEXT_Print(self, aSettings, aOffset, aColor, aDisplay_mode)
2886
2888 r"""GetEffectiveTextShapeNative(EDA_TEXT self, bool aTriangulate=True, BOX2I aBBox=BOX2I(), EDA_ANGLE aAngle=ANGLE_0) -> std::shared_ptr< SHAPE_COMPOUND >"""
2889 return _pcbnew.EDA_TEXT_GetEffectiveTextShapeNative(self, *args)
2890
2891 def TextHitTest(self, *args):
2892 r"""
2893 TextHitTest(EDA_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
2894 TextHitTest(EDA_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
2895 """
2896 return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
2897
2898 def GetTextBox(self, aLine=-1, aInvertY=False):
2899 r"""GetTextBox(EDA_TEXT self, int aLine=-1, bool aInvertY=False) -> BOX2I"""
2900 return _pcbnew.EDA_TEXT_GetTextBox(self, aLine, aInvertY)
2901
2902 def GetInterline(self):
2903 r"""GetInterline(EDA_TEXT self) -> int"""
2904 return _pcbnew.EDA_TEXT_GetInterline(self)
2905
2907 r"""GetTextStyleName(EDA_TEXT self) -> wxString"""
2908 return _pcbnew.EDA_TEXT_GetTextStyleName(self)
2909
2910 def GetLinePositions(self, aPositions, aLineCount):
2911 r"""GetLinePositions(EDA_TEXT self, VECTOR_VECTOR2I aPositions, int aLineCount)"""
2912 return _pcbnew.EDA_TEXT_GetLinePositions(self, aPositions, aLineCount)
2913
2914 def Format(self, aFormatter, aNestLevel, aControlBits):
2915 r"""Format(EDA_TEXT self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControlBits)"""
2916 return _pcbnew.EDA_TEXT_Format(self, aFormatter, aNestLevel, aControlBits)
2917
2919 r"""GetDrawRotation(EDA_TEXT self) -> EDA_ANGLE"""
2920 return _pcbnew.EDA_TEXT_GetDrawRotation(self)
2921
2922 def GetDrawPos(self):
2923 r"""GetDrawPos(EDA_TEXT self) -> VECTOR2I"""
2924 return _pcbnew.EDA_TEXT_GetDrawPos(self)
2925
2927 r"""ClearRenderCache(EDA_TEXT self)"""
2928 return _pcbnew.EDA_TEXT_ClearRenderCache(self)
2929
2931 r"""ClearBoundingBoxCache(EDA_TEXT self)"""
2932 return _pcbnew.EDA_TEXT_ClearBoundingBoxCache(self)
2933
2934 def GetRenderCache(self, *args):
2935 r"""GetRenderCache(EDA_TEXT self, KIFONT::FONT const * aFont, wxString forResolvedText, VECTOR2I aOffset={ 0, 0 }) -> std::vector< std::unique_ptr< KIFONT::GLYPH >,std::allocator< std::unique_ptr< KIFONT::GLYPH > > >"""
2936 return _pcbnew.EDA_TEXT_GetRenderCache(self, *args)
2937
2938 def SetupRenderCache(self, aResolvedText, aAngle):
2939 r"""SetupRenderCache(EDA_TEXT self, wxString aResolvedText, EDA_ANGLE aAngle)"""
2940 return _pcbnew.EDA_TEXT_SetupRenderCache(self, aResolvedText, aAngle)
2941
2942 def AddRenderCacheGlyph(self, aPoly):
2943 r"""AddRenderCacheGlyph(EDA_TEXT self, SHAPE_POLY_SET aPoly)"""
2944 return _pcbnew.EDA_TEXT_AddRenderCacheGlyph(self, aPoly)
2945
2946 def Compare(self, aOther):
2947 r"""Compare(EDA_TEXT self, EDA_TEXT aOther) -> int"""
2948 return _pcbnew.EDA_TEXT_Compare(self, aOther)
2949
2950 def HasHyperlink(self):
2951 r"""HasHyperlink(EDA_TEXT self) -> bool"""
2952 return _pcbnew.EDA_TEXT_HasHyperlink(self)
2953
2954 def GetHyperlink(self):
2955 r"""GetHyperlink(EDA_TEXT self) -> wxString"""
2956 return _pcbnew.EDA_TEXT_GetHyperlink(self)
2957
2958 def SetHyperlink(self, aLink):
2959 r"""SetHyperlink(EDA_TEXT self, wxString aLink)"""
2960 return _pcbnew.EDA_TEXT_SetHyperlink(self, aLink)
2961
2963 r"""RemoveHyperlink(EDA_TEXT self)"""
2964 return _pcbnew.EDA_TEXT_RemoveHyperlink(self)
2965
2966 @staticmethod
2968 r"""ValidateHyperlink(wxString aURL) -> bool"""
2969 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
2970
2971 @staticmethod
2972 def IsGotoPageHref(aHref, aDestination=None):
2973 r"""IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
2974 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
2975
2976 @staticmethod
2977 def GotoPageHref(aDestination):
2978 r"""GotoPageHref(wxString aDestination) -> wxString"""
2979 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
2980
2981
2982 # KiCad 7.0 API Compatibility
2983 def GetEffectiveTextShape(self, aTriangulate=True, aUseTextRotation=True):
2984 return self.GetEffectiveTextShapeNative(aTriangulate)
2985
2986
2987
2988 # KiCad 6 API compatibility
2989 def GetShownText(self):
2990 r"""GetShownText(EDA_TEXT self) -> wxString"""
2991 return _pcbnew.EDA_TEXT_GetShownText(self, True, 0)
2992
2993
2994# Register EDA_TEXT in _pcbnew:
2995_pcbnew.EDA_TEXT_swigregister(EDA_TEXT)
2996
2997def EDA_TEXT_MapHorizJustify(aHorizJustify):
2998 r"""EDA_TEXT_MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
2999 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
3000
3001def EDA_TEXT_MapVertJustify(aVertJustify):
3002 r"""EDA_TEXT_MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
3003 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
3004
3006 r"""EDA_TEXT_ValidateHyperlink(wxString aURL) -> bool"""
3007 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
3008
3009def EDA_TEXT_IsGotoPageHref(aHref, aDestination=None):
3010 r"""EDA_TEXT_IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
3011 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
3012
3013def EDA_TEXT_GotoPageHref(aDestination):
3014 r"""EDA_TEXT_GotoPageHref(wxString aDestination) -> wxString"""
3015 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
3016
3017
3019 r"""GetBuildVersion() -> wxString"""
3020 return _pcbnew.GetBuildVersion()
3021
3023 r"""GetPlatformGetBitnessName() -> wxString"""
3024 return _pcbnew.GetPlatformGetBitnessName()
3025
3027 r"""GetSemanticVersion() -> wxString"""
3028 return _pcbnew.GetSemanticVersion()
3029
3031 r"""GetMajorMinorVersion() -> wxString"""
3032 return _pcbnew.GetMajorMinorVersion()
3033
3035 r"""GetMajorMinorPatchVersion() -> wxString"""
3036 return _pcbnew.GetMajorMinorPatchVersion()
3037
3039 r"""GetBuildDate() -> wxString"""
3040 return _pcbnew.GetBuildDate()
3041
3043 r"""GetCommitHash() -> wxString"""
3044 return _pcbnew.GetCommitHash()
3045
3047 r"""GetMajorMinorPatchTuple() -> std::tuple< int,int,int > const &"""
3048 return _pcbnew.GetMajorMinorPatchTuple()
3049
3051 r"""IsNightlyVersion() -> bool"""
3052 return _pcbnew.IsNightlyVersion()
3053
3054def GetVersionInfoData(aTitle, aHtml=False, aBrief=False):
3055 r"""GetVersionInfoData(wxString aTitle, bool aHtml=False, bool aBrief=False) -> wxString"""
3056 return _pcbnew.GetVersionInfoData(aTitle, aHtml, aBrief)
3057UNDEFINED_LAYER = _pcbnew.UNDEFINED_LAYER
3058
3059UNSELECTED_LAYER = _pcbnew.UNSELECTED_LAYER
3060
3061PCBNEW_LAYER_ID_START = _pcbnew.PCBNEW_LAYER_ID_START
3062
3063F_Cu = _pcbnew.F_Cu
3064
3065In1_Cu = _pcbnew.In1_Cu
3066
3067In2_Cu = _pcbnew.In2_Cu
3068
3069In3_Cu = _pcbnew.In3_Cu
3070
3071In4_Cu = _pcbnew.In4_Cu
3072
3073In5_Cu = _pcbnew.In5_Cu
3074
3075In6_Cu = _pcbnew.In6_Cu
3076
3077In7_Cu = _pcbnew.In7_Cu
3078
3079In8_Cu = _pcbnew.In8_Cu
3080
3081In9_Cu = _pcbnew.In9_Cu
3082
3083In10_Cu = _pcbnew.In10_Cu
3084
3085In11_Cu = _pcbnew.In11_Cu
3086
3087In12_Cu = _pcbnew.In12_Cu
3088
3089In13_Cu = _pcbnew.In13_Cu
3090
3091In14_Cu = _pcbnew.In14_Cu
3092
3093In15_Cu = _pcbnew.In15_Cu
3094
3095In16_Cu = _pcbnew.In16_Cu
3096
3097In17_Cu = _pcbnew.In17_Cu
3098
3099In18_Cu = _pcbnew.In18_Cu
3100
3101In19_Cu = _pcbnew.In19_Cu
3102
3103In20_Cu = _pcbnew.In20_Cu
3104
3105In21_Cu = _pcbnew.In21_Cu
3106
3107In22_Cu = _pcbnew.In22_Cu
3108
3109In23_Cu = _pcbnew.In23_Cu
3110
3111In24_Cu = _pcbnew.In24_Cu
3112
3113In25_Cu = _pcbnew.In25_Cu
3114
3115In26_Cu = _pcbnew.In26_Cu
3116
3117In27_Cu = _pcbnew.In27_Cu
3118
3119In28_Cu = _pcbnew.In28_Cu
3120
3121In29_Cu = _pcbnew.In29_Cu
3122
3123In30_Cu = _pcbnew.In30_Cu
3124
3125B_Cu = _pcbnew.B_Cu
3126
3127B_Adhes = _pcbnew.B_Adhes
3128
3129F_Adhes = _pcbnew.F_Adhes
3130
3131B_Paste = _pcbnew.B_Paste
3132
3133F_Paste = _pcbnew.F_Paste
3134
3135B_SilkS = _pcbnew.B_SilkS
3136
3137F_SilkS = _pcbnew.F_SilkS
3138
3139B_Mask = _pcbnew.B_Mask
3140
3141F_Mask = _pcbnew.F_Mask
3142
3143Dwgs_User = _pcbnew.Dwgs_User
3144
3145Cmts_User = _pcbnew.Cmts_User
3146
3147Eco1_User = _pcbnew.Eco1_User
3148
3149Eco2_User = _pcbnew.Eco2_User
3150
3151Edge_Cuts = _pcbnew.Edge_Cuts
3152
3153Margin = _pcbnew.Margin
3154
3155B_CrtYd = _pcbnew.B_CrtYd
3156
3157F_CrtYd = _pcbnew.F_CrtYd
3158
3159B_Fab = _pcbnew.B_Fab
3160
3161F_Fab = _pcbnew.F_Fab
3162
3163User_1 = _pcbnew.User_1
3164
3165User_2 = _pcbnew.User_2
3166
3167User_3 = _pcbnew.User_3
3168
3169User_4 = _pcbnew.User_4
3170
3171User_5 = _pcbnew.User_5
3172
3173User_6 = _pcbnew.User_6
3174
3175User_7 = _pcbnew.User_7
3176
3177User_8 = _pcbnew.User_8
3178
3179User_9 = _pcbnew.User_9
3180
3181Rescue = _pcbnew.Rescue
3182
3183PCB_LAYER_ID_COUNT = _pcbnew.PCB_LAYER_ID_COUNT
3184
3185FLASHING_DEFAULT = _pcbnew.FLASHING_DEFAULT
3186
3187FLASHING_ALWAYS_FLASHED = _pcbnew.FLASHING_ALWAYS_FLASHED
3188
3189FLASHING_NEVER_FLASHED = _pcbnew.FLASHING_NEVER_FLASHED
3190
3191NETNAMES_LAYER_ID_START = _pcbnew.NETNAMES_LAYER_ID_START
3192
3193NETNAMES_LAYER_ID_RESERVED = _pcbnew.NETNAMES_LAYER_ID_RESERVED
3194
3195LAYER_PAD_FR_NETNAMES = _pcbnew.LAYER_PAD_FR_NETNAMES
3196
3197LAYER_PAD_BK_NETNAMES = _pcbnew.LAYER_PAD_BK_NETNAMES
3198
3199LAYER_PAD_NETNAMES = _pcbnew.LAYER_PAD_NETNAMES
3200
3201LAYER_VIA_NETNAMES = _pcbnew.LAYER_VIA_NETNAMES
3202
3203NETNAMES_LAYER_ID_END = _pcbnew.NETNAMES_LAYER_ID_END
3204
3205GAL_LAYER_ID_START = _pcbnew.GAL_LAYER_ID_START
3206
3207LAYER_VIAS = _pcbnew.LAYER_VIAS
3208
3209LAYER_VIA_MICROVIA = _pcbnew.LAYER_VIA_MICROVIA
3210
3211LAYER_VIA_BBLIND = _pcbnew.LAYER_VIA_BBLIND
3212
3213LAYER_VIA_THROUGH = _pcbnew.LAYER_VIA_THROUGH
3214
3215LAYER_NON_PLATEDHOLES = _pcbnew.LAYER_NON_PLATEDHOLES
3216
3217LAYER_MOD_TEXT = _pcbnew.LAYER_MOD_TEXT
3218
3219LAYER_MOD_TEXT_INVISIBLE = _pcbnew.LAYER_MOD_TEXT_INVISIBLE
3220
3221LAYER_ANCHOR = _pcbnew.LAYER_ANCHOR
3222
3223LAYER_PAD_FR = _pcbnew.LAYER_PAD_FR
3224
3225LAYER_PAD_BK = _pcbnew.LAYER_PAD_BK
3226
3227LAYER_RATSNEST = _pcbnew.LAYER_RATSNEST
3228
3229LAYER_GRID = _pcbnew.LAYER_GRID
3230
3231LAYER_GRID_AXES = _pcbnew.LAYER_GRID_AXES
3232
3233LAYER_MOD_FR = _pcbnew.LAYER_MOD_FR
3234
3235LAYER_MOD_BK = _pcbnew.LAYER_MOD_BK
3236
3237LAYER_MOD_VALUES = _pcbnew.LAYER_MOD_VALUES
3238
3239LAYER_MOD_REFERENCES = _pcbnew.LAYER_MOD_REFERENCES
3240
3241LAYER_TRACKS = _pcbnew.LAYER_TRACKS
3242
3243LAYER_PADS_TH = _pcbnew.LAYER_PADS_TH
3244
3245LAYER_PAD_PLATEDHOLES = _pcbnew.LAYER_PAD_PLATEDHOLES
3246
3247LAYER_VIA_HOLES = _pcbnew.LAYER_VIA_HOLES
3248
3249LAYER_DRC_ERROR = _pcbnew.LAYER_DRC_ERROR
3250
3251LAYER_DRAWINGSHEET = _pcbnew.LAYER_DRAWINGSHEET
3252
3253LAYER_GP_OVERLAY = _pcbnew.LAYER_GP_OVERLAY
3254
3255LAYER_SELECT_OVERLAY = _pcbnew.LAYER_SELECT_OVERLAY
3256
3257LAYER_PCB_BACKGROUND = _pcbnew.LAYER_PCB_BACKGROUND
3258
3259LAYER_CURSOR = _pcbnew.LAYER_CURSOR
3260
3261LAYER_AUX_ITEMS = _pcbnew.LAYER_AUX_ITEMS
3262
3263LAYER_DRAW_BITMAPS = _pcbnew.LAYER_DRAW_BITMAPS
3264
3265GAL_LAYER_ID_BITMASK_END = _pcbnew.GAL_LAYER_ID_BITMASK_END
3266
3267LAYER_PADS = _pcbnew.LAYER_PADS
3268
3269LAYER_ZONES = _pcbnew.LAYER_ZONES
3270
3271LAYER_PAD_HOLEWALLS = _pcbnew.LAYER_PAD_HOLEWALLS
3272
3273LAYER_VIA_HOLEWALLS = _pcbnew.LAYER_VIA_HOLEWALLS
3274
3275LAYER_DRC_WARNING = _pcbnew.LAYER_DRC_WARNING
3276
3277LAYER_DRC_EXCLUSION = _pcbnew.LAYER_DRC_EXCLUSION
3278
3279LAYER_MARKER_SHADOWS = _pcbnew.LAYER_MARKER_SHADOWS
3280
3281LAYER_LOCKED_ITEM_SHADOW = _pcbnew.LAYER_LOCKED_ITEM_SHADOW
3282
3283LAYER_CONFLICTS_SHADOW = _pcbnew.LAYER_CONFLICTS_SHADOW
3284
3285LAYER_DRAWINGSHEET_PAGE1 = _pcbnew.LAYER_DRAWINGSHEET_PAGE1
3286
3287LAYER_DRAWINGSHEET_PAGEn = _pcbnew.LAYER_DRAWINGSHEET_PAGEn
3288
3289LAYER_PAGE_LIMITS = _pcbnew.LAYER_PAGE_LIMITS
3290
3291LAYER_ZONE_START = _pcbnew.LAYER_ZONE_START
3292
3293LAYER_ZONE_END = _pcbnew.LAYER_ZONE_END
3294
3295LAYER_BITMAP_START = _pcbnew.LAYER_BITMAP_START
3296
3297LAYER_BITMAP_END = _pcbnew.LAYER_BITMAP_END
3298
3299GAL_LAYER_ID_END = _pcbnew.GAL_LAYER_ID_END
3300
3301
3302def ToGalLayer(aInteger):
3303 r"""ToGalLayer(int aInteger) -> GAL_LAYER_ID"""
3304 return _pcbnew.ToGalLayer(aInteger)
3306 r"""Proxy of C++ GAL_SET class."""
3307
3308 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3309 __repr__ = _swig_repr
3310
3311 def __init__(self, *args):
3312 r"""
3313 __init__(GAL_SET self) -> GAL_SET
3314 __init__(GAL_SET self, GAL_SET aOther) -> GAL_SET
3315 __init__(GAL_SET self, GAL_LAYER_ID const * aArray, unsigned int aCount) -> GAL_SET
3316 """
3317 _pcbnew.GAL_SET_swiginit(self, _pcbnew.new_GAL_SET(*args))
3318
3319 def set(self, *args):
3320 r"""
3321 set(GAL_SET self) -> GAL_SET
3322 set(GAL_SET self, int aPos, bool aVal=True) -> GAL_SET
3323 set(GAL_SET self, GAL_LAYER_ID aPos, bool aVal=True) -> GAL_SET
3324 """
3325 return _pcbnew.GAL_SET_set(self, *args)
3326
3327 def Contains(self, aPos):
3328 r"""Contains(GAL_SET self, GAL_LAYER_ID aPos) -> bool"""
3329 return _pcbnew.GAL_SET_Contains(self, aPos)
3330
3331 def Seq(self):
3332 r"""Seq(GAL_SET self) -> std::vector< GAL_LAYER_ID,std::allocator< GAL_LAYER_ID > >"""
3333 return _pcbnew.GAL_SET_Seq(self)
3334
3335 @staticmethod
3337 r"""DefaultVisible() -> GAL_SET"""
3338 return _pcbnew.GAL_SET_DefaultVisible()
3339 __swig_destroy__ = _pcbnew.delete_GAL_SET
3340
3341# Register GAL_SET in _pcbnew:
3342_pcbnew.GAL_SET_swigregister(GAL_SET)
3343GAL_LAYER_ID_COUNT = cvar.GAL_LAYER_ID_COUNT
3344
3346 r"""GAL_SET_DefaultVisible() -> GAL_SET"""
3347 return _pcbnew.GAL_SET_DefaultVisible()
3348
3349SCH_LAYER_ID_START = _pcbnew.SCH_LAYER_ID_START
3350
3351LAYER_WIRE = _pcbnew.LAYER_WIRE
3352
3353LAYER_BUS = _pcbnew.LAYER_BUS
3354
3355LAYER_JUNCTION = _pcbnew.LAYER_JUNCTION
3356
3357LAYER_LOCLABEL = _pcbnew.LAYER_LOCLABEL
3358
3359LAYER_GLOBLABEL = _pcbnew.LAYER_GLOBLABEL
3360
3361LAYER_HIERLABEL = _pcbnew.LAYER_HIERLABEL
3362
3363LAYER_PINNUM = _pcbnew.LAYER_PINNUM
3364
3365LAYER_PINNAM = _pcbnew.LAYER_PINNAM
3366
3367LAYER_REFERENCEPART = _pcbnew.LAYER_REFERENCEPART
3368
3369LAYER_VALUEPART = _pcbnew.LAYER_VALUEPART
3370
3371LAYER_FIELDS = _pcbnew.LAYER_FIELDS
3372
3373LAYER_INTERSHEET_REFS = _pcbnew.LAYER_INTERSHEET_REFS
3374
3375LAYER_NETCLASS_REFS = _pcbnew.LAYER_NETCLASS_REFS
3376
3377LAYER_DEVICE = _pcbnew.LAYER_DEVICE
3378
3379LAYER_NOTES = _pcbnew.LAYER_NOTES
3380
3381LAYER_PRIVATE_NOTES = _pcbnew.LAYER_PRIVATE_NOTES
3382
3383LAYER_NOTES_BACKGROUND = _pcbnew.LAYER_NOTES_BACKGROUND
3384
3385LAYER_PIN = _pcbnew.LAYER_PIN
3386
3387LAYER_SHEET = _pcbnew.LAYER_SHEET
3388
3389LAYER_SHEETNAME = _pcbnew.LAYER_SHEETNAME
3390
3391LAYER_SHEETFILENAME = _pcbnew.LAYER_SHEETFILENAME
3392
3393LAYER_SHEETFIELDS = _pcbnew.LAYER_SHEETFIELDS
3394
3395LAYER_SHEETLABEL = _pcbnew.LAYER_SHEETLABEL
3396
3397LAYER_NOCONNECT = _pcbnew.LAYER_NOCONNECT
3398
3399LAYER_DANGLING = _pcbnew.LAYER_DANGLING
3400
3401LAYER_ERC_WARN = _pcbnew.LAYER_ERC_WARN
3402
3403LAYER_ERC_ERR = _pcbnew.LAYER_ERC_ERR
3404
3405LAYER_ERC_EXCLUSION = _pcbnew.LAYER_ERC_EXCLUSION
3406
3407LAYER_DEVICE_BACKGROUND = _pcbnew.LAYER_DEVICE_BACKGROUND
3408
3409LAYER_SHEET_BACKGROUND = _pcbnew.LAYER_SHEET_BACKGROUND
3410
3411LAYER_SCHEMATIC_GRID = _pcbnew.LAYER_SCHEMATIC_GRID
3412
3413LAYER_SCHEMATIC_GRID_AXES = _pcbnew.LAYER_SCHEMATIC_GRID_AXES
3414
3415LAYER_SCHEMATIC_BACKGROUND = _pcbnew.LAYER_SCHEMATIC_BACKGROUND
3416
3417LAYER_SCHEMATIC_CURSOR = _pcbnew.LAYER_SCHEMATIC_CURSOR
3418
3419LAYER_HOVERED = _pcbnew.LAYER_HOVERED
3420
3421LAYER_BRIGHTENED = _pcbnew.LAYER_BRIGHTENED
3422
3423LAYER_HIDDEN = _pcbnew.LAYER_HIDDEN
3424
3425LAYER_SELECTION_SHADOWS = _pcbnew.LAYER_SELECTION_SHADOWS
3426
3427LAYER_SCHEMATIC_DRAWINGSHEET = _pcbnew.LAYER_SCHEMATIC_DRAWINGSHEET
3428
3429LAYER_SCHEMATIC_PAGE_LIMITS = _pcbnew.LAYER_SCHEMATIC_PAGE_LIMITS
3430
3431LAYER_BUS_JUNCTION = _pcbnew.LAYER_BUS_JUNCTION
3432
3433LAYER_SCHEMATIC_AUX_ITEMS = _pcbnew.LAYER_SCHEMATIC_AUX_ITEMS
3434
3435LAYER_SCHEMATIC_ANCHOR = _pcbnew.LAYER_SCHEMATIC_ANCHOR
3436
3437SCH_LAYER_ID_END = _pcbnew.SCH_LAYER_ID_END
3438
3439GERBVIEW_LAYER_ID_START = _pcbnew.GERBVIEW_LAYER_ID_START
3440
3441GERBVIEW_LAYER_ID_RESERVED = _pcbnew.GERBVIEW_LAYER_ID_RESERVED
3442
3443LAYER_DCODES = _pcbnew.LAYER_DCODES
3444
3445LAYER_NEGATIVE_OBJECTS = _pcbnew.LAYER_NEGATIVE_OBJECTS
3446
3447LAYER_GERBVIEW_GRID = _pcbnew.LAYER_GERBVIEW_GRID
3448
3449LAYER_GERBVIEW_AXES = _pcbnew.LAYER_GERBVIEW_AXES
3450
3451LAYER_GERBVIEW_BACKGROUND = _pcbnew.LAYER_GERBVIEW_BACKGROUND
3452
3453LAYER_GERBVIEW_DRAWINGSHEET = _pcbnew.LAYER_GERBVIEW_DRAWINGSHEET
3454
3455LAYER_GERBVIEW_PAGE_LIMITS = _pcbnew.LAYER_GERBVIEW_PAGE_LIMITS
3456
3457GERBVIEW_LAYER_ID_END = _pcbnew.GERBVIEW_LAYER_ID_END
3458
3459LAYER_3D_START = _pcbnew.LAYER_3D_START
3460
3461LAYER_3D_BACKGROUND_BOTTOM = _pcbnew.LAYER_3D_BACKGROUND_BOTTOM
3462
3463LAYER_3D_BACKGROUND_TOP = _pcbnew.LAYER_3D_BACKGROUND_TOP
3464
3465LAYER_3D_BOARD = _pcbnew.LAYER_3D_BOARD
3466
3467LAYER_3D_COPPER = _pcbnew.LAYER_3D_COPPER
3468
3469LAYER_3D_SILKSCREEN_BOTTOM = _pcbnew.LAYER_3D_SILKSCREEN_BOTTOM
3470
3471LAYER_3D_SILKSCREEN_TOP = _pcbnew.LAYER_3D_SILKSCREEN_TOP
3472
3473LAYER_3D_SOLDERMASK_BOTTOM = _pcbnew.LAYER_3D_SOLDERMASK_BOTTOM
3474
3475LAYER_3D_SOLDERMASK_TOP = _pcbnew.LAYER_3D_SOLDERMASK_TOP
3476
3477LAYER_3D_SOLDERPASTE = _pcbnew.LAYER_3D_SOLDERPASTE
3478
3479LAYER_3D_END = _pcbnew.LAYER_3D_END
3480
3481
3482def LayerName(aLayer):
3483 r"""LayerName(int aLayer) -> wxString"""
3484 return _pcbnew.LayerName(aLayer)
3486 r"""Proxy of C++ LSEQ class."""
3487
3488 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3489 __repr__ = _swig_repr
3490
3491 def __init__(self):
3492 r"""__init__(LSEQ self) -> LSEQ"""
3493 _pcbnew.LSEQ_swiginit(self, _pcbnew.new_LSEQ())
3494
3495 def Rewind(self):
3496 r"""Rewind(LSEQ self)"""
3497 return _pcbnew.LSEQ_Rewind(self)
3498
3499 def __nonzero__(self):
3500 return _pcbnew.LSEQ___nonzero__(self)
3501 __bool__ = __nonzero__
3502
3503
3504
3505 def __ref__(self):
3506 r"""__ref__(LSEQ self) -> PCB_LAYER_ID"""
3507 return _pcbnew.LSEQ___ref__(self)
3508 __swig_destroy__ = _pcbnew.delete_LSEQ
3509
3510# Register LSEQ in _pcbnew:
3511_pcbnew.LSEQ_swigregister(LSEQ)
3512
3514 r"""Proxy of C++ LSET class."""
3515
3516 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3517 __repr__ = _swig_repr
3518
3519 def __init__(self, *args):
3520 r"""
3521 __init__(LSET self) -> LSET
3522 __init__(LSET self, BASE_SET const & aOther) -> LSET
3523 __init__(LSET self, PCB_LAYER_ID aLayer) -> LSET
3524 __init__(LSET self, PCB_LAYER_ID const * aArray, unsigned int aCount) -> LSET
3525 __init__(LSET self, unsigned int aIdCount, int aFirst) -> LSET
3526 """
3527 _pcbnew.LSET_swiginit(self, _pcbnew.new_LSET(*args))
3528
3529 def Contains(self, aLayer):
3530 r"""Contains(LSET self, PCB_LAYER_ID aLayer) -> bool"""
3531 return _pcbnew.LSET_Contains(self, aLayer)
3532
3533 @staticmethod
3534 def Name(aLayerId):
3535 r"""Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3536 return _pcbnew.LSET_Name(aLayerId)
3537
3538 @staticmethod
3540 r"""InternalCuMask() -> LSET"""
3541 return _pcbnew.LSET_InternalCuMask()
3542
3543 @staticmethod
3545 r"""FrontAssembly() -> LSET"""
3546 return _pcbnew.LSET_FrontAssembly()
3547
3548 @staticmethod
3550 r"""BackAssembly() -> LSET"""
3551 return _pcbnew.LSET_BackAssembly()
3552
3553 @staticmethod
3554 def AllCuMask(*args):
3555 r"""AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3556 return _pcbnew.LSET_AllCuMask(*args)
3557
3558 @staticmethod
3560 r"""ExternalCuMask() -> LSET"""
3561 return _pcbnew.LSET_ExternalCuMask()
3562
3563 @staticmethod
3565 r"""AllNonCuMask() -> LSET"""
3566 return _pcbnew.LSET_AllNonCuMask()
3567
3568 @staticmethod
3570 r"""AllLayersMask() -> LSET"""
3571 return _pcbnew.LSET_AllLayersMask()
3572
3573 @staticmethod
3575 r"""FrontTechMask() -> LSET"""
3576 return _pcbnew.LSET_FrontTechMask()
3577
3578 @staticmethod
3580 r"""FrontBoardTechMask() -> LSET"""
3581 return _pcbnew.LSET_FrontBoardTechMask()
3582
3583 @staticmethod
3585 r"""BackTechMask() -> LSET"""
3586 return _pcbnew.LSET_BackTechMask()
3587
3588 @staticmethod
3590 r"""BackBoardTechMask() -> LSET"""
3591 return _pcbnew.LSET_BackBoardTechMask()
3592
3593 @staticmethod
3595 r"""AllTechMask() -> LSET"""
3596 return _pcbnew.LSET_AllTechMask()
3597
3598 @staticmethod
3600 r"""AllBoardTechMask() -> LSET"""
3601 return _pcbnew.LSET_AllBoardTechMask()
3602
3603 @staticmethod
3605 r"""FrontMask() -> LSET"""
3606 return _pcbnew.LSET_FrontMask()
3607
3608 @staticmethod
3610 r"""BackMask() -> LSET"""
3611 return _pcbnew.LSET_BackMask()
3612
3613 @staticmethod
3615 r"""SideSpecificMask() -> LSET"""
3616 return _pcbnew.LSET_SideSpecificMask()
3617
3618 @staticmethod
3620 r"""UserMask() -> LSET"""
3621 return _pcbnew.LSET_UserMask()
3622
3623 @staticmethod
3625 r"""PhysicalLayersMask() -> LSET"""
3626 return _pcbnew.LSET_PhysicalLayersMask()
3627
3628 @staticmethod
3630 r"""UserDefinedLayers() -> LSET"""
3631 return _pcbnew.LSET_UserDefinedLayers()
3632
3633 @staticmethod
3635 r"""ForbiddenFootprintLayers() -> LSET"""
3636 return _pcbnew.LSET_ForbiddenFootprintLayers()
3637
3638 def CuStack(self):
3639 r"""CuStack(LSET self) -> LSEQ"""
3640 return _pcbnew.LSET_CuStack(self)
3641
3642 def Technicals(self, *args):
3643 r"""Technicals(LSET self, LSET aSubToOmit=LSET()) -> LSEQ"""
3644 return _pcbnew.LSET_Technicals(self, *args)
3645
3646 def Users(self):
3647 r"""Users(LSET self) -> LSEQ"""
3648 return _pcbnew.LSET_Users(self)
3649
3651 r"""TechAndUserUIOrder(LSET self) -> LSEQ"""
3652 return _pcbnew.LSET_TechAndUserUIOrder(self)
3653
3654 def UIOrder(self):
3655 r"""UIOrder(LSET self) -> LSEQ"""
3656 return _pcbnew.LSET_UIOrder(self)
3657
3658 def Seq(self, *args):
3659 r"""
3660 Seq(LSET self, PCB_LAYER_ID const * aWishListSequence, unsigned int aCount) -> LSEQ
3661 Seq(LSET self, LSEQ aSequence) -> LSEQ
3662 Seq(LSET self) -> LSEQ
3663 """
3664 return _pcbnew.LSET_Seq(self, *args)
3665
3667 r"""SeqStackupBottom2Top(LSET self) -> LSEQ"""
3668 return _pcbnew.LSET_SeqStackupBottom2Top(self)
3669
3670 def FmtHex(self):
3671 r"""FmtHex(LSET self) -> string"""
3672 return _pcbnew.LSET_FmtHex(self)
3673
3674 def ParseHex(self, aStart, aCount):
3675 r"""ParseHex(LSET self, char const * aStart, int aCount) -> int"""
3676 return _pcbnew.LSET_ParseHex(self, aStart, aCount)
3677
3678 def FmtBin(self):
3679 r"""FmtBin(LSET self) -> string"""
3680 return _pcbnew.LSET_FmtBin(self)
3681
3682 def ExtractLayer(self):
3683 r"""ExtractLayer(LSET self) -> PCB_LAYER_ID"""
3684 return _pcbnew.LSET_ExtractLayer(self)
3685
3686 def addLayer(self, aLayer):
3687 r"""addLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3688 return _pcbnew.LSET_addLayer(self, aLayer)
3689
3690 def removeLayer(self, aLayer):
3691 r"""removeLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3692 return _pcbnew.LSET_removeLayer(self, aLayer)
3693
3694 def addLayerSet(self, aLayerSet):
3695 r"""addLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3696 return _pcbnew.LSET_addLayerSet(self, aLayerSet)
3697
3698 def removeLayerSet(self, aLayerSet):
3699 r"""removeLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3700 return _pcbnew.LSET_removeLayerSet(self, aLayerSet)
3701
3702 def AddLayer(self, layer):
3703 return self.addLayer( layer )
3704
3705 def AddLayerSet(self, layers):
3706 return self.addLayerSet( layers )
3707
3708 def RemoveLayer(self, layer):
3709 return self.removeLayer( layer )
3710
3711 def RemoveLayerSet(self, layers):
3712 return self.removeLayerSet( layers )
3713
3714 __swig_destroy__ = _pcbnew.delete_LSET
3715
3716# Register LSET in _pcbnew:
3717_pcbnew.LSET_swigregister(LSET)
3718
3719def LSET_Name(aLayerId):
3720 r"""LSET_Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3721 return _pcbnew.LSET_Name(aLayerId)
3722
3724 r"""LSET_InternalCuMask() -> LSET"""
3725 return _pcbnew.LSET_InternalCuMask()
3726
3728 r"""LSET_FrontAssembly() -> LSET"""
3729 return _pcbnew.LSET_FrontAssembly()
3730
3732 r"""LSET_BackAssembly() -> LSET"""
3733 return _pcbnew.LSET_BackAssembly()
3734
3736 r"""LSET_AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3737 return _pcbnew.LSET_AllCuMask(*args)
3738
3740 r"""LSET_ExternalCuMask() -> LSET"""
3741 return _pcbnew.LSET_ExternalCuMask()
3742
3744 r"""LSET_AllNonCuMask() -> LSET"""
3745 return _pcbnew.LSET_AllNonCuMask()
3746
3748 r"""LSET_AllLayersMask() -> LSET"""
3749 return _pcbnew.LSET_AllLayersMask()
3750
3752 r"""LSET_FrontTechMask() -> LSET"""
3753 return _pcbnew.LSET_FrontTechMask()
3754
3756 r"""LSET_FrontBoardTechMask() -> LSET"""
3757 return _pcbnew.LSET_FrontBoardTechMask()
3758
3760 r"""LSET_BackTechMask() -> LSET"""
3761 return _pcbnew.LSET_BackTechMask()
3762
3764 r"""LSET_BackBoardTechMask() -> LSET"""
3765 return _pcbnew.LSET_BackBoardTechMask()
3766
3768 r"""LSET_AllTechMask() -> LSET"""
3769 return _pcbnew.LSET_AllTechMask()
3770
3772 r"""LSET_AllBoardTechMask() -> LSET"""
3773 return _pcbnew.LSET_AllBoardTechMask()
3774
3776 r"""LSET_FrontMask() -> LSET"""
3777 return _pcbnew.LSET_FrontMask()
3778
3780 r"""LSET_BackMask() -> LSET"""
3781 return _pcbnew.LSET_BackMask()
3782
3784 r"""LSET_SideSpecificMask() -> LSET"""
3785 return _pcbnew.LSET_SideSpecificMask()
3786
3788 r"""LSET_UserMask() -> LSET"""
3789 return _pcbnew.LSET_UserMask()
3790
3792 r"""LSET_PhysicalLayersMask() -> LSET"""
3793 return _pcbnew.LSET_PhysicalLayersMask()
3794
3796 r"""LSET_UserDefinedLayers() -> LSET"""
3797 return _pcbnew.LSET_UserDefinedLayers()
3798
3800 r"""LSET_ForbiddenFootprintLayers() -> LSET"""
3801 return _pcbnew.LSET_ForbiddenFootprintLayers()
3802
3803
3804def IsValidLayer(aLayerId):
3805 r"""IsValidLayer(int aLayerId) -> bool"""
3806 return _pcbnew.IsValidLayer(aLayerId)
3807
3808def IsPcbLayer(aLayer):
3809 r"""IsPcbLayer(int aLayer) -> bool"""
3810 return _pcbnew.IsPcbLayer(aLayer)
3811
3812def IsNonCopperLayer(aLayerId):
3813 r"""IsNonCopperLayer(int aLayerId) -> bool"""
3814 return _pcbnew.IsNonCopperLayer(aLayerId)
3815
3816def IsCopperLayer(*args):
3817 r"""
3818 IsCopperLayer(int aLayerId) -> bool
3819 IsCopperLayer(int aLayerId, bool aIncludeSyntheticCopperLayers) -> bool
3820 """
3821 return _pcbnew.IsCopperLayer(*args)
3822
3823def IsViaPadLayer(aLayer):
3824 r"""IsViaPadLayer(int aLayer) -> bool"""
3825 return _pcbnew.IsViaPadLayer(aLayer)
3826
3827def IsHoleLayer(aLayer):
3828 r"""IsHoleLayer(int aLayer) -> bool"""
3829 return _pcbnew.IsHoleLayer(aLayer)
3830
3831def IsUserLayer(aLayerId):
3832 r"""IsUserLayer(PCB_LAYER_ID aLayerId) -> bool"""
3833 return _pcbnew.IsUserLayer(aLayerId)
3834
3835def IsFrontLayer(aLayerId):
3836 r"""IsFrontLayer(PCB_LAYER_ID aLayerId) -> bool"""
3837 return _pcbnew.IsFrontLayer(aLayerId)
3838
3839def IsBackLayer(aLayerId):
3840 r"""IsBackLayer(PCB_LAYER_ID aLayerId) -> bool"""
3841 return _pcbnew.IsBackLayer(aLayerId)
3842
3843def FlipLayer(aLayerId, aCopperLayersCount=0):
3844 r"""FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount=0) -> PCB_LAYER_ID"""
3845 return _pcbnew.FlipLayer(aLayerId, aCopperLayersCount)
3846
3847def FlipLayerMask(aMask, aCopperLayersCount=0):
3848 r"""FlipLayerMask(LSET aMask, int aCopperLayersCount=0) -> LSET"""
3849 return _pcbnew.FlipLayerMask(aMask, aCopperLayersCount)
3850
3852 r"""GetNetnameLayer(int aLayer) -> int"""
3853 return _pcbnew.GetNetnameLayer(aLayer)
3854
3855def IsNetnameLayer(aLayer):
3856 r"""IsNetnameLayer(int aLayer) -> bool"""
3857 return _pcbnew.IsNetnameLayer(aLayer)
3858
3860 r"""IsZoneFillLayer(int aLayer) -> bool"""
3861 return _pcbnew.IsZoneFillLayer(aLayer)
3862
3863def IsDCodeLayer(aLayer):
3864 r"""IsDCodeLayer(int aLayer) -> bool"""
3865 return _pcbnew.IsDCodeLayer(aLayer)
3866
3868 r"""IsNetCopperLayer(int aLayer) -> bool"""
3869 return _pcbnew.IsNetCopperLayer(aLayer)
3870
3871def ToLAYER_ID(aLayer):
3872 r"""ToLAYER_ID(int aLayer) -> PCB_LAYER_ID"""
3873 return _pcbnew.ToLAYER_ID(aLayer)
3875 r"""Proxy of C++ SETTINGS_MANAGER class."""
3876
3877 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3878 __repr__ = _swig_repr
3879
3880 def __init__(self, aHeadless=False):
3881 r"""__init__(SETTINGS_MANAGER self, bool aHeadless=False) -> SETTINGS_MANAGER"""
3882 _pcbnew.SETTINGS_MANAGER_swiginit(self, _pcbnew.new_SETTINGS_MANAGER(aHeadless))
3883 __swig_destroy__ = _pcbnew.delete_SETTINGS_MANAGER
3884
3885 def IsOK(self):
3886 r"""IsOK(SETTINGS_MANAGER self) -> bool"""
3887 return _pcbnew.SETTINGS_MANAGER_IsOK(self)
3888
3889 def SetKiway(self, aKiway):
3890 r"""SetKiway(SETTINGS_MANAGER self, KIWAY * aKiway)"""
3891 return _pcbnew.SETTINGS_MANAGER_SetKiway(self, aKiway)
3892
3893 def Load(self, *args):
3894 r"""
3895 Load(SETTINGS_MANAGER self)
3896 Load(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
3897 """
3898 return _pcbnew.SETTINGS_MANAGER_Load(self, *args)
3899
3900 def Save(self, *args):
3901 r"""
3902 Save(SETTINGS_MANAGER self)
3903 Save(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
3904 """
3905 return _pcbnew.SETTINGS_MANAGER_Save(self, *args)
3906
3907 def FlushAndRelease(self, aSettings, aSave=True):
3908 r"""FlushAndRelease(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings, bool aSave=True)"""
3909 return _pcbnew.SETTINGS_MANAGER_FlushAndRelease(self, aSettings, aSave)
3910
3911 def GetColorSettings(self, *args):
3912 r"""GetColorSettings(SETTINGS_MANAGER self, wxString aName="user") -> COLOR_SETTINGS"""
3913 return _pcbnew.SETTINGS_MANAGER_GetColorSettings(self, *args)
3914
3916 r"""GetColorSettingsList(SETTINGS_MANAGER self) -> std::vector< COLOR_SETTINGS *,std::allocator< COLOR_SETTINGS * > >"""
3917 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsList(self)
3918
3919 def SaveColorSettings(self, *args):
3920 r"""SaveColorSettings(SETTINGS_MANAGER self, COLOR_SETTINGS * aSettings, string aNamespace="")"""
3921 return _pcbnew.SETTINGS_MANAGER_SaveColorSettings(self, *args)
3922
3923 def AddNewColorSettings(self, aFilename):
3924 r"""AddNewColorSettings(SETTINGS_MANAGER self, wxString aFilename) -> COLOR_SETTINGS *"""
3925 return _pcbnew.SETTINGS_MANAGER_AddNewColorSettings(self, aFilename)
3926
3928 r"""GetMigratedColorSettings(SETTINGS_MANAGER self) -> COLOR_SETTINGS *"""
3929 return _pcbnew.SETTINGS_MANAGER_GetMigratedColorSettings(self)
3930
3932 r"""GetCommonSettings(SETTINGS_MANAGER self) -> COMMON_SETTINGS *"""
3933 return _pcbnew.SETTINGS_MANAGER_GetCommonSettings(self)
3934
3935 def GetPathForSettingsFile(self, aSettings):
3936 r"""GetPathForSettingsFile(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings) -> wxString"""
3937 return _pcbnew.SETTINGS_MANAGER_GetPathForSettingsFile(self, aSettings)
3938
3940 r"""MigrateIfNeeded(SETTINGS_MANAGER self) -> bool"""
3941 return _pcbnew.SETTINGS_MANAGER_MigrateIfNeeded(self)
3942
3943 def SetMigrationSource(self, aSource):
3944 r"""SetMigrationSource(SETTINGS_MANAGER self, wxString aSource)"""
3945 return _pcbnew.SETTINGS_MANAGER_SetMigrationSource(self, aSource)
3946
3947 def SetMigrateLibraryTables(self, aMigrate=True):
3948 r"""SetMigrateLibraryTables(SETTINGS_MANAGER self, bool aMigrate=True)"""
3949 return _pcbnew.SETTINGS_MANAGER_SetMigrateLibraryTables(self, aMigrate)
3950
3951 def GetPreviousVersionPaths(self, aName=None):
3952 r"""GetPreviousVersionPaths(SETTINGS_MANAGER self, std::vector< wxString,std::allocator< wxString > > * aName=None) -> bool"""
3953 return _pcbnew.SETTINGS_MANAGER_GetPreviousVersionPaths(self, aName)
3954
3956 r"""ReloadColorSettings(SETTINGS_MANAGER self)"""
3957 return _pcbnew.SETTINGS_MANAGER_ReloadColorSettings(self)
3958
3959 def LoadProject(self, aFullPath, aSetActive=True):
3960 r"""LoadProject(SETTINGS_MANAGER self, wxString aFullPath, bool aSetActive=True) -> bool"""
3961 return _pcbnew.SETTINGS_MANAGER_LoadProject(self, aFullPath, aSetActive)
3962
3963 def UnloadProject(self, aProject, aSave=True):
3964 r"""UnloadProject(SETTINGS_MANAGER self, PROJECT * aProject, bool aSave=True) -> bool"""
3965 return _pcbnew.SETTINGS_MANAGER_UnloadProject(self, aProject, aSave)
3966
3967 def IsProjectOpen(self):
3968 r"""IsProjectOpen(SETTINGS_MANAGER self) -> bool"""
3969 return _pcbnew.SETTINGS_MANAGER_IsProjectOpen(self)
3970
3971 def Prj(self):
3972 r"""Prj(SETTINGS_MANAGER self) -> PROJECT &"""
3973 return _pcbnew.SETTINGS_MANAGER_Prj(self)
3974
3975 def GetProject(self, aFullPath):
3976 r"""GetProject(SETTINGS_MANAGER self, wxString aFullPath) -> PROJECT *"""
3977 return _pcbnew.SETTINGS_MANAGER_GetProject(self, aFullPath)
3978
3980 r"""GetOpenProjects(SETTINGS_MANAGER self) -> std::vector< wxString,std::allocator< wxString > >"""
3981 return _pcbnew.SETTINGS_MANAGER_GetOpenProjects(self)
3982
3983 def SaveProject(self, *args):
3984 r"""SaveProject(SETTINGS_MANAGER self, wxString aFullPath=wxEmptyString, PROJECT * aProject=None) -> bool"""
3985 return _pcbnew.SETTINGS_MANAGER_SaveProject(self, *args)
3986
3987 def SaveProjectAs(self, aFullPath, aProject=None):
3988 r"""SaveProjectAs(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
3989 return _pcbnew.SETTINGS_MANAGER_SaveProjectAs(self, aFullPath, aProject)
3990
3991 def SaveProjectCopy(self, aFullPath, aProject=None):
3992 r"""SaveProjectCopy(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
3993 return _pcbnew.SETTINGS_MANAGER_SaveProjectCopy(self, aFullPath, aProject)
3994
3996 r"""GetProjectBackupsPath(SETTINGS_MANAGER self) -> wxString"""
3997 return _pcbnew.SETTINGS_MANAGER_GetProjectBackupsPath(self)
3998
3999 def BackupProject(self, aReporter):
4000 r"""BackupProject(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4001 return _pcbnew.SETTINGS_MANAGER_BackupProject(self, aReporter)
4002
4003 def TriggerBackupIfNeeded(self, aReporter):
4004 r"""TriggerBackupIfNeeded(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4005 return _pcbnew.SETTINGS_MANAGER_TriggerBackupIfNeeded(self, aReporter)
4006
4007 @staticmethod
4009 r"""IsSettingsPathValid(wxString aPath) -> bool"""
4010 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4011
4012 @staticmethod
4014 r"""GetColorSettingsPath() -> wxString"""
4015 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4016
4017 @staticmethod
4019 r"""GetUserSettingsPath() -> wxString"""
4020 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4021
4022 @staticmethod
4024 r"""GetSettingsVersion() -> string"""
4025 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4026
4027# Register SETTINGS_MANAGER in _pcbnew:
4028_pcbnew.SETTINGS_MANAGER_swigregister(SETTINGS_MANAGER)
4029
4031 r"""SETTINGS_MANAGER_IsSettingsPathValid(wxString aPath) -> bool"""
4032 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4033
4035 r"""SETTINGS_MANAGER_GetColorSettingsPath() -> wxString"""
4036 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4037
4039 r"""SETTINGS_MANAGER_GetUserSettingsPath() -> wxString"""
4040 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4041
4043 r"""SETTINGS_MANAGER_GetSettingsVersion() -> string"""
4044 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4045
4047 r"""Proxy of C++ std::vector< int > class."""
4048
4049 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4050 __repr__ = _swig_repr
4051
4052 def iterator(self):
4053 r"""iterator(intVector self) -> SwigPyIterator"""
4054 return _pcbnew.intVector_iterator(self)
4055 def __iter__(self):
4056 return self.iterator()
4057
4058 def __nonzero__(self):
4059 r"""__nonzero__(intVector self) -> bool"""
4060 return _pcbnew.intVector___nonzero__(self)
4061
4062 def __bool__(self):
4063 r"""__bool__(intVector self) -> bool"""
4064 return _pcbnew.intVector___bool__(self)
4065
4066 def __len__(self):
4067 r"""__len__(intVector self) -> std::vector< int >::size_type"""
4068 return _pcbnew.intVector___len__(self)
4069
4070 def __getslice__(self, i, j):
4071 r"""__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
4072 return _pcbnew.intVector___getslice__(self, i, j)
4073
4074 def __setslice__(self, *args):
4075 r"""
4076 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
4077 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
4078 """
4079 return _pcbnew.intVector___setslice__(self, *args)
4080
4081 def __delslice__(self, i, j):
4082 r"""__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
4083 return _pcbnew.intVector___delslice__(self, i, j)
4084
4085 def __delitem__(self, *args):
4086 r"""
4087 __delitem__(intVector self, std::vector< int >::difference_type i)
4088 __delitem__(intVector self, PySliceObject * slice)
4089 """
4090 return _pcbnew.intVector___delitem__(self, *args)
4091
4092 def __getitem__(self, *args):
4093 r"""
4094 __getitem__(intVector self, PySliceObject * slice) -> intVector
4095 __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
4096 """
4097 return _pcbnew.intVector___getitem__(self, *args)
4098
4099 def __setitem__(self, *args):
4100 r"""
4101 __setitem__(intVector self, PySliceObject * slice, intVector v)
4102 __setitem__(intVector self, PySliceObject * slice)
4103 __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
4104 """
4105 return _pcbnew.intVector___setitem__(self, *args)
4106
4107 def pop(self):
4108 r"""pop(intVector self) -> std::vector< int >::value_type"""
4109 return _pcbnew.intVector_pop(self)
4110
4111 def append(self, x):
4112 r"""append(intVector self, std::vector< int >::value_type const & x)"""
4113 return _pcbnew.intVector_append(self, x)
4114
4115 def empty(self):
4116 r"""empty(intVector self) -> bool"""
4117 return _pcbnew.intVector_empty(self)
4118
4119 def size(self):
4120 r"""size(intVector self) -> std::vector< int >::size_type"""
4121 return _pcbnew.intVector_size(self)
4122
4123 def swap(self, v):
4124 r"""swap(intVector self, intVector v)"""
4125 return _pcbnew.intVector_swap(self, v)
4126
4127 def begin(self):
4128 r"""begin(intVector self) -> std::vector< int >::iterator"""
4129 return _pcbnew.intVector_begin(self)
4130
4131 def end(self):
4132 r"""end(intVector self) -> std::vector< int >::iterator"""
4133 return _pcbnew.intVector_end(self)
4134
4135 def rbegin(self):
4136 r"""rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
4137 return _pcbnew.intVector_rbegin(self)
4138
4139 def rend(self):
4140 r"""rend(intVector self) -> std::vector< int >::reverse_iterator"""
4141 return _pcbnew.intVector_rend(self)
4142
4143 def clear(self):
4144 r"""clear(intVector self)"""
4145 return _pcbnew.intVector_clear(self)
4146
4147 def get_allocator(self):
4148 r"""get_allocator(intVector self) -> std::vector< int >::allocator_type"""
4149 return _pcbnew.intVector_get_allocator(self)
4150
4151 def pop_back(self):
4152 r"""pop_back(intVector self)"""
4153 return _pcbnew.intVector_pop_back(self)
4154
4155 def erase(self, *args):
4156 r"""
4157 erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
4158 erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
4159 """
4160 return _pcbnew.intVector_erase(self, *args)
4161
4162 def __init__(self, *args):
4163 r"""
4164 __init__(intVector self) -> intVector
4165 __init__(intVector self, intVector other) -> intVector
4166 __init__(intVector self, std::vector< int >::size_type size) -> intVector
4167 __init__(intVector self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
4168 """
4169 _pcbnew.intVector_swiginit(self, _pcbnew.new_intVector(*args))
4170
4171 def push_back(self, x):
4172 r"""push_back(intVector self, std::vector< int >::value_type const & x)"""
4173 return _pcbnew.intVector_push_back(self, x)
4174
4175 def front(self):
4176 r"""front(intVector self) -> std::vector< int >::value_type const &"""
4177 return _pcbnew.intVector_front(self)
4178
4179 def back(self):
4180 r"""back(intVector self) -> std::vector< int >::value_type const &"""
4181 return _pcbnew.intVector_back(self)
4182
4183 def assign(self, n, x):
4184 r"""assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
4185 return _pcbnew.intVector_assign(self, n, x)
4186
4187 def resize(self, *args):
4188 r"""
4189 resize(intVector self, std::vector< int >::size_type new_size)
4190 resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
4191 """
4192 return _pcbnew.intVector_resize(self, *args)
4193
4194 def insert(self, *args):
4195 r"""
4196 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
4197 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
4198 """
4199 return _pcbnew.intVector_insert(self, *args)
4200
4201 def reserve(self, n):
4202 r"""reserve(intVector self, std::vector< int >::size_type n)"""
4203 return _pcbnew.intVector_reserve(self, n)
4204
4205 def capacity(self):
4206 r"""capacity(intVector self) -> std::vector< int >::size_type"""
4207 return _pcbnew.intVector_capacity(self)
4208 __swig_destroy__ = _pcbnew.delete_intVector
4209
4210# Register intVector in _pcbnew:
4211_pcbnew.intVector_swigregister(intVector)
4212
4214 r"""Proxy of C++ std::map< std::string,UTF8 > class."""
4215
4216 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4217 __repr__ = _swig_repr
4218
4219 def iterator(self):
4220 r"""iterator(str_utf8_Map self) -> SwigPyIterator"""
4221 return _pcbnew.str_utf8_Map_iterator(self)
4222 def __iter__(self):
4223 return self.iterator()
4224
4225 def __nonzero__(self):
4226 r"""__nonzero__(str_utf8_Map self) -> bool"""
4227 return _pcbnew.str_utf8_Map___nonzero__(self)
4228
4229 def __bool__(self):
4230 r"""__bool__(str_utf8_Map self) -> bool"""
4231 return _pcbnew.str_utf8_Map___bool__(self)
4232
4233 def __len__(self):
4234 r"""__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4235 return _pcbnew.str_utf8_Map___len__(self)
4236 def __iter__(self):
4237 return self.key_iterator()
4238 def iterkeys(self):
4239 return self.key_iterator()
4240 def itervalues(self):
4241 return self.value_iterator()
4242 def iteritems(self):
4243 return self.iterator()
4244
4245 def __getitem__(self, key):
4246 r"""__getitem__(str_utf8_Map self, string key) -> UTF8"""
4247 return _pcbnew.str_utf8_Map___getitem__(self, key)
4248
4249 def __delitem__(self, key):
4250 r"""__delitem__(str_utf8_Map self, string key)"""
4251 return _pcbnew.str_utf8_Map___delitem__(self, key)
4252
4253 def has_key(self, key):
4254 r"""has_key(str_utf8_Map self, string key) -> bool"""
4255 return _pcbnew.str_utf8_Map_has_key(self, key)
4256
4257 def keys(self):
4258 r"""keys(str_utf8_Map self) -> PyObject *"""
4259 return _pcbnew.str_utf8_Map_keys(self)
4260
4261 def values(self):
4262 r"""values(str_utf8_Map self) -> PyObject *"""
4263 return _pcbnew.str_utf8_Map_values(self)
4264
4265 def items(self):
4266 r"""items(str_utf8_Map self) -> PyObject *"""
4267 return _pcbnew.str_utf8_Map_items(self)
4268
4269 def __contains__(self, key):
4270 r"""__contains__(str_utf8_Map self, string key) -> bool"""
4271 return _pcbnew.str_utf8_Map___contains__(self, key)
4272
4273 def key_iterator(self):
4274 r"""key_iterator(str_utf8_Map self) -> SwigPyIterator"""
4275 return _pcbnew.str_utf8_Map_key_iterator(self)
4276
4278 r"""value_iterator(str_utf8_Map self) -> SwigPyIterator"""
4279 return _pcbnew.str_utf8_Map_value_iterator(self)
4280
4281 def __setitem__(self, *args):
4282 r"""
4283 __setitem__(str_utf8_Map self, string key)
4284 __setitem__(str_utf8_Map self, string key, UTF8 x)
4285 """
4286 return _pcbnew.str_utf8_Map___setitem__(self, *args)
4287
4288 def asdict(self):
4289 r"""asdict(str_utf8_Map self) -> PyObject *"""
4290 return _pcbnew.str_utf8_Map_asdict(self)
4291
4292 def __init__(self, *args):
4293 r"""
4294 __init__(str_utf8_Map self, std::less< std::basic_string< char,std::char_traits< char >,std::allocator< char > > > const & other) -> str_utf8_Map
4295 __init__(str_utf8_Map self) -> str_utf8_Map
4296 __init__(str_utf8_Map self, str_utf8_Map other) -> str_utf8_Map
4297 """
4298 _pcbnew.str_utf8_Map_swiginit(self, _pcbnew.new_str_utf8_Map(*args))
4299
4300 def empty(self):
4301 r"""empty(str_utf8_Map self) -> bool"""
4302 return _pcbnew.str_utf8_Map_empty(self)
4303
4304 def size(self):
4305 r"""size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4306 return _pcbnew.str_utf8_Map_size(self)
4307
4308 def swap(self, v):
4309 r"""swap(str_utf8_Map self, str_utf8_Map v)"""
4310 return _pcbnew.str_utf8_Map_swap(self, v)
4311
4312 def begin(self):
4313 r"""begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4314 return _pcbnew.str_utf8_Map_begin(self)
4315
4316 def end(self):
4317 r"""end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4318 return _pcbnew.str_utf8_Map_end(self)
4319
4320 def rbegin(self):
4321 r"""rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4322 return _pcbnew.str_utf8_Map_rbegin(self)
4323
4324 def rend(self):
4325 r"""rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4326 return _pcbnew.str_utf8_Map_rend(self)
4327
4328 def clear(self):
4329 r"""clear(str_utf8_Map self)"""
4330 return _pcbnew.str_utf8_Map_clear(self)
4331
4332 def get_allocator(self):
4333 r"""get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
4334 return _pcbnew.str_utf8_Map_get_allocator(self)
4335
4336 def count(self, x):
4337 r"""count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4338 return _pcbnew.str_utf8_Map_count(self, x)
4339
4340 def erase(self, *args):
4341 r"""
4342 erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
4343 erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
4344 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)
4345 """
4346 return _pcbnew.str_utf8_Map_erase(self, *args)
4347
4348 def find(self, x):
4349 r"""find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4350 return _pcbnew.str_utf8_Map_find(self, x)
4351
4352 def lower_bound(self, x):
4353 r"""lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4354 return _pcbnew.str_utf8_Map_lower_bound(self, x)
4355
4356 def upper_bound(self, x):
4357 r"""upper_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4358 return _pcbnew.str_utf8_Map_upper_bound(self, x)
4359 __swig_destroy__ = _pcbnew.delete_str_utf8_Map
4360
4361# Register str_utf8_Map in _pcbnew:
4362_pcbnew.str_utf8_Map_swigregister(str_utf8_Map)
4363
4364
4365
4366KICAD_PLUGINS={} # the list of loaded footprint wizards
4367
4368""" the list of not loaded python scripts
4369 (usually because there is a syntax error in python script)
4370 this is the python script full filenames list.
4371 filenames are separated by '\n'
4372"""
4373NOT_LOADED_WIZARDS=""
4374
4375""" the list of paths used to search python scripts.
4376 Stored here to be displayed on request in Pcbnew
4377 paths are separated by '\n'
4378"""
4379PLUGIN_DIRECTORIES_SEARCH=""
4380
4381"""
4382 the trace of errors during execution of footprint wizards scripts
4383 Warning: strings (internally unicode) are returned as UTF-8 compatible C strings
4384"""
4385
4386FULL_BACK_TRACE=""
4387
4388def GetUnLoadableWizards():
4389 global NOT_LOADED_WIZARDS
4390 import sys
4391
4392 if sys.version_info[0] < 3:
4393 utf8_str = NOT_LOADED_WIZARDS.encode( 'UTF-8' )
4394 else:
4395 utf8_str = NOT_LOADED_WIZARDS
4396
4397 return utf8_str
4398
4400 global PLUGIN_DIRECTORIES_SEARCH
4401 import sys
4402
4403 if sys.version_info[0] < 3:
4404 utf8_str = PLUGIN_DIRECTORIES_SEARCH.encode( 'UTF-8' )
4405 else:
4406 utf8_str = PLUGIN_DIRECTORIES_SEARCH
4407
4408 return utf8_str
4409
4411 global FULL_BACK_TRACE # Already correct format
4412 return FULL_BACK_TRACE
4413
4414
4415def LoadPluginModule(Dirname, ModuleName, FileName):
4416 """
4417 Load the plugin module named ModuleName located in the folder Dirname.
4418 The module can be either inside a file called FileName or a subdirectory
4419 called FileName that contains a __init__.py file.
4420 If this module cannot be loaded, its name is stored in failed_wizards_list
4421 and the error trace is stored in FULL_BACK_TRACE
4422 """
4423 import os
4424 import sys
4425 import traceback
4426
4427 global NOT_LOADED_WIZARDS
4428 global FULL_BACK_TRACE
4429 global KICAD_PLUGINS
4430
4431 try: # If there is an error loading the script, skip it
4432
4433 module_filename = os.path.join( Dirname, FileName )
4434 mtime = os.path.getmtime( module_filename )
4435 mods_before = set( sys.modules )
4436
4437 if ModuleName in KICAD_PLUGINS:
4438 plugin = KICAD_PLUGINS[ModuleName]
4439
4440 for dependency in plugin["dependencies"]:
4441 if dependency in sys.modules:
4442 del sys.modules[dependency]
4443
4444 mods_before = set( sys.modules )
4445
4446 if sys.version_info >= (3,0,0):
4447 import importlib
4448 mod = importlib.import_module( ModuleName )
4449 else:
4450 mod = __import__( ModuleName, locals(), globals() )
4451
4452 mods_after = set( sys.modules ).difference( mods_before )
4453 dependencies = [m for m in mods_after if m.startswith(ModuleName)]
4454
4455 KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
4456 "modification_time":mtime,
4457 "ModuleName":mod,
4458 "dependencies": dependencies }
4459
4460 except:
4461 if ModuleName in KICAD_PLUGINS:
4462 del KICAD_PLUGINS[ModuleName]
4463
4464 if NOT_LOADED_WIZARDS != "" :
4465 NOT_LOADED_WIZARDS += "\n"
4466 NOT_LOADED_WIZARDS += module_filename
4467 FULL_BACK_TRACE += traceback.format_exc()
4468
4469
4470def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None):
4471 """
4472 Initialise Scripting/Plugin python environment and load plugins.
4473
4474 Arguments:
4475 Note: bundlepath and userpath are given utf8 encoded, to be compatible with asimple C string
4476 bundlepath -- The path to the bundled scripts.
4477 The bundled Plugins are relative to this path, in the
4478 "plugins" subdirectory.
4479 WARNING: bundlepath must use '/' as path separator, and not '\'
4480 because it creates issues:
4481 \n and \r are seen as a escaped seq when passing this string to this method
4482 I am thinking this is due to the fact LoadPlugins is called from C++ code by
4483 PyRun_SimpleString()
4484
4485 NOTE: These are all of the possible "default" search paths for kicad
4486 python scripts. These paths will ONLY be added to the python
4487 search path ONLY IF they already exist.
4488
4489 The Scripts bundled with the KiCad installation:
4490 <bundlepath>/
4491 <bundlepath>/plugins/
4492
4493 The Scripts relative to the KiCad Users configuration:
4494 <userpath>/
4495 <userpath>/plugins/
4496
4497 The plugins from 3rd party packages:
4498 $KICAD_3RD_PARTY/plugins/
4499 """
4500 import os
4501 import sys
4502 import traceback
4503 import pcbnew
4504
4505 if sys.version_info >= (3,3,0):
4506 import importlib
4507 importlib.invalidate_caches()
4508
4509 """
4510 bundlepath and userpath are strings utf-8 encoded (compatible "C" strings).
4511 So convert these utf8 encoding to unicode strings to avoid any encoding issue.
4512 """
4513 try:
4514 bundlepath = bundlepath.decode( 'UTF-8' )
4515 userpath = userpath.decode( 'UTF-8' )
4516 thirdpartypath = thirdpartypath.decode( 'UTF-8' )
4517 except AttributeError:
4518 pass
4519
4521 plugin_directories=[]
4522
4523 """
4524 To be consistent with others paths, on windows, convert the unix '/' separator
4525 to the windows separator, although using '/' works
4526 """
4527 if sys.platform.startswith('win32'):
4528 if bundlepath:
4529 bundlepath = bundlepath.replace("/","\\")
4530 if thirdpartypath:
4531 thirdpartypath = thirdpartypath.replace("/","\\")
4532
4533 if bundlepath:
4534 plugin_directories.append(bundlepath)
4535 plugin_directories.append(os.path.join(bundlepath, 'plugins'))
4536
4537 if config_path:
4538 plugin_directories.append(os.path.join(config_path, 'scripting'))
4539 plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
4540
4541 if userpath:
4542 plugin_directories.append(userpath)
4543 plugin_directories.append(os.path.join(userpath, 'plugins'))
4544
4545 if thirdpartypath:
4546 plugin_directories.append(thirdpartypath)
4547
4548 global PLUGIN_DIRECTORIES_SEARCH
4549 PLUGIN_DIRECTORIES_SEARCH=""
4550 for plugins_dir in plugin_directories: # save search path list for later use
4551 if PLUGIN_DIRECTORIES_SEARCH != "" :
4552 PLUGIN_DIRECTORIES_SEARCH += "\n"
4553 PLUGIN_DIRECTORIES_SEARCH += plugins_dir
4554
4555 global FULL_BACK_TRACE
4556 FULL_BACK_TRACE="" # clear any existing trace
4557
4558 global NOT_LOADED_WIZARDS
4559 NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
4560
4561 global KICAD_PLUGINS
4562
4563 for plugins_dir in plugin_directories:
4564 if not os.path.isdir( plugins_dir ):
4565 continue
4566
4567 if plugins_dir not in sys.path:
4568 sys.path.append( plugins_dir )
4569
4570 for module in os.listdir(plugins_dir):
4571 fullPath = os.path.join( plugins_dir, module )
4572
4573 if os.path.isdir( fullPath ):
4574 if os.path.exists( os.path.join( fullPath, '__init__.py' ) ):
4575 LoadPluginModule( plugins_dir, module, module )
4576 else:
4577 if NOT_LOADED_WIZARDS != "" :
4578 NOT_LOADED_WIZARDS += "\n"
4579 NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
4580 continue
4581
4582 if module == '__init__.py' or module[-3:] != '.py':
4583 continue
4584
4585 LoadPluginModule( plugins_dir, module[:-3], module )
4586
4587
4589 def __init__(self):
4590 pass
4591
4592 def register(self):
4593 import inspect
4594 import os
4595
4596 if isinstance(self,FilePlugin):
4597 pass # register to file plugins in C++
4598
4599 if isinstance(self,FootprintWizardPlugin):
4600 PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
4601 return
4602
4603 if isinstance(self,ActionPlugin):
4604 """
4605 Get path to .py or .pyc that has definition of plugin class.
4606 If path is binary but source also exists, assume definition is in source.
4607 """
4608 self.__plugin_path = inspect.getfile(self.__class__)
4609 if self.__plugin_path.endswith('.pyc') and os.path.isfile(self.__plugin_path[:-1]):
4610 self.__plugin_path = self.__plugin_path[:-1]
4611 self.__plugin_path = self.__plugin_path + '/' + self.__class__.__name__
4612 PYTHON_ACTION_PLUGINS.register_action(self)
4613 return
4614
4615 return
4616
4617 def deregister(self):
4618 if isinstance(self,FilePlugin):
4619 pass # deregister to file plugins in C++
4620
4621 if isinstance(self,FootprintWizardPlugin):
4622 PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
4623 return
4624
4625 if isinstance(self,ActionPlugin):
4626 PYTHON_ACTION_PLUGINS.deregister_action(self)
4627 return
4628
4629 return
4630
4631 def GetPluginPath( self ):
4632 return self.__plugin_path
4633
4634
4636 def __init__(self):
4637 KiCadPlugin.__init__(self)
4638
4639
4640from math import ceil, floor, sqrt
4641
4642uMM = "mm" # Millimetres
4643uMils = "mils" # Mils
4644uFloat = "float" # Natural number units (dimensionless)
4645uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
4646uBool = "bool" # Boolean value
4647uRadians = "radians" # Angular units (radians)
4648uDegrees = "degrees" # Angular units (degrees)
4649uPercent = "%" # Percent (0% -> 100%)
4650uString = "string" # Raw string
4651
4652uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
4653uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
4654
4656 _true = ['true','t','y','yes','on','1',1,]
4657 _false = ['false','f','n','no','off','0',0,'',None]
4658
4659 _bools = _true + _false
4660
4661 def __init__(self, page, name, units, default, **kwarg):
4662 self.page = page
4663 self.name = name
4664 self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
4665 self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
4666
4667 if units.lower() in uUnits:
4668 self.units = units.lower()
4669 elif units.lower() == 'percent':
4670 self.units = uPercent
4671 elif type(units) in [list, tuple]: # Convert a list of options into a single string
4672 self.units = ",".join([str(el).strip() for el in units])
4673 else:
4674 self.units = units
4675
4676 self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
4677 self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
4678 self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
4679
4680 self.SetValue(default)
4681 self.default = self.raw_value # Save value as default
4682
4683 def ClearErrors(self):
4684 self.error_list = []
4685
4686 def AddError(self, err, info=None):
4687
4688 if err in self.error_list: # prevent duplicate error messages
4689 return
4690 if info is not None:
4691 err = err + " (" + str(info) + ")"
4692
4693 self.error_list.append(err)
4694
4695 def Check(self, min_value=None, max_value=None, multiple=None, info=None):
4696
4697 if min_value is None:
4698 min_value = self.min_value
4699 if max_value is None:
4700 max_value = self.max_value
4701 if multiple is None:
4702 multiple = self.multiple
4703
4704 if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
4705 self.AddError("type '{t}' unknown".format(t=self.units),info)
4706 self.AddError("Allowable types: " + str(self.units),info)
4707
4708 if self.units in uNumeric:
4709 try:
4710 to_num = float(self.raw_value)
4711
4712 if min_value is not None: # Check minimum value if it is present
4713 if to_num < min_value:
4714 self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
4715
4716 if max_value is not None: # Check maximum value if it is present
4717 if to_num > max_value:
4718 self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
4719
4720 except:
4721 self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
4722
4723 if self.units == uInteger: # Perform integer specific checks
4724 try:
4725 to_int = int(self.raw_value)
4726
4727 if multiple is not None and multiple > 1:
4728 if (to_int % multiple) > 0:
4729 self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
4730 except:
4731 self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
4732
4733 if self.units == uBool: # Check that the value is of a correct boolean format
4734 if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
4735 pass
4736 else:
4737 self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
4738
4739 @property
4740 def value(self): # Return the current value, converted to appropriate units (from string representation) if required
4741 v = str(self.raw_value) # Enforce string type for known starting point
4742
4743 if self.units == uInteger: # Integer values
4744 return int(v)
4745 elif self.units in uNumeric: # Any values that use floating points
4746 v = v.replace(",",".") # Replace "," separators with "."
4747 v = float(v)
4748
4749 if self.units == uMM: # Convert from millimetres to nanometres
4750 return FromMM(v)
4751
4752 elif self.units == uMils: # Convert from mils to nanometres
4753 return FromMils(v)
4754
4755 else: # Any other floating-point values
4756 return v
4757
4758 elif self.units == uBool:
4759 if v.lower() in self._true:
4760 return True
4761 else:
4762 return False
4763 else:
4764 return v
4765
4766 def DefaultValue(self): # Reset the value of the parameter to its default
4767 self.raw_value = str(self.default)
4768
4769 def SetValue(self, new_value): # Update the value
4770 new_value = str(new_value)
4771
4772 if len(new_value.strip()) == 0:
4773 if not self.units in [uString, uBool]:
4774 return # Ignore empty values unless for strings or bools
4775
4776 if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
4777 new_value = "1" if new_value.lower() in self._true else "0"
4778 elif self.units in uNumeric:
4779 new_value = new_value.replace(",", ".") # Enforce decimal point separators
4780 elif ',' in self.units: # Select from a list of values
4781 if new_value not in self.units.split(','):
4782 new_value = self.units.split(',')[0]
4783
4784 self.raw_value = new_value
4785
4786 def __str__(self): # pretty-print the parameter
4787
4788 s = self.name + ": " + str(self.raw_value)
4789
4790 if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
4791 s += self.units
4792 elif self.units == uBool: # Special case for Boolean values
4793 s = self.name + ": {b}".format(b = "True" if self.value else "False")
4794 elif self.units == uString:
4795 s = self.name + ": '" + self.raw_value + "'"
4796
4797 return s
4798
4799
4801 def __init__(self):
4802 KiCadPlugin.__init__(self)
4803 self.defaults()
4804
4805 def defaults(self):
4806 self.module = None
4807 self.params = [] # List of added parameters that observes addition order
4808
4809 self.name = "KiCad FP Wizard"
4810 self.description = "Undefined Footprint Wizard plugin"
4811 self.image = ""
4813
4814 def AddParam(self, page, name, unit, default, **kwarg):
4815
4816 if self.GetParam(page,name) is not None: # Param already exists!
4817 return
4818
4819 param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
4820 self.params.append(param)
4821
4822 @property
4823 def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
4824 pages = {} # Page dict
4825 for p in self.params:
4826 if p.page not in pages:
4827 pages[p.page] = {}
4828
4829 pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
4830
4831 return pages
4832
4833 @property
4834 def values(self): # Same as above
4835 return self.parameters
4836
4837 def ResetWizard(self): # Reset all parameters to default values
4838 for p in self.params:
4839 p.DefaultValue()
4840
4841 def GetName(self): # Return the name of this wizard
4842 return self.name
4843
4844 def GetImage(self): # Return the filename of the preview image associated with this wizard
4845 return self.image
4846
4847 def GetDescription(self): # Return the description text
4848 return self.description
4849
4850 def GetValue(self):
4851 raise NotImplementedError
4852
4854 return "REF" # Default reference prefix for any footprint
4855
4856 def GetParam(self, page, name): # Grab a parameter
4857 for p in self.params:
4858 if p.page == page and p.name == name:
4859 return p
4860
4861 return None
4862
4863 def CheckParam(self, page, name, **kwarg):
4864 self.GetParam(page,name).Check(**kwarg)
4865
4866 def AnyErrors(self):
4867 return any([len(p.error_list) > 0 for p in self.params])
4868
4869 @property
4870 def pages(self): # Return an (ordered) list of the available page names
4871 page_list = []
4872 for p in self.params:
4873 if p.page not in page_list:
4874 page_list.append(p.page)
4875
4876 return page_list
4877
4878 def GetNumParameterPages(self): # Return the number of parameter pages
4879 return len(self.pages)
4880
4881 def GetParameterPageName(self,page_n): # Return the name of a page at a given index
4882 return self.pages[page_n]
4883
4884 def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
4885 params = []
4886
4887 for p in self.params:
4888 if p.page == page_name:
4889 params.append(p)
4890
4891 return params
4892
4893 def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
4894 return self.GetParametersByPageName(self.GetParameterPageName(page_index))
4895
4896 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4897 params = self.GetParametersByPageIndex(page_index)
4898 return [p.designator for p in params]
4899
4900 def GetParameterNames(self,page_index): # Return the list of names associated with a given page
4901 params = self.GetParametersByPageIndex(page_index)
4902 return [p.name for p in params]
4903
4904 def GetParameterValues(self,page_index): # Return the list of values associated with a given page
4905 params = self.GetParametersByPageIndex(page_index)
4906 return [str(p.raw_value) for p in params]
4907
4908 def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
4909 params = self.GetParametersByPageIndex(page_index)
4910 return [str("\n".join(p.error_list)) for p in params]
4911
4912 def GetParameterTypes(self, page_index): # Return list of units associated with a given page
4913 params = self.GetParametersByPageIndex(page_index)
4914 return [str(p.units) for p in params]
4915
4916 def GetParameterHints(self, page_index): # Return a list of units associated with a given page
4917 params = self.GetParametersByPageIndex(page_index)
4918 return [str(p.hint) for p in params]
4919
4920 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4921 params = self.GetParametersByPageIndex(page_index)
4922 return [str(p.designator) for p in params]
4923
4924 def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
4925
4926 params = self.GetParametersByPageIndex(page_index)
4927
4928 for i, param in enumerate(params):
4929 if i >= len(list_of_values):
4930 break
4931 param.SetValue(list_of_values[i])
4932
4933 def GetFootprint( self ):
4934 self.BuildFootprint()
4935 return self.module
4936
4938 return
4939
4940 def GetBuildMessages( self ):
4941 return self.buildmessages
4942
4943 def Show(self):
4944 text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
4945 text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
4946
4947 n_pages = self.GetNumParameterPages()
4948
4949 text += "Pages: {n}\n".format(n=n_pages)
4950
4951 for i in range(n_pages):
4952 name = self.GetParameterPageName(i)
4953
4954 params = self.GetParametersByPageName(name)
4955
4956 text += "{name}\n".format(name=name)
4957
4958 for j in range(len(params)):
4959 text += ("\t{param}{err}\n".format(
4960 param = str(params[j]),
4961 err = ' *' if len(params[j].error_list) > 0 else ''
4962 ))
4963
4964 if self.AnyErrors():
4965 text += " * Errors exist for these parameters"
4966
4967 return text
4968
4970 def __init__( self ):
4971 KiCadPlugin.__init__( self )
4975 self.defaults()
4976
4977 def defaults( self ):
4978 self.name = "Undefined Action plugin"
4979 self.category = "Undefined"
4980 self.description = ""
4981
4982 def GetName( self ):
4983 return self.name
4984
4985 def GetCategoryName( self ):
4986 return self.category
4987
4988 def GetDescription( self ):
4989 return self.description
4990
4992 return self.show_toolbar_button
4993
4994 def GetIconFileName( self, dark ):
4995 if dark and self.dark_icon_file_name:
4996 return self.dark_icon_file_name
4997 else:
4998 return self.icon_file_name
4999
5000 def Run(self):
5001 return
5002
5003
5004class VECTOR2I(object):
5005 r"""Proxy of C++ VECTOR2< int > class."""
5006
5007 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5008 __repr__ = _swig_repr
5009 x = property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set, doc=r"""x : int""")
5010 y = property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set, doc=r"""y : int""")
5011
5012 def __init__(self, *args):
5013 r"""
5014 __init__(VECTOR2I self) -> VECTOR2I
5015 __init__(VECTOR2I self, wxPoint aPoint) -> VECTOR2I
5016 __init__(VECTOR2I self, wxSize aSize) -> VECTOR2I
5017 __init__(VECTOR2I self, int x, int y) -> VECTOR2I
5018 __init__(VECTOR2I self, VECTOR2I aVec) -> VECTOR2I
5019 """
5020 _pcbnew.VECTOR2I_swiginit(self, _pcbnew.new_VECTOR2I(*args))
5021
5022 def getWxPoint(self):
5023 r"""getWxPoint(VECTOR2I self) -> wxPoint"""
5024 return _pcbnew.VECTOR2I_getWxPoint(self)
5025
5026 def getWxSize(self):
5027 r"""getWxSize(VECTOR2I self) -> wxSize"""
5028 return _pcbnew.VECTOR2I_getWxSize(self)
5029
5030 def EuclideanNorm(self):
5031 r"""EuclideanNorm(VECTOR2I self) -> int"""
5032 return _pcbnew.VECTOR2I_EuclideanNorm(self)
5033
5035 r"""SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type"""
5036 return _pcbnew.VECTOR2I_SquaredEuclideanNorm(self)
5037
5038 def Perpendicular(self):
5039 r"""Perpendicular(VECTOR2I self) -> VECTOR2I"""
5040 return _pcbnew.VECTOR2I_Perpendicular(self)
5041
5042 def Resize(self, aNewLength):
5043 r"""Resize(VECTOR2I self, int aNewLength) -> VECTOR2I"""
5044 return _pcbnew.VECTOR2I_Resize(self, aNewLength)
5045
5046 def Format(self):
5047 r"""Format(VECTOR2I self) -> string"""
5048 return _pcbnew.VECTOR2I_Format(self)
5049
5050 def Cross(self, aVector):
5051 r"""Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5052 return _pcbnew.VECTOR2I_Cross(self, aVector)
5053
5054 def Dot(self, aVector):
5055 r"""Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5056 return _pcbnew.VECTOR2I_Dot(self, aVector)
5057
5058 def __add__(self, *args):
5059 r"""
5060 __add__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5061 __add__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5062 """
5063 return _pcbnew.VECTOR2I___add__(self, *args)
5064
5065 def __imul__(self, *args):
5066 r"""
5067 __imul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5068 __imul__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5069 """
5070 return _pcbnew.VECTOR2I___imul__(self, *args)
5071
5072 def __iadd__(self, *args):
5073 r"""
5074 __iadd__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5075 __iadd__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5076 """
5077 return _pcbnew.VECTOR2I___iadd__(self, *args)
5078
5079 def __sub__(self, *args):
5080 r"""
5081 __sub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5082 __sub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5083 """
5084 return _pcbnew.VECTOR2I___sub__(self, *args)
5085
5086 def __isub__(self, *args):
5087 r"""
5088 __isub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5089 __isub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5090 """
5091 return _pcbnew.VECTOR2I___isub__(self, *args)
5092
5093 def __neg__(self):
5094 r"""__neg__(VECTOR2I self) -> VECTOR2I"""
5095 return _pcbnew.VECTOR2I___neg__(self)
5096
5097 def __mul__(self, *args):
5098 r"""
5099 __mul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type
5100 __mul__(VECTOR2I self, int const & aFactor) -> VECTOR2I
5101 """
5102 return _pcbnew.VECTOR2I___mul__(self, *args)
5103
5104 def __truediv__(self, *args):
5105 return _pcbnew.VECTOR2I___truediv__(self, *args)
5106 __div__ = __truediv__
5107
5108
5109
5110 def __eq__(self, aVector):
5111 r"""__eq__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5112 return _pcbnew.VECTOR2I___eq__(self, aVector)
5113
5114 def __ne__(self, aVector):
5115 r"""__ne__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5116 return _pcbnew.VECTOR2I___ne__(self, aVector)
5117
5118 def __lt__(self, aVector):
5119 r"""__lt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5120 return _pcbnew.VECTOR2I___lt__(self, aVector)
5121
5122 def __le__(self, aVector):
5123 r"""__le__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5124 return _pcbnew.VECTOR2I___le__(self, aVector)
5125
5126 def __gt__(self, aVector):
5127 r"""__gt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5128 return _pcbnew.VECTOR2I___gt__(self, aVector)
5129
5130 def __ge__(self, aVector):
5131 r"""__ge__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5132 return _pcbnew.VECTOR2I___ge__(self, aVector)
5133
5134 def Set(self, x, y):
5135 r"""Set(VECTOR2I self, long x, long y)"""
5136 return _pcbnew.VECTOR2I_Set(self, x, y)
5137
5138 def Get(self):
5139 r"""Get(VECTOR2I self) -> PyObject *"""
5140 return _pcbnew.VECTOR2I_Get(self)
5141
5142 def __eq__(self,other): return (self.x==other.x and self.y==other.y)
5143 def __ne__(self,other): return not (self==other)
5144 def __str__(self): return str(self.Get())
5145 def __repr__(self): return 'VECTOR2I'+str(self.Get())
5146 def __len__(self): return len(self.Get())
5147 def __getitem__(self, index): return self.Get()[index]
5148 def __setitem__(self, index, val):
5149 if index == 0:
5150 self.x = val
5151 elif index == 1:
5152 self.y = val
5153 else:
5154 raise IndexError
5155 def __nonzero__(self): return self.Get() != (0,0)
5156
5157
5158 __swig_destroy__ = _pcbnew.delete_VECTOR2I
5159
5160# Register VECTOR2I in _pcbnew:
5161_pcbnew.VECTOR2I_swigregister(VECTOR2I)
5162
5164 r"""Proxy of C++ VECTOR2_TRAITS< int > class."""
5165
5166 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5167 __repr__ = _swig_repr
5168
5169 def __init__(self):
5170 r"""__init__(VECTOR2I_EXTENDED_TYPE self) -> VECTOR2I_EXTENDED_TYPE"""
5171 _pcbnew.VECTOR2I_EXTENDED_TYPE_swiginit(self, _pcbnew.new_VECTOR2I_EXTENDED_TYPE())
5172 __swig_destroy__ = _pcbnew.delete_VECTOR2I_EXTENDED_TYPE
5173
5174# Register VECTOR2I_EXTENDED_TYPE in _pcbnew:
5175_pcbnew.VECTOR2I_EXTENDED_TYPE_swigregister(VECTOR2I_EXTENDED_TYPE)
5176
5178 r"""Proxy of C++ VECTOR3< double > class."""
5179
5180 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5181 __repr__ = _swig_repr
5182 ECOORD_MAX = _pcbnew.VECTOR3D_ECOORD_MAX
5183
5184 ECOORD_MIN = _pcbnew.VECTOR3D_ECOORD_MIN
5185
5186 x = property(_pcbnew.VECTOR3D_x_get, _pcbnew.VECTOR3D_x_set, doc=r"""x : double""")
5187 y = property(_pcbnew.VECTOR3D_y_get, _pcbnew.VECTOR3D_y_set, doc=r"""y : double""")
5188 z = property(_pcbnew.VECTOR3D_z_get, _pcbnew.VECTOR3D_z_set, doc=r"""z : double""")
5189
5190 def __init__(self, *args):
5191 r"""
5192 __init__(VECTOR3D self) -> VECTOR3D
5193 __init__(VECTOR3D self, double x, double y, double z) -> VECTOR3D
5194 """
5195 _pcbnew.VECTOR3D_swiginit(self, _pcbnew.new_VECTOR3D(*args))
5196
5197 def Cross(self, aVector):
5198 r"""Cross(VECTOR3D self, VECTOR3D aVector) -> VECTOR3D"""
5199 return _pcbnew.VECTOR3D_Cross(self, aVector)
5200
5201 def Dot(self, aVector):
5202 r"""Dot(VECTOR3D self, VECTOR3D aVector) -> VECTOR3< double >::extended_type"""
5203 return _pcbnew.VECTOR3D_Dot(self, aVector)
5204
5205 def EuclideanNorm(self):
5206 r"""EuclideanNorm(VECTOR3D self) -> double"""
5207 return _pcbnew.VECTOR3D_EuclideanNorm(self)
5208
5209 def Normalize(self):
5210 r"""Normalize(VECTOR3D self) -> VECTOR3D"""
5211 return _pcbnew.VECTOR3D_Normalize(self)
5212
5213 def __eq__(self, aVector):
5214 r"""__eq__(VECTOR3D self, VECTOR3D aVector) -> bool"""
5215 return _pcbnew.VECTOR3D___eq__(self, aVector)
5216
5217 def __ne__(self, aVector):
5218 r"""__ne__(VECTOR3D self, VECTOR3D aVector) -> bool"""
5219 return _pcbnew.VECTOR3D___ne__(self, aVector)
5220
5221 def __imul__(self, val):
5222 r"""__imul__(VECTOR3D self, double val) -> VECTOR3D"""
5223 return _pcbnew.VECTOR3D___imul__(self, val)
5224
5225 def __itruediv__(self, *args):
5226 return _pcbnew.VECTOR3D___itruediv__(self, *args)
5227 __idiv__ = __itruediv__
5228
5229
5230
5231 def Set(self, x, y, z):
5232 r"""Set(VECTOR3D self, double x, double y, double z)"""
5233 return _pcbnew.VECTOR3D_Set(self, x, y, z)
5234
5235 def Get(self):
5236 r"""Get(VECTOR3D self) -> PyObject *"""
5237 return _pcbnew.VECTOR3D_Get(self)
5238
5239 def __eq__(self,other): return (self.x==other.x and self.y==other.y and self.z==other.z)
5240 def __ne__(self,other): return not (self==other)
5241 def __str__(self): return str(self.Get())
5242 def __repr__(self): return 'VECTOR3D'+str(self.Get())
5243 def __len__(self): return len(self.Get())
5244 def __getitem__(self, index): return self.Get()[index]
5245 def __setitem__(self, index, val):
5246 if index == 0:
5247 self.x = val
5248 elif index == 1:
5249 self.y = val
5250 elif index == 2:
5251 self.z = val
5252 else:
5253 raise IndexError
5254 def __nonzero__(self): return self.Get() != (0, 0, 0)
5255
5256
5257 __swig_destroy__ = _pcbnew.delete_VECTOR3D
5258
5259# Register VECTOR3D in _pcbnew:
5260_pcbnew.VECTOR3D_swigregister(VECTOR3D)
5261
5263 r"""Proxy of C++ BOX2< VECTOR2I > class."""
5264
5265 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5266 __repr__ = _swig_repr
5267
5268 def __init__(self, *args):
5269 r"""
5270 __init__(BOX2I self) -> BOX2I
5271 __init__(BOX2I self, VECTOR2I aPos, VECTOR2I aSize=VECTOR2< int >(0, 0)) -> BOX2I
5272 """
5273 _pcbnew.BOX2I_swiginit(self, _pcbnew.new_BOX2I(*args))
5274
5275 def SetMaximum(self):
5276 r"""SetMaximum(BOX2I self)"""
5277 return _pcbnew.BOX2I_SetMaximum(self)
5278
5279 def Centre(self):
5280 r"""Centre(BOX2I self) -> VECTOR2I"""
5281 return _pcbnew.BOX2I_Centre(self)
5282
5283 def Move(self, aMoveVector):
5284 r"""Move(BOX2I self, VECTOR2I aMoveVector)"""
5285 return _pcbnew.BOX2I_Move(self, aMoveVector)
5286
5287 def Normalize(self):
5288 r"""Normalize(BOX2I self) -> BOX2I"""
5289 return _pcbnew.BOX2I_Normalize(self)
5290
5291 def Contains(self, *args):
5292 r"""
5293 Contains(BOX2I self, VECTOR2I aPoint) -> bool
5294 Contains(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y) -> bool
5295 Contains(BOX2I self, BOX2I aRect) -> bool
5296 """
5297 return _pcbnew.BOX2I_Contains(self, *args)
5298
5299 def GetSize(self):
5300 r"""GetSize(BOX2I self) -> VECTOR2I"""
5301 return _pcbnew.BOX2I_GetSize(self)
5302
5303 def GetX(self):
5304 r"""GetX(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5305 return _pcbnew.BOX2I_GetX(self)
5306
5307 def GetY(self):
5308 r"""GetY(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5309 return _pcbnew.BOX2I_GetY(self)
5310
5311 def GetOrigin(self):
5312 r"""GetOrigin(BOX2I self) -> VECTOR2I"""
5313 return _pcbnew.BOX2I_GetOrigin(self)
5314
5315 def GetPosition(self):
5316 r"""GetPosition(BOX2I self) -> VECTOR2I"""
5317 return _pcbnew.BOX2I_GetPosition(self)
5318
5319 def GetEnd(self):
5320 r"""GetEnd(BOX2I self) -> VECTOR2I"""
5321 return _pcbnew.BOX2I_GetEnd(self)
5322
5323 def GetWidth(self):
5324 r"""GetWidth(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5325 return _pcbnew.BOX2I_GetWidth(self)
5326
5327 def GetHeight(self):
5328 r"""GetHeight(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5329 return _pcbnew.BOX2I_GetHeight(self)
5330
5331 def GetRight(self):
5332 r"""GetRight(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5333 return _pcbnew.BOX2I_GetRight(self)
5334
5335 def GetBottom(self):
5336 r"""GetBottom(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5337 return _pcbnew.BOX2I_GetBottom(self)
5338
5339 def GetLeft(self):
5340 r"""GetLeft(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5341 return _pcbnew.BOX2I_GetLeft(self)
5342
5343 def GetTop(self):
5344 r"""GetTop(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5345 return _pcbnew.BOX2I_GetTop(self)
5346
5347 def GetCenter(self):
5348 r"""GetCenter(BOX2I self) -> VECTOR2I"""
5349 return _pcbnew.BOX2I_GetCenter(self)
5350
5351 def GetSizeMax(self):
5352 r"""GetSizeMax(BOX2I self) -> int"""
5353 return _pcbnew.BOX2I_GetSizeMax(self)
5354
5355 def SetOrigin(self, *args):
5356 r"""
5357 SetOrigin(BOX2I self, VECTOR2I pos)
5358 SetOrigin(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5359 """
5360 return _pcbnew.BOX2I_SetOrigin(self, *args)
5361
5362 def SetSize(self, *args):
5363 r"""
5364 SetSize(BOX2I self, VECTOR2I size)
5365 SetSize(BOX2I self, BOX2< VECTOR2< int > >::coord_type w, BOX2< VECTOR2< int > >::coord_type h)
5366 """
5367 return _pcbnew.BOX2I_SetSize(self, *args)
5368
5369 def Offset(self, *args):
5370 r"""
5371 Offset(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy)
5372 Offset(BOX2I self, VECTOR2I offset)
5373 """
5374 return _pcbnew.BOX2I_Offset(self, *args)
5375
5376 def SetX(self, val):
5377 r"""SetX(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5378 return _pcbnew.BOX2I_SetX(self, val)
5379
5380 def SetY(self, val):
5381 r"""SetY(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5382 return _pcbnew.BOX2I_SetY(self, val)
5383
5384 def SetWidth(self, val):
5385 r"""SetWidth(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5386 return _pcbnew.BOX2I_SetWidth(self, val)
5387
5388 def SetHeight(self, val):
5389 r"""SetHeight(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5390 return _pcbnew.BOX2I_SetHeight(self, val)
5391
5392 def SetEnd(self, *args):
5393 r"""
5394 SetEnd(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5395 SetEnd(BOX2I self, VECTOR2I pos)
5396 """
5397 return _pcbnew.BOX2I_SetEnd(self, *args)
5398
5399 def Intersect(self, aRect):
5400 r"""Intersect(BOX2I self, BOX2I aRect) -> BOX2I"""
5401 return _pcbnew.BOX2I_Intersect(self, aRect)
5402
5403 def Intersects(self, *args):
5404 r"""
5405 Intersects(BOX2I self, BOX2I aRect) -> bool
5406 Intersects(BOX2I self, VECTOR2I aPoint1, VECTOR2I aPoint2) -> bool
5407 Intersects(BOX2I self, BOX2I aRect, EDA_ANGLE aRotation) -> bool
5408 """
5409 return _pcbnew.BOX2I_Intersects(self, *args)
5410
5411 def IntersectsCircle(self, aCenter, aRadius):
5412 r"""IntersectsCircle(BOX2I self, VECTOR2I aCenter, int const aRadius) -> bool"""
5413 return _pcbnew.BOX2I_IntersectsCircle(self, aCenter, aRadius)
5414
5415 def IntersectsCircleEdge(self, aCenter, aRadius, aWidth):
5416 r"""IntersectsCircleEdge(BOX2I self, VECTOR2I aCenter, int const aRadius, int const aWidth) -> bool"""
5417 return _pcbnew.BOX2I_IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
5418
5419 def Format(self):
5420 r"""Format(BOX2I self) -> string"""
5421 return _pcbnew.BOX2I_Format(self)
5422
5423 def Inflate(self, *args):
5424 r"""
5425 Inflate(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy) -> BOX2I
5426 Inflate(BOX2I self, int aDelta) -> BOX2I
5427 """
5428 return _pcbnew.BOX2I_Inflate(self, *args)
5429
5430 def Merge(self, *args):
5431 r"""
5432 Merge(BOX2I self, BOX2I aRect) -> BOX2I
5433 Merge(BOX2I self, VECTOR2I aPoint) -> BOX2I
5434 """
5435 return _pcbnew.BOX2I_Merge(self, *args)
5436
5437 def GetBoundingBoxRotated(self, aRotCenter, aAngle):
5438 r"""GetBoundingBoxRotated(BOX2I self, VECTOR2I aRotCenter, EDA_ANGLE aAngle) -> BOX2I"""
5439 return _pcbnew.BOX2I_GetBoundingBoxRotated(self, aRotCenter, aAngle)
5440
5441 def RevertYAxis(self):
5442 r"""RevertYAxis(BOX2I self)"""
5443 return _pcbnew.BOX2I_RevertYAxis(self)
5444
5445 def GetArea(self):
5446 r"""GetArea(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5447 return _pcbnew.BOX2I_GetArea(self)
5448
5449 def Diagonal(self):
5450 r"""Diagonal(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5451 return _pcbnew.BOX2I_Diagonal(self)
5452
5453 def SquaredDistance(self, *args):
5454 r"""
5455 SquaredDistance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5456 SquaredDistance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5457 """
5458 return _pcbnew.BOX2I_SquaredDistance(self, *args)
5459
5460 def Distance(self, *args):
5461 r"""
5462 Distance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5463 Distance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5464 """
5465 return _pcbnew.BOX2I_Distance(self, *args)
5466
5467 def ClosestPointTo(self, aPoint):
5468 r"""ClosestPointTo(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5469 return _pcbnew.BOX2I_ClosestPointTo(self, aPoint)
5470
5471 def FarthestPointTo(self, aPoint):
5472 r"""FarthestPointTo(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5473 return _pcbnew.BOX2I_FarthestPointTo(self, aPoint)
5474
5475 def __eq__(self, aOther):
5476 r"""__eq__(BOX2I self, BOX2I aOther) -> bool"""
5477 return _pcbnew.BOX2I___eq__(self, aOther)
5478
5479 def __ne__(self, aOther):
5480 r"""__ne__(BOX2I self, BOX2I aOther) -> bool"""
5481 return _pcbnew.BOX2I___ne__(self, aOther)
5482
5483 def IsValid(self):
5484 r"""IsValid(BOX2I self) -> bool"""
5485 return _pcbnew.BOX2I_IsValid(self)
5486 __swig_destroy__ = _pcbnew.delete_BOX2I
5487
5488# Register BOX2I in _pcbnew:
5489_pcbnew.BOX2I_swigregister(BOX2I)
5490
5492 r"""Proxy of C++ std::vector< VECTOR2I > class."""
5493
5494 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5495 __repr__ = _swig_repr
5496
5497 def iterator(self):
5498 r"""iterator(VECTOR_VECTOR2I self) -> SwigPyIterator"""
5499 return _pcbnew.VECTOR_VECTOR2I_iterator(self)
5500 def __iter__(self):
5501 return self.iterator()
5502
5503 def __nonzero__(self):
5504 r"""__nonzero__(VECTOR_VECTOR2I self) -> bool"""
5505 return _pcbnew.VECTOR_VECTOR2I___nonzero__(self)
5506
5507 def __bool__(self):
5508 r"""__bool__(VECTOR_VECTOR2I self) -> bool"""
5509 return _pcbnew.VECTOR_VECTOR2I___bool__(self)
5510
5511 def __len__(self):
5512 r"""__len__(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5513 return _pcbnew.VECTOR_VECTOR2I___len__(self)
5514
5515 def __getslice__(self, i, j):
5516 r"""__getslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j) -> VECTOR_VECTOR2I"""
5517 return _pcbnew.VECTOR_VECTOR2I___getslice__(self, i, j)
5518
5519 def __setslice__(self, *args):
5520 r"""
5521 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)
5522 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j, VECTOR_VECTOR2I v)
5523 """
5524 return _pcbnew.VECTOR_VECTOR2I___setslice__(self, *args)
5525
5526 def __delslice__(self, i, j):
5527 r"""__delslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)"""
5528 return _pcbnew.VECTOR_VECTOR2I___delslice__(self, i, j)
5529
5530 def __delitem__(self, *args):
5531 r"""
5532 __delitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i)
5533 __delitem__(VECTOR_VECTOR2I self, PySliceObject * slice)
5534 """
5535 return _pcbnew.VECTOR_VECTOR2I___delitem__(self, *args)
5536
5537 def __getitem__(self, *args):
5538 r"""
5539 __getitem__(VECTOR_VECTOR2I self, PySliceObject * slice) -> VECTOR_VECTOR2I
5540 __getitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i) -> VECTOR2I
5541 """
5542 return _pcbnew.VECTOR_VECTOR2I___getitem__(self, *args)
5543
5544 def __setitem__(self, *args):
5545 r"""
5546 __setitem__(VECTOR_VECTOR2I self, PySliceObject * slice, VECTOR_VECTOR2I v)
5547 __setitem__(VECTOR_VECTOR2I self, PySliceObject * slice)
5548 __setitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, VECTOR2I x)
5549 """
5550 return _pcbnew.VECTOR_VECTOR2I___setitem__(self, *args)
5551
5552 def pop(self):
5553 r"""pop(VECTOR_VECTOR2I self) -> VECTOR2I"""
5554 return _pcbnew.VECTOR_VECTOR2I_pop(self)
5555
5556 def append(self, x):
5557 r"""append(VECTOR_VECTOR2I self, VECTOR2I x)"""
5558 return _pcbnew.VECTOR_VECTOR2I_append(self, x)
5559
5560 def empty(self):
5561 r"""empty(VECTOR_VECTOR2I self) -> bool"""
5562 return _pcbnew.VECTOR_VECTOR2I_empty(self)
5563
5564 def size(self):
5565 r"""size(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5566 return _pcbnew.VECTOR_VECTOR2I_size(self)
5567
5568 def swap(self, v):
5569 r"""swap(VECTOR_VECTOR2I self, VECTOR_VECTOR2I v)"""
5570 return _pcbnew.VECTOR_VECTOR2I_swap(self, v)
5571
5572 def begin(self):
5573 r"""begin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5574 return _pcbnew.VECTOR_VECTOR2I_begin(self)
5575
5576 def end(self):
5577 r"""end(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5578 return _pcbnew.VECTOR_VECTOR2I_end(self)
5579
5580 def rbegin(self):
5581 r"""rbegin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5582 return _pcbnew.VECTOR_VECTOR2I_rbegin(self)
5583
5584 def rend(self):
5585 r"""rend(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5586 return _pcbnew.VECTOR_VECTOR2I_rend(self)
5587
5588 def clear(self):
5589 r"""clear(VECTOR_VECTOR2I self)"""
5590 return _pcbnew.VECTOR_VECTOR2I_clear(self)
5591
5592 def get_allocator(self):
5593 r"""get_allocator(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::allocator_type"""
5594 return _pcbnew.VECTOR_VECTOR2I_get_allocator(self)
5595
5596 def pop_back(self):
5597 r"""pop_back(VECTOR_VECTOR2I self)"""
5598 return _pcbnew.VECTOR_VECTOR2I_pop_back(self)
5599
5600 def erase(self, *args):
5601 r"""
5602 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos) -> std::vector< VECTOR2< int > >::iterator
5603 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator first, std::vector< VECTOR2< int > >::iterator last) -> std::vector< VECTOR2< int > >::iterator
5604 """
5605 return _pcbnew.VECTOR_VECTOR2I_erase(self, *args)
5606
5607 def __init__(self, *args):
5608 r"""
5609 __init__(VECTOR_VECTOR2I self) -> VECTOR_VECTOR2I
5610 __init__(VECTOR_VECTOR2I self, VECTOR_VECTOR2I other) -> VECTOR_VECTOR2I
5611 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size) -> VECTOR_VECTOR2I
5612 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size, VECTOR2I value) -> VECTOR_VECTOR2I
5613 """
5614 _pcbnew.VECTOR_VECTOR2I_swiginit(self, _pcbnew.new_VECTOR_VECTOR2I(*args))
5615
5616 def push_back(self, x):
5617 r"""push_back(VECTOR_VECTOR2I self, VECTOR2I x)"""
5618 return _pcbnew.VECTOR_VECTOR2I_push_back(self, x)
5619
5620 def front(self):
5621 r"""front(VECTOR_VECTOR2I self) -> VECTOR2I"""
5622 return _pcbnew.VECTOR_VECTOR2I_front(self)
5623
5624 def back(self):
5625 r"""back(VECTOR_VECTOR2I self) -> VECTOR2I"""
5626 return _pcbnew.VECTOR_VECTOR2I_back(self)
5627
5628 def assign(self, n, x):
5629 r"""assign(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)"""
5630 return _pcbnew.VECTOR_VECTOR2I_assign(self, n, x)
5631
5632 def resize(self, *args):
5633 r"""
5634 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size)
5635 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size, VECTOR2I x)
5636 """
5637 return _pcbnew.VECTOR_VECTOR2I_resize(self, *args)
5638
5639 def insert(self, *args):
5640 r"""
5641 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, VECTOR2I x) -> std::vector< VECTOR2< int > >::iterator
5642 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)
5643 """
5644 return _pcbnew.VECTOR_VECTOR2I_insert(self, *args)
5645
5646 def reserve(self, n):
5647 r"""reserve(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n)"""
5648 return _pcbnew.VECTOR_VECTOR2I_reserve(self, n)
5649
5650 def capacity(self):
5651 r"""capacity(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5652 return _pcbnew.VECTOR_VECTOR2I_capacity(self)
5653 __swig_destroy__ = _pcbnew.delete_VECTOR_VECTOR2I
5654
5655# Register VECTOR_VECTOR2I in _pcbnew:
5656_pcbnew.VECTOR_VECTOR2I_swigregister(VECTOR_VECTOR2I)
5657
5659 r"""Proxy of C++ SEG class."""
5660
5661 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5662 __repr__ = _swig_repr
5663 A = property(_pcbnew.SEG_A_get, _pcbnew.SEG_A_set, doc=r"""A : VECTOR2I""")
5664 B = property(_pcbnew.SEG_B_get, _pcbnew.SEG_B_set, doc=r"""B : VECTOR2I""")
5665
5666 def __init__(self, *args):
5667 r"""
5668 __init__(SEG self) -> SEG
5669 __init__(SEG self, int aX1, int aY1, int aX2, int aY2) -> SEG
5670 __init__(SEG self, VECTOR2I aA, VECTOR2I aB) -> SEG
5671 __init__(SEG self, VECTOR2I aA, VECTOR2I aB, int aIndex) -> SEG
5672 __init__(SEG self, SEG aSeg) -> SEG
5673 """
5674 _pcbnew.SEG_swiginit(self, _pcbnew.new_SEG(*args))
5675
5676 def __eq__(self, aSeg):
5677 r"""__eq__(SEG self, SEG aSeg) -> bool"""
5678 return _pcbnew.SEG___eq__(self, aSeg)
5679
5680 def __ne__(self, aSeg):
5681 r"""__ne__(SEG self, SEG aSeg) -> bool"""
5682 return _pcbnew.SEG___ne__(self, aSeg)
5683
5684 @staticmethod
5685 def Square(a):
5686 r"""Square(int a) -> SEG::ecoord"""
5687 return _pcbnew.SEG_Square(a)
5688
5689 def LineProject(self, aP):
5690 r"""LineProject(SEG self, VECTOR2I aP) -> VECTOR2I"""
5691 return _pcbnew.SEG_LineProject(self, aP)
5692
5693 def Side(self, aP):
5694 r"""Side(SEG self, VECTOR2I aP) -> int"""
5695 return _pcbnew.SEG_Side(self, aP)
5696
5697 def LineDistance(self, aP, aDetermineSide=False):
5698 r"""LineDistance(SEG self, VECTOR2I aP, bool aDetermineSide=False) -> int"""
5699 return _pcbnew.SEG_LineDistance(self, aP, aDetermineSide)
5700
5701 def Angle(self, aOther):
5702 r"""Angle(SEG self, SEG aOther) -> EDA_ANGLE"""
5703 return _pcbnew.SEG_Angle(self, aOther)
5704
5705 def NearestPoint(self, *args):
5706 r"""
5707 NearestPoint(SEG self, VECTOR2I aP) -> VECTOR2I
5708 NearestPoint(SEG self, SEG aSeg) -> VECTOR2I
5709 """
5710 return _pcbnew.SEG_NearestPoint(self, *args)
5711
5712 def ReflectPoint(self, aP):
5713 r"""ReflectPoint(SEG self, VECTOR2I aP) -> VECTOR2I"""
5714 return _pcbnew.SEG_ReflectPoint(self, aP)
5715
5716 def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False):
5717 r"""Intersect(SEG self, SEG aSeg, bool aIgnoreEndpoints=False, bool aLines=False) -> OPT_VECTOR2I"""
5718 return _pcbnew.SEG_Intersect(self, aSeg, aIgnoreEndpoints, aLines)
5719
5720 def Intersects(self, aSeg):
5721 r"""Intersects(SEG self, SEG aSeg) -> bool"""
5722 return _pcbnew.SEG_Intersects(self, aSeg)
5723
5724 def IntersectLines(self, aSeg):
5725 r"""IntersectLines(SEG self, SEG aSeg) -> OPT_VECTOR2I"""
5726 return _pcbnew.SEG_IntersectLines(self, aSeg)
5727
5728 def PerpendicularSeg(self, aP):
5729 r"""PerpendicularSeg(SEG self, VECTOR2I aP) -> SEG"""
5730 return _pcbnew.SEG_PerpendicularSeg(self, aP)
5731
5732 def ParallelSeg(self, aP):
5733 r"""ParallelSeg(SEG self, VECTOR2I aP) -> SEG"""
5734 return _pcbnew.SEG_ParallelSeg(self, aP)
5735
5736 def Collide(self, aSeg, aClearance, aActual=None):
5737 r"""Collide(SEG self, SEG aSeg, int aClearance, int * aActual=None) -> bool"""
5738 return _pcbnew.SEG_Collide(self, aSeg, aClearance, aActual)
5739
5740 def SquaredDistance(self, *args):
5741 r"""
5742 SquaredDistance(SEG self, SEG aSeg) -> SEG::ecoord
5743 SquaredDistance(SEG self, VECTOR2I aP) -> SEG::ecoord
5744 """
5745 return _pcbnew.SEG_SquaredDistance(self, *args)
5746
5747 def Distance(self, *args):
5748 r"""
5749 Distance(SEG self, SEG aSeg) -> int
5750 Distance(SEG self, VECTOR2I aP) -> int
5751 """
5752 return _pcbnew.SEG_Distance(self, *args)
5753
5754 def CanonicalCoefs(self, qA, qB, qC):
5755 r"""CanonicalCoefs(SEG self, SEG::ecoord & qA, SEG::ecoord & qB, SEG::ecoord & qC)"""
5756 return _pcbnew.SEG_CanonicalCoefs(self, qA, qB, qC)
5757
5758 def Collinear(self, aSeg):
5759 r"""Collinear(SEG self, SEG aSeg) -> bool"""
5760 return _pcbnew.SEG_Collinear(self, aSeg)
5761
5762 def ApproxCollinear(self, aSeg, aDistanceThreshold=1):
5763 r"""ApproxCollinear(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5764 return _pcbnew.SEG_ApproxCollinear(self, aSeg, aDistanceThreshold)
5765
5766 def ApproxParallel(self, aSeg, aDistanceThreshold=1):
5767 r"""ApproxParallel(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5768 return _pcbnew.SEG_ApproxParallel(self, aSeg, aDistanceThreshold)
5769
5770 def ApproxPerpendicular(self, aSeg):
5771 r"""ApproxPerpendicular(SEG self, SEG aSeg) -> bool"""
5772 return _pcbnew.SEG_ApproxPerpendicular(self, aSeg)
5773
5774 def Overlaps(self, aSeg):
5775 r"""Overlaps(SEG self, SEG aSeg) -> bool"""
5776 return _pcbnew.SEG_Overlaps(self, aSeg)
5777
5778 def Length(self):
5779 r"""Length(SEG self) -> int"""
5780 return _pcbnew.SEG_Length(self)
5781
5782 def SquaredLength(self):
5783 r"""SquaredLength(SEG self) -> SEG::ecoord"""
5784 return _pcbnew.SEG_SquaredLength(self)
5785
5786 def TCoef(self, aP):
5787 r"""TCoef(SEG self, VECTOR2I aP) -> SEG::ecoord"""
5788 return _pcbnew.SEG_TCoef(self, aP)
5789
5790 def Index(self):
5791 r"""Index(SEG self) -> int"""
5792 return _pcbnew.SEG_Index(self)
5793
5794 def Contains(self, *args):
5795 r"""
5796 Contains(SEG self, SEG aSeg) -> bool
5797 Contains(SEG self, VECTOR2I aP) -> bool
5798 """
5799 return _pcbnew.SEG_Contains(self, *args)
5800
5801 def Reverse(self):
5802 r"""Reverse(SEG self)"""
5803 return _pcbnew.SEG_Reverse(self)
5804
5805 def Reversed(self):
5806 r"""Reversed(SEG self) -> SEG"""
5807 return _pcbnew.SEG_Reversed(self)
5808
5809 def Center(self):
5810 r"""Center(SEG self) -> VECTOR2I"""
5811 return _pcbnew.SEG_Center(self)
5812
5813 def __lt__(self, aSeg):
5814 r"""__lt__(SEG self, SEG aSeg) -> bool"""
5815 return _pcbnew.SEG___lt__(self, aSeg)
5816 __swig_destroy__ = _pcbnew.delete_SEG
5817
5818# Register SEG in _pcbnew:
5819_pcbnew.SEG_swigregister(SEG)
5820
5822 r"""SEG_Square(int a) -> SEG::ecoord"""
5823 return _pcbnew.SEG_Square(a)
5824
5825SH_RECT = _pcbnew.SH_RECT
5826
5827SH_SEGMENT = _pcbnew.SH_SEGMENT
5828
5829SH_LINE_CHAIN = _pcbnew.SH_LINE_CHAIN
5830
5831SH_CIRCLE = _pcbnew.SH_CIRCLE
5832
5833SH_SIMPLE = _pcbnew.SH_SIMPLE
5834
5835SH_POLY_SET = _pcbnew.SH_POLY_SET
5836
5837SH_COMPOUND = _pcbnew.SH_COMPOUND
5838
5839SH_ARC = _pcbnew.SH_ARC
5840
5841SH_NULL = _pcbnew.SH_NULL
5842
5843SH_POLY_SET_TRIANGLE = _pcbnew.SH_POLY_SET_TRIANGLE
5844
5845
5847 r"""SHAPE_TYPE_asString(SHAPE_TYPE a) -> wxString"""
5848 return _pcbnew.SHAPE_TYPE_asString(a)
5850 r"""Proxy of C++ SHAPE_BASE class."""
5851
5852 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5853 __repr__ = _swig_repr
5854
5855 def __init__(self, aType):
5856 r"""__init__(SHAPE_BASE self, SHAPE_TYPE aType) -> SHAPE_BASE"""
5857 _pcbnew.SHAPE_BASE_swiginit(self, _pcbnew.new_SHAPE_BASE(aType))
5858 __swig_destroy__ = _pcbnew.delete_SHAPE_BASE
5859
5860 def Type(self):
5861 r"""Type(SHAPE_BASE self) -> SHAPE_TYPE"""
5862 return _pcbnew.SHAPE_BASE_Type(self)
5863
5864 def TypeName(self):
5865 r"""TypeName(SHAPE_BASE self) -> wxString"""
5866 return _pcbnew.SHAPE_BASE_TypeName(self)
5867
5869 r"""HasIndexableSubshapes(SHAPE_BASE self) -> bool"""
5870 return _pcbnew.SHAPE_BASE_HasIndexableSubshapes(self)
5871
5873 r"""GetIndexableSubshapeCount(SHAPE_BASE self) -> size_t"""
5874 return _pcbnew.SHAPE_BASE_GetIndexableSubshapeCount(self)
5875
5876 def GetIndexableSubshapes(self, aSubshapes):
5877 r"""GetIndexableSubshapes(SHAPE_BASE self, std::vector< SHAPE const *,std::allocator< SHAPE const * > > & aSubshapes)"""
5878 return _pcbnew.SHAPE_BASE_GetIndexableSubshapes(self, aSubshapes)
5879
5880# Register SHAPE_BASE in _pcbnew:
5881_pcbnew.SHAPE_BASE_swigregister(SHAPE_BASE)
5882
5884 r"""Proxy of C++ SHAPE class."""
5885
5886 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5887
5888 def __init__(self, *args, **kwargs):
5889 raise AttributeError("No constructor defined - class is abstract")
5890 __repr__ = _swig_repr
5891 MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
5892
5893 __swig_destroy__ = _pcbnew.delete_SHAPE
5894
5895 def Clone(self):
5896 r"""Clone(SHAPE self) -> SHAPE"""
5897 return _pcbnew.SHAPE_Clone(self)
5898
5899 def GetClearance(self, aOther):
5900 r"""GetClearance(SHAPE self, SHAPE aOther) -> int"""
5901 return _pcbnew.SHAPE_GetClearance(self, aOther)
5902
5903 def IsNull(self):
5904 r"""IsNull(SHAPE self) -> bool"""
5905 return _pcbnew.SHAPE_IsNull(self)
5906
5907 def Collide(self, *args):
5908 r"""
5909 Collide(SHAPE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5910 Collide(SHAPE self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
5911 Collide(SHAPE self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5912 Collide(SHAPE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5913 """
5914 return _pcbnew.SHAPE_Collide(self, *args)
5915
5916 def BBox(self, aClearance=0):
5917 r"""BBox(SHAPE self, int aClearance=0) -> BOX2I"""
5918 return _pcbnew.SHAPE_BBox(self, aClearance)
5919
5920 def Centre(self):
5921 r"""Centre(SHAPE self) -> VECTOR2I"""
5922 return _pcbnew.SHAPE_Centre(self)
5923
5924 def Rotate(self, *args):
5925 r"""Rotate(SHAPE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
5926 return _pcbnew.SHAPE_Rotate(self, *args)
5927
5928 def Move(self, aVector):
5929 r"""Move(SHAPE self, VECTOR2I aVector)"""
5930 return _pcbnew.SHAPE_Move(self, aVector)
5931
5932 def IsSolid(self):
5933 r"""IsSolid(SHAPE self) -> bool"""
5934 return _pcbnew.SHAPE_IsSolid(self)
5935
5936 def Parse(self, aStream):
5937 r"""Parse(SHAPE self, std::stringstream & aStream) -> bool"""
5938 return _pcbnew.SHAPE_Parse(self, aStream)
5939
5940 def Format(self, aCplusPlus=True):
5941 r"""Format(SHAPE self, bool aCplusPlus=True) -> string"""
5942 return _pcbnew.SHAPE_Format(self, aCplusPlus)
5943
5944 def Cast(self):
5945 shape_type = SHAPE_TYPE_asString(self.Type())
5946
5947 if shape_type == "SH_ARC":
5948 return Cast_to_SHAPE_ARC(self)
5949 elif shape_type == "SH_CIRCLE":
5950 return Cast_to_SHAPE_CIRCLE(self)
5951 elif shape_type == "SH_COMPOUND":
5952 return Cast_to_SHAPE_COMPOUND(self)
5953 elif shape_type == "SH_LINE_CHAIN":
5954 return Cast_to_SHAPE_LINE_CHAIN(self)
5955 elif shape_type == "SH_POLY_SET":
5956 return Cast_to_SHAPE_POLY_SET(self)
5957 elif shape_type == "SH_RECT":
5958 return Cast_to_SHAPE_RECT(self)
5959 elif shape_type == "SH_SEGMENT":
5960 return Cast_to_SHAPE_SEGMENT(self)
5961 elif shape_type == "SH_SIMPLE":
5962 return Cast_to_SHAPE_SIMPLE(self)
5963 else:
5964 raise TypeError("Unsupported shape class: %s" % shape_type)
5965
5966
5967# Register SHAPE in _pcbnew:
5968_pcbnew.SHAPE_swigregister(SHAPE)
5969
5971 r"""Proxy of C++ SHAPE_LINE_CHAIN_BASE class."""
5972
5973 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5974
5975 def __init__(self, *args, **kwargs):
5976 raise AttributeError("No constructor defined - class is abstract")
5977 __repr__ = _swig_repr
5978 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN_BASE
5979
5980 def Collide(self, *args):
5981 r"""
5982 Collide(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5983 Collide(SHAPE_LINE_CHAIN_BASE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5984 """
5985 return _pcbnew.SHAPE_LINE_CHAIN_BASE_Collide(self, *args)
5986
5987 def SquaredDistance(self, aP, aOutlineOnly=False):
5988 r"""SquaredDistance(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord"""
5989 return _pcbnew.SHAPE_LINE_CHAIN_BASE_SquaredDistance(self, aP, aOutlineOnly)
5990
5991 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
5992 r"""PointInside(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
5993 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
5994
5995 def PointOnEdge(self, aP, aAccuracy=0):
5996 r"""PointOnEdge(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> bool"""
5997 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointOnEdge(self, aP, aAccuracy)
5998
5999 def EdgeContainingPoint(self, aP, aAccuracy=0):
6000 r"""EdgeContainingPoint(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> int"""
6001 return _pcbnew.SHAPE_LINE_CHAIN_BASE_EdgeContainingPoint(self, aP, aAccuracy)
6002
6003 def GetPoint(self, aIndex):
6004 r"""GetPoint(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> VECTOR2I"""
6005 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPoint(self, aIndex)
6006
6007 def GetSegment(self, aIndex):
6008 r"""GetSegment(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> SEG"""
6009 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegment(self, aIndex)
6010
6011 def GetPointCount(self):
6012 r"""GetPointCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
6013 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPointCount(self)
6014
6016 r"""GetSegmentCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
6017 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegmentCount(self)
6018
6019 def IsClosed(self):
6020 r"""IsClosed(SHAPE_LINE_CHAIN_BASE self) -> bool"""
6021 return _pcbnew.SHAPE_LINE_CHAIN_BASE_IsClosed(self)
6022
6023 def GetCachedBBox(self):
6024 r"""GetCachedBBox(SHAPE_LINE_CHAIN_BASE self) -> BOX2I"""
6025 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetCachedBBox(self)
6026
6027# Register SHAPE_LINE_CHAIN_BASE in _pcbnew:
6028_pcbnew.SHAPE_LINE_CHAIN_BASE_swigregister(SHAPE_LINE_CHAIN_BASE)
6029
6031 r"""Proxy of C++ SHAPE_ARC class."""
6032
6033 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6034
6035 def __init__(self, *args, **kwargs):
6036 raise AttributeError("No constructor defined - class is abstract")
6037 __repr__ = _swig_repr
6038 __swig_destroy__ = _pcbnew.delete_SHAPE_ARC
6039
6040 def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0):
6041 r"""ConstructFromStartEndAngle(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, EDA_ANGLE aAngle, double aWidth=0) -> SHAPE_ARC"""
6042 return _pcbnew.SHAPE_ARC_ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth)
6043
6044 def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0):
6045 r"""ConstructFromStartEndCenter(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, VECTOR2I aCenter, bool aClockwise=False, double aWidth=0) -> SHAPE_ARC"""
6046 return _pcbnew.SHAPE_ARC_ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise, aWidth)
6047
6048 def GetP0(self):
6049 r"""GetP0(SHAPE_ARC self) -> VECTOR2I"""
6050 return _pcbnew.SHAPE_ARC_GetP0(self)
6051
6052 def GetP1(self):
6053 r"""GetP1(SHAPE_ARC self) -> VECTOR2I"""
6054 return _pcbnew.SHAPE_ARC_GetP1(self)
6055
6056 def GetArcMid(self):
6057 r"""GetArcMid(SHAPE_ARC self) -> VECTOR2I"""
6058 return _pcbnew.SHAPE_ARC_GetArcMid(self)
6059
6060 def GetCenter(self):
6061 r"""GetCenter(SHAPE_ARC self) -> VECTOR2I"""
6062 return _pcbnew.SHAPE_ARC_GetCenter(self)
6063
6064 def BBox(self, aClearance=0):
6065 r"""BBox(SHAPE_ARC self, int aClearance=0) -> BOX2I"""
6066 return _pcbnew.SHAPE_ARC_BBox(self, aClearance)
6067
6068 def Collide(self, *args):
6069 r"""
6070 Collide(SHAPE_ARC self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6071 Collide(SHAPE_ARC self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6072 Collide(SHAPE_ARC self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6073 """
6074 return _pcbnew.SHAPE_ARC_Collide(self, *args)
6075
6076 def IntersectLine(self, aSeg, aIpsBuffer):
6077 r"""IntersectLine(SHAPE_ARC self, SEG aSeg, VECTOR_VECTOR2I aIpsBuffer) -> int"""
6078 return _pcbnew.SHAPE_ARC_IntersectLine(self, aSeg, aIpsBuffer)
6079
6080 def Intersect(self, aArc, aIpsBuffer):
6081 r"""Intersect(SHAPE_ARC self, SHAPE_ARC aArc, VECTOR_VECTOR2I aIpsBuffer) -> int"""
6082 return _pcbnew.SHAPE_ARC_Intersect(self, aArc, aIpsBuffer)
6083
6084 def IsClockwise(self):
6085 r"""IsClockwise(SHAPE_ARC self) -> bool"""
6086 return _pcbnew.SHAPE_ARC_IsClockwise(self)
6087
6088 def SetWidth(self, aWidth):
6089 r"""SetWidth(SHAPE_ARC self, int aWidth)"""
6090 return _pcbnew.SHAPE_ARC_SetWidth(self, aWidth)
6091
6092 def GetWidth(self):
6093 r"""GetWidth(SHAPE_ARC self) -> int"""
6094 return _pcbnew.SHAPE_ARC_GetWidth(self)
6095
6096 def Mirror(self, *args):
6097 r"""
6098 Mirror(SHAPE_ARC self, bool aX=True, bool aY=False, VECTOR2I aVector={ 0, 0 })
6099 Mirror(SHAPE_ARC self, SEG axis)
6100 """
6101 return _pcbnew.SHAPE_ARC_Mirror(self, *args)
6102
6103 def Reverse(self):
6104 r"""Reverse(SHAPE_ARC self)"""
6105 return _pcbnew.SHAPE_ARC_Reverse(self)
6106
6107 def Reversed(self):
6108 r"""Reversed(SHAPE_ARC self) -> SHAPE_ARC"""
6109 return _pcbnew.SHAPE_ARC_Reversed(self)
6110
6111 def GetRadius(self):
6112 r"""GetRadius(SHAPE_ARC self) -> double"""
6113 return _pcbnew.SHAPE_ARC_GetRadius(self)
6114
6115 def GetChord(self):
6116 r"""GetChord(SHAPE_ARC self) -> SEG"""
6117 return _pcbnew.SHAPE_ARC_GetChord(self)
6118
6120 r"""GetCentralAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6121 return _pcbnew.SHAPE_ARC_GetCentralAngle(self)
6122
6123 def GetStartAngle(self):
6124 r"""GetStartAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6125 return _pcbnew.SHAPE_ARC_GetStartAngle(self)
6126
6127 def GetEndAngle(self):
6128 r"""GetEndAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6129 return _pcbnew.SHAPE_ARC_GetEndAngle(self)
6130
6131 def GetLength(self):
6132 r"""GetLength(SHAPE_ARC self) -> double"""
6133 return _pcbnew.SHAPE_ARC_GetLength(self)
6134
6135 @staticmethod
6137 r"""DefaultAccuracyForPCB() -> double"""
6138 return _pcbnew.SHAPE_ARC_DefaultAccuracyForPCB()
6139
6140 def ConvertToPolyline(self, *args):
6141 r"""ConvertToPolyline(SHAPE_ARC self, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB(), double * aEffectiveAccuracy=None) -> SHAPE_LINE_CHAIN"""
6142 return _pcbnew.SHAPE_ARC_ConvertToPolyline(self, *args)
6143
6144 def __eq__(self, aArc):
6145 r"""__eq__(SHAPE_ARC self, SHAPE_ARC aArc) -> bool"""
6146 return _pcbnew.SHAPE_ARC___eq__(self, aArc)
6147
6148# Register SHAPE_ARC in _pcbnew:
6149_pcbnew.SHAPE_ARC_swigregister(SHAPE_ARC)
6150
6152 r"""SHAPE_ARC_DefaultAccuracyForPCB() -> double"""
6153 return _pcbnew.SHAPE_ARC_DefaultAccuracyForPCB()
6154
6156 r"""Proxy of C++ SHAPE_CIRCLE class."""
6157
6158 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6159 __repr__ = _swig_repr
6160
6161 def __init__(self, *args):
6162 r"""
6163 __init__(SHAPE_CIRCLE self) -> SHAPE_CIRCLE
6164 __init__(SHAPE_CIRCLE self, VECTOR2I aCenter, int aRadius) -> SHAPE_CIRCLE
6165 __init__(SHAPE_CIRCLE self, CIRCLE const & aCircle) -> SHAPE_CIRCLE
6166 __init__(SHAPE_CIRCLE self, SHAPE_CIRCLE aOther) -> SHAPE_CIRCLE
6167 """
6168 _pcbnew.SHAPE_CIRCLE_swiginit(self, _pcbnew.new_SHAPE_CIRCLE(*args))
6169 __swig_destroy__ = _pcbnew.delete_SHAPE_CIRCLE
6170
6171 def BBox(self, aClearance=0):
6172 r"""BBox(SHAPE_CIRCLE self, int aClearance=0) -> BOX2I"""
6173 return _pcbnew.SHAPE_CIRCLE_BBox(self, aClearance)
6174
6175 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
6176 r"""Collide(SHAPE_CIRCLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
6177 return _pcbnew.SHAPE_CIRCLE_Collide(self, aSeg, aClearance, aActual, aLocation)
6178
6179 def SetRadius(self, aRadius):
6180 r"""SetRadius(SHAPE_CIRCLE self, int aRadius)"""
6181 return _pcbnew.SHAPE_CIRCLE_SetRadius(self, aRadius)
6182
6183 def SetCenter(self, aCenter):
6184 r"""SetCenter(SHAPE_CIRCLE self, VECTOR2I aCenter)"""
6185 return _pcbnew.SHAPE_CIRCLE_SetCenter(self, aCenter)
6186
6187 def GetRadius(self):
6188 r"""GetRadius(SHAPE_CIRCLE self) -> int"""
6189 return _pcbnew.SHAPE_CIRCLE_GetRadius(self)
6190
6191 def GetCenter(self):
6192 r"""GetCenter(SHAPE_CIRCLE self) -> VECTOR2I"""
6193 return _pcbnew.SHAPE_CIRCLE_GetCenter(self)
6194
6195 def GetCircle(self):
6196 r"""GetCircle(SHAPE_CIRCLE self) -> CIRCLE const"""
6197 return _pcbnew.SHAPE_CIRCLE_GetCircle(self)
6198
6199 def Rotate(self, *args):
6200 r"""Rotate(SHAPE_CIRCLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6201 return _pcbnew.SHAPE_CIRCLE_Rotate(self, *args)
6202
6203 def Format(self, aCplusPlus=True):
6204 r"""Format(SHAPE_CIRCLE self, bool aCplusPlus=True) -> string"""
6205 return _pcbnew.SHAPE_CIRCLE_Format(self, aCplusPlus)
6206
6207# Register SHAPE_CIRCLE in _pcbnew:
6208_pcbnew.SHAPE_CIRCLE_swigregister(SHAPE_CIRCLE)
6209
6211 r"""Proxy of C++ SHAPE_COMPOUND class."""
6212
6213 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6214 __repr__ = _swig_repr
6215
6216 def __init__(self, *args):
6217 r"""
6218 __init__(SHAPE_COMPOUND self) -> SHAPE_COMPOUND
6219 __init__(SHAPE_COMPOUND self, std::vector< SHAPE *,std::allocator< SHAPE * > > const & aShapes) -> SHAPE_COMPOUND
6220 __init__(SHAPE_COMPOUND self, SHAPE_COMPOUND aOther) -> SHAPE_COMPOUND
6221 """
6222 _pcbnew.SHAPE_COMPOUND_swiginit(self, _pcbnew.new_SHAPE_COMPOUND(*args))
6223 __swig_destroy__ = _pcbnew.delete_SHAPE_COMPOUND
6224
6225 def Clone(self):
6226 r"""Clone(SHAPE_COMPOUND self) -> SHAPE_COMPOUND"""
6227 return _pcbnew.SHAPE_COMPOUND_Clone(self)
6228
6229 def Format(self, aCplusPlus=True):
6230 r"""Format(SHAPE_COMPOUND self, bool aCplusPlus=True) -> string"""
6231 return _pcbnew.SHAPE_COMPOUND_Format(self, aCplusPlus)
6232
6233 def Collide(self, *args):
6234 r"""
6235 Collide(SHAPE_COMPOUND self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6236 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
6237 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6238 """
6239 return _pcbnew.SHAPE_COMPOUND_Collide(self, *args)
6240
6241 def Shapes(self):
6242 r"""Shapes(SHAPE_COMPOUND self) -> std::vector< SHAPE *,std::allocator< SHAPE * > > const &"""
6243 return _pcbnew.SHAPE_COMPOUND_Shapes(self)
6244
6245 def BBox(self, aClearance=0):
6246 r"""BBox(SHAPE_COMPOUND self, int aClearance=0) -> BOX2I"""
6247 return _pcbnew.SHAPE_COMPOUND_BBox(self, aClearance)
6248
6249 def Distance(self, aSeg):
6250 r"""Distance(SHAPE_COMPOUND self, SEG aSeg) -> int"""
6251 return _pcbnew.SHAPE_COMPOUND_Distance(self, aSeg)
6252
6253 def AddShape(self, *args):
6254 r"""
6255 AddShape(SHAPE_COMPOUND self, SHAPE aShape)
6256 AddShape(SHAPE_COMPOUND self, std::shared_ptr< SHAPE > aShape)
6257 """
6258 return _pcbnew.SHAPE_COMPOUND_AddShape(self, *args)
6259
6260 def Empty(self):
6261 r"""Empty(SHAPE_COMPOUND self) -> bool"""
6262 return _pcbnew.SHAPE_COMPOUND_Empty(self)
6263
6264 def Size(self):
6265 r"""Size(SHAPE_COMPOUND self) -> int"""
6266 return _pcbnew.SHAPE_COMPOUND_Size(self)
6267
6268 def Rotate(self, *args):
6269 r"""Rotate(SHAPE_COMPOUND self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6270 return _pcbnew.SHAPE_COMPOUND_Rotate(self, *args)
6271
6273 r"""UniqueSubshape(SHAPE_COMPOUND self) -> SHAPE"""
6274 return _pcbnew.SHAPE_COMPOUND_UniqueSubshape(self)
6275
6276 def ConvertToSimplePolygon(self, aOut):
6277 r"""ConvertToSimplePolygon(SHAPE_COMPOUND self, SHAPE_SIMPLE aOut) -> bool"""
6278 return _pcbnew.SHAPE_COMPOUND_ConvertToSimplePolygon(self, aOut)
6279
6280 def GetSubshapes(self):
6281 r"""GetSubshapes(SHAPE_COMPOUND self) -> VECTOR_SHAPEPTR"""
6282 return _pcbnew.SHAPE_COMPOUND_GetSubshapes(self)
6283
6284# Register SHAPE_COMPOUND in _pcbnew:
6285_pcbnew.SHAPE_COMPOUND_swigregister(SHAPE_COMPOUND)
6286
6288 r"""Proxy of C++ CLIPPER_Z_VALUE class."""
6289
6290 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6291 __repr__ = _swig_repr
6292
6293 def __init__(self, *args):
6294 r"""
6295 __init__(CLIPPER_Z_VALUE self) -> CLIPPER_Z_VALUE
6296 __init__(CLIPPER_Z_VALUE self, std::pair< ssize_t,ssize_t > const aShapeIndices, ssize_t aOffset=0) -> CLIPPER_Z_VALUE
6297 """
6298 _pcbnew.CLIPPER_Z_VALUE_swiginit(self, _pcbnew.new_CLIPPER_Z_VALUE(*args))
6299 m_FirstArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_set, doc=r"""m_FirstArcIdx : ssize_t""")
6300 m_SecondArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_set, doc=r"""m_SecondArcIdx : ssize_t""")
6301 __swig_destroy__ = _pcbnew.delete_CLIPPER_Z_VALUE
6302
6303# Register CLIPPER_Z_VALUE in _pcbnew:
6304_pcbnew.CLIPPER_Z_VALUE_swigregister(CLIPPER_Z_VALUE)
6305
6307 r"""Proxy of C++ SHAPE_LINE_CHAIN class."""
6308
6309 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6310 __repr__ = _swig_repr
6311
6312 def __init__(self, *args):
6313 r"""
6314 __init__(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN
6315 __init__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aShape) -> SHAPE_LINE_CHAIN
6316 __init__(SHAPE_LINE_CHAIN self, intVector aV) -> SHAPE_LINE_CHAIN
6317 __init__(SHAPE_LINE_CHAIN self, VECTOR_VECTOR2I aV, bool aClosed=False) -> SHAPE_LINE_CHAIN
6318 __init__(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, bool aClosed=False) -> SHAPE_LINE_CHAIN
6319 __init__(SHAPE_LINE_CHAIN self, ClipperLib::Path const & aPath, std::vector< CLIPPER_Z_VALUE,std::allocator< CLIPPER_Z_VALUE > > const & aZValueBuffer, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > const & aArcBuffer) -> SHAPE_LINE_CHAIN
6320 __init__(SHAPE_LINE_CHAIN self, Clipper2Lib::Path64 const & aPath, std::vector< CLIPPER_Z_VALUE,std::allocator< CLIPPER_Z_VALUE > > const & aZValueBuffer, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > const & aArcBuffer) -> SHAPE_LINE_CHAIN
6321 """
6322 _pcbnew.SHAPE_LINE_CHAIN_swiginit(self, _pcbnew.new_SHAPE_LINE_CHAIN(*args))
6323 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN
6324
6325 def Collide(self, *args):
6326 r"""
6327 Collide(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6328 Collide(SHAPE_LINE_CHAIN self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6329 """
6330 return _pcbnew.SHAPE_LINE_CHAIN_Collide(self, *args)
6331
6332 def Clear(self):
6333 r"""Clear(SHAPE_LINE_CHAIN self)"""
6334 return _pcbnew.SHAPE_LINE_CHAIN_Clear(self)
6335
6336 def SetClosed(self, aClosed):
6337 r"""SetClosed(SHAPE_LINE_CHAIN self, bool aClosed)"""
6338 return _pcbnew.SHAPE_LINE_CHAIN_SetClosed(self, aClosed)
6339
6340 def SetWidth(self, aWidth):
6341 r"""SetWidth(SHAPE_LINE_CHAIN self, int aWidth)"""
6342 return _pcbnew.SHAPE_LINE_CHAIN_SetWidth(self, aWidth)
6343
6344 def Width(self):
6345 r"""Width(SHAPE_LINE_CHAIN self) -> int"""
6346 return _pcbnew.SHAPE_LINE_CHAIN_Width(self)
6347
6348 def SegmentCount(self):
6349 r"""SegmentCount(SHAPE_LINE_CHAIN self) -> int"""
6350 return _pcbnew.SHAPE_LINE_CHAIN_SegmentCount(self)
6351
6352 def ShapeCount(self):
6353 r"""ShapeCount(SHAPE_LINE_CHAIN self) -> int"""
6354 return _pcbnew.SHAPE_LINE_CHAIN_ShapeCount(self)
6355
6356 def PointCount(self):
6357 r"""PointCount(SHAPE_LINE_CHAIN self) -> int"""
6358 return _pcbnew.SHAPE_LINE_CHAIN_PointCount(self)
6359
6360 def Segment(self, aIndex):
6361 r"""Segment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6362 return _pcbnew.SHAPE_LINE_CHAIN_Segment(self, aIndex)
6363
6364 def CSegment(self, aIndex):
6365 r"""CSegment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6366 return _pcbnew.SHAPE_LINE_CHAIN_CSegment(self, aIndex)
6367
6368 def NextShape(self, aPointIndex, aForwards=True):
6369 r"""NextShape(SHAPE_LINE_CHAIN self, int aPointIndex, bool aForwards=True) -> int"""
6370 return _pcbnew.SHAPE_LINE_CHAIN_NextShape(self, aPointIndex, aForwards)
6371
6372 def PrevShape(self, aPointIndex):
6373 r"""PrevShape(SHAPE_LINE_CHAIN self, int aPointIndex) -> int"""
6374 return _pcbnew.SHAPE_LINE_CHAIN_PrevShape(self, aPointIndex)
6375
6376 def SetPoint(self, aIndex, aPos):
6377 r"""SetPoint(SHAPE_LINE_CHAIN self, int aIndex, VECTOR2I aPos)"""
6378 return _pcbnew.SHAPE_LINE_CHAIN_SetPoint(self, aIndex, aPos)
6379
6380 def CPoint(self, aIndex):
6381 r"""CPoint(SHAPE_LINE_CHAIN self, int aIndex) -> VECTOR2I"""
6382 return _pcbnew.SHAPE_LINE_CHAIN_CPoint(self, aIndex)
6383
6384 def CPoints(self):
6385 r"""CPoints(SHAPE_LINE_CHAIN self) -> VECTOR_VECTOR2I"""
6386 return _pcbnew.SHAPE_LINE_CHAIN_CPoints(self)
6387
6388 def CLastPoint(self):
6389 r"""CLastPoint(SHAPE_LINE_CHAIN self) -> VECTOR2I"""
6390 return _pcbnew.SHAPE_LINE_CHAIN_CLastPoint(self)
6391
6392 def CArcs(self):
6393 r"""CArcs(SHAPE_LINE_CHAIN self) -> std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > const &"""
6394 return _pcbnew.SHAPE_LINE_CHAIN_CArcs(self)
6395
6396 def CShapes(self):
6397 r"""CShapes(SHAPE_LINE_CHAIN self) -> std::vector< std::pair< ssize_t,ssize_t >,std::allocator< std::pair< ssize_t,ssize_t > > > const &"""
6398 return _pcbnew.SHAPE_LINE_CHAIN_CShapes(self)
6399
6400 def BBox(self, aClearance=0):
6401 r"""BBox(SHAPE_LINE_CHAIN self, int aClearance=0) -> BOX2I"""
6402 return _pcbnew.SHAPE_LINE_CHAIN_BBox(self, aClearance)
6403
6405 r"""GenerateBBoxCache(SHAPE_LINE_CHAIN self)"""
6406 return _pcbnew.SHAPE_LINE_CHAIN_GenerateBBoxCache(self)
6407
6408 def Distance(self, aP, aOutlineOnly=False):
6409 r"""Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aOutlineOnly=False) -> int"""
6410 return _pcbnew.SHAPE_LINE_CHAIN_Distance(self, aP, aOutlineOnly)
6411
6412 def Reverse(self):
6413 r"""Reverse(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN"""
6414 return _pcbnew.SHAPE_LINE_CHAIN_Reverse(self)
6415
6416 def ClearArcs(self):
6417 r"""ClearArcs(SHAPE_LINE_CHAIN self)"""
6418 return _pcbnew.SHAPE_LINE_CHAIN_ClearArcs(self)
6419
6420 def Length(self):
6421 r"""Length(SHAPE_LINE_CHAIN self) -> long long"""
6422 return _pcbnew.SHAPE_LINE_CHAIN_Length(self)
6423
6424 def ReservePoints(self, aSize):
6425 r"""ReservePoints(SHAPE_LINE_CHAIN self, size_t aSize)"""
6426 return _pcbnew.SHAPE_LINE_CHAIN_ReservePoints(self, aSize)
6427
6428 def Append(self, *args):
6429 r"""
6430 Append(SHAPE_LINE_CHAIN self, int aX, int aY, bool aAllowDuplication=False)
6431 Append(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowDuplication=False)
6432 Append(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOtherLine)
6433 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc)
6434 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, double aAccuracy)
6435 """
6436 return _pcbnew.SHAPE_LINE_CHAIN_Append(self, *args)
6437
6438 def Insert(self, *args):
6439 r"""
6440 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, VECTOR2I aP)
6441 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, SHAPE_ARC aArc)
6442 """
6443 return _pcbnew.SHAPE_LINE_CHAIN_Insert(self, *args)
6444
6445 def Replace(self, *args):
6446 r"""
6447 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, VECTOR2I aP)
6448 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, SHAPE_LINE_CHAIN aLine)
6449 """
6450 return _pcbnew.SHAPE_LINE_CHAIN_Replace(self, *args)
6451
6452 def Remove(self, *args):
6453 r"""
6454 Remove(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex)
6455 Remove(SHAPE_LINE_CHAIN self, int aIndex)
6456 """
6457 return _pcbnew.SHAPE_LINE_CHAIN_Remove(self, *args)
6458
6459 def RemoveShape(self, aPointIndex):
6460 r"""RemoveShape(SHAPE_LINE_CHAIN self, int aPointIndex)"""
6461 return _pcbnew.SHAPE_LINE_CHAIN_RemoveShape(self, aPointIndex)
6462
6463 def Split(self, aP):
6464 r"""Split(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
6465 return _pcbnew.SHAPE_LINE_CHAIN_Split(self, aP)
6466
6467 def Find(self, aP, aThreshold=0):
6468 r"""Find(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=0) -> int"""
6469 return _pcbnew.SHAPE_LINE_CHAIN_Find(self, aP, aThreshold)
6470
6471 def FindSegment(self, aP, aThreshold=1):
6472 r"""FindSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=1) -> int"""
6473 return _pcbnew.SHAPE_LINE_CHAIN_FindSegment(self, aP, aThreshold)
6474
6475 def Slice(self, aStartIndex, aEndIndex=-1):
6476 r"""Slice(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex=-1) -> SHAPE_LINE_CHAIN"""
6477 return _pcbnew.SHAPE_LINE_CHAIN_Slice(self, aStartIndex, aEndIndex)
6478
6479 def Intersects(self, aChain):
6480 r"""Intersects(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain) -> bool"""
6481 return _pcbnew.SHAPE_LINE_CHAIN_Intersects(self, aChain)
6482
6483 def Intersect(self, *args):
6484 r"""
6485 Intersect(SHAPE_LINE_CHAIN self, SEG aSeg, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp) -> int
6486 Intersect(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp, bool aExcludeColinearAndTouching=False, BOX2I aChainBBox=None) -> int
6487 """
6488 return _pcbnew.SHAPE_LINE_CHAIN_Intersect(self, *args)
6489
6490 def PathLength(self, aP, aIndex=-1):
6491 r"""PathLength(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aIndex=-1) -> int"""
6492 return _pcbnew.SHAPE_LINE_CHAIN_PathLength(self, aP, aIndex)
6493
6494 def CheckClearance(self, aP, aDist):
6495 r"""CheckClearance(SHAPE_LINE_CHAIN self, VECTOR2I aP, int const aDist) -> bool"""
6496 return _pcbnew.SHAPE_LINE_CHAIN_CheckClearance(self, aP, aDist)
6497
6499 r"""SelfIntersecting(SHAPE_LINE_CHAIN self) -> std::optional< SHAPE_LINE_CHAIN::INTERSECTION > const"""
6500 return _pcbnew.SHAPE_LINE_CHAIN_SelfIntersecting(self)
6501
6502 def Simplify(self, aRemoveColinear=True):
6503 r"""Simplify(SHAPE_LINE_CHAIN self, bool aRemoveColinear=True) -> SHAPE_LINE_CHAIN"""
6504 return _pcbnew.SHAPE_LINE_CHAIN_Simplify(self, aRemoveColinear)
6505
6506 def NearestSegment(self, aP):
6507 r"""NearestSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
6508 return _pcbnew.SHAPE_LINE_CHAIN_NearestSegment(self, aP)
6509
6510 def NearestPoint(self, *args):
6511 r"""
6512 NearestPoint(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowInternalShapePoints=True) -> VECTOR2I
6513 NearestPoint(SHAPE_LINE_CHAIN self, SEG aSeg, int & dist) -> VECTOR2I
6514 """
6515 return _pcbnew.SHAPE_LINE_CHAIN_NearestPoint(self, *args)
6516
6517 def Format(self, aCplusPlus=True):
6518 r"""Format(SHAPE_LINE_CHAIN self, bool aCplusPlus=True) -> string"""
6519 return _pcbnew.SHAPE_LINE_CHAIN_Format(self, aCplusPlus)
6520
6521 def __ne__(self, aRhs):
6522 r"""__ne__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aRhs) -> bool"""
6523 return _pcbnew.SHAPE_LINE_CHAIN___ne__(self, aRhs)
6524
6525 def CompareGeometry(self, aOther):
6526 r"""CompareGeometry(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOther) -> bool"""
6527 return _pcbnew.SHAPE_LINE_CHAIN_CompareGeometry(self, aOther)
6528
6529 def Mirror(self, *args):
6530 r"""
6531 Mirror(SHAPE_LINE_CHAIN self, bool aX=True, bool aY=False, VECTOR2I aRef={ 0, 0 })
6532 Mirror(SHAPE_LINE_CHAIN self, SEG axis)
6533 """
6534 return _pcbnew.SHAPE_LINE_CHAIN_Mirror(self, *args)
6535
6536 def Rotate(self, *args):
6537 r"""Rotate(SHAPE_LINE_CHAIN self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6538 return _pcbnew.SHAPE_LINE_CHAIN_Rotate(self, *args)
6539
6540 def PointAlong(self, aPathLength):
6541 r"""PointAlong(SHAPE_LINE_CHAIN self, int aPathLength) -> VECTOR2I"""
6542 return _pcbnew.SHAPE_LINE_CHAIN_PointAlong(self, aPathLength)
6543
6544 def Area(self, aAbsolute=True):
6545 r"""Area(SHAPE_LINE_CHAIN self, bool aAbsolute=True) -> double"""
6546 return _pcbnew.SHAPE_LINE_CHAIN_Area(self, aAbsolute)
6547
6548 def ArcCount(self):
6549 r"""ArcCount(SHAPE_LINE_CHAIN self) -> size_t"""
6550 return _pcbnew.SHAPE_LINE_CHAIN_ArcCount(self)
6551
6552 def ArcIndex(self, aSegment):
6553 r"""ArcIndex(SHAPE_LINE_CHAIN self, size_t aSegment) -> ssize_t"""
6554 return _pcbnew.SHAPE_LINE_CHAIN_ArcIndex(self, aSegment)
6555
6556 def Arc(self, aArc):
6557 r"""Arc(SHAPE_LINE_CHAIN self, size_t aArc) -> SHAPE_ARC"""
6558 return _pcbnew.SHAPE_LINE_CHAIN_Arc(self, aArc)
6559
6560 def IsSharedPt(self, aIndex):
6561 r"""IsSharedPt(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6562 return _pcbnew.SHAPE_LINE_CHAIN_IsSharedPt(self, aIndex)
6563
6564 def IsPtOnArc(self, aPtIndex):
6565 r"""IsPtOnArc(SHAPE_LINE_CHAIN self, size_t aPtIndex) -> bool"""
6566 return _pcbnew.SHAPE_LINE_CHAIN_IsPtOnArc(self, aPtIndex)
6567
6568 def IsArcSegment(self, aSegment):
6569 r"""IsArcSegment(SHAPE_LINE_CHAIN self, size_t aSegment) -> bool"""
6570 return _pcbnew.SHAPE_LINE_CHAIN_IsArcSegment(self, aSegment)
6571
6572 def IsArcStart(self, aIndex):
6573 r"""IsArcStart(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6574 return _pcbnew.SHAPE_LINE_CHAIN_IsArcStart(self, aIndex)
6575
6576 def IsArcEnd(self, aIndex):
6577 r"""IsArcEnd(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6578 return _pcbnew.SHAPE_LINE_CHAIN_IsArcEnd(self, aIndex)
6579
6580# Register SHAPE_LINE_CHAIN in _pcbnew:
6581_pcbnew.SHAPE_LINE_CHAIN_swigregister(SHAPE_LINE_CHAIN)
6582
6584 r"""Proxy of C++ SHAPE_POLY_SET class."""
6585
6586 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6587 __repr__ = _swig_repr
6588
6589 def __init__(self, *args):
6590 r"""
6591 __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
6592 __init__(SHAPE_POLY_SET self, BOX2D const & aRect) -> SHAPE_POLY_SET
6593 __init__(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> SHAPE_POLY_SET
6594 __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET
6595 """
6596 _pcbnew.SHAPE_POLY_SET_swiginit(self, _pcbnew.new_SHAPE_POLY_SET(*args))
6597 __swig_destroy__ = _pcbnew.delete_SHAPE_POLY_SET
6598
6599 def CacheTriangulation(self, aPartition=True, aSimplify=False):
6600 r"""CacheTriangulation(SHAPE_POLY_SET self, bool aPartition=True, bool aSimplify=False)"""
6601 return _pcbnew.SHAPE_POLY_SET_CacheTriangulation(self, aPartition, aSimplify)
6602
6604 r"""IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool"""
6605 return _pcbnew.SHAPE_POLY_SET_IsTriangulationUpToDate(self)
6606
6607 def GetHash(self):
6608 r"""GetHash(SHAPE_POLY_SET self) -> MD5_HASH"""
6609 return _pcbnew.SHAPE_POLY_SET_GetHash(self)
6610
6611 def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices):
6612 r"""GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool"""
6613 return _pcbnew.SHAPE_POLY_SET_GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
6614
6615 def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx):
6616 r"""GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool"""
6617 return _pcbnew.SHAPE_POLY_SET_GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
6618
6620 r"""CloneDropTriangulation(SHAPE_POLY_SET self) -> SHAPE_POLY_SET"""
6621 return _pcbnew.SHAPE_POLY_SET_CloneDropTriangulation(self)
6622
6623 def NewOutline(self):
6624 r"""NewOutline(SHAPE_POLY_SET self) -> int"""
6625 return _pcbnew.SHAPE_POLY_SET_NewOutline(self)
6626
6627 def NewHole(self, aOutline=-1):
6628 r"""NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int"""
6629 return _pcbnew.SHAPE_POLY_SET_NewHole(self, aOutline)
6630
6631 def AddOutline(self, aOutline):
6632 r"""AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> int"""
6633 return _pcbnew.SHAPE_POLY_SET_AddOutline(self, aOutline)
6634
6635 def AddHole(self, aHole, aOutline=-1):
6636 r"""AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole, int aOutline=-1) -> int"""
6637 return _pcbnew.SHAPE_POLY_SET_AddHole(self, aHole, aOutline)
6638
6639 def Area(self):
6640 r"""Area(SHAPE_POLY_SET self) -> double"""
6641 return _pcbnew.SHAPE_POLY_SET_Area(self)
6642
6643 def ArcCount(self):
6644 r"""ArcCount(SHAPE_POLY_SET self) -> int"""
6645 return _pcbnew.SHAPE_POLY_SET_ArcCount(self)
6646
6647 def GetArcs(self, aArcBuffer):
6648 r"""GetArcs(SHAPE_POLY_SET self, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > & aArcBuffer)"""
6649 return _pcbnew.SHAPE_POLY_SET_GetArcs(self, aArcBuffer)
6650
6651 def ClearArcs(self):
6652 r"""ClearArcs(SHAPE_POLY_SET self)"""
6653 return _pcbnew.SHAPE_POLY_SET_ClearArcs(self)
6654
6655 def Append(self, *args):
6656 r"""
6657 Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
6658 Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
6659 Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1, int aHole=-1)
6660 Append(SHAPE_POLY_SET self, SHAPE_ARC aArc, int aOutline=-1, int aHole=-1, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB()) -> int
6661 """
6662 return _pcbnew.SHAPE_POLY_SET_Append(self, *args)
6663
6664 def InsertVertex(self, aGlobalIndex, aNewVertex):
6665 r"""InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)"""
6666 return _pcbnew.SHAPE_POLY_SET_InsertVertex(self, aGlobalIndex, aNewVertex)
6667
6668 def CVertex(self, *args):
6669 r"""
6670 CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
6671 CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
6672 CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I
6673 """
6674 return _pcbnew.SHAPE_POLY_SET_CVertex(self, *args)
6675
6676 def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext):
6677 r"""GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool"""
6678 return _pcbnew.SHAPE_POLY_SET_GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
6679
6680 def IsPolygonSelfIntersecting(self, aPolygonIndex):
6681 r"""IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool"""
6682 return _pcbnew.SHAPE_POLY_SET_IsPolygonSelfIntersecting(self, aPolygonIndex)
6683
6685 r"""IsSelfIntersecting(SHAPE_POLY_SET self) -> bool"""
6686 return _pcbnew.SHAPE_POLY_SET_IsSelfIntersecting(self)
6687
6689 r"""TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int"""
6690 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolyCount(self)
6691
6692 def OutlineCount(self):
6693 r"""OutlineCount(SHAPE_POLY_SET self) -> int"""
6694 return _pcbnew.SHAPE_POLY_SET_OutlineCount(self)
6695
6696 def VertexCount(self, aOutline=-1, aHole=-1):
6697 r"""VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int"""
6698 return _pcbnew.SHAPE_POLY_SET_VertexCount(self, aOutline, aHole)
6699
6701 r"""FullPointCount(SHAPE_POLY_SET self) -> int"""
6702 return _pcbnew.SHAPE_POLY_SET_FullPointCount(self)
6703
6704 def HoleCount(self, aOutline):
6705 r"""HoleCount(SHAPE_POLY_SET self, int aOutline) -> int"""
6706 return _pcbnew.SHAPE_POLY_SET_HoleCount(self, aOutline)
6707
6708 def Outline(self, *args):
6709 r"""
6710 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6711 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6712 """
6713 return _pcbnew.SHAPE_POLY_SET_Outline(self, *args)
6714
6715 def Subset(self, aFirstPolygon, aLastPolygon):
6716 r"""Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET"""
6717 return _pcbnew.SHAPE_POLY_SET_Subset(self, aFirstPolygon, aLastPolygon)
6718
6719 def UnitSet(self, aPolygonIndex):
6720 r"""UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET"""
6721 return _pcbnew.SHAPE_POLY_SET_UnitSet(self, aPolygonIndex)
6722
6723 def Hole(self, aOutline, aHole):
6724 r"""Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6725 return _pcbnew.SHAPE_POLY_SET_Hole(self, aOutline, aHole)
6726
6727 def Polygon(self, *args):
6728 r"""
6729 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
6730 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &
6731 """
6732 return _pcbnew.SHAPE_POLY_SET_Polygon(self, *args)
6733
6734 def TriangulatedPolygon(self, aIndex):
6735 r"""TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *"""
6736 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolygon(self, aIndex)
6737
6738 def COutline(self, aIndex):
6739 r"""COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN"""
6740 return _pcbnew.SHAPE_POLY_SET_COutline(self, aIndex)
6741
6742 def CHole(self, aOutline, aHole):
6743 r"""CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6744 return _pcbnew.SHAPE_POLY_SET_CHole(self, aOutline, aHole)
6745
6746 def CPolygon(self, aIndex):
6747 r"""CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &"""
6748 return _pcbnew.SHAPE_POLY_SET_CPolygon(self, aIndex)
6749
6750 def Iterate(self, *args):
6751 r"""
6752 Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
6753 Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6754 Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6755 """
6756 return _pcbnew.SHAPE_POLY_SET_Iterate(self, *args)
6757
6758 def IterateWithHoles(self, *args):
6759 r"""
6760 IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6761 IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6762 """
6763 return _pcbnew.SHAPE_POLY_SET_IterateWithHoles(self, *args)
6764
6765 def CIterate(self, *args):
6766 r"""
6767 CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
6768 CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
6769 CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
6770 """
6771 return _pcbnew.SHAPE_POLY_SET_CIterate(self, *args)
6772
6773 def CIterateWithHoles(self, *args):
6774 r"""
6775 CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
6776 CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
6777 """
6778 return _pcbnew.SHAPE_POLY_SET_CIterateWithHoles(self, *args)
6779
6780 def IterateFromVertexWithHoles(self, aGlobalIdx):
6781 r"""IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR"""
6782 return _pcbnew.SHAPE_POLY_SET_IterateFromVertexWithHoles(self, aGlobalIdx)
6783
6784 def IterateSegments(self, *args):
6785 r"""
6786 IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6787 IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6788 IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6789 """
6790 return _pcbnew.SHAPE_POLY_SET_IterateSegments(self, *args)
6791
6792 def CIterateSegments(self, *args):
6793 r"""
6794 CIterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6795 CIterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6796 CIterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6797 """
6798 return _pcbnew.SHAPE_POLY_SET_CIterateSegments(self, *args)
6799
6801 r"""
6802 IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6803 IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6804 """
6805 return _pcbnew.SHAPE_POLY_SET_IterateSegmentsWithHoles(self, *args)
6806
6808 r"""
6809 CIterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6810 CIterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6811 """
6812 return _pcbnew.SHAPE_POLY_SET_CIterateSegmentsWithHoles(self, *args)
6813 PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
6814
6815 PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
6816
6817
6818 def BooleanAdd(self, *args):
6819 r"""
6820 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
6821 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
6822 """
6823 return _pcbnew.SHAPE_POLY_SET_BooleanAdd(self, *args)
6824
6825 def BooleanSubtract(self, *args):
6826 r"""
6827 BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
6828 BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
6829 """
6830 return _pcbnew.SHAPE_POLY_SET_BooleanSubtract(self, *args)
6831
6832 def BooleanIntersection(self, *args):
6833 r"""
6834 BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
6835 BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
6836 """
6837 return _pcbnew.SHAPE_POLY_SET_BooleanIntersection(self, *args)
6838 ALLOW_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ALLOW_ACUTE_CORNERS
6839
6840 CHAMFER_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ACUTE_CORNERS
6841
6842 ROUND_ACUTE_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ACUTE_CORNERS
6843
6844 CHAMFER_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_CHAMFER_ALL_CORNERS
6845
6846 ROUND_ALL_CORNERS = _pcbnew.SHAPE_POLY_SET_ROUND_ALL_CORNERS
6847
6848
6849 def Inflate(self, *args):
6850 r"""Inflate(SHAPE_POLY_SET self, int aAmount, int aCircleSegCount, SHAPE_POLY_SET::CORNER_STRATEGY aCornerStrategy=ROUND_ALL_CORNERS, bool aSimplify=False)"""
6851 return _pcbnew.SHAPE_POLY_SET_Inflate(self, *args)
6852
6853 def Deflate(self, *args):
6854 r"""Deflate(SHAPE_POLY_SET self, int aAmount, int aCircleSegmentsCount, SHAPE_POLY_SET::CORNER_STRATEGY aCornerStrategy=CHAMFER_ALL_CORNERS)"""
6855 return _pcbnew.SHAPE_POLY_SET_Deflate(self, *args)
6856
6857 def InflateWithLinkedHoles(self, aFactor, aCircleSegmentsCount, aFastMode):
6858 r"""InflateWithLinkedHoles(SHAPE_POLY_SET self, int aFactor, int aCircleSegmentsCount, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
6859 return _pcbnew.SHAPE_POLY_SET_InflateWithLinkedHoles(self, aFactor, aCircleSegmentsCount, aFastMode)
6860
6861 def Fracture(self, aFastMode):
6862 r"""Fracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
6863 return _pcbnew.SHAPE_POLY_SET_Fracture(self, aFastMode)
6864
6865 def Unfracture(self, aFastMode):
6866 r"""Unfracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
6867 return _pcbnew.SHAPE_POLY_SET_Unfracture(self, aFastMode)
6868
6869 def HasHoles(self):
6870 r"""HasHoles(SHAPE_POLY_SET self) -> bool"""
6871 return _pcbnew.SHAPE_POLY_SET_HasHoles(self)
6872
6874 r"""HasTouchingHoles(SHAPE_POLY_SET self) -> bool"""
6875 return _pcbnew.SHAPE_POLY_SET_HasTouchingHoles(self)
6876
6877 def Simplify(self, aFastMode):
6878 r"""Simplify(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
6879 return _pcbnew.SHAPE_POLY_SET_Simplify(self, aFastMode)
6880
6882 r"""NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int"""
6883 return _pcbnew.SHAPE_POLY_SET_NormalizeAreaOutlines(self)
6884
6885 def Format(self, aCplusPlus=True):
6886 r"""Format(SHAPE_POLY_SET self, bool aCplusPlus=True) -> string"""
6887 return _pcbnew.SHAPE_POLY_SET_Format(self, aCplusPlus)
6888
6889 def Mirror(self, *args):
6890 r"""Mirror(SHAPE_POLY_SET self, bool aX=True, bool aY=False, VECTOR2I aRef={ 0, 0 })"""
6891 return _pcbnew.SHAPE_POLY_SET_Mirror(self, *args)
6892
6893 def Rotate(self, *args):
6894 r"""Rotate(SHAPE_POLY_SET self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6895 return _pcbnew.SHAPE_POLY_SET_Rotate(self, *args)
6896
6897 def BBox(self, aClearance=0):
6898 r"""BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I"""
6899 return _pcbnew.SHAPE_POLY_SET_BBox(self, aClearance)
6900
6901 def PointOnEdge(self, aP):
6902 r"""PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP) -> bool"""
6903 return _pcbnew.SHAPE_POLY_SET_PointOnEdge(self, aP)
6904
6905 def Collide(self, *args):
6906 r"""
6907 Collide(SHAPE_POLY_SET self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6908 Collide(SHAPE_POLY_SET self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6909 Collide(SHAPE_POLY_SET self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6910 """
6911 return _pcbnew.SHAPE_POLY_SET_Collide(self, *args)
6912
6913 def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0):
6914 r"""CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
6915 return _pcbnew.SHAPE_POLY_SET_CollideVertex(self, aPoint, aClosestVertex, aClearance)
6916
6917 def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0):
6918 r"""CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
6919 return _pcbnew.SHAPE_POLY_SET_CollideEdge(self, aPoint, aClosestVertex, aClearance)
6920
6922 r"""BuildBBoxCaches(SHAPE_POLY_SET self)"""
6923 return _pcbnew.SHAPE_POLY_SET_BuildBBoxCaches(self)
6924
6926 r"""BBoxFromCaches(SHAPE_POLY_SET self) -> BOX2I"""
6927 return _pcbnew.SHAPE_POLY_SET_BBoxFromCaches(self)
6928
6929 def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False):
6930 r"""Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1, int aAccuracy=0, bool aUseBBoxCaches=False) -> bool"""
6931 return _pcbnew.SHAPE_POLY_SET_Contains(self, aP, aSubpolyIndex, aAccuracy, aUseBBoxCaches)
6932
6933 def IsEmpty(self):
6934 r"""IsEmpty(SHAPE_POLY_SET self) -> bool"""
6935 return _pcbnew.SHAPE_POLY_SET_IsEmpty(self)
6936
6937 def RemoveVertex(self, *args):
6938 r"""
6939 RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
6940 RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)
6941 """
6942 return _pcbnew.SHAPE_POLY_SET_RemoveVertex(self, *args)
6943
6945 r"""RemoveAllContours(SHAPE_POLY_SET self)"""
6946 return _pcbnew.SHAPE_POLY_SET_RemoveAllContours(self)
6947
6948 def RemoveContour(self, aContourIdx, aPolygonIdx=-1):
6949 r"""RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)"""
6950 return _pcbnew.SHAPE_POLY_SET_RemoveContour(self, aContourIdx, aPolygonIdx)
6951
6953 r"""RemoveNullSegments(SHAPE_POLY_SET self) -> int"""
6954 return _pcbnew.SHAPE_POLY_SET_RemoveNullSegments(self)
6955
6956 def SetVertex(self, *args):
6957 r"""
6958 SetVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX const & aIndex, VECTOR2I aPos)
6959 SetVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aPos)
6960 """
6961 return _pcbnew.SHAPE_POLY_SET_SetVertex(self, *args)
6962
6963 def TotalVertices(self):
6964 r"""TotalVertices(SHAPE_POLY_SET self) -> int"""
6965 return _pcbnew.SHAPE_POLY_SET_TotalVertices(self)
6966
6967 def DeletePolygon(self, aIdx):
6968 r"""DeletePolygon(SHAPE_POLY_SET self, int aIdx)"""
6969 return _pcbnew.SHAPE_POLY_SET_DeletePolygon(self, aIdx)
6970
6971 def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True):
6972 r"""DeletePolygonAndTriangulationData(SHAPE_POLY_SET self, int aIdx, bool aUpdateHash=True)"""
6973 return _pcbnew.SHAPE_POLY_SET_DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash)
6974
6976 r"""UpdateTriangulationDataHash(SHAPE_POLY_SET self)"""
6977 return _pcbnew.SHAPE_POLY_SET_UpdateTriangulationDataHash(self)
6978
6979 def ChamferPolygon(self, aDistance, aIndex):
6980 r"""ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
6981 return _pcbnew.SHAPE_POLY_SET_ChamferPolygon(self, aDistance, aIndex)
6982
6983 def FilletPolygon(self, aRadius, aErrorMax, aIndex):
6984 r"""FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
6985 return _pcbnew.SHAPE_POLY_SET_FilletPolygon(self, aRadius, aErrorMax, aIndex)
6986
6987 def Chamfer(self, aDistance):
6988 r"""Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET"""
6989 return _pcbnew.SHAPE_POLY_SET_Chamfer(self, aDistance)
6990
6991 def Fillet(self, aRadius, aErrorMax):
6992 r"""Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET"""
6993 return _pcbnew.SHAPE_POLY_SET_Fillet(self, aRadius, aErrorMax)
6994
6996 r"""
6997 SquaredDistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
6998 SquaredDistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
6999 """
7000 return _pcbnew.SHAPE_POLY_SET_SquaredDistanceToPolygon(self, *args)
7001
7002 def SquaredDistance(self, *args):
7003 r"""
7004 SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, VECTOR2I aNearest=None) -> SEG::ecoord
7005 SquaredDistance(SHAPE_POLY_SET self, SEG aSegment, VECTOR2I aNearest=None) -> SEG::ecoord
7006 """
7007 return _pcbnew.SHAPE_POLY_SET_SquaredDistance(self, *args)
7008
7009 def IsVertexInHole(self, aGlobalIdx):
7010 r"""IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool"""
7011 return _pcbnew.SHAPE_POLY_SET_IsVertexInHole(self, aGlobalIdx)
7012
7013 @staticmethod
7014 def BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False):
7015 r"""BuildPolysetFromOrientedPaths(std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const & aPaths, bool aReverseOrientation=False, bool aEvenOdd=False) -> SHAPE_POLY_SET"""
7016 return _pcbnew.SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation, aEvenOdd)
7017
7018# Register SHAPE_POLY_SET in _pcbnew:
7019_pcbnew.SHAPE_POLY_SET_swigregister(SHAPE_POLY_SET)
7020
7021def SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False):
7022 r"""SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const & aPaths, bool aReverseOrientation=False, bool aEvenOdd=False) -> SHAPE_POLY_SET"""
7023 return _pcbnew.SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation, aEvenOdd)
7024
7026 r"""Proxy of C++ SHAPE_RECT class."""
7027
7028 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7029 __repr__ = _swig_repr
7030
7031 def __init__(self, *args):
7032 r"""
7033 __init__(SHAPE_RECT self) -> SHAPE_RECT
7034 __init__(SHAPE_RECT self, BOX2I aBox) -> SHAPE_RECT
7035 __init__(SHAPE_RECT self, int aX0, int aY0, int aW, int aH) -> SHAPE_RECT
7036 __init__(SHAPE_RECT self, VECTOR2I aP0, int aW, int aH) -> SHAPE_RECT
7037 __init__(SHAPE_RECT self, SHAPE_RECT aOther) -> SHAPE_RECT
7038 """
7039 _pcbnew.SHAPE_RECT_swiginit(self, _pcbnew.new_SHAPE_RECT(*args))
7040
7041 def BBox(self, aClearance=0):
7042 r"""BBox(SHAPE_RECT self, int aClearance=0) -> BOX2I"""
7043 return _pcbnew.SHAPE_RECT_BBox(self, aClearance)
7044
7045 def Diagonal(self):
7046 r"""Diagonal(SHAPE_RECT self) -> int"""
7047 return _pcbnew.SHAPE_RECT_Diagonal(self)
7048
7049 def Collide(self, *args):
7050 r"""
7051 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
7052 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7053 Collide(SHAPE_RECT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7054 """
7055 return _pcbnew.SHAPE_RECT_Collide(self, *args)
7056
7057 def GetPosition(self):
7058 r"""GetPosition(SHAPE_RECT self) -> VECTOR2I"""
7059 return _pcbnew.SHAPE_RECT_GetPosition(self)
7060
7061 def GetSize(self):
7062 r"""GetSize(SHAPE_RECT self) -> VECTOR2I"""
7063 return _pcbnew.SHAPE_RECT_GetSize(self)
7064
7065 def GetWidth(self):
7066 r"""GetWidth(SHAPE_RECT self) -> int const"""
7067 return _pcbnew.SHAPE_RECT_GetWidth(self)
7068
7069 def GetHeight(self):
7070 r"""GetHeight(SHAPE_RECT self) -> int const"""
7071 return _pcbnew.SHAPE_RECT_GetHeight(self)
7072
7073 def Rotate(self, *args):
7074 r"""Rotate(SHAPE_RECT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7075 return _pcbnew.SHAPE_RECT_Rotate(self, *args)
7076
7077 def Outline(self):
7078 r"""Outline(SHAPE_RECT self) -> SHAPE_LINE_CHAIN"""
7079 return _pcbnew.SHAPE_RECT_Outline(self)
7080
7081 def Format(self, aCplusPlus=True):
7082 r"""Format(SHAPE_RECT self, bool aCplusPlus=True) -> string"""
7083 return _pcbnew.SHAPE_RECT_Format(self, aCplusPlus)
7084 __swig_destroy__ = _pcbnew.delete_SHAPE_RECT
7085
7086# Register SHAPE_RECT in _pcbnew:
7087_pcbnew.SHAPE_RECT_swigregister(SHAPE_RECT)
7088
7090 r"""Proxy of C++ SHAPE_SEGMENT class."""
7091
7092 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7093 __repr__ = _swig_repr
7094
7095 def __init__(self, *args):
7096 r"""
7097 __init__(SHAPE_SEGMENT self) -> SHAPE_SEGMENT
7098 __init__(SHAPE_SEGMENT self, VECTOR2I aA, VECTOR2I aB, int aWidth=0) -> SHAPE_SEGMENT
7099 __init__(SHAPE_SEGMENT self, SEG aSeg, int aWidth=0) -> SHAPE_SEGMENT
7100 """
7101 _pcbnew.SHAPE_SEGMENT_swiginit(self, _pcbnew.new_SHAPE_SEGMENT(*args))
7102 __swig_destroy__ = _pcbnew.delete_SHAPE_SEGMENT
7103
7104 def BBox(self, aClearance=0):
7105 r"""BBox(SHAPE_SEGMENT self, int aClearance=0) -> BOX2I"""
7106 return _pcbnew.SHAPE_SEGMENT_BBox(self, aClearance)
7107
7108 def Collide(self, *args):
7109 r"""
7110 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
7111 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7112 Collide(SHAPE_SEGMENT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7113 Collide(SHAPE_SEGMENT self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7114 """
7115 return _pcbnew.SHAPE_SEGMENT_Collide(self, *args)
7116
7117 def SetSeg(self, aSeg):
7118 r"""SetSeg(SHAPE_SEGMENT self, SEG aSeg)"""
7119 return _pcbnew.SHAPE_SEGMENT_SetSeg(self, aSeg)
7120
7121 def GetSeg(self):
7122 r"""GetSeg(SHAPE_SEGMENT self) -> SEG"""
7123 return _pcbnew.SHAPE_SEGMENT_GetSeg(self)
7124
7125 def SetWidth(self, aWidth):
7126 r"""SetWidth(SHAPE_SEGMENT self, int aWidth)"""
7127 return _pcbnew.SHAPE_SEGMENT_SetWidth(self, aWidth)
7128
7129 def GetWidth(self):
7130 r"""GetWidth(SHAPE_SEGMENT self) -> int"""
7131 return _pcbnew.SHAPE_SEGMENT_GetWidth(self)
7132
7133 def Rotate(self, *args):
7134 r"""Rotate(SHAPE_SEGMENT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7135 return _pcbnew.SHAPE_SEGMENT_Rotate(self, *args)
7136
7137 def Is45Degree(self, *args):
7138 r"""Is45Degree(SHAPE_SEGMENT self, EDA_ANGLE aTollerance=EDA_ANGLE( 1.0, DEGREES_T )) -> bool"""
7139 return _pcbnew.SHAPE_SEGMENT_Is45Degree(self, *args)
7140
7141 def Format(self, aCplusPlus=True):
7142 r"""Format(SHAPE_SEGMENT self, bool aCplusPlus=True) -> string"""
7143 return _pcbnew.SHAPE_SEGMENT_Format(self, aCplusPlus)
7144
7145# Register SHAPE_SEGMENT in _pcbnew:
7146_pcbnew.SHAPE_SEGMENT_swigregister(SHAPE_SEGMENT)
7147
7149 r"""Proxy of C++ SHAPE_SIMPLE class."""
7150
7151 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7152 __repr__ = _swig_repr
7153
7154 def __init__(self, *args):
7155 r"""
7156 __init__(SHAPE_SIMPLE self) -> SHAPE_SIMPLE
7157 __init__(SHAPE_SIMPLE self, SHAPE_LINE_CHAIN aPoly) -> SHAPE_SIMPLE
7158 __init__(SHAPE_SIMPLE self, SHAPE_SIMPLE aOther) -> SHAPE_SIMPLE
7159 """
7160 _pcbnew.SHAPE_SIMPLE_swiginit(self, _pcbnew.new_SHAPE_SIMPLE(*args))
7161
7162 def Clear(self):
7163 r"""Clear(SHAPE_SIMPLE self)"""
7164 return _pcbnew.SHAPE_SIMPLE_Clear(self)
7165
7166 def BBox(self, aClearance=0):
7167 r"""BBox(SHAPE_SIMPLE self, int aClearance=0) -> BOX2I"""
7168 return _pcbnew.SHAPE_SIMPLE_BBox(self, aClearance)
7169
7170 def PointCount(self):
7171 r"""PointCount(SHAPE_SIMPLE self) -> int"""
7172 return _pcbnew.SHAPE_SIMPLE_PointCount(self)
7173
7174 def CPoint(self, aIndex):
7175 r"""CPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2I"""
7176 return _pcbnew.SHAPE_SIMPLE_CPoint(self, aIndex)
7177
7178 def CDPoint(self, aIndex):
7179 r"""CDPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2D const"""
7180 return _pcbnew.SHAPE_SIMPLE_CDPoint(self, aIndex)
7181
7182 def Vertices(self):
7183 r"""Vertices(SHAPE_SIMPLE self) -> SHAPE_LINE_CHAIN"""
7184 return _pcbnew.SHAPE_SIMPLE_Vertices(self)
7185
7186 def Append(self, *args):
7187 r"""
7188 Append(SHAPE_SIMPLE self, int aX, int aY)
7189 Append(SHAPE_SIMPLE self, VECTOR2I aP)
7190 """
7191 return _pcbnew.SHAPE_SIMPLE_Append(self, *args)
7192
7193 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
7194 r"""Collide(SHAPE_SIMPLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
7195 return _pcbnew.SHAPE_SIMPLE_Collide(self, aSeg, aClearance, aActual, aLocation)
7196
7197 def Rotate(self, *args):
7198 r"""Rotate(SHAPE_SIMPLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7199 return _pcbnew.SHAPE_SIMPLE_Rotate(self, *args)
7200 __swig_destroy__ = _pcbnew.delete_SHAPE_SIMPLE
7201
7202# Register SHAPE_SIMPLE in _pcbnew:
7203_pcbnew.SHAPE_SIMPLE_swigregister(SHAPE_SIMPLE)
7204
7206 r"""Proxy of C++ std::vector< std::shared_ptr< SHAPE > > class."""
7207
7208 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7209 __repr__ = _swig_repr
7210
7211 def iterator(self):
7212 r"""iterator(VECTOR_SHAPEPTR self) -> SwigPyIterator"""
7213 return _pcbnew.VECTOR_SHAPEPTR_iterator(self)
7214 def __iter__(self):
7215 return self.iterator()
7216
7217 def __nonzero__(self):
7218 r"""__nonzero__(VECTOR_SHAPEPTR self) -> bool"""
7219 return _pcbnew.VECTOR_SHAPEPTR___nonzero__(self)
7220
7221 def __bool__(self):
7222 r"""__bool__(VECTOR_SHAPEPTR self) -> bool"""
7223 return _pcbnew.VECTOR_SHAPEPTR___bool__(self)
7224
7225 def __len__(self):
7226 r"""__len__(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7227 return _pcbnew.VECTOR_SHAPEPTR___len__(self)
7228
7229 def __getslice__(self, i, j):
7230 r"""__getslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j) -> VECTOR_SHAPEPTR"""
7231 return _pcbnew.VECTOR_SHAPEPTR___getslice__(self, i, j)
7232
7233 def __setslice__(self, *args):
7234 r"""
7235 __setslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)
7236 __setslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j, VECTOR_SHAPEPTR v)
7237 """
7238 return _pcbnew.VECTOR_SHAPEPTR___setslice__(self, *args)
7239
7240 def __delslice__(self, i, j):
7241 r"""__delslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)"""
7242 return _pcbnew.VECTOR_SHAPEPTR___delslice__(self, i, j)
7243
7244 def __delitem__(self, *args):
7245 r"""
7246 __delitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i)
7247 __delitem__(VECTOR_SHAPEPTR self, PySliceObject * slice)
7248 """
7249 return _pcbnew.VECTOR_SHAPEPTR___delitem__(self, *args)
7250
7251 def __getitem__(self, *args):
7252 r"""
7253 __getitem__(VECTOR_SHAPEPTR self, PySliceObject * slice) -> VECTOR_SHAPEPTR
7254 __getitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &
7255 """
7256 return _pcbnew.VECTOR_SHAPEPTR___getitem__(self, *args)
7257
7258 def __setitem__(self, *args):
7259 r"""
7260 __setitem__(VECTOR_SHAPEPTR self, PySliceObject * slice, VECTOR_SHAPEPTR v)
7261 __setitem__(VECTOR_SHAPEPTR self, PySliceObject * slice)
7262 __setitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7263 """
7264 return _pcbnew.VECTOR_SHAPEPTR___setitem__(self, *args)
7265
7266 def pop(self):
7267 r"""pop(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type"""
7268 return _pcbnew.VECTOR_SHAPEPTR_pop(self)
7269
7270 def append(self, x):
7271 r"""append(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7272 return _pcbnew.VECTOR_SHAPEPTR_append(self, x)
7273
7274 def empty(self):
7275 r"""empty(VECTOR_SHAPEPTR self) -> bool"""
7276 return _pcbnew.VECTOR_SHAPEPTR_empty(self)
7277
7278 def size(self):
7279 r"""size(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7280 return _pcbnew.VECTOR_SHAPEPTR_size(self)
7281
7282 def swap(self, v):
7283 r"""swap(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR v)"""
7284 return _pcbnew.VECTOR_SHAPEPTR_swap(self, v)
7285
7286 def begin(self):
7287 r"""begin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7288 return _pcbnew.VECTOR_SHAPEPTR_begin(self)
7289
7290 def end(self):
7291 r"""end(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7292 return _pcbnew.VECTOR_SHAPEPTR_end(self)
7293
7294 def rbegin(self):
7295 r"""rbegin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7296 return _pcbnew.VECTOR_SHAPEPTR_rbegin(self)
7297
7298 def rend(self):
7299 r"""rend(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7300 return _pcbnew.VECTOR_SHAPEPTR_rend(self)
7301
7302 def clear(self):
7303 r"""clear(VECTOR_SHAPEPTR self)"""
7304 return _pcbnew.VECTOR_SHAPEPTR_clear(self)
7305
7306 def get_allocator(self):
7307 r"""get_allocator(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::allocator_type"""
7308 return _pcbnew.VECTOR_SHAPEPTR_get_allocator(self)
7309
7310 def pop_back(self):
7311 r"""pop_back(VECTOR_SHAPEPTR self)"""
7312 return _pcbnew.VECTOR_SHAPEPTR_pop_back(self)
7313
7314 def erase(self, *args):
7315 r"""
7316 erase(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::iterator pos) -> std::vector< std::shared_ptr< SHAPE > >::iterator
7317 erase(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::iterator first, std::vector< std::shared_ptr< SHAPE > >::iterator last) -> std::vector< std::shared_ptr< SHAPE > >::iterator
7318 """
7319 return _pcbnew.VECTOR_SHAPEPTR_erase(self, *args)
7320
7321 def __init__(self, *args):
7322 r"""
7323 __init__(VECTOR_SHAPEPTR self) -> VECTOR_SHAPEPTR
7324 __init__(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR other) -> VECTOR_SHAPEPTR
7325 __init__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type size) -> VECTOR_SHAPEPTR
7326 __init__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type size, std::vector< std::shared_ptr< SHAPE > >::value_type const & value) -> VECTOR_SHAPEPTR
7327 """
7328 _pcbnew.VECTOR_SHAPEPTR_swiginit(self, _pcbnew.new_VECTOR_SHAPEPTR(*args))
7329
7330 def push_back(self, x):
7331 r"""push_back(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7332 return _pcbnew.VECTOR_SHAPEPTR_push_back(self, x)
7333
7334 def front(self):
7335 r"""front(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7336 return _pcbnew.VECTOR_SHAPEPTR_front(self)
7337
7338 def back(self):
7339 r"""back(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7340 return _pcbnew.VECTOR_SHAPEPTR_back(self)
7341
7342 def assign(self, n, x):
7343 r"""assign(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7344 return _pcbnew.VECTOR_SHAPEPTR_assign(self, n, x)
7345
7346 def resize(self, *args):
7347 r"""
7348 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size)
7349 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7350 """
7351 return _pcbnew.VECTOR_SHAPEPTR_resize(self, *args)
7352
7353 def insert(self, *args):
7354 r"""
7355 insert(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::iterator pos, std::vector< std::shared_ptr< SHAPE > >::value_type const & x) -> std::vector< std::shared_ptr< SHAPE > >::iterator
7356 insert(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::iterator pos, std::vector< std::shared_ptr< SHAPE > >::size_type n, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7357 """
7358 return _pcbnew.VECTOR_SHAPEPTR_insert(self, *args)
7359
7360 def reserve(self, n):
7361 r"""reserve(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n)"""
7362 return _pcbnew.VECTOR_SHAPEPTR_reserve(self, n)
7363
7364 def capacity(self):
7365 r"""capacity(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7366 return _pcbnew.VECTOR_SHAPEPTR_capacity(self)
7367
7368 def __iter__(self):
7369 it = self.iterator()
7370 try:
7371 while True:
7372 item = it.next() # throws StopIteration when iterator reached the end.
7373 yield item.Cast()
7374 except StopIteration:
7375 return
7376
7377 __swig_destroy__ = _pcbnew.delete_VECTOR_SHAPEPTR
7378
7379# Register VECTOR_SHAPEPTR in _pcbnew:
7380_pcbnew.VECTOR_SHAPEPTR_swigregister(VECTOR_SHAPEPTR)
7381
7382
7384 r"""Cast_to_SHAPE_ARC(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_ARC >"""
7385 return _pcbnew.Cast_to_SHAPE_ARC(_self)
7386
7388 r"""Cast_to_SHAPE_CIRCLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_CIRCLE >"""
7389 return _pcbnew.Cast_to_SHAPE_CIRCLE(_self)
7390
7392 r"""Cast_to_SHAPE_COMPOUND(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_COMPOUND >"""
7393 return _pcbnew.Cast_to_SHAPE_COMPOUND(_self)
7394
7396 r"""Cast_to_SHAPE_LINE_CHAIN(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_LINE_CHAIN >"""
7397 return _pcbnew.Cast_to_SHAPE_LINE_CHAIN(_self)
7398
7400 r"""Cast_to_SHAPE_POLY_SET(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_POLY_SET >"""
7401 return _pcbnew.Cast_to_SHAPE_POLY_SET(_self)
7402
7404 r"""Cast_to_SHAPE_RECT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_RECT >"""
7405 return _pcbnew.Cast_to_SHAPE_RECT(_self)
7406
7408 r"""Cast_to_SHAPE_SEGMENT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SEGMENT >"""
7409 return _pcbnew.Cast_to_SHAPE_SEGMENT(_self)
7410
7412 r"""Cast_to_SHAPE_SIMPLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SIMPLE >"""
7413 return _pcbnew.Cast_to_SHAPE_SIMPLE(_self)
7414
7415def IsUTF8(aString):
7416 r"""IsUTF8(char const * aString) -> bool"""
7417 return _pcbnew.IsUTF8(aString)
7419 r"""Proxy of C++ UTF8 class."""
7420
7421 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7422 __repr__ = _swig_repr
7423
7424 def __init__(self, *args):
7425 r"""
7426 __init__(UTF8 self, wxString o) -> UTF8
7427 __init__(UTF8 self, char const * txt) -> UTF8
7428 __init__(UTF8 self, wchar_t const * txt) -> UTF8
7429 __init__(UTF8 self, string o) -> UTF8
7430 __init__(UTF8 self) -> UTF8
7431 """
7432 _pcbnew.UTF8_swiginit(self, _pcbnew.new_UTF8(*args))
7433 __swig_destroy__ = _pcbnew.delete_UTF8
7434
7435 def c_str(self):
7436 r"""c_str(UTF8 self) -> char const *"""
7437 return _pcbnew.UTF8_c_str(self)
7438
7439 def empty(self):
7440 r"""empty(UTF8 self) -> bool"""
7441 return _pcbnew.UTF8_empty(self)
7442
7443 def find(self, *args):
7444 r"""
7445 find(UTF8 self, char c) -> std::string::size_type
7446 find(UTF8 self, char c, size_t s) -> std::string::size_type
7447 """
7448 return _pcbnew.UTF8_find(self, *args)
7449
7450 def clear(self):
7451 r"""clear(UTF8 self)"""
7452 return _pcbnew.UTF8_clear(self)
7453
7454 def length(self):
7455 r"""length(UTF8 self) -> std::string::size_type"""
7456 return _pcbnew.UTF8_length(self)
7457
7458 def size(self):
7459 r"""size(UTF8 self) -> std::string::size_type"""
7460 return _pcbnew.UTF8_size(self)
7461
7462 def compare(self, s):
7463 r"""compare(UTF8 self, string s) -> int"""
7464 return _pcbnew.UTF8_compare(self, s)
7465
7466 def __eq__(self, *args):
7467 r"""
7468 __eq__(UTF8 self, UTF8 rhs) -> bool
7469 __eq__(UTF8 self, string rhs) -> bool
7470 __eq__(UTF8 self, char const * s) -> bool
7471 """
7472 return _pcbnew.UTF8___eq__(self, *args)
7473
7474 def find_first_of(self, str, pos=0):
7475 r"""find_first_of(UTF8 self, string str, std::string::size_type pos=0) -> std::string::size_type"""
7476 return _pcbnew.UTF8_find_first_of(self, str, pos)
7477
7478 def __iadd__(self, *args):
7479 r"""
7480 __iadd__(UTF8 self, UTF8 str) -> UTF8
7481 __iadd__(UTF8 self, char ch) -> UTF8
7482 __iadd__(UTF8 self, char const * s) -> UTF8
7483 __iadd__(UTF8 self, unsigned int w_ch) -> UTF8
7484 """
7485 return _pcbnew.UTF8___iadd__(self, *args)
7486 npos = _pcbnew.UTF8_npos
7487
7488
7489 def substr(self, *args):
7490 r"""substr(UTF8 self, size_t pos=0, size_t len=npos) -> string"""
7491 return _pcbnew.UTF8_substr(self, *args)
7492
7494 r"""utf8_to_string(UTF8 self) -> string"""
7495 return _pcbnew.UTF8_utf8_to_string(self)
7496
7497 def wx_str(self):
7498 r"""wx_str(UTF8 self) -> wxString"""
7499 return _pcbnew.UTF8_wx_str(self)
7500
7502 r"""utf8_to_wxstring(UTF8 self) -> wxString"""
7503 return _pcbnew.UTF8_utf8_to_wxstring(self)
7504
7505 def begin(self):
7506 r"""begin(UTF8 self) -> std::string::const_iterator"""
7507 return _pcbnew.UTF8_begin(self)
7508
7509 def end(self):
7510 r"""end(UTF8 self) -> std::string::const_iterator"""
7511 return _pcbnew.UTF8_end(self)
7512
7513 def Cast_to_CChar(self):
7514 r"""Cast_to_CChar(UTF8 self) -> char const *"""
7515 return _pcbnew.UTF8_Cast_to_CChar(self)
7516
7517
7518 # Get the char buffer of the UTF8 string
7519 def GetChars(self):
7520 return self.Cast_to_CChar()
7521
7522 # Convert the UTF8 string to a python string
7523 # Same as GetChars(), but more easy to use in print command
7524 def __str__(self):
7525 return self.GetChars()
7526
7527
7528
7529# Register UTF8 in _pcbnew:
7530_pcbnew.UTF8_swigregister(UTF8)
7531
7533 r"""Proxy of C++ LIB_ID class."""
7534
7535 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7536 __repr__ = _swig_repr
7537
7538 def __init__(self, *args):
7539 r"""
7540 __init__(LIB_ID self) -> LIB_ID
7541 __init__(LIB_ID self, wxString aLibraryName, wxString aItemName) -> LIB_ID
7542 """
7543 _pcbnew.LIB_ID_swiginit(self, _pcbnew.new_LIB_ID(*args))
7544
7545 def Parse(self, aId, aFix=False):
7546 r"""Parse(LIB_ID self, UTF8 aId, bool aFix=False) -> int"""
7547 return _pcbnew.LIB_ID_Parse(self, aId, aFix)
7548
7550 r"""GetLibNickname(LIB_ID self) -> UTF8"""
7551 return _pcbnew.LIB_ID_GetLibNickname(self)
7552
7554 r"""GetUniStringLibNickname(LIB_ID self) -> wxString"""
7555 return _pcbnew.LIB_ID_GetUniStringLibNickname(self)
7556
7557 def SetLibNickname(self, aNickname):
7558 r"""SetLibNickname(LIB_ID self, UTF8 aNickname) -> int"""
7559 return _pcbnew.LIB_ID_SetLibNickname(self, aNickname)
7560
7562 r"""GetLibItemName(LIB_ID self) -> UTF8"""
7563 return _pcbnew.LIB_ID_GetLibItemName(self)
7564
7566 r"""GetUniStringLibItemName(LIB_ID self) -> wxString"""
7567 return _pcbnew.LIB_ID_GetUniStringLibItemName(self)
7568
7569 def SetLibItemName(self, aLibItemName):
7570 r"""SetLibItemName(LIB_ID self, UTF8 aLibItemName) -> int"""
7571 return _pcbnew.LIB_ID_SetLibItemName(self, aLibItemName)
7572
7574 r"""GetSubLibraryName(LIB_ID self) -> UTF8"""
7575 return _pcbnew.LIB_ID_GetSubLibraryName(self)
7576
7577 def SetSubLibraryName(self, aName):
7578 r"""SetSubLibraryName(LIB_ID self, UTF8 aName)"""
7579 return _pcbnew.LIB_ID_SetSubLibraryName(self, aName)
7580
7582 r"""GetUniStringSubLibraryName(LIB_ID self) -> wxString"""
7583 return _pcbnew.LIB_ID_GetUniStringSubLibraryName(self)
7584
7586 r"""GetFullLibraryName(LIB_ID self) -> wxString"""
7587 return _pcbnew.LIB_ID_GetFullLibraryName(self)
7588
7590 r"""GetUniStringLibId(LIB_ID self) -> wxString"""
7591 return _pcbnew.LIB_ID_GetUniStringLibId(self)
7592
7593 @staticmethod
7594 def Format(*args):
7595 r"""
7596 Format() -> UTF8
7597 Format(UTF8 aLibraryName, UTF8 aLibItemName) -> UTF8
7598 """
7599 return _pcbnew.LIB_ID_Format(*args)
7600
7601 def IsValid(self):
7602 r"""IsValid(LIB_ID self) -> bool"""
7603 return _pcbnew.LIB_ID_IsValid(self)
7604
7605 def IsLegacy(self):
7606 r"""IsLegacy(LIB_ID self) -> bool"""
7607 return _pcbnew.LIB_ID_IsLegacy(self)
7608
7609 def clear(self):
7610 r"""clear(LIB_ID self)"""
7611 return _pcbnew.LIB_ID_clear(self)
7612
7613 def empty(self):
7614 r"""empty(LIB_ID self) -> bool"""
7615 return _pcbnew.LIB_ID_empty(self)
7616
7617 def compare(self, aLibId):
7618 r"""compare(LIB_ID self, LIB_ID aLibId) -> int"""
7619 return _pcbnew.LIB_ID_compare(self, aLibId)
7620
7621 def __lt__(self, aLibId):
7622 r"""__lt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7623 return _pcbnew.LIB_ID___lt__(self, aLibId)
7624
7625 def __gt__(self, aLibId):
7626 r"""__gt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7627 return _pcbnew.LIB_ID___gt__(self, aLibId)
7628
7629 def __eq__(self, aLibId):
7630 r"""__eq__(LIB_ID self, LIB_ID aLibId) -> bool"""
7631 return _pcbnew.LIB_ID___eq__(self, aLibId)
7632
7633 def __ne__(self, aLibId):
7634 r"""__ne__(LIB_ID self, LIB_ID aLibId) -> bool"""
7635 return _pcbnew.LIB_ID___ne__(self, aLibId)
7636
7637 @staticmethod
7638 def HasIllegalChars(aLibItemName):
7639 r"""HasIllegalChars(UTF8 aLibItemName) -> int"""
7640 return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName)
7641
7642 @staticmethod
7643 def FixIllegalChars(aLibItemName, aLib):
7644 r"""FixIllegalChars(UTF8 aLibItemName, bool aLib) -> UTF8"""
7645 return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aLib)
7646
7647 @staticmethod
7649 r"""FindIllegalLibraryNameChar(UTF8 aLibraryName) -> unsigned int"""
7650 return _pcbnew.LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
7651 __swig_destroy__ = _pcbnew.delete_LIB_ID
7652
7653# Register LIB_ID in _pcbnew:
7654_pcbnew.LIB_ID_swigregister(LIB_ID)
7655
7656def LIB_ID_Format(*args):
7657 r"""
7658 LIB_ID_Format() -> UTF8
7659 LIB_ID_Format(UTF8 aLibraryName, UTF8 aLibItemName) -> UTF8
7660 """
7661 return _pcbnew.LIB_ID_Format(*args)
7662
7663def LIB_ID_HasIllegalChars(aLibItemName):
7664 r"""LIB_ID_HasIllegalChars(UTF8 aLibItemName) -> int"""
7665 return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName)
7666
7667def LIB_ID_FixIllegalChars(aLibItemName, aLib):
7668 r"""LIB_ID_FixIllegalChars(UTF8 aLibItemName, bool aLib) -> UTF8"""
7669 return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aLib)
7670
7672 r"""LIB_ID_FindIllegalLibraryNameChar(UTF8 aLibraryName) -> unsigned int"""
7673 return _pcbnew.LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
7674
7676 r"""Proxy of C++ BASE_SET class."""
7677
7678 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7679
7680 def __init__(self, *args, **kwargs):
7681 raise AttributeError("No constructor defined")
7682 __repr__ = _swig_repr
7683 __swig_destroy__ = _pcbnew.delete_BASE_SET
7684
7685# Register BASE_SET in _pcbnew:
7686_pcbnew.BASE_SET_swigregister(BASE_SET)
7687
7689 r"""Proxy of C++ IO_MGR class."""
7690
7691 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7692 __repr__ = _swig_repr
7693 LEGACY = _pcbnew.IO_MGR_LEGACY
7694
7695 KICAD_SEXP = _pcbnew.IO_MGR_KICAD_SEXP
7696
7697 EAGLE = _pcbnew.IO_MGR_EAGLE
7698
7699 PCAD = _pcbnew.IO_MGR_PCAD
7700
7701 FABMASTER = _pcbnew.IO_MGR_FABMASTER
7702
7703 ALTIUM_DESIGNER = _pcbnew.IO_MGR_ALTIUM_DESIGNER
7704
7705 ALTIUM_CIRCUIT_STUDIO = _pcbnew.IO_MGR_ALTIUM_CIRCUIT_STUDIO
7706
7707 ALTIUM_CIRCUIT_MAKER = _pcbnew.IO_MGR_ALTIUM_CIRCUIT_MAKER
7708
7709 CADSTAR_PCB_ARCHIVE = _pcbnew.IO_MGR_CADSTAR_PCB_ARCHIVE
7710
7711 GEDA_PCB = _pcbnew.IO_MGR_GEDA_PCB
7712
7713 FILE_TYPE_NONE = _pcbnew.IO_MGR_FILE_TYPE_NONE
7714
7715
7716 @staticmethod
7717 def PluginFind(aFileType):
7718 r"""PluginFind(IO_MGR::PCB_FILE_T aFileType) -> PLUGIN"""
7719 return _pcbnew.IO_MGR_PluginFind(aFileType)
7720
7721 @staticmethod
7722 def PluginRelease(aPlugin):
7723 r"""PluginRelease(PLUGIN aPlugin)"""
7724 return _pcbnew.IO_MGR_PluginRelease(aPlugin)
7725
7726 @staticmethod
7727 def ShowType(aFileType):
7728 r"""ShowType(IO_MGR::PCB_FILE_T aFileType) -> wxString"""
7729 return _pcbnew.IO_MGR_ShowType(aFileType)
7730
7731 @staticmethod
7732 def EnumFromStr(aFileType):
7733 r"""EnumFromStr(wxString aFileType) -> IO_MGR::PCB_FILE_T"""
7734 return _pcbnew.IO_MGR_EnumFromStr(aFileType)
7735
7736 @staticmethod
7737 def GetFileExtension(aFileType):
7738 r"""GetFileExtension(IO_MGR::PCB_FILE_T aFileType) -> wxString"""
7739 return _pcbnew.IO_MGR_GetFileExtension(aFileType)
7740
7741 @staticmethod
7743 r"""GuessPluginTypeFromLibPath(wxString aLibPath) -> IO_MGR::PCB_FILE_T"""
7744 return _pcbnew.IO_MGR_GuessPluginTypeFromLibPath(aLibPath)
7745
7746 @staticmethod
7747 def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None):
7748 r"""Load(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aAppendToMe=None, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None, PROGRESS_REPORTER * aProgressReporter=None) -> BOARD"""
7749 return _pcbnew.IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
7750
7751 @staticmethod
7752 def Save(aFileType, aFileName, aBoard, aProperties=None):
7753 r"""Save(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
7754 return _pcbnew.IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
7755
7756 def __init__(self):
7757 r"""__init__(IO_MGR self) -> IO_MGR"""
7758 _pcbnew.IO_MGR_swiginit(self, _pcbnew.new_IO_MGR())
7759 __swig_destroy__ = _pcbnew.delete_IO_MGR
7760
7761# Register IO_MGR in _pcbnew:
7762_pcbnew.IO_MGR_swigregister(IO_MGR)
7763
7764def IO_MGR_PluginFind(aFileType):
7765 r"""IO_MGR_PluginFind(IO_MGR::PCB_FILE_T aFileType) -> PLUGIN"""
7766 return _pcbnew.IO_MGR_PluginFind(aFileType)
7767
7769 r"""IO_MGR_PluginRelease(PLUGIN aPlugin)"""
7770 return _pcbnew.IO_MGR_PluginRelease(aPlugin)
7771
7772def IO_MGR_ShowType(aFileType):
7773 r"""IO_MGR_ShowType(IO_MGR::PCB_FILE_T aFileType) -> wxString"""
7774 return _pcbnew.IO_MGR_ShowType(aFileType)
7775
7776def IO_MGR_EnumFromStr(aFileType):
7777 r"""IO_MGR_EnumFromStr(wxString aFileType) -> IO_MGR::PCB_FILE_T"""
7778 return _pcbnew.IO_MGR_EnumFromStr(aFileType)
7779
7781 r"""IO_MGR_GetFileExtension(IO_MGR::PCB_FILE_T aFileType) -> wxString"""
7782 return _pcbnew.IO_MGR_GetFileExtension(aFileType)
7783
7785 r"""IO_MGR_GuessPluginTypeFromLibPath(wxString aLibPath) -> IO_MGR::PCB_FILE_T"""
7786 return _pcbnew.IO_MGR_GuessPluginTypeFromLibPath(aLibPath)
7787
7788def IO_MGR_Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None):
7789 r"""IO_MGR_Load(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aAppendToMe=None, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None, PROGRESS_REPORTER * aProgressReporter=None) -> BOARD"""
7790 return _pcbnew.IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
7791
7792def IO_MGR_Save(aFileType, aFileName, aBoard, aProperties=None):
7793 r"""IO_MGR_Save(IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
7794 return _pcbnew.IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
7795
7797 r"""Proxy of C++ PLUGIN class."""
7798
7799 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7800
7801 def __init__(self, *args, **kwargs):
7802 raise AttributeError("No constructor defined - class is abstract")
7803 __repr__ = _swig_repr
7804
7805 def PluginName(self):
7806 r"""PluginName(PLUGIN self) -> wxString"""
7807 return _pcbnew.PLUGIN_PluginName(self)
7808
7810 r"""GetFileExtension(PLUGIN self) -> wxString"""
7811 return _pcbnew.PLUGIN_GetFileExtension(self)
7812
7813 def SetQueryUserCallback(self, aCallback):
7814 r"""SetQueryUserCallback(PLUGIN self, std::function< bool (wxString,int,wxString,wxString) > aCallback)"""
7815 return _pcbnew.PLUGIN_SetQueryUserCallback(self, aCallback)
7816
7817 def Load(self, aFileName, aAppendToMe, aProperties=None, aProject=None, aProgressReporter=None):
7818 r"""Load(PLUGIN self, wxString aFileName, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None, PROGRESS_REPORTER * aProgressReporter=None) -> BOARD"""
7819 return _pcbnew.PLUGIN_Load(self, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
7820
7822 r"""GetImportedCachedLibraryFootprints(PLUGIN self) -> std::vector< FOOTPRINT *,std::allocator< FOOTPRINT * > >"""
7823 return _pcbnew.PLUGIN_GetImportedCachedLibraryFootprints(self)
7824
7825 def Save(self, aFileName, aBoard, aProperties=None):
7826 r"""Save(PLUGIN self, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
7827 return _pcbnew.PLUGIN_Save(self, aFileName, aBoard, aProperties)
7828
7829 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
7830 r"""FootprintEnumerate(PLUGIN self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, STRING_UTF8_MAP const * aProperties=None)"""
7831 return _pcbnew.PLUGIN_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
7832
7833 def GetLibraryTimestamp(self, aLibraryPath):
7834 r"""GetLibraryTimestamp(PLUGIN self, wxString aLibraryPath) -> long long"""
7835 return _pcbnew.PLUGIN_GetLibraryTimestamp(self, aLibraryPath)
7836
7837 def PrefetchLib(self, aLibraryPath, aProperties=None):
7838 r"""PrefetchLib(PLUGIN self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None)"""
7839 return _pcbnew.PLUGIN_PrefetchLib(self, aLibraryPath, aProperties)
7840
7841 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
7842 r"""FootprintLoad(PLUGIN self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
7843 return _pcbnew.PLUGIN_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
7844
7845 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
7846 r"""GetEnumeratedFootprint(PLUGIN self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
7847 return _pcbnew.PLUGIN_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
7848
7849 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
7850 r"""FootprintExists(PLUGIN self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> bool"""
7851 return _pcbnew.PLUGIN_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
7852
7853 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
7854 r"""FootprintSave(PLUGIN self, wxString aLibraryPath, FOOTPRINT aFootprint, STRING_UTF8_MAP const * aProperties=None)"""
7855 return _pcbnew.PLUGIN_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
7856
7857 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
7858 r"""FootprintDelete(PLUGIN self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None)"""
7859 return _pcbnew.PLUGIN_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
7860
7861 def FootprintLibCreate(self, aLibraryPath, aProperties=None):
7862 r"""FootprintLibCreate(PLUGIN self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None)"""
7863 return _pcbnew.PLUGIN_FootprintLibCreate(self, aLibraryPath, aProperties)
7864
7865 def FootprintLibDelete(self, aLibraryPath, aProperties=None):
7866 r"""FootprintLibDelete(PLUGIN self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None) -> bool"""
7867 return _pcbnew.PLUGIN_FootprintLibDelete(self, aLibraryPath, aProperties)
7868
7869 def IsFootprintLibWritable(self, aLibraryPath):
7870 r"""IsFootprintLibWritable(PLUGIN self, wxString aLibraryPath) -> bool"""
7871 return _pcbnew.PLUGIN_IsFootprintLibWritable(self, aLibraryPath)
7872
7873 def FootprintLibOptions(self, aListToAppendTo):
7874 r"""FootprintLibOptions(PLUGIN self, STRING_UTF8_MAP * aListToAppendTo)"""
7875 return _pcbnew.PLUGIN_FootprintLibOptions(self, aListToAppendTo)
7876 __swig_destroy__ = _pcbnew.delete_PLUGIN
7877
7878 def footprintPyEnumerate(self, aLibraryPath, aExitOnError):
7879 r"""footprintPyEnumerate(PLUGIN self, wxString aLibraryPath, bool aExitOnError) -> wxArrayString"""
7880 return _pcbnew.PLUGIN_footprintPyEnumerate(self, aLibraryPath, aExitOnError)
7881
7882 def FootprintEnumerate(self, libname):
7883 return self.footprintPyEnumerate( libname, True )
7884
7885
7886# Register PLUGIN in _pcbnew:
7887_pcbnew.PLUGIN_swigregister(PLUGIN)
7888
7889SEXPR_BOARD_FILE_VERSION = _pcbnew.SEXPR_BOARD_FILE_VERSION
7890
7891BOARD_FILE_HOST_VERSION = _pcbnew.BOARD_FILE_HOST_VERSION
7892
7893LEGACY_ARC_FORMATTING = _pcbnew.LEGACY_ARC_FORMATTING
7894
7895LEGACY_NET_TIES = _pcbnew.LEGACY_NET_TIES
7896
7897CTL_OMIT_PAD_NETS = _pcbnew.CTL_OMIT_PAD_NETS
7898
7899CTL_OMIT_TSTAMPS = _pcbnew.CTL_OMIT_TSTAMPS
7900
7901CTL_OMIT_INITIAL_COMMENTS = _pcbnew.CTL_OMIT_INITIAL_COMMENTS
7902
7903CTL_OMIT_PATH = _pcbnew.CTL_OMIT_PATH
7904
7905CTL_OMIT_AT = _pcbnew.CTL_OMIT_AT
7906
7907CTL_OMIT_LIBNAME = _pcbnew.CTL_OMIT_LIBNAME
7908
7909CTL_OMIT_FOOTPRINT_VERSION = _pcbnew.CTL_OMIT_FOOTPRINT_VERSION
7910
7911CTL_FOR_CLIPBOARD = _pcbnew.CTL_FOR_CLIPBOARD
7912
7913CTL_FOR_LIBRARY = _pcbnew.CTL_FOR_LIBRARY
7914
7915CTL_FOR_BOARD = _pcbnew.CTL_FOR_BOARD
7916
7918 r"""Proxy of C++ FP_CACHE_ITEM class."""
7919
7920 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7921 __repr__ = _swig_repr
7922
7923 def __init__(self, aFootprint, aFileName):
7924 r"""__init__(FP_CACHE_ITEM self, FOOTPRINT aFootprint, WX_FILENAME const & aFileName) -> FP_CACHE_ITEM"""
7925 _pcbnew.FP_CACHE_ITEM_swiginit(self, _pcbnew.new_FP_CACHE_ITEM(aFootprint, aFileName))
7926
7927 def GetFileName(self):
7928 r"""GetFileName(FP_CACHE_ITEM self) -> WX_FILENAME const &"""
7929 return _pcbnew.FP_CACHE_ITEM_GetFileName(self)
7930
7931 def SetFilePath(self, aFilePath):
7932 r"""SetFilePath(FP_CACHE_ITEM self, wxString aFilePath)"""
7933 return _pcbnew.FP_CACHE_ITEM_SetFilePath(self, aFilePath)
7934
7935 def GetFootprint(self):
7936 r"""GetFootprint(FP_CACHE_ITEM self) -> FOOTPRINT"""
7937 return _pcbnew.FP_CACHE_ITEM_GetFootprint(self)
7938 __swig_destroy__ = _pcbnew.delete_FP_CACHE_ITEM
7939
7940# Register FP_CACHE_ITEM in _pcbnew:
7941_pcbnew.FP_CACHE_ITEM_swigregister(FP_CACHE_ITEM)
7942
7944 r"""Proxy of C++ FP_CACHE class."""
7945
7946 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7947 __repr__ = _swig_repr
7948
7949 def __init__(self, aOwner, aLibraryPath):
7950 r"""__init__(FP_CACHE self, PCB_PLUGIN aOwner, wxString aLibraryPath) -> FP_CACHE"""
7951 _pcbnew.FP_CACHE_swiginit(self, _pcbnew.new_FP_CACHE(aOwner, aLibraryPath))
7952
7953 def GetPath(self):
7954 r"""GetPath(FP_CACHE self) -> wxString"""
7955 return _pcbnew.FP_CACHE_GetPath(self)
7956
7957 def IsWritable(self):
7958 r"""IsWritable(FP_CACHE self) -> bool"""
7959 return _pcbnew.FP_CACHE_IsWritable(self)
7960
7961 def Exists(self):
7962 r"""Exists(FP_CACHE self) -> bool"""
7963 return _pcbnew.FP_CACHE_Exists(self)
7964
7965 def GetFootprints(self):
7966 r"""GetFootprints(FP_CACHE self) -> FP_CACHE_FOOTPRINT_MAP &"""
7967 return _pcbnew.FP_CACHE_GetFootprints(self)
7968
7969 def Save(self, aFootprint=None):
7970 r"""Save(FP_CACHE self, FOOTPRINT aFootprint=None)"""
7971 return _pcbnew.FP_CACHE_Save(self, aFootprint)
7972
7973 def Load(self):
7974 r"""Load(FP_CACHE self)"""
7975 return _pcbnew.FP_CACHE_Load(self)
7976
7977 def Remove(self, aFootprintName):
7978 r"""Remove(FP_CACHE self, wxString aFootprintName)"""
7979 return _pcbnew.FP_CACHE_Remove(self, aFootprintName)
7980
7981 @staticmethod
7982 def GetTimestamp(aLibPath):
7983 r"""GetTimestamp(wxString aLibPath) -> long long"""
7984 return _pcbnew.FP_CACHE_GetTimestamp(aLibPath)
7985
7986 def IsModified(self):
7987 r"""IsModified(FP_CACHE self) -> bool"""
7988 return _pcbnew.FP_CACHE_IsModified(self)
7989
7990 def IsPath(self, aPath):
7991 r"""IsPath(FP_CACHE self, wxString aPath) -> bool"""
7992 return _pcbnew.FP_CACHE_IsPath(self, aPath)
7993
7994 def SetPath(self, aPath):
7995 r"""SetPath(FP_CACHE self, wxString aPath)"""
7996 return _pcbnew.FP_CACHE_SetPath(self, aPath)
7997 __swig_destroy__ = _pcbnew.delete_FP_CACHE
7998
7999# Register FP_CACHE in _pcbnew:
8000_pcbnew.FP_CACHE_swigregister(FP_CACHE)
8001
8003 r"""FP_CACHE_GetTimestamp(wxString aLibPath) -> long long"""
8004 return _pcbnew.FP_CACHE_GetTimestamp(aLibPath)
8005
8007 r"""Proxy of C++ PCB_PLUGIN class."""
8008
8009 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8010 __repr__ = _swig_repr
8011
8012 def Save(self, aFileName, aBoard, aProperties=None):
8013 r"""Save(PCB_PLUGIN self, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
8014 return _pcbnew.PCB_PLUGIN_Save(self, aFileName, aBoard, aProperties)
8015
8016 def Load(self, aFileName, aAppendToMe, aProperties=None, aProject=None, aProgressReporter=None):
8017 r"""Load(PCB_PLUGIN self, wxString aFileName, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None, PROGRESS_REPORTER * aProgressReporter=None) -> BOARD"""
8018 return _pcbnew.PCB_PLUGIN_Load(self, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
8019
8020 def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount):
8021 r"""DoLoad(PCB_PLUGIN self, LINE_READER aReader, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties, PROGRESS_REPORTER * aProgressReporter, unsigned int aLineCount) -> BOARD"""
8022 return _pcbnew.PCB_PLUGIN_DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
8023
8024 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
8025 r"""FootprintEnumerate(PCB_PLUGIN self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, STRING_UTF8_MAP const * aProperties=None)"""
8026 return _pcbnew.PCB_PLUGIN_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
8027
8028 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
8029 r"""GetEnumeratedFootprint(PCB_PLUGIN self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8030 return _pcbnew.PCB_PLUGIN_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
8031
8032 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
8033 r"""FootprintExists(PCB_PLUGIN self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> bool"""
8034 return _pcbnew.PCB_PLUGIN_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
8035
8036 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
8037 r"""FootprintLoad(PCB_PLUGIN self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8038 return _pcbnew.PCB_PLUGIN_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
8039
8040 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
8041 r"""FootprintSave(PCB_PLUGIN self, wxString aLibraryPath, FOOTPRINT aFootprint, STRING_UTF8_MAP const * aProperties=None)"""
8042 return _pcbnew.PCB_PLUGIN_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
8043
8044 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
8045 r"""FootprintDelete(PCB_PLUGIN self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None)"""
8046 return _pcbnew.PCB_PLUGIN_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
8047
8048 def FootprintLibCreate(self, aLibraryPath, aProperties=None):
8049 r"""FootprintLibCreate(PCB_PLUGIN self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None)"""
8050 return _pcbnew.PCB_PLUGIN_FootprintLibCreate(self, aLibraryPath, aProperties)
8051
8052 def FootprintLibDelete(self, aLibraryPath, aProperties=None):
8053 r"""FootprintLibDelete(PCB_PLUGIN self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None) -> bool"""
8054 return _pcbnew.PCB_PLUGIN_FootprintLibDelete(self, aLibraryPath, aProperties)
8055
8056 def __init__(self, *args):
8057 r"""__init__(PCB_PLUGIN self, int aControlFlags=((1 << 3)|(1 << 8))) -> PCB_PLUGIN"""
8058 _pcbnew.PCB_PLUGIN_swiginit(self, _pcbnew.new_PCB_PLUGIN(*args))
8059 __swig_destroy__ = _pcbnew.delete_PCB_PLUGIN
8060
8061 def Format(self, aItem, aNestLevel=0):
8062 r"""Format(PCB_PLUGIN self, BOARD_ITEM aItem, int aNestLevel=0)"""
8063 return _pcbnew.PCB_PLUGIN_Format(self, aItem, aNestLevel)
8064
8065 def GetStringOutput(self, doClear):
8066 r"""GetStringOutput(PCB_PLUGIN self, bool doClear) -> string"""
8067 return _pcbnew.PCB_PLUGIN_GetStringOutput(self, doClear)
8068
8069 def SetOutputFormatter(self, aFormatter):
8070 r"""SetOutputFormatter(PCB_PLUGIN self, OUTPUTFORMATTER aFormatter)"""
8071 return _pcbnew.PCB_PLUGIN_SetOutputFormatter(self, aFormatter)
8072
8073 def Parse(self, aClipboardSourceInput):
8074 r"""Parse(PCB_PLUGIN self, wxString aClipboardSourceInput) -> BOARD_ITEM"""
8075 return _pcbnew.PCB_PLUGIN_Parse(self, aClipboardSourceInput)
8076
8077# Register PCB_PLUGIN in _pcbnew:
8078_pcbnew.PCB_PLUGIN_swigregister(PCB_PLUGIN)
8079
8081 r"""Proxy of C++ PLOT_CONTROLLER class."""
8082
8083 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8084 __repr__ = _swig_repr
8085
8086 def __init__(self, aBoard):
8087 r"""__init__(PLOT_CONTROLLER self, BOARD aBoard) -> PLOT_CONTROLLER"""
8088 _pcbnew.PLOT_CONTROLLER_swiginit(self, _pcbnew.new_PLOT_CONTROLLER(aBoard))
8089 __swig_destroy__ = _pcbnew.delete_PLOT_CONTROLLER
8090
8092 r"""GetPlotOptions(PLOT_CONTROLLER self) -> PCB_PLOT_PARAMS"""
8093 return _pcbnew.PLOT_CONTROLLER_GetPlotOptions(self)
8094
8095 def SetLayer(self, aLayer):
8096 r"""SetLayer(PLOT_CONTROLLER self, int aLayer)"""
8097 return _pcbnew.PLOT_CONTROLLER_SetLayer(self, aLayer)
8098
8099 def GetLayer(self):
8100 r"""GetLayer(PLOT_CONTROLLER self) -> int"""
8101 return _pcbnew.PLOT_CONTROLLER_GetLayer(self)
8102
8103 def IsPlotOpen(self):
8104 r"""IsPlotOpen(PLOT_CONTROLLER self) -> bool"""
8105 return _pcbnew.PLOT_CONTROLLER_IsPlotOpen(self)
8106
8107 def ClosePlot(self):
8108 r"""ClosePlot(PLOT_CONTROLLER self)"""
8109 return _pcbnew.PLOT_CONTROLLER_ClosePlot(self)
8110
8111 def OpenPlotfile(self, *args):
8112 r"""OpenPlotfile(PLOT_CONTROLLER self, wxString aSuffix, PLOT_FORMAT aFormat, wxString aSheetName=wxEmptyString, wxString aSheetPath=wxEmptyString) -> bool"""
8113 return _pcbnew.PLOT_CONTROLLER_OpenPlotfile(self, *args)
8114
8115 def PlotLayer(self):
8116 r"""PlotLayer(PLOT_CONTROLLER self) -> bool"""
8117 return _pcbnew.PLOT_CONTROLLER_PlotLayer(self)
8118
8119 def PlotLayers(self, aLayerSequence):
8120 r"""PlotLayers(PLOT_CONTROLLER self, LSEQ aLayerSequence) -> bool"""
8121 return _pcbnew.PLOT_CONTROLLER_PlotLayers(self, aLayerSequence)
8122
8124 r"""GetPlotFileName(PLOT_CONTROLLER self) -> wxString"""
8125 return _pcbnew.PLOT_CONTROLLER_GetPlotFileName(self)
8126
8128 r"""GetPlotDirName(PLOT_CONTROLLER self) -> wxString"""
8129 return _pcbnew.PLOT_CONTROLLER_GetPlotDirName(self)
8130
8131 def SetColorMode(self, aColorMode):
8132 r"""SetColorMode(PLOT_CONTROLLER self, bool aColorMode)"""
8133 return _pcbnew.PLOT_CONTROLLER_SetColorMode(self, aColorMode)
8134
8135 def GetColorMode(self):
8136 r"""GetColorMode(PLOT_CONTROLLER self) -> bool"""
8137 return _pcbnew.PLOT_CONTROLLER_GetColorMode(self)
8138
8139 def GetPlotter(self):
8140 r"""GetPlotter(PLOT_CONTROLLER self) -> PLOTTER"""
8141 return _pcbnew.PLOT_CONTROLLER_GetPlotter(self)
8142
8143# Register PLOT_CONTROLLER in _pcbnew:
8144_pcbnew.PLOT_CONTROLLER_swigregister(PLOT_CONTROLLER)
8145
8146DRILL_MARKS_NO_DRILL_SHAPE = _pcbnew.DRILL_MARKS_NO_DRILL_SHAPE
8147
8148DRILL_MARKS_SMALL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_SMALL_DRILL_SHAPE
8149
8150DRILL_MARKS_FULL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_FULL_DRILL_SHAPE
8151
8153 r"""Proxy of C++ PCB_PLOT_PARAMS class."""
8154
8155 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8156 __repr__ = _swig_repr
8157
8158 def __init__(self):
8159 r"""__init__(PCB_PLOT_PARAMS self) -> PCB_PLOT_PARAMS"""
8160 _pcbnew.PCB_PLOT_PARAMS_swiginit(self, _pcbnew.new_PCB_PLOT_PARAMS())
8161
8162 def SetSkipPlotNPTH_Pads(self, aSkip):
8163 r"""SetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self, bool aSkip)"""
8164 return _pcbnew.PCB_PLOT_PARAMS_SetSkipPlotNPTH_Pads(self, aSkip)
8165
8167 r"""GetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self) -> bool"""
8168 return _pcbnew.PCB_PLOT_PARAMS_GetSkipPlotNPTH_Pads(self)
8169
8170 def Format(self, aFormatter, aNestLevel, aControl=0):
8171 r"""Format(PCB_PLOT_PARAMS self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControl=0)"""
8172 return _pcbnew.PCB_PLOT_PARAMS_Format(self, aFormatter, aNestLevel, aControl)
8173
8174 def Parse(self, aParser):
8175 r"""Parse(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS_PARSER * aParser)"""
8176 return _pcbnew.PCB_PLOT_PARAMS_Parse(self, aParser)
8177
8178 def IsSameAs(self, aPcbPlotParams):
8179 r"""IsSameAs(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS aPcbPlotParams) -> bool"""
8180 return _pcbnew.PCB_PLOT_PARAMS_IsSameAs(self, aPcbPlotParams)
8181
8182 def SetColorSettings(self, aSettings):
8183 r"""SetColorSettings(PCB_PLOT_PARAMS self, COLOR_SETTINGS * aSettings)"""
8184 return _pcbnew.PCB_PLOT_PARAMS_SetColorSettings(self, aSettings)
8185
8186 def ColorSettings(self):
8187 r"""ColorSettings(PCB_PLOT_PARAMS self) -> COLOR_SETTINGS *"""
8188 return _pcbnew.PCB_PLOT_PARAMS_ColorSettings(self)
8189
8190 def SetTextMode(self, aVal):
8191 r"""SetTextMode(PCB_PLOT_PARAMS self, PLOT_TEXT_MODE aVal)"""
8192 return _pcbnew.PCB_PLOT_PARAMS_SetTextMode(self, aVal)
8193
8194 def GetTextMode(self):
8195 r"""GetTextMode(PCB_PLOT_PARAMS self) -> PLOT_TEXT_MODE"""
8196 return _pcbnew.PCB_PLOT_PARAMS_GetTextMode(self)
8197
8198 def SetPlotMode(self, aPlotMode):
8199 r"""SetPlotMode(PCB_PLOT_PARAMS self, OUTLINE_MODE aPlotMode)"""
8200 return _pcbnew.PCB_PLOT_PARAMS_SetPlotMode(self, aPlotMode)
8201
8202 def GetPlotMode(self):
8203 r"""GetPlotMode(PCB_PLOT_PARAMS self) -> OUTLINE_MODE"""
8204 return _pcbnew.PCB_PLOT_PARAMS_GetPlotMode(self)
8205
8206 def SetDXFPlotPolygonMode(self, aFlag):
8207 r"""SetDXFPlotPolygonMode(PCB_PLOT_PARAMS self, bool aFlag)"""
8208 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotPolygonMode(self, aFlag)
8209
8211 r"""GetDXFPlotPolygonMode(PCB_PLOT_PARAMS self) -> bool"""
8212 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotPolygonMode(self)
8213
8214 def SetDXFPlotUnits(self, aUnit):
8215 r"""SetDXFPlotUnits(PCB_PLOT_PARAMS self, DXF_UNITS aUnit)"""
8216 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotUnits(self, aUnit)
8217
8219 r"""GetDXFPlotUnits(PCB_PLOT_PARAMS self) -> DXF_UNITS"""
8220 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotUnits(self)
8221
8222 def SetDrillMarksType(self, aVal):
8223 r"""SetDrillMarksType(PCB_PLOT_PARAMS self, DRILL_MARKS aVal)"""
8224 return _pcbnew.PCB_PLOT_PARAMS_SetDrillMarksType(self, aVal)
8225
8227 r"""GetDrillMarksType(PCB_PLOT_PARAMS self) -> DRILL_MARKS"""
8228 return _pcbnew.PCB_PLOT_PARAMS_GetDrillMarksType(self)
8229
8230 def SetScale(self, aVal):
8231 r"""SetScale(PCB_PLOT_PARAMS self, double aVal)"""
8232 return _pcbnew.PCB_PLOT_PARAMS_SetScale(self, aVal)
8233
8234 def GetScale(self):
8235 r"""GetScale(PCB_PLOT_PARAMS self) -> double"""
8236 return _pcbnew.PCB_PLOT_PARAMS_GetScale(self)
8237
8238 def SetFineScaleAdjustX(self, aVal):
8239 r"""SetFineScaleAdjustX(PCB_PLOT_PARAMS self, double aVal)"""
8240 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustX(self, aVal)
8241
8243 r"""GetFineScaleAdjustX(PCB_PLOT_PARAMS self) -> double"""
8244 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustX(self)
8245
8246 def SetFineScaleAdjustY(self, aVal):
8247 r"""SetFineScaleAdjustY(PCB_PLOT_PARAMS self, double aVal)"""
8248 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustY(self, aVal)
8249
8251 r"""GetFineScaleAdjustY(PCB_PLOT_PARAMS self) -> double"""
8252 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustY(self)
8253
8254 def SetWidthAdjust(self, aVal):
8255 r"""SetWidthAdjust(PCB_PLOT_PARAMS self, int aVal)"""
8256 return _pcbnew.PCB_PLOT_PARAMS_SetWidthAdjust(self, aVal)
8257
8259 r"""GetWidthAdjust(PCB_PLOT_PARAMS self) -> int"""
8260 return _pcbnew.PCB_PLOT_PARAMS_GetWidthAdjust(self)
8261
8262 def SetAutoScale(self, aFlag):
8263 r"""SetAutoScale(PCB_PLOT_PARAMS self, bool aFlag)"""
8264 return _pcbnew.PCB_PLOT_PARAMS_SetAutoScale(self, aFlag)
8265
8266 def GetAutoScale(self):
8267 r"""GetAutoScale(PCB_PLOT_PARAMS self) -> bool"""
8268 return _pcbnew.PCB_PLOT_PARAMS_GetAutoScale(self)
8269
8270 def SetMirror(self, aFlag):
8271 r"""SetMirror(PCB_PLOT_PARAMS self, bool aFlag)"""
8272 return _pcbnew.PCB_PLOT_PARAMS_SetMirror(self, aFlag)
8273
8274 def GetMirror(self):
8275 r"""GetMirror(PCB_PLOT_PARAMS self) -> bool"""
8276 return _pcbnew.PCB_PLOT_PARAMS_GetMirror(self)
8277
8279 r"""SetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8280 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadsOnFabLayers(self, aFlag)
8281
8283 r"""GetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8284 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadsOnFabLayers(self)
8285
8286 def SetSketchPadLineWidth(self, aWidth):
8287 r"""SetSketchPadLineWidth(PCB_PLOT_PARAMS self, int aWidth)"""
8288 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadLineWidth(self, aWidth)
8289
8291 r"""GetSketchPadLineWidth(PCB_PLOT_PARAMS self) -> int"""
8292 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadLineWidth(self)
8293
8294 def SetPlotInvisibleText(self, aFlag):
8295 r"""SetPlotInvisibleText(PCB_PLOT_PARAMS self, bool aFlag)"""
8296 return _pcbnew.PCB_PLOT_PARAMS_SetPlotInvisibleText(self, aFlag)
8297
8299 r"""GetPlotInvisibleText(PCB_PLOT_PARAMS self) -> bool"""
8300 return _pcbnew.PCB_PLOT_PARAMS_GetPlotInvisibleText(self)
8301
8302 def SetPlotValue(self, aFlag):
8303 r"""SetPlotValue(PCB_PLOT_PARAMS self, bool aFlag)"""
8304 return _pcbnew.PCB_PLOT_PARAMS_SetPlotValue(self, aFlag)
8305
8306 def GetPlotValue(self):
8307 r"""GetPlotValue(PCB_PLOT_PARAMS self) -> bool"""
8308 return _pcbnew.PCB_PLOT_PARAMS_GetPlotValue(self)
8309
8310 def SetPlotReference(self, aFlag):
8311 r"""SetPlotReference(PCB_PLOT_PARAMS self, bool aFlag)"""
8312 return _pcbnew.PCB_PLOT_PARAMS_SetPlotReference(self, aFlag)
8313
8315 r"""GetPlotReference(PCB_PLOT_PARAMS self) -> bool"""
8316 return _pcbnew.PCB_PLOT_PARAMS_GetPlotReference(self)
8317
8318 def SetNegative(self, aFlag):
8319 r"""SetNegative(PCB_PLOT_PARAMS self, bool aFlag)"""
8320 return _pcbnew.PCB_PLOT_PARAMS_SetNegative(self, aFlag)
8321
8322 def GetNegative(self):
8323 r"""GetNegative(PCB_PLOT_PARAMS self) -> bool"""
8324 return _pcbnew.PCB_PLOT_PARAMS_GetNegative(self)
8325
8326 def SetPlotViaOnMaskLayer(self, aFlag):
8327 r"""SetPlotViaOnMaskLayer(PCB_PLOT_PARAMS self, bool aFlag)"""
8328 return _pcbnew.PCB_PLOT_PARAMS_SetPlotViaOnMaskLayer(self, aFlag)
8329
8331 r"""GetPlotViaOnMaskLayer(PCB_PLOT_PARAMS self) -> bool"""
8332 return _pcbnew.PCB_PLOT_PARAMS_GetPlotViaOnMaskLayer(self)
8333
8334 def SetPlotFrameRef(self, aFlag):
8335 r"""SetPlotFrameRef(PCB_PLOT_PARAMS self, bool aFlag)"""
8336 return _pcbnew.PCB_PLOT_PARAMS_SetPlotFrameRef(self, aFlag)
8337
8339 r"""GetPlotFrameRef(PCB_PLOT_PARAMS self) -> bool"""
8340 return _pcbnew.PCB_PLOT_PARAMS_GetPlotFrameRef(self)
8341
8342 def SetFormat(self, aFormat):
8343 r"""SetFormat(PCB_PLOT_PARAMS self, PLOT_FORMAT aFormat)"""
8344 return _pcbnew.PCB_PLOT_PARAMS_SetFormat(self, aFormat)
8345
8346 def GetFormat(self):
8347 r"""GetFormat(PCB_PLOT_PARAMS self) -> PLOT_FORMAT"""
8348 return _pcbnew.PCB_PLOT_PARAMS_GetFormat(self)
8349
8350 def SetOutputDirectory(self, aDir):
8351 r"""SetOutputDirectory(PCB_PLOT_PARAMS self, wxString aDir)"""
8352 return _pcbnew.PCB_PLOT_PARAMS_SetOutputDirectory(self, aDir)
8353
8355 r"""GetOutputDirectory(PCB_PLOT_PARAMS self) -> wxString"""
8356 return _pcbnew.PCB_PLOT_PARAMS_GetOutputDirectory(self)
8357
8358 def SetDisableGerberMacros(self, aDisable):
8359 r"""SetDisableGerberMacros(PCB_PLOT_PARAMS self, bool aDisable)"""
8360 return _pcbnew.PCB_PLOT_PARAMS_SetDisableGerberMacros(self, aDisable)
8361
8363 r"""GetDisableGerberMacros(PCB_PLOT_PARAMS self) -> bool"""
8364 return _pcbnew.PCB_PLOT_PARAMS_GetDisableGerberMacros(self)
8365
8366 def SetUseGerberX2format(self, aUse):
8367 r"""SetUseGerberX2format(PCB_PLOT_PARAMS self, bool aUse)"""
8368 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberX2format(self, aUse)
8369
8371 r"""GetUseGerberX2format(PCB_PLOT_PARAMS self) -> bool"""
8372 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberX2format(self)
8373
8375 r"""SetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self, bool aUse)"""
8376 return _pcbnew.PCB_PLOT_PARAMS_SetIncludeGerberNetlistInfo(self, aUse)
8377
8379 r"""GetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self) -> bool"""
8380 return _pcbnew.PCB_PLOT_PARAMS_GetIncludeGerberNetlistInfo(self)
8381
8382 def SetCreateGerberJobFile(self, aCreate):
8383 r"""SetCreateGerberJobFile(PCB_PLOT_PARAMS self, bool aCreate)"""
8384 return _pcbnew.PCB_PLOT_PARAMS_SetCreateGerberJobFile(self, aCreate)
8385
8387 r"""GetCreateGerberJobFile(PCB_PLOT_PARAMS self) -> bool"""
8388 return _pcbnew.PCB_PLOT_PARAMS_GetCreateGerberJobFile(self)
8389
8391 r"""SetUseGerberProtelExtensions(PCB_PLOT_PARAMS self, bool aUse)"""
8392 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberProtelExtensions(self, aUse)
8393
8395 r"""GetUseGerberProtelExtensions(PCB_PLOT_PARAMS self) -> bool"""
8396 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberProtelExtensions(self)
8397
8398 def SetGerberPrecision(self, aPrecision):
8399 r"""SetGerberPrecision(PCB_PLOT_PARAMS self, int aPrecision)"""
8400 return _pcbnew.PCB_PLOT_PARAMS_SetGerberPrecision(self, aPrecision)
8401
8403 r"""GetGerberPrecision(PCB_PLOT_PARAMS self) -> int"""
8404 return _pcbnew.PCB_PLOT_PARAMS_GetGerberPrecision(self)
8405
8406 def SetSvgPrecision(self, aPrecision):
8407 r"""SetSvgPrecision(PCB_PLOT_PARAMS self, unsigned int aPrecision)"""
8408 return _pcbnew.PCB_PLOT_PARAMS_SetSvgPrecision(self, aPrecision)
8409
8411 r"""GetSvgPrecision(PCB_PLOT_PARAMS self) -> unsigned int"""
8412 return _pcbnew.PCB_PLOT_PARAMS_GetSvgPrecision(self)
8413
8414 def SetBlackAndWhite(self, blackAndWhite):
8415 r"""SetBlackAndWhite(PCB_PLOT_PARAMS self, bool blackAndWhite)"""
8416 return _pcbnew.PCB_PLOT_PARAMS_SetBlackAndWhite(self, blackAndWhite)
8417
8419 r"""GetBlackAndWhite(PCB_PLOT_PARAMS self) -> unsigned int"""
8420 return _pcbnew.PCB_PLOT_PARAMS_GetBlackAndWhite(self)
8421
8422 @staticmethod
8424 r"""GetGerberDefaultPrecision() -> int"""
8425 return _pcbnew.PCB_PLOT_PARAMS_GetGerberDefaultPrecision()
8426
8427 def SetSubtractMaskFromSilk(self, aSubtract):
8428 r"""SetSubtractMaskFromSilk(PCB_PLOT_PARAMS self, bool aSubtract)"""
8429 return _pcbnew.PCB_PLOT_PARAMS_SetSubtractMaskFromSilk(self, aSubtract)
8430
8432 r"""GetSubtractMaskFromSilk(PCB_PLOT_PARAMS self) -> bool"""
8433 return _pcbnew.PCB_PLOT_PARAMS_GetSubtractMaskFromSilk(self)
8434
8435 def SetLayerSelection(self, aSelection):
8436 r"""SetLayerSelection(PCB_PLOT_PARAMS self, LSET aSelection)"""
8437 return _pcbnew.PCB_PLOT_PARAMS_SetLayerSelection(self, aSelection)
8438
8440 r"""GetLayerSelection(PCB_PLOT_PARAMS self) -> LSET"""
8441 return _pcbnew.PCB_PLOT_PARAMS_GetLayerSelection(self)
8442
8443 def SetPlotOnAllLayersSelection(self, aSelection):
8444 r"""SetPlotOnAllLayersSelection(PCB_PLOT_PARAMS self, LSET aSelection)"""
8445 return _pcbnew.PCB_PLOT_PARAMS_SetPlotOnAllLayersSelection(self, aSelection)
8446
8448 r"""GetPlotOnAllLayersSelection(PCB_PLOT_PARAMS self) -> LSET"""
8449 return _pcbnew.PCB_PLOT_PARAMS_GetPlotOnAllLayersSelection(self)
8450
8451 def SetUseAuxOrigin(self, aAux):
8452 r"""SetUseAuxOrigin(PCB_PLOT_PARAMS self, bool aAux)"""
8453 return _pcbnew.PCB_PLOT_PARAMS_SetUseAuxOrigin(self, aAux)
8454
8456 r"""GetUseAuxOrigin(PCB_PLOT_PARAMS self) -> bool"""
8457 return _pcbnew.PCB_PLOT_PARAMS_GetUseAuxOrigin(self)
8458
8459 def SetScaleSelection(self, aSelection):
8460 r"""SetScaleSelection(PCB_PLOT_PARAMS self, int aSelection)"""
8461 return _pcbnew.PCB_PLOT_PARAMS_SetScaleSelection(self, aSelection)
8462
8464 r"""GetScaleSelection(PCB_PLOT_PARAMS self) -> int"""
8465 return _pcbnew.PCB_PLOT_PARAMS_GetScaleSelection(self)
8466
8467 def SetA4Output(self, aForce):
8468 r"""SetA4Output(PCB_PLOT_PARAMS self, int aForce)"""
8469 return _pcbnew.PCB_PLOT_PARAMS_SetA4Output(self, aForce)
8470
8471 def GetA4Output(self):
8472 r"""GetA4Output(PCB_PLOT_PARAMS self) -> bool"""
8473 return _pcbnew.PCB_PLOT_PARAMS_GetA4Output(self)
8474
8476 r"""GetHPGLPenDiameter(PCB_PLOT_PARAMS self) -> double"""
8477 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenDiameter(self)
8478
8479 def SetHPGLPenDiameter(self, aValue):
8480 r"""SetHPGLPenDiameter(PCB_PLOT_PARAMS self, double aValue) -> bool"""
8481 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenDiameter(self, aValue)
8482
8484 r"""GetHPGLPenSpeed(PCB_PLOT_PARAMS self) -> int"""
8485 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenSpeed(self)
8486
8487 def SetHPGLPenSpeed(self, aValue):
8488 r"""SetHPGLPenSpeed(PCB_PLOT_PARAMS self, int aValue) -> bool"""
8489 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenSpeed(self, aValue)
8490
8491 def SetHPGLPenNum(self, aVal):
8492 r"""SetHPGLPenNum(PCB_PLOT_PARAMS self, int aVal)"""
8493 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenNum(self, aVal)
8494
8495 def GetHPGLPenNum(self):
8496 r"""GetHPGLPenNum(PCB_PLOT_PARAMS self) -> int"""
8497 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenNum(self)
8498
8499 def SetDashedLineDashRatio(self, aVal):
8500 r"""SetDashedLineDashRatio(PCB_PLOT_PARAMS self, double aVal)"""
8501 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineDashRatio(self, aVal)
8502
8504 r"""GetDashedLineDashRatio(PCB_PLOT_PARAMS self) -> double"""
8505 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineDashRatio(self)
8506
8507 def SetDashedLineGapRatio(self, aVal):
8508 r"""SetDashedLineGapRatio(PCB_PLOT_PARAMS self, double aVal)"""
8509 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineGapRatio(self, aVal)
8510
8512 r"""GetDashedLineGapRatio(PCB_PLOT_PARAMS self) -> double"""
8513 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineGapRatio(self)
8514
8515 # add SetUseGerberAttributes() for compatibility with old python scripts
8516 # after renaming it to SetUseGerberX2format()
8517 def SetUseGerberAttributes( self, aUse ):
8518 return self.SetUseGerberX2format( aUse )
8519
8520 __swig_destroy__ = _pcbnew.delete_PCB_PLOT_PARAMS
8521
8522# Register PCB_PLOT_PARAMS in _pcbnew:
8523_pcbnew.PCB_PLOT_PARAMS_swigregister(PCB_PLOT_PARAMS)
8524
8526 r"""PCB_PLOT_PARAMS_GetGerberDefaultPrecision() -> int"""
8527 return _pcbnew.PCB_PLOT_PARAMS_GetGerberDefaultPrecision()
8528
8529DXF_UNITS_INCHES = _pcbnew.DXF_UNITS_INCHES
8530
8531DXF_UNITS_MILLIMETERS = _pcbnew.DXF_UNITS_MILLIMETERS
8532
8533PLOT_FORMAT_UNDEFINED = _pcbnew.PLOT_FORMAT_UNDEFINED
8534
8535PLOT_FORMAT_FIRST_FORMAT = _pcbnew.PLOT_FORMAT_FIRST_FORMAT
8536
8537PLOT_FORMAT_HPGL = _pcbnew.PLOT_FORMAT_HPGL
8538
8539PLOT_FORMAT_GERBER = _pcbnew.PLOT_FORMAT_GERBER
8540
8541PLOT_FORMAT_POST = _pcbnew.PLOT_FORMAT_POST
8542
8543PLOT_FORMAT_DXF = _pcbnew.PLOT_FORMAT_DXF
8544
8545PLOT_FORMAT_PDF = _pcbnew.PLOT_FORMAT_PDF
8546
8547PLOT_FORMAT_SVG = _pcbnew.PLOT_FORMAT_SVG
8548
8549PLOT_FORMAT_LAST_FORMAT = _pcbnew.PLOT_FORMAT_LAST_FORMAT
8550
8551PLOT_TEXT_MODE_STROKE = _pcbnew.PLOT_TEXT_MODE_STROKE
8552
8553PLOT_TEXT_MODE_NATIVE = _pcbnew.PLOT_TEXT_MODE_NATIVE
8554
8555PLOT_TEXT_MODE_PHANTOM = _pcbnew.PLOT_TEXT_MODE_PHANTOM
8556
8557PLOT_TEXT_MODE_DEFAULT = _pcbnew.PLOT_TEXT_MODE_DEFAULT
8558
8560 r"""Proxy of C++ PLOTTER class."""
8561
8562 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8563
8564 def __init__(self, *args, **kwargs):
8565 raise AttributeError("No constructor defined - class is abstract")
8566 __repr__ = _swig_repr
8567 DO_NOT_SET_LINE_WIDTH = _pcbnew.PLOTTER_DO_NOT_SET_LINE_WIDTH
8568
8569 USE_DEFAULT_LINE_WIDTH = _pcbnew.PLOTTER_USE_DEFAULT_LINE_WIDTH
8570
8571 __swig_destroy__ = _pcbnew.delete_PLOTTER
8572
8574 r"""GetPlotterType(PLOTTER self) -> PLOT_FORMAT"""
8575 return _pcbnew.PLOTTER_GetPlotterType(self)
8576
8577 def StartPlot(self, aPageNumber):
8578 r"""StartPlot(PLOTTER self, wxString aPageNumber) -> bool"""
8579 return _pcbnew.PLOTTER_StartPlot(self, aPageNumber)
8580
8581 def EndPlot(self):
8582 r"""EndPlot(PLOTTER self) -> bool"""
8583 return _pcbnew.PLOTTER_EndPlot(self)
8584
8585 def SetNegative(self, aNegative):
8586 r"""SetNegative(PLOTTER self, bool aNegative)"""
8587 return _pcbnew.PLOTTER_SetNegative(self, aNegative)
8588
8589 def SetColorMode(self, aColorMode):
8590 r"""SetColorMode(PLOTTER self, bool aColorMode)"""
8591 return _pcbnew.PLOTTER_SetColorMode(self, aColorMode)
8592
8593 def GetColorMode(self):
8594 r"""GetColorMode(PLOTTER self) -> bool"""
8595 return _pcbnew.PLOTTER_GetColorMode(self)
8596
8597 def SetRenderSettings(self, aSettings):
8598 r"""SetRenderSettings(PLOTTER self, RENDER_SETTINGS * aSettings)"""
8599 return _pcbnew.PLOTTER_SetRenderSettings(self, aSettings)
8600
8602 r"""RenderSettings(PLOTTER self) -> RENDER_SETTINGS *"""
8603 return _pcbnew.PLOTTER_RenderSettings(self)
8604
8605 def SetPageSettings(self, aPageSettings):
8606 r"""SetPageSettings(PLOTTER self, PAGE_INFO const & aPageSettings)"""
8607 return _pcbnew.PLOTTER_SetPageSettings(self, aPageSettings)
8608
8609 def PageSettings(self):
8610 r"""PageSettings(PLOTTER self) -> PAGE_INFO &"""
8611 return _pcbnew.PLOTTER_PageSettings(self)
8612
8613 def SetCurrentLineWidth(self, width, aData=None):
8614 r"""SetCurrentLineWidth(PLOTTER self, int width, void * aData=None)"""
8615 return _pcbnew.PLOTTER_SetCurrentLineWidth(self, width, aData)
8616
8618 r"""GetCurrentLineWidth(PLOTTER self) -> int"""
8619 return _pcbnew.PLOTTER_GetCurrentLineWidth(self)
8620
8621 def SetColor(self, color):
8622 r"""SetColor(PLOTTER self, COLOR4D color)"""
8623 return _pcbnew.PLOTTER_SetColor(self, color)
8624
8625 def SetDash(self, aLineWidth, aLineStyle):
8626 r"""SetDash(PLOTTER self, int aLineWidth, PLOT_DASH_TYPE aLineStyle)"""
8627 return _pcbnew.PLOTTER_SetDash(self, aLineWidth, aLineStyle)
8628
8629 def SetCreator(self, aCreator):
8630 r"""SetCreator(PLOTTER self, wxString aCreator)"""
8631 return _pcbnew.PLOTTER_SetCreator(self, aCreator)
8632
8633 def SetTitle(self, aTitle):
8634 r"""SetTitle(PLOTTER self, wxString aTitle)"""
8635 return _pcbnew.PLOTTER_SetTitle(self, aTitle)
8636
8637 def AddLineToHeader(self, aExtraString):
8638 r"""AddLineToHeader(PLOTTER self, wxString aExtraString)"""
8639 return _pcbnew.PLOTTER_AddLineToHeader(self, aExtraString)
8640
8642 r"""ClearHeaderLinesList(PLOTTER self)"""
8643 return _pcbnew.PLOTTER_ClearHeaderLinesList(self)
8644
8645 def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror):
8646 r"""SetViewport(PLOTTER self, VECTOR2I aOffset, double aIusPerDecimil, double aScale, bool aMirror)"""
8647 return _pcbnew.PLOTTER_SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
8648
8649 def OpenFile(self, aFullFilename):
8650 r"""OpenFile(PLOTTER self, wxString aFullFilename) -> bool"""
8651 return _pcbnew.PLOTTER_OpenFile(self, aFullFilename)
8652
8654 r"""GetIUsPerDecimil(PLOTTER self) -> double"""
8655 return _pcbnew.PLOTTER_GetIUsPerDecimil(self)
8656
8658 r"""GetPlotterArcLowDef(PLOTTER self) -> int"""
8659 return _pcbnew.PLOTTER_GetPlotterArcLowDef(self)
8660
8662 r"""GetPlotterArcHighDef(PLOTTER self) -> int"""
8663 return _pcbnew.PLOTTER_GetPlotterArcHighDef(self)
8664
8665 def Rect(self, *args):
8666 r"""Rect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8667 return _pcbnew.PLOTTER_Rect(self, *args)
8668
8669 def Circle(self, *args):
8670 r"""Circle(PLOTTER self, VECTOR2I pos, int diametre, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8671 return _pcbnew.PLOTTER_Circle(self, *args)
8672
8673 def Arc(self, aCenter, aStart, aEnd, aFill, aWidth, aMaxError):
8674 r"""Arc(PLOTTER self, VECTOR2I aCenter, VECTOR2I aStart, VECTOR2I aEnd, FILL_T aFill, int aWidth, int aMaxError)"""
8675 return _pcbnew.PLOTTER_Arc(self, aCenter, aStart, aEnd, aFill, aWidth, aMaxError)
8676
8677 def BezierCurve(self, *args):
8678 r"""BezierCurve(PLOTTER self, VECTOR2I aStart, VECTOR2I aControl1, VECTOR2I aControl2, VECTOR2I aEnd, int aTolerance, int aLineThickness=USE_DEFAULT_LINE_WIDTH)"""
8679 return _pcbnew.PLOTTER_BezierCurve(self, *args)
8680
8681 def PenTo(self, pos, plume):
8682 r"""PenTo(PLOTTER self, VECTOR2I pos, char plume)"""
8683 return _pcbnew.PLOTTER_PenTo(self, pos, plume)
8684
8685 def MoveTo(self, pos):
8686 r"""MoveTo(PLOTTER self, VECTOR2I pos)"""
8687 return _pcbnew.PLOTTER_MoveTo(self, pos)
8688
8689 def LineTo(self, pos):
8690 r"""LineTo(PLOTTER self, VECTOR2I pos)"""
8691 return _pcbnew.PLOTTER_LineTo(self, pos)
8692
8693 def FinishTo(self, pos):
8694 r"""FinishTo(PLOTTER self, VECTOR2I pos)"""
8695 return _pcbnew.PLOTTER_FinishTo(self, pos)
8696
8697 def PenFinish(self):
8698 r"""PenFinish(PLOTTER self)"""
8699 return _pcbnew.PLOTTER_PenFinish(self)
8700
8701 def PlotPoly(self, *args):
8702 r"""
8703 PlotPoly(PLOTTER self, VECTOR_VECTOR2I aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8704 PlotPoly(PLOTTER self, SHAPE_LINE_CHAIN aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8705 """
8706 return _pcbnew.PLOTTER_PlotPoly(self, *args)
8707
8708 def PlotImage(self, aImage, aPos, aScaleFactor):
8709 r"""PlotImage(PLOTTER self, wxImage const & aImage, VECTOR2I aPos, double aScaleFactor)"""
8710 return _pcbnew.PLOTTER_PlotImage(self, aImage, aPos, aScaleFactor)
8711
8712 def ThickSegment(self, start, end, width, tracemode, aData):
8713 r"""ThickSegment(PLOTTER self, VECTOR2I start, VECTOR2I end, int width, OUTLINE_MODE tracemode, void * aData)"""
8714 return _pcbnew.PLOTTER_ThickSegment(self, start, end, width, tracemode, aData)
8715
8716 def ThickArc(self, *args):
8717 r"""
8718 ThickArc(PLOTTER self, VECTOR2I aCentre, VECTOR2I aStart, VECTOR2I aEnd, int aWidth, OUTLINE_MODE aTraceMode, void * aData)
8719 ThickArc(PLOTTER self, EDA_SHAPE aArcShape, OUTLINE_MODE aTraceMode, void * aData)
8720 """
8721 return _pcbnew.PLOTTER_ThickArc(self, *args)
8722
8723 def ThickRect(self, p1, p2, width, tracemode, aData):
8724 r"""ThickRect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, int width, OUTLINE_MODE tracemode, void * aData)"""
8725 return _pcbnew.PLOTTER_ThickRect(self, p1, p2, width, tracemode, aData)
8726
8727 def ThickCircle(self, pos, diametre, width, tracemode, aData):
8728 r"""ThickCircle(PLOTTER self, VECTOR2I pos, int diametre, int width, OUTLINE_MODE tracemode, void * aData)"""
8729 return _pcbnew.PLOTTER_ThickCircle(self, pos, diametre, width, tracemode, aData)
8730
8731 def FilledCircle(self, pos, diametre, tracemode, aData):
8732 r"""FilledCircle(PLOTTER self, VECTOR2I pos, int diametre, OUTLINE_MODE tracemode, void * aData)"""
8733 return _pcbnew.PLOTTER_FilledCircle(self, pos, diametre, tracemode, aData)
8734
8735 def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData):
8736 r"""FlashPadCircle(PLOTTER self, VECTOR2I aPadPos, int aDiameter, OUTLINE_MODE aTraceMode, void * aData)"""
8737 return _pcbnew.PLOTTER_FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
8738
8739 def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
8740 r"""FlashPadOval(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8741 return _pcbnew.PLOTTER_FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
8742
8743 def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
8744 r"""FlashPadRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8745 return _pcbnew.PLOTTER_FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
8746
8747 def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData):
8748 r"""FlashPadRoundRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, int aCornerRadius, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8749 return _pcbnew.PLOTTER_FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
8750
8751 def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData):
8752 r"""FlashPadCustom(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, SHAPE_POLY_SET aPolygons, OUTLINE_MODE aTraceMode, void * aData)"""
8753 return _pcbnew.PLOTTER_FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
8754
8755 def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData):
8756 r"""FlashPadTrapez(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aCorners, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8757 return _pcbnew.PLOTTER_FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
8758
8759 def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData):
8760 r"""FlashRegularPolygon(PLOTTER self, VECTOR2I aShapePos, int aDiameter, int aCornerCount, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8761 return _pcbnew.PLOTTER_FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
8762
8763 def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aData=None):
8764 r"""Text(PLOTTER self, VECTOR2I aPos, COLOR4D aColor, wxString aText, EDA_ANGLE aOrient, VECTOR2I aSize, enum GR_TEXT_H_ALIGN_T aH_justify, enum GR_TEXT_V_ALIGN_T aV_justify, int aPenWidth, bool aItalic, bool aBold, bool aMultilineAllowed, KIFONT::FONT * aFont, void * aData=None)"""
8765 return _pcbnew.PLOTTER_Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aData)
8766
8767 def PlotText(self, aPos, aColor, aText, aAttributes, aFont, aData=None):
8768 r"""PlotText(PLOTTER self, VECTOR2I aPos, COLOR4D aColor, wxString aText, TEXT_ATTRIBUTES aAttributes, KIFONT::FONT * aFont, void * aData=None)"""
8769 return _pcbnew.PLOTTER_PlotText(self, aPos, aColor, aText, aAttributes, aFont, aData)
8770
8771 def HyperlinkBox(self, aBox, aDestinationURL):
8772 r"""HyperlinkBox(PLOTTER self, BOX2I aBox, wxString aDestinationURL)"""
8773 return _pcbnew.PLOTTER_HyperlinkBox(self, aBox, aDestinationURL)
8774
8775 def HyperlinkMenu(self, aBox, aDestURLs):
8776 r"""HyperlinkMenu(PLOTTER self, BOX2I aBox, std::vector< wxString,std::allocator< wxString > > const & aDestURLs)"""
8777 return _pcbnew.PLOTTER_HyperlinkMenu(self, aBox, aDestURLs)
8778
8779 def Bookmark(self, *args):
8780 r"""Bookmark(PLOTTER self, BOX2I aBox, wxString aName, wxString aGroupName=wxEmptyString)"""
8781 return _pcbnew.PLOTTER_Bookmark(self, *args)
8782 MARKER_COUNT = _pcbnew.PLOTTER_MARKER_COUNT
8783
8784
8785 def Marker(self, position, diametre, aShapeId):
8786 r"""Marker(PLOTTER self, VECTOR2I position, int diametre, unsigned int aShapeId)"""
8787 return _pcbnew.PLOTTER_Marker(self, position, diametre, aShapeId)
8788
8789 def SetLayerPolarity(self, aPositive):
8790 r"""SetLayerPolarity(PLOTTER self, bool aPositive)"""
8791 return _pcbnew.PLOTTER_SetLayerPolarity(self, aPositive)
8792
8793 def SetTextMode(self, mode):
8794 r"""SetTextMode(PLOTTER self, PLOT_TEXT_MODE mode)"""
8795 return _pcbnew.PLOTTER_SetTextMode(self, mode)
8796
8797 def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False):
8798 r"""SetGerberCoordinatesFormat(PLOTTER self, int aResolution, bool aUseInches=False)"""
8799 return _pcbnew.PLOTTER_SetGerberCoordinatesFormat(self, aResolution, aUseInches)
8800
8801 def SetSvgCoordinatesFormat(self, aPrecision):
8802 r"""SetSvgCoordinatesFormat(PLOTTER self, unsigned int aPrecision)"""
8803 return _pcbnew.PLOTTER_SetSvgCoordinatesFormat(self, aPrecision)
8804
8805 def StartBlock(self, aData):
8806 r"""StartBlock(PLOTTER self, void * aData)"""
8807 return _pcbnew.PLOTTER_StartBlock(self, aData)
8808
8809 def EndBlock(self, aData):
8810 r"""EndBlock(PLOTTER self, void * aData)"""
8811 return _pcbnew.PLOTTER_EndBlock(self, aData)
8812
8813# Register PLOTTER in _pcbnew:
8814_pcbnew.PLOTTER_swigregister(PLOTTER)
8815
8816
8818 r"""PlotDrawingSheet(PLOTTER plotter, PROJECT const * aProject, TITLE_BLOCK aTitleBlock, PAGE_INFO const & aPageInfo, MAP_STRING_STRING aProperties, wxString aSheetNumber, int aSheetCount, wxString aSheetName, wxString aSheetPath, wxString aFilename, COLOR4D aColor=COLOR4D::UNSPECIFIED, bool aIsFirstPage=True)"""
8819 return _pcbnew.PlotDrawingSheet(*args)
8820
8822 r"""GetDefaultPlotExtension(PLOT_FORMAT aFormat) -> wxString"""
8823 return _pcbnew.GetDefaultPlotExtension(aFormat)
8825 r"""Proxy of C++ D356_RECORD class."""
8826
8827 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8828 __repr__ = _swig_repr
8829 smd = property(_pcbnew.D356_RECORD_smd_get, _pcbnew.D356_RECORD_smd_set, doc=r"""smd : bool""")
8830 hole = property(_pcbnew.D356_RECORD_hole_get, _pcbnew.D356_RECORD_hole_set, doc=r"""hole : bool""")
8831 netname = property(_pcbnew.D356_RECORD_netname_get, _pcbnew.D356_RECORD_netname_set, doc=r"""netname : wxString""")
8832 refdes = property(_pcbnew.D356_RECORD_refdes_get, _pcbnew.D356_RECORD_refdes_set, doc=r"""refdes : wxString""")
8833 pin = property(_pcbnew.D356_RECORD_pin_get, _pcbnew.D356_RECORD_pin_set, doc=r"""pin : wxString""")
8834 midpoint = property(_pcbnew.D356_RECORD_midpoint_get, _pcbnew.D356_RECORD_midpoint_set, doc=r"""midpoint : bool""")
8835 drill = property(_pcbnew.D356_RECORD_drill_get, _pcbnew.D356_RECORD_drill_set, doc=r"""drill : int""")
8836 mechanical = property(_pcbnew.D356_RECORD_mechanical_get, _pcbnew.D356_RECORD_mechanical_set, doc=r"""mechanical : bool""")
8837 access = property(_pcbnew.D356_RECORD_access_get, _pcbnew.D356_RECORD_access_set, doc=r"""access : int""")
8838 soldermask = property(_pcbnew.D356_RECORD_soldermask_get, _pcbnew.D356_RECORD_soldermask_set, doc=r"""soldermask : int""")
8839 x_location = property(_pcbnew.D356_RECORD_x_location_get, _pcbnew.D356_RECORD_x_location_set, doc=r"""x_location : int""")
8840 y_location = property(_pcbnew.D356_RECORD_y_location_get, _pcbnew.D356_RECORD_y_location_set, doc=r"""y_location : int""")
8841 x_size = property(_pcbnew.D356_RECORD_x_size_get, _pcbnew.D356_RECORD_x_size_set, doc=r"""x_size : int""")
8842 y_size = property(_pcbnew.D356_RECORD_y_size_get, _pcbnew.D356_RECORD_y_size_set, doc=r"""y_size : int""")
8843 rotation = property(_pcbnew.D356_RECORD_rotation_get, _pcbnew.D356_RECORD_rotation_set, doc=r"""rotation : int""")
8844
8845 def __init__(self):
8846 r"""__init__(D356_RECORD self) -> D356_RECORD"""
8847 _pcbnew.D356_RECORD_swiginit(self, _pcbnew.new_D356_RECORD())
8848 __swig_destroy__ = _pcbnew.delete_D356_RECORD
8849
8850# Register D356_RECORD in _pcbnew:
8851_pcbnew.D356_RECORD_swigregister(D356_RECORD)
8852
8854 r"""Proxy of C++ IPC356D_WRITER class."""
8855
8856 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8857 __repr__ = _swig_repr
8858
8859 def __init__(self, aPcb, aParent=None):
8860 r"""__init__(IPC356D_WRITER self, BOARD aPcb, wxWindow * aParent=None) -> IPC356D_WRITER"""
8861 _pcbnew.IPC356D_WRITER_swiginit(self, _pcbnew.new_IPC356D_WRITER(aPcb, aParent))
8862 __swig_destroy__ = _pcbnew.delete_IPC356D_WRITER
8863
8864 def Write(self, aFilename):
8865 r"""Write(IPC356D_WRITER self, wxString aFilename)"""
8866 return _pcbnew.IPC356D_WRITER_Write(self, aFilename)
8867
8868# Register IPC356D_WRITER in _pcbnew:
8869_pcbnew.IPC356D_WRITER_swigregister(IPC356D_WRITER)
8870
8872 r"""Proxy of C++ PLACE_FILE_EXPORTER class."""
8873
8874 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8875 __repr__ = _swig_repr
8876
8877 def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX):
8878 r"""__init__(PLACE_FILE_EXPORTER self, BOARD aBoard, bool aUnitsMM, bool aOnlySMD, bool aExcludeAllTH, bool aTopSide, bool aBottomSide, bool aFormatCSV, bool aUseAuxOrigin, bool aNegateBottomX) -> PLACE_FILE_EXPORTER"""
8879 _pcbnew.PLACE_FILE_EXPORTER_swiginit(self, _pcbnew.new_PLACE_FILE_EXPORTER(aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX))
8880
8882 r"""GenPositionData(PLACE_FILE_EXPORTER self) -> string"""
8883 return _pcbnew.PLACE_FILE_EXPORTER_GenPositionData(self)
8884
8885 def GenReportData(self):
8886 r"""GenReportData(PLACE_FILE_EXPORTER self) -> string"""
8887 return _pcbnew.PLACE_FILE_EXPORTER_GenReportData(self)
8888
8890 r"""GetFootprintCount(PLACE_FILE_EXPORTER self) -> int"""
8891 return _pcbnew.PLACE_FILE_EXPORTER_GetFootprintCount(self)
8892
8893 @staticmethod
8895 r"""GetFrontSideName() -> string"""
8896 return _pcbnew.PLACE_FILE_EXPORTER_GetFrontSideName()
8897
8898 @staticmethod
8900 r"""GetBackSideName() -> string"""
8901 return _pcbnew.PLACE_FILE_EXPORTER_GetBackSideName()
8902 __swig_destroy__ = _pcbnew.delete_PLACE_FILE_EXPORTER
8903
8904# Register PLACE_FILE_EXPORTER in _pcbnew:
8905_pcbnew.PLACE_FILE_EXPORTER_swigregister(PLACE_FILE_EXPORTER)
8906
8908 r"""PLACE_FILE_EXPORTER_GetFrontSideName() -> string"""
8909 return _pcbnew.PLACE_FILE_EXPORTER_GetFrontSideName()
8910
8912 r"""PLACE_FILE_EXPORTER_GetBackSideName() -> string"""
8913 return _pcbnew.PLACE_FILE_EXPORTER_GetBackSideName()
8914
8916 r"""Proxy of C++ EXPORTER_VRML class."""
8917
8918 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8919 __repr__ = _swig_repr
8920
8921 def __init__(self, aBoard):
8922 r"""__init__(EXPORTER_VRML self, BOARD aBoard) -> EXPORTER_VRML"""
8923 _pcbnew.EXPORTER_VRML_swiginit(self, _pcbnew.new_EXPORTER_VRML(aBoard))
8924 __swig_destroy__ = _pcbnew.delete_EXPORTER_VRML
8925
8926 def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
8927 r"""ExportVRML_File(EXPORTER_VRML self, PROJECT * aProject, wxString aMessages, wxString aFullFileName, double aMMtoWRMLunit, bool aExport3DFiles, bool aUseRelativePaths, wxString a3D_Subdir, double aXRef, double aYRef) -> bool"""
8928 return _pcbnew.EXPORTER_VRML_ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
8929
8930# Register EXPORTER_VRML in _pcbnew:
8931_pcbnew.EXPORTER_VRML_swigregister(EXPORTER_VRML)
8932
8933USE_ATTRIB_FOR_HOLES = _pcbnew.USE_ATTRIB_FOR_HOLES
8934
8935HOLE_ATTRIBUTE_HOLE_UNKNOWN = _pcbnew.HOLE_ATTRIBUTE_HOLE_UNKNOWN
8936
8937HOLE_ATTRIBUTE_HOLE_VIA_THROUGH = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_THROUGH
8938
8939HOLE_ATTRIBUTE_HOLE_VIA_BURIED = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_BURIED
8940
8941HOLE_ATTRIBUTE_HOLE_PAD = _pcbnew.HOLE_ATTRIBUTE_HOLE_PAD
8942
8943HOLE_ATTRIBUTE_HOLE_MECHANICAL = _pcbnew.HOLE_ATTRIBUTE_HOLE_MECHANICAL
8944
8946 r"""Proxy of C++ DRILL_TOOL class."""
8947
8948 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8949 __repr__ = _swig_repr
8950 m_Diameter = property(_pcbnew.DRILL_TOOL_m_Diameter_get, _pcbnew.DRILL_TOOL_m_Diameter_set, doc=r"""m_Diameter : int""")
8951 m_TotalCount = property(_pcbnew.DRILL_TOOL_m_TotalCount_get, _pcbnew.DRILL_TOOL_m_TotalCount_set, doc=r"""m_TotalCount : int""")
8952 m_OvalCount = property(_pcbnew.DRILL_TOOL_m_OvalCount_get, _pcbnew.DRILL_TOOL_m_OvalCount_set, doc=r"""m_OvalCount : int""")
8953 m_Hole_NotPlated = property(_pcbnew.DRILL_TOOL_m_Hole_NotPlated_get, _pcbnew.DRILL_TOOL_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
8954 m_HoleAttribute = property(_pcbnew.DRILL_TOOL_m_HoleAttribute_get, _pcbnew.DRILL_TOOL_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
8955
8956 def __init__(self, aDiameter, a_NotPlated):
8957 r"""__init__(DRILL_TOOL self, int aDiameter, bool a_NotPlated) -> DRILL_TOOL"""
8958 _pcbnew.DRILL_TOOL_swiginit(self, _pcbnew.new_DRILL_TOOL(aDiameter, a_NotPlated))
8959 __swig_destroy__ = _pcbnew.delete_DRILL_TOOL
8960
8961# Register DRILL_TOOL in _pcbnew:
8962_pcbnew.DRILL_TOOL_swigregister(DRILL_TOOL)
8963
8965 r"""Proxy of C++ HOLE_INFO class."""
8966
8967 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8968 __repr__ = _swig_repr
8969
8970 def __init__(self):
8971 r"""__init__(HOLE_INFO self) -> HOLE_INFO"""
8972 _pcbnew.HOLE_INFO_swiginit(self, _pcbnew.new_HOLE_INFO())
8973 m_ItemParent = property(_pcbnew.HOLE_INFO_m_ItemParent_get, _pcbnew.HOLE_INFO_m_ItemParent_set, doc=r"""m_ItemParent : p.BOARD_ITEM""")
8974 m_Hole_Diameter = property(_pcbnew.HOLE_INFO_m_Hole_Diameter_get, _pcbnew.HOLE_INFO_m_Hole_Diameter_set, doc=r"""m_Hole_Diameter : int""")
8975 m_Tool_Reference = property(_pcbnew.HOLE_INFO_m_Tool_Reference_get, _pcbnew.HOLE_INFO_m_Tool_Reference_set, doc=r"""m_Tool_Reference : int""")
8976 m_Hole_Size = property(_pcbnew.HOLE_INFO_m_Hole_Size_get, _pcbnew.HOLE_INFO_m_Hole_Size_set, doc=r"""m_Hole_Size : VECTOR2I""")
8977 m_Hole_Orient = property(_pcbnew.HOLE_INFO_m_Hole_Orient_get, _pcbnew.HOLE_INFO_m_Hole_Orient_set, doc=r"""m_Hole_Orient : EDA_ANGLE""")
8978 m_Hole_Shape = property(_pcbnew.HOLE_INFO_m_Hole_Shape_get, _pcbnew.HOLE_INFO_m_Hole_Shape_set, doc=r"""m_Hole_Shape : int""")
8979 m_Hole_Pos = property(_pcbnew.HOLE_INFO_m_Hole_Pos_get, _pcbnew.HOLE_INFO_m_Hole_Pos_set, doc=r"""m_Hole_Pos : VECTOR2I""")
8980 m_Hole_Bottom_Layer = property(_pcbnew.HOLE_INFO_m_Hole_Bottom_Layer_get, _pcbnew.HOLE_INFO_m_Hole_Bottom_Layer_set, doc=r"""m_Hole_Bottom_Layer : PCB_LAYER_ID""")
8981 m_Hole_Top_Layer = property(_pcbnew.HOLE_INFO_m_Hole_Top_Layer_get, _pcbnew.HOLE_INFO_m_Hole_Top_Layer_set, doc=r"""m_Hole_Top_Layer : PCB_LAYER_ID""")
8982 m_Hole_NotPlated = property(_pcbnew.HOLE_INFO_m_Hole_NotPlated_get, _pcbnew.HOLE_INFO_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
8983 m_HoleAttribute = property(_pcbnew.HOLE_INFO_m_HoleAttribute_get, _pcbnew.HOLE_INFO_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
8984 __swig_destroy__ = _pcbnew.delete_HOLE_INFO
8985
8986# Register HOLE_INFO in _pcbnew:
8987_pcbnew.HOLE_INFO_swigregister(HOLE_INFO)
8988
8990 r"""Proxy of C++ DRILL_PRECISION class."""
8991
8992 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8993 __repr__ = _swig_repr
8994
8995 def __init__(self, l=2, r=4):
8996 r"""__init__(DRILL_PRECISION self, int l=2, int r=4) -> DRILL_PRECISION"""
8997 _pcbnew.DRILL_PRECISION_swiginit(self, _pcbnew.new_DRILL_PRECISION(l, r))
8998
9000 r"""GetPrecisionString(DRILL_PRECISION self) -> wxString"""
9001 return _pcbnew.DRILL_PRECISION_GetPrecisionString(self)
9002 m_Lhs = property(_pcbnew.DRILL_PRECISION_m_Lhs_get, _pcbnew.DRILL_PRECISION_m_Lhs_set, doc=r"""m_Lhs : int""")
9003 m_Rhs = property(_pcbnew.DRILL_PRECISION_m_Rhs_get, _pcbnew.DRILL_PRECISION_m_Rhs_set, doc=r"""m_Rhs : int""")
9004 __swig_destroy__ = _pcbnew.delete_DRILL_PRECISION
9005
9006# Register DRILL_PRECISION in _pcbnew:
9007_pcbnew.DRILL_PRECISION_swigregister(DRILL_PRECISION)
9008
9010 r"""Proxy of C++ GENDRILL_WRITER_BASE class."""
9011
9012 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9013
9014 def __init__(self, *args, **kwargs):
9015 raise AttributeError("No constructor defined")
9016 __repr__ = _swig_repr
9017 DECIMAL_FORMAT = _pcbnew.GENDRILL_WRITER_BASE_DECIMAL_FORMAT
9018
9019 SUPPRESS_LEADING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_LEADING
9020
9021 SUPPRESS_TRAILING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_TRAILING
9022
9023 KEEP_ZEROS = _pcbnew.GENDRILL_WRITER_BASE_KEEP_ZEROS
9024
9025 PTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_PTH_FILE
9026
9027 NPTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_NPTH_FILE
9028
9029 MIXED_FILE = _pcbnew.GENDRILL_WRITER_BASE_MIXED_FILE
9030
9031 __swig_destroy__ = _pcbnew.delete_GENDRILL_WRITER_BASE
9032
9033 def SetMergeOption(self, aMerge):
9034 r"""SetMergeOption(GENDRILL_WRITER_BASE self, bool aMerge)"""
9035 return _pcbnew.GENDRILL_WRITER_BASE_SetMergeOption(self, aMerge)
9036
9037 def GetOffset(self):
9038 r"""GetOffset(GENDRILL_WRITER_BASE self) -> VECTOR2I"""
9039 return _pcbnew.GENDRILL_WRITER_BASE_GetOffset(self)
9040
9041 def SetPageInfo(self, aPageInfo):
9042 r"""SetPageInfo(GENDRILL_WRITER_BASE self, PAGE_INFO const * aPageInfo)"""
9043 return _pcbnew.GENDRILL_WRITER_BASE_SetPageInfo(self, aPageInfo)
9044
9045 def SetMapFileFormat(self, aMapFmt):
9046 r"""SetMapFileFormat(GENDRILL_WRITER_BASE self, PLOT_FORMAT aMapFmt)"""
9047 return _pcbnew.GENDRILL_WRITER_BASE_SetMapFileFormat(self, aMapFmt)
9048
9049 def CreateMapFilesSet(self, aPlotDirectory, aReporter=None):
9050 r"""CreateMapFilesSet(GENDRILL_WRITER_BASE self, wxString aPlotDirectory, REPORTER * aReporter=None) -> bool"""
9051 return _pcbnew.GENDRILL_WRITER_BASE_CreateMapFilesSet(self, aPlotDirectory, aReporter)
9052
9053 def GenDrillReportFile(self, aFullFileName):
9054 r"""GenDrillReportFile(GENDRILL_WRITER_BASE self, wxString aFullFileName) -> bool"""
9055 return _pcbnew.GENDRILL_WRITER_BASE_GenDrillReportFile(self, aFullFileName)
9056
9058 r"""GetDrillFileExt(GENDRILL_WRITER_BASE self) -> wxString"""
9059 return _pcbnew.GENDRILL_WRITER_BASE_GetDrillFileExt(self)
9060
9061# Register GENDRILL_WRITER_BASE in _pcbnew:
9062_pcbnew.GENDRILL_WRITER_BASE_swigregister(GENDRILL_WRITER_BASE)
9063
9065 r"""Proxy of C++ EXCELLON_WRITER class."""
9066
9067 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9068 __repr__ = _swig_repr
9069
9070 def __init__(self, aPcb):
9071 r"""__init__(EXCELLON_WRITER self, BOARD aPcb) -> EXCELLON_WRITER"""
9072 _pcbnew.EXCELLON_WRITER_swiginit(self, _pcbnew.new_EXCELLON_WRITER(aPcb))
9073 __swig_destroy__ = _pcbnew.delete_EXCELLON_WRITER
9074
9075 def GetOffset(self):
9076 r"""GetOffset(EXCELLON_WRITER self) -> VECTOR2I"""
9077 return _pcbnew.EXCELLON_WRITER_GetOffset(self)
9078
9079 def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles):
9080 r"""SetRouteModeForOvalHoles(EXCELLON_WRITER self, bool aUseRouteModeForOvalHoles)"""
9081 return _pcbnew.EXCELLON_WRITER_SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
9082
9083 def SetFormat(self, *args):
9084 r"""SetFormat(EXCELLON_WRITER self, bool aMetric, GENDRILL_WRITER_BASE::ZEROS_FMT aZerosFmt=DECIMAL_FORMAT, int aLeftDigits=0, int aRightDigits=0)"""
9085 return _pcbnew.EXCELLON_WRITER_SetFormat(self, *args)
9086
9087 def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH):
9088 r"""SetOptions(EXCELLON_WRITER self, bool aMirror, bool aMinimalHeader, VECTOR2I aOffset, bool aMerge_PTH_NPTH)"""
9089 return _pcbnew.EXCELLON_WRITER_SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
9090
9091 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
9092 r"""CreateDrillandMapFilesSet(EXCELLON_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
9093 return _pcbnew.EXCELLON_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
9094
9095# Register EXCELLON_WRITER in _pcbnew:
9096_pcbnew.EXCELLON_WRITER_swigregister(EXCELLON_WRITER)
9097
9099 r"""Proxy of C++ GERBER_WRITER class."""
9100
9101 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9102 __repr__ = _swig_repr
9103
9104 def __init__(self, aPcb):
9105 r"""__init__(GERBER_WRITER self, BOARD aPcb) -> GERBER_WRITER"""
9106 _pcbnew.GERBER_WRITER_swiginit(self, _pcbnew.new_GERBER_WRITER(aPcb))
9107 __swig_destroy__ = _pcbnew.delete_GERBER_WRITER
9108
9109 def SetFormat(self, aRightDigits=6):
9110 r"""SetFormat(GERBER_WRITER self, int aRightDigits=6)"""
9111 return _pcbnew.GERBER_WRITER_SetFormat(self, aRightDigits)
9112
9113 def SetOptions(self, aOffset):
9114 r"""SetOptions(GERBER_WRITER self, VECTOR2I aOffset)"""
9115 return _pcbnew.GERBER_WRITER_SetOptions(self, aOffset)
9116
9117 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
9118 r"""CreateDrillandMapFilesSet(GERBER_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
9119 return _pcbnew.GERBER_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
9120
9121# Register GERBER_WRITER in _pcbnew:
9122_pcbnew.GERBER_WRITER_swigregister(GERBER_WRITER)
9123
9124SIDE_NONE = _pcbnew.SIDE_NONE
9125
9126SIDE_TOP = _pcbnew.SIDE_TOP
9127
9128SIDE_BOTTOM = _pcbnew.SIDE_BOTTOM
9129
9130SIDE_BOTH = _pcbnew.SIDE_BOTH
9131
9133 r"""Proxy of C++ JOBFILE_PARAMS class."""
9134
9135 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9136 __repr__ = _swig_repr
9137 m_GerberFileList = property(_pcbnew.JOBFILE_PARAMS_m_GerberFileList_get, _pcbnew.JOBFILE_PARAMS_m_GerberFileList_set, doc=r"""m_GerberFileList : wxArrayString""")
9138 m_LayerId = property(_pcbnew.JOBFILE_PARAMS_m_LayerId_get, _pcbnew.JOBFILE_PARAMS_m_LayerId_set, doc=r"""m_LayerId : std::vector<(PCB_LAYER_ID,std::allocator<(PCB_LAYER_ID)>)>""")
9139
9140 def __init__(self):
9141 r"""__init__(JOBFILE_PARAMS self) -> JOBFILE_PARAMS"""
9142 _pcbnew.JOBFILE_PARAMS_swiginit(self, _pcbnew.new_JOBFILE_PARAMS())
9143 __swig_destroy__ = _pcbnew.delete_JOBFILE_PARAMS
9144
9145# Register JOBFILE_PARAMS in _pcbnew:
9146_pcbnew.JOBFILE_PARAMS_swigregister(JOBFILE_PARAMS)
9147
9149 r"""Proxy of C++ GERBER_JOBFILE_WRITER class."""
9150
9151 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9152 __repr__ = _swig_repr
9153
9154 def __init__(self, aPcb, aReporter=None):
9155 r"""__init__(GERBER_JOBFILE_WRITER self, BOARD aPcb, REPORTER * aReporter=None) -> GERBER_JOBFILE_WRITER"""
9156 _pcbnew.GERBER_JOBFILE_WRITER_swiginit(self, _pcbnew.new_GERBER_JOBFILE_WRITER(aPcb, aReporter))
9157 __swig_destroy__ = _pcbnew.delete_GERBER_JOBFILE_WRITER
9158
9159 def AddGbrFile(self, aLayer, aFilename):
9160 r"""AddGbrFile(GERBER_JOBFILE_WRITER self, PCB_LAYER_ID aLayer, wxString aFilename)"""
9161 return _pcbnew.GERBER_JOBFILE_WRITER_AddGbrFile(self, aLayer, aFilename)
9162
9163 def CreateJobFile(self, aFullFilename):
9164 r"""CreateJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9165 return _pcbnew.GERBER_JOBFILE_WRITER_CreateJobFile(self, aFullFilename)
9166
9167 def WriteJSONJobFile(self, aFullFilename):
9168 r"""WriteJSONJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9169 return _pcbnew.GERBER_JOBFILE_WRITER_WriteJSONJobFile(self, aFullFilename)
9170
9171# Register GERBER_JOBFILE_WRITER in _pcbnew:
9172_pcbnew.GERBER_JOBFILE_WRITER_swigregister(GERBER_JOBFILE_WRITER)
9173
9174ROOM_FOR_KICADMANAGER = _pcbnew.ROOM_FOR_KICADMANAGER
9175
9176ROOM_FOR_3D_VIEWER = _pcbnew.ROOM_FOR_3D_VIEWER
9177
9178ROOM_FOR_PANEL_PREV_MODEL = _pcbnew.ROOM_FOR_PANEL_PREV_MODEL
9179
9180DEFAULT_FILE_HISTORY_SIZE = _pcbnew.DEFAULT_FILE_HISTORY_SIZE
9181
9182MAX_FILE_HISTORY_SIZE = _pcbnew.MAX_FILE_HISTORY_SIZE
9183
9184ID_APPEND_PROJECT = _pcbnew.ID_APPEND_PROJECT
9185
9186ID_LOAD_FILE = _pcbnew.ID_LOAD_FILE
9187
9188ID_NEW_BOARD = _pcbnew.ID_NEW_BOARD
9189
9190ID_SAVE_BOARD = _pcbnew.ID_SAVE_BOARD
9191
9192ID_SAVE_BOARD_AS = _pcbnew.ID_SAVE_BOARD_AS
9193
9194ID_AUTO_SAVE_TIMER = _pcbnew.ID_AUTO_SAVE_TIMER
9195
9196ID_FILE = _pcbnew.ID_FILE
9197
9198ID_FILE1 = _pcbnew.ID_FILE1
9199
9200ID_FILEMAX = _pcbnew.ID_FILEMAX
9201
9202ID_FILE_LIST_EMPTY = _pcbnew.ID_FILE_LIST_EMPTY
9203
9204ID_FILE_LIST_CLEAR = _pcbnew.ID_FILE_LIST_CLEAR
9205
9206ID_PREFERENCES_RESET_PANEL = _pcbnew.ID_PREFERENCES_RESET_PANEL
9207
9208ID_GEN_PLOT = _pcbnew.ID_GEN_PLOT
9209
9210ID_GEN_PLOT_PS = _pcbnew.ID_GEN_PLOT_PS
9211
9212ID_GEN_PLOT_HPGL = _pcbnew.ID_GEN_PLOT_HPGL
9213
9214ID_GEN_PLOT_GERBER = _pcbnew.ID_GEN_PLOT_GERBER
9215
9216ID_GEN_PLOT_SVG = _pcbnew.ID_GEN_PLOT_SVG
9217
9218ID_GEN_PLOT_DXF = _pcbnew.ID_GEN_PLOT_DXF
9219
9220ID_GEN_PLOT_PDF = _pcbnew.ID_GEN_PLOT_PDF
9221
9222ID_H_TOOLBAR = _pcbnew.ID_H_TOOLBAR
9223
9224ID_V_TOOLBAR = _pcbnew.ID_V_TOOLBAR
9225
9226ID_OPT_TOOLBAR = _pcbnew.ID_OPT_TOOLBAR
9227
9228ID_AUX_TOOLBAR = _pcbnew.ID_AUX_TOOLBAR
9229
9230ID_LANGUAGE_CHOICE = _pcbnew.ID_LANGUAGE_CHOICE
9231
9232ID_LANGUAGE_DANISH = _pcbnew.ID_LANGUAGE_DANISH
9233
9234ID_LANGUAGE_DEFAULT = _pcbnew.ID_LANGUAGE_DEFAULT
9235
9236ID_LANGUAGE_ENGLISH = _pcbnew.ID_LANGUAGE_ENGLISH
9237
9238ID_LANGUAGE_FRENCH = _pcbnew.ID_LANGUAGE_FRENCH
9239
9240ID_LANGUAGE_FINNISH = _pcbnew.ID_LANGUAGE_FINNISH
9241
9242ID_LANGUAGE_SPANISH = _pcbnew.ID_LANGUAGE_SPANISH
9243
9244ID_LANGUAGE_SPANISH_MEXICAN = _pcbnew.ID_LANGUAGE_SPANISH_MEXICAN
9245
9246ID_LANGUAGE_GERMAN = _pcbnew.ID_LANGUAGE_GERMAN
9247
9248ID_LANGUAGE_GREEK = _pcbnew.ID_LANGUAGE_GREEK
9249
9250ID_LANGUAGE_NORWEGIAN = _pcbnew.ID_LANGUAGE_NORWEGIAN
9251
9252ID_LANGUAGE_RUSSIAN = _pcbnew.ID_LANGUAGE_RUSSIAN
9253
9254ID_LANGUAGE_PORTUGUESE = _pcbnew.ID_LANGUAGE_PORTUGUESE
9255
9256ID_LANGUAGE_PORTUGUESE_BRAZILIAN = _pcbnew.ID_LANGUAGE_PORTUGUESE_BRAZILIAN
9257
9258ID_LANGUAGE_TURKISH = _pcbnew.ID_LANGUAGE_TURKISH
9259
9260ID_LANGUAGE_INDONESIAN = _pcbnew.ID_LANGUAGE_INDONESIAN
9261
9262ID_LANGUAGE_ITALIAN = _pcbnew.ID_LANGUAGE_ITALIAN
9263
9264ID_LANGUAGE_SLOVENIAN = _pcbnew.ID_LANGUAGE_SLOVENIAN
9265
9266ID_LANGUAGE_SLOVAK = _pcbnew.ID_LANGUAGE_SLOVAK
9267
9268ID_LANGUAGE_HUNGARIAN = _pcbnew.ID_LANGUAGE_HUNGARIAN
9269
9270ID_LANGUAGE_POLISH = _pcbnew.ID_LANGUAGE_POLISH
9271
9272ID_LANGUAGE_CZECH = _pcbnew.ID_LANGUAGE_CZECH
9273
9274ID_LANGUAGE_KOREAN = _pcbnew.ID_LANGUAGE_KOREAN
9275
9276ID_LANGUAGE_CATALAN = _pcbnew.ID_LANGUAGE_CATALAN
9277
9278ID_LANGUAGE_CHINESE_SIMPLIFIED = _pcbnew.ID_LANGUAGE_CHINESE_SIMPLIFIED
9279
9280ID_LANGUAGE_CHINESE_TRADITIONAL = _pcbnew.ID_LANGUAGE_CHINESE_TRADITIONAL
9281
9282ID_LANGUAGE_DUTCH = _pcbnew.ID_LANGUAGE_DUTCH
9283
9284ID_LANGUAGE_JAPANESE = _pcbnew.ID_LANGUAGE_JAPANESE
9285
9286ID_LANGUAGE_BULGARIAN = _pcbnew.ID_LANGUAGE_BULGARIAN
9287
9288ID_LANGUAGE_LATVIAN = _pcbnew.ID_LANGUAGE_LATVIAN
9289
9290ID_LANGUAGE_LITHUANIAN = _pcbnew.ID_LANGUAGE_LITHUANIAN
9291
9292ID_LANGUAGE_VIETNAMESE = _pcbnew.ID_LANGUAGE_VIETNAMESE
9293
9294ID_LANGUAGE_SERBIAN = _pcbnew.ID_LANGUAGE_SERBIAN
9295
9296ID_LANGUAGE_THAI = _pcbnew.ID_LANGUAGE_THAI
9297
9298ID_LANGUAGE_SWEDISH = _pcbnew.ID_LANGUAGE_SWEDISH
9299
9300ID_LANGUAGE_UKRANIAN = _pcbnew.ID_LANGUAGE_UKRANIAN
9301
9302ID_LANGUAGE_CHOICE_END = _pcbnew.ID_LANGUAGE_CHOICE_END
9303
9304ID_ON_ZOOM_SELECT = _pcbnew.ID_ON_ZOOM_SELECT
9305
9306ID_ON_GRID_SELECT = _pcbnew.ID_ON_GRID_SELECT
9307
9308ID_GRID_SETTINGS = _pcbnew.ID_GRID_SETTINGS
9309
9310ID_POPUP_ZOOM_LEVEL_START = _pcbnew.ID_POPUP_ZOOM_LEVEL_START
9311
9312ID_POPUP_ZOOM_LEVEL_END = _pcbnew.ID_POPUP_ZOOM_LEVEL_END
9313
9314ID_POPUP_GRID_START = _pcbnew.ID_POPUP_GRID_START
9315
9316ID_POPUP_GRID_END = _pcbnew.ID_POPUP_GRID_END
9317
9318ID_EDA_SOCKET_EVENT_SERV = _pcbnew.ID_EDA_SOCKET_EVENT_SERV
9319
9320ID_EDA_SOCKET_EVENT = _pcbnew.ID_EDA_SOCKET_EVENT
9321
9322ID_KICAD_MANAGER_START = _pcbnew.ID_KICAD_MANAGER_START
9323
9324ID_KICAD_MANAGER_END = _pcbnew.ID_KICAD_MANAGER_END
9325
9326ID_KICAD_3D_VIEWER_START = _pcbnew.ID_KICAD_3D_VIEWER_START
9327
9328ID_KICAD_3D_VIEWER_END = _pcbnew.ID_KICAD_3D_VIEWER_END
9329
9330ID_KICAD_PANEL_PREV_MODEL_START = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_START
9331
9332ID_KICAD_PANEL_PREV_MODEL_END = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_END
9333
9334ID_POPUP_MENU_START = _pcbnew.ID_POPUP_MENU_START
9335
9336ID_POPUP_MENU_END = _pcbnew.ID_POPUP_MENU_END
9337
9338ID_END_LIST = _pcbnew.ID_END_LIST
9339
9340
9342 r"""GetBoard() -> BOARD"""
9343 return _pcbnew.GetBoard()
9344
9345def LoadBoard(*args):
9346 r"""
9347 LoadBoard(wxString aFileName, IO_MGR::PCB_FILE_T aFormat) -> BOARD
9348 LoadBoard(wxString aFileName) -> BOARD
9349 """
9350 return _pcbnew.LoadBoard(*args)
9351
9352def NewBoard(aFileName):
9353 r"""NewBoard(wxString aFileName) -> BOARD"""
9354 return _pcbnew.NewBoard(aFileName)
9355
9357 r"""GetSettingsManager() -> SETTINGS_MANAGER"""
9358 return _pcbnew.GetSettingsManager()
9359
9361 r"""CreateEmptyBoard() -> BOARD"""
9362 return _pcbnew.CreateEmptyBoard()
9363
9364def SaveBoard(aFileName, aBoard, aSkipSettings=False):
9365 r"""SaveBoard(wxString aFileName, BOARD aBoard, bool aSkipSettings=False) -> bool"""
9366 return _pcbnew.SaveBoard(aFileName, aBoard, aSkipSettings)
9367
9369 r"""GetFootprintLibraries() -> wxArrayString"""
9370 return _pcbnew.GetFootprintLibraries()
9371
9372def GetFootprints(aNickName):
9373 r"""GetFootprints(wxString aNickName) -> wxArrayString"""
9374 return _pcbnew.GetFootprints(aNickName)
9375
9377 r"""
9378 ExportSpecctraDSN(wxString aFullFilename) -> bool
9379 ExportSpecctraDSN(BOARD aBoard, wxString aFullFilename) -> bool
9380 """
9381 return _pcbnew.ExportSpecctraDSN(*args)
9382
9383def ExportVRML(aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
9384 r"""ExportVRML(wxString aFullFileName, double aMMtoWRMLunit, bool aExport3DFiles, bool aUseRelativePaths, wxString a3D_Subdir, double aXRef, double aYRef) -> bool"""
9385 return _pcbnew.ExportVRML(aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
9386
9387def ImportSpecctraSES(aFullFilename):
9388 r"""ImportSpecctraSES(wxString aFullFilename) -> bool"""
9389 return _pcbnew.ImportSpecctraSES(aFullFilename)
9390
9392 r"""ExportFootprintsToLibrary(bool aStoreInNewLib, wxString aLibName=wxEmptyString, wxString aLibPath=None) -> bool"""
9393 return _pcbnew.ExportFootprintsToLibrary(*args)
9394
9396 r"""Refresh()"""
9397 return _pcbnew.Refresh()
9398
9400 r"""UpdateUserInterface()"""
9401 return _pcbnew.UpdateUserInterface()
9402
9404 r"""GetUserUnits() -> int"""
9405 return _pcbnew.GetUserUnits()
9406
9408 r"""GetCurrentSelection() -> DRAWINGS"""
9409 return _pcbnew.GetCurrentSelection()
9410
9412 r"""IsActionRunning() -> bool"""
9413 return _pcbnew.IsActionRunning()
9414
9415def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors):
9416 r"""WriteDRCReport(BOARD aBoard, wxString aFileName, EDA_UNITS aUnits, bool aReportAllTrackErrors) -> bool"""
9417 return _pcbnew.WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
9418ZLO_NONE = _pcbnew.ZLO_NONE
9419
9420ZLO_FORCE_FLASHED = _pcbnew.ZLO_FORCE_FLASHED
9421
9422ZLO_FORCE_NO_ZONE_CONNECTION = _pcbnew.ZLO_FORCE_NO_ZONE_CONNECTION
9423
9425 r"""Proxy of C++ BOARD_ITEM class."""
9426
9427 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9428
9429 def __init__(self, *args, **kwargs):
9430 raise AttributeError("No constructor defined - class is abstract")
9431 __repr__ = _swig_repr
9432 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM
9433
9434 def SetParentGroup(self, aGroup):
9435 r"""SetParentGroup(BOARD_ITEM self, PCB_GROUP aGroup)"""
9436 return _pcbnew.BOARD_ITEM_SetParentGroup(self, aGroup)
9437
9439 r"""GetParentGroup(BOARD_ITEM self) -> PCB_GROUP"""
9440 return _pcbnew.BOARD_ITEM_GetParentGroup(self)
9441
9442 def GetX(self):
9443 r"""GetX(BOARD_ITEM self) -> int"""
9444 return _pcbnew.BOARD_ITEM_GetX(self)
9445
9446 def GetY(self):
9447 r"""GetY(BOARD_ITEM self) -> int"""
9448 return _pcbnew.BOARD_ITEM_GetY(self)
9449
9450 def GetCenter(self):
9451 r"""GetCenter(BOARD_ITEM self) -> VECTOR2I"""
9452 return _pcbnew.BOARD_ITEM_GetCenter(self)
9453
9454 def SetX(self, aX):
9455 r"""SetX(BOARD_ITEM self, int aX)"""
9456 return _pcbnew.BOARD_ITEM_SetX(self, aX)
9457
9458 def SetY(self, aY):
9459 r"""SetY(BOARD_ITEM self, int aY)"""
9460 return _pcbnew.BOARD_ITEM_SetY(self, aY)
9461
9462 def IsConnected(self):
9463 r"""IsConnected(BOARD_ITEM self) -> bool"""
9464 return _pcbnew.BOARD_ITEM_IsConnected(self)
9465
9467 r"""IsOnCopperLayer(BOARD_ITEM self) -> bool"""
9468 return _pcbnew.BOARD_ITEM_IsOnCopperLayer(self)
9469
9470 def HasHole(self):
9471 r"""HasHole(BOARD_ITEM self) -> bool"""
9472 return _pcbnew.BOARD_ITEM_HasHole(self)
9473
9474 def IsTented(self):
9475 r"""IsTented(BOARD_ITEM self) -> bool"""
9476 return _pcbnew.BOARD_ITEM_IsTented(self)
9477
9478 def GetEffectiveShape(self, *args):
9479 r"""GetEffectiveShape(BOARD_ITEM self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
9480 return _pcbnew.BOARD_ITEM_GetEffectiveShape(self, *args)
9481
9483 r"""GetEffectiveHoleShape(BOARD_ITEM self) -> std::shared_ptr< SHAPE_SEGMENT >"""
9484 return _pcbnew.BOARD_ITEM_GetEffectiveHoleShape(self)
9485
9486 def GetParent(self):
9487 r"""GetParent(BOARD_ITEM self) -> BOARD_ITEM_CONTAINER"""
9488 return _pcbnew.BOARD_ITEM_GetParent(self)
9489
9491 r"""GetParentFootprint(BOARD_ITEM self) -> BOARD_ITEM_CONTAINER"""
9492 return _pcbnew.BOARD_ITEM_GetParentFootprint(self)
9493
9494 def HasLineStroke(self):
9495 r"""HasLineStroke(BOARD_ITEM self) -> bool"""
9496 return _pcbnew.BOARD_ITEM_HasLineStroke(self)
9497
9498 def GetStroke(self):
9499 r"""GetStroke(BOARD_ITEM self) -> STROKE_PARAMS"""
9500 return _pcbnew.BOARD_ITEM_GetStroke(self)
9501
9502 def SetStroke(self, aStroke):
9503 r"""SetStroke(BOARD_ITEM self, STROKE_PARAMS const & aStroke)"""
9504 return _pcbnew.BOARD_ITEM_SetStroke(self, aStroke)
9505
9506 def GetLayer(self):
9507 r"""GetLayer(BOARD_ITEM self) -> PCB_LAYER_ID"""
9508 return _pcbnew.BOARD_ITEM_GetLayer(self)
9509
9510 def GetLayerSet(self):
9511 r"""GetLayerSet(BOARD_ITEM self) -> LSET"""
9512 return _pcbnew.BOARD_ITEM_GetLayerSet(self)
9513
9514 def SetLayerSet(self, aLayers):
9515 r"""SetLayerSet(BOARD_ITEM self, LSET aLayers)"""
9516 return _pcbnew.BOARD_ITEM_SetLayerSet(self, aLayers)
9517
9518 def SetLayer(self, aLayer):
9519 r"""SetLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer)"""
9520 return _pcbnew.BOARD_ITEM_SetLayer(self, aLayer)
9521
9522 def Duplicate(self):
9523 r"""Duplicate(BOARD_ITEM self) -> BOARD_ITEM"""
9524 return _pcbnew.BOARD_ITEM_Duplicate(self)
9525
9526 def SwapItemData(self, aImage):
9527 r"""SwapItemData(BOARD_ITEM self, BOARD_ITEM aImage)"""
9528 return _pcbnew.BOARD_ITEM_SwapItemData(self, aImage)
9529
9530 def IsOnLayer(self, aLayer):
9531 r"""IsOnLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer) -> bool"""
9532 return _pcbnew.BOARD_ITEM_IsOnLayer(self, aLayer)
9533
9534 def IsKnockout(self):
9535 r"""IsKnockout(BOARD_ITEM self) -> bool"""
9536 return _pcbnew.BOARD_ITEM_IsKnockout(self)
9537
9538 def SetIsKnockout(self, aKnockout):
9539 r"""SetIsKnockout(BOARD_ITEM self, bool aKnockout)"""
9540 return _pcbnew.BOARD_ITEM_SetIsKnockout(self, aKnockout)
9541
9542 def IsLocked(self):
9543 r"""IsLocked(BOARD_ITEM self) -> bool"""
9544 return _pcbnew.BOARD_ITEM_IsLocked(self)
9545
9546 def SetLocked(self, aLocked):
9547 r"""SetLocked(BOARD_ITEM self, bool aLocked)"""
9548 return _pcbnew.BOARD_ITEM_SetLocked(self, aLocked)
9549
9551 r"""DeleteStructure(BOARD_ITEM self)"""
9552 return _pcbnew.BOARD_ITEM_DeleteStructure(self)
9553
9554 def Move(self, aMoveVector):
9555 r"""Move(BOARD_ITEM self, VECTOR2I aMoveVector)"""
9556 return _pcbnew.BOARD_ITEM_Move(self, aMoveVector)
9557
9558 def Rotate(self, aRotCentre, aAngle):
9559 r"""Rotate(BOARD_ITEM self, VECTOR2I aRotCentre, EDA_ANGLE aAngle)"""
9560 return _pcbnew.BOARD_ITEM_Rotate(self, aRotCentre, aAngle)
9561
9562 def Flip(self, aCentre, aFlipLeftRight):
9563 r"""Flip(BOARD_ITEM self, VECTOR2I aCentre, bool aFlipLeftRight)"""
9564 return _pcbnew.BOARD_ITEM_Flip(self, aCentre, aFlipLeftRight)
9565
9566 def GetBoard(self, *args):
9567 r"""
9568 GetBoard(BOARD_ITEM self) -> BOARD
9569 GetBoard(BOARD_ITEM self) -> BOARD
9570 """
9571 return _pcbnew.BOARD_ITEM_GetBoard(self, *args)
9572
9573 def GetLayerName(self):
9574 r"""GetLayerName(BOARD_ITEM self) -> wxString"""
9575 return _pcbnew.BOARD_ITEM_GetLayerName(self)
9576
9577 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
9578 r"""TransformShapeToPolygon(BOARD_ITEM self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
9579 return _pcbnew.BOARD_ITEM_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
9580
9581 def Cast(self):
9582
9583 ct = self.GetClass()
9584
9585 if ct=="PCB_TEXT":
9586 return Cast_to_PCB_TEXT(self)
9587 if ct=="PCB_TEXTBOX":
9588 return Cast_to_PCB_TEXTBOX(self)
9589 elif ct=="BOARD":
9590 return Cast_to_BOARD(self)
9591 elif ct=="PCB_DIM_ALIGNED":
9592 return Cast_to_PCB_DIM_ALIGNED(self)
9593 elif ct=="PCB_DIM_LEADER":
9594 return Cast_to_PCB_DIM_LEADER(self)
9595 elif ct=="PCB_DIM_CENTER":
9596 return Cast_to_PCB_DIM_CENTER(self)
9597 elif ct=="PCB_DIM_RADIAL":
9598 return Cast_to_PCB_DIM_RADIAL(self)
9599 elif ct=="PCB_DIM_ORTHOGONAL":
9600 return Cast_to_PCB_DIM_ORTHOGONAL(self)
9601 elif ct=="PCB_SHAPE":
9602 return Cast_to_PCB_SHAPE(self)
9603 elif ct=="MGRAPHIC":
9604 return Cast_to_FP_SHAPE(self)
9605 elif ct=="FOOTPRINT":
9606 return Cast_to_FOOTPRINT(self)
9607 elif ct=="PCB_GROUP":
9608 return Cast_to_PCB_GROUP(self)
9609 elif ct=="PAD":
9610 return Cast_to_PAD(self)
9611 elif ct=="FP_TEXT":
9612 return Cast_to_FP_TEXT(self)
9613 elif ct=="FP_TEXTBOX":
9614 return Cast_to_FP_TEXTBOX(self)
9615 elif ct=="PCB_VIA":
9616 return Cast_to_PCB_VIA(self)
9617 elif ct=="PCB_TRACK":
9618 return Cast_to_PCB_TRACK(self)
9619 elif ct=="PCB_ARC":
9620 return Cast_to_PCB_ARC(self)
9621 elif ct=="PCB_TARGET":
9622 return Cast_to_PCB_TARGET(self)
9623 elif ct=="PCB_BITMAP":
9624 return Cast_to_PCB_BITMAP(self)
9625 elif ct=="ZONE":
9626 return Cast_to_ZONE(self)
9627 else:
9628 raise TypeError("Unsupported drawing class: %s" % ct)
9629
9630 """
9631 Needed to cast BOARD_ITEM::Duplicate() to the suitable type
9632 """
9633 def Duplicate(self):
9634 ct = self.GetClass()
9635 if ct=="BOARD":
9636 return None
9637 else:
9638 return Cast_to_BOARD_ITEM( _pcbnew.BOARD_ITEM_Duplicate(self) ).Cast()
9639
9640 def SetPos(self,p):
9641 self.SetPosition(p)
9642 self.SetPos0(p)
9643
9644 def SetStartEnd(self,start,end):
9645 self.SetStart(start)
9646 self.SetStart0(start)
9647 self.SetEnd(end)
9648 self.SetEnd0(end)
9649
9650
9651# Register BOARD_ITEM in _pcbnew:
9652_pcbnew.BOARD_ITEM_swigregister(BOARD_ITEM)
9653
9655 r"""Proxy of C++ DELETED_BOARD_ITEM class."""
9656
9657 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9658 __repr__ = _swig_repr
9659
9660 def __init__(self):
9661 r"""__init__(DELETED_BOARD_ITEM self) -> DELETED_BOARD_ITEM"""
9662 _pcbnew.DELETED_BOARD_ITEM_swiginit(self, _pcbnew.new_DELETED_BOARD_ITEM())
9663
9664 @staticmethod
9666 r"""GetInstance() -> DELETED_BOARD_ITEM"""
9667 return _pcbnew.DELETED_BOARD_ITEM_GetInstance()
9668 __swig_destroy__ = _pcbnew.delete_DELETED_BOARD_ITEM
9669
9670# Register DELETED_BOARD_ITEM in _pcbnew:
9671_pcbnew.DELETED_BOARD_ITEM_swigregister(DELETED_BOARD_ITEM)
9672
9674 r"""DELETED_BOARD_ITEM_GetInstance() -> DELETED_BOARD_ITEM"""
9675 return _pcbnew.DELETED_BOARD_ITEM_GetInstance()
9676
9677IS_CHANGED = _pcbnew.IS_CHANGED
9678
9679IS_LINKED = _pcbnew.IS_LINKED
9680
9681IN_EDIT = _pcbnew.IN_EDIT
9682
9683IS_MOVING = _pcbnew.IS_MOVING
9684
9685IS_NEW = _pcbnew.IS_NEW
9686
9687IS_BROKEN = _pcbnew.IS_BROKEN
9688
9689IS_DELETED = _pcbnew.IS_DELETED
9690
9691STARTPOINT = _pcbnew.STARTPOINT
9692
9693ENDPOINT = _pcbnew.ENDPOINT
9694
9695SELECTED = _pcbnew.SELECTED
9696
9697SELECTED_BY_DRAG = _pcbnew.SELECTED_BY_DRAG
9698
9699STRUCT_DELETED = _pcbnew.STRUCT_DELETED
9700
9701CANDIDATE = _pcbnew.CANDIDATE
9702
9703SKIP_STRUCT = _pcbnew.SKIP_STRUCT
9704
9705IS_PASTED = _pcbnew.IS_PASTED
9706
9707IS_SHOWN_AS_BITMAP = _pcbnew.IS_SHOWN_AS_BITMAP
9708
9709COURTYARD_CONFLICT = _pcbnew.COURTYARD_CONFLICT
9710
9711MALFORMED_F_COURTYARD = _pcbnew.MALFORMED_F_COURTYARD
9712
9713MALFORMED_B_COURTYARD = _pcbnew.MALFORMED_B_COURTYARD
9714
9715MALFORMED_COURTYARDS = _pcbnew.MALFORMED_COURTYARDS
9716
9717BEGIN_ONPAD = _pcbnew.BEGIN_ONPAD
9718
9719END_ONPAD = _pcbnew.END_ONPAD
9720
9721HOLE_PROXY = _pcbnew.HOLE_PROXY
9722
9723IS_ROLLOVER = _pcbnew.IS_ROLLOVER
9724
9725SHOW_ELEC_TYPE = _pcbnew.SHOW_ELEC_TYPE
9726
9727BRIGHTENED = _pcbnew.BRIGHTENED
9728
9729IS_MODIFIED_CHILD = _pcbnew.IS_MODIFIED_CHILD
9730
9731UR_TRANSIENT = _pcbnew.UR_TRANSIENT
9732
9733IS_DANGLING = _pcbnew.IS_DANGLING
9734
9735ENTERED = _pcbnew.ENTERED
9736
9738 r"""Proxy of C++ UNITS_PROVIDER class."""
9739
9740 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9741 __repr__ = _swig_repr
9742
9743 def __init__(self, aIuScale, aUnits):
9744 r"""__init__(UNITS_PROVIDER self, EDA_IU_SCALE aIuScale, EDA_UNITS aUnits) -> UNITS_PROVIDER"""
9745 _pcbnew.UNITS_PROVIDER_swiginit(self, _pcbnew.new_UNITS_PROVIDER(aIuScale, aUnits))
9746 __swig_destroy__ = _pcbnew.delete_UNITS_PROVIDER
9747
9748 def GetUserUnits(self):
9749 r"""GetUserUnits(UNITS_PROVIDER self) -> EDA_UNITS"""
9750 return _pcbnew.UNITS_PROVIDER_GetUserUnits(self)
9751
9752 def SetUserUnits(self, aUnits):
9753 r"""SetUserUnits(UNITS_PROVIDER self, EDA_UNITS aUnits)"""
9754 return _pcbnew.UNITS_PROVIDER_SetUserUnits(self, aUnits)
9755
9756 def GetIuScale(self):
9757 r"""GetIuScale(UNITS_PROVIDER self) -> EDA_IU_SCALE"""
9758 return _pcbnew.UNITS_PROVIDER_GetIuScale(self)
9759
9761 r"""GetOriginTransforms(UNITS_PROVIDER self) -> ORIGIN_TRANSFORMS &"""
9762 return _pcbnew.UNITS_PROVIDER_GetOriginTransforms(self)
9763
9764 def StringFromValue(self, *args):
9765 r"""
9766 StringFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString
9767 StringFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=False) -> wxString
9768 """
9769 return _pcbnew.UNITS_PROVIDER_StringFromValue(self, *args)
9770
9771 def MessageTextFromValue(self, *args):
9772 r"""
9773 MessageTextFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
9774 MessageTextFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
9775 """
9776 return _pcbnew.UNITS_PROVIDER_MessageTextFromValue(self, *args)
9777
9778 def ValueFromString(self, *args):
9779 r"""ValueFromString(UNITS_PROVIDER self, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> int"""
9780 return _pcbnew.UNITS_PROVIDER_ValueFromString(self, *args)
9781
9782 def AngleValueFromString(self, aTextValue):
9783 r"""AngleValueFromString(UNITS_PROVIDER self, wxString aTextValue) -> EDA_ANGLE"""
9784 return _pcbnew.UNITS_PROVIDER_AngleValueFromString(self, aTextValue)
9785
9786# Register UNITS_PROVIDER in _pcbnew:
9787_pcbnew.UNITS_PROVIDER_swigregister(UNITS_PROVIDER)
9788
9789
9791 r"""Cast_to_BOARD_ITEM(EDA_ITEM base) -> BOARD_ITEM"""
9792 return _pcbnew.Cast_to_BOARD_ITEM(base)
9793
9795 r"""Cast_to_PCB_TEXT(BOARD_ITEM arg1) -> PCB_TEXT"""
9796 return _pcbnew.Cast_to_PCB_TEXT(arg1)
9797
9799 r"""Cast_to_PCB_TEXTBOX(BOARD_ITEM arg1) -> PCB_TEXTBOX"""
9800 return _pcbnew.Cast_to_PCB_TEXTBOX(arg1)
9801
9803 r"""Cast_to_PCB_DIM_ALIGNED(BOARD_ITEM arg1) -> PCB_DIM_ALIGNED"""
9804 return _pcbnew.Cast_to_PCB_DIM_ALIGNED(arg1)
9805
9807 r"""Cast_to_PCB_DIM_ORTHOGONAL(BOARD_ITEM arg1) -> PCB_DIM_ORTHOGONAL"""
9808 return _pcbnew.Cast_to_PCB_DIM_ORTHOGONAL(arg1)
9809
9811 r"""Cast_to_PCB_DIM_LEADER(BOARD_ITEM arg1) -> PCB_DIM_LEADER"""
9812 return _pcbnew.Cast_to_PCB_DIM_LEADER(arg1)
9813
9815 r"""Cast_to_PCB_DIM_CENTER(BOARD_ITEM arg1) -> PCB_DIM_CENTER"""
9816 return _pcbnew.Cast_to_PCB_DIM_CENTER(arg1)
9817
9819 r"""Cast_to_PCB_DIM_RADIAL(BOARD_ITEM arg1) -> PCB_DIM_RADIAL"""
9820 return _pcbnew.Cast_to_PCB_DIM_RADIAL(arg1)
9821
9823 r"""Cast_to_FOOTPRINT(BOARD_ITEM arg1) -> FOOTPRINT"""
9824 return _pcbnew.Cast_to_FOOTPRINT(arg1)
9825
9827 r"""Cast_to_PCB_GROUP(BOARD_ITEM arg1) -> PCB_GROUP"""
9828 return _pcbnew.Cast_to_PCB_GROUP(arg1)
9829
9831 r"""Cast_to_FP_TEXT(BOARD_ITEM arg1) -> FP_TEXT"""
9832 return _pcbnew.Cast_to_FP_TEXT(arg1)
9833
9835 r"""Cast_to_FP_TEXTBOX(BOARD_ITEM arg1) -> FP_TEXTBOX"""
9836 return _pcbnew.Cast_to_FP_TEXTBOX(arg1)
9837
9839 r"""Cast_to_PCB_SHAPE(BOARD_ITEM arg1) -> PCB_SHAPE"""
9840 return _pcbnew.Cast_to_PCB_SHAPE(arg1)
9841
9843 r"""Cast_to_PCB_MARKER(BOARD_ITEM arg1) -> PCB_MARKER"""
9844 return _pcbnew.Cast_to_PCB_MARKER(arg1)
9845
9847 r"""Cast_to_BOARD(BOARD_ITEM arg1) -> BOARD"""
9848 return _pcbnew.Cast_to_BOARD(arg1)
9849
9851 r"""Cast_to_FP_SHAPE(BOARD_ITEM arg1) -> FP_SHAPE"""
9852 return _pcbnew.Cast_to_FP_SHAPE(arg1)
9853
9854def Cast_to_PAD(arg1):
9855 r"""Cast_to_PAD(BOARD_ITEM arg1) -> PAD"""
9856 return _pcbnew.Cast_to_PAD(arg1)
9857
9859 r"""Cast_to_PCB_TRACK(BOARD_ITEM arg1) -> PCB_TRACK"""
9860 return _pcbnew.Cast_to_PCB_TRACK(arg1)
9861
9863 r"""Cast_to_PCB_VIA(BOARD_ITEM arg1) -> PCB_VIA"""
9864 return _pcbnew.Cast_to_PCB_VIA(arg1)
9865
9867 r"""Cast_to_PCB_ARC(BOARD_ITEM arg1) -> PCB_ARC"""
9868 return _pcbnew.Cast_to_PCB_ARC(arg1)
9869
9871 r"""Cast_to_ZONE(BOARD_ITEM arg1) -> ZONE"""
9872 return _pcbnew.Cast_to_ZONE(arg1)
9873
9875 r"""Cast_to_FP_ZONE(BOARD_ITEM arg1) -> FP_ZONE"""
9876 return _pcbnew.Cast_to_FP_ZONE(arg1)
9877
9879 r"""Cast_to_PCB_TARGET(BOARD_ITEM arg1) -> PCB_TARGET"""
9880 return _pcbnew.Cast_to_PCB_TARGET(arg1)
9881
9883 r"""Cast_to_PCB_BITMAP(BOARD_ITEM arg1) -> PCB_BITMAP"""
9884 return _pcbnew.Cast_to_PCB_BITMAP(arg1)
9885ADD_MODE_INSERT = _pcbnew.ADD_MODE_INSERT
9886
9887ADD_MODE_APPEND = _pcbnew.ADD_MODE_APPEND
9888
9889ADD_MODE_BULK_APPEND = _pcbnew.ADD_MODE_BULK_APPEND
9890
9891ADD_MODE_BULK_INSERT = _pcbnew.ADD_MODE_BULK_INSERT
9892
9893REMOVE_MODE_NORMAL = _pcbnew.REMOVE_MODE_NORMAL
9894
9895REMOVE_MODE_BULK = _pcbnew.REMOVE_MODE_BULK
9896
9898 r"""Proxy of C++ BOARD_ITEM_CONTAINER class."""
9899
9900 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9901
9902 def __init__(self, *args, **kwargs):
9903 raise AttributeError("No constructor defined - class is abstract")
9904 __repr__ = _swig_repr
9905
9906 def AddNative(self, *args):
9907 r"""AddNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
9908 return _pcbnew.BOARD_ITEM_CONTAINER_AddNative(self, *args)
9909
9910 def RemoveNative(self, *args):
9911 r"""RemoveNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
9912 return _pcbnew.BOARD_ITEM_CONTAINER_RemoveNative(self, *args)
9913
9914 def DeleteNative(self, aItem):
9915 r"""DeleteNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)"""
9916 return _pcbnew.BOARD_ITEM_CONTAINER_DeleteNative(self, aItem)
9917
9919 r"""GetZoneSettings(BOARD_ITEM_CONTAINER self) -> ZONE_SETTINGS"""
9920 return _pcbnew.BOARD_ITEM_CONTAINER_GetZoneSettings(self)
9921
9922 def SetZoneSettings(self, aSettings):
9923 r"""SetZoneSettings(BOARD_ITEM_CONTAINER self, ZONE_SETTINGS aSettings)"""
9924 return _pcbnew.BOARD_ITEM_CONTAINER_SetZoneSettings(self, aSettings)
9925
9926 def Add(self,item):
9927 """
9928 Add a BOARD_ITEM to this BOARD_ITEM_CONTAINER, clear the thisown to prevent
9929 python from deleting the object in the garbage collector
9930 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, BOARD_ADD_MODE aMode=BOARD_ADD_MODE::INSERT)
9931 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)
9932 """
9933 item.thisown=0
9934 self.AddNative(item)
9935
9936 def Remove(self,item):
9937 """
9938 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
9939 the python wrapper owns the C++ BOARD_ITEM
9940 Remove(self, BOARD_ITEM)
9941 """
9942 self.RemoveNative(item)
9943 if (not IsActionRunning()):
9944 item.thisown=1
9945
9946 def Delete(self,item):
9947 """
9948 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
9949 the python wrapper does not owns the C++ BOARD_ITEM
9950 Delete(self, BOARD_ITEM)
9951 """
9952 item.thisown=0 # C++'s BOARD_ITEM_CONTAINER::Delete() will delete
9953 self.DeleteNative(item)
9954 item.this = None
9955
9956 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM_CONTAINER
9957
9958# Register BOARD_ITEM_CONTAINER in _pcbnew:
9959_pcbnew.BOARD_ITEM_CONTAINER_swigregister(BOARD_ITEM_CONTAINER)
9960
9962 r"""Proxy of C++ BOARD_CONNECTED_ITEM class."""
9963
9964 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9965
9966 def __init__(self, *args, **kwargs):
9967 raise AttributeError("No constructor defined - class is abstract")
9968 __repr__ = _swig_repr
9969
9970 @staticmethod
9971 def ClassOf(aItem):
9972 r"""ClassOf(EDA_ITEM aItem) -> bool"""
9973 return _pcbnew.BOARD_CONNECTED_ITEM_ClassOf(aItem)
9974
9975 def GetNet(self):
9976 r"""GetNet(BOARD_CONNECTED_ITEM self) -> NETINFO_ITEM"""
9977 return _pcbnew.BOARD_CONNECTED_ITEM_GetNet(self)
9978
9979 def SetNet(self, aNetInfo):
9980 r"""SetNet(BOARD_CONNECTED_ITEM self, NETINFO_ITEM aNetInfo)"""
9981 return _pcbnew.BOARD_CONNECTED_ITEM_SetNet(self, aNetInfo)
9982
9983 def GetNetCode(self):
9984 r"""GetNetCode(BOARD_CONNECTED_ITEM self) -> int"""
9985 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetCode(self)
9986
9987 def SetNetCode(self, *args):
9988 r"""
9989 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode, bool aNoAssert) -> bool
9990 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode)
9991 """
9992 return _pcbnew.BOARD_CONNECTED_ITEM_SetNetCode(self, *args)
9993
9994 def GetNetname(self):
9995 r"""GetNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
9996 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetname(self)
9997
9998 def GetNetnameMsg(self):
9999 r"""GetNetnameMsg(BOARD_CONNECTED_ITEM self) -> wxString"""
10000 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetnameMsg(self)
10001
10003 r"""GetShortNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10004 return _pcbnew.BOARD_CONNECTED_ITEM_GetShortNetname(self)
10005
10007 r"""GetUnescapedShortNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10008 return _pcbnew.BOARD_CONNECTED_ITEM_GetUnescapedShortNetname(self)
10009
10010 def GetOwnClearance(self, aLayer, aSource=None):
10011 r"""GetOwnClearance(BOARD_CONNECTED_ITEM self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
10012 return _pcbnew.BOARD_CONNECTED_ITEM_GetOwnClearance(self, aLayer, aSource)
10013
10014 def GetLocalClearanceOverrides(self, aSource):
10015 r"""GetLocalClearanceOverrides(BOARD_CONNECTED_ITEM self, wxString aSource) -> int"""
10016 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalClearanceOverrides(self, aSource)
10017
10018 def GetLocalClearance(self, aSource):
10019 r"""GetLocalClearance(BOARD_CONNECTED_ITEM self, wxString aSource) -> int"""
10020 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalClearance(self, aSource)
10021
10023 r"""GetEffectiveNetClass(BOARD_CONNECTED_ITEM self) -> NETCLASS"""
10024 return _pcbnew.BOARD_CONNECTED_ITEM_GetEffectiveNetClass(self)
10025
10027 r"""GetNetClassName(BOARD_CONNECTED_ITEM self) -> wxString"""
10028 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetClassName(self)
10029
10030 def SetLocalRatsnestVisible(self, aVisible):
10031 r"""SetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self, bool aVisible)"""
10032 return _pcbnew.BOARD_CONNECTED_ITEM_SetLocalRatsnestVisible(self, aVisible)
10033
10035 r"""GetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self) -> bool"""
10036 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalRatsnestVisible(self)
10037 __swig_destroy__ = _pcbnew.delete_BOARD_CONNECTED_ITEM
10038
10039# Register BOARD_CONNECTED_ITEM in _pcbnew:
10040_pcbnew.BOARD_CONNECTED_ITEM_swigregister(BOARD_CONNECTED_ITEM)
10041
10043 r"""BOARD_CONNECTED_ITEM_ClassOf(EDA_ITEM aItem) -> bool"""
10044 return _pcbnew.BOARD_CONNECTED_ITEM_ClassOf(aItem)
10045
10047 r"""Proxy of C++ std::map< wxString,std::shared_ptr< NETCLASS > > class."""
10048
10049 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10050 __repr__ = _swig_repr
10051
10052 def iterator(self):
10053 r"""iterator(netclasses_map self) -> SwigPyIterator"""
10054 return _pcbnew.netclasses_map_iterator(self)
10055 def __iter__(self):
10056 return self.iterator()
10057
10058 def __nonzero__(self):
10059 r"""__nonzero__(netclasses_map self) -> bool"""
10060 return _pcbnew.netclasses_map___nonzero__(self)
10061
10062 def __bool__(self):
10063 r"""__bool__(netclasses_map self) -> bool"""
10064 return _pcbnew.netclasses_map___bool__(self)
10065
10066 def __len__(self):
10067 r"""__len__(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10068 return _pcbnew.netclasses_map___len__(self)
10069 def __iter__(self):
10070 return self.key_iterator()
10071 def iterkeys(self):
10072 return self.key_iterator()
10073 def itervalues(self):
10074 return self.value_iterator()
10075 def iteritems(self):
10076 return self.iterator()
10077
10078 def __getitem__(self, key):
10079 r"""__getitem__(netclasses_map self, wxString key) -> std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const &"""
10080 return _pcbnew.netclasses_map___getitem__(self, key)
10081
10082 def __delitem__(self, key):
10083 r"""__delitem__(netclasses_map self, wxString key)"""
10084 return _pcbnew.netclasses_map___delitem__(self, key)
10085
10086 def has_key(self, key):
10087 r"""has_key(netclasses_map self, wxString key) -> bool"""
10088 return _pcbnew.netclasses_map_has_key(self, key)
10089
10090 def keys(self):
10091 r"""keys(netclasses_map self) -> PyObject *"""
10092 return _pcbnew.netclasses_map_keys(self)
10093
10094 def values(self):
10095 r"""values(netclasses_map self) -> PyObject *"""
10096 return _pcbnew.netclasses_map_values(self)
10097
10098 def items(self):
10099 r"""items(netclasses_map self) -> PyObject *"""
10100 return _pcbnew.netclasses_map_items(self)
10101
10102 def __contains__(self, key):
10103 r"""__contains__(netclasses_map self, wxString key) -> bool"""
10104 return _pcbnew.netclasses_map___contains__(self, key)
10105
10106 def key_iterator(self):
10107 r"""key_iterator(netclasses_map self) -> SwigPyIterator"""
10108 return _pcbnew.netclasses_map_key_iterator(self)
10109
10111 r"""value_iterator(netclasses_map self) -> SwigPyIterator"""
10112 return _pcbnew.netclasses_map_value_iterator(self)
10113
10114 def __setitem__(self, *args):
10115 r"""
10116 __setitem__(netclasses_map self, wxString key)
10117 __setitem__(netclasses_map self, wxString key, std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const & x)
10118 """
10119 return _pcbnew.netclasses_map___setitem__(self, *args)
10120
10121 def asdict(self):
10122 r"""asdict(netclasses_map self) -> PyObject *"""
10123 return _pcbnew.netclasses_map_asdict(self)
10124
10125 def __init__(self, *args):
10126 r"""
10127 __init__(netclasses_map self, std::less< wxString > const & other) -> netclasses_map
10128 __init__(netclasses_map self) -> netclasses_map
10129 __init__(netclasses_map self, netclasses_map other) -> netclasses_map
10130 """
10131 _pcbnew.netclasses_map_swiginit(self, _pcbnew.new_netclasses_map(*args))
10132
10133 def empty(self):
10134 r"""empty(netclasses_map self) -> bool"""
10135 return _pcbnew.netclasses_map_empty(self)
10136
10137 def size(self):
10138 r"""size(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10139 return _pcbnew.netclasses_map_size(self)
10140
10141 def swap(self, v):
10142 r"""swap(netclasses_map self, netclasses_map v)"""
10143 return _pcbnew.netclasses_map_swap(self, v)
10144
10145 def begin(self):
10146 r"""begin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10147 return _pcbnew.netclasses_map_begin(self)
10148
10149 def end(self):
10150 r"""end(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10151 return _pcbnew.netclasses_map_end(self)
10152
10153 def rbegin(self):
10154 r"""rbegin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10155 return _pcbnew.netclasses_map_rbegin(self)
10156
10157 def rend(self):
10158 r"""rend(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10159 return _pcbnew.netclasses_map_rend(self)
10160
10161 def clear(self):
10162 r"""clear(netclasses_map self)"""
10163 return _pcbnew.netclasses_map_clear(self)
10164
10165 def get_allocator(self):
10166 r"""get_allocator(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::allocator_type"""
10167 return _pcbnew.netclasses_map_get_allocator(self)
10168
10169 def count(self, x):
10170 r"""count(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10171 return _pcbnew.netclasses_map_count(self, x)
10172
10173 def erase(self, *args):
10174 r"""
10175 erase(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type
10176 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator position)
10177 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator first, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator last)
10178 """
10179 return _pcbnew.netclasses_map_erase(self, *args)
10180
10181 def find(self, x):
10182 r"""find(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10183 return _pcbnew.netclasses_map_find(self, x)
10184
10185 def lower_bound(self, x):
10186 r"""lower_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10187 return _pcbnew.netclasses_map_lower_bound(self, x)
10188
10189 def upper_bound(self, x):
10190 r"""upper_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10191 return _pcbnew.netclasses_map_upper_bound(self, x)
10192 __swig_destroy__ = _pcbnew.delete_netclasses_map
10193
10194# Register netclasses_map in _pcbnew:
10195_pcbnew.netclasses_map_swigregister(netclasses_map)
10196
10197DEFAULT_SILK_LINE_WIDTH = _pcbnew.DEFAULT_SILK_LINE_WIDTH
10198
10199DEFAULT_COPPER_LINE_WIDTH = _pcbnew.DEFAULT_COPPER_LINE_WIDTH
10200
10201DEFAULT_EDGE_WIDTH = _pcbnew.DEFAULT_EDGE_WIDTH
10202
10203DEFAULT_COURTYARD_WIDTH = _pcbnew.DEFAULT_COURTYARD_WIDTH
10204
10205DEFAULT_LINE_WIDTH = _pcbnew.DEFAULT_LINE_WIDTH
10206
10207DEFAULT_SILK_TEXT_SIZE = _pcbnew.DEFAULT_SILK_TEXT_SIZE
10208
10209DEFAULT_COPPER_TEXT_SIZE = _pcbnew.DEFAULT_COPPER_TEXT_SIZE
10210
10211DEFAULT_TEXT_SIZE = _pcbnew.DEFAULT_TEXT_SIZE
10212
10213DEFAULT_SILK_TEXT_WIDTH = _pcbnew.DEFAULT_SILK_TEXT_WIDTH
10214
10215DEFAULT_COPPER_TEXT_WIDTH = _pcbnew.DEFAULT_COPPER_TEXT_WIDTH
10216
10217DEFAULT_TEXT_WIDTH = _pcbnew.DEFAULT_TEXT_WIDTH
10218
10219DEFAULT_DIMENSION_ARROW_LENGTH = _pcbnew.DEFAULT_DIMENSION_ARROW_LENGTH
10220
10221DEFAULT_DIMENSION_EXTENSION_OFFSET = _pcbnew.DEFAULT_DIMENSION_EXTENSION_OFFSET
10222
10223DEFAULT_BOARD_THICKNESS_MM = _pcbnew.DEFAULT_BOARD_THICKNESS_MM
10224
10225DEFAULT_PCB_EDGE_THICKNESS = _pcbnew.DEFAULT_PCB_EDGE_THICKNESS
10226
10227DEFAULT_SOLDERMASK_EXPANSION = _pcbnew.DEFAULT_SOLDERMASK_EXPANSION
10228
10229DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE = _pcbnew.DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE
10230
10231DEFAULT_SOLDERMASK_MIN_WIDTH = _pcbnew.DEFAULT_SOLDERMASK_MIN_WIDTH
10232
10233DEFAULT_SOLDERPASTE_CLEARANCE = _pcbnew.DEFAULT_SOLDERPASTE_CLEARANCE
10234
10235DEFAULT_SOLDERPASTE_RATIO = _pcbnew.DEFAULT_SOLDERPASTE_RATIO
10236
10237DEFAULT_CUSTOMTRACKWIDTH = _pcbnew.DEFAULT_CUSTOMTRACKWIDTH
10238
10239DEFAULT_CUSTOMDPAIRWIDTH = _pcbnew.DEFAULT_CUSTOMDPAIRWIDTH
10240
10241DEFAULT_CUSTOMDPAIRGAP = _pcbnew.DEFAULT_CUSTOMDPAIRGAP
10242
10243DEFAULT_CUSTOMDPAIRVIAGAP = _pcbnew.DEFAULT_CUSTOMDPAIRVIAGAP
10244
10245DEFAULT_MINCLEARANCE = _pcbnew.DEFAULT_MINCLEARANCE
10246
10247DEFAULT_MINCONNECTION = _pcbnew.DEFAULT_MINCONNECTION
10248
10249DEFAULT_TRACKMINWIDTH = _pcbnew.DEFAULT_TRACKMINWIDTH
10250
10251DEFAULT_VIASMINSIZE = _pcbnew.DEFAULT_VIASMINSIZE
10252
10253DEFAULT_MINTHROUGHDRILL = _pcbnew.DEFAULT_MINTHROUGHDRILL
10254
10255DEFAULT_MICROVIASMINSIZE = _pcbnew.DEFAULT_MICROVIASMINSIZE
10256
10257DEFAULT_MICROVIASMINDRILL = _pcbnew.DEFAULT_MICROVIASMINDRILL
10258
10259DEFAULT_HOLETOHOLEMIN = _pcbnew.DEFAULT_HOLETOHOLEMIN
10260
10261DEFAULT_HOLECLEARANCE = _pcbnew.DEFAULT_HOLECLEARANCE
10262
10263DEFAULT_COPPEREDGECLEARANCE = _pcbnew.DEFAULT_COPPEREDGECLEARANCE
10264
10265LEGACY_COPPEREDGECLEARANCE = _pcbnew.LEGACY_COPPEREDGECLEARANCE
10266
10267DEFAULT_SILKCLEARANCE = _pcbnew.DEFAULT_SILKCLEARANCE
10268
10269DEFAULT_MINRESOLVEDSPOKES = _pcbnew.DEFAULT_MINRESOLVEDSPOKES
10270
10271MINIMUM_ERROR_SIZE_MM = _pcbnew.MINIMUM_ERROR_SIZE_MM
10272
10273MAXIMUM_ERROR_SIZE_MM = _pcbnew.MAXIMUM_ERROR_SIZE_MM
10274
10276 r"""Proxy of C++ VIA_DIMENSION class."""
10277
10278 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10279 __repr__ = _swig_repr
10280 m_Diameter = property(_pcbnew.VIA_DIMENSION_m_Diameter_get, _pcbnew.VIA_DIMENSION_m_Diameter_set, doc=r"""m_Diameter : int""")
10281 m_Drill = property(_pcbnew.VIA_DIMENSION_m_Drill_get, _pcbnew.VIA_DIMENSION_m_Drill_set, doc=r"""m_Drill : int""")
10282
10283 def __init__(self, *args):
10284 r"""
10285 __init__(VIA_DIMENSION self) -> VIA_DIMENSION
10286 __init__(VIA_DIMENSION self, int aDiameter, int aDrill) -> VIA_DIMENSION
10287 """
10288 _pcbnew.VIA_DIMENSION_swiginit(self, _pcbnew.new_VIA_DIMENSION(*args))
10289
10290 def __eq__(self, aOther):
10291 r"""__eq__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10292 return _pcbnew.VIA_DIMENSION___eq__(self, aOther)
10293
10294 def __lt__(self, aOther):
10295 r"""__lt__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10296 return _pcbnew.VIA_DIMENSION___lt__(self, aOther)
10297 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION
10298
10299# Register VIA_DIMENSION in _pcbnew:
10300_pcbnew.VIA_DIMENSION_swigregister(VIA_DIMENSION)
10301
10303 r"""Proxy of C++ DIFF_PAIR_DIMENSION class."""
10304
10305 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10306 __repr__ = _swig_repr
10307 m_Width = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Width_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Width_set, doc=r"""m_Width : int""")
10308 m_Gap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Gap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Gap_set, doc=r"""m_Gap : int""")
10309 m_ViaGap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_set, doc=r"""m_ViaGap : int""")
10310
10311 def __init__(self, *args):
10312 r"""
10313 __init__(DIFF_PAIR_DIMENSION self) -> DIFF_PAIR_DIMENSION
10314 __init__(DIFF_PAIR_DIMENSION self, int aWidth, int aGap, int aViaGap) -> DIFF_PAIR_DIMENSION
10315 """
10316 _pcbnew.DIFF_PAIR_DIMENSION_swiginit(self, _pcbnew.new_DIFF_PAIR_DIMENSION(*args))
10317
10318 def __eq__(self, aOther):
10319 r"""__eq__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10320 return _pcbnew.DIFF_PAIR_DIMENSION___eq__(self, aOther)
10321
10322 def __lt__(self, aOther):
10323 r"""__lt__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10324 return _pcbnew.DIFF_PAIR_DIMENSION___lt__(self, aOther)
10325 __swig_destroy__ = _pcbnew.delete_DIFF_PAIR_DIMENSION
10326
10327# Register DIFF_PAIR_DIMENSION in _pcbnew:
10328_pcbnew.DIFF_PAIR_DIMENSION_swigregister(DIFF_PAIR_DIMENSION)
10329
10330LAYER_CLASS_SILK = _pcbnew.LAYER_CLASS_SILK
10331
10332LAYER_CLASS_COPPER = _pcbnew.LAYER_CLASS_COPPER
10333
10334LAYER_CLASS_EDGES = _pcbnew.LAYER_CLASS_EDGES
10335
10336LAYER_CLASS_COURTYARD = _pcbnew.LAYER_CLASS_COURTYARD
10337
10338LAYER_CLASS_FAB = _pcbnew.LAYER_CLASS_FAB
10339
10340LAYER_CLASS_OTHERS = _pcbnew.LAYER_CLASS_OTHERS
10341
10342LAYER_CLASS_COUNT = _pcbnew.LAYER_CLASS_COUNT
10343
10345 r"""Proxy of C++ TEXT_ITEM_INFO class."""
10346
10347 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10348 __repr__ = _swig_repr
10349 m_Text = property(_pcbnew.TEXT_ITEM_INFO_m_Text_get, _pcbnew.TEXT_ITEM_INFO_m_Text_set, doc=r"""m_Text : wxString""")
10350 m_Visible = property(_pcbnew.TEXT_ITEM_INFO_m_Visible_get, _pcbnew.TEXT_ITEM_INFO_m_Visible_set, doc=r"""m_Visible : bool""")
10351 m_Layer = property(_pcbnew.TEXT_ITEM_INFO_m_Layer_get, _pcbnew.TEXT_ITEM_INFO_m_Layer_set, doc=r"""m_Layer : int""")
10352
10353 def __init__(self, aText, aVisible, aLayer):
10354 r"""__init__(TEXT_ITEM_INFO self, wxString aText, bool aVisible, int aLayer) -> TEXT_ITEM_INFO"""
10355 _pcbnew.TEXT_ITEM_INFO_swiginit(self, _pcbnew.new_TEXT_ITEM_INFO(aText, aVisible, aLayer))
10356 __swig_destroy__ = _pcbnew.delete_TEXT_ITEM_INFO
10357
10358# Register TEXT_ITEM_INFO in _pcbnew:
10359_pcbnew.TEXT_ITEM_INFO_swigregister(TEXT_ITEM_INFO)
10360
10362 r"""Proxy of C++ BOARD_DESIGN_SETTINGS class."""
10363
10364 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10365 __repr__ = _swig_repr
10366 __swig_destroy__ = _pcbnew.delete_BOARD_DESIGN_SETTINGS
10367
10368 def __init__(self, *args):
10369 r"""
10370 __init__(BOARD_DESIGN_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> BOARD_DESIGN_SETTINGS
10371 __init__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> BOARD_DESIGN_SETTINGS
10372 """
10373 _pcbnew.BOARD_DESIGN_SETTINGS_swiginit(self, _pcbnew.new_BOARD_DESIGN_SETTINGS(*args))
10374
10375 def LoadFromFile(self, *args):
10376 r"""LoadFromFile(BOARD_DESIGN_SETTINGS self, wxString aDirectory="") -> bool"""
10377 return _pcbnew.BOARD_DESIGN_SETTINGS_LoadFromFile(self, *args)
10378
10379 def GetStackupDescriptor(self, *args):
10380 r"""
10381 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP
10382 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP const &
10383 """
10384 return _pcbnew.BOARD_DESIGN_SETTINGS_GetStackupDescriptor(self, *args)
10385
10387 r"""GetTeadropParamsList(BOARD_DESIGN_SETTINGS self) -> TEARDROP_PARAMETERS_LIST *"""
10388 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTeadropParamsList(self)
10389
10390 def GetSeverity(self, aDRCErrorCode):
10391 r"""GetSeverity(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> SEVERITY"""
10392 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSeverity(self, aDRCErrorCode)
10393
10394 def Ignore(self, aDRCErrorCode):
10395 r"""Ignore(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> bool"""
10396 return _pcbnew.BOARD_DESIGN_SETTINGS_Ignore(self, aDRCErrorCode)
10397
10399 r"""GetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self) -> ZONE_SETTINGS"""
10400 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDefaultZoneSettings(self)
10401
10402 def SetDefaultZoneSettings(self, aSettings):
10403 r"""SetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self, ZONE_SETTINGS aSettings)"""
10404 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDefaultZoneSettings(self, aSettings)
10405
10407 r"""GetCurrentNetClassName(BOARD_DESIGN_SETTINGS self) -> wxString"""
10408 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentNetClassName(self)
10409
10411 r"""UseNetClassTrack(BOARD_DESIGN_SETTINGS self) -> bool"""
10412 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassTrack(self)
10413
10415 r"""UseNetClassVia(BOARD_DESIGN_SETTINGS self) -> bool"""
10416 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassVia(self)
10417
10419 r"""UseNetClassDiffPair(BOARD_DESIGN_SETTINGS self) -> bool"""
10420 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassDiffPair(self)
10421
10423 r"""GetBiggestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
10424 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBiggestClearanceValue(self)
10425
10427 r"""GetSmallestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
10428 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSmallestClearanceValue(self)
10429
10431 r"""GetTrackWidthIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10432 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTrackWidthIndex(self)
10433
10434 def SetTrackWidthIndex(self, aIndex):
10435 r"""SetTrackWidthIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10436 return _pcbnew.BOARD_DESIGN_SETTINGS_SetTrackWidthIndex(self, aIndex)
10437
10439 r"""GetCurrentTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10440 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentTrackWidth(self)
10441
10442 def SetCustomTrackWidth(self, aWidth):
10443 r"""SetCustomTrackWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
10444 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomTrackWidth(self, aWidth)
10445
10447 r"""GetCustomTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10448 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomTrackWidth(self)
10449
10451 r"""GetViaSizeIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10452 return _pcbnew.BOARD_DESIGN_SETTINGS_GetViaSizeIndex(self)
10453
10454 def SetViaSizeIndex(self, aIndex):
10455 r"""SetViaSizeIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10456 return _pcbnew.BOARD_DESIGN_SETTINGS_SetViaSizeIndex(self, aIndex)
10457
10459 r"""GetCurrentViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
10460 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaSize(self)
10461
10462 def SetCustomViaSize(self, aSize):
10463 r"""SetCustomViaSize(BOARD_DESIGN_SETTINGS self, int aSize)"""
10464 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaSize(self, aSize)
10465
10467 r"""GetCustomViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
10468 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaSize(self)
10469
10471 r"""GetCurrentViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
10472 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaDrill(self)
10473
10474 def SetCustomViaDrill(self, aDrill):
10475 r"""SetCustomViaDrill(BOARD_DESIGN_SETTINGS self, int aDrill)"""
10476 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaDrill(self, aDrill)
10477
10479 r"""GetCustomViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
10480 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaDrill(self)
10481
10482 def UseCustomTrackViaSize(self, *args):
10483 r"""
10484 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self, bool aEnabled)
10485 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self) -> bool
10486 """
10487 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomTrackViaSize(self, *args)
10488
10490 r"""GetDiffPairIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10491 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDiffPairIndex(self)
10492
10493 def SetDiffPairIndex(self, aIndex):
10494 r"""SetDiffPairIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10495 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDiffPairIndex(self, aIndex)
10496
10497 def SetCustomDiffPairWidth(self, aWidth):
10498 r"""SetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
10499 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairWidth(self, aWidth)
10500
10502 r"""GetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10503 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairWidth(self)
10504
10505 def SetCustomDiffPairGap(self, aGap):
10506 r"""SetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
10507 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairGap(self, aGap)
10508
10510 r"""GetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
10511 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairGap(self)
10512
10514 r"""SetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
10515 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairViaGap(self, aGap)
10516
10518 r"""GetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
10519 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairViaGap(self)
10520
10522 r"""
10523 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self, bool aEnabled)
10524 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self) -> bool
10525 """
10526 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomDiffPairDimensions(self, *args)
10527
10529 r"""GetCurrentDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10530 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairWidth(self)
10531
10533 r"""GetCurrentDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
10534 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairGap(self)
10535
10537 r"""GetCurrentDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
10538 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairViaGap(self)
10539
10541 r"""GetEnabledLayers(BOARD_DESIGN_SETTINGS self) -> LSET"""
10542 return _pcbnew.BOARD_DESIGN_SETTINGS_GetEnabledLayers(self)
10543
10544 def SetEnabledLayers(self, aMask):
10545 r"""SetEnabledLayers(BOARD_DESIGN_SETTINGS self, LSET aMask)"""
10546 return _pcbnew.BOARD_DESIGN_SETTINGS_SetEnabledLayers(self, aMask)
10547
10548 def IsLayerEnabled(self, aLayerId):
10549 r"""IsLayerEnabled(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayerId) -> bool"""
10550 return _pcbnew.BOARD_DESIGN_SETTINGS_IsLayerEnabled(self, aLayerId)
10551
10553 r"""GetCopperLayerCount(BOARD_DESIGN_SETTINGS self) -> int"""
10554 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCopperLayerCount(self)
10555
10556 def SetCopperLayerCount(self, aNewLayerCount):
10557 r"""SetCopperLayerCount(BOARD_DESIGN_SETTINGS self, int aNewLayerCount)"""
10558 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCopperLayerCount(self, aNewLayerCount)
10559
10561 r"""GetBoardThickness(BOARD_DESIGN_SETTINGS self) -> int"""
10562 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBoardThickness(self)
10563
10564 def SetBoardThickness(self, aThickness):
10565 r"""SetBoardThickness(BOARD_DESIGN_SETTINGS self, int aThickness)"""
10566 return _pcbnew.BOARD_DESIGN_SETTINGS_SetBoardThickness(self, aThickness)
10567
10568 def GetDRCEpsilon(self):
10569 r"""GetDRCEpsilon(BOARD_DESIGN_SETTINGS self) -> int"""
10570 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDRCEpsilon(self)
10571
10573 r"""GetHolePlatingThickness(BOARD_DESIGN_SETTINGS self) -> int"""
10574 return _pcbnew.BOARD_DESIGN_SETTINGS_GetHolePlatingThickness(self)
10575
10576 def GetLineThickness(self, aLayer):
10577 r"""GetLineThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
10578 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLineThickness(self, aLayer)
10579
10580 def GetTextSize(self, aLayer):
10581 r"""GetTextSize(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> wxSize"""
10582 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextSize(self, aLayer)
10583
10584 def GetTextThickness(self, aLayer):
10585 r"""GetTextThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
10586 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextThickness(self, aLayer)
10587
10588 def GetTextItalic(self, aLayer):
10589 r"""GetTextItalic(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
10590 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextItalic(self, aLayer)
10591
10592 def GetTextUpright(self, aLayer):
10593 r"""GetTextUpright(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
10594 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextUpright(self, aLayer)
10595
10596 def GetLayerClass(self, aLayer):
10597 r"""GetLayerClass(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
10598 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLayerClass(self, aLayer)
10599
10600 def SetAuxOrigin(self, aOrigin):
10601 r"""SetAuxOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
10602 return _pcbnew.BOARD_DESIGN_SETTINGS_SetAuxOrigin(self, aOrigin)
10603
10604 def GetAuxOrigin(self):
10605 r"""GetAuxOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
10606 return _pcbnew.BOARD_DESIGN_SETTINGS_GetAuxOrigin(self)
10607
10608 def SetGridOrigin(self, aOrigin):
10609 r"""SetGridOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
10610 return _pcbnew.BOARD_DESIGN_SETTINGS_SetGridOrigin(self, aOrigin)
10611
10612 def GetGridOrigin(self):
10613 r"""GetGridOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
10614 return _pcbnew.BOARD_DESIGN_SETTINGS_GetGridOrigin(self)
10615 m_TrackWidthList = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TrackWidthList_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TrackWidthList_set, doc=r"""m_TrackWidthList : std::vector<(int,std::allocator<(int)>)>""")
10616 m_ViasDimensionsList = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasDimensionsList_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasDimensionsList_set, doc=r"""m_ViasDimensionsList : std::vector<(VIA_DIMENSION,std::allocator<(VIA_DIMENSION)>)>""")
10617 m_DiffPairDimensionsList = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairDimensionsList_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairDimensionsList_set, doc=r"""m_DiffPairDimensionsList : std::vector<(DIFF_PAIR_DIMENSION,std::allocator<(DIFF_PAIR_DIMENSION)>)>""")
10618 m_TeardropParamsList = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_set, doc=r"""m_TeardropParamsList : TEARDROP_PARAMETERS_LIST""")
10619 m_CurrentViaType = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_set, doc=r"""m_CurrentViaType : VIATYPE""")
10620 m_UseConnectedTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_set, doc=r"""m_UseConnectedTrackWidth : bool""")
10621 m_TempOverrideTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_set, doc=r"""m_TempOverrideTrackWidth : bool""")
10622 m_MinClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_set, doc=r"""m_MinClearance : int""")
10623 m_MinConn = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_set, doc=r"""m_MinConn : int""")
10624 m_TrackMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_set, doc=r"""m_TrackMinWidth : int""")
10625 m_ViasMinAnnularWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_set, doc=r"""m_ViasMinAnnularWidth : int""")
10626 m_ViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_set, doc=r"""m_ViasMinSize : int""")
10627 m_MinThroughDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_set, doc=r"""m_MinThroughDrill : int""")
10628 m_MicroViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_set, doc=r"""m_MicroViasMinSize : int""")
10629 m_MicroViasMinDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_set, doc=r"""m_MicroViasMinDrill : int""")
10630 m_CopperEdgeClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_set, doc=r"""m_CopperEdgeClearance : int""")
10631 m_HoleClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_set, doc=r"""m_HoleClearance : int""")
10632 m_HoleToHoleMin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_set, doc=r"""m_HoleToHoleMin : int""")
10633 m_SilkClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_set, doc=r"""m_SilkClearance : int""")
10634 m_MinResolvedSpokes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_set, doc=r"""m_MinResolvedSpokes : int""")
10635 m_MinSilkTextHeight = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_set, doc=r"""m_MinSilkTextHeight : int""")
10636 m_MinSilkTextThickness = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_set, doc=r"""m_MinSilkTextThickness : int""")
10637 m_DRCSeverities = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DRCSeverities_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DRCSeverities_set, doc=r"""m_DRCSeverities : std::map<(int,SEVERITY,std::less<(int)>,std::allocator<(std::pair<(q(const).int,SEVERITY)>)>)>""")
10638 m_DrcExclusions = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DrcExclusions_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DrcExclusions_set, doc=r"""m_DrcExclusions : std::set<(wxString,std::less<(wxString)>,std::allocator<(wxString)>)>""")
10639 m_ZoneKeepExternalFillets = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_set, doc=r"""m_ZoneKeepExternalFillets : bool""")
10640 m_MaxError = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_set, doc=r"""m_MaxError : int""")
10641 m_SolderMaskExpansion = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_set, doc=r"""m_SolderMaskExpansion : int""")
10642 m_SolderMaskMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_set, doc=r"""m_SolderMaskMinWidth : int""")
10643 m_SolderMaskToCopperClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_set, doc=r"""m_SolderMaskToCopperClearance : int""")
10644 m_SolderPasteMargin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_set, doc=r"""m_SolderPasteMargin : int""")
10645 m_SolderPasteMarginRatio = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_set, doc=r"""m_SolderPasteMarginRatio : double""")
10646 m_AllowSoldermaskBridgesInFPs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_set, doc=r"""m_AllowSoldermaskBridgesInFPs : bool""")
10647 m_NetSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_NetSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_NetSettings_set, doc=r"""m_NetSettings : std::shared_ptr<(NET_SETTINGS)>""")
10648 m_DefaultFPTextItems = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DefaultFPTextItems_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DefaultFPTextItems_set, doc=r"""m_DefaultFPTextItems : std::vector<(TEXT_ITEM_INFO,std::allocator<(TEXT_ITEM_INFO)>)>""")
10649 m_LineThickness = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_LineThickness_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_LineThickness_set, doc=r"""m_LineThickness : a(LAYER_CLASS_COUNT).int""")
10650 m_TextSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TextSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TextSize_set, doc=r"""m_TextSize : a(LAYER_CLASS_COUNT).wxSize""")
10651 m_TextThickness = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TextThickness_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TextThickness_set, doc=r"""m_TextThickness : a(LAYER_CLASS_COUNT).int""")
10652 m_TextItalic = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TextItalic_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TextItalic_set, doc=r"""m_TextItalic : a(LAYER_CLASS_COUNT).bool""")
10653 m_TextUpright = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TextUpright_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TextUpright_set, doc=r"""m_TextUpright : a(LAYER_CLASS_COUNT).bool""")
10654 m_DimensionUnitsMode = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_set, doc=r"""m_DimensionUnitsMode : DIM_UNITS_MODE""")
10655 m_DimensionPrecision = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_set, doc=r"""m_DimensionPrecision : DIM_PRECISION""")
10656 m_DimensionUnitsFormat = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_set, doc=r"""m_DimensionUnitsFormat : DIM_UNITS_FORMAT""")
10657 m_DimensionSuppressZeroes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_set, doc=r"""m_DimensionSuppressZeroes : bool""")
10658 m_DimensionTextPosition = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_set, doc=r"""m_DimensionTextPosition : DIM_TEXT_POSITION""")
10659 m_DimensionKeepTextAligned = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_set, doc=r"""m_DimensionKeepTextAligned : bool""")
10660 m_DimensionArrowLength = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_set, doc=r"""m_DimensionArrowLength : int""")
10661 m_DimensionExtensionOffset = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_set, doc=r"""m_DimensionExtensionOffset : int""")
10662 m_HasStackup = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_set, doc=r"""m_HasStackup : bool""")
10663 m_UseHeightForLengthCalcs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_set, doc=r"""m_UseHeightForLengthCalcs : bool""")
10664
10665 def CloneFrom(self, aOther):
10666 r"""CloneFrom(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther)"""
10667 return _pcbnew.BOARD_DESIGN_SETTINGS_CloneFrom(self, aOther)
10668
10669# Register BOARD_DESIGN_SETTINGS in _pcbnew:
10670_pcbnew.BOARD_DESIGN_SETTINGS_swigregister(BOARD_DESIGN_SETTINGS)
10671
10673 r"""Proxy of C++ NET_SETTINGS class."""
10674
10675 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10676 __repr__ = _swig_repr
10677
10678 def __init__(self, aParent, aPath):
10679 r"""__init__(NET_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> NET_SETTINGS"""
10680 _pcbnew.NET_SETTINGS_swiginit(self, _pcbnew.new_NET_SETTINGS(aParent, aPath))
10681 __swig_destroy__ = _pcbnew.delete_NET_SETTINGS
10682 m_NetClasses = property(_pcbnew.NET_SETTINGS_m_NetClasses_get, _pcbnew.NET_SETTINGS_m_NetClasses_set, doc=r"""m_NetClasses : std::map<(wxString,std::shared_ptr<(NETCLASS)>,std::less<(wxString)>,std::allocator<(std::pair<(q(const).wxString,std::shared_ptr<(NETCLASS)>)>)>)>""")
10683 m_DefaultNetClass = property(_pcbnew.NET_SETTINGS_m_DefaultNetClass_get, _pcbnew.NET_SETTINGS_m_DefaultNetClass_set, doc=r"""m_DefaultNetClass : std::shared_ptr<(NETCLASS)>""")
10684 m_NetColorAssignments = property(_pcbnew.NET_SETTINGS_m_NetColorAssignments_get, _pcbnew.NET_SETTINGS_m_NetColorAssignments_set, doc=r"""m_NetColorAssignments : std::map<(wxString,KIGFX::COLOR4D,std::less<(wxString)>,std::allocator<(std::pair<(q(const).wxString,KIGFX::COLOR4D)>)>)>""")
10685
10686 def GetEffectiveNetClass(self, aNetName):
10687 r"""GetEffectiveNetClass(NET_SETTINGS self, wxString aNetName) -> std::shared_ptr< NETCLASS >"""
10688 return _pcbnew.NET_SETTINGS_GetEffectiveNetClass(self, aNetName)
10689
10690 @staticmethod
10691 def ParseBusVector(aBus, aName, aMemberList):
10692 r"""ParseBusVector(wxString aBus, wxString aName, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
10693 return _pcbnew.NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
10694
10695 @staticmethod
10696 def ParseBusGroup(aGroup, name, aMemberList):
10697 r"""ParseBusGroup(wxString aGroup, wxString name, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
10698 return _pcbnew.NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
10699
10700# Register NET_SETTINGS in _pcbnew:
10701_pcbnew.NET_SETTINGS_swigregister(NET_SETTINGS)
10702
10703def NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList):
10704 r"""NET_SETTINGS_ParseBusVector(wxString aBus, wxString aName, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
10705 return _pcbnew.NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
10706
10707def NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList):
10708 r"""NET_SETTINGS_ParseBusGroup(wxString aGroup, wxString name, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
10709 return _pcbnew.NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
10710
10712 r"""Proxy of C++ CN_DISJOINT_NET_ENTRY class."""
10713
10714 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10715 __repr__ = _swig_repr
10716 net = property(_pcbnew.CN_DISJOINT_NET_ENTRY_net_get, _pcbnew.CN_DISJOINT_NET_ENTRY_net_set, doc=r"""net : int""")
10717 a = property(_pcbnew.CN_DISJOINT_NET_ENTRY_a_get, _pcbnew.CN_DISJOINT_NET_ENTRY_a_set, doc=r"""a : p.BOARD_CONNECTED_ITEM""")
10718 b = property(_pcbnew.CN_DISJOINT_NET_ENTRY_b_get, _pcbnew.CN_DISJOINT_NET_ENTRY_b_set, doc=r"""b : p.BOARD_CONNECTED_ITEM""")
10719 anchorA = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_set, doc=r"""anchorA : VECTOR2I""")
10720 anchorB = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_set, doc=r"""anchorB : VECTOR2I""")
10721
10722 def __init__(self):
10723 r"""__init__(CN_DISJOINT_NET_ENTRY self) -> CN_DISJOINT_NET_ENTRY"""
10724 _pcbnew.CN_DISJOINT_NET_ENTRY_swiginit(self, _pcbnew.new_CN_DISJOINT_NET_ENTRY())
10725 __swig_destroy__ = _pcbnew.delete_CN_DISJOINT_NET_ENTRY
10726
10727# Register CN_DISJOINT_NET_ENTRY in _pcbnew:
10728_pcbnew.CN_DISJOINT_NET_ENTRY_swigregister(CN_DISJOINT_NET_ENTRY)
10729
10731 r"""Proxy of C++ RN_DYNAMIC_LINE class."""
10732
10733 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10734 __repr__ = _swig_repr
10735 netCode = property(_pcbnew.RN_DYNAMIC_LINE_netCode_get, _pcbnew.RN_DYNAMIC_LINE_netCode_set, doc=r"""netCode : int""")
10736 a = property(_pcbnew.RN_DYNAMIC_LINE_a_get, _pcbnew.RN_DYNAMIC_LINE_a_set, doc=r"""a : VECTOR2I""")
10737 b = property(_pcbnew.RN_DYNAMIC_LINE_b_get, _pcbnew.RN_DYNAMIC_LINE_b_set, doc=r"""b : VECTOR2I""")
10738
10739 def __init__(self):
10740 r"""__init__(RN_DYNAMIC_LINE self) -> RN_DYNAMIC_LINE"""
10741 _pcbnew.RN_DYNAMIC_LINE_swiginit(self, _pcbnew.new_RN_DYNAMIC_LINE())
10742 __swig_destroy__ = _pcbnew.delete_RN_DYNAMIC_LINE
10743
10744# Register RN_DYNAMIC_LINE in _pcbnew:
10745_pcbnew.RN_DYNAMIC_LINE_swigregister(RN_DYNAMIC_LINE)
10746
10747PROPAGATE_MODE_SKIP_CONFLICTS = _pcbnew.PROPAGATE_MODE_SKIP_CONFLICTS
10748
10749PROPAGATE_MODE_RESOLVE_CONFLICTS = _pcbnew.PROPAGATE_MODE_RESOLVE_CONFLICTS
10750
10752 r"""Proxy of C++ CONNECTIVITY_DATA class."""
10753
10754 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10755 __repr__ = _swig_repr
10756 __swig_destroy__ = _pcbnew.delete_CONNECTIVITY_DATA
10757
10758 def __init__(self, *args):
10759 r"""
10760 __init__(CONNECTIVITY_DATA self) -> CONNECTIVITY_DATA
10761 __init__(CONNECTIVITY_DATA self, std::shared_ptr< CONNECTIVITY_DATA > aGlobalConnectivity, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aLocalItems, bool aSkipRatsnestUpdate=False) -> CONNECTIVITY_DATA
10762 """
10763 _pcbnew.CONNECTIVITY_DATA_swiginit(self, _pcbnew.new_CONNECTIVITY_DATA(*args))
10764
10765 def Build(self, *args):
10766 r"""
10767 Build(CONNECTIVITY_DATA self, BOARD aBoard, PROGRESS_REPORTER * aReporter=None) -> bool
10768 Build(CONNECTIVITY_DATA self, std::shared_ptr< CONNECTIVITY_DATA > & aGlobalConnectivity, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aLocalItems)
10769 """
10770 return _pcbnew.CONNECTIVITY_DATA_Build(self, *args)
10771
10772 def Add(self, aItem):
10773 r"""Add(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
10774 return _pcbnew.CONNECTIVITY_DATA_Add(self, aItem)
10775
10776 def Remove(self, aItem):
10777 r"""Remove(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
10778 return _pcbnew.CONNECTIVITY_DATA_Remove(self, aItem)
10779
10780 def Update(self, aItem):
10781 r"""Update(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
10782 return _pcbnew.CONNECTIVITY_DATA_Update(self, aItem)
10783
10784 def Move(self, aDelta):
10785 r"""Move(CONNECTIVITY_DATA self, VECTOR2I aDelta)"""
10786 return _pcbnew.CONNECTIVITY_DATA_Move(self, aDelta)
10787
10788 def ClearRatsnest(self):
10789 r"""ClearRatsnest(CONNECTIVITY_DATA self)"""
10790 return _pcbnew.CONNECTIVITY_DATA_ClearRatsnest(self)
10791
10792 def GetNetCount(self):
10793 r"""GetNetCount(CONNECTIVITY_DATA self) -> int"""
10794 return _pcbnew.CONNECTIVITY_DATA_GetNetCount(self)
10795
10796 def GetRatsnestForNet(self, aNet):
10797 r"""GetRatsnestForNet(CONNECTIVITY_DATA self, int aNet) -> RN_NET *"""
10798 return _pcbnew.CONNECTIVITY_DATA_GetRatsnestForNet(self, aNet)
10799
10800 def PropagateNets(self, aCommit=None):
10801 r"""PropagateNets(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
10802 return _pcbnew.CONNECTIVITY_DATA_PropagateNets(self, aCommit)
10803
10804 def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False):
10805 r"""FillIsolatedIslandsMap(CONNECTIVITY_DATA self, std::map< ZONE *,std::map< PCB_LAYER_ID,ISOLATED_ISLANDS,std::less< PCB_LAYER_ID >,std::allocator< std::pair< PCB_LAYER_ID const,ISOLATED_ISLANDS > > >,std::less< ZONE * >,std::allocator< std::pair< ZONE *const,std::map< PCB_LAYER_ID,ISOLATED_ISLANDS,std::less< PCB_LAYER_ID >,std::allocator< std::pair< PCB_LAYER_ID const,ISOLATED_ISLANDS > > > > > > & aMap, bool aConnectivityAlreadyRebuilt=False)"""
10806 return _pcbnew.CONNECTIVITY_DATA_FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt)
10807
10808 def RecalculateRatsnest(self, aCommit=None):
10809 r"""RecalculateRatsnest(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
10810 return _pcbnew.CONNECTIVITY_DATA_RecalculateRatsnest(self, aCommit)
10811
10812 def GetUnconnectedCount(self, aVisibileOnly):
10813 r"""GetUnconnectedCount(CONNECTIVITY_DATA self, bool aVisibileOnly) -> unsigned int"""
10814 return _pcbnew.CONNECTIVITY_DATA_GetUnconnectedCount(self, aVisibileOnly)
10815
10816 def IsConnectedOnLayer(self, *args):
10817 r"""IsConnectedOnLayer(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, int aLayer, std::initializer_list< KICAD_T > const & aTypes={}) -> bool"""
10818 return _pcbnew.CONNECTIVITY_DATA_IsConnectedOnLayer(self, *args)
10819
10820 def GetNodeCount(self, aNet=-1):
10821 r"""GetNodeCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
10822 return _pcbnew.CONNECTIVITY_DATA_GetNodeCount(self, aNet)
10823
10824 def GetPadCount(self, aNet=-1):
10825 r"""GetPadCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
10826 return _pcbnew.CONNECTIVITY_DATA_GetPadCount(self, aNet)
10827
10828 def GetConnectedTracks(self, aItem):
10829 r"""GetConnectedTracks(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> TRACKS_VEC"""
10830 return _pcbnew.CONNECTIVITY_DATA_GetConnectedTracks(self, aItem)
10831
10832 def GetConnectedPads(self, *args):
10833 r"""
10834 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> PADS_VEC
10835 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, std::set< PAD *,std::less< PAD * >,std::allocator< PAD * > > * pads)
10836 """
10837 return _pcbnew.CONNECTIVITY_DATA_GetConnectedPads(self, *args)
10838
10839 def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0):
10840 r"""GetConnectedItemsAtAnchor(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, VECTOR2I aAnchor, std::initializer_list< KICAD_T > const & aTypes, int const & aMaxError=0) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
10841 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError)
10842
10843 def RunOnUnconnectedEdges(self, aFunc):
10844 r"""RunOnUnconnectedEdges(CONNECTIVITY_DATA self, std::function< bool (CN_EDGE &) > aFunc)"""
10845 return _pcbnew.CONNECTIVITY_DATA_RunOnUnconnectedEdges(self, aFunc)
10846
10847 def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None):
10848 r"""TestTrackEndpointDangling(CONNECTIVITY_DATA self, PCB_TRACK aTrack, bool aIgnoreTracksInPads, VECTOR2I aPos=None) -> bool"""
10849 return _pcbnew.CONNECTIVITY_DATA_TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos)
10850
10852 r"""ClearLocalRatsnest(CONNECTIVITY_DATA self)"""
10853 return _pcbnew.CONNECTIVITY_DATA_ClearLocalRatsnest(self)
10854
10856 r"""HideLocalRatsnest(CONNECTIVITY_DATA self)"""
10857 return _pcbnew.CONNECTIVITY_DATA_HideLocalRatsnest(self)
10858
10859 def ComputeLocalRatsnest(self, *args):
10860 r"""ComputeLocalRatsnest(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems, CONNECTIVITY_DATA aDynamicData, VECTOR2I aInternalOffset={ 0, 0 })"""
10861 return _pcbnew.CONNECTIVITY_DATA_ComputeLocalRatsnest(self, *args)
10862
10864 r"""GetLocalRatsnest(CONNECTIVITY_DATA self) -> std::vector< RN_DYNAMIC_LINE,std::allocator< RN_DYNAMIC_LINE > > const &"""
10865 return _pcbnew.CONNECTIVITY_DATA_GetLocalRatsnest(self)
10866
10867 def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False):
10868 r"""GetConnectedItems(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, std::initializer_list< KICAD_T > const & aTypes, bool aIgnoreNetcodes=False) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
10869 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes)
10870
10871 def GetNetItems(self, aNetCode, aTypes):
10872 r"""GetNetItems(CONNECTIVITY_DATA self, int aNetCode, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aTypes) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
10873 return _pcbnew.CONNECTIVITY_DATA_GetNetItems(self, aNetCode, aTypes)
10874
10875 def BlockRatsnestItems(self, aItems):
10876 r"""BlockRatsnestItems(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems)"""
10877 return _pcbnew.CONNECTIVITY_DATA_BlockRatsnestItems(self, aItems)
10878
10880 r"""GetConnectivityAlgo(CONNECTIVITY_DATA self) -> std::shared_ptr< CN_CONNECTIVITY_ALGO >"""
10881 return _pcbnew.CONNECTIVITY_DATA_GetConnectivityAlgo(self)
10882
10883 def GetLock(self):
10884 r"""GetLock(CONNECTIVITY_DATA self) -> KISPINLOCK &"""
10885 return _pcbnew.CONNECTIVITY_DATA_GetLock(self)
10886
10887 def MarkItemNetAsDirty(self, aItem):
10888 r"""MarkItemNetAsDirty(CONNECTIVITY_DATA self, BOARD_ITEM aItem)"""
10889 return _pcbnew.CONNECTIVITY_DATA_MarkItemNetAsDirty(self, aItem)
10890
10892 r"""RemoveInvalidRefs(CONNECTIVITY_DATA self)"""
10893 return _pcbnew.CONNECTIVITY_DATA_RemoveInvalidRefs(self)
10894
10895 def SetProgressReporter(self, aReporter):
10896 r"""SetProgressReporter(CONNECTIVITY_DATA self, PROGRESS_REPORTER * aReporter)"""
10897 return _pcbnew.CONNECTIVITY_DATA_SetProgressReporter(self, aReporter)
10898
10900 r"""GetNetclassMap(CONNECTIVITY_DATA self) -> std::map< int,wxString,std::less< int >,std::allocator< std::pair< int const,wxString > > > const &"""
10901 return _pcbnew.CONNECTIVITY_DATA_GetNetclassMap(self)
10902
10904 r"""GetFromToCache(CONNECTIVITY_DATA self) -> std::shared_ptr< FROM_TO_CACHE >"""
10905 return _pcbnew.CONNECTIVITY_DATA_GetFromToCache(self)
10906
10907# Register CONNECTIVITY_DATA in _pcbnew:
10908_pcbnew.CONNECTIVITY_DATA_swigregister(CONNECTIVITY_DATA)
10909
10911 r"""Proxy of C++ std::vector< PCB_MARKER * > class."""
10912
10913 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10914 __repr__ = _swig_repr
10915
10916 def iterator(self):
10917 r"""iterator(MARKERS self) -> SwigPyIterator"""
10918 return _pcbnew.MARKERS_iterator(self)
10919 def __iter__(self):
10920 return self.iterator()
10921
10922 def __nonzero__(self):
10923 r"""__nonzero__(MARKERS self) -> bool"""
10924 return _pcbnew.MARKERS___nonzero__(self)
10925
10926 def __bool__(self):
10927 r"""__bool__(MARKERS self) -> bool"""
10928 return _pcbnew.MARKERS___bool__(self)
10929
10930 def __len__(self):
10931 r"""__len__(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
10932 return _pcbnew.MARKERS___len__(self)
10933
10934 def __getslice__(self, i, j):
10935 r"""__getslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j) -> MARKERS"""
10936 return _pcbnew.MARKERS___getslice__(self, i, j)
10937
10938 def __setslice__(self, *args):
10939 r"""
10940 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)
10941 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j, MARKERS v)
10942 """
10943 return _pcbnew.MARKERS___setslice__(self, *args)
10944
10945 def __delslice__(self, i, j):
10946 r"""__delslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)"""
10947 return _pcbnew.MARKERS___delslice__(self, i, j)
10948
10949 def __delitem__(self, *args):
10950 r"""
10951 __delitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i)
10952 __delitem__(MARKERS self, PySliceObject * slice)
10953 """
10954 return _pcbnew.MARKERS___delitem__(self, *args)
10955
10956 def __getitem__(self, *args):
10957 r"""
10958 __getitem__(MARKERS self, PySliceObject * slice) -> MARKERS
10959 __getitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i) -> PCB_MARKER
10960 """
10961 return _pcbnew.MARKERS___getitem__(self, *args)
10962
10963 def __setitem__(self, *args):
10964 r"""
10965 __setitem__(MARKERS self, PySliceObject * slice, MARKERS v)
10966 __setitem__(MARKERS self, PySliceObject * slice)
10967 __setitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, PCB_MARKER x)
10968 """
10969 return _pcbnew.MARKERS___setitem__(self, *args)
10970
10971 def pop(self):
10972 r"""pop(MARKERS self) -> PCB_MARKER"""
10973 return _pcbnew.MARKERS_pop(self)
10974
10975 def append(self, x):
10976 r"""append(MARKERS self, PCB_MARKER x)"""
10977 return _pcbnew.MARKERS_append(self, x)
10978
10979 def empty(self):
10980 r"""empty(MARKERS self) -> bool"""
10981 return _pcbnew.MARKERS_empty(self)
10982
10983 def size(self):
10984 r"""size(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
10985 return _pcbnew.MARKERS_size(self)
10986
10987 def swap(self, v):
10988 r"""swap(MARKERS self, MARKERS v)"""
10989 return _pcbnew.MARKERS_swap(self, v)
10990
10991 def begin(self):
10992 r"""begin(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
10993 return _pcbnew.MARKERS_begin(self)
10994
10995 def end(self):
10996 r"""end(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
10997 return _pcbnew.MARKERS_end(self)
10998
10999 def rbegin(self):
11000 r"""rbegin(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11001 return _pcbnew.MARKERS_rbegin(self)
11002
11003 def rend(self):
11004 r"""rend(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11005 return _pcbnew.MARKERS_rend(self)
11006
11007 def clear(self):
11008 r"""clear(MARKERS self)"""
11009 return _pcbnew.MARKERS_clear(self)
11010
11011 def get_allocator(self):
11012 r"""get_allocator(MARKERS self) -> std::vector< PCB_MARKER * >::allocator_type"""
11013 return _pcbnew.MARKERS_get_allocator(self)
11014
11015 def pop_back(self):
11016 r"""pop_back(MARKERS self)"""
11017 return _pcbnew.MARKERS_pop_back(self)
11018
11019 def erase(self, *args):
11020 r"""
11021 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator pos) -> std::vector< PCB_MARKER * >::iterator
11022 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator first, std::vector< PCB_MARKER * >::iterator last) -> std::vector< PCB_MARKER * >::iterator
11023 """
11024 return _pcbnew.MARKERS_erase(self, *args)
11025
11026 def __init__(self, *args):
11027 r"""
11028 __init__(MARKERS self) -> MARKERS
11029 __init__(MARKERS self, MARKERS other) -> MARKERS
11030 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size) -> MARKERS
11031 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size, PCB_MARKER value) -> MARKERS
11032 """
11033 _pcbnew.MARKERS_swiginit(self, _pcbnew.new_MARKERS(*args))
11034
11035 def push_back(self, x):
11036 r"""push_back(MARKERS self, PCB_MARKER x)"""
11037 return _pcbnew.MARKERS_push_back(self, x)
11038
11039 def front(self):
11040 r"""front(MARKERS self) -> PCB_MARKER"""
11041 return _pcbnew.MARKERS_front(self)
11042
11043 def back(self):
11044 r"""back(MARKERS self) -> PCB_MARKER"""
11045 return _pcbnew.MARKERS_back(self)
11046
11047 def assign(self, n, x):
11048 r"""assign(MARKERS self, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)"""
11049 return _pcbnew.MARKERS_assign(self, n, x)
11050
11051 def resize(self, *args):
11052 r"""
11053 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size)
11054 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size, PCB_MARKER x)
11055 """
11056 return _pcbnew.MARKERS_resize(self, *args)
11057
11058 def insert(self, *args):
11059 r"""
11060 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, PCB_MARKER x) -> std::vector< PCB_MARKER * >::iterator
11061 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)
11062 """
11063 return _pcbnew.MARKERS_insert(self, *args)
11064
11065 def reserve(self, n):
11066 r"""reserve(MARKERS self, std::vector< PCB_MARKER * >::size_type n)"""
11067 return _pcbnew.MARKERS_reserve(self, n)
11068
11069 def capacity(self):
11070 r"""capacity(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11071 return _pcbnew.MARKERS_capacity(self)
11072 __swig_destroy__ = _pcbnew.delete_MARKERS
11073
11074# Register MARKERS in _pcbnew:
11075_pcbnew.MARKERS_swigregister(MARKERS)
11076
11078 r"""Proxy of C++ std::vector< ZONE * > class."""
11079
11080 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11081 __repr__ = _swig_repr
11082
11083 def iterator(self):
11084 r"""iterator(ZONES self) -> SwigPyIterator"""
11085 return _pcbnew.ZONES_iterator(self)
11086 def __iter__(self):
11087 return self.iterator()
11088
11089 def __nonzero__(self):
11090 r"""__nonzero__(ZONES self) -> bool"""
11091 return _pcbnew.ZONES___nonzero__(self)
11092
11093 def __bool__(self):
11094 r"""__bool__(ZONES self) -> bool"""
11095 return _pcbnew.ZONES___bool__(self)
11096
11097 def __len__(self):
11098 r"""__len__(ZONES self) -> std::vector< ZONE * >::size_type"""
11099 return _pcbnew.ZONES___len__(self)
11100
11101 def __getslice__(self, i, j):
11102 r"""__getslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j) -> ZONES"""
11103 return _pcbnew.ZONES___getslice__(self, i, j)
11104
11105 def __setslice__(self, *args):
11106 r"""
11107 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)
11108 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j, ZONES v)
11109 """
11110 return _pcbnew.ZONES___setslice__(self, *args)
11111
11112 def __delslice__(self, i, j):
11113 r"""__delslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)"""
11114 return _pcbnew.ZONES___delslice__(self, i, j)
11115
11116 def __delitem__(self, *args):
11117 r"""
11118 __delitem__(ZONES self, std::vector< ZONE * >::difference_type i)
11119 __delitem__(ZONES self, PySliceObject * slice)
11120 """
11121 return _pcbnew.ZONES___delitem__(self, *args)
11122
11123 def __getitem__(self, *args):
11124 r"""
11125 __getitem__(ZONES self, PySliceObject * slice) -> ZONES
11126 __getitem__(ZONES self, std::vector< ZONE * >::difference_type i) -> ZONE
11127 """
11128 return _pcbnew.ZONES___getitem__(self, *args)
11129
11130 def __setitem__(self, *args):
11131 r"""
11132 __setitem__(ZONES self, PySliceObject * slice, ZONES v)
11133 __setitem__(ZONES self, PySliceObject * slice)
11134 __setitem__(ZONES self, std::vector< ZONE * >::difference_type i, ZONE x)
11135 """
11136 return _pcbnew.ZONES___setitem__(self, *args)
11137
11138 def pop(self):
11139 r"""pop(ZONES self) -> ZONE"""
11140 return _pcbnew.ZONES_pop(self)
11141
11142 def append(self, x):
11143 r"""append(ZONES self, ZONE x)"""
11144 return _pcbnew.ZONES_append(self, x)
11145
11146 def empty(self):
11147 r"""empty(ZONES self) -> bool"""
11148 return _pcbnew.ZONES_empty(self)
11149
11150 def size(self):
11151 r"""size(ZONES self) -> std::vector< ZONE * >::size_type"""
11152 return _pcbnew.ZONES_size(self)
11153
11154 def swap(self, v):
11155 r"""swap(ZONES self, ZONES v)"""
11156 return _pcbnew.ZONES_swap(self, v)
11157
11158 def begin(self):
11159 r"""begin(ZONES self) -> std::vector< ZONE * >::iterator"""
11160 return _pcbnew.ZONES_begin(self)
11161
11162 def end(self):
11163 r"""end(ZONES self) -> std::vector< ZONE * >::iterator"""
11164 return _pcbnew.ZONES_end(self)
11165
11166 def rbegin(self):
11167 r"""rbegin(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
11168 return _pcbnew.ZONES_rbegin(self)
11169
11170 def rend(self):
11171 r"""rend(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
11172 return _pcbnew.ZONES_rend(self)
11173
11174 def clear(self):
11175 r"""clear(ZONES self)"""
11176 return _pcbnew.ZONES_clear(self)
11177
11178 def get_allocator(self):
11179 r"""get_allocator(ZONES self) -> std::vector< ZONE * >::allocator_type"""
11180 return _pcbnew.ZONES_get_allocator(self)
11181
11182 def pop_back(self):
11183 r"""pop_back(ZONES self)"""
11184 return _pcbnew.ZONES_pop_back(self)
11185
11186 def erase(self, *args):
11187 r"""
11188 erase(ZONES self, std::vector< ZONE * >::iterator pos) -> std::vector< ZONE * >::iterator
11189 erase(ZONES self, std::vector< ZONE * >::iterator first, std::vector< ZONE * >::iterator last) -> std::vector< ZONE * >::iterator
11190 """
11191 return _pcbnew.ZONES_erase(self, *args)
11192
11193 def __init__(self, *args):
11194 r"""
11195 __init__(ZONES self) -> ZONES
11196 __init__(ZONES self, ZONES other) -> ZONES
11197 __init__(ZONES self, std::vector< ZONE * >::size_type size) -> ZONES
11198 __init__(ZONES self, std::vector< ZONE * >::size_type size, ZONE value) -> ZONES
11199 """
11200 _pcbnew.ZONES_swiginit(self, _pcbnew.new_ZONES(*args))
11201
11202 def push_back(self, x):
11203 r"""push_back(ZONES self, ZONE x)"""
11204 return _pcbnew.ZONES_push_back(self, x)
11205
11206 def front(self):
11207 r"""front(ZONES self) -> ZONE"""
11208 return _pcbnew.ZONES_front(self)
11209
11210 def back(self):
11211 r"""back(ZONES self) -> ZONE"""
11212 return _pcbnew.ZONES_back(self)
11213
11214 def assign(self, n, x):
11215 r"""assign(ZONES self, std::vector< ZONE * >::size_type n, ZONE x)"""
11216 return _pcbnew.ZONES_assign(self, n, x)
11217
11218 def resize(self, *args):
11219 r"""
11220 resize(ZONES self, std::vector< ZONE * >::size_type new_size)
11221 resize(ZONES self, std::vector< ZONE * >::size_type new_size, ZONE x)
11222 """
11223 return _pcbnew.ZONES_resize(self, *args)
11224
11225 def insert(self, *args):
11226 r"""
11227 insert(ZONES self, std::vector< ZONE * >::iterator pos, ZONE x) -> std::vector< ZONE * >::iterator
11228 insert(ZONES self, std::vector< ZONE * >::iterator pos, std::vector< ZONE * >::size_type n, ZONE x)
11229 """
11230 return _pcbnew.ZONES_insert(self, *args)
11231
11232 def reserve(self, n):
11233 r"""reserve(ZONES self, std::vector< ZONE * >::size_type n)"""
11234 return _pcbnew.ZONES_reserve(self, n)
11235
11236 def capacity(self):
11237 r"""capacity(ZONES self) -> std::vector< ZONE * >::size_type"""
11238 return _pcbnew.ZONES_capacity(self)
11239 __swig_destroy__ = _pcbnew.delete_ZONES
11240
11241# Register ZONES in _pcbnew:
11242_pcbnew.ZONES_swigregister(ZONES)
11243
11245 r"""Proxy of C++ std::deque< PCB_TRACK * > class."""
11246
11247 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11248 __repr__ = _swig_repr
11249
11250 def iterator(self):
11251 r"""iterator(TRACKS self) -> SwigPyIterator"""
11252 return _pcbnew.TRACKS_iterator(self)
11253 def __iter__(self):
11254 return self.iterator()
11255
11256 def __nonzero__(self):
11257 r"""__nonzero__(TRACKS self) -> bool"""
11258 return _pcbnew.TRACKS___nonzero__(self)
11259
11260 def __bool__(self):
11261 r"""__bool__(TRACKS self) -> bool"""
11262 return _pcbnew.TRACKS___bool__(self)
11263
11264 def __len__(self):
11265 r"""__len__(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
11266 return _pcbnew.TRACKS___len__(self)
11267
11268 def __getslice__(self, i, j):
11269 r"""__getslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j) -> TRACKS"""
11270 return _pcbnew.TRACKS___getslice__(self, i, j)
11271
11272 def __setslice__(self, *args):
11273 r"""
11274 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)
11275 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j, TRACKS v)
11276 """
11277 return _pcbnew.TRACKS___setslice__(self, *args)
11278
11279 def __delslice__(self, i, j):
11280 r"""__delslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)"""
11281 return _pcbnew.TRACKS___delslice__(self, i, j)
11282
11283 def __delitem__(self, *args):
11284 r"""
11285 __delitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i)
11286 __delitem__(TRACKS self, PySliceObject * slice)
11287 """
11288 return _pcbnew.TRACKS___delitem__(self, *args)
11289
11290 def __getitem__(self, *args):
11291 r"""
11292 __getitem__(TRACKS self, PySliceObject * slice) -> TRACKS
11293 __getitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i) -> PCB_TRACK
11294 """
11295 return _pcbnew.TRACKS___getitem__(self, *args)
11296
11297 def __setitem__(self, *args):
11298 r"""
11299 __setitem__(TRACKS self, PySliceObject * slice, TRACKS v)
11300 __setitem__(TRACKS self, PySliceObject * slice)
11301 __setitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, PCB_TRACK x)
11302 """
11303 return _pcbnew.TRACKS___setitem__(self, *args)
11304
11305 def pop(self):
11306 r"""pop(TRACKS self) -> PCB_TRACK"""
11307 return _pcbnew.TRACKS_pop(self)
11308
11309 def append(self, x):
11310 r"""append(TRACKS self, PCB_TRACK x)"""
11311 return _pcbnew.TRACKS_append(self, x)
11312
11313 def empty(self):
11314 r"""empty(TRACKS self) -> bool"""
11315 return _pcbnew.TRACKS_empty(self)
11316
11317 def size(self):
11318 r"""size(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
11319 return _pcbnew.TRACKS_size(self)
11320
11321 def swap(self, v):
11322 r"""swap(TRACKS self, TRACKS v)"""
11323 return _pcbnew.TRACKS_swap(self, v)
11324
11325 def begin(self):
11326 r"""begin(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
11327 return _pcbnew.TRACKS_begin(self)
11328
11329 def end(self):
11330 r"""end(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
11331 return _pcbnew.TRACKS_end(self)
11332
11333 def rbegin(self):
11334 r"""rbegin(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
11335 return _pcbnew.TRACKS_rbegin(self)
11336
11337 def rend(self):
11338 r"""rend(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
11339 return _pcbnew.TRACKS_rend(self)
11340
11341 def clear(self):
11342 r"""clear(TRACKS self)"""
11343 return _pcbnew.TRACKS_clear(self)
11344
11345 def get_allocator(self):
11346 r"""get_allocator(TRACKS self) -> std::deque< PCB_TRACK * >::allocator_type"""
11347 return _pcbnew.TRACKS_get_allocator(self)
11348
11349 def pop_back(self):
11350 r"""pop_back(TRACKS self)"""
11351 return _pcbnew.TRACKS_pop_back(self)
11352
11353 def erase(self, *args):
11354 r"""
11355 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator pos) -> std::deque< PCB_TRACK * >::iterator
11356 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator first, std::deque< PCB_TRACK * >::iterator last) -> std::deque< PCB_TRACK * >::iterator
11357 """
11358 return _pcbnew.TRACKS_erase(self, *args)
11359
11360 def __init__(self, *args):
11361 r"""
11362 __init__(TRACKS self) -> TRACKS
11363 __init__(TRACKS self, TRACKS other) -> TRACKS
11364 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size) -> TRACKS
11365 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS
11366 """
11367 _pcbnew.TRACKS_swiginit(self, _pcbnew.new_TRACKS(*args))
11368
11369 def push_back(self, x):
11370 r"""push_back(TRACKS self, PCB_TRACK x)"""
11371 return _pcbnew.TRACKS_push_back(self, x)
11372
11373 def front(self):
11374 r"""front(TRACKS self) -> PCB_TRACK"""
11375 return _pcbnew.TRACKS_front(self)
11376
11377 def back(self):
11378 r"""back(TRACKS self) -> PCB_TRACK"""
11379 return _pcbnew.TRACKS_back(self)
11380
11381 def assign(self, n, x):
11382 r"""assign(TRACKS self, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
11383 return _pcbnew.TRACKS_assign(self, n, x)
11384
11385 def resize(self, *args):
11386 r"""
11387 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size)
11388 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
11389 """
11390 return _pcbnew.TRACKS_resize(self, *args)
11391
11392 def insert(self, *args):
11393 r"""
11394 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::deque< PCB_TRACK * >::iterator
11395 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)
11396 """
11397 return _pcbnew.TRACKS_insert(self, *args)
11398
11399 def pop_front(self):
11400 r"""pop_front(TRACKS self)"""
11401 return _pcbnew.TRACKS_pop_front(self)
11402
11403 def push_front(self, x):
11404 r"""push_front(TRACKS self, PCB_TRACK x)"""
11405 return _pcbnew.TRACKS_push_front(self, x)
11406
11407 def __iter__(self):
11408 it = self.iterator()
11409 try:
11410 while True:
11411 item = it.next() # throws StopIteration when iterator reached the end.
11412 yield item.Cast()
11413 except StopIteration:
11414 return
11415
11416 __swig_destroy__ = _pcbnew.delete_TRACKS
11417
11418# Register TRACKS in _pcbnew:
11419_pcbnew.TRACKS_swigregister(TRACKS)
11420
11422 r"""Proxy of C++ std::deque< FOOTPRINT * > class."""
11423
11424 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11425 __repr__ = _swig_repr
11426
11427 def iterator(self):
11428 r"""iterator(FOOTPRINTS self) -> SwigPyIterator"""
11429 return _pcbnew.FOOTPRINTS_iterator(self)
11430 def __iter__(self):
11431 return self.iterator()
11432
11433 def __nonzero__(self):
11434 r"""__nonzero__(FOOTPRINTS self) -> bool"""
11435 return _pcbnew.FOOTPRINTS___nonzero__(self)
11436
11437 def __bool__(self):
11438 r"""__bool__(FOOTPRINTS self) -> bool"""
11439 return _pcbnew.FOOTPRINTS___bool__(self)
11440
11441 def __len__(self):
11442 r"""__len__(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
11443 return _pcbnew.FOOTPRINTS___len__(self)
11444
11445 def __getslice__(self, i, j):
11446 r"""__getslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j) -> FOOTPRINTS"""
11447 return _pcbnew.FOOTPRINTS___getslice__(self, i, j)
11448
11449 def __setslice__(self, *args):
11450 r"""
11451 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)
11452 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j, FOOTPRINTS v)
11453 """
11454 return _pcbnew.FOOTPRINTS___setslice__(self, *args)
11455
11456 def __delslice__(self, i, j):
11457 r"""__delslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)"""
11458 return _pcbnew.FOOTPRINTS___delslice__(self, i, j)
11459
11460 def __delitem__(self, *args):
11461 r"""
11462 __delitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i)
11463 __delitem__(FOOTPRINTS self, PySliceObject * slice)
11464 """
11465 return _pcbnew.FOOTPRINTS___delitem__(self, *args)
11466
11467 def __getitem__(self, *args):
11468 r"""
11469 __getitem__(FOOTPRINTS self, PySliceObject * slice) -> FOOTPRINTS
11470 __getitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i) -> FOOTPRINT
11471 """
11472 return _pcbnew.FOOTPRINTS___getitem__(self, *args)
11473
11474 def __setitem__(self, *args):
11475 r"""
11476 __setitem__(FOOTPRINTS self, PySliceObject * slice, FOOTPRINTS v)
11477 __setitem__(FOOTPRINTS self, PySliceObject * slice)
11478 __setitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, FOOTPRINT x)
11479 """
11480 return _pcbnew.FOOTPRINTS___setitem__(self, *args)
11481
11482 def pop(self):
11483 r"""pop(FOOTPRINTS self) -> FOOTPRINT"""
11484 return _pcbnew.FOOTPRINTS_pop(self)
11485
11486 def append(self, x):
11487 r"""append(FOOTPRINTS self, FOOTPRINT x)"""
11488 return _pcbnew.FOOTPRINTS_append(self, x)
11489
11490 def empty(self):
11491 r"""empty(FOOTPRINTS self) -> bool"""
11492 return _pcbnew.FOOTPRINTS_empty(self)
11493
11494 def size(self):
11495 r"""size(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
11496 return _pcbnew.FOOTPRINTS_size(self)
11497
11498 def swap(self, v):
11499 r"""swap(FOOTPRINTS self, FOOTPRINTS v)"""
11500 return _pcbnew.FOOTPRINTS_swap(self, v)
11501
11502 def begin(self):
11503 r"""begin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
11504 return _pcbnew.FOOTPRINTS_begin(self)
11505
11506 def end(self):
11507 r"""end(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
11508 return _pcbnew.FOOTPRINTS_end(self)
11509
11510 def rbegin(self):
11511 r"""rbegin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
11512 return _pcbnew.FOOTPRINTS_rbegin(self)
11513
11514 def rend(self):
11515 r"""rend(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
11516 return _pcbnew.FOOTPRINTS_rend(self)
11517
11518 def clear(self):
11519 r"""clear(FOOTPRINTS self)"""
11520 return _pcbnew.FOOTPRINTS_clear(self)
11521
11522 def get_allocator(self):
11523 r"""get_allocator(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::allocator_type"""
11524 return _pcbnew.FOOTPRINTS_get_allocator(self)
11525
11526 def pop_back(self):
11527 r"""pop_back(FOOTPRINTS self)"""
11528 return _pcbnew.FOOTPRINTS_pop_back(self)
11529
11530 def erase(self, *args):
11531 r"""
11532 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos) -> std::deque< FOOTPRINT * >::iterator
11533 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator first, std::deque< FOOTPRINT * >::iterator last) -> std::deque< FOOTPRINT * >::iterator
11534 """
11535 return _pcbnew.FOOTPRINTS_erase(self, *args)
11536
11537 def __init__(self, *args):
11538 r"""
11539 __init__(FOOTPRINTS self) -> FOOTPRINTS
11540 __init__(FOOTPRINTS self, FOOTPRINTS other) -> FOOTPRINTS
11541 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size) -> FOOTPRINTS
11542 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size, FOOTPRINT value) -> FOOTPRINTS
11543 """
11544 _pcbnew.FOOTPRINTS_swiginit(self, _pcbnew.new_FOOTPRINTS(*args))
11545
11546 def push_back(self, x):
11547 r"""push_back(FOOTPRINTS self, FOOTPRINT x)"""
11548 return _pcbnew.FOOTPRINTS_push_back(self, x)
11549
11550 def front(self):
11551 r"""front(FOOTPRINTS self) -> FOOTPRINT"""
11552 return _pcbnew.FOOTPRINTS_front(self)
11553
11554 def back(self):
11555 r"""back(FOOTPRINTS self) -> FOOTPRINT"""
11556 return _pcbnew.FOOTPRINTS_back(self)
11557
11558 def assign(self, n, x):
11559 r"""assign(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)"""
11560 return _pcbnew.FOOTPRINTS_assign(self, n, x)
11561
11562 def resize(self, *args):
11563 r"""
11564 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size)
11565 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size, FOOTPRINT x)
11566 """
11567 return _pcbnew.FOOTPRINTS_resize(self, *args)
11568
11569 def insert(self, *args):
11570 r"""
11571 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, FOOTPRINT x) -> std::deque< FOOTPRINT * >::iterator
11572 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)
11573 """
11574 return _pcbnew.FOOTPRINTS_insert(self, *args)
11575
11576 def pop_front(self):
11577 r"""pop_front(FOOTPRINTS self)"""
11578 return _pcbnew.FOOTPRINTS_pop_front(self)
11579
11580 def push_front(self, x):
11581 r"""push_front(FOOTPRINTS self, FOOTPRINT x)"""
11582 return _pcbnew.FOOTPRINTS_push_front(self, x)
11583 __swig_destroy__ = _pcbnew.delete_FOOTPRINTS
11584
11585# Register FOOTPRINTS in _pcbnew:
11586_pcbnew.FOOTPRINTS_swigregister(FOOTPRINTS)
11587
11589 r"""Proxy of C++ std::deque< PCB_GROUP * > class."""
11590
11591 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11592 __repr__ = _swig_repr
11593
11594 def iterator(self):
11595 r"""iterator(GROUPS self) -> SwigPyIterator"""
11596 return _pcbnew.GROUPS_iterator(self)
11597 def __iter__(self):
11598 return self.iterator()
11599
11600 def __nonzero__(self):
11601 r"""__nonzero__(GROUPS self) -> bool"""
11602 return _pcbnew.GROUPS___nonzero__(self)
11603
11604 def __bool__(self):
11605 r"""__bool__(GROUPS self) -> bool"""
11606 return _pcbnew.GROUPS___bool__(self)
11607
11608 def __len__(self):
11609 r"""__len__(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
11610 return _pcbnew.GROUPS___len__(self)
11611
11612 def __getslice__(self, i, j):
11613 r"""__getslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j) -> GROUPS"""
11614 return _pcbnew.GROUPS___getslice__(self, i, j)
11615
11616 def __setslice__(self, *args):
11617 r"""
11618 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)
11619 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j, GROUPS v)
11620 """
11621 return _pcbnew.GROUPS___setslice__(self, *args)
11622
11623 def __delslice__(self, i, j):
11624 r"""__delslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)"""
11625 return _pcbnew.GROUPS___delslice__(self, i, j)
11626
11627 def __delitem__(self, *args):
11628 r"""
11629 __delitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i)
11630 __delitem__(GROUPS self, PySliceObject * slice)
11631 """
11632 return _pcbnew.GROUPS___delitem__(self, *args)
11633
11634 def __getitem__(self, *args):
11635 r"""
11636 __getitem__(GROUPS self, PySliceObject * slice) -> GROUPS
11637 __getitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i) -> PCB_GROUP
11638 """
11639 return _pcbnew.GROUPS___getitem__(self, *args)
11640
11641 def __setitem__(self, *args):
11642 r"""
11643 __setitem__(GROUPS self, PySliceObject * slice, GROUPS v)
11644 __setitem__(GROUPS self, PySliceObject * slice)
11645 __setitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, PCB_GROUP x)
11646 """
11647 return _pcbnew.GROUPS___setitem__(self, *args)
11648
11649 def pop(self):
11650 r"""pop(GROUPS self) -> PCB_GROUP"""
11651 return _pcbnew.GROUPS_pop(self)
11652
11653 def append(self, x):
11654 r"""append(GROUPS self, PCB_GROUP x)"""
11655 return _pcbnew.GROUPS_append(self, x)
11656
11657 def empty(self):
11658 r"""empty(GROUPS self) -> bool"""
11659 return _pcbnew.GROUPS_empty(self)
11660
11661 def size(self):
11662 r"""size(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
11663 return _pcbnew.GROUPS_size(self)
11664
11665 def swap(self, v):
11666 r"""swap(GROUPS self, GROUPS v)"""
11667 return _pcbnew.GROUPS_swap(self, v)
11668
11669 def begin(self):
11670 r"""begin(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
11671 return _pcbnew.GROUPS_begin(self)
11672
11673 def end(self):
11674 r"""end(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
11675 return _pcbnew.GROUPS_end(self)
11676
11677 def rbegin(self):
11678 r"""rbegin(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
11679 return _pcbnew.GROUPS_rbegin(self)
11680
11681 def rend(self):
11682 r"""rend(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
11683 return _pcbnew.GROUPS_rend(self)
11684
11685 def clear(self):
11686 r"""clear(GROUPS self)"""
11687 return _pcbnew.GROUPS_clear(self)
11688
11689 def get_allocator(self):
11690 r"""get_allocator(GROUPS self) -> std::deque< PCB_GROUP * >::allocator_type"""
11691 return _pcbnew.GROUPS_get_allocator(self)
11692
11693 def pop_back(self):
11694 r"""pop_back(GROUPS self)"""
11695 return _pcbnew.GROUPS_pop_back(self)
11696
11697 def erase(self, *args):
11698 r"""
11699 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator pos) -> std::deque< PCB_GROUP * >::iterator
11700 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator first, std::deque< PCB_GROUP * >::iterator last) -> std::deque< PCB_GROUP * >::iterator
11701 """
11702 return _pcbnew.GROUPS_erase(self, *args)
11703
11704 def __init__(self, *args):
11705 r"""
11706 __init__(GROUPS self) -> GROUPS
11707 __init__(GROUPS self, GROUPS other) -> GROUPS
11708 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size) -> GROUPS
11709 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size, PCB_GROUP value) -> GROUPS
11710 """
11711 _pcbnew.GROUPS_swiginit(self, _pcbnew.new_GROUPS(*args))
11712
11713 def push_back(self, x):
11714 r"""push_back(GROUPS self, PCB_GROUP x)"""
11715 return _pcbnew.GROUPS_push_back(self, x)
11716
11717 def front(self):
11718 r"""front(GROUPS self) -> PCB_GROUP"""
11719 return _pcbnew.GROUPS_front(self)
11720
11721 def back(self):
11722 r"""back(GROUPS self) -> PCB_GROUP"""
11723 return _pcbnew.GROUPS_back(self)
11724
11725 def assign(self, n, x):
11726 r"""assign(GROUPS self, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)"""
11727 return _pcbnew.GROUPS_assign(self, n, x)
11728
11729 def resize(self, *args):
11730 r"""
11731 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size)
11732 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size, PCB_GROUP x)
11733 """
11734 return _pcbnew.GROUPS_resize(self, *args)
11735
11736 def insert(self, *args):
11737 r"""
11738 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, PCB_GROUP x) -> std::deque< PCB_GROUP * >::iterator
11739 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)
11740 """
11741 return _pcbnew.GROUPS_insert(self, *args)
11742
11743 def pop_front(self):
11744 r"""pop_front(GROUPS self)"""
11745 return _pcbnew.GROUPS_pop_front(self)
11746
11747 def push_front(self, x):
11748 r"""push_front(GROUPS self, PCB_GROUP x)"""
11749 return _pcbnew.GROUPS_push_front(self, x)
11750 __swig_destroy__ = _pcbnew.delete_GROUPS
11751
11752# Register GROUPS in _pcbnew:
11753_pcbnew.GROUPS_swigregister(GROUPS)
11754
11756 r"""Proxy of C++ std::deque< BOARD_ITEM * > class."""
11757
11758 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11759 __repr__ = _swig_repr
11760
11761 def iterator(self):
11762 r"""iterator(DRAWINGS self) -> SwigPyIterator"""
11763 return _pcbnew.DRAWINGS_iterator(self)
11764 def __iter__(self):
11765 return self.iterator()
11766
11767 def __nonzero__(self):
11768 r"""__nonzero__(DRAWINGS self) -> bool"""
11769 return _pcbnew.DRAWINGS___nonzero__(self)
11770
11771 def __bool__(self):
11772 r"""__bool__(DRAWINGS self) -> bool"""
11773 return _pcbnew.DRAWINGS___bool__(self)
11774
11775 def __len__(self):
11776 r"""__len__(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
11777 return _pcbnew.DRAWINGS___len__(self)
11778
11779 def __getslice__(self, i, j):
11780 r"""__getslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j) -> DRAWINGS"""
11781 return _pcbnew.DRAWINGS___getslice__(self, i, j)
11782
11783 def __setslice__(self, *args):
11784 r"""
11785 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)
11786 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j, DRAWINGS v)
11787 """
11788 return _pcbnew.DRAWINGS___setslice__(self, *args)
11789
11790 def __delslice__(self, i, j):
11791 r"""__delslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)"""
11792 return _pcbnew.DRAWINGS___delslice__(self, i, j)
11793
11794 def __delitem__(self, *args):
11795 r"""
11796 __delitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i)
11797 __delitem__(DRAWINGS self, PySliceObject * slice)
11798 """
11799 return _pcbnew.DRAWINGS___delitem__(self, *args)
11800
11801 def __getitem__(self, *args):
11802 r"""
11803 __getitem__(DRAWINGS self, PySliceObject * slice) -> DRAWINGS
11804 __getitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i) -> BOARD_ITEM
11805 """
11806 return _pcbnew.DRAWINGS___getitem__(self, *args)
11807
11808 def __setitem__(self, *args):
11809 r"""
11810 __setitem__(DRAWINGS self, PySliceObject * slice, DRAWINGS v)
11811 __setitem__(DRAWINGS self, PySliceObject * slice)
11812 __setitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, BOARD_ITEM x)
11813 """
11814 return _pcbnew.DRAWINGS___setitem__(self, *args)
11815
11816 def pop(self):
11817 r"""pop(DRAWINGS self) -> BOARD_ITEM"""
11818 return _pcbnew.DRAWINGS_pop(self)
11819
11820 def append(self, x):
11821 r"""append(DRAWINGS self, BOARD_ITEM x)"""
11822 return _pcbnew.DRAWINGS_append(self, x)
11823
11824 def empty(self):
11825 r"""empty(DRAWINGS self) -> bool"""
11826 return _pcbnew.DRAWINGS_empty(self)
11827
11828 def size(self):
11829 r"""size(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
11830 return _pcbnew.DRAWINGS_size(self)
11831
11832 def swap(self, v):
11833 r"""swap(DRAWINGS self, DRAWINGS v)"""
11834 return _pcbnew.DRAWINGS_swap(self, v)
11835
11836 def begin(self):
11837 r"""begin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
11838 return _pcbnew.DRAWINGS_begin(self)
11839
11840 def end(self):
11841 r"""end(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
11842 return _pcbnew.DRAWINGS_end(self)
11843
11844 def rbegin(self):
11845 r"""rbegin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
11846 return _pcbnew.DRAWINGS_rbegin(self)
11847
11848 def rend(self):
11849 r"""rend(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
11850 return _pcbnew.DRAWINGS_rend(self)
11851
11852 def clear(self):
11853 r"""clear(DRAWINGS self)"""
11854 return _pcbnew.DRAWINGS_clear(self)
11855
11856 def get_allocator(self):
11857 r"""get_allocator(DRAWINGS self) -> std::deque< BOARD_ITEM * >::allocator_type"""
11858 return _pcbnew.DRAWINGS_get_allocator(self)
11859
11860 def pop_back(self):
11861 r"""pop_back(DRAWINGS self)"""
11862 return _pcbnew.DRAWINGS_pop_back(self)
11863
11864 def erase(self, *args):
11865 r"""
11866 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos) -> std::deque< BOARD_ITEM * >::iterator
11867 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator first, std::deque< BOARD_ITEM * >::iterator last) -> std::deque< BOARD_ITEM * >::iterator
11868 """
11869 return _pcbnew.DRAWINGS_erase(self, *args)
11870
11871 def __init__(self, *args):
11872 r"""
11873 __init__(DRAWINGS self) -> DRAWINGS
11874 __init__(DRAWINGS self, DRAWINGS other) -> DRAWINGS
11875 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size) -> DRAWINGS
11876 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size, BOARD_ITEM value) -> DRAWINGS
11877 """
11878 _pcbnew.DRAWINGS_swiginit(self, _pcbnew.new_DRAWINGS(*args))
11879
11880 def push_back(self, x):
11881 r"""push_back(DRAWINGS self, BOARD_ITEM x)"""
11882 return _pcbnew.DRAWINGS_push_back(self, x)
11883
11884 def front(self):
11885 r"""front(DRAWINGS self) -> BOARD_ITEM"""
11886 return _pcbnew.DRAWINGS_front(self)
11887
11888 def back(self):
11889 r"""back(DRAWINGS self) -> BOARD_ITEM"""
11890 return _pcbnew.DRAWINGS_back(self)
11891
11892 def assign(self, n, x):
11893 r"""assign(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)"""
11894 return _pcbnew.DRAWINGS_assign(self, n, x)
11895
11896 def resize(self, *args):
11897 r"""
11898 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size)
11899 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size, BOARD_ITEM x)
11900 """
11901 return _pcbnew.DRAWINGS_resize(self, *args)
11902
11903 def insert(self, *args):
11904 r"""
11905 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, BOARD_ITEM x) -> std::deque< BOARD_ITEM * >::iterator
11906 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)
11907 """
11908 return _pcbnew.DRAWINGS_insert(self, *args)
11909
11910 def pop_front(self):
11911 r"""pop_front(DRAWINGS self)"""
11912 return _pcbnew.DRAWINGS_pop_front(self)
11913
11914 def push_front(self, x):
11915 r"""push_front(DRAWINGS self, BOARD_ITEM x)"""
11916 return _pcbnew.DRAWINGS_push_front(self, x)
11917
11918 def __iter__(self):
11919 it = self.iterator()
11920 try:
11921 while True:
11922 item = it.next() # throws StopIteration when iterator reached the end.
11923 yield item.Cast()
11924 except StopIteration:
11925 return
11926
11927 __swig_destroy__ = _pcbnew.delete_DRAWINGS
11928
11929# Register DRAWINGS in _pcbnew:
11930_pcbnew.DRAWINGS_swigregister(DRAWINGS)
11931
11933 r"""Proxy of C++ std::deque< PAD * > class."""
11934
11935 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11936 __repr__ = _swig_repr
11937
11938 def iterator(self):
11939 r"""iterator(PADS self) -> SwigPyIterator"""
11940 return _pcbnew.PADS_iterator(self)
11941 def __iter__(self):
11942 return self.iterator()
11943
11944 def __nonzero__(self):
11945 r"""__nonzero__(PADS self) -> bool"""
11946 return _pcbnew.PADS___nonzero__(self)
11947
11948 def __bool__(self):
11949 r"""__bool__(PADS self) -> bool"""
11950 return _pcbnew.PADS___bool__(self)
11951
11952 def __len__(self):
11953 r"""__len__(PADS self) -> std::deque< PAD * >::size_type"""
11954 return _pcbnew.PADS___len__(self)
11955
11956 def __getslice__(self, i, j):
11957 r"""__getslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j) -> PADS"""
11958 return _pcbnew.PADS___getslice__(self, i, j)
11959
11960 def __setslice__(self, *args):
11961 r"""
11962 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)
11963 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j, PADS v)
11964 """
11965 return _pcbnew.PADS___setslice__(self, *args)
11966
11967 def __delslice__(self, i, j):
11968 r"""__delslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)"""
11969 return _pcbnew.PADS___delslice__(self, i, j)
11970
11971 def __delitem__(self, *args):
11972 r"""
11973 __delitem__(PADS self, std::deque< PAD * >::difference_type i)
11974 __delitem__(PADS self, PySliceObject * slice)
11975 """
11976 return _pcbnew.PADS___delitem__(self, *args)
11977
11978 def __getitem__(self, *args):
11979 r"""
11980 __getitem__(PADS self, PySliceObject * slice) -> PADS
11981 __getitem__(PADS self, std::deque< PAD * >::difference_type i) -> PAD
11982 """
11983 return _pcbnew.PADS___getitem__(self, *args)
11984
11985 def __setitem__(self, *args):
11986 r"""
11987 __setitem__(PADS self, PySliceObject * slice, PADS v)
11988 __setitem__(PADS self, PySliceObject * slice)
11989 __setitem__(PADS self, std::deque< PAD * >::difference_type i, PAD x)
11990 """
11991 return _pcbnew.PADS___setitem__(self, *args)
11992
11993 def pop(self):
11994 r"""pop(PADS self) -> PAD"""
11995 return _pcbnew.PADS_pop(self)
11996
11997 def append(self, x):
11998 r"""append(PADS self, PAD x)"""
11999 return _pcbnew.PADS_append(self, x)
12000
12001 def empty(self):
12002 r"""empty(PADS self) -> bool"""
12003 return _pcbnew.PADS_empty(self)
12004
12005 def size(self):
12006 r"""size(PADS self) -> std::deque< PAD * >::size_type"""
12007 return _pcbnew.PADS_size(self)
12008
12009 def swap(self, v):
12010 r"""swap(PADS self, PADS v)"""
12011 return _pcbnew.PADS_swap(self, v)
12012
12013 def begin(self):
12014 r"""begin(PADS self) -> std::deque< PAD * >::iterator"""
12015 return _pcbnew.PADS_begin(self)
12016
12017 def end(self):
12018 r"""end(PADS self) -> std::deque< PAD * >::iterator"""
12019 return _pcbnew.PADS_end(self)
12020
12021 def rbegin(self):
12022 r"""rbegin(PADS self) -> std::deque< PAD * >::reverse_iterator"""
12023 return _pcbnew.PADS_rbegin(self)
12024
12025 def rend(self):
12026 r"""rend(PADS self) -> std::deque< PAD * >::reverse_iterator"""
12027 return _pcbnew.PADS_rend(self)
12028
12029 def clear(self):
12030 r"""clear(PADS self)"""
12031 return _pcbnew.PADS_clear(self)
12032
12033 def get_allocator(self):
12034 r"""get_allocator(PADS self) -> std::deque< PAD * >::allocator_type"""
12035 return _pcbnew.PADS_get_allocator(self)
12036
12037 def pop_back(self):
12038 r"""pop_back(PADS self)"""
12039 return _pcbnew.PADS_pop_back(self)
12040
12041 def erase(self, *args):
12042 r"""
12043 erase(PADS self, std::deque< PAD * >::iterator pos) -> std::deque< PAD * >::iterator
12044 erase(PADS self, std::deque< PAD * >::iterator first, std::deque< PAD * >::iterator last) -> std::deque< PAD * >::iterator
12045 """
12046 return _pcbnew.PADS_erase(self, *args)
12047
12048 def __init__(self, *args):
12049 r"""
12050 __init__(PADS self) -> PADS
12051 __init__(PADS self, PADS other) -> PADS
12052 __init__(PADS self, std::deque< PAD * >::size_type size) -> PADS
12053 __init__(PADS self, std::deque< PAD * >::size_type size, PAD value) -> PADS
12054 """
12055 _pcbnew.PADS_swiginit(self, _pcbnew.new_PADS(*args))
12056
12057 def push_back(self, x):
12058 r"""push_back(PADS self, PAD x)"""
12059 return _pcbnew.PADS_push_back(self, x)
12060
12061 def front(self):
12062 r"""front(PADS self) -> PAD"""
12063 return _pcbnew.PADS_front(self)
12064
12065 def back(self):
12066 r"""back(PADS self) -> PAD"""
12067 return _pcbnew.PADS_back(self)
12068
12069 def assign(self, n, x):
12070 r"""assign(PADS self, std::deque< PAD * >::size_type n, PAD x)"""
12071 return _pcbnew.PADS_assign(self, n, x)
12072
12073 def resize(self, *args):
12074 r"""
12075 resize(PADS self, std::deque< PAD * >::size_type new_size)
12076 resize(PADS self, std::deque< PAD * >::size_type new_size, PAD x)
12077 """
12078 return _pcbnew.PADS_resize(self, *args)
12079
12080 def insert(self, *args):
12081 r"""
12082 insert(PADS self, std::deque< PAD * >::iterator pos, PAD x) -> std::deque< PAD * >::iterator
12083 insert(PADS self, std::deque< PAD * >::iterator pos, std::deque< PAD * >::size_type n, PAD x)
12084 """
12085 return _pcbnew.PADS_insert(self, *args)
12086
12087 def pop_front(self):
12088 r"""pop_front(PADS self)"""
12089 return _pcbnew.PADS_pop_front(self)
12090
12091 def push_front(self, x):
12092 r"""push_front(PADS self, PAD x)"""
12093 return _pcbnew.PADS_push_front(self, x)
12094 __swig_destroy__ = _pcbnew.delete_PADS
12095
12096# Register PADS in _pcbnew:
12097_pcbnew.PADS_swigregister(PADS)
12098
12100 r"""Proxy of C++ std::vector< FP_ZONE * > class."""
12101
12102 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12103 __repr__ = _swig_repr
12104
12105 def iterator(self):
12106 r"""iterator(FP_ZONES self) -> SwigPyIterator"""
12107 return _pcbnew.FP_ZONES_iterator(self)
12108 def __iter__(self):
12109 return self.iterator()
12110
12111 def __nonzero__(self):
12112 r"""__nonzero__(FP_ZONES self) -> bool"""
12113 return _pcbnew.FP_ZONES___nonzero__(self)
12114
12115 def __bool__(self):
12116 r"""__bool__(FP_ZONES self) -> bool"""
12117 return _pcbnew.FP_ZONES___bool__(self)
12118
12119 def __len__(self):
12120 r"""__len__(FP_ZONES self) -> std::vector< FP_ZONE * >::size_type"""
12121 return _pcbnew.FP_ZONES___len__(self)
12122
12123 def __getslice__(self, i, j):
12124 r"""__getslice__(FP_ZONES self, std::vector< FP_ZONE * >::difference_type i, std::vector< FP_ZONE * >::difference_type j) -> FP_ZONES"""
12125 return _pcbnew.FP_ZONES___getslice__(self, i, j)
12126
12127 def __setslice__(self, *args):
12128 r"""
12129 __setslice__(FP_ZONES self, std::vector< FP_ZONE * >::difference_type i, std::vector< FP_ZONE * >::difference_type j)
12130 __setslice__(FP_ZONES self, std::vector< FP_ZONE * >::difference_type i, std::vector< FP_ZONE * >::difference_type j, FP_ZONES v)
12131 """
12132 return _pcbnew.FP_ZONES___setslice__(self, *args)
12133
12134 def __delslice__(self, i, j):
12135 r"""__delslice__(FP_ZONES self, std::vector< FP_ZONE * >::difference_type i, std::vector< FP_ZONE * >::difference_type j)"""
12136 return _pcbnew.FP_ZONES___delslice__(self, i, j)
12137
12138 def __delitem__(self, *args):
12139 r"""
12140 __delitem__(FP_ZONES self, std::vector< FP_ZONE * >::difference_type i)
12141 __delitem__(FP_ZONES self, PySliceObject * slice)
12142 """
12143 return _pcbnew.FP_ZONES___delitem__(self, *args)
12144
12145 def __getitem__(self, *args):
12146 r"""
12147 __getitem__(FP_ZONES self, PySliceObject * slice) -> FP_ZONES
12148 __getitem__(FP_ZONES self, std::vector< FP_ZONE * >::difference_type i) -> FP_ZONE
12149 """
12150 return _pcbnew.FP_ZONES___getitem__(self, *args)
12151
12152 def __setitem__(self, *args):
12153 r"""
12154 __setitem__(FP_ZONES self, PySliceObject * slice, FP_ZONES v)
12155 __setitem__(FP_ZONES self, PySliceObject * slice)
12156 __setitem__(FP_ZONES self, std::vector< FP_ZONE * >::difference_type i, FP_ZONE x)
12157 """
12158 return _pcbnew.FP_ZONES___setitem__(self, *args)
12159
12160 def pop(self):
12161 r"""pop(FP_ZONES self) -> FP_ZONE"""
12162 return _pcbnew.FP_ZONES_pop(self)
12163
12164 def append(self, x):
12165 r"""append(FP_ZONES self, FP_ZONE x)"""
12166 return _pcbnew.FP_ZONES_append(self, x)
12167
12168 def empty(self):
12169 r"""empty(FP_ZONES self) -> bool"""
12170 return _pcbnew.FP_ZONES_empty(self)
12171
12172 def size(self):
12173 r"""size(FP_ZONES self) -> std::vector< FP_ZONE * >::size_type"""
12174 return _pcbnew.FP_ZONES_size(self)
12175
12176 def swap(self, v):
12177 r"""swap(FP_ZONES self, FP_ZONES v)"""
12178 return _pcbnew.FP_ZONES_swap(self, v)
12179
12180 def begin(self):
12181 r"""begin(FP_ZONES self) -> std::vector< FP_ZONE * >::iterator"""
12182 return _pcbnew.FP_ZONES_begin(self)
12183
12184 def end(self):
12185 r"""end(FP_ZONES self) -> std::vector< FP_ZONE * >::iterator"""
12186 return _pcbnew.FP_ZONES_end(self)
12187
12188 def rbegin(self):
12189 r"""rbegin(FP_ZONES self) -> std::vector< FP_ZONE * >::reverse_iterator"""
12190 return _pcbnew.FP_ZONES_rbegin(self)
12191
12192 def rend(self):
12193 r"""rend(FP_ZONES self) -> std::vector< FP_ZONE * >::reverse_iterator"""
12194 return _pcbnew.FP_ZONES_rend(self)
12195
12196 def clear(self):
12197 r"""clear(FP_ZONES self)"""
12198 return _pcbnew.FP_ZONES_clear(self)
12199
12200 def get_allocator(self):
12201 r"""get_allocator(FP_ZONES self) -> std::vector< FP_ZONE * >::allocator_type"""
12202 return _pcbnew.FP_ZONES_get_allocator(self)
12203
12204 def pop_back(self):
12205 r"""pop_back(FP_ZONES self)"""
12206 return _pcbnew.FP_ZONES_pop_back(self)
12207
12208 def erase(self, *args):
12209 r"""
12210 erase(FP_ZONES self, std::vector< FP_ZONE * >::iterator pos) -> std::vector< FP_ZONE * >::iterator
12211 erase(FP_ZONES self, std::vector< FP_ZONE * >::iterator first, std::vector< FP_ZONE * >::iterator last) -> std::vector< FP_ZONE * >::iterator
12212 """
12213 return _pcbnew.FP_ZONES_erase(self, *args)
12214
12215 def __init__(self, *args):
12216 r"""
12217 __init__(FP_ZONES self) -> FP_ZONES
12218 __init__(FP_ZONES self, FP_ZONES other) -> FP_ZONES
12219 __init__(FP_ZONES self, std::vector< FP_ZONE * >::size_type size) -> FP_ZONES
12220 __init__(FP_ZONES self, std::vector< FP_ZONE * >::size_type size, FP_ZONE value) -> FP_ZONES
12221 """
12222 _pcbnew.FP_ZONES_swiginit(self, _pcbnew.new_FP_ZONES(*args))
12223
12224 def push_back(self, x):
12225 r"""push_back(FP_ZONES self, FP_ZONE x)"""
12226 return _pcbnew.FP_ZONES_push_back(self, x)
12227
12228 def front(self):
12229 r"""front(FP_ZONES self) -> FP_ZONE"""
12230 return _pcbnew.FP_ZONES_front(self)
12231
12232 def back(self):
12233 r"""back(FP_ZONES self) -> FP_ZONE"""
12234 return _pcbnew.FP_ZONES_back(self)
12235
12236 def assign(self, n, x):
12237 r"""assign(FP_ZONES self, std::vector< FP_ZONE * >::size_type n, FP_ZONE x)"""
12238 return _pcbnew.FP_ZONES_assign(self, n, x)
12239
12240 def resize(self, *args):
12241 r"""
12242 resize(FP_ZONES self, std::vector< FP_ZONE * >::size_type new_size)
12243 resize(FP_ZONES self, std::vector< FP_ZONE * >::size_type new_size, FP_ZONE x)
12244 """
12245 return _pcbnew.FP_ZONES_resize(self, *args)
12246
12247 def insert(self, *args):
12248 r"""
12249 insert(FP_ZONES self, std::vector< FP_ZONE * >::iterator pos, FP_ZONE x) -> std::vector< FP_ZONE * >::iterator
12250 insert(FP_ZONES self, std::vector< FP_ZONE * >::iterator pos, std::vector< FP_ZONE * >::size_type n, FP_ZONE x)
12251 """
12252 return _pcbnew.FP_ZONES_insert(self, *args)
12253
12254 def reserve(self, n):
12255 r"""reserve(FP_ZONES self, std::vector< FP_ZONE * >::size_type n)"""
12256 return _pcbnew.FP_ZONES_reserve(self, n)
12257
12258 def capacity(self):
12259 r"""capacity(FP_ZONES self) -> std::vector< FP_ZONE * >::size_type"""
12260 return _pcbnew.FP_ZONES_capacity(self)
12261 __swig_destroy__ = _pcbnew.delete_FP_ZONES
12262
12263# Register FP_ZONES in _pcbnew:
12264_pcbnew.FP_ZONES_swigregister(FP_ZONES)
12265
12267 r"""Proxy of C++ std::vector< PCB_GROUP * > class."""
12268
12269 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12270 __repr__ = _swig_repr
12271
12272 def iterator(self):
12273 r"""iterator(FP_GROUPS self) -> SwigPyIterator"""
12274 return _pcbnew.FP_GROUPS_iterator(self)
12275 def __iter__(self):
12276 return self.iterator()
12277
12278 def __nonzero__(self):
12279 r"""__nonzero__(FP_GROUPS self) -> bool"""
12280 return _pcbnew.FP_GROUPS___nonzero__(self)
12281
12282 def __bool__(self):
12283 r"""__bool__(FP_GROUPS self) -> bool"""
12284 return _pcbnew.FP_GROUPS___bool__(self)
12285
12286 def __len__(self):
12287 r"""__len__(FP_GROUPS self) -> std::vector< PCB_GROUP * >::size_type"""
12288 return _pcbnew.FP_GROUPS___len__(self)
12289
12290 def __getslice__(self, i, j):
12291 r"""__getslice__(FP_GROUPS self, std::vector< PCB_GROUP * >::difference_type i, std::vector< PCB_GROUP * >::difference_type j) -> FP_GROUPS"""
12292 return _pcbnew.FP_GROUPS___getslice__(self, i, j)
12293
12294 def __setslice__(self, *args):
12295 r"""
12296 __setslice__(FP_GROUPS self, std::vector< PCB_GROUP * >::difference_type i, std::vector< PCB_GROUP * >::difference_type j)
12297 __setslice__(FP_GROUPS self, std::vector< PCB_GROUP * >::difference_type i, std::vector< PCB_GROUP * >::difference_type j, FP_GROUPS v)
12298 """
12299 return _pcbnew.FP_GROUPS___setslice__(self, *args)
12300
12301 def __delslice__(self, i, j):
12302 r"""__delslice__(FP_GROUPS self, std::vector< PCB_GROUP * >::difference_type i, std::vector< PCB_GROUP * >::difference_type j)"""
12303 return _pcbnew.FP_GROUPS___delslice__(self, i, j)
12304
12305 def __delitem__(self, *args):
12306 r"""
12307 __delitem__(FP_GROUPS self, std::vector< PCB_GROUP * >::difference_type i)
12308 __delitem__(FP_GROUPS self, PySliceObject * slice)
12309 """
12310 return _pcbnew.FP_GROUPS___delitem__(self, *args)
12311
12312 def __getitem__(self, *args):
12313 r"""
12314 __getitem__(FP_GROUPS self, PySliceObject * slice) -> FP_GROUPS
12315 __getitem__(FP_GROUPS self, std::vector< PCB_GROUP * >::difference_type i) -> PCB_GROUP
12316 """
12317 return _pcbnew.FP_GROUPS___getitem__(self, *args)
12318
12319 def __setitem__(self, *args):
12320 r"""
12321 __setitem__(FP_GROUPS self, PySliceObject * slice, FP_GROUPS v)
12322 __setitem__(FP_GROUPS self, PySliceObject * slice)
12323 __setitem__(FP_GROUPS self, std::vector< PCB_GROUP * >::difference_type i, PCB_GROUP x)
12324 """
12325 return _pcbnew.FP_GROUPS___setitem__(self, *args)
12326
12327 def pop(self):
12328 r"""pop(FP_GROUPS self) -> PCB_GROUP"""
12329 return _pcbnew.FP_GROUPS_pop(self)
12330
12331 def append(self, x):
12332 r"""append(FP_GROUPS self, PCB_GROUP x)"""
12333 return _pcbnew.FP_GROUPS_append(self, x)
12334
12335 def empty(self):
12336 r"""empty(FP_GROUPS self) -> bool"""
12337 return _pcbnew.FP_GROUPS_empty(self)
12338
12339 def size(self):
12340 r"""size(FP_GROUPS self) -> std::vector< PCB_GROUP * >::size_type"""
12341 return _pcbnew.FP_GROUPS_size(self)
12342
12343 def swap(self, v):
12344 r"""swap(FP_GROUPS self, FP_GROUPS v)"""
12345 return _pcbnew.FP_GROUPS_swap(self, v)
12346
12347 def begin(self):
12348 r"""begin(FP_GROUPS self) -> std::vector< PCB_GROUP * >::iterator"""
12349 return _pcbnew.FP_GROUPS_begin(self)
12350
12351 def end(self):
12352 r"""end(FP_GROUPS self) -> std::vector< PCB_GROUP * >::iterator"""
12353 return _pcbnew.FP_GROUPS_end(self)
12354
12355 def rbegin(self):
12356 r"""rbegin(FP_GROUPS self) -> std::vector< PCB_GROUP * >::reverse_iterator"""
12357 return _pcbnew.FP_GROUPS_rbegin(self)
12358
12359 def rend(self):
12360 r"""rend(FP_GROUPS self) -> std::vector< PCB_GROUP * >::reverse_iterator"""
12361 return _pcbnew.FP_GROUPS_rend(self)
12362
12363 def clear(self):
12364 r"""clear(FP_GROUPS self)"""
12365 return _pcbnew.FP_GROUPS_clear(self)
12366
12367 def get_allocator(self):
12368 r"""get_allocator(FP_GROUPS self) -> std::vector< PCB_GROUP * >::allocator_type"""
12369 return _pcbnew.FP_GROUPS_get_allocator(self)
12370
12371 def pop_back(self):
12372 r"""pop_back(FP_GROUPS self)"""
12373 return _pcbnew.FP_GROUPS_pop_back(self)
12374
12375 def erase(self, *args):
12376 r"""
12377 erase(FP_GROUPS self, std::vector< PCB_GROUP * >::iterator pos) -> std::vector< PCB_GROUP * >::iterator
12378 erase(FP_GROUPS self, std::vector< PCB_GROUP * >::iterator first, std::vector< PCB_GROUP * >::iterator last) -> std::vector< PCB_GROUP * >::iterator
12379 """
12380 return _pcbnew.FP_GROUPS_erase(self, *args)
12381
12382 def __init__(self, *args):
12383 r"""
12384 __init__(FP_GROUPS self) -> FP_GROUPS
12385 __init__(FP_GROUPS self, FP_GROUPS other) -> FP_GROUPS
12386 __init__(FP_GROUPS self, std::vector< PCB_GROUP * >::size_type size) -> FP_GROUPS
12387 __init__(FP_GROUPS self, std::vector< PCB_GROUP * >::size_type size, PCB_GROUP value) -> FP_GROUPS
12388 """
12389 _pcbnew.FP_GROUPS_swiginit(self, _pcbnew.new_FP_GROUPS(*args))
12390
12391 def push_back(self, x):
12392 r"""push_back(FP_GROUPS self, PCB_GROUP x)"""
12393 return _pcbnew.FP_GROUPS_push_back(self, x)
12394
12395 def front(self):
12396 r"""front(FP_GROUPS self) -> PCB_GROUP"""
12397 return _pcbnew.FP_GROUPS_front(self)
12398
12399 def back(self):
12400 r"""back(FP_GROUPS self) -> PCB_GROUP"""
12401 return _pcbnew.FP_GROUPS_back(self)
12402
12403 def assign(self, n, x):
12404 r"""assign(FP_GROUPS self, std::vector< PCB_GROUP * >::size_type n, PCB_GROUP x)"""
12405 return _pcbnew.FP_GROUPS_assign(self, n, x)
12406
12407 def resize(self, *args):
12408 r"""
12409 resize(FP_GROUPS self, std::vector< PCB_GROUP * >::size_type new_size)
12410 resize(FP_GROUPS self, std::vector< PCB_GROUP * >::size_type new_size, PCB_GROUP x)
12411 """
12412 return _pcbnew.FP_GROUPS_resize(self, *args)
12413
12414 def insert(self, *args):
12415 r"""
12416 insert(FP_GROUPS self, std::vector< PCB_GROUP * >::iterator pos, PCB_GROUP x) -> std::vector< PCB_GROUP * >::iterator
12417 insert(FP_GROUPS self, std::vector< PCB_GROUP * >::iterator pos, std::vector< PCB_GROUP * >::size_type n, PCB_GROUP x)
12418 """
12419 return _pcbnew.FP_GROUPS_insert(self, *args)
12420
12421 def reserve(self, n):
12422 r"""reserve(FP_GROUPS self, std::vector< PCB_GROUP * >::size_type n)"""
12423 return _pcbnew.FP_GROUPS_reserve(self, n)
12424
12425 def capacity(self):
12426 r"""capacity(FP_GROUPS self) -> std::vector< PCB_GROUP * >::size_type"""
12427 return _pcbnew.FP_GROUPS_capacity(self)
12428 __swig_destroy__ = _pcbnew.delete_FP_GROUPS
12429
12430# Register FP_GROUPS in _pcbnew:
12431_pcbnew.FP_GROUPS_swigregister(FP_GROUPS)
12432
12433PAD_SHAPE_CIRCLE = _pcbnew.PAD_SHAPE_CIRCLE
12434
12435PAD_SHAPE_RECT = _pcbnew.PAD_SHAPE_RECT
12436
12437PAD_SHAPE_OVAL = _pcbnew.PAD_SHAPE_OVAL
12438
12439PAD_SHAPE_TRAPEZOID = _pcbnew.PAD_SHAPE_TRAPEZOID
12440
12441PAD_SHAPE_ROUNDRECT = _pcbnew.PAD_SHAPE_ROUNDRECT
12442
12443PAD_SHAPE_CHAMFERED_RECT = _pcbnew.PAD_SHAPE_CHAMFERED_RECT
12444
12445PAD_SHAPE_CUSTOM = _pcbnew.PAD_SHAPE_CUSTOM
12446
12447
12449 r"""PAD_SHAPE_T_asString(PAD_SHAPE a) -> string"""
12450 return _pcbnew.PAD_SHAPE_T_asString(a)
12451PAD_DRILL_SHAPE_CIRCLE = _pcbnew.PAD_DRILL_SHAPE_CIRCLE
12452
12453PAD_DRILL_SHAPE_OBLONG = _pcbnew.PAD_DRILL_SHAPE_OBLONG
12454
12455PAD_ATTRIB_PTH = _pcbnew.PAD_ATTRIB_PTH
12456
12457PAD_ATTRIB_SMD = _pcbnew.PAD_ATTRIB_SMD
12458
12459PAD_ATTRIB_CONN = _pcbnew.PAD_ATTRIB_CONN
12460
12461PAD_ATTRIB_NPTH = _pcbnew.PAD_ATTRIB_NPTH
12462
12463PAD_PROP_NONE = _pcbnew.PAD_PROP_NONE
12464
12465PAD_PROP_BGA = _pcbnew.PAD_PROP_BGA
12466
12467PAD_PROP_FIDUCIAL_GLBL = _pcbnew.PAD_PROP_FIDUCIAL_GLBL
12468
12469PAD_PROP_FIDUCIAL_LOCAL = _pcbnew.PAD_PROP_FIDUCIAL_LOCAL
12470
12471PAD_PROP_TESTPOINT = _pcbnew.PAD_PROP_TESTPOINT
12472
12473PAD_PROP_HEATSINK = _pcbnew.PAD_PROP_HEATSINK
12474
12475PAD_PROP_CASTELLATED = _pcbnew.PAD_PROP_CASTELLATED
12476
12477CUST_PAD_SHAPE_IN_ZONE_OUTLINE = _pcbnew.CUST_PAD_SHAPE_IN_ZONE_OUTLINE
12478
12479CUST_PAD_SHAPE_IN_ZONE_CONVEXHULL = _pcbnew.CUST_PAD_SHAPE_IN_ZONE_CONVEXHULL
12480
12482 r"""Proxy of C++ PAD class."""
12483
12484 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12485 __repr__ = _swig_repr
12486
12487 def __init__(self, *args):
12488 r"""
12489 __init__(PAD self, FOOTPRINT parent) -> PAD
12490 __init__(PAD self, PAD aPad) -> PAD
12491 """
12492 _pcbnew.PAD_swiginit(self, _pcbnew.new_PAD(*args))
12493
12494 @staticmethod
12495 def PTHMask():
12496 r"""PTHMask() -> LSET"""
12497 return _pcbnew.PAD_PTHMask()
12498
12499 @staticmethod
12500 def SMDMask():
12501 r"""SMDMask() -> LSET"""
12502 return _pcbnew.PAD_SMDMask()
12503
12504 @staticmethod
12506 r"""ConnSMDMask() -> LSET"""
12507 return _pcbnew.PAD_ConnSMDMask()
12508
12509 @staticmethod
12511 r"""UnplatedHoleMask() -> LSET"""
12512 return _pcbnew.PAD_UnplatedHoleMask()
12513
12514 @staticmethod
12516 r"""ApertureMask() -> LSET"""
12517 return _pcbnew.PAD_ApertureMask()
12518
12519 @staticmethod
12520 def ClassOf(aItem):
12521 r"""ClassOf(EDA_ITEM aItem) -> bool"""
12522 return _pcbnew.PAD_ClassOf(aItem)
12523
12524 def GetParent(self):
12525 r"""GetParent(PAD self) -> FOOTPRINT"""
12526 return _pcbnew.PAD_GetParent(self)
12527
12529 r"""GetParentAsString(PAD self) -> wxString"""
12530 return _pcbnew.PAD_GetParentAsString(self)
12531
12532 def ImportSettingsFrom(self, aMasterPad):
12533 r"""ImportSettingsFrom(PAD self, PAD aMasterPad)"""
12534 return _pcbnew.PAD_ImportSettingsFrom(self, aMasterPad)
12535
12536 def IsFlipped(self):
12537 r"""IsFlipped(PAD self) -> bool"""
12538 return _pcbnew.PAD_IsFlipped(self)
12539
12540 def SetNumber(self, aNumber):
12541 r"""SetNumber(PAD self, wxString aNumber)"""
12542 return _pcbnew.PAD_SetNumber(self, aNumber)
12543
12544 def GetNumber(self):
12545 r"""GetNumber(PAD self) -> wxString"""
12546 return _pcbnew.PAD_GetNumber(self)
12547
12548 def CanHaveNumber(self):
12549 r"""CanHaveNumber(PAD self) -> bool"""
12550 return _pcbnew.PAD_CanHaveNumber(self)
12551
12552 def SetPinFunction(self, aName):
12553 r"""SetPinFunction(PAD self, wxString aName)"""
12554 return _pcbnew.PAD_SetPinFunction(self, aName)
12555
12557 r"""GetPinFunction(PAD self) -> wxString"""
12558 return _pcbnew.PAD_GetPinFunction(self)
12559
12560 def SetPinType(self, aType):
12561 r"""SetPinType(PAD self, wxString aType)"""
12562 return _pcbnew.PAD_SetPinType(self, aType)
12563
12564 def GetPinType(self):
12565 r"""GetPinType(PAD self) -> wxString"""
12566 return _pcbnew.PAD_GetPinType(self)
12567
12568 def SameLogicalPadAs(self, aOther):
12569 r"""SameLogicalPadAs(PAD self, PAD aOther) -> bool"""
12570 return _pcbnew.PAD_SameLogicalPadAs(self, aOther)
12571
12572 def SharesNetTieGroup(self, aOther):
12573 r"""SharesNetTieGroup(PAD self, PAD aOther) -> bool"""
12574 return _pcbnew.PAD_SharesNetTieGroup(self, aOther)
12575
12577 r"""IsNoConnectPad(PAD self) -> bool"""
12578 return _pcbnew.PAD_IsNoConnectPad(self)
12579
12580 def IsFreePad(self):
12581 r"""IsFreePad(PAD self) -> bool"""
12582 return _pcbnew.PAD_IsFreePad(self)
12583
12584 def SetShape(self, aShape):
12585 r"""SetShape(PAD self, PAD_SHAPE aShape)"""
12586 return _pcbnew.PAD_SetShape(self, aShape)
12587
12588 def GetShape(self):
12589 r"""GetShape(PAD self) -> PAD_SHAPE"""
12590 return _pcbnew.PAD_GetShape(self)
12591
12593 r"""GetAnchorPadShape(PAD self) -> PAD_SHAPE"""
12594 return _pcbnew.PAD_GetAnchorPadShape(self)
12595
12597 r"""GetCustomShapeInZoneOpt(PAD self) -> CUST_PAD_SHAPE_IN_ZONE"""
12598 return _pcbnew.PAD_GetCustomShapeInZoneOpt(self)
12599
12600 def SetCustomShapeInZoneOpt(self, aOption):
12601 r"""SetCustomShapeInZoneOpt(PAD self, CUST_PAD_SHAPE_IN_ZONE aOption)"""
12602 return _pcbnew.PAD_SetCustomShapeInZoneOpt(self, aOption)
12603
12604 def SetAnchorPadShape(self, aShape):
12605 r"""SetAnchorPadShape(PAD self, PAD_SHAPE aShape)"""
12606 return _pcbnew.PAD_SetAnchorPadShape(self, aShape)
12607
12608 def SetY(self, y):
12609 r"""SetY(PAD self, int y)"""
12610 return _pcbnew.PAD_SetY(self, y)
12611
12612 def SetX(self, x):
12613 r"""SetX(PAD self, int x)"""
12614 return _pcbnew.PAD_SetX(self, x)
12615
12616 def SetPos0(self, aPos):
12617 r"""SetPos0(PAD self, VECTOR2I aPos)"""
12618 return _pcbnew.PAD_SetPos0(self, aPos)
12619
12620 def GetPos0(self):
12621 r"""GetPos0(PAD self) -> VECTOR2I"""
12622 return _pcbnew.PAD_GetPos0(self)
12623
12624 def SetY0(self, y):
12625 r"""SetY0(PAD self, int y)"""
12626 return _pcbnew.PAD_SetY0(self, y)
12627
12628 def SetX0(self, x):
12629 r"""SetX0(PAD self, int x)"""
12630 return _pcbnew.PAD_SetX0(self, x)
12631
12632 def SetSize(self, aSize):
12633 r"""SetSize(PAD self, VECTOR2I aSize)"""
12634 return _pcbnew.PAD_SetSize(self, aSize)
12635
12636 def GetSize(self):
12637 r"""GetSize(PAD self) -> VECTOR2I"""
12638 return _pcbnew.PAD_GetSize(self)
12639
12640 def SetSizeX(self, aX):
12641 r"""SetSizeX(PAD self, int const aX)"""
12642 return _pcbnew.PAD_SetSizeX(self, aX)
12643
12644 def GetSizeX(self):
12645 r"""GetSizeX(PAD self) -> int"""
12646 return _pcbnew.PAD_GetSizeX(self)
12647
12648 def SetSizeY(self, aY):
12649 r"""SetSizeY(PAD self, int const aY)"""
12650 return _pcbnew.PAD_SetSizeY(self, aY)
12651
12652 def GetSizeY(self):
12653 r"""GetSizeY(PAD self) -> int"""
12654 return _pcbnew.PAD_GetSizeY(self)
12655
12656 def SetDelta(self, aSize):
12657 r"""SetDelta(PAD self, VECTOR2I aSize)"""
12658 return _pcbnew.PAD_SetDelta(self, aSize)
12659
12660 def GetDelta(self):
12661 r"""GetDelta(PAD self) -> VECTOR2I"""
12662 return _pcbnew.PAD_GetDelta(self)
12663
12664 def SetDrillSize(self, aSize):
12665 r"""SetDrillSize(PAD self, VECTOR2I aSize)"""
12666 return _pcbnew.PAD_SetDrillSize(self, aSize)
12667
12668 def GetDrillSize(self):
12669 r"""GetDrillSize(PAD self) -> VECTOR2I"""
12670 return _pcbnew.PAD_GetDrillSize(self)
12671
12672 def SetDrillSizeX(self, aX):
12673 r"""SetDrillSizeX(PAD self, int const aX)"""
12674 return _pcbnew.PAD_SetDrillSizeX(self, aX)
12675
12676 def GetDrillSizeX(self):
12677 r"""GetDrillSizeX(PAD self) -> int"""
12678 return _pcbnew.PAD_GetDrillSizeX(self)
12679
12680 def SetDrillSizeY(self, aY):
12681 r"""SetDrillSizeY(PAD self, int const aY)"""
12682 return _pcbnew.PAD_SetDrillSizeY(self, aY)
12683
12684 def GetDrillSizeY(self):
12685 r"""GetDrillSizeY(PAD self) -> int"""
12686 return _pcbnew.PAD_GetDrillSizeY(self)
12687
12688 def SetOffset(self, aOffset):
12689 r"""SetOffset(PAD self, VECTOR2I aOffset)"""
12690 return _pcbnew.PAD_SetOffset(self, aOffset)
12691
12692 def GetOffset(self):
12693 r"""GetOffset(PAD self) -> VECTOR2I"""
12694 return _pcbnew.PAD_GetOffset(self)
12695
12696 def AddPrimitivePoly(self, *args):
12697 r"""
12698 AddPrimitivePoly(PAD self, SHAPE_POLY_SET aPoly, int aThickness, bool aFilled)
12699 AddPrimitivePoly(PAD self, VECTOR_VECTOR2I aPoly, int aThickness, bool aFilled)
12700 """
12701 return _pcbnew.PAD_AddPrimitivePoly(self, *args)
12702
12703 def AddPrimitiveSegment(self, aStart, aEnd, aThickness):
12704 r"""AddPrimitiveSegment(PAD self, VECTOR2I aStart, VECTOR2I aEnd, int aThickness)"""
12705 return _pcbnew.PAD_AddPrimitiveSegment(self, aStart, aEnd, aThickness)
12706
12707 def AddPrimitiveCircle(self, aCenter, aRadius, aThickness, aFilled):
12708 r"""AddPrimitiveCircle(PAD self, VECTOR2I aCenter, int aRadius, int aThickness, bool aFilled)"""
12709 return _pcbnew.PAD_AddPrimitiveCircle(self, aCenter, aRadius, aThickness, aFilled)
12710
12711 def AddPrimitiveRect(self, aStart, aEnd, aThickness, aFilled):
12712 r"""AddPrimitiveRect(PAD self, VECTOR2I aStart, VECTOR2I aEnd, int aThickness, bool aFilled)"""
12713 return _pcbnew.PAD_AddPrimitiveRect(self, aStart, aEnd, aThickness, aFilled)
12714
12715 def AddPrimitiveArc(self, aCenter, aStart, aArcAngle, aThickness):
12716 r"""AddPrimitiveArc(PAD self, VECTOR2I aCenter, VECTOR2I aStart, EDA_ANGLE aArcAngle, int aThickness)"""
12717 return _pcbnew.PAD_AddPrimitiveArc(self, aCenter, aStart, aArcAngle, aThickness)
12718
12719 def AddPrimitiveCurve(self, aStart, aEnd, aCtrl1, aCtrl2, aThickness):
12720 r"""AddPrimitiveCurve(PAD self, VECTOR2I aStart, VECTOR2I aEnd, VECTOR2I aCtrl1, VECTOR2I aCtrl2, int aThickness)"""
12721 return _pcbnew.PAD_AddPrimitiveCurve(self, aStart, aEnd, aCtrl1, aCtrl2, aThickness)
12722
12723 def AddPrimitiveAnnotationBox(self, aStart, aEnd):
12724 r"""AddPrimitiveAnnotationBox(PAD self, VECTOR2I aStart, VECTOR2I aEnd)"""
12725 return _pcbnew.PAD_AddPrimitiveAnnotationBox(self, aStart, aEnd)
12726
12727 def GetBestAnchorPosition(self, aPos):
12728 r"""GetBestAnchorPosition(PAD self, VECTOR2I aPos) -> bool"""
12729 return _pcbnew.PAD_GetBestAnchorPosition(self, aPos)
12730
12732 r"""MergePrimitivesAsPolygon(PAD self, SHAPE_POLY_SET aMergedPolygon, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
12733 return _pcbnew.PAD_MergePrimitivesAsPolygon(self, *args)
12734
12736 r"""DeletePrimitivesList(PAD self)"""
12737 return _pcbnew.PAD_DeletePrimitivesList(self)
12738
12739 def GetPrimitives(self):
12740 r"""GetPrimitives(PAD self) -> std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const &"""
12741 return _pcbnew.PAD_GetPrimitives(self)
12742
12743 def FlipPrimitives(self, aFlipLeftRight):
12744 r"""FlipPrimitives(PAD self, bool aFlipLeftRight)"""
12745 return _pcbnew.PAD_FlipPrimitives(self, aFlipLeftRight)
12746
12747 def ReplacePrimitives(self, aPrimitivesList):
12748 r"""ReplacePrimitives(PAD self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
12749 return _pcbnew.PAD_ReplacePrimitives(self, aPrimitivesList)
12750
12751 def AppendPrimitives(self, aPrimitivesList):
12752 r"""AppendPrimitives(PAD self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
12753 return _pcbnew.PAD_AppendPrimitives(self, aPrimitivesList)
12754
12755 def AddPrimitive(self, aPrimitive):
12756 r"""AddPrimitive(PAD self, PCB_SHAPE aPrimitive)"""
12757 return _pcbnew.PAD_AddPrimitive(self, aPrimitive)
12758
12759 def SetOrientation(self, aAngle):
12760 r"""SetOrientation(PAD self, EDA_ANGLE aAngle)"""
12761 return _pcbnew.PAD_SetOrientation(self, aAngle)
12762
12764 r"""GetOrientation(PAD self) -> EDA_ANGLE"""
12765 return _pcbnew.PAD_GetOrientation(self)
12766
12767 def SetOrientationDegrees(self, aOrientation):
12768 r"""SetOrientationDegrees(PAD self, double aOrientation)"""
12769 return _pcbnew.PAD_SetOrientationDegrees(self, aOrientation)
12770
12772 r"""GetOrientationDegrees(PAD self) -> double"""
12773 return _pcbnew.PAD_GetOrientationDegrees(self)
12774
12775 def SetDrillShape(self, aShape):
12776 r"""SetDrillShape(PAD self, PAD_DRILL_SHAPE_T aShape)"""
12777 return _pcbnew.PAD_SetDrillShape(self, aShape)
12778
12779 def GetDrillShape(self):
12780 r"""GetDrillShape(PAD self) -> PAD_DRILL_SHAPE_T"""
12781 return _pcbnew.PAD_GetDrillShape(self)
12782
12783 def IsDirty(self):
12784 r"""IsDirty(PAD self) -> bool"""
12785 return _pcbnew.PAD_IsDirty(self)
12786
12787 def SetDirty(self):
12788 r"""SetDirty(PAD self)"""
12789 return _pcbnew.PAD_SetDirty(self)
12790
12791 def SetAttribute(self, aAttribute):
12792 r"""SetAttribute(PAD self, PAD_ATTRIB aAttribute)"""
12793 return _pcbnew.PAD_SetAttribute(self, aAttribute)
12794
12795 def GetAttribute(self):
12796 r"""GetAttribute(PAD self) -> PAD_ATTRIB"""
12797 return _pcbnew.PAD_GetAttribute(self)
12798
12799 def SetProperty(self, aProperty):
12800 r"""SetProperty(PAD self, PAD_PROP aProperty)"""
12801 return _pcbnew.PAD_SetProperty(self, aProperty)
12802
12803 def GetProperty(self):
12804 r"""GetProperty(PAD self) -> PAD_PROP"""
12805 return _pcbnew.PAD_GetProperty(self)
12806
12807 def IsAperturePad(self):
12808 r"""IsAperturePad(PAD self) -> bool"""
12809 return _pcbnew.PAD_IsAperturePad(self)
12810
12811 def SetPadToDieLength(self, aLength):
12812 r"""SetPadToDieLength(PAD self, int aLength)"""
12813 return _pcbnew.PAD_SetPadToDieLength(self, aLength)
12814
12816 r"""GetPadToDieLength(PAD self) -> int"""
12817 return _pcbnew.PAD_GetPadToDieLength(self)
12818
12820 r"""GetLocalSolderMaskMargin(PAD self) -> int"""
12821 return _pcbnew.PAD_GetLocalSolderMaskMargin(self)
12822
12823 def SetLocalSolderMaskMargin(self, aMargin):
12824 r"""SetLocalSolderMaskMargin(PAD self, int aMargin)"""
12825 return _pcbnew.PAD_SetLocalSolderMaskMargin(self, aMargin)
12826
12827 def GetLocalClearance(self, *args):
12828 r"""
12829 GetLocalClearance(PAD self, wxString aSource) -> int
12830 GetLocalClearance(PAD self) -> int
12831 """
12832 return _pcbnew.PAD_GetLocalClearance(self, *args)
12833
12834 def SetLocalClearance(self, aClearance):
12835 r"""SetLocalClearance(PAD self, int aClearance)"""
12836 return _pcbnew.PAD_SetLocalClearance(self, aClearance)
12837
12839 r"""GetLocalSolderPasteMargin(PAD self) -> int"""
12840 return _pcbnew.PAD_GetLocalSolderPasteMargin(self)
12841
12842 def SetLocalSolderPasteMargin(self, aMargin):
12843 r"""SetLocalSolderPasteMargin(PAD self, int aMargin)"""
12844 return _pcbnew.PAD_SetLocalSolderPasteMargin(self, aMargin)
12845
12847 r"""GetLocalSolderPasteMarginRatio(PAD self) -> double"""
12848 return _pcbnew.PAD_GetLocalSolderPasteMarginRatio(self)
12849
12851 r"""SetLocalSolderPasteMarginRatio(PAD self, double aRatio)"""
12852 return _pcbnew.PAD_SetLocalSolderPasteMarginRatio(self, aRatio)
12853
12854 def GetOwnClearance(self, aLayer, aSource=None):
12855 r"""GetOwnClearance(PAD self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
12856 return _pcbnew.PAD_GetOwnClearance(self, aLayer, aSource)
12857
12858 def TransformShapeToPolygon(self, *args):
12859 r"""TransformShapeToPolygon(PAD self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc=ERROR_INSIDE, bool ignoreLineWidth=False)"""
12860 return _pcbnew.PAD_TransformShapeToPolygon(self, *args)
12861
12862 def TransformHoleToPolygon(self, *args):
12863 r"""TransformHoleToPolygon(PAD self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> bool"""
12864 return _pcbnew.PAD_TransformHoleToPolygon(self, *args)
12865
12866 def GetEffectiveShape(self, *args):
12867 r"""GetEffectiveShape(PAD self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING flashPTHPads=DEFAULT) -> std::shared_ptr< SHAPE >"""
12868 return _pcbnew.PAD_GetEffectiveShape(self, *args)
12869
12870 def GetEffectivePolygon(self, *args):
12871 r"""GetEffectivePolygon(PAD self, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> std::shared_ptr< SHAPE_POLY_SET > const"""
12872 return _pcbnew.PAD_GetEffectivePolygon(self, *args)
12873
12875 r"""GetBoundingRadius(PAD self) -> int"""
12876 return _pcbnew.PAD_GetBoundingRadius(self)
12877
12879 r"""GetSolderMaskExpansion(PAD self) -> int"""
12880 return _pcbnew.PAD_GetSolderMaskExpansion(self)
12881
12883 r"""GetSolderPasteMargin(PAD self) -> VECTOR2I"""
12884 return _pcbnew.PAD_GetSolderPasteMargin(self)
12885
12886 def SetZoneConnection(self, aType):
12887 r"""SetZoneConnection(PAD self, ZONE_CONNECTION aType)"""
12888 return _pcbnew.PAD_SetZoneConnection(self, aType)
12889
12891 r"""GetZoneConnection(PAD self) -> ZONE_CONNECTION"""
12892 return _pcbnew.PAD_GetZoneConnection(self)
12893
12894 def GetLocalZoneConnectionOverride(self, aSource=None):
12895 r"""GetLocalZoneConnectionOverride(PAD self, wxString aSource=None) -> ZONE_CONNECTION"""
12896 return _pcbnew.PAD_GetLocalZoneConnectionOverride(self, aSource)
12897
12898 def SetThermalSpokeWidth(self, aWidth):
12899 r"""SetThermalSpokeWidth(PAD self, int aWidth)"""
12900 return _pcbnew.PAD_SetThermalSpokeWidth(self, aWidth)
12901
12903 r"""GetThermalSpokeWidth(PAD self) -> int"""
12904 return _pcbnew.PAD_GetThermalSpokeWidth(self)
12905
12906 def GetLocalSpokeWidthOverride(self, aSource=None):
12907 r"""GetLocalSpokeWidthOverride(PAD self, wxString aSource=None) -> int"""
12908 return _pcbnew.PAD_GetLocalSpokeWidthOverride(self, aSource)
12909
12910 def SetThermalSpokeAngle(self, aAngle):
12911 r"""SetThermalSpokeAngle(PAD self, EDA_ANGLE aAngle)"""
12912 return _pcbnew.PAD_SetThermalSpokeAngle(self, aAngle)
12913
12915 r"""GetThermalSpokeAngle(PAD self) -> EDA_ANGLE"""
12916 return _pcbnew.PAD_GetThermalSpokeAngle(self)
12917
12919 r"""SetThermalSpokeAngleDegrees(PAD self, double aAngle)"""
12920 return _pcbnew.PAD_SetThermalSpokeAngleDegrees(self, aAngle)
12921
12923 r"""GetThermalSpokeAngleDegrees(PAD self) -> double"""
12924 return _pcbnew.PAD_GetThermalSpokeAngleDegrees(self)
12925
12926 def SetThermalGap(self, aGap):
12927 r"""SetThermalGap(PAD self, int aGap)"""
12928 return _pcbnew.PAD_SetThermalGap(self, aGap)
12929
12930 def GetThermalGap(self):
12931 r"""GetThermalGap(PAD self) -> int"""
12932 return _pcbnew.PAD_GetThermalGap(self)
12933
12934 def GetLocalThermalGapOverride(self, aSource=None):
12935 r"""GetLocalThermalGapOverride(PAD self, wxString aSource=None) -> int"""
12936 return _pcbnew.PAD_GetLocalThermalGapOverride(self, aSource)
12937
12938 def SetRoundRectCornerRadius(self, aRadius):
12939 r"""SetRoundRectCornerRadius(PAD self, double aRadius)"""
12940 return _pcbnew.PAD_SetRoundRectCornerRadius(self, aRadius)
12941
12943 r"""GetRoundRectCornerRadius(PAD self) -> int"""
12944 return _pcbnew.PAD_GetRoundRectCornerRadius(self)
12945
12946 def ShapePos(self):
12947 r"""ShapePos(PAD self) -> VECTOR2I"""
12948 return _pcbnew.PAD_ShapePos(self)
12949
12950 def SetRoundRectRadiusRatio(self, aRadiusScale):
12951 r"""SetRoundRectRadiusRatio(PAD self, double aRadiusScale)"""
12952 return _pcbnew.PAD_SetRoundRectRadiusRatio(self, aRadiusScale)
12953
12955 r"""GetRoundRectRadiusRatio(PAD self) -> double"""
12956 return _pcbnew.PAD_GetRoundRectRadiusRatio(self)
12957
12958 def SetChamferRectRatio(self, aChamferScale):
12959 r"""SetChamferRectRatio(PAD self, double aChamferScale)"""
12960 return _pcbnew.PAD_SetChamferRectRatio(self, aChamferScale)
12961
12963 r"""GetChamferRectRatio(PAD self) -> double"""
12964 return _pcbnew.PAD_GetChamferRectRatio(self)
12965
12966 def SetChamferPositions(self, aPositions):
12967 r"""SetChamferPositions(PAD self, int aPositions)"""
12968 return _pcbnew.PAD_SetChamferPositions(self, aPositions)
12969
12971 r"""GetChamferPositions(PAD self) -> int"""
12972 return _pcbnew.PAD_GetChamferPositions(self)
12973
12975 r"""GetSubRatsnest(PAD self) -> int"""
12976 return _pcbnew.PAD_GetSubRatsnest(self)
12977
12978 def SetSubRatsnest(self, aSubRatsnest):
12979 r"""SetSubRatsnest(PAD self, int aSubRatsnest)"""
12980 return _pcbnew.PAD_SetSubRatsnest(self, aSubRatsnest)
12981
12982 def SetRemoveUnconnected(self, aSet):
12983 r"""SetRemoveUnconnected(PAD self, bool aSet)"""
12984 return _pcbnew.PAD_SetRemoveUnconnected(self, aSet)
12985
12987 r"""GetRemoveUnconnected(PAD self) -> bool"""
12988 return _pcbnew.PAD_GetRemoveUnconnected(self)
12989
12990 def SetKeepTopBottom(self, aSet):
12991 r"""SetKeepTopBottom(PAD self, bool aSet)"""
12992 return _pcbnew.PAD_SetKeepTopBottom(self, aSet)
12993
12995 r"""GetKeepTopBottom(PAD self) -> bool"""
12996 return _pcbnew.PAD_GetKeepTopBottom(self)
12997
12998 def ConditionallyFlashed(self, aLayer):
12999 r"""ConditionallyFlashed(PAD self, PCB_LAYER_ID aLayer) -> bool"""
13000 return _pcbnew.PAD_ConditionallyFlashed(self, aLayer)
13001
13002 def CanFlashLayer(self, aLayer):
13003 r"""CanFlashLayer(PAD self, int aLayer) -> bool"""
13004 return _pcbnew.PAD_CanFlashLayer(self, aLayer)
13005
13007 r"""GetPrincipalLayer(PAD self) -> PCB_LAYER_ID"""
13008 return _pcbnew.PAD_GetPrincipalLayer(self)
13009
13010 def FlashLayer(self, *args):
13011 r"""
13012 FlashLayer(PAD self, int aLayer, bool aOnlyCheckIfPermitted=False) -> bool
13013 FlashLayer(PAD self, LSET aLayers) -> bool
13014 """
13015 return _pcbnew.PAD_FlashLayer(self, *args)
13016
13017 def HitTest(self, *args):
13018 r"""
13019 HitTest(PAD self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13020 HitTest(PAD self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13021 """
13022 return _pcbnew.PAD_HitTest(self, *args)
13023
13024 def SetDrawCoord(self):
13025 r"""SetDrawCoord(PAD self)"""
13026 return _pcbnew.PAD_SetDrawCoord(self)
13027
13028 def SetLocalCoord(self):
13029 r"""SetLocalCoord(PAD self)"""
13030 return _pcbnew.PAD_SetLocalCoord(self)
13031
13032 @staticmethod
13033 def Compare(aPadRef, aPadCmp):
13034 r"""Compare(PAD aPadRef, PAD aPadCmp) -> int"""
13035 return _pcbnew.PAD_Compare(aPadRef, aPadCmp)
13036
13037 def ShowPadShape(self):
13038 r"""ShowPadShape(PAD self) -> wxString"""
13039 return _pcbnew.PAD_ShowPadShape(self)
13040
13041 def ShowPadAttr(self):
13042 r"""ShowPadAttr(PAD self) -> wxString"""
13043 return _pcbnew.PAD_ShowPadAttr(self)
13044
13045 def ClonePad(self):
13046 r"""ClonePad(PAD self) -> PAD"""
13047 return _pcbnew.PAD_ClonePad(self)
13048
13049 def BuildEffectiveShapes(self, aLayer):
13050 r"""BuildEffectiveShapes(PAD self, PCB_LAYER_ID aLayer)"""
13051 return _pcbnew.PAD_BuildEffectiveShapes(self, aLayer)
13052
13053 def BuildEffectivePolygon(self, *args):
13054 r"""BuildEffectivePolygon(PAD self, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
13055 return _pcbnew.PAD_BuildEffectivePolygon(self, *args)
13056
13057 def ViewGetLOD(self, aLayer, aView):
13058 r"""ViewGetLOD(PAD self, int aLayer, KIGFX::VIEW * aView) -> double"""
13059 return _pcbnew.PAD_ViewGetLOD(self, aLayer, aView)
13060
13062 r"""ClearZoneLayerOverrides(PAD self)"""
13063 return _pcbnew.PAD_ClearZoneLayerOverrides(self)
13064
13065 def GetZoneLayerOverride(self, aLayer):
13066 r"""GetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
13067 return _pcbnew.PAD_GetZoneLayerOverride(self, aLayer)
13068
13069 def SetZoneLayerOverride(self, aLayer, aOverride):
13070 r"""SetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
13071 return _pcbnew.PAD_SetZoneLayerOverride(self, aLayer, aOverride)
13072
13073
13074 # SetPadName() is the old name for PAD::SetName()
13075 # define it for compatibility
13076 def SetPadName(self, aName):
13077 return self.SetNumber(aName)
13078
13079 def SetName(self, aName):
13080 return self.SetNumber(aName)
13081
13082 # GetPadName() is the old name for PAD::GetName()
13083 # define it for compatibility
13084 def GetPadName(self):
13085 return self.GetNumber()
13086
13087 def GetName(self):
13088 return self.GetNumber()
13089
13090 # AddPrimitive() is the old name for D_PAD::AddPrimitivePoly(),
13091 # PAD::AddPrimitiveSegment(), PAD::AddPrimitiveCircle(),
13092 # PAD::AddPrimitiveArc(), PAD::AddPrimitiveCurve()
13093 # define it for compatibility
13094 def AddPrimitive(self, *args):
13095 if len(args) == 2:
13096 return self.AddPrimitivePoly(*args, True)
13097 elif len(args) == 3:
13098 if type(args[1] in [wxPoint,wxSize]):
13099 return self.AddPrimitiveSegment(*args)
13100 else:
13101 return self.AddPrimitiveCircle(*args)
13102 elif len(args) == 4:
13103 return self.AddPrimitiveArc(*args)
13104 elif len(args) == 5:
13105 return self.AddPrimitiveCurve(*args)
13106 else:
13107 raise TypeError("Arguments not recognized.")
13108
13109 # GetCustomShapeAsPolygon() is the old accessor to get custom shapes
13110 def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER):
13111 polygon_set = SHAPE_POLY_SET()
13112 self.MergePrimitivesAsPolygon(polygon_set)
13113 return polygon_set
13114
13115 __swig_destroy__ = _pcbnew.delete_PAD
13116
13117# Register PAD in _pcbnew:
13118_pcbnew.PAD_swigregister(PAD)
13119
13121 r"""PAD_PTHMask() -> LSET"""
13122 return _pcbnew.PAD_PTHMask()
13123
13125 r"""PAD_SMDMask() -> LSET"""
13126 return _pcbnew.PAD_SMDMask()
13127
13129 r"""PAD_ConnSMDMask() -> LSET"""
13130 return _pcbnew.PAD_ConnSMDMask()
13131
13133 r"""PAD_UnplatedHoleMask() -> LSET"""
13134 return _pcbnew.PAD_UnplatedHoleMask()
13135
13137 r"""PAD_ApertureMask() -> LSET"""
13138 return _pcbnew.PAD_ApertureMask()
13139
13140def PAD_ClassOf(aItem):
13141 r"""PAD_ClassOf(EDA_ITEM aItem) -> bool"""
13142 return _pcbnew.PAD_ClassOf(aItem)
13143
13144def PAD_Compare(aPadRef, aPadCmp):
13145 r"""PAD_Compare(PAD aPadRef, PAD aPadCmp) -> int"""
13146 return _pcbnew.PAD_Compare(aPadRef, aPadCmp)
13147
13148ENDPOINT_START = _pcbnew.ENDPOINT_START
13149
13150ENDPOINT_END = _pcbnew.ENDPOINT_END
13151
13152VIATYPE_THROUGH = _pcbnew.VIATYPE_THROUGH
13153
13154VIATYPE_BLIND_BURIED = _pcbnew.VIATYPE_BLIND_BURIED
13155
13156VIATYPE_MICROVIA = _pcbnew.VIATYPE_MICROVIA
13157
13158VIATYPE_NOT_DEFINED = _pcbnew.VIATYPE_NOT_DEFINED
13159
13160UNDEFINED_DRILL_DIAMETER = _pcbnew.UNDEFINED_DRILL_DIAMETER
13161
13163 r"""Proxy of C++ PCB_TRACK class."""
13164
13165 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13166 __repr__ = _swig_repr
13167
13168 @staticmethod
13169 def ClassOf(aItem):
13170 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13171 return _pcbnew.PCB_TRACK_ClassOf(aItem)
13172
13173 def __init__(self, aParent, idtype=PCB_TRACE_T):
13174 r"""__init__(PCB_TRACK self, BOARD_ITEM aParent, KICAD_T idtype=PCB_TRACE_T) -> PCB_TRACK"""
13175 _pcbnew.PCB_TRACK_swiginit(self, _pcbnew.new_PCB_TRACK(aParent, idtype))
13176
13177 def Mirror(self, aCentre, aMirrorAroundXAxis):
13178 r"""Mirror(PCB_TRACK self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
13179 return _pcbnew.PCB_TRACK_Mirror(self, aCentre, aMirrorAroundXAxis)
13180
13181 def SetWidth(self, aWidth):
13182 r"""SetWidth(PCB_TRACK self, int aWidth)"""
13183 return _pcbnew.PCB_TRACK_SetWidth(self, aWidth)
13184
13185 def GetWidth(self):
13186 r"""GetWidth(PCB_TRACK self) -> int"""
13187 return _pcbnew.PCB_TRACK_GetWidth(self)
13188
13189 def SetEnd(self, aEnd):
13190 r"""SetEnd(PCB_TRACK self, VECTOR2I aEnd)"""
13191 return _pcbnew.PCB_TRACK_SetEnd(self, aEnd)
13192
13193 def GetEnd(self):
13194 r"""GetEnd(PCB_TRACK self) -> VECTOR2I"""
13195 return _pcbnew.PCB_TRACK_GetEnd(self)
13196
13197 def SetStart(self, aStart):
13198 r"""SetStart(PCB_TRACK self, VECTOR2I aStart)"""
13199 return _pcbnew.PCB_TRACK_SetStart(self, aStart)
13200
13201 def GetStart(self):
13202 r"""GetStart(PCB_TRACK self) -> VECTOR2I"""
13203 return _pcbnew.PCB_TRACK_GetStart(self)
13204
13205 def SetEndX(self, aX):
13206 r"""SetEndX(PCB_TRACK self, int aX)"""
13207 return _pcbnew.PCB_TRACK_SetEndX(self, aX)
13208
13209 def SetEndY(self, aY):
13210 r"""SetEndY(PCB_TRACK self, int aY)"""
13211 return _pcbnew.PCB_TRACK_SetEndY(self, aY)
13212
13213 def GetEndX(self):
13214 r"""GetEndX(PCB_TRACK self) -> int"""
13215 return _pcbnew.PCB_TRACK_GetEndX(self)
13216
13217 def GetEndY(self):
13218 r"""GetEndY(PCB_TRACK self) -> int"""
13219 return _pcbnew.PCB_TRACK_GetEndY(self)
13220
13221 def GetEndPoint(self, aEndPoint):
13222 r"""GetEndPoint(PCB_TRACK self, ENDPOINT_T aEndPoint) -> VECTOR2I"""
13223 return _pcbnew.PCB_TRACK_GetEndPoint(self, aEndPoint)
13224
13225 def GetLength(self):
13226 r"""GetLength(PCB_TRACK self) -> double"""
13227 return _pcbnew.PCB_TRACK_GetLength(self)
13228
13229 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
13230 r"""TransformShapeToPolygon(PCB_TRACK self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
13231 return _pcbnew.PCB_TRACK_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
13232
13233 def GetEffectiveShape(self, *args):
13234 r"""GetEffectiveShape(PCB_TRACK self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13235 return _pcbnew.PCB_TRACK_GetEffectiveShape(self, *args)
13236
13237 def IsPointOnEnds(self, point, min_dist=0):
13238 r"""IsPointOnEnds(PCB_TRACK self, VECTOR2I point, int min_dist=0) -> EDA_ITEM_FLAGS"""
13239 return _pcbnew.PCB_TRACK_IsPointOnEnds(self, point, min_dist)
13240
13241 def IsNull(self):
13242 r"""IsNull(PCB_TRACK self) -> bool"""
13243 return _pcbnew.PCB_TRACK_IsNull(self)
13244
13245 def HitTest(self, *args):
13246 r"""
13247 HitTest(PCB_TRACK self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13248 HitTest(PCB_TRACK self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13249 """
13250 return _pcbnew.PCB_TRACK_HitTest(self, *args)
13251
13252 def ApproxCollinear(self, aTrack):
13253 r"""ApproxCollinear(PCB_TRACK self, PCB_TRACK aTrack) -> bool"""
13254 return _pcbnew.PCB_TRACK_ApproxCollinear(self, aTrack)
13255
13256 def GetWidthConstraint(self, aSource=None):
13257 r"""GetWidthConstraint(PCB_TRACK self, wxString aSource=None) -> MINOPTMAX< int >"""
13258 return _pcbnew.PCB_TRACK_GetWidthConstraint(self, aSource)
13259
13260 def ViewGetLOD(self, aLayer, aView):
13261 r"""ViewGetLOD(PCB_TRACK self, int aLayer, KIGFX::VIEW * aView) -> double"""
13262 return _pcbnew.PCB_TRACK_ViewGetLOD(self, aLayer, aView)
13263
13264 def GetCachedLOD(self):
13265 r"""GetCachedLOD(PCB_TRACK self) -> double"""
13266 return _pcbnew.PCB_TRACK_GetCachedLOD(self)
13267
13268 def SetCachedLOD(self, aLOD):
13269 r"""SetCachedLOD(PCB_TRACK self, double aLOD)"""
13270 return _pcbnew.PCB_TRACK_SetCachedLOD(self, aLOD)
13271
13273 r"""GetCachedScale(PCB_TRACK self) -> double"""
13274 return _pcbnew.PCB_TRACK_GetCachedScale(self)
13275
13276 def SetCachedScale(self, aScale):
13277 r"""SetCachedScale(PCB_TRACK self, double aScale)"""
13278 return _pcbnew.PCB_TRACK_SetCachedScale(self, aScale)
13279 __swig_destroy__ = _pcbnew.delete_PCB_TRACK
13280
13281# Register PCB_TRACK in _pcbnew:
13282_pcbnew.PCB_TRACK_swigregister(PCB_TRACK)
13283
13285 r"""PCB_TRACK_ClassOf(EDA_ITEM aItem) -> bool"""
13286 return _pcbnew.PCB_TRACK_ClassOf(aItem)
13287
13289 r"""Proxy of C++ PCB_ARC class."""
13290
13291 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13292 __repr__ = _swig_repr
13293
13294 def __init__(self, *args):
13295 r"""
13296 __init__(PCB_ARC self, BOARD_ITEM aParent) -> PCB_ARC
13297 __init__(PCB_ARC self, BOARD_ITEM aParent, SHAPE_ARC aArc) -> PCB_ARC
13298 """
13299 _pcbnew.PCB_ARC_swiginit(self, _pcbnew.new_PCB_ARC(*args))
13300
13301 @staticmethod
13302 def ClassOf(aItem):
13303 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13304 return _pcbnew.PCB_ARC_ClassOf(aItem)
13305
13306 def SetMid(self, aMid):
13307 r"""SetMid(PCB_ARC self, VECTOR2I aMid)"""
13308 return _pcbnew.PCB_ARC_SetMid(self, aMid)
13309
13310 def GetMid(self):
13311 r"""GetMid(PCB_ARC self) -> VECTOR2I"""
13312 return _pcbnew.PCB_ARC_GetMid(self)
13313
13314 def GetRadius(self):
13315 r"""GetRadius(PCB_ARC self) -> double"""
13316 return _pcbnew.PCB_ARC_GetRadius(self)
13317
13318 def GetAngle(self):
13319 r"""GetAngle(PCB_ARC self) -> EDA_ANGLE"""
13320 return _pcbnew.PCB_ARC_GetAngle(self)
13321
13323 r"""GetArcAngleStart(PCB_ARC self) -> EDA_ANGLE"""
13324 return _pcbnew.PCB_ARC_GetArcAngleStart(self)
13325
13327 r"""GetArcAngleEnd(PCB_ARC self) -> EDA_ANGLE"""
13328 return _pcbnew.PCB_ARC_GetArcAngleEnd(self)
13329
13330 def HitTest(self, *args):
13331 r"""
13332 HitTest(PCB_ARC self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13333 HitTest(PCB_ARC self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
13334 """
13335 return _pcbnew.PCB_ARC_HitTest(self, *args)
13336
13337 def IsCCW(self):
13338 r"""IsCCW(PCB_ARC self) -> bool"""
13339 return _pcbnew.PCB_ARC_IsCCW(self)
13340
13341 def GetEffectiveShape(self, *args):
13342 r"""GetEffectiveShape(PCB_ARC self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13343 return _pcbnew.PCB_ARC_GetEffectiveShape(self, *args)
13344
13345 def IsDegenerated(self, aThreshold=5):
13346 r"""IsDegenerated(PCB_ARC self, int aThreshold=5) -> bool"""
13347 return _pcbnew.PCB_ARC_IsDegenerated(self, aThreshold)
13348 __swig_destroy__ = _pcbnew.delete_PCB_ARC
13349
13350# Register PCB_ARC in _pcbnew:
13351_pcbnew.PCB_ARC_swigregister(PCB_ARC)
13352
13354 r"""PCB_ARC_ClassOf(EDA_ITEM aItem) -> bool"""
13355 return _pcbnew.PCB_ARC_ClassOf(aItem)
13356
13358 r"""Proxy of C++ PCB_VIA class."""
13359
13360 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13361 __repr__ = _swig_repr
13362
13363 @staticmethod
13364 def ClassOf(aItem):
13365 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13366 return _pcbnew.PCB_VIA_ClassOf(aItem)
13367
13368 def __init__(self, *args):
13369 r"""
13370 __init__(PCB_VIA self, BOARD_ITEM aParent) -> PCB_VIA
13371 __init__(PCB_VIA self, PCB_VIA aOther) -> PCB_VIA
13372 """
13373 _pcbnew.PCB_VIA_swiginit(self, _pcbnew.new_PCB_VIA(*args))
13374
13375 def GetViaType(self):
13376 r"""GetViaType(PCB_VIA self) -> VIATYPE"""
13377 return _pcbnew.PCB_VIA_GetViaType(self)
13378
13379 def SetViaType(self, aViaType):
13380 r"""SetViaType(PCB_VIA self, VIATYPE aViaType)"""
13381 return _pcbnew.PCB_VIA_SetViaType(self, aViaType)
13382
13384 r"""GetSolderMaskExpansion(PCB_VIA self) -> int"""
13385 return _pcbnew.PCB_VIA_GetSolderMaskExpansion(self)
13386
13387 def SetLayerPair(self, aTopLayer, aBottomLayer):
13388 r"""SetLayerPair(PCB_VIA self, PCB_LAYER_ID aTopLayer, PCB_LAYER_ID aBottomLayer)"""
13389 return _pcbnew.PCB_VIA_SetLayerPair(self, aTopLayer, aBottomLayer)
13390
13391 def SetBottomLayer(self, aLayer):
13392 r"""SetBottomLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
13393 return _pcbnew.PCB_VIA_SetBottomLayer(self, aLayer)
13394
13395 def SetTopLayer(self, aLayer):
13396 r"""SetTopLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
13397 return _pcbnew.PCB_VIA_SetTopLayer(self, aLayer)
13398
13399 def LayerPair(self, top_layer, bottom_layer):
13400 r"""LayerPair(PCB_VIA self, PCB_LAYER_ID * top_layer, PCB_LAYER_ID * bottom_layer)"""
13401 return _pcbnew.PCB_VIA_LayerPair(self, top_layer, bottom_layer)
13402
13403 def TopLayer(self):
13404 r"""TopLayer(PCB_VIA self) -> PCB_LAYER_ID"""
13405 return _pcbnew.PCB_VIA_TopLayer(self)
13406
13407 def BottomLayer(self):
13408 r"""BottomLayer(PCB_VIA self) -> PCB_LAYER_ID"""
13409 return _pcbnew.PCB_VIA_BottomLayer(self)
13410
13412 r"""SanitizeLayers(PCB_VIA self)"""
13413 return _pcbnew.PCB_VIA_SanitizeLayers(self)
13414
13415 def HitTest(self, *args):
13416 r"""
13417 HitTest(PCB_VIA self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13418 HitTest(PCB_VIA self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13419 """
13420 return _pcbnew.PCB_VIA_HitTest(self, *args)
13421
13422 def ViewGetLOD(self, aLayer, aView):
13423 r"""ViewGetLOD(PCB_VIA self, int aLayer, KIGFX::VIEW * aView) -> double"""
13424 return _pcbnew.PCB_VIA_ViewGetLOD(self, aLayer, aView)
13425
13426 def GetMinAnnulus(self, aLayer, aSource):
13427 r"""GetMinAnnulus(PCB_VIA self, PCB_LAYER_ID aLayer, wxString aSource) -> int"""
13428 return _pcbnew.PCB_VIA_GetMinAnnulus(self, aLayer, aSource)
13429
13430 def SetRemoveUnconnected(self, aSet):
13431 r"""SetRemoveUnconnected(PCB_VIA self, bool aSet)"""
13432 return _pcbnew.PCB_VIA_SetRemoveUnconnected(self, aSet)
13433
13435 r"""GetRemoveUnconnected(PCB_VIA self) -> bool"""
13436 return _pcbnew.PCB_VIA_GetRemoveUnconnected(self)
13437
13438 def SetKeepStartEnd(self, aSet):
13439 r"""SetKeepStartEnd(PCB_VIA self, bool aSet)"""
13440 return _pcbnew.PCB_VIA_SetKeepStartEnd(self, aSet)
13441
13443 r"""GetKeepStartEnd(PCB_VIA self) -> bool"""
13444 return _pcbnew.PCB_VIA_GetKeepStartEnd(self)
13445
13446 def ConditionallyFlashed(self, aLayer):
13447 r"""ConditionallyFlashed(PCB_VIA self, PCB_LAYER_ID aLayer) -> bool"""
13448 return _pcbnew.PCB_VIA_ConditionallyFlashed(self, aLayer)
13449
13450 def FlashLayer(self, *args):
13451 r"""
13452 FlashLayer(PCB_VIA self, int aLayer) -> bool
13453 FlashLayer(PCB_VIA self, LSET aLayers) -> bool
13454 """
13455 return _pcbnew.PCB_VIA_FlashLayer(self, *args)
13456
13457 def SetDrill(self, aDrill):
13458 r"""SetDrill(PCB_VIA self, int aDrill)"""
13459 return _pcbnew.PCB_VIA_SetDrill(self, aDrill)
13460
13461 def GetDrill(self):
13462 r"""GetDrill(PCB_VIA self) -> int"""
13463 return _pcbnew.PCB_VIA_GetDrill(self)
13464
13465 def GetDrillValue(self):
13466 r"""GetDrillValue(PCB_VIA self) -> int"""
13467 return _pcbnew.PCB_VIA_GetDrillValue(self)
13468
13470 r"""SetDrillDefault(PCB_VIA self)"""
13471 return _pcbnew.PCB_VIA_SetDrillDefault(self)
13472
13473 def GetIsFree(self):
13474 r"""GetIsFree(PCB_VIA self) -> bool"""
13475 return _pcbnew.PCB_VIA_GetIsFree(self)
13476
13477 def SetIsFree(self, aFree=True):
13478 r"""SetIsFree(PCB_VIA self, bool aFree=True)"""
13479 return _pcbnew.PCB_VIA_SetIsFree(self, aFree)
13480
13482 r"""IsDrillDefault(PCB_VIA self) -> bool"""
13483 return _pcbnew.PCB_VIA_IsDrillDefault(self)
13484
13485 def GetEffectiveShape(self, *args):
13486 r"""GetEffectiveShape(PCB_VIA self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13487 return _pcbnew.PCB_VIA_GetEffectiveShape(self, *args)
13488
13490 r"""ClearZoneLayerOverrides(PCB_VIA self)"""
13491 return _pcbnew.PCB_VIA_ClearZoneLayerOverrides(self)
13492
13493 def GetZoneLayerOverride(self, aLayer):
13494 r"""GetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
13495 return _pcbnew.PCB_VIA_GetZoneLayerOverride(self, aLayer)
13496
13497 def SetZoneLayerOverride(self, aLayer, aOverride):
13498 r"""SetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
13499 return _pcbnew.PCB_VIA_SetZoneLayerOverride(self, aLayer, aOverride)
13500 __swig_destroy__ = _pcbnew.delete_PCB_VIA
13501
13502# Register PCB_VIA in _pcbnew:
13503_pcbnew.PCB_VIA_swigregister(PCB_VIA)
13504
13506 r"""PCB_VIA_ClassOf(EDA_ITEM aItem) -> bool"""
13507 return _pcbnew.PCB_VIA_ClassOf(aItem)
13508
13510 r"""Proxy of C++ ISOLATED_ISLANDS class."""
13511
13512 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13513 __repr__ = _swig_repr
13514 m_IsolatedOutlines = property(_pcbnew.ISOLATED_ISLANDS_m_IsolatedOutlines_get, _pcbnew.ISOLATED_ISLANDS_m_IsolatedOutlines_set, doc=r"""m_IsolatedOutlines : std::vector<(int,std::allocator<(int)>)>""")
13515 m_SingleConnectionOutlines = property(_pcbnew.ISOLATED_ISLANDS_m_SingleConnectionOutlines_get, _pcbnew.ISOLATED_ISLANDS_m_SingleConnectionOutlines_set, doc=r"""m_SingleConnectionOutlines : std::vector<(int,std::allocator<(int)>)>""")
13516
13517 def __init__(self):
13518 r"""__init__(ISOLATED_ISLANDS self) -> ISOLATED_ISLANDS"""
13519 _pcbnew.ISOLATED_ISLANDS_swiginit(self, _pcbnew.new_ISOLATED_ISLANDS())
13520 __swig_destroy__ = _pcbnew.delete_ISOLATED_ISLANDS
13521
13522# Register ISOLATED_ISLANDS in _pcbnew:
13523_pcbnew.ISOLATED_ISLANDS_swigregister(ISOLATED_ISLANDS)
13524
13526 r"""Proxy of C++ ZONE class."""
13527
13528 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13529 __repr__ = _swig_repr
13530
13531 def __init__(self, *args):
13532 r"""
13533 __init__(ZONE self, BOARD_ITEM_CONTAINER parent, bool aInFP=False) -> ZONE
13534 __init__(ZONE self, ZONE aZone) -> ZONE
13535 """
13536 _pcbnew.ZONE_swiginit(self, _pcbnew.new_ZONE(*args))
13537 __swig_destroy__ = _pcbnew.delete_ZONE
13538
13539 @staticmethod
13540 def ClassOf(aItem):
13541 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13542 return _pcbnew.ZONE_ClassOf(aItem)
13543
13545 r"""InitDataFromSrcInCopyCtor(ZONE self, ZONE aZone)"""
13546 return _pcbnew.ZONE_InitDataFromSrcInCopyCtor(self, aZone)
13547
13548 def IsConflicting(self):
13549 r"""IsConflicting(ZONE self) -> bool"""
13550 return _pcbnew.ZONE_IsConflicting(self)
13551
13552 def SetAssignedPriority(self, aPriority):
13553 r"""SetAssignedPriority(ZONE self, unsigned int aPriority)"""
13554 return _pcbnew.ZONE_SetAssignedPriority(self, aPriority)
13555
13557 r"""GetAssignedPriority(ZONE self) -> unsigned int"""
13558 return _pcbnew.ZONE_GetAssignedPriority(self)
13559
13560 def HigherPriority(self, aOther):
13561 r"""HigherPriority(ZONE self, ZONE aOther) -> bool"""
13562 return _pcbnew.ZONE_HigherPriority(self, aOther)
13563
13564 def SameNet(self, aOther):
13565 r"""SameNet(ZONE self, ZONE aOther) -> bool"""
13566 return _pcbnew.ZONE_SameNet(self, aOther)
13567
13568 def GetZoneName(self):
13569 r"""GetZoneName(ZONE self) -> wxString"""
13570 return _pcbnew.ZONE_GetZoneName(self)
13571
13572 def SetZoneName(self, aName):
13573 r"""SetZoneName(ZONE self, wxString aName)"""
13574 return _pcbnew.ZONE_SetZoneName(self, aName)
13575
13577 r"""CacheBoundingBox(ZONE self)"""
13578 return _pcbnew.ZONE_CacheBoundingBox(self)
13579
13580 def GetLocalClearance(self, *args):
13581 r"""
13582 GetLocalClearance(ZONE self, wxString aSource) -> int
13583 GetLocalClearance(ZONE self) -> int
13584 """
13585 return _pcbnew.ZONE_GetLocalClearance(self, *args)
13586
13587 def SetLocalClearance(self, aClearance):
13588 r"""SetLocalClearance(ZONE self, int aClearance)"""
13589 return _pcbnew.ZONE_SetLocalClearance(self, aClearance)
13590
13591 def GetFirstLayer(self):
13592 r"""GetFirstLayer(ZONE self) -> PCB_LAYER_ID"""
13593 return _pcbnew.ZONE_GetFirstLayer(self)
13594
13595 def ViewGetLOD(self, aLayer, aView):
13596 r"""ViewGetLOD(ZONE self, int aLayer, KIGFX::VIEW * aView) -> double"""
13597 return _pcbnew.ZONE_ViewGetLOD(self, aLayer, aView)
13598
13599 def SetFillMode(self, aFillMode):
13600 r"""SetFillMode(ZONE self, ZONE_FILL_MODE aFillMode)"""
13601 return _pcbnew.ZONE_SetFillMode(self, aFillMode)
13602
13603 def GetFillMode(self):
13604 r"""GetFillMode(ZONE self) -> ZONE_FILL_MODE"""
13605 return _pcbnew.ZONE_GetFillMode(self)
13606
13607 def SetThermalReliefGap(self, aThermalReliefGap):
13608 r"""SetThermalReliefGap(ZONE self, int aThermalReliefGap)"""
13609 return _pcbnew.ZONE_SetThermalReliefGap(self, aThermalReliefGap)
13610
13611 def GetThermalReliefGap(self, *args):
13612 r"""
13613 GetThermalReliefGap(ZONE self) -> int
13614 GetThermalReliefGap(ZONE self, PAD aPad, wxString aSource=None) -> int
13615 """
13616 return _pcbnew.ZONE_GetThermalReliefGap(self, *args)
13617
13618 def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth):
13619 r"""SetThermalReliefSpokeWidth(ZONE self, int aThermalReliefSpokeWidth)"""
13620 return _pcbnew.ZONE_SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
13621
13623 r"""GetThermalReliefSpokeWidth(ZONE self) -> int"""
13624 return _pcbnew.ZONE_GetThermalReliefSpokeWidth(self)
13625
13627 r"""CalculateFilledArea(ZONE self) -> double"""
13628 return _pcbnew.ZONE_CalculateFilledArea(self)
13629
13631 r"""CalculateOutlineArea(ZONE self) -> double"""
13632 return _pcbnew.ZONE_CalculateOutlineArea(self)
13633
13634 def GetFilledArea(self):
13635 r"""GetFilledArea(ZONE self) -> double"""
13636 return _pcbnew.ZONE_GetFilledArea(self)
13637
13639 r"""GetOutlineArea(ZONE self) -> double"""
13640 return _pcbnew.ZONE_GetOutlineArea(self)
13641
13642 def GetLock(self):
13643 r"""GetLock(ZONE self) -> std::mutex &"""
13644 return _pcbnew.ZONE_GetLock(self)
13645
13646 def GetFillFlag(self, aLayer):
13647 r"""GetFillFlag(ZONE self, PCB_LAYER_ID aLayer) -> int"""
13648 return _pcbnew.ZONE_GetFillFlag(self, aLayer)
13649
13650 def SetFillFlag(self, aLayer, aFlag):
13651 r"""SetFillFlag(ZONE self, PCB_LAYER_ID aLayer, bool aFlag)"""
13652 return _pcbnew.ZONE_SetFillFlag(self, aLayer, aFlag)
13653
13654 def IsFilled(self):
13655 r"""IsFilled(ZONE self) -> bool"""
13656 return _pcbnew.ZONE_IsFilled(self)
13657
13658 def SetIsFilled(self, isFilled):
13659 r"""SetIsFilled(ZONE self, bool isFilled)"""
13660 return _pcbnew.ZONE_SetIsFilled(self, isFilled)
13661
13662 def NeedRefill(self):
13663 r"""NeedRefill(ZONE self) -> bool"""
13664 return _pcbnew.ZONE_NeedRefill(self)
13665
13666 def SetNeedRefill(self, aNeedRefill):
13667 r"""SetNeedRefill(ZONE self, bool aNeedRefill)"""
13668 return _pcbnew.ZONE_SetNeedRefill(self, aNeedRefill)
13669
13671 r"""GetPadConnection(ZONE self) -> ZONE_CONNECTION"""
13672 return _pcbnew.ZONE_GetPadConnection(self)
13673
13674 def SetPadConnection(self, aPadConnection):
13675 r"""SetPadConnection(ZONE self, ZONE_CONNECTION aPadConnection)"""
13676 return _pcbnew.ZONE_SetPadConnection(self, aPadConnection)
13677
13679 r"""GetMinThickness(ZONE self) -> int"""
13680 return _pcbnew.ZONE_GetMinThickness(self)
13681
13682 def SetMinThickness(self, aMinThickness):
13683 r"""SetMinThickness(ZONE self, int aMinThickness)"""
13684 return _pcbnew.ZONE_SetMinThickness(self, aMinThickness)
13685
13687 r"""GetHatchThickness(ZONE self) -> int"""
13688 return _pcbnew.ZONE_GetHatchThickness(self)
13689
13690 def SetHatchThickness(self, aThickness):
13691 r"""SetHatchThickness(ZONE self, int aThickness)"""
13692 return _pcbnew.ZONE_SetHatchThickness(self, aThickness)
13693
13694 def GetHatchGap(self):
13695 r"""GetHatchGap(ZONE self) -> int"""
13696 return _pcbnew.ZONE_GetHatchGap(self)
13697
13698 def SetHatchGap(self, aStep):
13699 r"""SetHatchGap(ZONE self, int aStep)"""
13700 return _pcbnew.ZONE_SetHatchGap(self, aStep)
13701
13703 r"""GetHatchOrientation(ZONE self) -> EDA_ANGLE"""
13704 return _pcbnew.ZONE_GetHatchOrientation(self)
13705
13706 def SetHatchOrientation(self, aStep):
13707 r"""SetHatchOrientation(ZONE self, EDA_ANGLE aStep)"""
13708 return _pcbnew.ZONE_SetHatchOrientation(self, aStep)
13709
13711 r"""GetHatchSmoothingLevel(ZONE self) -> int"""
13712 return _pcbnew.ZONE_GetHatchSmoothingLevel(self)
13713
13714 def SetHatchSmoothingLevel(self, aLevel):
13715 r"""SetHatchSmoothingLevel(ZONE self, int aLevel)"""
13716 return _pcbnew.ZONE_SetHatchSmoothingLevel(self, aLevel)
13717
13719 r"""GetHatchSmoothingValue(ZONE self) -> double"""
13720 return _pcbnew.ZONE_GetHatchSmoothingValue(self)
13721
13722 def SetHatchSmoothingValue(self, aValue):
13723 r"""SetHatchSmoothingValue(ZONE self, double aValue)"""
13724 return _pcbnew.ZONE_SetHatchSmoothingValue(self, aValue)
13725
13727 r"""GetHatchHoleMinArea(ZONE self) -> double"""
13728 return _pcbnew.ZONE_GetHatchHoleMinArea(self)
13729
13730 def SetHatchHoleMinArea(self, aPct):
13731 r"""SetHatchHoleMinArea(ZONE self, double aPct)"""
13732 return _pcbnew.ZONE_SetHatchHoleMinArea(self, aPct)
13733
13735 r"""GetHatchBorderAlgorithm(ZONE self) -> int"""
13736 return _pcbnew.ZONE_GetHatchBorderAlgorithm(self)
13737
13738 def SetHatchBorderAlgorithm(self, aAlgo):
13739 r"""SetHatchBorderAlgorithm(ZONE self, int aAlgo)"""
13740 return _pcbnew.ZONE_SetHatchBorderAlgorithm(self, aAlgo)
13741
13743 r"""GetSelectedCorner(ZONE self) -> int"""
13744 return _pcbnew.ZONE_GetSelectedCorner(self)
13745
13746 def SetSelectedCorner(self, aCorner):
13747 r"""SetSelectedCorner(ZONE self, int aCorner)"""
13748 return _pcbnew.ZONE_SetSelectedCorner(self, aCorner)
13749
13750 def GetLocalFlags(self):
13751 r"""GetLocalFlags(ZONE self) -> int"""
13752 return _pcbnew.ZONE_GetLocalFlags(self)
13753
13754 def SetLocalFlags(self, aFlags):
13755 r"""SetLocalFlags(ZONE self, int aFlags)"""
13756 return _pcbnew.ZONE_SetLocalFlags(self, aFlags)
13757
13758 def Outline(self, *args):
13759 r"""
13760 Outline(ZONE self) -> SHAPE_POLY_SET
13761 Outline(ZONE self) -> SHAPE_POLY_SET
13762 """
13763 return _pcbnew.ZONE_Outline(self, *args)
13764
13765 def SetOutline(self, aOutline):
13766 r"""SetOutline(ZONE self, SHAPE_POLY_SET aOutline)"""
13767 return _pcbnew.ZONE_SetOutline(self, aOutline)
13768
13769 def GetEffectiveShape(self, *args):
13770 r"""GetEffectiveShape(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13771 return _pcbnew.ZONE_GetEffectiveShape(self, *args)
13772
13773 def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0):
13774 r"""HitTestFilledArea(ZONE self, PCB_LAYER_ID aLayer, VECTOR2I aRefPos, int aAccuracy=0) -> bool"""
13775 return _pcbnew.ZONE_HitTestFilledArea(self, aLayer, aRefPos, aAccuracy)
13776
13777 def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None):
13778 r"""HitTestCutout(ZONE self, VECTOR2I aRefPos, int * aOutlineIdx=None, int * aHoleIdx=None) -> bool"""
13779 return _pcbnew.ZONE_HitTestCutout(self, aRefPos, aOutlineIdx, aHoleIdx)
13780
13781 def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones):
13782 r"""GetInteractingZones(ZONE self, PCB_LAYER_ID aLayer, ZONES aSameNetCollidingZones, ZONES aOtherNetIntersectingZones)"""
13783 return _pcbnew.ZONE_GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
13784
13785 def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer):
13786 r"""TransformSolidAreasShapesToPolygon(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBuffer)"""
13787 return _pcbnew.ZONE_TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
13788
13789 def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline):
13790 r"""TransformSmoothedOutlineToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, SHAPE_POLY_SET aBoardOutline)"""
13791 return _pcbnew.ZONE_TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
13792
13793 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
13794 r"""TransformShapeToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
13795 return _pcbnew.ZONE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
13796
13797 def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None):
13798 r"""HitTestForCorner(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
13799 return _pcbnew.ZONE_HitTestForCorner(self, refPos, aAccuracy, aCornerHit)
13800
13801 def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None):
13802 r"""HitTestForEdge(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
13803 return _pcbnew.ZONE_HitTestForEdge(self, refPos, aAccuracy, aCornerHit)
13804
13805 def HitTest(self, *args):
13806 r"""
13807 HitTest(ZONE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13808 HitTest(ZONE self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
13809 """
13810 return _pcbnew.ZONE_HitTest(self, *args)
13811
13812 def UnFill(self):
13813 r"""UnFill(ZONE self) -> bool"""
13814 return _pcbnew.ZONE_UnFill(self)
13815
13816 def MoveEdge(self, offset, aEdge):
13817 r"""MoveEdge(ZONE self, VECTOR2I offset, int aEdge)"""
13818 return _pcbnew.ZONE_MoveEdge(self, offset, aEdge)
13819
13820 def Mirror(self, aMirrorRef, aMirrorLeftRight):
13821 r"""Mirror(ZONE self, VECTOR2I aMirrorRef, bool aMirrorLeftRight)"""
13822 return _pcbnew.ZONE_Mirror(self, aMirrorRef, aMirrorLeftRight)
13823
13824 def GetNumCorners(self):
13825 r"""GetNumCorners(ZONE self) -> int"""
13826 return _pcbnew.ZONE_GetNumCorners(self)
13827
13828 def Iterate(self):
13829 r"""Iterate(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
13830 return _pcbnew.ZONE_Iterate(self)
13831
13833 r"""IterateWithHoles(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
13834 return _pcbnew.ZONE_IterateWithHoles(self)
13835
13837 r"""CIterateWithHoles(ZONE self) -> SHAPE_POLY_SET::CONST_ITERATOR"""
13838 return _pcbnew.ZONE_CIterateWithHoles(self)
13839
13841 r"""RemoveAllContours(ZONE self)"""
13842 return _pcbnew.ZONE_RemoveAllContours(self)
13843
13844 def GetCornerPosition(self, aCornerIndex):
13845 r"""GetCornerPosition(ZONE self, int aCornerIndex) -> VECTOR2I"""
13846 return _pcbnew.ZONE_GetCornerPosition(self, aCornerIndex)
13847
13848 def SetCornerPosition(self, aCornerIndex, new_pos):
13849 r"""SetCornerPosition(ZONE self, int aCornerIndex, VECTOR2I new_pos)"""
13850 return _pcbnew.ZONE_SetCornerPosition(self, aCornerIndex, new_pos)
13851
13852 def NewHole(self):
13853 r"""NewHole(ZONE self)"""
13854 return _pcbnew.ZONE_NewHole(self)
13855
13856 def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False):
13857 r"""AppendCorner(ZONE self, VECTOR2I aPosition, int aHoleIdx, bool aAllowDuplication=False) -> bool"""
13858 return _pcbnew.ZONE_AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication)
13859
13860 def GetHatchStyle(self):
13861 r"""GetHatchStyle(ZONE self) -> ZONE_BORDER_DISPLAY_STYLE"""
13862 return _pcbnew.ZONE_GetHatchStyle(self)
13863
13864 def SetHatchStyle(self, aStyle):
13865 r"""SetHatchStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aStyle)"""
13866 return _pcbnew.ZONE_SetHatchStyle(self, aStyle)
13867
13868 def IsSame(self, aZoneToCompare):
13869 r"""IsSame(ZONE self, ZONE aZoneToCompare) -> bool"""
13870 return _pcbnew.ZONE_IsSame(self, aZoneToCompare)
13871
13872 def HasFilledPolysForLayer(self, aLayer):
13873 r"""HasFilledPolysForLayer(ZONE self, PCB_LAYER_ID aLayer) -> bool"""
13874 return _pcbnew.ZONE_HasFilledPolysForLayer(self, aLayer)
13875
13876 def GetFilledPolysList(self, aLayer):
13877 r"""GetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer) -> std::shared_ptr< SHAPE_POLY_SET > const &"""
13878 return _pcbnew.ZONE_GetFilledPolysList(self, aLayer)
13879
13880 def GetFill(self, aLayer):
13881 r"""GetFill(ZONE self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
13882 return _pcbnew.ZONE_GetFill(self, aLayer)
13883
13884 def CacheTriangulation(self, aLayer=UNDEFINED_LAYER):
13885 r"""CacheTriangulation(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
13886 return _pcbnew.ZONE_CacheTriangulation(self, aLayer)
13887
13888 def SetFilledPolysList(self, aLayer, aPolysList):
13889 r"""SetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aPolysList)"""
13890 return _pcbnew.ZONE_SetFilledPolysList(self, aLayer, aPolysList)
13891
13892 def IsIsland(self, aLayer, aPolyIdx):
13893 r"""IsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx) -> bool"""
13894 return _pcbnew.ZONE_IsIsland(self, aLayer, aPolyIdx)
13895
13896 def SetIsIsland(self, aLayer, aPolyIdx):
13897 r"""SetIsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx)"""
13898 return _pcbnew.ZONE_SetIsIsland(self, aLayer, aPolyIdx)
13899
13900 def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None):
13901 r"""BuildSmoothedPoly(ZONE self, SHAPE_POLY_SET aSmoothedPoly, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBoardOutline, SHAPE_POLY_SET aSmoothedPolyWithApron=None) -> bool"""
13902 return _pcbnew.ZONE_BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron)
13903
13904 def SetCornerSmoothingType(self, aType):
13905 r"""SetCornerSmoothingType(ZONE self, int aType)"""
13906 return _pcbnew.ZONE_SetCornerSmoothingType(self, aType)
13907
13909 r"""GetCornerSmoothingType(ZONE self) -> int"""
13910 return _pcbnew.ZONE_GetCornerSmoothingType(self)
13911
13912 def SetCornerRadius(self, aRadius):
13913 r"""SetCornerRadius(ZONE self, unsigned int aRadius)"""
13914 return _pcbnew.ZONE_SetCornerRadius(self, aRadius)
13915
13917 r"""GetCornerRadius(ZONE self) -> unsigned int"""
13918 return _pcbnew.ZONE_GetCornerRadius(self)
13919
13920 def RemoveCutout(self, aOutlineIdx, aHoleIdx):
13921 r"""RemoveCutout(ZONE self, int aOutlineIdx, int aHoleIdx)"""
13922 return _pcbnew.ZONE_RemoveCutout(self, aOutlineIdx, aHoleIdx)
13923
13924 def AddPolygon(self, *args):
13925 r"""
13926 AddPolygon(ZONE self, VECTOR_VECTOR2I aPolygon)
13927 AddPolygon(ZONE self, SHAPE_LINE_CHAIN aPolygon)
13928 """
13929 return _pcbnew.ZONE_AddPolygon(self, *args)
13930
13932 r"""IsTeardropArea(ZONE self) -> bool"""
13933 return _pcbnew.ZONE_IsTeardropArea(self)
13934
13935 def SetTeardropAreaType(self, aType):
13936 r"""SetTeardropAreaType(ZONE self, TEARDROP_TYPE aType)"""
13937 return _pcbnew.ZONE_SetTeardropAreaType(self, aType)
13938
13940 r"""GetTeardropAreaType(ZONE self) -> TEARDROP_TYPE"""
13941 return _pcbnew.ZONE_GetTeardropAreaType(self)
13942
13943 def GetIsRuleArea(self):
13944 r"""GetIsRuleArea(ZONE self) -> bool"""
13945 return _pcbnew.ZONE_GetIsRuleArea(self)
13946
13948 r"""GetDoNotAllowCopperPour(ZONE self) -> bool"""
13949 return _pcbnew.ZONE_GetDoNotAllowCopperPour(self)
13950
13952 r"""GetDoNotAllowVias(ZONE self) -> bool"""
13953 return _pcbnew.ZONE_GetDoNotAllowVias(self)
13954
13956 r"""GetDoNotAllowTracks(ZONE self) -> bool"""
13957 return _pcbnew.ZONE_GetDoNotAllowTracks(self)
13958
13960 r"""GetDoNotAllowPads(ZONE self) -> bool"""
13961 return _pcbnew.ZONE_GetDoNotAllowPads(self)
13962
13964 r"""GetDoNotAllowFootprints(ZONE self) -> bool"""
13965 return _pcbnew.ZONE_GetDoNotAllowFootprints(self)
13966
13967 def SetIsRuleArea(self, aEnable):
13968 r"""SetIsRuleArea(ZONE self, bool aEnable)"""
13969 return _pcbnew.ZONE_SetIsRuleArea(self, aEnable)
13970
13971 def SetDoNotAllowCopperPour(self, aEnable):
13972 r"""SetDoNotAllowCopperPour(ZONE self, bool aEnable)"""
13973 return _pcbnew.ZONE_SetDoNotAllowCopperPour(self, aEnable)
13974
13975 def SetDoNotAllowVias(self, aEnable):
13976 r"""SetDoNotAllowVias(ZONE self, bool aEnable)"""
13977 return _pcbnew.ZONE_SetDoNotAllowVias(self, aEnable)
13978
13979 def SetDoNotAllowTracks(self, aEnable):
13980 r"""SetDoNotAllowTracks(ZONE self, bool aEnable)"""
13981 return _pcbnew.ZONE_SetDoNotAllowTracks(self, aEnable)
13982
13983 def SetDoNotAllowPads(self, aEnable):
13984 r"""SetDoNotAllowPads(ZONE self, bool aEnable)"""
13985 return _pcbnew.ZONE_SetDoNotAllowPads(self, aEnable)
13986
13987 def SetDoNotAllowFootprints(self, aEnable):
13988 r"""SetDoNotAllowFootprints(ZONE self, bool aEnable)"""
13989 return _pcbnew.ZONE_SetDoNotAllowFootprints(self, aEnable)
13990
13992 r"""GetIslandRemovalMode(ZONE self) -> ISLAND_REMOVAL_MODE const"""
13993 return _pcbnew.ZONE_GetIslandRemovalMode(self)
13994
13995 def SetIslandRemovalMode(self, aRemove):
13996 r"""SetIslandRemovalMode(ZONE self, ISLAND_REMOVAL_MODE aRemove)"""
13997 return _pcbnew.ZONE_SetIslandRemovalMode(self, aRemove)
13998
14000 r"""GetMinIslandArea(ZONE self) -> long long"""
14001 return _pcbnew.ZONE_GetMinIslandArea(self)
14002
14003 def SetMinIslandArea(self, aArea):
14004 r"""SetMinIslandArea(ZONE self, long long aArea)"""
14005 return _pcbnew.ZONE_SetMinIslandArea(self, aArea)
14006
14008 r"""GetBorderHatchPitch(ZONE self) -> int"""
14009 return _pcbnew.ZONE_GetBorderHatchPitch(self)
14010
14011 @staticmethod
14013 r"""GetDefaultHatchPitch() -> int"""
14014 return _pcbnew.ZONE_GetDefaultHatchPitch()
14015
14016 def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch):
14017 r"""SetBorderDisplayStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aBorderHatchStyle, int aBorderHatchPitch, bool aRebuilBorderdHatch)"""
14018 return _pcbnew.ZONE_SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
14019
14020 def SetBorderHatchPitch(self, aPitch):
14021 r"""SetBorderHatchPitch(ZONE self, int aPitch)"""
14022 return _pcbnew.ZONE_SetBorderHatchPitch(self, aPitch)
14023
14024 def UnHatchBorder(self):
14025 r"""UnHatchBorder(ZONE self)"""
14026 return _pcbnew.ZONE_UnHatchBorder(self)
14027
14028 def HatchBorder(self):
14029 r"""HatchBorder(ZONE self)"""
14030 return _pcbnew.ZONE_HatchBorder(self)
14031
14032 def GetHatchLines(self):
14033 r"""GetHatchLines(ZONE self) -> std::vector< SEG,std::allocator< SEG > > const &"""
14034 return _pcbnew.ZONE_GetHatchLines(self)
14035
14036 def BuildHashValue(self, aLayer):
14037 r"""BuildHashValue(ZONE self, PCB_LAYER_ID aLayer)"""
14038 return _pcbnew.ZONE_BuildHashValue(self, aLayer)
14039
14040 def GetHashValue(self, aLayer):
14041 r"""GetHashValue(ZONE self, PCB_LAYER_ID aLayer) -> MD5_HASH"""
14042 return _pcbnew.ZONE_GetHashValue(self, aLayer)
14043
14044# Register ZONE in _pcbnew:
14045_pcbnew.ZONE_swigregister(ZONE)
14046
14047def ZONE_ClassOf(aItem):
14048 r"""ZONE_ClassOf(EDA_ITEM aItem) -> bool"""
14049 return _pcbnew.ZONE_ClassOf(aItem)
14050
14052 r"""ZONE_GetDefaultHatchPitch() -> int"""
14053 return _pcbnew.ZONE_GetDefaultHatchPitch()
14054
14056 r"""Proxy of C++ FP_ZONE class."""
14057
14058 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14059 __repr__ = _swig_repr
14060
14061 def __init__(self, *args):
14062 r"""
14063 __init__(FP_ZONE self, BOARD_ITEM_CONTAINER aParent) -> FP_ZONE
14064 __init__(FP_ZONE self, FP_ZONE aZone) -> FP_ZONE
14065 """
14066 _pcbnew.FP_ZONE_swiginit(self, _pcbnew.new_FP_ZONE(*args))
14067
14068 def ViewGetLOD(self, aLayer, aView):
14069 r"""ViewGetLOD(FP_ZONE self, int aLayer, KIGFX::VIEW * aView) -> double"""
14070 return _pcbnew.FP_ZONE_ViewGetLOD(self, aLayer, aView)
14071 __swig_destroy__ = _pcbnew.delete_FP_ZONE
14072
14073# Register FP_ZONE in _pcbnew:
14074_pcbnew.FP_ZONE_swigregister(FP_ZONE)
14075
14076ZONE_THERMAL_RELIEF_GAP_MM = _pcbnew.ZONE_THERMAL_RELIEF_GAP_MM
14077
14078ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM = _pcbnew.ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM
14079
14080ZONE_THICKNESS_MM = _pcbnew.ZONE_THICKNESS_MM
14081
14082ZONE_THICKNESS_MIN_VALUE_MM = _pcbnew.ZONE_THICKNESS_MIN_VALUE_MM
14083
14084ZONE_CLEARANCE_MM = _pcbnew.ZONE_CLEARANCE_MM
14085
14086ZONE_CLEARANCE_MAX_VALUE_MM = _pcbnew.ZONE_CLEARANCE_MAX_VALUE_MM
14087
14088ZONE_BORDER_HATCH_DIST_MM = _pcbnew.ZONE_BORDER_HATCH_DIST_MM
14089
14090ZONE_BORDER_HATCH_MINDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MINDIST_MM
14091
14092ZONE_BORDER_HATCH_MAXDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MAXDIST_MM
14093
14094ZONE_EXPORT_VALUES = _pcbnew.ZONE_EXPORT_VALUES
14095
14096ZONE_CONNECTION_INHERITED = _pcbnew.ZONE_CONNECTION_INHERITED
14097
14098ZONE_CONNECTION_NONE = _pcbnew.ZONE_CONNECTION_NONE
14099
14100ZONE_CONNECTION_THERMAL = _pcbnew.ZONE_CONNECTION_THERMAL
14101
14102ZONE_CONNECTION_FULL = _pcbnew.ZONE_CONNECTION_FULL
14103
14104ZONE_CONNECTION_THT_THERMAL = _pcbnew.ZONE_CONNECTION_THT_THERMAL
14105
14106
14107def PrintZoneConnection(aConnection):
14108 r"""PrintZoneConnection(ZONE_CONNECTION aConnection) -> wxString"""
14109 return _pcbnew.PrintZoneConnection(aConnection)
14110
14111def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None):
14112 r"""InvokeNonCopperZonesEditor(PCB_BASE_FRAME * aParent, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
14113 return _pcbnew.InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings)
14114
14115def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None):
14116 r"""InvokeCopperZonesEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
14117 return _pcbnew.InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings)
14118
14119def InvokeRuleAreaEditor(aCaller, aSettings, aConvertSettings=None):
14120 r"""InvokeRuleAreaEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
14121 return _pcbnew.InvokeRuleAreaEditor(aCaller, aSettings, aConvertSettings)
14123 r"""Proxy of C++ ZONE_FILLER class."""
14124
14125 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14126 __repr__ = _swig_repr
14127 __swig_destroy__ = _pcbnew.delete_ZONE_FILLER
14128
14129 def SetProgressReporter(self, aReporter):
14130 r"""SetProgressReporter(ZONE_FILLER self, PROGRESS_REPORTER * aReporter)"""
14131 return _pcbnew.ZONE_FILLER_SetProgressReporter(self, aReporter)
14132
14134 r"""GetProgressReporter(ZONE_FILLER self) -> PROGRESS_REPORTER *"""
14135 return _pcbnew.ZONE_FILLER_GetProgressReporter(self)
14136
14137 def Fill(self, aZones, aCheck=False, aParent=None):
14138 r"""Fill(ZONE_FILLER self, ZONES aZones, bool aCheck=False, wxWindow * aParent=None) -> bool"""
14139 return _pcbnew.ZONE_FILLER_Fill(self, aZones, aCheck, aParent)
14140
14141 def IsDebug(self):
14142 r"""IsDebug(ZONE_FILLER self) -> bool"""
14143 return _pcbnew.ZONE_FILLER_IsDebug(self)
14144
14145 def __init__(self, aBoard):
14146 r"""__init__(ZONE_FILLER self, BOARD aBoard) -> ZONE_FILLER"""
14147 _pcbnew.ZONE_FILLER_swiginit(self, _pcbnew.new_ZONE_FILLER(aBoard))
14148
14149# Register ZONE_FILLER in _pcbnew:
14150_pcbnew.ZONE_FILLER_swigregister(ZONE_FILLER)
14151
14152ZONE_FILL_MODE_POLYGONS = _pcbnew.ZONE_FILL_MODE_POLYGONS
14153
14154ZONE_FILL_MODE_HATCH_PATTERN = _pcbnew.ZONE_FILL_MODE_HATCH_PATTERN
14155
14156ZONE_BORDER_DISPLAY_STYLE_NO_HATCH = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_NO_HATCH
14157
14158ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL
14159
14160ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE
14161
14162ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER
14163
14164ISLAND_REMOVAL_MODE_ALWAYS = _pcbnew.ISLAND_REMOVAL_MODE_ALWAYS
14165
14166ISLAND_REMOVAL_MODE_NEVER = _pcbnew.ISLAND_REMOVAL_MODE_NEVER
14167
14168ISLAND_REMOVAL_MODE_AREA = _pcbnew.ISLAND_REMOVAL_MODE_AREA
14169
14171 r"""Proxy of C++ ZONE_SETTINGS class."""
14172
14173 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14174 __repr__ = _swig_repr
14175 SMOOTHING_UNDEFINED = _pcbnew.ZONE_SETTINGS_SMOOTHING_UNDEFINED
14176
14177 SMOOTHING_NONE = _pcbnew.ZONE_SETTINGS_SMOOTHING_NONE
14178
14179 SMOOTHING_CHAMFER = _pcbnew.ZONE_SETTINGS_SMOOTHING_CHAMFER
14180
14181 SMOOTHING_FILLET = _pcbnew.ZONE_SETTINGS_SMOOTHING_FILLET
14182
14183 SMOOTHING_LAST = _pcbnew.ZONE_SETTINGS_SMOOTHING_LAST
14184
14185 m_ZonePriority = property(_pcbnew.ZONE_SETTINGS_m_ZonePriority_get, _pcbnew.ZONE_SETTINGS_m_ZonePriority_set, doc=r"""m_ZonePriority : unsigned int""")
14186 m_FillMode = property(_pcbnew.ZONE_SETTINGS_m_FillMode_get, _pcbnew.ZONE_SETTINGS_m_FillMode_set, doc=r"""m_FillMode : ZONE_FILL_MODE""")
14187 m_ZoneClearance = property(_pcbnew.ZONE_SETTINGS_m_ZoneClearance_get, _pcbnew.ZONE_SETTINGS_m_ZoneClearance_set, doc=r"""m_ZoneClearance : int""")
14188 m_ZoneMinThickness = property(_pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_get, _pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_set, doc=r"""m_ZoneMinThickness : int""")
14189 m_HatchThickness = property(_pcbnew.ZONE_SETTINGS_m_HatchThickness_get, _pcbnew.ZONE_SETTINGS_m_HatchThickness_set, doc=r"""m_HatchThickness : int""")
14190 m_HatchGap = property(_pcbnew.ZONE_SETTINGS_m_HatchGap_get, _pcbnew.ZONE_SETTINGS_m_HatchGap_set, doc=r"""m_HatchGap : int""")
14191 m_HatchOrientation = property(_pcbnew.ZONE_SETTINGS_m_HatchOrientation_get, _pcbnew.ZONE_SETTINGS_m_HatchOrientation_set, doc=r"""m_HatchOrientation : EDA_ANGLE""")
14192 m_HatchSmoothingLevel = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_set, doc=r"""m_HatchSmoothingLevel : int""")
14193 m_HatchSmoothingValue = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_set, doc=r"""m_HatchSmoothingValue : double""")
14194 m_HatchHoleMinArea = property(_pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_get, _pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_set, doc=r"""m_HatchHoleMinArea : double""")
14195 m_HatchBorderAlgorithm = property(_pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_get, _pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_set, doc=r"""m_HatchBorderAlgorithm : int""")
14196 m_NetcodeSelection = property(_pcbnew.ZONE_SETTINGS_m_NetcodeSelection_get, _pcbnew.ZONE_SETTINGS_m_NetcodeSelection_set, doc=r"""m_NetcodeSelection : int""")
14197 m_Name = property(_pcbnew.ZONE_SETTINGS_m_Name_get, _pcbnew.ZONE_SETTINGS_m_Name_set, doc=r"""m_Name : wxString""")
14198 m_Layers = property(_pcbnew.ZONE_SETTINGS_m_Layers_get, _pcbnew.ZONE_SETTINGS_m_Layers_set, doc=r"""m_Layers : LSET""")
14199 m_ZoneBorderDisplayStyle = property(_pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_get, _pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_set, doc=r"""m_ZoneBorderDisplayStyle : ZONE_BORDER_DISPLAY_STYLE""")
14200 m_BorderHatchPitch = property(_pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_get, _pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_set, doc=r"""m_BorderHatchPitch : int""")
14201 m_ThermalReliefGap = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_set, doc=r"""m_ThermalReliefGap : long""")
14202 m_ThermalReliefSpokeWidth = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_set, doc=r"""m_ThermalReliefSpokeWidth : long""")
14203 m_Locked = property(_pcbnew.ZONE_SETTINGS_m_Locked_get, _pcbnew.ZONE_SETTINGS_m_Locked_set, doc=r"""m_Locked : bool""")
14204 m_TeardropType = property(_pcbnew.ZONE_SETTINGS_m_TeardropType_get, _pcbnew.ZONE_SETTINGS_m_TeardropType_set, doc=r"""m_TeardropType : TEARDROP_TYPE""")
14205
14206 def __init__(self):
14207 r"""__init__(ZONE_SETTINGS self) -> ZONE_SETTINGS"""
14208 _pcbnew.ZONE_SETTINGS_swiginit(self, _pcbnew.new_ZONE_SETTINGS())
14209
14210 def __lshift__(self, aSource):
14211 r"""__lshift__(ZONE_SETTINGS self, ZONE aSource) -> ZONE_SETTINGS"""
14212 return _pcbnew.ZONE_SETTINGS___lshift__(self, aSource)
14213
14214 def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode):
14215 r"""SetupLayersList(ZONE_SETTINGS self, wxDataViewListCtrl * aList, PCB_BASE_FRAME * aFrame, LSET aLayers, bool aFpEditorMode)"""
14216 return _pcbnew.ZONE_SETTINGS_SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
14217
14218 def ExportSetting(self, aTarget, aFullExport=True):
14219 r"""ExportSetting(ZONE_SETTINGS self, ZONE aTarget, bool aFullExport=True)"""
14220 return _pcbnew.ZONE_SETTINGS_ExportSetting(self, aTarget, aFullExport)
14221
14222 def SetCornerSmoothingType(self, aType):
14223 r"""SetCornerSmoothingType(ZONE_SETTINGS self, int aType)"""
14224 return _pcbnew.ZONE_SETTINGS_SetCornerSmoothingType(self, aType)
14225
14227 r"""GetCornerSmoothingType(ZONE_SETTINGS self) -> int"""
14228 return _pcbnew.ZONE_SETTINGS_GetCornerSmoothingType(self)
14229
14230 def SetCornerRadius(self, aRadius):
14231 r"""SetCornerRadius(ZONE_SETTINGS self, int aRadius)"""
14232 return _pcbnew.ZONE_SETTINGS_SetCornerRadius(self, aRadius)
14233
14235 r"""GetCornerRadius(ZONE_SETTINGS self) -> unsigned int"""
14236 return _pcbnew.ZONE_SETTINGS_GetCornerRadius(self)
14237
14239 r"""GetPadConnection(ZONE_SETTINGS self) -> ZONE_CONNECTION"""
14240 return _pcbnew.ZONE_SETTINGS_GetPadConnection(self)
14241
14242 def SetPadConnection(self, aPadConnection):
14243 r"""SetPadConnection(ZONE_SETTINGS self, ZONE_CONNECTION aPadConnection)"""
14244 return _pcbnew.ZONE_SETTINGS_SetPadConnection(self, aPadConnection)
14245
14246 def GetIsRuleArea(self):
14247 r"""GetIsRuleArea(ZONE_SETTINGS self) -> bool const"""
14248 return _pcbnew.ZONE_SETTINGS_GetIsRuleArea(self)
14249
14251 r"""GetDoNotAllowCopperPour(ZONE_SETTINGS self) -> bool const"""
14252 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowCopperPour(self)
14253
14255 r"""GetDoNotAllowVias(ZONE_SETTINGS self) -> bool const"""
14256 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowVias(self)
14257
14259 r"""GetDoNotAllowTracks(ZONE_SETTINGS self) -> bool const"""
14260 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowTracks(self)
14261
14263 r"""GetDoNotAllowPads(ZONE_SETTINGS self) -> bool const"""
14264 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowPads(self)
14265
14267 r"""GetDoNotAllowFootprints(ZONE_SETTINGS self) -> bool const"""
14268 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowFootprints(self)
14269
14270 def SetIsRuleArea(self, aEnable):
14271 r"""SetIsRuleArea(ZONE_SETTINGS self, bool aEnable)"""
14272 return _pcbnew.ZONE_SETTINGS_SetIsRuleArea(self, aEnable)
14273
14274 def SetDoNotAllowCopperPour(self, aEnable):
14275 r"""SetDoNotAllowCopperPour(ZONE_SETTINGS self, bool aEnable)"""
14276 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowCopperPour(self, aEnable)
14277
14278 def SetDoNotAllowVias(self, aEnable):
14279 r"""SetDoNotAllowVias(ZONE_SETTINGS self, bool aEnable)"""
14280 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowVias(self, aEnable)
14281
14282 def SetDoNotAllowTracks(self, aEnable):
14283 r"""SetDoNotAllowTracks(ZONE_SETTINGS self, bool aEnable)"""
14284 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowTracks(self, aEnable)
14285
14286 def SetDoNotAllowPads(self, aEnable):
14287 r"""SetDoNotAllowPads(ZONE_SETTINGS self, bool aEnable)"""
14288 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowPads(self, aEnable)
14289
14290 def SetDoNotAllowFootprints(self, aEnable):
14291 r"""SetDoNotAllowFootprints(ZONE_SETTINGS self, bool aEnable)"""
14292 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowFootprints(self, aEnable)
14293
14295 r"""GetIslandRemovalMode(ZONE_SETTINGS self) -> ISLAND_REMOVAL_MODE const"""
14296 return _pcbnew.ZONE_SETTINGS_GetIslandRemovalMode(self)
14297
14298 def SetIslandRemovalMode(self, aRemove):
14299 r"""SetIslandRemovalMode(ZONE_SETTINGS self, ISLAND_REMOVAL_MODE aRemove)"""
14300 return _pcbnew.ZONE_SETTINGS_SetIslandRemovalMode(self, aRemove)
14301
14303 r"""GetMinIslandArea(ZONE_SETTINGS self) -> long long"""
14304 return _pcbnew.ZONE_SETTINGS_GetMinIslandArea(self)
14305
14306 def SetMinIslandArea(self, aArea):
14307 r"""SetMinIslandArea(ZONE_SETTINGS self, long long aArea)"""
14308 return _pcbnew.ZONE_SETTINGS_SetMinIslandArea(self, aArea)
14309 __swig_destroy__ = _pcbnew.delete_ZONE_SETTINGS
14310
14311# Register ZONE_SETTINGS in _pcbnew:
14312_pcbnew.ZONE_SETTINGS_swigregister(ZONE_SETTINGS)
14313
14314TENTHS_OF_A_DEGREE_T = _pcbnew.TENTHS_OF_A_DEGREE_T
14315
14316DEGREES_T = _pcbnew.DEGREES_T
14317
14318RADIANS_T = _pcbnew.RADIANS_T
14319
14321 r"""Proxy of C++ EDA_ANGLE class."""
14322
14323 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14324 __repr__ = _swig_repr
14325
14326 def __init__(self, *args):
14327 r"""
14328 __init__(EDA_ANGLE self, double aValue, EDA_ANGLE_T aAngleType) -> EDA_ANGLE
14329 __init__(EDA_ANGLE self, VECTOR2D const & aVector) -> EDA_ANGLE
14330 __init__(EDA_ANGLE self, VECTOR2I aVector) -> EDA_ANGLE
14331 __init__(EDA_ANGLE self) -> EDA_ANGLE
14332 """
14333 _pcbnew.EDA_ANGLE_swiginit(self, _pcbnew.new_EDA_ANGLE(*args))
14334
14335 def AsDegrees(self):
14336 r"""AsDegrees(EDA_ANGLE self) -> double"""
14337 return _pcbnew.EDA_ANGLE_AsDegrees(self)
14338
14340 r"""AsTenthsOfADegree(EDA_ANGLE self) -> int"""
14341 return _pcbnew.EDA_ANGLE_AsTenthsOfADegree(self)
14342
14343 def AsRadians(self):
14344 r"""AsRadians(EDA_ANGLE self) -> double"""
14345 return _pcbnew.EDA_ANGLE_AsRadians(self)
14346 DEGREES_TO_RADIANS = _pcbnew.EDA_ANGLE_DEGREES_TO_RADIANS
14347
14348
14349 def IsCardinal(self):
14350 r"""IsCardinal(EDA_ANGLE self) -> bool"""
14351 return _pcbnew.EDA_ANGLE_IsCardinal(self)
14352
14353 def IsCardinal90(self):
14354 r"""IsCardinal90(EDA_ANGLE self) -> bool"""
14355 return _pcbnew.EDA_ANGLE_IsCardinal90(self)
14356
14357 def IsZero(self):
14358 r"""IsZero(EDA_ANGLE self) -> bool"""
14359 return _pcbnew.EDA_ANGLE_IsZero(self)
14360
14361 def IsHorizontal(self):
14362 r"""IsHorizontal(EDA_ANGLE self) -> bool"""
14363 return _pcbnew.EDA_ANGLE_IsHorizontal(self)
14364
14365 def IsVertical(self):
14366 r"""IsVertical(EDA_ANGLE self) -> bool"""
14367 return _pcbnew.EDA_ANGLE_IsVertical(self)
14368
14369 def IsParallelTo(self, aAngle):
14370 r"""IsParallelTo(EDA_ANGLE self, EDA_ANGLE aAngle) -> bool"""
14371 return _pcbnew.EDA_ANGLE_IsParallelTo(self, aAngle)
14372
14373 def Invert(self):
14374 r"""Invert(EDA_ANGLE self) -> EDA_ANGLE"""
14375 return _pcbnew.EDA_ANGLE_Invert(self)
14376
14377 def Sin(self):
14378 r"""Sin(EDA_ANGLE self) -> double"""
14379 return _pcbnew.EDA_ANGLE_Sin(self)
14380
14381 def Cos(self):
14382 r"""Cos(EDA_ANGLE self) -> double"""
14383 return _pcbnew.EDA_ANGLE_Cos(self)
14384
14385 def Tan(self):
14386 r"""Tan(EDA_ANGLE self) -> double"""
14387 return _pcbnew.EDA_ANGLE_Tan(self)
14388
14389 @staticmethod
14390 def Arccos(x):
14391 r"""Arccos(double x) -> EDA_ANGLE"""
14392 return _pcbnew.EDA_ANGLE_Arccos(x)
14393
14394 @staticmethod
14395 def Arcsin(x):
14396 r"""Arcsin(double x) -> EDA_ANGLE"""
14397 return _pcbnew.EDA_ANGLE_Arcsin(x)
14398
14399 @staticmethod
14400 def Arctan(x):
14401 r"""Arctan(double x) -> EDA_ANGLE"""
14402 return _pcbnew.EDA_ANGLE_Arctan(x)
14403
14404 @staticmethod
14405 def Arctan2(y, x):
14406 r"""Arctan2(double y, double x) -> EDA_ANGLE"""
14407 return _pcbnew.EDA_ANGLE_Arctan2(y, x)
14408
14409 def Normalize(self):
14410 r"""Normalize(EDA_ANGLE self) -> EDA_ANGLE"""
14411 return _pcbnew.EDA_ANGLE_Normalize(self)
14412
14414 r"""NormalizeNegative(EDA_ANGLE self) -> EDA_ANGLE"""
14415 return _pcbnew.EDA_ANGLE_NormalizeNegative(self)
14416
14417 def Normalize90(self):
14418 r"""Normalize90(EDA_ANGLE self) -> EDA_ANGLE"""
14419 return _pcbnew.EDA_ANGLE_Normalize90(self)
14420
14421 def Normalize180(self):
14422 r"""Normalize180(EDA_ANGLE self) -> EDA_ANGLE"""
14423 return _pcbnew.EDA_ANGLE_Normalize180(self)
14424
14425 def Normalize720(self):
14426 r"""Normalize720(EDA_ANGLE self) -> EDA_ANGLE"""
14427 return _pcbnew.EDA_ANGLE_Normalize720(self)
14428
14429 def KeepUpright(self):
14430 r"""KeepUpright(EDA_ANGLE self) -> EDA_ANGLE"""
14431 return _pcbnew.EDA_ANGLE_KeepUpright(self)
14432
14433 def __iadd__(self, aAngle):
14434 r"""__iadd__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
14435 return _pcbnew.EDA_ANGLE___iadd__(self, aAngle)
14436
14437 def __isub__(self, aAngle):
14438 r"""__isub__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
14439 return _pcbnew.EDA_ANGLE___isub__(self, aAngle)
14440 m_Angle0 = property(_pcbnew.EDA_ANGLE_m_Angle0_get, _pcbnew.EDA_ANGLE_m_Angle0_set, doc=r"""m_Angle0 : EDA_ANGLE""")
14441 m_Angle45 = property(_pcbnew.EDA_ANGLE_m_Angle45_get, _pcbnew.EDA_ANGLE_m_Angle45_set, doc=r"""m_Angle45 : EDA_ANGLE""")
14442 m_Angle90 = property(_pcbnew.EDA_ANGLE_m_Angle90_get, _pcbnew.EDA_ANGLE_m_Angle90_set, doc=r"""m_Angle90 : EDA_ANGLE""")
14443 m_Angle135 = property(_pcbnew.EDA_ANGLE_m_Angle135_get, _pcbnew.EDA_ANGLE_m_Angle135_set, doc=r"""m_Angle135 : EDA_ANGLE""")
14444 m_Angle180 = property(_pcbnew.EDA_ANGLE_m_Angle180_get, _pcbnew.EDA_ANGLE_m_Angle180_set, doc=r"""m_Angle180 : EDA_ANGLE""")
14445 m_Angle270 = property(_pcbnew.EDA_ANGLE_m_Angle270_get, _pcbnew.EDA_ANGLE_m_Angle270_set, doc=r"""m_Angle270 : EDA_ANGLE""")
14446 m_Angle360 = property(_pcbnew.EDA_ANGLE_m_Angle360_get, _pcbnew.EDA_ANGLE_m_Angle360_set, doc=r"""m_Angle360 : EDA_ANGLE""")
14447
14448 def __add__(self, other):
14449 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
14450 n += other
14451 return n
14452
14453 def __sub__(self, other):
14454 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
14455 n -= other
14456 return n
14457
14458 def __mul__(self, other):
14459 return EDA_ANGLE(self.AsDegrees() * other, DEGREES_T)
14460
14461 def __rmul__(self, other):
14462 return EDA_ANGLE(other * self.AsDegrees(), DEGREES_T)
14463
14464 def __truediv__(self, other):
14465 return EDA_ANGLE(self.AsDegrees() / other, DEGREES_T)
14466
14467 __swig_destroy__ = _pcbnew.delete_EDA_ANGLE
14468
14469# Register EDA_ANGLE in _pcbnew:
14470_pcbnew.EDA_ANGLE_swigregister(EDA_ANGLE)
14471
14473 r"""EDA_ANGLE_Arccos(double x) -> EDA_ANGLE"""
14474 return _pcbnew.EDA_ANGLE_Arccos(x)
14475
14477 r"""EDA_ANGLE_Arcsin(double x) -> EDA_ANGLE"""
14478 return _pcbnew.EDA_ANGLE_Arcsin(x)
14479
14481 r"""EDA_ANGLE_Arctan(double x) -> EDA_ANGLE"""
14482 return _pcbnew.EDA_ANGLE_Arctan(x)
14483
14485 r"""EDA_ANGLE_Arctan2(double y, double x) -> EDA_ANGLE"""
14486 return _pcbnew.EDA_ANGLE_Arctan2(y, x)
14487
14488
14489def abs(aAngle):
14490 r"""abs(EDA_ANGLE aAngle) -> EDA_ANGLE"""
14491 return _pcbnew.abs(aAngle)
14492SHAPE_T_SEGMENT = _pcbnew.SHAPE_T_SEGMENT
14493
14494SHAPE_T_RECT = _pcbnew.SHAPE_T_RECT
14495
14496SHAPE_T_ARC = _pcbnew.SHAPE_T_ARC
14497
14498SHAPE_T_CIRCLE = _pcbnew.SHAPE_T_CIRCLE
14499
14500SHAPE_T_POLY = _pcbnew.SHAPE_T_POLY
14501
14502SHAPE_T_BEZIER = _pcbnew.SHAPE_T_BEZIER
14503
14504SHAPE_T_LAST = _pcbnew.SHAPE_T_LAST
14505
14506FILL_T_NO_FILL = _pcbnew.FILL_T_NO_FILL
14507
14508FILL_T_FILLED_SHAPE = _pcbnew.FILL_T_FILLED_SHAPE
14509
14510FILL_T_FILLED_WITH_BG_BODYCOLOR = _pcbnew.FILL_T_FILLED_WITH_BG_BODYCOLOR
14511
14512FILL_T_FILLED_WITH_COLOR = _pcbnew.FILL_T_FILLED_WITH_COLOR
14513
14515 r"""Proxy of C++ ARC_MID class."""
14516
14517 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14518 __repr__ = _swig_repr
14519 mid = property(_pcbnew.ARC_MID_mid_get, _pcbnew.ARC_MID_mid_set, doc=r"""mid : VECTOR2I""")
14520 start = property(_pcbnew.ARC_MID_start_get, _pcbnew.ARC_MID_start_set, doc=r"""start : VECTOR2I""")
14521 end = property(_pcbnew.ARC_MID_end_get, _pcbnew.ARC_MID_end_set, doc=r"""end : VECTOR2I""")
14522 center = property(_pcbnew.ARC_MID_center_get, _pcbnew.ARC_MID_center_set, doc=r"""center : VECTOR2I""")
14523
14524 def __init__(self):
14525 r"""__init__(ARC_MID self) -> ARC_MID"""
14526 _pcbnew.ARC_MID_swiginit(self, _pcbnew.new_ARC_MID())
14527 __swig_destroy__ = _pcbnew.delete_ARC_MID
14528
14529# Register ARC_MID in _pcbnew:
14530_pcbnew.ARC_MID_swigregister(ARC_MID)
14531ANGLE_HORIZONTAL = cvar.ANGLE_HORIZONTAL
14532ANGLE_VERTICAL = cvar.ANGLE_VERTICAL
14533FULL_CIRCLE = cvar.FULL_CIRCLE
14534ANGLE_0 = cvar.ANGLE_0
14535ANGLE_45 = cvar.ANGLE_45
14536ANGLE_90 = cvar.ANGLE_90
14537ANGLE_135 = cvar.ANGLE_135
14538ANGLE_180 = cvar.ANGLE_180
14539ANGLE_270 = cvar.ANGLE_270
14540ANGLE_360 = cvar.ANGLE_360
14541
14543 r"""Proxy of C++ EDA_SHAPE class."""
14544
14545 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14546
14547 def __init__(self, *args, **kwargs):
14548 raise AttributeError("No constructor defined - class is abstract")
14549 __repr__ = _swig_repr
14550 __swig_destroy__ = _pcbnew.delete_EDA_SHAPE
14551
14552 def SwapShape(self, aImage):
14553 r"""SwapShape(EDA_SHAPE self, EDA_SHAPE aImage)"""
14554 return _pcbnew.EDA_SHAPE_SwapShape(self, aImage)
14555
14556 def ShowShape(self):
14557 r"""ShowShape(EDA_SHAPE self) -> wxString"""
14558 return _pcbnew.EDA_SHAPE_ShowShape(self)
14559
14561 r"""SHAPE_T_asString(EDA_SHAPE self) -> wxString"""
14562 return _pcbnew.EDA_SHAPE_SHAPE_T_asString(self)
14563
14565 r"""IsAnnotationProxy(EDA_SHAPE self) -> bool"""
14566 return _pcbnew.EDA_SHAPE_IsAnnotationProxy(self)
14567
14568 def SetIsAnnotationProxy(self, aIsProxy=True):
14569 r"""SetIsAnnotationProxy(EDA_SHAPE self, bool aIsProxy=True)"""
14570 return _pcbnew.EDA_SHAPE_SetIsAnnotationProxy(self, aIsProxy)
14571
14572 def IsFilled(self):
14573 r"""IsFilled(EDA_SHAPE self) -> bool"""
14574 return _pcbnew.EDA_SHAPE_IsFilled(self)
14575
14576 def SetFilled(self, aFlag):
14577 r"""SetFilled(EDA_SHAPE self, bool aFlag)"""
14578 return _pcbnew.EDA_SHAPE_SetFilled(self, aFlag)
14579
14580 def SetFillMode(self, aFill):
14581 r"""SetFillMode(EDA_SHAPE self, FILL_T aFill)"""
14582 return _pcbnew.EDA_SHAPE_SetFillMode(self, aFill)
14583
14584 def GetFillMode(self):
14585 r"""GetFillMode(EDA_SHAPE self) -> FILL_T"""
14586 return _pcbnew.EDA_SHAPE_GetFillMode(self)
14587
14588 def IsClosed(self):
14589 r"""IsClosed(EDA_SHAPE self) -> bool"""
14590 return _pcbnew.EDA_SHAPE_IsClosed(self)
14591
14592 def GetFillColor(self):
14593 r"""GetFillColor(EDA_SHAPE self) -> COLOR4D"""
14594 return _pcbnew.EDA_SHAPE_GetFillColor(self)
14595
14596 def SetFillColor(self, aColor):
14597 r"""SetFillColor(EDA_SHAPE self, COLOR4D aColor)"""
14598 return _pcbnew.EDA_SHAPE_SetFillColor(self, aColor)
14599
14600 def SetWidth(self, aWidth):
14601 r"""SetWidth(EDA_SHAPE self, int aWidth)"""
14602 return _pcbnew.EDA_SHAPE_SetWidth(self, aWidth)
14603
14604 def GetWidth(self):
14605 r"""GetWidth(EDA_SHAPE self) -> int"""
14606 return _pcbnew.EDA_SHAPE_GetWidth(self)
14607
14609 r"""GetEffectiveWidth(EDA_SHAPE self) -> int"""
14610 return _pcbnew.EDA_SHAPE_GetEffectiveWidth(self)
14611
14612 def SetShape(self, aShape):
14613 r"""SetShape(EDA_SHAPE self, SHAPE_T aShape)"""
14614 return _pcbnew.EDA_SHAPE_SetShape(self, aShape)
14615
14616 def GetShape(self):
14617 r"""GetShape(EDA_SHAPE self) -> SHAPE_T"""
14618 return _pcbnew.EDA_SHAPE_GetShape(self)
14619
14621 r"""GetFriendlyName(EDA_SHAPE self) -> wxString"""
14622 return _pcbnew.EDA_SHAPE_GetFriendlyName(self)
14623
14624 def GetStart(self):
14625 r"""GetStart(EDA_SHAPE self) -> VECTOR2I"""
14626 return _pcbnew.EDA_SHAPE_GetStart(self)
14627
14628 def GetStartY(self):
14629 r"""GetStartY(EDA_SHAPE self) -> int"""
14630 return _pcbnew.EDA_SHAPE_GetStartY(self)
14631
14632 def GetStartX(self):
14633 r"""GetStartX(EDA_SHAPE self) -> int"""
14634 return _pcbnew.EDA_SHAPE_GetStartX(self)
14635
14636 def SetStart(self, aStart):
14637 r"""SetStart(EDA_SHAPE self, VECTOR2I aStart)"""
14638 return _pcbnew.EDA_SHAPE_SetStart(self, aStart)
14639
14640 def SetStartY(self, y):
14641 r"""SetStartY(EDA_SHAPE self, int y)"""
14642 return _pcbnew.EDA_SHAPE_SetStartY(self, y)
14643
14644 def SetStartX(self, x):
14645 r"""SetStartX(EDA_SHAPE self, int x)"""
14646 return _pcbnew.EDA_SHAPE_SetStartX(self, x)
14647
14648 def GetEnd(self):
14649 r"""GetEnd(EDA_SHAPE self) -> VECTOR2I"""
14650 return _pcbnew.EDA_SHAPE_GetEnd(self)
14651
14652 def GetEndY(self):
14653 r"""GetEndY(EDA_SHAPE self) -> int"""
14654 return _pcbnew.EDA_SHAPE_GetEndY(self)
14655
14656 def GetEndX(self):
14657 r"""GetEndX(EDA_SHAPE self) -> int"""
14658 return _pcbnew.EDA_SHAPE_GetEndX(self)
14659
14660 def SetEnd(self, aEnd):
14661 r"""SetEnd(EDA_SHAPE self, VECTOR2I aEnd)"""
14662 return _pcbnew.EDA_SHAPE_SetEnd(self, aEnd)
14663
14664 def SetEndY(self, y):
14665 r"""SetEndY(EDA_SHAPE self, int y)"""
14666 return _pcbnew.EDA_SHAPE_SetEndY(self, y)
14667
14668 def SetEndX(self, x):
14669 r"""SetEndX(EDA_SHAPE self, int x)"""
14670 return _pcbnew.EDA_SHAPE_SetEndX(self, x)
14671
14672 def GetTopLeft(self):
14673 r"""GetTopLeft(EDA_SHAPE self) -> VECTOR2I"""
14674 return _pcbnew.EDA_SHAPE_GetTopLeft(self)
14675
14676 def GetBotRight(self):
14677 r"""GetBotRight(EDA_SHAPE self) -> VECTOR2I"""
14678 return _pcbnew.EDA_SHAPE_GetBotRight(self)
14679
14680 def SetTop(self, val):
14681 r"""SetTop(EDA_SHAPE self, int val)"""
14682 return _pcbnew.EDA_SHAPE_SetTop(self, val)
14683
14684 def SetLeft(self, val):
14685 r"""SetLeft(EDA_SHAPE self, int val)"""
14686 return _pcbnew.EDA_SHAPE_SetLeft(self, val)
14687
14688 def SetRight(self, val):
14689 r"""SetRight(EDA_SHAPE self, int val)"""
14690 return _pcbnew.EDA_SHAPE_SetRight(self, val)
14691
14692 def SetBottom(self, val):
14693 r"""SetBottom(EDA_SHAPE self, int val)"""
14694 return _pcbnew.EDA_SHAPE_SetBottom(self, val)
14695
14696 def SetBezierC1(self, aPt):
14697 r"""SetBezierC1(EDA_SHAPE self, VECTOR2I aPt)"""
14698 return _pcbnew.EDA_SHAPE_SetBezierC1(self, aPt)
14699
14700 def GetBezierC1(self):
14701 r"""GetBezierC1(EDA_SHAPE self) -> VECTOR2I"""
14702 return _pcbnew.EDA_SHAPE_GetBezierC1(self)
14703
14704 def SetBezierC2(self, aPt):
14705 r"""SetBezierC2(EDA_SHAPE self, VECTOR2I aPt)"""
14706 return _pcbnew.EDA_SHAPE_SetBezierC2(self, aPt)
14707
14708 def GetBezierC2(self):
14709 r"""GetBezierC2(EDA_SHAPE self) -> VECTOR2I"""
14710 return _pcbnew.EDA_SHAPE_GetBezierC2(self)
14711
14712 def SetCenter(self, aCenter):
14713 r"""SetCenter(EDA_SHAPE self, VECTOR2I aCenter)"""
14714 return _pcbnew.EDA_SHAPE_SetCenter(self, aCenter)
14715
14716 def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False):
14717 r"""SetArcAngleAndEnd(EDA_SHAPE self, EDA_ANGLE aAngle, bool aCheckNegativeAngle=False)"""
14718 return _pcbnew.EDA_SHAPE_SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle)
14719
14720 def GetArcAngle(self):
14721 r"""GetArcAngle(EDA_SHAPE self) -> EDA_ANGLE"""
14722 return _pcbnew.EDA_SHAPE_GetArcAngle(self)
14723
14724 def EndsSwapped(self):
14725 r"""EndsSwapped(EDA_SHAPE self) -> bool"""
14726 return _pcbnew.EDA_SHAPE_EndsSwapped(self)
14727
14728 def GetArcMid(self):
14729 r"""GetArcMid(EDA_SHAPE self) -> VECTOR2I"""
14730 return _pcbnew.EDA_SHAPE_GetArcMid(self)
14731
14733 r"""GetRectCorners(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
14734 return _pcbnew.EDA_SHAPE_GetRectCorners(self)
14735
14736 def CalcArcAngles(self, aStartAngle, aEndAngle):
14737 r"""CalcArcAngles(EDA_SHAPE self, EDA_ANGLE aStartAngle, EDA_ANGLE aEndAngle)"""
14738 return _pcbnew.EDA_SHAPE_CalcArcAngles(self, aStartAngle, aEndAngle)
14739
14740 def GetRadius(self):
14741 r"""GetRadius(EDA_SHAPE self) -> int"""
14742 return _pcbnew.EDA_SHAPE_GetRadius(self)
14743
14744 def SetArcGeometry(self, aStart, aMid, aEnd):
14745 r"""SetArcGeometry(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd)"""
14746 return _pcbnew.EDA_SHAPE_SetArcGeometry(self, aStart, aMid, aEnd)
14747
14748 def SetCachedArcData(self, aStart, aMid, aEnd, aCenter):
14749 r"""SetCachedArcData(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd, VECTOR2I aCenter)"""
14750 return _pcbnew.EDA_SHAPE_SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
14751
14753 r"""GetBezierPoints(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
14754 return _pcbnew.EDA_SHAPE_GetBezierPoints(self)
14755
14756 def DupPolyPointsList(self, aBuffer):
14757 r"""DupPolyPointsList(EDA_SHAPE self, VECTOR_VECTOR2I aBuffer)"""
14758 return _pcbnew.EDA_SHAPE_DupPolyPointsList(self, aBuffer)
14759
14760 def GetPointCount(self):
14761 r"""GetPointCount(EDA_SHAPE self) -> int"""
14762 return _pcbnew.EDA_SHAPE_GetPointCount(self)
14763
14764 def GetPolyShape(self, *args):
14765 r"""
14766 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
14767 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
14768 """
14769 return _pcbnew.EDA_SHAPE_GetPolyShape(self, *args)
14770
14772 r"""IsPolyShapeValid(EDA_SHAPE self) -> bool"""
14773 return _pcbnew.EDA_SHAPE_IsPolyShapeValid(self)
14774
14775 def SetPolyShape(self, aShape):
14776 r"""SetPolyShape(EDA_SHAPE self, SHAPE_POLY_SET aShape)"""
14777 return _pcbnew.EDA_SHAPE_SetPolyShape(self, aShape)
14778
14779 def SetPolyPoints(self, aPoints):
14780 r"""SetPolyPoints(EDA_SHAPE self, VECTOR_VECTOR2I aPoints)"""
14781 return _pcbnew.EDA_SHAPE_SetPolyPoints(self, aPoints)
14782
14784 r"""RebuildBezierToSegmentsPointsList(EDA_SHAPE self, int aMinSegLen)"""
14785 return _pcbnew.EDA_SHAPE_RebuildBezierToSegmentsPointsList(self, aMinSegLen)
14786
14787 def MakeEffectiveShapes(self, aEdgeOnly=False):
14788 r"""MakeEffectiveShapes(EDA_SHAPE self, bool aEdgeOnly=False) -> std::vector< SHAPE *,std::allocator< SHAPE * > >"""
14789 return _pcbnew.EDA_SHAPE_MakeEffectiveShapes(self, aEdgeOnly)
14790
14791 def ShapeGetMsgPanelInfo(self, aFrame, aList):
14792 r"""ShapeGetMsgPanelInfo(EDA_SHAPE self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
14793 return _pcbnew.EDA_SHAPE_ShapeGetMsgPanelInfo(self, aFrame, aList)
14794
14795 def GetLength(self):
14796 r"""GetLength(EDA_SHAPE self) -> double"""
14797 return _pcbnew.EDA_SHAPE_GetLength(self)
14798
14799 def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
14800 r"""TransformShapeToPolygon(EDA_SHAPE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
14801 return _pcbnew.EDA_SHAPE_TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth)
14802
14803 def Compare(self, aOther):
14804 r"""Compare(EDA_SHAPE self, EDA_SHAPE aOther) -> int"""
14805 return _pcbnew.EDA_SHAPE_Compare(self, aOther)
14806
14807# Register EDA_SHAPE in _pcbnew:
14808_pcbnew.EDA_SHAPE_swigregister(EDA_SHAPE)
14809
14811 r"""Proxy of C++ PCB_SHAPE class."""
14812
14813 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14814 __repr__ = _swig_repr
14815
14816 def __init__(self, *args):
14817 r"""
14818 __init__(PCB_SHAPE self, BOARD_ITEM aParent, KICAD_T aItemType, SHAPE_T aShapeType) -> PCB_SHAPE
14819 __init__(PCB_SHAPE self, BOARD_ITEM aParent=None, SHAPE_T aShapeType=SEGMENT) -> PCB_SHAPE
14820 """
14821 _pcbnew.PCB_SHAPE_swiginit(self, _pcbnew.new_PCB_SHAPE(*args))
14822 __swig_destroy__ = _pcbnew.delete_PCB_SHAPE
14823
14824 @staticmethod
14825 def ClassOf(aItem):
14826 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14827 return _pcbnew.PCB_SHAPE_ClassOf(aItem)
14828
14830 r"""GetFriendlyName(PCB_SHAPE self) -> wxString"""
14831 return _pcbnew.PCB_SHAPE_GetFriendlyName(self)
14832
14833 def GetCorners(self):
14834 r"""GetCorners(PCB_SHAPE self) -> VECTOR_VECTOR2I"""
14835 return _pcbnew.PCB_SHAPE_GetCorners(self)
14836
14838 r"""GetParentFootprint(PCB_SHAPE self) -> FOOTPRINT"""
14839 return _pcbnew.PCB_SHAPE_GetParentFootprint(self)
14840
14841 def GetEffectiveShape(self, *args):
14842 r"""GetEffectiveShape(PCB_SHAPE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14843 return _pcbnew.PCB_SHAPE_GetEffectiveShape(self, *args)
14844
14845 def HitTest(self, *args):
14846 r"""
14847 HitTest(PCB_SHAPE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14848 HitTest(PCB_SHAPE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
14849 """
14850 return _pcbnew.PCB_SHAPE_HitTest(self, *args)
14851
14852 def NormalizeRect(self):
14853 r"""NormalizeRect(PCB_SHAPE self)"""
14854 return _pcbnew.PCB_SHAPE_NormalizeRect(self)
14855
14856 def Mirror(self, aCentre, aMirrorAroundXAxis):
14857 r"""Mirror(PCB_SHAPE self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
14858 return _pcbnew.PCB_SHAPE_Mirror(self, aCentre, aMirrorAroundXAxis)
14859
14860 def Scale(self, aScale):
14861 r"""Scale(PCB_SHAPE self, double aScale)"""
14862 return _pcbnew.PCB_SHAPE_Scale(self, aScale)
14863
14864 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
14865 r"""TransformShapeToPolygon(PCB_SHAPE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
14866 return _pcbnew.PCB_SHAPE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
14867
14868 def ViewGetLOD(self, aLayer, aView):
14869 r"""ViewGetLOD(PCB_SHAPE self, int aLayer, KIGFX::VIEW * aView) -> double"""
14870 return _pcbnew.PCB_SHAPE_ViewGetLOD(self, aLayer, aView)
14871
14873 r"""GetArcAngleStart(PCB_SHAPE self) -> EDA_ANGLE"""
14874 return _pcbnew.PCB_SHAPE_GetArcAngleStart(self)
14875
14876 def GetShapeStr(self):
14877 return self.ShowShape()
14878
14879
14880# Register PCB_SHAPE in _pcbnew:
14881_pcbnew.PCB_SHAPE_swigregister(PCB_SHAPE)
14882
14884 r"""PCB_SHAPE_ClassOf(EDA_ITEM aItem) -> bool"""
14885 return _pcbnew.PCB_SHAPE_ClassOf(aItem)
14886
14888 r"""Proxy of C++ PCB_TEXT class."""
14889
14890 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14891 __repr__ = _swig_repr
14892
14893 def __init__(self, parent, idtype=PCB_TEXT_T):
14894 r"""__init__(PCB_TEXT self, BOARD_ITEM parent, KICAD_T idtype=PCB_TEXT_T) -> PCB_TEXT"""
14895 _pcbnew.PCB_TEXT_swiginit(self, _pcbnew.new_PCB_TEXT(parent, idtype))
14896 __swig_destroy__ = _pcbnew.delete_PCB_TEXT
14897
14898 @staticmethod
14899 def ClassOf(aItem):
14900 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14901 return _pcbnew.PCB_TEXT_ClassOf(aItem)
14902
14903 def GetShownText(self, aAllowExtraText, aDepth=0):
14904 r"""GetShownText(PCB_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
14905 return _pcbnew.PCB_TEXT_GetShownText(self, aAllowExtraText, aDepth)
14906
14907 def Mirror(self, aCentre, aMirrorAroundXAxis):
14908 r"""Mirror(PCB_TEXT self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
14909 return _pcbnew.PCB_TEXT_Mirror(self, aCentre, aMirrorAroundXAxis)
14910
14911 def TextHitTest(self, *args):
14912 r"""
14913 TextHitTest(PCB_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
14914 TextHitTest(PCB_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
14915 """
14916 return _pcbnew.PCB_TEXT_TextHitTest(self, *args)
14917
14918 def HitTest(self, *args):
14919 r"""
14920 HitTest(PCB_TEXT self, VECTOR2I aPosition, int aAccuracy) -> bool
14921 HitTest(PCB_TEXT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
14922 """
14923 return _pcbnew.PCB_TEXT_HitTest(self, *args)
14924
14925 def TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc):
14926 r"""TransformTextToPolySet(PCB_TEXT self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc)"""
14927 return _pcbnew.PCB_TEXT_TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc)
14928
14929 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False):
14930 r"""TransformShapeToPolygon(PCB_TEXT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
14931 return _pcbnew.PCB_TEXT_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth)
14932
14933 def GetEffectiveShape(self, *args):
14934 r"""GetEffectiveShape(PCB_TEXT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14935 return _pcbnew.PCB_TEXT_GetEffectiveShape(self, *args)
14936
14937 def ViewGetLOD(self, aLayer, aView):
14938 r"""ViewGetLOD(PCB_TEXT self, int aLayer, KIGFX::VIEW * aView) -> double"""
14939 return _pcbnew.PCB_TEXT_ViewGetLOD(self, aLayer, aView)
14940
14941 # KiCad 6 API compatibility
14942 def GetShownText(self):
14943 r"""GetShownText(PCB_TEXT self) -> wxString"""
14944 return _pcbnew.PCB_TEXT_GetShownText(self, True, 0)
14945
14946
14947# Register PCB_TEXT in _pcbnew:
14948_pcbnew.PCB_TEXT_swigregister(PCB_TEXT)
14949S_SEGMENT = cvar.S_SEGMENT
14950S_RECT = cvar.S_RECT
14951S_ARC = cvar.S_ARC
14952S_CIRCLE = cvar.S_CIRCLE
14953S_POLYGON = cvar.S_POLYGON
14954S_CURVE = cvar.S_CURVE
14955
14957 r"""PCB_TEXT_ClassOf(EDA_ITEM aItem) -> bool"""
14958 return _pcbnew.PCB_TEXT_ClassOf(aItem)
14959
14961 r"""Proxy of C++ PCB_TEXTBOX class."""
14962
14963 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14964 __repr__ = _swig_repr
14965
14966 def __init__(self, parent):
14967 r"""__init__(PCB_TEXTBOX self, BOARD_ITEM parent) -> PCB_TEXTBOX"""
14968 _pcbnew.PCB_TEXTBOX_swiginit(self, _pcbnew.new_PCB_TEXTBOX(parent))
14969 __swig_destroy__ = _pcbnew.delete_PCB_TEXTBOX
14970
14971 @staticmethod
14972 def ClassOf(aItem):
14973 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14974 return _pcbnew.PCB_TEXTBOX_ClassOf(aItem)
14975
14976 def GetTextMargin(self):
14977 r"""GetTextMargin(PCB_TEXTBOX self) -> int"""
14978 return _pcbnew.PCB_TEXTBOX_GetTextMargin(self)
14979
14980 def GetShownText(self, aAllowExtraText, aDepth=0):
14981 r"""GetShownText(PCB_TEXTBOX self, bool aAllowExtraText, int aDepth=0) -> wxString"""
14982 return _pcbnew.PCB_TEXTBOX_GetShownText(self, aAllowExtraText, aDepth)
14983
14985 r"""GetAnchorAndOppositeCorner(PCB_TEXTBOX self) -> VECTOR_VECTOR2I"""
14986 return _pcbnew.PCB_TEXTBOX_GetAnchorAndOppositeCorner(self)
14987
14988 def HitTest(self, *args):
14989 r"""
14990 HitTest(PCB_TEXTBOX self, VECTOR2I aPosition, int aAccuracy) -> bool
14991 HitTest(PCB_TEXTBOX self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
14992 """
14993 return _pcbnew.PCB_TEXTBOX_HitTest(self, *args)
14994
14995 def TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc):
14996 r"""TransformTextToPolySet(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc)"""
14997 return _pcbnew.PCB_TEXTBOX_TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc)
14998
14999 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False):
15000 r"""TransformShapeToPolygon(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
15001 return _pcbnew.PCB_TEXTBOX_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth)
15002
15003 def GetEffectiveShape(self, *args):
15004 r"""GetEffectiveShape(PCB_TEXTBOX self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15005 return _pcbnew.PCB_TEXTBOX_GetEffectiveShape(self, *args)
15006
15007 def ViewGetLOD(self, aLayer, aView):
15008 r"""ViewGetLOD(PCB_TEXTBOX self, int aLayer, KIGFX::VIEW * aView) -> double"""
15009 return _pcbnew.PCB_TEXTBOX_ViewGetLOD(self, aLayer, aView)
15010
15012 r"""IsBorderEnabled(PCB_TEXTBOX self) -> bool"""
15013 return _pcbnew.PCB_TEXTBOX_IsBorderEnabled(self)
15014
15015 def DisableBorder(self):
15016 r"""DisableBorder(PCB_TEXTBOX self)"""
15017 return _pcbnew.PCB_TEXTBOX_DisableBorder(self)
15018
15019 # KiCad 6 API compatibility
15020 def GetShownText(self):
15021 r"""GetShownText(PCB_TEXTBOX self) -> wxString"""
15022 return _pcbnew.PCB_TEXTBOX_GetShownText(self, True, 0)
15023
15024
15025# Register PCB_TEXTBOX in _pcbnew:
15026_pcbnew.PCB_TEXTBOX_swigregister(PCB_TEXTBOX)
15027
15029 r"""PCB_TEXTBOX_ClassOf(EDA_ITEM aItem) -> bool"""
15030 return _pcbnew.PCB_TEXTBOX_ClassOf(aItem)
15031
15032GR_TEXT_H_ALIGN_LEFT = _pcbnew.GR_TEXT_H_ALIGN_LEFT
15033
15034GR_TEXT_H_ALIGN_CENTER = _pcbnew.GR_TEXT_H_ALIGN_CENTER
15035
15036GR_TEXT_H_ALIGN_RIGHT = _pcbnew.GR_TEXT_H_ALIGN_RIGHT
15037
15038GR_TEXT_V_ALIGN_TOP = _pcbnew.GR_TEXT_V_ALIGN_TOP
15039
15040GR_TEXT_V_ALIGN_CENTER = _pcbnew.GR_TEXT_V_ALIGN_CENTER
15041
15042GR_TEXT_V_ALIGN_BOTTOM = _pcbnew.GR_TEXT_V_ALIGN_BOTTOM
15043
15045 r"""Proxy of C++ TEXT_ATTRIBUTES class."""
15046
15047 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15048 __repr__ = _swig_repr
15049 m_Font = property(_pcbnew.TEXT_ATTRIBUTES_m_Font_get, _pcbnew.TEXT_ATTRIBUTES_m_Font_set, doc=r"""m_Font : p.KIFONT::FONT""")
15050 m_Halign = property(_pcbnew.TEXT_ATTRIBUTES_m_Halign_get, _pcbnew.TEXT_ATTRIBUTES_m_Halign_set, doc=r"""m_Halign : GR_TEXT_H_ALIGN_T""")
15051 m_Valign = property(_pcbnew.TEXT_ATTRIBUTES_m_Valign_get, _pcbnew.TEXT_ATTRIBUTES_m_Valign_set, doc=r"""m_Valign : GR_TEXT_V_ALIGN_T""")
15052 m_Angle = property(_pcbnew.TEXT_ATTRIBUTES_m_Angle_get, _pcbnew.TEXT_ATTRIBUTES_m_Angle_set, doc=r"""m_Angle : EDA_ANGLE""")
15053 m_LineSpacing = property(_pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_get, _pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_set, doc=r"""m_LineSpacing : double""")
15054 m_StrokeWidth = property(_pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_get, _pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_set, doc=r"""m_StrokeWidth : int""")
15055 m_Italic = property(_pcbnew.TEXT_ATTRIBUTES_m_Italic_get, _pcbnew.TEXT_ATTRIBUTES_m_Italic_set, doc=r"""m_Italic : bool""")
15056 m_Bold = property(_pcbnew.TEXT_ATTRIBUTES_m_Bold_get, _pcbnew.TEXT_ATTRIBUTES_m_Bold_set, doc=r"""m_Bold : bool""")
15057 m_Underlined = property(_pcbnew.TEXT_ATTRIBUTES_m_Underlined_get, _pcbnew.TEXT_ATTRIBUTES_m_Underlined_set, doc=r"""m_Underlined : bool""")
15058 m_Color = property(_pcbnew.TEXT_ATTRIBUTES_m_Color_get, _pcbnew.TEXT_ATTRIBUTES_m_Color_set, doc=r"""m_Color : KIGFX::COLOR4D""")
15059 m_Visible = property(_pcbnew.TEXT_ATTRIBUTES_m_Visible_get, _pcbnew.TEXT_ATTRIBUTES_m_Visible_set, doc=r"""m_Visible : bool""")
15060 m_Mirrored = property(_pcbnew.TEXT_ATTRIBUTES_m_Mirrored_get, _pcbnew.TEXT_ATTRIBUTES_m_Mirrored_set, doc=r"""m_Mirrored : bool""")
15061 m_Multiline = property(_pcbnew.TEXT_ATTRIBUTES_m_Multiline_get, _pcbnew.TEXT_ATTRIBUTES_m_Multiline_set, doc=r"""m_Multiline : bool""")
15062 m_Size = property(_pcbnew.TEXT_ATTRIBUTES_m_Size_get, _pcbnew.TEXT_ATTRIBUTES_m_Size_set, doc=r"""m_Size : VECTOR2I""")
15063 m_KeepUpright = property(_pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_get, _pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_set, doc=r"""m_KeepUpright : bool""")
15064
15065 def __init__(self):
15066 r"""__init__(TEXT_ATTRIBUTES self) -> TEXT_ATTRIBUTES"""
15067 _pcbnew.TEXT_ATTRIBUTES_swiginit(self, _pcbnew.new_TEXT_ATTRIBUTES())
15068 __swig_destroy__ = _pcbnew.delete_TEXT_ATTRIBUTES
15069
15070# Register TEXT_ATTRIBUTES in _pcbnew:
15071_pcbnew.TEXT_ATTRIBUTES_swigregister(TEXT_ATTRIBUTES)
15072
15073DIM_UNITS_FORMAT_NO_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_NO_SUFFIX
15074
15075DIM_UNITS_FORMAT_BARE_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_BARE_SUFFIX
15076
15077DIM_UNITS_FORMAT_PAREN_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_PAREN_SUFFIX
15078
15079DIM_PRECISION_X = _pcbnew.DIM_PRECISION_X
15080
15081DIM_PRECISION_X_X = _pcbnew.DIM_PRECISION_X_X
15082
15083DIM_PRECISION_X_XX = _pcbnew.DIM_PRECISION_X_XX
15084
15085DIM_PRECISION_X_XXX = _pcbnew.DIM_PRECISION_X_XXX
15086
15087DIM_PRECISION_X_XXXX = _pcbnew.DIM_PRECISION_X_XXXX
15088
15089DIM_PRECISION_X_XXXXX = _pcbnew.DIM_PRECISION_X_XXXXX
15090
15091DIM_PRECISION_V_VV = _pcbnew.DIM_PRECISION_V_VV
15092
15093DIM_PRECISION_V_VVV = _pcbnew.DIM_PRECISION_V_VVV
15094
15095DIM_PRECISION_V_VVVV = _pcbnew.DIM_PRECISION_V_VVVV
15096
15097DIM_PRECISION_V_VVVVV = _pcbnew.DIM_PRECISION_V_VVVVV
15098
15099DIM_TEXT_POSITION_OUTSIDE = _pcbnew.DIM_TEXT_POSITION_OUTSIDE
15100
15101DIM_TEXT_POSITION_INLINE = _pcbnew.DIM_TEXT_POSITION_INLINE
15102
15103DIM_TEXT_POSITION_MANUAL = _pcbnew.DIM_TEXT_POSITION_MANUAL
15104
15105DIM_UNITS_MODE_INCHES = _pcbnew.DIM_UNITS_MODE_INCHES
15106
15107DIM_UNITS_MODE_MILS = _pcbnew.DIM_UNITS_MODE_MILS
15108
15109DIM_UNITS_MODE_MILLIMETRES = _pcbnew.DIM_UNITS_MODE_MILLIMETRES
15110
15111DIM_UNITS_MODE_AUTOMATIC = _pcbnew.DIM_UNITS_MODE_AUTOMATIC
15112
15113DIM_TEXT_BORDER_NONE = _pcbnew.DIM_TEXT_BORDER_NONE
15114
15115DIM_TEXT_BORDER_RECTANGLE = _pcbnew.DIM_TEXT_BORDER_RECTANGLE
15116
15117DIM_TEXT_BORDER_CIRCLE = _pcbnew.DIM_TEXT_BORDER_CIRCLE
15118
15119DIM_TEXT_BORDER_ROUNDRECT = _pcbnew.DIM_TEXT_BORDER_ROUNDRECT
15120
15122 r"""Proxy of C++ PCB_DIMENSION_BASE class."""
15123
15124 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15125
15126 def __init__(self, *args, **kwargs):
15127 raise AttributeError("No constructor defined - class is abstract")
15128 __repr__ = _swig_repr
15129
15130 def GetStart(self):
15131 r"""GetStart(PCB_DIMENSION_BASE self) -> VECTOR2I"""
15132 return _pcbnew.PCB_DIMENSION_BASE_GetStart(self)
15133
15134 def SetStart(self, aPoint):
15135 r"""SetStart(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
15136 return _pcbnew.PCB_DIMENSION_BASE_SetStart(self, aPoint)
15137
15138 def GetEnd(self):
15139 r"""GetEnd(PCB_DIMENSION_BASE self) -> VECTOR2I"""
15140 return _pcbnew.PCB_DIMENSION_BASE_GetEnd(self)
15141
15142 def SetEnd(self, aPoint):
15143 r"""SetEnd(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
15144 return _pcbnew.PCB_DIMENSION_BASE_SetEnd(self, aPoint)
15145
15147 r"""GetOverrideTextEnabled(PCB_DIMENSION_BASE self) -> bool"""
15148 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideTextEnabled(self)
15149
15150 def SetOverrideTextEnabled(self, aOverride):
15151 r"""SetOverrideTextEnabled(PCB_DIMENSION_BASE self, bool aOverride)"""
15152 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideTextEnabled(self, aOverride)
15153
15155 r"""GetOverrideText(PCB_DIMENSION_BASE self) -> wxString"""
15156 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideText(self)
15157
15158 def SetOverrideText(self, aValue):
15159 r"""SetOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
15160 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideText(self, aValue)
15161
15162 def ChangeOverrideText(self, aValue):
15163 r"""ChangeOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
15164 return _pcbnew.PCB_DIMENSION_BASE_ChangeOverrideText(self, aValue)
15165
15167 r"""GetMeasuredValue(PCB_DIMENSION_BASE self) -> int"""
15168 return _pcbnew.PCB_DIMENSION_BASE_GetMeasuredValue(self)
15169
15170 def SetMeasuredValue(self, aValue):
15171 r"""SetMeasuredValue(PCB_DIMENSION_BASE self, int aValue)"""
15172 return _pcbnew.PCB_DIMENSION_BASE_SetMeasuredValue(self, aValue)
15173
15174 def GetValueText(self):
15175 r"""GetValueText(PCB_DIMENSION_BASE self) -> wxString"""
15176 return _pcbnew.PCB_DIMENSION_BASE_GetValueText(self)
15177
15178 def Update(self):
15179 r"""Update(PCB_DIMENSION_BASE self)"""
15180 return _pcbnew.PCB_DIMENSION_BASE_Update(self)
15181
15182 def UpdateUnits(self):
15183 r"""UpdateUnits(PCB_DIMENSION_BASE self)"""
15184 return _pcbnew.PCB_DIMENSION_BASE_UpdateUnits(self)
15185
15186 def GetPrefix(self):
15187 r"""GetPrefix(PCB_DIMENSION_BASE self) -> wxString"""
15188 return _pcbnew.PCB_DIMENSION_BASE_GetPrefix(self)
15189
15190 def SetPrefix(self, aPrefix):
15191 r"""SetPrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
15192 return _pcbnew.PCB_DIMENSION_BASE_SetPrefix(self, aPrefix)
15193
15194 def ChangePrefix(self, aPrefix):
15195 r"""ChangePrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
15196 return _pcbnew.PCB_DIMENSION_BASE_ChangePrefix(self, aPrefix)
15197
15198 def GetSuffix(self):
15199 r"""GetSuffix(PCB_DIMENSION_BASE self) -> wxString"""
15200 return _pcbnew.PCB_DIMENSION_BASE_GetSuffix(self)
15201
15202 def SetSuffix(self, aSuffix):
15203 r"""SetSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
15204 return _pcbnew.PCB_DIMENSION_BASE_SetSuffix(self, aSuffix)
15205
15206 def ChangeSuffix(self, aSuffix):
15207 r"""ChangeSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
15208 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuffix(self, aSuffix)
15209
15210 def GetUnits(self):
15211 r"""GetUnits(PCB_DIMENSION_BASE self) -> EDA_UNITS"""
15212 return _pcbnew.PCB_DIMENSION_BASE_GetUnits(self)
15213
15214 def SetUnits(self, aUnits):
15215 r"""SetUnits(PCB_DIMENSION_BASE self, EDA_UNITS aUnits)"""
15216 return _pcbnew.PCB_DIMENSION_BASE_SetUnits(self, aUnits)
15217
15218 def GetUnitsMode(self):
15219 r"""GetUnitsMode(PCB_DIMENSION_BASE self) -> DIM_UNITS_MODE"""
15220 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsMode(self)
15221
15222 def SetUnitsMode(self, aMode):
15223 r"""SetUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
15224 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsMode(self, aMode)
15225
15226 def ChangeUnitsMode(self, aMode):
15227 r"""ChangeUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
15228 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsMode(self, aMode)
15229
15230 def SetAutoUnits(self, aAuto=True):
15231 r"""SetAutoUnits(PCB_DIMENSION_BASE self, bool aAuto=True)"""
15232 return _pcbnew.PCB_DIMENSION_BASE_SetAutoUnits(self, aAuto)
15233
15235 r"""GetUnitsFormat(PCB_DIMENSION_BASE self) -> DIM_UNITS_FORMAT"""
15236 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsFormat(self)
15237
15238 def SetUnitsFormat(self, aFormat):
15239 r"""SetUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
15240 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsFormat(self, aFormat)
15241
15242 def ChangeUnitsFormat(self, aFormat):
15243 r"""ChangeUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
15244 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsFormat(self, aFormat)
15245
15246 def GetPrecision(self):
15247 r"""GetPrecision(PCB_DIMENSION_BASE self) -> DIM_PRECISION"""
15248 return _pcbnew.PCB_DIMENSION_BASE_GetPrecision(self)
15249
15250 def SetPrecision(self, aPrecision):
15251 r"""SetPrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
15252 return _pcbnew.PCB_DIMENSION_BASE_SetPrecision(self, aPrecision)
15253
15254 def ChangePrecision(self, aPrecision):
15255 r"""ChangePrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
15256 return _pcbnew.PCB_DIMENSION_BASE_ChangePrecision(self, aPrecision)
15257
15259 r"""GetSuppressZeroes(PCB_DIMENSION_BASE self) -> bool"""
15260 return _pcbnew.PCB_DIMENSION_BASE_GetSuppressZeroes(self)
15261
15262 def SetSuppressZeroes(self, aSuppress):
15263 r"""SetSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
15264 return _pcbnew.PCB_DIMENSION_BASE_SetSuppressZeroes(self, aSuppress)
15265
15266 def ChangeSuppressZeroes(self, aSuppress):
15267 r"""ChangeSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
15268 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuppressZeroes(self, aSuppress)
15269
15271 r"""GetKeepTextAligned(PCB_DIMENSION_BASE self) -> bool"""
15272 return _pcbnew.PCB_DIMENSION_BASE_GetKeepTextAligned(self)
15273
15274 def SetKeepTextAligned(self, aKeepAligned):
15275 r"""SetKeepTextAligned(PCB_DIMENSION_BASE self, bool aKeepAligned)"""
15276 return _pcbnew.PCB_DIMENSION_BASE_SetKeepTextAligned(self, aKeepAligned)
15277
15278 def SetTextPositionMode(self, aMode):
15279 r"""SetTextPositionMode(PCB_DIMENSION_BASE self, DIM_TEXT_POSITION aMode)"""
15280 return _pcbnew.PCB_DIMENSION_BASE_SetTextPositionMode(self, aMode)
15281
15283 r"""GetTextPositionMode(PCB_DIMENSION_BASE self) -> DIM_TEXT_POSITION"""
15284 return _pcbnew.PCB_DIMENSION_BASE_GetTextPositionMode(self)
15285
15287 r"""GetArrowLength(PCB_DIMENSION_BASE self) -> int"""
15288 return _pcbnew.PCB_DIMENSION_BASE_GetArrowLength(self)
15289
15290 def SetArrowLength(self, aLength):
15291 r"""SetArrowLength(PCB_DIMENSION_BASE self, int aLength)"""
15292 return _pcbnew.PCB_DIMENSION_BASE_SetArrowLength(self, aLength)
15293
15294 def SetExtensionOffset(self, aOffset):
15295 r"""SetExtensionOffset(PCB_DIMENSION_BASE self, int aOffset)"""
15296 return _pcbnew.PCB_DIMENSION_BASE_SetExtensionOffset(self, aOffset)
15297
15299 r"""GetExtensionOffset(PCB_DIMENSION_BASE self) -> int"""
15300 return _pcbnew.PCB_DIMENSION_BASE_GetExtensionOffset(self)
15301
15303 r"""GetLineThickness(PCB_DIMENSION_BASE self) -> int"""
15304 return _pcbnew.PCB_DIMENSION_BASE_GetLineThickness(self)
15305
15306 def SetLineThickness(self, aWidth):
15307 r"""SetLineThickness(PCB_DIMENSION_BASE self, int aWidth)"""
15308 return _pcbnew.PCB_DIMENSION_BASE_SetLineThickness(self, aWidth)
15309
15310 def GetShapes(self):
15311 r"""GetShapes(PCB_DIMENSION_BASE self) -> VECTOR_SHAPEPTR"""
15312 return _pcbnew.PCB_DIMENSION_BASE_GetShapes(self)
15313
15314 def Mirror(self, axis_pos, aMirrorLeftRight=False):
15315 r"""Mirror(PCB_DIMENSION_BASE self, VECTOR2I axis_pos, bool aMirrorLeftRight=False)"""
15316 return _pcbnew.PCB_DIMENSION_BASE_Mirror(self, axis_pos, aMirrorLeftRight)
15317
15318 def HitTest(self, *args):
15319 r"""
15320 HitTest(PCB_DIMENSION_BASE self, VECTOR2I aPosition, int aAccuracy) -> bool
15321 HitTest(PCB_DIMENSION_BASE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15322 """
15323 return _pcbnew.PCB_DIMENSION_BASE_HitTest(self, *args)
15324
15325 def GetEffectiveShape(self, *args):
15326 r"""GetEffectiveShape(PCB_DIMENSION_BASE self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15327 return _pcbnew.PCB_DIMENSION_BASE_GetEffectiveShape(self, *args)
15328
15329 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False):
15330 r"""TransformShapeToPolygon(PCB_DIMENSION_BASE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
15331 return _pcbnew.PCB_DIMENSION_BASE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth)
15332 __swig_destroy__ = _pcbnew.delete_PCB_DIMENSION_BASE
15333
15334# Register PCB_DIMENSION_BASE in _pcbnew:
15335_pcbnew.PCB_DIMENSION_BASE_swigregister(PCB_DIMENSION_BASE)
15336
15338 r"""Proxy of C++ PCB_DIM_ALIGNED class."""
15339
15340 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15341 __repr__ = _swig_repr
15342
15343 def __init__(self, aParent, aType):
15344 r"""__init__(PCB_DIM_ALIGNED self, BOARD_ITEM aParent, KICAD_T aType) -> PCB_DIM_ALIGNED"""
15345 _pcbnew.PCB_DIM_ALIGNED_swiginit(self, _pcbnew.new_PCB_DIM_ALIGNED(aParent, aType))
15346 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ALIGNED
15347
15348 @staticmethod
15349 def ClassOf(aItem):
15350 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15351 return _pcbnew.PCB_DIM_ALIGNED_ClassOf(aItem)
15352
15353 def Mirror(self, axis_pos, aMirrorLeftRight=False):
15354 r"""Mirror(PCB_DIM_ALIGNED self, VECTOR2I axis_pos, bool aMirrorLeftRight=False)"""
15355 return _pcbnew.PCB_DIM_ALIGNED_Mirror(self, axis_pos, aMirrorLeftRight)
15356
15358 r"""GetCrossbarStart(PCB_DIM_ALIGNED self) -> VECTOR2I"""
15359 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarStart(self)
15360
15362 r"""GetCrossbarEnd(PCB_DIM_ALIGNED self) -> VECTOR2I"""
15363 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarEnd(self)
15364
15365 def SetHeight(self, aHeight):
15366 r"""SetHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15367 return _pcbnew.PCB_DIM_ALIGNED_SetHeight(self, aHeight)
15368
15369 def GetHeight(self):
15370 r"""GetHeight(PCB_DIM_ALIGNED self) -> int"""
15371 return _pcbnew.PCB_DIM_ALIGNED_GetHeight(self)
15372
15373 def ChangeHeight(self, aHeight):
15374 r"""ChangeHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15375 return _pcbnew.PCB_DIM_ALIGNED_ChangeHeight(self, aHeight)
15376
15377 def UpdateHeight(self, aCrossbarStart, aCrossbarEnd):
15378 r"""UpdateHeight(PCB_DIM_ALIGNED self, VECTOR2I aCrossbarStart, VECTOR2I aCrossbarEnd)"""
15379 return _pcbnew.PCB_DIM_ALIGNED_UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
15380
15381 def SetExtensionHeight(self, aHeight):
15382 r"""SetExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15383 return _pcbnew.PCB_DIM_ALIGNED_SetExtensionHeight(self, aHeight)
15384
15386 r"""GetExtensionHeight(PCB_DIM_ALIGNED self) -> int"""
15387 return _pcbnew.PCB_DIM_ALIGNED_GetExtensionHeight(self)
15388
15389 def ChangeExtensionHeight(self, aHeight):
15390 r"""ChangeExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15391 return _pcbnew.PCB_DIM_ALIGNED_ChangeExtensionHeight(self, aHeight)
15392
15393 def GetAngle(self):
15394 r"""GetAngle(PCB_DIM_ALIGNED self) -> double"""
15395 return _pcbnew.PCB_DIM_ALIGNED_GetAngle(self)
15396
15397# Register PCB_DIM_ALIGNED in _pcbnew:
15398_pcbnew.PCB_DIM_ALIGNED_swigregister(PCB_DIM_ALIGNED)
15399
15401 r"""PCB_DIM_ALIGNED_ClassOf(EDA_ITEM aItem) -> bool"""
15402 return _pcbnew.PCB_DIM_ALIGNED_ClassOf(aItem)
15403
15405 r"""Proxy of C++ PCB_DIM_ORTHOGONAL class."""
15406
15407 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15408 __repr__ = _swig_repr
15409 DIR_HORIZONTAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_HORIZONTAL
15410
15411 DIR_VERTICAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_VERTICAL
15412
15413
15414 def __init__(self, aParent, aInFP=False):
15415 r"""__init__(PCB_DIM_ORTHOGONAL self, BOARD_ITEM aParent, bool aInFP=False) -> PCB_DIM_ORTHOGONAL"""
15416 _pcbnew.PCB_DIM_ORTHOGONAL_swiginit(self, _pcbnew.new_PCB_DIM_ORTHOGONAL(aParent, aInFP))
15417 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ORTHOGONAL
15418
15419 @staticmethod
15420 def ClassOf(aItem):
15421 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15422 return _pcbnew.PCB_DIM_ORTHOGONAL_ClassOf(aItem)
15423
15424 def SetOrientation(self, aOrientation):
15425 r"""SetOrientation(PCB_DIM_ORTHOGONAL self, PCB_DIM_ORTHOGONAL::DIR aOrientation)"""
15426 return _pcbnew.PCB_DIM_ORTHOGONAL_SetOrientation(self, aOrientation)
15427
15429 r"""GetOrientation(PCB_DIM_ORTHOGONAL self) -> PCB_DIM_ORTHOGONAL::DIR"""
15430 return _pcbnew.PCB_DIM_ORTHOGONAL_GetOrientation(self)
15431
15432# Register PCB_DIM_ORTHOGONAL in _pcbnew:
15433_pcbnew.PCB_DIM_ORTHOGONAL_swigregister(PCB_DIM_ORTHOGONAL)
15434
15436 r"""PCB_DIM_ORTHOGONAL_ClassOf(EDA_ITEM aItem) -> bool"""
15437 return _pcbnew.PCB_DIM_ORTHOGONAL_ClassOf(aItem)
15438
15440 r"""Proxy of C++ PCB_DIM_RADIAL class."""
15441
15442 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15443 __repr__ = _swig_repr
15444
15445 def __init__(self, aParent, aInFP=False):
15446 r"""__init__(PCB_DIM_RADIAL self, BOARD_ITEM aParent, bool aInFP=False) -> PCB_DIM_RADIAL"""
15447 _pcbnew.PCB_DIM_RADIAL_swiginit(self, _pcbnew.new_PCB_DIM_RADIAL(aParent, aInFP))
15448
15449 @staticmethod
15450 def ClassOf(aItem):
15451 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15452 return _pcbnew.PCB_DIM_RADIAL_ClassOf(aItem)
15453
15454 def SetLeaderLength(self, aLength):
15455 r"""SetLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
15456 return _pcbnew.PCB_DIM_RADIAL_SetLeaderLength(self, aLength)
15457
15459 r"""GetLeaderLength(PCB_DIM_RADIAL self) -> int"""
15460 return _pcbnew.PCB_DIM_RADIAL_GetLeaderLength(self)
15461
15462 def ChangeLeaderLength(self, aLength):
15463 r"""ChangeLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
15464 return _pcbnew.PCB_DIM_RADIAL_ChangeLeaderLength(self, aLength)
15465
15466 def GetKnee(self):
15467 r"""GetKnee(PCB_DIM_RADIAL self) -> VECTOR2I"""
15468 return _pcbnew.PCB_DIM_RADIAL_GetKnee(self)
15469 __swig_destroy__ = _pcbnew.delete_PCB_DIM_RADIAL
15470
15471# Register PCB_DIM_RADIAL in _pcbnew:
15472_pcbnew.PCB_DIM_RADIAL_swigregister(PCB_DIM_RADIAL)
15473
15475 r"""PCB_DIM_RADIAL_ClassOf(EDA_ITEM aItem) -> bool"""
15476 return _pcbnew.PCB_DIM_RADIAL_ClassOf(aItem)
15477
15479 r"""Proxy of C++ PCB_DIM_LEADER class."""
15480
15481 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15482 __repr__ = _swig_repr
15483
15484 def __init__(self, aParent, aInFP=False):
15485 r"""__init__(PCB_DIM_LEADER self, BOARD_ITEM aParent, bool aInFP=False) -> PCB_DIM_LEADER"""
15486 _pcbnew.PCB_DIM_LEADER_swiginit(self, _pcbnew.new_PCB_DIM_LEADER(aParent, aInFP))
15487
15488 @staticmethod
15489 def ClassOf(aItem):
15490 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15491 return _pcbnew.PCB_DIM_LEADER_ClassOf(aItem)
15492
15493 def SetTextBorder(self, aBorder):
15494 r"""SetTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
15495 return _pcbnew.PCB_DIM_LEADER_SetTextBorder(self, aBorder)
15496
15497 def GetTextBorder(self):
15498 r"""GetTextBorder(PCB_DIM_LEADER self) -> DIM_TEXT_BORDER"""
15499 return _pcbnew.PCB_DIM_LEADER_GetTextBorder(self)
15500
15501 def ChangeTextBorder(self, aBorder):
15502 r"""ChangeTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
15503 return _pcbnew.PCB_DIM_LEADER_ChangeTextBorder(self, aBorder)
15504 __swig_destroy__ = _pcbnew.delete_PCB_DIM_LEADER
15505
15506# Register PCB_DIM_LEADER in _pcbnew:
15507_pcbnew.PCB_DIM_LEADER_swigregister(PCB_DIM_LEADER)
15508
15510 r"""PCB_DIM_LEADER_ClassOf(EDA_ITEM aItem) -> bool"""
15511 return _pcbnew.PCB_DIM_LEADER_ClassOf(aItem)
15512
15514 r"""Proxy of C++ PCB_DIM_CENTER class."""
15515
15516 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15517 __repr__ = _swig_repr
15518
15519 def __init__(self, aParent, aInFP=False):
15520 r"""__init__(PCB_DIM_CENTER self, BOARD_ITEM aParent, bool aInFP=False) -> PCB_DIM_CENTER"""
15521 _pcbnew.PCB_DIM_CENTER_swiginit(self, _pcbnew.new_PCB_DIM_CENTER(aParent, aInFP))
15522
15523 @staticmethod
15524 def ClassOf(aItem):
15525 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15526 return _pcbnew.PCB_DIM_CENTER_ClassOf(aItem)
15527 __swig_destroy__ = _pcbnew.delete_PCB_DIM_CENTER
15528
15529# Register PCB_DIM_CENTER in _pcbnew:
15530_pcbnew.PCB_DIM_CENTER_swigregister(PCB_DIM_CENTER)
15531
15533 r"""PCB_DIM_CENTER_ClassOf(EDA_ITEM aItem) -> bool"""
15534 return _pcbnew.PCB_DIM_CENTER_ClassOf(aItem)
15535
15536MARKER_SHAPE_POINT_COUNT = _pcbnew.MARKER_SHAPE_POINT_COUNT
15537
15539 r"""Proxy of C++ PCB_MARKER class."""
15540
15541 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15542 __repr__ = _swig_repr
15543
15544 def __init__(self, aItem, aPos, aLayer=F_Cu):
15545 r"""__init__(PCB_MARKER self, std::shared_ptr< RC_ITEM > aItem, VECTOR2I aPos, int aLayer=F_Cu) -> PCB_MARKER"""
15546 _pcbnew.PCB_MARKER_swiginit(self, _pcbnew.new_PCB_MARKER(aItem, aPos, aLayer))
15547 __swig_destroy__ = _pcbnew.delete_PCB_MARKER
15548
15549 @staticmethod
15550 def ClassOf(aItem):
15551 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15552 return _pcbnew.PCB_MARKER_ClassOf(aItem)
15553
15554 def Serialize(self):
15555 r"""Serialize(PCB_MARKER self) -> wxString"""
15556 return _pcbnew.PCB_MARKER_Serialize(self)
15557
15558 @staticmethod
15559 def Deserialize(data):
15560 r"""Deserialize(wxString data) -> PCB_MARKER"""
15561 return _pcbnew.PCB_MARKER_Deserialize(data)
15562
15563 def HitTest(self, aPosition, aAccuracy=0):
15564 r"""HitTest(PCB_MARKER self, VECTOR2I aPosition, int aAccuracy=0) -> bool"""
15565 return _pcbnew.PCB_MARKER_HitTest(self, aPosition, aAccuracy)
15566
15567 def GetColorLayer(self):
15568 r"""GetColorLayer(PCB_MARKER self) -> GAL_LAYER_ID"""
15569 return _pcbnew.PCB_MARKER_GetColorLayer(self)
15570
15571 def GetEffectiveShape(self, *args):
15572 r"""GetEffectiveShape(PCB_MARKER self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15573 return _pcbnew.PCB_MARKER_GetEffectiveShape(self, *args)
15574
15575 def SetZoom(self, aZoomFactor):
15576 r"""SetZoom(PCB_MARKER self, double aZoomFactor)"""
15577 return _pcbnew.PCB_MARKER_SetZoom(self, aZoomFactor)
15578
15579# Register PCB_MARKER in _pcbnew:
15580_pcbnew.PCB_MARKER_swigregister(PCB_MARKER)
15581
15583 r"""PCB_MARKER_ClassOf(EDA_ITEM aItem) -> bool"""
15584 return _pcbnew.PCB_MARKER_ClassOf(aItem)
15585
15587 r"""PCB_MARKER_Deserialize(wxString data) -> PCB_MARKER"""
15588 return _pcbnew.PCB_MARKER_Deserialize(data)
15589
15591 r"""Proxy of C++ PCB_TARGET class."""
15592
15593 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15594 __repr__ = _swig_repr
15595
15596 def __init__(self, *args):
15597 r"""
15598 __init__(PCB_TARGET self, BOARD_ITEM aParent) -> PCB_TARGET
15599 __init__(PCB_TARGET self, BOARD_ITEM aParent, int aShape, PCB_LAYER_ID aLayer, VECTOR2I aPos, int aSize, int aWidth) -> PCB_TARGET
15600 """
15601 _pcbnew.PCB_TARGET_swiginit(self, _pcbnew.new_PCB_TARGET(*args))
15602 __swig_destroy__ = _pcbnew.delete_PCB_TARGET
15603
15604 @staticmethod
15605 def ClassOf(aItem):
15606 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15607 return _pcbnew.PCB_TARGET_ClassOf(aItem)
15608
15609 def SetShape(self, aShape):
15610 r"""SetShape(PCB_TARGET self, int aShape)"""
15611 return _pcbnew.PCB_TARGET_SetShape(self, aShape)
15612
15613 def GetShape(self):
15614 r"""GetShape(PCB_TARGET self) -> int"""
15615 return _pcbnew.PCB_TARGET_GetShape(self)
15616
15617 def SetSize(self, aSize):
15618 r"""SetSize(PCB_TARGET self, int aSize)"""
15619 return _pcbnew.PCB_TARGET_SetSize(self, aSize)
15620
15621 def GetSize(self):
15622 r"""GetSize(PCB_TARGET self) -> int"""
15623 return _pcbnew.PCB_TARGET_GetSize(self)
15624
15625 def SetWidth(self, aWidth):
15626 r"""SetWidth(PCB_TARGET self, int aWidth)"""
15627 return _pcbnew.PCB_TARGET_SetWidth(self, aWidth)
15628
15629 def GetWidth(self):
15630 r"""GetWidth(PCB_TARGET self) -> int"""
15631 return _pcbnew.PCB_TARGET_GetWidth(self)
15632
15633 def HitTest(self, *args):
15634 r"""
15635 HitTest(PCB_TARGET self, VECTOR2I aPosition, int aAccuracy=0) -> bool
15636 HitTest(PCB_TARGET self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15637 """
15638 return _pcbnew.PCB_TARGET_HitTest(self, *args)
15639
15640 def GetEffectiveShape(self, *args):
15641 r"""GetEffectiveShape(PCB_TARGET self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15642 return _pcbnew.PCB_TARGET_GetEffectiveShape(self, *args)
15643
15644 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
15645 r"""TransformShapeToPolygon(PCB_TARGET self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
15646 return _pcbnew.PCB_TARGET_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
15647
15648# Register PCB_TARGET in _pcbnew:
15649_pcbnew.PCB_TARGET_swigregister(PCB_TARGET)
15650
15652 r"""PCB_TARGET_ClassOf(EDA_ITEM aItem) -> bool"""
15653 return _pcbnew.PCB_TARGET_ClassOf(aItem)
15654
15656 r"""Proxy of C++ FP_SHAPE class."""
15657
15658 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15659 __repr__ = _swig_repr
15660
15661 def __init__(self, *args):
15662 r"""__init__(FP_SHAPE self, FOOTPRINT aParent, SHAPE_T aShape=SEGMENT, KICAD_T aItemType=PCB_FP_SHAPE_T) -> FP_SHAPE"""
15663 _pcbnew.FP_SHAPE_swiginit(self, _pcbnew.new_FP_SHAPE(*args))
15664 __swig_destroy__ = _pcbnew.delete_FP_SHAPE
15665
15666 @staticmethod
15667 def ClassOf(aItem):
15668 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15669 return _pcbnew.FP_SHAPE_ClassOf(aItem)
15670
15671 def SetArcAngleAndEnd0(self, aAngle, aCheckNegativeAngle=False):
15672 r"""SetArcAngleAndEnd0(FP_SHAPE self, EDA_ANGLE aAngle, bool aCheckNegativeAngle=False)"""
15673 return _pcbnew.FP_SHAPE_SetArcAngleAndEnd0(self, aAngle, aCheckNegativeAngle)
15674
15675 def SetArcGeometry0(self, aStart, aMid, aEnd):
15676 r"""SetArcGeometry0(FP_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd)"""
15677 return _pcbnew.FP_SHAPE_SetArcGeometry0(self, aStart, aMid, aEnd)
15678
15680 r"""IsParentFlipped(FP_SHAPE self) -> bool"""
15681 return _pcbnew.FP_SHAPE_IsParentFlipped(self)
15682
15683 def SetStart0(self, aPoint):
15684 r"""SetStart0(FP_SHAPE self, VECTOR2I aPoint)"""
15685 return _pcbnew.FP_SHAPE_SetStart0(self, aPoint)
15686
15687 def GetStart0(self):
15688 r"""GetStart0(FP_SHAPE self) -> VECTOR2I"""
15689 return _pcbnew.FP_SHAPE_GetStart0(self)
15690
15691 def SetEnd0(self, aPoint):
15692 r"""SetEnd0(FP_SHAPE self, VECTOR2I aPoint)"""
15693 return _pcbnew.FP_SHAPE_SetEnd0(self, aPoint)
15694
15695 def GetEnd0(self):
15696 r"""GetEnd0(FP_SHAPE self) -> VECTOR2I"""
15697 return _pcbnew.FP_SHAPE_GetEnd0(self)
15698
15699 def SetBezierC1_0(self, aPoint):
15700 r"""SetBezierC1_0(FP_SHAPE self, VECTOR2I aPoint)"""
15701 return _pcbnew.FP_SHAPE_SetBezierC1_0(self, aPoint)
15702
15703 def GetBezierC1_0(self):
15704 r"""GetBezierC1_0(FP_SHAPE self) -> VECTOR2I"""
15705 return _pcbnew.FP_SHAPE_GetBezierC1_0(self)
15706
15707 def SetBezierC2_0(self, aPoint):
15708 r"""SetBezierC2_0(FP_SHAPE self, VECTOR2I aPoint)"""
15709 return _pcbnew.FP_SHAPE_SetBezierC2_0(self, aPoint)
15710
15711 def GetBezierC2_0(self):
15712 r"""GetBezierC2_0(FP_SHAPE self) -> VECTOR2I"""
15713 return _pcbnew.FP_SHAPE_GetBezierC2_0(self)
15714
15715 def GetCenter0(self):
15716 r"""GetCenter0(FP_SHAPE self) -> VECTOR2I"""
15717 return _pcbnew.FP_SHAPE_GetCenter0(self)
15718
15719 def SetCenter0(self, aPt):
15720 r"""SetCenter0(FP_SHAPE self, VECTOR2I aPt)"""
15721 return _pcbnew.FP_SHAPE_SetCenter0(self, aPt)
15722
15723 def GetArcMid0(self):
15724 r"""GetArcMid0(FP_SHAPE self) -> VECTOR2I"""
15725 return _pcbnew.FP_SHAPE_GetArcMid0(self)
15726
15727 def CalcArcAngles0(self, aStartAngle, aEndAngle):
15728 r"""CalcArcAngles0(FP_SHAPE self, EDA_ANGLE aStartAngle, EDA_ANGLE aEndAngle)"""
15729 return _pcbnew.FP_SHAPE_CalcArcAngles0(self, aStartAngle, aEndAngle)
15730
15731 def GetArcAngle0(self):
15732 r"""GetArcAngle0(FP_SHAPE self) -> EDA_ANGLE"""
15733 return _pcbnew.FP_SHAPE_GetArcAngle0(self)
15734
15735 def SetCachedArcData0(self, aStart0, aMid0, aEnd0, aCenter0):
15736 r"""SetCachedArcData0(FP_SHAPE self, VECTOR2I aStart0, VECTOR2I aMid0, VECTOR2I aEnd0, VECTOR2I aCenter0)"""
15737 return _pcbnew.FP_SHAPE_SetCachedArcData0(self, aStart0, aMid0, aEnd0, aCenter0)
15738
15739 def SetLocalCoord(self):
15740 r"""SetLocalCoord(FP_SHAPE self)"""
15741 return _pcbnew.FP_SHAPE_SetLocalCoord(self)
15742
15743 def SetDrawCoord(self):
15744 r"""SetDrawCoord(FP_SHAPE self)"""
15745 return _pcbnew.FP_SHAPE_SetDrawCoord(self)
15746
15748 r"""GetParentAsString(FP_SHAPE self) -> wxString"""
15749 return _pcbnew.FP_SHAPE_GetParentAsString(self)
15750
15751 def ViewGetLOD(self, aLayer, aView):
15752 r"""ViewGetLOD(FP_SHAPE self, int aLayer, KIGFX::VIEW * aView) -> double"""
15753 return _pcbnew.FP_SHAPE_ViewGetLOD(self, aLayer, aView)
15754
15755# Register FP_SHAPE in _pcbnew:
15756_pcbnew.FP_SHAPE_swigregister(FP_SHAPE)
15757
15759 r"""FP_SHAPE_ClassOf(EDA_ITEM aItem) -> bool"""
15760 return _pcbnew.FP_SHAPE_ClassOf(aItem)
15761
15763 r"""Proxy of C++ FP_TEXT class."""
15764
15765 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15766 __repr__ = _swig_repr
15767 TEXT_is_REFERENCE = _pcbnew.FP_TEXT_TEXT_is_REFERENCE
15768
15769 TEXT_is_VALUE = _pcbnew.FP_TEXT_TEXT_is_VALUE
15770
15771 TEXT_is_DIVERS = _pcbnew.FP_TEXT_TEXT_is_DIVERS
15772
15773
15774 def __init__(self, *args):
15775 r"""__init__(FP_TEXT self, FOOTPRINT aParentFootprint, FP_TEXT::TEXT_TYPE text_type=TEXT_is_DIVERS) -> FP_TEXT"""
15776 _pcbnew.FP_TEXT_swiginit(self, _pcbnew.new_FP_TEXT(*args))
15777 __swig_destroy__ = _pcbnew.delete_FP_TEXT
15778
15779 @staticmethod
15780 def ClassOf(aItem):
15781 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15782 return _pcbnew.FP_TEXT_ClassOf(aItem)
15783
15785 r"""GetParentAsString(FP_TEXT self) -> wxString"""
15786 return _pcbnew.FP_TEXT_GetParentAsString(self)
15787
15788 def KeepUpright(self, aOldOrientation, aNewOrientation):
15789 r"""KeepUpright(FP_TEXT self, EDA_ANGLE aOldOrientation, EDA_ANGLE aNewOrientation)"""
15790 return _pcbnew.FP_TEXT_KeepUpright(self, aOldOrientation, aNewOrientation)
15791
15793 r"""IsParentFlipped(FP_TEXT self) -> bool"""
15794 return _pcbnew.FP_TEXT_IsParentFlipped(self)
15795
15796 def Mirror(self, aCentre, aMirrorAroundXAxis):
15797 r"""Mirror(FP_TEXT self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
15798 return _pcbnew.FP_TEXT_Mirror(self, aCentre, aMirrorAroundXAxis)
15799
15800 def SetType(self, aType):
15801 r"""SetType(FP_TEXT self, FP_TEXT::TEXT_TYPE aType)"""
15802 return _pcbnew.FP_TEXT_SetType(self, aType)
15803
15804 def GetType(self):
15805 r"""GetType(FP_TEXT self) -> FP_TEXT::TEXT_TYPE"""
15806 return _pcbnew.FP_TEXT_GetType(self)
15807
15808 def SetPos0(self, aPos):
15809 r"""SetPos0(FP_TEXT self, VECTOR2I aPos)"""
15810 return _pcbnew.FP_TEXT_SetPos0(self, aPos)
15811
15812 def GetPos0(self):
15813 r"""GetPos0(FP_TEXT self) -> VECTOR2I"""
15814 return _pcbnew.FP_TEXT_GetPos0(self)
15815
15816 def GetLength(self):
15817 r"""GetLength(FP_TEXT self) -> int"""
15818 return _pcbnew.FP_TEXT_GetLength(self)
15819
15820 def SetDrawCoord(self):
15821 r"""SetDrawCoord(FP_TEXT self)"""
15822 return _pcbnew.FP_TEXT_SetDrawCoord(self)
15823
15824 def SetLocalCoord(self):
15825 r"""SetLocalCoord(FP_TEXT self)"""
15826 return _pcbnew.FP_TEXT_SetLocalCoord(self)
15827
15828 def TextHitTest(self, *args):
15829 r"""
15830 TextHitTest(FP_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
15831 TextHitTest(FP_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
15832 """
15833 return _pcbnew.FP_TEXT_TextHitTest(self, *args)
15834
15835 def HitTest(self, *args):
15836 r"""
15837 HitTest(FP_TEXT self, VECTOR2I aPosition, int aAccuracy) -> bool
15838 HitTest(FP_TEXT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15839 """
15840 return _pcbnew.FP_TEXT_HitTest(self, *args)
15841
15842 def TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc):
15843 r"""TransformTextToPolySet(FP_TEXT self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc)"""
15844 return _pcbnew.FP_TEXT_TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc)
15845
15846 def GetEffectiveShape(self, *args):
15847 r"""GetEffectiveShape(FP_TEXT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15848 return _pcbnew.FP_TEXT_GetEffectiveShape(self, *args)
15849
15850 def GetShownText(self, aAllowExtraText, aDepth=0):
15851 r"""GetShownText(FP_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
15852 return _pcbnew.FP_TEXT_GetShownText(self, aAllowExtraText, aDepth)
15853
15854 def ViewGetLOD(self, aLayer, aView):
15855 r"""ViewGetLOD(FP_TEXT self, int aLayer, KIGFX::VIEW * aView) -> double"""
15856 return _pcbnew.FP_TEXT_ViewGetLOD(self, aLayer, aView)
15857
15858 # KiCad 6 API compatibility
15859 def GetShownText(self):
15860 r"""GetShownText(FP_TEXT self) -> wxString"""
15861 return _pcbnew.FP_TEXT_GetShownText(self, True, 0)
15862
15863
15864# Register FP_TEXT in _pcbnew:
15865_pcbnew.FP_TEXT_swigregister(FP_TEXT)
15866
15868 r"""FP_TEXT_ClassOf(EDA_ITEM aItem) -> bool"""
15869 return _pcbnew.FP_TEXT_ClassOf(aItem)
15870
15872 r"""Proxy of C++ FP_TEXTBOX class."""
15873
15874 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15875 __repr__ = _swig_repr
15876
15877 def __init__(self, aParentFootprint):
15878 r"""__init__(FP_TEXTBOX self, FOOTPRINT aParentFootprint) -> FP_TEXTBOX"""
15879 _pcbnew.FP_TEXTBOX_swiginit(self, _pcbnew.new_FP_TEXTBOX(aParentFootprint))
15880 __swig_destroy__ = _pcbnew.delete_FP_TEXTBOX
15881
15882 @staticmethod
15883 def ClassOf(aItem):
15884 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15885 return _pcbnew.FP_TEXTBOX_ClassOf(aItem)
15886
15888 r"""GetParentAsString(FP_TEXTBOX self) -> wxString"""
15889 return _pcbnew.FP_TEXTBOX_GetParentAsString(self)
15890
15891 def GetTextMargin(self):
15892 r"""GetTextMargin(FP_TEXTBOX self) -> int"""
15893 return _pcbnew.FP_TEXTBOX_GetTextMargin(self)
15894
15896 r"""GetNormalizedCorners(FP_TEXTBOX self) -> VECTOR_VECTOR2I"""
15897 return _pcbnew.FP_TEXTBOX_GetNormalizedCorners(self)
15898
15899 def HitTest(self, *args):
15900 r"""
15901 HitTest(FP_TEXTBOX self, VECTOR2I aPosition, int aAccuracy) -> bool
15902 HitTest(FP_TEXTBOX self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15903 """
15904 return _pcbnew.FP_TEXTBOX_HitTest(self, *args)
15905
15906 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False):
15907 r"""TransformShapeToPolygon(FP_TEXTBOX self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
15908 return _pcbnew.FP_TEXTBOX_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth)
15909
15910 def TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc):
15911 r"""TransformTextToPolySet(FP_TEXTBOX self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc)"""
15912 return _pcbnew.FP_TEXTBOX_TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc)
15913
15914 def GetEffectiveShape(self, *args):
15915 r"""GetEffectiveShape(FP_TEXTBOX self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15916 return _pcbnew.FP_TEXTBOX_GetEffectiveShape(self, *args)
15917
15918 def GetShownText(self, aAllowExtraText, aDepth=0):
15919 r"""GetShownText(FP_TEXTBOX self, bool aAllowExtraText, int aDepth=0) -> wxString"""
15920 return _pcbnew.FP_TEXTBOX_GetShownText(self, aAllowExtraText, aDepth)
15921
15922 def ViewGetLOD(self, aLayer, aView):
15923 r"""ViewGetLOD(FP_TEXTBOX self, int aLayer, KIGFX::VIEW * aView) -> double"""
15924 return _pcbnew.FP_TEXTBOX_ViewGetLOD(self, aLayer, aView)
15925
15927 r"""IsBorderEnabled(FP_TEXTBOX self) -> bool"""
15928 return _pcbnew.FP_TEXTBOX_IsBorderEnabled(self)
15929
15930 def DisableBorder(self):
15931 r"""DisableBorder(FP_TEXTBOX self)"""
15932 return _pcbnew.FP_TEXTBOX_DisableBorder(self)
15933
15934 # KiCad 6 API compatibility
15935 def GetShownText(self):
15936 r"""GetShownText(FP_TEXTBOX self) -> wxString"""
15937 return _pcbnew.FP_TEXTBOX_GetShownText(self, True, 0)
15938
15939
15940# Register FP_TEXTBOX in _pcbnew:
15941_pcbnew.FP_TEXTBOX_swigregister(FP_TEXTBOX)
15942
15944 r"""FP_TEXTBOX_ClassOf(EDA_ITEM aItem) -> bool"""
15945 return _pcbnew.FP_TEXTBOX_ClassOf(aItem)
15946
15947CH_VISIBLE = _pcbnew.CH_VISIBLE
15948
15949CH_UNROUTABLE = _pcbnew.CH_UNROUTABLE
15950
15951CH_ROUTE_REQ = _pcbnew.CH_ROUTE_REQ
15952
15953CH_ACTIF = _pcbnew.CH_ACTIF
15954
15955LOCAL_RATSNEST_ITEM = _pcbnew.LOCAL_RATSNEST_ITEM
15956
15958 r"""Proxy of C++ std::vector< PAD * > class."""
15959
15960 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15961 __repr__ = _swig_repr
15962
15963 def iterator(self):
15964 r"""iterator(PADS_VEC self) -> SwigPyIterator"""
15965 return _pcbnew.PADS_VEC_iterator(self)
15966 def __iter__(self):
15967 return self.iterator()
15968
15969 def __nonzero__(self):
15970 r"""__nonzero__(PADS_VEC self) -> bool"""
15971 return _pcbnew.PADS_VEC___nonzero__(self)
15972
15973 def __bool__(self):
15974 r"""__bool__(PADS_VEC self) -> bool"""
15975 return _pcbnew.PADS_VEC___bool__(self)
15976
15977 def __len__(self):
15978 r"""__len__(PADS_VEC self) -> std::vector< PAD * >::size_type"""
15979 return _pcbnew.PADS_VEC___len__(self)
15980
15981 def __getslice__(self, i, j):
15982 r"""__getslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j) -> PADS_VEC"""
15983 return _pcbnew.PADS_VEC___getslice__(self, i, j)
15984
15985 def __setslice__(self, *args):
15986 r"""
15987 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)
15988 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j, PADS_VEC v)
15989 """
15990 return _pcbnew.PADS_VEC___setslice__(self, *args)
15991
15992 def __delslice__(self, i, j):
15993 r"""__delslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)"""
15994 return _pcbnew.PADS_VEC___delslice__(self, i, j)
15995
15996 def __delitem__(self, *args):
15997 r"""
15998 __delitem__(PADS_VEC self, std::vector< PAD * >::difference_type i)
15999 __delitem__(PADS_VEC self, PySliceObject * slice)
16000 """
16001 return _pcbnew.PADS_VEC___delitem__(self, *args)
16002
16003 def __getitem__(self, *args):
16004 r"""
16005 __getitem__(PADS_VEC self, PySliceObject * slice) -> PADS_VEC
16006 __getitem__(PADS_VEC self, std::vector< PAD * >::difference_type i) -> PAD
16007 """
16008 return _pcbnew.PADS_VEC___getitem__(self, *args)
16009
16010 def __setitem__(self, *args):
16011 r"""
16012 __setitem__(PADS_VEC self, PySliceObject * slice, PADS_VEC v)
16013 __setitem__(PADS_VEC self, PySliceObject * slice)
16014 __setitem__(PADS_VEC self, std::vector< PAD * >::difference_type i, PAD x)
16015 """
16016 return _pcbnew.PADS_VEC___setitem__(self, *args)
16017
16018 def pop(self):
16019 r"""pop(PADS_VEC self) -> PAD"""
16020 return _pcbnew.PADS_VEC_pop(self)
16021
16022 def append(self, x):
16023 r"""append(PADS_VEC self, PAD x)"""
16024 return _pcbnew.PADS_VEC_append(self, x)
16025
16026 def empty(self):
16027 r"""empty(PADS_VEC self) -> bool"""
16028 return _pcbnew.PADS_VEC_empty(self)
16029
16030 def size(self):
16031 r"""size(PADS_VEC self) -> std::vector< PAD * >::size_type"""
16032 return _pcbnew.PADS_VEC_size(self)
16033
16034 def swap(self, v):
16035 r"""swap(PADS_VEC self, PADS_VEC v)"""
16036 return _pcbnew.PADS_VEC_swap(self, v)
16037
16038 def begin(self):
16039 r"""begin(PADS_VEC self) -> std::vector< PAD * >::iterator"""
16040 return _pcbnew.PADS_VEC_begin(self)
16041
16042 def end(self):
16043 r"""end(PADS_VEC self) -> std::vector< PAD * >::iterator"""
16044 return _pcbnew.PADS_VEC_end(self)
16045
16046 def rbegin(self):
16047 r"""rbegin(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
16048 return _pcbnew.PADS_VEC_rbegin(self)
16049
16050 def rend(self):
16051 r"""rend(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
16052 return _pcbnew.PADS_VEC_rend(self)
16053
16054 def clear(self):
16055 r"""clear(PADS_VEC self)"""
16056 return _pcbnew.PADS_VEC_clear(self)
16057
16058 def get_allocator(self):
16059 r"""get_allocator(PADS_VEC self) -> std::vector< PAD * >::allocator_type"""
16060 return _pcbnew.PADS_VEC_get_allocator(self)
16061
16062 def pop_back(self):
16063 r"""pop_back(PADS_VEC self)"""
16064 return _pcbnew.PADS_VEC_pop_back(self)
16065
16066 def erase(self, *args):
16067 r"""
16068 erase(PADS_VEC self, std::vector< PAD * >::iterator pos) -> std::vector< PAD * >::iterator
16069 erase(PADS_VEC self, std::vector< PAD * >::iterator first, std::vector< PAD * >::iterator last) -> std::vector< PAD * >::iterator
16070 """
16071 return _pcbnew.PADS_VEC_erase(self, *args)
16072
16073 def __init__(self, *args):
16074 r"""
16075 __init__(PADS_VEC self) -> PADS_VEC
16076 __init__(PADS_VEC self, PADS_VEC other) -> PADS_VEC
16077 __init__(PADS_VEC self, std::vector< PAD * >::size_type size) -> PADS_VEC
16078 __init__(PADS_VEC self, std::vector< PAD * >::size_type size, PAD value) -> PADS_VEC
16079 """
16080 _pcbnew.PADS_VEC_swiginit(self, _pcbnew.new_PADS_VEC(*args))
16081
16082 def push_back(self, x):
16083 r"""push_back(PADS_VEC self, PAD x)"""
16084 return _pcbnew.PADS_VEC_push_back(self, x)
16085
16086 def front(self):
16087 r"""front(PADS_VEC self) -> PAD"""
16088 return _pcbnew.PADS_VEC_front(self)
16089
16090 def back(self):
16091 r"""back(PADS_VEC self) -> PAD"""
16092 return _pcbnew.PADS_VEC_back(self)
16093
16094 def assign(self, n, x):
16095 r"""assign(PADS_VEC self, std::vector< PAD * >::size_type n, PAD x)"""
16096 return _pcbnew.PADS_VEC_assign(self, n, x)
16097
16098 def resize(self, *args):
16099 r"""
16100 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size)
16101 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size, PAD x)
16102 """
16103 return _pcbnew.PADS_VEC_resize(self, *args)
16104
16105 def insert(self, *args):
16106 r"""
16107 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, PAD x) -> std::vector< PAD * >::iterator
16108 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, std::vector< PAD * >::size_type n, PAD x)
16109 """
16110 return _pcbnew.PADS_VEC_insert(self, *args)
16111
16112 def reserve(self, n):
16113 r"""reserve(PADS_VEC self, std::vector< PAD * >::size_type n)"""
16114 return _pcbnew.PADS_VEC_reserve(self, n)
16115
16116 def capacity(self):
16117 r"""capacity(PADS_VEC self) -> std::vector< PAD * >::size_type"""
16118 return _pcbnew.PADS_VEC_capacity(self)
16119 __swig_destroy__ = _pcbnew.delete_PADS_VEC
16120
16121# Register PADS_VEC in _pcbnew:
16122_pcbnew.PADS_VEC_swigregister(PADS_VEC)
16123
16125 r"""Proxy of C++ std::vector< PCB_TRACK * > class."""
16126
16127 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16128 __repr__ = _swig_repr
16129
16130 def iterator(self):
16131 r"""iterator(TRACKS_VEC self) -> SwigPyIterator"""
16132 return _pcbnew.TRACKS_VEC_iterator(self)
16133 def __iter__(self):
16134 return self.iterator()
16135
16136 def __nonzero__(self):
16137 r"""__nonzero__(TRACKS_VEC self) -> bool"""
16138 return _pcbnew.TRACKS_VEC___nonzero__(self)
16139
16140 def __bool__(self):
16141 r"""__bool__(TRACKS_VEC self) -> bool"""
16142 return _pcbnew.TRACKS_VEC___bool__(self)
16143
16144 def __len__(self):
16145 r"""__len__(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
16146 return _pcbnew.TRACKS_VEC___len__(self)
16147
16148 def __getslice__(self, i, j):
16149 r"""__getslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j) -> TRACKS_VEC"""
16150 return _pcbnew.TRACKS_VEC___getslice__(self, i, j)
16151
16152 def __setslice__(self, *args):
16153 r"""
16154 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)
16155 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j, TRACKS_VEC v)
16156 """
16157 return _pcbnew.TRACKS_VEC___setslice__(self, *args)
16158
16159 def __delslice__(self, i, j):
16160 r"""__delslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)"""
16161 return _pcbnew.TRACKS_VEC___delslice__(self, i, j)
16162
16163 def __delitem__(self, *args):
16164 r"""
16165 __delitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i)
16166 __delitem__(TRACKS_VEC self, PySliceObject * slice)
16167 """
16168 return _pcbnew.TRACKS_VEC___delitem__(self, *args)
16169
16170 def __getitem__(self, *args):
16171 r"""
16172 __getitem__(TRACKS_VEC self, PySliceObject * slice) -> TRACKS_VEC
16173 __getitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i) -> PCB_TRACK
16174 """
16175 return _pcbnew.TRACKS_VEC___getitem__(self, *args)
16176
16177 def __setitem__(self, *args):
16178 r"""
16179 __setitem__(TRACKS_VEC self, PySliceObject * slice, TRACKS_VEC v)
16180 __setitem__(TRACKS_VEC self, PySliceObject * slice)
16181 __setitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, PCB_TRACK x)
16182 """
16183 return _pcbnew.TRACKS_VEC___setitem__(self, *args)
16184
16185 def pop(self):
16186 r"""pop(TRACKS_VEC self) -> PCB_TRACK"""
16187 return _pcbnew.TRACKS_VEC_pop(self)
16188
16189 def append(self, x):
16190 r"""append(TRACKS_VEC self, PCB_TRACK x)"""
16191 return _pcbnew.TRACKS_VEC_append(self, x)
16192
16193 def empty(self):
16194 r"""empty(TRACKS_VEC self) -> bool"""
16195 return _pcbnew.TRACKS_VEC_empty(self)
16196
16197 def size(self):
16198 r"""size(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
16199 return _pcbnew.TRACKS_VEC_size(self)
16200
16201 def swap(self, v):
16202 r"""swap(TRACKS_VEC self, TRACKS_VEC v)"""
16203 return _pcbnew.TRACKS_VEC_swap(self, v)
16204
16205 def begin(self):
16206 r"""begin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
16207 return _pcbnew.TRACKS_VEC_begin(self)
16208
16209 def end(self):
16210 r"""end(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
16211 return _pcbnew.TRACKS_VEC_end(self)
16212
16213 def rbegin(self):
16214 r"""rbegin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
16215 return _pcbnew.TRACKS_VEC_rbegin(self)
16216
16217 def rend(self):
16218 r"""rend(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
16219 return _pcbnew.TRACKS_VEC_rend(self)
16220
16221 def clear(self):
16222 r"""clear(TRACKS_VEC self)"""
16223 return _pcbnew.TRACKS_VEC_clear(self)
16224
16225 def get_allocator(self):
16226 r"""get_allocator(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::allocator_type"""
16227 return _pcbnew.TRACKS_VEC_get_allocator(self)
16228
16229 def pop_back(self):
16230 r"""pop_back(TRACKS_VEC self)"""
16231 return _pcbnew.TRACKS_VEC_pop_back(self)
16232
16233 def erase(self, *args):
16234 r"""
16235 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos) -> std::vector< PCB_TRACK * >::iterator
16236 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator first, std::vector< PCB_TRACK * >::iterator last) -> std::vector< PCB_TRACK * >::iterator
16237 """
16238 return _pcbnew.TRACKS_VEC_erase(self, *args)
16239
16240 def __init__(self, *args):
16241 r"""
16242 __init__(TRACKS_VEC self) -> TRACKS_VEC
16243 __init__(TRACKS_VEC self, TRACKS_VEC other) -> TRACKS_VEC
16244 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size) -> TRACKS_VEC
16245 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS_VEC
16246 """
16247 _pcbnew.TRACKS_VEC_swiginit(self, _pcbnew.new_TRACKS_VEC(*args))
16248
16249 def push_back(self, x):
16250 r"""push_back(TRACKS_VEC self, PCB_TRACK x)"""
16251 return _pcbnew.TRACKS_VEC_push_back(self, x)
16252
16253 def front(self):
16254 r"""front(TRACKS_VEC self) -> PCB_TRACK"""
16255 return _pcbnew.TRACKS_VEC_front(self)
16256
16257 def back(self):
16258 r"""back(TRACKS_VEC self) -> PCB_TRACK"""
16259 return _pcbnew.TRACKS_VEC_back(self)
16260
16261 def assign(self, n, x):
16262 r"""assign(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
16263 return _pcbnew.TRACKS_VEC_assign(self, n, x)
16264
16265 def resize(self, *args):
16266 r"""
16267 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size)
16268 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
16269 """
16270 return _pcbnew.TRACKS_VEC_resize(self, *args)
16271
16272 def insert(self, *args):
16273 r"""
16274 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::vector< PCB_TRACK * >::iterator
16275 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)
16276 """
16277 return _pcbnew.TRACKS_VEC_insert(self, *args)
16278
16279 def reserve(self, n):
16280 r"""reserve(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n)"""
16281 return _pcbnew.TRACKS_VEC_reserve(self, n)
16282
16283 def capacity(self):
16284 r"""capacity(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
16285 return _pcbnew.TRACKS_VEC_capacity(self)
16286 __swig_destroy__ = _pcbnew.delete_TRACKS_VEC
16287
16288# Register TRACKS_VEC in _pcbnew:
16289_pcbnew.TRACKS_VEC_swigregister(TRACKS_VEC)
16290
16292 r"""Proxy of C++ NETINFO_ITEM class."""
16293
16294 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16295 __repr__ = _swig_repr
16296
16297 def __init__(self, *args):
16298 r"""__init__(NETINFO_ITEM self, BOARD aParent, wxString aNetName=wxEmptyString, int aNetCode=-1) -> NETINFO_ITEM"""
16299 _pcbnew.NETINFO_ITEM_swiginit(self, _pcbnew.new_NETINFO_ITEM(*args))
16300 __swig_destroy__ = _pcbnew.delete_NETINFO_ITEM
16301
16302 @staticmethod
16303 def ClassOf(aItem):
16304 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16305 return _pcbnew.NETINFO_ITEM_ClassOf(aItem)
16306
16307 def SetNetClass(self, aNetClass):
16308 r"""SetNetClass(NETINFO_ITEM self, std::shared_ptr< NETCLASS > const & aNetClass)"""
16309 return _pcbnew.NETINFO_ITEM_SetNetClass(self, aNetClass)
16310
16311 def GetNetClass(self):
16312 r"""GetNetClass(NETINFO_ITEM self) -> NETCLASS"""
16313 return _pcbnew.NETINFO_ITEM_GetNetClass(self)
16314
16316 r"""GetNetClassSlow(NETINFO_ITEM self) -> std::shared_ptr< NETCLASS >"""
16317 return _pcbnew.NETINFO_ITEM_GetNetClassSlow(self)
16318
16319 def GetNetCode(self):
16320 r"""GetNetCode(NETINFO_ITEM self) -> int"""
16321 return _pcbnew.NETINFO_ITEM_GetNetCode(self)
16322
16323 def SetNetCode(self, aNetCode):
16324 r"""SetNetCode(NETINFO_ITEM self, int aNetCode)"""
16325 return _pcbnew.NETINFO_ITEM_SetNetCode(self, aNetCode)
16326
16327 def GetNetname(self):
16328 r"""GetNetname(NETINFO_ITEM self) -> wxString"""
16329 return _pcbnew.NETINFO_ITEM_GetNetname(self)
16330
16332 r"""GetShortNetname(NETINFO_ITEM self) -> wxString"""
16333 return _pcbnew.NETINFO_ITEM_GetShortNetname(self)
16334
16336 r"""GetUnescapedShortNetname(NETINFO_ITEM self) -> wxString"""
16337 return _pcbnew.NETINFO_ITEM_GetUnescapedShortNetname(self)
16338
16340 r"""HasAutoGeneratedNetname(NETINFO_ITEM self) -> bool"""
16341 return _pcbnew.NETINFO_ITEM_HasAutoGeneratedNetname(self)
16342
16343 def SetNetname(self, aNewName):
16344 r"""SetNetname(NETINFO_ITEM self, wxString aNewName)"""
16345 return _pcbnew.NETINFO_ITEM_SetNetname(self, aNewName)
16346
16347 def IsCurrent(self):
16348 r"""IsCurrent(NETINFO_ITEM self) -> bool"""
16349 return _pcbnew.NETINFO_ITEM_IsCurrent(self)
16350
16351 def SetIsCurrent(self, isCurrent):
16352 r"""SetIsCurrent(NETINFO_ITEM self, bool isCurrent)"""
16353 return _pcbnew.NETINFO_ITEM_SetIsCurrent(self, isCurrent)
16354
16355 def Clear(self):
16356 r"""Clear(NETINFO_ITEM self)"""
16357 return _pcbnew.NETINFO_ITEM_Clear(self)
16358
16359 def GetParent(self):
16360 r"""GetParent(NETINFO_ITEM self) -> BOARD"""
16361 return _pcbnew.NETINFO_ITEM_GetParent(self)
16362
16364 return self.GetNetClassSlow().GetName()
16365
16366
16367# Register NETINFO_ITEM in _pcbnew:
16368_pcbnew.NETINFO_ITEM_swigregister(NETINFO_ITEM)
16369
16371 r"""NETINFO_ITEM_ClassOf(EDA_ITEM aItem) -> bool"""
16372 return _pcbnew.NETINFO_ITEM_ClassOf(aItem)
16373
16375 r"""Proxy of C++ std::map< wxString,NETINFO_ITEM * > class."""
16376
16377 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16378 __repr__ = _swig_repr
16379
16380 def iterator(self):
16381 r"""iterator(NETNAMES_MAP self) -> SwigPyIterator"""
16382 return _pcbnew.NETNAMES_MAP_iterator(self)
16383 def __iter__(self):
16384 return self.iterator()
16385
16386 def __nonzero__(self):
16387 r"""__nonzero__(NETNAMES_MAP self) -> bool"""
16388 return _pcbnew.NETNAMES_MAP___nonzero__(self)
16389
16390 def __bool__(self):
16391 r"""__bool__(NETNAMES_MAP self) -> bool"""
16392 return _pcbnew.NETNAMES_MAP___bool__(self)
16393
16394 def __len__(self):
16395 r"""__len__(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
16396 return _pcbnew.NETNAMES_MAP___len__(self)
16397 def __iter__(self):
16398 return self.key_iterator()
16399 def iterkeys(self):
16400 return self.key_iterator()
16401 def itervalues(self):
16402 return self.value_iterator()
16403 def iteritems(self):
16404 return self.iterator()
16405
16406 def __getitem__(self, key):
16407 r"""__getitem__(NETNAMES_MAP self, wxString key) -> NETINFO_ITEM"""
16408 return _pcbnew.NETNAMES_MAP___getitem__(self, key)
16409
16410 def __delitem__(self, key):
16411 r"""__delitem__(NETNAMES_MAP self, wxString key)"""
16412 return _pcbnew.NETNAMES_MAP___delitem__(self, key)
16413
16414 def has_key(self, key):
16415 r"""has_key(NETNAMES_MAP self, wxString key) -> bool"""
16416 return _pcbnew.NETNAMES_MAP_has_key(self, key)
16417
16418 def keys(self):
16419 r"""keys(NETNAMES_MAP self) -> PyObject *"""
16420 return _pcbnew.NETNAMES_MAP_keys(self)
16421
16422 def values(self):
16423 r"""values(NETNAMES_MAP self) -> PyObject *"""
16424 return _pcbnew.NETNAMES_MAP_values(self)
16425
16426 def items(self):
16427 r"""items(NETNAMES_MAP self) -> PyObject *"""
16428 return _pcbnew.NETNAMES_MAP_items(self)
16429
16430 def __contains__(self, key):
16431 r"""__contains__(NETNAMES_MAP self, wxString key) -> bool"""
16432 return _pcbnew.NETNAMES_MAP___contains__(self, key)
16433
16434 def key_iterator(self):
16435 r"""key_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
16436 return _pcbnew.NETNAMES_MAP_key_iterator(self)
16437
16439 r"""value_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
16440 return _pcbnew.NETNAMES_MAP_value_iterator(self)
16441
16442 def __setitem__(self, *args):
16443 r"""
16444 __setitem__(NETNAMES_MAP self, wxString key)
16445 __setitem__(NETNAMES_MAP self, wxString key, NETINFO_ITEM x)
16446 """
16447 return _pcbnew.NETNAMES_MAP___setitem__(self, *args)
16448
16449 def asdict(self):
16450 r"""asdict(NETNAMES_MAP self) -> PyObject *"""
16451 return _pcbnew.NETNAMES_MAP_asdict(self)
16452
16453 def __init__(self, *args):
16454 r"""
16455 __init__(NETNAMES_MAP self, std::less< wxString > const & other) -> NETNAMES_MAP
16456 __init__(NETNAMES_MAP self) -> NETNAMES_MAP
16457 __init__(NETNAMES_MAP self, NETNAMES_MAP other) -> NETNAMES_MAP
16458 """
16459 _pcbnew.NETNAMES_MAP_swiginit(self, _pcbnew.new_NETNAMES_MAP(*args))
16460
16461 def empty(self):
16462 r"""empty(NETNAMES_MAP self) -> bool"""
16463 return _pcbnew.NETNAMES_MAP_empty(self)
16464
16465 def size(self):
16466 r"""size(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
16467 return _pcbnew.NETNAMES_MAP_size(self)
16468
16469 def swap(self, v):
16470 r"""swap(NETNAMES_MAP self, NETNAMES_MAP v)"""
16471 return _pcbnew.NETNAMES_MAP_swap(self, v)
16472
16473 def begin(self):
16474 r"""begin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16475 return _pcbnew.NETNAMES_MAP_begin(self)
16476
16477 def end(self):
16478 r"""end(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16479 return _pcbnew.NETNAMES_MAP_end(self)
16480
16481 def rbegin(self):
16482 r"""rbegin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
16483 return _pcbnew.NETNAMES_MAP_rbegin(self)
16484
16485 def rend(self):
16486 r"""rend(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
16487 return _pcbnew.NETNAMES_MAP_rend(self)
16488
16489 def clear(self):
16490 r"""clear(NETNAMES_MAP self)"""
16491 return _pcbnew.NETNAMES_MAP_clear(self)
16492
16493 def get_allocator(self):
16494 r"""get_allocator(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::allocator_type"""
16495 return _pcbnew.NETNAMES_MAP_get_allocator(self)
16496
16497 def count(self, x):
16498 r"""count(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
16499 return _pcbnew.NETNAMES_MAP_count(self, x)
16500
16501 def erase(self, *args):
16502 r"""
16503 erase(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type
16504 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator position)
16505 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator first, std::map< wxString,NETINFO_ITEM * >::iterator last)
16506 """
16507 return _pcbnew.NETNAMES_MAP_erase(self, *args)
16508
16509 def find(self, x):
16510 r"""find(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16511 return _pcbnew.NETNAMES_MAP_find(self, x)
16512
16513 def lower_bound(self, x):
16514 r"""lower_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16515 return _pcbnew.NETNAMES_MAP_lower_bound(self, x)
16516
16517 def upper_bound(self, x):
16518 r"""upper_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16519 return _pcbnew.NETNAMES_MAP_upper_bound(self, x)
16520 __swig_destroy__ = _pcbnew.delete_NETNAMES_MAP
16521
16522# Register NETNAMES_MAP in _pcbnew:
16523_pcbnew.NETNAMES_MAP_swigregister(NETNAMES_MAP)
16524
16526 r"""Proxy of C++ std::map< int,NETINFO_ITEM * > class."""
16527
16528 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16529 __repr__ = _swig_repr
16530
16531 def iterator(self):
16532 r"""iterator(NETCODES_MAP self) -> SwigPyIterator"""
16533 return _pcbnew.NETCODES_MAP_iterator(self)
16534 def __iter__(self):
16535 return self.iterator()
16536
16537 def __nonzero__(self):
16538 r"""__nonzero__(NETCODES_MAP self) -> bool"""
16539 return _pcbnew.NETCODES_MAP___nonzero__(self)
16540
16541 def __bool__(self):
16542 r"""__bool__(NETCODES_MAP self) -> bool"""
16543 return _pcbnew.NETCODES_MAP___bool__(self)
16544
16545 def __len__(self):
16546 r"""__len__(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
16547 return _pcbnew.NETCODES_MAP___len__(self)
16548 def __iter__(self):
16549 return self.key_iterator()
16550 def iterkeys(self):
16551 return self.key_iterator()
16552 def itervalues(self):
16553 return self.value_iterator()
16554 def iteritems(self):
16555 return self.iterator()
16556
16557 def __getitem__(self, key):
16558 r"""__getitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> NETINFO_ITEM"""
16559 return _pcbnew.NETCODES_MAP___getitem__(self, key)
16560
16561 def __delitem__(self, key):
16562 r"""__delitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)"""
16563 return _pcbnew.NETCODES_MAP___delitem__(self, key)
16564
16565 def has_key(self, key):
16566 r"""has_key(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
16567 return _pcbnew.NETCODES_MAP_has_key(self, key)
16568
16569 def keys(self):
16570 r"""keys(NETCODES_MAP self) -> PyObject *"""
16571 return _pcbnew.NETCODES_MAP_keys(self)
16572
16573 def values(self):
16574 r"""values(NETCODES_MAP self) -> PyObject *"""
16575 return _pcbnew.NETCODES_MAP_values(self)
16576
16577 def items(self):
16578 r"""items(NETCODES_MAP self) -> PyObject *"""
16579 return _pcbnew.NETCODES_MAP_items(self)
16580
16581 def __contains__(self, key):
16582 r"""__contains__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
16583 return _pcbnew.NETCODES_MAP___contains__(self, key)
16584
16585 def key_iterator(self):
16586 r"""key_iterator(NETCODES_MAP self) -> SwigPyIterator"""
16587 return _pcbnew.NETCODES_MAP_key_iterator(self)
16588
16590 r"""value_iterator(NETCODES_MAP self) -> SwigPyIterator"""
16591 return _pcbnew.NETCODES_MAP_value_iterator(self)
16592
16593 def __setitem__(self, *args):
16594 r"""
16595 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)
16596 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key, NETINFO_ITEM x)
16597 """
16598 return _pcbnew.NETCODES_MAP___setitem__(self, *args)
16599
16600 def asdict(self):
16601 r"""asdict(NETCODES_MAP self) -> PyObject *"""
16602 return _pcbnew.NETCODES_MAP_asdict(self)
16603
16604 def __init__(self, *args):
16605 r"""
16606 __init__(NETCODES_MAP self, std::less< int > const & other) -> NETCODES_MAP
16607 __init__(NETCODES_MAP self) -> NETCODES_MAP
16608 __init__(NETCODES_MAP self, NETCODES_MAP other) -> NETCODES_MAP
16609 """
16610 _pcbnew.NETCODES_MAP_swiginit(self, _pcbnew.new_NETCODES_MAP(*args))
16611
16612 def empty(self):
16613 r"""empty(NETCODES_MAP self) -> bool"""
16614 return _pcbnew.NETCODES_MAP_empty(self)
16615
16616 def size(self):
16617 r"""size(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
16618 return _pcbnew.NETCODES_MAP_size(self)
16619
16620 def swap(self, v):
16621 r"""swap(NETCODES_MAP self, NETCODES_MAP v)"""
16622 return _pcbnew.NETCODES_MAP_swap(self, v)
16623
16624 def begin(self):
16625 r"""begin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
16626 return _pcbnew.NETCODES_MAP_begin(self)
16627
16628 def end(self):
16629 r"""end(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
16630 return _pcbnew.NETCODES_MAP_end(self)
16631
16632 def rbegin(self):
16633 r"""rbegin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
16634 return _pcbnew.NETCODES_MAP_rbegin(self)
16635
16636 def rend(self):
16637 r"""rend(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
16638 return _pcbnew.NETCODES_MAP_rend(self)
16639
16640 def clear(self):
16641 r"""clear(NETCODES_MAP self)"""
16642 return _pcbnew.NETCODES_MAP_clear(self)
16643
16644 def get_allocator(self):
16645 r"""get_allocator(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::allocator_type"""
16646 return _pcbnew.NETCODES_MAP_get_allocator(self)
16647
16648 def count(self, x):
16649 r"""count(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type"""
16650 return _pcbnew.NETCODES_MAP_count(self, x)
16651
16652 def erase(self, *args):
16653 r"""
16654 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type
16655 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator position)
16656 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator first, std::map< int,NETINFO_ITEM * >::iterator last)
16657 """
16658 return _pcbnew.NETCODES_MAP_erase(self, *args)
16659
16660 def find(self, x):
16661 r"""find(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
16662 return _pcbnew.NETCODES_MAP_find(self, x)
16663
16664 def lower_bound(self, x):
16665 r"""lower_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
16666 return _pcbnew.NETCODES_MAP_lower_bound(self, x)
16667
16668 def upper_bound(self, x):
16669 r"""upper_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
16670 return _pcbnew.NETCODES_MAP_upper_bound(self, x)
16671 __swig_destroy__ = _pcbnew.delete_NETCODES_MAP
16672
16673# Register NETCODES_MAP in _pcbnew:
16674_pcbnew.NETCODES_MAP_swigregister(NETCODES_MAP)
16675
16677 r"""Proxy of C++ NETINFO_LIST class."""
16678
16679 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16680 __repr__ = _swig_repr
16681
16682 def __init__(self, aParent):
16683 r"""__init__(NETINFO_LIST self, BOARD aParent) -> NETINFO_LIST"""
16684 _pcbnew.NETINFO_LIST_swiginit(self, _pcbnew.new_NETINFO_LIST(aParent))
16685 __swig_destroy__ = _pcbnew.delete_NETINFO_LIST
16686
16687 def GetNetItem(self, *args):
16688 r"""
16689 GetNetItem(NETINFO_LIST self, int aNetCode) -> NETINFO_ITEM
16690 GetNetItem(NETINFO_LIST self, wxString aNetName) -> NETINFO_ITEM
16691 """
16692 return _pcbnew.NETINFO_LIST_GetNetItem(self, *args)
16693
16694 def GetNetCount(self):
16695 r"""GetNetCount(NETINFO_LIST self) -> unsigned int"""
16696 return _pcbnew.NETINFO_LIST_GetNetCount(self)
16697
16698 def AppendNet(self, aNewElement):
16699 r"""AppendNet(NETINFO_LIST self, NETINFO_ITEM aNewElement)"""
16700 return _pcbnew.NETINFO_LIST_AppendNet(self, aNewElement)
16701
16702 def RemoveNet(self, aNet):
16703 r"""RemoveNet(NETINFO_LIST self, NETINFO_ITEM aNet)"""
16704 return _pcbnew.NETINFO_LIST_RemoveNet(self, aNet)
16705
16707 r"""RemoveUnusedNets(NETINFO_LIST self)"""
16708 return _pcbnew.NETINFO_LIST_RemoveUnusedNets(self)
16709
16710 def NetsByName(self):
16711 r"""NetsByName(NETINFO_LIST self) -> NETNAMES_MAP"""
16712 return _pcbnew.NETINFO_LIST_NetsByName(self)
16713
16714 def NetsByNetcode(self):
16715 r"""NetsByNetcode(NETINFO_LIST self) -> NETCODES_MAP"""
16716 return _pcbnew.NETINFO_LIST_NetsByNetcode(self)
16717
16718 @staticmethod
16720 r"""OrphanedItem() -> NETINFO_ITEM"""
16721 return _pcbnew.NETINFO_LIST_OrphanedItem()
16722
16723 def GetParent(self):
16724 r"""GetParent(NETINFO_LIST self) -> BOARD"""
16725 return _pcbnew.NETINFO_LIST_GetParent(self)
16726
16727# Register NETINFO_LIST in _pcbnew:
16728_pcbnew.NETINFO_LIST_swigregister(NETINFO_LIST)
16729NETINFO_LIST.UNCONNECTED = _pcbnew.cvar.NETINFO_LIST_UNCONNECTED
16730NETINFO_LIST.ORPHANED = _pcbnew.cvar.NETINFO_LIST_ORPHANED
16731
16733 r"""NETINFO_LIST_OrphanedItem() -> NETINFO_ITEM"""
16734 return _pcbnew.NETINFO_LIST_OrphanedItem()
16735
16737 r"""Proxy of C++ std::set< wxString > class."""
16738
16739 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16740 __repr__ = _swig_repr
16741
16742 def iterator(self):
16743 r"""iterator(STRINGSET self) -> SwigPyIterator"""
16744 return _pcbnew.STRINGSET_iterator(self)
16745 def __iter__(self):
16746 return self.iterator()
16747
16748 def __nonzero__(self):
16749 r"""__nonzero__(STRINGSET self) -> bool"""
16750 return _pcbnew.STRINGSET___nonzero__(self)
16751
16752 def __bool__(self):
16753 r"""__bool__(STRINGSET self) -> bool"""
16754 return _pcbnew.STRINGSET___bool__(self)
16755
16756 def __len__(self):
16757 r"""__len__(STRINGSET self) -> std::set< wxString >::size_type"""
16758 return _pcbnew.STRINGSET___len__(self)
16759
16760 def append(self, x):
16761 r"""append(STRINGSET self, wxString x)"""
16762 return _pcbnew.STRINGSET_append(self, x)
16763
16764 def __contains__(self, x):
16765 r"""__contains__(STRINGSET self, wxString x) -> bool"""
16766 return _pcbnew.STRINGSET___contains__(self, x)
16767
16768 def __getitem__(self, i):
16769 r"""__getitem__(STRINGSET self, std::set< wxString >::difference_type i) -> wxString"""
16770 return _pcbnew.STRINGSET___getitem__(self, i)
16771
16772 def add(self, x):
16773 r"""add(STRINGSET self, wxString x)"""
16774 return _pcbnew.STRINGSET_add(self, x)
16775
16776 def discard(self, x):
16777 r"""discard(STRINGSET self, wxString x)"""
16778 return _pcbnew.STRINGSET_discard(self, x)
16779
16780 def __init__(self, *args):
16781 r"""
16782 __init__(STRINGSET self, std::less< wxString > const & other) -> STRINGSET
16783 __init__(STRINGSET self) -> STRINGSET
16784 __init__(STRINGSET self, STRINGSET other) -> STRINGSET
16785 """
16786 _pcbnew.STRINGSET_swiginit(self, _pcbnew.new_STRINGSET(*args))
16787
16788 def empty(self):
16789 r"""empty(STRINGSET self) -> bool"""
16790 return _pcbnew.STRINGSET_empty(self)
16791
16792 def size(self):
16793 r"""size(STRINGSET self) -> std::set< wxString >::size_type"""
16794 return _pcbnew.STRINGSET_size(self)
16795
16796 def clear(self):
16797 r"""clear(STRINGSET self)"""
16798 return _pcbnew.STRINGSET_clear(self)
16799
16800 def swap(self, v):
16801 r"""swap(STRINGSET self, STRINGSET v)"""
16802 return _pcbnew.STRINGSET_swap(self, v)
16803
16804 def count(self, x):
16805 r"""count(STRINGSET self, wxString x) -> std::set< wxString >::size_type"""
16806 return _pcbnew.STRINGSET_count(self, x)
16807
16808 def begin(self):
16809 r"""begin(STRINGSET self) -> std::set< wxString >::iterator"""
16810 return _pcbnew.STRINGSET_begin(self)
16811
16812 def end(self):
16813 r"""end(STRINGSET self) -> std::set< wxString >::iterator"""
16814 return _pcbnew.STRINGSET_end(self)
16815
16816 def rbegin(self):
16817 r"""rbegin(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
16818 return _pcbnew.STRINGSET_rbegin(self)
16819
16820 def rend(self):
16821 r"""rend(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
16822 return _pcbnew.STRINGSET_rend(self)
16823
16824 def erase(self, *args):
16825 r"""
16826 erase(STRINGSET self, wxString x) -> std::set< wxString >::size_type
16827 erase(STRINGSET self, std::set< wxString >::iterator pos)
16828 erase(STRINGSET self, std::set< wxString >::iterator first, std::set< wxString >::iterator last)
16829 """
16830 return _pcbnew.STRINGSET_erase(self, *args)
16831
16832 def find(self, x):
16833 r"""find(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
16834 return _pcbnew.STRINGSET_find(self, x)
16835
16836 def lower_bound(self, x):
16837 r"""lower_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
16838 return _pcbnew.STRINGSET_lower_bound(self, x)
16839
16840 def upper_bound(self, x):
16841 r"""upper_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
16842 return _pcbnew.STRINGSET_upper_bound(self, x)
16843
16844 def equal_range(self, x):
16845 r"""equal_range(STRINGSET self, wxString x) -> std::pair< std::set< wxString >::iterator,std::set< wxString >::iterator >"""
16846 return _pcbnew.STRINGSET_equal_range(self, x)
16847
16848 def insert(self, __x):
16849 r"""insert(STRINGSET self, wxString __x) -> std::pair< std::set< wxString >::iterator,bool >"""
16850 return _pcbnew.STRINGSET_insert(self, __x)
16851 __swig_destroy__ = _pcbnew.delete_STRINGSET
16852
16853# Register STRINGSET in _pcbnew:
16854_pcbnew.STRINGSET_swigregister(STRINGSET)
16855
16857 r"""Proxy of C++ NETCLASS class."""
16858
16859 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16860 __repr__ = _swig_repr
16861
16862 def __init__(self, aName):
16863 r"""__init__(NETCLASS self, wxString aName) -> NETCLASS"""
16864 _pcbnew.NETCLASS_swiginit(self, _pcbnew.new_NETCLASS(aName))
16865 __swig_destroy__ = _pcbnew.delete_NETCLASS
16866
16867 def GetClass(self):
16868 r"""GetClass(NETCLASS self) -> wxString"""
16869 return _pcbnew.NETCLASS_GetClass(self)
16870
16871 def GetName(self):
16872 r"""GetName(NETCLASS self) -> wxString"""
16873 return _pcbnew.NETCLASS_GetName(self)
16874
16875 def SetName(self, aName):
16876 r"""SetName(NETCLASS self, wxString aName)"""
16877 return _pcbnew.NETCLASS_SetName(self, aName)
16878
16880 r"""GetDescription(NETCLASS self) -> wxString"""
16881 return _pcbnew.NETCLASS_GetDescription(self)
16882
16883 def SetDescription(self, aDesc):
16884 r"""SetDescription(NETCLASS self, wxString aDesc)"""
16885 return _pcbnew.NETCLASS_SetDescription(self, aDesc)
16886
16887 def HasClearance(self):
16888 r"""HasClearance(NETCLASS self) -> bool"""
16889 return _pcbnew.NETCLASS_HasClearance(self)
16890
16891 def GetClearance(self):
16892 r"""GetClearance(NETCLASS self) -> int"""
16893 return _pcbnew.NETCLASS_GetClearance(self)
16894
16895 def SetClearance(self, aClearance):
16896 r"""SetClearance(NETCLASS self, int aClearance)"""
16897 return _pcbnew.NETCLASS_SetClearance(self, aClearance)
16898
16899 def HasTrackWidth(self):
16900 r"""HasTrackWidth(NETCLASS self) -> bool"""
16901 return _pcbnew.NETCLASS_HasTrackWidth(self)
16902
16903 def GetTrackWidth(self):
16904 r"""GetTrackWidth(NETCLASS self) -> int"""
16905 return _pcbnew.NETCLASS_GetTrackWidth(self)
16906
16907 def SetTrackWidth(self, aWidth):
16908 r"""SetTrackWidth(NETCLASS self, int aWidth)"""
16909 return _pcbnew.NETCLASS_SetTrackWidth(self, aWidth)
16910
16912 r"""HasViaDiameter(NETCLASS self) -> bool"""
16913 return _pcbnew.NETCLASS_HasViaDiameter(self)
16914
16916 r"""GetViaDiameter(NETCLASS self) -> int"""
16917 return _pcbnew.NETCLASS_GetViaDiameter(self)
16918
16919 def SetViaDiameter(self, aDia):
16920 r"""SetViaDiameter(NETCLASS self, int aDia)"""
16921 return _pcbnew.NETCLASS_SetViaDiameter(self, aDia)
16922
16923 def HasViaDrill(self):
16924 r"""HasViaDrill(NETCLASS self) -> int"""
16925 return _pcbnew.NETCLASS_HasViaDrill(self)
16926
16927 def GetViaDrill(self):
16928 r"""GetViaDrill(NETCLASS self) -> int"""
16929 return _pcbnew.NETCLASS_GetViaDrill(self)
16930
16931 def SetViaDrill(self, aSize):
16932 r"""SetViaDrill(NETCLASS self, int aSize)"""
16933 return _pcbnew.NETCLASS_SetViaDrill(self, aSize)
16934
16936 r"""HasuViaDiameter(NETCLASS self) -> bool"""
16937 return _pcbnew.NETCLASS_HasuViaDiameter(self)
16938
16940 r"""GetuViaDiameter(NETCLASS self) -> int"""
16941 return _pcbnew.NETCLASS_GetuViaDiameter(self)
16942
16943 def SetuViaDiameter(self, aSize):
16944 r"""SetuViaDiameter(NETCLASS self, int aSize)"""
16945 return _pcbnew.NETCLASS_SetuViaDiameter(self, aSize)
16946
16947 def HasuViaDrill(self):
16948 r"""HasuViaDrill(NETCLASS self) -> bool"""
16949 return _pcbnew.NETCLASS_HasuViaDrill(self)
16950
16951 def GetuViaDrill(self):
16952 r"""GetuViaDrill(NETCLASS self) -> int"""
16953 return _pcbnew.NETCLASS_GetuViaDrill(self)
16954
16955 def SetuViaDrill(self, aSize):
16956 r"""SetuViaDrill(NETCLASS self, int aSize)"""
16957 return _pcbnew.NETCLASS_SetuViaDrill(self, aSize)
16958
16960 r"""HasDiffPairWidth(NETCLASS self) -> bool"""
16961 return _pcbnew.NETCLASS_HasDiffPairWidth(self)
16962
16964 r"""GetDiffPairWidth(NETCLASS self) -> int"""
16965 return _pcbnew.NETCLASS_GetDiffPairWidth(self)
16966
16967 def SetDiffPairWidth(self, aSize):
16968 r"""SetDiffPairWidth(NETCLASS self, int aSize)"""
16969 return _pcbnew.NETCLASS_SetDiffPairWidth(self, aSize)
16970
16972 r"""HasDiffPairGap(NETCLASS self) -> bool"""
16973 return _pcbnew.NETCLASS_HasDiffPairGap(self)
16974
16976 r"""GetDiffPairGap(NETCLASS self) -> int"""
16977 return _pcbnew.NETCLASS_GetDiffPairGap(self)
16978
16979 def SetDiffPairGap(self, aSize):
16980 r"""SetDiffPairGap(NETCLASS self, int aSize)"""
16981 return _pcbnew.NETCLASS_SetDiffPairGap(self, aSize)
16982
16984 r"""HasDiffPairViaGap(NETCLASS self) -> bool"""
16985 return _pcbnew.NETCLASS_HasDiffPairViaGap(self)
16986
16988 r"""GetDiffPairViaGap(NETCLASS self) -> int"""
16989 return _pcbnew.NETCLASS_GetDiffPairViaGap(self)
16990
16991 def SetDiffPairViaGap(self, aSize):
16992 r"""SetDiffPairViaGap(NETCLASS self, int aSize)"""
16993 return _pcbnew.NETCLASS_SetDiffPairViaGap(self, aSize)
16994
16995 def GetPcbColor(self):
16996 r"""GetPcbColor(NETCLASS self) -> COLOR4D"""
16997 return _pcbnew.NETCLASS_GetPcbColor(self)
16998
16999 def SetPcbColor(self, aColor):
17000 r"""SetPcbColor(NETCLASS self, COLOR4D aColor)"""
17001 return _pcbnew.NETCLASS_SetPcbColor(self, aColor)
17002
17003 def GetWireWidth(self):
17004 r"""GetWireWidth(NETCLASS self) -> int"""
17005 return _pcbnew.NETCLASS_GetWireWidth(self)
17006
17007 def SetWireWidth(self, aWidth):
17008 r"""SetWireWidth(NETCLASS self, int aWidth)"""
17009 return _pcbnew.NETCLASS_SetWireWidth(self, aWidth)
17010
17011 def GetBusWidth(self):
17012 r"""GetBusWidth(NETCLASS self) -> int"""
17013 return _pcbnew.NETCLASS_GetBusWidth(self)
17014
17015 def SetBusWidth(self, aWidth):
17016 r"""SetBusWidth(NETCLASS self, int aWidth)"""
17017 return _pcbnew.NETCLASS_SetBusWidth(self, aWidth)
17018
17020 r"""GetSchematicColor(NETCLASS self) -> COLOR4D"""
17021 return _pcbnew.NETCLASS_GetSchematicColor(self)
17022
17023 def SetSchematicColor(self, aColor):
17024 r"""SetSchematicColor(NETCLASS self, COLOR4D aColor)"""
17025 return _pcbnew.NETCLASS_SetSchematicColor(self, aColor)
17026
17027 def GetLineStyle(self):
17028 r"""GetLineStyle(NETCLASS self) -> int"""
17029 return _pcbnew.NETCLASS_GetLineStyle(self)
17030
17031 def SetLineStyle(self, aStyle):
17032 r"""SetLineStyle(NETCLASS self, int aStyle)"""
17033 return _pcbnew.NETCLASS_SetLineStyle(self, aStyle)
17034
17035# Register NETCLASS in _pcbnew:
17036_pcbnew.NETCLASS_swigregister(NETCLASS)
17037NETCLASS.Default = _pcbnew.cvar.NETCLASS_Default
17038
17040 r"""Proxy of C++ PCB_GROUP class."""
17041
17042 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17043 __repr__ = _swig_repr
17044
17045 def __init__(self, aParent):
17046 r"""__init__(PCB_GROUP self, BOARD_ITEM aParent) -> PCB_GROUP"""
17047 _pcbnew.PCB_GROUP_swiginit(self, _pcbnew.new_PCB_GROUP(aParent))
17048
17049 @staticmethod
17050 def ClassOf(aItem):
17051 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17052 return _pcbnew.PCB_GROUP_ClassOf(aItem)
17053
17054 def GetName(self):
17055 r"""GetName(PCB_GROUP self) -> wxString"""
17056 return _pcbnew.PCB_GROUP_GetName(self)
17057
17058 def SetName(self, aName):
17059 r"""SetName(PCB_GROUP self, wxString aName)"""
17060 return _pcbnew.PCB_GROUP_SetName(self, aName)
17061
17062 def GetItems(self, *args):
17063 r"""
17064 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * >
17065 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * > const &
17066 """
17067 return _pcbnew.PCB_GROUP_GetItems(self, *args)
17068
17069 def AddItem(self, aItem):
17070 r"""AddItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
17071 return _pcbnew.PCB_GROUP_AddItem(self, aItem)
17072
17073 def RemoveItem(self, aItem):
17074 r"""RemoveItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
17075 return _pcbnew.PCB_GROUP_RemoveItem(self, aItem)
17076
17077 def RemoveAll(self):
17078 r"""RemoveAll(PCB_GROUP self)"""
17079 return _pcbnew.PCB_GROUP_RemoveAll(self)
17080
17081 @staticmethod
17082 def TopLevelGroup(aItem, aScope, isFootprintEditor):
17083 r"""TopLevelGroup(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> PCB_GROUP"""
17084 return _pcbnew.PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
17085
17086 @staticmethod
17087 def WithinScope(aItem, aScope, isFootprintEditor):
17088 r"""WithinScope(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> bool"""
17089 return _pcbnew.PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
17090
17091 def SetLayerRecursive(self, aLayer, aDepth):
17092 r"""SetLayerRecursive(PCB_GROUP self, PCB_LAYER_ID aLayer, int aDepth)"""
17093 return _pcbnew.PCB_GROUP_SetLayerRecursive(self, aLayer, aDepth)
17094
17095 def DeepClone(self):
17096 r"""DeepClone(PCB_GROUP self) -> PCB_GROUP"""
17097 return _pcbnew.PCB_GROUP_DeepClone(self)
17098
17099 def DeepDuplicate(self):
17100 r"""DeepDuplicate(PCB_GROUP self) -> PCB_GROUP"""
17101 return _pcbnew.PCB_GROUP_DeepDuplicate(self)
17102
17103 def HitTest(self, *args):
17104 r"""
17105 HitTest(PCB_GROUP self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17106 HitTest(PCB_GROUP self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17107 """
17108 return _pcbnew.PCB_GROUP_HitTest(self, *args)
17109
17110 def GetEffectiveShape(self, *args):
17111 r"""GetEffectiveShape(PCB_GROUP self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17112 return _pcbnew.PCB_GROUP_GetEffectiveShape(self, *args)
17113
17114 def ViewGetLOD(self, aLayer, aView):
17115 r"""ViewGetLOD(PCB_GROUP self, int aLayer, KIGFX::VIEW * aView) -> double"""
17116 return _pcbnew.PCB_GROUP_ViewGetLOD(self, aLayer, aView)
17117
17118 def AddChildrenToCommit(self, aCommit):
17119 r"""AddChildrenToCommit(PCB_GROUP self, BOARD_COMMIT & aCommit)"""
17120 return _pcbnew.PCB_GROUP_AddChildrenToCommit(self, aCommit)
17121
17122 def RunOnChildren(self, aFunction):
17123 r"""RunOnChildren(PCB_GROUP self, std::function< void (BOARD_ITEM *) > const & aFunction)"""
17124 return _pcbnew.PCB_GROUP_RunOnChildren(self, aFunction)
17125
17126 def RunOnDescendants(self, aFunction):
17127 r"""RunOnDescendants(PCB_GROUP self, std::function< void (BOARD_ITEM *) > const & aFunction)"""
17128 return _pcbnew.PCB_GROUP_RunOnDescendants(self, aFunction)
17129
17130 @staticmethod
17132 r"""IsGroupableType(KICAD_T aType) -> bool"""
17133 return _pcbnew.PCB_GROUP_IsGroupableType(aType)
17134
17135 def GetItemsDeque(self):
17136 r"""GetItemsDeque(PCB_GROUP self) -> DRAWINGS"""
17137 return _pcbnew.PCB_GROUP_GetItemsDeque(self)
17138
17139 def GetItems(self):
17140 return [item.Cast() for item in self.GetItemsDeque()]
17141
17142 __swig_destroy__ = _pcbnew.delete_PCB_GROUP
17143
17144# Register PCB_GROUP in _pcbnew:
17145_pcbnew.PCB_GROUP_swigregister(PCB_GROUP)
17146
17148 r"""PCB_GROUP_ClassOf(EDA_ITEM aItem) -> bool"""
17149 return _pcbnew.PCB_GROUP_ClassOf(aItem)
17150
17151def PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor):
17152 r"""PCB_GROUP_TopLevelGroup(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> PCB_GROUP"""
17153 return _pcbnew.PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
17154
17155def PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor):
17156 r"""PCB_GROUP_WithinScope(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> bool"""
17157 return _pcbnew.PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
17158
17160 r"""PCB_GROUP_IsGroupableType(KICAD_T aType) -> bool"""
17161 return _pcbnew.PCB_GROUP_IsGroupableType(aType)
17162
17164 r"""Proxy of C++ PCB_BITMAP class."""
17165
17166 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17167 __repr__ = _swig_repr
17168
17169 def __init__(self, *args):
17170 r"""
17171 __init__(PCB_BITMAP self, BOARD_ITEM aParent, VECTOR2I pos=VECTOR2I( 0, 0 ), PCB_LAYER_ID aLayer=F_Cu) -> PCB_BITMAP
17172 __init__(PCB_BITMAP self, PCB_BITMAP aPcbBitmap) -> PCB_BITMAP
17173 """
17174 _pcbnew.PCB_BITMAP_swiginit(self, _pcbnew.new_PCB_BITMAP(*args))
17175 __swig_destroy__ = _pcbnew.delete_PCB_BITMAP
17176
17177 def GetImage(self):
17178 r"""GetImage(PCB_BITMAP self) -> BITMAP_BASE const *"""
17179 return _pcbnew.PCB_BITMAP_GetImage(self)
17180
17181 def MutableImage(self):
17182 r"""MutableImage(PCB_BITMAP self) -> BITMAP_BASE *"""
17183 return _pcbnew.PCB_BITMAP_MutableImage(self)
17184
17185 def SetImage(self, aImage):
17186 r"""SetImage(PCB_BITMAP self, wxImage * aImage)"""
17187 return _pcbnew.PCB_BITMAP_SetImage(self, aImage)
17188
17189 def GetImageScale(self):
17190 r"""GetImageScale(PCB_BITMAP self) -> double"""
17191 return _pcbnew.PCB_BITMAP_GetImageScale(self)
17192
17193 def SetImageScale(self, aScale):
17194 r"""SetImageScale(PCB_BITMAP self, double aScale)"""
17195 return _pcbnew.PCB_BITMAP_SetImageScale(self, aScale)
17196
17197 @staticmethod
17198 def ClassOf(aItem):
17199 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17200 return _pcbnew.PCB_BITMAP_ClassOf(aItem)
17201
17202 def GetSize(self):
17203 r"""GetSize(PCB_BITMAP self) -> VECTOR2I"""
17204 return _pcbnew.PCB_BITMAP_GetSize(self)
17205
17206 def ViewGetLOD(self, aLayer, aView):
17207 r"""ViewGetLOD(PCB_BITMAP self, int aLayer, KIGFX::VIEW * aView) -> double"""
17208 return _pcbnew.PCB_BITMAP_ViewGetLOD(self, aLayer, aView)
17209
17210 def GetEffectiveShape(self, *args):
17211 r"""GetEffectiveShape(PCB_BITMAP self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17212 return _pcbnew.PCB_BITMAP_GetEffectiveShape(self, *args)
17213
17214 def ReadImageFile(self, aFullFilename):
17215 r"""ReadImageFile(PCB_BITMAP self, wxString aFullFilename) -> bool"""
17216 return _pcbnew.PCB_BITMAP_ReadImageFile(self, aFullFilename)
17217
17218 def HitTest(self, *args):
17219 r"""
17220 HitTest(PCB_BITMAP self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17221 HitTest(PCB_BITMAP self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17222 """
17223 return _pcbnew.PCB_BITMAP_HitTest(self, *args)
17224
17225# Register PCB_BITMAP in _pcbnew:
17226_pcbnew.PCB_BITMAP_swigregister(PCB_BITMAP)
17227
17229 r"""PCB_BITMAP_ClassOf(EDA_ITEM aItem) -> bool"""
17230 return _pcbnew.PCB_BITMAP_ClassOf(aItem)
17231
17233 r"""Proxy of C++ std::vector< VIA_DIMENSION > class."""
17234
17235 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17236 __repr__ = _swig_repr
17237
17238 def iterator(self):
17239 r"""iterator(VIA_DIMENSION_Vector self) -> SwigPyIterator"""
17240 return _pcbnew.VIA_DIMENSION_Vector_iterator(self)
17241 def __iter__(self):
17242 return self.iterator()
17243
17244 def __nonzero__(self):
17245 r"""__nonzero__(VIA_DIMENSION_Vector self) -> bool"""
17246 return _pcbnew.VIA_DIMENSION_Vector___nonzero__(self)
17247
17248 def __bool__(self):
17249 r"""__bool__(VIA_DIMENSION_Vector self) -> bool"""
17250 return _pcbnew.VIA_DIMENSION_Vector___bool__(self)
17251
17252 def __len__(self):
17253 r"""__len__(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
17254 return _pcbnew.VIA_DIMENSION_Vector___len__(self)
17255
17256 def __getslice__(self, i, j):
17257 r"""__getslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j) -> VIA_DIMENSION_Vector"""
17258 return _pcbnew.VIA_DIMENSION_Vector___getslice__(self, i, j)
17259
17260 def __setslice__(self, *args):
17261 r"""
17262 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)
17263 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j, VIA_DIMENSION_Vector v)
17264 """
17265 return _pcbnew.VIA_DIMENSION_Vector___setslice__(self, *args)
17266
17267 def __delslice__(self, i, j):
17268 r"""__delslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)"""
17269 return _pcbnew.VIA_DIMENSION_Vector___delslice__(self, i, j)
17270
17271 def __delitem__(self, *args):
17272 r"""
17273 __delitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i)
17274 __delitem__(VIA_DIMENSION_Vector self, PySliceObject * slice)
17275 """
17276 return _pcbnew.VIA_DIMENSION_Vector___delitem__(self, *args)
17277
17278 def __getitem__(self, *args):
17279 r"""
17280 __getitem__(VIA_DIMENSION_Vector self, PySliceObject * slice) -> VIA_DIMENSION_Vector
17281 __getitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i) -> VIA_DIMENSION
17282 """
17283 return _pcbnew.VIA_DIMENSION_Vector___getitem__(self, *args)
17284
17285 def __setitem__(self, *args):
17286 r"""
17287 __setitem__(VIA_DIMENSION_Vector self, PySliceObject * slice, VIA_DIMENSION_Vector v)
17288 __setitem__(VIA_DIMENSION_Vector self, PySliceObject * slice)
17289 __setitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, VIA_DIMENSION x)
17290 """
17291 return _pcbnew.VIA_DIMENSION_Vector___setitem__(self, *args)
17292
17293 def pop(self):
17294 r"""pop(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
17295 return _pcbnew.VIA_DIMENSION_Vector_pop(self)
17296
17297 def append(self, x):
17298 r"""append(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
17299 return _pcbnew.VIA_DIMENSION_Vector_append(self, x)
17300
17301 def empty(self):
17302 r"""empty(VIA_DIMENSION_Vector self) -> bool"""
17303 return _pcbnew.VIA_DIMENSION_Vector_empty(self)
17304
17305 def size(self):
17306 r"""size(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
17307 return _pcbnew.VIA_DIMENSION_Vector_size(self)
17308
17309 def swap(self, v):
17310 r"""swap(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector v)"""
17311 return _pcbnew.VIA_DIMENSION_Vector_swap(self, v)
17312
17313 def begin(self):
17314 r"""begin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
17315 return _pcbnew.VIA_DIMENSION_Vector_begin(self)
17316
17317 def end(self):
17318 r"""end(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
17319 return _pcbnew.VIA_DIMENSION_Vector_end(self)
17320
17321 def rbegin(self):
17322 r"""rbegin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
17323 return _pcbnew.VIA_DIMENSION_Vector_rbegin(self)
17324
17325 def rend(self):
17326 r"""rend(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
17327 return _pcbnew.VIA_DIMENSION_Vector_rend(self)
17328
17329 def clear(self):
17330 r"""clear(VIA_DIMENSION_Vector self)"""
17331 return _pcbnew.VIA_DIMENSION_Vector_clear(self)
17332
17333 def get_allocator(self):
17334 r"""get_allocator(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::allocator_type"""
17335 return _pcbnew.VIA_DIMENSION_Vector_get_allocator(self)
17336
17337 def pop_back(self):
17338 r"""pop_back(VIA_DIMENSION_Vector self)"""
17339 return _pcbnew.VIA_DIMENSION_Vector_pop_back(self)
17340
17341 def erase(self, *args):
17342 r"""
17343 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos) -> std::vector< VIA_DIMENSION >::iterator
17344 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator first, std::vector< VIA_DIMENSION >::iterator last) -> std::vector< VIA_DIMENSION >::iterator
17345 """
17346 return _pcbnew.VIA_DIMENSION_Vector_erase(self, *args)
17347
17348 def __init__(self, *args):
17349 r"""
17350 __init__(VIA_DIMENSION_Vector self) -> VIA_DIMENSION_Vector
17351 __init__(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector other) -> VIA_DIMENSION_Vector
17352 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size) -> VIA_DIMENSION_Vector
17353 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size, VIA_DIMENSION value) -> VIA_DIMENSION_Vector
17354 """
17355 _pcbnew.VIA_DIMENSION_Vector_swiginit(self, _pcbnew.new_VIA_DIMENSION_Vector(*args))
17356
17357 def push_back(self, x):
17358 r"""push_back(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
17359 return _pcbnew.VIA_DIMENSION_Vector_push_back(self, x)
17360
17361 def front(self):
17362 r"""front(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
17363 return _pcbnew.VIA_DIMENSION_Vector_front(self)
17364
17365 def back(self):
17366 r"""back(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
17367 return _pcbnew.VIA_DIMENSION_Vector_back(self)
17368
17369 def assign(self, n, x):
17370 r"""assign(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)"""
17371 return _pcbnew.VIA_DIMENSION_Vector_assign(self, n, x)
17372
17373 def resize(self, *args):
17374 r"""
17375 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size)
17376 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size, VIA_DIMENSION x)
17377 """
17378 return _pcbnew.VIA_DIMENSION_Vector_resize(self, *args)
17379
17380 def insert(self, *args):
17381 r"""
17382 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, VIA_DIMENSION x) -> std::vector< VIA_DIMENSION >::iterator
17383 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)
17384 """
17385 return _pcbnew.VIA_DIMENSION_Vector_insert(self, *args)
17386
17387 def reserve(self, n):
17388 r"""reserve(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n)"""
17389 return _pcbnew.VIA_DIMENSION_Vector_reserve(self, n)
17390
17391 def capacity(self):
17392 r"""capacity(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
17393 return _pcbnew.VIA_DIMENSION_Vector_capacity(self)
17394 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION_Vector
17395
17396# Register VIA_DIMENSION_Vector in _pcbnew:
17397_pcbnew.VIA_DIMENSION_Vector_swigregister(VIA_DIMENSION_Vector)
17398
17399DEFAULT_CHAINING_EPSILON_MM = _pcbnew.DEFAULT_CHAINING_EPSILON_MM
17400
17402 r"""Proxy of C++ PTR_PTR_CACHE_KEY class."""
17403
17404 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17405 __repr__ = _swig_repr
17406 A = property(_pcbnew.PTR_PTR_CACHE_KEY_A_get, _pcbnew.PTR_PTR_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
17407 B = property(_pcbnew.PTR_PTR_CACHE_KEY_B_get, _pcbnew.PTR_PTR_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
17408
17409 def __eq__(self, other):
17410 r"""__eq__(PTR_PTR_CACHE_KEY self, PTR_PTR_CACHE_KEY other) -> bool"""
17411 return _pcbnew.PTR_PTR_CACHE_KEY___eq__(self, other)
17412
17413 def __init__(self):
17414 r"""__init__(PTR_PTR_CACHE_KEY self) -> PTR_PTR_CACHE_KEY"""
17415 _pcbnew.PTR_PTR_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_CACHE_KEY())
17416 __swig_destroy__ = _pcbnew.delete_PTR_PTR_CACHE_KEY
17417
17418# Register PTR_PTR_CACHE_KEY in _pcbnew:
17419_pcbnew.PTR_PTR_CACHE_KEY_swigregister(PTR_PTR_CACHE_KEY)
17420
17422 r"""Proxy of C++ PTR_LAYER_CACHE_KEY class."""
17423
17424 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17425 __repr__ = _swig_repr
17426 A = property(_pcbnew.PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
17427 Layer = property(_pcbnew.PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
17428
17429 def __eq__(self, other):
17430 r"""__eq__(PTR_LAYER_CACHE_KEY self, PTR_LAYER_CACHE_KEY other) -> bool"""
17431 return _pcbnew.PTR_LAYER_CACHE_KEY___eq__(self, other)
17432
17433 def __init__(self):
17434 r"""__init__(PTR_LAYER_CACHE_KEY self) -> PTR_LAYER_CACHE_KEY"""
17435 _pcbnew.PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_LAYER_CACHE_KEY())
17436 __swig_destroy__ = _pcbnew.delete_PTR_LAYER_CACHE_KEY
17437
17438# Register PTR_LAYER_CACHE_KEY in _pcbnew:
17439_pcbnew.PTR_LAYER_CACHE_KEY_swigregister(PTR_LAYER_CACHE_KEY)
17440
17442 r"""Proxy of C++ PTR_PTR_LAYER_CACHE_KEY class."""
17443
17444 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17445 __repr__ = _swig_repr
17446 A = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
17447 B = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
17448 Layer = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
17449
17450 def __eq__(self, other):
17451 r"""__eq__(PTR_PTR_LAYER_CACHE_KEY self, PTR_PTR_LAYER_CACHE_KEY other) -> bool"""
17452 return _pcbnew.PTR_PTR_LAYER_CACHE_KEY___eq__(self, other)
17453
17454 def __init__(self):
17455 r"""__init__(PTR_PTR_LAYER_CACHE_KEY self) -> PTR_PTR_LAYER_CACHE_KEY"""
17456 _pcbnew.PTR_PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_LAYER_CACHE_KEY())
17457 __swig_destroy__ = _pcbnew.delete_PTR_PTR_LAYER_CACHE_KEY
17458
17459# Register PTR_PTR_LAYER_CACHE_KEY in _pcbnew:
17460_pcbnew.PTR_PTR_LAYER_CACHE_KEY_swigregister(PTR_PTR_LAYER_CACHE_KEY)
17461
17462LT_UNDEFINED = _pcbnew.LT_UNDEFINED
17463
17464LT_SIGNAL = _pcbnew.LT_SIGNAL
17465
17466LT_POWER = _pcbnew.LT_POWER
17467
17468LT_MIXED = _pcbnew.LT_MIXED
17469
17470LT_JUMPER = _pcbnew.LT_JUMPER
17471
17473 r"""Proxy of C++ LAYER class."""
17474
17475 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17476 __repr__ = _swig_repr
17477
17478 def __init__(self):
17479 r"""__init__(LAYER self) -> LAYER"""
17480 _pcbnew.LAYER_swiginit(self, _pcbnew.new_LAYER())
17481
17482 def clear(self):
17483 r"""clear(LAYER self)"""
17484 return _pcbnew.LAYER_clear(self)
17485 m_name = property(_pcbnew.LAYER_m_name_get, _pcbnew.LAYER_m_name_set, doc=r"""m_name : wxString""")
17486 m_userName = property(_pcbnew.LAYER_m_userName_get, _pcbnew.LAYER_m_userName_set, doc=r"""m_userName : wxString""")
17487 m_type = property(_pcbnew.LAYER_m_type_get, _pcbnew.LAYER_m_type_set, doc=r"""m_type : LAYER_T""")
17488 m_visible = property(_pcbnew.LAYER_m_visible_get, _pcbnew.LAYER_m_visible_set, doc=r"""m_visible : bool""")
17489 m_number = property(_pcbnew.LAYER_m_number_get, _pcbnew.LAYER_m_number_set, doc=r"""m_number : int""")
17490
17491 @staticmethod
17492 def ShowType(aType):
17493 r"""ShowType(LAYER_T aType) -> char const *"""
17494 return _pcbnew.LAYER_ShowType(aType)
17495
17496 @staticmethod
17497 def ParseType(aType):
17498 r"""ParseType(char const * aType) -> LAYER_T"""
17499 return _pcbnew.LAYER_ParseType(aType)
17500 __swig_destroy__ = _pcbnew.delete_LAYER
17501
17502# Register LAYER in _pcbnew:
17503_pcbnew.LAYER_swigregister(LAYER)
17504
17506 r"""LAYER_ShowType(LAYER_T aType) -> char const *"""
17507 return _pcbnew.LAYER_ShowType(aType)
17508
17510 r"""LAYER_ParseType(char const * aType) -> LAYER_T"""
17511 return _pcbnew.LAYER_ParseType(aType)
17512
17514 r"""Proxy of C++ HIGH_LIGHT_INFO class."""
17515
17516 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17517
17518 def __init__(self, *args, **kwargs):
17519 raise AttributeError("No constructor defined")
17520 __repr__ = _swig_repr
17521 __swig_destroy__ = _pcbnew.delete_HIGH_LIGHT_INFO
17522
17523# Register HIGH_LIGHT_INFO in _pcbnew:
17524_pcbnew.HIGH_LIGHT_INFO_swigregister(HIGH_LIGHT_INFO)
17525
17527 r"""Proxy of C++ BOARD_LISTENER class."""
17528
17529 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17530 __repr__ = _swig_repr
17531 __swig_destroy__ = _pcbnew.delete_BOARD_LISTENER
17532
17533 def OnBoardItemAdded(self, aBoard, aBoardItem):
17534 r"""OnBoardItemAdded(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
17535 return _pcbnew.BOARD_LISTENER_OnBoardItemAdded(self, aBoard, aBoardItem)
17536
17537 def OnBoardItemsAdded(self, aBoard, aBoardItem):
17538 r"""OnBoardItemsAdded(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
17539 return _pcbnew.BOARD_LISTENER_OnBoardItemsAdded(self, aBoard, aBoardItem)
17540
17541 def OnBoardItemRemoved(self, aBoard, aBoardItem):
17542 r"""OnBoardItemRemoved(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
17543 return _pcbnew.BOARD_LISTENER_OnBoardItemRemoved(self, aBoard, aBoardItem)
17544
17545 def OnBoardItemsRemoved(self, aBoard, aBoardItem):
17546 r"""OnBoardItemsRemoved(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
17547 return _pcbnew.BOARD_LISTENER_OnBoardItemsRemoved(self, aBoard, aBoardItem)
17548
17549 def OnBoardNetSettingsChanged(self, aBoard):
17550 r"""OnBoardNetSettingsChanged(BOARD_LISTENER self, BOARD aBoard)"""
17551 return _pcbnew.BOARD_LISTENER_OnBoardNetSettingsChanged(self, aBoard)
17552
17553 def OnBoardItemChanged(self, aBoard, aBoardItem):
17554 r"""OnBoardItemChanged(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
17555 return _pcbnew.BOARD_LISTENER_OnBoardItemChanged(self, aBoard, aBoardItem)
17556
17557 def OnBoardItemsChanged(self, aBoard, aBoardItem):
17558 r"""OnBoardItemsChanged(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
17559 return _pcbnew.BOARD_LISTENER_OnBoardItemsChanged(self, aBoard, aBoardItem)
17560
17562 r"""OnBoardHighlightNetChanged(BOARD_LISTENER self, BOARD aBoard)"""
17563 return _pcbnew.BOARD_LISTENER_OnBoardHighlightNetChanged(self, aBoard)
17564
17565 def __init__(self):
17566 r"""__init__(BOARD_LISTENER self) -> BOARD_LISTENER"""
17567 _pcbnew.BOARD_LISTENER_swiginit(self, _pcbnew.new_BOARD_LISTENER())
17568
17569# Register BOARD_LISTENER in _pcbnew:
17570_pcbnew.BOARD_LISTENER_swigregister(BOARD_LISTENER)
17571
17572BOARD_USE_NORMAL = _pcbnew.BOARD_USE_NORMAL
17573
17574BOARD_USE_FPHOLDER = _pcbnew.BOARD_USE_FPHOLDER
17575
17577 r"""Proxy of C++ BOARD class."""
17578
17579 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17580
17581 def __init__(self, *args, **kwargs):
17582 raise AttributeError("No constructor defined")
17583 __repr__ = _swig_repr
17584
17585 @staticmethod
17586 def ClassOf(aItem):
17587 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17588 return _pcbnew.BOARD_ClassOf(aItem)
17589
17590 def SetBoardUse(self, aUse):
17591 r"""SetBoardUse(BOARD self, BOARD_USE aUse)"""
17592 return _pcbnew.BOARD_SetBoardUse(self, aUse)
17593
17594 def GetBoardUse(self):
17595 r"""GetBoardUse(BOARD self) -> BOARD_USE"""
17596 return _pcbnew.BOARD_GetBoardUse(self)
17597
17599 r"""IncrementTimeStamp(BOARD self)"""
17600 return _pcbnew.BOARD_IncrementTimeStamp(self)
17601
17602 def GetTimeStamp(self):
17603 r"""GetTimeStamp(BOARD self) -> int"""
17604 return _pcbnew.BOARD_GetTimeStamp(self)
17605
17607 r"""IsFootprintHolder(BOARD self) -> bool"""
17608 return _pcbnew.BOARD_IsFootprintHolder(self)
17609
17610 def SetFileName(self, aFileName):
17611 r"""SetFileName(BOARD self, wxString aFileName)"""
17612 return _pcbnew.BOARD_SetFileName(self, aFileName)
17613
17614 def GetFileName(self):
17615 r"""GetFileName(BOARD self) -> wxString"""
17616 return _pcbnew.BOARD_GetFileName(self)
17617
17618 def Tracks(self, *args):
17619 r"""
17620 Tracks(BOARD self) -> TRACKS
17621 Tracks(BOARD self) -> TRACKS
17622 """
17623 return _pcbnew.BOARD_Tracks(self, *args)
17624
17625 def Footprints(self, *args):
17626 r"""
17627 Footprints(BOARD self) -> FOOTPRINTS
17628 Footprints(BOARD self) -> FOOTPRINTS
17629 """
17630 return _pcbnew.BOARD_Footprints(self, *args)
17631
17632 def Drawings(self, *args):
17633 r"""
17634 Drawings(BOARD self) -> DRAWINGS
17635 Drawings(BOARD self) -> DRAWINGS
17636 """
17637 return _pcbnew.BOARD_Drawings(self, *args)
17638
17639 def Zones(self, *args):
17640 r"""
17641 Zones(BOARD self) -> ZONES
17642 Zones(BOARD self) -> ZONES
17643 """
17644 return _pcbnew.BOARD_Zones(self, *args)
17645
17646 def Markers(self, *args):
17647 r"""
17648 Markers(BOARD self) -> MARKERS
17649 Markers(BOARD self) -> MARKERS
17650 """
17651 return _pcbnew.BOARD_Markers(self, *args)
17652
17653 def GetItemSet(self):
17654 r"""GetItemSet(BOARD self) -> std::set< BOARD_ITEM *,std::less< BOARD_ITEM * >,std::allocator< BOARD_ITEM * > > const"""
17655 return _pcbnew.BOARD_GetItemSet(self)
17656
17657 def Groups(self, *args):
17658 r"""
17659 Groups(BOARD self) -> GROUPS
17660 Groups(BOARD self) -> GROUPS
17661 """
17662 return _pcbnew.BOARD_Groups(self, *args)
17663
17665 r"""AllConnectedItems(BOARD self) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
17666 return _pcbnew.BOARD_AllConnectedItems(self)
17667
17668 def GetProperties(self):
17669 r"""GetProperties(BOARD self) -> MAP_STRING_STRING"""
17670 return _pcbnew.BOARD_GetProperties(self)
17671
17672 def SetProperties(self, aProps):
17673 r"""SetProperties(BOARD self, MAP_STRING_STRING aProps)"""
17674 return _pcbnew.BOARD_SetProperties(self, aProps)
17675
17676 def GetContextualTextVars(self, aVars):
17677 r"""GetContextualTextVars(BOARD self, wxArrayString * aVars)"""
17678 return _pcbnew.BOARD_GetContextualTextVars(self, aVars)
17679
17680 def ResolveTextVar(self, token, aDepth):
17681 r"""ResolveTextVar(BOARD self, wxString token, int aDepth) -> bool"""
17682 return _pcbnew.BOARD_ResolveTextVar(self, token, aDepth)
17683 m_LegacyVisibleLayers = property(_pcbnew.BOARD_m_LegacyVisibleLayers_get, _pcbnew.BOARD_m_LegacyVisibleLayers_set, doc=r"""m_LegacyVisibleLayers : LSET""")
17684 m_LegacyVisibleItems = property(_pcbnew.BOARD_m_LegacyVisibleItems_get, _pcbnew.BOARD_m_LegacyVisibleItems_set, doc=r"""m_LegacyVisibleItems : GAL_SET""")
17685 m_LegacyDesignSettingsLoaded = property(_pcbnew.BOARD_m_LegacyDesignSettingsLoaded_get, _pcbnew.BOARD_m_LegacyDesignSettingsLoaded_set, doc=r"""m_LegacyDesignSettingsLoaded : bool""")
17686 m_LegacyCopperEdgeClearanceLoaded = property(_pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_get, _pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_set, doc=r"""m_LegacyCopperEdgeClearanceLoaded : bool""")
17687 m_LegacyNetclassesLoaded = property(_pcbnew.BOARD_m_LegacyNetclassesLoaded_get, _pcbnew.BOARD_m_LegacyNetclassesLoaded_set, doc=r"""m_LegacyNetclassesLoaded : bool""")
17688 __swig_destroy__ = _pcbnew.delete_BOARD
17689
17690 def IsEmpty(self):
17691 r"""IsEmpty(BOARD self) -> bool"""
17692 return _pcbnew.BOARD_IsEmpty(self)
17693
17694 def SetFileFormatVersionAtLoad(self, aVersion):
17695 r"""SetFileFormatVersionAtLoad(BOARD self, int aVersion)"""
17696 return _pcbnew.BOARD_SetFileFormatVersionAtLoad(self, aVersion)
17697
17699 r"""GetFileFormatVersionAtLoad(BOARD self) -> int"""
17700 return _pcbnew.BOARD_GetFileFormatVersionAtLoad(self)
17701
17702 def SetGenerator(self, aGenerator):
17703 r"""SetGenerator(BOARD self, wxString aGenerator)"""
17704 return _pcbnew.BOARD_SetGenerator(self, aGenerator)
17705
17706 def GetGenerator(self):
17707 r"""GetGenerator(BOARD self) -> wxString"""
17708 return _pcbnew.BOARD_GetGenerator(self)
17709
17710 def AddNative(self, *args):
17711 r"""AddNative(BOARD self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
17712 return _pcbnew.BOARD_AddNative(self, *args)
17713
17714 def RemoveNative(self, *args):
17715 r"""RemoveNative(BOARD self, BOARD_ITEM aBoardItem, REMOVE_MODE aMode=NORMAL)"""
17716 return _pcbnew.BOARD_RemoveNative(self, *args)
17717
17718 def FinalizeBulkAdd(self, aNewItems):
17719 r"""FinalizeBulkAdd(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aNewItems)"""
17720 return _pcbnew.BOARD_FinalizeBulkAdd(self, aNewItems)
17721
17722 def FinalizeBulkRemove(self, aRemovedItems):
17723 r"""FinalizeBulkRemove(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aRemovedItems)"""
17724 return _pcbnew.BOARD_FinalizeBulkRemove(self, aRemovedItems)
17725
17726 def CacheTriangulation(self, *args):
17727 r"""CacheTriangulation(BOARD self, PROGRESS_REPORTER * aReporter=None, ZONES aZones={})"""
17728 return _pcbnew.BOARD_CacheTriangulation(self, *args)
17729
17731 r"""GetFirstFootprint(BOARD self) -> FOOTPRINT"""
17732 return _pcbnew.BOARD_GetFirstFootprint(self)
17733
17735 r"""DeleteAllFootprints(BOARD self)"""
17736 return _pcbnew.BOARD_DeleteAllFootprints(self)
17737
17738 def GetItem(self, aID):
17739 r"""GetItem(BOARD self, KIID aID) -> BOARD_ITEM"""
17740 return _pcbnew.BOARD_GetItem(self, aID)
17741
17742 def FillItemMap(self, aMap):
17743 r"""FillItemMap(BOARD self, std::map< KIID,EDA_ITEM *,std::less< KIID >,std::allocator< std::pair< KIID const,EDA_ITEM * > > > & aMap)"""
17744 return _pcbnew.BOARD_FillItemMap(self, aMap)
17745
17747 r"""ConvertCrossReferencesToKIIDs(BOARD self, wxString aSource) -> wxString"""
17748 return _pcbnew.BOARD_ConvertCrossReferencesToKIIDs(self, aSource)
17749
17751 r"""ConvertKIIDsToCrossReferences(BOARD self, wxString aSource) -> wxString"""
17752 return _pcbnew.BOARD_ConvertKIIDsToCrossReferences(self, aSource)
17753
17755 r"""GetConnectivity(BOARD self) -> std::shared_ptr< CONNECTIVITY_DATA >"""
17756 return _pcbnew.BOARD_GetConnectivity(self)
17757
17758 def BuildConnectivity(self, aReporter=None):
17759 r"""BuildConnectivity(BOARD self, PROGRESS_REPORTER * aReporter=None) -> bool"""
17760 return _pcbnew.BOARD_BuildConnectivity(self, aReporter)
17761
17762 def DeleteMARKERs(self, *args):
17763 r"""
17764 DeleteMARKERs(BOARD self)
17765 DeleteMARKERs(BOARD self, bool aWarningsAndErrors, bool aExclusions)
17766 """
17767 return _pcbnew.BOARD_DeleteMARKERs(self, *args)
17768
17769 def GetProject(self):
17770 r"""GetProject(BOARD self) -> PROJECT *"""
17771 return _pcbnew.BOARD_GetProject(self)
17772
17773 def SetProject(self, aProject, aReferenceOnly=False):
17774 r"""SetProject(BOARD self, PROJECT * aProject, bool aReferenceOnly=False)"""
17775 return _pcbnew.BOARD_SetProject(self, aProject, aReferenceOnly)
17776
17777 def ClearProject(self):
17778 r"""ClearProject(BOARD self)"""
17779 return _pcbnew.BOARD_ClearProject(self)
17780
17781 def ResolveDRCExclusions(self, aCreateMarkers):
17782 r"""ResolveDRCExclusions(BOARD self, bool aCreateMarkers) -> MARKERS"""
17783 return _pcbnew.BOARD_ResolveDRCExclusions(self, aCreateMarkers)
17784
17786 r"""UpdateRatsnestExclusions(BOARD self)"""
17787 return _pcbnew.BOARD_UpdateRatsnestExclusions(self)
17788
17790 r"""ResetNetHighLight(BOARD self)"""
17791 return _pcbnew.BOARD_ResetNetHighLight(self)
17792
17794 r"""GetHighLightNetCodes(BOARD self) -> std::set< int,std::less< int >,std::allocator< int > > const &"""
17795 return _pcbnew.BOARD_GetHighLightNetCodes(self)
17796
17797 def SetHighLightNet(self, aNetCode, aMulti=False):
17798 r"""SetHighLightNet(BOARD self, int aNetCode, bool aMulti=False)"""
17799 return _pcbnew.BOARD_SetHighLightNet(self, aNetCode, aMulti)
17800
17802 r"""IsHighLightNetON(BOARD self) -> bool"""
17803 return _pcbnew.BOARD_IsHighLightNetON(self)
17804
17805 def HighLightON(self, aValue=True):
17806 r"""HighLightON(BOARD self, bool aValue=True)"""
17807 return _pcbnew.BOARD_HighLightON(self, aValue)
17808
17809 def HighLightOFF(self):
17810 r"""HighLightOFF(BOARD self)"""
17811 return _pcbnew.BOARD_HighLightOFF(self)
17812
17814 r"""GetCopperLayerCount(BOARD self) -> int"""
17815 return _pcbnew.BOARD_GetCopperLayerCount(self)
17816
17817 def SetCopperLayerCount(self, aCount):
17818 r"""SetCopperLayerCount(BOARD self, int aCount)"""
17819 return _pcbnew.BOARD_SetCopperLayerCount(self, aCount)
17820
17821 def LayerDepth(self, aStartLayer, aEndLayer):
17822 r"""LayerDepth(BOARD self, PCB_LAYER_ID aStartLayer, PCB_LAYER_ID aEndLayer) -> int"""
17823 return _pcbnew.BOARD_LayerDepth(self, aStartLayer, aEndLayer)
17824
17826 r"""GetEnabledLayers(BOARD self) -> LSET"""
17827 return _pcbnew.BOARD_GetEnabledLayers(self)
17828
17829 def SetEnabledLayers(self, aLayerMask):
17830 r"""SetEnabledLayers(BOARD self, LSET aLayerMask)"""
17831 return _pcbnew.BOARD_SetEnabledLayers(self, aLayerMask)
17832
17833 def IsLayerEnabled(self, aLayer):
17834 r"""IsLayerEnabled(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
17835 return _pcbnew.BOARD_IsLayerEnabled(self, aLayer)
17836
17837 def IsLayerVisible(self, aLayer):
17838 r"""IsLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
17839 return _pcbnew.BOARD_IsLayerVisible(self, aLayer)
17840
17842 r"""GetVisibleLayers(BOARD self) -> LSET"""
17843 return _pcbnew.BOARD_GetVisibleLayers(self)
17844
17845 def SetVisibleLayers(self, aLayerMask):
17846 r"""SetVisibleLayers(BOARD self, LSET aLayerMask)"""
17847 return _pcbnew.BOARD_SetVisibleLayers(self, aLayerMask)
17848
17850 r"""GetVisibleElements(BOARD self) -> GAL_SET"""
17851 return _pcbnew.BOARD_GetVisibleElements(self)
17852
17853 def SetVisibleElements(self, aMask):
17854 r"""SetVisibleElements(BOARD self, GAL_SET aMask)"""
17855 return _pcbnew.BOARD_SetVisibleElements(self, aMask)
17856
17858 r"""SetVisibleAlls(BOARD self)"""
17859 return _pcbnew.BOARD_SetVisibleAlls(self)
17860
17861 def IsElementVisible(self, aLayer):
17862 r"""IsElementVisible(BOARD self, GAL_LAYER_ID aLayer) -> bool"""
17863 return _pcbnew.BOARD_IsElementVisible(self, aLayer)
17864
17865 def SetElementVisibility(self, aLayer, aNewState):
17866 r"""SetElementVisibility(BOARD self, GAL_LAYER_ID aLayer, bool aNewState)"""
17867 return _pcbnew.BOARD_SetElementVisibility(self, aLayer, aNewState)
17868
17869 def IsFootprintLayerVisible(self, aLayer):
17870 r"""IsFootprintLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
17871 return _pcbnew.BOARD_IsFootprintLayerVisible(self, aLayer)
17872
17874 r"""GetDesignSettings(BOARD self) -> BOARD_DESIGN_SETTINGS"""
17875 return _pcbnew.BOARD_GetDesignSettings(self)
17876
17877 def GetTentVias(self):
17878 r"""GetTentVias(BOARD self) -> bool"""
17879 return _pcbnew.BOARD_GetTentVias(self)
17880
17881 def SetTentVias(self, aFlag):
17882 r"""SetTentVias(BOARD self, bool aFlag)"""
17883 return _pcbnew.BOARD_SetTentVias(self, aFlag)
17884
17886 r"""GetPageSettings(BOARD self) -> PAGE_INFO const &"""
17887 return _pcbnew.BOARD_GetPageSettings(self)
17888
17889 def SetPageSettings(self, aPageSettings):
17890 r"""SetPageSettings(BOARD self, PAGE_INFO const & aPageSettings)"""
17891 return _pcbnew.BOARD_SetPageSettings(self, aPageSettings)
17892
17894 r"""GetPlotOptions(BOARD self) -> PCB_PLOT_PARAMS"""
17895 return _pcbnew.BOARD_GetPlotOptions(self)
17896
17897 def SetPlotOptions(self, aOptions):
17898 r"""SetPlotOptions(BOARD self, PCB_PLOT_PARAMS aOptions)"""
17899 return _pcbnew.BOARD_SetPlotOptions(self, aOptions)
17900
17901 def GetTitleBlock(self, *args):
17902 r"""
17903 GetTitleBlock(BOARD self) -> TITLE_BLOCK
17904 GetTitleBlock(BOARD self) -> TITLE_BLOCK
17905 """
17906 return _pcbnew.BOARD_GetTitleBlock(self, *args)
17907
17908 def SetTitleBlock(self, aTitleBlock):
17909 r"""SetTitleBlock(BOARD self, TITLE_BLOCK aTitleBlock)"""
17910 return _pcbnew.BOARD_SetTitleBlock(self, aTitleBlock)
17911
17912 def GetUserUnits(self):
17913 r"""GetUserUnits(BOARD self) -> EDA_UNITS"""
17914 return _pcbnew.BOARD_GetUserUnits(self)
17915
17916 def SetUserUnits(self, aUnits):
17917 r"""SetUserUnits(BOARD self, EDA_UNITS aUnits)"""
17918 return _pcbnew.BOARD_SetUserUnits(self, aUnits)
17919
17920 def UpdateUserUnits(self, aItem, aView):
17921 r"""UpdateUserUnits(BOARD self, BOARD_ITEM aItem, KIGFX::VIEW * aView)"""
17922 return _pcbnew.BOARD_UpdateUserUnits(self, aItem, aView)
17923
17924 def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False):
17925 r"""GetBoardPolygonOutlines(BOARD self, SHAPE_POLY_SET aOutlines, OUTLINE_ERROR_HANDLER * aErrorHandler=None, bool aAllowUseArcsInPolygons=False) -> bool"""
17926 return _pcbnew.BOARD_GetBoardPolygonOutlines(self, aOutlines, aErrorHandler, aAllowUseArcsInPolygons)
17927
17929 r"""GetOutlinesChainingEpsilon(BOARD self) -> int"""
17930 return _pcbnew.BOARD_GetOutlinesChainingEpsilon(self)
17931
17933 r"""SetOutlinesChainingEpsilon(BOARD self, int aValue)"""
17934 return _pcbnew.BOARD_SetOutlinesChainingEpsilon(self, aValue)
17935
17936 def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines):
17937 r"""ConvertBrdLayerToPolygonalContours(BOARD self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aOutlines)"""
17938 return _pcbnew.BOARD_ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
17939
17940 def GetLayerID(self, aLayerName):
17941 r"""GetLayerID(BOARD self, wxString aLayerName) -> PCB_LAYER_ID const"""
17942 return _pcbnew.BOARD_GetLayerID(self, aLayerName)
17943
17944 def GetLayerName(self, aLayer):
17945 r"""GetLayerName(BOARD self, PCB_LAYER_ID aLayer) -> wxString"""
17946 return _pcbnew.BOARD_GetLayerName(self, aLayer)
17947
17948 def SetLayerName(self, aLayer, aLayerName):
17949 r"""SetLayerName(BOARD self, PCB_LAYER_ID aLayer, wxString aLayerName) -> bool"""
17950 return _pcbnew.BOARD_SetLayerName(self, aLayer, aLayerName)
17951
17952 @staticmethod
17954 r"""GetStandardLayerName(PCB_LAYER_ID aLayerId) -> wxString"""
17955 return _pcbnew.BOARD_GetStandardLayerName(aLayerId)
17956
17957 def SetLayerDescr(self, aIndex, aLayer):
17958 r"""SetLayerDescr(BOARD self, PCB_LAYER_ID aIndex, LAYER aLayer) -> bool"""
17959 return _pcbnew.BOARD_SetLayerDescr(self, aIndex, aLayer)
17960
17961 def GetLayerType(self, aLayer):
17962 r"""GetLayerType(BOARD self, PCB_LAYER_ID aLayer) -> LAYER_T"""
17963 return _pcbnew.BOARD_GetLayerType(self, aLayer)
17964
17965 def SetLayerType(self, aLayer, aLayerType):
17966 r"""SetLayerType(BOARD self, PCB_LAYER_ID aLayer, LAYER_T aLayerType) -> bool"""
17967 return _pcbnew.BOARD_SetLayerType(self, aLayer, aLayerType)
17968
17969 def GetNodesCount(self, aNet=-1):
17970 r"""GetNodesCount(BOARD self, int aNet=-1) -> unsigned int"""
17971 return _pcbnew.BOARD_GetNodesCount(self, aNet)
17972
17973 def GetPads(self):
17974 r"""GetPads(BOARD self) -> PADS_VEC"""
17975 return _pcbnew.BOARD_GetPads(self)
17976
17978 r"""BuildListOfNets(BOARD self)"""
17979 return _pcbnew.BOARD_BuildListOfNets(self)
17980
17981 def FindNet(self, *args):
17982 r"""
17983 FindNet(BOARD self, int aNetcode) -> NETINFO_ITEM
17984 FindNet(BOARD self, wxString aNetname) -> NETINFO_ITEM
17985 """
17986 return _pcbnew.BOARD_FindNet(self, *args)
17987
17988 def GetNetInfo(self, *args):
17989 r"""
17990 GetNetInfo(BOARD self) -> NETINFO_LIST
17991 GetNetInfo(BOARD self) -> NETINFO_LIST
17992 """
17993 return _pcbnew.BOARD_GetNetInfo(self, *args)
17994
17995 def GetNetCount(self):
17996 r"""GetNetCount(BOARD self) -> unsigned int"""
17997 return _pcbnew.BOARD_GetNetCount(self)
17998
17999 def ComputeBoundingBox(self, aBoardEdgesOnly=False):
18000 r"""ComputeBoundingBox(BOARD self, bool aBoardEdgesOnly=False) -> BOX2I"""
18001 return _pcbnew.BOARD_ComputeBoundingBox(self, aBoardEdgesOnly)
18002
18004 r"""GetBoardEdgesBoundingBox(BOARD self) -> BOX2I"""
18005 return _pcbnew.BOARD_GetBoardEdgesBoundingBox(self)
18006
18007 def FindFootprintByReference(self, aReference):
18008 r"""FindFootprintByReference(BOARD self, wxString aReference) -> FOOTPRINT"""
18009 return _pcbnew.BOARD_FindFootprintByReference(self, aReference)
18010
18011 def FindFootprintByPath(self, aPath):
18012 r"""FindFootprintByPath(BOARD self, KIID_PATH aPath) -> FOOTPRINT"""
18013 return _pcbnew.BOARD_FindFootprintByPath(self, aPath)
18014
18016 r"""GetNetClassAssignmentCandidates(BOARD self) -> STRINGSET"""
18017 return _pcbnew.BOARD_GetNetClassAssignmentCandidates(self)
18018
18019 def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes):
18020 r"""SynchronizeNetsAndNetClasses(BOARD self, bool aResetTrackAndViaSizes)"""
18021 return _pcbnew.BOARD_SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
18022
18024 r"""SynchronizeProperties(BOARD self)"""
18025 return _pcbnew.BOARD_SynchronizeProperties(self)
18026
18028 r"""SetAreasNetCodesFromNetNames(BOARD self) -> int"""
18029 return _pcbnew.BOARD_SetAreasNetCodesFromNetNames(self)
18030
18031 def GetArea(self, index):
18032 r"""GetArea(BOARD self, int index) -> ZONE"""
18033 return _pcbnew.BOARD_GetArea(self, index)
18034
18035 def GetZoneList(self, aIncludeZonesInFootprints=False):
18036 r"""GetZoneList(BOARD self, bool aIncludeZonesInFootprints=False) -> std::list< ZONE *,std::allocator< ZONE * > >"""
18037 return _pcbnew.BOARD_GetZoneList(self, aIncludeZonesInFootprints)
18038
18039 def GetAreaCount(self):
18040 r"""GetAreaCount(BOARD self) -> int"""
18041 return _pcbnew.BOARD_GetAreaCount(self)
18042
18043 def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch):
18044 r"""AddArea(BOARD self, PICKED_ITEMS_LIST * aNewZonesList, int aNetcode, PCB_LAYER_ID aLayer, VECTOR2I aStartPointPosition, ZONE_BORDER_DISPLAY_STYLE aHatch) -> ZONE"""
18045 return _pcbnew.BOARD_AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
18046
18047 def TestZoneIntersection(self, aZone1, aZone2):
18048 r"""TestZoneIntersection(BOARD self, ZONE aZone1, ZONE aZone2) -> bool"""
18049 return _pcbnew.BOARD_TestZoneIntersection(self, aZone1, aZone2)
18050
18051 def GetPadFast(self, aPosition, aLayerMask):
18052 r"""GetPadFast(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD"""
18053 return _pcbnew.BOARD_GetPadFast(self, aPosition, aLayerMask)
18054
18055 def GetPad(self, *args):
18056 r"""
18057 GetPad(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD
18058 GetPad(BOARD self, VECTOR2I aPosition) -> PAD
18059 GetPad(BOARD self, PCB_TRACK aTrace, ENDPOINT_T aEndPoint) -> PAD
18060 GetPad(BOARD self, PADS_VEC aPadList, VECTOR2I aPosition, LSET aLayerMask) -> PAD
18061 """
18062 return _pcbnew.BOARD_GetPad(self, *args)
18063
18064 def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1):
18065 r"""GetSortedPadListByXthenYCoord(BOARD self, PADS_VEC aVector, int aNetCode=-1)"""
18066 return _pcbnew.BOARD_GetSortedPadListByXthenYCoord(self, aVector, aNetCode)
18067
18068 def GetTrackLength(self, aTrack):
18069 r"""GetTrackLength(BOARD self, PCB_TRACK aTrack) -> std::tuple< int,double,double >"""
18070 return _pcbnew.BOARD_GetTrackLength(self, aTrack)
18071
18072 def TracksInNet(self, aNetCode):
18073 r"""TracksInNet(BOARD self, int aNetCode) -> TRACKS"""
18074 return _pcbnew.BOARD_TracksInNet(self, aNetCode)
18075
18076 def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False):
18077 r"""GetFootprint(BOARD self, VECTOR2I aPosition, PCB_LAYER_ID aActiveLayer, bool aVisibleOnly, bool aIgnoreLocked=False) -> FOOTPRINT"""
18078 return _pcbnew.BOARD_GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked)
18079
18081 r"""GetMaxClearanceValue(BOARD self) -> int"""
18082 return _pcbnew.BOARD_GetMaxClearanceValue(self)
18083
18084 def MapNets(self, aDestBoard):
18085 r"""MapNets(BOARD self, BOARD aDestBoard)"""
18086 return _pcbnew.BOARD_MapNets(self, aDestBoard)
18087
18089 r"""SanitizeNetcodes(BOARD self)"""
18090 return _pcbnew.BOARD_SanitizeNetcodes(self)
18091
18092 def AddListener(self, aListener):
18093 r"""AddListener(BOARD self, BOARD_LISTENER aListener)"""
18094 return _pcbnew.BOARD_AddListener(self, aListener)
18095
18096 def RemoveListener(self, aListener):
18097 r"""RemoveListener(BOARD self, BOARD_LISTENER aListener)"""
18098 return _pcbnew.BOARD_RemoveListener(self, aListener)
18099
18101 r"""RemoveAllListeners(BOARD self)"""
18102 return _pcbnew.BOARD_RemoveAllListeners(self)
18103
18104 def OnItemChanged(self, aItem):
18105 r"""OnItemChanged(BOARD self, BOARD_ITEM aItem)"""
18106 return _pcbnew.BOARD_OnItemChanged(self, aItem)
18107
18108 def OnItemsChanged(self, aItems):
18109 r"""OnItemsChanged(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aItems)"""
18110 return _pcbnew.BOARD_OnItemsChanged(self, aItems)
18111
18112 def GroupsSanityCheck(self, repair=False):
18113 r"""GroupsSanityCheck(BOARD self, bool repair=False) -> wxString"""
18114 return _pcbnew.BOARD_GroupsSanityCheck(self, repair)
18115
18116 def GroupsSanityCheckInternal(self, repair):
18117 r"""GroupsSanityCheckInternal(BOARD self, bool repair) -> wxString"""
18118 return _pcbnew.BOARD_GroupsSanityCheckInternal(self, repair)
18119
18120 def GroupLegalOps(self, selection):
18121 r"""GroupLegalOps(BOARD self, PCB_SELECTION const & selection) -> BOARD::GroupLegalOpsField"""
18122 return _pcbnew.BOARD_GroupLegalOps(self, selection)
18123 m_ZoneBBoxCache = property(_pcbnew.BOARD_m_ZoneBBoxCache_get, _pcbnew.BOARD_m_ZoneBBoxCache_set, doc=r"""m_ZoneBBoxCache : std::unordered_map<(p.q(const).ZONE,BOX2I)>""")
18124 m_SolderMaskBridges = property(_pcbnew.BOARD_m_SolderMaskBridges_get, _pcbnew.BOARD_m_SolderMaskBridges_set, doc=r"""m_SolderMaskBridges : p.ZONE""")
18125 m_ZoneIsolatedIslandsMap = property(_pcbnew.BOARD_m_ZoneIsolatedIslandsMap_get, _pcbnew.BOARD_m_ZoneIsolatedIslandsMap_set, doc=r"""m_ZoneIsolatedIslandsMap : std::map<(p.ZONE,std::map<(PCB_LAYER_ID,ISOLATED_ISLANDS,std::less<(PCB_LAYER_ID)>,std::allocator<(std::pair<(q(const).PCB_LAYER_ID,ISOLATED_ISLANDS)>)>)>,std::less<(p.ZONE)>,std::allocator<(std::pair<(q(const).p.ZONE,std::map<(PCB_LAYER_ID,ISOLATED_ISLANDS,std::less<(PCB_LAYER_ID)>,std::allocator<(std::pair<(q(const).PCB_LAYER_ID,ISOLATED_ISLANDS)>)>)>)>)>)>""")
18126
18127 def __init__(self, *args):
18128 this = CreateEmptyBoard()
18129
18130 try:
18131 self.this.append(this)
18132 except:
18133 self.this = this
18134
18135 # Convert these to lists to keep users from using them to delete
18136 # items in the iterable while looping over it
18137 def GetFootprints(self): return list(self.Footprints())
18138 def GetDrawings(self): return list(self.Drawings())
18139 def GetTracks(self): return list(self.Tracks())
18140
18141 def Save(self,filename):
18142 return SaveBoard(filename,self)
18143
18144 def GetNetClasses(self):
18145 return self.GetDesignSettings().m_NetSettings.m_NetClasses
18146
18149
18151 return self.GetDesignSettings().m_ViasDimensionsList
18152
18154 return self.GetDesignSettings().m_TrackWidthList
18155
18156 def GetNetsByName(self):
18157 """
18158 Return a dictionary like object with key:wxString netname and value:NETINFO_ITEM
18159 """
18160 return self.GetNetInfo().NetsByName()
18161
18163 """
18164 Return a dictionary like object with key:int netcode and value:NETINFO_ITEM
18165 """
18166 return self.GetNetInfo().NetsByNetcode()
18167
18168 def GetNetcodeFromNetname(self,netname):
18169 """
18170 Given a netname, return its netcode
18171 """
18172 net = self.GetNetsByName()[netname]
18173 return net.GetNetCode()
18174
18176 """
18177 Return a dictionary like object with net_class_name as key and NETCLASSPTR as value
18178 GetNetClasses(BOARD self) -> { wxString net_class_name : NETCLASSPTR }
18179 Include the "Default" netclass also.
18180 """
18181
18182 # Copy the NETCLASS_MAP so the one in the BOARD isn't modified
18183 # when we add the Default net class.
18184 netclassmap = {k:v for k,v in self.GetNetClasses().items()}
18185 netclassmap['Default'] = self.GetDesignSettings().m_NetSettings.m_DefaultNetClass
18186 return netclassmap
18187
18188
18189# Register BOARD in _pcbnew:
18190_pcbnew.BOARD_swigregister(BOARD)
18191
18192def BOARD_ClassOf(aItem):
18193 r"""BOARD_ClassOf(EDA_ITEM aItem) -> bool"""
18194 return _pcbnew.BOARD_ClassOf(aItem)
18195
18197 r"""BOARD_GetStandardLayerName(PCB_LAYER_ID aLayerId) -> wxString"""
18198 return _pcbnew.BOARD_GetStandardLayerName(aLayerId)
18199
18201 r"""Proxy of C++ std::map< wxString,wxString > class."""
18202
18203 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18204 __repr__ = _swig_repr
18205
18206 def iterator(self):
18207 r"""iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
18208 return _pcbnew.MAP_STRING_STRING_iterator(self)
18209 def __iter__(self):
18210 return self.iterator()
18211
18212 def __nonzero__(self):
18213 r"""__nonzero__(MAP_STRING_STRING self) -> bool"""
18214 return _pcbnew.MAP_STRING_STRING___nonzero__(self)
18215
18216 def __bool__(self):
18217 r"""__bool__(MAP_STRING_STRING self) -> bool"""
18218 return _pcbnew.MAP_STRING_STRING___bool__(self)
18219
18220 def __len__(self):
18221 r"""__len__(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
18222 return _pcbnew.MAP_STRING_STRING___len__(self)
18223 def __iter__(self):
18224 return self.key_iterator()
18225 def iterkeys(self):
18226 return self.key_iterator()
18227 def itervalues(self):
18228 return self.value_iterator()
18229 def iteritems(self):
18230 return self.iterator()
18231
18232 def __getitem__(self, key):
18233 r"""__getitem__(MAP_STRING_STRING self, wxString key) -> wxString"""
18234 return _pcbnew.MAP_STRING_STRING___getitem__(self, key)
18235
18236 def __delitem__(self, key):
18237 r"""__delitem__(MAP_STRING_STRING self, wxString key)"""
18238 return _pcbnew.MAP_STRING_STRING___delitem__(self, key)
18239
18240 def has_key(self, key):
18241 r"""has_key(MAP_STRING_STRING self, wxString key) -> bool"""
18242 return _pcbnew.MAP_STRING_STRING_has_key(self, key)
18243
18244 def keys(self):
18245 r"""keys(MAP_STRING_STRING self) -> PyObject *"""
18246 return _pcbnew.MAP_STRING_STRING_keys(self)
18247
18248 def values(self):
18249 r"""values(MAP_STRING_STRING self) -> PyObject *"""
18250 return _pcbnew.MAP_STRING_STRING_values(self)
18251
18252 def items(self):
18253 r"""items(MAP_STRING_STRING self) -> PyObject *"""
18254 return _pcbnew.MAP_STRING_STRING_items(self)
18255
18256 def __contains__(self, key):
18257 r"""__contains__(MAP_STRING_STRING self, wxString key) -> bool"""
18258 return _pcbnew.MAP_STRING_STRING___contains__(self, key)
18259
18260 def key_iterator(self):
18261 r"""key_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
18262 return _pcbnew.MAP_STRING_STRING_key_iterator(self)
18263
18265 r"""value_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
18266 return _pcbnew.MAP_STRING_STRING_value_iterator(self)
18267
18268 def __setitem__(self, *args):
18269 r"""
18270 __setitem__(MAP_STRING_STRING self, wxString key)
18271 __setitem__(MAP_STRING_STRING self, wxString key, wxString x)
18272 """
18273 return _pcbnew.MAP_STRING_STRING___setitem__(self, *args)
18274
18275 def asdict(self):
18276 r"""asdict(MAP_STRING_STRING self) -> PyObject *"""
18277 return _pcbnew.MAP_STRING_STRING_asdict(self)
18278
18279 def __init__(self, *args):
18280 r"""
18281 __init__(MAP_STRING_STRING self, std::less< wxString > const & other) -> MAP_STRING_STRING
18282 __init__(MAP_STRING_STRING self) -> MAP_STRING_STRING
18283 __init__(MAP_STRING_STRING self, MAP_STRING_STRING other) -> MAP_STRING_STRING
18284 """
18285 _pcbnew.MAP_STRING_STRING_swiginit(self, _pcbnew.new_MAP_STRING_STRING(*args))
18286
18287 def empty(self):
18288 r"""empty(MAP_STRING_STRING self) -> bool"""
18289 return _pcbnew.MAP_STRING_STRING_empty(self)
18290
18291 def size(self):
18292 r"""size(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
18293 return _pcbnew.MAP_STRING_STRING_size(self)
18294
18295 def swap(self, v):
18296 r"""swap(MAP_STRING_STRING self, MAP_STRING_STRING v)"""
18297 return _pcbnew.MAP_STRING_STRING_swap(self, v)
18298
18299 def begin(self):
18300 r"""begin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
18301 return _pcbnew.MAP_STRING_STRING_begin(self)
18302
18303 def end(self):
18304 r"""end(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
18305 return _pcbnew.MAP_STRING_STRING_end(self)
18306
18307 def rbegin(self):
18308 r"""rbegin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
18309 return _pcbnew.MAP_STRING_STRING_rbegin(self)
18310
18311 def rend(self):
18312 r"""rend(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
18313 return _pcbnew.MAP_STRING_STRING_rend(self)
18314
18315 def clear(self):
18316 r"""clear(MAP_STRING_STRING self)"""
18317 return _pcbnew.MAP_STRING_STRING_clear(self)
18318
18319 def get_allocator(self):
18320 r"""get_allocator(MAP_STRING_STRING self) -> std::map< wxString,wxString >::allocator_type"""
18321 return _pcbnew.MAP_STRING_STRING_get_allocator(self)
18322
18323 def count(self, x):
18324 r"""count(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type"""
18325 return _pcbnew.MAP_STRING_STRING_count(self, x)
18326
18327 def erase(self, *args):
18328 r"""
18329 erase(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type
18330 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator position)
18331 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator first, std::map< wxString,wxString >::iterator last)
18332 """
18333 return _pcbnew.MAP_STRING_STRING_erase(self, *args)
18334
18335 def find(self, x):
18336 r"""find(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
18337 return _pcbnew.MAP_STRING_STRING_find(self, x)
18338
18339 def lower_bound(self, x):
18340 r"""lower_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
18341 return _pcbnew.MAP_STRING_STRING_lower_bound(self, x)
18342
18343 def upper_bound(self, x):
18344 r"""upper_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
18345 return _pcbnew.MAP_STRING_STRING_upper_bound(self, x)
18346 __swig_destroy__ = _pcbnew.delete_MAP_STRING_STRING
18347
18348# Register MAP_STRING_STRING in _pcbnew:
18349_pcbnew.MAP_STRING_STRING_swigregister(MAP_STRING_STRING)
18350
18351DO_NOT_INCLUDE_NPTH = _pcbnew.DO_NOT_INCLUDE_NPTH
18352
18353INCLUDE_NPTH = _pcbnew.INCLUDE_NPTH
18354
18355FP_THROUGH_HOLE = _pcbnew.FP_THROUGH_HOLE
18356
18357FP_SMD = _pcbnew.FP_SMD
18358
18359FP_EXCLUDE_FROM_POS_FILES = _pcbnew.FP_EXCLUDE_FROM_POS_FILES
18360
18361FP_EXCLUDE_FROM_BOM = _pcbnew.FP_EXCLUDE_FROM_BOM
18362
18363FP_BOARD_ONLY = _pcbnew.FP_BOARD_ONLY
18364
18365FP_JUST_ADDED = _pcbnew.FP_JUST_ADDED
18366
18367FP_ALLOW_SOLDERMASK_BRIDGES = _pcbnew.FP_ALLOW_SOLDERMASK_BRIDGES
18368
18369FP_ALLOW_MISSING_COURTYARD = _pcbnew.FP_ALLOW_MISSING_COURTYARD
18370
18372 r"""Proxy of C++ FP_3DMODEL class."""
18373
18374 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18375 __repr__ = _swig_repr
18376
18377 def __init__(self):
18378 r"""__init__(FP_3DMODEL self) -> FP_3DMODEL"""
18379 _pcbnew.FP_3DMODEL_swiginit(self, _pcbnew.new_FP_3DMODEL())
18380 m_Scale = property(_pcbnew.FP_3DMODEL_m_Scale_get, _pcbnew.FP_3DMODEL_m_Scale_set, doc=r"""m_Scale : VECTOR3D""")
18381 m_Rotation = property(_pcbnew.FP_3DMODEL_m_Rotation_get, _pcbnew.FP_3DMODEL_m_Rotation_set, doc=r"""m_Rotation : VECTOR3D""")
18382 m_Offset = property(_pcbnew.FP_3DMODEL_m_Offset_get, _pcbnew.FP_3DMODEL_m_Offset_set, doc=r"""m_Offset : VECTOR3D""")
18383 m_Opacity = property(_pcbnew.FP_3DMODEL_m_Opacity_get, _pcbnew.FP_3DMODEL_m_Opacity_set, doc=r"""m_Opacity : double""")
18384 m_Filename = property(_pcbnew.FP_3DMODEL_m_Filename_get, _pcbnew.FP_3DMODEL_m_Filename_set, doc=r"""m_Filename : wxString""")
18385 m_Show = property(_pcbnew.FP_3DMODEL_m_Show_get, _pcbnew.FP_3DMODEL_m_Show_set, doc=r"""m_Show : bool""")
18386 __swig_destroy__ = _pcbnew.delete_FP_3DMODEL
18387
18388# Register FP_3DMODEL in _pcbnew:
18389_pcbnew.FP_3DMODEL_swigregister(FP_3DMODEL)
18390
18392 r"""Proxy of C++ FOOTPRINT class."""
18393
18394 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18395 __repr__ = _swig_repr
18396
18397 def __init__(self, *args):
18398 r"""
18399 __init__(FOOTPRINT self, BOARD parent) -> FOOTPRINT
18400 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
18401 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
18402 """
18403 _pcbnew.FOOTPRINT_swiginit(self, _pcbnew.new_FOOTPRINT(*args))
18404 __swig_destroy__ = _pcbnew.delete_FOOTPRINT
18405
18406 @staticmethod
18407 def ClassOf(aItem):
18408 r"""ClassOf(EDA_ITEM aItem) -> bool"""
18409 return _pcbnew.FOOTPRINT_ClassOf(aItem)
18410
18412 r"""GetPrivateLayers(FOOTPRINT self) -> LSET"""
18413 return _pcbnew.FOOTPRINT_GetPrivateLayers(self)
18414
18415 def SetPrivateLayers(self, aLayers):
18416 r"""SetPrivateLayers(FOOTPRINT self, LSET aLayers)"""
18417 return _pcbnew.FOOTPRINT_SetPrivateLayers(self, aLayers)
18418
18419 def AddNative(self, *args):
18420 r"""AddNative(FOOTPRINT self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
18421 return _pcbnew.FOOTPRINT_AddNative(self, *args)
18422
18423 def RemoveNative(self, *args):
18424 r"""RemoveNative(FOOTPRINT self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
18425 return _pcbnew.FOOTPRINT_RemoveNative(self, *args)
18426
18427 def ClearAllNets(self):
18428 r"""ClearAllNets(FOOTPRINT self)"""
18429 return _pcbnew.FOOTPRINT_ClearAllNets(self)
18430
18431 def FixUuids(self):
18432 r"""FixUuids(FOOTPRINT self) -> bool"""
18433 return _pcbnew.FOOTPRINT_FixUuids(self)
18434
18436 r"""GetFpPadsLocalBbox(FOOTPRINT self) -> BOX2I"""
18437 return _pcbnew.FOOTPRINT_GetFpPadsLocalBbox(self)
18438
18440 r"""GetBoundingHull(FOOTPRINT self) -> SHAPE_POLY_SET"""
18441 return _pcbnew.FOOTPRINT_GetBoundingHull(self)
18442
18443 def GetBoundingBox(self, *args):
18444 r"""
18445 GetBoundingBox(FOOTPRINT self) -> BOX2I
18446 GetBoundingBox(FOOTPRINT self, bool aIncludeText, bool aIncludeInvisibleText) -> BOX2I
18447 """
18448 return _pcbnew.FOOTPRINT_GetBoundingBox(self, *args)
18449
18450 def GetLayerBoundingBox(self, aLayers):
18451 r"""GetLayerBoundingBox(FOOTPRINT self, LSET aLayers) -> BOX2I"""
18452 return _pcbnew.FOOTPRINT_GetLayerBoundingBox(self, aLayers)
18453
18454 def Pads(self, *args):
18455 r"""
18456 Pads(FOOTPRINT self) -> PADS
18457 Pads(FOOTPRINT self) -> PADS
18458 """
18459 return _pcbnew.FOOTPRINT_Pads(self, *args)
18460
18461 def GraphicalItems(self, *args):
18462 r"""
18463 GraphicalItems(FOOTPRINT self) -> DRAWINGS
18464 GraphicalItems(FOOTPRINT self) -> DRAWINGS
18465 """
18466 return _pcbnew.FOOTPRINT_GraphicalItems(self, *args)
18467
18468 def Zones(self, *args):
18469 r"""
18470 Zones(FOOTPRINT self) -> FP_ZONES
18471 Zones(FOOTPRINT self) -> FP_ZONES
18472 """
18473 return _pcbnew.FOOTPRINT_Zones(self, *args)
18474
18475 def Groups(self, *args):
18476 r"""
18477 Groups(FOOTPRINT self) -> FP_GROUPS
18478 Groups(FOOTPRINT self) -> FP_GROUPS
18479 """
18480 return _pcbnew.FOOTPRINT_Groups(self, *args)
18481
18483 r"""HasThroughHolePads(FOOTPRINT self) -> bool"""
18484 return _pcbnew.FOOTPRINT_HasThroughHolePads(self)
18485
18486 def Models(self, *args):
18487 r"""
18488 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
18489 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
18490 """
18491 return _pcbnew.FOOTPRINT_Models(self, *args)
18492
18493 def SetOrientation(self, aNewAngle):
18494 r"""SetOrientation(FOOTPRINT self, EDA_ANGLE aNewAngle)"""
18495 return _pcbnew.FOOTPRINT_SetOrientation(self, aNewAngle)
18496
18498 r"""GetOrientation(FOOTPRINT self) -> EDA_ANGLE"""
18499 return _pcbnew.FOOTPRINT_GetOrientation(self)
18500
18501 def SetLayerAndFlip(self, aLayer):
18502 r"""SetLayerAndFlip(FOOTPRINT self, PCB_LAYER_ID aLayer)"""
18503 return _pcbnew.FOOTPRINT_SetLayerAndFlip(self, aLayer)
18504
18505 def SetOrientationDegrees(self, aOrientation):
18506 r"""SetOrientationDegrees(FOOTPRINT self, double aOrientation)"""
18507 return _pcbnew.FOOTPRINT_SetOrientationDegrees(self, aOrientation)
18508
18510 r"""GetOrientationDegrees(FOOTPRINT self) -> double"""
18511 return _pcbnew.FOOTPRINT_GetOrientationDegrees(self)
18512
18513 def GetFPID(self):
18514 r"""GetFPID(FOOTPRINT self) -> LIB_ID"""
18515 return _pcbnew.FOOTPRINT_GetFPID(self)
18516
18517 def SetFPID(self, aFPID):
18518 r"""SetFPID(FOOTPRINT self, LIB_ID aFPID)"""
18519 return _pcbnew.FOOTPRINT_SetFPID(self, aFPID)
18520
18522 r"""GetFPIDAsString(FOOTPRINT self) -> wxString"""
18523 return _pcbnew.FOOTPRINT_GetFPIDAsString(self)
18524
18525 def SetFPIDAsString(self, aFPID):
18526 r"""SetFPIDAsString(FOOTPRINT self, wxString aFPID)"""
18527 return _pcbnew.FOOTPRINT_SetFPIDAsString(self, aFPID)
18528
18530 r"""GetDescription(FOOTPRINT self) -> wxString"""
18531 return _pcbnew.FOOTPRINT_GetDescription(self)
18532
18533 def SetDescription(self, aDoc):
18534 r"""SetDescription(FOOTPRINT self, wxString aDoc)"""
18535 return _pcbnew.FOOTPRINT_SetDescription(self, aDoc)
18536
18537 def GetKeywords(self):
18538 r"""GetKeywords(FOOTPRINT self) -> wxString"""
18539 return _pcbnew.FOOTPRINT_GetKeywords(self)
18540
18541 def SetKeywords(self, aKeywords):
18542 r"""SetKeywords(FOOTPRINT self, wxString aKeywords)"""
18543 return _pcbnew.FOOTPRINT_SetKeywords(self, aKeywords)
18544
18545 def GetPath(self):
18546 r"""GetPath(FOOTPRINT self) -> KIID_PATH"""
18547 return _pcbnew.FOOTPRINT_GetPath(self)
18548
18549 def SetPath(self, aPath):
18550 r"""SetPath(FOOTPRINT self, KIID_PATH aPath)"""
18551 return _pcbnew.FOOTPRINT_SetPath(self, aPath)
18552
18554 r"""GetLocalSolderMaskMargin(FOOTPRINT self) -> int"""
18555 return _pcbnew.FOOTPRINT_GetLocalSolderMaskMargin(self)
18556
18557 def SetLocalSolderMaskMargin(self, aMargin):
18558 r"""SetLocalSolderMaskMargin(FOOTPRINT self, int aMargin)"""
18559 return _pcbnew.FOOTPRINT_SetLocalSolderMaskMargin(self, aMargin)
18560
18561 def SetLocalClearance(self, aClearance):
18562 r"""SetLocalClearance(FOOTPRINT self, int aClearance)"""
18563 return _pcbnew.FOOTPRINT_SetLocalClearance(self, aClearance)
18564
18565 def GetLocalClearance(self, *args):
18566 r"""
18567 GetLocalClearance(FOOTPRINT self) -> int
18568 GetLocalClearance(FOOTPRINT self, wxString aSource) -> int
18569 """
18570 return _pcbnew.FOOTPRINT_GetLocalClearance(self, *args)
18571
18573 r"""GetLocalSolderPasteMargin(FOOTPRINT self) -> int"""
18574 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMargin(self)
18575
18576 def SetLocalSolderPasteMargin(self, aMargin):
18577 r"""SetLocalSolderPasteMargin(FOOTPRINT self, int aMargin)"""
18578 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMargin(self, aMargin)
18579
18581 r"""GetLocalSolderPasteMarginRatio(FOOTPRINT self) -> double"""
18582 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMarginRatio(self)
18583
18585 r"""SetLocalSolderPasteMarginRatio(FOOTPRINT self, double aRatio)"""
18586 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMarginRatio(self, aRatio)
18587
18588 def SetZoneConnection(self, aType):
18589 r"""SetZoneConnection(FOOTPRINT self, ZONE_CONNECTION aType)"""
18590 return _pcbnew.FOOTPRINT_SetZoneConnection(self, aType)
18591
18593 r"""GetZoneConnection(FOOTPRINT self) -> ZONE_CONNECTION"""
18594 return _pcbnew.FOOTPRINT_GetZoneConnection(self)
18595
18596 def GetAttributes(self):
18597 r"""GetAttributes(FOOTPRINT self) -> int"""
18598 return _pcbnew.FOOTPRINT_GetAttributes(self)
18599
18600 def SetAttributes(self, aAttributes):
18601 r"""SetAttributes(FOOTPRINT self, int aAttributes)"""
18602 return _pcbnew.FOOTPRINT_SetAttributes(self, aAttributes)
18603
18604 def SetFlag(self, aFlag):
18605 r"""SetFlag(FOOTPRINT self, int aFlag)"""
18606 return _pcbnew.FOOTPRINT_SetFlag(self, aFlag)
18607
18608 def IncrementFlag(self):
18609 r"""IncrementFlag(FOOTPRINT self)"""
18610 return _pcbnew.FOOTPRINT_IncrementFlag(self)
18611
18612 def GetFlag(self):
18613 r"""GetFlag(FOOTPRINT self) -> int"""
18614 return _pcbnew.FOOTPRINT_GetFlag(self)
18615
18616 def IsNetTie(self):
18617 r"""IsNetTie(FOOTPRINT self) -> bool"""
18618 return _pcbnew.FOOTPRINT_IsNetTie(self)
18619
18621 r"""GetNetTiePadGroups(FOOTPRINT self) -> std::vector< wxString,std::allocator< wxString > > const &"""
18622 return _pcbnew.FOOTPRINT_GetNetTiePadGroups(self)
18623
18625 r"""ClearNetTiePadGroups(FOOTPRINT self)"""
18626 return _pcbnew.FOOTPRINT_ClearNetTiePadGroups(self)
18627
18628 def AddNetTiePadGroup(self, aGroup):
18629 r"""AddNetTiePadGroup(FOOTPRINT self, wxString aGroup)"""
18630 return _pcbnew.FOOTPRINT_AddNetTiePadGroup(self, aGroup)
18631
18633 r"""MapPadNumbersToNetTieGroups(FOOTPRINT self) -> std::map< wxString,int,std::less< wxString >,std::allocator< std::pair< wxString const,int > > >"""
18634 return _pcbnew.FOOTPRINT_MapPadNumbersToNetTieGroups(self)
18635
18636 def GetNetTiePads(self, aPad):
18637 r"""GetNetTiePads(FOOTPRINT self, PAD aPad) -> PADS_VEC"""
18638 return _pcbnew.FOOTPRINT_GetNetTiePads(self, aPad)
18639
18641 r"""GetLikelyAttribute(FOOTPRINT self) -> int"""
18642 return _pcbnew.FOOTPRINT_GetLikelyAttribute(self)
18643
18644 def MoveAnchorPosition(self, aMoveVector):
18645 r"""MoveAnchorPosition(FOOTPRINT self, VECTOR2I aMoveVector)"""
18646 return _pcbnew.FOOTPRINT_MoveAnchorPosition(self, aMoveVector)
18647
18648 def IsFlipped(self):
18649 r"""IsFlipped(FOOTPRINT self) -> bool"""
18650 return _pcbnew.FOOTPRINT_IsFlipped(self)
18651
18652 def IsConflicting(self):
18653 r"""IsConflicting(FOOTPRINT self) -> bool"""
18654 return _pcbnew.FOOTPRINT_IsConflicting(self)
18655
18656 def IsPlaced(self):
18657 r"""IsPlaced(FOOTPRINT self) -> bool"""
18658 return _pcbnew.FOOTPRINT_IsPlaced(self)
18659
18660 def SetIsPlaced(self, isPlaced):
18661 r"""SetIsPlaced(FOOTPRINT self, bool isPlaced)"""
18662 return _pcbnew.FOOTPRINT_SetIsPlaced(self, isPlaced)
18663
18664 def NeedsPlaced(self):
18665 r"""NeedsPlaced(FOOTPRINT self) -> bool"""
18666 return _pcbnew.FOOTPRINT_NeedsPlaced(self)
18667
18668 def SetNeedsPlaced(self, needsPlaced):
18669 r"""SetNeedsPlaced(FOOTPRINT self, bool needsPlaced)"""
18670 return _pcbnew.FOOTPRINT_SetNeedsPlaced(self, needsPlaced)
18671
18673 r"""LegacyPadsLocked(FOOTPRINT self) -> bool"""
18674 return _pcbnew.FOOTPRINT_LegacyPadsLocked(self)
18675
18676 def CheckFootprintAttributes(self, aErrorHandler):
18677 r"""CheckFootprintAttributes(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
18678 return _pcbnew.FOOTPRINT_CheckFootprintAttributes(self, aErrorHandler)
18679
18680 def CheckPads(self, aErrorHandler):
18681 r"""CheckPads(FOOTPRINT self, std::function< void (PAD const *,int,wxString const &) > const & aErrorHandler)"""
18682 return _pcbnew.FOOTPRINT_CheckPads(self, aErrorHandler)
18683
18684 def CheckShortingPads(self, aErrorHandler):
18685 r"""CheckShortingPads(FOOTPRINT self, std::function< void (PAD const *,PAD const *,VECTOR2I const &) > const & aErrorHandler)"""
18686 return _pcbnew.FOOTPRINT_CheckShortingPads(self, aErrorHandler)
18687
18688 def CheckNetTies(self, aErrorHandler):
18689 r"""CheckNetTies(FOOTPRINT self, std::function< void (BOARD_ITEM const *,BOARD_ITEM const *,BOARD_ITEM const *,VECTOR2I const &) > const & aErrorHandler)"""
18690 return _pcbnew.FOOTPRINT_CheckNetTies(self, aErrorHandler)
18691
18692 def CheckNetTiePadGroups(self, aErrorHandler):
18693 r"""CheckNetTiePadGroups(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
18694 return _pcbnew.FOOTPRINT_CheckNetTiePadGroups(self, aErrorHandler)
18695
18696 def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False, aSkipPlatedPads=False, aSkipNonPlatedPads=False):
18697 r"""TransformPadsToPolySet(FOOTPRINT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aSkipNPTHPadsWihNoCopper=False, bool aSkipPlatedPads=False, bool aSkipNonPlatedPads=False)"""
18698 return _pcbnew.FOOTPRINT_TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper, aSkipPlatedPads, aSkipNonPlatedPads)
18699
18700 def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False):
18701 r"""TransformFPShapesToPolySet(FOOTPRINT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIncludeText=True, bool aIncludeShapes=True, bool aIncludePrivateItems=False)"""
18702 return _pcbnew.FOOTPRINT_TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText, aIncludeShapes, aIncludePrivateItems)
18703
18704 def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc):
18705 r"""TransformFPTextToPolySet(FOOTPRINT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc)"""
18706 return _pcbnew.FOOTPRINT_TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
18707
18708 def GetContextualTextVars(self, aVars):
18709 r"""GetContextualTextVars(FOOTPRINT self, wxArrayString * aVars)"""
18710 return _pcbnew.FOOTPRINT_GetContextualTextVars(self, aVars)
18711
18712 def ResolveTextVar(self, token, aDepth=0):
18713 r"""ResolveTextVar(FOOTPRINT self, wxString token, int aDepth=0) -> bool"""
18714 return _pcbnew.FOOTPRINT_ResolveTextVar(self, token, aDepth)
18715
18716 def HitTestAccurate(self, aPosition, aAccuracy=0):
18717 r"""HitTestAccurate(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool"""
18718 return _pcbnew.FOOTPRINT_HitTestAccurate(self, aPosition, aAccuracy)
18719
18720 def HitTest(self, *args):
18721 r"""
18722 HitTest(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool
18723 HitTest(FOOTPRINT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
18724 """
18725 return _pcbnew.FOOTPRINT_HitTest(self, *args)
18726
18727 def HitTestOnLayer(self, *args):
18728 r"""
18729 HitTestOnLayer(FOOTPRINT self, VECTOR2I aPosition, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
18730 HitTestOnLayer(FOOTPRINT self, BOX2I aRect, bool aContained, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
18731 """
18732 return _pcbnew.FOOTPRINT_HitTestOnLayer(self, *args)
18733
18734 def GetReference(self):
18735 r"""GetReference(FOOTPRINT self) -> wxString"""
18736 return _pcbnew.FOOTPRINT_GetReference(self)
18737
18738 def SetReference(self, aReference):
18739 r"""SetReference(FOOTPRINT self, wxString aReference)"""
18740 return _pcbnew.FOOTPRINT_SetReference(self, aReference)
18741
18743 r"""GetReferenceAsString(FOOTPRINT self) -> wxString"""
18744 return _pcbnew.FOOTPRINT_GetReferenceAsString(self)
18745
18746 def IncrementReference(self, aDelta):
18747 r"""IncrementReference(FOOTPRINT self, int aDelta)"""
18748 return _pcbnew.FOOTPRINT_IncrementReference(self, aDelta)
18749
18750 def GetValue(self):
18751 r"""GetValue(FOOTPRINT self) -> wxString"""
18752 return _pcbnew.FOOTPRINT_GetValue(self)
18753
18754 def SetValue(self, aValue):
18755 r"""SetValue(FOOTPRINT self, wxString aValue)"""
18756 return _pcbnew.FOOTPRINT_SetValue(self, aValue)
18757
18759 r"""GetValueAsString(FOOTPRINT self) -> wxString"""
18760 return _pcbnew.FOOTPRINT_GetValueAsString(self)
18761
18762 def Value(self, *args):
18763 r"""
18764 Value(FOOTPRINT self) -> FP_TEXT
18765 Value(FOOTPRINT self) -> FP_TEXT
18766 """
18767 return _pcbnew.FOOTPRINT_Value(self, *args)
18768
18769 def Reference(self, *args):
18770 r"""
18771 Reference(FOOTPRINT self) -> FP_TEXT
18772 Reference(FOOTPRINT self) -> FP_TEXT
18773 """
18774 return _pcbnew.FOOTPRINT_Reference(self, *args)
18775
18777 r"""GetPropertiesNative(FOOTPRINT self) -> MAP_STRING_STRING"""
18778 return _pcbnew.FOOTPRINT_GetPropertiesNative(self)
18779
18780 def SetPropertiesNative(self, aProps):
18781 r"""SetPropertiesNative(FOOTPRINT self, MAP_STRING_STRING aProps)"""
18782 return _pcbnew.FOOTPRINT_SetPropertiesNative(self, aProps)
18783
18784 def GetPropertyNative(self, aKey):
18785 r"""GetPropertyNative(FOOTPRINT self, wxString aKey) -> wxString"""
18786 return _pcbnew.FOOTPRINT_GetPropertyNative(self, aKey)
18787
18788 def HasProperty(self, aKey):
18789 r"""HasProperty(FOOTPRINT self, wxString aKey) -> bool"""
18790 return _pcbnew.FOOTPRINT_HasProperty(self, aKey)
18791
18792 def SetProperty(self, aKey, aVal):
18793 r"""SetProperty(FOOTPRINT self, wxString aKey, wxString aVal)"""
18794 return _pcbnew.FOOTPRINT_SetProperty(self, aKey, aVal)
18795
18796 def IsBoardOnly(self):
18797 r"""IsBoardOnly(FOOTPRINT self) -> bool"""
18798 return _pcbnew.FOOTPRINT_IsBoardOnly(self)
18799
18800 def SetBoardOnly(self, aIsBoardOnly=True):
18801 r"""SetBoardOnly(FOOTPRINT self, bool aIsBoardOnly=True)"""
18802 return _pcbnew.FOOTPRINT_SetBoardOnly(self, aIsBoardOnly)
18803
18805 r"""IsExcludedFromPosFiles(FOOTPRINT self) -> bool"""
18806 return _pcbnew.FOOTPRINT_IsExcludedFromPosFiles(self)
18807
18808 def SetExcludedFromPosFiles(self, aExclude=True):
18809 r"""SetExcludedFromPosFiles(FOOTPRINT self, bool aExclude=True)"""
18810 return _pcbnew.FOOTPRINT_SetExcludedFromPosFiles(self, aExclude)
18811
18813 r"""IsExcludedFromBOM(FOOTPRINT self) -> bool"""
18814 return _pcbnew.FOOTPRINT_IsExcludedFromBOM(self)
18815
18816 def SetExcludedFromBOM(self, aExclude=True):
18817 r"""SetExcludedFromBOM(FOOTPRINT self, bool aExclude=True)"""
18818 return _pcbnew.FOOTPRINT_SetExcludedFromBOM(self, aExclude)
18819
18821 r"""AllowMissingCourtyard(FOOTPRINT self) -> bool"""
18822 return _pcbnew.FOOTPRINT_AllowMissingCourtyard(self)
18823
18824 def SetAllowMissingCourtyard(self, aAllow=True):
18825 r"""SetAllowMissingCourtyard(FOOTPRINT self, bool aAllow=True)"""
18826 return _pcbnew.FOOTPRINT_SetAllowMissingCourtyard(self, aAllow)
18827
18828 def SetFileFormatVersionAtLoad(self, aVersion):
18829 r"""SetFileFormatVersionAtLoad(FOOTPRINT self, int aVersion)"""
18830 return _pcbnew.FOOTPRINT_SetFileFormatVersionAtLoad(self, aVersion)
18831
18833 r"""GetFileFormatVersionAtLoad(FOOTPRINT self) -> int"""
18834 return _pcbnew.FOOTPRINT_GetFileFormatVersionAtLoad(self)
18835
18836 def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None):
18837 r"""FindPadByNumber(FOOTPRINT self, wxString aPadNumber, PAD aSearchAfterMe=None) -> PAD"""
18838 return _pcbnew.FOOTPRINT_FindPadByNumber(self, aPadNumber, aSearchAfterMe)
18839
18840 def GetPad(self, *args):
18841 r"""GetPad(FOOTPRINT self, VECTOR2I aPosition, LSET aLayerMask=LSET::AllLayersMask()) -> PAD"""
18842 return _pcbnew.FOOTPRINT_GetPad(self, *args)
18843
18844 def GetPadCount(self, *args):
18845 r"""GetPadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
18846 return _pcbnew.FOOTPRINT_GetPadCount(self, *args)
18847
18848 def GetUniquePadCount(self, *args):
18849 r"""GetUniquePadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
18850 return _pcbnew.FOOTPRINT_GetUniquePadCount(self, *args)
18851
18852 def GetNextPadNumber(self, aLastPadName):
18853 r"""GetNextPadNumber(FOOTPRINT self, wxString aLastPadName) -> wxString"""
18854 return _pcbnew.FOOTPRINT_GetNextPadNumber(self, aLastPadName)
18855
18856 def GetTypeName(self):
18857 r"""GetTypeName(FOOTPRINT self) -> wxString"""
18858 return _pcbnew.FOOTPRINT_GetTypeName(self)
18859
18860 def GetArea(self, aPadding=0):
18861 r"""GetArea(FOOTPRINT self, int aPadding=0) -> double"""
18862 return _pcbnew.FOOTPRINT_GetArea(self, aPadding)
18863
18864 def GetLink(self):
18865 r"""GetLink(FOOTPRINT self) -> KIID"""
18866 return _pcbnew.FOOTPRINT_GetLink(self)
18867
18868 def SetLink(self, aLink):
18869 r"""SetLink(FOOTPRINT self, KIID aLink)"""
18870 return _pcbnew.FOOTPRINT_SetLink(self, aLink)
18871
18872 def DuplicateItem(self, aItem, aAddToFootprint=False):
18873 r"""DuplicateItem(FOOTPRINT self, BOARD_ITEM aItem, bool aAddToFootprint=False) -> BOARD_ITEM"""
18874 return _pcbnew.FOOTPRINT_DuplicateItem(self, aItem, aAddToFootprint)
18875
18876 def Add3DModel(self, a3DModel):
18877 r"""Add3DModel(FOOTPRINT self, FP_3DMODEL a3DModel)"""
18878 return _pcbnew.FOOTPRINT_Add3DModel(self, a3DModel)
18879
18880 def RunOnChildren(self, aFunction):
18881 r"""RunOnChildren(FOOTPRINT self, std::function< void (BOARD_ITEM *) > const & aFunction)"""
18882 return _pcbnew.FOOTPRINT_RunOnChildren(self, aFunction)
18883
18884 def ViewGetLOD(self, aLayer, aView):
18885 r"""ViewGetLOD(FOOTPRINT self, int aLayer, KIGFX::VIEW * aView) -> double"""
18886 return _pcbnew.FOOTPRINT_ViewGetLOD(self, aLayer, aView)
18887
18888 @staticmethod
18889 def IsLibNameValid(aName):
18890 r"""IsLibNameValid(wxString aName) -> bool"""
18891 return _pcbnew.FOOTPRINT_IsLibNameValid(aName)
18892
18893 @staticmethod
18894 def StringLibNameInvalidChars(aUserReadable):
18895 r"""StringLibNameInvalidChars(bool aUserReadable) -> wxChar const *"""
18896 return _pcbnew.FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
18897
18898 def FootprintNeedsUpdate(self, aLibFootprint):
18899 r"""FootprintNeedsUpdate(FOOTPRINT self, FOOTPRINT aLibFootprint) -> bool"""
18900 return _pcbnew.FOOTPRINT_FootprintNeedsUpdate(self, aLibFootprint)
18901
18902 def SetInitialComments(self, aInitialComments):
18903 r"""SetInitialComments(FOOTPRINT self, wxArrayString * aInitialComments)"""
18904 return _pcbnew.FOOTPRINT_SetInitialComments(self, aInitialComments)
18905
18906 def CoverageRatio(self, aCollector):
18907 r"""CoverageRatio(FOOTPRINT self, GENERAL_COLLECTOR const & aCollector) -> double"""
18908 return _pcbnew.FOOTPRINT_CoverageRatio(self, aCollector)
18909
18910 @staticmethod
18911 def GetCoverageArea(aItem, aCollector):
18912 r"""GetCoverageArea(BOARD_ITEM aItem, GENERAL_COLLECTOR const & aCollector) -> double"""
18913 return _pcbnew.FOOTPRINT_GetCoverageArea(aItem, aCollector)
18914
18916 r"""GetInitialComments(FOOTPRINT self) -> wxArrayString const *"""
18917 return _pcbnew.FOOTPRINT_GetInitialComments(self)
18918
18919 def GetCourtyard(self, aLayer):
18920 r"""GetCourtyard(FOOTPRINT self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
18921 return _pcbnew.FOOTPRINT_GetCourtyard(self, aLayer)
18922
18923 def BuildCourtyardCaches(self, aErrorHandler=None):
18924 r"""BuildCourtyardCaches(FOOTPRINT self, OUTLINE_ERROR_HANDLER * aErrorHandler=None)"""
18925 return _pcbnew.FOOTPRINT_BuildCourtyardCaches(self, aErrorHandler)
18926
18927 def GetEffectiveShape(self, *args):
18928 r"""GetEffectiveShape(FOOTPRINT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
18929 return _pcbnew.FOOTPRINT_GetEffectiveShape(self, *args)
18930
18931
18932 #def SaveToLibrary(self,filename):
18933 # return SaveFootprintToLibrary(filename,self)
18934
18935 #
18936 # add function, clears the thisown to avoid python from deleting
18937 # the object in the garbage collector
18938 #
18939
18940 def GetProperties(self):
18941 """ Returns footprint properties map. """
18942 properties = self.GetPropertiesNative()
18943 return {str(k): str(v) for k, v in properties.items()}
18944
18945 def GetProperty(self, key):
18946 """ Returns property with a given key if it exists, throws KeyError otherwise. """
18947 if self.HasProperty(key):
18948 return self.GetPropertyNative(key)
18949 else:
18950 raise KeyError("Property not found: " + key)
18951
18952 def SetProperties(self, properties):
18953 """ Sets footprint properties map. """
18954 wxproperties = MAP_STRING_STRING()
18955 for k, v in properties.items():
18956 wxproperties[k] = v
18957 self.SetPropertiesNative(wxproperties)
18958
18959
18960
18961# Register FOOTPRINT in _pcbnew:
18962_pcbnew.FOOTPRINT_swigregister(FOOTPRINT)
18963
18965 r"""FOOTPRINT_ClassOf(EDA_ITEM aItem) -> bool"""
18966 return _pcbnew.FOOTPRINT_ClassOf(aItem)
18967FP_is_LOCKED = _pcbnew.FP_is_LOCKED
18968
18969FP_is_PLACED = _pcbnew.FP_is_PLACED
18970
18971FP_to_PLACE = _pcbnew.FP_to_PLACE
18972
18973FP_PADS_are_LOCKED = _pcbnew.FP_PADS_are_LOCKED
18974
18975
18977 r"""FOOTPRINT_IsLibNameValid(wxString aName) -> bool"""
18978 return _pcbnew.FOOTPRINT_IsLibNameValid(aName)
18979
18981 r"""FOOTPRINT_StringLibNameInvalidChars(bool aUserReadable) -> wxChar const *"""
18982 return _pcbnew.FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
18983
18984def FOOTPRINT_GetCoverageArea(aItem, aCollector):
18985 r"""FOOTPRINT_GetCoverageArea(BOARD_ITEM aItem, GENERAL_COLLECTOR const & aCollector) -> double"""
18986 return _pcbnew.FOOTPRINT_GetCoverageArea(aItem, aCollector)
18987
18989 r"""Proxy of C++ FOOTPRINT::cmp_drawings class."""
18990
18991 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18992 __repr__ = _swig_repr
18993
18994 def __call__(self, itemA, itemB):
18995 r"""__call__(cmp_drawings self, BOARD_ITEM itemA, BOARD_ITEM itemB) -> bool"""
18996 return _pcbnew.cmp_drawings___call__(self, itemA, itemB)
18997
18998 def __init__(self):
18999 r"""__init__(cmp_drawings self) -> cmp_drawings"""
19000 _pcbnew.cmp_drawings_swiginit(self, _pcbnew.new_cmp_drawings())
19001 __swig_destroy__ = _pcbnew.delete_cmp_drawings
19002
19003# Register cmp_drawings in _pcbnew:
19004_pcbnew.cmp_drawings_swigregister(cmp_drawings)
19005
19007 r"""Proxy of C++ FOOTPRINT::cmp_pads class."""
19008
19009 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19010 __repr__ = _swig_repr
19011
19012 def __call__(self, aFirst, aSecond):
19013 r"""__call__(cmp_pads self, PAD aFirst, PAD aSecond) -> bool"""
19014 return _pcbnew.cmp_pads___call__(self, aFirst, aSecond)
19015
19016 def __init__(self):
19017 r"""__init__(cmp_pads self) -> cmp_pads"""
19018 _pcbnew.cmp_pads_swiginit(self, _pcbnew.new_cmp_pads())
19019 __swig_destroy__ = _pcbnew.delete_cmp_pads
19020
19021# Register cmp_pads in _pcbnew:
19022_pcbnew.cmp_pads_swigregister(cmp_pads)
19023
19025 r"""Proxy of C++ FOOTPRINT::cmp_zones class."""
19026
19027 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19028 __repr__ = _swig_repr
19029
19030 def __call__(self, aFirst, aSecond):
19031 r"""__call__(cmp_zones self, FP_ZONE aFirst, FP_ZONE aSecond) -> bool"""
19032 return _pcbnew.cmp_zones___call__(self, aFirst, aSecond)
19033
19034 def __init__(self):
19035 r"""__init__(cmp_zones self) -> cmp_zones"""
19036 _pcbnew.cmp_zones_swiginit(self, _pcbnew.new_cmp_zones())
19037 __swig_destroy__ = _pcbnew.delete_cmp_zones
19038
19039# Register cmp_zones in _pcbnew:
19040_pcbnew.cmp_zones_swigregister(cmp_zones)
19041
19043 r"""Proxy of C++ std::vector< FP_3DMODEL > class."""
19044
19045 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19046 __repr__ = _swig_repr
19047
19048 def iterator(self):
19049 r"""iterator(VECTOR_FP_3DMODEL self) -> SwigPyIterator"""
19050 return _pcbnew.VECTOR_FP_3DMODEL_iterator(self)
19051 def __iter__(self):
19052 return self.iterator()
19053
19054 def __nonzero__(self):
19055 r"""__nonzero__(VECTOR_FP_3DMODEL self) -> bool"""
19056 return _pcbnew.VECTOR_FP_3DMODEL___nonzero__(self)
19057
19058 def __bool__(self):
19059 r"""__bool__(VECTOR_FP_3DMODEL self) -> bool"""
19060 return _pcbnew.VECTOR_FP_3DMODEL___bool__(self)
19061
19062 def __len__(self):
19063 r"""__len__(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
19064 return _pcbnew.VECTOR_FP_3DMODEL___len__(self)
19065
19066 def __getslice__(self, i, j):
19067 r"""__getslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j) -> VECTOR_FP_3DMODEL"""
19068 return _pcbnew.VECTOR_FP_3DMODEL___getslice__(self, i, j)
19069
19070 def __setslice__(self, *args):
19071 r"""
19072 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)
19073 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j, VECTOR_FP_3DMODEL v)
19074 """
19075 return _pcbnew.VECTOR_FP_3DMODEL___setslice__(self, *args)
19076
19077 def __delslice__(self, i, j):
19078 r"""__delslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)"""
19079 return _pcbnew.VECTOR_FP_3DMODEL___delslice__(self, i, j)
19080
19081 def __delitem__(self, *args):
19082 r"""
19083 __delitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i)
19084 __delitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice)
19085 """
19086 return _pcbnew.VECTOR_FP_3DMODEL___delitem__(self, *args)
19087
19088 def __getitem__(self, *args):
19089 r"""
19090 __getitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice) -> VECTOR_FP_3DMODEL
19091 __getitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i) -> FP_3DMODEL
19092 """
19093 return _pcbnew.VECTOR_FP_3DMODEL___getitem__(self, *args)
19094
19095 def __setitem__(self, *args):
19096 r"""
19097 __setitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice, VECTOR_FP_3DMODEL v)
19098 __setitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice)
19099 __setitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, FP_3DMODEL x)
19100 """
19101 return _pcbnew.VECTOR_FP_3DMODEL___setitem__(self, *args)
19102
19103 def pop(self):
19104 r"""pop(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
19105 return _pcbnew.VECTOR_FP_3DMODEL_pop(self)
19106
19107 def append(self, x):
19108 r"""append(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
19109 return _pcbnew.VECTOR_FP_3DMODEL_append(self, x)
19110
19111 def empty(self):
19112 r"""empty(VECTOR_FP_3DMODEL self) -> bool"""
19113 return _pcbnew.VECTOR_FP_3DMODEL_empty(self)
19114
19115 def size(self):
19116 r"""size(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
19117 return _pcbnew.VECTOR_FP_3DMODEL_size(self)
19118
19119 def swap(self, v):
19120 r"""swap(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL v)"""
19121 return _pcbnew.VECTOR_FP_3DMODEL_swap(self, v)
19122
19123 def begin(self):
19124 r"""begin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
19125 return _pcbnew.VECTOR_FP_3DMODEL_begin(self)
19126
19127 def end(self):
19128 r"""end(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
19129 return _pcbnew.VECTOR_FP_3DMODEL_end(self)
19130
19131 def rbegin(self):
19132 r"""rbegin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
19133 return _pcbnew.VECTOR_FP_3DMODEL_rbegin(self)
19134
19135 def rend(self):
19136 r"""rend(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
19137 return _pcbnew.VECTOR_FP_3DMODEL_rend(self)
19138
19139 def clear(self):
19140 r"""clear(VECTOR_FP_3DMODEL self)"""
19141 return _pcbnew.VECTOR_FP_3DMODEL_clear(self)
19142
19143 def get_allocator(self):
19144 r"""get_allocator(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::allocator_type"""
19145 return _pcbnew.VECTOR_FP_3DMODEL_get_allocator(self)
19146
19147 def pop_back(self):
19148 r"""pop_back(VECTOR_FP_3DMODEL self)"""
19149 return _pcbnew.VECTOR_FP_3DMODEL_pop_back(self)
19150
19151 def erase(self, *args):
19152 r"""
19153 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos) -> std::vector< FP_3DMODEL >::iterator
19154 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator first, std::vector< FP_3DMODEL >::iterator last) -> std::vector< FP_3DMODEL >::iterator
19155 """
19156 return _pcbnew.VECTOR_FP_3DMODEL_erase(self, *args)
19157
19158 def __init__(self, *args):
19159 r"""
19160 __init__(VECTOR_FP_3DMODEL self) -> VECTOR_FP_3DMODEL
19161 __init__(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL other) -> VECTOR_FP_3DMODEL
19162 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size) -> VECTOR_FP_3DMODEL
19163 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size, FP_3DMODEL value) -> VECTOR_FP_3DMODEL
19164 """
19165 _pcbnew.VECTOR_FP_3DMODEL_swiginit(self, _pcbnew.new_VECTOR_FP_3DMODEL(*args))
19166
19167 def push_back(self, x):
19168 r"""push_back(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
19169 return _pcbnew.VECTOR_FP_3DMODEL_push_back(self, x)
19170
19171 def front(self):
19172 r"""front(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
19173 return _pcbnew.VECTOR_FP_3DMODEL_front(self)
19174
19175 def back(self):
19176 r"""back(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
19177 return _pcbnew.VECTOR_FP_3DMODEL_back(self)
19178
19179 def assign(self, n, x):
19180 r"""assign(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)"""
19181 return _pcbnew.VECTOR_FP_3DMODEL_assign(self, n, x)
19182
19183 def resize(self, *args):
19184 r"""
19185 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size)
19186 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size, FP_3DMODEL x)
19187 """
19188 return _pcbnew.VECTOR_FP_3DMODEL_resize(self, *args)
19189
19190 def insert(self, *args):
19191 r"""
19192 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, FP_3DMODEL x) -> std::vector< FP_3DMODEL >::iterator
19193 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)
19194 """
19195 return _pcbnew.VECTOR_FP_3DMODEL_insert(self, *args)
19196
19197 def reserve(self, n):
19198 r"""reserve(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n)"""
19199 return _pcbnew.VECTOR_FP_3DMODEL_reserve(self, n)
19200
19201 def capacity(self):
19202 r"""capacity(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
19203 return _pcbnew.VECTOR_FP_3DMODEL_capacity(self)
19204 __swig_destroy__ = _pcbnew.delete_VECTOR_FP_3DMODEL
19205
19206# Register VECTOR_FP_3DMODEL in _pcbnew:
19207_pcbnew.VECTOR_FP_3DMODEL_swigregister(VECTOR_FP_3DMODEL)
19208
19209
19210def GetPluginForPath(libname):
19211 plugin_type = IO_MGR.GuessPluginTypeFromLibPath( libname );
19212 return IO_MGR.PluginFind(plugin_type)
19213
19215 plug = GetPluginForPath(libname)
19216 return plug.FootprintEnumerate(libname)
19217
19218def FootprintLoad(libname,name,preserveUUID=False):
19219 plug = GetPluginForPath(libname)
19220 return plug.FootprintLoad(libname,name,preserveUUID)
19221
19222def FootprintSave(libname,module):
19223 plug = GetPluginForPath(libname)
19224 return plug.FootprintSave(libname,module)
19225
19226def FootprintDelete(libname,name):
19227 plug = GetPluginForPath(libname)
19228 plug.FootprintDelete(libname,name)
19229
19231 plug = GetPluginForPath(libname)
19232 plug.FootprintLibCreate(libname)
19233
19235 plug = GetPluginForPath(libname)
19236 plug.FootprintLibDelete(libname)
19237
19239 plug = GetPluginForPath(libname)
19240 plug.FootprintLibIsWritable(libname)
19241
19243 r"""Proxy of C++ PYTHON_FOOTPRINT_WIZARD_LIST class."""
19244
19245 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19246 __repr__ = _swig_repr
19247
19248 @staticmethod
19249 def register_wizard(wizard):
19250 r"""register_wizard(PyObject * wizard)"""
19251 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
19252
19253 @staticmethod
19255 r"""deregister_wizard(PyObject * wizard)"""
19256 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
19257
19258 def __init__(self):
19259 r"""__init__(PYTHON_FOOTPRINT_WIZARD_LIST self) -> PYTHON_FOOTPRINT_WIZARD_LIST"""
19260 _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swiginit(self, _pcbnew.new_PYTHON_FOOTPRINT_WIZARD_LIST())
19261 __swig_destroy__ = _pcbnew.delete_PYTHON_FOOTPRINT_WIZARD_LIST
19262
19263# Register PYTHON_FOOTPRINT_WIZARD_LIST in _pcbnew:
19264_pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swigregister(PYTHON_FOOTPRINT_WIZARD_LIST)
19265
19267 r"""PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(PyObject * wizard)"""
19268 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
19269
19271 r"""PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(PyObject * wizard)"""
19272 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
19273
19275 r"""Proxy of C++ PYTHON_ACTION_PLUGINS class."""
19276
19277 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19278 __repr__ = _swig_repr
19279
19280 @staticmethod
19281 def register_action(wizard):
19282 r"""register_action(PyObject * wizard)"""
19283 return _pcbnew.PYTHON_ACTION_PLUGINS_register_action(wizard)
19284
19285 @staticmethod
19287 r"""deregister_action(PyObject * wizard)"""
19288 return _pcbnew.PYTHON_ACTION_PLUGINS_deregister_action(wizard)
19289
19290 def __init__(self):
19291 r"""__init__(PYTHON_ACTION_PLUGINS self) -> PYTHON_ACTION_PLUGINS"""
19292 _pcbnew.PYTHON_ACTION_PLUGINS_swiginit(self, _pcbnew.new_PYTHON_ACTION_PLUGINS())
19293 __swig_destroy__ = _pcbnew.delete_PYTHON_ACTION_PLUGINS
19294
19295# Register PYTHON_ACTION_PLUGINS in _pcbnew:
19296_pcbnew.PYTHON_ACTION_PLUGINS_swigregister(PYTHON_ACTION_PLUGINS)
19297
19299 r"""PYTHON_ACTION_PLUGINS_register_action(PyObject * wizard)"""
19300 return _pcbnew.PYTHON_ACTION_PLUGINS_register_action(wizard)
19301
19303 r"""PYTHON_ACTION_PLUGINS_deregister_action(PyObject * wizard)"""
19304 return _pcbnew.PYTHON_ACTION_PLUGINS_deregister_action(wizard)
19305
19306
19307def ToMM(iu):
19308 if type(iu) in [int,float]:
19309 return float(iu) / float(pcbIUScale.IU_PER_MM)
19310 elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
19311 return tuple(map(ToMM,iu))
19312 else:
19313 raise TypeError("ToMM() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
19314
19315def FromMM(mm):
19316 if type(mm) in [int,float]:
19317 return int(float(mm) * float(pcbIUScale.IU_PER_MM))
19318 elif type(mm) in [wxPoint,wxSize,VECTOR2I]:
19319 return tuple(map(FromMM,mm))
19320 else:
19321 raise TypeError("FromMM() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mm)))
19322
19323def ToMils(iu):
19324 if type(iu) in [int,float]:
19325 return float(iu) / float(pcbIUScale.IU_PER_MILS)
19326 elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
19327 return tuple(map(ToMils,iu))
19328 else:
19329 raise TypeError("ToMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
19330
19331def FromMils(mils):
19332 if type(mils) in [int,float]:
19333 return int(float(mils)*float(pcbIUScale.IU_PER_MILS))
19334 elif type(mils) in [wxPoint,wxSize,VECTOR2I]:
19335 return tuple(map(FromMils,mils))
19336 else:
19337 raise TypeError("FromMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mils)))
19338
19339def PutOnGridMM(value, gridSizeMM):
19340 thresh = FromMM(gridSizeMM)
19341 return round(value/thresh)*thresh
19342
19343def PutOnGridMils(value, gridSizeMils):
19344 thresh = FromMils(gridSizeMils)
19345 return round(value/thresh)*thresh
19346
19347def wxSizeMM(mmx,mmy):
19348 return wxSize(FromMM(mmx),FromMM(mmy))
19349
19350def wxSizeMils(mmx,mmy):
19351 return wxSize(FromMils(mmx),FromMils(mmy))
19352
19353def wxPointMM(mmx,mmy):
19354 return wxPoint(FromMM(mmx),FromMM(mmy))
19355
19356def wxPointMils(mmx,mmy):
19357 return wxPoint(FromMils(mmx),FromMils(mmy))
19358
19359def VECTOR2I_MM(mmx,mmy):
19360 return VECTOR2I(FromMM(mmx),FromMM(mmy))
19361
19362def VECTOR2I_Mils(mmx,mmy):
19363 return VECTOR2I(FromMils(mmx),FromMils(mmy))
19364
19365def wxRectMM(x,y,wx,wy):
19366 x = int(FromMM(x))
19367 y = int(FromMM(y))
19368 wx = int(FromMM(wx))
19369 wy = int (FromMM(wy))
19370 return wxRect(x,y,wx,wy)
19371
19372def wxRectMils(x,y,wx,wy):
19373 x = int(FromMils(x))
19374 y = int(FromMils(y))
19375 wx = int(FromMils(wx))
19376 wy = int(FromMils(wy))
19377 return wxRect(x,y,wx,wy)
19378
19379
19381 """Return the semantic version of KiCad"""
19382 return GetSemanticVersion()
19383
19385 """Return the full, git-based version of KiCad"""
19386 return GetBuildVersion()
19387
19388
19389
def __init__(self)
Definition: pcbnew.py:14524
def Run(self)
Definition: pcbnew.py:5000
def GetShowToolbarButton(self)
Definition: pcbnew.py:4991
def GetIconFileName(self, dark)
Definition: pcbnew.py:4994
def GetCategoryName(self)
Definition: pcbnew.py:4985
def GetDescription(self)
Definition: pcbnew.py:4988
def GetName(self)
Definition: pcbnew.py:4982
def __init__(self)
Definition: pcbnew.py:4970
def defaults(self)
Definition: pcbnew.py:4977
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:7680
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:10010
def GetLocalClearance(self, aSource)
Definition: pcbnew.py:10018
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9966
def GetLocalClearanceOverrides(self, aSource)
Definition: pcbnew.py:10014
def SetLocalRatsnestVisible(self, aVisible)
Definition: pcbnew.py:10030
def GetUnescapedShortNetname(self)
Definition: pcbnew.py:10006
def SetNetCode(self, *args)
Definition: pcbnew.py:9987
def GetLocalRatsnestVisible(self)
Definition: pcbnew.py:10034
def GetEffectiveNetClass(self)
Definition: pcbnew.py:10022
def SetNet(self, aNetInfo)
Definition: pcbnew.py:9979
def SetAuxOrigin(self, aOrigin)
Definition: pcbnew.py:10600
def IsLayerEnabled(self, aLayerId)
Definition: pcbnew.py:10548
def GetCustomDiffPairWidth(self)
Definition: pcbnew.py:10501
def GetLineThickness(self, aLayer)
Definition: pcbnew.py:10576
def GetTextSize(self, aLayer)
Definition: pcbnew.py:10580
def SetEnabledLayers(self, aMask)
Definition: pcbnew.py:10544
def SetDefaultZoneSettings(self, aSettings)
Definition: pcbnew.py:10402
def UseCustomDiffPairDimensions(self, *args)
Definition: pcbnew.py:10521
def SetCustomDiffPairGap(self, aGap)
Definition: pcbnew.py:10505
def GetLayerClass(self, aLayer)
Definition: pcbnew.py:10596
def LoadFromFile(self, *args)
Definition: pcbnew.py:10375
def GetCurrentDiffPairWidth(self)
Definition: pcbnew.py:10528
def SetBoardThickness(self, aThickness)
Definition: pcbnew.py:10564
def GetSeverity(self, aDRCErrorCode)
Definition: pcbnew.py:10390
def GetHolePlatingThickness(self)
Definition: pcbnew.py:10572
def GetBiggestClearanceValue(self)
Definition: pcbnew.py:10422
def Ignore(self, aDRCErrorCode)
Definition: pcbnew.py:10394
def CloneFrom(self, aOther)
Definition: pcbnew.py:10665
def SetCustomTrackWidth(self, aWidth)
Definition: pcbnew.py:10442
def SetDiffPairIndex(self, aIndex)
Definition: pcbnew.py:10493
def GetTextUpright(self, aLayer)
Definition: pcbnew.py:10592
def GetStackupDescriptor(self, *args)
Definition: pcbnew.py:10379
def GetCurrentNetClassName(self)
Definition: pcbnew.py:10406
def GetDefaultZoneSettings(self)
Definition: pcbnew.py:10398
def UseCustomTrackViaSize(self, *args)
Definition: pcbnew.py:10482
def SetViaSizeIndex(self, aIndex)
Definition: pcbnew.py:10454
def GetCustomDiffPairViaGap(self)
Definition: pcbnew.py:10517
def SetCustomViaSize(self, aSize)
Definition: pcbnew.py:10462
def SetGridOrigin(self, aOrigin)
Definition: pcbnew.py:10608
def SetCustomViaDrill(self, aDrill)
Definition: pcbnew.py:10474
def GetSmallestClearanceValue(self)
Definition: pcbnew.py:10426
def GetTextItalic(self, aLayer)
Definition: pcbnew.py:10588
def GetCurrentDiffPairViaGap(self)
Definition: pcbnew.py:10536
def SetCopperLayerCount(self, aNewLayerCount)
Definition: pcbnew.py:10556
def __init__(self, *args)
Definition: pcbnew.py:10368
def GetTextThickness(self, aLayer)
Definition: pcbnew.py:10584
def SetCustomDiffPairWidth(self, aWidth)
Definition: pcbnew.py:10497
def SetTrackWidthIndex(self, aIndex)
Definition: pcbnew.py:10434
def SetCustomDiffPairViaGap(self, aGap)
Definition: pcbnew.py:10513
def SetZoneSettings(self, aSettings)
Definition: pcbnew.py:9922
def Delete(self, item)
Definition: pcbnew.py:9946
def DeleteNative(self, aItem)
Definition: pcbnew.py:9914
def Remove(self, item)
Definition: pcbnew.py:9936
def RemoveNative(self, *args)
Definition: pcbnew.py:9910
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9902
def Add(self, item)
Definition: pcbnew.py:9926
def AddNative(self, *args)
Definition: pcbnew.py:9906
def IsTented(self)
Definition: pcbnew.py:9474
def IsOnLayer(self, aLayer)
Definition: pcbnew.py:9530
def GetLayer(self)
Definition: pcbnew.py:9506
def IsKnockout(self)
Definition: pcbnew.py:9534
def IsConnected(self)
Definition: pcbnew.py:9462
def SetIsKnockout(self, aKnockout)
Definition: pcbnew.py:9538
def Move(self, aMoveVector)
Definition: pcbnew.py:9554
def SetStartEnd(self, start, end)
Definition: pcbnew.py:9644
def SetParentGroup(self, aGroup)
Definition: pcbnew.py:9434
def GetParent(self)
Definition: pcbnew.py:9486
def Flip(self, aCentre, aFlipLeftRight)
Definition: pcbnew.py:9562
def SetStroke(self, aStroke)
Definition: pcbnew.py:9502
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9429
def GetParentGroup(self)
Definition: pcbnew.py:9438
def Rotate(self, aRotCentre, aAngle)
Definition: pcbnew.py:9558
def GetLayerSet(self)
Definition: pcbnew.py:9510
def Cast(self)
Definition: pcbnew.py:9581
def SetLayer(self, aLayer)
Definition: pcbnew.py:9518
def SetLayerSet(self, aLayers)
Definition: pcbnew.py:9514
def GetCenter(self)
Definition: pcbnew.py:9450
def SwapItemData(self, aImage)
Definition: pcbnew.py:9526
def GetEffectiveHoleShape(self)
Definition: pcbnew.py:9482
def GetStroke(self)
Definition: pcbnew.py:9498
def IsOnCopperLayer(self)
Definition: pcbnew.py:9466
def GetY(self)
Definition: pcbnew.py:9446
def GetX(self)
Definition: pcbnew.py:9442
def SetX(self, aX)
Definition: pcbnew.py:9454
def IsLocked(self)
Definition: pcbnew.py:9542
def DeleteStructure(self)
Definition: pcbnew.py:9550
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:9478
def HasLineStroke(self)
Definition: pcbnew.py:9494
def GetLayerName(self)
Definition: pcbnew.py:9573
def GetParentFootprint(self)
Definition: pcbnew.py:9490
def Duplicate(self)
Definition: pcbnew.py:9522
def SetLocked(self, aLocked)
Definition: pcbnew.py:9546
def HasHole(self)
Definition: pcbnew.py:9470
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:9577
def SetY(self, aY)
Definition: pcbnew.py:9458
def SetPos(self, p)
Definition: pcbnew.py:9640
def GetBoard(self, *args)
Definition: pcbnew.py:9566
def OnBoardHighlightNetChanged(self, aBoard)
Definition: pcbnew.py:17561
def OnBoardItemAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:17533
def OnBoardItemChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:17553
def OnBoardNetSettingsChanged(self, aBoard)
Definition: pcbnew.py:17549
def __init__(self)
Definition: pcbnew.py:17565
def OnBoardItemsAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:17537
def OnBoardItemRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:17541
def OnBoardItemsChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:17557
def OnBoardItemsRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:17545
def DeleteMARKERs(self, *args)
Definition: pcbnew.py:17762
def RemoveListener(self, aListener)
Definition: pcbnew.py:18096
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:17676
def IsHighLightNetON(self)
Definition: pcbnew.py:17801
def GetUserUnits(self)
Definition: pcbnew.py:17912
def IsFootprintLayerVisible(self, aLayer)
Definition: pcbnew.py:17869
def GetNetsByNetcode(self)
Definition: pcbnew.py:18162
def BuildListOfNets(self)
Definition: pcbnew.py:17977
def GetPadFast(self, aPosition, aLayerMask)
Definition: pcbnew.py:18051
def SetLayerDescr(self, aIndex, aLayer)
Definition: pcbnew.py:17957
def GetLayerName(self, aLayer)
Definition: pcbnew.py:17944
def GetPad(self, *args)
Definition: pcbnew.py:18055
def GetLayerType(self, aLayer)
Definition: pcbnew.py:17961
def SetCopperLayerCount(self, aCount)
Definition: pcbnew.py:17817
def RemoveAllListeners(self)
Definition: pcbnew.py:18100
def GetCopperLayerCount(self)
Definition: pcbnew.py:17813
def LayerDepth(self, aStartLayer, aEndLayer)
Definition: pcbnew.py:17821
def GetTracks(self)
Definition: pcbnew.py:18139
def GetPads(self)
Definition: pcbnew.py:17973
def FillItemMap(self, aMap)
Definition: pcbnew.py:17742
def GetPageSettings(self)
Definition: pcbnew.py:17885
def SetProject(self, aProject, aReferenceOnly=False)
Definition: pcbnew.py:17773
def GetFileName(self)
Definition: pcbnew.py:17614
def GroupsSanityCheck(self, repair=False)
Definition: pcbnew.py:18112
def TestZoneIntersection(self, aZone1, aZone2)
Definition: pcbnew.py:18047
def ResetNetHighLight(self)
Definition: pcbnew.py:17789
def Save(self, filename)
Definition: pcbnew.py:18141
def SetOutlinesChainingEpsilon(self, aValue)
Definition: pcbnew.py:17932
def RemoveNative(self, *args)
Definition: pcbnew.py:17714
def GetAllNetClasses(self)
Definition: pcbnew.py:18175
def GetFirstFootprint(self)
Definition: pcbnew.py:17730
def GetOutlinesChainingEpsilon(self)
Definition: pcbnew.py:17928
def ResolveTextVar(self, token, aDepth)
Definition: pcbnew.py:17680
def SetHighLightNet(self, aNetCode, aMulti=False)
Definition: pcbnew.py:17797
def ComputeBoundingBox(self, aBoardEdgesOnly=False)
Definition: pcbnew.py:17999
def UpdateRatsnestExclusions(self)
Definition: pcbnew.py:17785
def Zones(self, *args)
Definition: pcbnew.py:17639
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:17581
def GroupsSanityCheckInternal(self, repair)
Definition: pcbnew.py:18116
def OnItemsChanged(self, aItems)
Definition: pcbnew.py:18108
def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False)
Definition: pcbnew.py:18076
def GetBoardUse(self)
Definition: pcbnew.py:17594
def GetLayerID(self, aLayerName)
Definition: pcbnew.py:17940
def GetVisibleElements(self)
Definition: pcbnew.py:17849
def GetItem(self, aID)
Definition: pcbnew.py:17738
def IsElementVisible(self, aLayer)
Definition: pcbnew.py:17861
def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1)
Definition: pcbnew.py:18064
def FinalizeBulkRemove(self, aRemovedItems)
Definition: pcbnew.py:17722
def AddListener(self, aListener)
Definition: pcbnew.py:18092
def Drawings(self, *args)
Definition: pcbnew.py:17632
def AddNative(self, *args)
Definition: pcbnew.py:17710
def SetVisibleAlls(self)
Definition: pcbnew.py:17857
def GetHighLightNetCodes(self)
Definition: pcbnew.py:17793
def OnItemChanged(self, aItem)
Definition: pcbnew.py:18104
def GetFootprints(self)
Definition: pcbnew.py:18137
def TracksInNet(self, aNetCode)
Definition: pcbnew.py:18072
def GetStandardLayerName(aLayerId)
Definition: pcbnew.py:17953
def IsFootprintHolder(self)
Definition: pcbnew.py:17606
def FinalizeBulkAdd(self, aNewItems)
Definition: pcbnew.py:17718
def SetTentVias(self, aFlag)
Definition: pcbnew.py:17881
def FindNet(self, *args)
Definition: pcbnew.py:17981
def Groups(self, *args)
Definition: pcbnew.py:17657
def SetTitleBlock(self, aTitleBlock)
Definition: pcbnew.py:17908
def HighLightON(self, aValue=True)
Definition: pcbnew.py:17805
def GetMaxClearanceValue(self)
Definition: pcbnew.py:18080
def SetVisibleLayers(self, aLayerMask)
Definition: pcbnew.py:17845
def IncrementTimeStamp(self)
Definition: pcbnew.py:17598
def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
Definition: pcbnew.py:18043
def CacheTriangulation(self, *args)
Definition: pcbnew.py:17726
def GetNetInfo(self, *args)
Definition: pcbnew.py:17988
def GetViasDimensionsList(self)
Definition: pcbnew.py:18150
def IsLayerVisible(self, aLayer)
Definition: pcbnew.py:17837
def ResolveDRCExclusions(self, aCreateMarkers)
Definition: pcbnew.py:17781
def Markers(self, *args)
Definition: pcbnew.py:17646
def GetTimeStamp(self)
Definition: pcbnew.py:17602
def SetPlotOptions(self, aOptions)
Definition: pcbnew.py:17897
def GetEnabledLayers(self)
Definition: pcbnew.py:17825
def FindFootprintByReference(self, aReference)
Definition: pcbnew.py:18007
def HighLightOFF(self)
Definition: pcbnew.py:17809
def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
Definition: pcbnew.py:17936
def SetGenerator(self, aGenerator)
Definition: pcbnew.py:17702
def IsEmpty(self)
Definition: pcbnew.py:17690
def GetZoneList(self, aIncludeZonesInFootprints=False)
Definition: pcbnew.py:18035
def GetNetClasses(self)
Definition: pcbnew.py:18144
def SetAreasNetCodesFromNetNames(self)
Definition: pcbnew.py:18027
def GetTentVias(self)
Definition: pcbnew.py:17877
def GetProperties(self)
Definition: pcbnew.py:17668
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:17889
def ClearProject(self)
Definition: pcbnew.py:17777
def DeleteAllFootprints(self)
Definition: pcbnew.py:17734
def GetAreaCount(self)
Definition: pcbnew.py:18039
def GetBoardEdgesBoundingBox(self)
Definition: pcbnew.py:18003
def ClassOf(aItem)
Definition: pcbnew.py:17586
def GetArea(self, index)
Definition: pcbnew.py:18031
def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False)
Definition: pcbnew.py:17924
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:17698
def UpdateUserUnits(self, aItem, aView)
Definition: pcbnew.py:17920
def GetVisibleLayers(self)
Definition: pcbnew.py:17841
def GetNetClassAssignmentCandidates(self)
Definition: pcbnew.py:18015
def Tracks(self, *args)
Definition: pcbnew.py:17618
def Footprints(self, *args)
Definition: pcbnew.py:17625
def ConvertKIIDsToCrossReferences(self, aSource)
Definition: pcbnew.py:17750
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:17694
def SetProperties(self, aProps)
Definition: pcbnew.py:17672
def GetTrackLength(self, aTrack)
Definition: pcbnew.py:18068
def SanitizeNetcodes(self)
Definition: pcbnew.py:18088
def GetCurrentNetClassName(self)
Definition: pcbnew.py:18147
def SetLayerType(self, aLayer, aLayerType)
Definition: pcbnew.py:17965
def GetNodesCount(self, aNet=-1)
Definition: pcbnew.py:17969
def GetNetcodeFromNetname(self, netname)
Definition: pcbnew.py:18168
def FindFootprintByPath(self, aPath)
Definition: pcbnew.py:18011
def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
Definition: pcbnew.py:18019
def AllConnectedItems(self)
Definition: pcbnew.py:17664
def GetNetsByName(self)
Definition: pcbnew.py:18156
def SetFileName(self, aFileName)
Definition: pcbnew.py:17610
def SetEnabledLayers(self, aLayerMask)
Definition: pcbnew.py:17829
def GetGenerator(self)
Definition: pcbnew.py:17706
def GetTrackWidthList(self)
Definition: pcbnew.py:18153
def GroupLegalOps(self, selection)
Definition: pcbnew.py:18120
def BuildConnectivity(self, aReporter=None)
Definition: pcbnew.py:17758
def SynchronizeProperties(self)
Definition: pcbnew.py:18023
def GetConnectivity(self)
Definition: pcbnew.py:17754
def GetTitleBlock(self, *args)
Definition: pcbnew.py:17901
def SetElementVisibility(self, aLayer, aNewState)
Definition: pcbnew.py:17865
def GetDrawings(self)
Definition: pcbnew.py:18138
def GetProject(self)
Definition: pcbnew.py:17769
def IsLayerEnabled(self, aLayer)
Definition: pcbnew.py:17833
def SetLayerName(self, aLayer, aLayerName)
Definition: pcbnew.py:17948
def ConvertCrossReferencesToKIIDs(self, aSource)
Definition: pcbnew.py:17746
def GetDesignSettings(self)
Definition: pcbnew.py:17873
def GetPlotOptions(self)
Definition: pcbnew.py:17893
def MapNets(self, aDestBoard)
Definition: pcbnew.py:18084
def SetBoardUse(self, aUse)
Definition: pcbnew.py:17590
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:17916
def GetNetCount(self)
Definition: pcbnew.py:17995
def GetItemSet(self)
Definition: pcbnew.py:17653
def SetVisibleElements(self, aMask)
Definition: pcbnew.py:17853
def GetY(self)
Definition: pcbnew.py:5307
def IntersectsCircle(self, aCenter, aRadius)
Definition: pcbnew.py:5411
def Contains(self, *args)
Definition: pcbnew.py:5291
def GetWidth(self)
Definition: pcbnew.py:5323
def Merge(self, *args)
Definition: pcbnew.py:5430
def Centre(self)
Definition: pcbnew.py:5279
def __init__(self, *args)
Definition: pcbnew.py:5268
def GetHeight(self)
Definition: pcbnew.py:5327
def SetOrigin(self, *args)
Definition: pcbnew.py:5355
def GetBoundingBoxRotated(self, aRotCenter, aAngle)
Definition: pcbnew.py:5437
def Offset(self, *args)
Definition: pcbnew.py:5369
def GetTop(self)
Definition: pcbnew.py:5343
def SetX(self, val)
Definition: pcbnew.py:5376
def __eq__(self, aOther)
Definition: pcbnew.py:5475
def GetCenter(self)
Definition: pcbnew.py:5347
def GetBottom(self)
Definition: pcbnew.py:5335
def GetSizeMax(self)
Definition: pcbnew.py:5351
def GetRight(self)
Definition: pcbnew.py:5331
def Format(self)
Definition: pcbnew.py:5419
def SetY(self, val)
Definition: pcbnew.py:5380
def SquaredDistance(self, *args)
Definition: pcbnew.py:5453
def RevertYAxis(self)
Definition: pcbnew.py:5441
def Intersect(self, aRect)
Definition: pcbnew.py:5399
def SetWidth(self, val)
Definition: pcbnew.py:5384
def Distance(self, *args)
Definition: pcbnew.py:5460
def FarthestPointTo(self, aPoint)
Definition: pcbnew.py:5471
def SetEnd(self, *args)
Definition: pcbnew.py:5392
def GetEnd(self)
Definition: pcbnew.py:5319
def Intersects(self, *args)
Definition: pcbnew.py:5403
def SetHeight(self, val)
Definition: pcbnew.py:5388
def GetArea(self)
Definition: pcbnew.py:5445
def GetPosition(self)
Definition: pcbnew.py:5315
def SetSize(self, *args)
Definition: pcbnew.py:5362
def GetOrigin(self)
Definition: pcbnew.py:5311
def GetLeft(self)
Definition: pcbnew.py:5339
def Normalize(self)
Definition: pcbnew.py:5287
def Move(self, aMoveVector)
Definition: pcbnew.py:5283
def GetX(self)
Definition: pcbnew.py:5303
def Diagonal(self)
Definition: pcbnew.py:5449
def __ne__(self, aOther)
Definition: pcbnew.py:5479
def ClosestPointTo(self, aPoint)
Definition: pcbnew.py:5467
def GetSize(self)
Definition: pcbnew.py:5299
def IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
Definition: pcbnew.py:5415
def SetMaximum(self)
Definition: pcbnew.py:5275
def IsValid(self)
Definition: pcbnew.py:5483
def Inflate(self, *args)
Definition: pcbnew.py:5423
def __init__(self, *args)
Definition: pcbnew.py:6293
Definition: pcbnew.py:10711
def __init__(self)
Definition: pcbnew.py:10722
def GetBrightness(self)
Definition: pcbnew.py:2501
def Desaturate(self)
Definition: pcbnew.py:2477
def Inverted(self)
Definition: pcbnew.py:2497
def SetFromWxString(self, aColorString)
Definition: pcbnew.py:2421
def LegacyMix(self, aColor)
Definition: pcbnew.py:2441
def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0)
Definition: pcbnew.py:2407
def Darkened(self, aFactor)
Definition: pcbnew.py:2485
def ToHexString(self)
Definition: pcbnew.py:2433
def ToHSL(self, aOutHue, aOutSaturation, aOutValue)
Definition: pcbnew.py:2453
def FindNearestLegacyColor(aR, aG, aB)
Definition: pcbnew.py:2518
def ToColour(self)
Definition: pcbnew.py:2437
def Darken(self, aFactor)
Definition: pcbnew.py:2465
def Mix(self, aColor, aFactor)
Definition: pcbnew.py:2489
def ToCSSString(self)
Definition: pcbnew.py:2425
def Brighten(self, aFactor)
Definition: pcbnew.py:2461
def Distance(self, other)
Definition: pcbnew.py:2513
def ToU32(self)
Definition: pcbnew.py:2445
def FromHSL(self, aInHue, aInSaturation, aInLightness)
Definition: pcbnew.py:2457
def WithAlpha(self, aAlpha)
Definition: pcbnew.py:2493
def SetFromHexString(self, aColorString)
Definition: pcbnew.py:2429
def Invert(self)
Definition: pcbnew.py:2469
def Saturate(self, aFactor)
Definition: pcbnew.py:2473
def Brightened(self, aFactor)
Definition: pcbnew.py:2481
def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False)
Definition: pcbnew.py:2505
def __init__(self, *args)
Definition: pcbnew.py:2411
def FromHSV(self, aInH, aInS, aInV)
Definition: pcbnew.py:2509
def FromU32(self, aPackedColor)
Definition: pcbnew.py:2449
def GetConnectedPads(self, *args)
Definition: pcbnew.py:10832
def RunOnUnconnectedEdges(self, aFunc)
Definition: pcbnew.py:10843
def Add(self, aItem)
Definition: pcbnew.py:10772
def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False)
Definition: pcbnew.py:10867
def GetUnconnectedCount(self, aVisibileOnly)
Definition: pcbnew.py:10812
def GetConnectivityAlgo(self)
Definition: pcbnew.py:10879
def Update(self, aItem)
Definition: pcbnew.py:10780
def RemoveInvalidRefs(self)
Definition: pcbnew.py:10891
def Remove(self, aItem)
Definition: pcbnew.py:10776
def GetConnectedTracks(self, aItem)
Definition: pcbnew.py:10828
def GetLocalRatsnest(self)
Definition: pcbnew.py:10863
def BlockRatsnestItems(self, aItems)
Definition: pcbnew.py:10875
def IsConnectedOnLayer(self, *args)
Definition: pcbnew.py:10816
def RecalculateRatsnest(self, aCommit=None)
Definition: pcbnew.py:10808
def GetNetclassMap(self)
Definition: pcbnew.py:10899
def ComputeLocalRatsnest(self, *args)
Definition: pcbnew.py:10859
def ClearLocalRatsnest(self)
Definition: pcbnew.py:10851
def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False)
Definition: pcbnew.py:10804
def GetPadCount(self, aNet=-1)
Definition: pcbnew.py:10824
def HideLocalRatsnest(self)
Definition: pcbnew.py:10855
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:10895
def Move(self, aDelta)
Definition: pcbnew.py:10784
def GetFromToCache(self)
Definition: pcbnew.py:10903
def Build(self, *args)
Definition: pcbnew.py:10765
def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None)
Definition: pcbnew.py:10847
def __init__(self, *args)
Definition: pcbnew.py:10758
def PropagateNets(self, aCommit=None)
Definition: pcbnew.py:10800
def MarkItemNetAsDirty(self, aItem)
Definition: pcbnew.py:10887
def GetNodeCount(self, aNet=-1)
Definition: pcbnew.py:10820
def GetNetItems(self, aNetCode, aTypes)
Definition: pcbnew.py:10871
def GetRatsnestForNet(self, aNet)
Definition: pcbnew.py:10796
def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0)
Definition: pcbnew.py:10839
def __init__(self)
Definition: pcbnew.py:8845
def __init__(self, *args)
Definition: pcbnew.py:10311
def __eq__(self, aOther)
Definition: pcbnew.py:10318
def __lt__(self, aOther)
Definition: pcbnew.py:10322
def begin(self)
Definition: pcbnew.py:11836
def clear(self)
Definition: pcbnew.py:11852
def resize(self, *args)
Definition: pcbnew.py:11896
def __delslice__(self, i, j)
Definition: pcbnew.py:11790
def end(self)
Definition: pcbnew.py:11840
def front(self)
Definition: pcbnew.py:11884
def assign(self, n, x)
Definition: pcbnew.py:11892
def size(self)
Definition: pcbnew.py:11828
def push_back(self, x)
Definition: pcbnew.py:11880
def swap(self, v)
Definition: pcbnew.py:11832
def get_allocator(self)
Definition: pcbnew.py:11856
def back(self)
Definition: pcbnew.py:11888
def push_front(self, x)
Definition: pcbnew.py:11914
def __getitem__(self, *args)
Definition: pcbnew.py:11801
def pop_front(self)
Definition: pcbnew.py:11910
def erase(self, *args)
Definition: pcbnew.py:11864
def append(self, x)
Definition: pcbnew.py:11820
def __getslice__(self, i, j)
Definition: pcbnew.py:11779
def empty(self)
Definition: pcbnew.py:11824
def __setslice__(self, *args)
Definition: pcbnew.py:11783
def __delitem__(self, *args)
Definition: pcbnew.py:11794
def pop_back(self)
Definition: pcbnew.py:11860
def __nonzero__(self)
Definition: pcbnew.py:11767
def insert(self, *args)
Definition: pcbnew.py:11903
def __init__(self, *args)
Definition: pcbnew.py:11871
def __iter__(self)
Definition: pcbnew.py:11764
def __setitem__(self, *args)
Definition: pcbnew.py:11808
def rbegin(self)
Definition: pcbnew.py:11844
def iterator(self)
Definition: pcbnew.py:11761
def __len__(self)
Definition: pcbnew.py:11775
def __bool__(self)
Definition: pcbnew.py:11771
def rend(self)
Definition: pcbnew.py:11848
def pop(self)
Definition: pcbnew.py:11816
def __init__(self, l=2, r=4)
Definition: pcbnew.py:8995
def GetPrecisionString(self)
Definition: pcbnew.py:8999
def __init__(self, aDiameter, a_NotPlated)
Definition: pcbnew.py:8956
def __truediv__(self, other)
Definition: pcbnew.py:14464
def AsTenthsOfADegree(self)
Definition: pcbnew.py:14339
def __mul__(self, other)
Definition: pcbnew.py:14458
def IsCardinal(self)
Definition: pcbnew.py:14349
def AsRadians(self)
Definition: pcbnew.py:14343
def IsCardinal90(self)
Definition: pcbnew.py:14353
def IsZero(self)
Definition: pcbnew.py:14357
def AsDegrees(self)
Definition: pcbnew.py:14335
def __rmul__(self, other)
Definition: pcbnew.py:14461
def Invert(self)
Definition: pcbnew.py:14373
def NormalizeNegative(self)
Definition: pcbnew.py:14413
def __iadd__(self, aAngle)
Definition: pcbnew.py:14433
def Normalize(self)
Definition: pcbnew.py:14409
def IsVertical(self)
Definition: pcbnew.py:14365
def Normalize90(self)
Definition: pcbnew.py:14417
def Normalize180(self)
Definition: pcbnew.py:14421
def IsParallelTo(self, aAngle)
Definition: pcbnew.py:14369
def __init__(self, *args)
Definition: pcbnew.py:14326
def Normalize720(self)
Definition: pcbnew.py:14425
def __isub__(self, aAngle)
Definition: pcbnew.py:14437
def __sub__(self, other)
Definition: pcbnew.py:14453
def IsHorizontal(self)
Definition: pcbnew.py:14361
def Tan(self)
Definition: pcbnew.py:14385
def Sin(self)
Definition: pcbnew.py:14377
def KeepUpright(self)
Definition: pcbnew.py:14429
def Arctan2(y, x)
Definition: pcbnew.py:14405
def Cos(self)
Definition: pcbnew.py:14381
def __add__(self, other)
Definition: pcbnew.py:14448
def ClearSelected(self)
Definition: pcbnew.py:1674
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:1621
def SetSelected(self)
Definition: pcbnew.py:1666
def SetBrightened(self)
Definition: pcbnew.py:1670
def Clone(self)
Definition: pcbnew.py:1793
def GetFlags(self)
Definition: pcbnew.py:1714
def IsForceVisible(self)
Definition: pcbnew.py:1754
def IsRollover(self)
Definition: pcbnew.py:1662
def IsNew(self)
Definition: pcbnew.py:1642
def __lt__(self, aItem)
Definition: pcbnew.py:1832
def GetState(self, type)
Definition: pcbnew.py:1686
def IsEntered(self)
Definition: pcbnew.py:1654
def ClearEditFlags(self)
Definition: pcbnew.py:1730
def SetParent(self, aParent)
Definition: pcbnew.py:1634
def GetStatus(self)
Definition: pcbnew.py:1694
def GetFocusPosition(self)
Definition: pcbnew.py:1785
def IsType(self, aScanTypes)
Definition: pcbnew.py:1746
def SetForceVisible(self, aEnable)
Definition: pcbnew.py:1750
def Type(self)
Definition: pcbnew.py:1626
def GetMenuImage(self)
Definition: pcbnew.py:1813
def ViewBBox(self)
Definition: pcbnew.py:1841
def HitTest(self, *args)
Definition: pcbnew.py:1766
def GetMsgPanelInfo(self, aFrame, aList)
Definition: pcbnew.py:1758
def IsBrightened(self)
Definition: pcbnew.py:1658
def ClearTempFlags(self)
Definition: pcbnew.py:1726
def SetModified(self)
Definition: pcbnew.py:1682
def GetClass(self)
Definition: pcbnew.py:1801
def XorFlags(self, aMask)
Definition: pcbnew.py:1706
def IsReplaceable(self)
Definition: pcbnew.py:1828
def RenderAsBitmap(self, aWorldScale)
Definition: pcbnew.py:1734
def ViewGetLayers(self, aLayers, aCount)
Definition: pcbnew.py:1845
def SetStatus(self, aStatus)
Definition: pcbnew.py:1698
def ClearBrightened(self)
Definition: pcbnew.py:1678
def ClearFlags(self, *args)
Definition: pcbnew.py:1710
def Replace(self, *args)
Definition: pcbnew.py:1821
def GetParent(self)
Definition: pcbnew.py:1630
def IsShownAsBitmap(self)
Definition: pcbnew.py:1742
def GetSortPosition(self)
Definition: pcbnew.py:1789
def GetEditFlags(self)
Definition: pcbnew.py:1722
def SetIsShownAsBitmap(self, aBitmap)
Definition: pcbnew.py:1738
def IsMoving(self)
Definition: pcbnew.py:1646
def HasFlag(self, aFlag)
Definition: pcbnew.py:1718
def Sort(aLeft, aRight)
Definition: pcbnew.py:1837
def IsSelected(self)
Definition: pcbnew.py:1650
def IsModified(self)
Definition: pcbnew.py:1638
def SetFlags(self, aMask)
Definition: pcbnew.py:1702
def GetTypeDesc(self)
Definition: pcbnew.py:1805
def SetState(self, type, state)
Definition: pcbnew.py:1690
def GetFriendlyName(self)
Definition: pcbnew.py:1762
def Visit(self, inspector, testData, aScanTypes)
Definition: pcbnew.py:1797
def Matches(self, aSearchData, aAuxData)
Definition: pcbnew.py:1817
def GetItemDescription(self, aUnitsProvider)
Definition: pcbnew.py:1809
def GetBoundingBox(self)
Definition: pcbnew.py:1773
def GetPosition(self)
Definition: pcbnew.py:1777
def SetPosition(self, aPos)
Definition: pcbnew.py:1781
def MilsToIU(self, mils)
Definition: pcbnew.py:1882
def __init__(self, aIUPerMM)
Definition: pcbnew.py:1870
def IUTomm(self, iu)
Definition: pcbnew.py:1874
def IUToMils(self, iu)
Definition: pcbnew.py:1886
def mmToIU(self, mm)
Definition: pcbnew.py:1878
def GetArcAngle(self)
Definition: pcbnew.py:14720
def SetEnd(self, aEnd)
Definition: pcbnew.py:14660
def SHAPE_T_asString(self)
Definition: pcbnew.py:14560
def EndsSwapped(self)
Definition: pcbnew.py:14724
def GetShape(self)
Definition: pcbnew.py:14616
def SetRight(self, val)
Definition: pcbnew.py:14688
def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:14799
def ShapeGetMsgPanelInfo(self, aFrame, aList)
Definition: pcbnew.py:14791
def GetWidth(self)
Definition: pcbnew.py:14604
def SetStart(self, aStart)
Definition: pcbnew.py:14636
def GetTopLeft(self)
Definition: pcbnew.py:14672
def DupPolyPointsList(self, aBuffer)
Definition: pcbnew.py:14756
def SetBezierC2(self, aPt)
Definition: pcbnew.py:14704
def IsFilled(self)
Definition: pcbnew.py:14572
def SetFillColor(self, aColor)
Definition: pcbnew.py:14596
def SetPolyShape(self, aShape)
Definition: pcbnew.py:14775
def GetBotRight(self)
Definition: pcbnew.py:14676
def GetRadius(self)
Definition: pcbnew.py:14740
def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False)
Definition: pcbnew.py:14716
def SetArcGeometry(self, aStart, aMid, aEnd)
Definition: pcbnew.py:14744
def GetStartY(self)
Definition: pcbnew.py:14628
def SwapShape(self, aImage)
Definition: pcbnew.py:14552
def GetFillColor(self)
Definition: pcbnew.py:14592
def SetEndX(self, x)
Definition: pcbnew.py:14668
def CalcArcAngles(self, aStartAngle, aEndAngle)
Definition: pcbnew.py:14736
def SetWidth(self, aWidth)
Definition: pcbnew.py:14600
def RebuildBezierToSegmentsPointsList(self, aMinSegLen)
Definition: pcbnew.py:14783
def SetIsAnnotationProxy(self, aIsProxy=True)
Definition: pcbnew.py:14568
def GetStart(self)
Definition: pcbnew.py:14624
def GetEnd(self)
Definition: pcbnew.py:14648
def GetEndY(self)
Definition: pcbnew.py:14652
def SetFilled(self, aFlag)
Definition: pcbnew.py:14576
def SetPolyPoints(self, aPoints)
Definition: pcbnew.py:14779
def IsPolyShapeValid(self)
Definition: pcbnew.py:14771
def SetEndY(self, y)
Definition: pcbnew.py:14664
def GetPointCount(self)
Definition: pcbnew.py:14760
def GetLength(self)
Definition: pcbnew.py:14795
def GetBezierPoints(self)
Definition: pcbnew.py:14752
def MakeEffectiveShapes(self, aEdgeOnly=False)
Definition: pcbnew.py:14787
def GetRectCorners(self)
Definition: pcbnew.py:14732
def IsClosed(self)
Definition: pcbnew.py:14588
def GetPolyShape(self, *args)
Definition: pcbnew.py:14764
def SetStartX(self, x)
Definition: pcbnew.py:14644
def SetTop(self, val)
Definition: pcbnew.py:14680
def Compare(self, aOther)
Definition: pcbnew.py:14803
def SetStartY(self, y)
Definition: pcbnew.py:14640
def IsAnnotationProxy(self)
Definition: pcbnew.py:14564
def GetBezierC2(self)
Definition: pcbnew.py:14708
def SetCenter(self, aCenter)
Definition: pcbnew.py:14712
def GetFriendlyName(self)
Definition: pcbnew.py:14620
def SetBezierC1(self, aPt)
Definition: pcbnew.py:14696
def GetEndX(self)
Definition: pcbnew.py:14656
def SetLeft(self, val)
Definition: pcbnew.py:14684
def GetFillMode(self)
Definition: pcbnew.py:14584
def ShowShape(self)
Definition: pcbnew.py:14556
def SetShape(self, aShape)
Definition: pcbnew.py:14612
def SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
Definition: pcbnew.py:14748
def SetFillMode(self, aFill)
Definition: pcbnew.py:14580
def SetBottom(self, val)
Definition: pcbnew.py:14692
def GetArcMid(self)
Definition: pcbnew.py:14728
def GetStartX(self)
Definition: pcbnew.py:14632
def GetBezierC1(self)
Definition: pcbnew.py:14700
def GetEffectiveWidth(self)
Definition: pcbnew.py:14608
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:14547
def SetAttributes(self, *args)
Definition: pcbnew.py:2778
def GetTextStyleName(self)
Definition: pcbnew.py:2906
def GetTextWidth(self)
Definition: pcbnew.py:2829
def GetHyperlink(self)
Definition: pcbnew.py:2954
def GotoPageHref(aDestination)
Definition: pcbnew.py:2977
def SetTextX(self, aX)
Definition: pcbnew.py:2857
def SetText(self, aText)
Definition: pcbnew.py:2670
def GetLinePositions(self, aPositions, aLineCount)
Definition: pcbnew.py:2910
def Offset(self, aOffset)
Definition: pcbnew.py:2865
def GetHorizJustify(self)
Definition: pcbnew.py:2746
def IsDefaultFormatting(self)
Definition: pcbnew.py:2793
def SetVertJustify(self, aType)
Definition: pcbnew.py:2750
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:2662
def GetFontName(self)
Definition: pcbnew.py:2805
def SetMultilineAllowed(self, aAllow)
Definition: pcbnew.py:2734
def GetTextBox(self, aLine=-1, aInvertY=False)
Definition: pcbnew.py:2898
def SetTextThickness(self, aWidth)
Definition: pcbnew.py:2674
def GetTextThickness(self)
Definition: pcbnew.py:2678
def Replace(self, aSearchData)
Definition: pcbnew.py:2789
def SetTextSize(self, aNewSize)
Definition: pcbnew.py:2817
def SetTextAngleDegrees(self, aOrientation)
Definition: pcbnew.py:2694
def IsMultilineAllowed(self)
Definition: pcbnew.py:2738
def SetFont(self, aFont)
Definition: pcbnew.py:2797
def IsKeepUpright(self)
Definition: pcbnew.py:2762
def ClearBoundingBoxCache(self)
Definition: pcbnew.py:2930
def GetEffectiveTextShapeNative(self, *args)
Definition: pcbnew.py:2887
def SetBold(self, aBold)
Definition: pcbnew.py:2710
def SwapText(self, aTradingPartner)
Definition: pcbnew.py:2770
def SetTextPos(self, aPoint)
Definition: pcbnew.py:2849
def AddRenderCacheGlyph(self, aPoly)
Definition: pcbnew.py:2942
def HasHyperlink(self)
Definition: pcbnew.py:2950
def Empty(self)
Definition: pcbnew.py:2869
def GetAttributes(self)
Definition: pcbnew.py:2785
def SetTextHeight(self, aHeight)
Definition: pcbnew.py:2833
def GetTextAngle(self)
Definition: pcbnew.py:2690
def SetKeepUpright(self, aKeepUpright)
Definition: pcbnew.py:2758
def GetRenderCache(self, *args)
Definition: pcbnew.py:2934
def GetVertJustify(self)
Definition: pcbnew.py:2754
def SetVisible(self, aVisible)
Definition: pcbnew.py:2718
def GetTextPos(self)
Definition: pcbnew.py:2853
def SetTextColor(self, aColor)
Definition: pcbnew.py:2841
def SetTextAngle(self, aAngle)
Definition: pcbnew.py:2686
def SwapAttributes(self, aTradingPartner)
Definition: pcbnew.py:2766
def ClearRenderCache(self)
Definition: pcbnew.py:2926
def RemoveHyperlink(self)
Definition: pcbnew.py:2962
def GetText(self)
Definition: pcbnew.py:2658
def TextHitTest(self, *args)
Definition: pcbnew.py:2891
def GetLineSpacing(self)
Definition: pcbnew.py:2813
def IsVisible(self)
Definition: pcbnew.py:2722
def GetEffectiveTextShape(self, aTriangulate=True, aUseTextRotation=True)
Definition: pcbnew.py:2983
def IsItalic(self)
Definition: pcbnew.py:2706
def Format(self, aFormatter, aNestLevel, aControlBits)
Definition: pcbnew.py:2914
def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0)
Definition: pcbnew.py:2682
def ValidateHyperlink(aURL)
Definition: pcbnew.py:2967
def SetTextY(self, aY)
Definition: pcbnew.py:2861
def SetupRenderCache(self, aResolvedText, aAngle)
Definition: pcbnew.py:2938
def SetHyperlink(self, aLink)
Definition: pcbnew.py:2958
def GetDrawPos(self)
Definition: pcbnew.py:2922
def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED)
Definition: pcbnew.py:2883
def SetHorizJustify(self, aType)
Definition: pcbnew.py:2742
def CopyText(self, aSrc)
Definition: pcbnew.py:2774
def GetTextColor(self)
Definition: pcbnew.py:2845
def GetFont(self)
Definition: pcbnew.py:2801
def GetTextAngleDegrees(self)
Definition: pcbnew.py:2698
def __init__(self, *args)
Definition: pcbnew.py:2650
def MapVertJustify(aVertJustify)
Definition: pcbnew.py:2879
def HasTextVars(self)
Definition: pcbnew.py:2666
def SetTextWidth(self, aWidth)
Definition: pcbnew.py:2825
def GetTextHeight(self)
Definition: pcbnew.py:2837
def SetMirrored(self, isMirrored)
Definition: pcbnew.py:2726
def SetItalic(self, aItalic)
Definition: pcbnew.py:2702
def GetTextSize(self)
Definition: pcbnew.py:2821
def IsGotoPageHref(aHref, aDestination=None)
Definition: pcbnew.py:2972
def IsBold(self)
Definition: pcbnew.py:2714
def SetLineSpacing(self, aLineSpacing)
Definition: pcbnew.py:2809
def IsMirrored(self)
Definition: pcbnew.py:2730
def Compare(self, aOther)
Definition: pcbnew.py:2946
def GetDrawRotation(self)
Definition: pcbnew.py:2918
def GetInterline(self)
Definition: pcbnew.py:2902
def MapHorizJustify(aHorizJustify)
Definition: pcbnew.py:2874
def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
Definition: pcbnew.py:9079
def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
Definition: pcbnew.py:9087
def SetFormat(self, *args)
Definition: pcbnew.py:9083
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:9091
def GetOffset(self)
Definition: pcbnew.py:9075
def __init__(self, aPcb)
Definition: pcbnew.py:9070
def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:8926
def __init__(self, aBoard)
Definition: pcbnew.py:8921
def __init__(self, *args)
Definition: pcbnew.py:2086
def FileLength(self)
Definition: pcbnew.py:2098
def __init__(self, *args)
Definition: pcbnew.py:2202
def append(self, x)
Definition: pcbnew.py:11486
def iterator(self)
Definition: pcbnew.py:11427
def clear(self)
Definition: pcbnew.py:11518
def front(self)
Definition: pcbnew.py:11550
def pop_front(self)
Definition: pcbnew.py:11576
def end(self)
Definition: pcbnew.py:11506
def rbegin(self)
Definition: pcbnew.py:11510
def pop_back(self)
Definition: pcbnew.py:11526
def empty(self)
Definition: pcbnew.py:11490
def swap(self, v)
Definition: pcbnew.py:11498
def resize(self, *args)
Definition: pcbnew.py:11562
def __len__(self)
Definition: pcbnew.py:11441
def __setitem__(self, *args)
Definition: pcbnew.py:11474
def __setslice__(self, *args)
Definition: pcbnew.py:11449
def push_back(self, x)
Definition: pcbnew.py:11546
def begin(self)
Definition: pcbnew.py:11502
def push_front(self, x)
Definition: pcbnew.py:11580
def __init__(self, *args)
Definition: pcbnew.py:11537
def __iter__(self)
Definition: pcbnew.py:11430
def back(self)
Definition: pcbnew.py:11554
def __bool__(self)
Definition: pcbnew.py:11437
def __getitem__(self, *args)
Definition: pcbnew.py:11467
def assign(self, n, x)
Definition: pcbnew.py:11558
def insert(self, *args)
Definition: pcbnew.py:11569
def get_allocator(self)
Definition: pcbnew.py:11522
def __delitem__(self, *args)
Definition: pcbnew.py:11460
def rend(self)
Definition: pcbnew.py:11514
def __getslice__(self, i, j)
Definition: pcbnew.py:11445
def __delslice__(self, i, j)
Definition: pcbnew.py:11456
def erase(self, *args)
Definition: pcbnew.py:11530
def pop(self)
Definition: pcbnew.py:11482
def size(self)
Definition: pcbnew.py:11494
def __nonzero__(self)
Definition: pcbnew.py:11433
def CheckFootprintAttributes(self, aErrorHandler)
Definition: pcbnew.py:18676
def Models(self, *args)
Definition: pcbnew.py:18486
def IsExcludedFromBOM(self)
Definition: pcbnew.py:18812
def IsExcludedFromPosFiles(self)
Definition: pcbnew.py:18804
def LegacyPadsLocked(self)
Definition: pcbnew.py:18672
def GetPadCount(self, *args)
Definition: pcbnew.py:18844
def CoverageRatio(self, aCollector)
Definition: pcbnew.py:18906
def GetPad(self, *args)
Definition: pcbnew.py:18840
def SetDescription(self, aDoc)
Definition: pcbnew.py:18533
def MapPadNumbersToNetTieGroups(self)
Definition: pcbnew.py:18632
def GetBoundingBox(self, *args)
Definition: pcbnew.py:18443
def GetAttributes(self)
Definition: pcbnew.py:18596
def Value(self, *args)
Definition: pcbnew.py:18762
def SetAttributes(self, aAttributes)
Definition: pcbnew.py:18600
def GetPrivateLayers(self)
Definition: pcbnew.py:18411
def ClearAllNets(self)
Definition: pcbnew.py:18427
def SetAllowMissingCourtyard(self, aAllow=True)
Definition: pcbnew.py:18824
def GetProperties(self)
Definition: pcbnew.py:18940
def AddNative(self, *args)
Definition: pcbnew.py:18419
def SetFPID(self, aFPID)
Definition: pcbnew.py:18517
def StringLibNameInvalidChars(aUserReadable)
Definition: pcbnew.py:18894
def GetProperty(self, key)
Definition: pcbnew.py:18945
def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
Definition: pcbnew.py:18704
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:18708
def GetReferenceAsString(self)
Definition: pcbnew.py:18742
def NeedsPlaced(self)
Definition: pcbnew.py:18664
def SetKeywords(self, aKeywords)
Definition: pcbnew.py:18541
def MoveAnchorPosition(self, aMoveVector)
Definition: pcbnew.py:18644
def GetTypeName(self)
Definition: pcbnew.py:18856
def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None)
Definition: pcbnew.py:18836
def SetFPIDAsString(self, aFPID)
Definition: pcbnew.py:18525
def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False)
Definition: pcbnew.py:18700
def SetReference(self, aReference)
Definition: pcbnew.py:18738
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:18580
def GetCoverageArea(aItem, aCollector)
Definition: pcbnew.py:18911
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:18505
def GetLink(self)
Definition: pcbnew.py:18864
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:18884
def GetValue(self)
Definition: pcbnew.py:18750
def CheckNetTiePadGroups(self, aErrorHandler)
Definition: pcbnew.py:18692
def RemoveNative(self, *args)
Definition: pcbnew.py:18423
def GetLikelyAttribute(self)
Definition: pcbnew.py:18640
def SetProperty(self, aKey, aVal)
Definition: pcbnew.py:18792
def GetDescription(self)
Definition: pcbnew.py:18529
def GetCourtyard(self, aLayer)
Definition: pcbnew.py:18919
def DuplicateItem(self, aItem, aAddToFootprint=False)
Definition: pcbnew.py:18872
def IsConflicting(self)
Definition: pcbnew.py:18652
def CheckPads(self, aErrorHandler)
Definition: pcbnew.py:18680
def RunOnChildren(self, aFunction)
Definition: pcbnew.py:18880
def HasThroughHolePads(self)
Definition: pcbnew.py:18482
def Zones(self, *args)
Definition: pcbnew.py:18468
def SetValue(self, aValue)
Definition: pcbnew.py:18754
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:18557
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:18561
def SetFlag(self, aFlag)
Definition: pcbnew.py:18604
def GetLocalClearance(self, *args)
Definition: pcbnew.py:18565
def SetIsPlaced(self, isPlaced)
Definition: pcbnew.py:18660
def SetProperties(self, properties)
Definition: pcbnew.py:18952
def GetNetTiePadGroups(self)
Definition: pcbnew.py:18620
def GetNetTiePads(self, aPad)
Definition: pcbnew.py:18636
def __init__(self, *args)
Definition: pcbnew.py:18397
def AddNetTiePadGroup(self, aGroup)
Definition: pcbnew.py:18628
def FixUuids(self)
Definition: pcbnew.py:18431
def ResolveTextVar(self, token, aDepth=0)
Definition: pcbnew.py:18712
def Groups(self, *args)
Definition: pcbnew.py:18475
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:18572
def AllowMissingCourtyard(self)
Definition: pcbnew.py:18820
def CheckShortingPads(self, aErrorHandler)
Definition: pcbnew.py:18684
def GetInitialComments(self)
Definition: pcbnew.py:18915
def GetNextPadNumber(self, aLastPadName)
Definition: pcbnew.py:18852
def SetPropertiesNative(self, aProps)
Definition: pcbnew.py:18780
def GetValueAsString(self)
Definition: pcbnew.py:18758
def GetReference(self)
Definition: pcbnew.py:18734
def CheckNetTies(self, aErrorHandler)
Definition: pcbnew.py:18688
def Pads(self, *args)
Definition: pcbnew.py:18454
def SetNeedsPlaced(self, needsPlaced)
Definition: pcbnew.py:18668
def GetFPIDAsString(self)
Definition: pcbnew.py:18521
def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False, aSkipPlatedPads=False, aSkipNonPlatedPads=False)
Definition: pcbnew.py:18696
def GetUniquePadCount(self, *args)
Definition: pcbnew.py:18848
def SetExcludedFromBOM(self, aExclude=True)
Definition: pcbnew.py:18816
def BuildCourtyardCaches(self, aErrorHandler=None)
Definition: pcbnew.py:18923
def GetKeywords(self)
Definition: pcbnew.py:18537
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:18927
def SetLink(self, aLink)
Definition: pcbnew.py:18868
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:18828
def IncrementReference(self, aDelta)
Definition: pcbnew.py:18746
def SetPath(self, aPath)
Definition: pcbnew.py:18549
def SetExcludedFromPosFiles(self, aExclude=True)
Definition: pcbnew.py:18808
def GetLayerBoundingBox(self, aLayers)
Definition: pcbnew.py:18450
def GraphicalItems(self, *args)
Definition: pcbnew.py:18461
def FootprintNeedsUpdate(self, aLibFootprint)
Definition: pcbnew.py:18898
def GetBoundingHull(self)
Definition: pcbnew.py:18439
def IsBoardOnly(self)
Definition: pcbnew.py:18796
def SetOrientation(self, aNewAngle)
Definition: pcbnew.py:18493
def GetPropertyNative(self, aKey)
Definition: pcbnew.py:18784
def IsNetTie(self)
Definition: pcbnew.py:18616
def GetPath(self)
Definition: pcbnew.py:18545
def SetZoneConnection(self, aType)
Definition: pcbnew.py:18588
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:18576
def ClearNetTiePadGroups(self)
Definition: pcbnew.py:18624
def GetOrientationDegrees(self)
Definition: pcbnew.py:18509
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:18832
def Reference(self, *args)
Definition: pcbnew.py:18769
def GetZoneConnection(self)
Definition: pcbnew.py:18592
def IsFlipped(self)
Definition: pcbnew.py:18648
def Add3DModel(self, a3DModel)
Definition: pcbnew.py:18876
def HitTest(self, *args)
Definition: pcbnew.py:18720
def GetFlag(self)
Definition: pcbnew.py:18612
def SetInitialComments(self, aInitialComments)
Definition: pcbnew.py:18902
def IsPlaced(self)
Definition: pcbnew.py:18656
def GetOrientation(self)
Definition: pcbnew.py:18497
def SetPrivateLayers(self, aLayers)
Definition: pcbnew.py:18415
def HitTestAccurate(self, aPosition, aAccuracy=0)
Definition: pcbnew.py:18716
def SetLayerAndFlip(self, aLayer)
Definition: pcbnew.py:18501
def IncrementFlag(self)
Definition: pcbnew.py:18608
def IsLibNameValid(aName)
Definition: pcbnew.py:18889
def SetBoardOnly(self, aIsBoardOnly=True)
Definition: pcbnew.py:18800
def HitTestOnLayer(self, *args)
Definition: pcbnew.py:18727
def GetPropertiesNative(self)
Definition: pcbnew.py:18776
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:18584
def GetFPID(self)
Definition: pcbnew.py:18513
def ClassOf(aItem)
Definition: pcbnew.py:18407
def GetArea(self, aPadding=0)
Definition: pcbnew.py:18860
def GetFpPadsLocalBbox(self)
Definition: pcbnew.py:18435
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:18553
def HasProperty(self, aKey)
Definition: pcbnew.py:18788
def __init__(self)
Definition: pcbnew.py:18377
def GetFootprint(self)
Definition: pcbnew.py:7935
def __init__(self, aFootprint, aFileName)
Definition: pcbnew.py:7923
def SetFilePath(self, aFilePath)
Definition: pcbnew.py:7931
def GetFileName(self)
Definition: pcbnew.py:7927
def GetFootprints(self)
Definition: pcbnew.py:7965
def __init__(self, aOwner, aLibraryPath)
Definition: pcbnew.py:7949
def Remove(self, aFootprintName)
Definition: pcbnew.py:7977
def IsPath(self, aPath)
Definition: pcbnew.py:7990
def Save(self, aFootprint=None)
Definition: pcbnew.py:7969
def IsWritable(self)
Definition: pcbnew.py:7957
def Exists(self)
Definition: pcbnew.py:7961
def GetPath(self)
Definition: pcbnew.py:7953
def Load(self)
Definition: pcbnew.py:7973
def GetTimestamp(aLibPath)
Definition: pcbnew.py:7982
def IsModified(self)
Definition: pcbnew.py:7986
def SetPath(self, aPath)
Definition: pcbnew.py:7994
def __bool__(self)
Definition: pcbnew.py:12282
def pop(self)
Definition: pcbnew.py:12327
def append(self, x)
Definition: pcbnew.py:12331
def __getitem__(self, *args)
Definition: pcbnew.py:12312
def swap(self, v)
Definition: pcbnew.py:12343
def clear(self)
Definition: pcbnew.py:12363
def __len__(self)
Definition: pcbnew.py:12286
def rend(self)
Definition: pcbnew.py:12359
def __getslice__(self, i, j)
Definition: pcbnew.py:12290
def __setitem__(self, *args)
Definition: pcbnew.py:12319
def iterator(self)
Definition: pcbnew.py:12272
def get_allocator(self)
Definition: pcbnew.py:12367
def __delitem__(self, *args)
Definition: pcbnew.py:12305
def capacity(self)
Definition: pcbnew.py:12425
def pop_back(self)
Definition: pcbnew.py:12371
def back(self)
Definition: pcbnew.py:12399
def __init__(self, *args)
Definition: pcbnew.py:12382
def __delslice__(self, i, j)
Definition: pcbnew.py:12301
def __iter__(self)
Definition: pcbnew.py:12275
def end(self)
Definition: pcbnew.py:12351
def rbegin(self)
Definition: pcbnew.py:12355
def size(self)
Definition: pcbnew.py:12339
def assign(self, n, x)
Definition: pcbnew.py:12403
def resize(self, *args)
Definition: pcbnew.py:12407
def push_back(self, x)
Definition: pcbnew.py:12391
def begin(self)
Definition: pcbnew.py:12347
def insert(self, *args)
Definition: pcbnew.py:12414
def __setslice__(self, *args)
Definition: pcbnew.py:12294
def reserve(self, n)
Definition: pcbnew.py:12421
def empty(self)
Definition: pcbnew.py:12335
def erase(self, *args)
Definition: pcbnew.py:12375
def __nonzero__(self)
Definition: pcbnew.py:12278
def front(self)
Definition: pcbnew.py:12395
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15751
def GetCenter0(self)
Definition: pcbnew.py:15715
def SetDrawCoord(self)
Definition: pcbnew.py:15743
def CalcArcAngles0(self, aStartAngle, aEndAngle)
Definition: pcbnew.py:15727
def SetLocalCoord(self)
Definition: pcbnew.py:15739
def GetArcAngle0(self)
Definition: pcbnew.py:15731
def IsParentFlipped(self)
Definition: pcbnew.py:15679
def ClassOf(aItem)
Definition: pcbnew.py:15667
def SetArcAngleAndEnd0(self, aAngle, aCheckNegativeAngle=False)
Definition: pcbnew.py:15671
def __init__(self, *args)
Definition: pcbnew.py:15661
def GetEnd0(self)
Definition: pcbnew.py:15695
def SetBezierC2_0(self, aPoint)
Definition: pcbnew.py:15707
def GetStart0(self)
Definition: pcbnew.py:15687
def SetBezierC1_0(self, aPoint)
Definition: pcbnew.py:15699
def GetBezierC2_0(self)
Definition: pcbnew.py:15711
def SetCachedArcData0(self, aStart0, aMid0, aEnd0, aCenter0)
Definition: pcbnew.py:15735
def GetBezierC1_0(self)
Definition: pcbnew.py:15703
def SetStart0(self, aPoint)
Definition: pcbnew.py:15683
def SetEnd0(self, aPoint)
Definition: pcbnew.py:15691
def GetParentAsString(self)
Definition: pcbnew.py:15747
def SetCenter0(self, aPt)
Definition: pcbnew.py:15719
def GetArcMid0(self)
Definition: pcbnew.py:15723
def SetArcGeometry0(self, aStart, aMid, aEnd)
Definition: pcbnew.py:15675
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15922
def __init__(self, aParentFootprint)
Definition: pcbnew.py:15877
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:15906
def ClassOf(aItem)
Definition: pcbnew.py:15883
def TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc)
Definition: pcbnew.py:15910
def GetNormalizedCorners(self)
Definition: pcbnew.py:15895
def HitTest(self, *args)
Definition: pcbnew.py:15899
def GetParentAsString(self)
Definition: pcbnew.py:15887
def IsBorderEnabled(self)
Definition: pcbnew.py:15926
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:15918
def DisableBorder(self)
Definition: pcbnew.py:15930
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15914
def GetTextMargin(self)
Definition: pcbnew.py:15891
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15846
def GetParentAsString(self)
Definition: pcbnew.py:15784
def SetDrawCoord(self)
Definition: pcbnew.py:15820
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:15850
def GetType(self)
Definition: pcbnew.py:15804
def TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc)
Definition: pcbnew.py:15842
def TextHitTest(self, *args)
Definition: pcbnew.py:15828
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:15796
def SetLocalCoord(self)
Definition: pcbnew.py:15824
def __init__(self, *args)
Definition: pcbnew.py:15774
def HitTest(self, *args)
Definition: pcbnew.py:15835
def GetLength(self)
Definition: pcbnew.py:15816
def SetPos0(self, aPos)
Definition: pcbnew.py:15808
def SetType(self, aType)
Definition: pcbnew.py:15800
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15854
def ClassOf(aItem)
Definition: pcbnew.py:15780
def KeepUpright(self, aOldOrientation, aNewOrientation)
Definition: pcbnew.py:15788
def IsParentFlipped(self)
Definition: pcbnew.py:15792
def GetPos0(self)
Definition: pcbnew.py:15812
def __init__(self, *args)
Definition: pcbnew.py:12215
def __delitem__(self, *args)
Definition: pcbnew.py:12138
def __iter__(self)
Definition: pcbnew.py:12108
def __delslice__(self, i, j)
Definition: pcbnew.py:12134
def push_back(self, x)
Definition: pcbnew.py:12224
def insert(self, *args)
Definition: pcbnew.py:12247
def begin(self)
Definition: pcbnew.py:12180
def __len__(self)
Definition: pcbnew.py:12119
def rbegin(self)
Definition: pcbnew.py:12188
def capacity(self)
Definition: pcbnew.py:12258
def iterator(self)
Definition: pcbnew.py:12105
def pop_back(self)
Definition: pcbnew.py:12204
def __getitem__(self, *args)
Definition: pcbnew.py:12145
def pop(self)
Definition: pcbnew.py:12160
def rend(self)
Definition: pcbnew.py:12192
def front(self)
Definition: pcbnew.py:12228
def erase(self, *args)
Definition: pcbnew.py:12208
def back(self)
Definition: pcbnew.py:12232
def end(self)
Definition: pcbnew.py:12184
def __setitem__(self, *args)
Definition: pcbnew.py:12152
def size(self)
Definition: pcbnew.py:12172
def reserve(self, n)
Definition: pcbnew.py:12254
def assign(self, n, x)
Definition: pcbnew.py:12236
def get_allocator(self)
Definition: pcbnew.py:12200
def append(self, x)
Definition: pcbnew.py:12164
def clear(self)
Definition: pcbnew.py:12196
def __nonzero__(self)
Definition: pcbnew.py:12111
def __setslice__(self, *args)
Definition: pcbnew.py:12127
def __getslice__(self, i, j)
Definition: pcbnew.py:12123
def resize(self, *args)
Definition: pcbnew.py:12240
def __bool__(self)
Definition: pcbnew.py:12115
def swap(self, v)
Definition: pcbnew.py:12176
def empty(self)
Definition: pcbnew.py:12168
def __init__(self, *args)
Definition: pcbnew.py:14061
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14068
def __init__(self)
Definition: pcbnew.py:4636
def __init__(self, page, name, units, default, **kwarg)
Definition: pcbnew.py:4661
def Check(self, min_value=None, max_value=None, multiple=None, info=None)
Definition: pcbnew.py:4695
def SetValue(self, new_value)
Definition: pcbnew.py:4769
def AddError(self, err, info=None)
Definition: pcbnew.py:4686
def CheckParam(self, page, name, **kwarg)
Definition: pcbnew.py:4863
def GetParameterPageName(self, page_n)
Definition: pcbnew.py:4881
def GetParameterValues(self, page_index)
Definition: pcbnew.py:4904
def GetParameterErrors(self, page_index)
Definition: pcbnew.py:4908
def SetParameterValues(self, page_index, list_of_values)
Definition: pcbnew.py:4924
def GetParametersByPageIndex(self, page_index)
Definition: pcbnew.py:4893
def GetParam(self, page, name)
Definition: pcbnew.py:4856
def GetNumParameterPages(self)
Definition: pcbnew.py:4878
def GetParametersByPageName(self, page_name)
Definition: pcbnew.py:4884
def GetParameterNames(self, page_index)
Definition: pcbnew.py:4900
def GetParameterDesignators(self, page_index)
Definition: pcbnew.py:4896
def AddParam(self, page, name, unit, default, **kwarg)
Definition: pcbnew.py:4814
def GetParameterHints(self, page_index)
Definition: pcbnew.py:4916
def GetParameterTypes(self, page_index)
Definition: pcbnew.py:4912
def DefaultVisible()
Definition: pcbnew.py:3336
def Contains(self, aPos)
Definition: pcbnew.py:3327
def set(self, *args)
Definition: pcbnew.py:3319
def __init__(self, *args)
Definition: pcbnew.py:3311
def Seq(self)
Definition: pcbnew.py:3331
def GenDrillReportFile(self, aFullFileName)
Definition: pcbnew.py:9053
def SetMapFileFormat(self, aMapFmt)
Definition: pcbnew.py:9045
def CreateMapFilesSet(self, aPlotDirectory, aReporter=None)
Definition: pcbnew.py:9049
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9014
def SetPageInfo(self, aPageInfo)
Definition: pcbnew.py:9041
def SetMergeOption(self, aMerge)
Definition: pcbnew.py:9033
def CreateJobFile(self, aFullFilename)
Definition: pcbnew.py:9163
def __init__(self, aPcb, aReporter=None)
Definition: pcbnew.py:9154
def WriteJSONJobFile(self, aFullFilename)
Definition: pcbnew.py:9167
def AddGbrFile(self, aLayer, aFilename)
Definition: pcbnew.py:9159
def SetFormat(self, aRightDigits=6)
Definition: pcbnew.py:9109
def __init__(self, aPcb)
Definition: pcbnew.py:9104
def SetOptions(self, aOffset)
Definition: pcbnew.py:9113
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:9117
def get_allocator(self)
Definition: pcbnew.py:11689
def __bool__(self)
Definition: pcbnew.py:11604
def __getitem__(self, *args)
Definition: pcbnew.py:11634
def push_back(self, x)
Definition: pcbnew.py:11713
def __delitem__(self, *args)
Definition: pcbnew.py:11627
def __setitem__(self, *args)
Definition: pcbnew.py:11641
def erase(self, *args)
Definition: pcbnew.py:11697
def size(self)
Definition: pcbnew.py:11661
def __getslice__(self, i, j)
Definition: pcbnew.py:11612
def front(self)
Definition: pcbnew.py:11717
def pop_front(self)
Definition: pcbnew.py:11743
def swap(self, v)
Definition: pcbnew.py:11665
def end(self)
Definition: pcbnew.py:11673
def pop(self)
Definition: pcbnew.py:11649
def insert(self, *args)
Definition: pcbnew.py:11736
def __init__(self, *args)
Definition: pcbnew.py:11704
def __delslice__(self, i, j)
Definition: pcbnew.py:11623
def __nonzero__(self)
Definition: pcbnew.py:11600
def assign(self, n, x)
Definition: pcbnew.py:11725
def push_front(self, x)
Definition: pcbnew.py:11747
def append(self, x)
Definition: pcbnew.py:11653
def __len__(self)
Definition: pcbnew.py:11608
def __iter__(self)
Definition: pcbnew.py:11597
def clear(self)
Definition: pcbnew.py:11685
def resize(self, *args)
Definition: pcbnew.py:11729
def back(self)
Definition: pcbnew.py:11721
def pop_back(self)
Definition: pcbnew.py:11693
def __setslice__(self, *args)
Definition: pcbnew.py:11616
def rend(self)
Definition: pcbnew.py:11681
def empty(self)
Definition: pcbnew.py:11657
def rbegin(self)
Definition: pcbnew.py:11677
def begin(self)
Definition: pcbnew.py:11669
def iterator(self)
Definition: pcbnew.py:11594
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:17518
def __init__(self)
Definition: pcbnew.py:8970
def __init__(self, aStream, aSource)
Definition: pcbnew.py:2132
def __init__(self, *args)
Definition: pcbnew.py:453
def Where(self)
Definition: pcbnew.py:468
def What(self)
Definition: pcbnew.py:472
def Problem(self)
Definition: pcbnew.py:464
def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
Definition: pcbnew.py:460
def GuessPluginTypeFromLibPath(aLibPath)
Definition: pcbnew.py:7742
def __init__(self)
Definition: pcbnew.py:7756
def EnumFromStr(aFileType)
Definition: pcbnew.py:7732
def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:7747
def ShowType(aFileType)
Definition: pcbnew.py:7727
def Save(aFileType, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:7752
def GetFileExtension(aFileType)
Definition: pcbnew.py:7737
def PluginFind(aFileType)
Definition: pcbnew.py:7717
def PluginRelease(aPlugin)
Definition: pcbnew.py:7722
def __init__(self, aPcb, aParent=None)
Definition: pcbnew.py:8859
def Write(self, aFilename)
Definition: pcbnew.py:8864
def __init__(self)
Definition: pcbnew.py:9140
def MakeRelativeTo(self, aPath)
Definition: pcbnew.py:1320
def __iadd__(self, aRhs)
Definition: pcbnew.py:1340
def EndsWith(self, aPath)
Definition: pcbnew.py:1324
def __init__(self, *args)
Definition: pcbnew.py:1313
def AsString(self)
Definition: pcbnew.py:1328
def __eq__(self, rhs)
Definition: pcbnew.py:1332
def __lt__(self, rhs)
Definition: pcbnew.py:1336
def swap(self, v)
Definition: pcbnew.py:1217
def rbegin(self)
Definition: pcbnew.py:1229
def __setitem__(self, *args)
Definition: pcbnew.py:1193
def __delitem__(self, *args)
Definition: pcbnew.py:1179
def erase(self, *args)
Definition: pcbnew.py:1249
def __iter__(self)
Definition: pcbnew.py:1149
def insert(self, *args)
Definition: pcbnew.py:1288
def push_back(self, x)
Definition: pcbnew.py:1265
def resize(self, *args)
Definition: pcbnew.py:1281
def reserve(self, n)
Definition: pcbnew.py:1295
def __init__(self, *args)
Definition: pcbnew.py:1256
def __nonzero__(self)
Definition: pcbnew.py:1152
def assign(self, n, x)
Definition: pcbnew.py:1277
def __getitem__(self, *args)
Definition: pcbnew.py:1186
def pop_back(self)
Definition: pcbnew.py:1245
def get_allocator(self)
Definition: pcbnew.py:1241
def __bool__(self)
Definition: pcbnew.py:1156
def iterator(self)
Definition: pcbnew.py:1146
def capacity(self)
Definition: pcbnew.py:1299
def __len__(self)
Definition: pcbnew.py:1160
def __setslice__(self, *args)
Definition: pcbnew.py:1168
def __getslice__(self, i, j)
Definition: pcbnew.py:1164
def __delslice__(self, i, j)
Definition: pcbnew.py:1175
def append(self, x)
Definition: pcbnew.py:1205
def CreateNilUuids(aNil=True)
Definition: pcbnew.py:1087
def AsString(self)
Definition: pcbnew.py:1073
def ConvertTimestampToUuid(self)
Definition: pcbnew.py:1096
def __ne__(self, rhs)
Definition: pcbnew.py:1108
def AsLegacyTimestampString(self)
Definition: pcbnew.py:1077
def Hash(self)
Definition: pcbnew.py:1061
def Clone(self, aUUID)
Definition: pcbnew.py:1057
def SniffTest(aCandidate)
Definition: pcbnew.py:1082
def IsLegacyTimestamp(self)
Definition: pcbnew.py:1065
def AsLegacyTimestamp(self)
Definition: pcbnew.py:1069
def __init__(self, *args)
Definition: pcbnew.py:1046
def __lt__(self, rhs)
Definition: pcbnew.py:1112
def __eq__(self, rhs)
Definition: pcbnew.py:1104
def __gt__(self, rhs)
Definition: pcbnew.py:1116
def Increment(self)
Definition: pcbnew.py:1100
def SeedGenerator(aSeed)
Definition: pcbnew.py:1092
def __init__(self, *args)
Definition: pcbnew.py:432
def What(self)
Definition: pcbnew.py:439
def GetPluginPath(self)
Definition: pcbnew.py:4631
def deregister(self)
Definition: pcbnew.py:4617
def __init__(self)
Definition: pcbnew.py:4589
def register(self)
Definition: pcbnew.py:4592
def clear(self)
Definition: pcbnew.py:17482
def __init__(self)
Definition: pcbnew.py:17478
def ShowType(aType)
Definition: pcbnew.py:17492
def ParseType(aType)
Definition: pcbnew.py:17497
def IsLegacy(self)
Definition: pcbnew.py:7605
def GetSubLibraryName(self)
Definition: pcbnew.py:7573
def GetLibNickname(self)
Definition: pcbnew.py:7549
def SetLibItemName(self, aLibItemName)
Definition: pcbnew.py:7569
def HasIllegalChars(aLibItemName)
Definition: pcbnew.py:7638
def GetUniStringLibId(self)
Definition: pcbnew.py:7589
def SetSubLibraryName(self, aName)
Definition: pcbnew.py:7577
def clear(self)
Definition: pcbnew.py:7609
def GetUniStringSubLibraryName(self)
Definition: pcbnew.py:7581
def __init__(self, *args)
Definition: pcbnew.py:7538
def FindIllegalLibraryNameChar(aLibraryName)
Definition: pcbnew.py:7648
def empty(self)
Definition: pcbnew.py:7613
def __eq__(self, aLibId)
Definition: pcbnew.py:7629
def FixIllegalChars(aLibItemName, aLib)
Definition: pcbnew.py:7643
def __gt__(self, aLibId)
Definition: pcbnew.py:7625
def GetFullLibraryName(self)
Definition: pcbnew.py:7585
def Format(*args)
Definition: pcbnew.py:7594
def IsValid(self)
Definition: pcbnew.py:7601
def Parse(self, aId, aFix=False)
Definition: pcbnew.py:7545
def GetUniStringLibItemName(self)
Definition: pcbnew.py:7565
def GetLibItemName(self)
Definition: pcbnew.py:7561
def __ne__(self, aLibId)
Definition: pcbnew.py:7633
def compare(self, aLibId)
Definition: pcbnew.py:7617
def SetLibNickname(self, aNickname)
Definition: pcbnew.py:7557
def GetUniStringLibNickname(self)
Definition: pcbnew.py:7553
def __lt__(self, aLibId)
Definition: pcbnew.py:7621
def LineNumber(self)
Definition: pcbnew.py:2064
def Line(self)
Definition: pcbnew.py:2060
def Length(self)
Definition: pcbnew.py:2068
def ReadLine(self)
Definition: pcbnew.py:2052
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:2047
def GetSource(self)
Definition: pcbnew.py:2056
def __nonzero__(self)
Definition: pcbnew.py:3499
def Rewind(self)
Definition: pcbnew.py:3495
def __init__(self)
Definition: pcbnew.py:3491
def __ref__(self)
Definition: pcbnew.py:3505
def BackAssembly()
Definition: pcbnew.py:3549
def Contains(self, aLayer)
Definition: pcbnew.py:3529
def RemoveLayer(self, layer)
Definition: pcbnew.py:3708
def PhysicalLayersMask()
Definition: pcbnew.py:3624
def SeqStackupBottom2Top(self)
Definition: pcbnew.py:3666
def BackTechMask()
Definition: pcbnew.py:3584
def FmtHex(self)
Definition: pcbnew.py:3670
def addLayer(self, aLayer)
Definition: pcbnew.py:3686
def Seq(self, *args)
Definition: pcbnew.py:3658
def AddLayer(self, layer)
Definition: pcbnew.py:3702
def SideSpecificMask()
Definition: pcbnew.py:3614
def UIOrder(self)
Definition: pcbnew.py:3654
def ParseHex(self, aStart, aCount)
Definition: pcbnew.py:3674
def AllCuMask(*args)
Definition: pcbnew.py:3554
def AllTechMask()
Definition: pcbnew.py:3594
def addLayerSet(self, aLayerSet)
Definition: pcbnew.py:3694
def AllBoardTechMask()
Definition: pcbnew.py:3599
def AllNonCuMask()
Definition: pcbnew.py:3564
def CuStack(self)
Definition: pcbnew.py:3638
def ForbiddenFootprintLayers()
Definition: pcbnew.py:3634
def removeLayerSet(self, aLayerSet)
Definition: pcbnew.py:3698
def AllLayersMask()
Definition: pcbnew.py:3569
def AddLayerSet(self, layers)
Definition: pcbnew.py:3705
def __init__(self, *args)
Definition: pcbnew.py:3519
def InternalCuMask()
Definition: pcbnew.py:3539
def FrontTechMask()
Definition: pcbnew.py:3574
def TechAndUserUIOrder(self)
Definition: pcbnew.py:3650
def UserDefinedLayers()
Definition: pcbnew.py:3629
def BackBoardTechMask()
Definition: pcbnew.py:3589
def FrontAssembly()
Definition: pcbnew.py:3544
def ExternalCuMask()
Definition: pcbnew.py:3559
def BackMask()
Definition: pcbnew.py:3609
def UserMask()
Definition: pcbnew.py:3619
def FrontMask()
Definition: pcbnew.py:3604
def Users(self)
Definition: pcbnew.py:3646
def ExtractLayer(self)
Definition: pcbnew.py:3682
def FrontBoardTechMask()
Definition: pcbnew.py:3579
def FmtBin(self)
Definition: pcbnew.py:3678
def removeLayer(self, aLayer)
Definition: pcbnew.py:3690
def Name(aLayerId)
Definition: pcbnew.py:3534
def RemoveLayerSet(self, layers)
Definition: pcbnew.py:3711
def Technicals(self, *args)
Definition: pcbnew.py:3642
def count(self, x)
Definition: pcbnew.py:18323
def has_key(self, key)
Definition: pcbnew.py:18240
def __delitem__(self, key)
Definition: pcbnew.py:18236
def erase(self, *args)
Definition: pcbnew.py:18327
def __contains__(self, key)
Definition: pcbnew.py:18256
def upper_bound(self, x)
Definition: pcbnew.py:18343
def __setitem__(self, *args)
Definition: pcbnew.py:18268
def value_iterator(self)
Definition: pcbnew.py:18264
def __init__(self, *args)
Definition: pcbnew.py:18279
def __getitem__(self, key)
Definition: pcbnew.py:18232
def lower_bound(self, x)
Definition: pcbnew.py:18339
def back(self)
Definition: pcbnew.py:11043
def empty(self)
Definition: pcbnew.py:10979
def __len__(self)
Definition: pcbnew.py:10930
def capacity(self)
Definition: pcbnew.py:11069
def __getslice__(self, i, j)
Definition: pcbnew.py:10934
def pop(self)
Definition: pcbnew.py:10971
def __delitem__(self, *args)
Definition: pcbnew.py:10949
def __nonzero__(self)
Definition: pcbnew.py:10922
def __iter__(self)
Definition: pcbnew.py:10919
def rend(self)
Definition: pcbnew.py:11003
def __init__(self, *args)
Definition: pcbnew.py:11026
def size(self)
Definition: pcbnew.py:10983
def begin(self)
Definition: pcbnew.py:10991
def resize(self, *args)
Definition: pcbnew.py:11051
def front(self)
Definition: pcbnew.py:11039
def append(self, x)
Definition: pcbnew.py:10975
def get_allocator(self)
Definition: pcbnew.py:11011
def swap(self, v)
Definition: pcbnew.py:10987
def __setitem__(self, *args)
Definition: pcbnew.py:10963
def erase(self, *args)
Definition: pcbnew.py:11019
def rbegin(self)
Definition: pcbnew.py:10999
def reserve(self, n)
Definition: pcbnew.py:11065
def __getitem__(self, *args)
Definition: pcbnew.py:10956
def __setslice__(self, *args)
Definition: pcbnew.py:10938
def clear(self)
Definition: pcbnew.py:11007
def push_back(self, x)
Definition: pcbnew.py:11035
def pop_back(self)
Definition: pcbnew.py:11015
def iterator(self)
Definition: pcbnew.py:10916
def insert(self, *args)
Definition: pcbnew.py:11058
def __delslice__(self, i, j)
Definition: pcbnew.py:10945
def assign(self, n, x)
Definition: pcbnew.py:11047
def __bool__(self)
Definition: pcbnew.py:10926
def end(self)
Definition: pcbnew.py:10995
def IsExcluded(self)
Definition: pcbnew.py:2610
def GetBoundingBoxMarker(self)
Definition: pcbnew.py:2630
def HitTestMarker(self, aHitPosition, aAccuracy)
Definition: pcbnew.py:2626
def GetUUID(self)
Definition: pcbnew.py:2598
def MarkerScale(self)
Definition: pcbnew.py:2578
def GetMarkerType(self)
Definition: pcbnew.py:2606
def GetPos(self)
Definition: pcbnew.py:2594
def PrintMarker(self, aSettings, aOffset)
Definition: pcbnew.py:2590
def GetSeverity(self)
Definition: pcbnew.py:2618
def SetExcluded(self, aExcluded)
Definition: pcbnew.py:2614
def SetMarkerType(self, aMarkerType)
Definition: pcbnew.py:2602
def ShapeToPolygon(self, aPolygon, aScale=-1)
Definition: pcbnew.py:2586
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:2559
def SetMarkerScale(self, aScale)
Definition: pcbnew.py:2582
def GetRCItem(self)
Definition: pcbnew.py:2622
def SetBusWidth(self, aWidth)
Definition: pcbnew.py:17015
def HasuViaDiameter(self)
Definition: pcbnew.py:16935
def SetTrackWidth(self, aWidth)
Definition: pcbnew.py:16907
def GetTrackWidth(self)
Definition: pcbnew.py:16903
def GetLineStyle(self)
Definition: pcbnew.py:17027
def SetuViaDiameter(self, aSize)
Definition: pcbnew.py:16943
def __init__(self, aName)
Definition: pcbnew.py:16862
def GetName(self)
Definition: pcbnew.py:16871
def HasDiffPairWidth(self)
Definition: pcbnew.py:16959
def GetClearance(self)
Definition: pcbnew.py:16891
def SetDescription(self, aDesc)
Definition: pcbnew.py:16883
def HasClearance(self)
Definition: pcbnew.py:16887
def SetLineStyle(self, aStyle)
Definition: pcbnew.py:17031
def HasuViaDrill(self)
Definition: pcbnew.py:16947
def GetBusWidth(self)
Definition: pcbnew.py:17011
def SetDiffPairGap(self, aSize)
Definition: pcbnew.py:16979
def GetuViaDrill(self)
Definition: pcbnew.py:16951
def GetViaDrill(self)
Definition: pcbnew.py:16927
def GetDescription(self)
Definition: pcbnew.py:16879
def SetDiffPairViaGap(self, aSize)
Definition: pcbnew.py:16991
def GetDiffPairViaGap(self)
Definition: pcbnew.py:16987
def GetDiffPairWidth(self)
Definition: pcbnew.py:16963
def SetPcbColor(self, aColor)
Definition: pcbnew.py:16999
def HasViaDrill(self)
Definition: pcbnew.py:16923
def SetName(self, aName)
Definition: pcbnew.py:16875
def SetWireWidth(self, aWidth)
Definition: pcbnew.py:17007
def SetSchematicColor(self, aColor)
Definition: pcbnew.py:17023
def HasTrackWidth(self)
Definition: pcbnew.py:16899
def GetSchematicColor(self)
Definition: pcbnew.py:17019
def HasViaDiameter(self)
Definition: pcbnew.py:16911
def SetViaDiameter(self, aDia)
Definition: pcbnew.py:16919
def SetClearance(self, aClearance)
Definition: pcbnew.py:16895
def HasDiffPairViaGap(self)
Definition: pcbnew.py:16983
def GetuViaDiameter(self)
Definition: pcbnew.py:16939
def SetuViaDrill(self, aSize)
Definition: pcbnew.py:16955
def GetPcbColor(self)
Definition: pcbnew.py:16995
def GetClass(self)
Definition: pcbnew.py:16867
def HasDiffPairGap(self)
Definition: pcbnew.py:16971
def SetViaDrill(self, aSize)
Definition: pcbnew.py:16931
def GetDiffPairGap(self)
Definition: pcbnew.py:16975
def GetWireWidth(self)
Definition: pcbnew.py:17003
def GetViaDiameter(self)
Definition: pcbnew.py:16915
def SetDiffPairWidth(self, aSize)
Definition: pcbnew.py:16967
def values(self)
Definition: pcbnew.py:16573
def asdict(self)
Definition: pcbnew.py:16600
def __delitem__(self, key)
Definition: pcbnew.py:16561
def has_key(self, key)
Definition: pcbnew.py:16565
def key_iterator(self)
Definition: pcbnew.py:16585
def clear(self)
Definition: pcbnew.py:16640
def find(self, x)
Definition: pcbnew.py:16660
def __len__(self)
Definition: pcbnew.py:16545
def iterkeys(self)
Definition: pcbnew.py:16550
def empty(self)
Definition: pcbnew.py:16612
def __init__(self, *args)
Definition: pcbnew.py:16604
def __contains__(self, key)
Definition: pcbnew.py:16581
def __setitem__(self, *args)
Definition: pcbnew.py:16593
def iterator(self)
Definition: pcbnew.py:16531
def begin(self)
Definition: pcbnew.py:16624
def __getitem__(self, key)
Definition: pcbnew.py:16557
def upper_bound(self, x)
Definition: pcbnew.py:16668
def __nonzero__(self)
Definition: pcbnew.py:16537
def keys(self)
Definition: pcbnew.py:16569
def erase(self, *args)
Definition: pcbnew.py:16652
def __bool__(self)
Definition: pcbnew.py:16541
def swap(self, v)
Definition: pcbnew.py:16620
def items(self)
Definition: pcbnew.py:16577
def __iter__(self)
Definition: pcbnew.py:16534
def itervalues(self)
Definition: pcbnew.py:16552
def value_iterator(self)
Definition: pcbnew.py:16589
def iteritems(self)
Definition: pcbnew.py:16554
def lower_bound(self, x)
Definition: pcbnew.py:16664
def rbegin(self)
Definition: pcbnew.py:16632
def rend(self)
Definition: pcbnew.py:16636
def get_allocator(self)
Definition: pcbnew.py:16644
def count(self, x)
Definition: pcbnew.py:16648
def size(self)
Definition: pcbnew.py:16616
def HasAutoGeneratedNetname(self)
Definition: pcbnew.py:16339
def GetNetClass(self)
Definition: pcbnew.py:16311
def SetNetname(self, aNewName)
Definition: pcbnew.py:16343
def SetNetCode(self, aNetCode)
Definition: pcbnew.py:16323
def SetIsCurrent(self, isCurrent)
Definition: pcbnew.py:16351
def GetShortNetname(self)
Definition: pcbnew.py:16331
def SetNetClass(self, aNetClass)
Definition: pcbnew.py:16307
def GetNetClassSlow(self)
Definition: pcbnew.py:16315
def IsCurrent(self)
Definition: pcbnew.py:16347
def GetNetClassName(self)
Definition: pcbnew.py:16363
def ClassOf(aItem)
Definition: pcbnew.py:16303
def GetParent(self)
Definition: pcbnew.py:16359
def __init__(self, *args)
Definition: pcbnew.py:16297
def GetUnescapedShortNetname(self)
Definition: pcbnew.py:16335
def GetNetname(self)
Definition: pcbnew.py:16327
def GetNetCode(self)
Definition: pcbnew.py:16319
def Clear(self)
Definition: pcbnew.py:16355
def NetsByNetcode(self)
Definition: pcbnew.py:16714
def RemoveUnusedNets(self)
Definition: pcbnew.py:16706
def __init__(self, aParent)
Definition: pcbnew.py:16682
def GetNetCount(self)
Definition: pcbnew.py:16694
def AppendNet(self, aNewElement)
Definition: pcbnew.py:16698
def GetNetItem(self, *args)
Definition: pcbnew.py:16687
def NetsByName(self)
Definition: pcbnew.py:16710
def GetParent(self)
Definition: pcbnew.py:16723
def RemoveNet(self, aNet)
Definition: pcbnew.py:16702
def __contains__(self, key)
Definition: pcbnew.py:16430
def __init__(self, *args)
Definition: pcbnew.py:16453
def get_allocator(self)
Definition: pcbnew.py:16493
def __len__(self)
Definition: pcbnew.py:16394
def iteritems(self)
Definition: pcbnew.py:16403
def size(self)
Definition: pcbnew.py:16465
def value_iterator(self)
Definition: pcbnew.py:16438
def find(self, x)
Definition: pcbnew.py:16509
def __iter__(self)
Definition: pcbnew.py:16383
def empty(self)
Definition: pcbnew.py:16461
def __nonzero__(self)
Definition: pcbnew.py:16386
def values(self)
Definition: pcbnew.py:16422
def lower_bound(self, x)
Definition: pcbnew.py:16513
def rbegin(self)
Definition: pcbnew.py:16481
def asdict(self)
Definition: pcbnew.py:16449
def keys(self)
Definition: pcbnew.py:16418
def __delitem__(self, key)
Definition: pcbnew.py:16410
def __getitem__(self, key)
Definition: pcbnew.py:16406
def iterator(self)
Definition: pcbnew.py:16380
def begin(self)
Definition: pcbnew.py:16473
def upper_bound(self, x)
Definition: pcbnew.py:16517
def items(self)
Definition: pcbnew.py:16426
def erase(self, *args)
Definition: pcbnew.py:16501
def rend(self)
Definition: pcbnew.py:16485
def has_key(self, key)
Definition: pcbnew.py:16414
def iterkeys(self)
Definition: pcbnew.py:16399
def count(self, x)
Definition: pcbnew.py:16497
def key_iterator(self)
Definition: pcbnew.py:16434
def swap(self, v)
Definition: pcbnew.py:16469
def itervalues(self)
Definition: pcbnew.py:16401
def clear(self)
Definition: pcbnew.py:16489
def __setitem__(self, *args)
Definition: pcbnew.py:16442
def __bool__(self)
Definition: pcbnew.py:16390
def ParseBusGroup(aGroup, name, aMemberList)
Definition: pcbnew.py:10696
def GetEffectiveNetClass(self, aNetName)
Definition: pcbnew.py:10686
def __init__(self, aParent, aPath)
Definition: pcbnew.py:10678
def ParseBusVector(aBus, aName, aMemberList)
Definition: pcbnew.py:10691
def Print(self, nestLevel, fmt)
Definition: pcbnew.py:2151
def GetQuoteChar(self, wrapee)
Definition: pcbnew.py:2155
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:2147
def Quotew(self, aWrapee)
Definition: pcbnew.py:2163
def Quotes(self, aWrapee)
Definition: pcbnew.py:2159
def insert(self, *args)
Definition: pcbnew.py:16105
def rend(self)
Definition: pcbnew.py:16050
def back(self)
Definition: pcbnew.py:16090
def swap(self, v)
Definition: pcbnew.py:16034
def __delitem__(self, *args)
Definition: pcbnew.py:15996
def reserve(self, n)
Definition: pcbnew.py:16112
def capacity(self)
Definition: pcbnew.py:16116
def __getitem__(self, *args)
Definition: pcbnew.py:16003
def empty(self)
Definition: pcbnew.py:16026
def pop(self)
Definition: pcbnew.py:16018
def __getslice__(self, i, j)
Definition: pcbnew.py:15981
def size(self)
Definition: pcbnew.py:16030
def rbegin(self)
Definition: pcbnew.py:16046
def __len__(self)
Definition: pcbnew.py:15977
def __delslice__(self, i, j)
Definition: pcbnew.py:15992
def clear(self)
Definition: pcbnew.py:16054
def __bool__(self)
Definition: pcbnew.py:15973
def __iter__(self)
Definition: pcbnew.py:15966
def append(self, x)
Definition: pcbnew.py:16022
def assign(self, n, x)
Definition: pcbnew.py:16094
def __setitem__(self, *args)
Definition: pcbnew.py:16010
def pop_back(self)
Definition: pcbnew.py:16062
def resize(self, *args)
Definition: pcbnew.py:16098
def front(self)
Definition: pcbnew.py:16086
def begin(self)
Definition: pcbnew.py:16038
def erase(self, *args)
Definition: pcbnew.py:16066
def __init__(self, *args)
Definition: pcbnew.py:16073
def iterator(self)
Definition: pcbnew.py:15963
def push_back(self, x)
Definition: pcbnew.py:16082
def __nonzero__(self)
Definition: pcbnew.py:15969
def end(self)
Definition: pcbnew.py:16042
def get_allocator(self)
Definition: pcbnew.py:16058
def __setslice__(self, *args)
Definition: pcbnew.py:15985
def rbegin(self)
Definition: pcbnew.py:12021
def front(self)
Definition: pcbnew.py:12061
def erase(self, *args)
Definition: pcbnew.py:12041
def append(self, x)
Definition: pcbnew.py:11997
def rend(self)
Definition: pcbnew.py:12025
def end(self)
Definition: pcbnew.py:12017
def pop_back(self)
Definition: pcbnew.py:12037
def resize(self, *args)
Definition: pcbnew.py:12073
def __getslice__(self, i, j)
Definition: pcbnew.py:11956
def empty(self)
Definition: pcbnew.py:12001
def __setitem__(self, *args)
Definition: pcbnew.py:11985
def __nonzero__(self)
Definition: pcbnew.py:11944
def begin(self)
Definition: pcbnew.py:12013
def size(self)
Definition: pcbnew.py:12005
def iterator(self)
Definition: pcbnew.py:11938
def __delitem__(self, *args)
Definition: pcbnew.py:11971
def push_front(self, x)
Definition: pcbnew.py:12091
def __bool__(self)
Definition: pcbnew.py:11948
def insert(self, *args)
Definition: pcbnew.py:12080
def back(self)
Definition: pcbnew.py:12065
def pop_front(self)
Definition: pcbnew.py:12087
def assign(self, n, x)
Definition: pcbnew.py:12069
def push_back(self, x)
Definition: pcbnew.py:12057
def get_allocator(self)
Definition: pcbnew.py:12033
def __delslice__(self, i, j)
Definition: pcbnew.py:11967
def pop(self)
Definition: pcbnew.py:11993
def __len__(self)
Definition: pcbnew.py:11952
def clear(self)
Definition: pcbnew.py:12029
def swap(self, v)
Definition: pcbnew.py:12009
def __init__(self, *args)
Definition: pcbnew.py:12048
def __iter__(self)
Definition: pcbnew.py:11941
def __getitem__(self, *args)
Definition: pcbnew.py:11978
def __setslice__(self, *args)
Definition: pcbnew.py:11960
def AddPrimitiveAnnotationBox(self, aStart, aEnd)
Definition: pcbnew.py:12723
def GetNumber(self)
Definition: pcbnew.py:12544
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:12998
def AddPrimitive(self, aPrimitive)
Definition: pcbnew.py:12755
def GetOrientation(self)
Definition: pcbnew.py:12763
def AddPrimitiveCurve(self, aStart, aEnd, aCtrl1, aCtrl2, aThickness)
Definition: pcbnew.py:12719
def GetDrillSizeY(self)
Definition: pcbnew.py:12684
def GetRoundRectRadiusRatio(self)
Definition: pcbnew.py:12954
def GetChamferPositions(self)
Definition: pcbnew.py:12970
def IsFreePad(self)
Definition: pcbnew.py:12580
def GetLocalZoneConnectionOverride(self, aSource=None)
Definition: pcbnew.py:12894
def GetLocalSpokeWidthOverride(self, aSource=None)
Definition: pcbnew.py:12906
def SetThermalSpokeAngleDegrees(self, aAngle)
Definition: pcbnew.py:12918
def GetPos0(self)
Definition: pcbnew.py:12620
def GetRemoveUnconnected(self)
Definition: pcbnew.py:12986
def SetThermalSpokeAngle(self, aAngle)
Definition: pcbnew.py:12910
def ConnSMDMask()
Definition: pcbnew.py:12505
def GetDelta(self)
Definition: pcbnew.py:12660
def SetSizeY(self, aY)
Definition: pcbnew.py:12648
def GetBoundingRadius(self)
Definition: pcbnew.py:12874
def SetDrawCoord(self)
Definition: pcbnew.py:13024
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:12850
def SetShape(self, aShape)
Definition: pcbnew.py:12584
def SetDrillSizeX(self, aX)
Definition: pcbnew.py:12672
def SetPinType(self, aType)
Definition: pcbnew.py:12560
def GetBestAnchorPosition(self, aPos)
Definition: pcbnew.py:12727
def GetZoneConnection(self)
Definition: pcbnew.py:12890
def GetPinFunction(self)
Definition: pcbnew.py:12556
def Compare(aPadRef, aPadCmp)
Definition: pcbnew.py:13033
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:12838
def IsNoConnectPad(self)
Definition: pcbnew.py:12576
def SetChamferPositions(self, aPositions)
Definition: pcbnew.py:12966
def GetKeepTopBottom(self)
Definition: pcbnew.py:12994
def GetOffset(self)
Definition: pcbnew.py:12692
def SetDrillSizeY(self, aY)
Definition: pcbnew.py:12680
def SetAttribute(self, aAttribute)
Definition: pcbnew.py:12791
def GetPadToDieLength(self)
Definition: pcbnew.py:12815
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:13065
def SetY(self, y)
Definition: pcbnew.py:12608
def GetPrimitives(self)
Definition: pcbnew.py:12739
def SetOrientation(self, aAngle)
Definition: pcbnew.py:12759
def SameLogicalPadAs(self, aOther)
Definition: pcbnew.py:12568
def SetDirty(self)
Definition: pcbnew.py:12787
def BuildEffectivePolygon(self, *args)
Definition: pcbnew.py:13053
def GetOrientationDegrees(self)
Definition: pcbnew.py:12771
def SetProperty(self, aProperty)
Definition: pcbnew.py:12799
def SetPinFunction(self, aName)
Definition: pcbnew.py:12552
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:13061
def CanHaveNumber(self)
Definition: pcbnew.py:12548
def GetDrillSizeX(self)
Definition: pcbnew.py:12676
def AddPrimitiveSegment(self, aStart, aEnd, aThickness)
Definition: pcbnew.py:12703
def IsFlipped(self)
Definition: pcbnew.py:12536
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:12842
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:12854
def GetChamferRectRatio(self)
Definition: pcbnew.py:12962
def SetX(self, x)
Definition: pcbnew.py:12612
def SetKeepTopBottom(self, aSet)
Definition: pcbnew.py:12990
def BuildEffectiveShapes(self, aLayer)
Definition: pcbnew.py:13049
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:12767
def GetDrillShape(self)
Definition: pcbnew.py:12779
def ShowPadAttr(self)
Definition: pcbnew.py:13041
def TransformHoleToPolygon(self, *args)
Definition: pcbnew.py:12862
def GetAnchorPadShape(self)
Definition: pcbnew.py:12592
def ApertureMask()
Definition: pcbnew.py:12515
def CanFlashLayer(self, aLayer)
Definition: pcbnew.py:13002
def GetRoundRectCornerRadius(self)
Definition: pcbnew.py:12942
def GetSolderPasteMargin(self)
Definition: pcbnew.py:12882
def TransformShapeToPolygon(self, *args)
Definition: pcbnew.py:12858
def GetPadName(self)
Definition: pcbnew.py:13084
def SetDelta(self, aSize)
Definition: pcbnew.py:12656
def UnplatedHoleMask()
Definition: pcbnew.py:12510
def SetCustomShapeInZoneOpt(self, aOption)
Definition: pcbnew.py:12600
def GetThermalGap(self)
Definition: pcbnew.py:12930
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:12846
def SetDrillShape(self, aShape)
Definition: pcbnew.py:12775
def GetPrincipalLayer(self)
Definition: pcbnew.py:13006
def SetPadToDieLength(self, aLength)
Definition: pcbnew.py:12811
def HitTest(self, *args)
Definition: pcbnew.py:13017
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:12982
def SetThermalGap(self, aGap)
Definition: pcbnew.py:12926
def GetPinType(self)
Definition: pcbnew.py:12564
def MergePrimitivesAsPolygon(self, *args)
Definition: pcbnew.py:12731
def FlashLayer(self, *args)
Definition: pcbnew.py:13010
def SetOffset(self, aOffset)
Definition: pcbnew.py:12688
def SetDrillSize(self, aSize)
Definition: pcbnew.py:12664
def SetPadName(self, aName)
Definition: pcbnew.py:13076
def SetThermalSpokeWidth(self, aWidth)
Definition: pcbnew.py:12898
def GetSubRatsnest(self)
Definition: pcbnew.py:12974
def SetSubRatsnest(self, aSubRatsnest)
Definition: pcbnew.py:12978
def AddPrimitiveRect(self, aStart, aEnd, aThickness, aFilled)
Definition: pcbnew.py:12711
def AddPrimitiveArc(self, aCenter, aStart, aArcAngle, aThickness)
Definition: pcbnew.py:12715
def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER)
Definition: pcbnew.py:13110
def GetSizeY(self)
Definition: pcbnew.py:12652
def SetRoundRectCornerRadius(self, aRadius)
Definition: pcbnew.py:12938
def ClonePad(self)
Definition: pcbnew.py:13045
def __init__(self, *args)
Definition: pcbnew.py:12487
def GetSize(self)
Definition: pcbnew.py:12636
def DeletePrimitivesList(self)
Definition: pcbnew.py:12735
def GetProperty(self)
Definition: pcbnew.py:12803
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:12866
def AppendPrimitives(self, aPrimitivesList)
Definition: pcbnew.py:12751
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:12819
def AddPrimitivePoly(self, *args)
Definition: pcbnew.py:12696
def SetSizeX(self, aX)
Definition: pcbnew.py:12640
def GetThermalSpokeAngleDegrees(self)
Definition: pcbnew.py:12922
def SetChamferRectRatio(self, aChamferScale)
Definition: pcbnew.py:12958
def SMDMask()
Definition: pcbnew.py:12500
def IsDirty(self)
Definition: pcbnew.py:12783
def SetName(self, aName)
Definition: pcbnew.py:13079
def SetY0(self, y)
Definition: pcbnew.py:12624
def SetRoundRectRadiusRatio(self, aRadiusScale)
Definition: pcbnew.py:12950
def GetParent(self)
Definition: pcbnew.py:12524
def GetAttribute(self)
Definition: pcbnew.py:12795
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:12834
def ImportSettingsFrom(self, aMasterPad)
Definition: pcbnew.py:12532
def SharesNetTieGroup(self, aOther)
Definition: pcbnew.py:12572
def GetParentAsString(self)
Definition: pcbnew.py:12528
def ReplacePrimitives(self, aPrimitivesList)
Definition: pcbnew.py:12747
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:12823
def PTHMask()
Definition: pcbnew.py:12495
def ShowPadShape(self)
Definition: pcbnew.py:13037
def SetZoneConnection(self, aType)
Definition: pcbnew.py:12886
def SetX0(self, x)
Definition: pcbnew.py:12628
def GetThermalSpokeWidth(self)
Definition: pcbnew.py:12902
def GetSizeX(self)
Definition: pcbnew.py:12644
def GetName(self)
Definition: pcbnew.py:13087
def SetSize(self, aSize)
Definition: pcbnew.py:12632
def GetCustomShapeInZoneOpt(self)
Definition: pcbnew.py:12596
def AddPrimitiveCircle(self, aCenter, aRadius, aThickness, aFilled)
Definition: pcbnew.py:12707
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:12878
def GetLocalThermalGapOverride(self, aSource=None)
Definition: pcbnew.py:12934
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13057
def ClassOf(aItem)
Definition: pcbnew.py:12520
def GetThermalSpokeAngle(self)
Definition: pcbnew.py:12914
def SetAnchorPadShape(self, aShape)
Definition: pcbnew.py:12604
def GetEffectivePolygon(self, *args)
Definition: pcbnew.py:12870
def GetDrillSize(self)
Definition: pcbnew.py:12668
def FlipPrimitives(self, aFlipLeftRight)
Definition: pcbnew.py:12743
def SetNumber(self, aNumber)
Definition: pcbnew.py:12540
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:13069
def SetLocalCoord(self)
Definition: pcbnew.py:13028
def IsAperturePad(self)
Definition: pcbnew.py:12807
def ShapePos(self)
Definition: pcbnew.py:12946
def GetShape(self)
Definition: pcbnew.py:12588
def GetLocalClearance(self, *args)
Definition: pcbnew.py:12827
def SetPos0(self, aPos)
Definition: pcbnew.py:12616
def SetMid(self, aMid)
Definition: pcbnew.py:13306
def HitTest(self, *args)
Definition: pcbnew.py:13330
def GetArcAngleStart(self)
Definition: pcbnew.py:13322
def GetMid(self)
Definition: pcbnew.py:13310
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13341
def IsDegenerated(self, aThreshold=5)
Definition: pcbnew.py:13345
def GetAngle(self)
Definition: pcbnew.py:13318
def GetRadius(self)
Definition: pcbnew.py:13314
def IsCCW(self)
Definition: pcbnew.py:13337
def GetArcAngleEnd(self)
Definition: pcbnew.py:13326
def __init__(self, *args)
Definition: pcbnew.py:13294
def ClassOf(aItem)
Definition: pcbnew.py:13302
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:17206
def ReadImageFile(self, aFullFilename)
Definition: pcbnew.py:17214
def __init__(self, *args)
Definition: pcbnew.py:17169
def GetSize(self)
Definition: pcbnew.py:17202
def HitTest(self, *args)
Definition: pcbnew.py:17218
def ClassOf(aItem)
Definition: pcbnew.py:17198
def MutableImage(self)
Definition: pcbnew.py:17181
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17210
def GetImage(self)
Definition: pcbnew.py:17177
def SetImageScale(self, aScale)
Definition: pcbnew.py:17193
def GetImageScale(self)
Definition: pcbnew.py:17189
def SetImage(self, aImage)
Definition: pcbnew.py:17185
def SetUnits(self, aUnits)
Definition: pcbnew.py:15214
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:15126
def SetArrowLength(self, aLength)
Definition: pcbnew.py:15290
def GetKeepTextAligned(self)
Definition: pcbnew.py:15270
def ChangeOverrideText(self, aValue)
Definition: pcbnew.py:15162
def SetOverrideTextEnabled(self, aOverride)
Definition: pcbnew.py:15150
def SetTextPositionMode(self, aMode)
Definition: pcbnew.py:15278
def SetOverrideText(self, aValue)
Definition: pcbnew.py:15158
def ChangeSuffix(self, aSuffix)
Definition: pcbnew.py:15206
def ChangePrecision(self, aPrecision)
Definition: pcbnew.py:15254
def GetOverrideTextEnabled(self)
Definition: pcbnew.py:15146
def SetEnd(self, aPoint)
Definition: pcbnew.py:15142
def SetAutoUnits(self, aAuto=True)
Definition: pcbnew.py:15230
def SetMeasuredValue(self, aValue)
Definition: pcbnew.py:15170
def SetSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:15262
def SetPrefix(self, aPrefix)
Definition: pcbnew.py:15190
def GetExtensionOffset(self)
Definition: pcbnew.py:15298
def GetSuppressZeroes(self)
Definition: pcbnew.py:15258
def GetTextPositionMode(self)
Definition: pcbnew.py:15282
def ChangeSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:15266
def SetUnitsFormat(self, aFormat)
Definition: pcbnew.py:15238
def ChangePrefix(self, aPrefix)
Definition: pcbnew.py:15194
def SetLineThickness(self, aWidth)
Definition: pcbnew.py:15306
def GetMeasuredValue(self)
Definition: pcbnew.py:15166
def SetKeepTextAligned(self, aKeepAligned)
Definition: pcbnew.py:15274
def SetExtensionOffset(self, aOffset)
Definition: pcbnew.py:15294
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:15329
def Mirror(self, axis_pos, aMirrorLeftRight=False)
Definition: pcbnew.py:15314
def ChangeUnitsMode(self, aMode)
Definition: pcbnew.py:15226
def HitTest(self, *args)
Definition: pcbnew.py:15318
def GetLineThickness(self)
Definition: pcbnew.py:15302
def SetPrecision(self, aPrecision)
Definition: pcbnew.py:15250
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15325
def ChangeUnitsFormat(self, aFormat)
Definition: pcbnew.py:15242
def SetStart(self, aPoint)
Definition: pcbnew.py:15134
def SetUnitsMode(self, aMode)
Definition: pcbnew.py:15222
def SetSuffix(self, aSuffix)
Definition: pcbnew.py:15202
def SetExtensionHeight(self, aHeight)
Definition: pcbnew.py:15381
def ClassOf(aItem)
Definition: pcbnew.py:15349
def GetCrossbarEnd(self)
Definition: pcbnew.py:15361
def __init__(self, aParent, aType)
Definition: pcbnew.py:15343
def GetCrossbarStart(self)
Definition: pcbnew.py:15357
def UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
Definition: pcbnew.py:15377
def SetHeight(self, aHeight)
Definition: pcbnew.py:15365
def Mirror(self, axis_pos, aMirrorLeftRight=False)
Definition: pcbnew.py:15353
def GetExtensionHeight(self)
Definition: pcbnew.py:15385
def ChangeHeight(self, aHeight)
Definition: pcbnew.py:15373
def ChangeExtensionHeight(self, aHeight)
Definition: pcbnew.py:15389
def __init__(self, aParent, aInFP=False)
Definition: pcbnew.py:15519
def ClassOf(aItem)
Definition: pcbnew.py:15524
def ClassOf(aItem)
Definition: pcbnew.py:15489
def ChangeTextBorder(self, aBorder)
Definition: pcbnew.py:15501
def SetTextBorder(self, aBorder)
Definition: pcbnew.py:15493
def GetTextBorder(self)
Definition: pcbnew.py:15497
def __init__(self, aParent, aInFP=False)
Definition: pcbnew.py:15484
def __init__(self, aParent, aInFP=False)
Definition: pcbnew.py:15414
def SetOrientation(self, aOrientation)
Definition: pcbnew.py:15424
def SetLeaderLength(self, aLength)
Definition: pcbnew.py:15454
def GetLeaderLength(self)
Definition: pcbnew.py:15458
def ClassOf(aItem)
Definition: pcbnew.py:15450
def ChangeLeaderLength(self, aLength)
Definition: pcbnew.py:15462
def __init__(self, aParent, aInFP=False)
Definition: pcbnew.py:15445
def TopLevelGroup(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17082
def IsGroupableType(aType)
Definition: pcbnew.py:17131
def DeepDuplicate(self)
Definition: pcbnew.py:17099
def RemoveAll(self)
Definition: pcbnew.py:17077
def SetName(self, aName)
Definition: pcbnew.py:17058
def RunOnChildren(self, aFunction)
Definition: pcbnew.py:17122
def WithinScope(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17087
def GetName(self)
Definition: pcbnew.py:17054
def ClassOf(aItem)
Definition: pcbnew.py:17050
def AddItem(self, aItem)
Definition: pcbnew.py:17069
def AddChildrenToCommit(self, aCommit)
Definition: pcbnew.py:17118
def RemoveItem(self, aItem)
Definition: pcbnew.py:17073
def __init__(self, aParent)
Definition: pcbnew.py:17045
def DeepClone(self)
Definition: pcbnew.py:17095
def HitTest(self, *args)
Definition: pcbnew.py:17103
def RunOnDescendants(self, aFunction)
Definition: pcbnew.py:17126
def GetItems(self, *args)
Definition: pcbnew.py:17062
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:17114
def SetLayerRecursive(self, aLayer, aDepth)
Definition: pcbnew.py:17091
def GetItemsDeque(self)
Definition: pcbnew.py:17135
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17110
def __init__(self, aItem, aPos, aLayer=F_Cu)
Definition: pcbnew.py:15544
def SetZoom(self, aZoomFactor)
Definition: pcbnew.py:15575
def HitTest(self, aPosition, aAccuracy=0)
Definition: pcbnew.py:15563
def Serialize(self)
Definition: pcbnew.py:15554
def GetColorLayer(self)
Definition: pcbnew.py:15567
def ClassOf(aItem)
Definition: pcbnew.py:15550
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15571
def Deserialize(data)
Definition: pcbnew.py:15559
def SetFineScaleAdjustY(self, aVal)
Definition: pcbnew.py:8246
def ColorSettings(self)
Definition: pcbnew.py:8186
def GetDashedLineGapRatio(self)
Definition: pcbnew.py:8511
def GetPlotViaOnMaskLayer(self)
Definition: pcbnew.py:8330
def GetDrillMarksType(self)
Definition: pcbnew.py:8226
def GetDisableGerberMacros(self)
Definition: pcbnew.py:8362
def GetTextMode(self)
Definition: pcbnew.py:8194
def GetPlotReference(self)
Definition: pcbnew.py:8314
def SetPlotReference(self, aFlag)
Definition: pcbnew.py:8310
def SetLayerSelection(self, aSelection)
Definition: pcbnew.py:8435
def GetLayerSelection(self)
Definition: pcbnew.py:8439
def GetWidthAdjust(self)
Definition: pcbnew.py:8258
def GetUseGerberX2format(self)
Definition: pcbnew.py:8370
def SetColorSettings(self, aSettings)
Definition: pcbnew.py:8182
def SetDashedLineGapRatio(self, aVal)
Definition: pcbnew.py:8507
def SetA4Output(self, aForce)
Definition: pcbnew.py:8467
def GetScale(self)
Definition: pcbnew.py:8234
def SetWidthAdjust(self, aVal)
Definition: pcbnew.py:8254
def GetSketchPadsOnFabLayers(self)
Definition: pcbnew.py:8282
def SetUseGerberProtelExtensions(self, aUse)
Definition: pcbnew.py:8390
def SetUseGerberAttributes(self, aUse)
Definition: pcbnew.py:8517
def SetSketchPadLineWidth(self, aWidth)
Definition: pcbnew.py:8286
def SetDXFPlotUnits(self, aUnit)
Definition: pcbnew.py:8214
def GetFineScaleAdjustY(self)
Definition: pcbnew.py:8250
def GetSketchPadLineWidth(self)
Definition: pcbnew.py:8290
def SetFormat(self, aFormat)
Definition: pcbnew.py:8342
def SetSkipPlotNPTH_Pads(self, aSkip)
Definition: pcbnew.py:8162
def SetPlotMode(self, aPlotMode)
Definition: pcbnew.py:8198
def SetScaleSelection(self, aSelection)
Definition: pcbnew.py:8459
def SetFineScaleAdjustX(self, aVal)
Definition: pcbnew.py:8238
def SetBlackAndWhite(self, blackAndWhite)
Definition: pcbnew.py:8414
def GetScaleSelection(self)
Definition: pcbnew.py:8463
def GetAutoScale(self)
Definition: pcbnew.py:8266
def SetHPGLPenNum(self, aVal)
Definition: pcbnew.py:8491
def GetA4Output(self)
Definition: pcbnew.py:8471
def GetMirror(self)
Definition: pcbnew.py:8274
def SetDashedLineDashRatio(self, aVal)
Definition: pcbnew.py:8499
def GetGerberPrecision(self)
Definition: pcbnew.py:8402
def SetUseGerberX2format(self, aUse)
Definition: pcbnew.py:8366
def SetTextMode(self, aVal)
Definition: pcbnew.py:8190
def SetPlotViaOnMaskLayer(self, aFlag)
Definition: pcbnew.py:8326
def GetPlotInvisibleText(self)
Definition: pcbnew.py:8298
def GetFormat(self)
Definition: pcbnew.py:8346
def SetScale(self, aVal)
Definition: pcbnew.py:8230
def SetSvgPrecision(self, aPrecision)
Definition: pcbnew.py:8406
def __init__(self)
Definition: pcbnew.py:8158
def IsSameAs(self, aPcbPlotParams)
Definition: pcbnew.py:8178
def SetUseAuxOrigin(self, aAux)
Definition: pcbnew.py:8451
def GetGerberDefaultPrecision()
Definition: pcbnew.py:8423
def GetHPGLPenNum(self)
Definition: pcbnew.py:8495
def GetNegative(self)
Definition: pcbnew.py:8322
def SetSubtractMaskFromSilk(self, aSubtract)
Definition: pcbnew.py:8427
def SetAutoScale(self, aFlag)
Definition: pcbnew.py:8262
def GetPlotFrameRef(self)
Definition: pcbnew.py:8338
def GetDXFPlotPolygonMode(self)
Definition: pcbnew.py:8210
def GetIncludeGerberNetlistInfo(self)
Definition: pcbnew.py:8378
def SetMirror(self, aFlag)
Definition: pcbnew.py:8270
def GetSvgPrecision(self)
Definition: pcbnew.py:8410
def GetUseAuxOrigin(self)
Definition: pcbnew.py:8455
def SetDrillMarksType(self, aVal)
Definition: pcbnew.py:8222
def GetFineScaleAdjustX(self)
Definition: pcbnew.py:8242
def GetCreateGerberJobFile(self)
Definition: pcbnew.py:8386
def GetOutputDirectory(self)
Definition: pcbnew.py:8354
def GetHPGLPenSpeed(self)
Definition: pcbnew.py:8483
def SetPlotFrameRef(self, aFlag)
Definition: pcbnew.py:8334
def SetPlotInvisibleText(self, aFlag)
Definition: pcbnew.py:8294
def GetDXFPlotUnits(self)
Definition: pcbnew.py:8218
def GetDashedLineDashRatio(self)
Definition: pcbnew.py:8503
def SetPlotOnAllLayersSelection(self, aSelection)
Definition: pcbnew.py:8443
def SetIncludeGerberNetlistInfo(self, aUse)
Definition: pcbnew.py:8374
def SetDisableGerberMacros(self, aDisable)
Definition: pcbnew.py:8358
def SetCreateGerberJobFile(self, aCreate)
Definition: pcbnew.py:8382
def SetGerberPrecision(self, aPrecision)
Definition: pcbnew.py:8398
def GetPlotValue(self)
Definition: pcbnew.py:8306
def SetSketchPadsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8278
def GetHPGLPenDiameter(self)
Definition: pcbnew.py:8475
def GetBlackAndWhite(self)
Definition: pcbnew.py:8418
def GetUseGerberProtelExtensions(self)
Definition: pcbnew.py:8394
def GetSubtractMaskFromSilk(self)
Definition: pcbnew.py:8431
def SetDXFPlotPolygonMode(self, aFlag)
Definition: pcbnew.py:8206
def Parse(self, aParser)
Definition: pcbnew.py:8174
def GetPlotOnAllLayersSelection(self)
Definition: pcbnew.py:8447
def SetOutputDirectory(self, aDir)
Definition: pcbnew.py:8350
def SetHPGLPenSpeed(self, aValue)
Definition: pcbnew.py:8487
def Format(self, aFormatter, aNestLevel, aControl=0)
Definition: pcbnew.py:8170
def SetPlotValue(self, aFlag)
Definition: pcbnew.py:8302
def SetNegative(self, aFlag)
Definition: pcbnew.py:8318
def GetPlotMode(self)
Definition: pcbnew.py:8202
def SetHPGLPenDiameter(self, aValue)
Definition: pcbnew.py:8479
def GetSkipPlotNPTH_Pads(self)
Definition: pcbnew.py:8166
def GetStringOutput(self, doClear)
Definition: pcbnew.py:8065
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:8024
def FootprintLibCreate(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8048
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8028
def SetOutputFormatter(self, aFormatter)
Definition: pcbnew.py:8069
def Parse(self, aClipboardSourceInput)
Definition: pcbnew.py:8073
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:8036
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:8040
def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
Definition: pcbnew.py:8020
def FootprintLibDelete(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8052
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8044
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8032
def Save(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8012
def __init__(self, *args)
Definition: pcbnew.py:8056
def Format(self, aItem, aNestLevel=0)
Definition: pcbnew.py:8061
def Load(self, aFileName, aAppendToMe, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:8016
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14841
def NormalizeRect(self)
Definition: pcbnew.py:14852
def GetCorners(self)
Definition: pcbnew.py:14833
def __init__(self, *args)
Definition: pcbnew.py:14816
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14868
def GetFriendlyName(self)
Definition: pcbnew.py:14829
def GetArcAngleStart(self)
Definition: pcbnew.py:14872
def Scale(self, aScale)
Definition: pcbnew.py:14860
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:14864
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:14856
def GetShapeStr(self)
Definition: pcbnew.py:14876
def GetParentFootprint(self)
Definition: pcbnew.py:14837
def HitTest(self, *args)
Definition: pcbnew.py:14845
def ClassOf(aItem)
Definition: pcbnew.py:14825
def GetShape(self)
Definition: pcbnew.py:15613
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15640
def __init__(self, *args)
Definition: pcbnew.py:15596
def ClassOf(aItem)
Definition: pcbnew.py:15605
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:15644
def HitTest(self, *args)
Definition: pcbnew.py:15633
def SetWidth(self, aWidth)
Definition: pcbnew.py:15625
def GetWidth(self)
Definition: pcbnew.py:15629
def SetSize(self, aSize)
Definition: pcbnew.py:15617
def SetShape(self, aShape)
Definition: pcbnew.py:15609
def GetSize(self)
Definition: pcbnew.py:15621
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15003
def TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc)
Definition: pcbnew.py:14995
def GetAnchorAndOppositeCorner(self)
Definition: pcbnew.py:14984
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15007
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:14999
def ClassOf(aItem)
Definition: pcbnew.py:14972
def HitTest(self, *args)
Definition: pcbnew.py:14988
def GetTextMargin(self)
Definition: pcbnew.py:14976
def __init__(self, parent)
Definition: pcbnew.py:14966
def IsBorderEnabled(self)
Definition: pcbnew.py:15011
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:14980
def DisableBorder(self)
Definition: pcbnew.py:15015
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:14903
def ClassOf(aItem)
Definition: pcbnew.py:14899
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:14929
def HitTest(self, *args)
Definition: pcbnew.py:14918
def __init__(self, parent, idtype=PCB_TEXT_T)
Definition: pcbnew.py:14893
def TransformTextToPolySet(self, aBuffer, aClearance, aError, aErrorLoc)
Definition: pcbnew.py:14925
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:14907
def TextHitTest(self, *args)
Definition: pcbnew.py:14911
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14933
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14937
def __init__(self, aParent, idtype=PCB_TRACE_T)
Definition: pcbnew.py:13173
def ClassOf(aItem)
Definition: pcbnew.py:13169
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13233
def GetEndX(self)
Definition: pcbnew.py:13213
def IsPointOnEnds(self, point, min_dist=0)
Definition: pcbnew.py:13237
def GetCachedLOD(self)
Definition: pcbnew.py:13264
def ApproxCollinear(self, aTrack)
Definition: pcbnew.py:13252
def SetWidth(self, aWidth)
Definition: pcbnew.py:13181
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:13229
def GetEndPoint(self, aEndPoint)
Definition: pcbnew.py:13221
def GetStart(self)
Definition: pcbnew.py:13201
def GetCachedScale(self)
Definition: pcbnew.py:13272
def SetStart(self, aStart)
Definition: pcbnew.py:13197
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:13177
def SetCachedScale(self, aScale)
Definition: pcbnew.py:13276
def SetEndX(self, aX)
Definition: pcbnew.py:13205
def GetEnd(self)
Definition: pcbnew.py:13193
def IsNull(self)
Definition: pcbnew.py:13241
def GetLength(self)
Definition: pcbnew.py:13225
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13260
def HitTest(self, *args)
Definition: pcbnew.py:13245
def SetCachedLOD(self, aLOD)
Definition: pcbnew.py:13268
def SetEnd(self, aEnd)
Definition: pcbnew.py:13189
def GetWidthConstraint(self, aSource=None)
Definition: pcbnew.py:13256
def GetWidth(self)
Definition: pcbnew.py:13185
def SetEndY(self, aY)
Definition: pcbnew.py:13209
def GetEndY(self)
Definition: pcbnew.py:13217
def LayerPair(self, top_layer, bottom_layer)
Definition: pcbnew.py:13399
def ClassOf(aItem)
Definition: pcbnew.py:13364
def SetKeepStartEnd(self, aSet)
Definition: pcbnew.py:13438
def SanitizeLayers(self)
Definition: pcbnew.py:13411
def GetMinAnnulus(self, aLayer, aSource)
Definition: pcbnew.py:13426
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:13446
def GetKeepStartEnd(self)
Definition: pcbnew.py:13442
def TopLayer(self)
Definition: pcbnew.py:13403
def HitTest(self, *args)
Definition: pcbnew.py:13415
def SetViaType(self, aViaType)
Definition: pcbnew.py:13379
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:13497
def GetRemoveUnconnected(self)
Definition: pcbnew.py:13434
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13422
def IsDrillDefault(self)
Definition: pcbnew.py:13481
def SetDrill(self, aDrill)
Definition: pcbnew.py:13457
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:13383
def SetBottomLayer(self, aLayer)
Definition: pcbnew.py:13391
def GetIsFree(self)
Definition: pcbnew.py:13473
def FlashLayer(self, *args)
Definition: pcbnew.py:13450
def GetViaType(self)
Definition: pcbnew.py:13375
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:13489
def __init__(self, *args)
Definition: pcbnew.py:13368
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:13430
def BottomLayer(self)
Definition: pcbnew.py:13407
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13485
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:13493
def GetDrillValue(self)
Definition: pcbnew.py:13465
def SetDrillDefault(self)
Definition: pcbnew.py:13469
def SetLayerPair(self, aTopLayer, aBottomLayer)
Definition: pcbnew.py:13387
def GetDrill(self)
Definition: pcbnew.py:13461
def SetTopLayer(self, aLayer)
Definition: pcbnew.py:13395
def SetIsFree(self, aFree=True)
Definition: pcbnew.py:13477
def GetFootprintCount(self)
Definition: pcbnew.py:8889
def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX)
Definition: pcbnew.py:8877
def MoveTo(self, pos)
Definition: pcbnew.py:8685
def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:8755
def Bookmark(self, *args)
Definition: pcbnew.py:8779
def SetNegative(self, aNegative)
Definition: pcbnew.py:8585
def SetTextMode(self, mode)
Definition: pcbnew.py:8793
def SetRenderSettings(self, aSettings)
Definition: pcbnew.py:8597
def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:8743
def SetCurrentLineWidth(self, width, aData=None)
Definition: pcbnew.py:8613
def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:8739
def ThickRect(self, p1, p2, width, tracemode, aData)
Definition: pcbnew.py:8723
def PlotText(self, aPos, aColor, aText, aAttributes, aFont, aData=None)
Definition: pcbnew.py:8767
def ThickCircle(self, pos, diametre, width, tracemode, aData)
Definition: pcbnew.py:8727
def LineTo(self, pos)
Definition: pcbnew.py:8689
def Marker(self, position, diametre, aShapeId)
Definition: pcbnew.py:8785
def SetCreator(self, aCreator)
Definition: pcbnew.py:8629
def EndBlock(self, aData)
Definition: pcbnew.py:8809
def StartBlock(self, aData)
Definition: pcbnew.py:8805
def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
Definition: pcbnew.py:8645
def GetPlotterType(self)
Definition: pcbnew.py:8573
def HyperlinkBox(self, aBox, aDestinationURL)
Definition: pcbnew.py:8771
def PenTo(self, pos, plume)
Definition: pcbnew.py:8681
def ClearHeaderLinesList(self)
Definition: pcbnew.py:8641
def GetPlotterArcLowDef(self)
Definition: pcbnew.py:8657
def PlotPoly(self, *args)
Definition: pcbnew.py:8701
def StartPlot(self, aPageNumber)
Definition: pcbnew.py:8577
def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
Definition: pcbnew.py:8759
def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
Definition: pcbnew.py:8751
def GetColorMode(self)
Definition: pcbnew.py:8593
def BezierCurve(self, *args)
Definition: pcbnew.py:8677
def GetCurrentLineWidth(self)
Definition: pcbnew.py:8617
def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
Definition: pcbnew.py:8747
def PlotImage(self, aImage, aPos, aScaleFactor)
Definition: pcbnew.py:8708
def ThickArc(self, *args)
Definition: pcbnew.py:8716
def Circle(self, *args)
Definition: pcbnew.py:8669
def RenderSettings(self)
Definition: pcbnew.py:8601
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:8605
def SetDash(self, aLineWidth, aLineStyle)
Definition: pcbnew.py:8625
def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aData=None)
Definition: pcbnew.py:8763
def AddLineToHeader(self, aExtraString)
Definition: pcbnew.py:8637
def SetSvgCoordinatesFormat(self, aPrecision)
Definition: pcbnew.py:8801
def HyperlinkMenu(self, aBox, aDestURLs)
Definition: pcbnew.py:8775
def Arc(self, aCenter, aStart, aEnd, aFill, aWidth, aMaxError)
Definition: pcbnew.py:8673
def Rect(self, *args)
Definition: pcbnew.py:8665
def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
Definition: pcbnew.py:8735
def SetLayerPolarity(self, aPositive)
Definition: pcbnew.py:8789
def SetColor(self, color)
Definition: pcbnew.py:8621
def FinishTo(self, pos)
Definition: pcbnew.py:8693
def EndPlot(self)
Definition: pcbnew.py:8581
def FilledCircle(self, pos, diametre, tracemode, aData)
Definition: pcbnew.py:8731
def GetPlotterArcHighDef(self)
Definition: pcbnew.py:8661
def PenFinish(self)
Definition: pcbnew.py:8697
def ThickSegment(self, start, end, width, tracemode, aData)
Definition: pcbnew.py:8712
def GetIUsPerDecimil(self)
Definition: pcbnew.py:8653
def SetTitle(self, aTitle)
Definition: pcbnew.py:8633
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:8564
def OpenFile(self, aFullFilename)
Definition: pcbnew.py:8649
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:8589
def PageSettings(self)
Definition: pcbnew.py:8609
def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False)
Definition: pcbnew.py:8797
def OpenPlotfile(self, *args)
Definition: pcbnew.py:8111
def GetPlotOptions(self)
Definition: pcbnew.py:8091
def GetPlotDirName(self)
Definition: pcbnew.py:8127
def PlotLayer(self)
Definition: pcbnew.py:8115
def GetColorMode(self)
Definition: pcbnew.py:8135
def ClosePlot(self)
Definition: pcbnew.py:8107
def GetLayer(self)
Definition: pcbnew.py:8099
def __init__(self, aBoard)
Definition: pcbnew.py:8086
def GetPlotter(self)
Definition: pcbnew.py:8139
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:8131
def SetLayer(self, aLayer)
Definition: pcbnew.py:8095
def GetPlotFileName(self)
Definition: pcbnew.py:8123
def IsPlotOpen(self)
Definition: pcbnew.py:8103
def PlotLayers(self, aLayerSequence)
Definition: pcbnew.py:8119
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7849
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:7841
def footprintPyEnumerate(self, aLibraryPath, aExitOnError)
Definition: pcbnew.py:7878
def GetFileExtension(self)
Definition: pcbnew.py:7809
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7845
def IsFootprintLibWritable(self, aLibraryPath)
Definition: pcbnew.py:7869
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7857
def PrefetchLib(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7837
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:7801
def GetImportedCachedLibraryFootprints(self)
Definition: pcbnew.py:7821
def FootprintLibOptions(self, aListToAppendTo)
Definition: pcbnew.py:7873
def SetQueryUserCallback(self, aCallback)
Definition: pcbnew.py:7813
def FootprintLibDelete(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7865
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:7829
def FootprintLibCreate(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7861
def GetLibraryTimestamp(self, aLibraryPath)
Definition: pcbnew.py:7833
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:7853
def Load(self, aFileName, aAppendToMe, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:7817
def Save(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:7825
def PluginName(self)
Definition: pcbnew.py:7805
def __eq__(self, other)
Definition: pcbnew.py:17429
def __eq__(self, other)
Definition: pcbnew.py:17409
def __eq__(self, other)
Definition: pcbnew.py:17450
def deregister_action(wizard)
Definition: pcbnew.py:19286
def TCoef(self, aP)
Definition: pcbnew.py:5786
def Collide(self, aSeg, aClearance, aActual=None)
Definition: pcbnew.py:5736
def __lt__(self, aSeg)
Definition: pcbnew.py:5813
def Overlaps(self, aSeg)
Definition: pcbnew.py:5774
def LineProject(self, aP)
Definition: pcbnew.py:5689
def Contains(self, *args)
Definition: pcbnew.py:5794
def __eq__(self, aSeg)
Definition: pcbnew.py:5676
def ReflectPoint(self, aP)
Definition: pcbnew.py:5712
def LineDistance(self, aP, aDetermineSide=False)
Definition: pcbnew.py:5697
def CanonicalCoefs(self, qA, qB, qC)
Definition: pcbnew.py:5754
def Reversed(self)
Definition: pcbnew.py:5805
def __init__(self, *args)
Definition: pcbnew.py:5666
def Intersects(self, aSeg)
Definition: pcbnew.py:5720
def SquaredDistance(self, *args)
Definition: pcbnew.py:5740
def __ne__(self, aSeg)
Definition: pcbnew.py:5680
def Angle(self, aOther)
Definition: pcbnew.py:5701
def Collinear(self, aSeg)
Definition: pcbnew.py:5758
def Length(self)
Definition: pcbnew.py:5778
def Reverse(self)
Definition: pcbnew.py:5801
def NearestPoint(self, *args)
Definition: pcbnew.py:5705
def Square(a)
Definition: pcbnew.py:5685
def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False)
Definition: pcbnew.py:5716
def Index(self)
Definition: pcbnew.py:5790
def Side(self, aP)
Definition: pcbnew.py:5693
def Distance(self, *args)
Definition: pcbnew.py:5747
def SquaredLength(self)
Definition: pcbnew.py:5782
def ApproxCollinear(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5762
def ParallelSeg(self, aP)
Definition: pcbnew.py:5732
def IntersectLines(self, aSeg)
Definition: pcbnew.py:5724
def PerpendicularSeg(self, aP)
Definition: pcbnew.py:5728
def ApproxPerpendicular(self, aSeg)
Definition: pcbnew.py:5770
def Center(self)
Definition: pcbnew.py:5809
def ApproxParallel(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5766
def AddNewColorSettings(self, aFilename)
Definition: pcbnew.py:3923
def SetMigrateLibraryTables(self, aMigrate=True)
Definition: pcbnew.py:3947
def GetPreviousVersionPaths(self, aName=None)
Definition: pcbnew.py:3951
def GetPathForSettingsFile(self, aSettings)
Definition: pcbnew.py:3935
def IsProjectOpen(self)
Definition: pcbnew.py:3967
def Save(self, *args)
Definition: pcbnew.py:3900
def GetColorSettings(self, *args)
Definition: pcbnew.py:3911
def GetColorSettingsList(self)
Definition: pcbnew.py:3915
def SaveColorSettings(self, *args)
Definition: pcbnew.py:3919
def Load(self, *args)
Definition: pcbnew.py:3893
def GetProject(self, aFullPath)
Definition: pcbnew.py:3975
def GetMigratedColorSettings(self)
Definition: pcbnew.py:3927
def IsSettingsPathValid(aPath)
Definition: pcbnew.py:4008
def MigrateIfNeeded(self)
Definition: pcbnew.py:3939
def UnloadProject(self, aProject, aSave=True)
Definition: pcbnew.py:3963
def TriggerBackupIfNeeded(self, aReporter)
Definition: pcbnew.py:4003
def GetCommonSettings(self)
Definition: pcbnew.py:3931
def __init__(self, aHeadless=False)
Definition: pcbnew.py:3880
def BackupProject(self, aReporter)
Definition: pcbnew.py:3999
def LoadProject(self, aFullPath, aSetActive=True)
Definition: pcbnew.py:3959
def FlushAndRelease(self, aSettings, aSave=True)
Definition: pcbnew.py:3907
def GetOpenProjects(self)
Definition: pcbnew.py:3979
def SaveProjectAs(self, aFullPath, aProject=None)
Definition: pcbnew.py:3987
def SetKiway(self, aKiway)
Definition: pcbnew.py:3889
def SaveProjectCopy(self, aFullPath, aProject=None)
Definition: pcbnew.py:3991
def SetMigrationSource(self, aSource)
Definition: pcbnew.py:3943
def SaveProject(self, *args)
Definition: pcbnew.py:3983
def GetProjectBackupsPath(self)
Definition: pcbnew.py:3995
def ReloadColorSettings(self)
Definition: pcbnew.py:3955
def BBox(self, aClearance=0)
Definition: pcbnew.py:6064
def GetRadius(self)
Definition: pcbnew.py:6111
def IntersectLine(self, aSeg, aIpsBuffer)
Definition: pcbnew.py:6076
def SetWidth(self, aWidth)
Definition: pcbnew.py:6088
def GetWidth(self)
Definition: pcbnew.py:6092
def Intersect(self, aArc, aIpsBuffer)
Definition: pcbnew.py:6080
def DefaultAccuracyForPCB()
Definition: pcbnew.py:6136
def Mirror(self, *args)
Definition: pcbnew.py:6096
def GetP1(self)
Definition: pcbnew.py:6052
def Collide(self, *args)
Definition: pcbnew.py:6068
def GetCentralAngle(self)
Definition: pcbnew.py:6119
def IsClockwise(self)
Definition: pcbnew.py:6084
def GetCenter(self)
Definition: pcbnew.py:6060
def __eq__(self, aArc)
Definition: pcbnew.py:6144
def GetChord(self)
Definition: pcbnew.py:6115
def Reversed(self)
Definition: pcbnew.py:6107
def GetLength(self)
Definition: pcbnew.py:6131
def ConvertToPolyline(self, *args)
Definition: pcbnew.py:6140
def Reverse(self)
Definition: pcbnew.py:6103
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:6035
def GetP0(self)
Definition: pcbnew.py:6048
def GetArcMid(self)
Definition: pcbnew.py:6056
def GetStartAngle(self)
Definition: pcbnew.py:6123
def GetEndAngle(self)
Definition: pcbnew.py:6127
def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0)
Definition: pcbnew.py:6044
def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0)
Definition: pcbnew.py:6040
def GetIndexableSubshapes(self, aSubshapes)
Definition: pcbnew.py:5876
def __init__(self, aType)
Definition: pcbnew.py:5855
def Type(self)
Definition: pcbnew.py:5860
def GetIndexableSubshapeCount(self)
Definition: pcbnew.py:5872
def HasIndexableSubshapes(self)
Definition: pcbnew.py:5868
def TypeName(self)
Definition: pcbnew.py:5864
def GetRadius(self)
Definition: pcbnew.py:6187
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:6175
def SetCenter(self, aCenter)
Definition: pcbnew.py:6183
def __init__(self, *args)
Definition: pcbnew.py:6161
def SetRadius(self, aRadius)
Definition: pcbnew.py:6179
def BBox(self, aClearance=0)
Definition: pcbnew.py:6171
def GetCircle(self)
Definition: pcbnew.py:6195
def Rotate(self, *args)
Definition: pcbnew.py:6199
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6203
def GetCenter(self)
Definition: pcbnew.py:6191
def __init__(self, *args)
Definition: pcbnew.py:6216
def UniqueSubshape(self)
Definition: pcbnew.py:6272
def ConvertToSimplePolygon(self, aOut)
Definition: pcbnew.py:6276
def BBox(self, aClearance=0)
Definition: pcbnew.py:6245
def Collide(self, *args)
Definition: pcbnew.py:6233
def Rotate(self, *args)
Definition: pcbnew.py:6268
def GetSubshapes(self)
Definition: pcbnew.py:6280
def Distance(self, aSeg)
Definition: pcbnew.py:6249
def Shapes(self)
Definition: pcbnew.py:6241
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6229
def AddShape(self, *args)
Definition: pcbnew.py:6253
def SquaredDistance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:5987
def EdgeContainingPoint(self, aP, aAccuracy=0)
Definition: pcbnew.py:5999
def PointOnEdge(self, aP, aAccuracy=0)
Definition: pcbnew.py:5995
def GetSegment(self, aIndex)
Definition: pcbnew.py:6007
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:5975
def GetPoint(self, aIndex)
Definition: pcbnew.py:6003
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:5991
def Collide(self, *args)
Definition: pcbnew.py:5980
def SegmentCount(self)
Definition: pcbnew.py:6348
def Distance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:6408
def CheckClearance(self, aP, aDist)
Definition: pcbnew.py:6494
def Split(self, aP)
Definition: pcbnew.py:6463
def Find(self, aP, aThreshold=0)
Definition: pcbnew.py:6467
def Simplify(self, aRemoveColinear=True)
Definition: pcbnew.py:6502
def PointCount(self)
Definition: pcbnew.py:6356
def Slice(self, aStartIndex, aEndIndex=-1)
Definition: pcbnew.py:6475
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6517
def CLastPoint(self)
Definition: pcbnew.py:6388
def Remove(self, *args)
Definition: pcbnew.py:6452
def RemoveShape(self, aPointIndex)
Definition: pcbnew.py:6459
def SetPoint(self, aIndex, aPos)
Definition: pcbnew.py:6376
def SelfIntersecting(self)
Definition: pcbnew.py:6498
def ArcIndex(self, aSegment)
Definition: pcbnew.py:6552
def CSegment(self, aIndex)
Definition: pcbnew.py:6364
def Collide(self, *args)
Definition: pcbnew.py:6325
def SetClosed(self, aClosed)
Definition: pcbnew.py:6336
def ShapeCount(self)
Definition: pcbnew.py:6352
def IsArcStart(self, aIndex)
Definition: pcbnew.py:6572
def NearestSegment(self, aP)
Definition: pcbnew.py:6506
def ReservePoints(self, aSize)
Definition: pcbnew.py:6424
def GenerateBBoxCache(self)
Definition: pcbnew.py:6404
def CPoint(self, aIndex)
Definition: pcbnew.py:6380
def Append(self, *args)
Definition: pcbnew.py:6428
def PointAlong(self, aPathLength)
Definition: pcbnew.py:6540
def SetWidth(self, aWidth)
Definition: pcbnew.py:6340
def NextShape(self, aPointIndex, aForwards=True)
Definition: pcbnew.py:6368
def IsPtOnArc(self, aPtIndex)
Definition: pcbnew.py:6564
def Intersect(self, *args)
Definition: pcbnew.py:6483
def NearestPoint(self, *args)
Definition: pcbnew.py:6510
def Area(self, aAbsolute=True)
Definition: pcbnew.py:6544
def Rotate(self, *args)
Definition: pcbnew.py:6536
def Arc(self, aArc)
Definition: pcbnew.py:6556
def __ne__(self, aRhs)
Definition: pcbnew.py:6521
def Insert(self, *args)
Definition: pcbnew.py:6438
def CompareGeometry(self, aOther)
Definition: pcbnew.py:6525
def PrevShape(self, aPointIndex)
Definition: pcbnew.py:6372
def BBox(self, aClearance=0)
Definition: pcbnew.py:6400
def Replace(self, *args)
Definition: pcbnew.py:6445
def Intersects(self, aChain)
Definition: pcbnew.py:6479
def Mirror(self, *args)
Definition: pcbnew.py:6529
def IsSharedPt(self, aIndex)
Definition: pcbnew.py:6560
def IsArcSegment(self, aSegment)
Definition: pcbnew.py:6568
def PathLength(self, aP, aIndex=-1)
Definition: pcbnew.py:6490
def IsArcEnd(self, aIndex)
Definition: pcbnew.py:6576
def FindSegment(self, aP, aThreshold=1)
Definition: pcbnew.py:6471
def __init__(self, *args)
Definition: pcbnew.py:6312
def Segment(self, aIndex)
Definition: pcbnew.py:6360
def NormalizeAreaOutlines(self)
Definition: pcbnew.py:6881
def CVertex(self, *args)
Definition: pcbnew.py:6668
def SquaredDistance(self, *args)
Definition: pcbnew.py:7002
def IsTriangulationUpToDate(self)
Definition: pcbnew.py:6603
def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False)
Definition: pcbnew.py:6929
def BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False)
Definition: pcbnew.py:7014
def IsPolygonSelfIntersecting(self, aPolygonIndex)
Definition: pcbnew.py:6680
def IsVertexInHole(self, aGlobalIdx)
Definition: pcbnew.py:7009
def Inflate(self, *args)
Definition: pcbnew.py:6849
def VertexCount(self, aOutline=-1, aHole=-1)
Definition: pcbnew.py:6696
def OutlineCount(self)
Definition: pcbnew.py:6692
def IterateFromVertexWithHoles(self, aGlobalIdx)
Definition: pcbnew.py:6780
def FilletPolygon(self, aRadius, aErrorMax, aIndex)
Definition: pcbnew.py:6983
def IsSelfIntersecting(self)
Definition: pcbnew.py:6684
def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:6913
def Fracture(self, aFastMode)
Definition: pcbnew.py:6861
def Deflate(self, *args)
Definition: pcbnew.py:6853
def TotalVertices(self)
Definition: pcbnew.py:6963
def RemoveAllContours(self)
Definition: pcbnew.py:6944
def SetVertex(self, *args)
Definition: pcbnew.py:6956
def HoleCount(self, aOutline)
Definition: pcbnew.py:6704
def CIterateWithHoles(self, *args)
Definition: pcbnew.py:6773
def CloneDropTriangulation(self)
Definition: pcbnew.py:6619
def Collide(self, *args)
Definition: pcbnew.py:6905
def BooleanAdd(self, *args)
Definition: pcbnew.py:6818
def BuildBBoxCaches(self)
Definition: pcbnew.py:6921
def RemoveNullSegments(self)
Definition: pcbnew.py:6952
def Iterate(self, *args)
Definition: pcbnew.py:6750
def HasTouchingHoles(self)
Definition: pcbnew.py:6873
def InflateWithLinkedHoles(self, aFactor, aCircleSegmentsCount, aFastMode)
Definition: pcbnew.py:6857
def ChamferPolygon(self, aDistance, aIndex)
Definition: pcbnew.py:6979
def NewHole(self, aOutline=-1)
Definition: pcbnew.py:6627
def CacheTriangulation(self, aPartition=True, aSimplify=False)
Definition: pcbnew.py:6599
def ArcCount(self)
Definition: pcbnew.py:6643
def Unfracture(self, aFastMode)
Definition: pcbnew.py:6865
def FullPointCount(self)
Definition: pcbnew.py:6700
def RemoveContour(self, aContourIdx, aPolygonIdx=-1)
Definition: pcbnew.py:6948
def NewOutline(self)
Definition: pcbnew.py:6623
def Simplify(self, aFastMode)
Definition: pcbnew.py:6877
def AddHole(self, aHole, aOutline=-1)
Definition: pcbnew.py:6635
def SquaredDistanceToPolygon(self, *args)
Definition: pcbnew.py:6995
def IterateSegments(self, *args)
Definition: pcbnew.py:6784
def COutline(self, aIndex)
Definition: pcbnew.py:6738
def BBox(self, aClearance=0)
Definition: pcbnew.py:6897
def InsertVertex(self, aGlobalIndex, aNewVertex)
Definition: pcbnew.py:6664
def AddOutline(self, aOutline)
Definition: pcbnew.py:6631
def __init__(self, *args)
Definition: pcbnew.py:6589
def Hole(self, aOutline, aHole)
Definition: pcbnew.py:6723
def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
Definition: pcbnew.py:6676
def IterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:6800
def Rotate(self, *args)
Definition: pcbnew.py:6893
def GetArcs(self, aArcBuffer)
Definition: pcbnew.py:6647
def RemoveVertex(self, *args)
Definition: pcbnew.py:6937
def UpdateTriangulationDataHash(self)
Definition: pcbnew.py:6975
def Append(self, *args)
Definition: pcbnew.py:6655
def Outline(self, *args)
Definition: pcbnew.py:6708
def BooleanSubtract(self, *args)
Definition: pcbnew.py:6825
def CPolygon(self, aIndex)
Definition: pcbnew.py:6746
def GetHash(self)
Definition: pcbnew.py:6607
def Fillet(self, aRadius, aErrorMax)
Definition: pcbnew.py:6991
def UnitSet(self, aPolygonIndex)
Definition: pcbnew.py:6719
def Mirror(self, *args)
Definition: pcbnew.py:6889
def CIterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:6807
def CHole(self, aOutline, aHole)
Definition: pcbnew.py:6742
def DeletePolygon(self, aIdx)
Definition: pcbnew.py:6967
def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
Definition: pcbnew.py:6611
def TriangulatedPolygon(self, aIndex)
Definition: pcbnew.py:6734
def CIterateSegments(self, *args)
Definition: pcbnew.py:6792
def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True)
Definition: pcbnew.py:6971
def BooleanIntersection(self, *args)
Definition: pcbnew.py:6832
def PointOnEdge(self, aP)
Definition: pcbnew.py:6901
def IterateWithHoles(self, *args)
Definition: pcbnew.py:6758
def Chamfer(self, aDistance)
Definition: pcbnew.py:6987
def HasHoles(self)
Definition: pcbnew.py:6869
def ClearArcs(self)
Definition: pcbnew.py:6651
def Subset(self, aFirstPolygon, aLastPolygon)
Definition: pcbnew.py:6715
def IsEmpty(self)
Definition: pcbnew.py:6933
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6885
def TriangulatedPolyCount(self)
Definition: pcbnew.py:6688
def BBoxFromCaches(self)
Definition: pcbnew.py:6925
def Polygon(self, *args)
Definition: pcbnew.py:6727
def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
Definition: pcbnew.py:6615
def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:6917
def CIterate(self, *args)
Definition: pcbnew.py:6765
def GetWidth(self)
Definition: pcbnew.py:7065
def Diagonal(self)
Definition: pcbnew.py:7045
def Collide(self, *args)
Definition: pcbnew.py:7049
def __init__(self, *args)
Definition: pcbnew.py:7031
def GetPosition(self)
Definition: pcbnew.py:7057
def GetSize(self)
Definition: pcbnew.py:7061
def Rotate(self, *args)
Definition: pcbnew.py:7073
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7081
def Outline(self)
Definition: pcbnew.py:7077
def BBox(self, aClearance=0)
Definition: pcbnew.py:7041
def GetHeight(self)
Definition: pcbnew.py:7069
def SetWidth(self, aWidth)
Definition: pcbnew.py:7125
def Collide(self, *args)
Definition: pcbnew.py:7108
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7141
def BBox(self, aClearance=0)
Definition: pcbnew.py:7104
def SetSeg(self, aSeg)
Definition: pcbnew.py:7117
def __init__(self, *args)
Definition: pcbnew.py:7095
def GetWidth(self)
Definition: pcbnew.py:7129
def GetSeg(self)
Definition: pcbnew.py:7121
def Is45Degree(self, *args)
Definition: pcbnew.py:7137
def Rotate(self, *args)
Definition: pcbnew.py:7133
def BBox(self, aClearance=0)
Definition: pcbnew.py:7166
def Clear(self)
Definition: pcbnew.py:7162
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:7193
def Vertices(self)
Definition: pcbnew.py:7182
def PointCount(self)
Definition: pcbnew.py:7170
def CDPoint(self, aIndex)
Definition: pcbnew.py:7178
def CPoint(self, aIndex)
Definition: pcbnew.py:7174
def Rotate(self, *args)
Definition: pcbnew.py:7197
def Append(self, *args)
Definition: pcbnew.py:7186
def __init__(self, *args)
Definition: pcbnew.py:7154
def GetClearance(self, aOther)
Definition: pcbnew.py:5899
def Parse(self, aStream)
Definition: pcbnew.py:5936
def BBox(self, aClearance=0)
Definition: pcbnew.py:5916
def Centre(self)
Definition: pcbnew.py:5920
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:5888
def Move(self, aVector)
Definition: pcbnew.py:5928
def Rotate(self, *args)
Definition: pcbnew.py:5924
def IsSolid(self)
Definition: pcbnew.py:5932
def Cast(self)
Definition: pcbnew.py:5944
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:5940
def IsNull(self)
Definition: pcbnew.py:5903
def Clone(self)
Definition: pcbnew.py:5895
def Collide(self, *args)
Definition: pcbnew.py:5907
def __init__(self, *args)
Definition: pcbnew.py:2216
def __init__(self, *args)
Definition: pcbnew.py:16780
def iterator(self)
Definition: pcbnew.py:16742
def count(self, x)
Definition: pcbnew.py:16804
def upper_bound(self, x)
Definition: pcbnew.py:16840
def append(self, x)
Definition: pcbnew.py:16760
def insert(self, __x)
Definition: pcbnew.py:16848
def __nonzero__(self)
Definition: pcbnew.py:16748
def __getitem__(self, i)
Definition: pcbnew.py:16768
def end(self)
Definition: pcbnew.py:16812
def lower_bound(self, x)
Definition: pcbnew.py:16836
def add(self, x)
Definition: pcbnew.py:16772
def __bool__(self)
Definition: pcbnew.py:16752
def clear(self)
Definition: pcbnew.py:16796
def erase(self, *args)
Definition: pcbnew.py:16824
def equal_range(self, x)
Definition: pcbnew.py:16844
def find(self, x)
Definition: pcbnew.py:16832
def rbegin(self)
Definition: pcbnew.py:16816
def __len__(self)
Definition: pcbnew.py:16756
def size(self)
Definition: pcbnew.py:16792
def __iter__(self)
Definition: pcbnew.py:16745
def __contains__(self, x)
Definition: pcbnew.py:16764
def discard(self, x)
Definition: pcbnew.py:16776
def rend(self)
Definition: pcbnew.py:16820
def begin(self)
Definition: pcbnew.py:16808
def empty(self)
Definition: pcbnew.py:16788
def swap(self, v)
Definition: pcbnew.py:16800
def __init__(self, *args)
Definition: pcbnew.py:2176
def StripUseless(self)
Definition: pcbnew.py:2184
def __init__(self, *args)
Definition: pcbnew.py:2115
def __init__(self)
Definition: pcbnew.py:2389
def __init__(self, aText, aVisible, aLayer)
Definition: pcbnew.py:10353
def GetComment(self, aIdx)
Definition: pcbnew.py:2271
def SetDate(self, aDate)
Definition: pcbnew.py:2243
def GetContextualTextVars(aVars)
Definition: pcbnew.py:2280
def GetCompany(self)
Definition: pcbnew.py:2263
def GetTitle(self)
Definition: pcbnew.py:2239
def TextVarResolver(self, aToken, aProject)
Definition: pcbnew.py:2284
def Clear(self)
Definition: pcbnew.py:2275
def Format(self, aFormatter, aNestLevel, aControlBits)
Definition: pcbnew.py:2288
def GetDate(self)
Definition: pcbnew.py:2247
def SetComment(self, aIdx, aComment)
Definition: pcbnew.py:2267
def SetRevision(self, aRevision)
Definition: pcbnew.py:2251
def GetRevision(self)
Definition: pcbnew.py:2255
def __init__(self)
Definition: pcbnew.py:2230
def SetCompany(self, aCompany)
Definition: pcbnew.py:2259
def SetTitle(self, aTitle)
Definition: pcbnew.py:2235
def end(self)
Definition: pcbnew.py:16209
def __delitem__(self, *args)
Definition: pcbnew.py:16163
def __setslice__(self, *args)
Definition: pcbnew.py:16152
def __iter__(self)
Definition: pcbnew.py:16133
def __len__(self)
Definition: pcbnew.py:16144
def __getslice__(self, i, j)
Definition: pcbnew.py:16148
def get_allocator(self)
Definition: pcbnew.py:16225
def begin(self)
Definition: pcbnew.py:16205
def iterator(self)
Definition: pcbnew.py:16130
def __setitem__(self, *args)
Definition: pcbnew.py:16177
def capacity(self)
Definition: pcbnew.py:16283
def erase(self, *args)
Definition: pcbnew.py:16233
def __getitem__(self, *args)
Definition: pcbnew.py:16170
def clear(self)
Definition: pcbnew.py:16221
def size(self)
Definition: pcbnew.py:16197
def __nonzero__(self)
Definition: pcbnew.py:16136
def empty(self)
Definition: pcbnew.py:16193
def assign(self, n, x)
Definition: pcbnew.py:16261
def pop(self)
Definition: pcbnew.py:16185
def reserve(self, n)
Definition: pcbnew.py:16279
def __init__(self, *args)
Definition: pcbnew.py:16240
def back(self)
Definition: pcbnew.py:16257
def pop_back(self)
Definition: pcbnew.py:16229
def insert(self, *args)
Definition: pcbnew.py:16272
def rend(self)
Definition: pcbnew.py:16217
def __bool__(self)
Definition: pcbnew.py:16140
def resize(self, *args)
Definition: pcbnew.py:16265
def swap(self, v)
Definition: pcbnew.py:16201
def push_back(self, x)
Definition: pcbnew.py:16249
def __delslice__(self, i, j)
Definition: pcbnew.py:16159
def rbegin(self)
Definition: pcbnew.py:16213
def append(self, x)
Definition: pcbnew.py:16189
def front(self)
Definition: pcbnew.py:16253
def size(self)
Definition: pcbnew.py:11317
def resize(self, *args)
Definition: pcbnew.py:11385
def pop(self)
Definition: pcbnew.py:11305
def insert(self, *args)
Definition: pcbnew.py:11392
def __getitem__(self, *args)
Definition: pcbnew.py:11290
def begin(self)
Definition: pcbnew.py:11325
def assign(self, n, x)
Definition: pcbnew.py:11381
def get_allocator(self)
Definition: pcbnew.py:11345
def clear(self)
Definition: pcbnew.py:11341
def empty(self)
Definition: pcbnew.py:11313
def __delitem__(self, *args)
Definition: pcbnew.py:11283
def push_front(self, x)
Definition: pcbnew.py:11403
def __setitem__(self, *args)
Definition: pcbnew.py:11297
def __delslice__(self, i, j)
Definition: pcbnew.py:11279
def __setslice__(self, *args)
Definition: pcbnew.py:11272
def __iter__(self)
Definition: pcbnew.py:11253
def __nonzero__(self)
Definition: pcbnew.py:11256
def __init__(self, *args)
Definition: pcbnew.py:11360
def front(self)
Definition: pcbnew.py:11373
def swap(self, v)
Definition: pcbnew.py:11321
def erase(self, *args)
Definition: pcbnew.py:11353
def push_back(self, x)
Definition: pcbnew.py:11369
def __getslice__(self, i, j)
Definition: pcbnew.py:11268
def __bool__(self)
Definition: pcbnew.py:11260
def append(self, x)
Definition: pcbnew.py:11309
def __len__(self)
Definition: pcbnew.py:11264
def iterator(self)
Definition: pcbnew.py:11250
def pop_front(self)
Definition: pcbnew.py:11399
def back(self)
Definition: pcbnew.py:11377
def end(self)
Definition: pcbnew.py:11329
def rbegin(self)
Definition: pcbnew.py:11333
def rend(self)
Definition: pcbnew.py:11337
def pop_back(self)
Definition: pcbnew.py:11349
def GetOriginTransforms(self)
Definition: pcbnew.py:9760
def GetIuScale(self)
Definition: pcbnew.py:9756
def GetUserUnits(self)
Definition: pcbnew.py:9748
def MessageTextFromValue(self, *args)
Definition: pcbnew.py:9771
def StringFromValue(self, *args)
Definition: pcbnew.py:9764
def AngleValueFromString(self, aTextValue)
Definition: pcbnew.py:9782
def __init__(self, aIuScale, aUnits)
Definition: pcbnew.py:9743
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:9752
def ValueFromString(self, *args)
Definition: pcbnew.py:9778
def find(self, *args)
Definition: pcbnew.py:7443
def __str__(self)
Definition: pcbnew.py:7524
def end(self)
Definition: pcbnew.py:7509
def empty(self)
Definition: pcbnew.py:7439
def c_str(self)
Definition: pcbnew.py:7435
def __init__(self, *args)
Definition: pcbnew.py:7424
def utf8_to_wxstring(self)
Definition: pcbnew.py:7501
def clear(self)
Definition: pcbnew.py:7450
def __iadd__(self, *args)
Definition: pcbnew.py:7478
def compare(self, s)
Definition: pcbnew.py:7462
def __eq__(self, *args)
Definition: pcbnew.py:7466
def wx_str(self)
Definition: pcbnew.py:7497
def find_first_of(self, str, pos=0)
Definition: pcbnew.py:7474
def size(self)
Definition: pcbnew.py:7458
def GetChars(self)
Definition: pcbnew.py:7519
def Cast_to_CChar(self)
Definition: pcbnew.py:7513
def length(self)
Definition: pcbnew.py:7454
def utf8_to_string(self)
Definition: pcbnew.py:7493
def substr(self, *args)
Definition: pcbnew.py:7489
def begin(self)
Definition: pcbnew.py:7505
def __gt__(self, aVector)
Definition: pcbnew.py:5126
def __eq__(self, aVector)
Definition: pcbnew.py:5110
def __mul__(self, *args)
Definition: pcbnew.py:5097
def Get(self)
Definition: pcbnew.py:5138
def EuclideanNorm(self)
Definition: pcbnew.py:5030
def __add__(self, *args)
Definition: pcbnew.py:5058
def Perpendicular(self)
Definition: pcbnew.py:5038
def __truediv__(self, *args)
Definition: pcbnew.py:5104
def Format(self)
Definition: pcbnew.py:5046
def __imul__(self, *args)
Definition: pcbnew.py:5065
def __neg__(self)
Definition: pcbnew.py:5093
def __le__(self, aVector)
Definition: pcbnew.py:5122
def getWxPoint(self)
Definition: pcbnew.py:5022
def __ne__(self, aVector)
Definition: pcbnew.py:5114
def __setitem__(self, index, val)
Definition: pcbnew.py:5148
def getWxSize(self)
Definition: pcbnew.py:5026
def __ge__(self, aVector)
Definition: pcbnew.py:5130
def __init__(self, *args)
Definition: pcbnew.py:5012
def __nonzero__(self)
Definition: pcbnew.py:5155
def SquaredEuclideanNorm(self)
Definition: pcbnew.py:5034
def __str__(self)
Definition: pcbnew.py:5144
def Resize(self, aNewLength)
Definition: pcbnew.py:5042
def __getitem__(self, index)
Definition: pcbnew.py:5147
def Dot(self, aVector)
Definition: pcbnew.py:5054
def __lt__(self, aVector)
Definition: pcbnew.py:5118
def Set(self, x, y)
Definition: pcbnew.py:5134
def Cross(self, aVector)
Definition: pcbnew.py:5050
def __len__(self)
Definition: pcbnew.py:5146
def __sub__(self, *args)
Definition: pcbnew.py:5079
def __iadd__(self, *args)
Definition: pcbnew.py:5072
def __isub__(self, *args)
Definition: pcbnew.py:5086
def __itruediv__(self, *args)
Definition: pcbnew.py:5225
def Normalize(self)
Definition: pcbnew.py:5209
def EuclideanNorm(self)
Definition: pcbnew.py:5205
def __setitem__(self, index, val)
Definition: pcbnew.py:5245
def __len__(self)
Definition: pcbnew.py:5243
def __ne__(self, aVector)
Definition: pcbnew.py:5217
def Cross(self, aVector)
Definition: pcbnew.py:5197
def __getitem__(self, index)
Definition: pcbnew.py:5244
def __eq__(self, aVector)
Definition: pcbnew.py:5213
def __imul__(self, val)
Definition: pcbnew.py:5221
def __init__(self, *args)
Definition: pcbnew.py:5190
def Get(self)
Definition: pcbnew.py:5235
def __nonzero__(self)
Definition: pcbnew.py:5254
def Dot(self, aVector)
Definition: pcbnew.py:5201
def __str__(self)
Definition: pcbnew.py:5241
def Set(self, x, y, z)
Definition: pcbnew.py:5231
def append(self, x)
Definition: pcbnew.py:19107
def reserve(self, n)
Definition: pcbnew.py:19197
def push_back(self, x)
Definition: pcbnew.py:19167
def erase(self, *args)
Definition: pcbnew.py:19151
def __init__(self, *args)
Definition: pcbnew.py:19158
def __setslice__(self, *args)
Definition: pcbnew.py:19070
def __delslice__(self, i, j)
Definition: pcbnew.py:19077
def assign(self, n, x)
Definition: pcbnew.py:19179
def resize(self, *args)
Definition: pcbnew.py:19183
def __getitem__(self, *args)
Definition: pcbnew.py:19088
def __delitem__(self, *args)
Definition: pcbnew.py:19081
def __getslice__(self, i, j)
Definition: pcbnew.py:19066
def __setitem__(self, *args)
Definition: pcbnew.py:19095
def insert(self, *args)
Definition: pcbnew.py:19190
def insert(self, *args)
Definition: pcbnew.py:7353
def __setslice__(self, *args)
Definition: pcbnew.py:7233
def capacity(self)
Definition: pcbnew.py:7364
def push_back(self, x)
Definition: pcbnew.py:7330
def __getitem__(self, *args)
Definition: pcbnew.py:7251
def __iter__(self)
Definition: pcbnew.py:7214
def iterator(self)
Definition: pcbnew.py:7211
def pop_back(self)
Definition: pcbnew.py:7310
def get_allocator(self)
Definition: pcbnew.py:7306
def __bool__(self)
Definition: pcbnew.py:7221
def __delslice__(self, i, j)
Definition: pcbnew.py:7240
def __delitem__(self, *args)
Definition: pcbnew.py:7244
def erase(self, *args)
Definition: pcbnew.py:7314
def resize(self, *args)
Definition: pcbnew.py:7346
def __nonzero__(self)
Definition: pcbnew.py:7217
def assign(self, n, x)
Definition: pcbnew.py:7342
def swap(self, v)
Definition: pcbnew.py:7282
def __getslice__(self, i, j)
Definition: pcbnew.py:7229
def __setitem__(self, *args)
Definition: pcbnew.py:7258
def reserve(self, n)
Definition: pcbnew.py:7360
def __init__(self, *args)
Definition: pcbnew.py:7321
def append(self, x)
Definition: pcbnew.py:7270
def __getitem__(self, *args)
Definition: pcbnew.py:5537
def erase(self, *args)
Definition: pcbnew.py:5600
def resize(self, *args)
Definition: pcbnew.py:5632
def __iter__(self)
Definition: pcbnew.py:5500
def __delslice__(self, i, j)
Definition: pcbnew.py:5526
def __nonzero__(self)
Definition: pcbnew.py:5503
def get_allocator(self)
Definition: pcbnew.py:5592
def append(self, x)
Definition: pcbnew.py:5556
def insert(self, *args)
Definition: pcbnew.py:5639
def assign(self, n, x)
Definition: pcbnew.py:5628
def __init__(self, *args)
Definition: pcbnew.py:5607
def __bool__(self)
Definition: pcbnew.py:5507
def capacity(self)
Definition: pcbnew.py:5650
def __setslice__(self, *args)
Definition: pcbnew.py:5519
def iterator(self)
Definition: pcbnew.py:5497
def push_back(self, x)
Definition: pcbnew.py:5616
def __getslice__(self, i, j)
Definition: pcbnew.py:5515
def __setitem__(self, *args)
Definition: pcbnew.py:5544
def reserve(self, n)
Definition: pcbnew.py:5646
def __delitem__(self, *args)
Definition: pcbnew.py:5530
def pop_back(self)
Definition: pcbnew.py:5596
def swap(self, v)
Definition: pcbnew.py:5568
def resize(self, *args)
Definition: pcbnew.py:17373
def __getslice__(self, i, j)
Definition: pcbnew.py:17256
def erase(self, *args)
Definition: pcbnew.py:17341
def assign(self, n, x)
Definition: pcbnew.py:17369
def __init__(self, *args)
Definition: pcbnew.py:17348
def __delitem__(self, *args)
Definition: pcbnew.py:17271
def __delslice__(self, i, j)
Definition: pcbnew.py:17267
def __getitem__(self, *args)
Definition: pcbnew.py:17278
def __setslice__(self, *args)
Definition: pcbnew.py:17260
def __setitem__(self, *args)
Definition: pcbnew.py:17285
def insert(self, *args)
Definition: pcbnew.py:17380
def __lt__(self, aOther)
Definition: pcbnew.py:10294
def __init__(self, *args)
Definition: pcbnew.py:10283
def __eq__(self, aOther)
Definition: pcbnew.py:10290
def reserve(self, n)
Definition: pcbnew.py:11232
def iterator(self)
Definition: pcbnew.py:11083
def __delitem__(self, *args)
Definition: pcbnew.py:11116
def __getslice__(self, i, j)
Definition: pcbnew.py:11101
def back(self)
Definition: pcbnew.py:11210
def capacity(self)
Definition: pcbnew.py:11236
def __setslice__(self, *args)
Definition: pcbnew.py:11105
def get_allocator(self)
Definition: pcbnew.py:11178
def __init__(self, *args)
Definition: pcbnew.py:11193
def append(self, x)
Definition: pcbnew.py:11142
def empty(self)
Definition: pcbnew.py:11146
def __iter__(self)
Definition: pcbnew.py:11086
def end(self)
Definition: pcbnew.py:11162
def __setitem__(self, *args)
Definition: pcbnew.py:11130
def __delslice__(self, i, j)
Definition: pcbnew.py:11112
def resize(self, *args)
Definition: pcbnew.py:11218
def assign(self, n, x)
Definition: pcbnew.py:11214
def size(self)
Definition: pcbnew.py:11150
def push_back(self, x)
Definition: pcbnew.py:11202
def front(self)
Definition: pcbnew.py:11206
def pop(self)
Definition: pcbnew.py:11138
def pop_back(self)
Definition: pcbnew.py:11182
def __len__(self)
Definition: pcbnew.py:11097
def __nonzero__(self)
Definition: pcbnew.py:11089
def insert(self, *args)
Definition: pcbnew.py:11225
def __getitem__(self, *args)
Definition: pcbnew.py:11123
def clear(self)
Definition: pcbnew.py:11174
def swap(self, v)
Definition: pcbnew.py:11154
def rend(self)
Definition: pcbnew.py:11170
def erase(self, *args)
Definition: pcbnew.py:11186
def begin(self)
Definition: pcbnew.py:11158
def rbegin(self)
Definition: pcbnew.py:11166
def __bool__(self)
Definition: pcbnew.py:11093
def GetProgressReporter(self)
Definition: pcbnew.py:14133
def __init__(self, aBoard)
Definition: pcbnew.py:14145
def IsDebug(self)
Definition: pcbnew.py:14141
def Fill(self, aZones, aCheck=False, aParent=None)
Definition: pcbnew.py:14137
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:14129
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:14270
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:14266
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:14230
def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
Definition: pcbnew.py:14214
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:14286
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:14282
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:14258
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:14306
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:14242
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:14250
def __lshift__(self, aSource)
Definition: pcbnew.py:14210
def GetCornerRadius(self)
Definition: pcbnew.py:14234
def GetPadConnection(self)
Definition: pcbnew.py:14238
def GetIslandRemovalMode(self)
Definition: pcbnew.py:14294
def GetDoNotAllowPads(self)
Definition: pcbnew.py:14262
def ExportSetting(self, aTarget, aFullExport=True)
Definition: pcbnew.py:14218
def GetCornerSmoothingType(self)
Definition: pcbnew.py:14226
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:14222
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:14298
def GetIsRuleArea(self)
Definition: pcbnew.py:14246
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:14274
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:14290
def GetDoNotAllowVias(self)
Definition: pcbnew.py:14254
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:14278
def __init__(self)
Definition: pcbnew.py:14206
def GetMinIslandArea(self)
Definition: pcbnew.py:14302
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:13587
def GetMinThickness(self)
Definition: pcbnew.py:13678
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:13674
def GetLocalFlags(self)
Definition: pcbnew.py:13750
def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
Definition: pcbnew.py:13781
def IsSame(self, aZoneToCompare)
Definition: pcbnew.py:13868
def NeedRefill(self)
Definition: pcbnew.py:13662
def GetNumCorners(self)
Definition: pcbnew.py:13824
def UnHatchBorder(self)
Definition: pcbnew.py:14024
def NewHole(self)
Definition: pcbnew.py:13852
def SetNeedRefill(self, aNeedRefill)
Definition: pcbnew.py:13666
def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
Definition: pcbnew.py:14016
def GetThermalReliefGap(self, *args)
Definition: pcbnew.py:13611
def IsTeardropArea(self)
Definition: pcbnew.py:13931
def IterateWithHoles(self)
Definition: pcbnew.py:13832
def SetHatchSmoothingValue(self, aValue)
Definition: pcbnew.py:13722
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:13983
def GetFill(self, aLayer)
Definition: pcbnew.py:13880
def Mirror(self, aMirrorRef, aMirrorLeftRight)
Definition: pcbnew.py:13820
def GetZoneName(self)
Definition: pcbnew.py:13568
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:13947
def SameNet(self, aOther)
Definition: pcbnew.py:13564
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:13975
def HatchBorder(self)
Definition: pcbnew.py:14028
def GetLock(self)
Definition: pcbnew.py:13642
def GetDefaultHatchPitch()
Definition: pcbnew.py:14012
def GetThermalReliefSpokeWidth(self)
Definition: pcbnew.py:13622
def Outline(self, *args)
Definition: pcbnew.py:13758
def GetFirstLayer(self)
Definition: pcbnew.py:13591
def GetDoNotAllowVias(self)
Definition: pcbnew.py:13951
def GetHatchHoleMinArea(self)
Definition: pcbnew.py:13726
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:13955
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:13904
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:14003
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:13979
def CIterateWithHoles(self)
Definition: pcbnew.py:13836
def GetIsRuleArea(self)
Definition: pcbnew.py:13943
def GetTeardropAreaType(self)
Definition: pcbnew.py:13939
def GetCornerRadius(self)
Definition: pcbnew.py:13916
def GetSelectedCorner(self)
Definition: pcbnew.py:13742
def GetIslandRemovalMode(self)
Definition: pcbnew.py:13991
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13769
def SetHatchThickness(self, aThickness)
Definition: pcbnew.py:13690
def AddPolygon(self, *args)
Definition: pcbnew.py:13924
def HigherPriority(self, aOther)
Definition: pcbnew.py:13560
def ClassOf(aItem)
Definition: pcbnew.py:13540
def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
Definition: pcbnew.py:13618
def SetTeardropAreaType(self, aType)
Definition: pcbnew.py:13935
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:13912
def SetHatchStyle(self, aStyle)
Definition: pcbnew.py:13864
def GetBorderHatchPitch(self)
Definition: pcbnew.py:14007
def GetHashValue(self, aLayer)
Definition: pcbnew.py:14040
def CacheBoundingBox(self)
Definition: pcbnew.py:13576
def SetZoneName(self, aName)
Definition: pcbnew.py:13572
def GetHatchSmoothingLevel(self)
Definition: pcbnew.py:13710
def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None)
Definition: pcbnew.py:13900
def SetHatchBorderAlgorithm(self, aAlgo)
Definition: pcbnew.py:13738
def SetFillMode(self, aFillMode)
Definition: pcbnew.py:13599
def GetLocalClearance(self, *args)
Definition: pcbnew.py:13580
def HasFilledPolysForLayer(self, aLayer)
Definition: pcbnew.py:13872
def CalculateOutlineArea(self)
Definition: pcbnew.py:13630
def SetHatchHoleMinArea(self, aPct)
Definition: pcbnew.py:13730
def GetPadConnection(self)
Definition: pcbnew.py:13670
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13595
def GetAssignedPriority(self)
Definition: pcbnew.py:13556
def GetHatchLines(self)
Definition: pcbnew.py:14032
def GetCornerSmoothingType(self)
Definition: pcbnew.py:13908
def GetHatchGap(self)
Definition: pcbnew.py:13694
def SetBorderHatchPitch(self, aPitch)
Definition: pcbnew.py:14020
def GetFillMode(self)
Definition: pcbnew.py:13603
def SetCornerPosition(self, aCornerIndex, new_pos)
Definition: pcbnew.py:13848
def HitTest(self, *args)
Definition: pcbnew.py:13805
def InitDataFromSrcInCopyCtor(self, aZone)
Definition: pcbnew.py:13544
def GetCornerPosition(self, aCornerIndex)
Definition: pcbnew.py:13844
def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:13797
def CalculateFilledArea(self)
Definition: pcbnew.py:13626
def SetAssignedPriority(self, aPriority)
Definition: pcbnew.py:13552
def UnFill(self)
Definition: pcbnew.py:13812
def GetHatchOrientation(self)
Definition: pcbnew.py:13702
def SetFilledPolysList(self, aLayer, aPolysList)
Definition: pcbnew.py:13888
def IsFilled(self)
Definition: pcbnew.py:13654
def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
Definition: pcbnew.py:13789
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:13793
def __init__(self, *args)
Definition: pcbnew.py:13531
def GetMinIslandArea(self)
Definition: pcbnew.py:13999
def GetHatchStyle(self)
Definition: pcbnew.py:13860
def SetHatchOrientation(self, aStep)
Definition: pcbnew.py:13706
def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:13801
def RemoveCutout(self, aOutlineIdx, aHoleIdx)
Definition: pcbnew.py:13920
def GetFilledPolysList(self, aLayer)
Definition: pcbnew.py:13876
def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
Definition: pcbnew.py:13785
def SetMinThickness(self, aMinThickness)
Definition: pcbnew.py:13682
def SetHatchGap(self, aStep)
Definition: pcbnew.py:13698
def SetFillFlag(self, aLayer, aFlag)
Definition: pcbnew.py:13650
def MoveEdge(self, offset, aEdge)
Definition: pcbnew.py:13816
def GetHatchSmoothingValue(self)
Definition: pcbnew.py:13718
def IsConflicting(self)
Definition: pcbnew.py:13548
def SetOutline(self, aOutline)
Definition: pcbnew.py:13765
def GetDoNotAllowPads(self)
Definition: pcbnew.py:13959
def BuildHashValue(self, aLayer)
Definition: pcbnew.py:14036
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:13967
def GetHatchThickness(self)
Definition: pcbnew.py:13686
def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None)
Definition: pcbnew.py:13777
def SetThermalReliefGap(self, aThermalReliefGap)
Definition: pcbnew.py:13607
def SetIsFilled(self, isFilled)
Definition: pcbnew.py:13658
def IsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:13892
def CacheTriangulation(self, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:13884
def SetSelectedCorner(self, aCorner)
Definition: pcbnew.py:13746
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:13995
def GetFillFlag(self, aLayer)
Definition: pcbnew.py:13646
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:13963
def SetIsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:13896
def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False)
Definition: pcbnew.py:13856
def GetHatchBorderAlgorithm(self)
Definition: pcbnew.py:13734
def SetLocalFlags(self, aFlags)
Definition: pcbnew.py:13754
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:13987
def GetOutlineArea(self)
Definition: pcbnew.py:13638
def GetFilledArea(self)
Definition: pcbnew.py:13634
def RemoveAllContours(self)
Definition: pcbnew.py:13840
def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0)
Definition: pcbnew.py:13773
def SetHatchSmoothingLevel(self, aLevel)
Definition: pcbnew.py:13714
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:13971
def Iterate(self)
Definition: pcbnew.py:13828
def empty(self)
Definition: pcbnew.py:938
def resize(self, *args)
Definition: pcbnew.py:1010
def __delitem__(self, *args)
Definition: pcbnew.py:908
def rbegin(self)
Definition: pcbnew.py:958
def __iter__(self)
Definition: pcbnew.py:878
def assign(self, n, x)
Definition: pcbnew.py:1006
def __getitem__(self, *args)
Definition: pcbnew.py:915
def pop_back(self)
Definition: pcbnew.py:974
def reserve(self, n)
Definition: pcbnew.py:1024
def __setslice__(self, *args)
Definition: pcbnew.py:897
def capacity(self)
Definition: pcbnew.py:1028
def __len__(self)
Definition: pcbnew.py:889
def append(self, x)
Definition: pcbnew.py:934
def __delslice__(self, i, j)
Definition: pcbnew.py:904
def rend(self)
Definition: pcbnew.py:962
def clear(self)
Definition: pcbnew.py:966
def insert(self, *args)
Definition: pcbnew.py:1017
def size(self)
Definition: pcbnew.py:942
def __init__(self, *args)
Definition: pcbnew.py:985
def erase(self, *args)
Definition: pcbnew.py:978
def front(self)
Definition: pcbnew.py:998
def swap(self, v)
Definition: pcbnew.py:946
def __bool__(self)
Definition: pcbnew.py:885
def iterator(self)
Definition: pcbnew.py:875
def __setitem__(self, *args)
Definition: pcbnew.py:922
def back(self)
Definition: pcbnew.py:1002
def end(self)
Definition: pcbnew.py:954
def __nonzero__(self)
Definition: pcbnew.py:881
def __getslice__(self, i, j)
Definition: pcbnew.py:893
def begin(self)
Definition: pcbnew.py:950
def push_back(self, x)
Definition: pcbnew.py:994
def get_allocator(self)
Definition: pcbnew.py:970
def pop(self)
Definition: pcbnew.py:930
def __call__(self, itemA, itemB)
Definition: pcbnew.py:18994
def __init__(self)
Definition: pcbnew.py:18998
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:19012
def __init__(self)
Definition: pcbnew.py:19016
def __init__(self)
Definition: pcbnew.py:19034
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:19030
def get_allocator(self)
Definition: pcbnew.py:4147
def erase(self, *args)
Definition: pcbnew.py:4155
def resize(self, *args)
Definition: pcbnew.py:4187
def __iter__(self)
Definition: pcbnew.py:4055
def rbegin(self)
Definition: pcbnew.py:4135
def iterator(self)
Definition: pcbnew.py:4052
def __setslice__(self, *args)
Definition: pcbnew.py:4074
def capacity(self)
Definition: pcbnew.py:4205
def empty(self)
Definition: pcbnew.py:4115
def begin(self)
Definition: pcbnew.py:4127
def swap(self, v)
Definition: pcbnew.py:4123
def __delslice__(self, i, j)
Definition: pcbnew.py:4081
def __getslice__(self, i, j)
Definition: pcbnew.py:4070
def __delitem__(self, *args)
Definition: pcbnew.py:4085
def __len__(self)
Definition: pcbnew.py:4066
def __setitem__(self, *args)
Definition: pcbnew.py:4099
def pop_back(self)
Definition: pcbnew.py:4151
def front(self)
Definition: pcbnew.py:4175
def end(self)
Definition: pcbnew.py:4131
def clear(self)
Definition: pcbnew.py:4143
def __nonzero__(self)
Definition: pcbnew.py:4058
def reserve(self, n)
Definition: pcbnew.py:4201
def __init__(self, *args)
Definition: pcbnew.py:4162
def size(self)
Definition: pcbnew.py:4119
def assign(self, n, x)
Definition: pcbnew.py:4183
def pop(self)
Definition: pcbnew.py:4107
def push_back(self, x)
Definition: pcbnew.py:4171
def rend(self)
Definition: pcbnew.py:4139
def append(self, x)
Definition: pcbnew.py:4111
def __getitem__(self, *args)
Definition: pcbnew.py:4092
def insert(self, *args)
Definition: pcbnew.py:4194
def back(self)
Definition: pcbnew.py:4179
def __bool__(self)
Definition: pcbnew.py:4062
def __setitem__(self, *args)
Definition: pcbnew.py:10114
def count(self, x)
Definition: pcbnew.py:10169
def __getitem__(self, key)
Definition: pcbnew.py:10078
def value_iterator(self)
Definition: pcbnew.py:10110
def iteritems(self)
Definition: pcbnew.py:10075
def swap(self, v)
Definition: pcbnew.py:10141
def iterator(self)
Definition: pcbnew.py:10052
def get_allocator(self)
Definition: pcbnew.py:10165
def __iter__(self)
Definition: pcbnew.py:10055
def __bool__(self)
Definition: pcbnew.py:10062
def has_key(self, key)
Definition: pcbnew.py:10086
def __init__(self, *args)
Definition: pcbnew.py:10125
def itervalues(self)
Definition: pcbnew.py:10073
def iterkeys(self)
Definition: pcbnew.py:10071
def lower_bound(self, x)
Definition: pcbnew.py:10185
def __delitem__(self, key)
Definition: pcbnew.py:10082
def __nonzero__(self)
Definition: pcbnew.py:10058
def find(self, x)
Definition: pcbnew.py:10181
def __contains__(self, key)
Definition: pcbnew.py:10102
def erase(self, *args)
Definition: pcbnew.py:10173
def upper_bound(self, x)
Definition: pcbnew.py:10189
def key_iterator(self)
Definition: pcbnew.py:10106
def value_iterator(self)
Definition: pcbnew.py:4277
def __iter__(self)
Definition: pcbnew.py:4222
def __bool__(self)
Definition: pcbnew.py:4229
def __nonzero__(self)
Definition: pcbnew.py:4225
def __setitem__(self, *args)
Definition: pcbnew.py:4281
def __delitem__(self, key)
Definition: pcbnew.py:4249
def asdict(self)
Definition: pcbnew.py:4288
def lower_bound(self, x)
Definition: pcbnew.py:4352
def __init__(self, *args)
Definition: pcbnew.py:4292
def __len__(self)
Definition: pcbnew.py:4233
def upper_bound(self, x)
Definition: pcbnew.py:4356
def keys(self)
Definition: pcbnew.py:4257
def __getitem__(self, key)
Definition: pcbnew.py:4245
def empty(self)
Definition: pcbnew.py:4300
def find(self, x)
Definition: pcbnew.py:4348
def __contains__(self, key)
Definition: pcbnew.py:4269
def values(self)
Definition: pcbnew.py:4261
def begin(self)
Definition: pcbnew.py:4312
def rend(self)
Definition: pcbnew.py:4324
def erase(self, *args)
Definition: pcbnew.py:4340
def iterator(self)
Definition: pcbnew.py:4219
def has_key(self, key)
Definition: pcbnew.py:4253
def key_iterator(self)
Definition: pcbnew.py:4273
def itervalues(self)
Definition: pcbnew.py:4240
def rbegin(self)
Definition: pcbnew.py:4320
def get_allocator(self)
Definition: pcbnew.py:4332
def end(self)
Definition: pcbnew.py:4316
def swap(self, v)
Definition: pcbnew.py:4308
def iterkeys(self)
Definition: pcbnew.py:4238
def clear(self)
Definition: pcbnew.py:4328
def size(self)
Definition: pcbnew.py:4304
def items(self)
Definition: pcbnew.py:4265
def iteritems(self)
Definition: pcbnew.py:4242
def count(self, x)
Definition: pcbnew.py:4336
def __delitem__(self, *args)
Definition: pcbnew.py:326
def __gt__(self, v)
Definition: pcbnew.py:402
def get_allocator(self)
Definition: pcbnew.py:256
def find_last_of(self, *args)
Definition: pcbnew.py:200
def assign(self, *args)
Definition: pcbnew.py:277
def erase(self, *args)
Definition: pcbnew.py:260
def __nonzero__(self)
Definition: pcbnew.py:299
def __eq__(self, v)
Definition: pcbnew.py:394
def __getitem__(self, *args)
Definition: pcbnew.py:333
def __ne__(self, v)
Definition: pcbnew.py:398
def max_size(self)
Definition: pcbnew.py:156
def __setitem__(self, *args)
Definition: pcbnew.py:340
def reserve(self, __res_arg=0)
Definition: pcbnew.py:164
def __lt__(self, v)
Definition: pcbnew.py:406
def __iter__(self)
Definition: pcbnew.py:296
def __init__(self, *args)
Definition: pcbnew.py:268
def __add__(self, v)
Definition: pcbnew.py:378
def size(self)
Definition: pcbnew.py:232
def __le__(self, v)
Definition: pcbnew.py:414
def __rlshift__(self, out)
Definition: pcbnew.py:390
def rend(self)
Definition: pcbnew.py:252
def __bool__(self)
Definition: pcbnew.py:303
def replace(self, *args)
Definition: pcbnew.py:360
def __getslice__(self, i, j)
Definition: pcbnew.py:311
def __delslice__(self, i, j)
Definition: pcbnew.py:322
def copy(self, __s, __n, __pos=0)
Definition: pcbnew.py:168
def find_first_of(self, *args)
Definition: pcbnew.py:192
def c_str(self)
Definition: pcbnew.py:172
def substr(self, *args)
Definition: pcbnew.py:224
def begin(self)
Definition: pcbnew.py:240
def __str__(self)
Definition: pcbnew.py:386
def swap(self, v)
Definition: pcbnew.py:236
def find(self, *args)
Definition: pcbnew.py:176
def empty(self)
Definition: pcbnew.py:228
def __iadd__(self, v)
Definition: pcbnew.py:374
def resize(self, *args)
Definition: pcbnew.py:286
def insert(self, *args)
Definition: pcbnew.py:348
def find_last_not_of(self, *args)
Definition: pcbnew.py:216
def iterator(self)
Definition: pcbnew.py:293
def capacity(self)
Definition: pcbnew.py:160
def rfind(self, *args)
Definition: pcbnew.py:184
def end(self)
Definition: pcbnew.py:244
def find_first_not_of(self, *args)
Definition: pcbnew.py:208
def rbegin(self)
Definition: pcbnew.py:248
def length(self)
Definition: pcbnew.py:152
def __len__(self)
Definition: pcbnew.py:307
def __radd__(self, v)
Definition: pcbnew.py:382
def __ge__(self, v)
Definition: pcbnew.py:410
def __setslice__(self, *args)
Definition: pcbnew.py:315
def empty(self)
Definition: pcbnew.py:771
def reserve(self, n)
Definition: pcbnew.py:857
def swap(self, v)
Definition: pcbnew.py:779
def clear(self)
Definition: pcbnew.py:799
def __getslice__(self, i, j)
Definition: pcbnew.py:726
def __delslice__(self, i, j)
Definition: pcbnew.py:737
def __bool__(self)
Definition: pcbnew.py:718
def __setitem__(self, *args)
Definition: pcbnew.py:755
def __iter__(self)
Definition: pcbnew.py:711
def append(self, x)
Definition: pcbnew.py:767
def front(self)
Definition: pcbnew.py:831
def resize(self, *args)
Definition: pcbnew.py:843
def rbegin(self)
Definition: pcbnew.py:791
def size(self)
Definition: pcbnew.py:775
def capacity(self)
Definition: pcbnew.py:861
def rend(self)
Definition: pcbnew.py:795
def __len__(self)
Definition: pcbnew.py:722
def __setslice__(self, *args)
Definition: pcbnew.py:730
def __getitem__(self, *args)
Definition: pcbnew.py:748
def iterator(self)
Definition: pcbnew.py:708
def begin(self)
Definition: pcbnew.py:783
def insert(self, *args)
Definition: pcbnew.py:850
def push_back(self, x)
Definition: pcbnew.py:827
def __init__(self, *args)
Definition: pcbnew.py:818
def back(self)
Definition: pcbnew.py:835
def assign(self, n, x)
Definition: pcbnew.py:839
def __nonzero__(self)
Definition: pcbnew.py:714
def pop_back(self)
Definition: pcbnew.py:807
def __delitem__(self, *args)
Definition: pcbnew.py:741
def get_allocator(self)
Definition: pcbnew.py:803
def erase(self, *args)
Definition: pcbnew.py:811
def Get(self)
Definition: pcbnew.py:657
def Set(self, x, y)
Definition: pcbnew.py:653
def __init__(self, *args)
Definition: pcbnew.py:637
def __ne__(self, other)
Definition: pcbnew.py:662
def __len__(self)
Definition: pcbnew.py:665
def __getitem__(self, index)
Definition: pcbnew.py:666
def __sub__(self, pt)
Definition: pcbnew.py:649
def __nonzero__(self)
Definition: pcbnew.py:674
def __str__(self)
Definition: pcbnew.py:663
def __add__(self, pt)
Definition: pcbnew.py:645
def __eq__(self, other)
Definition: pcbnew.py:661
def __setitem__(self, index, val)
Definition: pcbnew.py:667
def __str__(self)
Definition: pcbnew.py:555
def __nonzero__(self)
Definition: pcbnew.py:565
def GetWidth(self)
Definition: pcbnew.py:520
def GetHeight(self)
Definition: pcbnew.py:528
def __eq__(self, other)
Definition: pcbnew.py:553
def GetX(self)
Definition: pcbnew.py:504
def SetX(self, xx)
Definition: pcbnew.py:508
def SetPosition(self, p)
Definition: pcbnew.py:540
def __getitem__(self, index)
Definition: pcbnew.py:558
def GetPosition(self)
Definition: pcbnew.py:536
def SetHeight(self, h)
Definition: pcbnew.py:532
def __len__(self)
Definition: pcbnew.py:557
def __init__(self, *args)
Definition: pcbnew.py:494
def GetY(self)
Definition: pcbnew.py:512
def SetY(self, yy)
Definition: pcbnew.py:516
def __setitem__(self, index, val)
Definition: pcbnew.py:559
def SetWidth(self, w)
Definition: pcbnew.py:524
def Get(self)
Definition: pcbnew.py:548
def __getitem__(self, index)
Definition: pcbnew.py:616
def SetWidth(self, w)
Definition: pcbnew.py:593
def __str__(self)
Definition: pcbnew.py:613
def __eq__(self, other)
Definition: pcbnew.py:611
def __len__(self)
Definition: pcbnew.py:615
def GetWidth(self)
Definition: pcbnew.py:601
def __init__(self, *args)
Definition: pcbnew.py:581
def SetHeight(self, h)
Definition: pcbnew.py:597
def __setitem__(self, index, val)
Definition: pcbnew.py:617
def __nonzero__(self)
Definition: pcbnew.py:621
def Get(self)
Definition: pcbnew.py:588
def Scale(self, xscale, yscale)
Definition: pcbnew.py:609
def GetHeight(self)
Definition: pcbnew.py:605
def __str__(self)
Definition: pcbnew.py:688
def __init__(self)
Definition: pcbnew.py:695
def IsValidLayer(aLayerId)
Definition: pcbnew.py:3804
def PCB_TRACK_ClassOf(aItem)
Definition: pcbnew.py:13284
def Cast_to_BOARD(arg1)
Definition: pcbnew.py:9846
def __lt__(lhs, rhs)
Definition: pcbnew.py:2547
def FormatInternalUnits(*args)
Definition: pcbnew.py:1949
def LSET_SideSpecificMask()
Definition: pcbnew.py:3783
def Cast_to_PCB_DIM_RADIAL(arg1)
Definition: pcbnew.py:9818
def Cast_to_SHAPE_ARC(_self)
Definition: pcbnew.py:7383
def EDA_ANGLE_Arcsin(x)
Definition: pcbnew.py:14476
def IO_MGR_EnumFromStr(aFileType)
Definition: pcbnew.py:7776
def FootprintLibDelete(libname)
Definition: pcbnew.py:19234
def FootprintDelete(libname, name)
Definition: pcbnew.py:19226
def EDA_ANGLE_Arccos(x)
Definition: pcbnew.py:14472
def PAD_UnplatedHoleMask()
Definition: pcbnew.py:13132
def GetWizardsSearchPaths()
Definition: pcbnew.py:4399
def BOARD_CONNECTED_ITEM_ClassOf(aItem)
Definition: pcbnew.py:10042
def Cast_to_PCB_MARKER(arg1)
Definition: pcbnew.py:9842
def KIID_CreateNilUuids(aNil=True)
Definition: pcbnew.py:1128
def PCB_BITMAP_ClassOf(aItem)
Definition: pcbnew.py:17228
def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None)
Definition: pcbnew.py:4470
def MessageTextFromValue(*args)
Definition: pcbnew.py:1970
def KIID_SeedGenerator(aSeed)
Definition: pcbnew.py:1132
def GAL_SET_DefaultVisible()
Definition: pcbnew.py:3345
def IsPcbLayer(aLayer)
Definition: pcbnew.py:3808
def NETINFO_LIST_OrphanedItem()
Definition: pcbnew.py:16732
def ResolveUriByEnvVars(aUri, aProject)
Definition: pcbnew.py:2016
def PCB_DIM_LEADER_ClassOf(aItem)
Definition: pcbnew.py:15509
def IsActionRunning()
Definition: pcbnew.py:9411
def IsGerbviewType(aType)
Definition: pcbnew.py:1593
def IO_MGR_PluginRelease(aPlugin)
Definition: pcbnew.py:7768
def EDA_TEXT_IsGotoPageHref(aHref, aDestination=None)
Definition: pcbnew.py:3009
def PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
Definition: pcbnew.py:19270
def LoadBoard(*args)
Definition: pcbnew.py:9345
def GetBuildDate()
Definition: pcbnew.py:3038
def Cast_to_PCB_DIM_ORTHOGONAL(arg1)
Definition: pcbnew.py:9806
def EDA_ANGLE_Arctan2(y, x)
Definition: pcbnew.py:14484
def FOOTPRINT_GetCoverageArea(aItem, aCollector)
Definition: pcbnew.py:18984
def IsNullType(aType)
Definition: pcbnew.py:1577
def Cast_to_SHAPE_CIRCLE(_self)
Definition: pcbnew.py:7387
def wxPointMils(mmx, mmy)
Definition: pcbnew.py:19356
def FootprintIsWritable(libname)
Definition: pcbnew.py:19238
def FootprintLibCreate(libname)
Definition: pcbnew.py:19230
def Cast_to_ZONE(arg1)
Definition: pcbnew.py:9870
def FOOTPRINT_ClassOf(aItem)
Definition: pcbnew.py:18964
def SearchHelpFileFullPath(aBaseName)
Definition: pcbnew.py:1997
def __ne__(lhs, rhs)
Definition: pcbnew.py:2543
def VECTOR2I_MM(mmx, mmy)
Definition: pcbnew.py:19359
def LAYER_ParseType(aType)
Definition: pcbnew.py:17509
def LSET_UserMask()
Definition: pcbnew.py:3787
def IsViaPadLayer(aLayer)
Definition: pcbnew.py:3823
def FromMM(mm)
Definition: pcbnew.py:19315
def IsZoneFillLayer(aLayer)
Definition: pcbnew.py:3859
def PLACE_FILE_EXPORTER_GetBackSideName()
Definition: pcbnew.py:8911
def IsTypeAvailable(aType)
Definition: pcbnew.py:1609
def FlipLayer(aLayerId, aCopperLayersCount=0)
Definition: pcbnew.py:3843
def LIB_ID_FixIllegalChars(aLibItemName, aLib)
Definition: pcbnew.py:7667
def abs(aAngle)
Definition: pcbnew.py:14489
def GetSemanticVersion()
Definition: pcbnew.py:3026
def Cast_to_PCB_TEXT(arg1)
Definition: pcbnew.py:9794
def GetBuildVersion()
Definition: pcbnew.py:3018
def wxRectMils(x, y, wx, wy)
Definition: pcbnew.py:19372
def IsHoleLayer(aLayer)
Definition: pcbnew.py:3827
def FetchUnitsFromString(aTextValue, aUnits)
Definition: pcbnew.py:1933
def new_clone(aItem)
Definition: pcbnew.py:1858
def Cast_to_FP_SHAPE(arg1)
Definition: pcbnew.py:9850
def IO_MGR_Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:7788
def PCB_VIA_ClassOf(aItem)
Definition: pcbnew.py:13505
def LSET_AllNonCuMask()
Definition: pcbnew.py:3743
def Cast_to_SHAPE_SIMPLE(_self)
Definition: pcbnew.py:7411
def PCB_DIM_CENTER_ClassOf(aItem)
Definition: pcbnew.py:15532
def StrPrintf(*args)
Definition: pcbnew.py:2028
def EDA_TEXT_GotoPageHref(aDestination)
Definition: pcbnew.py:3013
def PAD_PTHMask()
Definition: pcbnew.py:13120
def PAD_SHAPE_T_asString(a)
Definition: pcbnew.py:12448
def EDA_TEXT_MapHorizJustify(aHorizJustify)
Definition: pcbnew.py:2997
def PYTHON_ACTION_PLUGINS_deregister_action(wizard)
Definition: pcbnew.py:19302
def LSET_PhysicalLayersMask()
Definition: pcbnew.py:3791
def LSET_FrontAssembly()
Definition: pcbnew.py:3727
def InvokeRuleAreaEditor(aCaller, aSettings, aConvertSettings=None)
Definition: pcbnew.py:14119
def LSET_BackMask()
Definition: pcbnew.py:3779
def PAD_Compare(aPadRef, aPadCmp)
Definition: pcbnew.py:13144
def GetSettingsManager()
Definition: pcbnew.py:9356
def ExpandTextVars(*args)
Definition: pcbnew.py:2009
def KIID_SniffTest(aCandidate)
Definition: pcbnew.py:1124
def ToMM(iu)
Definition: pcbnew.py:19307
def IsUTF8(aString)
Definition: pcbnew.py:7415
def EDA_ANGLE_Arctan(x)
Definition: pcbnew.py:14480
def ToGalLayer(aInteger)
Definition: pcbnew.py:3302
def PCB_DIM_ALIGNED_ClassOf(aItem)
Definition: pcbnew.py:15400
def LSET_AllTechMask()
Definition: pcbnew.py:3767
def Mils2mm(aVal)
Definition: pcbnew.py:1929
def NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
Definition: pcbnew.py:10703
def PCB_SHAPE_ClassOf(aItem)
Definition: pcbnew.py:14883
def Cast_to_PCB_TARGET(arg1)
Definition: pcbnew.py:9878
def __eq__(lhs, rhs)
Definition: pcbnew.py:2539
def wxRectMM(x, y, wx, wy)
Definition: pcbnew.py:19365
def GetText(*args)
Definition: pcbnew.py:1937
def PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
Definition: pcbnew.py:19266
def IsInstantiableType(aType)
Definition: pcbnew.py:1581
def IsNetCopperLayer(aLayer)
Definition: pcbnew.py:3867
def NilUuid()
Definition: pcbnew.py:1137
def PCB_GROUP_ClassOf(aItem)
Definition: pcbnew.py:17147
def SEG_Square(a)
Definition: pcbnew.py:5821
def FP_TEXTBOX_ClassOf(aItem)
Definition: pcbnew.py:15943
def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None)
Definition: pcbnew.py:2001
def SETTINGS_MANAGER_GetSettingsVersion()
Definition: pcbnew.py:4042
def SETTINGS_MANAGER_GetUserSettingsPath()
Definition: pcbnew.py:4038
def UpdateUserInterface()
Definition: pcbnew.py:9399
def FootprintLoad(libname, name, preserveUUID=False)
Definition: pcbnew.py:19218
def FootprintEnumerate(libname)
Definition: pcbnew.py:19214
def GetCommitHash()
Definition: pcbnew.py:3042
def colorRefs()
Definition: pcbnew.py:2398
def LSET_BackBoardTechMask()
Definition: pcbnew.py:3763
def PlotDrawingSheet(*args)
Definition: pcbnew.py:8817
def LSET_AllLayersMask()
Definition: pcbnew.py:3747
def LIB_ID_Format(*args)
Definition: pcbnew.py:7656
def Cast_to_FP_TEXTBOX(arg1)
Definition: pcbnew.py:9834
def FormatAngle(aAngle)
Definition: pcbnew.py:1945
def __lshift__(aStream, aColor)
Definition: pcbnew.py:2551
def Mils2IU(aIuScale, mils)
Definition: pcbnew.py:1958
def PAD_ConnSMDMask()
Definition: pcbnew.py:13128
def PYTHON_ACTION_PLUGINS_register_action(wizard)
Definition: pcbnew.py:19298
def GetVersionInfoData(aTitle, aHtml=False, aBrief=False)
Definition: pcbnew.py:3054
def FullVersion()
Definition: pcbnew.py:19384
def GetMajorMinorVersion()
Definition: pcbnew.py:3030
def IsNetnameLayer(aLayer)
Definition: pcbnew.py:3855
def COLOR4D_FindNearestLegacyColor(aR, aG, aB)
Definition: pcbnew.py:2530
def LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
Definition: pcbnew.py:7671
def LAYER_ShowType(aType)
Definition: pcbnew.py:17505
def Cast_to_SHAPE_POLY_SET(_self)
Definition: pcbnew.py:7399
def ExportSpecctraDSN(*args)
Definition: pcbnew.py:9376
def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None)
Definition: pcbnew.py:14115
def EDA_ITEM_Sort(aLeft, aRight)
Definition: pcbnew.py:1853
def GetMajorMinorPatchTuple()
Definition: pcbnew.py:3046
def SHAPE_ARC_DefaultAccuracyForPCB()
Definition: pcbnew.py:6151
def Cast_to_FP_ZONE(arg1)
Definition: pcbnew.py:9874
def LSET_BackAssembly()
Definition: pcbnew.py:3731
def GetCurrentSelection()
Definition: pcbnew.py:9407
def wxGetDefaultPyEncoding()
Definition: pcbnew.py:485
def IsImperialUnit(aUnit)
Definition: pcbnew.py:1917
def SaveBoard(aFileName, aBoard, aSkipSettings=False)
Definition: pcbnew.py:9364
def PrintZoneConnection(aConnection)
Definition: pcbnew.py:14107
def ZONE_ClassOf(aItem)
Definition: pcbnew.py:14047
def IsEeschemaType(aType)
Definition: pcbnew.py:1585
def Cast_to_SHAPE_RECT(_self)
Definition: pcbnew.py:7403
def FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
Definition: pcbnew.py:18980
def LSET_AllBoardTechMask()
Definition: pcbnew.py:3771
def PCB_TEXTBOX_ClassOf(aItem)
Definition: pcbnew.py:15028
def Refresh()
Definition: pcbnew.py:9395
def Cast_to_PCB_TRACK(arg1)
Definition: pcbnew.py:9858
def Cast_to_SHAPE_SEGMENT(_self)
Definition: pcbnew.py:7407
def PutOnGridMM(value, gridSizeMM)
Definition: pcbnew.py:19339
def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None)
Definition: pcbnew.py:14111
def IsCopperLayer(*args)
Definition: pcbnew.py:3816
def PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17155
def Cast_to_SHAPE_COMPOUND(_self)
Definition: pcbnew.py:7391
def LSET_ForbiddenFootprintLayers()
Definition: pcbnew.py:3799
def PCB_TEXT_ClassOf(aItem)
Definition: pcbnew.py:14956
def LSET_AllCuMask(*args)
Definition: pcbnew.py:3735
def IO_MGR_PluginFind(aFileType)
Definition: pcbnew.py:7764
def DoubleValueFromString(*args)
Definition: pcbnew.py:1983
def IsFrontLayer(aLayerId)
Definition: pcbnew.py:3835
def Cast_to_FOOTPRINT(arg1)
Definition: pcbnew.py:9822
def StringFromValue(*args)
Definition: pcbnew.py:1966
def EDA_TEXT_ValidateHyperlink(aURL)
Definition: pcbnew.py:3005
def PAD_ApertureMask()
Definition: pcbnew.py:13136
def GetUserUnits()
Definition: pcbnew.py:9403
def CreateEmptyBoard()
Definition: pcbnew.py:9360
def Cast_to_FP_TEXT(arg1)
Definition: pcbnew.py:9830
def GetLabel(*args)
Definition: pcbnew.py:1941
def IO_MGR_GuessPluginTypeFromLibPath(aLibPath)
Definition: pcbnew.py:7784
def Cast_to_PCB_BITMAP(arg1)
Definition: pcbnew.py:9882
def Version()
Definition: pcbnew.py:19380
def BOARD_GetStandardLayerName(aLayerId)
Definition: pcbnew.py:18196
def TITLE_BLOCK_GetContextualTextVars(aVars)
Definition: pcbnew.py:2295
def IsMiscType(aType)
Definition: pcbnew.py:1601
def PCB_GROUP_IsGroupableType(aType)
Definition: pcbnew.py:17159
def ValueFromString(*args)
Definition: pcbnew.py:1990
def PCB_TARGET_ClassOf(aItem)
Definition: pcbnew.py:15651
def Cast_to_PCB_DIM_CENTER(arg1)
Definition: pcbnew.py:9814
def ExportFootprintsToLibrary(*args)
Definition: pcbnew.py:9391
def LSET_FrontMask()
Definition: pcbnew.py:3775
def BaseType(aType)
Definition: pcbnew.py:1573
def PutOnGridMils(value, gridSizeMils)
Definition: pcbnew.py:19343
def ZONE_GetDefaultHatchPitch()
Definition: pcbnew.py:14051
def IsPcbnewType(aType)
Definition: pcbnew.py:1589
def IsUserLayer(aLayerId)
Definition: pcbnew.py:3831
def GetMajorMinorPatchVersion()
Definition: pcbnew.py:3034
def GetBoard()
Definition: pcbnew.py:9341
def LSET_ExternalCuMask()
Definition: pcbnew.py:3739
def IsPageLayoutEditorType(aType)
Definition: pcbnew.py:1597
def ExportVRML(aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:9383
def SHAPE_TYPE_asString(a)
Definition: pcbnew.py:5846
def PAD_SMDMask()
Definition: pcbnew.py:13124
def LSET_FrontTechMask()
Definition: pcbnew.py:3751
def VECTOR2I_Mils(mmx, mmy)
Definition: pcbnew.py:19362
def EDA_TEXT_MapVertJustify(aVertJustify)
Definition: pcbnew.py:3001
def Cast_to_PCB_VIA(arg1)
Definition: pcbnew.py:9862
def BOARD_ClassOf(aItem)
Definition: pcbnew.py:18192
def TimestampDir(aDirPath, aFilespec)
Definition: pcbnew.py:2020
def GetFootprints(aNickName)
Definition: pcbnew.py:9372
def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
Definition: pcbnew.py:9415
def LSET_FrontBoardTechMask()
Definition: pcbnew.py:3755
def LSET_BackTechMask()
Definition: pcbnew.py:3759
def FP_CACHE_GetTimestamp(aLibPath)
Definition: pcbnew.py:8002
def GetNetnameLayer(aLayer)
Definition: pcbnew.py:3851
def wxSizeMM(mmx, mmy)
Definition: pcbnew.py:19347
def Cast_to_PCB_ARC(arg1)
Definition: pcbnew.py:9866
def Cast_to_PCB_SHAPE(arg1)
Definition: pcbnew.py:9838
def ToLAYER_ID(aLayer)
Definition: pcbnew.py:3871
def NETINFO_ITEM_ClassOf(aItem)
Definition: pcbnew.py:16370
def IsTypeCorrect(aType)
Definition: pcbnew.py:1605
def PCB_ARC_ClassOf(aItem)
Definition: pcbnew.py:13353
def GetPluginForPath(libname)
Definition: pcbnew.py:19210
def IsBackLayer(aLayerId)
Definition: pcbnew.py:3839
def LIB_ID_HasIllegalChars(aLibItemName)
Definition: pcbnew.py:7663
def Cast_to_PCB_DIM_LEADER(arg1)
Definition: pcbnew.py:9810
def Cast_to_PCB_GROUP(arg1)
Definition: pcbnew.py:9826
def FOOTPRINT_IsLibNameValid(aName)
Definition: pcbnew.py:18976
def NewBoard(aFileName)
Definition: pcbnew.py:9352
def IsMetricUnit(aUnit)
Definition: pcbnew.py:1921
def FlipLayerMask(aMask, aCopperLayersCount=0)
Definition: pcbnew.py:3847
def PCB_MARKER_Deserialize(data)
Definition: pcbnew.py:15586
def LSET_UserDefinedLayers()
Definition: pcbnew.py:3795
def ExpandEnvVarSubstitutions(aString, aProject)
Definition: pcbnew.py:2005
def wxSetDefaultPyEncoding(encoding)
Definition: pcbnew.py:481
def PCB_PLOT_PARAMS_GetGerberDefaultPrecision()
Definition: pcbnew.py:8525
def WarnUserIfOperatingSystemUnsupported()
Definition: pcbnew.py:2024
def SafeReadFile(aFilePath, aReadType)
Definition: pcbnew.py:2035
def DELETED_BOARD_ITEM_GetInstance()
Definition: pcbnew.py:9673
def GetFootprintLibraries()
Definition: pcbnew.py:9368
def PAD_ClassOf(aItem)
Definition: pcbnew.py:13140
def FP_SHAPE_ClassOf(aItem)
Definition: pcbnew.py:15758
def LayerName(aLayer)
Definition: pcbnew.py:3482
def FromMils(mils)
Definition: pcbnew.py:19331
def Mm2mils(aVal)
Definition: pcbnew.py:1925
def IO_MGR_ShowType(aFileType)
Definition: pcbnew.py:7772
def FP_TEXT_ClassOf(aItem)
Definition: pcbnew.py:15867
def SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False)
Definition: pcbnew.py:7021
def Cast_to_SHAPE_LINE_CHAIN(_self)
Definition: pcbnew.py:7395
def IsNonCopperLayer(aLayerId)
Definition: pcbnew.py:3812
def Cast_to_PAD(arg1)
Definition: pcbnew.py:9854
def GetWizardsBackTrace()
Definition: pcbnew.py:4410
def LSET_InternalCuMask()
Definition: pcbnew.py:3723
def SETTINGS_MANAGER_GetColorSettingsPath()
Definition: pcbnew.py:4034
def ToMils(iu)
Definition: pcbnew.py:19323
def PCB_MARKER_ClassOf(aItem)
Definition: pcbnew.py:15582
def wxSizeMils(mmx, mmy)
Definition: pcbnew.py:19350
def PCB_DIM_ORTHOGONAL_ClassOf(aItem)
Definition: pcbnew.py:15435
def LoadPluginModule(Dirname, ModuleName, FileName)
Definition: pcbnew.py:4415
def NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
Definition: pcbnew.py:10707
def PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17151
def IO_MGR_GetFileExtension(aFileType)
Definition: pcbnew.py:7780
def GetDefaultPlotExtension(aFormat)
Definition: pcbnew.py:8821
def IsNightlyVersion()
Definition: pcbnew.py:3050
def GetPlatformGetBitnessName()
Definition: pcbnew.py:3022
def PLACE_FILE_EXPORTER_GetFrontSideName()
Definition: pcbnew.py:8907
def ToUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1962
def Cast_to_PCB_TEXTBOX(arg1)
Definition: pcbnew.py:9798
def wxPointMM(mmx, mmy)
Definition: pcbnew.py:19353
def ImportSpecctraSES(aFullFilename)
Definition: pcbnew.py:9387
def Cast_to_PCB_DIM_ALIGNED(arg1)
Definition: pcbnew.py:9802
def Cast_to_BOARD_ITEM(base)
Definition: pcbnew.py:9790
def IO_MGR_Save(aFileType, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:7792
def FootprintSave(libname, module)
Definition: pcbnew.py:19222
def SETTINGS_MANAGER_IsSettingsPathValid(aPath)
Definition: pcbnew.py:4030
def FromUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1979
def IsDCodeLayer(aLayer)
Definition: pcbnew.py:3863
def PCB_DIM_RADIAL_ClassOf(aItem)
Definition: pcbnew.py:15474
def LSET_Name(aLayerId)
Definition: pcbnew.py:3719