KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
pcbnew.py
Go to the documentation of this file.
1# This file was automatically generated by SWIG (https://www.swig.org).
2# Version 4.1.1
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
8# Import the low-level C/C++ module
9if __package__ or "." in __name__:
10 from . import _pcbnew
11else:
12 import _pcbnew
13
14try:
15 import builtins as __builtin__
16except ImportError:
17 import __builtin__
18
19def _swig_repr(self):
20 try:
21 strthis = "proxy of " + self.this.__repr__()
22 except __builtin__.Exception:
23 strthis = ""
24 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
25
26
28 def set_instance_attr(self, name, value):
29 if name == "this":
30 set(self, name, value)
31 elif name == "thisown":
32 self.this.own(value)
33 elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
34 set(self, name, value)
35 else:
36 raise AttributeError("You cannot add instance attributes to %s" % self)
37 return set_instance_attr
38
39
40def _swig_setattr_nondynamic_class_variable(set):
41 def set_class_attr(cls, name, value):
42 if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
43 set(cls, name, value)
44 else:
45 raise AttributeError("You cannot add class attributes to %s" % cls)
46 return set_class_attr
47
48
49def _swig_add_metaclass(metaclass):
50 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
51 def wrapper(cls):
52 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
53 return wrapper
54
55
57 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
58 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
59
60
61class SwigPyIterator(object):
62 r"""Proxy of C++ swig::SwigPyIterator class."""
63
64 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
65
66 def __init__(self, *args, **kwargs):
67 raise AttributeError("No constructor defined - class is abstract")
68 __repr__ = _swig_repr
69 __swig_destroy__ = _pcbnew.delete_SwigPyIterator
70
71 def value(self):
72 r"""value(SwigPyIterator self) -> PyObject *"""
73 return _pcbnew.SwigPyIterator_value(self)
74
75 def incr(self, n=1):
76 r"""incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
77 return _pcbnew.SwigPyIterator_incr(self, n)
78
79 def decr(self, n=1):
80 r"""decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
81 return _pcbnew.SwigPyIterator_decr(self, n)
82
83 def distance(self, x):
84 r"""distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
85 return _pcbnew.SwigPyIterator_distance(self, x)
86
87 def equal(self, x):
88 r"""equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
89 return _pcbnew.SwigPyIterator_equal(self, x)
90
91 def copy(self):
92 r"""copy(SwigPyIterator self) -> SwigPyIterator"""
93 return _pcbnew.SwigPyIterator_copy(self)
94
95 def next(self):
96 r"""next(SwigPyIterator self) -> PyObject *"""
97 return _pcbnew.SwigPyIterator_next(self)
98
99 def __next__(self):
100 r"""__next__(SwigPyIterator self) -> PyObject *"""
101 return _pcbnew.SwigPyIterator___next__(self)
102
103 def previous(self):
104 r"""previous(SwigPyIterator self) -> PyObject *"""
105 return _pcbnew.SwigPyIterator_previous(self)
106
107 def advance(self, n):
108 r"""advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
109 return _pcbnew.SwigPyIterator_advance(self, n)
110
111 def __eq__(self, x):
112 r"""__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
113 return _pcbnew.SwigPyIterator___eq__(self, x)
114
115 def __ne__(self, x):
116 r"""__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
117 return _pcbnew.SwigPyIterator___ne__(self, x)
118
119 def __iadd__(self, n):
120 r"""__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
121 return _pcbnew.SwigPyIterator___iadd__(self, n)
122
123 def __isub__(self, n):
124 r"""__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
125 return _pcbnew.SwigPyIterator___isub__(self, n)
126
127 def __add__(self, n):
128 r"""__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
129 return _pcbnew.SwigPyIterator___add__(self, n)
130
131 def __sub__(self, *args):
132 r"""
133 __sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
134 __sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
135 """
136 return _pcbnew.SwigPyIterator___sub__(self, *args)
137 def __iter__(self):
138 return self
139
140# Register SwigPyIterator in _pcbnew:
141_pcbnew.SwigPyIterator_swigregister(SwigPyIterator)
143 r"""Proxy of C++ std::basic_string< char > class."""
144
145 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
146 __repr__ = _swig_repr
147
148 def length(self):
149 r"""length(string self) -> std::basic_string< char >::size_type"""
150 return _pcbnew.string_length(self)
151
152 def max_size(self):
153 r"""max_size(string self) -> std::basic_string< char >::size_type"""
154 return _pcbnew.string_max_size(self)
155
156 def capacity(self):
157 r"""capacity(string self) -> std::basic_string< char >::size_type"""
158 return _pcbnew.string_capacity(self)
159
160 def reserve(self, __res_arg):
161 r"""reserve(string self, std::basic_string< char >::size_type __res_arg)"""
162 return _pcbnew.string_reserve(self, __res_arg)
163
164 def shrink_to_fit(self):
165 r"""shrink_to_fit(string self)"""
166 return _pcbnew.string_shrink_to_fit(self)
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, SWIGPY_SLICEOBJECT * slice)
330 """
331 return _pcbnew.string___delitem__(self, *args)
332
333 def __getitem__(self, *args):
334 r"""
335 __getitem__(string self, SWIGPY_SLICEOBJECT * 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, SWIGPY_SLICEOBJECT * slice, string v)
343 __setitem__(string self, SWIGPY_SLICEOBJECT * 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)
447 r"""Proxy of C++ IO_ERROR class."""
448
449 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
450 __repr__ = _swig_repr
451
452 def __init__(self, *args):
453 r"""
454 __init__(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber) -> IO_ERROR
455 __init__(IO_ERROR self) -> IO_ERROR
456 """
457 _pcbnew.IO_ERROR_swiginit(self, _pcbnew.new_IO_ERROR(*args))
458
459 def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber):
460 r"""init(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber)"""
461 return _pcbnew.IO_ERROR_init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
462
463 def Problem(self):
464 r"""Problem(IO_ERROR self) -> wxString"""
465 return _pcbnew.IO_ERROR_Problem(self)
466
467 def Where(self):
468 r"""Where(IO_ERROR self) -> wxString"""
469 return _pcbnew.IO_ERROR_Where(self)
470
471 def What(self):
472 r"""What(IO_ERROR self) -> wxString"""
473 return _pcbnew.IO_ERROR_What(self)
474 __swig_destroy__ = _pcbnew.delete_IO_ERROR
475
476# Register IO_ERROR in _pcbnew:
477_pcbnew.IO_ERROR_swigregister(IO_ERROR)
478
480 r"""wxSetDefaultPyEncoding(char const * encoding)"""
481 return _pcbnew.wxSetDefaultPyEncoding(encoding)
482
484 r"""wxGetDefaultPyEncoding() -> char const *"""
485 return _pcbnew.wxGetDefaultPyEncoding()
487 r"""Proxy of C++ wxRect class."""
488
489 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
490 __repr__ = _swig_repr
491
492 def __init__(self, *args):
493 r"""
494 __init__(wxRect self) -> wxRect
495 __init__(wxRect self, int xx, int yy, int ww, int hh) -> wxRect
496 __init__(wxRect self, wxPoint topLeft, wxPoint bottomRight) -> wxRect
497 __init__(wxRect self, wxPoint pt, wxSize size) -> wxRect
498 __init__(wxRect self, wxSize size) -> wxRect
499 """
500 _pcbnew.wxRect_swiginit(self, _pcbnew.new_wxRect(*args))
501
502 def GetX(self):
503 r"""GetX(wxRect self) -> int"""
504 return _pcbnew.wxRect_GetX(self)
505
506 def SetX(self, xx):
507 r"""SetX(wxRect self, int xx)"""
508 return _pcbnew.wxRect_SetX(self, xx)
509
510 def GetY(self):
511 r"""GetY(wxRect self) -> int"""
512 return _pcbnew.wxRect_GetY(self)
513
514 def SetY(self, yy):
515 r"""SetY(wxRect self, int yy)"""
516 return _pcbnew.wxRect_SetY(self, yy)
517
518 def GetWidth(self):
519 r"""GetWidth(wxRect self) -> int"""
520 return _pcbnew.wxRect_GetWidth(self)
521
522 def SetWidth(self, w):
523 r"""SetWidth(wxRect self, int w)"""
524 return _pcbnew.wxRect_SetWidth(self, w)
525
526 def GetHeight(self):
527 r"""GetHeight(wxRect self) -> int"""
528 return _pcbnew.wxRect_GetHeight(self)
529
530 def SetHeight(self, h):
531 r"""SetHeight(wxRect self, int h)"""
532 return _pcbnew.wxRect_SetHeight(self, h)
533
534 def GetPosition(self):
535 r"""GetPosition(wxRect self) -> wxPoint"""
536 return _pcbnew.wxRect_GetPosition(self)
537
538 def SetPosition(self, p):
539 r"""SetPosition(wxRect self, wxPoint p)"""
540 return _pcbnew.wxRect_SetPosition(self, p)
541 x = property(_pcbnew.wxRect_x_get, _pcbnew.wxRect_x_set, doc=r"""x : int""")
542 y = property(_pcbnew.wxRect_y_get, _pcbnew.wxRect_y_set, doc=r"""y : int""")
543 width = property(_pcbnew.wxRect_width_get, _pcbnew.wxRect_width_set, doc=r"""width : int""")
544 height = property(_pcbnew.wxRect_height_get, _pcbnew.wxRect_height_set, doc=r"""height : int""")
545
546 def Get(self):
547 r"""Get(wxRect self) -> PyObject *"""
548 return _pcbnew.wxRect_Get(self)
549
550
551 def __eq__(self,other):
552 return self.xx==other.x and self.yy==other.y and self.widthwidth==other.width and self.heightheight==other.height
553 def __str__(self): return str(self.Get())
554 def __repr__(self): return 'wxRect'+str(self.Get())
555 def __len__(self): return len(self.Get())
556 def __getitem__(self, index): return self.Get()[index]
557 def __setitem__(self, index, val):
558 if index == 0: self.SetX(val)
559 elif index == 1: self.SetY(val)
560 elif index == 2: self.SetWidth(val)
561 elif index == 3: self.SetHeight(val)
562 else: raise IndexError
563 def __nonzero__(self): return self.Get() != (0,0,0,0)
564 __safe_for_unpickling__ = True
565
566 __swig_destroy__ = _pcbnew.delete_wxRect
567
568# Register wxRect in _pcbnew:
569_pcbnew.wxRect_swigregister(wxRect)
571 r"""Proxy of C++ wxSize class."""
572
573 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
574 __repr__ = _swig_repr
575 x = property(_pcbnew.wxSize_x_get, _pcbnew.wxSize_x_set, doc=r"""x : int""")
576 y = property(_pcbnew.wxSize_y_get, _pcbnew.wxSize_y_set, doc=r"""y : int""")
577
578 def __init__(self, *args):
579 r"""
580 __init__(wxSize self, int xx, int yy) -> wxSize
581 __init__(wxSize self, double xx, double yy) -> wxSize
582 """
583 _pcbnew.wxSize_swiginit(self, _pcbnew.new_wxSize(*args))
584
585 def Get(self):
586 r"""Get(wxSize self) -> PyObject *"""
587 return _pcbnew.wxSize_Get(self)
588 __swig_destroy__ = _pcbnew.delete_wxSize
589
590 def SetWidth(self, w):
591 r"""SetWidth(wxSize self, int w)"""
592 return _pcbnew.wxSize_SetWidth(self, w)
593
594 def SetHeight(self, h):
595 r"""SetHeight(wxSize self, int h)"""
596 return _pcbnew.wxSize_SetHeight(self, h)
597
598 def GetWidth(self):
599 r"""GetWidth(wxSize self) -> int"""
600 return _pcbnew.wxSize_GetWidth(self)
601
602 def GetHeight(self):
603 r"""GetHeight(wxSize self) -> int"""
604 return _pcbnew.wxSize_GetHeight(self)
605
606 def Scale(self,xscale,yscale):
607 return wxSize(self.x*xscale,self.y*yscale)
608 def __eq__(self,other):
609 return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
610 def __str__(self): return str(self.Get())
611 def __repr__(self): return 'wxSize'+str(self.Get())
612 def __len__(self): return len(self.Get())
613 def __getitem__(self, index): return self.Get()[index]
614 def __setitem__(self, index, val):
615 if index == 0: self.SetWidth(val)
616 elif index == 1: self.SetHeight(val)
617 else: raise IndexError
618 def __nonzero__(self): return self.Get() != (0,0)
619 __safe_for_unpickling__ = True
620
621
622
623# Register wxSize in _pcbnew:
624_pcbnew.wxSize_swigregister(wxSize)
626 r"""Proxy of C++ wxPoint class."""
627
628 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
629 __repr__ = _swig_repr
630 x = property(_pcbnew.wxPoint_x_get, _pcbnew.wxPoint_x_set, doc=r"""x : int""")
631 y = property(_pcbnew.wxPoint_y_get, _pcbnew.wxPoint_y_set, doc=r"""y : int""")
632
633 def __init__(self, *args):
634 r"""
635 __init__(wxPoint self, int xx, int yy) -> wxPoint
636 __init__(wxPoint self, double xx, double yy) -> wxPoint
637 """
638 _pcbnew.wxPoint_swiginit(self, _pcbnew.new_wxPoint(*args))
639 __swig_destroy__ = _pcbnew.delete_wxPoint
640
641 def __add__(self, pt):
642 r"""__add__(wxPoint self, wxPoint pt) -> wxPoint"""
643 return _pcbnew.wxPoint___add__(self, pt)
644
645 def __sub__(self, pt):
646 r"""__sub__(wxPoint self, wxPoint pt) -> wxPoint"""
647 return _pcbnew.wxPoint___sub__(self, pt)
648
649 def Set(self, x, y):
650 r"""Set(wxPoint self, long x, long y)"""
651 return _pcbnew.wxPoint_Set(self, x, y)
652
653 def Get(self):
654 r"""Get(wxPoint self) -> PyObject *"""
655 return _pcbnew.wxPoint_Get(self)
656
657 def __eq__(self,other): return (self.xx==other.x and self.yy==other.y)
658 def __ne__(self,other): return not (self==other)
659 def __str__(self): return str(self.Get())
660 def __repr__(self): return 'wxPoint'+str(self.Get())
661 def __len__(self): return len(self.Get())
662 def __getitem__(self, index): return self.Get()[index]
663 def __setitem__(self, index, val):
664 if index == 0:
665 self.xx = val
666 elif index == 1:
667 self.yy = val
668 else:
669 raise IndexError
670 def __nonzero__(self): return self.Get() != (0,0)
671
672
673
674# Register wxPoint in _pcbnew:
675_pcbnew.wxPoint_swigregister(wxPoint)
677 r"""Proxy of C++ wxString class."""
678
679 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
680 __repr__ = _swig_repr
681 __swig_destroy__ = _pcbnew.delete_wxString
682
683 def __str__(self):
684 r"""__str__(wxString self) -> PyObject *"""
685 return _pcbnew.wxString___str__(self)
686
687 def __repr__(self): return 'wxString(\'' + self.__str__() + '\')'
688
689
690 def __init__(self):
691 r"""__init__(wxString self) -> wxString"""
692 _pcbnew.wxString_swiginit(self, _pcbnew.new_wxString())
693
694# Register wxString in _pcbnew:
695_pcbnew.wxString_swigregister(wxString)
697 r"""Proxy of C++ std::vector< wxPoint > class."""
698
699 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
700 __repr__ = _swig_repr
701
702 def iterator(self):
703 r"""iterator(wxPoint_Vector self) -> SwigPyIterator"""
704 return _pcbnew.wxPoint_Vector_iterator(self)
705 def __iter__(self):
706 return self.iterator()
707
708 def __nonzero__(self):
709 r"""__nonzero__(wxPoint_Vector self) -> bool"""
710 return _pcbnew.wxPoint_Vector___nonzero__(self)
711
712 def __bool__(self):
713 r"""__bool__(wxPoint_Vector self) -> bool"""
714 return _pcbnew.wxPoint_Vector___bool__(self)
715
716 def __len__(self):
717 r"""__len__(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
718 return _pcbnew.wxPoint_Vector___len__(self)
719
720 def __getslice__(self, i, j):
721 r"""__getslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j) -> wxPoint_Vector"""
722 return _pcbnew.wxPoint_Vector___getslice__(self, i, j)
723
724 def __setslice__(self, *args):
725 r"""
726 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)
727 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j, wxPoint_Vector v)
728 """
729 return _pcbnew.wxPoint_Vector___setslice__(self, *args)
730
731 def __delslice__(self, i, j):
732 r"""__delslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)"""
733 return _pcbnew.wxPoint_Vector___delslice__(self, i, j)
734
735 def __delitem__(self, *args):
736 r"""
737 __delitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i)
738 __delitem__(wxPoint_Vector self, SWIGPY_SLICEOBJECT * slice)
739 """
740 return _pcbnew.wxPoint_Vector___delitem__(self, *args)
741
742 def __getitem__(self, *args):
743 r"""
744 __getitem__(wxPoint_Vector self, SWIGPY_SLICEOBJECT * slice) -> wxPoint_Vector
745 __getitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i) -> wxPoint
746 """
747 return _pcbnew.wxPoint_Vector___getitem__(self, *args)
748
749 def __setitem__(self, *args):
750 r"""
751 __setitem__(wxPoint_Vector self, SWIGPY_SLICEOBJECT * slice, wxPoint_Vector v)
752 __setitem__(wxPoint_Vector self, SWIGPY_SLICEOBJECT * slice)
753 __setitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, wxPoint x)
754 """
755 return _pcbnew.wxPoint_Vector___setitem__(self, *args)
756
757 def pop(self):
758 r"""pop(wxPoint_Vector self) -> wxPoint"""
759 return _pcbnew.wxPoint_Vector_pop(self)
760
761 def append(self, x):
762 r"""append(wxPoint_Vector self, wxPoint x)"""
763 return _pcbnew.wxPoint_Vector_append(self, x)
764
765 def empty(self):
766 r"""empty(wxPoint_Vector self) -> bool"""
767 return _pcbnew.wxPoint_Vector_empty(self)
768
769 def size(self):
770 r"""size(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
771 return _pcbnew.wxPoint_Vector_size(self)
772
773 def swap(self, v):
774 r"""swap(wxPoint_Vector self, wxPoint_Vector v)"""
775 return _pcbnew.wxPoint_Vector_swap(self, v)
776
777 def begin(self):
778 r"""begin(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
779 return _pcbnew.wxPoint_Vector_begin(self)
780
781 def end(self):
782 r"""end(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
783 return _pcbnew.wxPoint_Vector_end(self)
784
785 def rbegin(self):
786 r"""rbegin(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
787 return _pcbnew.wxPoint_Vector_rbegin(self)
788
789 def rend(self):
790 r"""rend(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
791 return _pcbnew.wxPoint_Vector_rend(self)
792
793 def clear(self):
794 r"""clear(wxPoint_Vector self)"""
795 return _pcbnew.wxPoint_Vector_clear(self)
796
797 def get_allocator(self):
798 r"""get_allocator(wxPoint_Vector self) -> std::vector< wxPoint >::allocator_type"""
799 return _pcbnew.wxPoint_Vector_get_allocator(self)
800
801 def pop_back(self):
802 r"""pop_back(wxPoint_Vector self)"""
803 return _pcbnew.wxPoint_Vector_pop_back(self)
804
805 def erase(self, *args):
806 r"""
807 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator pos) -> std::vector< wxPoint >::iterator
808 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator first, std::vector< wxPoint >::iterator last) -> std::vector< wxPoint >::iterator
809 """
810 return _pcbnew.wxPoint_Vector_erase(self, *args)
811
812 def __init__(self, *args):
813 r"""
814 __init__(wxPoint_Vector self) -> wxPoint_Vector
815 __init__(wxPoint_Vector self, wxPoint_Vector other) -> wxPoint_Vector
816 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size) -> wxPoint_Vector
817 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size, wxPoint value) -> wxPoint_Vector
818 """
819 _pcbnew.wxPoint_Vector_swiginit(self, _pcbnew.new_wxPoint_Vector(*args))
820
821 def push_back(self, x):
822 r"""push_back(wxPoint_Vector self, wxPoint x)"""
823 return _pcbnew.wxPoint_Vector_push_back(self, x)
824
825 def front(self):
826 r"""front(wxPoint_Vector self) -> wxPoint"""
827 return _pcbnew.wxPoint_Vector_front(self)
828
829 def back(self):
830 r"""back(wxPoint_Vector self) -> wxPoint"""
831 return _pcbnew.wxPoint_Vector_back(self)
832
833 def assign(self, n, x):
834 r"""assign(wxPoint_Vector self, std::vector< wxPoint >::size_type n, wxPoint x)"""
835 return _pcbnew.wxPoint_Vector_assign(self, n, x)
836
837 def resize(self, *args):
838 r"""
839 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size)
840 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size, wxPoint x)
841 """
842 return _pcbnew.wxPoint_Vector_resize(self, *args)
843
844 def insert(self, *args):
845 r"""
846 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, wxPoint x) -> std::vector< wxPoint >::iterator
847 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, std::vector< wxPoint >::size_type n, wxPoint x)
848 """
849 return _pcbnew.wxPoint_Vector_insert(self, *args)
850
851 def reserve(self, n):
852 r"""reserve(wxPoint_Vector self, std::vector< wxPoint >::size_type n)"""
853 return _pcbnew.wxPoint_Vector_reserve(self, n)
854
855 def capacity(self):
856 r"""capacity(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
857 return _pcbnew.wxPoint_Vector_capacity(self)
858 __swig_destroy__ = _pcbnew.delete_wxPoint_Vector
859
860# Register wxPoint_Vector in _pcbnew:
861_pcbnew.wxPoint_Vector_swigregister(wxPoint_Vector)
862SKETCH = _pcbnew.SKETCH
863
864FILLED = _pcbnew.FILLED
865
867 r"""Proxy of C++ KIID class."""
868
869 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
870 __repr__ = _swig_repr
871
872 def __init__(self, *args):
873 r"""
874 __init__(KIID self) -> KIID
875 __init__(KIID self, int null) -> KIID
876 __init__(KIID self, string aString) -> KIID
877 __init__(KIID self, char const * aString) -> KIID
878 __init__(KIID self, wxString aString) -> KIID
879 __init__(KIID self, timestamp_t aTimestamp) -> KIID
880 """
881 _pcbnew.KIID_swiginit(self, _pcbnew.new_KIID(*args))
882
883 def Clone(self, aUUID):
884 r"""Clone(KIID self, KIID aUUID)"""
885 return _pcbnew.KIID_Clone(self, aUUID)
886
887 def Hash(self):
888 r"""Hash(KIID self) -> size_t"""
889 return _pcbnew.KIID_Hash(self)
890
892 r"""IsLegacyTimestamp(KIID self) -> bool"""
893 return _pcbnew.KIID_IsLegacyTimestamp(self)
894
896 r"""AsLegacyTimestamp(KIID self) -> timestamp_t"""
897 return _pcbnew.KIID_AsLegacyTimestamp(self)
898
899 def AsString(self):
900 r"""AsString(KIID self) -> wxString"""
901 return _pcbnew.KIID_AsString(self)
902
904 r"""AsLegacyTimestampString(KIID self) -> wxString"""
905 return _pcbnew.KIID_AsLegacyTimestampString(self)
906
907 def AsStdString(self):
908 r"""AsStdString(KIID self) -> string"""
909 return _pcbnew.KIID_AsStdString(self)
910
911 @staticmethod
912 def SniffTest(aCandidate):
913 r"""SniffTest(wxString aCandidate) -> bool"""
914 return _pcbnew.KIID_SniffTest(aCandidate)
915
916 @staticmethod
917 def CreateNilUuids(aNil=True):
918 r"""CreateNilUuids(bool aNil=True)"""
919 return _pcbnew.KIID_CreateNilUuids(aNil)
920
921 @staticmethod
922 def SeedGenerator(aSeed):
923 r"""SeedGenerator(unsigned int aSeed)"""
924 return _pcbnew.KIID_SeedGenerator(aSeed)
925
927 r"""ConvertTimestampToUuid(KIID self)"""
928 return _pcbnew.KIID_ConvertTimestampToUuid(self)
929
930 def Increment(self):
931 r"""Increment(KIID self)"""
932 return _pcbnew.KIID_Increment(self)
933
934 def __eq__(self, rhs):
935 r"""__eq__(KIID self, KIID rhs) -> bool"""
936 return _pcbnew.KIID___eq__(self, rhs)
937
938 def __ne__(self, rhs):
939 r"""__ne__(KIID self, KIID rhs) -> bool"""
940 return _pcbnew.KIID___ne__(self, rhs)
941
942 def __lt__(self, rhs):
943 r"""__lt__(KIID self, KIID rhs) -> bool"""
944 return _pcbnew.KIID___lt__(self, rhs)
945
946 def __gt__(self, rhs):
947 r"""__gt__(KIID self, KIID rhs) -> bool"""
948 return _pcbnew.KIID___gt__(self, rhs)
949 __swig_destroy__ = _pcbnew.delete_KIID
950
951# Register KIID in _pcbnew:
952_pcbnew.KIID_swigregister(KIID)
953
955 r"""NilUuid() -> KIID"""
956 return _pcbnew.NilUuid()
958 r"""Proxy of C++ std::vector< KIID > class."""
959
960 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
961 __repr__ = _swig_repr
962
963 def iterator(self):
964 r"""iterator(KIID_VECT_LIST self) -> SwigPyIterator"""
965 return _pcbnew.KIID_VECT_LIST_iterator(self)
966 def __iter__(self):
967 return self.iterator()
968
969 def __nonzero__(self):
970 r"""__nonzero__(KIID_VECT_LIST self) -> bool"""
971 return _pcbnew.KIID_VECT_LIST___nonzero__(self)
972
973 def __bool__(self):
974 r"""__bool__(KIID_VECT_LIST self) -> bool"""
975 return _pcbnew.KIID_VECT_LIST___bool__(self)
976
977 def __len__(self):
978 r"""__len__(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
979 return _pcbnew.KIID_VECT_LIST___len__(self)
980
981 def __getslice__(self, i, j):
982 r"""__getslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j) -> KIID_VECT_LIST"""
983 return _pcbnew.KIID_VECT_LIST___getslice__(self, i, j)
984
985 def __setslice__(self, *args):
986 r"""
987 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)
988 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j, KIID_VECT_LIST v)
989 """
990 return _pcbnew.KIID_VECT_LIST___setslice__(self, *args)
991
992 def __delslice__(self, i, j):
993 r"""__delslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)"""
994 return _pcbnew.KIID_VECT_LIST___delslice__(self, i, j)
995
996 def __delitem__(self, *args):
997 r"""
998 __delitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i)
999 __delitem__(KIID_VECT_LIST self, SWIGPY_SLICEOBJECT * slice)
1000 """
1001 return _pcbnew.KIID_VECT_LIST___delitem__(self, *args)
1002
1003 def __getitem__(self, *args):
1004 r"""
1005 __getitem__(KIID_VECT_LIST self, SWIGPY_SLICEOBJECT * slice) -> KIID_VECT_LIST
1006 __getitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i) -> KIID
1007 """
1008 return _pcbnew.KIID_VECT_LIST___getitem__(self, *args)
1009
1010 def __setitem__(self, *args):
1011 r"""
1012 __setitem__(KIID_VECT_LIST self, SWIGPY_SLICEOBJECT * slice, KIID_VECT_LIST v)
1013 __setitem__(KIID_VECT_LIST self, SWIGPY_SLICEOBJECT * slice)
1014 __setitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, KIID x)
1015 """
1016 return _pcbnew.KIID_VECT_LIST___setitem__(self, *args)
1017
1018 def pop(self):
1019 r"""pop(KIID_VECT_LIST self) -> KIID"""
1020 return _pcbnew.KIID_VECT_LIST_pop(self)
1021
1022 def append(self, x):
1023 r"""append(KIID_VECT_LIST self, KIID x)"""
1024 return _pcbnew.KIID_VECT_LIST_append(self, x)
1025
1026 def empty(self):
1027 r"""empty(KIID_VECT_LIST self) -> bool"""
1028 return _pcbnew.KIID_VECT_LIST_empty(self)
1029
1030 def size(self):
1031 r"""size(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1032 return _pcbnew.KIID_VECT_LIST_size(self)
1033
1034 def swap(self, v):
1035 r"""swap(KIID_VECT_LIST self, KIID_VECT_LIST v)"""
1036 return _pcbnew.KIID_VECT_LIST_swap(self, v)
1037
1038 def begin(self):
1039 r"""begin(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1040 return _pcbnew.KIID_VECT_LIST_begin(self)
1041
1042 def end(self):
1043 r"""end(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1044 return _pcbnew.KIID_VECT_LIST_end(self)
1045
1046 def rbegin(self):
1047 r"""rbegin(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1048 return _pcbnew.KIID_VECT_LIST_rbegin(self)
1049
1050 def rend(self):
1051 r"""rend(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1052 return _pcbnew.KIID_VECT_LIST_rend(self)
1053
1054 def clear(self):
1055 r"""clear(KIID_VECT_LIST self)"""
1056 return _pcbnew.KIID_VECT_LIST_clear(self)
1057
1058 def get_allocator(self):
1059 r"""get_allocator(KIID_VECT_LIST self) -> std::vector< KIID >::allocator_type"""
1060 return _pcbnew.KIID_VECT_LIST_get_allocator(self)
1061
1062 def pop_back(self):
1063 r"""pop_back(KIID_VECT_LIST self)"""
1064 return _pcbnew.KIID_VECT_LIST_pop_back(self)
1065
1066 def erase(self, *args):
1067 r"""
1068 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator pos) -> std::vector< KIID >::iterator
1069 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator first, std::vector< KIID >::iterator last) -> std::vector< KIID >::iterator
1070 """
1071 return _pcbnew.KIID_VECT_LIST_erase(self, *args)
1072
1073 def __init__(self, *args):
1074 r"""
1075 __init__(KIID_VECT_LIST self) -> KIID_VECT_LIST
1076 __init__(KIID_VECT_LIST self, KIID_VECT_LIST other) -> KIID_VECT_LIST
1077 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size) -> KIID_VECT_LIST
1078 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size, KIID value) -> KIID_VECT_LIST
1079 """
1080 _pcbnew.KIID_VECT_LIST_swiginit(self, _pcbnew.new_KIID_VECT_LIST(*args))
1081
1082 def push_back(self, x):
1083 r"""push_back(KIID_VECT_LIST self, KIID x)"""
1084 return _pcbnew.KIID_VECT_LIST_push_back(self, x)
1085
1086 def front(self):
1087 r"""front(KIID_VECT_LIST self) -> KIID"""
1088 return _pcbnew.KIID_VECT_LIST_front(self)
1089
1090 def back(self):
1091 r"""back(KIID_VECT_LIST self) -> KIID"""
1092 return _pcbnew.KIID_VECT_LIST_back(self)
1093
1094 def assign(self, n, x):
1095 r"""assign(KIID_VECT_LIST self, std::vector< KIID >::size_type n, KIID x)"""
1096 return _pcbnew.KIID_VECT_LIST_assign(self, n, x)
1097
1098 def resize(self, *args):
1099 r"""
1100 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size)
1101 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size, KIID x)
1102 """
1103 return _pcbnew.KIID_VECT_LIST_resize(self, *args)
1104
1105 def insert(self, *args):
1106 r"""
1107 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, KIID x) -> std::vector< KIID >::iterator
1108 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, std::vector< KIID >::size_type n, KIID x)
1109 """
1110 return _pcbnew.KIID_VECT_LIST_insert(self, *args)
1111
1112 def reserve(self, n):
1113 r"""reserve(KIID_VECT_LIST self, std::vector< KIID >::size_type n)"""
1114 return _pcbnew.KIID_VECT_LIST_reserve(self, n)
1115
1116 def capacity(self):
1117 r"""capacity(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1118 return _pcbnew.KIID_VECT_LIST_capacity(self)
1119 __swig_destroy__ = _pcbnew.delete_KIID_VECT_LIST
1120
1121# Register KIID_VECT_LIST in _pcbnew:
1122_pcbnew.KIID_VECT_LIST_swigregister(KIID_VECT_LIST)
1124 r"""Proxy of C++ KIID_PATH class."""
1125
1126 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1127 __repr__ = _swig_repr
1128
1129 def __init__(self, *args):
1130 r"""
1131 __init__(KIID_PATH self) -> KIID_PATH
1132 __init__(KIID_PATH self, wxString aString) -> KIID_PATH
1133 """
1134 _pcbnew.KIID_PATH_swiginit(self, _pcbnew.new_KIID_PATH(*args))
1135
1136 def MakeRelativeTo(self, aPath):
1137 r"""MakeRelativeTo(KIID_PATH self, KIID_PATH aPath) -> bool"""
1138 return _pcbnew.KIID_PATH_MakeRelativeTo(self, aPath)
1139
1140 def EndsWith(self, aPath):
1141 r"""EndsWith(KIID_PATH self, KIID_PATH aPath) -> bool"""
1142 return _pcbnew.KIID_PATH_EndsWith(self, aPath)
1143
1144 def AsString(self):
1145 r"""AsString(KIID_PATH self) -> wxString"""
1146 return _pcbnew.KIID_PATH_AsString(self)
1147
1148 def __eq__(self, rhs):
1149 r"""__eq__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1150 return _pcbnew.KIID_PATH___eq__(self, rhs)
1151
1152 def __lt__(self, rhs):
1153 r"""__lt__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1154 return _pcbnew.KIID_PATH___lt__(self, rhs)
1155
1156 def __gt__(self, rhs):
1157 r"""__gt__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1158 return _pcbnew.KIID_PATH___gt__(self, rhs)
1159
1160 def __iadd__(self, aRhs):
1161 r"""__iadd__(KIID_PATH self, KIID_PATH aRhs) -> KIID_PATH"""
1162 return _pcbnew.KIID_PATH___iadd__(self, aRhs)
1163 __swig_destroy__ = _pcbnew.delete_KIID_PATH
1164
1165# Register KIID_PATH in _pcbnew:
1166_pcbnew.KIID_PATH_swigregister(KIID_PATH)
1168 r"""Proxy of C++ KIID_NIL_SET_RESET class."""
1169
1170 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1171 __repr__ = _swig_repr
1172
1173 def __init__(self):
1174 r"""__init__(KIID_NIL_SET_RESET self) -> KIID_NIL_SET_RESET"""
1175 _pcbnew.KIID_NIL_SET_RESET_swiginit(self, _pcbnew.new_KIID_NIL_SET_RESET())
1176 __swig_destroy__ = _pcbnew.delete_KIID_NIL_SET_RESET
1177
1178# Register KIID_NIL_SET_RESET in _pcbnew:
1179_pcbnew.KIID_NIL_SET_RESET_swigregister(KIID_NIL_SET_RESET)
1180NOT_USED = _pcbnew.NOT_USED
1181
1182TYPE_NOT_INIT = _pcbnew.TYPE_NOT_INIT
1183
1184PCB_T = _pcbnew.PCB_T
1185
1186SCREEN_T = _pcbnew.SCREEN_T
1187
1188PCB_FOOTPRINT_T = _pcbnew.PCB_FOOTPRINT_T
1189
1190PCB_PAD_T = _pcbnew.PCB_PAD_T
1191
1192PCB_SHAPE_T = _pcbnew.PCB_SHAPE_T
1193
1194PCB_REFERENCE_IMAGE_T = _pcbnew.PCB_REFERENCE_IMAGE_T
1195
1196PCB_FIELD_T = _pcbnew.PCB_FIELD_T
1197
1198PCB_GENERATOR_T = _pcbnew.PCB_GENERATOR_T
1199
1200PCB_TEXT_T = _pcbnew.PCB_TEXT_T
1201
1202PCB_TEXTBOX_T = _pcbnew.PCB_TEXTBOX_T
1203
1204PCB_TABLE_T = _pcbnew.PCB_TABLE_T
1205
1206PCB_TABLECELL_T = _pcbnew.PCB_TABLECELL_T
1207
1208PCB_TRACE_T = _pcbnew.PCB_TRACE_T
1209
1210PCB_VIA_T = _pcbnew.PCB_VIA_T
1211
1212PCB_ARC_T = _pcbnew.PCB_ARC_T
1213
1214PCB_MARKER_T = _pcbnew.PCB_MARKER_T
1215
1216PCB_DIMENSION_T = _pcbnew.PCB_DIMENSION_T
1217
1218PCB_DIM_ALIGNED_T = _pcbnew.PCB_DIM_ALIGNED_T
1219
1220PCB_DIM_LEADER_T = _pcbnew.PCB_DIM_LEADER_T
1221
1222PCB_DIM_CENTER_T = _pcbnew.PCB_DIM_CENTER_T
1223
1224PCB_DIM_RADIAL_T = _pcbnew.PCB_DIM_RADIAL_T
1225
1226PCB_DIM_ORTHOGONAL_T = _pcbnew.PCB_DIM_ORTHOGONAL_T
1227
1228PCB_TARGET_T = _pcbnew.PCB_TARGET_T
1229
1230PCB_ZONE_T = _pcbnew.PCB_ZONE_T
1231
1232PCB_ITEM_LIST_T = _pcbnew.PCB_ITEM_LIST_T
1233
1234PCB_NETINFO_T = _pcbnew.PCB_NETINFO_T
1235
1236PCB_GROUP_T = _pcbnew.PCB_GROUP_T
1237
1238PCB_FIELD_LOCATE_REFERENCE_T = _pcbnew.PCB_FIELD_LOCATE_REFERENCE_T
1239
1240PCB_FIELD_LOCATE_VALUE_T = _pcbnew.PCB_FIELD_LOCATE_VALUE_T
1241
1242PCB_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.PCB_FIELD_LOCATE_FOOTPRINT_T
1243
1244PCB_FIELD_LOCATE_DATASHEET_T = _pcbnew.PCB_FIELD_LOCATE_DATASHEET_T
1245
1246PCB_LOCATE_STDVIA_T = _pcbnew.PCB_LOCATE_STDVIA_T
1247
1248PCB_LOCATE_UVIA_T = _pcbnew.PCB_LOCATE_UVIA_T
1249
1250PCB_LOCATE_BBVIA_T = _pcbnew.PCB_LOCATE_BBVIA_T
1251
1252PCB_LOCATE_TEXT_T = _pcbnew.PCB_LOCATE_TEXT_T
1253
1254PCB_LOCATE_HOLE_T = _pcbnew.PCB_LOCATE_HOLE_T
1255
1256PCB_LOCATE_PTH_T = _pcbnew.PCB_LOCATE_PTH_T
1257
1258PCB_LOCATE_NPTH_T = _pcbnew.PCB_LOCATE_NPTH_T
1259
1260PCB_LOCATE_BOARD_EDGE_T = _pcbnew.PCB_LOCATE_BOARD_EDGE_T
1261
1262PCB_SHAPE_LOCATE_SEGMENT_T = _pcbnew.PCB_SHAPE_LOCATE_SEGMENT_T
1263
1264PCB_SHAPE_LOCATE_RECT_T = _pcbnew.PCB_SHAPE_LOCATE_RECT_T
1265
1266PCB_SHAPE_LOCATE_CIRCLE_T = _pcbnew.PCB_SHAPE_LOCATE_CIRCLE_T
1267
1268PCB_SHAPE_LOCATE_ARC_T = _pcbnew.PCB_SHAPE_LOCATE_ARC_T
1269
1270PCB_SHAPE_LOCATE_POLY_T = _pcbnew.PCB_SHAPE_LOCATE_POLY_T
1271
1272PCB_SHAPE_LOCATE_BEZIER_T = _pcbnew.PCB_SHAPE_LOCATE_BEZIER_T
1273
1274LIB_SYMBOL_T = _pcbnew.LIB_SYMBOL_T
1275
1276SCH_SHAPE_T = _pcbnew.SCH_SHAPE_T
1277
1278SCH_FIELD_T = _pcbnew.SCH_FIELD_T
1279
1280SCH_TEXT_T = _pcbnew.SCH_TEXT_T
1281
1282SCH_TEXTBOX_T = _pcbnew.SCH_TEXTBOX_T
1283
1284SCH_PIN_T = _pcbnew.SCH_PIN_T
1285
1286SCH_MARKER_T = _pcbnew.SCH_MARKER_T
1287
1288SCH_JUNCTION_T = _pcbnew.SCH_JUNCTION_T
1289
1290SCH_NO_CONNECT_T = _pcbnew.SCH_NO_CONNECT_T
1291
1292SCH_BUS_WIRE_ENTRY_T = _pcbnew.SCH_BUS_WIRE_ENTRY_T
1293
1294SCH_BUS_BUS_ENTRY_T = _pcbnew.SCH_BUS_BUS_ENTRY_T
1295
1296SCH_LINE_T = _pcbnew.SCH_LINE_T
1297
1298SCH_BITMAP_T = _pcbnew.SCH_BITMAP_T
1299
1300SCH_TABLE_T = _pcbnew.SCH_TABLE_T
1301
1302SCH_TABLECELL_T = _pcbnew.SCH_TABLECELL_T
1303
1304SCH_LABEL_T = _pcbnew.SCH_LABEL_T
1305
1306SCH_GLOBAL_LABEL_T = _pcbnew.SCH_GLOBAL_LABEL_T
1307
1308SCH_HIER_LABEL_T = _pcbnew.SCH_HIER_LABEL_T
1309
1310SCH_RULE_AREA_T = _pcbnew.SCH_RULE_AREA_T
1311
1312SCH_DIRECTIVE_LABEL_T = _pcbnew.SCH_DIRECTIVE_LABEL_T
1313
1314SCH_SYMBOL_T = _pcbnew.SCH_SYMBOL_T
1315
1316SCH_SHEET_PIN_T = _pcbnew.SCH_SHEET_PIN_T
1317
1318SCH_SHEET_T = _pcbnew.SCH_SHEET_T
1319
1320SCH_FIELD_LOCATE_REFERENCE_T = _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T
1321
1322SCH_FIELD_LOCATE_VALUE_T = _pcbnew.SCH_FIELD_LOCATE_VALUE_T
1323
1324SCH_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T
1325
1326SCH_FIELD_LOCATE_DATASHEET_T = _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T
1327
1328SCH_ITEM_LOCATE_WIRE_T = _pcbnew.SCH_ITEM_LOCATE_WIRE_T
1329
1330SCH_ITEM_LOCATE_BUS_T = _pcbnew.SCH_ITEM_LOCATE_BUS_T
1331
1332SCH_ITEM_LOCATE_GRAPHIC_LINE_T = _pcbnew.SCH_ITEM_LOCATE_GRAPHIC_LINE_T
1333
1334SCH_LABEL_LOCATE_ANY_T = _pcbnew.SCH_LABEL_LOCATE_ANY_T
1335
1336SCH_LABEL_LOCATE_WIRE_T = _pcbnew.SCH_LABEL_LOCATE_WIRE_T
1337
1338SCH_LABEL_LOCATE_BUS_T = _pcbnew.SCH_LABEL_LOCATE_BUS_T
1339
1340SCH_SYMBOL_LOCATE_POWER_T = _pcbnew.SCH_SYMBOL_LOCATE_POWER_T
1341
1342SCH_LOCATE_ANY_T = _pcbnew.SCH_LOCATE_ANY_T
1343
1344SCH_SCREEN_T = _pcbnew.SCH_SCREEN_T
1345
1346SCHEMATIC_T = _pcbnew.SCHEMATIC_T
1347
1348GERBER_LAYOUT_T = _pcbnew.GERBER_LAYOUT_T
1349
1350GERBER_DRAW_ITEM_T = _pcbnew.GERBER_DRAW_ITEM_T
1351
1352GERBER_IMAGE_T = _pcbnew.GERBER_IMAGE_T
1353
1354WSG_LINE_T = _pcbnew.WSG_LINE_T
1355
1356WSG_RECT_T = _pcbnew.WSG_RECT_T
1357
1358WSG_POLY_T = _pcbnew.WSG_POLY_T
1359
1360WSG_TEXT_T = _pcbnew.WSG_TEXT_T
1361
1362WSG_BITMAP_T = _pcbnew.WSG_BITMAP_T
1363
1364WSG_PAGE_T = _pcbnew.WSG_PAGE_T
1365
1366WS_PROXY_UNDO_ITEM_T = _pcbnew.WS_PROXY_UNDO_ITEM_T
1367
1368WS_PROXY_UNDO_ITEM_PLUS_T = _pcbnew.WS_PROXY_UNDO_ITEM_PLUS_T
1369
1370SYMBOL_LIB_TABLE_T = _pcbnew.SYMBOL_LIB_TABLE_T
1371
1372FP_LIB_TABLE_T = _pcbnew.FP_LIB_TABLE_T
1373
1374DESIGN_BLOCK_LIB_TABLE_T = _pcbnew.DESIGN_BLOCK_LIB_TABLE_T
1375
1376SYMBOL_LIBS_T = _pcbnew.SYMBOL_LIBS_T
1377
1378SEARCH_STACK_T = _pcbnew.SEARCH_STACK_T
1379
1380S3D_CACHE_T = _pcbnew.S3D_CACHE_T
1381
1382MAX_STRUCT_TYPE_ID = _pcbnew.MAX_STRUCT_TYPE_ID
1383
1384
1385def BaseType(aType):
1386 r"""BaseType(KICAD_T const aType) -> KICAD_T"""
1387 return _pcbnew.BaseType(aType)
1388
1389def IsNullType(aType):
1390 r"""IsNullType(KICAD_T const aType) -> bool"""
1391 return _pcbnew.IsNullType(aType)
1392
1394 r"""IsInstantiableType(KICAD_T const aType) -> bool"""
1395 return _pcbnew.IsInstantiableType(aType)
1396
1398 r"""IsEeschemaType(KICAD_T const aType) -> bool"""
1399 return _pcbnew.IsEeschemaType(aType)
1400
1401def IsPcbnewType(aType):
1402 r"""IsPcbnewType(KICAD_T const aType) -> bool"""
1403 return _pcbnew.IsPcbnewType(aType)
1404
1406 r"""IsGerbviewType(KICAD_T const aType) -> bool"""
1407 return _pcbnew.IsGerbviewType(aType)
1408
1410 r"""IsPageLayoutEditorType(KICAD_T const aType) -> bool"""
1411 return _pcbnew.IsPageLayoutEditorType(aType)
1412
1413def IsMiscType(aType):
1414 r"""IsMiscType(KICAD_T const aType) -> bool"""
1415 return _pcbnew.IsMiscType(aType)
1416
1417def IsTypeCorrect(aType):
1418 r"""IsTypeCorrect(KICAD_T aType) -> bool"""
1419 return _pcbnew.IsTypeCorrect(aType)
1420INSPECT_RESULT_QUIT = _pcbnew.INSPECT_RESULT_QUIT
1421
1422INSPECT_RESULT_CONTINUE = _pcbnew.INSPECT_RESULT_CONTINUE
1423
1425 r"""Proxy of C++ EDA_ITEM class."""
1426
1427 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1428
1429 def __init__(self, *args, **kwargs):
1430 raise AttributeError("No constructor defined - class is abstract")
1431 __repr__ = _swig_repr
1432 __swig_destroy__ = _pcbnew.delete_EDA_ITEM
1433
1434 def Type(self):
1435 r"""Type(EDA_ITEM self) -> KICAD_T"""
1436 return _pcbnew.EDA_ITEM_Type(self)
1437
1438 def GetParent(self):
1439 r"""GetParent(EDA_ITEM self) -> EDA_ITEM"""
1440 return _pcbnew.EDA_ITEM_GetParent(self)
1441
1442 def SetParent(self, aParent):
1443 r"""SetParent(EDA_ITEM self, EDA_ITEM aParent)"""
1444 return _pcbnew.EDA_ITEM_SetParent(self, aParent)
1445
1446 def IsModified(self):
1447 r"""IsModified(EDA_ITEM self) -> bool"""
1448 return _pcbnew.EDA_ITEM_IsModified(self)
1449
1450 def IsNew(self):
1451 r"""IsNew(EDA_ITEM self) -> bool"""
1452 return _pcbnew.EDA_ITEM_IsNew(self)
1453
1454 def IsMoving(self):
1455 r"""IsMoving(EDA_ITEM self) -> bool"""
1456 return _pcbnew.EDA_ITEM_IsMoving(self)
1457
1458 def IsSelected(self):
1459 r"""IsSelected(EDA_ITEM self) -> bool"""
1460 return _pcbnew.EDA_ITEM_IsSelected(self)
1461
1462 def IsEntered(self):
1463 r"""IsEntered(EDA_ITEM self) -> bool"""
1464 return _pcbnew.EDA_ITEM_IsEntered(self)
1465
1466 def IsBrightened(self):
1467 r"""IsBrightened(EDA_ITEM self) -> bool"""
1468 return _pcbnew.EDA_ITEM_IsBrightened(self)
1469
1470 def IsRollover(self):
1471 r"""IsRollover(EDA_ITEM self) -> bool"""
1472 return _pcbnew.EDA_ITEM_IsRollover(self)
1473
1474 def SetSelected(self):
1475 r"""SetSelected(EDA_ITEM self)"""
1476 return _pcbnew.EDA_ITEM_SetSelected(self)
1477
1478 def SetBrightened(self):
1479 r"""SetBrightened(EDA_ITEM self)"""
1480 return _pcbnew.EDA_ITEM_SetBrightened(self)
1481
1482 def ClearSelected(self):
1483 r"""ClearSelected(EDA_ITEM self)"""
1484 return _pcbnew.EDA_ITEM_ClearSelected(self)
1485
1487 r"""ClearBrightened(EDA_ITEM self)"""
1488 return _pcbnew.EDA_ITEM_ClearBrightened(self)
1489
1490 def SetModified(self):
1491 r"""SetModified(EDA_ITEM self)"""
1492 return _pcbnew.EDA_ITEM_SetModified(self)
1493
1494 def SetFlags(self, aMask):
1495 r"""SetFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1496 return _pcbnew.EDA_ITEM_SetFlags(self, aMask)
1497
1498 def XorFlags(self, aMask):
1499 r"""XorFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1500 return _pcbnew.EDA_ITEM_XorFlags(self, aMask)
1501
1502 def ClearFlags(self, *args):
1503 r"""ClearFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)"""
1504 return _pcbnew.EDA_ITEM_ClearFlags(self, *args)
1505
1506 def GetFlags(self):
1507 r"""GetFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1508 return _pcbnew.EDA_ITEM_GetFlags(self)
1509
1510 def HasFlag(self, aFlag):
1511 r"""HasFlag(EDA_ITEM self, EDA_ITEM_FLAGS aFlag) -> bool"""
1512 return _pcbnew.EDA_ITEM_HasFlag(self, aFlag)
1513
1514 def GetEditFlags(self):
1515 r"""GetEditFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1516 return _pcbnew.EDA_ITEM_GetEditFlags(self)
1517
1519 r"""ClearEditFlags(EDA_ITEM self)"""
1520 return _pcbnew.EDA_ITEM_ClearEditFlags(self)
1521
1522 def GetTempFlags(self):
1523 r"""GetTempFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1524 return _pcbnew.EDA_ITEM_GetTempFlags(self)
1525
1527 r"""ClearTempFlags(EDA_ITEM self)"""
1528 return _pcbnew.EDA_ITEM_ClearTempFlags(self)
1529
1530 def RenderAsBitmap(self, aWorldScale):
1531 r"""RenderAsBitmap(EDA_ITEM self, double aWorldScale) -> bool"""
1532 return _pcbnew.EDA_ITEM_RenderAsBitmap(self, aWorldScale)
1533
1534 def SetIsShownAsBitmap(self, aBitmap):
1535 r"""SetIsShownAsBitmap(EDA_ITEM self, bool aBitmap)"""
1536 return _pcbnew.EDA_ITEM_SetIsShownAsBitmap(self, aBitmap)
1537
1539 r"""IsShownAsBitmap(EDA_ITEM self) -> bool"""
1540 return _pcbnew.EDA_ITEM_IsShownAsBitmap(self)
1541
1542 def IsType(self, aScanTypes):
1543 r"""IsType(EDA_ITEM self, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> bool"""
1544 return _pcbnew.EDA_ITEM_IsType(self, aScanTypes)
1545
1546 def SetForceVisible(self, aEnable):
1547 r"""SetForceVisible(EDA_ITEM self, bool aEnable)"""
1548 return _pcbnew.EDA_ITEM_SetForceVisible(self, aEnable)
1549
1551 r"""IsForceVisible(EDA_ITEM self) -> bool"""
1552 return _pcbnew.EDA_ITEM_IsForceVisible(self)
1553
1554 def GetMsgPanelInfo(self, aFrame, aList):
1555 r"""GetMsgPanelInfo(EDA_ITEM self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
1556 return _pcbnew.EDA_ITEM_GetMsgPanelInfo(self, aFrame, aList)
1557
1559 r"""GetFriendlyName(EDA_ITEM self) -> wxString"""
1560 return _pcbnew.EDA_ITEM_GetFriendlyName(self)
1561
1562 def HitTest(self, *args):
1563 r"""
1564 HitTest(EDA_ITEM self, VECTOR2I aPosition, int aAccuracy=0) -> bool
1565 HitTest(EDA_ITEM self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
1566 """
1567 return _pcbnew.EDA_ITEM_HitTest(self, *args)
1568
1570 r"""GetBoundingBox(EDA_ITEM self) -> BOX2I"""
1571 return _pcbnew.EDA_ITEM_GetBoundingBox(self)
1572
1573 def GetPosition(self):
1574 r"""GetPosition(EDA_ITEM self) -> VECTOR2I"""
1575 return _pcbnew.EDA_ITEM_GetPosition(self)
1576
1577 def SetPosition(self, aPos):
1578 r"""SetPosition(EDA_ITEM self, VECTOR2I aPos)"""
1579 return _pcbnew.EDA_ITEM_SetPosition(self, aPos)
1580
1582 r"""GetFocusPosition(EDA_ITEM self) -> VECTOR2I"""
1583 return _pcbnew.EDA_ITEM_GetFocusPosition(self)
1584
1586 r"""GetSortPosition(EDA_ITEM self) -> VECTOR2I"""
1587 return _pcbnew.EDA_ITEM_GetSortPosition(self)
1588
1589 def Clone(self):
1590 r"""Clone(EDA_ITEM self) -> EDA_ITEM"""
1591 return _pcbnew.EDA_ITEM_Clone(self)
1592
1593 def Visit(self, inspector, testData, aScanTypes):
1594 r"""Visit(EDA_ITEM self, INSPECTOR inspector, void * testData, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> INSPECT_RESULT"""
1595 return _pcbnew.EDA_ITEM_Visit(self, inspector, testData, aScanTypes)
1596
1597 def GetClass(self):
1598 r"""GetClass(EDA_ITEM self) -> wxString"""
1599 return _pcbnew.EDA_ITEM_GetClass(self)
1600
1601 def GetTypeDesc(self):
1602 r"""GetTypeDesc(EDA_ITEM self) -> wxString"""
1603 return _pcbnew.EDA_ITEM_GetTypeDesc(self)
1604
1605 def GetItemDescription(self, aUnitsProvider, aFull):
1606 r"""GetItemDescription(EDA_ITEM self, UNITS_PROVIDER aUnitsProvider, bool aFull) -> wxString"""
1607 return _pcbnew.EDA_ITEM_GetItemDescription(self, aUnitsProvider, aFull)
1608
1609 def GetMenuImage(self):
1610 r"""GetMenuImage(EDA_ITEM self) -> BITMAPS"""
1611 return _pcbnew.EDA_ITEM_GetMenuImage(self)
1612
1613 def Matches(self, aSearchData, aAuxData):
1614 r"""Matches(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData) -> bool"""
1615 return _pcbnew.EDA_ITEM_Matches(self, aSearchData, aAuxData)
1616
1617 def Replace(self, *args):
1618 r"""
1619 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, wxString aText) -> bool
1620 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData=None) -> bool
1621 """
1622 return _pcbnew.EDA_ITEM_Replace(self, *args)
1623
1624 def IsReplaceable(self):
1625 r"""IsReplaceable(EDA_ITEM self) -> bool"""
1626 return _pcbnew.EDA_ITEM_IsReplaceable(self)
1627
1628 def __lt__(self, aItem):
1629 r"""__lt__(EDA_ITEM self, EDA_ITEM aItem) -> bool"""
1630 return _pcbnew.EDA_ITEM___lt__(self, aItem)
1631
1632 @staticmethod
1633 def Sort(aLeft, aRight):
1634 r"""Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1635 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1636
1637 def ViewBBox(self):
1638 r"""ViewBBox(EDA_ITEM self) -> BOX2I"""
1639 return _pcbnew.EDA_ITEM_ViewBBox(self)
1640
1641 def ViewGetLayers(self):
1642 r"""ViewGetLayers(EDA_ITEM self) -> intVector"""
1643 return _pcbnew.EDA_ITEM_ViewGetLayers(self)
1644
1646 r"""GetEmbeddedFiles(EDA_ITEM self) -> EMBEDDED_FILES *"""
1647 return _pcbnew.EDA_ITEM_GetEmbeddedFiles(self)
1648 m_Uuid = property(_pcbnew.EDA_ITEM_m_Uuid_get, doc=r"""m_Uuid : q(const).KIID""")
1649
1650# Register EDA_ITEM in _pcbnew:
1651_pcbnew.EDA_ITEM_swigregister(EDA_ITEM)
1652
1653def new_clone(aItem):
1654 r"""new_clone(EDA_ITEM aItem) -> EDA_ITEM"""
1655 return _pcbnew.new_clone(aItem)
1657 r"""Proxy of C++ CompareByUuid class."""
1658
1659 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1660 __repr__ = _swig_repr
1661
1662 def __call__(self, item1, item2):
1663 r"""__call__(CompareByUuid self, EDA_ITEM item1, EDA_ITEM item2) -> bool"""
1664 return _pcbnew.CompareByUuid___call__(self, item1, item2)
1665
1666 def __init__(self):
1667 r"""__init__(CompareByUuid self) -> CompareByUuid"""
1668 _pcbnew.CompareByUuid_swiginit(self, _pcbnew.new_CompareByUuid())
1669 __swig_destroy__ = _pcbnew.delete_CompareByUuid
1670
1671# Register CompareByUuid in _pcbnew:
1672_pcbnew.CompareByUuid_swigregister(CompareByUuid)
1674 r"""Proxy of C++ EDA_IU_SCALE class."""
1675
1676 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1677 __repr__ = _swig_repr
1678 IU_PER_MM = property(_pcbnew.EDA_IU_SCALE_IU_PER_MM_get, doc=r"""IU_PER_MM : q(const).double""")
1679 IU_PER_MILS = property(_pcbnew.EDA_IU_SCALE_IU_PER_MILS_get, doc=r"""IU_PER_MILS : q(const).double""")
1680 MM_PER_IU = property(_pcbnew.EDA_IU_SCALE_MM_PER_IU_get, doc=r"""MM_PER_IU : q(const).double""")
1681
1682 def __init__(self, aIUPerMM):
1683 r"""__init__(EDA_IU_SCALE self, double aIUPerMM) -> EDA_IU_SCALE"""
1684 _pcbnew.EDA_IU_SCALE_swiginit(self, _pcbnew.new_EDA_IU_SCALE(aIUPerMM))
1685
1686 def IUTomm(self, iu):
1687 r"""IUTomm(EDA_IU_SCALE self, int iu) -> double"""
1688 return _pcbnew.EDA_IU_SCALE_IUTomm(self, iu)
1689
1690 def mmToIU(self, mm):
1691 r"""mmToIU(EDA_IU_SCALE self, double mm) -> int"""
1692 return _pcbnew.EDA_IU_SCALE_mmToIU(self, mm)
1693
1694 def MilsToIU(self, mils):
1695 r"""MilsToIU(EDA_IU_SCALE self, int mils) -> int"""
1696 return _pcbnew.EDA_IU_SCALE_MilsToIU(self, mils)
1697
1698 def IUToMils(self, iu):
1699 r"""IUToMils(EDA_IU_SCALE self, int iu) -> int"""
1700 return _pcbnew.EDA_IU_SCALE_IUToMils(self, iu)
1701 __swig_destroy__ = _pcbnew.delete_EDA_IU_SCALE
1702
1703# Register EDA_IU_SCALE in _pcbnew:
1704_pcbnew.EDA_IU_SCALE_swigregister(EDA_IU_SCALE)
1705GERB_IU_PER_MM = cvar.GERB_IU_PER_MM
1706PCB_IU_PER_MM = cvar.PCB_IU_PER_MM
1707PL_IU_PER_MM = cvar.PL_IU_PER_MM
1708SCH_IU_PER_MM = cvar.SCH_IU_PER_MM
1709
1710EDA_DATA_TYPE_DISTANCE = _pcbnew.EDA_DATA_TYPE_DISTANCE
1711
1712EDA_DATA_TYPE_AREA = _pcbnew.EDA_DATA_TYPE_AREA
1713
1714EDA_DATA_TYPE_VOLUME = _pcbnew.EDA_DATA_TYPE_VOLUME
1715
1716EDA_DATA_TYPE_UNITLESS = _pcbnew.EDA_DATA_TYPE_UNITLESS
1717
1718EDA_UNITS_INCHES = _pcbnew.EDA_UNITS_INCHES
1719
1720EDA_UNITS_MILLIMETRES = _pcbnew.EDA_UNITS_MILLIMETRES
1721
1722EDA_UNITS_UNSCALED = _pcbnew.EDA_UNITS_UNSCALED
1723
1724EDA_UNITS_DEGREES = _pcbnew.EDA_UNITS_DEGREES
1725
1726EDA_UNITS_PERCENT = _pcbnew.EDA_UNITS_PERCENT
1727
1728EDA_UNITS_MILS = _pcbnew.EDA_UNITS_MILS
1729
1730EDA_UNITS_MICROMETRES = _pcbnew.EDA_UNITS_MICROMETRES
1731
1732EDA_UNITS_CENTIMETRES = _pcbnew.EDA_UNITS_CENTIMETRES
1733
1734
1736 r"""IsImperialUnit(EDA_UNITS aUnit) -> bool"""
1737 return _pcbnew.IsImperialUnit(aUnit)
1738
1739def IsMetricUnit(aUnit):
1740 r"""IsMetricUnit(EDA_UNITS aUnit) -> bool"""
1741 return _pcbnew.IsMetricUnit(aUnit)
1742
1743def Mm2mils(aVal):
1744 r"""Mm2mils(double aVal) -> int"""
1745 return _pcbnew.Mm2mils(aVal)
1746
1747def Mils2mm(aVal):
1748 r"""Mils2mm(double aVal) -> int"""
1749 return _pcbnew.Mils2mm(aVal)
1750
1751def FetchUnitsFromString(aTextValue, aUnits):
1752 r"""FetchUnitsFromString(wxString aTextValue, EDA_UNITS & aUnits) -> bool"""
1753 return _pcbnew.FetchUnitsFromString(aTextValue, aUnits)
1754
1755def GetText(*args):
1756 r"""GetText(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1757 return _pcbnew.GetText(*args)
1758
1759def GetLabel(*args):
1760 r"""GetLabel(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1761 return _pcbnew.GetLabel(*args)
1762
1763def FormatAngle(aAngle):
1764 r"""FormatAngle(EDA_ANGLE aAngle) -> string"""
1765 return _pcbnew.FormatAngle(aAngle)
1766
1768 r"""
1769 FormatInternalUnits(EDA_IU_SCALE aIuScale, int aValue) -> string
1770 FormatInternalUnits(EDA_IU_SCALE aIuScale, VECTOR2I aPoint) -> string
1771 """
1772 return _pcbnew.FormatInternalUnits(*args)
1773
1774def Mils2IU(aIuScale, mils):
1775 r"""Mils2IU(EDA_IU_SCALE aIuScale, int mils) -> int"""
1776 return _pcbnew.Mils2IU(aIuScale, mils)
1777
1778def ToUserUnit(aIuScale, aUnit, aValue):
1779 r"""ToUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1780 return _pcbnew.ToUserUnit(aIuScale, aUnit, aValue)
1781
1783 r"""StringFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1784 return _pcbnew.StringFromValue(*args)
1785
1787 r"""
1788 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1789 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, int aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1790 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, long long aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1791 MessageTextFromValue(EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
1792 """
1793 return _pcbnew.MessageTextFromValue(*args)
1794
1795def MessageTextFromMinOptMax(aIuScale, aUnits, aValue):
1796 r"""MessageTextFromMinOptMax(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, MINOPTMAX< int > const & aValue) -> wxString"""
1797 return _pcbnew.MessageTextFromMinOptMax(aIuScale, aUnits, aValue)
1798
1799def FromUserUnit(aIuScale, aUnit, aValue):
1800 r"""FromUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1801 return _pcbnew.FromUserUnit(aIuScale, aUnit, aValue)
1802
1804 r"""
1805 DoubleValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> double
1806 DoubleValueFromString(wxString aTextValue) -> double
1807 """
1808 return _pcbnew.DoubleValueFromString(*args)
1809
1811 r"""
1812 ValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> long long
1813 ValueFromString(wxString aTextValue) -> long long
1814 """
1815 return _pcbnew.ValueFromString(*args)
1816
1818 r"""SearchHelpFileFullPath(wxString aBaseName) -> wxString"""
1819 return _pcbnew.SearchHelpFileFullPath(aBaseName)
1820
1821def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None):
1822 r"""EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename, REPORTER * aReporter=None) -> bool"""
1823 return _pcbnew.EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter)
1824
1825def EnsureFileExtension(aFilename, aExtension):
1826 r"""EnsureFileExtension(wxString aFilename, wxString aExtension) -> wxString"""
1827 return _pcbnew.EnsureFileExtension(aFilename, aExtension)
1828
1829def ExpandEnvVarSubstitutions(aString, aProject):
1830 r"""ExpandEnvVarSubstitutions(wxString aString, PROJECT const * aProject) -> wxString"""
1831 return _pcbnew.ExpandEnvVarSubstitutions(aString, aProject)
1832FOR_ERC_DRC = _pcbnew.FOR_ERC_DRC
1833
1834
1836 r"""
1837 ExpandTextVars(wxString aSource, std::function< bool (wxString *) > const * aResolver, int aFlags=0) -> wxString
1838 ExpandTextVars(wxString aSource, PROJECT const * aProject, int aFlags=0) -> wxString
1839 """
1840 return _pcbnew.ExpandTextVars(*args)
1841
1842def GetTextVars(aSource):
1843 r"""GetTextVars(wxString aSource) -> wxString"""
1844 return _pcbnew.GetTextVars(aSource)
1845
1846def IsTextVar(aSource):
1847 r"""IsTextVar(wxString aSource) -> bool"""
1848 return _pcbnew.IsTextVar(aSource)
1849
1850def ResolveUriByEnvVars(aUri, aProject):
1851 r"""ResolveUriByEnvVars(wxString aUri, PROJECT const * aProject) -> wxString"""
1852 return _pcbnew.ResolveUriByEnvVars(aUri, aProject)
1853
1854def TimestampDir(aDirPath, aFilespec):
1855 r"""TimestampDir(wxString aDirPath, wxString aFilespec) -> long long"""
1856 return _pcbnew.TimestampDir(aDirPath, aFilespec)
1857
1859 r"""WarnUserIfOperatingSystemUnsupported() -> bool"""
1860 return _pcbnew.WarnUserIfOperatingSystemUnsupported()
1861
1862def StrPrintf(*args):
1863 r"""
1864 StrPrintf(string aResult, char const * aFormat) -> int
1865 StrPrintf(char const * format) -> string
1866 """
1867 return _pcbnew.StrPrintf(*args)
1868
1869def SafeReadFile(aFilePath, aReadType):
1870 r"""SafeReadFile(wxString aFilePath, wxString aReadType) -> wxString"""
1871 return _pcbnew.SafeReadFile(aFilePath, aReadType)
1872LINE_READER_LINE_DEFAULT_MAX = _pcbnew.LINE_READER_LINE_DEFAULT_MAX
1873
1874LINE_READER_LINE_INITIAL_SIZE = _pcbnew.LINE_READER_LINE_INITIAL_SIZE
1875
1877 r"""Proxy of C++ LINE_READER class."""
1878
1879 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1880
1881 def __init__(self, *args, **kwargs):
1882 raise AttributeError("No constructor defined - class is abstract")
1883 __repr__ = _swig_repr
1884 __swig_destroy__ = _pcbnew.delete_LINE_READER
1885
1886 def ReadLine(self):
1887 r"""ReadLine(LINE_READER self) -> char *"""
1888 return _pcbnew.LINE_READER_ReadLine(self)
1889
1890 def GetSource(self):
1891 r"""GetSource(LINE_READER self) -> wxString"""
1892 return _pcbnew.LINE_READER_GetSource(self)
1893
1894 def Line(self):
1895 r"""Line(LINE_READER self) -> char *"""
1896 return _pcbnew.LINE_READER_Line(self)
1897
1898 def LineNumber(self):
1899 r"""LineNumber(LINE_READER self) -> unsigned int"""
1900 return _pcbnew.LINE_READER_LineNumber(self)
1901
1902 def Length(self):
1903 r"""Length(LINE_READER self) -> unsigned int"""
1904 return _pcbnew.LINE_READER_Length(self)
1905
1906# Register LINE_READER in _pcbnew:
1907_pcbnew.LINE_READER_swigregister(LINE_READER)
1908gerbIUScale = cvar.gerbIUScale
1909pcbIUScale = cvar.pcbIUScale
1910drawSheetIUScale = cvar.drawSheetIUScale
1911schIUScale = cvar.schIUScale
1912unityScale = cvar.unityScale
1913
1915 r"""Proxy of C++ FILE_LINE_READER class."""
1916
1917 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1918 __repr__ = _swig_repr
1919
1920 def __init__(self, *args):
1921 r"""
1922 __init__(FILE_LINE_READER self, wxString aFileName, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
1923 __init__(FILE_LINE_READER self, FILE * aFile, wxString aFileName, bool doOwn=True, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
1924 """
1925 _pcbnew.FILE_LINE_READER_swiginit(self, _pcbnew.new_FILE_LINE_READER(*args))
1926 __swig_destroy__ = _pcbnew.delete_FILE_LINE_READER
1927
1928 def Rewind(self):
1929 r"""Rewind(FILE_LINE_READER self)"""
1930 return _pcbnew.FILE_LINE_READER_Rewind(self)
1931
1932 def FileLength(self):
1933 r"""FileLength(FILE_LINE_READER self) -> long"""
1934 return _pcbnew.FILE_LINE_READER_FileLength(self)
1935
1936 def CurPos(self):
1937 r"""CurPos(FILE_LINE_READER self) -> long"""
1938 return _pcbnew.FILE_LINE_READER_CurPos(self)
1939
1940# Register FILE_LINE_READER in _pcbnew:
1941_pcbnew.FILE_LINE_READER_swigregister(FILE_LINE_READER)
1943 r"""Proxy of C++ STRING_LINE_READER class."""
1944
1945 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1946 __repr__ = _swig_repr
1947
1948 def __init__(self, *args):
1949 r"""
1950 __init__(STRING_LINE_READER self, string aString, wxString aSource) -> STRING_LINE_READER
1951 __init__(STRING_LINE_READER self, STRING_LINE_READER aStartingPoint) -> STRING_LINE_READER
1952 """
1953 _pcbnew.STRING_LINE_READER_swiginit(self, _pcbnew.new_STRING_LINE_READER(*args))
1954 __swig_destroy__ = _pcbnew.delete_STRING_LINE_READER
1955
1956# Register STRING_LINE_READER in _pcbnew:
1957_pcbnew.STRING_LINE_READER_swigregister(STRING_LINE_READER)
1959 r"""Proxy of C++ INPUTSTREAM_LINE_READER class."""
1960
1961 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1962 __repr__ = _swig_repr
1963
1964 def __init__(self, aStream, aSource):
1965 r"""__init__(INPUTSTREAM_LINE_READER self, wxInputStream * aStream, wxString aSource) -> INPUTSTREAM_LINE_READER"""
1966 _pcbnew.INPUTSTREAM_LINE_READER_swiginit(self, _pcbnew.new_INPUTSTREAM_LINE_READER(aStream, aSource))
1967 __swig_destroy__ = _pcbnew.delete_INPUTSTREAM_LINE_READER
1968
1969# Register INPUTSTREAM_LINE_READER in _pcbnew:
1970_pcbnew.INPUTSTREAM_LINE_READER_swigregister(INPUTSTREAM_LINE_READER)
1971OUTPUTFMTBUFZ = _pcbnew.OUTPUTFMTBUFZ
1972
1974 r"""Proxy of C++ OUTPUTFORMATTER class."""
1975
1976 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1977
1978 def __init__(self, *args, **kwargs):
1979 raise AttributeError("No constructor defined - class is abstract")
1980 __repr__ = _swig_repr
1981 __swig_destroy__ = _pcbnew.delete_OUTPUTFORMATTER
1982
1983 def Print(self, *args):
1984 r"""
1985 Print(OUTPUTFORMATTER self, int nestLevel, char const * fmt) -> int
1986 Print(OUTPUTFORMATTER self, char const * fmt) -> int
1987 """
1988 return _pcbnew.OUTPUTFORMATTER_Print(self, *args)
1989
1990 def GetQuoteChar(self, wrapee):
1991 r"""GetQuoteChar(OUTPUTFORMATTER self, char const * wrapee) -> char const *"""
1992 return _pcbnew.OUTPUTFORMATTER_GetQuoteChar(self, wrapee)
1993
1994 def Quotes(self, aWrapee):
1995 r"""Quotes(OUTPUTFORMATTER self, string aWrapee) -> string"""
1996 return _pcbnew.OUTPUTFORMATTER_Quotes(self, aWrapee)
1997
1998 def Quotew(self, aWrapee):
1999 r"""Quotew(OUTPUTFORMATTER self, wxString aWrapee) -> string"""
2000 return _pcbnew.OUTPUTFORMATTER_Quotew(self, aWrapee)
2001
2002 def Finish(self):
2003 r"""Finish(OUTPUTFORMATTER self) -> bool"""
2004 return _pcbnew.OUTPUTFORMATTER_Finish(self)
2005
2006# Register OUTPUTFORMATTER in _pcbnew:
2007_pcbnew.OUTPUTFORMATTER_swigregister(OUTPUTFORMATTER)
2009 r"""Proxy of C++ STRING_FORMATTER class."""
2010
2011 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2012 __repr__ = _swig_repr
2013
2014 def __init__(self, *args):
2015 r"""__init__(STRING_FORMATTER self, int aReserve=500, char aQuoteChar='\"') -> STRING_FORMATTER"""
2016 _pcbnew.STRING_FORMATTER_swiginit(self, _pcbnew.new_STRING_FORMATTER(*args))
2017
2018 def Clear(self):
2019 r"""Clear(STRING_FORMATTER self)"""
2020 return _pcbnew.STRING_FORMATTER_Clear(self)
2021
2022 def StripUseless(self):
2023 r"""StripUseless(STRING_FORMATTER self)"""
2024 return _pcbnew.STRING_FORMATTER_StripUseless(self)
2025
2026 def GetString(self):
2027 r"""GetString(STRING_FORMATTER self) -> string"""
2028 return _pcbnew.STRING_FORMATTER_GetString(self)
2029 __swig_destroy__ = _pcbnew.delete_STRING_FORMATTER
2030
2031# Register STRING_FORMATTER in _pcbnew:
2032_pcbnew.STRING_FORMATTER_swigregister(STRING_FORMATTER)
2034 r"""Proxy of C++ FILE_OUTPUTFORMATTER class."""
2035
2036 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2037 __repr__ = _swig_repr
2038
2039 def __init__(self, *args):
2040 r"""__init__(FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> FILE_OUTPUTFORMATTER"""
2041 _pcbnew.FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_FILE_OUTPUTFORMATTER(*args))
2042 __swig_destroy__ = _pcbnew.delete_FILE_OUTPUTFORMATTER
2043
2044# Register FILE_OUTPUTFORMATTER in _pcbnew:
2045_pcbnew.FILE_OUTPUTFORMATTER_swigregister(FILE_OUTPUTFORMATTER)
2047 r"""Proxy of C++ PRETTIFIED_FILE_OUTPUTFORMATTER class."""
2048
2049 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2050 __repr__ = _swig_repr
2051
2052 def __init__(self, *args):
2053 r"""__init__(PRETTIFIED_FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> PRETTIFIED_FILE_OUTPUTFORMATTER"""
2054 _pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_PRETTIFIED_FILE_OUTPUTFORMATTER(*args))
2055 __swig_destroy__ = _pcbnew.delete_PRETTIFIED_FILE_OUTPUTFORMATTER
2056
2057# Register PRETTIFIED_FILE_OUTPUTFORMATTER in _pcbnew:
2058_pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swigregister(PRETTIFIED_FILE_OUTPUTFORMATTER)
2060 r"""Proxy of C++ TITLE_BLOCK class."""
2061
2062 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2063 __repr__ = _swig_repr
2064
2065 def __init__(self):
2066 r"""__init__(TITLE_BLOCK self) -> TITLE_BLOCK"""
2067 _pcbnew.TITLE_BLOCK_swiginit(self, _pcbnew.new_TITLE_BLOCK())
2068 __swig_destroy__ = _pcbnew.delete_TITLE_BLOCK
2069
2070 def SetTitle(self, aTitle):
2071 r"""SetTitle(TITLE_BLOCK self, wxString aTitle)"""
2072 return _pcbnew.TITLE_BLOCK_SetTitle(self, aTitle)
2073
2074 def GetTitle(self):
2075 r"""GetTitle(TITLE_BLOCK self) -> wxString"""
2076 return _pcbnew.TITLE_BLOCK_GetTitle(self)
2077
2078 def SetDate(self, aDate):
2079 r"""SetDate(TITLE_BLOCK self, wxString aDate)"""
2080 return _pcbnew.TITLE_BLOCK_SetDate(self, aDate)
2081
2082 def GetDate(self):
2083 r"""GetDate(TITLE_BLOCK self) -> wxString"""
2084 return _pcbnew.TITLE_BLOCK_GetDate(self)
2085
2086 def SetRevision(self, aRevision):
2087 r"""SetRevision(TITLE_BLOCK self, wxString aRevision)"""
2088 return _pcbnew.TITLE_BLOCK_SetRevision(self, aRevision)
2089
2090 def GetRevision(self):
2091 r"""GetRevision(TITLE_BLOCK self) -> wxString"""
2092 return _pcbnew.TITLE_BLOCK_GetRevision(self)
2093
2094 def SetCompany(self, aCompany):
2095 r"""SetCompany(TITLE_BLOCK self, wxString aCompany)"""
2096 return _pcbnew.TITLE_BLOCK_SetCompany(self, aCompany)
2097
2098 def GetCompany(self):
2099 r"""GetCompany(TITLE_BLOCK self) -> wxString"""
2100 return _pcbnew.TITLE_BLOCK_GetCompany(self)
2101
2102 def SetComment(self, aIdx, aComment):
2103 r"""SetComment(TITLE_BLOCK self, int aIdx, wxString aComment)"""
2104 return _pcbnew.TITLE_BLOCK_SetComment(self, aIdx, aComment)
2105
2106 def GetComment(self, aIdx):
2107 r"""GetComment(TITLE_BLOCK self, int aIdx) -> wxString"""
2108 return _pcbnew.TITLE_BLOCK_GetComment(self, aIdx)
2109
2110 def Clear(self):
2111 r"""Clear(TITLE_BLOCK self)"""
2112 return _pcbnew.TITLE_BLOCK_Clear(self)
2113
2114 @staticmethod
2116 r"""GetContextualTextVars(wxArrayString * aVars)"""
2117 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2118
2119 def TextVarResolver(self, aToken, aProject, aFlags=0):
2120 r"""TextVarResolver(TITLE_BLOCK self, wxString aToken, PROJECT const * aProject, int aFlags=0) -> bool"""
2121 return _pcbnew.TITLE_BLOCK_TextVarResolver(self, aToken, aProject, aFlags)
2122
2123 def Format(self, aFormatter):
2124 r"""Format(TITLE_BLOCK self, OUTPUTFORMATTER aFormatter)"""
2125 return _pcbnew.TITLE_BLOCK_Format(self, aFormatter)
2126
2127# Register TITLE_BLOCK in _pcbnew:
2128_pcbnew.TITLE_BLOCK_swigregister(TITLE_BLOCK)
2129UNSPECIFIED_COLOR = _pcbnew.UNSPECIFIED_COLOR
2130
2131BLACK = _pcbnew.BLACK
2132
2133DARKDARKGRAY = _pcbnew.DARKDARKGRAY
2134
2135DARKGRAY = _pcbnew.DARKGRAY
2136
2137LIGHTGRAY = _pcbnew.LIGHTGRAY
2138
2139WHITE = _pcbnew.WHITE
2140
2141LIGHTYELLOW = _pcbnew.LIGHTYELLOW
2142
2143DARKBLUE = _pcbnew.DARKBLUE
2144
2145DARKGREEN = _pcbnew.DARKGREEN
2146
2147DARKCYAN = _pcbnew.DARKCYAN
2148
2149DARKRED = _pcbnew.DARKRED
2150
2151DARKMAGENTA = _pcbnew.DARKMAGENTA
2152
2153DARKBROWN = _pcbnew.DARKBROWN
2154
2155BLUE = _pcbnew.BLUE
2156
2157GREEN = _pcbnew.GREEN
2158
2159CYAN = _pcbnew.CYAN
2160
2161RED = _pcbnew.RED
2162
2163MAGENTA = _pcbnew.MAGENTA
2164
2165BROWN = _pcbnew.BROWN
2166
2167LIGHTBLUE = _pcbnew.LIGHTBLUE
2168
2169LIGHTGREEN = _pcbnew.LIGHTGREEN
2170
2171LIGHTCYAN = _pcbnew.LIGHTCYAN
2172
2173LIGHTRED = _pcbnew.LIGHTRED
2174
2175LIGHTMAGENTA = _pcbnew.LIGHTMAGENTA
2176
2177YELLOW = _pcbnew.YELLOW
2178
2179PUREBLUE = _pcbnew.PUREBLUE
2180
2181PUREGREEN = _pcbnew.PUREGREEN
2182
2183PURECYAN = _pcbnew.PURECYAN
2184
2185PURERED = _pcbnew.PURERED
2186
2187PUREMAGENTA = _pcbnew.PUREMAGENTA
2188
2189PUREYELLOW = _pcbnew.PUREYELLOW
2190
2191LIGHTERORANGE = _pcbnew.LIGHTERORANGE
2192
2193DARKORANGE = _pcbnew.DARKORANGE
2194
2195ORANGE = _pcbnew.ORANGE
2196
2197LIGHTORANGE = _pcbnew.LIGHTORANGE
2198
2199PUREORANGE = _pcbnew.PUREORANGE
2200
2201NBCOLORS = _pcbnew.NBCOLORS
2202
2203HIGHLIGHT_FLAG = _pcbnew.HIGHLIGHT_FLAG
2204
2205MASKCOLOR = _pcbnew.MASKCOLOR
2206
2208 r"""Proxy of C++ StructColors class."""
2209
2210 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2211 __repr__ = _swig_repr
2212 m_Blue = property(_pcbnew.StructColors_m_Blue_get, _pcbnew.StructColors_m_Blue_set, doc=r"""m_Blue : unsigned char""")
2213 m_Green = property(_pcbnew.StructColors_m_Green_get, _pcbnew.StructColors_m_Green_set, doc=r"""m_Green : unsigned char""")
2214 m_Red = property(_pcbnew.StructColors_m_Red_get, _pcbnew.StructColors_m_Red_set, doc=r"""m_Red : unsigned char""")
2215 m_Numcolor = property(_pcbnew.StructColors_m_Numcolor_get, _pcbnew.StructColors_m_Numcolor_set, doc=r"""m_Numcolor : EDA_COLOR_T""")
2216 m_ColorName = property(_pcbnew.StructColors_m_ColorName_get, _pcbnew.StructColors_m_ColorName_set, doc=r"""m_ColorName : std::string""")
2217 m_LightColor = property(_pcbnew.StructColors_m_LightColor_get, _pcbnew.StructColors_m_LightColor_set, doc=r"""m_LightColor : EDA_COLOR_T""")
2218
2219 def __init__(self):
2220 r"""__init__(StructColors self) -> StructColors"""
2221 _pcbnew.StructColors_swiginit(self, _pcbnew.new_StructColors())
2222 __swig_destroy__ = _pcbnew.delete_StructColors
2223
2224# Register StructColors in _pcbnew:
2225_pcbnew.StructColors_swigregister(StructColors)
2226
2228 r"""colorRefs() -> StructColors"""
2229 return _pcbnew.colorRefs()
2231 r"""Proxy of C++ KIGFX::COLOR4D class."""
2232
2233 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2234 __repr__ = _swig_repr
2235
2236 def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0):
2237 r"""FromCSSRGBA(COLOR4D self, int aRed, int aGreen, int aBlue, double aAlpha=1.0) -> COLOR4D"""
2238 return _pcbnew.COLOR4D_FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha)
2239
2240 def __init__(self, *args):
2241 r"""
2242 __init__(COLOR4D self) -> COLOR4D
2243 __init__(COLOR4D self, double aRed, double aGreen, double aBlue, double aAlpha) -> COLOR4D
2244 __init__(COLOR4D self, EDA_COLOR_T aColor) -> COLOR4D
2245 __init__(COLOR4D self, wxString aColorStr) -> COLOR4D
2246 __init__(COLOR4D self, wxColour const & aColor) -> COLOR4D
2247 """
2248 _pcbnew.COLOR4D_swiginit(self, _pcbnew.new_COLOR4D(*args))
2249
2250 def SetFromWxString(self, aColorString):
2251 r"""SetFromWxString(COLOR4D self, wxString aColorString) -> bool"""
2252 return _pcbnew.COLOR4D_SetFromWxString(self, aColorString)
2253
2254 def ToCSSString(self):
2255 r"""ToCSSString(COLOR4D self) -> wxString"""
2256 return _pcbnew.COLOR4D_ToCSSString(self)
2257
2258 def SetFromHexString(self, aColorString):
2259 r"""SetFromHexString(COLOR4D self, wxString aColorString) -> bool"""
2260 return _pcbnew.COLOR4D_SetFromHexString(self, aColorString)
2261
2262 def ToHexString(self):
2263 r"""ToHexString(COLOR4D self) -> wxString"""
2264 return _pcbnew.COLOR4D_ToHexString(self)
2265
2266 def ToColour(self):
2267 r"""ToColour(COLOR4D self) -> wxColour"""
2268 return _pcbnew.COLOR4D_ToColour(self)
2269
2270 def LegacyMix(self, aColor):
2271 r"""LegacyMix(COLOR4D self, COLOR4D aColor) -> COLOR4D"""
2272 return _pcbnew.COLOR4D_LegacyMix(self, aColor)
2273
2274 def ToHSL(self, aOutHue, aOutSaturation, aOutLightness):
2275 r"""ToHSL(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutLightness)"""
2276 return _pcbnew.COLOR4D_ToHSL(self, aOutHue, aOutSaturation, aOutLightness)
2277
2278 def FromHSL(self, aInHue, aInSaturation, aInLightness):
2279 r"""FromHSL(COLOR4D self, double aInHue, double aInSaturation, double aInLightness)"""
2280 return _pcbnew.COLOR4D_FromHSL(self, aInHue, aInSaturation, aInLightness)
2281
2282 def Brighten(self, aFactor):
2283 r"""Brighten(COLOR4D self, double aFactor) -> COLOR4D"""
2284 return _pcbnew.COLOR4D_Brighten(self, aFactor)
2285
2286 def Darken(self, aFactor):
2287 r"""Darken(COLOR4D self, double aFactor) -> COLOR4D"""
2288 return _pcbnew.COLOR4D_Darken(self, aFactor)
2289
2290 def Invert(self):
2291 r"""Invert(COLOR4D self) -> COLOR4D"""
2292 return _pcbnew.COLOR4D_Invert(self)
2293
2294 def Saturate(self, aFactor):
2295 r"""Saturate(COLOR4D self, double aFactor) -> COLOR4D"""
2296 return _pcbnew.COLOR4D_Saturate(self, aFactor)
2297
2298 def Desaturate(self):
2299 r"""Desaturate(COLOR4D self) -> COLOR4D"""
2300 return _pcbnew.COLOR4D_Desaturate(self)
2301
2302 def Brightened(self, aFactor):
2303 r"""Brightened(COLOR4D self, double aFactor) -> COLOR4D"""
2304 return _pcbnew.COLOR4D_Brightened(self, aFactor)
2305
2306 def Darkened(self, aFactor):
2307 r"""Darkened(COLOR4D self, double aFactor) -> COLOR4D"""
2308 return _pcbnew.COLOR4D_Darkened(self, aFactor)
2309
2310 def Mix(self, aColor, aFactor):
2311 r"""Mix(COLOR4D self, COLOR4D aColor, double aFactor) -> COLOR4D"""
2312 return _pcbnew.COLOR4D_Mix(self, aColor, aFactor)
2313
2314 def WithAlpha(self, aAlpha):
2315 r"""WithAlpha(COLOR4D self, double aAlpha) -> COLOR4D"""
2316 return _pcbnew.COLOR4D_WithAlpha(self, aAlpha)
2317
2318 def Inverted(self):
2319 r"""Inverted(COLOR4D self) -> COLOR4D"""
2320 return _pcbnew.COLOR4D_Inverted(self)
2321
2322 def GetBrightness(self):
2323 r"""GetBrightness(COLOR4D self) -> double"""
2324 return _pcbnew.COLOR4D_GetBrightness(self)
2325
2326 def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False):
2327 r"""ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue, bool aAlwaysDefineHue=False)"""
2328 return _pcbnew.COLOR4D_ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue)
2329
2330 def FromHSV(self, aInH, aInS, aInV):
2331 r"""FromHSV(COLOR4D self, double aInH, double aInS, double aInV)"""
2332 return _pcbnew.COLOR4D_FromHSV(self, aInH, aInS, aInV)
2333
2334 def Distance(self, other):
2335 r"""Distance(COLOR4D self, COLOR4D other) -> double"""
2336 return _pcbnew.COLOR4D_Distance(self, other)
2337
2338 def Compare(self, aRhs):
2339 r"""Compare(COLOR4D self, COLOR4D aRhs) -> int"""
2340 return _pcbnew.COLOR4D_Compare(self, aRhs)
2341
2343 r"""RelativeLuminance(COLOR4D self) -> double"""
2344 return _pcbnew.COLOR4D_RelativeLuminance(self)
2345
2346 @staticmethod
2347 def ContrastRatio(aLeft, aRight):
2348 r"""ContrastRatio(COLOR4D aLeft, COLOR4D aRight) -> double"""
2349 return _pcbnew.COLOR4D_ContrastRatio(aLeft, aRight)
2350
2351 @staticmethod
2352 def FindNearestLegacyColor(aR, aG, aB):
2353 r"""FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2354 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2355 r = property(_pcbnew.COLOR4D_r_get, _pcbnew.COLOR4D_r_set, doc=r"""r : double""")
2356 g = property(_pcbnew.COLOR4D_g_get, _pcbnew.COLOR4D_g_set, doc=r"""g : double""")
2357 b = property(_pcbnew.COLOR4D_b_get, _pcbnew.COLOR4D_b_set, doc=r"""b : double""")
2358 a = property(_pcbnew.COLOR4D_a_get, _pcbnew.COLOR4D_a_set, doc=r"""a : double""")
2359 __swig_destroy__ = _pcbnew.delete_COLOR4D
2360
2361# Register COLOR4D in _pcbnew:
2362_pcbnew.COLOR4D_swigregister(COLOR4D)
2363COLOR4D.UNSPECIFIED = _pcbnew.cvar.COLOR4D_UNSPECIFIED
2364COLOR4D.WHITE = _pcbnew.cvar.COLOR4D_WHITE
2365COLOR4D.BLACK = _pcbnew.cvar.COLOR4D_BLACK
2366COLOR4D.CLEAR = _pcbnew.cvar.COLOR4D_CLEAR
2367
2368
2369def __eq__(lhs, rhs):
2370 r"""__eq__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2371 return _pcbnew.__eq__(lhs, rhs)
2372
2373def __ne__(lhs, rhs):
2374 r"""__ne__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2375 return _pcbnew.__ne__(lhs, rhs)
2376
2377def __lt__(lhs, rhs):
2378 r"""__lt__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2379 return _pcbnew.__lt__(lhs, rhs)
2380
2381def __lshift__(aStream, aColor):
2382 r"""__lshift__(std::ostream & aStream, COLOR4D aColor) -> std::ostream &"""
2383 return _pcbnew.__lshift__(aStream, aColor)
2385 r"""Proxy of C++ MARKER_BASE class."""
2386
2387 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2388
2389 def __init__(self, *args, **kwargs):
2390 raise AttributeError("No constructor defined - class is abstract")
2391 __repr__ = _swig_repr
2392 MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
2393
2394 MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
2395
2396 MARKER_DRC = _pcbnew.MARKER_BASE_MARKER_DRC
2397
2398 MARKER_DRAWING_SHEET = _pcbnew.MARKER_BASE_MARKER_DRAWING_SHEET
2399
2400 MARKER_RATSNEST = _pcbnew.MARKER_BASE_MARKER_RATSNEST
2401
2402 MARKER_PARITY = _pcbnew.MARKER_BASE_MARKER_PARITY
2403
2404 MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
2405
2406 __swig_destroy__ = _pcbnew.delete_MARKER_BASE
2407
2408 def MarkerScale(self):
2409 r"""MarkerScale(MARKER_BASE self) -> int"""
2410 return _pcbnew.MARKER_BASE_MarkerScale(self)
2411
2412 def SetMarkerScale(self, aScale):
2413 r"""SetMarkerScale(MARKER_BASE self, int aScale)"""
2414 return _pcbnew.MARKER_BASE_SetMarkerScale(self, aScale)
2415
2416 def ShapeToPolygon(self, aPolygon, aScale=-1):
2417 r"""ShapeToPolygon(MARKER_BASE self, SHAPE_LINE_CHAIN aPolygon, int aScale=-1)"""
2418 return _pcbnew.MARKER_BASE_ShapeToPolygon(self, aPolygon, aScale)
2419
2420 def PrintMarker(self, aSettings, aOffset):
2421 r"""PrintMarker(MARKER_BASE self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset)"""
2422 return _pcbnew.MARKER_BASE_PrintMarker(self, aSettings, aOffset)
2423
2424 def GetPos(self):
2425 r"""GetPos(MARKER_BASE self) -> VECTOR2I"""
2426 return _pcbnew.MARKER_BASE_GetPos(self)
2427
2428 def GetUUID(self):
2429 r"""GetUUID(MARKER_BASE self) -> KIID"""
2430 return _pcbnew.MARKER_BASE_GetUUID(self)
2431
2432 def SetMarkerType(self, aMarkerType):
2433 r"""SetMarkerType(MARKER_BASE self, enum MARKER_BASE::MARKER_T aMarkerType)"""
2434 return _pcbnew.MARKER_BASE_SetMarkerType(self, aMarkerType)
2435
2436 def GetMarkerType(self):
2437 r"""GetMarkerType(MARKER_BASE self) -> enum MARKER_BASE::MARKER_T"""
2438 return _pcbnew.MARKER_BASE_GetMarkerType(self)
2439
2440 def IsExcluded(self):
2441 r"""IsExcluded(MARKER_BASE self) -> bool"""
2442 return _pcbnew.MARKER_BASE_IsExcluded(self)
2443
2444 def SetExcluded(self, *args):
2445 r"""SetExcluded(MARKER_BASE self, bool aExcluded, wxString aComment=wxEmptyString)"""
2446 return _pcbnew.MARKER_BASE_SetExcluded(self, *args)
2447
2448 def GetComment(self):
2449 r"""GetComment(MARKER_BASE self) -> wxString"""
2450 return _pcbnew.MARKER_BASE_GetComment(self)
2451
2452 def GetSeverity(self):
2453 r"""GetSeverity(MARKER_BASE self) -> SEVERITY"""
2454 return _pcbnew.MARKER_BASE_GetSeverity(self)
2455
2456 def GetRCItem(self):
2457 r"""GetRCItem(MARKER_BASE self) -> std::shared_ptr< RC_ITEM >"""
2458 return _pcbnew.MARKER_BASE_GetRCItem(self)
2459
2460 def HitTestMarker(self, *args):
2461 r"""
2462 HitTestMarker(MARKER_BASE self, VECTOR2I aHitPosition, int aAccuracy) -> bool
2463 HitTestMarker(MARKER_BASE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
2464 """
2465 return _pcbnew.MARKER_BASE_HitTestMarker(self, *args)
2466
2468 r"""GetBoundingBoxMarker(MARKER_BASE self) -> BOX2I"""
2469 return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2470 m_Pos = property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set, doc=r"""m_Pos : VECTOR2I""")
2471
2472# Register MARKER_BASE in _pcbnew:
2473_pcbnew.MARKER_BASE_swigregister(MARKER_BASE)
2474TEXT_MIN_SIZE_MM = _pcbnew.TEXT_MIN_SIZE_MM
2475
2476TEXT_MAX_SIZE_MM = _pcbnew.TEXT_MAX_SIZE_MM
2477
2478DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2479
2481 r"""Proxy of C++ EDA_TEXT class."""
2482
2483 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2484 __repr__ = _swig_repr
2485
2486 def __init__(self, *args):
2487 r"""
2488 __init__(EDA_TEXT self, EDA_IU_SCALE aIuScale, wxString aText=wxEmptyString) -> EDA_TEXT
2489 __init__(EDA_TEXT self, EDA_TEXT aText) -> EDA_TEXT
2490 """
2491 _pcbnew.EDA_TEXT_swiginit(self, _pcbnew.new_EDA_TEXT(*args))
2492 __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2493
2494 def Serialize(self, aContainer):
2495 r"""Serialize(EDA_TEXT self, google::protobuf::Any & aContainer)"""
2496 return _pcbnew.EDA_TEXT_Serialize(self, aContainer)
2497
2498 def Deserialize(self, aContainer):
2499 r"""Deserialize(EDA_TEXT self, google::protobuf::Any const & aContainer) -> bool"""
2500 return _pcbnew.EDA_TEXT_Deserialize(self, aContainer)
2501
2502 def GetText(self):
2503 r"""GetText(EDA_TEXT self) -> wxString"""
2504 return _pcbnew.EDA_TEXT_GetText(self)
2505
2506 def GetShownText(self, aAllowExtraText, aDepth=0):
2507 r"""GetShownText(EDA_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
2508 return _pcbnew.EDA_TEXT_GetShownText(self, aAllowExtraText, aDepth)
2509
2510 def HasTextVars(self):
2511 r"""HasTextVars(EDA_TEXT self) -> bool"""
2512 return _pcbnew.EDA_TEXT_HasTextVars(self)
2513
2514 def SetText(self, aText):
2515 r"""SetText(EDA_TEXT self, wxString aText)"""
2516 return _pcbnew.EDA_TEXT_SetText(self, aText)
2517
2518 def SetTextThickness(self, aWidth):
2519 r"""SetTextThickness(EDA_TEXT self, int aWidth)"""
2520 return _pcbnew.EDA_TEXT_SetTextThickness(self, aWidth)
2521
2523 r"""GetTextThickness(EDA_TEXT self) -> int"""
2524 return _pcbnew.EDA_TEXT_GetTextThickness(self)
2525
2526 def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0):
2527 r"""GetEffectiveTextPenWidth(EDA_TEXT self, int aDefaultPenWidth=0) -> int"""
2528 return _pcbnew.EDA_TEXT_GetEffectiveTextPenWidth(self, aDefaultPenWidth)
2529
2530 def SetTextAngle(self, aAngle):
2531 r"""SetTextAngle(EDA_TEXT self, EDA_ANGLE aAngle)"""
2532 return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2533
2534 def GetTextAngle(self):
2535 r"""GetTextAngle(EDA_TEXT self) -> EDA_ANGLE"""
2536 return _pcbnew.EDA_TEXT_GetTextAngle(self)
2537
2538 def SetTextAngleDegrees(self, aOrientation):
2539 r"""SetTextAngleDegrees(EDA_TEXT self, double aOrientation)"""
2540 return _pcbnew.EDA_TEXT_SetTextAngleDegrees(self, aOrientation)
2541
2543 r"""GetTextAngleDegrees(EDA_TEXT self) -> double"""
2544 return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2545
2546 def SetItalic(self, aItalic):
2547 r"""SetItalic(EDA_TEXT self, bool aItalic)"""
2548 return _pcbnew.EDA_TEXT_SetItalic(self, aItalic)
2549
2550 def SetItalicFlag(self, aItalic):
2551 r"""SetItalicFlag(EDA_TEXT self, bool aItalic)"""
2552 return _pcbnew.EDA_TEXT_SetItalicFlag(self, aItalic)
2553
2554 def IsItalic(self):
2555 r"""IsItalic(EDA_TEXT self) -> bool"""
2556 return _pcbnew.EDA_TEXT_IsItalic(self)
2557
2558 def SetBold(self, aBold):
2559 r"""SetBold(EDA_TEXT self, bool aBold)"""
2560 return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2561
2562 def SetBoldFlag(self, aBold):
2563 r"""SetBoldFlag(EDA_TEXT self, bool aBold)"""
2564 return _pcbnew.EDA_TEXT_SetBoldFlag(self, aBold)
2565
2566 def IsBold(self):
2567 r"""IsBold(EDA_TEXT self) -> bool"""
2568 return _pcbnew.EDA_TEXT_IsBold(self)
2569
2570 def SetVisible(self, aVisible):
2571 r"""SetVisible(EDA_TEXT self, bool aVisible)"""
2572 return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2573
2574 def IsVisible(self):
2575 r"""IsVisible(EDA_TEXT self) -> bool"""
2576 return _pcbnew.EDA_TEXT_IsVisible(self)
2577
2578 def SetMirrored(self, isMirrored):
2579 r"""SetMirrored(EDA_TEXT self, bool isMirrored)"""
2580 return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2581
2582 def IsMirrored(self):
2583 r"""IsMirrored(EDA_TEXT self) -> bool"""
2584 return _pcbnew.EDA_TEXT_IsMirrored(self)
2585
2586 def SetMultilineAllowed(self, aAllow):
2587 r"""SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2588 return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2589
2591 r"""IsMultilineAllowed(EDA_TEXT self) -> bool"""
2592 return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2593
2594 def SetHorizJustify(self, aType):
2595 r"""SetHorizJustify(EDA_TEXT self, GR_TEXT_H_ALIGN_T aType)"""
2596 return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2597
2599 r"""GetHorizJustify(EDA_TEXT self) -> GR_TEXT_H_ALIGN_T"""
2600 return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2601
2602 def SetVertJustify(self, aType):
2603 r"""SetVertJustify(EDA_TEXT self, GR_TEXT_V_ALIGN_T aType)"""
2604 return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2605
2607 r"""GetVertJustify(EDA_TEXT self) -> GR_TEXT_V_ALIGN_T"""
2608 return _pcbnew.EDA_TEXT_GetVertJustify(self)
2609
2610 def SetKeepUpright(self, aKeepUpright):
2611 r"""SetKeepUpright(EDA_TEXT self, bool aKeepUpright)"""
2612 return _pcbnew.EDA_TEXT_SetKeepUpright(self, aKeepUpright)
2613
2614 def IsKeepUpright(self):
2615 r"""IsKeepUpright(EDA_TEXT self) -> bool"""
2616 return _pcbnew.EDA_TEXT_IsKeepUpright(self)
2617
2618 def FlipHJustify(self):
2619 r"""FlipHJustify(EDA_TEXT self)"""
2620 return _pcbnew.EDA_TEXT_FlipHJustify(self)
2621
2622 def SwapAttributes(self, aTradingPartner):
2623 r"""SwapAttributes(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2624 return _pcbnew.EDA_TEXT_SwapAttributes(self, aTradingPartner)
2625
2626 def SwapText(self, aTradingPartner):
2627 r"""SwapText(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2628 return _pcbnew.EDA_TEXT_SwapText(self, aTradingPartner)
2629
2630 def CopyText(self, aSrc):
2631 r"""CopyText(EDA_TEXT self, EDA_TEXT aSrc)"""
2632 return _pcbnew.EDA_TEXT_CopyText(self, aSrc)
2633
2634 def SetAttributes(self, *args):
2635 r"""
2636 SetAttributes(EDA_TEXT self, EDA_TEXT aSrc, bool aSetPosition=True)
2637 SetAttributes(EDA_TEXT self, TEXT_ATTRIBUTES aTextAttrs)
2638 """
2639 return _pcbnew.EDA_TEXT_SetAttributes(self, *args)
2640
2641 def GetAttributes(self):
2642 r"""GetAttributes(EDA_TEXT self) -> TEXT_ATTRIBUTES"""
2643 return _pcbnew.EDA_TEXT_GetAttributes(self)
2644
2645 def Replace(self, aSearchData):
2646 r"""Replace(EDA_TEXT self, EDA_SEARCH_DATA const & aSearchData) -> bool"""
2647 return _pcbnew.EDA_TEXT_Replace(self, aSearchData)
2648
2650 r"""IsDefaultFormatting(EDA_TEXT self) -> bool"""
2651 return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2652
2653 def SetFont(self, aFont):
2654 r"""SetFont(EDA_TEXT self, KIFONT::FONT * aFont)"""
2655 return _pcbnew.EDA_TEXT_SetFont(self, aFont)
2656
2657 def GetFont(self):
2658 r"""GetFont(EDA_TEXT self) -> KIFONT::FONT *"""
2659 return _pcbnew.EDA_TEXT_GetFont(self)
2660
2661 def AssignFont(self, aFont):
2662 r"""AssignFont(EDA_TEXT self, KIFONT::FONT * aFont)"""
2663 return _pcbnew.EDA_TEXT_AssignFont(self, aFont)
2664
2665 def GetFontName(self):
2666 r"""GetFontName(EDA_TEXT self) -> wxString"""
2667 return _pcbnew.EDA_TEXT_GetFontName(self)
2668
2669 def SetFontIndex(self, aIdx):
2670 r"""SetFontIndex(EDA_TEXT self, int aIdx)"""
2671 return _pcbnew.EDA_TEXT_SetFontIndex(self, aIdx)
2672
2673 def GetFontIndex(self):
2674 r"""GetFontIndex(EDA_TEXT self) -> int"""
2675 return _pcbnew.EDA_TEXT_GetFontIndex(self)
2676
2677 def SetLineSpacing(self, aLineSpacing):
2678 r"""SetLineSpacing(EDA_TEXT self, double aLineSpacing)"""
2679 return _pcbnew.EDA_TEXT_SetLineSpacing(self, aLineSpacing)
2680
2682 r"""GetLineSpacing(EDA_TEXT self) -> double"""
2683 return _pcbnew.EDA_TEXT_GetLineSpacing(self)
2684
2685 def SetTextSize(self, aNewSize, aEnforceMinTextSize=True):
2686 r"""SetTextSize(EDA_TEXT self, VECTOR2I aNewSize, bool aEnforceMinTextSize=True)"""
2687 return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize, aEnforceMinTextSize)
2688
2689 def GetTextSize(self):
2690 r"""GetTextSize(EDA_TEXT self) -> VECTOR2I"""
2691 return _pcbnew.EDA_TEXT_GetTextSize(self)
2692
2693 def SetTextWidth(self, aWidth):
2694 r"""SetTextWidth(EDA_TEXT self, int aWidth)"""
2695 return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2696
2697 def GetTextWidth(self):
2698 r"""GetTextWidth(EDA_TEXT self) -> int"""
2699 return _pcbnew.EDA_TEXT_GetTextWidth(self)
2700
2701 def SetTextHeight(self, aHeight):
2702 r"""SetTextHeight(EDA_TEXT self, int aHeight)"""
2703 return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2704
2705 def GetTextHeight(self):
2706 r"""GetTextHeight(EDA_TEXT self) -> int"""
2707 return _pcbnew.EDA_TEXT_GetTextHeight(self)
2708
2709 def SetTextColor(self, aColor):
2710 r"""SetTextColor(EDA_TEXT self, COLOR4D aColor)"""
2711 return _pcbnew.EDA_TEXT_SetTextColor(self, aColor)
2712
2713 def GetTextColor(self):
2714 r"""GetTextColor(EDA_TEXT self) -> COLOR4D"""
2715 return _pcbnew.EDA_TEXT_GetTextColor(self)
2716
2717 def SetTextPos(self, aPoint):
2718 r"""SetTextPos(EDA_TEXT self, VECTOR2I aPoint)"""
2719 return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2720
2721 def GetTextPos(self):
2722 r"""GetTextPos(EDA_TEXT self) -> VECTOR2I"""
2723 return _pcbnew.EDA_TEXT_GetTextPos(self)
2724
2725 def SetTextX(self, aX):
2726 r"""SetTextX(EDA_TEXT self, int aX)"""
2727 return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2728
2729 def SetTextY(self, aY):
2730 r"""SetTextY(EDA_TEXT self, int aY)"""
2731 return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2732
2733 def Offset(self, aOffset):
2734 r"""Offset(EDA_TEXT self, VECTOR2I aOffset)"""
2735 return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2736
2737 def Empty(self):
2738 r"""Empty(EDA_TEXT self)"""
2739 return _pcbnew.EDA_TEXT_Empty(self)
2740
2741 @staticmethod
2742 def MapHorizJustify(aHorizJustify):
2743 r"""MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
2744 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
2745
2746 @staticmethod
2747 def MapVertJustify(aVertJustify):
2748 r"""MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
2749 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
2750
2751 def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED):
2752 r"""Print(EDA_TEXT self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset, COLOR4D aColor, OUTLINE_MODE aDisplay_mode=FILLED)"""
2753 return _pcbnew.EDA_TEXT_Print(self, aSettings, aOffset, aColor, aDisplay_mode)
2754
2755 def GetEffectiveTextShape(self, *args):
2756 r"""GetEffectiveTextShape(EDA_TEXT self, bool aTriangulate=True, BOX2I aBBox=BOX2I(), EDA_ANGLE aAngle=ANGLE_0) -> std::shared_ptr< SHAPE_COMPOUND >"""
2757 return _pcbnew.EDA_TEXT_GetEffectiveTextShape(self, *args)
2758
2759 def TextHitTest(self, *args):
2760 r"""
2761 TextHitTest(EDA_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
2762 TextHitTest(EDA_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
2763 """
2764 return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
2765
2766 def GetTextBox(self, aLine=-1):
2767 r"""GetTextBox(EDA_TEXT self, int aLine=-1) -> BOX2I"""
2768 return _pcbnew.EDA_TEXT_GetTextBox(self, aLine)
2769
2770 def GetInterline(self):
2771 r"""GetInterline(EDA_TEXT self) -> int"""
2772 return _pcbnew.EDA_TEXT_GetInterline(self)
2773
2775 r"""GetTextStyleName(EDA_TEXT self) -> wxString"""
2776 return _pcbnew.EDA_TEXT_GetTextStyleName(self)
2777
2778 def GetLinePositions(self, aPositions, aLineCount):
2779 r"""GetLinePositions(EDA_TEXT self, VECTOR_VECTOR2I aPositions, int aLineCount)"""
2780 return _pcbnew.EDA_TEXT_GetLinePositions(self, aPositions, aLineCount)
2781
2782 def Levenshtein(self, aOther):
2783 r"""Levenshtein(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2784 return _pcbnew.EDA_TEXT_Levenshtein(self, aOther)
2785
2786 def Similarity(self, aOther):
2787 r"""Similarity(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2788 return _pcbnew.EDA_TEXT_Similarity(self, aOther)
2789
2790 def Format(self, aFormatter, aControlBits):
2791 r"""Format(EDA_TEXT self, OUTPUTFORMATTER aFormatter, int aControlBits)"""
2792 return _pcbnew.EDA_TEXT_Format(self, aFormatter, aControlBits)
2793
2795 r"""GetDrawRotation(EDA_TEXT self) -> EDA_ANGLE"""
2796 return _pcbnew.EDA_TEXT_GetDrawRotation(self)
2797
2798 def GetDrawPos(self):
2799 r"""GetDrawPos(EDA_TEXT self) -> VECTOR2I"""
2800 return _pcbnew.EDA_TEXT_GetDrawPos(self)
2801
2803 r"""ClearRenderCache(EDA_TEXT self)"""
2804 return _pcbnew.EDA_TEXT_ClearRenderCache(self)
2805
2807 r"""ClearBoundingBoxCache(EDA_TEXT self)"""
2808 return _pcbnew.EDA_TEXT_ClearBoundingBoxCache(self)
2809
2810 def GetRenderCache(self, *args):
2811 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 > > >"""
2812 return _pcbnew.EDA_TEXT_GetRenderCache(self, *args)
2813
2814 def SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset):
2815 r"""SetupRenderCache(EDA_TEXT self, wxString aResolvedText, KIFONT::FONT const * aFont, EDA_ANGLE aAngle, VECTOR2I aOffset)"""
2816 return _pcbnew.EDA_TEXT_SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset)
2817
2818 def AddRenderCacheGlyph(self, aPoly):
2819 r"""AddRenderCacheGlyph(EDA_TEXT self, SHAPE_POLY_SET aPoly)"""
2820 return _pcbnew.EDA_TEXT_AddRenderCacheGlyph(self, aPoly)
2821
2822 def Compare(self, aOther):
2823 r"""Compare(EDA_TEXT self, EDA_TEXT aOther) -> int"""
2824 return _pcbnew.EDA_TEXT_Compare(self, aOther)
2825
2826 def __eq__(self, aRhs):
2827 r"""__eq__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
2828 return _pcbnew.EDA_TEXT___eq__(self, aRhs)
2829
2830 def __lt__(self, aRhs):
2831 r"""__lt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
2832 return _pcbnew.EDA_TEXT___lt__(self, aRhs)
2833
2834 def __gt__(self, aRhs):
2835 r"""__gt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
2836 return _pcbnew.EDA_TEXT___gt__(self, aRhs)
2837
2838 def HasHyperlink(self):
2839 r"""HasHyperlink(EDA_TEXT self) -> bool"""
2840 return _pcbnew.EDA_TEXT_HasHyperlink(self)
2841
2842 def GetHyperlink(self):
2843 r"""GetHyperlink(EDA_TEXT self) -> wxString"""
2844 return _pcbnew.EDA_TEXT_GetHyperlink(self)
2845
2846 def SetHyperlink(self, aLink):
2847 r"""SetHyperlink(EDA_TEXT self, wxString aLink)"""
2848 return _pcbnew.EDA_TEXT_SetHyperlink(self, aLink)
2849
2851 r"""RemoveHyperlink(EDA_TEXT self)"""
2852 return _pcbnew.EDA_TEXT_RemoveHyperlink(self)
2853
2854 @staticmethod
2856 r"""ValidateHyperlink(wxString aURL) -> bool"""
2857 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
2858
2859 @staticmethod
2860 def IsGotoPageHref(aHref, aDestination=None):
2861 r"""IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
2862 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
2863
2864 @staticmethod
2865 def GotoPageHref(aDestination):
2866 r"""GotoPageHref(wxString aDestination) -> wxString"""
2867 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
2868
2869# Register EDA_TEXT in _pcbnew:
2870_pcbnew.EDA_TEXT_swigregister(EDA_TEXT)
2871
2873 r"""GetBuildVersion() -> wxString"""
2874 return _pcbnew.GetBuildVersion()
2875
2877 r"""GetBaseVersion() -> wxString"""
2878 return _pcbnew.GetBaseVersion()
2879
2881 r"""GetPlatformGetBitnessName() -> wxString"""
2882 return _pcbnew.GetPlatformGetBitnessName()
2883
2885 r"""GetSemanticVersion() -> wxString"""
2886 return _pcbnew.GetSemanticVersion()
2887
2889 r"""GetMajorMinorVersion() -> wxString"""
2890 return _pcbnew.GetMajorMinorVersion()
2891
2893 r"""GetMajorMinorPatchVersion() -> wxString"""
2894 return _pcbnew.GetMajorMinorPatchVersion()
2895
2897 r"""GetBuildDate() -> wxString"""
2898 return _pcbnew.GetBuildDate()
2899
2901 r"""GetCommitHash() -> wxString"""
2902 return _pcbnew.GetCommitHash()
2903
2905 r"""GetMajorMinorPatchTuple() -> std::tuple< int,int,int > const &"""
2906 return _pcbnew.GetMajorMinorPatchTuple()
2907
2909 r"""IsNightlyVersion() -> bool"""
2910 return _pcbnew.IsNightlyVersion()
2911
2912def SetOpenGLInfo(aRenderer, aVendor, aVersion):
2913 r"""SetOpenGLInfo(char const * aRenderer, char const * aVendor, char const * aVersion)"""
2914 return _pcbnew.SetOpenGLInfo(aRenderer, aVendor, aVersion)
2915
2916def GetVersionInfoData(aTitle, aHtml=False, aBrief=False):
2917 r"""GetVersionInfoData(wxString aTitle, bool aHtml=False, bool aBrief=False) -> wxString"""
2918 return _pcbnew.GetVersionInfoData(aTitle, aHtml, aBrief)
2919UNDEFINED_LAYER = _pcbnew.UNDEFINED_LAYER
2920
2921UNSELECTED_LAYER = _pcbnew.UNSELECTED_LAYER
2922
2923F_Cu = _pcbnew.F_Cu
2924
2925B_Cu = _pcbnew.B_Cu
2926
2927In1_Cu = _pcbnew.In1_Cu
2928
2929In2_Cu = _pcbnew.In2_Cu
2930
2931In3_Cu = _pcbnew.In3_Cu
2932
2933In4_Cu = _pcbnew.In4_Cu
2934
2935In5_Cu = _pcbnew.In5_Cu
2936
2937In6_Cu = _pcbnew.In6_Cu
2938
2939In7_Cu = _pcbnew.In7_Cu
2940
2941In8_Cu = _pcbnew.In8_Cu
2942
2943In9_Cu = _pcbnew.In9_Cu
2944
2945In10_Cu = _pcbnew.In10_Cu
2946
2947In11_Cu = _pcbnew.In11_Cu
2948
2949In12_Cu = _pcbnew.In12_Cu
2950
2951In13_Cu = _pcbnew.In13_Cu
2952
2953In14_Cu = _pcbnew.In14_Cu
2954
2955In15_Cu = _pcbnew.In15_Cu
2956
2957In16_Cu = _pcbnew.In16_Cu
2958
2959In17_Cu = _pcbnew.In17_Cu
2960
2961In18_Cu = _pcbnew.In18_Cu
2962
2963In19_Cu = _pcbnew.In19_Cu
2964
2965In20_Cu = _pcbnew.In20_Cu
2966
2967In21_Cu = _pcbnew.In21_Cu
2968
2969In22_Cu = _pcbnew.In22_Cu
2970
2971In23_Cu = _pcbnew.In23_Cu
2972
2973In24_Cu = _pcbnew.In24_Cu
2974
2975In25_Cu = _pcbnew.In25_Cu
2976
2977In26_Cu = _pcbnew.In26_Cu
2978
2979In27_Cu = _pcbnew.In27_Cu
2980
2981In28_Cu = _pcbnew.In28_Cu
2982
2983In29_Cu = _pcbnew.In29_Cu
2984
2985In30_Cu = _pcbnew.In30_Cu
2986
2987F_Mask = _pcbnew.F_Mask
2988
2989B_Mask = _pcbnew.B_Mask
2990
2991F_SilkS = _pcbnew.F_SilkS
2992
2993B_SilkS = _pcbnew.B_SilkS
2994
2995F_Adhes = _pcbnew.F_Adhes
2996
2997B_Adhes = _pcbnew.B_Adhes
2998
2999F_Paste = _pcbnew.F_Paste
3000
3001B_Paste = _pcbnew.B_Paste
3002
3003Dwgs_User = _pcbnew.Dwgs_User
3004
3005Cmts_User = _pcbnew.Cmts_User
3006
3007Eco1_User = _pcbnew.Eco1_User
3008
3009Eco2_User = _pcbnew.Eco2_User
3010
3011Edge_Cuts = _pcbnew.Edge_Cuts
3012
3013Margin = _pcbnew.Margin
3014
3015B_CrtYd = _pcbnew.B_CrtYd
3016
3017F_CrtYd = _pcbnew.F_CrtYd
3018
3019B_Fab = _pcbnew.B_Fab
3020
3021F_Fab = _pcbnew.F_Fab
3022
3023Rescue = _pcbnew.Rescue
3024
3025User_1 = _pcbnew.User_1
3026
3027User_2 = _pcbnew.User_2
3028
3029User_3 = _pcbnew.User_3
3030
3031User_4 = _pcbnew.User_4
3032
3033User_5 = _pcbnew.User_5
3034
3035User_6 = _pcbnew.User_6
3036
3037User_7 = _pcbnew.User_7
3038
3039User_8 = _pcbnew.User_8
3040
3041User_9 = _pcbnew.User_9
3042
3043PCB_LAYER_ID_COUNT = _pcbnew.PCB_LAYER_ID_COUNT
3044
3045MAX_CU_LAYERS = _pcbnew.MAX_CU_LAYERS
3046
3047FLASHING_DEFAULT = _pcbnew.FLASHING_DEFAULT
3048
3049FLASHING_ALWAYS_FLASHED = _pcbnew.FLASHING_ALWAYS_FLASHED
3050
3051FLASHING_NEVER_FLASHED = _pcbnew.FLASHING_NEVER_FLASHED
3052
3053NETNAMES_LAYER_ID_START = _pcbnew.NETNAMES_LAYER_ID_START
3054
3055NETNAMES_LAYER_ID_RESERVED = _pcbnew.NETNAMES_LAYER_ID_RESERVED
3056
3057LAYER_PAD_FR_NETNAMES = _pcbnew.LAYER_PAD_FR_NETNAMES
3058
3059LAYER_PAD_BK_NETNAMES = _pcbnew.LAYER_PAD_BK_NETNAMES
3060
3061LAYER_PAD_NETNAMES = _pcbnew.LAYER_PAD_NETNAMES
3062
3063NETNAMES_LAYER_ID_END = _pcbnew.NETNAMES_LAYER_ID_END
3064
3065GAL_UI_LAYER_COUNT = _pcbnew.GAL_UI_LAYER_COUNT
3066
3067GAL_LAYER_ID_START = _pcbnew.GAL_LAYER_ID_START
3068
3069LAYER_VIAS = _pcbnew.LAYER_VIAS
3070
3071LAYER_VIA_MICROVIA = _pcbnew.LAYER_VIA_MICROVIA
3072
3073LAYER_VIA_BBLIND = _pcbnew.LAYER_VIA_BBLIND
3074
3075LAYER_VIA_THROUGH = _pcbnew.LAYER_VIA_THROUGH
3076
3077LAYER_NON_PLATEDHOLES = _pcbnew.LAYER_NON_PLATEDHOLES
3078
3079LAYER_FP_TEXT = _pcbnew.LAYER_FP_TEXT
3080
3081LAYER_ANCHOR = _pcbnew.LAYER_ANCHOR
3082
3083LAYER_RATSNEST = _pcbnew.LAYER_RATSNEST
3084
3085LAYER_GRID = _pcbnew.LAYER_GRID
3086
3087LAYER_GRID_AXES = _pcbnew.LAYER_GRID_AXES
3088
3089LAYER_FOOTPRINTS_FR = _pcbnew.LAYER_FOOTPRINTS_FR
3090
3091LAYER_FOOTPRINTS_BK = _pcbnew.LAYER_FOOTPRINTS_BK
3092
3093LAYER_FP_VALUES = _pcbnew.LAYER_FP_VALUES
3094
3095LAYER_FP_REFERENCES = _pcbnew.LAYER_FP_REFERENCES
3096
3097LAYER_TRACKS = _pcbnew.LAYER_TRACKS
3098
3099LAYER_PAD_PLATEDHOLES = _pcbnew.LAYER_PAD_PLATEDHOLES
3100
3101LAYER_VIA_HOLES = _pcbnew.LAYER_VIA_HOLES
3102
3103LAYER_DRC_ERROR = _pcbnew.LAYER_DRC_ERROR
3104
3105LAYER_DRAWINGSHEET = _pcbnew.LAYER_DRAWINGSHEET
3106
3107LAYER_GP_OVERLAY = _pcbnew.LAYER_GP_OVERLAY
3108
3109LAYER_SELECT_OVERLAY = _pcbnew.LAYER_SELECT_OVERLAY
3110
3111LAYER_PCB_BACKGROUND = _pcbnew.LAYER_PCB_BACKGROUND
3112
3113LAYER_CURSOR = _pcbnew.LAYER_CURSOR
3114
3115LAYER_AUX_ITEMS = _pcbnew.LAYER_AUX_ITEMS
3116
3117LAYER_DRAW_BITMAPS = _pcbnew.LAYER_DRAW_BITMAPS
3118
3119GAL_LAYER_ID_BITMASK_END = _pcbnew.GAL_LAYER_ID_BITMASK_END
3120
3121LAYER_PADS = _pcbnew.LAYER_PADS
3122
3123LAYER_ZONES = _pcbnew.LAYER_ZONES
3124
3125LAYER_PAD_HOLEWALLS = _pcbnew.LAYER_PAD_HOLEWALLS
3126
3127LAYER_VIA_HOLEWALLS = _pcbnew.LAYER_VIA_HOLEWALLS
3128
3129LAYER_DRC_WARNING = _pcbnew.LAYER_DRC_WARNING
3130
3131LAYER_DRC_EXCLUSION = _pcbnew.LAYER_DRC_EXCLUSION
3132
3133LAYER_MARKER_SHADOWS = _pcbnew.LAYER_MARKER_SHADOWS
3134
3135LAYER_LOCKED_ITEM_SHADOW = _pcbnew.LAYER_LOCKED_ITEM_SHADOW
3136
3137LAYER_CONFLICTS_SHADOW = _pcbnew.LAYER_CONFLICTS_SHADOW
3138
3139LAYER_SHAPES = _pcbnew.LAYER_SHAPES
3140
3141LAYER_DRC_SHAPE1 = _pcbnew.LAYER_DRC_SHAPE1
3142
3143LAYER_DRC_SHAPE2 = _pcbnew.LAYER_DRC_SHAPE2
3144
3145LAYER_DRAWINGSHEET_PAGE1 = _pcbnew.LAYER_DRAWINGSHEET_PAGE1
3146
3147LAYER_DRAWINGSHEET_PAGEn = _pcbnew.LAYER_DRAWINGSHEET_PAGEn
3148
3149LAYER_PAGE_LIMITS = _pcbnew.LAYER_PAGE_LIMITS
3150
3151LAYER_ZONE_START = _pcbnew.LAYER_ZONE_START
3152
3153LAYER_ZONE_END = _pcbnew.LAYER_ZONE_END
3154
3155LAYER_BITMAP_START = _pcbnew.LAYER_BITMAP_START
3156
3157LAYER_BITMAP_END = _pcbnew.LAYER_BITMAP_END
3158
3159LAYER_UI_START = _pcbnew.LAYER_UI_START
3160
3161LAYER_UI_END = _pcbnew.LAYER_UI_END
3162
3163GAL_LAYER_ID_END = _pcbnew.GAL_LAYER_ID_END
3164
3165
3166def ToGalLayer(aInteger):
3167 r"""ToGalLayer(int aInteger) -> GAL_LAYER_ID"""
3168 return _pcbnew.ToGalLayer(aInteger)
3170 r"""Proxy of C++ GAL_SET class."""
3171
3172 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3173 __repr__ = _swig_repr
3174
3175 def __init__(self, *args):
3176 r"""
3177 __init__(GAL_SET self) -> GAL_SET
3178 __init__(GAL_SET self, GAL_SET aOther) -> GAL_SET
3179 __init__(GAL_SET self, GAL_LAYER_ID const * aArray, unsigned int aCount) -> GAL_SET
3180 """
3181 _pcbnew.GAL_SET_swiginit(self, _pcbnew.new_GAL_SET(*args))
3182
3183 def set(self, *args):
3184 r"""
3185 set(GAL_SET self) -> GAL_SET
3186 set(GAL_SET self, int aPos, bool aVal=True) -> GAL_SET
3187 set(GAL_SET self, GAL_LAYER_ID aPos, bool aVal=True) -> GAL_SET
3188 """
3189 return _pcbnew.GAL_SET_set(self, *args)
3190
3191 def Contains(self, aPos):
3192 r"""Contains(GAL_SET self, GAL_LAYER_ID aPos) -> bool"""
3193 return _pcbnew.GAL_SET_Contains(self, aPos)
3194
3195 def Seq(self):
3196 r"""Seq(GAL_SET self) -> std::vector< GAL_LAYER_ID,std::allocator< GAL_LAYER_ID > >"""
3197 return _pcbnew.GAL_SET_Seq(self)
3198
3199 @staticmethod
3201 r"""DefaultVisible() -> GAL_SET"""
3202 return _pcbnew.GAL_SET_DefaultVisible()
3203 __swig_destroy__ = _pcbnew.delete_GAL_SET
3204
3205# Register GAL_SET in _pcbnew:
3206_pcbnew.GAL_SET_swigregister(GAL_SET)
3207PCBNEW_LAYER_ID_START = cvar.PCBNEW_LAYER_ID_START
3208GAL_LAYER_ID_COUNT = cvar.GAL_LAYER_ID_COUNT
3209
3210SCH_LAYER_ID_START = _pcbnew.SCH_LAYER_ID_START
3211
3212LAYER_WIRE = _pcbnew.LAYER_WIRE
3213
3214LAYER_BUS = _pcbnew.LAYER_BUS
3215
3216LAYER_JUNCTION = _pcbnew.LAYER_JUNCTION
3217
3218LAYER_LOCLABEL = _pcbnew.LAYER_LOCLABEL
3219
3220LAYER_GLOBLABEL = _pcbnew.LAYER_GLOBLABEL
3221
3222LAYER_HIERLABEL = _pcbnew.LAYER_HIERLABEL
3223
3224LAYER_PINNUM = _pcbnew.LAYER_PINNUM
3225
3226LAYER_PINNAM = _pcbnew.LAYER_PINNAM
3227
3228LAYER_REFERENCEPART = _pcbnew.LAYER_REFERENCEPART
3229
3230LAYER_VALUEPART = _pcbnew.LAYER_VALUEPART
3231
3232LAYER_FIELDS = _pcbnew.LAYER_FIELDS
3233
3234LAYER_INTERSHEET_REFS = _pcbnew.LAYER_INTERSHEET_REFS
3235
3236LAYER_NETCLASS_REFS = _pcbnew.LAYER_NETCLASS_REFS
3237
3238LAYER_RULE_AREAS = _pcbnew.LAYER_RULE_AREAS
3239
3240LAYER_DEVICE = _pcbnew.LAYER_DEVICE
3241
3242LAYER_NOTES = _pcbnew.LAYER_NOTES
3243
3244LAYER_PRIVATE_NOTES = _pcbnew.LAYER_PRIVATE_NOTES
3245
3246LAYER_NOTES_BACKGROUND = _pcbnew.LAYER_NOTES_BACKGROUND
3247
3248LAYER_PIN = _pcbnew.LAYER_PIN
3249
3250LAYER_SHEET = _pcbnew.LAYER_SHEET
3251
3252LAYER_SHEETNAME = _pcbnew.LAYER_SHEETNAME
3253
3254LAYER_SHEETFILENAME = _pcbnew.LAYER_SHEETFILENAME
3255
3256LAYER_SHEETFIELDS = _pcbnew.LAYER_SHEETFIELDS
3257
3258LAYER_SHEETLABEL = _pcbnew.LAYER_SHEETLABEL
3259
3260LAYER_NOCONNECT = _pcbnew.LAYER_NOCONNECT
3261
3262LAYER_DANGLING = _pcbnew.LAYER_DANGLING
3263
3264LAYER_DNP_MARKER = _pcbnew.LAYER_DNP_MARKER
3265
3266LAYER_ERC_WARN = _pcbnew.LAYER_ERC_WARN
3267
3268LAYER_ERC_ERR = _pcbnew.LAYER_ERC_ERR
3269
3270LAYER_ERC_EXCLUSION = _pcbnew.LAYER_ERC_EXCLUSION
3271
3272LAYER_EXCLUDED_FROM_SIM = _pcbnew.LAYER_EXCLUDED_FROM_SIM
3273
3274LAYER_DEVICE_BACKGROUND = _pcbnew.LAYER_DEVICE_BACKGROUND
3275
3276LAYER_SHEET_BACKGROUND = _pcbnew.LAYER_SHEET_BACKGROUND
3277
3278LAYER_SCHEMATIC_GRID = _pcbnew.LAYER_SCHEMATIC_GRID
3279
3280LAYER_SCHEMATIC_GRID_AXES = _pcbnew.LAYER_SCHEMATIC_GRID_AXES
3281
3282LAYER_SCHEMATIC_BACKGROUND = _pcbnew.LAYER_SCHEMATIC_BACKGROUND
3283
3284LAYER_SCHEMATIC_CURSOR = _pcbnew.LAYER_SCHEMATIC_CURSOR
3285
3286LAYER_HOVERED = _pcbnew.LAYER_HOVERED
3287
3288LAYER_BRIGHTENED = _pcbnew.LAYER_BRIGHTENED
3289
3290LAYER_HIDDEN = _pcbnew.LAYER_HIDDEN
3291
3292LAYER_NET_COLOR_HIGHLIGHT = _pcbnew.LAYER_NET_COLOR_HIGHLIGHT
3293
3294LAYER_SELECTION_SHADOWS = _pcbnew.LAYER_SELECTION_SHADOWS
3295
3296LAYER_SCHEMATIC_DRAWINGSHEET = _pcbnew.LAYER_SCHEMATIC_DRAWINGSHEET
3297
3298LAYER_SCHEMATIC_PAGE_LIMITS = _pcbnew.LAYER_SCHEMATIC_PAGE_LIMITS
3299
3300LAYER_BUS_JUNCTION = _pcbnew.LAYER_BUS_JUNCTION
3301
3302LAYER_SCHEMATIC_AUX_ITEMS = _pcbnew.LAYER_SCHEMATIC_AUX_ITEMS
3303
3304LAYER_SCHEMATIC_ANCHOR = _pcbnew.LAYER_SCHEMATIC_ANCHOR
3305
3306LAYER_OP_VOLTAGES = _pcbnew.LAYER_OP_VOLTAGES
3307
3308LAYER_OP_CURRENTS = _pcbnew.LAYER_OP_CURRENTS
3309
3310SCH_LAYER_ID_END = _pcbnew.SCH_LAYER_ID_END
3311
3312GERBVIEW_LAYER_ID_START = _pcbnew.GERBVIEW_LAYER_ID_START
3313
3314GERBVIEW_LAYER_ID_RESERVED = _pcbnew.GERBVIEW_LAYER_ID_RESERVED
3315
3316LAYER_DCODES = _pcbnew.LAYER_DCODES
3317
3318LAYER_NEGATIVE_OBJECTS = _pcbnew.LAYER_NEGATIVE_OBJECTS
3319
3320LAYER_GERBVIEW_GRID = _pcbnew.LAYER_GERBVIEW_GRID
3321
3322LAYER_GERBVIEW_AXES = _pcbnew.LAYER_GERBVIEW_AXES
3323
3324LAYER_GERBVIEW_BACKGROUND = _pcbnew.LAYER_GERBVIEW_BACKGROUND
3325
3326LAYER_GERBVIEW_DRAWINGSHEET = _pcbnew.LAYER_GERBVIEW_DRAWINGSHEET
3327
3328LAYER_GERBVIEW_PAGE_LIMITS = _pcbnew.LAYER_GERBVIEW_PAGE_LIMITS
3329
3330GERBVIEW_LAYER_ID_END = _pcbnew.GERBVIEW_LAYER_ID_END
3331
3332LAYER_3D_START = _pcbnew.LAYER_3D_START
3333
3334LAYER_3D_BACKGROUND_BOTTOM = _pcbnew.LAYER_3D_BACKGROUND_BOTTOM
3335
3336LAYER_3D_BACKGROUND_TOP = _pcbnew.LAYER_3D_BACKGROUND_TOP
3337
3338LAYER_3D_BOARD = _pcbnew.LAYER_3D_BOARD
3339
3340LAYER_3D_COPPER_TOP = _pcbnew.LAYER_3D_COPPER_TOP
3341
3342LAYER_3D_COPPER_BOTTOM = _pcbnew.LAYER_3D_COPPER_BOTTOM
3343
3344LAYER_3D_SILKSCREEN_BOTTOM = _pcbnew.LAYER_3D_SILKSCREEN_BOTTOM
3345
3346LAYER_3D_SILKSCREEN_TOP = _pcbnew.LAYER_3D_SILKSCREEN_TOP
3347
3348LAYER_3D_SOLDERMASK_BOTTOM = _pcbnew.LAYER_3D_SOLDERMASK_BOTTOM
3349
3350LAYER_3D_SOLDERMASK_TOP = _pcbnew.LAYER_3D_SOLDERMASK_TOP
3351
3352LAYER_3D_SOLDERPASTE = _pcbnew.LAYER_3D_SOLDERPASTE
3353
3354LAYER_3D_ADHESIVE = _pcbnew.LAYER_3D_ADHESIVE
3355
3356LAYER_3D_USER_COMMENTS = _pcbnew.LAYER_3D_USER_COMMENTS
3357
3358LAYER_3D_USER_DRAWINGS = _pcbnew.LAYER_3D_USER_DRAWINGS
3359
3360LAYER_3D_USER_ECO1 = _pcbnew.LAYER_3D_USER_ECO1
3361
3362LAYER_3D_USER_ECO2 = _pcbnew.LAYER_3D_USER_ECO2
3363
3364LAYER_3D_TH_MODELS = _pcbnew.LAYER_3D_TH_MODELS
3365
3366LAYER_3D_SMD_MODELS = _pcbnew.LAYER_3D_SMD_MODELS
3367
3368LAYER_3D_VIRTUAL_MODELS = _pcbnew.LAYER_3D_VIRTUAL_MODELS
3369
3370LAYER_3D_MODELS_NOT_IN_POS = _pcbnew.LAYER_3D_MODELS_NOT_IN_POS
3371
3372LAYER_3D_MODELS_MARKED_DNP = _pcbnew.LAYER_3D_MODELS_MARKED_DNP
3373
3374LAYER_3D_AXES = _pcbnew.LAYER_3D_AXES
3375
3376LAYER_3D_BOUNDING_BOXES = _pcbnew.LAYER_3D_BOUNDING_BOXES
3377
3378LAYER_3D_OFF_BOARD_SILK = _pcbnew.LAYER_3D_OFF_BOARD_SILK
3379
3380LAYER_3D_END = _pcbnew.LAYER_3D_END
3381
3382
3383def LayerName(aLayer):
3384 r"""LayerName(int aLayer) -> wxString"""
3385 return _pcbnew.LayerName(aLayer)
3386
3387def IsValidLayer(aLayerId):
3388 r"""IsValidLayer(int aLayerId) -> bool"""
3389 return _pcbnew.IsValidLayer(aLayerId)
3390
3391def IsPcbLayer(aLayer):
3392 r"""IsPcbLayer(int aLayer) -> bool"""
3393 return _pcbnew.IsPcbLayer(aLayer)
3394
3396 r"""IsExternalCopperLayer(int aLayerId) -> bool"""
3397 return _pcbnew.IsExternalCopperLayer(aLayerId)
3398
3400 r"""IsInnerCopperLayer(int aLayerId) -> bool"""
3401 return _pcbnew.IsInnerCopperLayer(aLayerId)
3402
3403def IsNonCopperLayer(aLayerId):
3404 r"""IsNonCopperLayer(int aLayerId) -> bool"""
3405 return _pcbnew.IsNonCopperLayer(aLayerId)
3406
3407def IsCopperLayer(*args):
3408 r"""
3409 IsCopperLayer(int aLayerId) -> bool
3410 IsCopperLayer(int aLayerId, bool aIncludeSyntheticCopperLayers) -> bool
3411 """
3412 return _pcbnew.IsCopperLayer(*args)
3413
3414def IsViaPadLayer(aLayer):
3415 r"""IsViaPadLayer(int aLayer) -> bool"""
3416 return _pcbnew.IsViaPadLayer(aLayer)
3417
3418def IsHoleLayer(aLayer):
3419 r"""IsHoleLayer(int aLayer) -> bool"""
3420 return _pcbnew.IsHoleLayer(aLayer)
3421
3423 r"""IsSolderMaskLayer(int aLayer) -> bool"""
3424 return _pcbnew.IsSolderMaskLayer(aLayer)
3425
3426def IsUserLayer(aLayerId):
3427 r"""IsUserLayer(PCB_LAYER_ID aLayerId) -> bool"""
3428 return _pcbnew.IsUserLayer(aLayerId)
3429
3430def IsFrontLayer(aLayerId):
3431 r"""IsFrontLayer(PCB_LAYER_ID aLayerId) -> bool"""
3432 return _pcbnew.IsFrontLayer(aLayerId)
3433
3434def IsBackLayer(aLayerId):
3435 r"""IsBackLayer(PCB_LAYER_ID aLayerId) -> bool"""
3436 return _pcbnew.IsBackLayer(aLayerId)
3437
3438def IsCopperLayerLowerThan(aLayerA, aLayerB):
3439 r"""IsCopperLayerLowerThan(PCB_LAYER_ID aLayerA, PCB_LAYER_ID aLayerB) -> bool"""
3440 return _pcbnew.IsCopperLayerLowerThan(aLayerA, aLayerB)
3441
3442def FlipLayer(aLayerId, aCopperLayersCount=0):
3443 r"""FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount=0) -> PCB_LAYER_ID"""
3444 return _pcbnew.FlipLayer(aLayerId, aCopperLayersCount)
3445
3447 r"""GetNetnameLayer(int aLayer) -> int"""
3448 return _pcbnew.GetNetnameLayer(aLayer)
3449
3450def IsNetnameLayer(aLayer):
3451 r"""IsNetnameLayer(int aLayer) -> bool"""
3452 return _pcbnew.IsNetnameLayer(aLayer)
3453
3455 r"""IsZoneFillLayer(int aLayer) -> bool"""
3456 return _pcbnew.IsZoneFillLayer(aLayer)
3457
3458def IsDCodeLayer(aLayer):
3459 r"""IsDCodeLayer(int aLayer) -> bool"""
3460 return _pcbnew.IsDCodeLayer(aLayer)
3461
3463 r"""CopperLayerToOrdinal(PCB_LAYER_ID aLayer) -> size_t"""
3464 return _pcbnew.CopperLayerToOrdinal(aLayer)
3465
3467 r"""BoardLayerFromLegacyId(int aLegacyId) -> PCB_LAYER_ID"""
3468 return _pcbnew.BoardLayerFromLegacyId(aLegacyId)
3469
3470def ToLAYER_ID(aLayer):
3471 r"""ToLAYER_ID(int aLayer) -> PCB_LAYER_ID"""
3472 return _pcbnew.ToLAYER_ID(aLayer)
3474 r"""Proxy of C++ SETTINGS_MANAGER class."""
3475
3476 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3477 __repr__ = _swig_repr
3478
3479 def __init__(self, aHeadless=False):
3480 r"""__init__(SETTINGS_MANAGER self, bool aHeadless=False) -> SETTINGS_MANAGER"""
3481 _pcbnew.SETTINGS_MANAGER_swiginit(self, _pcbnew.new_SETTINGS_MANAGER(aHeadless))
3482 __swig_destroy__ = _pcbnew.delete_SETTINGS_MANAGER
3483
3484 def IsOK(self):
3485 r"""IsOK(SETTINGS_MANAGER self) -> bool"""
3486 return _pcbnew.SETTINGS_MANAGER_IsOK(self)
3487
3488 def SetKiway(self, aKiway):
3489 r"""SetKiway(SETTINGS_MANAGER self, KIWAY * aKiway)"""
3490 return _pcbnew.SETTINGS_MANAGER_SetKiway(self, aKiway)
3491
3492 def Load(self, *args):
3493 r"""
3494 Load(SETTINGS_MANAGER self)
3495 Load(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
3496 """
3497 return _pcbnew.SETTINGS_MANAGER_Load(self, *args)
3498
3499 def Save(self, *args):
3500 r"""
3501 Save(SETTINGS_MANAGER self)
3502 Save(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
3503 """
3504 return _pcbnew.SETTINGS_MANAGER_Save(self, *args)
3505
3506 def FlushAndRelease(self, aSettings, aSave=True):
3507 r"""FlushAndRelease(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings, bool aSave=True)"""
3508 return _pcbnew.SETTINGS_MANAGER_FlushAndRelease(self, aSettings, aSave)
3509
3510 def GetColorSettings(self, *args):
3511 r"""GetColorSettings(SETTINGS_MANAGER self, wxString aName="user") -> COLOR_SETTINGS"""
3512 return _pcbnew.SETTINGS_MANAGER_GetColorSettings(self, *args)
3513
3515 r"""GetColorSettingsList(SETTINGS_MANAGER self) -> std::vector< COLOR_SETTINGS *,std::allocator< COLOR_SETTINGS * > >"""
3516 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsList(self)
3517
3518 def SaveColorSettings(self, *args):
3519 r"""SaveColorSettings(SETTINGS_MANAGER self, COLOR_SETTINGS * aSettings, string aNamespace="")"""
3520 return _pcbnew.SETTINGS_MANAGER_SaveColorSettings(self, *args)
3521
3522 def AddNewColorSettings(self, aFilename):
3523 r"""AddNewColorSettings(SETTINGS_MANAGER self, wxString aFilename) -> COLOR_SETTINGS *"""
3524 return _pcbnew.SETTINGS_MANAGER_AddNewColorSettings(self, aFilename)
3525
3527 r"""GetMigratedColorSettings(SETTINGS_MANAGER self) -> COLOR_SETTINGS *"""
3528 return _pcbnew.SETTINGS_MANAGER_GetMigratedColorSettings(self)
3529
3531 r"""GetCommonSettings(SETTINGS_MANAGER self) -> COMMON_SETTINGS *"""
3532 return _pcbnew.SETTINGS_MANAGER_GetCommonSettings(self)
3533
3534 def GetPathForSettingsFile(self, aSettings):
3535 r"""GetPathForSettingsFile(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings) -> wxString"""
3536 return _pcbnew.SETTINGS_MANAGER_GetPathForSettingsFile(self, aSettings)
3537
3539 r"""MigrateIfNeeded(SETTINGS_MANAGER self) -> bool"""
3540 return _pcbnew.SETTINGS_MANAGER_MigrateIfNeeded(self)
3541
3542 def SetMigrationSource(self, aSource):
3543 r"""SetMigrationSource(SETTINGS_MANAGER self, wxString aSource)"""
3544 return _pcbnew.SETTINGS_MANAGER_SetMigrationSource(self, aSource)
3545
3546 def SetMigrateLibraryTables(self, aMigrate=True):
3547 r"""SetMigrateLibraryTables(SETTINGS_MANAGER self, bool aMigrate=True)"""
3548 return _pcbnew.SETTINGS_MANAGER_SetMigrateLibraryTables(self, aMigrate)
3549
3550 def GetPreviousVersionPaths(self, aName=None):
3551 r"""GetPreviousVersionPaths(SETTINGS_MANAGER self, std::vector< wxString,std::allocator< wxString > > * aName=None) -> bool"""
3552 return _pcbnew.SETTINGS_MANAGER_GetPreviousVersionPaths(self, aName)
3553
3555 r"""ReloadColorSettings(SETTINGS_MANAGER self)"""
3556 return _pcbnew.SETTINGS_MANAGER_ReloadColorSettings(self)
3557
3558 def LoadProject(self, aFullPath, aSetActive=True):
3559 r"""LoadProject(SETTINGS_MANAGER self, wxString aFullPath, bool aSetActive=True) -> bool"""
3560 return _pcbnew.SETTINGS_MANAGER_LoadProject(self, aFullPath, aSetActive)
3561
3562 def UnloadProject(self, aProject, aSave=True):
3563 r"""UnloadProject(SETTINGS_MANAGER self, PROJECT * aProject, bool aSave=True) -> bool"""
3564 return _pcbnew.SETTINGS_MANAGER_UnloadProject(self, aProject, aSave)
3565
3566 def IsProjectOpen(self):
3567 r"""IsProjectOpen(SETTINGS_MANAGER self) -> bool"""
3568 return _pcbnew.SETTINGS_MANAGER_IsProjectOpen(self)
3569
3571 r"""IsProjectOpenNotDummy(SETTINGS_MANAGER self) -> bool"""
3572 return _pcbnew.SETTINGS_MANAGER_IsProjectOpenNotDummy(self)
3573
3574 def Prj(self):
3575 r"""Prj(SETTINGS_MANAGER self) -> PROJECT &"""
3576 return _pcbnew.SETTINGS_MANAGER_Prj(self)
3577
3578 def GetProject(self, aFullPath):
3579 r"""GetProject(SETTINGS_MANAGER self, wxString aFullPath) -> PROJECT *"""
3580 return _pcbnew.SETTINGS_MANAGER_GetProject(self, aFullPath)
3581
3583 r"""GetOpenProjects(SETTINGS_MANAGER self) -> std::vector< wxString,std::allocator< wxString > >"""
3584 return _pcbnew.SETTINGS_MANAGER_GetOpenProjects(self)
3585
3586 def SaveProject(self, *args):
3587 r"""SaveProject(SETTINGS_MANAGER self, wxString aFullPath=wxEmptyString, PROJECT * aProject=None) -> bool"""
3588 return _pcbnew.SETTINGS_MANAGER_SaveProject(self, *args)
3589
3590 def SaveProjectAs(self, aFullPath, aProject=None):
3591 r"""SaveProjectAs(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
3592 return _pcbnew.SETTINGS_MANAGER_SaveProjectAs(self, aFullPath, aProject)
3593
3594 def SaveProjectCopy(self, aFullPath, aProject=None):
3595 r"""SaveProjectCopy(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
3596 return _pcbnew.SETTINGS_MANAGER_SaveProjectCopy(self, aFullPath, aProject)
3597
3599 r"""GetProjectBackupsPath(SETTINGS_MANAGER self) -> wxString"""
3600 return _pcbnew.SETTINGS_MANAGER_GetProjectBackupsPath(self)
3601
3602 def BackupProject(self, aReporter, aTarget):
3603 r"""BackupProject(SETTINGS_MANAGER self, REPORTER & aReporter, wxFileName & aTarget) -> bool"""
3604 return _pcbnew.SETTINGS_MANAGER_BackupProject(self, aReporter, aTarget)
3605
3606 def TriggerBackupIfNeeded(self, aReporter):
3607 r"""TriggerBackupIfNeeded(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
3608 return _pcbnew.SETTINGS_MANAGER_TriggerBackupIfNeeded(self, aReporter)
3609
3610 @staticmethod
3612 r"""IsSettingsPathValid(wxString aPath) -> bool"""
3613 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
3614
3615 @staticmethod
3617 r"""GetColorSettingsPath() -> wxString"""
3618 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
3619
3620 @staticmethod
3622 r"""GetSettingsVersion() -> string"""
3623 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
3624
3625 @staticmethod
3627 r"""GetUserSettingsPath() -> wxString"""
3628 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
3629
3630# Register SETTINGS_MANAGER in _pcbnew:
3631_pcbnew.SETTINGS_MANAGER_swigregister(SETTINGS_MANAGER)
3633 r"""Proxy of C++ UTILS_BOX3D class."""
3634
3635 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3636 __repr__ = _swig_repr
3637
3638 def Min(self):
3639 r"""Min(UTILS_BOX3D self) -> VECTOR3D"""
3640 return _pcbnew.UTILS_BOX3D_Min(self)
3641
3642 def Max(self):
3643 r"""Max(UTILS_BOX3D self) -> VECTOR3D"""
3644 return _pcbnew.UTILS_BOX3D_Max(self)
3645
3646 def GetCenter(self):
3647 r"""GetCenter(UTILS_BOX3D self) -> VECTOR3D"""
3648 return _pcbnew.UTILS_BOX3D_GetCenter(self)
3649
3650 def GetSize(self):
3651 r"""GetSize(UTILS_BOX3D self) -> VECTOR3D"""
3652 return _pcbnew.UTILS_BOX3D_GetSize(self)
3653
3654 def __init__(self):
3655 r"""__init__(UTILS_BOX3D self) -> UTILS_BOX3D"""
3656 _pcbnew.UTILS_BOX3D_swiginit(self, _pcbnew.new_UTILS_BOX3D())
3657 __swig_destroy__ = _pcbnew.delete_UTILS_BOX3D
3658
3659# Register UTILS_BOX3D in _pcbnew:
3660_pcbnew.UTILS_BOX3D_swigregister(UTILS_BOX3D)
3662 r"""Proxy of C++ UTILS_STEP_MODEL class."""
3663
3664 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3665 __repr__ = _swig_repr
3666
3668 r"""GetBoundingBox(UTILS_STEP_MODEL self) -> UTILS_BOX3D"""
3669 return _pcbnew.UTILS_STEP_MODEL_GetBoundingBox(self)
3670
3671 def Translate(self, aX, aY, aZ):
3672 r"""Translate(UTILS_STEP_MODEL self, double aX, double aY, double aZ)"""
3673 return _pcbnew.UTILS_STEP_MODEL_Translate(self, aX, aY, aZ)
3674
3675 def Scale(self, aScale):
3676 r"""Scale(UTILS_STEP_MODEL self, double aScale)"""
3677 return _pcbnew.UTILS_STEP_MODEL_Scale(self, aScale)
3678
3679 def SaveSTEP(self, aFileName):
3680 r"""SaveSTEP(UTILS_STEP_MODEL self, wxString aFileName) -> bool"""
3681 return _pcbnew.UTILS_STEP_MODEL_SaveSTEP(self, aFileName)
3682
3683 @staticmethod
3684 def LoadSTEP(aFileName):
3685 r"""LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
3686 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
3687
3688 def __init__(self):
3689 r"""__init__(UTILS_STEP_MODEL self) -> UTILS_STEP_MODEL"""
3690 _pcbnew.UTILS_STEP_MODEL_swiginit(self, _pcbnew.new_UTILS_STEP_MODEL())
3691
3692# Register UTILS_STEP_MODEL in _pcbnew:
3693_pcbnew.UTILS_STEP_MODEL_swigregister(UTILS_STEP_MODEL)
3695 r"""Proxy of C++ std::vector< int > class."""
3696
3697 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3698 __repr__ = _swig_repr
3699
3700 def iterator(self):
3701 r"""iterator(intVector self) -> SwigPyIterator"""
3702 return _pcbnew.intVector_iterator(self)
3703 def __iter__(self):
3704 return self.iterator()
3705
3706 def __nonzero__(self):
3707 r"""__nonzero__(intVector self) -> bool"""
3708 return _pcbnew.intVector___nonzero__(self)
3709
3710 def __bool__(self):
3711 r"""__bool__(intVector self) -> bool"""
3712 return _pcbnew.intVector___bool__(self)
3713
3714 def __len__(self):
3715 r"""__len__(intVector self) -> std::vector< int >::size_type"""
3716 return _pcbnew.intVector___len__(self)
3717
3718 def __getslice__(self, i, j):
3719 r"""__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
3720 return _pcbnew.intVector___getslice__(self, i, j)
3721
3722 def __setslice__(self, *args):
3723 r"""
3724 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
3725 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
3726 """
3727 return _pcbnew.intVector___setslice__(self, *args)
3728
3729 def __delslice__(self, i, j):
3730 r"""__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
3731 return _pcbnew.intVector___delslice__(self, i, j)
3732
3733 def __delitem__(self, *args):
3734 r"""
3735 __delitem__(intVector self, std::vector< int >::difference_type i)
3736 __delitem__(intVector self, SWIGPY_SLICEOBJECT * slice)
3737 """
3738 return _pcbnew.intVector___delitem__(self, *args)
3739
3740 def __getitem__(self, *args):
3741 r"""
3742 __getitem__(intVector self, SWIGPY_SLICEOBJECT * slice) -> intVector
3743 __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
3744 """
3745 return _pcbnew.intVector___getitem__(self, *args)
3746
3747 def __setitem__(self, *args):
3748 r"""
3749 __setitem__(intVector self, SWIGPY_SLICEOBJECT * slice, intVector v)
3750 __setitem__(intVector self, SWIGPY_SLICEOBJECT * slice)
3751 __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
3752 """
3753 return _pcbnew.intVector___setitem__(self, *args)
3754
3755 def pop(self):
3756 r"""pop(intVector self) -> std::vector< int >::value_type"""
3757 return _pcbnew.intVector_pop(self)
3758
3759 def append(self, x):
3760 r"""append(intVector self, std::vector< int >::value_type const & x)"""
3761 return _pcbnew.intVector_append(self, x)
3762
3763 def empty(self):
3764 r"""empty(intVector self) -> bool"""
3765 return _pcbnew.intVector_empty(self)
3766
3767 def size(self):
3768 r"""size(intVector self) -> std::vector< int >::size_type"""
3769 return _pcbnew.intVector_size(self)
3770
3771 def swap(self, v):
3772 r"""swap(intVector self, intVector v)"""
3773 return _pcbnew.intVector_swap(self, v)
3774
3775 def begin(self):
3776 r"""begin(intVector self) -> std::vector< int >::iterator"""
3777 return _pcbnew.intVector_begin(self)
3778
3779 def end(self):
3780 r"""end(intVector self) -> std::vector< int >::iterator"""
3781 return _pcbnew.intVector_end(self)
3782
3783 def rbegin(self):
3784 r"""rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
3785 return _pcbnew.intVector_rbegin(self)
3786
3787 def rend(self):
3788 r"""rend(intVector self) -> std::vector< int >::reverse_iterator"""
3789 return _pcbnew.intVector_rend(self)
3790
3791 def clear(self):
3792 r"""clear(intVector self)"""
3793 return _pcbnew.intVector_clear(self)
3794
3795 def get_allocator(self):
3796 r"""get_allocator(intVector self) -> std::vector< int >::allocator_type"""
3797 return _pcbnew.intVector_get_allocator(self)
3798
3799 def pop_back(self):
3800 r"""pop_back(intVector self)"""
3801 return _pcbnew.intVector_pop_back(self)
3802
3803 def erase(self, *args):
3804 r"""
3805 erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
3806 erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
3807 """
3808 return _pcbnew.intVector_erase(self, *args)
3809
3810 def __init__(self, *args):
3811 r"""
3812 __init__(intVector self) -> intVector
3813 __init__(intVector self, intVector other) -> intVector
3814 __init__(intVector self, std::vector< int >::size_type size) -> intVector
3815 __init__(intVector self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
3816 """
3817 _pcbnew.intVector_swiginit(self, _pcbnew.new_intVector(*args))
3818
3819 def push_back(self, x):
3820 r"""push_back(intVector self, std::vector< int >::value_type const & x)"""
3821 return _pcbnew.intVector_push_back(self, x)
3822
3823 def front(self):
3824 r"""front(intVector self) -> std::vector< int >::value_type const &"""
3825 return _pcbnew.intVector_front(self)
3826
3827 def back(self):
3828 r"""back(intVector self) -> std::vector< int >::value_type const &"""
3829 return _pcbnew.intVector_back(self)
3830
3831 def assign(self, n, x):
3832 r"""assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
3833 return _pcbnew.intVector_assign(self, n, x)
3834
3835 def resize(self, *args):
3836 r"""
3837 resize(intVector self, std::vector< int >::size_type new_size)
3838 resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
3839 """
3840 return _pcbnew.intVector_resize(self, *args)
3841
3842 def insert(self, *args):
3843 r"""
3844 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
3845 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
3846 """
3847 return _pcbnew.intVector_insert(self, *args)
3848
3849 def reserve(self, n):
3850 r"""reserve(intVector self, std::vector< int >::size_type n)"""
3851 return _pcbnew.intVector_reserve(self, n)
3852
3853 def capacity(self):
3854 r"""capacity(intVector self) -> std::vector< int >::size_type"""
3855 return _pcbnew.intVector_capacity(self)
3856 __swig_destroy__ = _pcbnew.delete_intVector
3857
3858# Register intVector in _pcbnew:
3859_pcbnew.intVector_swigregister(intVector)
3861 r"""Proxy of C++ std::map< std::string,UTF8 > class."""
3862
3863 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3864 __repr__ = _swig_repr
3865
3866 def iterator(self):
3867 r"""iterator(str_utf8_Map self) -> SwigPyIterator"""
3868 return _pcbnew.str_utf8_Map_iterator(self)
3869 def __iter__(self):
3870 return self.iterator()
3871
3872 def __nonzero__(self):
3873 r"""__nonzero__(str_utf8_Map self) -> bool"""
3874 return _pcbnew.str_utf8_Map___nonzero__(self)
3875
3876 def __bool__(self):
3877 r"""__bool__(str_utf8_Map self) -> bool"""
3878 return _pcbnew.str_utf8_Map___bool__(self)
3879
3880 def __len__(self):
3881 r"""__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3882 return _pcbnew.str_utf8_Map___len__(self)
3883 def __iter__(self):
3884 return self.key_iterator()
3885 def iterkeys(self):
3886 return self.key_iterator()
3887 def itervalues(self):
3888 return self.value_iterator()
3889 def iteritems(self):
3890 return self.iterator()
3891
3892 def __getitem__(self, key):
3893 r"""__getitem__(str_utf8_Map self, string key) -> UTF8"""
3894 return _pcbnew.str_utf8_Map___getitem__(self, key)
3895
3896 def __delitem__(self, key):
3897 r"""__delitem__(str_utf8_Map self, string key)"""
3898 return _pcbnew.str_utf8_Map___delitem__(self, key)
3899
3900 def has_key(self, key):
3901 r"""has_key(str_utf8_Map self, string key) -> bool"""
3902 return _pcbnew.str_utf8_Map_has_key(self, key)
3903
3904 def keys(self):
3905 r"""keys(str_utf8_Map self) -> PyObject *"""
3906 return _pcbnew.str_utf8_Map_keys(self)
3907
3908 def values(self):
3909 r"""values(str_utf8_Map self) -> PyObject *"""
3910 return _pcbnew.str_utf8_Map_values(self)
3911
3912 def items(self):
3913 r"""items(str_utf8_Map self) -> PyObject *"""
3914 return _pcbnew.str_utf8_Map_items(self)
3915
3916 def __contains__(self, key):
3917 r"""__contains__(str_utf8_Map self, string key) -> bool"""
3918 return _pcbnew.str_utf8_Map___contains__(self, key)
3919
3920 def key_iterator(self):
3921 r"""key_iterator(str_utf8_Map self) -> SwigPyIterator"""
3922 return _pcbnew.str_utf8_Map_key_iterator(self)
3923
3925 r"""value_iterator(str_utf8_Map self) -> SwigPyIterator"""
3926 return _pcbnew.str_utf8_Map_value_iterator(self)
3927
3928 def __setitem__(self, *args):
3929 r"""
3930 __setitem__(str_utf8_Map self, string key)
3931 __setitem__(str_utf8_Map self, string key, UTF8 x)
3932 """
3933 return _pcbnew.str_utf8_Map___setitem__(self, *args)
3934
3935 def asdict(self):
3936 r"""asdict(str_utf8_Map self) -> PyObject *"""
3937 return _pcbnew.str_utf8_Map_asdict(self)
3938
3939 def __init__(self, *args):
3940 r"""
3941 __init__(str_utf8_Map self, std::less< std::basic_string< char,std::char_traits< char >,std::allocator< char > > > const & other) -> str_utf8_Map
3942 __init__(str_utf8_Map self) -> str_utf8_Map
3943 __init__(str_utf8_Map self, str_utf8_Map other) -> str_utf8_Map
3944 """
3945 _pcbnew.str_utf8_Map_swiginit(self, _pcbnew.new_str_utf8_Map(*args))
3946
3947 def empty(self):
3948 r"""empty(str_utf8_Map self) -> bool"""
3949 return _pcbnew.str_utf8_Map_empty(self)
3950
3951 def size(self):
3952 r"""size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3953 return _pcbnew.str_utf8_Map_size(self)
3954
3955 def swap(self, v):
3956 r"""swap(str_utf8_Map self, str_utf8_Map v)"""
3957 return _pcbnew.str_utf8_Map_swap(self, v)
3958
3959 def begin(self):
3960 r"""begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3961 return _pcbnew.str_utf8_Map_begin(self)
3962
3963 def end(self):
3964 r"""end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3965 return _pcbnew.str_utf8_Map_end(self)
3966
3967 def rbegin(self):
3968 r"""rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
3969 return _pcbnew.str_utf8_Map_rbegin(self)
3970
3971 def rend(self):
3972 r"""rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
3973 return _pcbnew.str_utf8_Map_rend(self)
3974
3975 def clear(self):
3976 r"""clear(str_utf8_Map self)"""
3977 return _pcbnew.str_utf8_Map_clear(self)
3978
3979 def get_allocator(self):
3980 r"""get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
3981 return _pcbnew.str_utf8_Map_get_allocator(self)
3982
3983 def count(self, x):
3984 r"""count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
3985 return _pcbnew.str_utf8_Map_count(self, x)
3986
3987 def erase(self, *args):
3988 r"""
3989 erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
3990 erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
3991 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)
3992 """
3993 return _pcbnew.str_utf8_Map_erase(self, *args)
3994
3995 def find(self, x):
3996 r"""find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
3997 return _pcbnew.str_utf8_Map_find(self, x)
3998
3999 def lower_bound(self, x):
4000 r"""lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4001 return _pcbnew.str_utf8_Map_lower_bound(self, x)
4002
4003 def upper_bound(self, x):
4004 r"""upper_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4005 return _pcbnew.str_utf8_Map_upper_bound(self, x)
4006 __swig_destroy__ = _pcbnew.delete_str_utf8_Map
4007
4008# Register str_utf8_Map in _pcbnew:
4009_pcbnew.str_utf8_Map_swigregister(str_utf8_Map)
4010
4011
4012KICAD_PLUGINS={} # the list of loaded footprint wizards
4013
4014""" the list of not loaded python scripts
4015 (usually because there is a syntax error in python script)
4016 this is the python script full filenames list.
4017 filenames are separated by '\n'
4018"""
4019NOT_LOADED_WIZARDS=""
4020
4021""" the list of paths used to search python scripts.
4022 Stored here to be displayed on request in Pcbnew
4023 paths are separated by '\n'
4024"""
4025PLUGIN_DIRECTORIES_SEARCH=""
4026
4027"""
4028 the trace of errors during execution of footprint wizards scripts
4029 Warning: strings (internally unicode) are returned as UTF-8 compatible C strings
4030"""
4031
4032FULL_BACK_TRACE=""
4033
4034def GetUnLoadableWizards():
4035 global NOT_LOADED_WIZARDS
4036 import sys
4037
4038 if sys.version_info[0] < 3:
4039 utf8_str = NOT_LOADED_WIZARDS.encode( 'UTF-8' )
4040 else:
4041 utf8_str = NOT_LOADED_WIZARDS
4042
4043 return utf8_str
4044
4046 global PLUGIN_DIRECTORIES_SEARCH
4047 import sys
4048
4049 if sys.version_info[0] < 3:
4050 utf8_str = PLUGIN_DIRECTORIES_SEARCH.encode( 'UTF-8' )
4051 else:
4052 utf8_str = PLUGIN_DIRECTORIES_SEARCH
4053
4054 return utf8_str
4055
4057 global FULL_BACK_TRACE # Already correct format
4058 return FULL_BACK_TRACE
4059
4060
4061def LoadPluginModule(Dirname, ModuleName, FileName):
4062 """
4063 Load the plugin module named ModuleName located in the folder Dirname.
4064 The module can be either inside a file called FileName or a subdirectory
4065 called FileName that contains a __init__.py file.
4066 If this module cannot be loaded, its name is stored in failed_wizards_list
4067 and the error trace is stored in FULL_BACK_TRACE
4068 """
4069 import os
4070 import sys
4071 import traceback
4072
4073 global NOT_LOADED_WIZARDS
4074 global FULL_BACK_TRACE
4075 global KICAD_PLUGINS
4076
4077 try: # If there is an error loading the script, skip it
4078
4079 module_filename = os.path.join( Dirname, FileName )
4080 mtime = os.path.getmtime( module_filename )
4081 mods_before = set( sys.modules )
4082
4083 if ModuleName in KICAD_PLUGINS:
4084 plugin = KICAD_PLUGINS[ModuleName]
4085
4086 for dependency in plugin["dependencies"]:
4087 if dependency in sys.modules:
4088 del sys.modules[dependency]
4089
4090 mods_before = set( sys.modules )
4091
4092 if sys.version_info >= (3,0,0):
4093 import importlib
4094 mod = importlib.import_module( ModuleName )
4095 else:
4096 mod = __import__( ModuleName, locals(), globals() )
4097
4098 mods_after = set( sys.modules ).difference( mods_before )
4099 dependencies = [m for m in mods_after if m.startswith(ModuleName)]
4100
4101 KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
4102 "modification_time":mtime,
4103 "ModuleName":mod,
4104 "dependencies": dependencies }
4105
4106 except:
4107 if ModuleName in KICAD_PLUGINS:
4108 del KICAD_PLUGINS[ModuleName]
4109
4110 if NOT_LOADED_WIZARDS != "" :
4111 NOT_LOADED_WIZARDS += "\n"
4112 NOT_LOADED_WIZARDS += module_filename
4113 FULL_BACK_TRACE += traceback.format_exc()
4114
4115
4116def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None):
4117 """
4118 Initialise Scripting/Plugin python environment and load plugins.
4119
4120 Arguments:
4121 Note: bundlepath and userpath are given utf8 encoded, to be compatible with asimple C string
4122 bundlepath -- The path to the bundled scripts.
4123 The bundled Plugins are relative to this path, in the
4124 "plugins" subdirectory.
4125 WARNING: bundlepath must use '/' as path separator, and not '\'
4126 because it creates issues:
4127 \n and \r are seen as a escaped seq when passing this string to this method
4128 I am thinking this is due to the fact LoadPlugins is called from C++ code by
4129 PyRun_SimpleString()
4130
4131 NOTE: These are all of the possible "default" search paths for kicad
4132 python scripts. These paths will ONLY be added to the python
4133 search path ONLY IF they already exist.
4134
4135 The Scripts bundled with the KiCad installation:
4136 <bundlepath>/
4137 <bundlepath>/plugins/
4138
4139 The Scripts relative to the KiCad Users configuration:
4140 <userpath>/
4141 <userpath>/plugins/
4142
4143 The plugins from 3rd party packages:
4144 $KICAD_3RD_PARTY/plugins/
4145 """
4146 import os
4147 import sys
4148 import traceback
4149 import pcbnew
4150
4151 if sys.version_info >= (3,3,0):
4152 import importlib
4153 importlib.invalidate_caches()
4154
4155 """
4156 bundlepath and userpath are strings utf-8 encoded (compatible "C" strings).
4157 So convert these utf8 encoding to unicode strings to avoid any encoding issue.
4158 """
4159 try:
4160 bundlepath = bundlepath.decode( 'UTF-8' )
4161 userpath = userpath.decode( 'UTF-8' )
4162 thirdpartypath = thirdpartypath.decode( 'UTF-8' )
4163 except AttributeError:
4164 pass
4165
4167 plugin_directories=[]
4168
4169 """
4170 To be consistent with others paths, on windows, convert the unix '/' separator
4171 to the windows separator, although using '/' works
4172 """
4173 if sys.platform.startswith('win32'):
4174 if bundlepath:
4175 bundlepath = bundlepath.replace("/","\\")
4176 if thirdpartypath:
4177 thirdpartypath = thirdpartypath.replace("/","\\")
4178
4179 if bundlepath:
4180 plugin_directories.append(bundlepath)
4181 plugin_directories.append(os.path.join(bundlepath, 'plugins'))
4182
4183 if config_path:
4184 plugin_directories.append(os.path.join(config_path, 'scripting'))
4185 plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
4186
4187 if userpath:
4188 plugin_directories.append(userpath)
4189 plugin_directories.append(os.path.join(userpath, 'plugins'))
4190
4191 if thirdpartypath:
4192 plugin_directories.append(thirdpartypath)
4193
4194 global PLUGIN_DIRECTORIES_SEARCH
4195 PLUGIN_DIRECTORIES_SEARCH=""
4196 for plugins_dir in plugin_directories: # save search path list for later use
4197 if PLUGIN_DIRECTORIES_SEARCH != "" :
4198 PLUGIN_DIRECTORIES_SEARCH += "\n"
4199 PLUGIN_DIRECTORIES_SEARCH += plugins_dir
4200
4201 global FULL_BACK_TRACE
4202 FULL_BACK_TRACE="" # clear any existing trace
4203
4204 global NOT_LOADED_WIZARDS
4205 NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
4206
4207 global KICAD_PLUGINS
4208
4209 for plugins_dir in plugin_directories:
4210 if not os.path.isdir( plugins_dir ):
4211 continue
4212
4213 if plugins_dir not in sys.path:
4214 sys.path.append( plugins_dir )
4215
4216 for module in os.listdir(plugins_dir):
4217 fullPath = os.path.join( plugins_dir, module )
4218
4219 if os.path.isdir( fullPath ):
4220 if os.path.exists( os.path.join( fullPath, '__init__.py' ) ):
4221 LoadPluginModule( plugins_dir, module, module )
4222 else:
4223 if NOT_LOADED_WIZARDS != "" :
4224 NOT_LOADED_WIZARDS += "\n"
4225 NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
4226 continue
4227
4228 if module == '__init__.py' or module[-3:] != '.py':
4229 continue
4230
4231 LoadPluginModule( plugins_dir, module[:-3], module )
4232
4233
4235 def __init__(self):
4236 pass
4237
4238 def register(self):
4239 import inspect
4240 import os
4241
4242 if isinstance(self,FilePlugin):
4243 pass # register to file plugins in C++
4244
4245 if isinstance(self,FootprintWizardPlugin):
4246 PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
4247 return
4248
4249 if isinstance(self,ActionPlugin):
4250 """
4251 Get path to .py or .pyc that has definition of plugin class.
4252 If path is binary but source also exists, assume definition is in source.
4253 """
4254 self.__plugin_path = inspect.getfile(self.__class__)
4255 if self.__plugin_path.endswith('.pyc') and os.path.isfile(self.__plugin_path[:-1]):
4256 self.__plugin_path = self.__plugin_path[:-1]
4257 self.__plugin_path = self.__plugin_path + '/' + self.__class__.__name__
4258 PYTHON_ACTION_PLUGINS.register_action(self)
4259 return
4260
4261 return
4262
4263 def deregister(self):
4264 if isinstance(self,FilePlugin):
4265 pass # deregister to file plugins in C++
4266
4267 if isinstance(self,FootprintWizardPlugin):
4268 PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
4269 return
4270
4271 if isinstance(self,ActionPlugin):
4272 PYTHON_ACTION_PLUGINS.deregister_action(self)
4273 return
4274
4275 return
4276
4277 def GetPluginPath( self ):
4278 return self.__plugin_path
4279
4280
4282 def __init__(self):
4283 KiCadPlugin.__init__(self)
4284
4285
4286from math import ceil, floor, sqrt
4287
4288uMM = "mm" # Millimetres
4289uMils = "mils" # Mils
4290uFloat = "float" # Natural number units (dimensionless)
4291uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
4292uBool = "bool" # Boolean value
4293uRadians = "radians" # Angular units (radians)
4294uDegrees = "degrees" # Angular units (degrees)
4295uPercent = "%" # Percent (0% -> 100%)
4296uString = "string" # Raw string
4297
4298uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
4299uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
4300
4302 _true = ['true','t','y','yes','on','1',1,]
4303 _false = ['false','f','n','no','off','0',0,'',None]
4304
4305 _bools = _true + _false
4306
4307 def __init__(self, page, name, units, default, **kwarg):
4308 self.page = page
4309 self.name = name
4310 self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
4311 self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
4312
4313 if units.lower() in uUnits:
4314 self.units = units.lower()
4315 elif units.lower() == 'percent':
4316 self.units = uPercent
4317 elif type(units) in [list, tuple]: # Convert a list of options into a single string
4318 self.units = ",".join([str(el).strip() for el in units])
4319 else:
4320 self.units = units
4321
4322 self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
4323 self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
4324 self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
4325
4326 self.SetValue(default)
4327 self.default = self.raw_value # Save value as default
4328
4329 def ClearErrors(self):
4330 self.error_list = []
4331
4332 def AddError(self, err, info=None):
4333
4334 if err in self.error_list: # prevent duplicate error messages
4335 return
4336 if info is not None:
4337 err = err + " (" + str(info) + ")"
4338
4339 self.error_list.append(err)
4340
4341 def Check(self, min_value=None, max_value=None, multiple=None, info=None):
4342
4343 if min_value is None:
4344 min_value = self.min_value
4345 if max_value is None:
4346 max_value = self.max_value
4347 if multiple is None:
4348 multiple = self.multiple
4349
4350 if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
4351 self.AddError("type '{t}' unknown".format(t=self.units),info)
4352 self.AddError("Allowable types: " + str(self.units),info)
4353
4354 if self.units in uNumeric:
4355 try:
4356 to_num = float(self.raw_value)
4357
4358 if min_value is not None: # Check minimum value if it is present
4359 if to_num < min_value:
4360 self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
4361
4362 if max_value is not None: # Check maximum value if it is present
4363 if to_num > max_value:
4364 self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
4365
4366 except:
4367 self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
4368
4369 if self.units == uInteger: # Perform integer specific checks
4370 try:
4371 to_int = int(self.raw_value)
4372
4373 if multiple is not None and multiple > 1:
4374 if (to_int % multiple) > 0:
4375 self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
4376 except:
4377 self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
4378
4379 if self.units == uBool: # Check that the value is of a correct boolean format
4380 if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
4381 pass
4382 else:
4383 self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
4384
4385 @property
4386 def value(self): # Return the current value, converted to appropriate units (from string representation) if required
4387 v = str(self.raw_value) # Enforce string type for known starting point
4388
4389 if self.units == uInteger: # Integer values
4390 return int(v)
4391 elif self.units in uNumeric: # Any values that use floating points
4392 v = v.replace(",",".") # Replace "," separators with "."
4393 v = float(v)
4394
4395 if self.units == uMM: # Convert from millimetres to nanometres
4396 return FromMM(v)
4397
4398 elif self.units == uMils: # Convert from mils to nanometres
4399 return FromMils(v)
4400
4401 else: # Any other floating-point values
4402 return v
4403
4404 elif self.units == uBool:
4405 if v.lower() in self._true:
4406 return True
4407 else:
4408 return False
4409 else:
4410 return v
4411
4412 def DefaultValue(self): # Reset the value of the parameter to its default
4413 self.raw_value = str(self.default)
4414
4415 def SetValue(self, new_value): # Update the value
4416 new_value = str(new_value)
4417
4418 if len(new_value.strip()) == 0:
4419 if not self.units in [uString, uBool]:
4420 return # Ignore empty values unless for strings or bools
4421
4422 if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
4423 new_value = "1" if new_value.lower() in self._true else "0"
4424 elif self.units in uNumeric:
4425 new_value = new_value.replace(",", ".") # Enforce decimal point separators
4426 elif ',' in self.units: # Select from a list of values
4427 if new_value not in self.units.split(','):
4428 new_value = self.units.split(',')[0]
4429
4430 self.raw_value = new_value
4431
4432 def __str__(self): # pretty-print the parameter
4433
4434 s = self.name + ": " + str(self.raw_value)
4435
4436 if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
4437 s += self.units
4438 elif self.units == uBool: # Special case for Boolean values
4439 s = self.name + ": {b}".format(b = "True" if self.value else "False")
4440 elif self.units == uString:
4441 s = self.name + ": '" + self.raw_value + "'"
4442
4443 return s
4444
4445
4447 def __init__(self):
4448 KiCadPlugin.__init__(self)
4449 self.defaults()
4450
4451 def defaults(self):
4452 self.module = None
4453 self.params = [] # List of added parameters that observes addition order
4454
4455 self.name = "KiCad FP Wizard"
4456 self.description = "Undefined Footprint Wizard plugin"
4457 self.image = ""
4459
4460 def AddParam(self, page, name, unit, default, **kwarg):
4461
4462 if self.GetParam(page,name) is not None: # Param already exists!
4463 return
4464
4465 param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
4466 self.params.append(param)
4467
4468 @property
4469 def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
4470 pages = {} # Page dict
4471 for p in self.params:
4472 if p.page not in pages:
4473 pages[p.page] = {}
4474
4475 pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
4476
4477 return pages
4478
4479 @property
4480 def values(self): # Same as above
4481 return self.parameters
4482
4483 def ResetWizard(self): # Reset all parameters to default values
4484 for p in self.params:
4485 p.DefaultValue()
4486
4487 def GetName(self): # Return the name of this wizard
4488 return self.name
4489
4490 def GetImage(self): # Return the filename of the preview image associated with this wizard
4491 return self.image
4492
4493 def GetDescription(self): # Return the description text
4494 return self.description
4495
4496 def GetValue(self):
4497 raise NotImplementedError
4498
4500 return "REF" # Default reference prefix for any footprint
4501
4502 def GetParam(self, page, name): # Grab a parameter
4503 for p in self.params:
4504 if p.page == page and p.name == name:
4505 return p
4506
4507 return None
4508
4509 def CheckParam(self, page, name, **kwarg):
4510 self.GetParam(page,name).Check(**kwarg)
4511
4512 def AnyErrors(self):
4513 return any([len(p.error_list) > 0 for p in self.params])
4514
4515 @property
4516 def pages(self): # Return an (ordered) list of the available page names
4517 page_list = []
4518 for p in self.params:
4519 if p.page not in page_list:
4520 page_list.append(p.page)
4521
4522 return page_list
4523
4524 def GetNumParameterPages(self): # Return the number of parameter pages
4525 return len(self.pages)
4526
4527 def GetParameterPageName(self,page_n): # Return the name of a page at a given index
4528 return self.pages[page_n]
4529
4530 def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
4531 params = []
4532
4533 for p in self.params:
4534 if p.page == page_name:
4535 params.append(p)
4536
4537 return params
4538
4539 def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
4540 return self.GetParametersByPageName(self.GetParameterPageName(page_index))
4541
4542 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4543 params = self.GetParametersByPageIndex(page_index)
4544 return [p.designator for p in params]
4545
4546 def GetParameterNames(self,page_index): # Return the list of names associated with a given page
4547 params = self.GetParametersByPageIndex(page_index)
4548 return [p.name for p in params]
4549
4550 def GetParameterValues(self,page_index): # Return the list of values associated with a given page
4551 params = self.GetParametersByPageIndex(page_index)
4552 return [str(p.raw_value) for p in params]
4553
4554 def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
4555 params = self.GetParametersByPageIndex(page_index)
4556 return [str("\n".join(p.error_list)) for p in params]
4557
4558 def GetParameterTypes(self, page_index): # Return list of units associated with a given page
4559 params = self.GetParametersByPageIndex(page_index)
4560 return [str(p.units) for p in params]
4561
4562 def GetParameterHints(self, page_index): # Return a list of units associated with a given page
4563 params = self.GetParametersByPageIndex(page_index)
4564 return [str(p.hint) for p in params]
4565
4566 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4567 params = self.GetParametersByPageIndex(page_index)
4568 return [str(p.designator) for p in params]
4569
4570 def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
4571
4572 params = self.GetParametersByPageIndex(page_index)
4573
4574 for i, param in enumerate(params):
4575 if i >= len(list_of_values):
4576 break
4577 param.SetValue(list_of_values[i])
4578
4579 def GetFootprint( self ):
4580 self.BuildFootprint()
4581 return self.module
4582
4584 return
4585
4586 def GetBuildMessages( self ):
4587 return self.buildmessages
4588
4589 def Show(self):
4590 text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
4591 text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
4592
4593 n_pages = self.GetNumParameterPages()
4594
4595 text += "Pages: {n}\n".format(n=n_pages)
4596
4597 for i in range(n_pages):
4598 name = self.GetParameterPageName(i)
4599
4600 params = self.GetParametersByPageName(name)
4601
4602 text += "{name}\n".format(name=name)
4603
4604 for j in range(len(params)):
4605 text += ("\t{param}{err}\n".format(
4606 param = str(params[j]),
4607 err = ' *' if len(params[j].error_list) > 0 else ''
4608 ))
4609
4610 if self.AnyErrors():
4611 text += " * Errors exist for these parameters"
4612
4613 return text
4614
4616 def __init__( self ):
4617 KiCadPlugin.__init__( self )
4621 self.defaults()
4622
4623 def defaults( self ):
4624 self.name = "Undefined Action plugin"
4625 self.category = "Undefined"
4626 self.description = ""
4627
4628 def GetClassName(self):
4629 return type(self).__name__
4630
4631 def GetName( self ):
4632 return self.name
4633
4634 def GetCategoryName( self ):
4635 return self.category
4636
4637 def GetDescription( self ):
4638 return self.description
4639
4641 return self.show_toolbar_button
4642
4643 def GetIconFileName( self, dark ):
4644 if dark and self.dark_icon_file_name:
4645 return self.dark_icon_file_name
4646 else:
4647 return self.icon_file_name
4648
4649 def Run(self):
4650 return
4651
4652
4653
4654def BOX2ISafe(*args):
4655 r"""
4656 BOX2ISafe(BOX2D const & aInput) -> BOX2I
4657 BOX2ISafe(VECTOR2D const & aPos, VECTOR2D const & aSize) -> BOX2I
4658 """
4659 return _pcbnew.BOX2ISafe(*args)
4660
4661def KiROUND(*args):
4662 r"""
4663 KiROUND(VECTOR2D const & vec) -> VECTOR2I
4664 KiROUND(BOX2D const & aBoxD) -> BOX2I
4665 """
4666 return _pcbnew.KiROUND(*args)
4668 r"""Proxy of C++ VECTOR2< int > class."""
4669
4670 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4671 __repr__ = _swig_repr
4672 x = property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set, doc=r"""x : int""")
4673 y = property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set, doc=r"""y : int""")
4674
4675 def __init__(self, *args):
4676 r"""
4677 __init__(VECTOR2I self) -> VECTOR2I
4678 __init__(VECTOR2I self, int x, int y) -> VECTOR2I
4679 __init__(VECTOR2I self, VECTOR2I aVec) -> VECTOR2I
4680 """
4681 _pcbnew.VECTOR2I_swiginit(self, _pcbnew.new_VECTOR2I(*args))
4682
4683 def EuclideanNorm(self):
4684 r"""EuclideanNorm(VECTOR2I self) -> int"""
4685 return _pcbnew.VECTOR2I_EuclideanNorm(self)
4686
4688 r"""SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type"""
4689 return _pcbnew.VECTOR2I_SquaredEuclideanNorm(self)
4690
4691 def Perpendicular(self):
4692 r"""Perpendicular(VECTOR2I self) -> VECTOR2I"""
4693 return _pcbnew.VECTOR2I_Perpendicular(self)
4694
4695 def Resize(self, aNewLength):
4696 r"""Resize(VECTOR2I self, int aNewLength) -> VECTOR2I"""
4697 return _pcbnew.VECTOR2I_Resize(self, aNewLength)
4698
4699 def Format(self):
4700 r"""Format(VECTOR2I self) -> string"""
4701 return _pcbnew.VECTOR2I_Format(self)
4702
4703 def Cross(self, aVector):
4704 r"""Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4705 return _pcbnew.VECTOR2I_Cross(self, aVector)
4706
4707 def Dot(self, aVector):
4708 r"""Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4709 return _pcbnew.VECTOR2I_Dot(self, aVector)
4710
4711 def Distance(self, aVector):
4712 r"""Distance(VECTOR2I self, VECTOR2L aVector) -> double"""
4713 return _pcbnew.VECTOR2I_Distance(self, aVector)
4714
4715 def SquaredDistance(self, aVector):
4716 r"""SquaredDistance(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4717 return _pcbnew.VECTOR2I_SquaredDistance(self, aVector)
4718
4719 def __imul__(self, *args):
4720 r"""
4721 __imul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4722 __imul__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4723 """
4724 return _pcbnew.VECTOR2I___imul__(self, *args)
4725
4726 def __iadd__(self, *args):
4727 r"""
4728 __iadd__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4729 __iadd__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4730 """
4731 return _pcbnew.VECTOR2I___iadd__(self, *args)
4732
4733 def __isub__(self, *args):
4734 r"""
4735 __isub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4736 __isub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4737 """
4738 return _pcbnew.VECTOR2I___isub__(self, *args)
4739
4740 def __neg__(self):
4741 r"""__neg__(VECTOR2I self) -> VECTOR2I"""
4742 return _pcbnew.VECTOR2I___neg__(self)
4743
4744 def __truediv__(self, *args):
4745 return _pcbnew.VECTOR2I___truediv__(self, *args)
4746 __div__ = __truediv__
4747
4748
4749
4750 def __eq__(self, aVector):
4751 r"""__eq__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4752 return _pcbnew.VECTOR2I___eq__(self, aVector)
4753
4754 def __ne__(self, aVector):
4755 r"""__ne__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4756 return _pcbnew.VECTOR2I___ne__(self, aVector)
4757
4758 def __lt__(self, aVector):
4759 r"""__lt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4760 return _pcbnew.VECTOR2I___lt__(self, aVector)
4761
4762 def __le__(self, aVector):
4763 r"""__le__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4764 return _pcbnew.VECTOR2I___le__(self, aVector)
4765
4766 def __gt__(self, aVector):
4767 r"""__gt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4768 return _pcbnew.VECTOR2I___gt__(self, aVector)
4769
4770 def __ge__(self, aVector):
4771 r"""__ge__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4772 return _pcbnew.VECTOR2I___ge__(self, aVector)
4773
4774 def Set(self, x, y):
4775 r"""Set(VECTOR2I self, long x, long y)"""
4776 return _pcbnew.VECTOR2I_Set(self, x, y)
4777
4778 def Get(self):
4779 r"""Get(VECTOR2I self) -> PyObject *"""
4780 return _pcbnew.VECTOR2I_Get(self)
4781
4782 def __eq__(self,other): return (self.xx==other.x and self.yy==other.y)
4783 def __ne__(self,other): return not (self==other)
4784 def __str__(self): return str(self.Get())
4785 def __repr__(self): return 'VECTOR2I'+str(self.Get())
4786 def __len__(self): return len(self.Get())
4787 def __getitem__(self, index): return self.Get()[index]
4788 def __setitem__(self, index, val):
4789 if index == 0:
4790 self.xx = val
4791 elif index == 1:
4792 self.yy = val
4793 else:
4794 raise IndexError
4795 def __nonzero__(self): return self.Get() != (0,0)
4796 def __add__(self, other): return VECTOR2I(self.xx+other.x, self.yy+other.y)
4797 def __sub__(self, other): return VECTOR2I(self.xx-other.x, self.yy-other.y)
4798
4799
4800 __swig_destroy__ = _pcbnew.delete_VECTOR2I
4801
4802# Register VECTOR2I in _pcbnew:
4803_pcbnew.VECTOR2I_swigregister(VECTOR2I)
4805 r"""Proxy of C++ VECTOR2< long long > class."""
4806
4807 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4808 __repr__ = _swig_repr
4809 ECOORD_MAX = _pcbnew.VECTOR2L_ECOORD_MAX
4810
4811 ECOORD_MIN = _pcbnew.VECTOR2L_ECOORD_MIN
4812
4813 x = property(_pcbnew.VECTOR2L_x_get, _pcbnew.VECTOR2L_x_set, doc=r"""x : long long""")
4814 y = property(_pcbnew.VECTOR2L_y_get, _pcbnew.VECTOR2L_y_set, doc=r"""y : long long""")
4815
4816 def __init__(self, *args):
4817 r"""
4818 __init__(VECTOR2L self) -> VECTOR2L
4819 __init__(VECTOR2L self, long long x, long long y) -> VECTOR2L
4820 __init__(VECTOR2L self, VECTOR2L aVec) -> VECTOR2L
4821 """
4822 _pcbnew.VECTOR2L_swiginit(self, _pcbnew.new_VECTOR2L(*args))
4823
4824 def EuclideanNorm(self):
4825 r"""EuclideanNorm(VECTOR2L self) -> long long"""
4826 return _pcbnew.VECTOR2L_EuclideanNorm(self)
4827
4829 r"""SquaredEuclideanNorm(VECTOR2L self) -> VECTOR2< long long >::extended_type"""
4830 return _pcbnew.VECTOR2L_SquaredEuclideanNorm(self)
4831
4832 def Perpendicular(self):
4833 r"""Perpendicular(VECTOR2L self) -> VECTOR2L"""
4834 return _pcbnew.VECTOR2L_Perpendicular(self)
4835
4836 def Resize(self, aNewLength):
4837 r"""Resize(VECTOR2L self, long long aNewLength) -> VECTOR2L"""
4838 return _pcbnew.VECTOR2L_Resize(self, aNewLength)
4839
4840 def Format(self):
4841 r"""Format(VECTOR2L self) -> string"""
4842 return _pcbnew.VECTOR2L_Format(self)
4843
4844 def Cross(self, aVector):
4845 r"""Cross(VECTOR2L self, VECTOR2L aVector) -> VECTOR2< long long >::extended_type"""
4846 return _pcbnew.VECTOR2L_Cross(self, aVector)
4847
4848 def Dot(self, aVector):
4849 r"""Dot(VECTOR2L self, VECTOR2L aVector) -> VECTOR2< long long >::extended_type"""
4850 return _pcbnew.VECTOR2L_Dot(self, aVector)
4851
4852 def Distance(self, aVector):
4853 r"""Distance(VECTOR2L self, VECTOR2< VECTOR2< long long >::extended_type > const & aVector) -> double"""
4854 return _pcbnew.VECTOR2L_Distance(self, aVector)
4855
4856 def SquaredDistance(self, aVector):
4857 r"""SquaredDistance(VECTOR2L self, VECTOR2L aVector) -> VECTOR2< long long >::extended_type"""
4858 return _pcbnew.VECTOR2L_SquaredDistance(self, aVector)
4859
4860 def __imul__(self, *args):
4861 r"""
4862 __imul__(VECTOR2L self, VECTOR2L aVector) -> VECTOR2L
4863 __imul__(VECTOR2L self, long long const & aScalar) -> VECTOR2L
4864 """
4865 return _pcbnew.VECTOR2L___imul__(self, *args)
4866
4867 def __iadd__(self, *args):
4868 r"""
4869 __iadd__(VECTOR2L self, VECTOR2L aVector) -> VECTOR2L
4870 __iadd__(VECTOR2L self, long long const & aScalar) -> VECTOR2L
4871 """
4872 return _pcbnew.VECTOR2L___iadd__(self, *args)
4873
4874 def __isub__(self, *args):
4875 r"""
4876 __isub__(VECTOR2L self, VECTOR2L aVector) -> VECTOR2L
4877 __isub__(VECTOR2L self, long long const & aScalar) -> VECTOR2L
4878 """
4879 return _pcbnew.VECTOR2L___isub__(self, *args)
4880
4881 def __neg__(self):
4882 r"""__neg__(VECTOR2L self) -> VECTOR2L"""
4883 return _pcbnew.VECTOR2L___neg__(self)
4884
4885 def __truediv__(self, *args):
4886 return _pcbnew.VECTOR2L___truediv__(self, *args)
4887 __div__ = __truediv__
4888
4889
4890
4891 def __eq__(self, aVector):
4892 r"""__eq__(VECTOR2L self, VECTOR2L aVector) -> bool"""
4893 return _pcbnew.VECTOR2L___eq__(self, aVector)
4894
4895 def __ne__(self, aVector):
4896 r"""__ne__(VECTOR2L self, VECTOR2L aVector) -> bool"""
4897 return _pcbnew.VECTOR2L___ne__(self, aVector)
4898
4899 def __lt__(self, aVector):
4900 r"""__lt__(VECTOR2L self, VECTOR2L aVector) -> bool"""
4901 return _pcbnew.VECTOR2L___lt__(self, aVector)
4902
4903 def __le__(self, aVector):
4904 r"""__le__(VECTOR2L self, VECTOR2L aVector) -> bool"""
4905 return _pcbnew.VECTOR2L___le__(self, aVector)
4906
4907 def __gt__(self, aVector):
4908 r"""__gt__(VECTOR2L self, VECTOR2L aVector) -> bool"""
4909 return _pcbnew.VECTOR2L___gt__(self, aVector)
4910
4911 def __ge__(self, aVector):
4912 r"""__ge__(VECTOR2L self, VECTOR2L aVector) -> bool"""
4913 return _pcbnew.VECTOR2L___ge__(self, aVector)
4914
4915 def Set(self, x, y):
4916 r"""Set(VECTOR2L self, long long x, long long y)"""
4917 return _pcbnew.VECTOR2L_Set(self, x, y)
4918
4919 def Get(self):
4920 r"""Get(VECTOR2L self) -> PyObject *"""
4921 return _pcbnew.VECTOR2L_Get(self)
4922
4923 def __eq__(self,other): return (self.xx==other.x and self.yy==other.y)
4924 def __ne__(self,other): return not (self==other)
4925 def __str__(self): return str(self.Get())
4926 def __repr__(self): return 'VECTOR2L'+str(self.Get())
4927 def __len__(self): return len(self.Get())
4928 def __getitem__(self, index): return self.Get()[index]
4929 def __setitem__(self, index, val):
4930 if index == 0:
4931 self.xx = val
4932 elif index == 1:
4933 self.yy = val
4934 else:
4935 raise IndexError
4936 def __nonzero__(self): return self.Get() != (0,0)
4937 def __add__(self, other): return VECTOR2L(self.xx+other.x, self.yy+other.y)
4938 def __sub__(self, other): return VECTOR2L(self.xx-other.x, self.yy-other.y)
4939
4940
4941 __swig_destroy__ = _pcbnew.delete_VECTOR2L
4942
4943# Register VECTOR2L in _pcbnew:
4944_pcbnew.VECTOR2L_swigregister(VECTOR2L)
4946 r"""Proxy of C++ VECTOR2_TRAITS< int > class."""
4947
4948 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4949 __repr__ = _swig_repr
4950
4951 def __init__(self):
4952 r"""__init__(VECTOR2I_EXTENDED_TYPE self) -> VECTOR2I_EXTENDED_TYPE"""
4953 _pcbnew.VECTOR2I_EXTENDED_TYPE_swiginit(self, _pcbnew.new_VECTOR2I_EXTENDED_TYPE())
4954 __swig_destroy__ = _pcbnew.delete_VECTOR2I_EXTENDED_TYPE
4955
4956# Register VECTOR2I_EXTENDED_TYPE in _pcbnew:
4957_pcbnew.VECTOR2I_EXTENDED_TYPE_swigregister(VECTOR2I_EXTENDED_TYPE)
4959 r"""Proxy of C++ VECTOR3< double > class."""
4960
4961 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4962 __repr__ = _swig_repr
4963 ECOORD_MAX = _pcbnew.VECTOR3D_ECOORD_MAX
4964
4965 ECOORD_MIN = _pcbnew.VECTOR3D_ECOORD_MIN
4966
4967 x = property(_pcbnew.VECTOR3D_x_get, _pcbnew.VECTOR3D_x_set, doc=r"""x : double""")
4968 y = property(_pcbnew.VECTOR3D_y_get, _pcbnew.VECTOR3D_y_set, doc=r"""y : double""")
4969 z = property(_pcbnew.VECTOR3D_z_get, _pcbnew.VECTOR3D_z_set, doc=r"""z : double""")
4970
4971 def __init__(self, *args):
4972 r"""
4973 __init__(VECTOR3D self) -> VECTOR3D
4974 __init__(VECTOR3D self, double x, double y, double z) -> VECTOR3D
4975 """
4976 _pcbnew.VECTOR3D_swiginit(self, _pcbnew.new_VECTOR3D(*args))
4977
4978 def Cross(self, aVector):
4979 r"""Cross(VECTOR3D self, VECTOR3D aVector) -> VECTOR3D"""
4980 return _pcbnew.VECTOR3D_Cross(self, aVector)
4981
4982 def Dot(self, aVector):
4983 r"""Dot(VECTOR3D self, VECTOR3D aVector) -> VECTOR3< double >::extended_type"""
4984 return _pcbnew.VECTOR3D_Dot(self, aVector)
4985
4986 def EuclideanNorm(self):
4987 r"""EuclideanNorm(VECTOR3D self) -> double"""
4988 return _pcbnew.VECTOR3D_EuclideanNorm(self)
4989
4990 def Normalize(self):
4991 r"""Normalize(VECTOR3D self) -> VECTOR3D"""
4992 return _pcbnew.VECTOR3D_Normalize(self)
4993
4994 def __eq__(self, aVector):
4995 r"""__eq__(VECTOR3D self, VECTOR3D aVector) -> bool"""
4996 return _pcbnew.VECTOR3D___eq__(self, aVector)
4997
4998 def __ne__(self, aVector):
4999 r"""__ne__(VECTOR3D self, VECTOR3D aVector) -> bool"""
5000 return _pcbnew.VECTOR3D___ne__(self, aVector)
5001
5002 def __imul__(self, val):
5003 r"""__imul__(VECTOR3D self, double val) -> VECTOR3D"""
5004 return _pcbnew.VECTOR3D___imul__(self, val)
5005
5006 def __itruediv__(self, *args):
5007 return _pcbnew.VECTOR3D___itruediv__(self, *args)
5008 __idiv__ = __itruediv__
5009
5010
5011
5012 def Set(self, x, y, z):
5013 r"""Set(VECTOR3D self, double x, double y, double z)"""
5014 return _pcbnew.VECTOR3D_Set(self, x, y, z)
5015
5016 def Get(self):
5017 r"""Get(VECTOR3D self) -> PyObject *"""
5018 return _pcbnew.VECTOR3D_Get(self)
5019
5020 def __eq__(self,other): return (self.xx==other.x and self.yy==other.y and self.zz==other.z)
5021 def __ne__(self,other): return not (self==other)
5022 def __str__(self): return str(self.Get())
5023 def __repr__(self): return 'VECTOR3D'+str(self.Get())
5024 def __len__(self): return len(self.Get())
5025 def __getitem__(self, index): return self.Get()[index]
5026 def __setitem__(self, index, val):
5027 if index == 0:
5028 self.xx = val
5029 elif index == 1:
5030 self.yy = val
5031 elif index == 2:
5032 self.zz = val
5033 else:
5034 raise IndexError
5035 def __nonzero__(self): return self.Get() != (0, 0, 0)
5036
5037
5038 __swig_destroy__ = _pcbnew.delete_VECTOR3D
5039
5040# Register VECTOR3D in _pcbnew:
5041_pcbnew.VECTOR3D_swigregister(VECTOR3D)
5043 r"""Proxy of C++ BOX2< VECTOR2I > class."""
5044
5045 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5046 __repr__ = _swig_repr
5047
5048 def __init__(self, *args):
5049 r"""
5050 __init__(BOX2I self) -> BOX2I
5051 __init__(BOX2I self, VECTOR2I aPos, VECTOR2L aSize=BOX2< VECTOR2I >::SizeVec(0, 0)) -> BOX2I
5052 """
5053 _pcbnew.BOX2I_swiginit(self, _pcbnew.new_BOX2I(*args))
5054
5055 @staticmethod
5056 def ByCorners(aCorner1, aCorner2):
5057 r"""ByCorners(VECTOR2I aCorner1, VECTOR2I aCorner2) -> BOX2I"""
5058 return _pcbnew.BOX2I_ByCorners(aCorner1, aCorner2)
5059
5060 @staticmethod
5061 def ByCenter(aCenter, aSize):
5062 r"""ByCenter(VECTOR2I aCenter, VECTOR2L aSize) -> BOX2I"""
5063 return _pcbnew.BOX2I_ByCenter(aCenter, aSize)
5064
5065 def SetMaximum(self):
5066 r"""SetMaximum(BOX2I self)"""
5067 return _pcbnew.BOX2I_SetMaximum(self)
5068
5069 def Centre(self):
5070 r"""Centre(BOX2I self) -> VECTOR2I"""
5071 return _pcbnew.BOX2I_Centre(self)
5072
5073 def Move(self, aMoveVector):
5074 r"""Move(BOX2I self, VECTOR2I aMoveVector)"""
5075 return _pcbnew.BOX2I_Move(self, aMoveVector)
5076
5077 def Normalize(self):
5078 r"""Normalize(BOX2I self) -> BOX2I"""
5079 return _pcbnew.BOX2I_Normalize(self)
5080
5081 def Contains(self, *args):
5082 r"""
5083 Contains(BOX2I self, VECTOR2I aPoint) -> bool
5084 Contains(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y) -> bool
5085 Contains(BOX2I self, BOX2I aRect) -> bool
5086 """
5087 return _pcbnew.BOX2I_Contains(self, *args)
5088
5089 def GetSize(self):
5090 r"""GetSize(BOX2I self) -> VECTOR2L"""
5091 return _pcbnew.BOX2I_GetSize(self)
5092
5093 def GetX(self):
5094 r"""GetX(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5095 return _pcbnew.BOX2I_GetX(self)
5096
5097 def GetY(self):
5098 r"""GetY(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5099 return _pcbnew.BOX2I_GetY(self)
5100
5101 def GetOrigin(self):
5102 r"""GetOrigin(BOX2I self) -> VECTOR2I"""
5103 return _pcbnew.BOX2I_GetOrigin(self)
5104
5105 def GetPosition(self):
5106 r"""GetPosition(BOX2I self) -> VECTOR2I"""
5107 return _pcbnew.BOX2I_GetPosition(self)
5108
5109 def GetEnd(self):
5110 r"""GetEnd(BOX2I self) -> VECTOR2I"""
5111 return _pcbnew.BOX2I_GetEnd(self)
5112
5113 def GetWidth(self):
5114 r"""GetWidth(BOX2I self) -> BOX2< VECTOR2< int > >::size_type"""
5115 return _pcbnew.BOX2I_GetWidth(self)
5116
5117 def GetHeight(self):
5118 r"""GetHeight(BOX2I self) -> BOX2< VECTOR2< int > >::size_type"""
5119 return _pcbnew.BOX2I_GetHeight(self)
5120
5121 def GetRight(self):
5122 r"""GetRight(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5123 return _pcbnew.BOX2I_GetRight(self)
5124
5125 def GetBottom(self):
5126 r"""GetBottom(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5127 return _pcbnew.BOX2I_GetBottom(self)
5128
5129 def GetLeft(self):
5130 r"""GetLeft(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5131 return _pcbnew.BOX2I_GetLeft(self)
5132
5133 def GetTop(self):
5134 r"""GetTop(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5135 return _pcbnew.BOX2I_GetTop(self)
5136
5137 def GetCenter(self):
5138 r"""GetCenter(BOX2I self) -> VECTOR2I"""
5139 return _pcbnew.BOX2I_GetCenter(self)
5140
5141 def GetSizeMax(self):
5142 r"""GetSizeMax(BOX2I self) -> int"""
5143 return _pcbnew.BOX2I_GetSizeMax(self)
5144
5145 def SetOrigin(self, *args):
5146 r"""
5147 SetOrigin(BOX2I self, VECTOR2I pos)
5148 SetOrigin(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5149 """
5150 return _pcbnew.BOX2I_SetOrigin(self, *args)
5151
5152 def SetSize(self, *args):
5153 r"""
5154 SetSize(BOX2I self, VECTOR2L size)
5155 SetSize(BOX2I self, BOX2< VECTOR2< int > >::size_type w, BOX2< VECTOR2< int > >::size_type h)
5156 """
5157 return _pcbnew.BOX2I_SetSize(self, *args)
5158
5159 def Offset(self, *args):
5160 r"""
5161 Offset(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy)
5162 Offset(BOX2I self, VECTOR2I offset)
5163 """
5164 return _pcbnew.BOX2I_Offset(self, *args)
5165
5166 def GetWithOffset(self, aMoveVector):
5167 r"""GetWithOffset(BOX2I self, VECTOR2I aMoveVector) -> BOX2I"""
5168 return _pcbnew.BOX2I_GetWithOffset(self, aMoveVector)
5169
5170 def SetX(self, val):
5171 r"""SetX(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5172 return _pcbnew.BOX2I_SetX(self, val)
5173
5174 def SetY(self, val):
5175 r"""SetY(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5176 return _pcbnew.BOX2I_SetY(self, val)
5177
5178 def SetWidth(self, val):
5179 r"""SetWidth(BOX2I self, BOX2< VECTOR2< int > >::size_type val)"""
5180 return _pcbnew.BOX2I_SetWidth(self, val)
5181
5182 def SetHeight(self, val):
5183 r"""SetHeight(BOX2I self, BOX2< VECTOR2< int > >::size_type val)"""
5184 return _pcbnew.BOX2I_SetHeight(self, val)
5185
5186 def SetEnd(self, *args):
5187 r"""
5188 SetEnd(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5189 SetEnd(BOX2I self, VECTOR2I pos)
5190 """
5191 return _pcbnew.BOX2I_SetEnd(self, *args)
5192
5193 def Intersect(self, aRect):
5194 r"""Intersect(BOX2I self, BOX2I aRect) -> BOX2I"""
5195 return _pcbnew.BOX2I_Intersect(self, aRect)
5196
5197 def Intersects(self, *args):
5198 r"""
5199 Intersects(BOX2I self, BOX2I aRect) -> bool
5200 Intersects(BOX2I self, VECTOR2I aPoint1, VECTOR2I aPoint2) -> bool
5201 Intersects(BOX2I self, BOX2I aRect, EDA_ANGLE aRotation) -> bool
5202 """
5203 return _pcbnew.BOX2I_Intersects(self, *args)
5204
5205 def IntersectsCircle(self, aCenter, aRadius):
5206 r"""IntersectsCircle(BOX2I self, VECTOR2I aCenter, int const aRadius) -> bool"""
5207 return _pcbnew.BOX2I_IntersectsCircle(self, aCenter, aRadius)
5208
5209 def IntersectsCircleEdge(self, aCenter, aRadius, aWidth):
5210 r"""IntersectsCircleEdge(BOX2I self, VECTOR2I aCenter, int const aRadius, int const aWidth) -> bool"""
5211 return _pcbnew.BOX2I_IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
5212
5213 def Format(self):
5214 r"""Format(BOX2I self) -> string"""
5215 return _pcbnew.BOX2I_Format(self)
5216
5217 def Inflate(self, *args):
5218 r"""
5219 Inflate(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy) -> BOX2I
5220 Inflate(BOX2I self, BOX2< VECTOR2< int > >::coord_type aDelta) -> BOX2I
5221 """
5222 return _pcbnew.BOX2I_Inflate(self, *args)
5223
5224 def GetInflated(self, *args):
5225 r"""
5226 GetInflated(BOX2I self, BOX2< VECTOR2< int > >::coord_type aDx, BOX2< VECTOR2< int > >::coord_type aDy) -> BOX2I
5227 GetInflated(BOX2I self, BOX2< VECTOR2< int > >::coord_type aDelta) -> BOX2I
5228 """
5229 return _pcbnew.BOX2I_GetInflated(self, *args)
5230
5231 def Merge(self, *args):
5232 r"""
5233 Merge(BOX2I self, BOX2I aRect) -> BOX2I
5234 Merge(BOX2I self, VECTOR2I aPoint) -> BOX2I
5235 """
5236 return _pcbnew.BOX2I_Merge(self, *args)
5237
5238 def GetBoundingBoxRotated(self, aRotCenter, aAngle):
5239 r"""GetBoundingBoxRotated(BOX2I self, VECTOR2I aRotCenter, EDA_ANGLE aAngle) -> BOX2I"""
5240 return _pcbnew.BOX2I_GetBoundingBoxRotated(self, aRotCenter, aAngle)
5241
5242 def GetArea(self):
5243 r"""GetArea(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5244 return _pcbnew.BOX2I_GetArea(self)
5245
5246 def Diagonal(self):
5247 r"""Diagonal(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5248 return _pcbnew.BOX2I_Diagonal(self)
5249
5251 r"""SquaredDiagonal(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5252 return _pcbnew.BOX2I_SquaredDiagonal(self)
5253
5254 def SquaredDistance(self, *args):
5255 r"""
5256 SquaredDistance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5257 SquaredDistance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5258 """
5259 return _pcbnew.BOX2I_SquaredDistance(self, *args)
5260
5261 def Distance(self, *args):
5262 r"""
5263 Distance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5264 Distance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5265 """
5266 return _pcbnew.BOX2I_Distance(self, *args)
5267
5268 def ClosestPointTo(self, aPoint):
5269 r"""ClosestPointTo(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5270 return _pcbnew.BOX2I_ClosestPointTo(self, aPoint)
5271
5272 def FarthestPointTo(self, aPoint):
5273 r"""FarthestPointTo(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5274 return _pcbnew.BOX2I_FarthestPointTo(self, aPoint)
5275
5276 def __eq__(self, aOther):
5277 r"""__eq__(BOX2I self, BOX2I aOther) -> bool"""
5278 return _pcbnew.BOX2I___eq__(self, aOther)
5279
5280 def __ne__(self, aOther):
5281 r"""__ne__(BOX2I self, BOX2I aOther) -> bool"""
5282 return _pcbnew.BOX2I___ne__(self, aOther)
5283
5284 def IsValid(self):
5285 r"""IsValid(BOX2I self) -> bool"""
5286 return _pcbnew.BOX2I_IsValid(self)
5287 __swig_destroy__ = _pcbnew.delete_BOX2I
5288
5289# Register BOX2I in _pcbnew:
5290_pcbnew.BOX2I_swigregister(BOX2I)
5292 r"""Proxy of C++ std::vector< VECTOR2I > class."""
5293
5294 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5295 __repr__ = _swig_repr
5296
5297 def iterator(self):
5298 r"""iterator(VECTOR_VECTOR2I self) -> SwigPyIterator"""
5299 return _pcbnew.VECTOR_VECTOR2I_iterator(self)
5300 def __iter__(self):
5301 return self.iterator()
5302
5303 def __nonzero__(self):
5304 r"""__nonzero__(VECTOR_VECTOR2I self) -> bool"""
5305 return _pcbnew.VECTOR_VECTOR2I___nonzero__(self)
5306
5307 def __bool__(self):
5308 r"""__bool__(VECTOR_VECTOR2I self) -> bool"""
5309 return _pcbnew.VECTOR_VECTOR2I___bool__(self)
5310
5311 def __len__(self):
5312 r"""__len__(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5313 return _pcbnew.VECTOR_VECTOR2I___len__(self)
5314
5315 def __getslice__(self, i, j):
5316 r"""__getslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j) -> VECTOR_VECTOR2I"""
5317 return _pcbnew.VECTOR_VECTOR2I___getslice__(self, i, j)
5318
5319 def __setslice__(self, *args):
5320 r"""
5321 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)
5322 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j, VECTOR_VECTOR2I v)
5323 """
5324 return _pcbnew.VECTOR_VECTOR2I___setslice__(self, *args)
5325
5326 def __delslice__(self, i, j):
5327 r"""__delslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)"""
5328 return _pcbnew.VECTOR_VECTOR2I___delslice__(self, i, j)
5329
5330 def __delitem__(self, *args):
5331 r"""
5332 __delitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i)
5333 __delitem__(VECTOR_VECTOR2I self, SWIGPY_SLICEOBJECT * slice)
5334 """
5335 return _pcbnew.VECTOR_VECTOR2I___delitem__(self, *args)
5336
5337 def __getitem__(self, *args):
5338 r"""
5339 __getitem__(VECTOR_VECTOR2I self, SWIGPY_SLICEOBJECT * slice) -> VECTOR_VECTOR2I
5340 __getitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i) -> VECTOR2I
5341 """
5342 return _pcbnew.VECTOR_VECTOR2I___getitem__(self, *args)
5343
5344 def __setitem__(self, *args):
5345 r"""
5346 __setitem__(VECTOR_VECTOR2I self, SWIGPY_SLICEOBJECT * slice, VECTOR_VECTOR2I v)
5347 __setitem__(VECTOR_VECTOR2I self, SWIGPY_SLICEOBJECT * slice)
5348 __setitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, VECTOR2I x)
5349 """
5350 return _pcbnew.VECTOR_VECTOR2I___setitem__(self, *args)
5351
5352 def pop(self):
5353 r"""pop(VECTOR_VECTOR2I self) -> VECTOR2I"""
5354 return _pcbnew.VECTOR_VECTOR2I_pop(self)
5355
5356 def append(self, x):
5357 r"""append(VECTOR_VECTOR2I self, VECTOR2I x)"""
5358 return _pcbnew.VECTOR_VECTOR2I_append(self, x)
5359
5360 def empty(self):
5361 r"""empty(VECTOR_VECTOR2I self) -> bool"""
5362 return _pcbnew.VECTOR_VECTOR2I_empty(self)
5363
5364 def size(self):
5365 r"""size(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5366 return _pcbnew.VECTOR_VECTOR2I_size(self)
5367
5368 def swap(self, v):
5369 r"""swap(VECTOR_VECTOR2I self, VECTOR_VECTOR2I v)"""
5370 return _pcbnew.VECTOR_VECTOR2I_swap(self, v)
5371
5372 def begin(self):
5373 r"""begin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5374 return _pcbnew.VECTOR_VECTOR2I_begin(self)
5375
5376 def end(self):
5377 r"""end(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5378 return _pcbnew.VECTOR_VECTOR2I_end(self)
5379
5380 def rbegin(self):
5381 r"""rbegin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5382 return _pcbnew.VECTOR_VECTOR2I_rbegin(self)
5383
5384 def rend(self):
5385 r"""rend(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5386 return _pcbnew.VECTOR_VECTOR2I_rend(self)
5387
5388 def clear(self):
5389 r"""clear(VECTOR_VECTOR2I self)"""
5390 return _pcbnew.VECTOR_VECTOR2I_clear(self)
5391
5392 def get_allocator(self):
5393 r"""get_allocator(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::allocator_type"""
5394 return _pcbnew.VECTOR_VECTOR2I_get_allocator(self)
5395
5396 def pop_back(self):
5397 r"""pop_back(VECTOR_VECTOR2I self)"""
5398 return _pcbnew.VECTOR_VECTOR2I_pop_back(self)
5399
5400 def erase(self, *args):
5401 r"""
5402 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos) -> std::vector< VECTOR2< int > >::iterator
5403 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator first, std::vector< VECTOR2< int > >::iterator last) -> std::vector< VECTOR2< int > >::iterator
5404 """
5405 return _pcbnew.VECTOR_VECTOR2I_erase(self, *args)
5406
5407 def __init__(self, *args):
5408 r"""
5409 __init__(VECTOR_VECTOR2I self) -> VECTOR_VECTOR2I
5410 __init__(VECTOR_VECTOR2I self, VECTOR_VECTOR2I other) -> VECTOR_VECTOR2I
5411 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size) -> VECTOR_VECTOR2I
5412 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size, VECTOR2I value) -> VECTOR_VECTOR2I
5413 """
5414 _pcbnew.VECTOR_VECTOR2I_swiginit(self, _pcbnew.new_VECTOR_VECTOR2I(*args))
5415
5416 def push_back(self, x):
5417 r"""push_back(VECTOR_VECTOR2I self, VECTOR2I x)"""
5418 return _pcbnew.VECTOR_VECTOR2I_push_back(self, x)
5419
5420 def front(self):
5421 r"""front(VECTOR_VECTOR2I self) -> VECTOR2I"""
5422 return _pcbnew.VECTOR_VECTOR2I_front(self)
5423
5424 def back(self):
5425 r"""back(VECTOR_VECTOR2I self) -> VECTOR2I"""
5426 return _pcbnew.VECTOR_VECTOR2I_back(self)
5427
5428 def assign(self, n, x):
5429 r"""assign(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)"""
5430 return _pcbnew.VECTOR_VECTOR2I_assign(self, n, x)
5431
5432 def resize(self, *args):
5433 r"""
5434 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size)
5435 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size, VECTOR2I x)
5436 """
5437 return _pcbnew.VECTOR_VECTOR2I_resize(self, *args)
5438
5439 def insert(self, *args):
5440 r"""
5441 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, VECTOR2I x) -> std::vector< VECTOR2< int > >::iterator
5442 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)
5443 """
5444 return _pcbnew.VECTOR_VECTOR2I_insert(self, *args)
5445
5446 def reserve(self, n):
5447 r"""reserve(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n)"""
5448 return _pcbnew.VECTOR_VECTOR2I_reserve(self, n)
5449
5450 def capacity(self):
5451 r"""capacity(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5452 return _pcbnew.VECTOR_VECTOR2I_capacity(self)
5453 __swig_destroy__ = _pcbnew.delete_VECTOR_VECTOR2I
5454
5455# Register VECTOR_VECTOR2I in _pcbnew:
5456_pcbnew.VECTOR_VECTOR2I_swigregister(VECTOR_VECTOR2I)
5457CORNER_STRATEGY_ALLOW_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_ALLOW_ACUTE_CORNERS
5458
5459CORNER_STRATEGY_CHAMFER_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_CHAMFER_ACUTE_CORNERS
5460
5461CORNER_STRATEGY_ROUND_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_ROUND_ACUTE_CORNERS
5462
5463CORNER_STRATEGY_CHAMFER_ALL_CORNERS = _pcbnew.CORNER_STRATEGY_CHAMFER_ALL_CORNERS
5464
5465CORNER_STRATEGY_ROUND_ALL_CORNERS = _pcbnew.CORNER_STRATEGY_ROUND_ALL_CORNERS
5466
5468 r"""Proxy of C++ SEG class."""
5469
5470 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5471 __repr__ = _swig_repr
5472 A = property(_pcbnew.SEG_A_get, _pcbnew.SEG_A_set, doc=r"""A : VECTOR2I""")
5473 B = property(_pcbnew.SEG_B_get, _pcbnew.SEG_B_set, doc=r"""B : VECTOR2I""")
5474
5475 def __init__(self, *args):
5476 r"""
5477 __init__(SEG self) -> SEG
5478 __init__(SEG self, int aX1, int aY1, int aX2, int aY2) -> SEG
5479 __init__(SEG self, VECTOR2I aA, VECTOR2I aB) -> SEG
5480 __init__(SEG self, VECTOR2I aA, VECTOR2I aB, int aIndex) -> SEG
5481 __init__(SEG self, SEG aSeg) -> SEG
5482 """
5483 _pcbnew.SEG_swiginit(self, _pcbnew.new_SEG(*args))
5484
5485 def __eq__(self, aSeg):
5486 r"""__eq__(SEG self, SEG aSeg) -> bool"""
5487 return _pcbnew.SEG___eq__(self, aSeg)
5488
5489 def __ne__(self, aSeg):
5490 r"""__ne__(SEG self, SEG aSeg) -> bool"""
5491 return _pcbnew.SEG___ne__(self, aSeg)
5492
5493 @staticmethod
5494 def Square(a):
5495 r"""Square(int a) -> SEG::ecoord"""
5496 return _pcbnew.SEG_Square(a)
5497
5498 def LineProject(self, aP):
5499 r"""LineProject(SEG self, VECTOR2I aP) -> VECTOR2I"""
5500 return _pcbnew.SEG_LineProject(self, aP)
5501
5502 def Side(self, aP):
5503 r"""Side(SEG self, VECTOR2I aP) -> int"""
5504 return _pcbnew.SEG_Side(self, aP)
5505
5506 def LineDistance(self, aP, aDetermineSide=False):
5507 r"""LineDistance(SEG self, VECTOR2I aP, bool aDetermineSide=False) -> int"""
5508 return _pcbnew.SEG_LineDistance(self, aP, aDetermineSide)
5509
5510 def Angle(self, aOther):
5511 r"""Angle(SEG self, SEG aOther) -> EDA_ANGLE"""
5512 return _pcbnew.SEG_Angle(self, aOther)
5513
5514 def NearestPoint(self, *args):
5515 r"""
5516 NearestPoint(SEG self, VECTOR2I aP) -> VECTOR2I
5517 NearestPoint(SEG self, SEG aSeg) -> VECTOR2I
5518 """
5519 return _pcbnew.SEG_NearestPoint(self, *args)
5520
5521 def NearestPoints(self, aSeg, aPtA, aPtB, aDistSq):
5522 r"""NearestPoints(SEG self, SEG aSeg, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool"""
5523 return _pcbnew.SEG_NearestPoints(self, aSeg, aPtA, aPtB, aDistSq)
5524
5525 def ReflectPoint(self, aP):
5526 r"""ReflectPoint(SEG self, VECTOR2I aP) -> VECTOR2I"""
5527 return _pcbnew.SEG_ReflectPoint(self, aP)
5528
5529 def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False):
5530 r"""Intersect(SEG self, SEG aSeg, bool aIgnoreEndpoints=False, bool aLines=False) -> OPT_VECTOR2I"""
5531 return _pcbnew.SEG_Intersect(self, aSeg, aIgnoreEndpoints, aLines)
5532
5533 def Intersects(self, aSeg):
5534 r"""Intersects(SEG self, SEG aSeg) -> bool"""
5535 return _pcbnew.SEG_Intersects(self, aSeg)
5536
5537 def IntersectLines(self, aSeg):
5538 r"""IntersectLines(SEG self, SEG aSeg) -> OPT_VECTOR2I"""
5539 return _pcbnew.SEG_IntersectLines(self, aSeg)
5540
5541 def PerpendicularSeg(self, aP):
5542 r"""PerpendicularSeg(SEG self, VECTOR2I aP) -> SEG"""
5543 return _pcbnew.SEG_PerpendicularSeg(self, aP)
5544
5545 def ParallelSeg(self, aP):
5546 r"""ParallelSeg(SEG self, VECTOR2I aP) -> SEG"""
5547 return _pcbnew.SEG_ParallelSeg(self, aP)
5548
5549 def Collide(self, aSeg, aClearance, aActual=None):
5550 r"""Collide(SEG self, SEG aSeg, int aClearance, int * aActual=None) -> bool"""
5551 return _pcbnew.SEG_Collide(self, aSeg, aClearance, aActual)
5552
5553 def SquaredDistance(self, *args):
5554 r"""
5555 SquaredDistance(SEG self, SEG aSeg) -> SEG::ecoord
5556 SquaredDistance(SEG self, VECTOR2I aP) -> SEG::ecoord
5557 """
5558 return _pcbnew.SEG_SquaredDistance(self, *args)
5559
5560 def Distance(self, *args):
5561 r"""
5562 Distance(SEG self, SEG aSeg) -> int
5563 Distance(SEG self, VECTOR2I aP) -> int
5564 """
5565 return _pcbnew.SEG_Distance(self, *args)
5566
5567 def CanonicalCoefs(self, qA, qB, qC):
5568 r"""CanonicalCoefs(SEG self, SEG::ecoord & qA, SEG::ecoord & qB, SEG::ecoord & qC)"""
5569 return _pcbnew.SEG_CanonicalCoefs(self, qA, qB, qC)
5570
5571 def Collinear(self, aSeg):
5572 r"""Collinear(SEG self, SEG aSeg) -> bool"""
5573 return _pcbnew.SEG_Collinear(self, aSeg)
5574
5575 def ApproxCollinear(self, aSeg, aDistanceThreshold=1):
5576 r"""ApproxCollinear(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5577 return _pcbnew.SEG_ApproxCollinear(self, aSeg, aDistanceThreshold)
5578
5579 def ApproxParallel(self, aSeg, aDistanceThreshold=1):
5580 r"""ApproxParallel(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5581 return _pcbnew.SEG_ApproxParallel(self, aSeg, aDistanceThreshold)
5582
5583 def ApproxPerpendicular(self, aSeg):
5584 r"""ApproxPerpendicular(SEG self, SEG aSeg) -> bool"""
5585 return _pcbnew.SEG_ApproxPerpendicular(self, aSeg)
5586
5587 def Overlaps(self, aSeg):
5588 r"""Overlaps(SEG self, SEG aSeg) -> bool"""
5589 return _pcbnew.SEG_Overlaps(self, aSeg)
5590
5591 def Length(self):
5592 r"""Length(SEG self) -> int"""
5593 return _pcbnew.SEG_Length(self)
5594
5595 def SquaredLength(self):
5596 r"""SquaredLength(SEG self) -> SEG::ecoord"""
5597 return _pcbnew.SEG_SquaredLength(self)
5598
5599 def TCoef(self, aP):
5600 r"""TCoef(SEG self, VECTOR2I aP) -> SEG::ecoord"""
5601 return _pcbnew.SEG_TCoef(self, aP)
5602
5603 def Index(self):
5604 r"""Index(SEG self) -> int"""
5605 return _pcbnew.SEG_Index(self)
5606
5607 def Contains(self, *args):
5608 r"""
5609 Contains(SEG self, SEG aSeg) -> bool
5610 Contains(SEG self, VECTOR2I aP) -> bool
5611 """
5612 return _pcbnew.SEG_Contains(self, *args)
5613
5614 def Reverse(self):
5615 r"""Reverse(SEG self)"""
5616 return _pcbnew.SEG_Reverse(self)
5617
5618 def Reversed(self):
5619 r"""Reversed(SEG self) -> SEG"""
5620 return _pcbnew.SEG_Reversed(self)
5621
5622 def Center(self):
5623 r"""Center(SEG self) -> VECTOR2I"""
5624 return _pcbnew.SEG_Center(self)
5625
5626 def __lt__(self, aSeg):
5627 r"""__lt__(SEG self, SEG aSeg) -> bool"""
5628 return _pcbnew.SEG___lt__(self, aSeg)
5629 __swig_destroy__ = _pcbnew.delete_SEG
5630
5631# Register SEG in _pcbnew:
5632_pcbnew.SEG_swigregister(SEG)
5633SH_RECT = _pcbnew.SH_RECT
5634
5635SH_SEGMENT = _pcbnew.SH_SEGMENT
5636
5637SH_LINE_CHAIN = _pcbnew.SH_LINE_CHAIN
5638
5639SH_CIRCLE = _pcbnew.SH_CIRCLE
5640
5641SH_SIMPLE = _pcbnew.SH_SIMPLE
5642
5643SH_POLY_SET = _pcbnew.SH_POLY_SET
5644
5645SH_COMPOUND = _pcbnew.SH_COMPOUND
5646
5647SH_ARC = _pcbnew.SH_ARC
5648
5649SH_NULL = _pcbnew.SH_NULL
5650
5651SH_POLY_SET_TRIANGLE = _pcbnew.SH_POLY_SET_TRIANGLE
5652
5653
5655 r"""SHAPE_TYPE_asString(SHAPE_TYPE a) -> wxString"""
5656 return _pcbnew.SHAPE_TYPE_asString(a)
5658 r"""Proxy of C++ SHAPE_BASE class."""
5659
5660 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5661 __repr__ = _swig_repr
5662
5663 def __init__(self, aType):
5664 r"""__init__(SHAPE_BASE self, SHAPE_TYPE aType) -> SHAPE_BASE"""
5665 _pcbnew.SHAPE_BASE_swiginit(self, _pcbnew.new_SHAPE_BASE(aType))
5666 __swig_destroy__ = _pcbnew.delete_SHAPE_BASE
5667
5668 def Type(self):
5669 r"""Type(SHAPE_BASE self) -> SHAPE_TYPE"""
5670 return _pcbnew.SHAPE_BASE_Type(self)
5671
5672 def TypeName(self):
5673 r"""TypeName(SHAPE_BASE self) -> wxString"""
5674 return _pcbnew.SHAPE_BASE_TypeName(self)
5675
5677 r"""HasIndexableSubshapes(SHAPE_BASE self) -> bool"""
5678 return _pcbnew.SHAPE_BASE_HasIndexableSubshapes(self)
5679
5681 r"""GetIndexableSubshapeCount(SHAPE_BASE self) -> size_t"""
5682 return _pcbnew.SHAPE_BASE_GetIndexableSubshapeCount(self)
5683
5684 def GetIndexableSubshapes(self, aSubshapes):
5685 r"""GetIndexableSubshapes(SHAPE_BASE self, std::vector< SHAPE const *,std::allocator< SHAPE const * > > & aSubshapes)"""
5686 return _pcbnew.SHAPE_BASE_GetIndexableSubshapes(self, aSubshapes)
5687
5688# Register SHAPE_BASE in _pcbnew:
5689_pcbnew.SHAPE_BASE_swigregister(SHAPE_BASE)
5691 r"""Proxy of C++ SHAPE class."""
5692
5693 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5694
5695 def __init__(self, *args, **kwargs):
5696 raise AttributeError("No constructor defined - class is abstract")
5697 __repr__ = _swig_repr
5698 MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
5699
5700 __swig_destroy__ = _pcbnew.delete_SHAPE
5701
5702 def Clone(self):
5703 r"""Clone(SHAPE self) -> SHAPE"""
5704 return _pcbnew.SHAPE_Clone(self)
5705
5706 def GetClearance(self, aOther):
5707 r"""GetClearance(SHAPE self, SHAPE aOther) -> int"""
5708 return _pcbnew.SHAPE_GetClearance(self, aOther)
5709
5710 def IsNull(self):
5711 r"""IsNull(SHAPE self) -> bool"""
5712 return _pcbnew.SHAPE_IsNull(self)
5713
5714 def Collide(self, *args):
5715 r"""
5716 Collide(SHAPE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5717 Collide(SHAPE self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
5718 Collide(SHAPE self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5719 Collide(SHAPE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5720 """
5721 return _pcbnew.SHAPE_Collide(self, *args)
5722
5723 def BBox(self, aClearance=0):
5724 r"""BBox(SHAPE self, int aClearance=0) -> BOX2I"""
5725 return _pcbnew.SHAPE_BBox(self, aClearance)
5726
5727 def Centre(self):
5728 r"""Centre(SHAPE self) -> VECTOR2I"""
5729 return _pcbnew.SHAPE_Centre(self)
5730
5731 def Distance(self, aP):
5732 r"""Distance(SHAPE self, VECTOR2I aP) -> int"""
5733 return _pcbnew.SHAPE_Distance(self, aP)
5734
5735 def SquaredDistance(self, aP, aOutlineOnly=False):
5736 r"""SquaredDistance(SHAPE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord"""
5737 return _pcbnew.SHAPE_SquaredDistance(self, aP, aOutlineOnly)
5738
5739 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
5740 r"""PointInside(SHAPE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
5741 return _pcbnew.SHAPE_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
5742
5743 def TransformToPolygon(self, aBuffer, aError, aErrorLoc):
5744 r"""TransformToPolygon(SHAPE self, SHAPE_POLY_SET aBuffer, int aError, ERROR_LOC aErrorLoc)"""
5745 return _pcbnew.SHAPE_TransformToPolygon(self, aBuffer, aError, aErrorLoc)
5746
5747 def Rotate(self, *args):
5748 r"""Rotate(SHAPE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
5749 return _pcbnew.SHAPE_Rotate(self, *args)
5750
5751 def Move(self, aVector):
5752 r"""Move(SHAPE self, VECTOR2I aVector)"""
5753 return _pcbnew.SHAPE_Move(self, aVector)
5754
5755 def IsSolid(self):
5756 r"""IsSolid(SHAPE self) -> bool"""
5757 return _pcbnew.SHAPE_IsSolid(self)
5758
5759 def Parse(self, aStream):
5760 r"""Parse(SHAPE self, std::stringstream & aStream) -> bool"""
5761 return _pcbnew.SHAPE_Parse(self, aStream)
5762
5763 def Format(self, aCplusPlus=True):
5764 r"""Format(SHAPE self, bool aCplusPlus=True) -> string"""
5765 return _pcbnew.SHAPE_Format(self, aCplusPlus)
5766
5767 def Cast(self):
5768 shape_type = SHAPE_TYPE_asString(self.Type())
5769
5770 if shape_type == "SH_ARC":
5771 return Cast_to_SHAPE_ARC(self)
5772 elif shape_type == "SH_CIRCLE":
5773 return Cast_to_SHAPE_CIRCLE(self)
5774 elif shape_type == "SH_COMPOUND":
5775 return Cast_to_SHAPE_COMPOUND(self)
5776 elif shape_type == "SH_LINE_CHAIN":
5777 return Cast_to_SHAPE_LINE_CHAIN(self)
5778 elif shape_type == "SH_POLY_SET":
5779 return Cast_to_SHAPE_POLY_SET(self)
5780 elif shape_type == "SH_RECT":
5781 return Cast_to_SHAPE_RECT(self)
5782 elif shape_type == "SH_SEGMENT":
5783 return Cast_to_SHAPE_SEGMENT(self)
5784 elif shape_type == "SH_SIMPLE":
5785 return Cast_to_SHAPE_SIMPLE(self)
5786 else:
5787 raise TypeError("Unsupported shape class: %s" % shape_type)
5788
5789
5790# Register SHAPE in _pcbnew:
5791_pcbnew.SHAPE_swigregister(SHAPE)
5793 r"""Proxy of C++ SHAPE_LINE_CHAIN_BASE class."""
5794
5795 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5796
5797 def __init__(self, *args, **kwargs):
5798 raise AttributeError("No constructor defined - class is abstract")
5799 __repr__ = _swig_repr
5800 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN_BASE
5801
5802 def Collide(self, *args):
5803 r"""
5804 Collide(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5805 Collide(SHAPE_LINE_CHAIN_BASE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5806 """
5807 return _pcbnew.SHAPE_LINE_CHAIN_BASE_Collide(self, *args)
5808
5809 def SquaredDistance(self, aP, aOutlineOnly=False):
5810 r"""SquaredDistance(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord"""
5811 return _pcbnew.SHAPE_LINE_CHAIN_BASE_SquaredDistance(self, aP, aOutlineOnly)
5812
5813 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
5814 r"""PointInside(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
5815 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
5816
5817 def PointOnEdge(self, aP, aAccuracy=0):
5818 r"""PointOnEdge(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> bool"""
5819 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointOnEdge(self, aP, aAccuracy)
5820
5821 def EdgeContainingPoint(self, aP, aAccuracy=0):
5822 r"""EdgeContainingPoint(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> int"""
5823 return _pcbnew.SHAPE_LINE_CHAIN_BASE_EdgeContainingPoint(self, aP, aAccuracy)
5824
5825 def GetPoint(self, aIndex):
5826 r"""GetPoint(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> VECTOR2I"""
5827 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPoint(self, aIndex)
5828
5829 def GetSegment(self, aIndex):
5830 r"""GetSegment(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> SEG"""
5831 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegment(self, aIndex)
5832
5833 def GetPointCount(self):
5834 r"""GetPointCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
5835 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPointCount(self)
5836
5838 r"""GetSegmentCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
5839 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegmentCount(self)
5840
5841 def IsClosed(self):
5842 r"""IsClosed(SHAPE_LINE_CHAIN_BASE self) -> bool"""
5843 return _pcbnew.SHAPE_LINE_CHAIN_BASE_IsClosed(self)
5844
5845 def GetCachedBBox(self):
5846 r"""GetCachedBBox(SHAPE_LINE_CHAIN_BASE self) -> BOX2I"""
5847 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetCachedBBox(self)
5848
5849# Register SHAPE_LINE_CHAIN_BASE in _pcbnew:
5850_pcbnew.SHAPE_LINE_CHAIN_BASE_swigregister(SHAPE_LINE_CHAIN_BASE)
5852 r"""Proxy of C++ SHAPE_ARC class."""
5853
5854 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5855
5856 def __init__(self, *args, **kwargs):
5857 raise AttributeError("No constructor defined - class is abstract")
5858 __repr__ = _swig_repr
5859 __swig_destroy__ = _pcbnew.delete_SHAPE_ARC
5860
5861 def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0):
5862 r"""ConstructFromStartEndAngle(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, EDA_ANGLE aAngle, double aWidth=0) -> SHAPE_ARC"""
5863 return _pcbnew.SHAPE_ARC_ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth)
5864
5865 def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0):
5866 r"""ConstructFromStartEndCenter(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, VECTOR2I aCenter, bool aClockwise=False, double aWidth=0) -> SHAPE_ARC"""
5867 return _pcbnew.SHAPE_ARC_ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise, aWidth)
5868
5869 def GetP0(self):
5870 r"""GetP0(SHAPE_ARC self) -> VECTOR2I"""
5871 return _pcbnew.SHAPE_ARC_GetP0(self)
5872
5873 def GetP1(self):
5874 r"""GetP1(SHAPE_ARC self) -> VECTOR2I"""
5875 return _pcbnew.SHAPE_ARC_GetP1(self)
5876
5877 def GetArcMid(self):
5878 r"""GetArcMid(SHAPE_ARC self) -> VECTOR2I"""
5879 return _pcbnew.SHAPE_ARC_GetArcMid(self)
5880
5881 def GetCenter(self):
5882 r"""GetCenter(SHAPE_ARC self) -> VECTOR2I"""
5883 return _pcbnew.SHAPE_ARC_GetCenter(self)
5884
5885 def BBox(self, aClearance=0):
5886 r"""BBox(SHAPE_ARC self, int aClearance=0) -> BOX2I"""
5887 return _pcbnew.SHAPE_ARC_BBox(self, aClearance)
5888
5889 def NearestPoint(self, aP):
5890 r"""NearestPoint(SHAPE_ARC self, VECTOR2I aP) -> VECTOR2I"""
5891 return _pcbnew.SHAPE_ARC_NearestPoint(self, aP)
5892
5893 def Collide(self, *args):
5894 r"""
5895 Collide(SHAPE_ARC self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5896 Collide(SHAPE_ARC self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5897 Collide(SHAPE_ARC self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5898 """
5899 return _pcbnew.SHAPE_ARC_Collide(self, *args)
5900
5901 def IntersectLine(self, aSeg, aIpsBuffer):
5902 r"""IntersectLine(SHAPE_ARC self, SEG aSeg, VECTOR_VECTOR2I aIpsBuffer) -> int"""
5903 return _pcbnew.SHAPE_ARC_IntersectLine(self, aSeg, aIpsBuffer)
5904
5905 def Intersect(self, *args):
5906 r"""
5907 Intersect(SHAPE_ARC self, CIRCLE const & aArc, VECTOR_VECTOR2I aIpsBuffer) -> int
5908 Intersect(SHAPE_ARC self, SHAPE_ARC aArc, VECTOR_VECTOR2I aIpsBuffer) -> int
5909 """
5910 return _pcbnew.SHAPE_ARC_Intersect(self, *args)
5911
5912 def SetWidth(self, aWidth):
5913 r"""SetWidth(SHAPE_ARC self, int aWidth)"""
5914 return _pcbnew.SHAPE_ARC_SetWidth(self, aWidth)
5915
5916 def GetWidth(self):
5917 r"""GetWidth(SHAPE_ARC self) -> int"""
5918 return _pcbnew.SHAPE_ARC_GetWidth(self)
5919
5920 def Mirror(self, *args):
5921 r"""
5922 Mirror(SHAPE_ARC self, VECTOR2I aRef, FLIP_DIRECTION aFlipDirection)
5923 Mirror(SHAPE_ARC self, SEG axis)
5924 """
5925 return _pcbnew.SHAPE_ARC_Mirror(self, *args)
5926
5927 def Reverse(self):
5928 r"""Reverse(SHAPE_ARC self)"""
5929 return _pcbnew.SHAPE_ARC_Reverse(self)
5930
5931 def Reversed(self):
5932 r"""Reversed(SHAPE_ARC self) -> SHAPE_ARC"""
5933 return _pcbnew.SHAPE_ARC_Reversed(self)
5934
5935 def GetRadius(self):
5936 r"""GetRadius(SHAPE_ARC self) -> double"""
5937 return _pcbnew.SHAPE_ARC_GetRadius(self)
5938
5939 def GetChord(self):
5940 r"""GetChord(SHAPE_ARC self) -> SEG"""
5941 return _pcbnew.SHAPE_ARC_GetChord(self)
5942
5944 r"""GetCentralAngle(SHAPE_ARC self) -> EDA_ANGLE"""
5945 return _pcbnew.SHAPE_ARC_GetCentralAngle(self)
5946
5947 def GetStartAngle(self):
5948 r"""GetStartAngle(SHAPE_ARC self) -> EDA_ANGLE"""
5949 return _pcbnew.SHAPE_ARC_GetStartAngle(self)
5950
5951 def GetEndAngle(self):
5952 r"""GetEndAngle(SHAPE_ARC self) -> EDA_ANGLE"""
5953 return _pcbnew.SHAPE_ARC_GetEndAngle(self)
5954
5955 def GetLength(self):
5956 r"""GetLength(SHAPE_ARC self) -> double"""
5957 return _pcbnew.SHAPE_ARC_GetLength(self)
5958
5959 @staticmethod
5961 r"""DefaultAccuracyForPCB() -> double"""
5962 return _pcbnew.SHAPE_ARC_DefaultAccuracyForPCB()
5963
5964 def ConvertToPolyline(self, *args):
5965 r"""ConvertToPolyline(SHAPE_ARC self, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB(), double * aEffectiveAccuracy=None) -> SHAPE_LINE_CHAIN"""
5966 return _pcbnew.SHAPE_ARC_ConvertToPolyline(self, *args)
5967
5968 def __eq__(self, aArc):
5969 r"""__eq__(SHAPE_ARC self, SHAPE_ARC aArc) -> bool"""
5970 return _pcbnew.SHAPE_ARC___eq__(self, aArc)
5971
5972 def IsCCW(self):
5973 r"""IsCCW(SHAPE_ARC self) -> bool"""
5974 return _pcbnew.SHAPE_ARC_IsCCW(self)
5975
5976 def IsClockwise(self):
5977 r"""IsClockwise(SHAPE_ARC self) -> bool"""
5978 return _pcbnew.SHAPE_ARC_IsClockwise(self)
5979
5980# Register SHAPE_ARC in _pcbnew:
5981_pcbnew.SHAPE_ARC_swigregister(SHAPE_ARC)
5983 r"""Proxy of C++ SHAPE_CIRCLE class."""
5984
5985 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5986 __repr__ = _swig_repr
5987
5988 def __init__(self, *args):
5989 r"""
5990 __init__(SHAPE_CIRCLE self) -> SHAPE_CIRCLE
5991 __init__(SHAPE_CIRCLE self, VECTOR2I aCenter, int aRadius) -> SHAPE_CIRCLE
5992 __init__(SHAPE_CIRCLE self, CIRCLE const & aCircle) -> SHAPE_CIRCLE
5993 __init__(SHAPE_CIRCLE self, SHAPE_CIRCLE aOther) -> SHAPE_CIRCLE
5994 """
5995 _pcbnew.SHAPE_CIRCLE_swiginit(self, _pcbnew.new_SHAPE_CIRCLE(*args))
5996 __swig_destroy__ = _pcbnew.delete_SHAPE_CIRCLE
5997
5998 def BBox(self, aClearance=0):
5999 r"""BBox(SHAPE_CIRCLE self, int aClearance=0) -> BOX2I"""
6000 return _pcbnew.SHAPE_CIRCLE_BBox(self, aClearance)
6001
6002 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
6003 r"""Collide(SHAPE_CIRCLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
6004 return _pcbnew.SHAPE_CIRCLE_Collide(self, aSeg, aClearance, aActual, aLocation)
6005
6006 def SetRadius(self, aRadius):
6007 r"""SetRadius(SHAPE_CIRCLE self, int aRadius)"""
6008 return _pcbnew.SHAPE_CIRCLE_SetRadius(self, aRadius)
6009
6010 def SetCenter(self, aCenter):
6011 r"""SetCenter(SHAPE_CIRCLE self, VECTOR2I aCenter)"""
6012 return _pcbnew.SHAPE_CIRCLE_SetCenter(self, aCenter)
6013
6014 def GetRadius(self):
6015 r"""GetRadius(SHAPE_CIRCLE self) -> int"""
6016 return _pcbnew.SHAPE_CIRCLE_GetRadius(self)
6017
6018 def GetCenter(self):
6019 r"""GetCenter(SHAPE_CIRCLE self) -> VECTOR2I"""
6020 return _pcbnew.SHAPE_CIRCLE_GetCenter(self)
6021
6022 def GetCircle(self):
6023 r"""GetCircle(SHAPE_CIRCLE self) -> CIRCLE const"""
6024 return _pcbnew.SHAPE_CIRCLE_GetCircle(self)
6025
6026 def Rotate(self, *args):
6027 r"""Rotate(SHAPE_CIRCLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6028 return _pcbnew.SHAPE_CIRCLE_Rotate(self, *args)
6029
6030 def Format(self, aCplusPlus=True):
6031 r"""Format(SHAPE_CIRCLE self, bool aCplusPlus=True) -> string"""
6032 return _pcbnew.SHAPE_CIRCLE_Format(self, aCplusPlus)
6033
6034# Register SHAPE_CIRCLE in _pcbnew:
6035_pcbnew.SHAPE_CIRCLE_swigregister(SHAPE_CIRCLE)
6037 r"""Proxy of C++ SHAPE_COMPOUND class."""
6038
6039 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6040 __repr__ = _swig_repr
6041
6042 def __init__(self, *args):
6043 r"""
6044 __init__(SHAPE_COMPOUND self) -> SHAPE_COMPOUND
6045 __init__(SHAPE_COMPOUND self, std::vector< SHAPE *,std::allocator< SHAPE * > > const & aShapes) -> SHAPE_COMPOUND
6046 __init__(SHAPE_COMPOUND self, SHAPE_COMPOUND aOther) -> SHAPE_COMPOUND
6047 """
6048 _pcbnew.SHAPE_COMPOUND_swiginit(self, _pcbnew.new_SHAPE_COMPOUND(*args))
6049 __swig_destroy__ = _pcbnew.delete_SHAPE_COMPOUND
6050
6051 def Clone(self):
6052 r"""Clone(SHAPE_COMPOUND self) -> SHAPE_COMPOUND"""
6053 return _pcbnew.SHAPE_COMPOUND_Clone(self)
6054
6055 def Format(self, aCplusPlus=True):
6056 r"""Format(SHAPE_COMPOUND self, bool aCplusPlus=True) -> string"""
6057 return _pcbnew.SHAPE_COMPOUND_Format(self, aCplusPlus)
6058
6059 def Collide(self, *args):
6060 r"""
6061 Collide(SHAPE_COMPOUND self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6062 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
6063 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6064 """
6065 return _pcbnew.SHAPE_COMPOUND_Collide(self, *args)
6066
6067 def Shapes(self):
6068 r"""Shapes(SHAPE_COMPOUND self) -> std::vector< SHAPE *,std::allocator< SHAPE * > > const &"""
6069 return _pcbnew.SHAPE_COMPOUND_Shapes(self)
6070
6071 def BBox(self, aClearance=0):
6072 r"""BBox(SHAPE_COMPOUND self, int aClearance=0) -> BOX2I"""
6073 return _pcbnew.SHAPE_COMPOUND_BBox(self, aClearance)
6074
6075 def Distance(self, *args):
6076 r"""
6077 Distance(SHAPE_COMPOUND self, VECTOR2I aP) -> int
6078 Distance(SHAPE_COMPOUND self, SEG aSeg) -> int
6079 """
6080 return _pcbnew.SHAPE_COMPOUND_Distance(self, *args)
6081
6082 def AddShape(self, *args):
6083 r"""
6084 AddShape(SHAPE_COMPOUND self, SHAPE aShape)
6085 AddShape(SHAPE_COMPOUND self, std::shared_ptr< SHAPE > aShape)
6086 """
6087 return _pcbnew.SHAPE_COMPOUND_AddShape(self, *args)
6088
6089 def Empty(self):
6090 r"""Empty(SHAPE_COMPOUND self) -> bool"""
6091 return _pcbnew.SHAPE_COMPOUND_Empty(self)
6092
6093 def Size(self):
6094 r"""Size(SHAPE_COMPOUND self) -> int"""
6095 return _pcbnew.SHAPE_COMPOUND_Size(self)
6096
6097 def Rotate(self, *args):
6098 r"""Rotate(SHAPE_COMPOUND self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6099 return _pcbnew.SHAPE_COMPOUND_Rotate(self, *args)
6100
6102 r"""UniqueSubshape(SHAPE_COMPOUND self) -> SHAPE"""
6103 return _pcbnew.SHAPE_COMPOUND_UniqueSubshape(self)
6104
6105 def GetSubshapes(self):
6106 r"""GetSubshapes(SHAPE_COMPOUND self) -> VECTOR_SHAPEPTR"""
6107 return _pcbnew.SHAPE_COMPOUND_GetSubshapes(self)
6108
6109# Register SHAPE_COMPOUND in _pcbnew:
6110_pcbnew.SHAPE_COMPOUND_swigregister(SHAPE_COMPOUND)
6112 r"""Proxy of C++ CLIPPER_Z_VALUE class."""
6113
6114 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6115 __repr__ = _swig_repr
6116
6117 def __init__(self, *args):
6118 r"""
6119 __init__(CLIPPER_Z_VALUE self) -> CLIPPER_Z_VALUE
6120 __init__(CLIPPER_Z_VALUE self, std::pair< ssize_t,ssize_t > const aShapeIndices, ssize_t aOffset=0) -> CLIPPER_Z_VALUE
6121 """
6122 _pcbnew.CLIPPER_Z_VALUE_swiginit(self, _pcbnew.new_CLIPPER_Z_VALUE(*args))
6123 m_FirstArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_set, doc=r"""m_FirstArcIdx : ssize_t""")
6124 m_SecondArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_set, doc=r"""m_SecondArcIdx : ssize_t""")
6125 __swig_destroy__ = _pcbnew.delete_CLIPPER_Z_VALUE
6126
6127# Register CLIPPER_Z_VALUE in _pcbnew:
6128_pcbnew.CLIPPER_Z_VALUE_swigregister(CLIPPER_Z_VALUE)
6130 r"""Proxy of C++ SHAPE_LINE_CHAIN class."""
6131
6132 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6133 __repr__ = _swig_repr
6134
6135 def __init__(self, *args):
6136 r"""
6137 __init__(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN
6138 __init__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aShape) -> SHAPE_LINE_CHAIN
6139 __init__(SHAPE_LINE_CHAIN self, intVector aV) -> SHAPE_LINE_CHAIN
6140 __init__(SHAPE_LINE_CHAIN self, VECTOR_VECTOR2I aV, bool aClosed=False) -> SHAPE_LINE_CHAIN
6141 __init__(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, bool aClosed=False) -> SHAPE_LINE_CHAIN
6142 __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
6143 """
6144 _pcbnew.SHAPE_LINE_CHAIN_swiginit(self, _pcbnew.new_SHAPE_LINE_CHAIN(*args))
6145 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN
6146
6147 def Collide(self, *args):
6148 r"""
6149 Collide(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6150 Collide(SHAPE_LINE_CHAIN self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6151 """
6152 return _pcbnew.SHAPE_LINE_CHAIN_Collide(self, *args)
6153
6154 @staticmethod
6155 def ClosestPoints(*args):
6156 r"""
6157 ClosestPoints(SHAPE_LINE_CHAIN aOther, VECTOR2I aPt0, VECTOR2I aPt1) -> bool
6158 ClosestPoints(SHAPE_LINE_CHAIN::point_citer const & aMyStart, SHAPE_LINE_CHAIN::point_citer const & aMyEnd, SHAPE_LINE_CHAIN::point_citer const & aOtherStart, SHAPE_LINE_CHAIN::point_citer const & aOtherEnd, VECTOR2I aPt0, VECTOR2I aPt1, int64_t & aDistSq) -> bool
6159 """
6160 return _pcbnew.SHAPE_LINE_CHAIN_ClosestPoints(*args)
6161
6162 @staticmethod
6163 def ClosestSegments(aMyPrevPt, aMyStart, aMyEnd, aOtherPrevPt, aOtherStart, aOtherEnd, aPt0, aPt1, aDistSq):
6164 r"""ClosestSegments(VECTOR2I aMyPrevPt, SHAPE_LINE_CHAIN::point_citer const & aMyStart, SHAPE_LINE_CHAIN::point_citer const & aMyEnd, VECTOR2I aOtherPrevPt, SHAPE_LINE_CHAIN::point_citer const & aOtherStart, SHAPE_LINE_CHAIN::point_citer const & aOtherEnd, VECTOR2I aPt0, VECTOR2I aPt1, int64_t & aDistSq) -> bool"""
6165 return _pcbnew.SHAPE_LINE_CHAIN_ClosestSegments(aMyPrevPt, aMyStart, aMyEnd, aOtherPrevPt, aOtherStart, aOtherEnd, aPt0, aPt1, aDistSq)
6166
6167 def ClosestSegmentsFast(self, aOther, aPt0, aPt1):
6168 r"""ClosestSegmentsFast(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOther, VECTOR2I aPt0, VECTOR2I aPt1) -> bool"""
6169 return _pcbnew.SHAPE_LINE_CHAIN_ClosestSegmentsFast(self, aOther, aPt0, aPt1)
6170
6171 def Clear(self):
6172 r"""Clear(SHAPE_LINE_CHAIN self)"""
6173 return _pcbnew.SHAPE_LINE_CHAIN_Clear(self)
6174
6175 def SetClosed(self, aClosed):
6176 r"""SetClosed(SHAPE_LINE_CHAIN self, bool aClosed)"""
6177 return _pcbnew.SHAPE_LINE_CHAIN_SetClosed(self, aClosed)
6178
6179 def SetWidth(self, aWidth):
6180 r"""SetWidth(SHAPE_LINE_CHAIN self, int aWidth)"""
6181 return _pcbnew.SHAPE_LINE_CHAIN_SetWidth(self, aWidth)
6182
6183 def Width(self):
6184 r"""Width(SHAPE_LINE_CHAIN self) -> int"""
6185 return _pcbnew.SHAPE_LINE_CHAIN_Width(self)
6186
6187 def SegmentCount(self):
6188 r"""SegmentCount(SHAPE_LINE_CHAIN self) -> int"""
6189 return _pcbnew.SHAPE_LINE_CHAIN_SegmentCount(self)
6190
6191 def ShapeCount(self):
6192 r"""ShapeCount(SHAPE_LINE_CHAIN self) -> int"""
6193 return _pcbnew.SHAPE_LINE_CHAIN_ShapeCount(self)
6194
6196 r"""RemoveDuplicatePoints(SHAPE_LINE_CHAIN self)"""
6197 return _pcbnew.SHAPE_LINE_CHAIN_RemoveDuplicatePoints(self)
6198
6199 def Simplify(self, aMaxError=0):
6200 r"""Simplify(SHAPE_LINE_CHAIN self, int aMaxError=0)"""
6201 return _pcbnew.SHAPE_LINE_CHAIN_Simplify(self, aMaxError)
6202
6203 def Simplify2(self, aRemoveColinear=True):
6204 r"""Simplify2(SHAPE_LINE_CHAIN self, bool aRemoveColinear=True) -> SHAPE_LINE_CHAIN"""
6205 return _pcbnew.SHAPE_LINE_CHAIN_Simplify2(self, aRemoveColinear)
6206
6207 def PointCount(self):
6208 r"""PointCount(SHAPE_LINE_CHAIN self) -> int"""
6209 return _pcbnew.SHAPE_LINE_CHAIN_PointCount(self)
6210
6211 def Segment(self, aIndex):
6212 r"""Segment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6213 return _pcbnew.SHAPE_LINE_CHAIN_Segment(self, aIndex)
6214
6215 def CSegment(self, aIndex):
6216 r"""CSegment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6217 return _pcbnew.SHAPE_LINE_CHAIN_CSegment(self, aIndex)
6218
6219 def NextShape(self, aPointIndex):
6220 r"""NextShape(SHAPE_LINE_CHAIN self, int aPointIndex) -> int"""
6221 return _pcbnew.SHAPE_LINE_CHAIN_NextShape(self, aPointIndex)
6222
6223 def SetPoint(self, aIndex, aPos):
6224 r"""SetPoint(SHAPE_LINE_CHAIN self, int aIndex, VECTOR2I aPos)"""
6225 return _pcbnew.SHAPE_LINE_CHAIN_SetPoint(self, aIndex, aPos)
6226
6227 def CPoint(self, aIndex):
6228 r"""CPoint(SHAPE_LINE_CHAIN self, int aIndex) -> VECTOR2I"""
6229 return _pcbnew.SHAPE_LINE_CHAIN_CPoint(self, aIndex)
6230
6231 def CPoints(self):
6232 r"""CPoints(SHAPE_LINE_CHAIN self) -> VECTOR_VECTOR2I"""
6233 return _pcbnew.SHAPE_LINE_CHAIN_CPoints(self)
6234
6235 def CLastPoint(self):
6236 r"""CLastPoint(SHAPE_LINE_CHAIN self) -> VECTOR2I"""
6237 return _pcbnew.SHAPE_LINE_CHAIN_CLastPoint(self)
6238
6239 def CArcs(self):
6240 r"""CArcs(SHAPE_LINE_CHAIN self) -> std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > const &"""
6241 return _pcbnew.SHAPE_LINE_CHAIN_CArcs(self)
6242
6243 def CShapes(self):
6244 r"""CShapes(SHAPE_LINE_CHAIN self) -> std::vector< std::pair< ssize_t,ssize_t >,std::allocator< std::pair< ssize_t,ssize_t > > > const &"""
6245 return _pcbnew.SHAPE_LINE_CHAIN_CShapes(self)
6246
6247 def BBox(self, aClearance=0):
6248 r"""BBox(SHAPE_LINE_CHAIN self, int aClearance=0) -> BOX2I"""
6249 return _pcbnew.SHAPE_LINE_CHAIN_BBox(self, aClearance)
6250
6252 r"""GenerateBBoxCache(SHAPE_LINE_CHAIN self)"""
6253 return _pcbnew.SHAPE_LINE_CHAIN_GenerateBBoxCache(self)
6254
6255 def Reverse(self):
6256 r"""Reverse(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN"""
6257 return _pcbnew.SHAPE_LINE_CHAIN_Reverse(self)
6258
6259 def ClearArcs(self):
6260 r"""ClearArcs(SHAPE_LINE_CHAIN self)"""
6261 return _pcbnew.SHAPE_LINE_CHAIN_ClearArcs(self)
6262
6263 def Length(self):
6264 r"""Length(SHAPE_LINE_CHAIN self) -> long long"""
6265 return _pcbnew.SHAPE_LINE_CHAIN_Length(self)
6266
6267 def ReservePoints(self, aSize):
6268 r"""ReservePoints(SHAPE_LINE_CHAIN self, size_t aSize)"""
6269 return _pcbnew.SHAPE_LINE_CHAIN_ReservePoints(self, aSize)
6270
6271 def Append(self, *args):
6272 r"""
6273 Append(SHAPE_LINE_CHAIN self, int aX, int aY, bool aAllowDuplication=False)
6274 Append(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowDuplication=False)
6275 Append(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOtherLine)
6276 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc)
6277 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, double aAccuracy)
6278 """
6279 return _pcbnew.SHAPE_LINE_CHAIN_Append(self, *args)
6280
6281 def Insert(self, *args):
6282 r"""
6283 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, VECTOR2I aP)
6284 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, SHAPE_ARC aArc)
6285 """
6286 return _pcbnew.SHAPE_LINE_CHAIN_Insert(self, *args)
6287
6288 def Replace(self, *args):
6289 r"""
6290 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, VECTOR2I aP)
6291 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, SHAPE_LINE_CHAIN aLine)
6292 """
6293 return _pcbnew.SHAPE_LINE_CHAIN_Replace(self, *args)
6294
6295 def Remove(self, *args):
6296 r"""
6297 Remove(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex)
6298 Remove(SHAPE_LINE_CHAIN self, int aIndex)
6299 """
6300 return _pcbnew.SHAPE_LINE_CHAIN_Remove(self, *args)
6301
6302 def RemoveShape(self, aPointIndex):
6303 r"""RemoveShape(SHAPE_LINE_CHAIN self, int aPointIndex)"""
6304 return _pcbnew.SHAPE_LINE_CHAIN_RemoveShape(self, aPointIndex)
6305
6306 def Find(self, aP, aThreshold=0):
6307 r"""Find(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=0) -> int"""
6308 return _pcbnew.SHAPE_LINE_CHAIN_Find(self, aP, aThreshold)
6309
6310 def FindSegment(self, aP, aThreshold=1):
6311 r"""FindSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=1) -> int"""
6312 return _pcbnew.SHAPE_LINE_CHAIN_FindSegment(self, aP, aThreshold)
6313
6314 def Slice(self, aStartIndex, aEndIndex=-1):
6315 r"""Slice(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex=-1) -> SHAPE_LINE_CHAIN"""
6316 return _pcbnew.SHAPE_LINE_CHAIN_Slice(self, aStartIndex, aEndIndex)
6317
6318 def Intersects(self, aChain):
6319 r"""Intersects(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain) -> bool"""
6320 return _pcbnew.SHAPE_LINE_CHAIN_Intersects(self, aChain)
6321
6322 def Intersect(self, *args):
6323 r"""
6324 Intersect(SHAPE_LINE_CHAIN self, SEG aSeg, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp) -> int
6325 Intersect(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp, bool aExcludeColinearAndTouching=False, BOX2I aChainBBox=None) -> int
6326 """
6327 return _pcbnew.SHAPE_LINE_CHAIN_Intersect(self, *args)
6328
6329 def PathLength(self, aP, aIndex=-1):
6330 r"""PathLength(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aIndex=-1) -> int"""
6331 return _pcbnew.SHAPE_LINE_CHAIN_PathLength(self, aP, aIndex)
6332
6333 def CheckClearance(self, aP, aDist):
6334 r"""CheckClearance(SHAPE_LINE_CHAIN self, VECTOR2I aP, int const aDist) -> bool"""
6335 return _pcbnew.SHAPE_LINE_CHAIN_CheckClearance(self, aP, aDist)
6336
6338 r"""SelfIntersecting(SHAPE_LINE_CHAIN self) -> std::optional< SHAPE_LINE_CHAIN::INTERSECTION > const"""
6339 return _pcbnew.SHAPE_LINE_CHAIN_SelfIntersecting(self)
6340
6342 r"""SelfIntersectingWithArcs(SHAPE_LINE_CHAIN self) -> std::optional< SHAPE_LINE_CHAIN::INTERSECTION > const"""
6343 return _pcbnew.SHAPE_LINE_CHAIN_SelfIntersectingWithArcs(self)
6344
6345 def NearestSegment(self, aP):
6346 r"""NearestSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
6347 return _pcbnew.SHAPE_LINE_CHAIN_NearestSegment(self, aP)
6348
6349 def NearestPoint(self, *args):
6350 r"""
6351 NearestPoint(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowInternalShapePoints=True) -> VECTOR2I
6352 NearestPoint(SHAPE_LINE_CHAIN self, SEG aSeg, int & dist) -> VECTOR2I
6353 """
6354 return _pcbnew.SHAPE_LINE_CHAIN_NearestPoint(self, *args)
6355
6356 def Format(self, aCplusPlus=True):
6357 r"""Format(SHAPE_LINE_CHAIN self, bool aCplusPlus=True) -> string"""
6358 return _pcbnew.SHAPE_LINE_CHAIN_Format(self, aCplusPlus)
6359
6360 def __ne__(self, aRhs):
6361 r"""__ne__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aRhs) -> bool"""
6362 return _pcbnew.SHAPE_LINE_CHAIN___ne__(self, aRhs)
6363
6364 def CompareGeometry(self, aOther):
6365 r"""CompareGeometry(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOther) -> bool"""
6366 return _pcbnew.SHAPE_LINE_CHAIN_CompareGeometry(self, aOther)
6367
6368 def Mirror(self, *args):
6369 r"""
6370 Mirror(SHAPE_LINE_CHAIN self, VECTOR2I aRef, FLIP_DIRECTION aFlipDirection)
6371 Mirror(SHAPE_LINE_CHAIN self, SEG axis)
6372 """
6373 return _pcbnew.SHAPE_LINE_CHAIN_Mirror(self, *args)
6374
6375 def Rotate(self, *args):
6376 r"""Rotate(SHAPE_LINE_CHAIN self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6377 return _pcbnew.SHAPE_LINE_CHAIN_Rotate(self, *args)
6378
6379 def PointAlong(self, aPathLength):
6380 r"""PointAlong(SHAPE_LINE_CHAIN self, int aPathLength) -> VECTOR2I"""
6381 return _pcbnew.SHAPE_LINE_CHAIN_PointAlong(self, aPathLength)
6382
6383 def Area(self, aAbsolute=True):
6384 r"""Area(SHAPE_LINE_CHAIN self, bool aAbsolute=True) -> double"""
6385 return _pcbnew.SHAPE_LINE_CHAIN_Area(self, aAbsolute)
6386
6387 def Split(self, *args):
6388 r"""
6389 Split(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aExact=False) -> int
6390 Split(SHAPE_LINE_CHAIN self, VECTOR2I aStart, VECTOR2I aEnd, SHAPE_LINE_CHAIN aPre, SHAPE_LINE_CHAIN aMid, SHAPE_LINE_CHAIN aPost)
6391 """
6392 return _pcbnew.SHAPE_LINE_CHAIN_Split(self, *args)
6393
6394 def OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify=False):
6395 r"""OffsetLine(SHAPE_LINE_CHAIN self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, SHAPE_LINE_CHAIN aLeft, SHAPE_LINE_CHAIN aRight, bool aSimplify=False) -> bool"""
6396 return _pcbnew.SHAPE_LINE_CHAIN_OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify)
6397
6398 def ArcCount(self):
6399 r"""ArcCount(SHAPE_LINE_CHAIN self) -> size_t"""
6400 return _pcbnew.SHAPE_LINE_CHAIN_ArcCount(self)
6401
6402 def ArcIndex(self, aSegment):
6403 r"""ArcIndex(SHAPE_LINE_CHAIN self, size_t aSegment) -> ssize_t"""
6404 return _pcbnew.SHAPE_LINE_CHAIN_ArcIndex(self, aSegment)
6405
6406 def Arc(self, aArc):
6407 r"""Arc(SHAPE_LINE_CHAIN self, size_t aArc) -> SHAPE_ARC"""
6408 return _pcbnew.SHAPE_LINE_CHAIN_Arc(self, aArc)
6409
6410 def IsSharedPt(self, aIndex):
6411 r"""IsSharedPt(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6412 return _pcbnew.SHAPE_LINE_CHAIN_IsSharedPt(self, aIndex)
6413
6414 def IsPtOnArc(self, aPtIndex):
6415 r"""IsPtOnArc(SHAPE_LINE_CHAIN self, size_t aPtIndex) -> bool"""
6416 return _pcbnew.SHAPE_LINE_CHAIN_IsPtOnArc(self, aPtIndex)
6417
6418 def IsArcSegment(self, aSegment):
6419 r"""IsArcSegment(SHAPE_LINE_CHAIN self, size_t aSegment) -> bool"""
6420 return _pcbnew.SHAPE_LINE_CHAIN_IsArcSegment(self, aSegment)
6421
6422 def IsArcStart(self, aIndex):
6423 r"""IsArcStart(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6424 return _pcbnew.SHAPE_LINE_CHAIN_IsArcStart(self, aIndex)
6425
6426 def IsArcEnd(self, aIndex):
6427 r"""IsArcEnd(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6428 return _pcbnew.SHAPE_LINE_CHAIN_IsArcEnd(self, aIndex)
6429
6430 def Distance(self, *args):
6431 r"""
6432 Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int
6433 Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aOutlineOnly) -> int
6434 """
6435 return _pcbnew.SHAPE_LINE_CHAIN_Distance(self, *args)
6436
6437# Register SHAPE_LINE_CHAIN in _pcbnew:
6438_pcbnew.SHAPE_LINE_CHAIN_swigregister(SHAPE_LINE_CHAIN)
6440 r"""Proxy of C++ SHAPE_POLY_SET class."""
6441
6442 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6443 __repr__ = _swig_repr
6444
6445 def __init__(self, *args):
6446 r"""
6447 __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
6448 __init__(SHAPE_POLY_SET self, BOX2D const & aRect) -> SHAPE_POLY_SET
6449 __init__(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> SHAPE_POLY_SET
6450 __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & aPolygon) -> SHAPE_POLY_SET
6451 __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET
6452 """
6453 _pcbnew.SHAPE_POLY_SET_swiginit(self, _pcbnew.new_SHAPE_POLY_SET(*args))
6454 __swig_destroy__ = _pcbnew.delete_SHAPE_POLY_SET
6455
6456 def CacheTriangulation(self, aPartition=True, aSimplify=False):
6457 r"""CacheTriangulation(SHAPE_POLY_SET self, bool aPartition=True, bool aSimplify=False)"""
6458 return _pcbnew.SHAPE_POLY_SET_CacheTriangulation(self, aPartition, aSimplify)
6459
6461 r"""IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool"""
6462 return _pcbnew.SHAPE_POLY_SET_IsTriangulationUpToDate(self)
6463
6464 def GetHash(self):
6465 r"""GetHash(SHAPE_POLY_SET self) -> HASH_128"""
6466 return _pcbnew.SHAPE_POLY_SET_GetHash(self)
6467
6468 def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices):
6469 r"""GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool"""
6470 return _pcbnew.SHAPE_POLY_SET_GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
6471
6472 def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx):
6473 r"""GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool"""
6474 return _pcbnew.SHAPE_POLY_SET_GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
6475
6477 r"""CloneDropTriangulation(SHAPE_POLY_SET self) -> SHAPE_POLY_SET"""
6478 return _pcbnew.SHAPE_POLY_SET_CloneDropTriangulation(self)
6479
6480 def NewOutline(self):
6481 r"""NewOutline(SHAPE_POLY_SET self) -> int"""
6482 return _pcbnew.SHAPE_POLY_SET_NewOutline(self)
6483
6484 def NewHole(self, aOutline=-1):
6485 r"""NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int"""
6486 return _pcbnew.SHAPE_POLY_SET_NewHole(self, aOutline)
6487
6488 def AddOutline(self, aOutline):
6489 r"""AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> int"""
6490 return _pcbnew.SHAPE_POLY_SET_AddOutline(self, aOutline)
6491
6492 def AddHole(self, aHole, aOutline=-1):
6493 r"""AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole, int aOutline=-1) -> int"""
6494 return _pcbnew.SHAPE_POLY_SET_AddHole(self, aHole, aOutline)
6495
6496 def AddPolygon(self, apolygon):
6497 r"""AddPolygon(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & apolygon) -> int"""
6498 return _pcbnew.SHAPE_POLY_SET_AddPolygon(self, apolygon)
6499
6500 def Area(self):
6501 r"""Area(SHAPE_POLY_SET self) -> double"""
6502 return _pcbnew.SHAPE_POLY_SET_Area(self)
6503
6504 def ArcCount(self):
6505 r"""ArcCount(SHAPE_POLY_SET self) -> int"""
6506 return _pcbnew.SHAPE_POLY_SET_ArcCount(self)
6507
6508 def GetArcs(self, aArcBuffer):
6509 r"""GetArcs(SHAPE_POLY_SET self, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > & aArcBuffer)"""
6510 return _pcbnew.SHAPE_POLY_SET_GetArcs(self, aArcBuffer)
6511
6512 def ClearArcs(self):
6513 r"""ClearArcs(SHAPE_POLY_SET self)"""
6514 return _pcbnew.SHAPE_POLY_SET_ClearArcs(self)
6515
6516 def Append(self, *args):
6517 r"""
6518 Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
6519 Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
6520 Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1, int aHole=-1)
6521 Append(SHAPE_POLY_SET self, SHAPE_ARC aArc, int aOutline=-1, int aHole=-1, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB()) -> int
6522 """
6523 return _pcbnew.SHAPE_POLY_SET_Append(self, *args)
6524
6525 def InsertVertex(self, aGlobalIndex, aNewVertex):
6526 r"""InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)"""
6527 return _pcbnew.SHAPE_POLY_SET_InsertVertex(self, aGlobalIndex, aNewVertex)
6528
6529 def CVertex(self, *args):
6530 r"""
6531 CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
6532 CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
6533 CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I
6534 """
6535 return _pcbnew.SHAPE_POLY_SET_CVertex(self, *args)
6536
6537 def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext):
6538 r"""GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool"""
6539 return _pcbnew.SHAPE_POLY_SET_GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
6540
6541 def IsPolygonSelfIntersecting(self, aPolygonIndex):
6542 r"""IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool"""
6543 return _pcbnew.SHAPE_POLY_SET_IsPolygonSelfIntersecting(self, aPolygonIndex)
6544
6546 r"""IsSelfIntersecting(SHAPE_POLY_SET self) -> bool"""
6547 return _pcbnew.SHAPE_POLY_SET_IsSelfIntersecting(self)
6548
6550 r"""TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int"""
6551 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolyCount(self)
6552
6553 def OutlineCount(self):
6554 r"""OutlineCount(SHAPE_POLY_SET self) -> int"""
6555 return _pcbnew.SHAPE_POLY_SET_OutlineCount(self)
6556
6557 def VertexCount(self, aOutline=-1, aHole=-1):
6558 r"""VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int"""
6559 return _pcbnew.SHAPE_POLY_SET_VertexCount(self, aOutline, aHole)
6560
6562 r"""FullPointCount(SHAPE_POLY_SET self) -> int"""
6563 return _pcbnew.SHAPE_POLY_SET_FullPointCount(self)
6564
6565 def HoleCount(self, aOutline):
6566 r"""HoleCount(SHAPE_POLY_SET self, int aOutline) -> int"""
6567 return _pcbnew.SHAPE_POLY_SET_HoleCount(self, aOutline)
6568
6569 def Outline(self, *args):
6570 r"""
6571 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6572 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6573 """
6574 return _pcbnew.SHAPE_POLY_SET_Outline(self, *args)
6575
6576 def Subset(self, aFirstPolygon, aLastPolygon):
6577 r"""Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET"""
6578 return _pcbnew.SHAPE_POLY_SET_Subset(self, aFirstPolygon, aLastPolygon)
6579
6580 def UnitSet(self, aPolygonIndex):
6581 r"""UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET"""
6582 return _pcbnew.SHAPE_POLY_SET_UnitSet(self, aPolygonIndex)
6583
6584 def Hole(self, aOutline, aHole):
6585 r"""Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6586 return _pcbnew.SHAPE_POLY_SET_Hole(self, aOutline, aHole)
6587
6588 def Polygon(self, *args):
6589 r"""
6590 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
6591 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &
6592 """
6593 return _pcbnew.SHAPE_POLY_SET_Polygon(self, *args)
6594
6595 def TriangulatedPolygon(self, aIndex):
6596 r"""TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *"""
6597 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolygon(self, aIndex)
6598
6599 def COutline(self, aIndex):
6600 r"""COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN"""
6601 return _pcbnew.SHAPE_POLY_SET_COutline(self, aIndex)
6602
6603 def CHole(self, aOutline, aHole):
6604 r"""CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6605 return _pcbnew.SHAPE_POLY_SET_CHole(self, aOutline, aHole)
6606
6607 def CPolygon(self, aIndex):
6608 r"""CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &"""
6609 return _pcbnew.SHAPE_POLY_SET_CPolygon(self, aIndex)
6610
6611 def CPolygons(self):
6612 r"""CPolygons(SHAPE_POLY_SET self) -> std::vector< SHAPE_POLY_SET::POLYGON,std::allocator< SHAPE_POLY_SET::POLYGON > > const &"""
6613 return _pcbnew.SHAPE_POLY_SET_CPolygons(self)
6614
6615 def Iterate(self, *args):
6616 r"""
6617 Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
6618 Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6619 Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6620 """
6621 return _pcbnew.SHAPE_POLY_SET_Iterate(self, *args)
6622
6623 def IterateWithHoles(self, *args):
6624 r"""
6625 IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6626 IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6627 """
6628 return _pcbnew.SHAPE_POLY_SET_IterateWithHoles(self, *args)
6629
6630 def CIterate(self, *args):
6631 r"""
6632 CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
6633 CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
6634 CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
6635 """
6636 return _pcbnew.SHAPE_POLY_SET_CIterate(self, *args)
6637
6638 def CIterateWithHoles(self, *args):
6639 r"""
6640 CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
6641 CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
6642 """
6643 return _pcbnew.SHAPE_POLY_SET_CIterateWithHoles(self, *args)
6644
6645 def IterateFromVertexWithHoles(self, aGlobalIdx):
6646 r"""IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR"""
6647 return _pcbnew.SHAPE_POLY_SET_IterateFromVertexWithHoles(self, aGlobalIdx)
6648
6649 def IterateSegments(self, *args):
6650 r"""
6651 IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6652 IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6653 IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6654 """
6655 return _pcbnew.SHAPE_POLY_SET_IterateSegments(self, *args)
6656
6657 def CIterateSegments(self, *args):
6658 r"""
6659 CIterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6660 CIterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6661 CIterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6662 """
6663 return _pcbnew.SHAPE_POLY_SET_CIterateSegments(self, *args)
6664
6666 r"""
6667 IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6668 IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6669 """
6670 return _pcbnew.SHAPE_POLY_SET_IterateSegmentsWithHoles(self, *args)
6671
6673 r"""
6674 CIterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6675 CIterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6676 """
6677 return _pcbnew.SHAPE_POLY_SET_CIterateSegmentsWithHoles(self, *args)
6678
6679 def BooleanAdd(self, *args):
6680 r"""
6681 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b)
6682 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)
6683 """
6684 return _pcbnew.SHAPE_POLY_SET_BooleanAdd(self, *args)
6685
6686 def BooleanSubtract(self, *args):
6687 r"""
6688 BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b)
6689 BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)
6690 """
6691 return _pcbnew.SHAPE_POLY_SET_BooleanSubtract(self, *args)
6692
6693 def BooleanIntersection(self, *args):
6694 r"""
6695 BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b)
6696 BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)
6697 """
6698 return _pcbnew.SHAPE_POLY_SET_BooleanIntersection(self, *args)
6699
6700 def BooleanXor(self, *args):
6701 r"""
6702 BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET b)
6703 BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)
6704 """
6705 return _pcbnew.SHAPE_POLY_SET_BooleanXor(self, *args)
6706
6708 r"""RebuildHolesFromContours(SHAPE_POLY_SET self)"""
6709 return _pcbnew.SHAPE_POLY_SET_RebuildHolesFromContours(self)
6710
6711 def Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify=False):
6712 r"""Inflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify=False)"""
6713 return _pcbnew.SHAPE_POLY_SET_Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify)
6714
6715 def Deflate(self, aAmount, aCornerStrategy, aMaxError):
6716 r"""Deflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError)"""
6717 return _pcbnew.SHAPE_POLY_SET_Deflate(self, aAmount, aCornerStrategy, aMaxError)
6718
6719 def OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify):
6720 r"""OffsetLineChain(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aLine, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify)"""
6721 return _pcbnew.SHAPE_POLY_SET_OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify)
6722
6723 def InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError):
6724 r"""InflateWithLinkedHoles(SHAPE_POLY_SET self, int aFactor, CORNER_STRATEGY aCornerStrategy, int aMaxError)"""
6725 return _pcbnew.SHAPE_POLY_SET_InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError)
6726
6727 def Fracture(self):
6728 r"""Fracture(SHAPE_POLY_SET self)"""
6729 return _pcbnew.SHAPE_POLY_SET_Fracture(self)
6730
6731 def Unfracture(self):
6732 r"""Unfracture(SHAPE_POLY_SET self)"""
6733 return _pcbnew.SHAPE_POLY_SET_Unfracture(self)
6734
6735 def HasHoles(self):
6736 r"""HasHoles(SHAPE_POLY_SET self) -> bool"""
6737 return _pcbnew.SHAPE_POLY_SET_HasHoles(self)
6738
6740 r"""HasTouchingHoles(SHAPE_POLY_SET self) -> bool"""
6741 return _pcbnew.SHAPE_POLY_SET_HasTouchingHoles(self)
6742
6743 def Simplify(self):
6744 r"""Simplify(SHAPE_POLY_SET self)"""
6745 return _pcbnew.SHAPE_POLY_SET_Simplify(self)
6746
6747 def SimplifyOutlines(self, aMaxError=0):
6748 r"""SimplifyOutlines(SHAPE_POLY_SET self, int aMaxError=0)"""
6749 return _pcbnew.SHAPE_POLY_SET_SimplifyOutlines(self, aMaxError)
6750
6752 r"""NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int"""
6753 return _pcbnew.SHAPE_POLY_SET_NormalizeAreaOutlines(self)
6754
6755 def Format(self, aCplusPlus=True):
6756 r"""Format(SHAPE_POLY_SET self, bool aCplusPlus=True) -> string"""
6757 return _pcbnew.SHAPE_POLY_SET_Format(self, aCplusPlus)
6758
6759 def Mirror(self, aRef, aFlipDirection):
6760 r"""Mirror(SHAPE_POLY_SET self, VECTOR2I aRef, FLIP_DIRECTION aFlipDirection)"""
6761 return _pcbnew.SHAPE_POLY_SET_Mirror(self, aRef, aFlipDirection)
6762
6763 def Rotate(self, *args):
6764 r"""Rotate(SHAPE_POLY_SET self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6765 return _pcbnew.SHAPE_POLY_SET_Rotate(self, *args)
6766
6767 def BBox(self, aClearance=0):
6768 r"""BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I"""
6769 return _pcbnew.SHAPE_POLY_SET_BBox(self, aClearance)
6770
6771 def PointOnEdge(self, aP, aAccuracy=0):
6772 r"""PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP, int aAccuracy=0) -> bool"""
6773 return _pcbnew.SHAPE_POLY_SET_PointOnEdge(self, aP, aAccuracy)
6774
6775 def Collide(self, *args):
6776 r"""
6777 Collide(SHAPE_POLY_SET self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6778 Collide(SHAPE_POLY_SET self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6779 Collide(SHAPE_POLY_SET self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6780 """
6781 return _pcbnew.SHAPE_POLY_SET_Collide(self, *args)
6782
6783 def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0):
6784 r"""CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
6785 return _pcbnew.SHAPE_POLY_SET_CollideVertex(self, aPoint, aClosestVertex, aClearance)
6786
6787 def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0):
6788 r"""CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
6789 return _pcbnew.SHAPE_POLY_SET_CollideEdge(self, aPoint, aClosestVertex, aClearance)
6790
6791 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
6792 r"""PointInside(SHAPE_POLY_SET self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
6793 return _pcbnew.SHAPE_POLY_SET_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
6794
6796 r"""BuildBBoxCaches(SHAPE_POLY_SET self)"""
6797 return _pcbnew.SHAPE_POLY_SET_BuildBBoxCaches(self)
6798
6800 r"""BBoxFromCaches(SHAPE_POLY_SET self) -> BOX2I"""
6801 return _pcbnew.SHAPE_POLY_SET_BBoxFromCaches(self)
6802
6803 def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False):
6804 r"""Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1, int aAccuracy=0, bool aUseBBoxCaches=False) -> bool"""
6805 return _pcbnew.SHAPE_POLY_SET_Contains(self, aP, aSubpolyIndex, aAccuracy, aUseBBoxCaches)
6806
6807 def IsEmpty(self):
6808 r"""IsEmpty(SHAPE_POLY_SET self) -> bool"""
6809 return _pcbnew.SHAPE_POLY_SET_IsEmpty(self)
6810
6811 def RemoveVertex(self, *args):
6812 r"""
6813 RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
6814 RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)
6815 """
6816 return _pcbnew.SHAPE_POLY_SET_RemoveVertex(self, *args)
6817
6819 r"""RemoveAllContours(SHAPE_POLY_SET self)"""
6820 return _pcbnew.SHAPE_POLY_SET_RemoveAllContours(self)
6821
6822 def RemoveContour(self, aContourIdx, aPolygonIdx=-1):
6823 r"""RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)"""
6824 return _pcbnew.SHAPE_POLY_SET_RemoveContour(self, aContourIdx, aPolygonIdx)
6825
6826 def RemoveOutline(self, aOutlineIdx):
6827 r"""RemoveOutline(SHAPE_POLY_SET self, int aOutlineIdx)"""
6828 return _pcbnew.SHAPE_POLY_SET_RemoveOutline(self, aOutlineIdx)
6829
6831 r"""RemoveNullSegments(SHAPE_POLY_SET self) -> int"""
6832 return _pcbnew.SHAPE_POLY_SET_RemoveNullSegments(self)
6833
6834 def SetVertex(self, *args):
6835 r"""
6836 SetVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX const & aIndex, VECTOR2I aPos)
6837 SetVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aPos)
6838 """
6839 return _pcbnew.SHAPE_POLY_SET_SetVertex(self, *args)
6840
6841 def TotalVertices(self):
6842 r"""TotalVertices(SHAPE_POLY_SET self) -> int"""
6843 return _pcbnew.SHAPE_POLY_SET_TotalVertices(self)
6844
6845 def DeletePolygon(self, aIdx):
6846 r"""DeletePolygon(SHAPE_POLY_SET self, int aIdx)"""
6847 return _pcbnew.SHAPE_POLY_SET_DeletePolygon(self, aIdx)
6848
6849 def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True):
6850 r"""DeletePolygonAndTriangulationData(SHAPE_POLY_SET self, int aIdx, bool aUpdateHash=True)"""
6851 return _pcbnew.SHAPE_POLY_SET_DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash)
6852
6854 r"""UpdateTriangulationDataHash(SHAPE_POLY_SET self)"""
6855 return _pcbnew.SHAPE_POLY_SET_UpdateTriangulationDataHash(self)
6856
6857 def ChamferPolygon(self, aDistance, aIndex):
6858 r"""ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
6859 return _pcbnew.SHAPE_POLY_SET_ChamferPolygon(self, aDistance, aIndex)
6860
6861 def FilletPolygon(self, aRadius, aErrorMax, aIndex):
6862 r"""FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
6863 return _pcbnew.SHAPE_POLY_SET_FilletPolygon(self, aRadius, aErrorMax, aIndex)
6864
6865 def Chamfer(self, aDistance):
6866 r"""Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET"""
6867 return _pcbnew.SHAPE_POLY_SET_Chamfer(self, aDistance)
6868
6869 def Fillet(self, aRadius, aErrorMax):
6870 r"""Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET"""
6871 return _pcbnew.SHAPE_POLY_SET_Fillet(self, aRadius, aErrorMax)
6872
6874 r"""
6875 SquaredDistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
6876 SquaredDistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
6877 """
6878 return _pcbnew.SHAPE_POLY_SET_SquaredDistanceToPolygon(self, *args)
6879
6880 def SquaredDistance(self, *args):
6881 r"""
6882 SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly, VECTOR2I aNearest) -> SEG::ecoord
6883 SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly=False) -> SEG::ecoord
6884 """
6885 return _pcbnew.SHAPE_POLY_SET_SquaredDistance(self, *args)
6886
6887 def SquaredDistanceToSeg(self, aSegment, aNearest=None):
6888 r"""SquaredDistanceToSeg(SHAPE_POLY_SET self, SEG aSegment, VECTOR2I aNearest=None) -> SEG::ecoord"""
6889 return _pcbnew.SHAPE_POLY_SET_SquaredDistanceToSeg(self, aSegment, aNearest)
6890
6891 def IsVertexInHole(self, aGlobalIdx):
6892 r"""IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool"""
6893 return _pcbnew.SHAPE_POLY_SET_IsVertexInHole(self, aGlobalIdx)
6894
6895 def BuildPolysetFromOrientedPaths(self, aPaths, aEvenOdd=False):
6896 r"""BuildPolysetFromOrientedPaths(SHAPE_POLY_SET self, std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const & aPaths, bool aEvenOdd=False)"""
6897 return _pcbnew.SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(self, aPaths, aEvenOdd)
6898
6899# Register SHAPE_POLY_SET in _pcbnew:
6900_pcbnew.SHAPE_POLY_SET_swigregister(SHAPE_POLY_SET)
6902 r"""Proxy of C++ SHAPE_RECT class."""
6903
6904 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6905 __repr__ = _swig_repr
6906
6907 def __init__(self, *args):
6908 r"""
6909 __init__(SHAPE_RECT self) -> SHAPE_RECT
6910 __init__(SHAPE_RECT self, BOX2I aBox) -> SHAPE_RECT
6911 __init__(SHAPE_RECT self, int aX0, int aY0, int aW, int aH) -> SHAPE_RECT
6912 __init__(SHAPE_RECT self, VECTOR2I aP0, int aW, int aH) -> SHAPE_RECT
6913 __init__(SHAPE_RECT self, VECTOR2I aP0, VECTOR2I aP1) -> SHAPE_RECT
6914 __init__(SHAPE_RECT self, SHAPE_RECT aOther) -> SHAPE_RECT
6915 """
6916 _pcbnew.SHAPE_RECT_swiginit(self, _pcbnew.new_SHAPE_RECT(*args))
6917
6918 def BBox(self, aClearance=0):
6919 r"""BBox(SHAPE_RECT self, int aClearance=0) -> BOX2I"""
6920 return _pcbnew.SHAPE_RECT_BBox(self, aClearance)
6921
6922 def GetInflated(self, aOffset):
6923 r"""GetInflated(SHAPE_RECT self, int aOffset) -> SHAPE_RECT"""
6924 return _pcbnew.SHAPE_RECT_GetInflated(self, aOffset)
6925
6926 def Diagonal(self):
6927 r"""Diagonal(SHAPE_RECT self) -> int"""
6928 return _pcbnew.SHAPE_RECT_Diagonal(self)
6929
6931 r"""MajorDimension(SHAPE_RECT self) -> int"""
6932 return _pcbnew.SHAPE_RECT_MajorDimension(self)
6933
6935 r"""MinorDimension(SHAPE_RECT self) -> int"""
6936 return _pcbnew.SHAPE_RECT_MinorDimension(self)
6937
6938 def Collide(self, *args):
6939 r"""
6940 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
6941 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6942 Collide(SHAPE_RECT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6943 """
6944 return _pcbnew.SHAPE_RECT_Collide(self, *args)
6945
6946 def GetPosition(self):
6947 r"""GetPosition(SHAPE_RECT self) -> VECTOR2I"""
6948 return _pcbnew.SHAPE_RECT_GetPosition(self)
6949
6950 def GetSize(self):
6951 r"""GetSize(SHAPE_RECT self) -> VECTOR2I"""
6952 return _pcbnew.SHAPE_RECT_GetSize(self)
6953
6954 def GetWidth(self):
6955 r"""GetWidth(SHAPE_RECT self) -> int"""
6956 return _pcbnew.SHAPE_RECT_GetWidth(self)
6957
6958 def GetHeight(self):
6959 r"""GetHeight(SHAPE_RECT self) -> int"""
6960 return _pcbnew.SHAPE_RECT_GetHeight(self)
6961
6962 def Rotate(self, *args):
6963 r"""Rotate(SHAPE_RECT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6964 return _pcbnew.SHAPE_RECT_Rotate(self, *args)
6965
6966 def Outline(self):
6967 r"""Outline(SHAPE_RECT self) -> SHAPE_LINE_CHAIN"""
6968 return _pcbnew.SHAPE_RECT_Outline(self)
6969
6970 def Format(self, aCplusPlus=True):
6971 r"""Format(SHAPE_RECT self, bool aCplusPlus=True) -> string"""
6972 return _pcbnew.SHAPE_RECT_Format(self, aCplusPlus)
6973 __swig_destroy__ = _pcbnew.delete_SHAPE_RECT
6974
6975# Register SHAPE_RECT in _pcbnew:
6976_pcbnew.SHAPE_RECT_swigregister(SHAPE_RECT)
6978 r"""Proxy of C++ SHAPE_SEGMENT class."""
6979
6980 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6981 __repr__ = _swig_repr
6982
6983 def __init__(self, *args):
6984 r"""
6985 __init__(SHAPE_SEGMENT self) -> SHAPE_SEGMENT
6986 __init__(SHAPE_SEGMENT self, VECTOR2I aA, VECTOR2I aB, int aWidth=0) -> SHAPE_SEGMENT
6987 __init__(SHAPE_SEGMENT self, SEG aSeg, int aWidth=0) -> SHAPE_SEGMENT
6988 """
6989 _pcbnew.SHAPE_SEGMENT_swiginit(self, _pcbnew.new_SHAPE_SEGMENT(*args))
6990 __swig_destroy__ = _pcbnew.delete_SHAPE_SEGMENT
6991
6992 def BBox(self, aClearance=0):
6993 r"""BBox(SHAPE_SEGMENT self, int aClearance=0) -> BOX2I"""
6994 return _pcbnew.SHAPE_SEGMENT_BBox(self, aClearance)
6995
6996 def Collide(self, *args):
6997 r"""
6998 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
6999 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7000 Collide(SHAPE_SEGMENT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7001 Collide(SHAPE_SEGMENT self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7002 """
7003 return _pcbnew.SHAPE_SEGMENT_Collide(self, *args)
7004
7005 def SetSeg(self, aSeg):
7006 r"""SetSeg(SHAPE_SEGMENT self, SEG aSeg)"""
7007 return _pcbnew.SHAPE_SEGMENT_SetSeg(self, aSeg)
7008
7009 def GetSeg(self):
7010 r"""GetSeg(SHAPE_SEGMENT self) -> SEG"""
7011 return _pcbnew.SHAPE_SEGMENT_GetSeg(self)
7012
7013 def SetWidth(self, aWidth):
7014 r"""SetWidth(SHAPE_SEGMENT self, int aWidth)"""
7015 return _pcbnew.SHAPE_SEGMENT_SetWidth(self, aWidth)
7016
7017 def GetWidth(self):
7018 r"""GetWidth(SHAPE_SEGMENT self) -> int"""
7019 return _pcbnew.SHAPE_SEGMENT_GetWidth(self)
7020
7021 def Rotate(self, *args):
7022 r"""Rotate(SHAPE_SEGMENT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7023 return _pcbnew.SHAPE_SEGMENT_Rotate(self, *args)
7024
7025 def Is45Degree(self, *args):
7026 r"""Is45Degree(SHAPE_SEGMENT self, EDA_ANGLE aTollerance=EDA_ANGLE( 1.0, DEGREES_T )) -> bool"""
7027 return _pcbnew.SHAPE_SEGMENT_Is45Degree(self, *args)
7028
7029 def Format(self, aCplusPlus=True):
7030 r"""Format(SHAPE_SEGMENT self, bool aCplusPlus=True) -> string"""
7031 return _pcbnew.SHAPE_SEGMENT_Format(self, aCplusPlus)
7032
7033# Register SHAPE_SEGMENT in _pcbnew:
7034_pcbnew.SHAPE_SEGMENT_swigregister(SHAPE_SEGMENT)
7036 r"""Proxy of C++ SHAPE_SIMPLE class."""
7037
7038 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7039 __repr__ = _swig_repr
7040
7041 def __init__(self, *args):
7042 r"""
7043 __init__(SHAPE_SIMPLE self) -> SHAPE_SIMPLE
7044 __init__(SHAPE_SIMPLE self, SHAPE_LINE_CHAIN aPoly) -> SHAPE_SIMPLE
7045 __init__(SHAPE_SIMPLE self, SHAPE_SIMPLE aOther) -> SHAPE_SIMPLE
7046 """
7047 _pcbnew.SHAPE_SIMPLE_swiginit(self, _pcbnew.new_SHAPE_SIMPLE(*args))
7048
7049 def Clear(self):
7050 r"""Clear(SHAPE_SIMPLE self)"""
7051 return _pcbnew.SHAPE_SIMPLE_Clear(self)
7052
7053 def BBox(self, aClearance=0):
7054 r"""BBox(SHAPE_SIMPLE self, int aClearance=0) -> BOX2I"""
7055 return _pcbnew.SHAPE_SIMPLE_BBox(self, aClearance)
7056
7057 def PointCount(self):
7058 r"""PointCount(SHAPE_SIMPLE self) -> int"""
7059 return _pcbnew.SHAPE_SIMPLE_PointCount(self)
7060
7061 def CPoint(self, aIndex):
7062 r"""CPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2I"""
7063 return _pcbnew.SHAPE_SIMPLE_CPoint(self, aIndex)
7064
7065 def CDPoint(self, aIndex):
7066 r"""CDPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2D const"""
7067 return _pcbnew.SHAPE_SIMPLE_CDPoint(self, aIndex)
7068
7069 def Vertices(self):
7070 r"""Vertices(SHAPE_SIMPLE self) -> SHAPE_LINE_CHAIN"""
7071 return _pcbnew.SHAPE_SIMPLE_Vertices(self)
7072
7073 def Append(self, *args):
7074 r"""
7075 Append(SHAPE_SIMPLE self, int aX, int aY)
7076 Append(SHAPE_SIMPLE self, VECTOR2I aP)
7077 """
7078 return _pcbnew.SHAPE_SIMPLE_Append(self, *args)
7079
7080 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
7081 r"""Collide(SHAPE_SIMPLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
7082 return _pcbnew.SHAPE_SIMPLE_Collide(self, aSeg, aClearance, aActual, aLocation)
7083
7084 def Rotate(self, *args):
7085 r"""Rotate(SHAPE_SIMPLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7086 return _pcbnew.SHAPE_SIMPLE_Rotate(self, *args)
7087 __swig_destroy__ = _pcbnew.delete_SHAPE_SIMPLE
7088
7089# Register SHAPE_SIMPLE in _pcbnew:
7090_pcbnew.SHAPE_SIMPLE_swigregister(SHAPE_SIMPLE)
7091ERROR_OUTSIDE = _pcbnew.ERROR_OUTSIDE
7092
7093ERROR_INSIDE = _pcbnew.ERROR_INSIDE
7094
7096 r"""Proxy of C++ std::vector< std::shared_ptr< SHAPE > > class."""
7097
7098 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7099 __repr__ = _swig_repr
7100
7101 def iterator(self):
7102 r"""iterator(VECTOR_SHAPEPTR self) -> SwigPyIterator"""
7103 return _pcbnew.VECTOR_SHAPEPTR_iterator(self)
7104 def __iter__(self):
7105 return self.iterator()
7106
7107 def __nonzero__(self):
7108 r"""__nonzero__(VECTOR_SHAPEPTR self) -> bool"""
7109 return _pcbnew.VECTOR_SHAPEPTR___nonzero__(self)
7110
7111 def __bool__(self):
7112 r"""__bool__(VECTOR_SHAPEPTR self) -> bool"""
7113 return _pcbnew.VECTOR_SHAPEPTR___bool__(self)
7114
7115 def __len__(self):
7116 r"""__len__(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7117 return _pcbnew.VECTOR_SHAPEPTR___len__(self)
7118
7119 def __getslice__(self, i, j):
7120 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"""
7121 return _pcbnew.VECTOR_SHAPEPTR___getslice__(self, i, j)
7122
7123 def __setslice__(self, *args):
7124 r"""
7125 __setslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)
7126 __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)
7127 """
7128 return _pcbnew.VECTOR_SHAPEPTR___setslice__(self, *args)
7129
7130 def __delslice__(self, i, j):
7131 r"""__delslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)"""
7132 return _pcbnew.VECTOR_SHAPEPTR___delslice__(self, i, j)
7133
7134 def __delitem__(self, *args):
7135 r"""
7136 __delitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i)
7137 __delitem__(VECTOR_SHAPEPTR self, SWIGPY_SLICEOBJECT * slice)
7138 """
7139 return _pcbnew.VECTOR_SHAPEPTR___delitem__(self, *args)
7140
7141 def __getitem__(self, *args):
7142 r"""
7143 __getitem__(VECTOR_SHAPEPTR self, SWIGPY_SLICEOBJECT * slice) -> VECTOR_SHAPEPTR
7144 __getitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &
7145 """
7146 return _pcbnew.VECTOR_SHAPEPTR___getitem__(self, *args)
7147
7148 def __setitem__(self, *args):
7149 r"""
7150 __setitem__(VECTOR_SHAPEPTR self, SWIGPY_SLICEOBJECT * slice, VECTOR_SHAPEPTR v)
7151 __setitem__(VECTOR_SHAPEPTR self, SWIGPY_SLICEOBJECT * slice)
7152 __setitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7153 """
7154 return _pcbnew.VECTOR_SHAPEPTR___setitem__(self, *args)
7155
7156 def pop(self):
7157 r"""pop(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type"""
7158 return _pcbnew.VECTOR_SHAPEPTR_pop(self)
7159
7160 def append(self, x):
7161 r"""append(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7162 return _pcbnew.VECTOR_SHAPEPTR_append(self, x)
7163
7164 def empty(self):
7165 r"""empty(VECTOR_SHAPEPTR self) -> bool"""
7166 return _pcbnew.VECTOR_SHAPEPTR_empty(self)
7167
7168 def size(self):
7169 r"""size(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7170 return _pcbnew.VECTOR_SHAPEPTR_size(self)
7171
7172 def swap(self, v):
7173 r"""swap(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR v)"""
7174 return _pcbnew.VECTOR_SHAPEPTR_swap(self, v)
7175
7176 def begin(self):
7177 r"""begin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7178 return _pcbnew.VECTOR_SHAPEPTR_begin(self)
7179
7180 def end(self):
7181 r"""end(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7182 return _pcbnew.VECTOR_SHAPEPTR_end(self)
7183
7184 def rbegin(self):
7185 r"""rbegin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7186 return _pcbnew.VECTOR_SHAPEPTR_rbegin(self)
7187
7188 def rend(self):
7189 r"""rend(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7190 return _pcbnew.VECTOR_SHAPEPTR_rend(self)
7191
7192 def clear(self):
7193 r"""clear(VECTOR_SHAPEPTR self)"""
7194 return _pcbnew.VECTOR_SHAPEPTR_clear(self)
7195
7196 def get_allocator(self):
7197 r"""get_allocator(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::allocator_type"""
7198 return _pcbnew.VECTOR_SHAPEPTR_get_allocator(self)
7199
7200 def pop_back(self):
7201 r"""pop_back(VECTOR_SHAPEPTR self)"""
7202 return _pcbnew.VECTOR_SHAPEPTR_pop_back(self)
7203
7204 def erase(self, *args):
7205 r"""
7206 erase(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::iterator pos) -> std::vector< std::shared_ptr< SHAPE > >::iterator
7207 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
7208 """
7209 return _pcbnew.VECTOR_SHAPEPTR_erase(self, *args)
7210
7211 def __init__(self, *args):
7212 r"""
7213 __init__(VECTOR_SHAPEPTR self) -> VECTOR_SHAPEPTR
7214 __init__(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR other) -> VECTOR_SHAPEPTR
7215 __init__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type size) -> VECTOR_SHAPEPTR
7216 __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
7217 """
7218 _pcbnew.VECTOR_SHAPEPTR_swiginit(self, _pcbnew.new_VECTOR_SHAPEPTR(*args))
7219
7220 def push_back(self, x):
7221 r"""push_back(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7222 return _pcbnew.VECTOR_SHAPEPTR_push_back(self, x)
7223
7224 def front(self):
7225 r"""front(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7226 return _pcbnew.VECTOR_SHAPEPTR_front(self)
7227
7228 def back(self):
7229 r"""back(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7230 return _pcbnew.VECTOR_SHAPEPTR_back(self)
7231
7232 def assign(self, n, x):
7233 r"""assign(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7234 return _pcbnew.VECTOR_SHAPEPTR_assign(self, n, x)
7235
7236 def resize(self, *args):
7237 r"""
7238 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size)
7239 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7240 """
7241 return _pcbnew.VECTOR_SHAPEPTR_resize(self, *args)
7242
7243 def insert(self, *args):
7244 r"""
7245 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
7246 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)
7247 """
7248 return _pcbnew.VECTOR_SHAPEPTR_insert(self, *args)
7249
7250 def reserve(self, n):
7251 r"""reserve(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n)"""
7252 return _pcbnew.VECTOR_SHAPEPTR_reserve(self, n)
7253
7254 def capacity(self):
7255 r"""capacity(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7256 return _pcbnew.VECTOR_SHAPEPTR_capacity(self)
7257
7258 def __iter__(self):
7259 it = self.iterator()
7260 try:
7261 while True:
7262 item = it.next() # throws StopIteration when iterator reached the end.
7263 yield item.Cast()
7264 except StopIteration:
7265 return
7266
7267 __swig_destroy__ = _pcbnew.delete_VECTOR_SHAPEPTR
7268
7269# Register VECTOR_SHAPEPTR in _pcbnew:
7270_pcbnew.VECTOR_SHAPEPTR_swigregister(VECTOR_SHAPEPTR)
7271
7273 r"""Cast_to_SHAPE_ARC(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_ARC >"""
7274 return _pcbnew.Cast_to_SHAPE_ARC(_self)
7275
7277 r"""Cast_to_SHAPE_CIRCLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_CIRCLE >"""
7278 return _pcbnew.Cast_to_SHAPE_CIRCLE(_self)
7279
7281 r"""Cast_to_SHAPE_COMPOUND(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_COMPOUND >"""
7282 return _pcbnew.Cast_to_SHAPE_COMPOUND(_self)
7283
7285 r"""Cast_to_SHAPE_LINE_CHAIN(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_LINE_CHAIN >"""
7286 return _pcbnew.Cast_to_SHAPE_LINE_CHAIN(_self)
7287
7289 r"""Cast_to_SHAPE_POLY_SET(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_POLY_SET >"""
7290 return _pcbnew.Cast_to_SHAPE_POLY_SET(_self)
7291
7293 r"""Cast_to_SHAPE_RECT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_RECT >"""
7294 return _pcbnew.Cast_to_SHAPE_RECT(_self)
7295
7297 r"""Cast_to_SHAPE_SEGMENT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SEGMENT >"""
7298 return _pcbnew.Cast_to_SHAPE_SEGMENT(_self)
7299
7301 r"""Cast_to_SHAPE_SIMPLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SIMPLE >"""
7302 return _pcbnew.Cast_to_SHAPE_SIMPLE(_self)
7303FLIP_DIRECTION_LEFT_RIGHT = _pcbnew.FLIP_DIRECTION_LEFT_RIGHT
7304
7305FLIP_DIRECTION_TOP_BOTTOM = _pcbnew.FLIP_DIRECTION_TOP_BOTTOM
7306
7307
7308def IsUTF8(aString):
7309 r"""IsUTF8(char const * aString) -> bool"""
7310 return _pcbnew.IsUTF8(aString)
7312 r"""Proxy of C++ UTF8 class."""
7313
7314 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7315 __repr__ = _swig_repr
7316
7317 def __init__(self, *args):
7318 r"""
7319 __init__(UTF8 self, wxString o) -> UTF8
7320 __init__(UTF8 self, char const * txt) -> UTF8
7321 __init__(UTF8 self, wchar_t const * txt) -> UTF8
7322 __init__(UTF8 self, string o) -> UTF8
7323 __init__(UTF8 self) -> UTF8
7324 """
7325 _pcbnew.UTF8_swiginit(self, _pcbnew.new_UTF8(*args))
7326 __swig_destroy__ = _pcbnew.delete_UTF8
7327
7328 def c_str(self):
7329 r"""c_str(UTF8 self) -> char const *"""
7330 return _pcbnew.UTF8_c_str(self)
7331
7332 def empty(self):
7333 r"""empty(UTF8 self) -> bool"""
7334 return _pcbnew.UTF8_empty(self)
7335
7336 def find(self, *args):
7337 r"""
7338 find(UTF8 self, char c) -> std::string::size_type
7339 find(UTF8 self, char c, size_t s) -> std::string::size_type
7340 """
7341 return _pcbnew.UTF8_find(self, *args)
7342
7343 def clear(self):
7344 r"""clear(UTF8 self)"""
7345 return _pcbnew.UTF8_clear(self)
7346
7347 def length(self):
7348 r"""length(UTF8 self) -> std::string::size_type"""
7349 return _pcbnew.UTF8_length(self)
7350
7351 def size(self):
7352 r"""size(UTF8 self) -> std::string::size_type"""
7353 return _pcbnew.UTF8_size(self)
7354
7355 def compare(self, s):
7356 r"""compare(UTF8 self, string s) -> int"""
7357 return _pcbnew.UTF8_compare(self, s)
7358
7359 def __eq__(self, *args):
7360 r"""
7361 __eq__(UTF8 self, UTF8 rhs) -> bool
7362 __eq__(UTF8 self, string rhs) -> bool
7363 __eq__(UTF8 self, char const * s) -> bool
7364 """
7365 return _pcbnew.UTF8___eq__(self, *args)
7366
7367 def __ne__(self, rhs):
7368 r"""__ne__(UTF8 self, UTF8 rhs) -> bool"""
7369 return _pcbnew.UTF8___ne__(self, rhs)
7370
7371 def __lt__(self, rhs):
7372 r"""__lt__(UTF8 self, UTF8 rhs) -> bool"""
7373 return _pcbnew.UTF8___lt__(self, rhs)
7374
7375 def __gt__(self, rhs):
7376 r"""__gt__(UTF8 self, UTF8 rhs) -> bool"""
7377 return _pcbnew.UTF8___gt__(self, rhs)
7378
7379 def find_first_of(self, str, pos=0):
7380 r"""find_first_of(UTF8 self, string str, std::string::size_type pos=0) -> std::string::size_type"""
7381 return _pcbnew.UTF8_find_first_of(self, str, pos)
7382
7383 def __iadd__(self, *args):
7384 r"""
7385 __iadd__(UTF8 self, UTF8 str) -> UTF8
7386 __iadd__(UTF8 self, char ch) -> UTF8
7387 __iadd__(UTF8 self, char const * s) -> UTF8
7388 __iadd__(UTF8 self, unsigned int w_ch) -> UTF8
7389 """
7390 return _pcbnew.UTF8___iadd__(self, *args)
7391 npos = _pcbnew.UTF8_npos
7392
7393
7394 def substr(self, *args):
7395 r"""substr(UTF8 self, size_t pos=0, size_t len=npos) -> string"""
7396 return _pcbnew.UTF8_substr(self, *args)
7397
7399 r"""utf8_to_string(UTF8 self) -> string"""
7400 return _pcbnew.UTF8_utf8_to_string(self)
7401
7402 def wx_str(self):
7403 r"""wx_str(UTF8 self) -> wxString"""
7404 return _pcbnew.UTF8_wx_str(self)
7405
7407 r"""utf8_to_wxstring(UTF8 self) -> wxString"""
7408 return _pcbnew.UTF8_utf8_to_wxstring(self)
7409
7410 def begin(self):
7411 r"""begin(UTF8 self) -> std::string::const_iterator"""
7412 return _pcbnew.UTF8_begin(self)
7413
7414 def end(self):
7415 r"""end(UTF8 self) -> std::string::const_iterator"""
7416 return _pcbnew.UTF8_end(self)
7417
7418 def Cast_to_CChar(self):
7419 r"""Cast_to_CChar(UTF8 self) -> char const *"""
7420 return _pcbnew.UTF8_Cast_to_CChar(self)
7421
7422
7423 # Get the char buffer of the UTF8 string
7424 def GetChars(self):
7425 return self.Cast_to_CChar()
7426
7427 # Convert the UTF8 string to a python string
7428 # Same as GetChars(), but more easy to use in print command
7429 def __str__(self):
7430 return self.GetChars()
7431
7432
7433
7434# Register UTF8 in _pcbnew:
7435_pcbnew.UTF8_swigregister(UTF8)
7437 r"""Proxy of C++ LIB_ID class."""
7438
7439 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7440 __repr__ = _swig_repr
7441
7442 def __init__(self, *args):
7443 r"""
7444 __init__(LIB_ID self) -> LIB_ID
7445 __init__(LIB_ID self, wxString aLibraryName, wxString aItemName) -> LIB_ID
7446 """
7447 _pcbnew.LIB_ID_swiginit(self, _pcbnew.new_LIB_ID(*args))
7448
7449 def Parse(self, aId, aFix=False):
7450 r"""Parse(LIB_ID self, UTF8 aId, bool aFix=False) -> int"""
7451 return _pcbnew.LIB_ID_Parse(self, aId, aFix)
7452
7454 r"""GetLibNickname(LIB_ID self) -> UTF8"""
7455 return _pcbnew.LIB_ID_GetLibNickname(self)
7456
7458 r"""GetUniStringLibNickname(LIB_ID self) -> wxString"""
7459 return _pcbnew.LIB_ID_GetUniStringLibNickname(self)
7460
7461 def SetLibNickname(self, aLibNickname):
7462 r"""SetLibNickname(LIB_ID self, UTF8 aLibNickname) -> int"""
7463 return _pcbnew.LIB_ID_SetLibNickname(self, aLibNickname)
7464
7466 r"""GetLibItemName(LIB_ID self) -> UTF8"""
7467 return _pcbnew.LIB_ID_GetLibItemName(self)
7468
7470 r"""GetUniStringLibItemName(LIB_ID self) -> wxString"""
7471 return _pcbnew.LIB_ID_GetUniStringLibItemName(self)
7472
7473 def SetLibItemName(self, aLibItemName):
7474 r"""SetLibItemName(LIB_ID self, UTF8 aLibItemName) -> int"""
7475 return _pcbnew.LIB_ID_SetLibItemName(self, aLibItemName)
7476
7478 r"""GetSubLibraryName(LIB_ID self) -> UTF8"""
7479 return _pcbnew.LIB_ID_GetSubLibraryName(self)
7480
7481 def SetSubLibraryName(self, aName):
7482 r"""SetSubLibraryName(LIB_ID self, UTF8 aName)"""
7483 return _pcbnew.LIB_ID_SetSubLibraryName(self, aName)
7484
7486 r"""GetUniStringSubLibraryName(LIB_ID self) -> wxString"""
7487 return _pcbnew.LIB_ID_GetUniStringSubLibraryName(self)
7488
7490 r"""GetFullLibraryName(LIB_ID self) -> wxString"""
7491 return _pcbnew.LIB_ID_GetFullLibraryName(self)
7492
7494 r"""GetUniStringLibId(LIB_ID self) -> wxString"""
7495 return _pcbnew.LIB_ID_GetUniStringLibId(self)
7496
7497 @staticmethod
7498 def Format(*args):
7499 r"""
7500 Format() -> UTF8
7501 Format(UTF8 aLibraryName, UTF8 aLibItemName) -> UTF8
7502 """
7503 return _pcbnew.LIB_ID_Format(*args)
7504
7505 def IsValid(self):
7506 r"""IsValid(LIB_ID self) -> bool"""
7507 return _pcbnew.LIB_ID_IsValid(self)
7508
7509 def IsLegacy(self):
7510 r"""IsLegacy(LIB_ID self) -> bool"""
7511 return _pcbnew.LIB_ID_IsLegacy(self)
7512
7513 def clear(self):
7514 r"""clear(LIB_ID self)"""
7515 return _pcbnew.LIB_ID_clear(self)
7516
7517 def empty(self):
7518 r"""empty(LIB_ID self) -> bool"""
7519 return _pcbnew.LIB_ID_empty(self)
7520
7521 def compare(self, aLibId):
7522 r"""compare(LIB_ID self, LIB_ID aLibId) -> int"""
7523 return _pcbnew.LIB_ID_compare(self, aLibId)
7524
7525 def __lt__(self, aLibId):
7526 r"""__lt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7527 return _pcbnew.LIB_ID___lt__(self, aLibId)
7528
7529 def __gt__(self, aLibId):
7530 r"""__gt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7531 return _pcbnew.LIB_ID___gt__(self, aLibId)
7532
7533 def __eq__(self, aLibId):
7534 r"""__eq__(LIB_ID self, LIB_ID aLibId) -> bool"""
7535 return _pcbnew.LIB_ID___eq__(self, aLibId)
7536
7537 def __ne__(self, aLibId):
7538 r"""__ne__(LIB_ID self, LIB_ID aLibId) -> bool"""
7539 return _pcbnew.LIB_ID___ne__(self, aLibId)
7540
7541 @staticmethod
7542 def HasIllegalChars(aLibItemName):
7543 r"""HasIllegalChars(UTF8 aLibItemName) -> int"""
7544 return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName)
7545
7546 @staticmethod
7547 def FixIllegalChars(aLibItemName, aLib):
7548 r"""FixIllegalChars(UTF8 aLibItemName, bool aLib) -> UTF8"""
7549 return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aLib)
7550
7551 @staticmethod
7553 r"""FindIllegalLibraryNameChar(UTF8 aLibraryName) -> unsigned int"""
7554 return _pcbnew.LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
7555 __swig_destroy__ = _pcbnew.delete_LIB_ID
7556
7557# Register LIB_ID in _pcbnew:
7558_pcbnew.LIB_ID_swigregister(LIB_ID)
7560 r"""Proxy of C++ BASE_SET class."""
7561
7562 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7563
7564 def __init__(self, *args, **kwargs):
7565 raise AttributeError("No constructor defined")
7566 __repr__ = _swig_repr
7567 __swig_destroy__ = _pcbnew.delete_BASE_SET
7568
7569# Register BASE_SET in _pcbnew:
7570_pcbnew.BASE_SET_swigregister(BASE_SET)
7572 r"""Proxy of C++ PCB_IO_MGR class."""
7573
7574 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7575 __repr__ = _swig_repr
7576 PCB_FILE_UNKNOWN = _pcbnew.PCB_IO_MGR_PCB_FILE_UNKNOWN
7577
7578 KICAD_SEXP = _pcbnew.PCB_IO_MGR_KICAD_SEXP
7579
7580 LEGACY = _pcbnew.PCB_IO_MGR_LEGACY
7581
7582 ALTIUM_CIRCUIT_MAKER = _pcbnew.PCB_IO_MGR_ALTIUM_CIRCUIT_MAKER
7583
7584 ALTIUM_CIRCUIT_STUDIO = _pcbnew.PCB_IO_MGR_ALTIUM_CIRCUIT_STUDIO
7585
7586 ALTIUM_DESIGNER = _pcbnew.PCB_IO_MGR_ALTIUM_DESIGNER
7587
7588 CADSTAR_PCB_ARCHIVE = _pcbnew.PCB_IO_MGR_CADSTAR_PCB_ARCHIVE
7589
7590 EAGLE = _pcbnew.PCB_IO_MGR_EAGLE
7591
7592 EASYEDA = _pcbnew.PCB_IO_MGR_EASYEDA
7593
7594 EASYEDAPRO = _pcbnew.PCB_IO_MGR_EASYEDAPRO
7595
7596 FABMASTER = _pcbnew.PCB_IO_MGR_FABMASTER
7597
7598 GEDA_PCB = _pcbnew.PCB_IO_MGR_GEDA_PCB
7599
7600 PCAD = _pcbnew.PCB_IO_MGR_PCAD
7601
7602 SOLIDWORKS_PCB = _pcbnew.PCB_IO_MGR_SOLIDWORKS_PCB
7603
7604 IPC2581 = _pcbnew.PCB_IO_MGR_IPC2581
7605
7606 ODBPP = _pcbnew.PCB_IO_MGR_ODBPP
7607
7608 FILE_TYPE_NONE = _pcbnew.PCB_IO_MGR_FILE_TYPE_NONE
7609
7610
7611 @staticmethod
7612 def PluginFind(aFileType):
7613 r"""PluginFind(PCB_IO_MGR::PCB_FILE_T aFileType) -> PCB_IO"""
7614 return _pcbnew.PCB_IO_MGR_PluginFind(aFileType)
7615
7616 @staticmethod
7617 def ShowType(aFileType):
7618 r"""ShowType(PCB_IO_MGR::PCB_FILE_T aFileType) -> wxString"""
7619 return _pcbnew.PCB_IO_MGR_ShowType(aFileType)
7620
7621 @staticmethod
7622 def EnumFromStr(aFileType):
7623 r"""EnumFromStr(wxString aFileType) -> PCB_IO_MGR::PCB_FILE_T"""
7624 return _pcbnew.PCB_IO_MGR_EnumFromStr(aFileType)
7625
7626 @staticmethod
7627 def FindPluginTypeFromBoardPath(aFileName, aCtl=0):
7628 r"""FindPluginTypeFromBoardPath(wxString aFileName, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
7629 return _pcbnew.PCB_IO_MGR_FindPluginTypeFromBoardPath(aFileName, aCtl)
7630
7631 @staticmethod
7632 def GuessPluginTypeFromLibPath(aLibPath, aCtl=0):
7633 r"""GuessPluginTypeFromLibPath(wxString aLibPath, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
7634 return _pcbnew.PCB_IO_MGR_GuessPluginTypeFromLibPath(aLibPath, aCtl)
7635
7636 @staticmethod
7637 def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None):
7638 r"""Load(PCB_IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aAppendToMe=None, str_utf8_Map aProperties=None, PROJECT * aProject=None, PROGRESS_REPORTER * aProgressReporter=None) -> BOARD"""
7639 return _pcbnew.PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
7640
7641 @staticmethod
7642 def Save(aFileType, aFileName, aBoard, aProperties=None):
7643 r"""Save(PCB_IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, str_utf8_Map aProperties=None)"""
7644 return _pcbnew.PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
7645
7646 @staticmethod
7647 def ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath, aReporter):
7648 r"""ConvertLibrary(str_utf8_Map aOldFileProps, wxString aOldFilePath, wxString aNewFilePath, REPORTER * aReporter) -> bool"""
7649 return _pcbnew.PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath, aReporter)
7650
7651 def __init__(self):
7652 r"""__init__(PCB_IO_MGR self) -> PCB_IO_MGR"""
7653 _pcbnew.PCB_IO_MGR_swiginit(self, _pcbnew.new_PCB_IO_MGR())
7654 __swig_destroy__ = _pcbnew.delete_PCB_IO_MGR
7655
7656# Register PCB_IO_MGR in _pcbnew:
7657_pcbnew.PCB_IO_MGR_swigregister(PCB_IO_MGR)
7659 r"""Proxy of C++ PCB_IO class."""
7660
7661 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7662
7663 def __init__(self, *args, **kwargs):
7664 raise AttributeError("No constructor defined - class is abstract")
7665 __repr__ = _swig_repr
7666
7668 r"""GetBoardFileDesc(PCB_IO self) -> IO_BASE::IO_FILE_DESC const"""
7669 return _pcbnew.PCB_IO_GetBoardFileDesc(self)
7670
7671 def CanReadBoard(self, aFileName):
7672 r"""CanReadBoard(PCB_IO self, wxString aFileName) -> bool"""
7673 return _pcbnew.PCB_IO_CanReadBoard(self, aFileName)
7674
7675 def CanReadFootprint(self, aFileName):
7676 r"""CanReadFootprint(PCB_IO self, wxString aFileName) -> bool"""
7677 return _pcbnew.PCB_IO_CanReadFootprint(self, aFileName)
7678
7679 def SetQueryUserCallback(self, aCallback):
7680 r"""SetQueryUserCallback(PCB_IO self, std::function< bool (wxString,int,wxString,wxString) > aCallback)"""
7681 return _pcbnew.PCB_IO_SetQueryUserCallback(self, aCallback)
7682
7683 def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None):
7684 r"""LoadBoard(PCB_IO self, wxString aFileName, BOARD aAppendToMe, str_utf8_Map aProperties=None, PROJECT * aProject=None) -> BOARD"""
7685 return _pcbnew.PCB_IO_LoadBoard(self, aFileName, aAppendToMe, aProperties, aProject)
7686
7688 r"""GetImportedCachedLibraryFootprints(PCB_IO self) -> std::vector< FOOTPRINT *,std::allocator< FOOTPRINT * > >"""
7689 return _pcbnew.PCB_IO_GetImportedCachedLibraryFootprints(self)
7690
7691 def SaveBoard(self, aFileName, aBoard, aProperties=None):
7692 r"""SaveBoard(PCB_IO self, wxString aFileName, BOARD aBoard, str_utf8_Map aProperties=None)"""
7693 return _pcbnew.PCB_IO_SaveBoard(self, aFileName, aBoard, aProperties)
7694
7695 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
7696 r"""FootprintEnumerate(PCB_IO self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, str_utf8_Map aProperties=None)"""
7697 return _pcbnew.PCB_IO_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
7698
7699 def GetLibraryTimestamp(self, aLibraryPath):
7700 r"""GetLibraryTimestamp(PCB_IO self, wxString aLibraryPath) -> long long"""
7701 return _pcbnew.PCB_IO_GetLibraryTimestamp(self, aLibraryPath)
7702
7703 def PrefetchLib(self, aLibraryPath, aProperties=None):
7704 r"""PrefetchLib(PCB_IO self, wxString aLibraryPath, str_utf8_Map aProperties=None)"""
7705 return _pcbnew.PCB_IO_PrefetchLib(self, aLibraryPath, aProperties)
7706
7707 def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None):
7708 r"""ImportFootprint(PCB_IO self, wxString aFootprintPath, wxString aFootprintNameOut, str_utf8_Map aProperties=None) -> FOOTPRINT"""
7709 return _pcbnew.PCB_IO_ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties)
7710
7711 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
7712 r"""FootprintLoad(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, str_utf8_Map aProperties=None) -> FOOTPRINT"""
7713 return _pcbnew.PCB_IO_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
7714
7715 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
7716 r"""GetEnumeratedFootprint(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None) -> FOOTPRINT"""
7717 return _pcbnew.PCB_IO_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
7718
7719 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
7720 r"""FootprintExists(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None) -> bool"""
7721 return _pcbnew.PCB_IO_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
7722
7723 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
7724 r"""FootprintSave(PCB_IO self, wxString aLibraryPath, FOOTPRINT aFootprint, str_utf8_Map aProperties=None)"""
7725 return _pcbnew.PCB_IO_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
7726
7727 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
7728 r"""FootprintDelete(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None)"""
7729 return _pcbnew.PCB_IO_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
7730
7731 def GetLibraryOptions(self, aListToAppendTo):
7732 r"""GetLibraryOptions(PCB_IO self, str_utf8_Map aListToAppendTo)"""
7733 return _pcbnew.PCB_IO_GetLibraryOptions(self, aListToAppendTo)
7734 __swig_destroy__ = _pcbnew.delete_PCB_IO
7735
7736 def footprintPyEnumerate(self, aLibraryPath, aExitOnError):
7737 r"""footprintPyEnumerate(PCB_IO self, wxString aLibraryPath, bool aExitOnError) -> wxArrayString"""
7738 return _pcbnew.PCB_IO_footprintPyEnumerate(self, aLibraryPath, aExitOnError)
7739
7740 def FootprintEnumerate(self, libname):
7741 return self.footprintPyEnumerate( libname, True )
7742
7743 # Old function name for compatibility with pre-v8 scripts, use CreateLibrary() for new scripts.
7744 def FootprintLibCreate(self, aLibraryPath, aProperties=None):
7745 self.CreateLibrary(aLibraryPath, aProperties)
7746
7747 # Old function name for compatibility with pre-v8 scripts, use DeleteLibrary() for new scripts.
7748 def FootprintLibDelete(self, aLibraryPath, aProperties=None):
7749 return self.DeleteLibrary(aLibraryPath, aProperties)
7750
7751 # Old function name for compatibility with pre-v8 scripts, use IsLibraryWritable() for new scripts.
7752 def IsFootprintLibWritable(self, aLibraryPath):
7753 return self.IsLibraryWritable(aLibraryPath)
7754
7755
7756# Register PCB_IO in _pcbnew:
7757_pcbnew.PCB_IO_swigregister(PCB_IO)
7758SEXPR_BOARD_FILE_VERSION = _pcbnew.SEXPR_BOARD_FILE_VERSION
7759
7760BOARD_FILE_HOST_VERSION = _pcbnew.BOARD_FILE_HOST_VERSION
7761
7762LEGACY_ARC_FORMATTING = _pcbnew.LEGACY_ARC_FORMATTING
7763
7764LEGACY_NET_TIES = _pcbnew.LEGACY_NET_TIES
7765
7766FIRST_NORMALIZED_VERISON = _pcbnew.FIRST_NORMALIZED_VERISON
7767
7769 r"""Proxy of C++ FP_CACHE_ITEM class."""
7770
7771 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7772 __repr__ = _swig_repr
7773
7774 def __init__(self, aFootprint, aFileName):
7775 r"""__init__(FP_CACHE_ITEM self, FOOTPRINT aFootprint, WX_FILENAME const & aFileName) -> FP_CACHE_ITEM"""
7776 _pcbnew.FP_CACHE_ITEM_swiginit(self, _pcbnew.new_FP_CACHE_ITEM(aFootprint, aFileName))
7777
7778 def GetFileName(self):
7779 r"""GetFileName(FP_CACHE_ITEM self) -> WX_FILENAME const &"""
7780 return _pcbnew.FP_CACHE_ITEM_GetFileName(self)
7781
7782 def SetFilePath(self, aFilePath):
7783 r"""SetFilePath(FP_CACHE_ITEM self, wxString aFilePath)"""
7784 return _pcbnew.FP_CACHE_ITEM_SetFilePath(self, aFilePath)
7785
7786 def GetFootprint(self):
7787 r"""GetFootprint(FP_CACHE_ITEM self) -> FOOTPRINT"""
7788 return _pcbnew.FP_CACHE_ITEM_GetFootprint(self)
7789 __swig_destroy__ = _pcbnew.delete_FP_CACHE_ITEM
7790
7791# Register FP_CACHE_ITEM in _pcbnew:
7792_pcbnew.FP_CACHE_ITEM_swigregister(FP_CACHE_ITEM)
7794 r"""Proxy of C++ FP_CACHE class."""
7795
7796 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7797 __repr__ = _swig_repr
7798
7799 def __init__(self, aOwner, aLibraryPath):
7800 r"""__init__(FP_CACHE self, PCB_IO_KICAD_SEXPR aOwner, wxString aLibraryPath) -> FP_CACHE"""
7801 _pcbnew.FP_CACHE_swiginit(self, _pcbnew.new_FP_CACHE(aOwner, aLibraryPath))
7802
7803 def GetPath(self):
7804 r"""GetPath(FP_CACHE self) -> wxString"""
7805 return _pcbnew.FP_CACHE_GetPath(self)
7806
7807 def IsWritable(self):
7808 r"""IsWritable(FP_CACHE self) -> bool"""
7809 return _pcbnew.FP_CACHE_IsWritable(self)
7810
7811 def Exists(self):
7812 r"""Exists(FP_CACHE self) -> bool"""
7813 return _pcbnew.FP_CACHE_Exists(self)
7814
7815 def GetFootprints(self):
7816 r"""GetFootprints(FP_CACHE self) -> FP_CACHE_FOOTPRINT_MAP &"""
7817 return _pcbnew.FP_CACHE_GetFootprints(self)
7818
7819 def Save(self, aFootprint=None):
7820 r"""Save(FP_CACHE self, FOOTPRINT aFootprint=None)"""
7821 return _pcbnew.FP_CACHE_Save(self, aFootprint)
7822
7823 def Load(self):
7824 r"""Load(FP_CACHE self)"""
7825 return _pcbnew.FP_CACHE_Load(self)
7826
7827 def Remove(self, aFootprintName):
7828 r"""Remove(FP_CACHE self, wxString aFootprintName)"""
7829 return _pcbnew.FP_CACHE_Remove(self, aFootprintName)
7830
7831 @staticmethod
7832 def GetTimestamp(aLibPath):
7833 r"""GetTimestamp(wxString aLibPath) -> long long"""
7834 return _pcbnew.FP_CACHE_GetTimestamp(aLibPath)
7835
7836 def IsModified(self):
7837 r"""IsModified(FP_CACHE self) -> bool"""
7838 return _pcbnew.FP_CACHE_IsModified(self)
7839
7840 def IsPath(self, aPath):
7841 r"""IsPath(FP_CACHE self, wxString aPath) -> bool"""
7842 return _pcbnew.FP_CACHE_IsPath(self, aPath)
7843
7844 def SetPath(self, aPath):
7845 r"""SetPath(FP_CACHE self, wxString aPath)"""
7846 return _pcbnew.FP_CACHE_SetPath(self, aPath)
7847 __swig_destroy__ = _pcbnew.delete_FP_CACHE
7848
7849# Register FP_CACHE in _pcbnew:
7850_pcbnew.FP_CACHE_swigregister(FP_CACHE)
7852 r"""Proxy of C++ PCB_IO_KICAD_SEXPR class."""
7853
7854 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7855 __repr__ = _swig_repr
7856
7858 r"""GetLibraryFileDesc(PCB_IO_KICAD_SEXPR self) -> IO_BASE::IO_FILE_DESC const"""
7859 return _pcbnew.PCB_IO_KICAD_SEXPR_GetLibraryFileDesc(self)
7860
7862 r"""GetLibraryDesc(PCB_IO_KICAD_SEXPR self) -> IO_BASE::IO_FILE_DESC const"""
7863 return _pcbnew.PCB_IO_KICAD_SEXPR_GetLibraryDesc(self)
7864
7865 def SaveBoard(self, aFileName, aBoard, aProperties=None):
7866 r"""SaveBoard(PCB_IO_KICAD_SEXPR self, wxString aFileName, BOARD aBoard, str_utf8_Map aProperties=None)"""
7867 return _pcbnew.PCB_IO_KICAD_SEXPR_SaveBoard(self, aFileName, aBoard, aProperties)
7868
7869 def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None):
7870 r"""LoadBoard(PCB_IO_KICAD_SEXPR self, wxString aFileName, BOARD aAppendToMe, str_utf8_Map aProperties=None, PROJECT * aProject=None) -> BOARD"""
7871 return _pcbnew.PCB_IO_KICAD_SEXPR_LoadBoard(self, aFileName, aAppendToMe, aProperties, aProject)
7872
7873 def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount):
7874 r"""DoLoad(PCB_IO_KICAD_SEXPR self, LINE_READER aReader, BOARD aAppendToMe, str_utf8_Map aProperties, PROGRESS_REPORTER * aProgressReporter, unsigned int aLineCount) -> BOARD"""
7875 return _pcbnew.PCB_IO_KICAD_SEXPR_DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
7876
7877 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
7878 r"""FootprintEnumerate(PCB_IO_KICAD_SEXPR self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, str_utf8_Map aProperties=None)"""
7879 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
7880
7881 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
7882 r"""GetEnumeratedFootprint(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None) -> FOOTPRINT"""
7883 return _pcbnew.PCB_IO_KICAD_SEXPR_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
7884
7885 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
7886 r"""FootprintExists(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None) -> bool"""
7887 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
7888
7889 def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None):
7890 r"""ImportFootprint(PCB_IO_KICAD_SEXPR self, wxString aFootprintPath, wxString aFootprintNameOut, str_utf8_Map aProperties=None) -> FOOTPRINT"""
7891 return _pcbnew.PCB_IO_KICAD_SEXPR_ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties)
7892
7893 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
7894 r"""FootprintLoad(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, str_utf8_Map aProperties=None) -> FOOTPRINT"""
7895 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
7896
7897 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
7898 r"""FootprintSave(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, FOOTPRINT aFootprint, str_utf8_Map aProperties=None)"""
7899 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
7900
7901 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
7902 r"""FootprintDelete(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None)"""
7903 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
7904
7905 def CreateLibrary(self, aLibraryPath, aProperties=None):
7906 r"""CreateLibrary(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, str_utf8_Map aProperties=None)"""
7907 return _pcbnew.PCB_IO_KICAD_SEXPR_CreateLibrary(self, aLibraryPath, aProperties)
7908
7909 def DeleteLibrary(self, aLibraryPath, aProperties=None):
7910 r"""DeleteLibrary(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, str_utf8_Map aProperties=None) -> bool"""
7911 return _pcbnew.PCB_IO_KICAD_SEXPR_DeleteLibrary(self, aLibraryPath, aProperties)
7912
7913 def IsLibraryWritable(self, aLibraryPath):
7914 r"""IsLibraryWritable(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath) -> bool"""
7915 return _pcbnew.PCB_IO_KICAD_SEXPR_IsLibraryWritable(self, aLibraryPath)
7916
7917 def __init__(self, *args):
7918 r"""__init__(PCB_IO_KICAD_SEXPR self, int aControlFlags=(CTL_OMIT_INITIAL_COMMENTS|CTL_OMIT_FOOTPRINT_VERSION)) -> PCB_IO_KICAD_SEXPR"""
7919 _pcbnew.PCB_IO_KICAD_SEXPR_swiginit(self, _pcbnew.new_PCB_IO_KICAD_SEXPR(*args))
7920 __swig_destroy__ = _pcbnew.delete_PCB_IO_KICAD_SEXPR
7921
7922 def Format(self, aItem):
7923 r"""Format(PCB_IO_KICAD_SEXPR self, BOARD_ITEM aItem)"""
7924 return _pcbnew.PCB_IO_KICAD_SEXPR_Format(self, aItem)
7925
7926 def GetStringOutput(self, doClear):
7927 r"""GetStringOutput(PCB_IO_KICAD_SEXPR self, bool doClear) -> string"""
7928 return _pcbnew.PCB_IO_KICAD_SEXPR_GetStringOutput(self, doClear)
7929
7930 def SetOutputFormatter(self, aFormatter):
7931 r"""SetOutputFormatter(PCB_IO_KICAD_SEXPR self, OUTPUTFORMATTER aFormatter)"""
7932 return _pcbnew.PCB_IO_KICAD_SEXPR_SetOutputFormatter(self, aFormatter)
7933
7934 def Parse(self, aClipboardSourceInput):
7935 r"""Parse(PCB_IO_KICAD_SEXPR self, wxString aClipboardSourceInput) -> BOARD_ITEM"""
7936 return _pcbnew.PCB_IO_KICAD_SEXPR_Parse(self, aClipboardSourceInput)
7937
7938# Register PCB_IO_KICAD_SEXPR in _pcbnew:
7939_pcbnew.PCB_IO_KICAD_SEXPR_swigregister(PCB_IO_KICAD_SEXPR)
7941 r"""Proxy of C++ PLOT_CONTROLLER class."""
7942
7943 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7944 __repr__ = _swig_repr
7945
7946 def __init__(self, aBoard):
7947 r"""__init__(PLOT_CONTROLLER self, BOARD aBoard) -> PLOT_CONTROLLER"""
7948 _pcbnew.PLOT_CONTROLLER_swiginit(self, _pcbnew.new_PLOT_CONTROLLER(aBoard))
7949 __swig_destroy__ = _pcbnew.delete_PLOT_CONTROLLER
7950
7952 r"""GetPlotOptions(PLOT_CONTROLLER self) -> PCB_PLOT_PARAMS"""
7953 return _pcbnew.PLOT_CONTROLLER_GetPlotOptions(self)
7954
7955 def SetLayer(self, aLayer):
7956 r"""SetLayer(PLOT_CONTROLLER self, int aLayer)"""
7957 return _pcbnew.PLOT_CONTROLLER_SetLayer(self, aLayer)
7958
7959 def GetLayer(self):
7960 r"""GetLayer(PLOT_CONTROLLER self) -> int"""
7961 return _pcbnew.PLOT_CONTROLLER_GetLayer(self)
7962
7963 def IsPlotOpen(self):
7964 r"""IsPlotOpen(PLOT_CONTROLLER self) -> bool"""
7965 return _pcbnew.PLOT_CONTROLLER_IsPlotOpen(self)
7966
7967 def ClosePlot(self):
7968 r"""ClosePlot(PLOT_CONTROLLER self)"""
7969 return _pcbnew.PLOT_CONTROLLER_ClosePlot(self)
7970
7971 def OpenPlotfile(self, *args):
7972 r"""OpenPlotfile(PLOT_CONTROLLER self, wxString aSuffix, PLOT_FORMAT aFormat, wxString aSheetName=wxEmptyString, wxString aSheetPath=wxEmptyString) -> bool"""
7973 return _pcbnew.PLOT_CONTROLLER_OpenPlotfile(self, *args)
7974
7975 def PlotLayer(self):
7976 r"""PlotLayer(PLOT_CONTROLLER self) -> bool"""
7977 return _pcbnew.PLOT_CONTROLLER_PlotLayer(self)
7978
7979 def PlotLayers(self, aLayerSequence):
7980 r"""PlotLayers(PLOT_CONTROLLER self, LSEQ aLayerSequence) -> bool"""
7981 return _pcbnew.PLOT_CONTROLLER_PlotLayers(self, aLayerSequence)
7982
7984 r"""GetPlotFileName(PLOT_CONTROLLER self) -> wxString"""
7985 return _pcbnew.PLOT_CONTROLLER_GetPlotFileName(self)
7986
7988 r"""GetPlotDirName(PLOT_CONTROLLER self) -> wxString"""
7989 return _pcbnew.PLOT_CONTROLLER_GetPlotDirName(self)
7990
7991 def SetColorMode(self, aColorMode):
7992 r"""SetColorMode(PLOT_CONTROLLER self, bool aColorMode)"""
7993 return _pcbnew.PLOT_CONTROLLER_SetColorMode(self, aColorMode)
7994
7995 def GetColorMode(self):
7996 r"""GetColorMode(PLOT_CONTROLLER self) -> bool"""
7997 return _pcbnew.PLOT_CONTROLLER_GetColorMode(self)
7998
7999 def GetPlotter(self):
8000 r"""GetPlotter(PLOT_CONTROLLER self) -> PLOTTER"""
8001 return _pcbnew.PLOT_CONTROLLER_GetPlotter(self)
8002
8003# Register PLOT_CONTROLLER in _pcbnew:
8004_pcbnew.PLOT_CONTROLLER_swigregister(PLOT_CONTROLLER)
8005DRILL_MARKS_NO_DRILL_SHAPE = _pcbnew.DRILL_MARKS_NO_DRILL_SHAPE
8006
8007DRILL_MARKS_SMALL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_SMALL_DRILL_SHAPE
8008
8009DRILL_MARKS_FULL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_FULL_DRILL_SHAPE
8010
8012 r"""Proxy of C++ PCB_PLOT_PARAMS class."""
8013
8014 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8015 __repr__ = _swig_repr
8016
8017 def __init__(self):
8018 r"""__init__(PCB_PLOT_PARAMS self) -> PCB_PLOT_PARAMS"""
8019 _pcbnew.PCB_PLOT_PARAMS_swiginit(self, _pcbnew.new_PCB_PLOT_PARAMS())
8020
8021 def SetSkipPlotNPTH_Pads(self, aSkip):
8022 r"""SetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self, bool aSkip)"""
8023 return _pcbnew.PCB_PLOT_PARAMS_SetSkipPlotNPTH_Pads(self, aSkip)
8024
8026 r"""GetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self) -> bool"""
8027 return _pcbnew.PCB_PLOT_PARAMS_GetSkipPlotNPTH_Pads(self)
8028
8029 def Format(self, aFormatter):
8030 r"""Format(PCB_PLOT_PARAMS self, OUTPUTFORMATTER aFormatter)"""
8031 return _pcbnew.PCB_PLOT_PARAMS_Format(self, aFormatter)
8032
8033 def Parse(self, aParser):
8034 r"""Parse(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS_PARSER * aParser)"""
8035 return _pcbnew.PCB_PLOT_PARAMS_Parse(self, aParser)
8036
8037 def IsSameAs(self, aPcbPlotParams):
8038 r"""IsSameAs(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS aPcbPlotParams) -> bool"""
8039 return _pcbnew.PCB_PLOT_PARAMS_IsSameAs(self, aPcbPlotParams)
8040
8041 def SetColorSettings(self, aSettings):
8042 r"""SetColorSettings(PCB_PLOT_PARAMS self, COLOR_SETTINGS * aSettings)"""
8043 return _pcbnew.PCB_PLOT_PARAMS_SetColorSettings(self, aSettings)
8044
8045 def ColorSettings(self):
8046 r"""ColorSettings(PCB_PLOT_PARAMS self) -> COLOR_SETTINGS *"""
8047 return _pcbnew.PCB_PLOT_PARAMS_ColorSettings(self)
8048
8049 def SetTextMode(self, aVal):
8050 r"""SetTextMode(PCB_PLOT_PARAMS self, PLOT_TEXT_MODE aVal)"""
8051 return _pcbnew.PCB_PLOT_PARAMS_SetTextMode(self, aVal)
8052
8053 def GetTextMode(self):
8054 r"""GetTextMode(PCB_PLOT_PARAMS self) -> PLOT_TEXT_MODE"""
8055 return _pcbnew.PCB_PLOT_PARAMS_GetTextMode(self)
8056
8057 def SetPlotMode(self, aPlotMode):
8058 r"""SetPlotMode(PCB_PLOT_PARAMS self, OUTLINE_MODE aPlotMode)"""
8059 return _pcbnew.PCB_PLOT_PARAMS_SetPlotMode(self, aPlotMode)
8060
8061 def GetPlotMode(self):
8062 r"""GetPlotMode(PCB_PLOT_PARAMS self) -> OUTLINE_MODE"""
8063 return _pcbnew.PCB_PLOT_PARAMS_GetPlotMode(self)
8064
8065 def SetPlotPadNumbers(self, aFlag):
8066 r"""SetPlotPadNumbers(PCB_PLOT_PARAMS self, bool aFlag)"""
8067 return _pcbnew.PCB_PLOT_PARAMS_SetPlotPadNumbers(self, aFlag)
8068
8070 r"""GetPlotPadNumbers(PCB_PLOT_PARAMS self) -> bool"""
8071 return _pcbnew.PCB_PLOT_PARAMS_GetPlotPadNumbers(self)
8072
8073 def SetDXFPlotPolygonMode(self, aFlag):
8074 r"""SetDXFPlotPolygonMode(PCB_PLOT_PARAMS self, bool aFlag)"""
8075 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotPolygonMode(self, aFlag)
8076
8078 r"""GetDXFPlotPolygonMode(PCB_PLOT_PARAMS self) -> bool"""
8079 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotPolygonMode(self)
8080
8081 def SetDXFPlotUnits(self, aUnit):
8082 r"""SetDXFPlotUnits(PCB_PLOT_PARAMS self, DXF_UNITS aUnit)"""
8083 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotUnits(self, aUnit)
8084
8086 r"""GetDXFPlotUnits(PCB_PLOT_PARAMS self) -> DXF_UNITS"""
8087 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotUnits(self)
8088
8089 def SetDrillMarksType(self, aVal):
8090 r"""SetDrillMarksType(PCB_PLOT_PARAMS self, DRILL_MARKS aVal)"""
8091 return _pcbnew.PCB_PLOT_PARAMS_SetDrillMarksType(self, aVal)
8092
8094 r"""GetDrillMarksType(PCB_PLOT_PARAMS self) -> DRILL_MARKS"""
8095 return _pcbnew.PCB_PLOT_PARAMS_GetDrillMarksType(self)
8096
8097 def SetScale(self, aVal):
8098 r"""SetScale(PCB_PLOT_PARAMS self, double aVal)"""
8099 return _pcbnew.PCB_PLOT_PARAMS_SetScale(self, aVal)
8100
8101 def GetScale(self):
8102 r"""GetScale(PCB_PLOT_PARAMS self) -> double"""
8103 return _pcbnew.PCB_PLOT_PARAMS_GetScale(self)
8104
8105 def SetFineScaleAdjustX(self, aVal):
8106 r"""SetFineScaleAdjustX(PCB_PLOT_PARAMS self, double aVal)"""
8107 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustX(self, aVal)
8108
8110 r"""GetFineScaleAdjustX(PCB_PLOT_PARAMS self) -> double"""
8111 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustX(self)
8112
8113 def SetFineScaleAdjustY(self, aVal):
8114 r"""SetFineScaleAdjustY(PCB_PLOT_PARAMS self, double aVal)"""
8115 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustY(self, aVal)
8116
8118 r"""GetFineScaleAdjustY(PCB_PLOT_PARAMS self) -> double"""
8119 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustY(self)
8120
8121 def SetWidthAdjust(self, aVal):
8122 r"""SetWidthAdjust(PCB_PLOT_PARAMS self, int aVal)"""
8123 return _pcbnew.PCB_PLOT_PARAMS_SetWidthAdjust(self, aVal)
8124
8126 r"""GetWidthAdjust(PCB_PLOT_PARAMS self) -> int"""
8127 return _pcbnew.PCB_PLOT_PARAMS_GetWidthAdjust(self)
8128
8129 def SetAutoScale(self, aFlag):
8130 r"""SetAutoScale(PCB_PLOT_PARAMS self, bool aFlag)"""
8131 return _pcbnew.PCB_PLOT_PARAMS_SetAutoScale(self, aFlag)
8132
8133 def GetAutoScale(self):
8134 r"""GetAutoScale(PCB_PLOT_PARAMS self) -> bool"""
8135 return _pcbnew.PCB_PLOT_PARAMS_GetAutoScale(self)
8136
8137 def SetMirror(self, aFlag):
8138 r"""SetMirror(PCB_PLOT_PARAMS self, bool aFlag)"""
8139 return _pcbnew.PCB_PLOT_PARAMS_SetMirror(self, aFlag)
8140
8141 def GetMirror(self):
8142 r"""GetMirror(PCB_PLOT_PARAMS self) -> bool"""
8143 return _pcbnew.PCB_PLOT_PARAMS_GetMirror(self)
8144
8146 r"""SetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8147 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadsOnFabLayers(self, aFlag)
8148
8150 r"""GetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8151 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadsOnFabLayers(self)
8152
8153 def SetSketchPadLineWidth(self, aWidth):
8154 r"""SetSketchPadLineWidth(PCB_PLOT_PARAMS self, int aWidth)"""
8155 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadLineWidth(self, aWidth)
8156
8158 r"""GetSketchPadLineWidth(PCB_PLOT_PARAMS self) -> int"""
8159 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadLineWidth(self)
8160
8162 r"""SetHideDNPFPsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8163 return _pcbnew.PCB_PLOT_PARAMS_SetHideDNPFPsOnFabLayers(self, aFlag)
8164
8166 r"""GetHideDNPFPsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8167 return _pcbnew.PCB_PLOT_PARAMS_GetHideDNPFPsOnFabLayers(self)
8168
8170 r"""SetSketchDNPFPsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8171 return _pcbnew.PCB_PLOT_PARAMS_SetSketchDNPFPsOnFabLayers(self, aFlag)
8172
8174 r"""GetSketchDNPFPsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8175 return _pcbnew.PCB_PLOT_PARAMS_GetSketchDNPFPsOnFabLayers(self)
8176
8178 r"""SetCrossoutDNPFPsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8179 return _pcbnew.PCB_PLOT_PARAMS_SetCrossoutDNPFPsOnFabLayers(self, aFlag)
8180
8182 r"""GetCrossoutDNPFPsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8183 return _pcbnew.PCB_PLOT_PARAMS_GetCrossoutDNPFPsOnFabLayers(self)
8184
8185 def SetPlotInvisibleText(self, aFlag):
8186 r"""SetPlotInvisibleText(PCB_PLOT_PARAMS self, bool aFlag)"""
8187 return _pcbnew.PCB_PLOT_PARAMS_SetPlotInvisibleText(self, aFlag)
8188
8190 r"""GetPlotInvisibleText(PCB_PLOT_PARAMS self) -> bool"""
8191 return _pcbnew.PCB_PLOT_PARAMS_GetPlotInvisibleText(self)
8192
8193 def SetPlotValue(self, aFlag):
8194 r"""SetPlotValue(PCB_PLOT_PARAMS self, bool aFlag)"""
8195 return _pcbnew.PCB_PLOT_PARAMS_SetPlotValue(self, aFlag)
8196
8197 def GetPlotValue(self):
8198 r"""GetPlotValue(PCB_PLOT_PARAMS self) -> bool"""
8199 return _pcbnew.PCB_PLOT_PARAMS_GetPlotValue(self)
8200
8201 def SetPlotReference(self, aFlag):
8202 r"""SetPlotReference(PCB_PLOT_PARAMS self, bool aFlag)"""
8203 return _pcbnew.PCB_PLOT_PARAMS_SetPlotReference(self, aFlag)
8204
8206 r"""GetPlotReference(PCB_PLOT_PARAMS self) -> bool"""
8207 return _pcbnew.PCB_PLOT_PARAMS_GetPlotReference(self)
8208
8209 def SetPlotFPText(self, aFlag):
8210 r"""SetPlotFPText(PCB_PLOT_PARAMS self, bool aFlag)"""
8211 return _pcbnew.PCB_PLOT_PARAMS_SetPlotFPText(self, aFlag)
8212
8213 def GetPlotFPText(self):
8214 r"""GetPlotFPText(PCB_PLOT_PARAMS self) -> bool"""
8215 return _pcbnew.PCB_PLOT_PARAMS_GetPlotFPText(self)
8216
8217 def SetNegative(self, aFlag):
8218 r"""SetNegative(PCB_PLOT_PARAMS self, bool aFlag)"""
8219 return _pcbnew.PCB_PLOT_PARAMS_SetNegative(self, aFlag)
8220
8221 def GetNegative(self):
8222 r"""GetNegative(PCB_PLOT_PARAMS self) -> bool"""
8223 return _pcbnew.PCB_PLOT_PARAMS_GetNegative(self)
8224
8226 r"""GetLegacyPlotViaOnMaskLayer(PCB_PLOT_PARAMS self) -> std::optional< bool >"""
8227 return _pcbnew.PCB_PLOT_PARAMS_GetLegacyPlotViaOnMaskLayer(self)
8228
8229 def SetPlotFrameRef(self, aFlag):
8230 r"""SetPlotFrameRef(PCB_PLOT_PARAMS self, bool aFlag)"""
8231 return _pcbnew.PCB_PLOT_PARAMS_SetPlotFrameRef(self, aFlag)
8232
8234 r"""GetPlotFrameRef(PCB_PLOT_PARAMS self) -> bool"""
8235 return _pcbnew.PCB_PLOT_PARAMS_GetPlotFrameRef(self)
8236
8237 def SetFormat(self, aFormat):
8238 r"""SetFormat(PCB_PLOT_PARAMS self, PLOT_FORMAT aFormat)"""
8239 return _pcbnew.PCB_PLOT_PARAMS_SetFormat(self, aFormat)
8240
8241 def GetFormat(self):
8242 r"""GetFormat(PCB_PLOT_PARAMS self) -> PLOT_FORMAT"""
8243 return _pcbnew.PCB_PLOT_PARAMS_GetFormat(self)
8244
8245 def SetOutputDirectory(self, aDir):
8246 r"""SetOutputDirectory(PCB_PLOT_PARAMS self, wxString aDir)"""
8247 return _pcbnew.PCB_PLOT_PARAMS_SetOutputDirectory(self, aDir)
8248
8250 r"""GetOutputDirectory(PCB_PLOT_PARAMS self) -> wxString"""
8251 return _pcbnew.PCB_PLOT_PARAMS_GetOutputDirectory(self)
8252
8253 def SetDisableGerberMacros(self, aDisable):
8254 r"""SetDisableGerberMacros(PCB_PLOT_PARAMS self, bool aDisable)"""
8255 return _pcbnew.PCB_PLOT_PARAMS_SetDisableGerberMacros(self, aDisable)
8256
8258 r"""GetDisableGerberMacros(PCB_PLOT_PARAMS self) -> bool"""
8259 return _pcbnew.PCB_PLOT_PARAMS_GetDisableGerberMacros(self)
8260
8261 def SetUseGerberX2format(self, aUse):
8262 r"""SetUseGerberX2format(PCB_PLOT_PARAMS self, bool aUse)"""
8263 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberX2format(self, aUse)
8264
8266 r"""GetUseGerberX2format(PCB_PLOT_PARAMS self) -> bool"""
8267 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberX2format(self)
8268
8270 r"""SetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self, bool aUse)"""
8271 return _pcbnew.PCB_PLOT_PARAMS_SetIncludeGerberNetlistInfo(self, aUse)
8272
8274 r"""GetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self) -> bool"""
8275 return _pcbnew.PCB_PLOT_PARAMS_GetIncludeGerberNetlistInfo(self)
8276
8277 def SetCreateGerberJobFile(self, aCreate):
8278 r"""SetCreateGerberJobFile(PCB_PLOT_PARAMS self, bool aCreate)"""
8279 return _pcbnew.PCB_PLOT_PARAMS_SetCreateGerberJobFile(self, aCreate)
8280
8282 r"""GetCreateGerberJobFile(PCB_PLOT_PARAMS self) -> bool"""
8283 return _pcbnew.PCB_PLOT_PARAMS_GetCreateGerberJobFile(self)
8284
8286 r"""SetUseGerberProtelExtensions(PCB_PLOT_PARAMS self, bool aUse)"""
8287 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberProtelExtensions(self, aUse)
8288
8290 r"""GetUseGerberProtelExtensions(PCB_PLOT_PARAMS self) -> bool"""
8291 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberProtelExtensions(self)
8292
8293 def SetGerberPrecision(self, aPrecision):
8294 r"""SetGerberPrecision(PCB_PLOT_PARAMS self, int aPrecision)"""
8295 return _pcbnew.PCB_PLOT_PARAMS_SetGerberPrecision(self, aPrecision)
8296
8298 r"""GetGerberPrecision(PCB_PLOT_PARAMS self) -> int"""
8299 return _pcbnew.PCB_PLOT_PARAMS_GetGerberPrecision(self)
8300
8301 def SetSvgPrecision(self, aPrecision):
8302 r"""SetSvgPrecision(PCB_PLOT_PARAMS self, unsigned int aPrecision)"""
8303 return _pcbnew.PCB_PLOT_PARAMS_SetSvgPrecision(self, aPrecision)
8304
8306 r"""GetSvgPrecision(PCB_PLOT_PARAMS self) -> unsigned int"""
8307 return _pcbnew.PCB_PLOT_PARAMS_GetSvgPrecision(self)
8308
8309 def SetBlackAndWhite(self, blackAndWhite):
8310 r"""SetBlackAndWhite(PCB_PLOT_PARAMS self, bool blackAndWhite)"""
8311 return _pcbnew.PCB_PLOT_PARAMS_SetBlackAndWhite(self, blackAndWhite)
8312
8314 r"""GetBlackAndWhite(PCB_PLOT_PARAMS self) -> unsigned int"""
8315 return _pcbnew.PCB_PLOT_PARAMS_GetBlackAndWhite(self)
8316
8317 def SetSubtractMaskFromSilk(self, aSubtract):
8318 r"""SetSubtractMaskFromSilk(PCB_PLOT_PARAMS self, bool aSubtract)"""
8319 return _pcbnew.PCB_PLOT_PARAMS_SetSubtractMaskFromSilk(self, aSubtract)
8320
8322 r"""GetSubtractMaskFromSilk(PCB_PLOT_PARAMS self) -> bool"""
8323 return _pcbnew.PCB_PLOT_PARAMS_GetSubtractMaskFromSilk(self)
8324
8325 def SetLayerSelection(self, aSelection):
8326 r"""SetLayerSelection(PCB_PLOT_PARAMS self, LSET aSelection)"""
8327 return _pcbnew.PCB_PLOT_PARAMS_SetLayerSelection(self, aSelection)
8328
8330 r"""GetLayerSelection(PCB_PLOT_PARAMS self) -> LSET"""
8331 return _pcbnew.PCB_PLOT_PARAMS_GetLayerSelection(self)
8332
8333 def SetPlotOnAllLayersSelection(self, aSelection):
8334 r"""SetPlotOnAllLayersSelection(PCB_PLOT_PARAMS self, LSET aSelection)"""
8335 return _pcbnew.PCB_PLOT_PARAMS_SetPlotOnAllLayersSelection(self, aSelection)
8336
8338 r"""GetPlotOnAllLayersSelection(PCB_PLOT_PARAMS self) -> LSET"""
8339 return _pcbnew.PCB_PLOT_PARAMS_GetPlotOnAllLayersSelection(self)
8340
8341 def SetUseAuxOrigin(self, aAux):
8342 r"""SetUseAuxOrigin(PCB_PLOT_PARAMS self, bool aAux)"""
8343 return _pcbnew.PCB_PLOT_PARAMS_SetUseAuxOrigin(self, aAux)
8344
8346 r"""GetUseAuxOrigin(PCB_PLOT_PARAMS self) -> bool"""
8347 return _pcbnew.PCB_PLOT_PARAMS_GetUseAuxOrigin(self)
8348
8349 def SetScaleSelection(self, aSelection):
8350 r"""SetScaleSelection(PCB_PLOT_PARAMS self, int aSelection)"""
8351 return _pcbnew.PCB_PLOT_PARAMS_SetScaleSelection(self, aSelection)
8352
8354 r"""GetScaleSelection(PCB_PLOT_PARAMS self) -> int"""
8355 return _pcbnew.PCB_PLOT_PARAMS_GetScaleSelection(self)
8356
8357 def SetA4Output(self, aForce):
8358 r"""SetA4Output(PCB_PLOT_PARAMS self, int aForce)"""
8359 return _pcbnew.PCB_PLOT_PARAMS_SetA4Output(self, aForce)
8360
8361 def GetA4Output(self):
8362 r"""GetA4Output(PCB_PLOT_PARAMS self) -> bool"""
8363 return _pcbnew.PCB_PLOT_PARAMS_GetA4Output(self)
8364
8366 r"""GetHPGLPenDiameter(PCB_PLOT_PARAMS self) -> double"""
8367 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenDiameter(self)
8368
8369 def SetHPGLPenDiameter(self, aValue):
8370 r"""SetHPGLPenDiameter(PCB_PLOT_PARAMS self, double aValue) -> bool"""
8371 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenDiameter(self, aValue)
8372
8374 r"""GetHPGLPenSpeed(PCB_PLOT_PARAMS self) -> int"""
8375 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenSpeed(self)
8376
8377 def SetHPGLPenSpeed(self, aValue):
8378 r"""SetHPGLPenSpeed(PCB_PLOT_PARAMS self, int aValue) -> bool"""
8379 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenSpeed(self, aValue)
8380
8381 def SetHPGLPenNum(self, aVal):
8382 r"""SetHPGLPenNum(PCB_PLOT_PARAMS self, int aVal)"""
8383 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenNum(self, aVal)
8384
8385 def GetHPGLPenNum(self):
8386 r"""GetHPGLPenNum(PCB_PLOT_PARAMS self) -> int"""
8387 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenNum(self)
8388
8389 def SetDashedLineDashRatio(self, aVal):
8390 r"""SetDashedLineDashRatio(PCB_PLOT_PARAMS self, double aVal)"""
8391 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineDashRatio(self, aVal)
8392
8394 r"""GetDashedLineDashRatio(PCB_PLOT_PARAMS self) -> double"""
8395 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineDashRatio(self)
8396
8397 def SetDashedLineGapRatio(self, aVal):
8398 r"""SetDashedLineGapRatio(PCB_PLOT_PARAMS self, double aVal)"""
8399 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineGapRatio(self, aVal)
8400
8402 r"""GetDashedLineGapRatio(PCB_PLOT_PARAMS self) -> double"""
8403 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineGapRatio(self)
8404 m_PDFFrontFPPropertyPopups = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFFrontFPPropertyPopups_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFFrontFPPropertyPopups_set, doc=r"""m_PDFFrontFPPropertyPopups : bool""")
8405 m_PDFBackFPPropertyPopups = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFBackFPPropertyPopups_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFBackFPPropertyPopups_set, doc=r"""m_PDFBackFPPropertyPopups : bool""")
8406 m_PDFMetadata = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFMetadata_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFMetadata_set, doc=r"""m_PDFMetadata : bool""")
8407
8408 # add SetUseGerberAttributes() for compatibility with old python scripts
8409 # after renaming it to SetUseGerberX2format()
8410 def SetUseGerberAttributes( self, aUse ):
8411 return self.SetUseGerberX2format( aUse )
8412
8413 __swig_destroy__ = _pcbnew.delete_PCB_PLOT_PARAMS
8414
8415# Register PCB_PLOT_PARAMS in _pcbnew:
8416_pcbnew.PCB_PLOT_PARAMS_swigregister(PCB_PLOT_PARAMS)
8417DXF_UNITS_INCHES = _pcbnew.DXF_UNITS_INCHES
8418
8419DXF_UNITS_MILLIMETERS = _pcbnew.DXF_UNITS_MILLIMETERS
8420
8421PLOT_FORMAT_UNDEFINED = _pcbnew.PLOT_FORMAT_UNDEFINED
8422
8423PLOT_FORMAT_FIRST_FORMAT = _pcbnew.PLOT_FORMAT_FIRST_FORMAT
8424
8425PLOT_FORMAT_HPGL = _pcbnew.PLOT_FORMAT_HPGL
8426
8427PLOT_FORMAT_GERBER = _pcbnew.PLOT_FORMAT_GERBER
8428
8429PLOT_FORMAT_POST = _pcbnew.PLOT_FORMAT_POST
8430
8431PLOT_FORMAT_DXF = _pcbnew.PLOT_FORMAT_DXF
8432
8433PLOT_FORMAT_PDF = _pcbnew.PLOT_FORMAT_PDF
8434
8435PLOT_FORMAT_SVG = _pcbnew.PLOT_FORMAT_SVG
8436
8437PLOT_FORMAT_LAST_FORMAT = _pcbnew.PLOT_FORMAT_LAST_FORMAT
8438
8439PLOT_TEXT_MODE_STROKE = _pcbnew.PLOT_TEXT_MODE_STROKE
8440
8441PLOT_TEXT_MODE_NATIVE = _pcbnew.PLOT_TEXT_MODE_NATIVE
8442
8443PLOT_TEXT_MODE_PHANTOM = _pcbnew.PLOT_TEXT_MODE_PHANTOM
8444
8445PLOT_TEXT_MODE_DEFAULT = _pcbnew.PLOT_TEXT_MODE_DEFAULT
8446
8448 r"""Proxy of C++ PLOTTER class."""
8449
8450 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8451
8452 def __init__(self, *args, **kwargs):
8453 raise AttributeError("No constructor defined - class is abstract")
8454 __repr__ = _swig_repr
8455 DO_NOT_SET_LINE_WIDTH = _pcbnew.PLOTTER_DO_NOT_SET_LINE_WIDTH
8456
8457 USE_DEFAULT_LINE_WIDTH = _pcbnew.PLOTTER_USE_DEFAULT_LINE_WIDTH
8458
8459 __swig_destroy__ = _pcbnew.delete_PLOTTER
8460
8462 r"""GetPlotterType(PLOTTER self) -> PLOT_FORMAT"""
8463 return _pcbnew.PLOTTER_GetPlotterType(self)
8464
8465 def StartPlot(self, aPageNumber):
8466 r"""StartPlot(PLOTTER self, wxString aPageNumber) -> bool"""
8467 return _pcbnew.PLOTTER_StartPlot(self, aPageNumber)
8468
8469 def EndPlot(self):
8470 r"""EndPlot(PLOTTER self) -> bool"""
8471 return _pcbnew.PLOTTER_EndPlot(self)
8472
8473 def SetNegative(self, aNegative):
8474 r"""SetNegative(PLOTTER self, bool aNegative)"""
8475 return _pcbnew.PLOTTER_SetNegative(self, aNegative)
8476
8477 def SetColorMode(self, aColorMode):
8478 r"""SetColorMode(PLOTTER self, bool aColorMode)"""
8479 return _pcbnew.PLOTTER_SetColorMode(self, aColorMode)
8480
8481 def GetColorMode(self):
8482 r"""GetColorMode(PLOTTER self) -> bool"""
8483 return _pcbnew.PLOTTER_GetColorMode(self)
8484
8485 def SetRenderSettings(self, aSettings):
8486 r"""SetRenderSettings(PLOTTER self, RENDER_SETTINGS * aSettings)"""
8487 return _pcbnew.PLOTTER_SetRenderSettings(self, aSettings)
8488
8490 r"""RenderSettings(PLOTTER self) -> RENDER_SETTINGS *"""
8491 return _pcbnew.PLOTTER_RenderSettings(self)
8492
8493 def SetPageSettings(self, aPageSettings):
8494 r"""SetPageSettings(PLOTTER self, PAGE_INFO const & aPageSettings)"""
8495 return _pcbnew.PLOTTER_SetPageSettings(self, aPageSettings)
8496
8497 def PageSettings(self):
8498 r"""PageSettings(PLOTTER self) -> PAGE_INFO &"""
8499 return _pcbnew.PLOTTER_PageSettings(self)
8500
8501 def SetCurrentLineWidth(self, width, aData=None):
8502 r"""SetCurrentLineWidth(PLOTTER self, int width, void * aData=None)"""
8503 return _pcbnew.PLOTTER_SetCurrentLineWidth(self, width, aData)
8504
8506 r"""GetCurrentLineWidth(PLOTTER self) -> int"""
8507 return _pcbnew.PLOTTER_GetCurrentLineWidth(self)
8508
8509 def SetColor(self, color):
8510 r"""SetColor(PLOTTER self, COLOR4D color)"""
8511 return _pcbnew.PLOTTER_SetColor(self, color)
8512
8513 def SetDash(self, aLineWidth, aLineStyle):
8514 r"""SetDash(PLOTTER self, int aLineWidth, LINE_STYLE aLineStyle)"""
8515 return _pcbnew.PLOTTER_SetDash(self, aLineWidth, aLineStyle)
8516
8517 def SetCreator(self, aCreator):
8518 r"""SetCreator(PLOTTER self, wxString aCreator)"""
8519 return _pcbnew.PLOTTER_SetCreator(self, aCreator)
8520
8521 def SetTitle(self, aTitle):
8522 r"""SetTitle(PLOTTER self, wxString aTitle)"""
8523 return _pcbnew.PLOTTER_SetTitle(self, aTitle)
8524
8525 def SetAuthor(self, aAuthor):
8526 r"""SetAuthor(PLOTTER self, wxString aAuthor)"""
8527 return _pcbnew.PLOTTER_SetAuthor(self, aAuthor)
8528
8529 def SetSubject(self, aSubject):
8530 r"""SetSubject(PLOTTER self, wxString aSubject)"""
8531 return _pcbnew.PLOTTER_SetSubject(self, aSubject)
8532
8533 def AddLineToHeader(self, aExtraString):
8534 r"""AddLineToHeader(PLOTTER self, wxString aExtraString)"""
8535 return _pcbnew.PLOTTER_AddLineToHeader(self, aExtraString)
8536
8538 r"""ClearHeaderLinesList(PLOTTER self)"""
8539 return _pcbnew.PLOTTER_ClearHeaderLinesList(self)
8540
8541 def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror):
8542 r"""SetViewport(PLOTTER self, VECTOR2I aOffset, double aIusPerDecimil, double aScale, bool aMirror)"""
8543 return _pcbnew.PLOTTER_SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
8544
8545 def OpenFile(self, aFullFilename):
8546 r"""OpenFile(PLOTTER self, wxString aFullFilename) -> bool"""
8547 return _pcbnew.PLOTTER_OpenFile(self, aFullFilename)
8548
8550 r"""GetIUsPerDecimil(PLOTTER self) -> double"""
8551 return _pcbnew.PLOTTER_GetIUsPerDecimil(self)
8552
8554 r"""GetPlotterArcLowDef(PLOTTER self) -> int"""
8555 return _pcbnew.PLOTTER_GetPlotterArcLowDef(self)
8556
8558 r"""GetPlotterArcHighDef(PLOTTER self) -> int"""
8559 return _pcbnew.PLOTTER_GetPlotterArcHighDef(self)
8560
8561 def Rect(self, *args):
8562 r"""Rect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8563 return _pcbnew.PLOTTER_Rect(self, *args)
8564
8565 def Circle(self, *args):
8566 r"""Circle(PLOTTER self, VECTOR2I pos, int diametre, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8567 return _pcbnew.PLOTTER_Circle(self, *args)
8568
8569 def Arc(self, *args):
8570 r"""
8571 Arc(PLOTTER self, VECTOR2D const & aStart, VECTOR2D const & aMid, VECTOR2D const & aEnd, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH)
8572 Arc(PLOTTER self, VECTOR2D const & aCenter, EDA_ANGLE aStartAngle, EDA_ANGLE aAngle, double aRadius, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH)
8573 """
8574 return _pcbnew.PLOTTER_Arc(self, *args)
8575
8576 def BezierCurve(self, *args):
8577 r"""BezierCurve(PLOTTER self, VECTOR2I aStart, VECTOR2I aControl1, VECTOR2I aControl2, VECTOR2I aEnd, int aTolerance, int aLineThickness=USE_DEFAULT_LINE_WIDTH)"""
8578 return _pcbnew.PLOTTER_BezierCurve(self, *args)
8579
8580 def PenTo(self, pos, plume):
8581 r"""PenTo(PLOTTER self, VECTOR2I pos, char plume)"""
8582 return _pcbnew.PLOTTER_PenTo(self, pos, plume)
8583
8584 def MoveTo(self, pos):
8585 r"""MoveTo(PLOTTER self, VECTOR2I pos)"""
8586 return _pcbnew.PLOTTER_MoveTo(self, pos)
8587
8588 def LineTo(self, pos):
8589 r"""LineTo(PLOTTER self, VECTOR2I pos)"""
8590 return _pcbnew.PLOTTER_LineTo(self, pos)
8591
8592 def FinishTo(self, pos):
8593 r"""FinishTo(PLOTTER self, VECTOR2I pos)"""
8594 return _pcbnew.PLOTTER_FinishTo(self, pos)
8595
8596 def PenFinish(self):
8597 r"""PenFinish(PLOTTER self)"""
8598 return _pcbnew.PLOTTER_PenFinish(self)
8599
8600 def PlotPoly(self, *args):
8601 r"""
8602 PlotPoly(PLOTTER self, VECTOR_VECTOR2I aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8603 PlotPoly(PLOTTER self, SHAPE_LINE_CHAIN aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8604 """
8605 return _pcbnew.PLOTTER_PlotPoly(self, *args)
8606
8607 def PlotImage(self, aImage, aPos, aScaleFactor):
8608 r"""PlotImage(PLOTTER self, wxImage const & aImage, VECTOR2I aPos, double aScaleFactor)"""
8609 return _pcbnew.PLOTTER_PlotImage(self, aImage, aPos, aScaleFactor)
8610
8611 def ThickSegment(self, start, end, width, tracemode, aData):
8612 r"""ThickSegment(PLOTTER self, VECTOR2I start, VECTOR2I end, int width, OUTLINE_MODE tracemode, void * aData)"""
8613 return _pcbnew.PLOTTER_ThickSegment(self, start, end, width, tracemode, aData)
8614
8615 def ThickArc(self, *args):
8616 r"""
8617 ThickArc(PLOTTER self, EDA_SHAPE aArcShape, OUTLINE_MODE aTraceMode, void * aData, int aWidth)
8618 ThickArc(PLOTTER self, VECTOR2D const & aCentre, EDA_ANGLE aStAngle, EDA_ANGLE aAngle, double aRadius, int aWidth, OUTLINE_MODE aTraceMode, void * aData)
8619 """
8620 return _pcbnew.PLOTTER_ThickArc(self, *args)
8621
8622 def ThickRect(self, p1, p2, width, tracemode, aData):
8623 r"""ThickRect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, int width, OUTLINE_MODE tracemode, void * aData)"""
8624 return _pcbnew.PLOTTER_ThickRect(self, p1, p2, width, tracemode, aData)
8625
8626 def ThickCircle(self, pos, diametre, width, tracemode, aData):
8627 r"""ThickCircle(PLOTTER self, VECTOR2I pos, int diametre, int width, OUTLINE_MODE tracemode, void * aData)"""
8628 return _pcbnew.PLOTTER_ThickCircle(self, pos, diametre, width, tracemode, aData)
8629
8630 def FilledCircle(self, pos, diametre, tracemode, aData):
8631 r"""FilledCircle(PLOTTER self, VECTOR2I pos, int diametre, OUTLINE_MODE tracemode, void * aData)"""
8632 return _pcbnew.PLOTTER_FilledCircle(self, pos, diametre, tracemode, aData)
8633
8634 def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData):
8635 r"""FlashPadCircle(PLOTTER self, VECTOR2I aPadPos, int aDiameter, OUTLINE_MODE aTraceMode, void * aData)"""
8636 return _pcbnew.PLOTTER_FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
8637
8638 def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
8639 r"""FlashPadOval(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8640 return _pcbnew.PLOTTER_FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
8641
8642 def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
8643 r"""FlashPadRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8644 return _pcbnew.PLOTTER_FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
8645
8646 def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData):
8647 r"""FlashPadRoundRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, int aCornerRadius, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8648 return _pcbnew.PLOTTER_FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
8649
8650 def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData):
8651 r"""FlashPadCustom(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, SHAPE_POLY_SET aPolygons, OUTLINE_MODE aTraceMode, void * aData)"""
8652 return _pcbnew.PLOTTER_FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
8653
8654 def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData):
8655 r"""FlashPadTrapez(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aCorners, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8656 return _pcbnew.PLOTTER_FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
8657
8658 def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData):
8659 r"""FlashRegularPolygon(PLOTTER self, VECTOR2I aShapePos, int aDiameter, int aCornerCount, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8660 return _pcbnew.PLOTTER_FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
8661
8662 def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData=None):
8663 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, KIFONT::METRICS const & aFontMetrics, void * aData=None)"""
8664 return _pcbnew.PLOTTER_Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData)
8665
8666 def PlotText(self, *args):
8667 r"""PlotText(PLOTTER self, VECTOR2I aPos, COLOR4D aColor, wxString aText, TEXT_ATTRIBUTES aAttributes, KIFONT::FONT * aFont=None, KIFONT::METRICS const & aFontMetrics=KIFONT::METRICS::Default(), void * aData=None)"""
8668 return _pcbnew.PLOTTER_PlotText(self, *args)
8669
8670 def HyperlinkBox(self, aBox, aDestinationURL):
8671 r"""HyperlinkBox(PLOTTER self, BOX2I aBox, wxString aDestinationURL)"""
8672 return _pcbnew.PLOTTER_HyperlinkBox(self, aBox, aDestinationURL)
8673
8674 def HyperlinkMenu(self, aBox, aDestURLs):
8675 r"""HyperlinkMenu(PLOTTER self, BOX2I aBox, std::vector< wxString,std::allocator< wxString > > const & aDestURLs)"""
8676 return _pcbnew.PLOTTER_HyperlinkMenu(self, aBox, aDestURLs)
8677
8678 def Bookmark(self, *args):
8679 r"""Bookmark(PLOTTER self, BOX2I aBox, wxString aName, wxString aGroupName=wxEmptyString)"""
8680 return _pcbnew.PLOTTER_Bookmark(self, *args)
8681 MARKER_COUNT = _pcbnew.PLOTTER_MARKER_COUNT
8682
8683
8684 def Marker(self, position, diametre, aShapeId):
8685 r"""Marker(PLOTTER self, VECTOR2I position, int diametre, unsigned int aShapeId)"""
8686 return _pcbnew.PLOTTER_Marker(self, position, diametre, aShapeId)
8687
8688 def SetLayerPolarity(self, aPositive):
8689 r"""SetLayerPolarity(PLOTTER self, bool aPositive)"""
8690 return _pcbnew.PLOTTER_SetLayerPolarity(self, aPositive)
8691
8692 def SetTextMode(self, mode):
8693 r"""SetTextMode(PLOTTER self, PLOT_TEXT_MODE mode)"""
8694 return _pcbnew.PLOTTER_SetTextMode(self, mode)
8695
8696 def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False):
8697 r"""SetGerberCoordinatesFormat(PLOTTER self, int aResolution, bool aUseInches=False)"""
8698 return _pcbnew.PLOTTER_SetGerberCoordinatesFormat(self, aResolution, aUseInches)
8699
8700 def SetSvgCoordinatesFormat(self, aPrecision):
8701 r"""SetSvgCoordinatesFormat(PLOTTER self, unsigned int aPrecision)"""
8702 return _pcbnew.PLOTTER_SetSvgCoordinatesFormat(self, aPrecision)
8703
8704 def StartBlock(self, aData):
8705 r"""StartBlock(PLOTTER self, void * aData)"""
8706 return _pcbnew.PLOTTER_StartBlock(self, aData)
8707
8708 def EndBlock(self, aData):
8709 r"""EndBlock(PLOTTER self, void * aData)"""
8710 return _pcbnew.PLOTTER_EndBlock(self, aData)
8711
8713 r"""GetPlotOffsetUserUnits(PLOTTER self) -> VECTOR2I"""
8714 return _pcbnew.PLOTTER_GetPlotOffsetUserUnits(self)
8715
8716# Register PLOTTER in _pcbnew:
8717_pcbnew.PLOTTER_swigregister(PLOTTER)
8718
8720 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=UNSPECIFIED, bool aIsFirstPage=True)"""
8721 return _pcbnew.PlotDrawingSheet(*args)
8722
8724 r"""GetDefaultPlotExtension(PLOT_FORMAT aFormat) -> wxString"""
8725 return _pcbnew.GetDefaultPlotExtension(aFormat)
8727 r"""Proxy of C++ D356_RECORD class."""
8728
8729 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8730 __repr__ = _swig_repr
8731 smd = property(_pcbnew.D356_RECORD_smd_get, _pcbnew.D356_RECORD_smd_set, doc=r"""smd : bool""")
8732 hole = property(_pcbnew.D356_RECORD_hole_get, _pcbnew.D356_RECORD_hole_set, doc=r"""hole : bool""")
8733 netname = property(_pcbnew.D356_RECORD_netname_get, _pcbnew.D356_RECORD_netname_set, doc=r"""netname : wxString""")
8734 refdes = property(_pcbnew.D356_RECORD_refdes_get, _pcbnew.D356_RECORD_refdes_set, doc=r"""refdes : wxString""")
8735 pin = property(_pcbnew.D356_RECORD_pin_get, _pcbnew.D356_RECORD_pin_set, doc=r"""pin : wxString""")
8736 midpoint = property(_pcbnew.D356_RECORD_midpoint_get, _pcbnew.D356_RECORD_midpoint_set, doc=r"""midpoint : bool""")
8737 drill = property(_pcbnew.D356_RECORD_drill_get, _pcbnew.D356_RECORD_drill_set, doc=r"""drill : int""")
8738 mechanical = property(_pcbnew.D356_RECORD_mechanical_get, _pcbnew.D356_RECORD_mechanical_set, doc=r"""mechanical : bool""")
8739 access = property(_pcbnew.D356_RECORD_access_get, _pcbnew.D356_RECORD_access_set, doc=r"""access : int""")
8740 soldermask = property(_pcbnew.D356_RECORD_soldermask_get, _pcbnew.D356_RECORD_soldermask_set, doc=r"""soldermask : int""")
8741 x_location = property(_pcbnew.D356_RECORD_x_location_get, _pcbnew.D356_RECORD_x_location_set, doc=r"""x_location : int""")
8742 y_location = property(_pcbnew.D356_RECORD_y_location_get, _pcbnew.D356_RECORD_y_location_set, doc=r"""y_location : int""")
8743 x_size = property(_pcbnew.D356_RECORD_x_size_get, _pcbnew.D356_RECORD_x_size_set, doc=r"""x_size : int""")
8744 y_size = property(_pcbnew.D356_RECORD_y_size_get, _pcbnew.D356_RECORD_y_size_set, doc=r"""y_size : int""")
8745 rotation = property(_pcbnew.D356_RECORD_rotation_get, _pcbnew.D356_RECORD_rotation_set, doc=r"""rotation : int""")
8746
8747 def __init__(self):
8748 r"""__init__(D356_RECORD self) -> D356_RECORD"""
8749 _pcbnew.D356_RECORD_swiginit(self, _pcbnew.new_D356_RECORD())
8750 __swig_destroy__ = _pcbnew.delete_D356_RECORD
8751
8752# Register D356_RECORD in _pcbnew:
8753_pcbnew.D356_RECORD_swigregister(D356_RECORD)
8755 r"""Proxy of C++ IPC356D_WRITER class."""
8756
8757 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8758 __repr__ = _swig_repr
8759
8760 def __init__(self, aPcb, aParent=None):
8761 r"""__init__(IPC356D_WRITER self, BOARD aPcb, wxWindow * aParent=None) -> IPC356D_WRITER"""
8762 _pcbnew.IPC356D_WRITER_swiginit(self, _pcbnew.new_IPC356D_WRITER(aPcb, aParent))
8763 __swig_destroy__ = _pcbnew.delete_IPC356D_WRITER
8764
8765 def Write(self, aFilename):
8766 r"""Write(IPC356D_WRITER self, wxString aFilename)"""
8767 return _pcbnew.IPC356D_WRITER_Write(self, aFilename)
8768
8769# Register IPC356D_WRITER in _pcbnew:
8770_pcbnew.IPC356D_WRITER_swigregister(IPC356D_WRITER)
8772 r"""Proxy of C++ PLACE_FILE_EXPORTER class."""
8773
8774 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8775 __repr__ = _swig_repr
8776
8777 def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX):
8778 r"""__init__(PLACE_FILE_EXPORTER self, BOARD aBoard, bool aUnitsMM, bool aOnlySMD, bool aExcludeAllTH, bool aExcludeDNP, bool aTopSide, bool aBottomSide, bool aFormatCSV, bool aUseAuxOrigin, bool aNegateBottomX) -> PLACE_FILE_EXPORTER"""
8779 _pcbnew.PLACE_FILE_EXPORTER_swiginit(self, _pcbnew.new_PLACE_FILE_EXPORTER(aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX))
8780
8782 r"""GenPositionData(PLACE_FILE_EXPORTER self) -> string"""
8783 return _pcbnew.PLACE_FILE_EXPORTER_GenPositionData(self)
8784
8785 def GenReportData(self):
8786 r"""GenReportData(PLACE_FILE_EXPORTER self) -> string"""
8787 return _pcbnew.PLACE_FILE_EXPORTER_GenReportData(self)
8788
8790 r"""GetFootprintCount(PLACE_FILE_EXPORTER self) -> int"""
8791 return _pcbnew.PLACE_FILE_EXPORTER_GetFootprintCount(self)
8792
8793 @staticmethod
8795 r"""GetFrontSideName() -> string"""
8796 return _pcbnew.PLACE_FILE_EXPORTER_GetFrontSideName()
8797
8798 @staticmethod
8800 r"""GetBackSideName() -> string"""
8801 return _pcbnew.PLACE_FILE_EXPORTER_GetBackSideName()
8802 __swig_destroy__ = _pcbnew.delete_PLACE_FILE_EXPORTER
8803
8804# Register PLACE_FILE_EXPORTER in _pcbnew:
8805_pcbnew.PLACE_FILE_EXPORTER_swigregister(PLACE_FILE_EXPORTER)
8807 r"""Proxy of C++ EXPORTER_VRML class."""
8808
8809 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8810 __repr__ = _swig_repr
8811
8812 def __init__(self, aBoard):
8813 r"""__init__(EXPORTER_VRML self, BOARD aBoard) -> EXPORTER_VRML"""
8814 _pcbnew.EXPORTER_VRML_swiginit(self, _pcbnew.new_EXPORTER_VRML(aBoard))
8815 __swig_destroy__ = _pcbnew.delete_EXPORTER_VRML
8816
8817 def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
8818 r"""ExportVRML_File(EXPORTER_VRML self, PROJECT * aProject, wxString aMessages, wxString aFullFileName, double aMMtoWRMLunit, bool aIncludeUnspecified, bool aIncludeDNP, bool aExport3DFiles, bool aUseRelativePaths, wxString a3D_Subdir, double aXRef, double aYRef) -> bool"""
8819 return _pcbnew.EXPORTER_VRML_ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
8820
8821# Register EXPORTER_VRML in _pcbnew:
8822_pcbnew.EXPORTER_VRML_swigregister(EXPORTER_VRML)
8823USE_ATTRIB_FOR_HOLES = _pcbnew.USE_ATTRIB_FOR_HOLES
8824
8825HOLE_ATTRIBUTE_HOLE_UNKNOWN = _pcbnew.HOLE_ATTRIBUTE_HOLE_UNKNOWN
8826
8827HOLE_ATTRIBUTE_HOLE_VIA_THROUGH = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_THROUGH
8828
8829HOLE_ATTRIBUTE_HOLE_VIA_BURIED = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_BURIED
8830
8831HOLE_ATTRIBUTE_HOLE_PAD = _pcbnew.HOLE_ATTRIBUTE_HOLE_PAD
8832
8833HOLE_ATTRIBUTE_HOLE_MECHANICAL = _pcbnew.HOLE_ATTRIBUTE_HOLE_MECHANICAL
8834
8836 r"""Proxy of C++ DRILL_TOOL class."""
8837
8838 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8839 __repr__ = _swig_repr
8840 m_Diameter = property(_pcbnew.DRILL_TOOL_m_Diameter_get, _pcbnew.DRILL_TOOL_m_Diameter_set, doc=r"""m_Diameter : int""")
8841 m_TotalCount = property(_pcbnew.DRILL_TOOL_m_TotalCount_get, _pcbnew.DRILL_TOOL_m_TotalCount_set, doc=r"""m_TotalCount : int""")
8842 m_OvalCount = property(_pcbnew.DRILL_TOOL_m_OvalCount_get, _pcbnew.DRILL_TOOL_m_OvalCount_set, doc=r"""m_OvalCount : int""")
8843 m_Hole_NotPlated = property(_pcbnew.DRILL_TOOL_m_Hole_NotPlated_get, _pcbnew.DRILL_TOOL_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
8844 m_HoleAttribute = property(_pcbnew.DRILL_TOOL_m_HoleAttribute_get, _pcbnew.DRILL_TOOL_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
8845
8846 def __init__(self, aDiameter, a_NotPlated):
8847 r"""__init__(DRILL_TOOL self, int aDiameter, bool a_NotPlated) -> DRILL_TOOL"""
8848 _pcbnew.DRILL_TOOL_swiginit(self, _pcbnew.new_DRILL_TOOL(aDiameter, a_NotPlated))
8849 __swig_destroy__ = _pcbnew.delete_DRILL_TOOL
8850
8851# Register DRILL_TOOL in _pcbnew:
8852_pcbnew.DRILL_TOOL_swigregister(DRILL_TOOL)
8854 r"""Proxy of C++ HOLE_INFO 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):
8860 r"""__init__(HOLE_INFO self) -> HOLE_INFO"""
8861 _pcbnew.HOLE_INFO_swiginit(self, _pcbnew.new_HOLE_INFO())
8862 m_ItemParent = property(_pcbnew.HOLE_INFO_m_ItemParent_get, _pcbnew.HOLE_INFO_m_ItemParent_set, doc=r"""m_ItemParent : p.BOARD_ITEM""")
8863 m_Hole_Diameter = property(_pcbnew.HOLE_INFO_m_Hole_Diameter_get, _pcbnew.HOLE_INFO_m_Hole_Diameter_set, doc=r"""m_Hole_Diameter : int""")
8864 m_Tool_Reference = property(_pcbnew.HOLE_INFO_m_Tool_Reference_get, _pcbnew.HOLE_INFO_m_Tool_Reference_set, doc=r"""m_Tool_Reference : int""")
8865 m_Hole_Size = property(_pcbnew.HOLE_INFO_m_Hole_Size_get, _pcbnew.HOLE_INFO_m_Hole_Size_set, doc=r"""m_Hole_Size : VECTOR2I""")
8866 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""")
8867 m_Hole_Shape = property(_pcbnew.HOLE_INFO_m_Hole_Shape_get, _pcbnew.HOLE_INFO_m_Hole_Shape_set, doc=r"""m_Hole_Shape : int""")
8868 m_Hole_Pos = property(_pcbnew.HOLE_INFO_m_Hole_Pos_get, _pcbnew.HOLE_INFO_m_Hole_Pos_set, doc=r"""m_Hole_Pos : VECTOR2I""")
8869 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""")
8870 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""")
8871 m_Hole_NotPlated = property(_pcbnew.HOLE_INFO_m_Hole_NotPlated_get, _pcbnew.HOLE_INFO_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
8872 m_HoleAttribute = property(_pcbnew.HOLE_INFO_m_HoleAttribute_get, _pcbnew.HOLE_INFO_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
8873 __swig_destroy__ = _pcbnew.delete_HOLE_INFO
8874
8875# Register HOLE_INFO in _pcbnew:
8876_pcbnew.HOLE_INFO_swigregister(HOLE_INFO)
8878 r"""Proxy of C++ DRILL_PRECISION class."""
8879
8880 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8881 __repr__ = _swig_repr
8882
8883 def __init__(self, l=2, r=4):
8884 r"""__init__(DRILL_PRECISION self, int l=2, int r=4) -> DRILL_PRECISION"""
8885 _pcbnew.DRILL_PRECISION_swiginit(self, _pcbnew.new_DRILL_PRECISION(l, r))
8886
8888 r"""GetPrecisionString(DRILL_PRECISION self) -> wxString"""
8889 return _pcbnew.DRILL_PRECISION_GetPrecisionString(self)
8890 m_Lhs = property(_pcbnew.DRILL_PRECISION_m_Lhs_get, _pcbnew.DRILL_PRECISION_m_Lhs_set, doc=r"""m_Lhs : int""")
8891 m_Rhs = property(_pcbnew.DRILL_PRECISION_m_Rhs_get, _pcbnew.DRILL_PRECISION_m_Rhs_set, doc=r"""m_Rhs : int""")
8892 __swig_destroy__ = _pcbnew.delete_DRILL_PRECISION
8893
8894# Register DRILL_PRECISION in _pcbnew:
8895_pcbnew.DRILL_PRECISION_swigregister(DRILL_PRECISION)
8897 r"""Proxy of C++ GENDRILL_WRITER_BASE class."""
8898
8899 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8900
8901 def __init__(self, *args, **kwargs):
8902 raise AttributeError("No constructor defined")
8903 __repr__ = _swig_repr
8904 DECIMAL_FORMAT = _pcbnew.GENDRILL_WRITER_BASE_DECIMAL_FORMAT
8905
8906 SUPPRESS_LEADING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_LEADING
8907
8908 SUPPRESS_TRAILING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_TRAILING
8909
8910 KEEP_ZEROS = _pcbnew.GENDRILL_WRITER_BASE_KEEP_ZEROS
8911
8912 PTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_PTH_FILE
8913
8914 NPTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_NPTH_FILE
8915
8916 MIXED_FILE = _pcbnew.GENDRILL_WRITER_BASE_MIXED_FILE
8917
8918 __swig_destroy__ = _pcbnew.delete_GENDRILL_WRITER_BASE
8919
8920 def SetMergeOption(self, aMerge):
8921 r"""SetMergeOption(GENDRILL_WRITER_BASE self, bool aMerge)"""
8922 return _pcbnew.GENDRILL_WRITER_BASE_SetMergeOption(self, aMerge)
8923
8924 def GetOffset(self):
8925 r"""GetOffset(GENDRILL_WRITER_BASE self) -> VECTOR2I"""
8926 return _pcbnew.GENDRILL_WRITER_BASE_GetOffset(self)
8927
8928 def SetPageInfo(self, aPageInfo):
8929 r"""SetPageInfo(GENDRILL_WRITER_BASE self, PAGE_INFO const * aPageInfo)"""
8930 return _pcbnew.GENDRILL_WRITER_BASE_SetPageInfo(self, aPageInfo)
8931
8932 def SetMapFileFormat(self, aMapFmt):
8933 r"""SetMapFileFormat(GENDRILL_WRITER_BASE self, PLOT_FORMAT aMapFmt)"""
8934 return _pcbnew.GENDRILL_WRITER_BASE_SetMapFileFormat(self, aMapFmt)
8935
8936 def CreateMapFilesSet(self, aPlotDirectory, aReporter=None):
8937 r"""CreateMapFilesSet(GENDRILL_WRITER_BASE self, wxString aPlotDirectory, REPORTER * aReporter=None) -> bool"""
8938 return _pcbnew.GENDRILL_WRITER_BASE_CreateMapFilesSet(self, aPlotDirectory, aReporter)
8939
8940 def GenDrillReportFile(self, aFullFileName):
8941 r"""GenDrillReportFile(GENDRILL_WRITER_BASE self, wxString aFullFileName) -> bool"""
8942 return _pcbnew.GENDRILL_WRITER_BASE_GenDrillReportFile(self, aFullFileName)
8943
8945 r"""GetDrillFileExt(GENDRILL_WRITER_BASE self) -> wxString"""
8946 return _pcbnew.GENDRILL_WRITER_BASE_GetDrillFileExt(self)
8947
8948# Register GENDRILL_WRITER_BASE in _pcbnew:
8949_pcbnew.GENDRILL_WRITER_BASE_swigregister(GENDRILL_WRITER_BASE)
8951 r"""Proxy of C++ EXCELLON_WRITER class."""
8952
8953 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8954 __repr__ = _swig_repr
8955
8956 def __init__(self, aPcb):
8957 r"""__init__(EXCELLON_WRITER self, BOARD aPcb) -> EXCELLON_WRITER"""
8958 _pcbnew.EXCELLON_WRITER_swiginit(self, _pcbnew.new_EXCELLON_WRITER(aPcb))
8959 __swig_destroy__ = _pcbnew.delete_EXCELLON_WRITER
8960
8961 def GetOffset(self):
8962 r"""GetOffset(EXCELLON_WRITER self) -> VECTOR2I"""
8963 return _pcbnew.EXCELLON_WRITER_GetOffset(self)
8964
8965 def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles):
8966 r"""SetRouteModeForOvalHoles(EXCELLON_WRITER self, bool aUseRouteModeForOvalHoles)"""
8967 return _pcbnew.EXCELLON_WRITER_SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
8968
8969 def SetFormat(self, *args):
8970 r"""SetFormat(EXCELLON_WRITER self, bool aMetric, GENDRILL_WRITER_BASE::ZEROS_FMT aZerosFmt=DECIMAL_FORMAT, int aLeftDigits=0, int aRightDigits=0)"""
8971 return _pcbnew.EXCELLON_WRITER_SetFormat(self, *args)
8972
8973 def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH):
8974 r"""SetOptions(EXCELLON_WRITER self, bool aMirror, bool aMinimalHeader, VECTOR2I aOffset, bool aMerge_PTH_NPTH)"""
8975 return _pcbnew.EXCELLON_WRITER_SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
8976
8977 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
8978 r"""CreateDrillandMapFilesSet(EXCELLON_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
8979 return _pcbnew.EXCELLON_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
8980
8981# Register EXCELLON_WRITER in _pcbnew:
8982_pcbnew.EXCELLON_WRITER_swigregister(EXCELLON_WRITER)
8984 r"""Proxy of C++ GERBER_WRITER class."""
8985
8986 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8987 __repr__ = _swig_repr
8988
8989 def __init__(self, aPcb):
8990 r"""__init__(GERBER_WRITER self, BOARD aPcb) -> GERBER_WRITER"""
8991 _pcbnew.GERBER_WRITER_swiginit(self, _pcbnew.new_GERBER_WRITER(aPcb))
8992 __swig_destroy__ = _pcbnew.delete_GERBER_WRITER
8993
8994 def SetFormat(self, aRightDigits=6):
8995 r"""SetFormat(GERBER_WRITER self, int aRightDigits=6)"""
8996 return _pcbnew.GERBER_WRITER_SetFormat(self, aRightDigits)
8997
8998 def SetOptions(self, aOffset):
8999 r"""SetOptions(GERBER_WRITER self, VECTOR2I aOffset)"""
9000 return _pcbnew.GERBER_WRITER_SetOptions(self, aOffset)
9001
9002 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
9003 r"""CreateDrillandMapFilesSet(GERBER_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
9004 return _pcbnew.GERBER_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
9005
9006# Register GERBER_WRITER in _pcbnew:
9007_pcbnew.GERBER_WRITER_swigregister(GERBER_WRITER)
9008SIDE_NONE = _pcbnew.SIDE_NONE
9009
9010SIDE_TOP = _pcbnew.SIDE_TOP
9011
9012SIDE_BOTTOM = _pcbnew.SIDE_BOTTOM
9013
9014SIDE_BOTH = _pcbnew.SIDE_BOTH
9015
9017 r"""Proxy of C++ JOBFILE_PARAMS class."""
9018
9019 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9020 __repr__ = _swig_repr
9021 m_GerberFileList = property(_pcbnew.JOBFILE_PARAMS_m_GerberFileList_get, _pcbnew.JOBFILE_PARAMS_m_GerberFileList_set, doc=r"""m_GerberFileList : wxArrayString""")
9022 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)>)>""")
9023
9024 def __init__(self):
9025 r"""__init__(JOBFILE_PARAMS self) -> JOBFILE_PARAMS"""
9026 _pcbnew.JOBFILE_PARAMS_swiginit(self, _pcbnew.new_JOBFILE_PARAMS())
9027 __swig_destroy__ = _pcbnew.delete_JOBFILE_PARAMS
9028
9029# Register JOBFILE_PARAMS in _pcbnew:
9030_pcbnew.JOBFILE_PARAMS_swigregister(JOBFILE_PARAMS)
9032 r"""Proxy of C++ GERBER_JOBFILE_WRITER class."""
9033
9034 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9035 __repr__ = _swig_repr
9036
9037 def __init__(self, aPcb, aReporter=None):
9038 r"""__init__(GERBER_JOBFILE_WRITER self, BOARD aPcb, REPORTER * aReporter=None) -> GERBER_JOBFILE_WRITER"""
9039 _pcbnew.GERBER_JOBFILE_WRITER_swiginit(self, _pcbnew.new_GERBER_JOBFILE_WRITER(aPcb, aReporter))
9040 __swig_destroy__ = _pcbnew.delete_GERBER_JOBFILE_WRITER
9041
9042 def AddGbrFile(self, aLayer, aFilename):
9043 r"""AddGbrFile(GERBER_JOBFILE_WRITER self, PCB_LAYER_ID aLayer, wxString aFilename)"""
9044 return _pcbnew.GERBER_JOBFILE_WRITER_AddGbrFile(self, aLayer, aFilename)
9045
9046 def CreateJobFile(self, aFullFilename):
9047 r"""CreateJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9048 return _pcbnew.GERBER_JOBFILE_WRITER_CreateJobFile(self, aFullFilename)
9049
9050 def WriteJSONJobFile(self, aFullFilename):
9051 r"""WriteJSONJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9052 return _pcbnew.GERBER_JOBFILE_WRITER_WriteJSONJobFile(self, aFullFilename)
9053
9054# Register GERBER_JOBFILE_WRITER in _pcbnew:
9055_pcbnew.GERBER_JOBFILE_WRITER_swigregister(GERBER_JOBFILE_WRITER)
9056ROOM_FOR_KICADMANAGER = _pcbnew.ROOM_FOR_KICADMANAGER
9057
9058ROOM_FOR_3D_VIEWER = _pcbnew.ROOM_FOR_3D_VIEWER
9059
9060ROOM_FOR_PANEL_PREV_MODEL = _pcbnew.ROOM_FOR_PANEL_PREV_MODEL
9061
9062DEFAULT_FILE_HISTORY_SIZE = _pcbnew.DEFAULT_FILE_HISTORY_SIZE
9063
9064MAX_FILE_HISTORY_SIZE = _pcbnew.MAX_FILE_HISTORY_SIZE
9065
9066ID_LOAD_FILE = _pcbnew.ID_LOAD_FILE
9067
9068ID_NEW_BOARD = _pcbnew.ID_NEW_BOARD
9069
9070ID_SAVE_BOARD = _pcbnew.ID_SAVE_BOARD
9071
9072ID_SAVE_BOARD_AS = _pcbnew.ID_SAVE_BOARD_AS
9073
9074ID_AUTO_SAVE_TIMER = _pcbnew.ID_AUTO_SAVE_TIMER
9075
9076ID_FILE = _pcbnew.ID_FILE
9077
9078ID_FILE1 = _pcbnew.ID_FILE1
9079
9080ID_FILEMAX = _pcbnew.ID_FILEMAX
9081
9082ID_FILE_LIST_EMPTY = _pcbnew.ID_FILE_LIST_EMPTY
9083
9084ID_FILE_LIST_CLEAR = _pcbnew.ID_FILE_LIST_CLEAR
9085
9086ID_PREFERENCES_RESET_PANEL = _pcbnew.ID_PREFERENCES_RESET_PANEL
9087
9088ID_GEN_PLOT = _pcbnew.ID_GEN_PLOT
9089
9090ID_GEN_PLOT_PS = _pcbnew.ID_GEN_PLOT_PS
9091
9092ID_GEN_PLOT_HPGL = _pcbnew.ID_GEN_PLOT_HPGL
9093
9094ID_GEN_PLOT_GERBER = _pcbnew.ID_GEN_PLOT_GERBER
9095
9096ID_GEN_PLOT_SVG = _pcbnew.ID_GEN_PLOT_SVG
9097
9098ID_GEN_PLOT_DXF = _pcbnew.ID_GEN_PLOT_DXF
9099
9100ID_GEN_PLOT_PDF = _pcbnew.ID_GEN_PLOT_PDF
9101
9102ID_H_TOOLBAR = _pcbnew.ID_H_TOOLBAR
9103
9104ID_V_TOOLBAR = _pcbnew.ID_V_TOOLBAR
9105
9106ID_OPT_TOOLBAR = _pcbnew.ID_OPT_TOOLBAR
9107
9108ID_AUX_TOOLBAR = _pcbnew.ID_AUX_TOOLBAR
9109
9110ID_LANGUAGE_CHOICE = _pcbnew.ID_LANGUAGE_CHOICE
9111
9112ID_LANGUAGE_DANISH = _pcbnew.ID_LANGUAGE_DANISH
9113
9114ID_LANGUAGE_DEFAULT = _pcbnew.ID_LANGUAGE_DEFAULT
9115
9116ID_LANGUAGE_ENGLISH = _pcbnew.ID_LANGUAGE_ENGLISH
9117
9118ID_LANGUAGE_FRENCH = _pcbnew.ID_LANGUAGE_FRENCH
9119
9120ID_LANGUAGE_FINNISH = _pcbnew.ID_LANGUAGE_FINNISH
9121
9122ID_LANGUAGE_HEBREW = _pcbnew.ID_LANGUAGE_HEBREW
9123
9124ID_LANGUAGE_SPANISH = _pcbnew.ID_LANGUAGE_SPANISH
9125
9126ID_LANGUAGE_SPANISH_MEXICAN = _pcbnew.ID_LANGUAGE_SPANISH_MEXICAN
9127
9128ID_LANGUAGE_GERMAN = _pcbnew.ID_LANGUAGE_GERMAN
9129
9130ID_LANGUAGE_GREEK = _pcbnew.ID_LANGUAGE_GREEK
9131
9132ID_LANGUAGE_NORWEGIAN = _pcbnew.ID_LANGUAGE_NORWEGIAN
9133
9134ID_LANGUAGE_RUSSIAN = _pcbnew.ID_LANGUAGE_RUSSIAN
9135
9136ID_LANGUAGE_PORTUGUESE = _pcbnew.ID_LANGUAGE_PORTUGUESE
9137
9138ID_LANGUAGE_PORTUGUESE_BRAZILIAN = _pcbnew.ID_LANGUAGE_PORTUGUESE_BRAZILIAN
9139
9140ID_LANGUAGE_TURKISH = _pcbnew.ID_LANGUAGE_TURKISH
9141
9142ID_LANGUAGE_INDONESIAN = _pcbnew.ID_LANGUAGE_INDONESIAN
9143
9144ID_LANGUAGE_ITALIAN = _pcbnew.ID_LANGUAGE_ITALIAN
9145
9146ID_LANGUAGE_SLOVENIAN = _pcbnew.ID_LANGUAGE_SLOVENIAN
9147
9148ID_LANGUAGE_SLOVAK = _pcbnew.ID_LANGUAGE_SLOVAK
9149
9150ID_LANGUAGE_HUNGARIAN = _pcbnew.ID_LANGUAGE_HUNGARIAN
9151
9152ID_LANGUAGE_POLISH = _pcbnew.ID_LANGUAGE_POLISH
9153
9154ID_LANGUAGE_CZECH = _pcbnew.ID_LANGUAGE_CZECH
9155
9156ID_LANGUAGE_KOREAN = _pcbnew.ID_LANGUAGE_KOREAN
9157
9158ID_LANGUAGE_CATALAN = _pcbnew.ID_LANGUAGE_CATALAN
9159
9160ID_LANGUAGE_CHINESE_SIMPLIFIED = _pcbnew.ID_LANGUAGE_CHINESE_SIMPLIFIED
9161
9162ID_LANGUAGE_CHINESE_TRADITIONAL = _pcbnew.ID_LANGUAGE_CHINESE_TRADITIONAL
9163
9164ID_LANGUAGE_DUTCH = _pcbnew.ID_LANGUAGE_DUTCH
9165
9166ID_LANGUAGE_JAPANESE = _pcbnew.ID_LANGUAGE_JAPANESE
9167
9168ID_LANGUAGE_BULGARIAN = _pcbnew.ID_LANGUAGE_BULGARIAN
9169
9170ID_LANGUAGE_LATVIAN = _pcbnew.ID_LANGUAGE_LATVIAN
9171
9172ID_LANGUAGE_LITHUANIAN = _pcbnew.ID_LANGUAGE_LITHUANIAN
9173
9174ID_LANGUAGE_VIETNAMESE = _pcbnew.ID_LANGUAGE_VIETNAMESE
9175
9176ID_LANGUAGE_SERBIAN = _pcbnew.ID_LANGUAGE_SERBIAN
9177
9178ID_LANGUAGE_THAI = _pcbnew.ID_LANGUAGE_THAI
9179
9180ID_LANGUAGE_SWEDISH = _pcbnew.ID_LANGUAGE_SWEDISH
9181
9182ID_LANGUAGE_UKRANIAN = _pcbnew.ID_LANGUAGE_UKRANIAN
9183
9184ID_LANGUAGE_CHOICE_END = _pcbnew.ID_LANGUAGE_CHOICE_END
9185
9186ID_ON_ZOOM_SELECT = _pcbnew.ID_ON_ZOOM_SELECT
9187
9188ID_ON_GRID_SELECT = _pcbnew.ID_ON_GRID_SELECT
9189
9190ID_POPUP_ZOOM_LEVEL_START = _pcbnew.ID_POPUP_ZOOM_LEVEL_START
9191
9192ID_POPUP_ZOOM_LEVEL_END = _pcbnew.ID_POPUP_ZOOM_LEVEL_END
9193
9194ID_POPUP_GRID_START = _pcbnew.ID_POPUP_GRID_START
9195
9196ID_POPUP_GRID_END = _pcbnew.ID_POPUP_GRID_END
9197
9198ID_EDA_SOCKET_EVENT_SERV = _pcbnew.ID_EDA_SOCKET_EVENT_SERV
9199
9200ID_EDA_SOCKET_EVENT = _pcbnew.ID_EDA_SOCKET_EVENT
9201
9202ID_KICAD_MANAGER_START = _pcbnew.ID_KICAD_MANAGER_START
9203
9204ID_KICAD_MANAGER_END = _pcbnew.ID_KICAD_MANAGER_END
9205
9206ID_KICAD_3D_VIEWER_START = _pcbnew.ID_KICAD_3D_VIEWER_START
9207
9208ID_KICAD_3D_VIEWER_END = _pcbnew.ID_KICAD_3D_VIEWER_END
9209
9210ID_KICAD_PANEL_PREV_MODEL_START = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_START
9211
9212ID_KICAD_PANEL_PREV_MODEL_END = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_END
9213
9214ID_POPUP_MENU_START = _pcbnew.ID_POPUP_MENU_START
9215
9216ID_POPUP_MENU_END = _pcbnew.ID_POPUP_MENU_END
9217
9218ID_END_LIST = _pcbnew.ID_END_LIST
9219
9220
9222 r"""GetBoard() -> BOARD"""
9223 return _pcbnew.GetBoard()
9224
9225def LoadBoard(*args):
9226 r"""
9227 LoadBoard(wxString aFileName, PCB_IO_MGR::PCB_FILE_T aFormat) -> BOARD
9228 LoadBoard(wxString aFileName) -> BOARD
9229 """
9230 return _pcbnew.LoadBoard(*args)
9231
9232def NewBoard(aFileName):
9233 r"""NewBoard(wxString aFileName) -> BOARD"""
9234 return _pcbnew.NewBoard(aFileName)
9235
9237 r"""GetSettingsManager() -> SETTINGS_MANAGER"""
9238 return _pcbnew.GetSettingsManager()
9239
9241 r"""CreateEmptyBoard() -> BOARD"""
9242 return _pcbnew.CreateEmptyBoard()
9243
9244def SaveBoard(aFileName, aBoard, aSkipSettings=False):
9245 r"""SaveBoard(wxString aFileName, BOARD aBoard, bool aSkipSettings=False) -> bool"""
9246 return _pcbnew.SaveBoard(aFileName, aBoard, aSkipSettings)
9247
9249 r"""GetFootprintLibraries() -> wxArrayString"""
9250 return _pcbnew.GetFootprintLibraries()
9251
9252def GetFootprints(aNickName):
9253 r"""GetFootprints(wxString aNickName) -> wxArrayString"""
9254 return _pcbnew.GetFootprints(aNickName)
9255
9257 r"""
9258 ExportSpecctraDSN(wxString aFullFilename) -> bool
9259 ExportSpecctraDSN(BOARD aBoard, wxString aFullFilename) -> bool
9260 """
9261 return _pcbnew.ExportSpecctraDSN(*args)
9262
9263def ExportVRML(aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
9264 r"""ExportVRML(wxString aFullFileName, double aMMtoWRMLunit, bool aIncludeUnspecified, bool aIncludeDNP, bool aExport3DFiles, bool aUseRelativePaths, wxString a3D_Subdir, double aXRef, double aYRef) -> bool"""
9265 return _pcbnew.ExportVRML(aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
9266
9268 r"""
9269 ImportSpecctraSES(wxString aFullFilename) -> bool
9270 ImportSpecctraSES(BOARD aBoard, wxString aFullFilename) -> bool
9271 """
9272 return _pcbnew.ImportSpecctraSES(*args)
9273
9275 r"""ExportFootprintsToLibrary(bool aStoreInNewLib, wxString aLibName=wxEmptyString, wxString aLibPath=None) -> bool"""
9276 return _pcbnew.ExportFootprintsToLibrary(*args)
9277
9279 r"""Refresh()"""
9280 return _pcbnew.Refresh()
9281
9283 r"""UpdateUserInterface()"""
9284 return _pcbnew.UpdateUserInterface()
9285
9287 r"""GetUserUnits() -> int"""
9288 return _pcbnew.GetUserUnits()
9289
9291 r"""GetCurrentSelection() -> DRAWINGS"""
9292 return _pcbnew.GetCurrentSelection()
9293
9294def FocusOnItem(aItem, aLayer=UNDEFINED_LAYER):
9295 r"""FocusOnItem(BOARD_ITEM aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
9296 return _pcbnew.FocusOnItem(aItem, aLayer)
9297
9299 r"""IsActionRunning() -> bool"""
9300 return _pcbnew.IsActionRunning()
9301
9302def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors):
9303 r"""WriteDRCReport(BOARD aBoard, wxString aFileName, EDA_UNITS aUnits, bool aReportAllTrackErrors) -> bool"""
9304 return _pcbnew.WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
9305
9307 r"""GetLanguage() -> wxString"""
9308 return _pcbnew.GetLanguage()
9310 r"""Proxy of C++ std::vector< enum PCB_LAYER_ID > class."""
9311
9312 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9313 __repr__ = _swig_repr
9314
9315 def iterator(self):
9316 r"""iterator(base_seqVect self) -> SwigPyIterator"""
9317 return _pcbnew.base_seqVect_iterator(self)
9318 def __iter__(self):
9319 return self.iterator()
9320
9321 def __nonzero__(self):
9322 r"""__nonzero__(base_seqVect self) -> bool"""
9323 return _pcbnew.base_seqVect___nonzero__(self)
9324
9325 def __bool__(self):
9326 r"""__bool__(base_seqVect self) -> bool"""
9327 return _pcbnew.base_seqVect___bool__(self)
9328
9329 def __len__(self):
9330 r"""__len__(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
9331 return _pcbnew.base_seqVect___len__(self)
9332
9333 def __getslice__(self, i, j):
9334 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"""
9335 return _pcbnew.base_seqVect___getslice__(self, i, j)
9336
9337 def __setslice__(self, *args):
9338 r"""
9339 __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)
9340 __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)
9341 """
9342 return _pcbnew.base_seqVect___setslice__(self, *args)
9343
9344 def __delslice__(self, i, j):
9345 r"""__delslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)"""
9346 return _pcbnew.base_seqVect___delslice__(self, i, j)
9347
9348 def __delitem__(self, *args):
9349 r"""
9350 __delitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i)
9351 __delitem__(base_seqVect self, SWIGPY_SLICEOBJECT * slice)
9352 """
9353 return _pcbnew.base_seqVect___delitem__(self, *args)
9354
9355 def __getitem__(self, *args):
9356 r"""
9357 __getitem__(base_seqVect self, SWIGPY_SLICEOBJECT * slice) -> base_seqVect
9358 __getitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i) -> std::vector< enum PCB_LAYER_ID >::value_type const &
9359 """
9360 return _pcbnew.base_seqVect___getitem__(self, *args)
9361
9362 def __setitem__(self, *args):
9363 r"""
9364 __setitem__(base_seqVect self, SWIGPY_SLICEOBJECT * slice, base_seqVect v)
9365 __setitem__(base_seqVect self, SWIGPY_SLICEOBJECT * slice)
9366 __setitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::value_type const & x)
9367 """
9368 return _pcbnew.base_seqVect___setitem__(self, *args)
9369
9370 def pop(self):
9371 r"""pop(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type"""
9372 return _pcbnew.base_seqVect_pop(self)
9373
9374 def append(self, x):
9375 r"""append(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
9376 return _pcbnew.base_seqVect_append(self, x)
9377
9378 def empty(self):
9379 r"""empty(base_seqVect self) -> bool"""
9380 return _pcbnew.base_seqVect_empty(self)
9381
9382 def size(self):
9383 r"""size(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
9384 return _pcbnew.base_seqVect_size(self)
9385
9386 def swap(self, v):
9387 r"""swap(base_seqVect self, base_seqVect v)"""
9388 return _pcbnew.base_seqVect_swap(self, v)
9389
9390 def begin(self):
9391 r"""begin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
9392 return _pcbnew.base_seqVect_begin(self)
9393
9394 def end(self):
9395 r"""end(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
9396 return _pcbnew.base_seqVect_end(self)
9397
9398 def rbegin(self):
9399 r"""rbegin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
9400 return _pcbnew.base_seqVect_rbegin(self)
9401
9402 def rend(self):
9403 r"""rend(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
9404 return _pcbnew.base_seqVect_rend(self)
9405
9406 def clear(self):
9407 r"""clear(base_seqVect self)"""
9408 return _pcbnew.base_seqVect_clear(self)
9409
9410 def get_allocator(self):
9411 r"""get_allocator(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::allocator_type"""
9412 return _pcbnew.base_seqVect_get_allocator(self)
9413
9414 def pop_back(self):
9415 r"""pop_back(base_seqVect self)"""
9416 return _pcbnew.base_seqVect_pop_back(self)
9417
9418 def erase(self, *args):
9419 r"""
9420 erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos) -> std::vector< enum PCB_LAYER_ID >::iterator
9421 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
9422 """
9423 return _pcbnew.base_seqVect_erase(self, *args)
9424
9425 def __init__(self, *args):
9426 r"""
9427 __init__(base_seqVect self) -> base_seqVect
9428 __init__(base_seqVect self, base_seqVect other) -> base_seqVect
9429 __init__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type size) -> base_seqVect
9430 __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
9431 """
9432 _pcbnew.base_seqVect_swiginit(self, _pcbnew.new_base_seqVect(*args))
9433
9434 def push_back(self, x):
9435 r"""push_back(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
9436 return _pcbnew.base_seqVect_push_back(self, x)
9437
9438 def front(self):
9439 r"""front(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
9440 return _pcbnew.base_seqVect_front(self)
9441
9442 def back(self):
9443 r"""back(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
9444 return _pcbnew.base_seqVect_back(self)
9445
9446 def assign(self, n, x):
9447 r"""assign(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
9448 return _pcbnew.base_seqVect_assign(self, n, x)
9449
9450 def resize(self, *args):
9451 r"""
9452 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size)
9453 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size, std::vector< enum PCB_LAYER_ID >::value_type const & x)
9454 """
9455 return _pcbnew.base_seqVect_resize(self, *args)
9456
9457 def insert(self, *args):
9458 r"""
9459 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
9460 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)
9461 """
9462 return _pcbnew.base_seqVect_insert(self, *args)
9463
9464 def reserve(self, n):
9465 r"""reserve(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n)"""
9466 return _pcbnew.base_seqVect_reserve(self, n)
9467
9468 def capacity(self):
9469 r"""capacity(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
9470 return _pcbnew.base_seqVect_capacity(self)
9471 __swig_destroy__ = _pcbnew.delete_base_seqVect
9472
9473# Register base_seqVect in _pcbnew:
9474_pcbnew.base_seqVect_swigregister(base_seqVect)
9476 r"""Proxy of C++ LSEQ class."""
9477
9478 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9479 __repr__ = _swig_repr
9480
9481 def __init__(self, *args):
9482 r"""
9483 __init__(LSEQ self) -> LSEQ
9484 __init__(LSEQ self, std::initializer_list< PCB_LAYER_ID > aLayers) -> LSEQ
9485 """
9486 _pcbnew.LSEQ_swiginit(self, _pcbnew.new_LSEQ(*args))
9487
9488 def TestLayers(self, aRhs, aLhs):
9489 r"""TestLayers(LSEQ self, PCB_LAYER_ID aRhs, PCB_LAYER_ID aLhs) -> int"""
9490 return _pcbnew.LSEQ_TestLayers(self, aRhs, aLhs)
9491 __swig_destroy__ = _pcbnew.delete_LSEQ
9492
9493# Register LSEQ in _pcbnew:
9494_pcbnew.LSEQ_swigregister(LSEQ)
9496 r"""Proxy of C++ LSET class."""
9497
9498 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9499 __repr__ = _swig_repr
9500
9501 def __init__(self, *args):
9502 r"""
9503 __init__(LSET self) -> LSET
9504 __init__(LSET self, BASE_SET aOther) -> LSET
9505 __init__(LSET self, std::initializer_list< PCB_LAYER_ID > aList) -> LSET
9506 __init__(LSET self, base_seqVect aList) -> LSET
9507 __init__(LSET self, LSEQ aSeq) -> LSET
9508 __init__(LSET self, LAYER_RANGE const & aRange) -> LSET
9509 """
9510 _pcbnew.LSET_swiginit(self, _pcbnew.new_LSET(*args))
9511
9512 def Contains(self, aLayer):
9513 r"""Contains(LSET self, PCB_LAYER_ID aLayer) -> bool"""
9514 return _pcbnew.LSET_Contains(self, aLayer)
9515
9516 @staticmethod
9517 def Name(aLayerId):
9518 r"""Name(PCB_LAYER_ID aLayerId) -> wxString"""
9519 return _pcbnew.LSET_Name(aLayerId)
9520
9521 @staticmethod
9522 def NameToLayer(aName):
9523 r"""NameToLayer(wxString aName) -> int"""
9524 return _pcbnew.LSET_NameToLayer(aName)
9525
9526 @staticmethod
9527 def IsBetween(aStart, aEnd, aLayer):
9528 r"""IsBetween(PCB_LAYER_ID aStart, PCB_LAYER_ID aEnd, PCB_LAYER_ID aLayer) -> bool"""
9529 return _pcbnew.LSET_IsBetween(aStart, aEnd, aLayer)
9530
9531 @staticmethod
9533 r"""InternalCuMask() -> LSET"""
9534 return _pcbnew.LSET_InternalCuMask()
9535
9536 @staticmethod
9538 r"""FrontAssembly() -> LSET"""
9539 return _pcbnew.LSET_FrontAssembly()
9540
9541 @staticmethod
9543 r"""BackAssembly() -> LSET"""
9544 return _pcbnew.LSET_BackAssembly()
9545
9546 @staticmethod
9547 def AllCuMask(aCuLayerCount=32):
9548 r"""AllCuMask(int aCuLayerCount=32) -> LSET"""
9549 return _pcbnew.LSET_AllCuMask(aCuLayerCount)
9550
9551 @staticmethod
9553 r"""ExternalCuMask() -> LSET"""
9554 return _pcbnew.LSET_ExternalCuMask()
9555
9556 @staticmethod
9558 r"""AllNonCuMask() -> LSET"""
9559 return _pcbnew.LSET_AllNonCuMask()
9560
9561 @staticmethod
9563 r"""AllLayersMask() -> LSET"""
9564 return _pcbnew.LSET_AllLayersMask()
9565
9566 @staticmethod
9568 r"""FrontTechMask() -> LSET"""
9569 return _pcbnew.LSET_FrontTechMask()
9570
9571 @staticmethod
9573 r"""FrontBoardTechMask() -> LSET"""
9574 return _pcbnew.LSET_FrontBoardTechMask()
9575
9576 @staticmethod
9578 r"""BackTechMask() -> LSET"""
9579 return _pcbnew.LSET_BackTechMask()
9580
9581 @staticmethod
9583 r"""BackBoardTechMask() -> LSET"""
9584 return _pcbnew.LSET_BackBoardTechMask()
9585
9586 @staticmethod
9588 r"""AllTechMask() -> LSET"""
9589 return _pcbnew.LSET_AllTechMask()
9590
9591 @staticmethod
9593 r"""AllBoardTechMask() -> LSET"""
9594 return _pcbnew.LSET_AllBoardTechMask()
9595
9596 @staticmethod
9598 r"""FrontMask() -> LSET"""
9599 return _pcbnew.LSET_FrontMask()
9600
9601 @staticmethod
9603 r"""BackMask() -> LSET"""
9604 return _pcbnew.LSET_BackMask()
9605
9606 @staticmethod
9608 r"""SideSpecificMask() -> LSET"""
9609 return _pcbnew.LSET_SideSpecificMask()
9610
9611 @staticmethod
9613 r"""UserMask() -> LSET"""
9614 return _pcbnew.LSET_UserMask()
9615
9616 @staticmethod
9618 r"""PhysicalLayersMask() -> LSET"""
9619 return _pcbnew.LSET_PhysicalLayersMask()
9620
9621 @staticmethod
9623 r"""UserDefinedLayers() -> LSET"""
9624 return _pcbnew.LSET_UserDefinedLayers()
9625
9626 @staticmethod
9628 r"""ForbiddenFootprintLayers() -> LSET"""
9629 return _pcbnew.LSET_ForbiddenFootprintLayers()
9630
9631 def CuStack(self):
9632 r"""CuStack(LSET self) -> LSEQ"""
9633 return _pcbnew.LSET_CuStack(self)
9634
9636 r"""TechAndUserUIOrder(LSET self) -> LSEQ"""
9637 return _pcbnew.LSET_TechAndUserUIOrder(self)
9638
9639 def UIOrder(self):
9640 r"""UIOrder(LSET self) -> LSEQ"""
9641 return _pcbnew.LSET_UIOrder(self)
9642
9643 def Seq(self, *args):
9644 r"""
9645 Seq(LSET self, LSEQ aSequence) -> LSEQ
9646 Seq(LSET self) -> LSEQ
9647 """
9648 return _pcbnew.LSET_Seq(self, *args)
9649
9650 def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER):
9651 r"""SeqStackupTop2Bottom(LSET self, PCB_LAYER_ID aSelectedLayer=UNDEFINED_LAYER) -> LSEQ"""
9652 return _pcbnew.LSET_SeqStackupTop2Bottom(self, aSelectedLayer)
9653
9655 r"""SeqStackupForPlotting(LSET self) -> LSEQ"""
9656 return _pcbnew.LSET_SeqStackupForPlotting(self)
9657
9658 def RunOnLayers(self, aFunction):
9659 r"""RunOnLayers(LSET self, std::function< void (PCB_LAYER_ID) > const & aFunction)"""
9660 return _pcbnew.LSET_RunOnLayers(self, aFunction)
9661
9662 def FmtHex(self):
9663 r"""FmtHex(LSET self) -> string"""
9664 return _pcbnew.LSET_FmtHex(self)
9665
9666 def ParseHex(self, *args):
9667 r"""
9668 ParseHex(LSET self, char const * aStart, int aCount) -> int
9669 ParseHex(LSET self, string str) -> int
9670 """
9671 return _pcbnew.LSET_ParseHex(self, *args)
9672
9673 def FmtBin(self):
9674 r"""FmtBin(LSET self) -> string"""
9675 return _pcbnew.LSET_FmtBin(self)
9676
9677 def ExtractLayer(self):
9678 r"""ExtractLayer(LSET self) -> PCB_LAYER_ID"""
9679 return _pcbnew.LSET_ExtractLayer(self)
9680
9681 def Flip(self, aCopperLayersCount=0):
9682 r"""Flip(LSET self, int aCopperLayersCount=0) -> LSET"""
9683 return _pcbnew.LSET_Flip(self, aCopperLayersCount)
9684
9685 @staticmethod
9686 def LayerCount(aStart, aEnd, aCopperLayerCount):
9687 r"""LayerCount(PCB_LAYER_ID aStart, PCB_LAYER_ID aEnd, int aCopperLayerCount) -> int"""
9688 return _pcbnew.LSET_LayerCount(aStart, aEnd, aCopperLayerCount)
9689
9690 def addLayer(self, aLayer):
9691 r"""addLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
9692 return _pcbnew.LSET_addLayer(self, aLayer)
9693
9694 def removeLayer(self, aLayer):
9695 r"""removeLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
9696 return _pcbnew.LSET_removeLayer(self, aLayer)
9697
9698 def addLayerSet(self, aLayerSet):
9699 r"""addLayerSet(LSET self, LSET aLayerSet) -> LSET"""
9700 return _pcbnew.LSET_addLayerSet(self, aLayerSet)
9701
9702 def removeLayerSet(self, aLayerSet):
9703 r"""removeLayerSet(LSET self, LSET aLayerSet) -> LSET"""
9704 return _pcbnew.LSET_removeLayerSet(self, aLayerSet)
9705
9706 def AddLayer(self, layer):
9707 return self.addLayer( layer )
9708
9709 def AddLayerSet(self, layers):
9710 return self.addLayerSet( layers )
9711
9712 def RemoveLayer(self, layer):
9713 return self.removeLayer( layer )
9714
9715 def RemoveLayerSet(self, layers):
9716 return self.removeLayerSet( layers )
9717
9718 __swig_destroy__ = _pcbnew.delete_LSET
9719
9720# Register LSET in _pcbnew:
9721_pcbnew.LSET_swigregister(LSET)
9722ZLO_NONE = _pcbnew.ZLO_NONE
9723
9724ZLO_FORCE_FLASHED = _pcbnew.ZLO_FORCE_FLASHED
9725
9726ZLO_FORCE_NO_ZONE_CONNECTION = _pcbnew.ZLO_FORCE_NO_ZONE_CONNECTION
9727
9729 r"""Proxy of C++ BOARD_ITEM class."""
9730
9731 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9732
9733 def __init__(self, *args, **kwargs):
9734 raise AttributeError("No constructor defined - class is abstract")
9735 __repr__ = _swig_repr
9736 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM
9737
9738 def SetParentGroup(self, aGroup):
9739 r"""SetParentGroup(BOARD_ITEM self, PCB_GROUP aGroup)"""
9740 return _pcbnew.BOARD_ITEM_SetParentGroup(self, aGroup)
9741
9743 r"""GetParentGroup(BOARD_ITEM self) -> PCB_GROUP"""
9744 return _pcbnew.BOARD_ITEM_GetParentGroup(self)
9745
9746 def GetX(self):
9747 r"""GetX(BOARD_ITEM self) -> int"""
9748 return _pcbnew.BOARD_ITEM_GetX(self)
9749
9750 def GetY(self):
9751 r"""GetY(BOARD_ITEM self) -> int"""
9752 return _pcbnew.BOARD_ITEM_GetY(self)
9753
9754 def GetCenter(self):
9755 r"""GetCenter(BOARD_ITEM self) -> VECTOR2I"""
9756 return _pcbnew.BOARD_ITEM_GetCenter(self)
9757
9758 def SetX(self, aX):
9759 r"""SetX(BOARD_ITEM self, int aX)"""
9760 return _pcbnew.BOARD_ITEM_SetX(self, aX)
9761
9762 def SetY(self, aY):
9763 r"""SetY(BOARD_ITEM self, int aY)"""
9764 return _pcbnew.BOARD_ITEM_SetY(self, aY)
9765
9766 def IsConnected(self):
9767 r"""IsConnected(BOARD_ITEM self) -> bool"""
9768 return _pcbnew.BOARD_ITEM_IsConnected(self)
9769
9770 def Similarity(self, aItem):
9771 r"""Similarity(BOARD_ITEM self, BOARD_ITEM aItem) -> double"""
9772 return _pcbnew.BOARD_ITEM_Similarity(self, aItem)
9773
9774 def __eq__(self, aItem):
9775 r"""__eq__(BOARD_ITEM self, BOARD_ITEM aItem) -> bool"""
9776 return _pcbnew.BOARD_ITEM___eq__(self, aItem)
9777
9779 r"""IsOnCopperLayer(BOARD_ITEM self) -> bool"""
9780 return _pcbnew.BOARD_ITEM_IsOnCopperLayer(self)
9781
9782 def HasHole(self):
9783 r"""HasHole(BOARD_ITEM self) -> bool"""
9784 return _pcbnew.BOARD_ITEM_HasHole(self)
9785
9787 r"""HasDrilledHole(BOARD_ITEM self) -> bool"""
9788 return _pcbnew.BOARD_ITEM_HasDrilledHole(self)
9789
9790 def IsTented(self, aLayer):
9791 r"""IsTented(BOARD_ITEM self, PCB_LAYER_ID aLayer) -> bool"""
9792 return _pcbnew.BOARD_ITEM_IsTented(self, aLayer)
9793
9794 def GetEffectiveShape(self, *args):
9795 r"""GetEffectiveShape(BOARD_ITEM self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
9796 return _pcbnew.BOARD_ITEM_GetEffectiveShape(self, *args)
9797
9799 r"""GetEffectiveHoleShape(BOARD_ITEM self) -> std::shared_ptr< SHAPE_SEGMENT >"""
9800 return _pcbnew.BOARD_ITEM_GetEffectiveHoleShape(self)
9801
9802 def RunOnChildren(self, aFunction):
9803 r"""RunOnChildren(BOARD_ITEM self, std::function< void (BOARD_ITEM *) > const & aFunction)"""
9804 return _pcbnew.BOARD_ITEM_RunOnChildren(self, aFunction)
9805
9806 def RunOnDescendants(self, aFunction, aDepth=0):
9807 r"""RunOnDescendants(BOARD_ITEM self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
9808 return _pcbnew.BOARD_ITEM_RunOnDescendants(self, aFunction, aDepth)
9809
9810 def GetParent(self):
9811 r"""GetParent(BOARD_ITEM self) -> BOARD_ITEM_CONTAINER"""
9812 return _pcbnew.BOARD_ITEM_GetParent(self)
9813
9815 r"""GetParentFootprint(BOARD_ITEM self) -> FOOTPRINT"""
9816 return _pcbnew.BOARD_ITEM_GetParentFootprint(self)
9817
9819 r"""GetFPRelativePosition(BOARD_ITEM self) -> VECTOR2I"""
9820 return _pcbnew.BOARD_ITEM_GetFPRelativePosition(self)
9821
9822 def SetFPRelativePosition(self, aPos):
9823 r"""SetFPRelativePosition(BOARD_ITEM self, VECTOR2I aPos)"""
9824 return _pcbnew.BOARD_ITEM_SetFPRelativePosition(self, aPos)
9825
9826 def HasLineStroke(self):
9827 r"""HasLineStroke(BOARD_ITEM self) -> bool"""
9828 return _pcbnew.BOARD_ITEM_HasLineStroke(self)
9829
9830 def GetStroke(self):
9831 r"""GetStroke(BOARD_ITEM self) -> STROKE_PARAMS"""
9832 return _pcbnew.BOARD_ITEM_GetStroke(self)
9833
9834 def SetStroke(self, aStroke):
9835 r"""SetStroke(BOARD_ITEM self, STROKE_PARAMS const & aStroke)"""
9836 return _pcbnew.BOARD_ITEM_SetStroke(self, aStroke)
9837
9839 r"""GetFontMetrics(BOARD_ITEM self) -> KIFONT::METRICS const &"""
9840 return _pcbnew.BOARD_ITEM_GetFontMetrics(self)
9841
9842 def GetLayer(self):
9843 r"""GetLayer(BOARD_ITEM self) -> PCB_LAYER_ID"""
9844 return _pcbnew.BOARD_ITEM_GetLayer(self)
9845
9847 r"""BoardLayerCount(BOARD_ITEM self) -> int"""
9848 return _pcbnew.BOARD_ITEM_BoardLayerCount(self)
9849
9851 r"""BoardCopperLayerCount(BOARD_ITEM self) -> int"""
9852 return _pcbnew.BOARD_ITEM_BoardCopperLayerCount(self)
9853
9854 def BoardLayerSet(self):
9855 r"""BoardLayerSet(BOARD_ITEM self) -> LSET"""
9856 return _pcbnew.BOARD_ITEM_BoardLayerSet(self)
9857
9858 def GetLayerSet(self):
9859 r"""GetLayerSet(BOARD_ITEM self) -> LSET"""
9860 return _pcbnew.BOARD_ITEM_GetLayerSet(self)
9861
9862 def SetLayerSet(self, aLayers):
9863 r"""SetLayerSet(BOARD_ITEM self, LSET aLayers)"""
9864 return _pcbnew.BOARD_ITEM_SetLayerSet(self, aLayers)
9865
9867 r"""IsSideSpecific(BOARD_ITEM self) -> bool"""
9868 return _pcbnew.BOARD_ITEM_IsSideSpecific(self)
9869
9870 def SetLayer(self, aLayer):
9871 r"""SetLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer)"""
9872 return _pcbnew.BOARD_ITEM_SetLayer(self, aLayer)
9873
9874 def Duplicate(self):
9875 r"""Duplicate(BOARD_ITEM self) -> BOARD_ITEM"""
9876 return _pcbnew.BOARD_ITEM_Duplicate(self)
9877
9878 def SwapItemData(self, aImage):
9879 r"""SwapItemData(BOARD_ITEM self, BOARD_ITEM aImage)"""
9880 return _pcbnew.BOARD_ITEM_SwapItemData(self, aImage)
9881
9882 def IsOnLayer(self, aLayer):
9883 r"""IsOnLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer) -> bool"""
9884 return _pcbnew.BOARD_ITEM_IsOnLayer(self, aLayer)
9885
9886 def IsKnockout(self):
9887 r"""IsKnockout(BOARD_ITEM self) -> bool"""
9888 return _pcbnew.BOARD_ITEM_IsKnockout(self)
9889
9890 def SetIsKnockout(self, aKnockout):
9891 r"""SetIsKnockout(BOARD_ITEM self, bool aKnockout)"""
9892 return _pcbnew.BOARD_ITEM_SetIsKnockout(self, aKnockout)
9893
9894 def IsLocked(self):
9895 r"""IsLocked(BOARD_ITEM self) -> bool"""
9896 return _pcbnew.BOARD_ITEM_IsLocked(self)
9897
9898 def SetLocked(self, aLocked):
9899 r"""SetLocked(BOARD_ITEM self, bool aLocked)"""
9900 return _pcbnew.BOARD_ITEM_SetLocked(self, aLocked)
9901
9902 def StyleFromSettings(self, settings):
9903 r"""StyleFromSettings(BOARD_ITEM self, BOARD_DESIGN_SETTINGS settings)"""
9904 return _pcbnew.BOARD_ITEM_StyleFromSettings(self, settings)
9905
9907 r"""DeleteStructure(BOARD_ITEM self)"""
9908 return _pcbnew.BOARD_ITEM_DeleteStructure(self)
9909
9910 def Move(self, aMoveVector):
9911 r"""Move(BOARD_ITEM self, VECTOR2I aMoveVector)"""
9912 return _pcbnew.BOARD_ITEM_Move(self, aMoveVector)
9913
9914 def Rotate(self, aRotCentre, aAngle):
9915 r"""Rotate(BOARD_ITEM self, VECTOR2I aRotCentre, EDA_ANGLE aAngle)"""
9916 return _pcbnew.BOARD_ITEM_Rotate(self, aRotCentre, aAngle)
9917
9918 def Flip(self, aCentre, aFlipDirection):
9919 r"""Flip(BOARD_ITEM self, VECTOR2I aCentre, FLIP_DIRECTION aFlipDirection)"""
9920 return _pcbnew.BOARD_ITEM_Flip(self, aCentre, aFlipDirection)
9921
9922 def Mirror(self, aCentre, aFlipDirection):
9923 r"""Mirror(BOARD_ITEM self, VECTOR2I aCentre, FLIP_DIRECTION aFlipDirection)"""
9924 return _pcbnew.BOARD_ITEM_Mirror(self, aCentre, aFlipDirection)
9925
9926 def Normalize(self):
9927 r"""Normalize(BOARD_ITEM self)"""
9928 return _pcbnew.BOARD_ITEM_Normalize(self)
9929
9931 r"""NormalizeForCompare(BOARD_ITEM self)"""
9932 return _pcbnew.BOARD_ITEM_NormalizeForCompare(self)
9933
9934 def GetBoard(self, *args):
9935 r"""
9936 GetBoard(BOARD_ITEM self) -> BOARD
9937 GetBoard(BOARD_ITEM self) -> BOARD
9938 """
9939 return _pcbnew.BOARD_ITEM_GetBoard(self, *args)
9940
9942 r"""GetParentAsString(BOARD_ITEM self) -> wxString"""
9943 return _pcbnew.BOARD_ITEM_GetParentAsString(self)
9944
9945 def GetLayerName(self):
9946 r"""GetLayerName(BOARD_ITEM self) -> wxString"""
9947 return _pcbnew.BOARD_ITEM_GetLayerName(self)
9948
9949 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
9950 r"""TransformShapeToPolygon(BOARD_ITEM self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
9951 return _pcbnew.BOARD_ITEM_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
9952 DRC = _pcbnew.BOARD_ITEM_DRC
9953
9954
9955 def Cast(self):
9956
9957 ct = self.GetClass()
9958
9959 if ct=="PCB_TEXT":
9960 return Cast_to_PCB_TEXT(self)
9961 if ct=="PCB_TEXTBOX":
9962 return Cast_to_PCB_TEXTBOX(self)
9963 elif ct=="BOARD":
9964 return Cast_to_BOARD(self)
9965 elif ct=="PCB_DIM_ALIGNED":
9966 return Cast_to_PCB_DIM_ALIGNED(self)
9967 elif ct=="PCB_DIM_LEADER":
9968 return Cast_to_PCB_DIM_LEADER(self)
9969 elif ct=="PCB_DIM_CENTER":
9970 return Cast_to_PCB_DIM_CENTER(self)
9971 elif ct=="PCB_DIM_RADIAL":
9972 return Cast_to_PCB_DIM_RADIAL(self)
9973 elif ct=="PCB_DIM_ORTHOGONAL":
9974 return Cast_to_PCB_DIM_ORTHOGONAL(self)
9975 elif ct=="PCB_SHAPE":
9976 return Cast_to_PCB_SHAPE(self)
9977 elif ct=="FOOTPRINT":
9978 return Cast_to_FOOTPRINT(self)
9979 elif ct=="PCB_GROUP":
9980 return Cast_to_PCB_GROUP(self)
9981 elif ct=="PAD":
9982 return Cast_to_PAD(self)
9983 elif ct=="PCB_VIA":
9984 return Cast_to_PCB_VIA(self)
9985 elif ct=="PCB_TRACK":
9986 return Cast_to_PCB_TRACK(self)
9987 elif ct=="PCB_ARC":
9988 return Cast_to_PCB_ARC(self)
9989 elif ct=="PCB_TARGET":
9990 return Cast_to_PCB_TARGET(self)
9991 elif ct=="PCB_TABLE":
9992 return Cast_to_PCB_TABLE(self)
9993 elif ct=="PCB_REFERENCE_IMAGE":
9994 return Cast_to_PCB_REFERENCE_IMAGE(self)
9995 elif ct=="ZONE":
9996 return Cast_to_ZONE(self)
9997 else:
9998 raise TypeError("Unsupported drawing class: %s" % ct)
9999
10000 """
10001 Needed to cast BOARD_ITEM::Duplicate() to the suitable type
10002 """
10003 def Duplicate(self):
10004 ct = self.GetClass()
10005 if ct=="BOARD":
10006 return None
10007 else:
10008 return Cast_to_BOARD_ITEM( _pcbnew.BOARD_ITEM_Duplicate(self) ).Cast()
10009
10010 def SetPos(self,p):
10011 self.SetPosition(p)
10012 #self.SetPos0(p)
10013
10014 def SetStartEnd(self,start,end):
10015 self.SetStart(start)
10016 #self.SetStart0(start)
10017 self.SetEnd(end)
10018 #self.SetEnd0(end)
10019
10020
10021# Register BOARD_ITEM in _pcbnew:
10022_pcbnew.BOARD_ITEM_swigregister(BOARD_ITEM)
10024 r"""Proxy of C++ DELETED_BOARD_ITEM class."""
10025
10026 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10027 __repr__ = _swig_repr
10028
10029 def __init__(self):
10030 r"""__init__(DELETED_BOARD_ITEM self) -> DELETED_BOARD_ITEM"""
10031 _pcbnew.DELETED_BOARD_ITEM_swiginit(self, _pcbnew.new_DELETED_BOARD_ITEM())
10032
10033 @staticmethod
10035 r"""GetInstance() -> DELETED_BOARD_ITEM"""
10036 return _pcbnew.DELETED_BOARD_ITEM_GetInstance()
10037
10038 def __eq__(self, *args):
10039 r"""
10040 __eq__(DELETED_BOARD_ITEM self, BOARD_ITEM aBoardItem) -> bool
10041 __eq__(DELETED_BOARD_ITEM self, DELETED_BOARD_ITEM aOther) -> bool
10042 """
10043 return _pcbnew.DELETED_BOARD_ITEM___eq__(self, *args)
10044 __swig_destroy__ = _pcbnew.delete_DELETED_BOARD_ITEM
10045
10046# Register DELETED_BOARD_ITEM in _pcbnew:
10047_pcbnew.DELETED_BOARD_ITEM_swigregister(DELETED_BOARD_ITEM)
10048IS_CHANGED = _pcbnew.IS_CHANGED
10049
10050IS_LINKED = _pcbnew.IS_LINKED
10051
10052IN_EDIT = _pcbnew.IN_EDIT
10053
10054IS_MOVING = _pcbnew.IS_MOVING
10055
10056IS_NEW = _pcbnew.IS_NEW
10057
10058IS_BROKEN = _pcbnew.IS_BROKEN
10059
10060IS_DELETED = _pcbnew.IS_DELETED
10061
10062STARTPOINT = _pcbnew.STARTPOINT
10063
10064ENDPOINT = _pcbnew.ENDPOINT
10065
10066SELECTED = _pcbnew.SELECTED
10067
10068SELECTED_BY_DRAG = _pcbnew.SELECTED_BY_DRAG
10069
10070STRUCT_DELETED = _pcbnew.STRUCT_DELETED
10071
10072CANDIDATE = _pcbnew.CANDIDATE
10073
10074SKIP_STRUCT = _pcbnew.SKIP_STRUCT
10075
10076IS_PASTED = _pcbnew.IS_PASTED
10077
10078IS_SHOWN_AS_BITMAP = _pcbnew.IS_SHOWN_AS_BITMAP
10079
10080COURTYARD_CONFLICT = _pcbnew.COURTYARD_CONFLICT
10081
10082MALFORMED_F_COURTYARD = _pcbnew.MALFORMED_F_COURTYARD
10083
10084MALFORMED_B_COURTYARD = _pcbnew.MALFORMED_B_COURTYARD
10085
10086MALFORMED_COURTYARDS = _pcbnew.MALFORMED_COURTYARDS
10087
10088ROUTER_TRANSIENT = _pcbnew.ROUTER_TRANSIENT
10089
10090HOLE_PROXY = _pcbnew.HOLE_PROXY
10091
10092IS_ROLLOVER = _pcbnew.IS_ROLLOVER
10093
10094SHOW_ELEC_TYPE = _pcbnew.SHOW_ELEC_TYPE
10095
10096BRIGHTENED = _pcbnew.BRIGHTENED
10097
10098UR_TRANSIENT = _pcbnew.UR_TRANSIENT
10099
10100IS_DANGLING = _pcbnew.IS_DANGLING
10101
10102ENTERED = _pcbnew.ENTERED
10103
10105 r"""Proxy of C++ UNITS_PROVIDER class."""
10106
10107 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10108 __repr__ = _swig_repr
10109
10110 def __init__(self, aIuScale, aUnits):
10111 r"""__init__(UNITS_PROVIDER self, EDA_IU_SCALE aIuScale, EDA_UNITS aUnits) -> UNITS_PROVIDER"""
10112 _pcbnew.UNITS_PROVIDER_swiginit(self, _pcbnew.new_UNITS_PROVIDER(aIuScale, aUnits))
10113 __swig_destroy__ = _pcbnew.delete_UNITS_PROVIDER
10114
10115 def GetUserUnits(self):
10116 r"""GetUserUnits(UNITS_PROVIDER self) -> EDA_UNITS"""
10117 return _pcbnew.UNITS_PROVIDER_GetUserUnits(self)
10118
10119 def SetUserUnits(self, aUnits):
10120 r"""SetUserUnits(UNITS_PROVIDER self, EDA_UNITS aUnits)"""
10121 return _pcbnew.UNITS_PROVIDER_SetUserUnits(self, aUnits)
10122
10123 def GetUnitPair(self, aPrimaryUnit, aSecondaryUnits):
10124 r"""GetUnitPair(UNITS_PROVIDER self, EDA_UNITS & aPrimaryUnit, EDA_UNITS & aSecondaryUnits)"""
10125 return _pcbnew.UNITS_PROVIDER_GetUnitPair(self, aPrimaryUnit, aSecondaryUnits)
10126
10127 def GetIuScale(self):
10128 r"""GetIuScale(UNITS_PROVIDER self) -> EDA_IU_SCALE"""
10129 return _pcbnew.UNITS_PROVIDER_GetIuScale(self)
10130
10132 r"""GetOriginTransforms(UNITS_PROVIDER self) -> ORIGIN_TRANSFORMS &"""
10133 return _pcbnew.UNITS_PROVIDER_GetOriginTransforms(self)
10134
10135 def StringFromOptionalValue(self, *args):
10136 r"""StringFromOptionalValue(UNITS_PROVIDER self, std::optional< int > aValue, bool aAddUnitLabel=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
10137 return _pcbnew.UNITS_PROVIDER_StringFromOptionalValue(self, *args)
10138
10139 def StringFromValue(self, *args):
10140 r"""
10141 StringFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString
10142 StringFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=False) -> wxString
10143 """
10144 return _pcbnew.UNITS_PROVIDER_StringFromValue(self, *args)
10145
10146 def MessageTextFromValue(self, *args):
10147 r"""
10148 MessageTextFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
10149 MessageTextFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
10150 """
10151 return _pcbnew.UNITS_PROVIDER_MessageTextFromValue(self, *args)
10152
10153 def MessageTextFromMinOptMax(self, aValue):
10154 r"""MessageTextFromMinOptMax(UNITS_PROVIDER self, MINOPTMAX< int > const & aValue) -> wxString"""
10155 return _pcbnew.UNITS_PROVIDER_MessageTextFromMinOptMax(self, aValue)
10156
10157 def ValueFromString(self, *args):
10158 r"""ValueFromString(UNITS_PROVIDER self, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> int"""
10159 return _pcbnew.UNITS_PROVIDER_ValueFromString(self, *args)
10160
10161 def OptionalValueFromString(self, *args):
10162 r"""OptionalValueFromString(UNITS_PROVIDER self, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> std::optional< int >"""
10163 return _pcbnew.UNITS_PROVIDER_OptionalValueFromString(self, *args)
10164
10165 def AngleValueFromString(self, aTextValue):
10166 r"""AngleValueFromString(UNITS_PROVIDER self, wxString aTextValue) -> EDA_ANGLE"""
10167 return _pcbnew.UNITS_PROVIDER_AngleValueFromString(self, aTextValue)
10168 NullUiString = _pcbnew.UNITS_PROVIDER_NullUiString
10169
10170
10171# Register UNITS_PROVIDER in _pcbnew:
10172_pcbnew.UNITS_PROVIDER_swigregister(UNITS_PROVIDER)
10173
10175 r"""Cast_to_BOARD_ITEM(EDA_ITEM base) -> BOARD_ITEM"""
10176 return _pcbnew.Cast_to_BOARD_ITEM(base)
10177
10179 r"""Cast_to_PCB_TEXT(BOARD_ITEM arg1) -> PCB_TEXT"""
10180 return _pcbnew.Cast_to_PCB_TEXT(arg1)
10181
10183 r"""Cast_to_PCB_TEXTBOX(BOARD_ITEM arg1) -> PCB_TEXTBOX"""
10184 return _pcbnew.Cast_to_PCB_TEXTBOX(arg1)
10185
10187 r"""Cast_to_PCB_DIM_ALIGNED(BOARD_ITEM arg1) -> PCB_DIM_ALIGNED"""
10188 return _pcbnew.Cast_to_PCB_DIM_ALIGNED(arg1)
10189
10191 r"""Cast_to_PCB_DIM_ORTHOGONAL(BOARD_ITEM arg1) -> PCB_DIM_ORTHOGONAL"""
10192 return _pcbnew.Cast_to_PCB_DIM_ORTHOGONAL(arg1)
10193
10195 r"""Cast_to_PCB_DIM_LEADER(BOARD_ITEM arg1) -> PCB_DIM_LEADER"""
10196 return _pcbnew.Cast_to_PCB_DIM_LEADER(arg1)
10197
10199 r"""Cast_to_PCB_DIM_CENTER(BOARD_ITEM arg1) -> PCB_DIM_CENTER"""
10200 return _pcbnew.Cast_to_PCB_DIM_CENTER(arg1)
10201
10203 r"""Cast_to_PCB_DIM_RADIAL(BOARD_ITEM arg1) -> PCB_DIM_RADIAL"""
10204 return _pcbnew.Cast_to_PCB_DIM_RADIAL(arg1)
10205
10207 r"""Cast_to_FOOTPRINT(BOARD_ITEM arg1) -> FOOTPRINT"""
10208 return _pcbnew.Cast_to_FOOTPRINT(arg1)
10209
10211 r"""Cast_to_PCB_GROUP(BOARD_ITEM arg1) -> PCB_GROUP"""
10212 return _pcbnew.Cast_to_PCB_GROUP(arg1)
10213
10215 r"""Cast_to_PCB_SHAPE(BOARD_ITEM arg1) -> PCB_SHAPE"""
10216 return _pcbnew.Cast_to_PCB_SHAPE(arg1)
10217
10219 r"""Cast_to_PCB_MARKER(BOARD_ITEM arg1) -> PCB_MARKER"""
10220 return _pcbnew.Cast_to_PCB_MARKER(arg1)
10221
10223 r"""Cast_to_BOARD(BOARD_ITEM arg1) -> BOARD"""
10224 return _pcbnew.Cast_to_BOARD(arg1)
10225
10226def Cast_to_PAD(arg1):
10227 r"""Cast_to_PAD(BOARD_ITEM arg1) -> PAD"""
10228 return _pcbnew.Cast_to_PAD(arg1)
10229
10231 r"""Cast_to_PCB_TRACK(BOARD_ITEM arg1) -> PCB_TRACK"""
10232 return _pcbnew.Cast_to_PCB_TRACK(arg1)
10233
10235 r"""Cast_to_PCB_VIA(BOARD_ITEM arg1) -> PCB_VIA"""
10236 return _pcbnew.Cast_to_PCB_VIA(arg1)
10237
10239 r"""Cast_to_PCB_ARC(BOARD_ITEM arg1) -> PCB_ARC"""
10240 return _pcbnew.Cast_to_PCB_ARC(arg1)
10241
10243 r"""Cast_to_ZONE(BOARD_ITEM arg1) -> ZONE"""
10244 return _pcbnew.Cast_to_ZONE(arg1)
10245
10247 r"""Cast_to_PCB_TARGET(BOARD_ITEM arg1) -> PCB_TARGET"""
10248 return _pcbnew.Cast_to_PCB_TARGET(arg1)
10249
10251 r"""Cast_to_PCB_TABLE(BOARD_ITEM arg1) -> PCB_TABLE"""
10252 return _pcbnew.Cast_to_PCB_TABLE(arg1)
10253
10255 r"""Cast_to_PCB_REFERENCE_IMAGE(BOARD_ITEM arg1) -> PCB_REFERENCE_IMAGE"""
10256 return _pcbnew.Cast_to_PCB_REFERENCE_IMAGE(arg1)
10257ADD_MODE_INSERT = _pcbnew.ADD_MODE_INSERT
10258
10259ADD_MODE_APPEND = _pcbnew.ADD_MODE_APPEND
10260
10261ADD_MODE_BULK_APPEND = _pcbnew.ADD_MODE_BULK_APPEND
10262
10263ADD_MODE_BULK_INSERT = _pcbnew.ADD_MODE_BULK_INSERT
10264
10265REMOVE_MODE_NORMAL = _pcbnew.REMOVE_MODE_NORMAL
10266
10267REMOVE_MODE_BULK = _pcbnew.REMOVE_MODE_BULK
10268
10270 r"""Proxy of C++ BOARD_ITEM_CONTAINER class."""
10271
10272 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10273
10274 def __init__(self, *args, **kwargs):
10275 raise AttributeError("No constructor defined - class is abstract")
10276 __repr__ = _swig_repr
10277
10278 def AddNative(self, *args):
10279 r"""AddNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
10280 return _pcbnew.BOARD_ITEM_CONTAINER_AddNative(self, *args)
10281
10282 def RemoveNative(self, *args):
10283 r"""RemoveNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
10284 return _pcbnew.BOARD_ITEM_CONTAINER_RemoveNative(self, *args)
10285
10286 def DeleteNative(self, aItem):
10287 r"""DeleteNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)"""
10288 return _pcbnew.BOARD_ITEM_CONTAINER_DeleteNative(self, aItem)
10289
10290 def Add(self,item):
10291 """
10292 Add a BOARD_ITEM to this BOARD_ITEM_CONTAINER, clear the thisown to prevent
10293 python from deleting the object in the garbage collector
10294 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, BOARD_ADD_MODE aMode=BOARD_ADD_MODE::INSERT)
10295 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)
10296 """
10297 item.thisown=0
10298 self.AddNative(item)
10299
10300 def Remove(self,item):
10301 """
10302 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
10303 the python wrapper owns the C++ BOARD_ITEM
10304 Remove(self, BOARD_ITEM)
10305 """
10306 self.RemoveNative(item)
10307 if (not IsActionRunning()):
10308 item.thisown=1
10309
10310 def Delete(self,item):
10311 """
10312 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
10313 the python wrapper does not owns the C++ BOARD_ITEM
10314 Delete(self, BOARD_ITEM)
10315 """
10316 item.thisown=0 # C++'s BOARD_ITEM_CONTAINER::Delete() will delete
10317 self.DeleteNative(item)
10318 item.this = None
10319
10320 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM_CONTAINER
10321
10322# Register BOARD_ITEM_CONTAINER in _pcbnew:
10323_pcbnew.BOARD_ITEM_CONTAINER_swigregister(BOARD_ITEM_CONTAINER)
10325 r"""Proxy of C++ BOARD_CONNECTED_ITEM class."""
10326
10327 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10328
10329 def __init__(self, *args, **kwargs):
10330 raise AttributeError("No constructor defined - class is abstract")
10331 __repr__ = _swig_repr
10332
10333 @staticmethod
10334 def ClassOf(aItem):
10335 r"""ClassOf(EDA_ITEM aItem) -> bool"""
10336 return _pcbnew.BOARD_CONNECTED_ITEM_ClassOf(aItem)
10337
10338 def GetNet(self):
10339 r"""GetNet(BOARD_CONNECTED_ITEM self) -> NETINFO_ITEM"""
10340 return _pcbnew.BOARD_CONNECTED_ITEM_GetNet(self)
10341
10342 def SetNet(self, aNetInfo):
10343 r"""SetNet(BOARD_CONNECTED_ITEM self, NETINFO_ITEM aNetInfo)"""
10344 return _pcbnew.BOARD_CONNECTED_ITEM_SetNet(self, aNetInfo)
10345
10346 def GetNetCode(self):
10347 r"""GetNetCode(BOARD_CONNECTED_ITEM self) -> int"""
10348 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetCode(self)
10349
10350 def SetNetCode(self, *args):
10351 r"""
10352 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode, bool aNoAssert) -> bool
10353 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode)
10354 """
10355 return _pcbnew.BOARD_CONNECTED_ITEM_SetNetCode(self, *args)
10356
10357 def GetNetname(self):
10358 r"""GetNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10359 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetname(self)
10360
10361 def GetNetnameMsg(self):
10362 r"""GetNetnameMsg(BOARD_CONNECTED_ITEM self) -> wxString"""
10363 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetnameMsg(self)
10364
10366 r"""GetShortNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10367 return _pcbnew.BOARD_CONNECTED_ITEM_GetShortNetname(self)
10368
10370 r"""GetDisplayNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10371 return _pcbnew.BOARD_CONNECTED_ITEM_GetDisplayNetname(self)
10372
10373 def GetOwnClearance(self, aLayer, aSource=None):
10374 r"""GetOwnClearance(BOARD_CONNECTED_ITEM self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
10375 return _pcbnew.BOARD_CONNECTED_ITEM_GetOwnClearance(self, aLayer, aSource)
10376
10377 def GetClearanceOverrides(self, aSource):
10378 r"""GetClearanceOverrides(BOARD_CONNECTED_ITEM self, wxString aSource) -> std::optional< int >"""
10379 return _pcbnew.BOARD_CONNECTED_ITEM_GetClearanceOverrides(self, aSource)
10380
10381 def GetLocalClearance(self, *args):
10382 r"""
10383 GetLocalClearance(BOARD_CONNECTED_ITEM self) -> std::optional< int >
10384 GetLocalClearance(BOARD_CONNECTED_ITEM self, wxString aSource) -> std::optional< int >
10385 """
10386 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalClearance(self, *args)
10387
10389 r"""GetEffectiveNetClass(BOARD_CONNECTED_ITEM self) -> NETCLASS"""
10390 return _pcbnew.BOARD_CONNECTED_ITEM_GetEffectiveNetClass(self)
10391
10393 r"""GetNetClassName(BOARD_CONNECTED_ITEM self) -> wxString"""
10394 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetClassName(self)
10395
10397 r"""GetNetClassVariableSubstitutionName(BOARD_CONNECTED_ITEM self) -> wxString"""
10398 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetClassVariableSubstitutionName(self)
10399
10400 def SetLocalRatsnestVisible(self, aVisible):
10401 r"""SetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self, bool aVisible)"""
10402 return _pcbnew.BOARD_CONNECTED_ITEM_SetLocalRatsnestVisible(self, aVisible)
10403
10405 r"""GetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self) -> bool"""
10406 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalRatsnestVisible(self)
10407
10408 def GetTeardropParams(self, *args):
10409 r"""
10410 GetTeardropParams(BOARD_CONNECTED_ITEM self) -> TEARDROP_PARAMETERS
10411 GetTeardropParams(BOARD_CONNECTED_ITEM self) -> TEARDROP_PARAMETERS const &
10412 """
10413 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropParams(self, *args)
10414
10415 def SetTeardropsEnabled(self, aEnable):
10416 r"""SetTeardropsEnabled(BOARD_CONNECTED_ITEM self, bool aEnable)"""
10417 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropsEnabled(self, aEnable)
10418
10420 r"""GetTeardropsEnabled(BOARD_CONNECTED_ITEM self) -> bool"""
10421 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropsEnabled(self)
10422
10424 r"""SetTeardropBestLengthRatio(BOARD_CONNECTED_ITEM self, double aRatio)"""
10425 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropBestLengthRatio(self, aRatio)
10426
10428 r"""GetTeardropBestLengthRatio(BOARD_CONNECTED_ITEM self) -> double"""
10429 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropBestLengthRatio(self)
10430
10431 def SetTeardropMaxLength(self, aMaxLength):
10432 r"""SetTeardropMaxLength(BOARD_CONNECTED_ITEM self, int aMaxLength)"""
10433 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxLength(self, aMaxLength)
10434
10436 r"""GetTeardropMaxLength(BOARD_CONNECTED_ITEM self) -> int"""
10437 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxLength(self)
10438
10439 def SetTeardropBestWidthRatio(self, aRatio):
10440 r"""SetTeardropBestWidthRatio(BOARD_CONNECTED_ITEM self, double aRatio)"""
10441 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropBestWidthRatio(self, aRatio)
10442
10444 r"""GetTeardropBestWidthRatio(BOARD_CONNECTED_ITEM self) -> double"""
10445 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropBestWidthRatio(self)
10446
10447 def SetTeardropMaxWidth(self, aMaxWidth):
10448 r"""SetTeardropMaxWidth(BOARD_CONNECTED_ITEM self, int aMaxWidth)"""
10449 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxWidth(self, aMaxWidth)
10450
10452 r"""GetTeardropMaxWidth(BOARD_CONNECTED_ITEM self) -> int"""
10453 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxWidth(self)
10454
10455 def SetTeardropCurved(self, aCurve):
10456 r"""SetTeardropCurved(BOARD_CONNECTED_ITEM self, bool aCurve)"""
10457 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropCurved(self, aCurve)
10458
10460 r"""GetTeardropCurved(BOARD_CONNECTED_ITEM self) -> bool"""
10461 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropCurved(self)
10462
10464 r"""SetTeardropPreferZoneConnections(BOARD_CONNECTED_ITEM self, bool aPrefer)"""
10465 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropPreferZoneConnections(self, aPrefer)
10466
10468 r"""GetTeardropPreferZoneConnections(BOARD_CONNECTED_ITEM self) -> bool"""
10469 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropPreferZoneConnections(self)
10470
10472 r"""SetTeardropAllowSpanTwoTracks(BOARD_CONNECTED_ITEM self, bool aAllow)"""
10473 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropAllowSpanTwoTracks(self, aAllow)
10474
10476 r"""GetTeardropAllowSpanTwoTracks(BOARD_CONNECTED_ITEM self) -> bool"""
10477 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropAllowSpanTwoTracks(self)
10478
10479 def SetTeardropMaxTrackWidth(self, aRatio):
10480 r"""SetTeardropMaxTrackWidth(BOARD_CONNECTED_ITEM self, double aRatio)"""
10481 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxTrackWidth(self, aRatio)
10482
10484 r"""GetTeardropMaxTrackWidth(BOARD_CONNECTED_ITEM self) -> double"""
10485 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxTrackWidth(self)
10486 __swig_destroy__ = _pcbnew.delete_BOARD_CONNECTED_ITEM
10487
10488# Register BOARD_CONNECTED_ITEM in _pcbnew:
10489_pcbnew.BOARD_CONNECTED_ITEM_swigregister(BOARD_CONNECTED_ITEM)
10491 r"""Proxy of C++ std::map< wxString,std::shared_ptr< NETCLASS > > class."""
10492
10493 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10494 __repr__ = _swig_repr
10495
10496 def iterator(self):
10497 r"""iterator(netclasses_map self) -> SwigPyIterator"""
10498 return _pcbnew.netclasses_map_iterator(self)
10499 def __iter__(self):
10500 return self.iterator()
10501
10502 def __nonzero__(self):
10503 r"""__nonzero__(netclasses_map self) -> bool"""
10504 return _pcbnew.netclasses_map___nonzero__(self)
10505
10506 def __bool__(self):
10507 r"""__bool__(netclasses_map self) -> bool"""
10508 return _pcbnew.netclasses_map___bool__(self)
10509
10510 def __len__(self):
10511 r"""__len__(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10512 return _pcbnew.netclasses_map___len__(self)
10513 def __iter__(self):
10514 return self.key_iterator()
10515 def iterkeys(self):
10516 return self.key_iterator()
10517 def itervalues(self):
10518 return self.value_iterator()
10519 def iteritems(self):
10520 return self.iterator()
10521
10522 def __getitem__(self, key):
10523 r"""__getitem__(netclasses_map self, wxString key) -> std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const &"""
10524 return _pcbnew.netclasses_map___getitem__(self, key)
10525
10526 def __delitem__(self, key):
10527 r"""__delitem__(netclasses_map self, wxString key)"""
10528 return _pcbnew.netclasses_map___delitem__(self, key)
10529
10530 def has_key(self, key):
10531 r"""has_key(netclasses_map self, wxString key) -> bool"""
10532 return _pcbnew.netclasses_map_has_key(self, key)
10533
10534 def keys(self):
10535 r"""keys(netclasses_map self) -> PyObject *"""
10536 return _pcbnew.netclasses_map_keys(self)
10537
10538 def values(self):
10539 r"""values(netclasses_map self) -> PyObject *"""
10540 return _pcbnew.netclasses_map_values(self)
10541
10542 def items(self):
10543 r"""items(netclasses_map self) -> PyObject *"""
10544 return _pcbnew.netclasses_map_items(self)
10545
10546 def __contains__(self, key):
10547 r"""__contains__(netclasses_map self, wxString key) -> bool"""
10548 return _pcbnew.netclasses_map___contains__(self, key)
10549
10550 def key_iterator(self):
10551 r"""key_iterator(netclasses_map self) -> SwigPyIterator"""
10552 return _pcbnew.netclasses_map_key_iterator(self)
10553
10555 r"""value_iterator(netclasses_map self) -> SwigPyIterator"""
10556 return _pcbnew.netclasses_map_value_iterator(self)
10557
10558 def __setitem__(self, *args):
10559 r"""
10560 __setitem__(netclasses_map self, wxString key)
10561 __setitem__(netclasses_map self, wxString key, std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const & x)
10562 """
10563 return _pcbnew.netclasses_map___setitem__(self, *args)
10564
10565 def asdict(self):
10566 r"""asdict(netclasses_map self) -> PyObject *"""
10567 return _pcbnew.netclasses_map_asdict(self)
10568
10569 def __init__(self, *args):
10570 r"""
10571 __init__(netclasses_map self, std::less< wxString > const & other) -> netclasses_map
10572 __init__(netclasses_map self) -> netclasses_map
10573 __init__(netclasses_map self, netclasses_map other) -> netclasses_map
10574 """
10575 _pcbnew.netclasses_map_swiginit(self, _pcbnew.new_netclasses_map(*args))
10576
10577 def empty(self):
10578 r"""empty(netclasses_map self) -> bool"""
10579 return _pcbnew.netclasses_map_empty(self)
10580
10581 def size(self):
10582 r"""size(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10583 return _pcbnew.netclasses_map_size(self)
10584
10585 def swap(self, v):
10586 r"""swap(netclasses_map self, netclasses_map v)"""
10587 return _pcbnew.netclasses_map_swap(self, v)
10588
10589 def begin(self):
10590 r"""begin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10591 return _pcbnew.netclasses_map_begin(self)
10592
10593 def end(self):
10594 r"""end(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10595 return _pcbnew.netclasses_map_end(self)
10596
10597 def rbegin(self):
10598 r"""rbegin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10599 return _pcbnew.netclasses_map_rbegin(self)
10600
10601 def rend(self):
10602 r"""rend(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10603 return _pcbnew.netclasses_map_rend(self)
10604
10605 def clear(self):
10606 r"""clear(netclasses_map self)"""
10607 return _pcbnew.netclasses_map_clear(self)
10608
10609 def get_allocator(self):
10610 r"""get_allocator(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::allocator_type"""
10611 return _pcbnew.netclasses_map_get_allocator(self)
10612
10613 def count(self, x):
10614 r"""count(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10615 return _pcbnew.netclasses_map_count(self, x)
10616
10617 def erase(self, *args):
10618 r"""
10619 erase(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type
10620 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator position)
10621 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator first, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator last)
10622 """
10623 return _pcbnew.netclasses_map_erase(self, *args)
10624
10625 def find(self, x):
10626 r"""find(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10627 return _pcbnew.netclasses_map_find(self, x)
10628
10629 def lower_bound(self, x):
10630 r"""lower_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10631 return _pcbnew.netclasses_map_lower_bound(self, x)
10632
10633 def upper_bound(self, x):
10634 r"""upper_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10635 return _pcbnew.netclasses_map_upper_bound(self, x)
10636 __swig_destroy__ = _pcbnew.delete_netclasses_map
10637
10638# Register netclasses_map in _pcbnew:
10639_pcbnew.netclasses_map_swigregister(netclasses_map)
10640DEFAULT_SILK_LINE_WIDTH = _pcbnew.DEFAULT_SILK_LINE_WIDTH
10641
10642DEFAULT_COPPER_LINE_WIDTH = _pcbnew.DEFAULT_COPPER_LINE_WIDTH
10643
10644DEFAULT_EDGE_WIDTH = _pcbnew.DEFAULT_EDGE_WIDTH
10645
10646DEFAULT_COURTYARD_WIDTH = _pcbnew.DEFAULT_COURTYARD_WIDTH
10647
10648DEFAULT_LINE_WIDTH = _pcbnew.DEFAULT_LINE_WIDTH
10649
10650DEFAULT_SILK_TEXT_SIZE = _pcbnew.DEFAULT_SILK_TEXT_SIZE
10651
10652DEFAULT_COPPER_TEXT_SIZE = _pcbnew.DEFAULT_COPPER_TEXT_SIZE
10653
10654DEFAULT_TEXT_SIZE = _pcbnew.DEFAULT_TEXT_SIZE
10655
10656DEFAULT_SILK_TEXT_WIDTH = _pcbnew.DEFAULT_SILK_TEXT_WIDTH
10657
10658DEFAULT_COPPER_TEXT_WIDTH = _pcbnew.DEFAULT_COPPER_TEXT_WIDTH
10659
10660DEFAULT_TEXT_WIDTH = _pcbnew.DEFAULT_TEXT_WIDTH
10661
10662DEFAULT_DIMENSION_ARROW_LENGTH = _pcbnew.DEFAULT_DIMENSION_ARROW_LENGTH
10663
10664DEFAULT_DIMENSION_EXTENSION_OFFSET = _pcbnew.DEFAULT_DIMENSION_EXTENSION_OFFSET
10665
10666DEFAULT_BOARD_THICKNESS_MM = _pcbnew.DEFAULT_BOARD_THICKNESS_MM
10667
10668DEFAULT_PCB_EDGE_THICKNESS = _pcbnew.DEFAULT_PCB_EDGE_THICKNESS
10669
10670DEFAULT_SOLDERMASK_EXPANSION = _pcbnew.DEFAULT_SOLDERMASK_EXPANSION
10671
10672DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE = _pcbnew.DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE
10673
10674DEFAULT_SOLDERMASK_MIN_WIDTH = _pcbnew.DEFAULT_SOLDERMASK_MIN_WIDTH
10675
10676DEFAULT_SOLDERPASTE_CLEARANCE = _pcbnew.DEFAULT_SOLDERPASTE_CLEARANCE
10677
10678DEFAULT_SOLDERPASTE_RATIO = _pcbnew.DEFAULT_SOLDERPASTE_RATIO
10679
10680DEFAULT_CUSTOMTRACKWIDTH = _pcbnew.DEFAULT_CUSTOMTRACKWIDTH
10681
10682DEFAULT_CUSTOMDPAIRWIDTH = _pcbnew.DEFAULT_CUSTOMDPAIRWIDTH
10683
10684DEFAULT_CUSTOMDPAIRGAP = _pcbnew.DEFAULT_CUSTOMDPAIRGAP
10685
10686DEFAULT_CUSTOMDPAIRVIAGAP = _pcbnew.DEFAULT_CUSTOMDPAIRVIAGAP
10687
10688DEFAULT_MEANDER_SPACING = _pcbnew.DEFAULT_MEANDER_SPACING
10689
10690DEFAULT_DP_MEANDER_SPACING = _pcbnew.DEFAULT_DP_MEANDER_SPACING
10691
10692DEFAULT_MINCLEARANCE = _pcbnew.DEFAULT_MINCLEARANCE
10693
10694DEFAULT_MINCONNECTION = _pcbnew.DEFAULT_MINCONNECTION
10695
10696DEFAULT_TRACKMINWIDTH = _pcbnew.DEFAULT_TRACKMINWIDTH
10697
10698DEFAULT_VIASMINSIZE = _pcbnew.DEFAULT_VIASMINSIZE
10699
10700DEFAULT_MINTHROUGHDRILL = _pcbnew.DEFAULT_MINTHROUGHDRILL
10701
10702DEFAULT_MICROVIASMINSIZE = _pcbnew.DEFAULT_MICROVIASMINSIZE
10703
10704DEFAULT_MICROVIASMINDRILL = _pcbnew.DEFAULT_MICROVIASMINDRILL
10705
10706DEFAULT_HOLETOHOLEMIN = _pcbnew.DEFAULT_HOLETOHOLEMIN
10707
10708DEFAULT_HOLECLEARANCE = _pcbnew.DEFAULT_HOLECLEARANCE
10709
10710DEFAULT_COPPEREDGECLEARANCE = _pcbnew.DEFAULT_COPPEREDGECLEARANCE
10711
10712LEGACY_COPPEREDGECLEARANCE = _pcbnew.LEGACY_COPPEREDGECLEARANCE
10713
10714DEFAULT_SILKCLEARANCE = _pcbnew.DEFAULT_SILKCLEARANCE
10715
10716DEFAULT_MINGROOVEWIDTH = _pcbnew.DEFAULT_MINGROOVEWIDTH
10717
10718DEFAULT_MINRESOLVEDSPOKES = _pcbnew.DEFAULT_MINRESOLVEDSPOKES
10719
10720MINIMUM_ERROR_SIZE_MM = _pcbnew.MINIMUM_ERROR_SIZE_MM
10721
10722MAXIMUM_ERROR_SIZE_MM = _pcbnew.MAXIMUM_ERROR_SIZE_MM
10723
10724MINIMUM_LINE_WIDTH_MM = _pcbnew.MINIMUM_LINE_WIDTH_MM
10725
10726MAXIMUM_LINE_WIDTH_MM = _pcbnew.MAXIMUM_LINE_WIDTH_MM
10727
10728DEFAULT_PAD_WIDTH_MM = _pcbnew.DEFAULT_PAD_WIDTH_MM
10729
10730DEFAULT_PAD_HEIGTH_MM = _pcbnew.DEFAULT_PAD_HEIGTH_MM
10731
10732DEFAULT_PAD_DRILL_DIAMETER_MM = _pcbnew.DEFAULT_PAD_DRILL_DIAMETER_MM
10733
10734DEFAULT_PAD_REACT_RADIUS = _pcbnew.DEFAULT_PAD_REACT_RADIUS
10735
10737 r"""Proxy of C++ VIA_DIMENSION class."""
10738
10739 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10740 __repr__ = _swig_repr
10741 m_Diameter = property(_pcbnew.VIA_DIMENSION_m_Diameter_get, _pcbnew.VIA_DIMENSION_m_Diameter_set, doc=r"""m_Diameter : int""")
10742 m_Drill = property(_pcbnew.VIA_DIMENSION_m_Drill_get, _pcbnew.VIA_DIMENSION_m_Drill_set, doc=r"""m_Drill : int""")
10743
10744 def __init__(self, *args):
10745 r"""
10746 __init__(VIA_DIMENSION self) -> VIA_DIMENSION
10747 __init__(VIA_DIMENSION self, int aDiameter, int aDrill) -> VIA_DIMENSION
10748 """
10749 _pcbnew.VIA_DIMENSION_swiginit(self, _pcbnew.new_VIA_DIMENSION(*args))
10750
10751 def __eq__(self, aOther):
10752 r"""__eq__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10753 return _pcbnew.VIA_DIMENSION___eq__(self, aOther)
10754
10755 def __ne__(self, aOther):
10756 r"""__ne__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10757 return _pcbnew.VIA_DIMENSION___ne__(self, aOther)
10758
10759 def __lt__(self, aOther):
10760 r"""__lt__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10761 return _pcbnew.VIA_DIMENSION___lt__(self, aOther)
10762 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION
10763
10764# Register VIA_DIMENSION in _pcbnew:
10765_pcbnew.VIA_DIMENSION_swigregister(VIA_DIMENSION)
10767 r"""Proxy of C++ DIFF_PAIR_DIMENSION class."""
10768
10769 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10770 __repr__ = _swig_repr
10771 m_Width = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Width_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Width_set, doc=r"""m_Width : int""")
10772 m_Gap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Gap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Gap_set, doc=r"""m_Gap : int""")
10773 m_ViaGap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_set, doc=r"""m_ViaGap : int""")
10774
10775 def __init__(self, *args):
10776 r"""
10777 __init__(DIFF_PAIR_DIMENSION self) -> DIFF_PAIR_DIMENSION
10778 __init__(DIFF_PAIR_DIMENSION self, int aWidth, int aGap, int aViaGap) -> DIFF_PAIR_DIMENSION
10779 """
10780 _pcbnew.DIFF_PAIR_DIMENSION_swiginit(self, _pcbnew.new_DIFF_PAIR_DIMENSION(*args))
10781
10782 def __eq__(self, aOther):
10783 r"""__eq__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10784 return _pcbnew.DIFF_PAIR_DIMENSION___eq__(self, aOther)
10785
10786 def __ne__(self, aOther):
10787 r"""__ne__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10788 return _pcbnew.DIFF_PAIR_DIMENSION___ne__(self, aOther)
10789
10790 def __lt__(self, aOther):
10791 r"""__lt__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10792 return _pcbnew.DIFF_PAIR_DIMENSION___lt__(self, aOther)
10793 __swig_destroy__ = _pcbnew.delete_DIFF_PAIR_DIMENSION
10794
10795# Register DIFF_PAIR_DIMENSION in _pcbnew:
10796_pcbnew.DIFF_PAIR_DIMENSION_swigregister(DIFF_PAIR_DIMENSION)
10797LAYER_CLASS_SILK = _pcbnew.LAYER_CLASS_SILK
10798
10799LAYER_CLASS_COPPER = _pcbnew.LAYER_CLASS_COPPER
10800
10801LAYER_CLASS_EDGES = _pcbnew.LAYER_CLASS_EDGES
10802
10803LAYER_CLASS_COURTYARD = _pcbnew.LAYER_CLASS_COURTYARD
10804
10805LAYER_CLASS_FAB = _pcbnew.LAYER_CLASS_FAB
10806
10807LAYER_CLASS_OTHERS = _pcbnew.LAYER_CLASS_OTHERS
10808
10809LAYER_CLASS_COUNT = _pcbnew.LAYER_CLASS_COUNT
10810
10812 r"""Proxy of C++ TEXT_ITEM_INFO class."""
10813
10814 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10815 __repr__ = _swig_repr
10816 m_Text = property(_pcbnew.TEXT_ITEM_INFO_m_Text_get, _pcbnew.TEXT_ITEM_INFO_m_Text_set, doc=r"""m_Text : wxString""")
10817 m_Visible = property(_pcbnew.TEXT_ITEM_INFO_m_Visible_get, _pcbnew.TEXT_ITEM_INFO_m_Visible_set, doc=r"""m_Visible : bool""")
10818 m_Layer = property(_pcbnew.TEXT_ITEM_INFO_m_Layer_get, _pcbnew.TEXT_ITEM_INFO_m_Layer_set, doc=r"""m_Layer : int""")
10819
10820 def __init__(self, aText, aVisible, aLayer):
10821 r"""__init__(TEXT_ITEM_INFO self, wxString aText, bool aVisible, int aLayer) -> TEXT_ITEM_INFO"""
10822 _pcbnew.TEXT_ITEM_INFO_swiginit(self, _pcbnew.new_TEXT_ITEM_INFO(aText, aVisible, aLayer))
10823
10824 def __eq__(self, aOther):
10825 r"""__eq__(TEXT_ITEM_INFO self, TEXT_ITEM_INFO aOther) -> bool"""
10826 return _pcbnew.TEXT_ITEM_INFO___eq__(self, aOther)
10827 __swig_destroy__ = _pcbnew.delete_TEXT_ITEM_INFO
10828
10829# Register TEXT_ITEM_INFO in _pcbnew:
10830_pcbnew.TEXT_ITEM_INFO_swigregister(TEXT_ITEM_INFO)
10832 r"""Proxy of C++ BOARD_DESIGN_SETTINGS class."""
10833
10834 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10835 __repr__ = _swig_repr
10836 __swig_destroy__ = _pcbnew.delete_BOARD_DESIGN_SETTINGS
10837
10838 def __eq__(self, aOther):
10839 r"""__eq__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> bool"""
10840 return _pcbnew.BOARD_DESIGN_SETTINGS___eq__(self, aOther)
10841
10842 def __ne__(self, aOther):
10843 r"""__ne__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> bool"""
10844 return _pcbnew.BOARD_DESIGN_SETTINGS___ne__(self, aOther)
10845
10846 def __init__(self, *args):
10847 r"""
10848 __init__(BOARD_DESIGN_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> BOARD_DESIGN_SETTINGS
10849 __init__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> BOARD_DESIGN_SETTINGS
10850 """
10851 _pcbnew.BOARD_DESIGN_SETTINGS_swiginit(self, _pcbnew.new_BOARD_DESIGN_SETTINGS(*args))
10852
10853 def LoadFromFile(self, *args):
10854 r"""LoadFromFile(BOARD_DESIGN_SETTINGS self, wxString aDirectory="") -> bool"""
10855 return _pcbnew.BOARD_DESIGN_SETTINGS_LoadFromFile(self, *args)
10856
10857 def GetStackupDescriptor(self, *args):
10858 r"""
10859 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP
10860 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP const &
10861 """
10862 return _pcbnew.BOARD_DESIGN_SETTINGS_GetStackupDescriptor(self, *args)
10863
10865 r"""GetTeadropParamsList(BOARD_DESIGN_SETTINGS self) -> TEARDROP_PARAMETERS_LIST *"""
10866 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTeadropParamsList(self)
10867
10868 def GetSeverity(self, aDRCErrorCode):
10869 r"""GetSeverity(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> SEVERITY"""
10870 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSeverity(self, aDRCErrorCode)
10871
10872 def Ignore(self, aDRCErrorCode):
10873 r"""Ignore(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> bool"""
10874 return _pcbnew.BOARD_DESIGN_SETTINGS_Ignore(self, aDRCErrorCode)
10875
10877 r"""GetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self) -> ZONE_SETTINGS"""
10878 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDefaultZoneSettings(self)
10879
10880 def SetDefaultZoneSettings(self, aSettings):
10881 r"""SetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self, ZONE_SETTINGS aSettings)"""
10882 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDefaultZoneSettings(self, aSettings)
10883
10885 r"""GetCurrentNetClassName(BOARD_DESIGN_SETTINGS self) -> wxString"""
10886 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentNetClassName(self)
10887
10889 r"""UseNetClassTrack(BOARD_DESIGN_SETTINGS self) -> bool"""
10890 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassTrack(self)
10891
10893 r"""UseNetClassVia(BOARD_DESIGN_SETTINGS self) -> bool"""
10894 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassVia(self)
10895
10897 r"""UseNetClassDiffPair(BOARD_DESIGN_SETTINGS self) -> bool"""
10898 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassDiffPair(self)
10899
10901 r"""GetBiggestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
10902 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBiggestClearanceValue(self)
10903
10905 r"""GetSmallestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
10906 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSmallestClearanceValue(self)
10907
10909 r"""GetTrackWidthIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10910 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTrackWidthIndex(self)
10911
10912 def SetTrackWidthIndex(self, aIndex):
10913 r"""SetTrackWidthIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10914 return _pcbnew.BOARD_DESIGN_SETTINGS_SetTrackWidthIndex(self, aIndex)
10915
10917 r"""GetCurrentTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10918 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentTrackWidth(self)
10919
10920 def SetCustomTrackWidth(self, aWidth):
10921 r"""SetCustomTrackWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
10922 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomTrackWidth(self, aWidth)
10923
10925 r"""GetCustomTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10926 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomTrackWidth(self)
10927
10929 r"""GetViaSizeIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10930 return _pcbnew.BOARD_DESIGN_SETTINGS_GetViaSizeIndex(self)
10931
10932 def SetViaSizeIndex(self, aIndex):
10933 r"""SetViaSizeIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10934 return _pcbnew.BOARD_DESIGN_SETTINGS_SetViaSizeIndex(self, aIndex)
10935
10937 r"""GetCurrentViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
10938 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaSize(self)
10939
10940 def SetCustomViaSize(self, aSize):
10941 r"""SetCustomViaSize(BOARD_DESIGN_SETTINGS self, int aSize)"""
10942 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaSize(self, aSize)
10943
10945 r"""GetCustomViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
10946 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaSize(self)
10947
10949 r"""GetCurrentViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
10950 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaDrill(self)
10951
10952 def SetCustomViaDrill(self, aDrill):
10953 r"""SetCustomViaDrill(BOARD_DESIGN_SETTINGS self, int aDrill)"""
10954 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaDrill(self, aDrill)
10955
10957 r"""GetCustomViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
10958 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaDrill(self)
10959
10960 def UseCustomTrackViaSize(self, *args):
10961 r"""
10962 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self, bool aEnabled)
10963 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self) -> bool
10964 """
10965 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomTrackViaSize(self, *args)
10966
10968 r"""GetDiffPairIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10969 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDiffPairIndex(self)
10970
10971 def SetDiffPairIndex(self, aIndex):
10972 r"""SetDiffPairIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10973 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDiffPairIndex(self, aIndex)
10974
10975 def SetCustomDiffPairWidth(self, aWidth):
10976 r"""SetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
10977 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairWidth(self, aWidth)
10978
10980 r"""GetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10981 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairWidth(self)
10982
10983 def SetCustomDiffPairGap(self, aGap):
10984 r"""SetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
10985 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairGap(self, aGap)
10986
10988 r"""GetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
10989 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairGap(self)
10990
10992 r"""SetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
10993 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairViaGap(self, aGap)
10994
10996 r"""GetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
10997 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairViaGap(self)
10998
11000 r"""
11001 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self, bool aEnabled)
11002 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self) -> bool
11003 """
11004 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomDiffPairDimensions(self, *args)
11005
11007 r"""GetCurrentDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
11008 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairWidth(self)
11009
11011 r"""GetCurrentDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
11012 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairGap(self)
11013
11015 r"""GetCurrentDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
11016 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairViaGap(self)
11017
11019 r"""GetEnabledLayers(BOARD_DESIGN_SETTINGS self) -> LSET"""
11020 return _pcbnew.BOARD_DESIGN_SETTINGS_GetEnabledLayers(self)
11021
11022 def SetEnabledLayers(self, aMask):
11023 r"""SetEnabledLayers(BOARD_DESIGN_SETTINGS self, LSET aMask)"""
11024 return _pcbnew.BOARD_DESIGN_SETTINGS_SetEnabledLayers(self, aMask)
11025
11026 def IsLayerEnabled(self, aLayerId):
11027 r"""IsLayerEnabled(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayerId) -> bool"""
11028 return _pcbnew.BOARD_DESIGN_SETTINGS_IsLayerEnabled(self, aLayerId)
11029
11031 r"""GetCopperLayerCount(BOARD_DESIGN_SETTINGS self) -> int"""
11032 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCopperLayerCount(self)
11033
11034 def SetCopperLayerCount(self, aNewLayerCount):
11035 r"""SetCopperLayerCount(BOARD_DESIGN_SETTINGS self, int aNewLayerCount)"""
11036 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCopperLayerCount(self, aNewLayerCount)
11037
11039 r"""GetBoardThickness(BOARD_DESIGN_SETTINGS self) -> int"""
11040 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBoardThickness(self)
11041
11042 def SetBoardThickness(self, aThickness):
11043 r"""SetBoardThickness(BOARD_DESIGN_SETTINGS self, int aThickness)"""
11044 return _pcbnew.BOARD_DESIGN_SETTINGS_SetBoardThickness(self, aThickness)
11045
11046 def GetDRCEpsilon(self):
11047 r"""GetDRCEpsilon(BOARD_DESIGN_SETTINGS self) -> int"""
11048 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDRCEpsilon(self)
11049
11051 r"""GetHolePlatingThickness(BOARD_DESIGN_SETTINGS self) -> int"""
11052 return _pcbnew.BOARD_DESIGN_SETTINGS_GetHolePlatingThickness(self)
11053
11054 def GetLineThickness(self, aLayer):
11055 r"""GetLineThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
11056 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLineThickness(self, aLayer)
11057
11058 def GetTextSize(self, aLayer):
11059 r"""GetTextSize(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
11060 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextSize(self, aLayer)
11061
11062 def GetTextThickness(self, aLayer):
11063 r"""GetTextThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
11064 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextThickness(self, aLayer)
11065
11066 def GetTextItalic(self, aLayer):
11067 r"""GetTextItalic(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
11068 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextItalic(self, aLayer)
11069
11070 def GetTextUpright(self, aLayer):
11071 r"""GetTextUpright(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
11072 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextUpright(self, aLayer)
11073
11074 def GetLayerClass(self, aLayer):
11075 r"""GetLayerClass(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
11076 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLayerClass(self, aLayer)
11077
11078 def SetAuxOrigin(self, aOrigin):
11079 r"""SetAuxOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
11080 return _pcbnew.BOARD_DESIGN_SETTINGS_SetAuxOrigin(self, aOrigin)
11081
11082 def GetAuxOrigin(self):
11083 r"""GetAuxOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
11084 return _pcbnew.BOARD_DESIGN_SETTINGS_GetAuxOrigin(self)
11085
11086 def SetGridOrigin(self, aOrigin):
11087 r"""SetGridOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
11088 return _pcbnew.BOARD_DESIGN_SETTINGS_SetGridOrigin(self, aOrigin)
11089
11090 def GetGridOrigin(self):
11091 r"""GetGridOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
11092 return _pcbnew.BOARD_DESIGN_SETTINGS_GetGridOrigin(self)
11093
11095 r"""SetDefaultMasterPad(BOARD_DESIGN_SETTINGS self)"""
11096 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDefaultMasterPad(self)
11097 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)>)>""")
11098 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)>)>""")
11099 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)>)>""")
11100 m_TeardropParamsList = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_set, doc=r"""m_TeardropParamsList : TEARDROP_PARAMETERS_LIST""")
11101 m_SingleTrackMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SingleTrackMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SingleTrackMeanderSettings_set, doc=r"""m_SingleTrackMeanderSettings : PNS::MEANDER_SETTINGS""")
11102 m_DiffPairMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairMeanderSettings_set, doc=r"""m_DiffPairMeanderSettings : PNS::MEANDER_SETTINGS""")
11103 m_SkewMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SkewMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SkewMeanderSettings_set, doc=r"""m_SkewMeanderSettings : PNS::MEANDER_SETTINGS""")
11104 m_CurrentViaType = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_set, doc=r"""m_CurrentViaType : VIATYPE""")
11105 m_UseConnectedTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_set, doc=r"""m_UseConnectedTrackWidth : bool""")
11106 m_TempOverrideTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_set, doc=r"""m_TempOverrideTrackWidth : bool""")
11107 m_MinClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_set, doc=r"""m_MinClearance : int""")
11108 m_MinGrooveWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinGrooveWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinGrooveWidth_set, doc=r"""m_MinGrooveWidth : int""")
11109 m_MinConn = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_set, doc=r"""m_MinConn : int""")
11110 m_TrackMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_set, doc=r"""m_TrackMinWidth : int""")
11111 m_ViasMinAnnularWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_set, doc=r"""m_ViasMinAnnularWidth : int""")
11112 m_ViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_set, doc=r"""m_ViasMinSize : int""")
11113 m_MinThroughDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_set, doc=r"""m_MinThroughDrill : int""")
11114 m_MicroViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_set, doc=r"""m_MicroViasMinSize : int""")
11115 m_MicroViasMinDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_set, doc=r"""m_MicroViasMinDrill : int""")
11116 m_CopperEdgeClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_set, doc=r"""m_CopperEdgeClearance : int""")
11117 m_HoleClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_set, doc=r"""m_HoleClearance : int""")
11118 m_HoleToHoleMin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_set, doc=r"""m_HoleToHoleMin : int""")
11119 m_SilkClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_set, doc=r"""m_SilkClearance : int""")
11120 m_MinResolvedSpokes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_set, doc=r"""m_MinResolvedSpokes : int""")
11121 m_MinSilkTextHeight = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_set, doc=r"""m_MinSilkTextHeight : int""")
11122 m_MinSilkTextThickness = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_set, doc=r"""m_MinSilkTextThickness : int""")
11123 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)>)>)>""")
11124 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)>)>""")
11125 m_DrcExclusionComments = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DrcExclusionComments_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DrcExclusionComments_set, doc=r"""m_DrcExclusionComments : std::map<(wxString,wxString,std::less<(wxString)>,std::allocator<(std::pair<(q(const).wxString,wxString)>)>)>""")
11126 m_ZoneKeepExternalFillets = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_set, doc=r"""m_ZoneKeepExternalFillets : bool""")
11127 m_MaxError = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_set, doc=r"""m_MaxError : int""")
11128 m_SolderMaskExpansion = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_set, doc=r"""m_SolderMaskExpansion : int""")
11129 m_SolderMaskMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_set, doc=r"""m_SolderMaskMinWidth : int""")
11130 m_SolderMaskToCopperClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_set, doc=r"""m_SolderMaskToCopperClearance : int""")
11131 m_SolderPasteMargin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_set, doc=r"""m_SolderPasteMargin : int""")
11132 m_SolderPasteMarginRatio = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_set, doc=r"""m_SolderPasteMarginRatio : double""")
11133 m_AllowSoldermaskBridgesInFPs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_set, doc=r"""m_AllowSoldermaskBridgesInFPs : bool""")
11134 m_TentViasFront = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TentViasFront_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TentViasFront_set, doc=r"""m_TentViasFront : bool""")
11135 m_TentViasBack = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TentViasBack_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TentViasBack_set, doc=r"""m_TentViasBack : bool""")
11136 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)>""")
11137 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)>)>""")
11138 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""")
11139 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).VECTOR2I""")
11140 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""")
11141 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""")
11142 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""")
11143 m_DimensionUnitsMode = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_set, doc=r"""m_DimensionUnitsMode : DIM_UNITS_MODE""")
11144 m_DimensionPrecision = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_set, doc=r"""m_DimensionPrecision : DIM_PRECISION""")
11145 m_DimensionUnitsFormat = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_set, doc=r"""m_DimensionUnitsFormat : DIM_UNITS_FORMAT""")
11146 m_DimensionSuppressZeroes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_set, doc=r"""m_DimensionSuppressZeroes : bool""")
11147 m_DimensionTextPosition = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_set, doc=r"""m_DimensionTextPosition : DIM_TEXT_POSITION""")
11148 m_DimensionKeepTextAligned = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_set, doc=r"""m_DimensionKeepTextAligned : bool""")
11149 m_DimensionArrowLength = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_set, doc=r"""m_DimensionArrowLength : int""")
11150 m_DimensionExtensionOffset = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_set, doc=r"""m_DimensionExtensionOffset : int""")
11151 m_StyleFPFields = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPFields_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPFields_set, doc=r"""m_StyleFPFields : bool""")
11152 m_StyleFPText = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPText_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPText_set, doc=r"""m_StyleFPText : bool""")
11153 m_StyleFPShapes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPShapes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPShapes_set, doc=r"""m_StyleFPShapes : bool""")
11154 m_HasStackup = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_set, doc=r"""m_HasStackup : bool""")
11155 m_UseHeightForLengthCalcs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_set, doc=r"""m_UseHeightForLengthCalcs : bool""")
11156
11157 def CloneFrom(self, aOther):
11158 r"""CloneFrom(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther)"""
11159 return _pcbnew.BOARD_DESIGN_SETTINGS_CloneFrom(self, aOther)
11160
11161# Register BOARD_DESIGN_SETTINGS in _pcbnew:
11162_pcbnew.BOARD_DESIGN_SETTINGS_swigregister(BOARD_DESIGN_SETTINGS)
11164 r"""Proxy of C++ NET_SETTINGS class."""
11165
11166 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11167 __repr__ = _swig_repr
11168
11169 def __init__(self, aParent, aPath):
11170 r"""__init__(NET_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> NET_SETTINGS"""
11171 _pcbnew.NET_SETTINGS_swiginit(self, _pcbnew.new_NET_SETTINGS(aParent, aPath))
11172 __swig_destroy__ = _pcbnew.delete_NET_SETTINGS
11173
11174 def __eq__(self, aOther):
11175 r"""__eq__(NET_SETTINGS self, NET_SETTINGS aOther) -> bool"""
11176 return _pcbnew.NET_SETTINGS___eq__(self, aOther)
11177
11178 def __ne__(self, aOther):
11179 r"""__ne__(NET_SETTINGS self, NET_SETTINGS aOther) -> bool"""
11180 return _pcbnew.NET_SETTINGS___ne__(self, aOther)
11181
11182 def SetDefaultNetclass(self, netclass):
11183 r"""SetDefaultNetclass(NET_SETTINGS self, std::shared_ptr< NETCLASS > netclass)"""
11184 return _pcbnew.NET_SETTINGS_SetDefaultNetclass(self, netclass)
11185
11187 r"""GetDefaultNetclass(NET_SETTINGS self) -> std::shared_ptr< NETCLASS >"""
11188 return _pcbnew.NET_SETTINGS_GetDefaultNetclass(self)
11189
11190 def HasNetclass(self, netclassName):
11191 r"""HasNetclass(NET_SETTINGS self, wxString netclassName) -> bool"""
11192 return _pcbnew.NET_SETTINGS_HasNetclass(self, netclassName)
11193
11194 def SetNetclass(self, netclassName, netclass):
11195 r"""SetNetclass(NET_SETTINGS self, wxString netclassName, std::shared_ptr< NETCLASS > & netclass)"""
11196 return _pcbnew.NET_SETTINGS_SetNetclass(self, netclassName, netclass)
11197
11198 def SetNetclasses(self, netclasses):
11199 r"""SetNetclasses(NET_SETTINGS self, netclasses_map netclasses)"""
11200 return _pcbnew.NET_SETTINGS_SetNetclasses(self, netclasses)
11201
11202 def GetNetclasses(self):
11203 r"""GetNetclasses(NET_SETTINGS self) -> netclasses_map"""
11204 return _pcbnew.NET_SETTINGS_GetNetclasses(self)
11205
11207 r"""GetCompositeNetclasses(NET_SETTINGS self) -> netclasses_map"""
11208 return _pcbnew.NET_SETTINGS_GetCompositeNetclasses(self)
11209
11211 r"""ClearNetclasses(NET_SETTINGS self)"""
11212 return _pcbnew.NET_SETTINGS_ClearNetclasses(self)
11213
11215 r"""GetNetclassLabelAssignments(NET_SETTINGS self) -> std::map< wxString,std::set< wxString,std::less< wxString >,std::allocator< wxString > >,std::less< wxString >,std::allocator< std::pair< wxString const,std::set< wxString,std::less< wxString >,std::allocator< wxString > > > > > const &"""
11216 return _pcbnew.NET_SETTINGS_GetNetclassLabelAssignments(self)
11217
11219 r"""ClearNetclassLabelAssignments(NET_SETTINGS self)"""
11220 return _pcbnew.NET_SETTINGS_ClearNetclassLabelAssignments(self)
11221
11223 r"""ClearNetclassLabelAssignment(NET_SETTINGS self, wxString netName)"""
11224 return _pcbnew.NET_SETTINGS_ClearNetclassLabelAssignment(self, netName)
11225
11226 def SetNetclassLabelAssignment(self, netName, netclasses):
11227 r"""SetNetclassLabelAssignment(NET_SETTINGS self, wxString netName, STRINGSET netclasses)"""
11228 return _pcbnew.NET_SETTINGS_SetNetclassLabelAssignment(self, netName, netclasses)
11229
11230 def AppendNetclassLabelAssignment(self, netName, netclasses):
11231 r"""AppendNetclassLabelAssignment(NET_SETTINGS self, wxString netName, STRINGSET netclasses)"""
11232 return _pcbnew.NET_SETTINGS_AppendNetclassLabelAssignment(self, netName, netclasses)
11233
11234 def HasNetclassLabelAssignment(self, netName):
11235 r"""HasNetclassLabelAssignment(NET_SETTINGS self, wxString netName) -> bool"""
11236 return _pcbnew.NET_SETTINGS_HasNetclassLabelAssignment(self, netName)
11237
11238 def SetNetclassPatternAssignment(self, pattern, netclass):
11239 r"""SetNetclassPatternAssignment(NET_SETTINGS self, wxString pattern, wxString netclass)"""
11240 return _pcbnew.NET_SETTINGS_SetNetclassPatternAssignment(self, pattern, netclass)
11241
11242 def SetNetclassPatternAssignments(self, netclassPatterns):
11243 r"""SetNetclassPatternAssignments(NET_SETTINGS self, std::vector< std::pair< std::unique_ptr< EDA_COMBINED_MATCHER >,wxString >,std::allocator< std::pair< std::unique_ptr< EDA_COMBINED_MATCHER >,wxString > > > && netclassPatterns)"""
11244 return _pcbnew.NET_SETTINGS_SetNetclassPatternAssignments(self, netclassPatterns)
11245
11247 r"""GetNetclassPatternAssignments(NET_SETTINGS self) -> std::vector< std::pair< std::unique_ptr< EDA_COMBINED_MATCHER >,wxString >,std::allocator< std::pair< std::unique_ptr< EDA_COMBINED_MATCHER >,wxString > > > &"""
11248 return _pcbnew.NET_SETTINGS_GetNetclassPatternAssignments(self)
11249
11251 r"""ClearNetclassPatternAssignments(NET_SETTINGS self)"""
11252 return _pcbnew.NET_SETTINGS_ClearNetclassPatternAssignments(self)
11253
11254 def ClearCacheForNet(self, netName):
11255 r"""ClearCacheForNet(NET_SETTINGS self, wxString netName)"""
11256 return _pcbnew.NET_SETTINGS_ClearCacheForNet(self, netName)
11257
11259 r"""ClearAllCaches(NET_SETTINGS self)"""
11260 return _pcbnew.NET_SETTINGS_ClearAllCaches(self)
11261
11262 def SetNetColorAssignment(self, netName, color):
11263 r"""SetNetColorAssignment(NET_SETTINGS self, wxString netName, COLOR4D color)"""
11264 return _pcbnew.NET_SETTINGS_SetNetColorAssignment(self, netName, color)
11265
11267 r"""GetNetColorAssignments(NET_SETTINGS self) -> std::map< wxString,KIGFX::COLOR4D,std::less< wxString >,std::allocator< std::pair< wxString const,KIGFX::COLOR4D > > > const &"""
11268 return _pcbnew.NET_SETTINGS_GetNetColorAssignments(self)
11269
11271 r"""ClearNetColorAssignments(NET_SETTINGS self)"""
11272 return _pcbnew.NET_SETTINGS_ClearNetColorAssignments(self)
11273
11274 def HasEffectiveNetClass(self, aNetName):
11275 r"""HasEffectiveNetClass(NET_SETTINGS self, wxString aNetName) -> bool"""
11276 return _pcbnew.NET_SETTINGS_HasEffectiveNetClass(self, aNetName)
11277
11278 def GetCachedEffectiveNetClass(self, aNetName):
11279 r"""GetCachedEffectiveNetClass(NET_SETTINGS self, wxString aNetName) -> std::shared_ptr< NETCLASS >"""
11280 return _pcbnew.NET_SETTINGS_GetCachedEffectiveNetClass(self, aNetName)
11281
11282 def GetEffectiveNetClass(self, aNetName):
11283 r"""GetEffectiveNetClass(NET_SETTINGS self, wxString aNetName) -> std::shared_ptr< NETCLASS >"""
11284 return _pcbnew.NET_SETTINGS_GetEffectiveNetClass(self, aNetName)
11285
11287 r"""RecomputeEffectiveNetclasses(NET_SETTINGS self)"""
11288 return _pcbnew.NET_SETTINGS_RecomputeEffectiveNetclasses(self)
11289
11290 def GetNetClassByName(self, aNetName):
11291 r"""GetNetClassByName(NET_SETTINGS self, wxString aNetName) -> std::shared_ptr< NETCLASS >"""
11292 return _pcbnew.NET_SETTINGS_GetNetClassByName(self, aNetName)
11293
11294 @staticmethod
11295 def ParseBusVector(aBus, aName, aMemberList):
11296 r"""ParseBusVector(wxString aBus, wxString aName, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11297 return _pcbnew.NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
11298
11299 @staticmethod
11300 def ParseBusGroup(aGroup, name, aMemberList):
11301 r"""ParseBusGroup(wxString aGroup, wxString name, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11302 return _pcbnew.NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
11303
11304# Register NET_SETTINGS in _pcbnew:
11305_pcbnew.NET_SETTINGS_swigregister(NET_SETTINGS)
11307 r"""Proxy of C++ CN_DISJOINT_NET_ENTRY class."""
11308
11309 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11310 __repr__ = _swig_repr
11311 net = property(_pcbnew.CN_DISJOINT_NET_ENTRY_net_get, _pcbnew.CN_DISJOINT_NET_ENTRY_net_set, doc=r"""net : int""")
11312 a = property(_pcbnew.CN_DISJOINT_NET_ENTRY_a_get, _pcbnew.CN_DISJOINT_NET_ENTRY_a_set, doc=r"""a : p.BOARD_CONNECTED_ITEM""")
11313 b = property(_pcbnew.CN_DISJOINT_NET_ENTRY_b_get, _pcbnew.CN_DISJOINT_NET_ENTRY_b_set, doc=r"""b : p.BOARD_CONNECTED_ITEM""")
11314 anchorA = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_set, doc=r"""anchorA : VECTOR2I""")
11315 anchorB = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_set, doc=r"""anchorB : VECTOR2I""")
11316
11317 def __init__(self):
11318 r"""__init__(CN_DISJOINT_NET_ENTRY self) -> CN_DISJOINT_NET_ENTRY"""
11319 _pcbnew.CN_DISJOINT_NET_ENTRY_swiginit(self, _pcbnew.new_CN_DISJOINT_NET_ENTRY())
11320 __swig_destroy__ = _pcbnew.delete_CN_DISJOINT_NET_ENTRY
11321
11322# Register CN_DISJOINT_NET_ENTRY in _pcbnew:
11323_pcbnew.CN_DISJOINT_NET_ENTRY_swigregister(CN_DISJOINT_NET_ENTRY)
11325 r"""Proxy of C++ RN_DYNAMIC_LINE class."""
11326
11327 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11328 __repr__ = _swig_repr
11329 netCode = property(_pcbnew.RN_DYNAMIC_LINE_netCode_get, _pcbnew.RN_DYNAMIC_LINE_netCode_set, doc=r"""netCode : int""")
11330 a = property(_pcbnew.RN_DYNAMIC_LINE_a_get, _pcbnew.RN_DYNAMIC_LINE_a_set, doc=r"""a : VECTOR2I""")
11331 b = property(_pcbnew.RN_DYNAMIC_LINE_b_get, _pcbnew.RN_DYNAMIC_LINE_b_set, doc=r"""b : VECTOR2I""")
11332
11333 def __init__(self):
11334 r"""__init__(RN_DYNAMIC_LINE self) -> RN_DYNAMIC_LINE"""
11335 _pcbnew.RN_DYNAMIC_LINE_swiginit(self, _pcbnew.new_RN_DYNAMIC_LINE())
11336 __swig_destroy__ = _pcbnew.delete_RN_DYNAMIC_LINE
11337
11338# Register RN_DYNAMIC_LINE in _pcbnew:
11339_pcbnew.RN_DYNAMIC_LINE_swigregister(RN_DYNAMIC_LINE)
11340PROPAGATE_MODE_SKIP_CONFLICTS = _pcbnew.PROPAGATE_MODE_SKIP_CONFLICTS
11341
11342PROPAGATE_MODE_RESOLVE_CONFLICTS = _pcbnew.PROPAGATE_MODE_RESOLVE_CONFLICTS
11343
11345 r"""Proxy of C++ CONNECTIVITY_DATA class."""
11346
11347 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11348 __repr__ = _swig_repr
11349 __swig_destroy__ = _pcbnew.delete_CONNECTIVITY_DATA
11350
11351 def __init__(self, *args):
11352 r"""
11353 __init__(CONNECTIVITY_DATA self) -> CONNECTIVITY_DATA
11354 __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
11355 """
11356 _pcbnew.CONNECTIVITY_DATA_swiginit(self, _pcbnew.new_CONNECTIVITY_DATA(*args))
11357
11358 def Build(self, *args):
11359 r"""
11360 Build(CONNECTIVITY_DATA self, BOARD aBoard, PROGRESS_REPORTER * aReporter=None) -> bool
11361 Build(CONNECTIVITY_DATA self, std::shared_ptr< CONNECTIVITY_DATA > & aGlobalConnectivity, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aLocalItems)
11362 """
11363 return _pcbnew.CONNECTIVITY_DATA_Build(self, *args)
11364
11365 def Add(self, aItem):
11366 r"""Add(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11367 return _pcbnew.CONNECTIVITY_DATA_Add(self, aItem)
11368
11369 def Remove(self, aItem):
11370 r"""Remove(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11371 return _pcbnew.CONNECTIVITY_DATA_Remove(self, aItem)
11372
11373 def Update(self, aItem):
11374 r"""Update(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11375 return _pcbnew.CONNECTIVITY_DATA_Update(self, aItem)
11376
11377 def Move(self, aDelta):
11378 r"""Move(CONNECTIVITY_DATA self, VECTOR2I aDelta)"""
11379 return _pcbnew.CONNECTIVITY_DATA_Move(self, aDelta)
11380
11381 def ClearRatsnest(self):
11382 r"""ClearRatsnest(CONNECTIVITY_DATA self)"""
11383 return _pcbnew.CONNECTIVITY_DATA_ClearRatsnest(self)
11384
11385 def GetNetCount(self):
11386 r"""GetNetCount(CONNECTIVITY_DATA self) -> int"""
11387 return _pcbnew.CONNECTIVITY_DATA_GetNetCount(self)
11388
11389 def GetRatsnestForNet(self, aNet):
11390 r"""GetRatsnestForNet(CONNECTIVITY_DATA self, int aNet) -> RN_NET *"""
11391 return _pcbnew.CONNECTIVITY_DATA_GetRatsnestForNet(self, aNet)
11392
11393 def PropagateNets(self, aCommit=None):
11394 r"""PropagateNets(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
11395 return _pcbnew.CONNECTIVITY_DATA_PropagateNets(self, aCommit)
11396
11397 def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False):
11398 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)"""
11399 return _pcbnew.CONNECTIVITY_DATA_FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt)
11400
11401 def RecalculateRatsnest(self, aCommit=None):
11402 r"""RecalculateRatsnest(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
11403 return _pcbnew.CONNECTIVITY_DATA_RecalculateRatsnest(self, aCommit)
11404
11405 def GetUnconnectedCount(self, aVisibileOnly):
11406 r"""GetUnconnectedCount(CONNECTIVITY_DATA self, bool aVisibileOnly) -> unsigned int"""
11407 return _pcbnew.CONNECTIVITY_DATA_GetUnconnectedCount(self, aVisibileOnly)
11408
11409 def IsConnectedOnLayer(self, *args):
11410 r"""IsConnectedOnLayer(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, int aLayer, std::initializer_list< KICAD_T > const & aTypes={}) -> bool"""
11411 return _pcbnew.CONNECTIVITY_DATA_IsConnectedOnLayer(self, *args)
11412
11413 def GetNodeCount(self, aNet=-1):
11414 r"""GetNodeCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
11415 return _pcbnew.CONNECTIVITY_DATA_GetNodeCount(self, aNet)
11416
11417 def GetPadCount(self, aNet=-1):
11418 r"""GetPadCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
11419 return _pcbnew.CONNECTIVITY_DATA_GetPadCount(self, aNet)
11420
11421 def GetConnectedTracks(self, aItem):
11422 r"""GetConnectedTracks(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> TRACKS_VEC"""
11423 return _pcbnew.CONNECTIVITY_DATA_GetConnectedTracks(self, aItem)
11424
11425 def GetConnectedPads(self, *args):
11426 r"""
11427 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> PADS_VEC
11428 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, std::set< PAD *,std::less< PAD * >,std::allocator< PAD * > > * pads)
11429 """
11430 return _pcbnew.CONNECTIVITY_DATA_GetConnectedPads(self, *args)
11431
11432 def GetConnectedPadsAndVias(self, aItem, pads, vias):
11433 r"""GetConnectedPadsAndVias(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, PADS_VEC pads, std::vector< PCB_VIA *,std::allocator< PCB_VIA * > > * vias)"""
11434 return _pcbnew.CONNECTIVITY_DATA_GetConnectedPadsAndVias(self, aItem, pads, vias)
11435
11436 def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0):
11437 r"""GetConnectedItemsAtAnchor(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, VECTOR2I aAnchor, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aTypes, int const & aMaxError=0) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
11438 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError)
11439
11440 def RunOnUnconnectedEdges(self, aFunc):
11441 r"""RunOnUnconnectedEdges(CONNECTIVITY_DATA self, std::function< bool (CN_EDGE &) > aFunc)"""
11442 return _pcbnew.CONNECTIVITY_DATA_RunOnUnconnectedEdges(self, aFunc)
11443
11444 def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None):
11445 r"""TestTrackEndpointDangling(CONNECTIVITY_DATA self, PCB_TRACK aTrack, bool aIgnoreTracksInPads, VECTOR2I aPos=None) -> bool"""
11446 return _pcbnew.CONNECTIVITY_DATA_TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos)
11447
11449 r"""ClearLocalRatsnest(CONNECTIVITY_DATA self)"""
11450 return _pcbnew.CONNECTIVITY_DATA_ClearLocalRatsnest(self)
11451
11453 r"""HideLocalRatsnest(CONNECTIVITY_DATA self)"""
11454 return _pcbnew.CONNECTIVITY_DATA_HideLocalRatsnest(self)
11455
11456 def ComputeLocalRatsnest(self, *args):
11457 r"""ComputeLocalRatsnest(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems, CONNECTIVITY_DATA aDynamicData, VECTOR2I aInternalOffset={ 0, 0 })"""
11458 return _pcbnew.CONNECTIVITY_DATA_ComputeLocalRatsnest(self, *args)
11459
11461 r"""GetLocalRatsnest(CONNECTIVITY_DATA self) -> std::vector< RN_DYNAMIC_LINE,std::allocator< RN_DYNAMIC_LINE > > const &"""
11462 return _pcbnew.CONNECTIVITY_DATA_GetLocalRatsnest(self)
11463
11464 def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False):
11465 r"""GetConnectedItems(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aTypes, bool aIgnoreNetcodes=False) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
11466 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes)
11467
11468 def GetNetItems(self, aNetCode, aTypes):
11469 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"""
11470 return _pcbnew.CONNECTIVITY_DATA_GetNetItems(self, aNetCode, aTypes)
11471
11472 def BlockRatsnestItems(self, aItems):
11473 r"""BlockRatsnestItems(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems)"""
11474 return _pcbnew.CONNECTIVITY_DATA_BlockRatsnestItems(self, aItems)
11475
11477 r"""GetConnectivityAlgo(CONNECTIVITY_DATA self) -> std::shared_ptr< CN_CONNECTIVITY_ALGO >"""
11478 return _pcbnew.CONNECTIVITY_DATA_GetConnectivityAlgo(self)
11479
11480 def GetLock(self):
11481 r"""GetLock(CONNECTIVITY_DATA self) -> KISPINLOCK &"""
11482 return _pcbnew.CONNECTIVITY_DATA_GetLock(self)
11483
11484 def MarkItemNetAsDirty(self, aItem):
11485 r"""MarkItemNetAsDirty(CONNECTIVITY_DATA self, BOARD_ITEM aItem)"""
11486 return _pcbnew.CONNECTIVITY_DATA_MarkItemNetAsDirty(self, aItem)
11487
11489 r"""RemoveInvalidRefs(CONNECTIVITY_DATA self)"""
11490 return _pcbnew.CONNECTIVITY_DATA_RemoveInvalidRefs(self)
11491
11492 def SetProgressReporter(self, aReporter):
11493 r"""SetProgressReporter(CONNECTIVITY_DATA self, PROGRESS_REPORTER * aReporter)"""
11494 return _pcbnew.CONNECTIVITY_DATA_SetProgressReporter(self, aReporter)
11495
11497 r"""GetNetSettings(CONNECTIVITY_DATA self) -> NET_SETTINGS"""
11498 return _pcbnew.CONNECTIVITY_DATA_GetNetSettings(self)
11499
11501 r"""HasNetNameForNetCode(CONNECTIVITY_DATA self, int nc) -> bool"""
11502 return _pcbnew.CONNECTIVITY_DATA_HasNetNameForNetCode(self, nc)
11503
11505 r"""GetNetNameForNetCode(CONNECTIVITY_DATA self, int nc) -> wxString"""
11506 return _pcbnew.CONNECTIVITY_DATA_GetNetNameForNetCode(self, nc)
11507
11508 def RefreshNetcodeMap(self, aBoard):
11509 r"""RefreshNetcodeMap(CONNECTIVITY_DATA self, BOARD aBoard)"""
11510 return _pcbnew.CONNECTIVITY_DATA_RefreshNetcodeMap(self, aBoard)
11511
11513 r"""GetFromToCache(CONNECTIVITY_DATA self) -> std::shared_ptr< FROM_TO_CACHE >"""
11514 return _pcbnew.CONNECTIVITY_DATA_GetFromToCache(self)
11515
11516# Register CONNECTIVITY_DATA in _pcbnew:
11517_pcbnew.CONNECTIVITY_DATA_swigregister(CONNECTIVITY_DATA)
11519 r"""Proxy of C++ std::vector< PCB_MARKER * > class."""
11520
11521 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11522 __repr__ = _swig_repr
11523
11524 def iterator(self):
11525 r"""iterator(MARKERS self) -> SwigPyIterator"""
11526 return _pcbnew.MARKERS_iterator(self)
11527 def __iter__(self):
11528 return self.iterator()
11529
11530 def __nonzero__(self):
11531 r"""__nonzero__(MARKERS self) -> bool"""
11532 return _pcbnew.MARKERS___nonzero__(self)
11533
11534 def __bool__(self):
11535 r"""__bool__(MARKERS self) -> bool"""
11536 return _pcbnew.MARKERS___bool__(self)
11537
11538 def __len__(self):
11539 r"""__len__(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11540 return _pcbnew.MARKERS___len__(self)
11541
11542 def __getslice__(self, i, j):
11543 r"""__getslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j) -> MARKERS"""
11544 return _pcbnew.MARKERS___getslice__(self, i, j)
11545
11546 def __setslice__(self, *args):
11547 r"""
11548 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)
11549 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j, MARKERS v)
11550 """
11551 return _pcbnew.MARKERS___setslice__(self, *args)
11552
11553 def __delslice__(self, i, j):
11554 r"""__delslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)"""
11555 return _pcbnew.MARKERS___delslice__(self, i, j)
11556
11557 def __delitem__(self, *args):
11558 r"""
11559 __delitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i)
11560 __delitem__(MARKERS self, SWIGPY_SLICEOBJECT * slice)
11561 """
11562 return _pcbnew.MARKERS___delitem__(self, *args)
11563
11564 def __getitem__(self, *args):
11565 r"""
11566 __getitem__(MARKERS self, SWIGPY_SLICEOBJECT * slice) -> MARKERS
11567 __getitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i) -> PCB_MARKER
11568 """
11569 return _pcbnew.MARKERS___getitem__(self, *args)
11570
11571 def __setitem__(self, *args):
11572 r"""
11573 __setitem__(MARKERS self, SWIGPY_SLICEOBJECT * slice, MARKERS v)
11574 __setitem__(MARKERS self, SWIGPY_SLICEOBJECT * slice)
11575 __setitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, PCB_MARKER x)
11576 """
11577 return _pcbnew.MARKERS___setitem__(self, *args)
11578
11579 def pop(self):
11580 r"""pop(MARKERS self) -> PCB_MARKER"""
11581 return _pcbnew.MARKERS_pop(self)
11582
11583 def append(self, x):
11584 r"""append(MARKERS self, PCB_MARKER x)"""
11585 return _pcbnew.MARKERS_append(self, x)
11586
11587 def empty(self):
11588 r"""empty(MARKERS self) -> bool"""
11589 return _pcbnew.MARKERS_empty(self)
11590
11591 def size(self):
11592 r"""size(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11593 return _pcbnew.MARKERS_size(self)
11594
11595 def swap(self, v):
11596 r"""swap(MARKERS self, MARKERS v)"""
11597 return _pcbnew.MARKERS_swap(self, v)
11598
11599 def begin(self):
11600 r"""begin(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
11601 return _pcbnew.MARKERS_begin(self)
11602
11603 def end(self):
11604 r"""end(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
11605 return _pcbnew.MARKERS_end(self)
11606
11607 def rbegin(self):
11608 r"""rbegin(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11609 return _pcbnew.MARKERS_rbegin(self)
11610
11611 def rend(self):
11612 r"""rend(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11613 return _pcbnew.MARKERS_rend(self)
11614
11615 def clear(self):
11616 r"""clear(MARKERS self)"""
11617 return _pcbnew.MARKERS_clear(self)
11618
11619 def get_allocator(self):
11620 r"""get_allocator(MARKERS self) -> std::vector< PCB_MARKER * >::allocator_type"""
11621 return _pcbnew.MARKERS_get_allocator(self)
11622
11623 def pop_back(self):
11624 r"""pop_back(MARKERS self)"""
11625 return _pcbnew.MARKERS_pop_back(self)
11626
11627 def erase(self, *args):
11628 r"""
11629 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator pos) -> std::vector< PCB_MARKER * >::iterator
11630 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator first, std::vector< PCB_MARKER * >::iterator last) -> std::vector< PCB_MARKER * >::iterator
11631 """
11632 return _pcbnew.MARKERS_erase(self, *args)
11633
11634 def __init__(self, *args):
11635 r"""
11636 __init__(MARKERS self) -> MARKERS
11637 __init__(MARKERS self, MARKERS other) -> MARKERS
11638 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size) -> MARKERS
11639 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size, PCB_MARKER value) -> MARKERS
11640 """
11641 _pcbnew.MARKERS_swiginit(self, _pcbnew.new_MARKERS(*args))
11642
11643 def push_back(self, x):
11644 r"""push_back(MARKERS self, PCB_MARKER x)"""
11645 return _pcbnew.MARKERS_push_back(self, x)
11646
11647 def front(self):
11648 r"""front(MARKERS self) -> PCB_MARKER"""
11649 return _pcbnew.MARKERS_front(self)
11650
11651 def back(self):
11652 r"""back(MARKERS self) -> PCB_MARKER"""
11653 return _pcbnew.MARKERS_back(self)
11654
11655 def assign(self, n, x):
11656 r"""assign(MARKERS self, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)"""
11657 return _pcbnew.MARKERS_assign(self, n, x)
11658
11659 def resize(self, *args):
11660 r"""
11661 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size)
11662 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size, PCB_MARKER x)
11663 """
11664 return _pcbnew.MARKERS_resize(self, *args)
11665
11666 def insert(self, *args):
11667 r"""
11668 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, PCB_MARKER x) -> std::vector< PCB_MARKER * >::iterator
11669 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)
11670 """
11671 return _pcbnew.MARKERS_insert(self, *args)
11672
11673 def reserve(self, n):
11674 r"""reserve(MARKERS self, std::vector< PCB_MARKER * >::size_type n)"""
11675 return _pcbnew.MARKERS_reserve(self, n)
11676
11677 def capacity(self):
11678 r"""capacity(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11679 return _pcbnew.MARKERS_capacity(self)
11680 __swig_destroy__ = _pcbnew.delete_MARKERS
11681
11682# Register MARKERS in _pcbnew:
11683_pcbnew.MARKERS_swigregister(MARKERS)
11685 r"""Proxy of C++ std::vector< ZONE * > class."""
11686
11687 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11688 __repr__ = _swig_repr
11689
11690 def iterator(self):
11691 r"""iterator(ZONES self) -> SwigPyIterator"""
11692 return _pcbnew.ZONES_iterator(self)
11693 def __iter__(self):
11694 return self.iterator()
11695
11696 def __nonzero__(self):
11697 r"""__nonzero__(ZONES self) -> bool"""
11698 return _pcbnew.ZONES___nonzero__(self)
11699
11700 def __bool__(self):
11701 r"""__bool__(ZONES self) -> bool"""
11702 return _pcbnew.ZONES___bool__(self)
11703
11704 def __len__(self):
11705 r"""__len__(ZONES self) -> std::vector< ZONE * >::size_type"""
11706 return _pcbnew.ZONES___len__(self)
11707
11708 def __getslice__(self, i, j):
11709 r"""__getslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j) -> ZONES"""
11710 return _pcbnew.ZONES___getslice__(self, i, j)
11711
11712 def __setslice__(self, *args):
11713 r"""
11714 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)
11715 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j, ZONES v)
11716 """
11717 return _pcbnew.ZONES___setslice__(self, *args)
11718
11719 def __delslice__(self, i, j):
11720 r"""__delslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)"""
11721 return _pcbnew.ZONES___delslice__(self, i, j)
11722
11723 def __delitem__(self, *args):
11724 r"""
11725 __delitem__(ZONES self, std::vector< ZONE * >::difference_type i)
11726 __delitem__(ZONES self, SWIGPY_SLICEOBJECT * slice)
11727 """
11728 return _pcbnew.ZONES___delitem__(self, *args)
11729
11730 def __getitem__(self, *args):
11731 r"""
11732 __getitem__(ZONES self, SWIGPY_SLICEOBJECT * slice) -> ZONES
11733 __getitem__(ZONES self, std::vector< ZONE * >::difference_type i) -> ZONE
11734 """
11735 return _pcbnew.ZONES___getitem__(self, *args)
11736
11737 def __setitem__(self, *args):
11738 r"""
11739 __setitem__(ZONES self, SWIGPY_SLICEOBJECT * slice, ZONES v)
11740 __setitem__(ZONES self, SWIGPY_SLICEOBJECT * slice)
11741 __setitem__(ZONES self, std::vector< ZONE * >::difference_type i, ZONE x)
11742 """
11743 return _pcbnew.ZONES___setitem__(self, *args)
11744
11745 def pop(self):
11746 r"""pop(ZONES self) -> ZONE"""
11747 return _pcbnew.ZONES_pop(self)
11748
11749 def append(self, x):
11750 r"""append(ZONES self, ZONE x)"""
11751 return _pcbnew.ZONES_append(self, x)
11752
11753 def empty(self):
11754 r"""empty(ZONES self) -> bool"""
11755 return _pcbnew.ZONES_empty(self)
11756
11757 def size(self):
11758 r"""size(ZONES self) -> std::vector< ZONE * >::size_type"""
11759 return _pcbnew.ZONES_size(self)
11760
11761 def swap(self, v):
11762 r"""swap(ZONES self, ZONES v)"""
11763 return _pcbnew.ZONES_swap(self, v)
11764
11765 def begin(self):
11766 r"""begin(ZONES self) -> std::vector< ZONE * >::iterator"""
11767 return _pcbnew.ZONES_begin(self)
11768
11769 def end(self):
11770 r"""end(ZONES self) -> std::vector< ZONE * >::iterator"""
11771 return _pcbnew.ZONES_end(self)
11772
11773 def rbegin(self):
11774 r"""rbegin(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
11775 return _pcbnew.ZONES_rbegin(self)
11776
11777 def rend(self):
11778 r"""rend(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
11779 return _pcbnew.ZONES_rend(self)
11780
11781 def clear(self):
11782 r"""clear(ZONES self)"""
11783 return _pcbnew.ZONES_clear(self)
11784
11785 def get_allocator(self):
11786 r"""get_allocator(ZONES self) -> std::vector< ZONE * >::allocator_type"""
11787 return _pcbnew.ZONES_get_allocator(self)
11788
11789 def pop_back(self):
11790 r"""pop_back(ZONES self)"""
11791 return _pcbnew.ZONES_pop_back(self)
11792
11793 def erase(self, *args):
11794 r"""
11795 erase(ZONES self, std::vector< ZONE * >::iterator pos) -> std::vector< ZONE * >::iterator
11796 erase(ZONES self, std::vector< ZONE * >::iterator first, std::vector< ZONE * >::iterator last) -> std::vector< ZONE * >::iterator
11797 """
11798 return _pcbnew.ZONES_erase(self, *args)
11799
11800 def __init__(self, *args):
11801 r"""
11802 __init__(ZONES self) -> ZONES
11803 __init__(ZONES self, ZONES other) -> ZONES
11804 __init__(ZONES self, std::vector< ZONE * >::size_type size) -> ZONES
11805 __init__(ZONES self, std::vector< ZONE * >::size_type size, ZONE value) -> ZONES
11806 """
11807 _pcbnew.ZONES_swiginit(self, _pcbnew.new_ZONES(*args))
11808
11809 def push_back(self, x):
11810 r"""push_back(ZONES self, ZONE x)"""
11811 return _pcbnew.ZONES_push_back(self, x)
11812
11813 def front(self):
11814 r"""front(ZONES self) -> ZONE"""
11815 return _pcbnew.ZONES_front(self)
11816
11817 def back(self):
11818 r"""back(ZONES self) -> ZONE"""
11819 return _pcbnew.ZONES_back(self)
11820
11821 def assign(self, n, x):
11822 r"""assign(ZONES self, std::vector< ZONE * >::size_type n, ZONE x)"""
11823 return _pcbnew.ZONES_assign(self, n, x)
11824
11825 def resize(self, *args):
11826 r"""
11827 resize(ZONES self, std::vector< ZONE * >::size_type new_size)
11828 resize(ZONES self, std::vector< ZONE * >::size_type new_size, ZONE x)
11829 """
11830 return _pcbnew.ZONES_resize(self, *args)
11831
11832 def insert(self, *args):
11833 r"""
11834 insert(ZONES self, std::vector< ZONE * >::iterator pos, ZONE x) -> std::vector< ZONE * >::iterator
11835 insert(ZONES self, std::vector< ZONE * >::iterator pos, std::vector< ZONE * >::size_type n, ZONE x)
11836 """
11837 return _pcbnew.ZONES_insert(self, *args)
11838
11839 def reserve(self, n):
11840 r"""reserve(ZONES self, std::vector< ZONE * >::size_type n)"""
11841 return _pcbnew.ZONES_reserve(self, n)
11842
11843 def capacity(self):
11844 r"""capacity(ZONES self) -> std::vector< ZONE * >::size_type"""
11845 return _pcbnew.ZONES_capacity(self)
11846 __swig_destroy__ = _pcbnew.delete_ZONES
11847
11848# Register ZONES in _pcbnew:
11849_pcbnew.ZONES_swigregister(ZONES)
11851 r"""Proxy of C++ std::deque< PCB_TRACK * > class."""
11852
11853 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11854 __repr__ = _swig_repr
11855
11856 def iterator(self):
11857 r"""iterator(TRACKS self) -> SwigPyIterator"""
11858 return _pcbnew.TRACKS_iterator(self)
11859 def __iter__(self):
11860 return self.iterator()
11861
11862 def __nonzero__(self):
11863 r"""__nonzero__(TRACKS self) -> bool"""
11864 return _pcbnew.TRACKS___nonzero__(self)
11865
11866 def __bool__(self):
11867 r"""__bool__(TRACKS self) -> bool"""
11868 return _pcbnew.TRACKS___bool__(self)
11869
11870 def __len__(self):
11871 r"""__len__(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
11872 return _pcbnew.TRACKS___len__(self)
11873
11874 def __getslice__(self, i, j):
11875 r"""__getslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j) -> TRACKS"""
11876 return _pcbnew.TRACKS___getslice__(self, i, j)
11877
11878 def __setslice__(self, *args):
11879 r"""
11880 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)
11881 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j, TRACKS v)
11882 """
11883 return _pcbnew.TRACKS___setslice__(self, *args)
11884
11885 def __delslice__(self, i, j):
11886 r"""__delslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)"""
11887 return _pcbnew.TRACKS___delslice__(self, i, j)
11888
11889 def __delitem__(self, *args):
11890 r"""
11891 __delitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i)
11892 __delitem__(TRACKS self, SWIGPY_SLICEOBJECT * slice)
11893 """
11894 return _pcbnew.TRACKS___delitem__(self, *args)
11895
11896 def __getitem__(self, *args):
11897 r"""
11898 __getitem__(TRACKS self, SWIGPY_SLICEOBJECT * slice) -> TRACKS
11899 __getitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i) -> PCB_TRACK
11900 """
11901 return _pcbnew.TRACKS___getitem__(self, *args)
11902
11903 def __setitem__(self, *args):
11904 r"""
11905 __setitem__(TRACKS self, SWIGPY_SLICEOBJECT * slice, TRACKS v)
11906 __setitem__(TRACKS self, SWIGPY_SLICEOBJECT * slice)
11907 __setitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, PCB_TRACK x)
11908 """
11909 return _pcbnew.TRACKS___setitem__(self, *args)
11910
11911 def pop(self):
11912 r"""pop(TRACKS self) -> PCB_TRACK"""
11913 return _pcbnew.TRACKS_pop(self)
11914
11915 def append(self, x):
11916 r"""append(TRACKS self, PCB_TRACK x)"""
11917 return _pcbnew.TRACKS_append(self, x)
11918
11919 def empty(self):
11920 r"""empty(TRACKS self) -> bool"""
11921 return _pcbnew.TRACKS_empty(self)
11922
11923 def size(self):
11924 r"""size(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
11925 return _pcbnew.TRACKS_size(self)
11926
11927 def swap(self, v):
11928 r"""swap(TRACKS self, TRACKS v)"""
11929 return _pcbnew.TRACKS_swap(self, v)
11930
11931 def begin(self):
11932 r"""begin(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
11933 return _pcbnew.TRACKS_begin(self)
11934
11935 def end(self):
11936 r"""end(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
11937 return _pcbnew.TRACKS_end(self)
11938
11939 def rbegin(self):
11940 r"""rbegin(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
11941 return _pcbnew.TRACKS_rbegin(self)
11942
11943 def rend(self):
11944 r"""rend(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
11945 return _pcbnew.TRACKS_rend(self)
11946
11947 def clear(self):
11948 r"""clear(TRACKS self)"""
11949 return _pcbnew.TRACKS_clear(self)
11950
11951 def get_allocator(self):
11952 r"""get_allocator(TRACKS self) -> std::deque< PCB_TRACK * >::allocator_type"""
11953 return _pcbnew.TRACKS_get_allocator(self)
11954
11955 def pop_back(self):
11956 r"""pop_back(TRACKS self)"""
11957 return _pcbnew.TRACKS_pop_back(self)
11958
11959 def erase(self, *args):
11960 r"""
11961 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator pos) -> std::deque< PCB_TRACK * >::iterator
11962 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator first, std::deque< PCB_TRACK * >::iterator last) -> std::deque< PCB_TRACK * >::iterator
11963 """
11964 return _pcbnew.TRACKS_erase(self, *args)
11965
11966 def __init__(self, *args):
11967 r"""
11968 __init__(TRACKS self) -> TRACKS
11969 __init__(TRACKS self, TRACKS other) -> TRACKS
11970 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size) -> TRACKS
11971 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS
11972 """
11973 _pcbnew.TRACKS_swiginit(self, _pcbnew.new_TRACKS(*args))
11974
11975 def push_back(self, x):
11976 r"""push_back(TRACKS self, PCB_TRACK x)"""
11977 return _pcbnew.TRACKS_push_back(self, x)
11978
11979 def front(self):
11980 r"""front(TRACKS self) -> PCB_TRACK"""
11981 return _pcbnew.TRACKS_front(self)
11982
11983 def back(self):
11984 r"""back(TRACKS self) -> PCB_TRACK"""
11985 return _pcbnew.TRACKS_back(self)
11986
11987 def assign(self, n, x):
11988 r"""assign(TRACKS self, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
11989 return _pcbnew.TRACKS_assign(self, n, x)
11990
11991 def resize(self, *args):
11992 r"""
11993 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size)
11994 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
11995 """
11996 return _pcbnew.TRACKS_resize(self, *args)
11997
11998 def insert(self, *args):
11999 r"""
12000 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::deque< PCB_TRACK * >::iterator
12001 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)
12002 """
12003 return _pcbnew.TRACKS_insert(self, *args)
12004
12005 def pop_front(self):
12006 r"""pop_front(TRACKS self)"""
12007 return _pcbnew.TRACKS_pop_front(self)
12008
12009 def push_front(self, x):
12010 r"""push_front(TRACKS self, PCB_TRACK x)"""
12011 return _pcbnew.TRACKS_push_front(self, x)
12012
12013 def __iter__(self):
12014 it = self.iterator()
12015 try:
12016 while True:
12017 item = it.next() # throws StopIteration when iterator reached the end.
12018 yield item.Cast()
12019 except StopIteration:
12020 return
12021
12022 __swig_destroy__ = _pcbnew.delete_TRACKS
12023
12024# Register TRACKS in _pcbnew:
12025_pcbnew.TRACKS_swigregister(TRACKS)
12027 r"""Proxy of C++ std::deque< FOOTPRINT * > class."""
12028
12029 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12030 __repr__ = _swig_repr
12031
12032 def iterator(self):
12033 r"""iterator(FOOTPRINTS self) -> SwigPyIterator"""
12034 return _pcbnew.FOOTPRINTS_iterator(self)
12035 def __iter__(self):
12036 return self.iterator()
12037
12038 def __nonzero__(self):
12039 r"""__nonzero__(FOOTPRINTS self) -> bool"""
12040 return _pcbnew.FOOTPRINTS___nonzero__(self)
12041
12042 def __bool__(self):
12043 r"""__bool__(FOOTPRINTS self) -> bool"""
12044 return _pcbnew.FOOTPRINTS___bool__(self)
12045
12046 def __len__(self):
12047 r"""__len__(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
12048 return _pcbnew.FOOTPRINTS___len__(self)
12049
12050 def __getslice__(self, i, j):
12051 r"""__getslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j) -> FOOTPRINTS"""
12052 return _pcbnew.FOOTPRINTS___getslice__(self, i, j)
12053
12054 def __setslice__(self, *args):
12055 r"""
12056 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)
12057 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j, FOOTPRINTS v)
12058 """
12059 return _pcbnew.FOOTPRINTS___setslice__(self, *args)
12060
12061 def __delslice__(self, i, j):
12062 r"""__delslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)"""
12063 return _pcbnew.FOOTPRINTS___delslice__(self, i, j)
12064
12065 def __delitem__(self, *args):
12066 r"""
12067 __delitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i)
12068 __delitem__(FOOTPRINTS self, SWIGPY_SLICEOBJECT * slice)
12069 """
12070 return _pcbnew.FOOTPRINTS___delitem__(self, *args)
12071
12072 def __getitem__(self, *args):
12073 r"""
12074 __getitem__(FOOTPRINTS self, SWIGPY_SLICEOBJECT * slice) -> FOOTPRINTS
12075 __getitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i) -> FOOTPRINT
12076 """
12077 return _pcbnew.FOOTPRINTS___getitem__(self, *args)
12078
12079 def __setitem__(self, *args):
12080 r"""
12081 __setitem__(FOOTPRINTS self, SWIGPY_SLICEOBJECT * slice, FOOTPRINTS v)
12082 __setitem__(FOOTPRINTS self, SWIGPY_SLICEOBJECT * slice)
12083 __setitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, FOOTPRINT x)
12084 """
12085 return _pcbnew.FOOTPRINTS___setitem__(self, *args)
12086
12087 def pop(self):
12088 r"""pop(FOOTPRINTS self) -> FOOTPRINT"""
12089 return _pcbnew.FOOTPRINTS_pop(self)
12090
12091 def append(self, x):
12092 r"""append(FOOTPRINTS self, FOOTPRINT x)"""
12093 return _pcbnew.FOOTPRINTS_append(self, x)
12094
12095 def empty(self):
12096 r"""empty(FOOTPRINTS self) -> bool"""
12097 return _pcbnew.FOOTPRINTS_empty(self)
12098
12099 def size(self):
12100 r"""size(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
12101 return _pcbnew.FOOTPRINTS_size(self)
12102
12103 def swap(self, v):
12104 r"""swap(FOOTPRINTS self, FOOTPRINTS v)"""
12105 return _pcbnew.FOOTPRINTS_swap(self, v)
12106
12107 def begin(self):
12108 r"""begin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
12109 return _pcbnew.FOOTPRINTS_begin(self)
12110
12111 def end(self):
12112 r"""end(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
12113 return _pcbnew.FOOTPRINTS_end(self)
12114
12115 def rbegin(self):
12116 r"""rbegin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
12117 return _pcbnew.FOOTPRINTS_rbegin(self)
12118
12119 def rend(self):
12120 r"""rend(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
12121 return _pcbnew.FOOTPRINTS_rend(self)
12122
12123 def clear(self):
12124 r"""clear(FOOTPRINTS self)"""
12125 return _pcbnew.FOOTPRINTS_clear(self)
12126
12127 def get_allocator(self):
12128 r"""get_allocator(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::allocator_type"""
12129 return _pcbnew.FOOTPRINTS_get_allocator(self)
12130
12131 def pop_back(self):
12132 r"""pop_back(FOOTPRINTS self)"""
12133 return _pcbnew.FOOTPRINTS_pop_back(self)
12134
12135 def erase(self, *args):
12136 r"""
12137 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos) -> std::deque< FOOTPRINT * >::iterator
12138 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator first, std::deque< FOOTPRINT * >::iterator last) -> std::deque< FOOTPRINT * >::iterator
12139 """
12140 return _pcbnew.FOOTPRINTS_erase(self, *args)
12141
12142 def __init__(self, *args):
12143 r"""
12144 __init__(FOOTPRINTS self) -> FOOTPRINTS
12145 __init__(FOOTPRINTS self, FOOTPRINTS other) -> FOOTPRINTS
12146 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size) -> FOOTPRINTS
12147 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size, FOOTPRINT value) -> FOOTPRINTS
12148 """
12149 _pcbnew.FOOTPRINTS_swiginit(self, _pcbnew.new_FOOTPRINTS(*args))
12150
12151 def push_back(self, x):
12152 r"""push_back(FOOTPRINTS self, FOOTPRINT x)"""
12153 return _pcbnew.FOOTPRINTS_push_back(self, x)
12154
12155 def front(self):
12156 r"""front(FOOTPRINTS self) -> FOOTPRINT"""
12157 return _pcbnew.FOOTPRINTS_front(self)
12158
12159 def back(self):
12160 r"""back(FOOTPRINTS self) -> FOOTPRINT"""
12161 return _pcbnew.FOOTPRINTS_back(self)
12162
12163 def assign(self, n, x):
12164 r"""assign(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)"""
12165 return _pcbnew.FOOTPRINTS_assign(self, n, x)
12166
12167 def resize(self, *args):
12168 r"""
12169 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size)
12170 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size, FOOTPRINT x)
12171 """
12172 return _pcbnew.FOOTPRINTS_resize(self, *args)
12173
12174 def insert(self, *args):
12175 r"""
12176 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, FOOTPRINT x) -> std::deque< FOOTPRINT * >::iterator
12177 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)
12178 """
12179 return _pcbnew.FOOTPRINTS_insert(self, *args)
12180
12181 def pop_front(self):
12182 r"""pop_front(FOOTPRINTS self)"""
12183 return _pcbnew.FOOTPRINTS_pop_front(self)
12184
12185 def push_front(self, x):
12186 r"""push_front(FOOTPRINTS self, FOOTPRINT x)"""
12187 return _pcbnew.FOOTPRINTS_push_front(self, x)
12188 __swig_destroy__ = _pcbnew.delete_FOOTPRINTS
12189
12190# Register FOOTPRINTS in _pcbnew:
12191_pcbnew.FOOTPRINTS_swigregister(FOOTPRINTS)
12193 r"""Proxy of C++ std::deque< PCB_GROUP * > class."""
12194
12195 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12196 __repr__ = _swig_repr
12197
12198 def iterator(self):
12199 r"""iterator(GROUPS self) -> SwigPyIterator"""
12200 return _pcbnew.GROUPS_iterator(self)
12201 def __iter__(self):
12202 return self.iterator()
12203
12204 def __nonzero__(self):
12205 r"""__nonzero__(GROUPS self) -> bool"""
12206 return _pcbnew.GROUPS___nonzero__(self)
12207
12208 def __bool__(self):
12209 r"""__bool__(GROUPS self) -> bool"""
12210 return _pcbnew.GROUPS___bool__(self)
12211
12212 def __len__(self):
12213 r"""__len__(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
12214 return _pcbnew.GROUPS___len__(self)
12215
12216 def __getslice__(self, i, j):
12217 r"""__getslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j) -> GROUPS"""
12218 return _pcbnew.GROUPS___getslice__(self, i, j)
12219
12220 def __setslice__(self, *args):
12221 r"""
12222 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)
12223 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j, GROUPS v)
12224 """
12225 return _pcbnew.GROUPS___setslice__(self, *args)
12226
12227 def __delslice__(self, i, j):
12228 r"""__delslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)"""
12229 return _pcbnew.GROUPS___delslice__(self, i, j)
12230
12231 def __delitem__(self, *args):
12232 r"""
12233 __delitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i)
12234 __delitem__(GROUPS self, SWIGPY_SLICEOBJECT * slice)
12235 """
12236 return _pcbnew.GROUPS___delitem__(self, *args)
12237
12238 def __getitem__(self, *args):
12239 r"""
12240 __getitem__(GROUPS self, SWIGPY_SLICEOBJECT * slice) -> GROUPS
12241 __getitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i) -> PCB_GROUP
12242 """
12243 return _pcbnew.GROUPS___getitem__(self, *args)
12244
12245 def __setitem__(self, *args):
12246 r"""
12247 __setitem__(GROUPS self, SWIGPY_SLICEOBJECT * slice, GROUPS v)
12248 __setitem__(GROUPS self, SWIGPY_SLICEOBJECT * slice)
12249 __setitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, PCB_GROUP x)
12250 """
12251 return _pcbnew.GROUPS___setitem__(self, *args)
12252
12253 def pop(self):
12254 r"""pop(GROUPS self) -> PCB_GROUP"""
12255 return _pcbnew.GROUPS_pop(self)
12256
12257 def append(self, x):
12258 r"""append(GROUPS self, PCB_GROUP x)"""
12259 return _pcbnew.GROUPS_append(self, x)
12260
12261 def empty(self):
12262 r"""empty(GROUPS self) -> bool"""
12263 return _pcbnew.GROUPS_empty(self)
12264
12265 def size(self):
12266 r"""size(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
12267 return _pcbnew.GROUPS_size(self)
12268
12269 def swap(self, v):
12270 r"""swap(GROUPS self, GROUPS v)"""
12271 return _pcbnew.GROUPS_swap(self, v)
12272
12273 def begin(self):
12274 r"""begin(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
12275 return _pcbnew.GROUPS_begin(self)
12276
12277 def end(self):
12278 r"""end(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
12279 return _pcbnew.GROUPS_end(self)
12280
12281 def rbegin(self):
12282 r"""rbegin(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
12283 return _pcbnew.GROUPS_rbegin(self)
12284
12285 def rend(self):
12286 r"""rend(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
12287 return _pcbnew.GROUPS_rend(self)
12288
12289 def clear(self):
12290 r"""clear(GROUPS self)"""
12291 return _pcbnew.GROUPS_clear(self)
12292
12293 def get_allocator(self):
12294 r"""get_allocator(GROUPS self) -> std::deque< PCB_GROUP * >::allocator_type"""
12295 return _pcbnew.GROUPS_get_allocator(self)
12296
12297 def pop_back(self):
12298 r"""pop_back(GROUPS self)"""
12299 return _pcbnew.GROUPS_pop_back(self)
12300
12301 def erase(self, *args):
12302 r"""
12303 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator pos) -> std::deque< PCB_GROUP * >::iterator
12304 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator first, std::deque< PCB_GROUP * >::iterator last) -> std::deque< PCB_GROUP * >::iterator
12305 """
12306 return _pcbnew.GROUPS_erase(self, *args)
12307
12308 def __init__(self, *args):
12309 r"""
12310 __init__(GROUPS self) -> GROUPS
12311 __init__(GROUPS self, GROUPS other) -> GROUPS
12312 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size) -> GROUPS
12313 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size, PCB_GROUP value) -> GROUPS
12314 """
12315 _pcbnew.GROUPS_swiginit(self, _pcbnew.new_GROUPS(*args))
12316
12317 def push_back(self, x):
12318 r"""push_back(GROUPS self, PCB_GROUP x)"""
12319 return _pcbnew.GROUPS_push_back(self, x)
12320
12321 def front(self):
12322 r"""front(GROUPS self) -> PCB_GROUP"""
12323 return _pcbnew.GROUPS_front(self)
12324
12325 def back(self):
12326 r"""back(GROUPS self) -> PCB_GROUP"""
12327 return _pcbnew.GROUPS_back(self)
12328
12329 def assign(self, n, x):
12330 r"""assign(GROUPS self, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)"""
12331 return _pcbnew.GROUPS_assign(self, n, x)
12332
12333 def resize(self, *args):
12334 r"""
12335 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size)
12336 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size, PCB_GROUP x)
12337 """
12338 return _pcbnew.GROUPS_resize(self, *args)
12339
12340 def insert(self, *args):
12341 r"""
12342 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, PCB_GROUP x) -> std::deque< PCB_GROUP * >::iterator
12343 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)
12344 """
12345 return _pcbnew.GROUPS_insert(self, *args)
12346
12347 def pop_front(self):
12348 r"""pop_front(GROUPS self)"""
12349 return _pcbnew.GROUPS_pop_front(self)
12350
12351 def push_front(self, x):
12352 r"""push_front(GROUPS self, PCB_GROUP x)"""
12353 return _pcbnew.GROUPS_push_front(self, x)
12354 __swig_destroy__ = _pcbnew.delete_GROUPS
12355
12356# Register GROUPS in _pcbnew:
12357_pcbnew.GROUPS_swigregister(GROUPS)
12359 r"""Proxy of C++ std::deque< PCB_GENERATOR * > class."""
12360
12361 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12362 __repr__ = _swig_repr
12363
12364 def iterator(self):
12365 r"""iterator(GENERATORS self) -> SwigPyIterator"""
12366 return _pcbnew.GENERATORS_iterator(self)
12367 def __iter__(self):
12368 return self.iterator()
12369
12370 def __nonzero__(self):
12371 r"""__nonzero__(GENERATORS self) -> bool"""
12372 return _pcbnew.GENERATORS___nonzero__(self)
12373
12374 def __bool__(self):
12375 r"""__bool__(GENERATORS self) -> bool"""
12376 return _pcbnew.GENERATORS___bool__(self)
12377
12378 def __len__(self):
12379 r"""__len__(GENERATORS self) -> std::deque< PCB_GENERATOR * >::size_type"""
12380 return _pcbnew.GENERATORS___len__(self)
12381
12382 def __getslice__(self, i, j):
12383 r"""__getslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j) -> GENERATORS"""
12384 return _pcbnew.GENERATORS___getslice__(self, i, j)
12385
12386 def __setslice__(self, *args):
12387 r"""
12388 __setslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j)
12389 __setslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j, GENERATORS v)
12390 """
12391 return _pcbnew.GENERATORS___setslice__(self, *args)
12392
12393 def __delslice__(self, i, j):
12394 r"""__delslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j)"""
12395 return _pcbnew.GENERATORS___delslice__(self, i, j)
12396
12397 def __delitem__(self, *args):
12398 r"""
12399 __delitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i)
12400 __delitem__(GENERATORS self, SWIGPY_SLICEOBJECT * slice)
12401 """
12402 return _pcbnew.GENERATORS___delitem__(self, *args)
12403
12404 def __getitem__(self, *args):
12405 r"""
12406 __getitem__(GENERATORS self, SWIGPY_SLICEOBJECT * slice) -> GENERATORS
12407 __getitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i) -> std::deque< PCB_GENERATOR * >::value_type
12408 """
12409 return _pcbnew.GENERATORS___getitem__(self, *args)
12410
12411 def __setitem__(self, *args):
12412 r"""
12413 __setitem__(GENERATORS self, SWIGPY_SLICEOBJECT * slice, GENERATORS v)
12414 __setitem__(GENERATORS self, SWIGPY_SLICEOBJECT * slice)
12415 __setitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::value_type x)
12416 """
12417 return _pcbnew.GENERATORS___setitem__(self, *args)
12418
12419 def pop(self):
12420 r"""pop(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12421 return _pcbnew.GENERATORS_pop(self)
12422
12423 def append(self, x):
12424 r"""append(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12425 return _pcbnew.GENERATORS_append(self, x)
12426
12427 def empty(self):
12428 r"""empty(GENERATORS self) -> bool"""
12429 return _pcbnew.GENERATORS_empty(self)
12430
12431 def size(self):
12432 r"""size(GENERATORS self) -> std::deque< PCB_GENERATOR * >::size_type"""
12433 return _pcbnew.GENERATORS_size(self)
12434
12435 def swap(self, v):
12436 r"""swap(GENERATORS self, GENERATORS v)"""
12437 return _pcbnew.GENERATORS_swap(self, v)
12438
12439 def begin(self):
12440 r"""begin(GENERATORS self) -> std::deque< PCB_GENERATOR * >::iterator"""
12441 return _pcbnew.GENERATORS_begin(self)
12442
12443 def end(self):
12444 r"""end(GENERATORS self) -> std::deque< PCB_GENERATOR * >::iterator"""
12445 return _pcbnew.GENERATORS_end(self)
12446
12447 def rbegin(self):
12448 r"""rbegin(GENERATORS self) -> std::deque< PCB_GENERATOR * >::reverse_iterator"""
12449 return _pcbnew.GENERATORS_rbegin(self)
12450
12451 def rend(self):
12452 r"""rend(GENERATORS self) -> std::deque< PCB_GENERATOR * >::reverse_iterator"""
12453 return _pcbnew.GENERATORS_rend(self)
12454
12455 def clear(self):
12456 r"""clear(GENERATORS self)"""
12457 return _pcbnew.GENERATORS_clear(self)
12458
12459 def get_allocator(self):
12460 r"""get_allocator(GENERATORS self) -> std::deque< PCB_GENERATOR * >::allocator_type"""
12461 return _pcbnew.GENERATORS_get_allocator(self)
12462
12463 def pop_back(self):
12464 r"""pop_back(GENERATORS self)"""
12465 return _pcbnew.GENERATORS_pop_back(self)
12466
12467 def erase(self, *args):
12468 r"""
12469 erase(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos) -> std::deque< PCB_GENERATOR * >::iterator
12470 erase(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator first, std::deque< PCB_GENERATOR * >::iterator last) -> std::deque< PCB_GENERATOR * >::iterator
12471 """
12472 return _pcbnew.GENERATORS_erase(self, *args)
12473
12474 def __init__(self, *args):
12475 r"""
12476 __init__(GENERATORS self) -> GENERATORS
12477 __init__(GENERATORS self, GENERATORS other) -> GENERATORS
12478 __init__(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type size) -> GENERATORS
12479 __init__(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type size, std::deque< PCB_GENERATOR * >::value_type value) -> GENERATORS
12480 """
12481 _pcbnew.GENERATORS_swiginit(self, _pcbnew.new_GENERATORS(*args))
12482
12483 def push_back(self, x):
12484 r"""push_back(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12485 return _pcbnew.GENERATORS_push_back(self, x)
12486
12487 def front(self):
12488 r"""front(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12489 return _pcbnew.GENERATORS_front(self)
12490
12491 def back(self):
12492 r"""back(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12493 return _pcbnew.GENERATORS_back(self)
12494
12495 def assign(self, n, x):
12496 r"""assign(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type n, std::deque< PCB_GENERATOR * >::value_type x)"""
12497 return _pcbnew.GENERATORS_assign(self, n, x)
12498
12499 def resize(self, *args):
12500 r"""
12501 resize(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type new_size)
12502 resize(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type new_size, std::deque< PCB_GENERATOR * >::value_type x)
12503 """
12504 return _pcbnew.GENERATORS_resize(self, *args)
12505
12506 def insert(self, *args):
12507 r"""
12508 insert(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos, std::deque< PCB_GENERATOR * >::value_type x) -> std::deque< PCB_GENERATOR * >::iterator
12509 insert(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos, std::deque< PCB_GENERATOR * >::size_type n, std::deque< PCB_GENERATOR * >::value_type x)
12510 """
12511 return _pcbnew.GENERATORS_insert(self, *args)
12512
12513 def pop_front(self):
12514 r"""pop_front(GENERATORS self)"""
12515 return _pcbnew.GENERATORS_pop_front(self)
12516
12517 def push_front(self, x):
12518 r"""push_front(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12519 return _pcbnew.GENERATORS_push_front(self, x)
12520 __swig_destroy__ = _pcbnew.delete_GENERATORS
12521
12522# Register GENERATORS in _pcbnew:
12523_pcbnew.GENERATORS_swigregister(GENERATORS)
12525 r"""Proxy of C++ std::deque< BOARD_ITEM * > class."""
12526
12527 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12528 __repr__ = _swig_repr
12529
12530 def iterator(self):
12531 r"""iterator(DRAWINGS self) -> SwigPyIterator"""
12532 return _pcbnew.DRAWINGS_iterator(self)
12533 def __iter__(self):
12534 return self.iterator()
12535
12536 def __nonzero__(self):
12537 r"""__nonzero__(DRAWINGS self) -> bool"""
12538 return _pcbnew.DRAWINGS___nonzero__(self)
12539
12540 def __bool__(self):
12541 r"""__bool__(DRAWINGS self) -> bool"""
12542 return _pcbnew.DRAWINGS___bool__(self)
12543
12544 def __len__(self):
12545 r"""__len__(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
12546 return _pcbnew.DRAWINGS___len__(self)
12547
12548 def __getslice__(self, i, j):
12549 r"""__getslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j) -> DRAWINGS"""
12550 return _pcbnew.DRAWINGS___getslice__(self, i, j)
12551
12552 def __setslice__(self, *args):
12553 r"""
12554 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)
12555 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j, DRAWINGS v)
12556 """
12557 return _pcbnew.DRAWINGS___setslice__(self, *args)
12558
12559 def __delslice__(self, i, j):
12560 r"""__delslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)"""
12561 return _pcbnew.DRAWINGS___delslice__(self, i, j)
12562
12563 def __delitem__(self, *args):
12564 r"""
12565 __delitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i)
12566 __delitem__(DRAWINGS self, SWIGPY_SLICEOBJECT * slice)
12567 """
12568 return _pcbnew.DRAWINGS___delitem__(self, *args)
12569
12570 def __getitem__(self, *args):
12571 r"""
12572 __getitem__(DRAWINGS self, SWIGPY_SLICEOBJECT * slice) -> DRAWINGS
12573 __getitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i) -> BOARD_ITEM
12574 """
12575 return _pcbnew.DRAWINGS___getitem__(self, *args)
12576
12577 def __setitem__(self, *args):
12578 r"""
12579 __setitem__(DRAWINGS self, SWIGPY_SLICEOBJECT * slice, DRAWINGS v)
12580 __setitem__(DRAWINGS self, SWIGPY_SLICEOBJECT * slice)
12581 __setitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, BOARD_ITEM x)
12582 """
12583 return _pcbnew.DRAWINGS___setitem__(self, *args)
12584
12585 def pop(self):
12586 r"""pop(DRAWINGS self) -> BOARD_ITEM"""
12587 return _pcbnew.DRAWINGS_pop(self)
12588
12589 def append(self, x):
12590 r"""append(DRAWINGS self, BOARD_ITEM x)"""
12591 return _pcbnew.DRAWINGS_append(self, x)
12592
12593 def empty(self):
12594 r"""empty(DRAWINGS self) -> bool"""
12595 return _pcbnew.DRAWINGS_empty(self)
12596
12597 def size(self):
12598 r"""size(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
12599 return _pcbnew.DRAWINGS_size(self)
12600
12601 def swap(self, v):
12602 r"""swap(DRAWINGS self, DRAWINGS v)"""
12603 return _pcbnew.DRAWINGS_swap(self, v)
12604
12605 def begin(self):
12606 r"""begin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
12607 return _pcbnew.DRAWINGS_begin(self)
12608
12609 def end(self):
12610 r"""end(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
12611 return _pcbnew.DRAWINGS_end(self)
12612
12613 def rbegin(self):
12614 r"""rbegin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
12615 return _pcbnew.DRAWINGS_rbegin(self)
12616
12617 def rend(self):
12618 r"""rend(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
12619 return _pcbnew.DRAWINGS_rend(self)
12620
12621 def clear(self):
12622 r"""clear(DRAWINGS self)"""
12623 return _pcbnew.DRAWINGS_clear(self)
12624
12625 def get_allocator(self):
12626 r"""get_allocator(DRAWINGS self) -> std::deque< BOARD_ITEM * >::allocator_type"""
12627 return _pcbnew.DRAWINGS_get_allocator(self)
12628
12629 def pop_back(self):
12630 r"""pop_back(DRAWINGS self)"""
12631 return _pcbnew.DRAWINGS_pop_back(self)
12632
12633 def erase(self, *args):
12634 r"""
12635 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos) -> std::deque< BOARD_ITEM * >::iterator
12636 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator first, std::deque< BOARD_ITEM * >::iterator last) -> std::deque< BOARD_ITEM * >::iterator
12637 """
12638 return _pcbnew.DRAWINGS_erase(self, *args)
12639
12640 def __init__(self, *args):
12641 r"""
12642 __init__(DRAWINGS self) -> DRAWINGS
12643 __init__(DRAWINGS self, DRAWINGS other) -> DRAWINGS
12644 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size) -> DRAWINGS
12645 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size, BOARD_ITEM value) -> DRAWINGS
12646 """
12647 _pcbnew.DRAWINGS_swiginit(self, _pcbnew.new_DRAWINGS(*args))
12648
12649 def push_back(self, x):
12650 r"""push_back(DRAWINGS self, BOARD_ITEM x)"""
12651 return _pcbnew.DRAWINGS_push_back(self, x)
12652
12653 def front(self):
12654 r"""front(DRAWINGS self) -> BOARD_ITEM"""
12655 return _pcbnew.DRAWINGS_front(self)
12656
12657 def back(self):
12658 r"""back(DRAWINGS self) -> BOARD_ITEM"""
12659 return _pcbnew.DRAWINGS_back(self)
12660
12661 def assign(self, n, x):
12662 r"""assign(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)"""
12663 return _pcbnew.DRAWINGS_assign(self, n, x)
12664
12665 def resize(self, *args):
12666 r"""
12667 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size)
12668 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size, BOARD_ITEM x)
12669 """
12670 return _pcbnew.DRAWINGS_resize(self, *args)
12671
12672 def insert(self, *args):
12673 r"""
12674 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, BOARD_ITEM x) -> std::deque< BOARD_ITEM * >::iterator
12675 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)
12676 """
12677 return _pcbnew.DRAWINGS_insert(self, *args)
12678
12679 def pop_front(self):
12680 r"""pop_front(DRAWINGS self)"""
12681 return _pcbnew.DRAWINGS_pop_front(self)
12682
12683 def push_front(self, x):
12684 r"""push_front(DRAWINGS self, BOARD_ITEM x)"""
12685 return _pcbnew.DRAWINGS_push_front(self, x)
12686
12687 def __iter__(self):
12688 it = self.iterator()
12689 try:
12690 while True:
12691 item = it.next() # throws StopIteration when iterator reached the end.
12692 yield item.Cast()
12693 except StopIteration:
12694 return
12695
12696 __swig_destroy__ = _pcbnew.delete_DRAWINGS
12697
12698# Register DRAWINGS in _pcbnew:
12699_pcbnew.DRAWINGS_swigregister(DRAWINGS)
12701 r"""Proxy of C++ std::deque< PAD * > class."""
12702
12703 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12704 __repr__ = _swig_repr
12705
12706 def iterator(self):
12707 r"""iterator(PADS self) -> SwigPyIterator"""
12708 return _pcbnew.PADS_iterator(self)
12709 def __iter__(self):
12710 return self.iterator()
12711
12712 def __nonzero__(self):
12713 r"""__nonzero__(PADS self) -> bool"""
12714 return _pcbnew.PADS___nonzero__(self)
12715
12716 def __bool__(self):
12717 r"""__bool__(PADS self) -> bool"""
12718 return _pcbnew.PADS___bool__(self)
12719
12720 def __len__(self):
12721 r"""__len__(PADS self) -> std::deque< PAD * >::size_type"""
12722 return _pcbnew.PADS___len__(self)
12723
12724 def __getslice__(self, i, j):
12725 r"""__getslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j) -> PADS"""
12726 return _pcbnew.PADS___getslice__(self, i, j)
12727
12728 def __setslice__(self, *args):
12729 r"""
12730 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)
12731 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j, PADS v)
12732 """
12733 return _pcbnew.PADS___setslice__(self, *args)
12734
12735 def __delslice__(self, i, j):
12736 r"""__delslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)"""
12737 return _pcbnew.PADS___delslice__(self, i, j)
12738
12739 def __delitem__(self, *args):
12740 r"""
12741 __delitem__(PADS self, std::deque< PAD * >::difference_type i)
12742 __delitem__(PADS self, SWIGPY_SLICEOBJECT * slice)
12743 """
12744 return _pcbnew.PADS___delitem__(self, *args)
12745
12746 def __getitem__(self, *args):
12747 r"""
12748 __getitem__(PADS self, SWIGPY_SLICEOBJECT * slice) -> PADS
12749 __getitem__(PADS self, std::deque< PAD * >::difference_type i) -> PAD
12750 """
12751 return _pcbnew.PADS___getitem__(self, *args)
12752
12753 def __setitem__(self, *args):
12754 r"""
12755 __setitem__(PADS self, SWIGPY_SLICEOBJECT * slice, PADS v)
12756 __setitem__(PADS self, SWIGPY_SLICEOBJECT * slice)
12757 __setitem__(PADS self, std::deque< PAD * >::difference_type i, PAD x)
12758 """
12759 return _pcbnew.PADS___setitem__(self, *args)
12760
12761 def pop(self):
12762 r"""pop(PADS self) -> PAD"""
12763 return _pcbnew.PADS_pop(self)
12764
12765 def append(self, x):
12766 r"""append(PADS self, PAD x)"""
12767 return _pcbnew.PADS_append(self, x)
12768
12769 def empty(self):
12770 r"""empty(PADS self) -> bool"""
12771 return _pcbnew.PADS_empty(self)
12772
12773 def size(self):
12774 r"""size(PADS self) -> std::deque< PAD * >::size_type"""
12775 return _pcbnew.PADS_size(self)
12776
12777 def swap(self, v):
12778 r"""swap(PADS self, PADS v)"""
12779 return _pcbnew.PADS_swap(self, v)
12780
12781 def begin(self):
12782 r"""begin(PADS self) -> std::deque< PAD * >::iterator"""
12783 return _pcbnew.PADS_begin(self)
12784
12785 def end(self):
12786 r"""end(PADS self) -> std::deque< PAD * >::iterator"""
12787 return _pcbnew.PADS_end(self)
12788
12789 def rbegin(self):
12790 r"""rbegin(PADS self) -> std::deque< PAD * >::reverse_iterator"""
12791 return _pcbnew.PADS_rbegin(self)
12792
12793 def rend(self):
12794 r"""rend(PADS self) -> std::deque< PAD * >::reverse_iterator"""
12795 return _pcbnew.PADS_rend(self)
12796
12797 def clear(self):
12798 r"""clear(PADS self)"""
12799 return _pcbnew.PADS_clear(self)
12800
12801 def get_allocator(self):
12802 r"""get_allocator(PADS self) -> std::deque< PAD * >::allocator_type"""
12803 return _pcbnew.PADS_get_allocator(self)
12804
12805 def pop_back(self):
12806 r"""pop_back(PADS self)"""
12807 return _pcbnew.PADS_pop_back(self)
12808
12809 def erase(self, *args):
12810 r"""
12811 erase(PADS self, std::deque< PAD * >::iterator pos) -> std::deque< PAD * >::iterator
12812 erase(PADS self, std::deque< PAD * >::iterator first, std::deque< PAD * >::iterator last) -> std::deque< PAD * >::iterator
12813 """
12814 return _pcbnew.PADS_erase(self, *args)
12815
12816 def __init__(self, *args):
12817 r"""
12818 __init__(PADS self) -> PADS
12819 __init__(PADS self, PADS other) -> PADS
12820 __init__(PADS self, std::deque< PAD * >::size_type size) -> PADS
12821 __init__(PADS self, std::deque< PAD * >::size_type size, PAD value) -> PADS
12822 """
12823 _pcbnew.PADS_swiginit(self, _pcbnew.new_PADS(*args))
12824
12825 def push_back(self, x):
12826 r"""push_back(PADS self, PAD x)"""
12827 return _pcbnew.PADS_push_back(self, x)
12828
12829 def front(self):
12830 r"""front(PADS self) -> PAD"""
12831 return _pcbnew.PADS_front(self)
12832
12833 def back(self):
12834 r"""back(PADS self) -> PAD"""
12835 return _pcbnew.PADS_back(self)
12836
12837 def assign(self, n, x):
12838 r"""assign(PADS self, std::deque< PAD * >::size_type n, PAD x)"""
12839 return _pcbnew.PADS_assign(self, n, x)
12840
12841 def resize(self, *args):
12842 r"""
12843 resize(PADS self, std::deque< PAD * >::size_type new_size)
12844 resize(PADS self, std::deque< PAD * >::size_type new_size, PAD x)
12845 """
12846 return _pcbnew.PADS_resize(self, *args)
12847
12848 def insert(self, *args):
12849 r"""
12850 insert(PADS self, std::deque< PAD * >::iterator pos, PAD x) -> std::deque< PAD * >::iterator
12851 insert(PADS self, std::deque< PAD * >::iterator pos, std::deque< PAD * >::size_type n, PAD x)
12852 """
12853 return _pcbnew.PADS_insert(self, *args)
12854
12855 def pop_front(self):
12856 r"""pop_front(PADS self)"""
12857 return _pcbnew.PADS_pop_front(self)
12858
12859 def push_front(self, x):
12860 r"""push_front(PADS self, PAD x)"""
12861 return _pcbnew.PADS_push_front(self, x)
12862 __swig_destroy__ = _pcbnew.delete_PADS
12863
12864# Register PADS in _pcbnew:
12865_pcbnew.PADS_swigregister(PADS)
12867 r"""Proxy of C++ std::deque< PCB_FIELD * > class."""
12868
12869 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12870 __repr__ = _swig_repr
12871
12872 def iterator(self):
12873 r"""iterator(PCB_FIELDS self) -> SwigPyIterator"""
12874 return _pcbnew.PCB_FIELDS_iterator(self)
12875 def __iter__(self):
12876 return self.iterator()
12877
12878 def __nonzero__(self):
12879 r"""__nonzero__(PCB_FIELDS self) -> bool"""
12880 return _pcbnew.PCB_FIELDS___nonzero__(self)
12881
12882 def __bool__(self):
12883 r"""__bool__(PCB_FIELDS self) -> bool"""
12884 return _pcbnew.PCB_FIELDS___bool__(self)
12885
12886 def __len__(self):
12887 r"""__len__(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::size_type"""
12888 return _pcbnew.PCB_FIELDS___len__(self)
12889
12890 def __getslice__(self, i, j):
12891 r"""__getslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j) -> PCB_FIELDS"""
12892 return _pcbnew.PCB_FIELDS___getslice__(self, i, j)
12893
12894 def __setslice__(self, *args):
12895 r"""
12896 __setslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j)
12897 __setslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j, PCB_FIELDS v)
12898 """
12899 return _pcbnew.PCB_FIELDS___setslice__(self, *args)
12900
12901 def __delslice__(self, i, j):
12902 r"""__delslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j)"""
12903 return _pcbnew.PCB_FIELDS___delslice__(self, i, j)
12904
12905 def __delitem__(self, *args):
12906 r"""
12907 __delitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i)
12908 __delitem__(PCB_FIELDS self, SWIGPY_SLICEOBJECT * slice)
12909 """
12910 return _pcbnew.PCB_FIELDS___delitem__(self, *args)
12911
12912 def __getitem__(self, *args):
12913 r"""
12914 __getitem__(PCB_FIELDS self, SWIGPY_SLICEOBJECT * slice) -> PCB_FIELDS
12915 __getitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i) -> PCB_FIELD
12916 """
12917 return _pcbnew.PCB_FIELDS___getitem__(self, *args)
12918
12919 def __setitem__(self, *args):
12920 r"""
12921 __setitem__(PCB_FIELDS self, SWIGPY_SLICEOBJECT * slice, PCB_FIELDS v)
12922 __setitem__(PCB_FIELDS self, SWIGPY_SLICEOBJECT * slice)
12923 __setitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, PCB_FIELD x)
12924 """
12925 return _pcbnew.PCB_FIELDS___setitem__(self, *args)
12926
12927 def pop(self):
12928 r"""pop(PCB_FIELDS self) -> PCB_FIELD"""
12929 return _pcbnew.PCB_FIELDS_pop(self)
12930
12931 def append(self, x):
12932 r"""append(PCB_FIELDS self, PCB_FIELD x)"""
12933 return _pcbnew.PCB_FIELDS_append(self, x)
12934
12935 def empty(self):
12936 r"""empty(PCB_FIELDS self) -> bool"""
12937 return _pcbnew.PCB_FIELDS_empty(self)
12938
12939 def size(self):
12940 r"""size(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::size_type"""
12941 return _pcbnew.PCB_FIELDS_size(self)
12942
12943 def swap(self, v):
12944 r"""swap(PCB_FIELDS self, PCB_FIELDS v)"""
12945 return _pcbnew.PCB_FIELDS_swap(self, v)
12946
12947 def begin(self):
12948 r"""begin(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::iterator"""
12949 return _pcbnew.PCB_FIELDS_begin(self)
12950
12951 def end(self):
12952 r"""end(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::iterator"""
12953 return _pcbnew.PCB_FIELDS_end(self)
12954
12955 def rbegin(self):
12956 r"""rbegin(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::reverse_iterator"""
12957 return _pcbnew.PCB_FIELDS_rbegin(self)
12958
12959 def rend(self):
12960 r"""rend(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::reverse_iterator"""
12961 return _pcbnew.PCB_FIELDS_rend(self)
12962
12963 def clear(self):
12964 r"""clear(PCB_FIELDS self)"""
12965 return _pcbnew.PCB_FIELDS_clear(self)
12966
12967 def get_allocator(self):
12968 r"""get_allocator(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::allocator_type"""
12969 return _pcbnew.PCB_FIELDS_get_allocator(self)
12970
12971 def pop_back(self):
12972 r"""pop_back(PCB_FIELDS self)"""
12973 return _pcbnew.PCB_FIELDS_pop_back(self)
12974
12975 def erase(self, *args):
12976 r"""
12977 erase(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos) -> std::deque< PCB_FIELD * >::iterator
12978 erase(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator first, std::deque< PCB_FIELD * >::iterator last) -> std::deque< PCB_FIELD * >::iterator
12979 """
12980 return _pcbnew.PCB_FIELDS_erase(self, *args)
12981
12982 def __init__(self, *args):
12983 r"""
12984 __init__(PCB_FIELDS self) -> PCB_FIELDS
12985 __init__(PCB_FIELDS self, PCB_FIELDS other) -> PCB_FIELDS
12986 __init__(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type size) -> PCB_FIELDS
12987 __init__(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type size, PCB_FIELD value) -> PCB_FIELDS
12988 """
12989 _pcbnew.PCB_FIELDS_swiginit(self, _pcbnew.new_PCB_FIELDS(*args))
12990
12991 def push_back(self, x):
12992 r"""push_back(PCB_FIELDS self, PCB_FIELD x)"""
12993 return _pcbnew.PCB_FIELDS_push_back(self, x)
12994
12995 def front(self):
12996 r"""front(PCB_FIELDS self) -> PCB_FIELD"""
12997 return _pcbnew.PCB_FIELDS_front(self)
12998
12999 def back(self):
13000 r"""back(PCB_FIELDS self) -> PCB_FIELD"""
13001 return _pcbnew.PCB_FIELDS_back(self)
13002
13003 def assign(self, n, x):
13004 r"""assign(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type n, PCB_FIELD x)"""
13005 return _pcbnew.PCB_FIELDS_assign(self, n, x)
13006
13007 def resize(self, *args):
13008 r"""
13009 resize(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type new_size)
13010 resize(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type new_size, PCB_FIELD x)
13011 """
13012 return _pcbnew.PCB_FIELDS_resize(self, *args)
13013
13014 def insert(self, *args):
13015 r"""
13016 insert(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos, PCB_FIELD x) -> std::deque< PCB_FIELD * >::iterator
13017 insert(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos, std::deque< PCB_FIELD * >::size_type n, PCB_FIELD x)
13018 """
13019 return _pcbnew.PCB_FIELDS_insert(self, *args)
13020
13021 def pop_front(self):
13022 r"""pop_front(PCB_FIELDS self)"""
13023 return _pcbnew.PCB_FIELDS_pop_front(self)
13024
13025 def push_front(self, x):
13026 r"""push_front(PCB_FIELDS self, PCB_FIELD x)"""
13027 return _pcbnew.PCB_FIELDS_push_front(self, x)
13028 __swig_destroy__ = _pcbnew.delete_PCB_FIELDS
13029
13030# Register PCB_FIELDS in _pcbnew:
13031_pcbnew.PCB_FIELDS_swigregister(PCB_FIELDS)
13032PAD_SHAPE_CIRCLE = _pcbnew.PAD_SHAPE_CIRCLE
13033
13034PAD_SHAPE_RECTANGLE = _pcbnew.PAD_SHAPE_RECTANGLE
13035
13036PAD_SHAPE_OVAL = _pcbnew.PAD_SHAPE_OVAL
13037
13038PAD_SHAPE_TRAPEZOID = _pcbnew.PAD_SHAPE_TRAPEZOID
13039
13040PAD_SHAPE_ROUNDRECT = _pcbnew.PAD_SHAPE_ROUNDRECT
13041
13042PAD_SHAPE_CHAMFERED_RECT = _pcbnew.PAD_SHAPE_CHAMFERED_RECT
13043
13044PAD_SHAPE_CUSTOM = _pcbnew.PAD_SHAPE_CUSTOM
13045
13046PAD_DRILL_SHAPE_UNDEFINED = _pcbnew.PAD_DRILL_SHAPE_UNDEFINED
13047
13048PAD_DRILL_SHAPE_CIRCLE = _pcbnew.PAD_DRILL_SHAPE_CIRCLE
13049
13050PAD_DRILL_SHAPE_OBLONG = _pcbnew.PAD_DRILL_SHAPE_OBLONG
13051
13052PAD_ATTRIB_PTH = _pcbnew.PAD_ATTRIB_PTH
13053
13054PAD_ATTRIB_SMD = _pcbnew.PAD_ATTRIB_SMD
13055
13056PAD_ATTRIB_CONN = _pcbnew.PAD_ATTRIB_CONN
13057
13058PAD_ATTRIB_NPTH = _pcbnew.PAD_ATTRIB_NPTH
13059
13060PAD_PROP_NONE = _pcbnew.PAD_PROP_NONE
13061
13062PAD_PROP_BGA = _pcbnew.PAD_PROP_BGA
13063
13064PAD_PROP_FIDUCIAL_GLBL = _pcbnew.PAD_PROP_FIDUCIAL_GLBL
13065
13066PAD_PROP_FIDUCIAL_LOCAL = _pcbnew.PAD_PROP_FIDUCIAL_LOCAL
13067
13068PAD_PROP_TESTPOINT = _pcbnew.PAD_PROP_TESTPOINT
13069
13070PAD_PROP_HEATSINK = _pcbnew.PAD_PROP_HEATSINK
13071
13072PAD_PROP_CASTELLATED = _pcbnew.PAD_PROP_CASTELLATED
13073
13074PAD_PROP_MECHANICAL = _pcbnew.PAD_PROP_MECHANICAL
13075
13077 r"""Proxy of C++ PADSTACK class."""
13078
13079 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13080 __repr__ = _swig_repr
13081 TYPE_NORMAL = _pcbnew.PADSTACK_TYPE_NORMAL
13082
13083 TYPE_VIA = _pcbnew.PADSTACK_TYPE_VIA
13084
13085 TYPE_MOUNTING = _pcbnew.PADSTACK_TYPE_MOUNTING
13086
13087 MODE_NORMAL = _pcbnew.PADSTACK_MODE_NORMAL
13088
13089 MODE_FRONT_INNER_BACK = _pcbnew.PADSTACK_MODE_FRONT_INNER_BACK
13090
13091 MODE_CUSTOM = _pcbnew.PADSTACK_MODE_CUSTOM
13092
13093 ALL_LAYERS = _pcbnew.PADSTACK_ALL_LAYERS
13094
13095 INNER_LAYERS = _pcbnew.PADSTACK_INNER_LAYERS
13096
13097 UNCONNECTED_LAYER_MODE_KEEP_ALL = _pcbnew.PADSTACK_UNCONNECTED_LAYER_MODE_KEEP_ALL
13098
13099 UNCONNECTED_LAYER_MODE_REMOVE_ALL = _pcbnew.PADSTACK_UNCONNECTED_LAYER_MODE_REMOVE_ALL
13100
13101 UNCONNECTED_LAYER_MODE_REMOVE_EXCEPT_START_AND_END = _pcbnew.PADSTACK_UNCONNECTED_LAYER_MODE_REMOVE_EXCEPT_START_AND_END
13102
13103 CUSTOM_SHAPE_ZONE_MODE_OUTLINE = _pcbnew.PADSTACK_CUSTOM_SHAPE_ZONE_MODE_OUTLINE
13104
13105 CUSTOM_SHAPE_ZONE_MODE_CONVEXHULL = _pcbnew.PADSTACK_CUSTOM_SHAPE_ZONE_MODE_CONVEXHULL
13106
13107 __swig_destroy__ = _pcbnew.delete_PADSTACK
13108
13109 def __init__(self, *args):
13110 r"""
13111 __init__(PADSTACK self, BOARD_ITEM aParent) -> PADSTACK
13112 __init__(PADSTACK self, PADSTACK aOther) -> PADSTACK
13113 """
13114 _pcbnew.PADSTACK_swiginit(self, _pcbnew.new_PADSTACK(*args))
13115
13116 def __eq__(self, aOther):
13117 r"""__eq__(PADSTACK self, PADSTACK aOther) -> bool"""
13118 return _pcbnew.PADSTACK___eq__(self, aOther)
13119
13120 def __ne__(self, aOther):
13121 r"""__ne__(PADSTACK self, PADSTACK aOther) -> bool"""
13122 return _pcbnew.PADSTACK___ne__(self, aOther)
13123
13124 def Serialize(self, aContainer):
13125 r"""Serialize(PADSTACK self, google::protobuf::Any & aContainer)"""
13126 return _pcbnew.PADSTACK_Serialize(self, aContainer)
13127
13128 def Deserialize(self, aContainer):
13129 r"""Deserialize(PADSTACK self, google::protobuf::Any const & aContainer) -> bool"""
13130 return _pcbnew.PADSTACK_Deserialize(self, aContainer)
13131
13132 @staticmethod
13133 def Compare(aPadstackRef, aPadstackCmp):
13134 r"""Compare(PADSTACK aPadstackRef, PADSTACK aPadstackCmp) -> int"""
13135 return _pcbnew.PADSTACK_Compare(aPadstackRef, aPadstackCmp)
13136
13137 def Similarity(self, aOther):
13138 r"""Similarity(PADSTACK self, PADSTACK aOther) -> double"""
13139 return _pcbnew.PADSTACK_Similarity(self, aOther)
13140
13141 def LayerSet(self, *args):
13142 r"""
13143 LayerSet(PADSTACK self) -> LSET
13144 LayerSet(PADSTACK self) -> LSET
13145 """
13146 return _pcbnew.PADSTACK_LayerSet(self, *args)
13147
13148 def SetLayerSet(self, aSet):
13149 r"""SetLayerSet(PADSTACK self, LSET aSet)"""
13150 return _pcbnew.PADSTACK_SetLayerSet(self, aSet)
13151
13152 def FlipLayers(self, aCopperLayerCount):
13153 r"""FlipLayers(PADSTACK self, int aCopperLayerCount)"""
13154 return _pcbnew.PADSTACK_FlipLayers(self, aCopperLayerCount)
13155
13156 def StartLayer(self):
13157 r"""StartLayer(PADSTACK self) -> PCB_LAYER_ID"""
13158 return _pcbnew.PADSTACK_StartLayer(self)
13159
13160 def EndLayer(self):
13161 r"""EndLayer(PADSTACK self) -> PCB_LAYER_ID"""
13162 return _pcbnew.PADSTACK_EndLayer(self)
13163
13164 def Mode(self):
13165 r"""Mode(PADSTACK self) -> PADSTACK::MODE"""
13166 return _pcbnew.PADSTACK_Mode(self)
13167
13168 def SetMode(self, aMode):
13169 r"""SetMode(PADSTACK self, PADSTACK::MODE aMode)"""
13170 return _pcbnew.PADSTACK_SetMode(self, aMode)
13171
13172 def Name(self):
13173 r"""Name(PADSTACK self) -> wxString"""
13174 return _pcbnew.PADSTACK_Name(self)
13175
13177 r"""GetOrientation(PADSTACK self) -> EDA_ANGLE"""
13178 return _pcbnew.PADSTACK_GetOrientation(self)
13179
13180 def SetOrientation(self, aAngle):
13181 r"""SetOrientation(PADSTACK self, EDA_ANGLE aAngle)"""
13182 return _pcbnew.PADSTACK_SetOrientation(self, aAngle)
13183
13184 def Drill(self, *args):
13185 r"""
13186 Drill(PADSTACK self) -> PADSTACK::DRILL_PROPS
13187 Drill(PADSTACK self) -> PADSTACK::DRILL_PROPS const &
13188 """
13189 return _pcbnew.PADSTACK_Drill(self, *args)
13190
13191 def SecondaryDrill(self, *args):
13192 r"""
13193 SecondaryDrill(PADSTACK self) -> PADSTACK::DRILL_PROPS
13194 SecondaryDrill(PADSTACK self) -> PADSTACK::DRILL_PROPS const &
13195 """
13196 return _pcbnew.PADSTACK_SecondaryDrill(self, *args)
13197
13199 r"""UnconnectedLayerMode(PADSTACK self) -> PADSTACK::UNCONNECTED_LAYER_MODE"""
13200 return _pcbnew.PADSTACK_UnconnectedLayerMode(self)
13201
13202 def SetUnconnectedLayerMode(self, aMode):
13203 r"""SetUnconnectedLayerMode(PADSTACK self, PADSTACK::UNCONNECTED_LAYER_MODE aMode)"""
13204 return _pcbnew.PADSTACK_SetUnconnectedLayerMode(self, aMode)
13205
13206 def CopperLayer(self, *args):
13207 r"""
13208 CopperLayer(PADSTACK self, PCB_LAYER_ID aLayer) -> PADSTACK::COPPER_LAYER_PROPS
13209 CopperLayer(PADSTACK self, PCB_LAYER_ID aLayer) -> PADSTACK::COPPER_LAYER_PROPS const &
13210 """
13211 return _pcbnew.PADSTACK_CopperLayer(self, *args)
13212
13213 def FrontOuterLayers(self, *args):
13214 r"""
13215 FrontOuterLayers(PADSTACK self) -> PADSTACK::MASK_LAYER_PROPS
13216 FrontOuterLayers(PADSTACK self) -> PADSTACK::MASK_LAYER_PROPS const &
13217 """
13218 return _pcbnew.PADSTACK_FrontOuterLayers(self, *args)
13219
13220 def BackOuterLayers(self, *args):
13221 r"""
13222 BackOuterLayers(PADSTACK self) -> PADSTACK::MASK_LAYER_PROPS
13223 BackOuterLayers(PADSTACK self) -> PADSTACK::MASK_LAYER_PROPS const &
13224 """
13225 return _pcbnew.PADSTACK_BackOuterLayers(self, *args)
13226
13227 def IsTented(self, aSide):
13228 r"""IsTented(PADSTACK self, PCB_LAYER_ID aSide) -> std::optional< bool >"""
13229 return _pcbnew.PADSTACK_IsTented(self, aSide)
13230
13232 r"""CustomShapeInZoneMode(PADSTACK self) -> PADSTACK::CUSTOM_SHAPE_ZONE_MODE"""
13233 return _pcbnew.PADSTACK_CustomShapeInZoneMode(self)
13234
13236 r"""SetCustomShapeInZoneMode(PADSTACK self, PADSTACK::CUSTOM_SHAPE_ZONE_MODE aM)"""
13237 return _pcbnew.PADSTACK_SetCustomShapeInZoneMode(self, aM)
13238
13239 def ForEachUniqueLayer(self, aMethod):
13240 r"""ForEachUniqueLayer(PADSTACK self, std::function< void (PCB_LAYER_ID) > const & aMethod)"""
13241 return _pcbnew.PADSTACK_ForEachUniqueLayer(self, aMethod)
13242
13243 def UniqueLayers(self):
13244 r"""UniqueLayers(PADSTACK self) -> base_seqVect"""
13245 return _pcbnew.PADSTACK_UniqueLayers(self)
13246
13247 def EffectiveLayerFor(self, aLayer):
13248 r"""EffectiveLayerFor(PADSTACK self, PCB_LAYER_ID aLayer) -> PCB_LAYER_ID"""
13249 return _pcbnew.PADSTACK_EffectiveLayerFor(self, aLayer)
13250
13251 def RelevantShapeLayers(self, aOther):
13252 r"""RelevantShapeLayers(PADSTACK self, PADSTACK aOther) -> LSET"""
13253 return _pcbnew.PADSTACK_RelevantShapeLayers(self, aOther)
13254
13255 def Shape(self, aLayer):
13256 r"""Shape(PADSTACK self, PCB_LAYER_ID aLayer) -> PAD_SHAPE"""
13257 return _pcbnew.PADSTACK_Shape(self, aLayer)
13258
13259 def SetShape(self, aShape, aLayer):
13260 r"""SetShape(PADSTACK self, PAD_SHAPE aShape, PCB_LAYER_ID aLayer)"""
13261 return _pcbnew.PADSTACK_SetShape(self, aShape, aLayer)
13262
13263 def SetSize(self, aSize, aLayer):
13264 r"""SetSize(PADSTACK self, VECTOR2I aSize, PCB_LAYER_ID aLayer)"""
13265 return _pcbnew.PADSTACK_SetSize(self, aSize, aLayer)
13266
13267 def Size(self, aLayer):
13268 r"""Size(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
13269 return _pcbnew.PADSTACK_Size(self, aLayer)
13270
13271 def DrillShape(self):
13272 r"""DrillShape(PADSTACK self) -> PAD_DRILL_SHAPE"""
13273 return _pcbnew.PADSTACK_DrillShape(self)
13274
13275 def SetDrillShape(self, aShape):
13276 r"""SetDrillShape(PADSTACK self, PAD_DRILL_SHAPE aShape)"""
13277 return _pcbnew.PADSTACK_SetDrillShape(self, aShape)
13278
13279 def Offset(self, *args):
13280 r"""
13281 Offset(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I
13282 Offset(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I
13283 """
13284 return _pcbnew.PADSTACK_Offset(self, *args)
13285
13286 def AnchorShape(self, aLayer):
13287 r"""AnchorShape(PADSTACK self, PCB_LAYER_ID aLayer) -> PAD_SHAPE"""
13288 return _pcbnew.PADSTACK_AnchorShape(self, aLayer)
13289
13290 def SetAnchorShape(self, aShape, aLayer):
13291 r"""SetAnchorShape(PADSTACK self, PAD_SHAPE aShape, PCB_LAYER_ID aLayer)"""
13292 return _pcbnew.PADSTACK_SetAnchorShape(self, aShape, aLayer)
13293
13294 def TrapezoidDeltaSize(self, *args):
13295 r"""
13296 TrapezoidDeltaSize(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I
13297 TrapezoidDeltaSize(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I
13298 """
13299 return _pcbnew.PADSTACK_TrapezoidDeltaSize(self, *args)
13300
13301 def RoundRectRadiusRatio(self, aLayer):
13302 r"""RoundRectRadiusRatio(PADSTACK self, PCB_LAYER_ID aLayer) -> double"""
13303 return _pcbnew.PADSTACK_RoundRectRadiusRatio(self, aLayer)
13304
13305 def SetRoundRectRadiusRatio(self, aRatio, aLayer):
13306 r"""SetRoundRectRadiusRatio(PADSTACK self, double aRatio, PCB_LAYER_ID aLayer)"""
13307 return _pcbnew.PADSTACK_SetRoundRectRadiusRatio(self, aRatio, aLayer)
13308
13309 def RoundRectRadius(self, aLayer):
13310 r"""RoundRectRadius(PADSTACK self, PCB_LAYER_ID aLayer) -> int"""
13311 return _pcbnew.PADSTACK_RoundRectRadius(self, aLayer)
13312
13313 def SetRoundRectRadius(self, aRadius, aLayer):
13314 r"""SetRoundRectRadius(PADSTACK self, double aRadius, PCB_LAYER_ID aLayer)"""
13315 return _pcbnew.PADSTACK_SetRoundRectRadius(self, aRadius, aLayer)
13316
13317 def ChamferRatio(self, aLayer):
13318 r"""ChamferRatio(PADSTACK self, PCB_LAYER_ID aLayer) -> double"""
13319 return _pcbnew.PADSTACK_ChamferRatio(self, aLayer)
13320
13321 def SetChamferRatio(self, aRatio, aLayer):
13322 r"""SetChamferRatio(PADSTACK self, double aRatio, PCB_LAYER_ID aLayer)"""
13323 return _pcbnew.PADSTACK_SetChamferRatio(self, aRatio, aLayer)
13324
13325 def ChamferPositions(self, *args):
13326 r"""
13327 ChamferPositions(PADSTACK self, PCB_LAYER_ID aLayer) -> int
13328 ChamferPositions(PADSTACK self, PCB_LAYER_ID aLayer) -> int const &
13329 """
13330 return _pcbnew.PADSTACK_ChamferPositions(self, *args)
13331
13332 def SetChamferPositions(self, aPositions, aLayer):
13333 r"""SetChamferPositions(PADSTACK self, int aPositions, PCB_LAYER_ID aLayer)"""
13334 return _pcbnew.PADSTACK_SetChamferPositions(self, aPositions, aLayer)
13335
13336 def Clearance(self, *args):
13337 r"""
13338 Clearance(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13339 Clearance(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13340 """
13341 return _pcbnew.PADSTACK_Clearance(self, *args)
13342
13343 def SolderMaskMargin(self, *args):
13344 r"""
13345 SolderMaskMargin(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13346 SolderMaskMargin(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13347 """
13348 return _pcbnew.PADSTACK_SolderMaskMargin(self, *args)
13349
13350 def SolderPasteMargin(self, *args):
13351 r"""
13352 SolderPasteMargin(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13353 SolderPasteMargin(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13354 """
13355 return _pcbnew.PADSTACK_SolderPasteMargin(self, *args)
13356
13357 def SolderPasteMarginRatio(self, *args):
13358 r"""
13359 SolderPasteMarginRatio(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< double >
13360 SolderPasteMarginRatio(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< double > const
13361 """
13362 return _pcbnew.PADSTACK_SolderPasteMarginRatio(self, *args)
13363
13364 def ZoneConnection(self, *args):
13365 r"""
13366 ZoneConnection(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< ZONE_CONNECTION >
13367 ZoneConnection(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< ZONE_CONNECTION > const
13368 """
13369 return _pcbnew.PADSTACK_ZoneConnection(self, *args)
13370
13371 def ThermalSpokeWidth(self, *args):
13372 r"""
13373 ThermalSpokeWidth(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13374 ThermalSpokeWidth(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13375 """
13376 return _pcbnew.PADSTACK_ThermalSpokeWidth(self, *args)
13377
13378 def ThermalGap(self, *args):
13379 r"""
13380 ThermalGap(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13381 ThermalGap(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13382 """
13383 return _pcbnew.PADSTACK_ThermalGap(self, *args)
13384
13385 def DefaultThermalSpokeAngleForShape(self, aLayer=F_Cu):
13386 r"""DefaultThermalSpokeAngleForShape(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> EDA_ANGLE"""
13387 return _pcbnew.PADSTACK_DefaultThermalSpokeAngleForShape(self, aLayer)
13388
13389 def ThermalSpokeAngle(self, aLayer=F_Cu):
13390 r"""ThermalSpokeAngle(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> EDA_ANGLE"""
13391 return _pcbnew.PADSTACK_ThermalSpokeAngle(self, aLayer)
13392
13393 def SetThermalSpokeAngle(self, aAngle, aLayer=F_Cu):
13394 r"""SetThermalSpokeAngle(PADSTACK self, EDA_ANGLE aAngle, PCB_LAYER_ID aLayer=F_Cu)"""
13395 return _pcbnew.PADSTACK_SetThermalSpokeAngle(self, aAngle, aLayer)
13396
13397 def Primitives(self, *args):
13398 r"""
13399 Primitives(PADSTACK self, PCB_LAYER_ID aLayer) -> std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > >
13400 Primitives(PADSTACK self, PCB_LAYER_ID aLayer) -> std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const &
13401 """
13402 return _pcbnew.PADSTACK_Primitives(self, *args)
13403
13404 def AddPrimitive(self, aShape, aLayer):
13405 r"""AddPrimitive(PADSTACK self, PCB_SHAPE aShape, PCB_LAYER_ID aLayer)"""
13406 return _pcbnew.PADSTACK_AddPrimitive(self, aShape, aLayer)
13407
13408 def AppendPrimitives(self, aPrimitivesList, aLayer):
13409 r"""AppendPrimitives(PADSTACK self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList, PCB_LAYER_ID aLayer)"""
13410 return _pcbnew.PADSTACK_AppendPrimitives(self, aPrimitivesList, aLayer)
13411
13412 def ReplacePrimitives(self, aPrimitivesList, aLayer):
13413 r"""ReplacePrimitives(PADSTACK self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList, PCB_LAYER_ID aLayer)"""
13414 return _pcbnew.PADSTACK_ReplacePrimitives(self, aPrimitivesList, aLayer)
13415
13416 def ClearPrimitives(self, aLayer):
13417 r"""ClearPrimitives(PADSTACK self, PCB_LAYER_ID aLayer)"""
13418 return _pcbnew.PADSTACK_ClearPrimitives(self, aLayer)
13419
13420# Register PADSTACK in _pcbnew:
13421_pcbnew.PADSTACK_swigregister(PADSTACK)
13423 r"""Proxy of C++ PAD class."""
13424
13425 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13426 __repr__ = _swig_repr
13427
13428 def __init__(self, *args):
13429 r"""
13430 __init__(PAD self, FOOTPRINT parent) -> PAD
13431 __init__(PAD self, PAD aPad) -> PAD
13432 """
13433 _pcbnew.PAD_swiginit(self, _pcbnew.new_PAD(*args))
13434
13435 def Serialize(self, aContainer):
13436 r"""Serialize(PAD self, google::protobuf::Any & aContainer)"""
13437 return _pcbnew.PAD_Serialize(self, aContainer)
13438
13439 def Deserialize(self, aContainer):
13440 r"""Deserialize(PAD self, google::protobuf::Any const & aContainer) -> bool"""
13441 return _pcbnew.PAD_Deserialize(self, aContainer)
13442
13443 @staticmethod
13444 def PTHMask():
13445 r"""PTHMask() -> LSET"""
13446 return _pcbnew.PAD_PTHMask()
13447
13448 @staticmethod
13449 def SMDMask():
13450 r"""SMDMask() -> LSET"""
13451 return _pcbnew.PAD_SMDMask()
13452
13453 @staticmethod
13455 r"""ConnSMDMask() -> LSET"""
13456 return _pcbnew.PAD_ConnSMDMask()
13457
13458 @staticmethod
13460 r"""UnplatedHoleMask() -> LSET"""
13461 return _pcbnew.PAD_UnplatedHoleMask()
13462
13463 @staticmethod
13465 r"""ApertureMask() -> LSET"""
13466 return _pcbnew.PAD_ApertureMask()
13467
13468 @staticmethod
13469 def ClassOf(aItem):
13470 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13471 return _pcbnew.PAD_ClassOf(aItem)
13472
13473 def ImportSettingsFrom(self, aMasterPad):
13474 r"""ImportSettingsFrom(PAD self, PAD aMasterPad)"""
13475 return _pcbnew.PAD_ImportSettingsFrom(self, aMasterPad)
13476
13477 def IsFlipped(self):
13478 r"""IsFlipped(PAD self) -> bool"""
13479 return _pcbnew.PAD_IsFlipped(self)
13480
13481 def SetNumber(self, aNumber):
13482 r"""SetNumber(PAD self, wxString aNumber)"""
13483 return _pcbnew.PAD_SetNumber(self, aNumber)
13484
13485 def GetNumber(self):
13486 r"""GetNumber(PAD self) -> wxString"""
13487 return _pcbnew.PAD_GetNumber(self)
13488
13489 def CanHaveNumber(self):
13490 r"""CanHaveNumber(PAD self) -> bool"""
13491 return _pcbnew.PAD_CanHaveNumber(self)
13492
13493 def SetPinFunction(self, aName):
13494 r"""SetPinFunction(PAD self, wxString aName)"""
13495 return _pcbnew.PAD_SetPinFunction(self, aName)
13496
13498 r"""GetPinFunction(PAD self) -> wxString"""
13499 return _pcbnew.PAD_GetPinFunction(self)
13500
13501 def SetPinType(self, aType):
13502 r"""SetPinType(PAD self, wxString aType)"""
13503 return _pcbnew.PAD_SetPinType(self, aType)
13504
13505 def GetPinType(self):
13506 r"""GetPinType(PAD self) -> wxString"""
13507 return _pcbnew.PAD_GetPinType(self)
13508
13509 def SameLogicalPadAs(self, aOther):
13510 r"""SameLogicalPadAs(PAD self, PAD aOther) -> bool"""
13511 return _pcbnew.PAD_SameLogicalPadAs(self, aOther)
13512
13513 def SharesNetTieGroup(self, aOther):
13514 r"""SharesNetTieGroup(PAD self, PAD aOther) -> bool"""
13515 return _pcbnew.PAD_SharesNetTieGroup(self, aOther)
13516
13518 r"""IsNoConnectPad(PAD self) -> bool"""
13519 return _pcbnew.PAD_IsNoConnectPad(self)
13520
13521 def IsFreePad(self):
13522 r"""IsFreePad(PAD self) -> bool"""
13523 return _pcbnew.PAD_IsFreePad(self)
13524
13525 def SetFrontShape(self, aShape):
13526 r"""SetFrontShape(PAD self, PAD_SHAPE aShape)"""
13527 return _pcbnew.PAD_SetFrontShape(self, aShape)
13528
13529 def GetFrontShape(self):
13530 r"""GetFrontShape(PAD self) -> PAD_SHAPE"""
13531 return _pcbnew.PAD_GetFrontShape(self)
13532
13533 def GetAnchorPadShape(self, aLayer):
13534 r"""GetAnchorPadShape(PAD self, PCB_LAYER_ID aLayer) -> PAD_SHAPE"""
13535 return _pcbnew.PAD_GetAnchorPadShape(self, aLayer)
13536
13538 r"""GetCustomShapeInZoneOpt(PAD self) -> PADSTACK::CUSTOM_SHAPE_ZONE_MODE"""
13539 return _pcbnew.PAD_GetCustomShapeInZoneOpt(self)
13540
13541 def SetCustomShapeInZoneOpt(self, aOption):
13542 r"""SetCustomShapeInZoneOpt(PAD self, PADSTACK::CUSTOM_SHAPE_ZONE_MODE aOption)"""
13543 return _pcbnew.PAD_SetCustomShapeInZoneOpt(self, aOption)
13544
13545 def SetAnchorPadShape(self, aLayer, aShape):
13546 r"""SetAnchorPadShape(PAD self, PCB_LAYER_ID aLayer, PAD_SHAPE aShape)"""
13547 return _pcbnew.PAD_SetAnchorPadShape(self, aLayer, aShape)
13548
13549 def SetY(self, y):
13550 r"""SetY(PAD self, int y)"""
13551 return _pcbnew.PAD_SetY(self, y)
13552
13553 def SetX(self, x):
13554 r"""SetX(PAD self, int x)"""
13555 return _pcbnew.PAD_SetX(self, x)
13556
13557 def SetSizeX(self, aX):
13558 r"""SetSizeX(PAD self, int const aX)"""
13559 return _pcbnew.PAD_SetSizeX(self, aX)
13560
13561 def GetSizeX(self):
13562 r"""GetSizeX(PAD self) -> int"""
13563 return _pcbnew.PAD_GetSizeX(self)
13564
13565 def SetSizeY(self, aY):
13566 r"""SetSizeY(PAD self, int const aY)"""
13567 return _pcbnew.PAD_SetSizeY(self, aY)
13568
13569 def GetSizeY(self):
13570 r"""GetSizeY(PAD self) -> int"""
13571 return _pcbnew.PAD_GetSizeY(self)
13572
13573 def SetDrillSize(self, aSize):
13574 r"""SetDrillSize(PAD self, VECTOR2I aSize)"""
13575 return _pcbnew.PAD_SetDrillSize(self, aSize)
13576
13577 def GetDrillSize(self):
13578 r"""GetDrillSize(PAD self) -> VECTOR2I"""
13579 return _pcbnew.PAD_GetDrillSize(self)
13580
13581 def SetDrillSizeX(self, aX):
13582 r"""SetDrillSizeX(PAD self, int const aX)"""
13583 return _pcbnew.PAD_SetDrillSizeX(self, aX)
13584
13585 def GetDrillSizeX(self):
13586 r"""GetDrillSizeX(PAD self) -> int"""
13587 return _pcbnew.PAD_GetDrillSizeX(self)
13588
13589 def SetDrillSizeY(self, aY):
13590 r"""SetDrillSizeY(PAD self, int const aY)"""
13591 return _pcbnew.PAD_SetDrillSizeY(self, aY)
13592
13593 def GetDrillSizeY(self):
13594 r"""GetDrillSizeY(PAD self) -> int"""
13595 return _pcbnew.PAD_GetDrillSizeY(self)
13596
13597 def Padstack(self, *args):
13598 r"""
13599 Padstack(PAD self) -> PADSTACK
13600 Padstack(PAD self) -> PADSTACK
13601 """
13602 return _pcbnew.PAD_Padstack(self, *args)
13603
13604 def SetPadstack(self, aPadstack):
13605 r"""SetPadstack(PAD self, PADSTACK aPadstack)"""
13606 return _pcbnew.PAD_SetPadstack(self, aPadstack)
13607
13608 def AddPrimitivePoly(self, *args):
13609 r"""
13610 AddPrimitivePoly(PAD self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aPoly, int aThickness, bool aFilled)
13611 AddPrimitivePoly(PAD self, PCB_LAYER_ID aLayer, VECTOR_VECTOR2I aPoly, int aThickness, bool aFilled)
13612 """
13613 return _pcbnew.PAD_AddPrimitivePoly(self, *args)
13614
13615 def MergePrimitivesAsPolygon(self, aLayer, aMergedPolygon, aErrorLoc=ERROR_INSIDE):
13616 r"""MergePrimitivesAsPolygon(PAD self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aMergedPolygon, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
13617 return _pcbnew.PAD_MergePrimitivesAsPolygon(self, aLayer, aMergedPolygon, aErrorLoc)
13618
13619 def DeletePrimitivesList(self, aLayer=UNDEFINED_LAYER):
13620 r"""DeletePrimitivesList(PAD self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
13621 return _pcbnew.PAD_DeletePrimitivesList(self, aLayer)
13622
13623 def GetPrimitives(self, aLayer):
13624 r"""GetPrimitives(PAD self, PCB_LAYER_ID aLayer) -> std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const &"""
13625 return _pcbnew.PAD_GetPrimitives(self, aLayer)
13626
13627 def FlipPrimitives(self, aFlipDirection):
13628 r"""FlipPrimitives(PAD self, FLIP_DIRECTION aFlipDirection)"""
13629 return _pcbnew.PAD_FlipPrimitives(self, aFlipDirection)
13630
13631 def ReplacePrimitives(self, aLayer, aPrimitivesList):
13632 r"""ReplacePrimitives(PAD self, PCB_LAYER_ID aLayer, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
13633 return _pcbnew.PAD_ReplacePrimitives(self, aLayer, aPrimitivesList)
13634
13635 def AppendPrimitives(self, aLayer, aPrimitivesList):
13636 r"""AppendPrimitives(PAD self, PCB_LAYER_ID aLayer, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
13637 return _pcbnew.PAD_AppendPrimitives(self, aLayer, aPrimitivesList)
13638
13639 def AddPrimitiveShape(self, aLayer, aPrimitive):
13640 r"""AddPrimitiveShape(PAD self, PCB_LAYER_ID aLayer, PCB_SHAPE aPrimitive)"""
13641 return _pcbnew.PAD_AddPrimitiveShape(self, aLayer, aPrimitive)
13642
13643 def SetOrientation(self, aAngle):
13644 r"""SetOrientation(PAD self, EDA_ANGLE aAngle)"""
13645 return _pcbnew.PAD_SetOrientation(self, aAngle)
13646
13647 def SetFPRelativeOrientation(self, aAngle):
13648 r"""SetFPRelativeOrientation(PAD self, EDA_ANGLE aAngle)"""
13649 return _pcbnew.PAD_SetFPRelativeOrientation(self, aAngle)
13650
13652 r"""GetOrientation(PAD self) -> EDA_ANGLE"""
13653 return _pcbnew.PAD_GetOrientation(self)
13654
13656 r"""GetFPRelativeOrientation(PAD self) -> EDA_ANGLE"""
13657 return _pcbnew.PAD_GetFPRelativeOrientation(self)
13658
13659 def SetOrientationDegrees(self, aOrientation):
13660 r"""SetOrientationDegrees(PAD self, double aOrientation)"""
13661 return _pcbnew.PAD_SetOrientationDegrees(self, aOrientation)
13662
13664 r"""GetOrientationDegrees(PAD self) -> double"""
13665 return _pcbnew.PAD_GetOrientationDegrees(self)
13666
13667 def SetDrillShape(self, aShape):
13668 r"""SetDrillShape(PAD self, PAD_DRILL_SHAPE aShape)"""
13669 return _pcbnew.PAD_SetDrillShape(self, aShape)
13670
13671 def GetDrillShape(self):
13672 r"""GetDrillShape(PAD self) -> PAD_DRILL_SHAPE"""
13673 return _pcbnew.PAD_GetDrillShape(self)
13674
13675 def IsDirty(self):
13676 r"""IsDirty(PAD self) -> bool"""
13677 return _pcbnew.PAD_IsDirty(self)
13678
13679 def SetDirty(self):
13680 r"""SetDirty(PAD self)"""
13681 return _pcbnew.PAD_SetDirty(self)
13682
13683 def SetAttribute(self, aAttribute):
13684 r"""SetAttribute(PAD self, PAD_ATTRIB aAttribute)"""
13685 return _pcbnew.PAD_SetAttribute(self, aAttribute)
13686
13687 def GetAttribute(self):
13688 r"""GetAttribute(PAD self) -> PAD_ATTRIB"""
13689 return _pcbnew.PAD_GetAttribute(self)
13690
13691 def SetProperty(self, aProperty):
13692 r"""SetProperty(PAD self, PAD_PROP aProperty)"""
13693 return _pcbnew.PAD_SetProperty(self, aProperty)
13694
13695 def GetProperty(self):
13696 r"""GetProperty(PAD self) -> PAD_PROP"""
13697 return _pcbnew.PAD_GetProperty(self)
13698
13699 def IsAperturePad(self):
13700 r"""IsAperturePad(PAD self) -> bool"""
13701 return _pcbnew.PAD_IsAperturePad(self)
13702
13703 def SetPadToDieLength(self, aLength):
13704 r"""SetPadToDieLength(PAD self, int aLength)"""
13705 return _pcbnew.PAD_SetPadToDieLength(self, aLength)
13706
13708 r"""GetPadToDieLength(PAD self) -> int"""
13709 return _pcbnew.PAD_GetPadToDieLength(self)
13710
13711 def SetLocalClearance(self, aClearance):
13712 r"""SetLocalClearance(PAD self, std::optional< int > aClearance)"""
13713 return _pcbnew.PAD_SetLocalClearance(self, aClearance)
13714
13716 r"""GetLocalSolderMaskMargin(PAD self) -> std::optional< int >"""
13717 return _pcbnew.PAD_GetLocalSolderMaskMargin(self)
13718
13719 def SetLocalSolderMaskMargin(self, aMargin):
13720 r"""SetLocalSolderMaskMargin(PAD self, std::optional< int > aMargin)"""
13721 return _pcbnew.PAD_SetLocalSolderMaskMargin(self, aMargin)
13722
13724 r"""GetLocalSolderPasteMargin(PAD self) -> std::optional< int >"""
13725 return _pcbnew.PAD_GetLocalSolderPasteMargin(self)
13726
13727 def SetLocalSolderPasteMargin(self, aMargin):
13728 r"""SetLocalSolderPasteMargin(PAD self, std::optional< int > aMargin)"""
13729 return _pcbnew.PAD_SetLocalSolderPasteMargin(self, aMargin)
13730
13732 r"""GetLocalSolderPasteMarginRatio(PAD self) -> std::optional< double >"""
13733 return _pcbnew.PAD_GetLocalSolderPasteMarginRatio(self)
13734
13736 r"""SetLocalSolderPasteMarginRatio(PAD self, std::optional< double > aRatio)"""
13737 return _pcbnew.PAD_SetLocalSolderPasteMarginRatio(self, aRatio)
13738
13739 def SetLocalZoneConnection(self, aType):
13740 r"""SetLocalZoneConnection(PAD self, ZONE_CONNECTION aType)"""
13741 return _pcbnew.PAD_SetLocalZoneConnection(self, aType)
13742
13744 r"""GetLocalZoneConnection(PAD self) -> ZONE_CONNECTION"""
13745 return _pcbnew.PAD_GetLocalZoneConnection(self)
13746
13747 def GetOwnClearance(self, aLayer, aSource=None):
13748 r"""GetOwnClearance(PAD self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
13749 return _pcbnew.PAD_GetOwnClearance(self, aLayer, aSource)
13750
13751 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc=ERROR_INSIDE, ignoreLineWidth=False):
13752 r"""TransformShapeToPolygon(PAD self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc=ERROR_INSIDE, bool ignoreLineWidth=False)"""
13753 return _pcbnew.PAD_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, ignoreLineWidth)
13754
13755 def TransformHoleToPolygon(self, aBuffer, aClearance, aError, aErrorLoc=ERROR_INSIDE):
13756 r"""TransformHoleToPolygon(PAD self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> bool"""
13757 return _pcbnew.PAD_TransformHoleToPolygon(self, aBuffer, aClearance, aError, aErrorLoc)
13758
13759 def GetEffectiveShape(self, *args):
13760 r"""GetEffectiveShape(PAD self, PCB_LAYER_ID aLayer, FLASHING flashPTHPads=DEFAULT) -> std::shared_ptr< SHAPE >"""
13761 return _pcbnew.PAD_GetEffectiveShape(self, *args)
13762
13763 def GetEffectivePolygon(self, aLayer, aErrorLoc=ERROR_INSIDE):
13764 r"""GetEffectivePolygon(PAD self, PCB_LAYER_ID aLayer, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> std::shared_ptr< SHAPE_POLY_SET > const"""
13765 return _pcbnew.PAD_GetEffectivePolygon(self, aLayer, aErrorLoc)
13766
13768 r"""GetBoundingRadius(PAD self) -> int"""
13769 return _pcbnew.PAD_GetBoundingRadius(self)
13770
13771 def GetLocalClearance(self, *args):
13772 r"""
13773 GetLocalClearance(PAD self) -> std::optional< int >
13774 GetLocalClearance(PAD self, wxString aSource) -> std::optional< int >
13775 """
13776 return _pcbnew.PAD_GetLocalClearance(self, *args)
13777
13778 def GetSolderMaskExpansion(self, aLayer):
13779 r"""GetSolderMaskExpansion(PAD self, PCB_LAYER_ID aLayer) -> int"""
13780 return _pcbnew.PAD_GetSolderMaskExpansion(self, aLayer)
13781
13782 def GetSolderPasteMargin(self, aLayer):
13783 r"""GetSolderPasteMargin(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
13784 return _pcbnew.PAD_GetSolderPasteMargin(self, aLayer)
13785
13786 def GetZoneConnectionOverrides(self, aSource=None):
13787 r"""GetZoneConnectionOverrides(PAD self, wxString aSource=None) -> ZONE_CONNECTION"""
13788 return _pcbnew.PAD_GetZoneConnectionOverrides(self, aSource)
13789
13790 def SetThermalSpokeWidth(self, aWidth):
13791 r"""SetThermalSpokeWidth(PAD self, int aWidth)"""
13792 return _pcbnew.PAD_SetThermalSpokeWidth(self, aWidth)
13793
13795 r"""GetThermalSpokeWidth(PAD self) -> int"""
13796 return _pcbnew.PAD_GetThermalSpokeWidth(self)
13797
13798 def GetLocalSpokeWidthOverride(self, aSource=None):
13799 r"""GetLocalSpokeWidthOverride(PAD self, wxString aSource=None) -> int"""
13800 return _pcbnew.PAD_GetLocalSpokeWidthOverride(self, aSource)
13801
13802 def SetThermalSpokeAngle(self, aAngle):
13803 r"""SetThermalSpokeAngle(PAD self, EDA_ANGLE aAngle)"""
13804 return _pcbnew.PAD_SetThermalSpokeAngle(self, aAngle)
13805
13807 r"""GetThermalSpokeAngle(PAD self) -> EDA_ANGLE"""
13808 return _pcbnew.PAD_GetThermalSpokeAngle(self)
13809
13811 r"""SetThermalSpokeAngleDegrees(PAD self, double aAngle)"""
13812 return _pcbnew.PAD_SetThermalSpokeAngleDegrees(self, aAngle)
13813
13815 r"""GetThermalSpokeAngleDegrees(PAD self) -> double"""
13816 return _pcbnew.PAD_GetThermalSpokeAngleDegrees(self)
13817
13818 def SetThermalGap(self, aGap):
13819 r"""SetThermalGap(PAD self, int aGap)"""
13820 return _pcbnew.PAD_SetThermalGap(self, aGap)
13821
13822 def GetThermalGap(self):
13823 r"""GetThermalGap(PAD self) -> int"""
13824 return _pcbnew.PAD_GetThermalGap(self)
13825
13826 def GetLocalThermalGapOverride(self, aSource=None):
13827 r"""GetLocalThermalGapOverride(PAD self, wxString aSource=None) -> int"""
13828 return _pcbnew.PAD_GetLocalThermalGapOverride(self, aSource)
13829
13830 def ShapePos(self, aLayer):
13831 r"""ShapePos(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
13832 return _pcbnew.PAD_ShapePos(self, aLayer)
13833
13834 def SetFrontRoundRectRadiusRatio(self, aRadiusScale):
13835 r"""SetFrontRoundRectRadiusRatio(PAD self, double aRadiusScale)"""
13836 return _pcbnew.PAD_SetFrontRoundRectRadiusRatio(self, aRadiusScale)
13837
13839 r"""GetFrontRoundRectRadiusRatio(PAD self) -> double"""
13840 return _pcbnew.PAD_GetFrontRoundRectRadiusRatio(self)
13841
13843 r"""GetSubRatsnest(PAD self) -> int"""
13844 return _pcbnew.PAD_GetSubRatsnest(self)
13845
13846 def SetSubRatsnest(self, aSubRatsnest):
13847 r"""SetSubRatsnest(PAD self, int aSubRatsnest)"""
13848 return _pcbnew.PAD_SetSubRatsnest(self, aSubRatsnest)
13849
13850 def SetRemoveUnconnected(self, aSet):
13851 r"""SetRemoveUnconnected(PAD self, bool aSet)"""
13852 return _pcbnew.PAD_SetRemoveUnconnected(self, aSet)
13853
13855 r"""GetRemoveUnconnected(PAD self) -> bool"""
13856 return _pcbnew.PAD_GetRemoveUnconnected(self)
13857
13858 def SetKeepTopBottom(self, aSet):
13859 r"""SetKeepTopBottom(PAD self, bool aSet)"""
13860 return _pcbnew.PAD_SetKeepTopBottom(self, aSet)
13861
13863 r"""GetKeepTopBottom(PAD self) -> bool"""
13864 return _pcbnew.PAD_GetKeepTopBottom(self)
13865
13866 def SetUnconnectedLayerMode(self, aMode):
13867 r"""SetUnconnectedLayerMode(PAD self, PADSTACK::UNCONNECTED_LAYER_MODE aMode)"""
13868 return _pcbnew.PAD_SetUnconnectedLayerMode(self, aMode)
13869
13871 r"""GetUnconnectedLayerMode(PAD self) -> PADSTACK::UNCONNECTED_LAYER_MODE"""
13872 return _pcbnew.PAD_GetUnconnectedLayerMode(self)
13873
13874 def ConditionallyFlashed(self, aLayer):
13875 r"""ConditionallyFlashed(PAD self, PCB_LAYER_ID aLayer) -> bool"""
13876 return _pcbnew.PAD_ConditionallyFlashed(self, aLayer)
13877
13878 def CanFlashLayer(self, aLayer):
13879 r"""CanFlashLayer(PAD self, int aLayer) -> bool"""
13880 return _pcbnew.PAD_CanFlashLayer(self, aLayer)
13881
13883 r"""GetPrincipalLayer(PAD self) -> PCB_LAYER_ID"""
13884 return _pcbnew.PAD_GetPrincipalLayer(self)
13885
13886 def FlashLayer(self, *args):
13887 r"""
13888 FlashLayer(PAD self, int aLayer, bool aOnlyCheckIfPermitted=False) -> bool
13889 FlashLayer(PAD self, LSET aLayers) -> bool
13890 """
13891 return _pcbnew.PAD_FlashLayer(self, *args)
13892
13893 def HitTest(self, *args):
13894 r"""
13895 HitTest(PAD self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13896 HitTest(PAD self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13897 """
13898 return _pcbnew.PAD_HitTest(self, *args)
13899
13900 def Recombine(self, aIsDryRun, aMaxError):
13901 r"""Recombine(PAD self, bool aIsDryRun, int aMaxError) -> std::vector< PCB_SHAPE *,std::allocator< PCB_SHAPE * > >"""
13902 return _pcbnew.PAD_Recombine(self, aIsDryRun, aMaxError)
13903
13904 @staticmethod
13905 def Compare(aPadRef, aPadCmp):
13906 r"""Compare(PAD aPadRef, PAD aPadCmp) -> int"""
13907 return _pcbnew.PAD_Compare(aPadRef, aPadCmp)
13908
13909 def ShowPadShape(self, aLayer):
13910 r"""ShowPadShape(PAD self, PCB_LAYER_ID aLayer) -> wxString"""
13911 return _pcbnew.PAD_ShowPadShape(self, aLayer)
13912
13913 def ShowPadAttr(self):
13914 r"""ShowPadAttr(PAD self) -> wxString"""
13915 return _pcbnew.PAD_ShowPadAttr(self)
13916
13917 def ClonePad(self):
13918 r"""ClonePad(PAD self) -> PAD"""
13919 return _pcbnew.PAD_ClonePad(self)
13920
13922 r"""BuildEffectiveShapes(PAD self)"""
13923 return _pcbnew.PAD_BuildEffectiveShapes(self)
13924
13925 def BuildEffectivePolygon(self, aErrorLoc=ERROR_INSIDE):
13926 r"""BuildEffectivePolygon(PAD self, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
13927 return _pcbnew.PAD_BuildEffectivePolygon(self, aErrorLoc)
13928
13929 def ViewGetLOD(self, aLayer, aView):
13930 r"""ViewGetLOD(PAD self, int aLayer, KIGFX::VIEW * aView) -> double"""
13931 return _pcbnew.PAD_ViewGetLOD(self, aLayer, aView)
13932
13934 r"""ClearZoneLayerOverrides(PAD self)"""
13935 return _pcbnew.PAD_ClearZoneLayerOverrides(self)
13936
13937 def GetZoneLayerOverride(self, aLayer):
13938 r"""GetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
13939 return _pcbnew.PAD_GetZoneLayerOverride(self, aLayer)
13940
13941 def SetZoneLayerOverride(self, aLayer, aOverride):
13942 r"""SetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
13943 return _pcbnew.PAD_SetZoneLayerOverride(self, aLayer, aOverride)
13944
13945 def CheckPad(self, aUnitsProvider, aErrorHandler):
13946 r"""CheckPad(PAD self, UNITS_PROVIDER aUnitsProvider, std::function< void (int,wxString const &) > const & aErrorHandler)"""
13947 return _pcbnew.PAD_CheckPad(self, aUnitsProvider, aErrorHandler)
13948
13949 def __eq__(self, *args):
13950 r"""
13951 __eq__(PAD self, PAD aOther) -> bool
13952 __eq__(PAD self, BOARD_ITEM aBoardItem) -> bool
13953 """
13954 return _pcbnew.PAD___eq__(self, *args)
13955
13956 def GetShape(self, *args):
13957 r"""
13958 GetShape(PAD self, PCB_LAYER_ID aLayer) -> PAD_SHAPE
13959 GetShape(PAD self) -> PAD_SHAPE
13960 """
13961 return _pcbnew.PAD_GetShape(self, *args)
13962
13963 def SetShape(self, *args):
13964 r"""
13965 SetShape(PAD self, PCB_LAYER_ID aLayer, PAD_SHAPE aShape)
13966 SetShape(PAD self, PAD_SHAPE aShape)
13967 """
13968 return _pcbnew.PAD_SetShape(self, *args)
13969
13970 def GetSize(self, *args):
13971 r"""
13972 GetSize(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I
13973 GetSize(PAD self) -> VECTOR2I
13974 """
13975 return _pcbnew.PAD_GetSize(self, *args)
13976
13977 def SetSize(self, *args):
13978 r"""
13979 SetSize(PAD self, PCB_LAYER_ID aLayer, VECTOR2I aSize)
13980 SetSize(PAD self, VECTOR2I aSize)
13981 """
13982 return _pcbnew.PAD_SetSize(self, *args)
13983
13984 def GetDelta(self, *args):
13985 r"""
13986 GetDelta(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I
13987 GetDelta(PAD self) -> VECTOR2I
13988 """
13989 return _pcbnew.PAD_GetDelta(self, *args)
13990
13991 def SetDelta(self, *args):
13992 r"""
13993 SetDelta(PAD self, PCB_LAYER_ID aLayer, VECTOR2I aSize)
13994 SetDelta(PAD self, VECTOR2I aSize)
13995 """
13996 return _pcbnew.PAD_SetDelta(self, *args)
13997
13998 def GetOffset(self, *args):
13999 r"""
14000 GetOffset(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I
14001 GetOffset(PAD self) -> VECTOR2I
14002 """
14003 return _pcbnew.PAD_GetOffset(self, *args)
14004
14005 def SetOffset(self, *args):
14006 r"""
14007 SetOffset(PAD self, PCB_LAYER_ID aLayer, VECTOR2I aOffset)
14008 SetOffset(PAD self, VECTOR2I aOffset)
14009 """
14010 return _pcbnew.PAD_SetOffset(self, *args)
14011
14013 r"""
14014 GetRoundRectCornerRadius(PAD self, PCB_LAYER_ID aLayer) -> int
14015 GetRoundRectCornerRadius(PAD self) -> double
14016 """
14017 return _pcbnew.PAD_GetRoundRectCornerRadius(self, *args)
14018
14020 r"""
14021 SetRoundRectCornerRadius(PAD self, PCB_LAYER_ID aLayer, double aRadius)
14022 SetRoundRectCornerRadius(PAD self, double aRadius)
14023 """
14024 return _pcbnew.PAD_SetRoundRectCornerRadius(self, *args)
14025
14026 def GetRoundRectRadiusRatio(self, *args):
14027 r"""
14028 GetRoundRectRadiusRatio(PAD self, PCB_LAYER_ID aLayer) -> double
14029 GetRoundRectRadiusRatio(PAD self) -> double
14030 """
14031 return _pcbnew.PAD_GetRoundRectRadiusRatio(self, *args)
14032
14033 def SetRoundRectRadiusRatio(self, *args):
14034 r"""
14035 SetRoundRectRadiusRatio(PAD self, PCB_LAYER_ID aLayer, double aRadiusScale)
14036 SetRoundRectRadiusRatio(PAD self, double aRatio)
14037 """
14038 return _pcbnew.PAD_SetRoundRectRadiusRatio(self, *args)
14039
14040 def GetChamferRectRatio(self, *args):
14041 r"""
14042 GetChamferRectRatio(PAD self, PCB_LAYER_ID aLayer) -> double
14043 GetChamferRectRatio(PAD self) -> double
14044 """
14045 return _pcbnew.PAD_GetChamferRectRatio(self, *args)
14046
14047 def SetChamferRectRatio(self, *args):
14048 r"""
14049 SetChamferRectRatio(PAD self, PCB_LAYER_ID aLayer, double aChamferScale)
14050 SetChamferRectRatio(PAD self, double aRatio)
14051 """
14052 return _pcbnew.PAD_SetChamferRectRatio(self, *args)
14053
14054 def GetChamferPositions(self, *args):
14055 r"""
14056 GetChamferPositions(PAD self, PCB_LAYER_ID aLayer) -> int
14057 GetChamferPositions(PAD self) -> int
14058 """
14059 return _pcbnew.PAD_GetChamferPositions(self, *args)
14060
14061 def SetChamferPositions(self, *args):
14062 r"""
14063 SetChamferPositions(PAD self, PCB_LAYER_ID aLayer, int aPositions)
14064 SetChamferPositions(PAD self, int aPositions)
14065 """
14066 return _pcbnew.PAD_SetChamferPositions(self, *args)
14067
14068
14069 # SetPadName() is the old name for PAD::SetName()
14070 # define it for compatibility
14071 def SetPadName(self, aName):
14072 return self.SetNumber(aName)
14073
14074 def SetName(self, aName):
14075 return self.SetNumber(aName)
14076
14077 # GetPadName() is the old name for PAD::GetName()
14078 # define it for compatibility
14079 def GetPadName(self):
14080 return self.GetNumber()
14081
14082 def GetName(self):
14083 return self.GetNumber()
14084
14085 # AddPrimitive() used to be multiple functions on the C++ side and this single Python function
14086 # was made to maintain compatibility with an even older version of the PAD class that had a
14087 # single function. Now we're back to a single function, but different, and Python scripts
14088 # have gotten used to this API, so keep compatibility with it
14089 def AddPrimitive(self, *args):
14090 if len(args) == 2:
14091 return self.AddPrimitivePoly(F_Cu, *args, True)
14092 elif len(args) == 3:
14093 if type(args[1] in [wxPoint,wxSize,VECTOR2I]):
14094 s = PCB_SHAPE(None, SHAPE_T_SEGMENT)
14095 s.SetStart(args[0])
14096 s.SetEnd(args[1])
14097 s.SetWidth(args[2])
14098 else:
14099 s = PCB_SHAPE(None, SHAPE_T_CIRCLE)
14100 s.SetCenter(args[0])
14101 s.SetRadius(args[1])
14102 s.SetWidth(args[2])
14103 elif len(args) == 4:
14104 s = PCB_SHAPE(None, SHAPE_T_ARC)
14105 s.SetCenter(args[0])
14106 s.SetStart(args[1])
14107 s.SetArcAngleAndEnd(args[2])
14108 s.SetWidth(args[3])
14109 elif len(args) == 5:
14110 s = PCB_SHAPE(None, SHAPE_T_BEZIER)
14111 s.SetStart(args[0])
14112 s.SetEnd(args[1])
14113 s.SetBezierC1(args[2])
14114 s.SetBezierC2(args[3])
14115 s.SetWidth(args[4])
14116 else:
14117 raise TypeError(f"Arguments not recognized; expected 2-5 args, got {len(args)}")
14118
14119 self.AddPrimitiveShape(s)
14120
14121 # GetCustomShapeAsPolygon() is the old accessor to get custom shapes
14122 def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER):
14123 polygon_set = SHAPE_POLY_SET()
14124 self.MergePrimitivesAsPolygon(F_Cu, polygon_set)
14125 return polygon_set
14126
14127 __swig_destroy__ = _pcbnew.delete_PAD
14128
14129# Register PAD in _pcbnew:
14130_pcbnew.PAD_swigregister(PAD)
14131ENDPOINT_START = _pcbnew.ENDPOINT_START
14132
14133ENDPOINT_END = _pcbnew.ENDPOINT_END
14134
14135VIATYPE_THROUGH = _pcbnew.VIATYPE_THROUGH
14136
14137VIATYPE_BLIND_BURIED = _pcbnew.VIATYPE_BLIND_BURIED
14138
14139VIATYPE_MICROVIA = _pcbnew.VIATYPE_MICROVIA
14140
14141VIATYPE_NOT_DEFINED = _pcbnew.VIATYPE_NOT_DEFINED
14142
14143TENTING_MODE_FROM_RULES = _pcbnew.TENTING_MODE_FROM_RULES
14144
14145TENTING_MODE_TENTED = _pcbnew.TENTING_MODE_TENTED
14146
14147TENTING_MODE_NOT_TENTED = _pcbnew.TENTING_MODE_NOT_TENTED
14148
14149UNDEFINED_DRILL_DIAMETER = _pcbnew.UNDEFINED_DRILL_DIAMETER
14150
14152 r"""Proxy of C++ PCB_TRACK class."""
14153
14154 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14155 __repr__ = _swig_repr
14156
14157 @staticmethod
14158 def ClassOf(aItem):
14159 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14160 return _pcbnew.PCB_TRACK_ClassOf(aItem)
14161
14162 def __init__(self, aParent, idtype=PCB_TRACE_T):
14163 r"""__init__(PCB_TRACK self, BOARD_ITEM aParent, KICAD_T idtype=PCB_TRACE_T) -> PCB_TRACK"""
14164 _pcbnew.PCB_TRACK_swiginit(self, _pcbnew.new_PCB_TRACK(aParent, idtype))
14165
14166 def SetWidth(self, aWidth):
14167 r"""SetWidth(PCB_TRACK self, int aWidth)"""
14168 return _pcbnew.PCB_TRACK_SetWidth(self, aWidth)
14169
14170 def GetWidth(self):
14171 r"""GetWidth(PCB_TRACK self) -> int"""
14172 return _pcbnew.PCB_TRACK_GetWidth(self)
14173
14174 def SetEnd(self, aEnd):
14175 r"""SetEnd(PCB_TRACK self, VECTOR2I aEnd)"""
14176 return _pcbnew.PCB_TRACK_SetEnd(self, aEnd)
14177
14178 def GetEnd(self):
14179 r"""GetEnd(PCB_TRACK self) -> VECTOR2I"""
14180 return _pcbnew.PCB_TRACK_GetEnd(self)
14181
14182 def SetStart(self, aStart):
14183 r"""SetStart(PCB_TRACK self, VECTOR2I aStart)"""
14184 return _pcbnew.PCB_TRACK_SetStart(self, aStart)
14185
14186 def GetStart(self):
14187 r"""GetStart(PCB_TRACK self) -> VECTOR2I"""
14188 return _pcbnew.PCB_TRACK_GetStart(self)
14189
14190 def SetStartX(self, aX):
14191 r"""SetStartX(PCB_TRACK self, int aX)"""
14192 return _pcbnew.PCB_TRACK_SetStartX(self, aX)
14193
14194 def SetStartY(self, aY):
14195 r"""SetStartY(PCB_TRACK self, int aY)"""
14196 return _pcbnew.PCB_TRACK_SetStartY(self, aY)
14197
14198 def GetStartX(self):
14199 r"""GetStartX(PCB_TRACK self) -> int"""
14200 return _pcbnew.PCB_TRACK_GetStartX(self)
14201
14202 def GetStartY(self):
14203 r"""GetStartY(PCB_TRACK self) -> int"""
14204 return _pcbnew.PCB_TRACK_GetStartY(self)
14205
14206 def SetEndX(self, aX):
14207 r"""SetEndX(PCB_TRACK self, int aX)"""
14208 return _pcbnew.PCB_TRACK_SetEndX(self, aX)
14209
14210 def SetEndY(self, aY):
14211 r"""SetEndY(PCB_TRACK self, int aY)"""
14212 return _pcbnew.PCB_TRACK_SetEndY(self, aY)
14213
14214 def GetEndX(self):
14215 r"""GetEndX(PCB_TRACK self) -> int"""
14216 return _pcbnew.PCB_TRACK_GetEndX(self)
14217
14218 def GetEndY(self):
14219 r"""GetEndY(PCB_TRACK self) -> int"""
14220 return _pcbnew.PCB_TRACK_GetEndY(self)
14221
14222 def GetEndPoint(self, aEndPoint):
14223 r"""GetEndPoint(PCB_TRACK self, ENDPOINT_T aEndPoint) -> VECTOR2I"""
14224 return _pcbnew.PCB_TRACK_GetEndPoint(self, aEndPoint)
14225
14226 def SetHasSolderMask(self, aVal):
14227 r"""SetHasSolderMask(PCB_TRACK self, bool aVal)"""
14228 return _pcbnew.PCB_TRACK_SetHasSolderMask(self, aVal)
14229
14230 def HasSolderMask(self):
14231 r"""HasSolderMask(PCB_TRACK self) -> bool"""
14232 return _pcbnew.PCB_TRACK_HasSolderMask(self)
14233
14234 def SetLocalSolderMaskMargin(self, aMargin):
14235 r"""SetLocalSolderMaskMargin(PCB_TRACK self, std::optional< int > aMargin)"""
14236 return _pcbnew.PCB_TRACK_SetLocalSolderMaskMargin(self, aMargin)
14237
14239 r"""GetLocalSolderMaskMargin(PCB_TRACK self) -> std::optional< int >"""
14240 return _pcbnew.PCB_TRACK_GetLocalSolderMaskMargin(self)
14241
14243 r"""GetSolderMaskExpansion(PCB_TRACK self) -> int"""
14244 return _pcbnew.PCB_TRACK_GetSolderMaskExpansion(self)
14245
14246 def GetLength(self):
14247 r"""GetLength(PCB_TRACK self) -> double"""
14248 return _pcbnew.PCB_TRACK_GetLength(self)
14249
14250 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
14251 r"""TransformShapeToPolygon(PCB_TRACK self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
14252 return _pcbnew.PCB_TRACK_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
14253
14254 def GetEffectiveShape(self, *args):
14255 r"""GetEffectiveShape(PCB_TRACK self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14256 return _pcbnew.PCB_TRACK_GetEffectiveShape(self, *args)
14257
14258 def IsPointOnEnds(self, point, min_dist=0):
14259 r"""IsPointOnEnds(PCB_TRACK self, VECTOR2I point, int min_dist=0) -> EDA_ITEM_FLAGS"""
14260 return _pcbnew.PCB_TRACK_IsPointOnEnds(self, point, min_dist)
14261
14262 def IsNull(self):
14263 r"""IsNull(PCB_TRACK self) -> bool"""
14264 return _pcbnew.PCB_TRACK_IsNull(self)
14265
14266 def HitTest(self, *args):
14267 r"""
14268 HitTest(PCB_TRACK self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14269 HitTest(PCB_TRACK self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
14270 """
14271 return _pcbnew.PCB_TRACK_HitTest(self, *args)
14272
14273 def ApproxCollinear(self, aTrack):
14274 r"""ApproxCollinear(PCB_TRACK self, PCB_TRACK aTrack) -> bool"""
14275 return _pcbnew.PCB_TRACK_ApproxCollinear(self, aTrack)
14276
14277 def GetWidthConstraint(self, aSource=None):
14278 r"""GetWidthConstraint(PCB_TRACK self, wxString aSource=None) -> MINOPTMAX< int >"""
14279 return _pcbnew.PCB_TRACK_GetWidthConstraint(self, aSource)
14280
14281 def ViewGetLOD(self, aLayer, aView):
14282 r"""ViewGetLOD(PCB_TRACK self, int aLayer, KIGFX::VIEW * aView) -> double"""
14283 return _pcbnew.PCB_TRACK_ViewGetLOD(self, aLayer, aView)
14284
14285 def __eq__(self, *args):
14286 r"""
14287 __eq__(PCB_TRACK self, BOARD_ITEM aOther) -> bool
14288 __eq__(PCB_TRACK self, PCB_TRACK aOther) -> bool
14289 """
14290 return _pcbnew.PCB_TRACK___eq__(self, *args)
14291
14292 def Serialize(self, aContainer):
14293 r"""Serialize(PCB_TRACK self, google::protobuf::Any & aContainer)"""
14294 return _pcbnew.PCB_TRACK_Serialize(self, aContainer)
14295
14296 def Deserialize(self, aContainer):
14297 r"""Deserialize(PCB_TRACK self, google::protobuf::Any const & aContainer) -> bool"""
14298 return _pcbnew.PCB_TRACK_Deserialize(self, aContainer)
14299 __swig_destroy__ = _pcbnew.delete_PCB_TRACK
14300
14301# Register PCB_TRACK in _pcbnew:
14302_pcbnew.PCB_TRACK_swigregister(PCB_TRACK)
14303PAD_SHAPE_RECT = cvar.PAD_SHAPE_RECT
14304
14306 r"""Proxy of C++ PCB_ARC class."""
14307
14308 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14309 __repr__ = _swig_repr
14310
14311 def __init__(self, *args):
14312 r"""
14313 __init__(PCB_ARC self, BOARD_ITEM aParent) -> PCB_ARC
14314 __init__(PCB_ARC self, BOARD_ITEM aParent, SHAPE_ARC aArc) -> PCB_ARC
14315 """
14316 _pcbnew.PCB_ARC_swiginit(self, _pcbnew.new_PCB_ARC(*args))
14317
14318 @staticmethod
14319 def ClassOf(aItem):
14320 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14321 return _pcbnew.PCB_ARC_ClassOf(aItem)
14322
14323 def SetMid(self, aMid):
14324 r"""SetMid(PCB_ARC self, VECTOR2I aMid)"""
14325 return _pcbnew.PCB_ARC_SetMid(self, aMid)
14326
14327 def GetMid(self):
14328 r"""GetMid(PCB_ARC self) -> VECTOR2I"""
14329 return _pcbnew.PCB_ARC_GetMid(self)
14330
14331 def GetRadius(self):
14332 r"""GetRadius(PCB_ARC self) -> double"""
14333 return _pcbnew.PCB_ARC_GetRadius(self)
14334
14335 def GetAngle(self):
14336 r"""GetAngle(PCB_ARC self) -> EDA_ANGLE"""
14337 return _pcbnew.PCB_ARC_GetAngle(self)
14338
14340 r"""GetArcAngleStart(PCB_ARC self) -> EDA_ANGLE"""
14341 return _pcbnew.PCB_ARC_GetArcAngleStart(self)
14342
14344 r"""GetArcAngleEnd(PCB_ARC self) -> EDA_ANGLE"""
14345 return _pcbnew.PCB_ARC_GetArcAngleEnd(self)
14346
14347 def HitTest(self, *args):
14348 r"""
14349 HitTest(PCB_ARC self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14350 HitTest(PCB_ARC self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
14351 """
14352 return _pcbnew.PCB_ARC_HitTest(self, *args)
14353
14354 def IsCCW(self):
14355 r"""IsCCW(PCB_ARC self) -> bool"""
14356 return _pcbnew.PCB_ARC_IsCCW(self)
14357
14358 def GetEffectiveShape(self, *args):
14359 r"""GetEffectiveShape(PCB_ARC self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14360 return _pcbnew.PCB_ARC_GetEffectiveShape(self, *args)
14361
14362 def IsDegenerated(self, aThreshold=5):
14363 r"""IsDegenerated(PCB_ARC self, int aThreshold=5) -> bool"""
14364 return _pcbnew.PCB_ARC_IsDegenerated(self, aThreshold)
14365
14366 def __eq__(self, *args):
14367 r"""
14368 __eq__(PCB_ARC self, PCB_ARC aOther) -> bool
14369 __eq__(PCB_ARC self, BOARD_ITEM aBoardItem) -> bool
14370 """
14371 return _pcbnew.PCB_ARC___eq__(self, *args)
14372
14373 def Serialize(self, aContainer):
14374 r"""Serialize(PCB_ARC self, google::protobuf::Any & aContainer)"""
14375 return _pcbnew.PCB_ARC_Serialize(self, aContainer)
14376
14377 def Deserialize(self, aContainer):
14378 r"""Deserialize(PCB_ARC self, google::protobuf::Any const & aContainer) -> bool"""
14379 return _pcbnew.PCB_ARC_Deserialize(self, aContainer)
14380 __swig_destroy__ = _pcbnew.delete_PCB_ARC
14381
14382# Register PCB_ARC in _pcbnew:
14383_pcbnew.PCB_ARC_swigregister(PCB_ARC)
14385 r"""Proxy of C++ PCB_VIA class."""
14386
14387 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14388 __repr__ = _swig_repr
14389
14390 @staticmethod
14391 def ClassOf(aItem):
14392 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14393 return _pcbnew.PCB_VIA_ClassOf(aItem)
14394
14395 def __init__(self, *args):
14396 r"""
14397 __init__(PCB_VIA self, BOARD_ITEM aParent) -> PCB_VIA
14398 __init__(PCB_VIA self, PCB_VIA aOther) -> PCB_VIA
14399 """
14400 _pcbnew.PCB_VIA_swiginit(self, _pcbnew.new_PCB_VIA(*args))
14401
14402 def HasValidLayerPair(self, aCopperLayerCount):
14403 r"""HasValidLayerPair(PCB_VIA self, int aCopperLayerCount) -> bool"""
14404 return _pcbnew.PCB_VIA_HasValidLayerPair(self, aCopperLayerCount)
14405
14406 def GetViaType(self):
14407 r"""GetViaType(PCB_VIA self) -> VIATYPE"""
14408 return _pcbnew.PCB_VIA_GetViaType(self)
14409
14410 def SetViaType(self, aViaType):
14411 r"""SetViaType(PCB_VIA self, VIATYPE aViaType)"""
14412 return _pcbnew.PCB_VIA_SetViaType(self, aViaType)
14413
14414 def Padstack(self, *args):
14415 r"""
14416 Padstack(PCB_VIA self) -> PADSTACK
14417 Padstack(PCB_VIA self) -> PADSTACK
14418 """
14419 return _pcbnew.PCB_VIA_Padstack(self, *args)
14420
14421 def SetPadstack(self, aPadstack):
14422 r"""SetPadstack(PCB_VIA self, PADSTACK aPadstack)"""
14423 return _pcbnew.PCB_VIA_SetPadstack(self, aPadstack)
14424
14425 def SetWidth(self, *args):
14426 r"""
14427 SetWidth(PCB_VIA self, int aWidth)
14428 SetWidth(PCB_VIA self, PCB_LAYER_ID aLayer, int aWidth)
14429 """
14430 return _pcbnew.PCB_VIA_SetWidth(self, *args)
14431
14432 def GetWidth(self, *args):
14433 r"""
14434 GetWidth(PCB_VIA self) -> int
14435 GetWidth(PCB_VIA self, PCB_LAYER_ID aLayer) -> int
14436 """
14437 return _pcbnew.PCB_VIA_GetWidth(self, *args)
14438
14439 def SetFrontWidth(self, aWidth):
14440 r"""SetFrontWidth(PCB_VIA self, int aWidth)"""
14441 return _pcbnew.PCB_VIA_SetFrontWidth(self, aWidth)
14442
14443 def GetFrontWidth(self):
14444 r"""GetFrontWidth(PCB_VIA self) -> int"""
14445 return _pcbnew.PCB_VIA_GetFrontWidth(self)
14446
14447 def GetWidthConstraint(self, aSource=None):
14448 r"""GetWidthConstraint(PCB_VIA self, wxString aSource=None) -> MINOPTMAX< int >"""
14449 return _pcbnew.PCB_VIA_GetWidthConstraint(self, aSource)
14450
14451 def GetDrillConstraint(self, aSource=None):
14452 r"""GetDrillConstraint(PCB_VIA self, wxString aSource=None) -> MINOPTMAX< int >"""
14453 return _pcbnew.PCB_VIA_GetDrillConstraint(self, aSource)
14454
14455 def SetFrontTentingMode(self, aMode):
14456 r"""SetFrontTentingMode(PCB_VIA self, TENTING_MODE aMode)"""
14457 return _pcbnew.PCB_VIA_SetFrontTentingMode(self, aMode)
14458
14460 r"""GetFrontTentingMode(PCB_VIA self) -> TENTING_MODE"""
14461 return _pcbnew.PCB_VIA_GetFrontTentingMode(self)
14462
14463 def SetBackTentingMode(self, aMode):
14464 r"""SetBackTentingMode(PCB_VIA self, TENTING_MODE aMode)"""
14465 return _pcbnew.PCB_VIA_SetBackTentingMode(self, aMode)
14466
14468 r"""GetBackTentingMode(PCB_VIA self) -> TENTING_MODE"""
14469 return _pcbnew.PCB_VIA_GetBackTentingMode(self)
14470
14472 r"""GetSolderMaskExpansion(PCB_VIA self) -> int"""
14473 return _pcbnew.PCB_VIA_GetSolderMaskExpansion(self)
14474
14475 def SetLayerPair(self, aTopLayer, aBottomLayer):
14476 r"""SetLayerPair(PCB_VIA self, PCB_LAYER_ID aTopLayer, PCB_LAYER_ID aBottomLayer)"""
14477 return _pcbnew.PCB_VIA_SetLayerPair(self, aTopLayer, aBottomLayer)
14478
14479 def SetBottomLayer(self, aLayer):
14480 r"""SetBottomLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
14481 return _pcbnew.PCB_VIA_SetBottomLayer(self, aLayer)
14482
14483 def SetTopLayer(self, aLayer):
14484 r"""SetTopLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
14485 return _pcbnew.PCB_VIA_SetTopLayer(self, aLayer)
14486
14487 def LayerPair(self, top_layer, bottom_layer):
14488 r"""LayerPair(PCB_VIA self, PCB_LAYER_ID * top_layer, PCB_LAYER_ID * bottom_layer)"""
14489 return _pcbnew.PCB_VIA_LayerPair(self, top_layer, bottom_layer)
14490
14491 def TopLayer(self):
14492 r"""TopLayer(PCB_VIA self) -> PCB_LAYER_ID"""
14493 return _pcbnew.PCB_VIA_TopLayer(self)
14494
14495 def BottomLayer(self):
14496 r"""BottomLayer(PCB_VIA self) -> PCB_LAYER_ID"""
14497 return _pcbnew.PCB_VIA_BottomLayer(self)
14498
14500 r"""SanitizeLayers(PCB_VIA self)"""
14501 return _pcbnew.PCB_VIA_SanitizeLayers(self)
14502
14503 def HitTest(self, *args):
14504 r"""
14505 HitTest(PCB_VIA self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14506 HitTest(PCB_VIA self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
14507 """
14508 return _pcbnew.PCB_VIA_HitTest(self, *args)
14509
14510 def ViewGetLOD(self, aLayer, aView):
14511 r"""ViewGetLOD(PCB_VIA self, int aLayer, KIGFX::VIEW * aView) -> double"""
14512 return _pcbnew.PCB_VIA_ViewGetLOD(self, aLayer, aView)
14513
14514 def GetMinAnnulus(self, aLayer, aSource):
14515 r"""GetMinAnnulus(PCB_VIA self, PCB_LAYER_ID aLayer, wxString aSource) -> int"""
14516 return _pcbnew.PCB_VIA_GetMinAnnulus(self, aLayer, aSource)
14517
14518 def SetRemoveUnconnected(self, aSet):
14519 r"""SetRemoveUnconnected(PCB_VIA self, bool aSet)"""
14520 return _pcbnew.PCB_VIA_SetRemoveUnconnected(self, aSet)
14521
14523 r"""GetRemoveUnconnected(PCB_VIA self) -> bool"""
14524 return _pcbnew.PCB_VIA_GetRemoveUnconnected(self)
14525
14526 def SetKeepStartEnd(self, aSet):
14527 r"""SetKeepStartEnd(PCB_VIA self, bool aSet)"""
14528 return _pcbnew.PCB_VIA_SetKeepStartEnd(self, aSet)
14529
14531 r"""GetKeepStartEnd(PCB_VIA self) -> bool"""
14532 return _pcbnew.PCB_VIA_GetKeepStartEnd(self)
14533
14534 def ConditionallyFlashed(self, aLayer):
14535 r"""ConditionallyFlashed(PCB_VIA self, PCB_LAYER_ID aLayer) -> bool"""
14536 return _pcbnew.PCB_VIA_ConditionallyFlashed(self, aLayer)
14537
14538 def FlashLayer(self, *args):
14539 r"""
14540 FlashLayer(PCB_VIA self, int aLayer) -> bool
14541 FlashLayer(PCB_VIA self, LSET aLayers) -> bool
14542 """
14543 return _pcbnew.PCB_VIA_FlashLayer(self, *args)
14544
14545 def GetOutermostConnectedLayers(self, aTopmost, aBottommost):
14546 r"""GetOutermostConnectedLayers(PCB_VIA self, PCB_LAYER_ID * aTopmost, PCB_LAYER_ID * aBottommost)"""
14547 return _pcbnew.PCB_VIA_GetOutermostConnectedLayers(self, aTopmost, aBottommost)
14548
14549 def SetDrill(self, aDrill):
14550 r"""SetDrill(PCB_VIA self, int aDrill)"""
14551 return _pcbnew.PCB_VIA_SetDrill(self, aDrill)
14552
14553 def GetDrill(self):
14554 r"""GetDrill(PCB_VIA self) -> int"""
14555 return _pcbnew.PCB_VIA_GetDrill(self)
14556
14557 def GetDrillValue(self):
14558 r"""GetDrillValue(PCB_VIA self) -> int"""
14559 return _pcbnew.PCB_VIA_GetDrillValue(self)
14560
14562 r"""SetDrillDefault(PCB_VIA self)"""
14563 return _pcbnew.PCB_VIA_SetDrillDefault(self)
14564
14565 def GetIsFree(self):
14566 r"""GetIsFree(PCB_VIA self) -> bool"""
14567 return _pcbnew.PCB_VIA_GetIsFree(self)
14568
14569 def SetIsFree(self, aFree=True):
14570 r"""SetIsFree(PCB_VIA self, bool aFree=True)"""
14571 return _pcbnew.PCB_VIA_SetIsFree(self, aFree)
14572
14573 def GetEffectiveShape(self, *args):
14574 r"""GetEffectiveShape(PCB_VIA self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14575 return _pcbnew.PCB_VIA_GetEffectiveShape(self, *args)
14576
14578 r"""ClearZoneLayerOverrides(PCB_VIA self)"""
14579 return _pcbnew.PCB_VIA_ClearZoneLayerOverrides(self)
14580
14581 def GetZoneLayerOverride(self, aLayer):
14582 r"""GetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
14583 return _pcbnew.PCB_VIA_GetZoneLayerOverride(self, aLayer)
14584
14585 def SetZoneLayerOverride(self, aLayer, aOverride):
14586 r"""SetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
14587 return _pcbnew.PCB_VIA_SetZoneLayerOverride(self, aLayer, aOverride)
14588
14589 def __eq__(self, *args):
14590 r"""
14591 __eq__(PCB_VIA self, PCB_VIA aOther) -> bool
14592 __eq__(PCB_VIA self, BOARD_ITEM aOther) -> bool
14593 """
14594 return _pcbnew.PCB_VIA___eq__(self, *args)
14595
14596 def Serialize(self, aContainer):
14597 r"""Serialize(PCB_VIA self, google::protobuf::Any & aContainer)"""
14598 return _pcbnew.PCB_VIA_Serialize(self, aContainer)
14599
14600 def Deserialize(self, aContainer):
14601 r"""Deserialize(PCB_VIA self, google::protobuf::Any const & aContainer) -> bool"""
14602 return _pcbnew.PCB_VIA_Deserialize(self, aContainer)
14603 __swig_destroy__ = _pcbnew.delete_PCB_VIA
14604
14605# Register PCB_VIA in _pcbnew:
14606_pcbnew.PCB_VIA_swigregister(PCB_VIA)
14608 r"""Proxy of C++ ISOLATED_ISLANDS class."""
14609
14610 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14611 __repr__ = _swig_repr
14612 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)>)>""")
14613 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)>)>""")
14614
14615 def __init__(self):
14616 r"""__init__(ISOLATED_ISLANDS self) -> ISOLATED_ISLANDS"""
14617 _pcbnew.ISOLATED_ISLANDS_swiginit(self, _pcbnew.new_ISOLATED_ISLANDS())
14618 __swig_destroy__ = _pcbnew.delete_ISOLATED_ISLANDS
14619
14620# Register ISOLATED_ISLANDS in _pcbnew:
14621_pcbnew.ISOLATED_ISLANDS_swigregister(ISOLATED_ISLANDS)
14623 r"""Proxy of C++ ZONE class."""
14624
14625 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14626 __repr__ = _swig_repr
14627
14628 def __init__(self, *args):
14629 r"""
14630 __init__(ZONE self, BOARD_ITEM_CONTAINER parent) -> ZONE
14631 __init__(ZONE self, ZONE aZone) -> ZONE
14632 """
14633 _pcbnew.ZONE_swiginit(self, _pcbnew.new_ZONE(*args))
14634 __swig_destroy__ = _pcbnew.delete_ZONE
14635
14636 @staticmethod
14637 def ClassOf(aItem):
14638 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14639 return _pcbnew.ZONE_ClassOf(aItem)
14640
14641 def Serialize(self, aContainer):
14642 r"""Serialize(ZONE self, google::protobuf::Any & aContainer)"""
14643 return _pcbnew.ZONE_Serialize(self, aContainer)
14644
14645 def Deserialize(self, aContainer):
14646 r"""Deserialize(ZONE self, google::protobuf::Any const & aContainer) -> bool"""
14647 return _pcbnew.ZONE_Deserialize(self, aContainer)
14648
14650 r"""InitDataFromSrcInCopyCtor(ZONE self, ZONE aZone)"""
14651 return _pcbnew.ZONE_InitDataFromSrcInCopyCtor(self, aZone)
14652
14653 def IsConflicting(self):
14654 r"""IsConflicting(ZONE self) -> bool"""
14655 return _pcbnew.ZONE_IsConflicting(self)
14656
14657 def SetAssignedPriority(self, aPriority):
14658 r"""SetAssignedPriority(ZONE self, unsigned int aPriority)"""
14659 return _pcbnew.ZONE_SetAssignedPriority(self, aPriority)
14660
14662 r"""GetAssignedPriority(ZONE self) -> unsigned int"""
14663 return _pcbnew.ZONE_GetAssignedPriority(self)
14664
14665 def HigherPriority(self, aOther):
14666 r"""HigherPriority(ZONE self, ZONE aOther) -> bool"""
14667 return _pcbnew.ZONE_HigherPriority(self, aOther)
14668
14669 def SameNet(self, aOther):
14670 r"""SameNet(ZONE self, ZONE aOther) -> bool"""
14671 return _pcbnew.ZONE_SameNet(self, aOther)
14672
14673 def GetZoneName(self):
14674 r"""GetZoneName(ZONE self) -> wxString"""
14675 return _pcbnew.ZONE_GetZoneName(self)
14676
14677 def SetZoneName(self, aName):
14678 r"""SetZoneName(ZONE self, wxString aName)"""
14679 return _pcbnew.ZONE_SetZoneName(self, aName)
14680
14682 r"""CacheBoundingBox(ZONE self)"""
14683 return _pcbnew.ZONE_CacheBoundingBox(self)
14684
14685 def SetLocalClearance(self, aClearance):
14686 r"""SetLocalClearance(ZONE self, std::optional< int > aClearance)"""
14687 return _pcbnew.ZONE_SetLocalClearance(self, aClearance)
14688
14689 def GetLocalClearance(self, *args):
14690 r"""
14691 GetLocalClearance(ZONE self) -> std::optional< int >
14692 GetLocalClearance(ZONE self, wxString aSource) -> std::optional< int >
14693 """
14694 return _pcbnew.ZONE_GetLocalClearance(self, *args)
14695
14696 def GetFirstLayer(self):
14697 r"""GetFirstLayer(ZONE self) -> PCB_LAYER_ID"""
14698 return _pcbnew.ZONE_GetFirstLayer(self)
14699
14700 def ViewGetLOD(self, aLayer, aView):
14701 r"""ViewGetLOD(ZONE self, int aLayer, KIGFX::VIEW * aView) -> double"""
14702 return _pcbnew.ZONE_ViewGetLOD(self, aLayer, aView)
14703
14704 def SetFillMode(self, aFillMode):
14705 r"""SetFillMode(ZONE self, ZONE_FILL_MODE aFillMode)"""
14706 return _pcbnew.ZONE_SetFillMode(self, aFillMode)
14707
14708 def GetFillMode(self):
14709 r"""GetFillMode(ZONE self) -> ZONE_FILL_MODE"""
14710 return _pcbnew.ZONE_GetFillMode(self)
14711
14712 def SetThermalReliefGap(self, aThermalReliefGap):
14713 r"""SetThermalReliefGap(ZONE self, int aThermalReliefGap)"""
14714 return _pcbnew.ZONE_SetThermalReliefGap(self, aThermalReliefGap)
14715
14716 def GetThermalReliefGap(self, *args):
14717 r"""
14718 GetThermalReliefGap(ZONE self) -> int
14719 GetThermalReliefGap(ZONE self, PAD aPad, wxString aSource=None) -> int
14720 """
14721 return _pcbnew.ZONE_GetThermalReliefGap(self, *args)
14722
14723 def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth):
14724 r"""SetThermalReliefSpokeWidth(ZONE self, int aThermalReliefSpokeWidth)"""
14725 return _pcbnew.ZONE_SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
14726
14728 r"""GetThermalReliefSpokeWidth(ZONE self) -> int"""
14729 return _pcbnew.ZONE_GetThermalReliefSpokeWidth(self)
14730
14732 r"""CalculateFilledArea(ZONE self) -> double"""
14733 return _pcbnew.ZONE_CalculateFilledArea(self)
14734
14736 r"""CalculateOutlineArea(ZONE self) -> double"""
14737 return _pcbnew.ZONE_CalculateOutlineArea(self)
14738
14739 def GetFilledArea(self):
14740 r"""GetFilledArea(ZONE self) -> double"""
14741 return _pcbnew.ZONE_GetFilledArea(self)
14742
14744 r"""GetOutlineArea(ZONE self) -> double"""
14745 return _pcbnew.ZONE_GetOutlineArea(self)
14746
14747 def GetLock(self):
14748 r"""GetLock(ZONE self) -> std::mutex &"""
14749 return _pcbnew.ZONE_GetLock(self)
14750
14751 def GetFillFlag(self, aLayer):
14752 r"""GetFillFlag(ZONE self, PCB_LAYER_ID aLayer) -> int"""
14753 return _pcbnew.ZONE_GetFillFlag(self, aLayer)
14754
14755 def SetFillFlag(self, aLayer, aFlag):
14756 r"""SetFillFlag(ZONE self, PCB_LAYER_ID aLayer, bool aFlag)"""
14757 return _pcbnew.ZONE_SetFillFlag(self, aLayer, aFlag)
14758
14759 def IsFilled(self):
14760 r"""IsFilled(ZONE self) -> bool"""
14761 return _pcbnew.ZONE_IsFilled(self)
14762
14763 def SetIsFilled(self, isFilled):
14764 r"""SetIsFilled(ZONE self, bool isFilled)"""
14765 return _pcbnew.ZONE_SetIsFilled(self, isFilled)
14766
14767 def NeedRefill(self):
14768 r"""NeedRefill(ZONE self) -> bool"""
14769 return _pcbnew.ZONE_NeedRefill(self)
14770
14771 def SetNeedRefill(self, aNeedRefill):
14772 r"""SetNeedRefill(ZONE self, bool aNeedRefill)"""
14773 return _pcbnew.ZONE_SetNeedRefill(self, aNeedRefill)
14774
14776 r"""GetPadConnection(ZONE self) -> ZONE_CONNECTION"""
14777 return _pcbnew.ZONE_GetPadConnection(self)
14778
14779 def SetPadConnection(self, aPadConnection):
14780 r"""SetPadConnection(ZONE self, ZONE_CONNECTION aPadConnection)"""
14781 return _pcbnew.ZONE_SetPadConnection(self, aPadConnection)
14782
14784 r"""GetMinThickness(ZONE self) -> int"""
14785 return _pcbnew.ZONE_GetMinThickness(self)
14786
14787 def SetMinThickness(self, aMinThickness):
14788 r"""SetMinThickness(ZONE self, int aMinThickness)"""
14789 return _pcbnew.ZONE_SetMinThickness(self, aMinThickness)
14790
14792 r"""GetHatchThickness(ZONE self) -> int"""
14793 return _pcbnew.ZONE_GetHatchThickness(self)
14794
14795 def SetHatchThickness(self, aThickness):
14796 r"""SetHatchThickness(ZONE self, int aThickness)"""
14797 return _pcbnew.ZONE_SetHatchThickness(self, aThickness)
14798
14799 def GetHatchGap(self):
14800 r"""GetHatchGap(ZONE self) -> int"""
14801 return _pcbnew.ZONE_GetHatchGap(self)
14802
14803 def SetHatchGap(self, aStep):
14804 r"""SetHatchGap(ZONE self, int aStep)"""
14805 return _pcbnew.ZONE_SetHatchGap(self, aStep)
14806
14808 r"""GetHatchOrientation(ZONE self) -> EDA_ANGLE"""
14809 return _pcbnew.ZONE_GetHatchOrientation(self)
14810
14811 def SetHatchOrientation(self, aStep):
14812 r"""SetHatchOrientation(ZONE self, EDA_ANGLE aStep)"""
14813 return _pcbnew.ZONE_SetHatchOrientation(self, aStep)
14814
14816 r"""GetHatchSmoothingLevel(ZONE self) -> int"""
14817 return _pcbnew.ZONE_GetHatchSmoothingLevel(self)
14818
14819 def SetHatchSmoothingLevel(self, aLevel):
14820 r"""SetHatchSmoothingLevel(ZONE self, int aLevel)"""
14821 return _pcbnew.ZONE_SetHatchSmoothingLevel(self, aLevel)
14822
14824 r"""GetHatchSmoothingValue(ZONE self) -> double"""
14825 return _pcbnew.ZONE_GetHatchSmoothingValue(self)
14826
14827 def SetHatchSmoothingValue(self, aValue):
14828 r"""SetHatchSmoothingValue(ZONE self, double aValue)"""
14829 return _pcbnew.ZONE_SetHatchSmoothingValue(self, aValue)
14830
14832 r"""GetHatchHoleMinArea(ZONE self) -> double"""
14833 return _pcbnew.ZONE_GetHatchHoleMinArea(self)
14834
14835 def SetHatchHoleMinArea(self, aPct):
14836 r"""SetHatchHoleMinArea(ZONE self, double aPct)"""
14837 return _pcbnew.ZONE_SetHatchHoleMinArea(self, aPct)
14838
14840 r"""GetHatchBorderAlgorithm(ZONE self) -> int"""
14841 return _pcbnew.ZONE_GetHatchBorderAlgorithm(self)
14842
14843 def SetHatchBorderAlgorithm(self, aAlgo):
14844 r"""SetHatchBorderAlgorithm(ZONE self, int aAlgo)"""
14845 return _pcbnew.ZONE_SetHatchBorderAlgorithm(self, aAlgo)
14846
14848 r"""GetSelectedCorner(ZONE self) -> int"""
14849 return _pcbnew.ZONE_GetSelectedCorner(self)
14850
14851 def SetSelectedCorner(self, aCorner):
14852 r"""SetSelectedCorner(ZONE self, int aCorner)"""
14853 return _pcbnew.ZONE_SetSelectedCorner(self, aCorner)
14854
14855 def GetLocalFlags(self):
14856 r"""GetLocalFlags(ZONE self) -> int"""
14857 return _pcbnew.ZONE_GetLocalFlags(self)
14858
14859 def SetLocalFlags(self, aFlags):
14860 r"""SetLocalFlags(ZONE self, int aFlags)"""
14861 return _pcbnew.ZONE_SetLocalFlags(self, aFlags)
14862
14863 def Outline(self, *args):
14864 r"""
14865 Outline(ZONE self) -> SHAPE_POLY_SET
14866 Outline(ZONE self) -> SHAPE_POLY_SET
14867 """
14868 return _pcbnew.ZONE_Outline(self, *args)
14869
14870 def SetOutline(self, aOutline):
14871 r"""SetOutline(ZONE self, SHAPE_POLY_SET aOutline)"""
14872 return _pcbnew.ZONE_SetOutline(self, aOutline)
14873
14874 def GetEffectiveShape(self, *args):
14875 r"""GetEffectiveShape(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14876 return _pcbnew.ZONE_GetEffectiveShape(self, *args)
14877
14878 def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0):
14879 r"""HitTestFilledArea(ZONE self, PCB_LAYER_ID aLayer, VECTOR2I aRefPos, int aAccuracy=0) -> bool"""
14880 return _pcbnew.ZONE_HitTestFilledArea(self, aLayer, aRefPos, aAccuracy)
14881
14882 def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None):
14883 r"""HitTestCutout(ZONE self, VECTOR2I aRefPos, int * aOutlineIdx=None, int * aHoleIdx=None) -> bool"""
14884 return _pcbnew.ZONE_HitTestCutout(self, aRefPos, aOutlineIdx, aHoleIdx)
14885
14886 def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones):
14887 r"""GetInteractingZones(ZONE self, PCB_LAYER_ID aLayer, ZONES aSameNetCollidingZones, ZONES aOtherNetIntersectingZones)"""
14888 return _pcbnew.ZONE_GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
14889
14890 def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer):
14891 r"""TransformSolidAreasShapesToPolygon(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBuffer)"""
14892 return _pcbnew.ZONE_TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
14893
14894 def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline):
14895 r"""TransformSmoothedOutlineToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, SHAPE_POLY_SET aBoardOutline)"""
14896 return _pcbnew.ZONE_TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
14897
14898 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
14899 r"""TransformShapeToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
14900 return _pcbnew.ZONE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
14901
14902 def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None):
14903 r"""HitTestForCorner(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
14904 return _pcbnew.ZONE_HitTestForCorner(self, refPos, aAccuracy, aCornerHit)
14905
14906 def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None):
14907 r"""HitTestForEdge(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
14908 return _pcbnew.ZONE_HitTestForEdge(self, refPos, aAccuracy, aCornerHit)
14909
14910 def HitTest(self, *args):
14911 r"""
14912 HitTest(ZONE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14913 HitTest(ZONE self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
14914 """
14915 return _pcbnew.ZONE_HitTest(self, *args)
14916
14917 def UnFill(self):
14918 r"""UnFill(ZONE self) -> bool"""
14919 return _pcbnew.ZONE_UnFill(self)
14920
14921 def MoveEdge(self, offset, aEdge):
14922 r"""MoveEdge(ZONE self, VECTOR2I offset, int aEdge)"""
14923 return _pcbnew.ZONE_MoveEdge(self, offset, aEdge)
14924
14925 def GetNumCorners(self):
14926 r"""GetNumCorners(ZONE self) -> int"""
14927 return _pcbnew.ZONE_GetNumCorners(self)
14928
14929 def Iterate(self):
14930 r"""Iterate(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
14931 return _pcbnew.ZONE_Iterate(self)
14932
14934 r"""IterateWithHoles(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
14935 return _pcbnew.ZONE_IterateWithHoles(self)
14936
14938 r"""CIterateWithHoles(ZONE self) -> SHAPE_POLY_SET::CONST_ITERATOR"""
14939 return _pcbnew.ZONE_CIterateWithHoles(self)
14940
14942 r"""RemoveAllContours(ZONE self)"""
14943 return _pcbnew.ZONE_RemoveAllContours(self)
14944
14945 def GetCornerPosition(self, aCornerIndex):
14946 r"""GetCornerPosition(ZONE self, int aCornerIndex) -> VECTOR2I"""
14947 return _pcbnew.ZONE_GetCornerPosition(self, aCornerIndex)
14948
14949 def SetCornerPosition(self, aCornerIndex, new_pos):
14950 r"""SetCornerPosition(ZONE self, int aCornerIndex, VECTOR2I new_pos)"""
14951 return _pcbnew.ZONE_SetCornerPosition(self, aCornerIndex, new_pos)
14952
14953 def NewHole(self):
14954 r"""NewHole(ZONE self)"""
14955 return _pcbnew.ZONE_NewHole(self)
14956
14957 def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False):
14958 r"""AppendCorner(ZONE self, VECTOR2I aPosition, int aHoleIdx, bool aAllowDuplication=False) -> bool"""
14959 return _pcbnew.ZONE_AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication)
14960
14961 def GetHatchStyle(self):
14962 r"""GetHatchStyle(ZONE self) -> ZONE_BORDER_DISPLAY_STYLE"""
14963 return _pcbnew.ZONE_GetHatchStyle(self)
14964
14965 def SetHatchStyle(self, aStyle):
14966 r"""SetHatchStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aStyle)"""
14967 return _pcbnew.ZONE_SetHatchStyle(self, aStyle)
14968
14969 def HasFilledPolysForLayer(self, aLayer):
14970 r"""HasFilledPolysForLayer(ZONE self, PCB_LAYER_ID aLayer) -> bool"""
14971 return _pcbnew.ZONE_HasFilledPolysForLayer(self, aLayer)
14972
14973 def GetFilledPolysList(self, aLayer):
14974 r"""GetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer) -> std::shared_ptr< SHAPE_POLY_SET > const &"""
14975 return _pcbnew.ZONE_GetFilledPolysList(self, aLayer)
14976
14977 def GetFill(self, aLayer):
14978 r"""GetFill(ZONE self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
14979 return _pcbnew.ZONE_GetFill(self, aLayer)
14980
14981 def CacheTriangulation(self, aLayer=UNDEFINED_LAYER):
14982 r"""CacheTriangulation(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
14983 return _pcbnew.ZONE_CacheTriangulation(self, aLayer)
14984
14985 def SetFilledPolysList(self, aLayer, aPolysList):
14986 r"""SetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aPolysList)"""
14987 return _pcbnew.ZONE_SetFilledPolysList(self, aLayer, aPolysList)
14988
14989 def IsIsland(self, aLayer, aPolyIdx):
14990 r"""IsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx) -> bool"""
14991 return _pcbnew.ZONE_IsIsland(self, aLayer, aPolyIdx)
14992
14993 def SetIsIsland(self, aLayer, aPolyIdx):
14994 r"""SetIsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx)"""
14995 return _pcbnew.ZONE_SetIsIsland(self, aLayer, aPolyIdx)
14996
14997 def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None):
14998 r"""BuildSmoothedPoly(ZONE self, SHAPE_POLY_SET aSmoothedPoly, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBoardOutline, SHAPE_POLY_SET aSmoothedPolyWithApron=None) -> bool"""
14999 return _pcbnew.ZONE_BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron)
15000
15001 def SetCornerSmoothingType(self, aType):
15002 r"""SetCornerSmoothingType(ZONE self, int aType)"""
15003 return _pcbnew.ZONE_SetCornerSmoothingType(self, aType)
15004
15006 r"""GetCornerSmoothingType(ZONE self) -> int"""
15007 return _pcbnew.ZONE_GetCornerSmoothingType(self)
15008
15009 def SetCornerRadius(self, aRadius):
15010 r"""SetCornerRadius(ZONE self, unsigned int aRadius)"""
15011 return _pcbnew.ZONE_SetCornerRadius(self, aRadius)
15012
15014 r"""GetCornerRadius(ZONE self) -> unsigned int"""
15015 return _pcbnew.ZONE_GetCornerRadius(self)
15016
15017 def RemoveCutout(self, aOutlineIdx, aHoleIdx):
15018 r"""RemoveCutout(ZONE self, int aOutlineIdx, int aHoleIdx)"""
15019 return _pcbnew.ZONE_RemoveCutout(self, aOutlineIdx, aHoleIdx)
15020
15021 def AddPolygon(self, *args):
15022 r"""
15023 AddPolygon(ZONE self, VECTOR_VECTOR2I aPolygon)
15024 AddPolygon(ZONE self, SHAPE_LINE_CHAIN aPolygon)
15025 """
15026 return _pcbnew.ZONE_AddPolygon(self, *args)
15027
15029 r"""IsTeardropArea(ZONE self) -> bool"""
15030 return _pcbnew.ZONE_IsTeardropArea(self)
15031
15032 def SetTeardropAreaType(self, aType):
15033 r"""SetTeardropAreaType(ZONE self, TEARDROP_TYPE aType)"""
15034 return _pcbnew.ZONE_SetTeardropAreaType(self, aType)
15035
15037 r"""GetTeardropAreaType(ZONE self) -> TEARDROP_TYPE"""
15038 return _pcbnew.ZONE_GetTeardropAreaType(self)
15039
15041 r"""HasKeepoutParametersSet(ZONE self) -> bool"""
15042 return _pcbnew.ZONE_HasKeepoutParametersSet(self)
15043
15044 def GetIsRuleArea(self):
15045 r"""GetIsRuleArea(ZONE self) -> bool"""
15046 return _pcbnew.ZONE_GetIsRuleArea(self)
15047
15049 r"""GetRuleAreaPlacementEnabled(ZONE self) -> bool"""
15050 return _pcbnew.ZONE_GetRuleAreaPlacementEnabled(self)
15051
15053 r"""GetRuleAreaPlacementSourceType(ZONE self) -> RULE_AREA_PLACEMENT_SOURCE_TYPE"""
15054 return _pcbnew.ZONE_GetRuleAreaPlacementSourceType(self)
15055
15057 r"""GetRuleAreaPlacementSource(ZONE self) -> wxString"""
15058 return _pcbnew.ZONE_GetRuleAreaPlacementSource(self)
15059
15061 r"""GetDoNotAllowCopperPour(ZONE self) -> bool"""
15062 return _pcbnew.ZONE_GetDoNotAllowCopperPour(self)
15063
15065 r"""GetDoNotAllowVias(ZONE self) -> bool"""
15066 return _pcbnew.ZONE_GetDoNotAllowVias(self)
15067
15069 r"""GetDoNotAllowTracks(ZONE self) -> bool"""
15070 return _pcbnew.ZONE_GetDoNotAllowTracks(self)
15071
15073 r"""GetDoNotAllowPads(ZONE self) -> bool"""
15074 return _pcbnew.ZONE_GetDoNotAllowPads(self)
15075
15077 r"""GetDoNotAllowFootprints(ZONE self) -> bool"""
15078 return _pcbnew.ZONE_GetDoNotAllowFootprints(self)
15079
15080 def SetIsRuleArea(self, aEnable):
15081 r"""SetIsRuleArea(ZONE self, bool aEnable)"""
15082 return _pcbnew.ZONE_SetIsRuleArea(self, aEnable)
15083
15084 def SetRuleAreaPlacementEnabled(self, aEnabled):
15085 r"""SetRuleAreaPlacementEnabled(ZONE self, bool aEnabled)"""
15086 return _pcbnew.ZONE_SetRuleAreaPlacementEnabled(self, aEnabled)
15087
15089 r"""SetRuleAreaPlacementSourceType(ZONE self, RULE_AREA_PLACEMENT_SOURCE_TYPE aType)"""
15090 return _pcbnew.ZONE_SetRuleAreaPlacementSourceType(self, aType)
15091
15092 def SetRuleAreaPlacementSource(self, aSource):
15093 r"""SetRuleAreaPlacementSource(ZONE self, wxString aSource)"""
15094 return _pcbnew.ZONE_SetRuleAreaPlacementSource(self, aSource)
15095
15096 def SetDoNotAllowCopperPour(self, aEnable):
15097 r"""SetDoNotAllowCopperPour(ZONE self, bool aEnable)"""
15098 return _pcbnew.ZONE_SetDoNotAllowCopperPour(self, aEnable)
15099
15100 def SetDoNotAllowVias(self, aEnable):
15101 r"""SetDoNotAllowVias(ZONE self, bool aEnable)"""
15102 return _pcbnew.ZONE_SetDoNotAllowVias(self, aEnable)
15103
15104 def SetDoNotAllowTracks(self, aEnable):
15105 r"""SetDoNotAllowTracks(ZONE self, bool aEnable)"""
15106 return _pcbnew.ZONE_SetDoNotAllowTracks(self, aEnable)
15107
15108 def SetDoNotAllowPads(self, aEnable):
15109 r"""SetDoNotAllowPads(ZONE self, bool aEnable)"""
15110 return _pcbnew.ZONE_SetDoNotAllowPads(self, aEnable)
15111
15112 def SetDoNotAllowFootprints(self, aEnable):
15113 r"""SetDoNotAllowFootprints(ZONE self, bool aEnable)"""
15114 return _pcbnew.ZONE_SetDoNotAllowFootprints(self, aEnable)
15115
15117 r"""GetIslandRemovalMode(ZONE self) -> ISLAND_REMOVAL_MODE"""
15118 return _pcbnew.ZONE_GetIslandRemovalMode(self)
15119
15120 def SetIslandRemovalMode(self, aRemove):
15121 r"""SetIslandRemovalMode(ZONE self, ISLAND_REMOVAL_MODE aRemove)"""
15122 return _pcbnew.ZONE_SetIslandRemovalMode(self, aRemove)
15123
15125 r"""GetMinIslandArea(ZONE self) -> long long"""
15126 return _pcbnew.ZONE_GetMinIslandArea(self)
15127
15128 def SetMinIslandArea(self, aArea):
15129 r"""SetMinIslandArea(ZONE self, long long aArea)"""
15130 return _pcbnew.ZONE_SetMinIslandArea(self, aArea)
15131
15133 r"""GetBorderHatchPitch(ZONE self) -> int"""
15134 return _pcbnew.ZONE_GetBorderHatchPitch(self)
15135
15136 @staticmethod
15138 r"""GetDefaultHatchPitch() -> int"""
15139 return _pcbnew.ZONE_GetDefaultHatchPitch()
15140
15141 def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch):
15142 r"""SetBorderDisplayStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aBorderHatchStyle, int aBorderHatchPitch, bool aRebuilBorderdHatch)"""
15143 return _pcbnew.ZONE_SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
15144
15145 def SetBorderHatchPitch(self, aPitch):
15146 r"""SetBorderHatchPitch(ZONE self, int aPitch)"""
15147 return _pcbnew.ZONE_SetBorderHatchPitch(self, aPitch)
15148
15149 def UnHatchBorder(self):
15150 r"""UnHatchBorder(ZONE self)"""
15151 return _pcbnew.ZONE_UnHatchBorder(self)
15152
15153 def HatchBorder(self):
15154 r"""HatchBorder(ZONE self)"""
15155 return _pcbnew.ZONE_HatchBorder(self)
15156
15157 def GetHatchLines(self):
15158 r"""GetHatchLines(ZONE self) -> std::vector< SEG,std::allocator< SEG > > const &"""
15159 return _pcbnew.ZONE_GetHatchLines(self)
15160
15161 def BuildHashValue(self, aLayer):
15162 r"""BuildHashValue(ZONE self, PCB_LAYER_ID aLayer)"""
15163 return _pcbnew.ZONE_BuildHashValue(self, aLayer)
15164
15165 def GetHashValue(self, aLayer):
15166 r"""GetHashValue(ZONE self, PCB_LAYER_ID aLayer) -> HASH_128"""
15167 return _pcbnew.ZONE_GetHashValue(self, aLayer)
15168
15169 def __eq__(self, *args):
15170 r"""
15171 __eq__(ZONE self, ZONE aOther) -> bool
15172 __eq__(ZONE self, BOARD_ITEM aOther) -> bool
15173 """
15174 return _pcbnew.ZONE___eq__(self, *args)
15175
15176# Register ZONE in _pcbnew:
15177_pcbnew.ZONE_swigregister(ZONE)
15178ZONE_THERMAL_RELIEF_GAP_MM = _pcbnew.ZONE_THERMAL_RELIEF_GAP_MM
15179
15180ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM = _pcbnew.ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM
15181
15182ZONE_THICKNESS_MM = _pcbnew.ZONE_THICKNESS_MM
15183
15184ZONE_THICKNESS_MIN_VALUE_MM = _pcbnew.ZONE_THICKNESS_MIN_VALUE_MM
15185
15186ZONE_CLEARANCE_MM = _pcbnew.ZONE_CLEARANCE_MM
15187
15188ZONE_CLEARANCE_MAX_VALUE_MM = _pcbnew.ZONE_CLEARANCE_MAX_VALUE_MM
15189
15190ZONE_BORDER_HATCH_DIST_MM = _pcbnew.ZONE_BORDER_HATCH_DIST_MM
15191
15192ZONE_BORDER_HATCH_MINDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MINDIST_MM
15193
15194ZONE_BORDER_HATCH_MAXDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MAXDIST_MM
15195
15196ZONE_MANAGER_REPOUR = _pcbnew.ZONE_MANAGER_REPOUR
15197
15198ZONE_CONNECTION_INHERITED = _pcbnew.ZONE_CONNECTION_INHERITED
15199
15200ZONE_CONNECTION_NONE = _pcbnew.ZONE_CONNECTION_NONE
15201
15202ZONE_CONNECTION_THERMAL = _pcbnew.ZONE_CONNECTION_THERMAL
15203
15204ZONE_CONNECTION_FULL = _pcbnew.ZONE_CONNECTION_FULL
15205
15206ZONE_CONNECTION_THT_THERMAL = _pcbnew.ZONE_CONNECTION_THT_THERMAL
15207
15208
15209def PrintZoneConnection(aConnection):
15210 r"""PrintZoneConnection(ZONE_CONNECTION aConnection) -> wxString"""
15211 return _pcbnew.PrintZoneConnection(aConnection)
15212
15213def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None):
15214 r"""InvokeNonCopperZonesEditor(PCB_BASE_FRAME * aParent, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
15215 return _pcbnew.InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings)
15216
15217def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None):
15218 r"""InvokeCopperZonesEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
15219 return _pcbnew.InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings)
15220
15221def InvokeRuleAreaEditor(aCaller, aSettings, aBoard=None, aConvertSettings=None):
15222 r"""InvokeRuleAreaEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, BOARD aBoard=None, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
15223 return _pcbnew.InvokeRuleAreaEditor(aCaller, aSettings, aBoard, aConvertSettings)
15225 r"""Proxy of C++ ZONE_FILLER class."""
15226
15227 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15228 __repr__ = _swig_repr
15229 __swig_destroy__ = _pcbnew.delete_ZONE_FILLER
15230
15231 def SetProgressReporter(self, aReporter):
15232 r"""SetProgressReporter(ZONE_FILLER self, PROGRESS_REPORTER * aReporter)"""
15233 return _pcbnew.ZONE_FILLER_SetProgressReporter(self, aReporter)
15234
15236 r"""GetProgressReporter(ZONE_FILLER self) -> PROGRESS_REPORTER *"""
15237 return _pcbnew.ZONE_FILLER_GetProgressReporter(self)
15238
15239 def Fill(self, aZones, aCheck=False, aParent=None):
15240 r"""Fill(ZONE_FILLER self, ZONES aZones, bool aCheck=False, wxWindow * aParent=None) -> bool"""
15241 return _pcbnew.ZONE_FILLER_Fill(self, aZones, aCheck, aParent)
15242
15243 def IsDebug(self):
15244 r"""IsDebug(ZONE_FILLER self) -> bool"""
15245 return _pcbnew.ZONE_FILLER_IsDebug(self)
15246
15247 def __init__(self, aBoard):
15248 r"""__init__(ZONE_FILLER self, BOARD aBoard) -> ZONE_FILLER"""
15249 _pcbnew.ZONE_FILLER_swiginit(self, _pcbnew.new_ZONE_FILLER(aBoard))
15250
15251# Register ZONE_FILLER in _pcbnew:
15252_pcbnew.ZONE_FILLER_swigregister(ZONE_FILLER)
15253ZONE_FILL_MODE_POLYGONS = _pcbnew.ZONE_FILL_MODE_POLYGONS
15254
15255ZONE_FILL_MODE_HATCH_PATTERN = _pcbnew.ZONE_FILL_MODE_HATCH_PATTERN
15256
15257ZONE_BORDER_DISPLAY_STYLE_NO_HATCH = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_NO_HATCH
15258
15259ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL
15260
15261ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE
15262
15263ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER
15264
15265ISLAND_REMOVAL_MODE_ALWAYS = _pcbnew.ISLAND_REMOVAL_MODE_ALWAYS
15266
15267ISLAND_REMOVAL_MODE_NEVER = _pcbnew.ISLAND_REMOVAL_MODE_NEVER
15268
15269ISLAND_REMOVAL_MODE_AREA = _pcbnew.ISLAND_REMOVAL_MODE_AREA
15270
15271RULE_AREA_PLACEMENT_SOURCE_TYPE_SHEETNAME = _pcbnew.RULE_AREA_PLACEMENT_SOURCE_TYPE_SHEETNAME
15272
15273RULE_AREA_PLACEMENT_SOURCE_TYPE_COMPONENT_CLASS = _pcbnew.RULE_AREA_PLACEMENT_SOURCE_TYPE_COMPONENT_CLASS
15274
15276 r"""Proxy of C++ ZONE_SETTINGS class."""
15277
15278 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15279 __repr__ = _swig_repr
15280 SMOOTHING_UNDEFINED = _pcbnew.ZONE_SETTINGS_SMOOTHING_UNDEFINED
15281
15282 SMOOTHING_NONE = _pcbnew.ZONE_SETTINGS_SMOOTHING_NONE
15283
15284 SMOOTHING_CHAMFER = _pcbnew.ZONE_SETTINGS_SMOOTHING_CHAMFER
15285
15286 SMOOTHING_FILLET = _pcbnew.ZONE_SETTINGS_SMOOTHING_FILLET
15287
15288 SMOOTHING_LAST = _pcbnew.ZONE_SETTINGS_SMOOTHING_LAST
15289
15290 m_ZonePriority = property(_pcbnew.ZONE_SETTINGS_m_ZonePriority_get, _pcbnew.ZONE_SETTINGS_m_ZonePriority_set, doc=r"""m_ZonePriority : unsigned int""")
15291 m_FillMode = property(_pcbnew.ZONE_SETTINGS_m_FillMode_get, _pcbnew.ZONE_SETTINGS_m_FillMode_set, doc=r"""m_FillMode : ZONE_FILL_MODE""")
15292 m_ZoneClearance = property(_pcbnew.ZONE_SETTINGS_m_ZoneClearance_get, _pcbnew.ZONE_SETTINGS_m_ZoneClearance_set, doc=r"""m_ZoneClearance : int""")
15293 m_ZoneMinThickness = property(_pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_get, _pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_set, doc=r"""m_ZoneMinThickness : int""")
15294 m_HatchThickness = property(_pcbnew.ZONE_SETTINGS_m_HatchThickness_get, _pcbnew.ZONE_SETTINGS_m_HatchThickness_set, doc=r"""m_HatchThickness : int""")
15295 m_HatchGap = property(_pcbnew.ZONE_SETTINGS_m_HatchGap_get, _pcbnew.ZONE_SETTINGS_m_HatchGap_set, doc=r"""m_HatchGap : int""")
15296 m_HatchOrientation = property(_pcbnew.ZONE_SETTINGS_m_HatchOrientation_get, _pcbnew.ZONE_SETTINGS_m_HatchOrientation_set, doc=r"""m_HatchOrientation : EDA_ANGLE""")
15297 m_HatchSmoothingLevel = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_set, doc=r"""m_HatchSmoothingLevel : int""")
15298 m_HatchSmoothingValue = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_set, doc=r"""m_HatchSmoothingValue : double""")
15299 m_HatchHoleMinArea = property(_pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_get, _pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_set, doc=r"""m_HatchHoleMinArea : double""")
15300 m_HatchBorderAlgorithm = property(_pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_get, _pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_set, doc=r"""m_HatchBorderAlgorithm : int""")
15301 m_NetcodeSelection = property(_pcbnew.ZONE_SETTINGS_m_NetcodeSelection_get, _pcbnew.ZONE_SETTINGS_m_NetcodeSelection_set, doc=r"""m_NetcodeSelection : int""")
15302 m_Name = property(_pcbnew.ZONE_SETTINGS_m_Name_get, _pcbnew.ZONE_SETTINGS_m_Name_set, doc=r"""m_Name : wxString""")
15303 m_Layers = property(_pcbnew.ZONE_SETTINGS_m_Layers_get, _pcbnew.ZONE_SETTINGS_m_Layers_set, doc=r"""m_Layers : LSET""")
15304 m_ZoneBorderDisplayStyle = property(_pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_get, _pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_set, doc=r"""m_ZoneBorderDisplayStyle : ZONE_BORDER_DISPLAY_STYLE""")
15305 m_BorderHatchPitch = property(_pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_get, _pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_set, doc=r"""m_BorderHatchPitch : int""")
15306 m_ThermalReliefGap = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_set, doc=r"""m_ThermalReliefGap : long""")
15307 m_ThermalReliefSpokeWidth = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_set, doc=r"""m_ThermalReliefSpokeWidth : long""")
15308 m_Locked = property(_pcbnew.ZONE_SETTINGS_m_Locked_get, _pcbnew.ZONE_SETTINGS_m_Locked_set, doc=r"""m_Locked : bool""")
15309 m_TeardropType = property(_pcbnew.ZONE_SETTINGS_m_TeardropType_get, _pcbnew.ZONE_SETTINGS_m_TeardropType_set, doc=r"""m_TeardropType : TEARDROP_TYPE""")
15310
15311 def __init__(self):
15312 r"""__init__(ZONE_SETTINGS self) -> ZONE_SETTINGS"""
15313 _pcbnew.ZONE_SETTINGS_swiginit(self, _pcbnew.new_ZONE_SETTINGS())
15314
15315 def __eq__(self, aOther):
15316 r"""__eq__(ZONE_SETTINGS self, ZONE_SETTINGS aOther) -> bool"""
15317 return _pcbnew.ZONE_SETTINGS___eq__(self, aOther)
15318
15319 def __ne__(self, aOther):
15320 r"""__ne__(ZONE_SETTINGS self, ZONE_SETTINGS aOther) -> bool"""
15321 return _pcbnew.ZONE_SETTINGS___ne__(self, aOther)
15322
15323 def __lshift__(self, aSource):
15324 r"""__lshift__(ZONE_SETTINGS self, ZONE aSource) -> ZONE_SETTINGS"""
15325 return _pcbnew.ZONE_SETTINGS___lshift__(self, aSource)
15326
15327 @staticmethod
15329 r"""GetDefaultSettings() -> ZONE_SETTINGS"""
15330 return _pcbnew.ZONE_SETTINGS_GetDefaultSettings()
15331
15332 def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode):
15333 r"""SetupLayersList(ZONE_SETTINGS self, wxDataViewListCtrl * aList, PCB_BASE_FRAME * aFrame, LSET aLayers, bool aFpEditorMode)"""
15334 return _pcbnew.ZONE_SETTINGS_SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
15335
15336 def ExportSetting(self, aTarget, aFullExport=True):
15337 r"""ExportSetting(ZONE_SETTINGS self, ZONE aTarget, bool aFullExport=True)"""
15338 return _pcbnew.ZONE_SETTINGS_ExportSetting(self, aTarget, aFullExport)
15339
15340 def SetCornerSmoothingType(self, aType):
15341 r"""SetCornerSmoothingType(ZONE_SETTINGS self, int aType)"""
15342 return _pcbnew.ZONE_SETTINGS_SetCornerSmoothingType(self, aType)
15343
15345 r"""GetCornerSmoothingType(ZONE_SETTINGS self) -> int"""
15346 return _pcbnew.ZONE_SETTINGS_GetCornerSmoothingType(self)
15347
15348 def SetCornerRadius(self, aRadius):
15349 r"""SetCornerRadius(ZONE_SETTINGS self, int aRadius)"""
15350 return _pcbnew.ZONE_SETTINGS_SetCornerRadius(self, aRadius)
15351
15353 r"""GetCornerRadius(ZONE_SETTINGS self) -> unsigned int"""
15354 return _pcbnew.ZONE_SETTINGS_GetCornerRadius(self)
15355
15357 r"""GetPadConnection(ZONE_SETTINGS self) -> ZONE_CONNECTION"""
15358 return _pcbnew.ZONE_SETTINGS_GetPadConnection(self)
15359
15360 def SetPadConnection(self, aPadConnection):
15361 r"""SetPadConnection(ZONE_SETTINGS self, ZONE_CONNECTION aPadConnection)"""
15362 return _pcbnew.ZONE_SETTINGS_SetPadConnection(self, aPadConnection)
15363
15365 r"""HasKeepoutParametersSet(ZONE_SETTINGS self) -> bool"""
15366 return _pcbnew.ZONE_SETTINGS_HasKeepoutParametersSet(self)
15367
15368 def GetIsRuleArea(self):
15369 r"""GetIsRuleArea(ZONE_SETTINGS self) -> bool"""
15370 return _pcbnew.ZONE_SETTINGS_GetIsRuleArea(self)
15371
15373 r"""GetRuleAreaPlacementEnabled(ZONE_SETTINGS self) -> bool"""
15374 return _pcbnew.ZONE_SETTINGS_GetRuleAreaPlacementEnabled(self)
15375
15377 r"""GetRuleAreaPlacementSourceType(ZONE_SETTINGS self) -> RULE_AREA_PLACEMENT_SOURCE_TYPE"""
15378 return _pcbnew.ZONE_SETTINGS_GetRuleAreaPlacementSourceType(self)
15379
15381 r"""GetRuleAreaPlacementSource(ZONE_SETTINGS self) -> wxString"""
15382 return _pcbnew.ZONE_SETTINGS_GetRuleAreaPlacementSource(self)
15383
15385 r"""GetDoNotAllowCopperPour(ZONE_SETTINGS self) -> bool"""
15386 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowCopperPour(self)
15387
15389 r"""GetDoNotAllowVias(ZONE_SETTINGS self) -> bool"""
15390 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowVias(self)
15391
15393 r"""GetDoNotAllowTracks(ZONE_SETTINGS self) -> bool"""
15394 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowTracks(self)
15395
15397 r"""GetDoNotAllowPads(ZONE_SETTINGS self) -> bool"""
15398 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowPads(self)
15399
15401 r"""GetDoNotAllowFootprints(ZONE_SETTINGS self) -> bool"""
15402 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowFootprints(self)
15403
15404 def SetIsRuleArea(self, aEnable):
15405 r"""SetIsRuleArea(ZONE_SETTINGS self, bool aEnable)"""
15406 return _pcbnew.ZONE_SETTINGS_SetIsRuleArea(self, aEnable)
15407
15408 def SetRuleAreaPlacementEnabled(self, aEnabled):
15409 r"""SetRuleAreaPlacementEnabled(ZONE_SETTINGS self, bool aEnabled)"""
15410 return _pcbnew.ZONE_SETTINGS_SetRuleAreaPlacementEnabled(self, aEnabled)
15411
15413 r"""SetRuleAreaPlacementSourceType(ZONE_SETTINGS self, RULE_AREA_PLACEMENT_SOURCE_TYPE aType)"""
15414 return _pcbnew.ZONE_SETTINGS_SetRuleAreaPlacementSourceType(self, aType)
15415
15416 def SetRuleAreaPlacementSource(self, aSource):
15417 r"""SetRuleAreaPlacementSource(ZONE_SETTINGS self, wxString aSource)"""
15418 return _pcbnew.ZONE_SETTINGS_SetRuleAreaPlacementSource(self, aSource)
15419
15420 def SetDoNotAllowCopperPour(self, aEnable):
15421 r"""SetDoNotAllowCopperPour(ZONE_SETTINGS self, bool aEnable)"""
15422 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowCopperPour(self, aEnable)
15423
15424 def SetDoNotAllowVias(self, aEnable):
15425 r"""SetDoNotAllowVias(ZONE_SETTINGS self, bool aEnable)"""
15426 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowVias(self, aEnable)
15427
15428 def SetDoNotAllowTracks(self, aEnable):
15429 r"""SetDoNotAllowTracks(ZONE_SETTINGS self, bool aEnable)"""
15430 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowTracks(self, aEnable)
15431
15432 def SetDoNotAllowPads(self, aEnable):
15433 r"""SetDoNotAllowPads(ZONE_SETTINGS self, bool aEnable)"""
15434 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowPads(self, aEnable)
15435
15436 def SetDoNotAllowFootprints(self, aEnable):
15437 r"""SetDoNotAllowFootprints(ZONE_SETTINGS self, bool aEnable)"""
15438 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowFootprints(self, aEnable)
15439
15441 r"""GetIslandRemovalMode(ZONE_SETTINGS self) -> ISLAND_REMOVAL_MODE"""
15442 return _pcbnew.ZONE_SETTINGS_GetIslandRemovalMode(self)
15443
15444 def SetIslandRemovalMode(self, aRemove):
15445 r"""SetIslandRemovalMode(ZONE_SETTINGS self, ISLAND_REMOVAL_MODE aRemove)"""
15446 return _pcbnew.ZONE_SETTINGS_SetIslandRemovalMode(self, aRemove)
15447
15449 r"""GetMinIslandArea(ZONE_SETTINGS self) -> long long"""
15450 return _pcbnew.ZONE_SETTINGS_GetMinIslandArea(self)
15451
15452 def SetMinIslandArea(self, aArea):
15453 r"""SetMinIslandArea(ZONE_SETTINGS self, long long aArea)"""
15454 return _pcbnew.ZONE_SETTINGS_SetMinIslandArea(self, aArea)
15455 __swig_destroy__ = _pcbnew.delete_ZONE_SETTINGS
15456
15457# Register ZONE_SETTINGS in _pcbnew:
15458_pcbnew.ZONE_SETTINGS_swigregister(ZONE_SETTINGS)
15459TENTHS_OF_A_DEGREE_T = _pcbnew.TENTHS_OF_A_DEGREE_T
15460
15461DEGREES_T = _pcbnew.DEGREES_T
15462
15463RADIANS_T = _pcbnew.RADIANS_T
15464
15466 r"""Proxy of C++ EDA_ANGLE class."""
15467
15468 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15469 __repr__ = _swig_repr
15470
15471 def __init__(self, *args):
15472 r"""
15473 __init__(EDA_ANGLE self, double aValue, EDA_ANGLE_T aAngleType) -> EDA_ANGLE
15474 __init__(EDA_ANGLE self, double aAngleInDegrees) -> EDA_ANGLE
15475 __init__(EDA_ANGLE self, VECTOR2D const & aVector) -> EDA_ANGLE
15476 __init__(EDA_ANGLE self) -> EDA_ANGLE
15477 """
15478 _pcbnew.EDA_ANGLE_swiginit(self, _pcbnew.new_EDA_ANGLE(*args))
15479
15480 def AsDegrees(self):
15481 r"""AsDegrees(EDA_ANGLE self) -> double"""
15482 return _pcbnew.EDA_ANGLE_AsDegrees(self)
15483
15485 r"""AsTenthsOfADegree(EDA_ANGLE self) -> int"""
15486 return _pcbnew.EDA_ANGLE_AsTenthsOfADegree(self)
15487
15488 def AsRadians(self):
15489 r"""AsRadians(EDA_ANGLE self) -> double"""
15490 return _pcbnew.EDA_ANGLE_AsRadians(self)
15491 DEGREES_TO_RADIANS = _pcbnew.EDA_ANGLE_DEGREES_TO_RADIANS
15492
15493
15494 def IsCardinal(self):
15495 r"""IsCardinal(EDA_ANGLE self) -> bool"""
15496 return _pcbnew.EDA_ANGLE_IsCardinal(self)
15497
15498 def IsCardinal90(self):
15499 r"""IsCardinal90(EDA_ANGLE self) -> bool"""
15500 return _pcbnew.EDA_ANGLE_IsCardinal90(self)
15501
15502 def IsZero(self):
15503 r"""IsZero(EDA_ANGLE self) -> bool"""
15504 return _pcbnew.EDA_ANGLE_IsZero(self)
15505
15506 def IsHorizontal(self):
15507 r"""IsHorizontal(EDA_ANGLE self) -> bool"""
15508 return _pcbnew.EDA_ANGLE_IsHorizontal(self)
15509
15510 def IsVertical(self):
15511 r"""IsVertical(EDA_ANGLE self) -> bool"""
15512 return _pcbnew.EDA_ANGLE_IsVertical(self)
15513
15514 def IsParallelTo(self, aAngle):
15515 r"""IsParallelTo(EDA_ANGLE self, EDA_ANGLE aAngle) -> bool"""
15516 return _pcbnew.EDA_ANGLE_IsParallelTo(self, aAngle)
15517
15518 def Invert(self):
15519 r"""Invert(EDA_ANGLE self) -> EDA_ANGLE"""
15520 return _pcbnew.EDA_ANGLE_Invert(self)
15521
15522 def Sin(self):
15523 r"""Sin(EDA_ANGLE self) -> double"""
15524 return _pcbnew.EDA_ANGLE_Sin(self)
15525
15526 def Cos(self):
15527 r"""Cos(EDA_ANGLE self) -> double"""
15528 return _pcbnew.EDA_ANGLE_Cos(self)
15529
15530 def Tan(self):
15531 r"""Tan(EDA_ANGLE self) -> double"""
15532 return _pcbnew.EDA_ANGLE_Tan(self)
15533
15534 @staticmethod
15535 def Arccos(x):
15536 r"""Arccos(double x) -> EDA_ANGLE"""
15537 return _pcbnew.EDA_ANGLE_Arccos(x)
15538
15539 @staticmethod
15540 def Arcsin(x):
15541 r"""Arcsin(double x) -> EDA_ANGLE"""
15542 return _pcbnew.EDA_ANGLE_Arcsin(x)
15543
15544 @staticmethod
15545 def Arctan(x):
15546 r"""Arctan(double x) -> EDA_ANGLE"""
15547 return _pcbnew.EDA_ANGLE_Arctan(x)
15548
15549 @staticmethod
15550 def Arctan2(y, x):
15551 r"""Arctan2(double y, double x) -> EDA_ANGLE"""
15552 return _pcbnew.EDA_ANGLE_Arctan2(y, x)
15553
15554 def Normalize(self):
15555 r"""Normalize(EDA_ANGLE self) -> EDA_ANGLE"""
15556 return _pcbnew.EDA_ANGLE_Normalize(self)
15557
15558 def Normalized(self):
15559 r"""Normalized(EDA_ANGLE self) -> EDA_ANGLE"""
15560 return _pcbnew.EDA_ANGLE_Normalized(self)
15561
15563 r"""NormalizeNegative(EDA_ANGLE self) -> EDA_ANGLE"""
15564 return _pcbnew.EDA_ANGLE_NormalizeNegative(self)
15565
15566 def Normalize90(self):
15567 r"""Normalize90(EDA_ANGLE self) -> EDA_ANGLE"""
15568 return _pcbnew.EDA_ANGLE_Normalize90(self)
15569
15570 def Normalize180(self):
15571 r"""Normalize180(EDA_ANGLE self) -> EDA_ANGLE"""
15572 return _pcbnew.EDA_ANGLE_Normalize180(self)
15573
15574 def Normalize720(self):
15575 r"""Normalize720(EDA_ANGLE self) -> EDA_ANGLE"""
15576 return _pcbnew.EDA_ANGLE_Normalize720(self)
15577
15578 def KeepUpright(self):
15579 r"""KeepUpright(EDA_ANGLE self) -> EDA_ANGLE"""
15580 return _pcbnew.EDA_ANGLE_KeepUpright(self)
15581
15582 def Round(self, digits):
15583 r"""Round(EDA_ANGLE self, int digits) -> EDA_ANGLE"""
15584 return _pcbnew.EDA_ANGLE_Round(self, digits)
15585
15586 def __iadd__(self, aAngle):
15587 r"""__iadd__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
15588 return _pcbnew.EDA_ANGLE___iadd__(self, aAngle)
15589
15590 def __isub__(self, aAngle):
15591 r"""__isub__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
15592 return _pcbnew.EDA_ANGLE___isub__(self, aAngle)
15593
15594 def __add__(self, other):
15595 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
15596 n += other
15597 return n
15598
15599 def __sub__(self, other):
15600 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
15601 n -= other
15602 return n
15603
15604 def __mul__(self, other):
15605 return EDA_ANGLE(self.AsDegrees() * other, DEGREES_T)
15606
15607 def __rmul__(self, other):
15608 return EDA_ANGLE(other * self.AsDegrees(), DEGREES_T)
15609
15610 def __truediv__(self, other):
15611 return EDA_ANGLE(self.AsDegrees() / other, DEGREES_T)
15612
15613 def __abs__(self):
15614 return EDA_ANGLE(abs(self.AsDegrees()), DEGREES_T)
15615
15616 __swig_destroy__ = _pcbnew.delete_EDA_ANGLE
15617
15618# Register EDA_ANGLE in _pcbnew:
15619_pcbnew.EDA_ANGLE_swigregister(EDA_ANGLE)
15620SHAPE_T_UNDEFINED = _pcbnew.SHAPE_T_UNDEFINED
15621
15622SHAPE_T_SEGMENT = _pcbnew.SHAPE_T_SEGMENT
15623
15624SHAPE_T_RECTANGLE = _pcbnew.SHAPE_T_RECTANGLE
15625
15626SHAPE_T_ARC = _pcbnew.SHAPE_T_ARC
15627
15628SHAPE_T_CIRCLE = _pcbnew.SHAPE_T_CIRCLE
15629
15630SHAPE_T_POLY = _pcbnew.SHAPE_T_POLY
15631
15632SHAPE_T_BEZIER = _pcbnew.SHAPE_T_BEZIER
15633
15634FILL_T_NO_FILL = _pcbnew.FILL_T_NO_FILL
15635
15636FILL_T_FILLED_SHAPE = _pcbnew.FILL_T_FILLED_SHAPE
15637
15638FILL_T_FILLED_WITH_BG_BODYCOLOR = _pcbnew.FILL_T_FILLED_WITH_BG_BODYCOLOR
15639
15640FILL_T_FILLED_WITH_COLOR = _pcbnew.FILL_T_FILLED_WITH_COLOR
15641
15643 r"""Proxy of C++ ARC_MID class."""
15644
15645 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15646 __repr__ = _swig_repr
15647 mid = property(_pcbnew.ARC_MID_mid_get, _pcbnew.ARC_MID_mid_set, doc=r"""mid : VECTOR2I""")
15648 start = property(_pcbnew.ARC_MID_start_get, _pcbnew.ARC_MID_start_set, doc=r"""start : VECTOR2I""")
15649 end = property(_pcbnew.ARC_MID_end_get, _pcbnew.ARC_MID_end_set, doc=r"""end : VECTOR2I""")
15650 center = property(_pcbnew.ARC_MID_center_get, _pcbnew.ARC_MID_center_set, doc=r"""center : VECTOR2I""")
15651
15652 def __init__(self):
15653 r"""__init__(ARC_MID self) -> ARC_MID"""
15654 _pcbnew.ARC_MID_swiginit(self, _pcbnew.new_ARC_MID())
15655 __swig_destroy__ = _pcbnew.delete_ARC_MID
15656
15657# Register ARC_MID in _pcbnew:
15658_pcbnew.ARC_MID_swigregister(ARC_MID)
15659ANGLE_HORIZONTAL = cvar.ANGLE_HORIZONTAL
15660ANGLE_VERTICAL = cvar.ANGLE_VERTICAL
15661FULL_CIRCLE = cvar.FULL_CIRCLE
15662ANGLE_0 = cvar.ANGLE_0
15663ANGLE_45 = cvar.ANGLE_45
15664ANGLE_90 = cvar.ANGLE_90
15665ANGLE_135 = cvar.ANGLE_135
15666ANGLE_180 = cvar.ANGLE_180
15667ANGLE_270 = cvar.ANGLE_270
15668ANGLE_360 = cvar.ANGLE_360
15669
15671 r"""Proxy of C++ EDA_SHAPE class."""
15672
15673 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15674 __repr__ = _swig_repr
15675
15676 def __init__(self, *args):
15677 r"""
15678 __init__(EDA_SHAPE self, SHAPE_T aType, int aLineWidth, FILL_T aFill) -> EDA_SHAPE
15679 __init__(EDA_SHAPE self, SHAPE aShape) -> EDA_SHAPE
15680 """
15681 _pcbnew.EDA_SHAPE_swiginit(self, _pcbnew.new_EDA_SHAPE(*args))
15682 __swig_destroy__ = _pcbnew.delete_EDA_SHAPE
15683
15684 def SwapShape(self, aImage):
15685 r"""SwapShape(EDA_SHAPE self, EDA_SHAPE aImage)"""
15686 return _pcbnew.EDA_SHAPE_SwapShape(self, aImage)
15687
15688 def Serialize(self, aContainer):
15689 r"""Serialize(EDA_SHAPE self, google::protobuf::Any & aContainer)"""
15690 return _pcbnew.EDA_SHAPE_Serialize(self, aContainer)
15691
15692 def Deserialize(self, aContainer):
15693 r"""Deserialize(EDA_SHAPE self, google::protobuf::Any const & aContainer) -> bool"""
15694 return _pcbnew.EDA_SHAPE_Deserialize(self, aContainer)
15695
15696 def ShowShape(self):
15697 r"""ShowShape(EDA_SHAPE self) -> wxString"""
15698 return _pcbnew.EDA_SHAPE_ShowShape(self)
15699
15701 r"""SHAPE_T_asString(EDA_SHAPE self) -> wxString"""
15702 return _pcbnew.EDA_SHAPE_SHAPE_T_asString(self)
15703
15704 def IsProxyItem(self):
15705 r"""IsProxyItem(EDA_SHAPE self) -> bool"""
15706 return _pcbnew.EDA_SHAPE_IsProxyItem(self)
15707
15708 def SetIsProxyItem(self, aIsProxy=True):
15709 r"""SetIsProxyItem(EDA_SHAPE self, bool aIsProxy=True)"""
15710 return _pcbnew.EDA_SHAPE_SetIsProxyItem(self, aIsProxy)
15711
15712 def IsFilled(self):
15713 r"""IsFilled(EDA_SHAPE self) -> bool"""
15714 return _pcbnew.EDA_SHAPE_IsFilled(self)
15715
15717 r"""IsFilledForHitTesting(EDA_SHAPE self) -> bool"""
15718 return _pcbnew.EDA_SHAPE_IsFilledForHitTesting(self)
15719
15720 def SetFilled(self, aFlag):
15721 r"""SetFilled(EDA_SHAPE self, bool aFlag)"""
15722 return _pcbnew.EDA_SHAPE_SetFilled(self, aFlag)
15723
15724 def SetFillMode(self, aFill):
15725 r"""SetFillMode(EDA_SHAPE self, FILL_T aFill)"""
15726 return _pcbnew.EDA_SHAPE_SetFillMode(self, aFill)
15727
15728 def GetFillMode(self):
15729 r"""GetFillMode(EDA_SHAPE self) -> FILL_T"""
15730 return _pcbnew.EDA_SHAPE_GetFillMode(self)
15731
15732 def IsClosed(self):
15733 r"""IsClosed(EDA_SHAPE self) -> bool"""
15734 return _pcbnew.EDA_SHAPE_IsClosed(self)
15735
15736 def GetFillColor(self):
15737 r"""GetFillColor(EDA_SHAPE self) -> COLOR4D"""
15738 return _pcbnew.EDA_SHAPE_GetFillColor(self)
15739
15740 def SetFillColor(self, aColor):
15741 r"""SetFillColor(EDA_SHAPE self, COLOR4D aColor)"""
15742 return _pcbnew.EDA_SHAPE_SetFillColor(self, aColor)
15743
15744 def SetWidth(self, aWidth):
15745 r"""SetWidth(EDA_SHAPE self, int aWidth)"""
15746 return _pcbnew.EDA_SHAPE_SetWidth(self, aWidth)
15747
15748 def GetWidth(self):
15749 r"""GetWidth(EDA_SHAPE self) -> int"""
15750 return _pcbnew.EDA_SHAPE_GetWidth(self)
15751
15753 r"""GetEffectiveWidth(EDA_SHAPE self) -> int"""
15754 return _pcbnew.EDA_SHAPE_GetEffectiveWidth(self)
15755
15756 def SetLineStyle(self, aStyle):
15757 r"""SetLineStyle(EDA_SHAPE self, LINE_STYLE const aStyle)"""
15758 return _pcbnew.EDA_SHAPE_SetLineStyle(self, aStyle)
15759
15760 def GetLineStyle(self):
15761 r"""GetLineStyle(EDA_SHAPE self) -> LINE_STYLE"""
15762 return _pcbnew.EDA_SHAPE_GetLineStyle(self)
15763
15764 def SetLineColor(self, aColor):
15765 r"""SetLineColor(EDA_SHAPE self, COLOR4D aColor)"""
15766 return _pcbnew.EDA_SHAPE_SetLineColor(self, aColor)
15767
15768 def GetLineColor(self):
15769 r"""GetLineColor(EDA_SHAPE self) -> COLOR4D"""
15770 return _pcbnew.EDA_SHAPE_GetLineColor(self)
15771
15772 def SetShape(self, aShape):
15773 r"""SetShape(EDA_SHAPE self, SHAPE_T aShape)"""
15774 return _pcbnew.EDA_SHAPE_SetShape(self, aShape)
15775
15776 def GetShape(self):
15777 r"""GetShape(EDA_SHAPE self) -> SHAPE_T"""
15778 return _pcbnew.EDA_SHAPE_GetShape(self)
15779
15780 def GetStart(self):
15781 r"""GetStart(EDA_SHAPE self) -> VECTOR2I"""
15782 return _pcbnew.EDA_SHAPE_GetStart(self)
15783
15784 def GetStartY(self):
15785 r"""GetStartY(EDA_SHAPE self) -> int"""
15786 return _pcbnew.EDA_SHAPE_GetStartY(self)
15787
15788 def GetStartX(self):
15789 r"""GetStartX(EDA_SHAPE self) -> int"""
15790 return _pcbnew.EDA_SHAPE_GetStartX(self)
15791
15792 def SetStart(self, aStart):
15793 r"""SetStart(EDA_SHAPE self, VECTOR2I aStart)"""
15794 return _pcbnew.EDA_SHAPE_SetStart(self, aStart)
15795
15796 def SetStartY(self, y):
15797 r"""SetStartY(EDA_SHAPE self, int y)"""
15798 return _pcbnew.EDA_SHAPE_SetStartY(self, y)
15799
15800 def SetStartX(self, x):
15801 r"""SetStartX(EDA_SHAPE self, int x)"""
15802 return _pcbnew.EDA_SHAPE_SetStartX(self, x)
15803
15804 def SetCenterY(self, y):
15805 r"""SetCenterY(EDA_SHAPE self, int y)"""
15806 return _pcbnew.EDA_SHAPE_SetCenterY(self, y)
15807
15808 def SetCenterX(self, x):
15809 r"""SetCenterX(EDA_SHAPE self, int x)"""
15810 return _pcbnew.EDA_SHAPE_SetCenterX(self, x)
15811
15812 def GetEnd(self):
15813 r"""GetEnd(EDA_SHAPE self) -> VECTOR2I"""
15814 return _pcbnew.EDA_SHAPE_GetEnd(self)
15815
15816 def GetEndY(self):
15817 r"""GetEndY(EDA_SHAPE self) -> int"""
15818 return _pcbnew.EDA_SHAPE_GetEndY(self)
15819
15820 def GetEndX(self):
15821 r"""GetEndX(EDA_SHAPE self) -> int"""
15822 return _pcbnew.EDA_SHAPE_GetEndX(self)
15823
15824 def SetEnd(self, aEnd):
15825 r"""SetEnd(EDA_SHAPE self, VECTOR2I aEnd)"""
15826 return _pcbnew.EDA_SHAPE_SetEnd(self, aEnd)
15827
15828 def SetEndY(self, aY):
15829 r"""SetEndY(EDA_SHAPE self, int aY)"""
15830 return _pcbnew.EDA_SHAPE_SetEndY(self, aY)
15831
15832 def SetEndX(self, aX):
15833 r"""SetEndX(EDA_SHAPE self, int aX)"""
15834 return _pcbnew.EDA_SHAPE_SetEndX(self, aX)
15835
15836 def SetRadius(self, aX):
15837 r"""SetRadius(EDA_SHAPE self, int aX)"""
15838 return _pcbnew.EDA_SHAPE_SetRadius(self, aX)
15839
15840 def GetTopLeft(self):
15841 r"""GetTopLeft(EDA_SHAPE self) -> VECTOR2I"""
15842 return _pcbnew.EDA_SHAPE_GetTopLeft(self)
15843
15844 def GetBotRight(self):
15845 r"""GetBotRight(EDA_SHAPE self) -> VECTOR2I"""
15846 return _pcbnew.EDA_SHAPE_GetBotRight(self)
15847
15848 def SetTop(self, val):
15849 r"""SetTop(EDA_SHAPE self, int val)"""
15850 return _pcbnew.EDA_SHAPE_SetTop(self, val)
15851
15852 def SetLeft(self, val):
15853 r"""SetLeft(EDA_SHAPE self, int val)"""
15854 return _pcbnew.EDA_SHAPE_SetLeft(self, val)
15855
15856 def SetRight(self, val):
15857 r"""SetRight(EDA_SHAPE self, int val)"""
15858 return _pcbnew.EDA_SHAPE_SetRight(self, val)
15859
15860 def SetBottom(self, val):
15861 r"""SetBottom(EDA_SHAPE self, int val)"""
15862 return _pcbnew.EDA_SHAPE_SetBottom(self, val)
15863
15864 def SetBezierC1(self, aPt):
15865 r"""SetBezierC1(EDA_SHAPE self, VECTOR2I aPt)"""
15866 return _pcbnew.EDA_SHAPE_SetBezierC1(self, aPt)
15867
15868 def GetBezierC1(self):
15869 r"""GetBezierC1(EDA_SHAPE self) -> VECTOR2I"""
15870 return _pcbnew.EDA_SHAPE_GetBezierC1(self)
15871
15872 def SetBezierC2(self, aPt):
15873 r"""SetBezierC2(EDA_SHAPE self, VECTOR2I aPt)"""
15874 return _pcbnew.EDA_SHAPE_SetBezierC2(self, aPt)
15875
15876 def GetBezierC2(self):
15877 r"""GetBezierC2(EDA_SHAPE self) -> VECTOR2I"""
15878 return _pcbnew.EDA_SHAPE_GetBezierC2(self)
15879
15880 def SetCenter(self, aCenter):
15881 r"""SetCenter(EDA_SHAPE self, VECTOR2I aCenter)"""
15882 return _pcbnew.EDA_SHAPE_SetCenter(self, aCenter)
15883
15884 def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False):
15885 r"""SetArcAngleAndEnd(EDA_SHAPE self, EDA_ANGLE aAngle, bool aCheckNegativeAngle=False)"""
15886 return _pcbnew.EDA_SHAPE_SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle)
15887
15888 def GetArcAngle(self):
15889 r"""GetArcAngle(EDA_SHAPE self) -> EDA_ANGLE"""
15890 return _pcbnew.EDA_SHAPE_GetArcAngle(self)
15891
15893 r"""GetSegmentAngle(EDA_SHAPE self) -> EDA_ANGLE"""
15894 return _pcbnew.EDA_SHAPE_GetSegmentAngle(self)
15895
15896 def EndsSwapped(self):
15897 r"""EndsSwapped(EDA_SHAPE self) -> bool"""
15898 return _pcbnew.EDA_SHAPE_EndsSwapped(self)
15899
15900 def GetArcMid(self):
15901 r"""GetArcMid(EDA_SHAPE self) -> VECTOR2I"""
15902 return _pcbnew.EDA_SHAPE_GetArcMid(self)
15903
15905 r"""GetRectCorners(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
15906 return _pcbnew.EDA_SHAPE_GetRectCorners(self)
15907
15908 def CalcArcAngles(self, aStartAngle, aEndAngle):
15909 r"""CalcArcAngles(EDA_SHAPE self, EDA_ANGLE aStartAngle, EDA_ANGLE aEndAngle)"""
15910 return _pcbnew.EDA_SHAPE_CalcArcAngles(self, aStartAngle, aEndAngle)
15911
15912 def GetRadius(self):
15913 r"""GetRadius(EDA_SHAPE self) -> int"""
15914 return _pcbnew.EDA_SHAPE_GetRadius(self)
15915
15916 def SetArcGeometry(self, aStart, aMid, aEnd):
15917 r"""SetArcGeometry(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd)"""
15918 return _pcbnew.EDA_SHAPE_SetArcGeometry(self, aStart, aMid, aEnd)
15919
15920 def SetCachedArcData(self, aStart, aMid, aEnd, aCenter):
15921 r"""SetCachedArcData(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd, VECTOR2I aCenter)"""
15922 return _pcbnew.EDA_SHAPE_SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
15923
15925 r"""GetBezierPoints(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
15926 return _pcbnew.EDA_SHAPE_GetBezierPoints(self)
15927
15928 def DupPolyPointsList(self, aBuffer):
15929 r"""DupPolyPointsList(EDA_SHAPE self, VECTOR_VECTOR2I aBuffer)"""
15930 return _pcbnew.EDA_SHAPE_DupPolyPointsList(self, aBuffer)
15931
15932 def GetPointCount(self):
15933 r"""GetPointCount(EDA_SHAPE self) -> int"""
15934 return _pcbnew.EDA_SHAPE_GetPointCount(self)
15935
15936 def GetPolyShape(self, *args):
15937 r"""
15938 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
15939 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
15940 """
15941 return _pcbnew.EDA_SHAPE_GetPolyShape(self, *args)
15942
15944 r"""IsPolyShapeValid(EDA_SHAPE self) -> bool"""
15945 return _pcbnew.EDA_SHAPE_IsPolyShapeValid(self)
15946
15947 def SetPolyShape(self, aShape):
15948 r"""SetPolyShape(EDA_SHAPE self, SHAPE_POLY_SET aShape)"""
15949 return _pcbnew.EDA_SHAPE_SetPolyShape(self, aShape)
15950
15951 def SetPolyPoints(self, aPoints):
15952 r"""SetPolyPoints(EDA_SHAPE self, VECTOR_VECTOR2I aPoints)"""
15953 return _pcbnew.EDA_SHAPE_SetPolyPoints(self, aPoints)
15954
15956 r"""RebuildBezierToSegmentsPointsList(EDA_SHAPE self, int aMaxError)"""
15957 return _pcbnew.EDA_SHAPE_RebuildBezierToSegmentsPointsList(self, aMaxError)
15958
15959 def MakeEffectiveShapes(self, aEdgeOnly=False):
15960 r"""MakeEffectiveShapes(EDA_SHAPE self, bool aEdgeOnly=False) -> std::vector< SHAPE *,std::allocator< SHAPE * > >"""
15961 return _pcbnew.EDA_SHAPE_MakeEffectiveShapes(self, aEdgeOnly)
15962
15963 def ShapeGetMsgPanelInfo(self, aFrame, aList):
15964 r"""ShapeGetMsgPanelInfo(EDA_SHAPE self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
15965 return _pcbnew.EDA_SHAPE_ShapeGetMsgPanelInfo(self, aFrame, aList)
15966
15967 def SetLength(self, aLength):
15968 r"""SetLength(EDA_SHAPE self, double const & aLength)"""
15969 return _pcbnew.EDA_SHAPE_SetLength(self, aLength)
15970
15971 def SetRectangleHeight(self, aHeight):
15972 r"""SetRectangleHeight(EDA_SHAPE self, int const & aHeight)"""
15973 return _pcbnew.EDA_SHAPE_SetRectangleHeight(self, aHeight)
15974
15975 def SetRectangleWidth(self, aWidth):
15976 r"""SetRectangleWidth(EDA_SHAPE self, int const & aWidth)"""
15977 return _pcbnew.EDA_SHAPE_SetRectangleWidth(self, aWidth)
15978
15979 def SetRectangle(self, aHeight, aWidth):
15980 r"""SetRectangle(EDA_SHAPE self, long long const & aHeight, long long const & aWidth)"""
15981 return _pcbnew.EDA_SHAPE_SetRectangle(self, aHeight, aWidth)
15982
15983 def SetSegmentAngle(self, aAngle):
15984 r"""SetSegmentAngle(EDA_SHAPE self, EDA_ANGLE aAngle)"""
15985 return _pcbnew.EDA_SHAPE_SetSegmentAngle(self, aAngle)
15986
15988 r"""IsClockwiseArc(EDA_SHAPE self) -> bool"""
15989 return _pcbnew.EDA_SHAPE_IsClockwiseArc(self)
15990
15991 def GetLength(self):
15992 r"""GetLength(EDA_SHAPE self) -> double"""
15993 return _pcbnew.EDA_SHAPE_GetLength(self)
15994
15996 r"""GetRectangleHeight(EDA_SHAPE self) -> int"""
15997 return _pcbnew.EDA_SHAPE_GetRectangleHeight(self)
15998
16000 r"""GetRectangleWidth(EDA_SHAPE self) -> int"""
16001 return _pcbnew.EDA_SHAPE_GetRectangleWidth(self)
16002
16003 def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
16004 r"""TransformShapeToPolygon(EDA_SHAPE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
16005 return _pcbnew.EDA_SHAPE_TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth)
16006
16007 def Compare(self, aOther):
16008 r"""Compare(EDA_SHAPE self, EDA_SHAPE aOther) -> int"""
16009 return _pcbnew.EDA_SHAPE_Compare(self, aOther)
16010
16011 def Similarity(self, aOther):
16012 r"""Similarity(EDA_SHAPE self, EDA_SHAPE aOther) -> double"""
16013 return _pcbnew.EDA_SHAPE_Similarity(self, aOther)
16014
16015 def __eq__(self, aOther):
16016 r"""__eq__(EDA_SHAPE self, EDA_SHAPE aOther) -> bool"""
16017 return _pcbnew.EDA_SHAPE___eq__(self, aOther)
16018
16019# Register EDA_SHAPE in _pcbnew:
16020_pcbnew.EDA_SHAPE_swigregister(EDA_SHAPE)
16022 r"""Proxy of C++ PCB_SHAPE class."""
16023
16024 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16025 __repr__ = _swig_repr
16026
16027 def __init__(self, *args):
16028 r"""
16029 __init__(PCB_SHAPE self, BOARD_ITEM aParent, KICAD_T aItemType, SHAPE_T aShapeType) -> PCB_SHAPE
16030 __init__(PCB_SHAPE self, BOARD_ITEM aParent=None, SHAPE_T aShapeType=SEGMENT) -> PCB_SHAPE
16031 """
16032 _pcbnew.PCB_SHAPE_swiginit(self, _pcbnew.new_PCB_SHAPE(*args))
16033 __swig_destroy__ = _pcbnew.delete_PCB_SHAPE
16034
16035 @staticmethod
16036 def ClassOf(aItem):
16037 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16038 return _pcbnew.PCB_SHAPE_ClassOf(aItem)
16039
16040 def Serialize(self, aContainer):
16041 r"""Serialize(PCB_SHAPE self, google::protobuf::Any & aContainer)"""
16042 return _pcbnew.PCB_SHAPE_Serialize(self, aContainer)
16043
16044 def Deserialize(self, aContainer):
16045 r"""Deserialize(PCB_SHAPE self, google::protobuf::Any const & aContainer) -> bool"""
16046 return _pcbnew.PCB_SHAPE_Deserialize(self, aContainer)
16047
16049 r"""GetConnectionPoints(PCB_SHAPE self) -> VECTOR_VECTOR2I"""
16050 return _pcbnew.PCB_SHAPE_GetConnectionPoints(self)
16051
16052 def GetCorners(self):
16053 r"""GetCorners(PCB_SHAPE self) -> VECTOR_VECTOR2I"""
16054 return _pcbnew.PCB_SHAPE_GetCorners(self)
16055
16056 def GetEffectiveShape(self, *args):
16057 r"""GetEffectiveShape(PCB_SHAPE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16058 return _pcbnew.PCB_SHAPE_GetEffectiveShape(self, *args)
16059
16060 def SetIsProxyItem(self, aIsProxy=True):
16061 r"""SetIsProxyItem(PCB_SHAPE self, bool aIsProxy=True)"""
16062 return _pcbnew.PCB_SHAPE_SetIsProxyItem(self, aIsProxy)
16063
16064 def HitTest(self, *args):
16065 r"""
16066 HitTest(PCB_SHAPE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
16067 HitTest(PCB_SHAPE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16068 """
16069 return _pcbnew.PCB_SHAPE_HitTest(self, *args)
16070
16071 def Scale(self, aScale):
16072 r"""Scale(PCB_SHAPE self, double aScale)"""
16073 return _pcbnew.PCB_SHAPE_Scale(self, aScale)
16074
16075 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
16076 r"""TransformShapeToPolygon(PCB_SHAPE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
16077 return _pcbnew.PCB_SHAPE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
16078
16079 def ViewGetLOD(self, aLayer, aView):
16080 r"""ViewGetLOD(PCB_SHAPE self, int aLayer, KIGFX::VIEW * aView) -> double"""
16081 return _pcbnew.PCB_SHAPE_ViewGetLOD(self, aLayer, aView)
16082
16083 def __eq__(self, *args):
16084 r"""
16085 __eq__(PCB_SHAPE self, PCB_SHAPE aShape) -> bool
16086 __eq__(PCB_SHAPE self, BOARD_ITEM aBoardItem) -> bool
16087 """
16088 return _pcbnew.PCB_SHAPE___eq__(self, *args)
16089
16090 def SetHasSolderMask(self, aVal):
16091 r"""SetHasSolderMask(PCB_SHAPE self, bool aVal)"""
16092 return _pcbnew.PCB_SHAPE_SetHasSolderMask(self, aVal)
16093
16094 def HasSolderMask(self):
16095 r"""HasSolderMask(PCB_SHAPE self) -> bool"""
16096 return _pcbnew.PCB_SHAPE_HasSolderMask(self)
16097
16098 def SetLocalSolderMaskMargin(self, aMargin):
16099 r"""SetLocalSolderMaskMargin(PCB_SHAPE self, std::optional< int > aMargin)"""
16100 return _pcbnew.PCB_SHAPE_SetLocalSolderMaskMargin(self, aMargin)
16101
16103 r"""GetLocalSolderMaskMargin(PCB_SHAPE self) -> std::optional< int >"""
16104 return _pcbnew.PCB_SHAPE_GetLocalSolderMaskMargin(self)
16105
16107 r"""GetSolderMaskExpansion(PCB_SHAPE self) -> int"""
16108 return _pcbnew.PCB_SHAPE_GetSolderMaskExpansion(self)
16109
16111 r"""GetArcAngleStart(PCB_SHAPE self) -> EDA_ANGLE"""
16112 return _pcbnew.PCB_SHAPE_GetArcAngleStart(self)
16113
16114 def GetShapeStr(self):
16115 return self.ShowShape()
16116
16117
16118# Register PCB_SHAPE in _pcbnew:
16119_pcbnew.PCB_SHAPE_swigregister(PCB_SHAPE)
16121 r"""Proxy of C++ PCB_TEXT class."""
16122
16123 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16124 __repr__ = _swig_repr
16125
16126 def __init__(self, *args):
16127 r"""
16128 __init__(PCB_TEXT self, BOARD_ITEM parent, KICAD_T idtype=PCB_TEXT_T) -> PCB_TEXT
16129 __init__(PCB_TEXT self, FOOTPRINT aParent, KICAD_T idtype=PCB_TEXT_T) -> PCB_TEXT
16130 """
16131 _pcbnew.PCB_TEXT_swiginit(self, _pcbnew.new_PCB_TEXT(*args))
16132 __swig_destroy__ = _pcbnew.delete_PCB_TEXT
16133
16134 @staticmethod
16135 def ClassOf(aItem):
16136 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16137 return _pcbnew.PCB_TEXT_ClassOf(aItem)
16138
16139 def Serialize(self, aContainer):
16140 r"""Serialize(PCB_TEXT self, google::protobuf::Any & aContainer)"""
16141 return _pcbnew.PCB_TEXT_Serialize(self, aContainer)
16142
16143 def Deserialize(self, aContainer):
16144 r"""Deserialize(PCB_TEXT self, google::protobuf::Any const & aContainer) -> bool"""
16145 return _pcbnew.PCB_TEXT_Deserialize(self, aContainer)
16146
16147 def KeepUpright(self):
16148 r"""KeepUpright(PCB_TEXT self)"""
16149 return _pcbnew.PCB_TEXT_KeepUpright(self)
16150
16151 def GetShownText(self, aAllowExtraText, aDepth=0):
16152 r"""GetShownText(PCB_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
16153 return _pcbnew.PCB_TEXT_GetShownText(self, aAllowExtraText, aDepth)
16154
16155 def TextHitTest(self, *args):
16156 r"""
16157 TextHitTest(PCB_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
16158 TextHitTest(PCB_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
16159 """
16160 return _pcbnew.PCB_TEXT_TextHitTest(self, *args)
16161
16162 def HitTest(self, *args):
16163 r"""
16164 HitTest(PCB_TEXT self, VECTOR2I aPosition, int aAccuracy) -> bool
16165 HitTest(PCB_TEXT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16166 """
16167 return _pcbnew.PCB_TEXT_HitTest(self, *args)
16168
16169 def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc):
16170 r"""TransformTextToPolySet(PCB_TEXT self, SHAPE_POLY_SET aBuffer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc)"""
16171 return _pcbnew.PCB_TEXT_TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
16172
16173 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
16174 r"""TransformShapeToPolygon(PCB_TEXT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
16175 return _pcbnew.PCB_TEXT_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
16176
16177 def GetEffectiveShape(self, *args):
16178 r"""GetEffectiveShape(PCB_TEXT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16179 return _pcbnew.PCB_TEXT_GetEffectiveShape(self, *args)
16180
16182 r"""GetTextTypeDescription(PCB_TEXT self) -> wxString"""
16183 return _pcbnew.PCB_TEXT_GetTextTypeDescription(self)
16184
16185 def ViewGetLOD(self, aLayer, aView):
16186 r"""ViewGetLOD(PCB_TEXT self, int aLayer, KIGFX::VIEW * aView) -> double"""
16187 return _pcbnew.PCB_TEXT_ViewGetLOD(self, aLayer, aView)
16188
16189 def __eq__(self, *args):
16190 r"""
16191 __eq__(PCB_TEXT self, PCB_TEXT aOther) -> bool
16192 __eq__(PCB_TEXT self, BOARD_ITEM aBoardItem) -> bool
16193 """
16194 return _pcbnew.PCB_TEXT___eq__(self, *args)
16195
16196# Register PCB_TEXT in _pcbnew:
16197_pcbnew.PCB_TEXT_swigregister(PCB_TEXT)
16198S_SEGMENT = cvar.S_SEGMENT
16199S_RECT = cvar.S_RECT
16200S_ARC = cvar.S_ARC
16201S_CIRCLE = cvar.S_CIRCLE
16202S_POLYGON = cvar.S_POLYGON
16203S_CURVE = cvar.S_CURVE
16204SHAPE_T_RECT = cvar.SHAPE_T_RECT
16205
16207 r"""Proxy of C++ PCB_TEXTBOX class."""
16208
16209 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16210 __repr__ = _swig_repr
16211
16212 def __init__(self, aParent, aType=PCB_TEXTBOX_T):
16213 r"""__init__(PCB_TEXTBOX self, BOARD_ITEM aParent, KICAD_T aType=PCB_TEXTBOX_T) -> PCB_TEXTBOX"""
16214 _pcbnew.PCB_TEXTBOX_swiginit(self, _pcbnew.new_PCB_TEXTBOX(aParent, aType))
16215 __swig_destroy__ = _pcbnew.delete_PCB_TEXTBOX
16216
16217 @staticmethod
16218 def ClassOf(aItem):
16219 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16220 return _pcbnew.PCB_TEXTBOX_ClassOf(aItem)
16221
16222 def Serialize(self, aContainer):
16223 r"""Serialize(PCB_TEXTBOX self, google::protobuf::Any & aContainer)"""
16224 return _pcbnew.PCB_TEXTBOX_Serialize(self, aContainer)
16225
16226 def Deserialize(self, aContainer):
16227 r"""Deserialize(PCB_TEXTBOX self, google::protobuf::Any const & aContainer) -> bool"""
16228 return _pcbnew.PCB_TEXTBOX_Deserialize(self, aContainer)
16229
16231 r"""GetLegacyTextMargin(PCB_TEXTBOX self) -> int"""
16232 return _pcbnew.PCB_TEXTBOX_GetLegacyTextMargin(self)
16233
16234 def SetMarginLeft(self, aLeft):
16235 r"""SetMarginLeft(PCB_TEXTBOX self, int aLeft)"""
16236 return _pcbnew.PCB_TEXTBOX_SetMarginLeft(self, aLeft)
16237
16238 def SetMarginTop(self, aTop):
16239 r"""SetMarginTop(PCB_TEXTBOX self, int aTop)"""
16240 return _pcbnew.PCB_TEXTBOX_SetMarginTop(self, aTop)
16241
16242 def SetMarginRight(self, aRight):
16243 r"""SetMarginRight(PCB_TEXTBOX self, int aRight)"""
16244 return _pcbnew.PCB_TEXTBOX_SetMarginRight(self, aRight)
16245
16246 def SetMarginBottom(self, aBottom):
16247 r"""SetMarginBottom(PCB_TEXTBOX self, int aBottom)"""
16248 return _pcbnew.PCB_TEXTBOX_SetMarginBottom(self, aBottom)
16249
16250 def GetMarginLeft(self):
16251 r"""GetMarginLeft(PCB_TEXTBOX self) -> int"""
16252 return _pcbnew.PCB_TEXTBOX_GetMarginLeft(self)
16253
16254 def GetMarginTop(self):
16255 r"""GetMarginTop(PCB_TEXTBOX self) -> int"""
16256 return _pcbnew.PCB_TEXTBOX_GetMarginTop(self)
16257
16259 r"""GetMarginRight(PCB_TEXTBOX self) -> int"""
16260 return _pcbnew.PCB_TEXTBOX_GetMarginRight(self)
16261
16263 r"""GetMarginBottom(PCB_TEXTBOX self) -> int"""
16264 return _pcbnew.PCB_TEXTBOX_GetMarginBottom(self)
16265
16266 def GetDrawPos(self, *args):
16267 r"""
16268 GetDrawPos(PCB_TEXTBOX self) -> VECTOR2I
16269 GetDrawPos(PCB_TEXTBOX self, bool aIsFlipped) -> VECTOR2I
16270 """
16271 return _pcbnew.PCB_TEXTBOX_GetDrawPos(self, *args)
16272
16273 def GetShownText(self, aAllowExtraText, aDepth=0):
16274 r"""GetShownText(PCB_TEXTBOX self, bool aAllowExtraText, int aDepth=0) -> wxString"""
16275 return _pcbnew.PCB_TEXTBOX_GetShownText(self, aAllowExtraText, aDepth)
16276
16278 r"""GetAnchorAndOppositeCorner(PCB_TEXTBOX self) -> VECTOR_VECTOR2I"""
16279 return _pcbnew.PCB_TEXTBOX_GetAnchorAndOppositeCorner(self)
16280
16281 def HitTest(self, *args):
16282 r"""
16283 HitTest(PCB_TEXTBOX self, VECTOR2I aPosition, int aAccuracy) -> bool
16284 HitTest(PCB_TEXTBOX self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16285 """
16286 return _pcbnew.PCB_TEXTBOX_HitTest(self, *args)
16287
16288 def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc):
16289 r"""TransformTextToPolySet(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc)"""
16290 return _pcbnew.PCB_TEXTBOX_TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
16291
16292 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
16293 r"""TransformShapeToPolygon(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
16294 return _pcbnew.PCB_TEXTBOX_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
16295
16296 def GetEffectiveShape(self, *args):
16297 r"""GetEffectiveShape(PCB_TEXTBOX self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16298 return _pcbnew.PCB_TEXTBOX_GetEffectiveShape(self, *args)
16299
16300 def ViewGetLOD(self, aLayer, aView):
16301 r"""ViewGetLOD(PCB_TEXTBOX self, int aLayer, KIGFX::VIEW * aView) -> double"""
16302 return _pcbnew.PCB_TEXTBOX_ViewGetLOD(self, aLayer, aView)
16303
16305 r"""IsBorderEnabled(PCB_TEXTBOX self) -> bool"""
16306 return _pcbnew.PCB_TEXTBOX_IsBorderEnabled(self)
16307
16308 def SetBorderEnabled(self, enabled):
16309 r"""SetBorderEnabled(PCB_TEXTBOX self, bool enabled)"""
16310 return _pcbnew.PCB_TEXTBOX_SetBorderEnabled(self, enabled)
16311
16312 def SetBorderWidth(self, aSize):
16313 r"""SetBorderWidth(PCB_TEXTBOX self, int const aSize)"""
16314 return _pcbnew.PCB_TEXTBOX_SetBorderWidth(self, aSize)
16315
16317 r"""GetBorderWidth(PCB_TEXTBOX self) -> int"""
16318 return _pcbnew.PCB_TEXTBOX_GetBorderWidth(self)
16319
16320 def __eq__(self, *args):
16321 r"""
16322 __eq__(PCB_TEXTBOX self, PCB_TEXTBOX aOther) -> bool
16323 __eq__(PCB_TEXTBOX self, BOARD_ITEM aBoardItem) -> bool
16324 """
16325 return _pcbnew.PCB_TEXTBOX___eq__(self, *args)
16326
16327# Register PCB_TEXTBOX in _pcbnew:
16328_pcbnew.PCB_TEXTBOX_swigregister(PCB_TEXTBOX)
16329GR_TEXT_H_ALIGN_LEFT = _pcbnew.GR_TEXT_H_ALIGN_LEFT
16330
16331GR_TEXT_H_ALIGN_CENTER = _pcbnew.GR_TEXT_H_ALIGN_CENTER
16332
16333GR_TEXT_H_ALIGN_RIGHT = _pcbnew.GR_TEXT_H_ALIGN_RIGHT
16334
16335GR_TEXT_H_ALIGN_INDETERMINATE = _pcbnew.GR_TEXT_H_ALIGN_INDETERMINATE
16336
16337GR_TEXT_V_ALIGN_TOP = _pcbnew.GR_TEXT_V_ALIGN_TOP
16338
16339GR_TEXT_V_ALIGN_CENTER = _pcbnew.GR_TEXT_V_ALIGN_CENTER
16340
16341GR_TEXT_V_ALIGN_BOTTOM = _pcbnew.GR_TEXT_V_ALIGN_BOTTOM
16342
16343GR_TEXT_V_ALIGN_INDETERMINATE = _pcbnew.GR_TEXT_V_ALIGN_INDETERMINATE
16344
16345
16347 r"""
16348 GetFlippedAlignment(GR_TEXT_H_ALIGN_T aAlign) -> GR_TEXT_H_ALIGN_T
16349 GetFlippedAlignment(GR_TEXT_V_ALIGN_T aAlign) -> GR_TEXT_V_ALIGN_T
16350 """
16351 return _pcbnew.GetFlippedAlignment(*args)
16352
16354 r"""ToHAlignment(int x) -> GR_TEXT_H_ALIGN_T"""
16355 return _pcbnew.ToHAlignment(x)
16357 r"""Proxy of C++ TEXT_ATTRIBUTES class."""
16358
16359 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16360 __repr__ = _swig_repr
16361
16362 def __init__(self, aFont=None):
16363 r"""__init__(TEXT_ATTRIBUTES self, KIFONT::FONT * aFont=None) -> TEXT_ATTRIBUTES"""
16364 _pcbnew.TEXT_ATTRIBUTES_swiginit(self, _pcbnew.new_TEXT_ATTRIBUTES(aFont))
16365
16366 def Compare(self, aRhs):
16367 r"""Compare(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> int"""
16368 return _pcbnew.TEXT_ATTRIBUTES_Compare(self, aRhs)
16369
16370 def __eq__(self, aRhs):
16371 r"""__eq__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
16372 return _pcbnew.TEXT_ATTRIBUTES___eq__(self, aRhs)
16373
16374 def __gt__(self, aRhs):
16375 r"""__gt__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
16376 return _pcbnew.TEXT_ATTRIBUTES___gt__(self, aRhs)
16377
16378 def __lt__(self, aRhs):
16379 r"""__lt__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
16380 return _pcbnew.TEXT_ATTRIBUTES___lt__(self, aRhs)
16381 m_Font = property(_pcbnew.TEXT_ATTRIBUTES_m_Font_get, _pcbnew.TEXT_ATTRIBUTES_m_Font_set, doc=r"""m_Font : p.KIFONT::FONT""")
16382 m_Halign = property(_pcbnew.TEXT_ATTRIBUTES_m_Halign_get, _pcbnew.TEXT_ATTRIBUTES_m_Halign_set, doc=r"""m_Halign : GR_TEXT_H_ALIGN_T""")
16383 m_Valign = property(_pcbnew.TEXT_ATTRIBUTES_m_Valign_get, _pcbnew.TEXT_ATTRIBUTES_m_Valign_set, doc=r"""m_Valign : GR_TEXT_V_ALIGN_T""")
16384 m_Angle = property(_pcbnew.TEXT_ATTRIBUTES_m_Angle_get, _pcbnew.TEXT_ATTRIBUTES_m_Angle_set, doc=r"""m_Angle : EDA_ANGLE""")
16385 m_LineSpacing = property(_pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_get, _pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_set, doc=r"""m_LineSpacing : double""")
16386 m_StrokeWidth = property(_pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_get, _pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_set, doc=r"""m_StrokeWidth : int""")
16387 m_Italic = property(_pcbnew.TEXT_ATTRIBUTES_m_Italic_get, _pcbnew.TEXT_ATTRIBUTES_m_Italic_set, doc=r"""m_Italic : bool""")
16388 m_Bold = property(_pcbnew.TEXT_ATTRIBUTES_m_Bold_get, _pcbnew.TEXT_ATTRIBUTES_m_Bold_set, doc=r"""m_Bold : bool""")
16389 m_Underlined = property(_pcbnew.TEXT_ATTRIBUTES_m_Underlined_get, _pcbnew.TEXT_ATTRIBUTES_m_Underlined_set, doc=r"""m_Underlined : bool""")
16390 m_Color = property(_pcbnew.TEXT_ATTRIBUTES_m_Color_get, _pcbnew.TEXT_ATTRIBUTES_m_Color_set, doc=r"""m_Color : KIGFX::COLOR4D""")
16391 m_Visible = property(_pcbnew.TEXT_ATTRIBUTES_m_Visible_get, _pcbnew.TEXT_ATTRIBUTES_m_Visible_set, doc=r"""m_Visible : bool""")
16392 m_Mirrored = property(_pcbnew.TEXT_ATTRIBUTES_m_Mirrored_get, _pcbnew.TEXT_ATTRIBUTES_m_Mirrored_set, doc=r"""m_Mirrored : bool""")
16393 m_Multiline = property(_pcbnew.TEXT_ATTRIBUTES_m_Multiline_get, _pcbnew.TEXT_ATTRIBUTES_m_Multiline_set, doc=r"""m_Multiline : bool""")
16394 m_Size = property(_pcbnew.TEXT_ATTRIBUTES_m_Size_get, _pcbnew.TEXT_ATTRIBUTES_m_Size_set, doc=r"""m_Size : VECTOR2I""")
16395 m_KeepUpright = property(_pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_get, _pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_set, doc=r"""m_KeepUpright : bool""")
16396 m_StoredStrokeWidth = property(_pcbnew.TEXT_ATTRIBUTES_m_StoredStrokeWidth_get, _pcbnew.TEXT_ATTRIBUTES_m_StoredStrokeWidth_set, doc=r"""m_StoredStrokeWidth : int""")
16397 __swig_destroy__ = _pcbnew.delete_TEXT_ATTRIBUTES
16398
16399# Register TEXT_ATTRIBUTES in _pcbnew:
16400_pcbnew.TEXT_ATTRIBUTES_swigregister(TEXT_ATTRIBUTES)
16402 r"""Proxy of C++ PCB_FIELD class."""
16403
16404 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16405 __repr__ = _swig_repr
16406
16407 def __init__(self, *args):
16408 r"""
16409 __init__(PCB_FIELD self, FOOTPRINT aParent, int aFieldId, wxString aName=wxEmptyString) -> PCB_FIELD
16410 __init__(PCB_FIELD self, PCB_TEXT aText, int aFieldId, wxString aName=wxEmptyString) -> PCB_FIELD
16411 """
16412 _pcbnew.PCB_FIELD_swiginit(self, _pcbnew.new_PCB_FIELD(*args))
16413
16414 def Serialize(self, aContainer):
16415 r"""Serialize(PCB_FIELD self, google::protobuf::Any & aContainer)"""
16416 return _pcbnew.PCB_FIELD_Serialize(self, aContainer)
16417
16418 def Deserialize(self, aContainer):
16419 r"""Deserialize(PCB_FIELD self, google::protobuf::Any const & aContainer) -> bool"""
16420 return _pcbnew.PCB_FIELD_Deserialize(self, aContainer)
16421
16422 @staticmethod
16423 def ClassOf(aItem):
16424 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16425 return _pcbnew.PCB_FIELD_ClassOf(aItem)
16426
16427 def IsReference(self):
16428 r"""IsReference(PCB_FIELD self) -> bool"""
16429 return _pcbnew.PCB_FIELD_IsReference(self)
16430
16431 def IsValue(self):
16432 r"""IsValue(PCB_FIELD self) -> bool"""
16433 return _pcbnew.PCB_FIELD_IsValue(self)
16434
16435 def IsDatasheet(self):
16436 r"""IsDatasheet(PCB_FIELD self) -> bool"""
16437 return _pcbnew.PCB_FIELD_IsDatasheet(self)
16438
16440 r"""IsComponentClass(PCB_FIELD self) -> bool"""
16441 return _pcbnew.PCB_FIELD_IsComponentClass(self)
16442
16444 r"""IsMandatoryField(PCB_FIELD self) -> bool"""
16445 return _pcbnew.PCB_FIELD_IsMandatoryField(self)
16446
16447 def ViewGetLOD(self, aLayer, aView):
16448 r"""ViewGetLOD(PCB_FIELD self, int aLayer, KIGFX::VIEW * aView) -> double"""
16449 return _pcbnew.PCB_FIELD_ViewGetLOD(self, aLayer, aView)
16450
16451 def CloneField(self):
16452 r"""CloneField(PCB_FIELD self) -> PCB_FIELD"""
16453 return _pcbnew.PCB_FIELD_CloneField(self)
16454
16455 def GetName(self, aUseDefaultName=True):
16456 r"""GetName(PCB_FIELD self, bool aUseDefaultName=True) -> wxString"""
16457 return _pcbnew.PCB_FIELD_GetName(self, aUseDefaultName)
16458
16460 r"""GetCanonicalName(PCB_FIELD self) -> wxString"""
16461 return _pcbnew.PCB_FIELD_GetCanonicalName(self)
16462
16463 def SetName(self, aName):
16464 r"""SetName(PCB_FIELD self, wxString aName)"""
16465 return _pcbnew.PCB_FIELD_SetName(self, aName)
16466
16467 def GetId(self):
16468 r"""GetId(PCB_FIELD self) -> int"""
16469 return _pcbnew.PCB_FIELD_GetId(self)
16470
16471 def SetId(self, aId):
16472 r"""SetId(PCB_FIELD self, int aId)"""
16473 return _pcbnew.PCB_FIELD_SetId(self, aId)
16474
16475 def __eq__(self, *args):
16476 r"""
16477 __eq__(PCB_FIELD self, PCB_FIELD aOther) -> bool
16478 __eq__(PCB_FIELD self, BOARD_ITEM aOther) -> bool
16479 """
16480 return _pcbnew.PCB_FIELD___eq__(self, *args)
16481 __swig_destroy__ = _pcbnew.delete_PCB_FIELD
16482
16483# Register PCB_FIELD in _pcbnew:
16484_pcbnew.PCB_FIELD_swigregister(PCB_FIELD)
16485DIM_UNITS_FORMAT_NO_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_NO_SUFFIX
16486
16487DIM_UNITS_FORMAT_BARE_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_BARE_SUFFIX
16488
16489DIM_UNITS_FORMAT_PAREN_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_PAREN_SUFFIX
16490
16491DIM_PRECISION_X = _pcbnew.DIM_PRECISION_X
16492
16493DIM_PRECISION_X_X = _pcbnew.DIM_PRECISION_X_X
16494
16495DIM_PRECISION_X_XX = _pcbnew.DIM_PRECISION_X_XX
16496
16497DIM_PRECISION_X_XXX = _pcbnew.DIM_PRECISION_X_XXX
16498
16499DIM_PRECISION_X_XXXX = _pcbnew.DIM_PRECISION_X_XXXX
16500
16501DIM_PRECISION_X_XXXXX = _pcbnew.DIM_PRECISION_X_XXXXX
16502
16503DIM_PRECISION_V_VV = _pcbnew.DIM_PRECISION_V_VV
16504
16505DIM_PRECISION_V_VVV = _pcbnew.DIM_PRECISION_V_VVV
16506
16507DIM_PRECISION_V_VVVV = _pcbnew.DIM_PRECISION_V_VVVV
16508
16509DIM_PRECISION_V_VVVVV = _pcbnew.DIM_PRECISION_V_VVVVV
16510
16511DIM_TEXT_POSITION_OUTSIDE = _pcbnew.DIM_TEXT_POSITION_OUTSIDE
16512
16513DIM_TEXT_POSITION_INLINE = _pcbnew.DIM_TEXT_POSITION_INLINE
16514
16515DIM_TEXT_POSITION_MANUAL = _pcbnew.DIM_TEXT_POSITION_MANUAL
16516
16517DIM_UNITS_MODE_INCHES = _pcbnew.DIM_UNITS_MODE_INCHES
16518
16519DIM_UNITS_MODE_MILS = _pcbnew.DIM_UNITS_MODE_MILS
16520
16521DIM_UNITS_MODE_MILLIMETRES = _pcbnew.DIM_UNITS_MODE_MILLIMETRES
16522
16523DIM_UNITS_MODE_AUTOMATIC = _pcbnew.DIM_UNITS_MODE_AUTOMATIC
16524
16525DIM_ARROW_DIRECTION_INWARD = _pcbnew.DIM_ARROW_DIRECTION_INWARD
16526
16527DIM_ARROW_DIRECTION_OUTWARD = _pcbnew.DIM_ARROW_DIRECTION_OUTWARD
16528
16529DIM_TEXT_BORDER_NONE = _pcbnew.DIM_TEXT_BORDER_NONE
16530
16531DIM_TEXT_BORDER_RECTANGLE = _pcbnew.DIM_TEXT_BORDER_RECTANGLE
16532
16533DIM_TEXT_BORDER_CIRCLE = _pcbnew.DIM_TEXT_BORDER_CIRCLE
16534
16535DIM_TEXT_BORDER_ROUNDRECT = _pcbnew.DIM_TEXT_BORDER_ROUNDRECT
16536
16538 r"""Proxy of C++ PCB_DIMENSION_BASE class."""
16539
16540 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16541
16542 def __init__(self, *args, **kwargs):
16543 raise AttributeError("No constructor defined - class is abstract")
16544 __repr__ = _swig_repr
16545
16546 def Serialize(self, aContainer):
16547 r"""Serialize(PCB_DIMENSION_BASE self, google::protobuf::Any & aContainer)"""
16548 return _pcbnew.PCB_DIMENSION_BASE_Serialize(self, aContainer)
16549
16550 def Deserialize(self, aContainer):
16551 r"""Deserialize(PCB_DIMENSION_BASE self, google::protobuf::Any const & aContainer) -> bool"""
16552 return _pcbnew.PCB_DIMENSION_BASE_Deserialize(self, aContainer)
16553
16554 def GetStart(self):
16555 r"""GetStart(PCB_DIMENSION_BASE self) -> VECTOR2I"""
16556 return _pcbnew.PCB_DIMENSION_BASE_GetStart(self)
16557
16558 def SetStart(self, aPoint):
16559 r"""SetStart(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
16560 return _pcbnew.PCB_DIMENSION_BASE_SetStart(self, aPoint)
16561
16562 def GetEnd(self):
16563 r"""GetEnd(PCB_DIMENSION_BASE self) -> VECTOR2I"""
16564 return _pcbnew.PCB_DIMENSION_BASE_GetEnd(self)
16565
16566 def SetEnd(self, aPoint):
16567 r"""SetEnd(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
16568 return _pcbnew.PCB_DIMENSION_BASE_SetEnd(self, aPoint)
16569
16571 r"""GetOverrideTextEnabled(PCB_DIMENSION_BASE self) -> bool"""
16572 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideTextEnabled(self)
16573
16574 def SetOverrideTextEnabled(self, aOverride):
16575 r"""SetOverrideTextEnabled(PCB_DIMENSION_BASE self, bool aOverride)"""
16576 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideTextEnabled(self, aOverride)
16577
16579 r"""GetOverrideText(PCB_DIMENSION_BASE self) -> wxString"""
16580 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideText(self)
16581
16582 def SetOverrideText(self, aValue):
16583 r"""SetOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
16584 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideText(self, aValue)
16585
16586 def ChangeOverrideText(self, aValue):
16587 r"""ChangeOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
16588 return _pcbnew.PCB_DIMENSION_BASE_ChangeOverrideText(self, aValue)
16589
16591 r"""GetMeasuredValue(PCB_DIMENSION_BASE self) -> int"""
16592 return _pcbnew.PCB_DIMENSION_BASE_GetMeasuredValue(self)
16593
16594 def SetMeasuredValue(self, aValue):
16595 r"""SetMeasuredValue(PCB_DIMENSION_BASE self, int aValue)"""
16596 return _pcbnew.PCB_DIMENSION_BASE_SetMeasuredValue(self, aValue)
16597
16598 def GetValueText(self):
16599 r"""GetValueText(PCB_DIMENSION_BASE self) -> wxString"""
16600 return _pcbnew.PCB_DIMENSION_BASE_GetValueText(self)
16601
16602 def Update(self):
16603 r"""Update(PCB_DIMENSION_BASE self)"""
16604 return _pcbnew.PCB_DIMENSION_BASE_Update(self)
16605
16606 def UpdateUnits(self):
16607 r"""UpdateUnits(PCB_DIMENSION_BASE self)"""
16608 return _pcbnew.PCB_DIMENSION_BASE_UpdateUnits(self)
16609
16610 def GetPrefix(self):
16611 r"""GetPrefix(PCB_DIMENSION_BASE self) -> wxString"""
16612 return _pcbnew.PCB_DIMENSION_BASE_GetPrefix(self)
16613
16614 def SetPrefix(self, aPrefix):
16615 r"""SetPrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
16616 return _pcbnew.PCB_DIMENSION_BASE_SetPrefix(self, aPrefix)
16617
16618 def ChangePrefix(self, aPrefix):
16619 r"""ChangePrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
16620 return _pcbnew.PCB_DIMENSION_BASE_ChangePrefix(self, aPrefix)
16621
16622 def GetSuffix(self):
16623 r"""GetSuffix(PCB_DIMENSION_BASE self) -> wxString"""
16624 return _pcbnew.PCB_DIMENSION_BASE_GetSuffix(self)
16625
16626 def SetSuffix(self, aSuffix):
16627 r"""SetSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
16628 return _pcbnew.PCB_DIMENSION_BASE_SetSuffix(self, aSuffix)
16629
16630 def ChangeSuffix(self, aSuffix):
16631 r"""ChangeSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
16632 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuffix(self, aSuffix)
16633
16635 r"""GetArrowDirection(PCB_DIMENSION_BASE self) -> DIM_ARROW_DIRECTION"""
16636 return _pcbnew.PCB_DIMENSION_BASE_GetArrowDirection(self)
16637
16638 def SetArrowDirection(self, aDirection):
16639 r"""SetArrowDirection(PCB_DIMENSION_BASE self, DIM_ARROW_DIRECTION const & aDirection)"""
16640 return _pcbnew.PCB_DIMENSION_BASE_SetArrowDirection(self, aDirection)
16641
16642 def ChangeArrowDirection(self, aDirection):
16643 r"""ChangeArrowDirection(PCB_DIMENSION_BASE self, DIM_ARROW_DIRECTION const & aDirection)"""
16644 return _pcbnew.PCB_DIMENSION_BASE_ChangeArrowDirection(self, aDirection)
16645
16646 def GetUnits(self):
16647 r"""GetUnits(PCB_DIMENSION_BASE self) -> EDA_UNITS"""
16648 return _pcbnew.PCB_DIMENSION_BASE_GetUnits(self)
16649
16650 def SetUnits(self, aUnits):
16651 r"""SetUnits(PCB_DIMENSION_BASE self, EDA_UNITS aUnits)"""
16652 return _pcbnew.PCB_DIMENSION_BASE_SetUnits(self, aUnits)
16653
16654 def GetUnitsMode(self):
16655 r"""GetUnitsMode(PCB_DIMENSION_BASE self) -> DIM_UNITS_MODE"""
16656 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsMode(self)
16657
16658 def SetUnitsMode(self, aMode):
16659 r"""SetUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
16660 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsMode(self, aMode)
16661
16662 def ChangeUnitsMode(self, aMode):
16663 r"""ChangeUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
16664 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsMode(self, aMode)
16665
16666 def SetAutoUnits(self, aAuto=True):
16667 r"""SetAutoUnits(PCB_DIMENSION_BASE self, bool aAuto=True)"""
16668 return _pcbnew.PCB_DIMENSION_BASE_SetAutoUnits(self, aAuto)
16669
16671 r"""GetUnitsFormat(PCB_DIMENSION_BASE self) -> DIM_UNITS_FORMAT"""
16672 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsFormat(self)
16673
16674 def SetUnitsFormat(self, aFormat):
16675 r"""SetUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
16676 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsFormat(self, aFormat)
16677
16678 def ChangeUnitsFormat(self, aFormat):
16679 r"""ChangeUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
16680 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsFormat(self, aFormat)
16681
16682 def GetPrecision(self):
16683 r"""GetPrecision(PCB_DIMENSION_BASE self) -> DIM_PRECISION"""
16684 return _pcbnew.PCB_DIMENSION_BASE_GetPrecision(self)
16685
16686 def SetPrecision(self, aPrecision):
16687 r"""SetPrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
16688 return _pcbnew.PCB_DIMENSION_BASE_SetPrecision(self, aPrecision)
16689
16690 def ChangePrecision(self, aPrecision):
16691 r"""ChangePrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
16692 return _pcbnew.PCB_DIMENSION_BASE_ChangePrecision(self, aPrecision)
16693
16695 r"""GetSuppressZeroes(PCB_DIMENSION_BASE self) -> bool"""
16696 return _pcbnew.PCB_DIMENSION_BASE_GetSuppressZeroes(self)
16697
16698 def SetSuppressZeroes(self, aSuppress):
16699 r"""SetSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
16700 return _pcbnew.PCB_DIMENSION_BASE_SetSuppressZeroes(self, aSuppress)
16701
16702 def ChangeSuppressZeroes(self, aSuppress):
16703 r"""ChangeSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
16704 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuppressZeroes(self, aSuppress)
16705
16707 r"""GetKeepTextAligned(PCB_DIMENSION_BASE self) -> bool"""
16708 return _pcbnew.PCB_DIMENSION_BASE_GetKeepTextAligned(self)
16709
16710 def SetKeepTextAligned(self, aKeepAligned):
16711 r"""SetKeepTextAligned(PCB_DIMENSION_BASE self, bool aKeepAligned)"""
16712 return _pcbnew.PCB_DIMENSION_BASE_SetKeepTextAligned(self, aKeepAligned)
16713
16715 r"""GetTextAngleDegreesProp(PCB_DIMENSION_BASE self) -> double"""
16716 return _pcbnew.PCB_DIMENSION_BASE_GetTextAngleDegreesProp(self)
16717
16718 def ChangeTextAngleDegrees(self, aDegrees):
16719 r"""ChangeTextAngleDegrees(PCB_DIMENSION_BASE self, double aDegrees)"""
16720 return _pcbnew.PCB_DIMENSION_BASE_ChangeTextAngleDegrees(self, aDegrees)
16721
16722 def ChangeKeepTextAligned(self, aKeepAligned):
16723 r"""ChangeKeepTextAligned(PCB_DIMENSION_BASE self, bool aKeepAligned)"""
16724 return _pcbnew.PCB_DIMENSION_BASE_ChangeKeepTextAligned(self, aKeepAligned)
16725
16726 def SetTextPositionMode(self, aMode):
16727 r"""SetTextPositionMode(PCB_DIMENSION_BASE self, DIM_TEXT_POSITION aMode)"""
16728 return _pcbnew.PCB_DIMENSION_BASE_SetTextPositionMode(self, aMode)
16729
16731 r"""GetTextPositionMode(PCB_DIMENSION_BASE self) -> DIM_TEXT_POSITION"""
16732 return _pcbnew.PCB_DIMENSION_BASE_GetTextPositionMode(self)
16733
16735 r"""GetArrowLength(PCB_DIMENSION_BASE self) -> int"""
16736 return _pcbnew.PCB_DIMENSION_BASE_GetArrowLength(self)
16737
16738 def SetArrowLength(self, aLength):
16739 r"""SetArrowLength(PCB_DIMENSION_BASE self, int aLength)"""
16740 return _pcbnew.PCB_DIMENSION_BASE_SetArrowLength(self, aLength)
16741
16742 def SetExtensionOffset(self, aOffset):
16743 r"""SetExtensionOffset(PCB_DIMENSION_BASE self, int aOffset)"""
16744 return _pcbnew.PCB_DIMENSION_BASE_SetExtensionOffset(self, aOffset)
16745
16747 r"""GetExtensionOffset(PCB_DIMENSION_BASE self) -> int"""
16748 return _pcbnew.PCB_DIMENSION_BASE_GetExtensionOffset(self)
16749
16751 r"""GetLineThickness(PCB_DIMENSION_BASE self) -> int"""
16752 return _pcbnew.PCB_DIMENSION_BASE_GetLineThickness(self)
16753
16754 def SetLineThickness(self, aWidth):
16755 r"""SetLineThickness(PCB_DIMENSION_BASE self, int aWidth)"""
16756 return _pcbnew.PCB_DIMENSION_BASE_SetLineThickness(self, aWidth)
16757
16758 def GetShapes(self):
16759 r"""GetShapes(PCB_DIMENSION_BASE self) -> VECTOR_SHAPEPTR"""
16760 return _pcbnew.PCB_DIMENSION_BASE_GetShapes(self)
16761
16762 def HitTest(self, *args):
16763 r"""
16764 HitTest(PCB_DIMENSION_BASE self, VECTOR2I aPosition, int aAccuracy) -> bool
16765 HitTest(PCB_DIMENSION_BASE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16766 """
16767 return _pcbnew.PCB_DIMENSION_BASE_HitTest(self, *args)
16768
16769 def GetEffectiveShape(self, *args):
16770 r"""GetEffectiveShape(PCB_DIMENSION_BASE self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16771 return _pcbnew.PCB_DIMENSION_BASE_GetEffectiveShape(self, *args)
16772
16773 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False):
16774 r"""TransformShapeToPolygon(PCB_DIMENSION_BASE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
16775 return _pcbnew.PCB_DIMENSION_BASE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth)
16776
16777 def __eq__(self, *args):
16778 r"""
16779 __eq__(PCB_DIMENSION_BASE self, PCB_DIMENSION_BASE aOther) -> bool
16780 __eq__(PCB_DIMENSION_BASE self, BOARD_ITEM aBoardItem) -> bool
16781 """
16782 return _pcbnew.PCB_DIMENSION_BASE___eq__(self, *args)
16783 __swig_destroy__ = _pcbnew.delete_PCB_DIMENSION_BASE
16784
16785# Register PCB_DIMENSION_BASE in _pcbnew:
16786_pcbnew.PCB_DIMENSION_BASE_swigregister(PCB_DIMENSION_BASE)
16788 r"""Proxy of C++ PCB_DIM_ALIGNED class."""
16789
16790 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16791 __repr__ = _swig_repr
16792
16793 def __init__(self, aParent, aType=PCB_DIM_ALIGNED_T):
16794 r"""__init__(PCB_DIM_ALIGNED self, BOARD_ITEM aParent, KICAD_T aType=PCB_DIM_ALIGNED_T) -> PCB_DIM_ALIGNED"""
16795 _pcbnew.PCB_DIM_ALIGNED_swiginit(self, _pcbnew.new_PCB_DIM_ALIGNED(aParent, aType))
16796 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ALIGNED
16797
16798 def Serialize(self, aContainer):
16799 r"""Serialize(PCB_DIM_ALIGNED self, google::protobuf::Any & aContainer)"""
16800 return _pcbnew.PCB_DIM_ALIGNED_Serialize(self, aContainer)
16801
16802 def Deserialize(self, aContainer):
16803 r"""Deserialize(PCB_DIM_ALIGNED self, google::protobuf::Any const & aContainer) -> bool"""
16804 return _pcbnew.PCB_DIM_ALIGNED_Deserialize(self, aContainer)
16805
16806 @staticmethod
16807 def ClassOf(aItem):
16808 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16809 return _pcbnew.PCB_DIM_ALIGNED_ClassOf(aItem)
16810
16812 r"""GetCrossbarStart(PCB_DIM_ALIGNED self) -> VECTOR2I"""
16813 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarStart(self)
16814
16816 r"""GetCrossbarEnd(PCB_DIM_ALIGNED self) -> VECTOR2I"""
16817 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarEnd(self)
16818
16819 def SetHeight(self, aHeight):
16820 r"""SetHeight(PCB_DIM_ALIGNED self, int aHeight)"""
16821 return _pcbnew.PCB_DIM_ALIGNED_SetHeight(self, aHeight)
16822
16823 def GetHeight(self):
16824 r"""GetHeight(PCB_DIM_ALIGNED self) -> int"""
16825 return _pcbnew.PCB_DIM_ALIGNED_GetHeight(self)
16826
16827 def ChangeHeight(self, aHeight):
16828 r"""ChangeHeight(PCB_DIM_ALIGNED self, int aHeight)"""
16829 return _pcbnew.PCB_DIM_ALIGNED_ChangeHeight(self, aHeight)
16830
16831 def UpdateHeight(self, aCrossbarStart, aCrossbarEnd):
16832 r"""UpdateHeight(PCB_DIM_ALIGNED self, VECTOR2I aCrossbarStart, VECTOR2I aCrossbarEnd)"""
16833 return _pcbnew.PCB_DIM_ALIGNED_UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
16834
16835 def SetExtensionHeight(self, aHeight):
16836 r"""SetExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
16837 return _pcbnew.PCB_DIM_ALIGNED_SetExtensionHeight(self, aHeight)
16838
16840 r"""GetExtensionHeight(PCB_DIM_ALIGNED self) -> int"""
16841 return _pcbnew.PCB_DIM_ALIGNED_GetExtensionHeight(self)
16842
16843 def ChangeExtensionHeight(self, aHeight):
16844 r"""ChangeExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
16845 return _pcbnew.PCB_DIM_ALIGNED_ChangeExtensionHeight(self, aHeight)
16846
16847 def GetAngle(self):
16848 r"""GetAngle(PCB_DIM_ALIGNED self) -> double"""
16849 return _pcbnew.PCB_DIM_ALIGNED_GetAngle(self)
16850
16851# Register PCB_DIM_ALIGNED in _pcbnew:
16852_pcbnew.PCB_DIM_ALIGNED_swigregister(PCB_DIM_ALIGNED)
16854 r"""Proxy of C++ PCB_DIM_ORTHOGONAL class."""
16855
16856 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16857 __repr__ = _swig_repr
16858 DIR_HORIZONTAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_HORIZONTAL
16859
16860 DIR_VERTICAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_VERTICAL
16861
16862
16863 def __init__(self, aParent):
16864 r"""__init__(PCB_DIM_ORTHOGONAL self, BOARD_ITEM aParent) -> PCB_DIM_ORTHOGONAL"""
16865 _pcbnew.PCB_DIM_ORTHOGONAL_swiginit(self, _pcbnew.new_PCB_DIM_ORTHOGONAL(aParent))
16866 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ORTHOGONAL
16867
16868 def Serialize(self, aContainer):
16869 r"""Serialize(PCB_DIM_ORTHOGONAL self, google::protobuf::Any & aContainer)"""
16870 return _pcbnew.PCB_DIM_ORTHOGONAL_Serialize(self, aContainer)
16871
16872 def Deserialize(self, aContainer):
16873 r"""Deserialize(PCB_DIM_ORTHOGONAL self, google::protobuf::Any const & aContainer) -> bool"""
16874 return _pcbnew.PCB_DIM_ORTHOGONAL_Deserialize(self, aContainer)
16875
16876 @staticmethod
16877 def ClassOf(aItem):
16878 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16879 return _pcbnew.PCB_DIM_ORTHOGONAL_ClassOf(aItem)
16880
16881 def SetOrientation(self, aOrientation):
16882 r"""SetOrientation(PCB_DIM_ORTHOGONAL self, PCB_DIM_ORTHOGONAL::DIR aOrientation)"""
16883 return _pcbnew.PCB_DIM_ORTHOGONAL_SetOrientation(self, aOrientation)
16884
16886 r"""GetOrientation(PCB_DIM_ORTHOGONAL self) -> PCB_DIM_ORTHOGONAL::DIR"""
16887 return _pcbnew.PCB_DIM_ORTHOGONAL_GetOrientation(self)
16888
16889# Register PCB_DIM_ORTHOGONAL in _pcbnew:
16890_pcbnew.PCB_DIM_ORTHOGONAL_swigregister(PCB_DIM_ORTHOGONAL)
16892 r"""Proxy of C++ PCB_DIM_RADIAL class."""
16893
16894 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16895 __repr__ = _swig_repr
16896
16897 def __init__(self, aParent):
16898 r"""__init__(PCB_DIM_RADIAL self, BOARD_ITEM aParent) -> PCB_DIM_RADIAL"""
16899 _pcbnew.PCB_DIM_RADIAL_swiginit(self, _pcbnew.new_PCB_DIM_RADIAL(aParent))
16900
16901 def Serialize(self, aContainer):
16902 r"""Serialize(PCB_DIM_RADIAL self, google::protobuf::Any & aContainer)"""
16903 return _pcbnew.PCB_DIM_RADIAL_Serialize(self, aContainer)
16904
16905 def Deserialize(self, aContainer):
16906 r"""Deserialize(PCB_DIM_RADIAL self, google::protobuf::Any const & aContainer) -> bool"""
16907 return _pcbnew.PCB_DIM_RADIAL_Deserialize(self, aContainer)
16908
16909 @staticmethod
16910 def ClassOf(aItem):
16911 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16912 return _pcbnew.PCB_DIM_RADIAL_ClassOf(aItem)
16913
16914 def SetLeaderLength(self, aLength):
16915 r"""SetLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
16916 return _pcbnew.PCB_DIM_RADIAL_SetLeaderLength(self, aLength)
16917
16919 r"""GetLeaderLength(PCB_DIM_RADIAL self) -> int"""
16920 return _pcbnew.PCB_DIM_RADIAL_GetLeaderLength(self)
16921
16922 def ChangeLeaderLength(self, aLength):
16923 r"""ChangeLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
16924 return _pcbnew.PCB_DIM_RADIAL_ChangeLeaderLength(self, aLength)
16925
16926 def GetKnee(self):
16927 r"""GetKnee(PCB_DIM_RADIAL self) -> VECTOR2I"""
16928 return _pcbnew.PCB_DIM_RADIAL_GetKnee(self)
16929 __swig_destroy__ = _pcbnew.delete_PCB_DIM_RADIAL
16930
16931# Register PCB_DIM_RADIAL in _pcbnew:
16932_pcbnew.PCB_DIM_RADIAL_swigregister(PCB_DIM_RADIAL)
16934 r"""Proxy of C++ PCB_DIM_LEADER class."""
16935
16936 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16937 __repr__ = _swig_repr
16938
16939 def __init__(self, aParent):
16940 r"""__init__(PCB_DIM_LEADER self, BOARD_ITEM aParent) -> PCB_DIM_LEADER"""
16941 _pcbnew.PCB_DIM_LEADER_swiginit(self, _pcbnew.new_PCB_DIM_LEADER(aParent))
16942
16943 def Serialize(self, aContainer):
16944 r"""Serialize(PCB_DIM_LEADER self, google::protobuf::Any & aContainer)"""
16945 return _pcbnew.PCB_DIM_LEADER_Serialize(self, aContainer)
16946
16947 def Deserialize(self, aContainer):
16948 r"""Deserialize(PCB_DIM_LEADER self, google::protobuf::Any const & aContainer) -> bool"""
16949 return _pcbnew.PCB_DIM_LEADER_Deserialize(self, aContainer)
16950
16951 @staticmethod
16952 def ClassOf(aItem):
16953 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16954 return _pcbnew.PCB_DIM_LEADER_ClassOf(aItem)
16955
16956 def SetTextBorder(self, aBorder):
16957 r"""SetTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
16958 return _pcbnew.PCB_DIM_LEADER_SetTextBorder(self, aBorder)
16959
16960 def GetTextBorder(self):
16961 r"""GetTextBorder(PCB_DIM_LEADER self) -> DIM_TEXT_BORDER"""
16962 return _pcbnew.PCB_DIM_LEADER_GetTextBorder(self)
16963
16964 def ChangeTextBorder(self, aBorder):
16965 r"""ChangeTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
16966 return _pcbnew.PCB_DIM_LEADER_ChangeTextBorder(self, aBorder)
16967 __swig_destroy__ = _pcbnew.delete_PCB_DIM_LEADER
16968
16969# Register PCB_DIM_LEADER in _pcbnew:
16970_pcbnew.PCB_DIM_LEADER_swigregister(PCB_DIM_LEADER)
16972 r"""Proxy of C++ PCB_DIM_CENTER class."""
16973
16974 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16975 __repr__ = _swig_repr
16976
16977 def __init__(self, aParent):
16978 r"""__init__(PCB_DIM_CENTER self, BOARD_ITEM aParent) -> PCB_DIM_CENTER"""
16979 _pcbnew.PCB_DIM_CENTER_swiginit(self, _pcbnew.new_PCB_DIM_CENTER(aParent))
16980
16981 def Serialize(self, aContainer):
16982 r"""Serialize(PCB_DIM_CENTER self, google::protobuf::Any & aContainer)"""
16983 return _pcbnew.PCB_DIM_CENTER_Serialize(self, aContainer)
16984
16985 def Deserialize(self, aContainer):
16986 r"""Deserialize(PCB_DIM_CENTER self, google::protobuf::Any const & aContainer) -> bool"""
16987 return _pcbnew.PCB_DIM_CENTER_Deserialize(self, aContainer)
16988
16989 @staticmethod
16990 def ClassOf(aItem):
16991 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16992 return _pcbnew.PCB_DIM_CENTER_ClassOf(aItem)
16993 __swig_destroy__ = _pcbnew.delete_PCB_DIM_CENTER
16994
16995# Register PCB_DIM_CENTER in _pcbnew:
16996_pcbnew.PCB_DIM_CENTER_swigregister(PCB_DIM_CENTER)
16997MARKER_SHAPE_POINT_COUNT = _pcbnew.MARKER_SHAPE_POINT_COUNT
16998
17000 r"""Proxy of C++ PCB_MARKER class."""
17001
17002 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17003 __repr__ = _swig_repr
17004
17005 def __init__(self, aItem, aPos, aLayer=F_Cu):
17006 r"""__init__(PCB_MARKER self, std::shared_ptr< RC_ITEM > aItem, VECTOR2I aPos, int aLayer=F_Cu) -> PCB_MARKER"""
17007 _pcbnew.PCB_MARKER_swiginit(self, _pcbnew.new_PCB_MARKER(aItem, aPos, aLayer))
17008 __swig_destroy__ = _pcbnew.delete_PCB_MARKER
17009
17010 @staticmethod
17011 def ClassOf(aItem):
17012 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17013 return _pcbnew.PCB_MARKER_ClassOf(aItem)
17014
17016 r"""SerializeToString(PCB_MARKER self) -> wxString"""
17017 return _pcbnew.PCB_MARKER_SerializeToString(self)
17018
17019 @staticmethod
17021 r"""DeserializeFromString(wxString data) -> PCB_MARKER"""
17022 return _pcbnew.PCB_MARKER_DeserializeFromString(data)
17023
17024 def HitTest(self, *args):
17025 r"""
17026 HitTest(PCB_MARKER self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17027 HitTest(PCB_MARKER self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17028 """
17029 return _pcbnew.PCB_MARKER_HitTest(self, *args)
17030
17031 def GetColorLayer(self):
17032 r"""GetColorLayer(PCB_MARKER self) -> GAL_LAYER_ID"""
17033 return _pcbnew.PCB_MARKER_GetColorLayer(self)
17034
17035 def GetEffectiveShape(self, *args):
17036 r"""GetEffectiveShape(PCB_MARKER self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17037 return _pcbnew.PCB_MARKER_GetEffectiveShape(self, *args)
17038
17039 def SetZoom(self, aZoomFactor):
17040 r"""SetZoom(PCB_MARKER self, double aZoomFactor)"""
17041 return _pcbnew.PCB_MARKER_SetZoom(self, aZoomFactor)
17042
17043 def GetShapes1(self):
17044 r"""GetShapes1(PCB_MARKER self) -> std::vector< PCB_SHAPE,std::allocator< PCB_SHAPE > >"""
17045 return _pcbnew.PCB_MARKER_GetShapes1(self)
17046
17047 def GetShapes2(self):
17048 r"""GetShapes2(PCB_MARKER self) -> std::vector< PCB_SHAPE,std::allocator< PCB_SHAPE > >"""
17049 return _pcbnew.PCB_MARKER_GetShapes2(self)
17050
17051 def SetShapes1(self, aShapes):
17052 r"""SetShapes1(PCB_MARKER self, std::vector< PCB_SHAPE,std::allocator< PCB_SHAPE > > const & aShapes)"""
17053 return _pcbnew.PCB_MARKER_SetShapes1(self, aShapes)
17054
17055 def SetShapes2(self, aShapes):
17056 r"""SetShapes2(PCB_MARKER self, std::vector< PCB_SHAPE,std::allocator< PCB_SHAPE > > const & aShapes)"""
17057 return _pcbnew.PCB_MARKER_SetShapes2(self, aShapes)
17058
17059# Register PCB_MARKER in _pcbnew:
17060_pcbnew.PCB_MARKER_swigregister(PCB_MARKER)
17062 r"""Proxy of C++ PCB_TARGET class."""
17063
17064 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17065 __repr__ = _swig_repr
17066
17067 def __init__(self, *args):
17068 r"""
17069 __init__(PCB_TARGET self, BOARD_ITEM aParent) -> PCB_TARGET
17070 __init__(PCB_TARGET self, BOARD_ITEM aParent, int aShape, PCB_LAYER_ID aLayer, VECTOR2I aPos, int aSize, int aWidth) -> PCB_TARGET
17071 """
17072 _pcbnew.PCB_TARGET_swiginit(self, _pcbnew.new_PCB_TARGET(*args))
17073 __swig_destroy__ = _pcbnew.delete_PCB_TARGET
17074
17075 @staticmethod
17076 def ClassOf(aItem):
17077 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17078 return _pcbnew.PCB_TARGET_ClassOf(aItem)
17079
17080 def SetShape(self, aShape):
17081 r"""SetShape(PCB_TARGET self, int aShape)"""
17082 return _pcbnew.PCB_TARGET_SetShape(self, aShape)
17083
17084 def GetShape(self):
17085 r"""GetShape(PCB_TARGET self) -> int"""
17086 return _pcbnew.PCB_TARGET_GetShape(self)
17087
17088 def SetSize(self, aSize):
17089 r"""SetSize(PCB_TARGET self, int aSize)"""
17090 return _pcbnew.PCB_TARGET_SetSize(self, aSize)
17091
17092 def GetSize(self):
17093 r"""GetSize(PCB_TARGET self) -> int"""
17094 return _pcbnew.PCB_TARGET_GetSize(self)
17095
17096 def SetWidth(self, aWidth):
17097 r"""SetWidth(PCB_TARGET self, int aWidth)"""
17098 return _pcbnew.PCB_TARGET_SetWidth(self, aWidth)
17099
17100 def GetWidth(self):
17101 r"""GetWidth(PCB_TARGET self) -> int"""
17102 return _pcbnew.PCB_TARGET_GetWidth(self)
17103
17104 def HitTest(self, *args):
17105 r"""
17106 HitTest(PCB_TARGET self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17107 HitTest(PCB_TARGET self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17108 """
17109 return _pcbnew.PCB_TARGET_HitTest(self, *args)
17110
17111 def GetEffectiveShape(self, *args):
17112 r"""GetEffectiveShape(PCB_TARGET self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17113 return _pcbnew.PCB_TARGET_GetEffectiveShape(self, *args)
17114
17115 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
17116 r"""TransformShapeToPolygon(PCB_TARGET self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
17117 return _pcbnew.PCB_TARGET_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
17118
17119 def __eq__(self, *args):
17120 r"""
17121 __eq__(PCB_TARGET self, PCB_TARGET aOther) -> bool
17122 __eq__(PCB_TARGET self, BOARD_ITEM aBoardItem) -> bool
17123 """
17124 return _pcbnew.PCB_TARGET___eq__(self, *args)
17125
17126# Register PCB_TARGET in _pcbnew:
17127_pcbnew.PCB_TARGET_swigregister(PCB_TARGET)
17129 r"""Proxy of C++ PCB_TABLE class."""
17130
17131 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17132 __repr__ = _swig_repr
17133
17134 def __init__(self, *args):
17135 r"""
17136 __init__(PCB_TABLE self, BOARD_ITEM aParent, int aLineWidth) -> PCB_TABLE
17137 __init__(PCB_TABLE self, PCB_TABLE aTable) -> PCB_TABLE
17138 """
17139 _pcbnew.PCB_TABLE_swiginit(self, _pcbnew.new_PCB_TABLE(*args))
17140 __swig_destroy__ = _pcbnew.delete_PCB_TABLE
17141
17142 @staticmethod
17143 def ClassOf(aItem):
17144 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17145 return _pcbnew.PCB_TABLE_ClassOf(aItem)
17146
17147 def SetStrokeExternal(self, aDoStroke):
17148 r"""SetStrokeExternal(PCB_TABLE self, bool aDoStroke)"""
17149 return _pcbnew.PCB_TABLE_SetStrokeExternal(self, aDoStroke)
17150
17152 r"""StrokeExternal(PCB_TABLE self) -> bool"""
17153 return _pcbnew.PCB_TABLE_StrokeExternal(self)
17154
17155 def SetStrokeHeader(self, aDoStroke):
17156 r"""SetStrokeHeader(PCB_TABLE self, bool aDoStroke)"""
17157 return _pcbnew.PCB_TABLE_SetStrokeHeader(self, aDoStroke)
17158
17159 def StrokeHeader(self):
17160 r"""StrokeHeader(PCB_TABLE self) -> bool"""
17161 return _pcbnew.PCB_TABLE_StrokeHeader(self)
17162
17163 def SetBorderStroke(self, aParams):
17164 r"""SetBorderStroke(PCB_TABLE self, STROKE_PARAMS const & aParams)"""
17165 return _pcbnew.PCB_TABLE_SetBorderStroke(self, aParams)
17166
17168 r"""GetBorderStroke(PCB_TABLE self) -> STROKE_PARAMS const &"""
17169 return _pcbnew.PCB_TABLE_GetBorderStroke(self)
17170
17171 def SetBorderWidth(self, aWidth):
17172 r"""SetBorderWidth(PCB_TABLE self, int aWidth)"""
17173 return _pcbnew.PCB_TABLE_SetBorderWidth(self, aWidth)
17174
17176 r"""GetBorderWidth(PCB_TABLE self) -> int"""
17177 return _pcbnew.PCB_TABLE_GetBorderWidth(self)
17178
17179 def SetBorderStyle(self, aStyle):
17180 r"""SetBorderStyle(PCB_TABLE self, LINE_STYLE const aStyle)"""
17181 return _pcbnew.PCB_TABLE_SetBorderStyle(self, aStyle)
17182
17184 r"""GetBorderStyle(PCB_TABLE self) -> LINE_STYLE"""
17185 return _pcbnew.PCB_TABLE_GetBorderStyle(self)
17186
17187 def SetBorderColor(self, aColor):
17188 r"""SetBorderColor(PCB_TABLE self, COLOR4D aColor)"""
17189 return _pcbnew.PCB_TABLE_SetBorderColor(self, aColor)
17190
17192 r"""GetBorderColor(PCB_TABLE self) -> COLOR4D"""
17193 return _pcbnew.PCB_TABLE_GetBorderColor(self)
17194
17195 def SetSeparatorsStroke(self, aParams):
17196 r"""SetSeparatorsStroke(PCB_TABLE self, STROKE_PARAMS const & aParams)"""
17197 return _pcbnew.PCB_TABLE_SetSeparatorsStroke(self, aParams)
17198
17200 r"""GetSeparatorsStroke(PCB_TABLE self) -> STROKE_PARAMS const &"""
17201 return _pcbnew.PCB_TABLE_GetSeparatorsStroke(self)
17202
17203 def SetSeparatorsWidth(self, aWidth):
17204 r"""SetSeparatorsWidth(PCB_TABLE self, int aWidth)"""
17205 return _pcbnew.PCB_TABLE_SetSeparatorsWidth(self, aWidth)
17206
17208 r"""GetSeparatorsWidth(PCB_TABLE self) -> int"""
17209 return _pcbnew.PCB_TABLE_GetSeparatorsWidth(self)
17210
17211 def SetSeparatorsStyle(self, aStyle):
17212 r"""SetSeparatorsStyle(PCB_TABLE self, LINE_STYLE const aStyle)"""
17213 return _pcbnew.PCB_TABLE_SetSeparatorsStyle(self, aStyle)
17214
17216 r"""GetSeparatorsStyle(PCB_TABLE self) -> LINE_STYLE"""
17217 return _pcbnew.PCB_TABLE_GetSeparatorsStyle(self)
17218
17219 def SetSeparatorsColor(self, aColor):
17220 r"""SetSeparatorsColor(PCB_TABLE self, COLOR4D aColor)"""
17221 return _pcbnew.PCB_TABLE_SetSeparatorsColor(self, aColor)
17222
17224 r"""GetSeparatorsColor(PCB_TABLE self) -> COLOR4D"""
17225 return _pcbnew.PCB_TABLE_GetSeparatorsColor(self)
17226
17227 def SetStrokeColumns(self, aDoStroke):
17228 r"""SetStrokeColumns(PCB_TABLE self, bool aDoStroke)"""
17229 return _pcbnew.PCB_TABLE_SetStrokeColumns(self, aDoStroke)
17230
17231 def StrokeColumns(self):
17232 r"""StrokeColumns(PCB_TABLE self) -> bool"""
17233 return _pcbnew.PCB_TABLE_StrokeColumns(self)
17234
17235 def SetStrokeRows(self, aDoStroke):
17236 r"""SetStrokeRows(PCB_TABLE self, bool aDoStroke)"""
17237 return _pcbnew.PCB_TABLE_SetStrokeRows(self, aDoStroke)
17238
17239 def StrokeRows(self):
17240 r"""StrokeRows(PCB_TABLE self) -> bool"""
17241 return _pcbnew.PCB_TABLE_StrokeRows(self)
17242
17243 def GetEnd(self):
17244 r"""GetEnd(PCB_TABLE self) -> VECTOR2I"""
17245 return _pcbnew.PCB_TABLE_GetEnd(self)
17246
17247 def SetPositionX(self, x):
17248 r"""SetPositionX(PCB_TABLE self, int x)"""
17249 return _pcbnew.PCB_TABLE_SetPositionX(self, x)
17250
17251 def SetPositionY(self, y):
17252 r"""SetPositionY(PCB_TABLE self, int y)"""
17253 return _pcbnew.PCB_TABLE_SetPositionY(self, y)
17254
17255 def GetPositionX(self):
17256 r"""GetPositionX(PCB_TABLE self) -> int"""
17257 return _pcbnew.PCB_TABLE_GetPositionX(self)
17258
17259 def GetPositionY(self):
17260 r"""GetPositionY(PCB_TABLE self) -> int"""
17261 return _pcbnew.PCB_TABLE_GetPositionY(self)
17262
17263 def SetColCount(self, aCount):
17264 r"""SetColCount(PCB_TABLE self, int aCount)"""
17265 return _pcbnew.PCB_TABLE_SetColCount(self, aCount)
17266
17267 def GetColCount(self):
17268 r"""GetColCount(PCB_TABLE self) -> int"""
17269 return _pcbnew.PCB_TABLE_GetColCount(self)
17270
17271 def GetRowCount(self):
17272 r"""GetRowCount(PCB_TABLE self) -> int"""
17273 return _pcbnew.PCB_TABLE_GetRowCount(self)
17274
17275 def SetColWidth(self, aCol, aWidth):
17276 r"""SetColWidth(PCB_TABLE self, int aCol, int aWidth)"""
17277 return _pcbnew.PCB_TABLE_SetColWidth(self, aCol, aWidth)
17278
17279 def GetColWidth(self, aCol):
17280 r"""GetColWidth(PCB_TABLE self, int aCol) -> int"""
17281 return _pcbnew.PCB_TABLE_GetColWidth(self, aCol)
17282
17283 def SetRowHeight(self, aRow, aHeight):
17284 r"""SetRowHeight(PCB_TABLE self, int aRow, int aHeight)"""
17285 return _pcbnew.PCB_TABLE_SetRowHeight(self, aRow, aHeight)
17286
17287 def GetRowHeight(self, aRow):
17288 r"""GetRowHeight(PCB_TABLE self, int aRow) -> int"""
17289 return _pcbnew.PCB_TABLE_GetRowHeight(self, aRow)
17290
17291 def GetCell(self, aRow, aCol):
17292 r"""GetCell(PCB_TABLE self, int aRow, int aCol) -> PCB_TABLECELL *"""
17293 return _pcbnew.PCB_TABLE_GetCell(self, aRow, aCol)
17294
17295 def GetCells(self):
17296 r"""GetCells(PCB_TABLE self) -> std::vector< PCB_TABLECELL *,std::allocator< PCB_TABLECELL * > >"""
17297 return _pcbnew.PCB_TABLE_GetCells(self)
17298
17299 def AddCell(self, aCell):
17300 r"""AddCell(PCB_TABLE self, PCB_TABLECELL * aCell)"""
17301 return _pcbnew.PCB_TABLE_AddCell(self, aCell)
17302
17303 def InsertCell(self, aIdx, aCell):
17304 r"""InsertCell(PCB_TABLE self, int aIdx, PCB_TABLECELL * aCell)"""
17305 return _pcbnew.PCB_TABLE_InsertCell(self, aIdx, aCell)
17306
17307 def ClearCells(self):
17308 r"""ClearCells(PCB_TABLE self)"""
17309 return _pcbnew.PCB_TABLE_ClearCells(self)
17310
17312 r"""DeleteMarkedCells(PCB_TABLE self)"""
17313 return _pcbnew.PCB_TABLE_DeleteMarkedCells(self)
17314
17315 def AddNative(self, *args):
17316 r"""AddNative(PCB_TABLE self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
17317 return _pcbnew.PCB_TABLE_AddNative(self, *args)
17318
17319 def RemoveNative(self, *args):
17320 r"""RemoveNative(PCB_TABLE self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
17321 return _pcbnew.PCB_TABLE_RemoveNative(self, *args)
17322
17323 def GetEffectiveShape(self, *args):
17324 r"""GetEffectiveShape(PCB_TABLE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17325 return _pcbnew.PCB_TABLE_GetEffectiveShape(self, *args)
17326
17327 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
17328 r"""TransformShapeToPolygon(PCB_TABLE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
17329 return _pcbnew.PCB_TABLE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
17330
17331 def HitTest(self, *args):
17332 r"""
17333 HitTest(PCB_TABLE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17334 HitTest(PCB_TABLE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17335 """
17336 return _pcbnew.PCB_TABLE_HitTest(self, *args)
17337
17338 def __eq__(self, *args):
17339 r"""
17340 __eq__(PCB_TABLE self, PCB_TABLE aOther) -> bool
17341 __eq__(PCB_TABLE self, BOARD_ITEM aBoardItem) -> bool
17342 """
17343 return _pcbnew.PCB_TABLE___eq__(self, *args)
17344
17345 @staticmethod
17346 def Compare(aTable, aOther):
17347 r"""Compare(PCB_TABLE aTable, PCB_TABLE aOther) -> int"""
17348 return _pcbnew.PCB_TABLE_Compare(aTable, aOther)
17349
17350# Register PCB_TABLE in _pcbnew:
17351_pcbnew.PCB_TABLE_swigregister(PCB_TABLE)
17353 r"""Proxy of C++ std::vector< PAD * > class."""
17354
17355 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17356 __repr__ = _swig_repr
17357
17358 def iterator(self):
17359 r"""iterator(PADS_VEC self) -> SwigPyIterator"""
17360 return _pcbnew.PADS_VEC_iterator(self)
17361 def __iter__(self):
17362 return self.iterator()
17363
17364 def __nonzero__(self):
17365 r"""__nonzero__(PADS_VEC self) -> bool"""
17366 return _pcbnew.PADS_VEC___nonzero__(self)
17367
17368 def __bool__(self):
17369 r"""__bool__(PADS_VEC self) -> bool"""
17370 return _pcbnew.PADS_VEC___bool__(self)
17371
17372 def __len__(self):
17373 r"""__len__(PADS_VEC self) -> std::vector< PAD * >::size_type"""
17374 return _pcbnew.PADS_VEC___len__(self)
17375
17376 def __getslice__(self, i, j):
17377 r"""__getslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j) -> PADS_VEC"""
17378 return _pcbnew.PADS_VEC___getslice__(self, i, j)
17379
17380 def __setslice__(self, *args):
17381 r"""
17382 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)
17383 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j, PADS_VEC v)
17384 """
17385 return _pcbnew.PADS_VEC___setslice__(self, *args)
17386
17387 def __delslice__(self, i, j):
17388 r"""__delslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)"""
17389 return _pcbnew.PADS_VEC___delslice__(self, i, j)
17390
17391 def __delitem__(self, *args):
17392 r"""
17393 __delitem__(PADS_VEC self, std::vector< PAD * >::difference_type i)
17394 __delitem__(PADS_VEC self, SWIGPY_SLICEOBJECT * slice)
17395 """
17396 return _pcbnew.PADS_VEC___delitem__(self, *args)
17397
17398 def __getitem__(self, *args):
17399 r"""
17400 __getitem__(PADS_VEC self, SWIGPY_SLICEOBJECT * slice) -> PADS_VEC
17401 __getitem__(PADS_VEC self, std::vector< PAD * >::difference_type i) -> PAD
17402 """
17403 return _pcbnew.PADS_VEC___getitem__(self, *args)
17404
17405 def __setitem__(self, *args):
17406 r"""
17407 __setitem__(PADS_VEC self, SWIGPY_SLICEOBJECT * slice, PADS_VEC v)
17408 __setitem__(PADS_VEC self, SWIGPY_SLICEOBJECT * slice)
17409 __setitem__(PADS_VEC self, std::vector< PAD * >::difference_type i, PAD x)
17410 """
17411 return _pcbnew.PADS_VEC___setitem__(self, *args)
17412
17413 def pop(self):
17414 r"""pop(PADS_VEC self) -> PAD"""
17415 return _pcbnew.PADS_VEC_pop(self)
17416
17417 def append(self, x):
17418 r"""append(PADS_VEC self, PAD x)"""
17419 return _pcbnew.PADS_VEC_append(self, x)
17420
17421 def empty(self):
17422 r"""empty(PADS_VEC self) -> bool"""
17423 return _pcbnew.PADS_VEC_empty(self)
17424
17425 def size(self):
17426 r"""size(PADS_VEC self) -> std::vector< PAD * >::size_type"""
17427 return _pcbnew.PADS_VEC_size(self)
17428
17429 def swap(self, v):
17430 r"""swap(PADS_VEC self, PADS_VEC v)"""
17431 return _pcbnew.PADS_VEC_swap(self, v)
17432
17433 def begin(self):
17434 r"""begin(PADS_VEC self) -> std::vector< PAD * >::iterator"""
17435 return _pcbnew.PADS_VEC_begin(self)
17436
17437 def end(self):
17438 r"""end(PADS_VEC self) -> std::vector< PAD * >::iterator"""
17439 return _pcbnew.PADS_VEC_end(self)
17440
17441 def rbegin(self):
17442 r"""rbegin(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
17443 return _pcbnew.PADS_VEC_rbegin(self)
17444
17445 def rend(self):
17446 r"""rend(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
17447 return _pcbnew.PADS_VEC_rend(self)
17448
17449 def clear(self):
17450 r"""clear(PADS_VEC self)"""
17451 return _pcbnew.PADS_VEC_clear(self)
17452
17453 def get_allocator(self):
17454 r"""get_allocator(PADS_VEC self) -> std::vector< PAD * >::allocator_type"""
17455 return _pcbnew.PADS_VEC_get_allocator(self)
17456
17457 def pop_back(self):
17458 r"""pop_back(PADS_VEC self)"""
17459 return _pcbnew.PADS_VEC_pop_back(self)
17460
17461 def erase(self, *args):
17462 r"""
17463 erase(PADS_VEC self, std::vector< PAD * >::iterator pos) -> std::vector< PAD * >::iterator
17464 erase(PADS_VEC self, std::vector< PAD * >::iterator first, std::vector< PAD * >::iterator last) -> std::vector< PAD * >::iterator
17465 """
17466 return _pcbnew.PADS_VEC_erase(self, *args)
17467
17468 def __init__(self, *args):
17469 r"""
17470 __init__(PADS_VEC self) -> PADS_VEC
17471 __init__(PADS_VEC self, PADS_VEC other) -> PADS_VEC
17472 __init__(PADS_VEC self, std::vector< PAD * >::size_type size) -> PADS_VEC
17473 __init__(PADS_VEC self, std::vector< PAD * >::size_type size, PAD value) -> PADS_VEC
17474 """
17475 _pcbnew.PADS_VEC_swiginit(self, _pcbnew.new_PADS_VEC(*args))
17476
17477 def push_back(self, x):
17478 r"""push_back(PADS_VEC self, PAD x)"""
17479 return _pcbnew.PADS_VEC_push_back(self, x)
17480
17481 def front(self):
17482 r"""front(PADS_VEC self) -> PAD"""
17483 return _pcbnew.PADS_VEC_front(self)
17484
17485 def back(self):
17486 r"""back(PADS_VEC self) -> PAD"""
17487 return _pcbnew.PADS_VEC_back(self)
17488
17489 def assign(self, n, x):
17490 r"""assign(PADS_VEC self, std::vector< PAD * >::size_type n, PAD x)"""
17491 return _pcbnew.PADS_VEC_assign(self, n, x)
17492
17493 def resize(self, *args):
17494 r"""
17495 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size)
17496 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size, PAD x)
17497 """
17498 return _pcbnew.PADS_VEC_resize(self, *args)
17499
17500 def insert(self, *args):
17501 r"""
17502 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, PAD x) -> std::vector< PAD * >::iterator
17503 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, std::vector< PAD * >::size_type n, PAD x)
17504 """
17505 return _pcbnew.PADS_VEC_insert(self, *args)
17506
17507 def reserve(self, n):
17508 r"""reserve(PADS_VEC self, std::vector< PAD * >::size_type n)"""
17509 return _pcbnew.PADS_VEC_reserve(self, n)
17510
17511 def capacity(self):
17512 r"""capacity(PADS_VEC self) -> std::vector< PAD * >::size_type"""
17513 return _pcbnew.PADS_VEC_capacity(self)
17514 __swig_destroy__ = _pcbnew.delete_PADS_VEC
17515
17516# Register PADS_VEC in _pcbnew:
17517_pcbnew.PADS_VEC_swigregister(PADS_VEC)
17519 r"""Proxy of C++ std::vector< PCB_TRACK * > class."""
17520
17521 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17522 __repr__ = _swig_repr
17523
17524 def iterator(self):
17525 r"""iterator(TRACKS_VEC self) -> SwigPyIterator"""
17526 return _pcbnew.TRACKS_VEC_iterator(self)
17527 def __iter__(self):
17528 return self.iterator()
17529
17530 def __nonzero__(self):
17531 r"""__nonzero__(TRACKS_VEC self) -> bool"""
17532 return _pcbnew.TRACKS_VEC___nonzero__(self)
17533
17534 def __bool__(self):
17535 r"""__bool__(TRACKS_VEC self) -> bool"""
17536 return _pcbnew.TRACKS_VEC___bool__(self)
17537
17538 def __len__(self):
17539 r"""__len__(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
17540 return _pcbnew.TRACKS_VEC___len__(self)
17541
17542 def __getslice__(self, i, j):
17543 r"""__getslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j) -> TRACKS_VEC"""
17544 return _pcbnew.TRACKS_VEC___getslice__(self, i, j)
17545
17546 def __setslice__(self, *args):
17547 r"""
17548 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)
17549 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j, TRACKS_VEC v)
17550 """
17551 return _pcbnew.TRACKS_VEC___setslice__(self, *args)
17552
17553 def __delslice__(self, i, j):
17554 r"""__delslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)"""
17555 return _pcbnew.TRACKS_VEC___delslice__(self, i, j)
17556
17557 def __delitem__(self, *args):
17558 r"""
17559 __delitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i)
17560 __delitem__(TRACKS_VEC self, SWIGPY_SLICEOBJECT * slice)
17561 """
17562 return _pcbnew.TRACKS_VEC___delitem__(self, *args)
17563
17564 def __getitem__(self, *args):
17565 r"""
17566 __getitem__(TRACKS_VEC self, SWIGPY_SLICEOBJECT * slice) -> TRACKS_VEC
17567 __getitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i) -> PCB_TRACK
17568 """
17569 return _pcbnew.TRACKS_VEC___getitem__(self, *args)
17570
17571 def __setitem__(self, *args):
17572 r"""
17573 __setitem__(TRACKS_VEC self, SWIGPY_SLICEOBJECT * slice, TRACKS_VEC v)
17574 __setitem__(TRACKS_VEC self, SWIGPY_SLICEOBJECT * slice)
17575 __setitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, PCB_TRACK x)
17576 """
17577 return _pcbnew.TRACKS_VEC___setitem__(self, *args)
17578
17579 def pop(self):
17580 r"""pop(TRACKS_VEC self) -> PCB_TRACK"""
17581 return _pcbnew.TRACKS_VEC_pop(self)
17582
17583 def append(self, x):
17584 r"""append(TRACKS_VEC self, PCB_TRACK x)"""
17585 return _pcbnew.TRACKS_VEC_append(self, x)
17586
17587 def empty(self):
17588 r"""empty(TRACKS_VEC self) -> bool"""
17589 return _pcbnew.TRACKS_VEC_empty(self)
17590
17591 def size(self):
17592 r"""size(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
17593 return _pcbnew.TRACKS_VEC_size(self)
17594
17595 def swap(self, v):
17596 r"""swap(TRACKS_VEC self, TRACKS_VEC v)"""
17597 return _pcbnew.TRACKS_VEC_swap(self, v)
17598
17599 def begin(self):
17600 r"""begin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
17601 return _pcbnew.TRACKS_VEC_begin(self)
17602
17603 def end(self):
17604 r"""end(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
17605 return _pcbnew.TRACKS_VEC_end(self)
17606
17607 def rbegin(self):
17608 r"""rbegin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
17609 return _pcbnew.TRACKS_VEC_rbegin(self)
17610
17611 def rend(self):
17612 r"""rend(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
17613 return _pcbnew.TRACKS_VEC_rend(self)
17614
17615 def clear(self):
17616 r"""clear(TRACKS_VEC self)"""
17617 return _pcbnew.TRACKS_VEC_clear(self)
17618
17619 def get_allocator(self):
17620 r"""get_allocator(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::allocator_type"""
17621 return _pcbnew.TRACKS_VEC_get_allocator(self)
17622
17623 def pop_back(self):
17624 r"""pop_back(TRACKS_VEC self)"""
17625 return _pcbnew.TRACKS_VEC_pop_back(self)
17626
17627 def erase(self, *args):
17628 r"""
17629 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos) -> std::vector< PCB_TRACK * >::iterator
17630 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator first, std::vector< PCB_TRACK * >::iterator last) -> std::vector< PCB_TRACK * >::iterator
17631 """
17632 return _pcbnew.TRACKS_VEC_erase(self, *args)
17633
17634 def __init__(self, *args):
17635 r"""
17636 __init__(TRACKS_VEC self) -> TRACKS_VEC
17637 __init__(TRACKS_VEC self, TRACKS_VEC other) -> TRACKS_VEC
17638 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size) -> TRACKS_VEC
17639 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS_VEC
17640 """
17641 _pcbnew.TRACKS_VEC_swiginit(self, _pcbnew.new_TRACKS_VEC(*args))
17642
17643 def push_back(self, x):
17644 r"""push_back(TRACKS_VEC self, PCB_TRACK x)"""
17645 return _pcbnew.TRACKS_VEC_push_back(self, x)
17646
17647 def front(self):
17648 r"""front(TRACKS_VEC self) -> PCB_TRACK"""
17649 return _pcbnew.TRACKS_VEC_front(self)
17650
17651 def back(self):
17652 r"""back(TRACKS_VEC self) -> PCB_TRACK"""
17653 return _pcbnew.TRACKS_VEC_back(self)
17654
17655 def assign(self, n, x):
17656 r"""assign(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
17657 return _pcbnew.TRACKS_VEC_assign(self, n, x)
17658
17659 def resize(self, *args):
17660 r"""
17661 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size)
17662 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
17663 """
17664 return _pcbnew.TRACKS_VEC_resize(self, *args)
17665
17666 def insert(self, *args):
17667 r"""
17668 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::vector< PCB_TRACK * >::iterator
17669 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)
17670 """
17671 return _pcbnew.TRACKS_VEC_insert(self, *args)
17672
17673 def reserve(self, n):
17674 r"""reserve(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n)"""
17675 return _pcbnew.TRACKS_VEC_reserve(self, n)
17676
17677 def capacity(self):
17678 r"""capacity(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
17679 return _pcbnew.TRACKS_VEC_capacity(self)
17680 __swig_destroy__ = _pcbnew.delete_TRACKS_VEC
17681
17682# Register TRACKS_VEC in _pcbnew:
17683_pcbnew.TRACKS_VEC_swigregister(TRACKS_VEC)
17685 r"""Proxy of C++ NETINFO_ITEM class."""
17686
17687 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17688 __repr__ = _swig_repr
17689
17690 def __init__(self, *args):
17691 r"""__init__(NETINFO_ITEM self, BOARD aParent, wxString aNetName=wxEmptyString, int aNetCode=-1) -> NETINFO_ITEM"""
17692 _pcbnew.NETINFO_ITEM_swiginit(self, _pcbnew.new_NETINFO_ITEM(*args))
17693 __swig_destroy__ = _pcbnew.delete_NETINFO_ITEM
17694
17695 @staticmethod
17696 def ClassOf(aItem):
17697 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17698 return _pcbnew.NETINFO_ITEM_ClassOf(aItem)
17699
17700 def SetNetClass(self, aNetClass):
17701 r"""SetNetClass(NETINFO_ITEM self, std::shared_ptr< NETCLASS > const & aNetClass)"""
17702 return _pcbnew.NETINFO_ITEM_SetNetClass(self, aNetClass)
17703
17704 def GetNetClass(self):
17705 r"""GetNetClass(NETINFO_ITEM self) -> NETCLASS"""
17706 return _pcbnew.NETINFO_ITEM_GetNetClass(self)
17707
17709 r"""GetNetClassSlow(NETINFO_ITEM self) -> std::shared_ptr< NETCLASS >"""
17710 return _pcbnew.NETINFO_ITEM_GetNetClassSlow(self)
17711
17712 def GetNetCode(self):
17713 r"""GetNetCode(NETINFO_ITEM self) -> int"""
17714 return _pcbnew.NETINFO_ITEM_GetNetCode(self)
17715
17716 def SetNetCode(self, aNetCode):
17717 r"""SetNetCode(NETINFO_ITEM self, int aNetCode)"""
17718 return _pcbnew.NETINFO_ITEM_SetNetCode(self, aNetCode)
17719
17720 def GetNetname(self):
17721 r"""GetNetname(NETINFO_ITEM self) -> wxString"""
17722 return _pcbnew.NETINFO_ITEM_GetNetname(self)
17723
17725 r"""GetShortNetname(NETINFO_ITEM self) -> wxString"""
17726 return _pcbnew.NETINFO_ITEM_GetShortNetname(self)
17727
17729 r"""GetDisplayNetname(NETINFO_ITEM self) -> wxString"""
17730 return _pcbnew.NETINFO_ITEM_GetDisplayNetname(self)
17731
17733 r"""HasAutoGeneratedNetname(NETINFO_ITEM self) -> bool"""
17734 return _pcbnew.NETINFO_ITEM_HasAutoGeneratedNetname(self)
17735
17736 def SetNetname(self, aNewName):
17737 r"""SetNetname(NETINFO_ITEM self, wxString aNewName)"""
17738 return _pcbnew.NETINFO_ITEM_SetNetname(self, aNewName)
17739
17740 def IsCurrent(self):
17741 r"""IsCurrent(NETINFO_ITEM self) -> bool"""
17742 return _pcbnew.NETINFO_ITEM_IsCurrent(self)
17743
17744 def SetIsCurrent(self, isCurrent):
17745 r"""SetIsCurrent(NETINFO_ITEM self, bool isCurrent)"""
17746 return _pcbnew.NETINFO_ITEM_SetIsCurrent(self, isCurrent)
17747
17748 def Clear(self):
17749 r"""Clear(NETINFO_ITEM self)"""
17750 return _pcbnew.NETINFO_ITEM_Clear(self)
17751
17752 def SetParent(self, aParent):
17753 r"""SetParent(NETINFO_ITEM self, BOARD aParent)"""
17754 return _pcbnew.NETINFO_ITEM_SetParent(self, aParent)
17755
17756 def GetParent(self):
17757 r"""GetParent(NETINFO_ITEM self) -> BOARD"""
17758 return _pcbnew.NETINFO_ITEM_GetParent(self)
17759
17761 return self.GetNetClassSlow().GetName()
17762
17763
17764# Register NETINFO_ITEM in _pcbnew:
17765_pcbnew.NETINFO_ITEM_swigregister(NETINFO_ITEM)
17767 r"""Proxy of C++ std::map< wxString,NETINFO_ITEM * > class."""
17768
17769 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17770 __repr__ = _swig_repr
17771
17772 def iterator(self):
17773 r"""iterator(NETNAMES_MAP self) -> SwigPyIterator"""
17774 return _pcbnew.NETNAMES_MAP_iterator(self)
17775 def __iter__(self):
17776 return self.iterator()
17777
17778 def __nonzero__(self):
17779 r"""__nonzero__(NETNAMES_MAP self) -> bool"""
17780 return _pcbnew.NETNAMES_MAP___nonzero__(self)
17781
17782 def __bool__(self):
17783 r"""__bool__(NETNAMES_MAP self) -> bool"""
17784 return _pcbnew.NETNAMES_MAP___bool__(self)
17785
17786 def __len__(self):
17787 r"""__len__(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
17788 return _pcbnew.NETNAMES_MAP___len__(self)
17789 def __iter__(self):
17790 return self.key_iterator()
17791 def iterkeys(self):
17792 return self.key_iterator()
17793 def itervalues(self):
17794 return self.value_iterator()
17795 def iteritems(self):
17796 return self.iterator()
17797
17798 def __getitem__(self, key):
17799 r"""__getitem__(NETNAMES_MAP self, wxString key) -> NETINFO_ITEM"""
17800 return _pcbnew.NETNAMES_MAP___getitem__(self, key)
17801
17802 def __delitem__(self, key):
17803 r"""__delitem__(NETNAMES_MAP self, wxString key)"""
17804 return _pcbnew.NETNAMES_MAP___delitem__(self, key)
17805
17806 def has_key(self, key):
17807 r"""has_key(NETNAMES_MAP self, wxString key) -> bool"""
17808 return _pcbnew.NETNAMES_MAP_has_key(self, key)
17809
17810 def keys(self):
17811 r"""keys(NETNAMES_MAP self) -> PyObject *"""
17812 return _pcbnew.NETNAMES_MAP_keys(self)
17813
17814 def values(self):
17815 r"""values(NETNAMES_MAP self) -> PyObject *"""
17816 return _pcbnew.NETNAMES_MAP_values(self)
17817
17818 def items(self):
17819 r"""items(NETNAMES_MAP self) -> PyObject *"""
17820 return _pcbnew.NETNAMES_MAP_items(self)
17821
17822 def __contains__(self, key):
17823 r"""__contains__(NETNAMES_MAP self, wxString key) -> bool"""
17824 return _pcbnew.NETNAMES_MAP___contains__(self, key)
17825
17826 def key_iterator(self):
17827 r"""key_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
17828 return _pcbnew.NETNAMES_MAP_key_iterator(self)
17829
17831 r"""value_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
17832 return _pcbnew.NETNAMES_MAP_value_iterator(self)
17833
17834 def __setitem__(self, *args):
17835 r"""
17836 __setitem__(NETNAMES_MAP self, wxString key)
17837 __setitem__(NETNAMES_MAP self, wxString key, NETINFO_ITEM x)
17838 """
17839 return _pcbnew.NETNAMES_MAP___setitem__(self, *args)
17840
17841 def asdict(self):
17842 r"""asdict(NETNAMES_MAP self) -> PyObject *"""
17843 return _pcbnew.NETNAMES_MAP_asdict(self)
17844
17845 def __init__(self, *args):
17846 r"""
17847 __init__(NETNAMES_MAP self, std::less< wxString > const & other) -> NETNAMES_MAP
17848 __init__(NETNAMES_MAP self) -> NETNAMES_MAP
17849 __init__(NETNAMES_MAP self, NETNAMES_MAP other) -> NETNAMES_MAP
17850 """
17851 _pcbnew.NETNAMES_MAP_swiginit(self, _pcbnew.new_NETNAMES_MAP(*args))
17852
17853 def empty(self):
17854 r"""empty(NETNAMES_MAP self) -> bool"""
17855 return _pcbnew.NETNAMES_MAP_empty(self)
17856
17857 def size(self):
17858 r"""size(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
17859 return _pcbnew.NETNAMES_MAP_size(self)
17860
17861 def swap(self, v):
17862 r"""swap(NETNAMES_MAP self, NETNAMES_MAP v)"""
17863 return _pcbnew.NETNAMES_MAP_swap(self, v)
17864
17865 def begin(self):
17866 r"""begin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
17867 return _pcbnew.NETNAMES_MAP_begin(self)
17868
17869 def end(self):
17870 r"""end(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
17871 return _pcbnew.NETNAMES_MAP_end(self)
17872
17873 def rbegin(self):
17874 r"""rbegin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
17875 return _pcbnew.NETNAMES_MAP_rbegin(self)
17876
17877 def rend(self):
17878 r"""rend(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
17879 return _pcbnew.NETNAMES_MAP_rend(self)
17880
17881 def clear(self):
17882 r"""clear(NETNAMES_MAP self)"""
17883 return _pcbnew.NETNAMES_MAP_clear(self)
17884
17885 def get_allocator(self):
17886 r"""get_allocator(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::allocator_type"""
17887 return _pcbnew.NETNAMES_MAP_get_allocator(self)
17888
17889 def count(self, x):
17890 r"""count(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
17891 return _pcbnew.NETNAMES_MAP_count(self, x)
17892
17893 def erase(self, *args):
17894 r"""
17895 erase(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type
17896 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator position)
17897 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator first, std::map< wxString,NETINFO_ITEM * >::iterator last)
17898 """
17899 return _pcbnew.NETNAMES_MAP_erase(self, *args)
17900
17901 def find(self, x):
17902 r"""find(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
17903 return _pcbnew.NETNAMES_MAP_find(self, x)
17904
17905 def lower_bound(self, x):
17906 r"""lower_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
17907 return _pcbnew.NETNAMES_MAP_lower_bound(self, x)
17908
17909 def upper_bound(self, x):
17910 r"""upper_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
17911 return _pcbnew.NETNAMES_MAP_upper_bound(self, x)
17912 __swig_destroy__ = _pcbnew.delete_NETNAMES_MAP
17913
17914# Register NETNAMES_MAP in _pcbnew:
17915_pcbnew.NETNAMES_MAP_swigregister(NETNAMES_MAP)
17917 r"""Proxy of C++ std::map< int,NETINFO_ITEM * > class."""
17918
17919 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17920 __repr__ = _swig_repr
17921
17922 def iterator(self):
17923 r"""iterator(NETCODES_MAP self) -> SwigPyIterator"""
17924 return _pcbnew.NETCODES_MAP_iterator(self)
17925 def __iter__(self):
17926 return self.iterator()
17927
17928 def __nonzero__(self):
17929 r"""__nonzero__(NETCODES_MAP self) -> bool"""
17930 return _pcbnew.NETCODES_MAP___nonzero__(self)
17931
17932 def __bool__(self):
17933 r"""__bool__(NETCODES_MAP self) -> bool"""
17934 return _pcbnew.NETCODES_MAP___bool__(self)
17935
17936 def __len__(self):
17937 r"""__len__(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
17938 return _pcbnew.NETCODES_MAP___len__(self)
17939 def __iter__(self):
17940 return self.key_iterator()
17941 def iterkeys(self):
17942 return self.key_iterator()
17943 def itervalues(self):
17944 return self.value_iterator()
17945 def iteritems(self):
17946 return self.iterator()
17947
17948 def __getitem__(self, key):
17949 r"""__getitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> NETINFO_ITEM"""
17950 return _pcbnew.NETCODES_MAP___getitem__(self, key)
17951
17952 def __delitem__(self, key):
17953 r"""__delitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)"""
17954 return _pcbnew.NETCODES_MAP___delitem__(self, key)
17955
17956 def has_key(self, key):
17957 r"""has_key(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
17958 return _pcbnew.NETCODES_MAP_has_key(self, key)
17959
17960 def keys(self):
17961 r"""keys(NETCODES_MAP self) -> PyObject *"""
17962 return _pcbnew.NETCODES_MAP_keys(self)
17963
17964 def values(self):
17965 r"""values(NETCODES_MAP self) -> PyObject *"""
17966 return _pcbnew.NETCODES_MAP_values(self)
17967
17968 def items(self):
17969 r"""items(NETCODES_MAP self) -> PyObject *"""
17970 return _pcbnew.NETCODES_MAP_items(self)
17971
17972 def __contains__(self, key):
17973 r"""__contains__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
17974 return _pcbnew.NETCODES_MAP___contains__(self, key)
17975
17976 def key_iterator(self):
17977 r"""key_iterator(NETCODES_MAP self) -> SwigPyIterator"""
17978 return _pcbnew.NETCODES_MAP_key_iterator(self)
17979
17981 r"""value_iterator(NETCODES_MAP self) -> SwigPyIterator"""
17982 return _pcbnew.NETCODES_MAP_value_iterator(self)
17983
17984 def __setitem__(self, *args):
17985 r"""
17986 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)
17987 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key, NETINFO_ITEM x)
17988 """
17989 return _pcbnew.NETCODES_MAP___setitem__(self, *args)
17990
17991 def asdict(self):
17992 r"""asdict(NETCODES_MAP self) -> PyObject *"""
17993 return _pcbnew.NETCODES_MAP_asdict(self)
17994
17995 def __init__(self, *args):
17996 r"""
17997 __init__(NETCODES_MAP self, std::less< int > const & other) -> NETCODES_MAP
17998 __init__(NETCODES_MAP self) -> NETCODES_MAP
17999 __init__(NETCODES_MAP self, NETCODES_MAP other) -> NETCODES_MAP
18000 """
18001 _pcbnew.NETCODES_MAP_swiginit(self, _pcbnew.new_NETCODES_MAP(*args))
18002
18003 def empty(self):
18004 r"""empty(NETCODES_MAP self) -> bool"""
18005 return _pcbnew.NETCODES_MAP_empty(self)
18006
18007 def size(self):
18008 r"""size(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
18009 return _pcbnew.NETCODES_MAP_size(self)
18010
18011 def swap(self, v):
18012 r"""swap(NETCODES_MAP self, NETCODES_MAP v)"""
18013 return _pcbnew.NETCODES_MAP_swap(self, v)
18014
18015 def begin(self):
18016 r"""begin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
18017 return _pcbnew.NETCODES_MAP_begin(self)
18018
18019 def end(self):
18020 r"""end(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
18021 return _pcbnew.NETCODES_MAP_end(self)
18022
18023 def rbegin(self):
18024 r"""rbegin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
18025 return _pcbnew.NETCODES_MAP_rbegin(self)
18026
18027 def rend(self):
18028 r"""rend(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
18029 return _pcbnew.NETCODES_MAP_rend(self)
18030
18031 def clear(self):
18032 r"""clear(NETCODES_MAP self)"""
18033 return _pcbnew.NETCODES_MAP_clear(self)
18034
18035 def get_allocator(self):
18036 r"""get_allocator(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::allocator_type"""
18037 return _pcbnew.NETCODES_MAP_get_allocator(self)
18038
18039 def count(self, x):
18040 r"""count(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type"""
18041 return _pcbnew.NETCODES_MAP_count(self, x)
18042
18043 def erase(self, *args):
18044 r"""
18045 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type
18046 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator position)
18047 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator first, std::map< int,NETINFO_ITEM * >::iterator last)
18048 """
18049 return _pcbnew.NETCODES_MAP_erase(self, *args)
18050
18051 def find(self, x):
18052 r"""find(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
18053 return _pcbnew.NETCODES_MAP_find(self, x)
18054
18055 def lower_bound(self, x):
18056 r"""lower_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
18057 return _pcbnew.NETCODES_MAP_lower_bound(self, x)
18058
18059 def upper_bound(self, x):
18060 r"""upper_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
18061 return _pcbnew.NETCODES_MAP_upper_bound(self, x)
18062 __swig_destroy__ = _pcbnew.delete_NETCODES_MAP
18063
18064# Register NETCODES_MAP in _pcbnew:
18065_pcbnew.NETCODES_MAP_swigregister(NETCODES_MAP)
18067 r"""Proxy of C++ NETINFO_LIST class."""
18068
18069 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18070 __repr__ = _swig_repr
18071
18072 def __init__(self, aParent):
18073 r"""__init__(NETINFO_LIST self, BOARD aParent) -> NETINFO_LIST"""
18074 _pcbnew.NETINFO_LIST_swiginit(self, _pcbnew.new_NETINFO_LIST(aParent))
18075 __swig_destroy__ = _pcbnew.delete_NETINFO_LIST
18076
18077 def GetNetItem(self, *args):
18078 r"""
18079 GetNetItem(NETINFO_LIST self, int aNetCode) -> NETINFO_ITEM
18080 GetNetItem(NETINFO_LIST self, wxString aNetName) -> NETINFO_ITEM
18081 """
18082 return _pcbnew.NETINFO_LIST_GetNetItem(self, *args)
18083
18084 def GetNetCount(self):
18085 r"""GetNetCount(NETINFO_LIST self) -> unsigned int"""
18086 return _pcbnew.NETINFO_LIST_GetNetCount(self)
18087
18088 def NetsByName(self):
18089 r"""NetsByName(NETINFO_LIST self) -> NETNAMES_MAP"""
18090 return _pcbnew.NETINFO_LIST_NetsByName(self)
18091
18092 def NetsByNetcode(self):
18093 r"""NetsByNetcode(NETINFO_LIST self) -> NETCODES_MAP"""
18094 return _pcbnew.NETINFO_LIST_NetsByNetcode(self)
18095
18097 r"""RebuildDisplayNetnames(NETINFO_LIST self)"""
18098 return _pcbnew.NETINFO_LIST_RebuildDisplayNetnames(self)
18099
18100 @staticmethod
18102 r"""OrphanedItem() -> NETINFO_ITEM"""
18103 return _pcbnew.NETINFO_LIST_OrphanedItem()
18104
18105 def GetParent(self):
18106 r"""GetParent(NETINFO_LIST self) -> BOARD"""
18107 return _pcbnew.NETINFO_LIST_GetParent(self)
18108 m_DisplayNetnamesDirty = property(_pcbnew.NETINFO_LIST_m_DisplayNetnamesDirty_get, _pcbnew.NETINFO_LIST_m_DisplayNetnamesDirty_set, doc=r"""m_DisplayNetnamesDirty : bool""")
18109
18110# Register NETINFO_LIST in _pcbnew:
18111_pcbnew.NETINFO_LIST_swigregister(NETINFO_LIST)
18112NETINFO_LIST.UNCONNECTED = _pcbnew.cvar.NETINFO_LIST_UNCONNECTED
18113NETINFO_LIST.ORPHANED = _pcbnew.cvar.NETINFO_LIST_ORPHANED
18114
18116 r"""Proxy of C++ std::set< wxString > class."""
18117
18118 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18119 __repr__ = _swig_repr
18120
18121 def iterator(self):
18122 r"""iterator(STRINGSET self) -> SwigPyIterator"""
18123 return _pcbnew.STRINGSET_iterator(self)
18124 def __iter__(self):
18125 return self.iterator()
18126
18127 def __nonzero__(self):
18128 r"""__nonzero__(STRINGSET self) -> bool"""
18129 return _pcbnew.STRINGSET___nonzero__(self)
18130
18131 def __bool__(self):
18132 r"""__bool__(STRINGSET self) -> bool"""
18133 return _pcbnew.STRINGSET___bool__(self)
18134
18135 def __len__(self):
18136 r"""__len__(STRINGSET self) -> std::set< wxString >::size_type"""
18137 return _pcbnew.STRINGSET___len__(self)
18138
18139 def append(self, x):
18140 r"""append(STRINGSET self, wxString x)"""
18141 return _pcbnew.STRINGSET_append(self, x)
18142
18143 def __contains__(self, x):
18144 r"""__contains__(STRINGSET self, wxString x) -> bool"""
18145 return _pcbnew.STRINGSET___contains__(self, x)
18146
18147 def __getitem__(self, i):
18148 r"""__getitem__(STRINGSET self, std::set< wxString >::difference_type i) -> wxString"""
18149 return _pcbnew.STRINGSET___getitem__(self, i)
18150
18151 def add(self, x):
18152 r"""add(STRINGSET self, wxString x)"""
18153 return _pcbnew.STRINGSET_add(self, x)
18154
18155 def discard(self, x):
18156 r"""discard(STRINGSET self, wxString x)"""
18157 return _pcbnew.STRINGSET_discard(self, x)
18158
18159 def __init__(self, *args):
18160 r"""
18161 __init__(STRINGSET self, std::less< wxString > const & other) -> STRINGSET
18162 __init__(STRINGSET self) -> STRINGSET
18163 __init__(STRINGSET self, STRINGSET other) -> STRINGSET
18164 """
18165 _pcbnew.STRINGSET_swiginit(self, _pcbnew.new_STRINGSET(*args))
18166
18167 def empty(self):
18168 r"""empty(STRINGSET self) -> bool"""
18169 return _pcbnew.STRINGSET_empty(self)
18170
18171 def size(self):
18172 r"""size(STRINGSET self) -> std::set< wxString >::size_type"""
18173 return _pcbnew.STRINGSET_size(self)
18174
18175 def clear(self):
18176 r"""clear(STRINGSET self)"""
18177 return _pcbnew.STRINGSET_clear(self)
18178
18179 def swap(self, v):
18180 r"""swap(STRINGSET self, STRINGSET v)"""
18181 return _pcbnew.STRINGSET_swap(self, v)
18182
18183 def count(self, x):
18184 r"""count(STRINGSET self, wxString x) -> std::set< wxString >::size_type"""
18185 return _pcbnew.STRINGSET_count(self, x)
18186
18187 def begin(self):
18188 r"""begin(STRINGSET self) -> std::set< wxString >::iterator"""
18189 return _pcbnew.STRINGSET_begin(self)
18190
18191 def end(self):
18192 r"""end(STRINGSET self) -> std::set< wxString >::iterator"""
18193 return _pcbnew.STRINGSET_end(self)
18194
18195 def rbegin(self):
18196 r"""rbegin(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
18197 return _pcbnew.STRINGSET_rbegin(self)
18198
18199 def rend(self):
18200 r"""rend(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
18201 return _pcbnew.STRINGSET_rend(self)
18202
18203 def erase(self, *args):
18204 r"""
18205 erase(STRINGSET self, wxString x) -> std::set< wxString >::size_type
18206 erase(STRINGSET self, std::set< wxString >::iterator pos)
18207 erase(STRINGSET self, std::set< wxString >::iterator first, std::set< wxString >::iterator last)
18208 """
18209 return _pcbnew.STRINGSET_erase(self, *args)
18210
18211 def find(self, x):
18212 r"""find(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
18213 return _pcbnew.STRINGSET_find(self, x)
18214
18215 def lower_bound(self, x):
18216 r"""lower_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
18217 return _pcbnew.STRINGSET_lower_bound(self, x)
18218
18219 def upper_bound(self, x):
18220 r"""upper_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
18221 return _pcbnew.STRINGSET_upper_bound(self, x)
18222
18223 def equal_range(self, x):
18224 r"""equal_range(STRINGSET self, wxString x) -> std::pair< std::set< wxString >::iterator,std::set< wxString >::iterator >"""
18225 return _pcbnew.STRINGSET_equal_range(self, x)
18226
18227 def insert(self, __x):
18228 r"""insert(STRINGSET self, wxString __x) -> std::pair< std::set< wxString >::iterator,bool >"""
18229 return _pcbnew.STRINGSET_insert(self, __x)
18230 __swig_destroy__ = _pcbnew.delete_STRINGSET
18231
18232# Register STRINGSET in _pcbnew:
18233_pcbnew.STRINGSET_swigregister(STRINGSET)
18235 r"""Proxy of C++ NETCLASS class."""
18236
18237 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18238 __repr__ = _swig_repr
18239
18240 def __init__(self, aName, aInitWithDefaults=True):
18241 r"""__init__(NETCLASS self, wxString aName, bool aInitWithDefaults=True) -> NETCLASS"""
18242 _pcbnew.NETCLASS_swiginit(self, _pcbnew.new_NETCLASS(aName, aInitWithDefaults))
18243 __swig_destroy__ = _pcbnew.delete_NETCLASS
18244
18245 def __eq__(self, other):
18246 r"""__eq__(NETCLASS self, NETCLASS other) -> bool"""
18247 return _pcbnew.NETCLASS___eq__(self, other)
18248
18249 def GetClass(self):
18250 r"""GetClass(NETCLASS self) -> wxString"""
18251 return _pcbnew.NETCLASS_GetClass(self)
18252
18253 def ResetParents(self):
18254 r"""ResetParents(NETCLASS self)"""
18255 return _pcbnew.NETCLASS_ResetParents(self)
18256
18258 r"""ResetParameters(NETCLASS self)"""
18259 return _pcbnew.NETCLASS_ResetParameters(self)
18260
18262 r"""GetConstituentNetclasses(NETCLASS self) -> std::vector< NETCLASS *,std::allocator< NETCLASS * > > const &"""
18263 return _pcbnew.NETCLASS_GetConstituentNetclasses(self)
18264
18265 def SetConstituentNetclasses(self, constituents):
18266 r"""SetConstituentNetclasses(NETCLASS self, std::vector< NETCLASS *,std::allocator< NETCLASS * > > && constituents)"""
18267 return _pcbnew.NETCLASS_SetConstituentNetclasses(self, constituents)
18268
18270 r"""GetVariableSubstitutionName(NETCLASS self) -> wxString"""
18271 return _pcbnew.NETCLASS_GetVariableSubstitutionName(self)
18272
18273 def ContainsNetclassWithName(self, netclass):
18274 r"""ContainsNetclassWithName(NETCLASS self, wxString netclass) -> bool"""
18275 return _pcbnew.NETCLASS_ContainsNetclassWithName(self, netclass)
18276
18277 def IsDefault(self):
18278 r"""IsDefault(NETCLASS self) -> bool"""
18279 return _pcbnew.NETCLASS_IsDefault(self)
18280
18281 def GetName(self):
18282 r"""GetName(NETCLASS self) -> wxString"""
18283 return _pcbnew.NETCLASS_GetName(self)
18284
18285 def SetName(self, aName):
18286 r"""SetName(NETCLASS self, wxString aName)"""
18287 return _pcbnew.NETCLASS_SetName(self, aName)
18288
18290 r"""GetDescription(NETCLASS self) -> wxString"""
18291 return _pcbnew.NETCLASS_GetDescription(self)
18292
18293 def SetDescription(self, aDesc):
18294 r"""SetDescription(NETCLASS self, wxString aDesc)"""
18295 return _pcbnew.NETCLASS_SetDescription(self, aDesc)
18296
18297 def HasClearance(self):
18298 r"""HasClearance(NETCLASS self) -> bool"""
18299 return _pcbnew.NETCLASS_HasClearance(self)
18300
18301 def GetClearance(self):
18302 r"""GetClearance(NETCLASS self) -> int"""
18303 return _pcbnew.NETCLASS_GetClearance(self)
18304
18306 r"""GetClearanceOpt(NETCLASS self) -> std::optional< int >"""
18307 return _pcbnew.NETCLASS_GetClearanceOpt(self)
18308
18309 def SetClearance(self, aClearance):
18310 r"""SetClearance(NETCLASS self, int aClearance)"""
18311 return _pcbnew.NETCLASS_SetClearance(self, aClearance)
18312
18313 def SetClearanceParent(self, parent):
18314 r"""SetClearanceParent(NETCLASS self, NETCLASS parent)"""
18315 return _pcbnew.NETCLASS_SetClearanceParent(self, parent)
18316
18318 r"""GetClearanceParent(NETCLASS self) -> NETCLASS"""
18319 return _pcbnew.NETCLASS_GetClearanceParent(self)
18320
18321 def HasTrackWidth(self):
18322 r"""HasTrackWidth(NETCLASS self) -> bool"""
18323 return _pcbnew.NETCLASS_HasTrackWidth(self)
18324
18325 def GetTrackWidth(self):
18326 r"""GetTrackWidth(NETCLASS self) -> int"""
18327 return _pcbnew.NETCLASS_GetTrackWidth(self)
18328
18330 r"""GetTrackWidthOpt(NETCLASS self) -> std::optional< int >"""
18331 return _pcbnew.NETCLASS_GetTrackWidthOpt(self)
18332
18333 def SetTrackWidth(self, aWidth):
18334 r"""SetTrackWidth(NETCLASS self, int aWidth)"""
18335 return _pcbnew.NETCLASS_SetTrackWidth(self, aWidth)
18336
18337 def SetTrackWidthParent(self, parent):
18338 r"""SetTrackWidthParent(NETCLASS self, NETCLASS parent)"""
18339 return _pcbnew.NETCLASS_SetTrackWidthParent(self, parent)
18340
18342 r"""GetTrackWidthParent(NETCLASS self) -> NETCLASS"""
18343 return _pcbnew.NETCLASS_GetTrackWidthParent(self)
18344
18346 r"""HasViaDiameter(NETCLASS self) -> bool"""
18347 return _pcbnew.NETCLASS_HasViaDiameter(self)
18348
18350 r"""GetViaDiameter(NETCLASS self) -> int"""
18351 return _pcbnew.NETCLASS_GetViaDiameter(self)
18352
18354 r"""GetViaDiameterOpt(NETCLASS self) -> std::optional< int >"""
18355 return _pcbnew.NETCLASS_GetViaDiameterOpt(self)
18356
18357 def SetViaDiameter(self, aDia):
18358 r"""SetViaDiameter(NETCLASS self, int aDia)"""
18359 return _pcbnew.NETCLASS_SetViaDiameter(self, aDia)
18360
18361 def SetViaDiameterParent(self, parent):
18362 r"""SetViaDiameterParent(NETCLASS self, NETCLASS parent)"""
18363 return _pcbnew.NETCLASS_SetViaDiameterParent(self, parent)
18364
18366 r"""GetViaDiameterParent(NETCLASS self) -> NETCLASS"""
18367 return _pcbnew.NETCLASS_GetViaDiameterParent(self)
18368
18369 def HasViaDrill(self):
18370 r"""HasViaDrill(NETCLASS self) -> int"""
18371 return _pcbnew.NETCLASS_HasViaDrill(self)
18372
18373 def GetViaDrill(self):
18374 r"""GetViaDrill(NETCLASS self) -> int"""
18375 return _pcbnew.NETCLASS_GetViaDrill(self)
18376
18378 r"""GetViaDrillOpt(NETCLASS self) -> std::optional< int >"""
18379 return _pcbnew.NETCLASS_GetViaDrillOpt(self)
18380
18381 def SetViaDrill(self, aSize):
18382 r"""SetViaDrill(NETCLASS self, int aSize)"""
18383 return _pcbnew.NETCLASS_SetViaDrill(self, aSize)
18384
18385 def SetViaDrillParent(self, parent):
18386 r"""SetViaDrillParent(NETCLASS self, NETCLASS parent)"""
18387 return _pcbnew.NETCLASS_SetViaDrillParent(self, parent)
18388
18390 r"""GetViaDrillParent(NETCLASS self) -> NETCLASS"""
18391 return _pcbnew.NETCLASS_GetViaDrillParent(self)
18392
18394 r"""HasuViaDiameter(NETCLASS self) -> bool"""
18395 return _pcbnew.NETCLASS_HasuViaDiameter(self)
18396
18398 r"""GetuViaDiameter(NETCLASS self) -> int"""
18399 return _pcbnew.NETCLASS_GetuViaDiameter(self)
18400
18402 r"""GetuViaDiameterOpt(NETCLASS self) -> std::optional< int >"""
18403 return _pcbnew.NETCLASS_GetuViaDiameterOpt(self)
18404
18405 def SetuViaDiameter(self, aSize):
18406 r"""SetuViaDiameter(NETCLASS self, int aSize)"""
18407 return _pcbnew.NETCLASS_SetuViaDiameter(self, aSize)
18408
18409 def SetuViaDiameterParent(self, parent):
18410 r"""SetuViaDiameterParent(NETCLASS self, NETCLASS parent)"""
18411 return _pcbnew.NETCLASS_SetuViaDiameterParent(self, parent)
18412
18414 r"""GetuViaDiameterParent(NETCLASS self) -> NETCLASS"""
18415 return _pcbnew.NETCLASS_GetuViaDiameterParent(self)
18416
18417 def HasuViaDrill(self):
18418 r"""HasuViaDrill(NETCLASS self) -> bool"""
18419 return _pcbnew.NETCLASS_HasuViaDrill(self)
18420
18421 def GetuViaDrill(self):
18422 r"""GetuViaDrill(NETCLASS self) -> int"""
18423 return _pcbnew.NETCLASS_GetuViaDrill(self)
18424
18426 r"""GetuViaDrillOpt(NETCLASS self) -> std::optional< int >"""
18427 return _pcbnew.NETCLASS_GetuViaDrillOpt(self)
18428
18429 def SetuViaDrill(self, aSize):
18430 r"""SetuViaDrill(NETCLASS self, int aSize)"""
18431 return _pcbnew.NETCLASS_SetuViaDrill(self, aSize)
18432
18433 def SetuViaDrillParent(self, parent):
18434 r"""SetuViaDrillParent(NETCLASS self, NETCLASS parent)"""
18435 return _pcbnew.NETCLASS_SetuViaDrillParent(self, parent)
18436
18438 r"""GetuViaDrillParent(NETCLASS self) -> NETCLASS"""
18439 return _pcbnew.NETCLASS_GetuViaDrillParent(self)
18440
18442 r"""HasDiffPairWidth(NETCLASS self) -> bool"""
18443 return _pcbnew.NETCLASS_HasDiffPairWidth(self)
18444
18446 r"""GetDiffPairWidth(NETCLASS self) -> int"""
18447 return _pcbnew.NETCLASS_GetDiffPairWidth(self)
18448
18450 r"""GetDiffPairWidthOpt(NETCLASS self) -> std::optional< int >"""
18451 return _pcbnew.NETCLASS_GetDiffPairWidthOpt(self)
18452
18453 def SetDiffPairWidth(self, aSize):
18454 r"""SetDiffPairWidth(NETCLASS self, int aSize)"""
18455 return _pcbnew.NETCLASS_SetDiffPairWidth(self, aSize)
18456
18457 def SetDiffPairWidthParent(self, parent):
18458 r"""SetDiffPairWidthParent(NETCLASS self, NETCLASS parent)"""
18459 return _pcbnew.NETCLASS_SetDiffPairWidthParent(self, parent)
18460
18462 r"""GetDiffPairWidthParent(NETCLASS self) -> NETCLASS"""
18463 return _pcbnew.NETCLASS_GetDiffPairWidthParent(self)
18464
18466 r"""HasDiffPairGap(NETCLASS self) -> bool"""
18467 return _pcbnew.NETCLASS_HasDiffPairGap(self)
18468
18470 r"""GetDiffPairGap(NETCLASS self) -> int"""
18471 return _pcbnew.NETCLASS_GetDiffPairGap(self)
18472
18474 r"""GetDiffPairGapOpt(NETCLASS self) -> std::optional< int >"""
18475 return _pcbnew.NETCLASS_GetDiffPairGapOpt(self)
18476
18477 def SetDiffPairGap(self, aSize):
18478 r"""SetDiffPairGap(NETCLASS self, int aSize)"""
18479 return _pcbnew.NETCLASS_SetDiffPairGap(self, aSize)
18480
18481 def SetDiffPairGapParent(self, parent):
18482 r"""SetDiffPairGapParent(NETCLASS self, NETCLASS parent)"""
18483 return _pcbnew.NETCLASS_SetDiffPairGapParent(self, parent)
18484
18486 r"""GetDiffPairGapParent(NETCLASS self) -> NETCLASS"""
18487 return _pcbnew.NETCLASS_GetDiffPairGapParent(self)
18488
18490 r"""HasDiffPairViaGap(NETCLASS self) -> bool"""
18491 return _pcbnew.NETCLASS_HasDiffPairViaGap(self)
18492
18494 r"""GetDiffPairViaGap(NETCLASS self) -> int"""
18495 return _pcbnew.NETCLASS_GetDiffPairViaGap(self)
18496
18498 r"""GetDiffPairViaGapOpt(NETCLASS self) -> std::optional< int >"""
18499 return _pcbnew.NETCLASS_GetDiffPairViaGapOpt(self)
18500
18501 def SetDiffPairViaGap(self, aSize):
18502 r"""SetDiffPairViaGap(NETCLASS self, int aSize)"""
18503 return _pcbnew.NETCLASS_SetDiffPairViaGap(self, aSize)
18504
18505 def SetDiffPairViaGapParent(self, parent):
18506 r"""SetDiffPairViaGapParent(NETCLASS self, NETCLASS parent)"""
18507 return _pcbnew.NETCLASS_SetDiffPairViaGapParent(self, parent)
18508
18510 r"""GetDiffPairViaGapParent(NETCLASS self) -> NETCLASS"""
18511 return _pcbnew.NETCLASS_GetDiffPairViaGapParent(self)
18512
18513 def HasPcbColor(self):
18514 r"""HasPcbColor(NETCLASS self) -> bool"""
18515 return _pcbnew.NETCLASS_HasPcbColor(self)
18516
18517 def GetPcbColor(self, aIsForSave=False):
18518 r"""GetPcbColor(NETCLASS self, bool aIsForSave=False) -> COLOR4D"""
18519 return _pcbnew.NETCLASS_GetPcbColor(self, aIsForSave)
18520
18521 def SetPcbColor(self, aColor):
18522 r"""SetPcbColor(NETCLASS self, COLOR4D aColor)"""
18523 return _pcbnew.NETCLASS_SetPcbColor(self, aColor)
18524
18525 def SetPcbColorParent(self, parent):
18526 r"""SetPcbColorParent(NETCLASS self, NETCLASS parent)"""
18527 return _pcbnew.NETCLASS_SetPcbColorParent(self, parent)
18528
18530 r"""GetPcbColorParent(NETCLASS self) -> NETCLASS"""
18531 return _pcbnew.NETCLASS_GetPcbColorParent(self)
18532
18533 def HasWireWidth(self):
18534 r"""HasWireWidth(NETCLASS self) -> bool"""
18535 return _pcbnew.NETCLASS_HasWireWidth(self)
18536
18537 def GetWireWidth(self):
18538 r"""GetWireWidth(NETCLASS self) -> int"""
18539 return _pcbnew.NETCLASS_GetWireWidth(self)
18540
18542 r"""GetWireWidthOpt(NETCLASS self) -> std::optional< int >"""
18543 return _pcbnew.NETCLASS_GetWireWidthOpt(self)
18544
18545 def SetWireWidth(self, aWidth):
18546 r"""SetWireWidth(NETCLASS self, int aWidth)"""
18547 return _pcbnew.NETCLASS_SetWireWidth(self, aWidth)
18548
18549 def SetWireWidthParent(self, parent):
18550 r"""SetWireWidthParent(NETCLASS self, NETCLASS parent)"""
18551 return _pcbnew.NETCLASS_SetWireWidthParent(self, parent)
18552
18554 r"""GetWireWidthParent(NETCLASS self) -> NETCLASS"""
18555 return _pcbnew.NETCLASS_GetWireWidthParent(self)
18556
18557 def HasBusWidth(self):
18558 r"""HasBusWidth(NETCLASS self) -> bool"""
18559 return _pcbnew.NETCLASS_HasBusWidth(self)
18560
18561 def GetBusWidth(self):
18562 r"""GetBusWidth(NETCLASS self) -> int"""
18563 return _pcbnew.NETCLASS_GetBusWidth(self)
18564
18566 r"""GetBusWidthOpt(NETCLASS self) -> std::optional< int >"""
18567 return _pcbnew.NETCLASS_GetBusWidthOpt(self)
18568
18569 def SetBusWidth(self, aWidth):
18570 r"""SetBusWidth(NETCLASS self, int aWidth)"""
18571 return _pcbnew.NETCLASS_SetBusWidth(self, aWidth)
18572
18573 def SetBusWidthParent(self, parent):
18574 r"""SetBusWidthParent(NETCLASS self, NETCLASS parent)"""
18575 return _pcbnew.NETCLASS_SetBusWidthParent(self, parent)
18576
18578 r"""GetBusWidthParent(NETCLASS self) -> NETCLASS"""
18579 return _pcbnew.NETCLASS_GetBusWidthParent(self)
18580
18581 def GetSchematicColor(self, aIsForSave=False):
18582 r"""GetSchematicColor(NETCLASS self, bool aIsForSave=False) -> COLOR4D"""
18583 return _pcbnew.NETCLASS_GetSchematicColor(self, aIsForSave)
18584
18585 def SetSchematicColor(self, aColor):
18586 r"""SetSchematicColor(NETCLASS self, COLOR4D aColor)"""
18587 return _pcbnew.NETCLASS_SetSchematicColor(self, aColor)
18588
18589 def SetSchematicColorParent(self, parent):
18590 r"""SetSchematicColorParent(NETCLASS self, NETCLASS parent)"""
18591 return _pcbnew.NETCLASS_SetSchematicColorParent(self, parent)
18592
18594 r"""GetSchematicColorParent(NETCLASS self) -> NETCLASS"""
18595 return _pcbnew.NETCLASS_GetSchematicColorParent(self)
18596
18597 def HasLineStyle(self):
18598 r"""HasLineStyle(NETCLASS self) -> bool"""
18599 return _pcbnew.NETCLASS_HasLineStyle(self)
18600
18601 def GetLineStyle(self):
18602 r"""GetLineStyle(NETCLASS self) -> int"""
18603 return _pcbnew.NETCLASS_GetLineStyle(self)
18604
18606 r"""GetLineStyleOpt(NETCLASS self) -> std::optional< int >"""
18607 return _pcbnew.NETCLASS_GetLineStyleOpt(self)
18608
18609 def SetLineStyle(self, aStyle):
18610 r"""SetLineStyle(NETCLASS self, int aStyle)"""
18611 return _pcbnew.NETCLASS_SetLineStyle(self, aStyle)
18612
18613 def SetLineStyleParent(self, parent):
18614 r"""SetLineStyleParent(NETCLASS self, NETCLASS parent)"""
18615 return _pcbnew.NETCLASS_SetLineStyleParent(self, parent)
18616
18618 r"""GetLineStyleParent(NETCLASS self) -> NETCLASS"""
18619 return _pcbnew.NETCLASS_GetLineStyleParent(self)
18620
18621 def SetPriority(self, aPriority):
18622 r"""SetPriority(NETCLASS self, int aPriority)"""
18623 return _pcbnew.NETCLASS_SetPriority(self, aPriority)
18624
18625 def GetPriority(self):
18626 r"""GetPriority(NETCLASS self) -> int"""
18627 return _pcbnew.NETCLASS_GetPriority(self)
18628
18629# Register NETCLASS in _pcbnew:
18630_pcbnew.NETCLASS_swigregister(NETCLASS)
18631NETCLASS.Default = _pcbnew.cvar.NETCLASS_Default
18632
18634 r"""Proxy of C++ PCB_GROUP class."""
18635
18636 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18637 __repr__ = _swig_repr
18638
18639 def __init__(self, aParent):
18640 r"""__init__(PCB_GROUP self, BOARD_ITEM aParent) -> PCB_GROUP"""
18641 _pcbnew.PCB_GROUP_swiginit(self, _pcbnew.new_PCB_GROUP(aParent))
18642
18643 @staticmethod
18644 def ClassOf(aItem):
18645 r"""ClassOf(EDA_ITEM aItem) -> bool"""
18646 return _pcbnew.PCB_GROUP_ClassOf(aItem)
18647
18648 def GetName(self):
18649 r"""GetName(PCB_GROUP self) -> wxString"""
18650 return _pcbnew.PCB_GROUP_GetName(self)
18651
18652 def SetName(self, aName):
18653 r"""SetName(PCB_GROUP self, wxString aName)"""
18654 return _pcbnew.PCB_GROUP_SetName(self, aName)
18655
18656 def GetItems(self, *args):
18657 r"""
18658 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * >
18659 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * > const &
18660 """
18661 return _pcbnew.PCB_GROUP_GetItems(self, *args)
18662
18663 def AddItem(self, aItem):
18664 r"""AddItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
18665 return _pcbnew.PCB_GROUP_AddItem(self, aItem)
18666
18667 def RemoveItem(self, aItem):
18668 r"""RemoveItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
18669 return _pcbnew.PCB_GROUP_RemoveItem(self, aItem)
18670
18671 def RemoveAll(self):
18672 r"""RemoveAll(PCB_GROUP self)"""
18673 return _pcbnew.PCB_GROUP_RemoveAll(self)
18674
18675 @staticmethod
18676 def TopLevelGroup(aItem, aScope, isFootprintEditor):
18677 r"""TopLevelGroup(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> PCB_GROUP"""
18678 return _pcbnew.PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
18679
18680 @staticmethod
18681 def WithinScope(aItem, aScope, isFootprintEditor):
18682 r"""WithinScope(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> bool"""
18683 return _pcbnew.PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
18684
18685 def __eq__(self, *args):
18686 r"""
18687 __eq__(PCB_GROUP self, PCB_GROUP aOther) -> bool
18688 __eq__(PCB_GROUP self, BOARD_ITEM aBoardItem) -> bool
18689 """
18690 return _pcbnew.PCB_GROUP___eq__(self, *args)
18691
18692 def DeepClone(self):
18693 r"""DeepClone(PCB_GROUP self) -> PCB_GROUP"""
18694 return _pcbnew.PCB_GROUP_DeepClone(self)
18695
18696 def DeepDuplicate(self):
18697 r"""DeepDuplicate(PCB_GROUP self) -> PCB_GROUP"""
18698 return _pcbnew.PCB_GROUP_DeepDuplicate(self)
18699
18700 def HitTest(self, *args):
18701 r"""
18702 HitTest(PCB_GROUP self, VECTOR2I aPosition, int aAccuracy=0) -> bool
18703 HitTest(PCB_GROUP self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
18704 """
18705 return _pcbnew.PCB_GROUP_HitTest(self, *args)
18706
18707 def GetEffectiveShape(self, *args):
18708 r"""GetEffectiveShape(PCB_GROUP self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
18709 return _pcbnew.PCB_GROUP_GetEffectiveShape(self, *args)
18710
18711 def ViewGetLOD(self, aLayer, aView):
18712 r"""ViewGetLOD(PCB_GROUP self, int aLayer, KIGFX::VIEW * aView) -> double"""
18713 return _pcbnew.PCB_GROUP_ViewGetLOD(self, aLayer, aView)
18714
18715 def RunOnDescendants(self, aFunction, aDepth=0):
18716 r"""RunOnDescendants(PCB_GROUP self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
18717 return _pcbnew.PCB_GROUP_RunOnDescendants(self, aFunction, aDepth)
18718
18719 @staticmethod
18721 r"""IsGroupableType(KICAD_T aType) -> bool"""
18722 return _pcbnew.PCB_GROUP_IsGroupableType(aType)
18723
18724 def GetItemsDeque(self):
18725 r"""GetItemsDeque(PCB_GROUP self) -> DRAWINGS"""
18726 return _pcbnew.PCB_GROUP_GetItemsDeque(self)
18727
18728 def GetItems(self):
18729 return [item.Cast() for item in self.GetItemsDeque()]
18730
18731 __swig_destroy__ = _pcbnew.delete_PCB_GROUP
18732
18733# Register PCB_GROUP in _pcbnew:
18734_pcbnew.PCB_GROUP_swigregister(PCB_GROUP)
18736 r"""Proxy of C++ PCB_REFERENCE_IMAGE class."""
18737
18738 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18739 __repr__ = _swig_repr
18740
18741 def __init__(self, *args):
18742 r"""
18743 __init__(PCB_REFERENCE_IMAGE self, BOARD_ITEM aParent, VECTOR2I pos=VECTOR2I( 0, 0 ), PCB_LAYER_ID aLayer=F_Cu) -> PCB_REFERENCE_IMAGE
18744 __init__(PCB_REFERENCE_IMAGE self, PCB_REFERENCE_IMAGE aPcbBitmap) -> PCB_REFERENCE_IMAGE
18745 """
18746 _pcbnew.PCB_REFERENCE_IMAGE_swiginit(self, _pcbnew.new_PCB_REFERENCE_IMAGE(*args))
18747 __swig_destroy__ = _pcbnew.delete_PCB_REFERENCE_IMAGE
18748
18749 def GetReferenceImage(self, *args):
18750 r"""
18751 GetReferenceImage(PCB_REFERENCE_IMAGE self) -> REFERENCE_IMAGE
18752 GetReferenceImage(PCB_REFERENCE_IMAGE self) -> REFERENCE_IMAGE const &
18753 """
18754 return _pcbnew.PCB_REFERENCE_IMAGE_GetReferenceImage(self, *args)
18755
18756 @staticmethod
18757 def ClassOf(aItem):
18758 r"""ClassOf(EDA_ITEM aItem) -> bool"""
18759 return _pcbnew.PCB_REFERENCE_IMAGE_ClassOf(aItem)
18760
18761 def ViewGetLOD(self, aLayer, aView):
18762 r"""ViewGetLOD(PCB_REFERENCE_IMAGE self, int aLayer, KIGFX::VIEW * aView) -> double"""
18763 return _pcbnew.PCB_REFERENCE_IMAGE_ViewGetLOD(self, aLayer, aView)
18764
18765 def GetEffectiveShape(self, *args):
18766 r"""GetEffectiveShape(PCB_REFERENCE_IMAGE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
18767 return _pcbnew.PCB_REFERENCE_IMAGE_GetEffectiveShape(self, *args)
18768
18769 def HitTest(self, *args):
18770 r"""
18771 HitTest(PCB_REFERENCE_IMAGE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
18772 HitTest(PCB_REFERENCE_IMAGE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
18773 """
18774 return _pcbnew.PCB_REFERENCE_IMAGE_HitTest(self, *args)
18775
18776 def __eq__(self, *args):
18777 r"""
18778 __eq__(PCB_REFERENCE_IMAGE self, PCB_REFERENCE_IMAGE aOther) -> bool
18779 __eq__(PCB_REFERENCE_IMAGE self, BOARD_ITEM aBoardItem) -> bool
18780 """
18781 return _pcbnew.PCB_REFERENCE_IMAGE___eq__(self, *args)
18782
18783# Register PCB_REFERENCE_IMAGE in _pcbnew:
18784_pcbnew.PCB_REFERENCE_IMAGE_swigregister(PCB_REFERENCE_IMAGE)
18786 r"""Proxy of C++ std::vector< VIA_DIMENSION > class."""
18787
18788 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18789 __repr__ = _swig_repr
18790
18791 def iterator(self):
18792 r"""iterator(VIA_DIMENSION_Vector self) -> SwigPyIterator"""
18793 return _pcbnew.VIA_DIMENSION_Vector_iterator(self)
18794 def __iter__(self):
18795 return self.iterator()
18796
18797 def __nonzero__(self):
18798 r"""__nonzero__(VIA_DIMENSION_Vector self) -> bool"""
18799 return _pcbnew.VIA_DIMENSION_Vector___nonzero__(self)
18800
18801 def __bool__(self):
18802 r"""__bool__(VIA_DIMENSION_Vector self) -> bool"""
18803 return _pcbnew.VIA_DIMENSION_Vector___bool__(self)
18804
18805 def __len__(self):
18806 r"""__len__(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
18807 return _pcbnew.VIA_DIMENSION_Vector___len__(self)
18808
18809 def __getslice__(self, i, j):
18810 r"""__getslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j) -> VIA_DIMENSION_Vector"""
18811 return _pcbnew.VIA_DIMENSION_Vector___getslice__(self, i, j)
18812
18813 def __setslice__(self, *args):
18814 r"""
18815 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)
18816 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j, VIA_DIMENSION_Vector v)
18817 """
18818 return _pcbnew.VIA_DIMENSION_Vector___setslice__(self, *args)
18819
18820 def __delslice__(self, i, j):
18821 r"""__delslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)"""
18822 return _pcbnew.VIA_DIMENSION_Vector___delslice__(self, i, j)
18823
18824 def __delitem__(self, *args):
18825 r"""
18826 __delitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i)
18827 __delitem__(VIA_DIMENSION_Vector self, SWIGPY_SLICEOBJECT * slice)
18828 """
18829 return _pcbnew.VIA_DIMENSION_Vector___delitem__(self, *args)
18830
18831 def __getitem__(self, *args):
18832 r"""
18833 __getitem__(VIA_DIMENSION_Vector self, SWIGPY_SLICEOBJECT * slice) -> VIA_DIMENSION_Vector
18834 __getitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i) -> VIA_DIMENSION
18835 """
18836 return _pcbnew.VIA_DIMENSION_Vector___getitem__(self, *args)
18837
18838 def __setitem__(self, *args):
18839 r"""
18840 __setitem__(VIA_DIMENSION_Vector self, SWIGPY_SLICEOBJECT * slice, VIA_DIMENSION_Vector v)
18841 __setitem__(VIA_DIMENSION_Vector self, SWIGPY_SLICEOBJECT * slice)
18842 __setitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, VIA_DIMENSION x)
18843 """
18844 return _pcbnew.VIA_DIMENSION_Vector___setitem__(self, *args)
18845
18846 def pop(self):
18847 r"""pop(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
18848 return _pcbnew.VIA_DIMENSION_Vector_pop(self)
18849
18850 def append(self, x):
18851 r"""append(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
18852 return _pcbnew.VIA_DIMENSION_Vector_append(self, x)
18853
18854 def empty(self):
18855 r"""empty(VIA_DIMENSION_Vector self) -> bool"""
18856 return _pcbnew.VIA_DIMENSION_Vector_empty(self)
18857
18858 def size(self):
18859 r"""size(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
18860 return _pcbnew.VIA_DIMENSION_Vector_size(self)
18861
18862 def swap(self, v):
18863 r"""swap(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector v)"""
18864 return _pcbnew.VIA_DIMENSION_Vector_swap(self, v)
18865
18866 def begin(self):
18867 r"""begin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
18868 return _pcbnew.VIA_DIMENSION_Vector_begin(self)
18869
18870 def end(self):
18871 r"""end(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
18872 return _pcbnew.VIA_DIMENSION_Vector_end(self)
18873
18874 def rbegin(self):
18875 r"""rbegin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
18876 return _pcbnew.VIA_DIMENSION_Vector_rbegin(self)
18877
18878 def rend(self):
18879 r"""rend(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
18880 return _pcbnew.VIA_DIMENSION_Vector_rend(self)
18881
18882 def clear(self):
18883 r"""clear(VIA_DIMENSION_Vector self)"""
18884 return _pcbnew.VIA_DIMENSION_Vector_clear(self)
18885
18886 def get_allocator(self):
18887 r"""get_allocator(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::allocator_type"""
18888 return _pcbnew.VIA_DIMENSION_Vector_get_allocator(self)
18889
18890 def pop_back(self):
18891 r"""pop_back(VIA_DIMENSION_Vector self)"""
18892 return _pcbnew.VIA_DIMENSION_Vector_pop_back(self)
18893
18894 def erase(self, *args):
18895 r"""
18896 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos) -> std::vector< VIA_DIMENSION >::iterator
18897 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator first, std::vector< VIA_DIMENSION >::iterator last) -> std::vector< VIA_DIMENSION >::iterator
18898 """
18899 return _pcbnew.VIA_DIMENSION_Vector_erase(self, *args)
18900
18901 def __init__(self, *args):
18902 r"""
18903 __init__(VIA_DIMENSION_Vector self) -> VIA_DIMENSION_Vector
18904 __init__(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector other) -> VIA_DIMENSION_Vector
18905 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size) -> VIA_DIMENSION_Vector
18906 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size, VIA_DIMENSION value) -> VIA_DIMENSION_Vector
18907 """
18908 _pcbnew.VIA_DIMENSION_Vector_swiginit(self, _pcbnew.new_VIA_DIMENSION_Vector(*args))
18909
18910 def push_back(self, x):
18911 r"""push_back(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
18912 return _pcbnew.VIA_DIMENSION_Vector_push_back(self, x)
18913
18914 def front(self):
18915 r"""front(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
18916 return _pcbnew.VIA_DIMENSION_Vector_front(self)
18917
18918 def back(self):
18919 r"""back(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
18920 return _pcbnew.VIA_DIMENSION_Vector_back(self)
18921
18922 def assign(self, n, x):
18923 r"""assign(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)"""
18924 return _pcbnew.VIA_DIMENSION_Vector_assign(self, n, x)
18925
18926 def resize(self, *args):
18927 r"""
18928 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size)
18929 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size, VIA_DIMENSION x)
18930 """
18931 return _pcbnew.VIA_DIMENSION_Vector_resize(self, *args)
18932
18933 def insert(self, *args):
18934 r"""
18935 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, VIA_DIMENSION x) -> std::vector< VIA_DIMENSION >::iterator
18936 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)
18937 """
18938 return _pcbnew.VIA_DIMENSION_Vector_insert(self, *args)
18939
18940 def reserve(self, n):
18941 r"""reserve(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n)"""
18942 return _pcbnew.VIA_DIMENSION_Vector_reserve(self, n)
18943
18944 def capacity(self):
18945 r"""capacity(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
18946 return _pcbnew.VIA_DIMENSION_Vector_capacity(self)
18947 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION_Vector
18948
18949# Register VIA_DIMENSION_Vector in _pcbnew:
18950_pcbnew.VIA_DIMENSION_Vector_swigregister(VIA_DIMENSION_Vector)
18951DEFAULT_CHAINING_EPSILON_MM = _pcbnew.DEFAULT_CHAINING_EPSILON_MM
18952
18954 r"""Proxy of C++ PTR_PTR_CACHE_KEY class."""
18955
18956 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18957 __repr__ = _swig_repr
18958 A = property(_pcbnew.PTR_PTR_CACHE_KEY_A_get, _pcbnew.PTR_PTR_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
18959 B = property(_pcbnew.PTR_PTR_CACHE_KEY_B_get, _pcbnew.PTR_PTR_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
18960
18961 def __eq__(self, other):
18962 r"""__eq__(PTR_PTR_CACHE_KEY self, PTR_PTR_CACHE_KEY other) -> bool"""
18963 return _pcbnew.PTR_PTR_CACHE_KEY___eq__(self, other)
18964
18965 def __init__(self):
18966 r"""__init__(PTR_PTR_CACHE_KEY self) -> PTR_PTR_CACHE_KEY"""
18967 _pcbnew.PTR_PTR_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_CACHE_KEY())
18968 __swig_destroy__ = _pcbnew.delete_PTR_PTR_CACHE_KEY
18969
18970# Register PTR_PTR_CACHE_KEY in _pcbnew:
18971_pcbnew.PTR_PTR_CACHE_KEY_swigregister(PTR_PTR_CACHE_KEY)
18973 r"""Proxy of C++ PTR_LAYER_CACHE_KEY class."""
18974
18975 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18976 __repr__ = _swig_repr
18977 A = property(_pcbnew.PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
18978 Layer = property(_pcbnew.PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
18979
18980 def __eq__(self, other):
18981 r"""__eq__(PTR_LAYER_CACHE_KEY self, PTR_LAYER_CACHE_KEY other) -> bool"""
18982 return _pcbnew.PTR_LAYER_CACHE_KEY___eq__(self, other)
18983
18984 def __init__(self):
18985 r"""__init__(PTR_LAYER_CACHE_KEY self) -> PTR_LAYER_CACHE_KEY"""
18986 _pcbnew.PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_LAYER_CACHE_KEY())
18987 __swig_destroy__ = _pcbnew.delete_PTR_LAYER_CACHE_KEY
18988
18989# Register PTR_LAYER_CACHE_KEY in _pcbnew:
18990_pcbnew.PTR_LAYER_CACHE_KEY_swigregister(PTR_LAYER_CACHE_KEY)
18992 r"""Proxy of C++ PTR_PTR_LAYER_CACHE_KEY class."""
18993
18994 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18995 __repr__ = _swig_repr
18996 A = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
18997 B = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
18998 Layer = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
18999
19000 def __eq__(self, other):
19001 r"""__eq__(PTR_PTR_LAYER_CACHE_KEY self, PTR_PTR_LAYER_CACHE_KEY other) -> bool"""
19002 return _pcbnew.PTR_PTR_LAYER_CACHE_KEY___eq__(self, other)
19003
19004 def __init__(self):
19005 r"""__init__(PTR_PTR_LAYER_CACHE_KEY self) -> PTR_PTR_LAYER_CACHE_KEY"""
19006 _pcbnew.PTR_PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_LAYER_CACHE_KEY())
19007 __swig_destroy__ = _pcbnew.delete_PTR_PTR_LAYER_CACHE_KEY
19008
19009# Register PTR_PTR_LAYER_CACHE_KEY in _pcbnew:
19010_pcbnew.PTR_PTR_LAYER_CACHE_KEY_swigregister(PTR_PTR_LAYER_CACHE_KEY)
19011LT_UNDEFINED = _pcbnew.LT_UNDEFINED
19012
19013LT_SIGNAL = _pcbnew.LT_SIGNAL
19014
19015LT_POWER = _pcbnew.LT_POWER
19016
19017LT_MIXED = _pcbnew.LT_MIXED
19018
19019LT_JUMPER = _pcbnew.LT_JUMPER
19020
19021LT_AUX = _pcbnew.LT_AUX
19022
19023LT_FRONT = _pcbnew.LT_FRONT
19024
19025LT_BACK = _pcbnew.LT_BACK
19026
19028 r"""Proxy of C++ LAYER class."""
19029
19030 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19031 __repr__ = _swig_repr
19032
19033 def __init__(self):
19034 r"""__init__(LAYER self) -> LAYER"""
19035 _pcbnew.LAYER_swiginit(self, _pcbnew.new_LAYER())
19036
19037 def clear(self):
19038 r"""clear(LAYER self)"""
19039 return _pcbnew.LAYER_clear(self)
19040 m_name = property(_pcbnew.LAYER_m_name_get, _pcbnew.LAYER_m_name_set, doc=r"""m_name : wxString""")
19041 m_userName = property(_pcbnew.LAYER_m_userName_get, _pcbnew.LAYER_m_userName_set, doc=r"""m_userName : wxString""")
19042 m_type = property(_pcbnew.LAYER_m_type_get, _pcbnew.LAYER_m_type_set, doc=r"""m_type : LAYER_T""")
19043 m_visible = property(_pcbnew.LAYER_m_visible_get, _pcbnew.LAYER_m_visible_set, doc=r"""m_visible : bool""")
19044 m_number = property(_pcbnew.LAYER_m_number_get, _pcbnew.LAYER_m_number_set, doc=r"""m_number : int""")
19045 m_opposite = property(_pcbnew.LAYER_m_opposite_get, _pcbnew.LAYER_m_opposite_set, doc=r"""m_opposite : int""")
19046
19047 @staticmethod
19048 def ShowType(aType):
19049 r"""ShowType(LAYER_T aType) -> char const *"""
19050 return _pcbnew.LAYER_ShowType(aType)
19051
19052 @staticmethod
19053 def ParseType(aType):
19054 r"""ParseType(char const * aType) -> LAYER_T"""
19055 return _pcbnew.LAYER_ParseType(aType)
19056 __swig_destroy__ = _pcbnew.delete_LAYER
19057
19058# Register LAYER in _pcbnew:
19059_pcbnew.LAYER_swigregister(LAYER)
19061 r"""Proxy of C++ HIGH_LIGHT_INFO class."""
19062
19063 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19064
19065 def __init__(self, *args, **kwargs):
19066 raise AttributeError("No constructor defined")
19067 __repr__ = _swig_repr
19068 __swig_destroy__ = _pcbnew.delete_HIGH_LIGHT_INFO
19069
19070# Register HIGH_LIGHT_INFO in _pcbnew:
19071_pcbnew.HIGH_LIGHT_INFO_swigregister(HIGH_LIGHT_INFO)
19073 r"""Proxy of C++ BOARD_LISTENER class."""
19074
19075 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19076 __repr__ = _swig_repr
19077 __swig_destroy__ = _pcbnew.delete_BOARD_LISTENER
19078
19079 def OnBoardItemAdded(self, aBoard, aBoardItem):
19080 r"""OnBoardItemAdded(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
19081 return _pcbnew.BOARD_LISTENER_OnBoardItemAdded(self, aBoard, aBoardItem)
19082
19083 def OnBoardItemsAdded(self, aBoard, aBoardItem):
19084 r"""OnBoardItemsAdded(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
19085 return _pcbnew.BOARD_LISTENER_OnBoardItemsAdded(self, aBoard, aBoardItem)
19086
19087 def OnBoardItemRemoved(self, aBoard, aBoardItem):
19088 r"""OnBoardItemRemoved(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
19089 return _pcbnew.BOARD_LISTENER_OnBoardItemRemoved(self, aBoard, aBoardItem)
19090
19091 def OnBoardItemsRemoved(self, aBoard, aBoardItem):
19092 r"""OnBoardItemsRemoved(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
19093 return _pcbnew.BOARD_LISTENER_OnBoardItemsRemoved(self, aBoard, aBoardItem)
19094
19095 def OnBoardNetSettingsChanged(self, aBoard):
19096 r"""OnBoardNetSettingsChanged(BOARD_LISTENER self, BOARD aBoard)"""
19097 return _pcbnew.BOARD_LISTENER_OnBoardNetSettingsChanged(self, aBoard)
19098
19099 def OnBoardItemChanged(self, aBoard, aBoardItem):
19100 r"""OnBoardItemChanged(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
19101 return _pcbnew.BOARD_LISTENER_OnBoardItemChanged(self, aBoard, aBoardItem)
19102
19103 def OnBoardItemsChanged(self, aBoard, aBoardItem):
19104 r"""OnBoardItemsChanged(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
19105 return _pcbnew.BOARD_LISTENER_OnBoardItemsChanged(self, aBoard, aBoardItem)
19106
19108 r"""OnBoardHighlightNetChanged(BOARD_LISTENER self, BOARD aBoard)"""
19109 return _pcbnew.BOARD_LISTENER_OnBoardHighlightNetChanged(self, aBoard)
19110
19111 def OnBoardRatsnestChanged(self, aBoard):
19112 r"""OnBoardRatsnestChanged(BOARD_LISTENER self, BOARD aBoard)"""
19113 return _pcbnew.BOARD_LISTENER_OnBoardRatsnestChanged(self, aBoard)
19114
19115 def OnBoardCompositeUpdate(self, aBoard, aAddedItems, aRemovedItems, aDeletedItems):
19116 r"""OnBoardCompositeUpdate(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aAddedItems, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aRemovedItems, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aDeletedItems)"""
19117 return _pcbnew.BOARD_LISTENER_OnBoardCompositeUpdate(self, aBoard, aAddedItems, aRemovedItems, aDeletedItems)
19118
19119 def __init__(self):
19120 r"""__init__(BOARD_LISTENER self) -> BOARD_LISTENER"""
19121 _pcbnew.BOARD_LISTENER_swiginit(self, _pcbnew.new_BOARD_LISTENER())
19122
19123# Register BOARD_LISTENER in _pcbnew:
19124_pcbnew.BOARD_LISTENER_swigregister(BOARD_LISTENER)
19125BOARD_USE_NORMAL = _pcbnew.BOARD_USE_NORMAL
19126
19127BOARD_USE_FPHOLDER = _pcbnew.BOARD_USE_FPHOLDER
19128
19130 r"""Proxy of C++ BOARD class."""
19131
19132 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19133
19134 def __init__(self, *args, **kwargs):
19135 raise AttributeError("No constructor defined")
19136 __repr__ = _swig_repr
19137
19138 @staticmethod
19139 def ClassOf(aItem):
19140 r"""ClassOf(EDA_ITEM aItem) -> bool"""
19141 return _pcbnew.BOARD_ClassOf(aItem)
19142
19143 def SetBoardUse(self, aUse):
19144 r"""SetBoardUse(BOARD self, BOARD_USE aUse)"""
19145 return _pcbnew.BOARD_SetBoardUse(self, aUse)
19146
19147 def GetBoardUse(self):
19148 r"""GetBoardUse(BOARD self) -> BOARD_USE"""
19149 return _pcbnew.BOARD_GetBoardUse(self)
19150
19152 r"""IncrementTimeStamp(BOARD self)"""
19153 return _pcbnew.BOARD_IncrementTimeStamp(self)
19154
19155 def GetTimeStamp(self):
19156 r"""GetTimeStamp(BOARD self) -> int"""
19157 return _pcbnew.BOARD_GetTimeStamp(self)
19158
19160 r"""IsFootprintHolder(BOARD self) -> bool"""
19161 return _pcbnew.BOARD_IsFootprintHolder(self)
19162
19163 def SetFileName(self, aFileName):
19164 r"""SetFileName(BOARD self, wxString aFileName)"""
19165 return _pcbnew.BOARD_SetFileName(self, aFileName)
19166
19167 def GetFileName(self):
19168 r"""GetFileName(BOARD self) -> wxString"""
19169 return _pcbnew.BOARD_GetFileName(self)
19170
19171 def Footprints(self):
19172 r"""Footprints(BOARD self) -> FOOTPRINTS"""
19173 return _pcbnew.BOARD_Footprints(self)
19174
19175 def Zones(self):
19176 r"""Zones(BOARD self) -> ZONES"""
19177 return _pcbnew.BOARD_Zones(self)
19178
19179 def Generators(self):
19180 r"""Generators(BOARD self) -> GENERATORS"""
19181 return _pcbnew.BOARD_Generators(self)
19182
19183 def Markers(self):
19184 r"""Markers(BOARD self) -> MARKERS"""
19185 return _pcbnew.BOARD_Markers(self)
19186
19187 def Drawings(self, *args):
19188 r"""
19189 Drawings(BOARD self) -> DRAWINGS
19190 Drawings(BOARD self) -> DRAWINGS
19191 """
19192 return _pcbnew.BOARD_Drawings(self, *args)
19193
19194 def Tracks(self, *args):
19195 r"""
19196 Tracks(BOARD self) -> TRACKS
19197 Tracks(BOARD self) -> TRACKS
19198 """
19199 return _pcbnew.BOARD_Tracks(self, *args)
19200
19201 def GetItemSet(self):
19202 r"""GetItemSet(BOARD self) -> BOARD_ITEM_SET const"""
19203 return _pcbnew.BOARD_GetItemSet(self)
19204
19205 def Groups(self):
19206 r"""Groups(BOARD self) -> GROUPS"""
19207 return _pcbnew.BOARD_Groups(self)
19208
19210 r"""AllConnectedItems(BOARD self) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
19211 return _pcbnew.BOARD_AllConnectedItems(self)
19212
19213 def GetProperties(self):
19214 r"""GetProperties(BOARD self) -> MAP_STRING_STRING"""
19215 return _pcbnew.BOARD_GetProperties(self)
19216
19217 def SetProperties(self, aProps):
19218 r"""SetProperties(BOARD self, MAP_STRING_STRING aProps)"""
19219 return _pcbnew.BOARD_SetProperties(self, aProps)
19220
19221 def GetContextualTextVars(self, aVars):
19222 r"""GetContextualTextVars(BOARD self, wxArrayString * aVars)"""
19223 return _pcbnew.BOARD_GetContextualTextVars(self, aVars)
19224
19225 def ResolveTextVar(self, token, aDepth):
19226 r"""ResolveTextVar(BOARD self, wxString token, int aDepth) -> bool"""
19227 return _pcbnew.BOARD_ResolveTextVar(self, token, aDepth)
19228 m_LegacyVisibleLayers = property(_pcbnew.BOARD_m_LegacyVisibleLayers_get, _pcbnew.BOARD_m_LegacyVisibleLayers_set, doc=r"""m_LegacyVisibleLayers : LSET""")
19229 m_LegacyVisibleItems = property(_pcbnew.BOARD_m_LegacyVisibleItems_get, _pcbnew.BOARD_m_LegacyVisibleItems_set, doc=r"""m_LegacyVisibleItems : GAL_SET""")
19230 m_LegacyDesignSettingsLoaded = property(_pcbnew.BOARD_m_LegacyDesignSettingsLoaded_get, _pcbnew.BOARD_m_LegacyDesignSettingsLoaded_set, doc=r"""m_LegacyDesignSettingsLoaded : bool""")
19231 m_LegacyCopperEdgeClearanceLoaded = property(_pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_get, _pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_set, doc=r"""m_LegacyCopperEdgeClearanceLoaded : bool""")
19232 m_LegacyNetclassesLoaded = property(_pcbnew.BOARD_m_LegacyNetclassesLoaded_get, _pcbnew.BOARD_m_LegacyNetclassesLoaded_set, doc=r"""m_LegacyNetclassesLoaded : bool""")
19233 __swig_destroy__ = _pcbnew.delete_BOARD
19234
19235 def IsEmpty(self):
19236 r"""IsEmpty(BOARD self) -> bool"""
19237 return _pcbnew.BOARD_IsEmpty(self)
19238
19239 def SetFileFormatVersionAtLoad(self, aVersion):
19240 r"""SetFileFormatVersionAtLoad(BOARD self, int aVersion)"""
19241 return _pcbnew.BOARD_SetFileFormatVersionAtLoad(self, aVersion)
19242
19244 r"""GetFileFormatVersionAtLoad(BOARD self) -> int"""
19245 return _pcbnew.BOARD_GetFileFormatVersionAtLoad(self)
19246
19247 def SetGenerator(self, aGenerator):
19248 r"""SetGenerator(BOARD self, wxString aGenerator)"""
19249 return _pcbnew.BOARD_SetGenerator(self, aGenerator)
19250
19251 def GetGenerator(self):
19252 r"""GetGenerator(BOARD self) -> wxString"""
19253 return _pcbnew.BOARD_GetGenerator(self)
19254
19255 def AddNative(self, *args):
19256 r"""AddNative(BOARD self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
19257 return _pcbnew.BOARD_AddNative(self, *args)
19258
19259 def RemoveNative(self, *args):
19260 r"""RemoveNative(BOARD self, BOARD_ITEM aBoardItem, REMOVE_MODE aMode=NORMAL)"""
19261 return _pcbnew.BOARD_RemoveNative(self, *args)
19262
19263 def RemoveAll(self, *args):
19264 r"""
19265 RemoveAll(BOARD self, std::initializer_list< KICAD_T > aTypes={ PCB_NETINFO_T, PCB_MARKER_T,
19266 PCB_GROUP_T, PCB_ZONE_T,
19267 PCB_GENERATOR_T, PCB_FOOTPRINT_T,
19268 PCB_TRACE_T, PCB_SHAPE_T })
19269 """
19270 return _pcbnew.BOARD_RemoveAll(self, *args)
19271
19272 def FinalizeBulkAdd(self, aNewItems):
19273 r"""FinalizeBulkAdd(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aNewItems)"""
19274 return _pcbnew.BOARD_FinalizeBulkAdd(self, aNewItems)
19275
19276 def FinalizeBulkRemove(self, aRemovedItems):
19277 r"""FinalizeBulkRemove(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aRemovedItems)"""
19278 return _pcbnew.BOARD_FinalizeBulkRemove(self, aRemovedItems)
19279
19281 r"""FixupEmbeddedData(BOARD self)"""
19282 return _pcbnew.BOARD_FixupEmbeddedData(self)
19283
19284 def CacheTriangulation(self, *args):
19285 r"""CacheTriangulation(BOARD self, PROGRESS_REPORTER * aReporter=None, ZONES aZones={})"""
19286 return _pcbnew.BOARD_CacheTriangulation(self, *args)
19287
19289 r"""GetFirstFootprint(BOARD self) -> FOOTPRINT"""
19290 return _pcbnew.BOARD_GetFirstFootprint(self)
19291
19293 r"""DeleteAllFootprints(BOARD self)"""
19294 return _pcbnew.BOARD_DeleteAllFootprints(self)
19295
19296 def GetItem(self, aID):
19297 r"""GetItem(BOARD self, KIID aID) -> BOARD_ITEM"""
19298 return _pcbnew.BOARD_GetItem(self, aID)
19299
19300 def FillItemMap(self, aMap):
19301 r"""FillItemMap(BOARD self, std::map< KIID,EDA_ITEM *,std::less< KIID >,std::allocator< std::pair< KIID const,EDA_ITEM * > > > & aMap)"""
19302 return _pcbnew.BOARD_FillItemMap(self, aMap)
19303
19305 r"""ConvertCrossReferencesToKIIDs(BOARD self, wxString aSource) -> wxString"""
19306 return _pcbnew.BOARD_ConvertCrossReferencesToKIIDs(self, aSource)
19307
19309 r"""ConvertKIIDsToCrossReferences(BOARD self, wxString aSource) -> wxString"""
19310 return _pcbnew.BOARD_ConvertKIIDsToCrossReferences(self, aSource)
19311
19313 r"""GetConnectivity(BOARD self) -> std::shared_ptr< CONNECTIVITY_DATA >"""
19314 return _pcbnew.BOARD_GetConnectivity(self)
19315
19316 def BuildConnectivity(self, aReporter=None):
19317 r"""BuildConnectivity(BOARD self, PROGRESS_REPORTER * aReporter=None) -> bool"""
19318 return _pcbnew.BOARD_BuildConnectivity(self, aReporter)
19319
19320 def DeleteMARKERs(self, *args):
19321 r"""
19322 DeleteMARKERs(BOARD self)
19323 DeleteMARKERs(BOARD self, bool aWarningsAndErrors, bool aExclusions)
19324 """
19325 return _pcbnew.BOARD_DeleteMARKERs(self, *args)
19326
19327 def GetProject(self):
19328 r"""GetProject(BOARD self) -> PROJECT *"""
19329 return _pcbnew.BOARD_GetProject(self)
19330
19331 def SetProject(self, aProject, aReferenceOnly=False):
19332 r"""SetProject(BOARD self, PROJECT * aProject, bool aReferenceOnly=False)"""
19333 return _pcbnew.BOARD_SetProject(self, aProject, aReferenceOnly)
19334
19335 def ClearProject(self):
19336 r"""ClearProject(BOARD self)"""
19337 return _pcbnew.BOARD_ClearProject(self)
19338
19339 def ResolveDRCExclusions(self, aCreateMarkers):
19340 r"""ResolveDRCExclusions(BOARD self, bool aCreateMarkers) -> MARKERS"""
19341 return _pcbnew.BOARD_ResolveDRCExclusions(self, aCreateMarkers)
19342
19344 r"""RecordDRCExclusions(BOARD self)"""
19345 return _pcbnew.BOARD_RecordDRCExclusions(self)
19346
19348 r"""UpdateRatsnestExclusions(BOARD self)"""
19349 return _pcbnew.BOARD_UpdateRatsnestExclusions(self)
19350
19352 r"""ResetNetHighLight(BOARD self)"""
19353 return _pcbnew.BOARD_ResetNetHighLight(self)
19354
19356 r"""GetHighLightNetCodes(BOARD self) -> std::set< int,std::less< int >,std::allocator< int > > const &"""
19357 return _pcbnew.BOARD_GetHighLightNetCodes(self)
19358
19359 def SetHighLightNet(self, aNetCode, aMulti=False):
19360 r"""SetHighLightNet(BOARD self, int aNetCode, bool aMulti=False)"""
19361 return _pcbnew.BOARD_SetHighLightNet(self, aNetCode, aMulti)
19362
19364 r"""IsHighLightNetON(BOARD self) -> bool"""
19365 return _pcbnew.BOARD_IsHighLightNetON(self)
19366
19367 def HighLightON(self, aValue=True):
19368 r"""HighLightON(BOARD self, bool aValue=True)"""
19369 return _pcbnew.BOARD_HighLightON(self, aValue)
19370
19371 def HighLightOFF(self):
19372 r"""HighLightOFF(BOARD self)"""
19373 return _pcbnew.BOARD_HighLightOFF(self)
19374
19376 r"""GetCopperLayerCount(BOARD self) -> int"""
19377 return _pcbnew.BOARD_GetCopperLayerCount(self)
19378
19379 def SetCopperLayerCount(self, aCount):
19380 r"""SetCopperLayerCount(BOARD self, int aCount)"""
19381 return _pcbnew.BOARD_SetCopperLayerCount(self, aCount)
19382
19384 r"""GetCopperLayerStackMaxId(BOARD self) -> PCB_LAYER_ID"""
19385 return _pcbnew.BOARD_GetCopperLayerStackMaxId(self)
19386
19387 def FlipLayer(self, aLayer):
19388 r"""FlipLayer(BOARD self, PCB_LAYER_ID aLayer) -> PCB_LAYER_ID"""
19389 return _pcbnew.BOARD_FlipLayer(self, aLayer)
19390
19391 def LayerDepth(self, aStartLayer, aEndLayer):
19392 r"""LayerDepth(BOARD self, PCB_LAYER_ID aStartLayer, PCB_LAYER_ID aEndLayer) -> int"""
19393 return _pcbnew.BOARD_LayerDepth(self, aStartLayer, aEndLayer)
19394
19396 r"""GetEnabledLayers(BOARD self) -> LSET"""
19397 return _pcbnew.BOARD_GetEnabledLayers(self)
19398
19399 def SetEnabledLayers(self, aLayerMask):
19400 r"""SetEnabledLayers(BOARD self, LSET aLayerMask)"""
19401 return _pcbnew.BOARD_SetEnabledLayers(self, aLayerMask)
19402
19403 def IsLayerEnabled(self, aLayer):
19404 r"""IsLayerEnabled(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
19405 return _pcbnew.BOARD_IsLayerEnabled(self, aLayer)
19406
19407 def IsLayerVisible(self, aLayer):
19408 r"""IsLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
19409 return _pcbnew.BOARD_IsLayerVisible(self, aLayer)
19410
19412 r"""GetVisibleLayers(BOARD self) -> LSET"""
19413 return _pcbnew.BOARD_GetVisibleLayers(self)
19414
19415 def SetVisibleLayers(self, aLayerMask):
19416 r"""SetVisibleLayers(BOARD self, LSET aLayerMask)"""
19417 return _pcbnew.BOARD_SetVisibleLayers(self, aLayerMask)
19418
19420 r"""GetVisibleElements(BOARD self) -> GAL_SET"""
19421 return _pcbnew.BOARD_GetVisibleElements(self)
19422
19423 def SetVisibleElements(self, aMask):
19424 r"""SetVisibleElements(BOARD self, GAL_SET aMask)"""
19425 return _pcbnew.BOARD_SetVisibleElements(self, aMask)
19426
19428 r"""SetVisibleAlls(BOARD self)"""
19429 return _pcbnew.BOARD_SetVisibleAlls(self)
19430
19431 def IsElementVisible(self, aLayer):
19432 r"""IsElementVisible(BOARD self, GAL_LAYER_ID aLayer) -> bool"""
19433 return _pcbnew.BOARD_IsElementVisible(self, aLayer)
19434
19435 def SetElementVisibility(self, aLayer, aNewState):
19436 r"""SetElementVisibility(BOARD self, GAL_LAYER_ID aLayer, bool aNewState)"""
19437 return _pcbnew.BOARD_SetElementVisibility(self, aLayer, aNewState)
19438
19439 def IsFootprintLayerVisible(self, aLayer):
19440 r"""IsFootprintLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
19441 return _pcbnew.BOARD_IsFootprintLayerVisible(self, aLayer)
19442
19444 r"""GetDesignSettings(BOARD self) -> BOARD_DESIGN_SETTINGS"""
19445 return _pcbnew.BOARD_GetDesignSettings(self)
19446
19448 r"""GetStackupOrDefault(BOARD self) -> BOARD_STACKUP"""
19449 return _pcbnew.BOARD_GetStackupOrDefault(self)
19450
19452 r"""GetPageSettings(BOARD self) -> PAGE_INFO const &"""
19453 return _pcbnew.BOARD_GetPageSettings(self)
19454
19455 def SetPageSettings(self, aPageSettings):
19456 r"""SetPageSettings(BOARD self, PAGE_INFO const & aPageSettings)"""
19457 return _pcbnew.BOARD_SetPageSettings(self, aPageSettings)
19458
19460 r"""GetPlotOptions(BOARD self) -> PCB_PLOT_PARAMS"""
19461 return _pcbnew.BOARD_GetPlotOptions(self)
19462
19463 def SetPlotOptions(self, aOptions):
19464 r"""SetPlotOptions(BOARD self, PCB_PLOT_PARAMS aOptions)"""
19465 return _pcbnew.BOARD_SetPlotOptions(self, aOptions)
19466
19467 def GetTitleBlock(self, *args):
19468 r"""
19469 GetTitleBlock(BOARD self) -> TITLE_BLOCK
19470 GetTitleBlock(BOARD self) -> TITLE_BLOCK
19471 """
19472 return _pcbnew.BOARD_GetTitleBlock(self, *args)
19473
19474 def SetTitleBlock(self, aTitleBlock):
19475 r"""SetTitleBlock(BOARD self, TITLE_BLOCK aTitleBlock)"""
19476 return _pcbnew.BOARD_SetTitleBlock(self, aTitleBlock)
19477
19478 def GetUserUnits(self):
19479 r"""GetUserUnits(BOARD self) -> EDA_UNITS"""
19480 return _pcbnew.BOARD_GetUserUnits(self)
19481
19482 def SetUserUnits(self, aUnits):
19483 r"""SetUserUnits(BOARD self, EDA_UNITS aUnits)"""
19484 return _pcbnew.BOARD_SetUserUnits(self, aUnits)
19485
19486 def UpdateUserUnits(self, aItem, aView):
19487 r"""UpdateUserUnits(BOARD self, BOARD_ITEM aItem, KIGFX::VIEW * aView)"""
19488 return _pcbnew.BOARD_UpdateUserUnits(self, aItem, aView)
19489
19490 def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False, aIncludeNPTHAsOutlines=False):
19491 r"""GetBoardPolygonOutlines(BOARD self, SHAPE_POLY_SET aOutlines, OUTLINE_ERROR_HANDLER * aErrorHandler=None, bool aAllowUseArcsInPolygons=False, bool aIncludeNPTHAsOutlines=False) -> bool"""
19492 return _pcbnew.BOARD_GetBoardPolygonOutlines(self, aOutlines, aErrorHandler, aAllowUseArcsInPolygons, aIncludeNPTHAsOutlines)
19493
19495 r"""GetOutlinesChainingEpsilon(BOARD self) -> int"""
19496 return _pcbnew.BOARD_GetOutlinesChainingEpsilon(self)
19497
19499 r"""SetOutlinesChainingEpsilon(BOARD self, int aValue)"""
19500 return _pcbnew.BOARD_SetOutlinesChainingEpsilon(self, aValue)
19501
19502 def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines):
19503 r"""ConvertBrdLayerToPolygonalContours(BOARD self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aOutlines)"""
19504 return _pcbnew.BOARD_ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
19505
19506 def GetLayerID(self, aLayerName):
19507 r"""GetLayerID(BOARD self, wxString aLayerName) -> PCB_LAYER_ID"""
19508 return _pcbnew.BOARD_GetLayerID(self, aLayerName)
19509
19510 def GetLayerName(self, aLayer):
19511 r"""GetLayerName(BOARD self, PCB_LAYER_ID aLayer) -> wxString"""
19512 return _pcbnew.BOARD_GetLayerName(self, aLayer)
19513
19514 def SetLayerName(self, aLayer, aLayerName):
19515 r"""SetLayerName(BOARD self, PCB_LAYER_ID aLayer, wxString aLayerName) -> bool"""
19516 return _pcbnew.BOARD_SetLayerName(self, aLayer, aLayerName)
19517
19518 @staticmethod
19520 r"""GetStandardLayerName(PCB_LAYER_ID aLayerId) -> wxString"""
19521 return _pcbnew.BOARD_GetStandardLayerName(aLayerId)
19522
19523 def SetLayerDescr(self, aIndex, aLayer):
19524 r"""SetLayerDescr(BOARD self, PCB_LAYER_ID aIndex, LAYER aLayer) -> bool"""
19525 return _pcbnew.BOARD_SetLayerDescr(self, aIndex, aLayer)
19526
19527 def GetLayerType(self, aLayer):
19528 r"""GetLayerType(BOARD self, PCB_LAYER_ID aLayer) -> LAYER_T"""
19529 return _pcbnew.BOARD_GetLayerType(self, aLayer)
19530
19531 def SetLayerType(self, aLayer, aLayerType):
19532 r"""SetLayerType(BOARD self, PCB_LAYER_ID aLayer, LAYER_T aLayerType) -> bool"""
19533 return _pcbnew.BOARD_SetLayerType(self, aLayer, aLayerType)
19534
19535 def GetNodesCount(self, aNet=-1):
19536 r"""GetNodesCount(BOARD self, int aNet=-1) -> unsigned int"""
19537 return _pcbnew.BOARD_GetNodesCount(self, aNet)
19538
19539 def GetPads(self):
19540 r"""GetPads(BOARD self) -> PADS_VEC"""
19541 return _pcbnew.BOARD_GetPads(self)
19542
19544 r"""BuildListOfNets(BOARD self)"""
19545 return _pcbnew.BOARD_BuildListOfNets(self)
19546
19547 def FindNet(self, *args):
19548 r"""
19549 FindNet(BOARD self, int aNetcode) -> NETINFO_ITEM
19550 FindNet(BOARD self, wxString aNetname) -> NETINFO_ITEM
19551 """
19552 return _pcbnew.BOARD_FindNet(self, *args)
19553
19554 def MatchDpSuffix(self, aNetName, aComplementNet):
19555 r"""MatchDpSuffix(BOARD self, wxString aNetName, wxString aComplementNet) -> int"""
19556 return _pcbnew.BOARD_MatchDpSuffix(self, aNetName, aComplementNet)
19557
19558 def DpCoupledNet(self, aNet):
19559 r"""DpCoupledNet(BOARD self, NETINFO_ITEM aNet) -> NETINFO_ITEM"""
19560 return _pcbnew.BOARD_DpCoupledNet(self, aNet)
19561
19562 def GetNetInfo(self):
19563 r"""GetNetInfo(BOARD self) -> NETINFO_LIST"""
19564 return _pcbnew.BOARD_GetNetInfo(self)
19565
19566 def RemoveUnusedNets(self, aCommit):
19567 r"""RemoveUnusedNets(BOARD self, BOARD_COMMIT * aCommit)"""
19568 return _pcbnew.BOARD_RemoveUnusedNets(self, aCommit)
19569
19570 def GetNetCount(self):
19571 r"""GetNetCount(BOARD self) -> unsigned int"""
19572 return _pcbnew.BOARD_GetNetCount(self)
19573
19574 def ComputeBoundingBox(self, aBoardEdgesOnly=False):
19575 r"""ComputeBoundingBox(BOARD self, bool aBoardEdgesOnly=False) -> BOX2I"""
19576 return _pcbnew.BOARD_ComputeBoundingBox(self, aBoardEdgesOnly)
19577
19579 r"""GetBoardEdgesBoundingBox(BOARD self) -> BOX2I"""
19580 return _pcbnew.BOARD_GetBoardEdgesBoundingBox(self)
19581
19582 def FindFootprintByReference(self, aReference):
19583 r"""FindFootprintByReference(BOARD self, wxString aReference) -> FOOTPRINT"""
19584 return _pcbnew.BOARD_FindFootprintByReference(self, aReference)
19585
19586 def FindFootprintByPath(self, aPath):
19587 r"""FindFootprintByPath(BOARD self, KIID_PATH aPath) -> FOOTPRINT"""
19588 return _pcbnew.BOARD_FindFootprintByPath(self, aPath)
19589
19591 r"""GetNetClassAssignmentCandidates(BOARD self) -> STRINGSET"""
19592 return _pcbnew.BOARD_GetNetClassAssignmentCandidates(self)
19593
19594 def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes):
19595 r"""SynchronizeNetsAndNetClasses(BOARD self, bool aResetTrackAndViaSizes)"""
19596 return _pcbnew.BOARD_SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
19597
19599 r"""SynchronizeProperties(BOARD self)"""
19600 return _pcbnew.BOARD_SynchronizeProperties(self)
19601
19603 r"""SetAreasNetCodesFromNetNames(BOARD self) -> int"""
19604 return _pcbnew.BOARD_SetAreasNetCodesFromNetNames(self)
19605
19606 def GetArea(self, index):
19607 r"""GetArea(BOARD self, int index) -> ZONE"""
19608 return _pcbnew.BOARD_GetArea(self, index)
19609
19610 def GetZoneList(self, aIncludeZonesInFootprints=False):
19611 r"""GetZoneList(BOARD self, bool aIncludeZonesInFootprints=False) -> std::list< ZONE *,std::allocator< ZONE * > >"""
19612 return _pcbnew.BOARD_GetZoneList(self, aIncludeZonesInFootprints)
19613
19614 def GetAreaCount(self):
19615 r"""GetAreaCount(BOARD self) -> int"""
19616 return _pcbnew.BOARD_GetAreaCount(self)
19617
19618 def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch):
19619 r"""AddArea(BOARD self, PICKED_ITEMS_LIST * aNewZonesList, int aNetcode, PCB_LAYER_ID aLayer, VECTOR2I aStartPointPosition, ZONE_BORDER_DISPLAY_STYLE aHatch) -> ZONE"""
19620 return _pcbnew.BOARD_AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
19621
19622 def TestZoneIntersection(self, aZone1, aZone2):
19623 r"""TestZoneIntersection(BOARD self, ZONE aZone1, ZONE aZone2) -> bool"""
19624 return _pcbnew.BOARD_TestZoneIntersection(self, aZone1, aZone2)
19625
19626 def GetPadFast(self, aPosition, aLayerMask):
19627 r"""GetPadFast(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD"""
19628 return _pcbnew.BOARD_GetPadFast(self, aPosition, aLayerMask)
19629
19630 def GetPad(self, *args):
19631 r"""
19632 GetPad(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD
19633 GetPad(BOARD self, VECTOR2I aPosition) -> PAD
19634 GetPad(BOARD self, PCB_TRACK aTrace, ENDPOINT_T aEndPoint) -> PAD
19635 GetPad(BOARD self, PADS_VEC aPadList, VECTOR2I aPosition, LSET aLayerMask) -> PAD
19636 """
19637 return _pcbnew.BOARD_GetPad(self, *args)
19638
19639 def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1):
19640 r"""GetSortedPadListByXthenYCoord(BOARD self, PADS_VEC aVector, int aNetCode=-1)"""
19641 return _pcbnew.BOARD_GetSortedPadListByXthenYCoord(self, aVector, aNetCode)
19642
19643 def GetTrackLength(self, aTrack):
19644 r"""GetTrackLength(BOARD self, PCB_TRACK aTrack) -> std::tuple< int,double,double >"""
19645 return _pcbnew.BOARD_GetTrackLength(self, aTrack)
19646
19647 def TracksInNet(self, aNetCode):
19648 r"""TracksInNet(BOARD self, int aNetCode) -> TRACKS"""
19649 return _pcbnew.BOARD_TracksInNet(self, aNetCode)
19650
19651 def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False):
19652 r"""GetFootprint(BOARD self, VECTOR2I aPosition, PCB_LAYER_ID aActiveLayer, bool aVisibleOnly, bool aIgnoreLocked=False) -> FOOTPRINT"""
19653 return _pcbnew.BOARD_GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked)
19654
19656 r"""GetMaxClearanceValue(BOARD self) -> int"""
19657 return _pcbnew.BOARD_GetMaxClearanceValue(self)
19658
19659 def MapNets(self, aDestBoard):
19660 r"""MapNets(BOARD self, BOARD aDestBoard)"""
19661 return _pcbnew.BOARD_MapNets(self, aDestBoard)
19662
19664 r"""SanitizeNetcodes(BOARD self)"""
19665 return _pcbnew.BOARD_SanitizeNetcodes(self)
19666
19667 def AddListener(self, aListener):
19668 r"""AddListener(BOARD self, BOARD_LISTENER aListener)"""
19669 return _pcbnew.BOARD_AddListener(self, aListener)
19670
19671 def RemoveListener(self, aListener):
19672 r"""RemoveListener(BOARD self, BOARD_LISTENER aListener)"""
19673 return _pcbnew.BOARD_RemoveListener(self, aListener)
19674
19676 r"""RemoveAllListeners(BOARD self)"""
19677 return _pcbnew.BOARD_RemoveAllListeners(self)
19678
19679 def OnItemChanged(self, aItem):
19680 r"""OnItemChanged(BOARD self, BOARD_ITEM aItem)"""
19681 return _pcbnew.BOARD_OnItemChanged(self, aItem)
19682
19683 def OnItemsChanged(self, aItems):
19684 r"""OnItemsChanged(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aItems)"""
19685 return _pcbnew.BOARD_OnItemsChanged(self, aItems)
19686
19687 def OnItemsCompositeUpdate(self, aAddedItems, aRemovedItems, aChangedItems):
19688 r"""OnItemsCompositeUpdate(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aAddedItems, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aRemovedItems, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aChangedItems)"""
19689 return _pcbnew.BOARD_OnItemsCompositeUpdate(self, aAddedItems, aRemovedItems, aChangedItems)
19690
19692 r"""OnRatsnestChanged(BOARD self)"""
19693 return _pcbnew.BOARD_OnRatsnestChanged(self)
19694
19695 def GroupsSanityCheck(self, repair=False):
19696 r"""GroupsSanityCheck(BOARD self, bool repair=False) -> wxString"""
19697 return _pcbnew.BOARD_GroupsSanityCheck(self, repair)
19698
19699 def GroupsSanityCheckInternal(self, repair):
19700 r"""GroupsSanityCheckInternal(BOARD self, bool repair) -> wxString"""
19701 return _pcbnew.BOARD_GroupsSanityCheckInternal(self, repair)
19702
19703 def GroupLegalOps(self, selection):
19704 r"""GroupLegalOps(BOARD self, PCB_SELECTION const & selection) -> BOARD::GroupLegalOpsField"""
19705 return _pcbnew.BOARD_GroupLegalOps(self, selection)
19706
19708 r"""LegacyTeardrops(BOARD self) -> bool"""
19709 return _pcbnew.BOARD_LegacyTeardrops(self)
19710
19711 def SetLegacyTeardrops(self, aFlag):
19712 r"""SetLegacyTeardrops(BOARD self, bool aFlag)"""
19713 return _pcbnew.BOARD_SetLegacyTeardrops(self, aFlag)
19714
19715 def GetEmbeddedFiles(self, *args):
19716 r"""
19717 GetEmbeddedFiles(BOARD self) -> EMBEDDED_FILES
19718 GetEmbeddedFiles(BOARD self) -> EMBEDDED_FILES const *
19719 """
19720 return _pcbnew.BOARD_GetEmbeddedFiles(self, *args)
19721
19722 def EmbedFonts(self):
19723 r"""EmbedFonts(BOARD self)"""
19724 return _pcbnew.BOARD_EmbedFonts(self)
19725
19727 r"""GetComponentClassManager(BOARD self) -> COMPONENT_CLASS_MANAGER &"""
19728 return _pcbnew.BOARD_GetComponentClassManager(self)
19729 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)>""")
19730 m_maxClearanceValue = property(_pcbnew.BOARD_m_maxClearanceValue_get, _pcbnew.BOARD_m_maxClearanceValue_set, doc=r"""m_maxClearanceValue : std::optional<(int)>""")
19731 m_SolderMaskBridges = property(_pcbnew.BOARD_m_SolderMaskBridges_get, _pcbnew.BOARD_m_SolderMaskBridges_set, doc=r"""m_SolderMaskBridges : p.ZONE""")
19732 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)>)>)>)>)>)>""")
19733
19734 def __init__(self, *args):
19735 this = CreateEmptyBoard()
19736
19737 try:
19738 self.this.append(this)
19739 except:
19740 self.this = this
19741
19742 # Convert these to lists to keep users from using them to delete
19743 # items in the iterable while looping over it
19744 def GetFootprints(self): return list(self.Footprints())
19745 def GetDrawings(self): return list(self.Drawings())
19746 def GetTracks(self): return list(self.Tracks())
19747
19748 def Save(self,filename):
19749 return SaveBoard(filename,self)
19750
19751 def GetNetClasses(self):
19752 return self.GetDesignSettings().m_NetSettings.GetNetclasses()
19753
19756
19758 return self.GetDesignSettings().m_ViasDimensionsList
19759
19761 return self.GetDesignSettings().m_TrackWidthList
19762
19763 def GetNetsByName(self):
19764 """
19765 Return a dictionary like object with key:wxString netname and value:NETINFO_ITEM
19766 """
19767 return self.GetNetInfo().NetsByName()
19768
19770 """
19771 Return a dictionary like object with key:int netcode and value:NETINFO_ITEM
19772 """
19773 return self.GetNetInfo().NetsByNetcode()
19774
19775 def GetNetcodeFromNetname(self,netname):
19776 """
19777 Given a netname, return its netcode
19778 """
19779 net = self.GetNetsByName()[netname]
19780 return net.GetNetCode()
19781
19783 """
19784 Return a dictionary like object with net_class_name as key and NETCLASSPTR as value
19785 GetNetClasses(BOARD self) -> { wxString net_class_name : NETCLASSPTR }
19786 Include the "Default" netclass also.
19787 """
19788
19789 # Copy the NETCLASS_MAP so the one in the BOARD isn't modified
19790 # when we add the Default net class.
19791 netclassmap = {k:v for k,v in self.GetNetClasses().items()}
19792 netclassmap['Default'] = self.GetDesignSettings().m_NetSettings.GetDefaultNetclass()
19793 return netclassmap
19794
19795
19796# Register BOARD in _pcbnew:
19797_pcbnew.BOARD_swigregister(BOARD)
19799 r"""Proxy of C++ std::map< wxString,wxString > class."""
19800
19801 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19802 __repr__ = _swig_repr
19803
19804 def iterator(self):
19805 r"""iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
19806 return _pcbnew.MAP_STRING_STRING_iterator(self)
19807 def __iter__(self):
19808 return self.iterator()
19809
19810 def __nonzero__(self):
19811 r"""__nonzero__(MAP_STRING_STRING self) -> bool"""
19812 return _pcbnew.MAP_STRING_STRING___nonzero__(self)
19813
19814 def __bool__(self):
19815 r"""__bool__(MAP_STRING_STRING self) -> bool"""
19816 return _pcbnew.MAP_STRING_STRING___bool__(self)
19817
19818 def __len__(self):
19819 r"""__len__(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
19820 return _pcbnew.MAP_STRING_STRING___len__(self)
19821 def __iter__(self):
19822 return self.key_iterator()
19823 def iterkeys(self):
19824 return self.key_iterator()
19825 def itervalues(self):
19826 return self.value_iterator()
19827 def iteritems(self):
19828 return self.iterator()
19829
19830 def __getitem__(self, key):
19831 r"""__getitem__(MAP_STRING_STRING self, wxString key) -> wxString"""
19832 return _pcbnew.MAP_STRING_STRING___getitem__(self, key)
19833
19834 def __delitem__(self, key):
19835 r"""__delitem__(MAP_STRING_STRING self, wxString key)"""
19836 return _pcbnew.MAP_STRING_STRING___delitem__(self, key)
19837
19838 def has_key(self, key):
19839 r"""has_key(MAP_STRING_STRING self, wxString key) -> bool"""
19840 return _pcbnew.MAP_STRING_STRING_has_key(self, key)
19841
19842 def keys(self):
19843 r"""keys(MAP_STRING_STRING self) -> PyObject *"""
19844 return _pcbnew.MAP_STRING_STRING_keys(self)
19845
19846 def values(self):
19847 r"""values(MAP_STRING_STRING self) -> PyObject *"""
19848 return _pcbnew.MAP_STRING_STRING_values(self)
19849
19850 def items(self):
19851 r"""items(MAP_STRING_STRING self) -> PyObject *"""
19852 return _pcbnew.MAP_STRING_STRING_items(self)
19853
19854 def __contains__(self, key):
19855 r"""__contains__(MAP_STRING_STRING self, wxString key) -> bool"""
19856 return _pcbnew.MAP_STRING_STRING___contains__(self, key)
19857
19858 def key_iterator(self):
19859 r"""key_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
19860 return _pcbnew.MAP_STRING_STRING_key_iterator(self)
19861
19863 r"""value_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
19864 return _pcbnew.MAP_STRING_STRING_value_iterator(self)
19865
19866 def __setitem__(self, *args):
19867 r"""
19868 __setitem__(MAP_STRING_STRING self, wxString key)
19869 __setitem__(MAP_STRING_STRING self, wxString key, wxString x)
19870 """
19871 return _pcbnew.MAP_STRING_STRING___setitem__(self, *args)
19872
19873 def asdict(self):
19874 r"""asdict(MAP_STRING_STRING self) -> PyObject *"""
19875 return _pcbnew.MAP_STRING_STRING_asdict(self)
19876
19877 def __init__(self, *args):
19878 r"""
19879 __init__(MAP_STRING_STRING self, std::less< wxString > const & other) -> MAP_STRING_STRING
19880 __init__(MAP_STRING_STRING self) -> MAP_STRING_STRING
19881 __init__(MAP_STRING_STRING self, MAP_STRING_STRING other) -> MAP_STRING_STRING
19882 """
19883 _pcbnew.MAP_STRING_STRING_swiginit(self, _pcbnew.new_MAP_STRING_STRING(*args))
19884
19885 def empty(self):
19886 r"""empty(MAP_STRING_STRING self) -> bool"""
19887 return _pcbnew.MAP_STRING_STRING_empty(self)
19888
19889 def size(self):
19890 r"""size(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
19891 return _pcbnew.MAP_STRING_STRING_size(self)
19892
19893 def swap(self, v):
19894 r"""swap(MAP_STRING_STRING self, MAP_STRING_STRING v)"""
19895 return _pcbnew.MAP_STRING_STRING_swap(self, v)
19896
19897 def begin(self):
19898 r"""begin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
19899 return _pcbnew.MAP_STRING_STRING_begin(self)
19900
19901 def end(self):
19902 r"""end(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
19903 return _pcbnew.MAP_STRING_STRING_end(self)
19904
19905 def rbegin(self):
19906 r"""rbegin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
19907 return _pcbnew.MAP_STRING_STRING_rbegin(self)
19908
19909 def rend(self):
19910 r"""rend(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
19911 return _pcbnew.MAP_STRING_STRING_rend(self)
19912
19913 def clear(self):
19914 r"""clear(MAP_STRING_STRING self)"""
19915 return _pcbnew.MAP_STRING_STRING_clear(self)
19916
19917 def get_allocator(self):
19918 r"""get_allocator(MAP_STRING_STRING self) -> std::map< wxString,wxString >::allocator_type"""
19919 return _pcbnew.MAP_STRING_STRING_get_allocator(self)
19920
19921 def count(self, x):
19922 r"""count(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type"""
19923 return _pcbnew.MAP_STRING_STRING_count(self, x)
19924
19925 def erase(self, *args):
19926 r"""
19927 erase(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type
19928 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator position)
19929 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator first, std::map< wxString,wxString >::iterator last)
19930 """
19931 return _pcbnew.MAP_STRING_STRING_erase(self, *args)
19932
19933 def find(self, x):
19934 r"""find(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
19935 return _pcbnew.MAP_STRING_STRING_find(self, x)
19936
19937 def lower_bound(self, x):
19938 r"""lower_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
19939 return _pcbnew.MAP_STRING_STRING_lower_bound(self, x)
19940
19941 def upper_bound(self, x):
19942 r"""upper_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
19943 return _pcbnew.MAP_STRING_STRING_upper_bound(self, x)
19944 __swig_destroy__ = _pcbnew.delete_MAP_STRING_STRING
19945
19946# Register MAP_STRING_STRING in _pcbnew:
19947_pcbnew.MAP_STRING_STRING_swigregister(MAP_STRING_STRING)
19948DO_NOT_INCLUDE_NPTH = _pcbnew.DO_NOT_INCLUDE_NPTH
19949
19950INCLUDE_NPTH = _pcbnew.INCLUDE_NPTH
19951
19952FP_THROUGH_HOLE = _pcbnew.FP_THROUGH_HOLE
19953
19954FP_SMD = _pcbnew.FP_SMD
19955
19956FP_EXCLUDE_FROM_POS_FILES = _pcbnew.FP_EXCLUDE_FROM_POS_FILES
19957
19958FP_EXCLUDE_FROM_BOM = _pcbnew.FP_EXCLUDE_FROM_BOM
19959
19960FP_BOARD_ONLY = _pcbnew.FP_BOARD_ONLY
19961
19962FP_JUST_ADDED = _pcbnew.FP_JUST_ADDED
19963
19964FP_ALLOW_SOLDERMASK_BRIDGES = _pcbnew.FP_ALLOW_SOLDERMASK_BRIDGES
19965
19966FP_ALLOW_MISSING_COURTYARD = _pcbnew.FP_ALLOW_MISSING_COURTYARD
19967
19968FP_DNP = _pcbnew.FP_DNP
19969
19971 r"""Proxy of C++ FP_3DMODEL class."""
19972
19973 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19974 __repr__ = _swig_repr
19975
19976 def __init__(self):
19977 r"""__init__(FP_3DMODEL self) -> FP_3DMODEL"""
19978 _pcbnew.FP_3DMODEL_swiginit(self, _pcbnew.new_FP_3DMODEL())
19979 m_Scale = property(_pcbnew.FP_3DMODEL_m_Scale_get, _pcbnew.FP_3DMODEL_m_Scale_set, doc=r"""m_Scale : VECTOR3D""")
19980 m_Rotation = property(_pcbnew.FP_3DMODEL_m_Rotation_get, _pcbnew.FP_3DMODEL_m_Rotation_set, doc=r"""m_Rotation : VECTOR3D""")
19981 m_Offset = property(_pcbnew.FP_3DMODEL_m_Offset_get, _pcbnew.FP_3DMODEL_m_Offset_set, doc=r"""m_Offset : VECTOR3D""")
19982 m_Opacity = property(_pcbnew.FP_3DMODEL_m_Opacity_get, _pcbnew.FP_3DMODEL_m_Opacity_set, doc=r"""m_Opacity : double""")
19983 m_Filename = property(_pcbnew.FP_3DMODEL_m_Filename_get, _pcbnew.FP_3DMODEL_m_Filename_set, doc=r"""m_Filename : wxString""")
19984 m_Show = property(_pcbnew.FP_3DMODEL_m_Show_get, _pcbnew.FP_3DMODEL_m_Show_set, doc=r"""m_Show : bool""")
19985
19986 def __eq__(self, aOther):
19987 r"""__eq__(FP_3DMODEL self, FP_3DMODEL aOther) -> bool"""
19988 return _pcbnew.FP_3DMODEL___eq__(self, aOther)
19989 __swig_destroy__ = _pcbnew.delete_FP_3DMODEL
19990
19991# Register FP_3DMODEL in _pcbnew:
19992_pcbnew.FP_3DMODEL_swigregister(FP_3DMODEL)
19994 r"""Proxy of C++ FOOTPRINT class."""
19995
19996 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19997 __repr__ = _swig_repr
19998
19999 def __init__(self, *args):
20000 r"""
20001 __init__(FOOTPRINT self, BOARD parent) -> FOOTPRINT
20002 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
20003 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
20004 """
20005 _pcbnew.FOOTPRINT_swiginit(self, _pcbnew.new_FOOTPRINT(*args))
20006 __swig_destroy__ = _pcbnew.delete_FOOTPRINT
20007
20008 def Serialize(self, aContainer):
20009 r"""Serialize(FOOTPRINT self, google::protobuf::Any & aContainer)"""
20010 return _pcbnew.FOOTPRINT_Serialize(self, aContainer)
20011
20012 def Deserialize(self, aContainer):
20013 r"""Deserialize(FOOTPRINT self, google::protobuf::Any const & aContainer) -> bool"""
20014 return _pcbnew.FOOTPRINT_Deserialize(self, aContainer)
20015
20016 @staticmethod
20017 def ClassOf(aItem):
20018 r"""ClassOf(EDA_ITEM aItem) -> bool"""
20019 return _pcbnew.FOOTPRINT_ClassOf(aItem)
20020
20022 r"""GetPrivateLayers(FOOTPRINT self) -> LSET"""
20023 return _pcbnew.FOOTPRINT_GetPrivateLayers(self)
20024
20025 def SetPrivateLayers(self, aLayers):
20026 r"""SetPrivateLayers(FOOTPRINT self, LSET aLayers)"""
20027 return _pcbnew.FOOTPRINT_SetPrivateLayers(self, aLayers)
20028
20029 def AddNative(self, *args):
20030 r"""AddNative(FOOTPRINT self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
20031 return _pcbnew.FOOTPRINT_AddNative(self, *args)
20032
20033 def RemoveNative(self, *args):
20034 r"""RemoveNative(FOOTPRINT self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
20035 return _pcbnew.FOOTPRINT_RemoveNative(self, *args)
20036
20037 def ClearAllNets(self):
20038 r"""ClearAllNets(FOOTPRINT self)"""
20039 return _pcbnew.FOOTPRINT_ClearAllNets(self)
20040
20041 def FixUuids(self):
20042 r"""FixUuids(FOOTPRINT self) -> bool"""
20043 return _pcbnew.FOOTPRINT_FixUuids(self)
20044
20046 r"""GetFpPadsLocalBbox(FOOTPRINT self) -> BOX2I"""
20047 return _pcbnew.FOOTPRINT_GetFpPadsLocalBbox(self)
20048
20050 r"""GetBoundingHull(FOOTPRINT self) -> SHAPE_POLY_SET"""
20051 return _pcbnew.FOOTPRINT_GetBoundingHull(self)
20052
20053 def TextOnly(self):
20054 r"""TextOnly(FOOTPRINT self) -> bool"""
20055 return _pcbnew.FOOTPRINT_TextOnly(self)
20056
20057 def GetLayerBoundingBox(self, aLayers):
20058 r"""GetLayerBoundingBox(FOOTPRINT self, LSET aLayers) -> BOX2I"""
20059 return _pcbnew.FOOTPRINT_GetLayerBoundingBox(self, aLayers)
20060
20061 def Fields(self, *args):
20062 r"""
20063 Fields(FOOTPRINT self) -> PCB_FIELDS
20064 Fields(FOOTPRINT self) -> PCB_FIELDS
20065 """
20066 return _pcbnew.FOOTPRINT_Fields(self, *args)
20067
20068 def Pads(self, *args):
20069 r"""
20070 Pads(FOOTPRINT self) -> PADS
20071 Pads(FOOTPRINT self) -> PADS
20072 """
20073 return _pcbnew.FOOTPRINT_Pads(self, *args)
20074
20075 def GraphicalItems(self, *args):
20076 r"""
20077 GraphicalItems(FOOTPRINT self) -> DRAWINGS
20078 GraphicalItems(FOOTPRINT self) -> DRAWINGS
20079 """
20080 return _pcbnew.FOOTPRINT_GraphicalItems(self, *args)
20081
20082 def Zones(self, *args):
20083 r"""
20084 Zones(FOOTPRINT self) -> ZONES
20085 Zones(FOOTPRINT self) -> ZONES
20086 """
20087 return _pcbnew.FOOTPRINT_Zones(self, *args)
20088
20089 def Groups(self, *args):
20090 r"""
20091 Groups(FOOTPRINT self) -> GROUPS
20092 Groups(FOOTPRINT self) -> GROUPS
20093 """
20094 return _pcbnew.FOOTPRINT_Groups(self, *args)
20095
20097 r"""HasThroughHolePads(FOOTPRINT self) -> bool"""
20098 return _pcbnew.FOOTPRINT_HasThroughHolePads(self)
20099
20100 def Models(self, *args):
20101 r"""
20102 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
20103 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
20104 """
20105 return _pcbnew.FOOTPRINT_Models(self, *args)
20106
20107 def SetOrientation(self, aNewAngle):
20108 r"""SetOrientation(FOOTPRINT self, EDA_ANGLE aNewAngle)"""
20109 return _pcbnew.FOOTPRINT_SetOrientation(self, aNewAngle)
20110
20112 r"""GetOrientation(FOOTPRINT self) -> EDA_ANGLE"""
20113 return _pcbnew.FOOTPRINT_GetOrientation(self)
20114
20115 def SetLayerAndFlip(self, aLayer):
20116 r"""SetLayerAndFlip(FOOTPRINT self, PCB_LAYER_ID aLayer)"""
20117 return _pcbnew.FOOTPRINT_SetLayerAndFlip(self, aLayer)
20118
20119 def SetOrientationDegrees(self, aOrientation):
20120 r"""SetOrientationDegrees(FOOTPRINT self, double aOrientation)"""
20121 return _pcbnew.FOOTPRINT_SetOrientationDegrees(self, aOrientation)
20122
20124 r"""GetOrientationDegrees(FOOTPRINT self) -> double"""
20125 return _pcbnew.FOOTPRINT_GetOrientationDegrees(self)
20126
20127 def GetFPID(self):
20128 r"""GetFPID(FOOTPRINT self) -> LIB_ID"""
20129 return _pcbnew.FOOTPRINT_GetFPID(self)
20130
20131 def SetFPID(self, aFPID):
20132 r"""SetFPID(FOOTPRINT self, LIB_ID aFPID)"""
20133 return _pcbnew.FOOTPRINT_SetFPID(self, aFPID)
20134
20136 r"""GetFPIDAsString(FOOTPRINT self) -> wxString"""
20137 return _pcbnew.FOOTPRINT_GetFPIDAsString(self)
20138
20139 def SetFPIDAsString(self, aFPID):
20140 r"""SetFPIDAsString(FOOTPRINT self, wxString aFPID)"""
20141 return _pcbnew.FOOTPRINT_SetFPIDAsString(self, aFPID)
20142
20144 r"""GetLibDescription(FOOTPRINT self) -> wxString"""
20145 return _pcbnew.FOOTPRINT_GetLibDescription(self)
20146
20147 def SetLibDescription(self, aDesc):
20148 r"""SetLibDescription(FOOTPRINT self, wxString aDesc)"""
20149 return _pcbnew.FOOTPRINT_SetLibDescription(self, aDesc)
20150
20151 def GetKeywords(self):
20152 r"""GetKeywords(FOOTPRINT self) -> wxString"""
20153 return _pcbnew.FOOTPRINT_GetKeywords(self)
20154
20155 def SetKeywords(self, aKeywords):
20156 r"""SetKeywords(FOOTPRINT self, wxString aKeywords)"""
20157 return _pcbnew.FOOTPRINT_SetKeywords(self, aKeywords)
20158
20159 def GetPath(self):
20160 r"""GetPath(FOOTPRINT self) -> KIID_PATH"""
20161 return _pcbnew.FOOTPRINT_GetPath(self)
20162
20163 def SetPath(self, aPath):
20164 r"""SetPath(FOOTPRINT self, KIID_PATH aPath)"""
20165 return _pcbnew.FOOTPRINT_SetPath(self, aPath)
20166
20167 def GetSheetname(self):
20168 r"""GetSheetname(FOOTPRINT self) -> wxString"""
20169 return _pcbnew.FOOTPRINT_GetSheetname(self)
20170
20171 def SetSheetname(self, aSheetname):
20172 r"""SetSheetname(FOOTPRINT self, wxString aSheetname)"""
20173 return _pcbnew.FOOTPRINT_SetSheetname(self, aSheetname)
20174
20175 def GetSheetfile(self):
20176 r"""GetSheetfile(FOOTPRINT self) -> wxString"""
20177 return _pcbnew.FOOTPRINT_GetSheetfile(self)
20178
20179 def SetSheetfile(self, aSheetfile):
20180 r"""SetSheetfile(FOOTPRINT self, wxString aSheetfile)"""
20181 return _pcbnew.FOOTPRINT_SetSheetfile(self, aSheetfile)
20182
20183 def GetFilters(self):
20184 r"""GetFilters(FOOTPRINT self) -> wxString"""
20185 return _pcbnew.FOOTPRINT_GetFilters(self)
20186
20187 def SetFilters(self, aFilters):
20188 r"""SetFilters(FOOTPRINT self, wxString aFilters)"""
20189 return _pcbnew.FOOTPRINT_SetFilters(self, aFilters)
20190
20191 def SetLocalClearance(self, aClearance):
20192 r"""SetLocalClearance(FOOTPRINT self, std::optional< int > aClearance)"""
20193 return _pcbnew.FOOTPRINT_SetLocalClearance(self, aClearance)
20194
20196 r"""GetLocalSolderMaskMargin(FOOTPRINT self) -> std::optional< int >"""
20197 return _pcbnew.FOOTPRINT_GetLocalSolderMaskMargin(self)
20198
20199 def SetLocalSolderMaskMargin(self, aMargin):
20200 r"""SetLocalSolderMaskMargin(FOOTPRINT self, std::optional< int > aMargin)"""
20201 return _pcbnew.FOOTPRINT_SetLocalSolderMaskMargin(self, aMargin)
20202
20204 r"""GetLocalSolderPasteMargin(FOOTPRINT self) -> std::optional< int >"""
20205 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMargin(self)
20206
20207 def SetLocalSolderPasteMargin(self, aMargin):
20208 r"""SetLocalSolderPasteMargin(FOOTPRINT self, std::optional< int > aMargin)"""
20209 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMargin(self, aMargin)
20210
20212 r"""GetLocalSolderPasteMarginRatio(FOOTPRINT self) -> std::optional< double >"""
20213 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMarginRatio(self)
20214
20216 r"""SetLocalSolderPasteMarginRatio(FOOTPRINT self, std::optional< double > aRatio)"""
20217 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMarginRatio(self, aRatio)
20218
20219 def SetLocalZoneConnection(self, aType):
20220 r"""SetLocalZoneConnection(FOOTPRINT self, ZONE_CONNECTION aType)"""
20221 return _pcbnew.FOOTPRINT_SetLocalZoneConnection(self, aType)
20222
20224 r"""GetLocalZoneConnection(FOOTPRINT self) -> ZONE_CONNECTION"""
20225 return _pcbnew.FOOTPRINT_GetLocalZoneConnection(self)
20226
20227 def GetAttributes(self):
20228 r"""GetAttributes(FOOTPRINT self) -> int"""
20229 return _pcbnew.FOOTPRINT_GetAttributes(self)
20230
20231 def SetAttributes(self, aAttributes):
20232 r"""SetAttributes(FOOTPRINT self, int aAttributes)"""
20233 return _pcbnew.FOOTPRINT_SetAttributes(self, aAttributes)
20234
20235 def SetFlag(self, aFlag):
20236 r"""SetFlag(FOOTPRINT self, int aFlag)"""
20237 return _pcbnew.FOOTPRINT_SetFlag(self, aFlag)
20238
20239 def IncrementFlag(self):
20240 r"""IncrementFlag(FOOTPRINT self)"""
20241 return _pcbnew.FOOTPRINT_IncrementFlag(self)
20242
20243 def GetFlag(self):
20244 r"""GetFlag(FOOTPRINT self) -> int"""
20245 return _pcbnew.FOOTPRINT_GetFlag(self)
20246
20247 def IsNetTie(self):
20248 r"""IsNetTie(FOOTPRINT self) -> bool"""
20249 return _pcbnew.FOOTPRINT_IsNetTie(self)
20250
20251 def GetLocalClearance(self, *args):
20252 r"""
20253 GetLocalClearance(FOOTPRINT self) -> std::optional< int >
20254 GetLocalClearance(FOOTPRINT self, wxString aSource) -> std::optional< int >
20255 """
20256 return _pcbnew.FOOTPRINT_GetLocalClearance(self, *args)
20257
20258 def GetClearanceOverrides(self, aSource):
20259 r"""GetClearanceOverrides(FOOTPRINT self, wxString aSource) -> std::optional< int >"""
20260 return _pcbnew.FOOTPRINT_GetClearanceOverrides(self, aSource)
20261
20262 def GetZoneConnectionOverrides(self, aSource):
20263 r"""GetZoneConnectionOverrides(FOOTPRINT self, wxString aSource) -> ZONE_CONNECTION"""
20264 return _pcbnew.FOOTPRINT_GetZoneConnectionOverrides(self, aSource)
20265
20267 r"""GetNetTiePadGroups(FOOTPRINT self) -> std::vector< wxString,std::allocator< wxString > > const &"""
20268 return _pcbnew.FOOTPRINT_GetNetTiePadGroups(self)
20269
20271 r"""ClearNetTiePadGroups(FOOTPRINT self)"""
20272 return _pcbnew.FOOTPRINT_ClearNetTiePadGroups(self)
20273
20274 def AddNetTiePadGroup(self, aGroup):
20275 r"""AddNetTiePadGroup(FOOTPRINT self, wxString aGroup)"""
20276 return _pcbnew.FOOTPRINT_AddNetTiePadGroup(self, aGroup)
20277
20279 r"""MapPadNumbersToNetTieGroups(FOOTPRINT self) -> std::map< wxString,int,std::less< wxString >,std::allocator< std::pair< wxString const,int > > >"""
20280 return _pcbnew.FOOTPRINT_MapPadNumbersToNetTieGroups(self)
20281
20282 def GetNetTiePads(self, aPad):
20283 r"""GetNetTiePads(FOOTPRINT self, PAD aPad) -> PADS_VEC"""
20284 return _pcbnew.FOOTPRINT_GetNetTiePads(self, aPad)
20285
20287 r"""GetLikelyAttribute(FOOTPRINT self) -> int"""
20288 return _pcbnew.FOOTPRINT_GetLikelyAttribute(self)
20289
20290 def MoveAnchorPosition(self, aMoveVector):
20291 r"""MoveAnchorPosition(FOOTPRINT self, VECTOR2I aMoveVector)"""
20292 return _pcbnew.FOOTPRINT_MoveAnchorPosition(self, aMoveVector)
20293
20294 def IsFlipped(self):
20295 r"""IsFlipped(FOOTPRINT self) -> bool"""
20296 return _pcbnew.FOOTPRINT_IsFlipped(self)
20297
20298 def GetSide(self):
20299 r"""GetSide(FOOTPRINT self) -> PCB_LAYER_ID"""
20300 return _pcbnew.FOOTPRINT_GetSide(self)
20301
20302 def IsConflicting(self):
20303 r"""IsConflicting(FOOTPRINT self) -> bool"""
20304 return _pcbnew.FOOTPRINT_IsConflicting(self)
20305
20306 def IsPlaced(self):
20307 r"""IsPlaced(FOOTPRINT self) -> bool"""
20308 return _pcbnew.FOOTPRINT_IsPlaced(self)
20309
20310 def SetIsPlaced(self, isPlaced):
20311 r"""SetIsPlaced(FOOTPRINT self, bool isPlaced)"""
20312 return _pcbnew.FOOTPRINT_SetIsPlaced(self, isPlaced)
20313
20314 def NeedsPlaced(self):
20315 r"""NeedsPlaced(FOOTPRINT self) -> bool"""
20316 return _pcbnew.FOOTPRINT_NeedsPlaced(self)
20317
20318 def SetNeedsPlaced(self, needsPlaced):
20319 r"""SetNeedsPlaced(FOOTPRINT self, bool needsPlaced)"""
20320 return _pcbnew.FOOTPRINT_SetNeedsPlaced(self, needsPlaced)
20321
20323 r"""LegacyPadsLocked(FOOTPRINT self) -> bool"""
20324 return _pcbnew.FOOTPRINT_LegacyPadsLocked(self)
20325
20326 def CheckFootprintAttributes(self, aErrorHandler):
20327 r"""CheckFootprintAttributes(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
20328 return _pcbnew.FOOTPRINT_CheckFootprintAttributes(self, aErrorHandler)
20329
20330 def CheckPads(self, aUnitsProvider, aErrorHandler):
20331 r"""CheckPads(FOOTPRINT self, UNITS_PROVIDER aUnitsProvider, std::function< void (PAD const *,int,wxString const &) > const & aErrorHandler)"""
20332 return _pcbnew.FOOTPRINT_CheckPads(self, aUnitsProvider, aErrorHandler)
20333
20334 def CheckShortingPads(self, aErrorHandler):
20335 r"""CheckShortingPads(FOOTPRINT self, std::function< void (PAD const *,PAD const *,int,VECTOR2I const &) > const & aErrorHandler)"""
20336 return _pcbnew.FOOTPRINT_CheckShortingPads(self, aErrorHandler)
20337
20338 def CheckNetTies(self, aErrorHandler):
20339 r"""CheckNetTies(FOOTPRINT self, std::function< void (BOARD_ITEM const *,BOARD_ITEM const *,BOARD_ITEM const *,VECTOR2I const &) > const & aErrorHandler)"""
20340 return _pcbnew.FOOTPRINT_CheckNetTies(self, aErrorHandler)
20341
20342 def CheckNetTiePadGroups(self, aErrorHandler):
20343 r"""CheckNetTiePadGroups(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
20344 return _pcbnew.FOOTPRINT_CheckNetTiePadGroups(self, aErrorHandler)
20345
20347 r"""BuildNetTieCache(FOOTPRINT self)"""
20348 return _pcbnew.FOOTPRINT_BuildNetTieCache(self)
20349
20350 def GetNetTieCache(self, aItem):
20351 r"""GetNetTieCache(FOOTPRINT self, BOARD_ITEM aItem) -> std::set< int,std::less< int >,std::allocator< int > > const &"""
20352 return _pcbnew.FOOTPRINT_GetNetTieCache(self, aItem)
20353
20354 def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False, aSkipPlatedPads=False, aSkipNonPlatedPads=False):
20355 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)"""
20356 return _pcbnew.FOOTPRINT_TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper, aSkipPlatedPads, aSkipNonPlatedPads)
20357
20358 def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False):
20359 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)"""
20360 return _pcbnew.FOOTPRINT_TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText, aIncludeShapes, aIncludePrivateItems)
20361
20362 def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc):
20363 r"""TransformFPTextToPolySet(FOOTPRINT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc)"""
20364 return _pcbnew.FOOTPRINT_TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
20365
20366 def GetContextualTextVars(self, aVars):
20367 r"""GetContextualTextVars(FOOTPRINT self, wxArrayString * aVars)"""
20368 return _pcbnew.FOOTPRINT_GetContextualTextVars(self, aVars)
20369
20370 def ResolveTextVar(self, token, aDepth=0):
20371 r"""ResolveTextVar(FOOTPRINT self, wxString token, int aDepth=0) -> bool"""
20372 return _pcbnew.FOOTPRINT_ResolveTextVar(self, token, aDepth)
20373
20374 def HitTestAccurate(self, aPosition, aAccuracy=0):
20375 r"""HitTestAccurate(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool"""
20376 return _pcbnew.FOOTPRINT_HitTestAccurate(self, aPosition, aAccuracy)
20377
20378 def HitTest(self, *args):
20379 r"""
20380 HitTest(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool
20381 HitTest(FOOTPRINT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
20382 """
20383 return _pcbnew.FOOTPRINT_HitTest(self, *args)
20384
20385 def HitTestOnLayer(self, *args):
20386 r"""
20387 HitTestOnLayer(FOOTPRINT self, VECTOR2I aPosition, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
20388 HitTestOnLayer(FOOTPRINT self, BOX2I aRect, bool aContained, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
20389 """
20390 return _pcbnew.FOOTPRINT_HitTestOnLayer(self, *args)
20391
20392 def GetReference(self):
20393 r"""GetReference(FOOTPRINT self) -> wxString"""
20394 return _pcbnew.FOOTPRINT_GetReference(self)
20395
20396 def SetReference(self, aReference):
20397 r"""SetReference(FOOTPRINT self, wxString aReference)"""
20398 return _pcbnew.FOOTPRINT_SetReference(self, aReference)
20399
20401 r"""GetReferenceAsString(FOOTPRINT self) -> wxString"""
20402 return _pcbnew.FOOTPRINT_GetReferenceAsString(self)
20403
20404 def IncrementReference(self, aDelta):
20405 r"""IncrementReference(FOOTPRINT self, int aDelta)"""
20406 return _pcbnew.FOOTPRINT_IncrementReference(self, aDelta)
20407
20408 def GetValue(self):
20409 r"""GetValue(FOOTPRINT self) -> wxString"""
20410 return _pcbnew.FOOTPRINT_GetValue(self)
20411
20412 def SetValue(self, aValue):
20413 r"""SetValue(FOOTPRINT self, wxString aValue)"""
20414 return _pcbnew.FOOTPRINT_SetValue(self, aValue)
20415
20417 r"""GetValueAsString(FOOTPRINT self) -> wxString"""
20418 return _pcbnew.FOOTPRINT_GetValueAsString(self)
20419
20420 def Value(self, *args):
20421 r"""
20422 Value(FOOTPRINT self) -> PCB_FIELD
20423 Value(FOOTPRINT self) -> PCB_FIELD
20424 """
20425 return _pcbnew.FOOTPRINT_Value(self, *args)
20426
20427 def Reference(self, *args):
20428 r"""
20429 Reference(FOOTPRINT self) -> PCB_FIELD
20430 Reference(FOOTPRINT self) -> PCB_FIELD
20431 """
20432 return _pcbnew.FOOTPRINT_Reference(self, *args)
20433
20434 def GetField(self, *args):
20435 r"""
20436 GetField(FOOTPRINT self, MANDATORY_FIELD_T aFieldType) -> PCB_FIELD
20437 GetField(FOOTPRINT self, MANDATORY_FIELD_T aFieldNdx) -> PCB_FIELD
20438 """
20439 return _pcbnew.FOOTPRINT_GetField(self, *args)
20440
20441 def GetFieldById(self, aFieldId):
20442 r"""GetFieldById(FOOTPRINT self, int aFieldId) -> PCB_FIELD"""
20443 return _pcbnew.FOOTPRINT_GetFieldById(self, aFieldId)
20444
20445 def GetFieldByName(self, aFieldName):
20446 r"""GetFieldByName(FOOTPRINT self, wxString aFieldName) -> PCB_FIELD"""
20447 return _pcbnew.FOOTPRINT_GetFieldByName(self, aFieldName)
20448
20449 def HasFieldByName(self, aFieldName):
20450 r"""HasFieldByName(FOOTPRINT self, wxString aFieldName) -> bool"""
20451 return _pcbnew.FOOTPRINT_HasFieldByName(self, aFieldName)
20452
20453 def GetFieldText(self, aFieldName):
20454 r"""GetFieldText(FOOTPRINT self, wxString aFieldName) -> wxString"""
20455 return _pcbnew.FOOTPRINT_GetFieldText(self, aFieldName)
20456
20457 def GetFields(self, *args):
20458 r"""
20459 GetFields(FOOTPRINT self, std::vector< PCB_FIELD *,std::allocator< PCB_FIELD * > > & aVector, bool aVisibleOnly)
20460 GetFields(FOOTPRINT self) -> PCB_FIELDS
20461 GetFields(FOOTPRINT self) -> PCB_FIELDS
20462 """
20463 return _pcbnew.FOOTPRINT_GetFields(self, *args)
20464
20465 def AddField(self, aField):
20466 r"""AddField(FOOTPRINT self, PCB_FIELD aField) -> PCB_FIELD"""
20467 return _pcbnew.FOOTPRINT_AddField(self, aField)
20468
20469 def RemoveField(self, aFieldName):
20470 r"""RemoveField(FOOTPRINT self, wxString aFieldName)"""
20471 return _pcbnew.FOOTPRINT_RemoveField(self, aFieldName)
20472
20473 def GetFieldCount(self):
20474 r"""GetFieldCount(FOOTPRINT self) -> int"""
20475 return _pcbnew.FOOTPRINT_GetFieldCount(self)
20476
20477 def ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes):
20478 r"""ApplyDefaultSettings(FOOTPRINT self, BOARD board, bool aStyleFields, bool aStyleText, bool aStyleShapes)"""
20479 return _pcbnew.FOOTPRINT_ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes)
20480
20481 def IsBoardOnly(self):
20482 r"""IsBoardOnly(FOOTPRINT self) -> bool"""
20483 return _pcbnew.FOOTPRINT_IsBoardOnly(self)
20484
20485 def SetBoardOnly(self, aIsBoardOnly=True):
20486 r"""SetBoardOnly(FOOTPRINT self, bool aIsBoardOnly=True)"""
20487 return _pcbnew.FOOTPRINT_SetBoardOnly(self, aIsBoardOnly)
20488
20490 r"""IsExcludedFromPosFiles(FOOTPRINT self) -> bool"""
20491 return _pcbnew.FOOTPRINT_IsExcludedFromPosFiles(self)
20492
20493 def SetExcludedFromPosFiles(self, aExclude=True):
20494 r"""SetExcludedFromPosFiles(FOOTPRINT self, bool aExclude=True)"""
20495 return _pcbnew.FOOTPRINT_SetExcludedFromPosFiles(self, aExclude)
20496
20498 r"""IsExcludedFromBOM(FOOTPRINT self) -> bool"""
20499 return _pcbnew.FOOTPRINT_IsExcludedFromBOM(self)
20500
20501 def SetExcludedFromBOM(self, aExclude=True):
20502 r"""SetExcludedFromBOM(FOOTPRINT self, bool aExclude=True)"""
20503 return _pcbnew.FOOTPRINT_SetExcludedFromBOM(self, aExclude)
20504
20506 r"""AllowMissingCourtyard(FOOTPRINT self) -> bool"""
20507 return _pcbnew.FOOTPRINT_AllowMissingCourtyard(self)
20508
20509 def SetAllowMissingCourtyard(self, aAllow=True):
20510 r"""SetAllowMissingCourtyard(FOOTPRINT self, bool aAllow=True)"""
20511 return _pcbnew.FOOTPRINT_SetAllowMissingCourtyard(self, aAllow)
20512
20513 def IsDNP(self):
20514 r"""IsDNP(FOOTPRINT self) -> bool"""
20515 return _pcbnew.FOOTPRINT_IsDNP(self)
20516
20517 def SetDNP(self, aDNP=True):
20518 r"""SetDNP(FOOTPRINT self, bool aDNP=True)"""
20519 return _pcbnew.FOOTPRINT_SetDNP(self, aDNP)
20520
20521 def SetFileFormatVersionAtLoad(self, aVersion):
20522 r"""SetFileFormatVersionAtLoad(FOOTPRINT self, int aVersion)"""
20523 return _pcbnew.FOOTPRINT_SetFileFormatVersionAtLoad(self, aVersion)
20524
20526 r"""GetFileFormatVersionAtLoad(FOOTPRINT self) -> int"""
20527 return _pcbnew.FOOTPRINT_GetFileFormatVersionAtLoad(self)
20528
20529 def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None):
20530 r"""FindPadByNumber(FOOTPRINT self, wxString aPadNumber, PAD aSearchAfterMe=None) -> PAD"""
20531 return _pcbnew.FOOTPRINT_FindPadByNumber(self, aPadNumber, aSearchAfterMe)
20532
20533 def GetPad(self, *args):
20534 r"""GetPad(FOOTPRINT self, VECTOR2I aPosition, LSET aLayerMask=LSET::AllLayersMask()) -> PAD"""
20535 return _pcbnew.FOOTPRINT_GetPad(self, *args)
20536
20537 def GetPads(self, aPadNumber, aIgnore=None):
20538 r"""GetPads(FOOTPRINT self, wxString aPadNumber, PAD aIgnore=None) -> std::vector< PAD const *,std::allocator< PAD const * > >"""
20539 return _pcbnew.FOOTPRINT_GetPads(self, aPadNumber, aIgnore)
20540
20541 def GetPadCount(self, *args):
20542 r"""GetPadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
20543 return _pcbnew.FOOTPRINT_GetPadCount(self, *args)
20544
20545 def GetUniquePadCount(self, *args):
20546 r"""GetUniquePadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
20547 return _pcbnew.FOOTPRINT_GetUniquePadCount(self, *args)
20548
20549 def GetUniquePadNumbers(self, *args):
20550 r"""GetUniquePadNumbers(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> STRINGSET"""
20551 return _pcbnew.FOOTPRINT_GetUniquePadNumbers(self, *args)
20552
20553 def GetNextPadNumber(self, aLastPadName):
20554 r"""GetNextPadNumber(FOOTPRINT self, wxString aLastPadName) -> wxString"""
20555 return _pcbnew.FOOTPRINT_GetNextPadNumber(self, aLastPadName)
20556
20558 r"""AutoPositionFields(FOOTPRINT self)"""
20559 return _pcbnew.FOOTPRINT_AutoPositionFields(self)
20560
20561 def GetTypeName(self):
20562 r"""GetTypeName(FOOTPRINT self) -> wxString"""
20563 return _pcbnew.FOOTPRINT_GetTypeName(self)
20564
20565 def GetArea(self, aPadding=0):
20566 r"""GetArea(FOOTPRINT self, int aPadding=0) -> double"""
20567 return _pcbnew.FOOTPRINT_GetArea(self, aPadding)
20568
20569 def GetLink(self):
20570 r"""GetLink(FOOTPRINT self) -> KIID"""
20571 return _pcbnew.FOOTPRINT_GetLink(self)
20572
20573 def SetLink(self, aLink):
20574 r"""SetLink(FOOTPRINT self, KIID aLink)"""
20575 return _pcbnew.FOOTPRINT_SetLink(self, aLink)
20576
20577 def DuplicateItem(self, aItem, aAddToFootprint=False):
20578 r"""DuplicateItem(FOOTPRINT self, BOARD_ITEM aItem, bool aAddToFootprint=False) -> BOARD_ITEM"""
20579 return _pcbnew.FOOTPRINT_DuplicateItem(self, aItem, aAddToFootprint)
20580
20581 def Add3DModel(self, a3DModel):
20582 r"""Add3DModel(FOOTPRINT self, FP_3DMODEL a3DModel)"""
20583 return _pcbnew.FOOTPRINT_Add3DModel(self, a3DModel)
20584
20585 def RunOnDescendants(self, aFunction, aDepth=0):
20586 r"""RunOnDescendants(FOOTPRINT self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
20587 return _pcbnew.FOOTPRINT_RunOnDescendants(self, aFunction, aDepth)
20588
20589 def ViewGetLOD(self, aLayer, aView):
20590 r"""ViewGetLOD(FOOTPRINT self, int aLayer, KIGFX::VIEW * aView) -> double"""
20591 return _pcbnew.FOOTPRINT_ViewGetLOD(self, aLayer, aView)
20592
20593 @staticmethod
20594 def IsLibNameValid(aName):
20595 r"""IsLibNameValid(wxString aName) -> bool"""
20596 return _pcbnew.FOOTPRINT_IsLibNameValid(aName)
20597
20598 @staticmethod
20599 def StringLibNameInvalidChars(aUserReadable):
20600 r"""StringLibNameInvalidChars(bool aUserReadable) -> wxChar const *"""
20601 return _pcbnew.FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
20602
20603 def FootprintNeedsUpdate(self, aLibFP, aCompareFlags=0, aReporter=None):
20604 r"""FootprintNeedsUpdate(FOOTPRINT self, FOOTPRINT aLibFP, int aCompareFlags=0, REPORTER * aReporter=None) -> bool"""
20605 return _pcbnew.FOOTPRINT_FootprintNeedsUpdate(self, aLibFP, aCompareFlags, aReporter)
20606
20607 def SetInitialComments(self, aInitialComments):
20608 r"""SetInitialComments(FOOTPRINT self, wxArrayString * aInitialComments)"""
20609 return _pcbnew.FOOTPRINT_SetInitialComments(self, aInitialComments)
20610
20611 def CoverageRatio(self, aCollector):
20612 r"""CoverageRatio(FOOTPRINT self, GENERAL_COLLECTOR const & aCollector) -> double"""
20613 return _pcbnew.FOOTPRINT_CoverageRatio(self, aCollector)
20614
20615 @staticmethod
20616 def GetCoverageArea(aItem, aCollector):
20617 r"""GetCoverageArea(BOARD_ITEM aItem, GENERAL_COLLECTOR const & aCollector) -> double"""
20618 return _pcbnew.FOOTPRINT_GetCoverageArea(aItem, aCollector)
20619
20621 r"""GetInitialComments(FOOTPRINT self) -> wxArrayString const *"""
20622 return _pcbnew.FOOTPRINT_GetInitialComments(self)
20623
20624 def GetCourtyard(self, aLayer):
20625 r"""GetCourtyard(FOOTPRINT self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
20626 return _pcbnew.FOOTPRINT_GetCourtyard(self, aLayer)
20627
20628 def GetCachedCourtyard(self, aLayer):
20629 r"""GetCachedCourtyard(FOOTPRINT self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
20630 return _pcbnew.FOOTPRINT_GetCachedCourtyard(self, aLayer)
20631
20632 def BuildCourtyardCaches(self, aErrorHandler=None):
20633 r"""BuildCourtyardCaches(FOOTPRINT self, OUTLINE_ERROR_HANDLER * aErrorHandler=None)"""
20634 return _pcbnew.FOOTPRINT_BuildCourtyardCaches(self, aErrorHandler)
20635
20636 def GetEffectiveShape(self, *args):
20637 r"""GetEffectiveShape(FOOTPRINT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
20638 return _pcbnew.FOOTPRINT_GetEffectiveShape(self, *args)
20639
20640 def GetEmbeddedFiles(self, *args):
20641 r"""
20642 GetEmbeddedFiles(FOOTPRINT self) -> EMBEDDED_FILES
20643 GetEmbeddedFiles(FOOTPRINT self) -> EMBEDDED_FILES const *
20644 """
20645 return _pcbnew.FOOTPRINT_GetEmbeddedFiles(self, *args)
20646
20647 def EmbedFonts(self):
20648 r"""EmbedFonts(FOOTPRINT self)"""
20649 return _pcbnew.FOOTPRINT_EmbedFonts(self)
20650
20651 def SetComponentClass(self, aClass):
20652 r"""SetComponentClass(FOOTPRINT self, COMPONENT_CLASS const * aClass)"""
20653 return _pcbnew.FOOTPRINT_SetComponentClass(self, aClass)
20654
20656 r"""GetComponentClass(FOOTPRINT self) -> COMPONENT_CLASS const *"""
20657 return _pcbnew.FOOTPRINT_GetComponentClass(self)
20658
20660 r"""GetComponentClassAsString(FOOTPRINT self) -> wxString"""
20661 return _pcbnew.FOOTPRINT_GetComponentClassAsString(self)
20662
20663 def __eq__(self, *args):
20664 r"""
20665 __eq__(FOOTPRINT self, BOARD_ITEM aOther) -> bool
20666 __eq__(FOOTPRINT self, FOOTPRINT aOther) -> bool
20667 """
20668 return _pcbnew.FOOTPRINT___eq__(self, *args)
20669
20670
20671 #def SaveToLibrary(self,filename):
20672 # return SaveFootprintToLibrary(filename,self)
20673
20674 #
20675 # add function, clears the thisown to avoid python from deleting
20676 # the object in the garbage collector
20677 #
20678
20679 def GetFieldsText(self):
20680 """ Returns footprint fields name to text map. """
20681 fields = self.GetFields()
20682 return {str(field.GetName()): str(field.GetText()) for field in fields}
20683
20685 """ Returns footprint fields name to shown text map. """
20686 fields = self.GetFields()
20687 return {str(field.GetName()): str(field.GetShownText(False)) for field in fields}
20688
20689 def GetFieldText(self, key):
20690 """ Returns Field text with a given key if it exists, throws KeyError otherwise. """
20691 if self.HasFieldByName(key):
20692 return self.GetFieldByName(key).GetText()
20693 else:
20694 raise KeyError("Field not found: " + key)
20695
20696 def GetFieldShownText(self, key):
20697 """ Returns Field shown text with a given key if it exists, throws KeyError otherwise. """
20698 if self.HasFieldByName(key):
20699 return self.GetFieldByName(key).GetShownText(False)
20700 else:
20701 raise KeyError("Field not found: " + key)
20702
20703 def SetField(self, key, value):
20704 if self.HasFieldByName(key):
20705 self.GetFieldByName(key).SetText(value)
20706 else:
20707 field = PCB_FIELD(self, self.GetFieldCount(), key)
20708 field.SetText(value)
20709 self.AddField(field)
20710
20711 def HasField(self, key):
20712 return self.HasFieldByName(key)
20713
20714 def SetFields(self, fields):
20715 """ Sets footprint fields map. """
20716 for k, v in fields.items():
20717 self.SetField(k, v)
20718
20719
20720 def GetBoundingBox(self, *args):
20721 r"""
20722 GetBoundingBox(FOOTPRINT self) -> BOX2I
20723 GetBoundingBox(FOOTPRINT self, bool aIncludeText) -> BOX2I
20724 GetBoundingBox(FOOTPRINT self, bool aIncludeText, bool includeHiddenText) -> BOX2I
20725 """
20726 return _pcbnew.FOOTPRINT_GetBoundingBox(self, *args)
20727
20728# Register FOOTPRINT in _pcbnew:
20729_pcbnew.FOOTPRINT_swigregister(FOOTPRINT)
20730FP_is_LOCKED = _pcbnew.FP_is_LOCKED
20731
20732FP_is_PLACED = _pcbnew.FP_is_PLACED
20733
20734FP_to_PLACE = _pcbnew.FP_to_PLACE
20735
20736FP_PADS_are_LOCKED = _pcbnew.FP_PADS_are_LOCKED
20737
20738
20740 r"""Proxy of C++ FOOTPRINT::cmp_drawings class."""
20741
20742 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
20743 __repr__ = _swig_repr
20744
20745 def __call__(self, itemA, itemB):
20746 r"""__call__(cmp_drawings self, BOARD_ITEM itemA, BOARD_ITEM itemB) -> bool"""
20747 return _pcbnew.cmp_drawings___call__(self, itemA, itemB)
20748
20749 def __init__(self):
20750 r"""__init__(cmp_drawings self) -> cmp_drawings"""
20751 _pcbnew.cmp_drawings_swiginit(self, _pcbnew.new_cmp_drawings())
20752 __swig_destroy__ = _pcbnew.delete_cmp_drawings
20753
20754# Register cmp_drawings in _pcbnew:
20755_pcbnew.cmp_drawings_swigregister(cmp_drawings)
20757 r"""Proxy of C++ FOOTPRINT::cmp_pads class."""
20758
20759 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
20760 __repr__ = _swig_repr
20761
20762 def __call__(self, aFirst, aSecond):
20763 r"""__call__(cmp_pads self, PAD aFirst, PAD aSecond) -> bool"""
20764 return _pcbnew.cmp_pads___call__(self, aFirst, aSecond)
20765
20766 def __init__(self):
20767 r"""__init__(cmp_pads self) -> cmp_pads"""
20768 _pcbnew.cmp_pads_swiginit(self, _pcbnew.new_cmp_pads())
20769 __swig_destroy__ = _pcbnew.delete_cmp_pads
20770
20771# Register cmp_pads in _pcbnew:
20772_pcbnew.cmp_pads_swigregister(cmp_pads)
20774 r"""Proxy of C++ FOOTPRINT::cmp_zones class."""
20775
20776 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
20777 __repr__ = _swig_repr
20778
20779 def __call__(self, aFirst, aSecond):
20780 r"""__call__(cmp_zones self, ZONE aFirst, ZONE aSecond) -> bool"""
20781 return _pcbnew.cmp_zones___call__(self, aFirst, aSecond)
20782
20783 def __init__(self):
20784 r"""__init__(cmp_zones self) -> cmp_zones"""
20785 _pcbnew.cmp_zones_swiginit(self, _pcbnew.new_cmp_zones())
20786 __swig_destroy__ = _pcbnew.delete_cmp_zones
20787
20788# Register cmp_zones in _pcbnew:
20789_pcbnew.cmp_zones_swigregister(cmp_zones)
20791 r"""Proxy of C++ std::vector< FP_3DMODEL > class."""
20792
20793 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
20794 __repr__ = _swig_repr
20795
20796 def iterator(self):
20797 r"""iterator(VECTOR_FP_3DMODEL self) -> SwigPyIterator"""
20798 return _pcbnew.VECTOR_FP_3DMODEL_iterator(self)
20799 def __iter__(self):
20800 return self.iterator()
20801
20802 def __nonzero__(self):
20803 r"""__nonzero__(VECTOR_FP_3DMODEL self) -> bool"""
20804 return _pcbnew.VECTOR_FP_3DMODEL___nonzero__(self)
20805
20806 def __bool__(self):
20807 r"""__bool__(VECTOR_FP_3DMODEL self) -> bool"""
20808 return _pcbnew.VECTOR_FP_3DMODEL___bool__(self)
20809
20810 def __len__(self):
20811 r"""__len__(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
20812 return _pcbnew.VECTOR_FP_3DMODEL___len__(self)
20813
20814 def __getslice__(self, i, j):
20815 r"""__getslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j) -> VECTOR_FP_3DMODEL"""
20816 return _pcbnew.VECTOR_FP_3DMODEL___getslice__(self, i, j)
20817
20818 def __setslice__(self, *args):
20819 r"""
20820 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)
20821 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j, VECTOR_FP_3DMODEL v)
20822 """
20823 return _pcbnew.VECTOR_FP_3DMODEL___setslice__(self, *args)
20824
20825 def __delslice__(self, i, j):
20826 r"""__delslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)"""
20827 return _pcbnew.VECTOR_FP_3DMODEL___delslice__(self, i, j)
20828
20829 def __delitem__(self, *args):
20830 r"""
20831 __delitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i)
20832 __delitem__(VECTOR_FP_3DMODEL self, SWIGPY_SLICEOBJECT * slice)
20833 """
20834 return _pcbnew.VECTOR_FP_3DMODEL___delitem__(self, *args)
20835
20836 def __getitem__(self, *args):
20837 r"""
20838 __getitem__(VECTOR_FP_3DMODEL self, SWIGPY_SLICEOBJECT * slice) -> VECTOR_FP_3DMODEL
20839 __getitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i) -> FP_3DMODEL
20840 """
20841 return _pcbnew.VECTOR_FP_3DMODEL___getitem__(self, *args)
20842
20843 def __setitem__(self, *args):
20844 r"""
20845 __setitem__(VECTOR_FP_3DMODEL self, SWIGPY_SLICEOBJECT * slice, VECTOR_FP_3DMODEL v)
20846 __setitem__(VECTOR_FP_3DMODEL self, SWIGPY_SLICEOBJECT * slice)
20847 __setitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, FP_3DMODEL x)
20848 """
20849 return _pcbnew.VECTOR_FP_3DMODEL___setitem__(self, *args)
20850
20851 def pop(self):
20852 r"""pop(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
20853 return _pcbnew.VECTOR_FP_3DMODEL_pop(self)
20854
20855 def append(self, x):
20856 r"""append(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
20857 return _pcbnew.VECTOR_FP_3DMODEL_append(self, x)
20858
20859 def empty(self):
20860 r"""empty(VECTOR_FP_3DMODEL self) -> bool"""
20861 return _pcbnew.VECTOR_FP_3DMODEL_empty(self)
20862
20863 def size(self):
20864 r"""size(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
20865 return _pcbnew.VECTOR_FP_3DMODEL_size(self)
20866
20867 def swap(self, v):
20868 r"""swap(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL v)"""
20869 return _pcbnew.VECTOR_FP_3DMODEL_swap(self, v)
20870
20871 def begin(self):
20872 r"""begin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
20873 return _pcbnew.VECTOR_FP_3DMODEL_begin(self)
20874
20875 def end(self):
20876 r"""end(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
20877 return _pcbnew.VECTOR_FP_3DMODEL_end(self)
20878
20879 def rbegin(self):
20880 r"""rbegin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
20881 return _pcbnew.VECTOR_FP_3DMODEL_rbegin(self)
20882
20883 def rend(self):
20884 r"""rend(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
20885 return _pcbnew.VECTOR_FP_3DMODEL_rend(self)
20886
20887 def clear(self):
20888 r"""clear(VECTOR_FP_3DMODEL self)"""
20889 return _pcbnew.VECTOR_FP_3DMODEL_clear(self)
20890
20891 def get_allocator(self):
20892 r"""get_allocator(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::allocator_type"""
20893 return _pcbnew.VECTOR_FP_3DMODEL_get_allocator(self)
20894
20895 def pop_back(self):
20896 r"""pop_back(VECTOR_FP_3DMODEL self)"""
20897 return _pcbnew.VECTOR_FP_3DMODEL_pop_back(self)
20898
20899 def erase(self, *args):
20900 r"""
20901 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos) -> std::vector< FP_3DMODEL >::iterator
20902 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator first, std::vector< FP_3DMODEL >::iterator last) -> std::vector< FP_3DMODEL >::iterator
20903 """
20904 return _pcbnew.VECTOR_FP_3DMODEL_erase(self, *args)
20905
20906 def __init__(self, *args):
20907 r"""
20908 __init__(VECTOR_FP_3DMODEL self) -> VECTOR_FP_3DMODEL
20909 __init__(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL other) -> VECTOR_FP_3DMODEL
20910 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size) -> VECTOR_FP_3DMODEL
20911 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size, FP_3DMODEL value) -> VECTOR_FP_3DMODEL
20912 """
20913 _pcbnew.VECTOR_FP_3DMODEL_swiginit(self, _pcbnew.new_VECTOR_FP_3DMODEL(*args))
20914
20915 def push_back(self, x):
20916 r"""push_back(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
20917 return _pcbnew.VECTOR_FP_3DMODEL_push_back(self, x)
20918
20919 def front(self):
20920 r"""front(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
20921 return _pcbnew.VECTOR_FP_3DMODEL_front(self)
20922
20923 def back(self):
20924 r"""back(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
20925 return _pcbnew.VECTOR_FP_3DMODEL_back(self)
20926
20927 def assign(self, n, x):
20928 r"""assign(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)"""
20929 return _pcbnew.VECTOR_FP_3DMODEL_assign(self, n, x)
20930
20931 def resize(self, *args):
20932 r"""
20933 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size)
20934 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size, FP_3DMODEL x)
20935 """
20936 return _pcbnew.VECTOR_FP_3DMODEL_resize(self, *args)
20937
20938 def insert(self, *args):
20939 r"""
20940 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, FP_3DMODEL x) -> std::vector< FP_3DMODEL >::iterator
20941 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)
20942 """
20943 return _pcbnew.VECTOR_FP_3DMODEL_insert(self, *args)
20944
20945 def reserve(self, n):
20946 r"""reserve(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n)"""
20947 return _pcbnew.VECTOR_FP_3DMODEL_reserve(self, n)
20948
20949 def capacity(self):
20950 r"""capacity(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
20951 return _pcbnew.VECTOR_FP_3DMODEL_capacity(self)
20952 __swig_destroy__ = _pcbnew.delete_VECTOR_FP_3DMODEL
20953
20954# Register VECTOR_FP_3DMODEL in _pcbnew:
20955_pcbnew.VECTOR_FP_3DMODEL_swigregister(VECTOR_FP_3DMODEL)
20956
20957def GetPluginForPath(libname):
20958 plugin_type = PCB_IO_MGR.GuessPluginTypeFromLibPath( libname );
20959 return PCB_IO_MGR.PluginFind(plugin_type)
20960
20962 plug = GetPluginForPath(libname)
20963 return plug.FootprintEnumerate(libname)
20964
20965def FootprintLoad(libname,name,preserveUUID=False):
20966 plug = GetPluginForPath(libname)
20967 return plug.FootprintLoad(libname,name,preserveUUID)
20968
20969def FootprintSave(libname,module):
20970 plug = GetPluginForPath(libname)
20971 return plug.FootprintSave(libname,module)
20972
20973def FootprintDelete(libname,name):
20974 plug = GetPluginForPath(libname)
20975 plug.FootprintDelete(libname,name)
20976
20978 plug = GetPluginForPath(libname)
20979 plug.CreateLibrary(libname)
20980
20982 plug = GetPluginForPath(libname)
20983 plug.DeleteLibrary(libname)
20984
20986 plug = GetPluginForPath(libname)
20987 plug.FootprintLibIsWritable(libname)
20988
20990 r"""Proxy of C++ PYTHON_FOOTPRINT_WIZARD_LIST class."""
20991
20992 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
20993 __repr__ = _swig_repr
20994
20995 @staticmethod
20996 def register_wizard(wizard):
20997 r"""register_wizard(PyObject * wizard)"""
20998 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
20999
21000 @staticmethod
21002 r"""deregister_wizard(PyObject * wizard)"""
21003 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
21004
21005 def __init__(self):
21006 r"""__init__(PYTHON_FOOTPRINT_WIZARD_LIST self) -> PYTHON_FOOTPRINT_WIZARD_LIST"""
21007 _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swiginit(self, _pcbnew.new_PYTHON_FOOTPRINT_WIZARD_LIST())
21008 __swig_destroy__ = _pcbnew.delete_PYTHON_FOOTPRINT_WIZARD_LIST
21009
21010# Register PYTHON_FOOTPRINT_WIZARD_LIST in _pcbnew:
21011_pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swigregister(PYTHON_FOOTPRINT_WIZARD_LIST)
21013 r"""Proxy of C++ PYTHON_ACTION_PLUGINS class."""
21014
21015 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
21016 __repr__ = _swig_repr
21017
21018 @staticmethod
21019 def register_action(wizard):
21020 r"""register_action(PyObject * wizard)"""
21021 return _pcbnew.PYTHON_ACTION_PLUGINS_register_action(wizard)
21022
21023 @staticmethod
21025 r"""deregister_action(PyObject * wizard)"""
21026 return _pcbnew.PYTHON_ACTION_PLUGINS_deregister_action(wizard)
21027
21028 def __init__(self):
21029 r"""__init__(PYTHON_ACTION_PLUGINS self) -> PYTHON_ACTION_PLUGINS"""
21030 _pcbnew.PYTHON_ACTION_PLUGINS_swiginit(self, _pcbnew.new_PYTHON_ACTION_PLUGINS())
21031 __swig_destroy__ = _pcbnew.delete_PYTHON_ACTION_PLUGINS
21032
21033# Register PYTHON_ACTION_PLUGINS in _pcbnew:
21034_pcbnew.PYTHON_ACTION_PLUGINS_swigregister(PYTHON_ACTION_PLUGINS)
21035
21036def ToMM(iu):
21037 if type(iu) in [int,float]:
21038 return float(iu) / float(pcbIUScale.IU_PER_MM)
21039 elif type(iu) in [wxPoint,wxSize,VECTOR2I,VECTOR2L]:
21040 return tuple(map(ToMM,iu))
21041 else:
21042 raise TypeError("ToMM() expects int, float, wxPoint, wxSize, VECTOR2I or VECTOR2L, instead got type " + str(type(iu)))
21043
21044def FromMM(mm):
21045 if type(mm) in [int,float]:
21046 return int(float(mm) * float(pcbIUScale.IU_PER_MM))
21047 elif type(mm) in [wxPoint,wxSize,VECTOR2I,VECTOR2L]:
21048 return tuple(map(FromMM,mm))
21049 else:
21050 raise TypeError("FromMM() expects int, float, wxPoint, wxSize, VECTOR2I or VECTOR2L, instead got type " + str(type(mm)))
21051
21052def ToMils(iu):
21053 if type(iu) in [int,float]:
21054 return float(iu) / float(pcbIUScale.IU_PER_MILS)
21055 elif type(iu) in [wxPoint,wxSize,VECTOR2I,VECTOR2L]:
21056 return tuple(map(ToMils,iu))
21057 else:
21058 raise TypeError("ToMils() expects int, float, wxPoint, wxSize, VECTOR2I or VECTOR2L, instead got type " + str(type(iu)))
21059
21060def FromMils(mils):
21061 if type(mils) in [int,float]:
21062 return int(float(mils)*float(pcbIUScale.IU_PER_MILS))
21063 elif type(mils) in [wxPoint,wxSize,VECTOR2I,VECTOR2L]:
21064 return tuple(map(FromMils,mils))
21065 else:
21066 raise TypeError("FromMils() expects int, float, wxPoint, wxSize, VECTOR2I or VECTOR2L, instead got type " + str(type(mils)))
21067
21068def PutOnGridMM(value, gridSizeMM):
21069 thresh = FromMM(gridSizeMM)
21070 return round(value/thresh)*thresh
21071
21072def PutOnGridMils(value, gridSizeMils):
21073 thresh = FromMils(gridSizeMils)
21074 return round(value/thresh)*thresh
21075
21076def wxSizeMM(mmx,mmy):
21077 return wxSize(FromMM(mmx),FromMM(mmy))
21078
21079def wxSizeMils(mmx,mmy):
21080 return wxSize(FromMils(mmx),FromMils(mmy))
21081
21082def wxPointMM(mmx,mmy):
21083 return wxPoint(FromMM(mmx),FromMM(mmy))
21084
21085def wxPointMils(mmx,mmy):
21086 return wxPoint(FromMils(mmx),FromMils(mmy))
21087
21088def VECTOR2I_MM(mmx,mmy):
21089 return VECTOR2I(FromMM(mmx),FromMM(mmy))
21090
21091def VECTOR2I_Mils(mmx,mmy):
21092 return VECTOR2I(FromMils(mmx),FromMils(mmy))
21093
21094def wxRectMM(x,y,wx,wy):
21095 x = int(FromMM(x))
21096 y = int(FromMM(y))
21097 wx = int(FromMM(wx))
21098 wy = int (FromMM(wy))
21099 return wxRect(x,y,wx,wy)
21100
21101def wxRectMils(x,y,wx,wy):
21102 x = int(FromMils(x))
21103 y = int(FromMils(y))
21104 wx = int(FromMils(wx))
21105 wy = int(FromMils(wy))
21106 return wxRect(x,y,wx,wy)
21107
21108
21110 """Return the semantic version of KiCad"""
21111 return GetSemanticVersion()
21112
21114 """Return the full, git-based version of KiCad"""
21115 return GetBuildVersion()
21116
21117
def __init__(self)
Definition: pcbnew.py:15652
def Run(self)
Definition: pcbnew.py:4649
def GetShowToolbarButton(self)
Definition: pcbnew.py:4640
def GetIconFileName(self, dark)
Definition: pcbnew.py:4643
def GetCategoryName(self)
Definition: pcbnew.py:4634
def GetDescription(self)
Definition: pcbnew.py:4637
def GetName(self)
Definition: pcbnew.py:4631
def __init__(self)
Definition: pcbnew.py:4616
def defaults(self)
Definition: pcbnew.py:4623
def GetClassName(self)
Definition: pcbnew.py:4628
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:7564
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:10373
def SetTeardropsEnabled(self, aEnable)
Definition: pcbnew.py:10415
def SetTeardropBestWidthRatio(self, aRatio)
Definition: pcbnew.py:10439
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:10329
def SetLocalRatsnestVisible(self, aVisible)
Definition: pcbnew.py:10400
def SetTeardropMaxTrackWidth(self, aRatio)
Definition: pcbnew.py:10479
def GetTeardropAllowSpanTwoTracks(self)
Definition: pcbnew.py:10475
def GetTeardropMaxLength(self)
Definition: pcbnew.py:10435
def GetNetClassVariableSubstitutionName(self)
Definition: pcbnew.py:10396
def GetTeardropParams(self, *args)
Definition: pcbnew.py:10408
def GetTeardropBestWidthRatio(self)
Definition: pcbnew.py:10443
def GetClearanceOverrides(self, aSource)
Definition: pcbnew.py:10377
def SetNetCode(self, *args)
Definition: pcbnew.py:10350
def SetTeardropCurved(self, aCurve)
Definition: pcbnew.py:10455
def GetTeardropMaxTrackWidth(self)
Definition: pcbnew.py:10483
def SetTeardropAllowSpanTwoTracks(self, aAllow)
Definition: pcbnew.py:10471
def GetLocalClearance(self, *args)
Definition: pcbnew.py:10381
def SetTeardropMaxWidth(self, aMaxWidth)
Definition: pcbnew.py:10447
def GetLocalRatsnestVisible(self)
Definition: pcbnew.py:10404
def SetTeardropBestLengthRatio(self, aRatio)
Definition: pcbnew.py:10423
def GetTeardropBestLengthRatio(self)
Definition: pcbnew.py:10427
def GetTeardropPreferZoneConnections(self)
Definition: pcbnew.py:10467
def GetEffectiveNetClass(self)
Definition: pcbnew.py:10388
def SetNet(self, aNetInfo)
Definition: pcbnew.py:10342
def SetTeardropPreferZoneConnections(self, aPrefer)
Definition: pcbnew.py:10463
def SetTeardropMaxLength(self, aMaxLength)
Definition: pcbnew.py:10431
def SetAuxOrigin(self, aOrigin)
Definition: pcbnew.py:11078
def IsLayerEnabled(self, aLayerId)
Definition: pcbnew.py:11026
def GetCustomDiffPairWidth(self)
Definition: pcbnew.py:10979
def GetLineThickness(self, aLayer)
Definition: pcbnew.py:11054
def GetTextSize(self, aLayer)
Definition: pcbnew.py:11058
def SetEnabledLayers(self, aMask)
Definition: pcbnew.py:11022
def SetDefaultZoneSettings(self, aSettings)
Definition: pcbnew.py:10880
def UseCustomDiffPairDimensions(self, *args)
Definition: pcbnew.py:10999
def SetCustomDiffPairGap(self, aGap)
Definition: pcbnew.py:10983
def GetLayerClass(self, aLayer)
Definition: pcbnew.py:11074
def LoadFromFile(self, *args)
Definition: pcbnew.py:10853
def GetCurrentDiffPairWidth(self)
Definition: pcbnew.py:11006
def SetBoardThickness(self, aThickness)
Definition: pcbnew.py:11042
def GetSeverity(self, aDRCErrorCode)
Definition: pcbnew.py:10868
def GetHolePlatingThickness(self)
Definition: pcbnew.py:11050
def GetBiggestClearanceValue(self)
Definition: pcbnew.py:10900
def Ignore(self, aDRCErrorCode)
Definition: pcbnew.py:10872
def CloneFrom(self, aOther)
Definition: pcbnew.py:11157
def SetCustomTrackWidth(self, aWidth)
Definition: pcbnew.py:10920
def SetDiffPairIndex(self, aIndex)
Definition: pcbnew.py:10971
def GetTextUpright(self, aLayer)
Definition: pcbnew.py:11070
def GetStackupDescriptor(self, *args)
Definition: pcbnew.py:10857
def GetCurrentNetClassName(self)
Definition: pcbnew.py:10884
def __eq__(self, aOther)
Definition: pcbnew.py:10838
def GetDefaultZoneSettings(self)
Definition: pcbnew.py:10876
def UseCustomTrackViaSize(self, *args)
Definition: pcbnew.py:10960
def SetViaSizeIndex(self, aIndex)
Definition: pcbnew.py:10932
def __ne__(self, aOther)
Definition: pcbnew.py:10842
def GetCustomDiffPairViaGap(self)
Definition: pcbnew.py:10995
def SetCustomViaSize(self, aSize)
Definition: pcbnew.py:10940
def SetGridOrigin(self, aOrigin)
Definition: pcbnew.py:11086
def SetCustomViaDrill(self, aDrill)
Definition: pcbnew.py:10952
def GetSmallestClearanceValue(self)
Definition: pcbnew.py:10904
def GetTextItalic(self, aLayer)
Definition: pcbnew.py:11066
def GetCurrentDiffPairViaGap(self)
Definition: pcbnew.py:11014
def SetCopperLayerCount(self, aNewLayerCount)
Definition: pcbnew.py:11034
def __init__(self, *args)
Definition: pcbnew.py:10846
def GetTextThickness(self, aLayer)
Definition: pcbnew.py:11062
def SetCustomDiffPairWidth(self, aWidth)
Definition: pcbnew.py:10975
def SetTrackWidthIndex(self, aIndex)
Definition: pcbnew.py:10912
def SetCustomDiffPairViaGap(self, aGap)
Definition: pcbnew.py:10991
def Delete(self, item)
Definition: pcbnew.py:10310
def DeleteNative(self, aItem)
Definition: pcbnew.py:10286
def Remove(self, item)
Definition: pcbnew.py:10300
def RemoveNative(self, *args)
Definition: pcbnew.py:10282
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:10274
def Add(self, item)
Definition: pcbnew.py:10290
def AddNative(self, *args)
Definition: pcbnew.py:10278
def IsOnLayer(self, aLayer)
Definition: pcbnew.py:9882
def GetLayer(self)
Definition: pcbnew.py:9842
def IsKnockout(self)
Definition: pcbnew.py:9886
def IsConnected(self)
Definition: pcbnew.py:9766
def SetIsKnockout(self, aKnockout)
Definition: pcbnew.py:9890
def Move(self, aMoveVector)
Definition: pcbnew.py:9910
def SetStartEnd(self, start, end)
Definition: pcbnew.py:10014
def SetParentGroup(self, aGroup)
Definition: pcbnew.py:9738
def SetFPRelativePosition(self, aPos)
Definition: pcbnew.py:9822
def BoardCopperLayerCount(self)
Definition: pcbnew.py:9850
def GetParent(self)
Definition: pcbnew.py:9810
def StyleFromSettings(self, settings)
Definition: pcbnew.py:9902
def SetStroke(self, aStroke)
Definition: pcbnew.py:9834
def GetFontMetrics(self)
Definition: pcbnew.py:9838
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9733
def HasDrilledHole(self)
Definition: pcbnew.py:9786
def GetParentGroup(self)
Definition: pcbnew.py:9742
def Rotate(self, aRotCentre, aAngle)
Definition: pcbnew.py:9914
def GetLayerSet(self)
Definition: pcbnew.py:9858
def Cast(self)
Definition: pcbnew.py:9955
def Flip(self, aCentre, aFlipDirection)
Definition: pcbnew.py:9918
def NormalizeForCompare(self)
Definition: pcbnew.py:9930
def SetLayer(self, aLayer)
Definition: pcbnew.py:9870
def SetLayerSet(self, aLayers)
Definition: pcbnew.py:9862
def GetCenter(self)
Definition: pcbnew.py:9754
def SwapItemData(self, aImage)
Definition: pcbnew.py:9878
def GetEffectiveHoleShape(self)
Definition: pcbnew.py:9798
def GetStroke(self)
Definition: pcbnew.py:9830
def IsOnCopperLayer(self)
Definition: pcbnew.py:9778
def Similarity(self, aItem)
Definition: pcbnew.py:9770
def GetY(self)
Definition: pcbnew.py:9750
def GetX(self)
Definition: pcbnew.py:9746
def SetX(self, aX)
Definition: pcbnew.py:9758
def IsLocked(self)
Definition: pcbnew.py:9894
def BoardLayerSet(self)
Definition: pcbnew.py:9854
def GetParentAsString(self)
Definition: pcbnew.py:9941
def DeleteStructure(self)
Definition: pcbnew.py:9906
def GetFPRelativePosition(self)
Definition: pcbnew.py:9818
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:9794
def Normalize(self)
Definition: pcbnew.py:9926
def HasLineStroke(self)
Definition: pcbnew.py:9826
def RunOnChildren(self, aFunction)
Definition: pcbnew.py:9802
def GetLayerName(self)
Definition: pcbnew.py:9945
def GetParentFootprint(self)
Definition: pcbnew.py:9814
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:9806
def Mirror(self, aCentre, aFlipDirection)
Definition: pcbnew.py:9922
def Duplicate(self)
Definition: pcbnew.py:9874
def SetLocked(self, aLocked)
Definition: pcbnew.py:9898
def HasHole(self)
Definition: pcbnew.py:9782
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:9949
def IsTented(self, aLayer)
Definition: pcbnew.py:9790
def SetY(self, aY)
Definition: pcbnew.py:9762
def BoardLayerCount(self)
Definition: pcbnew.py:9846
def IsSideSpecific(self)
Definition: pcbnew.py:9866
def __eq__(self, aItem)
Definition: pcbnew.py:9774
def SetPos(self, p)
Definition: pcbnew.py:10010
def OnBoardHighlightNetChanged(self, aBoard)
Definition: pcbnew.py:19107
def OnBoardItemAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:19079
def OnBoardRatsnestChanged(self, aBoard)
Definition: pcbnew.py:19111
def OnBoardItemChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:19099
def OnBoardCompositeUpdate(self, aBoard, aAddedItems, aRemovedItems, aDeletedItems)
Definition: pcbnew.py:19115
def OnBoardNetSettingsChanged(self, aBoard)
Definition: pcbnew.py:19095
def __init__(self)
Definition: pcbnew.py:19119
def OnBoardItemsAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:19083
def OnBoardItemRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:19087
def OnBoardItemsChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:19103
def OnBoardItemsRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:19091
def DeleteMARKERs(self, *args)
Definition: pcbnew.py:19320
def RemoveListener(self, aListener)
Definition: pcbnew.py:19671
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:19221
def IsHighLightNetON(self)
Definition: pcbnew.py:19363
def IsFootprintLayerVisible(self, aLayer)
Definition: pcbnew.py:19439
def GetEmbeddedFiles(self, *args)
Definition: pcbnew.py:19715
def GetNetsByNetcode(self)
Definition: pcbnew.py:19769
def BuildListOfNets(self)
Definition: pcbnew.py:19543
def GetPadFast(self, aPosition, aLayerMask)
Definition: pcbnew.py:19626
def SetLayerDescr(self, aIndex, aLayer)
Definition: pcbnew.py:19523
def GetLayerName(self, aLayer)
Definition: pcbnew.py:19510
def GetPad(self, *args)
Definition: pcbnew.py:19630
def GetComponentClassManager(self)
Definition: pcbnew.py:19726
def Footprints(self)
Definition: pcbnew.py:19171
def GetLayerType(self, aLayer)
Definition: pcbnew.py:19527
def SetCopperLayerCount(self, aCount)
Definition: pcbnew.py:19379
def RemoveAllListeners(self)
Definition: pcbnew.py:19675
def GetCopperLayerCount(self)
Definition: pcbnew.py:19375
def LayerDepth(self, aStartLayer, aEndLayer)
Definition: pcbnew.py:19391
def GetTracks(self)
Definition: pcbnew.py:19746
def GetPads(self)
Definition: pcbnew.py:19539
def FillItemMap(self, aMap)
Definition: pcbnew.py:19300
def GetPageSettings(self)
Definition: pcbnew.py:19451
def SetProject(self, aProject, aReferenceOnly=False)
Definition: pcbnew.py:19331
def RecordDRCExclusions(self)
Definition: pcbnew.py:19343
def GetFileName(self)
Definition: pcbnew.py:19167
def GroupsSanityCheck(self, repair=False)
Definition: pcbnew.py:19695
def TestZoneIntersection(self, aZone1, aZone2)
Definition: pcbnew.py:19622
def ResetNetHighLight(self)
Definition: pcbnew.py:19351
def Save(self, filename)
Definition: pcbnew.py:19748
def SetOutlinesChainingEpsilon(self, aValue)
Definition: pcbnew.py:19498
def RemoveNative(self, *args)
Definition: pcbnew.py:19259
def GetAllNetClasses(self)
Definition: pcbnew.py:19782
def GetFirstFootprint(self)
Definition: pcbnew.py:19288
def GetOutlinesChainingEpsilon(self)
Definition: pcbnew.py:19494
def ResolveTextVar(self, token, aDepth)
Definition: pcbnew.py:19225
def SetHighLightNet(self, aNetCode, aMulti=False)
Definition: pcbnew.py:19359
def ComputeBoundingBox(self, aBoardEdgesOnly=False)
Definition: pcbnew.py:19574
def RemoveAll(self, *args)
Definition: pcbnew.py:19263
def UpdateRatsnestExclusions(self)
Definition: pcbnew.py:19347
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:19134
def GroupsSanityCheckInternal(self, repair)
Definition: pcbnew.py:19699
def Zones(self)
Definition: pcbnew.py:19175
def OnItemsChanged(self, aItems)
Definition: pcbnew.py:19683
def FixupEmbeddedData(self)
Definition: pcbnew.py:19280
def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False)
Definition: pcbnew.py:19651
def GetBoardUse(self)
Definition: pcbnew.py:19147
def GetLayerID(self, aLayerName)
Definition: pcbnew.py:19506
def GetCopperLayerStackMaxId(self)
Definition: pcbnew.py:19383
def GetVisibleElements(self)
Definition: pcbnew.py:19419
def GetItem(self, aID)
Definition: pcbnew.py:19296
def IsElementVisible(self, aLayer)
Definition: pcbnew.py:19431
def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1)
Definition: pcbnew.py:19639
def FinalizeBulkRemove(self, aRemovedItems)
Definition: pcbnew.py:19276
def AddListener(self, aListener)
Definition: pcbnew.py:19667
def Drawings(self, *args)
Definition: pcbnew.py:19187
def AddNative(self, *args)
Definition: pcbnew.py:19255
def SetVisibleAlls(self)
Definition: pcbnew.py:19427
def GetHighLightNetCodes(self)
Definition: pcbnew.py:19355
def OnItemChanged(self, aItem)
Definition: pcbnew.py:19679
def GetFootprints(self)
Definition: pcbnew.py:19744
def TracksInNet(self, aNetCode)
Definition: pcbnew.py:19647
def GetStandardLayerName(aLayerId)
Definition: pcbnew.py:19519
def IsFootprintHolder(self)
Definition: pcbnew.py:19159
def FinalizeBulkAdd(self, aNewItems)
Definition: pcbnew.py:19272
def FindNet(self, *args)
Definition: pcbnew.py:19547
def SetTitleBlock(self, aTitleBlock)
Definition: pcbnew.py:19474
def OnRatsnestChanged(self)
Definition: pcbnew.py:19691
def HighLightON(self, aValue=True)
Definition: pcbnew.py:19367
def GetMaxClearanceValue(self)
Definition: pcbnew.py:19655
def SetVisibleLayers(self, aLayerMask)
Definition: pcbnew.py:19415
def IncrementTimeStamp(self)
Definition: pcbnew.py:19151
def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
Definition: pcbnew.py:19618
def CacheTriangulation(self, *args)
Definition: pcbnew.py:19284
def GetViasDimensionsList(self)
Definition: pcbnew.py:19757
def IsLayerVisible(self, aLayer)
Definition: pcbnew.py:19407
def ResolveDRCExclusions(self, aCreateMarkers)
Definition: pcbnew.py:19339
def MatchDpSuffix(self, aNetName, aComplementNet)
Definition: pcbnew.py:19554
def GetTimeStamp(self)
Definition: pcbnew.py:19155
def SetPlotOptions(self, aOptions)
Definition: pcbnew.py:19463
def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False, aIncludeNPTHAsOutlines=False)
Definition: pcbnew.py:19490
def GetEnabledLayers(self)
Definition: pcbnew.py:19395
def FindFootprintByReference(self, aReference)
Definition: pcbnew.py:19582
def HighLightOFF(self)
Definition: pcbnew.py:19371
def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
Definition: pcbnew.py:19502
def SetGenerator(self, aGenerator)
Definition: pcbnew.py:19247
def IsEmpty(self)
Definition: pcbnew.py:19235
def GetZoneList(self, aIncludeZonesInFootprints=False)
Definition: pcbnew.py:19610
def EmbedFonts(self)
Definition: pcbnew.py:19722
def GetNetClasses(self)
Definition: pcbnew.py:19751
def SetAreasNetCodesFromNetNames(self)
Definition: pcbnew.py:19602
def GetProperties(self)
Definition: pcbnew.py:19213
def OnItemsCompositeUpdate(self, aAddedItems, aRemovedItems, aChangedItems)
Definition: pcbnew.py:19687
def Markers(self)
Definition: pcbnew.py:19183
def SetLegacyTeardrops(self, aFlag)
Definition: pcbnew.py:19711
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:19455
def ClearProject(self)
Definition: pcbnew.py:19335
def DeleteAllFootprints(self)
Definition: pcbnew.py:19292
def DpCoupledNet(self, aNet)
Definition: pcbnew.py:19558
def GetAreaCount(self)
Definition: pcbnew.py:19614
def GetStackupOrDefault(self)
Definition: pcbnew.py:19447
def GetBoardEdgesBoundingBox(self)
Definition: pcbnew.py:19578
def ClassOf(aItem)
Definition: pcbnew.py:19139
def GetArea(self, index)
Definition: pcbnew.py:19606
def FlipLayer(self, aLayer)
Definition: pcbnew.py:19387
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:19243
def UpdateUserUnits(self, aItem, aView)
Definition: pcbnew.py:19486
def GetVisibleLayers(self)
Definition: pcbnew.py:19411
def GetNetClassAssignmentCandidates(self)
Definition: pcbnew.py:19590
def RemoveUnusedNets(self, aCommit)
Definition: pcbnew.py:19566
def Tracks(self, *args)
Definition: pcbnew.py:19194
def Generators(self)
Definition: pcbnew.py:19179
def ConvertKIIDsToCrossReferences(self, aSource)
Definition: pcbnew.py:19308
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:19239
def Groups(self)
Definition: pcbnew.py:19205
def SetProperties(self, aProps)
Definition: pcbnew.py:19217
def GetTrackLength(self, aTrack)
Definition: pcbnew.py:19643
def SanitizeNetcodes(self)
Definition: pcbnew.py:19663
def GetCurrentNetClassName(self)
Definition: pcbnew.py:19754
def SetLayerType(self, aLayer, aLayerType)
Definition: pcbnew.py:19531
def GetNodesCount(self, aNet=-1)
Definition: pcbnew.py:19535
def GetNetcodeFromNetname(self, netname)
Definition: pcbnew.py:19775
def FindFootprintByPath(self, aPath)
Definition: pcbnew.py:19586
def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
Definition: pcbnew.py:19594
def AllConnectedItems(self)
Definition: pcbnew.py:19209
def GetNetsByName(self)
Definition: pcbnew.py:19763
def SetFileName(self, aFileName)
Definition: pcbnew.py:19163
def SetEnabledLayers(self, aLayerMask)
Definition: pcbnew.py:19399
def GetGenerator(self)
Definition: pcbnew.py:19251
def GetNetInfo(self)
Definition: pcbnew.py:19562
def GetTrackWidthList(self)
Definition: pcbnew.py:19760
def GroupLegalOps(self, selection)
Definition: pcbnew.py:19703
def BuildConnectivity(self, aReporter=None)
Definition: pcbnew.py:19316
def SynchronizeProperties(self)
Definition: pcbnew.py:19598
def GetConnectivity(self)
Definition: pcbnew.py:19312
def GetTitleBlock(self, *args)
Definition: pcbnew.py:19467
def SetElementVisibility(self, aLayer, aNewState)
Definition: pcbnew.py:19435
def GetDrawings(self)
Definition: pcbnew.py:19745
def GetProject(self)
Definition: pcbnew.py:19327
def IsLayerEnabled(self, aLayer)
Definition: pcbnew.py:19403
def SetLayerName(self, aLayer, aLayerName)
Definition: pcbnew.py:19514
def ConvertCrossReferencesToKIIDs(self, aSource)
Definition: pcbnew.py:19304
def GetDesignSettings(self)
Definition: pcbnew.py:19443
def LegacyTeardrops(self)
Definition: pcbnew.py:19707
def GetPlotOptions(self)
Definition: pcbnew.py:19459
def MapNets(self, aDestBoard)
Definition: pcbnew.py:19659
def SetBoardUse(self, aUse)
Definition: pcbnew.py:19143
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:19482
def GetNetCount(self)
Definition: pcbnew.py:19570
def GetItemSet(self)
Definition: pcbnew.py:19201
def SetVisibleElements(self, aMask)
Definition: pcbnew.py:19423
def GetInflated(self, *args)
Definition: pcbnew.py:5224
def SquaredDiagonal(self)
Definition: pcbnew.py:5250
def GetY(self)
Definition: pcbnew.py:5097
def IntersectsCircle(self, aCenter, aRadius)
Definition: pcbnew.py:5205
def Contains(self, *args)
Definition: pcbnew.py:5081
def GetWidth(self)
Definition: pcbnew.py:5113
def Merge(self, *args)
Definition: pcbnew.py:5231
def Centre(self)
Definition: pcbnew.py:5069
def GetWithOffset(self, aMoveVector)
Definition: pcbnew.py:5166
def __init__(self, *args)
Definition: pcbnew.py:5048
def GetHeight(self)
Definition: pcbnew.py:5117
def SetOrigin(self, *args)
Definition: pcbnew.py:5145
def ByCenter(aCenter, aSize)
Definition: pcbnew.py:5061
def GetBoundingBoxRotated(self, aRotCenter, aAngle)
Definition: pcbnew.py:5238
def Offset(self, *args)
Definition: pcbnew.py:5159
def GetTop(self)
Definition: pcbnew.py:5133
def SetX(self, val)
Definition: pcbnew.py:5170
def __eq__(self, aOther)
Definition: pcbnew.py:5276
def GetCenter(self)
Definition: pcbnew.py:5137
def GetBottom(self)
Definition: pcbnew.py:5125
def GetSizeMax(self)
Definition: pcbnew.py:5141
def GetRight(self)
Definition: pcbnew.py:5121
def Format(self)
Definition: pcbnew.py:5213
def SetY(self, val)
Definition: pcbnew.py:5174
def SquaredDistance(self, *args)
Definition: pcbnew.py:5254
def Intersect(self, aRect)
Definition: pcbnew.py:5193
def SetWidth(self, val)
Definition: pcbnew.py:5178
def Distance(self, *args)
Definition: pcbnew.py:5261
def FarthestPointTo(self, aPoint)
Definition: pcbnew.py:5272
def SetEnd(self, *args)
Definition: pcbnew.py:5186
def GetEnd(self)
Definition: pcbnew.py:5109
def Intersects(self, *args)
Definition: pcbnew.py:5197
def SetHeight(self, val)
Definition: pcbnew.py:5182
def GetArea(self)
Definition: pcbnew.py:5242
def GetPosition(self)
Definition: pcbnew.py:5105
def SetSize(self, *args)
Definition: pcbnew.py:5152
def GetOrigin(self)
Definition: pcbnew.py:5101
def GetLeft(self)
Definition: pcbnew.py:5129
def Normalize(self)
Definition: pcbnew.py:5077
def Move(self, aMoveVector)
Definition: pcbnew.py:5073
def ByCorners(aCorner1, aCorner2)
Definition: pcbnew.py:5056
def GetX(self)
Definition: pcbnew.py:5093
def Diagonal(self)
Definition: pcbnew.py:5246
def __ne__(self, aOther)
Definition: pcbnew.py:5280
def ClosestPointTo(self, aPoint)
Definition: pcbnew.py:5268
def GetSize(self)
Definition: pcbnew.py:5089
def IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
Definition: pcbnew.py:5209
def SetMaximum(self)
Definition: pcbnew.py:5065
def IsValid(self)
Definition: pcbnew.py:5284
def Inflate(self, *args)
Definition: pcbnew.py:5217
def __init__(self, *args)
Definition: pcbnew.py:6117
Definition: pcbnew.py:11306
def __init__(self)
Definition: pcbnew.py:11317
def GetBrightness(self)
Definition: pcbnew.py:2322
def Desaturate(self)
Definition: pcbnew.py:2298
def Inverted(self)
Definition: pcbnew.py:2318
def SetFromWxString(self, aColorString)
Definition: pcbnew.py:2250
def LegacyMix(self, aColor)
Definition: pcbnew.py:2270
def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0)
Definition: pcbnew.py:2236
def Darkened(self, aFactor)
Definition: pcbnew.py:2306
def ToHexString(self)
Definition: pcbnew.py:2262
def FindNearestLegacyColor(aR, aG, aB)
Definition: pcbnew.py:2352
def ToColour(self)
Definition: pcbnew.py:2266
def Darken(self, aFactor)
Definition: pcbnew.py:2286
def Mix(self, aColor, aFactor)
Definition: pcbnew.py:2310
def ToCSSString(self)
Definition: pcbnew.py:2254
def Brighten(self, aFactor)
Definition: pcbnew.py:2282
def ToHSL(self, aOutHue, aOutSaturation, aOutLightness)
Definition: pcbnew.py:2274
def Compare(self, aRhs)
Definition: pcbnew.py:2338
def Distance(self, other)
Definition: pcbnew.py:2334
def FromHSL(self, aInHue, aInSaturation, aInLightness)
Definition: pcbnew.py:2278
def WithAlpha(self, aAlpha)
Definition: pcbnew.py:2314
def SetFromHexString(self, aColorString)
Definition: pcbnew.py:2258
def Invert(self)
Definition: pcbnew.py:2290
def Saturate(self, aFactor)
Definition: pcbnew.py:2294
def Brightened(self, aFactor)
Definition: pcbnew.py:2302
def ContrastRatio(aLeft, aRight)
Definition: pcbnew.py:2347
def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False)
Definition: pcbnew.py:2326
def RelativeLuminance(self)
Definition: pcbnew.py:2342
def __init__(self, *args)
Definition: pcbnew.py:2240
def FromHSV(self, aInH, aInS, aInV)
Definition: pcbnew.py:2330
def GetConnectedPads(self, *args)
Definition: pcbnew.py:11425
def RunOnUnconnectedEdges(self, aFunc)
Definition: pcbnew.py:11440
def Add(self, aItem)
Definition: pcbnew.py:11365
def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False)
Definition: pcbnew.py:11464
def GetNetNameForNetCode(self, nc)
Definition: pcbnew.py:11504
def GetUnconnectedCount(self, aVisibileOnly)
Definition: pcbnew.py:11405
def GetConnectivityAlgo(self)
Definition: pcbnew.py:11476
def GetNetSettings(self)
Definition: pcbnew.py:11496
def Update(self, aItem)
Definition: pcbnew.py:11373
def RefreshNetcodeMap(self, aBoard)
Definition: pcbnew.py:11508
def RemoveInvalidRefs(self)
Definition: pcbnew.py:11488
def Remove(self, aItem)
Definition: pcbnew.py:11369
def GetConnectedTracks(self, aItem)
Definition: pcbnew.py:11421
def GetLocalRatsnest(self)
Definition: pcbnew.py:11460
def BlockRatsnestItems(self, aItems)
Definition: pcbnew.py:11472
def IsConnectedOnLayer(self, *args)
Definition: pcbnew.py:11409
def RecalculateRatsnest(self, aCommit=None)
Definition: pcbnew.py:11401
def ComputeLocalRatsnest(self, *args)
Definition: pcbnew.py:11456
def ClearLocalRatsnest(self)
Definition: pcbnew.py:11448
def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False)
Definition: pcbnew.py:11397
def GetPadCount(self, aNet=-1)
Definition: pcbnew.py:11417
def HideLocalRatsnest(self)
Definition: pcbnew.py:11452
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:11492
def Move(self, aDelta)
Definition: pcbnew.py:11377
def GetFromToCache(self)
Definition: pcbnew.py:11512
def Build(self, *args)
Definition: pcbnew.py:11358
def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None)
Definition: pcbnew.py:11444
def HasNetNameForNetCode(self, nc)
Definition: pcbnew.py:11500
def __init__(self, *args)
Definition: pcbnew.py:11351
def PropagateNets(self, aCommit=None)
Definition: pcbnew.py:11393
def MarkItemNetAsDirty(self, aItem)
Definition: pcbnew.py:11484
def GetNodeCount(self, aNet=-1)
Definition: pcbnew.py:11413
def GetConnectedPadsAndVias(self, aItem, pads, vias)
Definition: pcbnew.py:11432
def GetNetItems(self, aNetCode, aTypes)
Definition: pcbnew.py:11468
def GetRatsnestForNet(self, aNet)
Definition: pcbnew.py:11389
def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0)
Definition: pcbnew.py:11436
def __call__(self, item1, item2)
Definition: pcbnew.py:1662
def __init__(self)
Definition: pcbnew.py:1666
def __init__(self)
Definition: pcbnew.py:8747
def __eq__(self, *args)
Definition: pcbnew.py:10038
def __init__(self, *args)
Definition: pcbnew.py:10775
def __ne__(self, aOther)
Definition: pcbnew.py:10786
def __eq__(self, aOther)
Definition: pcbnew.py:10782
def __lt__(self, aOther)
Definition: pcbnew.py:10790
def begin(self)
Definition: pcbnew.py:12605
def clear(self)
Definition: pcbnew.py:12621
def resize(self, *args)
Definition: pcbnew.py:12665
def __delslice__(self, i, j)
Definition: pcbnew.py:12559
def end(self)
Definition: pcbnew.py:12609
def front(self)
Definition: pcbnew.py:12653
def assign(self, n, x)
Definition: pcbnew.py:12661
def size(self)
Definition: pcbnew.py:12597
def push_back(self, x)
Definition: pcbnew.py:12649
def swap(self, v)
Definition: pcbnew.py:12601
def get_allocator(self)
Definition: pcbnew.py:12625
def back(self)
Definition: pcbnew.py:12657
def push_front(self, x)
Definition: pcbnew.py:12683
def __getitem__(self, *args)
Definition: pcbnew.py:12570
def pop_front(self)
Definition: pcbnew.py:12679
def erase(self, *args)
Definition: pcbnew.py:12633
def append(self, x)
Definition: pcbnew.py:12589
def __getslice__(self, i, j)
Definition: pcbnew.py:12548
def empty(self)
Definition: pcbnew.py:12593
def __setslice__(self, *args)
Definition: pcbnew.py:12552
def __delitem__(self, *args)
Definition: pcbnew.py:12563
def pop_back(self)
Definition: pcbnew.py:12629
def __nonzero__(self)
Definition: pcbnew.py:12536
def insert(self, *args)
Definition: pcbnew.py:12672
def __init__(self, *args)
Definition: pcbnew.py:12640
def __iter__(self)
Definition: pcbnew.py:12533
def __setitem__(self, *args)
Definition: pcbnew.py:12577
def rbegin(self)
Definition: pcbnew.py:12613
def iterator(self)
Definition: pcbnew.py:12530
def __len__(self)
Definition: pcbnew.py:12544
def __bool__(self)
Definition: pcbnew.py:12540
def rend(self)
Definition: pcbnew.py:12617
def pop(self)
Definition: pcbnew.py:12585
def __init__(self, l=2, r=4)
Definition: pcbnew.py:8883
def GetPrecisionString(self)
Definition: pcbnew.py:8887
def __init__(self, aDiameter, a_NotPlated)
Definition: pcbnew.py:8846
def __truediv__(self, other)
Definition: pcbnew.py:15610
def AsTenthsOfADegree(self)
Definition: pcbnew.py:15484
def __mul__(self, other)
Definition: pcbnew.py:15604
def IsCardinal(self)
Definition: pcbnew.py:15494
def AsRadians(self)
Definition: pcbnew.py:15488
def IsCardinal90(self)
Definition: pcbnew.py:15498
def IsZero(self)
Definition: pcbnew.py:15502
def AsDegrees(self)
Definition: pcbnew.py:15480
def __rmul__(self, other)
Definition: pcbnew.py:15607
def Invert(self)
Definition: pcbnew.py:15518
def NormalizeNegative(self)
Definition: pcbnew.py:15562
def __iadd__(self, aAngle)
Definition: pcbnew.py:15586
def Normalized(self)
Definition: pcbnew.py:15558
def Normalize(self)
Definition: pcbnew.py:15554
def IsVertical(self)
Definition: pcbnew.py:15510
def Normalize90(self)
Definition: pcbnew.py:15566
def Normalize180(self)
Definition: pcbnew.py:15570
def IsParallelTo(self, aAngle)
Definition: pcbnew.py:15514
def __init__(self, *args)
Definition: pcbnew.py:15471
def Normalize720(self)
Definition: pcbnew.py:15574
def __abs__(self)
Definition: pcbnew.py:15613
def __isub__(self, aAngle)
Definition: pcbnew.py:15590
def __sub__(self, other)
Definition: pcbnew.py:15599
def IsHorizontal(self)
Definition: pcbnew.py:15506
def Tan(self)
Definition: pcbnew.py:15530
def Sin(self)
Definition: pcbnew.py:15522
def KeepUpright(self)
Definition: pcbnew.py:15578
def Arctan2(y, x)
Definition: pcbnew.py:15550
def Cos(self)
Definition: pcbnew.py:15526
def Round(self, digits)
Definition: pcbnew.py:15582
def __add__(self, other)
Definition: pcbnew.py:15594
def ClearSelected(self)
Definition: pcbnew.py:1482
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:1429
def SetSelected(self)
Definition: pcbnew.py:1474
def SetBrightened(self)
Definition: pcbnew.py:1478
def Clone(self)
Definition: pcbnew.py:1589
def GetFlags(self)
Definition: pcbnew.py:1506
def IsForceVisible(self)
Definition: pcbnew.py:1550
def IsRollover(self)
Definition: pcbnew.py:1470
def IsNew(self)
Definition: pcbnew.py:1450
def __lt__(self, aItem)
Definition: pcbnew.py:1628
def IsEntered(self)
Definition: pcbnew.py:1462
def ClearEditFlags(self)
Definition: pcbnew.py:1518
def SetParent(self, aParent)
Definition: pcbnew.py:1442
def GetFocusPosition(self)
Definition: pcbnew.py:1581
def IsType(self, aScanTypes)
Definition: pcbnew.py:1542
def SetForceVisible(self, aEnable)
Definition: pcbnew.py:1546
def Type(self)
Definition: pcbnew.py:1434
def GetMenuImage(self)
Definition: pcbnew.py:1609
def ViewGetLayers(self)
Definition: pcbnew.py:1641
def ViewBBox(self)
Definition: pcbnew.py:1637
def HitTest(self, *args)
Definition: pcbnew.py:1562
def GetMsgPanelInfo(self, aFrame, aList)
Definition: pcbnew.py:1554
def IsBrightened(self)
Definition: pcbnew.py:1466
def ClearTempFlags(self)
Definition: pcbnew.py:1526
def SetModified(self)
Definition: pcbnew.py:1490
def GetClass(self)
Definition: pcbnew.py:1597
def XorFlags(self, aMask)
Definition: pcbnew.py:1498
def GetItemDescription(self, aUnitsProvider, aFull)
Definition: pcbnew.py:1605
def IsReplaceable(self)
Definition: pcbnew.py:1624
def RenderAsBitmap(self, aWorldScale)
Definition: pcbnew.py:1530
def ClearBrightened(self)
Definition: pcbnew.py:1486
def ClearFlags(self, *args)
Definition: pcbnew.py:1502
def Replace(self, *args)
Definition: pcbnew.py:1617
def GetParent(self)
Definition: pcbnew.py:1438
def IsShownAsBitmap(self)
Definition: pcbnew.py:1538
def GetSortPosition(self)
Definition: pcbnew.py:1585
def GetEditFlags(self)
Definition: pcbnew.py:1514
def SetIsShownAsBitmap(self, aBitmap)
Definition: pcbnew.py:1534
def IsMoving(self)
Definition: pcbnew.py:1454
def HasFlag(self, aFlag)
Definition: pcbnew.py:1510
def Sort(aLeft, aRight)
Definition: pcbnew.py:1633
def IsSelected(self)
Definition: pcbnew.py:1458
def GetEmbeddedFiles(self)
Definition: pcbnew.py:1645
def IsModified(self)
Definition: pcbnew.py:1446
def SetFlags(self, aMask)
Definition: pcbnew.py:1494
def GetTempFlags(self)
Definition: pcbnew.py:1522
def GetTypeDesc(self)
Definition: pcbnew.py:1601
def GetFriendlyName(self)
Definition: pcbnew.py:1558
def Visit(self, inspector, testData, aScanTypes)
Definition: pcbnew.py:1593
def Matches(self, aSearchData, aAuxData)
Definition: pcbnew.py:1613
def GetBoundingBox(self)
Definition: pcbnew.py:1569
def GetPosition(self)
Definition: pcbnew.py:1573
def SetPosition(self, aPos)
Definition: pcbnew.py:1577
def MilsToIU(self, mils)
Definition: pcbnew.py:1694
def __init__(self, aIUPerMM)
Definition: pcbnew.py:1682
def IUTomm(self, iu)
Definition: pcbnew.py:1686
def IUToMils(self, iu)
Definition: pcbnew.py:1698
def mmToIU(self, mm)
Definition: pcbnew.py:1690
def GetArcAngle(self)
Definition: pcbnew.py:15888
def SetCenterX(self, x)
Definition: pcbnew.py:15808
def SetEnd(self, aEnd)
Definition: pcbnew.py:15824
def SHAPE_T_asString(self)
Definition: pcbnew.py:15700
def IsFilledForHitTesting(self)
Definition: pcbnew.py:15716
def EndsSwapped(self)
Definition: pcbnew.py:15896
def GetShape(self)
Definition: pcbnew.py:15776
def Similarity(self, aOther)
Definition: pcbnew.py:16011
def SetRight(self, val)
Definition: pcbnew.py:15856
def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:16003
def ShapeGetMsgPanelInfo(self, aFrame, aList)
Definition: pcbnew.py:15963
def GetWidth(self)
Definition: pcbnew.py:15748
def SetStart(self, aStart)
Definition: pcbnew.py:15792
def GetTopLeft(self)
Definition: pcbnew.py:15840
def GetLineColor(self)
Definition: pcbnew.py:15768
def DupPolyPointsList(self, aBuffer)
Definition: pcbnew.py:15928
def SetBezierC2(self, aPt)
Definition: pcbnew.py:15872
def IsFilled(self)
Definition: pcbnew.py:15712
def SetFillColor(self, aColor)
Definition: pcbnew.py:15740
def SetPolyShape(self, aShape)
Definition: pcbnew.py:15947
def GetBotRight(self)
Definition: pcbnew.py:15844
def SetRectangleHeight(self, aHeight)
Definition: pcbnew.py:15971
def GetRadius(self)
Definition: pcbnew.py:15912
def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False)
Definition: pcbnew.py:15884
def IsProxyItem(self)
Definition: pcbnew.py:15704
def SetArcGeometry(self, aStart, aMid, aEnd)
Definition: pcbnew.py:15916
def GetStartY(self)
Definition: pcbnew.py:15784
def SwapShape(self, aImage)
Definition: pcbnew.py:15684
def GetFillColor(self)
Definition: pcbnew.py:15736
def CalcArcAngles(self, aStartAngle, aEndAngle)
Definition: pcbnew.py:15908
def SetSegmentAngle(self, aAngle)
Definition: pcbnew.py:15983
def SetLineStyle(self, aStyle)
Definition: pcbnew.py:15756
def SetIsProxyItem(self, aIsProxy=True)
Definition: pcbnew.py:15708
def SetWidth(self, aWidth)
Definition: pcbnew.py:15744
def SetRectangleWidth(self, aWidth)
Definition: pcbnew.py:15975
def SetRectangle(self, aHeight, aWidth)
Definition: pcbnew.py:15979
def GetRectangleWidth(self)
Definition: pcbnew.py:15999
def SetCenterY(self, y)
Definition: pcbnew.py:15804
def GetStart(self)
Definition: pcbnew.py:15780
def GetEnd(self)
Definition: pcbnew.py:15812
def GetRectangleHeight(self)
Definition: pcbnew.py:15995
def GetEndY(self)
Definition: pcbnew.py:15816
def SetFilled(self, aFlag)
Definition: pcbnew.py:15720
def SetPolyPoints(self, aPoints)
Definition: pcbnew.py:15951
def IsPolyShapeValid(self)
Definition: pcbnew.py:15943
def SetLength(self, aLength)
Definition: pcbnew.py:15967
def GetPointCount(self)
Definition: pcbnew.py:15932
def GetLength(self)
Definition: pcbnew.py:15991
def GetBezierPoints(self)
Definition: pcbnew.py:15924
def MakeEffectiveShapes(self, aEdgeOnly=False)
Definition: pcbnew.py:15959
def GetRectCorners(self)
Definition: pcbnew.py:15904
def IsClosed(self)
Definition: pcbnew.py:15732
def GetPolyShape(self, *args)
Definition: pcbnew.py:15936
def SetStartX(self, x)
Definition: pcbnew.py:15800
def SetRadius(self, aX)
Definition: pcbnew.py:15836
def SetEndX(self, aX)
Definition: pcbnew.py:15832
def SetTop(self, val)
Definition: pcbnew.py:15848
def Compare(self, aOther)
Definition: pcbnew.py:16007
def SetStartY(self, y)
Definition: pcbnew.py:15796
def Deserialize(self, aContainer)
Definition: pcbnew.py:15692
def SetEndY(self, aY)
Definition: pcbnew.py:15828
def GetBezierC2(self)
Definition: pcbnew.py:15876
def SetCenter(self, aCenter)
Definition: pcbnew.py:15880
def GetLineStyle(self)
Definition: pcbnew.py:15760
def SetBezierC1(self, aPt)
Definition: pcbnew.py:15864
def GetEndX(self)
Definition: pcbnew.py:15820
def SetLeft(self, val)
Definition: pcbnew.py:15852
def GetFillMode(self)
Definition: pcbnew.py:15728
def ShowShape(self)
Definition: pcbnew.py:15696
def SetShape(self, aShape)
Definition: pcbnew.py:15772
def SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
Definition: pcbnew.py:15920
def SetFillMode(self, aFill)
Definition: pcbnew.py:15724
def IsClockwiseArc(self)
Definition: pcbnew.py:15987
def SetBottom(self, val)
Definition: pcbnew.py:15860
def RebuildBezierToSegmentsPointsList(self, aMaxError)
Definition: pcbnew.py:15955
def __init__(self, *args)
Definition: pcbnew.py:15676
def __eq__(self, aOther)
Definition: pcbnew.py:16015
def GetArcMid(self)
Definition: pcbnew.py:15900
def SetLineColor(self, aColor)
Definition: pcbnew.py:15764
def Serialize(self, aContainer)
Definition: pcbnew.py:15688
def GetSegmentAngle(self)
Definition: pcbnew.py:15892
def GetStartX(self)
Definition: pcbnew.py:15788
def GetBezierC1(self)
Definition: pcbnew.py:15868
def GetEffectiveWidth(self)
Definition: pcbnew.py:15752
def SetAttributes(self, *args)
Definition: pcbnew.py:2634
def SetTextSize(self, aNewSize, aEnforceMinTextSize=True)
Definition: pcbnew.py:2685
def GetTextStyleName(self)
Definition: pcbnew.py:2774
def GetTextWidth(self)
Definition: pcbnew.py:2697
def GetHyperlink(self)
Definition: pcbnew.py:2842
def GotoPageHref(aDestination)
Definition: pcbnew.py:2865
def SetTextX(self, aX)
Definition: pcbnew.py:2725
def SetText(self, aText)
Definition: pcbnew.py:2514
def GetLinePositions(self, aPositions, aLineCount)
Definition: pcbnew.py:2778
def Offset(self, aOffset)
Definition: pcbnew.py:2733
def GetHorizJustify(self)
Definition: pcbnew.py:2598
def IsDefaultFormatting(self)
Definition: pcbnew.py:2649
def __eq__(self, aRhs)
Definition: pcbnew.py:2826
def GetTextBox(self, aLine=-1)
Definition: pcbnew.py:2766
def SetVertJustify(self, aType)
Definition: pcbnew.py:2602
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:2506
def GetFontName(self)
Definition: pcbnew.py:2665
def Similarity(self, aOther)
Definition: pcbnew.py:2786
def SetMultilineAllowed(self, aAllow)
Definition: pcbnew.py:2586
def SetTextThickness(self, aWidth)
Definition: pcbnew.py:2518
def GetTextThickness(self)
Definition: pcbnew.py:2522
def SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset)
Definition: pcbnew.py:2814
def Format(self, aFormatter, aControlBits)
Definition: pcbnew.py:2790
def Replace(self, aSearchData)
Definition: pcbnew.py:2645
def SetTextAngleDegrees(self, aOrientation)
Definition: pcbnew.py:2538
def IsMultilineAllowed(self)
Definition: pcbnew.py:2590
def SetFont(self, aFont)
Definition: pcbnew.py:2653
def IsKeepUpright(self)
Definition: pcbnew.py:2614
def ClearBoundingBoxCache(self)
Definition: pcbnew.py:2806
def SetBold(self, aBold)
Definition: pcbnew.py:2558
def SwapText(self, aTradingPartner)
Definition: pcbnew.py:2626
def SetTextPos(self, aPoint)
Definition: pcbnew.py:2717
def AddRenderCacheGlyph(self, aPoly)
Definition: pcbnew.py:2818
def HasHyperlink(self)
Definition: pcbnew.py:2838
def Empty(self)
Definition: pcbnew.py:2737
def GetAttributes(self)
Definition: pcbnew.py:2641
def SetTextHeight(self, aHeight)
Definition: pcbnew.py:2701
def GetTextAngle(self)
Definition: pcbnew.py:2534
def SetKeepUpright(self, aKeepUpright)
Definition: pcbnew.py:2610
def GetRenderCache(self, *args)
Definition: pcbnew.py:2810
def GetVertJustify(self)
Definition: pcbnew.py:2606
def __gt__(self, aRhs)
Definition: pcbnew.py:2834
def AssignFont(self, aFont)
Definition: pcbnew.py:2661
def SetVisible(self, aVisible)
Definition: pcbnew.py:2570
def GetTextPos(self)
Definition: pcbnew.py:2721
def SetTextColor(self, aColor)
Definition: pcbnew.py:2709
def SetTextAngle(self, aAngle)
Definition: pcbnew.py:2530
def SwapAttributes(self, aTradingPartner)
Definition: pcbnew.py:2622
def SetFontIndex(self, aIdx)
Definition: pcbnew.py:2669
def ClearRenderCache(self)
Definition: pcbnew.py:2802
def RemoveHyperlink(self)
Definition: pcbnew.py:2850
def GetText(self)
Definition: pcbnew.py:2502
def TextHitTest(self, *args)
Definition: pcbnew.py:2759
def GetLineSpacing(self)
Definition: pcbnew.py:2681
def IsVisible(self)
Definition: pcbnew.py:2574
def IsItalic(self)
Definition: pcbnew.py:2554
def Serialize(self, aContainer)
Definition: pcbnew.py:2494
def __lt__(self, aRhs)
Definition: pcbnew.py:2830
def Deserialize(self, aContainer)
Definition: pcbnew.py:2498
def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0)
Definition: pcbnew.py:2526
def ValidateHyperlink(aURL)
Definition: pcbnew.py:2855
def SetTextY(self, aY)
Definition: pcbnew.py:2729
def SetHyperlink(self, aLink)
Definition: pcbnew.py:2846
def GetDrawPos(self)
Definition: pcbnew.py:2798
def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED)
Definition: pcbnew.py:2751
def SetHorizJustify(self, aType)
Definition: pcbnew.py:2594
def GetFontIndex(self)
Definition: pcbnew.py:2673
def CopyText(self, aSrc)
Definition: pcbnew.py:2630
def GetTextColor(self)
Definition: pcbnew.py:2713
def GetFont(self)
Definition: pcbnew.py:2657
def GetTextAngleDegrees(self)
Definition: pcbnew.py:2542
def SetItalicFlag(self, aItalic)
Definition: pcbnew.py:2550
def __init__(self, *args)
Definition: pcbnew.py:2486
def SetBoldFlag(self, aBold)
Definition: pcbnew.py:2562
def Levenshtein(self, aOther)
Definition: pcbnew.py:2782
def MapVertJustify(aVertJustify)
Definition: pcbnew.py:2747
def HasTextVars(self)
Definition: pcbnew.py:2510
def SetTextWidth(self, aWidth)
Definition: pcbnew.py:2693
def GetTextHeight(self)
Definition: pcbnew.py:2705
def SetMirrored(self, isMirrored)
Definition: pcbnew.py:2578
def GetEffectiveTextShape(self, *args)
Definition: pcbnew.py:2755
def SetItalic(self, aItalic)
Definition: pcbnew.py:2546
def GetTextSize(self)
Definition: pcbnew.py:2689
def IsGotoPageHref(aHref, aDestination=None)
Definition: pcbnew.py:2860
def IsBold(self)
Definition: pcbnew.py:2566
def SetLineSpacing(self, aLineSpacing)
Definition: pcbnew.py:2677
def IsMirrored(self)
Definition: pcbnew.py:2582
def Compare(self, aOther)
Definition: pcbnew.py:2822
def GetDrawRotation(self)
Definition: pcbnew.py:2794
def GetInterline(self)
Definition: pcbnew.py:2770
def MapHorizJustify(aHorizJustify)
Definition: pcbnew.py:2742
def FlipHJustify(self)
Definition: pcbnew.py:2618
def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
Definition: pcbnew.py:8965
def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
Definition: pcbnew.py:8973
def SetFormat(self, *args)
Definition: pcbnew.py:8969
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:8977
def GetOffset(self)
Definition: pcbnew.py:8961
def __init__(self, aPcb)
Definition: pcbnew.py:8956
def __init__(self, aBoard)
Definition: pcbnew.py:8812
def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:8817
def __init__(self, *args)
Definition: pcbnew.py:1920
def FileLength(self)
Definition: pcbnew.py:1932
def __init__(self, *args)
Definition: pcbnew.py:2039
def append(self, x)
Definition: pcbnew.py:12091
def iterator(self)
Definition: pcbnew.py:12032
def clear(self)
Definition: pcbnew.py:12123
def front(self)
Definition: pcbnew.py:12155
def pop_front(self)
Definition: pcbnew.py:12181
def end(self)
Definition: pcbnew.py:12111
def rbegin(self)
Definition: pcbnew.py:12115
def pop_back(self)
Definition: pcbnew.py:12131
def empty(self)
Definition: pcbnew.py:12095
def swap(self, v)
Definition: pcbnew.py:12103
def resize(self, *args)
Definition: pcbnew.py:12167
def __len__(self)
Definition: pcbnew.py:12046
def __setitem__(self, *args)
Definition: pcbnew.py:12079
def __setslice__(self, *args)
Definition: pcbnew.py:12054
def push_back(self, x)
Definition: pcbnew.py:12151
def begin(self)
Definition: pcbnew.py:12107
def push_front(self, x)
Definition: pcbnew.py:12185
def __init__(self, *args)
Definition: pcbnew.py:12142
def __iter__(self)
Definition: pcbnew.py:12035
def back(self)
Definition: pcbnew.py:12159
def __bool__(self)
Definition: pcbnew.py:12042
def __getitem__(self, *args)
Definition: pcbnew.py:12072
def assign(self, n, x)
Definition: pcbnew.py:12163
def insert(self, *args)
Definition: pcbnew.py:12174
def get_allocator(self)
Definition: pcbnew.py:12127
def __delitem__(self, *args)
Definition: pcbnew.py:12065
def rend(self)
Definition: pcbnew.py:12119
def __getslice__(self, i, j)
Definition: pcbnew.py:12050
def __delslice__(self, i, j)
Definition: pcbnew.py:12061
def erase(self, *args)
Definition: pcbnew.py:12135
def pop(self)
Definition: pcbnew.py:12087
def size(self)
Definition: pcbnew.py:12099
def __nonzero__(self)
Definition: pcbnew.py:12038
def CheckFootprintAttributes(self, aErrorHandler)
Definition: pcbnew.py:20326
def Models(self, *args)
Definition: pcbnew.py:20100
def IsExcludedFromBOM(self)
Definition: pcbnew.py:20497
def IsExcludedFromPosFiles(self)
Definition: pcbnew.py:20489
def LegacyPadsLocked(self)
Definition: pcbnew.py:20322
def GetFields(self, *args)
Definition: pcbnew.py:20457
def GetPadCount(self, *args)
Definition: pcbnew.py:20541
def GetUniquePadNumbers(self, *args)
Definition: pcbnew.py:20549
def GetFieldsShownText(self)
Definition: pcbnew.py:20684
def CoverageRatio(self, aCollector)
Definition: pcbnew.py:20611
def GetPad(self, *args)
Definition: pcbnew.py:20533
def SetSheetfile(self, aSheetfile)
Definition: pcbnew.py:20179
def MapPadNumbersToNetTieGroups(self)
Definition: pcbnew.py:20278
def GetBoundingBox(self, *args)
Definition: pcbnew.py:20720
def GetAttributes(self)
Definition: pcbnew.py:20227
def Value(self, *args)
Definition: pcbnew.py:20420
def SetAttributes(self, aAttributes)
Definition: pcbnew.py:20231
def GetPrivateLayers(self)
Definition: pcbnew.py:20021
def GetSide(self)
Definition: pcbnew.py:20298
def ClearAllNets(self)
Definition: pcbnew.py:20037
def GetComponentClassAsString(self)
Definition: pcbnew.py:20659
def SetAllowMissingCourtyard(self, aAllow=True)
Definition: pcbnew.py:20509
def FootprintNeedsUpdate(self, aLibFP, aCompareFlags=0, aReporter=None)
Definition: pcbnew.py:20603
def CheckPads(self, aUnitsProvider, aErrorHandler)
Definition: pcbnew.py:20330
def GetSheetfile(self)
Definition: pcbnew.py:20175
def AddNative(self, *args)
Definition: pcbnew.py:20029
def SetFPID(self, aFPID)
Definition: pcbnew.py:20131
def StringLibNameInvalidChars(aUserReadable)
Definition: pcbnew.py:20599
def SetField(self, key, value)
Definition: pcbnew.py:20703
def GetFieldText(self, aFieldName)
Definition: pcbnew.py:20453
def ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes)
Definition: pcbnew.py:20477
def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
Definition: pcbnew.py:20362
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:20366
def GetReferenceAsString(self)
Definition: pcbnew.py:20400
def Fields(self, *args)
Definition: pcbnew.py:20061
def NeedsPlaced(self)
Definition: pcbnew.py:20314
def SetKeywords(self, aKeywords)
Definition: pcbnew.py:20155
def MoveAnchorPosition(self, aMoveVector)
Definition: pcbnew.py:20290
def GetTypeName(self)
Definition: pcbnew.py:20561
def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None)
Definition: pcbnew.py:20529
def SetFPIDAsString(self, aFPID)
Definition: pcbnew.py:20139
def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False)
Definition: pcbnew.py:20358
def SetReference(self, aReference)
Definition: pcbnew.py:20396
def GetLibDescription(self)
Definition: pcbnew.py:20143
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:20211
def GetCoverageArea(aItem, aCollector)
Definition: pcbnew.py:20616
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:20119
def AutoPositionFields(self)
Definition: pcbnew.py:20557
def GetNetTieCache(self, aItem)
Definition: pcbnew.py:20350
def GetLink(self)
Definition: pcbnew.py:20569
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:20589
def GetValue(self)
Definition: pcbnew.py:20408
def CheckNetTiePadGroups(self, aErrorHandler)
Definition: pcbnew.py:20342
def RemoveNative(self, *args)
Definition: pcbnew.py:20033
def GetLikelyAttribute(self)
Definition: pcbnew.py:20286
def GetCourtyard(self, aLayer)
Definition: pcbnew.py:20624
def DuplicateItem(self, aItem, aAddToFootprint=False)
Definition: pcbnew.py:20577
def IsConflicting(self)
Definition: pcbnew.py:20302
def HasThroughHolePads(self)
Definition: pcbnew.py:20096
def Zones(self, *args)
Definition: pcbnew.py:20082
def SetValue(self, aValue)
Definition: pcbnew.py:20412
def GetLocalZoneConnection(self)
Definition: pcbnew.py:20223
def GetFieldsText(self)
Definition: pcbnew.py:20679
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:20199
def EmbedFonts(self)
Definition: pcbnew.py:20647
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:20191
def SetFlag(self, aFlag)
Definition: pcbnew.py:20235
def GetLocalClearance(self, *args)
Definition: pcbnew.py:20251
def SetIsPlaced(self, isPlaced)
Definition: pcbnew.py:20310
def GetNetTiePadGroups(self)
Definition: pcbnew.py:20266
def GetNetTiePads(self, aPad)
Definition: pcbnew.py:20282
def __init__(self, *args)
Definition: pcbnew.py:19999
def __eq__(self, *args)
Definition: pcbnew.py:20663
def AddNetTiePadGroup(self, aGroup)
Definition: pcbnew.py:20274
def FixUuids(self)
Definition: pcbnew.py:20041
def IsDNP(self)
Definition: pcbnew.py:20513
def ResolveTextVar(self, token, aDepth=0)
Definition: pcbnew.py:20370
def Groups(self, *args)
Definition: pcbnew.py:20089
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:20203
def AllowMissingCourtyard(self)
Definition: pcbnew.py:20505
def GetFieldShownText(self, key)
Definition: pcbnew.py:20696
def BuildNetTieCache(self)
Definition: pcbnew.py:20346
def CheckShortingPads(self, aErrorHandler)
Definition: pcbnew.py:20334
def GetFieldById(self, aFieldId)
Definition: pcbnew.py:20441
def GetInitialComments(self)
Definition: pcbnew.py:20620
def GetSheetname(self)
Definition: pcbnew.py:20167
def GetNextPadNumber(self, aLastPadName)
Definition: pcbnew.py:20553
def HasFieldByName(self, aFieldName)
Definition: pcbnew.py:20449
def GetValueAsString(self)
Definition: pcbnew.py:20416
def GetReference(self)
Definition: pcbnew.py:20392
def CheckNetTies(self, aErrorHandler)
Definition: pcbnew.py:20338
def Pads(self, *args)
Definition: pcbnew.py:20068
def TextOnly(self)
Definition: pcbnew.py:20053
def SetNeedsPlaced(self, needsPlaced)
Definition: pcbnew.py:20318
def GetFPIDAsString(self)
Definition: pcbnew.py:20135
def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False, aSkipPlatedPads=False, aSkipNonPlatedPads=False)
Definition: pcbnew.py:20354
def GetPads(self, aPadNumber, aIgnore=None)
Definition: pcbnew.py:20537
def SetComponentClass(self, aClass)
Definition: pcbnew.py:20651
def GetUniquePadCount(self, *args)
Definition: pcbnew.py:20545
def SetExcludedFromBOM(self, aExclude=True)
Definition: pcbnew.py:20501
def BuildCourtyardCaches(self, aErrorHandler=None)
Definition: pcbnew.py:20632
def GetKeywords(self)
Definition: pcbnew.py:20151
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:20636
def AddField(self, aField)
Definition: pcbnew.py:20465
def SetLink(self, aLink)
Definition: pcbnew.py:20573
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:20521
def IncrementReference(self, aDelta)
Definition: pcbnew.py:20404
def SetPath(self, aPath)
Definition: pcbnew.py:20163
def GetFilters(self)
Definition: pcbnew.py:20183
def Deserialize(self, aContainer)
Definition: pcbnew.py:20012
def SetExcludedFromPosFiles(self, aExclude=True)
Definition: pcbnew.py:20493
def Serialize(self, aContainer)
Definition: pcbnew.py:20008
def SetFilters(self, aFilters)
Definition: pcbnew.py:20187
def GetZoneConnectionOverrides(self, aSource)
Definition: pcbnew.py:20262
def GetLayerBoundingBox(self, aLayers)
Definition: pcbnew.py:20057
def GraphicalItems(self, *args)
Definition: pcbnew.py:20075
def GetBoundingHull(self)
Definition: pcbnew.py:20049
def IsBoardOnly(self)
Definition: pcbnew.py:20481
def SetSheetname(self, aSheetname)
Definition: pcbnew.py:20171
def SetOrientation(self, aNewAngle)
Definition: pcbnew.py:20107
def IsNetTie(self)
Definition: pcbnew.py:20247
def GetPath(self)
Definition: pcbnew.py:20159
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:20207
def SetFields(self, fields)
Definition: pcbnew.py:20714
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:20585
def ClearNetTiePadGroups(self)
Definition: pcbnew.py:20270
def GetOrientationDegrees(self)
Definition: pcbnew.py:20123
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:20525
def Reference(self, *args)
Definition: pcbnew.py:20427
def IsFlipped(self)
Definition: pcbnew.py:20294
def GetFieldByName(self, aFieldName)
Definition: pcbnew.py:20445
def Add3DModel(self, a3DModel)
Definition: pcbnew.py:20581
def HitTest(self, *args)
Definition: pcbnew.py:20378
def GetFieldCount(self)
Definition: pcbnew.py:20473
def GetFlag(self)
Definition: pcbnew.py:20243
def RemoveField(self, aFieldName)
Definition: pcbnew.py:20469
def SetInitialComments(self, aInitialComments)
Definition: pcbnew.py:20607
def IsPlaced(self)
Definition: pcbnew.py:20306
def HasField(self, key)
Definition: pcbnew.py:20711
def GetOrientation(self)
Definition: pcbnew.py:20111
def SetLocalZoneConnection(self, aType)
Definition: pcbnew.py:20219
def GetEmbeddedFiles(self, *args)
Definition: pcbnew.py:20640
def SetPrivateLayers(self, aLayers)
Definition: pcbnew.py:20025
def HitTestAccurate(self, aPosition, aAccuracy=0)
Definition: pcbnew.py:20374
def GetClearanceOverrides(self, aSource)
Definition: pcbnew.py:20258
def SetLayerAndFlip(self, aLayer)
Definition: pcbnew.py:20115
def SetLibDescription(self, aDesc)
Definition: pcbnew.py:20147
def IncrementFlag(self)
Definition: pcbnew.py:20239
def GetField(self, *args)
Definition: pcbnew.py:20434
def SetDNP(self, aDNP=True)
Definition: pcbnew.py:20517
def IsLibNameValid(aName)
Definition: pcbnew.py:20594
def SetBoardOnly(self, aIsBoardOnly=True)
Definition: pcbnew.py:20485
def HitTestOnLayer(self, *args)
Definition: pcbnew.py:20385
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:20215
def GetFPID(self)
Definition: pcbnew.py:20127
def GetComponentClass(self)
Definition: pcbnew.py:20655
def ClassOf(aItem)
Definition: pcbnew.py:20017
def GetArea(self, aPadding=0)
Definition: pcbnew.py:20565
def GetFpPadsLocalBbox(self)
Definition: pcbnew.py:20045
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:20195
def GetCachedCourtyard(self, aLayer)
Definition: pcbnew.py:20628
def __eq__(self, aOther)
Definition: pcbnew.py:19986
def __init__(self)
Definition: pcbnew.py:19976
def GetFootprint(self)
Definition: pcbnew.py:7786
def __init__(self, aFootprint, aFileName)
Definition: pcbnew.py:7774
def SetFilePath(self, aFilePath)
Definition: pcbnew.py:7782
def GetFileName(self)
Definition: pcbnew.py:7778
def GetFootprints(self)
Definition: pcbnew.py:7815
def __init__(self, aOwner, aLibraryPath)
Definition: pcbnew.py:7799
def Remove(self, aFootprintName)
Definition: pcbnew.py:7827
def IsPath(self, aPath)
Definition: pcbnew.py:7840
def Save(self, aFootprint=None)
Definition: pcbnew.py:7819
def IsWritable(self)
Definition: pcbnew.py:7807
def Exists(self)
Definition: pcbnew.py:7811
def GetPath(self)
Definition: pcbnew.py:7803
def Load(self)
Definition: pcbnew.py:7823
def GetTimestamp(aLibPath)
Definition: pcbnew.py:7832
def IsModified(self)
Definition: pcbnew.py:7836
def SetPath(self, aPath)
Definition: pcbnew.py:7844
def __init__(self)
Definition: pcbnew.py:4282
def __init__(self, page, name, units, default, **kwarg)
Definition: pcbnew.py:4307
def Check(self, min_value=None, max_value=None, multiple=None, info=None)
Definition: pcbnew.py:4341
def SetValue(self, new_value)
Definition: pcbnew.py:4415
def AddError(self, err, info=None)
Definition: pcbnew.py:4332
def CheckParam(self, page, name, **kwarg)
Definition: pcbnew.py:4509
def GetParameterPageName(self, page_n)
Definition: pcbnew.py:4527
def GetParameterValues(self, page_index)
Definition: pcbnew.py:4550
def GetParameterErrors(self, page_index)
Definition: pcbnew.py:4554
def SetParameterValues(self, page_index, list_of_values)
Definition: pcbnew.py:4570
def GetParametersByPageIndex(self, page_index)
Definition: pcbnew.py:4539
def GetParam(self, page, name)
Definition: pcbnew.py:4502
def GetNumParameterPages(self)
Definition: pcbnew.py:4524
def GetParametersByPageName(self, page_name)
Definition: pcbnew.py:4530
def GetParameterNames(self, page_index)
Definition: pcbnew.py:4546
def GetParameterDesignators(self, page_index)
Definition: pcbnew.py:4542
def AddParam(self, page, name, unit, default, **kwarg)
Definition: pcbnew.py:4460
def GetParameterHints(self, page_index)
Definition: pcbnew.py:4562
def GetParameterTypes(self, page_index)
Definition: pcbnew.py:4558
def DefaultVisible()
Definition: pcbnew.py:3200
def Contains(self, aPos)
Definition: pcbnew.py:3191
def set(self, *args)
Definition: pcbnew.py:3183
def __init__(self, *args)
Definition: pcbnew.py:3175
def Seq(self)
Definition: pcbnew.py:3195
def GenDrillReportFile(self, aFullFileName)
Definition: pcbnew.py:8940
def SetMapFileFormat(self, aMapFmt)
Definition: pcbnew.py:8932
def CreateMapFilesSet(self, aPlotDirectory, aReporter=None)
Definition: pcbnew.py:8936
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:8901
def SetPageInfo(self, aPageInfo)
Definition: pcbnew.py:8928
def SetMergeOption(self, aMerge)
Definition: pcbnew.py:8920
def __iter__(self)
Definition: pcbnew.py:12367
def pop_back(self)
Definition: pcbnew.py:12463
def resize(self, *args)
Definition: pcbnew.py:12499
def __bool__(self)
Definition: pcbnew.py:12374
def empty(self)
Definition: pcbnew.py:12427
def append(self, x)
Definition: pcbnew.py:12423
def front(self)
Definition: pcbnew.py:12487
def iterator(self)
Definition: pcbnew.py:12364
def rbegin(self)
Definition: pcbnew.py:12447
def __delitem__(self, *args)
Definition: pcbnew.py:12397
def clear(self)
Definition: pcbnew.py:12455
def __nonzero__(self)
Definition: pcbnew.py:12370
def __getslice__(self, i, j)
Definition: pcbnew.py:12382
def get_allocator(self)
Definition: pcbnew.py:12459
def rend(self)
Definition: pcbnew.py:12451
def swap(self, v)
Definition: pcbnew.py:12435
def insert(self, *args)
Definition: pcbnew.py:12506
def __delslice__(self, i, j)
Definition: pcbnew.py:12393
def begin(self)
Definition: pcbnew.py:12439
def assign(self, n, x)
Definition: pcbnew.py:12495
def size(self)
Definition: pcbnew.py:12431
def pop_front(self)
Definition: pcbnew.py:12513
def __setslice__(self, *args)
Definition: pcbnew.py:12386
def __getitem__(self, *args)
Definition: pcbnew.py:12404
def push_front(self, x)
Definition: pcbnew.py:12517
def back(self)
Definition: pcbnew.py:12491
def __init__(self, *args)
Definition: pcbnew.py:12474
def __len__(self)
Definition: pcbnew.py:12378
def pop(self)
Definition: pcbnew.py:12419
def __setitem__(self, *args)
Definition: pcbnew.py:12411
def erase(self, *args)
Definition: pcbnew.py:12467
def end(self)
Definition: pcbnew.py:12443
def push_back(self, x)
Definition: pcbnew.py:12483
def CreateJobFile(self, aFullFilename)
Definition: pcbnew.py:9046
def __init__(self, aPcb, aReporter=None)
Definition: pcbnew.py:9037
def WriteJSONJobFile(self, aFullFilename)
Definition: pcbnew.py:9050
def AddGbrFile(self, aLayer, aFilename)
Definition: pcbnew.py:9042
def SetFormat(self, aRightDigits=6)
Definition: pcbnew.py:8994
def __init__(self, aPcb)
Definition: pcbnew.py:8989
def SetOptions(self, aOffset)
Definition: pcbnew.py:8998
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:9002
def get_allocator(self)
Definition: pcbnew.py:12293
def __bool__(self)
Definition: pcbnew.py:12208
def __getitem__(self, *args)
Definition: pcbnew.py:12238
def push_back(self, x)
Definition: pcbnew.py:12317
def __delitem__(self, *args)
Definition: pcbnew.py:12231
def __setitem__(self, *args)
Definition: pcbnew.py:12245
def erase(self, *args)
Definition: pcbnew.py:12301
def size(self)
Definition: pcbnew.py:12265
def __getslice__(self, i, j)
Definition: pcbnew.py:12216
def front(self)
Definition: pcbnew.py:12321
def pop_front(self)
Definition: pcbnew.py:12347
def swap(self, v)
Definition: pcbnew.py:12269
def end(self)
Definition: pcbnew.py:12277
def pop(self)
Definition: pcbnew.py:12253
def insert(self, *args)
Definition: pcbnew.py:12340
def __init__(self, *args)
Definition: pcbnew.py:12308
def __delslice__(self, i, j)
Definition: pcbnew.py:12227
def __nonzero__(self)
Definition: pcbnew.py:12204
def assign(self, n, x)
Definition: pcbnew.py:12329
def push_front(self, x)
Definition: pcbnew.py:12351
def append(self, x)
Definition: pcbnew.py:12257
def __len__(self)
Definition: pcbnew.py:12212
def __iter__(self)
Definition: pcbnew.py:12201
def clear(self)
Definition: pcbnew.py:12289
def resize(self, *args)
Definition: pcbnew.py:12333
def back(self)
Definition: pcbnew.py:12325
def pop_back(self)
Definition: pcbnew.py:12297
def __setslice__(self, *args)
Definition: pcbnew.py:12220
def rend(self)
Definition: pcbnew.py:12285
def empty(self)
Definition: pcbnew.py:12261
def rbegin(self)
Definition: pcbnew.py:12281
def begin(self)
Definition: pcbnew.py:12273
def iterator(self)
Definition: pcbnew.py:12198
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:19065
def __init__(self)
Definition: pcbnew.py:8859
def __init__(self, aStream, aSource)
Definition: pcbnew.py:1964
def __init__(self, *args)
Definition: pcbnew.py:452
def Where(self)
Definition: pcbnew.py:467
def What(self)
Definition: pcbnew.py:471
def Problem(self)
Definition: pcbnew.py:463
def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
Definition: pcbnew.py:459
def __init__(self, aPcb, aParent=None)
Definition: pcbnew.py:8760
def Write(self, aFilename)
Definition: pcbnew.py:8765
def __init__(self)
Definition: pcbnew.py:9024
def MakeRelativeTo(self, aPath)
Definition: pcbnew.py:1136
def __iadd__(self, aRhs)
Definition: pcbnew.py:1160
def EndsWith(self, aPath)
Definition: pcbnew.py:1140
def __init__(self, *args)
Definition: pcbnew.py:1129
def AsString(self)
Definition: pcbnew.py:1144
def __eq__(self, rhs)
Definition: pcbnew.py:1148
def __gt__(self, rhs)
Definition: pcbnew.py:1156
def __lt__(self, rhs)
Definition: pcbnew.py:1152
def swap(self, v)
Definition: pcbnew.py:1034
def rbegin(self)
Definition: pcbnew.py:1046
def __setitem__(self, *args)
Definition: pcbnew.py:1010
def __delitem__(self, *args)
Definition: pcbnew.py:996
def erase(self, *args)
Definition: pcbnew.py:1066
def __iter__(self)
Definition: pcbnew.py:966
def insert(self, *args)
Definition: pcbnew.py:1105
def push_back(self, x)
Definition: pcbnew.py:1082
def resize(self, *args)
Definition: pcbnew.py:1098
def reserve(self, n)
Definition: pcbnew.py:1112
def __init__(self, *args)
Definition: pcbnew.py:1073
def __nonzero__(self)
Definition: pcbnew.py:969
def assign(self, n, x)
Definition: pcbnew.py:1094
def __getitem__(self, *args)
Definition: pcbnew.py:1003
def pop_back(self)
Definition: pcbnew.py:1062
def get_allocator(self)
Definition: pcbnew.py:1058
def __bool__(self)
Definition: pcbnew.py:973
def iterator(self)
Definition: pcbnew.py:963
def capacity(self)
Definition: pcbnew.py:1116
def __len__(self)
Definition: pcbnew.py:977
def __setslice__(self, *args)
Definition: pcbnew.py:985
def __getslice__(self, i, j)
Definition: pcbnew.py:981
def __delslice__(self, i, j)
Definition: pcbnew.py:992
def append(self, x)
Definition: pcbnew.py:1022
def CreateNilUuids(aNil=True)
Definition: pcbnew.py:917
def AsString(self)
Definition: pcbnew.py:899
def ConvertTimestampToUuid(self)
Definition: pcbnew.py:926
def __ne__(self, rhs)
Definition: pcbnew.py:938
def AsLegacyTimestampString(self)
Definition: pcbnew.py:903
def Hash(self)
Definition: pcbnew.py:887
def Clone(self, aUUID)
Definition: pcbnew.py:883
def SniffTest(aCandidate)
Definition: pcbnew.py:912
def IsLegacyTimestamp(self)
Definition: pcbnew.py:891
def AsLegacyTimestamp(self)
Definition: pcbnew.py:895
def __init__(self, *args)
Definition: pcbnew.py:872
def AsStdString(self)
Definition: pcbnew.py:907
def __lt__(self, rhs)
Definition: pcbnew.py:942
def __eq__(self, rhs)
Definition: pcbnew.py:934
def __gt__(self, rhs)
Definition: pcbnew.py:946
def Increment(self)
Definition: pcbnew.py:930
def SeedGenerator(aSeed)
Definition: pcbnew.py:922
def __init__(self, *args)
Definition: pcbnew.py:432
def What(self)
Definition: pcbnew.py:439
def GetPluginPath(self)
Definition: pcbnew.py:4277
def deregister(self)
Definition: pcbnew.py:4263
def __init__(self)
Definition: pcbnew.py:4235
def register(self)
Definition: pcbnew.py:4238
def clear(self)
Definition: pcbnew.py:19037
def __init__(self)
Definition: pcbnew.py:19033
def ShowType(aType)
Definition: pcbnew.py:19048
def ParseType(aType)
Definition: pcbnew.py:19053
def IsLegacy(self)
Definition: pcbnew.py:7509
def GetSubLibraryName(self)
Definition: pcbnew.py:7477
def GetLibNickname(self)
Definition: pcbnew.py:7453
def SetLibItemName(self, aLibItemName)
Definition: pcbnew.py:7473
def HasIllegalChars(aLibItemName)
Definition: pcbnew.py:7542
def GetUniStringLibId(self)
Definition: pcbnew.py:7493
def SetSubLibraryName(self, aName)
Definition: pcbnew.py:7481
def clear(self)
Definition: pcbnew.py:7513
def GetUniStringSubLibraryName(self)
Definition: pcbnew.py:7485
def __init__(self, *args)
Definition: pcbnew.py:7442
def FindIllegalLibraryNameChar(aLibraryName)
Definition: pcbnew.py:7552
def empty(self)
Definition: pcbnew.py:7517
def __eq__(self, aLibId)
Definition: pcbnew.py:7533
def FixIllegalChars(aLibItemName, aLib)
Definition: pcbnew.py:7547
def __gt__(self, aLibId)
Definition: pcbnew.py:7529
def GetFullLibraryName(self)
Definition: pcbnew.py:7489
def Format(*args)
Definition: pcbnew.py:7498
def IsValid(self)
Definition: pcbnew.py:7505
def Parse(self, aId, aFix=False)
Definition: pcbnew.py:7449
def GetUniStringLibItemName(self)
Definition: pcbnew.py:7469
def GetLibItemName(self)
Definition: pcbnew.py:7465
def __ne__(self, aLibId)
Definition: pcbnew.py:7537
def compare(self, aLibId)
Definition: pcbnew.py:7521
def SetLibNickname(self, aLibNickname)
Definition: pcbnew.py:7461
def GetUniStringLibNickname(self)
Definition: pcbnew.py:7457
def __lt__(self, aLibId)
Definition: pcbnew.py:7525
def LineNumber(self)
Definition: pcbnew.py:1898
def Line(self)
Definition: pcbnew.py:1894
def Length(self)
Definition: pcbnew.py:1902
def ReadLine(self)
Definition: pcbnew.py:1886
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:1881
def GetSource(self)
Definition: pcbnew.py:1890
def TestLayers(self, aRhs, aLhs)
Definition: pcbnew.py:9488
def __init__(self, *args)
Definition: pcbnew.py:9481
def BackAssembly()
Definition: pcbnew.py:9542
def Contains(self, aLayer)
Definition: pcbnew.py:9512
def RemoveLayer(self, layer)
Definition: pcbnew.py:9712
def PhysicalLayersMask()
Definition: pcbnew.py:9617
def BackTechMask()
Definition: pcbnew.py:9577
def NameToLayer(aName)
Definition: pcbnew.py:9522
def FmtHex(self)
Definition: pcbnew.py:9662
def Flip(self, aCopperLayersCount=0)
Definition: pcbnew.py:9681
def addLayer(self, aLayer)
Definition: pcbnew.py:9690
def Seq(self, *args)
Definition: pcbnew.py:9643
def SeqStackupForPlotting(self)
Definition: pcbnew.py:9654
def AddLayer(self, layer)
Definition: pcbnew.py:9706
def SideSpecificMask()
Definition: pcbnew.py:9607
def IsBetween(aStart, aEnd, aLayer)
Definition: pcbnew.py:9527
def UIOrder(self)
Definition: pcbnew.py:9639
def AllTechMask()
Definition: pcbnew.py:9587
def addLayerSet(self, aLayerSet)
Definition: pcbnew.py:9698
def AllCuMask(aCuLayerCount=32)
Definition: pcbnew.py:9547
def AllBoardTechMask()
Definition: pcbnew.py:9592
def AllNonCuMask()
Definition: pcbnew.py:9557
def CuStack(self)
Definition: pcbnew.py:9631
def ForbiddenFootprintLayers()
Definition: pcbnew.py:9627
def removeLayerSet(self, aLayerSet)
Definition: pcbnew.py:9702
def AllLayersMask()
Definition: pcbnew.py:9562
def AddLayerSet(self, layers)
Definition: pcbnew.py:9709
def ParseHex(self, *args)
Definition: pcbnew.py:9666
def __init__(self, *args)
Definition: pcbnew.py:9501
def InternalCuMask()
Definition: pcbnew.py:9532
def FrontTechMask()
Definition: pcbnew.py:9567
def TechAndUserUIOrder(self)
Definition: pcbnew.py:9635
def UserDefinedLayers()
Definition: pcbnew.py:9622
def BackBoardTechMask()
Definition: pcbnew.py:9582
def FrontAssembly()
Definition: pcbnew.py:9537
def ExternalCuMask()
Definition: pcbnew.py:9552
def BackMask()
Definition: pcbnew.py:9602
def UserMask()
Definition: pcbnew.py:9612
def FrontMask()
Definition: pcbnew.py:9597
def RunOnLayers(self, aFunction)
Definition: pcbnew.py:9658
def LayerCount(aStart, aEnd, aCopperLayerCount)
Definition: pcbnew.py:9686
def ExtractLayer(self)
Definition: pcbnew.py:9677
def FrontBoardTechMask()
Definition: pcbnew.py:9572
def FmtBin(self)
Definition: pcbnew.py:9673
def removeLayer(self, aLayer)
Definition: pcbnew.py:9694
def Name(aLayerId)
Definition: pcbnew.py:9517
def RemoveLayerSet(self, layers)
Definition: pcbnew.py:9715
def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:9650
def count(self, x)
Definition: pcbnew.py:19921
def has_key(self, key)
Definition: pcbnew.py:19838
def __delitem__(self, key)
Definition: pcbnew.py:19834
def erase(self, *args)
Definition: pcbnew.py:19925
def __contains__(self, key)
Definition: pcbnew.py:19854
def upper_bound(self, x)
Definition: pcbnew.py:19941
def __setitem__(self, *args)
Definition: pcbnew.py:19866
def value_iterator(self)
Definition: pcbnew.py:19862
def __init__(self, *args)
Definition: pcbnew.py:19877
def __getitem__(self, key)
Definition: pcbnew.py:19830
def lower_bound(self, x)
Definition: pcbnew.py:19937
def back(self)
Definition: pcbnew.py:11651
def empty(self)
Definition: pcbnew.py:11587
def __len__(self)
Definition: pcbnew.py:11538
def capacity(self)
Definition: pcbnew.py:11677
def __getslice__(self, i, j)
Definition: pcbnew.py:11542
def pop(self)
Definition: pcbnew.py:11579
def __delitem__(self, *args)
Definition: pcbnew.py:11557
def __nonzero__(self)
Definition: pcbnew.py:11530
def __iter__(self)
Definition: pcbnew.py:11527
def rend(self)
Definition: pcbnew.py:11611
def __init__(self, *args)
Definition: pcbnew.py:11634
def size(self)
Definition: pcbnew.py:11591
def begin(self)
Definition: pcbnew.py:11599
def resize(self, *args)
Definition: pcbnew.py:11659
def front(self)
Definition: pcbnew.py:11647
def append(self, x)
Definition: pcbnew.py:11583
def get_allocator(self)
Definition: pcbnew.py:11619
def swap(self, v)
Definition: pcbnew.py:11595
def __setitem__(self, *args)
Definition: pcbnew.py:11571
def erase(self, *args)
Definition: pcbnew.py:11627
def rbegin(self)
Definition: pcbnew.py:11607
def reserve(self, n)
Definition: pcbnew.py:11673
def __getitem__(self, *args)
Definition: pcbnew.py:11564
def __setslice__(self, *args)
Definition: pcbnew.py:11546
def clear(self)
Definition: pcbnew.py:11615
def push_back(self, x)
Definition: pcbnew.py:11643
def pop_back(self)
Definition: pcbnew.py:11623
def iterator(self)
Definition: pcbnew.py:11524
def insert(self, *args)
Definition: pcbnew.py:11666
def __delslice__(self, i, j)
Definition: pcbnew.py:11553
def assign(self, n, x)
Definition: pcbnew.py:11655
def __bool__(self)
Definition: pcbnew.py:11534
def end(self)
Definition: pcbnew.py:11603
def IsExcluded(self)
Definition: pcbnew.py:2440
def GetBoundingBoxMarker(self)
Definition: pcbnew.py:2467
def GetUUID(self)
Definition: pcbnew.py:2428
def MarkerScale(self)
Definition: pcbnew.py:2408
def GetMarkerType(self)
Definition: pcbnew.py:2436
def GetPos(self)
Definition: pcbnew.py:2424
def PrintMarker(self, aSettings, aOffset)
Definition: pcbnew.py:2420
def GetComment(self)
Definition: pcbnew.py:2448
def GetSeverity(self)
Definition: pcbnew.py:2452
def SetExcluded(self, *args)
Definition: pcbnew.py:2444
def HitTestMarker(self, *args)
Definition: pcbnew.py:2460
def SetMarkerType(self, aMarkerType)
Definition: pcbnew.py:2432
def ShapeToPolygon(self, aPolygon, aScale=-1)
Definition: pcbnew.py:2416
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:2389
def SetMarkerScale(self, aScale)
Definition: pcbnew.py:2412
def GetRCItem(self)
Definition: pcbnew.py:2456
def SetClearanceParent(self, parent)
Definition: pcbnew.py:18313
def SetBusWidth(self, aWidth)
Definition: pcbnew.py:18569
def HasuViaDiameter(self)
Definition: pcbnew.py:18393
def HasWireWidth(self)
Definition: pcbnew.py:18533
def SetViaDiameterParent(self, parent)
Definition: pcbnew.py:18361
def __eq__(self, other)
Definition: pcbnew.py:18245
def SetTrackWidth(self, aWidth)
Definition: pcbnew.py:18333
def SetDiffPairWidthParent(self, parent)
Definition: pcbnew.py:18457
def GetTrackWidth(self)
Definition: pcbnew.py:18325
def GetLineStyle(self)
Definition: pcbnew.py:18601
def GetViaDiameterParent(self)
Definition: pcbnew.py:18365
def GetViaDiameterOpt(self)
Definition: pcbnew.py:18353
def SetBusWidthParent(self, parent)
Definition: pcbnew.py:18573
def SetuViaDiameter(self, aSize)
Definition: pcbnew.py:18405
def GetDiffPairWidthOpt(self)
Definition: pcbnew.py:18449
def GetName(self)
Definition: pcbnew.py:18281
def __init__(self, aName, aInitWithDefaults=True)
Definition: pcbnew.py:18240
def HasDiffPairWidth(self)
Definition: pcbnew.py:18441
def ResetParameters(self)
Definition: pcbnew.py:18257
def GetClearance(self)
Definition: pcbnew.py:18301
def GetClearanceParent(self)
Definition: pcbnew.py:18317
def GetConstituentNetclasses(self)
Definition: pcbnew.py:18261
def SetDescription(self, aDesc)
Definition: pcbnew.py:18293
def HasClearance(self)
Definition: pcbnew.py:18297
def SetDiffPairViaGapParent(self, parent)
Definition: pcbnew.py:18505
def GetDiffPairViaGapOpt(self)
Definition: pcbnew.py:18497
def SetWireWidthParent(self, parent)
Definition: pcbnew.py:18549
def SetPriority(self, aPriority)
Definition: pcbnew.py:18621
def GetDiffPairGapOpt(self)
Definition: pcbnew.py:18473
def GetWireWidthOpt(self)
Definition: pcbnew.py:18541
def GetDiffPairGapParent(self)
Definition: pcbnew.py:18485
def SetLineStyle(self, aStyle)
Definition: pcbnew.py:18609
def SetConstituentNetclasses(self, constituents)
Definition: pcbnew.py:18265
def HasuViaDrill(self)
Definition: pcbnew.py:18417
def ResetParents(self)
Definition: pcbnew.py:18253
def GetClearanceOpt(self)
Definition: pcbnew.py:18305
def HasLineStyle(self)
Definition: pcbnew.py:18597
def GetLineStyleParent(self)
Definition: pcbnew.py:18617
def GetBusWidthParent(self)
Definition: pcbnew.py:18577
def GetuViaDrillParent(self)
Definition: pcbnew.py:18437
def GetBusWidth(self)
Definition: pcbnew.py:18561
def GetViaDrillParent(self)
Definition: pcbnew.py:18389
def SetDiffPairGap(self, aSize)
Definition: pcbnew.py:18477
def GetuViaDrill(self)
Definition: pcbnew.py:18421
def GetViaDrill(self)
Definition: pcbnew.py:18373
def GetSchematicColorParent(self)
Definition: pcbnew.py:18593
def GetDescription(self)
Definition: pcbnew.py:18289
def GetPcbColor(self, aIsForSave=False)
Definition: pcbnew.py:18517
def GetLineStyleOpt(self)
Definition: pcbnew.py:18605
def GetViaDrillOpt(self)
Definition: pcbnew.py:18377
def GetTrackWidthOpt(self)
Definition: pcbnew.py:18329
def SetDiffPairViaGap(self, aSize)
Definition: pcbnew.py:18501
def GetDiffPairViaGap(self)
Definition: pcbnew.py:18493
def GetDiffPairWidth(self)
Definition: pcbnew.py:18445
def SetPcbColor(self, aColor)
Definition: pcbnew.py:18521
def HasViaDrill(self)
Definition: pcbnew.py:18369
def SetSchematicColorParent(self, parent)
Definition: pcbnew.py:18589
def SetuViaDrillParent(self, parent)
Definition: pcbnew.py:18433
def GetuViaDiameterOpt(self)
Definition: pcbnew.py:18401
def SetName(self, aName)
Definition: pcbnew.py:18285
def GetDiffPairWidthParent(self)
Definition: pcbnew.py:18461
def GetBusWidthOpt(self)
Definition: pcbnew.py:18565
def SetWireWidth(self, aWidth)
Definition: pcbnew.py:18545
def SetSchematicColor(self, aColor)
Definition: pcbnew.py:18585
def GetDiffPairViaGapParent(self)
Definition: pcbnew.py:18509
def SetTrackWidthParent(self, parent)
Definition: pcbnew.py:18337
def HasTrackWidth(self)
Definition: pcbnew.py:18321
def GetuViaDrillOpt(self)
Definition: pcbnew.py:18425
def GetPriority(self)
Definition: pcbnew.py:18625
def HasViaDiameter(self)
Definition: pcbnew.py:18345
def IsDefault(self)
Definition: pcbnew.py:18277
def SetViaDiameter(self, aDia)
Definition: pcbnew.py:18357
def GetWireWidthParent(self)
Definition: pcbnew.py:18553
def ContainsNetclassWithName(self, netclass)
Definition: pcbnew.py:18273
def SetPcbColorParent(self, parent)
Definition: pcbnew.py:18525
def SetuViaDiameterParent(self, parent)
Definition: pcbnew.py:18409
def GetTrackWidthParent(self)
Definition: pcbnew.py:18341
def SetDiffPairGapParent(self, parent)
Definition: pcbnew.py:18481
def HasBusWidth(self)
Definition: pcbnew.py:18557
def SetClearance(self, aClearance)
Definition: pcbnew.py:18309
def GetSchematicColor(self, aIsForSave=False)
Definition: pcbnew.py:18581
def HasDiffPairViaGap(self)
Definition: pcbnew.py:18489
def GetuViaDiameter(self)
Definition: pcbnew.py:18397
def SetuViaDrill(self, aSize)
Definition: pcbnew.py:18429
def GetuViaDiameterParent(self)
Definition: pcbnew.py:18413
def GetPcbColorParent(self)
Definition: pcbnew.py:18529
def GetClass(self)
Definition: pcbnew.py:18249
def GetVariableSubstitutionName(self)
Definition: pcbnew.py:18269
def HasDiffPairGap(self)
Definition: pcbnew.py:18465
def SetViaDrill(self, aSize)
Definition: pcbnew.py:18381
def SetLineStyleParent(self, parent)
Definition: pcbnew.py:18613
def GetDiffPairGap(self)
Definition: pcbnew.py:18469
def GetWireWidth(self)
Definition: pcbnew.py:18537
def HasPcbColor(self)
Definition: pcbnew.py:18513
def SetViaDrillParent(self, parent)
Definition: pcbnew.py:18385
def GetViaDiameter(self)
Definition: pcbnew.py:18349
def SetDiffPairWidth(self, aSize)
Definition: pcbnew.py:18453
def values(self)
Definition: pcbnew.py:17964
def asdict(self)
Definition: pcbnew.py:17991
def __delitem__(self, key)
Definition: pcbnew.py:17952
def has_key(self, key)
Definition: pcbnew.py:17956
def key_iterator(self)
Definition: pcbnew.py:17976
def clear(self)
Definition: pcbnew.py:18031
def find(self, x)
Definition: pcbnew.py:18051
def __len__(self)
Definition: pcbnew.py:17936
def iterkeys(self)
Definition: pcbnew.py:17941
def empty(self)
Definition: pcbnew.py:18003
def __init__(self, *args)
Definition: pcbnew.py:17995
def __contains__(self, key)
Definition: pcbnew.py:17972
def __setitem__(self, *args)
Definition: pcbnew.py:17984
def iterator(self)
Definition: pcbnew.py:17922
def begin(self)
Definition: pcbnew.py:18015
def __getitem__(self, key)
Definition: pcbnew.py:17948
def upper_bound(self, x)
Definition: pcbnew.py:18059
def __nonzero__(self)
Definition: pcbnew.py:17928
def keys(self)
Definition: pcbnew.py:17960
def erase(self, *args)
Definition: pcbnew.py:18043
def __bool__(self)
Definition: pcbnew.py:17932
def swap(self, v)
Definition: pcbnew.py:18011
def items(self)
Definition: pcbnew.py:17968
def __iter__(self)
Definition: pcbnew.py:17925
def itervalues(self)
Definition: pcbnew.py:17943
def value_iterator(self)
Definition: pcbnew.py:17980
def iteritems(self)
Definition: pcbnew.py:17945
def lower_bound(self, x)
Definition: pcbnew.py:18055
def rbegin(self)
Definition: pcbnew.py:18023
def rend(self)
Definition: pcbnew.py:18027
def get_allocator(self)
Definition: pcbnew.py:18035
def count(self, x)
Definition: pcbnew.py:18039
def size(self)
Definition: pcbnew.py:18007
def HasAutoGeneratedNetname(self)
Definition: pcbnew.py:17732
def GetNetClass(self)
Definition: pcbnew.py:17704
def SetNetname(self, aNewName)
Definition: pcbnew.py:17736
def GetDisplayNetname(self)
Definition: pcbnew.py:17728
def SetNetCode(self, aNetCode)
Definition: pcbnew.py:17716
def SetIsCurrent(self, isCurrent)
Definition: pcbnew.py:17744
def GetShortNetname(self)
Definition: pcbnew.py:17724
def SetNetClass(self, aNetClass)
Definition: pcbnew.py:17700
def GetNetClassSlow(self)
Definition: pcbnew.py:17708
def IsCurrent(self)
Definition: pcbnew.py:17740
def GetNetClassName(self)
Definition: pcbnew.py:17760
def ClassOf(aItem)
Definition: pcbnew.py:17696
def GetParent(self)
Definition: pcbnew.py:17756
def __init__(self, *args)
Definition: pcbnew.py:17690
def SetParent(self, aParent)
Definition: pcbnew.py:17752
def GetNetname(self)
Definition: pcbnew.py:17720
def GetNetCode(self)
Definition: pcbnew.py:17712
def Clear(self)
Definition: pcbnew.py:17748
def NetsByNetcode(self)
Definition: pcbnew.py:18092
def __init__(self, aParent)
Definition: pcbnew.py:18072
def GetNetCount(self)
Definition: pcbnew.py:18084
def GetNetItem(self, *args)
Definition: pcbnew.py:18077
def RebuildDisplayNetnames(self)
Definition: pcbnew.py:18096
def NetsByName(self)
Definition: pcbnew.py:18088
def GetParent(self)
Definition: pcbnew.py:18105
def __contains__(self, key)
Definition: pcbnew.py:17822
def __init__(self, *args)
Definition: pcbnew.py:17845
def get_allocator(self)
Definition: pcbnew.py:17885
def __len__(self)
Definition: pcbnew.py:17786
def iteritems(self)
Definition: pcbnew.py:17795
def size(self)
Definition: pcbnew.py:17857
def value_iterator(self)
Definition: pcbnew.py:17830
def find(self, x)
Definition: pcbnew.py:17901
def __iter__(self)
Definition: pcbnew.py:17775
def empty(self)
Definition: pcbnew.py:17853
def __nonzero__(self)
Definition: pcbnew.py:17778
def values(self)
Definition: pcbnew.py:17814
def lower_bound(self, x)
Definition: pcbnew.py:17905
def rbegin(self)
Definition: pcbnew.py:17873
def asdict(self)
Definition: pcbnew.py:17841
def keys(self)
Definition: pcbnew.py:17810
def __delitem__(self, key)
Definition: pcbnew.py:17802
def __getitem__(self, key)
Definition: pcbnew.py:17798
def iterator(self)
Definition: pcbnew.py:17772
def begin(self)
Definition: pcbnew.py:17865
def upper_bound(self, x)
Definition: pcbnew.py:17909
def items(self)
Definition: pcbnew.py:17818
def erase(self, *args)
Definition: pcbnew.py:17893
def rend(self)
Definition: pcbnew.py:17877
def has_key(self, key)
Definition: pcbnew.py:17806
def iterkeys(self)
Definition: pcbnew.py:17791
def count(self, x)
Definition: pcbnew.py:17889
def key_iterator(self)
Definition: pcbnew.py:17826
def swap(self, v)
Definition: pcbnew.py:17861
def itervalues(self)
Definition: pcbnew.py:17793
def clear(self)
Definition: pcbnew.py:17881
def __setitem__(self, *args)
Definition: pcbnew.py:17834
def __bool__(self)
Definition: pcbnew.py:17782
def GetNetColorAssignments(self)
Definition: pcbnew.py:11266
def GetNetclassPatternAssignments(self)
Definition: pcbnew.py:11246
def HasEffectiveNetClass(self, aNetName)
Definition: pcbnew.py:11274
def __ne__(self, aOther)
Definition: pcbnew.py:11178
def SetNetclassPatternAssignments(self, netclassPatterns)
Definition: pcbnew.py:11242
def GetDefaultNetclass(self)
Definition: pcbnew.py:11186
def HasNetclass(self, netclassName)
Definition: pcbnew.py:11190
def ParseBusGroup(aGroup, name, aMemberList)
Definition: pcbnew.py:11300
def GetEffectiveNetClass(self, aNetName)
Definition: pcbnew.py:11282
def GetNetclasses(self)
Definition: pcbnew.py:11202
def ClearAllCaches(self)
Definition: pcbnew.py:11258
def ClearNetColorAssignments(self)
Definition: pcbnew.py:11270
def GetCachedEffectiveNetClass(self, aNetName)
Definition: pcbnew.py:11278
def AppendNetclassLabelAssignment(self, netName, netclasses)
Definition: pcbnew.py:11230
def SetNetclassLabelAssignment(self, netName, netclasses)
Definition: pcbnew.py:11226
def SetNetclass(self, netclassName, netclass)
Definition: pcbnew.py:11194
def GetNetClassByName(self, aNetName)
Definition: pcbnew.py:11290
def SetNetColorAssignment(self, netName, color)
Definition: pcbnew.py:11262
def HasNetclassLabelAssignment(self, netName)
Definition: pcbnew.py:11234
def SetNetclassPatternAssignment(self, pattern, netclass)
Definition: pcbnew.py:11238
def __init__(self, aParent, aPath)
Definition: pcbnew.py:11169
def ClearNetclassLabelAssignments(self)
Definition: pcbnew.py:11218
def SetNetclasses(self, netclasses)
Definition: pcbnew.py:11198
def ClearCacheForNet(self, netName)
Definition: pcbnew.py:11254
def ClearNetclassPatternAssignments(self)
Definition: pcbnew.py:11250
def RecomputeEffectiveNetclasses(self)
Definition: pcbnew.py:11286
def GetNetclassLabelAssignments(self)
Definition: pcbnew.py:11214
def __eq__(self, aOther)
Definition: pcbnew.py:11174
def ClearNetclasses(self)
Definition: pcbnew.py:11210
def SetDefaultNetclass(self, netclass)
Definition: pcbnew.py:11182
def GetCompositeNetclasses(self)
Definition: pcbnew.py:11206
def ClearNetclassLabelAssignment(self, netName)
Definition: pcbnew.py:11222
def ParseBusVector(aBus, aName, aMemberList)
Definition: pcbnew.py:11295
def GetQuoteChar(self, wrapee)
Definition: pcbnew.py:1990
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:1978
def Quotew(self, aWrapee)
Definition: pcbnew.py:1998
def Quotes(self, aWrapee)
Definition: pcbnew.py:1994
def Print(self, *args)
Definition: pcbnew.py:1983
def Primitives(self, *args)
Definition: pcbnew.py:13397
def Similarity(self, aOther)
Definition: pcbnew.py:13137
def EndLayer(self)
Definition: pcbnew.py:13160
def ChamferPositions(self, *args)
Definition: pcbnew.py:13325
def SetThermalSpokeAngle(self, aAngle, aLayer=F_Cu)
Definition: pcbnew.py:13393
def SetMode(self, aMode)
Definition: pcbnew.py:13168
def AppendPrimitives(self, aPrimitivesList, aLayer)
Definition: pcbnew.py:13408
def GetOrientation(self)
Definition: pcbnew.py:13176
def SetLayerSet(self, aSet)
Definition: pcbnew.py:13148
def SetRoundRectRadius(self, aRadius, aLayer)
Definition: pcbnew.py:13313
def DrillShape(self)
Definition: pcbnew.py:13271
def SetUnconnectedLayerMode(self, aMode)
Definition: pcbnew.py:13202
def Size(self, aLayer)
Definition: pcbnew.py:13267
def IsTented(self, aSide)
Definition: pcbnew.py:13227
def AddPrimitive(self, aShape, aLayer)
Definition: pcbnew.py:13404
def RoundRectRadius(self, aLayer)
Definition: pcbnew.py:13309
def RelevantShapeLayers(self, aOther)
Definition: pcbnew.py:13251
def SolderPasteMargin(self, *args)
Definition: pcbnew.py:13350
def Serialize(self, aContainer)
Definition: pcbnew.py:13124
def FlipLayers(self, aCopperLayerCount)
Definition: pcbnew.py:13152
def Drill(self, *args)
Definition: pcbnew.py:13184
def Name(self)
Definition: pcbnew.py:13172
def Mode(self)
Definition: pcbnew.py:13164
def EffectiveLayerFor(self, aLayer)
Definition: pcbnew.py:13247
def ClearPrimitives(self, aLayer)
Definition: pcbnew.py:13416
def SetRoundRectRadiusRatio(self, aRatio, aLayer)
Definition: pcbnew.py:13305
def DefaultThermalSpokeAngleForShape(self, aLayer=F_Cu)
Definition: pcbnew.py:13385
def SecondaryDrill(self, *args)
Definition: pcbnew.py:13191
def SolderMaskMargin(self, *args)
Definition: pcbnew.py:13343
def SetSize(self, aSize, aLayer)
Definition: pcbnew.py:13263
def Shape(self, aLayer)
Definition: pcbnew.py:13255
def Clearance(self, *args)
Definition: pcbnew.py:13336
def __ne__(self, aOther)
Definition: pcbnew.py:13120
def StartLayer(self)
Definition: pcbnew.py:13156
def CopperLayer(self, *args)
Definition: pcbnew.py:13206
def ZoneConnection(self, *args)
Definition: pcbnew.py:13364
def ThermalGap(self, *args)
Definition: pcbnew.py:13378
def Offset(self, *args)
Definition: pcbnew.py:13279
def LayerSet(self, *args)
Definition: pcbnew.py:13141
def ForEachUniqueLayer(self, aMethod)
Definition: pcbnew.py:13239
def ThermalSpokeAngle(self, aLayer=F_Cu)
Definition: pcbnew.py:13389
def SetDrillShape(self, aShape)
Definition: pcbnew.py:13275
def SetChamferPositions(self, aPositions, aLayer)
Definition: pcbnew.py:13332
def SolderPasteMarginRatio(self, *args)
Definition: pcbnew.py:13357
def RoundRectRadiusRatio(self, aLayer)
Definition: pcbnew.py:13301
def ReplacePrimitives(self, aPrimitivesList, aLayer)
Definition: pcbnew.py:13412
def __init__(self, *args)
Definition: pcbnew.py:13109
def FrontOuterLayers(self, *args)
Definition: pcbnew.py:13213
def UniqueLayers(self)
Definition: pcbnew.py:13243
def SetShape(self, aShape, aLayer)
Definition: pcbnew.py:13259
def Compare(aPadstackRef, aPadstackCmp)
Definition: pcbnew.py:13133
def SetOrientation(self, aAngle)
Definition: pcbnew.py:13180
def ChamferRatio(self, aLayer)
Definition: pcbnew.py:13317
def SetChamferRatio(self, aRatio, aLayer)
Definition: pcbnew.py:13321
def SetAnchorShape(self, aShape, aLayer)
Definition: pcbnew.py:13290
def ThermalSpokeWidth(self, *args)
Definition: pcbnew.py:13371
def SetCustomShapeInZoneMode(self, aM)
Definition: pcbnew.py:13235
def AnchorShape(self, aLayer)
Definition: pcbnew.py:13286
def Deserialize(self, aContainer)
Definition: pcbnew.py:13128
def __eq__(self, aOther)
Definition: pcbnew.py:13116
def BackOuterLayers(self, *args)
Definition: pcbnew.py:13220
def CustomShapeInZoneMode(self)
Definition: pcbnew.py:13231
def UnconnectedLayerMode(self)
Definition: pcbnew.py:13198
def TrapezoidDeltaSize(self, *args)
Definition: pcbnew.py:13294
def insert(self, *args)
Definition: pcbnew.py:17500
def rend(self)
Definition: pcbnew.py:17445
def back(self)
Definition: pcbnew.py:17485
def swap(self, v)
Definition: pcbnew.py:17429
def __delitem__(self, *args)
Definition: pcbnew.py:17391
def reserve(self, n)
Definition: pcbnew.py:17507
def capacity(self)
Definition: pcbnew.py:17511
def __getitem__(self, *args)
Definition: pcbnew.py:17398
def empty(self)
Definition: pcbnew.py:17421
def pop(self)
Definition: pcbnew.py:17413
def __getslice__(self, i, j)
Definition: pcbnew.py:17376
def size(self)
Definition: pcbnew.py:17425
def rbegin(self)
Definition: pcbnew.py:17441
def __len__(self)
Definition: pcbnew.py:17372
def __delslice__(self, i, j)
Definition: pcbnew.py:17387
def clear(self)
Definition: pcbnew.py:17449
def __bool__(self)
Definition: pcbnew.py:17368
def __iter__(self)
Definition: pcbnew.py:17361
def append(self, x)
Definition: pcbnew.py:17417
def assign(self, n, x)
Definition: pcbnew.py:17489
def __setitem__(self, *args)
Definition: pcbnew.py:17405
def pop_back(self)
Definition: pcbnew.py:17457
def resize(self, *args)
Definition: pcbnew.py:17493
def front(self)
Definition: pcbnew.py:17481
def begin(self)
Definition: pcbnew.py:17433
def erase(self, *args)
Definition: pcbnew.py:17461
def __init__(self, *args)
Definition: pcbnew.py:17468
def iterator(self)
Definition: pcbnew.py:17358
def push_back(self, x)
Definition: pcbnew.py:17477
def __nonzero__(self)
Definition: pcbnew.py:17364
def end(self)
Definition: pcbnew.py:17437
def get_allocator(self)
Definition: pcbnew.py:17453
def __setslice__(self, *args)
Definition: pcbnew.py:17380
def rbegin(self)
Definition: pcbnew.py:12789
def front(self)
Definition: pcbnew.py:12829
def erase(self, *args)
Definition: pcbnew.py:12809
def append(self, x)
Definition: pcbnew.py:12765
def rend(self)
Definition: pcbnew.py:12793
def end(self)
Definition: pcbnew.py:12785
def pop_back(self)
Definition: pcbnew.py:12805
def resize(self, *args)
Definition: pcbnew.py:12841
def __getslice__(self, i, j)
Definition: pcbnew.py:12724
def empty(self)
Definition: pcbnew.py:12769
def __setitem__(self, *args)
Definition: pcbnew.py:12753
def __nonzero__(self)
Definition: pcbnew.py:12712
def begin(self)
Definition: pcbnew.py:12781
def size(self)
Definition: pcbnew.py:12773
def iterator(self)
Definition: pcbnew.py:12706
def __delitem__(self, *args)
Definition: pcbnew.py:12739
def push_front(self, x)
Definition: pcbnew.py:12859
def __bool__(self)
Definition: pcbnew.py:12716
def insert(self, *args)
Definition: pcbnew.py:12848
def back(self)
Definition: pcbnew.py:12833
def pop_front(self)
Definition: pcbnew.py:12855
def assign(self, n, x)
Definition: pcbnew.py:12837
def push_back(self, x)
Definition: pcbnew.py:12825
def get_allocator(self)
Definition: pcbnew.py:12801
def __delslice__(self, i, j)
Definition: pcbnew.py:12735
def pop(self)
Definition: pcbnew.py:12761
def __len__(self)
Definition: pcbnew.py:12720
def clear(self)
Definition: pcbnew.py:12797
def swap(self, v)
Definition: pcbnew.py:12777
def __init__(self, *args)
Definition: pcbnew.py:12816
def __iter__(self)
Definition: pcbnew.py:12709
def __getitem__(self, *args)
Definition: pcbnew.py:12746
def __setslice__(self, *args)
Definition: pcbnew.py:12728
def SetOffset(self, *args)
Definition: pcbnew.py:14005
def GetNumber(self)
Definition: pcbnew.py:13485
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:13874
def SetRoundRectRadiusRatio(self, *args)
Definition: pcbnew.py:14033
def GetOrientation(self)
Definition: pcbnew.py:13651
def GetDrillSizeY(self)
Definition: pcbnew.py:13593
def ReplacePrimitives(self, aLayer, aPrimitivesList)
Definition: pcbnew.py:13631
def Serialize(self, aContainer)
Definition: pcbnew.py:13435
def Recombine(self, aIsDryRun, aMaxError)
Definition: pcbnew.py:13900
def IsFreePad(self)
Definition: pcbnew.py:13521
def GetAnchorPadShape(self, aLayer)
Definition: pcbnew.py:13533
def GetLocalSpokeWidthOverride(self, aSource=None)
Definition: pcbnew.py:13798
def SetThermalSpokeAngleDegrees(self, aAngle)
Definition: pcbnew.py:13810
def ShapePos(self, aLayer)
Definition: pcbnew.py:13830
def GetRemoveUnconnected(self)
Definition: pcbnew.py:13854
def GetLocalZoneConnection(self)
Definition: pcbnew.py:13743
def GetOffset(self, *args)
Definition: pcbnew.py:13998
def SetThermalSpokeAngle(self, aAngle)
Definition: pcbnew.py:13802
def ConnSMDMask()
Definition: pcbnew.py:13454
def SetSizeY(self, aY)
Definition: pcbnew.py:13565
def __eq__(self, *args)
Definition: pcbnew.py:13949
def DeletePrimitivesList(self, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:13619
def GetBoundingRadius(self)
Definition: pcbnew.py:13767
def SetChamferPositions(self, *args)
Definition: pcbnew.py:14061
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:13735
def SetDrillSizeX(self, aX)
Definition: pcbnew.py:13581
def SetPinType(self, aType)
Definition: pcbnew.py:13501
def Padstack(self, *args)
Definition: pcbnew.py:13597
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc=ERROR_INSIDE, ignoreLineWidth=False)
Definition: pcbnew.py:13751
def SetPadstack(self, aPadstack)
Definition: pcbnew.py:13604
def GetSize(self, *args)
Definition: pcbnew.py:13970
def GetRoundRectRadiusRatio(self, *args)
Definition: pcbnew.py:14026
def GetPinFunction(self)
Definition: pcbnew.py:13497
def Compare(aPadRef, aPadCmp)
Definition: pcbnew.py:13905
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:13723
def SetChamferRectRatio(self, *args)
Definition: pcbnew.py:14047
def IsNoConnectPad(self)
Definition: pcbnew.py:13517
def GetSolderPasteMargin(self, aLayer)
Definition: pcbnew.py:13782
def GetKeepTopBottom(self)
Definition: pcbnew.py:13862
def GetSolderMaskExpansion(self, aLayer)
Definition: pcbnew.py:13778
def SetDrillSizeY(self, aY)
Definition: pcbnew.py:13589
def SetAttribute(self, aAttribute)
Definition: pcbnew.py:13683
def GetPadToDieLength(self)
Definition: pcbnew.py:13707
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:13937
def SetY(self, y)
Definition: pcbnew.py:13549
def SetUnconnectedLayerMode(self, aMode)
Definition: pcbnew.py:13866
def SetOrientation(self, aAngle)
Definition: pcbnew.py:13643
def SameLogicalPadAs(self, aOther)
Definition: pcbnew.py:13509
def SetDirty(self)
Definition: pcbnew.py:13679
def GetOrientationDegrees(self)
Definition: pcbnew.py:13663
def SetProperty(self, aProperty)
Definition: pcbnew.py:13691
def SetPinFunction(self, aName)
Definition: pcbnew.py:13493
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:13933
def CanHaveNumber(self)
Definition: pcbnew.py:13489
def GetDrillSizeX(self)
Definition: pcbnew.py:13585
def IsFlipped(self)
Definition: pcbnew.py:13477
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:13727
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:13747
def AppendPrimitives(self, aLayer, aPrimitivesList)
Definition: pcbnew.py:13635
def SetFrontRoundRectRadiusRatio(self, aRadiusScale)
Definition: pcbnew.py:13834
def GetChamferRectRatio(self, *args)
Definition: pcbnew.py:14040
def SetX(self, x)
Definition: pcbnew.py:13553
def SetKeepTopBottom(self, aSet)
Definition: pcbnew.py:13858
def SetAnchorPadShape(self, aLayer, aShape)
Definition: pcbnew.py:13545
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:13659
def FlipPrimitives(self, aFlipDirection)
Definition: pcbnew.py:13627
def GetDrillShape(self)
Definition: pcbnew.py:13671
def ShowPadAttr(self)
Definition: pcbnew.py:13913
def ApertureMask()
Definition: pcbnew.py:13464
def CanFlashLayer(self, aLayer)
Definition: pcbnew.py:13878
def GetPadName(self)
Definition: pcbnew.py:14079
def GetEffectivePolygon(self, aLayer, aErrorLoc=ERROR_INSIDE)
Definition: pcbnew.py:13763
def UnplatedHoleMask()
Definition: pcbnew.py:13459
def SetCustomShapeInZoneOpt(self, aOption)
Definition: pcbnew.py:13541
def GetThermalGap(self)
Definition: pcbnew.py:13822
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:13731
def SetDrillShape(self, aShape)
Definition: pcbnew.py:13667
def GetPrincipalLayer(self)
Definition: pcbnew.py:13882
def SetPadToDieLength(self, aLength)
Definition: pcbnew.py:13703
def GetFPRelativeOrientation(self)
Definition: pcbnew.py:13655
def HitTest(self, *args)
Definition: pcbnew.py:13893
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:13850
def SetThermalGap(self, aGap)
Definition: pcbnew.py:13818
def SetLocalZoneConnection(self, aType)
Definition: pcbnew.py:13739
def GetPinType(self)
Definition: pcbnew.py:13505
def SetFrontShape(self, aShape)
Definition: pcbnew.py:13525
def FlashLayer(self, *args)
Definition: pcbnew.py:13886
def BuildEffectiveShapes(self)
Definition: pcbnew.py:13921
def SetDrillSize(self, aSize)
Definition: pcbnew.py:13573
def SetPadName(self, aName)
Definition: pcbnew.py:14071
def GetUnconnectedLayerMode(self)
Definition: pcbnew.py:13870
def SetThermalSpokeWidth(self, aWidth)
Definition: pcbnew.py:13790
def GetSubRatsnest(self)
Definition: pcbnew.py:13842
def SetSubRatsnest(self, aSubRatsnest)
Definition: pcbnew.py:13846
def AddPrimitive(self, *args)
Definition: pcbnew.py:14089
def GetPrimitives(self, aLayer)
Definition: pcbnew.py:13623
def SetSize(self, *args)
Definition: pcbnew.py:13977
def AddPrimitiveShape(self, aLayer, aPrimitive)
Definition: pcbnew.py:13639
def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER)
Definition: pcbnew.py:14122
def SetDelta(self, *args)
Definition: pcbnew.py:13991
def GetSizeY(self)
Definition: pcbnew.py:13569
def Deserialize(self, aContainer)
Definition: pcbnew.py:13439
def ClonePad(self)
Definition: pcbnew.py:13917
def __init__(self, *args)
Definition: pcbnew.py:13428
def GetRoundRectCornerRadius(self, *args)
Definition: pcbnew.py:14012
def GetFrontRoundRectRadiusRatio(self)
Definition: pcbnew.py:13838
def GetProperty(self)
Definition: pcbnew.py:13695
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13759
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:13715
def AddPrimitivePoly(self, *args)
Definition: pcbnew.py:13608
def SetSizeX(self, aX)
Definition: pcbnew.py:13557
def BuildEffectivePolygon(self, aErrorLoc=ERROR_INSIDE)
Definition: pcbnew.py:13925
def GetThermalSpokeAngleDegrees(self)
Definition: pcbnew.py:13814
def SMDMask()
Definition: pcbnew.py:13449
def IsDirty(self)
Definition: pcbnew.py:13675
def GetShape(self, *args)
Definition: pcbnew.py:13956
def SetName(self, aName)
Definition: pcbnew.py:14074
def GetAttribute(self)
Definition: pcbnew.py:13687
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:13711
def MergePrimitivesAsPolygon(self, aLayer, aMergedPolygon, aErrorLoc=ERROR_INSIDE)
Definition: pcbnew.py:13615
def ImportSettingsFrom(self, aMasterPad)
Definition: pcbnew.py:13473
def SharesNetTieGroup(self, aOther)
Definition: pcbnew.py:13513
def GetZoneConnectionOverrides(self, aSource=None)
Definition: pcbnew.py:13786
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:13719
def PTHMask()
Definition: pcbnew.py:13444
def GetChamferPositions(self, *args)
Definition: pcbnew.py:14054
def GetFrontShape(self)
Definition: pcbnew.py:13529
def CheckPad(self, aUnitsProvider, aErrorHandler)
Definition: pcbnew.py:13945
def TransformHoleToPolygon(self, aBuffer, aClearance, aError, aErrorLoc=ERROR_INSIDE)
Definition: pcbnew.py:13755
def GetThermalSpokeWidth(self)
Definition: pcbnew.py:13794
def GetSizeX(self)
Definition: pcbnew.py:13561
def GetName(self)
Definition: pcbnew.py:14082
def SetShape(self, *args)
Definition: pcbnew.py:13963
def GetCustomShapeInZoneOpt(self)
Definition: pcbnew.py:13537
def GetLocalThermalGapOverride(self, aSource=None)
Definition: pcbnew.py:13826
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13929
def ClassOf(aItem)
Definition: pcbnew.py:13469
def GetThermalSpokeAngle(self)
Definition: pcbnew.py:13806
def ShowPadShape(self, aLayer)
Definition: pcbnew.py:13909
def GetDrillSize(self)
Definition: pcbnew.py:13577
def SetRoundRectCornerRadius(self, *args)
Definition: pcbnew.py:14019
def SetNumber(self, aNumber)
Definition: pcbnew.py:13481
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:13941
def IsAperturePad(self)
Definition: pcbnew.py:13699
def GetDelta(self, *args)
Definition: pcbnew.py:13984
def SetFPRelativeOrientation(self, aAngle)
Definition: pcbnew.py:13647
def GetLocalClearance(self, *args)
Definition: pcbnew.py:13771
def SetMid(self, aMid)
Definition: pcbnew.py:14323
def HitTest(self, *args)
Definition: pcbnew.py:14347
def Deserialize(self, aContainer)
Definition: pcbnew.py:14377
def GetArcAngleStart(self)
Definition: pcbnew.py:14339
def GetMid(self)
Definition: pcbnew.py:14327
def __eq__(self, *args)
Definition: pcbnew.py:14366
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14358
def IsDegenerated(self, aThreshold=5)
Definition: pcbnew.py:14362
def Serialize(self, aContainer)
Definition: pcbnew.py:14373
def GetAngle(self)
Definition: pcbnew.py:14335
def GetRadius(self)
Definition: pcbnew.py:14331
def IsCCW(self)
Definition: pcbnew.py:14354
def GetArcAngleEnd(self)
Definition: pcbnew.py:14343
def __init__(self, *args)
Definition: pcbnew.py:14311
def ClassOf(aItem)
Definition: pcbnew.py:14319
def SetUnits(self, aUnits)
Definition: pcbnew.py:16650
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:16542
def SetArrowLength(self, aLength)
Definition: pcbnew.py:16738
def GetKeepTextAligned(self)
Definition: pcbnew.py:16706
def __eq__(self, *args)
Definition: pcbnew.py:16777
def ChangeOverrideText(self, aValue)
Definition: pcbnew.py:16586
def SetOverrideTextEnabled(self, aOverride)
Definition: pcbnew.py:16574
def SetTextPositionMode(self, aMode)
Definition: pcbnew.py:16726
def SetOverrideText(self, aValue)
Definition: pcbnew.py:16582
def Serialize(self, aContainer)
Definition: pcbnew.py:16546
def ChangeSuffix(self, aSuffix)
Definition: pcbnew.py:16630
def ChangePrecision(self, aPrecision)
Definition: pcbnew.py:16690
def ChangeKeepTextAligned(self, aKeepAligned)
Definition: pcbnew.py:16722
def GetOverrideTextEnabled(self)
Definition: pcbnew.py:16570
def SetEnd(self, aPoint)
Definition: pcbnew.py:16566
def SetAutoUnits(self, aAuto=True)
Definition: pcbnew.py:16666
def SetMeasuredValue(self, aValue)
Definition: pcbnew.py:16594
def SetSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:16698
def ChangeTextAngleDegrees(self, aDegrees)
Definition: pcbnew.py:16718
def SetPrefix(self, aPrefix)
Definition: pcbnew.py:16614
def GetExtensionOffset(self)
Definition: pcbnew.py:16746
def GetSuppressZeroes(self)
Definition: pcbnew.py:16694
def GetTextPositionMode(self)
Definition: pcbnew.py:16730
def ChangeSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:16702
def SetUnitsFormat(self, aFormat)
Definition: pcbnew.py:16674
def ChangePrefix(self, aPrefix)
Definition: pcbnew.py:16618
def SetLineThickness(self, aWidth)
Definition: pcbnew.py:16754
def GetMeasuredValue(self)
Definition: pcbnew.py:16590
def SetKeepTextAligned(self, aKeepAligned)
Definition: pcbnew.py:16710
def SetExtensionOffset(self, aOffset)
Definition: pcbnew.py:16742
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:16773
def SetArrowDirection(self, aDirection)
Definition: pcbnew.py:16638
def ChangeUnitsMode(self, aMode)
Definition: pcbnew.py:16662
def Deserialize(self, aContainer)
Definition: pcbnew.py:16550
def GetTextAngleDegreesProp(self)
Definition: pcbnew.py:16714
def GetArrowDirection(self)
Definition: pcbnew.py:16634
def HitTest(self, *args)
Definition: pcbnew.py:16762
def GetLineThickness(self)
Definition: pcbnew.py:16750
def ChangeArrowDirection(self, aDirection)
Definition: pcbnew.py:16642
def SetPrecision(self, aPrecision)
Definition: pcbnew.py:16686
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16769
def ChangeUnitsFormat(self, aFormat)
Definition: pcbnew.py:16678
def SetStart(self, aPoint)
Definition: pcbnew.py:16558
def SetUnitsMode(self, aMode)
Definition: pcbnew.py:16658
def SetSuffix(self, aSuffix)
Definition: pcbnew.py:16626
def SetExtensionHeight(self, aHeight)
Definition: pcbnew.py:16835
def ClassOf(aItem)
Definition: pcbnew.py:16807
def GetCrossbarEnd(self)
Definition: pcbnew.py:16815
def GetCrossbarStart(self)
Definition: pcbnew.py:16811
def Serialize(self, aContainer)
Definition: pcbnew.py:16798
def UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
Definition: pcbnew.py:16831
def SetHeight(self, aHeight)
Definition: pcbnew.py:16819
def __init__(self, aParent, aType=PCB_DIM_ALIGNED_T)
Definition: pcbnew.py:16793
def GetExtensionHeight(self)
Definition: pcbnew.py:16839
def ChangeHeight(self, aHeight)
Definition: pcbnew.py:16827
def Deserialize(self, aContainer)
Definition: pcbnew.py:16802
def ChangeExtensionHeight(self, aHeight)
Definition: pcbnew.py:16843
def Deserialize(self, aContainer)
Definition: pcbnew.py:16985
def ClassOf(aItem)
Definition: pcbnew.py:16990
def Serialize(self, aContainer)
Definition: pcbnew.py:16981
def __init__(self, aParent)
Definition: pcbnew.py:16977
def ClassOf(aItem)
Definition: pcbnew.py:16952
def Deserialize(self, aContainer)
Definition: pcbnew.py:16947
def __init__(self, aParent)
Definition: pcbnew.py:16939
def ChangeTextBorder(self, aBorder)
Definition: pcbnew.py:16964
def SetTextBorder(self, aBorder)
Definition: pcbnew.py:16956
def GetTextBorder(self)
Definition: pcbnew.py:16960
def Serialize(self, aContainer)
Definition: pcbnew.py:16943
def __init__(self, aParent)
Definition: pcbnew.py:16863
def SetOrientation(self, aOrientation)
Definition: pcbnew.py:16881
def Serialize(self, aContainer)
Definition: pcbnew.py:16868
def Deserialize(self, aContainer)
Definition: pcbnew.py:16872
def SetLeaderLength(self, aLength)
Definition: pcbnew.py:16914
def Deserialize(self, aContainer)
Definition: pcbnew.py:16905
def Serialize(self, aContainer)
Definition: pcbnew.py:16901
def __init__(self, aParent)
Definition: pcbnew.py:16897
def GetLeaderLength(self)
Definition: pcbnew.py:16918
def ClassOf(aItem)
Definition: pcbnew.py:16910
def ChangeLeaderLength(self, aLength)
Definition: pcbnew.py:16922
def __nonzero__(self)
Definition: pcbnew.py:12878
def swap(self, v)
Definition: pcbnew.py:12943
def __getitem__(self, *args)
Definition: pcbnew.py:12912
def empty(self)
Definition: pcbnew.py:12935
def __init__(self, *args)
Definition: pcbnew.py:12982
def __len__(self)
Definition: pcbnew.py:12886
def rend(self)
Definition: pcbnew.py:12959
def __getslice__(self, i, j)
Definition: pcbnew.py:12890
def __delitem__(self, *args)
Definition: pcbnew.py:12905
def iterator(self)
Definition: pcbnew.py:12872
def rbegin(self)
Definition: pcbnew.py:12955
def __setslice__(self, *args)
Definition: pcbnew.py:12894
def begin(self)
Definition: pcbnew.py:12947
def size(self)
Definition: pcbnew.py:12939
def end(self)
Definition: pcbnew.py:12951
def __iter__(self)
Definition: pcbnew.py:12875
def clear(self)
Definition: pcbnew.py:12963
def __bool__(self)
Definition: pcbnew.py:12882
def back(self)
Definition: pcbnew.py:12999
def resize(self, *args)
Definition: pcbnew.py:13007
def push_back(self, x)
Definition: pcbnew.py:12991
def assign(self, n, x)
Definition: pcbnew.py:13003
def insert(self, *args)
Definition: pcbnew.py:13014
def push_front(self, x)
Definition: pcbnew.py:13025
def pop_back(self)
Definition: pcbnew.py:12971
def pop_front(self)
Definition: pcbnew.py:13021
def front(self)
Definition: pcbnew.py:12995
def get_allocator(self)
Definition: pcbnew.py:12967
def pop(self)
Definition: pcbnew.py:12927
def erase(self, *args)
Definition: pcbnew.py:12975
def __setitem__(self, *args)
Definition: pcbnew.py:12919
def __delslice__(self, i, j)
Definition: pcbnew.py:12901
def append(self, x)
Definition: pcbnew.py:12931
def CloneField(self)
Definition: pcbnew.py:16451
def SetId(self, aId)
Definition: pcbnew.py:16471
def __init__(self, *args)
Definition: pcbnew.py:16407
def ClassOf(aItem)
Definition: pcbnew.py:16423
def GetName(self, aUseDefaultName=True)
Definition: pcbnew.py:16455
def IsDatasheet(self)
Definition: pcbnew.py:16435
def GetCanonicalName(self)
Definition: pcbnew.py:16459
def IsReference(self)
Definition: pcbnew.py:16427
def GetId(self)
Definition: pcbnew.py:16467
def IsMandatoryField(self)
Definition: pcbnew.py:16443
def Serialize(self, aContainer)
Definition: pcbnew.py:16414
def __eq__(self, *args)
Definition: pcbnew.py:16475
def IsValue(self)
Definition: pcbnew.py:16431
def SetName(self, aName)
Definition: pcbnew.py:16463
def IsComponentClass(self)
Definition: pcbnew.py:16439
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:16447
def Deserialize(self, aContainer)
Definition: pcbnew.py:16418
def TopLevelGroup(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:18676
def IsGroupableType(aType)
Definition: pcbnew.py:18720
def DeepDuplicate(self)
Definition: pcbnew.py:18696
def RemoveAll(self)
Definition: pcbnew.py:18671
def SetName(self, aName)
Definition: pcbnew.py:18652
def WithinScope(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:18681
def GetName(self)
Definition: pcbnew.py:18648
def ClassOf(aItem)
Definition: pcbnew.py:18644
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:18715
def AddItem(self, aItem)
Definition: pcbnew.py:18663
def RemoveItem(self, aItem)
Definition: pcbnew.py:18667
def __eq__(self, *args)
Definition: pcbnew.py:18685
def __init__(self, aParent)
Definition: pcbnew.py:18639
def DeepClone(self)
Definition: pcbnew.py:18692
def HitTest(self, *args)
Definition: pcbnew.py:18700
def GetItems(self, *args)
Definition: pcbnew.py:18656
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:18711
def GetItemsDeque(self)
Definition: pcbnew.py:18724
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:18707
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:7877
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7885
def GetLibraryDesc(self)
Definition: pcbnew.py:7861
def Parse(self, aClipboardSourceInput)
Definition: pcbnew.py:7934
def GetStringOutput(self, doClear)
Definition: pcbnew.py:7926
def SaveBoard(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:7865
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:7893
def DeleteLibrary(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7909
def GetLibraryFileDesc(self)
Definition: pcbnew.py:7857
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7881
def Format(self, aItem)
Definition: pcbnew.py:7922
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:7897
def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
Definition: pcbnew.py:7873
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7901
def __init__(self, *args)
Definition: pcbnew.py:7917
def IsLibraryWritable(self, aLibraryPath)
Definition: pcbnew.py:7913
def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None)
Definition: pcbnew.py:7869
def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None)
Definition: pcbnew.py:7889
def CreateLibrary(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7905
def SetOutputFormatter(self, aFormatter)
Definition: pcbnew.py:7930
def GuessPluginTypeFromLibPath(aLibPath, aCtl=0)
Definition: pcbnew.py:7632
def PluginFind(aFileType)
Definition: pcbnew.py:7612
def FindPluginTypeFromBoardPath(aFileName, aCtl=0)
Definition: pcbnew.py:7627
def EnumFromStr(aFileType)
Definition: pcbnew.py:7622
def ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath, aReporter)
Definition: pcbnew.py:7647
def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:7637
def Save(aFileType, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:7642
def __init__(self)
Definition: pcbnew.py:7651
def ShowType(aFileType)
Definition: pcbnew.py:7617
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7719
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:7711
def footprintPyEnumerate(self, aLibraryPath, aExitOnError)
Definition: pcbnew.py:7736
def CanReadBoard(self, aFileName)
Definition: pcbnew.py:7671
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:7663
def GetBoardFileDesc(self)
Definition: pcbnew.py:7667
def GetLibraryOptions(self, aListToAppendTo)
Definition: pcbnew.py:7731
def IsFootprintLibWritable(self, aLibraryPath)
Definition: pcbnew.py:7752
def PrefetchLib(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7703
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7727
def FootprintLibDelete(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7748
def FootprintLibCreate(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7744
def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None)
Definition: pcbnew.py:7683
def GetImportedCachedLibraryFootprints(self)
Definition: pcbnew.py:7687
def SetQueryUserCallback(self, aCallback)
Definition: pcbnew.py:7679
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7715
def SaveBoard(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:7691
def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None)
Definition: pcbnew.py:7707
def GetLibraryTimestamp(self, aLibraryPath)
Definition: pcbnew.py:7699
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:7723
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:7695
def CanReadFootprint(self, aFileName)
Definition: pcbnew.py:7675
def __init__(self, aItem, aPos, aLayer=F_Cu)
Definition: pcbnew.py:17005
def SetShapes1(self, aShapes)
Definition: pcbnew.py:17051
def SetZoom(self, aZoomFactor)
Definition: pcbnew.py:17039
def GetColorLayer(self)
Definition: pcbnew.py:17031
def HitTest(self, *args)
Definition: pcbnew.py:17024
def ClassOf(aItem)
Definition: pcbnew.py:17011
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17035
def GetShapes2(self)
Definition: pcbnew.py:17047
def GetShapes1(self)
Definition: pcbnew.py:17043
def DeserializeFromString(data)
Definition: pcbnew.py:17020
def SetShapes2(self, aShapes)
Definition: pcbnew.py:17055
def SerializeToString(self)
Definition: pcbnew.py:17015
def SetFineScaleAdjustY(self, aVal)
Definition: pcbnew.py:8113
def ColorSettings(self)
Definition: pcbnew.py:8045
def GetDashedLineGapRatio(self)
Definition: pcbnew.py:8401
def GetDrillMarksType(self)
Definition: pcbnew.py:8093
def GetDisableGerberMacros(self)
Definition: pcbnew.py:8257
def GetTextMode(self)
Definition: pcbnew.py:8053
def GetPlotReference(self)
Definition: pcbnew.py:8205
def SetPlotReference(self, aFlag)
Definition: pcbnew.py:8201
def SetLayerSelection(self, aSelection)
Definition: pcbnew.py:8325
def GetLayerSelection(self)
Definition: pcbnew.py:8329
def GetWidthAdjust(self)
Definition: pcbnew.py:8125
def GetUseGerberX2format(self)
Definition: pcbnew.py:8265
def SetColorSettings(self, aSettings)
Definition: pcbnew.py:8041
def SetDashedLineGapRatio(self, aVal)
Definition: pcbnew.py:8397
def SetA4Output(self, aForce)
Definition: pcbnew.py:8357
def GetScale(self)
Definition: pcbnew.py:8101
def SetWidthAdjust(self, aVal)
Definition: pcbnew.py:8121
def GetSketchPadsOnFabLayers(self)
Definition: pcbnew.py:8149
def SetUseGerberProtelExtensions(self, aUse)
Definition: pcbnew.py:8285
def SetUseGerberAttributes(self, aUse)
Definition: pcbnew.py:8410
def SetSketchPadLineWidth(self, aWidth)
Definition: pcbnew.py:8153
def SetDXFPlotUnits(self, aUnit)
Definition: pcbnew.py:8081
def GetFineScaleAdjustY(self)
Definition: pcbnew.py:8117
def GetSketchPadLineWidth(self)
Definition: pcbnew.py:8157
def SetFormat(self, aFormat)
Definition: pcbnew.py:8237
def SetSkipPlotNPTH_Pads(self, aSkip)
Definition: pcbnew.py:8021
def SetPlotMode(self, aPlotMode)
Definition: pcbnew.py:8057
def SetScaleSelection(self, aSelection)
Definition: pcbnew.py:8349
def SetFineScaleAdjustX(self, aVal)
Definition: pcbnew.py:8105
def SetBlackAndWhite(self, blackAndWhite)
Definition: pcbnew.py:8309
def GetScaleSelection(self)
Definition: pcbnew.py:8353
def GetAutoScale(self)
Definition: pcbnew.py:8133
def SetHPGLPenNum(self, aVal)
Definition: pcbnew.py:8381
def GetA4Output(self)
Definition: pcbnew.py:8361
def Format(self, aFormatter)
Definition: pcbnew.py:8029
def GetSketchDNPFPsOnFabLayers(self)
Definition: pcbnew.py:8173
def GetMirror(self)
Definition: pcbnew.py:8141
def SetDashedLineDashRatio(self, aVal)
Definition: pcbnew.py:8389
def GetGerberPrecision(self)
Definition: pcbnew.py:8297
def SetUseGerberX2format(self, aUse)
Definition: pcbnew.py:8261
def SetTextMode(self, aVal)
Definition: pcbnew.py:8049
def GetPlotInvisibleText(self)
Definition: pcbnew.py:8189
def GetFormat(self)
Definition: pcbnew.py:8241
def SetScale(self, aVal)
Definition: pcbnew.py:8097
def SetSvgPrecision(self, aPrecision)
Definition: pcbnew.py:8301
def __init__(self)
Definition: pcbnew.py:8017
def SetPlotFPText(self, aFlag)
Definition: pcbnew.py:8209
def IsSameAs(self, aPcbPlotParams)
Definition: pcbnew.py:8037
def SetUseAuxOrigin(self, aAux)
Definition: pcbnew.py:8341
def GetHPGLPenNum(self)
Definition: pcbnew.py:8385
def GetNegative(self)
Definition: pcbnew.py:8221
def SetSubtractMaskFromSilk(self, aSubtract)
Definition: pcbnew.py:8317
def SetAutoScale(self, aFlag)
Definition: pcbnew.py:8129
def GetLegacyPlotViaOnMaskLayer(self)
Definition: pcbnew.py:8225
def GetPlotFrameRef(self)
Definition: pcbnew.py:8233
def GetDXFPlotPolygonMode(self)
Definition: pcbnew.py:8077
def GetIncludeGerberNetlistInfo(self)
Definition: pcbnew.py:8273
def SetMirror(self, aFlag)
Definition: pcbnew.py:8137
def GetSvgPrecision(self)
Definition: pcbnew.py:8305
def GetUseAuxOrigin(self)
Definition: pcbnew.py:8345
def SetDrillMarksType(self, aVal)
Definition: pcbnew.py:8089
def GetFineScaleAdjustX(self)
Definition: pcbnew.py:8109
def GetCreateGerberJobFile(self)
Definition: pcbnew.py:8281
def GetOutputDirectory(self)
Definition: pcbnew.py:8249
def GetHPGLPenSpeed(self)
Definition: pcbnew.py:8373
def SetPlotFrameRef(self, aFlag)
Definition: pcbnew.py:8229
def SetPlotInvisibleText(self, aFlag)
Definition: pcbnew.py:8185
def GetDXFPlotUnits(self)
Definition: pcbnew.py:8085
def GetDashedLineDashRatio(self)
Definition: pcbnew.py:8393
def SetPlotOnAllLayersSelection(self, aSelection)
Definition: pcbnew.py:8333
def SetIncludeGerberNetlistInfo(self, aUse)
Definition: pcbnew.py:8269
def GetHideDNPFPsOnFabLayers(self)
Definition: pcbnew.py:8165
def SetDisableGerberMacros(self, aDisable)
Definition: pcbnew.py:8253
def SetSketchDNPFPsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8169
def SetCreateGerberJobFile(self, aCreate)
Definition: pcbnew.py:8277
def SetGerberPrecision(self, aPrecision)
Definition: pcbnew.py:8293
def GetPlotValue(self)
Definition: pcbnew.py:8197
def SetSketchPadsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8145
def SetCrossoutDNPFPsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8177
def GetHPGLPenDiameter(self)
Definition: pcbnew.py:8365
def SetHideDNPFPsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8161
def GetCrossoutDNPFPsOnFabLayers(self)
Definition: pcbnew.py:8181
def GetBlackAndWhite(self)
Definition: pcbnew.py:8313
def GetUseGerberProtelExtensions(self)
Definition: pcbnew.py:8289
def GetPlotPadNumbers(self)
Definition: pcbnew.py:8069
def GetSubtractMaskFromSilk(self)
Definition: pcbnew.py:8321
def SetDXFPlotPolygonMode(self, aFlag)
Definition: pcbnew.py:8073
def GetPlotFPText(self)
Definition: pcbnew.py:8213
def Parse(self, aParser)
Definition: pcbnew.py:8033
def GetPlotOnAllLayersSelection(self)
Definition: pcbnew.py:8337
def SetOutputDirectory(self, aDir)
Definition: pcbnew.py:8245
def SetPlotPadNumbers(self, aFlag)
Definition: pcbnew.py:8065
def SetHPGLPenSpeed(self, aValue)
Definition: pcbnew.py:8377
def SetPlotValue(self, aFlag)
Definition: pcbnew.py:8193
def SetNegative(self, aFlag)
Definition: pcbnew.py:8217
def GetPlotMode(self)
Definition: pcbnew.py:8061
def SetHPGLPenDiameter(self, aValue)
Definition: pcbnew.py:8369
def GetSkipPlotNPTH_Pads(self)
Definition: pcbnew.py:8025
def __init__(self, *args)
Definition: pcbnew.py:18741
def GetReferenceImage(self, *args)
Definition: pcbnew.py:18749
def __eq__(self, *args)
Definition: pcbnew.py:18776
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:18765
def HitTest(self, *args)
Definition: pcbnew.py:18769
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:18761
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:16102
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16056
def __eq__(self, *args)
Definition: pcbnew.py:16083
def GetCorners(self)
Definition: pcbnew.py:16052
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:16106
def __init__(self, *args)
Definition: pcbnew.py:16027
def GetConnectionPoints(self)
Definition: pcbnew.py:16048
def SetHasSolderMask(self, aVal)
Definition: pcbnew.py:16090
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:16079
def SetIsProxyItem(self, aIsProxy=True)
Definition: pcbnew.py:16060
def Serialize(self, aContainer)
Definition: pcbnew.py:16040
def HasSolderMask(self)
Definition: pcbnew.py:16094
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:16098
def GetArcAngleStart(self)
Definition: pcbnew.py:16110
def Scale(self, aScale)
Definition: pcbnew.py:16071
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:16075
def GetShapeStr(self)
Definition: pcbnew.py:16114
def Deserialize(self, aContainer)
Definition: pcbnew.py:16044
def HitTest(self, *args)
Definition: pcbnew.py:16064
def ClassOf(aItem)
Definition: pcbnew.py:16036
def SetStrokeColumns(self, aDoStroke)
Definition: pcbnew.py:17227
def ClassOf(aItem)
Definition: pcbnew.py:17143
def AddCell(self, aCell)
Definition: pcbnew.py:17299
def GetPositionY(self)
Definition: pcbnew.py:17259
def SetSeparatorsColor(self, aColor)
Definition: pcbnew.py:17219
def StrokeRows(self)
Definition: pcbnew.py:17239
def HitTest(self, *args)
Definition: pcbnew.py:17331
def DeleteMarkedCells(self)
Definition: pcbnew.py:17311
def SetColWidth(self, aCol, aWidth)
Definition: pcbnew.py:17275
def SetSeparatorsStroke(self, aParams)
Definition: pcbnew.py:17195
def SetBorderStyle(self, aStyle)
Definition: pcbnew.py:17179
def GetBorderWidth(self)
Definition: pcbnew.py:17175
def GetBorderStroke(self)
Definition: pcbnew.py:17167
def SetStrokeRows(self, aDoStroke)
Definition: pcbnew.py:17235
def SetPositionX(self, x)
Definition: pcbnew.py:17247
def GetSeparatorsWidth(self)
Definition: pcbnew.py:17207
def SetSeparatorsWidth(self, aWidth)
Definition: pcbnew.py:17203
def GetCell(self, aRow, aCol)
Definition: pcbnew.py:17291
def ClearCells(self)
Definition: pcbnew.py:17307
def SetRowHeight(self, aRow, aHeight)
Definition: pcbnew.py:17283
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:17327
def StrokeExternal(self)
Definition: pcbnew.py:17151
def SetBorderStroke(self, aParams)
Definition: pcbnew.py:17163
def GetBorderColor(self)
Definition: pcbnew.py:17191
def GetBorderStyle(self)
Definition: pcbnew.py:17183
def GetCells(self)
Definition: pcbnew.py:17295
def RemoveNative(self, *args)
Definition: pcbnew.py:17319
def GetSeparatorsColor(self)
Definition: pcbnew.py:17223
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17323
def AddNative(self, *args)
Definition: pcbnew.py:17315
def SetBorderColor(self, aColor)
Definition: pcbnew.py:17187
def SetStrokeExternal(self, aDoStroke)
Definition: pcbnew.py:17147
def SetSeparatorsStyle(self, aStyle)
Definition: pcbnew.py:17211
def GetColWidth(self, aCol)
Definition: pcbnew.py:17279
def StrokeHeader(self)
Definition: pcbnew.py:17159
def Compare(aTable, aOther)
Definition: pcbnew.py:17346
def GetRowHeight(self, aRow)
Definition: pcbnew.py:17287
def SetPositionY(self, y)
Definition: pcbnew.py:17251
def SetColCount(self, aCount)
Definition: pcbnew.py:17263
def GetSeparatorsStroke(self)
Definition: pcbnew.py:17199
def InsertCell(self, aIdx, aCell)
Definition: pcbnew.py:17303
def GetPositionX(self)
Definition: pcbnew.py:17255
def GetSeparatorsStyle(self)
Definition: pcbnew.py:17215
def GetRowCount(self)
Definition: pcbnew.py:17271
def GetColCount(self)
Definition: pcbnew.py:17267
def GetEnd(self)
Definition: pcbnew.py:17243
def SetStrokeHeader(self, aDoStroke)
Definition: pcbnew.py:17155
def __eq__(self, *args)
Definition: pcbnew.py:17338
def SetBorderWidth(self, aWidth)
Definition: pcbnew.py:17171
def __init__(self, *args)
Definition: pcbnew.py:17134
def StrokeColumns(self)
Definition: pcbnew.py:17231
def GetShape(self)
Definition: pcbnew.py:17084
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17111
def __init__(self, *args)
Definition: pcbnew.py:17067
def ClassOf(aItem)
Definition: pcbnew.py:17076
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:17115
def HitTest(self, *args)
Definition: pcbnew.py:17104
def SetWidth(self, aWidth)
Definition: pcbnew.py:17096
def GetWidth(self)
Definition: pcbnew.py:17100
def SetSize(self, aSize)
Definition: pcbnew.py:17088
def SetShape(self, aShape)
Definition: pcbnew.py:17080
def GetSize(self)
Definition: pcbnew.py:17092
def __eq__(self, *args)
Definition: pcbnew.py:17119
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16296
def __init__(self, aParent, aType=PCB_TEXTBOX_T)
Definition: pcbnew.py:16212
def SetBorderWidth(self, aSize)
Definition: pcbnew.py:16312
def GetLegacyTextMargin(self)
Definition: pcbnew.py:16230
def __eq__(self, *args)
Definition: pcbnew.py:16320
def GetAnchorAndOppositeCorner(self)
Definition: pcbnew.py:16277
def Deserialize(self, aContainer)
Definition: pcbnew.py:16226
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:16292
def GetDrawPos(self, *args)
Definition: pcbnew.py:16266
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:16300
def ClassOf(aItem)
Definition: pcbnew.py:16218
def SetMarginTop(self, aTop)
Definition: pcbnew.py:16238
def SetMarginRight(self, aRight)
Definition: pcbnew.py:16242
def GetMarginBottom(self)
Definition: pcbnew.py:16262
def GetMarginLeft(self)
Definition: pcbnew.py:16250
def GetBorderWidth(self)
Definition: pcbnew.py:16316
def Serialize(self, aContainer)
Definition: pcbnew.py:16222
def HitTest(self, *args)
Definition: pcbnew.py:16281
def SetMarginBottom(self, aBottom)
Definition: pcbnew.py:16246
def GetMarginRight(self)
Definition: pcbnew.py:16258
def GetMarginTop(self)
Definition: pcbnew.py:16254
def SetBorderEnabled(self, enabled)
Definition: pcbnew.py:16308
def SetMarginLeft(self, aLeft)
Definition: pcbnew.py:16234
def IsBorderEnabled(self)
Definition: pcbnew.py:16304
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:16273
def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
Definition: pcbnew.py:16288
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:16151
def ClassOf(aItem)
Definition: pcbnew.py:16135
def __eq__(self, *args)
Definition: pcbnew.py:16189
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:16173
def GetTextTypeDescription(self)
Definition: pcbnew.py:16181
def Serialize(self, aContainer)
Definition: pcbnew.py:16139
def HitTest(self, *args)
Definition: pcbnew.py:16162
def Deserialize(self, aContainer)
Definition: pcbnew.py:16143
def KeepUpright(self)
Definition: pcbnew.py:16147
def __init__(self, *args)
Definition: pcbnew.py:16126
def TextHitTest(self, *args)
Definition: pcbnew.py:16155
def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
Definition: pcbnew.py:16169
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16177
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:16185
def HasSolderMask(self)
Definition: pcbnew.py:14230
def __init__(self, aParent, idtype=PCB_TRACE_T)
Definition: pcbnew.py:14162
def ClassOf(aItem)
Definition: pcbnew.py:14158
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14254
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:14234
def GetEndX(self)
Definition: pcbnew.py:14214
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:14238
def IsPointOnEnds(self, point, min_dist=0)
Definition: pcbnew.py:14258
def SetStartY(self, aY)
Definition: pcbnew.py:14194
def GetStartX(self)
Definition: pcbnew.py:14198
def GetStartY(self)
Definition: pcbnew.py:14202
def ApproxCollinear(self, aTrack)
Definition: pcbnew.py:14273
def SetWidth(self, aWidth)
Definition: pcbnew.py:14166
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:14250
def GetEndPoint(self, aEndPoint)
Definition: pcbnew.py:14222
def GetStart(self)
Definition: pcbnew.py:14186
def SetStart(self, aStart)
Definition: pcbnew.py:14182
def __eq__(self, *args)
Definition: pcbnew.py:14285
def SetEndX(self, aX)
Definition: pcbnew.py:14206
def GetEnd(self)
Definition: pcbnew.py:14178
def IsNull(self)
Definition: pcbnew.py:14262
def GetLength(self)
Definition: pcbnew.py:14246
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14281
def Deserialize(self, aContainer)
Definition: pcbnew.py:14296
def HitTest(self, *args)
Definition: pcbnew.py:14266
def SetStartX(self, aX)
Definition: pcbnew.py:14190
def SetHasSolderMask(self, aVal)
Definition: pcbnew.py:14226
def SetEnd(self, aEnd)
Definition: pcbnew.py:14174
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:14242
def GetWidthConstraint(self, aSource=None)
Definition: pcbnew.py:14277
def GetWidth(self)
Definition: pcbnew.py:14170
def Serialize(self, aContainer)
Definition: pcbnew.py:14292
def SetEndY(self, aY)
Definition: pcbnew.py:14210
def GetEndY(self)
Definition: pcbnew.py:14218
def SetFrontTentingMode(self, aMode)
Definition: pcbnew.py:14455
def LayerPair(self, top_layer, bottom_layer)
Definition: pcbnew.py:14487
def ClassOf(aItem)
Definition: pcbnew.py:14391
def SetKeepStartEnd(self, aSet)
Definition: pcbnew.py:14526
def Serialize(self, aContainer)
Definition: pcbnew.py:14596
def HasValidLayerPair(self, aCopperLayerCount)
Definition: pcbnew.py:14402
def SanitizeLayers(self)
Definition: pcbnew.py:14499
def __eq__(self, *args)
Definition: pcbnew.py:14589
def GetOutermostConnectedLayers(self, aTopmost, aBottommost)
Definition: pcbnew.py:14545
def GetFrontWidth(self)
Definition: pcbnew.py:14443
def SetFrontWidth(self, aWidth)
Definition: pcbnew.py:14439
def GetMinAnnulus(self, aLayer, aSource)
Definition: pcbnew.py:14514
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:14534
def GetKeepStartEnd(self)
Definition: pcbnew.py:14530
def SetPadstack(self, aPadstack)
Definition: pcbnew.py:14421
def GetWidth(self, *args)
Definition: pcbnew.py:14432
def TopLayer(self)
Definition: pcbnew.py:14491
def HitTest(self, *args)
Definition: pcbnew.py:14503
def SetViaType(self, aViaType)
Definition: pcbnew.py:14410
def SetWidth(self, *args)
Definition: pcbnew.py:14425
def SetBackTentingMode(self, aMode)
Definition: pcbnew.py:14463
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:14585
def GetDrillConstraint(self, aSource=None)
Definition: pcbnew.py:14451
def GetBackTentingMode(self)
Definition: pcbnew.py:14467
def GetRemoveUnconnected(self)
Definition: pcbnew.py:14522
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14510
def Padstack(self, *args)
Definition: pcbnew.py:14414
def SetDrill(self, aDrill)
Definition: pcbnew.py:14549
def GetWidthConstraint(self, aSource=None)
Definition: pcbnew.py:14447
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:14471
def SetBottomLayer(self, aLayer)
Definition: pcbnew.py:14479
def GetIsFree(self)
Definition: pcbnew.py:14565
def FlashLayer(self, *args)
Definition: pcbnew.py:14538
def GetViaType(self)
Definition: pcbnew.py:14406
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:14577
def __init__(self, *args)
Definition: pcbnew.py:14395
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:14518
def BottomLayer(self)
Definition: pcbnew.py:14495
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14573
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:14581
def GetDrillValue(self)
Definition: pcbnew.py:14557
def Deserialize(self, aContainer)
Definition: pcbnew.py:14600
def SetDrillDefault(self)
Definition: pcbnew.py:14561
def SetLayerPair(self, aTopLayer, aBottomLayer)
Definition: pcbnew.py:14475
def GetDrill(self)
Definition: pcbnew.py:14553
def GetFrontTentingMode(self)
Definition: pcbnew.py:14459
def SetTopLayer(self, aLayer)
Definition: pcbnew.py:14483
def SetIsFree(self, aFree=True)
Definition: pcbnew.py:14569
def GetFootprintCount(self)
Definition: pcbnew.py:8789
def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX)
Definition: pcbnew.py:8777
def MoveTo(self, pos)
Definition: pcbnew.py:8584
def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:8654
def Bookmark(self, *args)
Definition: pcbnew.py:8678
def SetNegative(self, aNegative)
Definition: pcbnew.py:8473
def SetTextMode(self, mode)
Definition: pcbnew.py:8692
def SetRenderSettings(self, aSettings)
Definition: pcbnew.py:8485
def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:8642
def SetAuthor(self, aAuthor)
Definition: pcbnew.py:8525
def SetCurrentLineWidth(self, width, aData=None)
Definition: pcbnew.py:8501
def PlotText(self, *args)
Definition: pcbnew.py:8666
def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:8638
def SetSubject(self, aSubject)
Definition: pcbnew.py:8529
def ThickRect(self, p1, p2, width, tracemode, aData)
Definition: pcbnew.py:8622
def ThickCircle(self, pos, diametre, width, tracemode, aData)
Definition: pcbnew.py:8626
def LineTo(self, pos)
Definition: pcbnew.py:8588
def GetPlotOffsetUserUnits(self)
Definition: pcbnew.py:8712
def Marker(self, position, diametre, aShapeId)
Definition: pcbnew.py:8684
def SetCreator(self, aCreator)
Definition: pcbnew.py:8517
def EndBlock(self, aData)
Definition: pcbnew.py:8708
def StartBlock(self, aData)
Definition: pcbnew.py:8704
def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
Definition: pcbnew.py:8541
def GetPlotterType(self)
Definition: pcbnew.py:8461
def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData=None)
Definition: pcbnew.py:8662
def HyperlinkBox(self, aBox, aDestinationURL)
Definition: pcbnew.py:8670
def PenTo(self, pos, plume)
Definition: pcbnew.py:8580
def ClearHeaderLinesList(self)
Definition: pcbnew.py:8537
def GetPlotterArcLowDef(self)
Definition: pcbnew.py:8553
def PlotPoly(self, *args)
Definition: pcbnew.py:8600
def StartPlot(self, aPageNumber)
Definition: pcbnew.py:8465
def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
Definition: pcbnew.py:8658
def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
Definition: pcbnew.py:8650
def GetColorMode(self)
Definition: pcbnew.py:8481
def BezierCurve(self, *args)
Definition: pcbnew.py:8576
def GetCurrentLineWidth(self)
Definition: pcbnew.py:8505
def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
Definition: pcbnew.py:8646
def PlotImage(self, aImage, aPos, aScaleFactor)
Definition: pcbnew.py:8607
def ThickArc(self, *args)
Definition: pcbnew.py:8615
def Arc(self, *args)
Definition: pcbnew.py:8569
def Circle(self, *args)
Definition: pcbnew.py:8565
def RenderSettings(self)
Definition: pcbnew.py:8489
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:8493
def SetDash(self, aLineWidth, aLineStyle)
Definition: pcbnew.py:8513
def AddLineToHeader(self, aExtraString)
Definition: pcbnew.py:8533
def SetSvgCoordinatesFormat(self, aPrecision)
Definition: pcbnew.py:8700
def HyperlinkMenu(self, aBox, aDestURLs)
Definition: pcbnew.py:8674
def Rect(self, *args)
Definition: pcbnew.py:8561
def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
Definition: pcbnew.py:8634
def SetLayerPolarity(self, aPositive)
Definition: pcbnew.py:8688
def SetColor(self, color)
Definition: pcbnew.py:8509
def FinishTo(self, pos)
Definition: pcbnew.py:8592
def EndPlot(self)
Definition: pcbnew.py:8469
def FilledCircle(self, pos, diametre, tracemode, aData)
Definition: pcbnew.py:8630
def GetPlotterArcHighDef(self)
Definition: pcbnew.py:8557
def PenFinish(self)
Definition: pcbnew.py:8596
def ThickSegment(self, start, end, width, tracemode, aData)
Definition: pcbnew.py:8611
def GetIUsPerDecimil(self)
Definition: pcbnew.py:8549
def SetTitle(self, aTitle)
Definition: pcbnew.py:8521
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:8452
def OpenFile(self, aFullFilename)
Definition: pcbnew.py:8545
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:8477
def PageSettings(self)
Definition: pcbnew.py:8497
def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False)
Definition: pcbnew.py:8696
def OpenPlotfile(self, *args)
Definition: pcbnew.py:7971
def GetPlotOptions(self)
Definition: pcbnew.py:7951
def GetPlotDirName(self)
Definition: pcbnew.py:7987
def PlotLayer(self)
Definition: pcbnew.py:7975
def GetColorMode(self)
Definition: pcbnew.py:7995
def ClosePlot(self)
Definition: pcbnew.py:7967
def GetLayer(self)
Definition: pcbnew.py:7959
def __init__(self, aBoard)
Definition: pcbnew.py:7946
def GetPlotter(self)
Definition: pcbnew.py:7999
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:7991
def SetLayer(self, aLayer)
Definition: pcbnew.py:7955
def GetPlotFileName(self)
Definition: pcbnew.py:7983
def IsPlotOpen(self)
Definition: pcbnew.py:7963
def PlotLayers(self, aLayerSequence)
Definition: pcbnew.py:7979
def __eq__(self, other)
Definition: pcbnew.py:18980
def __eq__(self, other)
Definition: pcbnew.py:18961
def __eq__(self, other)
Definition: pcbnew.py:19000
def deregister_action(wizard)
Definition: pcbnew.py:21024
def TCoef(self, aP)
Definition: pcbnew.py:5599
def Collide(self, aSeg, aClearance, aActual=None)
Definition: pcbnew.py:5549
def __lt__(self, aSeg)
Definition: pcbnew.py:5626
def Overlaps(self, aSeg)
Definition: pcbnew.py:5587
def LineProject(self, aP)
Definition: pcbnew.py:5498
def Contains(self, *args)
Definition: pcbnew.py:5607
def __eq__(self, aSeg)
Definition: pcbnew.py:5485
def ReflectPoint(self, aP)
Definition: pcbnew.py:5525
def LineDistance(self, aP, aDetermineSide=False)
Definition: pcbnew.py:5506
def CanonicalCoefs(self, qA, qB, qC)
Definition: pcbnew.py:5567
def Reversed(self)
Definition: pcbnew.py:5618
def __init__(self, *args)
Definition: pcbnew.py:5475
def Intersects(self, aSeg)
Definition: pcbnew.py:5533
def SquaredDistance(self, *args)
Definition: pcbnew.py:5553
def __ne__(self, aSeg)
Definition: pcbnew.py:5489
def Angle(self, aOther)
Definition: pcbnew.py:5510
def Collinear(self, aSeg)
Definition: pcbnew.py:5571
def Length(self)
Definition: pcbnew.py:5591
def Reverse(self)
Definition: pcbnew.py:5614
def NearestPoint(self, *args)
Definition: pcbnew.py:5514
def Square(a)
Definition: pcbnew.py:5494
def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False)
Definition: pcbnew.py:5529
def Index(self)
Definition: pcbnew.py:5603
def Side(self, aP)
Definition: pcbnew.py:5502
def Distance(self, *args)
Definition: pcbnew.py:5560
def SquaredLength(self)
Definition: pcbnew.py:5595
def NearestPoints(self, aSeg, aPtA, aPtB, aDistSq)
Definition: pcbnew.py:5521
def ApproxCollinear(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5575
def ParallelSeg(self, aP)
Definition: pcbnew.py:5545
def IntersectLines(self, aSeg)
Definition: pcbnew.py:5537
def PerpendicularSeg(self, aP)
Definition: pcbnew.py:5541
def ApproxPerpendicular(self, aSeg)
Definition: pcbnew.py:5583
def Center(self)
Definition: pcbnew.py:5622
def ApproxParallel(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5579
def AddNewColorSettings(self, aFilename)
Definition: pcbnew.py:3522
def SetMigrateLibraryTables(self, aMigrate=True)
Definition: pcbnew.py:3546
def GetPreviousVersionPaths(self, aName=None)
Definition: pcbnew.py:3550
def GetPathForSettingsFile(self, aSettings)
Definition: pcbnew.py:3534
def IsProjectOpen(self)
Definition: pcbnew.py:3566
def Save(self, *args)
Definition: pcbnew.py:3499
def GetColorSettings(self, *args)
Definition: pcbnew.py:3510
def GetColorSettingsList(self)
Definition: pcbnew.py:3514
def SaveColorSettings(self, *args)
Definition: pcbnew.py:3518
def Load(self, *args)
Definition: pcbnew.py:3492
def GetProject(self, aFullPath)
Definition: pcbnew.py:3578
def GetMigratedColorSettings(self)
Definition: pcbnew.py:3526
def IsSettingsPathValid(aPath)
Definition: pcbnew.py:3611
def MigrateIfNeeded(self)
Definition: pcbnew.py:3538
def UnloadProject(self, aProject, aSave=True)
Definition: pcbnew.py:3562
def TriggerBackupIfNeeded(self, aReporter)
Definition: pcbnew.py:3606
def GetCommonSettings(self)
Definition: pcbnew.py:3530
def __init__(self, aHeadless=False)
Definition: pcbnew.py:3479
def IsProjectOpenNotDummy(self)
Definition: pcbnew.py:3570
def BackupProject(self, aReporter, aTarget)
Definition: pcbnew.py:3602
def LoadProject(self, aFullPath, aSetActive=True)
Definition: pcbnew.py:3558
def FlushAndRelease(self, aSettings, aSave=True)
Definition: pcbnew.py:3506
def GetOpenProjects(self)
Definition: pcbnew.py:3582
def SaveProjectAs(self, aFullPath, aProject=None)
Definition: pcbnew.py:3590
def SetKiway(self, aKiway)
Definition: pcbnew.py:3488
def SaveProjectCopy(self, aFullPath, aProject=None)
Definition: pcbnew.py:3594
def SetMigrationSource(self, aSource)
Definition: pcbnew.py:3542
def SaveProject(self, *args)
Definition: pcbnew.py:3586
def GetProjectBackupsPath(self)
Definition: pcbnew.py:3598
def ReloadColorSettings(self)
Definition: pcbnew.py:3554
def BBox(self, aClearance=0)
Definition: pcbnew.py:5885
def GetRadius(self)
Definition: pcbnew.py:5935
def IntersectLine(self, aSeg, aIpsBuffer)
Definition: pcbnew.py:5901
def SetWidth(self, aWidth)
Definition: pcbnew.py:5912
def GetWidth(self)
Definition: pcbnew.py:5916
def DefaultAccuracyForPCB()
Definition: pcbnew.py:5960
def Mirror(self, *args)
Definition: pcbnew.py:5920
def GetP1(self)
Definition: pcbnew.py:5873
def Collide(self, *args)
Definition: pcbnew.py:5893
def GetCentralAngle(self)
Definition: pcbnew.py:5943
def IsClockwise(self)
Definition: pcbnew.py:5976
def GetCenter(self)
Definition: pcbnew.py:5881
def __eq__(self, aArc)
Definition: pcbnew.py:5968
def GetChord(self)
Definition: pcbnew.py:5939
def Reversed(self)
Definition: pcbnew.py:5931
def IsCCW(self)
Definition: pcbnew.py:5972
def GetLength(self)
Definition: pcbnew.py:5955
def ConvertToPolyline(self, *args)
Definition: pcbnew.py:5964
def NearestPoint(self, aP)
Definition: pcbnew.py:5889
def Reverse(self)
Definition: pcbnew.py:5927
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:5856
def GetP0(self)
Definition: pcbnew.py:5869
def GetArcMid(self)
Definition: pcbnew.py:5877
def GetStartAngle(self)
Definition: pcbnew.py:5947
def GetEndAngle(self)
Definition: pcbnew.py:5951
def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0)
Definition: pcbnew.py:5865
def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0)
Definition: pcbnew.py:5861
def Intersect(self, *args)
Definition: pcbnew.py:5905
def GetIndexableSubshapes(self, aSubshapes)
Definition: pcbnew.py:5684
def __init__(self, aType)
Definition: pcbnew.py:5663
def Type(self)
Definition: pcbnew.py:5668
def GetIndexableSubshapeCount(self)
Definition: pcbnew.py:5680
def HasIndexableSubshapes(self)
Definition: pcbnew.py:5676
def TypeName(self)
Definition: pcbnew.py:5672
def GetRadius(self)
Definition: pcbnew.py:6014
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:6002
def SetCenter(self, aCenter)
Definition: pcbnew.py:6010
def __init__(self, *args)
Definition: pcbnew.py:5988
def SetRadius(self, aRadius)
Definition: pcbnew.py:6006
def BBox(self, aClearance=0)
Definition: pcbnew.py:5998
def GetCircle(self)
Definition: pcbnew.py:6022
def Rotate(self, *args)
Definition: pcbnew.py:6026
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6030
def GetCenter(self)
Definition: pcbnew.py:6018
def __init__(self, *args)
Definition: pcbnew.py:6042
def UniqueSubshape(self)
Definition: pcbnew.py:6101
def BBox(self, aClearance=0)
Definition: pcbnew.py:6071
def Collide(self, *args)
Definition: pcbnew.py:6059
def Rotate(self, *args)
Definition: pcbnew.py:6097
def GetSubshapes(self)
Definition: pcbnew.py:6105
def Distance(self, *args)
Definition: pcbnew.py:6075
def Shapes(self)
Definition: pcbnew.py:6067
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6055
def AddShape(self, *args)
Definition: pcbnew.py:6082
def SquaredDistance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:5809
def EdgeContainingPoint(self, aP, aAccuracy=0)
Definition: pcbnew.py:5821
def PointOnEdge(self, aP, aAccuracy=0)
Definition: pcbnew.py:5817
def GetSegment(self, aIndex)
Definition: pcbnew.py:5829
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:5797
def GetPoint(self, aIndex)
Definition: pcbnew.py:5825
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:5813
def Collide(self, *args)
Definition: pcbnew.py:5802
def SegmentCount(self)
Definition: pcbnew.py:6187
def CheckClearance(self, aP, aDist)
Definition: pcbnew.py:6333
def Find(self, aP, aThreshold=0)
Definition: pcbnew.py:6306
def PointCount(self)
Definition: pcbnew.py:6207
def Slice(self, aStartIndex, aEndIndex=-1)
Definition: pcbnew.py:6314
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6356
def CLastPoint(self)
Definition: pcbnew.py:6235
def Remove(self, *args)
Definition: pcbnew.py:6295
def RemoveShape(self, aPointIndex)
Definition: pcbnew.py:6302
def SetPoint(self, aIndex, aPos)
Definition: pcbnew.py:6223
def Simplify2(self, aRemoveColinear=True)
Definition: pcbnew.py:6203
def SelfIntersecting(self)
Definition: pcbnew.py:6337
def NextShape(self, aPointIndex)
Definition: pcbnew.py:6219
def Simplify(self, aMaxError=0)
Definition: pcbnew.py:6199
def ArcIndex(self, aSegment)
Definition: pcbnew.py:6402
def CSegment(self, aIndex)
Definition: pcbnew.py:6215
def Collide(self, *args)
Definition: pcbnew.py:6147
def SetClosed(self, aClosed)
Definition: pcbnew.py:6175
def ShapeCount(self)
Definition: pcbnew.py:6191
def IsArcStart(self, aIndex)
Definition: pcbnew.py:6422
def NearestSegment(self, aP)
Definition: pcbnew.py:6345
def Distance(self, *args)
Definition: pcbnew.py:6430
def SelfIntersectingWithArcs(self)
Definition: pcbnew.py:6341
def ReservePoints(self, aSize)
Definition: pcbnew.py:6267
def ClosestPoints(*args)
Definition: pcbnew.py:6155
def GenerateBBoxCache(self)
Definition: pcbnew.py:6251
def CPoint(self, aIndex)
Definition: pcbnew.py:6227
def ClosestSegments(aMyPrevPt, aMyStart, aMyEnd, aOtherPrevPt, aOtherStart, aOtherEnd, aPt0, aPt1, aDistSq)
Definition: pcbnew.py:6163
def Append(self, *args)
Definition: pcbnew.py:6271
def PointAlong(self, aPathLength)
Definition: pcbnew.py:6379
def SetWidth(self, aWidth)
Definition: pcbnew.py:6179
def IsPtOnArc(self, aPtIndex)
Definition: pcbnew.py:6414
def Intersect(self, *args)
Definition: pcbnew.py:6322
def NearestPoint(self, *args)
Definition: pcbnew.py:6349
def Split(self, *args)
Definition: pcbnew.py:6387
def ClosestSegmentsFast(self, aOther, aPt0, aPt1)
Definition: pcbnew.py:6167
def Area(self, aAbsolute=True)
Definition: pcbnew.py:6383
def Rotate(self, *args)
Definition: pcbnew.py:6375
def Arc(self, aArc)
Definition: pcbnew.py:6406
def __ne__(self, aRhs)
Definition: pcbnew.py:6360
def Insert(self, *args)
Definition: pcbnew.py:6281
def OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify=False)
Definition: pcbnew.py:6394
def CompareGeometry(self, aOther)
Definition: pcbnew.py:6364
def BBox(self, aClearance=0)
Definition: pcbnew.py:6247
def Replace(self, *args)
Definition: pcbnew.py:6288
def RemoveDuplicatePoints(self)
Definition: pcbnew.py:6195
def Intersects(self, aChain)
Definition: pcbnew.py:6318
def Mirror(self, *args)
Definition: pcbnew.py:6368
def IsSharedPt(self, aIndex)
Definition: pcbnew.py:6410
def IsArcSegment(self, aSegment)
Definition: pcbnew.py:6418
def PathLength(self, aP, aIndex=-1)
Definition: pcbnew.py:6329
def IsArcEnd(self, aIndex)
Definition: pcbnew.py:6426
def FindSegment(self, aP, aThreshold=1)
Definition: pcbnew.py:6310
def __init__(self, *args)
Definition: pcbnew.py:6135
def Segment(self, aIndex)
Definition: pcbnew.py:6211
def NormalizeAreaOutlines(self)
Definition: pcbnew.py:6751
def CVertex(self, *args)
Definition: pcbnew.py:6529
def SquaredDistance(self, *args)
Definition: pcbnew.py:6880
def IsTriangulationUpToDate(self)
Definition: pcbnew.py:6460
def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False)
Definition: pcbnew.py:6803
def IsPolygonSelfIntersecting(self, aPolygonIndex)
Definition: pcbnew.py:6541
def IsVertexInHole(self, aGlobalIdx)
Definition: pcbnew.py:6891
def VertexCount(self, aOutline=-1, aHole=-1)
Definition: pcbnew.py:6557
def OutlineCount(self)
Definition: pcbnew.py:6553
def IterateFromVertexWithHoles(self, aGlobalIdx)
Definition: pcbnew.py:6645
def BooleanXor(self, *args)
Definition: pcbnew.py:6700
def FilletPolygon(self, aRadius, aErrorMax, aIndex)
Definition: pcbnew.py:6861
def IsSelfIntersecting(self)
Definition: pcbnew.py:6545
def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:6783
def TotalVertices(self)
Definition: pcbnew.py:6841
def RemoveAllContours(self)
Definition: pcbnew.py:6818
def SquaredDistanceToSeg(self, aSegment, aNearest=None)
Definition: pcbnew.py:6887
def SetVertex(self, *args)
Definition: pcbnew.py:6834
def HoleCount(self, aOutline)
Definition: pcbnew.py:6565
def CIterateWithHoles(self, *args)
Definition: pcbnew.py:6638
def CloneDropTriangulation(self)
Definition: pcbnew.py:6476
def Collide(self, *args)
Definition: pcbnew.py:6775
def BooleanAdd(self, *args)
Definition: pcbnew.py:6679
def BuildBBoxCaches(self)
Definition: pcbnew.py:6795
def RemoveNullSegments(self)
Definition: pcbnew.py:6830
def Iterate(self, *args)
Definition: pcbnew.py:6615
def HasTouchingHoles(self)
Definition: pcbnew.py:6739
def Mirror(self, aRef, aFlipDirection)
Definition: pcbnew.py:6759
def Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify=False)
Definition: pcbnew.py:6711
def ChamferPolygon(self, aDistance, aIndex)
Definition: pcbnew.py:6857
def NewHole(self, aOutline=-1)
Definition: pcbnew.py:6484
def CacheTriangulation(self, aPartition=True, aSimplify=False)
Definition: pcbnew.py:6456
def ArcCount(self)
Definition: pcbnew.py:6504
def OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify)
Definition: pcbnew.py:6719
def FullPointCount(self)
Definition: pcbnew.py:6561
def RemoveContour(self, aContourIdx, aPolygonIdx=-1)
Definition: pcbnew.py:6822
def RemoveOutline(self, aOutlineIdx)
Definition: pcbnew.py:6826
def NewOutline(self)
Definition: pcbnew.py:6480
def AddHole(self, aHole, aOutline=-1)
Definition: pcbnew.py:6492
def SquaredDistanceToPolygon(self, *args)
Definition: pcbnew.py:6873
def IterateSegments(self, *args)
Definition: pcbnew.py:6649
def COutline(self, aIndex)
Definition: pcbnew.py:6599
def BBox(self, aClearance=0)
Definition: pcbnew.py:6767
def InsertVertex(self, aGlobalIndex, aNewVertex)
Definition: pcbnew.py:6525
def AddOutline(self, aOutline)
Definition: pcbnew.py:6488
def __init__(self, *args)
Definition: pcbnew.py:6445
def Hole(self, aOutline, aHole)
Definition: pcbnew.py:6584
def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
Definition: pcbnew.py:6537
def IterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:6665
def Rotate(self, *args)
Definition: pcbnew.py:6763
def GetArcs(self, aArcBuffer)
Definition: pcbnew.py:6508
def RemoveVertex(self, *args)
Definition: pcbnew.py:6811
def UpdateTriangulationDataHash(self)
Definition: pcbnew.py:6853
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:6791
def InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError)
Definition: pcbnew.py:6723
def Append(self, *args)
Definition: pcbnew.py:6516
def Outline(self, *args)
Definition: pcbnew.py:6569
def BooleanSubtract(self, *args)
Definition: pcbnew.py:6686
def Unfracture(self)
Definition: pcbnew.py:6731
def CPolygon(self, aIndex)
Definition: pcbnew.py:6607
def RebuildHolesFromContours(self)
Definition: pcbnew.py:6707
def GetHash(self)
Definition: pcbnew.py:6464
def Fillet(self, aRadius, aErrorMax)
Definition: pcbnew.py:6869
def Fracture(self)
Definition: pcbnew.py:6727
def Deflate(self, aAmount, aCornerStrategy, aMaxError)
Definition: pcbnew.py:6715
def UnitSet(self, aPolygonIndex)
Definition: pcbnew.py:6580
def CIterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:6672
def Simplify(self)
Definition: pcbnew.py:6743
def SimplifyOutlines(self, aMaxError=0)
Definition: pcbnew.py:6747
def CHole(self, aOutline, aHole)
Definition: pcbnew.py:6603
def BuildPolysetFromOrientedPaths(self, aPaths, aEvenOdd=False)
Definition: pcbnew.py:6895
def DeletePolygon(self, aIdx)
Definition: pcbnew.py:6845
def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
Definition: pcbnew.py:6468
def TriangulatedPolygon(self, aIndex)
Definition: pcbnew.py:6595
def CIterateSegments(self, *args)
Definition: pcbnew.py:6657
def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True)
Definition: pcbnew.py:6849
def BooleanIntersection(self, *args)
Definition: pcbnew.py:6693
def AddPolygon(self, apolygon)
Definition: pcbnew.py:6496
def IterateWithHoles(self, *args)
Definition: pcbnew.py:6623
def Chamfer(self, aDistance)
Definition: pcbnew.py:6865
def HasHoles(self)
Definition: pcbnew.py:6735
def ClearArcs(self)
Definition: pcbnew.py:6512
def Subset(self, aFirstPolygon, aLastPolygon)
Definition: pcbnew.py:6576
def IsEmpty(self)
Definition: pcbnew.py:6807
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6755
def TriangulatedPolyCount(self)
Definition: pcbnew.py:6549
def PointOnEdge(self, aP, aAccuracy=0)
Definition: pcbnew.py:6771
def BBoxFromCaches(self)
Definition: pcbnew.py:6799
def Polygon(self, *args)
Definition: pcbnew.py:6588
def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
Definition: pcbnew.py:6472
def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:6787
def CIterate(self, *args)
Definition: pcbnew.py:6630
def CPolygons(self)
Definition: pcbnew.py:6611
def GetWidth(self)
Definition: pcbnew.py:6954
def Diagonal(self)
Definition: pcbnew.py:6926
def Collide(self, *args)
Definition: pcbnew.py:6938
def __init__(self, *args)
Definition: pcbnew.py:6907
def GetPosition(self)
Definition: pcbnew.py:6946
def MajorDimension(self)
Definition: pcbnew.py:6930
def MinorDimension(self)
Definition: pcbnew.py:6934
def GetSize(self)
Definition: pcbnew.py:6950
def Rotate(self, *args)
Definition: pcbnew.py:6962
def GetInflated(self, aOffset)
Definition: pcbnew.py:6922
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6970
def Outline(self)
Definition: pcbnew.py:6966
def BBox(self, aClearance=0)
Definition: pcbnew.py:6918
def GetHeight(self)
Definition: pcbnew.py:6958
def SetWidth(self, aWidth)
Definition: pcbnew.py:7013
def Collide(self, *args)
Definition: pcbnew.py:6996
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7029
def BBox(self, aClearance=0)
Definition: pcbnew.py:6992
def SetSeg(self, aSeg)
Definition: pcbnew.py:7005
def __init__(self, *args)
Definition: pcbnew.py:6983
def GetWidth(self)
Definition: pcbnew.py:7017
def GetSeg(self)
Definition: pcbnew.py:7009
def Is45Degree(self, *args)
Definition: pcbnew.py:7025
def Rotate(self, *args)
Definition: pcbnew.py:7021
def BBox(self, aClearance=0)
Definition: pcbnew.py:7053
def Clear(self)
Definition: pcbnew.py:7049
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:7080
def Vertices(self)
Definition: pcbnew.py:7069
def PointCount(self)
Definition: pcbnew.py:7057
def CDPoint(self, aIndex)
Definition: pcbnew.py:7065
def CPoint(self, aIndex)
Definition: pcbnew.py:7061
def Rotate(self, *args)
Definition: pcbnew.py:7084
def Append(self, *args)
Definition: pcbnew.py:7073
def __init__(self, *args)
Definition: pcbnew.py:7041
def GetClearance(self, aOther)
Definition: pcbnew.py:5706
def TransformToPolygon(self, aBuffer, aError, aErrorLoc)
Definition: pcbnew.py:5743
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:5739
def Distance(self, aP)
Definition: pcbnew.py:5731
def Parse(self, aStream)
Definition: pcbnew.py:5759
def BBox(self, aClearance=0)
Definition: pcbnew.py:5723
def Centre(self)
Definition: pcbnew.py:5727
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:5695
def Move(self, aVector)
Definition: pcbnew.py:5751
def Rotate(self, *args)
Definition: pcbnew.py:5747
def IsSolid(self)
Definition: pcbnew.py:5755
def Cast(self)
Definition: pcbnew.py:5767
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:5763
def IsNull(self)
Definition: pcbnew.py:5710
def SquaredDistance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:5735
def Clone(self)
Definition: pcbnew.py:5702
def Collide(self, *args)
Definition: pcbnew.py:5714
def __init__(self, *args)
Definition: pcbnew.py:18159
def iterator(self)
Definition: pcbnew.py:18121
def count(self, x)
Definition: pcbnew.py:18183
def upper_bound(self, x)
Definition: pcbnew.py:18219
def append(self, x)
Definition: pcbnew.py:18139
def insert(self, __x)
Definition: pcbnew.py:18227
def __nonzero__(self)
Definition: pcbnew.py:18127
def __getitem__(self, i)
Definition: pcbnew.py:18147
def end(self)
Definition: pcbnew.py:18191
def lower_bound(self, x)
Definition: pcbnew.py:18215
def add(self, x)
Definition: pcbnew.py:18151
def __bool__(self)
Definition: pcbnew.py:18131
def clear(self)
Definition: pcbnew.py:18175
def erase(self, *args)
Definition: pcbnew.py:18203
def equal_range(self, x)
Definition: pcbnew.py:18223
def find(self, x)
Definition: pcbnew.py:18211
def rbegin(self)
Definition: pcbnew.py:18195
def __len__(self)
Definition: pcbnew.py:18135
def size(self)
Definition: pcbnew.py:18171
def __iter__(self)
Definition: pcbnew.py:18124
def __contains__(self, x)
Definition: pcbnew.py:18143
def discard(self, x)
Definition: pcbnew.py:18155
def rend(self)
Definition: pcbnew.py:18199
def begin(self)
Definition: pcbnew.py:18187
def empty(self)
Definition: pcbnew.py:18167
def swap(self, v)
Definition: pcbnew.py:18179
def __init__(self, *args)
Definition: pcbnew.py:2014
def StripUseless(self)
Definition: pcbnew.py:2022
def __init__(self, *args)
Definition: pcbnew.py:1948
def __init__(self)
Definition: pcbnew.py:2219
def Compare(self, aRhs)
Definition: pcbnew.py:16366
def __gt__(self, aRhs)
Definition: pcbnew.py:16374
def __eq__(self, aRhs)
Definition: pcbnew.py:16370
def __lt__(self, aRhs)
Definition: pcbnew.py:16378
def __init__(self, aFont=None)
Definition: pcbnew.py:16362
def __eq__(self, aOther)
Definition: pcbnew.py:10824
def __init__(self, aText, aVisible, aLayer)
Definition: pcbnew.py:10820
def GetComment(self, aIdx)
Definition: pcbnew.py:2106
def SetDate(self, aDate)
Definition: pcbnew.py:2078
def GetContextualTextVars(aVars)
Definition: pcbnew.py:2115
def Format(self, aFormatter)
Definition: pcbnew.py:2123
def GetCompany(self)
Definition: pcbnew.py:2098
def GetTitle(self)
Definition: pcbnew.py:2074
def Clear(self)
Definition: pcbnew.py:2110
def GetDate(self)
Definition: pcbnew.py:2082
def SetComment(self, aIdx, aComment)
Definition: pcbnew.py:2102
def SetRevision(self, aRevision)
Definition: pcbnew.py:2086
def TextVarResolver(self, aToken, aProject, aFlags=0)
Definition: pcbnew.py:2119
def GetRevision(self)
Definition: pcbnew.py:2090
def __init__(self)
Definition: pcbnew.py:2065
def SetCompany(self, aCompany)
Definition: pcbnew.py:2094
def SetTitle(self, aTitle)
Definition: pcbnew.py:2070
def end(self)
Definition: pcbnew.py:17603
def __delitem__(self, *args)
Definition: pcbnew.py:17557
def __setslice__(self, *args)
Definition: pcbnew.py:17546
def __iter__(self)
Definition: pcbnew.py:17527
def __len__(self)
Definition: pcbnew.py:17538
def __getslice__(self, i, j)
Definition: pcbnew.py:17542
def get_allocator(self)
Definition: pcbnew.py:17619
def begin(self)
Definition: pcbnew.py:17599
def iterator(self)
Definition: pcbnew.py:17524
def __setitem__(self, *args)
Definition: pcbnew.py:17571
def capacity(self)
Definition: pcbnew.py:17677
def erase(self, *args)
Definition: pcbnew.py:17627
def __getitem__(self, *args)
Definition: pcbnew.py:17564
def clear(self)
Definition: pcbnew.py:17615
def size(self)
Definition: pcbnew.py:17591
def __nonzero__(self)
Definition: pcbnew.py:17530
def empty(self)
Definition: pcbnew.py:17587
def assign(self, n, x)
Definition: pcbnew.py:17655
def pop(self)
Definition: pcbnew.py:17579
def reserve(self, n)
Definition: pcbnew.py:17673
def __init__(self, *args)
Definition: pcbnew.py:17634
def back(self)
Definition: pcbnew.py:17651
def pop_back(self)
Definition: pcbnew.py:17623
def insert(self, *args)
Definition: pcbnew.py:17666
def rend(self)
Definition: pcbnew.py:17611
def __bool__(self)
Definition: pcbnew.py:17534
def resize(self, *args)
Definition: pcbnew.py:17659
def swap(self, v)
Definition: pcbnew.py:17595
def push_back(self, x)
Definition: pcbnew.py:17643
def __delslice__(self, i, j)
Definition: pcbnew.py:17553
def rbegin(self)
Definition: pcbnew.py:17607
def append(self, x)
Definition: pcbnew.py:17583
def front(self)
Definition: pcbnew.py:17647
def size(self)
Definition: pcbnew.py:11923
def resize(self, *args)
Definition: pcbnew.py:11991
def pop(self)
Definition: pcbnew.py:11911
def insert(self, *args)
Definition: pcbnew.py:11998
def __getitem__(self, *args)
Definition: pcbnew.py:11896
def begin(self)
Definition: pcbnew.py:11931
def assign(self, n, x)
Definition: pcbnew.py:11987
def get_allocator(self)
Definition: pcbnew.py:11951
def clear(self)
Definition: pcbnew.py:11947
def empty(self)
Definition: pcbnew.py:11919
def __delitem__(self, *args)
Definition: pcbnew.py:11889
def push_front(self, x)
Definition: pcbnew.py:12009
def __setitem__(self, *args)
Definition: pcbnew.py:11903
def __delslice__(self, i, j)
Definition: pcbnew.py:11885
def __setslice__(self, *args)
Definition: pcbnew.py:11878
def __iter__(self)
Definition: pcbnew.py:11859
def __nonzero__(self)
Definition: pcbnew.py:11862
def __init__(self, *args)
Definition: pcbnew.py:11966
def front(self)
Definition: pcbnew.py:11979
def swap(self, v)
Definition: pcbnew.py:11927
def erase(self, *args)
Definition: pcbnew.py:11959
def push_back(self, x)
Definition: pcbnew.py:11975
def __getslice__(self, i, j)
Definition: pcbnew.py:11874
def __bool__(self)
Definition: pcbnew.py:11866
def append(self, x)
Definition: pcbnew.py:11915
def __len__(self)
Definition: pcbnew.py:11870
def iterator(self)
Definition: pcbnew.py:11856
def pop_front(self)
Definition: pcbnew.py:12005
def back(self)
Definition: pcbnew.py:11983
def end(self)
Definition: pcbnew.py:11935
def rbegin(self)
Definition: pcbnew.py:11939
def rend(self)
Definition: pcbnew.py:11943
def pop_back(self)
Definition: pcbnew.py:11955
def GetUnitPair(self, aPrimaryUnit, aSecondaryUnits)
Definition: pcbnew.py:10123
def GetOriginTransforms(self)
Definition: pcbnew.py:10131
def GetIuScale(self)
Definition: pcbnew.py:10127
def MessageTextFromValue(self, *args)
Definition: pcbnew.py:10146
def StringFromValue(self, *args)
Definition: pcbnew.py:10139
def AngleValueFromString(self, aTextValue)
Definition: pcbnew.py:10165
def __init__(self, aIuScale, aUnits)
Definition: pcbnew.py:10110
def MessageTextFromMinOptMax(self, aValue)
Definition: pcbnew.py:10153
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:10119
def OptionalValueFromString(self, *args)
Definition: pcbnew.py:10161
def ValueFromString(self, *args)
Definition: pcbnew.py:10157
def StringFromOptionalValue(self, *args)
Definition: pcbnew.py:10135
def find(self, *args)
Definition: pcbnew.py:7336
def __lt__(self, rhs)
Definition: pcbnew.py:7371
def __ne__(self, rhs)
Definition: pcbnew.py:7367
def __gt__(self, rhs)
Definition: pcbnew.py:7375
def __str__(self)
Definition: pcbnew.py:7429
def end(self)
Definition: pcbnew.py:7414
def empty(self)
Definition: pcbnew.py:7332
def c_str(self)
Definition: pcbnew.py:7328
def __init__(self, *args)
Definition: pcbnew.py:7317
def utf8_to_wxstring(self)
Definition: pcbnew.py:7406
def clear(self)
Definition: pcbnew.py:7343
def __iadd__(self, *args)
Definition: pcbnew.py:7383
def compare(self, s)
Definition: pcbnew.py:7355
def __eq__(self, *args)
Definition: pcbnew.py:7359
def wx_str(self)
Definition: pcbnew.py:7402
def find_first_of(self, str, pos=0)
Definition: pcbnew.py:7379
def size(self)
Definition: pcbnew.py:7351
def GetChars(self)
Definition: pcbnew.py:7424
def Cast_to_CChar(self)
Definition: pcbnew.py:7418
def length(self)
Definition: pcbnew.py:7347
def utf8_to_string(self)
Definition: pcbnew.py:7398
def substr(self, *args)
Definition: pcbnew.py:7394
def begin(self)
Definition: pcbnew.py:7410
def GetCenter(self)
Definition: pcbnew.py:3646
def Min(self)
Definition: pcbnew.py:3638
def Max(self)
Definition: pcbnew.py:3642
def __init__(self)
Definition: pcbnew.py:3654
def GetSize(self)
Definition: pcbnew.py:3650
def Scale(self, aScale)
Definition: pcbnew.py:3675
def LoadSTEP(aFileName)
Definition: pcbnew.py:3684
def SaveSTEP(self, aFileName)
Definition: pcbnew.py:3679
def Translate(self, aX, aY, aZ)
Definition: pcbnew.py:3671
def GetBoundingBox(self)
Definition: pcbnew.py:3667
def __gt__(self, aVector)
Definition: pcbnew.py:4766
def __eq__(self, aVector)
Definition: pcbnew.py:4750
def Get(self)
Definition: pcbnew.py:4778
def EuclideanNorm(self)
Definition: pcbnew.py:4683
property x
Definition: pcbnew.py:4672
property y
Definition: pcbnew.py:4673
def Perpendicular(self)
Definition: pcbnew.py:4691
def __truediv__(self, *args)
Definition: pcbnew.py:4744
def Format(self)
Definition: pcbnew.py:4699
def __imul__(self, *args)
Definition: pcbnew.py:4719
def __neg__(self)
Definition: pcbnew.py:4740
def Distance(self, aVector)
Definition: pcbnew.py:4711
def __sub__(self, other)
Definition: pcbnew.py:4797
def __le__(self, aVector)
Definition: pcbnew.py:4762
def __ne__(self, aVector)
Definition: pcbnew.py:4754
def __setitem__(self, index, val)
Definition: pcbnew.py:4788
def __ge__(self, aVector)
Definition: pcbnew.py:4770
def __add__(self, other)
Definition: pcbnew.py:4796
def __init__(self, *args)
Definition: pcbnew.py:4675
def __nonzero__(self)
Definition: pcbnew.py:4795
def SquaredEuclideanNorm(self)
Definition: pcbnew.py:4687
def __str__(self)
Definition: pcbnew.py:4784
def Resize(self, aNewLength)
Definition: pcbnew.py:4695
def __getitem__(self, index)
Definition: pcbnew.py:4787
def Dot(self, aVector)
Definition: pcbnew.py:4707
def SquaredDistance(self, aVector)
Definition: pcbnew.py:4715
def __lt__(self, aVector)
Definition: pcbnew.py:4758
def Set(self, x, y)
Definition: pcbnew.py:4774
def Cross(self, aVector)
Definition: pcbnew.py:4703
def __len__(self)
Definition: pcbnew.py:4786
def __iadd__(self, *args)
Definition: pcbnew.py:4726
def __isub__(self, *args)
Definition: pcbnew.py:4733
def Set(self, x, y)
Definition: pcbnew.py:4915
def __getitem__(self, index)
Definition: pcbnew.py:4928
def Dot(self, aVector)
Definition: pcbnew.py:4848
property y
Definition: pcbnew.py:4814
def __sub__(self, other)
Definition: pcbnew.py:4938
def __add__(self, other)
Definition: pcbnew.py:4937
def Resize(self, aNewLength)
Definition: pcbnew.py:4836
def Cross(self, aVector)
Definition: pcbnew.py:4844
def __lt__(self, aVector)
Definition: pcbnew.py:4899
def __nonzero__(self)
Definition: pcbnew.py:4936
def EuclideanNorm(self)
Definition: pcbnew.py:4824
def __len__(self)
Definition: pcbnew.py:4927
def __str__(self)
Definition: pcbnew.py:4925
def __imul__(self, *args)
Definition: pcbnew.py:4860
def Get(self)
Definition: pcbnew.py:4919
def Perpendicular(self)
Definition: pcbnew.py:4832
def SquaredEuclideanNorm(self)
Definition: pcbnew.py:4828
property x
Definition: pcbnew.py:4813
def __gt__(self, aVector)
Definition: pcbnew.py:4907
def __ne__(self, aVector)
Definition: pcbnew.py:4895
def __setitem__(self, index, val)
Definition: pcbnew.py:4929
def __iadd__(self, *args)
Definition: pcbnew.py:4867
def __truediv__(self, *args)
Definition: pcbnew.py:4885
def Format(self)
Definition: pcbnew.py:4840
def SquaredDistance(self, aVector)
Definition: pcbnew.py:4856
def __neg__(self)
Definition: pcbnew.py:4881
def __le__(self, aVector)
Definition: pcbnew.py:4903
def __eq__(self, aVector)
Definition: pcbnew.py:4891
def __isub__(self, *args)
Definition: pcbnew.py:4874
def __ge__(self, aVector)
Definition: pcbnew.py:4911
def __init__(self, *args)
Definition: pcbnew.py:4816
def Distance(self, aVector)
Definition: pcbnew.py:4852
def __itruediv__(self, *args)
Definition: pcbnew.py:5006
def Normalize(self)
Definition: pcbnew.py:4990
property y
Definition: pcbnew.py:4968
property x
Definition: pcbnew.py:4967
def EuclideanNorm(self)
Definition: pcbnew.py:4986
def __setitem__(self, index, val)
Definition: pcbnew.py:5026
def __len__(self)
Definition: pcbnew.py:5024
def __ne__(self, aVector)
Definition: pcbnew.py:4998
def Cross(self, aVector)
Definition: pcbnew.py:4978
def __getitem__(self, index)
Definition: pcbnew.py:5025
def __eq__(self, aVector)
Definition: pcbnew.py:4994
def __imul__(self, val)
Definition: pcbnew.py:5002
def __init__(self, *args)
Definition: pcbnew.py:4971
property z
Definition: pcbnew.py:4969
def Get(self)
Definition: pcbnew.py:5016
def __nonzero__(self)
Definition: pcbnew.py:5035
def Dot(self, aVector)
Definition: pcbnew.py:4982
def __str__(self)
Definition: pcbnew.py:5022
def Set(self, x, y, z)
Definition: pcbnew.py:5012
def append(self, x)
Definition: pcbnew.py:20855
def reserve(self, n)
Definition: pcbnew.py:20945
def push_back(self, x)
Definition: pcbnew.py:20915
def erase(self, *args)
Definition: pcbnew.py:20899
def __init__(self, *args)
Definition: pcbnew.py:20906
def __setslice__(self, *args)
Definition: pcbnew.py:20818
def __delslice__(self, i, j)
Definition: pcbnew.py:20825
def assign(self, n, x)
Definition: pcbnew.py:20927
def resize(self, *args)
Definition: pcbnew.py:20931
def __getitem__(self, *args)
Definition: pcbnew.py:20836
def __delitem__(self, *args)
Definition: pcbnew.py:20829
def __getslice__(self, i, j)
Definition: pcbnew.py:20814
def __setitem__(self, *args)
Definition: pcbnew.py:20843
def insert(self, *args)
Definition: pcbnew.py:20938
def insert(self, *args)
Definition: pcbnew.py:7243
def __setslice__(self, *args)
Definition: pcbnew.py:7123
def capacity(self)
Definition: pcbnew.py:7254
def push_back(self, x)
Definition: pcbnew.py:7220
def __getitem__(self, *args)
Definition: pcbnew.py:7141
def __iter__(self)
Definition: pcbnew.py:7104
def iterator(self)
Definition: pcbnew.py:7101
def pop_back(self)
Definition: pcbnew.py:7200
def get_allocator(self)
Definition: pcbnew.py:7196
def __bool__(self)
Definition: pcbnew.py:7111
def __delslice__(self, i, j)
Definition: pcbnew.py:7130
def __delitem__(self, *args)
Definition: pcbnew.py:7134
def erase(self, *args)
Definition: pcbnew.py:7204
def resize(self, *args)
Definition: pcbnew.py:7236
def __nonzero__(self)
Definition: pcbnew.py:7107
def assign(self, n, x)
Definition: pcbnew.py:7232
def swap(self, v)
Definition: pcbnew.py:7172
def __getslice__(self, i, j)
Definition: pcbnew.py:7119
def __setitem__(self, *args)
Definition: pcbnew.py:7148
def reserve(self, n)
Definition: pcbnew.py:7250
def __init__(self, *args)
Definition: pcbnew.py:7211
def append(self, x)
Definition: pcbnew.py:7160
def __getitem__(self, *args)
Definition: pcbnew.py:5337
def erase(self, *args)
Definition: pcbnew.py:5400
def resize(self, *args)
Definition: pcbnew.py:5432
def __iter__(self)
Definition: pcbnew.py:5300
def __delslice__(self, i, j)
Definition: pcbnew.py:5326
def __nonzero__(self)
Definition: pcbnew.py:5303
def get_allocator(self)
Definition: pcbnew.py:5392
def append(self, x)
Definition: pcbnew.py:5356
def insert(self, *args)
Definition: pcbnew.py:5439
def assign(self, n, x)
Definition: pcbnew.py:5428
def __init__(self, *args)
Definition: pcbnew.py:5407
def __bool__(self)
Definition: pcbnew.py:5307
def capacity(self)
Definition: pcbnew.py:5450
def __setslice__(self, *args)
Definition: pcbnew.py:5319
def iterator(self)
Definition: pcbnew.py:5297
def push_back(self, x)
Definition: pcbnew.py:5416
def __getslice__(self, i, j)
Definition: pcbnew.py:5315
def __setitem__(self, *args)
Definition: pcbnew.py:5344
def reserve(self, n)
Definition: pcbnew.py:5446
def __delitem__(self, *args)
Definition: pcbnew.py:5330
def pop_back(self)
Definition: pcbnew.py:5396
def swap(self, v)
Definition: pcbnew.py:5368
def resize(self, *args)
Definition: pcbnew.py:18926
def __getslice__(self, i, j)
Definition: pcbnew.py:18809
def erase(self, *args)
Definition: pcbnew.py:18894
def assign(self, n, x)
Definition: pcbnew.py:18922
def __init__(self, *args)
Definition: pcbnew.py:18901
def __delitem__(self, *args)
Definition: pcbnew.py:18824
def __delslice__(self, i, j)
Definition: pcbnew.py:18820
def __getitem__(self, *args)
Definition: pcbnew.py:18831
def __setslice__(self, *args)
Definition: pcbnew.py:18813
def __setitem__(self, *args)
Definition: pcbnew.py:18838
def insert(self, *args)
Definition: pcbnew.py:18933
def __lt__(self, aOther)
Definition: pcbnew.py:10759
def __ne__(self, aOther)
Definition: pcbnew.py:10755
def __init__(self, *args)
Definition: pcbnew.py:10744
def __eq__(self, aOther)
Definition: pcbnew.py:10751
def reserve(self, n)
Definition: pcbnew.py:11839
def iterator(self)
Definition: pcbnew.py:11690
def __delitem__(self, *args)
Definition: pcbnew.py:11723
def __getslice__(self, i, j)
Definition: pcbnew.py:11708
def back(self)
Definition: pcbnew.py:11817
def capacity(self)
Definition: pcbnew.py:11843
def __setslice__(self, *args)
Definition: pcbnew.py:11712
def get_allocator(self)
Definition: pcbnew.py:11785
def __init__(self, *args)
Definition: pcbnew.py:11800
def append(self, x)
Definition: pcbnew.py:11749
def empty(self)
Definition: pcbnew.py:11753
def __iter__(self)
Definition: pcbnew.py:11693
def end(self)
Definition: pcbnew.py:11769
def __setitem__(self, *args)
Definition: pcbnew.py:11737
def __delslice__(self, i, j)
Definition: pcbnew.py:11719
def resize(self, *args)
Definition: pcbnew.py:11825
def assign(self, n, x)
Definition: pcbnew.py:11821
def size(self)
Definition: pcbnew.py:11757
def push_back(self, x)
Definition: pcbnew.py:11809
def front(self)
Definition: pcbnew.py:11813
def pop(self)
Definition: pcbnew.py:11745
def pop_back(self)
Definition: pcbnew.py:11789
def __len__(self)
Definition: pcbnew.py:11704
def __nonzero__(self)
Definition: pcbnew.py:11696
def insert(self, *args)
Definition: pcbnew.py:11832
def __getitem__(self, *args)
Definition: pcbnew.py:11730
def clear(self)
Definition: pcbnew.py:11781
def swap(self, v)
Definition: pcbnew.py:11761
def rend(self)
Definition: pcbnew.py:11777
def erase(self, *args)
Definition: pcbnew.py:11793
def begin(self)
Definition: pcbnew.py:11765
def rbegin(self)
Definition: pcbnew.py:11773
def __bool__(self)
Definition: pcbnew.py:11700
def GetProgressReporter(self)
Definition: pcbnew.py:15235
def __init__(self, aBoard)
Definition: pcbnew.py:15247
def IsDebug(self)
Definition: pcbnew.py:15243
def Fill(self, aZones, aCheck=False, aParent=None)
Definition: pcbnew.py:15239
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:15231
def GetRuleAreaPlacementSource(self)
Definition: pcbnew.py:15380
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:15404
def HasKeepoutParametersSet(self)
Definition: pcbnew.py:15364
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:15400
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:15348
def __eq__(self, aOther)
Definition: pcbnew.py:15315
def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
Definition: pcbnew.py:15332
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:15432
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:15428
def SetRuleAreaPlacementEnabled(self, aEnabled)
Definition: pcbnew.py:15408
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:15392
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:15452
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:15360
def __ne__(self, aOther)
Definition: pcbnew.py:15319
def SetRuleAreaPlacementSourceType(self, aType)
Definition: pcbnew.py:15412
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:15384
def __lshift__(self, aSource)
Definition: pcbnew.py:15323
def GetCornerRadius(self)
Definition: pcbnew.py:15352
def SetRuleAreaPlacementSource(self, aSource)
Definition: pcbnew.py:15416
def GetRuleAreaPlacementSourceType(self)
Definition: pcbnew.py:15376
def GetPadConnection(self)
Definition: pcbnew.py:15356
def GetIslandRemovalMode(self)
Definition: pcbnew.py:15440
def GetDoNotAllowPads(self)
Definition: pcbnew.py:15396
def ExportSetting(self, aTarget, aFullExport=True)
Definition: pcbnew.py:15336
def GetCornerSmoothingType(self)
Definition: pcbnew.py:15344
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:15340
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:15444
def GetIsRuleArea(self)
Definition: pcbnew.py:15368
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:15420
def GetRuleAreaPlacementEnabled(self)
Definition: pcbnew.py:15372
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:15436
def GetDoNotAllowVias(self)
Definition: pcbnew.py:15388
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:15424
def __init__(self)
Definition: pcbnew.py:15311
def GetDefaultSettings()
Definition: pcbnew.py:15328
def GetMinIslandArea(self)
Definition: pcbnew.py:15448
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:14685
def GetMinThickness(self)
Definition: pcbnew.py:14783
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:14779
def GetLocalFlags(self)
Definition: pcbnew.py:14855
def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
Definition: pcbnew.py:14886
def NeedRefill(self)
Definition: pcbnew.py:14767
def GetNumCorners(self)
Definition: pcbnew.py:14925
def UnHatchBorder(self)
Definition: pcbnew.py:15149
def NewHole(self)
Definition: pcbnew.py:14953
def SetNeedRefill(self, aNeedRefill)
Definition: pcbnew.py:14771
def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
Definition: pcbnew.py:15141
def GetThermalReliefGap(self, *args)
Definition: pcbnew.py:14716
def IsTeardropArea(self)
Definition: pcbnew.py:15028
def IterateWithHoles(self)
Definition: pcbnew.py:14933
def SetHatchSmoothingValue(self, aValue)
Definition: pcbnew.py:14827
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:15108
def GetFill(self, aLayer)
Definition: pcbnew.py:14977
def GetZoneName(self)
Definition: pcbnew.py:14673
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:15060
def SameNet(self, aOther)
Definition: pcbnew.py:14669
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:15100
def HatchBorder(self)
Definition: pcbnew.py:15153
def __eq__(self, *args)
Definition: pcbnew.py:15169
def GetLock(self)
Definition: pcbnew.py:14747
def GetDefaultHatchPitch()
Definition: pcbnew.py:15137
def GetThermalReliefSpokeWidth(self)
Definition: pcbnew.py:14727
def Outline(self, *args)
Definition: pcbnew.py:14863
def GetFirstLayer(self)
Definition: pcbnew.py:14696
def GetDoNotAllowVias(self)
Definition: pcbnew.py:15064
def GetRuleAreaPlacementSource(self)
Definition: pcbnew.py:15056
def GetHatchHoleMinArea(self)
Definition: pcbnew.py:14831
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:15068
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:15001
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:15128
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:15104
def CIterateWithHoles(self)
Definition: pcbnew.py:14937
def GetIsRuleArea(self)
Definition: pcbnew.py:15044
def GetTeardropAreaType(self)
Definition: pcbnew.py:15036
def GetCornerRadius(self)
Definition: pcbnew.py:15013
def GetSelectedCorner(self)
Definition: pcbnew.py:14847
def GetIslandRemovalMode(self)
Definition: pcbnew.py:15116
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14874
def SetHatchThickness(self, aThickness)
Definition: pcbnew.py:14795
def AddPolygon(self, *args)
Definition: pcbnew.py:15021
def HigherPriority(self, aOther)
Definition: pcbnew.py:14665
def ClassOf(aItem)
Definition: pcbnew.py:14637
def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
Definition: pcbnew.py:14723
def SetTeardropAreaType(self, aType)
Definition: pcbnew.py:15032
def GetRuleAreaPlacementEnabled(self)
Definition: pcbnew.py:15048
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:15009
def SetHatchStyle(self, aStyle)
Definition: pcbnew.py:14965
def GetBorderHatchPitch(self)
Definition: pcbnew.py:15132
def GetHashValue(self, aLayer)
Definition: pcbnew.py:15165
def GetRuleAreaPlacementSourceType(self)
Definition: pcbnew.py:15052
def CacheBoundingBox(self)
Definition: pcbnew.py:14681
def SetRuleAreaPlacementEnabled(self, aEnabled)
Definition: pcbnew.py:15084
def SetZoneName(self, aName)
Definition: pcbnew.py:14677
def GetHatchSmoothingLevel(self)
Definition: pcbnew.py:14815
def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None)
Definition: pcbnew.py:14997
def SetHatchBorderAlgorithm(self, aAlgo)
Definition: pcbnew.py:14843
def SetFillMode(self, aFillMode)
Definition: pcbnew.py:14704
def GetLocalClearance(self, *args)
Definition: pcbnew.py:14689
def HasFilledPolysForLayer(self, aLayer)
Definition: pcbnew.py:14969
def CalculateOutlineArea(self)
Definition: pcbnew.py:14735
def SetHatchHoleMinArea(self, aPct)
Definition: pcbnew.py:14835
def GetPadConnection(self)
Definition: pcbnew.py:14775
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14700
def GetAssignedPriority(self)
Definition: pcbnew.py:14661
def GetHatchLines(self)
Definition: pcbnew.py:15157
def GetCornerSmoothingType(self)
Definition: pcbnew.py:15005
def GetHatchGap(self)
Definition: pcbnew.py:14799
def SetBorderHatchPitch(self, aPitch)
Definition: pcbnew.py:15145
def GetFillMode(self)
Definition: pcbnew.py:14708
def SetCornerPosition(self, aCornerIndex, new_pos)
Definition: pcbnew.py:14949
def HitTest(self, *args)
Definition: pcbnew.py:14910
def InitDataFromSrcInCopyCtor(self, aZone)
Definition: pcbnew.py:14649
def GetCornerPosition(self, aCornerIndex)
Definition: pcbnew.py:14945
def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:14902
def CalculateFilledArea(self)
Definition: pcbnew.py:14731
def SetAssignedPriority(self, aPriority)
Definition: pcbnew.py:14657
def UnFill(self)
Definition: pcbnew.py:14917
def GetHatchOrientation(self)
Definition: pcbnew.py:14807
def SetRuleAreaPlacementSourceType(self, aType)
Definition: pcbnew.py:15088
def Deserialize(self, aContainer)
Definition: pcbnew.py:14645
def SetFilledPolysList(self, aLayer, aPolysList)
Definition: pcbnew.py:14985
def IsFilled(self)
Definition: pcbnew.py:14759
def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
Definition: pcbnew.py:14894
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:14898
def __init__(self, *args)
Definition: pcbnew.py:14628
def GetMinIslandArea(self)
Definition: pcbnew.py:15124
def GetHatchStyle(self)
Definition: pcbnew.py:14961
def SetHatchOrientation(self, aStep)
Definition: pcbnew.py:14811
def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:14906
def RemoveCutout(self, aOutlineIdx, aHoleIdx)
Definition: pcbnew.py:15017
def HasKeepoutParametersSet(self)
Definition: pcbnew.py:15040
def GetFilledPolysList(self, aLayer)
Definition: pcbnew.py:14973
def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
Definition: pcbnew.py:14890
def SetMinThickness(self, aMinThickness)
Definition: pcbnew.py:14787
def SetHatchGap(self, aStep)
Definition: pcbnew.py:14803
def Serialize(self, aContainer)
Definition: pcbnew.py:14641
def SetFillFlag(self, aLayer, aFlag)
Definition: pcbnew.py:14755
def MoveEdge(self, offset, aEdge)
Definition: pcbnew.py:14921
def GetHatchSmoothingValue(self)
Definition: pcbnew.py:14823
def IsConflicting(self)
Definition: pcbnew.py:14653
def SetOutline(self, aOutline)
Definition: pcbnew.py:14870
def GetDoNotAllowPads(self)
Definition: pcbnew.py:15072
def BuildHashValue(self, aLayer)
Definition: pcbnew.py:15161
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:15080
def GetHatchThickness(self)
Definition: pcbnew.py:14791
def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None)
Definition: pcbnew.py:14882
def SetThermalReliefGap(self, aThermalReliefGap)
Definition: pcbnew.py:14712
def SetIsFilled(self, isFilled)
Definition: pcbnew.py:14763
def IsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:14989
def CacheTriangulation(self, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:14981
def SetSelectedCorner(self, aCorner)
Definition: pcbnew.py:14851
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:15120
def GetFillFlag(self, aLayer)
Definition: pcbnew.py:14751
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:15076
def SetIsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:14993
def SetRuleAreaPlacementSource(self, aSource)
Definition: pcbnew.py:15092
def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False)
Definition: pcbnew.py:14957
def GetHatchBorderAlgorithm(self)
Definition: pcbnew.py:14839
def SetLocalFlags(self, aFlags)
Definition: pcbnew.py:14859
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:15112
def GetOutlineArea(self)
Definition: pcbnew.py:14743
def GetFilledArea(self)
Definition: pcbnew.py:14739
def RemoveAllContours(self)
Definition: pcbnew.py:14941
def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0)
Definition: pcbnew.py:14878
def SetHatchSmoothingLevel(self, aLevel)
Definition: pcbnew.py:14819
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:15096
def Iterate(self)
Definition: pcbnew.py:14929
def empty(self)
Definition: pcbnew.py:9378
def resize(self, *args)
Definition: pcbnew.py:9450
def __delitem__(self, *args)
Definition: pcbnew.py:9348
def rbegin(self)
Definition: pcbnew.py:9398
def __iter__(self)
Definition: pcbnew.py:9318
def assign(self, n, x)
Definition: pcbnew.py:9446
def __getitem__(self, *args)
Definition: pcbnew.py:9355
def pop_back(self)
Definition: pcbnew.py:9414
def reserve(self, n)
Definition: pcbnew.py:9464
def __setslice__(self, *args)
Definition: pcbnew.py:9337
def capacity(self)
Definition: pcbnew.py:9468
def __len__(self)
Definition: pcbnew.py:9329
def append(self, x)
Definition: pcbnew.py:9374
def __delslice__(self, i, j)
Definition: pcbnew.py:9344
def rend(self)
Definition: pcbnew.py:9402
def clear(self)
Definition: pcbnew.py:9406
def insert(self, *args)
Definition: pcbnew.py:9457
def size(self)
Definition: pcbnew.py:9382
def __init__(self, *args)
Definition: pcbnew.py:9425
def erase(self, *args)
Definition: pcbnew.py:9418
def front(self)
Definition: pcbnew.py:9438
def swap(self, v)
Definition: pcbnew.py:9386
def __bool__(self)
Definition: pcbnew.py:9325
def iterator(self)
Definition: pcbnew.py:9315
def __setitem__(self, *args)
Definition: pcbnew.py:9362
def back(self)
Definition: pcbnew.py:9442
def end(self)
Definition: pcbnew.py:9394
def __nonzero__(self)
Definition: pcbnew.py:9321
def __getslice__(self, i, j)
Definition: pcbnew.py:9333
def begin(self)
Definition: pcbnew.py:9390
def push_back(self, x)
Definition: pcbnew.py:9434
def get_allocator(self)
Definition: pcbnew.py:9410
def pop(self)
Definition: pcbnew.py:9370
def __call__(self, itemA, itemB)
Definition: pcbnew.py:20745
def __init__(self)
Definition: pcbnew.py:20749
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:20762
def __init__(self)
Definition: pcbnew.py:20766
def __init__(self)
Definition: pcbnew.py:20783
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:20779
def get_allocator(self)
Definition: pcbnew.py:3795
def erase(self, *args)
Definition: pcbnew.py:3803
def resize(self, *args)
Definition: pcbnew.py:3835
def __iter__(self)
Definition: pcbnew.py:3703
def rbegin(self)
Definition: pcbnew.py:3783
def iterator(self)
Definition: pcbnew.py:3700
def __setslice__(self, *args)
Definition: pcbnew.py:3722
def capacity(self)
Definition: pcbnew.py:3853
def empty(self)
Definition: pcbnew.py:3763
def begin(self)
Definition: pcbnew.py:3775
def swap(self, v)
Definition: pcbnew.py:3771
def __delslice__(self, i, j)
Definition: pcbnew.py:3729
def __getslice__(self, i, j)
Definition: pcbnew.py:3718
def __delitem__(self, *args)
Definition: pcbnew.py:3733
def __len__(self)
Definition: pcbnew.py:3714
def __setitem__(self, *args)
Definition: pcbnew.py:3747
def pop_back(self)
Definition: pcbnew.py:3799
def front(self)
Definition: pcbnew.py:3823
def end(self)
Definition: pcbnew.py:3779
def clear(self)
Definition: pcbnew.py:3791
def __nonzero__(self)
Definition: pcbnew.py:3706
def reserve(self, n)
Definition: pcbnew.py:3849
def __init__(self, *args)
Definition: pcbnew.py:3810
def size(self)
Definition: pcbnew.py:3767
def assign(self, n, x)
Definition: pcbnew.py:3831
def pop(self)
Definition: pcbnew.py:3755
def push_back(self, x)
Definition: pcbnew.py:3819
def rend(self)
Definition: pcbnew.py:3787
def append(self, x)
Definition: pcbnew.py:3759
def __getitem__(self, *args)
Definition: pcbnew.py:3740
def insert(self, *args)
Definition: pcbnew.py:3842
def back(self)
Definition: pcbnew.py:3827
def __bool__(self)
Definition: pcbnew.py:3710
def __setitem__(self, *args)
Definition: pcbnew.py:10558
def count(self, x)
Definition: pcbnew.py:10613
def __getitem__(self, key)
Definition: pcbnew.py:10522
def value_iterator(self)
Definition: pcbnew.py:10554
def iteritems(self)
Definition: pcbnew.py:10519
def swap(self, v)
Definition: pcbnew.py:10585
def iterator(self)
Definition: pcbnew.py:10496
def get_allocator(self)
Definition: pcbnew.py:10609
def __iter__(self)
Definition: pcbnew.py:10499
def __bool__(self)
Definition: pcbnew.py:10506
def has_key(self, key)
Definition: pcbnew.py:10530
def __init__(self, *args)
Definition: pcbnew.py:10569
def itervalues(self)
Definition: pcbnew.py:10517
def iterkeys(self)
Definition: pcbnew.py:10515
def lower_bound(self, x)
Definition: pcbnew.py:10629
def __delitem__(self, key)
Definition: pcbnew.py:10526
def __nonzero__(self)
Definition: pcbnew.py:10502
def find(self, x)
Definition: pcbnew.py:10625
def __contains__(self, key)
Definition: pcbnew.py:10546
def erase(self, *args)
Definition: pcbnew.py:10617
def upper_bound(self, x)
Definition: pcbnew.py:10633
def key_iterator(self)
Definition: pcbnew.py:10550
def value_iterator(self)
Definition: pcbnew.py:3924
def __iter__(self)
Definition: pcbnew.py:3869
def __bool__(self)
Definition: pcbnew.py:3876
def __nonzero__(self)
Definition: pcbnew.py:3872
def __setitem__(self, *args)
Definition: pcbnew.py:3928
def __delitem__(self, key)
Definition: pcbnew.py:3896
def asdict(self)
Definition: pcbnew.py:3935
def lower_bound(self, x)
Definition: pcbnew.py:3999
def __init__(self, *args)
Definition: pcbnew.py:3939
def __len__(self)
Definition: pcbnew.py:3880
def upper_bound(self, x)
Definition: pcbnew.py:4003
def keys(self)
Definition: pcbnew.py:3904
def __getitem__(self, key)
Definition: pcbnew.py:3892
def empty(self)
Definition: pcbnew.py:3947
def find(self, x)
Definition: pcbnew.py:3995
def __contains__(self, key)
Definition: pcbnew.py:3916
def values(self)
Definition: pcbnew.py:3908
def begin(self)
Definition: pcbnew.py:3959
def rend(self)
Definition: pcbnew.py:3971
def erase(self, *args)
Definition: pcbnew.py:3987
def iterator(self)
Definition: pcbnew.py:3866
def has_key(self, key)
Definition: pcbnew.py:3900
def key_iterator(self)
Definition: pcbnew.py:3920
def itervalues(self)
Definition: pcbnew.py:3887
def rbegin(self)
Definition: pcbnew.py:3967
def get_allocator(self)
Definition: pcbnew.py:3979
def end(self)
Definition: pcbnew.py:3963
def swap(self, v)
Definition: pcbnew.py:3955
def iterkeys(self)
Definition: pcbnew.py:3885
def clear(self)
Definition: pcbnew.py:3975
def size(self)
Definition: pcbnew.py:3951
def items(self)
Definition: pcbnew.py:3912
def iteritems(self)
Definition: pcbnew.py:3889
def count(self, x)
Definition: pcbnew.py:3983
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 shrink_to_fit(self)
Definition: pcbnew.py:164
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:152
def __setitem__(self, *args)
Definition: pcbnew.py:340
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 reserve(self, __res_arg)
Definition: pcbnew.py:160
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:156
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:148
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:765
def reserve(self, n)
Definition: pcbnew.py:851
def swap(self, v)
Definition: pcbnew.py:773
def clear(self)
Definition: pcbnew.py:793
def __getslice__(self, i, j)
Definition: pcbnew.py:720
def __delslice__(self, i, j)
Definition: pcbnew.py:731
def __bool__(self)
Definition: pcbnew.py:712
def __setitem__(self, *args)
Definition: pcbnew.py:749
def __iter__(self)
Definition: pcbnew.py:705
def append(self, x)
Definition: pcbnew.py:761
def front(self)
Definition: pcbnew.py:825
def resize(self, *args)
Definition: pcbnew.py:837
def rbegin(self)
Definition: pcbnew.py:785
def size(self)
Definition: pcbnew.py:769
def capacity(self)
Definition: pcbnew.py:855
def rend(self)
Definition: pcbnew.py:789
def __len__(self)
Definition: pcbnew.py:716
def __setslice__(self, *args)
Definition: pcbnew.py:724
def __getitem__(self, *args)
Definition: pcbnew.py:742
def iterator(self)
Definition: pcbnew.py:702
def begin(self)
Definition: pcbnew.py:777
def insert(self, *args)
Definition: pcbnew.py:844
def push_back(self, x)
Definition: pcbnew.py:821
def __init__(self, *args)
Definition: pcbnew.py:812
def back(self)
Definition: pcbnew.py:829
def assign(self, n, x)
Definition: pcbnew.py:833
def __nonzero__(self)
Definition: pcbnew.py:708
def pop_back(self)
Definition: pcbnew.py:801
def __delitem__(self, *args)
Definition: pcbnew.py:735
def get_allocator(self)
Definition: pcbnew.py:797
def erase(self, *args)
Definition: pcbnew.py:805
def Get(self)
Definition: pcbnew.py:653
def Set(self, x, y)
Definition: pcbnew.py:649
def __init__(self, *args)
Definition: pcbnew.py:633
property y
Definition: pcbnew.py:631
def __ne__(self, other)
Definition: pcbnew.py:658
def __len__(self)
Definition: pcbnew.py:661
property x
Definition: pcbnew.py:630
def __getitem__(self, index)
Definition: pcbnew.py:662
def __sub__(self, pt)
Definition: pcbnew.py:645
def __nonzero__(self)
Definition: pcbnew.py:670
def __str__(self)
Definition: pcbnew.py:659
def __add__(self, pt)
Definition: pcbnew.py:641
def __eq__(self, other)
Definition: pcbnew.py:657
def __setitem__(self, index, val)
Definition: pcbnew.py:663
def __str__(self)
Definition: pcbnew.py:553
def __nonzero__(self)
Definition: pcbnew.py:563
property height
Definition: pcbnew.py:544
def GetWidth(self)
Definition: pcbnew.py:518
def GetHeight(self)
Definition: pcbnew.py:526
def __eq__(self, other)
Definition: pcbnew.py:551
def GetX(self)
Definition: pcbnew.py:502
def SetX(self, xx)
Definition: pcbnew.py:506
property x
Definition: pcbnew.py:541
property width
Definition: pcbnew.py:543
property y
Definition: pcbnew.py:542
def SetPosition(self, p)
Definition: pcbnew.py:538
def __getitem__(self, index)
Definition: pcbnew.py:556
def GetPosition(self)
Definition: pcbnew.py:534
def SetHeight(self, h)
Definition: pcbnew.py:530
def __len__(self)
Definition: pcbnew.py:555
def __init__(self, *args)
Definition: pcbnew.py:492
def GetY(self)
Definition: pcbnew.py:510
def SetY(self, yy)
Definition: pcbnew.py:514
def __setitem__(self, index, val)
Definition: pcbnew.py:557
def SetWidth(self, w)
Definition: pcbnew.py:522
def Get(self)
Definition: pcbnew.py:546
property x
Definition: pcbnew.py:575
def __getitem__(self, index)
Definition: pcbnew.py:613
def SetWidth(self, w)
Definition: pcbnew.py:590
def __str__(self)
Definition: pcbnew.py:610
def __eq__(self, other)
Definition: pcbnew.py:608
def __len__(self)
Definition: pcbnew.py:612
def GetWidth(self)
Definition: pcbnew.py:598
def __init__(self, *args)
Definition: pcbnew.py:578
def SetHeight(self, h)
Definition: pcbnew.py:594
def __setitem__(self, index, val)
Definition: pcbnew.py:614
def __nonzero__(self)
Definition: pcbnew.py:618
def Get(self)
Definition: pcbnew.py:585
def Scale(self, xscale, yscale)
Definition: pcbnew.py:606
def GetHeight(self)
Definition: pcbnew.py:602
property y
Definition: pcbnew.py:576
def __str__(self)
Definition: pcbnew.py:683
def __init__(self)
Definition: pcbnew.py:690
def IsValidLayer(aLayerId)
Definition: pcbnew.py:3387
def Cast_to_BOARD(arg1)
Definition: pcbnew.py:10222
def __lt__(lhs, rhs)
Definition: pcbnew.py:2377
def FormatInternalUnits(*args)
Definition: pcbnew.py:1767
def EnsureFileExtension(aFilename, aExtension)
Definition: pcbnew.py:1825
def Cast_to_PCB_DIM_RADIAL(arg1)
Definition: pcbnew.py:10202
def Cast_to_SHAPE_ARC(_self)
Definition: pcbnew.py:7272
def IsExternalCopperLayer(aLayerId)
Definition: pcbnew.py:3395
def MessageTextFromMinOptMax(aIuScale, aUnits, aValue)
Definition: pcbnew.py:1795
def BOX2ISafe(*args)
Definition: pcbnew.py:4654
def FootprintLibDelete(libname)
Definition: pcbnew.py:20981
def GetFlippedAlignment(*args)
Definition: pcbnew.py:16346
def FootprintDelete(libname, name)
Definition: pcbnew.py:20973
def GetWizardsSearchPaths()
Definition: pcbnew.py:4045
def Cast_to_PCB_MARKER(arg1)
Definition: pcbnew.py:10218
def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None)
Definition: pcbnew.py:4116
def MessageTextFromValue(*args)
Definition: pcbnew.py:1786
def IsPcbLayer(aLayer)
Definition: pcbnew.py:3391
def ExportVRML(aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:9263
def ResolveUriByEnvVars(aUri, aProject)
Definition: pcbnew.py:1850
def IsActionRunning()
Definition: pcbnew.py:9298
def IsGerbviewType(aType)
Definition: pcbnew.py:1405
def SetOpenGLInfo(aRenderer, aVendor, aVersion)
Definition: pcbnew.py:2912
def LoadBoard(*args)
Definition: pcbnew.py:9225
def IsTextVar(aSource)
Definition: pcbnew.py:1846
def GetBuildDate()
Definition: pcbnew.py:2896
def Cast_to_PCB_DIM_ORTHOGONAL(arg1)
Definition: pcbnew.py:10190
def IsNullType(aType)
Definition: pcbnew.py:1389
def Cast_to_SHAPE_CIRCLE(_self)
Definition: pcbnew.py:7276
def InvokeRuleAreaEditor(aCaller, aSettings, aBoard=None, aConvertSettings=None)
Definition: pcbnew.py:15221
def wxPointMils(mmx, mmy)
Definition: pcbnew.py:21085
def FootprintIsWritable(libname)
Definition: pcbnew.py:20985
def FootprintLibCreate(libname)
Definition: pcbnew.py:20977
def Cast_to_ZONE(arg1)
Definition: pcbnew.py:10242
def SearchHelpFileFullPath(aBaseName)
Definition: pcbnew.py:1817
def __ne__(lhs, rhs)
Definition: pcbnew.py:2373
def VECTOR2I_MM(mmx, mmy)
Definition: pcbnew.py:21088
def IsViaPadLayer(aLayer)
Definition: pcbnew.py:3414
def FromMM(mm)
Definition: pcbnew.py:21044
def IsZoneFillLayer(aLayer)
Definition: pcbnew.py:3454
def BoardLayerFromLegacyId(aLegacyId)
Definition: pcbnew.py:3466
def FlipLayer(aLayerId, aCopperLayersCount=0)
Definition: pcbnew.py:3442
def GetSemanticVersion()
Definition: pcbnew.py:2884
def Cast_to_PCB_TEXT(arg1)
Definition: pcbnew.py:10178
def GetBuildVersion()
Definition: pcbnew.py:2872
def wxRectMils(x, y, wx, wy)
Definition: pcbnew.py:21101
def IsHoleLayer(aLayer)
Definition: pcbnew.py:3418
def FetchUnitsFromString(aTextValue, aUnits)
Definition: pcbnew.py:1751
def new_clone(aItem)
Definition: pcbnew.py:1653
def Cast_to_SHAPE_SIMPLE(_self)
Definition: pcbnew.py:7300
def StrPrintf(*args)
Definition: pcbnew.py:1862
def GetSettingsManager()
Definition: pcbnew.py:9236
def ExpandTextVars(*args)
Definition: pcbnew.py:1835
def ToMM(iu)
Definition: pcbnew.py:21036
def IsUTF8(aString)
Definition: pcbnew.py:7308
def ToGalLayer(aInteger)
Definition: pcbnew.py:3166
def Mils2mm(aVal)
Definition: pcbnew.py:1747
def ToHAlignment(x)
Definition: pcbnew.py:16353
def Cast_to_PCB_TARGET(arg1)
Definition: pcbnew.py:10246
def __eq__(lhs, rhs)
Definition: pcbnew.py:2369
def wxRectMM(x, y, wx, wy)
Definition: pcbnew.py:21094
def GetText(*args)
Definition: pcbnew.py:1755
def IsInstantiableType(aType)
Definition: pcbnew.py:1393
def NilUuid()
Definition: pcbnew.py:954
def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None)
Definition: pcbnew.py:1821
def UpdateUserInterface()
Definition: pcbnew.py:9282
def FootprintLoad(libname, name, preserveUUID=False)
Definition: pcbnew.py:20965
def FootprintEnumerate(libname)
Definition: pcbnew.py:20961
def GetCommitHash()
Definition: pcbnew.py:2900
def colorRefs()
Definition: pcbnew.py:2227
def PlotDrawingSheet(*args)
Definition: pcbnew.py:8719
def FormatAngle(aAngle)
Definition: pcbnew.py:1763
def GetLanguage()
Definition: pcbnew.py:9306
def __lshift__(aStream, aColor)
Definition: pcbnew.py:2381
def Mils2IU(aIuScale, mils)
Definition: pcbnew.py:1774
def GetVersionInfoData(aTitle, aHtml=False, aBrief=False)
Definition: pcbnew.py:2916
def FullVersion()
Definition: pcbnew.py:21113
def GetMajorMinorVersion()
Definition: pcbnew.py:2888
def FocusOnItem(aItem, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:9294
def IsNetnameLayer(aLayer)
Definition: pcbnew.py:3450
def CopperLayerToOrdinal(aLayer)
Definition: pcbnew.py:3462
def Cast_to_SHAPE_POLY_SET(_self)
Definition: pcbnew.py:7288
def ExportSpecctraDSN(*args)
Definition: pcbnew.py:9256
def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None)
Definition: pcbnew.py:15217
def GetMajorMinorPatchTuple()
Definition: pcbnew.py:2904
def _swig_setattr_nondynamic_instance_variable(set)
Definition: pcbnew.py:27
def GetCurrentSelection()
Definition: pcbnew.py:9290
def wxGetDefaultPyEncoding()
Definition: pcbnew.py:483
def IsImperialUnit(aUnit)
Definition: pcbnew.py:1735
def SaveBoard(aFileName, aBoard, aSkipSettings=False)
Definition: pcbnew.py:9244
def PrintZoneConnection(aConnection)
Definition: pcbnew.py:15209
def IsEeschemaType(aType)
Definition: pcbnew.py:1397
def Cast_to_SHAPE_RECT(_self)
Definition: pcbnew.py:7292
def Refresh()
Definition: pcbnew.py:9278
def Cast_to_PCB_TRACK(arg1)
Definition: pcbnew.py:10230
def Cast_to_SHAPE_SEGMENT(_self)
Definition: pcbnew.py:7296
def PutOnGridMM(value, gridSizeMM)
Definition: pcbnew.py:21068
def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None)
Definition: pcbnew.py:15213
def IsCopperLayer(*args)
Definition: pcbnew.py:3407
def Cast_to_SHAPE_COMPOUND(_self)
Definition: pcbnew.py:7280
def IsCopperLayerLowerThan(aLayerA, aLayerB)
Definition: pcbnew.py:3438
def DoubleValueFromString(*args)
Definition: pcbnew.py:1803
def IsFrontLayer(aLayerId)
Definition: pcbnew.py:3430
def Cast_to_FOOTPRINT(arg1)
Definition: pcbnew.py:10206
def StringFromValue(*args)
Definition: pcbnew.py:1782
def GetUserUnits()
Definition: pcbnew.py:9286
def ImportSpecctraSES(*args)
Definition: pcbnew.py:9267
def CreateEmptyBoard()
Definition: pcbnew.py:9240
def GetLabel(*args)
Definition: pcbnew.py:1759
def Version()
Definition: pcbnew.py:21109
def IsMiscType(aType)
Definition: pcbnew.py:1413
def ValueFromString(*args)
Definition: pcbnew.py:1810
def Cast_to_PCB_DIM_CENTER(arg1)
Definition: pcbnew.py:10198
def ExportFootprintsToLibrary(*args)
Definition: pcbnew.py:9274
def BaseType(aType)
Definition: pcbnew.py:1385
def PutOnGridMils(value, gridSizeMils)
Definition: pcbnew.py:21072
def IsSolderMaskLayer(aLayer)
Definition: pcbnew.py:3422
def Cast_to_PCB_REFERENCE_IMAGE(arg1)
Definition: pcbnew.py:10254
def IsPcbnewType(aType)
Definition: pcbnew.py:1401
def IsUserLayer(aLayerId)
Definition: pcbnew.py:3426
def GetMajorMinorPatchVersion()
Definition: pcbnew.py:2892
def GetBoard()
Definition: pcbnew.py:9221
def IsPageLayoutEditorType(aType)
Definition: pcbnew.py:1409
def SHAPE_TYPE_asString(a)
Definition: pcbnew.py:5654
def VECTOR2I_Mils(mmx, mmy)
Definition: pcbnew.py:21091
def Cast_to_PCB_VIA(arg1)
Definition: pcbnew.py:10234
def TimestampDir(aDirPath, aFilespec)
Definition: pcbnew.py:1854
def GetFootprints(aNickName)
Definition: pcbnew.py:9252
def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
Definition: pcbnew.py:9302
def GetTextVars(aSource)
Definition: pcbnew.py:1842
def GetBaseVersion()
Definition: pcbnew.py:2876
def Cast_to_PCB_TABLE(arg1)
Definition: pcbnew.py:10250
def GetNetnameLayer(aLayer)
Definition: pcbnew.py:3446
def wxSizeMM(mmx, mmy)
Definition: pcbnew.py:21076
def Cast_to_PCB_ARC(arg1)
Definition: pcbnew.py:10238
def Cast_to_PCB_SHAPE(arg1)
Definition: pcbnew.py:10214
def ToLAYER_ID(aLayer)
Definition: pcbnew.py:3470
def IsTypeCorrect(aType)
Definition: pcbnew.py:1417
def GetPluginForPath(libname)
Definition: pcbnew.py:20957
def IsBackLayer(aLayerId)
Definition: pcbnew.py:3434
def Cast_to_PCB_DIM_LEADER(arg1)
Definition: pcbnew.py:10194
def Cast_to_PCB_GROUP(arg1)
Definition: pcbnew.py:10210
def NewBoard(aFileName)
Definition: pcbnew.py:9232
def IsMetricUnit(aUnit)
Definition: pcbnew.py:1739
def ExpandEnvVarSubstitutions(aString, aProject)
Definition: pcbnew.py:1829
def wxSetDefaultPyEncoding(encoding)
Definition: pcbnew.py:479
def WarnUserIfOperatingSystemUnsupported()
Definition: pcbnew.py:1858
def SafeReadFile(aFilePath, aReadType)
Definition: pcbnew.py:1869
def GetFootprintLibraries()
Definition: pcbnew.py:9248
def _swig_add_metaclass(metaclass)
Definition: pcbnew.py:49
def LayerName(aLayer)
Definition: pcbnew.py:3383
def FromMils(mils)
Definition: pcbnew.py:21060
def Mm2mils(aVal)
Definition: pcbnew.py:1743
def IsInnerCopperLayer(aLayerId)
Definition: pcbnew.py:3399
def Cast_to_SHAPE_LINE_CHAIN(_self)
Definition: pcbnew.py:7284
def IsNonCopperLayer(aLayerId)
Definition: pcbnew.py:3403
def Cast_to_PAD(arg1)
Definition: pcbnew.py:10226
def GetWizardsBackTrace()
Definition: pcbnew.py:4056
def ToMils(iu)
Definition: pcbnew.py:21052
def wxSizeMils(mmx, mmy)
Definition: pcbnew.py:21079
def LoadPluginModule(Dirname, ModuleName, FileName)
Definition: pcbnew.py:4061
def GetDefaultPlotExtension(aFormat)
Definition: pcbnew.py:8723
def IsNightlyVersion()
Definition: pcbnew.py:2908
def GetPlatformGetBitnessName()
Definition: pcbnew.py:2880
def ToUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1778
def Cast_to_PCB_TEXTBOX(arg1)
Definition: pcbnew.py:10182
def wxPointMM(mmx, mmy)
Definition: pcbnew.py:21082
def Cast_to_PCB_DIM_ALIGNED(arg1)
Definition: pcbnew.py:10186
def Cast_to_BOARD_ITEM(base)
Definition: pcbnew.py:10174
def KiROUND(*args)
Definition: pcbnew.py:4661
def FootprintSave(libname, module)
Definition: pcbnew.py:20969
def FromUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1799
def IsDCodeLayer(aLayer)
Definition: pcbnew.py:3458