KiCad Pcbnew Python Scripting
All Classes Namespaces Files Functions Variables Properties
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
61
62import warnings
63warnings.warn("The SWIG-based Python interface to the PCB editor is deprecated and will be removed "
64 "in a future version of KiCad. Please plan to move to the new IPC API and/or make "
65 "use of the kicad-cli tool for your KiCad automation needs.",
66 category=DeprecationWarning)
67
68class SwigPyIterator(object):
69 r"""Proxy of C++ swig::SwigPyIterator class."""
70
71 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
72
73 def __init__(self, *args, **kwargs):
74 raise AttributeError("No constructor defined - class is abstract")
75 __repr__ = _swig_repr
76 __swig_destroy__ = _pcbnew.delete_SwigPyIterator
77
78 def value(self):
79 r"""value(SwigPyIterator self) -> PyObject *"""
80 return _pcbnew.SwigPyIterator_value(self)
81
82 def incr(self, n=1):
83 r"""incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
84 return _pcbnew.SwigPyIterator_incr(self, n)
85
86 def decr(self, n=1):
87 r"""decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
88 return _pcbnew.SwigPyIterator_decr(self, n)
89
90 def distance(self, x):
91 r"""distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
92 return _pcbnew.SwigPyIterator_distance(self, x)
93
94 def equal(self, x):
95 r"""equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
96 return _pcbnew.SwigPyIterator_equal(self, x)
97
98 def copy(self):
99 r"""copy(SwigPyIterator self) -> SwigPyIterator"""
100 return _pcbnew.SwigPyIterator_copy(self)
101
102 def next(self):
103 r"""next(SwigPyIterator self) -> PyObject *"""
104 return _pcbnew.SwigPyIterator_next(self)
105
106 def __next__(self):
107 r"""__next__(SwigPyIterator self) -> PyObject *"""
108 return _pcbnew.SwigPyIterator___next__(self)
109
110 def previous(self):
111 r"""previous(SwigPyIterator self) -> PyObject *"""
112 return _pcbnew.SwigPyIterator_previous(self)
113
114 def advance(self, n):
115 r"""advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
116 return _pcbnew.SwigPyIterator_advance(self, n)
117
118 def __eq__(self, x):
119 r"""__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
120 return _pcbnew.SwigPyIterator___eq__(self, x)
121
122 def __ne__(self, x):
123 r"""__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
124 return _pcbnew.SwigPyIterator___ne__(self, x)
125
126 def __iadd__(self, n):
127 r"""__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
128 return _pcbnew.SwigPyIterator___iadd__(self, n)
129
130 def __isub__(self, n):
131 r"""__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
132 return _pcbnew.SwigPyIterator___isub__(self, n)
133
134 def __add__(self, n):
135 r"""__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
136 return _pcbnew.SwigPyIterator___add__(self, n)
137
138 def __sub__(self, *args):
139 r"""
140 __sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
141 __sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
142 """
143 return _pcbnew.SwigPyIterator___sub__(self, *args)
144 def __iter__(self):
145 return self
146
147# Register SwigPyIterator in _pcbnew:
148_pcbnew.SwigPyIterator_swigregister(SwigPyIterator)
150 r"""Proxy of C++ std::basic_string< char > class."""
151
152 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
153 __repr__ = _swig_repr
154
155 def length(self):
156 r"""length(string self) -> std::basic_string< char >::size_type"""
157 return _pcbnew.string_length(self)
158
159 def max_size(self):
160 r"""max_size(string self) -> std::basic_string< char >::size_type"""
161 return _pcbnew.string_max_size(self)
162
163 def capacity(self):
164 r"""capacity(string self) -> std::basic_string< char >::size_type"""
165 return _pcbnew.string_capacity(self)
166
167 def reserve(self, __res_arg):
168 r"""reserve(string self, std::basic_string< char >::size_type __res_arg)"""
169 return _pcbnew.string_reserve(self, __res_arg)
170
171 def shrink_to_fit(self):
172 r"""shrink_to_fit(string self)"""
173 return _pcbnew.string_shrink_to_fit(self)
174
175 def copy(self, __s, __n, __pos=0):
176 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"""
177 return _pcbnew.string_copy(self, __s, __n, __pos)
178
179 def c_str(self):
180 r"""c_str(string self) -> char const *"""
181 return _pcbnew.string_c_str(self)
182
183 def find(self, *args):
184 r"""
185 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
186 find(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
187 find(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
188 """
189 return _pcbnew.string_find(self, *args)
190
191 def rfind(self, *args):
192 r"""
193 rfind(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
194 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
195 rfind(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
196 """
197 return _pcbnew.string_rfind(self, *args)
198
199 def find_first_of(self, *args):
200 r"""
201 find_first_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
202 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
203 find_first_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
204 """
205 return _pcbnew.string_find_first_of(self, *args)
206
207 def find_last_of(self, *args):
208 r"""
209 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
210 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
211 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
212 """
213 return _pcbnew.string_find_last_of(self, *args)
214
215 def find_first_not_of(self, *args):
216 r"""
217 find_first_not_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
218 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
219 find_first_not_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
220 """
221 return _pcbnew.string_find_first_not_of(self, *args)
222
223 def find_last_not_of(self, *args):
224 r"""
225 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
226 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
227 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
228 """
229 return _pcbnew.string_find_last_not_of(self, *args)
230
231 def substr(self, *args):
232 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"""
233 return _pcbnew.string_substr(self, *args)
234
235 def empty(self):
236 r"""empty(string self) -> bool"""
237 return _pcbnew.string_empty(self)
238
239 def size(self):
240 r"""size(string self) -> std::basic_string< char >::size_type"""
241 return _pcbnew.string_size(self)
242
243 def swap(self, v):
244 r"""swap(string self, string v)"""
245 return _pcbnew.string_swap(self, v)
246
247 def begin(self):
248 r"""begin(string self) -> std::basic_string< char >::iterator"""
249 return _pcbnew.string_begin(self)
250
251 def end(self):
252 r"""end(string self) -> std::basic_string< char >::iterator"""
253 return _pcbnew.string_end(self)
254
255 def rbegin(self):
256 r"""rbegin(string self) -> std::basic_string< char >::reverse_iterator"""
257 return _pcbnew.string_rbegin(self)
258
259 def rend(self):
260 r"""rend(string self) -> std::basic_string< char >::reverse_iterator"""
261 return _pcbnew.string_rend(self)
262
263 def get_allocator(self):
264 r"""get_allocator(string self) -> std::basic_string< char >::allocator_type"""
265 return _pcbnew.string_get_allocator(self)
266
267 def erase(self, *args):
268 r"""
269 erase(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n=std::basic_string< char >::npos) -> string
270 erase(string self, std::basic_string< char >::iterator pos) -> std::basic_string< char >::iterator
271 erase(string self, std::basic_string< char >::iterator first, std::basic_string< char >::iterator last) -> std::basic_string< char >::iterator
272 """
273 return _pcbnew.string_erase(self, *args)
274
275 def __init__(self, *args):
276 r"""
277 __init__(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
278 __init__(string self) -> string
279 __init__(string self, string other) -> string
280 __init__(string self, std::basic_string< char >::size_type size, std::basic_string< char >::value_type value) -> string
281 """
282 _pcbnew.string_swiginit(self, _pcbnew.new_string(*args))
283
284 def assign(self, *args):
285 r"""
286 assign(string self, string __str) -> string
287 assign(string self, string __str, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> string
288 assign(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
289 assign(string self, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
290 """
291 return _pcbnew.string_assign(self, *args)
292
293 def resize(self, *args):
294 r"""
295 resize(string self, std::basic_string< char >::size_type new_size)
296 resize(string self, std::basic_string< char >::size_type new_size, std::basic_string< char >::value_type x)
297 """
298 return _pcbnew.string_resize(self, *args)
299
300 def iterator(self):
301 r"""iterator(string self) -> SwigPyIterator"""
302 return _pcbnew.string_iterator(self)
303 def __iter__(self):
304 return self.iterator()
305
306 def __nonzero__(self):
307 r"""__nonzero__(string self) -> bool"""
308 return _pcbnew.string___nonzero__(self)
309
310 def __bool__(self):
311 r"""__bool__(string self) -> bool"""
312 return _pcbnew.string___bool__(self)
313
314 def __len__(self):
315 r"""__len__(string self) -> std::basic_string< char >::size_type"""
316 return _pcbnew.string___len__(self)
317
318 def __getslice__(self, i, j):
319 r"""__getslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j) -> string"""
320 return _pcbnew.string___getslice__(self, i, j)
321
322 def __setslice__(self, *args):
323 r"""
324 __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)
325 __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j, string v)
326 """
327 return _pcbnew.string___setslice__(self, *args)
328
329 def __delslice__(self, i, j):
330 r"""__delslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)"""
331 return _pcbnew.string___delslice__(self, i, j)
332
333 def __delitem__(self, *args):
334 r"""
335 __delitem__(string self, std::basic_string< char >::difference_type i)
336 __delitem__(string self, SWIGPY_SLICEOBJECT * slice)
337 """
338 return _pcbnew.string___delitem__(self, *args)
339
340 def __getitem__(self, *args):
341 r"""
342 __getitem__(string self, SWIGPY_SLICEOBJECT * slice) -> string
343 __getitem__(string self, std::basic_string< char >::difference_type i) -> std::basic_string< char >::value_type
344 """
345 return _pcbnew.string___getitem__(self, *args)
346
347 def __setitem__(self, *args):
348 r"""
349 __setitem__(string self, SWIGPY_SLICEOBJECT * slice, string v)
350 __setitem__(string self, SWIGPY_SLICEOBJECT * slice)
351 __setitem__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::value_type x)
352 """
353 return _pcbnew.string___setitem__(self, *args)
354
355 def insert(self, *args):
356 r"""
357 insert(string self, std::basic_string< char >::size_type __pos1, string __str) -> string
358 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
359 insert(string self, std::basic_string< char >::size_type __pos, char const * __s, std::basic_string< char >::size_type __n) -> string
360 insert(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, char __c) -> string
361 insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::value_type x) -> std::basic_string< char >::iterator
362 insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
363 insert(string self, std::basic_string< char >::iterator __p, std::basic_string< char >::size_type __n, char __c)
364 """
365 return _pcbnew.string_insert(self, *args)
366
367 def replace(self, *args):
368 r"""
369 replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, string __str) -> string
370 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
371 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
372 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
373 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, string __str) -> string
374 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
375 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
376 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __k1, char const * __k2) -> string
377 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
378 """
379 return _pcbnew.string_replace(self, *args)
380
381 def __iadd__(self, v):
382 r"""__iadd__(string self, string v) -> string"""
383 return _pcbnew.string___iadd__(self, v)
384
385 def __add__(self, v):
386 r"""__add__(string self, string v) -> string"""
387 return _pcbnew.string___add__(self, v)
388
389 def __radd__(self, v):
390 r"""__radd__(string self, string v) -> string"""
391 return _pcbnew.string___radd__(self, v)
392
393 def __str__(self):
394 r"""__str__(string self) -> string"""
395 return _pcbnew.string___str__(self)
396
397 def __rlshift__(self, out):
398 r"""__rlshift__(string self, std::basic_ostream< char,std::char_traits< char > > & out) -> std::basic_ostream< char,std::char_traits< char > > &"""
399 return _pcbnew.string___rlshift__(self, out)
400
401 def __eq__(self, v):
402 r"""__eq__(string self, string v) -> bool"""
403 return _pcbnew.string___eq__(self, v)
404
405 def __ne__(self, v):
406 r"""__ne__(string self, string v) -> bool"""
407 return _pcbnew.string___ne__(self, v)
408
409 def __gt__(self, v):
410 r"""__gt__(string self, string v) -> bool"""
411 return _pcbnew.string___gt__(self, v)
412
413 def __lt__(self, v):
414 r"""__lt__(string self, string v) -> bool"""
415 return _pcbnew.string___lt__(self, v)
416
417 def __ge__(self, v):
418 r"""__ge__(string self, string v) -> bool"""
419 return _pcbnew.string___ge__(self, v)
420
421 def __le__(self, v):
422 r"""__le__(string self, string v) -> bool"""
423 return _pcbnew.string___le__(self, v)
424 __swig_destroy__ = _pcbnew.delete_string
425
426# Register string in _pcbnew:
427_pcbnew.string_swigregister(string)
428cvar = _pcbnew.cvar
429string.npos = _pcbnew.cvar.string_npos
430
431SHARED_PTR_DISOWN = _pcbnew.SHARED_PTR_DISOWN
432
434 r"""Proxy of C++ KI_PARAM_ERROR class."""
435
436 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
437 __repr__ = _swig_repr
438
439 def __init__(self, *args):
440 r"""
441 __init__(KI_PARAM_ERROR self, wxString aMessage) -> KI_PARAM_ERROR
442 __init__(KI_PARAM_ERROR self) -> KI_PARAM_ERROR
443 """
444 _pcbnew.KI_PARAM_ERROR_swiginit(self, _pcbnew.new_KI_PARAM_ERROR(*args))
445
446 def What(self):
447 r"""What(KI_PARAM_ERROR self) -> wxString"""
448 return _pcbnew.KI_PARAM_ERROR_What(self)
449 __swig_destroy__ = _pcbnew.delete_KI_PARAM_ERROR
450
451# Register KI_PARAM_ERROR in _pcbnew:
452_pcbnew.KI_PARAM_ERROR_swigregister(KI_PARAM_ERROR)
454 r"""Proxy of C++ IO_ERROR class."""
455
456 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
457 __repr__ = _swig_repr
458
459 def __init__(self, *args):
460 r"""
461 __init__(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber) -> IO_ERROR
462 __init__(IO_ERROR self) -> IO_ERROR
463 """
464 _pcbnew.IO_ERROR_swiginit(self, _pcbnew.new_IO_ERROR(*args))
465
466 def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber):
467 r"""init(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber)"""
468 return _pcbnew.IO_ERROR_init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
469
470 def Problem(self):
471 r"""Problem(IO_ERROR self) -> wxString"""
472 return _pcbnew.IO_ERROR_Problem(self)
473
474 def Where(self):
475 r"""Where(IO_ERROR self) -> wxString"""
476 return _pcbnew.IO_ERROR_Where(self)
477
478 def What(self):
479 r"""What(IO_ERROR self) -> wxString"""
480 return _pcbnew.IO_ERROR_What(self)
481 __swig_destroy__ = _pcbnew.delete_IO_ERROR
482
483# Register IO_ERROR in _pcbnew:
484_pcbnew.IO_ERROR_swigregister(IO_ERROR)
485
487 r"""wxSetDefaultPyEncoding(char const * encoding)"""
488 return _pcbnew.wxSetDefaultPyEncoding(encoding)
489
491 r"""wxGetDefaultPyEncoding() -> char const *"""
492 return _pcbnew.wxGetDefaultPyEncoding()
494 r"""Proxy of C++ wxRect class."""
495
496 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
497 __repr__ = _swig_repr
498
499 def __init__(self, *args):
500 r"""
501 __init__(wxRect self) -> wxRect
502 __init__(wxRect self, int xx, int yy, int ww, int hh) -> wxRect
503 __init__(wxRect self, wxPoint topLeft, wxPoint bottomRight) -> wxRect
504 __init__(wxRect self, wxPoint pt, wxSize size) -> wxRect
505 __init__(wxRect self, wxSize size) -> wxRect
506 """
507 _pcbnew.wxRect_swiginit(self, _pcbnew.new_wxRect(*args))
508
509 def GetX(self):
510 r"""GetX(wxRect self) -> int"""
511 return _pcbnew.wxRect_GetX(self)
512
513 def SetX(self, xx):
514 r"""SetX(wxRect self, int xx)"""
515 return _pcbnew.wxRect_SetX(self, xx)
516
517 def GetY(self):
518 r"""GetY(wxRect self) -> int"""
519 return _pcbnew.wxRect_GetY(self)
520
521 def SetY(self, yy):
522 r"""SetY(wxRect self, int yy)"""
523 return _pcbnew.wxRect_SetY(self, yy)
524
525 def GetWidth(self):
526 r"""GetWidth(wxRect self) -> int"""
527 return _pcbnew.wxRect_GetWidth(self)
528
529 def SetWidth(self, w):
530 r"""SetWidth(wxRect self, int w)"""
531 return _pcbnew.wxRect_SetWidth(self, w)
532
533 def GetHeight(self):
534 r"""GetHeight(wxRect self) -> int"""
535 return _pcbnew.wxRect_GetHeight(self)
536
537 def SetHeight(self, h):
538 r"""SetHeight(wxRect self, int h)"""
539 return _pcbnew.wxRect_SetHeight(self, h)
540
541 def GetPosition(self):
542 r"""GetPosition(wxRect self) -> wxPoint"""
543 return _pcbnew.wxRect_GetPosition(self)
544
545 def SetPosition(self, p):
546 r"""SetPosition(wxRect self, wxPoint p)"""
547 return _pcbnew.wxRect_SetPosition(self, p)
548 x = property(_pcbnew.wxRect_x_get, _pcbnew.wxRect_x_set, doc=r"""x : int""")
549 y = property(_pcbnew.wxRect_y_get, _pcbnew.wxRect_y_set, doc=r"""y : int""")
550 width = property(_pcbnew.wxRect_width_get, _pcbnew.wxRect_width_set, doc=r"""width : int""")
551 height = property(_pcbnew.wxRect_height_get, _pcbnew.wxRect_height_set, doc=r"""height : int""")
552
553 def Get(self):
554 r"""Get(wxRect self) -> PyObject *"""
555 return _pcbnew.wxRect_Get(self)
556
557
558 def __eq__(self,other):
559 return self.xx==other.x and self.yy==other.y and self.widthwidth==other.width and self.heightheight==other.height
560 def __str__(self): return str(self.Get())
561 def __repr__(self): return 'wxRect'+str(self.Get())
562 def __len__(self): return len(self.Get())
563 def __getitem__(self, index): return self.Get()[index]
564 def __setitem__(self, index, val):
565 if index == 0: self.SetX(val)
566 elif index == 1: self.SetY(val)
567 elif index == 2: self.SetWidth(val)
568 elif index == 3: self.SetHeight(val)
569 else: raise IndexError
570 def __nonzero__(self): return self.Get() != (0,0,0,0)
571 __safe_for_unpickling__ = True
572
573 __swig_destroy__ = _pcbnew.delete_wxRect
574
575# Register wxRect in _pcbnew:
576_pcbnew.wxRect_swigregister(wxRect)
578 r"""Proxy of C++ wxSize class."""
579
580 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
581 __repr__ = _swig_repr
582 x = property(_pcbnew.wxSize_x_get, _pcbnew.wxSize_x_set, doc=r"""x : int""")
583 y = property(_pcbnew.wxSize_y_get, _pcbnew.wxSize_y_set, doc=r"""y : int""")
584
585 def __init__(self, *args):
586 r"""
587 __init__(wxSize self, int xx, int yy) -> wxSize
588 __init__(wxSize self, double xx, double yy) -> wxSize
589 """
590 _pcbnew.wxSize_swiginit(self, _pcbnew.new_wxSize(*args))
591
592 def Get(self):
593 r"""Get(wxSize self) -> PyObject *"""
594 return _pcbnew.wxSize_Get(self)
595 __swig_destroy__ = _pcbnew.delete_wxSize
596
597 def SetWidth(self, w):
598 r"""SetWidth(wxSize self, int w)"""
599 return _pcbnew.wxSize_SetWidth(self, w)
600
601 def SetHeight(self, h):
602 r"""SetHeight(wxSize self, int h)"""
603 return _pcbnew.wxSize_SetHeight(self, h)
604
605 def GetWidth(self):
606 r"""GetWidth(wxSize self) -> int"""
607 return _pcbnew.wxSize_GetWidth(self)
608
609 def GetHeight(self):
610 r"""GetHeight(wxSize self) -> int"""
611 return _pcbnew.wxSize_GetHeight(self)
612
613 def Scale(self,xscale,yscale):
614 return wxSize(self.x*xscale,self.y*yscale)
615 def __eq__(self,other):
616 return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
617 def __str__(self): return str(self.Get())
618 def __repr__(self): return 'wxSize'+str(self.Get())
619 def __len__(self): return len(self.Get())
620 def __getitem__(self, index): return self.Get()[index]
621 def __setitem__(self, index, val):
622 if index == 0: self.SetWidth(val)
623 elif index == 1: self.SetHeight(val)
624 else: raise IndexError
625 def __nonzero__(self): return self.Get() != (0,0)
626 __safe_for_unpickling__ = True
627
628
629
630# Register wxSize in _pcbnew:
631_pcbnew.wxSize_swigregister(wxSize)
633 r"""Proxy of C++ wxPoint class."""
634
635 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
636 __repr__ = _swig_repr
637 x = property(_pcbnew.wxPoint_x_get, _pcbnew.wxPoint_x_set, doc=r"""x : int""")
638 y = property(_pcbnew.wxPoint_y_get, _pcbnew.wxPoint_y_set, doc=r"""y : int""")
639
640 def __init__(self, *args):
641 r"""
642 __init__(wxPoint self, int xx, int yy) -> wxPoint
643 __init__(wxPoint self, double xx, double yy) -> wxPoint
644 """
645 _pcbnew.wxPoint_swiginit(self, _pcbnew.new_wxPoint(*args))
646 __swig_destroy__ = _pcbnew.delete_wxPoint
647
648 def __add__(self, pt):
649 r"""__add__(wxPoint self, wxPoint pt) -> wxPoint"""
650 return _pcbnew.wxPoint___add__(self, pt)
651
652 def __sub__(self, pt):
653 r"""__sub__(wxPoint self, wxPoint pt) -> wxPoint"""
654 return _pcbnew.wxPoint___sub__(self, pt)
655
656 def Set(self, x, y):
657 r"""Set(wxPoint self, long x, long y)"""
658 return _pcbnew.wxPoint_Set(self, x, y)
659
660 def Get(self):
661 r"""Get(wxPoint self) -> PyObject *"""
662 return _pcbnew.wxPoint_Get(self)
663
664 def __eq__(self,other): return (self.xx==other.x and self.yy==other.y)
665 def __ne__(self,other): return not (self==other)
666 def __str__(self): return str(self.Get())
667 def __repr__(self): return 'wxPoint'+str(self.Get())
668 def __len__(self): return len(self.Get())
669 def __getitem__(self, index): return self.Get()[index]
670 def __setitem__(self, index, val):
671 if index == 0:
672 self.xx = val
673 elif index == 1:
674 self.yy = val
675 else:
676 raise IndexError
677 def __nonzero__(self): return self.Get() != (0,0)
678
679
680
681# Register wxPoint in _pcbnew:
682_pcbnew.wxPoint_swigregister(wxPoint)
684 r"""Proxy of C++ wxString class."""
685
686 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
687 __repr__ = _swig_repr
688 __swig_destroy__ = _pcbnew.delete_wxString
689
690 def __str__(self):
691 r"""__str__(wxString self) -> PyObject *"""
692 return _pcbnew.wxString___str__(self)
693
694 def __repr__(self): return 'wxString(\'' + self.__str__() + '\')'
695
696
697 def __init__(self):
698 r"""__init__(wxString self) -> wxString"""
699 _pcbnew.wxString_swiginit(self, _pcbnew.new_wxString())
700
701# Register wxString in _pcbnew:
702_pcbnew.wxString_swigregister(wxString)
704 r"""Proxy of C++ std::vector< wxPoint > class."""
705
706 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
707 __repr__ = _swig_repr
708
709 def iterator(self):
710 r"""iterator(wxPoint_Vector self) -> SwigPyIterator"""
711 return _pcbnew.wxPoint_Vector_iterator(self)
712 def __iter__(self):
713 return self.iterator()
714
715 def __nonzero__(self):
716 r"""__nonzero__(wxPoint_Vector self) -> bool"""
717 return _pcbnew.wxPoint_Vector___nonzero__(self)
718
719 def __bool__(self):
720 r"""__bool__(wxPoint_Vector self) -> bool"""
721 return _pcbnew.wxPoint_Vector___bool__(self)
722
723 def __len__(self):
724 r"""__len__(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
725 return _pcbnew.wxPoint_Vector___len__(self)
726
727 def __getslice__(self, i, j):
728 r"""__getslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j) -> wxPoint_Vector"""
729 return _pcbnew.wxPoint_Vector___getslice__(self, i, j)
730
731 def __setslice__(self, *args):
732 r"""
733 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)
734 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j, wxPoint_Vector v)
735 """
736 return _pcbnew.wxPoint_Vector___setslice__(self, *args)
737
738 def __delslice__(self, i, j):
739 r"""__delslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)"""
740 return _pcbnew.wxPoint_Vector___delslice__(self, i, j)
741
742 def __delitem__(self, *args):
743 r"""
744 __delitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i)
745 __delitem__(wxPoint_Vector self, SWIGPY_SLICEOBJECT * slice)
746 """
747 return _pcbnew.wxPoint_Vector___delitem__(self, *args)
748
749 def __getitem__(self, *args):
750 r"""
751 __getitem__(wxPoint_Vector self, SWIGPY_SLICEOBJECT * slice) -> wxPoint_Vector
752 __getitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i) -> wxPoint
753 """
754 return _pcbnew.wxPoint_Vector___getitem__(self, *args)
755
756 def __setitem__(self, *args):
757 r"""
758 __setitem__(wxPoint_Vector self, SWIGPY_SLICEOBJECT * slice, wxPoint_Vector v)
759 __setitem__(wxPoint_Vector self, SWIGPY_SLICEOBJECT * slice)
760 __setitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, wxPoint x)
761 """
762 return _pcbnew.wxPoint_Vector___setitem__(self, *args)
763
764 def pop(self):
765 r"""pop(wxPoint_Vector self) -> wxPoint"""
766 return _pcbnew.wxPoint_Vector_pop(self)
767
768 def append(self, x):
769 r"""append(wxPoint_Vector self, wxPoint x)"""
770 return _pcbnew.wxPoint_Vector_append(self, x)
771
772 def empty(self):
773 r"""empty(wxPoint_Vector self) -> bool"""
774 return _pcbnew.wxPoint_Vector_empty(self)
775
776 def size(self):
777 r"""size(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
778 return _pcbnew.wxPoint_Vector_size(self)
779
780 def swap(self, v):
781 r"""swap(wxPoint_Vector self, wxPoint_Vector v)"""
782 return _pcbnew.wxPoint_Vector_swap(self, v)
783
784 def begin(self):
785 r"""begin(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
786 return _pcbnew.wxPoint_Vector_begin(self)
787
788 def end(self):
789 r"""end(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
790 return _pcbnew.wxPoint_Vector_end(self)
791
792 def rbegin(self):
793 r"""rbegin(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
794 return _pcbnew.wxPoint_Vector_rbegin(self)
795
796 def rend(self):
797 r"""rend(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
798 return _pcbnew.wxPoint_Vector_rend(self)
799
800 def clear(self):
801 r"""clear(wxPoint_Vector self)"""
802 return _pcbnew.wxPoint_Vector_clear(self)
803
804 def get_allocator(self):
805 r"""get_allocator(wxPoint_Vector self) -> std::vector< wxPoint >::allocator_type"""
806 return _pcbnew.wxPoint_Vector_get_allocator(self)
807
808 def pop_back(self):
809 r"""pop_back(wxPoint_Vector self)"""
810 return _pcbnew.wxPoint_Vector_pop_back(self)
811
812 def erase(self, *args):
813 r"""
814 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator pos) -> std::vector< wxPoint >::iterator
815 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator first, std::vector< wxPoint >::iterator last) -> std::vector< wxPoint >::iterator
816 """
817 return _pcbnew.wxPoint_Vector_erase(self, *args)
818
819 def __init__(self, *args):
820 r"""
821 __init__(wxPoint_Vector self) -> wxPoint_Vector
822 __init__(wxPoint_Vector self, wxPoint_Vector other) -> wxPoint_Vector
823 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size) -> wxPoint_Vector
824 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size, wxPoint value) -> wxPoint_Vector
825 """
826 _pcbnew.wxPoint_Vector_swiginit(self, _pcbnew.new_wxPoint_Vector(*args))
827
828 def push_back(self, x):
829 r"""push_back(wxPoint_Vector self, wxPoint x)"""
830 return _pcbnew.wxPoint_Vector_push_back(self, x)
831
832 def front(self):
833 r"""front(wxPoint_Vector self) -> wxPoint"""
834 return _pcbnew.wxPoint_Vector_front(self)
835
836 def back(self):
837 r"""back(wxPoint_Vector self) -> wxPoint"""
838 return _pcbnew.wxPoint_Vector_back(self)
839
840 def assign(self, n, x):
841 r"""assign(wxPoint_Vector self, std::vector< wxPoint >::size_type n, wxPoint x)"""
842 return _pcbnew.wxPoint_Vector_assign(self, n, x)
843
844 def resize(self, *args):
845 r"""
846 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size)
847 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size, wxPoint x)
848 """
849 return _pcbnew.wxPoint_Vector_resize(self, *args)
850
851 def insert(self, *args):
852 r"""
853 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, wxPoint x) -> std::vector< wxPoint >::iterator
854 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, std::vector< wxPoint >::size_type n, wxPoint x)
855 """
856 return _pcbnew.wxPoint_Vector_insert(self, *args)
857
858 def reserve(self, n):
859 r"""reserve(wxPoint_Vector self, std::vector< wxPoint >::size_type n)"""
860 return _pcbnew.wxPoint_Vector_reserve(self, n)
861
862 def capacity(self):
863 r"""capacity(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
864 return _pcbnew.wxPoint_Vector_capacity(self)
865 __swig_destroy__ = _pcbnew.delete_wxPoint_Vector
866
867# Register wxPoint_Vector in _pcbnew:
868_pcbnew.wxPoint_Vector_swigregister(wxPoint_Vector)
869SKETCH = _pcbnew.SKETCH
870
871FILLED = _pcbnew.FILLED
872
874 r"""Proxy of C++ KIID class."""
875
876 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
877 __repr__ = _swig_repr
878
879 def __init__(self, *args):
880 r"""
881 __init__(KIID self) -> KIID
882 __init__(KIID self, int null) -> KIID
883 __init__(KIID self, string aString) -> KIID
884 __init__(KIID self, char const * aString) -> KIID
885 __init__(KIID self, wxString aString) -> KIID
886 __init__(KIID self, timestamp_t aTimestamp) -> KIID
887 """
888 _pcbnew.KIID_swiginit(self, _pcbnew.new_KIID(*args))
889
890 def Clone(self, aUUID):
891 r"""Clone(KIID self, KIID aUUID)"""
892 return _pcbnew.KIID_Clone(self, aUUID)
893
894 def Hash(self):
895 r"""Hash(KIID self) -> size_t"""
896 return _pcbnew.KIID_Hash(self)
897
899 r"""IsLegacyTimestamp(KIID self) -> bool"""
900 return _pcbnew.KIID_IsLegacyTimestamp(self)
901
903 r"""AsLegacyTimestamp(KIID self) -> timestamp_t"""
904 return _pcbnew.KIID_AsLegacyTimestamp(self)
905
906 def AsString(self):
907 r"""AsString(KIID self) -> wxString"""
908 return _pcbnew.KIID_AsString(self)
909
911 r"""AsLegacyTimestampString(KIID self) -> wxString"""
912 return _pcbnew.KIID_AsLegacyTimestampString(self)
913
914 def AsStdString(self):
915 r"""AsStdString(KIID self) -> string"""
916 return _pcbnew.KIID_AsStdString(self)
917
918 @staticmethod
919 def SniffTest(aCandidate):
920 r"""SniffTest(wxString aCandidate) -> bool"""
921 return _pcbnew.KIID_SniffTest(aCandidate)
922
923 @staticmethod
924 def CreateNilUuids(aNil=True):
925 r"""CreateNilUuids(bool aNil=True)"""
926 return _pcbnew.KIID_CreateNilUuids(aNil)
927
928 @staticmethod
929 def SeedGenerator(aSeed):
930 r"""SeedGenerator(unsigned int aSeed)"""
931 return _pcbnew.KIID_SeedGenerator(aSeed)
932
934 r"""ConvertTimestampToUuid(KIID self)"""
935 return _pcbnew.KIID_ConvertTimestampToUuid(self)
936
937 def Increment(self):
938 r"""Increment(KIID self)"""
939 return _pcbnew.KIID_Increment(self)
940
941 def __eq__(self, rhs):
942 r"""__eq__(KIID self, KIID rhs) -> bool"""
943 return _pcbnew.KIID___eq__(self, rhs)
944
945 def __ne__(self, rhs):
946 r"""__ne__(KIID self, KIID rhs) -> bool"""
947 return _pcbnew.KIID___ne__(self, rhs)
948
949 def __lt__(self, rhs):
950 r"""__lt__(KIID self, KIID rhs) -> bool"""
951 return _pcbnew.KIID___lt__(self, rhs)
952
953 def __gt__(self, rhs):
954 r"""__gt__(KIID self, KIID rhs) -> bool"""
955 return _pcbnew.KIID___gt__(self, rhs)
956 __swig_destroy__ = _pcbnew.delete_KIID
957
958# Register KIID in _pcbnew:
959_pcbnew.KIID_swigregister(KIID)
960
962 r"""NilUuid() -> KIID"""
963 return _pcbnew.NilUuid()
965 r"""Proxy of C++ std::vector< KIID > class."""
966
967 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
968 __repr__ = _swig_repr
969
970 def iterator(self):
971 r"""iterator(KIID_VECT_LIST self) -> SwigPyIterator"""
972 return _pcbnew.KIID_VECT_LIST_iterator(self)
973 def __iter__(self):
974 return self.iterator()
975
976 def __nonzero__(self):
977 r"""__nonzero__(KIID_VECT_LIST self) -> bool"""
978 return _pcbnew.KIID_VECT_LIST___nonzero__(self)
979
980 def __bool__(self):
981 r"""__bool__(KIID_VECT_LIST self) -> bool"""
982 return _pcbnew.KIID_VECT_LIST___bool__(self)
983
984 def __len__(self):
985 r"""__len__(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
986 return _pcbnew.KIID_VECT_LIST___len__(self)
987
988 def __getslice__(self, i, j):
989 r"""__getslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j) -> KIID_VECT_LIST"""
990 return _pcbnew.KIID_VECT_LIST___getslice__(self, i, j)
991
992 def __setslice__(self, *args):
993 r"""
994 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)
995 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j, KIID_VECT_LIST v)
996 """
997 return _pcbnew.KIID_VECT_LIST___setslice__(self, *args)
998
999 def __delslice__(self, i, j):
1000 r"""__delslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)"""
1001 return _pcbnew.KIID_VECT_LIST___delslice__(self, i, j)
1002
1003 def __delitem__(self, *args):
1004 r"""
1005 __delitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i)
1006 __delitem__(KIID_VECT_LIST self, SWIGPY_SLICEOBJECT * slice)
1007 """
1008 return _pcbnew.KIID_VECT_LIST___delitem__(self, *args)
1009
1010 def __getitem__(self, *args):
1011 r"""
1012 __getitem__(KIID_VECT_LIST self, SWIGPY_SLICEOBJECT * slice) -> KIID_VECT_LIST
1013 __getitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i) -> KIID
1014 """
1015 return _pcbnew.KIID_VECT_LIST___getitem__(self, *args)
1016
1017 def __setitem__(self, *args):
1018 r"""
1019 __setitem__(KIID_VECT_LIST self, SWIGPY_SLICEOBJECT * slice, KIID_VECT_LIST v)
1020 __setitem__(KIID_VECT_LIST self, SWIGPY_SLICEOBJECT * slice)
1021 __setitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, KIID x)
1022 """
1023 return _pcbnew.KIID_VECT_LIST___setitem__(self, *args)
1024
1025 def pop(self):
1026 r"""pop(KIID_VECT_LIST self) -> KIID"""
1027 return _pcbnew.KIID_VECT_LIST_pop(self)
1028
1029 def append(self, x):
1030 r"""append(KIID_VECT_LIST self, KIID x)"""
1031 return _pcbnew.KIID_VECT_LIST_append(self, x)
1032
1033 def empty(self):
1034 r"""empty(KIID_VECT_LIST self) -> bool"""
1035 return _pcbnew.KIID_VECT_LIST_empty(self)
1036
1037 def size(self):
1038 r"""size(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1039 return _pcbnew.KIID_VECT_LIST_size(self)
1040
1041 def swap(self, v):
1042 r"""swap(KIID_VECT_LIST self, KIID_VECT_LIST v)"""
1043 return _pcbnew.KIID_VECT_LIST_swap(self, v)
1044
1045 def begin(self):
1046 r"""begin(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1047 return _pcbnew.KIID_VECT_LIST_begin(self)
1048
1049 def end(self):
1050 r"""end(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1051 return _pcbnew.KIID_VECT_LIST_end(self)
1052
1053 def rbegin(self):
1054 r"""rbegin(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1055 return _pcbnew.KIID_VECT_LIST_rbegin(self)
1056
1057 def rend(self):
1058 r"""rend(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1059 return _pcbnew.KIID_VECT_LIST_rend(self)
1060
1061 def clear(self):
1062 r"""clear(KIID_VECT_LIST self)"""
1063 return _pcbnew.KIID_VECT_LIST_clear(self)
1064
1065 def get_allocator(self):
1066 r"""get_allocator(KIID_VECT_LIST self) -> std::vector< KIID >::allocator_type"""
1067 return _pcbnew.KIID_VECT_LIST_get_allocator(self)
1068
1069 def pop_back(self):
1070 r"""pop_back(KIID_VECT_LIST self)"""
1071 return _pcbnew.KIID_VECT_LIST_pop_back(self)
1072
1073 def erase(self, *args):
1074 r"""
1075 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator pos) -> std::vector< KIID >::iterator
1076 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator first, std::vector< KIID >::iterator last) -> std::vector< KIID >::iterator
1077 """
1078 return _pcbnew.KIID_VECT_LIST_erase(self, *args)
1079
1080 def __init__(self, *args):
1081 r"""
1082 __init__(KIID_VECT_LIST self) -> KIID_VECT_LIST
1083 __init__(KIID_VECT_LIST self, KIID_VECT_LIST other) -> KIID_VECT_LIST
1084 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size) -> KIID_VECT_LIST
1085 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size, KIID value) -> KIID_VECT_LIST
1086 """
1087 _pcbnew.KIID_VECT_LIST_swiginit(self, _pcbnew.new_KIID_VECT_LIST(*args))
1088
1089 def push_back(self, x):
1090 r"""push_back(KIID_VECT_LIST self, KIID x)"""
1091 return _pcbnew.KIID_VECT_LIST_push_back(self, x)
1092
1093 def front(self):
1094 r"""front(KIID_VECT_LIST self) -> KIID"""
1095 return _pcbnew.KIID_VECT_LIST_front(self)
1096
1097 def back(self):
1098 r"""back(KIID_VECT_LIST self) -> KIID"""
1099 return _pcbnew.KIID_VECT_LIST_back(self)
1100
1101 def assign(self, n, x):
1102 r"""assign(KIID_VECT_LIST self, std::vector< KIID >::size_type n, KIID x)"""
1103 return _pcbnew.KIID_VECT_LIST_assign(self, n, x)
1104
1105 def resize(self, *args):
1106 r"""
1107 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size)
1108 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size, KIID x)
1109 """
1110 return _pcbnew.KIID_VECT_LIST_resize(self, *args)
1111
1112 def insert(self, *args):
1113 r"""
1114 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, KIID x) -> std::vector< KIID >::iterator
1115 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, std::vector< KIID >::size_type n, KIID x)
1116 """
1117 return _pcbnew.KIID_VECT_LIST_insert(self, *args)
1118
1119 def reserve(self, n):
1120 r"""reserve(KIID_VECT_LIST self, std::vector< KIID >::size_type n)"""
1121 return _pcbnew.KIID_VECT_LIST_reserve(self, n)
1122
1123 def capacity(self):
1124 r"""capacity(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1125 return _pcbnew.KIID_VECT_LIST_capacity(self)
1126 __swig_destroy__ = _pcbnew.delete_KIID_VECT_LIST
1127
1128# Register KIID_VECT_LIST in _pcbnew:
1129_pcbnew.KIID_VECT_LIST_swigregister(KIID_VECT_LIST)
1131 r"""Proxy of C++ KIID_PATH class."""
1132
1133 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1134 __repr__ = _swig_repr
1135
1136 def __init__(self, *args):
1137 r"""
1138 __init__(KIID_PATH self) -> KIID_PATH
1139 __init__(KIID_PATH self, wxString aString) -> KIID_PATH
1140 """
1141 _pcbnew.KIID_PATH_swiginit(self, _pcbnew.new_KIID_PATH(*args))
1142
1143 def MakeRelativeTo(self, aPath):
1144 r"""MakeRelativeTo(KIID_PATH self, KIID_PATH aPath) -> bool"""
1145 return _pcbnew.KIID_PATH_MakeRelativeTo(self, aPath)
1146
1147 def EndsWith(self, aPath):
1148 r"""EndsWith(KIID_PATH self, KIID_PATH aPath) -> bool"""
1149 return _pcbnew.KIID_PATH_EndsWith(self, aPath)
1150
1151 def AsString(self):
1152 r"""AsString(KIID_PATH self) -> wxString"""
1153 return _pcbnew.KIID_PATH_AsString(self)
1154
1155 def __eq__(self, rhs):
1156 r"""__eq__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1157 return _pcbnew.KIID_PATH___eq__(self, rhs)
1158
1159 def __lt__(self, rhs):
1160 r"""__lt__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1161 return _pcbnew.KIID_PATH___lt__(self, rhs)
1162
1163 def __gt__(self, rhs):
1164 r"""__gt__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1165 return _pcbnew.KIID_PATH___gt__(self, rhs)
1166
1167 def __iadd__(self, aRhs):
1168 r"""__iadd__(KIID_PATH self, KIID_PATH aRhs) -> KIID_PATH"""
1169 return _pcbnew.KIID_PATH___iadd__(self, aRhs)
1170 __swig_destroy__ = _pcbnew.delete_KIID_PATH
1171
1172# Register KIID_PATH in _pcbnew:
1173_pcbnew.KIID_PATH_swigregister(KIID_PATH)
1175 r"""Proxy of C++ KIID_NIL_SET_RESET class."""
1176
1177 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1178 __repr__ = _swig_repr
1179
1180 def __init__(self):
1181 r"""__init__(KIID_NIL_SET_RESET self) -> KIID_NIL_SET_RESET"""
1182 _pcbnew.KIID_NIL_SET_RESET_swiginit(self, _pcbnew.new_KIID_NIL_SET_RESET())
1183 __swig_destroy__ = _pcbnew.delete_KIID_NIL_SET_RESET
1184
1185# Register KIID_NIL_SET_RESET in _pcbnew:
1186_pcbnew.KIID_NIL_SET_RESET_swigregister(KIID_NIL_SET_RESET)
1187NOT_USED = _pcbnew.NOT_USED
1188
1189TYPE_NOT_INIT = _pcbnew.TYPE_NOT_INIT
1190
1191PCB_T = _pcbnew.PCB_T
1192
1193SCREEN_T = _pcbnew.SCREEN_T
1194
1195PCB_FOOTPRINT_T = _pcbnew.PCB_FOOTPRINT_T
1196
1197PCB_PAD_T = _pcbnew.PCB_PAD_T
1198
1199PCB_SHAPE_T = _pcbnew.PCB_SHAPE_T
1200
1201PCB_REFERENCE_IMAGE_T = _pcbnew.PCB_REFERENCE_IMAGE_T
1202
1203PCB_FIELD_T = _pcbnew.PCB_FIELD_T
1204
1205PCB_GENERATOR_T = _pcbnew.PCB_GENERATOR_T
1206
1207PCB_TEXT_T = _pcbnew.PCB_TEXT_T
1208
1209PCB_TEXTBOX_T = _pcbnew.PCB_TEXTBOX_T
1210
1211PCB_TABLE_T = _pcbnew.PCB_TABLE_T
1212
1213PCB_TABLECELL_T = _pcbnew.PCB_TABLECELL_T
1214
1215PCB_TRACE_T = _pcbnew.PCB_TRACE_T
1216
1217PCB_VIA_T = _pcbnew.PCB_VIA_T
1218
1219PCB_ARC_T = _pcbnew.PCB_ARC_T
1220
1221PCB_MARKER_T = _pcbnew.PCB_MARKER_T
1222
1223PCB_DIMENSION_T = _pcbnew.PCB_DIMENSION_T
1224
1225PCB_DIM_ALIGNED_T = _pcbnew.PCB_DIM_ALIGNED_T
1226
1227PCB_DIM_LEADER_T = _pcbnew.PCB_DIM_LEADER_T
1228
1229PCB_DIM_CENTER_T = _pcbnew.PCB_DIM_CENTER_T
1230
1231PCB_DIM_RADIAL_T = _pcbnew.PCB_DIM_RADIAL_T
1232
1233PCB_DIM_ORTHOGONAL_T = _pcbnew.PCB_DIM_ORTHOGONAL_T
1234
1235PCB_TARGET_T = _pcbnew.PCB_TARGET_T
1236
1237PCB_ZONE_T = _pcbnew.PCB_ZONE_T
1238
1239PCB_ITEM_LIST_T = _pcbnew.PCB_ITEM_LIST_T
1240
1241PCB_NETINFO_T = _pcbnew.PCB_NETINFO_T
1242
1243PCB_GROUP_T = _pcbnew.PCB_GROUP_T
1244
1245PCB_FIELD_LOCATE_REFERENCE_T = _pcbnew.PCB_FIELD_LOCATE_REFERENCE_T
1246
1247PCB_FIELD_LOCATE_VALUE_T = _pcbnew.PCB_FIELD_LOCATE_VALUE_T
1248
1249PCB_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.PCB_FIELD_LOCATE_FOOTPRINT_T
1250
1251PCB_FIELD_LOCATE_DATASHEET_T = _pcbnew.PCB_FIELD_LOCATE_DATASHEET_T
1252
1253PCB_LOCATE_STDVIA_T = _pcbnew.PCB_LOCATE_STDVIA_T
1254
1255PCB_LOCATE_UVIA_T = _pcbnew.PCB_LOCATE_UVIA_T
1256
1257PCB_LOCATE_BBVIA_T = _pcbnew.PCB_LOCATE_BBVIA_T
1258
1259PCB_LOCATE_TEXT_T = _pcbnew.PCB_LOCATE_TEXT_T
1260
1261PCB_LOCATE_HOLE_T = _pcbnew.PCB_LOCATE_HOLE_T
1262
1263PCB_LOCATE_PTH_T = _pcbnew.PCB_LOCATE_PTH_T
1264
1265PCB_LOCATE_NPTH_T = _pcbnew.PCB_LOCATE_NPTH_T
1266
1267PCB_LOCATE_BOARD_EDGE_T = _pcbnew.PCB_LOCATE_BOARD_EDGE_T
1268
1269PCB_SHAPE_LOCATE_SEGMENT_T = _pcbnew.PCB_SHAPE_LOCATE_SEGMENT_T
1270
1271PCB_SHAPE_LOCATE_RECT_T = _pcbnew.PCB_SHAPE_LOCATE_RECT_T
1272
1273PCB_SHAPE_LOCATE_CIRCLE_T = _pcbnew.PCB_SHAPE_LOCATE_CIRCLE_T
1274
1275PCB_SHAPE_LOCATE_ARC_T = _pcbnew.PCB_SHAPE_LOCATE_ARC_T
1276
1277PCB_SHAPE_LOCATE_POLY_T = _pcbnew.PCB_SHAPE_LOCATE_POLY_T
1278
1279PCB_SHAPE_LOCATE_BEZIER_T = _pcbnew.PCB_SHAPE_LOCATE_BEZIER_T
1280
1281LIB_SYMBOL_T = _pcbnew.LIB_SYMBOL_T
1282
1283SCH_SHAPE_T = _pcbnew.SCH_SHAPE_T
1284
1285SCH_FIELD_T = _pcbnew.SCH_FIELD_T
1286
1287SCH_TEXT_T = _pcbnew.SCH_TEXT_T
1288
1289SCH_TEXTBOX_T = _pcbnew.SCH_TEXTBOX_T
1290
1291SCH_PIN_T = _pcbnew.SCH_PIN_T
1292
1293SCH_MARKER_T = _pcbnew.SCH_MARKER_T
1294
1295SCH_JUNCTION_T = _pcbnew.SCH_JUNCTION_T
1296
1297SCH_NO_CONNECT_T = _pcbnew.SCH_NO_CONNECT_T
1298
1299SCH_BUS_WIRE_ENTRY_T = _pcbnew.SCH_BUS_WIRE_ENTRY_T
1300
1301SCH_BUS_BUS_ENTRY_T = _pcbnew.SCH_BUS_BUS_ENTRY_T
1302
1303SCH_LINE_T = _pcbnew.SCH_LINE_T
1304
1305SCH_BITMAP_T = _pcbnew.SCH_BITMAP_T
1306
1307SCH_TABLE_T = _pcbnew.SCH_TABLE_T
1308
1309SCH_TABLECELL_T = _pcbnew.SCH_TABLECELL_T
1310
1311SCH_LABEL_T = _pcbnew.SCH_LABEL_T
1312
1313SCH_GLOBAL_LABEL_T = _pcbnew.SCH_GLOBAL_LABEL_T
1314
1315SCH_HIER_LABEL_T = _pcbnew.SCH_HIER_LABEL_T
1316
1317SCH_RULE_AREA_T = _pcbnew.SCH_RULE_AREA_T
1318
1319SCH_DIRECTIVE_LABEL_T = _pcbnew.SCH_DIRECTIVE_LABEL_T
1320
1321SCH_SYMBOL_T = _pcbnew.SCH_SYMBOL_T
1322
1323SCH_SHEET_PIN_T = _pcbnew.SCH_SHEET_PIN_T
1324
1325SCH_SHEET_T = _pcbnew.SCH_SHEET_T
1326
1327SCH_FIELD_LOCATE_REFERENCE_T = _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T
1328
1329SCH_FIELD_LOCATE_VALUE_T = _pcbnew.SCH_FIELD_LOCATE_VALUE_T
1330
1331SCH_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T
1332
1333SCH_FIELD_LOCATE_DATASHEET_T = _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T
1334
1335SCH_ITEM_LOCATE_WIRE_T = _pcbnew.SCH_ITEM_LOCATE_WIRE_T
1336
1337SCH_ITEM_LOCATE_BUS_T = _pcbnew.SCH_ITEM_LOCATE_BUS_T
1338
1339SCH_ITEM_LOCATE_GRAPHIC_LINE_T = _pcbnew.SCH_ITEM_LOCATE_GRAPHIC_LINE_T
1340
1341SCH_LABEL_LOCATE_ANY_T = _pcbnew.SCH_LABEL_LOCATE_ANY_T
1342
1343SCH_LABEL_LOCATE_WIRE_T = _pcbnew.SCH_LABEL_LOCATE_WIRE_T
1344
1345SCH_LABEL_LOCATE_BUS_T = _pcbnew.SCH_LABEL_LOCATE_BUS_T
1346
1347SCH_SYMBOL_LOCATE_POWER_T = _pcbnew.SCH_SYMBOL_LOCATE_POWER_T
1348
1349SCH_LOCATE_ANY_T = _pcbnew.SCH_LOCATE_ANY_T
1350
1351SCH_SCREEN_T = _pcbnew.SCH_SCREEN_T
1352
1353SCHEMATIC_T = _pcbnew.SCHEMATIC_T
1354
1355GERBER_LAYOUT_T = _pcbnew.GERBER_LAYOUT_T
1356
1357GERBER_DRAW_ITEM_T = _pcbnew.GERBER_DRAW_ITEM_T
1358
1359GERBER_IMAGE_T = _pcbnew.GERBER_IMAGE_T
1360
1361WSG_LINE_T = _pcbnew.WSG_LINE_T
1362
1363WSG_RECT_T = _pcbnew.WSG_RECT_T
1364
1365WSG_POLY_T = _pcbnew.WSG_POLY_T
1366
1367WSG_TEXT_T = _pcbnew.WSG_TEXT_T
1368
1369WSG_BITMAP_T = _pcbnew.WSG_BITMAP_T
1370
1371WSG_PAGE_T = _pcbnew.WSG_PAGE_T
1372
1373WS_PROXY_UNDO_ITEM_T = _pcbnew.WS_PROXY_UNDO_ITEM_T
1374
1375WS_PROXY_UNDO_ITEM_PLUS_T = _pcbnew.WS_PROXY_UNDO_ITEM_PLUS_T
1376
1377SYMBOL_LIB_TABLE_T = _pcbnew.SYMBOL_LIB_TABLE_T
1378
1379FP_LIB_TABLE_T = _pcbnew.FP_LIB_TABLE_T
1380
1381DESIGN_BLOCK_LIB_TABLE_T = _pcbnew.DESIGN_BLOCK_LIB_TABLE_T
1382
1383SYMBOL_LIBS_T = _pcbnew.SYMBOL_LIBS_T
1384
1385SEARCH_STACK_T = _pcbnew.SEARCH_STACK_T
1386
1387S3D_CACHE_T = _pcbnew.S3D_CACHE_T
1388
1389MAX_STRUCT_TYPE_ID = _pcbnew.MAX_STRUCT_TYPE_ID
1390
1391
1392def BaseType(aType):
1393 r"""BaseType(KICAD_T const aType) -> KICAD_T"""
1394 return _pcbnew.BaseType(aType)
1395
1396def IsNullType(aType):
1397 r"""IsNullType(KICAD_T const aType) -> bool"""
1398 return _pcbnew.IsNullType(aType)
1399
1401 r"""IsInstantiableType(KICAD_T const aType) -> bool"""
1402 return _pcbnew.IsInstantiableType(aType)
1403
1405 r"""IsEeschemaType(KICAD_T const aType) -> bool"""
1406 return _pcbnew.IsEeschemaType(aType)
1407
1408def IsPcbnewType(aType):
1409 r"""IsPcbnewType(KICAD_T const aType) -> bool"""
1410 return _pcbnew.IsPcbnewType(aType)
1411
1413 r"""IsGerbviewType(KICAD_T const aType) -> bool"""
1414 return _pcbnew.IsGerbviewType(aType)
1415
1417 r"""IsPageLayoutEditorType(KICAD_T const aType) -> bool"""
1418 return _pcbnew.IsPageLayoutEditorType(aType)
1419
1420def IsMiscType(aType):
1421 r"""IsMiscType(KICAD_T const aType) -> bool"""
1422 return _pcbnew.IsMiscType(aType)
1423
1424def IsTypeCorrect(aType):
1425 r"""IsTypeCorrect(KICAD_T aType) -> bool"""
1426 return _pcbnew.IsTypeCorrect(aType)
1427INSPECT_RESULT_QUIT = _pcbnew.INSPECT_RESULT_QUIT
1428
1429INSPECT_RESULT_CONTINUE = _pcbnew.INSPECT_RESULT_CONTINUE
1430
1432 r"""Proxy of C++ EDA_ITEM class."""
1433
1434 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1435
1436 def __init__(self, *args, **kwargs):
1437 raise AttributeError("No constructor defined - class is abstract")
1438 __repr__ = _swig_repr
1439 __swig_destroy__ = _pcbnew.delete_EDA_ITEM
1440
1441 def Type(self):
1442 r"""Type(EDA_ITEM self) -> KICAD_T"""
1443 return _pcbnew.EDA_ITEM_Type(self)
1444
1445 def GetParent(self):
1446 r"""GetParent(EDA_ITEM self) -> EDA_ITEM"""
1447 return _pcbnew.EDA_ITEM_GetParent(self)
1448
1449 def SetParent(self, aParent):
1450 r"""SetParent(EDA_ITEM self, EDA_ITEM aParent)"""
1451 return _pcbnew.EDA_ITEM_SetParent(self, aParent)
1452
1453 def IsModified(self):
1454 r"""IsModified(EDA_ITEM self) -> bool"""
1455 return _pcbnew.EDA_ITEM_IsModified(self)
1456
1457 def IsNew(self):
1458 r"""IsNew(EDA_ITEM self) -> bool"""
1459 return _pcbnew.EDA_ITEM_IsNew(self)
1460
1461 def IsMoving(self):
1462 r"""IsMoving(EDA_ITEM self) -> bool"""
1463 return _pcbnew.EDA_ITEM_IsMoving(self)
1464
1465 def IsSelected(self):
1466 r"""IsSelected(EDA_ITEM self) -> bool"""
1467 return _pcbnew.EDA_ITEM_IsSelected(self)
1468
1469 def IsEntered(self):
1470 r"""IsEntered(EDA_ITEM self) -> bool"""
1471 return _pcbnew.EDA_ITEM_IsEntered(self)
1472
1473 def IsBrightened(self):
1474 r"""IsBrightened(EDA_ITEM self) -> bool"""
1475 return _pcbnew.EDA_ITEM_IsBrightened(self)
1476
1477 def IsRollover(self):
1478 r"""IsRollover(EDA_ITEM self) -> bool"""
1479 return _pcbnew.EDA_ITEM_IsRollover(self)
1480
1481 def SetIsRollover(self, aIsRollover):
1482 r"""SetIsRollover(EDA_ITEM self, bool aIsRollover)"""
1483 return _pcbnew.EDA_ITEM_SetIsRollover(self, aIsRollover)
1484
1485 def SetSelected(self):
1486 r"""SetSelected(EDA_ITEM self)"""
1487 return _pcbnew.EDA_ITEM_SetSelected(self)
1488
1489 def SetBrightened(self):
1490 r"""SetBrightened(EDA_ITEM self)"""
1491 return _pcbnew.EDA_ITEM_SetBrightened(self)
1492
1493 def ClearSelected(self):
1494 r"""ClearSelected(EDA_ITEM self)"""
1495 return _pcbnew.EDA_ITEM_ClearSelected(self)
1496
1498 r"""ClearBrightened(EDA_ITEM self)"""
1499 return _pcbnew.EDA_ITEM_ClearBrightened(self)
1500
1501 def SetModified(self):
1502 r"""SetModified(EDA_ITEM self)"""
1503 return _pcbnew.EDA_ITEM_SetModified(self)
1504
1505 def SetFlags(self, aMask):
1506 r"""SetFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1507 return _pcbnew.EDA_ITEM_SetFlags(self, aMask)
1508
1509 def XorFlags(self, aMask):
1510 r"""XorFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1511 return _pcbnew.EDA_ITEM_XorFlags(self, aMask)
1512
1513 def ClearFlags(self, *args):
1514 r"""ClearFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)"""
1515 return _pcbnew.EDA_ITEM_ClearFlags(self, *args)
1516
1517 def GetFlags(self):
1518 r"""GetFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1519 return _pcbnew.EDA_ITEM_GetFlags(self)
1520
1521 def HasFlag(self, aFlag):
1522 r"""HasFlag(EDA_ITEM self, EDA_ITEM_FLAGS aFlag) -> bool"""
1523 return _pcbnew.EDA_ITEM_HasFlag(self, aFlag)
1524
1525 def GetEditFlags(self):
1526 r"""GetEditFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1527 return _pcbnew.EDA_ITEM_GetEditFlags(self)
1528
1530 r"""ClearEditFlags(EDA_ITEM self)"""
1531 return _pcbnew.EDA_ITEM_ClearEditFlags(self)
1532
1533 def GetTempFlags(self):
1534 r"""GetTempFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1535 return _pcbnew.EDA_ITEM_GetTempFlags(self)
1536
1538 r"""ClearTempFlags(EDA_ITEM self)"""
1539 return _pcbnew.EDA_ITEM_ClearTempFlags(self)
1540
1541 def RenderAsBitmap(self, aWorldScale):
1542 r"""RenderAsBitmap(EDA_ITEM self, double aWorldScale) -> bool"""
1543 return _pcbnew.EDA_ITEM_RenderAsBitmap(self, aWorldScale)
1544
1545 def SetIsShownAsBitmap(self, aBitmap):
1546 r"""SetIsShownAsBitmap(EDA_ITEM self, bool aBitmap)"""
1547 return _pcbnew.EDA_ITEM_SetIsShownAsBitmap(self, aBitmap)
1548
1550 r"""IsShownAsBitmap(EDA_ITEM self) -> bool"""
1551 return _pcbnew.EDA_ITEM_IsShownAsBitmap(self)
1552
1553 def IsType(self, aScanTypes):
1554 r"""IsType(EDA_ITEM self, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> bool"""
1555 return _pcbnew.EDA_ITEM_IsType(self, aScanTypes)
1556
1557 def SetForceVisible(self, aEnable):
1558 r"""SetForceVisible(EDA_ITEM self, bool aEnable)"""
1559 return _pcbnew.EDA_ITEM_SetForceVisible(self, aEnable)
1560
1562 r"""IsForceVisible(EDA_ITEM self) -> bool"""
1563 return _pcbnew.EDA_ITEM_IsForceVisible(self)
1564
1565 def GetMsgPanelInfo(self, aFrame, aList):
1566 r"""GetMsgPanelInfo(EDA_ITEM self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
1567 return _pcbnew.EDA_ITEM_GetMsgPanelInfo(self, aFrame, aList)
1568
1570 r"""GetFriendlyName(EDA_ITEM self) -> wxString"""
1571 return _pcbnew.EDA_ITEM_GetFriendlyName(self)
1572
1573 def HitTest(self, *args):
1574 r"""
1575 HitTest(EDA_ITEM self, VECTOR2I aPosition, int aAccuracy=0) -> bool
1576 HitTest(EDA_ITEM self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
1577 """
1578 return _pcbnew.EDA_ITEM_HitTest(self, *args)
1579
1581 r"""GetBoundingBox(EDA_ITEM self) -> BOX2I"""
1582 return _pcbnew.EDA_ITEM_GetBoundingBox(self)
1583
1584 def GetPosition(self):
1585 r"""GetPosition(EDA_ITEM self) -> VECTOR2I"""
1586 return _pcbnew.EDA_ITEM_GetPosition(self)
1587
1588 def SetPosition(self, aPos):
1589 r"""SetPosition(EDA_ITEM self, VECTOR2I aPos)"""
1590 return _pcbnew.EDA_ITEM_SetPosition(self, aPos)
1591
1593 r"""GetFocusPosition(EDA_ITEM self) -> VECTOR2I"""
1594 return _pcbnew.EDA_ITEM_GetFocusPosition(self)
1595
1597 r"""GetSortPosition(EDA_ITEM self) -> VECTOR2I"""
1598 return _pcbnew.EDA_ITEM_GetSortPosition(self)
1599
1600 def Clone(self):
1601 r"""Clone(EDA_ITEM self) -> EDA_ITEM"""
1602 return _pcbnew.EDA_ITEM_Clone(self)
1603
1604 def Visit(self, inspector, testData, aScanTypes):
1605 r"""Visit(EDA_ITEM self, INSPECTOR inspector, void * testData, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> INSPECT_RESULT"""
1606 return _pcbnew.EDA_ITEM_Visit(self, inspector, testData, aScanTypes)
1607
1608 def GetClass(self):
1609 r"""GetClass(EDA_ITEM self) -> wxString"""
1610 return _pcbnew.EDA_ITEM_GetClass(self)
1611
1612 def GetTypeDesc(self):
1613 r"""GetTypeDesc(EDA_ITEM self) -> wxString"""
1614 return _pcbnew.EDA_ITEM_GetTypeDesc(self)
1615
1616 def GetItemDescription(self, aUnitsProvider, aFull):
1617 r"""GetItemDescription(EDA_ITEM self, UNITS_PROVIDER aUnitsProvider, bool aFull) -> wxString"""
1618 return _pcbnew.EDA_ITEM_GetItemDescription(self, aUnitsProvider, aFull)
1619
1620 def GetMenuImage(self):
1621 r"""GetMenuImage(EDA_ITEM self) -> BITMAPS"""
1622 return _pcbnew.EDA_ITEM_GetMenuImage(self)
1623
1624 def Matches(self, aSearchData, aAuxData):
1625 r"""Matches(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData) -> bool"""
1626 return _pcbnew.EDA_ITEM_Matches(self, aSearchData, aAuxData)
1627
1628 def Replace(self, *args):
1629 r"""
1630 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, wxString aText) -> bool
1631 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData=None) -> bool
1632 """
1633 return _pcbnew.EDA_ITEM_Replace(self, *args)
1634
1635 def IsReplaceable(self):
1636 r"""IsReplaceable(EDA_ITEM self) -> bool"""
1637 return _pcbnew.EDA_ITEM_IsReplaceable(self)
1638
1639 def __lt__(self, aItem):
1640 r"""__lt__(EDA_ITEM self, EDA_ITEM aItem) -> bool"""
1641 return _pcbnew.EDA_ITEM___lt__(self, aItem)
1642
1643 @staticmethod
1644 def Sort(aLeft, aRight):
1645 r"""Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1646 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1647
1648 def ViewBBox(self):
1649 r"""ViewBBox(EDA_ITEM self) -> BOX2I"""
1650 return _pcbnew.EDA_ITEM_ViewBBox(self)
1651
1652 def ViewGetLayers(self):
1653 r"""ViewGetLayers(EDA_ITEM self) -> intVector"""
1654 return _pcbnew.EDA_ITEM_ViewGetLayers(self)
1655
1657 r"""GetEmbeddedFiles(EDA_ITEM self) -> EMBEDDED_FILES *"""
1658 return _pcbnew.EDA_ITEM_GetEmbeddedFiles(self)
1659 m_Uuid = property(_pcbnew.EDA_ITEM_m_Uuid_get, doc=r"""m_Uuid : q(const).KIID""")
1660
1661# Register EDA_ITEM in _pcbnew:
1662_pcbnew.EDA_ITEM_swigregister(EDA_ITEM)
1663
1664def new_clone(aItem):
1665 r"""new_clone(EDA_ITEM aItem) -> EDA_ITEM"""
1666 return _pcbnew.new_clone(aItem)
1668 r"""Proxy of C++ CompareByUuid class."""
1669
1670 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1671 __repr__ = _swig_repr
1672
1673 def __call__(self, item1, item2):
1674 r"""__call__(CompareByUuid self, EDA_ITEM item1, EDA_ITEM item2) -> bool"""
1675 return _pcbnew.CompareByUuid___call__(self, item1, item2)
1676
1677 def __init__(self):
1678 r"""__init__(CompareByUuid self) -> CompareByUuid"""
1679 _pcbnew.CompareByUuid_swiginit(self, _pcbnew.new_CompareByUuid())
1680 __swig_destroy__ = _pcbnew.delete_CompareByUuid
1681
1682# Register CompareByUuid in _pcbnew:
1683_pcbnew.CompareByUuid_swigregister(CompareByUuid)
1685 r"""Proxy of C++ EDA_IU_SCALE class."""
1686
1687 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1688 __repr__ = _swig_repr
1689 IU_PER_MM = property(_pcbnew.EDA_IU_SCALE_IU_PER_MM_get, doc=r"""IU_PER_MM : q(const).double""")
1690 IU_PER_MILS = property(_pcbnew.EDA_IU_SCALE_IU_PER_MILS_get, doc=r"""IU_PER_MILS : q(const).double""")
1691 MM_PER_IU = property(_pcbnew.EDA_IU_SCALE_MM_PER_IU_get, doc=r"""MM_PER_IU : q(const).double""")
1692
1693 def __init__(self, aIUPerMM):
1694 r"""__init__(EDA_IU_SCALE self, double aIUPerMM) -> EDA_IU_SCALE"""
1695 _pcbnew.EDA_IU_SCALE_swiginit(self, _pcbnew.new_EDA_IU_SCALE(aIUPerMM))
1696
1697 def IUTomm(self, iu):
1698 r"""IUTomm(EDA_IU_SCALE self, int iu) -> double"""
1699 return _pcbnew.EDA_IU_SCALE_IUTomm(self, iu)
1700
1701 def mmToIU(self, mm):
1702 r"""mmToIU(EDA_IU_SCALE self, double mm) -> int"""
1703 return _pcbnew.EDA_IU_SCALE_mmToIU(self, mm)
1704
1705 def MilsToIU(self, mils):
1706 r"""MilsToIU(EDA_IU_SCALE self, int mils) -> int"""
1707 return _pcbnew.EDA_IU_SCALE_MilsToIU(self, mils)
1708
1709 def IUToMils(self, iu):
1710 r"""IUToMils(EDA_IU_SCALE self, int iu) -> int"""
1711 return _pcbnew.EDA_IU_SCALE_IUToMils(self, iu)
1712 __swig_destroy__ = _pcbnew.delete_EDA_IU_SCALE
1713
1714# Register EDA_IU_SCALE in _pcbnew:
1715_pcbnew.EDA_IU_SCALE_swigregister(EDA_IU_SCALE)
1716GERB_IU_PER_MM = cvar.GERB_IU_PER_MM
1717PCB_IU_PER_MM = cvar.PCB_IU_PER_MM
1718PL_IU_PER_MM = cvar.PL_IU_PER_MM
1719SCH_IU_PER_MM = cvar.SCH_IU_PER_MM
1720
1721EDA_DATA_TYPE_DISTANCE = _pcbnew.EDA_DATA_TYPE_DISTANCE
1722
1723EDA_DATA_TYPE_AREA = _pcbnew.EDA_DATA_TYPE_AREA
1724
1725EDA_DATA_TYPE_VOLUME = _pcbnew.EDA_DATA_TYPE_VOLUME
1726
1727EDA_DATA_TYPE_UNITLESS = _pcbnew.EDA_DATA_TYPE_UNITLESS
1728
1729EDA_UNITS_INCH = _pcbnew.EDA_UNITS_INCH
1730
1731EDA_UNITS_MM = _pcbnew.EDA_UNITS_MM
1732
1733EDA_UNITS_UNSCALED = _pcbnew.EDA_UNITS_UNSCALED
1734
1735EDA_UNITS_DEGREES = _pcbnew.EDA_UNITS_DEGREES
1736
1737EDA_UNITS_PERCENT = _pcbnew.EDA_UNITS_PERCENT
1738
1739EDA_UNITS_MILS = _pcbnew.EDA_UNITS_MILS
1740
1741EDA_UNITS_UM = _pcbnew.EDA_UNITS_UM
1742
1743EDA_UNITS_CM = _pcbnew.EDA_UNITS_CM
1744
1745
1747 r"""IsImperialUnit(EDA_UNITS aUnit) -> bool"""
1748 return _pcbnew.IsImperialUnit(aUnit)
1749
1750def IsMetricUnit(aUnit):
1751 r"""IsMetricUnit(EDA_UNITS aUnit) -> bool"""
1752 return _pcbnew.IsMetricUnit(aUnit)
1753
1754def Mm2mils(aVal):
1755 r"""Mm2mils(double aVal) -> int"""
1756 return _pcbnew.Mm2mils(aVal)
1757
1758def Mils2mm(aVal):
1759 r"""Mils2mm(double aVal) -> int"""
1760 return _pcbnew.Mils2mm(aVal)
1761
1762def FetchUnitsFromString(aTextValue, aUnits):
1763 r"""FetchUnitsFromString(wxString aTextValue, EDA_UNITS & aUnits) -> bool"""
1764 return _pcbnew.FetchUnitsFromString(aTextValue, aUnits)
1765
1766def GetText(*args):
1767 r"""GetText(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1768 return _pcbnew.GetText(*args)
1769
1770def GetLabel(*args):
1771 r"""GetLabel(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1772 return _pcbnew.GetLabel(*args)
1773
1774def FormatAngle(aAngle):
1775 r"""FormatAngle(EDA_ANGLE aAngle) -> string"""
1776 return _pcbnew.FormatAngle(aAngle)
1777
1779 r"""
1780 FormatInternalUnits(EDA_IU_SCALE aIuScale, int aValue) -> string
1781 FormatInternalUnits(EDA_IU_SCALE aIuScale, VECTOR2I aPoint) -> string
1782 """
1783 return _pcbnew.FormatInternalUnits(*args)
1784
1785def Mils2IU(aIuScale, mils):
1786 r"""Mils2IU(EDA_IU_SCALE aIuScale, int mils) -> int"""
1787 return _pcbnew.Mils2IU(aIuScale, mils)
1788
1789def ToUserUnit(aIuScale, aUnit, aValue):
1790 r"""ToUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1791 return _pcbnew.ToUserUnit(aIuScale, aUnit, aValue)
1792
1794 r"""StringFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1795 return _pcbnew.StringFromValue(*args)
1796
1798 r"""
1799 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1800 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, int aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1801 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, long long aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1802 MessageTextFromValue(EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
1803 """
1804 return _pcbnew.MessageTextFromValue(*args)
1805
1806def MessageTextFromMinOptMax(aIuScale, aUnits, aValue):
1807 r"""MessageTextFromMinOptMax(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, MINOPTMAX< int > const & aValue) -> wxString"""
1808 return _pcbnew.MessageTextFromMinOptMax(aIuScale, aUnits, aValue)
1809
1810def FromUserUnit(aIuScale, aUnit, aValue):
1811 r"""FromUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1812 return _pcbnew.FromUserUnit(aIuScale, aUnit, aValue)
1813
1815 r"""
1816 DoubleValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> double
1817 DoubleValueFromString(wxString aTextValue) -> double
1818 """
1819 return _pcbnew.DoubleValueFromString(*args)
1820
1822 r"""
1823 ValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> long long
1824 ValueFromString(wxString aTextValue) -> long long
1825 """
1826 return _pcbnew.ValueFromString(*args)
1827
1829 r"""SearchHelpFileFullPath(wxString aBaseName) -> wxString"""
1830 return _pcbnew.SearchHelpFileFullPath(aBaseName)
1831
1832def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None):
1833 r"""EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename, REPORTER * aReporter=None) -> bool"""
1834 return _pcbnew.EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter)
1835
1836def EnsureFileExtension(aFilename, aExtension):
1837 r"""EnsureFileExtension(wxString aFilename, wxString aExtension) -> wxString"""
1838 return _pcbnew.EnsureFileExtension(aFilename, aExtension)
1839
1840def ExpandEnvVarSubstitutions(aString, aProject):
1841 r"""ExpandEnvVarSubstitutions(wxString aString, PROJECT const * aProject) -> wxString"""
1842 return _pcbnew.ExpandEnvVarSubstitutions(aString, aProject)
1843FOR_ERC_DRC = _pcbnew.FOR_ERC_DRC
1844
1845
1847 r"""
1848 ExpandTextVars(wxString aSource, std::function< bool (wxString *) > const * aResolver, int aFlags=0) -> wxString
1849 ExpandTextVars(wxString aSource, PROJECT const * aProject, int aFlags=0) -> wxString
1850 """
1851 return _pcbnew.ExpandTextVars(*args)
1852
1853def GetTextVars(aSource):
1854 r"""GetTextVars(wxString aSource) -> wxString"""
1855 return _pcbnew.GetTextVars(aSource)
1856
1857def IsTextVar(aSource):
1858 r"""IsTextVar(wxString aSource) -> bool"""
1859 return _pcbnew.IsTextVar(aSource)
1860
1861def ResolveUriByEnvVars(aUri, aProject):
1862 r"""ResolveUriByEnvVars(wxString aUri, PROJECT const * aProject) -> wxString"""
1863 return _pcbnew.ResolveUriByEnvVars(aUri, aProject)
1864
1865def TimestampDir(aDirPath, aFilespec):
1866 r"""TimestampDir(wxString aDirPath, wxString aFilespec) -> long long"""
1867 return _pcbnew.TimestampDir(aDirPath, aFilespec)
1868
1870 r"""WarnUserIfOperatingSystemUnsupported() -> bool"""
1871 return _pcbnew.WarnUserIfOperatingSystemUnsupported()
1872
1873def StrPrintf(*args):
1874 r"""
1875 StrPrintf(string aResult, char const * aFormat) -> int
1876 StrPrintf(char const * format) -> string
1877 """
1878 return _pcbnew.StrPrintf(*args)
1879
1880def SafeReadFile(aFilePath, aReadType):
1881 r"""SafeReadFile(wxString aFilePath, wxString aReadType) -> wxString"""
1882 return _pcbnew.SafeReadFile(aFilePath, aReadType)
1883LINE_READER_LINE_DEFAULT_MAX = _pcbnew.LINE_READER_LINE_DEFAULT_MAX
1884
1885LINE_READER_LINE_INITIAL_SIZE = _pcbnew.LINE_READER_LINE_INITIAL_SIZE
1886
1888 r"""Proxy of C++ LINE_READER class."""
1889
1890 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1891
1892 def __init__(self, *args, **kwargs):
1893 raise AttributeError("No constructor defined - class is abstract")
1894 __repr__ = _swig_repr
1895 __swig_destroy__ = _pcbnew.delete_LINE_READER
1896
1897 def ReadLine(self):
1898 r"""ReadLine(LINE_READER self) -> char *"""
1899 return _pcbnew.LINE_READER_ReadLine(self)
1900
1901 def GetSource(self):
1902 r"""GetSource(LINE_READER self) -> wxString"""
1903 return _pcbnew.LINE_READER_GetSource(self)
1904
1905 def Line(self):
1906 r"""Line(LINE_READER self) -> char *"""
1907 return _pcbnew.LINE_READER_Line(self)
1908
1909 def LineNumber(self):
1910 r"""LineNumber(LINE_READER self) -> unsigned int"""
1911 return _pcbnew.LINE_READER_LineNumber(self)
1912
1913 def Length(self):
1914 r"""Length(LINE_READER self) -> unsigned int"""
1915 return _pcbnew.LINE_READER_Length(self)
1916
1917# Register LINE_READER in _pcbnew:
1918_pcbnew.LINE_READER_swigregister(LINE_READER)
1919gerbIUScale = cvar.gerbIUScale
1920pcbIUScale = cvar.pcbIUScale
1921drawSheetIUScale = cvar.drawSheetIUScale
1922schIUScale = cvar.schIUScale
1923unityScale = cvar.unityScale
1924
1926 r"""Proxy of C++ FILE_LINE_READER class."""
1927
1928 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1929 __repr__ = _swig_repr
1930
1931 def __init__(self, *args):
1932 r"""
1933 __init__(FILE_LINE_READER self, wxString aFileName, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
1934 __init__(FILE_LINE_READER self, FILE * aFile, wxString aFileName, bool doOwn=True, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
1935 """
1936 _pcbnew.FILE_LINE_READER_swiginit(self, _pcbnew.new_FILE_LINE_READER(*args))
1937 __swig_destroy__ = _pcbnew.delete_FILE_LINE_READER
1938
1939 def Rewind(self):
1940 r"""Rewind(FILE_LINE_READER self)"""
1941 return _pcbnew.FILE_LINE_READER_Rewind(self)
1942
1943 def FileLength(self):
1944 r"""FileLength(FILE_LINE_READER self) -> long"""
1945 return _pcbnew.FILE_LINE_READER_FileLength(self)
1946
1947 def CurPos(self):
1948 r"""CurPos(FILE_LINE_READER self) -> long"""
1949 return _pcbnew.FILE_LINE_READER_CurPos(self)
1950
1951# Register FILE_LINE_READER in _pcbnew:
1952_pcbnew.FILE_LINE_READER_swigregister(FILE_LINE_READER)
1954 r"""Proxy of C++ STRING_LINE_READER class."""
1955
1956 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1957 __repr__ = _swig_repr
1958
1959 def __init__(self, *args):
1960 r"""
1961 __init__(STRING_LINE_READER self, string aString, wxString aSource) -> STRING_LINE_READER
1962 __init__(STRING_LINE_READER self, STRING_LINE_READER aStartingPoint) -> STRING_LINE_READER
1963 """
1964 _pcbnew.STRING_LINE_READER_swiginit(self, _pcbnew.new_STRING_LINE_READER(*args))
1965 __swig_destroy__ = _pcbnew.delete_STRING_LINE_READER
1966
1967# Register STRING_LINE_READER in _pcbnew:
1968_pcbnew.STRING_LINE_READER_swigregister(STRING_LINE_READER)
1970 r"""Proxy of C++ INPUTSTREAM_LINE_READER class."""
1971
1972 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1973 __repr__ = _swig_repr
1974
1975 def __init__(self, aStream, aSource):
1976 r"""__init__(INPUTSTREAM_LINE_READER self, wxInputStream * aStream, wxString aSource) -> INPUTSTREAM_LINE_READER"""
1977 _pcbnew.INPUTSTREAM_LINE_READER_swiginit(self, _pcbnew.new_INPUTSTREAM_LINE_READER(aStream, aSource))
1978 __swig_destroy__ = _pcbnew.delete_INPUTSTREAM_LINE_READER
1979
1980# Register INPUTSTREAM_LINE_READER in _pcbnew:
1981_pcbnew.INPUTSTREAM_LINE_READER_swigregister(INPUTSTREAM_LINE_READER)
1982OUTPUTFMTBUFZ = _pcbnew.OUTPUTFMTBUFZ
1983
1985 r"""Proxy of C++ OUTPUTFORMATTER class."""
1986
1987 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1988
1989 def __init__(self, *args, **kwargs):
1990 raise AttributeError("No constructor defined - class is abstract")
1991 __repr__ = _swig_repr
1992 __swig_destroy__ = _pcbnew.delete_OUTPUTFORMATTER
1993
1994 def Print(self, *args):
1995 r"""
1996 Print(OUTPUTFORMATTER self, int nestLevel, char const * fmt) -> int
1997 Print(OUTPUTFORMATTER self, char const * fmt) -> int
1998 """
1999 return _pcbnew.OUTPUTFORMATTER_Print(self, *args)
2000
2001 def GetQuoteChar(self, wrapee):
2002 r"""GetQuoteChar(OUTPUTFORMATTER self, char const * wrapee) -> char const *"""
2003 return _pcbnew.OUTPUTFORMATTER_GetQuoteChar(self, wrapee)
2004
2005 def Quotes(self, aWrapee):
2006 r"""Quotes(OUTPUTFORMATTER self, string aWrapee) -> string"""
2007 return _pcbnew.OUTPUTFORMATTER_Quotes(self, aWrapee)
2008
2009 def Quotew(self, aWrapee):
2010 r"""Quotew(OUTPUTFORMATTER self, wxString aWrapee) -> string"""
2011 return _pcbnew.OUTPUTFORMATTER_Quotew(self, aWrapee)
2012
2013 def Finish(self):
2014 r"""Finish(OUTPUTFORMATTER self) -> bool"""
2015 return _pcbnew.OUTPUTFORMATTER_Finish(self)
2016
2017# Register OUTPUTFORMATTER in _pcbnew:
2018_pcbnew.OUTPUTFORMATTER_swigregister(OUTPUTFORMATTER)
2020 r"""Proxy of C++ STRING_FORMATTER class."""
2021
2022 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2023 __repr__ = _swig_repr
2024
2025 def __init__(self, *args):
2026 r"""__init__(STRING_FORMATTER self, int aReserve=500, char aQuoteChar='\"') -> STRING_FORMATTER"""
2027 _pcbnew.STRING_FORMATTER_swiginit(self, _pcbnew.new_STRING_FORMATTER(*args))
2028
2029 def Clear(self):
2030 r"""Clear(STRING_FORMATTER self)"""
2031 return _pcbnew.STRING_FORMATTER_Clear(self)
2032
2033 def StripUseless(self):
2034 r"""StripUseless(STRING_FORMATTER self)"""
2035 return _pcbnew.STRING_FORMATTER_StripUseless(self)
2036
2037 def GetString(self):
2038 r"""GetString(STRING_FORMATTER self) -> string"""
2039 return _pcbnew.STRING_FORMATTER_GetString(self)
2040 __swig_destroy__ = _pcbnew.delete_STRING_FORMATTER
2041
2042# Register STRING_FORMATTER in _pcbnew:
2043_pcbnew.STRING_FORMATTER_swigregister(STRING_FORMATTER)
2045 r"""Proxy of C++ FILE_OUTPUTFORMATTER class."""
2046
2047 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2048 __repr__ = _swig_repr
2049
2050 def __init__(self, *args):
2051 r"""__init__(FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> FILE_OUTPUTFORMATTER"""
2052 _pcbnew.FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_FILE_OUTPUTFORMATTER(*args))
2053 __swig_destroy__ = _pcbnew.delete_FILE_OUTPUTFORMATTER
2054
2055# Register FILE_OUTPUTFORMATTER in _pcbnew:
2056_pcbnew.FILE_OUTPUTFORMATTER_swigregister(FILE_OUTPUTFORMATTER)
2058 r"""Proxy of C++ PRETTIFIED_FILE_OUTPUTFORMATTER class."""
2059
2060 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2061 __repr__ = _swig_repr
2062
2063 def __init__(self, *args):
2064 r"""__init__(PRETTIFIED_FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> PRETTIFIED_FILE_OUTPUTFORMATTER"""
2065 _pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_PRETTIFIED_FILE_OUTPUTFORMATTER(*args))
2066 __swig_destroy__ = _pcbnew.delete_PRETTIFIED_FILE_OUTPUTFORMATTER
2067
2068# Register PRETTIFIED_FILE_OUTPUTFORMATTER in _pcbnew:
2069_pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swigregister(PRETTIFIED_FILE_OUTPUTFORMATTER)
2071 r"""Proxy of C++ TITLE_BLOCK class."""
2072
2073 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2074 __repr__ = _swig_repr
2075
2076 def __init__(self):
2077 r"""__init__(TITLE_BLOCK self) -> TITLE_BLOCK"""
2078 _pcbnew.TITLE_BLOCK_swiginit(self, _pcbnew.new_TITLE_BLOCK())
2079 __swig_destroy__ = _pcbnew.delete_TITLE_BLOCK
2080
2081 def SetTitle(self, aTitle):
2082 r"""SetTitle(TITLE_BLOCK self, wxString aTitle)"""
2083 return _pcbnew.TITLE_BLOCK_SetTitle(self, aTitle)
2084
2085 def GetTitle(self):
2086 r"""GetTitle(TITLE_BLOCK self) -> wxString"""
2087 return _pcbnew.TITLE_BLOCK_GetTitle(self)
2088
2089 def SetDate(self, aDate):
2090 r"""SetDate(TITLE_BLOCK self, wxString aDate)"""
2091 return _pcbnew.TITLE_BLOCK_SetDate(self, aDate)
2092
2093 def GetDate(self):
2094 r"""GetDate(TITLE_BLOCK self) -> wxString"""
2095 return _pcbnew.TITLE_BLOCK_GetDate(self)
2096
2097 def SetRevision(self, aRevision):
2098 r"""SetRevision(TITLE_BLOCK self, wxString aRevision)"""
2099 return _pcbnew.TITLE_BLOCK_SetRevision(self, aRevision)
2100
2101 def GetRevision(self):
2102 r"""GetRevision(TITLE_BLOCK self) -> wxString"""
2103 return _pcbnew.TITLE_BLOCK_GetRevision(self)
2104
2105 def SetCompany(self, aCompany):
2106 r"""SetCompany(TITLE_BLOCK self, wxString aCompany)"""
2107 return _pcbnew.TITLE_BLOCK_SetCompany(self, aCompany)
2108
2109 def GetCompany(self):
2110 r"""GetCompany(TITLE_BLOCK self) -> wxString"""
2111 return _pcbnew.TITLE_BLOCK_GetCompany(self)
2112
2113 def SetComment(self, aIdx, aComment):
2114 r"""SetComment(TITLE_BLOCK self, int aIdx, wxString aComment)"""
2115 return _pcbnew.TITLE_BLOCK_SetComment(self, aIdx, aComment)
2116
2117 def GetComment(self, aIdx):
2118 r"""GetComment(TITLE_BLOCK self, int aIdx) -> wxString"""
2119 return _pcbnew.TITLE_BLOCK_GetComment(self, aIdx)
2120
2121 def Clear(self):
2122 r"""Clear(TITLE_BLOCK self)"""
2123 return _pcbnew.TITLE_BLOCK_Clear(self)
2124
2125 @staticmethod
2127 r"""GetContextualTextVars(wxArrayString * aVars)"""
2128 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2129
2130 def TextVarResolver(self, aToken, aProject, aFlags=0):
2131 r"""TextVarResolver(TITLE_BLOCK self, wxString aToken, PROJECT const * aProject, int aFlags=0) -> bool"""
2132 return _pcbnew.TITLE_BLOCK_TextVarResolver(self, aToken, aProject, aFlags)
2133
2134 def Format(self, aFormatter):
2135 r"""Format(TITLE_BLOCK self, OUTPUTFORMATTER aFormatter)"""
2136 return _pcbnew.TITLE_BLOCK_Format(self, aFormatter)
2137
2138 @staticmethod
2140 r"""GetCurrentDate() -> wxString"""
2141 return _pcbnew.TITLE_BLOCK_GetCurrentDate()
2142
2143# Register TITLE_BLOCK in _pcbnew:
2144_pcbnew.TITLE_BLOCK_swigregister(TITLE_BLOCK)
2145UNSPECIFIED_COLOR = _pcbnew.UNSPECIFIED_COLOR
2146
2147BLACK = _pcbnew.BLACK
2148
2149DARKDARKGRAY = _pcbnew.DARKDARKGRAY
2150
2151DARKGRAY = _pcbnew.DARKGRAY
2152
2153LIGHTGRAY = _pcbnew.LIGHTGRAY
2154
2155WHITE = _pcbnew.WHITE
2156
2157LIGHTYELLOW = _pcbnew.LIGHTYELLOW
2158
2159DARKBLUE = _pcbnew.DARKBLUE
2160
2161DARKGREEN = _pcbnew.DARKGREEN
2162
2163DARKCYAN = _pcbnew.DARKCYAN
2164
2165DARKRED = _pcbnew.DARKRED
2166
2167DARKMAGENTA = _pcbnew.DARKMAGENTA
2168
2169DARKBROWN = _pcbnew.DARKBROWN
2170
2171BLUE = _pcbnew.BLUE
2172
2173GREEN = _pcbnew.GREEN
2174
2175CYAN = _pcbnew.CYAN
2176
2177RED = _pcbnew.RED
2178
2179MAGENTA = _pcbnew.MAGENTA
2180
2181BROWN = _pcbnew.BROWN
2182
2183LIGHTBLUE = _pcbnew.LIGHTBLUE
2184
2185LIGHTGREEN = _pcbnew.LIGHTGREEN
2186
2187LIGHTCYAN = _pcbnew.LIGHTCYAN
2188
2189LIGHTRED = _pcbnew.LIGHTRED
2190
2191LIGHTMAGENTA = _pcbnew.LIGHTMAGENTA
2192
2193YELLOW = _pcbnew.YELLOW
2194
2195PUREBLUE = _pcbnew.PUREBLUE
2196
2197PUREGREEN = _pcbnew.PUREGREEN
2198
2199PURECYAN = _pcbnew.PURECYAN
2200
2201PURERED = _pcbnew.PURERED
2202
2203PUREMAGENTA = _pcbnew.PUREMAGENTA
2204
2205PUREYELLOW = _pcbnew.PUREYELLOW
2206
2207LIGHTERORANGE = _pcbnew.LIGHTERORANGE
2208
2209DARKORANGE = _pcbnew.DARKORANGE
2210
2211ORANGE = _pcbnew.ORANGE
2212
2213LIGHTORANGE = _pcbnew.LIGHTORANGE
2214
2215PUREORANGE = _pcbnew.PUREORANGE
2216
2217NBCOLORS = _pcbnew.NBCOLORS
2218
2219HIGHLIGHT_FLAG = _pcbnew.HIGHLIGHT_FLAG
2220
2221MASKCOLOR = _pcbnew.MASKCOLOR
2222
2224 r"""Proxy of C++ StructColors class."""
2225
2226 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2227 __repr__ = _swig_repr
2228 m_Blue = property(_pcbnew.StructColors_m_Blue_get, _pcbnew.StructColors_m_Blue_set, doc=r"""m_Blue : unsigned char""")
2229 m_Green = property(_pcbnew.StructColors_m_Green_get, _pcbnew.StructColors_m_Green_set, doc=r"""m_Green : unsigned char""")
2230 m_Red = property(_pcbnew.StructColors_m_Red_get, _pcbnew.StructColors_m_Red_set, doc=r"""m_Red : unsigned char""")
2231 m_Numcolor = property(_pcbnew.StructColors_m_Numcolor_get, _pcbnew.StructColors_m_Numcolor_set, doc=r"""m_Numcolor : EDA_COLOR_T""")
2232 m_ColorName = property(_pcbnew.StructColors_m_ColorName_get, _pcbnew.StructColors_m_ColorName_set, doc=r"""m_ColorName : std::string""")
2233 m_LightColor = property(_pcbnew.StructColors_m_LightColor_get, _pcbnew.StructColors_m_LightColor_set, doc=r"""m_LightColor : EDA_COLOR_T""")
2234
2235 def __init__(self):
2236 r"""__init__(StructColors self) -> StructColors"""
2237 _pcbnew.StructColors_swiginit(self, _pcbnew.new_StructColors())
2238 __swig_destroy__ = _pcbnew.delete_StructColors
2239
2240# Register StructColors in _pcbnew:
2241_pcbnew.StructColors_swigregister(StructColors)
2242
2244 r"""colorRefs() -> StructColors"""
2245 return _pcbnew.colorRefs()
2247 r"""Proxy of C++ KIGFX::COLOR4D class."""
2248
2249 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2250 __repr__ = _swig_repr
2251
2252 def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0):
2253 r"""FromCSSRGBA(COLOR4D self, int aRed, int aGreen, int aBlue, double aAlpha=1.0) -> COLOR4D"""
2254 return _pcbnew.COLOR4D_FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha)
2255
2256 def __init__(self, *args):
2257 r"""
2258 __init__(COLOR4D self) -> COLOR4D
2259 __init__(COLOR4D self, double aRed, double aGreen, double aBlue, double aAlpha) -> COLOR4D
2260 __init__(COLOR4D self, EDA_COLOR_T aColor) -> COLOR4D
2261 __init__(COLOR4D self, wxString aColorStr) -> COLOR4D
2262 __init__(COLOR4D self, wxColour const & aColor) -> COLOR4D
2263 """
2264 _pcbnew.COLOR4D_swiginit(self, _pcbnew.new_COLOR4D(*args))
2265
2266 def SetFromWxString(self, aColorString):
2267 r"""SetFromWxString(COLOR4D self, wxString aColorString) -> bool"""
2268 return _pcbnew.COLOR4D_SetFromWxString(self, aColorString)
2269
2270 def ToCSSString(self):
2271 r"""ToCSSString(COLOR4D self) -> wxString"""
2272 return _pcbnew.COLOR4D_ToCSSString(self)
2273
2274 def SetFromHexString(self, aColorString):
2275 r"""SetFromHexString(COLOR4D self, wxString aColorString) -> bool"""
2276 return _pcbnew.COLOR4D_SetFromHexString(self, aColorString)
2277
2278 def ToHexString(self):
2279 r"""ToHexString(COLOR4D self) -> wxString"""
2280 return _pcbnew.COLOR4D_ToHexString(self)
2281
2282 def ToColour(self):
2283 r"""ToColour(COLOR4D self) -> wxColour"""
2284 return _pcbnew.COLOR4D_ToColour(self)
2285
2286 def LegacyMix(self, aColor):
2287 r"""LegacyMix(COLOR4D self, COLOR4D aColor) -> COLOR4D"""
2288 return _pcbnew.COLOR4D_LegacyMix(self, aColor)
2289
2290 def ToHSL(self, aOutHue, aOutSaturation, aOutLightness):
2291 r"""ToHSL(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutLightness)"""
2292 return _pcbnew.COLOR4D_ToHSL(self, aOutHue, aOutSaturation, aOutLightness)
2293
2294 def FromHSL(self, aInHue, aInSaturation, aInLightness):
2295 r"""FromHSL(COLOR4D self, double aInHue, double aInSaturation, double aInLightness)"""
2296 return _pcbnew.COLOR4D_FromHSL(self, aInHue, aInSaturation, aInLightness)
2297
2298 def Brighten(self, aFactor):
2299 r"""Brighten(COLOR4D self, double aFactor) -> COLOR4D"""
2300 return _pcbnew.COLOR4D_Brighten(self, aFactor)
2301
2302 def Darken(self, aFactor):
2303 r"""Darken(COLOR4D self, double aFactor) -> COLOR4D"""
2304 return _pcbnew.COLOR4D_Darken(self, aFactor)
2305
2306 def Invert(self):
2307 r"""Invert(COLOR4D self) -> COLOR4D"""
2308 return _pcbnew.COLOR4D_Invert(self)
2309
2310 def Saturate(self, aFactor):
2311 r"""Saturate(COLOR4D self, double aFactor) -> COLOR4D"""
2312 return _pcbnew.COLOR4D_Saturate(self, aFactor)
2313
2314 def Desaturate(self):
2315 r"""Desaturate(COLOR4D self) -> COLOR4D"""
2316 return _pcbnew.COLOR4D_Desaturate(self)
2317
2318 def Brightened(self, aFactor):
2319 r"""Brightened(COLOR4D self, double aFactor) -> COLOR4D"""
2320 return _pcbnew.COLOR4D_Brightened(self, aFactor)
2321
2322 def Darkened(self, aFactor):
2323 r"""Darkened(COLOR4D self, double aFactor) -> COLOR4D"""
2324 return _pcbnew.COLOR4D_Darkened(self, aFactor)
2325
2326 def Mix(self, aColor, aFactor):
2327 r"""Mix(COLOR4D self, COLOR4D aColor, double aFactor) -> COLOR4D"""
2328 return _pcbnew.COLOR4D_Mix(self, aColor, aFactor)
2329
2330 def WithAlpha(self, aAlpha):
2331 r"""WithAlpha(COLOR4D self, double aAlpha) -> COLOR4D"""
2332 return _pcbnew.COLOR4D_WithAlpha(self, aAlpha)
2333
2334 def Inverted(self):
2335 r"""Inverted(COLOR4D self) -> COLOR4D"""
2336 return _pcbnew.COLOR4D_Inverted(self)
2337
2338 def GetBrightness(self):
2339 r"""GetBrightness(COLOR4D self) -> double"""
2340 return _pcbnew.COLOR4D_GetBrightness(self)
2341
2342 def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False):
2343 r"""ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue, bool aAlwaysDefineHue=False)"""
2344 return _pcbnew.COLOR4D_ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue)
2345
2346 def FromHSV(self, aInH, aInS, aInV):
2347 r"""FromHSV(COLOR4D self, double aInH, double aInS, double aInV)"""
2348 return _pcbnew.COLOR4D_FromHSV(self, aInH, aInS, aInV)
2349
2350 def Distance(self, other):
2351 r"""Distance(COLOR4D self, COLOR4D other) -> double"""
2352 return _pcbnew.COLOR4D_Distance(self, other)
2353
2354 def Compare(self, aRhs):
2355 r"""Compare(COLOR4D self, COLOR4D aRhs) -> int"""
2356 return _pcbnew.COLOR4D_Compare(self, aRhs)
2357
2359 r"""RelativeLuminance(COLOR4D self) -> double"""
2360 return _pcbnew.COLOR4D_RelativeLuminance(self)
2361
2362 @staticmethod
2363 def ContrastRatio(aLeft, aRight):
2364 r"""ContrastRatio(COLOR4D aLeft, COLOR4D aRight) -> double"""
2365 return _pcbnew.COLOR4D_ContrastRatio(aLeft, aRight)
2366
2367 @staticmethod
2368 def FindNearestLegacyColor(aR, aG, aB):
2369 r"""FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2370 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2371 r = property(_pcbnew.COLOR4D_r_get, _pcbnew.COLOR4D_r_set, doc=r"""r : double""")
2372 g = property(_pcbnew.COLOR4D_g_get, _pcbnew.COLOR4D_g_set, doc=r"""g : double""")
2373 b = property(_pcbnew.COLOR4D_b_get, _pcbnew.COLOR4D_b_set, doc=r"""b : double""")
2374 a = property(_pcbnew.COLOR4D_a_get, _pcbnew.COLOR4D_a_set, doc=r"""a : double""")
2375 __swig_destroy__ = _pcbnew.delete_COLOR4D
2376
2377# Register COLOR4D in _pcbnew:
2378_pcbnew.COLOR4D_swigregister(COLOR4D)
2379COLOR4D.UNSPECIFIED = _pcbnew.cvar.COLOR4D_UNSPECIFIED
2380COLOR4D.WHITE = _pcbnew.cvar.COLOR4D_WHITE
2381COLOR4D.BLACK = _pcbnew.cvar.COLOR4D_BLACK
2382COLOR4D.CLEAR = _pcbnew.cvar.COLOR4D_CLEAR
2383
2384
2385def __eq__(lhs, rhs):
2386 r"""__eq__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2387 return _pcbnew.__eq__(lhs, rhs)
2388
2389def __ne__(lhs, rhs):
2390 r"""__ne__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2391 return _pcbnew.__ne__(lhs, rhs)
2392
2393def __lt__(lhs, rhs):
2394 r"""__lt__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2395 return _pcbnew.__lt__(lhs, rhs)
2396
2397def __lshift__(aStream, aColor):
2398 r"""__lshift__(std::ostream & aStream, COLOR4D aColor) -> std::ostream &"""
2399 return _pcbnew.__lshift__(aStream, aColor)
2401 r"""Proxy of C++ MARKER_BASE class."""
2402
2403 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2404
2405 def __init__(self, *args, **kwargs):
2406 raise AttributeError("No constructor defined - class is abstract")
2407 __repr__ = _swig_repr
2408 MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
2409
2410 MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
2411
2412 MARKER_DRC = _pcbnew.MARKER_BASE_MARKER_DRC
2413
2414 MARKER_DRAWING_SHEET = _pcbnew.MARKER_BASE_MARKER_DRAWING_SHEET
2415
2416 MARKER_RATSNEST = _pcbnew.MARKER_BASE_MARKER_RATSNEST
2417
2418 MARKER_PARITY = _pcbnew.MARKER_BASE_MARKER_PARITY
2419
2420 MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
2421
2422 __swig_destroy__ = _pcbnew.delete_MARKER_BASE
2423
2424 def MarkerScale(self):
2425 r"""MarkerScale(MARKER_BASE self) -> int"""
2426 return _pcbnew.MARKER_BASE_MarkerScale(self)
2427
2428 def SetMarkerScale(self, aScale):
2429 r"""SetMarkerScale(MARKER_BASE self, int aScale)"""
2430 return _pcbnew.MARKER_BASE_SetMarkerScale(self, aScale)
2431
2432 def ShapeToPolygon(self, aPolygon, aScale=-1):
2433 r"""ShapeToPolygon(MARKER_BASE self, SHAPE_LINE_CHAIN aPolygon, int aScale=-1)"""
2434 return _pcbnew.MARKER_BASE_ShapeToPolygon(self, aPolygon, aScale)
2435
2436 def PrintMarker(self, aSettings, aOffset):
2437 r"""PrintMarker(MARKER_BASE self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset)"""
2438 return _pcbnew.MARKER_BASE_PrintMarker(self, aSettings, aOffset)
2439
2440 def GetPos(self):
2441 r"""GetPos(MARKER_BASE self) -> VECTOR2I"""
2442 return _pcbnew.MARKER_BASE_GetPos(self)
2443
2444 def GetUUID(self):
2445 r"""GetUUID(MARKER_BASE self) -> KIID"""
2446 return _pcbnew.MARKER_BASE_GetUUID(self)
2447
2448 def SetMarkerType(self, aMarkerType):
2449 r"""SetMarkerType(MARKER_BASE self, enum MARKER_BASE::MARKER_T aMarkerType)"""
2450 return _pcbnew.MARKER_BASE_SetMarkerType(self, aMarkerType)
2451
2452 def GetMarkerType(self):
2453 r"""GetMarkerType(MARKER_BASE self) -> enum MARKER_BASE::MARKER_T"""
2454 return _pcbnew.MARKER_BASE_GetMarkerType(self)
2455
2456 def IsExcluded(self):
2457 r"""IsExcluded(MARKER_BASE self) -> bool"""
2458 return _pcbnew.MARKER_BASE_IsExcluded(self)
2459
2460 def SetExcluded(self, *args):
2461 r"""SetExcluded(MARKER_BASE self, bool aExcluded, wxString aComment=wxEmptyString)"""
2462 return _pcbnew.MARKER_BASE_SetExcluded(self, *args)
2463
2464 def GetComment(self):
2465 r"""GetComment(MARKER_BASE self) -> wxString"""
2466 return _pcbnew.MARKER_BASE_GetComment(self)
2467
2468 def GetSeverity(self):
2469 r"""GetSeverity(MARKER_BASE self) -> SEVERITY"""
2470 return _pcbnew.MARKER_BASE_GetSeverity(self)
2471
2472 def GetRCItem(self):
2473 r"""GetRCItem(MARKER_BASE self) -> std::shared_ptr< RC_ITEM >"""
2474 return _pcbnew.MARKER_BASE_GetRCItem(self)
2475
2476 def HitTestMarker(self, *args):
2477 r"""
2478 HitTestMarker(MARKER_BASE self, VECTOR2I aHitPosition, int aAccuracy) -> bool
2479 HitTestMarker(MARKER_BASE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
2480 """
2481 return _pcbnew.MARKER_BASE_HitTestMarker(self, *args)
2482
2484 r"""GetBoundingBoxMarker(MARKER_BASE self) -> BOX2I"""
2485 return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2486 m_Pos = property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set, doc=r"""m_Pos : VECTOR2I""")
2487
2488# Register MARKER_BASE in _pcbnew:
2489_pcbnew.MARKER_BASE_swigregister(MARKER_BASE)
2490TEXT_MIN_SIZE_MM = _pcbnew.TEXT_MIN_SIZE_MM
2491
2492TEXT_MAX_SIZE_MM = _pcbnew.TEXT_MAX_SIZE_MM
2493
2494DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2495
2497 r"""Proxy of C++ EDA_TEXT class."""
2498
2499 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2500 __repr__ = _swig_repr
2501
2502 def __init__(self, *args):
2503 r"""
2504 __init__(EDA_TEXT self, EDA_IU_SCALE aIuScale, wxString aText=wxEmptyString) -> EDA_TEXT
2505 __init__(EDA_TEXT self, EDA_TEXT aText) -> EDA_TEXT
2506 """
2507 _pcbnew.EDA_TEXT_swiginit(self, _pcbnew.new_EDA_TEXT(*args))
2508 __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2509
2510 def Serialize(self, aContainer):
2511 r"""Serialize(EDA_TEXT self, google::protobuf::Any & aContainer)"""
2512 return _pcbnew.EDA_TEXT_Serialize(self, aContainer)
2513
2514 def Deserialize(self, aContainer):
2515 r"""Deserialize(EDA_TEXT self, google::protobuf::Any const & aContainer) -> bool"""
2516 return _pcbnew.EDA_TEXT_Deserialize(self, aContainer)
2517
2518 def GetText(self):
2519 r"""GetText(EDA_TEXT self) -> wxString"""
2520 return _pcbnew.EDA_TEXT_GetText(self)
2521
2522 def GetShownText(self, aAllowExtraText, aDepth=0):
2523 r"""GetShownText(EDA_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
2524 return _pcbnew.EDA_TEXT_GetShownText(self, aAllowExtraText, aDepth)
2525
2526 def HasTextVars(self):
2527 r"""HasTextVars(EDA_TEXT self) -> bool"""
2528 return _pcbnew.EDA_TEXT_HasTextVars(self)
2529
2530 def SetText(self, aText):
2531 r"""SetText(EDA_TEXT self, wxString aText)"""
2532 return _pcbnew.EDA_TEXT_SetText(self, aText)
2533
2534 def SetTextThickness(self, aWidth):
2535 r"""SetTextThickness(EDA_TEXT self, int aWidth)"""
2536 return _pcbnew.EDA_TEXT_SetTextThickness(self, aWidth)
2537
2539 r"""GetTextThickness(EDA_TEXT self) -> int"""
2540 return _pcbnew.EDA_TEXT_GetTextThickness(self)
2541
2542 def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0):
2543 r"""GetEffectiveTextPenWidth(EDA_TEXT self, int aDefaultPenWidth=0) -> int"""
2544 return _pcbnew.EDA_TEXT_GetEffectiveTextPenWidth(self, aDefaultPenWidth)
2545
2546 def SetTextAngle(self, aAngle):
2547 r"""SetTextAngle(EDA_TEXT self, EDA_ANGLE aAngle)"""
2548 return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2549
2550 def GetTextAngle(self):
2551 r"""GetTextAngle(EDA_TEXT self) -> EDA_ANGLE"""
2552 return _pcbnew.EDA_TEXT_GetTextAngle(self)
2553
2554 def SetTextAngleDegrees(self, aOrientation):
2555 r"""SetTextAngleDegrees(EDA_TEXT self, double aOrientation)"""
2556 return _pcbnew.EDA_TEXT_SetTextAngleDegrees(self, aOrientation)
2557
2559 r"""GetTextAngleDegrees(EDA_TEXT self) -> double"""
2560 return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2561
2562 def SetItalic(self, aItalic):
2563 r"""SetItalic(EDA_TEXT self, bool aItalic)"""
2564 return _pcbnew.EDA_TEXT_SetItalic(self, aItalic)
2565
2566 def SetItalicFlag(self, aItalic):
2567 r"""SetItalicFlag(EDA_TEXT self, bool aItalic)"""
2568 return _pcbnew.EDA_TEXT_SetItalicFlag(self, aItalic)
2569
2570 def IsItalic(self):
2571 r"""IsItalic(EDA_TEXT self) -> bool"""
2572 return _pcbnew.EDA_TEXT_IsItalic(self)
2573
2574 def SetBold(self, aBold):
2575 r"""SetBold(EDA_TEXT self, bool aBold)"""
2576 return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2577
2578 def SetBoldFlag(self, aBold):
2579 r"""SetBoldFlag(EDA_TEXT self, bool aBold)"""
2580 return _pcbnew.EDA_TEXT_SetBoldFlag(self, aBold)
2581
2582 def IsBold(self):
2583 r"""IsBold(EDA_TEXT self) -> bool"""
2584 return _pcbnew.EDA_TEXT_IsBold(self)
2585
2586 def SetVisible(self, aVisible):
2587 r"""SetVisible(EDA_TEXT self, bool aVisible)"""
2588 return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2589
2590 def IsVisible(self):
2591 r"""IsVisible(EDA_TEXT self) -> bool"""
2592 return _pcbnew.EDA_TEXT_IsVisible(self)
2593
2594 def SetMirrored(self, isMirrored):
2595 r"""SetMirrored(EDA_TEXT self, bool isMirrored)"""
2596 return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2597
2598 def IsMirrored(self):
2599 r"""IsMirrored(EDA_TEXT self) -> bool"""
2600 return _pcbnew.EDA_TEXT_IsMirrored(self)
2601
2602 def SetMultilineAllowed(self, aAllow):
2603 r"""SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2604 return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2605
2607 r"""IsMultilineAllowed(EDA_TEXT self) -> bool"""
2608 return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2609
2610 def SetHorizJustify(self, aType):
2611 r"""SetHorizJustify(EDA_TEXT self, GR_TEXT_H_ALIGN_T aType)"""
2612 return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2613
2615 r"""GetHorizJustify(EDA_TEXT self) -> GR_TEXT_H_ALIGN_T"""
2616 return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2617
2618 def SetVertJustify(self, aType):
2619 r"""SetVertJustify(EDA_TEXT self, GR_TEXT_V_ALIGN_T aType)"""
2620 return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2621
2623 r"""GetVertJustify(EDA_TEXT self) -> GR_TEXT_V_ALIGN_T"""
2624 return _pcbnew.EDA_TEXT_GetVertJustify(self)
2625
2626 def SetKeepUpright(self, aKeepUpright):
2627 r"""SetKeepUpright(EDA_TEXT self, bool aKeepUpright)"""
2628 return _pcbnew.EDA_TEXT_SetKeepUpright(self, aKeepUpright)
2629
2630 def IsKeepUpright(self):
2631 r"""IsKeepUpright(EDA_TEXT self) -> bool"""
2632 return _pcbnew.EDA_TEXT_IsKeepUpright(self)
2633
2634 def FlipHJustify(self):
2635 r"""FlipHJustify(EDA_TEXT self)"""
2636 return _pcbnew.EDA_TEXT_FlipHJustify(self)
2637
2638 def SwapAttributes(self, aTradingPartner):
2639 r"""SwapAttributes(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2640 return _pcbnew.EDA_TEXT_SwapAttributes(self, aTradingPartner)
2641
2642 def SwapText(self, aTradingPartner):
2643 r"""SwapText(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2644 return _pcbnew.EDA_TEXT_SwapText(self, aTradingPartner)
2645
2646 def CopyText(self, aSrc):
2647 r"""CopyText(EDA_TEXT self, EDA_TEXT aSrc)"""
2648 return _pcbnew.EDA_TEXT_CopyText(self, aSrc)
2649
2650 def SetAttributes(self, *args):
2651 r"""
2652 SetAttributes(EDA_TEXT self, EDA_TEXT aSrc, bool aSetPosition=True)
2653 SetAttributes(EDA_TEXT self, TEXT_ATTRIBUTES aTextAttrs)
2654 """
2655 return _pcbnew.EDA_TEXT_SetAttributes(self, *args)
2656
2657 def GetAttributes(self):
2658 r"""GetAttributes(EDA_TEXT self) -> TEXT_ATTRIBUTES"""
2659 return _pcbnew.EDA_TEXT_GetAttributes(self)
2660
2661 def Replace(self, aSearchData):
2662 r"""Replace(EDA_TEXT self, EDA_SEARCH_DATA const & aSearchData) -> bool"""
2663 return _pcbnew.EDA_TEXT_Replace(self, aSearchData)
2664
2666 r"""IsDefaultFormatting(EDA_TEXT self) -> bool"""
2667 return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2668
2669 def SetFont(self, aFont):
2670 r"""SetFont(EDA_TEXT self, KIFONT::FONT * aFont)"""
2671 return _pcbnew.EDA_TEXT_SetFont(self, aFont)
2672
2673 def GetFont(self):
2674 r"""GetFont(EDA_TEXT self) -> KIFONT::FONT *"""
2675 return _pcbnew.EDA_TEXT_GetFont(self)
2676
2677 def SetUnresolvedFontName(self, aFontName):
2678 r"""SetUnresolvedFontName(EDA_TEXT self, wxString aFontName)"""
2679 return _pcbnew.EDA_TEXT_SetUnresolvedFontName(self, aFontName)
2680
2681 def ResolveFont(self, aEmbeddedFonts):
2682 r"""ResolveFont(EDA_TEXT self, std::vector< wxString,std::allocator< wxString > > const * aEmbeddedFonts) -> bool"""
2683 return _pcbnew.EDA_TEXT_ResolveFont(self, aEmbeddedFonts)
2684
2685 def GetFontName(self):
2686 r"""GetFontName(EDA_TEXT self) -> wxString"""
2687 return _pcbnew.EDA_TEXT_GetFontName(self)
2688
2689 def SetFontIndex(self, aIdx):
2690 r"""SetFontIndex(EDA_TEXT self, int aIdx)"""
2691 return _pcbnew.EDA_TEXT_SetFontIndex(self, aIdx)
2692
2693 def GetFontIndex(self):
2694 r"""GetFontIndex(EDA_TEXT self) -> int"""
2695 return _pcbnew.EDA_TEXT_GetFontIndex(self)
2696
2697 def SetLineSpacing(self, aLineSpacing):
2698 r"""SetLineSpacing(EDA_TEXT self, double aLineSpacing)"""
2699 return _pcbnew.EDA_TEXT_SetLineSpacing(self, aLineSpacing)
2700
2702 r"""GetLineSpacing(EDA_TEXT self) -> double"""
2703 return _pcbnew.EDA_TEXT_GetLineSpacing(self)
2704
2705 def SetTextSize(self, aNewSize, aEnforceMinTextSize=True):
2706 r"""SetTextSize(EDA_TEXT self, VECTOR2I aNewSize, bool aEnforceMinTextSize=True)"""
2707 return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize, aEnforceMinTextSize)
2708
2709 def GetTextSize(self):
2710 r"""GetTextSize(EDA_TEXT self) -> VECTOR2I"""
2711 return _pcbnew.EDA_TEXT_GetTextSize(self)
2712
2713 def SetTextWidth(self, aWidth):
2714 r"""SetTextWidth(EDA_TEXT self, int aWidth)"""
2715 return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2716
2717 def GetTextWidth(self):
2718 r"""GetTextWidth(EDA_TEXT self) -> int"""
2719 return _pcbnew.EDA_TEXT_GetTextWidth(self)
2720
2721 def SetTextHeight(self, aHeight):
2722 r"""SetTextHeight(EDA_TEXT self, int aHeight)"""
2723 return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2724
2725 def GetTextHeight(self):
2726 r"""GetTextHeight(EDA_TEXT self) -> int"""
2727 return _pcbnew.EDA_TEXT_GetTextHeight(self)
2728
2729 def SetTextColor(self, aColor):
2730 r"""SetTextColor(EDA_TEXT self, COLOR4D aColor)"""
2731 return _pcbnew.EDA_TEXT_SetTextColor(self, aColor)
2732
2733 def GetTextColor(self):
2734 r"""GetTextColor(EDA_TEXT self) -> COLOR4D"""
2735 return _pcbnew.EDA_TEXT_GetTextColor(self)
2736
2737 def SetTextPos(self, aPoint):
2738 r"""SetTextPos(EDA_TEXT self, VECTOR2I aPoint)"""
2739 return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2740
2741 def GetTextPos(self):
2742 r"""GetTextPos(EDA_TEXT self) -> VECTOR2I"""
2743 return _pcbnew.EDA_TEXT_GetTextPos(self)
2744
2745 def SetTextX(self, aX):
2746 r"""SetTextX(EDA_TEXT self, int aX)"""
2747 return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2748
2749 def SetTextY(self, aY):
2750 r"""SetTextY(EDA_TEXT self, int aY)"""
2751 return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2752
2753 def Offset(self, aOffset):
2754 r"""Offset(EDA_TEXT self, VECTOR2I aOffset)"""
2755 return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2756
2757 def Empty(self):
2758 r"""Empty(EDA_TEXT self)"""
2759 return _pcbnew.EDA_TEXT_Empty(self)
2760
2761 @staticmethod
2762 def MapHorizJustify(aHorizJustify):
2763 r"""MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
2764 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
2765
2766 @staticmethod
2767 def MapVertJustify(aVertJustify):
2768 r"""MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
2769 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
2770
2771 def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED):
2772 r"""Print(EDA_TEXT self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset, COLOR4D aColor, OUTLINE_MODE aDisplay_mode=FILLED)"""
2773 return _pcbnew.EDA_TEXT_Print(self, aSettings, aOffset, aColor, aDisplay_mode)
2774
2775 def GetEffectiveTextShape(self, *args):
2776 r"""GetEffectiveTextShape(EDA_TEXT self, bool aTriangulate=True, BOX2I aBBox=BOX2I(), EDA_ANGLE aAngle=ANGLE_0) -> std::shared_ptr< SHAPE_COMPOUND >"""
2777 return _pcbnew.EDA_TEXT_GetEffectiveTextShape(self, *args)
2778
2779 def TextHitTest(self, *args):
2780 r"""
2781 TextHitTest(EDA_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
2782 TextHitTest(EDA_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
2783 """
2784 return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
2785
2786 def GetTextBox(self, aLine=-1):
2787 r"""GetTextBox(EDA_TEXT self, int aLine=-1) -> BOX2I"""
2788 return _pcbnew.EDA_TEXT_GetTextBox(self, aLine)
2789
2790 def GetInterline(self):
2791 r"""GetInterline(EDA_TEXT self) -> int"""
2792 return _pcbnew.EDA_TEXT_GetInterline(self)
2793
2795 r"""GetTextStyleName(EDA_TEXT self) -> wxString"""
2796 return _pcbnew.EDA_TEXT_GetTextStyleName(self)
2797
2798 def GetLinePositions(self, aPositions, aLineCount):
2799 r"""GetLinePositions(EDA_TEXT self, VECTOR_VECTOR2I aPositions, int aLineCount)"""
2800 return _pcbnew.EDA_TEXT_GetLinePositions(self, aPositions, aLineCount)
2801
2802 def Levenshtein(self, aOther):
2803 r"""Levenshtein(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2804 return _pcbnew.EDA_TEXT_Levenshtein(self, aOther)
2805
2806 def Similarity(self, aOther):
2807 r"""Similarity(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2808 return _pcbnew.EDA_TEXT_Similarity(self, aOther)
2809
2810 def Format(self, aFormatter, aControlBits):
2811 r"""Format(EDA_TEXT self, OUTPUTFORMATTER aFormatter, int aControlBits)"""
2812 return _pcbnew.EDA_TEXT_Format(self, aFormatter, aControlBits)
2813
2815 r"""GetDrawRotation(EDA_TEXT self) -> EDA_ANGLE"""
2816 return _pcbnew.EDA_TEXT_GetDrawRotation(self)
2817
2818 def GetDrawPos(self):
2819 r"""GetDrawPos(EDA_TEXT self) -> VECTOR2I"""
2820 return _pcbnew.EDA_TEXT_GetDrawPos(self)
2821
2823 r"""ClearRenderCache(EDA_TEXT self)"""
2824 return _pcbnew.EDA_TEXT_ClearRenderCache(self)
2825
2827 r"""ClearBoundingBoxCache(EDA_TEXT self)"""
2828 return _pcbnew.EDA_TEXT_ClearBoundingBoxCache(self)
2829
2830 def GetRenderCache(self, *args):
2831 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 > > >"""
2832 return _pcbnew.EDA_TEXT_GetRenderCache(self, *args)
2833
2834 def SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset):
2835 r"""SetupRenderCache(EDA_TEXT self, wxString aResolvedText, KIFONT::FONT const * aFont, EDA_ANGLE aAngle, VECTOR2I aOffset)"""
2836 return _pcbnew.EDA_TEXT_SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset)
2837
2838 def AddRenderCacheGlyph(self, aPoly):
2839 r"""AddRenderCacheGlyph(EDA_TEXT self, SHAPE_POLY_SET aPoly)"""
2840 return _pcbnew.EDA_TEXT_AddRenderCacheGlyph(self, aPoly)
2841
2842 def Compare(self, aOther):
2843 r"""Compare(EDA_TEXT self, EDA_TEXT aOther) -> int"""
2844 return _pcbnew.EDA_TEXT_Compare(self, aOther)
2845
2846 def __eq__(self, aRhs):
2847 r"""__eq__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
2848 return _pcbnew.EDA_TEXT___eq__(self, aRhs)
2849
2850 def __lt__(self, aRhs):
2851 r"""__lt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
2852 return _pcbnew.EDA_TEXT___lt__(self, aRhs)
2853
2854 def __gt__(self, aRhs):
2855 r"""__gt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
2856 return _pcbnew.EDA_TEXT___gt__(self, aRhs)
2857
2858 def HasHyperlink(self):
2859 r"""HasHyperlink(EDA_TEXT self) -> bool"""
2860 return _pcbnew.EDA_TEXT_HasHyperlink(self)
2861
2862 def GetHyperlink(self):
2863 r"""GetHyperlink(EDA_TEXT self) -> wxString"""
2864 return _pcbnew.EDA_TEXT_GetHyperlink(self)
2865
2866 def SetHyperlink(self, aLink):
2867 r"""SetHyperlink(EDA_TEXT self, wxString aLink)"""
2868 return _pcbnew.EDA_TEXT_SetHyperlink(self, aLink)
2869
2871 r"""RemoveHyperlink(EDA_TEXT self)"""
2872 return _pcbnew.EDA_TEXT_RemoveHyperlink(self)
2873
2874 @staticmethod
2876 r"""ValidateHyperlink(wxString aURL) -> bool"""
2877 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
2878
2879 @staticmethod
2880 def IsGotoPageHref(aHref, aDestination=None):
2881 r"""IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
2882 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
2883
2884 @staticmethod
2885 def GotoPageHref(aDestination):
2886 r"""GotoPageHref(wxString aDestination) -> wxString"""
2887 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
2888
2889# Register EDA_TEXT in _pcbnew:
2890_pcbnew.EDA_TEXT_swigregister(EDA_TEXT)
2891
2893 r"""GetBuildVersion() -> wxString"""
2894 return _pcbnew.GetBuildVersion()
2895
2897 r"""GetBaseVersion() -> wxString"""
2898 return _pcbnew.GetBaseVersion()
2899
2901 r"""GetPlatformGetBitnessName() -> wxString"""
2902 return _pcbnew.GetPlatformGetBitnessName()
2903
2905 r"""GetSemanticVersion() -> wxString"""
2906 return _pcbnew.GetSemanticVersion()
2907
2909 r"""GetMajorMinorVersion() -> wxString"""
2910 return _pcbnew.GetMajorMinorVersion()
2911
2913 r"""GetMajorMinorPatchVersion() -> wxString"""
2914 return _pcbnew.GetMajorMinorPatchVersion()
2915
2917 r"""GetBuildDate() -> wxString"""
2918 return _pcbnew.GetBuildDate()
2919
2921 r"""GetCommitHash() -> wxString"""
2922 return _pcbnew.GetCommitHash()
2923
2925 r"""GetMajorMinorPatchTuple() -> std::tuple< int,int,int > const &"""
2926 return _pcbnew.GetMajorMinorPatchTuple()
2927
2929 r"""IsNightlyVersion() -> bool"""
2930 return _pcbnew.IsNightlyVersion()
2931
2932def SetOpenGLInfo(aRenderer, aVendor, aVersion):
2933 r"""SetOpenGLInfo(char const * aRenderer, char const * aVendor, char const * aVersion)"""
2934 return _pcbnew.SetOpenGLInfo(aRenderer, aVendor, aVersion)
2935
2936def GetVersionInfoData(aTitle, aHtml=False, aBrief=False):
2937 r"""GetVersionInfoData(wxString aTitle, bool aHtml=False, bool aBrief=False) -> wxString"""
2938 return _pcbnew.GetVersionInfoData(aTitle, aHtml, aBrief)
2939UNDEFINED_LAYER = _pcbnew.UNDEFINED_LAYER
2940
2941UNSELECTED_LAYER = _pcbnew.UNSELECTED_LAYER
2942
2943F_Cu = _pcbnew.F_Cu
2944
2945B_Cu = _pcbnew.B_Cu
2946
2947In1_Cu = _pcbnew.In1_Cu
2948
2949In2_Cu = _pcbnew.In2_Cu
2950
2951In3_Cu = _pcbnew.In3_Cu
2952
2953In4_Cu = _pcbnew.In4_Cu
2954
2955In5_Cu = _pcbnew.In5_Cu
2956
2957In6_Cu = _pcbnew.In6_Cu
2958
2959In7_Cu = _pcbnew.In7_Cu
2960
2961In8_Cu = _pcbnew.In8_Cu
2962
2963In9_Cu = _pcbnew.In9_Cu
2964
2965In10_Cu = _pcbnew.In10_Cu
2966
2967In11_Cu = _pcbnew.In11_Cu
2968
2969In12_Cu = _pcbnew.In12_Cu
2970
2971In13_Cu = _pcbnew.In13_Cu
2972
2973In14_Cu = _pcbnew.In14_Cu
2974
2975In15_Cu = _pcbnew.In15_Cu
2976
2977In16_Cu = _pcbnew.In16_Cu
2978
2979In17_Cu = _pcbnew.In17_Cu
2980
2981In18_Cu = _pcbnew.In18_Cu
2982
2983In19_Cu = _pcbnew.In19_Cu
2984
2985In20_Cu = _pcbnew.In20_Cu
2986
2987In21_Cu = _pcbnew.In21_Cu
2988
2989In22_Cu = _pcbnew.In22_Cu
2990
2991In23_Cu = _pcbnew.In23_Cu
2992
2993In24_Cu = _pcbnew.In24_Cu
2994
2995In25_Cu = _pcbnew.In25_Cu
2996
2997In26_Cu = _pcbnew.In26_Cu
2998
2999In27_Cu = _pcbnew.In27_Cu
3000
3001In28_Cu = _pcbnew.In28_Cu
3002
3003In29_Cu = _pcbnew.In29_Cu
3004
3005In30_Cu = _pcbnew.In30_Cu
3006
3007F_Mask = _pcbnew.F_Mask
3008
3009B_Mask = _pcbnew.B_Mask
3010
3011F_SilkS = _pcbnew.F_SilkS
3012
3013B_SilkS = _pcbnew.B_SilkS
3014
3015F_Adhes = _pcbnew.F_Adhes
3016
3017B_Adhes = _pcbnew.B_Adhes
3018
3019F_Paste = _pcbnew.F_Paste
3020
3021B_Paste = _pcbnew.B_Paste
3022
3023Dwgs_User = _pcbnew.Dwgs_User
3024
3025Cmts_User = _pcbnew.Cmts_User
3026
3027Eco1_User = _pcbnew.Eco1_User
3028
3029Eco2_User = _pcbnew.Eco2_User
3030
3031Edge_Cuts = _pcbnew.Edge_Cuts
3032
3033Margin = _pcbnew.Margin
3034
3035B_CrtYd = _pcbnew.B_CrtYd
3036
3037F_CrtYd = _pcbnew.F_CrtYd
3038
3039B_Fab = _pcbnew.B_Fab
3040
3041F_Fab = _pcbnew.F_Fab
3042
3043Rescue = _pcbnew.Rescue
3044
3045User_1 = _pcbnew.User_1
3046
3047User_2 = _pcbnew.User_2
3048
3049User_3 = _pcbnew.User_3
3050
3051User_4 = _pcbnew.User_4
3052
3053User_5 = _pcbnew.User_5
3054
3055User_6 = _pcbnew.User_6
3056
3057User_7 = _pcbnew.User_7
3058
3059User_8 = _pcbnew.User_8
3060
3061User_9 = _pcbnew.User_9
3062
3063User_10 = _pcbnew.User_10
3064
3065User_11 = _pcbnew.User_11
3066
3067User_12 = _pcbnew.User_12
3068
3069User_13 = _pcbnew.User_13
3070
3071User_14 = _pcbnew.User_14
3072
3073User_15 = _pcbnew.User_15
3074
3075User_16 = _pcbnew.User_16
3076
3077User_17 = _pcbnew.User_17
3078
3079User_18 = _pcbnew.User_18
3080
3081User_19 = _pcbnew.User_19
3082
3083User_20 = _pcbnew.User_20
3084
3085User_21 = _pcbnew.User_21
3086
3087User_22 = _pcbnew.User_22
3088
3089User_23 = _pcbnew.User_23
3090
3091User_24 = _pcbnew.User_24
3092
3093User_25 = _pcbnew.User_25
3094
3095User_26 = _pcbnew.User_26
3096
3097User_27 = _pcbnew.User_27
3098
3099User_28 = _pcbnew.User_28
3100
3101User_29 = _pcbnew.User_29
3102
3103User_30 = _pcbnew.User_30
3104
3105User_31 = _pcbnew.User_31
3106
3107User_32 = _pcbnew.User_32
3108
3109User_33 = _pcbnew.User_33
3110
3111User_34 = _pcbnew.User_34
3112
3113User_35 = _pcbnew.User_35
3114
3115User_36 = _pcbnew.User_36
3116
3117User_37 = _pcbnew.User_37
3118
3119User_38 = _pcbnew.User_38
3120
3121User_39 = _pcbnew.User_39
3122
3123User_40 = _pcbnew.User_40
3124
3125User_41 = _pcbnew.User_41
3126
3127User_42 = _pcbnew.User_42
3128
3129User_43 = _pcbnew.User_43
3130
3131User_44 = _pcbnew.User_44
3132
3133User_45 = _pcbnew.User_45
3134
3135PCB_LAYER_ID_COUNT = _pcbnew.PCB_LAYER_ID_COUNT
3136
3137MAX_CU_LAYERS = _pcbnew.MAX_CU_LAYERS
3138
3139MAX_USER_DEFINED_LAYERS = _pcbnew.MAX_USER_DEFINED_LAYERS
3140
3141FLASHING_DEFAULT = _pcbnew.FLASHING_DEFAULT
3142
3143FLASHING_ALWAYS_FLASHED = _pcbnew.FLASHING_ALWAYS_FLASHED
3144
3145FLASHING_NEVER_FLASHED = _pcbnew.FLASHING_NEVER_FLASHED
3146
3147NETNAMES_LAYER_ID_START = _pcbnew.NETNAMES_LAYER_ID_START
3148
3149NETNAMES_LAYER_ID_RESERVED = _pcbnew.NETNAMES_LAYER_ID_RESERVED
3150
3151LAYER_PAD_FR_NETNAMES = _pcbnew.LAYER_PAD_FR_NETNAMES
3152
3153LAYER_PAD_BK_NETNAMES = _pcbnew.LAYER_PAD_BK_NETNAMES
3154
3155LAYER_PAD_NETNAMES = _pcbnew.LAYER_PAD_NETNAMES
3156
3157LAYER_VIA_NETNAMES = _pcbnew.LAYER_VIA_NETNAMES
3158
3159NETNAMES_LAYER_ID_END = _pcbnew.NETNAMES_LAYER_ID_END
3160
3161GAL_UI_LAYER_COUNT = _pcbnew.GAL_UI_LAYER_COUNT
3162
3163GAL_LAYER_ID_START = _pcbnew.GAL_LAYER_ID_START
3164
3165LAYER_VIAS = _pcbnew.LAYER_VIAS
3166
3167LAYER_VIA_MICROVIA = _pcbnew.LAYER_VIA_MICROVIA
3168
3169LAYER_VIA_BBLIND = _pcbnew.LAYER_VIA_BBLIND
3170
3171LAYER_VIA_THROUGH = _pcbnew.LAYER_VIA_THROUGH
3172
3173LAYER_NON_PLATEDHOLES = _pcbnew.LAYER_NON_PLATEDHOLES
3174
3175LAYER_FP_TEXT = _pcbnew.LAYER_FP_TEXT
3176
3177LAYER_ANCHOR = _pcbnew.LAYER_ANCHOR
3178
3179LAYER_RATSNEST = _pcbnew.LAYER_RATSNEST
3180
3181LAYER_GRID = _pcbnew.LAYER_GRID
3182
3183LAYER_GRID_AXES = _pcbnew.LAYER_GRID_AXES
3184
3185LAYER_FOOTPRINTS_FR = _pcbnew.LAYER_FOOTPRINTS_FR
3186
3187LAYER_FOOTPRINTS_BK = _pcbnew.LAYER_FOOTPRINTS_BK
3188
3189LAYER_FP_VALUES = _pcbnew.LAYER_FP_VALUES
3190
3191LAYER_FP_REFERENCES = _pcbnew.LAYER_FP_REFERENCES
3192
3193LAYER_TRACKS = _pcbnew.LAYER_TRACKS
3194
3195LAYER_PAD_PLATEDHOLES = _pcbnew.LAYER_PAD_PLATEDHOLES
3196
3197LAYER_VIA_HOLES = _pcbnew.LAYER_VIA_HOLES
3198
3199LAYER_DRC_ERROR = _pcbnew.LAYER_DRC_ERROR
3200
3201LAYER_DRAWINGSHEET = _pcbnew.LAYER_DRAWINGSHEET
3202
3203LAYER_GP_OVERLAY = _pcbnew.LAYER_GP_OVERLAY
3204
3205LAYER_SELECT_OVERLAY = _pcbnew.LAYER_SELECT_OVERLAY
3206
3207LAYER_PCB_BACKGROUND = _pcbnew.LAYER_PCB_BACKGROUND
3208
3209LAYER_CURSOR = _pcbnew.LAYER_CURSOR
3210
3211LAYER_AUX_ITEMS = _pcbnew.LAYER_AUX_ITEMS
3212
3213LAYER_DRAW_BITMAPS = _pcbnew.LAYER_DRAW_BITMAPS
3214
3215GAL_LAYER_ID_BITMASK_END = _pcbnew.GAL_LAYER_ID_BITMASK_END
3216
3217LAYER_PADS = _pcbnew.LAYER_PADS
3218
3219LAYER_ZONES = _pcbnew.LAYER_ZONES
3220
3221LAYER_PAD_HOLEWALLS = _pcbnew.LAYER_PAD_HOLEWALLS
3222
3223LAYER_VIA_HOLEWALLS = _pcbnew.LAYER_VIA_HOLEWALLS
3224
3225LAYER_DRC_WARNING = _pcbnew.LAYER_DRC_WARNING
3226
3227LAYER_DRC_EXCLUSION = _pcbnew.LAYER_DRC_EXCLUSION
3228
3229LAYER_MARKER_SHADOWS = _pcbnew.LAYER_MARKER_SHADOWS
3230
3231LAYER_LOCKED_ITEM_SHADOW = _pcbnew.LAYER_LOCKED_ITEM_SHADOW
3232
3233LAYER_CONFLICTS_SHADOW = _pcbnew.LAYER_CONFLICTS_SHADOW
3234
3235LAYER_SHAPES = _pcbnew.LAYER_SHAPES
3236
3237LAYER_DRC_SHAPE1 = _pcbnew.LAYER_DRC_SHAPE1
3238
3239LAYER_DRC_SHAPE2 = _pcbnew.LAYER_DRC_SHAPE2
3240
3241LAYER_DRAWINGSHEET_PAGE1 = _pcbnew.LAYER_DRAWINGSHEET_PAGE1
3242
3243LAYER_DRAWINGSHEET_PAGEn = _pcbnew.LAYER_DRAWINGSHEET_PAGEn
3244
3245LAYER_PAGE_LIMITS = _pcbnew.LAYER_PAGE_LIMITS
3246
3247LAYER_ZONE_START = _pcbnew.LAYER_ZONE_START
3248
3249LAYER_ZONE_END = _pcbnew.LAYER_ZONE_END
3250
3251LAYER_PAD_COPPER_START = _pcbnew.LAYER_PAD_COPPER_START
3252
3253LAYER_PAD_COPPER_END = _pcbnew.LAYER_PAD_COPPER_END
3254
3255LAYER_VIA_COPPER_START = _pcbnew.LAYER_VIA_COPPER_START
3256
3257LAYER_VIA_COPPER_END = _pcbnew.LAYER_VIA_COPPER_END
3258
3259LAYER_CLEARANCE_START = _pcbnew.LAYER_CLEARANCE_START
3260
3261LAYER_CLEARANCE_END = _pcbnew.LAYER_CLEARANCE_END
3262
3263LAYER_BITMAP_START = _pcbnew.LAYER_BITMAP_START
3264
3265LAYER_BITMAP_END = _pcbnew.LAYER_BITMAP_END
3266
3267LAYER_UI_START = _pcbnew.LAYER_UI_START
3268
3269LAYER_UI_END = _pcbnew.LAYER_UI_END
3270
3271GAL_LAYER_ID_END = _pcbnew.GAL_LAYER_ID_END
3272
3273
3274def ToGalLayer(aInteger):
3275 r"""ToGalLayer(int aInteger) -> GAL_LAYER_ID"""
3276 return _pcbnew.ToGalLayer(aInteger)
3278 r"""Proxy of C++ GAL_SET class."""
3279
3280 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3281 __repr__ = _swig_repr
3282
3283 def __init__(self, *args):
3284 r"""
3285 __init__(GAL_SET self) -> GAL_SET
3286 __init__(GAL_SET self, GAL_SET aOther) -> GAL_SET
3287 __init__(GAL_SET self, GAL_LAYER_ID const * aArray, unsigned int aCount) -> GAL_SET
3288 """
3289 _pcbnew.GAL_SET_swiginit(self, _pcbnew.new_GAL_SET(*args))
3290
3291 def set(self, *args):
3292 r"""
3293 set(GAL_SET self) -> GAL_SET
3294 set(GAL_SET self, int aPos, bool aVal=True) -> GAL_SET
3295 set(GAL_SET self, GAL_LAYER_ID aPos, bool aVal=True) -> GAL_SET
3296 """
3297 return _pcbnew.GAL_SET_set(self, *args)
3298
3299 def Contains(self, aPos):
3300 r"""Contains(GAL_SET self, GAL_LAYER_ID aPos) -> bool"""
3301 return _pcbnew.GAL_SET_Contains(self, aPos)
3302
3303 def Seq(self):
3304 r"""Seq(GAL_SET self) -> std::vector< GAL_LAYER_ID,std::allocator< GAL_LAYER_ID > >"""
3305 return _pcbnew.GAL_SET_Seq(self)
3306
3307 @staticmethod
3309 r"""DefaultVisible() -> GAL_SET"""
3310 return _pcbnew.GAL_SET_DefaultVisible()
3311 __swig_destroy__ = _pcbnew.delete_GAL_SET
3312
3313# Register GAL_SET in _pcbnew:
3314_pcbnew.GAL_SET_swigregister(GAL_SET)
3315PCBNEW_LAYER_ID_START = cvar.PCBNEW_LAYER_ID_START
3316GAL_LAYER_ID_COUNT = cvar.GAL_LAYER_ID_COUNT
3317
3318SCH_LAYER_ID_START = _pcbnew.SCH_LAYER_ID_START
3319
3320LAYER_WIRE = _pcbnew.LAYER_WIRE
3321
3322LAYER_BUS = _pcbnew.LAYER_BUS
3323
3324LAYER_JUNCTION = _pcbnew.LAYER_JUNCTION
3325
3326LAYER_LOCLABEL = _pcbnew.LAYER_LOCLABEL
3327
3328LAYER_GLOBLABEL = _pcbnew.LAYER_GLOBLABEL
3329
3330LAYER_HIERLABEL = _pcbnew.LAYER_HIERLABEL
3331
3332LAYER_PINNUM = _pcbnew.LAYER_PINNUM
3333
3334LAYER_PINNAM = _pcbnew.LAYER_PINNAM
3335
3336LAYER_REFERENCEPART = _pcbnew.LAYER_REFERENCEPART
3337
3338LAYER_VALUEPART = _pcbnew.LAYER_VALUEPART
3339
3340LAYER_FIELDS = _pcbnew.LAYER_FIELDS
3341
3342LAYER_INTERSHEET_REFS = _pcbnew.LAYER_INTERSHEET_REFS
3343
3344LAYER_NETCLASS_REFS = _pcbnew.LAYER_NETCLASS_REFS
3345
3346LAYER_RULE_AREAS = _pcbnew.LAYER_RULE_AREAS
3347
3348LAYER_DEVICE = _pcbnew.LAYER_DEVICE
3349
3350LAYER_NOTES = _pcbnew.LAYER_NOTES
3351
3352LAYER_PRIVATE_NOTES = _pcbnew.LAYER_PRIVATE_NOTES
3353
3354LAYER_NOTES_BACKGROUND = _pcbnew.LAYER_NOTES_BACKGROUND
3355
3356LAYER_PIN = _pcbnew.LAYER_PIN
3357
3358LAYER_SHEET = _pcbnew.LAYER_SHEET
3359
3360LAYER_SHEETNAME = _pcbnew.LAYER_SHEETNAME
3361
3362LAYER_SHEETFILENAME = _pcbnew.LAYER_SHEETFILENAME
3363
3364LAYER_SHEETFIELDS = _pcbnew.LAYER_SHEETFIELDS
3365
3366LAYER_SHEETLABEL = _pcbnew.LAYER_SHEETLABEL
3367
3368LAYER_NOCONNECT = _pcbnew.LAYER_NOCONNECT
3369
3370LAYER_DANGLING = _pcbnew.LAYER_DANGLING
3371
3372LAYER_DNP_MARKER = _pcbnew.LAYER_DNP_MARKER
3373
3374LAYER_ERC_WARN = _pcbnew.LAYER_ERC_WARN
3375
3376LAYER_ERC_ERR = _pcbnew.LAYER_ERC_ERR
3377
3378LAYER_ERC_EXCLUSION = _pcbnew.LAYER_ERC_EXCLUSION
3379
3380LAYER_EXCLUDED_FROM_SIM = _pcbnew.LAYER_EXCLUDED_FROM_SIM
3381
3382LAYER_SHAPES_BACKGROUND = _pcbnew.LAYER_SHAPES_BACKGROUND
3383
3384LAYER_DEVICE_BACKGROUND = _pcbnew.LAYER_DEVICE_BACKGROUND
3385
3386LAYER_SHEET_BACKGROUND = _pcbnew.LAYER_SHEET_BACKGROUND
3387
3388LAYER_SCHEMATIC_GRID = _pcbnew.LAYER_SCHEMATIC_GRID
3389
3390LAYER_SCHEMATIC_GRID_AXES = _pcbnew.LAYER_SCHEMATIC_GRID_AXES
3391
3392LAYER_SCHEMATIC_BACKGROUND = _pcbnew.LAYER_SCHEMATIC_BACKGROUND
3393
3394LAYER_SCHEMATIC_CURSOR = _pcbnew.LAYER_SCHEMATIC_CURSOR
3395
3396LAYER_HOVERED = _pcbnew.LAYER_HOVERED
3397
3398LAYER_BRIGHTENED = _pcbnew.LAYER_BRIGHTENED
3399
3400LAYER_HIDDEN = _pcbnew.LAYER_HIDDEN
3401
3402LAYER_NET_COLOR_HIGHLIGHT = _pcbnew.LAYER_NET_COLOR_HIGHLIGHT
3403
3404LAYER_SELECTION_SHADOWS = _pcbnew.LAYER_SELECTION_SHADOWS
3405
3406LAYER_SCHEMATIC_DRAWINGSHEET = _pcbnew.LAYER_SCHEMATIC_DRAWINGSHEET
3407
3408LAYER_SCHEMATIC_PAGE_LIMITS = _pcbnew.LAYER_SCHEMATIC_PAGE_LIMITS
3409
3410LAYER_BUS_JUNCTION = _pcbnew.LAYER_BUS_JUNCTION
3411
3412LAYER_SCHEMATIC_AUX_ITEMS = _pcbnew.LAYER_SCHEMATIC_AUX_ITEMS
3413
3414LAYER_SCHEMATIC_ANCHOR = _pcbnew.LAYER_SCHEMATIC_ANCHOR
3415
3416LAYER_OP_VOLTAGES = _pcbnew.LAYER_OP_VOLTAGES
3417
3418LAYER_OP_CURRENTS = _pcbnew.LAYER_OP_CURRENTS
3419
3420SCH_LAYER_ID_END = _pcbnew.SCH_LAYER_ID_END
3421
3422GERBVIEW_LAYER_ID_START = _pcbnew.GERBVIEW_LAYER_ID_START
3423
3424GERBVIEW_LAYER_ID_RESERVED = _pcbnew.GERBVIEW_LAYER_ID_RESERVED
3425
3426LAYER_DCODES = _pcbnew.LAYER_DCODES
3427
3428LAYER_NEGATIVE_OBJECTS = _pcbnew.LAYER_NEGATIVE_OBJECTS
3429
3430LAYER_GERBVIEW_GRID = _pcbnew.LAYER_GERBVIEW_GRID
3431
3432LAYER_GERBVIEW_AXES = _pcbnew.LAYER_GERBVIEW_AXES
3433
3434LAYER_GERBVIEW_BACKGROUND = _pcbnew.LAYER_GERBVIEW_BACKGROUND
3435
3436LAYER_GERBVIEW_DRAWINGSHEET = _pcbnew.LAYER_GERBVIEW_DRAWINGSHEET
3437
3438LAYER_GERBVIEW_PAGE_LIMITS = _pcbnew.LAYER_GERBVIEW_PAGE_LIMITS
3439
3440GERBVIEW_LAYER_ID_END = _pcbnew.GERBVIEW_LAYER_ID_END
3441
3442LAYER_3D_START = _pcbnew.LAYER_3D_START
3443
3444LAYER_3D_BACKGROUND_BOTTOM = _pcbnew.LAYER_3D_BACKGROUND_BOTTOM
3445
3446LAYER_3D_BACKGROUND_TOP = _pcbnew.LAYER_3D_BACKGROUND_TOP
3447
3448LAYER_3D_BOARD = _pcbnew.LAYER_3D_BOARD
3449
3450LAYER_3D_COPPER_TOP = _pcbnew.LAYER_3D_COPPER_TOP
3451
3452LAYER_3D_COPPER_BOTTOM = _pcbnew.LAYER_3D_COPPER_BOTTOM
3453
3454LAYER_3D_SILKSCREEN_BOTTOM = _pcbnew.LAYER_3D_SILKSCREEN_BOTTOM
3455
3456LAYER_3D_SILKSCREEN_TOP = _pcbnew.LAYER_3D_SILKSCREEN_TOP
3457
3458LAYER_3D_SOLDERMASK_BOTTOM = _pcbnew.LAYER_3D_SOLDERMASK_BOTTOM
3459
3460LAYER_3D_SOLDERMASK_TOP = _pcbnew.LAYER_3D_SOLDERMASK_TOP
3461
3462LAYER_3D_SOLDERPASTE = _pcbnew.LAYER_3D_SOLDERPASTE
3463
3464LAYER_3D_ADHESIVE = _pcbnew.LAYER_3D_ADHESIVE
3465
3466LAYER_3D_USER_COMMENTS = _pcbnew.LAYER_3D_USER_COMMENTS
3467
3468LAYER_3D_USER_DRAWINGS = _pcbnew.LAYER_3D_USER_DRAWINGS
3469
3470LAYER_3D_USER_ECO1 = _pcbnew.LAYER_3D_USER_ECO1
3471
3472LAYER_3D_USER_ECO2 = _pcbnew.LAYER_3D_USER_ECO2
3473
3474LAYER_3D_USER_1 = _pcbnew.LAYER_3D_USER_1
3475
3476LAYER_3D_USER_2 = _pcbnew.LAYER_3D_USER_2
3477
3478LAYER_3D_USER_3 = _pcbnew.LAYER_3D_USER_3
3479
3480LAYER_3D_USER_4 = _pcbnew.LAYER_3D_USER_4
3481
3482LAYER_3D_USER_5 = _pcbnew.LAYER_3D_USER_5
3483
3484LAYER_3D_USER_6 = _pcbnew.LAYER_3D_USER_6
3485
3486LAYER_3D_USER_7 = _pcbnew.LAYER_3D_USER_7
3487
3488LAYER_3D_USER_8 = _pcbnew.LAYER_3D_USER_8
3489
3490LAYER_3D_USER_9 = _pcbnew.LAYER_3D_USER_9
3491
3492LAYER_3D_USER_10 = _pcbnew.LAYER_3D_USER_10
3493
3494LAYER_3D_USER_11 = _pcbnew.LAYER_3D_USER_11
3495
3496LAYER_3D_USER_12 = _pcbnew.LAYER_3D_USER_12
3497
3498LAYER_3D_USER_13 = _pcbnew.LAYER_3D_USER_13
3499
3500LAYER_3D_USER_14 = _pcbnew.LAYER_3D_USER_14
3501
3502LAYER_3D_USER_15 = _pcbnew.LAYER_3D_USER_15
3503
3504LAYER_3D_USER_16 = _pcbnew.LAYER_3D_USER_16
3505
3506LAYER_3D_USER_17 = _pcbnew.LAYER_3D_USER_17
3507
3508LAYER_3D_USER_18 = _pcbnew.LAYER_3D_USER_18
3509
3510LAYER_3D_USER_19 = _pcbnew.LAYER_3D_USER_19
3511
3512LAYER_3D_USER_20 = _pcbnew.LAYER_3D_USER_20
3513
3514LAYER_3D_USER_21 = _pcbnew.LAYER_3D_USER_21
3515
3516LAYER_3D_USER_22 = _pcbnew.LAYER_3D_USER_22
3517
3518LAYER_3D_USER_23 = _pcbnew.LAYER_3D_USER_23
3519
3520LAYER_3D_USER_24 = _pcbnew.LAYER_3D_USER_24
3521
3522LAYER_3D_USER_25 = _pcbnew.LAYER_3D_USER_25
3523
3524LAYER_3D_USER_26 = _pcbnew.LAYER_3D_USER_26
3525
3526LAYER_3D_USER_27 = _pcbnew.LAYER_3D_USER_27
3527
3528LAYER_3D_USER_28 = _pcbnew.LAYER_3D_USER_28
3529
3530LAYER_3D_USER_29 = _pcbnew.LAYER_3D_USER_29
3531
3532LAYER_3D_USER_30 = _pcbnew.LAYER_3D_USER_30
3533
3534LAYER_3D_USER_31 = _pcbnew.LAYER_3D_USER_31
3535
3536LAYER_3D_USER_32 = _pcbnew.LAYER_3D_USER_32
3537
3538LAYER_3D_USER_33 = _pcbnew.LAYER_3D_USER_33
3539
3540LAYER_3D_USER_34 = _pcbnew.LAYER_3D_USER_34
3541
3542LAYER_3D_USER_35 = _pcbnew.LAYER_3D_USER_35
3543
3544LAYER_3D_USER_36 = _pcbnew.LAYER_3D_USER_36
3545
3546LAYER_3D_USER_37 = _pcbnew.LAYER_3D_USER_37
3547
3548LAYER_3D_USER_38 = _pcbnew.LAYER_3D_USER_38
3549
3550LAYER_3D_USER_39 = _pcbnew.LAYER_3D_USER_39
3551
3552LAYER_3D_USER_40 = _pcbnew.LAYER_3D_USER_40
3553
3554LAYER_3D_USER_41 = _pcbnew.LAYER_3D_USER_41
3555
3556LAYER_3D_USER_42 = _pcbnew.LAYER_3D_USER_42
3557
3558LAYER_3D_USER_43 = _pcbnew.LAYER_3D_USER_43
3559
3560LAYER_3D_USER_44 = _pcbnew.LAYER_3D_USER_44
3561
3562LAYER_3D_USER_45 = _pcbnew.LAYER_3D_USER_45
3563
3564LAYER_3D_TH_MODELS = _pcbnew.LAYER_3D_TH_MODELS
3565
3566LAYER_3D_SMD_MODELS = _pcbnew.LAYER_3D_SMD_MODELS
3567
3568LAYER_3D_VIRTUAL_MODELS = _pcbnew.LAYER_3D_VIRTUAL_MODELS
3569
3570LAYER_3D_MODELS_NOT_IN_POS = _pcbnew.LAYER_3D_MODELS_NOT_IN_POS
3571
3572LAYER_3D_MODELS_MARKED_DNP = _pcbnew.LAYER_3D_MODELS_MARKED_DNP
3573
3574LAYER_3D_AXES = _pcbnew.LAYER_3D_AXES
3575
3576LAYER_3D_BOUNDING_BOXES = _pcbnew.LAYER_3D_BOUNDING_BOXES
3577
3578LAYER_3D_OFF_BOARD_SILK = _pcbnew.LAYER_3D_OFF_BOARD_SILK
3579
3580LAYER_3D_END = _pcbnew.LAYER_3D_END
3581
3582
3583def LayerName(aLayer):
3584 r"""LayerName(int aLayer) -> wxString"""
3585 return _pcbnew.LayerName(aLayer)
3586
3587def IsValidLayer(aLayerId):
3588 r"""IsValidLayer(int aLayerId) -> bool"""
3589 return _pcbnew.IsValidLayer(aLayerId)
3590
3591def IsPcbLayer(aLayer):
3592 r"""IsPcbLayer(int aLayer) -> bool"""
3593 return _pcbnew.IsPcbLayer(aLayer)
3594
3596 r"""IsExternalCopperLayer(int aLayerId) -> bool"""
3597 return _pcbnew.IsExternalCopperLayer(aLayerId)
3598
3600 r"""IsInnerCopperLayer(int aLayerId) -> bool"""
3601 return _pcbnew.IsInnerCopperLayer(aLayerId)
3602
3603def IsNonCopperLayer(aLayerId):
3604 r"""IsNonCopperLayer(int aLayerId) -> bool"""
3605 return _pcbnew.IsNonCopperLayer(aLayerId)
3606
3607def IsCopperLayer(*args):
3608 r"""
3609 IsCopperLayer(int aLayerId) -> bool
3610 IsCopperLayer(int aLayerId, bool aIncludeSyntheticCopperLayers) -> bool
3611 """
3612 return _pcbnew.IsCopperLayer(*args)
3613
3614def IsViaPadLayer(aLayer):
3615 r"""IsViaPadLayer(int aLayer) -> bool"""
3616 return _pcbnew.IsViaPadLayer(aLayer)
3617
3618def IsHoleLayer(aLayer):
3619 r"""IsHoleLayer(int aLayer) -> bool"""
3620 return _pcbnew.IsHoleLayer(aLayer)
3621
3623 r"""IsSolderMaskLayer(int aLayer) -> bool"""
3624 return _pcbnew.IsSolderMaskLayer(aLayer)
3625
3626def IsUserLayer(aLayerId):
3627 r"""IsUserLayer(PCB_LAYER_ID aLayerId) -> bool"""
3628 return _pcbnew.IsUserLayer(aLayerId)
3629
3630def IsFrontLayer(aLayerId):
3631 r"""IsFrontLayer(PCB_LAYER_ID aLayerId) -> bool"""
3632 return _pcbnew.IsFrontLayer(aLayerId)
3633
3634def IsBackLayer(aLayerId):
3635 r"""IsBackLayer(PCB_LAYER_ID aLayerId) -> bool"""
3636 return _pcbnew.IsBackLayer(aLayerId)
3637
3638def IsCopperLayerLowerThan(aLayerA, aLayerB):
3639 r"""IsCopperLayerLowerThan(PCB_LAYER_ID aLayerA, PCB_LAYER_ID aLayerB) -> bool"""
3640 return _pcbnew.IsCopperLayerLowerThan(aLayerA, aLayerB)
3641
3642def FlipLayer(aLayerId, aCopperLayersCount=0):
3643 r"""FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount=0) -> PCB_LAYER_ID"""
3644 return _pcbnew.FlipLayer(aLayerId, aCopperLayersCount)
3645
3647 r"""GetNetnameLayer(int aLayer) -> int"""
3648 return _pcbnew.GetNetnameLayer(aLayer)
3649
3650def IsNetnameLayer(aLayer):
3651 r"""IsNetnameLayer(int aLayer) -> bool"""
3652 return _pcbnew.IsNetnameLayer(aLayer)
3653
3655 r"""IsZoneFillLayer(int aLayer) -> bool"""
3656 return _pcbnew.IsZoneFillLayer(aLayer)
3657
3659 r"""IsPadCopperLayer(int aLayer) -> bool"""
3660 return _pcbnew.IsPadCopperLayer(aLayer)
3661
3663 r"""IsViaCopperLayer(int aLayer) -> bool"""
3664 return _pcbnew.IsViaCopperLayer(aLayer)
3665
3667 r"""IsClearanceLayer(int aLayer) -> bool"""
3668 return _pcbnew.IsClearanceLayer(aLayer)
3669
3670def IsDCodeLayer(aLayer):
3671 r"""IsDCodeLayer(int aLayer) -> bool"""
3672 return _pcbnew.IsDCodeLayer(aLayer)
3673
3675 r"""CopperLayerToOrdinal(PCB_LAYER_ID aLayer) -> size_t"""
3676 return _pcbnew.CopperLayerToOrdinal(aLayer)
3677
3679 r"""BoardLayerFromLegacyId(int aLegacyId) -> PCB_LAYER_ID"""
3680 return _pcbnew.BoardLayerFromLegacyId(aLegacyId)
3681
3683 r"""Map3DLayerToPCBLayer(int aLayer) -> PCB_LAYER_ID"""
3684 return _pcbnew.Map3DLayerToPCBLayer(aLayer)
3685
3687 r"""MapPCBLayerTo3DLayer(PCB_LAYER_ID aLayer) -> int"""
3688 return _pcbnew.MapPCBLayerTo3DLayer(aLayer)
3689
3690def ToLAYER_ID(aLayer):
3691 r"""ToLAYER_ID(int aLayer) -> PCB_LAYER_ID"""
3692 return _pcbnew.ToLAYER_ID(aLayer)
3694 r"""Proxy of C++ SETTINGS_MANAGER class."""
3695
3696 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3697 __repr__ = _swig_repr
3698
3699 def __init__(self, aHeadless=False):
3700 r"""__init__(SETTINGS_MANAGER self, bool aHeadless=False) -> SETTINGS_MANAGER"""
3701 _pcbnew.SETTINGS_MANAGER_swiginit(self, _pcbnew.new_SETTINGS_MANAGER(aHeadless))
3702 __swig_destroy__ = _pcbnew.delete_SETTINGS_MANAGER
3703
3704 def IsOK(self):
3705 r"""IsOK(SETTINGS_MANAGER self) -> bool"""
3706 return _pcbnew.SETTINGS_MANAGER_IsOK(self)
3707
3708 def SetKiway(self, aKiway):
3709 r"""SetKiway(SETTINGS_MANAGER self, KIWAY * aKiway)"""
3710 return _pcbnew.SETTINGS_MANAGER_SetKiway(self, aKiway)
3711
3712 def Load(self, *args):
3713 r"""
3714 Load(SETTINGS_MANAGER self)
3715 Load(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
3716 """
3717 return _pcbnew.SETTINGS_MANAGER_Load(self, *args)
3718
3719 def Save(self, *args):
3720 r"""
3721 Save(SETTINGS_MANAGER self)
3722 Save(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
3723 """
3724 return _pcbnew.SETTINGS_MANAGER_Save(self, *args)
3725
3726 def FlushAndRelease(self, aSettings, aSave=True):
3727 r"""FlushAndRelease(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings, bool aSave=True)"""
3728 return _pcbnew.SETTINGS_MANAGER_FlushAndRelease(self, aSettings, aSave)
3729
3730 def GetColorSettings(self, *args):
3731 r"""GetColorSettings(SETTINGS_MANAGER self, wxString aName="user") -> COLOR_SETTINGS"""
3732 return _pcbnew.SETTINGS_MANAGER_GetColorSettings(self, *args)
3733
3735 r"""GetColorSettingsList(SETTINGS_MANAGER self) -> std::vector< COLOR_SETTINGS *,std::allocator< COLOR_SETTINGS * > >"""
3736 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsList(self)
3737
3738 def SaveColorSettings(self, *args):
3739 r"""SaveColorSettings(SETTINGS_MANAGER self, COLOR_SETTINGS * aSettings, string aNamespace="")"""
3740 return _pcbnew.SETTINGS_MANAGER_SaveColorSettings(self, *args)
3741
3742 def AddNewColorSettings(self, aFilename):
3743 r"""AddNewColorSettings(SETTINGS_MANAGER self, wxString aFilename) -> COLOR_SETTINGS *"""
3744 return _pcbnew.SETTINGS_MANAGER_AddNewColorSettings(self, aFilename)
3745
3747 r"""GetMigratedColorSettings(SETTINGS_MANAGER self) -> COLOR_SETTINGS *"""
3748 return _pcbnew.SETTINGS_MANAGER_GetMigratedColorSettings(self)
3749
3751 r"""GetCommonSettings(SETTINGS_MANAGER self) -> COMMON_SETTINGS *"""
3752 return _pcbnew.SETTINGS_MANAGER_GetCommonSettings(self)
3753
3754 def GetPathForSettingsFile(self, aSettings):
3755 r"""GetPathForSettingsFile(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings) -> wxString"""
3756 return _pcbnew.SETTINGS_MANAGER_GetPathForSettingsFile(self, aSettings)
3757
3759 r"""MigrateIfNeeded(SETTINGS_MANAGER self) -> bool"""
3760 return _pcbnew.SETTINGS_MANAGER_MigrateIfNeeded(self)
3761
3762 def SetMigrationSource(self, aSource):
3763 r"""SetMigrationSource(SETTINGS_MANAGER self, wxString aSource)"""
3764 return _pcbnew.SETTINGS_MANAGER_SetMigrationSource(self, aSource)
3765
3766 def SetMigrateLibraryTables(self, aMigrate=True):
3767 r"""SetMigrateLibraryTables(SETTINGS_MANAGER self, bool aMigrate=True)"""
3768 return _pcbnew.SETTINGS_MANAGER_SetMigrateLibraryTables(self, aMigrate)
3769
3770 def GetPreviousVersionPaths(self, aName=None):
3771 r"""GetPreviousVersionPaths(SETTINGS_MANAGER self, std::vector< wxString,std::allocator< wxString > > * aName=None) -> bool"""
3772 return _pcbnew.SETTINGS_MANAGER_GetPreviousVersionPaths(self, aName)
3773
3775 r"""ReloadColorSettings(SETTINGS_MANAGER self)"""
3776 return _pcbnew.SETTINGS_MANAGER_ReloadColorSettings(self)
3777
3778 def LoadProject(self, aFullPath, aSetActive=True):
3779 r"""LoadProject(SETTINGS_MANAGER self, wxString aFullPath, bool aSetActive=True) -> bool"""
3780 return _pcbnew.SETTINGS_MANAGER_LoadProject(self, aFullPath, aSetActive)
3781
3782 def UnloadProject(self, aProject, aSave=True):
3783 r"""UnloadProject(SETTINGS_MANAGER self, PROJECT * aProject, bool aSave=True) -> bool"""
3784 return _pcbnew.SETTINGS_MANAGER_UnloadProject(self, aProject, aSave)
3785
3786 def IsProjectOpen(self):
3787 r"""IsProjectOpen(SETTINGS_MANAGER self) -> bool"""
3788 return _pcbnew.SETTINGS_MANAGER_IsProjectOpen(self)
3789
3791 r"""IsProjectOpenNotDummy(SETTINGS_MANAGER self) -> bool"""
3792 return _pcbnew.SETTINGS_MANAGER_IsProjectOpenNotDummy(self)
3793
3794 def Prj(self):
3795 r"""Prj(SETTINGS_MANAGER self) -> PROJECT &"""
3796 return _pcbnew.SETTINGS_MANAGER_Prj(self)
3797
3798 def GetProject(self, aFullPath):
3799 r"""GetProject(SETTINGS_MANAGER self, wxString aFullPath) -> PROJECT *"""
3800 return _pcbnew.SETTINGS_MANAGER_GetProject(self, aFullPath)
3801
3803 r"""GetOpenProjects(SETTINGS_MANAGER self) -> std::vector< wxString,std::allocator< wxString > >"""
3804 return _pcbnew.SETTINGS_MANAGER_GetOpenProjects(self)
3805
3806 def SaveProject(self, *args):
3807 r"""SaveProject(SETTINGS_MANAGER self, wxString aFullPath=wxEmptyString, PROJECT * aProject=None) -> bool"""
3808 return _pcbnew.SETTINGS_MANAGER_SaveProject(self, *args)
3809
3810 def SaveProjectAs(self, aFullPath, aProject=None):
3811 r"""SaveProjectAs(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
3812 return _pcbnew.SETTINGS_MANAGER_SaveProjectAs(self, aFullPath, aProject)
3813
3814 def SaveProjectCopy(self, aFullPath, aProject=None):
3815 r"""SaveProjectCopy(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
3816 return _pcbnew.SETTINGS_MANAGER_SaveProjectCopy(self, aFullPath, aProject)
3817
3819 r"""GetProjectBackupsPath(SETTINGS_MANAGER self) -> wxString"""
3820 return _pcbnew.SETTINGS_MANAGER_GetProjectBackupsPath(self)
3821
3822 def BackupProject(self, aReporter, aTarget):
3823 r"""BackupProject(SETTINGS_MANAGER self, REPORTER & aReporter, wxFileName & aTarget) -> bool"""
3824 return _pcbnew.SETTINGS_MANAGER_BackupProject(self, aReporter, aTarget)
3825
3826 def TriggerBackupIfNeeded(self, aReporter):
3827 r"""TriggerBackupIfNeeded(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
3828 return _pcbnew.SETTINGS_MANAGER_TriggerBackupIfNeeded(self, aReporter)
3829
3830 @staticmethod
3832 r"""IsSettingsPathValid(wxString aPath) -> bool"""
3833 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
3834
3835 @staticmethod
3837 r"""GetColorSettingsPath() -> wxString"""
3838 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
3839
3840 @staticmethod
3842 r"""GetSettingsVersion() -> string"""
3843 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
3844
3845 @staticmethod
3847 r"""GetUserSettingsPath() -> wxString"""
3848 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
3849
3850# Register SETTINGS_MANAGER in _pcbnew:
3851_pcbnew.SETTINGS_MANAGER_swigregister(SETTINGS_MANAGER)
3853 r"""Proxy of C++ UTILS_BOX3D class."""
3854
3855 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3856 __repr__ = _swig_repr
3857
3858 def Min(self):
3859 r"""Min(UTILS_BOX3D self) -> VECTOR3D"""
3860 return _pcbnew.UTILS_BOX3D_Min(self)
3861
3862 def Max(self):
3863 r"""Max(UTILS_BOX3D self) -> VECTOR3D"""
3864 return _pcbnew.UTILS_BOX3D_Max(self)
3865
3866 def GetCenter(self):
3867 r"""GetCenter(UTILS_BOX3D self) -> VECTOR3D"""
3868 return _pcbnew.UTILS_BOX3D_GetCenter(self)
3869
3870 def GetSize(self):
3871 r"""GetSize(UTILS_BOX3D self) -> VECTOR3D"""
3872 return _pcbnew.UTILS_BOX3D_GetSize(self)
3873
3874 def __init__(self):
3875 r"""__init__(UTILS_BOX3D self) -> UTILS_BOX3D"""
3876 _pcbnew.UTILS_BOX3D_swiginit(self, _pcbnew.new_UTILS_BOX3D())
3877 __swig_destroy__ = _pcbnew.delete_UTILS_BOX3D
3878
3879# Register UTILS_BOX3D in _pcbnew:
3880_pcbnew.UTILS_BOX3D_swigregister(UTILS_BOX3D)
3882 r"""Proxy of C++ UTILS_STEP_MODEL class."""
3883
3884 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3885 __repr__ = _swig_repr
3886
3888 r"""GetBoundingBox(UTILS_STEP_MODEL self) -> UTILS_BOX3D"""
3889 return _pcbnew.UTILS_STEP_MODEL_GetBoundingBox(self)
3890
3891 def Translate(self, aX, aY, aZ):
3892 r"""Translate(UTILS_STEP_MODEL self, double aX, double aY, double aZ)"""
3893 return _pcbnew.UTILS_STEP_MODEL_Translate(self, aX, aY, aZ)
3894
3895 def Scale(self, aScale):
3896 r"""Scale(UTILS_STEP_MODEL self, double aScale)"""
3897 return _pcbnew.UTILS_STEP_MODEL_Scale(self, aScale)
3898
3899 def SaveSTEP(self, aFileName):
3900 r"""SaveSTEP(UTILS_STEP_MODEL self, wxString aFileName) -> bool"""
3901 return _pcbnew.UTILS_STEP_MODEL_SaveSTEP(self, aFileName)
3902
3903 @staticmethod
3904 def LoadSTEP(aFileName):
3905 r"""LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
3906 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
3907
3908 def __init__(self):
3909 r"""__init__(UTILS_STEP_MODEL self) -> UTILS_STEP_MODEL"""
3910 _pcbnew.UTILS_STEP_MODEL_swiginit(self, _pcbnew.new_UTILS_STEP_MODEL())
3911
3912# Register UTILS_STEP_MODEL in _pcbnew:
3913_pcbnew.UTILS_STEP_MODEL_swigregister(UTILS_STEP_MODEL)
3915 r"""Proxy of C++ std::vector< int > class."""
3916
3917 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3918 __repr__ = _swig_repr
3919
3920 def iterator(self):
3921 r"""iterator(intVector self) -> SwigPyIterator"""
3922 return _pcbnew.intVector_iterator(self)
3923 def __iter__(self):
3924 return self.iterator()
3925
3926 def __nonzero__(self):
3927 r"""__nonzero__(intVector self) -> bool"""
3928 return _pcbnew.intVector___nonzero__(self)
3929
3930 def __bool__(self):
3931 r"""__bool__(intVector self) -> bool"""
3932 return _pcbnew.intVector___bool__(self)
3933
3934 def __len__(self):
3935 r"""__len__(intVector self) -> std::vector< int >::size_type"""
3936 return _pcbnew.intVector___len__(self)
3937
3938 def __getslice__(self, i, j):
3939 r"""__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
3940 return _pcbnew.intVector___getslice__(self, i, j)
3941
3942 def __setslice__(self, *args):
3943 r"""
3944 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
3945 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
3946 """
3947 return _pcbnew.intVector___setslice__(self, *args)
3948
3949 def __delslice__(self, i, j):
3950 r"""__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
3951 return _pcbnew.intVector___delslice__(self, i, j)
3952
3953 def __delitem__(self, *args):
3954 r"""
3955 __delitem__(intVector self, std::vector< int >::difference_type i)
3956 __delitem__(intVector self, SWIGPY_SLICEOBJECT * slice)
3957 """
3958 return _pcbnew.intVector___delitem__(self, *args)
3959
3960 def __getitem__(self, *args):
3961 r"""
3962 __getitem__(intVector self, SWIGPY_SLICEOBJECT * slice) -> intVector
3963 __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
3964 """
3965 return _pcbnew.intVector___getitem__(self, *args)
3966
3967 def __setitem__(self, *args):
3968 r"""
3969 __setitem__(intVector self, SWIGPY_SLICEOBJECT * slice, intVector v)
3970 __setitem__(intVector self, SWIGPY_SLICEOBJECT * slice)
3971 __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
3972 """
3973 return _pcbnew.intVector___setitem__(self, *args)
3974
3975 def pop(self):
3976 r"""pop(intVector self) -> std::vector< int >::value_type"""
3977 return _pcbnew.intVector_pop(self)
3978
3979 def append(self, x):
3980 r"""append(intVector self, std::vector< int >::value_type const & x)"""
3981 return _pcbnew.intVector_append(self, x)
3982
3983 def empty(self):
3984 r"""empty(intVector self) -> bool"""
3985 return _pcbnew.intVector_empty(self)
3986
3987 def size(self):
3988 r"""size(intVector self) -> std::vector< int >::size_type"""
3989 return _pcbnew.intVector_size(self)
3990
3991 def swap(self, v):
3992 r"""swap(intVector self, intVector v)"""
3993 return _pcbnew.intVector_swap(self, v)
3994
3995 def begin(self):
3996 r"""begin(intVector self) -> std::vector< int >::iterator"""
3997 return _pcbnew.intVector_begin(self)
3998
3999 def end(self):
4000 r"""end(intVector self) -> std::vector< int >::iterator"""
4001 return _pcbnew.intVector_end(self)
4002
4003 def rbegin(self):
4004 r"""rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
4005 return _pcbnew.intVector_rbegin(self)
4006
4007 def rend(self):
4008 r"""rend(intVector self) -> std::vector< int >::reverse_iterator"""
4009 return _pcbnew.intVector_rend(self)
4010
4011 def clear(self):
4012 r"""clear(intVector self)"""
4013 return _pcbnew.intVector_clear(self)
4014
4015 def get_allocator(self):
4016 r"""get_allocator(intVector self) -> std::vector< int >::allocator_type"""
4017 return _pcbnew.intVector_get_allocator(self)
4018
4019 def pop_back(self):
4020 r"""pop_back(intVector self)"""
4021 return _pcbnew.intVector_pop_back(self)
4022
4023 def erase(self, *args):
4024 r"""
4025 erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
4026 erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
4027 """
4028 return _pcbnew.intVector_erase(self, *args)
4029
4030 def __init__(self, *args):
4031 r"""
4032 __init__(intVector self) -> intVector
4033 __init__(intVector self, intVector other) -> intVector
4034 __init__(intVector self, std::vector< int >::size_type size) -> intVector
4035 __init__(intVector self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
4036 """
4037 _pcbnew.intVector_swiginit(self, _pcbnew.new_intVector(*args))
4038
4039 def push_back(self, x):
4040 r"""push_back(intVector self, std::vector< int >::value_type const & x)"""
4041 return _pcbnew.intVector_push_back(self, x)
4042
4043 def front(self):
4044 r"""front(intVector self) -> std::vector< int >::value_type const &"""
4045 return _pcbnew.intVector_front(self)
4046
4047 def back(self):
4048 r"""back(intVector self) -> std::vector< int >::value_type const &"""
4049 return _pcbnew.intVector_back(self)
4050
4051 def assign(self, n, x):
4052 r"""assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
4053 return _pcbnew.intVector_assign(self, n, x)
4054
4055 def resize(self, *args):
4056 r"""
4057 resize(intVector self, std::vector< int >::size_type new_size)
4058 resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
4059 """
4060 return _pcbnew.intVector_resize(self, *args)
4061
4062 def insert(self, *args):
4063 r"""
4064 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
4065 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
4066 """
4067 return _pcbnew.intVector_insert(self, *args)
4068
4069 def reserve(self, n):
4070 r"""reserve(intVector self, std::vector< int >::size_type n)"""
4071 return _pcbnew.intVector_reserve(self, n)
4072
4073 def capacity(self):
4074 r"""capacity(intVector self) -> std::vector< int >::size_type"""
4075 return _pcbnew.intVector_capacity(self)
4076 __swig_destroy__ = _pcbnew.delete_intVector
4077
4078# Register intVector in _pcbnew:
4079_pcbnew.intVector_swigregister(intVector)
4081 r"""Proxy of C++ std::map< std::string,UTF8 > class."""
4082
4083 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4084 __repr__ = _swig_repr
4085
4086 def iterator(self):
4087 r"""iterator(str_utf8_Map self) -> SwigPyIterator"""
4088 return _pcbnew.str_utf8_Map_iterator(self)
4089 def __iter__(self):
4090 return self.iterator()
4091
4092 def __nonzero__(self):
4093 r"""__nonzero__(str_utf8_Map self) -> bool"""
4094 return _pcbnew.str_utf8_Map___nonzero__(self)
4095
4096 def __bool__(self):
4097 r"""__bool__(str_utf8_Map self) -> bool"""
4098 return _pcbnew.str_utf8_Map___bool__(self)
4099
4100 def __len__(self):
4101 r"""__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4102 return _pcbnew.str_utf8_Map___len__(self)
4103 def __iter__(self):
4104 return self.key_iterator()
4105 def iterkeys(self):
4106 return self.key_iterator()
4107 def itervalues(self):
4108 return self.value_iterator()
4109 def iteritems(self):
4110 return self.iterator()
4111
4112 def __getitem__(self, key):
4113 r"""__getitem__(str_utf8_Map self, string key) -> UTF8"""
4114 return _pcbnew.str_utf8_Map___getitem__(self, key)
4115
4116 def __delitem__(self, key):
4117 r"""__delitem__(str_utf8_Map self, string key)"""
4118 return _pcbnew.str_utf8_Map___delitem__(self, key)
4119
4120 def has_key(self, key):
4121 r"""has_key(str_utf8_Map self, string key) -> bool"""
4122 return _pcbnew.str_utf8_Map_has_key(self, key)
4123
4124 def keys(self):
4125 r"""keys(str_utf8_Map self) -> PyObject *"""
4126 return _pcbnew.str_utf8_Map_keys(self)
4127
4128 def values(self):
4129 r"""values(str_utf8_Map self) -> PyObject *"""
4130 return _pcbnew.str_utf8_Map_values(self)
4131
4132 def items(self):
4133 r"""items(str_utf8_Map self) -> PyObject *"""
4134 return _pcbnew.str_utf8_Map_items(self)
4135
4136 def __contains__(self, key):
4137 r"""__contains__(str_utf8_Map self, string key) -> bool"""
4138 return _pcbnew.str_utf8_Map___contains__(self, key)
4139
4140 def key_iterator(self):
4141 r"""key_iterator(str_utf8_Map self) -> SwigPyIterator"""
4142 return _pcbnew.str_utf8_Map_key_iterator(self)
4143
4145 r"""value_iterator(str_utf8_Map self) -> SwigPyIterator"""
4146 return _pcbnew.str_utf8_Map_value_iterator(self)
4147
4148 def __setitem__(self, *args):
4149 r"""
4150 __setitem__(str_utf8_Map self, string key)
4151 __setitem__(str_utf8_Map self, string key, UTF8 x)
4152 """
4153 return _pcbnew.str_utf8_Map___setitem__(self, *args)
4154
4155 def asdict(self):
4156 r"""asdict(str_utf8_Map self) -> PyObject *"""
4157 return _pcbnew.str_utf8_Map_asdict(self)
4158
4159 def __init__(self, *args):
4160 r"""
4161 __init__(str_utf8_Map self, std::less< std::basic_string< char,std::char_traits< char >,std::allocator< char > > > const & other) -> str_utf8_Map
4162 __init__(str_utf8_Map self) -> str_utf8_Map
4163 __init__(str_utf8_Map self, str_utf8_Map other) -> str_utf8_Map
4164 """
4165 _pcbnew.str_utf8_Map_swiginit(self, _pcbnew.new_str_utf8_Map(*args))
4166
4167 def empty(self):
4168 r"""empty(str_utf8_Map self) -> bool"""
4169 return _pcbnew.str_utf8_Map_empty(self)
4170
4171 def size(self):
4172 r"""size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4173 return _pcbnew.str_utf8_Map_size(self)
4174
4175 def swap(self, v):
4176 r"""swap(str_utf8_Map self, str_utf8_Map v)"""
4177 return _pcbnew.str_utf8_Map_swap(self, v)
4178
4179 def begin(self):
4180 r"""begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4181 return _pcbnew.str_utf8_Map_begin(self)
4182
4183 def end(self):
4184 r"""end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4185 return _pcbnew.str_utf8_Map_end(self)
4186
4187 def rbegin(self):
4188 r"""rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4189 return _pcbnew.str_utf8_Map_rbegin(self)
4190
4191 def rend(self):
4192 r"""rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4193 return _pcbnew.str_utf8_Map_rend(self)
4194
4195 def clear(self):
4196 r"""clear(str_utf8_Map self)"""
4197 return _pcbnew.str_utf8_Map_clear(self)
4198
4199 def get_allocator(self):
4200 r"""get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
4201 return _pcbnew.str_utf8_Map_get_allocator(self)
4202
4203 def count(self, x):
4204 r"""count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4205 return _pcbnew.str_utf8_Map_count(self, x)
4206
4207 def erase(self, *args):
4208 r"""
4209 erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
4210 erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
4211 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)
4212 """
4213 return _pcbnew.str_utf8_Map_erase(self, *args)
4214
4215 def find(self, x):
4216 r"""find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4217 return _pcbnew.str_utf8_Map_find(self, x)
4218
4219 def lower_bound(self, x):
4220 r"""lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4221 return _pcbnew.str_utf8_Map_lower_bound(self, x)
4222
4223 def upper_bound(self, x):
4224 r"""upper_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4225 return _pcbnew.str_utf8_Map_upper_bound(self, x)
4226 __swig_destroy__ = _pcbnew.delete_str_utf8_Map
4227
4228# Register str_utf8_Map in _pcbnew:
4229_pcbnew.str_utf8_Map_swigregister(str_utf8_Map)
4230
4231
4232KICAD_PLUGINS={} # the list of loaded footprint wizards
4233
4234""" the list of not loaded python scripts
4235 (usually because there is a syntax error in python script)
4236 this is the python script full filenames list.
4237 filenames are separated by '\n'
4238"""
4239NOT_LOADED_WIZARDS=""
4240
4241""" the list of paths used to search python scripts.
4242 Stored here to be displayed on request in Pcbnew
4243 paths are separated by '\n'
4244"""
4245PLUGIN_DIRECTORIES_SEARCH=""
4246
4247"""
4248 the trace of errors during execution of footprint wizards scripts
4249 Warning: strings (internally unicode) are returned as UTF-8 compatible C strings
4250"""
4251
4252FULL_BACK_TRACE=""
4253
4254def GetUnLoadableWizards():
4255 global NOT_LOADED_WIZARDS
4256 import sys
4257
4258 if sys.version_info[0] < 3:
4259 utf8_str = NOT_LOADED_WIZARDS.encode( 'UTF-8' )
4260 else:
4261 utf8_str = NOT_LOADED_WIZARDS
4262
4263 return utf8_str
4264
4266 global PLUGIN_DIRECTORIES_SEARCH
4267 import sys
4268
4269 if sys.version_info[0] < 3:
4270 utf8_str = PLUGIN_DIRECTORIES_SEARCH.encode( 'UTF-8' )
4271 else:
4272 utf8_str = PLUGIN_DIRECTORIES_SEARCH
4273
4274 return utf8_str
4275
4277 global FULL_BACK_TRACE # Already correct format
4278 return FULL_BACK_TRACE
4279
4280
4281def LoadPluginModule(Dirname, ModuleName, FileName):
4282 """
4283 Load the plugin module named ModuleName located in the folder Dirname.
4284 The module can be either inside a file called FileName or a subdirectory
4285 called FileName that contains a __init__.py file.
4286 If this module cannot be loaded, its name is stored in failed_wizards_list
4287 and the error trace is stored in FULL_BACK_TRACE
4288 """
4289 import os
4290 import sys
4291 import traceback
4292
4293 global NOT_LOADED_WIZARDS
4294 global FULL_BACK_TRACE
4295 global KICAD_PLUGINS
4296
4297 try: # If there is an error loading the script, skip it
4298
4299 module_filename = os.path.join( Dirname, FileName )
4300 mtime = os.path.getmtime( module_filename )
4301 mods_before = set( sys.modules )
4302
4303 if ModuleName in KICAD_PLUGINS:
4304 plugin = KICAD_PLUGINS[ModuleName]
4305
4306 for dependency in plugin["dependencies"]:
4307 if dependency in sys.modules:
4308 del sys.modules[dependency]
4309
4310 mods_before = set( sys.modules )
4311
4312 if sys.version_info >= (3,0,0):
4313 import importlib
4314 mod = importlib.import_module( ModuleName )
4315 else:
4316 mod = __import__( ModuleName, locals(), globals() )
4317
4318 mods_after = set( sys.modules ).difference( mods_before )
4319 dependencies = [m for m in mods_after if m.startswith(ModuleName)]
4320
4321 KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
4322 "modification_time":mtime,
4323 "ModuleName":mod,
4324 "dependencies": dependencies }
4325
4326 except:
4327 if ModuleName in KICAD_PLUGINS:
4328 del KICAD_PLUGINS[ModuleName]
4329
4330 if NOT_LOADED_WIZARDS != "" :
4331 NOT_LOADED_WIZARDS += "\n"
4332 NOT_LOADED_WIZARDS += module_filename
4333 FULL_BACK_TRACE += traceback.format_exc()
4334
4335
4336def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None):
4337 """
4338 Initialise Scripting/Plugin python environment and load plugins.
4339
4340 Arguments:
4341 Note: bundlepath and userpath are given utf8 encoded, to be compatible with asimple C string
4342 bundlepath -- The path to the bundled scripts.
4343 The bundled Plugins are relative to this path, in the
4344 "plugins" subdirectory.
4345 WARNING: bundlepath must use '/' as path separator, and not '\'
4346 because it creates issues:
4347 \n and \r are seen as a escaped seq when passing this string to this method
4348 I am thinking this is due to the fact LoadPlugins is called from C++ code by
4349 PyRun_SimpleString()
4350
4351 NOTE: These are all of the possible "default" search paths for kicad
4352 python scripts. These paths will ONLY be added to the python
4353 search path ONLY IF they already exist.
4354
4355 The Scripts bundled with the KiCad installation:
4356 <bundlepath>/
4357 <bundlepath>/plugins/
4358
4359 The Scripts relative to the KiCad Users configuration:
4360 <userpath>/
4361 <userpath>/plugins/
4362
4363 The plugins from 3rd party packages:
4364 $KICAD_3RD_PARTY/plugins/
4365 """
4366 import os
4367 import sys
4368 import traceback
4369 import pcbnew
4370
4371 if sys.version_info >= (3,3,0):
4372 import importlib
4373 importlib.invalidate_caches()
4374
4375 """
4376 bundlepath and userpath are strings utf-8 encoded (compatible "C" strings).
4377 So convert these utf8 encoding to unicode strings to avoid any encoding issue.
4378 """
4379 try:
4380 bundlepath = bundlepath.decode( 'UTF-8' )
4381 userpath = userpath.decode( 'UTF-8' )
4382 thirdpartypath = thirdpartypath.decode( 'UTF-8' )
4383 except AttributeError:
4384 pass
4385
4387 plugin_directories=[]
4388
4389 """
4390 To be consistent with others paths, on windows, convert the unix '/' separator
4391 to the windows separator, although using '/' works
4392 """
4393 if sys.platform.startswith('win32'):
4394 if bundlepath:
4395 bundlepath = bundlepath.replace("/","\\")
4396 if thirdpartypath:
4397 thirdpartypath = thirdpartypath.replace("/","\\")
4398
4399 if bundlepath:
4400 plugin_directories.append(bundlepath)
4401 plugin_directories.append(os.path.join(bundlepath, 'plugins'))
4402
4403 if config_path:
4404 plugin_directories.append(os.path.join(config_path, 'scripting'))
4405 plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
4406
4407 if userpath:
4408 plugin_directories.append(userpath)
4409 plugin_directories.append(os.path.join(userpath, 'plugins'))
4410
4411 if thirdpartypath:
4412 plugin_directories.append(thirdpartypath)
4413
4414 global PLUGIN_DIRECTORIES_SEARCH
4415 PLUGIN_DIRECTORIES_SEARCH=""
4416 for plugins_dir in plugin_directories: # save search path list for later use
4417 if PLUGIN_DIRECTORIES_SEARCH != "" :
4418 PLUGIN_DIRECTORIES_SEARCH += "\n"
4419 PLUGIN_DIRECTORIES_SEARCH += plugins_dir
4420
4421 global FULL_BACK_TRACE
4422 FULL_BACK_TRACE="" # clear any existing trace
4423
4424 global NOT_LOADED_WIZARDS
4425 NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
4426
4427 global KICAD_PLUGINS
4428
4429 for plugins_dir in plugin_directories:
4430 if not os.path.isdir( plugins_dir ):
4431 continue
4432
4433 if plugins_dir not in sys.path:
4434 sys.path.append( plugins_dir )
4435
4436 for module in os.listdir(plugins_dir):
4437 fullPath = os.path.join( plugins_dir, module )
4438
4439 if os.path.isdir( fullPath ):
4440 if os.path.exists( os.path.join( fullPath, '__init__.py' ) ):
4441 LoadPluginModule( plugins_dir, module, module )
4442 else:
4443 if NOT_LOADED_WIZARDS != "" :
4444 NOT_LOADED_WIZARDS += "\n"
4445 NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
4446 continue
4447
4448 if module == '__init__.py' or module[-3:] != '.py':
4449 continue
4450
4451 LoadPluginModule( plugins_dir, module[:-3], module )
4452
4453
4455 def __init__(self):
4456 pass
4457
4458 def register(self):
4459 import inspect
4460 import os
4461
4462 if isinstance(self,FilePlugin):
4463 pass # register to file plugins in C++
4464
4465 if isinstance(self,FootprintWizardPlugin):
4466 PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
4467 return
4468
4469 if isinstance(self,ActionPlugin):
4470 """
4471 Get path to .py or .pyc that has definition of plugin class.
4472 If path is binary but source also exists, assume definition is in source.
4473 """
4474 self.__plugin_path = inspect.getfile(self.__class__)
4475 if self.__plugin_path.endswith('.pyc') and os.path.isfile(self.__plugin_path[:-1]):
4476 self.__plugin_path = self.__plugin_path[:-1]
4477 self.__plugin_path = self.__plugin_path + '/' + self.__class__.__name__
4478 PYTHON_ACTION_PLUGINS.register_action(self)
4479 return
4480
4481 return
4482
4483 def deregister(self):
4484 if isinstance(self,FilePlugin):
4485 pass # deregister to file plugins in C++
4486
4487 if isinstance(self,FootprintWizardPlugin):
4488 PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
4489 return
4490
4491 if isinstance(self,ActionPlugin):
4492 PYTHON_ACTION_PLUGINS.deregister_action(self)
4493 return
4494
4495 return
4496
4497 def GetPluginPath( self ):
4498 return self.__plugin_path
4499
4500
4502 def __init__(self):
4503 KiCadPlugin.__init__(self)
4504
4505
4506from math import ceil, floor, sqrt
4507
4508uMM = "mm" # Millimetres
4509uMils = "mils" # Mils
4510uFloat = "float" # Natural number units (dimensionless)
4511uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
4512uBool = "bool" # Boolean value
4513uRadians = "radians" # Angular units (radians)
4514uDegrees = "degrees" # Angular units (degrees)
4515uPercent = "%" # Percent (0% -> 100%)
4516uString = "string" # Raw string
4517
4518uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
4519uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
4520
4522 _true = ['true','t','y','yes','on','1',1,]
4523 _false = ['false','f','n','no','off','0',0,'',None]
4524
4525 _bools = _true + _false
4526
4527 def __init__(self, page, name, units, default, **kwarg):
4528 self.page = page
4529 self.name = name
4530 self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
4531 self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
4532
4533 if units.lower() in uUnits:
4534 self.units = units.lower()
4535 elif units.lower() == 'percent':
4536 self.units = uPercent
4537 elif type(units) in [list, tuple]: # Convert a list of options into a single string
4538 self.units = ",".join([str(el).strip() for el in units])
4539 else:
4540 self.units = units
4541
4542 self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
4543 self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
4544 self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
4545
4546 self.SetValue(default)
4547 self.default = self.raw_value # Save value as default
4548
4549 def ClearErrors(self):
4550 self.error_list = []
4551
4552 def AddError(self, err, info=None):
4553
4554 if err in self.error_list: # prevent duplicate error messages
4555 return
4556 if info is not None:
4557 err = err + " (" + str(info) + ")"
4558
4559 self.error_list.append(err)
4560
4561 def Check(self, min_value=None, max_value=None, multiple=None, info=None):
4562
4563 if min_value is None:
4564 min_value = self.min_value
4565 if max_value is None:
4566 max_value = self.max_value
4567 if multiple is None:
4568 multiple = self.multiple
4569
4570 if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
4571 self.AddError("type '{t}' unknown".format(t=self.units),info)
4572 self.AddError("Allowable types: " + str(self.units),info)
4573
4574 if self.units in uNumeric:
4575 try:
4576 to_num = float(self.raw_value)
4577
4578 if min_value is not None: # Check minimum value if it is present
4579 if to_num < min_value:
4580 self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
4581
4582 if max_value is not None: # Check maximum value if it is present
4583 if to_num > max_value:
4584 self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
4585
4586 except:
4587 self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
4588
4589 if self.units == uInteger: # Perform integer specific checks
4590 try:
4591 to_int = int(self.raw_value)
4592
4593 if multiple is not None and multiple > 1:
4594 if (to_int % multiple) > 0:
4595 self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
4596 except:
4597 self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
4598
4599 if self.units == uBool: # Check that the value is of a correct boolean format
4600 if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
4601 pass
4602 else:
4603 self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
4604
4605 @property
4606 def value(self): # Return the current value, converted to appropriate units (from string representation) if required
4607 v = str(self.raw_value) # Enforce string type for known starting point
4608
4609 if self.units == uInteger: # Integer values
4610 return int(v)
4611 elif self.units in uNumeric: # Any values that use floating points
4612 v = v.replace(",",".") # Replace "," separators with "."
4613 v = float(v)
4614
4615 if self.units == uMM: # Convert from millimetres to nanometres
4616 return FromMM(v)
4617
4618 elif self.units == uMils: # Convert from mils to nanometres
4619 return FromMils(v)
4620
4621 else: # Any other floating-point values
4622 return v
4623
4624 elif self.units == uBool:
4625 if v.lower() in self._true:
4626 return True
4627 else:
4628 return False
4629 else:
4630 return v
4631
4632 def DefaultValue(self): # Reset the value of the parameter to its default
4633 self.raw_value = str(self.default)
4634
4635 def SetValue(self, new_value): # Update the value
4636 new_value = str(new_value)
4637
4638 if len(new_value.strip()) == 0:
4639 if not self.units in [uString, uBool]:
4640 return # Ignore empty values unless for strings or bools
4641
4642 if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
4643 new_value = "1" if new_value.lower() in self._true else "0"
4644 elif self.units in uNumeric:
4645 new_value = new_value.replace(",", ".") # Enforce decimal point separators
4646 elif ',' in self.units: # Select from a list of values
4647 if new_value not in self.units.split(','):
4648 new_value = self.units.split(',')[0]
4649
4650 self.raw_value = new_value
4651
4652 def __str__(self): # pretty-print the parameter
4653
4654 s = self.name + ": " + str(self.raw_value)
4655
4656 if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
4657 s += self.units
4658 elif self.units == uBool: # Special case for Boolean values
4659 s = self.name + ": {b}".format(b = "True" if self.value else "False")
4660 elif self.units == uString:
4661 s = self.name + ": '" + self.raw_value + "'"
4662
4663 return s
4664
4665
4667 def __init__(self):
4668 KiCadPlugin.__init__(self)
4669 self.defaults()
4670
4671 def defaults(self):
4672 self.module = None
4673 self.params = [] # List of added parameters that observes addition order
4674
4675 self.name = "KiCad FP Wizard"
4676 self.description = "Undefined Footprint Wizard plugin"
4677 self.image = ""
4679
4680 def AddParam(self, page, name, unit, default, **kwarg):
4681
4682 if self.GetParam(page,name) is not None: # Param already exists!
4683 return
4684
4685 param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
4686 self.params.append(param)
4687
4688 @property
4689 def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
4690 pages = {} # Page dict
4691 for p in self.params:
4692 if p.page not in pages:
4693 pages[p.page] = {}
4694
4695 pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
4696
4697 return pages
4698
4699 @property
4700 def values(self): # Same as above
4701 return self.parameters
4702
4703 def ResetWizard(self): # Reset all parameters to default values
4704 for p in self.params:
4705 p.DefaultValue()
4706
4707 def GetName(self): # Return the name of this wizard
4708 return self.name
4709
4710 def GetImage(self): # Return the filename of the preview image associated with this wizard
4711 return self.image
4712
4713 def GetDescription(self): # Return the description text
4714 return self.description
4715
4716 def GetValue(self):
4717 raise NotImplementedError
4718
4720 return "REF" # Default reference prefix for any footprint
4721
4722 def GetParam(self, page, name): # Grab a parameter
4723 for p in self.params:
4724 if p.page == page and p.name == name:
4725 return p
4726
4727 return None
4728
4729 def CheckParam(self, page, name, **kwarg):
4730 self.GetParam(page,name).Check(**kwarg)
4731
4732 def AnyErrors(self):
4733 return any([len(p.error_list) > 0 for p in self.params])
4734
4735 @property
4736 def pages(self): # Return an (ordered) list of the available page names
4737 page_list = []
4738 for p in self.params:
4739 if p.page not in page_list:
4740 page_list.append(p.page)
4741
4742 return page_list
4743
4744 def GetNumParameterPages(self): # Return the number of parameter pages
4745 return len(self.pages)
4746
4747 def GetParameterPageName(self,page_n): # Return the name of a page at a given index
4748 return self.pages[page_n]
4749
4750 def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
4751 params = []
4752
4753 for p in self.params:
4754 if p.page == page_name:
4755 params.append(p)
4756
4757 return params
4758
4759 def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
4760 return self.GetParametersByPageName(self.GetParameterPageName(page_index))
4761
4762 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4763 params = self.GetParametersByPageIndex(page_index)
4764 return [p.designator for p in params]
4765
4766 def GetParameterNames(self,page_index): # Return the list of names associated with a given page
4767 params = self.GetParametersByPageIndex(page_index)
4768 return [p.name for p in params]
4769
4770 def GetParameterValues(self,page_index): # Return the list of values associated with a given page
4771 params = self.GetParametersByPageIndex(page_index)
4772 return [str(p.raw_value) for p in params]
4773
4774 def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
4775 params = self.GetParametersByPageIndex(page_index)
4776 return [str("\n".join(p.error_list)) for p in params]
4777
4778 def GetParameterTypes(self, page_index): # Return list of units associated with a given page
4779 params = self.GetParametersByPageIndex(page_index)
4780 return [str(p.units) for p in params]
4781
4782 def GetParameterHints(self, page_index): # Return a list of units associated with a given page
4783 params = self.GetParametersByPageIndex(page_index)
4784 return [str(p.hint) for p in params]
4785
4786 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
4787 params = self.GetParametersByPageIndex(page_index)
4788 return [str(p.designator) for p in params]
4789
4790 def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
4791
4792 params = self.GetParametersByPageIndex(page_index)
4793
4794 for i, param in enumerate(params):
4795 if i >= len(list_of_values):
4796 break
4797 param.SetValue(list_of_values[i])
4798
4799 def GetFootprint( self ):
4800 self.BuildFootprint()
4801 return self.module
4802
4804 return
4805
4806 def GetBuildMessages( self ):
4807 return self.buildmessages
4808
4809 def Show(self):
4810 text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
4811 text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
4812
4813 n_pages = self.GetNumParameterPages()
4814
4815 text += "Pages: {n}\n".format(n=n_pages)
4816
4817 for i in range(n_pages):
4818 name = self.GetParameterPageName(i)
4819
4820 params = self.GetParametersByPageName(name)
4821
4822 text += "{name}\n".format(name=name)
4823
4824 for j in range(len(params)):
4825 text += ("\t{param}{err}\n".format(
4826 param = str(params[j]),
4827 err = ' *' if len(params[j].error_list) > 0 else ''
4828 ))
4829
4830 if self.AnyErrors():
4831 text += " * Errors exist for these parameters"
4832
4833 return text
4834
4836 def __init__( self ):
4837 KiCadPlugin.__init__( self )
4841 self.defaults()
4842
4843 def defaults( self ):
4844 self.name = "Undefined Action plugin"
4845 self.category = "Undefined"
4846 self.description = ""
4847
4848 def GetClassName(self):
4849 return type(self).__name__
4850
4851 def GetName( self ):
4852 return self.name
4853
4854 def GetCategoryName( self ):
4855 return self.category
4856
4857 def GetDescription( self ):
4858 return self.description
4859
4861 return self.show_toolbar_button
4862
4863 def GetIconFileName( self, dark ):
4864 if dark and self.dark_icon_file_name:
4865 return self.dark_icon_file_name
4866 else:
4867 return self.icon_file_name
4868
4869 def Run(self):
4870 return
4871
4872
4873
4874def BOX2ISafe(*args):
4875 r"""
4876 BOX2ISafe(BOX2D const & aInput) -> BOX2I
4877 BOX2ISafe(VECTOR2D const & aPos, VECTOR2D const & aSize) -> BOX2I
4878 """
4879 return _pcbnew.BOX2ISafe(*args)
4880
4881def KiROUND(*args):
4882 r"""
4883 KiROUND(VECTOR2D const & vec) -> VECTOR2I
4884 KiROUND(BOX2D const & aBoxD) -> BOX2I
4885 """
4886 return _pcbnew.KiROUND(*args)
4888 r"""Proxy of C++ VECTOR2< int > class."""
4889
4890 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4891 __repr__ = _swig_repr
4892 x = property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set, doc=r"""x : int""")
4893 y = property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set, doc=r"""y : int""")
4894
4895 def __init__(self, *args):
4896 r"""
4897 __init__(VECTOR2I self) -> VECTOR2I
4898 __init__(VECTOR2I self, int x, int y) -> VECTOR2I
4899 __init__(VECTOR2I self, VECTOR2I aVec) -> VECTOR2I
4900 """
4901 _pcbnew.VECTOR2I_swiginit(self, _pcbnew.new_VECTOR2I(*args))
4902
4903 def EuclideanNorm(self):
4904 r"""EuclideanNorm(VECTOR2I self) -> int"""
4905 return _pcbnew.VECTOR2I_EuclideanNorm(self)
4906
4908 r"""SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type"""
4909 return _pcbnew.VECTOR2I_SquaredEuclideanNorm(self)
4910
4911 def Perpendicular(self):
4912 r"""Perpendicular(VECTOR2I self) -> VECTOR2I"""
4913 return _pcbnew.VECTOR2I_Perpendicular(self)
4914
4915 def Resize(self, aNewLength):
4916 r"""Resize(VECTOR2I self, int aNewLength) -> VECTOR2I"""
4917 return _pcbnew.VECTOR2I_Resize(self, aNewLength)
4918
4919 def Format(self):
4920 r"""Format(VECTOR2I self) -> string"""
4921 return _pcbnew.VECTOR2I_Format(self)
4922
4923 def Cross(self, aVector):
4924 r"""Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4925 return _pcbnew.VECTOR2I_Cross(self, aVector)
4926
4927 def Dot(self, aVector):
4928 r"""Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4929 return _pcbnew.VECTOR2I_Dot(self, aVector)
4930
4931 def Distance(self, aVector):
4932 r"""Distance(VECTOR2I self, VECTOR2L aVector) -> double"""
4933 return _pcbnew.VECTOR2I_Distance(self, aVector)
4934
4935 def SquaredDistance(self, aVector):
4936 r"""SquaredDistance(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
4937 return _pcbnew.VECTOR2I_SquaredDistance(self, aVector)
4938
4939 def __imul__(self, *args):
4940 r"""
4941 __imul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4942 __imul__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4943 """
4944 return _pcbnew.VECTOR2I___imul__(self, *args)
4945
4946 def __iadd__(self, *args):
4947 r"""
4948 __iadd__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4949 __iadd__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4950 """
4951 return _pcbnew.VECTOR2I___iadd__(self, *args)
4952
4953 def __isub__(self, *args):
4954 r"""
4955 __isub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
4956 __isub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
4957 """
4958 return _pcbnew.VECTOR2I___isub__(self, *args)
4959
4960 def __neg__(self):
4961 r"""__neg__(VECTOR2I self) -> VECTOR2I"""
4962 return _pcbnew.VECTOR2I___neg__(self)
4963
4964 def __truediv__(self, *args):
4965 return _pcbnew.VECTOR2I___truediv__(self, *args)
4966 __div__ = __truediv__
4967
4968
4969
4970 def __eq__(self, aVector):
4971 r"""__eq__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4972 return _pcbnew.VECTOR2I___eq__(self, aVector)
4973
4974 def __ne__(self, aVector):
4975 r"""__ne__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4976 return _pcbnew.VECTOR2I___ne__(self, aVector)
4977
4978 def __lt__(self, aVector):
4979 r"""__lt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4980 return _pcbnew.VECTOR2I___lt__(self, aVector)
4981
4982 def __le__(self, aVector):
4983 r"""__le__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4984 return _pcbnew.VECTOR2I___le__(self, aVector)
4985
4986 def __gt__(self, aVector):
4987 r"""__gt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4988 return _pcbnew.VECTOR2I___gt__(self, aVector)
4989
4990 def __ge__(self, aVector):
4991 r"""__ge__(VECTOR2I self, VECTOR2I aVector) -> bool"""
4992 return _pcbnew.VECTOR2I___ge__(self, aVector)
4993
4994 def Set(self, x, y):
4995 r"""Set(VECTOR2I self, long x, long y)"""
4996 return _pcbnew.VECTOR2I_Set(self, x, y)
4997
4998 def Get(self):
4999 r"""Get(VECTOR2I self) -> PyObject *"""
5000 return _pcbnew.VECTOR2I_Get(self)
5001
5002 def __eq__(self,other): return (self.xx==other.x and self.yy==other.y)
5003 def __ne__(self,other): return not (self==other)
5004 def __str__(self): return str(self.Get())
5005 def __repr__(self): return 'VECTOR2I'+str(self.Get())
5006 def __len__(self): return len(self.Get())
5007 def __getitem__(self, index): return self.Get()[index]
5008 def __setitem__(self, index, val):
5009 if index == 0:
5010 self.xx = val
5011 elif index == 1:
5012 self.yy = val
5013 else:
5014 raise IndexError
5015 def __nonzero__(self): return self.Get() != (0,0)
5016 def __add__(self, other): return VECTOR2I(self.xx+other.x, self.yy+other.y)
5017 def __sub__(self, other): return VECTOR2I(self.xx-other.x, self.yy-other.y)
5018
5019
5020 __swig_destroy__ = _pcbnew.delete_VECTOR2I
5021
5022# Register VECTOR2I in _pcbnew:
5023_pcbnew.VECTOR2I_swigregister(VECTOR2I)
5025 r"""Proxy of C++ VECTOR2< long long > class."""
5026
5027 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5028 __repr__ = _swig_repr
5029 ECOORD_MAX = _pcbnew.VECTOR2L_ECOORD_MAX
5030
5031 ECOORD_MIN = _pcbnew.VECTOR2L_ECOORD_MIN
5032
5033 x = property(_pcbnew.VECTOR2L_x_get, _pcbnew.VECTOR2L_x_set, doc=r"""x : long long""")
5034 y = property(_pcbnew.VECTOR2L_y_get, _pcbnew.VECTOR2L_y_set, doc=r"""y : long long""")
5035
5036 def __init__(self, *args):
5037 r"""
5038 __init__(VECTOR2L self) -> VECTOR2L
5039 __init__(VECTOR2L self, long long x, long long y) -> VECTOR2L
5040 __init__(VECTOR2L self, VECTOR2L aVec) -> VECTOR2L
5041 """
5042 _pcbnew.VECTOR2L_swiginit(self, _pcbnew.new_VECTOR2L(*args))
5043
5044 def EuclideanNorm(self):
5045 r"""EuclideanNorm(VECTOR2L self) -> long long"""
5046 return _pcbnew.VECTOR2L_EuclideanNorm(self)
5047
5049 r"""SquaredEuclideanNorm(VECTOR2L self) -> VECTOR2< long long >::extended_type"""
5050 return _pcbnew.VECTOR2L_SquaredEuclideanNorm(self)
5051
5052 def Perpendicular(self):
5053 r"""Perpendicular(VECTOR2L self) -> VECTOR2L"""
5054 return _pcbnew.VECTOR2L_Perpendicular(self)
5055
5056 def Resize(self, aNewLength):
5057 r"""Resize(VECTOR2L self, long long aNewLength) -> VECTOR2L"""
5058 return _pcbnew.VECTOR2L_Resize(self, aNewLength)
5059
5060 def Format(self):
5061 r"""Format(VECTOR2L self) -> string"""
5062 return _pcbnew.VECTOR2L_Format(self)
5063
5064 def Cross(self, aVector):
5065 r"""Cross(VECTOR2L self, VECTOR2L aVector) -> VECTOR2< long long >::extended_type"""
5066 return _pcbnew.VECTOR2L_Cross(self, aVector)
5067
5068 def Dot(self, aVector):
5069 r"""Dot(VECTOR2L self, VECTOR2L aVector) -> VECTOR2< long long >::extended_type"""
5070 return _pcbnew.VECTOR2L_Dot(self, aVector)
5071
5072 def Distance(self, aVector):
5073 r"""Distance(VECTOR2L self, VECTOR2< VECTOR2< long long >::extended_type > const & aVector) -> double"""
5074 return _pcbnew.VECTOR2L_Distance(self, aVector)
5075
5076 def SquaredDistance(self, aVector):
5077 r"""SquaredDistance(VECTOR2L self, VECTOR2L aVector) -> VECTOR2< long long >::extended_type"""
5078 return _pcbnew.VECTOR2L_SquaredDistance(self, aVector)
5079
5080 def __imul__(self, *args):
5081 r"""
5082 __imul__(VECTOR2L self, VECTOR2L aVector) -> VECTOR2L
5083 __imul__(VECTOR2L self, long long const & aScalar) -> VECTOR2L
5084 """
5085 return _pcbnew.VECTOR2L___imul__(self, *args)
5086
5087 def __iadd__(self, *args):
5088 r"""
5089 __iadd__(VECTOR2L self, VECTOR2L aVector) -> VECTOR2L
5090 __iadd__(VECTOR2L self, long long const & aScalar) -> VECTOR2L
5091 """
5092 return _pcbnew.VECTOR2L___iadd__(self, *args)
5093
5094 def __isub__(self, *args):
5095 r"""
5096 __isub__(VECTOR2L self, VECTOR2L aVector) -> VECTOR2L
5097 __isub__(VECTOR2L self, long long const & aScalar) -> VECTOR2L
5098 """
5099 return _pcbnew.VECTOR2L___isub__(self, *args)
5100
5101 def __neg__(self):
5102 r"""__neg__(VECTOR2L self) -> VECTOR2L"""
5103 return _pcbnew.VECTOR2L___neg__(self)
5104
5105 def __truediv__(self, *args):
5106 return _pcbnew.VECTOR2L___truediv__(self, *args)
5107 __div__ = __truediv__
5108
5109
5110
5111 def __eq__(self, aVector):
5112 r"""__eq__(VECTOR2L self, VECTOR2L aVector) -> bool"""
5113 return _pcbnew.VECTOR2L___eq__(self, aVector)
5114
5115 def __ne__(self, aVector):
5116 r"""__ne__(VECTOR2L self, VECTOR2L aVector) -> bool"""
5117 return _pcbnew.VECTOR2L___ne__(self, aVector)
5118
5119 def __lt__(self, aVector):
5120 r"""__lt__(VECTOR2L self, VECTOR2L aVector) -> bool"""
5121 return _pcbnew.VECTOR2L___lt__(self, aVector)
5122
5123 def __le__(self, aVector):
5124 r"""__le__(VECTOR2L self, VECTOR2L aVector) -> bool"""
5125 return _pcbnew.VECTOR2L___le__(self, aVector)
5126
5127 def __gt__(self, aVector):
5128 r"""__gt__(VECTOR2L self, VECTOR2L aVector) -> bool"""
5129 return _pcbnew.VECTOR2L___gt__(self, aVector)
5130
5131 def __ge__(self, aVector):
5132 r"""__ge__(VECTOR2L self, VECTOR2L aVector) -> bool"""
5133 return _pcbnew.VECTOR2L___ge__(self, aVector)
5134
5135 def Set(self, x, y):
5136 r"""Set(VECTOR2L self, long long x, long long y)"""
5137 return _pcbnew.VECTOR2L_Set(self, x, y)
5138
5139 def Get(self):
5140 r"""Get(VECTOR2L self) -> PyObject *"""
5141 return _pcbnew.VECTOR2L_Get(self)
5142
5143 def __eq__(self,other): return (self.xx==other.x and self.yy==other.y)
5144 def __ne__(self,other): return not (self==other)
5145 def __str__(self): return str(self.Get())
5146 def __repr__(self): return 'VECTOR2L'+str(self.Get())
5147 def __len__(self): return len(self.Get())
5148 def __getitem__(self, index): return self.Get()[index]
5149 def __setitem__(self, index, val):
5150 if index == 0:
5151 self.xx = val
5152 elif index == 1:
5153 self.yy = val
5154 else:
5155 raise IndexError
5156 def __nonzero__(self): return self.Get() != (0,0)
5157 def __add__(self, other): return VECTOR2L(self.xx+other.x, self.yy+other.y)
5158 def __sub__(self, other): return VECTOR2L(self.xx-other.x, self.yy-other.y)
5159
5160
5161 __swig_destroy__ = _pcbnew.delete_VECTOR2L
5162
5163# Register VECTOR2L in _pcbnew:
5164_pcbnew.VECTOR2L_swigregister(VECTOR2L)
5166 r"""Proxy of C++ VECTOR2_TRAITS< int > class."""
5167
5168 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5169 __repr__ = _swig_repr
5170
5171 def __init__(self):
5172 r"""__init__(VECTOR2I_EXTENDED_TYPE self) -> VECTOR2I_EXTENDED_TYPE"""
5173 _pcbnew.VECTOR2I_EXTENDED_TYPE_swiginit(self, _pcbnew.new_VECTOR2I_EXTENDED_TYPE())
5174 __swig_destroy__ = _pcbnew.delete_VECTOR2I_EXTENDED_TYPE
5175
5176# Register VECTOR2I_EXTENDED_TYPE in _pcbnew:
5177_pcbnew.VECTOR2I_EXTENDED_TYPE_swigregister(VECTOR2I_EXTENDED_TYPE)
5179 r"""Proxy of C++ VECTOR3< double > class."""
5180
5181 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5182 __repr__ = _swig_repr
5183 ECOORD_MAX = _pcbnew.VECTOR3D_ECOORD_MAX
5184
5185 ECOORD_MIN = _pcbnew.VECTOR3D_ECOORD_MIN
5186
5187 x = property(_pcbnew.VECTOR3D_x_get, _pcbnew.VECTOR3D_x_set, doc=r"""x : double""")
5188 y = property(_pcbnew.VECTOR3D_y_get, _pcbnew.VECTOR3D_y_set, doc=r"""y : double""")
5189 z = property(_pcbnew.VECTOR3D_z_get, _pcbnew.VECTOR3D_z_set, doc=r"""z : double""")
5190
5191 def __init__(self, *args):
5192 r"""
5193 __init__(VECTOR3D self) -> VECTOR3D
5194 __init__(VECTOR3D self, double x, double y, double z) -> VECTOR3D
5195 """
5196 _pcbnew.VECTOR3D_swiginit(self, _pcbnew.new_VECTOR3D(*args))
5197
5198 def Cross(self, aVector):
5199 r"""Cross(VECTOR3D self, VECTOR3D aVector) -> VECTOR3D"""
5200 return _pcbnew.VECTOR3D_Cross(self, aVector)
5201
5202 def Dot(self, aVector):
5203 r"""Dot(VECTOR3D self, VECTOR3D aVector) -> VECTOR3< double >::extended_type"""
5204 return _pcbnew.VECTOR3D_Dot(self, aVector)
5205
5206 def EuclideanNorm(self):
5207 r"""EuclideanNorm(VECTOR3D self) -> double"""
5208 return _pcbnew.VECTOR3D_EuclideanNorm(self)
5209
5210 def Normalize(self):
5211 r"""Normalize(VECTOR3D self) -> VECTOR3D"""
5212 return _pcbnew.VECTOR3D_Normalize(self)
5213
5214 def SetAll(self, val):
5215 r"""SetAll(VECTOR3D self, double val) -> VECTOR3D"""
5216 return _pcbnew.VECTOR3D_SetAll(self, val)
5217
5218 def __eq__(self, aVector):
5219 r"""__eq__(VECTOR3D self, VECTOR3D aVector) -> bool"""
5220 return _pcbnew.VECTOR3D___eq__(self, aVector)
5221
5222 def __ne__(self, aVector):
5223 r"""__ne__(VECTOR3D self, VECTOR3D aVector) -> bool"""
5224 return _pcbnew.VECTOR3D___ne__(self, aVector)
5225
5226 def __imul__(self, val):
5227 r"""__imul__(VECTOR3D self, double val) -> VECTOR3D"""
5228 return _pcbnew.VECTOR3D___imul__(self, val)
5229
5230 def __itruediv__(self, *args):
5231 return _pcbnew.VECTOR3D___itruediv__(self, *args)
5232 __idiv__ = __itruediv__
5233
5234
5235
5236 def Set(self, x, y, z):
5237 r"""Set(VECTOR3D self, double x, double y, double z)"""
5238 return _pcbnew.VECTOR3D_Set(self, x, y, z)
5239
5240 def Get(self):
5241 r"""Get(VECTOR3D self) -> PyObject *"""
5242 return _pcbnew.VECTOR3D_Get(self)
5243
5244 def __eq__(self,other): return (self.xx==other.x and self.yy==other.y and self.zz==other.z)
5245 def __ne__(self,other): return not (self==other)
5246 def __str__(self): return str(self.Get())
5247 def __repr__(self): return 'VECTOR3D'+str(self.Get())
5248 def __len__(self): return len(self.Get())
5249 def __getitem__(self, index): return self.Get()[index]
5250 def __setitem__(self, index, val):
5251 if index == 0:
5252 self.xx = val
5253 elif index == 1:
5254 self.yy = val
5255 elif index == 2:
5256 self.zz = val
5257 else:
5258 raise IndexError
5259 def __nonzero__(self): return self.Get() != (0, 0, 0)
5260
5261
5262 __swig_destroy__ = _pcbnew.delete_VECTOR3D
5263
5264# Register VECTOR3D in _pcbnew:
5265_pcbnew.VECTOR3D_swigregister(VECTOR3D)
5267 r"""Proxy of C++ BOX2< VECTOR2I > class."""
5268
5269 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5270 __repr__ = _swig_repr
5271
5272 @staticmethod
5273 def ByCorners(aCorner1, aCorner2):
5274 r"""ByCorners(VECTOR2I aCorner1, VECTOR2I aCorner2) -> BOX2I"""
5275 return _pcbnew.BOX2I_ByCorners(aCorner1, aCorner2)
5276
5277 @staticmethod
5278 def ByCenter(aCenter, aSize):
5279 r"""ByCenter(VECTOR2I aCenter, VECTOR2L aSize) -> BOX2I"""
5280 return _pcbnew.BOX2I_ByCenter(aCenter, aSize)
5281
5282 def SetMaximum(self):
5283 r"""SetMaximum(BOX2I self)"""
5284 return _pcbnew.BOX2I_SetMaximum(self)
5285
5286 def Centre(self):
5287 r"""Centre(BOX2I self) -> VECTOR2I"""
5288 return _pcbnew.BOX2I_Centre(self)
5289
5290 def Move(self, aMoveVector):
5291 r"""Move(BOX2I self, VECTOR2I aMoveVector)"""
5292 return _pcbnew.BOX2I_Move(self, aMoveVector)
5293
5294 def Normalize(self):
5295 r"""Normalize(BOX2I self) -> BOX2I"""
5296 return _pcbnew.BOX2I_Normalize(self)
5297
5298 def Contains(self, *args):
5299 r"""
5300 Contains(BOX2I self, VECTOR2I aPoint) -> bool
5301 Contains(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y) -> bool
5302 Contains(BOX2I self, BOX2I aRect) -> bool
5303 """
5304 return _pcbnew.BOX2I_Contains(self, *args)
5305
5306 def GetSize(self):
5307 r"""GetSize(BOX2I self) -> VECTOR2L"""
5308 return _pcbnew.BOX2I_GetSize(self)
5309
5310 def GetX(self):
5311 r"""GetX(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5312 return _pcbnew.BOX2I_GetX(self)
5313
5314 def GetY(self):
5315 r"""GetY(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5316 return _pcbnew.BOX2I_GetY(self)
5317
5318 def GetOrigin(self):
5319 r"""GetOrigin(BOX2I self) -> VECTOR2I"""
5320 return _pcbnew.BOX2I_GetOrigin(self)
5321
5322 def GetPosition(self):
5323 r"""GetPosition(BOX2I self) -> VECTOR2I"""
5324 return _pcbnew.BOX2I_GetPosition(self)
5325
5326 def GetEnd(self):
5327 r"""GetEnd(BOX2I self) -> VECTOR2I"""
5328 return _pcbnew.BOX2I_GetEnd(self)
5329
5330 def GetWidth(self):
5331 r"""GetWidth(BOX2I self) -> BOX2< VECTOR2< int > >::size_type"""
5332 return _pcbnew.BOX2I_GetWidth(self)
5333
5334 def GetHeight(self):
5335 r"""GetHeight(BOX2I self) -> BOX2< VECTOR2< int > >::size_type"""
5336 return _pcbnew.BOX2I_GetHeight(self)
5337
5338 def GetRight(self):
5339 r"""GetRight(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5340 return _pcbnew.BOX2I_GetRight(self)
5341
5342 def GetBottom(self):
5343 r"""GetBottom(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5344 return _pcbnew.BOX2I_GetBottom(self)
5345
5346 def GetLeft(self):
5347 r"""GetLeft(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5348 return _pcbnew.BOX2I_GetLeft(self)
5349
5350 def GetTop(self):
5351 r"""GetTop(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5352 return _pcbnew.BOX2I_GetTop(self)
5353
5354 def GetCenter(self):
5355 r"""GetCenter(BOX2I self) -> VECTOR2I"""
5356 return _pcbnew.BOX2I_GetCenter(self)
5357
5358 def GetSizeMax(self):
5359 r"""GetSizeMax(BOX2I self) -> int"""
5360 return _pcbnew.BOX2I_GetSizeMax(self)
5361
5362 def SetOrigin(self, *args):
5363 r"""
5364 SetOrigin(BOX2I self, VECTOR2I pos)
5365 SetOrigin(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5366 """
5367 return _pcbnew.BOX2I_SetOrigin(self, *args)
5368
5369 def SetSize(self, *args):
5370 r"""
5371 SetSize(BOX2I self, VECTOR2L size)
5372 SetSize(BOX2I self, BOX2< VECTOR2< int > >::size_type w, BOX2< VECTOR2< int > >::size_type h)
5373 """
5374 return _pcbnew.BOX2I_SetSize(self, *args)
5375
5376 def Offset(self, *args):
5377 r"""
5378 Offset(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy)
5379 Offset(BOX2I self, VECTOR2I offset)
5380 """
5381 return _pcbnew.BOX2I_Offset(self, *args)
5382
5383 def GetWithOffset(self, aMoveVector):
5384 r"""GetWithOffset(BOX2I self, VECTOR2I aMoveVector) -> BOX2I"""
5385 return _pcbnew.BOX2I_GetWithOffset(self, aMoveVector)
5386
5387 def SetX(self, val):
5388 r"""SetX(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5389 return _pcbnew.BOX2I_SetX(self, val)
5390
5391 def SetY(self, val):
5392 r"""SetY(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5393 return _pcbnew.BOX2I_SetY(self, val)
5394
5395 def SetWidth(self, val):
5396 r"""SetWidth(BOX2I self, BOX2< VECTOR2< int > >::size_type val)"""
5397 return _pcbnew.BOX2I_SetWidth(self, val)
5398
5399 def SetHeight(self, val):
5400 r"""SetHeight(BOX2I self, BOX2< VECTOR2< int > >::size_type val)"""
5401 return _pcbnew.BOX2I_SetHeight(self, val)
5402
5403 def SetEnd(self, *args):
5404 r"""
5405 SetEnd(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5406 SetEnd(BOX2I self, VECTOR2I pos)
5407 """
5408 return _pcbnew.BOX2I_SetEnd(self, *args)
5409
5410 def Intersect(self, aRect):
5411 r"""Intersect(BOX2I self, BOX2I aRect) -> BOX2I"""
5412 return _pcbnew.BOX2I_Intersect(self, aRect)
5413
5414 def Intersects(self, *args):
5415 r"""
5416 Intersects(BOX2I self, BOX2I aRect) -> bool
5417 Intersects(BOX2I self, VECTOR2I aPoint1, VECTOR2I aPoint2) -> bool
5418 Intersects(BOX2I self, BOX2I aRect, EDA_ANGLE aRotation) -> bool
5419 """
5420 return _pcbnew.BOX2I_Intersects(self, *args)
5421
5422 def IntersectsCircle(self, aCenter, aRadius):
5423 r"""IntersectsCircle(BOX2I self, VECTOR2I aCenter, int const aRadius) -> bool"""
5424 return _pcbnew.BOX2I_IntersectsCircle(self, aCenter, aRadius)
5425
5426 def IntersectsCircleEdge(self, aCenter, aRadius, aWidth):
5427 r"""IntersectsCircleEdge(BOX2I self, VECTOR2I aCenter, int const aRadius, int const aWidth) -> bool"""
5428 return _pcbnew.BOX2I_IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
5429
5430 def Format(self):
5431 r"""Format(BOX2I self) -> string"""
5432 return _pcbnew.BOX2I_Format(self)
5433
5434 def Inflate(self, *args):
5435 r"""
5436 Inflate(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy) -> BOX2I
5437 Inflate(BOX2I self, BOX2< VECTOR2< int > >::coord_type aDelta) -> BOX2I
5438 """
5439 return _pcbnew.BOX2I_Inflate(self, *args)
5440
5441 def GetInflated(self, *args):
5442 r"""
5443 GetInflated(BOX2I self, BOX2< VECTOR2< int > >::coord_type aDx, BOX2< VECTOR2< int > >::coord_type aDy) -> BOX2I
5444 GetInflated(BOX2I self, BOX2< VECTOR2< int > >::coord_type aDelta) -> BOX2I
5445 """
5446 return _pcbnew.BOX2I_GetInflated(self, *args)
5447
5448 def Merge(self, *args):
5449 r"""
5450 Merge(BOX2I self, BOX2I aRect) -> BOX2I
5451 Merge(BOX2I self, VECTOR2I aPoint) -> BOX2I
5452 """
5453 return _pcbnew.BOX2I_Merge(self, *args)
5454
5455 def GetBoundingBoxRotated(self, aRotCenter, aAngle):
5456 r"""GetBoundingBoxRotated(BOX2I self, VECTOR2I aRotCenter, EDA_ANGLE aAngle) -> BOX2I"""
5457 return _pcbnew.BOX2I_GetBoundingBoxRotated(self, aRotCenter, aAngle)
5458
5459 def GetArea(self):
5460 r"""GetArea(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5461 return _pcbnew.BOX2I_GetArea(self)
5462
5463 def Diagonal(self):
5464 r"""Diagonal(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5465 return _pcbnew.BOX2I_Diagonal(self)
5466
5468 r"""SquaredDiagonal(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5469 return _pcbnew.BOX2I_SquaredDiagonal(self)
5470
5471 def SquaredDistance(self, *args):
5472 r"""
5473 SquaredDistance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5474 SquaredDistance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5475 """
5476 return _pcbnew.BOX2I_SquaredDistance(self, *args)
5477
5478 def Distance(self, *args):
5479 r"""
5480 Distance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5481 Distance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5482 """
5483 return _pcbnew.BOX2I_Distance(self, *args)
5484
5485 def NearestPoint(self, aPoint):
5486 r"""NearestPoint(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5487 return _pcbnew.BOX2I_NearestPoint(self, aPoint)
5488
5489 def FarthestPointTo(self, aPoint):
5490 r"""FarthestPointTo(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5491 return _pcbnew.BOX2I_FarthestPointTo(self, aPoint)
5492
5493 def __eq__(self, aOther):
5494 r"""__eq__(BOX2I self, BOX2I aOther) -> bool"""
5495 return _pcbnew.BOX2I___eq__(self, aOther)
5496
5497 def __ne__(self, aOther):
5498 r"""__ne__(BOX2I self, BOX2I aOther) -> bool"""
5499 return _pcbnew.BOX2I___ne__(self, aOther)
5500
5501 def IsValid(self):
5502 r"""IsValid(BOX2I self) -> bool"""
5503 return _pcbnew.BOX2I_IsValid(self)
5504
5505 def __init__(self, *args):
5506 r"""
5507 __init__(BOX2I self) -> BOX2I
5508 __init__(BOX2I self, VECTOR2I aPos, VECTOR2L aSize=BOX2< VECTOR2I >::SizeVec(0, 0)) -> BOX2I
5509 __init__(BOX2I self, VECTOR2I aPos, VECTOR2I aSize) -> BOX2I
5510 """
5511 _pcbnew.BOX2I_swiginit(self, _pcbnew.new_BOX2I(*args))
5512 __swig_destroy__ = _pcbnew.delete_BOX2I
5513
5514# Register BOX2I in _pcbnew:
5515_pcbnew.BOX2I_swigregister(BOX2I)
5517 r"""Proxy of C++ std::vector< VECTOR2I > class."""
5518
5519 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5520 __repr__ = _swig_repr
5521
5522 def iterator(self):
5523 r"""iterator(VECTOR_VECTOR2I self) -> SwigPyIterator"""
5524 return _pcbnew.VECTOR_VECTOR2I_iterator(self)
5525 def __iter__(self):
5526 return self.iterator()
5527
5528 def __nonzero__(self):
5529 r"""__nonzero__(VECTOR_VECTOR2I self) -> bool"""
5530 return _pcbnew.VECTOR_VECTOR2I___nonzero__(self)
5531
5532 def __bool__(self):
5533 r"""__bool__(VECTOR_VECTOR2I self) -> bool"""
5534 return _pcbnew.VECTOR_VECTOR2I___bool__(self)
5535
5536 def __len__(self):
5537 r"""__len__(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5538 return _pcbnew.VECTOR_VECTOR2I___len__(self)
5539
5540 def __getslice__(self, i, j):
5541 r"""__getslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j) -> VECTOR_VECTOR2I"""
5542 return _pcbnew.VECTOR_VECTOR2I___getslice__(self, i, j)
5543
5544 def __setslice__(self, *args):
5545 r"""
5546 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)
5547 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j, VECTOR_VECTOR2I v)
5548 """
5549 return _pcbnew.VECTOR_VECTOR2I___setslice__(self, *args)
5550
5551 def __delslice__(self, i, j):
5552 r"""__delslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)"""
5553 return _pcbnew.VECTOR_VECTOR2I___delslice__(self, i, j)
5554
5555 def __delitem__(self, *args):
5556 r"""
5557 __delitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i)
5558 __delitem__(VECTOR_VECTOR2I self, SWIGPY_SLICEOBJECT * slice)
5559 """
5560 return _pcbnew.VECTOR_VECTOR2I___delitem__(self, *args)
5561
5562 def __getitem__(self, *args):
5563 r"""
5564 __getitem__(VECTOR_VECTOR2I self, SWIGPY_SLICEOBJECT * slice) -> VECTOR_VECTOR2I
5565 __getitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i) -> VECTOR2I
5566 """
5567 return _pcbnew.VECTOR_VECTOR2I___getitem__(self, *args)
5568
5569 def __setitem__(self, *args):
5570 r"""
5571 __setitem__(VECTOR_VECTOR2I self, SWIGPY_SLICEOBJECT * slice, VECTOR_VECTOR2I v)
5572 __setitem__(VECTOR_VECTOR2I self, SWIGPY_SLICEOBJECT * slice)
5573 __setitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, VECTOR2I x)
5574 """
5575 return _pcbnew.VECTOR_VECTOR2I___setitem__(self, *args)
5576
5577 def pop(self):
5578 r"""pop(VECTOR_VECTOR2I self) -> VECTOR2I"""
5579 return _pcbnew.VECTOR_VECTOR2I_pop(self)
5580
5581 def append(self, x):
5582 r"""append(VECTOR_VECTOR2I self, VECTOR2I x)"""
5583 return _pcbnew.VECTOR_VECTOR2I_append(self, x)
5584
5585 def empty(self):
5586 r"""empty(VECTOR_VECTOR2I self) -> bool"""
5587 return _pcbnew.VECTOR_VECTOR2I_empty(self)
5588
5589 def size(self):
5590 r"""size(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5591 return _pcbnew.VECTOR_VECTOR2I_size(self)
5592
5593 def swap(self, v):
5594 r"""swap(VECTOR_VECTOR2I self, VECTOR_VECTOR2I v)"""
5595 return _pcbnew.VECTOR_VECTOR2I_swap(self, v)
5596
5597 def begin(self):
5598 r"""begin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5599 return _pcbnew.VECTOR_VECTOR2I_begin(self)
5600
5601 def end(self):
5602 r"""end(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5603 return _pcbnew.VECTOR_VECTOR2I_end(self)
5604
5605 def rbegin(self):
5606 r"""rbegin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5607 return _pcbnew.VECTOR_VECTOR2I_rbegin(self)
5608
5609 def rend(self):
5610 r"""rend(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5611 return _pcbnew.VECTOR_VECTOR2I_rend(self)
5612
5613 def clear(self):
5614 r"""clear(VECTOR_VECTOR2I self)"""
5615 return _pcbnew.VECTOR_VECTOR2I_clear(self)
5616
5617 def get_allocator(self):
5618 r"""get_allocator(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::allocator_type"""
5619 return _pcbnew.VECTOR_VECTOR2I_get_allocator(self)
5620
5621 def pop_back(self):
5622 r"""pop_back(VECTOR_VECTOR2I self)"""
5623 return _pcbnew.VECTOR_VECTOR2I_pop_back(self)
5624
5625 def erase(self, *args):
5626 r"""
5627 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos) -> std::vector< VECTOR2< int > >::iterator
5628 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator first, std::vector< VECTOR2< int > >::iterator last) -> std::vector< VECTOR2< int > >::iterator
5629 """
5630 return _pcbnew.VECTOR_VECTOR2I_erase(self, *args)
5631
5632 def __init__(self, *args):
5633 r"""
5634 __init__(VECTOR_VECTOR2I self) -> VECTOR_VECTOR2I
5635 __init__(VECTOR_VECTOR2I self, VECTOR_VECTOR2I other) -> VECTOR_VECTOR2I
5636 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size) -> VECTOR_VECTOR2I
5637 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size, VECTOR2I value) -> VECTOR_VECTOR2I
5638 """
5639 _pcbnew.VECTOR_VECTOR2I_swiginit(self, _pcbnew.new_VECTOR_VECTOR2I(*args))
5640
5641 def push_back(self, x):
5642 r"""push_back(VECTOR_VECTOR2I self, VECTOR2I x)"""
5643 return _pcbnew.VECTOR_VECTOR2I_push_back(self, x)
5644
5645 def front(self):
5646 r"""front(VECTOR_VECTOR2I self) -> VECTOR2I"""
5647 return _pcbnew.VECTOR_VECTOR2I_front(self)
5648
5649 def back(self):
5650 r"""back(VECTOR_VECTOR2I self) -> VECTOR2I"""
5651 return _pcbnew.VECTOR_VECTOR2I_back(self)
5652
5653 def assign(self, n, x):
5654 r"""assign(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)"""
5655 return _pcbnew.VECTOR_VECTOR2I_assign(self, n, x)
5656
5657 def resize(self, *args):
5658 r"""
5659 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size)
5660 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size, VECTOR2I x)
5661 """
5662 return _pcbnew.VECTOR_VECTOR2I_resize(self, *args)
5663
5664 def insert(self, *args):
5665 r"""
5666 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, VECTOR2I x) -> std::vector< VECTOR2< int > >::iterator
5667 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)
5668 """
5669 return _pcbnew.VECTOR_VECTOR2I_insert(self, *args)
5670
5671 def reserve(self, n):
5672 r"""reserve(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n)"""
5673 return _pcbnew.VECTOR_VECTOR2I_reserve(self, n)
5674
5675 def capacity(self):
5676 r"""capacity(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5677 return _pcbnew.VECTOR_VECTOR2I_capacity(self)
5678 __swig_destroy__ = _pcbnew.delete_VECTOR_VECTOR2I
5679
5680# Register VECTOR_VECTOR2I in _pcbnew:
5681_pcbnew.VECTOR_VECTOR2I_swigregister(VECTOR_VECTOR2I)
5682CORNER_STRATEGY_ALLOW_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_ALLOW_ACUTE_CORNERS
5683
5684CORNER_STRATEGY_CHAMFER_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_CHAMFER_ACUTE_CORNERS
5685
5686CORNER_STRATEGY_ROUND_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_ROUND_ACUTE_CORNERS
5687
5688CORNER_STRATEGY_CHAMFER_ALL_CORNERS = _pcbnew.CORNER_STRATEGY_CHAMFER_ALL_CORNERS
5689
5690CORNER_STRATEGY_ROUND_ALL_CORNERS = _pcbnew.CORNER_STRATEGY_ROUND_ALL_CORNERS
5691
5693 r"""Proxy of C++ SEG class."""
5694
5695 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5696 __repr__ = _swig_repr
5697 A = property(_pcbnew.SEG_A_get, _pcbnew.SEG_A_set, doc=r"""A : VECTOR2I""")
5698 B = property(_pcbnew.SEG_B_get, _pcbnew.SEG_B_set, doc=r"""B : VECTOR2I""")
5699
5700 def __init__(self, *args):
5701 r"""
5702 __init__(SEG self) -> SEG
5703 __init__(SEG self, int aX1, int aY1, int aX2, int aY2) -> SEG
5704 __init__(SEG self, VECTOR2I aA, VECTOR2I aB) -> SEG
5705 __init__(SEG self, VECTOR2I aA, VECTOR2I aB, int aIndex) -> SEG
5706 __init__(SEG self, SEG aSeg) -> SEG
5707 """
5708 _pcbnew.SEG_swiginit(self, _pcbnew.new_SEG(*args))
5709
5710 def __eq__(self, aSeg):
5711 r"""__eq__(SEG self, SEG aSeg) -> bool"""
5712 return _pcbnew.SEG___eq__(self, aSeg)
5713
5714 def __ne__(self, aSeg):
5715 r"""__ne__(SEG self, SEG aSeg) -> bool"""
5716 return _pcbnew.SEG___ne__(self, aSeg)
5717
5718 @staticmethod
5719 def Square(a):
5720 r"""Square(int a) -> SEG::ecoord"""
5721 return _pcbnew.SEG_Square(a)
5722
5723 def LineProject(self, aP):
5724 r"""LineProject(SEG self, VECTOR2I aP) -> VECTOR2I"""
5725 return _pcbnew.SEG_LineProject(self, aP)
5726
5727 def Side(self, aP):
5728 r"""Side(SEG self, VECTOR2I aP) -> int"""
5729 return _pcbnew.SEG_Side(self, aP)
5730
5731 def LineDistance(self, aP, aDetermineSide=False):
5732 r"""LineDistance(SEG self, VECTOR2I aP, bool aDetermineSide=False) -> int"""
5733 return _pcbnew.SEG_LineDistance(self, aP, aDetermineSide)
5734
5735 def Angle(self, aOther):
5736 r"""Angle(SEG self, SEG aOther) -> EDA_ANGLE"""
5737 return _pcbnew.SEG_Angle(self, aOther)
5738
5739 def NearestPoint(self, *args):
5740 r"""
5741 NearestPoint(SEG self, VECTOR2I aP) -> VECTOR2I
5742 NearestPoint(SEG self, SEG aSeg) -> VECTOR2I
5743 """
5744 return _pcbnew.SEG_NearestPoint(self, *args)
5745
5746 def NearestPoints(self, aSeg, aPtA, aPtB, aDistSq):
5747 r"""NearestPoints(SEG self, SEG aSeg, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool"""
5748 return _pcbnew.SEG_NearestPoints(self, aSeg, aPtA, aPtB, aDistSq)
5749
5750 def ReflectPoint(self, aP):
5751 r"""ReflectPoint(SEG self, VECTOR2I aP) -> VECTOR2I"""
5752 return _pcbnew.SEG_ReflectPoint(self, aP)
5753
5754 def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False):
5755 r"""Intersect(SEG self, SEG aSeg, bool aIgnoreEndpoints=False, bool aLines=False) -> OPT_VECTOR2I"""
5756 return _pcbnew.SEG_Intersect(self, aSeg, aIgnoreEndpoints, aLines)
5757
5758 def Intersects(self, aSeg):
5759 r"""Intersects(SEG self, SEG aSeg) -> bool"""
5760 return _pcbnew.SEG_Intersects(self, aSeg)
5761
5762 def IntersectLines(self, aSeg):
5763 r"""IntersectLines(SEG self, SEG aSeg) -> OPT_VECTOR2I"""
5764 return _pcbnew.SEG_IntersectLines(self, aSeg)
5765
5766 def PerpendicularSeg(self, aP):
5767 r"""PerpendicularSeg(SEG self, VECTOR2I aP) -> SEG"""
5768 return _pcbnew.SEG_PerpendicularSeg(self, aP)
5769
5770 def ParallelSeg(self, aP):
5771 r"""ParallelSeg(SEG self, VECTOR2I aP) -> SEG"""
5772 return _pcbnew.SEG_ParallelSeg(self, aP)
5773
5774 def Collide(self, aSeg, aClearance, aActual=None):
5775 r"""Collide(SEG self, SEG aSeg, int aClearance, int * aActual=None) -> bool"""
5776 return _pcbnew.SEG_Collide(self, aSeg, aClearance, aActual)
5777
5778 def SquaredDistance(self, *args):
5779 r"""
5780 SquaredDistance(SEG self, SEG aSeg) -> SEG::ecoord
5781 SquaredDistance(SEG self, VECTOR2I aP) -> SEG::ecoord
5782 """
5783 return _pcbnew.SEG_SquaredDistance(self, *args)
5784
5785 def Distance(self, *args):
5786 r"""
5787 Distance(SEG self, SEG aSeg) -> int
5788 Distance(SEG self, VECTOR2I aP) -> int
5789 """
5790 return _pcbnew.SEG_Distance(self, *args)
5791
5792 def CanonicalCoefs(self, qA, qB, qC):
5793 r"""CanonicalCoefs(SEG self, SEG::ecoord & qA, SEG::ecoord & qB, SEG::ecoord & qC)"""
5794 return _pcbnew.SEG_CanonicalCoefs(self, qA, qB, qC)
5795
5796 def Collinear(self, aSeg):
5797 r"""Collinear(SEG self, SEG aSeg) -> bool"""
5798 return _pcbnew.SEG_Collinear(self, aSeg)
5799
5800 def ApproxCollinear(self, aSeg, aDistanceThreshold=1):
5801 r"""ApproxCollinear(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5802 return _pcbnew.SEG_ApproxCollinear(self, aSeg, aDistanceThreshold)
5803
5804 def ApproxParallel(self, aSeg, aDistanceThreshold=1):
5805 r"""ApproxParallel(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5806 return _pcbnew.SEG_ApproxParallel(self, aSeg, aDistanceThreshold)
5807
5808 def ApproxPerpendicular(self, aSeg):
5809 r"""ApproxPerpendicular(SEG self, SEG aSeg) -> bool"""
5810 return _pcbnew.SEG_ApproxPerpendicular(self, aSeg)
5811
5812 def Overlaps(self, aSeg):
5813 r"""Overlaps(SEG self, SEG aSeg) -> bool"""
5814 return _pcbnew.SEG_Overlaps(self, aSeg)
5815
5816 def Length(self):
5817 r"""Length(SEG self) -> int"""
5818 return _pcbnew.SEG_Length(self)
5819
5820 def SquaredLength(self):
5821 r"""SquaredLength(SEG self) -> SEG::ecoord"""
5822 return _pcbnew.SEG_SquaredLength(self)
5823
5824 def TCoef(self, aP):
5825 r"""TCoef(SEG self, VECTOR2I aP) -> SEG::ecoord"""
5826 return _pcbnew.SEG_TCoef(self, aP)
5827
5828 def Index(self):
5829 r"""Index(SEG self) -> int"""
5830 return _pcbnew.SEG_Index(self)
5831
5832 def Contains(self, *args):
5833 r"""
5834 Contains(SEG self, SEG aSeg) -> bool
5835 Contains(SEG self, VECTOR2I aP) -> bool
5836 """
5837 return _pcbnew.SEG_Contains(self, *args)
5838
5839 def Reverse(self):
5840 r"""Reverse(SEG self)"""
5841 return _pcbnew.SEG_Reverse(self)
5842
5843 def Reversed(self):
5844 r"""Reversed(SEG self) -> SEG"""
5845 return _pcbnew.SEG_Reversed(self)
5846
5847 def Center(self):
5848 r"""Center(SEG self) -> VECTOR2I"""
5849 return _pcbnew.SEG_Center(self)
5850
5851 def __lt__(self, aSeg):
5852 r"""__lt__(SEG self, SEG aSeg) -> bool"""
5853 return _pcbnew.SEG___lt__(self, aSeg)
5854 __swig_destroy__ = _pcbnew.delete_SEG
5855
5856# Register SEG in _pcbnew:
5857_pcbnew.SEG_swigregister(SEG)
5858SH_RECT = _pcbnew.SH_RECT
5859
5860SH_SEGMENT = _pcbnew.SH_SEGMENT
5861
5862SH_LINE_CHAIN = _pcbnew.SH_LINE_CHAIN
5863
5864SH_CIRCLE = _pcbnew.SH_CIRCLE
5865
5866SH_SIMPLE = _pcbnew.SH_SIMPLE
5867
5868SH_POLY_SET = _pcbnew.SH_POLY_SET
5869
5870SH_COMPOUND = _pcbnew.SH_COMPOUND
5871
5872SH_ARC = _pcbnew.SH_ARC
5873
5874SH_NULL = _pcbnew.SH_NULL
5875
5876SH_POLY_SET_TRIANGLE = _pcbnew.SH_POLY_SET_TRIANGLE
5877
5878
5880 r"""SHAPE_TYPE_asString(SHAPE_TYPE a) -> wxString"""
5881 return _pcbnew.SHAPE_TYPE_asString(a)
5883 r"""Proxy of C++ SHAPE_BASE class."""
5884
5885 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5886 __repr__ = _swig_repr
5887
5888 def __init__(self, aType):
5889 r"""__init__(SHAPE_BASE self, SHAPE_TYPE aType) -> SHAPE_BASE"""
5890 _pcbnew.SHAPE_BASE_swiginit(self, _pcbnew.new_SHAPE_BASE(aType))
5891 __swig_destroy__ = _pcbnew.delete_SHAPE_BASE
5892
5893 def Type(self):
5894 r"""Type(SHAPE_BASE self) -> SHAPE_TYPE"""
5895 return _pcbnew.SHAPE_BASE_Type(self)
5896
5897 def TypeName(self):
5898 r"""TypeName(SHAPE_BASE self) -> wxString"""
5899 return _pcbnew.SHAPE_BASE_TypeName(self)
5900
5902 r"""HasIndexableSubshapes(SHAPE_BASE self) -> bool"""
5903 return _pcbnew.SHAPE_BASE_HasIndexableSubshapes(self)
5904
5906 r"""GetIndexableSubshapeCount(SHAPE_BASE self) -> size_t"""
5907 return _pcbnew.SHAPE_BASE_GetIndexableSubshapeCount(self)
5908
5909 def GetIndexableSubshapes(self, aSubshapes):
5910 r"""GetIndexableSubshapes(SHAPE_BASE self, std::vector< SHAPE const *,std::allocator< SHAPE const * > > & aSubshapes)"""
5911 return _pcbnew.SHAPE_BASE_GetIndexableSubshapes(self, aSubshapes)
5912
5913# Register SHAPE_BASE in _pcbnew:
5914_pcbnew.SHAPE_BASE_swigregister(SHAPE_BASE)
5916 r"""Proxy of C++ SHAPE class."""
5917
5918 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5919
5920 def __init__(self, *args, **kwargs):
5921 raise AttributeError("No constructor defined - class is abstract")
5922 __repr__ = _swig_repr
5923 MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
5924
5925 __swig_destroy__ = _pcbnew.delete_SHAPE
5926
5927 def Clone(self):
5928 r"""Clone(SHAPE self) -> SHAPE"""
5929 return _pcbnew.SHAPE_Clone(self)
5930
5931 def GetClearance(self, aOther):
5932 r"""GetClearance(SHAPE self, SHAPE aOther) -> int"""
5933 return _pcbnew.SHAPE_GetClearance(self, aOther)
5934
5935 def IsNull(self):
5936 r"""IsNull(SHAPE self) -> bool"""
5937 return _pcbnew.SHAPE_IsNull(self)
5938
5939 def Collide(self, *args):
5940 r"""
5941 Collide(SHAPE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5942 Collide(SHAPE self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
5943 Collide(SHAPE self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5944 Collide(SHAPE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
5945 """
5946 return _pcbnew.SHAPE_Collide(self, *args)
5947
5948 def BBox(self, aClearance=0):
5949 r"""BBox(SHAPE self, int aClearance=0) -> BOX2I"""
5950 return _pcbnew.SHAPE_BBox(self, aClearance)
5951
5952 def Centre(self):
5953 r"""Centre(SHAPE self) -> VECTOR2I"""
5954 return _pcbnew.SHAPE_Centre(self)
5955
5956 def Distance(self, aP):
5957 r"""Distance(SHAPE self, VECTOR2I aP) -> int"""
5958 return _pcbnew.SHAPE_Distance(self, aP)
5959
5960 def SquaredDistance(self, aP, aOutlineOnly=False):
5961 r"""SquaredDistance(SHAPE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord"""
5962 return _pcbnew.SHAPE_SquaredDistance(self, aP, aOutlineOnly)
5963
5964 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
5965 r"""PointInside(SHAPE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
5966 return _pcbnew.SHAPE_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
5967
5968 def TransformToPolygon(self, aBuffer, aError, aErrorLoc):
5969 r"""TransformToPolygon(SHAPE self, SHAPE_POLY_SET aBuffer, int aError, ERROR_LOC aErrorLoc)"""
5970 return _pcbnew.SHAPE_TransformToPolygon(self, aBuffer, aError, aErrorLoc)
5971
5972 def Rotate(self, *args):
5973 r"""Rotate(SHAPE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
5974 return _pcbnew.SHAPE_Rotate(self, *args)
5975
5976 def Move(self, aVector):
5977 r"""Move(SHAPE self, VECTOR2I aVector)"""
5978 return _pcbnew.SHAPE_Move(self, aVector)
5979
5980 def IsSolid(self):
5981 r"""IsSolid(SHAPE self) -> bool"""
5982 return _pcbnew.SHAPE_IsSolid(self)
5983
5984 def Parse(self, aStream):
5985 r"""Parse(SHAPE self, std::stringstream & aStream) -> bool"""
5986 return _pcbnew.SHAPE_Parse(self, aStream)
5987
5988 def Format(self, aCplusPlus=True):
5989 r"""Format(SHAPE self, bool aCplusPlus=True) -> string"""
5990 return _pcbnew.SHAPE_Format(self, aCplusPlus)
5991
5992 def Cast(self):
5993 shape_type = SHAPE_TYPE_asString(self.Type())
5994
5995 if shape_type == "SH_ARC":
5996 return Cast_to_SHAPE_ARC(self)
5997 elif shape_type == "SH_CIRCLE":
5998 return Cast_to_SHAPE_CIRCLE(self)
5999 elif shape_type == "SH_COMPOUND":
6000 return Cast_to_SHAPE_COMPOUND(self)
6001 elif shape_type == "SH_LINE_CHAIN":
6002 return Cast_to_SHAPE_LINE_CHAIN(self)
6003 elif shape_type == "SH_POLY_SET":
6004 return Cast_to_SHAPE_POLY_SET(self)
6005 elif shape_type == "SH_RECT":
6006 return Cast_to_SHAPE_RECT(self)
6007 elif shape_type == "SH_SEGMENT":
6008 return Cast_to_SHAPE_SEGMENT(self)
6009 elif shape_type == "SH_SIMPLE":
6010 return Cast_to_SHAPE_SIMPLE(self)
6011 else:
6012 raise TypeError("Unsupported shape class: %s" % shape_type)
6013
6014
6015# Register SHAPE in _pcbnew:
6016_pcbnew.SHAPE_swigregister(SHAPE)
6018 r"""Proxy of C++ SHAPE_LINE_CHAIN_BASE class."""
6019
6020 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6021
6022 def __init__(self, *args, **kwargs):
6023 raise AttributeError("No constructor defined - class is abstract")
6024 __repr__ = _swig_repr
6025 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN_BASE
6026
6027 def Collide(self, *args):
6028 r"""
6029 Collide(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6030 Collide(SHAPE_LINE_CHAIN_BASE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6031 """
6032 return _pcbnew.SHAPE_LINE_CHAIN_BASE_Collide(self, *args)
6033
6034 def SquaredDistance(self, aP, aOutlineOnly=False):
6035 r"""SquaredDistance(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord"""
6036 return _pcbnew.SHAPE_LINE_CHAIN_BASE_SquaredDistance(self, aP, aOutlineOnly)
6037
6038 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
6039 r"""PointInside(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
6040 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
6041
6042 def PointOnEdge(self, aP, aAccuracy=0):
6043 r"""PointOnEdge(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> bool"""
6044 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointOnEdge(self, aP, aAccuracy)
6045
6046 def EdgeContainingPoint(self, aP, aAccuracy=0):
6047 r"""EdgeContainingPoint(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> int"""
6048 return _pcbnew.SHAPE_LINE_CHAIN_BASE_EdgeContainingPoint(self, aP, aAccuracy)
6049
6050 def GetPoint(self, aIndex):
6051 r"""GetPoint(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> VECTOR2I"""
6052 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPoint(self, aIndex)
6053
6054 def GetSegment(self, aIndex):
6055 r"""GetSegment(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> SEG"""
6056 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegment(self, aIndex)
6057
6058 def GetPointCount(self):
6059 r"""GetPointCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
6060 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPointCount(self)
6061
6063 r"""GetSegmentCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
6064 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegmentCount(self)
6065
6066 def IsClosed(self):
6067 r"""IsClosed(SHAPE_LINE_CHAIN_BASE self) -> bool"""
6068 return _pcbnew.SHAPE_LINE_CHAIN_BASE_IsClosed(self)
6069
6070 def GetCachedBBox(self):
6071 r"""GetCachedBBox(SHAPE_LINE_CHAIN_BASE self) -> BOX2I"""
6072 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetCachedBBox(self)
6073
6074# Register SHAPE_LINE_CHAIN_BASE in _pcbnew:
6075_pcbnew.SHAPE_LINE_CHAIN_BASE_swigregister(SHAPE_LINE_CHAIN_BASE)
6077 r"""Proxy of C++ SHAPE_ARC class."""
6078
6079 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6080
6081 def __init__(self, *args, **kwargs):
6082 raise AttributeError("No constructor defined - class is abstract")
6083 __repr__ = _swig_repr
6084 __swig_destroy__ = _pcbnew.delete_SHAPE_ARC
6085
6086 def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0):
6087 r"""ConstructFromStartEndAngle(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, EDA_ANGLE aAngle, double aWidth=0) -> SHAPE_ARC"""
6088 return _pcbnew.SHAPE_ARC_ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth)
6089
6090 def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0):
6091 r"""ConstructFromStartEndCenter(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, VECTOR2I aCenter, bool aClockwise=False, double aWidth=0) -> SHAPE_ARC"""
6092 return _pcbnew.SHAPE_ARC_ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise, aWidth)
6093
6094 def GetP0(self):
6095 r"""GetP0(SHAPE_ARC self) -> VECTOR2I"""
6096 return _pcbnew.SHAPE_ARC_GetP0(self)
6097
6098 def GetP1(self):
6099 r"""GetP1(SHAPE_ARC self) -> VECTOR2I"""
6100 return _pcbnew.SHAPE_ARC_GetP1(self)
6101
6102 def GetArcMid(self):
6103 r"""GetArcMid(SHAPE_ARC self) -> VECTOR2I"""
6104 return _pcbnew.SHAPE_ARC_GetArcMid(self)
6105
6106 def GetCenter(self):
6107 r"""GetCenter(SHAPE_ARC self) -> VECTOR2I"""
6108 return _pcbnew.SHAPE_ARC_GetCenter(self)
6109
6110 def BBox(self, aClearance=0):
6111 r"""BBox(SHAPE_ARC self, int aClearance=0) -> BOX2I"""
6112 return _pcbnew.SHAPE_ARC_BBox(self, aClearance)
6113
6114 def NearestPoint(self, aP):
6115 r"""NearestPoint(SHAPE_ARC self, VECTOR2I aP) -> VECTOR2I"""
6116 return _pcbnew.SHAPE_ARC_NearestPoint(self, aP)
6117
6118 def NearestPoints(self, *args):
6119 r"""
6120 NearestPoints(SHAPE_ARC self, SHAPE_ARC aArc, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool
6121 NearestPoints(SHAPE_ARC self, SHAPE_CIRCLE aCircle, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool
6122 NearestPoints(SHAPE_ARC self, SEG aSeg, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool
6123 NearestPoints(SHAPE_ARC self, SHAPE_RECT aRect, VECTOR2I aPtA, VECTOR2I aPtB, int64_t & aDistSq) -> bool
6124 """
6125 return _pcbnew.SHAPE_ARC_NearestPoints(self, *args)
6126
6127 def Collide(self, *args):
6128 r"""
6129 Collide(SHAPE_ARC self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6130 Collide(SHAPE_ARC self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6131 Collide(SHAPE_ARC self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6132 """
6133 return _pcbnew.SHAPE_ARC_Collide(self, *args)
6134
6135 def IntersectLine(self, aSeg, aIpsBuffer):
6136 r"""IntersectLine(SHAPE_ARC self, SEG aSeg, VECTOR_VECTOR2I aIpsBuffer) -> int"""
6137 return _pcbnew.SHAPE_ARC_IntersectLine(self, aSeg, aIpsBuffer)
6138
6139 def Intersect(self, *args):
6140 r"""
6141 Intersect(SHAPE_ARC self, CIRCLE const & aArc, VECTOR_VECTOR2I aIpsBuffer) -> int
6142 Intersect(SHAPE_ARC self, SHAPE_ARC aArc, VECTOR_VECTOR2I aIpsBuffer) -> int
6143 """
6144 return _pcbnew.SHAPE_ARC_Intersect(self, *args)
6145
6146 def SetWidth(self, aWidth):
6147 r"""SetWidth(SHAPE_ARC self, int aWidth)"""
6148 return _pcbnew.SHAPE_ARC_SetWidth(self, aWidth)
6149
6150 def GetWidth(self):
6151 r"""GetWidth(SHAPE_ARC self) -> int"""
6152 return _pcbnew.SHAPE_ARC_GetWidth(self)
6153
6155 r"""IsEffectiveLine(SHAPE_ARC self) -> bool"""
6156 return _pcbnew.SHAPE_ARC_IsEffectiveLine(self)
6157
6158 def Mirror(self, *args):
6159 r"""
6160 Mirror(SHAPE_ARC self, VECTOR2I aRef, FLIP_DIRECTION aFlipDirection)
6161 Mirror(SHAPE_ARC self, SEG axis)
6162 """
6163 return _pcbnew.SHAPE_ARC_Mirror(self, *args)
6164
6165 def Reverse(self):
6166 r"""Reverse(SHAPE_ARC self)"""
6167 return _pcbnew.SHAPE_ARC_Reverse(self)
6168
6169 def Reversed(self):
6170 r"""Reversed(SHAPE_ARC self) -> SHAPE_ARC"""
6171 return _pcbnew.SHAPE_ARC_Reversed(self)
6172
6173 def GetRadius(self):
6174 r"""GetRadius(SHAPE_ARC self) -> double"""
6175 return _pcbnew.SHAPE_ARC_GetRadius(self)
6176
6177 def GetChord(self):
6178 r"""GetChord(SHAPE_ARC self) -> SEG"""
6179 return _pcbnew.SHAPE_ARC_GetChord(self)
6180
6182 r"""GetCentralAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6183 return _pcbnew.SHAPE_ARC_GetCentralAngle(self)
6184
6185 def GetStartAngle(self):
6186 r"""GetStartAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6187 return _pcbnew.SHAPE_ARC_GetStartAngle(self)
6188
6189 def GetEndAngle(self):
6190 r"""GetEndAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6191 return _pcbnew.SHAPE_ARC_GetEndAngle(self)
6192
6193 def GetLength(self):
6194 r"""GetLength(SHAPE_ARC self) -> double"""
6195 return _pcbnew.SHAPE_ARC_GetLength(self)
6196
6197 @staticmethod
6199 r"""DefaultAccuracyForPCB() -> double"""
6200 return _pcbnew.SHAPE_ARC_DefaultAccuracyForPCB()
6201
6202 def ConvertToPolyline(self, *args):
6203 r"""ConvertToPolyline(SHAPE_ARC self, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB(), double * aEffectiveAccuracy=None) -> SHAPE_LINE_CHAIN"""
6204 return _pcbnew.SHAPE_ARC_ConvertToPolyline(self, *args)
6205
6206 def __eq__(self, aArc):
6207 r"""__eq__(SHAPE_ARC self, SHAPE_ARC aArc) -> bool"""
6208 return _pcbnew.SHAPE_ARC___eq__(self, aArc)
6209
6210 def IsCCW(self):
6211 r"""IsCCW(SHAPE_ARC self) -> bool"""
6212 return _pcbnew.SHAPE_ARC_IsCCW(self)
6213
6214 def IsClockwise(self):
6215 r"""IsClockwise(SHAPE_ARC self) -> bool"""
6216 return _pcbnew.SHAPE_ARC_IsClockwise(self)
6217
6218# Register SHAPE_ARC in _pcbnew:
6219_pcbnew.SHAPE_ARC_swigregister(SHAPE_ARC)
6221 r"""Proxy of C++ SHAPE_CIRCLE class."""
6222
6223 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6224 __repr__ = _swig_repr
6225
6226 def __init__(self, *args):
6227 r"""
6228 __init__(SHAPE_CIRCLE self) -> SHAPE_CIRCLE
6229 __init__(SHAPE_CIRCLE self, VECTOR2I aCenter, int aRadius) -> SHAPE_CIRCLE
6230 __init__(SHAPE_CIRCLE self, CIRCLE const & aCircle) -> SHAPE_CIRCLE
6231 __init__(SHAPE_CIRCLE self, SHAPE_CIRCLE aOther) -> SHAPE_CIRCLE
6232 """
6233 _pcbnew.SHAPE_CIRCLE_swiginit(self, _pcbnew.new_SHAPE_CIRCLE(*args))
6234 __swig_destroy__ = _pcbnew.delete_SHAPE_CIRCLE
6235
6236 def BBox(self, aClearance=0):
6237 r"""BBox(SHAPE_CIRCLE self, int aClearance=0) -> BOX2I"""
6238 return _pcbnew.SHAPE_CIRCLE_BBox(self, aClearance)
6239
6240 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
6241 r"""Collide(SHAPE_CIRCLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
6242 return _pcbnew.SHAPE_CIRCLE_Collide(self, aSeg, aClearance, aActual, aLocation)
6243
6244 def SetRadius(self, aRadius):
6245 r"""SetRadius(SHAPE_CIRCLE self, int aRadius)"""
6246 return _pcbnew.SHAPE_CIRCLE_SetRadius(self, aRadius)
6247
6248 def SetCenter(self, aCenter):
6249 r"""SetCenter(SHAPE_CIRCLE self, VECTOR2I aCenter)"""
6250 return _pcbnew.SHAPE_CIRCLE_SetCenter(self, aCenter)
6251
6252 def GetRadius(self):
6253 r"""GetRadius(SHAPE_CIRCLE self) -> int"""
6254 return _pcbnew.SHAPE_CIRCLE_GetRadius(self)
6255
6256 def GetCenter(self):
6257 r"""GetCenter(SHAPE_CIRCLE self) -> VECTOR2I"""
6258 return _pcbnew.SHAPE_CIRCLE_GetCenter(self)
6259
6260 def GetCircle(self):
6261 r"""GetCircle(SHAPE_CIRCLE self) -> CIRCLE const"""
6262 return _pcbnew.SHAPE_CIRCLE_GetCircle(self)
6263
6264 def Rotate(self, *args):
6265 r"""Rotate(SHAPE_CIRCLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6266 return _pcbnew.SHAPE_CIRCLE_Rotate(self, *args)
6267
6268 def Format(self, aCplusPlus=True):
6269 r"""Format(SHAPE_CIRCLE self, bool aCplusPlus=True) -> string"""
6270 return _pcbnew.SHAPE_CIRCLE_Format(self, aCplusPlus)
6271
6272# Register SHAPE_CIRCLE in _pcbnew:
6273_pcbnew.SHAPE_CIRCLE_swigregister(SHAPE_CIRCLE)
6275 r"""Proxy of C++ SHAPE_COMPOUND class."""
6276
6277 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6278 __repr__ = _swig_repr
6279
6280 def __init__(self, *args):
6281 r"""
6282 __init__(SHAPE_COMPOUND self) -> SHAPE_COMPOUND
6283 __init__(SHAPE_COMPOUND self, std::vector< SHAPE *,std::allocator< SHAPE * > > const & aShapes) -> SHAPE_COMPOUND
6284 __init__(SHAPE_COMPOUND self, SHAPE_COMPOUND aOther) -> SHAPE_COMPOUND
6285 """
6286 _pcbnew.SHAPE_COMPOUND_swiginit(self, _pcbnew.new_SHAPE_COMPOUND(*args))
6287 __swig_destroy__ = _pcbnew.delete_SHAPE_COMPOUND
6288
6289 def Clone(self):
6290 r"""Clone(SHAPE_COMPOUND self) -> SHAPE_COMPOUND"""
6291 return _pcbnew.SHAPE_COMPOUND_Clone(self)
6292
6293 def Format(self, aCplusPlus=True):
6294 r"""Format(SHAPE_COMPOUND self, bool aCplusPlus=True) -> string"""
6295 return _pcbnew.SHAPE_COMPOUND_Format(self, aCplusPlus)
6296
6297 def Collide(self, *args):
6298 r"""
6299 Collide(SHAPE_COMPOUND self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6300 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
6301 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6302 """
6303 return _pcbnew.SHAPE_COMPOUND_Collide(self, *args)
6304
6305 def Shapes(self):
6306 r"""Shapes(SHAPE_COMPOUND self) -> std::vector< SHAPE *,std::allocator< SHAPE * > > const &"""
6307 return _pcbnew.SHAPE_COMPOUND_Shapes(self)
6308
6309 def BBox(self, aClearance=0):
6310 r"""BBox(SHAPE_COMPOUND self, int aClearance=0) -> BOX2I"""
6311 return _pcbnew.SHAPE_COMPOUND_BBox(self, aClearance)
6312
6313 def Distance(self, *args):
6314 r"""
6315 Distance(SHAPE_COMPOUND self, VECTOR2I aP) -> int
6316 Distance(SHAPE_COMPOUND self, SEG aSeg) -> int
6317 """
6318 return _pcbnew.SHAPE_COMPOUND_Distance(self, *args)
6319
6320 def AddShape(self, *args):
6321 r"""
6322 AddShape(SHAPE_COMPOUND self, SHAPE aShape)
6323 AddShape(SHAPE_COMPOUND self, std::shared_ptr< SHAPE > aShape)
6324 """
6325 return _pcbnew.SHAPE_COMPOUND_AddShape(self, *args)
6326
6327 def Empty(self):
6328 r"""Empty(SHAPE_COMPOUND self) -> bool"""
6329 return _pcbnew.SHAPE_COMPOUND_Empty(self)
6330
6331 def Size(self):
6332 r"""Size(SHAPE_COMPOUND self) -> int"""
6333 return _pcbnew.SHAPE_COMPOUND_Size(self)
6334
6335 def Rotate(self, *args):
6336 r"""Rotate(SHAPE_COMPOUND self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6337 return _pcbnew.SHAPE_COMPOUND_Rotate(self, *args)
6338
6340 r"""UniqueSubshape(SHAPE_COMPOUND self) -> SHAPE"""
6341 return _pcbnew.SHAPE_COMPOUND_UniqueSubshape(self)
6342
6343 def GetSubshapes(self):
6344 r"""GetSubshapes(SHAPE_COMPOUND self) -> VECTOR_SHAPEPTR"""
6345 return _pcbnew.SHAPE_COMPOUND_GetSubshapes(self)
6346
6347# Register SHAPE_COMPOUND in _pcbnew:
6348_pcbnew.SHAPE_COMPOUND_swigregister(SHAPE_COMPOUND)
6350 r"""Proxy of C++ CLIPPER_Z_VALUE class."""
6351
6352 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6353 __repr__ = _swig_repr
6354
6355 def __init__(self, *args):
6356 r"""
6357 __init__(CLIPPER_Z_VALUE self) -> CLIPPER_Z_VALUE
6358 __init__(CLIPPER_Z_VALUE self, std::pair< ssize_t,ssize_t > const aShapeIndices, ssize_t aOffset=0) -> CLIPPER_Z_VALUE
6359 """
6360 _pcbnew.CLIPPER_Z_VALUE_swiginit(self, _pcbnew.new_CLIPPER_Z_VALUE(*args))
6361 m_FirstArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_set, doc=r"""m_FirstArcIdx : ssize_t""")
6362 m_SecondArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_set, doc=r"""m_SecondArcIdx : ssize_t""")
6363 __swig_destroy__ = _pcbnew.delete_CLIPPER_Z_VALUE
6364
6365# Register CLIPPER_Z_VALUE in _pcbnew:
6366_pcbnew.CLIPPER_Z_VALUE_swigregister(CLIPPER_Z_VALUE)
6368 r"""Proxy of C++ SHAPE_LINE_CHAIN class."""
6369
6370 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6371 __repr__ = _swig_repr
6372
6373 def __init__(self, *args):
6374 r"""
6375 __init__(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN
6376 __init__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aShape) -> SHAPE_LINE_CHAIN
6377 __init__(SHAPE_LINE_CHAIN self, intVector aV) -> SHAPE_LINE_CHAIN
6378 __init__(SHAPE_LINE_CHAIN self, VECTOR_VECTOR2I aV, bool aClosed=False) -> SHAPE_LINE_CHAIN
6379 __init__(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, bool aClosed=False) -> SHAPE_LINE_CHAIN
6380 __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
6381 """
6382 _pcbnew.SHAPE_LINE_CHAIN_swiginit(self, _pcbnew.new_SHAPE_LINE_CHAIN(*args))
6383 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN
6384
6385 def Collide(self, *args):
6386 r"""
6387 Collide(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6388 Collide(SHAPE_LINE_CHAIN self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6389 """
6390 return _pcbnew.SHAPE_LINE_CHAIN_Collide(self, *args)
6391
6392 @staticmethod
6393 def ClosestPoints(*args):
6394 r"""
6395 ClosestPoints(SHAPE_LINE_CHAIN aOther, VECTOR2I aPt0, VECTOR2I aPt1) -> bool
6396 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
6397 """
6398 return _pcbnew.SHAPE_LINE_CHAIN_ClosestPoints(*args)
6399
6400 @staticmethod
6401 def ClosestSegments(aMyPrevPt, aMyStart, aMyEnd, aOtherPrevPt, aOtherStart, aOtherEnd, aPt0, aPt1, aDistSq):
6402 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"""
6403 return _pcbnew.SHAPE_LINE_CHAIN_ClosestSegments(aMyPrevPt, aMyStart, aMyEnd, aOtherPrevPt, aOtherStart, aOtherEnd, aPt0, aPt1, aDistSq)
6404
6405 def ClosestSegmentsFast(self, aOther, aPt0, aPt1):
6406 r"""ClosestSegmentsFast(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOther, VECTOR2I aPt0, VECTOR2I aPt1) -> bool"""
6407 return _pcbnew.SHAPE_LINE_CHAIN_ClosestSegmentsFast(self, aOther, aPt0, aPt1)
6408
6409 def Clear(self):
6410 r"""Clear(SHAPE_LINE_CHAIN self)"""
6411 return _pcbnew.SHAPE_LINE_CHAIN_Clear(self)
6412
6413 def SetClosed(self, aClosed):
6414 r"""SetClosed(SHAPE_LINE_CHAIN self, bool aClosed)"""
6415 return _pcbnew.SHAPE_LINE_CHAIN_SetClosed(self, aClosed)
6416
6417 def SetWidth(self, aWidth):
6418 r"""SetWidth(SHAPE_LINE_CHAIN self, int aWidth)"""
6419 return _pcbnew.SHAPE_LINE_CHAIN_SetWidth(self, aWidth)
6420
6421 def Width(self):
6422 r"""Width(SHAPE_LINE_CHAIN self) -> int"""
6423 return _pcbnew.SHAPE_LINE_CHAIN_Width(self)
6424
6425 def SegmentCount(self):
6426 r"""SegmentCount(SHAPE_LINE_CHAIN self) -> int"""
6427 return _pcbnew.SHAPE_LINE_CHAIN_SegmentCount(self)
6428
6429 def ShapeCount(self):
6430 r"""ShapeCount(SHAPE_LINE_CHAIN self) -> int"""
6431 return _pcbnew.SHAPE_LINE_CHAIN_ShapeCount(self)
6432
6434 r"""RemoveDuplicatePoints(SHAPE_LINE_CHAIN self)"""
6435 return _pcbnew.SHAPE_LINE_CHAIN_RemoveDuplicatePoints(self)
6436
6437 def Simplify(self, aMaxError=0):
6438 r"""Simplify(SHAPE_LINE_CHAIN self, int aMaxError=0)"""
6439 return _pcbnew.SHAPE_LINE_CHAIN_Simplify(self, aMaxError)
6440
6441 def Simplify2(self, aRemoveColinear=True):
6442 r"""Simplify2(SHAPE_LINE_CHAIN self, bool aRemoveColinear=True) -> SHAPE_LINE_CHAIN"""
6443 return _pcbnew.SHAPE_LINE_CHAIN_Simplify2(self, aRemoveColinear)
6444
6445 def PointCount(self):
6446 r"""PointCount(SHAPE_LINE_CHAIN self) -> int"""
6447 return _pcbnew.SHAPE_LINE_CHAIN_PointCount(self)
6448
6449 def Segment(self, aIndex):
6450 r"""Segment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6451 return _pcbnew.SHAPE_LINE_CHAIN_Segment(self, aIndex)
6452
6453 def CSegment(self, aIndex):
6454 r"""CSegment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6455 return _pcbnew.SHAPE_LINE_CHAIN_CSegment(self, aIndex)
6456
6457 def NextShape(self, aPointIndex):
6458 r"""NextShape(SHAPE_LINE_CHAIN self, int aPointIndex) -> int"""
6459 return _pcbnew.SHAPE_LINE_CHAIN_NextShape(self, aPointIndex)
6460
6461 def SetPoint(self, aIndex, aPos):
6462 r"""SetPoint(SHAPE_LINE_CHAIN self, int aIndex, VECTOR2I aPos)"""
6463 return _pcbnew.SHAPE_LINE_CHAIN_SetPoint(self, aIndex, aPos)
6464
6465 def CPoint(self, aIndex):
6466 r"""CPoint(SHAPE_LINE_CHAIN self, int aIndex) -> VECTOR2I"""
6467 return _pcbnew.SHAPE_LINE_CHAIN_CPoint(self, aIndex)
6468
6469 def CPoints(self):
6470 r"""CPoints(SHAPE_LINE_CHAIN self) -> VECTOR_VECTOR2I"""
6471 return _pcbnew.SHAPE_LINE_CHAIN_CPoints(self)
6472
6473 def CLastPoint(self):
6474 r"""CLastPoint(SHAPE_LINE_CHAIN self) -> VECTOR2I"""
6475 return _pcbnew.SHAPE_LINE_CHAIN_CLastPoint(self)
6476
6477 def CArcs(self):
6478 r"""CArcs(SHAPE_LINE_CHAIN self) -> std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > const &"""
6479 return _pcbnew.SHAPE_LINE_CHAIN_CArcs(self)
6480
6481 def CShapes(self):
6482 r"""CShapes(SHAPE_LINE_CHAIN self) -> std::vector< std::pair< ssize_t,ssize_t >,std::allocator< std::pair< ssize_t,ssize_t > > > const &"""
6483 return _pcbnew.SHAPE_LINE_CHAIN_CShapes(self)
6484
6485 def BBox(self, aClearance=0):
6486 r"""BBox(SHAPE_LINE_CHAIN self, int aClearance=0) -> BOX2I"""
6487 return _pcbnew.SHAPE_LINE_CHAIN_BBox(self, aClearance)
6488
6490 r"""GenerateBBoxCache(SHAPE_LINE_CHAIN self)"""
6491 return _pcbnew.SHAPE_LINE_CHAIN_GenerateBBoxCache(self)
6492
6493 def Reverse(self):
6494 r"""Reverse(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN"""
6495 return _pcbnew.SHAPE_LINE_CHAIN_Reverse(self)
6496
6497 def ClearArcs(self):
6498 r"""ClearArcs(SHAPE_LINE_CHAIN self)"""
6499 return _pcbnew.SHAPE_LINE_CHAIN_ClearArcs(self)
6500
6501 def Length(self):
6502 r"""Length(SHAPE_LINE_CHAIN self) -> long long"""
6503 return _pcbnew.SHAPE_LINE_CHAIN_Length(self)
6504
6505 def ReservePoints(self, aSize):
6506 r"""ReservePoints(SHAPE_LINE_CHAIN self, size_t aSize)"""
6507 return _pcbnew.SHAPE_LINE_CHAIN_ReservePoints(self, aSize)
6508
6509 def Append(self, *args):
6510 r"""
6511 Append(SHAPE_LINE_CHAIN self, int aX, int aY, bool aAllowDuplication=False)
6512 Append(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowDuplication=False)
6513 Append(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOtherLine)
6514 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc)
6515 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, double aAccuracy)
6516 """
6517 return _pcbnew.SHAPE_LINE_CHAIN_Append(self, *args)
6518
6519 def Insert(self, *args):
6520 r"""
6521 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, VECTOR2I aP)
6522 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, SHAPE_ARC aArc)
6523 """
6524 return _pcbnew.SHAPE_LINE_CHAIN_Insert(self, *args)
6525
6526 def Replace(self, *args):
6527 r"""
6528 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, VECTOR2I aP)
6529 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, SHAPE_LINE_CHAIN aLine)
6530 """
6531 return _pcbnew.SHAPE_LINE_CHAIN_Replace(self, *args)
6532
6533 def Remove(self, *args):
6534 r"""
6535 Remove(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex)
6536 Remove(SHAPE_LINE_CHAIN self, int aIndex)
6537 """
6538 return _pcbnew.SHAPE_LINE_CHAIN_Remove(self, *args)
6539
6540 def RemoveShape(self, aPointIndex):
6541 r"""RemoveShape(SHAPE_LINE_CHAIN self, int aPointIndex)"""
6542 return _pcbnew.SHAPE_LINE_CHAIN_RemoveShape(self, aPointIndex)
6543
6544 def Find(self, aP, aThreshold=0):
6545 r"""Find(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=0) -> int"""
6546 return _pcbnew.SHAPE_LINE_CHAIN_Find(self, aP, aThreshold)
6547
6548 def FindSegment(self, aP, aThreshold=1):
6549 r"""FindSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=1) -> int"""
6550 return _pcbnew.SHAPE_LINE_CHAIN_FindSegment(self, aP, aThreshold)
6551
6552 def Slice(self, aStartIndex, aEndIndex=-1):
6553 r"""Slice(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex=-1) -> SHAPE_LINE_CHAIN"""
6554 return _pcbnew.SHAPE_LINE_CHAIN_Slice(self, aStartIndex, aEndIndex)
6555
6556 def Intersects(self, aChain):
6557 r"""Intersects(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain) -> bool"""
6558 return _pcbnew.SHAPE_LINE_CHAIN_Intersects(self, aChain)
6559
6560 def Intersect(self, *args):
6561 r"""
6562 Intersect(SHAPE_LINE_CHAIN self, SEG aSeg, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp) -> int
6563 Intersect(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp, bool aExcludeColinearAndTouching=False, BOX2I aChainBBox=None) -> int
6564 """
6565 return _pcbnew.SHAPE_LINE_CHAIN_Intersect(self, *args)
6566
6567 def PathLength(self, aP, aIndex=-1):
6568 r"""PathLength(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aIndex=-1) -> int"""
6569 return _pcbnew.SHAPE_LINE_CHAIN_PathLength(self, aP, aIndex)
6570
6571 def CheckClearance(self, aP, aDist):
6572 r"""CheckClearance(SHAPE_LINE_CHAIN self, VECTOR2I aP, int const aDist) -> bool"""
6573 return _pcbnew.SHAPE_LINE_CHAIN_CheckClearance(self, aP, aDist)
6574
6576 r"""SelfIntersecting(SHAPE_LINE_CHAIN self) -> std::optional< SHAPE_LINE_CHAIN::INTERSECTION > const"""
6577 return _pcbnew.SHAPE_LINE_CHAIN_SelfIntersecting(self)
6578
6580 r"""SelfIntersectingWithArcs(SHAPE_LINE_CHAIN self) -> std::optional< SHAPE_LINE_CHAIN::INTERSECTION > const"""
6581 return _pcbnew.SHAPE_LINE_CHAIN_SelfIntersectingWithArcs(self)
6582
6583 def NearestSegment(self, aP):
6584 r"""NearestSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
6585 return _pcbnew.SHAPE_LINE_CHAIN_NearestSegment(self, aP)
6586
6587 def NearestPoint(self, *args):
6588 r"""
6589 NearestPoint(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowInternalShapePoints=True) -> VECTOR2I
6590 NearestPoint(SHAPE_LINE_CHAIN self, SEG aSeg, int & dist) -> VECTOR2I
6591 """
6592 return _pcbnew.SHAPE_LINE_CHAIN_NearestPoint(self, *args)
6593
6594 def Format(self, aCplusPlus=True):
6595 r"""Format(SHAPE_LINE_CHAIN self, bool aCplusPlus=True) -> string"""
6596 return _pcbnew.SHAPE_LINE_CHAIN_Format(self, aCplusPlus)
6597
6598 def __ne__(self, aRhs):
6599 r"""__ne__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aRhs) -> bool"""
6600 return _pcbnew.SHAPE_LINE_CHAIN___ne__(self, aRhs)
6601
6602 def CompareGeometry(self, aOther):
6603 r"""CompareGeometry(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOther) -> bool"""
6604 return _pcbnew.SHAPE_LINE_CHAIN_CompareGeometry(self, aOther)
6605
6606 def Mirror(self, *args):
6607 r"""
6608 Mirror(SHAPE_LINE_CHAIN self, VECTOR2I aRef, FLIP_DIRECTION aFlipDirection)
6609 Mirror(SHAPE_LINE_CHAIN self, SEG axis)
6610 """
6611 return _pcbnew.SHAPE_LINE_CHAIN_Mirror(self, *args)
6612
6613 def Rotate(self, *args):
6614 r"""Rotate(SHAPE_LINE_CHAIN self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6615 return _pcbnew.SHAPE_LINE_CHAIN_Rotate(self, *args)
6616
6617 def PointAlong(self, aPathLength):
6618 r"""PointAlong(SHAPE_LINE_CHAIN self, int aPathLength) -> VECTOR2I"""
6619 return _pcbnew.SHAPE_LINE_CHAIN_PointAlong(self, aPathLength)
6620
6621 def Area(self, aAbsolute=True):
6622 r"""Area(SHAPE_LINE_CHAIN self, bool aAbsolute=True) -> double"""
6623 return _pcbnew.SHAPE_LINE_CHAIN_Area(self, aAbsolute)
6624
6625 def Split(self, *args):
6626 r"""
6627 Split(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aExact=False) -> int
6628 Split(SHAPE_LINE_CHAIN self, VECTOR2I aStart, VECTOR2I aEnd, SHAPE_LINE_CHAIN aPre, SHAPE_LINE_CHAIN aMid, SHAPE_LINE_CHAIN aPost)
6629 """
6630 return _pcbnew.SHAPE_LINE_CHAIN_Split(self, *args)
6631
6632 def OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify=False):
6633 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"""
6634 return _pcbnew.SHAPE_LINE_CHAIN_OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify)
6635
6636 def ArcCount(self):
6637 r"""ArcCount(SHAPE_LINE_CHAIN self) -> size_t"""
6638 return _pcbnew.SHAPE_LINE_CHAIN_ArcCount(self)
6639
6640 def ArcIndex(self, aSegment):
6641 r"""ArcIndex(SHAPE_LINE_CHAIN self, size_t aSegment) -> ssize_t"""
6642 return _pcbnew.SHAPE_LINE_CHAIN_ArcIndex(self, aSegment)
6643
6644 def Arc(self, aArc):
6645 r"""Arc(SHAPE_LINE_CHAIN self, size_t aArc) -> SHAPE_ARC"""
6646 return _pcbnew.SHAPE_LINE_CHAIN_Arc(self, aArc)
6647
6648 def IsSharedPt(self, aIndex):
6649 r"""IsSharedPt(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6650 return _pcbnew.SHAPE_LINE_CHAIN_IsSharedPt(self, aIndex)
6651
6652 def IsPtOnArc(self, aPtIndex):
6653 r"""IsPtOnArc(SHAPE_LINE_CHAIN self, size_t aPtIndex) -> bool"""
6654 return _pcbnew.SHAPE_LINE_CHAIN_IsPtOnArc(self, aPtIndex)
6655
6656 def IsArcSegment(self, aSegment):
6657 r"""IsArcSegment(SHAPE_LINE_CHAIN self, size_t aSegment) -> bool"""
6658 return _pcbnew.SHAPE_LINE_CHAIN_IsArcSegment(self, aSegment)
6659
6660 def IsArcStart(self, aIndex):
6661 r"""IsArcStart(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6662 return _pcbnew.SHAPE_LINE_CHAIN_IsArcStart(self, aIndex)
6663
6664 def IsArcEnd(self, aIndex):
6665 r"""IsArcEnd(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6666 return _pcbnew.SHAPE_LINE_CHAIN_IsArcEnd(self, aIndex)
6667
6668 def Distance(self, *args):
6669 r"""
6670 Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int
6671 Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aOutlineOnly) -> int
6672 """
6673 return _pcbnew.SHAPE_LINE_CHAIN_Distance(self, *args)
6674
6675# Register SHAPE_LINE_CHAIN in _pcbnew:
6676_pcbnew.SHAPE_LINE_CHAIN_swigregister(SHAPE_LINE_CHAIN)
6678 r"""Proxy of C++ SHAPE_POLY_SET class."""
6679
6680 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6681 __repr__ = _swig_repr
6682
6683 def __init__(self, *args):
6684 r"""
6685 __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
6686 __init__(SHAPE_POLY_SET self, BOX2D const & aRect) -> SHAPE_POLY_SET
6687 __init__(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> SHAPE_POLY_SET
6688 __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & aPolygon) -> SHAPE_POLY_SET
6689 __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET
6690 """
6691 _pcbnew.SHAPE_POLY_SET_swiginit(self, _pcbnew.new_SHAPE_POLY_SET(*args))
6692 __swig_destroy__ = _pcbnew.delete_SHAPE_POLY_SET
6693
6694 def CacheTriangulation(self, aPartition=True, aSimplify=False):
6695 r"""CacheTriangulation(SHAPE_POLY_SET self, bool aPartition=True, bool aSimplify=False)"""
6696 return _pcbnew.SHAPE_POLY_SET_CacheTriangulation(self, aPartition, aSimplify)
6697
6699 r"""IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool"""
6700 return _pcbnew.SHAPE_POLY_SET_IsTriangulationUpToDate(self)
6701
6702 def GetHash(self):
6703 r"""GetHash(SHAPE_POLY_SET self) -> HASH_128"""
6704 return _pcbnew.SHAPE_POLY_SET_GetHash(self)
6705
6706 def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices):
6707 r"""GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool"""
6708 return _pcbnew.SHAPE_POLY_SET_GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
6709
6710 def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx):
6711 r"""GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool"""
6712 return _pcbnew.SHAPE_POLY_SET_GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
6713
6715 r"""CloneDropTriangulation(SHAPE_POLY_SET self) -> SHAPE_POLY_SET"""
6716 return _pcbnew.SHAPE_POLY_SET_CloneDropTriangulation(self)
6717
6718 def NewOutline(self):
6719 r"""NewOutline(SHAPE_POLY_SET self) -> int"""
6720 return _pcbnew.SHAPE_POLY_SET_NewOutline(self)
6721
6722 def NewHole(self, aOutline=-1):
6723 r"""NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int"""
6724 return _pcbnew.SHAPE_POLY_SET_NewHole(self, aOutline)
6725
6726 def AddOutline(self, aOutline):
6727 r"""AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> int"""
6728 return _pcbnew.SHAPE_POLY_SET_AddOutline(self, aOutline)
6729
6730 def AddHole(self, aHole, aOutline=-1):
6731 r"""AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole, int aOutline=-1) -> int"""
6732 return _pcbnew.SHAPE_POLY_SET_AddHole(self, aHole, aOutline)
6733
6734 def AddPolygon(self, apolygon):
6735 r"""AddPolygon(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & apolygon) -> int"""
6736 return _pcbnew.SHAPE_POLY_SET_AddPolygon(self, apolygon)
6737
6738 def Area(self):
6739 r"""Area(SHAPE_POLY_SET self) -> double"""
6740 return _pcbnew.SHAPE_POLY_SET_Area(self)
6741
6742 def ArcCount(self):
6743 r"""ArcCount(SHAPE_POLY_SET self) -> int"""
6744 return _pcbnew.SHAPE_POLY_SET_ArcCount(self)
6745
6746 def GetArcs(self, aArcBuffer):
6747 r"""GetArcs(SHAPE_POLY_SET self, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > & aArcBuffer)"""
6748 return _pcbnew.SHAPE_POLY_SET_GetArcs(self, aArcBuffer)
6749
6750 def ClearArcs(self):
6751 r"""ClearArcs(SHAPE_POLY_SET self)"""
6752 return _pcbnew.SHAPE_POLY_SET_ClearArcs(self)
6753
6754 def Append(self, *args):
6755 r"""
6756 Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
6757 Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
6758 Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1, int aHole=-1)
6759 Append(SHAPE_POLY_SET self, SHAPE_ARC aArc, int aOutline=-1, int aHole=-1, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB()) -> int
6760 """
6761 return _pcbnew.SHAPE_POLY_SET_Append(self, *args)
6762
6763 def InsertVertex(self, aGlobalIndex, aNewVertex):
6764 r"""InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)"""
6765 return _pcbnew.SHAPE_POLY_SET_InsertVertex(self, aGlobalIndex, aNewVertex)
6766
6767 def CVertex(self, *args):
6768 r"""
6769 CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
6770 CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
6771 CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I
6772 """
6773 return _pcbnew.SHAPE_POLY_SET_CVertex(self, *args)
6774
6775 def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext):
6776 r"""GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool"""
6777 return _pcbnew.SHAPE_POLY_SET_GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
6778
6779 def IsPolygonSelfIntersecting(self, aPolygonIndex):
6780 r"""IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool"""
6781 return _pcbnew.SHAPE_POLY_SET_IsPolygonSelfIntersecting(self, aPolygonIndex)
6782
6784 r"""IsSelfIntersecting(SHAPE_POLY_SET self) -> bool"""
6785 return _pcbnew.SHAPE_POLY_SET_IsSelfIntersecting(self)
6786
6788 r"""TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int"""
6789 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolyCount(self)
6790
6791 def OutlineCount(self):
6792 r"""OutlineCount(SHAPE_POLY_SET self) -> int"""
6793 return _pcbnew.SHAPE_POLY_SET_OutlineCount(self)
6794
6795 def VertexCount(self, aOutline=-1, aHole=-1):
6796 r"""VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int"""
6797 return _pcbnew.SHAPE_POLY_SET_VertexCount(self, aOutline, aHole)
6798
6800 r"""FullPointCount(SHAPE_POLY_SET self) -> int"""
6801 return _pcbnew.SHAPE_POLY_SET_FullPointCount(self)
6802
6803 def HoleCount(self, aOutline):
6804 r"""HoleCount(SHAPE_POLY_SET self, int aOutline) -> int"""
6805 return _pcbnew.SHAPE_POLY_SET_HoleCount(self, aOutline)
6806
6807 def Outline(self, *args):
6808 r"""
6809 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6810 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6811 """
6812 return _pcbnew.SHAPE_POLY_SET_Outline(self, *args)
6813
6814 def Subset(self, aFirstPolygon, aLastPolygon):
6815 r"""Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET"""
6816 return _pcbnew.SHAPE_POLY_SET_Subset(self, aFirstPolygon, aLastPolygon)
6817
6818 def UnitSet(self, aPolygonIndex):
6819 r"""UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET"""
6820 return _pcbnew.SHAPE_POLY_SET_UnitSet(self, aPolygonIndex)
6821
6822 def Hole(self, aOutline, aHole):
6823 r"""Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6824 return _pcbnew.SHAPE_POLY_SET_Hole(self, aOutline, aHole)
6825
6826 def Polygon(self, *args):
6827 r"""
6828 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
6829 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &
6830 """
6831 return _pcbnew.SHAPE_POLY_SET_Polygon(self, *args)
6832
6833 def TriangulatedPolygon(self, aIndex):
6834 r"""TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *"""
6835 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolygon(self, aIndex)
6836
6837 def COutline(self, aIndex):
6838 r"""COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN"""
6839 return _pcbnew.SHAPE_POLY_SET_COutline(self, aIndex)
6840
6841 def CHole(self, aOutline, aHole):
6842 r"""CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6843 return _pcbnew.SHAPE_POLY_SET_CHole(self, aOutline, aHole)
6844
6845 def CPolygon(self, aIndex):
6846 r"""CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &"""
6847 return _pcbnew.SHAPE_POLY_SET_CPolygon(self, aIndex)
6848
6849 def CPolygons(self):
6850 r"""CPolygons(SHAPE_POLY_SET self) -> std::vector< SHAPE_POLY_SET::POLYGON,std::allocator< SHAPE_POLY_SET::POLYGON > > const &"""
6851 return _pcbnew.SHAPE_POLY_SET_CPolygons(self)
6852
6853 def Iterate(self, *args):
6854 r"""
6855 Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
6856 Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6857 Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6858 """
6859 return _pcbnew.SHAPE_POLY_SET_Iterate(self, *args)
6860
6861 def IterateWithHoles(self, *args):
6862 r"""
6863 IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6864 IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6865 """
6866 return _pcbnew.SHAPE_POLY_SET_IterateWithHoles(self, *args)
6867
6868 def CIterate(self, *args):
6869 r"""
6870 CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
6871 CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
6872 CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
6873 """
6874 return _pcbnew.SHAPE_POLY_SET_CIterate(self, *args)
6875
6876 def CIterateWithHoles(self, *args):
6877 r"""
6878 CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
6879 CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
6880 """
6881 return _pcbnew.SHAPE_POLY_SET_CIterateWithHoles(self, *args)
6882
6883 def IterateFromVertexWithHoles(self, aGlobalIdx):
6884 r"""IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR"""
6885 return _pcbnew.SHAPE_POLY_SET_IterateFromVertexWithHoles(self, aGlobalIdx)
6886
6887 def IterateSegments(self, *args):
6888 r"""
6889 IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6890 IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6891 IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6892 """
6893 return _pcbnew.SHAPE_POLY_SET_IterateSegments(self, *args)
6894
6895 def CIterateSegments(self, *args):
6896 r"""
6897 CIterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6898 CIterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6899 CIterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6900 """
6901 return _pcbnew.SHAPE_POLY_SET_CIterateSegments(self, *args)
6902
6904 r"""
6905 IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6906 IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
6907 """
6908 return _pcbnew.SHAPE_POLY_SET_IterateSegmentsWithHoles(self, *args)
6909
6911 r"""
6912 CIterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6913 CIterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
6914 """
6915 return _pcbnew.SHAPE_POLY_SET_CIterateSegmentsWithHoles(self, *args)
6916
6917 def BooleanAdd(self, *args):
6918 r"""
6919 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b)
6920 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)
6921 """
6922 return _pcbnew.SHAPE_POLY_SET_BooleanAdd(self, *args)
6923
6924 def BooleanSubtract(self, *args):
6925 r"""
6926 BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b)
6927 BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)
6928 """
6929 return _pcbnew.SHAPE_POLY_SET_BooleanSubtract(self, *args)
6930
6931 def BooleanIntersection(self, *args):
6932 r"""
6933 BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b)
6934 BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)
6935 """
6936 return _pcbnew.SHAPE_POLY_SET_BooleanIntersection(self, *args)
6937
6938 def BooleanXor(self, *args):
6939 r"""
6940 BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET b)
6941 BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b)
6942 """
6943 return _pcbnew.SHAPE_POLY_SET_BooleanXor(self, *args)
6944
6946 r"""RebuildHolesFromContours(SHAPE_POLY_SET self)"""
6947 return _pcbnew.SHAPE_POLY_SET_RebuildHolesFromContours(self)
6948
6949 def Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify=False):
6950 r"""Inflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify=False)"""
6951 return _pcbnew.SHAPE_POLY_SET_Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify)
6952
6953 def Deflate(self, aAmount, aCornerStrategy, aMaxError):
6954 r"""Deflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError)"""
6955 return _pcbnew.SHAPE_POLY_SET_Deflate(self, aAmount, aCornerStrategy, aMaxError)
6956
6957 def OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify):
6958 r"""OffsetLineChain(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aLine, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify)"""
6959 return _pcbnew.SHAPE_POLY_SET_OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify)
6960
6961 def InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError):
6962 r"""InflateWithLinkedHoles(SHAPE_POLY_SET self, int aFactor, CORNER_STRATEGY aCornerStrategy, int aMaxError)"""
6963 return _pcbnew.SHAPE_POLY_SET_InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError)
6964
6965 def Fracture(self):
6966 r"""Fracture(SHAPE_POLY_SET self)"""
6967 return _pcbnew.SHAPE_POLY_SET_Fracture(self)
6968
6969 def Unfracture(self):
6970 r"""Unfracture(SHAPE_POLY_SET self)"""
6971 return _pcbnew.SHAPE_POLY_SET_Unfracture(self)
6972
6973 def HasHoles(self):
6974 r"""HasHoles(SHAPE_POLY_SET self) -> bool"""
6975 return _pcbnew.SHAPE_POLY_SET_HasHoles(self)
6976
6978 r"""HasTouchingHoles(SHAPE_POLY_SET self) -> bool"""
6979 return _pcbnew.SHAPE_POLY_SET_HasTouchingHoles(self)
6980
6981 def Simplify(self):
6982 r"""Simplify(SHAPE_POLY_SET self)"""
6983 return _pcbnew.SHAPE_POLY_SET_Simplify(self)
6984
6985 def SimplifyOutlines(self, aMaxError=0):
6986 r"""SimplifyOutlines(SHAPE_POLY_SET self, int aMaxError=0)"""
6987 return _pcbnew.SHAPE_POLY_SET_SimplifyOutlines(self, aMaxError)
6988
6990 r"""NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int"""
6991 return _pcbnew.SHAPE_POLY_SET_NormalizeAreaOutlines(self)
6992
6993 def Format(self, aCplusPlus=True):
6994 r"""Format(SHAPE_POLY_SET self, bool aCplusPlus=True) -> string"""
6995 return _pcbnew.SHAPE_POLY_SET_Format(self, aCplusPlus)
6996
6997 def Mirror(self, aRef, aFlipDirection):
6998 r"""Mirror(SHAPE_POLY_SET self, VECTOR2I aRef, FLIP_DIRECTION aFlipDirection)"""
6999 return _pcbnew.SHAPE_POLY_SET_Mirror(self, aRef, aFlipDirection)
7000
7001 def Rotate(self, *args):
7002 r"""Rotate(SHAPE_POLY_SET self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7003 return _pcbnew.SHAPE_POLY_SET_Rotate(self, *args)
7004
7005 def BBox(self, aClearance=0):
7006 r"""BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I"""
7007 return _pcbnew.SHAPE_POLY_SET_BBox(self, aClearance)
7008
7009 def PointOnEdge(self, aP, aAccuracy=0):
7010 r"""PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP, int aAccuracy=0) -> bool"""
7011 return _pcbnew.SHAPE_POLY_SET_PointOnEdge(self, aP, aAccuracy)
7012
7013 def Collide(self, *args):
7014 r"""
7015 Collide(SHAPE_POLY_SET self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7016 Collide(SHAPE_POLY_SET self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7017 Collide(SHAPE_POLY_SET self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7018 """
7019 return _pcbnew.SHAPE_POLY_SET_Collide(self, *args)
7020
7021 def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0):
7022 r"""CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
7023 return _pcbnew.SHAPE_POLY_SET_CollideVertex(self, aPoint, aClosestVertex, aClearance)
7024
7025 def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0):
7026 r"""CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
7027 return _pcbnew.SHAPE_POLY_SET_CollideEdge(self, aPoint, aClosestVertex, aClearance)
7028
7029 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
7030 r"""PointInside(SHAPE_POLY_SET self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
7031 return _pcbnew.SHAPE_POLY_SET_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
7032
7034 r"""BuildBBoxCaches(SHAPE_POLY_SET self)"""
7035 return _pcbnew.SHAPE_POLY_SET_BuildBBoxCaches(self)
7036
7038 r"""BBoxFromCaches(SHAPE_POLY_SET self) -> BOX2I"""
7039 return _pcbnew.SHAPE_POLY_SET_BBoxFromCaches(self)
7040
7041 def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False):
7042 r"""Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1, int aAccuracy=0, bool aUseBBoxCaches=False) -> bool"""
7043 return _pcbnew.SHAPE_POLY_SET_Contains(self, aP, aSubpolyIndex, aAccuracy, aUseBBoxCaches)
7044
7045 def IsEmpty(self):
7046 r"""IsEmpty(SHAPE_POLY_SET self) -> bool"""
7047 return _pcbnew.SHAPE_POLY_SET_IsEmpty(self)
7048
7049 def RemoveVertex(self, *args):
7050 r"""
7051 RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
7052 RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)
7053 """
7054 return _pcbnew.SHAPE_POLY_SET_RemoveVertex(self, *args)
7055
7057 r"""RemoveAllContours(SHAPE_POLY_SET self)"""
7058 return _pcbnew.SHAPE_POLY_SET_RemoveAllContours(self)
7059
7060 def RemoveContour(self, aContourIdx, aPolygonIdx=-1):
7061 r"""RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)"""
7062 return _pcbnew.SHAPE_POLY_SET_RemoveContour(self, aContourIdx, aPolygonIdx)
7063
7064 def RemoveOutline(self, aOutlineIdx):
7065 r"""RemoveOutline(SHAPE_POLY_SET self, int aOutlineIdx)"""
7066 return _pcbnew.SHAPE_POLY_SET_RemoveOutline(self, aOutlineIdx)
7067
7069 r"""RemoveNullSegments(SHAPE_POLY_SET self) -> int"""
7070 return _pcbnew.SHAPE_POLY_SET_RemoveNullSegments(self)
7071
7072 def SetVertex(self, *args):
7073 r"""
7074 SetVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX const & aIndex, VECTOR2I aPos)
7075 SetVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aPos)
7076 """
7077 return _pcbnew.SHAPE_POLY_SET_SetVertex(self, *args)
7078
7079 def TotalVertices(self):
7080 r"""TotalVertices(SHAPE_POLY_SET self) -> int"""
7081 return _pcbnew.SHAPE_POLY_SET_TotalVertices(self)
7082
7083 def DeletePolygon(self, aIdx):
7084 r"""DeletePolygon(SHAPE_POLY_SET self, int aIdx)"""
7085 return _pcbnew.SHAPE_POLY_SET_DeletePolygon(self, aIdx)
7086
7087 def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True):
7088 r"""DeletePolygonAndTriangulationData(SHAPE_POLY_SET self, int aIdx, bool aUpdateHash=True)"""
7089 return _pcbnew.SHAPE_POLY_SET_DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash)
7090
7092 r"""UpdateTriangulationDataHash(SHAPE_POLY_SET self)"""
7093 return _pcbnew.SHAPE_POLY_SET_UpdateTriangulationDataHash(self)
7094
7095 def ChamferPolygon(self, aDistance, aIndex):
7096 r"""ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
7097 return _pcbnew.SHAPE_POLY_SET_ChamferPolygon(self, aDistance, aIndex)
7098
7099 def FilletPolygon(self, aRadius, aErrorMax, aIndex):
7100 r"""FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
7101 return _pcbnew.SHAPE_POLY_SET_FilletPolygon(self, aRadius, aErrorMax, aIndex)
7102
7103 def Chamfer(self, aDistance):
7104 r"""Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET"""
7105 return _pcbnew.SHAPE_POLY_SET_Chamfer(self, aDistance)
7106
7107 def Fillet(self, aRadius, aErrorMax):
7108 r"""Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET"""
7109 return _pcbnew.SHAPE_POLY_SET_Fillet(self, aRadius, aErrorMax)
7110
7112 r"""
7113 SquaredDistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
7114 SquaredDistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
7115 """
7116 return _pcbnew.SHAPE_POLY_SET_SquaredDistanceToPolygon(self, *args)
7117
7118 def SquaredDistance(self, *args):
7119 r"""
7120 SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly, VECTOR2I aNearest) -> SEG::ecoord
7121 SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly=False) -> SEG::ecoord
7122 """
7123 return _pcbnew.SHAPE_POLY_SET_SquaredDistance(self, *args)
7124
7125 def SquaredDistanceToSeg(self, aSegment, aNearest=None):
7126 r"""SquaredDistanceToSeg(SHAPE_POLY_SET self, SEG aSegment, VECTOR2I aNearest=None) -> SEG::ecoord"""
7127 return _pcbnew.SHAPE_POLY_SET_SquaredDistanceToSeg(self, aSegment, aNearest)
7128
7129 def IsVertexInHole(self, aGlobalIdx):
7130 r"""IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool"""
7131 return _pcbnew.SHAPE_POLY_SET_IsVertexInHole(self, aGlobalIdx)
7132
7133 def BuildPolysetFromOrientedPaths(self, aPaths, aEvenOdd=False):
7134 r"""BuildPolysetFromOrientedPaths(SHAPE_POLY_SET self, std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const & aPaths, bool aEvenOdd=False)"""
7135 return _pcbnew.SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(self, aPaths, aEvenOdd)
7136
7137# Register SHAPE_POLY_SET in _pcbnew:
7138_pcbnew.SHAPE_POLY_SET_swigregister(SHAPE_POLY_SET)
7140 r"""Proxy of C++ SHAPE_RECT class."""
7141
7142 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7143 __repr__ = _swig_repr
7144
7145 def __init__(self, *args):
7146 r"""
7147 __init__(SHAPE_RECT self) -> SHAPE_RECT
7148 __init__(SHAPE_RECT self, BOX2I aBox) -> SHAPE_RECT
7149 __init__(SHAPE_RECT self, int aX0, int aY0, int aW, int aH) -> SHAPE_RECT
7150 __init__(SHAPE_RECT self, VECTOR2I aP0, int aW, int aH) -> SHAPE_RECT
7151 __init__(SHAPE_RECT self, VECTOR2I aP0, VECTOR2I aP1) -> SHAPE_RECT
7152 __init__(SHAPE_RECT self, SHAPE_RECT aOther) -> SHAPE_RECT
7153 """
7154 _pcbnew.SHAPE_RECT_swiginit(self, _pcbnew.new_SHAPE_RECT(*args))
7155
7156 def BBox(self, aClearance=0):
7157 r"""BBox(SHAPE_RECT self, int aClearance=0) -> BOX2I"""
7158 return _pcbnew.SHAPE_RECT_BBox(self, aClearance)
7159
7160 def GetInflated(self, aOffset):
7161 r"""GetInflated(SHAPE_RECT self, int aOffset) -> SHAPE_RECT"""
7162 return _pcbnew.SHAPE_RECT_GetInflated(self, aOffset)
7163
7164 def Diagonal(self):
7165 r"""Diagonal(SHAPE_RECT self) -> int"""
7166 return _pcbnew.SHAPE_RECT_Diagonal(self)
7167
7169 r"""MajorDimension(SHAPE_RECT self) -> int"""
7170 return _pcbnew.SHAPE_RECT_MajorDimension(self)
7171
7173 r"""MinorDimension(SHAPE_RECT self) -> int"""
7174 return _pcbnew.SHAPE_RECT_MinorDimension(self)
7175
7176 def Collide(self, *args):
7177 r"""
7178 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
7179 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7180 Collide(SHAPE_RECT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7181 """
7182 return _pcbnew.SHAPE_RECT_Collide(self, *args)
7183
7184 def GetPosition(self):
7185 r"""GetPosition(SHAPE_RECT self) -> VECTOR2I"""
7186 return _pcbnew.SHAPE_RECT_GetPosition(self)
7187
7188 def GetSize(self):
7189 r"""GetSize(SHAPE_RECT self) -> VECTOR2I"""
7190 return _pcbnew.SHAPE_RECT_GetSize(self)
7191
7192 def GetWidth(self):
7193 r"""GetWidth(SHAPE_RECT self) -> int"""
7194 return _pcbnew.SHAPE_RECT_GetWidth(self)
7195
7196 def GetHeight(self):
7197 r"""GetHeight(SHAPE_RECT self) -> int"""
7198 return _pcbnew.SHAPE_RECT_GetHeight(self)
7199
7200 def Rotate(self, *args):
7201 r"""Rotate(SHAPE_RECT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7202 return _pcbnew.SHAPE_RECT_Rotate(self, *args)
7203
7204 def Outline(self):
7205 r"""Outline(SHAPE_RECT self) -> SHAPE_LINE_CHAIN"""
7206 return _pcbnew.SHAPE_RECT_Outline(self)
7207
7208 def Format(self, aCplusPlus=True):
7209 r"""Format(SHAPE_RECT self, bool aCplusPlus=True) -> string"""
7210 return _pcbnew.SHAPE_RECT_Format(self, aCplusPlus)
7211 __swig_destroy__ = _pcbnew.delete_SHAPE_RECT
7212
7213# Register SHAPE_RECT in _pcbnew:
7214_pcbnew.SHAPE_RECT_swigregister(SHAPE_RECT)
7216 r"""Proxy of C++ SHAPE_SEGMENT class."""
7217
7218 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7219 __repr__ = _swig_repr
7220
7221 def __init__(self, *args):
7222 r"""
7223 __init__(SHAPE_SEGMENT self) -> SHAPE_SEGMENT
7224 __init__(SHAPE_SEGMENT self, VECTOR2I aA, VECTOR2I aB, int aWidth=0) -> SHAPE_SEGMENT
7225 __init__(SHAPE_SEGMENT self, SEG aSeg, int aWidth=0) -> SHAPE_SEGMENT
7226 """
7227 _pcbnew.SHAPE_SEGMENT_swiginit(self, _pcbnew.new_SHAPE_SEGMENT(*args))
7228 __swig_destroy__ = _pcbnew.delete_SHAPE_SEGMENT
7229
7230 def BBox(self, aClearance=0):
7231 r"""BBox(SHAPE_SEGMENT self, int aClearance=0) -> BOX2I"""
7232 return _pcbnew.SHAPE_SEGMENT_BBox(self, aClearance)
7233
7234 def Collide(self, *args):
7235 r"""
7236 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
7237 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7238 Collide(SHAPE_SEGMENT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7239 Collide(SHAPE_SEGMENT self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7240 """
7241 return _pcbnew.SHAPE_SEGMENT_Collide(self, *args)
7242
7243 def SetSeg(self, aSeg):
7244 r"""SetSeg(SHAPE_SEGMENT self, SEG aSeg)"""
7245 return _pcbnew.SHAPE_SEGMENT_SetSeg(self, aSeg)
7246
7247 def GetSeg(self):
7248 r"""GetSeg(SHAPE_SEGMENT self) -> SEG"""
7249 return _pcbnew.SHAPE_SEGMENT_GetSeg(self)
7250
7251 def SetWidth(self, aWidth):
7252 r"""SetWidth(SHAPE_SEGMENT self, int aWidth)"""
7253 return _pcbnew.SHAPE_SEGMENT_SetWidth(self, aWidth)
7254
7255 def GetWidth(self):
7256 r"""GetWidth(SHAPE_SEGMENT self) -> int"""
7257 return _pcbnew.SHAPE_SEGMENT_GetWidth(self)
7258
7259 def Rotate(self, *args):
7260 r"""Rotate(SHAPE_SEGMENT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7261 return _pcbnew.SHAPE_SEGMENT_Rotate(self, *args)
7262
7263 def Is45Degree(self, *args):
7264 r"""Is45Degree(SHAPE_SEGMENT self, EDA_ANGLE aTollerance=EDA_ANGLE( 1.0, DEGREES_T )) -> bool"""
7265 return _pcbnew.SHAPE_SEGMENT_Is45Degree(self, *args)
7266
7267 def Format(self, aCplusPlus=True):
7268 r"""Format(SHAPE_SEGMENT self, bool aCplusPlus=True) -> string"""
7269 return _pcbnew.SHAPE_SEGMENT_Format(self, aCplusPlus)
7270
7271# Register SHAPE_SEGMENT in _pcbnew:
7272_pcbnew.SHAPE_SEGMENT_swigregister(SHAPE_SEGMENT)
7274 r"""Proxy of C++ SHAPE_SIMPLE class."""
7275
7276 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7277 __repr__ = _swig_repr
7278
7279 def __init__(self, *args):
7280 r"""
7281 __init__(SHAPE_SIMPLE self) -> SHAPE_SIMPLE
7282 __init__(SHAPE_SIMPLE self, SHAPE_LINE_CHAIN aPoly) -> SHAPE_SIMPLE
7283 __init__(SHAPE_SIMPLE self, SHAPE_SIMPLE aOther) -> SHAPE_SIMPLE
7284 """
7285 _pcbnew.SHAPE_SIMPLE_swiginit(self, _pcbnew.new_SHAPE_SIMPLE(*args))
7286
7287 def Clear(self):
7288 r"""Clear(SHAPE_SIMPLE self)"""
7289 return _pcbnew.SHAPE_SIMPLE_Clear(self)
7290
7291 def BBox(self, aClearance=0):
7292 r"""BBox(SHAPE_SIMPLE self, int aClearance=0) -> BOX2I"""
7293 return _pcbnew.SHAPE_SIMPLE_BBox(self, aClearance)
7294
7295 def PointCount(self):
7296 r"""PointCount(SHAPE_SIMPLE self) -> int"""
7297 return _pcbnew.SHAPE_SIMPLE_PointCount(self)
7298
7299 def CPoint(self, aIndex):
7300 r"""CPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2I"""
7301 return _pcbnew.SHAPE_SIMPLE_CPoint(self, aIndex)
7302
7303 def CDPoint(self, aIndex):
7304 r"""CDPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2D const"""
7305 return _pcbnew.SHAPE_SIMPLE_CDPoint(self, aIndex)
7306
7307 def Vertices(self):
7308 r"""Vertices(SHAPE_SIMPLE self) -> SHAPE_LINE_CHAIN"""
7309 return _pcbnew.SHAPE_SIMPLE_Vertices(self)
7310
7311 def Append(self, *args):
7312 r"""
7313 Append(SHAPE_SIMPLE self, int aX, int aY)
7314 Append(SHAPE_SIMPLE self, VECTOR2I aP)
7315 """
7316 return _pcbnew.SHAPE_SIMPLE_Append(self, *args)
7317
7318 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
7319 r"""Collide(SHAPE_SIMPLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
7320 return _pcbnew.SHAPE_SIMPLE_Collide(self, aSeg, aClearance, aActual, aLocation)
7321
7322 def Rotate(self, *args):
7323 r"""Rotate(SHAPE_SIMPLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7324 return _pcbnew.SHAPE_SIMPLE_Rotate(self, *args)
7325 __swig_destroy__ = _pcbnew.delete_SHAPE_SIMPLE
7326
7327# Register SHAPE_SIMPLE in _pcbnew:
7328_pcbnew.SHAPE_SIMPLE_swigregister(SHAPE_SIMPLE)
7329ERROR_OUTSIDE = _pcbnew.ERROR_OUTSIDE
7330
7331ERROR_INSIDE = _pcbnew.ERROR_INSIDE
7332
7334 r"""Proxy of C++ std::vector< std::shared_ptr< SHAPE > > class."""
7335
7336 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7337 __repr__ = _swig_repr
7338
7339 def iterator(self):
7340 r"""iterator(VECTOR_SHAPEPTR self) -> SwigPyIterator"""
7341 return _pcbnew.VECTOR_SHAPEPTR_iterator(self)
7342 def __iter__(self):
7343 return self.iterator()
7344
7345 def __nonzero__(self):
7346 r"""__nonzero__(VECTOR_SHAPEPTR self) -> bool"""
7347 return _pcbnew.VECTOR_SHAPEPTR___nonzero__(self)
7348
7349 def __bool__(self):
7350 r"""__bool__(VECTOR_SHAPEPTR self) -> bool"""
7351 return _pcbnew.VECTOR_SHAPEPTR___bool__(self)
7352
7353 def __len__(self):
7354 r"""__len__(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7355 return _pcbnew.VECTOR_SHAPEPTR___len__(self)
7356
7357 def __getslice__(self, i, j):
7358 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"""
7359 return _pcbnew.VECTOR_SHAPEPTR___getslice__(self, i, j)
7360
7361 def __setslice__(self, *args):
7362 r"""
7363 __setslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)
7364 __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)
7365 """
7366 return _pcbnew.VECTOR_SHAPEPTR___setslice__(self, *args)
7367
7368 def __delslice__(self, i, j):
7369 r"""__delslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)"""
7370 return _pcbnew.VECTOR_SHAPEPTR___delslice__(self, i, j)
7371
7372 def __delitem__(self, *args):
7373 r"""
7374 __delitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i)
7375 __delitem__(VECTOR_SHAPEPTR self, SWIGPY_SLICEOBJECT * slice)
7376 """
7377 return _pcbnew.VECTOR_SHAPEPTR___delitem__(self, *args)
7378
7379 def __getitem__(self, *args):
7380 r"""
7381 __getitem__(VECTOR_SHAPEPTR self, SWIGPY_SLICEOBJECT * slice) -> VECTOR_SHAPEPTR
7382 __getitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &
7383 """
7384 return _pcbnew.VECTOR_SHAPEPTR___getitem__(self, *args)
7385
7386 def __setitem__(self, *args):
7387 r"""
7388 __setitem__(VECTOR_SHAPEPTR self, SWIGPY_SLICEOBJECT * slice, VECTOR_SHAPEPTR v)
7389 __setitem__(VECTOR_SHAPEPTR self, SWIGPY_SLICEOBJECT * slice)
7390 __setitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7391 """
7392 return _pcbnew.VECTOR_SHAPEPTR___setitem__(self, *args)
7393
7394 def pop(self):
7395 r"""pop(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type"""
7396 return _pcbnew.VECTOR_SHAPEPTR_pop(self)
7397
7398 def append(self, x):
7399 r"""append(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7400 return _pcbnew.VECTOR_SHAPEPTR_append(self, x)
7401
7402 def empty(self):
7403 r"""empty(VECTOR_SHAPEPTR self) -> bool"""
7404 return _pcbnew.VECTOR_SHAPEPTR_empty(self)
7405
7406 def size(self):
7407 r"""size(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7408 return _pcbnew.VECTOR_SHAPEPTR_size(self)
7409
7410 def swap(self, v):
7411 r"""swap(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR v)"""
7412 return _pcbnew.VECTOR_SHAPEPTR_swap(self, v)
7413
7414 def begin(self):
7415 r"""begin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7416 return _pcbnew.VECTOR_SHAPEPTR_begin(self)
7417
7418 def end(self):
7419 r"""end(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7420 return _pcbnew.VECTOR_SHAPEPTR_end(self)
7421
7422 def rbegin(self):
7423 r"""rbegin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7424 return _pcbnew.VECTOR_SHAPEPTR_rbegin(self)
7425
7426 def rend(self):
7427 r"""rend(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7428 return _pcbnew.VECTOR_SHAPEPTR_rend(self)
7429
7430 def clear(self):
7431 r"""clear(VECTOR_SHAPEPTR self)"""
7432 return _pcbnew.VECTOR_SHAPEPTR_clear(self)
7433
7434 def get_allocator(self):
7435 r"""get_allocator(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::allocator_type"""
7436 return _pcbnew.VECTOR_SHAPEPTR_get_allocator(self)
7437
7438 def pop_back(self):
7439 r"""pop_back(VECTOR_SHAPEPTR self)"""
7440 return _pcbnew.VECTOR_SHAPEPTR_pop_back(self)
7441
7442 def erase(self, *args):
7443 r"""
7444 erase(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::iterator pos) -> std::vector< std::shared_ptr< SHAPE > >::iterator
7445 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
7446 """
7447 return _pcbnew.VECTOR_SHAPEPTR_erase(self, *args)
7448
7449 def __init__(self, *args):
7450 r"""
7451 __init__(VECTOR_SHAPEPTR self) -> VECTOR_SHAPEPTR
7452 __init__(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR other) -> VECTOR_SHAPEPTR
7453 __init__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type size) -> VECTOR_SHAPEPTR
7454 __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
7455 """
7456 _pcbnew.VECTOR_SHAPEPTR_swiginit(self, _pcbnew.new_VECTOR_SHAPEPTR(*args))
7457
7458 def push_back(self, x):
7459 r"""push_back(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7460 return _pcbnew.VECTOR_SHAPEPTR_push_back(self, x)
7461
7462 def front(self):
7463 r"""front(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7464 return _pcbnew.VECTOR_SHAPEPTR_front(self)
7465
7466 def back(self):
7467 r"""back(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7468 return _pcbnew.VECTOR_SHAPEPTR_back(self)
7469
7470 def assign(self, n, x):
7471 r"""assign(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7472 return _pcbnew.VECTOR_SHAPEPTR_assign(self, n, x)
7473
7474 def resize(self, *args):
7475 r"""
7476 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size)
7477 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7478 """
7479 return _pcbnew.VECTOR_SHAPEPTR_resize(self, *args)
7480
7481 def insert(self, *args):
7482 r"""
7483 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
7484 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)
7485 """
7486 return _pcbnew.VECTOR_SHAPEPTR_insert(self, *args)
7487
7488 def reserve(self, n):
7489 r"""reserve(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n)"""
7490 return _pcbnew.VECTOR_SHAPEPTR_reserve(self, n)
7491
7492 def capacity(self):
7493 r"""capacity(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7494 return _pcbnew.VECTOR_SHAPEPTR_capacity(self)
7495
7496 def __iter__(self):
7497 it = self.iterator()
7498 try:
7499 while True:
7500 item = it.next() # throws StopIteration when iterator reached the end.
7501 yield item.Cast()
7502 except StopIteration:
7503 return
7504
7505 __swig_destroy__ = _pcbnew.delete_VECTOR_SHAPEPTR
7506
7507# Register VECTOR_SHAPEPTR in _pcbnew:
7508_pcbnew.VECTOR_SHAPEPTR_swigregister(VECTOR_SHAPEPTR)
7509
7511 r"""Cast_to_SHAPE_ARC(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_ARC >"""
7512 return _pcbnew.Cast_to_SHAPE_ARC(_self)
7513
7515 r"""Cast_to_SHAPE_CIRCLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_CIRCLE >"""
7516 return _pcbnew.Cast_to_SHAPE_CIRCLE(_self)
7517
7519 r"""Cast_to_SHAPE_COMPOUND(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_COMPOUND >"""
7520 return _pcbnew.Cast_to_SHAPE_COMPOUND(_self)
7521
7523 r"""Cast_to_SHAPE_LINE_CHAIN(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_LINE_CHAIN >"""
7524 return _pcbnew.Cast_to_SHAPE_LINE_CHAIN(_self)
7525
7527 r"""Cast_to_SHAPE_POLY_SET(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_POLY_SET >"""
7528 return _pcbnew.Cast_to_SHAPE_POLY_SET(_self)
7529
7531 r"""Cast_to_SHAPE_RECT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_RECT >"""
7532 return _pcbnew.Cast_to_SHAPE_RECT(_self)
7533
7535 r"""Cast_to_SHAPE_SEGMENT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SEGMENT >"""
7536 return _pcbnew.Cast_to_SHAPE_SEGMENT(_self)
7537
7539 r"""Cast_to_SHAPE_SIMPLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SIMPLE >"""
7540 return _pcbnew.Cast_to_SHAPE_SIMPLE(_self)
7541FLIP_DIRECTION_LEFT_RIGHT = _pcbnew.FLIP_DIRECTION_LEFT_RIGHT
7542
7543FLIP_DIRECTION_TOP_BOTTOM = _pcbnew.FLIP_DIRECTION_TOP_BOTTOM
7544
7545
7546def IsUTF8(aString):
7547 r"""IsUTF8(char const * aString) -> bool"""
7548 return _pcbnew.IsUTF8(aString)
7550 r"""Proxy of C++ UTF8 class."""
7551
7552 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7553 __repr__ = _swig_repr
7554
7555 def __init__(self, *args):
7556 r"""
7557 __init__(UTF8 self, wxString o) -> UTF8
7558 __init__(UTF8 self, char const * txt) -> UTF8
7559 __init__(UTF8 self, wchar_t const * txt) -> UTF8
7560 __init__(UTF8 self, string o) -> UTF8
7561 __init__(UTF8 self) -> UTF8
7562 """
7563 _pcbnew.UTF8_swiginit(self, _pcbnew.new_UTF8(*args))
7564 __swig_destroy__ = _pcbnew.delete_UTF8
7565
7566 def c_str(self):
7567 r"""c_str(UTF8 self) -> char const *"""
7568 return _pcbnew.UTF8_c_str(self)
7569
7570 def empty(self):
7571 r"""empty(UTF8 self) -> bool"""
7572 return _pcbnew.UTF8_empty(self)
7573
7574 def find(self, *args):
7575 r"""
7576 find(UTF8 self, char c) -> std::string::size_type
7577 find(UTF8 self, char c, size_t s) -> std::string::size_type
7578 """
7579 return _pcbnew.UTF8_find(self, *args)
7580
7581 def clear(self):
7582 r"""clear(UTF8 self)"""
7583 return _pcbnew.UTF8_clear(self)
7584
7585 def length(self):
7586 r"""length(UTF8 self) -> std::string::size_type"""
7587 return _pcbnew.UTF8_length(self)
7588
7589 def size(self):
7590 r"""size(UTF8 self) -> std::string::size_type"""
7591 return _pcbnew.UTF8_size(self)
7592
7593 def compare(self, s):
7594 r"""compare(UTF8 self, string s) -> int"""
7595 return _pcbnew.UTF8_compare(self, s)
7596
7597 def __eq__(self, *args):
7598 r"""
7599 __eq__(UTF8 self, UTF8 rhs) -> bool
7600 __eq__(UTF8 self, string rhs) -> bool
7601 __eq__(UTF8 self, char const * s) -> bool
7602 """
7603 return _pcbnew.UTF8___eq__(self, *args)
7604
7605 def __ne__(self, rhs):
7606 r"""__ne__(UTF8 self, UTF8 rhs) -> bool"""
7607 return _pcbnew.UTF8___ne__(self, rhs)
7608
7609 def __lt__(self, rhs):
7610 r"""__lt__(UTF8 self, UTF8 rhs) -> bool"""
7611 return _pcbnew.UTF8___lt__(self, rhs)
7612
7613 def __gt__(self, rhs):
7614 r"""__gt__(UTF8 self, UTF8 rhs) -> bool"""
7615 return _pcbnew.UTF8___gt__(self, rhs)
7616
7617 def find_first_of(self, str, pos=0):
7618 r"""find_first_of(UTF8 self, string str, std::string::size_type pos=0) -> std::string::size_type"""
7619 return _pcbnew.UTF8_find_first_of(self, str, pos)
7620
7621 def __iadd__(self, *args):
7622 r"""
7623 __iadd__(UTF8 self, UTF8 str) -> UTF8
7624 __iadd__(UTF8 self, char ch) -> UTF8
7625 __iadd__(UTF8 self, char const * s) -> UTF8
7626 __iadd__(UTF8 self, unsigned int w_ch) -> UTF8
7627 """
7628 return _pcbnew.UTF8___iadd__(self, *args)
7629 npos = _pcbnew.UTF8_npos
7630
7631
7632 def substr(self, *args):
7633 r"""substr(UTF8 self, size_t pos=0, size_t len=npos) -> string"""
7634 return _pcbnew.UTF8_substr(self, *args)
7635
7637 r"""utf8_to_string(UTF8 self) -> string"""
7638 return _pcbnew.UTF8_utf8_to_string(self)
7639
7640 def wx_str(self):
7641 r"""wx_str(UTF8 self) -> wxString"""
7642 return _pcbnew.UTF8_wx_str(self)
7643
7645 r"""utf8_to_wxstring(UTF8 self) -> wxString"""
7646 return _pcbnew.UTF8_utf8_to_wxstring(self)
7647
7648 def begin(self):
7649 r"""begin(UTF8 self) -> std::string::const_iterator"""
7650 return _pcbnew.UTF8_begin(self)
7651
7652 def end(self):
7653 r"""end(UTF8 self) -> std::string::const_iterator"""
7654 return _pcbnew.UTF8_end(self)
7655
7656 def Cast_to_CChar(self):
7657 r"""Cast_to_CChar(UTF8 self) -> char const *"""
7658 return _pcbnew.UTF8_Cast_to_CChar(self)
7659
7660
7661 # Get the char buffer of the UTF8 string
7662 def GetChars(self):
7663 return self.Cast_to_CChar()
7664
7665 # Convert the UTF8 string to a python string
7666 # Same as GetChars(), but more easy to use in print command
7667 def __str__(self):
7668 return self.GetChars()
7669
7670
7671
7672# Register UTF8 in _pcbnew:
7673_pcbnew.UTF8_swigregister(UTF8)
7675 r"""Proxy of C++ LIB_ID class."""
7676
7677 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7678 __repr__ = _swig_repr
7679
7680 def __init__(self, *args):
7681 r"""
7682 __init__(LIB_ID self) -> LIB_ID
7683 __init__(LIB_ID self, wxString aLibraryName, wxString aItemName) -> LIB_ID
7684 """
7685 _pcbnew.LIB_ID_swiginit(self, _pcbnew.new_LIB_ID(*args))
7686
7687 def Parse(self, aId, aFix=False):
7688 r"""Parse(LIB_ID self, UTF8 aId, bool aFix=False) -> int"""
7689 return _pcbnew.LIB_ID_Parse(self, aId, aFix)
7690
7692 r"""GetLibNickname(LIB_ID self) -> UTF8"""
7693 return _pcbnew.LIB_ID_GetLibNickname(self)
7694
7696 r"""GetUniStringLibNickname(LIB_ID self) -> wxString"""
7697 return _pcbnew.LIB_ID_GetUniStringLibNickname(self)
7698
7699 def SetLibNickname(self, aLibNickname):
7700 r"""SetLibNickname(LIB_ID self, UTF8 aLibNickname) -> int"""
7701 return _pcbnew.LIB_ID_SetLibNickname(self, aLibNickname)
7702
7704 r"""GetLibItemName(LIB_ID self) -> UTF8"""
7705 return _pcbnew.LIB_ID_GetLibItemName(self)
7706
7708 r"""GetUniStringLibItemName(LIB_ID self) -> wxString"""
7709 return _pcbnew.LIB_ID_GetUniStringLibItemName(self)
7710
7711 def SetLibItemName(self, aLibItemName):
7712 r"""SetLibItemName(LIB_ID self, UTF8 aLibItemName) -> int"""
7713 return _pcbnew.LIB_ID_SetLibItemName(self, aLibItemName)
7714
7716 r"""GetSubLibraryName(LIB_ID self) -> UTF8"""
7717 return _pcbnew.LIB_ID_GetSubLibraryName(self)
7718
7719 def SetSubLibraryName(self, aName):
7720 r"""SetSubLibraryName(LIB_ID self, UTF8 aName)"""
7721 return _pcbnew.LIB_ID_SetSubLibraryName(self, aName)
7722
7724 r"""GetUniStringSubLibraryName(LIB_ID self) -> wxString"""
7725 return _pcbnew.LIB_ID_GetUniStringSubLibraryName(self)
7726
7728 r"""GetFullLibraryName(LIB_ID self) -> wxString"""
7729 return _pcbnew.LIB_ID_GetFullLibraryName(self)
7730
7732 r"""GetUniStringLibId(LIB_ID self) -> wxString"""
7733 return _pcbnew.LIB_ID_GetUniStringLibId(self)
7734
7735 @staticmethod
7736 def Format(*args):
7737 r"""
7738 Format() -> UTF8
7739 Format(UTF8 aLibraryName, UTF8 aLibItemName) -> UTF8
7740 """
7741 return _pcbnew.LIB_ID_Format(*args)
7742
7743 def IsValid(self):
7744 r"""IsValid(LIB_ID self) -> bool"""
7745 return _pcbnew.LIB_ID_IsValid(self)
7746
7747 def IsLegacy(self):
7748 r"""IsLegacy(LIB_ID self) -> bool"""
7749 return _pcbnew.LIB_ID_IsLegacy(self)
7750
7751 def clear(self):
7752 r"""clear(LIB_ID self)"""
7753 return _pcbnew.LIB_ID_clear(self)
7754
7755 def empty(self):
7756 r"""empty(LIB_ID self) -> bool"""
7757 return _pcbnew.LIB_ID_empty(self)
7758
7759 def compare(self, aLibId):
7760 r"""compare(LIB_ID self, LIB_ID aLibId) -> int"""
7761 return _pcbnew.LIB_ID_compare(self, aLibId)
7762
7763 def __lt__(self, aLibId):
7764 r"""__lt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7765 return _pcbnew.LIB_ID___lt__(self, aLibId)
7766
7767 def __gt__(self, aLibId):
7768 r"""__gt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7769 return _pcbnew.LIB_ID___gt__(self, aLibId)
7770
7771 def __eq__(self, aLibId):
7772 r"""__eq__(LIB_ID self, LIB_ID aLibId) -> bool"""
7773 return _pcbnew.LIB_ID___eq__(self, aLibId)
7774
7775 def __ne__(self, aLibId):
7776 r"""__ne__(LIB_ID self, LIB_ID aLibId) -> bool"""
7777 return _pcbnew.LIB_ID___ne__(self, aLibId)
7778
7779 @staticmethod
7780 def HasIllegalChars(aLibItemName):
7781 r"""HasIllegalChars(UTF8 aLibItemName) -> int"""
7782 return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName)
7783
7784 @staticmethod
7785 def FixIllegalChars(aLibItemName, aLib):
7786 r"""FixIllegalChars(UTF8 aLibItemName, bool aLib) -> UTF8"""
7787 return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aLib)
7788
7789 @staticmethod
7791 r"""FindIllegalLibraryNameChar(UTF8 aLibraryName) -> unsigned int"""
7792 return _pcbnew.LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
7793 __swig_destroy__ = _pcbnew.delete_LIB_ID
7794
7795# Register LIB_ID in _pcbnew:
7796_pcbnew.LIB_ID_swigregister(LIB_ID)
7798 r"""Proxy of C++ BASE_SET class."""
7799
7800 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7801
7802 def __init__(self, *args, **kwargs):
7803 raise AttributeError("No constructor defined")
7804 __repr__ = _swig_repr
7805 __swig_destroy__ = _pcbnew.delete_BASE_SET
7806
7807# Register BASE_SET in _pcbnew:
7808_pcbnew.BASE_SET_swigregister(BASE_SET)
7810 r"""Proxy of C++ PCB_IO_MGR class."""
7811
7812 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7813 __repr__ = _swig_repr
7814 PCB_FILE_UNKNOWN = _pcbnew.PCB_IO_MGR_PCB_FILE_UNKNOWN
7815
7816 KICAD_SEXP = _pcbnew.PCB_IO_MGR_KICAD_SEXP
7817
7818 LEGACY = _pcbnew.PCB_IO_MGR_LEGACY
7819
7820 ALTIUM_CIRCUIT_MAKER = _pcbnew.PCB_IO_MGR_ALTIUM_CIRCUIT_MAKER
7821
7822 ALTIUM_CIRCUIT_STUDIO = _pcbnew.PCB_IO_MGR_ALTIUM_CIRCUIT_STUDIO
7823
7824 ALTIUM_DESIGNER = _pcbnew.PCB_IO_MGR_ALTIUM_DESIGNER
7825
7826 CADSTAR_PCB_ARCHIVE = _pcbnew.PCB_IO_MGR_CADSTAR_PCB_ARCHIVE
7827
7828 EAGLE = _pcbnew.PCB_IO_MGR_EAGLE
7829
7830 EASYEDA = _pcbnew.PCB_IO_MGR_EASYEDA
7831
7832 EASYEDAPRO = _pcbnew.PCB_IO_MGR_EASYEDAPRO
7833
7834 FABMASTER = _pcbnew.PCB_IO_MGR_FABMASTER
7835
7836 GEDA_PCB = _pcbnew.PCB_IO_MGR_GEDA_PCB
7837
7838 PCAD = _pcbnew.PCB_IO_MGR_PCAD
7839
7840 SOLIDWORKS_PCB = _pcbnew.PCB_IO_MGR_SOLIDWORKS_PCB
7841
7842 IPC2581 = _pcbnew.PCB_IO_MGR_IPC2581
7843
7844 ODBPP = _pcbnew.PCB_IO_MGR_ODBPP
7845
7846 FILE_TYPE_NONE = _pcbnew.PCB_IO_MGR_FILE_TYPE_NONE
7847
7848
7849 @staticmethod
7850 def PluginFind(aFileType):
7851 r"""PluginFind(PCB_IO_MGR::PCB_FILE_T aFileType) -> PCB_IO"""
7852 return _pcbnew.PCB_IO_MGR_PluginFind(aFileType)
7853
7854 @staticmethod
7855 def ShowType(aFileType):
7856 r"""ShowType(PCB_IO_MGR::PCB_FILE_T aFileType) -> wxString"""
7857 return _pcbnew.PCB_IO_MGR_ShowType(aFileType)
7858
7859 @staticmethod
7860 def EnumFromStr(aFileType):
7861 r"""EnumFromStr(wxString aFileType) -> PCB_IO_MGR::PCB_FILE_T"""
7862 return _pcbnew.PCB_IO_MGR_EnumFromStr(aFileType)
7863
7864 @staticmethod
7865 def FindPluginTypeFromBoardPath(aFileName, aCtl=0):
7866 r"""FindPluginTypeFromBoardPath(wxString aFileName, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
7867 return _pcbnew.PCB_IO_MGR_FindPluginTypeFromBoardPath(aFileName, aCtl)
7868
7869 @staticmethod
7870 def GuessPluginTypeFromLibPath(aLibPath, aCtl=0):
7871 r"""GuessPluginTypeFromLibPath(wxString aLibPath, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
7872 return _pcbnew.PCB_IO_MGR_GuessPluginTypeFromLibPath(aLibPath, aCtl)
7873
7874 @staticmethod
7875 def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None):
7876 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"""
7877 return _pcbnew.PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
7878
7879 @staticmethod
7880 def Save(aFileType, aFileName, aBoard, aProperties=None):
7881 r"""Save(PCB_IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, str_utf8_Map aProperties=None)"""
7882 return _pcbnew.PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
7883
7884 @staticmethod
7885 def ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath, aReporter):
7886 r"""ConvertLibrary(str_utf8_Map aOldFileProps, wxString aOldFilePath, wxString aNewFilePath, REPORTER * aReporter) -> bool"""
7887 return _pcbnew.PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath, aReporter)
7888
7889 def __init__(self):
7890 r"""__init__(PCB_IO_MGR self) -> PCB_IO_MGR"""
7891 _pcbnew.PCB_IO_MGR_swiginit(self, _pcbnew.new_PCB_IO_MGR())
7892 __swig_destroy__ = _pcbnew.delete_PCB_IO_MGR
7893
7894# Register PCB_IO_MGR in _pcbnew:
7895_pcbnew.PCB_IO_MGR_swigregister(PCB_IO_MGR)
7897 r"""Proxy of C++ PCB_IO class."""
7898
7899 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7900
7901 def __init__(self, *args, **kwargs):
7902 raise AttributeError("No constructor defined - class is abstract")
7903 __repr__ = _swig_repr
7904
7906 r"""GetBoardFileDesc(PCB_IO self) -> IO_BASE::IO_FILE_DESC const"""
7907 return _pcbnew.PCB_IO_GetBoardFileDesc(self)
7908
7909 def CanReadBoard(self, aFileName):
7910 r"""CanReadBoard(PCB_IO self, wxString aFileName) -> bool"""
7911 return _pcbnew.PCB_IO_CanReadBoard(self, aFileName)
7912
7913 def CanReadFootprint(self, aFileName):
7914 r"""CanReadFootprint(PCB_IO self, wxString aFileName) -> bool"""
7915 return _pcbnew.PCB_IO_CanReadFootprint(self, aFileName)
7916
7917 def SetQueryUserCallback(self, aCallback):
7918 r"""SetQueryUserCallback(PCB_IO self, std::function< bool (wxString,int,wxString,wxString) > aCallback)"""
7919 return _pcbnew.PCB_IO_SetQueryUserCallback(self, aCallback)
7920
7921 def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None):
7922 r"""LoadBoard(PCB_IO self, wxString aFileName, BOARD aAppendToMe, str_utf8_Map aProperties=None, PROJECT * aProject=None) -> BOARD"""
7923 return _pcbnew.PCB_IO_LoadBoard(self, aFileName, aAppendToMe, aProperties, aProject)
7924
7926 r"""GetImportedCachedLibraryFootprints(PCB_IO self) -> std::vector< FOOTPRINT *,std::allocator< FOOTPRINT * > >"""
7927 return _pcbnew.PCB_IO_GetImportedCachedLibraryFootprints(self)
7928
7929 def SaveBoard(self, aFileName, aBoard, aProperties=None):
7930 r"""SaveBoard(PCB_IO self, wxString aFileName, BOARD aBoard, str_utf8_Map aProperties=None)"""
7931 return _pcbnew.PCB_IO_SaveBoard(self, aFileName, aBoard, aProperties)
7932
7933 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
7934 r"""FootprintEnumerate(PCB_IO self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, str_utf8_Map aProperties=None)"""
7935 return _pcbnew.PCB_IO_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
7936
7937 def GetLibraryTimestamp(self, aLibraryPath):
7938 r"""GetLibraryTimestamp(PCB_IO self, wxString aLibraryPath) -> long long"""
7939 return _pcbnew.PCB_IO_GetLibraryTimestamp(self, aLibraryPath)
7940
7941 def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None):
7942 r"""ImportFootprint(PCB_IO self, wxString aFootprintPath, wxString aFootprintNameOut, str_utf8_Map aProperties=None) -> FOOTPRINT"""
7943 return _pcbnew.PCB_IO_ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties)
7944
7945 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
7946 r"""FootprintLoad(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, str_utf8_Map aProperties=None) -> FOOTPRINT"""
7947 return _pcbnew.PCB_IO_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
7948
7949 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
7950 r"""GetEnumeratedFootprint(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None) -> FOOTPRINT"""
7951 return _pcbnew.PCB_IO_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
7952
7953 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
7954 r"""FootprintExists(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None) -> bool"""
7955 return _pcbnew.PCB_IO_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
7956
7957 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
7958 r"""FootprintSave(PCB_IO self, wxString aLibraryPath, FOOTPRINT aFootprint, str_utf8_Map aProperties=None)"""
7959 return _pcbnew.PCB_IO_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
7960
7961 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
7962 r"""FootprintDelete(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None)"""
7963 return _pcbnew.PCB_IO_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
7964
7965 def GetLibraryOptions(self, aListToAppendTo):
7966 r"""GetLibraryOptions(PCB_IO self, str_utf8_Map aListToAppendTo)"""
7967 return _pcbnew.PCB_IO_GetLibraryOptions(self, aListToAppendTo)
7968 __swig_destroy__ = _pcbnew.delete_PCB_IO
7969
7970 def footprintPyEnumerate(self, aLibraryPath, aExitOnError):
7971 r"""footprintPyEnumerate(PCB_IO self, wxString aLibraryPath, bool aExitOnError) -> wxArrayString"""
7972 return _pcbnew.PCB_IO_footprintPyEnumerate(self, aLibraryPath, aExitOnError)
7973
7974 def FootprintEnumerate(self, libname):
7975 return self.footprintPyEnumerate( libname, True )
7976
7977 # Old function name for compatibility with pre-v8 scripts, use CreateLibrary() for new scripts.
7978 def FootprintLibCreate(self, aLibraryPath, aProperties=None):
7979 self.CreateLibrary(aLibraryPath, aProperties)
7980
7981 # Old function name for compatibility with pre-v8 scripts, use DeleteLibrary() for new scripts.
7982 def FootprintLibDelete(self, aLibraryPath, aProperties=None):
7983 return self.DeleteLibrary(aLibraryPath, aProperties)
7984
7985 # Old function name for compatibility with pre-v8 scripts, use IsLibraryWritable() for new scripts.
7986 def IsFootprintLibWritable(self, aLibraryPath):
7987 return self.IsLibraryWritable(aLibraryPath)
7988
7989
7990# Register PCB_IO in _pcbnew:
7991_pcbnew.PCB_IO_swigregister(PCB_IO)
7992SEXPR_BOARD_FILE_VERSION = _pcbnew.SEXPR_BOARD_FILE_VERSION
7993
7994BOARD_FILE_HOST_VERSION = _pcbnew.BOARD_FILE_HOST_VERSION
7995
7996LEGACY_ARC_FORMATTING = _pcbnew.LEGACY_ARC_FORMATTING
7997
7998LEGACY_NET_TIES = _pcbnew.LEGACY_NET_TIES
7999
8000FIRST_NORMALIZED_VERISON = _pcbnew.FIRST_NORMALIZED_VERISON
8001
8003 r"""Proxy of C++ FP_CACHE_ENTRY class."""
8004
8005 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8006 __repr__ = _swig_repr
8007
8008 def __init__(self, aFootprint, aFileName):
8009 r"""__init__(FP_CACHE_ENTRY self, FOOTPRINT aFootprint, WX_FILENAME const & aFileName) -> FP_CACHE_ENTRY"""
8010 _pcbnew.FP_CACHE_ENTRY_swiginit(self, _pcbnew.new_FP_CACHE_ENTRY(aFootprint, aFileName))
8011
8012 def GetFileName(self):
8013 r"""GetFileName(FP_CACHE_ENTRY self) -> WX_FILENAME const &"""
8014 return _pcbnew.FP_CACHE_ENTRY_GetFileName(self)
8015
8016 def SetFilePath(self, aFilePath):
8017 r"""SetFilePath(FP_CACHE_ENTRY self, wxString aFilePath)"""
8018 return _pcbnew.FP_CACHE_ENTRY_SetFilePath(self, aFilePath)
8019
8020 def GetFootprint(self):
8021 r"""GetFootprint(FP_CACHE_ENTRY self) -> std::unique_ptr< FOOTPRINT > &"""
8022 return _pcbnew.FP_CACHE_ENTRY_GetFootprint(self)
8023 __swig_destroy__ = _pcbnew.delete_FP_CACHE_ENTRY
8024
8025# Register FP_CACHE_ENTRY in _pcbnew:
8026_pcbnew.FP_CACHE_ENTRY_swigregister(FP_CACHE_ENTRY)
8028 r"""Proxy of C++ FP_CACHE class."""
8029
8030 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8031 __repr__ = _swig_repr
8032
8033 def __init__(self, aOwner, aLibraryPath):
8034 r"""__init__(FP_CACHE self, PCB_IO_KICAD_SEXPR aOwner, wxString aLibraryPath) -> FP_CACHE"""
8035 _pcbnew.FP_CACHE_swiginit(self, _pcbnew.new_FP_CACHE(aOwner, aLibraryPath))
8036
8037 def GetPath(self):
8038 r"""GetPath(FP_CACHE self) -> wxString"""
8039 return _pcbnew.FP_CACHE_GetPath(self)
8040
8041 def IsWritable(self):
8042 r"""IsWritable(FP_CACHE self) -> bool"""
8043 return _pcbnew.FP_CACHE_IsWritable(self)
8044
8045 def Exists(self):
8046 r"""Exists(FP_CACHE self) -> bool"""
8047 return _pcbnew.FP_CACHE_Exists(self)
8048
8049 def GetFootprints(self):
8050 r"""GetFootprints(FP_CACHE self) -> boost::ptr_map< wxString,FP_CACHE_ENTRY > &"""
8051 return _pcbnew.FP_CACHE_GetFootprints(self)
8052
8053 def Save(self, aFootprintFilter=None):
8054 r"""Save(FP_CACHE self, FOOTPRINT aFootprintFilter=None)"""
8055 return _pcbnew.FP_CACHE_Save(self, aFootprintFilter)
8056
8057 def Load(self):
8058 r"""Load(FP_CACHE self)"""
8059 return _pcbnew.FP_CACHE_Load(self)
8060
8061 def Remove(self, aFootprintName):
8062 r"""Remove(FP_CACHE self, wxString aFootprintName)"""
8063 return _pcbnew.FP_CACHE_Remove(self, aFootprintName)
8064
8065 @staticmethod
8066 def GetTimestamp(aLibPath):
8067 r"""GetTimestamp(wxString aLibPath) -> long long"""
8068 return _pcbnew.FP_CACHE_GetTimestamp(aLibPath)
8069
8070 def IsModified(self):
8071 r"""IsModified(FP_CACHE self) -> bool"""
8072 return _pcbnew.FP_CACHE_IsModified(self)
8073
8074 def IsPath(self, aPath):
8075 r"""IsPath(FP_CACHE self, wxString aPath) -> bool"""
8076 return _pcbnew.FP_CACHE_IsPath(self, aPath)
8077
8078 def SetPath(self, aPath):
8079 r"""SetPath(FP_CACHE self, wxString aPath)"""
8080 return _pcbnew.FP_CACHE_SetPath(self, aPath)
8081 __swig_destroy__ = _pcbnew.delete_FP_CACHE
8082
8083# Register FP_CACHE in _pcbnew:
8084_pcbnew.FP_CACHE_swigregister(FP_CACHE)
8086 r"""Proxy of C++ PCB_IO_KICAD_SEXPR class."""
8087
8088 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8089 __repr__ = _swig_repr
8090
8092 r"""GetLibraryFileDesc(PCB_IO_KICAD_SEXPR self) -> IO_BASE::IO_FILE_DESC const"""
8093 return _pcbnew.PCB_IO_KICAD_SEXPR_GetLibraryFileDesc(self)
8094
8096 r"""GetLibraryDesc(PCB_IO_KICAD_SEXPR self) -> IO_BASE::IO_FILE_DESC const"""
8097 return _pcbnew.PCB_IO_KICAD_SEXPR_GetLibraryDesc(self)
8098
8099 def SaveBoard(self, aFileName, aBoard, aProperties=None):
8100 r"""SaveBoard(PCB_IO_KICAD_SEXPR self, wxString aFileName, BOARD aBoard, str_utf8_Map aProperties=None)"""
8101 return _pcbnew.PCB_IO_KICAD_SEXPR_SaveBoard(self, aFileName, aBoard, aProperties)
8102
8103 def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None):
8104 r"""LoadBoard(PCB_IO_KICAD_SEXPR self, wxString aFileName, BOARD aAppendToMe, str_utf8_Map aProperties=None, PROJECT * aProject=None) -> BOARD"""
8105 return _pcbnew.PCB_IO_KICAD_SEXPR_LoadBoard(self, aFileName, aAppendToMe, aProperties, aProject)
8106
8107 def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount):
8108 r"""DoLoad(PCB_IO_KICAD_SEXPR self, LINE_READER aReader, BOARD aAppendToMe, str_utf8_Map aProperties, PROGRESS_REPORTER * aProgressReporter, unsigned int aLineCount) -> BOARD"""
8109 return _pcbnew.PCB_IO_KICAD_SEXPR_DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
8110
8111 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
8112 r"""FootprintEnumerate(PCB_IO_KICAD_SEXPR self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, str_utf8_Map aProperties=None)"""
8113 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
8114
8115 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
8116 r"""GetEnumeratedFootprint(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None) -> FOOTPRINT"""
8117 return _pcbnew.PCB_IO_KICAD_SEXPR_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
8118
8119 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
8120 r"""FootprintExists(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None) -> bool"""
8121 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
8122
8123 def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None):
8124 r"""ImportFootprint(PCB_IO_KICAD_SEXPR self, wxString aFootprintPath, wxString aFootprintNameOut, str_utf8_Map aProperties=None) -> FOOTPRINT"""
8125 return _pcbnew.PCB_IO_KICAD_SEXPR_ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties)
8126
8127 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
8128 r"""FootprintLoad(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, str_utf8_Map aProperties=None) -> FOOTPRINT"""
8129 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
8130
8131 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
8132 r"""FootprintSave(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, FOOTPRINT aFootprint, str_utf8_Map aProperties=None)"""
8133 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
8134
8135 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
8136 r"""FootprintDelete(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, str_utf8_Map aProperties=None)"""
8137 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
8138
8139 def CreateLibrary(self, aLibraryPath, aProperties=None):
8140 r"""CreateLibrary(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, str_utf8_Map aProperties=None)"""
8141 return _pcbnew.PCB_IO_KICAD_SEXPR_CreateLibrary(self, aLibraryPath, aProperties)
8142
8143 def DeleteLibrary(self, aLibraryPath, aProperties=None):
8144 r"""DeleteLibrary(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, str_utf8_Map aProperties=None) -> bool"""
8145 return _pcbnew.PCB_IO_KICAD_SEXPR_DeleteLibrary(self, aLibraryPath, aProperties)
8146
8147 def IsLibraryWritable(self, aLibraryPath):
8148 r"""IsLibraryWritable(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath) -> bool"""
8149 return _pcbnew.PCB_IO_KICAD_SEXPR_IsLibraryWritable(self, aLibraryPath)
8150
8151 def __init__(self, *args):
8152 r"""__init__(PCB_IO_KICAD_SEXPR self, int aControlFlags=(CTL_OMIT_INITIAL_COMMENTS|CTL_OMIT_FOOTPRINT_VERSION)) -> PCB_IO_KICAD_SEXPR"""
8153 _pcbnew.PCB_IO_KICAD_SEXPR_swiginit(self, _pcbnew.new_PCB_IO_KICAD_SEXPR(*args))
8154 __swig_destroy__ = _pcbnew.delete_PCB_IO_KICAD_SEXPR
8155
8156 def Format(self, aItem):
8157 r"""Format(PCB_IO_KICAD_SEXPR self, BOARD_ITEM aItem)"""
8158 return _pcbnew.PCB_IO_KICAD_SEXPR_Format(self, aItem)
8159
8160 def GetStringOutput(self, doClear):
8161 r"""GetStringOutput(PCB_IO_KICAD_SEXPR self, bool doClear) -> string"""
8162 return _pcbnew.PCB_IO_KICAD_SEXPR_GetStringOutput(self, doClear)
8163
8164 def SetOutputFormatter(self, aFormatter):
8165 r"""SetOutputFormatter(PCB_IO_KICAD_SEXPR self, OUTPUTFORMATTER aFormatter)"""
8166 return _pcbnew.PCB_IO_KICAD_SEXPR_SetOutputFormatter(self, aFormatter)
8167
8168 def Parse(self, aClipboardSourceInput):
8169 r"""Parse(PCB_IO_KICAD_SEXPR self, wxString aClipboardSourceInput) -> BOARD_ITEM"""
8170 return _pcbnew.PCB_IO_KICAD_SEXPR_Parse(self, aClipboardSourceInput)
8171
8172# Register PCB_IO_KICAD_SEXPR in _pcbnew:
8173_pcbnew.PCB_IO_KICAD_SEXPR_swigregister(PCB_IO_KICAD_SEXPR)
8175 r"""Proxy of C++ PLOT_CONTROLLER class."""
8176
8177 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8178 __repr__ = _swig_repr
8179
8180 def __init__(self, aBoard):
8181 r"""__init__(PLOT_CONTROLLER self, BOARD aBoard) -> PLOT_CONTROLLER"""
8182 _pcbnew.PLOT_CONTROLLER_swiginit(self, _pcbnew.new_PLOT_CONTROLLER(aBoard))
8183 __swig_destroy__ = _pcbnew.delete_PLOT_CONTROLLER
8184
8186 r"""GetPlotOptions(PLOT_CONTROLLER self) -> PCB_PLOT_PARAMS"""
8187 return _pcbnew.PLOT_CONTROLLER_GetPlotOptions(self)
8188
8189 def SetLayer(self, aLayer):
8190 r"""SetLayer(PLOT_CONTROLLER self, int aLayer)"""
8191 return _pcbnew.PLOT_CONTROLLER_SetLayer(self, aLayer)
8192
8193 def GetLayer(self):
8194 r"""GetLayer(PLOT_CONTROLLER self) -> int"""
8195 return _pcbnew.PLOT_CONTROLLER_GetLayer(self)
8196
8197 def IsPlotOpen(self):
8198 r"""IsPlotOpen(PLOT_CONTROLLER self) -> bool"""
8199 return _pcbnew.PLOT_CONTROLLER_IsPlotOpen(self)
8200
8201 def ClosePlot(self):
8202 r"""ClosePlot(PLOT_CONTROLLER self)"""
8203 return _pcbnew.PLOT_CONTROLLER_ClosePlot(self)
8204
8205 def OpenPlotfile(self, *args):
8206 r"""OpenPlotfile(PLOT_CONTROLLER self, wxString aSuffix, PLOT_FORMAT aFormat, wxString aSheetName=wxEmptyString, wxString aSheetPath=wxEmptyString) -> bool"""
8207 return _pcbnew.PLOT_CONTROLLER_OpenPlotfile(self, *args)
8208
8209 def PlotLayer(self):
8210 r"""PlotLayer(PLOT_CONTROLLER self) -> bool"""
8211 return _pcbnew.PLOT_CONTROLLER_PlotLayer(self)
8212
8213 def PlotLayers(self, aLayerSequence):
8214 r"""PlotLayers(PLOT_CONTROLLER self, LSEQ aLayerSequence) -> bool"""
8215 return _pcbnew.PLOT_CONTROLLER_PlotLayers(self, aLayerSequence)
8216
8218 r"""GetPlotFileName(PLOT_CONTROLLER self) -> wxString"""
8219 return _pcbnew.PLOT_CONTROLLER_GetPlotFileName(self)
8220
8222 r"""GetPlotDirName(PLOT_CONTROLLER self) -> wxString"""
8223 return _pcbnew.PLOT_CONTROLLER_GetPlotDirName(self)
8224
8225 def SetColorMode(self, aColorMode):
8226 r"""SetColorMode(PLOT_CONTROLLER self, bool aColorMode)"""
8227 return _pcbnew.PLOT_CONTROLLER_SetColorMode(self, aColorMode)
8228
8229 def GetColorMode(self):
8230 r"""GetColorMode(PLOT_CONTROLLER self) -> bool"""
8231 return _pcbnew.PLOT_CONTROLLER_GetColorMode(self)
8232
8233 def GetPlotter(self):
8234 r"""GetPlotter(PLOT_CONTROLLER self) -> PLOTTER"""
8235 return _pcbnew.PLOT_CONTROLLER_GetPlotter(self)
8236
8237# Register PLOT_CONTROLLER in _pcbnew:
8238_pcbnew.PLOT_CONTROLLER_swigregister(PLOT_CONTROLLER)
8239DRILL_MARKS_NO_DRILL_SHAPE = _pcbnew.DRILL_MARKS_NO_DRILL_SHAPE
8240
8241DRILL_MARKS_SMALL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_SMALL_DRILL_SHAPE
8242
8243DRILL_MARKS_FULL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_FULL_DRILL_SHAPE
8244
8246 r"""Proxy of C++ PCB_PLOT_PARAMS class."""
8247
8248 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8249 __repr__ = _swig_repr
8250
8251 def __init__(self):
8252 r"""__init__(PCB_PLOT_PARAMS self) -> PCB_PLOT_PARAMS"""
8253 _pcbnew.PCB_PLOT_PARAMS_swiginit(self, _pcbnew.new_PCB_PLOT_PARAMS())
8254
8255 def SetSkipPlotNPTH_Pads(self, aSkip):
8256 r"""SetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self, bool aSkip)"""
8257 return _pcbnew.PCB_PLOT_PARAMS_SetSkipPlotNPTH_Pads(self, aSkip)
8258
8260 r"""GetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self) -> bool"""
8261 return _pcbnew.PCB_PLOT_PARAMS_GetSkipPlotNPTH_Pads(self)
8262
8263 def Format(self, aFormatter):
8264 r"""Format(PCB_PLOT_PARAMS self, OUTPUTFORMATTER aFormatter)"""
8265 return _pcbnew.PCB_PLOT_PARAMS_Format(self, aFormatter)
8266
8267 def Parse(self, aParser):
8268 r"""Parse(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS_PARSER * aParser)"""
8269 return _pcbnew.PCB_PLOT_PARAMS_Parse(self, aParser)
8270
8271 def IsSameAs(self, aPcbPlotParams):
8272 r"""IsSameAs(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS aPcbPlotParams) -> bool"""
8273 return _pcbnew.PCB_PLOT_PARAMS_IsSameAs(self, aPcbPlotParams)
8274
8275 def SetColorSettings(self, aSettings):
8276 r"""SetColorSettings(PCB_PLOT_PARAMS self, COLOR_SETTINGS * aSettings)"""
8277 return _pcbnew.PCB_PLOT_PARAMS_SetColorSettings(self, aSettings)
8278
8279 def ColorSettings(self):
8280 r"""ColorSettings(PCB_PLOT_PARAMS self) -> COLOR_SETTINGS *"""
8281 return _pcbnew.PCB_PLOT_PARAMS_ColorSettings(self)
8282
8283 def SetTextMode(self, aVal):
8284 r"""SetTextMode(PCB_PLOT_PARAMS self, PLOT_TEXT_MODE aVal)"""
8285 return _pcbnew.PCB_PLOT_PARAMS_SetTextMode(self, aVal)
8286
8287 def GetTextMode(self):
8288 r"""GetTextMode(PCB_PLOT_PARAMS self) -> PLOT_TEXT_MODE"""
8289 return _pcbnew.PCB_PLOT_PARAMS_GetTextMode(self)
8290
8291 def SetPlotMode(self, aPlotMode):
8292 r"""SetPlotMode(PCB_PLOT_PARAMS self, OUTLINE_MODE aPlotMode)"""
8293 return _pcbnew.PCB_PLOT_PARAMS_SetPlotMode(self, aPlotMode)
8294
8295 def GetPlotMode(self):
8296 r"""GetPlotMode(PCB_PLOT_PARAMS self) -> OUTLINE_MODE"""
8297 return _pcbnew.PCB_PLOT_PARAMS_GetPlotMode(self)
8298
8299 def SetPlotPadNumbers(self, aFlag):
8300 r"""SetPlotPadNumbers(PCB_PLOT_PARAMS self, bool aFlag)"""
8301 return _pcbnew.PCB_PLOT_PARAMS_SetPlotPadNumbers(self, aFlag)
8302
8304 r"""GetPlotPadNumbers(PCB_PLOT_PARAMS self) -> bool"""
8305 return _pcbnew.PCB_PLOT_PARAMS_GetPlotPadNumbers(self)
8306
8307 def SetDXFPlotPolygonMode(self, aFlag):
8308 r"""SetDXFPlotPolygonMode(PCB_PLOT_PARAMS self, bool aFlag)"""
8309 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotPolygonMode(self, aFlag)
8310
8312 r"""GetDXFPlotPolygonMode(PCB_PLOT_PARAMS self) -> bool"""
8313 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotPolygonMode(self)
8314
8315 def SetDXFPlotUnits(self, aUnit):
8316 r"""SetDXFPlotUnits(PCB_PLOT_PARAMS self, DXF_UNITS aUnit)"""
8317 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotUnits(self, aUnit)
8318
8320 r"""GetDXFPlotUnits(PCB_PLOT_PARAMS self) -> DXF_UNITS"""
8321 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotUnits(self)
8322
8323 def SetDrillMarksType(self, aVal):
8324 r"""SetDrillMarksType(PCB_PLOT_PARAMS self, DRILL_MARKS aVal)"""
8325 return _pcbnew.PCB_PLOT_PARAMS_SetDrillMarksType(self, aVal)
8326
8328 r"""GetDrillMarksType(PCB_PLOT_PARAMS self) -> DRILL_MARKS"""
8329 return _pcbnew.PCB_PLOT_PARAMS_GetDrillMarksType(self)
8330
8331 def SetScale(self, aVal):
8332 r"""SetScale(PCB_PLOT_PARAMS self, double aVal)"""
8333 return _pcbnew.PCB_PLOT_PARAMS_SetScale(self, aVal)
8334
8335 def GetScale(self):
8336 r"""GetScale(PCB_PLOT_PARAMS self) -> double"""
8337 return _pcbnew.PCB_PLOT_PARAMS_GetScale(self)
8338
8339 def SetFineScaleAdjustX(self, aVal):
8340 r"""SetFineScaleAdjustX(PCB_PLOT_PARAMS self, double aVal)"""
8341 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustX(self, aVal)
8342
8344 r"""GetFineScaleAdjustX(PCB_PLOT_PARAMS self) -> double"""
8345 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustX(self)
8346
8347 def SetFineScaleAdjustY(self, aVal):
8348 r"""SetFineScaleAdjustY(PCB_PLOT_PARAMS self, double aVal)"""
8349 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustY(self, aVal)
8350
8352 r"""GetFineScaleAdjustY(PCB_PLOT_PARAMS self) -> double"""
8353 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustY(self)
8354
8355 def SetWidthAdjust(self, aVal):
8356 r"""SetWidthAdjust(PCB_PLOT_PARAMS self, int aVal)"""
8357 return _pcbnew.PCB_PLOT_PARAMS_SetWidthAdjust(self, aVal)
8358
8360 r"""GetWidthAdjust(PCB_PLOT_PARAMS self) -> int"""
8361 return _pcbnew.PCB_PLOT_PARAMS_GetWidthAdjust(self)
8362
8363 def SetAutoScale(self, aFlag):
8364 r"""SetAutoScale(PCB_PLOT_PARAMS self, bool aFlag)"""
8365 return _pcbnew.PCB_PLOT_PARAMS_SetAutoScale(self, aFlag)
8366
8367 def GetAutoScale(self):
8368 r"""GetAutoScale(PCB_PLOT_PARAMS self) -> bool"""
8369 return _pcbnew.PCB_PLOT_PARAMS_GetAutoScale(self)
8370
8371 def SetMirror(self, aFlag):
8372 r"""SetMirror(PCB_PLOT_PARAMS self, bool aFlag)"""
8373 return _pcbnew.PCB_PLOT_PARAMS_SetMirror(self, aFlag)
8374
8375 def GetMirror(self):
8376 r"""GetMirror(PCB_PLOT_PARAMS self) -> bool"""
8377 return _pcbnew.PCB_PLOT_PARAMS_GetMirror(self)
8378
8380 r"""SetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8381 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadsOnFabLayers(self, aFlag)
8382
8384 r"""GetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8385 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadsOnFabLayers(self)
8386
8387 def SetSketchPadLineWidth(self, aWidth):
8388 r"""SetSketchPadLineWidth(PCB_PLOT_PARAMS self, int aWidth)"""
8389 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadLineWidth(self, aWidth)
8390
8392 r"""GetSketchPadLineWidth(PCB_PLOT_PARAMS self) -> int"""
8393 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadLineWidth(self)
8394
8396 r"""SetHideDNPFPsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8397 return _pcbnew.PCB_PLOT_PARAMS_SetHideDNPFPsOnFabLayers(self, aFlag)
8398
8400 r"""GetHideDNPFPsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8401 return _pcbnew.PCB_PLOT_PARAMS_GetHideDNPFPsOnFabLayers(self)
8402
8404 r"""SetSketchDNPFPsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8405 return _pcbnew.PCB_PLOT_PARAMS_SetSketchDNPFPsOnFabLayers(self, aFlag)
8406
8408 r"""GetSketchDNPFPsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8409 return _pcbnew.PCB_PLOT_PARAMS_GetSketchDNPFPsOnFabLayers(self)
8410
8412 r"""SetCrossoutDNPFPsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8413 return _pcbnew.PCB_PLOT_PARAMS_SetCrossoutDNPFPsOnFabLayers(self, aFlag)
8414
8416 r"""GetCrossoutDNPFPsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8417 return _pcbnew.PCB_PLOT_PARAMS_GetCrossoutDNPFPsOnFabLayers(self)
8418
8419 def SetPlotValue(self, aFlag):
8420 r"""SetPlotValue(PCB_PLOT_PARAMS self, bool aFlag)"""
8421 return _pcbnew.PCB_PLOT_PARAMS_SetPlotValue(self, aFlag)
8422
8423 def GetPlotValue(self):
8424 r"""GetPlotValue(PCB_PLOT_PARAMS self) -> bool"""
8425 return _pcbnew.PCB_PLOT_PARAMS_GetPlotValue(self)
8426
8427 def SetPlotReference(self, aFlag):
8428 r"""SetPlotReference(PCB_PLOT_PARAMS self, bool aFlag)"""
8429 return _pcbnew.PCB_PLOT_PARAMS_SetPlotReference(self, aFlag)
8430
8432 r"""GetPlotReference(PCB_PLOT_PARAMS self) -> bool"""
8433 return _pcbnew.PCB_PLOT_PARAMS_GetPlotReference(self)
8434
8435 def SetPlotFPText(self, aFlag):
8436 r"""SetPlotFPText(PCB_PLOT_PARAMS self, bool aFlag)"""
8437 return _pcbnew.PCB_PLOT_PARAMS_SetPlotFPText(self, aFlag)
8438
8439 def GetPlotFPText(self):
8440 r"""GetPlotFPText(PCB_PLOT_PARAMS self) -> bool"""
8441 return _pcbnew.PCB_PLOT_PARAMS_GetPlotFPText(self)
8442
8443 def SetNegative(self, aFlag):
8444 r"""SetNegative(PCB_PLOT_PARAMS self, bool aFlag)"""
8445 return _pcbnew.PCB_PLOT_PARAMS_SetNegative(self, aFlag)
8446
8447 def GetNegative(self):
8448 r"""GetNegative(PCB_PLOT_PARAMS self) -> bool"""
8449 return _pcbnew.PCB_PLOT_PARAMS_GetNegative(self)
8450
8452 r"""GetLegacyPlotViaOnMaskLayer(PCB_PLOT_PARAMS self) -> std::optional< bool >"""
8453 return _pcbnew.PCB_PLOT_PARAMS_GetLegacyPlotViaOnMaskLayer(self)
8454
8455 def SetPlotFrameRef(self, aFlag):
8456 r"""SetPlotFrameRef(PCB_PLOT_PARAMS self, bool aFlag)"""
8457 return _pcbnew.PCB_PLOT_PARAMS_SetPlotFrameRef(self, aFlag)
8458
8460 r"""GetPlotFrameRef(PCB_PLOT_PARAMS self) -> bool"""
8461 return _pcbnew.PCB_PLOT_PARAMS_GetPlotFrameRef(self)
8462
8463 def SetFormat(self, aFormat):
8464 r"""SetFormat(PCB_PLOT_PARAMS self, PLOT_FORMAT aFormat)"""
8465 return _pcbnew.PCB_PLOT_PARAMS_SetFormat(self, aFormat)
8466
8467 def GetFormat(self):
8468 r"""GetFormat(PCB_PLOT_PARAMS self) -> PLOT_FORMAT"""
8469 return _pcbnew.PCB_PLOT_PARAMS_GetFormat(self)
8470
8471 def SetOutputDirectory(self, aDir):
8472 r"""SetOutputDirectory(PCB_PLOT_PARAMS self, wxString aDir)"""
8473 return _pcbnew.PCB_PLOT_PARAMS_SetOutputDirectory(self, aDir)
8474
8476 r"""GetOutputDirectory(PCB_PLOT_PARAMS self) -> wxString"""
8477 return _pcbnew.PCB_PLOT_PARAMS_GetOutputDirectory(self)
8478
8479 def SetDisableGerberMacros(self, aDisable):
8480 r"""SetDisableGerberMacros(PCB_PLOT_PARAMS self, bool aDisable)"""
8481 return _pcbnew.PCB_PLOT_PARAMS_SetDisableGerberMacros(self, aDisable)
8482
8484 r"""GetDisableGerberMacros(PCB_PLOT_PARAMS self) -> bool"""
8485 return _pcbnew.PCB_PLOT_PARAMS_GetDisableGerberMacros(self)
8486
8487 def SetUseGerberX2format(self, aUse):
8488 r"""SetUseGerberX2format(PCB_PLOT_PARAMS self, bool aUse)"""
8489 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberX2format(self, aUse)
8490
8492 r"""GetUseGerberX2format(PCB_PLOT_PARAMS self) -> bool"""
8493 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberX2format(self)
8494
8496 r"""SetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self, bool aUse)"""
8497 return _pcbnew.PCB_PLOT_PARAMS_SetIncludeGerberNetlistInfo(self, aUse)
8498
8500 r"""GetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self) -> bool"""
8501 return _pcbnew.PCB_PLOT_PARAMS_GetIncludeGerberNetlistInfo(self)
8502
8503 def SetCreateGerberJobFile(self, aCreate):
8504 r"""SetCreateGerberJobFile(PCB_PLOT_PARAMS self, bool aCreate)"""
8505 return _pcbnew.PCB_PLOT_PARAMS_SetCreateGerberJobFile(self, aCreate)
8506
8508 r"""GetCreateGerberJobFile(PCB_PLOT_PARAMS self) -> bool"""
8509 return _pcbnew.PCB_PLOT_PARAMS_GetCreateGerberJobFile(self)
8510
8512 r"""SetUseGerberProtelExtensions(PCB_PLOT_PARAMS self, bool aUse)"""
8513 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberProtelExtensions(self, aUse)
8514
8516 r"""GetUseGerberProtelExtensions(PCB_PLOT_PARAMS self) -> bool"""
8517 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberProtelExtensions(self)
8518
8519 def SetGerberPrecision(self, aPrecision):
8520 r"""SetGerberPrecision(PCB_PLOT_PARAMS self, int aPrecision)"""
8521 return _pcbnew.PCB_PLOT_PARAMS_SetGerberPrecision(self, aPrecision)
8522
8524 r"""GetGerberPrecision(PCB_PLOT_PARAMS self) -> int"""
8525 return _pcbnew.PCB_PLOT_PARAMS_GetGerberPrecision(self)
8526
8527 def SetSvgPrecision(self, aPrecision):
8528 r"""SetSvgPrecision(PCB_PLOT_PARAMS self, unsigned int aPrecision)"""
8529 return _pcbnew.PCB_PLOT_PARAMS_SetSvgPrecision(self, aPrecision)
8530
8532 r"""GetSvgPrecision(PCB_PLOT_PARAMS self) -> unsigned int"""
8533 return _pcbnew.PCB_PLOT_PARAMS_GetSvgPrecision(self)
8534
8535 def SetSvgFitPageToBoard(self, aSvgFitPageToBoard):
8536 r"""SetSvgFitPageToBoard(PCB_PLOT_PARAMS self, int aSvgFitPageToBoard)"""
8537 return _pcbnew.PCB_PLOT_PARAMS_SetSvgFitPageToBoard(self, aSvgFitPageToBoard)
8538
8540 r"""GetSvgFitPagetoBoard(PCB_PLOT_PARAMS self) -> bool"""
8541 return _pcbnew.PCB_PLOT_PARAMS_GetSvgFitPagetoBoard(self)
8542
8543 def SetBlackAndWhite(self, blackAndWhite):
8544 r"""SetBlackAndWhite(PCB_PLOT_PARAMS self, bool blackAndWhite)"""
8545 return _pcbnew.PCB_PLOT_PARAMS_SetBlackAndWhite(self, blackAndWhite)
8546
8548 r"""GetBlackAndWhite(PCB_PLOT_PARAMS self) -> unsigned int"""
8549 return _pcbnew.PCB_PLOT_PARAMS_GetBlackAndWhite(self)
8550
8551 def SetSubtractMaskFromSilk(self, aSubtract):
8552 r"""SetSubtractMaskFromSilk(PCB_PLOT_PARAMS self, bool aSubtract)"""
8553 return _pcbnew.PCB_PLOT_PARAMS_SetSubtractMaskFromSilk(self, aSubtract)
8554
8556 r"""GetSubtractMaskFromSilk(PCB_PLOT_PARAMS self) -> bool"""
8557 return _pcbnew.PCB_PLOT_PARAMS_GetSubtractMaskFromSilk(self)
8558
8559 def SetLayerSelection(self, aSelection):
8560 r"""SetLayerSelection(PCB_PLOT_PARAMS self, LSET aSelection)"""
8561 return _pcbnew.PCB_PLOT_PARAMS_SetLayerSelection(self, aSelection)
8562
8564 r"""GetLayerSelection(PCB_PLOT_PARAMS self) -> LSET"""
8565 return _pcbnew.PCB_PLOT_PARAMS_GetLayerSelection(self)
8566
8568 r"""SetPlotOnAllLayersSequence(PCB_PLOT_PARAMS self, LSEQ aSeq)"""
8569 return _pcbnew.PCB_PLOT_PARAMS_SetPlotOnAllLayersSequence(self, aSeq)
8570
8572 r"""GetPlotOnAllLayersSequence(PCB_PLOT_PARAMS self) -> LSEQ"""
8573 return _pcbnew.PCB_PLOT_PARAMS_GetPlotOnAllLayersSequence(self)
8574
8575 def SetUseAuxOrigin(self, aAux):
8576 r"""SetUseAuxOrigin(PCB_PLOT_PARAMS self, bool aAux)"""
8577 return _pcbnew.PCB_PLOT_PARAMS_SetUseAuxOrigin(self, aAux)
8578
8580 r"""GetUseAuxOrigin(PCB_PLOT_PARAMS self) -> bool"""
8581 return _pcbnew.PCB_PLOT_PARAMS_GetUseAuxOrigin(self)
8582
8583 def SetScaleSelection(self, aSelection):
8584 r"""SetScaleSelection(PCB_PLOT_PARAMS self, int aSelection)"""
8585 return _pcbnew.PCB_PLOT_PARAMS_SetScaleSelection(self, aSelection)
8586
8588 r"""GetScaleSelection(PCB_PLOT_PARAMS self) -> int"""
8589 return _pcbnew.PCB_PLOT_PARAMS_GetScaleSelection(self)
8590
8591 def SetA4Output(self, aForce):
8592 r"""SetA4Output(PCB_PLOT_PARAMS self, int aForce)"""
8593 return _pcbnew.PCB_PLOT_PARAMS_SetA4Output(self, aForce)
8594
8595 def GetA4Output(self):
8596 r"""GetA4Output(PCB_PLOT_PARAMS self) -> bool"""
8597 return _pcbnew.PCB_PLOT_PARAMS_GetA4Output(self)
8598
8600 r"""GetHPGLPenDiameter(PCB_PLOT_PARAMS self) -> double"""
8601 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenDiameter(self)
8602
8603 def SetHPGLPenDiameter(self, aValue):
8604 r"""SetHPGLPenDiameter(PCB_PLOT_PARAMS self, double aValue) -> bool"""
8605 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenDiameter(self, aValue)
8606
8608 r"""GetHPGLPenSpeed(PCB_PLOT_PARAMS self) -> int"""
8609 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenSpeed(self)
8610
8611 def SetHPGLPenSpeed(self, aValue):
8612 r"""SetHPGLPenSpeed(PCB_PLOT_PARAMS self, int aValue) -> bool"""
8613 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenSpeed(self, aValue)
8614
8615 def SetHPGLPenNum(self, aVal):
8616 r"""SetHPGLPenNum(PCB_PLOT_PARAMS self, int aVal)"""
8617 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenNum(self, aVal)
8618
8619 def GetHPGLPenNum(self):
8620 r"""GetHPGLPenNum(PCB_PLOT_PARAMS self) -> int"""
8621 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenNum(self)
8622
8623 def SetDashedLineDashRatio(self, aVal):
8624 r"""SetDashedLineDashRatio(PCB_PLOT_PARAMS self, double aVal)"""
8625 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineDashRatio(self, aVal)
8626
8628 r"""GetDashedLineDashRatio(PCB_PLOT_PARAMS self) -> double"""
8629 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineDashRatio(self)
8630
8631 def SetDashedLineGapRatio(self, aVal):
8632 r"""SetDashedLineGapRatio(PCB_PLOT_PARAMS self, double aVal)"""
8633 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineGapRatio(self, aVal)
8634
8636 r"""GetDashedLineGapRatio(PCB_PLOT_PARAMS self) -> double"""
8637 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineGapRatio(self)
8638 m_PDFFrontFPPropertyPopups = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFFrontFPPropertyPopups_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFFrontFPPropertyPopups_set, doc=r"""m_PDFFrontFPPropertyPopups : bool""")
8639 m_PDFBackFPPropertyPopups = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFBackFPPropertyPopups_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFBackFPPropertyPopups_set, doc=r"""m_PDFBackFPPropertyPopups : bool""")
8640 m_PDFMetadata = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFMetadata_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFMetadata_set, doc=r"""m_PDFMetadata : bool""")
8641 m_PDFSingle = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFSingle_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFSingle_set, doc=r"""m_PDFSingle : bool""")
8642
8643 # add SetUseGerberAttributes() for compatibility with old python scripts
8644 # after renaming it to SetUseGerberX2format()
8645 def SetUseGerberAttributes( self, aUse ):
8646 return self.SetUseGerberX2format( aUse )
8647
8648 __swig_destroy__ = _pcbnew.delete_PCB_PLOT_PARAMS
8649
8650# Register PCB_PLOT_PARAMS in _pcbnew:
8651_pcbnew.PCB_PLOT_PARAMS_swigregister(PCB_PLOT_PARAMS)
8652DXF_UNITS_INCH = _pcbnew.DXF_UNITS_INCH
8653
8654DXF_UNITS_MM = _pcbnew.DXF_UNITS_MM
8655
8656PLOT_FORMAT_UNDEFINED = _pcbnew.PLOT_FORMAT_UNDEFINED
8657
8658PLOT_FORMAT_FIRST_FORMAT = _pcbnew.PLOT_FORMAT_FIRST_FORMAT
8659
8660PLOT_FORMAT_HPGL = _pcbnew.PLOT_FORMAT_HPGL
8661
8662PLOT_FORMAT_GERBER = _pcbnew.PLOT_FORMAT_GERBER
8663
8664PLOT_FORMAT_POST = _pcbnew.PLOT_FORMAT_POST
8665
8666PLOT_FORMAT_DXF = _pcbnew.PLOT_FORMAT_DXF
8667
8668PLOT_FORMAT_PDF = _pcbnew.PLOT_FORMAT_PDF
8669
8670PLOT_FORMAT_SVG = _pcbnew.PLOT_FORMAT_SVG
8671
8672PLOT_FORMAT_LAST_FORMAT = _pcbnew.PLOT_FORMAT_LAST_FORMAT
8673
8674PLOT_TEXT_MODE_STROKE = _pcbnew.PLOT_TEXT_MODE_STROKE
8675
8676PLOT_TEXT_MODE_NATIVE = _pcbnew.PLOT_TEXT_MODE_NATIVE
8677
8678PLOT_TEXT_MODE_PHANTOM = _pcbnew.PLOT_TEXT_MODE_PHANTOM
8679
8680PLOT_TEXT_MODE_DEFAULT = _pcbnew.PLOT_TEXT_MODE_DEFAULT
8681
8683 r"""Proxy of C++ PLOTTER class."""
8684
8685 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8686
8687 def __init__(self, *args, **kwargs):
8688 raise AttributeError("No constructor defined - class is abstract")
8689 __repr__ = _swig_repr
8690 DO_NOT_SET_LINE_WIDTH = _pcbnew.PLOTTER_DO_NOT_SET_LINE_WIDTH
8691
8692 USE_DEFAULT_LINE_WIDTH = _pcbnew.PLOTTER_USE_DEFAULT_LINE_WIDTH
8693
8694 __swig_destroy__ = _pcbnew.delete_PLOTTER
8695
8697 r"""GetPlotterType(PLOTTER self) -> PLOT_FORMAT"""
8698 return _pcbnew.PLOTTER_GetPlotterType(self)
8699
8700 def StartPlot(self, aPageNumber):
8701 r"""StartPlot(PLOTTER self, wxString aPageNumber) -> bool"""
8702 return _pcbnew.PLOTTER_StartPlot(self, aPageNumber)
8703
8704 def EndPlot(self):
8705 r"""EndPlot(PLOTTER self) -> bool"""
8706 return _pcbnew.PLOTTER_EndPlot(self)
8707
8708 def SetNegative(self, aNegative):
8709 r"""SetNegative(PLOTTER self, bool aNegative)"""
8710 return _pcbnew.PLOTTER_SetNegative(self, aNegative)
8711
8712 def SetColorMode(self, aColorMode):
8713 r"""SetColorMode(PLOTTER self, bool aColorMode)"""
8714 return _pcbnew.PLOTTER_SetColorMode(self, aColorMode)
8715
8716 def GetColorMode(self):
8717 r"""GetColorMode(PLOTTER self) -> bool"""
8718 return _pcbnew.PLOTTER_GetColorMode(self)
8719
8720 def SetRenderSettings(self, aSettings):
8721 r"""SetRenderSettings(PLOTTER self, RENDER_SETTINGS * aSettings)"""
8722 return _pcbnew.PLOTTER_SetRenderSettings(self, aSettings)
8723
8725 r"""RenderSettings(PLOTTER self) -> RENDER_SETTINGS *"""
8726 return _pcbnew.PLOTTER_RenderSettings(self)
8727
8728 def SetPageSettings(self, aPageSettings):
8729 r"""SetPageSettings(PLOTTER self, PAGE_INFO const & aPageSettings)"""
8730 return _pcbnew.PLOTTER_SetPageSettings(self, aPageSettings)
8731
8732 def PageSettings(self):
8733 r"""PageSettings(PLOTTER self) -> PAGE_INFO &"""
8734 return _pcbnew.PLOTTER_PageSettings(self)
8735
8736 def SetPlotMirrored(self, aMirror):
8737 r"""SetPlotMirrored(PLOTTER self, bool aMirror)"""
8738 return _pcbnew.PLOTTER_SetPlotMirrored(self, aMirror)
8739
8741 r"""GetPlotMirrored(PLOTTER self) -> bool"""
8742 return _pcbnew.PLOTTER_GetPlotMirrored(self)
8743
8744 def SetCurrentLineWidth(self, width, aData=None):
8745 r"""SetCurrentLineWidth(PLOTTER self, int width, void * aData=None)"""
8746 return _pcbnew.PLOTTER_SetCurrentLineWidth(self, width, aData)
8747
8749 r"""GetCurrentLineWidth(PLOTTER self) -> int"""
8750 return _pcbnew.PLOTTER_GetCurrentLineWidth(self)
8751
8752 def SetColor(self, color):
8753 r"""SetColor(PLOTTER self, COLOR4D color)"""
8754 return _pcbnew.PLOTTER_SetColor(self, color)
8755
8756 def SetDash(self, aLineWidth, aLineStyle):
8757 r"""SetDash(PLOTTER self, int aLineWidth, LINE_STYLE aLineStyle)"""
8758 return _pcbnew.PLOTTER_SetDash(self, aLineWidth, aLineStyle)
8759
8760 def SetCreator(self, aCreator):
8761 r"""SetCreator(PLOTTER self, wxString aCreator)"""
8762 return _pcbnew.PLOTTER_SetCreator(self, aCreator)
8763
8764 def SetTitle(self, aTitle):
8765 r"""SetTitle(PLOTTER self, wxString aTitle)"""
8766 return _pcbnew.PLOTTER_SetTitle(self, aTitle)
8767
8768 def SetAuthor(self, aAuthor):
8769 r"""SetAuthor(PLOTTER self, wxString aAuthor)"""
8770 return _pcbnew.PLOTTER_SetAuthor(self, aAuthor)
8771
8772 def SetSubject(self, aSubject):
8773 r"""SetSubject(PLOTTER self, wxString aSubject)"""
8774 return _pcbnew.PLOTTER_SetSubject(self, aSubject)
8775
8776 def AddLineToHeader(self, aExtraString):
8777 r"""AddLineToHeader(PLOTTER self, wxString aExtraString)"""
8778 return _pcbnew.PLOTTER_AddLineToHeader(self, aExtraString)
8779
8781 r"""ClearHeaderLinesList(PLOTTER self)"""
8782 return _pcbnew.PLOTTER_ClearHeaderLinesList(self)
8783
8784 def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror):
8785 r"""SetViewport(PLOTTER self, VECTOR2I aOffset, double aIusPerDecimil, double aScale, bool aMirror)"""
8786 return _pcbnew.PLOTTER_SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
8787
8788 def OpenFile(self, aFullFilename):
8789 r"""OpenFile(PLOTTER self, wxString aFullFilename) -> bool"""
8790 return _pcbnew.PLOTTER_OpenFile(self, aFullFilename)
8791
8793 r"""GetIUsPerDecimil(PLOTTER self) -> double"""
8794 return _pcbnew.PLOTTER_GetIUsPerDecimil(self)
8795
8797 r"""GetPlotterArcLowDef(PLOTTER self) -> int"""
8798 return _pcbnew.PLOTTER_GetPlotterArcLowDef(self)
8799
8801 r"""GetPlotterArcHighDef(PLOTTER self) -> int"""
8802 return _pcbnew.PLOTTER_GetPlotterArcHighDef(self)
8803
8804 def Rect(self, *args):
8805 r"""Rect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8806 return _pcbnew.PLOTTER_Rect(self, *args)
8807
8808 def Circle(self, *args):
8809 r"""Circle(PLOTTER self, VECTOR2I pos, int diametre, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8810 return _pcbnew.PLOTTER_Circle(self, *args)
8811
8812 def Arc(self, *args):
8813 r"""
8814 Arc(PLOTTER self, VECTOR2D const & aStart, VECTOR2D const & aMid, VECTOR2D const & aEnd, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH)
8815 Arc(PLOTTER self, VECTOR2D const & aCenter, EDA_ANGLE aStartAngle, EDA_ANGLE aAngle, double aRadius, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH)
8816 """
8817 return _pcbnew.PLOTTER_Arc(self, *args)
8818
8819 def BezierCurve(self, *args):
8820 r"""BezierCurve(PLOTTER self, VECTOR2I aStart, VECTOR2I aControl1, VECTOR2I aControl2, VECTOR2I aEnd, int aTolerance, int aLineThickness=USE_DEFAULT_LINE_WIDTH)"""
8821 return _pcbnew.PLOTTER_BezierCurve(self, *args)
8822
8823 def PenTo(self, pos, plume):
8824 r"""PenTo(PLOTTER self, VECTOR2I pos, char plume)"""
8825 return _pcbnew.PLOTTER_PenTo(self, pos, plume)
8826
8827 def MoveTo(self, pos):
8828 r"""MoveTo(PLOTTER self, VECTOR2I pos)"""
8829 return _pcbnew.PLOTTER_MoveTo(self, pos)
8830
8831 def LineTo(self, pos):
8832 r"""LineTo(PLOTTER self, VECTOR2I pos)"""
8833 return _pcbnew.PLOTTER_LineTo(self, pos)
8834
8835 def FinishTo(self, pos):
8836 r"""FinishTo(PLOTTER self, VECTOR2I pos)"""
8837 return _pcbnew.PLOTTER_FinishTo(self, pos)
8838
8839 def PenFinish(self):
8840 r"""PenFinish(PLOTTER self)"""
8841 return _pcbnew.PLOTTER_PenFinish(self)
8842
8843 def PlotPoly(self, *args):
8844 r"""
8845 PlotPoly(PLOTTER self, VECTOR_VECTOR2I aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8846 PlotPoly(PLOTTER self, SHAPE_LINE_CHAIN aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8847 """
8848 return _pcbnew.PLOTTER_PlotPoly(self, *args)
8849
8850 def PlotImage(self, aImage, aPos, aScaleFactor):
8851 r"""PlotImage(PLOTTER self, wxImage const & aImage, VECTOR2I aPos, double aScaleFactor)"""
8852 return _pcbnew.PLOTTER_PlotImage(self, aImage, aPos, aScaleFactor)
8853
8854 def ThickSegment(self, start, end, width, tracemode, aData):
8855 r"""ThickSegment(PLOTTER self, VECTOR2I start, VECTOR2I end, int width, OUTLINE_MODE tracemode, void * aData)"""
8856 return _pcbnew.PLOTTER_ThickSegment(self, start, end, width, tracemode, aData)
8857
8858 def ThickArc(self, *args):
8859 r"""
8860 ThickArc(PLOTTER self, EDA_SHAPE aArcShape, OUTLINE_MODE aTraceMode, void * aData, int aWidth)
8861 ThickArc(PLOTTER self, VECTOR2D const & aCentre, EDA_ANGLE aStAngle, EDA_ANGLE aAngle, double aRadius, int aWidth, OUTLINE_MODE aTraceMode, void * aData)
8862 """
8863 return _pcbnew.PLOTTER_ThickArc(self, *args)
8864
8865 def ThickRect(self, p1, p2, width, tracemode, aData):
8866 r"""ThickRect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, int width, OUTLINE_MODE tracemode, void * aData)"""
8867 return _pcbnew.PLOTTER_ThickRect(self, p1, p2, width, tracemode, aData)
8868
8869 def ThickCircle(self, pos, diametre, width, tracemode, aData):
8870 r"""ThickCircle(PLOTTER self, VECTOR2I pos, int diametre, int width, OUTLINE_MODE tracemode, void * aData)"""
8871 return _pcbnew.PLOTTER_ThickCircle(self, pos, diametre, width, tracemode, aData)
8872
8873 def FilledCircle(self, pos, diametre, tracemode, aData):
8874 r"""FilledCircle(PLOTTER self, VECTOR2I pos, int diametre, OUTLINE_MODE tracemode, void * aData)"""
8875 return _pcbnew.PLOTTER_FilledCircle(self, pos, diametre, tracemode, aData)
8876
8877 def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData):
8878 r"""FlashPadCircle(PLOTTER self, VECTOR2I aPadPos, int aDiameter, OUTLINE_MODE aTraceMode, void * aData)"""
8879 return _pcbnew.PLOTTER_FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
8880
8881 def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
8882 r"""FlashPadOval(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8883 return _pcbnew.PLOTTER_FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
8884
8885 def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
8886 r"""FlashPadRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8887 return _pcbnew.PLOTTER_FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
8888
8889 def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData):
8890 r"""FlashPadRoundRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, int aCornerRadius, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8891 return _pcbnew.PLOTTER_FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
8892
8893 def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData):
8894 r"""FlashPadCustom(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, SHAPE_POLY_SET aPolygons, OUTLINE_MODE aTraceMode, void * aData)"""
8895 return _pcbnew.PLOTTER_FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
8896
8897 def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData):
8898 r"""FlashPadTrapez(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aCorners, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8899 return _pcbnew.PLOTTER_FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
8900
8901 def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData):
8902 r"""FlashRegularPolygon(PLOTTER self, VECTOR2I aShapePos, int aDiameter, int aCornerCount, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
8903 return _pcbnew.PLOTTER_FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
8904
8905 def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData=None):
8906 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)"""
8907 return _pcbnew.PLOTTER_Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData)
8908
8909 def PlotText(self, *args):
8910 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)"""
8911 return _pcbnew.PLOTTER_PlotText(self, *args)
8912
8913 def HyperlinkBox(self, aBox, aDestinationURL):
8914 r"""HyperlinkBox(PLOTTER self, BOX2I aBox, wxString aDestinationURL)"""
8915 return _pcbnew.PLOTTER_HyperlinkBox(self, aBox, aDestinationURL)
8916
8917 def HyperlinkMenu(self, aBox, aDestURLs):
8918 r"""HyperlinkMenu(PLOTTER self, BOX2I aBox, std::vector< wxString,std::allocator< wxString > > const & aDestURLs)"""
8919 return _pcbnew.PLOTTER_HyperlinkMenu(self, aBox, aDestURLs)
8920
8921 def Bookmark(self, *args):
8922 r"""Bookmark(PLOTTER self, BOX2I aBox, wxString aName, wxString aGroupName=wxEmptyString)"""
8923 return _pcbnew.PLOTTER_Bookmark(self, *args)
8924 MARKER_COUNT = _pcbnew.PLOTTER_MARKER_COUNT
8925
8926
8927 def Marker(self, position, diametre, aShapeId):
8928 r"""Marker(PLOTTER self, VECTOR2I position, int diametre, unsigned int aShapeId)"""
8929 return _pcbnew.PLOTTER_Marker(self, position, diametre, aShapeId)
8930
8931 def SetLayerPolarity(self, aPositive):
8932 r"""SetLayerPolarity(PLOTTER self, bool aPositive)"""
8933 return _pcbnew.PLOTTER_SetLayerPolarity(self, aPositive)
8934
8935 def SetTextMode(self, mode):
8936 r"""SetTextMode(PLOTTER self, PLOT_TEXT_MODE mode)"""
8937 return _pcbnew.PLOTTER_SetTextMode(self, mode)
8938
8939 def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False):
8940 r"""SetGerberCoordinatesFormat(PLOTTER self, int aResolution, bool aUseInches=False)"""
8941 return _pcbnew.PLOTTER_SetGerberCoordinatesFormat(self, aResolution, aUseInches)
8942
8943 def SetSvgCoordinatesFormat(self, aPrecision):
8944 r"""SetSvgCoordinatesFormat(PLOTTER self, unsigned int aPrecision)"""
8945 return _pcbnew.PLOTTER_SetSvgCoordinatesFormat(self, aPrecision)
8946
8947 def StartBlock(self, aData):
8948 r"""StartBlock(PLOTTER self, void * aData)"""
8949 return _pcbnew.PLOTTER_StartBlock(self, aData)
8950
8951 def EndBlock(self, aData):
8952 r"""EndBlock(PLOTTER self, void * aData)"""
8953 return _pcbnew.PLOTTER_EndBlock(self, aData)
8954
8956 r"""GetPlotOffsetUserUnits(PLOTTER self) -> VECTOR2I"""
8957 return _pcbnew.PLOTTER_GetPlotOffsetUserUnits(self)
8958
8959# Register PLOTTER in _pcbnew:
8960_pcbnew.PLOTTER_swigregister(PLOTTER)
8961
8963 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)"""
8964 return _pcbnew.PlotDrawingSheet(*args)
8965
8967 r"""GetDefaultPlotExtension(PLOT_FORMAT aFormat) -> wxString"""
8968 return _pcbnew.GetDefaultPlotExtension(aFormat)
8970 r"""Proxy of C++ D356_RECORD class."""
8971
8972 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8973 __repr__ = _swig_repr
8974 smd = property(_pcbnew.D356_RECORD_smd_get, _pcbnew.D356_RECORD_smd_set, doc=r"""smd : bool""")
8975 hole = property(_pcbnew.D356_RECORD_hole_get, _pcbnew.D356_RECORD_hole_set, doc=r"""hole : bool""")
8976 netname = property(_pcbnew.D356_RECORD_netname_get, _pcbnew.D356_RECORD_netname_set, doc=r"""netname : wxString""")
8977 refdes = property(_pcbnew.D356_RECORD_refdes_get, _pcbnew.D356_RECORD_refdes_set, doc=r"""refdes : wxString""")
8978 pin = property(_pcbnew.D356_RECORD_pin_get, _pcbnew.D356_RECORD_pin_set, doc=r"""pin : wxString""")
8979 midpoint = property(_pcbnew.D356_RECORD_midpoint_get, _pcbnew.D356_RECORD_midpoint_set, doc=r"""midpoint : bool""")
8980 drill = property(_pcbnew.D356_RECORD_drill_get, _pcbnew.D356_RECORD_drill_set, doc=r"""drill : int""")
8981 mechanical = property(_pcbnew.D356_RECORD_mechanical_get, _pcbnew.D356_RECORD_mechanical_set, doc=r"""mechanical : bool""")
8982 access = property(_pcbnew.D356_RECORD_access_get, _pcbnew.D356_RECORD_access_set, doc=r"""access : int""")
8983 soldermask = property(_pcbnew.D356_RECORD_soldermask_get, _pcbnew.D356_RECORD_soldermask_set, doc=r"""soldermask : int""")
8984 x_location = property(_pcbnew.D356_RECORD_x_location_get, _pcbnew.D356_RECORD_x_location_set, doc=r"""x_location : int""")
8985 y_location = property(_pcbnew.D356_RECORD_y_location_get, _pcbnew.D356_RECORD_y_location_set, doc=r"""y_location : int""")
8986 x_size = property(_pcbnew.D356_RECORD_x_size_get, _pcbnew.D356_RECORD_x_size_set, doc=r"""x_size : int""")
8987 y_size = property(_pcbnew.D356_RECORD_y_size_get, _pcbnew.D356_RECORD_y_size_set, doc=r"""y_size : int""")
8988 rotation = property(_pcbnew.D356_RECORD_rotation_get, _pcbnew.D356_RECORD_rotation_set, doc=r"""rotation : int""")
8989
8990 def __init__(self):
8991 r"""__init__(D356_RECORD self) -> D356_RECORD"""
8992 _pcbnew.D356_RECORD_swiginit(self, _pcbnew.new_D356_RECORD())
8993 __swig_destroy__ = _pcbnew.delete_D356_RECORD
8994
8995# Register D356_RECORD in _pcbnew:
8996_pcbnew.D356_RECORD_swigregister(D356_RECORD)
8998 r"""Proxy of C++ IPC356D_WRITER class."""
8999
9000 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9001 __repr__ = _swig_repr
9002
9003 def __init__(self, aPcb):
9004 r"""__init__(IPC356D_WRITER self, BOARD aPcb) -> IPC356D_WRITER"""
9005 _pcbnew.IPC356D_WRITER_swiginit(self, _pcbnew.new_IPC356D_WRITER(aPcb))
9006 __swig_destroy__ = _pcbnew.delete_IPC356D_WRITER
9007
9008 def Write(self, aFilename):
9009 r"""Write(IPC356D_WRITER self, wxString aFilename) -> bool"""
9010 return _pcbnew.IPC356D_WRITER_Write(self, aFilename)
9011
9012# Register IPC356D_WRITER in _pcbnew:
9013_pcbnew.IPC356D_WRITER_swigregister(IPC356D_WRITER)
9015 r"""Proxy of C++ PLACE_FILE_EXPORTER class."""
9016
9017 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9018 __repr__ = _swig_repr
9019
9020 def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX):
9021 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"""
9022 _pcbnew.PLACE_FILE_EXPORTER_swiginit(self, _pcbnew.new_PLACE_FILE_EXPORTER(aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX))
9023
9025 r"""GenPositionData(PLACE_FILE_EXPORTER self) -> string"""
9026 return _pcbnew.PLACE_FILE_EXPORTER_GenPositionData(self)
9027
9028 def GenReportData(self):
9029 r"""GenReportData(PLACE_FILE_EXPORTER self) -> string"""
9030 return _pcbnew.PLACE_FILE_EXPORTER_GenReportData(self)
9031
9033 r"""GetFootprintCount(PLACE_FILE_EXPORTER self) -> int"""
9034 return _pcbnew.PLACE_FILE_EXPORTER_GetFootprintCount(self)
9035
9036 @staticmethod
9038 r"""GetFrontSideName() -> string"""
9039 return _pcbnew.PLACE_FILE_EXPORTER_GetFrontSideName()
9040
9041 @staticmethod
9043 r"""GetBackSideName() -> string"""
9044 return _pcbnew.PLACE_FILE_EXPORTER_GetBackSideName()
9045
9046 @staticmethod
9047 def DecorateFilename(aBaseName, aFront, aBack):
9048 r"""DecorateFilename(wxString aBaseName, bool aFront, bool aBack) -> wxString"""
9049 return _pcbnew.PLACE_FILE_EXPORTER_DecorateFilename(aBaseName, aFront, aBack)
9050 __swig_destroy__ = _pcbnew.delete_PLACE_FILE_EXPORTER
9051
9052# Register PLACE_FILE_EXPORTER in _pcbnew:
9053_pcbnew.PLACE_FILE_EXPORTER_swigregister(PLACE_FILE_EXPORTER)
9055 r"""Proxy of C++ EXPORTER_VRML class."""
9056
9057 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9058 __repr__ = _swig_repr
9059
9060 def __init__(self, aBoard):
9061 r"""__init__(EXPORTER_VRML self, BOARD aBoard) -> EXPORTER_VRML"""
9062 _pcbnew.EXPORTER_VRML_swiginit(self, _pcbnew.new_EXPORTER_VRML(aBoard))
9063 __swig_destroy__ = _pcbnew.delete_EXPORTER_VRML
9064
9065 def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
9066 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"""
9067 return _pcbnew.EXPORTER_VRML_ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
9068
9069# Register EXPORTER_VRML in _pcbnew:
9070_pcbnew.EXPORTER_VRML_swigregister(EXPORTER_VRML)
9071USE_ATTRIB_FOR_HOLES = _pcbnew.USE_ATTRIB_FOR_HOLES
9072
9073HOLE_ATTRIBUTE_HOLE_UNKNOWN = _pcbnew.HOLE_ATTRIBUTE_HOLE_UNKNOWN
9074
9075HOLE_ATTRIBUTE_HOLE_VIA_THROUGH = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_THROUGH
9076
9077HOLE_ATTRIBUTE_HOLE_VIA_BURIED = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_BURIED
9078
9079HOLE_ATTRIBUTE_HOLE_PAD = _pcbnew.HOLE_ATTRIBUTE_HOLE_PAD
9080
9081HOLE_ATTRIBUTE_HOLE_MECHANICAL = _pcbnew.HOLE_ATTRIBUTE_HOLE_MECHANICAL
9082
9084 r"""Proxy of C++ DRILL_TOOL class."""
9085
9086 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9087 __repr__ = _swig_repr
9088 m_Diameter = property(_pcbnew.DRILL_TOOL_m_Diameter_get, _pcbnew.DRILL_TOOL_m_Diameter_set, doc=r"""m_Diameter : int""")
9089 m_TotalCount = property(_pcbnew.DRILL_TOOL_m_TotalCount_get, _pcbnew.DRILL_TOOL_m_TotalCount_set, doc=r"""m_TotalCount : int""")
9090 m_OvalCount = property(_pcbnew.DRILL_TOOL_m_OvalCount_get, _pcbnew.DRILL_TOOL_m_OvalCount_set, doc=r"""m_OvalCount : int""")
9091 m_Hole_NotPlated = property(_pcbnew.DRILL_TOOL_m_Hole_NotPlated_get, _pcbnew.DRILL_TOOL_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
9092 m_HoleAttribute = property(_pcbnew.DRILL_TOOL_m_HoleAttribute_get, _pcbnew.DRILL_TOOL_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
9093
9094 def __init__(self, aDiameter, a_NotPlated):
9095 r"""__init__(DRILL_TOOL self, int aDiameter, bool a_NotPlated) -> DRILL_TOOL"""
9096 _pcbnew.DRILL_TOOL_swiginit(self, _pcbnew.new_DRILL_TOOL(aDiameter, a_NotPlated))
9097 __swig_destroy__ = _pcbnew.delete_DRILL_TOOL
9098
9099# Register DRILL_TOOL in _pcbnew:
9100_pcbnew.DRILL_TOOL_swigregister(DRILL_TOOL)
9102 r"""Proxy of C++ HOLE_INFO class."""
9103
9104 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9105 __repr__ = _swig_repr
9106
9107 def __init__(self):
9108 r"""__init__(HOLE_INFO self) -> HOLE_INFO"""
9109 _pcbnew.HOLE_INFO_swiginit(self, _pcbnew.new_HOLE_INFO())
9110 m_ItemParent = property(_pcbnew.HOLE_INFO_m_ItemParent_get, _pcbnew.HOLE_INFO_m_ItemParent_set, doc=r"""m_ItemParent : p.BOARD_ITEM""")
9111 m_Hole_Diameter = property(_pcbnew.HOLE_INFO_m_Hole_Diameter_get, _pcbnew.HOLE_INFO_m_Hole_Diameter_set, doc=r"""m_Hole_Diameter : int""")
9112 m_Tool_Reference = property(_pcbnew.HOLE_INFO_m_Tool_Reference_get, _pcbnew.HOLE_INFO_m_Tool_Reference_set, doc=r"""m_Tool_Reference : int""")
9113 m_Hole_Size = property(_pcbnew.HOLE_INFO_m_Hole_Size_get, _pcbnew.HOLE_INFO_m_Hole_Size_set, doc=r"""m_Hole_Size : VECTOR2I""")
9114 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""")
9115 m_Hole_Shape = property(_pcbnew.HOLE_INFO_m_Hole_Shape_get, _pcbnew.HOLE_INFO_m_Hole_Shape_set, doc=r"""m_Hole_Shape : int""")
9116 m_Hole_Pos = property(_pcbnew.HOLE_INFO_m_Hole_Pos_get, _pcbnew.HOLE_INFO_m_Hole_Pos_set, doc=r"""m_Hole_Pos : VECTOR2I""")
9117 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""")
9118 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""")
9119 m_Hole_NotPlated = property(_pcbnew.HOLE_INFO_m_Hole_NotPlated_get, _pcbnew.HOLE_INFO_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
9120 m_HoleAttribute = property(_pcbnew.HOLE_INFO_m_HoleAttribute_get, _pcbnew.HOLE_INFO_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
9121 __swig_destroy__ = _pcbnew.delete_HOLE_INFO
9122
9123# Register HOLE_INFO in _pcbnew:
9124_pcbnew.HOLE_INFO_swigregister(HOLE_INFO)
9126 r"""Proxy of C++ DRILL_PRECISION class."""
9127
9128 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9129 __repr__ = _swig_repr
9130
9131 def __init__(self, l=2, r=4):
9132 r"""__init__(DRILL_PRECISION self, int l=2, int r=4) -> DRILL_PRECISION"""
9133 _pcbnew.DRILL_PRECISION_swiginit(self, _pcbnew.new_DRILL_PRECISION(l, r))
9134
9136 r"""GetPrecisionString(DRILL_PRECISION self) -> wxString"""
9137 return _pcbnew.DRILL_PRECISION_GetPrecisionString(self)
9138 m_Lhs = property(_pcbnew.DRILL_PRECISION_m_Lhs_get, _pcbnew.DRILL_PRECISION_m_Lhs_set, doc=r"""m_Lhs : int""")
9139 m_Rhs = property(_pcbnew.DRILL_PRECISION_m_Rhs_get, _pcbnew.DRILL_PRECISION_m_Rhs_set, doc=r"""m_Rhs : int""")
9140 __swig_destroy__ = _pcbnew.delete_DRILL_PRECISION
9141
9142# Register DRILL_PRECISION in _pcbnew:
9143_pcbnew.DRILL_PRECISION_swigregister(DRILL_PRECISION)
9145 r"""Proxy of C++ GENDRILL_WRITER_BASE class."""
9146
9147 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9148
9149 def __init__(self, *args, **kwargs):
9150 raise AttributeError("No constructor defined")
9151 __repr__ = _swig_repr
9152 DECIMAL_FORMAT = _pcbnew.GENDRILL_WRITER_BASE_DECIMAL_FORMAT
9153
9154 SUPPRESS_LEADING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_LEADING
9155
9156 SUPPRESS_TRAILING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_TRAILING
9157
9158 KEEP_ZEROS = _pcbnew.GENDRILL_WRITER_BASE_KEEP_ZEROS
9159
9160 PTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_PTH_FILE
9161
9162 NPTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_NPTH_FILE
9163
9164 MIXED_FILE = _pcbnew.GENDRILL_WRITER_BASE_MIXED_FILE
9165
9166 __swig_destroy__ = _pcbnew.delete_GENDRILL_WRITER_BASE
9167
9168 def SetMergeOption(self, aMerge):
9169 r"""SetMergeOption(GENDRILL_WRITER_BASE self, bool aMerge)"""
9170 return _pcbnew.GENDRILL_WRITER_BASE_SetMergeOption(self, aMerge)
9171
9172 def GetOffset(self):
9173 r"""GetOffset(GENDRILL_WRITER_BASE self) -> VECTOR2I"""
9174 return _pcbnew.GENDRILL_WRITER_BASE_GetOffset(self)
9175
9176 def SetPageInfo(self, aPageInfo):
9177 r"""SetPageInfo(GENDRILL_WRITER_BASE self, PAGE_INFO const * aPageInfo)"""
9178 return _pcbnew.GENDRILL_WRITER_BASE_SetPageInfo(self, aPageInfo)
9179
9180 def SetMapFileFormat(self, aMapFmt):
9181 r"""SetMapFileFormat(GENDRILL_WRITER_BASE self, PLOT_FORMAT aMapFmt)"""
9182 return _pcbnew.GENDRILL_WRITER_BASE_SetMapFileFormat(self, aMapFmt)
9183
9184 def CreateMapFilesSet(self, aPlotDirectory, aReporter=None):
9185 r"""CreateMapFilesSet(GENDRILL_WRITER_BASE self, wxString aPlotDirectory, REPORTER * aReporter=None) -> bool"""
9186 return _pcbnew.GENDRILL_WRITER_BASE_CreateMapFilesSet(self, aPlotDirectory, aReporter)
9187
9188 def GenDrillReportFile(self, aFullFileName):
9189 r"""GenDrillReportFile(GENDRILL_WRITER_BASE self, wxString aFullFileName) -> bool"""
9190 return _pcbnew.GENDRILL_WRITER_BASE_GenDrillReportFile(self, aFullFileName)
9191
9193 r"""GetDrillFileExt(GENDRILL_WRITER_BASE self) -> wxString"""
9194 return _pcbnew.GENDRILL_WRITER_BASE_GetDrillFileExt(self)
9195
9196# Register GENDRILL_WRITER_BASE in _pcbnew:
9197_pcbnew.GENDRILL_WRITER_BASE_swigregister(GENDRILL_WRITER_BASE)
9199 r"""Proxy of C++ EXCELLON_WRITER class."""
9200
9201 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9202 __repr__ = _swig_repr
9203
9204 def __init__(self, aPcb):
9205 r"""__init__(EXCELLON_WRITER self, BOARD aPcb) -> EXCELLON_WRITER"""
9206 _pcbnew.EXCELLON_WRITER_swiginit(self, _pcbnew.new_EXCELLON_WRITER(aPcb))
9207 __swig_destroy__ = _pcbnew.delete_EXCELLON_WRITER
9208
9209 def GetOffset(self):
9210 r"""GetOffset(EXCELLON_WRITER self) -> VECTOR2I"""
9211 return _pcbnew.EXCELLON_WRITER_GetOffset(self)
9212
9213 def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles):
9214 r"""SetRouteModeForOvalHoles(EXCELLON_WRITER self, bool aUseRouteModeForOvalHoles)"""
9215 return _pcbnew.EXCELLON_WRITER_SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
9216
9217 def SetFormat(self, *args):
9218 r"""SetFormat(EXCELLON_WRITER self, bool aMetric, GENDRILL_WRITER_BASE::ZEROS_FMT aZerosFmt=DECIMAL_FORMAT, int aLeftDigits=0, int aRightDigits=0)"""
9219 return _pcbnew.EXCELLON_WRITER_SetFormat(self, *args)
9220
9221 def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH):
9222 r"""SetOptions(EXCELLON_WRITER self, bool aMirror, bool aMinimalHeader, VECTOR2I aOffset, bool aMerge_PTH_NPTH)"""
9223 return _pcbnew.EXCELLON_WRITER_SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
9224
9225 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
9226 r"""CreateDrillandMapFilesSet(EXCELLON_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
9227 return _pcbnew.EXCELLON_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
9228
9229# Register EXCELLON_WRITER in _pcbnew:
9230_pcbnew.EXCELLON_WRITER_swigregister(EXCELLON_WRITER)
9232 r"""Proxy of C++ GERBER_WRITER class."""
9233
9234 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9235 __repr__ = _swig_repr
9236
9237 def __init__(self, aPcb):
9238 r"""__init__(GERBER_WRITER self, BOARD aPcb) -> GERBER_WRITER"""
9239 _pcbnew.GERBER_WRITER_swiginit(self, _pcbnew.new_GERBER_WRITER(aPcb))
9240 __swig_destroy__ = _pcbnew.delete_GERBER_WRITER
9241
9242 def SetFormat(self, aRightDigits=6):
9243 r"""SetFormat(GERBER_WRITER self, int aRightDigits=6)"""
9244 return _pcbnew.GERBER_WRITER_SetFormat(self, aRightDigits)
9245
9246 def SetOptions(self, aOffset):
9247 r"""SetOptions(GERBER_WRITER self, VECTOR2I aOffset)"""
9248 return _pcbnew.GERBER_WRITER_SetOptions(self, aOffset)
9249
9250 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
9251 r"""CreateDrillandMapFilesSet(GERBER_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
9252 return _pcbnew.GERBER_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
9253
9254# Register GERBER_WRITER in _pcbnew:
9255_pcbnew.GERBER_WRITER_swigregister(GERBER_WRITER)
9256SIDE_NONE = _pcbnew.SIDE_NONE
9257
9258SIDE_TOP = _pcbnew.SIDE_TOP
9259
9260SIDE_BOTTOM = _pcbnew.SIDE_BOTTOM
9261
9262SIDE_BOTH = _pcbnew.SIDE_BOTH
9263
9265 r"""Proxy of C++ JOBFILE_PARAMS class."""
9266
9267 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9268 __repr__ = _swig_repr
9269 m_GerberFileList = property(_pcbnew.JOBFILE_PARAMS_m_GerberFileList_get, _pcbnew.JOBFILE_PARAMS_m_GerberFileList_set, doc=r"""m_GerberFileList : wxArrayString""")
9270 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)>)>""")
9271
9272 def __init__(self):
9273 r"""__init__(JOBFILE_PARAMS self) -> JOBFILE_PARAMS"""
9274 _pcbnew.JOBFILE_PARAMS_swiginit(self, _pcbnew.new_JOBFILE_PARAMS())
9275 __swig_destroy__ = _pcbnew.delete_JOBFILE_PARAMS
9276
9277# Register JOBFILE_PARAMS in _pcbnew:
9278_pcbnew.JOBFILE_PARAMS_swigregister(JOBFILE_PARAMS)
9280 r"""Proxy of C++ GERBER_JOBFILE_WRITER class."""
9281
9282 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9283 __repr__ = _swig_repr
9284
9285 def __init__(self, aPcb, aReporter=None):
9286 r"""__init__(GERBER_JOBFILE_WRITER self, BOARD aPcb, REPORTER * aReporter=None) -> GERBER_JOBFILE_WRITER"""
9287 _pcbnew.GERBER_JOBFILE_WRITER_swiginit(self, _pcbnew.new_GERBER_JOBFILE_WRITER(aPcb, aReporter))
9288 __swig_destroy__ = _pcbnew.delete_GERBER_JOBFILE_WRITER
9289
9290 def AddGbrFile(self, aLayer, aFilename):
9291 r"""AddGbrFile(GERBER_JOBFILE_WRITER self, PCB_LAYER_ID aLayer, wxString aFilename)"""
9292 return _pcbnew.GERBER_JOBFILE_WRITER_AddGbrFile(self, aLayer, aFilename)
9293
9294 def CreateJobFile(self, aFullFilename):
9295 r"""CreateJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9296 return _pcbnew.GERBER_JOBFILE_WRITER_CreateJobFile(self, aFullFilename)
9297
9298 def WriteJSONJobFile(self, aFullFilename):
9299 r"""WriteJSONJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9300 return _pcbnew.GERBER_JOBFILE_WRITER_WriteJSONJobFile(self, aFullFilename)
9301
9302# Register GERBER_JOBFILE_WRITER in _pcbnew:
9303_pcbnew.GERBER_JOBFILE_WRITER_swigregister(GERBER_JOBFILE_WRITER)
9304ROOM_FOR_KICADMANAGER = _pcbnew.ROOM_FOR_KICADMANAGER
9305
9306ROOM_FOR_3D_VIEWER = _pcbnew.ROOM_FOR_3D_VIEWER
9307
9308ROOM_FOR_PANEL_PREV_MODEL = _pcbnew.ROOM_FOR_PANEL_PREV_MODEL
9309
9310DEFAULT_FILE_HISTORY_SIZE = _pcbnew.DEFAULT_FILE_HISTORY_SIZE
9311
9312MAX_FILE_HISTORY_SIZE = _pcbnew.MAX_FILE_HISTORY_SIZE
9313
9314ID_LOAD_FILE = _pcbnew.ID_LOAD_FILE
9315
9316ID_NEW_BOARD = _pcbnew.ID_NEW_BOARD
9317
9318ID_SAVE_BOARD = _pcbnew.ID_SAVE_BOARD
9319
9320ID_SAVE_BOARD_AS = _pcbnew.ID_SAVE_BOARD_AS
9321
9322ID_AUTO_SAVE_TIMER = _pcbnew.ID_AUTO_SAVE_TIMER
9323
9324ID_FILE = _pcbnew.ID_FILE
9325
9326ID_FILE1 = _pcbnew.ID_FILE1
9327
9328ID_FILEMAX = _pcbnew.ID_FILEMAX
9329
9330ID_FILE_LIST_EMPTY = _pcbnew.ID_FILE_LIST_EMPTY
9331
9332ID_FILE_LIST_CLEAR = _pcbnew.ID_FILE_LIST_CLEAR
9333
9334ID_PREFERENCES_RESET_PANEL = _pcbnew.ID_PREFERENCES_RESET_PANEL
9335
9336ID_GEN_PLOT = _pcbnew.ID_GEN_PLOT
9337
9338ID_GEN_PLOT_PS = _pcbnew.ID_GEN_PLOT_PS
9339
9340ID_GEN_PLOT_HPGL = _pcbnew.ID_GEN_PLOT_HPGL
9341
9342ID_GEN_PLOT_GERBER = _pcbnew.ID_GEN_PLOT_GERBER
9343
9344ID_GEN_PLOT_SVG = _pcbnew.ID_GEN_PLOT_SVG
9345
9346ID_GEN_PLOT_DXF = _pcbnew.ID_GEN_PLOT_DXF
9347
9348ID_GEN_PLOT_PDF = _pcbnew.ID_GEN_PLOT_PDF
9349
9350ID_H_TOOLBAR = _pcbnew.ID_H_TOOLBAR
9351
9352ID_V_TOOLBAR = _pcbnew.ID_V_TOOLBAR
9353
9354ID_OPT_TOOLBAR = _pcbnew.ID_OPT_TOOLBAR
9355
9356ID_AUX_TOOLBAR = _pcbnew.ID_AUX_TOOLBAR
9357
9358ID_LANGUAGE_CHOICE = _pcbnew.ID_LANGUAGE_CHOICE
9359
9360ID_LANGUAGE_DANISH = _pcbnew.ID_LANGUAGE_DANISH
9361
9362ID_LANGUAGE_DEFAULT = _pcbnew.ID_LANGUAGE_DEFAULT
9363
9364ID_LANGUAGE_ENGLISH = _pcbnew.ID_LANGUAGE_ENGLISH
9365
9366ID_LANGUAGE_FRENCH = _pcbnew.ID_LANGUAGE_FRENCH
9367
9368ID_LANGUAGE_FINNISH = _pcbnew.ID_LANGUAGE_FINNISH
9369
9370ID_LANGUAGE_HEBREW = _pcbnew.ID_LANGUAGE_HEBREW
9371
9372ID_LANGUAGE_SPANISH = _pcbnew.ID_LANGUAGE_SPANISH
9373
9374ID_LANGUAGE_SPANISH_MEXICAN = _pcbnew.ID_LANGUAGE_SPANISH_MEXICAN
9375
9376ID_LANGUAGE_GERMAN = _pcbnew.ID_LANGUAGE_GERMAN
9377
9378ID_LANGUAGE_GREEK = _pcbnew.ID_LANGUAGE_GREEK
9379
9380ID_LANGUAGE_NORWEGIAN = _pcbnew.ID_LANGUAGE_NORWEGIAN
9381
9382ID_LANGUAGE_RUSSIAN = _pcbnew.ID_LANGUAGE_RUSSIAN
9383
9384ID_LANGUAGE_PORTUGUESE = _pcbnew.ID_LANGUAGE_PORTUGUESE
9385
9386ID_LANGUAGE_PORTUGUESE_BRAZILIAN = _pcbnew.ID_LANGUAGE_PORTUGUESE_BRAZILIAN
9387
9388ID_LANGUAGE_TURKISH = _pcbnew.ID_LANGUAGE_TURKISH
9389
9390ID_LANGUAGE_INDONESIAN = _pcbnew.ID_LANGUAGE_INDONESIAN
9391
9392ID_LANGUAGE_ITALIAN = _pcbnew.ID_LANGUAGE_ITALIAN
9393
9394ID_LANGUAGE_SLOVENIAN = _pcbnew.ID_LANGUAGE_SLOVENIAN
9395
9396ID_LANGUAGE_SLOVAK = _pcbnew.ID_LANGUAGE_SLOVAK
9397
9398ID_LANGUAGE_HUNGARIAN = _pcbnew.ID_LANGUAGE_HUNGARIAN
9399
9400ID_LANGUAGE_POLISH = _pcbnew.ID_LANGUAGE_POLISH
9401
9402ID_LANGUAGE_CZECH = _pcbnew.ID_LANGUAGE_CZECH
9403
9404ID_LANGUAGE_KOREAN = _pcbnew.ID_LANGUAGE_KOREAN
9405
9406ID_LANGUAGE_CATALAN = _pcbnew.ID_LANGUAGE_CATALAN
9407
9408ID_LANGUAGE_CHINESE_SIMPLIFIED = _pcbnew.ID_LANGUAGE_CHINESE_SIMPLIFIED
9409
9410ID_LANGUAGE_CHINESE_TRADITIONAL = _pcbnew.ID_LANGUAGE_CHINESE_TRADITIONAL
9411
9412ID_LANGUAGE_DUTCH = _pcbnew.ID_LANGUAGE_DUTCH
9413
9414ID_LANGUAGE_JAPANESE = _pcbnew.ID_LANGUAGE_JAPANESE
9415
9416ID_LANGUAGE_BULGARIAN = _pcbnew.ID_LANGUAGE_BULGARIAN
9417
9418ID_LANGUAGE_LATVIAN = _pcbnew.ID_LANGUAGE_LATVIAN
9419
9420ID_LANGUAGE_LITHUANIAN = _pcbnew.ID_LANGUAGE_LITHUANIAN
9421
9422ID_LANGUAGE_VIETNAMESE = _pcbnew.ID_LANGUAGE_VIETNAMESE
9423
9424ID_LANGUAGE_SERBIAN = _pcbnew.ID_LANGUAGE_SERBIAN
9425
9426ID_LANGUAGE_THAI = _pcbnew.ID_LANGUAGE_THAI
9427
9428ID_LANGUAGE_SWEDISH = _pcbnew.ID_LANGUAGE_SWEDISH
9429
9430ID_LANGUAGE_UKRANIAN = _pcbnew.ID_LANGUAGE_UKRANIAN
9431
9432ID_LANGUAGE_CHOICE_END = _pcbnew.ID_LANGUAGE_CHOICE_END
9433
9434ID_ON_ZOOM_SELECT = _pcbnew.ID_ON_ZOOM_SELECT
9435
9436ID_ON_GRID_SELECT = _pcbnew.ID_ON_GRID_SELECT
9437
9438ID_POPUP_ZOOM_LEVEL_START = _pcbnew.ID_POPUP_ZOOM_LEVEL_START
9439
9440ID_POPUP_ZOOM_LEVEL_END = _pcbnew.ID_POPUP_ZOOM_LEVEL_END
9441
9442ID_POPUP_GRID_START = _pcbnew.ID_POPUP_GRID_START
9443
9444ID_POPUP_GRID_END = _pcbnew.ID_POPUP_GRID_END
9445
9446ID_EDA_SOCKET_EVENT_SERV = _pcbnew.ID_EDA_SOCKET_EVENT_SERV
9447
9448ID_EDA_SOCKET_EVENT = _pcbnew.ID_EDA_SOCKET_EVENT
9449
9450ID_KICAD_MANAGER_START = _pcbnew.ID_KICAD_MANAGER_START
9451
9452ID_KICAD_MANAGER_END = _pcbnew.ID_KICAD_MANAGER_END
9453
9454ID_KICAD_3D_VIEWER_START = _pcbnew.ID_KICAD_3D_VIEWER_START
9455
9456ID_KICAD_3D_VIEWER_END = _pcbnew.ID_KICAD_3D_VIEWER_END
9457
9458ID_KICAD_PANEL_PREV_MODEL_START = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_START
9459
9460ID_KICAD_PANEL_PREV_MODEL_END = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_END
9461
9462ID_POPUP_MENU_START = _pcbnew.ID_POPUP_MENU_START
9463
9464ID_POPUP_MENU_END = _pcbnew.ID_POPUP_MENU_END
9465
9466ID_END_LIST = _pcbnew.ID_END_LIST
9467
9468
9470 r"""GetBoard() -> BOARD"""
9471 return _pcbnew.GetBoard()
9472
9473def LoadBoard(*args):
9474 r"""
9475 LoadBoard(wxString aFileName, PCB_IO_MGR::PCB_FILE_T aFormat) -> BOARD
9476 LoadBoard(wxString aFileName) -> BOARD
9477 """
9478 return _pcbnew.LoadBoard(*args)
9479
9480def NewBoard(aFileName):
9481 r"""NewBoard(wxString aFileName) -> BOARD"""
9482 return _pcbnew.NewBoard(aFileName)
9483
9485 r"""GetSettingsManager() -> SETTINGS_MANAGER"""
9486 return _pcbnew.GetSettingsManager()
9487
9489 r"""CreateEmptyBoard() -> BOARD"""
9490 return _pcbnew.CreateEmptyBoard()
9491
9492def SaveBoard(aFileName, aBoard, aSkipSettings=False):
9493 r"""SaveBoard(wxString aFileName, BOARD aBoard, bool aSkipSettings=False) -> bool"""
9494 return _pcbnew.SaveBoard(aFileName, aBoard, aSkipSettings)
9495
9497 r"""GetFootprintLibraries() -> wxArrayString"""
9498 return _pcbnew.GetFootprintLibraries()
9499
9500def GetFootprints(aNickName):
9501 r"""GetFootprints(wxString aNickName) -> wxArrayString"""
9502 return _pcbnew.GetFootprints(aNickName)
9503
9505 r"""
9506 ExportSpecctraDSN(wxString aFullFilename) -> bool
9507 ExportSpecctraDSN(BOARD aBoard, wxString aFullFilename) -> bool
9508 """
9509 return _pcbnew.ExportSpecctraDSN(*args)
9510
9511def ExportVRML(aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
9512 r"""ExportVRML(wxString aFullFileName, double aMMtoWRMLunit, bool aIncludeUnspecified, bool aIncludeDNP, bool aExport3DFiles, bool aUseRelativePaths, wxString a3D_Subdir, double aXRef, double aYRef) -> bool"""
9513 return _pcbnew.ExportVRML(aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
9514
9516 r"""
9517 ImportSpecctraSES(wxString aFullFilename) -> bool
9518 ImportSpecctraSES(BOARD aBoard, wxString aFullFilename) -> bool
9519 """
9520 return _pcbnew.ImportSpecctraSES(*args)
9521
9523 r"""ExportFootprintsToLibrary(bool aStoreInNewLib, wxString aLibName=wxEmptyString, wxString aLibPath=None) -> bool"""
9524 return _pcbnew.ExportFootprintsToLibrary(*args)
9525
9527 r"""Refresh()"""
9528 return _pcbnew.Refresh()
9529
9531 r"""UpdateUserInterface()"""
9532 return _pcbnew.UpdateUserInterface()
9533
9535 r"""GetUserUnits() -> int"""
9536 return _pcbnew.GetUserUnits()
9537
9539 r"""GetCurrentSelection() -> DRAWINGS"""
9540 return _pcbnew.GetCurrentSelection()
9541
9542def FocusOnItem(aItem, aLayer=UNDEFINED_LAYER):
9543 r"""FocusOnItem(BOARD_ITEM aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
9544 return _pcbnew.FocusOnItem(aItem, aLayer)
9545
9547 r"""IsActionRunning() -> bool"""
9548 return _pcbnew.IsActionRunning()
9549
9550def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors):
9551 r"""WriteDRCReport(BOARD aBoard, wxString aFileName, EDA_UNITS aUnits, bool aReportAllTrackErrors) -> bool"""
9552 return _pcbnew.WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
9553
9555 r"""GetLanguage() -> wxString"""
9556 return _pcbnew.GetLanguage()
9558 r"""Proxy of C++ std::vector< enum PCB_LAYER_ID > class."""
9559
9560 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9561 __repr__ = _swig_repr
9562
9563 def iterator(self):
9564 r"""iterator(base_seqVect self) -> SwigPyIterator"""
9565 return _pcbnew.base_seqVect_iterator(self)
9566 def __iter__(self):
9567 return self.iterator()
9568
9569 def __nonzero__(self):
9570 r"""__nonzero__(base_seqVect self) -> bool"""
9571 return _pcbnew.base_seqVect___nonzero__(self)
9572
9573 def __bool__(self):
9574 r"""__bool__(base_seqVect self) -> bool"""
9575 return _pcbnew.base_seqVect___bool__(self)
9576
9577 def __len__(self):
9578 r"""__len__(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
9579 return _pcbnew.base_seqVect___len__(self)
9580
9581 def __getslice__(self, i, j):
9582 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"""
9583 return _pcbnew.base_seqVect___getslice__(self, i, j)
9584
9585 def __setslice__(self, *args):
9586 r"""
9587 __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)
9588 __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)
9589 """
9590 return _pcbnew.base_seqVect___setslice__(self, *args)
9591
9592 def __delslice__(self, i, j):
9593 r"""__delslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)"""
9594 return _pcbnew.base_seqVect___delslice__(self, i, j)
9595
9596 def __delitem__(self, *args):
9597 r"""
9598 __delitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i)
9599 __delitem__(base_seqVect self, SWIGPY_SLICEOBJECT * slice)
9600 """
9601 return _pcbnew.base_seqVect___delitem__(self, *args)
9602
9603 def __getitem__(self, *args):
9604 r"""
9605 __getitem__(base_seqVect self, SWIGPY_SLICEOBJECT * slice) -> base_seqVect
9606 __getitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i) -> std::vector< enum PCB_LAYER_ID >::value_type const &
9607 """
9608 return _pcbnew.base_seqVect___getitem__(self, *args)
9609
9610 def __setitem__(self, *args):
9611 r"""
9612 __setitem__(base_seqVect self, SWIGPY_SLICEOBJECT * slice, base_seqVect v)
9613 __setitem__(base_seqVect self, SWIGPY_SLICEOBJECT * slice)
9614 __setitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::value_type const & x)
9615 """
9616 return _pcbnew.base_seqVect___setitem__(self, *args)
9617
9618 def pop(self):
9619 r"""pop(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type"""
9620 return _pcbnew.base_seqVect_pop(self)
9621
9622 def append(self, x):
9623 r"""append(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
9624 return _pcbnew.base_seqVect_append(self, x)
9625
9626 def empty(self):
9627 r"""empty(base_seqVect self) -> bool"""
9628 return _pcbnew.base_seqVect_empty(self)
9629
9630 def size(self):
9631 r"""size(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
9632 return _pcbnew.base_seqVect_size(self)
9633
9634 def swap(self, v):
9635 r"""swap(base_seqVect self, base_seqVect v)"""
9636 return _pcbnew.base_seqVect_swap(self, v)
9637
9638 def begin(self):
9639 r"""begin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
9640 return _pcbnew.base_seqVect_begin(self)
9641
9642 def end(self):
9643 r"""end(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
9644 return _pcbnew.base_seqVect_end(self)
9645
9646 def rbegin(self):
9647 r"""rbegin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
9648 return _pcbnew.base_seqVect_rbegin(self)
9649
9650 def rend(self):
9651 r"""rend(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
9652 return _pcbnew.base_seqVect_rend(self)
9653
9654 def clear(self):
9655 r"""clear(base_seqVect self)"""
9656 return _pcbnew.base_seqVect_clear(self)
9657
9658 def get_allocator(self):
9659 r"""get_allocator(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::allocator_type"""
9660 return _pcbnew.base_seqVect_get_allocator(self)
9661
9662 def pop_back(self):
9663 r"""pop_back(base_seqVect self)"""
9664 return _pcbnew.base_seqVect_pop_back(self)
9665
9666 def erase(self, *args):
9667 r"""
9668 erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos) -> std::vector< enum PCB_LAYER_ID >::iterator
9669 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
9670 """
9671 return _pcbnew.base_seqVect_erase(self, *args)
9672
9673 def __init__(self, *args):
9674 r"""
9675 __init__(base_seqVect self) -> base_seqVect
9676 __init__(base_seqVect self, base_seqVect other) -> base_seqVect
9677 __init__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type size) -> base_seqVect
9678 __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
9679 """
9680 _pcbnew.base_seqVect_swiginit(self, _pcbnew.new_base_seqVect(*args))
9681
9682 def push_back(self, x):
9683 r"""push_back(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
9684 return _pcbnew.base_seqVect_push_back(self, x)
9685
9686 def front(self):
9687 r"""front(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
9688 return _pcbnew.base_seqVect_front(self)
9689
9690 def back(self):
9691 r"""back(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
9692 return _pcbnew.base_seqVect_back(self)
9693
9694 def assign(self, n, x):
9695 r"""assign(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
9696 return _pcbnew.base_seqVect_assign(self, n, x)
9697
9698 def resize(self, *args):
9699 r"""
9700 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size)
9701 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size, std::vector< enum PCB_LAYER_ID >::value_type const & x)
9702 """
9703 return _pcbnew.base_seqVect_resize(self, *args)
9704
9705 def insert(self, *args):
9706 r"""
9707 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
9708 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)
9709 """
9710 return _pcbnew.base_seqVect_insert(self, *args)
9711
9712 def reserve(self, n):
9713 r"""reserve(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n)"""
9714 return _pcbnew.base_seqVect_reserve(self, n)
9715
9716 def capacity(self):
9717 r"""capacity(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
9718 return _pcbnew.base_seqVect_capacity(self)
9719 __swig_destroy__ = _pcbnew.delete_base_seqVect
9720
9721# Register base_seqVect in _pcbnew:
9722_pcbnew.base_seqVect_swigregister(base_seqVect)
9724 r"""Proxy of C++ LSEQ class."""
9725
9726 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9727 __repr__ = _swig_repr
9728
9729 def __init__(self, *args):
9730 r"""
9731 __init__(LSEQ self) -> LSEQ
9732 __init__(LSEQ self, std::initializer_list< PCB_LAYER_ID > aLayers) -> LSEQ
9733 """
9734 _pcbnew.LSEQ_swiginit(self, _pcbnew.new_LSEQ(*args))
9735
9736 def TestLayers(self, aRhs, aLhs):
9737 r"""TestLayers(LSEQ self, PCB_LAYER_ID aRhs, PCB_LAYER_ID aLhs) -> int"""
9738 return _pcbnew.LSEQ_TestLayers(self, aRhs, aLhs)
9739 __swig_destroy__ = _pcbnew.delete_LSEQ
9740
9741# Register LSEQ in _pcbnew:
9742_pcbnew.LSEQ_swigregister(LSEQ)
9744 r"""Proxy of C++ LSET class."""
9745
9746 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9747 __repr__ = _swig_repr
9748
9749 def __init__(self, *args):
9750 r"""
9751 __init__(LSET self) -> LSET
9752 __init__(LSET self, BASE_SET aOther) -> LSET
9753 __init__(LSET self, std::initializer_list< PCB_LAYER_ID > aList) -> LSET
9754 __init__(LSET self, base_seqVect aList) -> LSET
9755 __init__(LSET self, LSEQ aSeq) -> LSET
9756 __init__(LSET self, LAYER_RANGE const & aRange) -> LSET
9757 """
9758 _pcbnew.LSET_swiginit(self, _pcbnew.new_LSET(*args))
9759
9760 def Contains(self, aLayer):
9761 r"""Contains(LSET self, PCB_LAYER_ID aLayer) -> bool"""
9762 return _pcbnew.LSET_Contains(self, aLayer)
9763
9764 @staticmethod
9765 def Name(aLayerId):
9766 r"""Name(PCB_LAYER_ID aLayerId) -> wxString"""
9767 return _pcbnew.LSET_Name(aLayerId)
9768
9769 @staticmethod
9770 def NameToLayer(aName):
9771 r"""NameToLayer(wxString aName) -> int"""
9772 return _pcbnew.LSET_NameToLayer(aName)
9773
9774 @staticmethod
9775 def IsBetween(aStart, aEnd, aLayer):
9776 r"""IsBetween(PCB_LAYER_ID aStart, PCB_LAYER_ID aEnd, PCB_LAYER_ID aLayer) -> bool"""
9777 return _pcbnew.LSET_IsBetween(aStart, aEnd, aLayer)
9778
9779 @staticmethod
9781 r"""InternalCuMask() -> LSET"""
9782 return _pcbnew.LSET_InternalCuMask()
9783
9784 @staticmethod
9786 r"""FrontAssembly() -> LSET"""
9787 return _pcbnew.LSET_FrontAssembly()
9788
9789 @staticmethod
9791 r"""BackAssembly() -> LSET"""
9792 return _pcbnew.LSET_BackAssembly()
9793
9794 @staticmethod
9795 def AllCuMask(aCuLayerCount=32):
9796 r"""AllCuMask(int aCuLayerCount=32) -> LSET"""
9797 return _pcbnew.LSET_AllCuMask(aCuLayerCount)
9798
9799 @staticmethod
9801 r"""ExternalCuMask() -> LSET"""
9802 return _pcbnew.LSET_ExternalCuMask()
9803
9804 @staticmethod
9806 r"""AllNonCuMask() -> LSET"""
9807 return _pcbnew.LSET_AllNonCuMask()
9808
9809 @staticmethod
9811 r"""AllLayersMask() -> LSET"""
9812 return _pcbnew.LSET_AllLayersMask()
9813
9814 @staticmethod
9816 r"""FrontTechMask() -> LSET"""
9817 return _pcbnew.LSET_FrontTechMask()
9818
9819 @staticmethod
9821 r"""FrontBoardTechMask() -> LSET"""
9822 return _pcbnew.LSET_FrontBoardTechMask()
9823
9824 @staticmethod
9826 r"""BackTechMask() -> LSET"""
9827 return _pcbnew.LSET_BackTechMask()
9828
9829 @staticmethod
9831 r"""BackBoardTechMask() -> LSET"""
9832 return _pcbnew.LSET_BackBoardTechMask()
9833
9834 @staticmethod
9836 r"""AllTechMask() -> LSET"""
9837 return _pcbnew.LSET_AllTechMask()
9838
9839 @staticmethod
9841 r"""AllBoardTechMask() -> LSET"""
9842 return _pcbnew.LSET_AllBoardTechMask()
9843
9844 @staticmethod
9846 r"""FrontMask() -> LSET"""
9847 return _pcbnew.LSET_FrontMask()
9848
9849 @staticmethod
9851 r"""BackMask() -> LSET"""
9852 return _pcbnew.LSET_BackMask()
9853
9854 @staticmethod
9856 r"""SideSpecificMask() -> LSET"""
9857 return _pcbnew.LSET_SideSpecificMask()
9858
9859 @staticmethod
9861 r"""UserMask() -> LSET"""
9862 return _pcbnew.LSET_UserMask()
9863
9864 @staticmethod
9866 r"""PhysicalLayersMask() -> LSET"""
9867 return _pcbnew.LSET_PhysicalLayersMask()
9868
9869 @staticmethod
9870 def UserDefinedLayersMask(aUserDefinedLayerCount=45):
9871 r"""UserDefinedLayersMask(int aUserDefinedLayerCount=45) -> LSET"""
9872 return _pcbnew.LSET_UserDefinedLayersMask(aUserDefinedLayerCount)
9873
9874 @staticmethod
9876 r"""ForbiddenFootprintLayers() -> LSET"""
9877 return _pcbnew.LSET_ForbiddenFootprintLayers()
9878
9879 def CuStack(self):
9880 r"""CuStack(LSET self) -> LSEQ"""
9881 return _pcbnew.LSET_CuStack(self)
9882
9884 r"""TechAndUserUIOrder(LSET self) -> LSEQ"""
9885 return _pcbnew.LSET_TechAndUserUIOrder(self)
9886
9887 def UIOrder(self):
9888 r"""UIOrder(LSET self) -> LSEQ"""
9889 return _pcbnew.LSET_UIOrder(self)
9890
9891 def Seq(self, *args):
9892 r"""
9893 Seq(LSET self, LSEQ aSequence) -> LSEQ
9894 Seq(LSET self) -> LSEQ
9895 """
9896 return _pcbnew.LSET_Seq(self, *args)
9897
9898 def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER):
9899 r"""SeqStackupTop2Bottom(LSET self, PCB_LAYER_ID aSelectedLayer=UNDEFINED_LAYER) -> LSEQ"""
9900 return _pcbnew.LSET_SeqStackupTop2Bottom(self, aSelectedLayer)
9901
9903 r"""SeqStackupForPlotting(LSET self) -> LSEQ"""
9904 return _pcbnew.LSET_SeqStackupForPlotting(self)
9905
9906 def RunOnLayers(self, aFunction):
9907 r"""RunOnLayers(LSET self, std::function< void (PCB_LAYER_ID) > const & aFunction)"""
9908 return _pcbnew.LSET_RunOnLayers(self, aFunction)
9909
9910 def ExtractLayer(self):
9911 r"""ExtractLayer(LSET self) -> PCB_LAYER_ID"""
9912 return _pcbnew.LSET_ExtractLayer(self)
9913
9914 def FlipStandardLayers(self, aCopperLayersCount=0):
9915 r"""FlipStandardLayers(LSET self, int aCopperLayersCount=0) -> LSET"""
9916 return _pcbnew.LSET_FlipStandardLayers(self, aCopperLayersCount)
9917
9918 @staticmethod
9919 def LayerCount(aStart, aEnd, aCopperLayerCount):
9920 r"""LayerCount(PCB_LAYER_ID aStart, PCB_LAYER_ID aEnd, int aCopperLayerCount) -> int"""
9921 return _pcbnew.LSET_LayerCount(aStart, aEnd, aCopperLayerCount)
9922
9924 r"""ClearCopperLayers(LSET self) -> LSET"""
9925 return _pcbnew.LSET_ClearCopperLayers(self)
9926
9928 r"""ClearNonCopperLayers(LSET self) -> LSET"""
9929 return _pcbnew.LSET_ClearNonCopperLayers(self)
9930
9932 r"""ClearUserDefinedLayers(LSET self) -> LSET"""
9933 return _pcbnew.LSET_ClearUserDefinedLayers(self)
9934
9935 def addLayer(self, aLayer):
9936 r"""addLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
9937 return _pcbnew.LSET_addLayer(self, aLayer)
9938
9939 def removeLayer(self, aLayer):
9940 r"""removeLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
9941 return _pcbnew.LSET_removeLayer(self, aLayer)
9942
9943 def addLayerSet(self, aLayerSet):
9944 r"""addLayerSet(LSET self, LSET aLayerSet) -> LSET"""
9945 return _pcbnew.LSET_addLayerSet(self, aLayerSet)
9946
9947 def removeLayerSet(self, aLayerSet):
9948 r"""removeLayerSet(LSET self, LSET aLayerSet) -> LSET"""
9949 return _pcbnew.LSET_removeLayerSet(self, aLayerSet)
9950
9951 def FmtHex(self):
9952 r"""FmtHex(LSET self) -> string"""
9953 return _pcbnew.LSET_FmtHex(self)
9954
9955 def FmtBin(self):
9956 r"""FmtBin(LSET self) -> string"""
9957 return _pcbnew.LSET_FmtBin(self)
9958
9959 def ParseHex(self, aString):
9960 r"""ParseHex(LSET self, string aString) -> int"""
9961 return _pcbnew.LSET_ParseHex(self, aString)
9962
9963 def AddLayer(self, layer):
9964 return self.addLayer( layer )
9965
9966 def AddLayerSet(self, layers):
9967 return self.addLayerSet( layers )
9968
9969 def RemoveLayer(self, layer):
9970 return self.removeLayer( layer )
9971
9972 def RemoveLayerSet(self, layers):
9973 return self.removeLayerSet( layers )
9974
9975 __swig_destroy__ = _pcbnew.delete_LSET
9976
9977# Register LSET in _pcbnew:
9978_pcbnew.LSET_swigregister(LSET)
9979ZLO_NONE = _pcbnew.ZLO_NONE
9980
9981ZLO_FORCE_FLASHED = _pcbnew.ZLO_FORCE_FLASHED
9982
9983ZLO_FORCE_NO_ZONE_CONNECTION = _pcbnew.ZLO_FORCE_NO_ZONE_CONNECTION
9984
9986 r"""Proxy of C++ BOARD_ITEM class."""
9987
9988 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9989
9990 def __init__(self, *args, **kwargs):
9991 raise AttributeError("No constructor defined - class is abstract")
9992 __repr__ = _swig_repr
9993 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM
9994
9995 def CopyFrom(self, aOther):
9996 r"""CopyFrom(BOARD_ITEM self, BOARD_ITEM aOther)"""
9997 return _pcbnew.BOARD_ITEM_CopyFrom(self, aOther)
9998
9999 def SetParentGroup(self, aGroup):
10000 r"""SetParentGroup(BOARD_ITEM self, PCB_GROUP aGroup)"""
10001 return _pcbnew.BOARD_ITEM_SetParentGroup(self, aGroup)
10002
10004 r"""GetParentGroup(BOARD_ITEM self) -> PCB_GROUP"""
10005 return _pcbnew.BOARD_ITEM_GetParentGroup(self)
10006
10007 def GetX(self):
10008 r"""GetX(BOARD_ITEM self) -> int"""
10009 return _pcbnew.BOARD_ITEM_GetX(self)
10010
10011 def GetY(self):
10012 r"""GetY(BOARD_ITEM self) -> int"""
10013 return _pcbnew.BOARD_ITEM_GetY(self)
10014
10015 def GetCenter(self):
10016 r"""GetCenter(BOARD_ITEM self) -> VECTOR2I"""
10017 return _pcbnew.BOARD_ITEM_GetCenter(self)
10018
10019 def SetX(self, aX):
10020 r"""SetX(BOARD_ITEM self, int aX)"""
10021 return _pcbnew.BOARD_ITEM_SetX(self, aX)
10022
10023 def SetY(self, aY):
10024 r"""SetY(BOARD_ITEM self, int aY)"""
10025 return _pcbnew.BOARD_ITEM_SetY(self, aY)
10026
10027 def IsConnected(self):
10028 r"""IsConnected(BOARD_ITEM self) -> bool"""
10029 return _pcbnew.BOARD_ITEM_IsConnected(self)
10030
10031 def Similarity(self, aItem):
10032 r"""Similarity(BOARD_ITEM self, BOARD_ITEM aItem) -> double"""
10033 return _pcbnew.BOARD_ITEM_Similarity(self, aItem)
10034
10035 def __eq__(self, aItem):
10036 r"""__eq__(BOARD_ITEM self, BOARD_ITEM aItem) -> bool"""
10037 return _pcbnew.BOARD_ITEM___eq__(self, aItem)
10038
10040 r"""IsOnCopperLayer(BOARD_ITEM self) -> bool"""
10041 return _pcbnew.BOARD_ITEM_IsOnCopperLayer(self)
10042
10043 def HasHole(self):
10044 r"""HasHole(BOARD_ITEM self) -> bool"""
10045 return _pcbnew.BOARD_ITEM_HasHole(self)
10046
10048 r"""HasDrilledHole(BOARD_ITEM self) -> bool"""
10049 return _pcbnew.BOARD_ITEM_HasDrilledHole(self)
10050
10051 def IsTented(self, aLayer):
10052 r"""IsTented(BOARD_ITEM self, PCB_LAYER_ID aLayer) -> bool"""
10053 return _pcbnew.BOARD_ITEM_IsTented(self, aLayer)
10054
10055 def GetEffectiveShape(self, *args):
10056 r"""GetEffectiveShape(BOARD_ITEM self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
10057 return _pcbnew.BOARD_ITEM_GetEffectiveShape(self, *args)
10058
10060 r"""GetEffectiveHoleShape(BOARD_ITEM self) -> std::shared_ptr< SHAPE_SEGMENT >"""
10061 return _pcbnew.BOARD_ITEM_GetEffectiveHoleShape(self)
10062
10063 def RunOnChildren(self, aFunction):
10064 r"""RunOnChildren(BOARD_ITEM self, std::function< void (BOARD_ITEM *) > const & aFunction)"""
10065 return _pcbnew.BOARD_ITEM_RunOnChildren(self, aFunction)
10066
10067 def RunOnDescendants(self, aFunction, aDepth=0):
10068 r"""RunOnDescendants(BOARD_ITEM self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
10069 return _pcbnew.BOARD_ITEM_RunOnDescendants(self, aFunction, aDepth)
10070
10071 def GetParent(self):
10072 r"""GetParent(BOARD_ITEM self) -> BOARD_ITEM_CONTAINER"""
10073 return _pcbnew.BOARD_ITEM_GetParent(self)
10074
10076 r"""GetParentFootprint(BOARD_ITEM self) -> FOOTPRINT"""
10077 return _pcbnew.BOARD_ITEM_GetParentFootprint(self)
10078
10080 r"""GetFPRelativePosition(BOARD_ITEM self) -> VECTOR2I"""
10081 return _pcbnew.BOARD_ITEM_GetFPRelativePosition(self)
10082
10083 def SetFPRelativePosition(self, aPos):
10084 r"""SetFPRelativePosition(BOARD_ITEM self, VECTOR2I aPos)"""
10085 return _pcbnew.BOARD_ITEM_SetFPRelativePosition(self, aPos)
10086
10087 def HasLineStroke(self):
10088 r"""HasLineStroke(BOARD_ITEM self) -> bool"""
10089 return _pcbnew.BOARD_ITEM_HasLineStroke(self)
10090
10091 def GetStroke(self):
10092 r"""GetStroke(BOARD_ITEM self) -> STROKE_PARAMS"""
10093 return _pcbnew.BOARD_ITEM_GetStroke(self)
10094
10095 def SetStroke(self, aStroke):
10096 r"""SetStroke(BOARD_ITEM self, STROKE_PARAMS const & aStroke)"""
10097 return _pcbnew.BOARD_ITEM_SetStroke(self, aStroke)
10098
10100 r"""GetFontMetrics(BOARD_ITEM self) -> KIFONT::METRICS const &"""
10101 return _pcbnew.BOARD_ITEM_GetFontMetrics(self)
10102
10103 def GetLayer(self):
10104 r"""GetLayer(BOARD_ITEM self) -> PCB_LAYER_ID"""
10105 return _pcbnew.BOARD_ITEM_GetLayer(self)
10106
10108 r"""BoardLayerCount(BOARD_ITEM self) -> int"""
10109 return _pcbnew.BOARD_ITEM_BoardLayerCount(self)
10110
10112 r"""BoardCopperLayerCount(BOARD_ITEM self) -> int"""
10113 return _pcbnew.BOARD_ITEM_BoardCopperLayerCount(self)
10114
10115 def BoardLayerSet(self):
10116 r"""BoardLayerSet(BOARD_ITEM self) -> LSET"""
10117 return _pcbnew.BOARD_ITEM_BoardLayerSet(self)
10118
10119 def GetLayerSet(self):
10120 r"""GetLayerSet(BOARD_ITEM self) -> LSET"""
10121 return _pcbnew.BOARD_ITEM_GetLayerSet(self)
10122
10123 def SetLayerSet(self, aLayers):
10124 r"""SetLayerSet(BOARD_ITEM self, LSET aLayers)"""
10125 return _pcbnew.BOARD_ITEM_SetLayerSet(self, aLayers)
10126
10128 r"""IsSideSpecific(BOARD_ITEM self) -> bool"""
10129 return _pcbnew.BOARD_ITEM_IsSideSpecific(self)
10130
10131 def SetLayer(self, aLayer):
10132 r"""SetLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer)"""
10133 return _pcbnew.BOARD_ITEM_SetLayer(self, aLayer)
10134
10135 def Duplicate(self):
10136 r"""Duplicate(BOARD_ITEM self) -> BOARD_ITEM"""
10137 return _pcbnew.BOARD_ITEM_Duplicate(self)
10138
10139 def SwapItemData(self, aImage):
10140 r"""SwapItemData(BOARD_ITEM self, BOARD_ITEM aImage)"""
10141 return _pcbnew.BOARD_ITEM_SwapItemData(self, aImage)
10142
10143 def IsOnLayer(self, aLayer):
10144 r"""IsOnLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer) -> bool"""
10145 return _pcbnew.BOARD_ITEM_IsOnLayer(self, aLayer)
10146
10147 def IsKnockout(self):
10148 r"""IsKnockout(BOARD_ITEM self) -> bool"""
10149 return _pcbnew.BOARD_ITEM_IsKnockout(self)
10150
10151 def SetIsKnockout(self, aKnockout):
10152 r"""SetIsKnockout(BOARD_ITEM self, bool aKnockout)"""
10153 return _pcbnew.BOARD_ITEM_SetIsKnockout(self, aKnockout)
10154
10155 def IsLocked(self):
10156 r"""IsLocked(BOARD_ITEM self) -> bool"""
10157 return _pcbnew.BOARD_ITEM_IsLocked(self)
10158
10159 def SetLocked(self, aLocked):
10160 r"""SetLocked(BOARD_ITEM self, bool aLocked)"""
10161 return _pcbnew.BOARD_ITEM_SetLocked(self, aLocked)
10162
10163 def StyleFromSettings(self, settings):
10164 r"""StyleFromSettings(BOARD_ITEM self, BOARD_DESIGN_SETTINGS settings)"""
10165 return _pcbnew.BOARD_ITEM_StyleFromSettings(self, settings)
10166
10168 r"""DeleteStructure(BOARD_ITEM self)"""
10169 return _pcbnew.BOARD_ITEM_DeleteStructure(self)
10170
10171 def Move(self, aMoveVector):
10172 r"""Move(BOARD_ITEM self, VECTOR2I aMoveVector)"""
10173 return _pcbnew.BOARD_ITEM_Move(self, aMoveVector)
10174
10175 def Rotate(self, aRotCentre, aAngle):
10176 r"""Rotate(BOARD_ITEM self, VECTOR2I aRotCentre, EDA_ANGLE aAngle)"""
10177 return _pcbnew.BOARD_ITEM_Rotate(self, aRotCentre, aAngle)
10178
10179 def Flip(self, aCentre, aFlipDirection):
10180 r"""Flip(BOARD_ITEM self, VECTOR2I aCentre, FLIP_DIRECTION aFlipDirection)"""
10181 return _pcbnew.BOARD_ITEM_Flip(self, aCentre, aFlipDirection)
10182
10183 def Mirror(self, aCentre, aFlipDirection):
10184 r"""Mirror(BOARD_ITEM self, VECTOR2I aCentre, FLIP_DIRECTION aFlipDirection)"""
10185 return _pcbnew.BOARD_ITEM_Mirror(self, aCentre, aFlipDirection)
10186
10187 def Normalize(self):
10188 r"""Normalize(BOARD_ITEM self)"""
10189 return _pcbnew.BOARD_ITEM_Normalize(self)
10190
10192 r"""NormalizeForCompare(BOARD_ITEM self)"""
10193 return _pcbnew.BOARD_ITEM_NormalizeForCompare(self)
10194
10195 def GetBoard(self, *args):
10196 r"""
10197 GetBoard(BOARD_ITEM self) -> BOARD
10198 GetBoard(BOARD_ITEM self) -> BOARD
10199 """
10200 return _pcbnew.BOARD_ITEM_GetBoard(self, *args)
10201
10203 r"""GetParentAsString(BOARD_ITEM self) -> wxString"""
10204 return _pcbnew.BOARD_ITEM_GetParentAsString(self)
10205
10206 def GetLayerName(self):
10207 r"""GetLayerName(BOARD_ITEM self) -> wxString"""
10208 return _pcbnew.BOARD_ITEM_GetLayerName(self)
10209
10210 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
10211 r"""TransformShapeToPolygon(BOARD_ITEM self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
10212 return _pcbnew.BOARD_ITEM_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
10213 DRC = _pcbnew.BOARD_ITEM_DRC
10214
10215
10216 def Cast(self):
10217
10218 ct = self.GetClass()
10219
10220 if ct=="PCB_TEXT":
10221 return Cast_to_PCB_TEXT(self)
10222 if ct=="PCB_TEXTBOX":
10223 return Cast_to_PCB_TEXTBOX(self)
10224 elif ct=="BOARD":
10225 return Cast_to_BOARD(self)
10226 elif ct=="PCB_DIM_ALIGNED":
10227 return Cast_to_PCB_DIM_ALIGNED(self)
10228 elif ct=="PCB_DIM_LEADER":
10229 return Cast_to_PCB_DIM_LEADER(self)
10230 elif ct=="PCB_DIM_CENTER":
10231 return Cast_to_PCB_DIM_CENTER(self)
10232 elif ct=="PCB_DIM_RADIAL":
10233 return Cast_to_PCB_DIM_RADIAL(self)
10234 elif ct=="PCB_DIM_ORTHOGONAL":
10235 return Cast_to_PCB_DIM_ORTHOGONAL(self)
10236 elif ct=="PCB_SHAPE":
10237 return Cast_to_PCB_SHAPE(self)
10238 elif ct=="FOOTPRINT":
10239 return Cast_to_FOOTPRINT(self)
10240 elif ct=="PCB_GROUP":
10241 return Cast_to_PCB_GROUP(self)
10242 elif ct=="PAD":
10243 return Cast_to_PAD(self)
10244 elif ct=="PCB_VIA":
10245 return Cast_to_PCB_VIA(self)
10246 elif ct=="PCB_TRACK":
10247 return Cast_to_PCB_TRACK(self)
10248 elif ct=="PCB_ARC":
10249 return Cast_to_PCB_ARC(self)
10250 elif ct=="PCB_TARGET":
10251 return Cast_to_PCB_TARGET(self)
10252 elif ct=="PCB_TABLE":
10253 return Cast_to_PCB_TABLE(self)
10254 elif ct=="PCB_REFERENCE_IMAGE":
10255 return Cast_to_PCB_REFERENCE_IMAGE(self)
10256 elif ct=="ZONE":
10257 return Cast_to_ZONE(self)
10258 else:
10259 raise TypeError("Unsupported drawing class: %s" % ct)
10260
10261 """
10262 Needed to cast BOARD_ITEM::Duplicate() to the suitable type
10263 """
10264 def Duplicate(self):
10265 ct = self.GetClass()
10266 if ct=="BOARD":
10267 return None
10268 else:
10269 return Cast_to_BOARD_ITEM( _pcbnew.BOARD_ITEM_Duplicate(self) ).Cast()
10270
10271 def SetPos(self,p):
10272 self.SetPosition(p)
10273 #self.SetPos0(p)
10274
10275 def SetStartEnd(self,start,end):
10276 self.SetStart(start)
10277 #self.SetStart0(start)
10278 self.SetEnd(end)
10279 #self.SetEnd0(end)
10280
10281
10282# Register BOARD_ITEM in _pcbnew:
10283_pcbnew.BOARD_ITEM_swigregister(BOARD_ITEM)
10285 r"""Proxy of C++ DELETED_BOARD_ITEM class."""
10286
10287 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10288 __repr__ = _swig_repr
10289
10290 def __init__(self):
10291 r"""__init__(DELETED_BOARD_ITEM self) -> DELETED_BOARD_ITEM"""
10292 _pcbnew.DELETED_BOARD_ITEM_swiginit(self, _pcbnew.new_DELETED_BOARD_ITEM())
10293
10294 @staticmethod
10296 r"""GetInstance() -> DELETED_BOARD_ITEM"""
10297 return _pcbnew.DELETED_BOARD_ITEM_GetInstance()
10298
10299 def __eq__(self, *args):
10300 r"""
10301 __eq__(DELETED_BOARD_ITEM self, BOARD_ITEM aBoardItem) -> bool
10302 __eq__(DELETED_BOARD_ITEM self, DELETED_BOARD_ITEM aOther) -> bool
10303 """
10304 return _pcbnew.DELETED_BOARD_ITEM___eq__(self, *args)
10305 __swig_destroy__ = _pcbnew.delete_DELETED_BOARD_ITEM
10306
10307# Register DELETED_BOARD_ITEM in _pcbnew:
10308_pcbnew.DELETED_BOARD_ITEM_swigregister(DELETED_BOARD_ITEM)
10309IS_CHANGED = _pcbnew.IS_CHANGED
10310
10311IS_LINKED = _pcbnew.IS_LINKED
10312
10313IN_EDIT = _pcbnew.IN_EDIT
10314
10315IS_MOVING = _pcbnew.IS_MOVING
10316
10317IS_NEW = _pcbnew.IS_NEW
10318
10319IS_BROKEN = _pcbnew.IS_BROKEN
10320
10321IS_DELETED = _pcbnew.IS_DELETED
10322
10323STARTPOINT = _pcbnew.STARTPOINT
10324
10325ENDPOINT = _pcbnew.ENDPOINT
10326
10327SELECTED = _pcbnew.SELECTED
10328
10329SELECTED_BY_DRAG = _pcbnew.SELECTED_BY_DRAG
10330
10331STRUCT_DELETED = _pcbnew.STRUCT_DELETED
10332
10333CANDIDATE = _pcbnew.CANDIDATE
10334
10335SKIP_STRUCT = _pcbnew.SKIP_STRUCT
10336
10337IS_PASTED = _pcbnew.IS_PASTED
10338
10339IS_SHOWN_AS_BITMAP = _pcbnew.IS_SHOWN_AS_BITMAP
10340
10341COURTYARD_CONFLICT = _pcbnew.COURTYARD_CONFLICT
10342
10343MALFORMED_F_COURTYARD = _pcbnew.MALFORMED_F_COURTYARD
10344
10345MALFORMED_B_COURTYARD = _pcbnew.MALFORMED_B_COURTYARD
10346
10347MALFORMED_COURTYARDS = _pcbnew.MALFORMED_COURTYARDS
10348
10349ROUTER_TRANSIENT = _pcbnew.ROUTER_TRANSIENT
10350
10351HOLE_PROXY = _pcbnew.HOLE_PROXY
10352
10353SHOW_ELEC_TYPE = _pcbnew.SHOW_ELEC_TYPE
10354
10355BRIGHTENED = _pcbnew.BRIGHTENED
10356
10357UR_TRANSIENT = _pcbnew.UR_TRANSIENT
10358
10359IS_DANGLING = _pcbnew.IS_DANGLING
10360
10361ENTERED = _pcbnew.ENTERED
10362
10364 r"""Proxy of C++ UNITS_PROVIDER class."""
10365
10366 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10367 __repr__ = _swig_repr
10368
10369 def __init__(self, aIuScale, aUnits):
10370 r"""__init__(UNITS_PROVIDER self, EDA_IU_SCALE aIuScale, EDA_UNITS aUnits) -> UNITS_PROVIDER"""
10371 _pcbnew.UNITS_PROVIDER_swiginit(self, _pcbnew.new_UNITS_PROVIDER(aIuScale, aUnits))
10372 __swig_destroy__ = _pcbnew.delete_UNITS_PROVIDER
10373
10374 def GetUserUnits(self):
10375 r"""GetUserUnits(UNITS_PROVIDER self) -> EDA_UNITS"""
10376 return _pcbnew.UNITS_PROVIDER_GetUserUnits(self)
10377
10378 def SetUserUnits(self, aUnits):
10379 r"""SetUserUnits(UNITS_PROVIDER self, EDA_UNITS aUnits)"""
10380 return _pcbnew.UNITS_PROVIDER_SetUserUnits(self, aUnits)
10381
10382 def GetUnitPair(self, aPrimaryUnit, aSecondaryUnits):
10383 r"""GetUnitPair(UNITS_PROVIDER self, EDA_UNITS & aPrimaryUnit, EDA_UNITS & aSecondaryUnits)"""
10384 return _pcbnew.UNITS_PROVIDER_GetUnitPair(self, aPrimaryUnit, aSecondaryUnits)
10385
10386 def GetIuScale(self):
10387 r"""GetIuScale(UNITS_PROVIDER self) -> EDA_IU_SCALE"""
10388 return _pcbnew.UNITS_PROVIDER_GetIuScale(self)
10389
10391 r"""GetOriginTransforms(UNITS_PROVIDER self) -> ORIGIN_TRANSFORMS &"""
10392 return _pcbnew.UNITS_PROVIDER_GetOriginTransforms(self)
10393
10394 def StringFromOptionalValue(self, *args):
10395 r"""StringFromOptionalValue(UNITS_PROVIDER self, std::optional< int > aValue, bool aAddUnitLabel=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
10396 return _pcbnew.UNITS_PROVIDER_StringFromOptionalValue(self, *args)
10397
10398 def StringFromValue(self, *args):
10399 r"""
10400 StringFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString
10401 StringFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=False) -> wxString
10402 """
10403 return _pcbnew.UNITS_PROVIDER_StringFromValue(self, *args)
10404
10405 def MessageTextFromValue(self, *args):
10406 r"""
10407 MessageTextFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
10408 MessageTextFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
10409 """
10410 return _pcbnew.UNITS_PROVIDER_MessageTextFromValue(self, *args)
10411
10412 def MessageTextFromMinOptMax(self, aValue):
10413 r"""MessageTextFromMinOptMax(UNITS_PROVIDER self, MINOPTMAX< int > const & aValue) -> wxString"""
10414 return _pcbnew.UNITS_PROVIDER_MessageTextFromMinOptMax(self, aValue)
10415
10416 def ValueFromString(self, *args):
10417 r"""ValueFromString(UNITS_PROVIDER self, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> int"""
10418 return _pcbnew.UNITS_PROVIDER_ValueFromString(self, *args)
10419
10420 def OptionalValueFromString(self, *args):
10421 r"""OptionalValueFromString(UNITS_PROVIDER self, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> std::optional< int >"""
10422 return _pcbnew.UNITS_PROVIDER_OptionalValueFromString(self, *args)
10423
10424 def AngleValueFromString(self, aTextValue):
10425 r"""AngleValueFromString(UNITS_PROVIDER self, wxString aTextValue) -> EDA_ANGLE"""
10426 return _pcbnew.UNITS_PROVIDER_AngleValueFromString(self, aTextValue)
10427 NullUiString = _pcbnew.UNITS_PROVIDER_NullUiString
10428
10429
10430# Register UNITS_PROVIDER in _pcbnew:
10431_pcbnew.UNITS_PROVIDER_swigregister(UNITS_PROVIDER)
10432
10434 r"""Cast_to_BOARD_ITEM(EDA_ITEM base) -> BOARD_ITEM"""
10435 return _pcbnew.Cast_to_BOARD_ITEM(base)
10436
10438 r"""Cast_to_PCB_TEXT(BOARD_ITEM arg1) -> PCB_TEXT"""
10439 return _pcbnew.Cast_to_PCB_TEXT(arg1)
10440
10442 r"""Cast_to_PCB_TEXTBOX(BOARD_ITEM arg1) -> PCB_TEXTBOX"""
10443 return _pcbnew.Cast_to_PCB_TEXTBOX(arg1)
10444
10446 r"""Cast_to_PCB_DIM_ALIGNED(BOARD_ITEM arg1) -> PCB_DIM_ALIGNED"""
10447 return _pcbnew.Cast_to_PCB_DIM_ALIGNED(arg1)
10448
10450 r"""Cast_to_PCB_DIM_ORTHOGONAL(BOARD_ITEM arg1) -> PCB_DIM_ORTHOGONAL"""
10451 return _pcbnew.Cast_to_PCB_DIM_ORTHOGONAL(arg1)
10452
10454 r"""Cast_to_PCB_DIM_LEADER(BOARD_ITEM arg1) -> PCB_DIM_LEADER"""
10455 return _pcbnew.Cast_to_PCB_DIM_LEADER(arg1)
10456
10458 r"""Cast_to_PCB_DIM_CENTER(BOARD_ITEM arg1) -> PCB_DIM_CENTER"""
10459 return _pcbnew.Cast_to_PCB_DIM_CENTER(arg1)
10460
10462 r"""Cast_to_PCB_DIM_RADIAL(BOARD_ITEM arg1) -> PCB_DIM_RADIAL"""
10463 return _pcbnew.Cast_to_PCB_DIM_RADIAL(arg1)
10464
10466 r"""Cast_to_FOOTPRINT(BOARD_ITEM arg1) -> FOOTPRINT"""
10467 return _pcbnew.Cast_to_FOOTPRINT(arg1)
10468
10470 r"""Cast_to_PCB_GROUP(BOARD_ITEM arg1) -> PCB_GROUP"""
10471 return _pcbnew.Cast_to_PCB_GROUP(arg1)
10472
10474 r"""Cast_to_PCB_SHAPE(BOARD_ITEM arg1) -> PCB_SHAPE"""
10475 return _pcbnew.Cast_to_PCB_SHAPE(arg1)
10476
10478 r"""Cast_to_PCB_MARKER(BOARD_ITEM arg1) -> PCB_MARKER"""
10479 return _pcbnew.Cast_to_PCB_MARKER(arg1)
10480
10482 r"""Cast_to_BOARD(BOARD_ITEM arg1) -> BOARD"""
10483 return _pcbnew.Cast_to_BOARD(arg1)
10484
10485def Cast_to_PAD(arg1):
10486 r"""Cast_to_PAD(BOARD_ITEM arg1) -> PAD"""
10487 return _pcbnew.Cast_to_PAD(arg1)
10488
10490 r"""Cast_to_PCB_TRACK(BOARD_ITEM arg1) -> PCB_TRACK"""
10491 return _pcbnew.Cast_to_PCB_TRACK(arg1)
10492
10494 r"""Cast_to_PCB_VIA(BOARD_ITEM arg1) -> PCB_VIA"""
10495 return _pcbnew.Cast_to_PCB_VIA(arg1)
10496
10498 r"""Cast_to_PCB_ARC(BOARD_ITEM arg1) -> PCB_ARC"""
10499 return _pcbnew.Cast_to_PCB_ARC(arg1)
10500
10502 r"""Cast_to_ZONE(BOARD_ITEM arg1) -> ZONE"""
10503 return _pcbnew.Cast_to_ZONE(arg1)
10504
10506 r"""Cast_to_PCB_TARGET(BOARD_ITEM arg1) -> PCB_TARGET"""
10507 return _pcbnew.Cast_to_PCB_TARGET(arg1)
10508
10510 r"""Cast_to_PCB_TABLE(BOARD_ITEM arg1) -> PCB_TABLE"""
10511 return _pcbnew.Cast_to_PCB_TABLE(arg1)
10512
10514 r"""Cast_to_PCB_REFERENCE_IMAGE(BOARD_ITEM arg1) -> PCB_REFERENCE_IMAGE"""
10515 return _pcbnew.Cast_to_PCB_REFERENCE_IMAGE(arg1)
10516ADD_MODE_INSERT = _pcbnew.ADD_MODE_INSERT
10517
10518ADD_MODE_APPEND = _pcbnew.ADD_MODE_APPEND
10519
10520ADD_MODE_BULK_APPEND = _pcbnew.ADD_MODE_BULK_APPEND
10521
10522ADD_MODE_BULK_INSERT = _pcbnew.ADD_MODE_BULK_INSERT
10523
10524REMOVE_MODE_NORMAL = _pcbnew.REMOVE_MODE_NORMAL
10525
10526REMOVE_MODE_BULK = _pcbnew.REMOVE_MODE_BULK
10527
10529 r"""Proxy of C++ BOARD_ITEM_CONTAINER class."""
10530
10531 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10532
10533 def __init__(self, *args, **kwargs):
10534 raise AttributeError("No constructor defined - class is abstract")
10535 __repr__ = _swig_repr
10536
10537 def AddNative(self, *args):
10538 r"""AddNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
10539 return _pcbnew.BOARD_ITEM_CONTAINER_AddNative(self, *args)
10540
10541 def RemoveNative(self, *args):
10542 r"""RemoveNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
10543 return _pcbnew.BOARD_ITEM_CONTAINER_RemoveNative(self, *args)
10544
10545 def DeleteNative(self, aItem):
10546 r"""DeleteNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)"""
10547 return _pcbnew.BOARD_ITEM_CONTAINER_DeleteNative(self, aItem)
10548
10549 def Add(self,item):
10550 """
10551 Add a BOARD_ITEM to this BOARD_ITEM_CONTAINER, clear the thisown to prevent
10552 python from deleting the object in the garbage collector
10553 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, BOARD_ADD_MODE aMode=BOARD_ADD_MODE::INSERT)
10554 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)
10555 """
10556 item.thisown=0
10557 self.AddNative(item)
10558
10559 def Remove(self,item):
10560 """
10561 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
10562 the python wrapper owns the C++ BOARD_ITEM
10563 Remove(self, BOARD_ITEM)
10564 """
10565 self.RemoveNative(item)
10566 if (not IsActionRunning()):
10567 item.thisown=1
10568
10569 def Delete(self,item):
10570 """
10571 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
10572 the python wrapper does not owns the C++ BOARD_ITEM
10573 Delete(self, BOARD_ITEM)
10574 """
10575 item.thisown=0 # C++'s BOARD_ITEM_CONTAINER::Delete() will delete
10576 self.DeleteNative(item)
10577 item.this = None
10578
10579 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM_CONTAINER
10580
10581# Register BOARD_ITEM_CONTAINER in _pcbnew:
10582_pcbnew.BOARD_ITEM_CONTAINER_swigregister(BOARD_ITEM_CONTAINER)
10584 r"""Proxy of C++ BOARD_CONNECTED_ITEM class."""
10585
10586 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10587
10588 def __init__(self, *args, **kwargs):
10589 raise AttributeError("No constructor defined - class is abstract")
10590 __repr__ = _swig_repr
10591
10592 @staticmethod
10593 def ClassOf(aItem):
10594 r"""ClassOf(EDA_ITEM aItem) -> bool"""
10595 return _pcbnew.BOARD_CONNECTED_ITEM_ClassOf(aItem)
10596
10597 def GetNet(self):
10598 r"""GetNet(BOARD_CONNECTED_ITEM self) -> NETINFO_ITEM"""
10599 return _pcbnew.BOARD_CONNECTED_ITEM_GetNet(self)
10600
10601 def SetNet(self, aNetInfo):
10602 r"""SetNet(BOARD_CONNECTED_ITEM self, NETINFO_ITEM aNetInfo)"""
10603 return _pcbnew.BOARD_CONNECTED_ITEM_SetNet(self, aNetInfo)
10604
10605 def GetNetCode(self):
10606 r"""GetNetCode(BOARD_CONNECTED_ITEM self) -> int"""
10607 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetCode(self)
10608
10609 def SetNetCode(self, *args):
10610 r"""
10611 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode, bool aNoAssert) -> bool
10612 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode)
10613 """
10614 return _pcbnew.BOARD_CONNECTED_ITEM_SetNetCode(self, *args)
10615
10616 def GetNetname(self):
10617 r"""GetNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10618 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetname(self)
10619
10620 def GetNetnameMsg(self):
10621 r"""GetNetnameMsg(BOARD_CONNECTED_ITEM self) -> wxString"""
10622 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetnameMsg(self)
10623
10625 r"""GetShortNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10626 return _pcbnew.BOARD_CONNECTED_ITEM_GetShortNetname(self)
10627
10629 r"""GetDisplayNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10630 return _pcbnew.BOARD_CONNECTED_ITEM_GetDisplayNetname(self)
10631
10632 def GetOwnClearance(self, aLayer, aSource=None):
10633 r"""GetOwnClearance(BOARD_CONNECTED_ITEM self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
10634 return _pcbnew.BOARD_CONNECTED_ITEM_GetOwnClearance(self, aLayer, aSource)
10635
10636 def GetClearanceOverrides(self, aSource):
10637 r"""GetClearanceOverrides(BOARD_CONNECTED_ITEM self, wxString aSource) -> std::optional< int >"""
10638 return _pcbnew.BOARD_CONNECTED_ITEM_GetClearanceOverrides(self, aSource)
10639
10640 def GetLocalClearance(self, *args):
10641 r"""
10642 GetLocalClearance(BOARD_CONNECTED_ITEM self) -> std::optional< int >
10643 GetLocalClearance(BOARD_CONNECTED_ITEM self, wxString aSource) -> std::optional< int >
10644 """
10645 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalClearance(self, *args)
10646
10648 r"""GetEffectiveNetClass(BOARD_CONNECTED_ITEM self) -> NETCLASS"""
10649 return _pcbnew.BOARD_CONNECTED_ITEM_GetEffectiveNetClass(self)
10650
10652 r"""GetNetClassName(BOARD_CONNECTED_ITEM self) -> wxString"""
10653 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetClassName(self)
10654
10655 def SetLocalRatsnestVisible(self, aVisible):
10656 r"""SetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self, bool aVisible)"""
10657 return _pcbnew.BOARD_CONNECTED_ITEM_SetLocalRatsnestVisible(self, aVisible)
10658
10660 r"""GetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self) -> bool"""
10661 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalRatsnestVisible(self)
10662
10663 def GetTeardropParams(self, *args):
10664 r"""
10665 GetTeardropParams(BOARD_CONNECTED_ITEM self) -> TEARDROP_PARAMETERS
10666 GetTeardropParams(BOARD_CONNECTED_ITEM self) -> TEARDROP_PARAMETERS const &
10667 """
10668 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropParams(self, *args)
10669
10670 def SetTeardropsEnabled(self, aEnable):
10671 r"""SetTeardropsEnabled(BOARD_CONNECTED_ITEM self, bool aEnable)"""
10672 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropsEnabled(self, aEnable)
10673
10675 r"""GetTeardropsEnabled(BOARD_CONNECTED_ITEM self) -> bool"""
10676 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropsEnabled(self)
10677
10679 r"""SetTeardropBestLengthRatio(BOARD_CONNECTED_ITEM self, double aRatio)"""
10680 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropBestLengthRatio(self, aRatio)
10681
10683 r"""GetTeardropBestLengthRatio(BOARD_CONNECTED_ITEM self) -> double"""
10684 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropBestLengthRatio(self)
10685
10686 def SetTeardropMaxLength(self, aMaxLength):
10687 r"""SetTeardropMaxLength(BOARD_CONNECTED_ITEM self, int aMaxLength)"""
10688 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxLength(self, aMaxLength)
10689
10691 r"""GetTeardropMaxLength(BOARD_CONNECTED_ITEM self) -> int"""
10692 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxLength(self)
10693
10694 def SetTeardropBestWidthRatio(self, aRatio):
10695 r"""SetTeardropBestWidthRatio(BOARD_CONNECTED_ITEM self, double aRatio)"""
10696 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropBestWidthRatio(self, aRatio)
10697
10699 r"""GetTeardropBestWidthRatio(BOARD_CONNECTED_ITEM self) -> double"""
10700 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropBestWidthRatio(self)
10701
10702 def SetTeardropMaxWidth(self, aMaxWidth):
10703 r"""SetTeardropMaxWidth(BOARD_CONNECTED_ITEM self, int aMaxWidth)"""
10704 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxWidth(self, aMaxWidth)
10705
10707 r"""GetTeardropMaxWidth(BOARD_CONNECTED_ITEM self) -> int"""
10708 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxWidth(self)
10709
10710 def SetTeardropCurved(self, aCurve):
10711 r"""SetTeardropCurved(BOARD_CONNECTED_ITEM self, bool aCurve)"""
10712 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropCurved(self, aCurve)
10713
10715 r"""GetTeardropCurved(BOARD_CONNECTED_ITEM self) -> bool"""
10716 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropCurved(self)
10717
10719 r"""SetTeardropPreferZoneConnections(BOARD_CONNECTED_ITEM self, bool aPrefer)"""
10720 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropPreferZoneConnections(self, aPrefer)
10721
10723 r"""GetTeardropPreferZoneConnections(BOARD_CONNECTED_ITEM self) -> bool"""
10724 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropPreferZoneConnections(self)
10725
10727 r"""SetTeardropAllowSpanTwoTracks(BOARD_CONNECTED_ITEM self, bool aAllow)"""
10728 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropAllowSpanTwoTracks(self, aAllow)
10729
10731 r"""GetTeardropAllowSpanTwoTracks(BOARD_CONNECTED_ITEM self) -> bool"""
10732 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropAllowSpanTwoTracks(self)
10733
10734 def SetTeardropMaxTrackWidth(self, aRatio):
10735 r"""SetTeardropMaxTrackWidth(BOARD_CONNECTED_ITEM self, double aRatio)"""
10736 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxTrackWidth(self, aRatio)
10737
10739 r"""GetTeardropMaxTrackWidth(BOARD_CONNECTED_ITEM self) -> double"""
10740 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxTrackWidth(self)
10741 __swig_destroy__ = _pcbnew.delete_BOARD_CONNECTED_ITEM
10742
10743# Register BOARD_CONNECTED_ITEM in _pcbnew:
10744_pcbnew.BOARD_CONNECTED_ITEM_swigregister(BOARD_CONNECTED_ITEM)
10746 r"""Proxy of C++ std::map< wxString,std::shared_ptr< NETCLASS > > class."""
10747
10748 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10749 __repr__ = _swig_repr
10750
10751 def iterator(self):
10752 r"""iterator(netclasses_map self) -> SwigPyIterator"""
10753 return _pcbnew.netclasses_map_iterator(self)
10754 def __iter__(self):
10755 return self.iterator()
10756
10757 def __nonzero__(self):
10758 r"""__nonzero__(netclasses_map self) -> bool"""
10759 return _pcbnew.netclasses_map___nonzero__(self)
10760
10761 def __bool__(self):
10762 r"""__bool__(netclasses_map self) -> bool"""
10763 return _pcbnew.netclasses_map___bool__(self)
10764
10765 def __len__(self):
10766 r"""__len__(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10767 return _pcbnew.netclasses_map___len__(self)
10768 def __iter__(self):
10769 return self.key_iterator()
10770 def iterkeys(self):
10771 return self.key_iterator()
10772 def itervalues(self):
10773 return self.value_iterator()
10774 def iteritems(self):
10775 return self.iterator()
10776
10777 def __getitem__(self, key):
10778 r"""__getitem__(netclasses_map self, wxString key) -> std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const &"""
10779 return _pcbnew.netclasses_map___getitem__(self, key)
10780
10781 def __delitem__(self, key):
10782 r"""__delitem__(netclasses_map self, wxString key)"""
10783 return _pcbnew.netclasses_map___delitem__(self, key)
10784
10785 def has_key(self, key):
10786 r"""has_key(netclasses_map self, wxString key) -> bool"""
10787 return _pcbnew.netclasses_map_has_key(self, key)
10788
10789 def keys(self):
10790 r"""keys(netclasses_map self) -> PyObject *"""
10791 return _pcbnew.netclasses_map_keys(self)
10792
10793 def values(self):
10794 r"""values(netclasses_map self) -> PyObject *"""
10795 return _pcbnew.netclasses_map_values(self)
10796
10797 def items(self):
10798 r"""items(netclasses_map self) -> PyObject *"""
10799 return _pcbnew.netclasses_map_items(self)
10800
10801 def __contains__(self, key):
10802 r"""__contains__(netclasses_map self, wxString key) -> bool"""
10803 return _pcbnew.netclasses_map___contains__(self, key)
10804
10805 def key_iterator(self):
10806 r"""key_iterator(netclasses_map self) -> SwigPyIterator"""
10807 return _pcbnew.netclasses_map_key_iterator(self)
10808
10810 r"""value_iterator(netclasses_map self) -> SwigPyIterator"""
10811 return _pcbnew.netclasses_map_value_iterator(self)
10812
10813 def __setitem__(self, *args):
10814 r"""
10815 __setitem__(netclasses_map self, wxString key)
10816 __setitem__(netclasses_map self, wxString key, std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const & x)
10817 """
10818 return _pcbnew.netclasses_map___setitem__(self, *args)
10819
10820 def asdict(self):
10821 r"""asdict(netclasses_map self) -> PyObject *"""
10822 return _pcbnew.netclasses_map_asdict(self)
10823
10824 def __init__(self, *args):
10825 r"""
10826 __init__(netclasses_map self, std::less< wxString > const & other) -> netclasses_map
10827 __init__(netclasses_map self) -> netclasses_map
10828 __init__(netclasses_map self, netclasses_map other) -> netclasses_map
10829 """
10830 _pcbnew.netclasses_map_swiginit(self, _pcbnew.new_netclasses_map(*args))
10831
10832 def empty(self):
10833 r"""empty(netclasses_map self) -> bool"""
10834 return _pcbnew.netclasses_map_empty(self)
10835
10836 def size(self):
10837 r"""size(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10838 return _pcbnew.netclasses_map_size(self)
10839
10840 def swap(self, v):
10841 r"""swap(netclasses_map self, netclasses_map v)"""
10842 return _pcbnew.netclasses_map_swap(self, v)
10843
10844 def begin(self):
10845 r"""begin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10846 return _pcbnew.netclasses_map_begin(self)
10847
10848 def end(self):
10849 r"""end(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10850 return _pcbnew.netclasses_map_end(self)
10851
10852 def rbegin(self):
10853 r"""rbegin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10854 return _pcbnew.netclasses_map_rbegin(self)
10855
10856 def rend(self):
10857 r"""rend(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10858 return _pcbnew.netclasses_map_rend(self)
10859
10860 def clear(self):
10861 r"""clear(netclasses_map self)"""
10862 return _pcbnew.netclasses_map_clear(self)
10863
10864 def get_allocator(self):
10865 r"""get_allocator(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::allocator_type"""
10866 return _pcbnew.netclasses_map_get_allocator(self)
10867
10868 def count(self, x):
10869 r"""count(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10870 return _pcbnew.netclasses_map_count(self, x)
10871
10872 def erase(self, *args):
10873 r"""
10874 erase(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type
10875 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator position)
10876 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator first, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator last)
10877 """
10878 return _pcbnew.netclasses_map_erase(self, *args)
10879
10880 def find(self, x):
10881 r"""find(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10882 return _pcbnew.netclasses_map_find(self, x)
10883
10884 def lower_bound(self, x):
10885 r"""lower_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10886 return _pcbnew.netclasses_map_lower_bound(self, x)
10887
10888 def upper_bound(self, x):
10889 r"""upper_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10890 return _pcbnew.netclasses_map_upper_bound(self, x)
10891 __swig_destroy__ = _pcbnew.delete_netclasses_map
10892
10893# Register netclasses_map in _pcbnew:
10894_pcbnew.netclasses_map_swigregister(netclasses_map)
10895DEFAULT_SILK_LINE_WIDTH = _pcbnew.DEFAULT_SILK_LINE_WIDTH
10896
10897DEFAULT_COPPER_LINE_WIDTH = _pcbnew.DEFAULT_COPPER_LINE_WIDTH
10898
10899DEFAULT_EDGE_WIDTH = _pcbnew.DEFAULT_EDGE_WIDTH
10900
10901DEFAULT_COURTYARD_WIDTH = _pcbnew.DEFAULT_COURTYARD_WIDTH
10902
10903DEFAULT_LINE_WIDTH = _pcbnew.DEFAULT_LINE_WIDTH
10904
10905DEFAULT_SILK_TEXT_SIZE = _pcbnew.DEFAULT_SILK_TEXT_SIZE
10906
10907DEFAULT_COPPER_TEXT_SIZE = _pcbnew.DEFAULT_COPPER_TEXT_SIZE
10908
10909DEFAULT_TEXT_SIZE = _pcbnew.DEFAULT_TEXT_SIZE
10910
10911DEFAULT_SILK_TEXT_WIDTH = _pcbnew.DEFAULT_SILK_TEXT_WIDTH
10912
10913DEFAULT_COPPER_TEXT_WIDTH = _pcbnew.DEFAULT_COPPER_TEXT_WIDTH
10914
10915DEFAULT_TEXT_WIDTH = _pcbnew.DEFAULT_TEXT_WIDTH
10916
10917DEFAULT_DIMENSION_ARROW_LENGTH = _pcbnew.DEFAULT_DIMENSION_ARROW_LENGTH
10918
10919DEFAULT_DIMENSION_EXTENSION_OFFSET = _pcbnew.DEFAULT_DIMENSION_EXTENSION_OFFSET
10920
10921DEFAULT_BOARD_THICKNESS_MM = _pcbnew.DEFAULT_BOARD_THICKNESS_MM
10922
10923DEFAULT_PCB_EDGE_THICKNESS = _pcbnew.DEFAULT_PCB_EDGE_THICKNESS
10924
10925DEFAULT_SOLDERMASK_EXPANSION = _pcbnew.DEFAULT_SOLDERMASK_EXPANSION
10926
10927DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE = _pcbnew.DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE
10928
10929DEFAULT_SOLDERMASK_MIN_WIDTH = _pcbnew.DEFAULT_SOLDERMASK_MIN_WIDTH
10930
10931DEFAULT_SOLDERPASTE_CLEARANCE = _pcbnew.DEFAULT_SOLDERPASTE_CLEARANCE
10932
10933DEFAULT_SOLDERPASTE_RATIO = _pcbnew.DEFAULT_SOLDERPASTE_RATIO
10934
10935DEFAULT_CUSTOMTRACKWIDTH = _pcbnew.DEFAULT_CUSTOMTRACKWIDTH
10936
10937DEFAULT_CUSTOMDPAIRWIDTH = _pcbnew.DEFAULT_CUSTOMDPAIRWIDTH
10938
10939DEFAULT_CUSTOMDPAIRGAP = _pcbnew.DEFAULT_CUSTOMDPAIRGAP
10940
10941DEFAULT_CUSTOMDPAIRVIAGAP = _pcbnew.DEFAULT_CUSTOMDPAIRVIAGAP
10942
10943DEFAULT_MEANDER_SPACING = _pcbnew.DEFAULT_MEANDER_SPACING
10944
10945DEFAULT_DP_MEANDER_SPACING = _pcbnew.DEFAULT_DP_MEANDER_SPACING
10946
10947DEFAULT_MINCLEARANCE = _pcbnew.DEFAULT_MINCLEARANCE
10948
10949DEFAULT_MINCONNECTION = _pcbnew.DEFAULT_MINCONNECTION
10950
10951DEFAULT_TRACKMINWIDTH = _pcbnew.DEFAULT_TRACKMINWIDTH
10952
10953DEFAULT_VIASMINSIZE = _pcbnew.DEFAULT_VIASMINSIZE
10954
10955DEFAULT_MINTHROUGHDRILL = _pcbnew.DEFAULT_MINTHROUGHDRILL
10956
10957DEFAULT_MICROVIASMINSIZE = _pcbnew.DEFAULT_MICROVIASMINSIZE
10958
10959DEFAULT_MICROVIASMINDRILL = _pcbnew.DEFAULT_MICROVIASMINDRILL
10960
10961DEFAULT_HOLETOHOLEMIN = _pcbnew.DEFAULT_HOLETOHOLEMIN
10962
10963DEFAULT_HOLECLEARANCE = _pcbnew.DEFAULT_HOLECLEARANCE
10964
10965DEFAULT_COPPEREDGECLEARANCE = _pcbnew.DEFAULT_COPPEREDGECLEARANCE
10966
10967LEGACY_COPPEREDGECLEARANCE = _pcbnew.LEGACY_COPPEREDGECLEARANCE
10968
10969DEFAULT_SILKCLEARANCE = _pcbnew.DEFAULT_SILKCLEARANCE
10970
10971DEFAULT_MINGROOVEWIDTH = _pcbnew.DEFAULT_MINGROOVEWIDTH
10972
10973DEFAULT_MINRESOLVEDSPOKES = _pcbnew.DEFAULT_MINRESOLVEDSPOKES
10974
10975MINIMUM_ERROR_SIZE_MM = _pcbnew.MINIMUM_ERROR_SIZE_MM
10976
10977MAXIMUM_ERROR_SIZE_MM = _pcbnew.MAXIMUM_ERROR_SIZE_MM
10978
10979MINIMUM_LINE_WIDTH_MM = _pcbnew.MINIMUM_LINE_WIDTH_MM
10980
10981MAXIMUM_LINE_WIDTH_MM = _pcbnew.MAXIMUM_LINE_WIDTH_MM
10982
10983DEFAULT_PAD_WIDTH_MM = _pcbnew.DEFAULT_PAD_WIDTH_MM
10984
10985DEFAULT_PAD_HEIGTH_MM = _pcbnew.DEFAULT_PAD_HEIGTH_MM
10986
10987DEFAULT_PAD_DRILL_DIAMETER_MM = _pcbnew.DEFAULT_PAD_DRILL_DIAMETER_MM
10988
10989DEFAULT_PAD_RR_RADIUS_RATIO = _pcbnew.DEFAULT_PAD_RR_RADIUS_RATIO
10990
10992 r"""Proxy of C++ VIA_DIMENSION class."""
10993
10994 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10995 __repr__ = _swig_repr
10996 m_Diameter = property(_pcbnew.VIA_DIMENSION_m_Diameter_get, _pcbnew.VIA_DIMENSION_m_Diameter_set, doc=r"""m_Diameter : int""")
10997 m_Drill = property(_pcbnew.VIA_DIMENSION_m_Drill_get, _pcbnew.VIA_DIMENSION_m_Drill_set, doc=r"""m_Drill : int""")
10998
10999 def __init__(self, *args):
11000 r"""
11001 __init__(VIA_DIMENSION self) -> VIA_DIMENSION
11002 __init__(VIA_DIMENSION self, int aDiameter, int aDrill) -> VIA_DIMENSION
11003 """
11004 _pcbnew.VIA_DIMENSION_swiginit(self, _pcbnew.new_VIA_DIMENSION(*args))
11005
11006 def __eq__(self, aOther):
11007 r"""__eq__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
11008 return _pcbnew.VIA_DIMENSION___eq__(self, aOther)
11009
11010 def __ne__(self, aOther):
11011 r"""__ne__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
11012 return _pcbnew.VIA_DIMENSION___ne__(self, aOther)
11013
11014 def __lt__(self, aOther):
11015 r"""__lt__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
11016 return _pcbnew.VIA_DIMENSION___lt__(self, aOther)
11017 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION
11018
11019# Register VIA_DIMENSION in _pcbnew:
11020_pcbnew.VIA_DIMENSION_swigregister(VIA_DIMENSION)
11022 r"""Proxy of C++ DIFF_PAIR_DIMENSION class."""
11023
11024 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11025 __repr__ = _swig_repr
11026 m_Width = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Width_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Width_set, doc=r"""m_Width : int""")
11027 m_Gap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Gap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Gap_set, doc=r"""m_Gap : int""")
11028 m_ViaGap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_set, doc=r"""m_ViaGap : int""")
11029
11030 def __init__(self, *args):
11031 r"""
11032 __init__(DIFF_PAIR_DIMENSION self) -> DIFF_PAIR_DIMENSION
11033 __init__(DIFF_PAIR_DIMENSION self, int aWidth, int aGap, int aViaGap) -> DIFF_PAIR_DIMENSION
11034 """
11035 _pcbnew.DIFF_PAIR_DIMENSION_swiginit(self, _pcbnew.new_DIFF_PAIR_DIMENSION(*args))
11036
11037 def __eq__(self, aOther):
11038 r"""__eq__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
11039 return _pcbnew.DIFF_PAIR_DIMENSION___eq__(self, aOther)
11040
11041 def __ne__(self, aOther):
11042 r"""__ne__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
11043 return _pcbnew.DIFF_PAIR_DIMENSION___ne__(self, aOther)
11044
11045 def __lt__(self, aOther):
11046 r"""__lt__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
11047 return _pcbnew.DIFF_PAIR_DIMENSION___lt__(self, aOther)
11048 __swig_destroy__ = _pcbnew.delete_DIFF_PAIR_DIMENSION
11049
11050# Register DIFF_PAIR_DIMENSION in _pcbnew:
11051_pcbnew.DIFF_PAIR_DIMENSION_swigregister(DIFF_PAIR_DIMENSION)
11052LAYER_CLASS_SILK = _pcbnew.LAYER_CLASS_SILK
11053
11054LAYER_CLASS_COPPER = _pcbnew.LAYER_CLASS_COPPER
11055
11056LAYER_CLASS_EDGES = _pcbnew.LAYER_CLASS_EDGES
11057
11058LAYER_CLASS_COURTYARD = _pcbnew.LAYER_CLASS_COURTYARD
11059
11060LAYER_CLASS_FAB = _pcbnew.LAYER_CLASS_FAB
11061
11062LAYER_CLASS_OTHERS = _pcbnew.LAYER_CLASS_OTHERS
11063
11064LAYER_CLASS_COUNT = _pcbnew.LAYER_CLASS_COUNT
11065
11067 r"""Proxy of C++ TEXT_ITEM_INFO class."""
11068
11069 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11070 __repr__ = _swig_repr
11071 m_Text = property(_pcbnew.TEXT_ITEM_INFO_m_Text_get, _pcbnew.TEXT_ITEM_INFO_m_Text_set, doc=r"""m_Text : wxString""")
11072 m_Visible = property(_pcbnew.TEXT_ITEM_INFO_m_Visible_get, _pcbnew.TEXT_ITEM_INFO_m_Visible_set, doc=r"""m_Visible : bool""")
11073 m_Layer = property(_pcbnew.TEXT_ITEM_INFO_m_Layer_get, _pcbnew.TEXT_ITEM_INFO_m_Layer_set, doc=r"""m_Layer : PCB_LAYER_ID""")
11074
11075 def __init__(self, aText, aVisible, aLayer):
11076 r"""__init__(TEXT_ITEM_INFO self, wxString aText, bool aVisible, PCB_LAYER_ID aLayer) -> TEXT_ITEM_INFO"""
11077 _pcbnew.TEXT_ITEM_INFO_swiginit(self, _pcbnew.new_TEXT_ITEM_INFO(aText, aVisible, aLayer))
11078
11079 def __eq__(self, aOther):
11080 r"""__eq__(TEXT_ITEM_INFO self, TEXT_ITEM_INFO aOther) -> bool"""
11081 return _pcbnew.TEXT_ITEM_INFO___eq__(self, aOther)
11082 __swig_destroy__ = _pcbnew.delete_TEXT_ITEM_INFO
11083
11084# Register TEXT_ITEM_INFO in _pcbnew:
11085_pcbnew.TEXT_ITEM_INFO_swigregister(TEXT_ITEM_INFO)
11087 r"""Proxy of C++ BOARD_DESIGN_SETTINGS class."""
11088
11089 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11090 __repr__ = _swig_repr
11091 __swig_destroy__ = _pcbnew.delete_BOARD_DESIGN_SETTINGS
11092
11093 def __eq__(self, aOther):
11094 r"""__eq__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> bool"""
11095 return _pcbnew.BOARD_DESIGN_SETTINGS___eq__(self, aOther)
11096
11097 def __ne__(self, aOther):
11098 r"""__ne__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> bool"""
11099 return _pcbnew.BOARD_DESIGN_SETTINGS___ne__(self, aOther)
11100
11101 def __init__(self, *args):
11102 r"""
11103 __init__(BOARD_DESIGN_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> BOARD_DESIGN_SETTINGS
11104 __init__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> BOARD_DESIGN_SETTINGS
11105 """
11106 _pcbnew.BOARD_DESIGN_SETTINGS_swiginit(self, _pcbnew.new_BOARD_DESIGN_SETTINGS(*args))
11107
11108 def LoadFromFile(self, *args):
11109 r"""LoadFromFile(BOARD_DESIGN_SETTINGS self, wxString aDirectory="") -> bool"""
11110 return _pcbnew.BOARD_DESIGN_SETTINGS_LoadFromFile(self, *args)
11111
11112 def GetStackupDescriptor(self, *args):
11113 r"""
11114 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP
11115 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP const &
11116 """
11117 return _pcbnew.BOARD_DESIGN_SETTINGS_GetStackupDescriptor(self, *args)
11118
11120 r"""GetTeadropParamsList(BOARD_DESIGN_SETTINGS self) -> TEARDROP_PARAMETERS_LIST *"""
11121 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTeadropParamsList(self)
11122
11123 def GetSeverity(self, aDRCErrorCode):
11124 r"""GetSeverity(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> SEVERITY"""
11125 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSeverity(self, aDRCErrorCode)
11126
11127 def Ignore(self, aDRCErrorCode):
11128 r"""Ignore(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> bool"""
11129 return _pcbnew.BOARD_DESIGN_SETTINGS_Ignore(self, aDRCErrorCode)
11130
11132 r"""GetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self) -> ZONE_SETTINGS"""
11133 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDefaultZoneSettings(self)
11134
11135 def SetDefaultZoneSettings(self, aSettings):
11136 r"""SetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self, ZONE_SETTINGS aSettings)"""
11137 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDefaultZoneSettings(self, aSettings)
11138
11140 r"""GetCurrentNetClassName(BOARD_DESIGN_SETTINGS self) -> wxString"""
11141 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentNetClassName(self)
11142
11144 r"""UseNetClassTrack(BOARD_DESIGN_SETTINGS self) -> bool"""
11145 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassTrack(self)
11146
11148 r"""UseNetClassVia(BOARD_DESIGN_SETTINGS self) -> bool"""
11149 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassVia(self)
11150
11152 r"""UseNetClassDiffPair(BOARD_DESIGN_SETTINGS self) -> bool"""
11153 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassDiffPair(self)
11154
11156 r"""GetBiggestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
11157 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBiggestClearanceValue(self)
11158
11160 r"""GetSmallestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
11161 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSmallestClearanceValue(self)
11162
11164 r"""GetTrackWidthIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
11165 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTrackWidthIndex(self)
11166
11167 def SetTrackWidthIndex(self, aIndex):
11168 r"""SetTrackWidthIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
11169 return _pcbnew.BOARD_DESIGN_SETTINGS_SetTrackWidthIndex(self, aIndex)
11170
11172 r"""GetCurrentTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
11173 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentTrackWidth(self)
11174
11175 def SetCustomTrackWidth(self, aWidth):
11176 r"""SetCustomTrackWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
11177 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomTrackWidth(self, aWidth)
11178
11180 r"""GetCustomTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
11181 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomTrackWidth(self)
11182
11184 r"""GetViaSizeIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
11185 return _pcbnew.BOARD_DESIGN_SETTINGS_GetViaSizeIndex(self)
11186
11187 def SetViaSizeIndex(self, aIndex):
11188 r"""SetViaSizeIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
11189 return _pcbnew.BOARD_DESIGN_SETTINGS_SetViaSizeIndex(self, aIndex)
11190
11192 r"""GetCurrentViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
11193 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaSize(self)
11194
11195 def SetCustomViaSize(self, aSize):
11196 r"""SetCustomViaSize(BOARD_DESIGN_SETTINGS self, int aSize)"""
11197 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaSize(self, aSize)
11198
11200 r"""GetCustomViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
11201 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaSize(self)
11202
11204 r"""GetCurrentViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
11205 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaDrill(self)
11206
11207 def SetCustomViaDrill(self, aDrill):
11208 r"""SetCustomViaDrill(BOARD_DESIGN_SETTINGS self, int aDrill)"""
11209 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaDrill(self, aDrill)
11210
11212 r"""GetCustomViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
11213 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaDrill(self)
11214
11215 def UseCustomTrackViaSize(self, *args):
11216 r"""
11217 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self, bool aEnabled)
11218 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self) -> bool
11219 """
11220 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomTrackViaSize(self, *args)
11221
11223 r"""GetDiffPairIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
11224 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDiffPairIndex(self)
11225
11226 def SetDiffPairIndex(self, aIndex):
11227 r"""SetDiffPairIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
11228 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDiffPairIndex(self, aIndex)
11229
11230 def SetCustomDiffPairWidth(self, aWidth):
11231 r"""SetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
11232 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairWidth(self, aWidth)
11233
11235 r"""GetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
11236 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairWidth(self)
11237
11238 def SetCustomDiffPairGap(self, aGap):
11239 r"""SetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
11240 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairGap(self, aGap)
11241
11243 r"""GetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
11244 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairGap(self)
11245
11247 r"""SetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
11248 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairViaGap(self, aGap)
11249
11251 r"""GetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
11252 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairViaGap(self)
11253
11255 r"""
11256 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self, bool aEnabled)
11257 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self) -> bool
11258 """
11259 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomDiffPairDimensions(self, *args)
11260
11262 r"""GetCurrentDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
11263 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairWidth(self)
11264
11266 r"""GetCurrentDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
11267 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairGap(self)
11268
11270 r"""GetCurrentDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
11271 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairViaGap(self)
11272
11274 r"""GetEnabledLayers(BOARD_DESIGN_SETTINGS self) -> LSET"""
11275 return _pcbnew.BOARD_DESIGN_SETTINGS_GetEnabledLayers(self)
11276
11277 def SetEnabledLayers(self, aMask):
11278 r"""SetEnabledLayers(BOARD_DESIGN_SETTINGS self, LSET aMask)"""
11279 return _pcbnew.BOARD_DESIGN_SETTINGS_SetEnabledLayers(self, aMask)
11280
11281 def IsLayerEnabled(self, aLayerId):
11282 r"""IsLayerEnabled(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayerId) -> bool"""
11283 return _pcbnew.BOARD_DESIGN_SETTINGS_IsLayerEnabled(self, aLayerId)
11284
11286 r"""GetCopperLayerCount(BOARD_DESIGN_SETTINGS self) -> int"""
11287 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCopperLayerCount(self)
11288
11289 def SetCopperLayerCount(self, aNewLayerCount):
11290 r"""SetCopperLayerCount(BOARD_DESIGN_SETTINGS self, int aNewLayerCount)"""
11291 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCopperLayerCount(self, aNewLayerCount)
11292
11294 r"""GetUserDefinedLayerCount(BOARD_DESIGN_SETTINGS self) -> int"""
11295 return _pcbnew.BOARD_DESIGN_SETTINGS_GetUserDefinedLayerCount(self)
11296
11297 def SetUserDefinedLayerCount(self, aNewLayerCount):
11298 r"""SetUserDefinedLayerCount(BOARD_DESIGN_SETTINGS self, int aNewLayerCount)"""
11299 return _pcbnew.BOARD_DESIGN_SETTINGS_SetUserDefinedLayerCount(self, aNewLayerCount)
11300
11302 r"""GetBoardThickness(BOARD_DESIGN_SETTINGS self) -> int"""
11303 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBoardThickness(self)
11304
11305 def SetBoardThickness(self, aThickness):
11306 r"""SetBoardThickness(BOARD_DESIGN_SETTINGS self, int aThickness)"""
11307 return _pcbnew.BOARD_DESIGN_SETTINGS_SetBoardThickness(self, aThickness)
11308
11309 def GetDRCEpsilon(self):
11310 r"""GetDRCEpsilon(BOARD_DESIGN_SETTINGS self) -> int"""
11311 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDRCEpsilon(self)
11312
11314 r"""GetHolePlatingThickness(BOARD_DESIGN_SETTINGS self) -> int"""
11315 return _pcbnew.BOARD_DESIGN_SETTINGS_GetHolePlatingThickness(self)
11316
11317 def GetLineThickness(self, aLayer):
11318 r"""GetLineThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
11319 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLineThickness(self, aLayer)
11320
11321 def GetTextSize(self, aLayer):
11322 r"""GetTextSize(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
11323 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextSize(self, aLayer)
11324
11325 def GetTextThickness(self, aLayer):
11326 r"""GetTextThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
11327 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextThickness(self, aLayer)
11328
11329 def GetTextItalic(self, aLayer):
11330 r"""GetTextItalic(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
11331 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextItalic(self, aLayer)
11332
11333 def GetTextUpright(self, aLayer):
11334 r"""GetTextUpright(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
11335 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextUpright(self, aLayer)
11336
11337 def GetLayerClass(self, aLayer):
11338 r"""GetLayerClass(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
11339 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLayerClass(self, aLayer)
11340
11341 def SetAuxOrigin(self, aOrigin):
11342 r"""SetAuxOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
11343 return _pcbnew.BOARD_DESIGN_SETTINGS_SetAuxOrigin(self, aOrigin)
11344
11345 def GetAuxOrigin(self):
11346 r"""GetAuxOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
11347 return _pcbnew.BOARD_DESIGN_SETTINGS_GetAuxOrigin(self)
11348
11349 def SetGridOrigin(self, aOrigin):
11350 r"""SetGridOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
11351 return _pcbnew.BOARD_DESIGN_SETTINGS_SetGridOrigin(self, aOrigin)
11352
11353 def GetGridOrigin(self):
11354 r"""GetGridOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
11355 return _pcbnew.BOARD_DESIGN_SETTINGS_GetGridOrigin(self)
11356
11358 r"""SetDefaultMasterPad(BOARD_DESIGN_SETTINGS self)"""
11359 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDefaultMasterPad(self)
11360 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)>)>""")
11361 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)>)>""")
11362 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)>)>""")
11363 m_TeardropParamsList = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_set, doc=r"""m_TeardropParamsList : TEARDROP_PARAMETERS_LIST""")
11364 m_SingleTrackMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SingleTrackMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SingleTrackMeanderSettings_set, doc=r"""m_SingleTrackMeanderSettings : PNS::MEANDER_SETTINGS""")
11365 m_DiffPairMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairMeanderSettings_set, doc=r"""m_DiffPairMeanderSettings : PNS::MEANDER_SETTINGS""")
11366 m_SkewMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SkewMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SkewMeanderSettings_set, doc=r"""m_SkewMeanderSettings : PNS::MEANDER_SETTINGS""")
11367 m_CurrentViaType = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_set, doc=r"""m_CurrentViaType : VIATYPE""")
11368 m_UseConnectedTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_set, doc=r"""m_UseConnectedTrackWidth : bool""")
11369 m_TempOverrideTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_set, doc=r"""m_TempOverrideTrackWidth : bool""")
11370 m_MinClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_set, doc=r"""m_MinClearance : int""")
11371 m_MinGrooveWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinGrooveWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinGrooveWidth_set, doc=r"""m_MinGrooveWidth : int""")
11372 m_MinConn = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_set, doc=r"""m_MinConn : int""")
11373 m_TrackMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_set, doc=r"""m_TrackMinWidth : int""")
11374 m_ViasMinAnnularWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_set, doc=r"""m_ViasMinAnnularWidth : int""")
11375 m_ViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_set, doc=r"""m_ViasMinSize : int""")
11376 m_MinThroughDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_set, doc=r"""m_MinThroughDrill : int""")
11377 m_MicroViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_set, doc=r"""m_MicroViasMinSize : int""")
11378 m_MicroViasMinDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_set, doc=r"""m_MicroViasMinDrill : int""")
11379 m_CopperEdgeClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_set, doc=r"""m_CopperEdgeClearance : int""")
11380 m_HoleClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_set, doc=r"""m_HoleClearance : int""")
11381 m_HoleToHoleMin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_set, doc=r"""m_HoleToHoleMin : int""")
11382 m_SilkClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_set, doc=r"""m_SilkClearance : int""")
11383 m_MinResolvedSpokes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_set, doc=r"""m_MinResolvedSpokes : int""")
11384 m_MinSilkTextHeight = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_set, doc=r"""m_MinSilkTextHeight : int""")
11385 m_MinSilkTextThickness = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_set, doc=r"""m_MinSilkTextThickness : int""")
11386 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)>)>)>""")
11387 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)>)>""")
11388 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)>)>)>""")
11389 m_ZoneKeepExternalFillets = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_set, doc=r"""m_ZoneKeepExternalFillets : bool""")
11390 m_MaxError = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_set, doc=r"""m_MaxError : int""")
11391 m_SolderMaskExpansion = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_set, doc=r"""m_SolderMaskExpansion : int""")
11392 m_SolderMaskMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_set, doc=r"""m_SolderMaskMinWidth : int""")
11393 m_SolderMaskToCopperClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_set, doc=r"""m_SolderMaskToCopperClearance : int""")
11394 m_SolderPasteMargin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_set, doc=r"""m_SolderPasteMargin : int""")
11395 m_SolderPasteMarginRatio = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_set, doc=r"""m_SolderPasteMarginRatio : double""")
11396 m_AllowSoldermaskBridgesInFPs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_set, doc=r"""m_AllowSoldermaskBridgesInFPs : bool""")
11397 m_TentViasFront = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TentViasFront_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TentViasFront_set, doc=r"""m_TentViasFront : bool""")
11398 m_TentViasBack = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TentViasBack_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TentViasBack_set, doc=r"""m_TentViasBack : bool""")
11399 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)>""")
11400 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)>)>""")
11401 m_UserLayerNames = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UserLayerNames_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UserLayerNames_set, doc=r"""m_UserLayerNames : std::map<(std::string,wxString,std::less<(std::string)>,std::allocator<(std::pair<(q(const).std::string,wxString)>)>)>""")
11402 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""")
11403 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""")
11404 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""")
11405 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""")
11406 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""")
11407 m_DimensionUnitsMode = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_set, doc=r"""m_DimensionUnitsMode : DIM_UNITS_MODE""")
11408 m_DimensionPrecision = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_set, doc=r"""m_DimensionPrecision : DIM_PRECISION""")
11409 m_DimensionUnitsFormat = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_set, doc=r"""m_DimensionUnitsFormat : DIM_UNITS_FORMAT""")
11410 m_DimensionSuppressZeroes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_set, doc=r"""m_DimensionSuppressZeroes : bool""")
11411 m_DimensionTextPosition = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_set, doc=r"""m_DimensionTextPosition : DIM_TEXT_POSITION""")
11412 m_DimensionKeepTextAligned = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_set, doc=r"""m_DimensionKeepTextAligned : bool""")
11413 m_DimensionArrowLength = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_set, doc=r"""m_DimensionArrowLength : int""")
11414 m_DimensionExtensionOffset = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_set, doc=r"""m_DimensionExtensionOffset : int""")
11415 m_StyleFPFields = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPFields_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPFields_set, doc=r"""m_StyleFPFields : bool""")
11416 m_StyleFPText = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPText_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPText_set, doc=r"""m_StyleFPText : bool""")
11417 m_StyleFPShapes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPShapes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPShapes_set, doc=r"""m_StyleFPShapes : bool""")
11418 m_HasStackup = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_set, doc=r"""m_HasStackup : bool""")
11419 m_UseHeightForLengthCalcs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_set, doc=r"""m_UseHeightForLengthCalcs : bool""")
11420
11421 def CloneFrom(self, aOther):
11422 r"""CloneFrom(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther)"""
11423 return _pcbnew.BOARD_DESIGN_SETTINGS_CloneFrom(self, aOther)
11424
11425# Register BOARD_DESIGN_SETTINGS in _pcbnew:
11426_pcbnew.BOARD_DESIGN_SETTINGS_swigregister(BOARD_DESIGN_SETTINGS)
11428 r"""Proxy of C++ NET_SETTINGS class."""
11429
11430 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11431 __repr__ = _swig_repr
11432
11433 def __init__(self, aParent, aPath):
11434 r"""__init__(NET_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> NET_SETTINGS"""
11435 _pcbnew.NET_SETTINGS_swiginit(self, _pcbnew.new_NET_SETTINGS(aParent, aPath))
11436 __swig_destroy__ = _pcbnew.delete_NET_SETTINGS
11437
11438 def __eq__(self, aOther):
11439 r"""__eq__(NET_SETTINGS self, NET_SETTINGS aOther) -> bool"""
11440 return _pcbnew.NET_SETTINGS___eq__(self, aOther)
11441
11442 def __ne__(self, aOther):
11443 r"""__ne__(NET_SETTINGS self, NET_SETTINGS aOther) -> bool"""
11444 return _pcbnew.NET_SETTINGS___ne__(self, aOther)
11445
11446 def SetDefaultNetclass(self, netclass):
11447 r"""SetDefaultNetclass(NET_SETTINGS self, std::shared_ptr< NETCLASS > netclass)"""
11448 return _pcbnew.NET_SETTINGS_SetDefaultNetclass(self, netclass)
11449
11451 r"""GetDefaultNetclass(NET_SETTINGS self) -> std::shared_ptr< NETCLASS >"""
11452 return _pcbnew.NET_SETTINGS_GetDefaultNetclass(self)
11453
11454 def HasNetclass(self, netclassName):
11455 r"""HasNetclass(NET_SETTINGS self, wxString netclassName) -> bool"""
11456 return _pcbnew.NET_SETTINGS_HasNetclass(self, netclassName)
11457
11458 def SetNetclass(self, netclassName, netclass):
11459 r"""SetNetclass(NET_SETTINGS self, wxString netclassName, std::shared_ptr< NETCLASS > & netclass)"""
11460 return _pcbnew.NET_SETTINGS_SetNetclass(self, netclassName, netclass)
11461
11462 def SetNetclasses(self, netclasses):
11463 r"""SetNetclasses(NET_SETTINGS self, netclasses_map netclasses)"""
11464 return _pcbnew.NET_SETTINGS_SetNetclasses(self, netclasses)
11465
11466 def GetNetclasses(self):
11467 r"""GetNetclasses(NET_SETTINGS self) -> netclasses_map"""
11468 return _pcbnew.NET_SETTINGS_GetNetclasses(self)
11469
11471 r"""GetCompositeNetclasses(NET_SETTINGS self) -> netclasses_map"""
11472 return _pcbnew.NET_SETTINGS_GetCompositeNetclasses(self)
11473
11475 r"""ClearNetclasses(NET_SETTINGS self)"""
11476 return _pcbnew.NET_SETTINGS_ClearNetclasses(self)
11477
11479 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 &"""
11480 return _pcbnew.NET_SETTINGS_GetNetclassLabelAssignments(self)
11481
11483 r"""ClearNetclassLabelAssignments(NET_SETTINGS self)"""
11484 return _pcbnew.NET_SETTINGS_ClearNetclassLabelAssignments(self)
11485
11487 r"""ClearNetclassLabelAssignment(NET_SETTINGS self, wxString netName)"""
11488 return _pcbnew.NET_SETTINGS_ClearNetclassLabelAssignment(self, netName)
11489
11490 def SetNetclassLabelAssignment(self, netName, netclasses):
11491 r"""SetNetclassLabelAssignment(NET_SETTINGS self, wxString netName, STRINGSET netclasses)"""
11492 return _pcbnew.NET_SETTINGS_SetNetclassLabelAssignment(self, netName, netclasses)
11493
11494 def AppendNetclassLabelAssignment(self, netName, netclasses):
11495 r"""AppendNetclassLabelAssignment(NET_SETTINGS self, wxString netName, STRINGSET netclasses)"""
11496 return _pcbnew.NET_SETTINGS_AppendNetclassLabelAssignment(self, netName, netclasses)
11497
11498 def HasNetclassLabelAssignment(self, netName):
11499 r"""HasNetclassLabelAssignment(NET_SETTINGS self, wxString netName) -> bool"""
11500 return _pcbnew.NET_SETTINGS_HasNetclassLabelAssignment(self, netName)
11501
11502 def SetNetclassPatternAssignment(self, pattern, netclass):
11503 r"""SetNetclassPatternAssignment(NET_SETTINGS self, wxString pattern, wxString netclass)"""
11504 return _pcbnew.NET_SETTINGS_SetNetclassPatternAssignment(self, pattern, netclass)
11505
11506 def SetNetclassPatternAssignments(self, netclassPatterns):
11507 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)"""
11508 return _pcbnew.NET_SETTINGS_SetNetclassPatternAssignments(self, netclassPatterns)
11509
11511 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 > > > &"""
11512 return _pcbnew.NET_SETTINGS_GetNetclassPatternAssignments(self)
11513
11515 r"""ClearNetclassPatternAssignments(NET_SETTINGS self)"""
11516 return _pcbnew.NET_SETTINGS_ClearNetclassPatternAssignments(self)
11517
11518 def ClearCacheForNet(self, netName):
11519 r"""ClearCacheForNet(NET_SETTINGS self, wxString netName)"""
11520 return _pcbnew.NET_SETTINGS_ClearCacheForNet(self, netName)
11521
11523 r"""ClearAllCaches(NET_SETTINGS self)"""
11524 return _pcbnew.NET_SETTINGS_ClearAllCaches(self)
11525
11526 def SetNetColorAssignment(self, netName, color):
11527 r"""SetNetColorAssignment(NET_SETTINGS self, wxString netName, COLOR4D color)"""
11528 return _pcbnew.NET_SETTINGS_SetNetColorAssignment(self, netName, color)
11529
11531 r"""GetNetColorAssignments(NET_SETTINGS self) -> std::map< wxString,KIGFX::COLOR4D,std::less< wxString >,std::allocator< std::pair< wxString const,KIGFX::COLOR4D > > > const &"""
11532 return _pcbnew.NET_SETTINGS_GetNetColorAssignments(self)
11533
11535 r"""ClearNetColorAssignments(NET_SETTINGS self)"""
11536 return _pcbnew.NET_SETTINGS_ClearNetColorAssignments(self)
11537
11538 def HasEffectiveNetClass(self, aNetName):
11539 r"""HasEffectiveNetClass(NET_SETTINGS self, wxString aNetName) -> bool"""
11540 return _pcbnew.NET_SETTINGS_HasEffectiveNetClass(self, aNetName)
11541
11542 def GetCachedEffectiveNetClass(self, aNetName):
11543 r"""GetCachedEffectiveNetClass(NET_SETTINGS self, wxString aNetName) -> std::shared_ptr< NETCLASS >"""
11544 return _pcbnew.NET_SETTINGS_GetCachedEffectiveNetClass(self, aNetName)
11545
11546 def GetEffectiveNetClass(self, aNetName):
11547 r"""GetEffectiveNetClass(NET_SETTINGS self, wxString aNetName) -> std::shared_ptr< NETCLASS >"""
11548 return _pcbnew.NET_SETTINGS_GetEffectiveNetClass(self, aNetName)
11549
11551 r"""RecomputeEffectiveNetclasses(NET_SETTINGS self)"""
11552 return _pcbnew.NET_SETTINGS_RecomputeEffectiveNetclasses(self)
11553
11554 def GetNetClassByName(self, aNetName):
11555 r"""GetNetClassByName(NET_SETTINGS self, wxString aNetName) -> std::shared_ptr< NETCLASS >"""
11556 return _pcbnew.NET_SETTINGS_GetNetClassByName(self, aNetName)
11557
11558 @staticmethod
11559 def ParseBusVector(aBus, aName, aMemberList):
11560 r"""ParseBusVector(wxString aBus, wxString aName, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11561 return _pcbnew.NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
11562
11563 @staticmethod
11564 def ParseBusGroup(aGroup, name, aMemberList):
11565 r"""ParseBusGroup(wxString aGroup, wxString name, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11566 return _pcbnew.NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
11567
11568# Register NET_SETTINGS in _pcbnew:
11569_pcbnew.NET_SETTINGS_swigregister(NET_SETTINGS)
11571 r"""Proxy of C++ CN_DISJOINT_NET_ENTRY class."""
11572
11573 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11574 __repr__ = _swig_repr
11575 net = property(_pcbnew.CN_DISJOINT_NET_ENTRY_net_get, _pcbnew.CN_DISJOINT_NET_ENTRY_net_set, doc=r"""net : int""")
11576 a = property(_pcbnew.CN_DISJOINT_NET_ENTRY_a_get, _pcbnew.CN_DISJOINT_NET_ENTRY_a_set, doc=r"""a : p.BOARD_CONNECTED_ITEM""")
11577 b = property(_pcbnew.CN_DISJOINT_NET_ENTRY_b_get, _pcbnew.CN_DISJOINT_NET_ENTRY_b_set, doc=r"""b : p.BOARD_CONNECTED_ITEM""")
11578 anchorA = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_set, doc=r"""anchorA : VECTOR2I""")
11579 anchorB = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_set, doc=r"""anchorB : VECTOR2I""")
11580
11581 def __init__(self):
11582 r"""__init__(CN_DISJOINT_NET_ENTRY self) -> CN_DISJOINT_NET_ENTRY"""
11583 _pcbnew.CN_DISJOINT_NET_ENTRY_swiginit(self, _pcbnew.new_CN_DISJOINT_NET_ENTRY())
11584 __swig_destroy__ = _pcbnew.delete_CN_DISJOINT_NET_ENTRY
11585
11586# Register CN_DISJOINT_NET_ENTRY in _pcbnew:
11587_pcbnew.CN_DISJOINT_NET_ENTRY_swigregister(CN_DISJOINT_NET_ENTRY)
11589 r"""Proxy of C++ RN_DYNAMIC_LINE class."""
11590
11591 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11592 __repr__ = _swig_repr
11593 netCode = property(_pcbnew.RN_DYNAMIC_LINE_netCode_get, _pcbnew.RN_DYNAMIC_LINE_netCode_set, doc=r"""netCode : int""")
11594 a = property(_pcbnew.RN_DYNAMIC_LINE_a_get, _pcbnew.RN_DYNAMIC_LINE_a_set, doc=r"""a : VECTOR2I""")
11595 b = property(_pcbnew.RN_DYNAMIC_LINE_b_get, _pcbnew.RN_DYNAMIC_LINE_b_set, doc=r"""b : VECTOR2I""")
11596
11597 def __init__(self):
11598 r"""__init__(RN_DYNAMIC_LINE self) -> RN_DYNAMIC_LINE"""
11599 _pcbnew.RN_DYNAMIC_LINE_swiginit(self, _pcbnew.new_RN_DYNAMIC_LINE())
11600 __swig_destroy__ = _pcbnew.delete_RN_DYNAMIC_LINE
11601
11602# Register RN_DYNAMIC_LINE in _pcbnew:
11603_pcbnew.RN_DYNAMIC_LINE_swigregister(RN_DYNAMIC_LINE)
11604PROPAGATE_MODE_SKIP_CONFLICTS = _pcbnew.PROPAGATE_MODE_SKIP_CONFLICTS
11605
11606PROPAGATE_MODE_RESOLVE_CONFLICTS = _pcbnew.PROPAGATE_MODE_RESOLVE_CONFLICTS
11607
11609 r"""Proxy of C++ CONNECTIVITY_DATA class."""
11610
11611 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11612 __repr__ = _swig_repr
11613 __swig_destroy__ = _pcbnew.delete_CONNECTIVITY_DATA
11614
11615 def __init__(self, *args):
11616 r"""
11617 __init__(CONNECTIVITY_DATA self) -> CONNECTIVITY_DATA
11618 __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
11619 """
11620 _pcbnew.CONNECTIVITY_DATA_swiginit(self, _pcbnew.new_CONNECTIVITY_DATA(*args))
11621
11622 def Build(self, *args):
11623 r"""
11624 Build(CONNECTIVITY_DATA self, BOARD aBoard, PROGRESS_REPORTER * aReporter=None) -> bool
11625 Build(CONNECTIVITY_DATA self, std::shared_ptr< CONNECTIVITY_DATA > & aGlobalConnectivity, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aLocalItems)
11626 """
11627 return _pcbnew.CONNECTIVITY_DATA_Build(self, *args)
11628
11629 def Add(self, aItem):
11630 r"""Add(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11631 return _pcbnew.CONNECTIVITY_DATA_Add(self, aItem)
11632
11633 def Remove(self, aItem):
11634 r"""Remove(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11635 return _pcbnew.CONNECTIVITY_DATA_Remove(self, aItem)
11636
11637 def Update(self, aItem):
11638 r"""Update(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11639 return _pcbnew.CONNECTIVITY_DATA_Update(self, aItem)
11640
11641 def Move(self, aDelta):
11642 r"""Move(CONNECTIVITY_DATA self, VECTOR2I aDelta)"""
11643 return _pcbnew.CONNECTIVITY_DATA_Move(self, aDelta)
11644
11645 def ClearRatsnest(self):
11646 r"""ClearRatsnest(CONNECTIVITY_DATA self)"""
11647 return _pcbnew.CONNECTIVITY_DATA_ClearRatsnest(self)
11648
11649 def GetNetCount(self):
11650 r"""GetNetCount(CONNECTIVITY_DATA self) -> int"""
11651 return _pcbnew.CONNECTIVITY_DATA_GetNetCount(self)
11652
11653 def GetRatsnestForNet(self, aNet):
11654 r"""GetRatsnestForNet(CONNECTIVITY_DATA self, int aNet) -> RN_NET *"""
11655 return _pcbnew.CONNECTIVITY_DATA_GetRatsnestForNet(self, aNet)
11656
11657 def PropagateNets(self, aCommit=None):
11658 r"""PropagateNets(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
11659 return _pcbnew.CONNECTIVITY_DATA_PropagateNets(self, aCommit)
11660
11661 def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False):
11662 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)"""
11663 return _pcbnew.CONNECTIVITY_DATA_FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt)
11664
11665 def RecalculateRatsnest(self, aCommit=None):
11666 r"""RecalculateRatsnest(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
11667 return _pcbnew.CONNECTIVITY_DATA_RecalculateRatsnest(self, aCommit)
11668
11669 def GetUnconnectedCount(self, aVisibileOnly):
11670 r"""GetUnconnectedCount(CONNECTIVITY_DATA self, bool aVisibileOnly) -> unsigned int"""
11671 return _pcbnew.CONNECTIVITY_DATA_GetUnconnectedCount(self, aVisibileOnly)
11672
11673 def IsConnectedOnLayer(self, *args):
11674 r"""IsConnectedOnLayer(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, int aLayer, std::initializer_list< KICAD_T > const & aTypes={}) -> bool"""
11675 return _pcbnew.CONNECTIVITY_DATA_IsConnectedOnLayer(self, *args)
11676
11677 def GetNodeCount(self, aNet=-1):
11678 r"""GetNodeCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
11679 return _pcbnew.CONNECTIVITY_DATA_GetNodeCount(self, aNet)
11680
11681 def GetPadCount(self, aNet=-1):
11682 r"""GetPadCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
11683 return _pcbnew.CONNECTIVITY_DATA_GetPadCount(self, aNet)
11684
11685 def GetConnectedTracks(self, aItem):
11686 r"""GetConnectedTracks(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> TRACKS_VEC"""
11687 return _pcbnew.CONNECTIVITY_DATA_GetConnectedTracks(self, aItem)
11688
11689 def GetConnectedPads(self, *args):
11690 r"""
11691 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> PADS_VEC
11692 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, std::set< PAD *,std::less< PAD * >,std::allocator< PAD * > > * pads)
11693 """
11694 return _pcbnew.CONNECTIVITY_DATA_GetConnectedPads(self, *args)
11695
11696 def GetConnectedPadsAndVias(self, aItem, pads, vias):
11697 r"""GetConnectedPadsAndVias(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, PADS_VEC pads, std::vector< PCB_VIA *,std::allocator< PCB_VIA * > > * vias)"""
11698 return _pcbnew.CONNECTIVITY_DATA_GetConnectedPadsAndVias(self, aItem, pads, vias)
11699
11700 def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0):
11701 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"""
11702 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError)
11703
11704 def RunOnUnconnectedEdges(self, aFunc):
11705 r"""RunOnUnconnectedEdges(CONNECTIVITY_DATA self, std::function< bool (CN_EDGE &) > aFunc)"""
11706 return _pcbnew.CONNECTIVITY_DATA_RunOnUnconnectedEdges(self, aFunc)
11707
11708 def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None):
11709 r"""TestTrackEndpointDangling(CONNECTIVITY_DATA self, PCB_TRACK aTrack, bool aIgnoreTracksInPads, VECTOR2I aPos=None) -> bool"""
11710 return _pcbnew.CONNECTIVITY_DATA_TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos)
11711
11713 r"""ClearLocalRatsnest(CONNECTIVITY_DATA self)"""
11714 return _pcbnew.CONNECTIVITY_DATA_ClearLocalRatsnest(self)
11715
11717 r"""HideLocalRatsnest(CONNECTIVITY_DATA self)"""
11718 return _pcbnew.CONNECTIVITY_DATA_HideLocalRatsnest(self)
11719
11720 def ComputeLocalRatsnest(self, *args):
11721 r"""ComputeLocalRatsnest(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems, CONNECTIVITY_DATA aDynamicData, VECTOR2I aInternalOffset={ 0, 0 })"""
11722 return _pcbnew.CONNECTIVITY_DATA_ComputeLocalRatsnest(self, *args)
11723
11725 r"""GetLocalRatsnest(CONNECTIVITY_DATA self) -> std::vector< RN_DYNAMIC_LINE,std::allocator< RN_DYNAMIC_LINE > > const &"""
11726 return _pcbnew.CONNECTIVITY_DATA_GetLocalRatsnest(self)
11727
11728 def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False):
11729 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"""
11730 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes)
11731
11732 def GetNetItems(self, aNetCode, aTypes):
11733 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"""
11734 return _pcbnew.CONNECTIVITY_DATA_GetNetItems(self, aNetCode, aTypes)
11735
11736 def BlockRatsnestItems(self, aItems):
11737 r"""BlockRatsnestItems(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems)"""
11738 return _pcbnew.CONNECTIVITY_DATA_BlockRatsnestItems(self, aItems)
11739
11741 r"""GetConnectivityAlgo(CONNECTIVITY_DATA self) -> std::shared_ptr< CN_CONNECTIVITY_ALGO >"""
11742 return _pcbnew.CONNECTIVITY_DATA_GetConnectivityAlgo(self)
11743
11744 def GetLock(self):
11745 r"""GetLock(CONNECTIVITY_DATA self) -> KISPINLOCK &"""
11746 return _pcbnew.CONNECTIVITY_DATA_GetLock(self)
11747
11748 def MarkItemNetAsDirty(self, aItem):
11749 r"""MarkItemNetAsDirty(CONNECTIVITY_DATA self, BOARD_ITEM aItem)"""
11750 return _pcbnew.CONNECTIVITY_DATA_MarkItemNetAsDirty(self, aItem)
11751
11753 r"""RemoveInvalidRefs(CONNECTIVITY_DATA self)"""
11754 return _pcbnew.CONNECTIVITY_DATA_RemoveInvalidRefs(self)
11755
11756 def SetProgressReporter(self, aReporter):
11757 r"""SetProgressReporter(CONNECTIVITY_DATA self, PROGRESS_REPORTER * aReporter)"""
11758 return _pcbnew.CONNECTIVITY_DATA_SetProgressReporter(self, aReporter)
11759
11761 r"""GetNetSettings(CONNECTIVITY_DATA self) -> NET_SETTINGS"""
11762 return _pcbnew.CONNECTIVITY_DATA_GetNetSettings(self)
11763
11765 r"""HasNetNameForNetCode(CONNECTIVITY_DATA self, int nc) -> bool"""
11766 return _pcbnew.CONNECTIVITY_DATA_HasNetNameForNetCode(self, nc)
11767
11769 r"""GetNetNameForNetCode(CONNECTIVITY_DATA self, int nc) -> wxString"""
11770 return _pcbnew.CONNECTIVITY_DATA_GetNetNameForNetCode(self, nc)
11771
11772 def RefreshNetcodeMap(self, aBoard):
11773 r"""RefreshNetcodeMap(CONNECTIVITY_DATA self, BOARD aBoard)"""
11774 return _pcbnew.CONNECTIVITY_DATA_RefreshNetcodeMap(self, aBoard)
11775
11777 r"""GetFromToCache(CONNECTIVITY_DATA self) -> std::shared_ptr< FROM_TO_CACHE >"""
11778 return _pcbnew.CONNECTIVITY_DATA_GetFromToCache(self)
11779
11780# Register CONNECTIVITY_DATA in _pcbnew:
11781_pcbnew.CONNECTIVITY_DATA_swigregister(CONNECTIVITY_DATA)
11783 r"""Proxy of C++ std::vector< PCB_MARKER * > class."""
11784
11785 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11786 __repr__ = _swig_repr
11787
11788 def iterator(self):
11789 r"""iterator(MARKERS self) -> SwigPyIterator"""
11790 return _pcbnew.MARKERS_iterator(self)
11791 def __iter__(self):
11792 return self.iterator()
11793
11794 def __nonzero__(self):
11795 r"""__nonzero__(MARKERS self) -> bool"""
11796 return _pcbnew.MARKERS___nonzero__(self)
11797
11798 def __bool__(self):
11799 r"""__bool__(MARKERS self) -> bool"""
11800 return _pcbnew.MARKERS___bool__(self)
11801
11802 def __len__(self):
11803 r"""__len__(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11804 return _pcbnew.MARKERS___len__(self)
11805
11806 def __getslice__(self, i, j):
11807 r"""__getslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j) -> MARKERS"""
11808 return _pcbnew.MARKERS___getslice__(self, i, j)
11809
11810 def __setslice__(self, *args):
11811 r"""
11812 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)
11813 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j, MARKERS v)
11814 """
11815 return _pcbnew.MARKERS___setslice__(self, *args)
11816
11817 def __delslice__(self, i, j):
11818 r"""__delslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)"""
11819 return _pcbnew.MARKERS___delslice__(self, i, j)
11820
11821 def __delitem__(self, *args):
11822 r"""
11823 __delitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i)
11824 __delitem__(MARKERS self, SWIGPY_SLICEOBJECT * slice)
11825 """
11826 return _pcbnew.MARKERS___delitem__(self, *args)
11827
11828 def __getitem__(self, *args):
11829 r"""
11830 __getitem__(MARKERS self, SWIGPY_SLICEOBJECT * slice) -> MARKERS
11831 __getitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i) -> PCB_MARKER
11832 """
11833 return _pcbnew.MARKERS___getitem__(self, *args)
11834
11835 def __setitem__(self, *args):
11836 r"""
11837 __setitem__(MARKERS self, SWIGPY_SLICEOBJECT * slice, MARKERS v)
11838 __setitem__(MARKERS self, SWIGPY_SLICEOBJECT * slice)
11839 __setitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, PCB_MARKER x)
11840 """
11841 return _pcbnew.MARKERS___setitem__(self, *args)
11842
11843 def pop(self):
11844 r"""pop(MARKERS self) -> PCB_MARKER"""
11845 return _pcbnew.MARKERS_pop(self)
11846
11847 def append(self, x):
11848 r"""append(MARKERS self, PCB_MARKER x)"""
11849 return _pcbnew.MARKERS_append(self, x)
11850
11851 def empty(self):
11852 r"""empty(MARKERS self) -> bool"""
11853 return _pcbnew.MARKERS_empty(self)
11854
11855 def size(self):
11856 r"""size(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11857 return _pcbnew.MARKERS_size(self)
11858
11859 def swap(self, v):
11860 r"""swap(MARKERS self, MARKERS v)"""
11861 return _pcbnew.MARKERS_swap(self, v)
11862
11863 def begin(self):
11864 r"""begin(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
11865 return _pcbnew.MARKERS_begin(self)
11866
11867 def end(self):
11868 r"""end(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
11869 return _pcbnew.MARKERS_end(self)
11870
11871 def rbegin(self):
11872 r"""rbegin(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11873 return _pcbnew.MARKERS_rbegin(self)
11874
11875 def rend(self):
11876 r"""rend(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11877 return _pcbnew.MARKERS_rend(self)
11878
11879 def clear(self):
11880 r"""clear(MARKERS self)"""
11881 return _pcbnew.MARKERS_clear(self)
11882
11883 def get_allocator(self):
11884 r"""get_allocator(MARKERS self) -> std::vector< PCB_MARKER * >::allocator_type"""
11885 return _pcbnew.MARKERS_get_allocator(self)
11886
11887 def pop_back(self):
11888 r"""pop_back(MARKERS self)"""
11889 return _pcbnew.MARKERS_pop_back(self)
11890
11891 def erase(self, *args):
11892 r"""
11893 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator pos) -> std::vector< PCB_MARKER * >::iterator
11894 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator first, std::vector< PCB_MARKER * >::iterator last) -> std::vector< PCB_MARKER * >::iterator
11895 """
11896 return _pcbnew.MARKERS_erase(self, *args)
11897
11898 def __init__(self, *args):
11899 r"""
11900 __init__(MARKERS self) -> MARKERS
11901 __init__(MARKERS self, MARKERS other) -> MARKERS
11902 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size) -> MARKERS
11903 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size, PCB_MARKER value) -> MARKERS
11904 """
11905 _pcbnew.MARKERS_swiginit(self, _pcbnew.new_MARKERS(*args))
11906
11907 def push_back(self, x):
11908 r"""push_back(MARKERS self, PCB_MARKER x)"""
11909 return _pcbnew.MARKERS_push_back(self, x)
11910
11911 def front(self):
11912 r"""front(MARKERS self) -> PCB_MARKER"""
11913 return _pcbnew.MARKERS_front(self)
11914
11915 def back(self):
11916 r"""back(MARKERS self) -> PCB_MARKER"""
11917 return _pcbnew.MARKERS_back(self)
11918
11919 def assign(self, n, x):
11920 r"""assign(MARKERS self, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)"""
11921 return _pcbnew.MARKERS_assign(self, n, x)
11922
11923 def resize(self, *args):
11924 r"""
11925 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size)
11926 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size, PCB_MARKER x)
11927 """
11928 return _pcbnew.MARKERS_resize(self, *args)
11929
11930 def insert(self, *args):
11931 r"""
11932 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, PCB_MARKER x) -> std::vector< PCB_MARKER * >::iterator
11933 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)
11934 """
11935 return _pcbnew.MARKERS_insert(self, *args)
11936
11937 def reserve(self, n):
11938 r"""reserve(MARKERS self, std::vector< PCB_MARKER * >::size_type n)"""
11939 return _pcbnew.MARKERS_reserve(self, n)
11940
11941 def capacity(self):
11942 r"""capacity(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11943 return _pcbnew.MARKERS_capacity(self)
11944 __swig_destroy__ = _pcbnew.delete_MARKERS
11945
11946# Register MARKERS in _pcbnew:
11947_pcbnew.MARKERS_swigregister(MARKERS)
11949 r"""Proxy of C++ std::vector< ZONE * > class."""
11950
11951 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11952 __repr__ = _swig_repr
11953
11954 def iterator(self):
11955 r"""iterator(ZONES self) -> SwigPyIterator"""
11956 return _pcbnew.ZONES_iterator(self)
11957 def __iter__(self):
11958 return self.iterator()
11959
11960 def __nonzero__(self):
11961 r"""__nonzero__(ZONES self) -> bool"""
11962 return _pcbnew.ZONES___nonzero__(self)
11963
11964 def __bool__(self):
11965 r"""__bool__(ZONES self) -> bool"""
11966 return _pcbnew.ZONES___bool__(self)
11967
11968 def __len__(self):
11969 r"""__len__(ZONES self) -> std::vector< ZONE * >::size_type"""
11970 return _pcbnew.ZONES___len__(self)
11971
11972 def __getslice__(self, i, j):
11973 r"""__getslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j) -> ZONES"""
11974 return _pcbnew.ZONES___getslice__(self, i, j)
11975
11976 def __setslice__(self, *args):
11977 r"""
11978 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)
11979 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j, ZONES v)
11980 """
11981 return _pcbnew.ZONES___setslice__(self, *args)
11982
11983 def __delslice__(self, i, j):
11984 r"""__delslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)"""
11985 return _pcbnew.ZONES___delslice__(self, i, j)
11986
11987 def __delitem__(self, *args):
11988 r"""
11989 __delitem__(ZONES self, std::vector< ZONE * >::difference_type i)
11990 __delitem__(ZONES self, SWIGPY_SLICEOBJECT * slice)
11991 """
11992 return _pcbnew.ZONES___delitem__(self, *args)
11993
11994 def __getitem__(self, *args):
11995 r"""
11996 __getitem__(ZONES self, SWIGPY_SLICEOBJECT * slice) -> ZONES
11997 __getitem__(ZONES self, std::vector< ZONE * >::difference_type i) -> ZONE
11998 """
11999 return _pcbnew.ZONES___getitem__(self, *args)
12000
12001 def __setitem__(self, *args):
12002 r"""
12003 __setitem__(ZONES self, SWIGPY_SLICEOBJECT * slice, ZONES v)
12004 __setitem__(ZONES self, SWIGPY_SLICEOBJECT * slice)
12005 __setitem__(ZONES self, std::vector< ZONE * >::difference_type i, ZONE x)
12006 """
12007 return _pcbnew.ZONES___setitem__(self, *args)
12008
12009 def pop(self):
12010 r"""pop(ZONES self) -> ZONE"""
12011 return _pcbnew.ZONES_pop(self)
12012
12013 def append(self, x):
12014 r"""append(ZONES self, ZONE x)"""
12015 return _pcbnew.ZONES_append(self, x)
12016
12017 def empty(self):
12018 r"""empty(ZONES self) -> bool"""
12019 return _pcbnew.ZONES_empty(self)
12020
12021 def size(self):
12022 r"""size(ZONES self) -> std::vector< ZONE * >::size_type"""
12023 return _pcbnew.ZONES_size(self)
12024
12025 def swap(self, v):
12026 r"""swap(ZONES self, ZONES v)"""
12027 return _pcbnew.ZONES_swap(self, v)
12028
12029 def begin(self):
12030 r"""begin(ZONES self) -> std::vector< ZONE * >::iterator"""
12031 return _pcbnew.ZONES_begin(self)
12032
12033 def end(self):
12034 r"""end(ZONES self) -> std::vector< ZONE * >::iterator"""
12035 return _pcbnew.ZONES_end(self)
12036
12037 def rbegin(self):
12038 r"""rbegin(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
12039 return _pcbnew.ZONES_rbegin(self)
12040
12041 def rend(self):
12042 r"""rend(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
12043 return _pcbnew.ZONES_rend(self)
12044
12045 def clear(self):
12046 r"""clear(ZONES self)"""
12047 return _pcbnew.ZONES_clear(self)
12048
12049 def get_allocator(self):
12050 r"""get_allocator(ZONES self) -> std::vector< ZONE * >::allocator_type"""
12051 return _pcbnew.ZONES_get_allocator(self)
12052
12053 def pop_back(self):
12054 r"""pop_back(ZONES self)"""
12055 return _pcbnew.ZONES_pop_back(self)
12056
12057 def erase(self, *args):
12058 r"""
12059 erase(ZONES self, std::vector< ZONE * >::iterator pos) -> std::vector< ZONE * >::iterator
12060 erase(ZONES self, std::vector< ZONE * >::iterator first, std::vector< ZONE * >::iterator last) -> std::vector< ZONE * >::iterator
12061 """
12062 return _pcbnew.ZONES_erase(self, *args)
12063
12064 def __init__(self, *args):
12065 r"""
12066 __init__(ZONES self) -> ZONES
12067 __init__(ZONES self, ZONES other) -> ZONES
12068 __init__(ZONES self, std::vector< ZONE * >::size_type size) -> ZONES
12069 __init__(ZONES self, std::vector< ZONE * >::size_type size, ZONE value) -> ZONES
12070 """
12071 _pcbnew.ZONES_swiginit(self, _pcbnew.new_ZONES(*args))
12072
12073 def push_back(self, x):
12074 r"""push_back(ZONES self, ZONE x)"""
12075 return _pcbnew.ZONES_push_back(self, x)
12076
12077 def front(self):
12078 r"""front(ZONES self) -> ZONE"""
12079 return _pcbnew.ZONES_front(self)
12080
12081 def back(self):
12082 r"""back(ZONES self) -> ZONE"""
12083 return _pcbnew.ZONES_back(self)
12084
12085 def assign(self, n, x):
12086 r"""assign(ZONES self, std::vector< ZONE * >::size_type n, ZONE x)"""
12087 return _pcbnew.ZONES_assign(self, n, x)
12088
12089 def resize(self, *args):
12090 r"""
12091 resize(ZONES self, std::vector< ZONE * >::size_type new_size)
12092 resize(ZONES self, std::vector< ZONE * >::size_type new_size, ZONE x)
12093 """
12094 return _pcbnew.ZONES_resize(self, *args)
12095
12096 def insert(self, *args):
12097 r"""
12098 insert(ZONES self, std::vector< ZONE * >::iterator pos, ZONE x) -> std::vector< ZONE * >::iterator
12099 insert(ZONES self, std::vector< ZONE * >::iterator pos, std::vector< ZONE * >::size_type n, ZONE x)
12100 """
12101 return _pcbnew.ZONES_insert(self, *args)
12102
12103 def reserve(self, n):
12104 r"""reserve(ZONES self, std::vector< ZONE * >::size_type n)"""
12105 return _pcbnew.ZONES_reserve(self, n)
12106
12107 def capacity(self):
12108 r"""capacity(ZONES self) -> std::vector< ZONE * >::size_type"""
12109 return _pcbnew.ZONES_capacity(self)
12110 __swig_destroy__ = _pcbnew.delete_ZONES
12111
12112# Register ZONES in _pcbnew:
12113_pcbnew.ZONES_swigregister(ZONES)
12115 r"""Proxy of C++ std::deque< PCB_TRACK * > class."""
12116
12117 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12118 __repr__ = _swig_repr
12119
12120 def iterator(self):
12121 r"""iterator(TRACKS self) -> SwigPyIterator"""
12122 return _pcbnew.TRACKS_iterator(self)
12123 def __iter__(self):
12124 return self.iterator()
12125
12126 def __nonzero__(self):
12127 r"""__nonzero__(TRACKS self) -> bool"""
12128 return _pcbnew.TRACKS___nonzero__(self)
12129
12130 def __bool__(self):
12131 r"""__bool__(TRACKS self) -> bool"""
12132 return _pcbnew.TRACKS___bool__(self)
12133
12134 def __len__(self):
12135 r"""__len__(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
12136 return _pcbnew.TRACKS___len__(self)
12137
12138 def __getslice__(self, i, j):
12139 r"""__getslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j) -> TRACKS"""
12140 return _pcbnew.TRACKS___getslice__(self, i, j)
12141
12142 def __setslice__(self, *args):
12143 r"""
12144 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)
12145 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j, TRACKS v)
12146 """
12147 return _pcbnew.TRACKS___setslice__(self, *args)
12148
12149 def __delslice__(self, i, j):
12150 r"""__delslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)"""
12151 return _pcbnew.TRACKS___delslice__(self, i, j)
12152
12153 def __delitem__(self, *args):
12154 r"""
12155 __delitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i)
12156 __delitem__(TRACKS self, SWIGPY_SLICEOBJECT * slice)
12157 """
12158 return _pcbnew.TRACKS___delitem__(self, *args)
12159
12160 def __getitem__(self, *args):
12161 r"""
12162 __getitem__(TRACKS self, SWIGPY_SLICEOBJECT * slice) -> TRACKS
12163 __getitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i) -> PCB_TRACK
12164 """
12165 return _pcbnew.TRACKS___getitem__(self, *args)
12166
12167 def __setitem__(self, *args):
12168 r"""
12169 __setitem__(TRACKS self, SWIGPY_SLICEOBJECT * slice, TRACKS v)
12170 __setitem__(TRACKS self, SWIGPY_SLICEOBJECT * slice)
12171 __setitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, PCB_TRACK x)
12172 """
12173 return _pcbnew.TRACKS___setitem__(self, *args)
12174
12175 def pop(self):
12176 r"""pop(TRACKS self) -> PCB_TRACK"""
12177 return _pcbnew.TRACKS_pop(self)
12178
12179 def append(self, x):
12180 r"""append(TRACKS self, PCB_TRACK x)"""
12181 return _pcbnew.TRACKS_append(self, x)
12182
12183 def empty(self):
12184 r"""empty(TRACKS self) -> bool"""
12185 return _pcbnew.TRACKS_empty(self)
12186
12187 def size(self):
12188 r"""size(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
12189 return _pcbnew.TRACKS_size(self)
12190
12191 def swap(self, v):
12192 r"""swap(TRACKS self, TRACKS v)"""
12193 return _pcbnew.TRACKS_swap(self, v)
12194
12195 def begin(self):
12196 r"""begin(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
12197 return _pcbnew.TRACKS_begin(self)
12198
12199 def end(self):
12200 r"""end(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
12201 return _pcbnew.TRACKS_end(self)
12202
12203 def rbegin(self):
12204 r"""rbegin(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
12205 return _pcbnew.TRACKS_rbegin(self)
12206
12207 def rend(self):
12208 r"""rend(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
12209 return _pcbnew.TRACKS_rend(self)
12210
12211 def clear(self):
12212 r"""clear(TRACKS self)"""
12213 return _pcbnew.TRACKS_clear(self)
12214
12215 def get_allocator(self):
12216 r"""get_allocator(TRACKS self) -> std::deque< PCB_TRACK * >::allocator_type"""
12217 return _pcbnew.TRACKS_get_allocator(self)
12218
12219 def pop_back(self):
12220 r"""pop_back(TRACKS self)"""
12221 return _pcbnew.TRACKS_pop_back(self)
12222
12223 def erase(self, *args):
12224 r"""
12225 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator pos) -> std::deque< PCB_TRACK * >::iterator
12226 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator first, std::deque< PCB_TRACK * >::iterator last) -> std::deque< PCB_TRACK * >::iterator
12227 """
12228 return _pcbnew.TRACKS_erase(self, *args)
12229
12230 def __init__(self, *args):
12231 r"""
12232 __init__(TRACKS self) -> TRACKS
12233 __init__(TRACKS self, TRACKS other) -> TRACKS
12234 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size) -> TRACKS
12235 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS
12236 """
12237 _pcbnew.TRACKS_swiginit(self, _pcbnew.new_TRACKS(*args))
12238
12239 def push_back(self, x):
12240 r"""push_back(TRACKS self, PCB_TRACK x)"""
12241 return _pcbnew.TRACKS_push_back(self, x)
12242
12243 def front(self):
12244 r"""front(TRACKS self) -> PCB_TRACK"""
12245 return _pcbnew.TRACKS_front(self)
12246
12247 def back(self):
12248 r"""back(TRACKS self) -> PCB_TRACK"""
12249 return _pcbnew.TRACKS_back(self)
12250
12251 def assign(self, n, x):
12252 r"""assign(TRACKS self, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
12253 return _pcbnew.TRACKS_assign(self, n, x)
12254
12255 def resize(self, *args):
12256 r"""
12257 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size)
12258 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
12259 """
12260 return _pcbnew.TRACKS_resize(self, *args)
12261
12262 def insert(self, *args):
12263 r"""
12264 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::deque< PCB_TRACK * >::iterator
12265 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)
12266 """
12267 return _pcbnew.TRACKS_insert(self, *args)
12268
12269 def pop_front(self):
12270 r"""pop_front(TRACKS self)"""
12271 return _pcbnew.TRACKS_pop_front(self)
12272
12273 def push_front(self, x):
12274 r"""push_front(TRACKS self, PCB_TRACK x)"""
12275 return _pcbnew.TRACKS_push_front(self, x)
12276
12277 def __iter__(self):
12278 it = self.iterator()
12279 try:
12280 while True:
12281 item = it.next() # throws StopIteration when iterator reached the end.
12282 yield item.Cast()
12283 except StopIteration:
12284 return
12285
12286 __swig_destroy__ = _pcbnew.delete_TRACKS
12287
12288# Register TRACKS in _pcbnew:
12289_pcbnew.TRACKS_swigregister(TRACKS)
12291 r"""Proxy of C++ std::deque< FOOTPRINT * > class."""
12292
12293 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12294 __repr__ = _swig_repr
12295
12296 def iterator(self):
12297 r"""iterator(FOOTPRINTS self) -> SwigPyIterator"""
12298 return _pcbnew.FOOTPRINTS_iterator(self)
12299 def __iter__(self):
12300 return self.iterator()
12301
12302 def __nonzero__(self):
12303 r"""__nonzero__(FOOTPRINTS self) -> bool"""
12304 return _pcbnew.FOOTPRINTS___nonzero__(self)
12305
12306 def __bool__(self):
12307 r"""__bool__(FOOTPRINTS self) -> bool"""
12308 return _pcbnew.FOOTPRINTS___bool__(self)
12309
12310 def __len__(self):
12311 r"""__len__(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
12312 return _pcbnew.FOOTPRINTS___len__(self)
12313
12314 def __getslice__(self, i, j):
12315 r"""__getslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j) -> FOOTPRINTS"""
12316 return _pcbnew.FOOTPRINTS___getslice__(self, i, j)
12317
12318 def __setslice__(self, *args):
12319 r"""
12320 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)
12321 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j, FOOTPRINTS v)
12322 """
12323 return _pcbnew.FOOTPRINTS___setslice__(self, *args)
12324
12325 def __delslice__(self, i, j):
12326 r"""__delslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)"""
12327 return _pcbnew.FOOTPRINTS___delslice__(self, i, j)
12328
12329 def __delitem__(self, *args):
12330 r"""
12331 __delitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i)
12332 __delitem__(FOOTPRINTS self, SWIGPY_SLICEOBJECT * slice)
12333 """
12334 return _pcbnew.FOOTPRINTS___delitem__(self, *args)
12335
12336 def __getitem__(self, *args):
12337 r"""
12338 __getitem__(FOOTPRINTS self, SWIGPY_SLICEOBJECT * slice) -> FOOTPRINTS
12339 __getitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i) -> FOOTPRINT
12340 """
12341 return _pcbnew.FOOTPRINTS___getitem__(self, *args)
12342
12343 def __setitem__(self, *args):
12344 r"""
12345 __setitem__(FOOTPRINTS self, SWIGPY_SLICEOBJECT * slice, FOOTPRINTS v)
12346 __setitem__(FOOTPRINTS self, SWIGPY_SLICEOBJECT * slice)
12347 __setitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, FOOTPRINT x)
12348 """
12349 return _pcbnew.FOOTPRINTS___setitem__(self, *args)
12350
12351 def pop(self):
12352 r"""pop(FOOTPRINTS self) -> FOOTPRINT"""
12353 return _pcbnew.FOOTPRINTS_pop(self)
12354
12355 def append(self, x):
12356 r"""append(FOOTPRINTS self, FOOTPRINT x)"""
12357 return _pcbnew.FOOTPRINTS_append(self, x)
12358
12359 def empty(self):
12360 r"""empty(FOOTPRINTS self) -> bool"""
12361 return _pcbnew.FOOTPRINTS_empty(self)
12362
12363 def size(self):
12364 r"""size(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
12365 return _pcbnew.FOOTPRINTS_size(self)
12366
12367 def swap(self, v):
12368 r"""swap(FOOTPRINTS self, FOOTPRINTS v)"""
12369 return _pcbnew.FOOTPRINTS_swap(self, v)
12370
12371 def begin(self):
12372 r"""begin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
12373 return _pcbnew.FOOTPRINTS_begin(self)
12374
12375 def end(self):
12376 r"""end(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
12377 return _pcbnew.FOOTPRINTS_end(self)
12378
12379 def rbegin(self):
12380 r"""rbegin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
12381 return _pcbnew.FOOTPRINTS_rbegin(self)
12382
12383 def rend(self):
12384 r"""rend(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
12385 return _pcbnew.FOOTPRINTS_rend(self)
12386
12387 def clear(self):
12388 r"""clear(FOOTPRINTS self)"""
12389 return _pcbnew.FOOTPRINTS_clear(self)
12390
12391 def get_allocator(self):
12392 r"""get_allocator(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::allocator_type"""
12393 return _pcbnew.FOOTPRINTS_get_allocator(self)
12394
12395 def pop_back(self):
12396 r"""pop_back(FOOTPRINTS self)"""
12397 return _pcbnew.FOOTPRINTS_pop_back(self)
12398
12399 def erase(self, *args):
12400 r"""
12401 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos) -> std::deque< FOOTPRINT * >::iterator
12402 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator first, std::deque< FOOTPRINT * >::iterator last) -> std::deque< FOOTPRINT * >::iterator
12403 """
12404 return _pcbnew.FOOTPRINTS_erase(self, *args)
12405
12406 def __init__(self, *args):
12407 r"""
12408 __init__(FOOTPRINTS self) -> FOOTPRINTS
12409 __init__(FOOTPRINTS self, FOOTPRINTS other) -> FOOTPRINTS
12410 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size) -> FOOTPRINTS
12411 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size, FOOTPRINT value) -> FOOTPRINTS
12412 """
12413 _pcbnew.FOOTPRINTS_swiginit(self, _pcbnew.new_FOOTPRINTS(*args))
12414
12415 def push_back(self, x):
12416 r"""push_back(FOOTPRINTS self, FOOTPRINT x)"""
12417 return _pcbnew.FOOTPRINTS_push_back(self, x)
12418
12419 def front(self):
12420 r"""front(FOOTPRINTS self) -> FOOTPRINT"""
12421 return _pcbnew.FOOTPRINTS_front(self)
12422
12423 def back(self):
12424 r"""back(FOOTPRINTS self) -> FOOTPRINT"""
12425 return _pcbnew.FOOTPRINTS_back(self)
12426
12427 def assign(self, n, x):
12428 r"""assign(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)"""
12429 return _pcbnew.FOOTPRINTS_assign(self, n, x)
12430
12431 def resize(self, *args):
12432 r"""
12433 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size)
12434 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size, FOOTPRINT x)
12435 """
12436 return _pcbnew.FOOTPRINTS_resize(self, *args)
12437
12438 def insert(self, *args):
12439 r"""
12440 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, FOOTPRINT x) -> std::deque< FOOTPRINT * >::iterator
12441 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)
12442 """
12443 return _pcbnew.FOOTPRINTS_insert(self, *args)
12444
12445 def pop_front(self):
12446 r"""pop_front(FOOTPRINTS self)"""
12447 return _pcbnew.FOOTPRINTS_pop_front(self)
12448
12449 def push_front(self, x):
12450 r"""push_front(FOOTPRINTS self, FOOTPRINT x)"""
12451 return _pcbnew.FOOTPRINTS_push_front(self, x)
12452 __swig_destroy__ = _pcbnew.delete_FOOTPRINTS
12453
12454# Register FOOTPRINTS in _pcbnew:
12455_pcbnew.FOOTPRINTS_swigregister(FOOTPRINTS)
12457 r"""Proxy of C++ std::deque< PCB_GROUP * > class."""
12458
12459 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12460 __repr__ = _swig_repr
12461
12462 def iterator(self):
12463 r"""iterator(GROUPS self) -> SwigPyIterator"""
12464 return _pcbnew.GROUPS_iterator(self)
12465 def __iter__(self):
12466 return self.iterator()
12467
12468 def __nonzero__(self):
12469 r"""__nonzero__(GROUPS self) -> bool"""
12470 return _pcbnew.GROUPS___nonzero__(self)
12471
12472 def __bool__(self):
12473 r"""__bool__(GROUPS self) -> bool"""
12474 return _pcbnew.GROUPS___bool__(self)
12475
12476 def __len__(self):
12477 r"""__len__(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
12478 return _pcbnew.GROUPS___len__(self)
12479
12480 def __getslice__(self, i, j):
12481 r"""__getslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j) -> GROUPS"""
12482 return _pcbnew.GROUPS___getslice__(self, i, j)
12483
12484 def __setslice__(self, *args):
12485 r"""
12486 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)
12487 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j, GROUPS v)
12488 """
12489 return _pcbnew.GROUPS___setslice__(self, *args)
12490
12491 def __delslice__(self, i, j):
12492 r"""__delslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)"""
12493 return _pcbnew.GROUPS___delslice__(self, i, j)
12494
12495 def __delitem__(self, *args):
12496 r"""
12497 __delitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i)
12498 __delitem__(GROUPS self, SWIGPY_SLICEOBJECT * slice)
12499 """
12500 return _pcbnew.GROUPS___delitem__(self, *args)
12501
12502 def __getitem__(self, *args):
12503 r"""
12504 __getitem__(GROUPS self, SWIGPY_SLICEOBJECT * slice) -> GROUPS
12505 __getitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i) -> PCB_GROUP
12506 """
12507 return _pcbnew.GROUPS___getitem__(self, *args)
12508
12509 def __setitem__(self, *args):
12510 r"""
12511 __setitem__(GROUPS self, SWIGPY_SLICEOBJECT * slice, GROUPS v)
12512 __setitem__(GROUPS self, SWIGPY_SLICEOBJECT * slice)
12513 __setitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, PCB_GROUP x)
12514 """
12515 return _pcbnew.GROUPS___setitem__(self, *args)
12516
12517 def pop(self):
12518 r"""pop(GROUPS self) -> PCB_GROUP"""
12519 return _pcbnew.GROUPS_pop(self)
12520
12521 def append(self, x):
12522 r"""append(GROUPS self, PCB_GROUP x)"""
12523 return _pcbnew.GROUPS_append(self, x)
12524
12525 def empty(self):
12526 r"""empty(GROUPS self) -> bool"""
12527 return _pcbnew.GROUPS_empty(self)
12528
12529 def size(self):
12530 r"""size(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
12531 return _pcbnew.GROUPS_size(self)
12532
12533 def swap(self, v):
12534 r"""swap(GROUPS self, GROUPS v)"""
12535 return _pcbnew.GROUPS_swap(self, v)
12536
12537 def begin(self):
12538 r"""begin(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
12539 return _pcbnew.GROUPS_begin(self)
12540
12541 def end(self):
12542 r"""end(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
12543 return _pcbnew.GROUPS_end(self)
12544
12545 def rbegin(self):
12546 r"""rbegin(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
12547 return _pcbnew.GROUPS_rbegin(self)
12548
12549 def rend(self):
12550 r"""rend(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
12551 return _pcbnew.GROUPS_rend(self)
12552
12553 def clear(self):
12554 r"""clear(GROUPS self)"""
12555 return _pcbnew.GROUPS_clear(self)
12556
12557 def get_allocator(self):
12558 r"""get_allocator(GROUPS self) -> std::deque< PCB_GROUP * >::allocator_type"""
12559 return _pcbnew.GROUPS_get_allocator(self)
12560
12561 def pop_back(self):
12562 r"""pop_back(GROUPS self)"""
12563 return _pcbnew.GROUPS_pop_back(self)
12564
12565 def erase(self, *args):
12566 r"""
12567 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator pos) -> std::deque< PCB_GROUP * >::iterator
12568 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator first, std::deque< PCB_GROUP * >::iterator last) -> std::deque< PCB_GROUP * >::iterator
12569 """
12570 return _pcbnew.GROUPS_erase(self, *args)
12571
12572 def __init__(self, *args):
12573 r"""
12574 __init__(GROUPS self) -> GROUPS
12575 __init__(GROUPS self, GROUPS other) -> GROUPS
12576 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size) -> GROUPS
12577 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size, PCB_GROUP value) -> GROUPS
12578 """
12579 _pcbnew.GROUPS_swiginit(self, _pcbnew.new_GROUPS(*args))
12580
12581 def push_back(self, x):
12582 r"""push_back(GROUPS self, PCB_GROUP x)"""
12583 return _pcbnew.GROUPS_push_back(self, x)
12584
12585 def front(self):
12586 r"""front(GROUPS self) -> PCB_GROUP"""
12587 return _pcbnew.GROUPS_front(self)
12588
12589 def back(self):
12590 r"""back(GROUPS self) -> PCB_GROUP"""
12591 return _pcbnew.GROUPS_back(self)
12592
12593 def assign(self, n, x):
12594 r"""assign(GROUPS self, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)"""
12595 return _pcbnew.GROUPS_assign(self, n, x)
12596
12597 def resize(self, *args):
12598 r"""
12599 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size)
12600 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size, PCB_GROUP x)
12601 """
12602 return _pcbnew.GROUPS_resize(self, *args)
12603
12604 def insert(self, *args):
12605 r"""
12606 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, PCB_GROUP x) -> std::deque< PCB_GROUP * >::iterator
12607 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)
12608 """
12609 return _pcbnew.GROUPS_insert(self, *args)
12610
12611 def pop_front(self):
12612 r"""pop_front(GROUPS self)"""
12613 return _pcbnew.GROUPS_pop_front(self)
12614
12615 def push_front(self, x):
12616 r"""push_front(GROUPS self, PCB_GROUP x)"""
12617 return _pcbnew.GROUPS_push_front(self, x)
12618 __swig_destroy__ = _pcbnew.delete_GROUPS
12619
12620# Register GROUPS in _pcbnew:
12621_pcbnew.GROUPS_swigregister(GROUPS)
12623 r"""Proxy of C++ std::deque< PCB_GENERATOR * > class."""
12624
12625 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12626 __repr__ = _swig_repr
12627
12628 def iterator(self):
12629 r"""iterator(GENERATORS self) -> SwigPyIterator"""
12630 return _pcbnew.GENERATORS_iterator(self)
12631 def __iter__(self):
12632 return self.iterator()
12633
12634 def __nonzero__(self):
12635 r"""__nonzero__(GENERATORS self) -> bool"""
12636 return _pcbnew.GENERATORS___nonzero__(self)
12637
12638 def __bool__(self):
12639 r"""__bool__(GENERATORS self) -> bool"""
12640 return _pcbnew.GENERATORS___bool__(self)
12641
12642 def __len__(self):
12643 r"""__len__(GENERATORS self) -> std::deque< PCB_GENERATOR * >::size_type"""
12644 return _pcbnew.GENERATORS___len__(self)
12645
12646 def __getslice__(self, i, j):
12647 r"""__getslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j) -> GENERATORS"""
12648 return _pcbnew.GENERATORS___getslice__(self, i, j)
12649
12650 def __setslice__(self, *args):
12651 r"""
12652 __setslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j)
12653 __setslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j, GENERATORS v)
12654 """
12655 return _pcbnew.GENERATORS___setslice__(self, *args)
12656
12657 def __delslice__(self, i, j):
12658 r"""__delslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j)"""
12659 return _pcbnew.GENERATORS___delslice__(self, i, j)
12660
12661 def __delitem__(self, *args):
12662 r"""
12663 __delitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i)
12664 __delitem__(GENERATORS self, SWIGPY_SLICEOBJECT * slice)
12665 """
12666 return _pcbnew.GENERATORS___delitem__(self, *args)
12667
12668 def __getitem__(self, *args):
12669 r"""
12670 __getitem__(GENERATORS self, SWIGPY_SLICEOBJECT * slice) -> GENERATORS
12671 __getitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i) -> std::deque< PCB_GENERATOR * >::value_type
12672 """
12673 return _pcbnew.GENERATORS___getitem__(self, *args)
12674
12675 def __setitem__(self, *args):
12676 r"""
12677 __setitem__(GENERATORS self, SWIGPY_SLICEOBJECT * slice, GENERATORS v)
12678 __setitem__(GENERATORS self, SWIGPY_SLICEOBJECT * slice)
12679 __setitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::value_type x)
12680 """
12681 return _pcbnew.GENERATORS___setitem__(self, *args)
12682
12683 def pop(self):
12684 r"""pop(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12685 return _pcbnew.GENERATORS_pop(self)
12686
12687 def append(self, x):
12688 r"""append(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12689 return _pcbnew.GENERATORS_append(self, x)
12690
12691 def empty(self):
12692 r"""empty(GENERATORS self) -> bool"""
12693 return _pcbnew.GENERATORS_empty(self)
12694
12695 def size(self):
12696 r"""size(GENERATORS self) -> std::deque< PCB_GENERATOR * >::size_type"""
12697 return _pcbnew.GENERATORS_size(self)
12698
12699 def swap(self, v):
12700 r"""swap(GENERATORS self, GENERATORS v)"""
12701 return _pcbnew.GENERATORS_swap(self, v)
12702
12703 def begin(self):
12704 r"""begin(GENERATORS self) -> std::deque< PCB_GENERATOR * >::iterator"""
12705 return _pcbnew.GENERATORS_begin(self)
12706
12707 def end(self):
12708 r"""end(GENERATORS self) -> std::deque< PCB_GENERATOR * >::iterator"""
12709 return _pcbnew.GENERATORS_end(self)
12710
12711 def rbegin(self):
12712 r"""rbegin(GENERATORS self) -> std::deque< PCB_GENERATOR * >::reverse_iterator"""
12713 return _pcbnew.GENERATORS_rbegin(self)
12714
12715 def rend(self):
12716 r"""rend(GENERATORS self) -> std::deque< PCB_GENERATOR * >::reverse_iterator"""
12717 return _pcbnew.GENERATORS_rend(self)
12718
12719 def clear(self):
12720 r"""clear(GENERATORS self)"""
12721 return _pcbnew.GENERATORS_clear(self)
12722
12723 def get_allocator(self):
12724 r"""get_allocator(GENERATORS self) -> std::deque< PCB_GENERATOR * >::allocator_type"""
12725 return _pcbnew.GENERATORS_get_allocator(self)
12726
12727 def pop_back(self):
12728 r"""pop_back(GENERATORS self)"""
12729 return _pcbnew.GENERATORS_pop_back(self)
12730
12731 def erase(self, *args):
12732 r"""
12733 erase(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos) -> std::deque< PCB_GENERATOR * >::iterator
12734 erase(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator first, std::deque< PCB_GENERATOR * >::iterator last) -> std::deque< PCB_GENERATOR * >::iterator
12735 """
12736 return _pcbnew.GENERATORS_erase(self, *args)
12737
12738 def __init__(self, *args):
12739 r"""
12740 __init__(GENERATORS self) -> GENERATORS
12741 __init__(GENERATORS self, GENERATORS other) -> GENERATORS
12742 __init__(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type size) -> GENERATORS
12743 __init__(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type size, std::deque< PCB_GENERATOR * >::value_type value) -> GENERATORS
12744 """
12745 _pcbnew.GENERATORS_swiginit(self, _pcbnew.new_GENERATORS(*args))
12746
12747 def push_back(self, x):
12748 r"""push_back(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12749 return _pcbnew.GENERATORS_push_back(self, x)
12750
12751 def front(self):
12752 r"""front(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12753 return _pcbnew.GENERATORS_front(self)
12754
12755 def back(self):
12756 r"""back(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12757 return _pcbnew.GENERATORS_back(self)
12758
12759 def assign(self, n, x):
12760 r"""assign(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type n, std::deque< PCB_GENERATOR * >::value_type x)"""
12761 return _pcbnew.GENERATORS_assign(self, n, x)
12762
12763 def resize(self, *args):
12764 r"""
12765 resize(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type new_size)
12766 resize(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type new_size, std::deque< PCB_GENERATOR * >::value_type x)
12767 """
12768 return _pcbnew.GENERATORS_resize(self, *args)
12769
12770 def insert(self, *args):
12771 r"""
12772 insert(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos, std::deque< PCB_GENERATOR * >::value_type x) -> std::deque< PCB_GENERATOR * >::iterator
12773 insert(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos, std::deque< PCB_GENERATOR * >::size_type n, std::deque< PCB_GENERATOR * >::value_type x)
12774 """
12775 return _pcbnew.GENERATORS_insert(self, *args)
12776
12777 def pop_front(self):
12778 r"""pop_front(GENERATORS self)"""
12779 return _pcbnew.GENERATORS_pop_front(self)
12780
12781 def push_front(self, x):
12782 r"""push_front(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12783 return _pcbnew.GENERATORS_push_front(self, x)
12784 __swig_destroy__ = _pcbnew.delete_GENERATORS
12785
12786# Register GENERATORS in _pcbnew:
12787_pcbnew.GENERATORS_swigregister(GENERATORS)
12789 r"""Proxy of C++ std::deque< BOARD_ITEM * > class."""
12790
12791 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12792 __repr__ = _swig_repr
12793
12794 def iterator(self):
12795 r"""iterator(DRAWINGS self) -> SwigPyIterator"""
12796 return _pcbnew.DRAWINGS_iterator(self)
12797 def __iter__(self):
12798 return self.iterator()
12799
12800 def __nonzero__(self):
12801 r"""__nonzero__(DRAWINGS self) -> bool"""
12802 return _pcbnew.DRAWINGS___nonzero__(self)
12803
12804 def __bool__(self):
12805 r"""__bool__(DRAWINGS self) -> bool"""
12806 return _pcbnew.DRAWINGS___bool__(self)
12807
12808 def __len__(self):
12809 r"""__len__(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
12810 return _pcbnew.DRAWINGS___len__(self)
12811
12812 def __getslice__(self, i, j):
12813 r"""__getslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j) -> DRAWINGS"""
12814 return _pcbnew.DRAWINGS___getslice__(self, i, j)
12815
12816 def __setslice__(self, *args):
12817 r"""
12818 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)
12819 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j, DRAWINGS v)
12820 """
12821 return _pcbnew.DRAWINGS___setslice__(self, *args)
12822
12823 def __delslice__(self, i, j):
12824 r"""__delslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)"""
12825 return _pcbnew.DRAWINGS___delslice__(self, i, j)
12826
12827 def __delitem__(self, *args):
12828 r"""
12829 __delitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i)
12830 __delitem__(DRAWINGS self, SWIGPY_SLICEOBJECT * slice)
12831 """
12832 return _pcbnew.DRAWINGS___delitem__(self, *args)
12833
12834 def __getitem__(self, *args):
12835 r"""
12836 __getitem__(DRAWINGS self, SWIGPY_SLICEOBJECT * slice) -> DRAWINGS
12837 __getitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i) -> BOARD_ITEM
12838 """
12839 return _pcbnew.DRAWINGS___getitem__(self, *args)
12840
12841 def __setitem__(self, *args):
12842 r"""
12843 __setitem__(DRAWINGS self, SWIGPY_SLICEOBJECT * slice, DRAWINGS v)
12844 __setitem__(DRAWINGS self, SWIGPY_SLICEOBJECT * slice)
12845 __setitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, BOARD_ITEM x)
12846 """
12847 return _pcbnew.DRAWINGS___setitem__(self, *args)
12848
12849 def pop(self):
12850 r"""pop(DRAWINGS self) -> BOARD_ITEM"""
12851 return _pcbnew.DRAWINGS_pop(self)
12852
12853 def append(self, x):
12854 r"""append(DRAWINGS self, BOARD_ITEM x)"""
12855 return _pcbnew.DRAWINGS_append(self, x)
12856
12857 def empty(self):
12858 r"""empty(DRAWINGS self) -> bool"""
12859 return _pcbnew.DRAWINGS_empty(self)
12860
12861 def size(self):
12862 r"""size(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
12863 return _pcbnew.DRAWINGS_size(self)
12864
12865 def swap(self, v):
12866 r"""swap(DRAWINGS self, DRAWINGS v)"""
12867 return _pcbnew.DRAWINGS_swap(self, v)
12868
12869 def begin(self):
12870 r"""begin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
12871 return _pcbnew.DRAWINGS_begin(self)
12872
12873 def end(self):
12874 r"""end(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
12875 return _pcbnew.DRAWINGS_end(self)
12876
12877 def rbegin(self):
12878 r"""rbegin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
12879 return _pcbnew.DRAWINGS_rbegin(self)
12880
12881 def rend(self):
12882 r"""rend(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
12883 return _pcbnew.DRAWINGS_rend(self)
12884
12885 def clear(self):
12886 r"""clear(DRAWINGS self)"""
12887 return _pcbnew.DRAWINGS_clear(self)
12888
12889 def get_allocator(self):
12890 r"""get_allocator(DRAWINGS self) -> std::deque< BOARD_ITEM * >::allocator_type"""
12891 return _pcbnew.DRAWINGS_get_allocator(self)
12892
12893 def pop_back(self):
12894 r"""pop_back(DRAWINGS self)"""
12895 return _pcbnew.DRAWINGS_pop_back(self)
12896
12897 def erase(self, *args):
12898 r"""
12899 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos) -> std::deque< BOARD_ITEM * >::iterator
12900 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator first, std::deque< BOARD_ITEM * >::iterator last) -> std::deque< BOARD_ITEM * >::iterator
12901 """
12902 return _pcbnew.DRAWINGS_erase(self, *args)
12903
12904 def __init__(self, *args):
12905 r"""
12906 __init__(DRAWINGS self) -> DRAWINGS
12907 __init__(DRAWINGS self, DRAWINGS other) -> DRAWINGS
12908 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size) -> DRAWINGS
12909 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size, BOARD_ITEM value) -> DRAWINGS
12910 """
12911 _pcbnew.DRAWINGS_swiginit(self, _pcbnew.new_DRAWINGS(*args))
12912
12913 def push_back(self, x):
12914 r"""push_back(DRAWINGS self, BOARD_ITEM x)"""
12915 return _pcbnew.DRAWINGS_push_back(self, x)
12916
12917 def front(self):
12918 r"""front(DRAWINGS self) -> BOARD_ITEM"""
12919 return _pcbnew.DRAWINGS_front(self)
12920
12921 def back(self):
12922 r"""back(DRAWINGS self) -> BOARD_ITEM"""
12923 return _pcbnew.DRAWINGS_back(self)
12924
12925 def assign(self, n, x):
12926 r"""assign(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)"""
12927 return _pcbnew.DRAWINGS_assign(self, n, x)
12928
12929 def resize(self, *args):
12930 r"""
12931 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size)
12932 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size, BOARD_ITEM x)
12933 """
12934 return _pcbnew.DRAWINGS_resize(self, *args)
12935
12936 def insert(self, *args):
12937 r"""
12938 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, BOARD_ITEM x) -> std::deque< BOARD_ITEM * >::iterator
12939 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)
12940 """
12941 return _pcbnew.DRAWINGS_insert(self, *args)
12942
12943 def pop_front(self):
12944 r"""pop_front(DRAWINGS self)"""
12945 return _pcbnew.DRAWINGS_pop_front(self)
12946
12947 def push_front(self, x):
12948 r"""push_front(DRAWINGS self, BOARD_ITEM x)"""
12949 return _pcbnew.DRAWINGS_push_front(self, x)
12950
12951 def __iter__(self):
12952 it = self.iterator()
12953 try:
12954 while True:
12955 item = it.next() # throws StopIteration when iterator reached the end.
12956 yield item.Cast()
12957 except StopIteration:
12958 return
12959
12960 __swig_destroy__ = _pcbnew.delete_DRAWINGS
12961
12962# Register DRAWINGS in _pcbnew:
12963_pcbnew.DRAWINGS_swigregister(DRAWINGS)
12965 r"""Proxy of C++ std::deque< PAD * > class."""
12966
12967 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12968 __repr__ = _swig_repr
12969
12970 def iterator(self):
12971 r"""iterator(PADS self) -> SwigPyIterator"""
12972 return _pcbnew.PADS_iterator(self)
12973 def __iter__(self):
12974 return self.iterator()
12975
12976 def __nonzero__(self):
12977 r"""__nonzero__(PADS self) -> bool"""
12978 return _pcbnew.PADS___nonzero__(self)
12979
12980 def __bool__(self):
12981 r"""__bool__(PADS self) -> bool"""
12982 return _pcbnew.PADS___bool__(self)
12983
12984 def __len__(self):
12985 r"""__len__(PADS self) -> std::deque< PAD * >::size_type"""
12986 return _pcbnew.PADS___len__(self)
12987
12988 def __getslice__(self, i, j):
12989 r"""__getslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j) -> PADS"""
12990 return _pcbnew.PADS___getslice__(self, i, j)
12991
12992 def __setslice__(self, *args):
12993 r"""
12994 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)
12995 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j, PADS v)
12996 """
12997 return _pcbnew.PADS___setslice__(self, *args)
12998
12999 def __delslice__(self, i, j):
13000 r"""__delslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)"""
13001 return _pcbnew.PADS___delslice__(self, i, j)
13002
13003 def __delitem__(self, *args):
13004 r"""
13005 __delitem__(PADS self, std::deque< PAD * >::difference_type i)
13006 __delitem__(PADS self, SWIGPY_SLICEOBJECT * slice)
13007 """
13008 return _pcbnew.PADS___delitem__(self, *args)
13009
13010 def __getitem__(self, *args):
13011 r"""
13012 __getitem__(PADS self, SWIGPY_SLICEOBJECT * slice) -> PADS
13013 __getitem__(PADS self, std::deque< PAD * >::difference_type i) -> PAD
13014 """
13015 return _pcbnew.PADS___getitem__(self, *args)
13016
13017 def __setitem__(self, *args):
13018 r"""
13019 __setitem__(PADS self, SWIGPY_SLICEOBJECT * slice, PADS v)
13020 __setitem__(PADS self, SWIGPY_SLICEOBJECT * slice)
13021 __setitem__(PADS self, std::deque< PAD * >::difference_type i, PAD x)
13022 """
13023 return _pcbnew.PADS___setitem__(self, *args)
13024
13025 def pop(self):
13026 r"""pop(PADS self) -> PAD"""
13027 return _pcbnew.PADS_pop(self)
13028
13029 def append(self, x):
13030 r"""append(PADS self, PAD x)"""
13031 return _pcbnew.PADS_append(self, x)
13032
13033 def empty(self):
13034 r"""empty(PADS self) -> bool"""
13035 return _pcbnew.PADS_empty(self)
13036
13037 def size(self):
13038 r"""size(PADS self) -> std::deque< PAD * >::size_type"""
13039 return _pcbnew.PADS_size(self)
13040
13041 def swap(self, v):
13042 r"""swap(PADS self, PADS v)"""
13043 return _pcbnew.PADS_swap(self, v)
13044
13045 def begin(self):
13046 r"""begin(PADS self) -> std::deque< PAD * >::iterator"""
13047 return _pcbnew.PADS_begin(self)
13048
13049 def end(self):
13050 r"""end(PADS self) -> std::deque< PAD * >::iterator"""
13051 return _pcbnew.PADS_end(self)
13052
13053 def rbegin(self):
13054 r"""rbegin(PADS self) -> std::deque< PAD * >::reverse_iterator"""
13055 return _pcbnew.PADS_rbegin(self)
13056
13057 def rend(self):
13058 r"""rend(PADS self) -> std::deque< PAD * >::reverse_iterator"""
13059 return _pcbnew.PADS_rend(self)
13060
13061 def clear(self):
13062 r"""clear(PADS self)"""
13063 return _pcbnew.PADS_clear(self)
13064
13065 def get_allocator(self):
13066 r"""get_allocator(PADS self) -> std::deque< PAD * >::allocator_type"""
13067 return _pcbnew.PADS_get_allocator(self)
13068
13069 def pop_back(self):
13070 r"""pop_back(PADS self)"""
13071 return _pcbnew.PADS_pop_back(self)
13072
13073 def erase(self, *args):
13074 r"""
13075 erase(PADS self, std::deque< PAD * >::iterator pos) -> std::deque< PAD * >::iterator
13076 erase(PADS self, std::deque< PAD * >::iterator first, std::deque< PAD * >::iterator last) -> std::deque< PAD * >::iterator
13077 """
13078 return _pcbnew.PADS_erase(self, *args)
13079
13080 def __init__(self, *args):
13081 r"""
13082 __init__(PADS self) -> PADS
13083 __init__(PADS self, PADS other) -> PADS
13084 __init__(PADS self, std::deque< PAD * >::size_type size) -> PADS
13085 __init__(PADS self, std::deque< PAD * >::size_type size, PAD value) -> PADS
13086 """
13087 _pcbnew.PADS_swiginit(self, _pcbnew.new_PADS(*args))
13088
13089 def push_back(self, x):
13090 r"""push_back(PADS self, PAD x)"""
13091 return _pcbnew.PADS_push_back(self, x)
13092
13093 def front(self):
13094 r"""front(PADS self) -> PAD"""
13095 return _pcbnew.PADS_front(self)
13096
13097 def back(self):
13098 r"""back(PADS self) -> PAD"""
13099 return _pcbnew.PADS_back(self)
13100
13101 def assign(self, n, x):
13102 r"""assign(PADS self, std::deque< PAD * >::size_type n, PAD x)"""
13103 return _pcbnew.PADS_assign(self, n, x)
13104
13105 def resize(self, *args):
13106 r"""
13107 resize(PADS self, std::deque< PAD * >::size_type new_size)
13108 resize(PADS self, std::deque< PAD * >::size_type new_size, PAD x)
13109 """
13110 return _pcbnew.PADS_resize(self, *args)
13111
13112 def insert(self, *args):
13113 r"""
13114 insert(PADS self, std::deque< PAD * >::iterator pos, PAD x) -> std::deque< PAD * >::iterator
13115 insert(PADS self, std::deque< PAD * >::iterator pos, std::deque< PAD * >::size_type n, PAD x)
13116 """
13117 return _pcbnew.PADS_insert(self, *args)
13118
13119 def pop_front(self):
13120 r"""pop_front(PADS self)"""
13121 return _pcbnew.PADS_pop_front(self)
13122
13123 def push_front(self, x):
13124 r"""push_front(PADS self, PAD x)"""
13125 return _pcbnew.PADS_push_front(self, x)
13126 __swig_destroy__ = _pcbnew.delete_PADS
13127
13128# Register PADS in _pcbnew:
13129_pcbnew.PADS_swigregister(PADS)
13131 r"""Proxy of C++ std::deque< PCB_FIELD * > class."""
13132
13133 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13134 __repr__ = _swig_repr
13135
13136 def iterator(self):
13137 r"""iterator(PCB_FIELDS self) -> SwigPyIterator"""
13138 return _pcbnew.PCB_FIELDS_iterator(self)
13139 def __iter__(self):
13140 return self.iterator()
13141
13142 def __nonzero__(self):
13143 r"""__nonzero__(PCB_FIELDS self) -> bool"""
13144 return _pcbnew.PCB_FIELDS___nonzero__(self)
13145
13146 def __bool__(self):
13147 r"""__bool__(PCB_FIELDS self) -> bool"""
13148 return _pcbnew.PCB_FIELDS___bool__(self)
13149
13150 def __len__(self):
13151 r"""__len__(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::size_type"""
13152 return _pcbnew.PCB_FIELDS___len__(self)
13153
13154 def __getslice__(self, i, j):
13155 r"""__getslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j) -> PCB_FIELDS"""
13156 return _pcbnew.PCB_FIELDS___getslice__(self, i, j)
13157
13158 def __setslice__(self, *args):
13159 r"""
13160 __setslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j)
13161 __setslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j, PCB_FIELDS v)
13162 """
13163 return _pcbnew.PCB_FIELDS___setslice__(self, *args)
13164
13165 def __delslice__(self, i, j):
13166 r"""__delslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j)"""
13167 return _pcbnew.PCB_FIELDS___delslice__(self, i, j)
13168
13169 def __delitem__(self, *args):
13170 r"""
13171 __delitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i)
13172 __delitem__(PCB_FIELDS self, SWIGPY_SLICEOBJECT * slice)
13173 """
13174 return _pcbnew.PCB_FIELDS___delitem__(self, *args)
13175
13176 def __getitem__(self, *args):
13177 r"""
13178 __getitem__(PCB_FIELDS self, SWIGPY_SLICEOBJECT * slice) -> PCB_FIELDS
13179 __getitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i) -> PCB_FIELD
13180 """
13181 return _pcbnew.PCB_FIELDS___getitem__(self, *args)
13182
13183 def __setitem__(self, *args):
13184 r"""
13185 __setitem__(PCB_FIELDS self, SWIGPY_SLICEOBJECT * slice, PCB_FIELDS v)
13186 __setitem__(PCB_FIELDS self, SWIGPY_SLICEOBJECT * slice)
13187 __setitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, PCB_FIELD x)
13188 """
13189 return _pcbnew.PCB_FIELDS___setitem__(self, *args)
13190
13191 def pop(self):
13192 r"""pop(PCB_FIELDS self) -> PCB_FIELD"""
13193 return _pcbnew.PCB_FIELDS_pop(self)
13194
13195 def append(self, x):
13196 r"""append(PCB_FIELDS self, PCB_FIELD x)"""
13197 return _pcbnew.PCB_FIELDS_append(self, x)
13198
13199 def empty(self):
13200 r"""empty(PCB_FIELDS self) -> bool"""
13201 return _pcbnew.PCB_FIELDS_empty(self)
13202
13203 def size(self):
13204 r"""size(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::size_type"""
13205 return _pcbnew.PCB_FIELDS_size(self)
13206
13207 def swap(self, v):
13208 r"""swap(PCB_FIELDS self, PCB_FIELDS v)"""
13209 return _pcbnew.PCB_FIELDS_swap(self, v)
13210
13211 def begin(self):
13212 r"""begin(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::iterator"""
13213 return _pcbnew.PCB_FIELDS_begin(self)
13214
13215 def end(self):
13216 r"""end(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::iterator"""
13217 return _pcbnew.PCB_FIELDS_end(self)
13218
13219 def rbegin(self):
13220 r"""rbegin(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::reverse_iterator"""
13221 return _pcbnew.PCB_FIELDS_rbegin(self)
13222
13223 def rend(self):
13224 r"""rend(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::reverse_iterator"""
13225 return _pcbnew.PCB_FIELDS_rend(self)
13226
13227 def clear(self):
13228 r"""clear(PCB_FIELDS self)"""
13229 return _pcbnew.PCB_FIELDS_clear(self)
13230
13231 def get_allocator(self):
13232 r"""get_allocator(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::allocator_type"""
13233 return _pcbnew.PCB_FIELDS_get_allocator(self)
13234
13235 def pop_back(self):
13236 r"""pop_back(PCB_FIELDS self)"""
13237 return _pcbnew.PCB_FIELDS_pop_back(self)
13238
13239 def erase(self, *args):
13240 r"""
13241 erase(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos) -> std::deque< PCB_FIELD * >::iterator
13242 erase(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator first, std::deque< PCB_FIELD * >::iterator last) -> std::deque< PCB_FIELD * >::iterator
13243 """
13244 return _pcbnew.PCB_FIELDS_erase(self, *args)
13245
13246 def __init__(self, *args):
13247 r"""
13248 __init__(PCB_FIELDS self) -> PCB_FIELDS
13249 __init__(PCB_FIELDS self, PCB_FIELDS other) -> PCB_FIELDS
13250 __init__(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type size) -> PCB_FIELDS
13251 __init__(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type size, PCB_FIELD value) -> PCB_FIELDS
13252 """
13253 _pcbnew.PCB_FIELDS_swiginit(self, _pcbnew.new_PCB_FIELDS(*args))
13254
13255 def push_back(self, x):
13256 r"""push_back(PCB_FIELDS self, PCB_FIELD x)"""
13257 return _pcbnew.PCB_FIELDS_push_back(self, x)
13258
13259 def front(self):
13260 r"""front(PCB_FIELDS self) -> PCB_FIELD"""
13261 return _pcbnew.PCB_FIELDS_front(self)
13262
13263 def back(self):
13264 r"""back(PCB_FIELDS self) -> PCB_FIELD"""
13265 return _pcbnew.PCB_FIELDS_back(self)
13266
13267 def assign(self, n, x):
13268 r"""assign(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type n, PCB_FIELD x)"""
13269 return _pcbnew.PCB_FIELDS_assign(self, n, x)
13270
13271 def resize(self, *args):
13272 r"""
13273 resize(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type new_size)
13274 resize(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type new_size, PCB_FIELD x)
13275 """
13276 return _pcbnew.PCB_FIELDS_resize(self, *args)
13277
13278 def insert(self, *args):
13279 r"""
13280 insert(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos, PCB_FIELD x) -> std::deque< PCB_FIELD * >::iterator
13281 insert(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos, std::deque< PCB_FIELD * >::size_type n, PCB_FIELD x)
13282 """
13283 return _pcbnew.PCB_FIELDS_insert(self, *args)
13284
13285 def pop_front(self):
13286 r"""pop_front(PCB_FIELDS self)"""
13287 return _pcbnew.PCB_FIELDS_pop_front(self)
13288
13289 def push_front(self, x):
13290 r"""push_front(PCB_FIELDS self, PCB_FIELD x)"""
13291 return _pcbnew.PCB_FIELDS_push_front(self, x)
13292 __swig_destroy__ = _pcbnew.delete_PCB_FIELDS
13293
13294# Register PCB_FIELDS in _pcbnew:
13295_pcbnew.PCB_FIELDS_swigregister(PCB_FIELDS)
13297 r"""Proxy of C++ std::vector< PCB_FIELD * > class."""
13298
13299 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13300 __repr__ = _swig_repr
13301
13302 def iterator(self):
13303 r"""iterator(PCB_FIELD_VEC self) -> SwigPyIterator"""
13304 return _pcbnew.PCB_FIELD_VEC_iterator(self)
13305 def __iter__(self):
13306 return self.iterator()
13307
13308 def __nonzero__(self):
13309 r"""__nonzero__(PCB_FIELD_VEC self) -> bool"""
13310 return _pcbnew.PCB_FIELD_VEC___nonzero__(self)
13311
13312 def __bool__(self):
13313 r"""__bool__(PCB_FIELD_VEC self) -> bool"""
13314 return _pcbnew.PCB_FIELD_VEC___bool__(self)
13315
13316 def __len__(self):
13317 r"""__len__(PCB_FIELD_VEC self) -> std::vector< PCB_FIELD * >::size_type"""
13318 return _pcbnew.PCB_FIELD_VEC___len__(self)
13319
13320 def __getslice__(self, i, j):
13321 r"""__getslice__(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::difference_type i, std::vector< PCB_FIELD * >::difference_type j) -> PCB_FIELD_VEC"""
13322 return _pcbnew.PCB_FIELD_VEC___getslice__(self, i, j)
13323
13324 def __setslice__(self, *args):
13325 r"""
13326 __setslice__(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::difference_type i, std::vector< PCB_FIELD * >::difference_type j)
13327 __setslice__(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::difference_type i, std::vector< PCB_FIELD * >::difference_type j, PCB_FIELD_VEC v)
13328 """
13329 return _pcbnew.PCB_FIELD_VEC___setslice__(self, *args)
13330
13331 def __delslice__(self, i, j):
13332 r"""__delslice__(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::difference_type i, std::vector< PCB_FIELD * >::difference_type j)"""
13333 return _pcbnew.PCB_FIELD_VEC___delslice__(self, i, j)
13334
13335 def __delitem__(self, *args):
13336 r"""
13337 __delitem__(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::difference_type i)
13338 __delitem__(PCB_FIELD_VEC self, SWIGPY_SLICEOBJECT * slice)
13339 """
13340 return _pcbnew.PCB_FIELD_VEC___delitem__(self, *args)
13341
13342 def __getitem__(self, *args):
13343 r"""
13344 __getitem__(PCB_FIELD_VEC self, SWIGPY_SLICEOBJECT * slice) -> PCB_FIELD_VEC
13345 __getitem__(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::difference_type i) -> PCB_FIELD
13346 """
13347 return _pcbnew.PCB_FIELD_VEC___getitem__(self, *args)
13348
13349 def __setitem__(self, *args):
13350 r"""
13351 __setitem__(PCB_FIELD_VEC self, SWIGPY_SLICEOBJECT * slice, PCB_FIELD_VEC v)
13352 __setitem__(PCB_FIELD_VEC self, SWIGPY_SLICEOBJECT * slice)
13353 __setitem__(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::difference_type i, PCB_FIELD x)
13354 """
13355 return _pcbnew.PCB_FIELD_VEC___setitem__(self, *args)
13356
13357 def pop(self):
13358 r"""pop(PCB_FIELD_VEC self) -> PCB_FIELD"""
13359 return _pcbnew.PCB_FIELD_VEC_pop(self)
13360
13361 def append(self, x):
13362 r"""append(PCB_FIELD_VEC self, PCB_FIELD x)"""
13363 return _pcbnew.PCB_FIELD_VEC_append(self, x)
13364
13365 def empty(self):
13366 r"""empty(PCB_FIELD_VEC self) -> bool"""
13367 return _pcbnew.PCB_FIELD_VEC_empty(self)
13368
13369 def size(self):
13370 r"""size(PCB_FIELD_VEC self) -> std::vector< PCB_FIELD * >::size_type"""
13371 return _pcbnew.PCB_FIELD_VEC_size(self)
13372
13373 def swap(self, v):
13374 r"""swap(PCB_FIELD_VEC self, PCB_FIELD_VEC v)"""
13375 return _pcbnew.PCB_FIELD_VEC_swap(self, v)
13376
13377 def begin(self):
13378 r"""begin(PCB_FIELD_VEC self) -> std::vector< PCB_FIELD * >::iterator"""
13379 return _pcbnew.PCB_FIELD_VEC_begin(self)
13380
13381 def end(self):
13382 r"""end(PCB_FIELD_VEC self) -> std::vector< PCB_FIELD * >::iterator"""
13383 return _pcbnew.PCB_FIELD_VEC_end(self)
13384
13385 def rbegin(self):
13386 r"""rbegin(PCB_FIELD_VEC self) -> std::vector< PCB_FIELD * >::reverse_iterator"""
13387 return _pcbnew.PCB_FIELD_VEC_rbegin(self)
13388
13389 def rend(self):
13390 r"""rend(PCB_FIELD_VEC self) -> std::vector< PCB_FIELD * >::reverse_iterator"""
13391 return _pcbnew.PCB_FIELD_VEC_rend(self)
13392
13393 def clear(self):
13394 r"""clear(PCB_FIELD_VEC self)"""
13395 return _pcbnew.PCB_FIELD_VEC_clear(self)
13396
13397 def get_allocator(self):
13398 r"""get_allocator(PCB_FIELD_VEC self) -> std::vector< PCB_FIELD * >::allocator_type"""
13399 return _pcbnew.PCB_FIELD_VEC_get_allocator(self)
13400
13401 def pop_back(self):
13402 r"""pop_back(PCB_FIELD_VEC self)"""
13403 return _pcbnew.PCB_FIELD_VEC_pop_back(self)
13404
13405 def erase(self, *args):
13406 r"""
13407 erase(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::iterator pos) -> std::vector< PCB_FIELD * >::iterator
13408 erase(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::iterator first, std::vector< PCB_FIELD * >::iterator last) -> std::vector< PCB_FIELD * >::iterator
13409 """
13410 return _pcbnew.PCB_FIELD_VEC_erase(self, *args)
13411
13412 def __init__(self, *args):
13413 r"""
13414 __init__(PCB_FIELD_VEC self) -> PCB_FIELD_VEC
13415 __init__(PCB_FIELD_VEC self, PCB_FIELD_VEC other) -> PCB_FIELD_VEC
13416 __init__(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::size_type size) -> PCB_FIELD_VEC
13417 __init__(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::size_type size, PCB_FIELD value) -> PCB_FIELD_VEC
13418 """
13419 _pcbnew.PCB_FIELD_VEC_swiginit(self, _pcbnew.new_PCB_FIELD_VEC(*args))
13420
13421 def push_back(self, x):
13422 r"""push_back(PCB_FIELD_VEC self, PCB_FIELD x)"""
13423 return _pcbnew.PCB_FIELD_VEC_push_back(self, x)
13424
13425 def front(self):
13426 r"""front(PCB_FIELD_VEC self) -> PCB_FIELD"""
13427 return _pcbnew.PCB_FIELD_VEC_front(self)
13428
13429 def back(self):
13430 r"""back(PCB_FIELD_VEC self) -> PCB_FIELD"""
13431 return _pcbnew.PCB_FIELD_VEC_back(self)
13432
13433 def assign(self, n, x):
13434 r"""assign(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::size_type n, PCB_FIELD x)"""
13435 return _pcbnew.PCB_FIELD_VEC_assign(self, n, x)
13436
13437 def resize(self, *args):
13438 r"""
13439 resize(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::size_type new_size)
13440 resize(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::size_type new_size, PCB_FIELD x)
13441 """
13442 return _pcbnew.PCB_FIELD_VEC_resize(self, *args)
13443
13444 def insert(self, *args):
13445 r"""
13446 insert(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::iterator pos, PCB_FIELD x) -> std::vector< PCB_FIELD * >::iterator
13447 insert(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::iterator pos, std::vector< PCB_FIELD * >::size_type n, PCB_FIELD x)
13448 """
13449 return _pcbnew.PCB_FIELD_VEC_insert(self, *args)
13450
13451 def reserve(self, n):
13452 r"""reserve(PCB_FIELD_VEC self, std::vector< PCB_FIELD * >::size_type n)"""
13453 return _pcbnew.PCB_FIELD_VEC_reserve(self, n)
13454
13455 def capacity(self):
13456 r"""capacity(PCB_FIELD_VEC self) -> std::vector< PCB_FIELD * >::size_type"""
13457 return _pcbnew.PCB_FIELD_VEC_capacity(self)
13458 __swig_destroy__ = _pcbnew.delete_PCB_FIELD_VEC
13459
13460# Register PCB_FIELD_VEC in _pcbnew:
13461_pcbnew.PCB_FIELD_VEC_swigregister(PCB_FIELD_VEC)
13462PAD_SHAPE_CIRCLE = _pcbnew.PAD_SHAPE_CIRCLE
13463
13464PAD_SHAPE_RECTANGLE = _pcbnew.PAD_SHAPE_RECTANGLE
13465
13466PAD_SHAPE_OVAL = _pcbnew.PAD_SHAPE_OVAL
13467
13468PAD_SHAPE_TRAPEZOID = _pcbnew.PAD_SHAPE_TRAPEZOID
13469
13470PAD_SHAPE_ROUNDRECT = _pcbnew.PAD_SHAPE_ROUNDRECT
13471
13472PAD_SHAPE_CHAMFERED_RECT = _pcbnew.PAD_SHAPE_CHAMFERED_RECT
13473
13474PAD_SHAPE_CUSTOM = _pcbnew.PAD_SHAPE_CUSTOM
13475
13476PAD_DRILL_SHAPE_UNDEFINED = _pcbnew.PAD_DRILL_SHAPE_UNDEFINED
13477
13478PAD_DRILL_SHAPE_CIRCLE = _pcbnew.PAD_DRILL_SHAPE_CIRCLE
13479
13480PAD_DRILL_SHAPE_OBLONG = _pcbnew.PAD_DRILL_SHAPE_OBLONG
13481
13482PAD_ATTRIB_PTH = _pcbnew.PAD_ATTRIB_PTH
13483
13484PAD_ATTRIB_SMD = _pcbnew.PAD_ATTRIB_SMD
13485
13486PAD_ATTRIB_CONN = _pcbnew.PAD_ATTRIB_CONN
13487
13488PAD_ATTRIB_NPTH = _pcbnew.PAD_ATTRIB_NPTH
13489
13490PAD_PROP_NONE = _pcbnew.PAD_PROP_NONE
13491
13492PAD_PROP_BGA = _pcbnew.PAD_PROP_BGA
13493
13494PAD_PROP_FIDUCIAL_GLBL = _pcbnew.PAD_PROP_FIDUCIAL_GLBL
13495
13496PAD_PROP_FIDUCIAL_LOCAL = _pcbnew.PAD_PROP_FIDUCIAL_LOCAL
13497
13498PAD_PROP_TESTPOINT = _pcbnew.PAD_PROP_TESTPOINT
13499
13500PAD_PROP_HEATSINK = _pcbnew.PAD_PROP_HEATSINK
13501
13502PAD_PROP_CASTELLATED = _pcbnew.PAD_PROP_CASTELLATED
13503
13504PAD_PROP_MECHANICAL = _pcbnew.PAD_PROP_MECHANICAL
13505
13507 r"""Proxy of C++ PADSTACK class."""
13508
13509 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13510 __repr__ = _swig_repr
13511 TYPE_NORMAL = _pcbnew.PADSTACK_TYPE_NORMAL
13512
13513 TYPE_VIA = _pcbnew.PADSTACK_TYPE_VIA
13514
13515 TYPE_MOUNTING = _pcbnew.PADSTACK_TYPE_MOUNTING
13516
13517 MODE_NORMAL = _pcbnew.PADSTACK_MODE_NORMAL
13518
13519 MODE_FRONT_INNER_BACK = _pcbnew.PADSTACK_MODE_FRONT_INNER_BACK
13520
13521 MODE_CUSTOM = _pcbnew.PADSTACK_MODE_CUSTOM
13522
13523 ALL_LAYERS = _pcbnew.PADSTACK_ALL_LAYERS
13524
13525 INNER_LAYERS = _pcbnew.PADSTACK_INNER_LAYERS
13526
13527 UNCONNECTED_LAYER_MODE_KEEP_ALL = _pcbnew.PADSTACK_UNCONNECTED_LAYER_MODE_KEEP_ALL
13528
13529 UNCONNECTED_LAYER_MODE_REMOVE_ALL = _pcbnew.PADSTACK_UNCONNECTED_LAYER_MODE_REMOVE_ALL
13530
13531 UNCONNECTED_LAYER_MODE_REMOVE_EXCEPT_START_AND_END = _pcbnew.PADSTACK_UNCONNECTED_LAYER_MODE_REMOVE_EXCEPT_START_AND_END
13532
13533 CUSTOM_SHAPE_ZONE_MODE_OUTLINE = _pcbnew.PADSTACK_CUSTOM_SHAPE_ZONE_MODE_OUTLINE
13534
13535 CUSTOM_SHAPE_ZONE_MODE_CONVEXHULL = _pcbnew.PADSTACK_CUSTOM_SHAPE_ZONE_MODE_CONVEXHULL
13536
13537 __swig_destroy__ = _pcbnew.delete_PADSTACK
13538
13539 def __init__(self, *args):
13540 r"""
13541 __init__(PADSTACK self, BOARD_ITEM aParent) -> PADSTACK
13542 __init__(PADSTACK self, PADSTACK aOther) -> PADSTACK
13543 """
13544 _pcbnew.PADSTACK_swiginit(self, _pcbnew.new_PADSTACK(*args))
13545
13546 def __eq__(self, aOther):
13547 r"""__eq__(PADSTACK self, PADSTACK aOther) -> bool"""
13548 return _pcbnew.PADSTACK___eq__(self, aOther)
13549
13550 def __ne__(self, aOther):
13551 r"""__ne__(PADSTACK self, PADSTACK aOther) -> bool"""
13552 return _pcbnew.PADSTACK___ne__(self, aOther)
13553
13554 def Serialize(self, aContainer):
13555 r"""Serialize(PADSTACK self, google::protobuf::Any & aContainer)"""
13556 return _pcbnew.PADSTACK_Serialize(self, aContainer)
13557
13558 def Deserialize(self, aContainer):
13559 r"""Deserialize(PADSTACK self, google::protobuf::Any const & aContainer) -> bool"""
13560 return _pcbnew.PADSTACK_Deserialize(self, aContainer)
13561
13562 @staticmethod
13563 def Compare(aPadstackRef, aPadstackCmp):
13564 r"""Compare(PADSTACK aPadstackRef, PADSTACK aPadstackCmp) -> int"""
13565 return _pcbnew.PADSTACK_Compare(aPadstackRef, aPadstackCmp)
13566
13567 def Similarity(self, aOther):
13568 r"""Similarity(PADSTACK self, PADSTACK aOther) -> double"""
13569 return _pcbnew.PADSTACK_Similarity(self, aOther)
13570
13571 def LayerSet(self, *args):
13572 r"""
13573 LayerSet(PADSTACK self) -> LSET
13574 LayerSet(PADSTACK self) -> LSET
13575 """
13576 return _pcbnew.PADSTACK_LayerSet(self, *args)
13577
13578 def SetLayerSet(self, aSet):
13579 r"""SetLayerSet(PADSTACK self, LSET aSet)"""
13580 return _pcbnew.PADSTACK_SetLayerSet(self, aSet)
13581
13582 def FlipLayers(self, aCopperLayerCount):
13583 r"""FlipLayers(PADSTACK self, int aCopperLayerCount)"""
13584 return _pcbnew.PADSTACK_FlipLayers(self, aCopperLayerCount)
13585
13586 def StartLayer(self):
13587 r"""StartLayer(PADSTACK self) -> PCB_LAYER_ID"""
13588 return _pcbnew.PADSTACK_StartLayer(self)
13589
13590 def EndLayer(self):
13591 r"""EndLayer(PADSTACK self) -> PCB_LAYER_ID"""
13592 return _pcbnew.PADSTACK_EndLayer(self)
13593
13594 def Mode(self):
13595 r"""Mode(PADSTACK self) -> PADSTACK::MODE"""
13596 return _pcbnew.PADSTACK_Mode(self)
13597
13598 def SetMode(self, aMode):
13599 r"""SetMode(PADSTACK self, PADSTACK::MODE aMode)"""
13600 return _pcbnew.PADSTACK_SetMode(self, aMode)
13601
13602 def Name(self):
13603 r"""Name(PADSTACK self) -> wxString"""
13604 return _pcbnew.PADSTACK_Name(self)
13605
13607 r"""GetOrientation(PADSTACK self) -> EDA_ANGLE"""
13608 return _pcbnew.PADSTACK_GetOrientation(self)
13609
13610 def SetOrientation(self, aAngle):
13611 r"""SetOrientation(PADSTACK self, EDA_ANGLE aAngle)"""
13612 return _pcbnew.PADSTACK_SetOrientation(self, aAngle)
13613
13614 def Drill(self, *args):
13615 r"""
13616 Drill(PADSTACK self) -> PADSTACK::DRILL_PROPS
13617 Drill(PADSTACK self) -> PADSTACK::DRILL_PROPS const &
13618 """
13619 return _pcbnew.PADSTACK_Drill(self, *args)
13620
13621 def SecondaryDrill(self, *args):
13622 r"""
13623 SecondaryDrill(PADSTACK self) -> PADSTACK::DRILL_PROPS
13624 SecondaryDrill(PADSTACK self) -> PADSTACK::DRILL_PROPS const &
13625 """
13626 return _pcbnew.PADSTACK_SecondaryDrill(self, *args)
13627
13629 r"""UnconnectedLayerMode(PADSTACK self) -> PADSTACK::UNCONNECTED_LAYER_MODE"""
13630 return _pcbnew.PADSTACK_UnconnectedLayerMode(self)
13631
13632 def SetUnconnectedLayerMode(self, aMode):
13633 r"""SetUnconnectedLayerMode(PADSTACK self, PADSTACK::UNCONNECTED_LAYER_MODE aMode)"""
13634 return _pcbnew.PADSTACK_SetUnconnectedLayerMode(self, aMode)
13635
13636 def CopperLayer(self, *args):
13637 r"""
13638 CopperLayer(PADSTACK self, PCB_LAYER_ID aLayer) -> PADSTACK::COPPER_LAYER_PROPS
13639 CopperLayer(PADSTACK self, PCB_LAYER_ID aLayer) -> PADSTACK::COPPER_LAYER_PROPS const &
13640 """
13641 return _pcbnew.PADSTACK_CopperLayer(self, *args)
13642
13643 def FrontOuterLayers(self, *args):
13644 r"""
13645 FrontOuterLayers(PADSTACK self) -> PADSTACK::MASK_LAYER_PROPS
13646 FrontOuterLayers(PADSTACK self) -> PADSTACK::MASK_LAYER_PROPS const &
13647 """
13648 return _pcbnew.PADSTACK_FrontOuterLayers(self, *args)
13649
13650 def BackOuterLayers(self, *args):
13651 r"""
13652 BackOuterLayers(PADSTACK self) -> PADSTACK::MASK_LAYER_PROPS
13653 BackOuterLayers(PADSTACK self) -> PADSTACK::MASK_LAYER_PROPS const &
13654 """
13655 return _pcbnew.PADSTACK_BackOuterLayers(self, *args)
13656
13657 def IsTented(self, aSide):
13658 r"""IsTented(PADSTACK self, PCB_LAYER_ID aSide) -> std::optional< bool >"""
13659 return _pcbnew.PADSTACK_IsTented(self, aSide)
13660
13662 r"""CustomShapeInZoneMode(PADSTACK self) -> PADSTACK::CUSTOM_SHAPE_ZONE_MODE"""
13663 return _pcbnew.PADSTACK_CustomShapeInZoneMode(self)
13664
13666 r"""SetCustomShapeInZoneMode(PADSTACK self, PADSTACK::CUSTOM_SHAPE_ZONE_MODE aM)"""
13667 return _pcbnew.PADSTACK_SetCustomShapeInZoneMode(self, aM)
13668
13669 def ForEachUniqueLayer(self, aMethod):
13670 r"""ForEachUniqueLayer(PADSTACK self, std::function< void (PCB_LAYER_ID) > const & aMethod)"""
13671 return _pcbnew.PADSTACK_ForEachUniqueLayer(self, aMethod)
13672
13673 def UniqueLayers(self):
13674 r"""UniqueLayers(PADSTACK self) -> base_seqVect"""
13675 return _pcbnew.PADSTACK_UniqueLayers(self)
13676
13677 def EffectiveLayerFor(self, aLayer):
13678 r"""EffectiveLayerFor(PADSTACK self, PCB_LAYER_ID aLayer) -> PCB_LAYER_ID"""
13679 return _pcbnew.PADSTACK_EffectiveLayerFor(self, aLayer)
13680
13681 def RelevantShapeLayers(self, aOther):
13682 r"""RelevantShapeLayers(PADSTACK self, PADSTACK aOther) -> LSET"""
13683 return _pcbnew.PADSTACK_RelevantShapeLayers(self, aOther)
13684
13685 def Shape(self, aLayer):
13686 r"""Shape(PADSTACK self, PCB_LAYER_ID aLayer) -> PAD_SHAPE"""
13687 return _pcbnew.PADSTACK_Shape(self, aLayer)
13688
13689 def SetShape(self, aShape, aLayer):
13690 r"""SetShape(PADSTACK self, PAD_SHAPE aShape, PCB_LAYER_ID aLayer)"""
13691 return _pcbnew.PADSTACK_SetShape(self, aShape, aLayer)
13692
13693 def SetSize(self, aSize, aLayer):
13694 r"""SetSize(PADSTACK self, VECTOR2I aSize, PCB_LAYER_ID aLayer)"""
13695 return _pcbnew.PADSTACK_SetSize(self, aSize, aLayer)
13696
13697 def Size(self, aLayer):
13698 r"""Size(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
13699 return _pcbnew.PADSTACK_Size(self, aLayer)
13700
13701 def DrillShape(self):
13702 r"""DrillShape(PADSTACK self) -> PAD_DRILL_SHAPE"""
13703 return _pcbnew.PADSTACK_DrillShape(self)
13704
13705 def SetDrillShape(self, aShape):
13706 r"""SetDrillShape(PADSTACK self, PAD_DRILL_SHAPE aShape)"""
13707 return _pcbnew.PADSTACK_SetDrillShape(self, aShape)
13708
13709 def Offset(self, *args):
13710 r"""
13711 Offset(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I
13712 Offset(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I
13713 """
13714 return _pcbnew.PADSTACK_Offset(self, *args)
13715
13716 def AnchorShape(self, aLayer):
13717 r"""AnchorShape(PADSTACK self, PCB_LAYER_ID aLayer) -> PAD_SHAPE"""
13718 return _pcbnew.PADSTACK_AnchorShape(self, aLayer)
13719
13720 def SetAnchorShape(self, aShape, aLayer):
13721 r"""SetAnchorShape(PADSTACK self, PAD_SHAPE aShape, PCB_LAYER_ID aLayer)"""
13722 return _pcbnew.PADSTACK_SetAnchorShape(self, aShape, aLayer)
13723
13724 def TrapezoidDeltaSize(self, *args):
13725 r"""
13726 TrapezoidDeltaSize(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I
13727 TrapezoidDeltaSize(PADSTACK self, PCB_LAYER_ID aLayer) -> VECTOR2I
13728 """
13729 return _pcbnew.PADSTACK_TrapezoidDeltaSize(self, *args)
13730
13731 def RoundRectRadiusRatio(self, aLayer):
13732 r"""RoundRectRadiusRatio(PADSTACK self, PCB_LAYER_ID aLayer) -> double"""
13733 return _pcbnew.PADSTACK_RoundRectRadiusRatio(self, aLayer)
13734
13735 def SetRoundRectRadiusRatio(self, aRatio, aLayer):
13736 r"""SetRoundRectRadiusRatio(PADSTACK self, double aRatio, PCB_LAYER_ID aLayer)"""
13737 return _pcbnew.PADSTACK_SetRoundRectRadiusRatio(self, aRatio, aLayer)
13738
13739 def RoundRectRadius(self, aLayer):
13740 r"""RoundRectRadius(PADSTACK self, PCB_LAYER_ID aLayer) -> int"""
13741 return _pcbnew.PADSTACK_RoundRectRadius(self, aLayer)
13742
13743 def SetRoundRectRadius(self, aRadius, aLayer):
13744 r"""SetRoundRectRadius(PADSTACK self, double aRadius, PCB_LAYER_ID aLayer)"""
13745 return _pcbnew.PADSTACK_SetRoundRectRadius(self, aRadius, aLayer)
13746
13747 def ChamferRatio(self, aLayer):
13748 r"""ChamferRatio(PADSTACK self, PCB_LAYER_ID aLayer) -> double"""
13749 return _pcbnew.PADSTACK_ChamferRatio(self, aLayer)
13750
13751 def SetChamferRatio(self, aRatio, aLayer):
13752 r"""SetChamferRatio(PADSTACK self, double aRatio, PCB_LAYER_ID aLayer)"""
13753 return _pcbnew.PADSTACK_SetChamferRatio(self, aRatio, aLayer)
13754
13755 def ChamferPositions(self, *args):
13756 r"""
13757 ChamferPositions(PADSTACK self, PCB_LAYER_ID aLayer) -> int
13758 ChamferPositions(PADSTACK self, PCB_LAYER_ID aLayer) -> int const &
13759 """
13760 return _pcbnew.PADSTACK_ChamferPositions(self, *args)
13761
13762 def SetChamferPositions(self, aPositions, aLayer):
13763 r"""SetChamferPositions(PADSTACK self, int aPositions, PCB_LAYER_ID aLayer)"""
13764 return _pcbnew.PADSTACK_SetChamferPositions(self, aPositions, aLayer)
13765
13766 def Clearance(self, *args):
13767 r"""
13768 Clearance(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13769 Clearance(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13770 """
13771 return _pcbnew.PADSTACK_Clearance(self, *args)
13772
13773 def SolderMaskMargin(self, *args):
13774 r"""
13775 SolderMaskMargin(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13776 SolderMaskMargin(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13777 """
13778 return _pcbnew.PADSTACK_SolderMaskMargin(self, *args)
13779
13780 def SolderPasteMargin(self, *args):
13781 r"""
13782 SolderPasteMargin(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13783 SolderPasteMargin(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13784 """
13785 return _pcbnew.PADSTACK_SolderPasteMargin(self, *args)
13786
13787 def SolderPasteMarginRatio(self, *args):
13788 r"""
13789 SolderPasteMarginRatio(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< double >
13790 SolderPasteMarginRatio(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< double > const
13791 """
13792 return _pcbnew.PADSTACK_SolderPasteMarginRatio(self, *args)
13793
13794 def ZoneConnection(self, *args):
13795 r"""
13796 ZoneConnection(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< ZONE_CONNECTION >
13797 ZoneConnection(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< ZONE_CONNECTION > const
13798 """
13799 return _pcbnew.PADSTACK_ZoneConnection(self, *args)
13800
13801 def ThermalSpokeWidth(self, *args):
13802 r"""
13803 ThermalSpokeWidth(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13804 ThermalSpokeWidth(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13805 """
13806 return _pcbnew.PADSTACK_ThermalSpokeWidth(self, *args)
13807
13808 def ThermalGap(self, *args):
13809 r"""
13810 ThermalGap(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int >
13811 ThermalGap(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> std::optional< int > const
13812 """
13813 return _pcbnew.PADSTACK_ThermalGap(self, *args)
13814
13815 def DefaultThermalSpokeAngleForShape(self, aLayer=F_Cu):
13816 r"""DefaultThermalSpokeAngleForShape(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> EDA_ANGLE"""
13817 return _pcbnew.PADSTACK_DefaultThermalSpokeAngleForShape(self, aLayer)
13818
13819 def ThermalSpokeAngle(self, aLayer=F_Cu):
13820 r"""ThermalSpokeAngle(PADSTACK self, PCB_LAYER_ID aLayer=F_Cu) -> EDA_ANGLE"""
13821 return _pcbnew.PADSTACK_ThermalSpokeAngle(self, aLayer)
13822
13823 def SetThermalSpokeAngle(self, aAngle, aLayer=F_Cu):
13824 r"""SetThermalSpokeAngle(PADSTACK self, EDA_ANGLE aAngle, PCB_LAYER_ID aLayer=F_Cu)"""
13825 return _pcbnew.PADSTACK_SetThermalSpokeAngle(self, aAngle, aLayer)
13826
13827 def Primitives(self, *args):
13828 r"""
13829 Primitives(PADSTACK self, PCB_LAYER_ID aLayer) -> std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > >
13830 Primitives(PADSTACK self, PCB_LAYER_ID aLayer) -> std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const &
13831 """
13832 return _pcbnew.PADSTACK_Primitives(self, *args)
13833
13834 def AddPrimitive(self, aShape, aLayer):
13835 r"""AddPrimitive(PADSTACK self, PCB_SHAPE aShape, PCB_LAYER_ID aLayer)"""
13836 return _pcbnew.PADSTACK_AddPrimitive(self, aShape, aLayer)
13837
13838 def AppendPrimitives(self, aPrimitivesList, aLayer):
13839 r"""AppendPrimitives(PADSTACK self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList, PCB_LAYER_ID aLayer)"""
13840 return _pcbnew.PADSTACK_AppendPrimitives(self, aPrimitivesList, aLayer)
13841
13842 def ReplacePrimitives(self, aPrimitivesList, aLayer):
13843 r"""ReplacePrimitives(PADSTACK self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList, PCB_LAYER_ID aLayer)"""
13844 return _pcbnew.PADSTACK_ReplacePrimitives(self, aPrimitivesList, aLayer)
13845
13846 def ClearPrimitives(self, aLayer):
13847 r"""ClearPrimitives(PADSTACK self, PCB_LAYER_ID aLayer)"""
13848 return _pcbnew.PADSTACK_ClearPrimitives(self, aLayer)
13849
13850# Register PADSTACK in _pcbnew:
13851_pcbnew.PADSTACK_swigregister(PADSTACK)
13853 r"""Proxy of C++ PAD class."""
13854
13855 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13856 __repr__ = _swig_repr
13857
13858 def __init__(self, *args):
13859 r"""
13860 __init__(PAD self, FOOTPRINT parent) -> PAD
13861 __init__(PAD self, PAD aPad) -> PAD
13862 """
13863 _pcbnew.PAD_swiginit(self, _pcbnew.new_PAD(*args))
13864
13865 def Serialize(self, aContainer):
13866 r"""Serialize(PAD self, google::protobuf::Any & aContainer)"""
13867 return _pcbnew.PAD_Serialize(self, aContainer)
13868
13869 def Deserialize(self, aContainer):
13870 r"""Deserialize(PAD self, google::protobuf::Any const & aContainer) -> bool"""
13871 return _pcbnew.PAD_Deserialize(self, aContainer)
13872
13873 @staticmethod
13874 def PTHMask():
13875 r"""PTHMask() -> LSET"""
13876 return _pcbnew.PAD_PTHMask()
13877
13878 @staticmethod
13879 def SMDMask():
13880 r"""SMDMask() -> LSET"""
13881 return _pcbnew.PAD_SMDMask()
13882
13883 @staticmethod
13885 r"""ConnSMDMask() -> LSET"""
13886 return _pcbnew.PAD_ConnSMDMask()
13887
13888 @staticmethod
13890 r"""UnplatedHoleMask() -> LSET"""
13891 return _pcbnew.PAD_UnplatedHoleMask()
13892
13893 @staticmethod
13895 r"""ApertureMask() -> LSET"""
13896 return _pcbnew.PAD_ApertureMask()
13897
13898 @staticmethod
13899 def ClassOf(aItem):
13900 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13901 return _pcbnew.PAD_ClassOf(aItem)
13902
13903 def ImportSettingsFrom(self, aMasterPad):
13904 r"""ImportSettingsFrom(PAD self, PAD aMasterPad)"""
13905 return _pcbnew.PAD_ImportSettingsFrom(self, aMasterPad)
13906
13907 def IsFlipped(self):
13908 r"""IsFlipped(PAD self) -> bool"""
13909 return _pcbnew.PAD_IsFlipped(self)
13910
13911 def SetNumber(self, aNumber):
13912 r"""SetNumber(PAD self, wxString aNumber)"""
13913 return _pcbnew.PAD_SetNumber(self, aNumber)
13914
13915 def GetNumber(self):
13916 r"""GetNumber(PAD self) -> wxString"""
13917 return _pcbnew.PAD_GetNumber(self)
13918
13919 def CanHaveNumber(self):
13920 r"""CanHaveNumber(PAD self) -> bool"""
13921 return _pcbnew.PAD_CanHaveNumber(self)
13922
13923 def SetPinFunction(self, aName):
13924 r"""SetPinFunction(PAD self, wxString aName)"""
13925 return _pcbnew.PAD_SetPinFunction(self, aName)
13926
13928 r"""GetPinFunction(PAD self) -> wxString"""
13929 return _pcbnew.PAD_GetPinFunction(self)
13930
13931 def SetPinType(self, aType):
13932 r"""SetPinType(PAD self, wxString aType)"""
13933 return _pcbnew.PAD_SetPinType(self, aType)
13934
13935 def GetPinType(self):
13936 r"""GetPinType(PAD self) -> wxString"""
13937 return _pcbnew.PAD_GetPinType(self)
13938
13939 def SameLogicalPadAs(self, aOther):
13940 r"""SameLogicalPadAs(PAD self, PAD aOther) -> bool"""
13941 return _pcbnew.PAD_SameLogicalPadAs(self, aOther)
13942
13943 def SharesNetTieGroup(self, aOther):
13944 r"""SharesNetTieGroup(PAD self, PAD aOther) -> bool"""
13945 return _pcbnew.PAD_SharesNetTieGroup(self, aOther)
13946
13948 r"""IsNoConnectPad(PAD self) -> bool"""
13949 return _pcbnew.PAD_IsNoConnectPad(self)
13950
13951 def IsFreePad(self):
13952 r"""IsFreePad(PAD self) -> bool"""
13953 return _pcbnew.PAD_IsFreePad(self)
13954
13955 def SetFrontShape(self, aShape):
13956 r"""SetFrontShape(PAD self, PAD_SHAPE aShape)"""
13957 return _pcbnew.PAD_SetFrontShape(self, aShape)
13958
13959 def GetFrontShape(self):
13960 r"""GetFrontShape(PAD self) -> PAD_SHAPE"""
13961 return _pcbnew.PAD_GetFrontShape(self)
13962
13963 def GetAnchorPadShape(self, aLayer):
13964 r"""GetAnchorPadShape(PAD self, PCB_LAYER_ID aLayer) -> PAD_SHAPE"""
13965 return _pcbnew.PAD_GetAnchorPadShape(self, aLayer)
13966
13968 r"""GetCustomShapeInZoneOpt(PAD self) -> PADSTACK::CUSTOM_SHAPE_ZONE_MODE"""
13969 return _pcbnew.PAD_GetCustomShapeInZoneOpt(self)
13970
13971 def SetCustomShapeInZoneOpt(self, aOption):
13972 r"""SetCustomShapeInZoneOpt(PAD self, PADSTACK::CUSTOM_SHAPE_ZONE_MODE aOption)"""
13973 return _pcbnew.PAD_SetCustomShapeInZoneOpt(self, aOption)
13974
13975 def SetAnchorPadShape(self, aLayer, aShape):
13976 r"""SetAnchorPadShape(PAD self, PCB_LAYER_ID aLayer, PAD_SHAPE aShape)"""
13977 return _pcbnew.PAD_SetAnchorPadShape(self, aLayer, aShape)
13978
13979 def SetY(self, y):
13980 r"""SetY(PAD self, int y)"""
13981 return _pcbnew.PAD_SetY(self, y)
13982
13983 def SetX(self, x):
13984 r"""SetX(PAD self, int x)"""
13985 return _pcbnew.PAD_SetX(self, x)
13986
13987 def SetSizeX(self, aX):
13988 r"""SetSizeX(PAD self, int const aX)"""
13989 return _pcbnew.PAD_SetSizeX(self, aX)
13990
13991 def GetSizeX(self):
13992 r"""GetSizeX(PAD self) -> int"""
13993 return _pcbnew.PAD_GetSizeX(self)
13994
13995 def SetSizeY(self, aY):
13996 r"""SetSizeY(PAD self, int const aY)"""
13997 return _pcbnew.PAD_SetSizeY(self, aY)
13998
13999 def GetSizeY(self):
14000 r"""GetSizeY(PAD self) -> int"""
14001 return _pcbnew.PAD_GetSizeY(self)
14002
14003 def SetDrillSize(self, aSize):
14004 r"""SetDrillSize(PAD self, VECTOR2I aSize)"""
14005 return _pcbnew.PAD_SetDrillSize(self, aSize)
14006
14007 def GetDrillSize(self):
14008 r"""GetDrillSize(PAD self) -> VECTOR2I"""
14009 return _pcbnew.PAD_GetDrillSize(self)
14010
14011 def SetDrillSizeX(self, aX):
14012 r"""SetDrillSizeX(PAD self, int const aX)"""
14013 return _pcbnew.PAD_SetDrillSizeX(self, aX)
14014
14015 def GetDrillSizeX(self):
14016 r"""GetDrillSizeX(PAD self) -> int"""
14017 return _pcbnew.PAD_GetDrillSizeX(self)
14018
14019 def SetDrillSizeY(self, aY):
14020 r"""SetDrillSizeY(PAD self, int const aY)"""
14021 return _pcbnew.PAD_SetDrillSizeY(self, aY)
14022
14023 def GetDrillSizeY(self):
14024 r"""GetDrillSizeY(PAD self) -> int"""
14025 return _pcbnew.PAD_GetDrillSizeY(self)
14026
14027 def Padstack(self, *args):
14028 r"""
14029 Padstack(PAD self) -> PADSTACK
14030 Padstack(PAD self) -> PADSTACK
14031 """
14032 return _pcbnew.PAD_Padstack(self, *args)
14033
14034 def SetPadstack(self, aPadstack):
14035 r"""SetPadstack(PAD self, PADSTACK aPadstack)"""
14036 return _pcbnew.PAD_SetPadstack(self, aPadstack)
14037
14038 def AddPrimitivePoly(self, *args):
14039 r"""
14040 AddPrimitivePoly(PAD self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aPoly, int aThickness, bool aFilled)
14041 AddPrimitivePoly(PAD self, PCB_LAYER_ID aLayer, VECTOR_VECTOR2I aPoly, int aThickness, bool aFilled)
14042 """
14043 return _pcbnew.PAD_AddPrimitivePoly(self, *args)
14044
14045 def MergePrimitivesAsPolygon(self, aLayer, aMergedPolygon, aErrorLoc=ERROR_INSIDE):
14046 r"""MergePrimitivesAsPolygon(PAD self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aMergedPolygon, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
14047 return _pcbnew.PAD_MergePrimitivesAsPolygon(self, aLayer, aMergedPolygon, aErrorLoc)
14048
14049 def DeletePrimitivesList(self, aLayer=UNDEFINED_LAYER):
14050 r"""DeletePrimitivesList(PAD self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
14051 return _pcbnew.PAD_DeletePrimitivesList(self, aLayer)
14052
14053 def GetPrimitives(self, aLayer):
14054 r"""GetPrimitives(PAD self, PCB_LAYER_ID aLayer) -> std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const &"""
14055 return _pcbnew.PAD_GetPrimitives(self, aLayer)
14056
14057 def FlipPrimitives(self, aFlipDirection):
14058 r"""FlipPrimitives(PAD self, FLIP_DIRECTION aFlipDirection)"""
14059 return _pcbnew.PAD_FlipPrimitives(self, aFlipDirection)
14060
14061 def ReplacePrimitives(self, aLayer, aPrimitivesList):
14062 r"""ReplacePrimitives(PAD self, PCB_LAYER_ID aLayer, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
14063 return _pcbnew.PAD_ReplacePrimitives(self, aLayer, aPrimitivesList)
14064
14065 def AppendPrimitives(self, aLayer, aPrimitivesList):
14066 r"""AppendPrimitives(PAD self, PCB_LAYER_ID aLayer, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
14067 return _pcbnew.PAD_AppendPrimitives(self, aLayer, aPrimitivesList)
14068
14069 def AddPrimitiveShape(self, aLayer, aPrimitive):
14070 r"""AddPrimitiveShape(PAD self, PCB_LAYER_ID aLayer, PCB_SHAPE aPrimitive)"""
14071 return _pcbnew.PAD_AddPrimitiveShape(self, aLayer, aPrimitive)
14072
14073 def SetOrientation(self, aAngle):
14074 r"""SetOrientation(PAD self, EDA_ANGLE aAngle)"""
14075 return _pcbnew.PAD_SetOrientation(self, aAngle)
14076
14077 def SetFPRelativeOrientation(self, aAngle):
14078 r"""SetFPRelativeOrientation(PAD self, EDA_ANGLE aAngle)"""
14079 return _pcbnew.PAD_SetFPRelativeOrientation(self, aAngle)
14080
14082 r"""GetOrientation(PAD self) -> EDA_ANGLE"""
14083 return _pcbnew.PAD_GetOrientation(self)
14084
14086 r"""GetFPRelativeOrientation(PAD self) -> EDA_ANGLE"""
14087 return _pcbnew.PAD_GetFPRelativeOrientation(self)
14088
14089 def SetOrientationDegrees(self, aOrientation):
14090 r"""SetOrientationDegrees(PAD self, double aOrientation)"""
14091 return _pcbnew.PAD_SetOrientationDegrees(self, aOrientation)
14092
14094 r"""GetOrientationDegrees(PAD self) -> double"""
14095 return _pcbnew.PAD_GetOrientationDegrees(self)
14096
14097 def SetDrillShape(self, aShape):
14098 r"""SetDrillShape(PAD self, PAD_DRILL_SHAPE aShape)"""
14099 return _pcbnew.PAD_SetDrillShape(self, aShape)
14100
14101 def GetDrillShape(self):
14102 r"""GetDrillShape(PAD self) -> PAD_DRILL_SHAPE"""
14103 return _pcbnew.PAD_GetDrillShape(self)
14104
14105 def IsDirty(self):
14106 r"""IsDirty(PAD self) -> bool"""
14107 return _pcbnew.PAD_IsDirty(self)
14108
14109 def SetDirty(self):
14110 r"""SetDirty(PAD self)"""
14111 return _pcbnew.PAD_SetDirty(self)
14112
14113 def SetAttribute(self, aAttribute):
14114 r"""SetAttribute(PAD self, PAD_ATTRIB aAttribute)"""
14115 return _pcbnew.PAD_SetAttribute(self, aAttribute)
14116
14117 def GetAttribute(self):
14118 r"""GetAttribute(PAD self) -> PAD_ATTRIB"""
14119 return _pcbnew.PAD_GetAttribute(self)
14120
14121 def SetProperty(self, aProperty):
14122 r"""SetProperty(PAD self, PAD_PROP aProperty)"""
14123 return _pcbnew.PAD_SetProperty(self, aProperty)
14124
14125 def GetProperty(self):
14126 r"""GetProperty(PAD self) -> PAD_PROP"""
14127 return _pcbnew.PAD_GetProperty(self)
14128
14129 def IsAperturePad(self):
14130 r"""IsAperturePad(PAD self) -> bool"""
14131 return _pcbnew.PAD_IsAperturePad(self)
14132
14133 def SetPadToDieLength(self, aLength):
14134 r"""SetPadToDieLength(PAD self, int aLength)"""
14135 return _pcbnew.PAD_SetPadToDieLength(self, aLength)
14136
14138 r"""GetPadToDieLength(PAD self) -> int"""
14139 return _pcbnew.PAD_GetPadToDieLength(self)
14140
14141 def SetLocalClearance(self, aClearance):
14142 r"""SetLocalClearance(PAD self, std::optional< int > aClearance)"""
14143 return _pcbnew.PAD_SetLocalClearance(self, aClearance)
14144
14146 r"""GetLocalSolderMaskMargin(PAD self) -> std::optional< int >"""
14147 return _pcbnew.PAD_GetLocalSolderMaskMargin(self)
14148
14149 def SetLocalSolderMaskMargin(self, aMargin):
14150 r"""SetLocalSolderMaskMargin(PAD self, std::optional< int > aMargin)"""
14151 return _pcbnew.PAD_SetLocalSolderMaskMargin(self, aMargin)
14152
14154 r"""GetLocalSolderPasteMargin(PAD self) -> std::optional< int >"""
14155 return _pcbnew.PAD_GetLocalSolderPasteMargin(self)
14156
14157 def SetLocalSolderPasteMargin(self, aMargin):
14158 r"""SetLocalSolderPasteMargin(PAD self, std::optional< int > aMargin)"""
14159 return _pcbnew.PAD_SetLocalSolderPasteMargin(self, aMargin)
14160
14162 r"""GetLocalSolderPasteMarginRatio(PAD self) -> std::optional< double >"""
14163 return _pcbnew.PAD_GetLocalSolderPasteMarginRatio(self)
14164
14166 r"""SetLocalSolderPasteMarginRatio(PAD self, std::optional< double > aRatio)"""
14167 return _pcbnew.PAD_SetLocalSolderPasteMarginRatio(self, aRatio)
14168
14169 def SetLocalZoneConnection(self, aType):
14170 r"""SetLocalZoneConnection(PAD self, ZONE_CONNECTION aType)"""
14171 return _pcbnew.PAD_SetLocalZoneConnection(self, aType)
14172
14174 r"""GetLocalZoneConnection(PAD self) -> ZONE_CONNECTION"""
14175 return _pcbnew.PAD_GetLocalZoneConnection(self)
14176
14177 def GetOwnClearance(self, aLayer, aSource=None):
14178 r"""GetOwnClearance(PAD self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
14179 return _pcbnew.PAD_GetOwnClearance(self, aLayer, aSource)
14180
14181 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc=ERROR_INSIDE, ignoreLineWidth=False):
14182 r"""TransformShapeToPolygon(PAD self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc=ERROR_INSIDE, bool ignoreLineWidth=False)"""
14183 return _pcbnew.PAD_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, ignoreLineWidth)
14184
14185 def TransformHoleToPolygon(self, aBuffer, aClearance, aError, aErrorLoc=ERROR_INSIDE):
14186 r"""TransformHoleToPolygon(PAD self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> bool"""
14187 return _pcbnew.PAD_TransformHoleToPolygon(self, aBuffer, aClearance, aError, aErrorLoc)
14188
14189 def GetEffectiveShape(self, *args):
14190 r"""GetEffectiveShape(PAD self, PCB_LAYER_ID aLayer, FLASHING flashPTHPads=DEFAULT) -> std::shared_ptr< SHAPE >"""
14191 return _pcbnew.PAD_GetEffectiveShape(self, *args)
14192
14193 def GetEffectivePolygon(self, aLayer, aErrorLoc=ERROR_INSIDE):
14194 r"""GetEffectivePolygon(PAD self, PCB_LAYER_ID aLayer, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> std::shared_ptr< SHAPE_POLY_SET > const"""
14195 return _pcbnew.PAD_GetEffectivePolygon(self, aLayer, aErrorLoc)
14196
14198 r"""GetBoundingRadius(PAD self) -> int"""
14199 return _pcbnew.PAD_GetBoundingRadius(self)
14200
14201 def GetLocalClearance(self, *args):
14202 r"""
14203 GetLocalClearance(PAD self) -> std::optional< int >
14204 GetLocalClearance(PAD self, wxString aSource) -> std::optional< int >
14205 """
14206 return _pcbnew.PAD_GetLocalClearance(self, *args)
14207
14208 def GetSolderMaskExpansion(self, aLayer):
14209 r"""GetSolderMaskExpansion(PAD self, PCB_LAYER_ID aLayer) -> int"""
14210 return _pcbnew.PAD_GetSolderMaskExpansion(self, aLayer)
14211
14212 def GetSolderPasteMargin(self, aLayer):
14213 r"""GetSolderPasteMargin(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
14214 return _pcbnew.PAD_GetSolderPasteMargin(self, aLayer)
14215
14216 def GetZoneConnectionOverrides(self, aSource=None):
14217 r"""GetZoneConnectionOverrides(PAD self, wxString aSource=None) -> ZONE_CONNECTION"""
14218 return _pcbnew.PAD_GetZoneConnectionOverrides(self, aSource)
14219
14221 r"""SetLocalThermalSpokeWidthOverride(PAD self, std::optional< int > aWidth)"""
14222 return _pcbnew.PAD_SetLocalThermalSpokeWidthOverride(self, aWidth)
14223
14225 r"""GetLocalThermalSpokeWidthOverride(PAD self) -> std::optional< int >"""
14226 return _pcbnew.PAD_GetLocalThermalSpokeWidthOverride(self)
14227
14228 def GetLocalSpokeWidthOverride(self, aSource=None):
14229 r"""GetLocalSpokeWidthOverride(PAD self, wxString aSource=None) -> int"""
14230 return _pcbnew.PAD_GetLocalSpokeWidthOverride(self, aSource)
14231
14232 def SetThermalSpokeAngle(self, aAngle):
14233 r"""SetThermalSpokeAngle(PAD self, EDA_ANGLE aAngle)"""
14234 return _pcbnew.PAD_SetThermalSpokeAngle(self, aAngle)
14235
14237 r"""GetThermalSpokeAngle(PAD self) -> EDA_ANGLE"""
14238 return _pcbnew.PAD_GetThermalSpokeAngle(self)
14239
14241 r"""SetThermalSpokeAngleDegrees(PAD self, double aAngle)"""
14242 return _pcbnew.PAD_SetThermalSpokeAngleDegrees(self, aAngle)
14243
14245 r"""GetThermalSpokeAngleDegrees(PAD self) -> double"""
14246 return _pcbnew.PAD_GetThermalSpokeAngleDegrees(self)
14247
14248 def SetThermalGap(self, aGap):
14249 r"""SetThermalGap(PAD self, int aGap)"""
14250 return _pcbnew.PAD_SetThermalGap(self, aGap)
14251
14252 def GetThermalGap(self):
14253 r"""GetThermalGap(PAD self) -> int"""
14254 return _pcbnew.PAD_GetThermalGap(self)
14255
14257 r"""
14258 GetLocalThermalGapOverride(PAD self, wxString aSource) -> int
14259 GetLocalThermalGapOverride(PAD self) -> std::optional< int >
14260 """
14261 return _pcbnew.PAD_GetLocalThermalGapOverride(self, *args)
14262
14263 def SetLocalThermalGapOverride(self, aOverride):
14264 r"""SetLocalThermalGapOverride(PAD self, std::optional< int > const & aOverride)"""
14265 return _pcbnew.PAD_SetLocalThermalGapOverride(self, aOverride)
14266
14267 def ShapePos(self, aLayer):
14268 r"""ShapePos(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
14269 return _pcbnew.PAD_ShapePos(self, aLayer)
14270
14271 def SetFrontRoundRectRadiusRatio(self, aRadiusScale):
14272 r"""SetFrontRoundRectRadiusRatio(PAD self, double aRadiusScale)"""
14273 return _pcbnew.PAD_SetFrontRoundRectRadiusRatio(self, aRadiusScale)
14274
14276 r"""GetFrontRoundRectRadiusRatio(PAD self) -> double"""
14277 return _pcbnew.PAD_GetFrontRoundRectRadiusRatio(self)
14278
14280 r"""SetFrontRoundRectRadiusSize(PAD self, int aRadius)"""
14281 return _pcbnew.PAD_SetFrontRoundRectRadiusSize(self, aRadius)
14282
14284 r"""GetFrontRoundRectRadiusSize(PAD self) -> int"""
14285 return _pcbnew.PAD_GetFrontRoundRectRadiusSize(self)
14286
14288 r"""GetSubRatsnest(PAD self) -> int"""
14289 return _pcbnew.PAD_GetSubRatsnest(self)
14290
14291 def SetSubRatsnest(self, aSubRatsnest):
14292 r"""SetSubRatsnest(PAD self, int aSubRatsnest)"""
14293 return _pcbnew.PAD_SetSubRatsnest(self, aSubRatsnest)
14294
14295 def SetRemoveUnconnected(self, aSet):
14296 r"""SetRemoveUnconnected(PAD self, bool aSet)"""
14297 return _pcbnew.PAD_SetRemoveUnconnected(self, aSet)
14298
14300 r"""GetRemoveUnconnected(PAD self) -> bool"""
14301 return _pcbnew.PAD_GetRemoveUnconnected(self)
14302
14303 def SetKeepTopBottom(self, aSet):
14304 r"""SetKeepTopBottom(PAD self, bool aSet)"""
14305 return _pcbnew.PAD_SetKeepTopBottom(self, aSet)
14306
14308 r"""GetKeepTopBottom(PAD self) -> bool"""
14309 return _pcbnew.PAD_GetKeepTopBottom(self)
14310
14311 def SetUnconnectedLayerMode(self, aMode):
14312 r"""SetUnconnectedLayerMode(PAD self, PADSTACK::UNCONNECTED_LAYER_MODE aMode)"""
14313 return _pcbnew.PAD_SetUnconnectedLayerMode(self, aMode)
14314
14316 r"""GetUnconnectedLayerMode(PAD self) -> PADSTACK::UNCONNECTED_LAYER_MODE"""
14317 return _pcbnew.PAD_GetUnconnectedLayerMode(self)
14318
14319 def ConditionallyFlashed(self, aLayer):
14320 r"""ConditionallyFlashed(PAD self, PCB_LAYER_ID aLayer) -> bool"""
14321 return _pcbnew.PAD_ConditionallyFlashed(self, aLayer)
14322
14323 def CanFlashLayer(self, aLayer):
14324 r"""CanFlashLayer(PAD self, int aLayer) -> bool"""
14325 return _pcbnew.PAD_CanFlashLayer(self, aLayer)
14326
14328 r"""GetPrincipalLayer(PAD self) -> PCB_LAYER_ID"""
14329 return _pcbnew.PAD_GetPrincipalLayer(self)
14330
14331 def FlashLayer(self, *args):
14332 r"""
14333 FlashLayer(PAD self, int aLayer, bool aOnlyCheckIfPermitted=False) -> bool
14334 FlashLayer(PAD self, LSET aLayers) -> bool
14335 """
14336 return _pcbnew.PAD_FlashLayer(self, *args)
14337
14338 def HitTest(self, *args):
14339 r"""
14340 HitTest(PAD self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14341 HitTest(PAD self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
14342 """
14343 return _pcbnew.PAD_HitTest(self, *args)
14344
14345 def Recombine(self, aIsDryRun, aMaxError):
14346 r"""Recombine(PAD self, bool aIsDryRun, int aMaxError) -> std::vector< PCB_SHAPE *,std::allocator< PCB_SHAPE * > >"""
14347 return _pcbnew.PAD_Recombine(self, aIsDryRun, aMaxError)
14348
14349 @staticmethod
14350 def Compare(aPadRef, aPadCmp):
14351 r"""Compare(PAD aPadRef, PAD aPadCmp) -> int"""
14352 return _pcbnew.PAD_Compare(aPadRef, aPadCmp)
14353
14354 def ShowPadShape(self, aLayer):
14355 r"""ShowPadShape(PAD self, PCB_LAYER_ID aLayer) -> wxString"""
14356 return _pcbnew.PAD_ShowPadShape(self, aLayer)
14357
14358 def ShowPadAttr(self):
14359 r"""ShowPadAttr(PAD self) -> wxString"""
14360 return _pcbnew.PAD_ShowPadAttr(self)
14361
14362 def ClonePad(self):
14363 r"""ClonePad(PAD self) -> PAD"""
14364 return _pcbnew.PAD_ClonePad(self)
14365
14367 r"""BuildEffectiveShapes(PAD self)"""
14368 return _pcbnew.PAD_BuildEffectiveShapes(self)
14369
14370 def BuildEffectivePolygon(self, aErrorLoc=ERROR_INSIDE):
14371 r"""BuildEffectivePolygon(PAD self, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
14372 return _pcbnew.PAD_BuildEffectivePolygon(self, aErrorLoc)
14373
14374 def ViewGetLOD(self, aLayer, aView):
14375 r"""ViewGetLOD(PAD self, int aLayer, KIGFX::VIEW const * aView) -> double"""
14376 return _pcbnew.PAD_ViewGetLOD(self, aLayer, aView)
14377
14379 r"""ClearZoneLayerOverrides(PAD self)"""
14380 return _pcbnew.PAD_ClearZoneLayerOverrides(self)
14381
14382 def GetZoneLayerOverride(self, aLayer):
14383 r"""GetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
14384 return _pcbnew.PAD_GetZoneLayerOverride(self, aLayer)
14385
14386 def SetZoneLayerOverride(self, aLayer, aOverride):
14387 r"""SetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
14388 return _pcbnew.PAD_SetZoneLayerOverride(self, aLayer, aOverride)
14389
14390 def CheckPad(self, aUnitsProvider, aForPadProperties, aErrorHandler):
14391 r"""CheckPad(PAD self, UNITS_PROVIDER aUnitsProvider, bool aForPadProperties, std::function< void (int,wxString const &) > const & aErrorHandler)"""
14392 return _pcbnew.PAD_CheckPad(self, aUnitsProvider, aForPadProperties, aErrorHandler)
14393
14394 def __eq__(self, *args):
14395 r"""
14396 __eq__(PAD self, PAD aOther) -> bool
14397 __eq__(PAD self, BOARD_ITEM aBoardItem) -> bool
14398 """
14399 return _pcbnew.PAD___eq__(self, *args)
14400
14401 def GetShape(self, *args):
14402 r"""
14403 GetShape(PAD self, PCB_LAYER_ID aLayer) -> PAD_SHAPE
14404 GetShape(PAD self) -> PAD_SHAPE
14405 """
14406 return _pcbnew.PAD_GetShape(self, *args)
14407
14408 def SetShape(self, *args):
14409 r"""
14410 SetShape(PAD self, PCB_LAYER_ID aLayer, PAD_SHAPE aShape)
14411 SetShape(PAD self, PAD_SHAPE aShape)
14412 """
14413 return _pcbnew.PAD_SetShape(self, *args)
14414
14415 def GetSize(self, *args):
14416 r"""
14417 GetSize(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I
14418 GetSize(PAD self) -> VECTOR2I
14419 """
14420 return _pcbnew.PAD_GetSize(self, *args)
14421
14422 def SetSize(self, *args):
14423 r"""
14424 SetSize(PAD self, PCB_LAYER_ID aLayer, VECTOR2I aSize)
14425 SetSize(PAD self, VECTOR2I aSize)
14426 """
14427 return _pcbnew.PAD_SetSize(self, *args)
14428
14429 def GetDelta(self, *args):
14430 r"""
14431 GetDelta(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I
14432 GetDelta(PAD self) -> VECTOR2I
14433 """
14434 return _pcbnew.PAD_GetDelta(self, *args)
14435
14436 def SetDelta(self, *args):
14437 r"""
14438 SetDelta(PAD self, PCB_LAYER_ID aLayer, VECTOR2I aSize)
14439 SetDelta(PAD self, VECTOR2I aSize)
14440 """
14441 return _pcbnew.PAD_SetDelta(self, *args)
14442
14443 def GetOffset(self, *args):
14444 r"""
14445 GetOffset(PAD self, PCB_LAYER_ID aLayer) -> VECTOR2I
14446 GetOffset(PAD self) -> VECTOR2I
14447 """
14448 return _pcbnew.PAD_GetOffset(self, *args)
14449
14450 def SetOffset(self, *args):
14451 r"""
14452 SetOffset(PAD self, PCB_LAYER_ID aLayer, VECTOR2I aOffset)
14453 SetOffset(PAD self, VECTOR2I aOffset)
14454 """
14455 return _pcbnew.PAD_SetOffset(self, *args)
14456
14458 r"""
14459 GetRoundRectCornerRadius(PAD self, PCB_LAYER_ID aLayer) -> int
14460 GetRoundRectCornerRadius(PAD self) -> double
14461 """
14462 return _pcbnew.PAD_GetRoundRectCornerRadius(self, *args)
14463
14465 r"""
14466 SetRoundRectCornerRadius(PAD self, PCB_LAYER_ID aLayer, double aRadius)
14467 SetRoundRectCornerRadius(PAD self, double aRadius)
14468 """
14469 return _pcbnew.PAD_SetRoundRectCornerRadius(self, *args)
14470
14471 def GetRoundRectRadiusRatio(self, *args):
14472 r"""
14473 GetRoundRectRadiusRatio(PAD self, PCB_LAYER_ID aLayer) -> double
14474 GetRoundRectRadiusRatio(PAD self) -> double
14475 """
14476 return _pcbnew.PAD_GetRoundRectRadiusRatio(self, *args)
14477
14478 def SetRoundRectRadiusRatio(self, *args):
14479 r"""
14480 SetRoundRectRadiusRatio(PAD self, PCB_LAYER_ID aLayer, double aRadiusScale)
14481 SetRoundRectRadiusRatio(PAD self, double aRatio)
14482 """
14483 return _pcbnew.PAD_SetRoundRectRadiusRatio(self, *args)
14484
14485 def GetChamferRectRatio(self, *args):
14486 r"""
14487 GetChamferRectRatio(PAD self, PCB_LAYER_ID aLayer) -> double
14488 GetChamferRectRatio(PAD self) -> double
14489 """
14490 return _pcbnew.PAD_GetChamferRectRatio(self, *args)
14491
14492 def SetChamferRectRatio(self, *args):
14493 r"""
14494 SetChamferRectRatio(PAD self, PCB_LAYER_ID aLayer, double aChamferScale)
14495 SetChamferRectRatio(PAD self, double aRatio)
14496 """
14497 return _pcbnew.PAD_SetChamferRectRatio(self, *args)
14498
14499 def GetChamferPositions(self, *args):
14500 r"""
14501 GetChamferPositions(PAD self, PCB_LAYER_ID aLayer) -> int
14502 GetChamferPositions(PAD self) -> int
14503 """
14504 return _pcbnew.PAD_GetChamferPositions(self, *args)
14505
14506 def SetChamferPositions(self, *args):
14507 r"""
14508 SetChamferPositions(PAD self, PCB_LAYER_ID aLayer, int aPositions)
14509 SetChamferPositions(PAD self, int aPositions)
14510 """
14511 return _pcbnew.PAD_SetChamferPositions(self, *args)
14512
14513
14514 # SetPadName() is the old name for PAD::SetName()
14515 # define it for compatibility
14516 def SetPadName(self, aName):
14517 return self.SetNumber(aName)
14518
14519 def SetName(self, aName):
14520 return self.SetNumber(aName)
14521
14522 # GetPadName() is the old name for PAD::GetName()
14523 # define it for compatibility
14524 def GetPadName(self):
14525 return self.GetNumber()
14526
14527 def GetName(self):
14528 return self.GetNumber()
14529
14530 # AddPrimitive() used to be multiple functions on the C++ side and this single Python function
14531 # was made to maintain compatibility with an even older version of the PAD class that had a
14532 # single function. Now we're back to a single function, but different, and Python scripts
14533 # have gotten used to this API, so keep compatibility with it
14534 def AddPrimitive(self, *args):
14535 if len(args) == 2:
14536 return self.AddPrimitivePoly(F_Cu, *args, True)
14537 elif len(args) == 3:
14538 if type(args[1] in [wxPoint,wxSize,VECTOR2I]):
14539 s = PCB_SHAPE(None, SHAPE_T_SEGMENT)
14540 s.SetStart(args[0])
14541 s.SetEnd(args[1])
14542 s.SetWidth(args[2])
14543 else:
14544 s = PCB_SHAPE(None, SHAPE_T_CIRCLE)
14545 s.SetCenter(args[0])
14546 s.SetRadius(args[1])
14547 s.SetWidth(args[2])
14548 elif len(args) == 4:
14549 s = PCB_SHAPE(None, SHAPE_T_ARC)
14550 s.SetCenter(args[0])
14551 s.SetStart(args[1])
14552 s.SetArcAngleAndEnd(args[2])
14553 s.SetWidth(args[3])
14554 elif len(args) == 5:
14555 s = PCB_SHAPE(None, SHAPE_T_BEZIER)
14556 s.SetStart(args[0])
14557 s.SetEnd(args[1])
14558 s.SetBezierC1(args[2])
14559 s.SetBezierC2(args[3])
14560 s.SetWidth(args[4])
14561 else:
14562 raise TypeError(f"Arguments not recognized; expected 2-5 args, got {len(args)}")
14563
14564 self.AddPrimitiveShape(s)
14565
14566 # GetCustomShapeAsPolygon() is the old accessor to get custom shapes
14567 def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER):
14568 polygon_set = SHAPE_POLY_SET()
14569 self.MergePrimitivesAsPolygon(F_Cu, polygon_set)
14570 return polygon_set
14571
14572 __swig_destroy__ = _pcbnew.delete_PAD
14573
14574# Register PAD in _pcbnew:
14575_pcbnew.PAD_swigregister(PAD)
14576ENDPOINT_START = _pcbnew.ENDPOINT_START
14577
14578ENDPOINT_END = _pcbnew.ENDPOINT_END
14579
14580VIATYPE_THROUGH = _pcbnew.VIATYPE_THROUGH
14581
14582VIATYPE_BLIND_BURIED = _pcbnew.VIATYPE_BLIND_BURIED
14583
14584VIATYPE_MICROVIA = _pcbnew.VIATYPE_MICROVIA
14585
14586VIATYPE_NOT_DEFINED = _pcbnew.VIATYPE_NOT_DEFINED
14587
14588TENTING_MODE_FROM_RULES = _pcbnew.TENTING_MODE_FROM_RULES
14589
14590TENTING_MODE_TENTED = _pcbnew.TENTING_MODE_TENTED
14591
14592TENTING_MODE_NOT_TENTED = _pcbnew.TENTING_MODE_NOT_TENTED
14593
14594UNDEFINED_DRILL_DIAMETER = _pcbnew.UNDEFINED_DRILL_DIAMETER
14595
14597 r"""Proxy of C++ PCB_TRACK class."""
14598
14599 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14600 __repr__ = _swig_repr
14601
14602 @staticmethod
14603 def ClassOf(aItem):
14604 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14605 return _pcbnew.PCB_TRACK_ClassOf(aItem)
14606
14607 def __init__(self, aParent, idtype=PCB_TRACE_T):
14608 r"""__init__(PCB_TRACK self, BOARD_ITEM aParent, KICAD_T idtype=PCB_TRACE_T) -> PCB_TRACK"""
14609 _pcbnew.PCB_TRACK_swiginit(self, _pcbnew.new_PCB_TRACK(aParent, idtype))
14610
14611 def SetWidth(self, aWidth):
14612 r"""SetWidth(PCB_TRACK self, int aWidth)"""
14613 return _pcbnew.PCB_TRACK_SetWidth(self, aWidth)
14614
14615 def GetWidth(self):
14616 r"""GetWidth(PCB_TRACK self) -> int"""
14617 return _pcbnew.PCB_TRACK_GetWidth(self)
14618
14619 def SetEnd(self, aEnd):
14620 r"""SetEnd(PCB_TRACK self, VECTOR2I aEnd)"""
14621 return _pcbnew.PCB_TRACK_SetEnd(self, aEnd)
14622
14623 def GetEnd(self):
14624 r"""GetEnd(PCB_TRACK self) -> VECTOR2I"""
14625 return _pcbnew.PCB_TRACK_GetEnd(self)
14626
14627 def SetStart(self, aStart):
14628 r"""SetStart(PCB_TRACK self, VECTOR2I aStart)"""
14629 return _pcbnew.PCB_TRACK_SetStart(self, aStart)
14630
14631 def GetStart(self):
14632 r"""GetStart(PCB_TRACK self) -> VECTOR2I"""
14633 return _pcbnew.PCB_TRACK_GetStart(self)
14634
14635 def SetStartX(self, aX):
14636 r"""SetStartX(PCB_TRACK self, int aX)"""
14637 return _pcbnew.PCB_TRACK_SetStartX(self, aX)
14638
14639 def SetStartY(self, aY):
14640 r"""SetStartY(PCB_TRACK self, int aY)"""
14641 return _pcbnew.PCB_TRACK_SetStartY(self, aY)
14642
14643 def GetStartX(self):
14644 r"""GetStartX(PCB_TRACK self) -> int"""
14645 return _pcbnew.PCB_TRACK_GetStartX(self)
14646
14647 def GetStartY(self):
14648 r"""GetStartY(PCB_TRACK self) -> int"""
14649 return _pcbnew.PCB_TRACK_GetStartY(self)
14650
14651 def SetEndX(self, aX):
14652 r"""SetEndX(PCB_TRACK self, int aX)"""
14653 return _pcbnew.PCB_TRACK_SetEndX(self, aX)
14654
14655 def SetEndY(self, aY):
14656 r"""SetEndY(PCB_TRACK self, int aY)"""
14657 return _pcbnew.PCB_TRACK_SetEndY(self, aY)
14658
14659 def GetEndX(self):
14660 r"""GetEndX(PCB_TRACK self) -> int"""
14661 return _pcbnew.PCB_TRACK_GetEndX(self)
14662
14663 def GetEndY(self):
14664 r"""GetEndY(PCB_TRACK self) -> int"""
14665 return _pcbnew.PCB_TRACK_GetEndY(self)
14666
14667 def GetEndPoint(self, aEndPoint):
14668 r"""GetEndPoint(PCB_TRACK self, ENDPOINT_T aEndPoint) -> VECTOR2I"""
14669 return _pcbnew.PCB_TRACK_GetEndPoint(self, aEndPoint)
14670
14671 def SetHasSolderMask(self, aVal):
14672 r"""SetHasSolderMask(PCB_TRACK self, bool aVal)"""
14673 return _pcbnew.PCB_TRACK_SetHasSolderMask(self, aVal)
14674
14675 def HasSolderMask(self):
14676 r"""HasSolderMask(PCB_TRACK self) -> bool"""
14677 return _pcbnew.PCB_TRACK_HasSolderMask(self)
14678
14679 def SetLocalSolderMaskMargin(self, aMargin):
14680 r"""SetLocalSolderMaskMargin(PCB_TRACK self, std::optional< int > aMargin)"""
14681 return _pcbnew.PCB_TRACK_SetLocalSolderMaskMargin(self, aMargin)
14682
14684 r"""GetLocalSolderMaskMargin(PCB_TRACK self) -> std::optional< int >"""
14685 return _pcbnew.PCB_TRACK_GetLocalSolderMaskMargin(self)
14686
14688 r"""GetSolderMaskExpansion(PCB_TRACK self) -> int"""
14689 return _pcbnew.PCB_TRACK_GetSolderMaskExpansion(self)
14690
14691 def GetLength(self):
14692 r"""GetLength(PCB_TRACK self) -> double"""
14693 return _pcbnew.PCB_TRACK_GetLength(self)
14694
14695 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
14696 r"""TransformShapeToPolygon(PCB_TRACK self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
14697 return _pcbnew.PCB_TRACK_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
14698
14699 def GetEffectiveShape(self, *args):
14700 r"""GetEffectiveShape(PCB_TRACK self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14701 return _pcbnew.PCB_TRACK_GetEffectiveShape(self, *args)
14702
14703 def IsPointOnEnds(self, point, min_dist=0):
14704 r"""IsPointOnEnds(PCB_TRACK self, VECTOR2I point, int min_dist=0) -> EDA_ITEM_FLAGS"""
14705 return _pcbnew.PCB_TRACK_IsPointOnEnds(self, point, min_dist)
14706
14707 def IsNull(self):
14708 r"""IsNull(PCB_TRACK self) -> bool"""
14709 return _pcbnew.PCB_TRACK_IsNull(self)
14710
14711 def HitTest(self, *args):
14712 r"""
14713 HitTest(PCB_TRACK self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14714 HitTest(PCB_TRACK self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
14715 """
14716 return _pcbnew.PCB_TRACK_HitTest(self, *args)
14717
14718 def ApproxCollinear(self, aTrack):
14719 r"""ApproxCollinear(PCB_TRACK self, PCB_TRACK aTrack) -> bool"""
14720 return _pcbnew.PCB_TRACK_ApproxCollinear(self, aTrack)
14721
14722 def GetWidthConstraint(self, aSource=None):
14723 r"""GetWidthConstraint(PCB_TRACK self, wxString aSource=None) -> MINOPTMAX< int >"""
14724 return _pcbnew.PCB_TRACK_GetWidthConstraint(self, aSource)
14725
14726 def ViewGetLOD(self, aLayer, aView):
14727 r"""ViewGetLOD(PCB_TRACK self, int aLayer, KIGFX::VIEW const * aView) -> double"""
14728 return _pcbnew.PCB_TRACK_ViewGetLOD(self, aLayer, aView)
14729
14730 def __eq__(self, *args):
14731 r"""
14732 __eq__(PCB_TRACK self, BOARD_ITEM aOther) -> bool
14733 __eq__(PCB_TRACK self, PCB_TRACK aOther) -> bool
14734 """
14735 return _pcbnew.PCB_TRACK___eq__(self, *args)
14736
14737 def Serialize(self, aContainer):
14738 r"""Serialize(PCB_TRACK self, google::protobuf::Any & aContainer)"""
14739 return _pcbnew.PCB_TRACK_Serialize(self, aContainer)
14740
14741 def Deserialize(self, aContainer):
14742 r"""Deserialize(PCB_TRACK self, google::protobuf::Any const & aContainer) -> bool"""
14743 return _pcbnew.PCB_TRACK_Deserialize(self, aContainer)
14744 __swig_destroy__ = _pcbnew.delete_PCB_TRACK
14745
14746# Register PCB_TRACK in _pcbnew:
14747_pcbnew.PCB_TRACK_swigregister(PCB_TRACK)
14748PAD_SHAPE_RECT = cvar.PAD_SHAPE_RECT
14749
14751 r"""Proxy of C++ PCB_ARC class."""
14752
14753 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14754 __repr__ = _swig_repr
14755
14756 def __init__(self, *args):
14757 r"""
14758 __init__(PCB_ARC self, BOARD_ITEM aParent) -> PCB_ARC
14759 __init__(PCB_ARC self, BOARD_ITEM aParent, SHAPE_ARC aArc) -> PCB_ARC
14760 """
14761 _pcbnew.PCB_ARC_swiginit(self, _pcbnew.new_PCB_ARC(*args))
14762
14763 @staticmethod
14764 def ClassOf(aItem):
14765 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14766 return _pcbnew.PCB_ARC_ClassOf(aItem)
14767
14768 def SetMid(self, aMid):
14769 r"""SetMid(PCB_ARC self, VECTOR2I aMid)"""
14770 return _pcbnew.PCB_ARC_SetMid(self, aMid)
14771
14772 def GetMid(self):
14773 r"""GetMid(PCB_ARC self) -> VECTOR2I"""
14774 return _pcbnew.PCB_ARC_GetMid(self)
14775
14776 def GetRadius(self):
14777 r"""GetRadius(PCB_ARC self) -> double"""
14778 return _pcbnew.PCB_ARC_GetRadius(self)
14779
14780 def GetAngle(self):
14781 r"""GetAngle(PCB_ARC self) -> EDA_ANGLE"""
14782 return _pcbnew.PCB_ARC_GetAngle(self)
14783
14785 r"""GetArcAngleStart(PCB_ARC self) -> EDA_ANGLE"""
14786 return _pcbnew.PCB_ARC_GetArcAngleStart(self)
14787
14789 r"""GetArcAngleEnd(PCB_ARC self) -> EDA_ANGLE"""
14790 return _pcbnew.PCB_ARC_GetArcAngleEnd(self)
14791
14792 def HitTest(self, *args):
14793 r"""
14794 HitTest(PCB_ARC self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14795 HitTest(PCB_ARC self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
14796 """
14797 return _pcbnew.PCB_ARC_HitTest(self, *args)
14798
14799 def IsCCW(self):
14800 r"""IsCCW(PCB_ARC self) -> bool"""
14801 return _pcbnew.PCB_ARC_IsCCW(self)
14802
14803 def GetEffectiveShape(self, *args):
14804 r"""GetEffectiveShape(PCB_ARC self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14805 return _pcbnew.PCB_ARC_GetEffectiveShape(self, *args)
14806
14807 def IsDegenerated(self, aThreshold=5):
14808 r"""IsDegenerated(PCB_ARC self, int aThreshold=5) -> bool"""
14809 return _pcbnew.PCB_ARC_IsDegenerated(self, aThreshold)
14810
14811 def __eq__(self, *args):
14812 r"""
14813 __eq__(PCB_ARC self, PCB_ARC aOther) -> bool
14814 __eq__(PCB_ARC self, BOARD_ITEM aBoardItem) -> bool
14815 """
14816 return _pcbnew.PCB_ARC___eq__(self, *args)
14817
14818 def Serialize(self, aContainer):
14819 r"""Serialize(PCB_ARC self, google::protobuf::Any & aContainer)"""
14820 return _pcbnew.PCB_ARC_Serialize(self, aContainer)
14821
14822 def Deserialize(self, aContainer):
14823 r"""Deserialize(PCB_ARC self, google::protobuf::Any const & aContainer) -> bool"""
14824 return _pcbnew.PCB_ARC_Deserialize(self, aContainer)
14825 __swig_destroy__ = _pcbnew.delete_PCB_ARC
14826
14827# Register PCB_ARC in _pcbnew:
14828_pcbnew.PCB_ARC_swigregister(PCB_ARC)
14830 r"""Proxy of C++ PCB_VIA class."""
14831
14832 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14833 __repr__ = _swig_repr
14834
14835 @staticmethod
14836 def ClassOf(aItem):
14837 r"""ClassOf(EDA_ITEM aItem) -> bool"""
14838 return _pcbnew.PCB_VIA_ClassOf(aItem)
14839
14840 def __init__(self, *args):
14841 r"""
14842 __init__(PCB_VIA self, BOARD_ITEM aParent) -> PCB_VIA
14843 __init__(PCB_VIA self, PCB_VIA aOther) -> PCB_VIA
14844 """
14845 _pcbnew.PCB_VIA_swiginit(self, _pcbnew.new_PCB_VIA(*args))
14846
14847 def HasValidLayerPair(self, aCopperLayerCount):
14848 r"""HasValidLayerPair(PCB_VIA self, int aCopperLayerCount) -> bool"""
14849 return _pcbnew.PCB_VIA_HasValidLayerPair(self, aCopperLayerCount)
14850
14851 def GetViaType(self):
14852 r"""GetViaType(PCB_VIA self) -> VIATYPE"""
14853 return _pcbnew.PCB_VIA_GetViaType(self)
14854
14855 def SetViaType(self, aViaType):
14856 r"""SetViaType(PCB_VIA self, VIATYPE aViaType)"""
14857 return _pcbnew.PCB_VIA_SetViaType(self, aViaType)
14858
14859 def Padstack(self, *args):
14860 r"""
14861 Padstack(PCB_VIA self) -> PADSTACK
14862 Padstack(PCB_VIA self) -> PADSTACK
14863 """
14864 return _pcbnew.PCB_VIA_Padstack(self, *args)
14865
14866 def SetPadstack(self, aPadstack):
14867 r"""SetPadstack(PCB_VIA self, PADSTACK aPadstack)"""
14868 return _pcbnew.PCB_VIA_SetPadstack(self, aPadstack)
14869
14870 def SetWidth(self, *args):
14871 r"""
14872 SetWidth(PCB_VIA self, int aWidth)
14873 SetWidth(PCB_VIA self, PCB_LAYER_ID aLayer, int aWidth)
14874 """
14875 return _pcbnew.PCB_VIA_SetWidth(self, *args)
14876
14877 def GetWidth(self, *args):
14878 r"""
14879 GetWidth(PCB_VIA self) -> int
14880 GetWidth(PCB_VIA self, PCB_LAYER_ID aLayer) -> int
14881 """
14882 return _pcbnew.PCB_VIA_GetWidth(self, *args)
14883
14884 def SetFrontWidth(self, aWidth):
14885 r"""SetFrontWidth(PCB_VIA self, int aWidth)"""
14886 return _pcbnew.PCB_VIA_SetFrontWidth(self, aWidth)
14887
14888 def GetFrontWidth(self):
14889 r"""GetFrontWidth(PCB_VIA self) -> int"""
14890 return _pcbnew.PCB_VIA_GetFrontWidth(self)
14891
14892 def GetWidthConstraint(self, aSource=None):
14893 r"""GetWidthConstraint(PCB_VIA self, wxString aSource=None) -> MINOPTMAX< int >"""
14894 return _pcbnew.PCB_VIA_GetWidthConstraint(self, aSource)
14895
14896 def GetDrillConstraint(self, aSource=None):
14897 r"""GetDrillConstraint(PCB_VIA self, wxString aSource=None) -> MINOPTMAX< int >"""
14898 return _pcbnew.PCB_VIA_GetDrillConstraint(self, aSource)
14899
14900 def SetFrontTentingMode(self, aMode):
14901 r"""SetFrontTentingMode(PCB_VIA self, TENTING_MODE aMode)"""
14902 return _pcbnew.PCB_VIA_SetFrontTentingMode(self, aMode)
14903
14905 r"""GetFrontTentingMode(PCB_VIA self) -> TENTING_MODE"""
14906 return _pcbnew.PCB_VIA_GetFrontTentingMode(self)
14907
14908 def SetBackTentingMode(self, aMode):
14909 r"""SetBackTentingMode(PCB_VIA self, TENTING_MODE aMode)"""
14910 return _pcbnew.PCB_VIA_SetBackTentingMode(self, aMode)
14911
14913 r"""GetBackTentingMode(PCB_VIA self) -> TENTING_MODE"""
14914 return _pcbnew.PCB_VIA_GetBackTentingMode(self)
14915
14917 r"""GetSolderMaskExpansion(PCB_VIA self) -> int"""
14918 return _pcbnew.PCB_VIA_GetSolderMaskExpansion(self)
14919
14920 def SetLayerPair(self, aTopLayer, aBottomLayer):
14921 r"""SetLayerPair(PCB_VIA self, PCB_LAYER_ID aTopLayer, PCB_LAYER_ID aBottomLayer)"""
14922 return _pcbnew.PCB_VIA_SetLayerPair(self, aTopLayer, aBottomLayer)
14923
14924 def SetBottomLayer(self, aLayer):
14925 r"""SetBottomLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
14926 return _pcbnew.PCB_VIA_SetBottomLayer(self, aLayer)
14927
14928 def SetTopLayer(self, aLayer):
14929 r"""SetTopLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
14930 return _pcbnew.PCB_VIA_SetTopLayer(self, aLayer)
14931
14932 def LayerPair(self, top_layer, bottom_layer):
14933 r"""LayerPair(PCB_VIA self, PCB_LAYER_ID * top_layer, PCB_LAYER_ID * bottom_layer)"""
14934 return _pcbnew.PCB_VIA_LayerPair(self, top_layer, bottom_layer)
14935
14936 def TopLayer(self):
14937 r"""TopLayer(PCB_VIA self) -> PCB_LAYER_ID"""
14938 return _pcbnew.PCB_VIA_TopLayer(self)
14939
14940 def BottomLayer(self):
14941 r"""BottomLayer(PCB_VIA self) -> PCB_LAYER_ID"""
14942 return _pcbnew.PCB_VIA_BottomLayer(self)
14943
14945 r"""SanitizeLayers(PCB_VIA self)"""
14946 return _pcbnew.PCB_VIA_SanitizeLayers(self)
14947
14948 def HitTest(self, *args):
14949 r"""
14950 HitTest(PCB_VIA self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14951 HitTest(PCB_VIA self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
14952 """
14953 return _pcbnew.PCB_VIA_HitTest(self, *args)
14954
14955 def ViewGetLOD(self, aLayer, aView):
14956 r"""ViewGetLOD(PCB_VIA self, int aLayer, KIGFX::VIEW const * aView) -> double"""
14957 return _pcbnew.PCB_VIA_ViewGetLOD(self, aLayer, aView)
14958
14959 def GetMinAnnulus(self, aLayer, aSource):
14960 r"""GetMinAnnulus(PCB_VIA self, PCB_LAYER_ID aLayer, wxString aSource) -> int"""
14961 return _pcbnew.PCB_VIA_GetMinAnnulus(self, aLayer, aSource)
14962
14963 def SetRemoveUnconnected(self, aSet):
14964 r"""SetRemoveUnconnected(PCB_VIA self, bool aSet)"""
14965 return _pcbnew.PCB_VIA_SetRemoveUnconnected(self, aSet)
14966
14968 r"""GetRemoveUnconnected(PCB_VIA self) -> bool"""
14969 return _pcbnew.PCB_VIA_GetRemoveUnconnected(self)
14970
14971 def SetKeepStartEnd(self, aSet):
14972 r"""SetKeepStartEnd(PCB_VIA self, bool aSet)"""
14973 return _pcbnew.PCB_VIA_SetKeepStartEnd(self, aSet)
14974
14976 r"""GetKeepStartEnd(PCB_VIA self) -> bool"""
14977 return _pcbnew.PCB_VIA_GetKeepStartEnd(self)
14978
14979 def ConditionallyFlashed(self, aLayer):
14980 r"""ConditionallyFlashed(PCB_VIA self, PCB_LAYER_ID aLayer) -> bool"""
14981 return _pcbnew.PCB_VIA_ConditionallyFlashed(self, aLayer)
14982
14983 def FlashLayer(self, *args):
14984 r"""
14985 FlashLayer(PCB_VIA self, int aLayer) -> bool
14986 FlashLayer(PCB_VIA self, LSET aLayers) -> bool
14987 """
14988 return _pcbnew.PCB_VIA_FlashLayer(self, *args)
14989
14990 def GetOutermostConnectedLayers(self, aTopmost, aBottommost):
14991 r"""GetOutermostConnectedLayers(PCB_VIA self, PCB_LAYER_ID * aTopmost, PCB_LAYER_ID * aBottommost)"""
14992 return _pcbnew.PCB_VIA_GetOutermostConnectedLayers(self, aTopmost, aBottommost)
14993
14994 def SetDrill(self, aDrill):
14995 r"""SetDrill(PCB_VIA self, int aDrill)"""
14996 return _pcbnew.PCB_VIA_SetDrill(self, aDrill)
14997
14998 def GetDrill(self):
14999 r"""GetDrill(PCB_VIA self) -> int"""
15000 return _pcbnew.PCB_VIA_GetDrill(self)
15001
15002 def GetDrillValue(self):
15003 r"""GetDrillValue(PCB_VIA self) -> int"""
15004 return _pcbnew.PCB_VIA_GetDrillValue(self)
15005
15007 r"""SetDrillDefault(PCB_VIA self)"""
15008 return _pcbnew.PCB_VIA_SetDrillDefault(self)
15009
15010 def GetIsFree(self):
15011 r"""GetIsFree(PCB_VIA self) -> bool"""
15012 return _pcbnew.PCB_VIA_GetIsFree(self)
15013
15014 def SetIsFree(self, aFree=True):
15015 r"""SetIsFree(PCB_VIA self, bool aFree=True)"""
15016 return _pcbnew.PCB_VIA_SetIsFree(self, aFree)
15017
15018 def GetEffectiveShape(self, *args):
15019 r"""GetEffectiveShape(PCB_VIA self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15020 return _pcbnew.PCB_VIA_GetEffectiveShape(self, *args)
15021
15023 r"""ClearZoneLayerOverrides(PCB_VIA self)"""
15024 return _pcbnew.PCB_VIA_ClearZoneLayerOverrides(self)
15025
15026 def GetZoneLayerOverride(self, aLayer):
15027 r"""GetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
15028 return _pcbnew.PCB_VIA_GetZoneLayerOverride(self, aLayer)
15029
15030 def SetZoneLayerOverride(self, aLayer, aOverride):
15031 r"""SetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
15032 return _pcbnew.PCB_VIA_SetZoneLayerOverride(self, aLayer, aOverride)
15033
15034 def __eq__(self, *args):
15035 r"""
15036 __eq__(PCB_VIA self, PCB_VIA aOther) -> bool
15037 __eq__(PCB_VIA self, BOARD_ITEM aOther) -> bool
15038 """
15039 return _pcbnew.PCB_VIA___eq__(self, *args)
15040
15041 def Serialize(self, aContainer):
15042 r"""Serialize(PCB_VIA self, google::protobuf::Any & aContainer)"""
15043 return _pcbnew.PCB_VIA_Serialize(self, aContainer)
15044
15045 def Deserialize(self, aContainer):
15046 r"""Deserialize(PCB_VIA self, google::protobuf::Any const & aContainer) -> bool"""
15047 return _pcbnew.PCB_VIA_Deserialize(self, aContainer)
15048 __swig_destroy__ = _pcbnew.delete_PCB_VIA
15049
15050# Register PCB_VIA in _pcbnew:
15051_pcbnew.PCB_VIA_swigregister(PCB_VIA)
15053 r"""Proxy of C++ ISOLATED_ISLANDS class."""
15054
15055 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15056 __repr__ = _swig_repr
15057 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)>)>""")
15058 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)>)>""")
15059
15060 def __init__(self):
15061 r"""__init__(ISOLATED_ISLANDS self) -> ISOLATED_ISLANDS"""
15062 _pcbnew.ISOLATED_ISLANDS_swiginit(self, _pcbnew.new_ISOLATED_ISLANDS())
15063 __swig_destroy__ = _pcbnew.delete_ISOLATED_ISLANDS
15064
15065# Register ISOLATED_ISLANDS in _pcbnew:
15066_pcbnew.ISOLATED_ISLANDS_swigregister(ISOLATED_ISLANDS)
15068 r"""Proxy of C++ ZONE class."""
15069
15070 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15071 __repr__ = _swig_repr
15072
15073 def __init__(self, *args):
15074 r"""
15075 __init__(ZONE self, BOARD_ITEM_CONTAINER parent) -> ZONE
15076 __init__(ZONE self, ZONE aZone) -> ZONE
15077 """
15078 _pcbnew.ZONE_swiginit(self, _pcbnew.new_ZONE(*args))
15079 __swig_destroy__ = _pcbnew.delete_ZONE
15080
15081 @staticmethod
15082 def ClassOf(aItem):
15083 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15084 return _pcbnew.ZONE_ClassOf(aItem)
15085
15086 def Serialize(self, aContainer):
15087 r"""Serialize(ZONE self, google::protobuf::Any & aContainer)"""
15088 return _pcbnew.ZONE_Serialize(self, aContainer)
15089
15090 def Deserialize(self, aContainer):
15091 r"""Deserialize(ZONE self, google::protobuf::Any const & aContainer) -> bool"""
15092 return _pcbnew.ZONE_Deserialize(self, aContainer)
15093
15095 r"""InitDataFromSrcInCopyCtor(ZONE self, ZONE aZone)"""
15096 return _pcbnew.ZONE_InitDataFromSrcInCopyCtor(self, aZone)
15097
15098 def IsConflicting(self):
15099 r"""IsConflicting(ZONE self) -> bool"""
15100 return _pcbnew.ZONE_IsConflicting(self)
15101
15102 def SetAssignedPriority(self, aPriority):
15103 r"""SetAssignedPriority(ZONE self, unsigned int aPriority)"""
15104 return _pcbnew.ZONE_SetAssignedPriority(self, aPriority)
15105
15107 r"""GetAssignedPriority(ZONE self) -> unsigned int"""
15108 return _pcbnew.ZONE_GetAssignedPriority(self)
15109
15110 def HigherPriority(self, aOther):
15111 r"""HigherPriority(ZONE self, ZONE aOther) -> bool"""
15112 return _pcbnew.ZONE_HigherPriority(self, aOther)
15113
15114 def SameNet(self, aOther):
15115 r"""SameNet(ZONE self, ZONE aOther) -> bool"""
15116 return _pcbnew.ZONE_SameNet(self, aOther)
15117
15119 r"""SetLayerSetAndRemoveUnusedFills(ZONE self, LSET aLayerSet)"""
15120 return _pcbnew.ZONE_SetLayerSetAndRemoveUnusedFills(self, aLayerSet)
15121
15122 def GetZoneName(self):
15123 r"""GetZoneName(ZONE self) -> wxString"""
15124 return _pcbnew.ZONE_GetZoneName(self)
15125
15126 def SetZoneName(self, aName):
15127 r"""SetZoneName(ZONE self, wxString aName)"""
15128 return _pcbnew.ZONE_SetZoneName(self, aName)
15129
15131 r"""CacheBoundingBox(ZONE self)"""
15132 return _pcbnew.ZONE_CacheBoundingBox(self)
15133
15134 def SetLocalClearance(self, aClearance):
15135 r"""SetLocalClearance(ZONE self, std::optional< int > aClearance)"""
15136 return _pcbnew.ZONE_SetLocalClearance(self, aClearance)
15137
15138 def GetLocalClearance(self, *args):
15139 r"""
15140 GetLocalClearance(ZONE self) -> std::optional< int >
15141 GetLocalClearance(ZONE self, wxString aSource) -> std::optional< int >
15142 """
15143 return _pcbnew.ZONE_GetLocalClearance(self, *args)
15144
15145 def GetFirstLayer(self):
15146 r"""GetFirstLayer(ZONE self) -> PCB_LAYER_ID"""
15147 return _pcbnew.ZONE_GetFirstLayer(self)
15148
15149 def ViewGetLOD(self, aLayer, aView):
15150 r"""ViewGetLOD(ZONE self, int aLayer, KIGFX::VIEW const * aView) -> double"""
15151 return _pcbnew.ZONE_ViewGetLOD(self, aLayer, aView)
15152
15153 def SetFillMode(self, aFillMode):
15154 r"""SetFillMode(ZONE self, ZONE_FILL_MODE aFillMode)"""
15155 return _pcbnew.ZONE_SetFillMode(self, aFillMode)
15156
15157 def GetFillMode(self):
15158 r"""GetFillMode(ZONE self) -> ZONE_FILL_MODE"""
15159 return _pcbnew.ZONE_GetFillMode(self)
15160
15161 def SetThermalReliefGap(self, aThermalReliefGap):
15162 r"""SetThermalReliefGap(ZONE self, int aThermalReliefGap)"""
15163 return _pcbnew.ZONE_SetThermalReliefGap(self, aThermalReliefGap)
15164
15165 def GetThermalReliefGap(self, *args):
15166 r"""
15167 GetThermalReliefGap(ZONE self) -> int
15168 GetThermalReliefGap(ZONE self, PAD aPad, wxString aSource=None) -> int
15169 """
15170 return _pcbnew.ZONE_GetThermalReliefGap(self, *args)
15171
15172 def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth):
15173 r"""SetThermalReliefSpokeWidth(ZONE self, int aThermalReliefSpokeWidth)"""
15174 return _pcbnew.ZONE_SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
15175
15177 r"""GetThermalReliefSpokeWidth(ZONE self) -> int"""
15178 return _pcbnew.ZONE_GetThermalReliefSpokeWidth(self)
15179
15181 r"""CalculateFilledArea(ZONE self) -> double"""
15182 return _pcbnew.ZONE_CalculateFilledArea(self)
15183
15185 r"""CalculateOutlineArea(ZONE self) -> double"""
15186 return _pcbnew.ZONE_CalculateOutlineArea(self)
15187
15188 def GetFilledArea(self):
15189 r"""GetFilledArea(ZONE self) -> double"""
15190 return _pcbnew.ZONE_GetFilledArea(self)
15191
15193 r"""GetOutlineArea(ZONE self) -> double"""
15194 return _pcbnew.ZONE_GetOutlineArea(self)
15195
15196 def GetLock(self):
15197 r"""GetLock(ZONE self) -> std::mutex &"""
15198 return _pcbnew.ZONE_GetLock(self)
15199
15200 def GetFillFlag(self, aLayer):
15201 r"""GetFillFlag(ZONE self, PCB_LAYER_ID aLayer) -> int"""
15202 return _pcbnew.ZONE_GetFillFlag(self, aLayer)
15203
15204 def SetFillFlag(self, aLayer, aFlag):
15205 r"""SetFillFlag(ZONE self, PCB_LAYER_ID aLayer, bool aFlag)"""
15206 return _pcbnew.ZONE_SetFillFlag(self, aLayer, aFlag)
15207
15208 def IsFilled(self):
15209 r"""IsFilled(ZONE self) -> bool"""
15210 return _pcbnew.ZONE_IsFilled(self)
15211
15212 def SetIsFilled(self, isFilled):
15213 r"""SetIsFilled(ZONE self, bool isFilled)"""
15214 return _pcbnew.ZONE_SetIsFilled(self, isFilled)
15215
15216 def NeedRefill(self):
15217 r"""NeedRefill(ZONE self) -> bool"""
15218 return _pcbnew.ZONE_NeedRefill(self)
15219
15220 def SetNeedRefill(self, aNeedRefill):
15221 r"""SetNeedRefill(ZONE self, bool aNeedRefill)"""
15222 return _pcbnew.ZONE_SetNeedRefill(self, aNeedRefill)
15223
15225 r"""GetPadConnection(ZONE self) -> ZONE_CONNECTION"""
15226 return _pcbnew.ZONE_GetPadConnection(self)
15227
15228 def SetPadConnection(self, aPadConnection):
15229 r"""SetPadConnection(ZONE self, ZONE_CONNECTION aPadConnection)"""
15230 return _pcbnew.ZONE_SetPadConnection(self, aPadConnection)
15231
15233 r"""GetMinThickness(ZONE self) -> int"""
15234 return _pcbnew.ZONE_GetMinThickness(self)
15235
15236 def SetMinThickness(self, aMinThickness):
15237 r"""SetMinThickness(ZONE self, int aMinThickness)"""
15238 return _pcbnew.ZONE_SetMinThickness(self, aMinThickness)
15239
15241 r"""GetHatchThickness(ZONE self) -> int"""
15242 return _pcbnew.ZONE_GetHatchThickness(self)
15243
15244 def SetHatchThickness(self, aThickness):
15245 r"""SetHatchThickness(ZONE self, int aThickness)"""
15246 return _pcbnew.ZONE_SetHatchThickness(self, aThickness)
15247
15248 def GetHatchGap(self):
15249 r"""GetHatchGap(ZONE self) -> int"""
15250 return _pcbnew.ZONE_GetHatchGap(self)
15251
15252 def SetHatchGap(self, aStep):
15253 r"""SetHatchGap(ZONE self, int aStep)"""
15254 return _pcbnew.ZONE_SetHatchGap(self, aStep)
15255
15257 r"""GetHatchOrientation(ZONE self) -> EDA_ANGLE"""
15258 return _pcbnew.ZONE_GetHatchOrientation(self)
15259
15260 def SetHatchOrientation(self, aStep):
15261 r"""SetHatchOrientation(ZONE self, EDA_ANGLE aStep)"""
15262 return _pcbnew.ZONE_SetHatchOrientation(self, aStep)
15263
15265 r"""GetHatchSmoothingLevel(ZONE self) -> int"""
15266 return _pcbnew.ZONE_GetHatchSmoothingLevel(self)
15267
15268 def SetHatchSmoothingLevel(self, aLevel):
15269 r"""SetHatchSmoothingLevel(ZONE self, int aLevel)"""
15270 return _pcbnew.ZONE_SetHatchSmoothingLevel(self, aLevel)
15271
15273 r"""GetHatchSmoothingValue(ZONE self) -> double"""
15274 return _pcbnew.ZONE_GetHatchSmoothingValue(self)
15275
15276 def SetHatchSmoothingValue(self, aValue):
15277 r"""SetHatchSmoothingValue(ZONE self, double aValue)"""
15278 return _pcbnew.ZONE_SetHatchSmoothingValue(self, aValue)
15279
15281 r"""GetHatchHoleMinArea(ZONE self) -> double"""
15282 return _pcbnew.ZONE_GetHatchHoleMinArea(self)
15283
15284 def SetHatchHoleMinArea(self, aPct):
15285 r"""SetHatchHoleMinArea(ZONE self, double aPct)"""
15286 return _pcbnew.ZONE_SetHatchHoleMinArea(self, aPct)
15287
15289 r"""GetHatchBorderAlgorithm(ZONE self) -> int"""
15290 return _pcbnew.ZONE_GetHatchBorderAlgorithm(self)
15291
15292 def SetHatchBorderAlgorithm(self, aAlgo):
15293 r"""SetHatchBorderAlgorithm(ZONE self, int aAlgo)"""
15294 return _pcbnew.ZONE_SetHatchBorderAlgorithm(self, aAlgo)
15295
15297 r"""GetSelectedCorner(ZONE self) -> int"""
15298 return _pcbnew.ZONE_GetSelectedCorner(self)
15299
15300 def SetSelectedCorner(self, aCorner):
15301 r"""SetSelectedCorner(ZONE self, int aCorner)"""
15302 return _pcbnew.ZONE_SetSelectedCorner(self, aCorner)
15303
15304 def GetLocalFlags(self):
15305 r"""GetLocalFlags(ZONE self) -> int"""
15306 return _pcbnew.ZONE_GetLocalFlags(self)
15307
15308 def SetLocalFlags(self, aFlags):
15309 r"""SetLocalFlags(ZONE self, int aFlags)"""
15310 return _pcbnew.ZONE_SetLocalFlags(self, aFlags)
15311
15312 def Outline(self, *args):
15313 r"""
15314 Outline(ZONE self) -> SHAPE_POLY_SET
15315 Outline(ZONE self) -> SHAPE_POLY_SET
15316 """
15317 return _pcbnew.ZONE_Outline(self, *args)
15318
15319 def SetOutline(self, aOutline):
15320 r"""SetOutline(ZONE self, SHAPE_POLY_SET aOutline)"""
15321 return _pcbnew.ZONE_SetOutline(self, aOutline)
15322
15323 def GetEffectiveShape(self, *args):
15324 r"""GetEffectiveShape(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15325 return _pcbnew.ZONE_GetEffectiveShape(self, *args)
15326
15327 def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0):
15328 r"""HitTestFilledArea(ZONE self, PCB_LAYER_ID aLayer, VECTOR2I aRefPos, int aAccuracy=0) -> bool"""
15329 return _pcbnew.ZONE_HitTestFilledArea(self, aLayer, aRefPos, aAccuracy)
15330
15331 def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None):
15332 r"""HitTestCutout(ZONE self, VECTOR2I aRefPos, int * aOutlineIdx=None, int * aHoleIdx=None) -> bool"""
15333 return _pcbnew.ZONE_HitTestCutout(self, aRefPos, aOutlineIdx, aHoleIdx)
15334
15335 def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones):
15336 r"""GetInteractingZones(ZONE self, PCB_LAYER_ID aLayer, ZONES aSameNetCollidingZones, ZONES aOtherNetIntersectingZones)"""
15337 return _pcbnew.ZONE_GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
15338
15339 def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer):
15340 r"""TransformSolidAreasShapesToPolygon(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBuffer)"""
15341 return _pcbnew.ZONE_TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
15342
15343 def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline):
15344 r"""TransformSmoothedOutlineToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, SHAPE_POLY_SET aBoardOutline)"""
15345 return _pcbnew.ZONE_TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
15346
15347 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
15348 r"""TransformShapeToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
15349 return _pcbnew.ZONE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
15350
15351 def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None):
15352 r"""HitTestForCorner(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
15353 return _pcbnew.ZONE_HitTestForCorner(self, refPos, aAccuracy, aCornerHit)
15354
15355 def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None):
15356 r"""HitTestForEdge(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
15357 return _pcbnew.ZONE_HitTestForEdge(self, refPos, aAccuracy, aCornerHit)
15358
15359 def HitTest(self, *args):
15360 r"""
15361 HitTest(ZONE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
15362 HitTest(ZONE self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
15363 """
15364 return _pcbnew.ZONE_HitTest(self, *args)
15365
15366 def UnFill(self):
15367 r"""UnFill(ZONE self) -> bool"""
15368 return _pcbnew.ZONE_UnFill(self)
15369
15370 def MoveEdge(self, offset, aEdge):
15371 r"""MoveEdge(ZONE self, VECTOR2I offset, int aEdge)"""
15372 return _pcbnew.ZONE_MoveEdge(self, offset, aEdge)
15373
15374 def GetNumCorners(self):
15375 r"""GetNumCorners(ZONE self) -> int"""
15376 return _pcbnew.ZONE_GetNumCorners(self)
15377
15378 def Iterate(self):
15379 r"""Iterate(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
15380 return _pcbnew.ZONE_Iterate(self)
15381
15383 r"""IterateWithHoles(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
15384 return _pcbnew.ZONE_IterateWithHoles(self)
15385
15387 r"""CIterateWithHoles(ZONE self) -> SHAPE_POLY_SET::CONST_ITERATOR"""
15388 return _pcbnew.ZONE_CIterateWithHoles(self)
15389
15391 r"""RemoveAllContours(ZONE self)"""
15392 return _pcbnew.ZONE_RemoveAllContours(self)
15393
15394 def GetCornerPosition(self, aCornerIndex):
15395 r"""GetCornerPosition(ZONE self, int aCornerIndex) -> VECTOR2I"""
15396 return _pcbnew.ZONE_GetCornerPosition(self, aCornerIndex)
15397
15398 def SetCornerPosition(self, aCornerIndex, new_pos):
15399 r"""SetCornerPosition(ZONE self, int aCornerIndex, VECTOR2I new_pos)"""
15400 return _pcbnew.ZONE_SetCornerPosition(self, aCornerIndex, new_pos)
15401
15402 def NewHole(self):
15403 r"""NewHole(ZONE self)"""
15404 return _pcbnew.ZONE_NewHole(self)
15405
15406 def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False):
15407 r"""AppendCorner(ZONE self, VECTOR2I aPosition, int aHoleIdx, bool aAllowDuplication=False) -> bool"""
15408 return _pcbnew.ZONE_AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication)
15409
15410 def GetHatchStyle(self):
15411 r"""GetHatchStyle(ZONE self) -> ZONE_BORDER_DISPLAY_STYLE"""
15412 return _pcbnew.ZONE_GetHatchStyle(self)
15413
15414 def SetHatchStyle(self, aStyle):
15415 r"""SetHatchStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aStyle)"""
15416 return _pcbnew.ZONE_SetHatchStyle(self, aStyle)
15417
15418 def HasFilledPolysForLayer(self, aLayer):
15419 r"""HasFilledPolysForLayer(ZONE self, PCB_LAYER_ID aLayer) -> bool"""
15420 return _pcbnew.ZONE_HasFilledPolysForLayer(self, aLayer)
15421
15422 def GetFilledPolysList(self, aLayer):
15423 r"""GetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer) -> std::shared_ptr< SHAPE_POLY_SET > const &"""
15424 return _pcbnew.ZONE_GetFilledPolysList(self, aLayer)
15425
15426 def GetFill(self, aLayer):
15427 r"""GetFill(ZONE self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
15428 return _pcbnew.ZONE_GetFill(self, aLayer)
15429
15430 def CacheTriangulation(self, aLayer=UNDEFINED_LAYER):
15431 r"""CacheTriangulation(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
15432 return _pcbnew.ZONE_CacheTriangulation(self, aLayer)
15433
15434 def SetFilledPolysList(self, aLayer, aPolysList):
15435 r"""SetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aPolysList)"""
15436 return _pcbnew.ZONE_SetFilledPolysList(self, aLayer, aPolysList)
15437
15438 def IsIsland(self, aLayer, aPolyIdx):
15439 r"""IsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx) -> bool"""
15440 return _pcbnew.ZONE_IsIsland(self, aLayer, aPolyIdx)
15441
15442 def SetIsIsland(self, aLayer, aPolyIdx):
15443 r"""SetIsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx)"""
15444 return _pcbnew.ZONE_SetIsIsland(self, aLayer, aPolyIdx)
15445
15446 def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None):
15447 r"""BuildSmoothedPoly(ZONE self, SHAPE_POLY_SET aSmoothedPoly, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBoardOutline, SHAPE_POLY_SET aSmoothedPolyWithApron=None) -> bool"""
15448 return _pcbnew.ZONE_BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron)
15449
15450 def SetCornerSmoothingType(self, aType):
15451 r"""SetCornerSmoothingType(ZONE self, int aType)"""
15452 return _pcbnew.ZONE_SetCornerSmoothingType(self, aType)
15453
15455 r"""GetCornerSmoothingType(ZONE self) -> int"""
15456 return _pcbnew.ZONE_GetCornerSmoothingType(self)
15457
15458 def SetCornerRadius(self, aRadius):
15459 r"""SetCornerRadius(ZONE self, unsigned int aRadius)"""
15460 return _pcbnew.ZONE_SetCornerRadius(self, aRadius)
15461
15463 r"""GetCornerRadius(ZONE self) -> unsigned int"""
15464 return _pcbnew.ZONE_GetCornerRadius(self)
15465
15466 def RemoveCutout(self, aOutlineIdx, aHoleIdx):
15467 r"""RemoveCutout(ZONE self, int aOutlineIdx, int aHoleIdx)"""
15468 return _pcbnew.ZONE_RemoveCutout(self, aOutlineIdx, aHoleIdx)
15469
15470 def AddPolygon(self, *args):
15471 r"""
15472 AddPolygon(ZONE self, VECTOR_VECTOR2I aPolygon)
15473 AddPolygon(ZONE self, SHAPE_LINE_CHAIN aPolygon)
15474 """
15475 return _pcbnew.ZONE_AddPolygon(self, *args)
15476
15478 r"""IsTeardropArea(ZONE self) -> bool"""
15479 return _pcbnew.ZONE_IsTeardropArea(self)
15480
15481 def SetTeardropAreaType(self, aType):
15482 r"""SetTeardropAreaType(ZONE self, TEARDROP_TYPE aType)"""
15483 return _pcbnew.ZONE_SetTeardropAreaType(self, aType)
15484
15486 r"""GetTeardropAreaType(ZONE self) -> TEARDROP_TYPE"""
15487 return _pcbnew.ZONE_GetTeardropAreaType(self)
15488
15490 r"""HasKeepoutParametersSet(ZONE self) -> bool"""
15491 return _pcbnew.ZONE_HasKeepoutParametersSet(self)
15492
15493 def GetIsRuleArea(self):
15494 r"""GetIsRuleArea(ZONE self) -> bool"""
15495 return _pcbnew.ZONE_GetIsRuleArea(self)
15496
15498 r"""GetRuleAreaPlacementEnabled(ZONE self) -> bool"""
15499 return _pcbnew.ZONE_GetRuleAreaPlacementEnabled(self)
15500
15502 r"""GetRuleAreaPlacementSourceType(ZONE self) -> RULE_AREA_PLACEMENT_SOURCE_TYPE"""
15503 return _pcbnew.ZONE_GetRuleAreaPlacementSourceType(self)
15504
15506 r"""GetRuleAreaPlacementSource(ZONE self) -> wxString"""
15507 return _pcbnew.ZONE_GetRuleAreaPlacementSource(self)
15508
15510 r"""GetDoNotAllowCopperPour(ZONE self) -> bool"""
15511 return _pcbnew.ZONE_GetDoNotAllowCopperPour(self)
15512
15514 r"""GetDoNotAllowVias(ZONE self) -> bool"""
15515 return _pcbnew.ZONE_GetDoNotAllowVias(self)
15516
15518 r"""GetDoNotAllowTracks(ZONE self) -> bool"""
15519 return _pcbnew.ZONE_GetDoNotAllowTracks(self)
15520
15522 r"""GetDoNotAllowPads(ZONE self) -> bool"""
15523 return _pcbnew.ZONE_GetDoNotAllowPads(self)
15524
15526 r"""GetDoNotAllowFootprints(ZONE self) -> bool"""
15527 return _pcbnew.ZONE_GetDoNotAllowFootprints(self)
15528
15529 def SetIsRuleArea(self, aEnable):
15530 r"""SetIsRuleArea(ZONE self, bool aEnable)"""
15531 return _pcbnew.ZONE_SetIsRuleArea(self, aEnable)
15532
15533 def SetRuleAreaPlacementEnabled(self, aEnabled):
15534 r"""SetRuleAreaPlacementEnabled(ZONE self, bool aEnabled)"""
15535 return _pcbnew.ZONE_SetRuleAreaPlacementEnabled(self, aEnabled)
15536
15538 r"""SetRuleAreaPlacementSourceType(ZONE self, RULE_AREA_PLACEMENT_SOURCE_TYPE aType)"""
15539 return _pcbnew.ZONE_SetRuleAreaPlacementSourceType(self, aType)
15540
15541 def SetRuleAreaPlacementSource(self, aSource):
15542 r"""SetRuleAreaPlacementSource(ZONE self, wxString aSource)"""
15543 return _pcbnew.ZONE_SetRuleAreaPlacementSource(self, aSource)
15544
15545 def SetDoNotAllowCopperPour(self, aEnable):
15546 r"""SetDoNotAllowCopperPour(ZONE self, bool aEnable)"""
15547 return _pcbnew.ZONE_SetDoNotAllowCopperPour(self, aEnable)
15548
15549 def SetDoNotAllowVias(self, aEnable):
15550 r"""SetDoNotAllowVias(ZONE self, bool aEnable)"""
15551 return _pcbnew.ZONE_SetDoNotAllowVias(self, aEnable)
15552
15553 def SetDoNotAllowTracks(self, aEnable):
15554 r"""SetDoNotAllowTracks(ZONE self, bool aEnable)"""
15555 return _pcbnew.ZONE_SetDoNotAllowTracks(self, aEnable)
15556
15557 def SetDoNotAllowPads(self, aEnable):
15558 r"""SetDoNotAllowPads(ZONE self, bool aEnable)"""
15559 return _pcbnew.ZONE_SetDoNotAllowPads(self, aEnable)
15560
15561 def SetDoNotAllowFootprints(self, aEnable):
15562 r"""SetDoNotAllowFootprints(ZONE self, bool aEnable)"""
15563 return _pcbnew.ZONE_SetDoNotAllowFootprints(self, aEnable)
15564
15566 r"""GetIslandRemovalMode(ZONE self) -> ISLAND_REMOVAL_MODE"""
15567 return _pcbnew.ZONE_GetIslandRemovalMode(self)
15568
15569 def SetIslandRemovalMode(self, aRemove):
15570 r"""SetIslandRemovalMode(ZONE self, ISLAND_REMOVAL_MODE aRemove)"""
15571 return _pcbnew.ZONE_SetIslandRemovalMode(self, aRemove)
15572
15574 r"""GetMinIslandArea(ZONE self) -> long long"""
15575 return _pcbnew.ZONE_GetMinIslandArea(self)
15576
15577 def SetMinIslandArea(self, aArea):
15578 r"""SetMinIslandArea(ZONE self, long long aArea)"""
15579 return _pcbnew.ZONE_SetMinIslandArea(self, aArea)
15580
15582 r"""GetBorderHatchPitch(ZONE self) -> int"""
15583 return _pcbnew.ZONE_GetBorderHatchPitch(self)
15584
15585 @staticmethod
15587 r"""GetDefaultHatchPitch() -> int"""
15588 return _pcbnew.ZONE_GetDefaultHatchPitch()
15589
15590 def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch):
15591 r"""SetBorderDisplayStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aBorderHatchStyle, int aBorderHatchPitch, bool aRebuilBorderdHatch)"""
15592 return _pcbnew.ZONE_SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
15593
15594 def SetBorderHatchPitch(self, aPitch):
15595 r"""SetBorderHatchPitch(ZONE self, int aPitch)"""
15596 return _pcbnew.ZONE_SetBorderHatchPitch(self, aPitch)
15597
15598 def UnHatchBorder(self):
15599 r"""UnHatchBorder(ZONE self)"""
15600 return _pcbnew.ZONE_UnHatchBorder(self)
15601
15602 def HatchBorder(self):
15603 r"""HatchBorder(ZONE self)"""
15604 return _pcbnew.ZONE_HatchBorder(self)
15605
15606 def GetHatchLines(self):
15607 r"""GetHatchLines(ZONE self) -> std::vector< SEG,std::allocator< SEG > > const &"""
15608 return _pcbnew.ZONE_GetHatchLines(self)
15609
15610 def BuildHashValue(self, aLayer):
15611 r"""BuildHashValue(ZONE self, PCB_LAYER_ID aLayer)"""
15612 return _pcbnew.ZONE_BuildHashValue(self, aLayer)
15613
15614 def GetHashValue(self, aLayer):
15615 r"""GetHashValue(ZONE self, PCB_LAYER_ID aLayer) -> HASH_128"""
15616 return _pcbnew.ZONE_GetHashValue(self, aLayer)
15617
15618 def __eq__(self, *args):
15619 r"""
15620 __eq__(ZONE self, ZONE aOther) -> bool
15621 __eq__(ZONE self, BOARD_ITEM aOther) -> bool
15622 """
15623 return _pcbnew.ZONE___eq__(self, *args)
15624
15625# Register ZONE in _pcbnew:
15626_pcbnew.ZONE_swigregister(ZONE)
15627ZONE_THERMAL_RELIEF_GAP_MM = _pcbnew.ZONE_THERMAL_RELIEF_GAP_MM
15628
15629ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM = _pcbnew.ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM
15630
15631ZONE_THICKNESS_MM = _pcbnew.ZONE_THICKNESS_MM
15632
15633ZONE_THICKNESS_MIN_VALUE_MM = _pcbnew.ZONE_THICKNESS_MIN_VALUE_MM
15634
15635ZONE_CLEARANCE_MM = _pcbnew.ZONE_CLEARANCE_MM
15636
15637ZONE_CLEARANCE_MAX_VALUE_MM = _pcbnew.ZONE_CLEARANCE_MAX_VALUE_MM
15638
15639ZONE_BORDER_HATCH_DIST_MM = _pcbnew.ZONE_BORDER_HATCH_DIST_MM
15640
15641ZONE_BORDER_HATCH_MINDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MINDIST_MM
15642
15643ZONE_BORDER_HATCH_MAXDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MAXDIST_MM
15644
15645ZONE_MANAGER_REPOUR = _pcbnew.ZONE_MANAGER_REPOUR
15646
15647ZONE_CONNECTION_INHERITED = _pcbnew.ZONE_CONNECTION_INHERITED
15648
15649ZONE_CONNECTION_NONE = _pcbnew.ZONE_CONNECTION_NONE
15650
15651ZONE_CONNECTION_THERMAL = _pcbnew.ZONE_CONNECTION_THERMAL
15652
15653ZONE_CONNECTION_FULL = _pcbnew.ZONE_CONNECTION_FULL
15654
15655ZONE_CONNECTION_THT_THERMAL = _pcbnew.ZONE_CONNECTION_THT_THERMAL
15656
15657
15658def PrintZoneConnection(aConnection):
15659 r"""PrintZoneConnection(ZONE_CONNECTION aConnection) -> wxString"""
15660 return _pcbnew.PrintZoneConnection(aConnection)
15661
15662def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None):
15663 r"""InvokeNonCopperZonesEditor(PCB_BASE_FRAME * aParent, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
15664 return _pcbnew.InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings)
15665
15666def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None):
15667 r"""InvokeCopperZonesEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
15668 return _pcbnew.InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings)
15669
15670def InvokeRuleAreaEditor(aCaller, aSettings, aBoard=None, aConvertSettings=None):
15671 r"""InvokeRuleAreaEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, BOARD aBoard=None, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
15672 return _pcbnew.InvokeRuleAreaEditor(aCaller, aSettings, aBoard, aConvertSettings)
15674 r"""Proxy of C++ ZONE_FILLER class."""
15675
15676 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15677 __repr__ = _swig_repr
15678 __swig_destroy__ = _pcbnew.delete_ZONE_FILLER
15679
15680 def SetProgressReporter(self, aReporter):
15681 r"""SetProgressReporter(ZONE_FILLER self, PROGRESS_REPORTER * aReporter)"""
15682 return _pcbnew.ZONE_FILLER_SetProgressReporter(self, aReporter)
15683
15685 r"""GetProgressReporter(ZONE_FILLER self) -> PROGRESS_REPORTER *"""
15686 return _pcbnew.ZONE_FILLER_GetProgressReporter(self)
15687
15688 def Fill(self, aZones, aCheck=False, aParent=None):
15689 r"""Fill(ZONE_FILLER self, ZONES aZones, bool aCheck=False, wxWindow * aParent=None) -> bool"""
15690 return _pcbnew.ZONE_FILLER_Fill(self, aZones, aCheck, aParent)
15691
15692 def IsDebug(self):
15693 r"""IsDebug(ZONE_FILLER self) -> bool"""
15694 return _pcbnew.ZONE_FILLER_IsDebug(self)
15695
15696 def __init__(self, aBoard):
15697 r"""__init__(ZONE_FILLER self, BOARD aBoard) -> ZONE_FILLER"""
15698 _pcbnew.ZONE_FILLER_swiginit(self, _pcbnew.new_ZONE_FILLER(aBoard))
15699
15700# Register ZONE_FILLER in _pcbnew:
15701_pcbnew.ZONE_FILLER_swigregister(ZONE_FILLER)
15702ZONE_FILL_MODE_POLYGONS = _pcbnew.ZONE_FILL_MODE_POLYGONS
15703
15704ZONE_FILL_MODE_HATCH_PATTERN = _pcbnew.ZONE_FILL_MODE_HATCH_PATTERN
15705
15706ZONE_BORDER_DISPLAY_STYLE_NO_HATCH = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_NO_HATCH
15707
15708ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL
15709
15710ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE
15711
15712ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER
15713
15714ISLAND_REMOVAL_MODE_ALWAYS = _pcbnew.ISLAND_REMOVAL_MODE_ALWAYS
15715
15716ISLAND_REMOVAL_MODE_NEVER = _pcbnew.ISLAND_REMOVAL_MODE_NEVER
15717
15718ISLAND_REMOVAL_MODE_AREA = _pcbnew.ISLAND_REMOVAL_MODE_AREA
15719
15720RULE_AREA_PLACEMENT_SOURCE_TYPE_SHEETNAME = _pcbnew.RULE_AREA_PLACEMENT_SOURCE_TYPE_SHEETNAME
15721
15722RULE_AREA_PLACEMENT_SOURCE_TYPE_COMPONENT_CLASS = _pcbnew.RULE_AREA_PLACEMENT_SOURCE_TYPE_COMPONENT_CLASS
15723
15725 r"""Proxy of C++ ZONE_SETTINGS class."""
15726
15727 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15728 __repr__ = _swig_repr
15729 SMOOTHING_UNDEFINED = _pcbnew.ZONE_SETTINGS_SMOOTHING_UNDEFINED
15730
15731 SMOOTHING_NONE = _pcbnew.ZONE_SETTINGS_SMOOTHING_NONE
15732
15733 SMOOTHING_CHAMFER = _pcbnew.ZONE_SETTINGS_SMOOTHING_CHAMFER
15734
15735 SMOOTHING_FILLET = _pcbnew.ZONE_SETTINGS_SMOOTHING_FILLET
15736
15737 SMOOTHING_LAST = _pcbnew.ZONE_SETTINGS_SMOOTHING_LAST
15738
15739 m_ZonePriority = property(_pcbnew.ZONE_SETTINGS_m_ZonePriority_get, _pcbnew.ZONE_SETTINGS_m_ZonePriority_set, doc=r"""m_ZonePriority : unsigned int""")
15740 m_FillMode = property(_pcbnew.ZONE_SETTINGS_m_FillMode_get, _pcbnew.ZONE_SETTINGS_m_FillMode_set, doc=r"""m_FillMode : ZONE_FILL_MODE""")
15741 m_ZoneClearance = property(_pcbnew.ZONE_SETTINGS_m_ZoneClearance_get, _pcbnew.ZONE_SETTINGS_m_ZoneClearance_set, doc=r"""m_ZoneClearance : int""")
15742 m_ZoneMinThickness = property(_pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_get, _pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_set, doc=r"""m_ZoneMinThickness : int""")
15743 m_HatchThickness = property(_pcbnew.ZONE_SETTINGS_m_HatchThickness_get, _pcbnew.ZONE_SETTINGS_m_HatchThickness_set, doc=r"""m_HatchThickness : int""")
15744 m_HatchGap = property(_pcbnew.ZONE_SETTINGS_m_HatchGap_get, _pcbnew.ZONE_SETTINGS_m_HatchGap_set, doc=r"""m_HatchGap : int""")
15745 m_HatchOrientation = property(_pcbnew.ZONE_SETTINGS_m_HatchOrientation_get, _pcbnew.ZONE_SETTINGS_m_HatchOrientation_set, doc=r"""m_HatchOrientation : EDA_ANGLE""")
15746 m_HatchSmoothingLevel = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_set, doc=r"""m_HatchSmoothingLevel : int""")
15747 m_HatchSmoothingValue = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_set, doc=r"""m_HatchSmoothingValue : double""")
15748 m_HatchHoleMinArea = property(_pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_get, _pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_set, doc=r"""m_HatchHoleMinArea : double""")
15749 m_HatchBorderAlgorithm = property(_pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_get, _pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_set, doc=r"""m_HatchBorderAlgorithm : int""")
15750 m_NetcodeSelection = property(_pcbnew.ZONE_SETTINGS_m_NetcodeSelection_get, _pcbnew.ZONE_SETTINGS_m_NetcodeSelection_set, doc=r"""m_NetcodeSelection : int""")
15751 m_Name = property(_pcbnew.ZONE_SETTINGS_m_Name_get, _pcbnew.ZONE_SETTINGS_m_Name_set, doc=r"""m_Name : wxString""")
15752 m_Layers = property(_pcbnew.ZONE_SETTINGS_m_Layers_get, _pcbnew.ZONE_SETTINGS_m_Layers_set, doc=r"""m_Layers : LSET""")
15753 m_ZoneBorderDisplayStyle = property(_pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_get, _pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_set, doc=r"""m_ZoneBorderDisplayStyle : ZONE_BORDER_DISPLAY_STYLE""")
15754 m_BorderHatchPitch = property(_pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_get, _pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_set, doc=r"""m_BorderHatchPitch : int""")
15755 m_ThermalReliefGap = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_set, doc=r"""m_ThermalReliefGap : long""")
15756 m_ThermalReliefSpokeWidth = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_set, doc=r"""m_ThermalReliefSpokeWidth : long""")
15757 m_Locked = property(_pcbnew.ZONE_SETTINGS_m_Locked_get, _pcbnew.ZONE_SETTINGS_m_Locked_set, doc=r"""m_Locked : bool""")
15758 m_TeardropType = property(_pcbnew.ZONE_SETTINGS_m_TeardropType_get, _pcbnew.ZONE_SETTINGS_m_TeardropType_set, doc=r"""m_TeardropType : TEARDROP_TYPE""")
15759
15760 def __init__(self):
15761 r"""__init__(ZONE_SETTINGS self) -> ZONE_SETTINGS"""
15762 _pcbnew.ZONE_SETTINGS_swiginit(self, _pcbnew.new_ZONE_SETTINGS())
15763
15764 def __eq__(self, aOther):
15765 r"""__eq__(ZONE_SETTINGS self, ZONE_SETTINGS aOther) -> bool"""
15766 return _pcbnew.ZONE_SETTINGS___eq__(self, aOther)
15767
15768 def __ne__(self, aOther):
15769 r"""__ne__(ZONE_SETTINGS self, ZONE_SETTINGS aOther) -> bool"""
15770 return _pcbnew.ZONE_SETTINGS___ne__(self, aOther)
15771
15772 def __lshift__(self, aSource):
15773 r"""__lshift__(ZONE_SETTINGS self, ZONE aSource) -> ZONE_SETTINGS"""
15774 return _pcbnew.ZONE_SETTINGS___lshift__(self, aSource)
15775
15776 @staticmethod
15778 r"""GetDefaultSettings() -> ZONE_SETTINGS"""
15779 return _pcbnew.ZONE_SETTINGS_GetDefaultSettings()
15780
15781 def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode):
15782 r"""SetupLayersList(ZONE_SETTINGS self, wxDataViewListCtrl * aList, PCB_BASE_FRAME * aFrame, LSET aLayers, bool aFpEditorMode)"""
15783 return _pcbnew.ZONE_SETTINGS_SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
15784
15785 def ExportSetting(self, aTarget, aFullExport=True):
15786 r"""ExportSetting(ZONE_SETTINGS self, ZONE aTarget, bool aFullExport=True)"""
15787 return _pcbnew.ZONE_SETTINGS_ExportSetting(self, aTarget, aFullExport)
15788
15789 def SetCornerSmoothingType(self, aType):
15790 r"""SetCornerSmoothingType(ZONE_SETTINGS self, int aType)"""
15791 return _pcbnew.ZONE_SETTINGS_SetCornerSmoothingType(self, aType)
15792
15794 r"""GetCornerSmoothingType(ZONE_SETTINGS self) -> int"""
15795 return _pcbnew.ZONE_SETTINGS_GetCornerSmoothingType(self)
15796
15797 def SetCornerRadius(self, aRadius):
15798 r"""SetCornerRadius(ZONE_SETTINGS self, int aRadius)"""
15799 return _pcbnew.ZONE_SETTINGS_SetCornerRadius(self, aRadius)
15800
15802 r"""GetCornerRadius(ZONE_SETTINGS self) -> unsigned int"""
15803 return _pcbnew.ZONE_SETTINGS_GetCornerRadius(self)
15804
15806 r"""GetPadConnection(ZONE_SETTINGS self) -> ZONE_CONNECTION"""
15807 return _pcbnew.ZONE_SETTINGS_GetPadConnection(self)
15808
15809 def SetPadConnection(self, aPadConnection):
15810 r"""SetPadConnection(ZONE_SETTINGS self, ZONE_CONNECTION aPadConnection)"""
15811 return _pcbnew.ZONE_SETTINGS_SetPadConnection(self, aPadConnection)
15812
15814 r"""HasKeepoutParametersSet(ZONE_SETTINGS self) -> bool"""
15815 return _pcbnew.ZONE_SETTINGS_HasKeepoutParametersSet(self)
15816
15817 def GetIsRuleArea(self):
15818 r"""GetIsRuleArea(ZONE_SETTINGS self) -> bool"""
15819 return _pcbnew.ZONE_SETTINGS_GetIsRuleArea(self)
15820
15822 r"""GetRuleAreaPlacementEnabled(ZONE_SETTINGS self) -> bool"""
15823 return _pcbnew.ZONE_SETTINGS_GetRuleAreaPlacementEnabled(self)
15824
15826 r"""GetRuleAreaPlacementSourceType(ZONE_SETTINGS self) -> RULE_AREA_PLACEMENT_SOURCE_TYPE"""
15827 return _pcbnew.ZONE_SETTINGS_GetRuleAreaPlacementSourceType(self)
15828
15830 r"""GetRuleAreaPlacementSource(ZONE_SETTINGS self) -> wxString"""
15831 return _pcbnew.ZONE_SETTINGS_GetRuleAreaPlacementSource(self)
15832
15834 r"""GetDoNotAllowCopperPour(ZONE_SETTINGS self) -> bool"""
15835 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowCopperPour(self)
15836
15838 r"""GetDoNotAllowVias(ZONE_SETTINGS self) -> bool"""
15839 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowVias(self)
15840
15842 r"""GetDoNotAllowTracks(ZONE_SETTINGS self) -> bool"""
15843 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowTracks(self)
15844
15846 r"""GetDoNotAllowPads(ZONE_SETTINGS self) -> bool"""
15847 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowPads(self)
15848
15850 r"""GetDoNotAllowFootprints(ZONE_SETTINGS self) -> bool"""
15851 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowFootprints(self)
15852
15853 def SetIsRuleArea(self, aEnable):
15854 r"""SetIsRuleArea(ZONE_SETTINGS self, bool aEnable)"""
15855 return _pcbnew.ZONE_SETTINGS_SetIsRuleArea(self, aEnable)
15856
15857 def SetRuleAreaPlacementEnabled(self, aEnabled):
15858 r"""SetRuleAreaPlacementEnabled(ZONE_SETTINGS self, bool aEnabled)"""
15859 return _pcbnew.ZONE_SETTINGS_SetRuleAreaPlacementEnabled(self, aEnabled)
15860
15862 r"""SetRuleAreaPlacementSourceType(ZONE_SETTINGS self, RULE_AREA_PLACEMENT_SOURCE_TYPE aType)"""
15863 return _pcbnew.ZONE_SETTINGS_SetRuleAreaPlacementSourceType(self, aType)
15864
15865 def SetRuleAreaPlacementSource(self, aSource):
15866 r"""SetRuleAreaPlacementSource(ZONE_SETTINGS self, wxString aSource)"""
15867 return _pcbnew.ZONE_SETTINGS_SetRuleAreaPlacementSource(self, aSource)
15868
15869 def SetDoNotAllowCopperPour(self, aEnable):
15870 r"""SetDoNotAllowCopperPour(ZONE_SETTINGS self, bool aEnable)"""
15871 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowCopperPour(self, aEnable)
15872
15873 def SetDoNotAllowVias(self, aEnable):
15874 r"""SetDoNotAllowVias(ZONE_SETTINGS self, bool aEnable)"""
15875 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowVias(self, aEnable)
15876
15877 def SetDoNotAllowTracks(self, aEnable):
15878 r"""SetDoNotAllowTracks(ZONE_SETTINGS self, bool aEnable)"""
15879 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowTracks(self, aEnable)
15880
15881 def SetDoNotAllowPads(self, aEnable):
15882 r"""SetDoNotAllowPads(ZONE_SETTINGS self, bool aEnable)"""
15883 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowPads(self, aEnable)
15884
15885 def SetDoNotAllowFootprints(self, aEnable):
15886 r"""SetDoNotAllowFootprints(ZONE_SETTINGS self, bool aEnable)"""
15887 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowFootprints(self, aEnable)
15888
15890 r"""GetIslandRemovalMode(ZONE_SETTINGS self) -> ISLAND_REMOVAL_MODE"""
15891 return _pcbnew.ZONE_SETTINGS_GetIslandRemovalMode(self)
15892
15893 def SetIslandRemovalMode(self, aRemove):
15894 r"""SetIslandRemovalMode(ZONE_SETTINGS self, ISLAND_REMOVAL_MODE aRemove)"""
15895 return _pcbnew.ZONE_SETTINGS_SetIslandRemovalMode(self, aRemove)
15896
15898 r"""GetMinIslandArea(ZONE_SETTINGS self) -> long long"""
15899 return _pcbnew.ZONE_SETTINGS_GetMinIslandArea(self)
15900
15901 def SetMinIslandArea(self, aArea):
15902 r"""SetMinIslandArea(ZONE_SETTINGS self, long long aArea)"""
15903 return _pcbnew.ZONE_SETTINGS_SetMinIslandArea(self, aArea)
15904 __swig_destroy__ = _pcbnew.delete_ZONE_SETTINGS
15905
15906# Register ZONE_SETTINGS in _pcbnew:
15907_pcbnew.ZONE_SETTINGS_swigregister(ZONE_SETTINGS)
15908TENTHS_OF_A_DEGREE_T = _pcbnew.TENTHS_OF_A_DEGREE_T
15909
15910DEGREES_T = _pcbnew.DEGREES_T
15911
15912RADIANS_T = _pcbnew.RADIANS_T
15913
15915 r"""Proxy of C++ EDA_ANGLE class."""
15916
15917 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15918 __repr__ = _swig_repr
15919
15920 def __init__(self, *args):
15921 r"""
15922 __init__(EDA_ANGLE self, double aValue, EDA_ANGLE_T aAngleType) -> EDA_ANGLE
15923 __init__(EDA_ANGLE self, double aAngleInDegrees) -> EDA_ANGLE
15924 __init__(EDA_ANGLE self, VECTOR2D const & aVector) -> EDA_ANGLE
15925 __init__(EDA_ANGLE self) -> EDA_ANGLE
15926 """
15927 _pcbnew.EDA_ANGLE_swiginit(self, _pcbnew.new_EDA_ANGLE(*args))
15928
15929 def AsDegrees(self):
15930 r"""AsDegrees(EDA_ANGLE self) -> double"""
15931 return _pcbnew.EDA_ANGLE_AsDegrees(self)
15932
15934 r"""AsTenthsOfADegree(EDA_ANGLE self) -> int"""
15935 return _pcbnew.EDA_ANGLE_AsTenthsOfADegree(self)
15936
15937 def AsRadians(self):
15938 r"""AsRadians(EDA_ANGLE self) -> double"""
15939 return _pcbnew.EDA_ANGLE_AsRadians(self)
15940 DEGREES_TO_RADIANS = _pcbnew.EDA_ANGLE_DEGREES_TO_RADIANS
15941
15942
15943 def IsCardinal(self):
15944 r"""IsCardinal(EDA_ANGLE self) -> bool"""
15945 return _pcbnew.EDA_ANGLE_IsCardinal(self)
15946
15947 def IsCardinal90(self):
15948 r"""IsCardinal90(EDA_ANGLE self) -> bool"""
15949 return _pcbnew.EDA_ANGLE_IsCardinal90(self)
15950
15951 def IsZero(self):
15952 r"""IsZero(EDA_ANGLE self) -> bool"""
15953 return _pcbnew.EDA_ANGLE_IsZero(self)
15954
15955 def IsHorizontal(self):
15956 r"""IsHorizontal(EDA_ANGLE self) -> bool"""
15957 return _pcbnew.EDA_ANGLE_IsHorizontal(self)
15958
15959 def IsVertical(self):
15960 r"""IsVertical(EDA_ANGLE self) -> bool"""
15961 return _pcbnew.EDA_ANGLE_IsVertical(self)
15962
15963 def IsParallelTo(self, aAngle):
15964 r"""IsParallelTo(EDA_ANGLE self, EDA_ANGLE aAngle) -> bool"""
15965 return _pcbnew.EDA_ANGLE_IsParallelTo(self, aAngle)
15966
15967 def Invert(self):
15968 r"""Invert(EDA_ANGLE self) -> EDA_ANGLE"""
15969 return _pcbnew.EDA_ANGLE_Invert(self)
15970
15971 def Sin(self):
15972 r"""Sin(EDA_ANGLE self) -> double"""
15973 return _pcbnew.EDA_ANGLE_Sin(self)
15974
15975 def Cos(self):
15976 r"""Cos(EDA_ANGLE self) -> double"""
15977 return _pcbnew.EDA_ANGLE_Cos(self)
15978
15979 def Tan(self):
15980 r"""Tan(EDA_ANGLE self) -> double"""
15981 return _pcbnew.EDA_ANGLE_Tan(self)
15982
15983 @staticmethod
15984 def Arccos(x):
15985 r"""Arccos(double x) -> EDA_ANGLE"""
15986 return _pcbnew.EDA_ANGLE_Arccos(x)
15987
15988 @staticmethod
15989 def Arcsin(x):
15990 r"""Arcsin(double x) -> EDA_ANGLE"""
15991 return _pcbnew.EDA_ANGLE_Arcsin(x)
15992
15993 @staticmethod
15994 def Arctan(x):
15995 r"""Arctan(double x) -> EDA_ANGLE"""
15996 return _pcbnew.EDA_ANGLE_Arctan(x)
15997
15998 @staticmethod
15999 def Arctan2(y, x):
16000 r"""Arctan2(double y, double x) -> EDA_ANGLE"""
16001 return _pcbnew.EDA_ANGLE_Arctan2(y, x)
16002
16003 def Normalize(self):
16004 r"""Normalize(EDA_ANGLE self) -> EDA_ANGLE"""
16005 return _pcbnew.EDA_ANGLE_Normalize(self)
16006
16007 def Normalized(self):
16008 r"""Normalized(EDA_ANGLE self) -> EDA_ANGLE"""
16009 return _pcbnew.EDA_ANGLE_Normalized(self)
16010
16012 r"""NormalizeNegative(EDA_ANGLE self) -> EDA_ANGLE"""
16013 return _pcbnew.EDA_ANGLE_NormalizeNegative(self)
16014
16015 def Normalize90(self):
16016 r"""Normalize90(EDA_ANGLE self) -> EDA_ANGLE"""
16017 return _pcbnew.EDA_ANGLE_Normalize90(self)
16018
16019 def Normalize180(self):
16020 r"""Normalize180(EDA_ANGLE self) -> EDA_ANGLE"""
16021 return _pcbnew.EDA_ANGLE_Normalize180(self)
16022
16023 def Normalize720(self):
16024 r"""Normalize720(EDA_ANGLE self) -> EDA_ANGLE"""
16025 return _pcbnew.EDA_ANGLE_Normalize720(self)
16026
16027 def KeepUpright(self):
16028 r"""KeepUpright(EDA_ANGLE self) -> EDA_ANGLE"""
16029 return _pcbnew.EDA_ANGLE_KeepUpright(self)
16030
16031 def Round(self, digits):
16032 r"""Round(EDA_ANGLE self, int digits) -> EDA_ANGLE"""
16033 return _pcbnew.EDA_ANGLE_Round(self, digits)
16034
16035 def __iadd__(self, aAngle):
16036 r"""__iadd__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
16037 return _pcbnew.EDA_ANGLE___iadd__(self, aAngle)
16038
16039 def __isub__(self, aAngle):
16040 r"""__isub__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
16041 return _pcbnew.EDA_ANGLE___isub__(self, aAngle)
16042
16043 def __add__(self, other):
16044 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
16045 n += other
16046 return n
16047
16048 def __sub__(self, other):
16049 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
16050 n -= other
16051 return n
16052
16053 def __mul__(self, other):
16054 return EDA_ANGLE(self.AsDegrees() * other, DEGREES_T)
16055
16056 def __rmul__(self, other):
16057 return EDA_ANGLE(other * self.AsDegrees(), DEGREES_T)
16058
16059 def __truediv__(self, other):
16060 return EDA_ANGLE(self.AsDegrees() / other, DEGREES_T)
16061
16062 def __abs__(self):
16063 return EDA_ANGLE(abs(self.AsDegrees()), DEGREES_T)
16064
16065 __swig_destroy__ = _pcbnew.delete_EDA_ANGLE
16066
16067# Register EDA_ANGLE in _pcbnew:
16068_pcbnew.EDA_ANGLE_swigregister(EDA_ANGLE)
16069SHAPE_T_UNDEFINED = _pcbnew.SHAPE_T_UNDEFINED
16070
16071SHAPE_T_SEGMENT = _pcbnew.SHAPE_T_SEGMENT
16072
16073SHAPE_T_RECTANGLE = _pcbnew.SHAPE_T_RECTANGLE
16074
16075SHAPE_T_ARC = _pcbnew.SHAPE_T_ARC
16076
16077SHAPE_T_CIRCLE = _pcbnew.SHAPE_T_CIRCLE
16078
16079SHAPE_T_POLY = _pcbnew.SHAPE_T_POLY
16080
16081SHAPE_T_BEZIER = _pcbnew.SHAPE_T_BEZIER
16082
16083FILL_T_NO_FILL = _pcbnew.FILL_T_NO_FILL
16084
16085FILL_T_FILLED_SHAPE = _pcbnew.FILL_T_FILLED_SHAPE
16086
16087FILL_T_FILLED_WITH_BG_BODYCOLOR = _pcbnew.FILL_T_FILLED_WITH_BG_BODYCOLOR
16088
16089FILL_T_FILLED_WITH_COLOR = _pcbnew.FILL_T_FILLED_WITH_COLOR
16090
16092 r"""Proxy of C++ ARC_MID class."""
16093
16094 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16095 __repr__ = _swig_repr
16096 mid = property(_pcbnew.ARC_MID_mid_get, _pcbnew.ARC_MID_mid_set, doc=r"""mid : VECTOR2I""")
16097 start = property(_pcbnew.ARC_MID_start_get, _pcbnew.ARC_MID_start_set, doc=r"""start : VECTOR2I""")
16098 end = property(_pcbnew.ARC_MID_end_get, _pcbnew.ARC_MID_end_set, doc=r"""end : VECTOR2I""")
16099 center = property(_pcbnew.ARC_MID_center_get, _pcbnew.ARC_MID_center_set, doc=r"""center : VECTOR2I""")
16100
16101 def __init__(self):
16102 r"""__init__(ARC_MID self) -> ARC_MID"""
16103 _pcbnew.ARC_MID_swiginit(self, _pcbnew.new_ARC_MID())
16104 __swig_destroy__ = _pcbnew.delete_ARC_MID
16105
16106# Register ARC_MID in _pcbnew:
16107_pcbnew.ARC_MID_swigregister(ARC_MID)
16108ANGLE_HORIZONTAL = cvar.ANGLE_HORIZONTAL
16109ANGLE_VERTICAL = cvar.ANGLE_VERTICAL
16110FULL_CIRCLE = cvar.FULL_CIRCLE
16111ANGLE_0 = cvar.ANGLE_0
16112ANGLE_45 = cvar.ANGLE_45
16113ANGLE_90 = cvar.ANGLE_90
16114ANGLE_135 = cvar.ANGLE_135
16115ANGLE_180 = cvar.ANGLE_180
16116ANGLE_270 = cvar.ANGLE_270
16117ANGLE_360 = cvar.ANGLE_360
16118
16120 r"""Proxy of C++ EDA_SHAPE class."""
16121
16122 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16123 __repr__ = _swig_repr
16124
16125 def __init__(self, *args):
16126 r"""
16127 __init__(EDA_SHAPE self, SHAPE_T aType, int aLineWidth, FILL_T aFill) -> EDA_SHAPE
16128 __init__(EDA_SHAPE self, SHAPE aShape) -> EDA_SHAPE
16129 """
16130 _pcbnew.EDA_SHAPE_swiginit(self, _pcbnew.new_EDA_SHAPE(*args))
16131 __swig_destroy__ = _pcbnew.delete_EDA_SHAPE
16132
16133 def SwapShape(self, aImage):
16134 r"""SwapShape(EDA_SHAPE self, EDA_SHAPE aImage)"""
16135 return _pcbnew.EDA_SHAPE_SwapShape(self, aImage)
16136
16137 def Serialize(self, aContainer):
16138 r"""Serialize(EDA_SHAPE self, google::protobuf::Any & aContainer)"""
16139 return _pcbnew.EDA_SHAPE_Serialize(self, aContainer)
16140
16141 def Deserialize(self, aContainer):
16142 r"""Deserialize(EDA_SHAPE self, google::protobuf::Any const & aContainer) -> bool"""
16143 return _pcbnew.EDA_SHAPE_Deserialize(self, aContainer)
16144
16145 def ShowShape(self):
16146 r"""ShowShape(EDA_SHAPE self) -> wxString"""
16147 return _pcbnew.EDA_SHAPE_ShowShape(self)
16148
16150 r"""SHAPE_T_asString(EDA_SHAPE self) -> wxString"""
16151 return _pcbnew.EDA_SHAPE_SHAPE_T_asString(self)
16152
16153 def IsProxyItem(self):
16154 r"""IsProxyItem(EDA_SHAPE self) -> bool"""
16155 return _pcbnew.EDA_SHAPE_IsProxyItem(self)
16156
16157 def SetIsProxyItem(self, aIsProxy=True):
16158 r"""SetIsProxyItem(EDA_SHAPE self, bool aIsProxy=True)"""
16159 return _pcbnew.EDA_SHAPE_SetIsProxyItem(self, aIsProxy)
16160
16161 def IsFilled(self):
16162 r"""IsFilled(EDA_SHAPE self) -> bool"""
16163 return _pcbnew.EDA_SHAPE_IsFilled(self)
16164
16166 r"""IsFilledForHitTesting(EDA_SHAPE self) -> bool"""
16167 return _pcbnew.EDA_SHAPE_IsFilledForHitTesting(self)
16168
16169 def SetFilled(self, aFlag):
16170 r"""SetFilled(EDA_SHAPE self, bool aFlag)"""
16171 return _pcbnew.EDA_SHAPE_SetFilled(self, aFlag)
16172
16173 def SetFillMode(self, aFill):
16174 r"""SetFillMode(EDA_SHAPE self, FILL_T aFill)"""
16175 return _pcbnew.EDA_SHAPE_SetFillMode(self, aFill)
16176
16177 def GetFillMode(self):
16178 r"""GetFillMode(EDA_SHAPE self) -> FILL_T"""
16179 return _pcbnew.EDA_SHAPE_GetFillMode(self)
16180
16181 def IsClosed(self):
16182 r"""IsClosed(EDA_SHAPE self) -> bool"""
16183 return _pcbnew.EDA_SHAPE_IsClosed(self)
16184
16185 def GetFillColor(self):
16186 r"""GetFillColor(EDA_SHAPE self) -> COLOR4D"""
16187 return _pcbnew.EDA_SHAPE_GetFillColor(self)
16188
16189 def SetFillColor(self, aColor):
16190 r"""SetFillColor(EDA_SHAPE self, COLOR4D aColor)"""
16191 return _pcbnew.EDA_SHAPE_SetFillColor(self, aColor)
16192
16193 def SetWidth(self, aWidth):
16194 r"""SetWidth(EDA_SHAPE self, int aWidth)"""
16195 return _pcbnew.EDA_SHAPE_SetWidth(self, aWidth)
16196
16197 def GetWidth(self):
16198 r"""GetWidth(EDA_SHAPE self) -> int"""
16199 return _pcbnew.EDA_SHAPE_GetWidth(self)
16200
16202 r"""GetEffectiveWidth(EDA_SHAPE self) -> int"""
16203 return _pcbnew.EDA_SHAPE_GetEffectiveWidth(self)
16204
16205 def SetLineStyle(self, aStyle):
16206 r"""SetLineStyle(EDA_SHAPE self, LINE_STYLE const aStyle)"""
16207 return _pcbnew.EDA_SHAPE_SetLineStyle(self, aStyle)
16208
16209 def GetLineStyle(self):
16210 r"""GetLineStyle(EDA_SHAPE self) -> LINE_STYLE"""
16211 return _pcbnew.EDA_SHAPE_GetLineStyle(self)
16212
16213 def SetLineColor(self, aColor):
16214 r"""SetLineColor(EDA_SHAPE self, COLOR4D aColor)"""
16215 return _pcbnew.EDA_SHAPE_SetLineColor(self, aColor)
16216
16217 def GetLineColor(self):
16218 r"""GetLineColor(EDA_SHAPE self) -> COLOR4D"""
16219 return _pcbnew.EDA_SHAPE_GetLineColor(self)
16220
16221 def SetShape(self, aShape):
16222 r"""SetShape(EDA_SHAPE self, SHAPE_T aShape)"""
16223 return _pcbnew.EDA_SHAPE_SetShape(self, aShape)
16224
16225 def GetShape(self):
16226 r"""GetShape(EDA_SHAPE self) -> SHAPE_T"""
16227 return _pcbnew.EDA_SHAPE_GetShape(self)
16228
16229 def GetStart(self):
16230 r"""GetStart(EDA_SHAPE self) -> VECTOR2I"""
16231 return _pcbnew.EDA_SHAPE_GetStart(self)
16232
16233 def GetStartY(self):
16234 r"""GetStartY(EDA_SHAPE self) -> int"""
16235 return _pcbnew.EDA_SHAPE_GetStartY(self)
16236
16237 def GetStartX(self):
16238 r"""GetStartX(EDA_SHAPE self) -> int"""
16239 return _pcbnew.EDA_SHAPE_GetStartX(self)
16240
16241 def SetStart(self, aStart):
16242 r"""SetStart(EDA_SHAPE self, VECTOR2I aStart)"""
16243 return _pcbnew.EDA_SHAPE_SetStart(self, aStart)
16244
16245 def SetStartY(self, y):
16246 r"""SetStartY(EDA_SHAPE self, int y)"""
16247 return _pcbnew.EDA_SHAPE_SetStartY(self, y)
16248
16249 def SetStartX(self, x):
16250 r"""SetStartX(EDA_SHAPE self, int x)"""
16251 return _pcbnew.EDA_SHAPE_SetStartX(self, x)
16252
16253 def SetCenterY(self, y):
16254 r"""SetCenterY(EDA_SHAPE self, int y)"""
16255 return _pcbnew.EDA_SHAPE_SetCenterY(self, y)
16256
16257 def SetCenterX(self, x):
16258 r"""SetCenterX(EDA_SHAPE self, int x)"""
16259 return _pcbnew.EDA_SHAPE_SetCenterX(self, x)
16260
16261 def GetEnd(self):
16262 r"""GetEnd(EDA_SHAPE self) -> VECTOR2I"""
16263 return _pcbnew.EDA_SHAPE_GetEnd(self)
16264
16265 def GetEndY(self):
16266 r"""GetEndY(EDA_SHAPE self) -> int"""
16267 return _pcbnew.EDA_SHAPE_GetEndY(self)
16268
16269 def GetEndX(self):
16270 r"""GetEndX(EDA_SHAPE self) -> int"""
16271 return _pcbnew.EDA_SHAPE_GetEndX(self)
16272
16273 def SetEnd(self, aEnd):
16274 r"""SetEnd(EDA_SHAPE self, VECTOR2I aEnd)"""
16275 return _pcbnew.EDA_SHAPE_SetEnd(self, aEnd)
16276
16277 def SetEndY(self, aY):
16278 r"""SetEndY(EDA_SHAPE self, int aY)"""
16279 return _pcbnew.EDA_SHAPE_SetEndY(self, aY)
16280
16281 def SetEndX(self, aX):
16282 r"""SetEndX(EDA_SHAPE self, int aX)"""
16283 return _pcbnew.EDA_SHAPE_SetEndX(self, aX)
16284
16285 def SetRadius(self, aX):
16286 r"""SetRadius(EDA_SHAPE self, int aX)"""
16287 return _pcbnew.EDA_SHAPE_SetRadius(self, aX)
16288
16289 def GetTopLeft(self):
16290 r"""GetTopLeft(EDA_SHAPE self) -> VECTOR2I"""
16291 return _pcbnew.EDA_SHAPE_GetTopLeft(self)
16292
16293 def GetBotRight(self):
16294 r"""GetBotRight(EDA_SHAPE self) -> VECTOR2I"""
16295 return _pcbnew.EDA_SHAPE_GetBotRight(self)
16296
16297 def SetTop(self, val):
16298 r"""SetTop(EDA_SHAPE self, int val)"""
16299 return _pcbnew.EDA_SHAPE_SetTop(self, val)
16300
16301 def SetLeft(self, val):
16302 r"""SetLeft(EDA_SHAPE self, int val)"""
16303 return _pcbnew.EDA_SHAPE_SetLeft(self, val)
16304
16305 def SetRight(self, val):
16306 r"""SetRight(EDA_SHAPE self, int val)"""
16307 return _pcbnew.EDA_SHAPE_SetRight(self, val)
16308
16309 def SetBottom(self, val):
16310 r"""SetBottom(EDA_SHAPE self, int val)"""
16311 return _pcbnew.EDA_SHAPE_SetBottom(self, val)
16312
16313 def SetBezierC1(self, aPt):
16314 r"""SetBezierC1(EDA_SHAPE self, VECTOR2I aPt)"""
16315 return _pcbnew.EDA_SHAPE_SetBezierC1(self, aPt)
16316
16317 def GetBezierC1(self):
16318 r"""GetBezierC1(EDA_SHAPE self) -> VECTOR2I"""
16319 return _pcbnew.EDA_SHAPE_GetBezierC1(self)
16320
16321 def SetBezierC2(self, aPt):
16322 r"""SetBezierC2(EDA_SHAPE self, VECTOR2I aPt)"""
16323 return _pcbnew.EDA_SHAPE_SetBezierC2(self, aPt)
16324
16325 def GetBezierC2(self):
16326 r"""GetBezierC2(EDA_SHAPE self) -> VECTOR2I"""
16327 return _pcbnew.EDA_SHAPE_GetBezierC2(self)
16328
16329 def SetCenter(self, aCenter):
16330 r"""SetCenter(EDA_SHAPE self, VECTOR2I aCenter)"""
16331 return _pcbnew.EDA_SHAPE_SetCenter(self, aCenter)
16332
16333 def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False):
16334 r"""SetArcAngleAndEnd(EDA_SHAPE self, EDA_ANGLE aAngle, bool aCheckNegativeAngle=False)"""
16335 return _pcbnew.EDA_SHAPE_SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle)
16336
16337 def GetArcAngle(self):
16338 r"""GetArcAngle(EDA_SHAPE self) -> EDA_ANGLE"""
16339 return _pcbnew.EDA_SHAPE_GetArcAngle(self)
16340
16342 r"""GetSegmentAngle(EDA_SHAPE self) -> EDA_ANGLE"""
16343 return _pcbnew.EDA_SHAPE_GetSegmentAngle(self)
16344
16345 def EndsSwapped(self):
16346 r"""EndsSwapped(EDA_SHAPE self) -> bool"""
16347 return _pcbnew.EDA_SHAPE_EndsSwapped(self)
16348
16349 def GetArcMid(self):
16350 r"""GetArcMid(EDA_SHAPE self) -> VECTOR2I"""
16351 return _pcbnew.EDA_SHAPE_GetArcMid(self)
16352
16354 r"""GetRectCorners(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
16355 return _pcbnew.EDA_SHAPE_GetRectCorners(self)
16356
16358 r"""GetCornersInSequence(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
16359 return _pcbnew.EDA_SHAPE_GetCornersInSequence(self)
16360
16361 def CalcArcAngles(self, aStartAngle, aEndAngle):
16362 r"""CalcArcAngles(EDA_SHAPE self, EDA_ANGLE aStartAngle, EDA_ANGLE aEndAngle)"""
16363 return _pcbnew.EDA_SHAPE_CalcArcAngles(self, aStartAngle, aEndAngle)
16364
16365 def GetRadius(self):
16366 r"""GetRadius(EDA_SHAPE self) -> int"""
16367 return _pcbnew.EDA_SHAPE_GetRadius(self)
16368
16369 def SetArcGeometry(self, aStart, aMid, aEnd):
16370 r"""SetArcGeometry(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd)"""
16371 return _pcbnew.EDA_SHAPE_SetArcGeometry(self, aStart, aMid, aEnd)
16372
16373 def SetCachedArcData(self, aStart, aMid, aEnd, aCenter):
16374 r"""SetCachedArcData(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd, VECTOR2I aCenter)"""
16375 return _pcbnew.EDA_SHAPE_SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
16376
16378 r"""GetBezierPoints(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
16379 return _pcbnew.EDA_SHAPE_GetBezierPoints(self)
16380
16381 def DupPolyPointsList(self, aBuffer):
16382 r"""DupPolyPointsList(EDA_SHAPE self, VECTOR_VECTOR2I aBuffer)"""
16383 return _pcbnew.EDA_SHAPE_DupPolyPointsList(self, aBuffer)
16384
16385 def GetPointCount(self):
16386 r"""GetPointCount(EDA_SHAPE self) -> int"""
16387 return _pcbnew.EDA_SHAPE_GetPointCount(self)
16388
16389 def GetPolyShape(self, *args):
16390 r"""
16391 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
16392 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
16393 """
16394 return _pcbnew.EDA_SHAPE_GetPolyShape(self, *args)
16395
16397 r"""IsPolyShapeValid(EDA_SHAPE self) -> bool"""
16398 return _pcbnew.EDA_SHAPE_IsPolyShapeValid(self)
16399
16400 def SetPolyShape(self, aShape):
16401 r"""SetPolyShape(EDA_SHAPE self, SHAPE_POLY_SET aShape)"""
16402 return _pcbnew.EDA_SHAPE_SetPolyShape(self, aShape)
16403
16404 def SetPolyPoints(self, aPoints):
16405 r"""SetPolyPoints(EDA_SHAPE self, VECTOR_VECTOR2I aPoints)"""
16406 return _pcbnew.EDA_SHAPE_SetPolyPoints(self, aPoints)
16407
16409 r"""RebuildBezierToSegmentsPointsList(EDA_SHAPE self, int aMaxError)"""
16410 return _pcbnew.EDA_SHAPE_RebuildBezierToSegmentsPointsList(self, aMaxError)
16411
16412 def MakeEffectiveShapes(self, aEdgeOnly=False):
16413 r"""MakeEffectiveShapes(EDA_SHAPE self, bool aEdgeOnly=False) -> std::vector< SHAPE *,std::allocator< SHAPE * > >"""
16414 return _pcbnew.EDA_SHAPE_MakeEffectiveShapes(self, aEdgeOnly)
16415
16416 def ShapeGetMsgPanelInfo(self, aFrame, aList):
16417 r"""ShapeGetMsgPanelInfo(EDA_SHAPE self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
16418 return _pcbnew.EDA_SHAPE_ShapeGetMsgPanelInfo(self, aFrame, aList)
16419
16420 def SetLength(self, aLength):
16421 r"""SetLength(EDA_SHAPE self, double const & aLength)"""
16422 return _pcbnew.EDA_SHAPE_SetLength(self, aLength)
16423
16424 def SetRectangleHeight(self, aHeight):
16425 r"""SetRectangleHeight(EDA_SHAPE self, int const & aHeight)"""
16426 return _pcbnew.EDA_SHAPE_SetRectangleHeight(self, aHeight)
16427
16428 def SetRectangleWidth(self, aWidth):
16429 r"""SetRectangleWidth(EDA_SHAPE self, int const & aWidth)"""
16430 return _pcbnew.EDA_SHAPE_SetRectangleWidth(self, aWidth)
16431
16432 def SetRectangle(self, aHeight, aWidth):
16433 r"""SetRectangle(EDA_SHAPE self, long long const & aHeight, long long const & aWidth)"""
16434 return _pcbnew.EDA_SHAPE_SetRectangle(self, aHeight, aWidth)
16435
16436 def SetSegmentAngle(self, aAngle):
16437 r"""SetSegmentAngle(EDA_SHAPE self, EDA_ANGLE aAngle)"""
16438 return _pcbnew.EDA_SHAPE_SetSegmentAngle(self, aAngle)
16439
16441 r"""IsClockwiseArc(EDA_SHAPE self) -> bool"""
16442 return _pcbnew.EDA_SHAPE_IsClockwiseArc(self)
16443
16444 def GetLength(self):
16445 r"""GetLength(EDA_SHAPE self) -> double"""
16446 return _pcbnew.EDA_SHAPE_GetLength(self)
16447
16449 r"""GetRectangleHeight(EDA_SHAPE self) -> int"""
16450 return _pcbnew.EDA_SHAPE_GetRectangleHeight(self)
16451
16453 r"""GetRectangleWidth(EDA_SHAPE self) -> int"""
16454 return _pcbnew.EDA_SHAPE_GetRectangleWidth(self)
16455
16456 def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
16457 r"""TransformShapeToPolygon(EDA_SHAPE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
16458 return _pcbnew.EDA_SHAPE_TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth)
16459
16460 def Compare(self, aOther):
16461 r"""Compare(EDA_SHAPE self, EDA_SHAPE aOther) -> int"""
16462 return _pcbnew.EDA_SHAPE_Compare(self, aOther)
16463
16464 def Similarity(self, aOther):
16465 r"""Similarity(EDA_SHAPE self, EDA_SHAPE aOther) -> double"""
16466 return _pcbnew.EDA_SHAPE_Similarity(self, aOther)
16467
16468 def __eq__(self, aOther):
16469 r"""__eq__(EDA_SHAPE self, EDA_SHAPE aOther) -> bool"""
16470 return _pcbnew.EDA_SHAPE___eq__(self, aOther)
16471
16472# Register EDA_SHAPE in _pcbnew:
16473_pcbnew.EDA_SHAPE_swigregister(EDA_SHAPE)
16475 r"""Proxy of C++ PCB_SHAPE class."""
16476
16477 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16478 __repr__ = _swig_repr
16479
16480 def __init__(self, *args):
16481 r"""
16482 __init__(PCB_SHAPE self, BOARD_ITEM aParent, KICAD_T aItemType, SHAPE_T aShapeType) -> PCB_SHAPE
16483 __init__(PCB_SHAPE self, BOARD_ITEM aParent=None, SHAPE_T aShapeType=SEGMENT) -> PCB_SHAPE
16484 """
16485 _pcbnew.PCB_SHAPE_swiginit(self, _pcbnew.new_PCB_SHAPE(*args))
16486 __swig_destroy__ = _pcbnew.delete_PCB_SHAPE
16487
16488 @staticmethod
16489 def ClassOf(aItem):
16490 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16491 return _pcbnew.PCB_SHAPE_ClassOf(aItem)
16492
16493 def Serialize(self, aContainer):
16494 r"""Serialize(PCB_SHAPE self, google::protobuf::Any & aContainer)"""
16495 return _pcbnew.PCB_SHAPE_Serialize(self, aContainer)
16496
16497 def Deserialize(self, aContainer):
16498 r"""Deserialize(PCB_SHAPE self, google::protobuf::Any const & aContainer) -> bool"""
16499 return _pcbnew.PCB_SHAPE_Deserialize(self, aContainer)
16500
16502 r"""GetConnectionPoints(PCB_SHAPE self) -> VECTOR_VECTOR2I"""
16503 return _pcbnew.PCB_SHAPE_GetConnectionPoints(self)
16504
16505 def GetCorners(self):
16506 r"""GetCorners(PCB_SHAPE self) -> VECTOR_VECTOR2I"""
16507 return _pcbnew.PCB_SHAPE_GetCorners(self)
16508
16509 def GetEffectiveShape(self, *args):
16510 r"""GetEffectiveShape(PCB_SHAPE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16511 return _pcbnew.PCB_SHAPE_GetEffectiveShape(self, *args)
16512
16513 def SetIsProxyItem(self, aIsProxy=True):
16514 r"""SetIsProxyItem(PCB_SHAPE self, bool aIsProxy=True)"""
16515 return _pcbnew.PCB_SHAPE_SetIsProxyItem(self, aIsProxy)
16516
16517 def HitTest(self, *args):
16518 r"""
16519 HitTest(PCB_SHAPE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
16520 HitTest(PCB_SHAPE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16521 """
16522 return _pcbnew.PCB_SHAPE_HitTest(self, *args)
16523
16524 def Scale(self, aScale):
16525 r"""Scale(PCB_SHAPE self, double aScale)"""
16526 return _pcbnew.PCB_SHAPE_Scale(self, aScale)
16527
16528 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
16529 r"""TransformShapeToPolygon(PCB_SHAPE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
16530 return _pcbnew.PCB_SHAPE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
16531
16532 def ViewGetLOD(self, aLayer, aView):
16533 r"""ViewGetLOD(PCB_SHAPE self, int aLayer, KIGFX::VIEW const * aView) -> double"""
16534 return _pcbnew.PCB_SHAPE_ViewGetLOD(self, aLayer, aView)
16535
16536 def __eq__(self, *args):
16537 r"""
16538 __eq__(PCB_SHAPE self, PCB_SHAPE aShape) -> bool
16539 __eq__(PCB_SHAPE self, BOARD_ITEM aBoardItem) -> bool
16540 """
16541 return _pcbnew.PCB_SHAPE___eq__(self, *args)
16542
16543 def SetHasSolderMask(self, aVal):
16544 r"""SetHasSolderMask(PCB_SHAPE self, bool aVal)"""
16545 return _pcbnew.PCB_SHAPE_SetHasSolderMask(self, aVal)
16546
16547 def HasSolderMask(self):
16548 r"""HasSolderMask(PCB_SHAPE self) -> bool"""
16549 return _pcbnew.PCB_SHAPE_HasSolderMask(self)
16550
16551 def SetLocalSolderMaskMargin(self, aMargin):
16552 r"""SetLocalSolderMaskMargin(PCB_SHAPE self, std::optional< int > aMargin)"""
16553 return _pcbnew.PCB_SHAPE_SetLocalSolderMaskMargin(self, aMargin)
16554
16556 r"""GetLocalSolderMaskMargin(PCB_SHAPE self) -> std::optional< int >"""
16557 return _pcbnew.PCB_SHAPE_GetLocalSolderMaskMargin(self)
16558
16560 r"""GetSolderMaskExpansion(PCB_SHAPE self) -> int"""
16561 return _pcbnew.PCB_SHAPE_GetSolderMaskExpansion(self)
16562
16564 r"""GetArcAngleStart(PCB_SHAPE self) -> EDA_ANGLE"""
16565 return _pcbnew.PCB_SHAPE_GetArcAngleStart(self)
16566
16567 def GetShapeStr(self):
16568 return self.ShowShape()
16569
16570
16571# Register PCB_SHAPE in _pcbnew:
16572_pcbnew.PCB_SHAPE_swigregister(PCB_SHAPE)
16574 r"""Proxy of C++ PCB_TEXT class."""
16575
16576 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16577 __repr__ = _swig_repr
16578
16579 def __init__(self, *args):
16580 r"""
16581 __init__(PCB_TEXT self, BOARD_ITEM parent, KICAD_T idtype=PCB_TEXT_T) -> PCB_TEXT
16582 __init__(PCB_TEXT self, FOOTPRINT aParent, KICAD_T idtype=PCB_TEXT_T) -> PCB_TEXT
16583 """
16584 _pcbnew.PCB_TEXT_swiginit(self, _pcbnew.new_PCB_TEXT(*args))
16585 __swig_destroy__ = _pcbnew.delete_PCB_TEXT
16586
16587 @staticmethod
16588 def ClassOf(aItem):
16589 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16590 return _pcbnew.PCB_TEXT_ClassOf(aItem)
16591
16592 def Serialize(self, aContainer):
16593 r"""Serialize(PCB_TEXT self, google::protobuf::Any & aContainer)"""
16594 return _pcbnew.PCB_TEXT_Serialize(self, aContainer)
16595
16596 def Deserialize(self, aContainer):
16597 r"""Deserialize(PCB_TEXT self, google::protobuf::Any const & aContainer) -> bool"""
16598 return _pcbnew.PCB_TEXT_Deserialize(self, aContainer)
16599
16600 def KeepUpright(self):
16601 r"""KeepUpright(PCB_TEXT self)"""
16602 return _pcbnew.PCB_TEXT_KeepUpright(self)
16603
16604 def GetShownText(self, aAllowExtraText, aDepth=0):
16605 r"""GetShownText(PCB_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
16606 return _pcbnew.PCB_TEXT_GetShownText(self, aAllowExtraText, aDepth)
16607
16608 def TextHitTest(self, *args):
16609 r"""
16610 TextHitTest(PCB_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
16611 TextHitTest(PCB_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
16612 """
16613 return _pcbnew.PCB_TEXT_TextHitTest(self, *args)
16614
16615 def HitTest(self, *args):
16616 r"""
16617 HitTest(PCB_TEXT self, VECTOR2I aPosition, int aAccuracy) -> bool
16618 HitTest(PCB_TEXT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16619 """
16620 return _pcbnew.PCB_TEXT_HitTest(self, *args)
16621
16622 def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc):
16623 r"""TransformTextToPolySet(PCB_TEXT self, SHAPE_POLY_SET aBuffer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc)"""
16624 return _pcbnew.PCB_TEXT_TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
16625
16626 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
16627 r"""TransformShapeToPolygon(PCB_TEXT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
16628 return _pcbnew.PCB_TEXT_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
16629
16630 def GetEffectiveShape(self, *args):
16631 r"""GetEffectiveShape(PCB_TEXT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16632 return _pcbnew.PCB_TEXT_GetEffectiveShape(self, *args)
16633
16635 r"""GetTextTypeDescription(PCB_TEXT self) -> wxString"""
16636 return _pcbnew.PCB_TEXT_GetTextTypeDescription(self)
16637
16638 def ViewGetLOD(self, aLayer, aView):
16639 r"""ViewGetLOD(PCB_TEXT self, int aLayer, KIGFX::VIEW const * aView) -> double"""
16640 return _pcbnew.PCB_TEXT_ViewGetLOD(self, aLayer, aView)
16641
16642 def __eq__(self, *args):
16643 r"""
16644 __eq__(PCB_TEXT self, PCB_TEXT aOther) -> bool
16645 __eq__(PCB_TEXT self, BOARD_ITEM aBoardItem) -> bool
16646 """
16647 return _pcbnew.PCB_TEXT___eq__(self, *args)
16648
16649# Register PCB_TEXT in _pcbnew:
16650_pcbnew.PCB_TEXT_swigregister(PCB_TEXT)
16651S_SEGMENT = cvar.S_SEGMENT
16652S_RECT = cvar.S_RECT
16653S_ARC = cvar.S_ARC
16654S_CIRCLE = cvar.S_CIRCLE
16655S_POLYGON = cvar.S_POLYGON
16656S_CURVE = cvar.S_CURVE
16657SHAPE_T_RECT = cvar.SHAPE_T_RECT
16658
16660 r"""Proxy of C++ PCB_TEXTBOX class."""
16661
16662 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16663 __repr__ = _swig_repr
16664
16665 def __init__(self, aParent, aType=PCB_TEXTBOX_T):
16666 r"""__init__(PCB_TEXTBOX self, BOARD_ITEM aParent, KICAD_T aType=PCB_TEXTBOX_T) -> PCB_TEXTBOX"""
16667 _pcbnew.PCB_TEXTBOX_swiginit(self, _pcbnew.new_PCB_TEXTBOX(aParent, aType))
16668 __swig_destroy__ = _pcbnew.delete_PCB_TEXTBOX
16669
16670 @staticmethod
16671 def ClassOf(aItem):
16672 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16673 return _pcbnew.PCB_TEXTBOX_ClassOf(aItem)
16674
16675 def Serialize(self, aContainer):
16676 r"""Serialize(PCB_TEXTBOX self, google::protobuf::Any & aContainer)"""
16677 return _pcbnew.PCB_TEXTBOX_Serialize(self, aContainer)
16678
16679 def Deserialize(self, aContainer):
16680 r"""Deserialize(PCB_TEXTBOX self, google::protobuf::Any const & aContainer) -> bool"""
16681 return _pcbnew.PCB_TEXTBOX_Deserialize(self, aContainer)
16682
16684 r"""GetLegacyTextMargin(PCB_TEXTBOX self) -> int"""
16685 return _pcbnew.PCB_TEXTBOX_GetLegacyTextMargin(self)
16686
16687 def SetMarginLeft(self, aLeft):
16688 r"""SetMarginLeft(PCB_TEXTBOX self, int aLeft)"""
16689 return _pcbnew.PCB_TEXTBOX_SetMarginLeft(self, aLeft)
16690
16691 def SetMarginTop(self, aTop):
16692 r"""SetMarginTop(PCB_TEXTBOX self, int aTop)"""
16693 return _pcbnew.PCB_TEXTBOX_SetMarginTop(self, aTop)
16694
16695 def SetMarginRight(self, aRight):
16696 r"""SetMarginRight(PCB_TEXTBOX self, int aRight)"""
16697 return _pcbnew.PCB_TEXTBOX_SetMarginRight(self, aRight)
16698
16699 def SetMarginBottom(self, aBottom):
16700 r"""SetMarginBottom(PCB_TEXTBOX self, int aBottom)"""
16701 return _pcbnew.PCB_TEXTBOX_SetMarginBottom(self, aBottom)
16702
16703 def GetMarginLeft(self):
16704 r"""GetMarginLeft(PCB_TEXTBOX self) -> int"""
16705 return _pcbnew.PCB_TEXTBOX_GetMarginLeft(self)
16706
16707 def GetMarginTop(self):
16708 r"""GetMarginTop(PCB_TEXTBOX self) -> int"""
16709 return _pcbnew.PCB_TEXTBOX_GetMarginTop(self)
16710
16712 r"""GetMarginRight(PCB_TEXTBOX self) -> int"""
16713 return _pcbnew.PCB_TEXTBOX_GetMarginRight(self)
16714
16716 r"""GetMarginBottom(PCB_TEXTBOX self) -> int"""
16717 return _pcbnew.PCB_TEXTBOX_GetMarginBottom(self)
16718
16719 def GetDrawPos(self, *args):
16720 r"""
16721 GetDrawPos(PCB_TEXTBOX self) -> VECTOR2I
16722 GetDrawPos(PCB_TEXTBOX self, bool aIsFlipped) -> VECTOR2I
16723 """
16724 return _pcbnew.PCB_TEXTBOX_GetDrawPos(self, *args)
16725
16726 def GetShownText(self, aAllowExtraText, aDepth=0):
16727 r"""GetShownText(PCB_TEXTBOX self, bool aAllowExtraText, int aDepth=0) -> wxString"""
16728 return _pcbnew.PCB_TEXTBOX_GetShownText(self, aAllowExtraText, aDepth)
16729
16730 def HitTest(self, *args):
16731 r"""
16732 HitTest(PCB_TEXTBOX self, VECTOR2I aPosition, int aAccuracy) -> bool
16733 HitTest(PCB_TEXTBOX self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16734 """
16735 return _pcbnew.PCB_TEXTBOX_HitTest(self, *args)
16736
16737 def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc):
16738 r"""TransformTextToPolySet(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc)"""
16739 return _pcbnew.PCB_TEXTBOX_TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
16740
16741 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
16742 r"""TransformShapeToPolygon(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
16743 return _pcbnew.PCB_TEXTBOX_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
16744
16745 def GetEffectiveShape(self, *args):
16746 r"""GetEffectiveShape(PCB_TEXTBOX self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16747 return _pcbnew.PCB_TEXTBOX_GetEffectiveShape(self, *args)
16748
16749 def ViewGetLOD(self, aLayer, aView):
16750 r"""ViewGetLOD(PCB_TEXTBOX self, int aLayer, KIGFX::VIEW const * aView) -> double"""
16751 return _pcbnew.PCB_TEXTBOX_ViewGetLOD(self, aLayer, aView)
16752
16754 r"""IsBorderEnabled(PCB_TEXTBOX self) -> bool"""
16755 return _pcbnew.PCB_TEXTBOX_IsBorderEnabled(self)
16756
16757 def SetBorderEnabled(self, enabled):
16758 r"""SetBorderEnabled(PCB_TEXTBOX self, bool enabled)"""
16759 return _pcbnew.PCB_TEXTBOX_SetBorderEnabled(self, enabled)
16760
16761 def SetBorderWidth(self, aSize):
16762 r"""SetBorderWidth(PCB_TEXTBOX self, int const aSize)"""
16763 return _pcbnew.PCB_TEXTBOX_SetBorderWidth(self, aSize)
16764
16766 r"""GetBorderWidth(PCB_TEXTBOX self) -> int"""
16767 return _pcbnew.PCB_TEXTBOX_GetBorderWidth(self)
16768
16769 def __eq__(self, *args):
16770 r"""
16771 __eq__(PCB_TEXTBOX self, PCB_TEXTBOX aOther) -> bool
16772 __eq__(PCB_TEXTBOX self, BOARD_ITEM aBoardItem) -> bool
16773 """
16774 return _pcbnew.PCB_TEXTBOX___eq__(self, *args)
16775
16776# Register PCB_TEXTBOX in _pcbnew:
16777_pcbnew.PCB_TEXTBOX_swigregister(PCB_TEXTBOX)
16778GR_TEXT_H_ALIGN_LEFT = _pcbnew.GR_TEXT_H_ALIGN_LEFT
16779
16780GR_TEXT_H_ALIGN_CENTER = _pcbnew.GR_TEXT_H_ALIGN_CENTER
16781
16782GR_TEXT_H_ALIGN_RIGHT = _pcbnew.GR_TEXT_H_ALIGN_RIGHT
16783
16784GR_TEXT_H_ALIGN_INDETERMINATE = _pcbnew.GR_TEXT_H_ALIGN_INDETERMINATE
16785
16786GR_TEXT_V_ALIGN_TOP = _pcbnew.GR_TEXT_V_ALIGN_TOP
16787
16788GR_TEXT_V_ALIGN_CENTER = _pcbnew.GR_TEXT_V_ALIGN_CENTER
16789
16790GR_TEXT_V_ALIGN_BOTTOM = _pcbnew.GR_TEXT_V_ALIGN_BOTTOM
16791
16792GR_TEXT_V_ALIGN_INDETERMINATE = _pcbnew.GR_TEXT_V_ALIGN_INDETERMINATE
16793
16794
16796 r"""
16797 GetFlippedAlignment(GR_TEXT_H_ALIGN_T aAlign) -> GR_TEXT_H_ALIGN_T
16798 GetFlippedAlignment(GR_TEXT_V_ALIGN_T aAlign) -> GR_TEXT_V_ALIGN_T
16799 """
16800 return _pcbnew.GetFlippedAlignment(*args)
16801
16803 r"""ToHAlignment(int x) -> GR_TEXT_H_ALIGN_T"""
16804 return _pcbnew.ToHAlignment(x)
16806 r"""Proxy of C++ TEXT_ATTRIBUTES class."""
16807
16808 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16809 __repr__ = _swig_repr
16810
16811 def __init__(self, aFont=None):
16812 r"""__init__(TEXT_ATTRIBUTES self, KIFONT::FONT * aFont=None) -> TEXT_ATTRIBUTES"""
16813 _pcbnew.TEXT_ATTRIBUTES_swiginit(self, _pcbnew.new_TEXT_ATTRIBUTES(aFont))
16814
16815 def Compare(self, aRhs):
16816 r"""Compare(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> int"""
16817 return _pcbnew.TEXT_ATTRIBUTES_Compare(self, aRhs)
16818
16819 def __eq__(self, aRhs):
16820 r"""__eq__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
16821 return _pcbnew.TEXT_ATTRIBUTES___eq__(self, aRhs)
16822
16823 def __gt__(self, aRhs):
16824 r"""__gt__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
16825 return _pcbnew.TEXT_ATTRIBUTES___gt__(self, aRhs)
16826
16827 def __lt__(self, aRhs):
16828 r"""__lt__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
16829 return _pcbnew.TEXT_ATTRIBUTES___lt__(self, aRhs)
16830 m_Font = property(_pcbnew.TEXT_ATTRIBUTES_m_Font_get, _pcbnew.TEXT_ATTRIBUTES_m_Font_set, doc=r"""m_Font : p.KIFONT::FONT""")
16831 m_Halign = property(_pcbnew.TEXT_ATTRIBUTES_m_Halign_get, _pcbnew.TEXT_ATTRIBUTES_m_Halign_set, doc=r"""m_Halign : GR_TEXT_H_ALIGN_T""")
16832 m_Valign = property(_pcbnew.TEXT_ATTRIBUTES_m_Valign_get, _pcbnew.TEXT_ATTRIBUTES_m_Valign_set, doc=r"""m_Valign : GR_TEXT_V_ALIGN_T""")
16833 m_Angle = property(_pcbnew.TEXT_ATTRIBUTES_m_Angle_get, _pcbnew.TEXT_ATTRIBUTES_m_Angle_set, doc=r"""m_Angle : EDA_ANGLE""")
16834 m_LineSpacing = property(_pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_get, _pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_set, doc=r"""m_LineSpacing : double""")
16835 m_StrokeWidth = property(_pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_get, _pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_set, doc=r"""m_StrokeWidth : int""")
16836 m_Italic = property(_pcbnew.TEXT_ATTRIBUTES_m_Italic_get, _pcbnew.TEXT_ATTRIBUTES_m_Italic_set, doc=r"""m_Italic : bool""")
16837 m_Bold = property(_pcbnew.TEXT_ATTRIBUTES_m_Bold_get, _pcbnew.TEXT_ATTRIBUTES_m_Bold_set, doc=r"""m_Bold : bool""")
16838 m_Underlined = property(_pcbnew.TEXT_ATTRIBUTES_m_Underlined_get, _pcbnew.TEXT_ATTRIBUTES_m_Underlined_set, doc=r"""m_Underlined : bool""")
16839 m_Color = property(_pcbnew.TEXT_ATTRIBUTES_m_Color_get, _pcbnew.TEXT_ATTRIBUTES_m_Color_set, doc=r"""m_Color : KIGFX::COLOR4D""")
16840 m_Mirrored = property(_pcbnew.TEXT_ATTRIBUTES_m_Mirrored_get, _pcbnew.TEXT_ATTRIBUTES_m_Mirrored_set, doc=r"""m_Mirrored : bool""")
16841 m_Multiline = property(_pcbnew.TEXT_ATTRIBUTES_m_Multiline_get, _pcbnew.TEXT_ATTRIBUTES_m_Multiline_set, doc=r"""m_Multiline : bool""")
16842 m_Size = property(_pcbnew.TEXT_ATTRIBUTES_m_Size_get, _pcbnew.TEXT_ATTRIBUTES_m_Size_set, doc=r"""m_Size : VECTOR2I""")
16843 m_KeepUpright = property(_pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_get, _pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_set, doc=r"""m_KeepUpright : bool""")
16844 m_StoredStrokeWidth = property(_pcbnew.TEXT_ATTRIBUTES_m_StoredStrokeWidth_get, _pcbnew.TEXT_ATTRIBUTES_m_StoredStrokeWidth_set, doc=r"""m_StoredStrokeWidth : int""")
16845 __swig_destroy__ = _pcbnew.delete_TEXT_ATTRIBUTES
16846
16847# Register TEXT_ATTRIBUTES in _pcbnew:
16848_pcbnew.TEXT_ATTRIBUTES_swigregister(TEXT_ATTRIBUTES)
16850 r"""Proxy of C++ PCB_FIELD class."""
16851
16852 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16853 __repr__ = _swig_repr
16854
16855 def __init__(self, *args):
16856 r"""
16857 __init__(PCB_FIELD self, FOOTPRINT aParent, int aFieldId, wxString aName=wxEmptyString) -> PCB_FIELD
16858 __init__(PCB_FIELD self, PCB_TEXT aText, int aFieldId, wxString aName=wxEmptyString) -> PCB_FIELD
16859 """
16860 _pcbnew.PCB_FIELD_swiginit(self, _pcbnew.new_PCB_FIELD(*args))
16861
16862 def Serialize(self, aContainer):
16863 r"""Serialize(PCB_FIELD self, google::protobuf::Any & aContainer)"""
16864 return _pcbnew.PCB_FIELD_Serialize(self, aContainer)
16865
16866 def Deserialize(self, aContainer):
16867 r"""Deserialize(PCB_FIELD self, google::protobuf::Any const & aContainer) -> bool"""
16868 return _pcbnew.PCB_FIELD_Deserialize(self, aContainer)
16869
16870 @staticmethod
16871 def ClassOf(aItem):
16872 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16873 return _pcbnew.PCB_FIELD_ClassOf(aItem)
16874
16875 def IsReference(self):
16876 r"""IsReference(PCB_FIELD self) -> bool"""
16877 return _pcbnew.PCB_FIELD_IsReference(self)
16878
16879 def IsValue(self):
16880 r"""IsValue(PCB_FIELD self) -> bool"""
16881 return _pcbnew.PCB_FIELD_IsValue(self)
16882
16883 def IsDatasheet(self):
16884 r"""IsDatasheet(PCB_FIELD self) -> bool"""
16885 return _pcbnew.PCB_FIELD_IsDatasheet(self)
16886
16888 r"""IsComponentClass(PCB_FIELD self) -> bool"""
16889 return _pcbnew.PCB_FIELD_IsComponentClass(self)
16890
16891 def IsMandatory(self):
16892 r"""IsMandatory(PCB_FIELD self) -> bool"""
16893 return _pcbnew.PCB_FIELD_IsMandatory(self)
16894
16895 def IsHypertext(self):
16896 r"""IsHypertext(PCB_FIELD self) -> bool"""
16897 return _pcbnew.PCB_FIELD_IsHypertext(self)
16898
16899 def ViewGetLOD(self, aLayer, aView):
16900 r"""ViewGetLOD(PCB_FIELD self, int aLayer, KIGFX::VIEW const * aView) -> double"""
16901 return _pcbnew.PCB_FIELD_ViewGetLOD(self, aLayer, aView)
16902
16903 def CloneField(self):
16904 r"""CloneField(PCB_FIELD self) -> PCB_FIELD"""
16905 return _pcbnew.PCB_FIELD_CloneField(self)
16906
16907 def GetName(self, aUseDefaultName=True):
16908 r"""GetName(PCB_FIELD self, bool aUseDefaultName=True) -> wxString"""
16909 return _pcbnew.PCB_FIELD_GetName(self, aUseDefaultName)
16910
16912 r"""GetCanonicalName(PCB_FIELD self) -> wxString"""
16913 return _pcbnew.PCB_FIELD_GetCanonicalName(self)
16914
16915 def SetName(self, aName):
16916 r"""SetName(PCB_FIELD self, wxString aName)"""
16917 return _pcbnew.PCB_FIELD_SetName(self, aName)
16918
16919 def GetId(self):
16920 r"""GetId(PCB_FIELD self) -> int"""
16921 return _pcbnew.PCB_FIELD_GetId(self)
16922
16923 def SetId(self, aId):
16924 r"""SetId(PCB_FIELD self, int aId)"""
16925 return _pcbnew.PCB_FIELD_SetId(self, aId)
16926
16927 def __eq__(self, *args):
16928 r"""
16929 __eq__(PCB_FIELD self, PCB_FIELD aOther) -> bool
16930 __eq__(PCB_FIELD self, BOARD_ITEM aOther) -> bool
16931 """
16932 return _pcbnew.PCB_FIELD___eq__(self, *args)
16933 __swig_destroy__ = _pcbnew.delete_PCB_FIELD
16934
16935# Register PCB_FIELD in _pcbnew:
16936_pcbnew.PCB_FIELD_swigregister(PCB_FIELD)
16937DIM_UNITS_FORMAT_NO_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_NO_SUFFIX
16938
16939DIM_UNITS_FORMAT_BARE_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_BARE_SUFFIX
16940
16941DIM_UNITS_FORMAT_PAREN_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_PAREN_SUFFIX
16942
16943DIM_PRECISION_X = _pcbnew.DIM_PRECISION_X
16944
16945DIM_PRECISION_X_X = _pcbnew.DIM_PRECISION_X_X
16946
16947DIM_PRECISION_X_XX = _pcbnew.DIM_PRECISION_X_XX
16948
16949DIM_PRECISION_X_XXX = _pcbnew.DIM_PRECISION_X_XXX
16950
16951DIM_PRECISION_X_XXXX = _pcbnew.DIM_PRECISION_X_XXXX
16952
16953DIM_PRECISION_X_XXXXX = _pcbnew.DIM_PRECISION_X_XXXXX
16954
16955DIM_PRECISION_V_VV = _pcbnew.DIM_PRECISION_V_VV
16956
16957DIM_PRECISION_V_VVV = _pcbnew.DIM_PRECISION_V_VVV
16958
16959DIM_PRECISION_V_VVVV = _pcbnew.DIM_PRECISION_V_VVVV
16960
16961DIM_PRECISION_V_VVVVV = _pcbnew.DIM_PRECISION_V_VVVVV
16962
16963DIM_TEXT_POSITION_OUTSIDE = _pcbnew.DIM_TEXT_POSITION_OUTSIDE
16964
16965DIM_TEXT_POSITION_INLINE = _pcbnew.DIM_TEXT_POSITION_INLINE
16966
16967DIM_TEXT_POSITION_MANUAL = _pcbnew.DIM_TEXT_POSITION_MANUAL
16968
16969DIM_UNITS_MODE_INCH = _pcbnew.DIM_UNITS_MODE_INCH
16970
16971DIM_UNITS_MODE_MILS = _pcbnew.DIM_UNITS_MODE_MILS
16972
16973DIM_UNITS_MODE_MM = _pcbnew.DIM_UNITS_MODE_MM
16974
16975DIM_UNITS_MODE_AUTOMATIC = _pcbnew.DIM_UNITS_MODE_AUTOMATIC
16976
16977DIM_ARROW_DIRECTION_INWARD = _pcbnew.DIM_ARROW_DIRECTION_INWARD
16978
16979DIM_ARROW_DIRECTION_OUTWARD = _pcbnew.DIM_ARROW_DIRECTION_OUTWARD
16980
16981DIM_TEXT_BORDER_NONE = _pcbnew.DIM_TEXT_BORDER_NONE
16982
16983DIM_TEXT_BORDER_RECTANGLE = _pcbnew.DIM_TEXT_BORDER_RECTANGLE
16984
16985DIM_TEXT_BORDER_CIRCLE = _pcbnew.DIM_TEXT_BORDER_CIRCLE
16986
16987DIM_TEXT_BORDER_ROUNDRECT = _pcbnew.DIM_TEXT_BORDER_ROUNDRECT
16988
16990 r"""Proxy of C++ PCB_DIMENSION_BASE class."""
16991
16992 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16993
16994 def __init__(self, *args, **kwargs):
16995 raise AttributeError("No constructor defined - class is abstract")
16996 __repr__ = _swig_repr
16997
16998 def Serialize(self, aContainer):
16999 r"""Serialize(PCB_DIMENSION_BASE self, google::protobuf::Any & aContainer)"""
17000 return _pcbnew.PCB_DIMENSION_BASE_Serialize(self, aContainer)
17001
17002 def Deserialize(self, aContainer):
17003 r"""Deserialize(PCB_DIMENSION_BASE self, google::protobuf::Any const & aContainer) -> bool"""
17004 return _pcbnew.PCB_DIMENSION_BASE_Deserialize(self, aContainer)
17005
17006 def GetStart(self):
17007 r"""GetStart(PCB_DIMENSION_BASE self) -> VECTOR2I"""
17008 return _pcbnew.PCB_DIMENSION_BASE_GetStart(self)
17009
17010 def SetStart(self, aPoint):
17011 r"""SetStart(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
17012 return _pcbnew.PCB_DIMENSION_BASE_SetStart(self, aPoint)
17013
17014 def GetEnd(self):
17015 r"""GetEnd(PCB_DIMENSION_BASE self) -> VECTOR2I"""
17016 return _pcbnew.PCB_DIMENSION_BASE_GetEnd(self)
17017
17018 def SetEnd(self, aPoint):
17019 r"""SetEnd(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
17020 return _pcbnew.PCB_DIMENSION_BASE_SetEnd(self, aPoint)
17021
17023 r"""GetOverrideTextEnabled(PCB_DIMENSION_BASE self) -> bool"""
17024 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideTextEnabled(self)
17025
17026 def SetOverrideTextEnabled(self, aOverride):
17027 r"""SetOverrideTextEnabled(PCB_DIMENSION_BASE self, bool aOverride)"""
17028 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideTextEnabled(self, aOverride)
17029
17031 r"""GetOverrideText(PCB_DIMENSION_BASE self) -> wxString"""
17032 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideText(self)
17033
17034 def SetOverrideText(self, aValue):
17035 r"""SetOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
17036 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideText(self, aValue)
17037
17038 def ChangeOverrideText(self, aValue):
17039 r"""ChangeOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
17040 return _pcbnew.PCB_DIMENSION_BASE_ChangeOverrideText(self, aValue)
17041
17043 r"""GetMeasuredValue(PCB_DIMENSION_BASE self) -> int"""
17044 return _pcbnew.PCB_DIMENSION_BASE_GetMeasuredValue(self)
17045
17046 def SetMeasuredValue(self, aValue):
17047 r"""SetMeasuredValue(PCB_DIMENSION_BASE self, int aValue)"""
17048 return _pcbnew.PCB_DIMENSION_BASE_SetMeasuredValue(self, aValue)
17049
17050 def GetValueText(self):
17051 r"""GetValueText(PCB_DIMENSION_BASE self) -> wxString"""
17052 return _pcbnew.PCB_DIMENSION_BASE_GetValueText(self)
17053
17054 def Update(self):
17055 r"""Update(PCB_DIMENSION_BASE self)"""
17056 return _pcbnew.PCB_DIMENSION_BASE_Update(self)
17057
17058 def UpdateUnits(self):
17059 r"""UpdateUnits(PCB_DIMENSION_BASE self)"""
17060 return _pcbnew.PCB_DIMENSION_BASE_UpdateUnits(self)
17061
17062 def GetPrefix(self):
17063 r"""GetPrefix(PCB_DIMENSION_BASE self) -> wxString"""
17064 return _pcbnew.PCB_DIMENSION_BASE_GetPrefix(self)
17065
17066 def SetPrefix(self, aPrefix):
17067 r"""SetPrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
17068 return _pcbnew.PCB_DIMENSION_BASE_SetPrefix(self, aPrefix)
17069
17070 def ChangePrefix(self, aPrefix):
17071 r"""ChangePrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
17072 return _pcbnew.PCB_DIMENSION_BASE_ChangePrefix(self, aPrefix)
17073
17074 def GetSuffix(self):
17075 r"""GetSuffix(PCB_DIMENSION_BASE self) -> wxString"""
17076 return _pcbnew.PCB_DIMENSION_BASE_GetSuffix(self)
17077
17078 def SetSuffix(self, aSuffix):
17079 r"""SetSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
17080 return _pcbnew.PCB_DIMENSION_BASE_SetSuffix(self, aSuffix)
17081
17082 def ChangeSuffix(self, aSuffix):
17083 r"""ChangeSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
17084 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuffix(self, aSuffix)
17085
17087 r"""GetArrowDirection(PCB_DIMENSION_BASE self) -> DIM_ARROW_DIRECTION"""
17088 return _pcbnew.PCB_DIMENSION_BASE_GetArrowDirection(self)
17089
17090 def SetArrowDirection(self, aDirection):
17091 r"""SetArrowDirection(PCB_DIMENSION_BASE self, DIM_ARROW_DIRECTION const & aDirection)"""
17092 return _pcbnew.PCB_DIMENSION_BASE_SetArrowDirection(self, aDirection)
17093
17094 def ChangeArrowDirection(self, aDirection):
17095 r"""ChangeArrowDirection(PCB_DIMENSION_BASE self, DIM_ARROW_DIRECTION const & aDirection)"""
17096 return _pcbnew.PCB_DIMENSION_BASE_ChangeArrowDirection(self, aDirection)
17097
17098 def GetUnits(self):
17099 r"""GetUnits(PCB_DIMENSION_BASE self) -> EDA_UNITS"""
17100 return _pcbnew.PCB_DIMENSION_BASE_GetUnits(self)
17101
17102 def SetUnits(self, aUnits):
17103 r"""SetUnits(PCB_DIMENSION_BASE self, EDA_UNITS aUnits)"""
17104 return _pcbnew.PCB_DIMENSION_BASE_SetUnits(self, aUnits)
17105
17106 def GetUnitsMode(self):
17107 r"""GetUnitsMode(PCB_DIMENSION_BASE self) -> DIM_UNITS_MODE"""
17108 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsMode(self)
17109
17110 def SetUnitsMode(self, aMode):
17111 r"""SetUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
17112 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsMode(self, aMode)
17113
17114 def ChangeUnitsMode(self, aMode):
17115 r"""ChangeUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
17116 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsMode(self, aMode)
17117
17118 def SetAutoUnits(self, aAuto=True):
17119 r"""SetAutoUnits(PCB_DIMENSION_BASE self, bool aAuto=True)"""
17120 return _pcbnew.PCB_DIMENSION_BASE_SetAutoUnits(self, aAuto)
17121
17123 r"""GetUnitsFormat(PCB_DIMENSION_BASE self) -> DIM_UNITS_FORMAT"""
17124 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsFormat(self)
17125
17126 def SetUnitsFormat(self, aFormat):
17127 r"""SetUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
17128 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsFormat(self, aFormat)
17129
17130 def ChangeUnitsFormat(self, aFormat):
17131 r"""ChangeUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
17132 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsFormat(self, aFormat)
17133
17134 def GetPrecision(self):
17135 r"""GetPrecision(PCB_DIMENSION_BASE self) -> DIM_PRECISION"""
17136 return _pcbnew.PCB_DIMENSION_BASE_GetPrecision(self)
17137
17138 def SetPrecision(self, aPrecision):
17139 r"""SetPrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
17140 return _pcbnew.PCB_DIMENSION_BASE_SetPrecision(self, aPrecision)
17141
17142 def ChangePrecision(self, aPrecision):
17143 r"""ChangePrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
17144 return _pcbnew.PCB_DIMENSION_BASE_ChangePrecision(self, aPrecision)
17145
17147 r"""GetSuppressZeroes(PCB_DIMENSION_BASE self) -> bool"""
17148 return _pcbnew.PCB_DIMENSION_BASE_GetSuppressZeroes(self)
17149
17150 def SetSuppressZeroes(self, aSuppress):
17151 r"""SetSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
17152 return _pcbnew.PCB_DIMENSION_BASE_SetSuppressZeroes(self, aSuppress)
17153
17154 def ChangeSuppressZeroes(self, aSuppress):
17155 r"""ChangeSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
17156 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuppressZeroes(self, aSuppress)
17157
17159 r"""GetKeepTextAligned(PCB_DIMENSION_BASE self) -> bool"""
17160 return _pcbnew.PCB_DIMENSION_BASE_GetKeepTextAligned(self)
17161
17162 def SetKeepTextAligned(self, aKeepAligned):
17163 r"""SetKeepTextAligned(PCB_DIMENSION_BASE self, bool aKeepAligned)"""
17164 return _pcbnew.PCB_DIMENSION_BASE_SetKeepTextAligned(self, aKeepAligned)
17165
17167 r"""GetTextAngleDegreesProp(PCB_DIMENSION_BASE self) -> double"""
17168 return _pcbnew.PCB_DIMENSION_BASE_GetTextAngleDegreesProp(self)
17169
17170 def ChangeTextAngleDegrees(self, aDegrees):
17171 r"""ChangeTextAngleDegrees(PCB_DIMENSION_BASE self, double aDegrees)"""
17172 return _pcbnew.PCB_DIMENSION_BASE_ChangeTextAngleDegrees(self, aDegrees)
17173
17174 def ChangeKeepTextAligned(self, aKeepAligned):
17175 r"""ChangeKeepTextAligned(PCB_DIMENSION_BASE self, bool aKeepAligned)"""
17176 return _pcbnew.PCB_DIMENSION_BASE_ChangeKeepTextAligned(self, aKeepAligned)
17177
17178 def SetTextPositionMode(self, aMode):
17179 r"""SetTextPositionMode(PCB_DIMENSION_BASE self, DIM_TEXT_POSITION aMode)"""
17180 return _pcbnew.PCB_DIMENSION_BASE_SetTextPositionMode(self, aMode)
17181
17183 r"""GetTextPositionMode(PCB_DIMENSION_BASE self) -> DIM_TEXT_POSITION"""
17184 return _pcbnew.PCB_DIMENSION_BASE_GetTextPositionMode(self)
17185
17187 r"""GetArrowLength(PCB_DIMENSION_BASE self) -> int"""
17188 return _pcbnew.PCB_DIMENSION_BASE_GetArrowLength(self)
17189
17190 def SetArrowLength(self, aLength):
17191 r"""SetArrowLength(PCB_DIMENSION_BASE self, int aLength)"""
17192 return _pcbnew.PCB_DIMENSION_BASE_SetArrowLength(self, aLength)
17193
17194 def SetExtensionOffset(self, aOffset):
17195 r"""SetExtensionOffset(PCB_DIMENSION_BASE self, int aOffset)"""
17196 return _pcbnew.PCB_DIMENSION_BASE_SetExtensionOffset(self, aOffset)
17197
17199 r"""GetExtensionOffset(PCB_DIMENSION_BASE self) -> int"""
17200 return _pcbnew.PCB_DIMENSION_BASE_GetExtensionOffset(self)
17201
17203 r"""GetLineThickness(PCB_DIMENSION_BASE self) -> int"""
17204 return _pcbnew.PCB_DIMENSION_BASE_GetLineThickness(self)
17205
17206 def SetLineThickness(self, aWidth):
17207 r"""SetLineThickness(PCB_DIMENSION_BASE self, int aWidth)"""
17208 return _pcbnew.PCB_DIMENSION_BASE_SetLineThickness(self, aWidth)
17209
17210 def GetShapes(self):
17211 r"""GetShapes(PCB_DIMENSION_BASE self) -> VECTOR_SHAPEPTR"""
17212 return _pcbnew.PCB_DIMENSION_BASE_GetShapes(self)
17213
17214 def HitTest(self, *args):
17215 r"""
17216 HitTest(PCB_DIMENSION_BASE self, VECTOR2I aPosition, int aAccuracy) -> bool
17217 HitTest(PCB_DIMENSION_BASE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17218 """
17219 return _pcbnew.PCB_DIMENSION_BASE_HitTest(self, *args)
17220
17221 def GetEffectiveShape(self, *args):
17222 r"""GetEffectiveShape(PCB_DIMENSION_BASE self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17223 return _pcbnew.PCB_DIMENSION_BASE_GetEffectiveShape(self, *args)
17224
17225 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False):
17226 r"""TransformShapeToPolygon(PCB_DIMENSION_BASE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
17227 return _pcbnew.PCB_DIMENSION_BASE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth)
17228
17229 def __eq__(self, *args):
17230 r"""
17231 __eq__(PCB_DIMENSION_BASE self, PCB_DIMENSION_BASE aOther) -> bool
17232 __eq__(PCB_DIMENSION_BASE self, BOARD_ITEM aBoardItem) -> bool
17233 """
17234 return _pcbnew.PCB_DIMENSION_BASE___eq__(self, *args)
17235 __swig_destroy__ = _pcbnew.delete_PCB_DIMENSION_BASE
17236
17237# Register PCB_DIMENSION_BASE in _pcbnew:
17238_pcbnew.PCB_DIMENSION_BASE_swigregister(PCB_DIMENSION_BASE)
17240 r"""Proxy of C++ PCB_DIM_ALIGNED class."""
17241
17242 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17243 __repr__ = _swig_repr
17244
17245 def __init__(self, aParent, aType=PCB_DIM_ALIGNED_T):
17246 r"""__init__(PCB_DIM_ALIGNED self, BOARD_ITEM aParent, KICAD_T aType=PCB_DIM_ALIGNED_T) -> PCB_DIM_ALIGNED"""
17247 _pcbnew.PCB_DIM_ALIGNED_swiginit(self, _pcbnew.new_PCB_DIM_ALIGNED(aParent, aType))
17248 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ALIGNED
17249
17250 def Serialize(self, aContainer):
17251 r"""Serialize(PCB_DIM_ALIGNED self, google::protobuf::Any & aContainer)"""
17252 return _pcbnew.PCB_DIM_ALIGNED_Serialize(self, aContainer)
17253
17254 def Deserialize(self, aContainer):
17255 r"""Deserialize(PCB_DIM_ALIGNED self, google::protobuf::Any const & aContainer) -> bool"""
17256 return _pcbnew.PCB_DIM_ALIGNED_Deserialize(self, aContainer)
17257
17258 @staticmethod
17259 def ClassOf(aItem):
17260 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17261 return _pcbnew.PCB_DIM_ALIGNED_ClassOf(aItem)
17262
17264 r"""GetCrossbarStart(PCB_DIM_ALIGNED self) -> VECTOR2I"""
17265 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarStart(self)
17266
17268 r"""GetCrossbarEnd(PCB_DIM_ALIGNED self) -> VECTOR2I"""
17269 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarEnd(self)
17270
17271 def SetHeight(self, aHeight):
17272 r"""SetHeight(PCB_DIM_ALIGNED self, int aHeight)"""
17273 return _pcbnew.PCB_DIM_ALIGNED_SetHeight(self, aHeight)
17274
17275 def GetHeight(self):
17276 r"""GetHeight(PCB_DIM_ALIGNED self) -> int"""
17277 return _pcbnew.PCB_DIM_ALIGNED_GetHeight(self)
17278
17279 def ChangeHeight(self, aHeight):
17280 r"""ChangeHeight(PCB_DIM_ALIGNED self, int aHeight)"""
17281 return _pcbnew.PCB_DIM_ALIGNED_ChangeHeight(self, aHeight)
17282
17283 def UpdateHeight(self, aCrossbarStart, aCrossbarEnd):
17284 r"""UpdateHeight(PCB_DIM_ALIGNED self, VECTOR2I aCrossbarStart, VECTOR2I aCrossbarEnd)"""
17285 return _pcbnew.PCB_DIM_ALIGNED_UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
17286
17287 def SetExtensionHeight(self, aHeight):
17288 r"""SetExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
17289 return _pcbnew.PCB_DIM_ALIGNED_SetExtensionHeight(self, aHeight)
17290
17292 r"""GetExtensionHeight(PCB_DIM_ALIGNED self) -> int"""
17293 return _pcbnew.PCB_DIM_ALIGNED_GetExtensionHeight(self)
17294
17295 def ChangeExtensionHeight(self, aHeight):
17296 r"""ChangeExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
17297 return _pcbnew.PCB_DIM_ALIGNED_ChangeExtensionHeight(self, aHeight)
17298
17299 def GetAngle(self):
17300 r"""GetAngle(PCB_DIM_ALIGNED self) -> double"""
17301 return _pcbnew.PCB_DIM_ALIGNED_GetAngle(self)
17302
17303# Register PCB_DIM_ALIGNED in _pcbnew:
17304_pcbnew.PCB_DIM_ALIGNED_swigregister(PCB_DIM_ALIGNED)
17306 r"""Proxy of C++ PCB_DIM_ORTHOGONAL class."""
17307
17308 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17309 __repr__ = _swig_repr
17310 DIR_HORIZONTAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_HORIZONTAL
17311
17312 DIR_VERTICAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_VERTICAL
17313
17314
17315 def __init__(self, aParent):
17316 r"""__init__(PCB_DIM_ORTHOGONAL self, BOARD_ITEM aParent) -> PCB_DIM_ORTHOGONAL"""
17317 _pcbnew.PCB_DIM_ORTHOGONAL_swiginit(self, _pcbnew.new_PCB_DIM_ORTHOGONAL(aParent))
17318 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ORTHOGONAL
17319
17320 def Serialize(self, aContainer):
17321 r"""Serialize(PCB_DIM_ORTHOGONAL self, google::protobuf::Any & aContainer)"""
17322 return _pcbnew.PCB_DIM_ORTHOGONAL_Serialize(self, aContainer)
17323
17324 def Deserialize(self, aContainer):
17325 r"""Deserialize(PCB_DIM_ORTHOGONAL self, google::protobuf::Any const & aContainer) -> bool"""
17326 return _pcbnew.PCB_DIM_ORTHOGONAL_Deserialize(self, aContainer)
17327
17328 @staticmethod
17329 def ClassOf(aItem):
17330 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17331 return _pcbnew.PCB_DIM_ORTHOGONAL_ClassOf(aItem)
17332
17333 def SetOrientation(self, aOrientation):
17334 r"""SetOrientation(PCB_DIM_ORTHOGONAL self, PCB_DIM_ORTHOGONAL::DIR aOrientation)"""
17335 return _pcbnew.PCB_DIM_ORTHOGONAL_SetOrientation(self, aOrientation)
17336
17338 r"""GetOrientation(PCB_DIM_ORTHOGONAL self) -> PCB_DIM_ORTHOGONAL::DIR"""
17339 return _pcbnew.PCB_DIM_ORTHOGONAL_GetOrientation(self)
17340
17341# Register PCB_DIM_ORTHOGONAL in _pcbnew:
17342_pcbnew.PCB_DIM_ORTHOGONAL_swigregister(PCB_DIM_ORTHOGONAL)
17344 r"""Proxy of C++ PCB_DIM_RADIAL class."""
17345
17346 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17347 __repr__ = _swig_repr
17348
17349 def __init__(self, aParent):
17350 r"""__init__(PCB_DIM_RADIAL self, BOARD_ITEM aParent) -> PCB_DIM_RADIAL"""
17351 _pcbnew.PCB_DIM_RADIAL_swiginit(self, _pcbnew.new_PCB_DIM_RADIAL(aParent))
17352
17353 def Serialize(self, aContainer):
17354 r"""Serialize(PCB_DIM_RADIAL self, google::protobuf::Any & aContainer)"""
17355 return _pcbnew.PCB_DIM_RADIAL_Serialize(self, aContainer)
17356
17357 def Deserialize(self, aContainer):
17358 r"""Deserialize(PCB_DIM_RADIAL self, google::protobuf::Any const & aContainer) -> bool"""
17359 return _pcbnew.PCB_DIM_RADIAL_Deserialize(self, aContainer)
17360
17361 @staticmethod
17362 def ClassOf(aItem):
17363 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17364 return _pcbnew.PCB_DIM_RADIAL_ClassOf(aItem)
17365
17366 def SetLeaderLength(self, aLength):
17367 r"""SetLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
17368 return _pcbnew.PCB_DIM_RADIAL_SetLeaderLength(self, aLength)
17369
17371 r"""GetLeaderLength(PCB_DIM_RADIAL self) -> int"""
17372 return _pcbnew.PCB_DIM_RADIAL_GetLeaderLength(self)
17373
17374 def ChangeLeaderLength(self, aLength):
17375 r"""ChangeLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
17376 return _pcbnew.PCB_DIM_RADIAL_ChangeLeaderLength(self, aLength)
17377
17378 def GetKnee(self):
17379 r"""GetKnee(PCB_DIM_RADIAL self) -> VECTOR2I"""
17380 return _pcbnew.PCB_DIM_RADIAL_GetKnee(self)
17381 __swig_destroy__ = _pcbnew.delete_PCB_DIM_RADIAL
17382
17383# Register PCB_DIM_RADIAL in _pcbnew:
17384_pcbnew.PCB_DIM_RADIAL_swigregister(PCB_DIM_RADIAL)
17386 r"""Proxy of C++ PCB_DIM_LEADER class."""
17387
17388 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17389 __repr__ = _swig_repr
17390
17391 def __init__(self, aParent):
17392 r"""__init__(PCB_DIM_LEADER self, BOARD_ITEM aParent) -> PCB_DIM_LEADER"""
17393 _pcbnew.PCB_DIM_LEADER_swiginit(self, _pcbnew.new_PCB_DIM_LEADER(aParent))
17394
17395 def Serialize(self, aContainer):
17396 r"""Serialize(PCB_DIM_LEADER self, google::protobuf::Any & aContainer)"""
17397 return _pcbnew.PCB_DIM_LEADER_Serialize(self, aContainer)
17398
17399 def Deserialize(self, aContainer):
17400 r"""Deserialize(PCB_DIM_LEADER self, google::protobuf::Any const & aContainer) -> bool"""
17401 return _pcbnew.PCB_DIM_LEADER_Deserialize(self, aContainer)
17402
17403 @staticmethod
17404 def ClassOf(aItem):
17405 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17406 return _pcbnew.PCB_DIM_LEADER_ClassOf(aItem)
17407
17408 def SetTextBorder(self, aBorder):
17409 r"""SetTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
17410 return _pcbnew.PCB_DIM_LEADER_SetTextBorder(self, aBorder)
17411
17412 def GetTextBorder(self):
17413 r"""GetTextBorder(PCB_DIM_LEADER self) -> DIM_TEXT_BORDER"""
17414 return _pcbnew.PCB_DIM_LEADER_GetTextBorder(self)
17415
17416 def ChangeTextBorder(self, aBorder):
17417 r"""ChangeTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
17418 return _pcbnew.PCB_DIM_LEADER_ChangeTextBorder(self, aBorder)
17419 __swig_destroy__ = _pcbnew.delete_PCB_DIM_LEADER
17420
17421# Register PCB_DIM_LEADER in _pcbnew:
17422_pcbnew.PCB_DIM_LEADER_swigregister(PCB_DIM_LEADER)
17424 r"""Proxy of C++ PCB_DIM_CENTER class."""
17425
17426 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17427 __repr__ = _swig_repr
17428
17429 def __init__(self, aParent):
17430 r"""__init__(PCB_DIM_CENTER self, BOARD_ITEM aParent) -> PCB_DIM_CENTER"""
17431 _pcbnew.PCB_DIM_CENTER_swiginit(self, _pcbnew.new_PCB_DIM_CENTER(aParent))
17432
17433 def Serialize(self, aContainer):
17434 r"""Serialize(PCB_DIM_CENTER self, google::protobuf::Any & aContainer)"""
17435 return _pcbnew.PCB_DIM_CENTER_Serialize(self, aContainer)
17436
17437 def Deserialize(self, aContainer):
17438 r"""Deserialize(PCB_DIM_CENTER self, google::protobuf::Any const & aContainer) -> bool"""
17439 return _pcbnew.PCB_DIM_CENTER_Deserialize(self, aContainer)
17440
17441 @staticmethod
17442 def ClassOf(aItem):
17443 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17444 return _pcbnew.PCB_DIM_CENTER_ClassOf(aItem)
17445 __swig_destroy__ = _pcbnew.delete_PCB_DIM_CENTER
17446
17447# Register PCB_DIM_CENTER in _pcbnew:
17448_pcbnew.PCB_DIM_CENTER_swigregister(PCB_DIM_CENTER)
17449MARKER_SHAPE_POINT_COUNT = _pcbnew.MARKER_SHAPE_POINT_COUNT
17450
17452 r"""Proxy of C++ PCB_MARKER class."""
17453
17454 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17455 __repr__ = _swig_repr
17456
17457 def __init__(self, aItem, aPos, aLayer=F_Cu):
17458 r"""__init__(PCB_MARKER self, std::shared_ptr< RC_ITEM > aItem, VECTOR2I aPos, int aLayer=F_Cu) -> PCB_MARKER"""
17459 _pcbnew.PCB_MARKER_swiginit(self, _pcbnew.new_PCB_MARKER(aItem, aPos, aLayer))
17460 __swig_destroy__ = _pcbnew.delete_PCB_MARKER
17461
17462 @staticmethod
17463 def ClassOf(aItem):
17464 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17465 return _pcbnew.PCB_MARKER_ClassOf(aItem)
17466
17468 r"""SerializeToString(PCB_MARKER self) -> wxString"""
17469 return _pcbnew.PCB_MARKER_SerializeToString(self)
17470
17471 @staticmethod
17473 r"""DeserializeFromString(wxString data) -> PCB_MARKER"""
17474 return _pcbnew.PCB_MARKER_DeserializeFromString(data)
17475
17476 def HitTest(self, *args):
17477 r"""
17478 HitTest(PCB_MARKER self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17479 HitTest(PCB_MARKER self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17480 """
17481 return _pcbnew.PCB_MARKER_HitTest(self, *args)
17482
17483 def GetColorLayer(self):
17484 r"""GetColorLayer(PCB_MARKER self) -> GAL_LAYER_ID"""
17485 return _pcbnew.PCB_MARKER_GetColorLayer(self)
17486
17487 def GetEffectiveShape(self, *args):
17488 r"""GetEffectiveShape(PCB_MARKER self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17489 return _pcbnew.PCB_MARKER_GetEffectiveShape(self, *args)
17490
17491 def SetZoom(self, aZoomFactor):
17492 r"""SetZoom(PCB_MARKER self, double aZoomFactor)"""
17493 return _pcbnew.PCB_MARKER_SetZoom(self, aZoomFactor)
17494
17495 def GetShapes1(self):
17496 r"""GetShapes1(PCB_MARKER self) -> std::vector< PCB_SHAPE,std::allocator< PCB_SHAPE > >"""
17497 return _pcbnew.PCB_MARKER_GetShapes1(self)
17498
17499 def GetShapes2(self):
17500 r"""GetShapes2(PCB_MARKER self) -> std::vector< PCB_SHAPE,std::allocator< PCB_SHAPE > >"""
17501 return _pcbnew.PCB_MARKER_GetShapes2(self)
17502
17503 def SetShapes1(self, aShapes):
17504 r"""SetShapes1(PCB_MARKER self, std::vector< PCB_SHAPE,std::allocator< PCB_SHAPE > > const & aShapes)"""
17505 return _pcbnew.PCB_MARKER_SetShapes1(self, aShapes)
17506
17507 def SetShapes2(self, aShapes):
17508 r"""SetShapes2(PCB_MARKER self, std::vector< PCB_SHAPE,std::allocator< PCB_SHAPE > > const & aShapes)"""
17509 return _pcbnew.PCB_MARKER_SetShapes2(self, aShapes)
17510
17511# Register PCB_MARKER in _pcbnew:
17512_pcbnew.PCB_MARKER_swigregister(PCB_MARKER)
17514 r"""Proxy of C++ PCB_TARGET class."""
17515
17516 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17517 __repr__ = _swig_repr
17518
17519 def __init__(self, *args):
17520 r"""
17521 __init__(PCB_TARGET self, BOARD_ITEM aParent) -> PCB_TARGET
17522 __init__(PCB_TARGET self, BOARD_ITEM aParent, int aShape, PCB_LAYER_ID aLayer, VECTOR2I aPos, int aSize, int aWidth) -> PCB_TARGET
17523 """
17524 _pcbnew.PCB_TARGET_swiginit(self, _pcbnew.new_PCB_TARGET(*args))
17525 __swig_destroy__ = _pcbnew.delete_PCB_TARGET
17526
17527 @staticmethod
17528 def ClassOf(aItem):
17529 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17530 return _pcbnew.PCB_TARGET_ClassOf(aItem)
17531
17532 def SetShape(self, aShape):
17533 r"""SetShape(PCB_TARGET self, int aShape)"""
17534 return _pcbnew.PCB_TARGET_SetShape(self, aShape)
17535
17536 def GetShape(self):
17537 r"""GetShape(PCB_TARGET self) -> int"""
17538 return _pcbnew.PCB_TARGET_GetShape(self)
17539
17540 def SetSize(self, aSize):
17541 r"""SetSize(PCB_TARGET self, int aSize)"""
17542 return _pcbnew.PCB_TARGET_SetSize(self, aSize)
17543
17544 def GetSize(self):
17545 r"""GetSize(PCB_TARGET self) -> int"""
17546 return _pcbnew.PCB_TARGET_GetSize(self)
17547
17548 def SetWidth(self, aWidth):
17549 r"""SetWidth(PCB_TARGET self, int aWidth)"""
17550 return _pcbnew.PCB_TARGET_SetWidth(self, aWidth)
17551
17552 def GetWidth(self):
17553 r"""GetWidth(PCB_TARGET self) -> int"""
17554 return _pcbnew.PCB_TARGET_GetWidth(self)
17555
17556 def HitTest(self, *args):
17557 r"""
17558 HitTest(PCB_TARGET self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17559 HitTest(PCB_TARGET self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17560 """
17561 return _pcbnew.PCB_TARGET_HitTest(self, *args)
17562
17563 def GetEffectiveShape(self, *args):
17564 r"""GetEffectiveShape(PCB_TARGET self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17565 return _pcbnew.PCB_TARGET_GetEffectiveShape(self, *args)
17566
17567 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
17568 r"""TransformShapeToPolygon(PCB_TARGET self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
17569 return _pcbnew.PCB_TARGET_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
17570
17571 def __eq__(self, *args):
17572 r"""
17573 __eq__(PCB_TARGET self, PCB_TARGET aOther) -> bool
17574 __eq__(PCB_TARGET self, BOARD_ITEM aBoardItem) -> bool
17575 """
17576 return _pcbnew.PCB_TARGET___eq__(self, *args)
17577
17578# Register PCB_TARGET in _pcbnew:
17579_pcbnew.PCB_TARGET_swigregister(PCB_TARGET)
17581 r"""Proxy of C++ PCB_TABLE class."""
17582
17583 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17584 __repr__ = _swig_repr
17585
17586 def __init__(self, *args):
17587 r"""
17588 __init__(PCB_TABLE self, BOARD_ITEM aParent, int aLineWidth) -> PCB_TABLE
17589 __init__(PCB_TABLE self, PCB_TABLE aTable) -> PCB_TABLE
17590 """
17591 _pcbnew.PCB_TABLE_swiginit(self, _pcbnew.new_PCB_TABLE(*args))
17592 __swig_destroy__ = _pcbnew.delete_PCB_TABLE
17593
17594 @staticmethod
17595 def ClassOf(aItem):
17596 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17597 return _pcbnew.PCB_TABLE_ClassOf(aItem)
17598
17599 def SetStrokeExternal(self, aDoStroke):
17600 r"""SetStrokeExternal(PCB_TABLE self, bool aDoStroke)"""
17601 return _pcbnew.PCB_TABLE_SetStrokeExternal(self, aDoStroke)
17602
17604 r"""StrokeExternal(PCB_TABLE self) -> bool"""
17605 return _pcbnew.PCB_TABLE_StrokeExternal(self)
17606
17607 def SetStrokeHeaderSeparator(self, aDoStroke):
17608 r"""SetStrokeHeaderSeparator(PCB_TABLE self, bool aDoStroke)"""
17609 return _pcbnew.PCB_TABLE_SetStrokeHeaderSeparator(self, aDoStroke)
17610
17612 r"""StrokeHeaderSeparator(PCB_TABLE self) -> bool"""
17613 return _pcbnew.PCB_TABLE_StrokeHeaderSeparator(self)
17614
17615 def SetBorderStroke(self, aParams):
17616 r"""SetBorderStroke(PCB_TABLE self, STROKE_PARAMS const & aParams)"""
17617 return _pcbnew.PCB_TABLE_SetBorderStroke(self, aParams)
17618
17620 r"""GetBorderStroke(PCB_TABLE self) -> STROKE_PARAMS const &"""
17621 return _pcbnew.PCB_TABLE_GetBorderStroke(self)
17622
17623 def SetBorderWidth(self, aWidth):
17624 r"""SetBorderWidth(PCB_TABLE self, int aWidth)"""
17625 return _pcbnew.PCB_TABLE_SetBorderWidth(self, aWidth)
17626
17628 r"""GetBorderWidth(PCB_TABLE self) -> int"""
17629 return _pcbnew.PCB_TABLE_GetBorderWidth(self)
17630
17631 def SetBorderStyle(self, aStyle):
17632 r"""SetBorderStyle(PCB_TABLE self, LINE_STYLE const aStyle)"""
17633 return _pcbnew.PCB_TABLE_SetBorderStyle(self, aStyle)
17634
17636 r"""GetBorderStyle(PCB_TABLE self) -> LINE_STYLE"""
17637 return _pcbnew.PCB_TABLE_GetBorderStyle(self)
17638
17639 def SetBorderColor(self, aColor):
17640 r"""SetBorderColor(PCB_TABLE self, COLOR4D aColor)"""
17641 return _pcbnew.PCB_TABLE_SetBorderColor(self, aColor)
17642
17644 r"""GetBorderColor(PCB_TABLE self) -> COLOR4D"""
17645 return _pcbnew.PCB_TABLE_GetBorderColor(self)
17646
17647 def SetSeparatorsStroke(self, aParams):
17648 r"""SetSeparatorsStroke(PCB_TABLE self, STROKE_PARAMS const & aParams)"""
17649 return _pcbnew.PCB_TABLE_SetSeparatorsStroke(self, aParams)
17650
17652 r"""GetSeparatorsStroke(PCB_TABLE self) -> STROKE_PARAMS const &"""
17653 return _pcbnew.PCB_TABLE_GetSeparatorsStroke(self)
17654
17655 def SetSeparatorsWidth(self, aWidth):
17656 r"""SetSeparatorsWidth(PCB_TABLE self, int aWidth)"""
17657 return _pcbnew.PCB_TABLE_SetSeparatorsWidth(self, aWidth)
17658
17660 r"""GetSeparatorsWidth(PCB_TABLE self) -> int"""
17661 return _pcbnew.PCB_TABLE_GetSeparatorsWidth(self)
17662
17663 def SetSeparatorsStyle(self, aStyle):
17664 r"""SetSeparatorsStyle(PCB_TABLE self, LINE_STYLE const aStyle)"""
17665 return _pcbnew.PCB_TABLE_SetSeparatorsStyle(self, aStyle)
17666
17668 r"""GetSeparatorsStyle(PCB_TABLE self) -> LINE_STYLE"""
17669 return _pcbnew.PCB_TABLE_GetSeparatorsStyle(self)
17670
17671 def SetSeparatorsColor(self, aColor):
17672 r"""SetSeparatorsColor(PCB_TABLE self, COLOR4D aColor)"""
17673 return _pcbnew.PCB_TABLE_SetSeparatorsColor(self, aColor)
17674
17676 r"""GetSeparatorsColor(PCB_TABLE self) -> COLOR4D"""
17677 return _pcbnew.PCB_TABLE_GetSeparatorsColor(self)
17678
17679 def SetStrokeColumns(self, aDoStroke):
17680 r"""SetStrokeColumns(PCB_TABLE self, bool aDoStroke)"""
17681 return _pcbnew.PCB_TABLE_SetStrokeColumns(self, aDoStroke)
17682
17683 def StrokeColumns(self):
17684 r"""StrokeColumns(PCB_TABLE self) -> bool"""
17685 return _pcbnew.PCB_TABLE_StrokeColumns(self)
17686
17687 def SetStrokeRows(self, aDoStroke):
17688 r"""SetStrokeRows(PCB_TABLE self, bool aDoStroke)"""
17689 return _pcbnew.PCB_TABLE_SetStrokeRows(self, aDoStroke)
17690
17691 def StrokeRows(self):
17692 r"""StrokeRows(PCB_TABLE self) -> bool"""
17693 return _pcbnew.PCB_TABLE_StrokeRows(self)
17694
17695 def GetEnd(self):
17696 r"""GetEnd(PCB_TABLE self) -> VECTOR2I"""
17697 return _pcbnew.PCB_TABLE_GetEnd(self)
17698
17699 def SetPositionX(self, x):
17700 r"""SetPositionX(PCB_TABLE self, int x)"""
17701 return _pcbnew.PCB_TABLE_SetPositionX(self, x)
17702
17703 def SetPositionY(self, y):
17704 r"""SetPositionY(PCB_TABLE self, int y)"""
17705 return _pcbnew.PCB_TABLE_SetPositionY(self, y)
17706
17707 def GetPositionX(self):
17708 r"""GetPositionX(PCB_TABLE self) -> int"""
17709 return _pcbnew.PCB_TABLE_GetPositionX(self)
17710
17711 def GetPositionY(self):
17712 r"""GetPositionY(PCB_TABLE self) -> int"""
17713 return _pcbnew.PCB_TABLE_GetPositionY(self)
17714
17715 def SetColCount(self, aCount):
17716 r"""SetColCount(PCB_TABLE self, int aCount)"""
17717 return _pcbnew.PCB_TABLE_SetColCount(self, aCount)
17718
17719 def GetColCount(self):
17720 r"""GetColCount(PCB_TABLE self) -> int"""
17721 return _pcbnew.PCB_TABLE_GetColCount(self)
17722
17723 def GetRowCount(self):
17724 r"""GetRowCount(PCB_TABLE self) -> int"""
17725 return _pcbnew.PCB_TABLE_GetRowCount(self)
17726
17727 def SetColWidth(self, aCol, aWidth):
17728 r"""SetColWidth(PCB_TABLE self, int aCol, int aWidth)"""
17729 return _pcbnew.PCB_TABLE_SetColWidth(self, aCol, aWidth)
17730
17731 def GetColWidth(self, aCol):
17732 r"""GetColWidth(PCB_TABLE self, int aCol) -> int"""
17733 return _pcbnew.PCB_TABLE_GetColWidth(self, aCol)
17734
17735 def SetRowHeight(self, aRow, aHeight):
17736 r"""SetRowHeight(PCB_TABLE self, int aRow, int aHeight)"""
17737 return _pcbnew.PCB_TABLE_SetRowHeight(self, aRow, aHeight)
17738
17739 def GetRowHeight(self, aRow):
17740 r"""GetRowHeight(PCB_TABLE self, int aRow) -> int"""
17741 return _pcbnew.PCB_TABLE_GetRowHeight(self, aRow)
17742
17743 def GetCell(self, aRow, aCol):
17744 r"""GetCell(PCB_TABLE self, int aRow, int aCol) -> PCB_TABLECELL *"""
17745 return _pcbnew.PCB_TABLE_GetCell(self, aRow, aCol)
17746
17747 def GetCells(self):
17748 r"""GetCells(PCB_TABLE self) -> std::vector< PCB_TABLECELL *,std::allocator< PCB_TABLECELL * > >"""
17749 return _pcbnew.PCB_TABLE_GetCells(self)
17750
17751 def AddCell(self, aCell):
17752 r"""AddCell(PCB_TABLE self, PCB_TABLECELL * aCell)"""
17753 return _pcbnew.PCB_TABLE_AddCell(self, aCell)
17754
17755 def InsertCell(self, aIdx, aCell):
17756 r"""InsertCell(PCB_TABLE self, int aIdx, PCB_TABLECELL * aCell)"""
17757 return _pcbnew.PCB_TABLE_InsertCell(self, aIdx, aCell)
17758
17759 def ClearCells(self):
17760 r"""ClearCells(PCB_TABLE self)"""
17761 return _pcbnew.PCB_TABLE_ClearCells(self)
17762
17764 r"""DeleteMarkedCells(PCB_TABLE self)"""
17765 return _pcbnew.PCB_TABLE_DeleteMarkedCells(self)
17766
17767 def AddNative(self, *args):
17768 r"""AddNative(PCB_TABLE self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
17769 return _pcbnew.PCB_TABLE_AddNative(self, *args)
17770
17771 def RemoveNative(self, *args):
17772 r"""RemoveNative(PCB_TABLE self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
17773 return _pcbnew.PCB_TABLE_RemoveNative(self, *args)
17774
17775 def DrawBorders(self, aCallback):
17776 r"""DrawBorders(PCB_TABLE self, std::function< void (VECTOR2I const &,VECTOR2I const &,STROKE_PARAMS const &) > const & aCallback)"""
17777 return _pcbnew.PCB_TABLE_DrawBorders(self, aCallback)
17778
17779 def GetEffectiveShape(self, *args):
17780 r"""GetEffectiveShape(PCB_TABLE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17781 return _pcbnew.PCB_TABLE_GetEffectiveShape(self, *args)
17782
17783 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
17784 r"""TransformShapeToPolygon(PCB_TABLE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
17785 return _pcbnew.PCB_TABLE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
17786
17787 def HitTest(self, *args):
17788 r"""
17789 HitTest(PCB_TABLE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17790 HitTest(PCB_TABLE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17791 """
17792 return _pcbnew.PCB_TABLE_HitTest(self, *args)
17793
17794 def __eq__(self, *args):
17795 r"""
17796 __eq__(PCB_TABLE self, PCB_TABLE aOther) -> bool
17797 __eq__(PCB_TABLE self, BOARD_ITEM aBoardItem) -> bool
17798 """
17799 return _pcbnew.PCB_TABLE___eq__(self, *args)
17800
17801 @staticmethod
17802 def Compare(aTable, aOther):
17803 r"""Compare(PCB_TABLE aTable, PCB_TABLE aOther) -> int"""
17804 return _pcbnew.PCB_TABLE_Compare(aTable, aOther)
17805
17806# Register PCB_TABLE in _pcbnew:
17807_pcbnew.PCB_TABLE_swigregister(PCB_TABLE)
17809 r"""Proxy of C++ std::vector< PAD * > class."""
17810
17811 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17812 __repr__ = _swig_repr
17813
17814 def iterator(self):
17815 r"""iterator(PADS_VEC self) -> SwigPyIterator"""
17816 return _pcbnew.PADS_VEC_iterator(self)
17817 def __iter__(self):
17818 return self.iterator()
17819
17820 def __nonzero__(self):
17821 r"""__nonzero__(PADS_VEC self) -> bool"""
17822 return _pcbnew.PADS_VEC___nonzero__(self)
17823
17824 def __bool__(self):
17825 r"""__bool__(PADS_VEC self) -> bool"""
17826 return _pcbnew.PADS_VEC___bool__(self)
17827
17828 def __len__(self):
17829 r"""__len__(PADS_VEC self) -> std::vector< PAD * >::size_type"""
17830 return _pcbnew.PADS_VEC___len__(self)
17831
17832 def __getslice__(self, i, j):
17833 r"""__getslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j) -> PADS_VEC"""
17834 return _pcbnew.PADS_VEC___getslice__(self, i, j)
17835
17836 def __setslice__(self, *args):
17837 r"""
17838 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)
17839 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j, PADS_VEC v)
17840 """
17841 return _pcbnew.PADS_VEC___setslice__(self, *args)
17842
17843 def __delslice__(self, i, j):
17844 r"""__delslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)"""
17845 return _pcbnew.PADS_VEC___delslice__(self, i, j)
17846
17847 def __delitem__(self, *args):
17848 r"""
17849 __delitem__(PADS_VEC self, std::vector< PAD * >::difference_type i)
17850 __delitem__(PADS_VEC self, SWIGPY_SLICEOBJECT * slice)
17851 """
17852 return _pcbnew.PADS_VEC___delitem__(self, *args)
17853
17854 def __getitem__(self, *args):
17855 r"""
17856 __getitem__(PADS_VEC self, SWIGPY_SLICEOBJECT * slice) -> PADS_VEC
17857 __getitem__(PADS_VEC self, std::vector< PAD * >::difference_type i) -> PAD
17858 """
17859 return _pcbnew.PADS_VEC___getitem__(self, *args)
17860
17861 def __setitem__(self, *args):
17862 r"""
17863 __setitem__(PADS_VEC self, SWIGPY_SLICEOBJECT * slice, PADS_VEC v)
17864 __setitem__(PADS_VEC self, SWIGPY_SLICEOBJECT * slice)
17865 __setitem__(PADS_VEC self, std::vector< PAD * >::difference_type i, PAD x)
17866 """
17867 return _pcbnew.PADS_VEC___setitem__(self, *args)
17868
17869 def pop(self):
17870 r"""pop(PADS_VEC self) -> PAD"""
17871 return _pcbnew.PADS_VEC_pop(self)
17872
17873 def append(self, x):
17874 r"""append(PADS_VEC self, PAD x)"""
17875 return _pcbnew.PADS_VEC_append(self, x)
17876
17877 def empty(self):
17878 r"""empty(PADS_VEC self) -> bool"""
17879 return _pcbnew.PADS_VEC_empty(self)
17880
17881 def size(self):
17882 r"""size(PADS_VEC self) -> std::vector< PAD * >::size_type"""
17883 return _pcbnew.PADS_VEC_size(self)
17884
17885 def swap(self, v):
17886 r"""swap(PADS_VEC self, PADS_VEC v)"""
17887 return _pcbnew.PADS_VEC_swap(self, v)
17888
17889 def begin(self):
17890 r"""begin(PADS_VEC self) -> std::vector< PAD * >::iterator"""
17891 return _pcbnew.PADS_VEC_begin(self)
17892
17893 def end(self):
17894 r"""end(PADS_VEC self) -> std::vector< PAD * >::iterator"""
17895 return _pcbnew.PADS_VEC_end(self)
17896
17897 def rbegin(self):
17898 r"""rbegin(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
17899 return _pcbnew.PADS_VEC_rbegin(self)
17900
17901 def rend(self):
17902 r"""rend(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
17903 return _pcbnew.PADS_VEC_rend(self)
17904
17905 def clear(self):
17906 r"""clear(PADS_VEC self)"""
17907 return _pcbnew.PADS_VEC_clear(self)
17908
17909 def get_allocator(self):
17910 r"""get_allocator(PADS_VEC self) -> std::vector< PAD * >::allocator_type"""
17911 return _pcbnew.PADS_VEC_get_allocator(self)
17912
17913 def pop_back(self):
17914 r"""pop_back(PADS_VEC self)"""
17915 return _pcbnew.PADS_VEC_pop_back(self)
17916
17917 def erase(self, *args):
17918 r"""
17919 erase(PADS_VEC self, std::vector< PAD * >::iterator pos) -> std::vector< PAD * >::iterator
17920 erase(PADS_VEC self, std::vector< PAD * >::iterator first, std::vector< PAD * >::iterator last) -> std::vector< PAD * >::iterator
17921 """
17922 return _pcbnew.PADS_VEC_erase(self, *args)
17923
17924 def __init__(self, *args):
17925 r"""
17926 __init__(PADS_VEC self) -> PADS_VEC
17927 __init__(PADS_VEC self, PADS_VEC other) -> PADS_VEC
17928 __init__(PADS_VEC self, std::vector< PAD * >::size_type size) -> PADS_VEC
17929 __init__(PADS_VEC self, std::vector< PAD * >::size_type size, PAD value) -> PADS_VEC
17930 """
17931 _pcbnew.PADS_VEC_swiginit(self, _pcbnew.new_PADS_VEC(*args))
17932
17933 def push_back(self, x):
17934 r"""push_back(PADS_VEC self, PAD x)"""
17935 return _pcbnew.PADS_VEC_push_back(self, x)
17936
17937 def front(self):
17938 r"""front(PADS_VEC self) -> PAD"""
17939 return _pcbnew.PADS_VEC_front(self)
17940
17941 def back(self):
17942 r"""back(PADS_VEC self) -> PAD"""
17943 return _pcbnew.PADS_VEC_back(self)
17944
17945 def assign(self, n, x):
17946 r"""assign(PADS_VEC self, std::vector< PAD * >::size_type n, PAD x)"""
17947 return _pcbnew.PADS_VEC_assign(self, n, x)
17948
17949 def resize(self, *args):
17950 r"""
17951 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size)
17952 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size, PAD x)
17953 """
17954 return _pcbnew.PADS_VEC_resize(self, *args)
17955
17956 def insert(self, *args):
17957 r"""
17958 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, PAD x) -> std::vector< PAD * >::iterator
17959 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, std::vector< PAD * >::size_type n, PAD x)
17960 """
17961 return _pcbnew.PADS_VEC_insert(self, *args)
17962
17963 def reserve(self, n):
17964 r"""reserve(PADS_VEC self, std::vector< PAD * >::size_type n)"""
17965 return _pcbnew.PADS_VEC_reserve(self, n)
17966
17967 def capacity(self):
17968 r"""capacity(PADS_VEC self) -> std::vector< PAD * >::size_type"""
17969 return _pcbnew.PADS_VEC_capacity(self)
17970 __swig_destroy__ = _pcbnew.delete_PADS_VEC
17971
17972# Register PADS_VEC in _pcbnew:
17973_pcbnew.PADS_VEC_swigregister(PADS_VEC)
17975 r"""Proxy of C++ std::vector< PCB_TRACK * > class."""
17976
17977 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17978 __repr__ = _swig_repr
17979
17980 def iterator(self):
17981 r"""iterator(TRACKS_VEC self) -> SwigPyIterator"""
17982 return _pcbnew.TRACKS_VEC_iterator(self)
17983 def __iter__(self):
17984 return self.iterator()
17985
17986 def __nonzero__(self):
17987 r"""__nonzero__(TRACKS_VEC self) -> bool"""
17988 return _pcbnew.TRACKS_VEC___nonzero__(self)
17989
17990 def __bool__(self):
17991 r"""__bool__(TRACKS_VEC self) -> bool"""
17992 return _pcbnew.TRACKS_VEC___bool__(self)
17993
17994 def __len__(self):
17995 r"""__len__(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
17996 return _pcbnew.TRACKS_VEC___len__(self)
17997
17998 def __getslice__(self, i, j):
17999 r"""__getslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j) -> TRACKS_VEC"""
18000 return _pcbnew.TRACKS_VEC___getslice__(self, i, j)
18001
18002 def __setslice__(self, *args):
18003 r"""
18004 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)
18005 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j, TRACKS_VEC v)
18006 """
18007 return _pcbnew.TRACKS_VEC___setslice__(self, *args)
18008
18009 def __delslice__(self, i, j):
18010 r"""__delslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)"""
18011 return _pcbnew.TRACKS_VEC___delslice__(self, i, j)
18012
18013 def __delitem__(self, *args):
18014 r"""
18015 __delitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i)
18016 __delitem__(TRACKS_VEC self, SWIGPY_SLICEOBJECT * slice)
18017 """
18018 return _pcbnew.TRACKS_VEC___delitem__(self, *args)
18019
18020 def __getitem__(self, *args):
18021 r"""
18022 __getitem__(TRACKS_VEC self, SWIGPY_SLICEOBJECT * slice) -> TRACKS_VEC
18023 __getitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i) -> PCB_TRACK
18024 """
18025 return _pcbnew.TRACKS_VEC___getitem__(self, *args)
18026
18027 def __setitem__(self, *args):
18028 r"""
18029 __setitem__(TRACKS_VEC self, SWIGPY_SLICEOBJECT * slice, TRACKS_VEC v)
18030 __setitem__(TRACKS_VEC self, SWIGPY_SLICEOBJECT * slice)
18031 __setitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, PCB_TRACK x)
18032 """
18033 return _pcbnew.TRACKS_VEC___setitem__(self, *args)
18034
18035 def pop(self):
18036 r"""pop(TRACKS_VEC self) -> PCB_TRACK"""
18037 return _pcbnew.TRACKS_VEC_pop(self)
18038
18039 def append(self, x):
18040 r"""append(TRACKS_VEC self, PCB_TRACK x)"""
18041 return _pcbnew.TRACKS_VEC_append(self, x)
18042
18043 def empty(self):
18044 r"""empty(TRACKS_VEC self) -> bool"""
18045 return _pcbnew.TRACKS_VEC_empty(self)
18046
18047 def size(self):
18048 r"""size(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
18049 return _pcbnew.TRACKS_VEC_size(self)
18050
18051 def swap(self, v):
18052 r"""swap(TRACKS_VEC self, TRACKS_VEC v)"""
18053 return _pcbnew.TRACKS_VEC_swap(self, v)
18054
18055 def begin(self):
18056 r"""begin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
18057 return _pcbnew.TRACKS_VEC_begin(self)
18058
18059 def end(self):
18060 r"""end(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
18061 return _pcbnew.TRACKS_VEC_end(self)
18062
18063 def rbegin(self):
18064 r"""rbegin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
18065 return _pcbnew.TRACKS_VEC_rbegin(self)
18066
18067 def rend(self):
18068 r"""rend(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
18069 return _pcbnew.TRACKS_VEC_rend(self)
18070
18071 def clear(self):
18072 r"""clear(TRACKS_VEC self)"""
18073 return _pcbnew.TRACKS_VEC_clear(self)
18074
18075 def get_allocator(self):
18076 r"""get_allocator(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::allocator_type"""
18077 return _pcbnew.TRACKS_VEC_get_allocator(self)
18078
18079 def pop_back(self):
18080 r"""pop_back(TRACKS_VEC self)"""
18081 return _pcbnew.TRACKS_VEC_pop_back(self)
18082
18083 def erase(self, *args):
18084 r"""
18085 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos) -> std::vector< PCB_TRACK * >::iterator
18086 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator first, std::vector< PCB_TRACK * >::iterator last) -> std::vector< PCB_TRACK * >::iterator
18087 """
18088 return _pcbnew.TRACKS_VEC_erase(self, *args)
18089
18090 def __init__(self, *args):
18091 r"""
18092 __init__(TRACKS_VEC self) -> TRACKS_VEC
18093 __init__(TRACKS_VEC self, TRACKS_VEC other) -> TRACKS_VEC
18094 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size) -> TRACKS_VEC
18095 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS_VEC
18096 """
18097 _pcbnew.TRACKS_VEC_swiginit(self, _pcbnew.new_TRACKS_VEC(*args))
18098
18099 def push_back(self, x):
18100 r"""push_back(TRACKS_VEC self, PCB_TRACK x)"""
18101 return _pcbnew.TRACKS_VEC_push_back(self, x)
18102
18103 def front(self):
18104 r"""front(TRACKS_VEC self) -> PCB_TRACK"""
18105 return _pcbnew.TRACKS_VEC_front(self)
18106
18107 def back(self):
18108 r"""back(TRACKS_VEC self) -> PCB_TRACK"""
18109 return _pcbnew.TRACKS_VEC_back(self)
18110
18111 def assign(self, n, x):
18112 r"""assign(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
18113 return _pcbnew.TRACKS_VEC_assign(self, n, x)
18114
18115 def resize(self, *args):
18116 r"""
18117 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size)
18118 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
18119 """
18120 return _pcbnew.TRACKS_VEC_resize(self, *args)
18121
18122 def insert(self, *args):
18123 r"""
18124 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::vector< PCB_TRACK * >::iterator
18125 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)
18126 """
18127 return _pcbnew.TRACKS_VEC_insert(self, *args)
18128
18129 def reserve(self, n):
18130 r"""reserve(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n)"""
18131 return _pcbnew.TRACKS_VEC_reserve(self, n)
18132
18133 def capacity(self):
18134 r"""capacity(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
18135 return _pcbnew.TRACKS_VEC_capacity(self)
18136 __swig_destroy__ = _pcbnew.delete_TRACKS_VEC
18137
18138# Register TRACKS_VEC in _pcbnew:
18139_pcbnew.TRACKS_VEC_swigregister(TRACKS_VEC)
18141 r"""Proxy of C++ NETINFO_ITEM class."""
18142
18143 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18144 __repr__ = _swig_repr
18145
18146 def __init__(self, *args):
18147 r"""__init__(NETINFO_ITEM self, BOARD aParent, wxString aNetName=wxEmptyString, int aNetCode=-1) -> NETINFO_ITEM"""
18148 _pcbnew.NETINFO_ITEM_swiginit(self, _pcbnew.new_NETINFO_ITEM(*args))
18149 __swig_destroy__ = _pcbnew.delete_NETINFO_ITEM
18150
18151 @staticmethod
18152 def ClassOf(aItem):
18153 r"""ClassOf(EDA_ITEM aItem) -> bool"""
18154 return _pcbnew.NETINFO_ITEM_ClassOf(aItem)
18155
18156 def SetNetClass(self, aNetClass):
18157 r"""SetNetClass(NETINFO_ITEM self, std::shared_ptr< NETCLASS > const & aNetClass)"""
18158 return _pcbnew.NETINFO_ITEM_SetNetClass(self, aNetClass)
18159
18160 def GetNetClass(self):
18161 r"""GetNetClass(NETINFO_ITEM self) -> NETCLASS"""
18162 return _pcbnew.NETINFO_ITEM_GetNetClass(self)
18163
18165 r"""GetNetClassSlow(NETINFO_ITEM self) -> std::shared_ptr< NETCLASS >"""
18166 return _pcbnew.NETINFO_ITEM_GetNetClassSlow(self)
18167
18168 def GetNetCode(self):
18169 r"""GetNetCode(NETINFO_ITEM self) -> int"""
18170 return _pcbnew.NETINFO_ITEM_GetNetCode(self)
18171
18172 def SetNetCode(self, aNetCode):
18173 r"""SetNetCode(NETINFO_ITEM self, int aNetCode)"""
18174 return _pcbnew.NETINFO_ITEM_SetNetCode(self, aNetCode)
18175
18176 def GetNetname(self):
18177 r"""GetNetname(NETINFO_ITEM self) -> wxString"""
18178 return _pcbnew.NETINFO_ITEM_GetNetname(self)
18179
18181 r"""GetShortNetname(NETINFO_ITEM self) -> wxString"""
18182 return _pcbnew.NETINFO_ITEM_GetShortNetname(self)
18183
18185 r"""GetDisplayNetname(NETINFO_ITEM self) -> wxString"""
18186 return _pcbnew.NETINFO_ITEM_GetDisplayNetname(self)
18187
18189 r"""HasAutoGeneratedNetname(NETINFO_ITEM self) -> bool"""
18190 return _pcbnew.NETINFO_ITEM_HasAutoGeneratedNetname(self)
18191
18192 def SetNetname(self, aNewName):
18193 r"""SetNetname(NETINFO_ITEM self, wxString aNewName)"""
18194 return _pcbnew.NETINFO_ITEM_SetNetname(self, aNewName)
18195
18196 def IsCurrent(self):
18197 r"""IsCurrent(NETINFO_ITEM self) -> bool"""
18198 return _pcbnew.NETINFO_ITEM_IsCurrent(self)
18199
18200 def SetIsCurrent(self, isCurrent):
18201 r"""SetIsCurrent(NETINFO_ITEM self, bool isCurrent)"""
18202 return _pcbnew.NETINFO_ITEM_SetIsCurrent(self, isCurrent)
18203
18204 def Clear(self):
18205 r"""Clear(NETINFO_ITEM self)"""
18206 return _pcbnew.NETINFO_ITEM_Clear(self)
18207
18208 def SetParent(self, aParent):
18209 r"""SetParent(NETINFO_ITEM self, BOARD aParent)"""
18210 return _pcbnew.NETINFO_ITEM_SetParent(self, aParent)
18211
18212 def GetParent(self):
18213 r"""GetParent(NETINFO_ITEM self) -> BOARD"""
18214 return _pcbnew.NETINFO_ITEM_GetParent(self)
18215
18217 return self.GetNetClassSlow().GetName()
18218
18219
18220# Register NETINFO_ITEM in _pcbnew:
18221_pcbnew.NETINFO_ITEM_swigregister(NETINFO_ITEM)
18223 r"""Proxy of C++ std::map< wxString,NETINFO_ITEM * > class."""
18224
18225 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18226 __repr__ = _swig_repr
18227
18228 def iterator(self):
18229 r"""iterator(NETNAMES_MAP self) -> SwigPyIterator"""
18230 return _pcbnew.NETNAMES_MAP_iterator(self)
18231 def __iter__(self):
18232 return self.iterator()
18233
18234 def __nonzero__(self):
18235 r"""__nonzero__(NETNAMES_MAP self) -> bool"""
18236 return _pcbnew.NETNAMES_MAP___nonzero__(self)
18237
18238 def __bool__(self):
18239 r"""__bool__(NETNAMES_MAP self) -> bool"""
18240 return _pcbnew.NETNAMES_MAP___bool__(self)
18241
18242 def __len__(self):
18243 r"""__len__(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
18244 return _pcbnew.NETNAMES_MAP___len__(self)
18245 def __iter__(self):
18246 return self.key_iterator()
18247 def iterkeys(self):
18248 return self.key_iterator()
18249 def itervalues(self):
18250 return self.value_iterator()
18251 def iteritems(self):
18252 return self.iterator()
18253
18254 def __getitem__(self, key):
18255 r"""__getitem__(NETNAMES_MAP self, wxString key) -> NETINFO_ITEM"""
18256 return _pcbnew.NETNAMES_MAP___getitem__(self, key)
18257
18258 def __delitem__(self, key):
18259 r"""__delitem__(NETNAMES_MAP self, wxString key)"""
18260 return _pcbnew.NETNAMES_MAP___delitem__(self, key)
18261
18262 def has_key(self, key):
18263 r"""has_key(NETNAMES_MAP self, wxString key) -> bool"""
18264 return _pcbnew.NETNAMES_MAP_has_key(self, key)
18265
18266 def keys(self):
18267 r"""keys(NETNAMES_MAP self) -> PyObject *"""
18268 return _pcbnew.NETNAMES_MAP_keys(self)
18269
18270 def values(self):
18271 r"""values(NETNAMES_MAP self) -> PyObject *"""
18272 return _pcbnew.NETNAMES_MAP_values(self)
18273
18274 def items(self):
18275 r"""items(NETNAMES_MAP self) -> PyObject *"""
18276 return _pcbnew.NETNAMES_MAP_items(self)
18277
18278 def __contains__(self, key):
18279 r"""__contains__(NETNAMES_MAP self, wxString key) -> bool"""
18280 return _pcbnew.NETNAMES_MAP___contains__(self, key)
18281
18282 def key_iterator(self):
18283 r"""key_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
18284 return _pcbnew.NETNAMES_MAP_key_iterator(self)
18285
18287 r"""value_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
18288 return _pcbnew.NETNAMES_MAP_value_iterator(self)
18289
18290 def __setitem__(self, *args):
18291 r"""
18292 __setitem__(NETNAMES_MAP self, wxString key)
18293 __setitem__(NETNAMES_MAP self, wxString key, NETINFO_ITEM x)
18294 """
18295 return _pcbnew.NETNAMES_MAP___setitem__(self, *args)
18296
18297 def asdict(self):
18298 r"""asdict(NETNAMES_MAP self) -> PyObject *"""
18299 return _pcbnew.NETNAMES_MAP_asdict(self)
18300
18301 def __init__(self, *args):
18302 r"""
18303 __init__(NETNAMES_MAP self, std::less< wxString > const & other) -> NETNAMES_MAP
18304 __init__(NETNAMES_MAP self) -> NETNAMES_MAP
18305 __init__(NETNAMES_MAP self, NETNAMES_MAP other) -> NETNAMES_MAP
18306 """
18307 _pcbnew.NETNAMES_MAP_swiginit(self, _pcbnew.new_NETNAMES_MAP(*args))
18308
18309 def empty(self):
18310 r"""empty(NETNAMES_MAP self) -> bool"""
18311 return _pcbnew.NETNAMES_MAP_empty(self)
18312
18313 def size(self):
18314 r"""size(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
18315 return _pcbnew.NETNAMES_MAP_size(self)
18316
18317 def swap(self, v):
18318 r"""swap(NETNAMES_MAP self, NETNAMES_MAP v)"""
18319 return _pcbnew.NETNAMES_MAP_swap(self, v)
18320
18321 def begin(self):
18322 r"""begin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
18323 return _pcbnew.NETNAMES_MAP_begin(self)
18324
18325 def end(self):
18326 r"""end(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
18327 return _pcbnew.NETNAMES_MAP_end(self)
18328
18329 def rbegin(self):
18330 r"""rbegin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
18331 return _pcbnew.NETNAMES_MAP_rbegin(self)
18332
18333 def rend(self):
18334 r"""rend(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
18335 return _pcbnew.NETNAMES_MAP_rend(self)
18336
18337 def clear(self):
18338 r"""clear(NETNAMES_MAP self)"""
18339 return _pcbnew.NETNAMES_MAP_clear(self)
18340
18341 def get_allocator(self):
18342 r"""get_allocator(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::allocator_type"""
18343 return _pcbnew.NETNAMES_MAP_get_allocator(self)
18344
18345 def count(self, x):
18346 r"""count(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
18347 return _pcbnew.NETNAMES_MAP_count(self, x)
18348
18349 def erase(self, *args):
18350 r"""
18351 erase(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type
18352 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator position)
18353 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator first, std::map< wxString,NETINFO_ITEM * >::iterator last)
18354 """
18355 return _pcbnew.NETNAMES_MAP_erase(self, *args)
18356
18357 def find(self, x):
18358 r"""find(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
18359 return _pcbnew.NETNAMES_MAP_find(self, x)
18360
18361 def lower_bound(self, x):
18362 r"""lower_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
18363 return _pcbnew.NETNAMES_MAP_lower_bound(self, x)
18364
18365 def upper_bound(self, x):
18366 r"""upper_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
18367 return _pcbnew.NETNAMES_MAP_upper_bound(self, x)
18368 __swig_destroy__ = _pcbnew.delete_NETNAMES_MAP
18369
18370# Register NETNAMES_MAP in _pcbnew:
18371_pcbnew.NETNAMES_MAP_swigregister(NETNAMES_MAP)
18373 r"""Proxy of C++ std::map< int,NETINFO_ITEM * > class."""
18374
18375 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18376 __repr__ = _swig_repr
18377
18378 def iterator(self):
18379 r"""iterator(NETCODES_MAP self) -> SwigPyIterator"""
18380 return _pcbnew.NETCODES_MAP_iterator(self)
18381 def __iter__(self):
18382 return self.iterator()
18383
18384 def __nonzero__(self):
18385 r"""__nonzero__(NETCODES_MAP self) -> bool"""
18386 return _pcbnew.NETCODES_MAP___nonzero__(self)
18387
18388 def __bool__(self):
18389 r"""__bool__(NETCODES_MAP self) -> bool"""
18390 return _pcbnew.NETCODES_MAP___bool__(self)
18391
18392 def __len__(self):
18393 r"""__len__(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
18394 return _pcbnew.NETCODES_MAP___len__(self)
18395 def __iter__(self):
18396 return self.key_iterator()
18397 def iterkeys(self):
18398 return self.key_iterator()
18399 def itervalues(self):
18400 return self.value_iterator()
18401 def iteritems(self):
18402 return self.iterator()
18403
18404 def __getitem__(self, key):
18405 r"""__getitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> NETINFO_ITEM"""
18406 return _pcbnew.NETCODES_MAP___getitem__(self, key)
18407
18408 def __delitem__(self, key):
18409 r"""__delitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)"""
18410 return _pcbnew.NETCODES_MAP___delitem__(self, key)
18411
18412 def has_key(self, key):
18413 r"""has_key(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
18414 return _pcbnew.NETCODES_MAP_has_key(self, key)
18415
18416 def keys(self):
18417 r"""keys(NETCODES_MAP self) -> PyObject *"""
18418 return _pcbnew.NETCODES_MAP_keys(self)
18419
18420 def values(self):
18421 r"""values(NETCODES_MAP self) -> PyObject *"""
18422 return _pcbnew.NETCODES_MAP_values(self)
18423
18424 def items(self):
18425 r"""items(NETCODES_MAP self) -> PyObject *"""
18426 return _pcbnew.NETCODES_MAP_items(self)
18427
18428 def __contains__(self, key):
18429 r"""__contains__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
18430 return _pcbnew.NETCODES_MAP___contains__(self, key)
18431
18432 def key_iterator(self):
18433 r"""key_iterator(NETCODES_MAP self) -> SwigPyIterator"""
18434 return _pcbnew.NETCODES_MAP_key_iterator(self)
18435
18437 r"""value_iterator(NETCODES_MAP self) -> SwigPyIterator"""
18438 return _pcbnew.NETCODES_MAP_value_iterator(self)
18439
18440 def __setitem__(self, *args):
18441 r"""
18442 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)
18443 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key, NETINFO_ITEM x)
18444 """
18445 return _pcbnew.NETCODES_MAP___setitem__(self, *args)
18446
18447 def asdict(self):
18448 r"""asdict(NETCODES_MAP self) -> PyObject *"""
18449 return _pcbnew.NETCODES_MAP_asdict(self)
18450
18451 def __init__(self, *args):
18452 r"""
18453 __init__(NETCODES_MAP self, std::less< int > const & other) -> NETCODES_MAP
18454 __init__(NETCODES_MAP self) -> NETCODES_MAP
18455 __init__(NETCODES_MAP self, NETCODES_MAP other) -> NETCODES_MAP
18456 """
18457 _pcbnew.NETCODES_MAP_swiginit(self, _pcbnew.new_NETCODES_MAP(*args))
18458
18459 def empty(self):
18460 r"""empty(NETCODES_MAP self) -> bool"""
18461 return _pcbnew.NETCODES_MAP_empty(self)
18462
18463 def size(self):
18464 r"""size(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
18465 return _pcbnew.NETCODES_MAP_size(self)
18466
18467 def swap(self, v):
18468 r"""swap(NETCODES_MAP self, NETCODES_MAP v)"""
18469 return _pcbnew.NETCODES_MAP_swap(self, v)
18470
18471 def begin(self):
18472 r"""begin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
18473 return _pcbnew.NETCODES_MAP_begin(self)
18474
18475 def end(self):
18476 r"""end(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
18477 return _pcbnew.NETCODES_MAP_end(self)
18478
18479 def rbegin(self):
18480 r"""rbegin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
18481 return _pcbnew.NETCODES_MAP_rbegin(self)
18482
18483 def rend(self):
18484 r"""rend(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
18485 return _pcbnew.NETCODES_MAP_rend(self)
18486
18487 def clear(self):
18488 r"""clear(NETCODES_MAP self)"""
18489 return _pcbnew.NETCODES_MAP_clear(self)
18490
18491 def get_allocator(self):
18492 r"""get_allocator(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::allocator_type"""
18493 return _pcbnew.NETCODES_MAP_get_allocator(self)
18494
18495 def count(self, x):
18496 r"""count(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type"""
18497 return _pcbnew.NETCODES_MAP_count(self, x)
18498
18499 def erase(self, *args):
18500 r"""
18501 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type
18502 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator position)
18503 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator first, std::map< int,NETINFO_ITEM * >::iterator last)
18504 """
18505 return _pcbnew.NETCODES_MAP_erase(self, *args)
18506
18507 def find(self, x):
18508 r"""find(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
18509 return _pcbnew.NETCODES_MAP_find(self, x)
18510
18511 def lower_bound(self, x):
18512 r"""lower_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
18513 return _pcbnew.NETCODES_MAP_lower_bound(self, x)
18514
18515 def upper_bound(self, x):
18516 r"""upper_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
18517 return _pcbnew.NETCODES_MAP_upper_bound(self, x)
18518 __swig_destroy__ = _pcbnew.delete_NETCODES_MAP
18519
18520# Register NETCODES_MAP in _pcbnew:
18521_pcbnew.NETCODES_MAP_swigregister(NETCODES_MAP)
18523 r"""Proxy of C++ NETINFO_LIST class."""
18524
18525 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18526 __repr__ = _swig_repr
18527
18528 def __init__(self, aParent):
18529 r"""__init__(NETINFO_LIST self, BOARD aParent) -> NETINFO_LIST"""
18530 _pcbnew.NETINFO_LIST_swiginit(self, _pcbnew.new_NETINFO_LIST(aParent))
18531 __swig_destroy__ = _pcbnew.delete_NETINFO_LIST
18532
18533 def GetNetItem(self, *args):
18534 r"""
18535 GetNetItem(NETINFO_LIST self, int aNetCode) -> NETINFO_ITEM
18536 GetNetItem(NETINFO_LIST self, wxString aNetName) -> NETINFO_ITEM
18537 """
18538 return _pcbnew.NETINFO_LIST_GetNetItem(self, *args)
18539
18540 def GetNetCount(self):
18541 r"""GetNetCount(NETINFO_LIST self) -> unsigned int"""
18542 return _pcbnew.NETINFO_LIST_GetNetCount(self)
18543
18544 def NetsByName(self):
18545 r"""NetsByName(NETINFO_LIST self) -> NETNAMES_MAP"""
18546 return _pcbnew.NETINFO_LIST_NetsByName(self)
18547
18548 def NetsByNetcode(self):
18549 r"""NetsByNetcode(NETINFO_LIST self) -> NETCODES_MAP"""
18550 return _pcbnew.NETINFO_LIST_NetsByNetcode(self)
18551
18553 r"""RebuildDisplayNetnames(NETINFO_LIST self)"""
18554 return _pcbnew.NETINFO_LIST_RebuildDisplayNetnames(self)
18555
18556 @staticmethod
18558 r"""OrphanedItem() -> NETINFO_ITEM"""
18559 return _pcbnew.NETINFO_LIST_OrphanedItem()
18560
18561 def GetParent(self):
18562 r"""GetParent(NETINFO_LIST self) -> BOARD"""
18563 return _pcbnew.NETINFO_LIST_GetParent(self)
18564 m_DisplayNetnamesDirty = property(_pcbnew.NETINFO_LIST_m_DisplayNetnamesDirty_get, _pcbnew.NETINFO_LIST_m_DisplayNetnamesDirty_set, doc=r"""m_DisplayNetnamesDirty : bool""")
18565
18566# Register NETINFO_LIST in _pcbnew:
18567_pcbnew.NETINFO_LIST_swigregister(NETINFO_LIST)
18568NETINFO_LIST.UNCONNECTED = _pcbnew.cvar.NETINFO_LIST_UNCONNECTED
18569NETINFO_LIST.ORPHANED = _pcbnew.cvar.NETINFO_LIST_ORPHANED
18570
18572 r"""Proxy of C++ std::set< wxString > class."""
18573
18574 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18575 __repr__ = _swig_repr
18576
18577 def iterator(self):
18578 r"""iterator(STRINGSET self) -> SwigPyIterator"""
18579 return _pcbnew.STRINGSET_iterator(self)
18580 def __iter__(self):
18581 return self.iterator()
18582
18583 def __nonzero__(self):
18584 r"""__nonzero__(STRINGSET self) -> bool"""
18585 return _pcbnew.STRINGSET___nonzero__(self)
18586
18587 def __bool__(self):
18588 r"""__bool__(STRINGSET self) -> bool"""
18589 return _pcbnew.STRINGSET___bool__(self)
18590
18591 def __len__(self):
18592 r"""__len__(STRINGSET self) -> std::set< wxString >::size_type"""
18593 return _pcbnew.STRINGSET___len__(self)
18594
18595 def append(self, x):
18596 r"""append(STRINGSET self, wxString x)"""
18597 return _pcbnew.STRINGSET_append(self, x)
18598
18599 def __contains__(self, x):
18600 r"""__contains__(STRINGSET self, wxString x) -> bool"""
18601 return _pcbnew.STRINGSET___contains__(self, x)
18602
18603 def __getitem__(self, i):
18604 r"""__getitem__(STRINGSET self, std::set< wxString >::difference_type i) -> wxString"""
18605 return _pcbnew.STRINGSET___getitem__(self, i)
18606
18607 def add(self, x):
18608 r"""add(STRINGSET self, wxString x)"""
18609 return _pcbnew.STRINGSET_add(self, x)
18610
18611 def discard(self, x):
18612 r"""discard(STRINGSET self, wxString x)"""
18613 return _pcbnew.STRINGSET_discard(self, x)
18614
18615 def __init__(self, *args):
18616 r"""
18617 __init__(STRINGSET self, std::less< wxString > const & other) -> STRINGSET
18618 __init__(STRINGSET self) -> STRINGSET
18619 __init__(STRINGSET self, STRINGSET other) -> STRINGSET
18620 """
18621 _pcbnew.STRINGSET_swiginit(self, _pcbnew.new_STRINGSET(*args))
18622
18623 def empty(self):
18624 r"""empty(STRINGSET self) -> bool"""
18625 return _pcbnew.STRINGSET_empty(self)
18626
18627 def size(self):
18628 r"""size(STRINGSET self) -> std::set< wxString >::size_type"""
18629 return _pcbnew.STRINGSET_size(self)
18630
18631 def clear(self):
18632 r"""clear(STRINGSET self)"""
18633 return _pcbnew.STRINGSET_clear(self)
18634
18635 def swap(self, v):
18636 r"""swap(STRINGSET self, STRINGSET v)"""
18637 return _pcbnew.STRINGSET_swap(self, v)
18638
18639 def count(self, x):
18640 r"""count(STRINGSET self, wxString x) -> std::set< wxString >::size_type"""
18641 return _pcbnew.STRINGSET_count(self, x)
18642
18643 def begin(self):
18644 r"""begin(STRINGSET self) -> std::set< wxString >::iterator"""
18645 return _pcbnew.STRINGSET_begin(self)
18646
18647 def end(self):
18648 r"""end(STRINGSET self) -> std::set< wxString >::iterator"""
18649 return _pcbnew.STRINGSET_end(self)
18650
18651 def rbegin(self):
18652 r"""rbegin(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
18653 return _pcbnew.STRINGSET_rbegin(self)
18654
18655 def rend(self):
18656 r"""rend(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
18657 return _pcbnew.STRINGSET_rend(self)
18658
18659 def erase(self, *args):
18660 r"""
18661 erase(STRINGSET self, wxString x) -> std::set< wxString >::size_type
18662 erase(STRINGSET self, std::set< wxString >::iterator pos)
18663 erase(STRINGSET self, std::set< wxString >::iterator first, std::set< wxString >::iterator last)
18664 """
18665 return _pcbnew.STRINGSET_erase(self, *args)
18666
18667 def find(self, x):
18668 r"""find(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
18669 return _pcbnew.STRINGSET_find(self, x)
18670
18671 def lower_bound(self, x):
18672 r"""lower_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
18673 return _pcbnew.STRINGSET_lower_bound(self, x)
18674
18675 def upper_bound(self, x):
18676 r"""upper_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
18677 return _pcbnew.STRINGSET_upper_bound(self, x)
18678
18679 def equal_range(self, x):
18680 r"""equal_range(STRINGSET self, wxString x) -> std::pair< std::set< wxString >::iterator,std::set< wxString >::iterator >"""
18681 return _pcbnew.STRINGSET_equal_range(self, x)
18682
18683 def insert(self, __x):
18684 r"""insert(STRINGSET self, wxString __x) -> std::pair< std::set< wxString >::iterator,bool >"""
18685 return _pcbnew.STRINGSET_insert(self, __x)
18686 __swig_destroy__ = _pcbnew.delete_STRINGSET
18687
18688# Register STRINGSET in _pcbnew:
18689_pcbnew.STRINGSET_swigregister(STRINGSET)
18691 r"""Proxy of C++ NETCLASS class."""
18692
18693 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18694 __repr__ = _swig_repr
18695
18696 def __init__(self, aName, aInitWithDefaults=True):
18697 r"""__init__(NETCLASS self, wxString aName, bool aInitWithDefaults=True) -> NETCLASS"""
18698 _pcbnew.NETCLASS_swiginit(self, _pcbnew.new_NETCLASS(aName, aInitWithDefaults))
18699 __swig_destroy__ = _pcbnew.delete_NETCLASS
18700
18701 def __eq__(self, other):
18702 r"""__eq__(NETCLASS self, NETCLASS other) -> bool"""
18703 return _pcbnew.NETCLASS___eq__(self, other)
18704
18705 def GetClass(self):
18706 r"""GetClass(NETCLASS self) -> wxString"""
18707 return _pcbnew.NETCLASS_GetClass(self)
18708
18709 def Serialize(self, aContainer):
18710 r"""Serialize(NETCLASS self, google::protobuf::Any & aContainer)"""
18711 return _pcbnew.NETCLASS_Serialize(self, aContainer)
18712
18713 def Deserialize(self, aContainer):
18714 r"""Deserialize(NETCLASS self, google::protobuf::Any const & aContainer) -> bool"""
18715 return _pcbnew.NETCLASS_Deserialize(self, aContainer)
18716
18717 def ResetParents(self):
18718 r"""ResetParents(NETCLASS self)"""
18719 return _pcbnew.NETCLASS_ResetParents(self)
18720
18722 r"""ResetParameters(NETCLASS self)"""
18723 return _pcbnew.NETCLASS_ResetParameters(self)
18724
18726 r"""GetConstituentNetclasses(NETCLASS self) -> std::vector< NETCLASS *,std::allocator< NETCLASS * > > const &"""
18727 return _pcbnew.NETCLASS_GetConstituentNetclasses(self)
18728
18729 def SetConstituentNetclasses(self, constituents):
18730 r"""SetConstituentNetclasses(NETCLASS self, std::vector< NETCLASS *,std::allocator< NETCLASS * > > && constituents)"""
18731 return _pcbnew.NETCLASS_SetConstituentNetclasses(self, constituents)
18732
18733 def ContainsNetclassWithName(self, netclass):
18734 r"""ContainsNetclassWithName(NETCLASS self, wxString netclass) -> bool"""
18735 return _pcbnew.NETCLASS_ContainsNetclassWithName(self, netclass)
18736
18737 def IsDefault(self):
18738 r"""IsDefault(NETCLASS self) -> bool"""
18739 return _pcbnew.NETCLASS_IsDefault(self)
18740
18741 def SetName(self, aName):
18742 r"""SetName(NETCLASS self, wxString aName)"""
18743 return _pcbnew.NETCLASS_SetName(self, aName)
18744
18745 def GetName(self):
18746 r"""GetName(NETCLASS self) -> wxString"""
18747 return _pcbnew.NETCLASS_GetName(self)
18748
18750 r"""GetHumanReadableName(NETCLASS self) -> wxString"""
18751 return _pcbnew.NETCLASS_GetHumanReadableName(self)
18752
18754 r"""GetDescription(NETCLASS self) -> wxString"""
18755 return _pcbnew.NETCLASS_GetDescription(self)
18756
18757 def SetDescription(self, aDesc):
18758 r"""SetDescription(NETCLASS self, wxString aDesc)"""
18759 return _pcbnew.NETCLASS_SetDescription(self, aDesc)
18760
18761 def HasClearance(self):
18762 r"""HasClearance(NETCLASS self) -> bool"""
18763 return _pcbnew.NETCLASS_HasClearance(self)
18764
18765 def GetClearance(self):
18766 r"""GetClearance(NETCLASS self) -> int"""
18767 return _pcbnew.NETCLASS_GetClearance(self)
18768
18770 r"""GetClearanceOpt(NETCLASS self) -> std::optional< int >"""
18771 return _pcbnew.NETCLASS_GetClearanceOpt(self)
18772
18773 def SetClearance(self, aClearance):
18774 r"""SetClearance(NETCLASS self, int aClearance)"""
18775 return _pcbnew.NETCLASS_SetClearance(self, aClearance)
18776
18777 def SetClearanceParent(self, parent):
18778 r"""SetClearanceParent(NETCLASS self, NETCLASS parent)"""
18779 return _pcbnew.NETCLASS_SetClearanceParent(self, parent)
18780
18782 r"""GetClearanceParent(NETCLASS self) -> NETCLASS"""
18783 return _pcbnew.NETCLASS_GetClearanceParent(self)
18784
18785 def HasTrackWidth(self):
18786 r"""HasTrackWidth(NETCLASS self) -> bool"""
18787 return _pcbnew.NETCLASS_HasTrackWidth(self)
18788
18789 def GetTrackWidth(self):
18790 r"""GetTrackWidth(NETCLASS self) -> int"""
18791 return _pcbnew.NETCLASS_GetTrackWidth(self)
18792
18794 r"""GetTrackWidthOpt(NETCLASS self) -> std::optional< int >"""
18795 return _pcbnew.NETCLASS_GetTrackWidthOpt(self)
18796
18797 def SetTrackWidth(self, aWidth):
18798 r"""SetTrackWidth(NETCLASS self, int aWidth)"""
18799 return _pcbnew.NETCLASS_SetTrackWidth(self, aWidth)
18800
18801 def SetTrackWidthParent(self, parent):
18802 r"""SetTrackWidthParent(NETCLASS self, NETCLASS parent)"""
18803 return _pcbnew.NETCLASS_SetTrackWidthParent(self, parent)
18804
18806 r"""GetTrackWidthParent(NETCLASS self) -> NETCLASS"""
18807 return _pcbnew.NETCLASS_GetTrackWidthParent(self)
18808
18810 r"""HasViaDiameter(NETCLASS self) -> bool"""
18811 return _pcbnew.NETCLASS_HasViaDiameter(self)
18812
18814 r"""GetViaDiameter(NETCLASS self) -> int"""
18815 return _pcbnew.NETCLASS_GetViaDiameter(self)
18816
18818 r"""GetViaDiameterOpt(NETCLASS self) -> std::optional< int >"""
18819 return _pcbnew.NETCLASS_GetViaDiameterOpt(self)
18820
18821 def SetViaDiameter(self, aDia):
18822 r"""SetViaDiameter(NETCLASS self, int aDia)"""
18823 return _pcbnew.NETCLASS_SetViaDiameter(self, aDia)
18824
18825 def SetViaDiameterParent(self, parent):
18826 r"""SetViaDiameterParent(NETCLASS self, NETCLASS parent)"""
18827 return _pcbnew.NETCLASS_SetViaDiameterParent(self, parent)
18828
18830 r"""GetViaDiameterParent(NETCLASS self) -> NETCLASS"""
18831 return _pcbnew.NETCLASS_GetViaDiameterParent(self)
18832
18833 def HasViaDrill(self):
18834 r"""HasViaDrill(NETCLASS self) -> int"""
18835 return _pcbnew.NETCLASS_HasViaDrill(self)
18836
18837 def GetViaDrill(self):
18838 r"""GetViaDrill(NETCLASS self) -> int"""
18839 return _pcbnew.NETCLASS_GetViaDrill(self)
18840
18842 r"""GetViaDrillOpt(NETCLASS self) -> std::optional< int >"""
18843 return _pcbnew.NETCLASS_GetViaDrillOpt(self)
18844
18845 def SetViaDrill(self, aSize):
18846 r"""SetViaDrill(NETCLASS self, int aSize)"""
18847 return _pcbnew.NETCLASS_SetViaDrill(self, aSize)
18848
18849 def SetViaDrillParent(self, parent):
18850 r"""SetViaDrillParent(NETCLASS self, NETCLASS parent)"""
18851 return _pcbnew.NETCLASS_SetViaDrillParent(self, parent)
18852
18854 r"""GetViaDrillParent(NETCLASS self) -> NETCLASS"""
18855 return _pcbnew.NETCLASS_GetViaDrillParent(self)
18856
18858 r"""HasuViaDiameter(NETCLASS self) -> bool"""
18859 return _pcbnew.NETCLASS_HasuViaDiameter(self)
18860
18862 r"""GetuViaDiameter(NETCLASS self) -> int"""
18863 return _pcbnew.NETCLASS_GetuViaDiameter(self)
18864
18866 r"""GetuViaDiameterOpt(NETCLASS self) -> std::optional< int >"""
18867 return _pcbnew.NETCLASS_GetuViaDiameterOpt(self)
18868
18869 def SetuViaDiameter(self, aSize):
18870 r"""SetuViaDiameter(NETCLASS self, int aSize)"""
18871 return _pcbnew.NETCLASS_SetuViaDiameter(self, aSize)
18872
18873 def SetuViaDiameterParent(self, parent):
18874 r"""SetuViaDiameterParent(NETCLASS self, NETCLASS parent)"""
18875 return _pcbnew.NETCLASS_SetuViaDiameterParent(self, parent)
18876
18878 r"""GetuViaDiameterParent(NETCLASS self) -> NETCLASS"""
18879 return _pcbnew.NETCLASS_GetuViaDiameterParent(self)
18880
18881 def HasuViaDrill(self):
18882 r"""HasuViaDrill(NETCLASS self) -> bool"""
18883 return _pcbnew.NETCLASS_HasuViaDrill(self)
18884
18885 def GetuViaDrill(self):
18886 r"""GetuViaDrill(NETCLASS self) -> int"""
18887 return _pcbnew.NETCLASS_GetuViaDrill(self)
18888
18890 r"""GetuViaDrillOpt(NETCLASS self) -> std::optional< int >"""
18891 return _pcbnew.NETCLASS_GetuViaDrillOpt(self)
18892
18893 def SetuViaDrill(self, aSize):
18894 r"""SetuViaDrill(NETCLASS self, int aSize)"""
18895 return _pcbnew.NETCLASS_SetuViaDrill(self, aSize)
18896
18897 def SetuViaDrillParent(self, parent):
18898 r"""SetuViaDrillParent(NETCLASS self, NETCLASS parent)"""
18899 return _pcbnew.NETCLASS_SetuViaDrillParent(self, parent)
18900
18902 r"""GetuViaDrillParent(NETCLASS self) -> NETCLASS"""
18903 return _pcbnew.NETCLASS_GetuViaDrillParent(self)
18904
18906 r"""HasDiffPairWidth(NETCLASS self) -> bool"""
18907 return _pcbnew.NETCLASS_HasDiffPairWidth(self)
18908
18910 r"""GetDiffPairWidth(NETCLASS self) -> int"""
18911 return _pcbnew.NETCLASS_GetDiffPairWidth(self)
18912
18914 r"""GetDiffPairWidthOpt(NETCLASS self) -> std::optional< int >"""
18915 return _pcbnew.NETCLASS_GetDiffPairWidthOpt(self)
18916
18917 def SetDiffPairWidth(self, aSize):
18918 r"""SetDiffPairWidth(NETCLASS self, int aSize)"""
18919 return _pcbnew.NETCLASS_SetDiffPairWidth(self, aSize)
18920
18921 def SetDiffPairWidthParent(self, parent):
18922 r"""SetDiffPairWidthParent(NETCLASS self, NETCLASS parent)"""
18923 return _pcbnew.NETCLASS_SetDiffPairWidthParent(self, parent)
18924
18926 r"""GetDiffPairWidthParent(NETCLASS self) -> NETCLASS"""
18927 return _pcbnew.NETCLASS_GetDiffPairWidthParent(self)
18928
18930 r"""HasDiffPairGap(NETCLASS self) -> bool"""
18931 return _pcbnew.NETCLASS_HasDiffPairGap(self)
18932
18934 r"""GetDiffPairGap(NETCLASS self) -> int"""
18935 return _pcbnew.NETCLASS_GetDiffPairGap(self)
18936
18938 r"""GetDiffPairGapOpt(NETCLASS self) -> std::optional< int >"""
18939 return _pcbnew.NETCLASS_GetDiffPairGapOpt(self)
18940
18941 def SetDiffPairGap(self, aSize):
18942 r"""SetDiffPairGap(NETCLASS self, int aSize)"""
18943 return _pcbnew.NETCLASS_SetDiffPairGap(self, aSize)
18944
18945 def SetDiffPairGapParent(self, parent):
18946 r"""SetDiffPairGapParent(NETCLASS self, NETCLASS parent)"""
18947 return _pcbnew.NETCLASS_SetDiffPairGapParent(self, parent)
18948
18950 r"""GetDiffPairGapParent(NETCLASS self) -> NETCLASS"""
18951 return _pcbnew.NETCLASS_GetDiffPairGapParent(self)
18952
18954 r"""HasDiffPairViaGap(NETCLASS self) -> bool"""
18955 return _pcbnew.NETCLASS_HasDiffPairViaGap(self)
18956
18958 r"""GetDiffPairViaGap(NETCLASS self) -> int"""
18959 return _pcbnew.NETCLASS_GetDiffPairViaGap(self)
18960
18962 r"""GetDiffPairViaGapOpt(NETCLASS self) -> std::optional< int >"""
18963 return _pcbnew.NETCLASS_GetDiffPairViaGapOpt(self)
18964
18965 def SetDiffPairViaGap(self, aSize):
18966 r"""SetDiffPairViaGap(NETCLASS self, int aSize)"""
18967 return _pcbnew.NETCLASS_SetDiffPairViaGap(self, aSize)
18968
18969 def SetDiffPairViaGapParent(self, parent):
18970 r"""SetDiffPairViaGapParent(NETCLASS self, NETCLASS parent)"""
18971 return _pcbnew.NETCLASS_SetDiffPairViaGapParent(self, parent)
18972
18974 r"""GetDiffPairViaGapParent(NETCLASS self) -> NETCLASS"""
18975 return _pcbnew.NETCLASS_GetDiffPairViaGapParent(self)
18976
18977 def HasPcbColor(self):
18978 r"""HasPcbColor(NETCLASS self) -> bool"""
18979 return _pcbnew.NETCLASS_HasPcbColor(self)
18980
18981 def GetPcbColor(self, aIsForSave=False):
18982 r"""GetPcbColor(NETCLASS self, bool aIsForSave=False) -> COLOR4D"""
18983 return _pcbnew.NETCLASS_GetPcbColor(self, aIsForSave)
18984
18985 def SetPcbColor(self, aColor):
18986 r"""SetPcbColor(NETCLASS self, COLOR4D aColor)"""
18987 return _pcbnew.NETCLASS_SetPcbColor(self, aColor)
18988
18989 def SetPcbColorParent(self, parent):
18990 r"""SetPcbColorParent(NETCLASS self, NETCLASS parent)"""
18991 return _pcbnew.NETCLASS_SetPcbColorParent(self, parent)
18992
18994 r"""GetPcbColorParent(NETCLASS self) -> NETCLASS"""
18995 return _pcbnew.NETCLASS_GetPcbColorParent(self)
18996
18997 def HasWireWidth(self):
18998 r"""HasWireWidth(NETCLASS self) -> bool"""
18999 return _pcbnew.NETCLASS_HasWireWidth(self)
19000
19001 def GetWireWidth(self):
19002 r"""GetWireWidth(NETCLASS self) -> int"""
19003 return _pcbnew.NETCLASS_GetWireWidth(self)
19004
19006 r"""GetWireWidthOpt(NETCLASS self) -> std::optional< int >"""
19007 return _pcbnew.NETCLASS_GetWireWidthOpt(self)
19008
19009 def SetWireWidth(self, aWidth):
19010 r"""SetWireWidth(NETCLASS self, int aWidth)"""
19011 return _pcbnew.NETCLASS_SetWireWidth(self, aWidth)
19012
19013 def SetWireWidthParent(self, parent):
19014 r"""SetWireWidthParent(NETCLASS self, NETCLASS parent)"""
19015 return _pcbnew.NETCLASS_SetWireWidthParent(self, parent)
19016
19018 r"""GetWireWidthParent(NETCLASS self) -> NETCLASS"""
19019 return _pcbnew.NETCLASS_GetWireWidthParent(self)
19020
19021 def HasBusWidth(self):
19022 r"""HasBusWidth(NETCLASS self) -> bool"""
19023 return _pcbnew.NETCLASS_HasBusWidth(self)
19024
19025 def GetBusWidth(self):
19026 r"""GetBusWidth(NETCLASS self) -> int"""
19027 return _pcbnew.NETCLASS_GetBusWidth(self)
19028
19030 r"""GetBusWidthOpt(NETCLASS self) -> std::optional< int >"""
19031 return _pcbnew.NETCLASS_GetBusWidthOpt(self)
19032
19033 def SetBusWidth(self, aWidth):
19034 r"""SetBusWidth(NETCLASS self, int aWidth)"""
19035 return _pcbnew.NETCLASS_SetBusWidth(self, aWidth)
19036
19037 def SetBusWidthParent(self, parent):
19038 r"""SetBusWidthParent(NETCLASS self, NETCLASS parent)"""
19039 return _pcbnew.NETCLASS_SetBusWidthParent(self, parent)
19040
19042 r"""GetBusWidthParent(NETCLASS self) -> NETCLASS"""
19043 return _pcbnew.NETCLASS_GetBusWidthParent(self)
19044
19045 def GetSchematicColor(self, aIsForSave=False):
19046 r"""GetSchematicColor(NETCLASS self, bool aIsForSave=False) -> COLOR4D"""
19047 return _pcbnew.NETCLASS_GetSchematicColor(self, aIsForSave)
19048
19049 def SetSchematicColor(self, aColor):
19050 r"""SetSchematicColor(NETCLASS self, COLOR4D aColor)"""
19051 return _pcbnew.NETCLASS_SetSchematicColor(self, aColor)
19052
19053 def SetSchematicColorParent(self, parent):
19054 r"""SetSchematicColorParent(NETCLASS self, NETCLASS parent)"""
19055 return _pcbnew.NETCLASS_SetSchematicColorParent(self, parent)
19056
19058 r"""GetSchematicColorParent(NETCLASS self) -> NETCLASS"""
19059 return _pcbnew.NETCLASS_GetSchematicColorParent(self)
19060
19061 def HasLineStyle(self):
19062 r"""HasLineStyle(NETCLASS self) -> bool"""
19063 return _pcbnew.NETCLASS_HasLineStyle(self)
19064
19065 def GetLineStyle(self):
19066 r"""GetLineStyle(NETCLASS self) -> int"""
19067 return _pcbnew.NETCLASS_GetLineStyle(self)
19068
19070 r"""GetLineStyleOpt(NETCLASS self) -> std::optional< int >"""
19071 return _pcbnew.NETCLASS_GetLineStyleOpt(self)
19072
19073 def SetLineStyle(self, aStyle):
19074 r"""SetLineStyle(NETCLASS self, int aStyle)"""
19075 return _pcbnew.NETCLASS_SetLineStyle(self, aStyle)
19076
19077 def SetLineStyleParent(self, parent):
19078 r"""SetLineStyleParent(NETCLASS self, NETCLASS parent)"""
19079 return _pcbnew.NETCLASS_SetLineStyleParent(self, parent)
19080
19082 r"""GetLineStyleParent(NETCLASS self) -> NETCLASS"""
19083 return _pcbnew.NETCLASS_GetLineStyleParent(self)
19084
19085 def SetPriority(self, aPriority):
19086 r"""SetPriority(NETCLASS self, int aPriority)"""
19087 return _pcbnew.NETCLASS_SetPriority(self, aPriority)
19088
19089 def GetPriority(self):
19090 r"""GetPriority(NETCLASS self) -> int"""
19091 return _pcbnew.NETCLASS_GetPriority(self)
19092
19093# Register NETCLASS in _pcbnew:
19094_pcbnew.NETCLASS_swigregister(NETCLASS)
19095NETCLASS.Default = _pcbnew.cvar.NETCLASS_Default
19096
19098 r"""Proxy of C++ PCB_GROUP class."""
19099
19100 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19101 __repr__ = _swig_repr
19102
19103 def __init__(self, aParent):
19104 r"""__init__(PCB_GROUP self, BOARD_ITEM aParent) -> PCB_GROUP"""
19105 _pcbnew.PCB_GROUP_swiginit(self, _pcbnew.new_PCB_GROUP(aParent))
19106
19107 @staticmethod
19108 def ClassOf(aItem):
19109 r"""ClassOf(EDA_ITEM aItem) -> bool"""
19110 return _pcbnew.PCB_GROUP_ClassOf(aItem)
19111
19112 def GetName(self):
19113 r"""GetName(PCB_GROUP self) -> wxString"""
19114 return _pcbnew.PCB_GROUP_GetName(self)
19115
19116 def SetName(self, aName):
19117 r"""SetName(PCB_GROUP self, wxString aName)"""
19118 return _pcbnew.PCB_GROUP_SetName(self, aName)
19119
19120 def GetItems(self, *args):
19121 r"""
19122 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * >
19123 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * > const &
19124 """
19125 return _pcbnew.PCB_GROUP_GetItems(self, *args)
19126
19127 def AddItem(self, aItem):
19128 r"""AddItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
19129 return _pcbnew.PCB_GROUP_AddItem(self, aItem)
19130
19131 def RemoveItem(self, aItem):
19132 r"""RemoveItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
19133 return _pcbnew.PCB_GROUP_RemoveItem(self, aItem)
19134
19135 def RemoveAll(self):
19136 r"""RemoveAll(PCB_GROUP self)"""
19137 return _pcbnew.PCB_GROUP_RemoveAll(self)
19138
19139 @staticmethod
19140 def TopLevelGroup(aItem, aScope, isFootprintEditor):
19141 r"""TopLevelGroup(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> PCB_GROUP"""
19142 return _pcbnew.PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
19143
19144 @staticmethod
19145 def WithinScope(aItem, aScope, isFootprintEditor):
19146 r"""WithinScope(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> bool"""
19147 return _pcbnew.PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
19148
19149 def __eq__(self, *args):
19150 r"""
19151 __eq__(PCB_GROUP self, PCB_GROUP aOther) -> bool
19152 __eq__(PCB_GROUP self, BOARD_ITEM aBoardItem) -> bool
19153 """
19154 return _pcbnew.PCB_GROUP___eq__(self, *args)
19155
19156 def DeepClone(self):
19157 r"""DeepClone(PCB_GROUP self) -> PCB_GROUP"""
19158 return _pcbnew.PCB_GROUP_DeepClone(self)
19159
19160 def DeepDuplicate(self):
19161 r"""DeepDuplicate(PCB_GROUP self) -> PCB_GROUP"""
19162 return _pcbnew.PCB_GROUP_DeepDuplicate(self)
19163
19164 def HitTest(self, *args):
19165 r"""
19166 HitTest(PCB_GROUP self, VECTOR2I aPosition, int aAccuracy=0) -> bool
19167 HitTest(PCB_GROUP self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
19168 """
19169 return _pcbnew.PCB_GROUP_HitTest(self, *args)
19170
19171 def GetEffectiveShape(self, *args):
19172 r"""GetEffectiveShape(PCB_GROUP self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
19173 return _pcbnew.PCB_GROUP_GetEffectiveShape(self, *args)
19174
19175 def ViewGetLOD(self, aLayer, aView):
19176 r"""ViewGetLOD(PCB_GROUP self, int aLayer, KIGFX::VIEW const * aView) -> double"""
19177 return _pcbnew.PCB_GROUP_ViewGetLOD(self, aLayer, aView)
19178
19179 def RunOnDescendants(self, aFunction, aDepth=0):
19180 r"""RunOnDescendants(PCB_GROUP self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
19181 return _pcbnew.PCB_GROUP_RunOnDescendants(self, aFunction, aDepth)
19182
19183 @staticmethod
19185 r"""IsGroupableType(KICAD_T aType) -> bool"""
19186 return _pcbnew.PCB_GROUP_IsGroupableType(aType)
19187
19188 def GetItemsDeque(self):
19189 r"""GetItemsDeque(PCB_GROUP self) -> DRAWINGS"""
19190 return _pcbnew.PCB_GROUP_GetItemsDeque(self)
19191
19192 def GetItems(self):
19193 return [item.Cast() for item in self.GetItemsDeque()]
19194
19195 __swig_destroy__ = _pcbnew.delete_PCB_GROUP
19196
19197# Register PCB_GROUP in _pcbnew:
19198_pcbnew.PCB_GROUP_swigregister(PCB_GROUP)
19200 r"""Proxy of C++ PCB_REFERENCE_IMAGE class."""
19201
19202 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19203 __repr__ = _swig_repr
19204
19205 def __init__(self, *args):
19206 r"""
19207 __init__(PCB_REFERENCE_IMAGE self, BOARD_ITEM aParent, VECTOR2I pos=VECTOR2I( 0, 0 ), PCB_LAYER_ID aLayer=F_Cu) -> PCB_REFERENCE_IMAGE
19208 __init__(PCB_REFERENCE_IMAGE self, PCB_REFERENCE_IMAGE aPcbBitmap) -> PCB_REFERENCE_IMAGE
19209 """
19210 _pcbnew.PCB_REFERENCE_IMAGE_swiginit(self, _pcbnew.new_PCB_REFERENCE_IMAGE(*args))
19211 __swig_destroy__ = _pcbnew.delete_PCB_REFERENCE_IMAGE
19212
19213 def GetReferenceImage(self, *args):
19214 r"""
19215 GetReferenceImage(PCB_REFERENCE_IMAGE self) -> REFERENCE_IMAGE
19216 GetReferenceImage(PCB_REFERENCE_IMAGE self) -> REFERENCE_IMAGE const &
19217 """
19218 return _pcbnew.PCB_REFERENCE_IMAGE_GetReferenceImage(self, *args)
19219
19220 @staticmethod
19221 def ClassOf(aItem):
19222 r"""ClassOf(EDA_ITEM aItem) -> bool"""
19223 return _pcbnew.PCB_REFERENCE_IMAGE_ClassOf(aItem)
19224
19225 def ViewGetLOD(self, aLayer, aView):
19226 r"""ViewGetLOD(PCB_REFERENCE_IMAGE self, int aLayer, KIGFX::VIEW const * aView) -> double"""
19227 return _pcbnew.PCB_REFERENCE_IMAGE_ViewGetLOD(self, aLayer, aView)
19228
19229 def GetEffectiveShape(self, *args):
19230 r"""GetEffectiveShape(PCB_REFERENCE_IMAGE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
19231 return _pcbnew.PCB_REFERENCE_IMAGE_GetEffectiveShape(self, *args)
19232
19233 def HitTest(self, *args):
19234 r"""
19235 HitTest(PCB_REFERENCE_IMAGE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
19236 HitTest(PCB_REFERENCE_IMAGE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
19237 """
19238 return _pcbnew.PCB_REFERENCE_IMAGE_HitTest(self, *args)
19239
19240 def __eq__(self, *args):
19241 r"""
19242 __eq__(PCB_REFERENCE_IMAGE self, PCB_REFERENCE_IMAGE aOther) -> bool
19243 __eq__(PCB_REFERENCE_IMAGE self, BOARD_ITEM aBoardItem) -> bool
19244 """
19245 return _pcbnew.PCB_REFERENCE_IMAGE___eq__(self, *args)
19246
19247# Register PCB_REFERENCE_IMAGE in _pcbnew:
19248_pcbnew.PCB_REFERENCE_IMAGE_swigregister(PCB_REFERENCE_IMAGE)
19250 r"""Proxy of C++ std::vector< VIA_DIMENSION > class."""
19251
19252 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19253 __repr__ = _swig_repr
19254
19255 def iterator(self):
19256 r"""iterator(VIA_DIMENSION_Vector self) -> SwigPyIterator"""
19257 return _pcbnew.VIA_DIMENSION_Vector_iterator(self)
19258 def __iter__(self):
19259 return self.iterator()
19260
19261 def __nonzero__(self):
19262 r"""__nonzero__(VIA_DIMENSION_Vector self) -> bool"""
19263 return _pcbnew.VIA_DIMENSION_Vector___nonzero__(self)
19264
19265 def __bool__(self):
19266 r"""__bool__(VIA_DIMENSION_Vector self) -> bool"""
19267 return _pcbnew.VIA_DIMENSION_Vector___bool__(self)
19268
19269 def __len__(self):
19270 r"""__len__(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
19271 return _pcbnew.VIA_DIMENSION_Vector___len__(self)
19272
19273 def __getslice__(self, i, j):
19274 r"""__getslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j) -> VIA_DIMENSION_Vector"""
19275 return _pcbnew.VIA_DIMENSION_Vector___getslice__(self, i, j)
19276
19277 def __setslice__(self, *args):
19278 r"""
19279 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)
19280 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j, VIA_DIMENSION_Vector v)
19281 """
19282 return _pcbnew.VIA_DIMENSION_Vector___setslice__(self, *args)
19283
19284 def __delslice__(self, i, j):
19285 r"""__delslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)"""
19286 return _pcbnew.VIA_DIMENSION_Vector___delslice__(self, i, j)
19287
19288 def __delitem__(self, *args):
19289 r"""
19290 __delitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i)
19291 __delitem__(VIA_DIMENSION_Vector self, SWIGPY_SLICEOBJECT * slice)
19292 """
19293 return _pcbnew.VIA_DIMENSION_Vector___delitem__(self, *args)
19294
19295 def __getitem__(self, *args):
19296 r"""
19297 __getitem__(VIA_DIMENSION_Vector self, SWIGPY_SLICEOBJECT * slice) -> VIA_DIMENSION_Vector
19298 __getitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i) -> VIA_DIMENSION
19299 """
19300 return _pcbnew.VIA_DIMENSION_Vector___getitem__(self, *args)
19301
19302 def __setitem__(self, *args):
19303 r"""
19304 __setitem__(VIA_DIMENSION_Vector self, SWIGPY_SLICEOBJECT * slice, VIA_DIMENSION_Vector v)
19305 __setitem__(VIA_DIMENSION_Vector self, SWIGPY_SLICEOBJECT * slice)
19306 __setitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, VIA_DIMENSION x)
19307 """
19308 return _pcbnew.VIA_DIMENSION_Vector___setitem__(self, *args)
19309
19310 def pop(self):
19311 r"""pop(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
19312 return _pcbnew.VIA_DIMENSION_Vector_pop(self)
19313
19314 def append(self, x):
19315 r"""append(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
19316 return _pcbnew.VIA_DIMENSION_Vector_append(self, x)
19317
19318 def empty(self):
19319 r"""empty(VIA_DIMENSION_Vector self) -> bool"""
19320 return _pcbnew.VIA_DIMENSION_Vector_empty(self)
19321
19322 def size(self):
19323 r"""size(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
19324 return _pcbnew.VIA_DIMENSION_Vector_size(self)
19325
19326 def swap(self, v):
19327 r"""swap(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector v)"""
19328 return _pcbnew.VIA_DIMENSION_Vector_swap(self, v)
19329
19330 def begin(self):
19331 r"""begin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
19332 return _pcbnew.VIA_DIMENSION_Vector_begin(self)
19333
19334 def end(self):
19335 r"""end(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
19336 return _pcbnew.VIA_DIMENSION_Vector_end(self)
19337
19338 def rbegin(self):
19339 r"""rbegin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
19340 return _pcbnew.VIA_DIMENSION_Vector_rbegin(self)
19341
19342 def rend(self):
19343 r"""rend(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
19344 return _pcbnew.VIA_DIMENSION_Vector_rend(self)
19345
19346 def clear(self):
19347 r"""clear(VIA_DIMENSION_Vector self)"""
19348 return _pcbnew.VIA_DIMENSION_Vector_clear(self)
19349
19350 def get_allocator(self):
19351 r"""get_allocator(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::allocator_type"""
19352 return _pcbnew.VIA_DIMENSION_Vector_get_allocator(self)
19353
19354 def pop_back(self):
19355 r"""pop_back(VIA_DIMENSION_Vector self)"""
19356 return _pcbnew.VIA_DIMENSION_Vector_pop_back(self)
19357
19358 def erase(self, *args):
19359 r"""
19360 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos) -> std::vector< VIA_DIMENSION >::iterator
19361 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator first, std::vector< VIA_DIMENSION >::iterator last) -> std::vector< VIA_DIMENSION >::iterator
19362 """
19363 return _pcbnew.VIA_DIMENSION_Vector_erase(self, *args)
19364
19365 def __init__(self, *args):
19366 r"""
19367 __init__(VIA_DIMENSION_Vector self) -> VIA_DIMENSION_Vector
19368 __init__(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector other) -> VIA_DIMENSION_Vector
19369 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size) -> VIA_DIMENSION_Vector
19370 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size, VIA_DIMENSION value) -> VIA_DIMENSION_Vector
19371 """
19372 _pcbnew.VIA_DIMENSION_Vector_swiginit(self, _pcbnew.new_VIA_DIMENSION_Vector(*args))
19373
19374 def push_back(self, x):
19375 r"""push_back(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
19376 return _pcbnew.VIA_DIMENSION_Vector_push_back(self, x)
19377
19378 def front(self):
19379 r"""front(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
19380 return _pcbnew.VIA_DIMENSION_Vector_front(self)
19381
19382 def back(self):
19383 r"""back(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
19384 return _pcbnew.VIA_DIMENSION_Vector_back(self)
19385
19386 def assign(self, n, x):
19387 r"""assign(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)"""
19388 return _pcbnew.VIA_DIMENSION_Vector_assign(self, n, x)
19389
19390 def resize(self, *args):
19391 r"""
19392 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size)
19393 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size, VIA_DIMENSION x)
19394 """
19395 return _pcbnew.VIA_DIMENSION_Vector_resize(self, *args)
19396
19397 def insert(self, *args):
19398 r"""
19399 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, VIA_DIMENSION x) -> std::vector< VIA_DIMENSION >::iterator
19400 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)
19401 """
19402 return _pcbnew.VIA_DIMENSION_Vector_insert(self, *args)
19403
19404 def reserve(self, n):
19405 r"""reserve(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n)"""
19406 return _pcbnew.VIA_DIMENSION_Vector_reserve(self, n)
19407
19408 def capacity(self):
19409 r"""capacity(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
19410 return _pcbnew.VIA_DIMENSION_Vector_capacity(self)
19411 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION_Vector
19412
19413# Register VIA_DIMENSION_Vector in _pcbnew:
19414_pcbnew.VIA_DIMENSION_Vector_swigregister(VIA_DIMENSION_Vector)
19415DEFAULT_CHAINING_EPSILON_MM = _pcbnew.DEFAULT_CHAINING_EPSILON_MM
19416
19418 r"""Proxy of C++ PTR_PTR_CACHE_KEY class."""
19419
19420 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19421 __repr__ = _swig_repr
19422 A = property(_pcbnew.PTR_PTR_CACHE_KEY_A_get, _pcbnew.PTR_PTR_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
19423 B = property(_pcbnew.PTR_PTR_CACHE_KEY_B_get, _pcbnew.PTR_PTR_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
19424
19425 def __eq__(self, other):
19426 r"""__eq__(PTR_PTR_CACHE_KEY self, PTR_PTR_CACHE_KEY other) -> bool"""
19427 return _pcbnew.PTR_PTR_CACHE_KEY___eq__(self, other)
19428
19429 def __init__(self):
19430 r"""__init__(PTR_PTR_CACHE_KEY self) -> PTR_PTR_CACHE_KEY"""
19431 _pcbnew.PTR_PTR_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_CACHE_KEY())
19432 __swig_destroy__ = _pcbnew.delete_PTR_PTR_CACHE_KEY
19433
19434# Register PTR_PTR_CACHE_KEY in _pcbnew:
19435_pcbnew.PTR_PTR_CACHE_KEY_swigregister(PTR_PTR_CACHE_KEY)
19437 r"""Proxy of C++ PTR_LAYER_CACHE_KEY class."""
19438
19439 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19440 __repr__ = _swig_repr
19441 A = property(_pcbnew.PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
19442 Layer = property(_pcbnew.PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
19443
19444 def __eq__(self, other):
19445 r"""__eq__(PTR_LAYER_CACHE_KEY self, PTR_LAYER_CACHE_KEY other) -> bool"""
19446 return _pcbnew.PTR_LAYER_CACHE_KEY___eq__(self, other)
19447
19448 def __init__(self):
19449 r"""__init__(PTR_LAYER_CACHE_KEY self) -> PTR_LAYER_CACHE_KEY"""
19450 _pcbnew.PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_LAYER_CACHE_KEY())
19451 __swig_destroy__ = _pcbnew.delete_PTR_LAYER_CACHE_KEY
19452
19453# Register PTR_LAYER_CACHE_KEY in _pcbnew:
19454_pcbnew.PTR_LAYER_CACHE_KEY_swigregister(PTR_LAYER_CACHE_KEY)
19456 r"""Proxy of C++ PTR_PTR_LAYER_CACHE_KEY class."""
19457
19458 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19459 __repr__ = _swig_repr
19460 A = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
19461 B = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
19462 Layer = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
19463
19464 def __eq__(self, other):
19465 r"""__eq__(PTR_PTR_LAYER_CACHE_KEY self, PTR_PTR_LAYER_CACHE_KEY other) -> bool"""
19466 return _pcbnew.PTR_PTR_LAYER_CACHE_KEY___eq__(self, other)
19467
19468 def __init__(self):
19469 r"""__init__(PTR_PTR_LAYER_CACHE_KEY self) -> PTR_PTR_LAYER_CACHE_KEY"""
19470 _pcbnew.PTR_PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_LAYER_CACHE_KEY())
19471 __swig_destroy__ = _pcbnew.delete_PTR_PTR_LAYER_CACHE_KEY
19472
19473# Register PTR_PTR_LAYER_CACHE_KEY in _pcbnew:
19474_pcbnew.PTR_PTR_LAYER_CACHE_KEY_swigregister(PTR_PTR_LAYER_CACHE_KEY)
19475LT_UNDEFINED = _pcbnew.LT_UNDEFINED
19476
19477LT_SIGNAL = _pcbnew.LT_SIGNAL
19478
19479LT_POWER = _pcbnew.LT_POWER
19480
19481LT_MIXED = _pcbnew.LT_MIXED
19482
19483LT_JUMPER = _pcbnew.LT_JUMPER
19484
19485LT_AUX = _pcbnew.LT_AUX
19486
19487LT_FRONT = _pcbnew.LT_FRONT
19488
19489LT_BACK = _pcbnew.LT_BACK
19490
19492 r"""Proxy of C++ LAYER class."""
19493
19494 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19495 __repr__ = _swig_repr
19496
19497 def __init__(self):
19498 r"""__init__(LAYER self) -> LAYER"""
19499 _pcbnew.LAYER_swiginit(self, _pcbnew.new_LAYER())
19500
19501 def clear(self):
19502 r"""clear(LAYER self)"""
19503 return _pcbnew.LAYER_clear(self)
19504 m_name = property(_pcbnew.LAYER_m_name_get, _pcbnew.LAYER_m_name_set, doc=r"""m_name : wxString""")
19505 m_userName = property(_pcbnew.LAYER_m_userName_get, _pcbnew.LAYER_m_userName_set, doc=r"""m_userName : wxString""")
19506 m_type = property(_pcbnew.LAYER_m_type_get, _pcbnew.LAYER_m_type_set, doc=r"""m_type : LAYER_T""")
19507 m_visible = property(_pcbnew.LAYER_m_visible_get, _pcbnew.LAYER_m_visible_set, doc=r"""m_visible : bool""")
19508 m_number = property(_pcbnew.LAYER_m_number_get, _pcbnew.LAYER_m_number_set, doc=r"""m_number : int""")
19509 m_opposite = property(_pcbnew.LAYER_m_opposite_get, _pcbnew.LAYER_m_opposite_set, doc=r"""m_opposite : int""")
19510
19511 @staticmethod
19512 def ShowType(aType):
19513 r"""ShowType(LAYER_T aType) -> char const *"""
19514 return _pcbnew.LAYER_ShowType(aType)
19515
19516 @staticmethod
19517 def ParseType(aType):
19518 r"""ParseType(char const * aType) -> LAYER_T"""
19519 return _pcbnew.LAYER_ParseType(aType)
19520 __swig_destroy__ = _pcbnew.delete_LAYER
19521
19522# Register LAYER in _pcbnew:
19523_pcbnew.LAYER_swigregister(LAYER)
19525 r"""Proxy of C++ HIGH_LIGHT_INFO class."""
19526
19527 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19528
19529 def __init__(self, *args, **kwargs):
19530 raise AttributeError("No constructor defined")
19531 __repr__ = _swig_repr
19532 __swig_destroy__ = _pcbnew.delete_HIGH_LIGHT_INFO
19533
19534# Register HIGH_LIGHT_INFO in _pcbnew:
19535_pcbnew.HIGH_LIGHT_INFO_swigregister(HIGH_LIGHT_INFO)
19537 r"""Proxy of C++ BOARD_LISTENER class."""
19538
19539 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19540 __repr__ = _swig_repr
19541 __swig_destroy__ = _pcbnew.delete_BOARD_LISTENER
19542
19543 def OnBoardItemAdded(self, aBoard, aBoardItem):
19544 r"""OnBoardItemAdded(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
19545 return _pcbnew.BOARD_LISTENER_OnBoardItemAdded(self, aBoard, aBoardItem)
19546
19547 def OnBoardItemsAdded(self, aBoard, aBoardItem):
19548 r"""OnBoardItemsAdded(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
19549 return _pcbnew.BOARD_LISTENER_OnBoardItemsAdded(self, aBoard, aBoardItem)
19550
19551 def OnBoardItemRemoved(self, aBoard, aBoardItem):
19552 r"""OnBoardItemRemoved(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
19553 return _pcbnew.BOARD_LISTENER_OnBoardItemRemoved(self, aBoard, aBoardItem)
19554
19555 def OnBoardItemsRemoved(self, aBoard, aBoardItem):
19556 r"""OnBoardItemsRemoved(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
19557 return _pcbnew.BOARD_LISTENER_OnBoardItemsRemoved(self, aBoard, aBoardItem)
19558
19559 def OnBoardNetSettingsChanged(self, aBoard):
19560 r"""OnBoardNetSettingsChanged(BOARD_LISTENER self, BOARD aBoard)"""
19561 return _pcbnew.BOARD_LISTENER_OnBoardNetSettingsChanged(self, aBoard)
19562
19563 def OnBoardItemChanged(self, aBoard, aBoardItem):
19564 r"""OnBoardItemChanged(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
19565 return _pcbnew.BOARD_LISTENER_OnBoardItemChanged(self, aBoard, aBoardItem)
19566
19567 def OnBoardItemsChanged(self, aBoard, aBoardItem):
19568 r"""OnBoardItemsChanged(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
19569 return _pcbnew.BOARD_LISTENER_OnBoardItemsChanged(self, aBoard, aBoardItem)
19570
19572 r"""OnBoardHighlightNetChanged(BOARD_LISTENER self, BOARD aBoard)"""
19573 return _pcbnew.BOARD_LISTENER_OnBoardHighlightNetChanged(self, aBoard)
19574
19575 def OnBoardRatsnestChanged(self, aBoard):
19576 r"""OnBoardRatsnestChanged(BOARD_LISTENER self, BOARD aBoard)"""
19577 return _pcbnew.BOARD_LISTENER_OnBoardRatsnestChanged(self, aBoard)
19578
19579 def OnBoardCompositeUpdate(self, aBoard, aAddedItems, aRemovedItems, aChangedItems):
19580 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 * > > & aChangedItems)"""
19581 return _pcbnew.BOARD_LISTENER_OnBoardCompositeUpdate(self, aBoard, aAddedItems, aRemovedItems, aChangedItems)
19582
19583 def __init__(self):
19584 r"""__init__(BOARD_LISTENER self) -> BOARD_LISTENER"""
19585 _pcbnew.BOARD_LISTENER_swiginit(self, _pcbnew.new_BOARD_LISTENER())
19586
19587# Register BOARD_LISTENER in _pcbnew:
19588_pcbnew.BOARD_LISTENER_swigregister(BOARD_LISTENER)
19589BOARD_USE_NORMAL = _pcbnew.BOARD_USE_NORMAL
19590
19591BOARD_USE_FPHOLDER = _pcbnew.BOARD_USE_FPHOLDER
19592
19594 r"""Proxy of C++ BOARD class."""
19595
19596 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19597
19598 def __init__(self, *args, **kwargs):
19599 raise AttributeError("No constructor defined")
19600 __repr__ = _swig_repr
19601
19602 @staticmethod
19603 def ClassOf(aItem):
19604 r"""ClassOf(EDA_ITEM aItem) -> bool"""
19605 return _pcbnew.BOARD_ClassOf(aItem)
19606
19607 def SetBoardUse(self, aUse):
19608 r"""SetBoardUse(BOARD self, BOARD_USE aUse)"""
19609 return _pcbnew.BOARD_SetBoardUse(self, aUse)
19610
19611 def GetBoardUse(self):
19612 r"""GetBoardUse(BOARD self) -> BOARD_USE"""
19613 return _pcbnew.BOARD_GetBoardUse(self)
19614
19616 r"""IncrementTimeStamp(BOARD self)"""
19617 return _pcbnew.BOARD_IncrementTimeStamp(self)
19618
19619 def GetTimeStamp(self):
19620 r"""GetTimeStamp(BOARD self) -> int"""
19621 return _pcbnew.BOARD_GetTimeStamp(self)
19622
19624 r"""IsFootprintHolder(BOARD self) -> bool"""
19625 return _pcbnew.BOARD_IsFootprintHolder(self)
19626
19627 def SetFileName(self, aFileName):
19628 r"""SetFileName(BOARD self, wxString aFileName)"""
19629 return _pcbnew.BOARD_SetFileName(self, aFileName)
19630
19631 def GetFileName(self):
19632 r"""GetFileName(BOARD self) -> wxString"""
19633 return _pcbnew.BOARD_GetFileName(self)
19634
19635 def Footprints(self):
19636 r"""Footprints(BOARD self) -> FOOTPRINTS"""
19637 return _pcbnew.BOARD_Footprints(self)
19638
19639 def Zones(self):
19640 r"""Zones(BOARD self) -> ZONES"""
19641 return _pcbnew.BOARD_Zones(self)
19642
19643 def Generators(self):
19644 r"""Generators(BOARD self) -> GENERATORS"""
19645 return _pcbnew.BOARD_Generators(self)
19646
19647 def Markers(self):
19648 r"""Markers(BOARD self) -> MARKERS"""
19649 return _pcbnew.BOARD_Markers(self)
19650
19651 def Drawings(self, *args):
19652 r"""
19653 Drawings(BOARD self) -> DRAWINGS
19654 Drawings(BOARD self) -> DRAWINGS
19655 """
19656 return _pcbnew.BOARD_Drawings(self, *args)
19657
19658 def Tracks(self, *args):
19659 r"""
19660 Tracks(BOARD self) -> TRACKS
19661 Tracks(BOARD self) -> TRACKS
19662 """
19663 return _pcbnew.BOARD_Tracks(self, *args)
19664
19665 def GetItemSet(self):
19666 r"""GetItemSet(BOARD self) -> BOARD_ITEM_SET const"""
19667 return _pcbnew.BOARD_GetItemSet(self)
19668
19669 def Groups(self):
19670 r"""Groups(BOARD self) -> GROUPS"""
19671 return _pcbnew.BOARD_Groups(self)
19672
19674 r"""AllConnectedItems(BOARD self) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
19675 return _pcbnew.BOARD_AllConnectedItems(self)
19676
19677 def GetProperties(self):
19678 r"""GetProperties(BOARD self) -> MAP_STRING_STRING"""
19679 return _pcbnew.BOARD_GetProperties(self)
19680
19681 def SetProperties(self, aProps):
19682 r"""SetProperties(BOARD self, MAP_STRING_STRING aProps)"""
19683 return _pcbnew.BOARD_SetProperties(self, aProps)
19684
19685 def GetContextualTextVars(self, aVars):
19686 r"""GetContextualTextVars(BOARD self, wxArrayString * aVars)"""
19687 return _pcbnew.BOARD_GetContextualTextVars(self, aVars)
19688
19689 def ResolveTextVar(self, token, aDepth):
19690 r"""ResolveTextVar(BOARD self, wxString token, int aDepth) -> bool"""
19691 return _pcbnew.BOARD_ResolveTextVar(self, token, aDepth)
19692 m_LegacyVisibleLayers = property(_pcbnew.BOARD_m_LegacyVisibleLayers_get, _pcbnew.BOARD_m_LegacyVisibleLayers_set, doc=r"""m_LegacyVisibleLayers : LSET""")
19693 m_LegacyVisibleItems = property(_pcbnew.BOARD_m_LegacyVisibleItems_get, _pcbnew.BOARD_m_LegacyVisibleItems_set, doc=r"""m_LegacyVisibleItems : GAL_SET""")
19694 m_LegacyDesignSettingsLoaded = property(_pcbnew.BOARD_m_LegacyDesignSettingsLoaded_get, _pcbnew.BOARD_m_LegacyDesignSettingsLoaded_set, doc=r"""m_LegacyDesignSettingsLoaded : bool""")
19695 m_LegacyCopperEdgeClearanceLoaded = property(_pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_get, _pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_set, doc=r"""m_LegacyCopperEdgeClearanceLoaded : bool""")
19696 m_LegacyNetclassesLoaded = property(_pcbnew.BOARD_m_LegacyNetclassesLoaded_get, _pcbnew.BOARD_m_LegacyNetclassesLoaded_set, doc=r"""m_LegacyNetclassesLoaded : bool""")
19697 __swig_destroy__ = _pcbnew.delete_BOARD
19698
19699 def IsEmpty(self):
19700 r"""IsEmpty(BOARD self) -> bool"""
19701 return _pcbnew.BOARD_IsEmpty(self)
19702
19703 def RunOnDescendants(self, aFunction, aDepth=0):
19704 r"""RunOnDescendants(BOARD self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
19705 return _pcbnew.BOARD_RunOnDescendants(self, aFunction, aDepth)
19706
19707 def SetFileFormatVersionAtLoad(self, aVersion):
19708 r"""SetFileFormatVersionAtLoad(BOARD self, int aVersion)"""
19709 return _pcbnew.BOARD_SetFileFormatVersionAtLoad(self, aVersion)
19710
19712 r"""GetFileFormatVersionAtLoad(BOARD self) -> int"""
19713 return _pcbnew.BOARD_GetFileFormatVersionAtLoad(self)
19714
19715 def SetGenerator(self, aGenerator):
19716 r"""SetGenerator(BOARD self, wxString aGenerator)"""
19717 return _pcbnew.BOARD_SetGenerator(self, aGenerator)
19718
19719 def GetGenerator(self):
19720 r"""GetGenerator(BOARD self) -> wxString"""
19721 return _pcbnew.BOARD_GetGenerator(self)
19722
19723 def AddNative(self, *args):
19724 r"""AddNative(BOARD self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
19725 return _pcbnew.BOARD_AddNative(self, *args)
19726
19727 def RemoveNative(self, *args):
19728 r"""RemoveNative(BOARD self, BOARD_ITEM aBoardItem, REMOVE_MODE aMode=NORMAL)"""
19729 return _pcbnew.BOARD_RemoveNative(self, *args)
19730
19731 def RemoveAll(self, *args):
19732 r"""
19733 RemoveAll(BOARD self, std::initializer_list< KICAD_T > aTypes={ PCB_NETINFO_T, PCB_MARKER_T,
19734 PCB_GROUP_T, PCB_ZONE_T,
19735 PCB_GENERATOR_T, PCB_FOOTPRINT_T,
19736 PCB_TRACE_T, PCB_SHAPE_T })
19737 """
19738 return _pcbnew.BOARD_RemoveAll(self, *args)
19739
19740 def BulkRemoveStaleTeardrops(self, aCommit):
19741 r"""BulkRemoveStaleTeardrops(BOARD self, BOARD_COMMIT & aCommit)"""
19742 return _pcbnew.BOARD_BulkRemoveStaleTeardrops(self, aCommit)
19743
19744 def FinalizeBulkAdd(self, aNewItems):
19745 r"""FinalizeBulkAdd(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aNewItems)"""
19746 return _pcbnew.BOARD_FinalizeBulkAdd(self, aNewItems)
19747
19748 def FinalizeBulkRemove(self, aRemovedItems):
19749 r"""FinalizeBulkRemove(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aRemovedItems)"""
19750 return _pcbnew.BOARD_FinalizeBulkRemove(self, aRemovedItems)
19751
19753 r"""FixupEmbeddedData(BOARD self)"""
19754 return _pcbnew.BOARD_FixupEmbeddedData(self)
19755
19756 def CacheTriangulation(self, *args):
19757 r"""CacheTriangulation(BOARD self, PROGRESS_REPORTER * aReporter=None, ZONES aZones={})"""
19758 return _pcbnew.BOARD_CacheTriangulation(self, *args)
19759
19761 r"""GetFirstFootprint(BOARD self) -> FOOTPRINT"""
19762 return _pcbnew.BOARD_GetFirstFootprint(self)
19763
19765 r"""DeleteAllFootprints(BOARD self)"""
19766 return _pcbnew.BOARD_DeleteAllFootprints(self)
19767
19769 r"""DetachAllFootprints(BOARD self)"""
19770 return _pcbnew.BOARD_DetachAllFootprints(self)
19771
19772 def GetItem(self, aID):
19773 r"""GetItem(BOARD self, KIID aID) -> BOARD_ITEM"""
19774 return _pcbnew.BOARD_GetItem(self, aID)
19775
19776 def FillItemMap(self, aMap):
19777 r"""FillItemMap(BOARD self, std::map< KIID,EDA_ITEM *,std::less< KIID >,std::allocator< std::pair< KIID const,EDA_ITEM * > > > & aMap)"""
19778 return _pcbnew.BOARD_FillItemMap(self, aMap)
19779
19781 r"""ConvertCrossReferencesToKIIDs(BOARD self, wxString aSource) -> wxString"""
19782 return _pcbnew.BOARD_ConvertCrossReferencesToKIIDs(self, aSource)
19783
19785 r"""ConvertKIIDsToCrossReferences(BOARD self, wxString aSource) -> wxString"""
19786 return _pcbnew.BOARD_ConvertKIIDsToCrossReferences(self, aSource)
19787
19789 r"""GetConnectivity(BOARD self) -> std::shared_ptr< CONNECTIVITY_DATA >"""
19790 return _pcbnew.BOARD_GetConnectivity(self)
19791
19792 def BuildConnectivity(self, aReporter=None):
19793 r"""BuildConnectivity(BOARD self, PROGRESS_REPORTER * aReporter=None) -> bool"""
19794 return _pcbnew.BOARD_BuildConnectivity(self, aReporter)
19795
19796 def DeleteMARKERs(self, *args):
19797 r"""
19798 DeleteMARKERs(BOARD self)
19799 DeleteMARKERs(BOARD self, bool aWarningsAndErrors, bool aExclusions)
19800 """
19801 return _pcbnew.BOARD_DeleteMARKERs(self, *args)
19802
19803 def GetProject(self):
19804 r"""GetProject(BOARD self) -> PROJECT *"""
19805 return _pcbnew.BOARD_GetProject(self)
19806
19807 def SetProject(self, aProject, aReferenceOnly=False):
19808 r"""SetProject(BOARD self, PROJECT * aProject, bool aReferenceOnly=False)"""
19809 return _pcbnew.BOARD_SetProject(self, aProject, aReferenceOnly)
19810
19811 def ClearProject(self):
19812 r"""ClearProject(BOARD self)"""
19813 return _pcbnew.BOARD_ClearProject(self)
19814
19815 def ResolveDRCExclusions(self, aCreateMarkers):
19816 r"""ResolveDRCExclusions(BOARD self, bool aCreateMarkers) -> MARKERS"""
19817 return _pcbnew.BOARD_ResolveDRCExclusions(self, aCreateMarkers)
19818
19820 r"""RecordDRCExclusions(BOARD self)"""
19821 return _pcbnew.BOARD_RecordDRCExclusions(self)
19822
19824 r"""UpdateRatsnestExclusions(BOARD self)"""
19825 return _pcbnew.BOARD_UpdateRatsnestExclusions(self)
19826
19828 r"""ResetNetHighLight(BOARD self)"""
19829 return _pcbnew.BOARD_ResetNetHighLight(self)
19830
19832 r"""GetHighLightNetCodes(BOARD self) -> std::set< int,std::less< int >,std::allocator< int > > const &"""
19833 return _pcbnew.BOARD_GetHighLightNetCodes(self)
19834
19835 def SetHighLightNet(self, aNetCode, aMulti=False):
19836 r"""SetHighLightNet(BOARD self, int aNetCode, bool aMulti=False)"""
19837 return _pcbnew.BOARD_SetHighLightNet(self, aNetCode, aMulti)
19838
19840 r"""IsHighLightNetON(BOARD self) -> bool"""
19841 return _pcbnew.BOARD_IsHighLightNetON(self)
19842
19843 def HighLightON(self, aValue=True):
19844 r"""HighLightON(BOARD self, bool aValue=True)"""
19845 return _pcbnew.BOARD_HighLightON(self, aValue)
19846
19847 def HighLightOFF(self):
19848 r"""HighLightOFF(BOARD self)"""
19849 return _pcbnew.BOARD_HighLightOFF(self)
19850
19852 r"""GetCopperLayerCount(BOARD self) -> int"""
19853 return _pcbnew.BOARD_GetCopperLayerCount(self)
19854
19855 def SetCopperLayerCount(self, aCount):
19856 r"""SetCopperLayerCount(BOARD self, int aCount)"""
19857 return _pcbnew.BOARD_SetCopperLayerCount(self, aCount)
19858
19860 r"""GetUserDefinedLayerCount(BOARD self) -> int"""
19861 return _pcbnew.BOARD_GetUserDefinedLayerCount(self)
19862
19863 def SetUserDefinedLayerCount(self, aCount):
19864 r"""SetUserDefinedLayerCount(BOARD self, int aCount)"""
19865 return _pcbnew.BOARD_SetUserDefinedLayerCount(self, aCount)
19866
19868 r"""GetCopperLayerStackMaxId(BOARD self) -> PCB_LAYER_ID"""
19869 return _pcbnew.BOARD_GetCopperLayerStackMaxId(self)
19870
19871 def FlipLayer(self, aLayer):
19872 r"""FlipLayer(BOARD self, PCB_LAYER_ID aLayer) -> PCB_LAYER_ID"""
19873 return _pcbnew.BOARD_FlipLayer(self, aLayer)
19874
19875 def LayerDepth(self, aStartLayer, aEndLayer):
19876 r"""LayerDepth(BOARD self, PCB_LAYER_ID aStartLayer, PCB_LAYER_ID aEndLayer) -> int"""
19877 return _pcbnew.BOARD_LayerDepth(self, aStartLayer, aEndLayer)
19878
19880 r"""GetEnabledLayers(BOARD self) -> LSET"""
19881 return _pcbnew.BOARD_GetEnabledLayers(self)
19882
19883 def SetEnabledLayers(self, aLayerMask):
19884 r"""SetEnabledLayers(BOARD self, LSET aLayerMask)"""
19885 return _pcbnew.BOARD_SetEnabledLayers(self, aLayerMask)
19886
19887 def IsLayerEnabled(self, aLayer):
19888 r"""IsLayerEnabled(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
19889 return _pcbnew.BOARD_IsLayerEnabled(self, aLayer)
19890
19891 def IsLayerVisible(self, aLayer):
19892 r"""IsLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
19893 return _pcbnew.BOARD_IsLayerVisible(self, aLayer)
19894
19896 r"""GetVisibleLayers(BOARD self) -> LSET"""
19897 return _pcbnew.BOARD_GetVisibleLayers(self)
19898
19899 def SetVisibleLayers(self, aLayerMask):
19900 r"""SetVisibleLayers(BOARD self, LSET aLayerMask)"""
19901 return _pcbnew.BOARD_SetVisibleLayers(self, aLayerMask)
19902
19904 r"""GetVisibleElements(BOARD self) -> GAL_SET"""
19905 return _pcbnew.BOARD_GetVisibleElements(self)
19906
19907 def SetVisibleElements(self, aMask):
19908 r"""SetVisibleElements(BOARD self, GAL_SET aMask)"""
19909 return _pcbnew.BOARD_SetVisibleElements(self, aMask)
19910
19912 r"""SetVisibleAlls(BOARD self)"""
19913 return _pcbnew.BOARD_SetVisibleAlls(self)
19914
19915 def IsElementVisible(self, aLayer):
19916 r"""IsElementVisible(BOARD self, GAL_LAYER_ID aLayer) -> bool"""
19917 return _pcbnew.BOARD_IsElementVisible(self, aLayer)
19918
19919 def SetElementVisibility(self, aLayer, aNewState):
19920 r"""SetElementVisibility(BOARD self, GAL_LAYER_ID aLayer, bool aNewState)"""
19921 return _pcbnew.BOARD_SetElementVisibility(self, aLayer, aNewState)
19922
19923 def IsFootprintLayerVisible(self, aLayer):
19924 r"""IsFootprintLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
19925 return _pcbnew.BOARD_IsFootprintLayerVisible(self, aLayer)
19926
19928 r"""GetDesignSettings(BOARD self) -> BOARD_DESIGN_SETTINGS"""
19929 return _pcbnew.BOARD_GetDesignSettings(self)
19930
19932 r"""GetStackupOrDefault(BOARD self) -> BOARD_STACKUP"""
19933 return _pcbnew.BOARD_GetStackupOrDefault(self)
19934
19936 r"""GetPageSettings(BOARD self) -> PAGE_INFO const &"""
19937 return _pcbnew.BOARD_GetPageSettings(self)
19938
19939 def SetPageSettings(self, aPageSettings):
19940 r"""SetPageSettings(BOARD self, PAGE_INFO const & aPageSettings)"""
19941 return _pcbnew.BOARD_SetPageSettings(self, aPageSettings)
19942
19944 r"""GetPlotOptions(BOARD self) -> PCB_PLOT_PARAMS"""
19945 return _pcbnew.BOARD_GetPlotOptions(self)
19946
19947 def SetPlotOptions(self, aOptions):
19948 r"""SetPlotOptions(BOARD self, PCB_PLOT_PARAMS aOptions)"""
19949 return _pcbnew.BOARD_SetPlotOptions(self, aOptions)
19950
19951 def GetTitleBlock(self, *args):
19952 r"""
19953 GetTitleBlock(BOARD self) -> TITLE_BLOCK
19954 GetTitleBlock(BOARD self) -> TITLE_BLOCK
19955 """
19956 return _pcbnew.BOARD_GetTitleBlock(self, *args)
19957
19958 def SetTitleBlock(self, aTitleBlock):
19959 r"""SetTitleBlock(BOARD self, TITLE_BLOCK aTitleBlock)"""
19960 return _pcbnew.BOARD_SetTitleBlock(self, aTitleBlock)
19961
19962 def GetUserUnits(self):
19963 r"""GetUserUnits(BOARD self) -> EDA_UNITS"""
19964 return _pcbnew.BOARD_GetUserUnits(self)
19965
19966 def SetUserUnits(self, aUnits):
19967 r"""SetUserUnits(BOARD self, EDA_UNITS aUnits)"""
19968 return _pcbnew.BOARD_SetUserUnits(self, aUnits)
19969
19970 def UpdateUserUnits(self, aItem, aView):
19971 r"""UpdateUserUnits(BOARD self, BOARD_ITEM aItem, KIGFX::VIEW * aView)"""
19972 return _pcbnew.BOARD_UpdateUserUnits(self, aItem, aView)
19973
19974 def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False, aIncludeNPTHAsOutlines=False):
19975 r"""GetBoardPolygonOutlines(BOARD self, SHAPE_POLY_SET aOutlines, OUTLINE_ERROR_HANDLER * aErrorHandler=None, bool aAllowUseArcsInPolygons=False, bool aIncludeNPTHAsOutlines=False) -> bool"""
19976 return _pcbnew.BOARD_GetBoardPolygonOutlines(self, aOutlines, aErrorHandler, aAllowUseArcsInPolygons, aIncludeNPTHAsOutlines)
19977
19979 r"""GetOutlinesChainingEpsilon(BOARD self) -> int"""
19980 return _pcbnew.BOARD_GetOutlinesChainingEpsilon(self)
19981
19983 r"""SetOutlinesChainingEpsilon(BOARD self, int aValue)"""
19984 return _pcbnew.BOARD_SetOutlinesChainingEpsilon(self, aValue)
19985
19986 def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines):
19987 r"""ConvertBrdLayerToPolygonalContours(BOARD self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aOutlines)"""
19988 return _pcbnew.BOARD_ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
19989
19990 def GetLayerID(self, aLayerName):
19991 r"""GetLayerID(BOARD self, wxString aLayerName) -> PCB_LAYER_ID"""
19992 return _pcbnew.BOARD_GetLayerID(self, aLayerName)
19993
19994 def GetLayerName(self, aLayer):
19995 r"""GetLayerName(BOARD self, PCB_LAYER_ID aLayer) -> wxString"""
19996 return _pcbnew.BOARD_GetLayerName(self, aLayer)
19997
19998 def SetLayerName(self, aLayer, aLayerName):
19999 r"""SetLayerName(BOARD self, PCB_LAYER_ID aLayer, wxString aLayerName) -> bool"""
20000 return _pcbnew.BOARD_SetLayerName(self, aLayer, aLayerName)
20001
20002 @staticmethod
20004 r"""GetStandardLayerName(PCB_LAYER_ID aLayerId) -> wxString"""
20005 return _pcbnew.BOARD_GetStandardLayerName(aLayerId)
20006
20007 def SetLayerDescr(self, aIndex, aLayer):
20008 r"""SetLayerDescr(BOARD self, PCB_LAYER_ID aIndex, LAYER aLayer) -> bool"""
20009 return _pcbnew.BOARD_SetLayerDescr(self, aIndex, aLayer)
20010
20011 def GetLayerType(self, aLayer):
20012 r"""GetLayerType(BOARD self, PCB_LAYER_ID aLayer) -> LAYER_T"""
20013 return _pcbnew.BOARD_GetLayerType(self, aLayer)
20014
20015 def SetLayerType(self, aLayer, aLayerType):
20016 r"""SetLayerType(BOARD self, PCB_LAYER_ID aLayer, LAYER_T aLayerType) -> bool"""
20017 return _pcbnew.BOARD_SetLayerType(self, aLayer, aLayerType)
20018
20019 def GetNodesCount(self, aNet=-1):
20020 r"""GetNodesCount(BOARD self, int aNet=-1) -> unsigned int"""
20021 return _pcbnew.BOARD_GetNodesCount(self, aNet)
20022
20023 def GetPads(self):
20024 r"""GetPads(BOARD self) -> PADS_VEC"""
20025 return _pcbnew.BOARD_GetPads(self)
20026
20028 r"""BuildListOfNets(BOARD self)"""
20029 return _pcbnew.BOARD_BuildListOfNets(self)
20030
20031 def FindNet(self, *args):
20032 r"""
20033 FindNet(BOARD self, int aNetcode) -> NETINFO_ITEM
20034 FindNet(BOARD self, wxString aNetname) -> NETINFO_ITEM
20035 """
20036 return _pcbnew.BOARD_FindNet(self, *args)
20037
20038 def MatchDpSuffix(self, aNetName, aComplementNet):
20039 r"""MatchDpSuffix(BOARD self, wxString aNetName, wxString aComplementNet) -> int"""
20040 return _pcbnew.BOARD_MatchDpSuffix(self, aNetName, aComplementNet)
20041
20042 def DpCoupledNet(self, aNet):
20043 r"""DpCoupledNet(BOARD self, NETINFO_ITEM aNet) -> NETINFO_ITEM"""
20044 return _pcbnew.BOARD_DpCoupledNet(self, aNet)
20045
20046 def GetNetInfo(self):
20047 r"""GetNetInfo(BOARD self) -> NETINFO_LIST"""
20048 return _pcbnew.BOARD_GetNetInfo(self)
20049
20050 def RemoveUnusedNets(self, aCommit):
20051 r"""RemoveUnusedNets(BOARD self, BOARD_COMMIT * aCommit)"""
20052 return _pcbnew.BOARD_RemoveUnusedNets(self, aCommit)
20053
20054 def GetNetCount(self):
20055 r"""GetNetCount(BOARD self) -> unsigned int"""
20056 return _pcbnew.BOARD_GetNetCount(self)
20057
20058 def ComputeBoundingBox(self, aBoardEdgesOnly=False):
20059 r"""ComputeBoundingBox(BOARD self, bool aBoardEdgesOnly=False) -> BOX2I"""
20060 return _pcbnew.BOARD_ComputeBoundingBox(self, aBoardEdgesOnly)
20061
20063 r"""GetBoardEdgesBoundingBox(BOARD self) -> BOX2I"""
20064 return _pcbnew.BOARD_GetBoardEdgesBoundingBox(self)
20065
20066 def FindFootprintByReference(self, aReference):
20067 r"""FindFootprintByReference(BOARD self, wxString aReference) -> FOOTPRINT"""
20068 return _pcbnew.BOARD_FindFootprintByReference(self, aReference)
20069
20070 def FindFootprintByPath(self, aPath):
20071 r"""FindFootprintByPath(BOARD self, KIID_PATH aPath) -> FOOTPRINT"""
20072 return _pcbnew.BOARD_FindFootprintByPath(self, aPath)
20073
20075 r"""GetNetClassAssignmentCandidates(BOARD self) -> STRINGSET"""
20076 return _pcbnew.BOARD_GetNetClassAssignmentCandidates(self)
20077
20078 def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes):
20079 r"""SynchronizeNetsAndNetClasses(BOARD self, bool aResetTrackAndViaSizes)"""
20080 return _pcbnew.BOARD_SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
20081
20083 r"""SynchronizeProperties(BOARD self)"""
20084 return _pcbnew.BOARD_SynchronizeProperties(self)
20085
20087 r"""SetAreasNetCodesFromNetNames(BOARD self) -> int"""
20088 return _pcbnew.BOARD_SetAreasNetCodesFromNetNames(self)
20089
20090 def GetArea(self, index):
20091 r"""GetArea(BOARD self, int index) -> ZONE"""
20092 return _pcbnew.BOARD_GetArea(self, index)
20093
20094 def GetZoneList(self, aIncludeZonesInFootprints=False):
20095 r"""GetZoneList(BOARD self, bool aIncludeZonesInFootprints=False) -> std::list< ZONE *,std::allocator< ZONE * > >"""
20096 return _pcbnew.BOARD_GetZoneList(self, aIncludeZonesInFootprints)
20097
20098 def GetAreaCount(self):
20099 r"""GetAreaCount(BOARD self) -> int"""
20100 return _pcbnew.BOARD_GetAreaCount(self)
20101
20102 def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch):
20103 r"""AddArea(BOARD self, PICKED_ITEMS_LIST * aNewZonesList, int aNetcode, PCB_LAYER_ID aLayer, VECTOR2I aStartPointPosition, ZONE_BORDER_DISPLAY_STYLE aHatch) -> ZONE"""
20104 return _pcbnew.BOARD_AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
20105
20106 def TestZoneIntersection(self, aZone1, aZone2):
20107 r"""TestZoneIntersection(BOARD self, ZONE aZone1, ZONE aZone2) -> bool"""
20108 return _pcbnew.BOARD_TestZoneIntersection(self, aZone1, aZone2)
20109
20110 def GetPadFast(self, aPosition, aLayerMask):
20111 r"""GetPadFast(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD"""
20112 return _pcbnew.BOARD_GetPadFast(self, aPosition, aLayerMask)
20113
20114 def GetPad(self, *args):
20115 r"""
20116 GetPad(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD
20117 GetPad(BOARD self, VECTOR2I aPosition) -> PAD
20118 GetPad(BOARD self, PCB_TRACK aTrace, ENDPOINT_T aEndPoint) -> PAD
20119 GetPad(BOARD self, PADS_VEC aPadList, VECTOR2I aPosition, LSET aLayerMask) -> PAD
20120 """
20121 return _pcbnew.BOARD_GetPad(self, *args)
20122
20123 def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1):
20124 r"""GetSortedPadListByXthenYCoord(BOARD self, PADS_VEC aVector, int aNetCode=-1)"""
20125 return _pcbnew.BOARD_GetSortedPadListByXthenYCoord(self, aVector, aNetCode)
20126
20127 def GetTrackLength(self, aTrack):
20128 r"""GetTrackLength(BOARD self, PCB_TRACK aTrack) -> std::tuple< int,double,double >"""
20129 return _pcbnew.BOARD_GetTrackLength(self, aTrack)
20130
20131 def TracksInNet(self, aNetCode):
20132 r"""TracksInNet(BOARD self, int aNetCode) -> TRACKS"""
20133 return _pcbnew.BOARD_TracksInNet(self, aNetCode)
20134
20135 def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False):
20136 r"""GetFootprint(BOARD self, VECTOR2I aPosition, PCB_LAYER_ID aActiveLayer, bool aVisibleOnly, bool aIgnoreLocked=False) -> FOOTPRINT"""
20137 return _pcbnew.BOARD_GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked)
20138
20140 r"""GetMaxClearanceValue(BOARD self) -> int"""
20141 return _pcbnew.BOARD_GetMaxClearanceValue(self)
20142
20143 def MapNets(self, aDestBoard):
20144 r"""MapNets(BOARD self, BOARD aDestBoard)"""
20145 return _pcbnew.BOARD_MapNets(self, aDestBoard)
20146
20148 r"""SanitizeNetcodes(BOARD self)"""
20149 return _pcbnew.BOARD_SanitizeNetcodes(self)
20150
20151 def AddListener(self, aListener):
20152 r"""AddListener(BOARD self, BOARD_LISTENER aListener)"""
20153 return _pcbnew.BOARD_AddListener(self, aListener)
20154
20155 def RemoveListener(self, aListener):
20156 r"""RemoveListener(BOARD self, BOARD_LISTENER aListener)"""
20157 return _pcbnew.BOARD_RemoveListener(self, aListener)
20158
20160 r"""RemoveAllListeners(BOARD self)"""
20161 return _pcbnew.BOARD_RemoveAllListeners(self)
20162
20163 def OnItemChanged(self, aItem):
20164 r"""OnItemChanged(BOARD self, BOARD_ITEM aItem)"""
20165 return _pcbnew.BOARD_OnItemChanged(self, aItem)
20166
20167 def OnItemsChanged(self, aItems):
20168 r"""OnItemsChanged(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aItems)"""
20169 return _pcbnew.BOARD_OnItemsChanged(self, aItems)
20170
20171 def OnItemsCompositeUpdate(self, aAddedItems, aRemovedItems, aChangedItems):
20172 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)"""
20173 return _pcbnew.BOARD_OnItemsCompositeUpdate(self, aAddedItems, aRemovedItems, aChangedItems)
20174
20176 r"""OnRatsnestChanged(BOARD self)"""
20177 return _pcbnew.BOARD_OnRatsnestChanged(self)
20178
20179 def GroupsSanityCheck(self, repair=False):
20180 r"""GroupsSanityCheck(BOARD self, bool repair=False) -> wxString"""
20181 return _pcbnew.BOARD_GroupsSanityCheck(self, repair)
20182
20183 def GroupsSanityCheckInternal(self, repair):
20184 r"""GroupsSanityCheckInternal(BOARD self, bool repair) -> wxString"""
20185 return _pcbnew.BOARD_GroupsSanityCheckInternal(self, repair)
20186
20187 def GroupLegalOps(self, selection):
20188 r"""GroupLegalOps(BOARD self, PCB_SELECTION const & selection) -> BOARD::GroupLegalOpsField"""
20189 return _pcbnew.BOARD_GroupLegalOps(self, selection)
20190
20192 r"""LegacyTeardrops(BOARD self) -> bool"""
20193 return _pcbnew.BOARD_LegacyTeardrops(self)
20194
20195 def SetLegacyTeardrops(self, aFlag):
20196 r"""SetLegacyTeardrops(BOARD self, bool aFlag)"""
20197 return _pcbnew.BOARD_SetLegacyTeardrops(self, aFlag)
20198
20199 def GetEmbeddedFiles(self, *args):
20200 r"""
20201 GetEmbeddedFiles(BOARD self) -> EMBEDDED_FILES
20202 GetEmbeddedFiles(BOARD self) -> EMBEDDED_FILES const *
20203 """
20204 return _pcbnew.BOARD_GetEmbeddedFiles(self, *args)
20205
20206 def GetFonts(self):
20207 r"""GetFonts(BOARD self) -> std::set< KIFONT::OUTLINE_FONT *,std::less< KIFONT::OUTLINE_FONT * >,std::allocator< KIFONT::OUTLINE_FONT * > >"""
20208 return _pcbnew.BOARD_GetFonts(self)
20209
20210 def EmbedFonts(self):
20211 r"""EmbedFonts(BOARD self)"""
20212 return _pcbnew.BOARD_EmbedFonts(self)
20213
20215 r"""GetComponentClassManager(BOARD self) -> COMPONENT_CLASS_MANAGER &"""
20216 return _pcbnew.BOARD_GetComponentClassManager(self)
20217 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)>""")
20218 m_maxClearanceValue = property(_pcbnew.BOARD_m_maxClearanceValue_get, _pcbnew.BOARD_m_maxClearanceValue_set, doc=r"""m_maxClearanceValue : std::optional<(int)>""")
20219 m_SolderMaskBridges = property(_pcbnew.BOARD_m_SolderMaskBridges_get, _pcbnew.BOARD_m_SolderMaskBridges_set, doc=r"""m_SolderMaskBridges : p.ZONE""")
20220 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)>)>)>)>)>)>""")
20221
20222 def __init__(self, *args):
20223 this = CreateEmptyBoard()
20224
20225 try:
20226 self.this.append(this)
20227 except:
20228 self.this = this
20229
20230 # Convert these to lists to keep users from using them to delete
20231 # items in the iterable while looping over it
20232 def GetFootprints(self): return list(self.Footprints())
20233 def GetDrawings(self): return list(self.Drawings())
20234 def GetTracks(self): return list(self.Tracks())
20235
20236 def Save(self,filename):
20237 return SaveBoard(filename,self)
20238
20239 def GetNetClasses(self):
20240 return self.GetDesignSettings().m_NetSettings.GetNetclasses()
20241
20244
20246 return self.GetDesignSettings().m_ViasDimensionsList
20247
20249 return self.GetDesignSettings().m_TrackWidthList
20250
20251 def GetNetsByName(self):
20252 """
20253 Return a dictionary like object with key:wxString netname and value:NETINFO_ITEM
20254 """
20255 return self.GetNetInfo().NetsByName()
20256
20258 """
20259 Return a dictionary like object with key:int netcode and value:NETINFO_ITEM
20260 """
20261 return self.GetNetInfo().NetsByNetcode()
20262
20263 def GetNetcodeFromNetname(self,netname):
20264 """
20265 Given a netname, return its netcode
20266 """
20267 net = self.GetNetsByName()[netname]
20268 return net.GetNetCode()
20269
20271 """
20272 Return a dictionary like object with net_class_name as key and NETCLASSPTR as value
20273 GetNetClasses(BOARD self) -> { wxString net_class_name : NETCLASSPTR }
20274 Include the "Default" netclass also.
20275 """
20276
20277 # Copy the NETCLASS_MAP so the one in the BOARD isn't modified
20278 # when we add the Default net class.
20279 netclassmap = {k:v for k,v in self.GetNetClasses().items()}
20280 netclassmap['Default'] = self.GetDesignSettings().m_NetSettings.GetDefaultNetclass()
20281 return netclassmap
20282
20283
20284# Register BOARD in _pcbnew:
20285_pcbnew.BOARD_swigregister(BOARD)
20287 r"""Proxy of C++ std::map< wxString,wxString > class."""
20288
20289 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
20290 __repr__ = _swig_repr
20291
20292 def iterator(self):
20293 r"""iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
20294 return _pcbnew.MAP_STRING_STRING_iterator(self)
20295 def __iter__(self):
20296 return self.iterator()
20297
20298 def __nonzero__(self):
20299 r"""__nonzero__(MAP_STRING_STRING self) -> bool"""
20300 return _pcbnew.MAP_STRING_STRING___nonzero__(self)
20301
20302 def __bool__(self):
20303 r"""__bool__(MAP_STRING_STRING self) -> bool"""
20304 return _pcbnew.MAP_STRING_STRING___bool__(self)
20305
20306 def __len__(self):
20307 r"""__len__(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
20308 return _pcbnew.MAP_STRING_STRING___len__(self)
20309 def __iter__(self):
20310 return self.key_iterator()
20311 def iterkeys(self):
20312 return self.key_iterator()
20313 def itervalues(self):
20314 return self.value_iterator()
20315 def iteritems(self):
20316 return self.iterator()
20317
20318 def __getitem__(self, key):
20319 r"""__getitem__(MAP_STRING_STRING self, wxString key) -> wxString"""
20320 return _pcbnew.MAP_STRING_STRING___getitem__(self, key)
20321
20322 def __delitem__(self, key):
20323 r"""__delitem__(MAP_STRING_STRING self, wxString key)"""
20324 return _pcbnew.MAP_STRING_STRING___delitem__(self, key)
20325
20326 def has_key(self, key):
20327 r"""has_key(MAP_STRING_STRING self, wxString key) -> bool"""
20328 return _pcbnew.MAP_STRING_STRING_has_key(self, key)
20329
20330 def keys(self):
20331 r"""keys(MAP_STRING_STRING self) -> PyObject *"""
20332 return _pcbnew.MAP_STRING_STRING_keys(self)
20333
20334 def values(self):
20335 r"""values(MAP_STRING_STRING self) -> PyObject *"""
20336 return _pcbnew.MAP_STRING_STRING_values(self)
20337
20338 def items(self):
20339 r"""items(MAP_STRING_STRING self) -> PyObject *"""
20340 return _pcbnew.MAP_STRING_STRING_items(self)
20341
20342 def __contains__(self, key):
20343 r"""__contains__(MAP_STRING_STRING self, wxString key) -> bool"""
20344 return _pcbnew.MAP_STRING_STRING___contains__(self, key)
20345
20346 def key_iterator(self):
20347 r"""key_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
20348 return _pcbnew.MAP_STRING_STRING_key_iterator(self)
20349
20351 r"""value_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
20352 return _pcbnew.MAP_STRING_STRING_value_iterator(self)
20353
20354 def __setitem__(self, *args):
20355 r"""
20356 __setitem__(MAP_STRING_STRING self, wxString key)
20357 __setitem__(MAP_STRING_STRING self, wxString key, wxString x)
20358 """
20359 return _pcbnew.MAP_STRING_STRING___setitem__(self, *args)
20360
20361 def asdict(self):
20362 r"""asdict(MAP_STRING_STRING self) -> PyObject *"""
20363 return _pcbnew.MAP_STRING_STRING_asdict(self)
20364
20365 def __init__(self, *args):
20366 r"""
20367 __init__(MAP_STRING_STRING self, std::less< wxString > const & other) -> MAP_STRING_STRING
20368 __init__(MAP_STRING_STRING self) -> MAP_STRING_STRING
20369 __init__(MAP_STRING_STRING self, MAP_STRING_STRING other) -> MAP_STRING_STRING
20370 """
20371 _pcbnew.MAP_STRING_STRING_swiginit(self, _pcbnew.new_MAP_STRING_STRING(*args))
20372
20373 def empty(self):
20374 r"""empty(MAP_STRING_STRING self) -> bool"""
20375 return _pcbnew.MAP_STRING_STRING_empty(self)
20376
20377 def size(self):
20378 r"""size(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
20379 return _pcbnew.MAP_STRING_STRING_size(self)
20380
20381 def swap(self, v):
20382 r"""swap(MAP_STRING_STRING self, MAP_STRING_STRING v)"""
20383 return _pcbnew.MAP_STRING_STRING_swap(self, v)
20384
20385 def begin(self):
20386 r"""begin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
20387 return _pcbnew.MAP_STRING_STRING_begin(self)
20388
20389 def end(self):
20390 r"""end(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
20391 return _pcbnew.MAP_STRING_STRING_end(self)
20392
20393 def rbegin(self):
20394 r"""rbegin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
20395 return _pcbnew.MAP_STRING_STRING_rbegin(self)
20396
20397 def rend(self):
20398 r"""rend(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
20399 return _pcbnew.MAP_STRING_STRING_rend(self)
20400
20401 def clear(self):
20402 r"""clear(MAP_STRING_STRING self)"""
20403 return _pcbnew.MAP_STRING_STRING_clear(self)
20404
20405 def get_allocator(self):
20406 r"""get_allocator(MAP_STRING_STRING self) -> std::map< wxString,wxString >::allocator_type"""
20407 return _pcbnew.MAP_STRING_STRING_get_allocator(self)
20408
20409 def count(self, x):
20410 r"""count(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type"""
20411 return _pcbnew.MAP_STRING_STRING_count(self, x)
20412
20413 def erase(self, *args):
20414 r"""
20415 erase(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type
20416 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator position)
20417 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator first, std::map< wxString,wxString >::iterator last)
20418 """
20419 return _pcbnew.MAP_STRING_STRING_erase(self, *args)
20420
20421 def find(self, x):
20422 r"""find(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
20423 return _pcbnew.MAP_STRING_STRING_find(self, x)
20424
20425 def lower_bound(self, x):
20426 r"""lower_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
20427 return _pcbnew.MAP_STRING_STRING_lower_bound(self, x)
20428
20429 def upper_bound(self, x):
20430 r"""upper_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
20431 return _pcbnew.MAP_STRING_STRING_upper_bound(self, x)
20432 __swig_destroy__ = _pcbnew.delete_MAP_STRING_STRING
20433
20434# Register MAP_STRING_STRING in _pcbnew:
20435_pcbnew.MAP_STRING_STRING_swigregister(MAP_STRING_STRING)
20436DO_NOT_INCLUDE_NPTH = _pcbnew.DO_NOT_INCLUDE_NPTH
20437
20438INCLUDE_NPTH = _pcbnew.INCLUDE_NPTH
20439
20440FP_THROUGH_HOLE = _pcbnew.FP_THROUGH_HOLE
20441
20442FP_SMD = _pcbnew.FP_SMD
20443
20444FP_EXCLUDE_FROM_POS_FILES = _pcbnew.FP_EXCLUDE_FROM_POS_FILES
20445
20446FP_EXCLUDE_FROM_BOM = _pcbnew.FP_EXCLUDE_FROM_BOM
20447
20448FP_BOARD_ONLY = _pcbnew.FP_BOARD_ONLY
20449
20450FP_JUST_ADDED = _pcbnew.FP_JUST_ADDED
20451
20452FP_ALLOW_SOLDERMASK_BRIDGES = _pcbnew.FP_ALLOW_SOLDERMASK_BRIDGES
20453
20454FP_ALLOW_MISSING_COURTYARD = _pcbnew.FP_ALLOW_MISSING_COURTYARD
20455
20456FP_DNP = _pcbnew.FP_DNP
20457
20459 r"""Proxy of C++ FP_3DMODEL class."""
20460
20461 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
20462 __repr__ = _swig_repr
20463
20464 def __init__(self):
20465 r"""__init__(FP_3DMODEL self) -> FP_3DMODEL"""
20466 _pcbnew.FP_3DMODEL_swiginit(self, _pcbnew.new_FP_3DMODEL())
20467 m_Scale = property(_pcbnew.FP_3DMODEL_m_Scale_get, _pcbnew.FP_3DMODEL_m_Scale_set, doc=r"""m_Scale : VECTOR3D""")
20468 m_Rotation = property(_pcbnew.FP_3DMODEL_m_Rotation_get, _pcbnew.FP_3DMODEL_m_Rotation_set, doc=r"""m_Rotation : VECTOR3D""")
20469 m_Offset = property(_pcbnew.FP_3DMODEL_m_Offset_get, _pcbnew.FP_3DMODEL_m_Offset_set, doc=r"""m_Offset : VECTOR3D""")
20470 m_Opacity = property(_pcbnew.FP_3DMODEL_m_Opacity_get, _pcbnew.FP_3DMODEL_m_Opacity_set, doc=r"""m_Opacity : double""")
20471 m_Filename = property(_pcbnew.FP_3DMODEL_m_Filename_get, _pcbnew.FP_3DMODEL_m_Filename_set, doc=r"""m_Filename : wxString""")
20472 m_Show = property(_pcbnew.FP_3DMODEL_m_Show_get, _pcbnew.FP_3DMODEL_m_Show_set, doc=r"""m_Show : bool""")
20473
20474 def __eq__(self, aOther):
20475 r"""__eq__(FP_3DMODEL self, FP_3DMODEL aOther) -> bool"""
20476 return _pcbnew.FP_3DMODEL___eq__(self, aOther)
20477 __swig_destroy__ = _pcbnew.delete_FP_3DMODEL
20478
20479# Register FP_3DMODEL in _pcbnew:
20480_pcbnew.FP_3DMODEL_swigregister(FP_3DMODEL)
20482 r"""Proxy of C++ FOOTPRINT class."""
20483
20484 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
20485 __repr__ = _swig_repr
20486
20487 def __init__(self, *args):
20488 r"""
20489 __init__(FOOTPRINT self, BOARD parent) -> FOOTPRINT
20490 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
20491 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
20492 """
20493 _pcbnew.FOOTPRINT_swiginit(self, _pcbnew.new_FOOTPRINT(*args))
20494 __swig_destroy__ = _pcbnew.delete_FOOTPRINT
20495
20496 def Serialize(self, aContainer):
20497 r"""Serialize(FOOTPRINT self, google::protobuf::Any & aContainer)"""
20498 return _pcbnew.FOOTPRINT_Serialize(self, aContainer)
20499
20500 def Deserialize(self, aContainer):
20501 r"""Deserialize(FOOTPRINT self, google::protobuf::Any const & aContainer) -> bool"""
20502 return _pcbnew.FOOTPRINT_Deserialize(self, aContainer)
20503
20504 @staticmethod
20505 def ClassOf(aItem):
20506 r"""ClassOf(EDA_ITEM aItem) -> bool"""
20507 return _pcbnew.FOOTPRINT_ClassOf(aItem)
20508
20510 r"""InvalidateGeometryCaches(FOOTPRINT self)"""
20511 return _pcbnew.FOOTPRINT_InvalidateGeometryCaches(self)
20512
20514 r"""GetPrivateLayers(FOOTPRINT self) -> LSET"""
20515 return _pcbnew.FOOTPRINT_GetPrivateLayers(self)
20516
20517 def SetPrivateLayers(self, aLayers):
20518 r"""SetPrivateLayers(FOOTPRINT self, LSET aLayers)"""
20519 return _pcbnew.FOOTPRINT_SetPrivateLayers(self, aLayers)
20520
20521 def AddNative(self, *args):
20522 r"""AddNative(FOOTPRINT self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
20523 return _pcbnew.FOOTPRINT_AddNative(self, *args)
20524
20525 def RemoveNative(self, *args):
20526 r"""RemoveNative(FOOTPRINT self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
20527 return _pcbnew.FOOTPRINT_RemoveNative(self, *args)
20528
20529 def ClearAllNets(self):
20530 r"""ClearAllNets(FOOTPRINT self)"""
20531 return _pcbnew.FOOTPRINT_ClearAllNets(self)
20532
20533 def FixUuids(self):
20534 r"""FixUuids(FOOTPRINT self) -> bool"""
20535 return _pcbnew.FOOTPRINT_FixUuids(self)
20536
20538 r"""GetFpPadsLocalBbox(FOOTPRINT self) -> BOX2I"""
20539 return _pcbnew.FOOTPRINT_GetFpPadsLocalBbox(self)
20540
20542 r"""GetBoundingHull(FOOTPRINT self) -> SHAPE_POLY_SET"""
20543 return _pcbnew.FOOTPRINT_GetBoundingHull(self)
20544
20545 def TextOnly(self):
20546 r"""TextOnly(FOOTPRINT self) -> bool"""
20547 return _pcbnew.FOOTPRINT_TextOnly(self)
20548
20549 def GetLayerBoundingBox(self, aLayers):
20550 r"""GetLayerBoundingBox(FOOTPRINT self, LSET aLayers) -> BOX2I"""
20551 return _pcbnew.FOOTPRINT_GetLayerBoundingBox(self, aLayers)
20552
20553 def Pads(self, *args):
20554 r"""
20555 Pads(FOOTPRINT self) -> PADS
20556 Pads(FOOTPRINT self) -> PADS
20557 """
20558 return _pcbnew.FOOTPRINT_Pads(self, *args)
20559
20560 def GraphicalItems(self, *args):
20561 r"""
20562 GraphicalItems(FOOTPRINT self) -> DRAWINGS
20563 GraphicalItems(FOOTPRINT self) -> DRAWINGS
20564 """
20565 return _pcbnew.FOOTPRINT_GraphicalItems(self, *args)
20566
20567 def Zones(self, *args):
20568 r"""
20569 Zones(FOOTPRINT self) -> ZONES
20570 Zones(FOOTPRINT self) -> ZONES
20571 """
20572 return _pcbnew.FOOTPRINT_Zones(self, *args)
20573
20574 def Groups(self, *args):
20575 r"""
20576 Groups(FOOTPRINT self) -> GROUPS
20577 Groups(FOOTPRINT self) -> GROUPS
20578 """
20579 return _pcbnew.FOOTPRINT_Groups(self, *args)
20580
20582 r"""HasThroughHolePads(FOOTPRINT self) -> bool"""
20583 return _pcbnew.FOOTPRINT_HasThroughHolePads(self)
20584
20585 def Models(self, *args):
20586 r"""
20587 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
20588 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
20589 """
20590 return _pcbnew.FOOTPRINT_Models(self, *args)
20591
20592 def SetOrientation(self, aNewAngle):
20593 r"""SetOrientation(FOOTPRINT self, EDA_ANGLE aNewAngle)"""
20594 return _pcbnew.FOOTPRINT_SetOrientation(self, aNewAngle)
20595
20597 r"""GetOrientation(FOOTPRINT self) -> EDA_ANGLE"""
20598 return _pcbnew.FOOTPRINT_GetOrientation(self)
20599
20600 def SetLayerAndFlip(self, aLayer):
20601 r"""SetLayerAndFlip(FOOTPRINT self, PCB_LAYER_ID aLayer)"""
20602 return _pcbnew.FOOTPRINT_SetLayerAndFlip(self, aLayer)
20603
20604 def SetOrientationDegrees(self, aOrientation):
20605 r"""SetOrientationDegrees(FOOTPRINT self, double aOrientation)"""
20606 return _pcbnew.FOOTPRINT_SetOrientationDegrees(self, aOrientation)
20607
20609 r"""GetOrientationDegrees(FOOTPRINT self) -> double"""
20610 return _pcbnew.FOOTPRINT_GetOrientationDegrees(self)
20611
20612 def GetFPID(self):
20613 r"""GetFPID(FOOTPRINT self) -> LIB_ID"""
20614 return _pcbnew.FOOTPRINT_GetFPID(self)
20615
20616 def SetFPID(self, aFPID):
20617 r"""SetFPID(FOOTPRINT self, LIB_ID aFPID)"""
20618 return _pcbnew.FOOTPRINT_SetFPID(self, aFPID)
20619
20621 r"""GetFPIDAsString(FOOTPRINT self) -> wxString"""
20622 return _pcbnew.FOOTPRINT_GetFPIDAsString(self)
20623
20624 def SetFPIDAsString(self, aFPID):
20625 r"""SetFPIDAsString(FOOTPRINT self, wxString aFPID)"""
20626 return _pcbnew.FOOTPRINT_SetFPIDAsString(self, aFPID)
20627
20629 r"""GetLibDescription(FOOTPRINT self) -> wxString"""
20630 return _pcbnew.FOOTPRINT_GetLibDescription(self)
20631
20632 def SetLibDescription(self, aDesc):
20633 r"""SetLibDescription(FOOTPRINT self, wxString aDesc)"""
20634 return _pcbnew.FOOTPRINT_SetLibDescription(self, aDesc)
20635
20636 def GetKeywords(self):
20637 r"""GetKeywords(FOOTPRINT self) -> wxString"""
20638 return _pcbnew.FOOTPRINT_GetKeywords(self)
20639
20640 def SetKeywords(self, aKeywords):
20641 r"""SetKeywords(FOOTPRINT self, wxString aKeywords)"""
20642 return _pcbnew.FOOTPRINT_SetKeywords(self, aKeywords)
20643
20644 def GetPath(self):
20645 r"""GetPath(FOOTPRINT self) -> KIID_PATH"""
20646 return _pcbnew.FOOTPRINT_GetPath(self)
20647
20648 def SetPath(self, aPath):
20649 r"""SetPath(FOOTPRINT self, KIID_PATH aPath)"""
20650 return _pcbnew.FOOTPRINT_SetPath(self, aPath)
20651
20652 def GetSheetname(self):
20653 r"""GetSheetname(FOOTPRINT self) -> wxString"""
20654 return _pcbnew.FOOTPRINT_GetSheetname(self)
20655
20656 def SetSheetname(self, aSheetname):
20657 r"""SetSheetname(FOOTPRINT self, wxString aSheetname)"""
20658 return _pcbnew.FOOTPRINT_SetSheetname(self, aSheetname)
20659
20660 def GetSheetfile(self):
20661 r"""GetSheetfile(FOOTPRINT self) -> wxString"""
20662 return _pcbnew.FOOTPRINT_GetSheetfile(self)
20663
20664 def SetSheetfile(self, aSheetfile):
20665 r"""SetSheetfile(FOOTPRINT self, wxString aSheetfile)"""
20666 return _pcbnew.FOOTPRINT_SetSheetfile(self, aSheetfile)
20667
20668 def GetFilters(self):
20669 r"""GetFilters(FOOTPRINT self) -> wxString"""
20670 return _pcbnew.FOOTPRINT_GetFilters(self)
20671
20672 def SetFilters(self, aFilters):
20673 r"""SetFilters(FOOTPRINT self, wxString aFilters)"""
20674 return _pcbnew.FOOTPRINT_SetFilters(self, aFilters)
20675
20676 def SetLocalClearance(self, aClearance):
20677 r"""SetLocalClearance(FOOTPRINT self, std::optional< int > aClearance)"""
20678 return _pcbnew.FOOTPRINT_SetLocalClearance(self, aClearance)
20679
20681 r"""GetLocalSolderMaskMargin(FOOTPRINT self) -> std::optional< int >"""
20682 return _pcbnew.FOOTPRINT_GetLocalSolderMaskMargin(self)
20683
20684 def SetLocalSolderMaskMargin(self, aMargin):
20685 r"""SetLocalSolderMaskMargin(FOOTPRINT self, std::optional< int > aMargin)"""
20686 return _pcbnew.FOOTPRINT_SetLocalSolderMaskMargin(self, aMargin)
20687
20689 r"""GetLocalSolderPasteMargin(FOOTPRINT self) -> std::optional< int >"""
20690 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMargin(self)
20691
20692 def SetLocalSolderPasteMargin(self, aMargin):
20693 r"""SetLocalSolderPasteMargin(FOOTPRINT self, std::optional< int > aMargin)"""
20694 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMargin(self, aMargin)
20695
20697 r"""GetLocalSolderPasteMarginRatio(FOOTPRINT self) -> std::optional< double >"""
20698 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMarginRatio(self)
20699
20701 r"""SetLocalSolderPasteMarginRatio(FOOTPRINT self, std::optional< double > aRatio)"""
20702 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMarginRatio(self, aRatio)
20703
20704 def SetLocalZoneConnection(self, aType):
20705 r"""SetLocalZoneConnection(FOOTPRINT self, ZONE_CONNECTION aType)"""
20706 return _pcbnew.FOOTPRINT_SetLocalZoneConnection(self, aType)
20707
20709 r"""GetLocalZoneConnection(FOOTPRINT self) -> ZONE_CONNECTION"""
20710 return _pcbnew.FOOTPRINT_GetLocalZoneConnection(self)
20711
20712 def GetAttributes(self):
20713 r"""GetAttributes(FOOTPRINT self) -> int"""
20714 return _pcbnew.FOOTPRINT_GetAttributes(self)
20715
20716 def SetAttributes(self, aAttributes):
20717 r"""SetAttributes(FOOTPRINT self, int aAttributes)"""
20718 return _pcbnew.FOOTPRINT_SetAttributes(self, aAttributes)
20719
20720 def SetFlag(self, aFlag):
20721 r"""SetFlag(FOOTPRINT self, int aFlag)"""
20722 return _pcbnew.FOOTPRINT_SetFlag(self, aFlag)
20723
20724 def IncrementFlag(self):
20725 r"""IncrementFlag(FOOTPRINT self)"""
20726 return _pcbnew.FOOTPRINT_IncrementFlag(self)
20727
20728 def GetFlag(self):
20729 r"""GetFlag(FOOTPRINT self) -> int"""
20730 return _pcbnew.FOOTPRINT_GetFlag(self)
20731
20732 def IsNetTie(self):
20733 r"""IsNetTie(FOOTPRINT self) -> bool"""
20734 return _pcbnew.FOOTPRINT_IsNetTie(self)
20735
20736 def GetLocalClearance(self, *args):
20737 r"""
20738 GetLocalClearance(FOOTPRINT self) -> std::optional< int >
20739 GetLocalClearance(FOOTPRINT self, wxString aSource) -> std::optional< int >
20740 """
20741 return _pcbnew.FOOTPRINT_GetLocalClearance(self, *args)
20742
20743 def GetClearanceOverrides(self, aSource):
20744 r"""GetClearanceOverrides(FOOTPRINT self, wxString aSource) -> std::optional< int >"""
20745 return _pcbnew.FOOTPRINT_GetClearanceOverrides(self, aSource)
20746
20747 def GetZoneConnectionOverrides(self, aSource):
20748 r"""GetZoneConnectionOverrides(FOOTPRINT self, wxString aSource) -> ZONE_CONNECTION"""
20749 return _pcbnew.FOOTPRINT_GetZoneConnectionOverrides(self, aSource)
20750
20752 r"""GetNetTiePadGroups(FOOTPRINT self) -> std::vector< wxString,std::allocator< wxString > > const &"""
20753 return _pcbnew.FOOTPRINT_GetNetTiePadGroups(self)
20754
20756 r"""ClearNetTiePadGroups(FOOTPRINT self)"""
20757 return _pcbnew.FOOTPRINT_ClearNetTiePadGroups(self)
20758
20759 def AddNetTiePadGroup(self, aGroup):
20760 r"""AddNetTiePadGroup(FOOTPRINT self, wxString aGroup)"""
20761 return _pcbnew.FOOTPRINT_AddNetTiePadGroup(self, aGroup)
20762
20764 r"""MapPadNumbersToNetTieGroups(FOOTPRINT self) -> std::map< wxString,int,std::less< wxString >,std::allocator< std::pair< wxString const,int > > >"""
20765 return _pcbnew.FOOTPRINT_MapPadNumbersToNetTieGroups(self)
20766
20767 def GetNetTiePads(self, aPad):
20768 r"""GetNetTiePads(FOOTPRINT self, PAD aPad) -> PADS_VEC"""
20769 return _pcbnew.FOOTPRINT_GetNetTiePads(self, aPad)
20770
20772 r"""GetLikelyAttribute(FOOTPRINT self) -> int"""
20773 return _pcbnew.FOOTPRINT_GetLikelyAttribute(self)
20774
20775 def MoveAnchorPosition(self, aMoveVector):
20776 r"""MoveAnchorPosition(FOOTPRINT self, VECTOR2I aMoveVector)"""
20777 return _pcbnew.FOOTPRINT_MoveAnchorPosition(self, aMoveVector)
20778
20779 def IsFlipped(self):
20780 r"""IsFlipped(FOOTPRINT self) -> bool"""
20781 return _pcbnew.FOOTPRINT_IsFlipped(self)
20782
20783 def GetSide(self):
20784 r"""GetSide(FOOTPRINT self) -> PCB_LAYER_ID"""
20785 return _pcbnew.FOOTPRINT_GetSide(self)
20786
20787 def IsConflicting(self):
20788 r"""IsConflicting(FOOTPRINT self) -> bool"""
20789 return _pcbnew.FOOTPRINT_IsConflicting(self)
20790
20791 def IsPlaced(self):
20792 r"""IsPlaced(FOOTPRINT self) -> bool"""
20793 return _pcbnew.FOOTPRINT_IsPlaced(self)
20794
20795 def SetIsPlaced(self, isPlaced):
20796 r"""SetIsPlaced(FOOTPRINT self, bool isPlaced)"""
20797 return _pcbnew.FOOTPRINT_SetIsPlaced(self, isPlaced)
20798
20799 def NeedsPlaced(self):
20800 r"""NeedsPlaced(FOOTPRINT self) -> bool"""
20801 return _pcbnew.FOOTPRINT_NeedsPlaced(self)
20802
20803 def SetNeedsPlaced(self, needsPlaced):
20804 r"""SetNeedsPlaced(FOOTPRINT self, bool needsPlaced)"""
20805 return _pcbnew.FOOTPRINT_SetNeedsPlaced(self, needsPlaced)
20806
20808 r"""LegacyPadsLocked(FOOTPRINT self) -> bool"""
20809 return _pcbnew.FOOTPRINT_LegacyPadsLocked(self)
20810
20811 def CheckFootprintAttributes(self, aErrorHandler):
20812 r"""CheckFootprintAttributes(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
20813 return _pcbnew.FOOTPRINT_CheckFootprintAttributes(self, aErrorHandler)
20814
20815 def CheckPads(self, aUnitsProvider, aErrorHandler):
20816 r"""CheckPads(FOOTPRINT self, UNITS_PROVIDER aUnitsProvider, std::function< void (PAD const *,int,wxString const &) > const & aErrorHandler)"""
20817 return _pcbnew.FOOTPRINT_CheckPads(self, aUnitsProvider, aErrorHandler)
20818
20819 def CheckShortingPads(self, aErrorHandler):
20820 r"""CheckShortingPads(FOOTPRINT self, std::function< void (PAD const *,PAD const *,int,VECTOR2I const &) > const & aErrorHandler)"""
20821 return _pcbnew.FOOTPRINT_CheckShortingPads(self, aErrorHandler)
20822
20823 def CheckNetTies(self, aErrorHandler):
20824 r"""CheckNetTies(FOOTPRINT self, std::function< void (BOARD_ITEM const *,BOARD_ITEM const *,BOARD_ITEM const *,VECTOR2I const &) > const & aErrorHandler)"""
20825 return _pcbnew.FOOTPRINT_CheckNetTies(self, aErrorHandler)
20826
20827 def CheckNetTiePadGroups(self, aErrorHandler):
20828 r"""CheckNetTiePadGroups(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
20829 return _pcbnew.FOOTPRINT_CheckNetTiePadGroups(self, aErrorHandler)
20830
20831 def CheckClippedSilk(self, aErrorHandler):
20832 r"""CheckClippedSilk(FOOTPRINT self, std::function< void (BOARD_ITEM *,BOARD_ITEM *,VECTOR2I const &) > const & aErrorHandler)"""
20833 return _pcbnew.FOOTPRINT_CheckClippedSilk(self, aErrorHandler)
20834
20836 r"""BuildNetTieCache(FOOTPRINT self)"""
20837 return _pcbnew.FOOTPRINT_BuildNetTieCache(self)
20838
20839 def GetNetTieCache(self, aItem):
20840 r"""GetNetTieCache(FOOTPRINT self, BOARD_ITEM aItem) -> std::set< int,std::less< int >,std::allocator< int > > const &"""
20841 return _pcbnew.FOOTPRINT_GetNetTieCache(self, aItem)
20842
20843 def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False):
20844 r"""TransformPadsToPolySet(FOOTPRINT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aSkipNPTHPadsWihNoCopper=False)"""
20845 return _pcbnew.FOOTPRINT_TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper)
20846
20847 def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False):
20848 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)"""
20849 return _pcbnew.FOOTPRINT_TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText, aIncludeShapes, aIncludePrivateItems)
20850
20851 def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc):
20852 r"""TransformFPTextToPolySet(FOOTPRINT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc)"""
20853 return _pcbnew.FOOTPRINT_TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
20854
20855 def GetContextualTextVars(self, aVars):
20856 r"""GetContextualTextVars(FOOTPRINT self, wxArrayString * aVars)"""
20857 return _pcbnew.FOOTPRINT_GetContextualTextVars(self, aVars)
20858
20859 def ResolveTextVar(self, token, aDepth=0):
20860 r"""ResolveTextVar(FOOTPRINT self, wxString token, int aDepth=0) -> bool"""
20861 return _pcbnew.FOOTPRINT_ResolveTextVar(self, token, aDepth)
20862
20863 def HitTestAccurate(self, aPosition, aAccuracy=0):
20864 r"""HitTestAccurate(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool"""
20865 return _pcbnew.FOOTPRINT_HitTestAccurate(self, aPosition, aAccuracy)
20866
20867 def HitTest(self, *args):
20868 r"""
20869 HitTest(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool
20870 HitTest(FOOTPRINT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
20871 """
20872 return _pcbnew.FOOTPRINT_HitTest(self, *args)
20873
20874 def HitTestOnLayer(self, *args):
20875 r"""
20876 HitTestOnLayer(FOOTPRINT self, VECTOR2I aPosition, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
20877 HitTestOnLayer(FOOTPRINT self, BOX2I aRect, bool aContained, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
20878 """
20879 return _pcbnew.FOOTPRINT_HitTestOnLayer(self, *args)
20880
20881 def GetReference(self):
20882 r"""GetReference(FOOTPRINT self) -> wxString"""
20883 return _pcbnew.FOOTPRINT_GetReference(self)
20884
20885 def SetReference(self, aReference):
20886 r"""SetReference(FOOTPRINT self, wxString aReference)"""
20887 return _pcbnew.FOOTPRINT_SetReference(self, aReference)
20888
20890 r"""GetReferenceAsString(FOOTPRINT self) -> wxString"""
20891 return _pcbnew.FOOTPRINT_GetReferenceAsString(self)
20892
20893 def IncrementReference(self, aDelta):
20894 r"""IncrementReference(FOOTPRINT self, int aDelta)"""
20895 return _pcbnew.FOOTPRINT_IncrementReference(self, aDelta)
20896
20897 def GetValue(self):
20898 r"""GetValue(FOOTPRINT self) -> wxString"""
20899 return _pcbnew.FOOTPRINT_GetValue(self)
20900
20901 def SetValue(self, aValue):
20902 r"""SetValue(FOOTPRINT self, wxString aValue)"""
20903 return _pcbnew.FOOTPRINT_SetValue(self, aValue)
20904
20906 r"""GetValueAsString(FOOTPRINT self) -> wxString"""
20907 return _pcbnew.FOOTPRINT_GetValueAsString(self)
20908
20909 def Value(self, *args):
20910 r"""
20911 Value(FOOTPRINT self) -> PCB_FIELD
20912 Value(FOOTPRINT self) -> PCB_FIELD
20913 """
20914 return _pcbnew.FOOTPRINT_Value(self, *args)
20915
20916 def Reference(self, *args):
20917 r"""
20918 Reference(FOOTPRINT self) -> PCB_FIELD
20919 Reference(FOOTPRINT self) -> PCB_FIELD
20920 """
20921 return _pcbnew.FOOTPRINT_Reference(self, *args)
20922
20923 def GetField(self, *args):
20924 r"""
20925 GetField(FOOTPRINT self, MANDATORY_FIELD_T aFieldType) -> PCB_FIELD
20926 GetField(FOOTPRINT self, MANDATORY_FIELD_T aFieldNdx) -> PCB_FIELD
20927 """
20928 return _pcbnew.FOOTPRINT_GetField(self, *args)
20929
20930 def GetFieldById(self, aFieldId):
20931 r"""GetFieldById(FOOTPRINT self, int aFieldId) -> PCB_FIELD"""
20932 return _pcbnew.FOOTPRINT_GetFieldById(self, aFieldId)
20933
20934 def GetFieldByName(self, aFieldName):
20935 r"""GetFieldByName(FOOTPRINT self, wxString aFieldName) -> PCB_FIELD"""
20936 return _pcbnew.FOOTPRINT_GetFieldByName(self, aFieldName)
20937
20938 def HasFieldByName(self, aFieldName):
20939 r"""HasFieldByName(FOOTPRINT self, wxString aFieldName) -> bool"""
20940 return _pcbnew.FOOTPRINT_HasFieldByName(self, aFieldName)
20941
20942 def GetFieldText(self, aFieldName):
20943 r"""GetFieldText(FOOTPRINT self, wxString aFieldName) -> wxString"""
20944 return _pcbnew.FOOTPRINT_GetFieldText(self, aFieldName)
20945
20946 def GetFields(self, *args):
20947 r"""
20948 GetFields(FOOTPRINT self, PCB_FIELD_VEC aVector, bool aVisibleOnly)
20949 GetFields(FOOTPRINT self, bool aVisibleOnly=False) -> PCB_FIELD_VEC
20950 """
20951 return _pcbnew.FOOTPRINT_GetFields(self, *args)
20952
20953 def ClearFields(self):
20954 r"""ClearFields(FOOTPRINT self)"""
20955 return _pcbnew.FOOTPRINT_ClearFields(self)
20956
20957 def AddField(self, aField):
20958 r"""AddField(FOOTPRINT self, PCB_FIELD aField) -> PCB_FIELD"""
20959 return _pcbnew.FOOTPRINT_AddField(self, aField)
20960
20961 def RemoveField(self, aFieldName):
20962 r"""RemoveField(FOOTPRINT self, wxString aFieldName)"""
20963 return _pcbnew.FOOTPRINT_RemoveField(self, aFieldName)
20964
20966 r"""GetNextFieldId(FOOTPRINT self) -> int"""
20967 return _pcbnew.FOOTPRINT_GetNextFieldId(self)
20968
20969 def ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes):
20970 r"""ApplyDefaultSettings(FOOTPRINT self, BOARD board, bool aStyleFields, bool aStyleText, bool aStyleShapes)"""
20971 return _pcbnew.FOOTPRINT_ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes)
20972
20973 def IsBoardOnly(self):
20974 r"""IsBoardOnly(FOOTPRINT self) -> bool"""
20975 return _pcbnew.FOOTPRINT_IsBoardOnly(self)
20976
20977 def SetBoardOnly(self, aIsBoardOnly=True):
20978 r"""SetBoardOnly(FOOTPRINT self, bool aIsBoardOnly=True)"""
20979 return _pcbnew.FOOTPRINT_SetBoardOnly(self, aIsBoardOnly)
20980
20982 r"""IsExcludedFromPosFiles(FOOTPRINT self) -> bool"""
20983 return _pcbnew.FOOTPRINT_IsExcludedFromPosFiles(self)
20984
20985 def SetExcludedFromPosFiles(self, aExclude=True):
20986 r"""SetExcludedFromPosFiles(FOOTPRINT self, bool aExclude=True)"""
20987 return _pcbnew.FOOTPRINT_SetExcludedFromPosFiles(self, aExclude)
20988
20990 r"""IsExcludedFromBOM(FOOTPRINT self) -> bool"""
20991 return _pcbnew.FOOTPRINT_IsExcludedFromBOM(self)
20992
20993 def SetExcludedFromBOM(self, aExclude=True):
20994 r"""SetExcludedFromBOM(FOOTPRINT self, bool aExclude=True)"""
20995 return _pcbnew.FOOTPRINT_SetExcludedFromBOM(self, aExclude)
20996
20998 r"""AllowMissingCourtyard(FOOTPRINT self) -> bool"""
20999 return _pcbnew.FOOTPRINT_AllowMissingCourtyard(self)
21000
21001 def SetAllowMissingCourtyard(self, aAllow=True):
21002 r"""SetAllowMissingCourtyard(FOOTPRINT self, bool aAllow=True)"""
21003 return _pcbnew.FOOTPRINT_SetAllowMissingCourtyard(self, aAllow)
21004
21005 def IsDNP(self):
21006 r"""IsDNP(FOOTPRINT self) -> bool"""
21007 return _pcbnew.FOOTPRINT_IsDNP(self)
21008
21009 def SetDNP(self, aDNP=True):
21010 r"""SetDNP(FOOTPRINT self, bool aDNP=True)"""
21011 return _pcbnew.FOOTPRINT_SetDNP(self, aDNP)
21012
21013 def SetFileFormatVersionAtLoad(self, aVersion):
21014 r"""SetFileFormatVersionAtLoad(FOOTPRINT self, int aVersion)"""
21015 return _pcbnew.FOOTPRINT_SetFileFormatVersionAtLoad(self, aVersion)
21016
21018 r"""GetFileFormatVersionAtLoad(FOOTPRINT self) -> int"""
21019 return _pcbnew.FOOTPRINT_GetFileFormatVersionAtLoad(self)
21020
21021 def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None):
21022 r"""FindPadByNumber(FOOTPRINT self, wxString aPadNumber, PAD aSearchAfterMe=None) -> PAD"""
21023 return _pcbnew.FOOTPRINT_FindPadByNumber(self, aPadNumber, aSearchAfterMe)
21024
21025 def GetPad(self, *args):
21026 r"""GetPad(FOOTPRINT self, VECTOR2I aPosition, LSET aLayerMask=LSET::AllLayersMask()) -> PAD"""
21027 return _pcbnew.FOOTPRINT_GetPad(self, *args)
21028
21029 def GetPads(self, aPadNumber, aIgnore=None):
21030 r"""GetPads(FOOTPRINT self, wxString aPadNumber, PAD aIgnore=None) -> std::vector< PAD const *,std::allocator< PAD const * > >"""
21031 return _pcbnew.FOOTPRINT_GetPads(self, aPadNumber, aIgnore)
21032
21033 def GetPadCount(self, *args):
21034 r"""GetPadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
21035 return _pcbnew.FOOTPRINT_GetPadCount(self, *args)
21036
21037 def GetUniquePadCount(self, *args):
21038 r"""GetUniquePadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
21039 return _pcbnew.FOOTPRINT_GetUniquePadCount(self, *args)
21040
21041 def GetUniquePadNumbers(self, *args):
21042 r"""GetUniquePadNumbers(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> STRINGSET"""
21043 return _pcbnew.FOOTPRINT_GetUniquePadNumbers(self, *args)
21044
21045 def GetNextPadNumber(self, aLastPadName):
21046 r"""GetNextPadNumber(FOOTPRINT self, wxString aLastPadName) -> wxString"""
21047 return _pcbnew.FOOTPRINT_GetNextPadNumber(self, aLastPadName)
21048
21050 r"""AutoPositionFields(FOOTPRINT self)"""
21051 return _pcbnew.FOOTPRINT_AutoPositionFields(self)
21052
21053 def GetTypeName(self):
21054 r"""GetTypeName(FOOTPRINT self) -> wxString"""
21055 return _pcbnew.FOOTPRINT_GetTypeName(self)
21056
21057 def GetArea(self, aPadding=0):
21058 r"""GetArea(FOOTPRINT self, int aPadding=0) -> double"""
21059 return _pcbnew.FOOTPRINT_GetArea(self, aPadding)
21060
21061 def GetLink(self):
21062 r"""GetLink(FOOTPRINT self) -> KIID"""
21063 return _pcbnew.FOOTPRINT_GetLink(self)
21064
21065 def SetLink(self, aLink):
21066 r"""SetLink(FOOTPRINT self, KIID aLink)"""
21067 return _pcbnew.FOOTPRINT_SetLink(self, aLink)
21068
21069 def DuplicateItem(self, aItem, aAddToFootprint=False):
21070 r"""DuplicateItem(FOOTPRINT self, BOARD_ITEM aItem, bool aAddToFootprint=False) -> BOARD_ITEM"""
21071 return _pcbnew.FOOTPRINT_DuplicateItem(self, aItem, aAddToFootprint)
21072
21073 def Add3DModel(self, a3DModel):
21074 r"""Add3DModel(FOOTPRINT self, FP_3DMODEL a3DModel)"""
21075 return _pcbnew.FOOTPRINT_Add3DModel(self, a3DModel)
21076
21077 def RunOnDescendants(self, aFunction, aDepth=0):
21078 r"""RunOnDescendants(FOOTPRINT self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
21079 return _pcbnew.FOOTPRINT_RunOnDescendants(self, aFunction, aDepth)
21080
21081 def ViewGetLOD(self, aLayer, aView):
21082 r"""ViewGetLOD(FOOTPRINT self, int aLayer, KIGFX::VIEW const * aView) -> double"""
21083 return _pcbnew.FOOTPRINT_ViewGetLOD(self, aLayer, aView)
21084
21085 @staticmethod
21086 def IsLibNameValid(aName):
21087 r"""IsLibNameValid(wxString aName) -> bool"""
21088 return _pcbnew.FOOTPRINT_IsLibNameValid(aName)
21089
21090 @staticmethod
21091 def StringLibNameInvalidChars(aUserReadable):
21092 r"""StringLibNameInvalidChars(bool aUserReadable) -> wxChar const *"""
21093 return _pcbnew.FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
21094
21095 def FootprintNeedsUpdate(self, aLibFP, aCompareFlags=0, aReporter=None):
21096 r"""FootprintNeedsUpdate(FOOTPRINT self, FOOTPRINT aLibFP, int aCompareFlags=0, REPORTER * aReporter=None) -> bool"""
21097 return _pcbnew.FOOTPRINT_FootprintNeedsUpdate(self, aLibFP, aCompareFlags, aReporter)
21098
21099 def SetInitialComments(self, aInitialComments):
21100 r"""SetInitialComments(FOOTPRINT self, wxArrayString * aInitialComments)"""
21101 return _pcbnew.FOOTPRINT_SetInitialComments(self, aInitialComments)
21102
21103 def CoverageRatio(self, aCollector):
21104 r"""CoverageRatio(FOOTPRINT self, GENERAL_COLLECTOR const & aCollector) -> double"""
21105 return _pcbnew.FOOTPRINT_CoverageRatio(self, aCollector)
21106
21107 @staticmethod
21108 def GetCoverageArea(aItem, aCollector):
21109 r"""GetCoverageArea(BOARD_ITEM aItem, GENERAL_COLLECTOR const & aCollector) -> double"""
21110 return _pcbnew.FOOTPRINT_GetCoverageArea(aItem, aCollector)
21111
21113 r"""GetInitialComments(FOOTPRINT self) -> wxArrayString const *"""
21114 return _pcbnew.FOOTPRINT_GetInitialComments(self)
21115
21116 def GetCourtyard(self, aLayer):
21117 r"""GetCourtyard(FOOTPRINT self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
21118 return _pcbnew.FOOTPRINT_GetCourtyard(self, aLayer)
21119
21120 def GetCachedCourtyard(self, aLayer):
21121 r"""GetCachedCourtyard(FOOTPRINT self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
21122 return _pcbnew.FOOTPRINT_GetCachedCourtyard(self, aLayer)
21123
21124 def BuildCourtyardCaches(self, aErrorHandler=None):
21125 r"""BuildCourtyardCaches(FOOTPRINT self, OUTLINE_ERROR_HANDLER * aErrorHandler=None)"""
21126 return _pcbnew.FOOTPRINT_BuildCourtyardCaches(self, aErrorHandler)
21127
21128 def GetEffectiveShape(self, *args):
21129 r"""GetEffectiveShape(FOOTPRINT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
21130 return _pcbnew.FOOTPRINT_GetEffectiveShape(self, *args)
21131
21132 def GetEmbeddedFiles(self, *args):
21133 r"""
21134 GetEmbeddedFiles(FOOTPRINT self) -> EMBEDDED_FILES
21135 GetEmbeddedFiles(FOOTPRINT self) -> EMBEDDED_FILES const *
21136 """
21137 return _pcbnew.FOOTPRINT_GetEmbeddedFiles(self, *args)
21138
21139 def GetFonts(self):
21140 r"""GetFonts(FOOTPRINT self) -> std::set< KIFONT::OUTLINE_FONT *,std::less< KIFONT::OUTLINE_FONT * >,std::allocator< KIFONT::OUTLINE_FONT * > >"""
21141 return _pcbnew.FOOTPRINT_GetFonts(self)
21142
21143 def EmbedFonts(self):
21144 r"""EmbedFonts(FOOTPRINT self)"""
21145 return _pcbnew.FOOTPRINT_EmbedFonts(self)
21146
21147 def SetComponentClass(self, aClass):
21148 r"""SetComponentClass(FOOTPRINT self, COMPONENT_CLASS const * aClass)"""
21149 return _pcbnew.FOOTPRINT_SetComponentClass(self, aClass)
21150
21151 def SetTransientComponentClassNames(self, classNames):
21152 r"""SetTransientComponentClassNames(FOOTPRINT self, std::unordered_set< wxString > const & classNames)"""
21153 return _pcbnew.FOOTPRINT_SetTransientComponentClassNames(self, classNames)
21154
21156 r"""GetTransientComponentClassNames(FOOTPRINT self) -> std::unordered_set< wxString > const &"""
21157 return _pcbnew.FOOTPRINT_GetTransientComponentClassNames(self)
21158
21160 r"""ClearTransientComponentClassNames(FOOTPRINT self)"""
21161 return _pcbnew.FOOTPRINT_ClearTransientComponentClassNames(self)
21162
21163 def ResolveComponentClassNames(self, aBoard, aComponentClassNames):
21164 r"""ResolveComponentClassNames(FOOTPRINT self, BOARD aBoard, std::unordered_set< wxString > const & aComponentClassNames)"""
21165 return _pcbnew.FOOTPRINT_ResolveComponentClassNames(self, aBoard, aComponentClassNames)
21166
21168 r"""GetComponentClass(FOOTPRINT self) -> COMPONENT_CLASS const *"""
21169 return _pcbnew.FOOTPRINT_GetComponentClass(self)
21170
21172 r"""GetComponentClassAsString(FOOTPRINT self) -> wxString"""
21173 return _pcbnew.FOOTPRINT_GetComponentClassAsString(self)
21174
21175 def __eq__(self, *args):
21176 r"""
21177 __eq__(FOOTPRINT self, BOARD_ITEM aOther) -> bool
21178 __eq__(FOOTPRINT self, FOOTPRINT aOther) -> bool
21179 """
21180 return _pcbnew.FOOTPRINT___eq__(self, *args)
21181
21182
21183 #def SaveToLibrary(self,filename):
21184 # return SaveFootprintToLibrary(filename,self)
21185
21186 #
21187 # add function, clears the thisown to avoid python from deleting
21188 # the object in the garbage collector
21189 #
21190
21191 def GetFieldsText(self):
21192 """ Returns footprint fields name to text map. """
21193 fields = self.GetFields()
21194 return {str(field.GetName()): str(field.GetText()) for field in fields}
21195
21197 """ Returns footprint fields name to shown text map. """
21198 fields = self.GetFields()
21199 return {str(field.GetName()): str(field.GetShownText(False)) for field in fields}
21200
21201 def GetFieldText(self, key):
21202 """ Returns Field text with a given key if it exists, throws KeyError otherwise. """
21203 if self.HasFieldByName(key):
21204 return self.GetFieldByName(key).GetText()
21205 else:
21206 raise KeyError("Field not found: " + key)
21207
21208 def GetFieldShownText(self, key):
21209 """ Returns Field shown text with a given key if it exists, throws KeyError otherwise. """
21210 if self.HasFieldByName(key):
21211 return self.GetFieldByName(key).GetShownText(False)
21212 else:
21213 raise KeyError("Field not found: " + key)
21214
21215 def SetField(self, key, value):
21216 if self.HasFieldByName(key):
21217 self.GetFieldByName(key).SetText(value)
21218 else:
21219 field = PCB_FIELD(self, self.GetNextFieldId(), key)
21220 field.SetText(value)
21221 self.AddField(field)
21222
21223 def HasField(self, key):
21224 return self.HasFieldByName(key)
21225
21226 def SetFields(self, fields):
21227 """ Sets footprint fields map. """
21228 for k, v in fields.items():
21229 self.SetField(k, v)
21230
21231
21232 def GetBoundingBox(self, *args):
21233 r"""
21234 GetBoundingBox(FOOTPRINT self) -> BOX2I
21235 GetBoundingBox(FOOTPRINT self, bool aIncludeText) -> BOX2I
21236 GetBoundingBox(FOOTPRINT self, bool aIncludeText, bool includeHiddenText) -> BOX2I
21237 """
21238 return _pcbnew.FOOTPRINT_GetBoundingBox(self, *args)
21239
21240# Register FOOTPRINT in _pcbnew:
21241_pcbnew.FOOTPRINT_swigregister(FOOTPRINT)
21242FP_is_LOCKED = _pcbnew.FP_is_LOCKED
21243
21244FP_is_PLACED = _pcbnew.FP_is_PLACED
21245
21246FP_to_PLACE = _pcbnew.FP_to_PLACE
21247
21248FP_PADS_are_LOCKED = _pcbnew.FP_PADS_are_LOCKED
21249
21250
21252 r"""Proxy of C++ FOOTPRINT::cmp_drawings class."""
21253
21254 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
21255 __repr__ = _swig_repr
21256
21257 def __call__(self, itemA, itemB):
21258 r"""__call__(cmp_drawings self, BOARD_ITEM itemA, BOARD_ITEM itemB) -> bool"""
21259 return _pcbnew.cmp_drawings___call__(self, itemA, itemB)
21260
21261 def __init__(self):
21262 r"""__init__(cmp_drawings self) -> cmp_drawings"""
21263 _pcbnew.cmp_drawings_swiginit(self, _pcbnew.new_cmp_drawings())
21264 __swig_destroy__ = _pcbnew.delete_cmp_drawings
21265
21266# Register cmp_drawings in _pcbnew:
21267_pcbnew.cmp_drawings_swigregister(cmp_drawings)
21269 r"""Proxy of C++ FOOTPRINT::cmp_pads class."""
21270
21271 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
21272 __repr__ = _swig_repr
21273
21274 def __call__(self, aFirst, aSecond):
21275 r"""__call__(cmp_pads self, PAD aFirst, PAD aSecond) -> bool"""
21276 return _pcbnew.cmp_pads___call__(self, aFirst, aSecond)
21277
21278 def __init__(self):
21279 r"""__init__(cmp_pads self) -> cmp_pads"""
21280 _pcbnew.cmp_pads_swiginit(self, _pcbnew.new_cmp_pads())
21281 __swig_destroy__ = _pcbnew.delete_cmp_pads
21282
21283# Register cmp_pads in _pcbnew:
21284_pcbnew.cmp_pads_swigregister(cmp_pads)
21286 r"""Proxy of C++ FOOTPRINT::cmp_zones class."""
21287
21288 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
21289 __repr__ = _swig_repr
21290
21291 def __call__(self, aFirst, aSecond):
21292 r"""__call__(cmp_zones self, ZONE aFirst, ZONE aSecond) -> bool"""
21293 return _pcbnew.cmp_zones___call__(self, aFirst, aSecond)
21294
21295 def __init__(self):
21296 r"""__init__(cmp_zones self) -> cmp_zones"""
21297 _pcbnew.cmp_zones_swiginit(self, _pcbnew.new_cmp_zones())
21298 __swig_destroy__ = _pcbnew.delete_cmp_zones
21299
21300# Register cmp_zones in _pcbnew:
21301_pcbnew.cmp_zones_swigregister(cmp_zones)
21303 r"""Proxy of C++ std::vector< FP_3DMODEL > class."""
21304
21305 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
21306 __repr__ = _swig_repr
21307
21308 def iterator(self):
21309 r"""iterator(VECTOR_FP_3DMODEL self) -> SwigPyIterator"""
21310 return _pcbnew.VECTOR_FP_3DMODEL_iterator(self)
21311 def __iter__(self):
21312 return self.iterator()
21313
21314 def __nonzero__(self):
21315 r"""__nonzero__(VECTOR_FP_3DMODEL self) -> bool"""
21316 return _pcbnew.VECTOR_FP_3DMODEL___nonzero__(self)
21317
21318 def __bool__(self):
21319 r"""__bool__(VECTOR_FP_3DMODEL self) -> bool"""
21320 return _pcbnew.VECTOR_FP_3DMODEL___bool__(self)
21321
21322 def __len__(self):
21323 r"""__len__(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
21324 return _pcbnew.VECTOR_FP_3DMODEL___len__(self)
21325
21326 def __getslice__(self, i, j):
21327 r"""__getslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j) -> VECTOR_FP_3DMODEL"""
21328 return _pcbnew.VECTOR_FP_3DMODEL___getslice__(self, i, j)
21329
21330 def __setslice__(self, *args):
21331 r"""
21332 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)
21333 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j, VECTOR_FP_3DMODEL v)
21334 """
21335 return _pcbnew.VECTOR_FP_3DMODEL___setslice__(self, *args)
21336
21337 def __delslice__(self, i, j):
21338 r"""__delslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)"""
21339 return _pcbnew.VECTOR_FP_3DMODEL___delslice__(self, i, j)
21340
21341 def __delitem__(self, *args):
21342 r"""
21343 __delitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i)
21344 __delitem__(VECTOR_FP_3DMODEL self, SWIGPY_SLICEOBJECT * slice)
21345 """
21346 return _pcbnew.VECTOR_FP_3DMODEL___delitem__(self, *args)
21347
21348 def __getitem__(self, *args):
21349 r"""
21350 __getitem__(VECTOR_FP_3DMODEL self, SWIGPY_SLICEOBJECT * slice) -> VECTOR_FP_3DMODEL
21351 __getitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i) -> FP_3DMODEL
21352 """
21353 return _pcbnew.VECTOR_FP_3DMODEL___getitem__(self, *args)
21354
21355 def __setitem__(self, *args):
21356 r"""
21357 __setitem__(VECTOR_FP_3DMODEL self, SWIGPY_SLICEOBJECT * slice, VECTOR_FP_3DMODEL v)
21358 __setitem__(VECTOR_FP_3DMODEL self, SWIGPY_SLICEOBJECT * slice)
21359 __setitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, FP_3DMODEL x)
21360 """
21361 return _pcbnew.VECTOR_FP_3DMODEL___setitem__(self, *args)
21362
21363 def pop(self):
21364 r"""pop(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
21365 return _pcbnew.VECTOR_FP_3DMODEL_pop(self)
21366
21367 def append(self, x):
21368 r"""append(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
21369 return _pcbnew.VECTOR_FP_3DMODEL_append(self, x)
21370
21371 def empty(self):
21372 r"""empty(VECTOR_FP_3DMODEL self) -> bool"""
21373 return _pcbnew.VECTOR_FP_3DMODEL_empty(self)
21374
21375 def size(self):
21376 r"""size(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
21377 return _pcbnew.VECTOR_FP_3DMODEL_size(self)
21378
21379 def swap(self, v):
21380 r"""swap(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL v)"""
21381 return _pcbnew.VECTOR_FP_3DMODEL_swap(self, v)
21382
21383 def begin(self):
21384 r"""begin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
21385 return _pcbnew.VECTOR_FP_3DMODEL_begin(self)
21386
21387 def end(self):
21388 r"""end(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
21389 return _pcbnew.VECTOR_FP_3DMODEL_end(self)
21390
21391 def rbegin(self):
21392 r"""rbegin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
21393 return _pcbnew.VECTOR_FP_3DMODEL_rbegin(self)
21394
21395 def rend(self):
21396 r"""rend(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
21397 return _pcbnew.VECTOR_FP_3DMODEL_rend(self)
21398
21399 def clear(self):
21400 r"""clear(VECTOR_FP_3DMODEL self)"""
21401 return _pcbnew.VECTOR_FP_3DMODEL_clear(self)
21402
21403 def get_allocator(self):
21404 r"""get_allocator(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::allocator_type"""
21405 return _pcbnew.VECTOR_FP_3DMODEL_get_allocator(self)
21406
21407 def pop_back(self):
21408 r"""pop_back(VECTOR_FP_3DMODEL self)"""
21409 return _pcbnew.VECTOR_FP_3DMODEL_pop_back(self)
21410
21411 def erase(self, *args):
21412 r"""
21413 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos) -> std::vector< FP_3DMODEL >::iterator
21414 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator first, std::vector< FP_3DMODEL >::iterator last) -> std::vector< FP_3DMODEL >::iterator
21415 """
21416 return _pcbnew.VECTOR_FP_3DMODEL_erase(self, *args)
21417
21418 def __init__(self, *args):
21419 r"""
21420 __init__(VECTOR_FP_3DMODEL self) -> VECTOR_FP_3DMODEL
21421 __init__(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL other) -> VECTOR_FP_3DMODEL
21422 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size) -> VECTOR_FP_3DMODEL
21423 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size, FP_3DMODEL value) -> VECTOR_FP_3DMODEL
21424 """
21425 _pcbnew.VECTOR_FP_3DMODEL_swiginit(self, _pcbnew.new_VECTOR_FP_3DMODEL(*args))
21426
21427 def push_back(self, x):
21428 r"""push_back(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
21429 return _pcbnew.VECTOR_FP_3DMODEL_push_back(self, x)
21430
21431 def front(self):
21432 r"""front(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
21433 return _pcbnew.VECTOR_FP_3DMODEL_front(self)
21434
21435 def back(self):
21436 r"""back(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
21437 return _pcbnew.VECTOR_FP_3DMODEL_back(self)
21438
21439 def assign(self, n, x):
21440 r"""assign(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)"""
21441 return _pcbnew.VECTOR_FP_3DMODEL_assign(self, n, x)
21442
21443 def resize(self, *args):
21444 r"""
21445 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size)
21446 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size, FP_3DMODEL x)
21447 """
21448 return _pcbnew.VECTOR_FP_3DMODEL_resize(self, *args)
21449
21450 def insert(self, *args):
21451 r"""
21452 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, FP_3DMODEL x) -> std::vector< FP_3DMODEL >::iterator
21453 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)
21454 """
21455 return _pcbnew.VECTOR_FP_3DMODEL_insert(self, *args)
21456
21457 def reserve(self, n):
21458 r"""reserve(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n)"""
21459 return _pcbnew.VECTOR_FP_3DMODEL_reserve(self, n)
21460
21461 def capacity(self):
21462 r"""capacity(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
21463 return _pcbnew.VECTOR_FP_3DMODEL_capacity(self)
21464 __swig_destroy__ = _pcbnew.delete_VECTOR_FP_3DMODEL
21465
21466# Register VECTOR_FP_3DMODEL in _pcbnew:
21467_pcbnew.VECTOR_FP_3DMODEL_swigregister(VECTOR_FP_3DMODEL)
21468
21469def GetPluginForPath(libname):
21470 plugin_type = PCB_IO_MGR.GuessPluginTypeFromLibPath( libname );
21471 return PCB_IO_MGR.PluginFind(plugin_type)
21472
21474 plug = GetPluginForPath(libname)
21475 return plug.FootprintEnumerate(libname)
21476
21477def FootprintLoad(libname,name,preserveUUID=False):
21478 plug = GetPluginForPath(libname)
21479 return plug.FootprintLoad(libname,name,preserveUUID)
21480
21481def FootprintSave(libname,module):
21482 plug = GetPluginForPath(libname)
21483 return plug.FootprintSave(libname,module)
21484
21485def FootprintDelete(libname,name):
21486 plug = GetPluginForPath(libname)
21487 plug.FootprintDelete(libname,name)
21488
21490 plug = GetPluginForPath(libname)
21491 plug.CreateLibrary(libname)
21492
21494 plug = GetPluginForPath(libname)
21495 plug.DeleteLibrary(libname)
21496
21498 plug = GetPluginForPath(libname)
21499 plug.FootprintLibIsWritable(libname)
21500
21502 r"""Proxy of C++ PYTHON_FOOTPRINT_WIZARD_LIST class."""
21503
21504 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
21505 __repr__ = _swig_repr
21506
21507 @staticmethod
21508 def register_wizard(wizard):
21509 r"""register_wizard(PyObject * wizard)"""
21510 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
21511
21512 @staticmethod
21514 r"""deregister_wizard(PyObject * wizard)"""
21515 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
21516
21517 def __init__(self):
21518 r"""__init__(PYTHON_FOOTPRINT_WIZARD_LIST self) -> PYTHON_FOOTPRINT_WIZARD_LIST"""
21519 _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swiginit(self, _pcbnew.new_PYTHON_FOOTPRINT_WIZARD_LIST())
21520 __swig_destroy__ = _pcbnew.delete_PYTHON_FOOTPRINT_WIZARD_LIST
21521
21522# Register PYTHON_FOOTPRINT_WIZARD_LIST in _pcbnew:
21523_pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swigregister(PYTHON_FOOTPRINT_WIZARD_LIST)
21525 r"""Proxy of C++ PYTHON_ACTION_PLUGINS class."""
21526
21527 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
21528 __repr__ = _swig_repr
21529
21530 @staticmethod
21531 def register_action(wizard):
21532 r"""register_action(PyObject * wizard)"""
21533 return _pcbnew.PYTHON_ACTION_PLUGINS_register_action(wizard)
21534
21535 @staticmethod
21537 r"""deregister_action(PyObject * wizard)"""
21538 return _pcbnew.PYTHON_ACTION_PLUGINS_deregister_action(wizard)
21539
21540 def __init__(self):
21541 r"""__init__(PYTHON_ACTION_PLUGINS self) -> PYTHON_ACTION_PLUGINS"""
21542 _pcbnew.PYTHON_ACTION_PLUGINS_swiginit(self, _pcbnew.new_PYTHON_ACTION_PLUGINS())
21543 __swig_destroy__ = _pcbnew.delete_PYTHON_ACTION_PLUGINS
21544
21545# Register PYTHON_ACTION_PLUGINS in _pcbnew:
21546_pcbnew.PYTHON_ACTION_PLUGINS_swigregister(PYTHON_ACTION_PLUGINS)
21547
21548def ToMM(iu):
21549 if type(iu) in [int,float]:
21550 return float(iu) / float(pcbIUScale.IU_PER_MM)
21551 elif type(iu) in [wxPoint,wxSize,VECTOR2I,VECTOR2L]:
21552 return tuple(map(ToMM,iu))
21553 else:
21554 raise TypeError("ToMM() expects int, float, wxPoint, wxSize, VECTOR2I or VECTOR2L, instead got type " + str(type(iu)))
21555
21556def FromMM(mm):
21557 if type(mm) in [int,float]:
21558 return int(float(mm) * float(pcbIUScale.IU_PER_MM))
21559 elif type(mm) in [wxPoint,wxSize,VECTOR2I,VECTOR2L]:
21560 return tuple(map(FromMM,mm))
21561 else:
21562 raise TypeError("FromMM() expects int, float, wxPoint, wxSize, VECTOR2I or VECTOR2L, instead got type " + str(type(mm)))
21563
21564def ToMils(iu):
21565 if type(iu) in [int,float]:
21566 return float(iu) / float(pcbIUScale.IU_PER_MILS)
21567 elif type(iu) in [wxPoint,wxSize,VECTOR2I,VECTOR2L]:
21568 return tuple(map(ToMils,iu))
21569 else:
21570 raise TypeError("ToMils() expects int, float, wxPoint, wxSize, VECTOR2I or VECTOR2L, instead got type " + str(type(iu)))
21571
21572def FromMils(mils):
21573 if type(mils) in [int,float]:
21574 return int(float(mils)*float(pcbIUScale.IU_PER_MILS))
21575 elif type(mils) in [wxPoint,wxSize,VECTOR2I,VECTOR2L]:
21576 return tuple(map(FromMils,mils))
21577 else:
21578 raise TypeError("FromMils() expects int, float, wxPoint, wxSize, VECTOR2I or VECTOR2L, instead got type " + str(type(mils)))
21579
21580def PutOnGridMM(value, gridSizeMM):
21581 thresh = FromMM(gridSizeMM)
21582 return round(value/thresh)*thresh
21583
21584def PutOnGridMils(value, gridSizeMils):
21585 thresh = FromMils(gridSizeMils)
21586 return round(value/thresh)*thresh
21587
21588def wxSizeMM(mmx,mmy):
21589 return wxSize(FromMM(mmx),FromMM(mmy))
21590
21591def wxSizeMils(mmx,mmy):
21592 return wxSize(FromMils(mmx),FromMils(mmy))
21593
21594def wxPointMM(mmx,mmy):
21595 return wxPoint(FromMM(mmx),FromMM(mmy))
21596
21597def wxPointMils(mmx,mmy):
21598 return wxPoint(FromMils(mmx),FromMils(mmy))
21599
21600def VECTOR2I_MM(mmx,mmy):
21601 return VECTOR2I(FromMM(mmx),FromMM(mmy))
21602
21603def VECTOR2I_Mils(mmx,mmy):
21604 return VECTOR2I(FromMils(mmx),FromMils(mmy))
21605
21606def wxRectMM(x,y,wx,wy):
21607 x = int(FromMM(x))
21608 y = int(FromMM(y))
21609 wx = int(FromMM(wx))
21610 wy = int (FromMM(wy))
21611 return wxRect(x,y,wx,wy)
21612
21613def wxRectMils(x,y,wx,wy):
21614 x = int(FromMils(x))
21615 y = int(FromMils(y))
21616 wx = int(FromMils(wx))
21617 wy = int(FromMils(wy))
21618 return wxRect(x,y,wx,wy)
21619
21620
21622 """Return the semantic version of KiCad"""
21623 return GetSemanticVersion()
21624
21626 """Return the full, git-based version of KiCad"""
21627 return GetBuildVersion()
21628
21629
def __init__(self)
Definition: pcbnew.py:16101
def Run(self)
Definition: pcbnew.py:4869
def GetShowToolbarButton(self)
Definition: pcbnew.py:4860
def GetIconFileName(self, dark)
Definition: pcbnew.py:4863
def GetCategoryName(self)
Definition: pcbnew.py:4854
def GetDescription(self)
Definition: pcbnew.py:4857
def GetName(self)
Definition: pcbnew.py:4851
def __init__(self)
Definition: pcbnew.py:4836
def defaults(self)
Definition: pcbnew.py:4843
def GetClassName(self)
Definition: pcbnew.py:4848
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:7802
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:10632
def SetTeardropsEnabled(self, aEnable)
Definition: pcbnew.py:10670
def SetTeardropBestWidthRatio(self, aRatio)
Definition: pcbnew.py:10694
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:10588
def SetLocalRatsnestVisible(self, aVisible)
Definition: pcbnew.py:10655
def SetTeardropMaxTrackWidth(self, aRatio)
Definition: pcbnew.py:10734
def GetTeardropAllowSpanTwoTracks(self)
Definition: pcbnew.py:10730
def GetTeardropMaxLength(self)
Definition: pcbnew.py:10690
def GetTeardropParams(self, *args)
Definition: pcbnew.py:10663
def GetTeardropBestWidthRatio(self)
Definition: pcbnew.py:10698
def GetClearanceOverrides(self, aSource)
Definition: pcbnew.py:10636
def SetNetCode(self, *args)
Definition: pcbnew.py:10609
def SetTeardropCurved(self, aCurve)
Definition: pcbnew.py:10710
def GetTeardropMaxTrackWidth(self)
Definition: pcbnew.py:10738
def SetTeardropAllowSpanTwoTracks(self, aAllow)
Definition: pcbnew.py:10726
def GetLocalClearance(self, *args)
Definition: pcbnew.py:10640
def SetTeardropMaxWidth(self, aMaxWidth)
Definition: pcbnew.py:10702
def GetLocalRatsnestVisible(self)
Definition: pcbnew.py:10659
def SetTeardropBestLengthRatio(self, aRatio)
Definition: pcbnew.py:10678
def GetTeardropBestLengthRatio(self)
Definition: pcbnew.py:10682
def GetTeardropPreferZoneConnections(self)
Definition: pcbnew.py:10722
def GetEffectiveNetClass(self)
Definition: pcbnew.py:10647
def SetNet(self, aNetInfo)
Definition: pcbnew.py:10601
def SetTeardropPreferZoneConnections(self, aPrefer)
Definition: pcbnew.py:10718
def SetTeardropMaxLength(self, aMaxLength)
Definition: pcbnew.py:10686
def SetAuxOrigin(self, aOrigin)
Definition: pcbnew.py:11341
def IsLayerEnabled(self, aLayerId)
Definition: pcbnew.py:11281
def GetCustomDiffPairWidth(self)
Definition: pcbnew.py:11234
def GetLineThickness(self, aLayer)
Definition: pcbnew.py:11317
def GetTextSize(self, aLayer)
Definition: pcbnew.py:11321
def SetEnabledLayers(self, aMask)
Definition: pcbnew.py:11277
def SetDefaultZoneSettings(self, aSettings)
Definition: pcbnew.py:11135
def UseCustomDiffPairDimensions(self, *args)
Definition: pcbnew.py:11254
def SetCustomDiffPairGap(self, aGap)
Definition: pcbnew.py:11238
def GetLayerClass(self, aLayer)
Definition: pcbnew.py:11337
def LoadFromFile(self, *args)
Definition: pcbnew.py:11108
def GetUserDefinedLayerCount(self)
Definition: pcbnew.py:11293
def GetCurrentDiffPairWidth(self)
Definition: pcbnew.py:11261
def SetBoardThickness(self, aThickness)
Definition: pcbnew.py:11305
def GetSeverity(self, aDRCErrorCode)
Definition: pcbnew.py:11123
def GetHolePlatingThickness(self)
Definition: pcbnew.py:11313
def GetBiggestClearanceValue(self)
Definition: pcbnew.py:11155
def Ignore(self, aDRCErrorCode)
Definition: pcbnew.py:11127
def CloneFrom(self, aOther)
Definition: pcbnew.py:11421
def SetCustomTrackWidth(self, aWidth)
Definition: pcbnew.py:11175
def SetDiffPairIndex(self, aIndex)
Definition: pcbnew.py:11226
def GetTextUpright(self, aLayer)
Definition: pcbnew.py:11333
def GetStackupDescriptor(self, *args)
Definition: pcbnew.py:11112
def GetCurrentNetClassName(self)
Definition: pcbnew.py:11139
def __eq__(self, aOther)
Definition: pcbnew.py:11093
def GetDefaultZoneSettings(self)
Definition: pcbnew.py:11131
def UseCustomTrackViaSize(self, *args)
Definition: pcbnew.py:11215
def SetViaSizeIndex(self, aIndex)
Definition: pcbnew.py:11187
def __ne__(self, aOther)
Definition: pcbnew.py:11097
def GetCustomDiffPairViaGap(self)
Definition: pcbnew.py:11250
def SetCustomViaSize(self, aSize)
Definition: pcbnew.py:11195
def SetGridOrigin(self, aOrigin)
Definition: pcbnew.py:11349
def SetCustomViaDrill(self, aDrill)
Definition: pcbnew.py:11207
def GetSmallestClearanceValue(self)
Definition: pcbnew.py:11159
def GetTextItalic(self, aLayer)
Definition: pcbnew.py:11329
def GetCurrentDiffPairViaGap(self)
Definition: pcbnew.py:11269
def SetCopperLayerCount(self, aNewLayerCount)
Definition: pcbnew.py:11289
def __init__(self, *args)
Definition: pcbnew.py:11101
def SetUserDefinedLayerCount(self, aNewLayerCount)
Definition: pcbnew.py:11297
def GetTextThickness(self, aLayer)
Definition: pcbnew.py:11325
def SetCustomDiffPairWidth(self, aWidth)
Definition: pcbnew.py:11230
def SetTrackWidthIndex(self, aIndex)
Definition: pcbnew.py:11167
def SetCustomDiffPairViaGap(self, aGap)
Definition: pcbnew.py:11246
def Delete(self, item)
Definition: pcbnew.py:10569
def DeleteNative(self, aItem)
Definition: pcbnew.py:10545
def Remove(self, item)
Definition: pcbnew.py:10559
def RemoveNative(self, *args)
Definition: pcbnew.py:10541
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:10533
def Add(self, item)
Definition: pcbnew.py:10549
def AddNative(self, *args)
Definition: pcbnew.py:10537
def CopyFrom(self, aOther)
Definition: pcbnew.py:9995
def IsOnLayer(self, aLayer)
Definition: pcbnew.py:10143
def GetLayer(self)
Definition: pcbnew.py:10103
def IsKnockout(self)
Definition: pcbnew.py:10147
def IsConnected(self)
Definition: pcbnew.py:10027
def SetIsKnockout(self, aKnockout)
Definition: pcbnew.py:10151
def Move(self, aMoveVector)
Definition: pcbnew.py:10171
def SetStartEnd(self, start, end)
Definition: pcbnew.py:10275
def SetParentGroup(self, aGroup)
Definition: pcbnew.py:9999
def SetFPRelativePosition(self, aPos)
Definition: pcbnew.py:10083
def BoardCopperLayerCount(self)
Definition: pcbnew.py:10111
def GetParent(self)
Definition: pcbnew.py:10071
def StyleFromSettings(self, settings)
Definition: pcbnew.py:10163
def SetStroke(self, aStroke)
Definition: pcbnew.py:10095
def GetFontMetrics(self)
Definition: pcbnew.py:10099
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9990
def HasDrilledHole(self)
Definition: pcbnew.py:10047
def GetParentGroup(self)
Definition: pcbnew.py:10003
def Rotate(self, aRotCentre, aAngle)
Definition: pcbnew.py:10175
def GetLayerSet(self)
Definition: pcbnew.py:10119
def Cast(self)
Definition: pcbnew.py:10216
def Flip(self, aCentre, aFlipDirection)
Definition: pcbnew.py:10179
def NormalizeForCompare(self)
Definition: pcbnew.py:10191
def SetLayer(self, aLayer)
Definition: pcbnew.py:10131
def SetLayerSet(self, aLayers)
Definition: pcbnew.py:10123
def GetCenter(self)
Definition: pcbnew.py:10015
def SwapItemData(self, aImage)
Definition: pcbnew.py:10139
def GetEffectiveHoleShape(self)
Definition: pcbnew.py:10059
def GetStroke(self)
Definition: pcbnew.py:10091
def IsOnCopperLayer(self)
Definition: pcbnew.py:10039
def Similarity(self, aItem)
Definition: pcbnew.py:10031
def GetY(self)
Definition: pcbnew.py:10011
def GetX(self)
Definition: pcbnew.py:10007
def SetX(self, aX)
Definition: pcbnew.py:10019
def IsLocked(self)
Definition: pcbnew.py:10155
def BoardLayerSet(self)
Definition: pcbnew.py:10115
def GetParentAsString(self)
Definition: pcbnew.py:10202
def DeleteStructure(self)
Definition: pcbnew.py:10167
def GetFPRelativePosition(self)
Definition: pcbnew.py:10079
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:10055
def Normalize(self)
Definition: pcbnew.py:10187
def HasLineStroke(self)
Definition: pcbnew.py:10087
def RunOnChildren(self, aFunction)
Definition: pcbnew.py:10063
def GetLayerName(self)
Definition: pcbnew.py:10206
def GetParentFootprint(self)
Definition: pcbnew.py:10075
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:10067
def Mirror(self, aCentre, aFlipDirection)
Definition: pcbnew.py:10183
def Duplicate(self)
Definition: pcbnew.py:10135
def SetLocked(self, aLocked)
Definition: pcbnew.py:10159
def HasHole(self)
Definition: pcbnew.py:10043
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:10210
def IsTented(self, aLayer)
Definition: pcbnew.py:10051
def SetY(self, aY)
Definition: pcbnew.py:10023
def BoardLayerCount(self)
Definition: pcbnew.py:10107
def IsSideSpecific(self)
Definition: pcbnew.py:10127
def __eq__(self, aItem)
Definition: pcbnew.py:10035
def SetPos(self, p)
Definition: pcbnew.py:10271
def OnBoardHighlightNetChanged(self, aBoard)
Definition: pcbnew.py:19571
def OnBoardItemAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:19543
def OnBoardRatsnestChanged(self, aBoard)
Definition: pcbnew.py:19575
def OnBoardItemChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:19563
def OnBoardCompositeUpdate(self, aBoard, aAddedItems, aRemovedItems, aChangedItems)
Definition: pcbnew.py:19579
def OnBoardNetSettingsChanged(self, aBoard)
Definition: pcbnew.py:19559
def __init__(self)
Definition: pcbnew.py:19583
def OnBoardItemsAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:19547
def OnBoardItemRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:19551
def OnBoardItemsChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:19567
def OnBoardItemsRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:19555
def DeleteMARKERs(self, *args)
Definition: pcbnew.py:19796
def RemoveListener(self, aListener)
Definition: pcbnew.py:20155
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:19685
def IsHighLightNetON(self)
Definition: pcbnew.py:19839
def IsFootprintLayerVisible(self, aLayer)
Definition: pcbnew.py:19923
def GetEmbeddedFiles(self, *args)
Definition: pcbnew.py:20199
def GetNetsByNetcode(self)
Definition: pcbnew.py:20257
def BuildListOfNets(self)
Definition: pcbnew.py:20027
def GetPadFast(self, aPosition, aLayerMask)
Definition: pcbnew.py:20110
def SetLayerDescr(self, aIndex, aLayer)
Definition: pcbnew.py:20007
def GetLayerName(self, aLayer)
Definition: pcbnew.py:19994
def GetPad(self, *args)
Definition: pcbnew.py:20114
def GetComponentClassManager(self)
Definition: pcbnew.py:20214
def Footprints(self)
Definition: pcbnew.py:19635
def GetLayerType(self, aLayer)
Definition: pcbnew.py:20011
def SetCopperLayerCount(self, aCount)
Definition: pcbnew.py:19855
def RemoveAllListeners(self)
Definition: pcbnew.py:20159
def GetCopperLayerCount(self)
Definition: pcbnew.py:19851
def LayerDepth(self, aStartLayer, aEndLayer)
Definition: pcbnew.py:19875
def GetTracks(self)
Definition: pcbnew.py:20234
def GetPads(self)
Definition: pcbnew.py:20023
def FillItemMap(self, aMap)
Definition: pcbnew.py:19776
def GetPageSettings(self)
Definition: pcbnew.py:19935
def SetProject(self, aProject, aReferenceOnly=False)
Definition: pcbnew.py:19807
def RecordDRCExclusions(self)
Definition: pcbnew.py:19819
def GetFileName(self)
Definition: pcbnew.py:19631
def GroupsSanityCheck(self, repair=False)
Definition: pcbnew.py:20179
def TestZoneIntersection(self, aZone1, aZone2)
Definition: pcbnew.py:20106
def ResetNetHighLight(self)
Definition: pcbnew.py:19827
def Save(self, filename)
Definition: pcbnew.py:20236
def SetOutlinesChainingEpsilon(self, aValue)
Definition: pcbnew.py:19982
def RemoveNative(self, *args)
Definition: pcbnew.py:19727
def GetAllNetClasses(self)
Definition: pcbnew.py:20270
def DetachAllFootprints(self)
Definition: pcbnew.py:19768
def GetFirstFootprint(self)
Definition: pcbnew.py:19760
def GetFonts(self)
Definition: pcbnew.py:20206
def GetOutlinesChainingEpsilon(self)
Definition: pcbnew.py:19978
def ResolveTextVar(self, token, aDepth)
Definition: pcbnew.py:19689
def GetUserDefinedLayerCount(self)
Definition: pcbnew.py:19859
def SetHighLightNet(self, aNetCode, aMulti=False)
Definition: pcbnew.py:19835
def ComputeBoundingBox(self, aBoardEdgesOnly=False)
Definition: pcbnew.py:20058
def RemoveAll(self, *args)
Definition: pcbnew.py:19731
def UpdateRatsnestExclusions(self)
Definition: pcbnew.py:19823
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:19598
def GroupsSanityCheckInternal(self, repair)
Definition: pcbnew.py:20183
def SetUserDefinedLayerCount(self, aCount)
Definition: pcbnew.py:19863
def Zones(self)
Definition: pcbnew.py:19639
def OnItemsChanged(self, aItems)
Definition: pcbnew.py:20167
def FixupEmbeddedData(self)
Definition: pcbnew.py:19752
def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False)
Definition: pcbnew.py:20135
def GetBoardUse(self)
Definition: pcbnew.py:19611
def GetLayerID(self, aLayerName)
Definition: pcbnew.py:19990
def GetCopperLayerStackMaxId(self)
Definition: pcbnew.py:19867
def GetVisibleElements(self)
Definition: pcbnew.py:19903
def GetItem(self, aID)
Definition: pcbnew.py:19772
def IsElementVisible(self, aLayer)
Definition: pcbnew.py:19915
def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1)
Definition: pcbnew.py:20123
def FinalizeBulkRemove(self, aRemovedItems)
Definition: pcbnew.py:19748
def AddListener(self, aListener)
Definition: pcbnew.py:20151
def Drawings(self, *args)
Definition: pcbnew.py:19651
def AddNative(self, *args)
Definition: pcbnew.py:19723
def SetVisibleAlls(self)
Definition: pcbnew.py:19911
def GetHighLightNetCodes(self)
Definition: pcbnew.py:19831
def OnItemChanged(self, aItem)
Definition: pcbnew.py:20163
def GetFootprints(self)
Definition: pcbnew.py:20232
def TracksInNet(self, aNetCode)
Definition: pcbnew.py:20131
def GetStandardLayerName(aLayerId)
Definition: pcbnew.py:20003
def IsFootprintHolder(self)
Definition: pcbnew.py:19623
def FinalizeBulkAdd(self, aNewItems)
Definition: pcbnew.py:19744
def FindNet(self, *args)
Definition: pcbnew.py:20031
def SetTitleBlock(self, aTitleBlock)
Definition: pcbnew.py:19958
def OnRatsnestChanged(self)
Definition: pcbnew.py:20175
def HighLightON(self, aValue=True)
Definition: pcbnew.py:19843
def GetMaxClearanceValue(self)
Definition: pcbnew.py:20139
def SetVisibleLayers(self, aLayerMask)
Definition: pcbnew.py:19899
def IncrementTimeStamp(self)
Definition: pcbnew.py:19615
def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
Definition: pcbnew.py:20102
def CacheTriangulation(self, *args)
Definition: pcbnew.py:19756
def GetViasDimensionsList(self)
Definition: pcbnew.py:20245
def IsLayerVisible(self, aLayer)
Definition: pcbnew.py:19891
def ResolveDRCExclusions(self, aCreateMarkers)
Definition: pcbnew.py:19815
def MatchDpSuffix(self, aNetName, aComplementNet)
Definition: pcbnew.py:20038
def GetTimeStamp(self)
Definition: pcbnew.py:19619
def SetPlotOptions(self, aOptions)
Definition: pcbnew.py:19947
def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False, aIncludeNPTHAsOutlines=False)
Definition: pcbnew.py:19974
def GetEnabledLayers(self)
Definition: pcbnew.py:19879
def FindFootprintByReference(self, aReference)
Definition: pcbnew.py:20066
def HighLightOFF(self)
Definition: pcbnew.py:19847
def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
Definition: pcbnew.py:19986
def SetGenerator(self, aGenerator)
Definition: pcbnew.py:19715
def IsEmpty(self)
Definition: pcbnew.py:19699
def BulkRemoveStaleTeardrops(self, aCommit)
Definition: pcbnew.py:19740
def GetZoneList(self, aIncludeZonesInFootprints=False)
Definition: pcbnew.py:20094
def EmbedFonts(self)
Definition: pcbnew.py:20210
def GetNetClasses(self)
Definition: pcbnew.py:20239
def SetAreasNetCodesFromNetNames(self)
Definition: pcbnew.py:20086
def GetProperties(self)
Definition: pcbnew.py:19677
def OnItemsCompositeUpdate(self, aAddedItems, aRemovedItems, aChangedItems)
Definition: pcbnew.py:20171
def Markers(self)
Definition: pcbnew.py:19647
def SetLegacyTeardrops(self, aFlag)
Definition: pcbnew.py:20195
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:19939
def ClearProject(self)
Definition: pcbnew.py:19811
def DeleteAllFootprints(self)
Definition: pcbnew.py:19764
def DpCoupledNet(self, aNet)
Definition: pcbnew.py:20042
def GetAreaCount(self)
Definition: pcbnew.py:20098
def GetStackupOrDefault(self)
Definition: pcbnew.py:19931
def GetBoardEdgesBoundingBox(self)
Definition: pcbnew.py:20062
def ClassOf(aItem)
Definition: pcbnew.py:19603
def GetArea(self, index)
Definition: pcbnew.py:20090
def FlipLayer(self, aLayer)
Definition: pcbnew.py:19871
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:19711
def UpdateUserUnits(self, aItem, aView)
Definition: pcbnew.py:19970
def GetVisibleLayers(self)
Definition: pcbnew.py:19895
def GetNetClassAssignmentCandidates(self)
Definition: pcbnew.py:20074
def RemoveUnusedNets(self, aCommit)
Definition: pcbnew.py:20050
def Tracks(self, *args)
Definition: pcbnew.py:19658
def Generators(self)
Definition: pcbnew.py:19643
def ConvertKIIDsToCrossReferences(self, aSource)
Definition: pcbnew.py:19784
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:19707
def Groups(self)
Definition: pcbnew.py:19669
def SetProperties(self, aProps)
Definition: pcbnew.py:19681
def GetTrackLength(self, aTrack)
Definition: pcbnew.py:20127
def SanitizeNetcodes(self)
Definition: pcbnew.py:20147
def GetCurrentNetClassName(self)
Definition: pcbnew.py:20242
def SetLayerType(self, aLayer, aLayerType)
Definition: pcbnew.py:20015
def GetNodesCount(self, aNet=-1)
Definition: pcbnew.py:20019
def GetNetcodeFromNetname(self, netname)
Definition: pcbnew.py:20263
def FindFootprintByPath(self, aPath)
Definition: pcbnew.py:20070
def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
Definition: pcbnew.py:20078
def AllConnectedItems(self)
Definition: pcbnew.py:19673
def GetNetsByName(self)
Definition: pcbnew.py:20251
def SetFileName(self, aFileName)
Definition: pcbnew.py:19627
def SetEnabledLayers(self, aLayerMask)
Definition: pcbnew.py:19883
def GetGenerator(self)
Definition: pcbnew.py:19719
def GetNetInfo(self)
Definition: pcbnew.py:20046
def GetTrackWidthList(self)
Definition: pcbnew.py:20248
def GroupLegalOps(self, selection)
Definition: pcbnew.py:20187
def BuildConnectivity(self, aReporter=None)
Definition: pcbnew.py:19792
def SynchronizeProperties(self)
Definition: pcbnew.py:20082
def GetConnectivity(self)
Definition: pcbnew.py:19788
def GetTitleBlock(self, *args)
Definition: pcbnew.py:19951
def SetElementVisibility(self, aLayer, aNewState)
Definition: pcbnew.py:19919
def GetDrawings(self)
Definition: pcbnew.py:20233
def GetProject(self)
Definition: pcbnew.py:19803
def IsLayerEnabled(self, aLayer)
Definition: pcbnew.py:19887
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:19703
def SetLayerName(self, aLayer, aLayerName)
Definition: pcbnew.py:19998
def ConvertCrossReferencesToKIIDs(self, aSource)
Definition: pcbnew.py:19780
def GetDesignSettings(self)
Definition: pcbnew.py:19927
def LegacyTeardrops(self)
Definition: pcbnew.py:20191
def GetPlotOptions(self)
Definition: pcbnew.py:19943
def MapNets(self, aDestBoard)
Definition: pcbnew.py:20143
def SetBoardUse(self, aUse)
Definition: pcbnew.py:19607
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:19966
def GetNetCount(self)
Definition: pcbnew.py:20054
def GetItemSet(self)
Definition: pcbnew.py:19665
def SetVisibleElements(self, aMask)
Definition: pcbnew.py:19907
def GetInflated(self, *args)
Definition: pcbnew.py:5441
def SquaredDiagonal(self)
Definition: pcbnew.py:5467
def GetY(self)
Definition: pcbnew.py:5314
def IntersectsCircle(self, aCenter, aRadius)
Definition: pcbnew.py:5422
def Contains(self, *args)
Definition: pcbnew.py:5298
def GetWidth(self)
Definition: pcbnew.py:5330
def Merge(self, *args)
Definition: pcbnew.py:5448
def Centre(self)
Definition: pcbnew.py:5286
def GetWithOffset(self, aMoveVector)
Definition: pcbnew.py:5383
def __init__(self, *args)
Definition: pcbnew.py:5505
def GetHeight(self)
Definition: pcbnew.py:5334
def SetOrigin(self, *args)
Definition: pcbnew.py:5362
def ByCenter(aCenter, aSize)
Definition: pcbnew.py:5278
def GetBoundingBoxRotated(self, aRotCenter, aAngle)
Definition: pcbnew.py:5455
def Offset(self, *args)
Definition: pcbnew.py:5376
def GetTop(self)
Definition: pcbnew.py:5350
def SetX(self, val)
Definition: pcbnew.py:5387
def __eq__(self, aOther)
Definition: pcbnew.py:5493
def GetCenter(self)
Definition: pcbnew.py:5354
def GetBottom(self)
Definition: pcbnew.py:5342
def GetSizeMax(self)
Definition: pcbnew.py:5358
def GetRight(self)
Definition: pcbnew.py:5338
def NearestPoint(self, aPoint)
Definition: pcbnew.py:5485
def Format(self)
Definition: pcbnew.py:5430
def SetY(self, val)
Definition: pcbnew.py:5391
def SquaredDistance(self, *args)
Definition: pcbnew.py:5471
def Intersect(self, aRect)
Definition: pcbnew.py:5410
def SetWidth(self, val)
Definition: pcbnew.py:5395
def Distance(self, *args)
Definition: pcbnew.py:5478
def FarthestPointTo(self, aPoint)
Definition: pcbnew.py:5489
def SetEnd(self, *args)
Definition: pcbnew.py:5403
def GetEnd(self)
Definition: pcbnew.py:5326
def Intersects(self, *args)
Definition: pcbnew.py:5414
def SetHeight(self, val)
Definition: pcbnew.py:5399
def GetArea(self)
Definition: pcbnew.py:5459
def GetPosition(self)
Definition: pcbnew.py:5322
def SetSize(self, *args)
Definition: pcbnew.py:5369
def GetOrigin(self)
Definition: pcbnew.py:5318
def GetLeft(self)
Definition: pcbnew.py:5346
def Normalize(self)
Definition: pcbnew.py:5294
def Move(self, aMoveVector)
Definition: pcbnew.py:5290
def ByCorners(aCorner1, aCorner2)
Definition: pcbnew.py:5273
def GetX(self)
Definition: pcbnew.py:5310
def Diagonal(self)
Definition: pcbnew.py:5463
def __ne__(self, aOther)
Definition: pcbnew.py:5497
def GetSize(self)
Definition: pcbnew.py:5306
def IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
Definition: pcbnew.py:5426
def SetMaximum(self)
Definition: pcbnew.py:5282
def IsValid(self)
Definition: pcbnew.py:5501
def Inflate(self, *args)
Definition: pcbnew.py:5434
def __init__(self, *args)
Definition: pcbnew.py:6355
Definition: pcbnew.py:11570
def __init__(self)
Definition: pcbnew.py:11581
def GetBrightness(self)
Definition: pcbnew.py:2338
def Desaturate(self)
Definition: pcbnew.py:2314
def Inverted(self)
Definition: pcbnew.py:2334
def SetFromWxString(self, aColorString)
Definition: pcbnew.py:2266
def LegacyMix(self, aColor)
Definition: pcbnew.py:2286
def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0)
Definition: pcbnew.py:2252
def Darkened(self, aFactor)
Definition: pcbnew.py:2322
def ToHexString(self)
Definition: pcbnew.py:2278
def FindNearestLegacyColor(aR, aG, aB)
Definition: pcbnew.py:2368
def ToColour(self)
Definition: pcbnew.py:2282
def Darken(self, aFactor)
Definition: pcbnew.py:2302
def Mix(self, aColor, aFactor)
Definition: pcbnew.py:2326
def ToCSSString(self)
Definition: pcbnew.py:2270
def Brighten(self, aFactor)
Definition: pcbnew.py:2298
def ToHSL(self, aOutHue, aOutSaturation, aOutLightness)
Definition: pcbnew.py:2290
def Compare(self, aRhs)
Definition: pcbnew.py:2354
def Distance(self, other)
Definition: pcbnew.py:2350
def FromHSL(self, aInHue, aInSaturation, aInLightness)
Definition: pcbnew.py:2294
def WithAlpha(self, aAlpha)
Definition: pcbnew.py:2330
def SetFromHexString(self, aColorString)
Definition: pcbnew.py:2274
def Invert(self)
Definition: pcbnew.py:2306
def Saturate(self, aFactor)
Definition: pcbnew.py:2310
def Brightened(self, aFactor)
Definition: pcbnew.py:2318
def ContrastRatio(aLeft, aRight)
Definition: pcbnew.py:2363
def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False)
Definition: pcbnew.py:2342
def RelativeLuminance(self)
Definition: pcbnew.py:2358
def __init__(self, *args)
Definition: pcbnew.py:2256
def FromHSV(self, aInH, aInS, aInV)
Definition: pcbnew.py:2346
def GetConnectedPads(self, *args)
Definition: pcbnew.py:11689
def RunOnUnconnectedEdges(self, aFunc)
Definition: pcbnew.py:11704
def Add(self, aItem)
Definition: pcbnew.py:11629
def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False)
Definition: pcbnew.py:11728
def GetNetNameForNetCode(self, nc)
Definition: pcbnew.py:11768
def GetUnconnectedCount(self, aVisibileOnly)
Definition: pcbnew.py:11669
def GetConnectivityAlgo(self)
Definition: pcbnew.py:11740
def GetNetSettings(self)
Definition: pcbnew.py:11760
def Update(self, aItem)
Definition: pcbnew.py:11637
def RefreshNetcodeMap(self, aBoard)
Definition: pcbnew.py:11772
def RemoveInvalidRefs(self)
Definition: pcbnew.py:11752
def Remove(self, aItem)
Definition: pcbnew.py:11633
def GetConnectedTracks(self, aItem)
Definition: pcbnew.py:11685
def GetLocalRatsnest(self)
Definition: pcbnew.py:11724
def BlockRatsnestItems(self, aItems)
Definition: pcbnew.py:11736
def IsConnectedOnLayer(self, *args)
Definition: pcbnew.py:11673
def RecalculateRatsnest(self, aCommit=None)
Definition: pcbnew.py:11665
def ComputeLocalRatsnest(self, *args)
Definition: pcbnew.py:11720
def ClearLocalRatsnest(self)
Definition: pcbnew.py:11712
def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False)
Definition: pcbnew.py:11661
def GetPadCount(self, aNet=-1)
Definition: pcbnew.py:11681
def HideLocalRatsnest(self)
Definition: pcbnew.py:11716
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:11756
def Move(self, aDelta)
Definition: pcbnew.py:11641
def GetFromToCache(self)
Definition: pcbnew.py:11776
def Build(self, *args)
Definition: pcbnew.py:11622
def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None)
Definition: pcbnew.py:11708
def HasNetNameForNetCode(self, nc)
Definition: pcbnew.py:11764
def __init__(self, *args)
Definition: pcbnew.py:11615
def PropagateNets(self, aCommit=None)
Definition: pcbnew.py:11657
def MarkItemNetAsDirty(self, aItem)
Definition: pcbnew.py:11748
def GetNodeCount(self, aNet=-1)
Definition: pcbnew.py:11677
def GetConnectedPadsAndVias(self, aItem, pads, vias)
Definition: pcbnew.py:11696
def GetNetItems(self, aNetCode, aTypes)
Definition: pcbnew.py:11732
def GetRatsnestForNet(self, aNet)
Definition: pcbnew.py:11653
def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0)
Definition: pcbnew.py:11700
def __call__(self, item1, item2)
Definition: pcbnew.py:1673
def __init__(self)
Definition: pcbnew.py:1677
def __init__(self)
Definition: pcbnew.py:8990
def __eq__(self, *args)
Definition: pcbnew.py:10299
def __init__(self, *args)
Definition: pcbnew.py:11030
def __ne__(self, aOther)
Definition: pcbnew.py:11041
def __eq__(self, aOther)
Definition: pcbnew.py:11037
def __lt__(self, aOther)
Definition: pcbnew.py:11045
def begin(self)
Definition: pcbnew.py:12869
def clear(self)
Definition: pcbnew.py:12885
def resize(self, *args)
Definition: pcbnew.py:12929
def __delslice__(self, i, j)
Definition: pcbnew.py:12823
def end(self)
Definition: pcbnew.py:12873
def front(self)
Definition: pcbnew.py:12917
def assign(self, n, x)
Definition: pcbnew.py:12925
def size(self)
Definition: pcbnew.py:12861
def push_back(self, x)
Definition: pcbnew.py:12913
def swap(self, v)
Definition: pcbnew.py:12865
def get_allocator(self)
Definition: pcbnew.py:12889
def back(self)
Definition: pcbnew.py:12921
def push_front(self, x)
Definition: pcbnew.py:12947
def __getitem__(self, *args)
Definition: pcbnew.py:12834
def pop_front(self)
Definition: pcbnew.py:12943
def erase(self, *args)
Definition: pcbnew.py:12897
def append(self, x)
Definition: pcbnew.py:12853
def __getslice__(self, i, j)
Definition: pcbnew.py:12812
def empty(self)
Definition: pcbnew.py:12857
def __setslice__(self, *args)
Definition: pcbnew.py:12816
def __delitem__(self, *args)
Definition: pcbnew.py:12827
def pop_back(self)
Definition: pcbnew.py:12893
def __nonzero__(self)
Definition: pcbnew.py:12800
def insert(self, *args)
Definition: pcbnew.py:12936
def __init__(self, *args)
Definition: pcbnew.py:12904
def __iter__(self)
Definition: pcbnew.py:12797
def __setitem__(self, *args)
Definition: pcbnew.py:12841
def rbegin(self)
Definition: pcbnew.py:12877
def iterator(self)
Definition: pcbnew.py:12794
def __len__(self)
Definition: pcbnew.py:12808
def __bool__(self)
Definition: pcbnew.py:12804
def rend(self)
Definition: pcbnew.py:12881
def pop(self)
Definition: pcbnew.py:12849
def __init__(self, l=2, r=4)
Definition: pcbnew.py:9131
def GetPrecisionString(self)
Definition: pcbnew.py:9135
def __init__(self, aDiameter, a_NotPlated)
Definition: pcbnew.py:9094
def __truediv__(self, other)
Definition: pcbnew.py:16059
def AsTenthsOfADegree(self)
Definition: pcbnew.py:15933
def __mul__(self, other)
Definition: pcbnew.py:16053
def IsCardinal(self)
Definition: pcbnew.py:15943
def AsRadians(self)
Definition: pcbnew.py:15937
def IsCardinal90(self)
Definition: pcbnew.py:15947
def IsZero(self)
Definition: pcbnew.py:15951
def AsDegrees(self)
Definition: pcbnew.py:15929
def __rmul__(self, other)
Definition: pcbnew.py:16056
def Invert(self)
Definition: pcbnew.py:15967
def NormalizeNegative(self)
Definition: pcbnew.py:16011
def __iadd__(self, aAngle)
Definition: pcbnew.py:16035
def Normalized(self)
Definition: pcbnew.py:16007
def Normalize(self)
Definition: pcbnew.py:16003
def IsVertical(self)
Definition: pcbnew.py:15959
def Normalize90(self)
Definition: pcbnew.py:16015
def Normalize180(self)
Definition: pcbnew.py:16019
def IsParallelTo(self, aAngle)
Definition: pcbnew.py:15963
def __init__(self, *args)
Definition: pcbnew.py:15920
def Normalize720(self)
Definition: pcbnew.py:16023
def __abs__(self)
Definition: pcbnew.py:16062
def __isub__(self, aAngle)
Definition: pcbnew.py:16039
def __sub__(self, other)
Definition: pcbnew.py:16048
def IsHorizontal(self)
Definition: pcbnew.py:15955
def Tan(self)
Definition: pcbnew.py:15979
def Sin(self)
Definition: pcbnew.py:15971
def KeepUpright(self)
Definition: pcbnew.py:16027
def Arctan2(y, x)
Definition: pcbnew.py:15999
def Cos(self)
Definition: pcbnew.py:15975
def Round(self, digits)
Definition: pcbnew.py:16031
def __add__(self, other)
Definition: pcbnew.py:16043
def ClearSelected(self)
Definition: pcbnew.py:1493
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:1436
def SetSelected(self)
Definition: pcbnew.py:1485
def SetBrightened(self)
Definition: pcbnew.py:1489
def Clone(self)
Definition: pcbnew.py:1600
def GetFlags(self)
Definition: pcbnew.py:1517
def IsForceVisible(self)
Definition: pcbnew.py:1561
def IsRollover(self)
Definition: pcbnew.py:1477
def IsNew(self)
Definition: pcbnew.py:1457
def __lt__(self, aItem)
Definition: pcbnew.py:1639
def IsEntered(self)
Definition: pcbnew.py:1469
def ClearEditFlags(self)
Definition: pcbnew.py:1529
def SetParent(self, aParent)
Definition: pcbnew.py:1449
def GetFocusPosition(self)
Definition: pcbnew.py:1592
def IsType(self, aScanTypes)
Definition: pcbnew.py:1553
def SetForceVisible(self, aEnable)
Definition: pcbnew.py:1557
def Type(self)
Definition: pcbnew.py:1441
def GetMenuImage(self)
Definition: pcbnew.py:1620
def ViewGetLayers(self)
Definition: pcbnew.py:1652
def SetIsRollover(self, aIsRollover)
Definition: pcbnew.py:1481
def ViewBBox(self)
Definition: pcbnew.py:1648
def HitTest(self, *args)
Definition: pcbnew.py:1573
def GetMsgPanelInfo(self, aFrame, aList)
Definition: pcbnew.py:1565
def IsBrightened(self)
Definition: pcbnew.py:1473
def ClearTempFlags(self)
Definition: pcbnew.py:1537
def SetModified(self)
Definition: pcbnew.py:1501
def GetClass(self)
Definition: pcbnew.py:1608
def XorFlags(self, aMask)
Definition: pcbnew.py:1509
def GetItemDescription(self, aUnitsProvider, aFull)
Definition: pcbnew.py:1616
def IsReplaceable(self)
Definition: pcbnew.py:1635
def RenderAsBitmap(self, aWorldScale)
Definition: pcbnew.py:1541
def ClearBrightened(self)
Definition: pcbnew.py:1497
def ClearFlags(self, *args)
Definition: pcbnew.py:1513
def Replace(self, *args)
Definition: pcbnew.py:1628
def GetParent(self)
Definition: pcbnew.py:1445
def IsShownAsBitmap(self)
Definition: pcbnew.py:1549
def GetSortPosition(self)
Definition: pcbnew.py:1596
def GetEditFlags(self)
Definition: pcbnew.py:1525
def SetIsShownAsBitmap(self, aBitmap)
Definition: pcbnew.py:1545
def IsMoving(self)
Definition: pcbnew.py:1461
def HasFlag(self, aFlag)
Definition: pcbnew.py:1521
def Sort(aLeft, aRight)
Definition: pcbnew.py:1644
def IsSelected(self)
Definition: pcbnew.py:1465
def GetEmbeddedFiles(self)
Definition: pcbnew.py:1656
def IsModified(self)
Definition: pcbnew.py:1453
def SetFlags(self, aMask)
Definition: pcbnew.py:1505
def GetTempFlags(self)
Definition: pcbnew.py:1533
def GetTypeDesc(self)
Definition: pcbnew.py:1612
def GetFriendlyName(self)
Definition: pcbnew.py:1569
def Visit(self, inspector, testData, aScanTypes)
Definition: pcbnew.py:1604
def Matches(self, aSearchData, aAuxData)
Definition: pcbnew.py:1624
def GetBoundingBox(self)
Definition: pcbnew.py:1580
def GetPosition(self)
Definition: pcbnew.py:1584
def SetPosition(self, aPos)
Definition: pcbnew.py:1588
def MilsToIU(self, mils)
Definition: pcbnew.py:1705
def __init__(self, aIUPerMM)
Definition: pcbnew.py:1693
def IUTomm(self, iu)
Definition: pcbnew.py:1697
def IUToMils(self, iu)
Definition: pcbnew.py:1709
def mmToIU(self, mm)
Definition: pcbnew.py:1701
def GetArcAngle(self)
Definition: pcbnew.py:16337
def SetCenterX(self, x)
Definition: pcbnew.py:16257
def SetEnd(self, aEnd)
Definition: pcbnew.py:16273
def SHAPE_T_asString(self)
Definition: pcbnew.py:16149
def IsFilledForHitTesting(self)
Definition: pcbnew.py:16165
def EndsSwapped(self)
Definition: pcbnew.py:16345
def GetShape(self)
Definition: pcbnew.py:16225
def Similarity(self, aOther)
Definition: pcbnew.py:16464
def SetRight(self, val)
Definition: pcbnew.py:16305
def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:16456
def ShapeGetMsgPanelInfo(self, aFrame, aList)
Definition: pcbnew.py:16416
def GetWidth(self)
Definition: pcbnew.py:16197
def SetStart(self, aStart)
Definition: pcbnew.py:16241
def GetTopLeft(self)
Definition: pcbnew.py:16289
def GetLineColor(self)
Definition: pcbnew.py:16217
def DupPolyPointsList(self, aBuffer)
Definition: pcbnew.py:16381
def SetBezierC2(self, aPt)
Definition: pcbnew.py:16321
def IsFilled(self)
Definition: pcbnew.py:16161
def SetFillColor(self, aColor)
Definition: pcbnew.py:16189
def SetPolyShape(self, aShape)
Definition: pcbnew.py:16400
def GetBotRight(self)
Definition: pcbnew.py:16293
def SetRectangleHeight(self, aHeight)
Definition: pcbnew.py:16424
def GetRadius(self)
Definition: pcbnew.py:16365
def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False)
Definition: pcbnew.py:16333
def IsProxyItem(self)
Definition: pcbnew.py:16153
def SetArcGeometry(self, aStart, aMid, aEnd)
Definition: pcbnew.py:16369
def GetStartY(self)
Definition: pcbnew.py:16233
def SwapShape(self, aImage)
Definition: pcbnew.py:16133
def GetFillColor(self)
Definition: pcbnew.py:16185
def CalcArcAngles(self, aStartAngle, aEndAngle)
Definition: pcbnew.py:16361
def SetSegmentAngle(self, aAngle)
Definition: pcbnew.py:16436
def GetCornersInSequence(self)
Definition: pcbnew.py:16357
def SetLineStyle(self, aStyle)
Definition: pcbnew.py:16205
def SetIsProxyItem(self, aIsProxy=True)
Definition: pcbnew.py:16157
def SetWidth(self, aWidth)
Definition: pcbnew.py:16193
def SetRectangleWidth(self, aWidth)
Definition: pcbnew.py:16428
def SetRectangle(self, aHeight, aWidth)
Definition: pcbnew.py:16432
def GetRectangleWidth(self)
Definition: pcbnew.py:16452
def SetCenterY(self, y)
Definition: pcbnew.py:16253
def GetStart(self)
Definition: pcbnew.py:16229
def GetEnd(self)
Definition: pcbnew.py:16261
def GetRectangleHeight(self)
Definition: pcbnew.py:16448
def GetEndY(self)
Definition: pcbnew.py:16265
def SetFilled(self, aFlag)
Definition: pcbnew.py:16169
def SetPolyPoints(self, aPoints)
Definition: pcbnew.py:16404
def IsPolyShapeValid(self)
Definition: pcbnew.py:16396
def SetLength(self, aLength)
Definition: pcbnew.py:16420
def GetPointCount(self)
Definition: pcbnew.py:16385
def GetLength(self)
Definition: pcbnew.py:16444
def GetBezierPoints(self)
Definition: pcbnew.py:16377
def MakeEffectiveShapes(self, aEdgeOnly=False)
Definition: pcbnew.py:16412
def GetRectCorners(self)
Definition: pcbnew.py:16353
def IsClosed(self)
Definition: pcbnew.py:16181
def GetPolyShape(self, *args)
Definition: pcbnew.py:16389
def SetStartX(self, x)
Definition: pcbnew.py:16249
def SetRadius(self, aX)
Definition: pcbnew.py:16285
def SetEndX(self, aX)
Definition: pcbnew.py:16281
def SetTop(self, val)
Definition: pcbnew.py:16297
def Compare(self, aOther)
Definition: pcbnew.py:16460
def SetStartY(self, y)
Definition: pcbnew.py:16245
def Deserialize(self, aContainer)
Definition: pcbnew.py:16141
def SetEndY(self, aY)
Definition: pcbnew.py:16277
def GetBezierC2(self)
Definition: pcbnew.py:16325
def SetCenter(self, aCenter)
Definition: pcbnew.py:16329
def GetLineStyle(self)
Definition: pcbnew.py:16209
def SetBezierC1(self, aPt)
Definition: pcbnew.py:16313
def GetEndX(self)
Definition: pcbnew.py:16269
def SetLeft(self, val)
Definition: pcbnew.py:16301
def GetFillMode(self)
Definition: pcbnew.py:16177
def ShowShape(self)
Definition: pcbnew.py:16145
def SetShape(self, aShape)
Definition: pcbnew.py:16221
def SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
Definition: pcbnew.py:16373
def SetFillMode(self, aFill)
Definition: pcbnew.py:16173
def IsClockwiseArc(self)
Definition: pcbnew.py:16440
def SetBottom(self, val)
Definition: pcbnew.py:16309
def RebuildBezierToSegmentsPointsList(self, aMaxError)
Definition: pcbnew.py:16408
def __init__(self, *args)
Definition: pcbnew.py:16125
def __eq__(self, aOther)
Definition: pcbnew.py:16468
def GetArcMid(self)
Definition: pcbnew.py:16349
def SetLineColor(self, aColor)
Definition: pcbnew.py:16213
def Serialize(self, aContainer)
Definition: pcbnew.py:16137
def GetSegmentAngle(self)
Definition: pcbnew.py:16341
def GetStartX(self)
Definition: pcbnew.py:16237
def GetBezierC1(self)
Definition: pcbnew.py:16317
def GetEffectiveWidth(self)
Definition: pcbnew.py:16201
def SetAttributes(self, *args)
Definition: pcbnew.py:2650
def SetTextSize(self, aNewSize, aEnforceMinTextSize=True)
Definition: pcbnew.py:2705
def GetTextStyleName(self)
Definition: pcbnew.py:2794
def GetTextWidth(self)
Definition: pcbnew.py:2717
def GetHyperlink(self)
Definition: pcbnew.py:2862
def GotoPageHref(aDestination)
Definition: pcbnew.py:2885
def SetTextX(self, aX)
Definition: pcbnew.py:2745
def SetText(self, aText)
Definition: pcbnew.py:2530
def GetLinePositions(self, aPositions, aLineCount)
Definition: pcbnew.py:2798
def Offset(self, aOffset)
Definition: pcbnew.py:2753
def GetHorizJustify(self)
Definition: pcbnew.py:2614
def IsDefaultFormatting(self)
Definition: pcbnew.py:2665
def __eq__(self, aRhs)
Definition: pcbnew.py:2846
def GetTextBox(self, aLine=-1)
Definition: pcbnew.py:2786
def SetVertJustify(self, aType)
Definition: pcbnew.py:2618
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:2522
def GetFontName(self)
Definition: pcbnew.py:2685
def Similarity(self, aOther)
Definition: pcbnew.py:2806
def SetMultilineAllowed(self, aAllow)
Definition: pcbnew.py:2602
def SetTextThickness(self, aWidth)
Definition: pcbnew.py:2534
def GetTextThickness(self)
Definition: pcbnew.py:2538
def SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset)
Definition: pcbnew.py:2834
def Format(self, aFormatter, aControlBits)
Definition: pcbnew.py:2810
def Replace(self, aSearchData)
Definition: pcbnew.py:2661
def SetTextAngleDegrees(self, aOrientation)
Definition: pcbnew.py:2554
def IsMultilineAllowed(self)
Definition: pcbnew.py:2606
def SetFont(self, aFont)
Definition: pcbnew.py:2669
def IsKeepUpright(self)
Definition: pcbnew.py:2630
def ClearBoundingBoxCache(self)
Definition: pcbnew.py:2826
def SetBold(self, aBold)
Definition: pcbnew.py:2574
def SwapText(self, aTradingPartner)
Definition: pcbnew.py:2642
def SetTextPos(self, aPoint)
Definition: pcbnew.py:2737
def AddRenderCacheGlyph(self, aPoly)
Definition: pcbnew.py:2838
def HasHyperlink(self)
Definition: pcbnew.py:2858
def Empty(self)
Definition: pcbnew.py:2757
def GetAttributes(self)
Definition: pcbnew.py:2657
def SetTextHeight(self, aHeight)
Definition: pcbnew.py:2721
def GetTextAngle(self)
Definition: pcbnew.py:2550
def SetKeepUpright(self, aKeepUpright)
Definition: pcbnew.py:2626
def GetRenderCache(self, *args)
Definition: pcbnew.py:2830
def GetVertJustify(self)
Definition: pcbnew.py:2622
def __gt__(self, aRhs)
Definition: pcbnew.py:2854
def SetVisible(self, aVisible)
Definition: pcbnew.py:2586
def GetTextPos(self)
Definition: pcbnew.py:2741
def SetTextColor(self, aColor)
Definition: pcbnew.py:2729
def SetTextAngle(self, aAngle)
Definition: pcbnew.py:2546
def SwapAttributes(self, aTradingPartner)
Definition: pcbnew.py:2638
def SetFontIndex(self, aIdx)
Definition: pcbnew.py:2689
def ClearRenderCache(self)
Definition: pcbnew.py:2822
def RemoveHyperlink(self)
Definition: pcbnew.py:2870
def ResolveFont(self, aEmbeddedFonts)
Definition: pcbnew.py:2681
def GetText(self)
Definition: pcbnew.py:2518
def TextHitTest(self, *args)
Definition: pcbnew.py:2779
def GetLineSpacing(self)
Definition: pcbnew.py:2701
def IsVisible(self)
Definition: pcbnew.py:2590
def IsItalic(self)
Definition: pcbnew.py:2570
def Serialize(self, aContainer)
Definition: pcbnew.py:2510
def __lt__(self, aRhs)
Definition: pcbnew.py:2850
def Deserialize(self, aContainer)
Definition: pcbnew.py:2514
def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0)
Definition: pcbnew.py:2542
def ValidateHyperlink(aURL)
Definition: pcbnew.py:2875
def SetTextY(self, aY)
Definition: pcbnew.py:2749
def SetHyperlink(self, aLink)
Definition: pcbnew.py:2866
def GetDrawPos(self)
Definition: pcbnew.py:2818
def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED)
Definition: pcbnew.py:2771
def SetHorizJustify(self, aType)
Definition: pcbnew.py:2610
def GetFontIndex(self)
Definition: pcbnew.py:2693
def CopyText(self, aSrc)
Definition: pcbnew.py:2646
def GetTextColor(self)
Definition: pcbnew.py:2733
def SetUnresolvedFontName(self, aFontName)
Definition: pcbnew.py:2677
def GetFont(self)
Definition: pcbnew.py:2673
def GetTextAngleDegrees(self)
Definition: pcbnew.py:2558
def SetItalicFlag(self, aItalic)
Definition: pcbnew.py:2566
def __init__(self, *args)
Definition: pcbnew.py:2502
def SetBoldFlag(self, aBold)
Definition: pcbnew.py:2578
def Levenshtein(self, aOther)
Definition: pcbnew.py:2802
def MapVertJustify(aVertJustify)
Definition: pcbnew.py:2767
def HasTextVars(self)
Definition: pcbnew.py:2526
def SetTextWidth(self, aWidth)
Definition: pcbnew.py:2713
def GetTextHeight(self)
Definition: pcbnew.py:2725
def SetMirrored(self, isMirrored)
Definition: pcbnew.py:2594
def GetEffectiveTextShape(self, *args)
Definition: pcbnew.py:2775
def SetItalic(self, aItalic)
Definition: pcbnew.py:2562
def GetTextSize(self)
Definition: pcbnew.py:2709
def IsGotoPageHref(aHref, aDestination=None)
Definition: pcbnew.py:2880
def IsBold(self)
Definition: pcbnew.py:2582
def SetLineSpacing(self, aLineSpacing)
Definition: pcbnew.py:2697
def IsMirrored(self)
Definition: pcbnew.py:2598
def Compare(self, aOther)
Definition: pcbnew.py:2842
def GetDrawRotation(self)
Definition: pcbnew.py:2814
def GetInterline(self)
Definition: pcbnew.py:2790
def MapHorizJustify(aHorizJustify)
Definition: pcbnew.py:2762
def FlipHJustify(self)
Definition: pcbnew.py:2634
def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
Definition: pcbnew.py:9213
def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
Definition: pcbnew.py:9221
def SetFormat(self, *args)
Definition: pcbnew.py:9217
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:9225
def GetOffset(self)
Definition: pcbnew.py:9209
def __init__(self, aPcb)
Definition: pcbnew.py:9204
def __init__(self, aBoard)
Definition: pcbnew.py:9060
def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:9065
def __init__(self, *args)
Definition: pcbnew.py:1931
def FileLength(self)
Definition: pcbnew.py:1943
def __init__(self, *args)
Definition: pcbnew.py:2050
def append(self, x)
Definition: pcbnew.py:12355
def iterator(self)
Definition: pcbnew.py:12296
def clear(self)
Definition: pcbnew.py:12387
def front(self)
Definition: pcbnew.py:12419
def pop_front(self)
Definition: pcbnew.py:12445
def end(self)
Definition: pcbnew.py:12375
def rbegin(self)
Definition: pcbnew.py:12379
def pop_back(self)
Definition: pcbnew.py:12395
def empty(self)
Definition: pcbnew.py:12359
def swap(self, v)
Definition: pcbnew.py:12367
def resize(self, *args)
Definition: pcbnew.py:12431
def __len__(self)
Definition: pcbnew.py:12310
def __setitem__(self, *args)
Definition: pcbnew.py:12343
def __setslice__(self, *args)
Definition: pcbnew.py:12318
def push_back(self, x)
Definition: pcbnew.py:12415
def begin(self)
Definition: pcbnew.py:12371
def push_front(self, x)
Definition: pcbnew.py:12449
def __init__(self, *args)
Definition: pcbnew.py:12406
def __iter__(self)
Definition: pcbnew.py:12299
def back(self)
Definition: pcbnew.py:12423
def __bool__(self)
Definition: pcbnew.py:12306
def __getitem__(self, *args)
Definition: pcbnew.py:12336
def assign(self, n, x)
Definition: pcbnew.py:12427
def insert(self, *args)
Definition: pcbnew.py:12438
def get_allocator(self)
Definition: pcbnew.py:12391
def __delitem__(self, *args)
Definition: pcbnew.py:12329
def rend(self)
Definition: pcbnew.py:12383
def __getslice__(self, i, j)
Definition: pcbnew.py:12314
def __delslice__(self, i, j)
Definition: pcbnew.py:12325
def erase(self, *args)
Definition: pcbnew.py:12399
def pop(self)
Definition: pcbnew.py:12351
def size(self)
Definition: pcbnew.py:12363
def __nonzero__(self)
Definition: pcbnew.py:12302
def CheckFootprintAttributes(self, aErrorHandler)
Definition: pcbnew.py:20811
def Models(self, *args)
Definition: pcbnew.py:20585
def IsExcludedFromBOM(self)
Definition: pcbnew.py:20989
def IsExcludedFromPosFiles(self)
Definition: pcbnew.py:20981
def LegacyPadsLocked(self)
Definition: pcbnew.py:20807
def GetFields(self, *args)
Definition: pcbnew.py:20946
def GetPadCount(self, *args)
Definition: pcbnew.py:21033
def GetUniquePadNumbers(self, *args)
Definition: pcbnew.py:21041
def GetFieldsShownText(self)
Definition: pcbnew.py:21196
def CoverageRatio(self, aCollector)
Definition: pcbnew.py:21103
def GetPad(self, *args)
Definition: pcbnew.py:21025
def SetSheetfile(self, aSheetfile)
Definition: pcbnew.py:20664
def MapPadNumbersToNetTieGroups(self)
Definition: pcbnew.py:20763
def GetBoundingBox(self, *args)
Definition: pcbnew.py:21232
def GetAttributes(self)
Definition: pcbnew.py:20712
def Value(self, *args)
Definition: pcbnew.py:20909
def SetAttributes(self, aAttributes)
Definition: pcbnew.py:20716
def GetPrivateLayers(self)
Definition: pcbnew.py:20513
def SetTransientComponentClassNames(self, classNames)
Definition: pcbnew.py:21151
def GetSide(self)
Definition: pcbnew.py:20783
def ClearAllNets(self)
Definition: pcbnew.py:20529
def GetComponentClassAsString(self)
Definition: pcbnew.py:21171
def SetAllowMissingCourtyard(self, aAllow=True)
Definition: pcbnew.py:21001
def CheckClippedSilk(self, aErrorHandler)
Definition: pcbnew.py:20831
def FootprintNeedsUpdate(self, aLibFP, aCompareFlags=0, aReporter=None)
Definition: pcbnew.py:21095
def CheckPads(self, aUnitsProvider, aErrorHandler)
Definition: pcbnew.py:20815
def GetSheetfile(self)
Definition: pcbnew.py:20660
def AddNative(self, *args)
Definition: pcbnew.py:20521
def SetFPID(self, aFPID)
Definition: pcbnew.py:20616
def StringLibNameInvalidChars(aUserReadable)
Definition: pcbnew.py:21091
def SetField(self, key, value)
Definition: pcbnew.py:21215
def ClearFields(self)
Definition: pcbnew.py:20953
def GetFieldText(self, aFieldName)
Definition: pcbnew.py:20942
def ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes)
Definition: pcbnew.py:20969
def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
Definition: pcbnew.py:20851
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:20855
def GetReferenceAsString(self)
Definition: pcbnew.py:20889
def NeedsPlaced(self)
Definition: pcbnew.py:20799
def SetKeywords(self, aKeywords)
Definition: pcbnew.py:20640
def MoveAnchorPosition(self, aMoveVector)
Definition: pcbnew.py:20775
def GetTypeName(self)
Definition: pcbnew.py:21053
def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None)
Definition: pcbnew.py:21021
def SetFPIDAsString(self, aFPID)
Definition: pcbnew.py:20624
def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False)
Definition: pcbnew.py:20847
def SetReference(self, aReference)
Definition: pcbnew.py:20885
def GetLibDescription(self)
Definition: pcbnew.py:20628
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:20696
def GetCoverageArea(aItem, aCollector)
Definition: pcbnew.py:21108
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:20604
def AutoPositionFields(self)
Definition: pcbnew.py:21049
def GetNetTieCache(self, aItem)
Definition: pcbnew.py:20839
def GetLink(self)
Definition: pcbnew.py:21061
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:21081
def GetValue(self)
Definition: pcbnew.py:20897
def CheckNetTiePadGroups(self, aErrorHandler)
Definition: pcbnew.py:20827
def RemoveNative(self, *args)
Definition: pcbnew.py:20525
def GetLikelyAttribute(self)
Definition: pcbnew.py:20771
def GetCourtyard(self, aLayer)
Definition: pcbnew.py:21116
def DuplicateItem(self, aItem, aAddToFootprint=False)
Definition: pcbnew.py:21069
def IsConflicting(self)
Definition: pcbnew.py:20787
def HasThroughHolePads(self)
Definition: pcbnew.py:20581
def Zones(self, *args)
Definition: pcbnew.py:20567
def SetValue(self, aValue)
Definition: pcbnew.py:20901
def GetLocalZoneConnection(self)
Definition: pcbnew.py:20708
def GetFieldsText(self)
Definition: pcbnew.py:21191
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:20684
def EmbedFonts(self)
Definition: pcbnew.py:21143
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:20676
def SetFlag(self, aFlag)
Definition: pcbnew.py:20720
def GetLocalClearance(self, *args)
Definition: pcbnew.py:20736
def SetIsPlaced(self, isPlaced)
Definition: pcbnew.py:20795
def GetFonts(self)
Definition: pcbnew.py:21139
def GetNetTiePadGroups(self)
Definition: pcbnew.py:20751
def GetNetTiePads(self, aPad)
Definition: pcbnew.py:20767
def __init__(self, *args)
Definition: pcbnew.py:20487
def __eq__(self, *args)
Definition: pcbnew.py:21175
def AddNetTiePadGroup(self, aGroup)
Definition: pcbnew.py:20759
def FixUuids(self)
Definition: pcbnew.py:20533
def IsDNP(self)
Definition: pcbnew.py:21005
def ResolveTextVar(self, token, aDepth=0)
Definition: pcbnew.py:20859
def Groups(self, *args)
Definition: pcbnew.py:20574
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:20688
def AllowMissingCourtyard(self)
Definition: pcbnew.py:20997
def GetFieldShownText(self, key)
Definition: pcbnew.py:21208
def BuildNetTieCache(self)
Definition: pcbnew.py:20835
def CheckShortingPads(self, aErrorHandler)
Definition: pcbnew.py:20819
def GetFieldById(self, aFieldId)
Definition: pcbnew.py:20930
def GetInitialComments(self)
Definition: pcbnew.py:21112
def GetSheetname(self)
Definition: pcbnew.py:20652
def GetNextPadNumber(self, aLastPadName)
Definition: pcbnew.py:21045
def HasFieldByName(self, aFieldName)
Definition: pcbnew.py:20938
def GetValueAsString(self)
Definition: pcbnew.py:20905
def GetReference(self)
Definition: pcbnew.py:20881
def CheckNetTies(self, aErrorHandler)
Definition: pcbnew.py:20823
def Pads(self, *args)
Definition: pcbnew.py:20553
def TextOnly(self)
Definition: pcbnew.py:20545
def GetNextFieldId(self)
Definition: pcbnew.py:20965
def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False)
Definition: pcbnew.py:20843
def SetNeedsPlaced(self, needsPlaced)
Definition: pcbnew.py:20803
def GetFPIDAsString(self)
Definition: pcbnew.py:20620
def GetPads(self, aPadNumber, aIgnore=None)
Definition: pcbnew.py:21029
def SetComponentClass(self, aClass)
Definition: pcbnew.py:21147
def GetUniquePadCount(self, *args)
Definition: pcbnew.py:21037
def ResolveComponentClassNames(self, aBoard, aComponentClassNames)
Definition: pcbnew.py:21163
def SetExcludedFromBOM(self, aExclude=True)
Definition: pcbnew.py:20993
def BuildCourtyardCaches(self, aErrorHandler=None)
Definition: pcbnew.py:21124
def GetKeywords(self)
Definition: pcbnew.py:20636
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:21128
def AddField(self, aField)
Definition: pcbnew.py:20957
def SetLink(self, aLink)
Definition: pcbnew.py:21065
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:21013
def IncrementReference(self, aDelta)
Definition: pcbnew.py:20893
def SetPath(self, aPath)
Definition: pcbnew.py:20648
def GetFilters(self)
Definition: pcbnew.py:20668
def Deserialize(self, aContainer)
Definition: pcbnew.py:20500
def SetExcludedFromPosFiles(self, aExclude=True)
Definition: pcbnew.py:20985
def InvalidateGeometryCaches(self)
Definition: pcbnew.py:20509
def Serialize(self, aContainer)
Definition: pcbnew.py:20496
def SetFilters(self, aFilters)
Definition: pcbnew.py:20672
def GetZoneConnectionOverrides(self, aSource)
Definition: pcbnew.py:20747
def GetLayerBoundingBox(self, aLayers)
Definition: pcbnew.py:20549
def GraphicalItems(self, *args)
Definition: pcbnew.py:20560
def GetBoundingHull(self)
Definition: pcbnew.py:20541
def IsBoardOnly(self)
Definition: pcbnew.py:20973
def SetSheetname(self, aSheetname)
Definition: pcbnew.py:20656
def SetOrientation(self, aNewAngle)
Definition: pcbnew.py:20592
def IsNetTie(self)
Definition: pcbnew.py:20732
def GetPath(self)
Definition: pcbnew.py:20644
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:20692
def SetFields(self, fields)
Definition: pcbnew.py:21226
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:21077
def ClearNetTiePadGroups(self)
Definition: pcbnew.py:20755
def GetOrientationDegrees(self)
Definition: pcbnew.py:20608
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:21017
def Reference(self, *args)
Definition: pcbnew.py:20916
def GetTransientComponentClassNames(self)
Definition: pcbnew.py:21155
def IsFlipped(self)
Definition: pcbnew.py:20779
def GetFieldByName(self, aFieldName)
Definition: pcbnew.py:20934
def Add3DModel(self, a3DModel)
Definition: pcbnew.py:21073
def HitTest(self, *args)
Definition: pcbnew.py:20867
def GetFlag(self)
Definition: pcbnew.py:20728
def RemoveField(self, aFieldName)
Definition: pcbnew.py:20961
def SetInitialComments(self, aInitialComments)
Definition: pcbnew.py:21099
def IsPlaced(self)
Definition: pcbnew.py:20791
def HasField(self, key)
Definition: pcbnew.py:21223
def GetOrientation(self)
Definition: pcbnew.py:20596
def SetLocalZoneConnection(self, aType)
Definition: pcbnew.py:20704
def GetEmbeddedFiles(self, *args)
Definition: pcbnew.py:21132
def SetPrivateLayers(self, aLayers)
Definition: pcbnew.py:20517
def HitTestAccurate(self, aPosition, aAccuracy=0)
Definition: pcbnew.py:20863
def GetClearanceOverrides(self, aSource)
Definition: pcbnew.py:20743
def SetLayerAndFlip(self, aLayer)
Definition: pcbnew.py:20600
def SetLibDescription(self, aDesc)
Definition: pcbnew.py:20632
def IncrementFlag(self)
Definition: pcbnew.py:20724
def GetField(self, *args)
Definition: pcbnew.py:20923
def SetDNP(self, aDNP=True)
Definition: pcbnew.py:21009
def IsLibNameValid(aName)
Definition: pcbnew.py:21086
def SetBoardOnly(self, aIsBoardOnly=True)
Definition: pcbnew.py:20977
def HitTestOnLayer(self, *args)
Definition: pcbnew.py:20874
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:20700
def ClearTransientComponentClassNames(self)
Definition: pcbnew.py:21159
def GetFPID(self)
Definition: pcbnew.py:20612
def GetComponentClass(self)
Definition: pcbnew.py:21167
def ClassOf(aItem)
Definition: pcbnew.py:20505
def GetArea(self, aPadding=0)
Definition: pcbnew.py:21057
def GetFpPadsLocalBbox(self)
Definition: pcbnew.py:20537
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:20680
def GetCachedCourtyard(self, aLayer)
Definition: pcbnew.py:21120
def __eq__(self, aOther)
Definition: pcbnew.py:20474
def __init__(self)
Definition: pcbnew.py:20464
Definition: pcbnew.py:8002
def __init__(self, aFootprint, aFileName)
Definition: pcbnew.py:8008
def GetFootprint(self)
Definition: pcbnew.py:8020
def GetFileName(self)
Definition: pcbnew.py:8012
def SetFilePath(self, aFilePath)
Definition: pcbnew.py:8016
def GetFootprints(self)
Definition: pcbnew.py:8049
def __init__(self, aOwner, aLibraryPath)
Definition: pcbnew.py:8033
def Remove(self, aFootprintName)
Definition: pcbnew.py:8061
def IsPath(self, aPath)
Definition: pcbnew.py:8074
def IsWritable(self)
Definition: pcbnew.py:8041
def Exists(self)
Definition: pcbnew.py:8045
def GetPath(self)
Definition: pcbnew.py:8037
def Save(self, aFootprintFilter=None)
Definition: pcbnew.py:8053
def Load(self)
Definition: pcbnew.py:8057
def GetTimestamp(aLibPath)
Definition: pcbnew.py:8066
def IsModified(self)
Definition: pcbnew.py:8070
def SetPath(self, aPath)
Definition: pcbnew.py:8078
def __init__(self)
Definition: pcbnew.py:4502
def __init__(self, page, name, units, default, **kwarg)
Definition: pcbnew.py:4527
def Check(self, min_value=None, max_value=None, multiple=None, info=None)
Definition: pcbnew.py:4561
def SetValue(self, new_value)
Definition: pcbnew.py:4635
def AddError(self, err, info=None)
Definition: pcbnew.py:4552
def CheckParam(self, page, name, **kwarg)
Definition: pcbnew.py:4729
def GetParameterPageName(self, page_n)
Definition: pcbnew.py:4747
def GetParameterValues(self, page_index)
Definition: pcbnew.py:4770
def GetParameterErrors(self, page_index)
Definition: pcbnew.py:4774
def SetParameterValues(self, page_index, list_of_values)
Definition: pcbnew.py:4790
def GetParametersByPageIndex(self, page_index)
Definition: pcbnew.py:4759
def GetParam(self, page, name)
Definition: pcbnew.py:4722
def GetNumParameterPages(self)
Definition: pcbnew.py:4744
def GetParametersByPageName(self, page_name)
Definition: pcbnew.py:4750
def GetParameterNames(self, page_index)
Definition: pcbnew.py:4766
def GetParameterDesignators(self, page_index)
Definition: pcbnew.py:4762
def AddParam(self, page, name, unit, default, **kwarg)
Definition: pcbnew.py:4680
def GetParameterHints(self, page_index)
Definition: pcbnew.py:4782
def GetParameterTypes(self, page_index)
Definition: pcbnew.py:4778
def DefaultVisible()
Definition: pcbnew.py:3308
def Contains(self, aPos)
Definition: pcbnew.py:3299
def set(self, *args)
Definition: pcbnew.py:3291
def __init__(self, *args)
Definition: pcbnew.py:3283
def Seq(self)
Definition: pcbnew.py:3303
def GenDrillReportFile(self, aFullFileName)
Definition: pcbnew.py:9188
def SetMapFileFormat(self, aMapFmt)
Definition: pcbnew.py:9180
def CreateMapFilesSet(self, aPlotDirectory, aReporter=None)
Definition: pcbnew.py:9184
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9149
def SetPageInfo(self, aPageInfo)
Definition: pcbnew.py:9176
def SetMergeOption(self, aMerge)
Definition: pcbnew.py:9168
def __iter__(self)
Definition: pcbnew.py:12631
def pop_back(self)
Definition: pcbnew.py:12727
def resize(self, *args)
Definition: pcbnew.py:12763
def __bool__(self)
Definition: pcbnew.py:12638
def empty(self)
Definition: pcbnew.py:12691
def append(self, x)
Definition: pcbnew.py:12687
def front(self)
Definition: pcbnew.py:12751
def iterator(self)
Definition: pcbnew.py:12628
def rbegin(self)
Definition: pcbnew.py:12711
def __delitem__(self, *args)
Definition: pcbnew.py:12661
def clear(self)
Definition: pcbnew.py:12719
def __nonzero__(self)
Definition: pcbnew.py:12634
def __getslice__(self, i, j)
Definition: pcbnew.py:12646
def get_allocator(self)
Definition: pcbnew.py:12723
def rend(self)
Definition: pcbnew.py:12715
def swap(self, v)
Definition: pcbnew.py:12699
def insert(self, *args)
Definition: pcbnew.py:12770
def __delslice__(self, i, j)
Definition: pcbnew.py:12657
def begin(self)
Definition: pcbnew.py:12703
def assign(self, n, x)
Definition: pcbnew.py:12759
def size(self)
Definition: pcbnew.py:12695
def pop_front(self)
Definition: pcbnew.py:12777
def __setslice__(self, *args)
Definition: pcbnew.py:12650
def __getitem__(self, *args)
Definition: pcbnew.py:12668
def push_front(self, x)
Definition: pcbnew.py:12781
def back(self)
Definition: pcbnew.py:12755
def __init__(self, *args)
Definition: pcbnew.py:12738
def __len__(self)
Definition: pcbnew.py:12642
def pop(self)
Definition: pcbnew.py:12683
def __setitem__(self, *args)
Definition: pcbnew.py:12675
def erase(self, *args)
Definition: pcbnew.py:12731
def end(self)
Definition: pcbnew.py:12707
def push_back(self, x)
Definition: pcbnew.py:12747
def CreateJobFile(self, aFullFilename)
Definition: pcbnew.py:9294
def __init__(self, aPcb, aReporter=None)
Definition: pcbnew.py:9285
def WriteJSONJobFile(self, aFullFilename)
Definition: pcbnew.py:9298
def AddGbrFile(self, aLayer, aFilename)
Definition: pcbnew.py:9290
def SetFormat(self, aRightDigits=6)
Definition: pcbnew.py:9242
def __init__(self, aPcb)
Definition: pcbnew.py:9237
def SetOptions(self, aOffset)
Definition: pcbnew.py:9246
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:9250
def get_allocator(self)
Definition: pcbnew.py:12557
def __bool__(self)
Definition: pcbnew.py:12472
def __getitem__(self, *args)
Definition: pcbnew.py:12502
def push_back(self, x)
Definition: pcbnew.py:12581
def __delitem__(self, *args)
Definition: pcbnew.py:12495
def __setitem__(self, *args)
Definition: pcbnew.py:12509
def erase(self, *args)
Definition: pcbnew.py:12565
def size(self)
Definition: pcbnew.py:12529
def __getslice__(self, i, j)
Definition: pcbnew.py:12480
def front(self)
Definition: pcbnew.py:12585
def pop_front(self)
Definition: pcbnew.py:12611
def swap(self, v)
Definition: pcbnew.py:12533
def end(self)
Definition: pcbnew.py:12541
def pop(self)
Definition: pcbnew.py:12517
def insert(self, *args)
Definition: pcbnew.py:12604
def __init__(self, *args)
Definition: pcbnew.py:12572
def __delslice__(self, i, j)
Definition: pcbnew.py:12491
def __nonzero__(self)
Definition: pcbnew.py:12468
def assign(self, n, x)
Definition: pcbnew.py:12593
def push_front(self, x)
Definition: pcbnew.py:12615
def append(self, x)
Definition: pcbnew.py:12521
def __len__(self)
Definition: pcbnew.py:12476
def __iter__(self)
Definition: pcbnew.py:12465
def clear(self)
Definition: pcbnew.py:12553
def resize(self, *args)
Definition: pcbnew.py:12597
def back(self)
Definition: pcbnew.py:12589
def pop_back(self)
Definition: pcbnew.py:12561
def __setslice__(self, *args)
Definition: pcbnew.py:12484
def rend(self)
Definition: pcbnew.py:12549
def empty(self)
Definition: pcbnew.py:12525
def rbegin(self)
Definition: pcbnew.py:12545
def begin(self)
Definition: pcbnew.py:12537
def iterator(self)
Definition: pcbnew.py:12462
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:19529
def __init__(self)
Definition: pcbnew.py:9107
def __init__(self, aStream, aSource)
Definition: pcbnew.py:1975
def __init__(self, *args)
Definition: pcbnew.py:459
def Where(self)
Definition: pcbnew.py:474
def What(self)
Definition: pcbnew.py:478
def Problem(self)
Definition: pcbnew.py:470
def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
Definition: pcbnew.py:466
def __init__(self, aPcb)
Definition: pcbnew.py:9003
def Write(self, aFilename)
Definition: pcbnew.py:9008
def __init__(self)
Definition: pcbnew.py:9272
def MakeRelativeTo(self, aPath)
Definition: pcbnew.py:1143
def __iadd__(self, aRhs)
Definition: pcbnew.py:1167
def EndsWith(self, aPath)
Definition: pcbnew.py:1147
def __init__(self, *args)
Definition: pcbnew.py:1136
def AsString(self)
Definition: pcbnew.py:1151
def __eq__(self, rhs)
Definition: pcbnew.py:1155
def __gt__(self, rhs)
Definition: pcbnew.py:1163
def __lt__(self, rhs)
Definition: pcbnew.py:1159
def swap(self, v)
Definition: pcbnew.py:1041
def rbegin(self)
Definition: pcbnew.py:1053
def __setitem__(self, *args)
Definition: pcbnew.py:1017
def __delitem__(self, *args)
Definition: pcbnew.py:1003
def erase(self, *args)
Definition: pcbnew.py:1073
def __iter__(self)
Definition: pcbnew.py:973
def insert(self, *args)
Definition: pcbnew.py:1112
def push_back(self, x)
Definition: pcbnew.py:1089
def resize(self, *args)
Definition: pcbnew.py:1105
def reserve(self, n)
Definition: pcbnew.py:1119
def __init__(self, *args)
Definition: pcbnew.py:1080
def __nonzero__(self)
Definition: pcbnew.py:976
def assign(self, n, x)
Definition: pcbnew.py:1101
def __getitem__(self, *args)
Definition: pcbnew.py:1010
def pop_back(self)
Definition: pcbnew.py:1069
def get_allocator(self)
Definition: pcbnew.py:1065
def __bool__(self)
Definition: pcbnew.py:980
def iterator(self)
Definition: pcbnew.py:970
def capacity(self)
Definition: pcbnew.py:1123
def __len__(self)
Definition: pcbnew.py:984
def __setslice__(self, *args)
Definition: pcbnew.py:992
def __getslice__(self, i, j)
Definition: pcbnew.py:988
def __delslice__(self, i, j)
Definition: pcbnew.py:999
def append(self, x)
Definition: pcbnew.py:1029
def CreateNilUuids(aNil=True)
Definition: pcbnew.py:924
def AsString(self)
Definition: pcbnew.py:906
def ConvertTimestampToUuid(self)
Definition: pcbnew.py:933
def __ne__(self, rhs)
Definition: pcbnew.py:945
def AsLegacyTimestampString(self)
Definition: pcbnew.py:910
def Hash(self)
Definition: pcbnew.py:894
def Clone(self, aUUID)
Definition: pcbnew.py:890
def SniffTest(aCandidate)
Definition: pcbnew.py:919
def IsLegacyTimestamp(self)
Definition: pcbnew.py:898
def AsLegacyTimestamp(self)
Definition: pcbnew.py:902
def __init__(self, *args)
Definition: pcbnew.py:879
def AsStdString(self)
Definition: pcbnew.py:914
def __lt__(self, rhs)
Definition: pcbnew.py:949
def __eq__(self, rhs)
Definition: pcbnew.py:941
def __gt__(self, rhs)
Definition: pcbnew.py:953
def Increment(self)
Definition: pcbnew.py:937
def SeedGenerator(aSeed)
Definition: pcbnew.py:929
def __init__(self, *args)
Definition: pcbnew.py:439
def What(self)
Definition: pcbnew.py:446
def GetPluginPath(self)
Definition: pcbnew.py:4497
def deregister(self)
Definition: pcbnew.py:4483
def __init__(self)
Definition: pcbnew.py:4455
def register(self)
Definition: pcbnew.py:4458
def clear(self)
Definition: pcbnew.py:19501
def __init__(self)
Definition: pcbnew.py:19497
def ShowType(aType)
Definition: pcbnew.py:19512
def ParseType(aType)
Definition: pcbnew.py:19517
def IsLegacy(self)
Definition: pcbnew.py:7747
def GetSubLibraryName(self)
Definition: pcbnew.py:7715
def GetLibNickname(self)
Definition: pcbnew.py:7691
def SetLibItemName(self, aLibItemName)
Definition: pcbnew.py:7711
def HasIllegalChars(aLibItemName)
Definition: pcbnew.py:7780
def GetUniStringLibId(self)
Definition: pcbnew.py:7731
def SetSubLibraryName(self, aName)
Definition: pcbnew.py:7719
def clear(self)
Definition: pcbnew.py:7751
def GetUniStringSubLibraryName(self)
Definition: pcbnew.py:7723
def __init__(self, *args)
Definition: pcbnew.py:7680
def FindIllegalLibraryNameChar(aLibraryName)
Definition: pcbnew.py:7790
def empty(self)
Definition: pcbnew.py:7755
def __eq__(self, aLibId)
Definition: pcbnew.py:7771
def FixIllegalChars(aLibItemName, aLib)
Definition: pcbnew.py:7785
def __gt__(self, aLibId)
Definition: pcbnew.py:7767
def GetFullLibraryName(self)
Definition: pcbnew.py:7727
def Format(*args)
Definition: pcbnew.py:7736
def IsValid(self)
Definition: pcbnew.py:7743
def Parse(self, aId, aFix=False)
Definition: pcbnew.py:7687
def GetUniStringLibItemName(self)
Definition: pcbnew.py:7707
def GetLibItemName(self)
Definition: pcbnew.py:7703
def __ne__(self, aLibId)
Definition: pcbnew.py:7775
def compare(self, aLibId)
Definition: pcbnew.py:7759
def SetLibNickname(self, aLibNickname)
Definition: pcbnew.py:7699
def GetUniStringLibNickname(self)
Definition: pcbnew.py:7695
def __lt__(self, aLibId)
Definition: pcbnew.py:7763
def LineNumber(self)
Definition: pcbnew.py:1909
def Line(self)
Definition: pcbnew.py:1905
def Length(self)
Definition: pcbnew.py:1913
def ReadLine(self)
Definition: pcbnew.py:1897
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:1892
def GetSource(self)
Definition: pcbnew.py:1901
def TestLayers(self, aRhs, aLhs)
Definition: pcbnew.py:9736
def __init__(self, *args)
Definition: pcbnew.py:9729
def ClearUserDefinedLayers(self)
Definition: pcbnew.py:9931
def BackAssembly()
Definition: pcbnew.py:9790
def Contains(self, aLayer)
Definition: pcbnew.py:9760
def RemoveLayer(self, layer)
Definition: pcbnew.py:9969
def PhysicalLayersMask()
Definition: pcbnew.py:9865
def BackTechMask()
Definition: pcbnew.py:9825
def NameToLayer(aName)
Definition: pcbnew.py:9770
def FmtHex(self)
Definition: pcbnew.py:9951
def addLayer(self, aLayer)
Definition: pcbnew.py:9935
def UserDefinedLayersMask(aUserDefinedLayerCount=45)
Definition: pcbnew.py:9870
def Seq(self, *args)
Definition: pcbnew.py:9891
def SeqStackupForPlotting(self)
Definition: pcbnew.py:9902
def AddLayer(self, layer)
Definition: pcbnew.py:9963
def SideSpecificMask()
Definition: pcbnew.py:9855
def IsBetween(aStart, aEnd, aLayer)
Definition: pcbnew.py:9775
def UIOrder(self)
Definition: pcbnew.py:9887
def FlipStandardLayers(self, aCopperLayersCount=0)
Definition: pcbnew.py:9914
def AllTechMask()
Definition: pcbnew.py:9835
def addLayerSet(self, aLayerSet)
Definition: pcbnew.py:9943
def AllCuMask(aCuLayerCount=32)
Definition: pcbnew.py:9795
def AllBoardTechMask()
Definition: pcbnew.py:9840
def AllNonCuMask()
Definition: pcbnew.py:9805
def CuStack(self)
Definition: pcbnew.py:9879
def ForbiddenFootprintLayers()
Definition: pcbnew.py:9875
def removeLayerSet(self, aLayerSet)
Definition: pcbnew.py:9947
def AllLayersMask()
Definition: pcbnew.py:9810
def AddLayerSet(self, layers)
Definition: pcbnew.py:9966
def __init__(self, *args)
Definition: pcbnew.py:9749
def InternalCuMask()
Definition: pcbnew.py:9780
def FrontTechMask()
Definition: pcbnew.py:9815
def ClearNonCopperLayers(self)
Definition: pcbnew.py:9927
def TechAndUserUIOrder(self)
Definition: pcbnew.py:9883
def BackBoardTechMask()
Definition: pcbnew.py:9830
def FrontAssembly()
Definition: pcbnew.py:9785
def ExternalCuMask()
Definition: pcbnew.py:9800
def ClearCopperLayers(self)
Definition: pcbnew.py:9923
def BackMask()
Definition: pcbnew.py:9850
def UserMask()
Definition: pcbnew.py:9860
def FrontMask()
Definition: pcbnew.py:9845
def ParseHex(self, aString)
Definition: pcbnew.py:9959
def RunOnLayers(self, aFunction)
Definition: pcbnew.py:9906
def LayerCount(aStart, aEnd, aCopperLayerCount)
Definition: pcbnew.py:9919
def ExtractLayer(self)
Definition: pcbnew.py:9910
def FrontBoardTechMask()
Definition: pcbnew.py:9820
def FmtBin(self)
Definition: pcbnew.py:9955
def removeLayer(self, aLayer)
Definition: pcbnew.py:9939
def Name(aLayerId)
Definition: pcbnew.py:9765
def RemoveLayerSet(self, layers)
Definition: pcbnew.py:9972
def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:9898
def count(self, x)
Definition: pcbnew.py:20409
def has_key(self, key)
Definition: pcbnew.py:20326
def __delitem__(self, key)
Definition: pcbnew.py:20322
def erase(self, *args)
Definition: pcbnew.py:20413
def __contains__(self, key)
Definition: pcbnew.py:20342
def upper_bound(self, x)
Definition: pcbnew.py:20429
def __setitem__(self, *args)
Definition: pcbnew.py:20354
def value_iterator(self)
Definition: pcbnew.py:20350
def __init__(self, *args)
Definition: pcbnew.py:20365
def __getitem__(self, key)
Definition: pcbnew.py:20318
def lower_bound(self, x)
Definition: pcbnew.py:20425
def back(self)
Definition: pcbnew.py:11915
def empty(self)
Definition: pcbnew.py:11851
def __len__(self)
Definition: pcbnew.py:11802
def capacity(self)
Definition: pcbnew.py:11941
def __getslice__(self, i, j)
Definition: pcbnew.py:11806
def pop(self)
Definition: pcbnew.py:11843
def __delitem__(self, *args)
Definition: pcbnew.py:11821
def __nonzero__(self)
Definition: pcbnew.py:11794
def __iter__(self)
Definition: pcbnew.py:11791
def rend(self)
Definition: pcbnew.py:11875
def __init__(self, *args)
Definition: pcbnew.py:11898
def size(self)
Definition: pcbnew.py:11855
def begin(self)
Definition: pcbnew.py:11863
def resize(self, *args)
Definition: pcbnew.py:11923
def front(self)
Definition: pcbnew.py:11911
def append(self, x)
Definition: pcbnew.py:11847
def get_allocator(self)
Definition: pcbnew.py:11883
def swap(self, v)
Definition: pcbnew.py:11859
def __setitem__(self, *args)
Definition: pcbnew.py:11835
def erase(self, *args)
Definition: pcbnew.py:11891
def rbegin(self)
Definition: pcbnew.py:11871
def reserve(self, n)
Definition: pcbnew.py:11937
def __getitem__(self, *args)
Definition: pcbnew.py:11828
def __setslice__(self, *args)
Definition: pcbnew.py:11810
def clear(self)
Definition: pcbnew.py:11879
def push_back(self, x)
Definition: pcbnew.py:11907
def pop_back(self)
Definition: pcbnew.py:11887
def iterator(self)
Definition: pcbnew.py:11788
def insert(self, *args)
Definition: pcbnew.py:11930
def __delslice__(self, i, j)
Definition: pcbnew.py:11817
def assign(self, n, x)
Definition: pcbnew.py:11919
def __bool__(self)
Definition: pcbnew.py:11798
def end(self)
Definition: pcbnew.py:11867
def IsExcluded(self)
Definition: pcbnew.py:2456
def GetBoundingBoxMarker(self)
Definition: pcbnew.py:2483
def GetUUID(self)
Definition: pcbnew.py:2444
def MarkerScale(self)
Definition: pcbnew.py:2424
def GetMarkerType(self)
Definition: pcbnew.py:2452
def GetPos(self)
Definition: pcbnew.py:2440
def PrintMarker(self, aSettings, aOffset)
Definition: pcbnew.py:2436
def GetComment(self)
Definition: pcbnew.py:2464
def GetSeverity(self)
Definition: pcbnew.py:2468
def SetExcluded(self, *args)
Definition: pcbnew.py:2460
def HitTestMarker(self, *args)
Definition: pcbnew.py:2476
def SetMarkerType(self, aMarkerType)
Definition: pcbnew.py:2448
def ShapeToPolygon(self, aPolygon, aScale=-1)
Definition: pcbnew.py:2432
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:2405
def SetMarkerScale(self, aScale)
Definition: pcbnew.py:2428
def GetRCItem(self)
Definition: pcbnew.py:2472
def SetClearanceParent(self, parent)
Definition: pcbnew.py:18777
def SetBusWidth(self, aWidth)
Definition: pcbnew.py:19033
def HasuViaDiameter(self)
Definition: pcbnew.py:18857
def HasWireWidth(self)
Definition: pcbnew.py:18997
def SetViaDiameterParent(self, parent)
Definition: pcbnew.py:18825
def __eq__(self, other)
Definition: pcbnew.py:18701
def SetTrackWidth(self, aWidth)
Definition: pcbnew.py:18797
def SetDiffPairWidthParent(self, parent)
Definition: pcbnew.py:18921
def GetTrackWidth(self)
Definition: pcbnew.py:18789
def GetLineStyle(self)
Definition: pcbnew.py:19065
def GetViaDiameterParent(self)
Definition: pcbnew.py:18829
def GetViaDiameterOpt(self)
Definition: pcbnew.py:18817
def SetBusWidthParent(self, parent)
Definition: pcbnew.py:19037
def SetuViaDiameter(self, aSize)
Definition: pcbnew.py:18869
def GetDiffPairWidthOpt(self)
Definition: pcbnew.py:18913
def GetName(self)
Definition: pcbnew.py:18745
def __init__(self, aName, aInitWithDefaults=True)
Definition: pcbnew.py:18696
def Serialize(self, aContainer)
Definition: pcbnew.py:18709
def HasDiffPairWidth(self)
Definition: pcbnew.py:18905
def ResetParameters(self)
Definition: pcbnew.py:18721
def GetClearance(self)
Definition: pcbnew.py:18765
def GetClearanceParent(self)
Definition: pcbnew.py:18781
def GetConstituentNetclasses(self)
Definition: pcbnew.py:18725
def SetDescription(self, aDesc)
Definition: pcbnew.py:18757
def HasClearance(self)
Definition: pcbnew.py:18761
def SetDiffPairViaGapParent(self, parent)
Definition: pcbnew.py:18969
def GetDiffPairViaGapOpt(self)
Definition: pcbnew.py:18961
def SetWireWidthParent(self, parent)
Definition: pcbnew.py:19013
def SetPriority(self, aPriority)
Definition: pcbnew.py:19085
def GetDiffPairGapOpt(self)
Definition: pcbnew.py:18937
def GetWireWidthOpt(self)
Definition: pcbnew.py:19005
def GetDiffPairGapParent(self)
Definition: pcbnew.py:18949
def SetLineStyle(self, aStyle)
Definition: pcbnew.py:19073
def SetConstituentNetclasses(self, constituents)
Definition: pcbnew.py:18729
def HasuViaDrill(self)
Definition: pcbnew.py:18881
def ResetParents(self)
Definition: pcbnew.py:18717
def GetClearanceOpt(self)
Definition: pcbnew.py:18769
def HasLineStyle(self)
Definition: pcbnew.py:19061
def GetLineStyleParent(self)
Definition: pcbnew.py:19081
def GetBusWidthParent(self)
Definition: pcbnew.py:19041
def GetuViaDrillParent(self)
Definition: pcbnew.py:18901
def GetBusWidth(self)
Definition: pcbnew.py:19025
def GetViaDrillParent(self)
Definition: pcbnew.py:18853
def SetDiffPairGap(self, aSize)
Definition: pcbnew.py:18941
def GetuViaDrill(self)
Definition: pcbnew.py:18885
def GetViaDrill(self)
Definition: pcbnew.py:18837
def GetSchematicColorParent(self)
Definition: pcbnew.py:19057
def GetDescription(self)
Definition: pcbnew.py:18753
def GetPcbColor(self, aIsForSave=False)
Definition: pcbnew.py:18981
def GetLineStyleOpt(self)
Definition: pcbnew.py:19069
def GetViaDrillOpt(self)
Definition: pcbnew.py:18841
def GetTrackWidthOpt(self)
Definition: pcbnew.py:18793
def SetDiffPairViaGap(self, aSize)
Definition: pcbnew.py:18965
def GetDiffPairViaGap(self)
Definition: pcbnew.py:18957
def GetDiffPairWidth(self)
Definition: pcbnew.py:18909
def SetPcbColor(self, aColor)
Definition: pcbnew.py:18985
def HasViaDrill(self)
Definition: pcbnew.py:18833
def SetSchematicColorParent(self, parent)
Definition: pcbnew.py:19053
def SetuViaDrillParent(self, parent)
Definition: pcbnew.py:18897
def GetuViaDiameterOpt(self)
Definition: pcbnew.py:18865
def SetName(self, aName)
Definition: pcbnew.py:18741
def GetDiffPairWidthParent(self)
Definition: pcbnew.py:18925
def Deserialize(self, aContainer)
Definition: pcbnew.py:18713
def GetBusWidthOpt(self)
Definition: pcbnew.py:19029
def SetWireWidth(self, aWidth)
Definition: pcbnew.py:19009
def SetSchematicColor(self, aColor)
Definition: pcbnew.py:19049
def GetDiffPairViaGapParent(self)
Definition: pcbnew.py:18973
def SetTrackWidthParent(self, parent)
Definition: pcbnew.py:18801
def HasTrackWidth(self)
Definition: pcbnew.py:18785
def GetuViaDrillOpt(self)
Definition: pcbnew.py:18889
def GetPriority(self)
Definition: pcbnew.py:19089
def HasViaDiameter(self)
Definition: pcbnew.py:18809
def IsDefault(self)
Definition: pcbnew.py:18737
def SetViaDiameter(self, aDia)
Definition: pcbnew.py:18821
def GetWireWidthParent(self)
Definition: pcbnew.py:19017
def ContainsNetclassWithName(self, netclass)
Definition: pcbnew.py:18733
def SetPcbColorParent(self, parent)
Definition: pcbnew.py:18989
def SetuViaDiameterParent(self, parent)
Definition: pcbnew.py:18873
def GetTrackWidthParent(self)
Definition: pcbnew.py:18805
def SetDiffPairGapParent(self, parent)
Definition: pcbnew.py:18945
def HasBusWidth(self)
Definition: pcbnew.py:19021
def SetClearance(self, aClearance)
Definition: pcbnew.py:18773
def GetSchematicColor(self, aIsForSave=False)
Definition: pcbnew.py:19045
def HasDiffPairViaGap(self)
Definition: pcbnew.py:18953
def GetuViaDiameter(self)
Definition: pcbnew.py:18861
def SetuViaDrill(self, aSize)
Definition: pcbnew.py:18893
def GetuViaDiameterParent(self)
Definition: pcbnew.py:18877
def GetPcbColorParent(self)
Definition: pcbnew.py:18993
def GetClass(self)
Definition: pcbnew.py:18705
def GetHumanReadableName(self)
Definition: pcbnew.py:18749
def HasDiffPairGap(self)
Definition: pcbnew.py:18929
def SetViaDrill(self, aSize)
Definition: pcbnew.py:18845
def SetLineStyleParent(self, parent)
Definition: pcbnew.py:19077
def GetDiffPairGap(self)
Definition: pcbnew.py:18933
def GetWireWidth(self)
Definition: pcbnew.py:19001
def HasPcbColor(self)
Definition: pcbnew.py:18977
def SetViaDrillParent(self, parent)
Definition: pcbnew.py:18849
def GetViaDiameter(self)
Definition: pcbnew.py:18813
def SetDiffPairWidth(self, aSize)
Definition: pcbnew.py:18917
def values(self)
Definition: pcbnew.py:18420
def asdict(self)
Definition: pcbnew.py:18447
def __delitem__(self, key)
Definition: pcbnew.py:18408
def has_key(self, key)
Definition: pcbnew.py:18412
def key_iterator(self)
Definition: pcbnew.py:18432
def clear(self)
Definition: pcbnew.py:18487
def find(self, x)
Definition: pcbnew.py:18507
def __len__(self)
Definition: pcbnew.py:18392
def iterkeys(self)
Definition: pcbnew.py:18397
def empty(self)
Definition: pcbnew.py:18459
def __init__(self, *args)
Definition: pcbnew.py:18451
def __contains__(self, key)
Definition: pcbnew.py:18428
def __setitem__(self, *args)
Definition: pcbnew.py:18440
def iterator(self)
Definition: pcbnew.py:18378
def begin(self)
Definition: pcbnew.py:18471
def __getitem__(self, key)
Definition: pcbnew.py:18404
def upper_bound(self, x)
Definition: pcbnew.py:18515
def __nonzero__(self)
Definition: pcbnew.py:18384
def keys(self)
Definition: pcbnew.py:18416
def erase(self, *args)
Definition: pcbnew.py:18499
def __bool__(self)
Definition: pcbnew.py:18388
def swap(self, v)
Definition: pcbnew.py:18467
def items(self)
Definition: pcbnew.py:18424
def __iter__(self)
Definition: pcbnew.py:18381
def itervalues(self)
Definition: pcbnew.py:18399
def value_iterator(self)
Definition: pcbnew.py:18436
def iteritems(self)
Definition: pcbnew.py:18401
def lower_bound(self, x)
Definition: pcbnew.py:18511
def rbegin(self)
Definition: pcbnew.py:18479
def rend(self)
Definition: pcbnew.py:18483
def get_allocator(self)
Definition: pcbnew.py:18491
def count(self, x)
Definition: pcbnew.py:18495
def size(self)
Definition: pcbnew.py:18463
def HasAutoGeneratedNetname(self)
Definition: pcbnew.py:18188
def GetNetClass(self)
Definition: pcbnew.py:18160
def SetNetname(self, aNewName)
Definition: pcbnew.py:18192
def GetDisplayNetname(self)
Definition: pcbnew.py:18184
def SetNetCode(self, aNetCode)
Definition: pcbnew.py:18172
def SetIsCurrent(self, isCurrent)
Definition: pcbnew.py:18200
def GetShortNetname(self)
Definition: pcbnew.py:18180
def SetNetClass(self, aNetClass)
Definition: pcbnew.py:18156
def GetNetClassSlow(self)
Definition: pcbnew.py:18164
def IsCurrent(self)
Definition: pcbnew.py:18196
def GetNetClassName(self)
Definition: pcbnew.py:18216
def ClassOf(aItem)
Definition: pcbnew.py:18152
def GetParent(self)
Definition: pcbnew.py:18212
def __init__(self, *args)
Definition: pcbnew.py:18146
def SetParent(self, aParent)
Definition: pcbnew.py:18208
def GetNetname(self)
Definition: pcbnew.py:18176
def GetNetCode(self)
Definition: pcbnew.py:18168
def Clear(self)
Definition: pcbnew.py:18204
def NetsByNetcode(self)
Definition: pcbnew.py:18548
def __init__(self, aParent)
Definition: pcbnew.py:18528
def GetNetCount(self)
Definition: pcbnew.py:18540
def GetNetItem(self, *args)
Definition: pcbnew.py:18533
def RebuildDisplayNetnames(self)
Definition: pcbnew.py:18552
def NetsByName(self)
Definition: pcbnew.py:18544
def GetParent(self)
Definition: pcbnew.py:18561
def __contains__(self, key)
Definition: pcbnew.py:18278
def __init__(self, *args)
Definition: pcbnew.py:18301
def get_allocator(self)
Definition: pcbnew.py:18341
def __len__(self)
Definition: pcbnew.py:18242
def iteritems(self)
Definition: pcbnew.py:18251
def size(self)
Definition: pcbnew.py:18313
def value_iterator(self)
Definition: pcbnew.py:18286
def find(self, x)
Definition: pcbnew.py:18357
def __iter__(self)
Definition: pcbnew.py:18231
def empty(self)
Definition: pcbnew.py:18309
def __nonzero__(self)
Definition: pcbnew.py:18234
def values(self)
Definition: pcbnew.py:18270
def lower_bound(self, x)
Definition: pcbnew.py:18361
def rbegin(self)
Definition: pcbnew.py:18329
def asdict(self)
Definition: pcbnew.py:18297
def keys(self)
Definition: pcbnew.py:18266
def __delitem__(self, key)
Definition: pcbnew.py:18258
def __getitem__(self, key)
Definition: pcbnew.py:18254
def iterator(self)
Definition: pcbnew.py:18228
def begin(self)
Definition: pcbnew.py:18321
def upper_bound(self, x)
Definition: pcbnew.py:18365
def items(self)
Definition: pcbnew.py:18274
def erase(self, *args)
Definition: pcbnew.py:18349
def rend(self)
Definition: pcbnew.py:18333
def has_key(self, key)
Definition: pcbnew.py:18262
def iterkeys(self)
Definition: pcbnew.py:18247
def count(self, x)
Definition: pcbnew.py:18345
def key_iterator(self)
Definition: pcbnew.py:18282
def swap(self, v)
Definition: pcbnew.py:18317
def itervalues(self)
Definition: pcbnew.py:18249
def clear(self)
Definition: pcbnew.py:18337
def __setitem__(self, *args)
Definition: pcbnew.py:18290
def __bool__(self)
Definition: pcbnew.py:18238
def GetNetColorAssignments(self)
Definition: pcbnew.py:11530
def GetNetclassPatternAssignments(self)
Definition: pcbnew.py:11510
def HasEffectiveNetClass(self, aNetName)
Definition: pcbnew.py:11538
def __ne__(self, aOther)
Definition: pcbnew.py:11442
def SetNetclassPatternAssignments(self, netclassPatterns)
Definition: pcbnew.py:11506
def GetDefaultNetclass(self)
Definition: pcbnew.py:11450
def HasNetclass(self, netclassName)
Definition: pcbnew.py:11454
def ParseBusGroup(aGroup, name, aMemberList)
Definition: pcbnew.py:11564
def GetEffectiveNetClass(self, aNetName)
Definition: pcbnew.py:11546
def GetNetclasses(self)
Definition: pcbnew.py:11466
def ClearAllCaches(self)
Definition: pcbnew.py:11522
def ClearNetColorAssignments(self)
Definition: pcbnew.py:11534
def GetCachedEffectiveNetClass(self, aNetName)
Definition: pcbnew.py:11542
def AppendNetclassLabelAssignment(self, netName, netclasses)
Definition: pcbnew.py:11494
def SetNetclassLabelAssignment(self, netName, netclasses)
Definition: pcbnew.py:11490
def SetNetclass(self, netclassName, netclass)
Definition: pcbnew.py:11458
def GetNetClassByName(self, aNetName)
Definition: pcbnew.py:11554
def SetNetColorAssignment(self, netName, color)
Definition: pcbnew.py:11526
def HasNetclassLabelAssignment(self, netName)
Definition: pcbnew.py:11498
def SetNetclassPatternAssignment(self, pattern, netclass)
Definition: pcbnew.py:11502
def __init__(self, aParent, aPath)
Definition: pcbnew.py:11433
def ClearNetclassLabelAssignments(self)
Definition: pcbnew.py:11482
def SetNetclasses(self, netclasses)
Definition: pcbnew.py:11462
def ClearCacheForNet(self, netName)
Definition: pcbnew.py:11518
def ClearNetclassPatternAssignments(self)
Definition: pcbnew.py:11514
def RecomputeEffectiveNetclasses(self)
Definition: pcbnew.py:11550
def GetNetclassLabelAssignments(self)
Definition: pcbnew.py:11478
def __eq__(self, aOther)
Definition: pcbnew.py:11438
def ClearNetclasses(self)
Definition: pcbnew.py:11474
def SetDefaultNetclass(self, netclass)
Definition: pcbnew.py:11446
def GetCompositeNetclasses(self)
Definition: pcbnew.py:11470
def ClearNetclassLabelAssignment(self, netName)
Definition: pcbnew.py:11486
def ParseBusVector(aBus, aName, aMemberList)
Definition: pcbnew.py:11559
def GetQuoteChar(self, wrapee)
Definition: pcbnew.py:2001
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:1989
def Quotew(self, aWrapee)
Definition: pcbnew.py:2009
def Quotes(self, aWrapee)
Definition: pcbnew.py:2005
def Print(self, *args)
Definition: pcbnew.py:1994
def Primitives(self, *args)
Definition: pcbnew.py:13827
def Similarity(self, aOther)
Definition: pcbnew.py:13567
def EndLayer(self)
Definition: pcbnew.py:13590
def ChamferPositions(self, *args)
Definition: pcbnew.py:13755
def SetThermalSpokeAngle(self, aAngle, aLayer=F_Cu)
Definition: pcbnew.py:13823
def SetMode(self, aMode)
Definition: pcbnew.py:13598
def AppendPrimitives(self, aPrimitivesList, aLayer)
Definition: pcbnew.py:13838
def GetOrientation(self)
Definition: pcbnew.py:13606
def SetLayerSet(self, aSet)
Definition: pcbnew.py:13578
def SetRoundRectRadius(self, aRadius, aLayer)
Definition: pcbnew.py:13743
def DrillShape(self)
Definition: pcbnew.py:13701
def SetUnconnectedLayerMode(self, aMode)
Definition: pcbnew.py:13632
def Size(self, aLayer)
Definition: pcbnew.py:13697
def IsTented(self, aSide)
Definition: pcbnew.py:13657
def AddPrimitive(self, aShape, aLayer)
Definition: pcbnew.py:13834
def RoundRectRadius(self, aLayer)
Definition: pcbnew.py:13739
def RelevantShapeLayers(self, aOther)
Definition: pcbnew.py:13681
def SolderPasteMargin(self, *args)
Definition: pcbnew.py:13780
def Serialize(self, aContainer)
Definition: pcbnew.py:13554
def FlipLayers(self, aCopperLayerCount)
Definition: pcbnew.py:13582
def Drill(self, *args)
Definition: pcbnew.py:13614
def Name(self)
Definition: pcbnew.py:13602
def Mode(self)
Definition: pcbnew.py:13594
def EffectiveLayerFor(self, aLayer)
Definition: pcbnew.py:13677
def ClearPrimitives(self, aLayer)
Definition: pcbnew.py:13846
def SetRoundRectRadiusRatio(self, aRatio, aLayer)
Definition: pcbnew.py:13735
def DefaultThermalSpokeAngleForShape(self, aLayer=F_Cu)
Definition: pcbnew.py:13815
def SecondaryDrill(self, *args)
Definition: pcbnew.py:13621
def SolderMaskMargin(self, *args)
Definition: pcbnew.py:13773
def SetSize(self, aSize, aLayer)
Definition: pcbnew.py:13693
def Shape(self, aLayer)
Definition: pcbnew.py:13685
def Clearance(self, *args)
Definition: pcbnew.py:13766
def __ne__(self, aOther)
Definition: pcbnew.py:13550
def StartLayer(self)
Definition: pcbnew.py:13586
def CopperLayer(self, *args)
Definition: pcbnew.py:13636
def ZoneConnection(self, *args)
Definition: pcbnew.py:13794
def ThermalGap(self, *args)
Definition: pcbnew.py:13808
def Offset(self, *args)
Definition: pcbnew.py:13709
def LayerSet(self, *args)
Definition: pcbnew.py:13571
def ForEachUniqueLayer(self, aMethod)
Definition: pcbnew.py:13669
def ThermalSpokeAngle(self, aLayer=F_Cu)
Definition: pcbnew.py:13819
def SetDrillShape(self, aShape)
Definition: pcbnew.py:13705
def SetChamferPositions(self, aPositions, aLayer)
Definition: pcbnew.py:13762
def SolderPasteMarginRatio(self, *args)
Definition: pcbnew.py:13787
def RoundRectRadiusRatio(self, aLayer)
Definition: pcbnew.py:13731
def ReplacePrimitives(self, aPrimitivesList, aLayer)
Definition: pcbnew.py:13842
def __init__(self, *args)
Definition: pcbnew.py:13539
def FrontOuterLayers(self, *args)
Definition: pcbnew.py:13643
def UniqueLayers(self)
Definition: pcbnew.py:13673
def SetShape(self, aShape, aLayer)
Definition: pcbnew.py:13689
def Compare(aPadstackRef, aPadstackCmp)
Definition: pcbnew.py:13563
def SetOrientation(self, aAngle)
Definition: pcbnew.py:13610
def ChamferRatio(self, aLayer)
Definition: pcbnew.py:13747
def SetChamferRatio(self, aRatio, aLayer)
Definition: pcbnew.py:13751
def SetAnchorShape(self, aShape, aLayer)
Definition: pcbnew.py:13720
def ThermalSpokeWidth(self, *args)
Definition: pcbnew.py:13801
def SetCustomShapeInZoneMode(self, aM)
Definition: pcbnew.py:13665
def AnchorShape(self, aLayer)
Definition: pcbnew.py:13716
def Deserialize(self, aContainer)
Definition: pcbnew.py:13558
def __eq__(self, aOther)
Definition: pcbnew.py:13546
def BackOuterLayers(self, *args)
Definition: pcbnew.py:13650
def CustomShapeInZoneMode(self)
Definition: pcbnew.py:13661
def UnconnectedLayerMode(self)
Definition: pcbnew.py:13628
def TrapezoidDeltaSize(self, *args)
Definition: pcbnew.py:13724
def insert(self, *args)
Definition: pcbnew.py:17956
def rend(self)
Definition: pcbnew.py:17901
def back(self)
Definition: pcbnew.py:17941
def swap(self, v)
Definition: pcbnew.py:17885
def __delitem__(self, *args)
Definition: pcbnew.py:17847
def reserve(self, n)
Definition: pcbnew.py:17963
def capacity(self)
Definition: pcbnew.py:17967
def __getitem__(self, *args)
Definition: pcbnew.py:17854
def empty(self)
Definition: pcbnew.py:17877
def pop(self)
Definition: pcbnew.py:17869
def __getslice__(self, i, j)
Definition: pcbnew.py:17832
def size(self)
Definition: pcbnew.py:17881
def rbegin(self)
Definition: pcbnew.py:17897
def __len__(self)
Definition: pcbnew.py:17828
def __delslice__(self, i, j)
Definition: pcbnew.py:17843
def clear(self)
Definition: pcbnew.py:17905
def __bool__(self)
Definition: pcbnew.py:17824
def __iter__(self)
Definition: pcbnew.py:17817
def append(self, x)
Definition: pcbnew.py:17873
def assign(self, n, x)
Definition: pcbnew.py:17945
def __setitem__(self, *args)
Definition: pcbnew.py:17861
def pop_back(self)
Definition: pcbnew.py:17913
def resize(self, *args)
Definition: pcbnew.py:17949
def front(self)
Definition: pcbnew.py:17937
def begin(self)
Definition: pcbnew.py:17889
def erase(self, *args)
Definition: pcbnew.py:17917
def __init__(self, *args)
Definition: pcbnew.py:17924
def iterator(self)
Definition: pcbnew.py:17814
def push_back(self, x)
Definition: pcbnew.py:17933
def __nonzero__(self)
Definition: pcbnew.py:17820
def end(self)
Definition: pcbnew.py:17893
def get_allocator(self)
Definition: pcbnew.py:17909
def __setslice__(self, *args)
Definition: pcbnew.py:17836
def rbegin(self)
Definition: pcbnew.py:13053
def front(self)
Definition: pcbnew.py:13093
def erase(self, *args)
Definition: pcbnew.py:13073
def append(self, x)
Definition: pcbnew.py:13029
def rend(self)
Definition: pcbnew.py:13057
def end(self)
Definition: pcbnew.py:13049
def pop_back(self)
Definition: pcbnew.py:13069
def resize(self, *args)
Definition: pcbnew.py:13105
def __getslice__(self, i, j)
Definition: pcbnew.py:12988
def empty(self)
Definition: pcbnew.py:13033
def __setitem__(self, *args)
Definition: pcbnew.py:13017
def __nonzero__(self)
Definition: pcbnew.py:12976
def begin(self)
Definition: pcbnew.py:13045
def size(self)
Definition: pcbnew.py:13037
def iterator(self)
Definition: pcbnew.py:12970
def __delitem__(self, *args)
Definition: pcbnew.py:13003
def push_front(self, x)
Definition: pcbnew.py:13123
def __bool__(self)
Definition: pcbnew.py:12980
def insert(self, *args)
Definition: pcbnew.py:13112
def back(self)
Definition: pcbnew.py:13097
def pop_front(self)
Definition: pcbnew.py:13119
def assign(self, n, x)
Definition: pcbnew.py:13101
def push_back(self, x)
Definition: pcbnew.py:13089
def get_allocator(self)
Definition: pcbnew.py:13065
def __delslice__(self, i, j)
Definition: pcbnew.py:12999
def pop(self)
Definition: pcbnew.py:13025
def __len__(self)
Definition: pcbnew.py:12984
def clear(self)
Definition: pcbnew.py:13061
def swap(self, v)
Definition: pcbnew.py:13041
def __init__(self, *args)
Definition: pcbnew.py:13080
def __iter__(self)
Definition: pcbnew.py:12973
def __getitem__(self, *args)
Definition: pcbnew.py:13010
def __setslice__(self, *args)
Definition: pcbnew.py:12992
def SetOffset(self, *args)
Definition: pcbnew.py:14450
def GetNumber(self)
Definition: pcbnew.py:13915
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:14319
def SetRoundRectRadiusRatio(self, *args)
Definition: pcbnew.py:14478
def GetOrientation(self)
Definition: pcbnew.py:14081
def GetDrillSizeY(self)
Definition: pcbnew.py:14023
def ReplacePrimitives(self, aLayer, aPrimitivesList)
Definition: pcbnew.py:14061
def Serialize(self, aContainer)
Definition: pcbnew.py:13865
def Recombine(self, aIsDryRun, aMaxError)
Definition: pcbnew.py:14345
def IsFreePad(self)
Definition: pcbnew.py:13951
def GetAnchorPadShape(self, aLayer)
Definition: pcbnew.py:13963
def GetLocalSpokeWidthOverride(self, aSource=None)
Definition: pcbnew.py:14228
def SetThermalSpokeAngleDegrees(self, aAngle)
Definition: pcbnew.py:14240
def ShapePos(self, aLayer)
Definition: pcbnew.py:14267
def SetLocalThermalGapOverride(self, aOverride)
Definition: pcbnew.py:14263
def GetRemoveUnconnected(self)
Definition: pcbnew.py:14299
def GetLocalZoneConnection(self)
Definition: pcbnew.py:14173
def GetOffset(self, *args)
Definition: pcbnew.py:14443
def SetThermalSpokeAngle(self, aAngle)
Definition: pcbnew.py:14232
def ConnSMDMask()
Definition: pcbnew.py:13884
def SetSizeY(self, aY)
Definition: pcbnew.py:13995
def __eq__(self, *args)
Definition: pcbnew.py:14394
def DeletePrimitivesList(self, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:14049
def GetBoundingRadius(self)
Definition: pcbnew.py:14197
def SetChamferPositions(self, *args)
Definition: pcbnew.py:14506
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:14165
def SetDrillSizeX(self, aX)
Definition: pcbnew.py:14011
def SetPinType(self, aType)
Definition: pcbnew.py:13931
def Padstack(self, *args)
Definition: pcbnew.py:14027
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc=ERROR_INSIDE, ignoreLineWidth=False)
Definition: pcbnew.py:14181
def SetPadstack(self, aPadstack)
Definition: pcbnew.py:14034
def GetSize(self, *args)
Definition: pcbnew.py:14415
def GetRoundRectRadiusRatio(self, *args)
Definition: pcbnew.py:14471
def GetPinFunction(self)
Definition: pcbnew.py:13927
def SetLocalThermalSpokeWidthOverride(self, aWidth)
Definition: pcbnew.py:14220
def Compare(aPadRef, aPadCmp)
Definition: pcbnew.py:14350
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:14153
def SetChamferRectRatio(self, *args)
Definition: pcbnew.py:14492
def SetFrontRoundRectRadiusSize(self, aRadius)
Definition: pcbnew.py:14279
def IsNoConnectPad(self)
Definition: pcbnew.py:13947
def GetSolderPasteMargin(self, aLayer)
Definition: pcbnew.py:14212
def GetKeepTopBottom(self)
Definition: pcbnew.py:14307
def GetSolderMaskExpansion(self, aLayer)
Definition: pcbnew.py:14208
def SetDrillSizeY(self, aY)
Definition: pcbnew.py:14019
def SetAttribute(self, aAttribute)
Definition: pcbnew.py:14113
def GetPadToDieLength(self)
Definition: pcbnew.py:14137
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:14382
def SetY(self, y)
Definition: pcbnew.py:13979
def SetUnconnectedLayerMode(self, aMode)
Definition: pcbnew.py:14311
def SetOrientation(self, aAngle)
Definition: pcbnew.py:14073
def SameLogicalPadAs(self, aOther)
Definition: pcbnew.py:13939
def SetDirty(self)
Definition: pcbnew.py:14109
def GetOrientationDegrees(self)
Definition: pcbnew.py:14093
def SetProperty(self, aProperty)
Definition: pcbnew.py:14121
def SetPinFunction(self, aName)
Definition: pcbnew.py:13923
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:14378
def CanHaveNumber(self)
Definition: pcbnew.py:13919
def GetDrillSizeX(self)
Definition: pcbnew.py:14015
def IsFlipped(self)
Definition: pcbnew.py:13907
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:14157
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:14177
def AppendPrimitives(self, aLayer, aPrimitivesList)
Definition: pcbnew.py:14065
def SetFrontRoundRectRadiusRatio(self, aRadiusScale)
Definition: pcbnew.py:14271
def GetChamferRectRatio(self, *args)
Definition: pcbnew.py:14485
def SetX(self, x)
Definition: pcbnew.py:13983
def SetKeepTopBottom(self, aSet)
Definition: pcbnew.py:14303
def SetAnchorPadShape(self, aLayer, aShape)
Definition: pcbnew.py:13975
def GetLocalThermalSpokeWidthOverride(self)
Definition: pcbnew.py:14224
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:14089
def FlipPrimitives(self, aFlipDirection)
Definition: pcbnew.py:14057
def GetDrillShape(self)
Definition: pcbnew.py:14101
def ShowPadAttr(self)
Definition: pcbnew.py:14358
def ApertureMask()
Definition: pcbnew.py:13894
def CanFlashLayer(self, aLayer)
Definition: pcbnew.py:14323
def GetPadName(self)
Definition: pcbnew.py:14524
def GetEffectivePolygon(self, aLayer, aErrorLoc=ERROR_INSIDE)
Definition: pcbnew.py:14193
def UnplatedHoleMask()
Definition: pcbnew.py:13889
def SetCustomShapeInZoneOpt(self, aOption)
Definition: pcbnew.py:13971
def GetThermalGap(self)
Definition: pcbnew.py:14252
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:14161
def SetDrillShape(self, aShape)
Definition: pcbnew.py:14097
def GetPrincipalLayer(self)
Definition: pcbnew.py:14327
def SetPadToDieLength(self, aLength)
Definition: pcbnew.py:14133
def GetFPRelativeOrientation(self)
Definition: pcbnew.py:14085
def HitTest(self, *args)
Definition: pcbnew.py:14338
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:14295
def SetThermalGap(self, aGap)
Definition: pcbnew.py:14248
def SetLocalZoneConnection(self, aType)
Definition: pcbnew.py:14169
def GetPinType(self)
Definition: pcbnew.py:13935
def SetFrontShape(self, aShape)
Definition: pcbnew.py:13955
def FlashLayer(self, *args)
Definition: pcbnew.py:14331
def BuildEffectiveShapes(self)
Definition: pcbnew.py:14366
def SetDrillSize(self, aSize)
Definition: pcbnew.py:14003
def SetPadName(self, aName)
Definition: pcbnew.py:14516
def GetUnconnectedLayerMode(self)
Definition: pcbnew.py:14315
def GetSubRatsnest(self)
Definition: pcbnew.py:14287
def SetSubRatsnest(self, aSubRatsnest)
Definition: pcbnew.py:14291
def AddPrimitive(self, *args)
Definition: pcbnew.py:14534
def GetPrimitives(self, aLayer)
Definition: pcbnew.py:14053
def GetFrontRoundRectRadiusSize(self)
Definition: pcbnew.py:14283
def SetSize(self, *args)
Definition: pcbnew.py:14422
def AddPrimitiveShape(self, aLayer, aPrimitive)
Definition: pcbnew.py:14069
def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER)
Definition: pcbnew.py:14567
def SetDelta(self, *args)
Definition: pcbnew.py:14436
def GetSizeY(self)
Definition: pcbnew.py:13999
def Deserialize(self, aContainer)
Definition: pcbnew.py:13869
def ClonePad(self)
Definition: pcbnew.py:14362
def __init__(self, *args)
Definition: pcbnew.py:13858
def GetRoundRectCornerRadius(self, *args)
Definition: pcbnew.py:14457
def GetFrontRoundRectRadiusRatio(self)
Definition: pcbnew.py:14275
def GetProperty(self)
Definition: pcbnew.py:14125
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14189
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:14145
def AddPrimitivePoly(self, *args)
Definition: pcbnew.py:14038
def SetSizeX(self, aX)
Definition: pcbnew.py:13987
def BuildEffectivePolygon(self, aErrorLoc=ERROR_INSIDE)
Definition: pcbnew.py:14370
def GetThermalSpokeAngleDegrees(self)
Definition: pcbnew.py:14244
def SMDMask()
Definition: pcbnew.py:13879
def IsDirty(self)
Definition: pcbnew.py:14105
def GetShape(self, *args)
Definition: pcbnew.py:14401
def SetName(self, aName)
Definition: pcbnew.py:14519
def CheckPad(self, aUnitsProvider, aForPadProperties, aErrorHandler)
Definition: pcbnew.py:14390
def GetAttribute(self)
Definition: pcbnew.py:14117
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:14141
def MergePrimitivesAsPolygon(self, aLayer, aMergedPolygon, aErrorLoc=ERROR_INSIDE)
Definition: pcbnew.py:14045
def ImportSettingsFrom(self, aMasterPad)
Definition: pcbnew.py:13903
def SharesNetTieGroup(self, aOther)
Definition: pcbnew.py:13943
def GetZoneConnectionOverrides(self, aSource=None)
Definition: pcbnew.py:14216
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:14149
def PTHMask()
Definition: pcbnew.py:13874
def GetChamferPositions(self, *args)
Definition: pcbnew.py:14499
def GetFrontShape(self)
Definition: pcbnew.py:13959
def TransformHoleToPolygon(self, aBuffer, aClearance, aError, aErrorLoc=ERROR_INSIDE)
Definition: pcbnew.py:14185
def GetSizeX(self)
Definition: pcbnew.py:13991
def GetName(self)
Definition: pcbnew.py:14527
def SetShape(self, *args)
Definition: pcbnew.py:14408
def GetLocalThermalGapOverride(self, *args)
Definition: pcbnew.py:14256
def GetCustomShapeInZoneOpt(self)
Definition: pcbnew.py:13967
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14374
def ClassOf(aItem)
Definition: pcbnew.py:13899
def GetThermalSpokeAngle(self)
Definition: pcbnew.py:14236
def ShowPadShape(self, aLayer)
Definition: pcbnew.py:14354
def GetDrillSize(self)
Definition: pcbnew.py:14007
def SetRoundRectCornerRadius(self, *args)
Definition: pcbnew.py:14464
def SetNumber(self, aNumber)
Definition: pcbnew.py:13911
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:14386
def IsAperturePad(self)
Definition: pcbnew.py:14129
def GetDelta(self, *args)
Definition: pcbnew.py:14429
def SetFPRelativeOrientation(self, aAngle)
Definition: pcbnew.py:14077
def GetLocalClearance(self, *args)
Definition: pcbnew.py:14201
def SetMid(self, aMid)
Definition: pcbnew.py:14768
def HitTest(self, *args)
Definition: pcbnew.py:14792
def Deserialize(self, aContainer)
Definition: pcbnew.py:14822
def GetArcAngleStart(self)
Definition: pcbnew.py:14784
def GetMid(self)
Definition: pcbnew.py:14772
def __eq__(self, *args)
Definition: pcbnew.py:14811
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14803
def IsDegenerated(self, aThreshold=5)
Definition: pcbnew.py:14807
def Serialize(self, aContainer)
Definition: pcbnew.py:14818
def GetAngle(self)
Definition: pcbnew.py:14780
def GetRadius(self)
Definition: pcbnew.py:14776
def IsCCW(self)
Definition: pcbnew.py:14799
def GetArcAngleEnd(self)
Definition: pcbnew.py:14788
def __init__(self, *args)
Definition: pcbnew.py:14756
def ClassOf(aItem)
Definition: pcbnew.py:14764
def SetUnits(self, aUnits)
Definition: pcbnew.py:17102
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:16994
def SetArrowLength(self, aLength)
Definition: pcbnew.py:17190
def GetKeepTextAligned(self)
Definition: pcbnew.py:17158
def __eq__(self, *args)
Definition: pcbnew.py:17229
def ChangeOverrideText(self, aValue)
Definition: pcbnew.py:17038
def SetOverrideTextEnabled(self, aOverride)
Definition: pcbnew.py:17026
def SetTextPositionMode(self, aMode)
Definition: pcbnew.py:17178
def SetOverrideText(self, aValue)
Definition: pcbnew.py:17034
def Serialize(self, aContainer)
Definition: pcbnew.py:16998
def ChangeSuffix(self, aSuffix)
Definition: pcbnew.py:17082
def ChangePrecision(self, aPrecision)
Definition: pcbnew.py:17142
def ChangeKeepTextAligned(self, aKeepAligned)
Definition: pcbnew.py:17174
def GetOverrideTextEnabled(self)
Definition: pcbnew.py:17022
def SetEnd(self, aPoint)
Definition: pcbnew.py:17018
def SetAutoUnits(self, aAuto=True)
Definition: pcbnew.py:17118
def SetMeasuredValue(self, aValue)
Definition: pcbnew.py:17046
def SetSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:17150
def ChangeTextAngleDegrees(self, aDegrees)
Definition: pcbnew.py:17170
def SetPrefix(self, aPrefix)
Definition: pcbnew.py:17066
def GetExtensionOffset(self)
Definition: pcbnew.py:17198
def GetSuppressZeroes(self)
Definition: pcbnew.py:17146
def GetTextPositionMode(self)
Definition: pcbnew.py:17182
def ChangeSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:17154
def SetUnitsFormat(self, aFormat)
Definition: pcbnew.py:17126
def ChangePrefix(self, aPrefix)
Definition: pcbnew.py:17070
def SetLineThickness(self, aWidth)
Definition: pcbnew.py:17206
def GetMeasuredValue(self)
Definition: pcbnew.py:17042
def SetKeepTextAligned(self, aKeepAligned)
Definition: pcbnew.py:17162
def SetExtensionOffset(self, aOffset)
Definition: pcbnew.py:17194
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:17225
def SetArrowDirection(self, aDirection)
Definition: pcbnew.py:17090
def ChangeUnitsMode(self, aMode)
Definition: pcbnew.py:17114
def Deserialize(self, aContainer)
Definition: pcbnew.py:17002
def GetTextAngleDegreesProp(self)
Definition: pcbnew.py:17166
def GetArrowDirection(self)
Definition: pcbnew.py:17086
def HitTest(self, *args)
Definition: pcbnew.py:17214
def GetLineThickness(self)
Definition: pcbnew.py:17202
def ChangeArrowDirection(self, aDirection)
Definition: pcbnew.py:17094
def SetPrecision(self, aPrecision)
Definition: pcbnew.py:17138
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17221
def ChangeUnitsFormat(self, aFormat)
Definition: pcbnew.py:17130
def SetStart(self, aPoint)
Definition: pcbnew.py:17010
def SetUnitsMode(self, aMode)
Definition: pcbnew.py:17110
def SetSuffix(self, aSuffix)
Definition: pcbnew.py:17078
def SetExtensionHeight(self, aHeight)
Definition: pcbnew.py:17287
def ClassOf(aItem)
Definition: pcbnew.py:17259
def GetCrossbarEnd(self)
Definition: pcbnew.py:17267
def GetCrossbarStart(self)
Definition: pcbnew.py:17263
def Serialize(self, aContainer)
Definition: pcbnew.py:17250
def UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
Definition: pcbnew.py:17283
def SetHeight(self, aHeight)
Definition: pcbnew.py:17271
def __init__(self, aParent, aType=PCB_DIM_ALIGNED_T)
Definition: pcbnew.py:17245
def GetExtensionHeight(self)
Definition: pcbnew.py:17291
def ChangeHeight(self, aHeight)
Definition: pcbnew.py:17279
def Deserialize(self, aContainer)
Definition: pcbnew.py:17254
def ChangeExtensionHeight(self, aHeight)
Definition: pcbnew.py:17295
def Deserialize(self, aContainer)
Definition: pcbnew.py:17437
def ClassOf(aItem)
Definition: pcbnew.py:17442
def Serialize(self, aContainer)
Definition: pcbnew.py:17433
def __init__(self, aParent)
Definition: pcbnew.py:17429
def ClassOf(aItem)
Definition: pcbnew.py:17404
def Deserialize(self, aContainer)
Definition: pcbnew.py:17399
def __init__(self, aParent)
Definition: pcbnew.py:17391
def ChangeTextBorder(self, aBorder)
Definition: pcbnew.py:17416
def SetTextBorder(self, aBorder)
Definition: pcbnew.py:17408
def GetTextBorder(self)
Definition: pcbnew.py:17412
def Serialize(self, aContainer)
Definition: pcbnew.py:17395
def __init__(self, aParent)
Definition: pcbnew.py:17315
def SetOrientation(self, aOrientation)
Definition: pcbnew.py:17333
def Serialize(self, aContainer)
Definition: pcbnew.py:17320
def Deserialize(self, aContainer)
Definition: pcbnew.py:17324
def SetLeaderLength(self, aLength)
Definition: pcbnew.py:17366
def Deserialize(self, aContainer)
Definition: pcbnew.py:17357
def Serialize(self, aContainer)
Definition: pcbnew.py:17353
def __init__(self, aParent)
Definition: pcbnew.py:17349
def GetLeaderLength(self)
Definition: pcbnew.py:17370
def ClassOf(aItem)
Definition: pcbnew.py:17362
def ChangeLeaderLength(self, aLength)
Definition: pcbnew.py:17374
def __nonzero__(self)
Definition: pcbnew.py:13142
def swap(self, v)
Definition: pcbnew.py:13207
def __getitem__(self, *args)
Definition: pcbnew.py:13176
def empty(self)
Definition: pcbnew.py:13199
def __init__(self, *args)
Definition: pcbnew.py:13246
def __len__(self)
Definition: pcbnew.py:13150
def rend(self)
Definition: pcbnew.py:13223
def __getslice__(self, i, j)
Definition: pcbnew.py:13154
def __delitem__(self, *args)
Definition: pcbnew.py:13169
def iterator(self)
Definition: pcbnew.py:13136
def rbegin(self)
Definition: pcbnew.py:13219
def __setslice__(self, *args)
Definition: pcbnew.py:13158
def begin(self)
Definition: pcbnew.py:13211
def size(self)
Definition: pcbnew.py:13203
def end(self)
Definition: pcbnew.py:13215
def __iter__(self)
Definition: pcbnew.py:13139
def clear(self)
Definition: pcbnew.py:13227
def __bool__(self)
Definition: pcbnew.py:13146
def back(self)
Definition: pcbnew.py:13263
def resize(self, *args)
Definition: pcbnew.py:13271
def push_back(self, x)
Definition: pcbnew.py:13255
def assign(self, n, x)
Definition: pcbnew.py:13267
def insert(self, *args)
Definition: pcbnew.py:13278
def push_front(self, x)
Definition: pcbnew.py:13289
def pop_back(self)
Definition: pcbnew.py:13235
def pop_front(self)
Definition: pcbnew.py:13285
def front(self)
Definition: pcbnew.py:13259
def get_allocator(self)
Definition: pcbnew.py:13231
def pop(self)
Definition: pcbnew.py:13191
def erase(self, *args)
Definition: pcbnew.py:13239
def __setitem__(self, *args)
Definition: pcbnew.py:13183
def __delslice__(self, i, j)
Definition: pcbnew.py:13165
def append(self, x)
Definition: pcbnew.py:13195
def insert(self, *args)
Definition: pcbnew.py:13444
def reserve(self, n)
Definition: pcbnew.py:13451
def __getitem__(self, *args)
Definition: pcbnew.py:13342
def __init__(self, *args)
Definition: pcbnew.py:13412
def push_back(self, x)
Definition: pcbnew.py:13421
def __getslice__(self, i, j)
Definition: pcbnew.py:13320
def __nonzero__(self)
Definition: pcbnew.py:13308
def __iter__(self)
Definition: pcbnew.py:13305
def swap(self, v)
Definition: pcbnew.py:13373
def __setitem__(self, *args)
Definition: pcbnew.py:13349
def __setslice__(self, *args)
Definition: pcbnew.py:13324
def get_allocator(self)
Definition: pcbnew.py:13397
def rbegin(self)
Definition: pcbnew.py:13385
def resize(self, *args)
Definition: pcbnew.py:13437
def __len__(self)
Definition: pcbnew.py:13316
def iterator(self)
Definition: pcbnew.py:13302
def __bool__(self)
Definition: pcbnew.py:13312
def __delitem__(self, *args)
Definition: pcbnew.py:13335
def erase(self, *args)
Definition: pcbnew.py:13405
def pop_back(self)
Definition: pcbnew.py:13401
def append(self, x)
Definition: pcbnew.py:13361
def capacity(self)
Definition: pcbnew.py:13455
def assign(self, n, x)
Definition: pcbnew.py:13433
def __delslice__(self, i, j)
Definition: pcbnew.py:13331
def CloneField(self)
Definition: pcbnew.py:16903
def SetId(self, aId)
Definition: pcbnew.py:16923
def __init__(self, *args)
Definition: pcbnew.py:16855
def ClassOf(aItem)
Definition: pcbnew.py:16871
def GetName(self, aUseDefaultName=True)
Definition: pcbnew.py:16907
def IsDatasheet(self)
Definition: pcbnew.py:16883
def GetCanonicalName(self)
Definition: pcbnew.py:16911
def IsReference(self)
Definition: pcbnew.py:16875
def IsMandatory(self)
Definition: pcbnew.py:16891
def GetId(self)
Definition: pcbnew.py:16919
def Serialize(self, aContainer)
Definition: pcbnew.py:16862
def __eq__(self, *args)
Definition: pcbnew.py:16927
def IsValue(self)
Definition: pcbnew.py:16879
def SetName(self, aName)
Definition: pcbnew.py:16915
def IsComponentClass(self)
Definition: pcbnew.py:16887
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:16899
def IsHypertext(self)
Definition: pcbnew.py:16895
def Deserialize(self, aContainer)
Definition: pcbnew.py:16866
def TopLevelGroup(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:19140
def IsGroupableType(aType)
Definition: pcbnew.py:19184
def DeepDuplicate(self)
Definition: pcbnew.py:19160
def RemoveAll(self)
Definition: pcbnew.py:19135
def SetName(self, aName)
Definition: pcbnew.py:19116
def WithinScope(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:19145
def GetName(self)
Definition: pcbnew.py:19112
def ClassOf(aItem)
Definition: pcbnew.py:19108
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:19179
def AddItem(self, aItem)
Definition: pcbnew.py:19127
def RemoveItem(self, aItem)
Definition: pcbnew.py:19131
def __eq__(self, *args)
Definition: pcbnew.py:19149
def __init__(self, aParent)
Definition: pcbnew.py:19103
def DeepClone(self)
Definition: pcbnew.py:19156
def HitTest(self, *args)
Definition: pcbnew.py:19164
def GetItems(self, *args)
Definition: pcbnew.py:19120
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:19175
def GetItemsDeque(self)
Definition: pcbnew.py:19188
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:19171
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:8111
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8119
def GetLibraryDesc(self)
Definition: pcbnew.py:8095
def Parse(self, aClipboardSourceInput)
Definition: pcbnew.py:8168
def GetStringOutput(self, doClear)
Definition: pcbnew.py:8160
def SaveBoard(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8099
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:8127
def DeleteLibrary(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8143
def GetLibraryFileDesc(self)
Definition: pcbnew.py:8091
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8115
def Format(self, aItem)
Definition: pcbnew.py:8156
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:8131
def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
Definition: pcbnew.py:8107
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8135
def __init__(self, *args)
Definition: pcbnew.py:8151
def IsLibraryWritable(self, aLibraryPath)
Definition: pcbnew.py:8147
def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None)
Definition: pcbnew.py:8103
def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None)
Definition: pcbnew.py:8123
def CreateLibrary(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8139
def SetOutputFormatter(self, aFormatter)
Definition: pcbnew.py:8164
def GuessPluginTypeFromLibPath(aLibPath, aCtl=0)
Definition: pcbnew.py:7870
def PluginFind(aFileType)
Definition: pcbnew.py:7850
def FindPluginTypeFromBoardPath(aFileName, aCtl=0)
Definition: pcbnew.py:7865
def EnumFromStr(aFileType)
Definition: pcbnew.py:7860
def ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath, aReporter)
Definition: pcbnew.py:7885
def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:7875
def Save(aFileType, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:7880
def __init__(self)
Definition: pcbnew.py:7889
def ShowType(aFileType)
Definition: pcbnew.py:7855
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7953
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:7945
def footprintPyEnumerate(self, aLibraryPath, aExitOnError)
Definition: pcbnew.py:7970
def CanReadBoard(self, aFileName)
Definition: pcbnew.py:7909
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:7901
def GetBoardFileDesc(self)
Definition: pcbnew.py:7905
def GetLibraryOptions(self, aListToAppendTo)
Definition: pcbnew.py:7965
def IsFootprintLibWritable(self, aLibraryPath)
Definition: pcbnew.py:7986
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7961
def FootprintLibDelete(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7982
def FootprintLibCreate(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:7978
def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None)
Definition: pcbnew.py:7921
def GetImportedCachedLibraryFootprints(self)
Definition: pcbnew.py:7925
def SetQueryUserCallback(self, aCallback)
Definition: pcbnew.py:7917
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:7949
def SaveBoard(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:7929
def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None)
Definition: pcbnew.py:7941
def GetLibraryTimestamp(self, aLibraryPath)
Definition: pcbnew.py:7937
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:7957
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:7933
def CanReadFootprint(self, aFileName)
Definition: pcbnew.py:7913
def __init__(self, aItem, aPos, aLayer=F_Cu)
Definition: pcbnew.py:17457
def SetShapes1(self, aShapes)
Definition: pcbnew.py:17503
def SetZoom(self, aZoomFactor)
Definition: pcbnew.py:17491
def GetColorLayer(self)
Definition: pcbnew.py:17483
def HitTest(self, *args)
Definition: pcbnew.py:17476
def ClassOf(aItem)
Definition: pcbnew.py:17463
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17487
def GetShapes2(self)
Definition: pcbnew.py:17499
def GetShapes1(self)
Definition: pcbnew.py:17495
def DeserializeFromString(data)
Definition: pcbnew.py:17472
def SetShapes2(self, aShapes)
Definition: pcbnew.py:17507
def SerializeToString(self)
Definition: pcbnew.py:17467
def SetFineScaleAdjustY(self, aVal)
Definition: pcbnew.py:8347
def ColorSettings(self)
Definition: pcbnew.py:8279
def GetDashedLineGapRatio(self)
Definition: pcbnew.py:8635
def GetDrillMarksType(self)
Definition: pcbnew.py:8327
def GetDisableGerberMacros(self)
Definition: pcbnew.py:8483
def GetTextMode(self)
Definition: pcbnew.py:8287
def GetPlotReference(self)
Definition: pcbnew.py:8431
def SetPlotReference(self, aFlag)
Definition: pcbnew.py:8427
def SetLayerSelection(self, aSelection)
Definition: pcbnew.py:8559
def GetLayerSelection(self)
Definition: pcbnew.py:8563
def GetWidthAdjust(self)
Definition: pcbnew.py:8359
def GetUseGerberX2format(self)
Definition: pcbnew.py:8491
def SetColorSettings(self, aSettings)
Definition: pcbnew.py:8275
def SetDashedLineGapRatio(self, aVal)
Definition: pcbnew.py:8631
def SetA4Output(self, aForce)
Definition: pcbnew.py:8591
def GetScale(self)
Definition: pcbnew.py:8335
def SetWidthAdjust(self, aVal)
Definition: pcbnew.py:8355
def GetSketchPadsOnFabLayers(self)
Definition: pcbnew.py:8383
def SetUseGerberProtelExtensions(self, aUse)
Definition: pcbnew.py:8511
def SetUseGerberAttributes(self, aUse)
Definition: pcbnew.py:8645
def SetSketchPadLineWidth(self, aWidth)
Definition: pcbnew.py:8387
def SetDXFPlotUnits(self, aUnit)
Definition: pcbnew.py:8315
def GetFineScaleAdjustY(self)
Definition: pcbnew.py:8351
def GetSketchPadLineWidth(self)
Definition: pcbnew.py:8391
def SetFormat(self, aFormat)
Definition: pcbnew.py:8463
def SetSkipPlotNPTH_Pads(self, aSkip)
Definition: pcbnew.py:8255
def SetPlotMode(self, aPlotMode)
Definition: pcbnew.py:8291
def SetScaleSelection(self, aSelection)
Definition: pcbnew.py:8583
def SetFineScaleAdjustX(self, aVal)
Definition: pcbnew.py:8339
def SetBlackAndWhite(self, blackAndWhite)
Definition: pcbnew.py:8543
def GetScaleSelection(self)
Definition: pcbnew.py:8587
def GetAutoScale(self)
Definition: pcbnew.py:8367
def SetHPGLPenNum(self, aVal)
Definition: pcbnew.py:8615
def GetA4Output(self)
Definition: pcbnew.py:8595
def Format(self, aFormatter)
Definition: pcbnew.py:8263
def GetSketchDNPFPsOnFabLayers(self)
Definition: pcbnew.py:8407
def GetMirror(self)
Definition: pcbnew.py:8375
def SetDashedLineDashRatio(self, aVal)
Definition: pcbnew.py:8623
def GetGerberPrecision(self)
Definition: pcbnew.py:8523
def SetUseGerberX2format(self, aUse)
Definition: pcbnew.py:8487
def SetTextMode(self, aVal)
Definition: pcbnew.py:8283
def GetFormat(self)
Definition: pcbnew.py:8467
def SetScale(self, aVal)
Definition: pcbnew.py:8331
def SetSvgPrecision(self, aPrecision)
Definition: pcbnew.py:8527
def __init__(self)
Definition: pcbnew.py:8251
def SetPlotFPText(self, aFlag)
Definition: pcbnew.py:8435
def IsSameAs(self, aPcbPlotParams)
Definition: pcbnew.py:8271
def GetPlotOnAllLayersSequence(self)
Definition: pcbnew.py:8571
def SetUseAuxOrigin(self, aAux)
Definition: pcbnew.py:8575
def SetSvgFitPageToBoard(self, aSvgFitPageToBoard)
Definition: pcbnew.py:8535
def GetHPGLPenNum(self)
Definition: pcbnew.py:8619
def GetNegative(self)
Definition: pcbnew.py:8447
def SetSubtractMaskFromSilk(self, aSubtract)
Definition: pcbnew.py:8551
def SetAutoScale(self, aFlag)
Definition: pcbnew.py:8363
def GetLegacyPlotViaOnMaskLayer(self)
Definition: pcbnew.py:8451
def GetPlotFrameRef(self)
Definition: pcbnew.py:8459
def GetDXFPlotPolygonMode(self)
Definition: pcbnew.py:8311
def GetIncludeGerberNetlistInfo(self)
Definition: pcbnew.py:8499
def SetMirror(self, aFlag)
Definition: pcbnew.py:8371
def GetSvgPrecision(self)
Definition: pcbnew.py:8531
def GetSvgFitPagetoBoard(self)
Definition: pcbnew.py:8539
def GetUseAuxOrigin(self)
Definition: pcbnew.py:8579
def SetDrillMarksType(self, aVal)
Definition: pcbnew.py:8323
def GetFineScaleAdjustX(self)
Definition: pcbnew.py:8343
def GetCreateGerberJobFile(self)
Definition: pcbnew.py:8507
def GetOutputDirectory(self)
Definition: pcbnew.py:8475
def GetHPGLPenSpeed(self)
Definition: pcbnew.py:8607
def SetPlotFrameRef(self, aFlag)
Definition: pcbnew.py:8455
def GetDXFPlotUnits(self)
Definition: pcbnew.py:8319
def GetDashedLineDashRatio(self)
Definition: pcbnew.py:8627
def SetIncludeGerberNetlistInfo(self, aUse)
Definition: pcbnew.py:8495
def GetHideDNPFPsOnFabLayers(self)
Definition: pcbnew.py:8399
def SetDisableGerberMacros(self, aDisable)
Definition: pcbnew.py:8479
def SetSketchDNPFPsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8403
def SetPlotOnAllLayersSequence(self, aSeq)
Definition: pcbnew.py:8567
def SetCreateGerberJobFile(self, aCreate)
Definition: pcbnew.py:8503
def SetGerberPrecision(self, aPrecision)
Definition: pcbnew.py:8519
def GetPlotValue(self)
Definition: pcbnew.py:8423
def SetSketchPadsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8379
def SetCrossoutDNPFPsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8411
def GetHPGLPenDiameter(self)
Definition: pcbnew.py:8599
def SetHideDNPFPsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8395
def GetCrossoutDNPFPsOnFabLayers(self)
Definition: pcbnew.py:8415
def GetBlackAndWhite(self)
Definition: pcbnew.py:8547
def GetUseGerberProtelExtensions(self)
Definition: pcbnew.py:8515
def GetPlotPadNumbers(self)
Definition: pcbnew.py:8303
def GetSubtractMaskFromSilk(self)
Definition: pcbnew.py:8555
def SetDXFPlotPolygonMode(self, aFlag)
Definition: pcbnew.py:8307
def GetPlotFPText(self)
Definition: pcbnew.py:8439
def Parse(self, aParser)
Definition: pcbnew.py:8267
def SetOutputDirectory(self, aDir)
Definition: pcbnew.py:8471
def SetPlotPadNumbers(self, aFlag)
Definition: pcbnew.py:8299
def SetHPGLPenSpeed(self, aValue)
Definition: pcbnew.py:8611
def SetPlotValue(self, aFlag)
Definition: pcbnew.py:8419
def SetNegative(self, aFlag)
Definition: pcbnew.py:8443
def GetPlotMode(self)
Definition: pcbnew.py:8295
def SetHPGLPenDiameter(self, aValue)
Definition: pcbnew.py:8603
def GetSkipPlotNPTH_Pads(self)
Definition: pcbnew.py:8259
def __init__(self, *args)
Definition: pcbnew.py:19205
def GetReferenceImage(self, *args)
Definition: pcbnew.py:19213
def __eq__(self, *args)
Definition: pcbnew.py:19240
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:19229
def HitTest(self, *args)
Definition: pcbnew.py:19233
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:19225
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:16555
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16509
def __eq__(self, *args)
Definition: pcbnew.py:16536
def GetCorners(self)
Definition: pcbnew.py:16505
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:16559
def __init__(self, *args)
Definition: pcbnew.py:16480
def GetConnectionPoints(self)
Definition: pcbnew.py:16501
def SetHasSolderMask(self, aVal)
Definition: pcbnew.py:16543
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:16532
def SetIsProxyItem(self, aIsProxy=True)
Definition: pcbnew.py:16513
def Serialize(self, aContainer)
Definition: pcbnew.py:16493
def HasSolderMask(self)
Definition: pcbnew.py:16547
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:16551
def GetArcAngleStart(self)
Definition: pcbnew.py:16563
def Scale(self, aScale)
Definition: pcbnew.py:16524
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:16528
def GetShapeStr(self)
Definition: pcbnew.py:16567
def Deserialize(self, aContainer)
Definition: pcbnew.py:16497
def HitTest(self, *args)
Definition: pcbnew.py:16517
def ClassOf(aItem)
Definition: pcbnew.py:16489
def DrawBorders(self, aCallback)
Definition: pcbnew.py:17775
def SetStrokeColumns(self, aDoStroke)
Definition: pcbnew.py:17679
def ClassOf(aItem)
Definition: pcbnew.py:17595
def AddCell(self, aCell)
Definition: pcbnew.py:17751
def GetPositionY(self)
Definition: pcbnew.py:17711
def SetSeparatorsColor(self, aColor)
Definition: pcbnew.py:17671
def StrokeRows(self)
Definition: pcbnew.py:17691
def HitTest(self, *args)
Definition: pcbnew.py:17787
def DeleteMarkedCells(self)
Definition: pcbnew.py:17763
def SetColWidth(self, aCol, aWidth)
Definition: pcbnew.py:17727
def SetSeparatorsStroke(self, aParams)
Definition: pcbnew.py:17647
def SetBorderStyle(self, aStyle)
Definition: pcbnew.py:17631
def GetBorderWidth(self)
Definition: pcbnew.py:17627
def GetBorderStroke(self)
Definition: pcbnew.py:17619
def SetStrokeRows(self, aDoStroke)
Definition: pcbnew.py:17687
def SetPositionX(self, x)
Definition: pcbnew.py:17699
def GetSeparatorsWidth(self)
Definition: pcbnew.py:17659
def SetSeparatorsWidth(self, aWidth)
Definition: pcbnew.py:17655
def GetCell(self, aRow, aCol)
Definition: pcbnew.py:17743
def ClearCells(self)
Definition: pcbnew.py:17759
def SetRowHeight(self, aRow, aHeight)
Definition: pcbnew.py:17735
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:17783
def StrokeExternal(self)
Definition: pcbnew.py:17603
def SetBorderStroke(self, aParams)
Definition: pcbnew.py:17615
def GetBorderColor(self)
Definition: pcbnew.py:17643
def GetBorderStyle(self)
Definition: pcbnew.py:17635
def GetCells(self)
Definition: pcbnew.py:17747
def RemoveNative(self, *args)
Definition: pcbnew.py:17771
def GetSeparatorsColor(self)
Definition: pcbnew.py:17675
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17779
def AddNative(self, *args)
Definition: pcbnew.py:17767
def SetBorderColor(self, aColor)
Definition: pcbnew.py:17639
def SetStrokeExternal(self, aDoStroke)
Definition: pcbnew.py:17599
def SetSeparatorsStyle(self, aStyle)
Definition: pcbnew.py:17663
def GetColWidth(self, aCol)
Definition: pcbnew.py:17731
def SetStrokeHeaderSeparator(self, aDoStroke)
Definition: pcbnew.py:17607
def Compare(aTable, aOther)
Definition: pcbnew.py:17802
def GetRowHeight(self, aRow)
Definition: pcbnew.py:17739
def SetPositionY(self, y)
Definition: pcbnew.py:17703
def SetColCount(self, aCount)
Definition: pcbnew.py:17715
def GetSeparatorsStroke(self)
Definition: pcbnew.py:17651
def StrokeHeaderSeparator(self)
Definition: pcbnew.py:17611
def InsertCell(self, aIdx, aCell)
Definition: pcbnew.py:17755
def GetPositionX(self)
Definition: pcbnew.py:17707
def GetSeparatorsStyle(self)
Definition: pcbnew.py:17667
def GetRowCount(self)
Definition: pcbnew.py:17723
def GetColCount(self)
Definition: pcbnew.py:17719
def GetEnd(self)
Definition: pcbnew.py:17695
def __eq__(self, *args)
Definition: pcbnew.py:17794
def SetBorderWidth(self, aWidth)
Definition: pcbnew.py:17623
def __init__(self, *args)
Definition: pcbnew.py:17586
def StrokeColumns(self)
Definition: pcbnew.py:17683
def GetShape(self)
Definition: pcbnew.py:17536
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17563
def __init__(self, *args)
Definition: pcbnew.py:17519
def ClassOf(aItem)
Definition: pcbnew.py:17528
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:17567
def HitTest(self, *args)
Definition: pcbnew.py:17556
def SetWidth(self, aWidth)
Definition: pcbnew.py:17548
def GetWidth(self)
Definition: pcbnew.py:17552
def SetSize(self, aSize)
Definition: pcbnew.py:17540
def SetShape(self, aShape)
Definition: pcbnew.py:17532
def GetSize(self)
Definition: pcbnew.py:17544
def __eq__(self, *args)
Definition: pcbnew.py:17571
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16745
def __init__(self, aParent, aType=PCB_TEXTBOX_T)
Definition: pcbnew.py:16665
def SetBorderWidth(self, aSize)
Definition: pcbnew.py:16761
def GetLegacyTextMargin(self)
Definition: pcbnew.py:16683
def __eq__(self, *args)
Definition: pcbnew.py:16769
def Deserialize(self, aContainer)
Definition: pcbnew.py:16679
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:16741
def GetDrawPos(self, *args)
Definition: pcbnew.py:16719
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:16749
def ClassOf(aItem)
Definition: pcbnew.py:16671
def SetMarginTop(self, aTop)
Definition: pcbnew.py:16691
def SetMarginRight(self, aRight)
Definition: pcbnew.py:16695
def GetMarginBottom(self)
Definition: pcbnew.py:16715
def GetMarginLeft(self)
Definition: pcbnew.py:16703
def GetBorderWidth(self)
Definition: pcbnew.py:16765
def Serialize(self, aContainer)
Definition: pcbnew.py:16675
def HitTest(self, *args)
Definition: pcbnew.py:16730
def SetMarginBottom(self, aBottom)
Definition: pcbnew.py:16699
def GetMarginRight(self)
Definition: pcbnew.py:16711
def GetMarginTop(self)
Definition: pcbnew.py:16707
def SetBorderEnabled(self, enabled)
Definition: pcbnew.py:16757
def SetMarginLeft(self, aLeft)
Definition: pcbnew.py:16687
def IsBorderEnabled(self)
Definition: pcbnew.py:16753
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:16726
def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
Definition: pcbnew.py:16737
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:16604
def ClassOf(aItem)
Definition: pcbnew.py:16588
def __eq__(self, *args)
Definition: pcbnew.py:16642
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:16626
def GetTextTypeDescription(self)
Definition: pcbnew.py:16634
def Serialize(self, aContainer)
Definition: pcbnew.py:16592
def HitTest(self, *args)
Definition: pcbnew.py:16615
def Deserialize(self, aContainer)
Definition: pcbnew.py:16596
def KeepUpright(self)
Definition: pcbnew.py:16600
def __init__(self, *args)
Definition: pcbnew.py:16579
def TextHitTest(self, *args)
Definition: pcbnew.py:16608
def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
Definition: pcbnew.py:16622
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16630
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:16638
def HasSolderMask(self)
Definition: pcbnew.py:14675
def __init__(self, aParent, idtype=PCB_TRACE_T)
Definition: pcbnew.py:14607
def ClassOf(aItem)
Definition: pcbnew.py:14603
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14699
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:14679
def GetEndX(self)
Definition: pcbnew.py:14659
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:14683
def IsPointOnEnds(self, point, min_dist=0)
Definition: pcbnew.py:14703
def SetStartY(self, aY)
Definition: pcbnew.py:14639
def GetStartX(self)
Definition: pcbnew.py:14643
def GetStartY(self)
Definition: pcbnew.py:14647
def ApproxCollinear(self, aTrack)
Definition: pcbnew.py:14718
def SetWidth(self, aWidth)
Definition: pcbnew.py:14611
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:14695
def GetEndPoint(self, aEndPoint)
Definition: pcbnew.py:14667
def GetStart(self)
Definition: pcbnew.py:14631
def SetStart(self, aStart)
Definition: pcbnew.py:14627
def __eq__(self, *args)
Definition: pcbnew.py:14730
def SetEndX(self, aX)
Definition: pcbnew.py:14651
def GetEnd(self)
Definition: pcbnew.py:14623
def IsNull(self)
Definition: pcbnew.py:14707
def GetLength(self)
Definition: pcbnew.py:14691
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14726
def Deserialize(self, aContainer)
Definition: pcbnew.py:14741
def HitTest(self, *args)
Definition: pcbnew.py:14711
def SetStartX(self, aX)
Definition: pcbnew.py:14635
def SetHasSolderMask(self, aVal)
Definition: pcbnew.py:14671
def SetEnd(self, aEnd)
Definition: pcbnew.py:14619
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:14687
def GetWidthConstraint(self, aSource=None)
Definition: pcbnew.py:14722
def GetWidth(self)
Definition: pcbnew.py:14615
def Serialize(self, aContainer)
Definition: pcbnew.py:14737
def SetEndY(self, aY)
Definition: pcbnew.py:14655
def GetEndY(self)
Definition: pcbnew.py:14663
def SetFrontTentingMode(self, aMode)
Definition: pcbnew.py:14900
def LayerPair(self, top_layer, bottom_layer)
Definition: pcbnew.py:14932
def ClassOf(aItem)
Definition: pcbnew.py:14836
def SetKeepStartEnd(self, aSet)
Definition: pcbnew.py:14971
def Serialize(self, aContainer)
Definition: pcbnew.py:15041
def HasValidLayerPair(self, aCopperLayerCount)
Definition: pcbnew.py:14847
def SanitizeLayers(self)
Definition: pcbnew.py:14944
def __eq__(self, *args)
Definition: pcbnew.py:15034
def GetOutermostConnectedLayers(self, aTopmost, aBottommost)
Definition: pcbnew.py:14990
def GetFrontWidth(self)
Definition: pcbnew.py:14888
def SetFrontWidth(self, aWidth)
Definition: pcbnew.py:14884
def GetMinAnnulus(self, aLayer, aSource)
Definition: pcbnew.py:14959
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:14979
def GetKeepStartEnd(self)
Definition: pcbnew.py:14975
def SetPadstack(self, aPadstack)
Definition: pcbnew.py:14866
def GetWidth(self, *args)
Definition: pcbnew.py:14877
def TopLayer(self)
Definition: pcbnew.py:14936
def HitTest(self, *args)
Definition: pcbnew.py:14948
def SetViaType(self, aViaType)
Definition: pcbnew.py:14855
def SetWidth(self, *args)
Definition: pcbnew.py:14870
def SetBackTentingMode(self, aMode)
Definition: pcbnew.py:14908
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:15030
def GetDrillConstraint(self, aSource=None)
Definition: pcbnew.py:14896
def GetBackTentingMode(self)
Definition: pcbnew.py:14912
def GetRemoveUnconnected(self)
Definition: pcbnew.py:14967
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14955
def Padstack(self, *args)
Definition: pcbnew.py:14859
def SetDrill(self, aDrill)
Definition: pcbnew.py:14994
def GetWidthConstraint(self, aSource=None)
Definition: pcbnew.py:14892
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:14916
def SetBottomLayer(self, aLayer)
Definition: pcbnew.py:14924
def GetIsFree(self)
Definition: pcbnew.py:15010
def FlashLayer(self, *args)
Definition: pcbnew.py:14983
def GetViaType(self)
Definition: pcbnew.py:14851
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:15022
def __init__(self, *args)
Definition: pcbnew.py:14840
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:14963
def BottomLayer(self)
Definition: pcbnew.py:14940
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15018
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:15026
def GetDrillValue(self)
Definition: pcbnew.py:15002
def Deserialize(self, aContainer)
Definition: pcbnew.py:15045
def SetDrillDefault(self)
Definition: pcbnew.py:15006
def SetLayerPair(self, aTopLayer, aBottomLayer)
Definition: pcbnew.py:14920
def GetDrill(self)
Definition: pcbnew.py:14998
def GetFrontTentingMode(self)
Definition: pcbnew.py:14904
def SetTopLayer(self, aLayer)
Definition: pcbnew.py:14928
def SetIsFree(self, aFree=True)
Definition: pcbnew.py:15014
def GetFootprintCount(self)
Definition: pcbnew.py:9032
def DecorateFilename(aBaseName, aFront, aBack)
Definition: pcbnew.py:9047
def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX)
Definition: pcbnew.py:9020
def MoveTo(self, pos)
Definition: pcbnew.py:8827
def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:8897
def Bookmark(self, *args)
Definition: pcbnew.py:8921
def SetNegative(self, aNegative)
Definition: pcbnew.py:8708
def SetTextMode(self, mode)
Definition: pcbnew.py:8935
def SetPlotMirrored(self, aMirror)
Definition: pcbnew.py:8736
def SetRenderSettings(self, aSettings)
Definition: pcbnew.py:8720
def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:8885
def SetAuthor(self, aAuthor)
Definition: pcbnew.py:8768
def GetPlotMirrored(self)
Definition: pcbnew.py:8740
def SetCurrentLineWidth(self, width, aData=None)
Definition: pcbnew.py:8744
def PlotText(self, *args)
Definition: pcbnew.py:8909
def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:8881
def SetSubject(self, aSubject)
Definition: pcbnew.py:8772
def ThickRect(self, p1, p2, width, tracemode, aData)
Definition: pcbnew.py:8865
def ThickCircle(self, pos, diametre, width, tracemode, aData)
Definition: pcbnew.py:8869
def LineTo(self, pos)
Definition: pcbnew.py:8831
def GetPlotOffsetUserUnits(self)
Definition: pcbnew.py:8955
def Marker(self, position, diametre, aShapeId)
Definition: pcbnew.py:8927
def SetCreator(self, aCreator)
Definition: pcbnew.py:8760
def EndBlock(self, aData)
Definition: pcbnew.py:8951
def StartBlock(self, aData)
Definition: pcbnew.py:8947
def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
Definition: pcbnew.py:8784
def GetPlotterType(self)
Definition: pcbnew.py:8696
def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData=None)
Definition: pcbnew.py:8905
def HyperlinkBox(self, aBox, aDestinationURL)
Definition: pcbnew.py:8913
def PenTo(self, pos, plume)
Definition: pcbnew.py:8823
def ClearHeaderLinesList(self)
Definition: pcbnew.py:8780
def GetPlotterArcLowDef(self)
Definition: pcbnew.py:8796
def PlotPoly(self, *args)
Definition: pcbnew.py:8843
def StartPlot(self, aPageNumber)
Definition: pcbnew.py:8700
def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
Definition: pcbnew.py:8901
def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
Definition: pcbnew.py:8893
def GetColorMode(self)
Definition: pcbnew.py:8716
def BezierCurve(self, *args)
Definition: pcbnew.py:8819
def GetCurrentLineWidth(self)
Definition: pcbnew.py:8748
def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
Definition: pcbnew.py:8889
def PlotImage(self, aImage, aPos, aScaleFactor)
Definition: pcbnew.py:8850
def ThickArc(self, *args)
Definition: pcbnew.py:8858
def Arc(self, *args)
Definition: pcbnew.py:8812
def Circle(self, *args)
Definition: pcbnew.py:8808
def RenderSettings(self)
Definition: pcbnew.py:8724
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:8728
def SetDash(self, aLineWidth, aLineStyle)
Definition: pcbnew.py:8756
def AddLineToHeader(self, aExtraString)
Definition: pcbnew.py:8776
def SetSvgCoordinatesFormat(self, aPrecision)
Definition: pcbnew.py:8943
def HyperlinkMenu(self, aBox, aDestURLs)
Definition: pcbnew.py:8917
def Rect(self, *args)
Definition: pcbnew.py:8804
def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
Definition: pcbnew.py:8877
def SetLayerPolarity(self, aPositive)
Definition: pcbnew.py:8931
def SetColor(self, color)
Definition: pcbnew.py:8752
def FinishTo(self, pos)
Definition: pcbnew.py:8835
def EndPlot(self)
Definition: pcbnew.py:8704
def FilledCircle(self, pos, diametre, tracemode, aData)
Definition: pcbnew.py:8873
def GetPlotterArcHighDef(self)
Definition: pcbnew.py:8800
def PenFinish(self)
Definition: pcbnew.py:8839
def ThickSegment(self, start, end, width, tracemode, aData)
Definition: pcbnew.py:8854
def GetIUsPerDecimil(self)
Definition: pcbnew.py:8792
def SetTitle(self, aTitle)
Definition: pcbnew.py:8764
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:8687
def OpenFile(self, aFullFilename)
Definition: pcbnew.py:8788
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:8712
def PageSettings(self)
Definition: pcbnew.py:8732
def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False)
Definition: pcbnew.py:8939
def OpenPlotfile(self, *args)
Definition: pcbnew.py:8205
def GetPlotOptions(self)
Definition: pcbnew.py:8185
def GetPlotDirName(self)
Definition: pcbnew.py:8221
def PlotLayer(self)
Definition: pcbnew.py:8209
def GetColorMode(self)
Definition: pcbnew.py:8229
def ClosePlot(self)
Definition: pcbnew.py:8201
def GetLayer(self)
Definition: pcbnew.py:8193
def __init__(self, aBoard)
Definition: pcbnew.py:8180
def GetPlotter(self)
Definition: pcbnew.py:8233
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:8225
def SetLayer(self, aLayer)
Definition: pcbnew.py:8189
def GetPlotFileName(self)
Definition: pcbnew.py:8217
def IsPlotOpen(self)
Definition: pcbnew.py:8197
def PlotLayers(self, aLayerSequence)
Definition: pcbnew.py:8213
def __eq__(self, other)
Definition: pcbnew.py:19444
def __eq__(self, other)
Definition: pcbnew.py:19425
def __eq__(self, other)
Definition: pcbnew.py:19464
def deregister_action(wizard)
Definition: pcbnew.py:21536
def TCoef(self, aP)
Definition: pcbnew.py:5824
def Collide(self, aSeg, aClearance, aActual=None)
Definition: pcbnew.py:5774
def __lt__(self, aSeg)
Definition: pcbnew.py:5851
def Overlaps(self, aSeg)
Definition: pcbnew.py:5812
def LineProject(self, aP)
Definition: pcbnew.py:5723
def Contains(self, *args)
Definition: pcbnew.py:5832
def __eq__(self, aSeg)
Definition: pcbnew.py:5710
def ReflectPoint(self, aP)
Definition: pcbnew.py:5750
def LineDistance(self, aP, aDetermineSide=False)
Definition: pcbnew.py:5731
def CanonicalCoefs(self, qA, qB, qC)
Definition: pcbnew.py:5792
def Reversed(self)
Definition: pcbnew.py:5843
def __init__(self, *args)
Definition: pcbnew.py:5700
def Intersects(self, aSeg)
Definition: pcbnew.py:5758
def SquaredDistance(self, *args)
Definition: pcbnew.py:5778
def __ne__(self, aSeg)
Definition: pcbnew.py:5714
def Angle(self, aOther)
Definition: pcbnew.py:5735
def Collinear(self, aSeg)
Definition: pcbnew.py:5796
def Length(self)
Definition: pcbnew.py:5816
def Reverse(self)
Definition: pcbnew.py:5839
def NearestPoint(self, *args)
Definition: pcbnew.py:5739
def Square(a)
Definition: pcbnew.py:5719
def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False)
Definition: pcbnew.py:5754
def Index(self)
Definition: pcbnew.py:5828
def Side(self, aP)
Definition: pcbnew.py:5727
def Distance(self, *args)
Definition: pcbnew.py:5785
def SquaredLength(self)
Definition: pcbnew.py:5820
def NearestPoints(self, aSeg, aPtA, aPtB, aDistSq)
Definition: pcbnew.py:5746
def ApproxCollinear(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5800
def ParallelSeg(self, aP)
Definition: pcbnew.py:5770
def IntersectLines(self, aSeg)
Definition: pcbnew.py:5762
def PerpendicularSeg(self, aP)
Definition: pcbnew.py:5766
def ApproxPerpendicular(self, aSeg)
Definition: pcbnew.py:5808
def Center(self)
Definition: pcbnew.py:5847
def ApproxParallel(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5804
def AddNewColorSettings(self, aFilename)
Definition: pcbnew.py:3742
def SetMigrateLibraryTables(self, aMigrate=True)
Definition: pcbnew.py:3766
def GetPreviousVersionPaths(self, aName=None)
Definition: pcbnew.py:3770
def GetPathForSettingsFile(self, aSettings)
Definition: pcbnew.py:3754
def IsProjectOpen(self)
Definition: pcbnew.py:3786
def Save(self, *args)
Definition: pcbnew.py:3719
def GetColorSettings(self, *args)
Definition: pcbnew.py:3730
def GetColorSettingsList(self)
Definition: pcbnew.py:3734
def SaveColorSettings(self, *args)
Definition: pcbnew.py:3738
def Load(self, *args)
Definition: pcbnew.py:3712
def GetProject(self, aFullPath)
Definition: pcbnew.py:3798
def GetMigratedColorSettings(self)
Definition: pcbnew.py:3746
def IsSettingsPathValid(aPath)
Definition: pcbnew.py:3831
def MigrateIfNeeded(self)
Definition: pcbnew.py:3758
def UnloadProject(self, aProject, aSave=True)
Definition: pcbnew.py:3782
def TriggerBackupIfNeeded(self, aReporter)
Definition: pcbnew.py:3826
def GetCommonSettings(self)
Definition: pcbnew.py:3750
def __init__(self, aHeadless=False)
Definition: pcbnew.py:3699
def IsProjectOpenNotDummy(self)
Definition: pcbnew.py:3790
def BackupProject(self, aReporter, aTarget)
Definition: pcbnew.py:3822
def LoadProject(self, aFullPath, aSetActive=True)
Definition: pcbnew.py:3778
def FlushAndRelease(self, aSettings, aSave=True)
Definition: pcbnew.py:3726
def GetOpenProjects(self)
Definition: pcbnew.py:3802
def SaveProjectAs(self, aFullPath, aProject=None)
Definition: pcbnew.py:3810
def SetKiway(self, aKiway)
Definition: pcbnew.py:3708
def SaveProjectCopy(self, aFullPath, aProject=None)
Definition: pcbnew.py:3814
def SetMigrationSource(self, aSource)
Definition: pcbnew.py:3762
def SaveProject(self, *args)
Definition: pcbnew.py:3806
def GetProjectBackupsPath(self)
Definition: pcbnew.py:3818
def ReloadColorSettings(self)
Definition: pcbnew.py:3774
def BBox(self, aClearance=0)
Definition: pcbnew.py:6110
def GetRadius(self)
Definition: pcbnew.py:6173
def IntersectLine(self, aSeg, aIpsBuffer)
Definition: pcbnew.py:6135
def SetWidth(self, aWidth)
Definition: pcbnew.py:6146
def GetWidth(self)
Definition: pcbnew.py:6150
def DefaultAccuracyForPCB()
Definition: pcbnew.py:6198
def Mirror(self, *args)
Definition: pcbnew.py:6158
def IsEffectiveLine(self)
Definition: pcbnew.py:6154
def GetP1(self)
Definition: pcbnew.py:6098
def Collide(self, *args)
Definition: pcbnew.py:6127
def GetCentralAngle(self)
Definition: pcbnew.py:6181
def IsClockwise(self)
Definition: pcbnew.py:6214
def GetCenter(self)
Definition: pcbnew.py:6106
def __eq__(self, aArc)
Definition: pcbnew.py:6206
def GetChord(self)
Definition: pcbnew.py:6177
def Reversed(self)
Definition: pcbnew.py:6169
def IsCCW(self)
Definition: pcbnew.py:6210
def GetLength(self)
Definition: pcbnew.py:6193
def ConvertToPolyline(self, *args)
Definition: pcbnew.py:6202
def NearestPoint(self, aP)
Definition: pcbnew.py:6114
def Reverse(self)
Definition: pcbnew.py:6165
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:6081
def GetP0(self)
Definition: pcbnew.py:6094
def GetArcMid(self)
Definition: pcbnew.py:6102
def GetStartAngle(self)
Definition: pcbnew.py:6185
def GetEndAngle(self)
Definition: pcbnew.py:6189
def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0)
Definition: pcbnew.py:6090
def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0)
Definition: pcbnew.py:6086
def NearestPoints(self, *args)
Definition: pcbnew.py:6118
def Intersect(self, *args)
Definition: pcbnew.py:6139
def GetIndexableSubshapes(self, aSubshapes)
Definition: pcbnew.py:5909
def __init__(self, aType)
Definition: pcbnew.py:5888
def Type(self)
Definition: pcbnew.py:5893
def GetIndexableSubshapeCount(self)
Definition: pcbnew.py:5905
def HasIndexableSubshapes(self)
Definition: pcbnew.py:5901
def TypeName(self)
Definition: pcbnew.py:5897
def GetRadius(self)
Definition: pcbnew.py:6252
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:6240
def SetCenter(self, aCenter)
Definition: pcbnew.py:6248
def __init__(self, *args)
Definition: pcbnew.py:6226
def SetRadius(self, aRadius)
Definition: pcbnew.py:6244
def BBox(self, aClearance=0)
Definition: pcbnew.py:6236
def GetCircle(self)
Definition: pcbnew.py:6260
def Rotate(self, *args)
Definition: pcbnew.py:6264
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6268
def GetCenter(self)
Definition: pcbnew.py:6256
def __init__(self, *args)
Definition: pcbnew.py:6280
def UniqueSubshape(self)
Definition: pcbnew.py:6339
def BBox(self, aClearance=0)
Definition: pcbnew.py:6309
def Collide(self, *args)
Definition: pcbnew.py:6297
def Rotate(self, *args)
Definition: pcbnew.py:6335
def GetSubshapes(self)
Definition: pcbnew.py:6343
def Distance(self, *args)
Definition: pcbnew.py:6313
def Shapes(self)
Definition: pcbnew.py:6305
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6293
def AddShape(self, *args)
Definition: pcbnew.py:6320
def SquaredDistance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:6034
def EdgeContainingPoint(self, aP, aAccuracy=0)
Definition: pcbnew.py:6046
def PointOnEdge(self, aP, aAccuracy=0)
Definition: pcbnew.py:6042
def GetSegment(self, aIndex)
Definition: pcbnew.py:6054
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:6022
def GetPoint(self, aIndex)
Definition: pcbnew.py:6050
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:6038
def Collide(self, *args)
Definition: pcbnew.py:6027
def SegmentCount(self)
Definition: pcbnew.py:6425
def CheckClearance(self, aP, aDist)
Definition: pcbnew.py:6571
def Find(self, aP, aThreshold=0)
Definition: pcbnew.py:6544
def PointCount(self)
Definition: pcbnew.py:6445
def Slice(self, aStartIndex, aEndIndex=-1)
Definition: pcbnew.py:6552
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6594
def CLastPoint(self)
Definition: pcbnew.py:6473
def Remove(self, *args)
Definition: pcbnew.py:6533
def RemoveShape(self, aPointIndex)
Definition: pcbnew.py:6540
def SetPoint(self, aIndex, aPos)
Definition: pcbnew.py:6461
def Simplify2(self, aRemoveColinear=True)
Definition: pcbnew.py:6441
def SelfIntersecting(self)
Definition: pcbnew.py:6575
def NextShape(self, aPointIndex)
Definition: pcbnew.py:6457
def Simplify(self, aMaxError=0)
Definition: pcbnew.py:6437
def ArcIndex(self, aSegment)
Definition: pcbnew.py:6640
def CSegment(self, aIndex)
Definition: pcbnew.py:6453
def Collide(self, *args)
Definition: pcbnew.py:6385
def SetClosed(self, aClosed)
Definition: pcbnew.py:6413
def ShapeCount(self)
Definition: pcbnew.py:6429
def IsArcStart(self, aIndex)
Definition: pcbnew.py:6660
def NearestSegment(self, aP)
Definition: pcbnew.py:6583
def Distance(self, *args)
Definition: pcbnew.py:6668
def SelfIntersectingWithArcs(self)
Definition: pcbnew.py:6579
def ReservePoints(self, aSize)
Definition: pcbnew.py:6505
def ClosestPoints(*args)
Definition: pcbnew.py:6393
def GenerateBBoxCache(self)
Definition: pcbnew.py:6489
def CPoint(self, aIndex)
Definition: pcbnew.py:6465
def ClosestSegments(aMyPrevPt, aMyStart, aMyEnd, aOtherPrevPt, aOtherStart, aOtherEnd, aPt0, aPt1, aDistSq)
Definition: pcbnew.py:6401
def Append(self, *args)
Definition: pcbnew.py:6509
def PointAlong(self, aPathLength)
Definition: pcbnew.py:6617
def SetWidth(self, aWidth)
Definition: pcbnew.py:6417
def IsPtOnArc(self, aPtIndex)
Definition: pcbnew.py:6652
def Intersect(self, *args)
Definition: pcbnew.py:6560
def NearestPoint(self, *args)
Definition: pcbnew.py:6587
def Split(self, *args)
Definition: pcbnew.py:6625
def ClosestSegmentsFast(self, aOther, aPt0, aPt1)
Definition: pcbnew.py:6405
def Area(self, aAbsolute=True)
Definition: pcbnew.py:6621
def Rotate(self, *args)
Definition: pcbnew.py:6613
def Arc(self, aArc)
Definition: pcbnew.py:6644
def __ne__(self, aRhs)
Definition: pcbnew.py:6598
def Insert(self, *args)
Definition: pcbnew.py:6519
def OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify=False)
Definition: pcbnew.py:6632
def CompareGeometry(self, aOther)
Definition: pcbnew.py:6602
def BBox(self, aClearance=0)
Definition: pcbnew.py:6485
def Replace(self, *args)
Definition: pcbnew.py:6526
def RemoveDuplicatePoints(self)
Definition: pcbnew.py:6433
def Intersects(self, aChain)
Definition: pcbnew.py:6556
def Mirror(self, *args)
Definition: pcbnew.py:6606
def IsSharedPt(self, aIndex)
Definition: pcbnew.py:6648
def IsArcSegment(self, aSegment)
Definition: pcbnew.py:6656
def PathLength(self, aP, aIndex=-1)
Definition: pcbnew.py:6567
def IsArcEnd(self, aIndex)
Definition: pcbnew.py:6664
def FindSegment(self, aP, aThreshold=1)
Definition: pcbnew.py:6548
def __init__(self, *args)
Definition: pcbnew.py:6373
def Segment(self, aIndex)
Definition: pcbnew.py:6449
def NormalizeAreaOutlines(self)
Definition: pcbnew.py:6989
def CVertex(self, *args)
Definition: pcbnew.py:6767
def SquaredDistance(self, *args)
Definition: pcbnew.py:7118
def IsTriangulationUpToDate(self)
Definition: pcbnew.py:6698
def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False)
Definition: pcbnew.py:7041
def IsPolygonSelfIntersecting(self, aPolygonIndex)
Definition: pcbnew.py:6779
def IsVertexInHole(self, aGlobalIdx)
Definition: pcbnew.py:7129
def VertexCount(self, aOutline=-1, aHole=-1)
Definition: pcbnew.py:6795
def OutlineCount(self)
Definition: pcbnew.py:6791
def IterateFromVertexWithHoles(self, aGlobalIdx)
Definition: pcbnew.py:6883
def BooleanXor(self, *args)
Definition: pcbnew.py:6938
def FilletPolygon(self, aRadius, aErrorMax, aIndex)
Definition: pcbnew.py:7099
def IsSelfIntersecting(self)
Definition: pcbnew.py:6783
def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:7021
def TotalVertices(self)
Definition: pcbnew.py:7079
def RemoveAllContours(self)
Definition: pcbnew.py:7056
def SquaredDistanceToSeg(self, aSegment, aNearest=None)
Definition: pcbnew.py:7125
def SetVertex(self, *args)
Definition: pcbnew.py:7072
def HoleCount(self, aOutline)
Definition: pcbnew.py:6803
def CIterateWithHoles(self, *args)
Definition: pcbnew.py:6876
def CloneDropTriangulation(self)
Definition: pcbnew.py:6714
def Collide(self, *args)
Definition: pcbnew.py:7013
def BooleanAdd(self, *args)
Definition: pcbnew.py:6917
def BuildBBoxCaches(self)
Definition: pcbnew.py:7033
def RemoveNullSegments(self)
Definition: pcbnew.py:7068
def Iterate(self, *args)
Definition: pcbnew.py:6853
def HasTouchingHoles(self)
Definition: pcbnew.py:6977
def Mirror(self, aRef, aFlipDirection)
Definition: pcbnew.py:6997
def Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify=False)
Definition: pcbnew.py:6949
def ChamferPolygon(self, aDistance, aIndex)
Definition: pcbnew.py:7095
def NewHole(self, aOutline=-1)
Definition: pcbnew.py:6722
def CacheTriangulation(self, aPartition=True, aSimplify=False)
Definition: pcbnew.py:6694
def ArcCount(self)
Definition: pcbnew.py:6742
def OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify)
Definition: pcbnew.py:6957
def FullPointCount(self)
Definition: pcbnew.py:6799
def RemoveContour(self, aContourIdx, aPolygonIdx=-1)
Definition: pcbnew.py:7060
def RemoveOutline(self, aOutlineIdx)
Definition: pcbnew.py:7064
def NewOutline(self)
Definition: pcbnew.py:6718
def AddHole(self, aHole, aOutline=-1)
Definition: pcbnew.py:6730
def SquaredDistanceToPolygon(self, *args)
Definition: pcbnew.py:7111
def IterateSegments(self, *args)
Definition: pcbnew.py:6887
def COutline(self, aIndex)
Definition: pcbnew.py:6837
def BBox(self, aClearance=0)
Definition: pcbnew.py:7005
def InsertVertex(self, aGlobalIndex, aNewVertex)
Definition: pcbnew.py:6763
def AddOutline(self, aOutline)
Definition: pcbnew.py:6726
def __init__(self, *args)
Definition: pcbnew.py:6683
def Hole(self, aOutline, aHole)
Definition: pcbnew.py:6822
def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
Definition: pcbnew.py:6775
def IterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:6903
def Rotate(self, *args)
Definition: pcbnew.py:7001
def GetArcs(self, aArcBuffer)
Definition: pcbnew.py:6746
def RemoveVertex(self, *args)
Definition: pcbnew.py:7049
def UpdateTriangulationDataHash(self)
Definition: pcbnew.py:7091
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:7029
def InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError)
Definition: pcbnew.py:6961
def Append(self, *args)
Definition: pcbnew.py:6754
def Outline(self, *args)
Definition: pcbnew.py:6807
def BooleanSubtract(self, *args)
Definition: pcbnew.py:6924
def Unfracture(self)
Definition: pcbnew.py:6969
def CPolygon(self, aIndex)
Definition: pcbnew.py:6845
def RebuildHolesFromContours(self)
Definition: pcbnew.py:6945
def GetHash(self)
Definition: pcbnew.py:6702
def Fillet(self, aRadius, aErrorMax)
Definition: pcbnew.py:7107
def Fracture(self)
Definition: pcbnew.py:6965
def Deflate(self, aAmount, aCornerStrategy, aMaxError)
Definition: pcbnew.py:6953
def UnitSet(self, aPolygonIndex)
Definition: pcbnew.py:6818
def CIterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:6910
def Simplify(self)
Definition: pcbnew.py:6981
def SimplifyOutlines(self, aMaxError=0)
Definition: pcbnew.py:6985
def CHole(self, aOutline, aHole)
Definition: pcbnew.py:6841
def BuildPolysetFromOrientedPaths(self, aPaths, aEvenOdd=False)
Definition: pcbnew.py:7133
def DeletePolygon(self, aIdx)
Definition: pcbnew.py:7083
def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
Definition: pcbnew.py:6706
def TriangulatedPolygon(self, aIndex)
Definition: pcbnew.py:6833
def CIterateSegments(self, *args)
Definition: pcbnew.py:6895
def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True)
Definition: pcbnew.py:7087
def BooleanIntersection(self, *args)
Definition: pcbnew.py:6931
def AddPolygon(self, apolygon)
Definition: pcbnew.py:6734
def IterateWithHoles(self, *args)
Definition: pcbnew.py:6861
def Chamfer(self, aDistance)
Definition: pcbnew.py:7103
def HasHoles(self)
Definition: pcbnew.py:6973
def ClearArcs(self)
Definition: pcbnew.py:6750
def Subset(self, aFirstPolygon, aLastPolygon)
Definition: pcbnew.py:6814
def IsEmpty(self)
Definition: pcbnew.py:7045
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6993
def TriangulatedPolyCount(self)
Definition: pcbnew.py:6787
def PointOnEdge(self, aP, aAccuracy=0)
Definition: pcbnew.py:7009
def BBoxFromCaches(self)
Definition: pcbnew.py:7037
def Polygon(self, *args)
Definition: pcbnew.py:6826
def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
Definition: pcbnew.py:6710
def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:7025
def CIterate(self, *args)
Definition: pcbnew.py:6868
def CPolygons(self)
Definition: pcbnew.py:6849
def GetWidth(self)
Definition: pcbnew.py:7192
def Diagonal(self)
Definition: pcbnew.py:7164
def Collide(self, *args)
Definition: pcbnew.py:7176
def __init__(self, *args)
Definition: pcbnew.py:7145
def GetPosition(self)
Definition: pcbnew.py:7184
def MajorDimension(self)
Definition: pcbnew.py:7168
def MinorDimension(self)
Definition: pcbnew.py:7172
def GetSize(self)
Definition: pcbnew.py:7188
def Rotate(self, *args)
Definition: pcbnew.py:7200
def GetInflated(self, aOffset)
Definition: pcbnew.py:7160
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7208
def Outline(self)
Definition: pcbnew.py:7204
def BBox(self, aClearance=0)
Definition: pcbnew.py:7156
def GetHeight(self)
Definition: pcbnew.py:7196
def SetWidth(self, aWidth)
Definition: pcbnew.py:7251
def Collide(self, *args)
Definition: pcbnew.py:7234
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7267
def BBox(self, aClearance=0)
Definition: pcbnew.py:7230
def SetSeg(self, aSeg)
Definition: pcbnew.py:7243
def __init__(self, *args)
Definition: pcbnew.py:7221
def GetWidth(self)
Definition: pcbnew.py:7255
def GetSeg(self)
Definition: pcbnew.py:7247
def Is45Degree(self, *args)
Definition: pcbnew.py:7263
def Rotate(self, *args)
Definition: pcbnew.py:7259
def BBox(self, aClearance=0)
Definition: pcbnew.py:7291
def Clear(self)
Definition: pcbnew.py:7287
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:7318
def Vertices(self)
Definition: pcbnew.py:7307
def PointCount(self)
Definition: pcbnew.py:7295
def CDPoint(self, aIndex)
Definition: pcbnew.py:7303
def CPoint(self, aIndex)
Definition: pcbnew.py:7299
def Rotate(self, *args)
Definition: pcbnew.py:7322
def Append(self, *args)
Definition: pcbnew.py:7311
def __init__(self, *args)
Definition: pcbnew.py:7279
def GetClearance(self, aOther)
Definition: pcbnew.py:5931
def TransformToPolygon(self, aBuffer, aError, aErrorLoc)
Definition: pcbnew.py:5968
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:5964
def Distance(self, aP)
Definition: pcbnew.py:5956
def Parse(self, aStream)
Definition: pcbnew.py:5984
def BBox(self, aClearance=0)
Definition: pcbnew.py:5948
def Centre(self)
Definition: pcbnew.py:5952
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:5920
def Move(self, aVector)
Definition: pcbnew.py:5976
def Rotate(self, *args)
Definition: pcbnew.py:5972
def IsSolid(self)
Definition: pcbnew.py:5980
def Cast(self)
Definition: pcbnew.py:5992
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:5988
def IsNull(self)
Definition: pcbnew.py:5935
def SquaredDistance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:5960
def Clone(self)
Definition: pcbnew.py:5927
def Collide(self, *args)
Definition: pcbnew.py:5939
def __init__(self, *args)
Definition: pcbnew.py:18615
def iterator(self)
Definition: pcbnew.py:18577
def count(self, x)
Definition: pcbnew.py:18639
def upper_bound(self, x)
Definition: pcbnew.py:18675
def append(self, x)
Definition: pcbnew.py:18595
def insert(self, __x)
Definition: pcbnew.py:18683
def __nonzero__(self)
Definition: pcbnew.py:18583
def __getitem__(self, i)
Definition: pcbnew.py:18603
def end(self)
Definition: pcbnew.py:18647
def lower_bound(self, x)
Definition: pcbnew.py:18671
def add(self, x)
Definition: pcbnew.py:18607
def __bool__(self)
Definition: pcbnew.py:18587
def clear(self)
Definition: pcbnew.py:18631
def erase(self, *args)
Definition: pcbnew.py:18659
def equal_range(self, x)
Definition: pcbnew.py:18679
def find(self, x)
Definition: pcbnew.py:18667
def rbegin(self)
Definition: pcbnew.py:18651
def __len__(self)
Definition: pcbnew.py:18591
def size(self)
Definition: pcbnew.py:18627
def __iter__(self)
Definition: pcbnew.py:18580
def __contains__(self, x)
Definition: pcbnew.py:18599
def discard(self, x)
Definition: pcbnew.py:18611
def rend(self)
Definition: pcbnew.py:18655
def begin(self)
Definition: pcbnew.py:18643
def empty(self)
Definition: pcbnew.py:18623
def swap(self, v)
Definition: pcbnew.py:18635
def __init__(self, *args)
Definition: pcbnew.py:2025
def StripUseless(self)
Definition: pcbnew.py:2033
def __init__(self, *args)
Definition: pcbnew.py:1959
def __init__(self)
Definition: pcbnew.py:2235
def Compare(self, aRhs)
Definition: pcbnew.py:16815
def __gt__(self, aRhs)
Definition: pcbnew.py:16823
def __eq__(self, aRhs)
Definition: pcbnew.py:16819
def __lt__(self, aRhs)
Definition: pcbnew.py:16827
def __init__(self, aFont=None)
Definition: pcbnew.py:16811
def __eq__(self, aOther)
Definition: pcbnew.py:11079
def __init__(self, aText, aVisible, aLayer)
Definition: pcbnew.py:11075
def GetComment(self, aIdx)
Definition: pcbnew.py:2117
def SetDate(self, aDate)
Definition: pcbnew.py:2089
def GetContextualTextVars(aVars)
Definition: pcbnew.py:2126
def GetCurrentDate()
Definition: pcbnew.py:2139
def Format(self, aFormatter)
Definition: pcbnew.py:2134
def GetCompany(self)
Definition: pcbnew.py:2109
def GetTitle(self)
Definition: pcbnew.py:2085
def Clear(self)
Definition: pcbnew.py:2121
def GetDate(self)
Definition: pcbnew.py:2093
def SetComment(self, aIdx, aComment)
Definition: pcbnew.py:2113
def SetRevision(self, aRevision)
Definition: pcbnew.py:2097
def TextVarResolver(self, aToken, aProject, aFlags=0)
Definition: pcbnew.py:2130
def GetRevision(self)
Definition: pcbnew.py:2101
def __init__(self)
Definition: pcbnew.py:2076
def SetCompany(self, aCompany)
Definition: pcbnew.py:2105
def SetTitle(self, aTitle)
Definition: pcbnew.py:2081
def end(self)
Definition: pcbnew.py:18059
def __delitem__(self, *args)
Definition: pcbnew.py:18013
def __setslice__(self, *args)
Definition: pcbnew.py:18002
def __iter__(self)
Definition: pcbnew.py:17983
def __len__(self)
Definition: pcbnew.py:17994
def __getslice__(self, i, j)
Definition: pcbnew.py:17998
def get_allocator(self)
Definition: pcbnew.py:18075
def begin(self)
Definition: pcbnew.py:18055
def iterator(self)
Definition: pcbnew.py:17980
def __setitem__(self, *args)
Definition: pcbnew.py:18027
def capacity(self)
Definition: pcbnew.py:18133
def erase(self, *args)
Definition: pcbnew.py:18083
def __getitem__(self, *args)
Definition: pcbnew.py:18020
def clear(self)
Definition: pcbnew.py:18071
def size(self)
Definition: pcbnew.py:18047
def __nonzero__(self)
Definition: pcbnew.py:17986
def empty(self)
Definition: pcbnew.py:18043
def assign(self, n, x)
Definition: pcbnew.py:18111
def pop(self)
Definition: pcbnew.py:18035
def reserve(self, n)
Definition: pcbnew.py:18129
def __init__(self, *args)
Definition: pcbnew.py:18090
def back(self)
Definition: pcbnew.py:18107
def pop_back(self)
Definition: pcbnew.py:18079
def insert(self, *args)
Definition: pcbnew.py:18122
def rend(self)
Definition: pcbnew.py:18067
def __bool__(self)
Definition: pcbnew.py:17990
def resize(self, *args)
Definition: pcbnew.py:18115
def swap(self, v)
Definition: pcbnew.py:18051
def push_back(self, x)
Definition: pcbnew.py:18099
def __delslice__(self, i, j)
Definition: pcbnew.py:18009
def rbegin(self)
Definition: pcbnew.py:18063
def append(self, x)
Definition: pcbnew.py:18039
def front(self)
Definition: pcbnew.py:18103
def size(self)
Definition: pcbnew.py:12187
def resize(self, *args)
Definition: pcbnew.py:12255
def pop(self)
Definition: pcbnew.py:12175
def insert(self, *args)
Definition: pcbnew.py:12262
def __getitem__(self, *args)
Definition: pcbnew.py:12160
def begin(self)
Definition: pcbnew.py:12195
def assign(self, n, x)
Definition: pcbnew.py:12251
def get_allocator(self)
Definition: pcbnew.py:12215
def clear(self)
Definition: pcbnew.py:12211
def empty(self)
Definition: pcbnew.py:12183
def __delitem__(self, *args)
Definition: pcbnew.py:12153
def push_front(self, x)
Definition: pcbnew.py:12273
def __setitem__(self, *args)
Definition: pcbnew.py:12167
def __delslice__(self, i, j)
Definition: pcbnew.py:12149
def __setslice__(self, *args)
Definition: pcbnew.py:12142
def __iter__(self)
Definition: pcbnew.py:12123
def __nonzero__(self)
Definition: pcbnew.py:12126
def __init__(self, *args)
Definition: pcbnew.py:12230
def front(self)
Definition: pcbnew.py:12243
def swap(self, v)
Definition: pcbnew.py:12191
def erase(self, *args)
Definition: pcbnew.py:12223
def push_back(self, x)
Definition: pcbnew.py:12239
def __getslice__(self, i, j)
Definition: pcbnew.py:12138
def __bool__(self)
Definition: pcbnew.py:12130
def append(self, x)
Definition: pcbnew.py:12179
def __len__(self)
Definition: pcbnew.py:12134
def iterator(self)
Definition: pcbnew.py:12120
def pop_front(self)
Definition: pcbnew.py:12269
def back(self)
Definition: pcbnew.py:12247
def end(self)
Definition: pcbnew.py:12199
def rbegin(self)
Definition: pcbnew.py:12203
def rend(self)
Definition: pcbnew.py:12207
def pop_back(self)
Definition: pcbnew.py:12219
def GetUnitPair(self, aPrimaryUnit, aSecondaryUnits)
Definition: pcbnew.py:10382
def GetOriginTransforms(self)
Definition: pcbnew.py:10390
def GetIuScale(self)
Definition: pcbnew.py:10386
def MessageTextFromValue(self, *args)
Definition: pcbnew.py:10405
def StringFromValue(self, *args)
Definition: pcbnew.py:10398
def AngleValueFromString(self, aTextValue)
Definition: pcbnew.py:10424
def __init__(self, aIuScale, aUnits)
Definition: pcbnew.py:10369
def MessageTextFromMinOptMax(self, aValue)
Definition: pcbnew.py:10412
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:10378
def OptionalValueFromString(self, *args)
Definition: pcbnew.py:10420
def ValueFromString(self, *args)
Definition: pcbnew.py:10416
def StringFromOptionalValue(self, *args)
Definition: pcbnew.py:10394
def find(self, *args)
Definition: pcbnew.py:7574
def __lt__(self, rhs)
Definition: pcbnew.py:7609
def __ne__(self, rhs)
Definition: pcbnew.py:7605
def __gt__(self, rhs)
Definition: pcbnew.py:7613
def __str__(self)
Definition: pcbnew.py:7667
def end(self)
Definition: pcbnew.py:7652
def empty(self)
Definition: pcbnew.py:7570
def c_str(self)
Definition: pcbnew.py:7566
def __init__(self, *args)
Definition: pcbnew.py:7555
def utf8_to_wxstring(self)
Definition: pcbnew.py:7644
def clear(self)
Definition: pcbnew.py:7581
def __iadd__(self, *args)
Definition: pcbnew.py:7621
def compare(self, s)
Definition: pcbnew.py:7593
def __eq__(self, *args)
Definition: pcbnew.py:7597
def wx_str(self)
Definition: pcbnew.py:7640
def find_first_of(self, str, pos=0)
Definition: pcbnew.py:7617
def size(self)
Definition: pcbnew.py:7589
def GetChars(self)
Definition: pcbnew.py:7662
def Cast_to_CChar(self)
Definition: pcbnew.py:7656
def length(self)
Definition: pcbnew.py:7585
def utf8_to_string(self)
Definition: pcbnew.py:7636
def substr(self, *args)
Definition: pcbnew.py:7632
def begin(self)
Definition: pcbnew.py:7648
def GetCenter(self)
Definition: pcbnew.py:3866
def Min(self)
Definition: pcbnew.py:3858
def Max(self)
Definition: pcbnew.py:3862
def __init__(self)
Definition: pcbnew.py:3874
def GetSize(self)
Definition: pcbnew.py:3870
def Scale(self, aScale)
Definition: pcbnew.py:3895
def LoadSTEP(aFileName)
Definition: pcbnew.py:3904
def SaveSTEP(self, aFileName)
Definition: pcbnew.py:3899
def Translate(self, aX, aY, aZ)
Definition: pcbnew.py:3891
def GetBoundingBox(self)
Definition: pcbnew.py:3887
def __gt__(self, aVector)
Definition: pcbnew.py:4986
def __eq__(self, aVector)
Definition: pcbnew.py:4970
def Get(self)
Definition: pcbnew.py:4998
def EuclideanNorm(self)
Definition: pcbnew.py:4903
property x
Definition: pcbnew.py:4892
property y
Definition: pcbnew.py:4893
def Perpendicular(self)
Definition: pcbnew.py:4911
def __truediv__(self, *args)
Definition: pcbnew.py:4964
def Format(self)
Definition: pcbnew.py:4919
def __imul__(self, *args)
Definition: pcbnew.py:4939
def __neg__(self)
Definition: pcbnew.py:4960
def Distance(self, aVector)
Definition: pcbnew.py:4931
def __sub__(self, other)
Definition: pcbnew.py:5017
def __le__(self, aVector)
Definition: pcbnew.py:4982
def __ne__(self, aVector)
Definition: pcbnew.py:4974
def __setitem__(self, index, val)
Definition: pcbnew.py:5008
def __ge__(self, aVector)
Definition: pcbnew.py:4990
def __add__(self, other)
Definition: pcbnew.py:5016
def __init__(self, *args)
Definition: pcbnew.py:4895
def __nonzero__(self)
Definition: pcbnew.py:5015
def SquaredEuclideanNorm(self)
Definition: pcbnew.py:4907
def __str__(self)
Definition: pcbnew.py:5004
def Resize(self, aNewLength)
Definition: pcbnew.py:4915
def __getitem__(self, index)
Definition: pcbnew.py:5007
def Dot(self, aVector)
Definition: pcbnew.py:4927
def SquaredDistance(self, aVector)
Definition: pcbnew.py:4935
def __lt__(self, aVector)
Definition: pcbnew.py:4978
def Set(self, x, y)
Definition: pcbnew.py:4994
def Cross(self, aVector)
Definition: pcbnew.py:4923
def __len__(self)
Definition: pcbnew.py:5006
def __iadd__(self, *args)
Definition: pcbnew.py:4946
def __isub__(self, *args)
Definition: pcbnew.py:4953
def Set(self, x, y)
Definition: pcbnew.py:5135
def __getitem__(self, index)
Definition: pcbnew.py:5148
def Dot(self, aVector)
Definition: pcbnew.py:5068
property y
Definition: pcbnew.py:5034
def __sub__(self, other)
Definition: pcbnew.py:5158
def __add__(self, other)
Definition: pcbnew.py:5157
def Resize(self, aNewLength)
Definition: pcbnew.py:5056
def Cross(self, aVector)
Definition: pcbnew.py:5064
def __lt__(self, aVector)
Definition: pcbnew.py:5119
def __nonzero__(self)
Definition: pcbnew.py:5156
def EuclideanNorm(self)
Definition: pcbnew.py:5044
def __len__(self)
Definition: pcbnew.py:5147
def __str__(self)
Definition: pcbnew.py:5145
def __imul__(self, *args)
Definition: pcbnew.py:5080
def Get(self)
Definition: pcbnew.py:5139
def Perpendicular(self)
Definition: pcbnew.py:5052
def SquaredEuclideanNorm(self)
Definition: pcbnew.py:5048
property x
Definition: pcbnew.py:5033
def __gt__(self, aVector)
Definition: pcbnew.py:5127
def __ne__(self, aVector)
Definition: pcbnew.py:5115
def __setitem__(self, index, val)
Definition: pcbnew.py:5149
def __iadd__(self, *args)
Definition: pcbnew.py:5087
def __truediv__(self, *args)
Definition: pcbnew.py:5105
def Format(self)
Definition: pcbnew.py:5060
def SquaredDistance(self, aVector)
Definition: pcbnew.py:5076
def __neg__(self)
Definition: pcbnew.py:5101
def __le__(self, aVector)
Definition: pcbnew.py:5123
def __eq__(self, aVector)
Definition: pcbnew.py:5111
def __isub__(self, *args)
Definition: pcbnew.py:5094
def __ge__(self, aVector)
Definition: pcbnew.py:5131
def __init__(self, *args)
Definition: pcbnew.py:5036
def Distance(self, aVector)
Definition: pcbnew.py:5072
def __itruediv__(self, *args)
Definition: pcbnew.py:5230
def Normalize(self)
Definition: pcbnew.py:5210
property y
Definition: pcbnew.py:5188
property x
Definition: pcbnew.py:5187
def EuclideanNorm(self)
Definition: pcbnew.py:5206
def __setitem__(self, index, val)
Definition: pcbnew.py:5250
def __len__(self)
Definition: pcbnew.py:5248
def __ne__(self, aVector)
Definition: pcbnew.py:5222
def Cross(self, aVector)
Definition: pcbnew.py:5198
def __getitem__(self, index)
Definition: pcbnew.py:5249
def __eq__(self, aVector)
Definition: pcbnew.py:5218
def __imul__(self, val)
Definition: pcbnew.py:5226
def __init__(self, *args)
Definition: pcbnew.py:5191
property z
Definition: pcbnew.py:5189
def Get(self)
Definition: pcbnew.py:5240
def __nonzero__(self)
Definition: pcbnew.py:5259
def Dot(self, aVector)
Definition: pcbnew.py:5202
def __str__(self)
Definition: pcbnew.py:5246
def SetAll(self, val)
Definition: pcbnew.py:5214
def Set(self, x, y, z)
Definition: pcbnew.py:5236
def append(self, x)
Definition: pcbnew.py:21367
def reserve(self, n)
Definition: pcbnew.py:21457
def push_back(self, x)
Definition: pcbnew.py:21427
def erase(self, *args)
Definition: pcbnew.py:21411
def __init__(self, *args)
Definition: pcbnew.py:21418
def __setslice__(self, *args)
Definition: pcbnew.py:21330
def __delslice__(self, i, j)
Definition: pcbnew.py:21337
def assign(self, n, x)
Definition: pcbnew.py:21439
def resize(self, *args)
Definition: pcbnew.py:21443
def __getitem__(self, *args)
Definition: pcbnew.py:21348
def __delitem__(self, *args)
Definition: pcbnew.py:21341
def __getslice__(self, i, j)
Definition: pcbnew.py:21326
def __setitem__(self, *args)
Definition: pcbnew.py:21355
def insert(self, *args)
Definition: pcbnew.py:21450
def insert(self, *args)
Definition: pcbnew.py:7481
def __setslice__(self, *args)
Definition: pcbnew.py:7361
def capacity(self)
Definition: pcbnew.py:7492
def push_back(self, x)
Definition: pcbnew.py:7458
def __getitem__(self, *args)
Definition: pcbnew.py:7379
def __iter__(self)
Definition: pcbnew.py:7342
def iterator(self)
Definition: pcbnew.py:7339
def pop_back(self)
Definition: pcbnew.py:7438
def get_allocator(self)
Definition: pcbnew.py:7434
def __bool__(self)
Definition: pcbnew.py:7349
def __delslice__(self, i, j)
Definition: pcbnew.py:7368
def __delitem__(self, *args)
Definition: pcbnew.py:7372
def erase(self, *args)
Definition: pcbnew.py:7442
def resize(self, *args)
Definition: pcbnew.py:7474
def __nonzero__(self)
Definition: pcbnew.py:7345
def assign(self, n, x)
Definition: pcbnew.py:7470
def swap(self, v)
Definition: pcbnew.py:7410
def __getslice__(self, i, j)
Definition: pcbnew.py:7357
def __setitem__(self, *args)
Definition: pcbnew.py:7386
def reserve(self, n)
Definition: pcbnew.py:7488
def __init__(self, *args)
Definition: pcbnew.py:7449
def append(self, x)
Definition: pcbnew.py:7398
def __getitem__(self, *args)
Definition: pcbnew.py:5562
def erase(self, *args)
Definition: pcbnew.py:5625
def resize(self, *args)
Definition: pcbnew.py:5657
def __iter__(self)
Definition: pcbnew.py:5525
def __delslice__(self, i, j)
Definition: pcbnew.py:5551
def __nonzero__(self)
Definition: pcbnew.py:5528
def get_allocator(self)
Definition: pcbnew.py:5617
def append(self, x)
Definition: pcbnew.py:5581
def insert(self, *args)
Definition: pcbnew.py:5664
def assign(self, n, x)
Definition: pcbnew.py:5653
def __init__(self, *args)
Definition: pcbnew.py:5632
def __bool__(self)
Definition: pcbnew.py:5532
def capacity(self)
Definition: pcbnew.py:5675
def __setslice__(self, *args)
Definition: pcbnew.py:5544
def iterator(self)
Definition: pcbnew.py:5522
def push_back(self, x)
Definition: pcbnew.py:5641
def __getslice__(self, i, j)
Definition: pcbnew.py:5540
def __setitem__(self, *args)
Definition: pcbnew.py:5569
def reserve(self, n)
Definition: pcbnew.py:5671
def __delitem__(self, *args)
Definition: pcbnew.py:5555
def pop_back(self)
Definition: pcbnew.py:5621
def swap(self, v)
Definition: pcbnew.py:5593
def resize(self, *args)
Definition: pcbnew.py:19390
def __getslice__(self, i, j)
Definition: pcbnew.py:19273
def erase(self, *args)
Definition: pcbnew.py:19358
def assign(self, n, x)
Definition: pcbnew.py:19386
def __init__(self, *args)
Definition: pcbnew.py:19365
def __delitem__(self, *args)
Definition: pcbnew.py:19288
def __delslice__(self, i, j)
Definition: pcbnew.py:19284
def __getitem__(self, *args)
Definition: pcbnew.py:19295
def __setslice__(self, *args)
Definition: pcbnew.py:19277
def __setitem__(self, *args)
Definition: pcbnew.py:19302
def insert(self, *args)
Definition: pcbnew.py:19397
def __lt__(self, aOther)
Definition: pcbnew.py:11014
def __ne__(self, aOther)
Definition: pcbnew.py:11010
def __init__(self, *args)
Definition: pcbnew.py:10999
def __eq__(self, aOther)
Definition: pcbnew.py:11006
def reserve(self, n)
Definition: pcbnew.py:12103
def iterator(self)
Definition: pcbnew.py:11954
def __delitem__(self, *args)
Definition: pcbnew.py:11987
def __getslice__(self, i, j)
Definition: pcbnew.py:11972
def back(self)
Definition: pcbnew.py:12081
def capacity(self)
Definition: pcbnew.py:12107
def __setslice__(self, *args)
Definition: pcbnew.py:11976
def get_allocator(self)
Definition: pcbnew.py:12049
def __init__(self, *args)
Definition: pcbnew.py:12064
def append(self, x)
Definition: pcbnew.py:12013
def empty(self)
Definition: pcbnew.py:12017
def __iter__(self)
Definition: pcbnew.py:11957
def end(self)
Definition: pcbnew.py:12033
def __setitem__(self, *args)
Definition: pcbnew.py:12001
def __delslice__(self, i, j)
Definition: pcbnew.py:11983
def resize(self, *args)
Definition: pcbnew.py:12089
def assign(self, n, x)
Definition: pcbnew.py:12085
def size(self)
Definition: pcbnew.py:12021
def push_back(self, x)
Definition: pcbnew.py:12073
def front(self)
Definition: pcbnew.py:12077
def pop(self)
Definition: pcbnew.py:12009
def pop_back(self)
Definition: pcbnew.py:12053
def __len__(self)
Definition: pcbnew.py:11968
def __nonzero__(self)
Definition: pcbnew.py:11960
def insert(self, *args)
Definition: pcbnew.py:12096
def __getitem__(self, *args)
Definition: pcbnew.py:11994
def clear(self)
Definition: pcbnew.py:12045
def swap(self, v)
Definition: pcbnew.py:12025
def rend(self)
Definition: pcbnew.py:12041
def erase(self, *args)
Definition: pcbnew.py:12057
def begin(self)
Definition: pcbnew.py:12029
def rbegin(self)
Definition: pcbnew.py:12037
def __bool__(self)
Definition: pcbnew.py:11964
def GetProgressReporter(self)
Definition: pcbnew.py:15684
def __init__(self, aBoard)
Definition: pcbnew.py:15696
def IsDebug(self)
Definition: pcbnew.py:15692
def Fill(self, aZones, aCheck=False, aParent=None)
Definition: pcbnew.py:15688
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:15680
def GetRuleAreaPlacementSource(self)
Definition: pcbnew.py:15829
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:15853
def HasKeepoutParametersSet(self)
Definition: pcbnew.py:15813
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:15849
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:15797
def __eq__(self, aOther)
Definition: pcbnew.py:15764
def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
Definition: pcbnew.py:15781
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:15881
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:15877
def SetRuleAreaPlacementEnabled(self, aEnabled)
Definition: pcbnew.py:15857
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:15841
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:15901
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:15809
def __ne__(self, aOther)
Definition: pcbnew.py:15768
def SetRuleAreaPlacementSourceType(self, aType)
Definition: pcbnew.py:15861
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:15833
def __lshift__(self, aSource)
Definition: pcbnew.py:15772
def GetCornerRadius(self)
Definition: pcbnew.py:15801
def SetRuleAreaPlacementSource(self, aSource)
Definition: pcbnew.py:15865
def GetRuleAreaPlacementSourceType(self)
Definition: pcbnew.py:15825
def GetPadConnection(self)
Definition: pcbnew.py:15805
def GetIslandRemovalMode(self)
Definition: pcbnew.py:15889
def GetDoNotAllowPads(self)
Definition: pcbnew.py:15845
def ExportSetting(self, aTarget, aFullExport=True)
Definition: pcbnew.py:15785
def GetCornerSmoothingType(self)
Definition: pcbnew.py:15793
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:15789
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:15893
def GetIsRuleArea(self)
Definition: pcbnew.py:15817
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:15869
def GetRuleAreaPlacementEnabled(self)
Definition: pcbnew.py:15821
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:15885
def GetDoNotAllowVias(self)
Definition: pcbnew.py:15837
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:15873
def __init__(self)
Definition: pcbnew.py:15760
def GetDefaultSettings()
Definition: pcbnew.py:15777
def GetMinIslandArea(self)
Definition: pcbnew.py:15897
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:15134
def GetMinThickness(self)
Definition: pcbnew.py:15232
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:15228
def GetLocalFlags(self)
Definition: pcbnew.py:15304
def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
Definition: pcbnew.py:15335
def NeedRefill(self)
Definition: pcbnew.py:15216
def GetNumCorners(self)
Definition: pcbnew.py:15374
def UnHatchBorder(self)
Definition: pcbnew.py:15598
def NewHole(self)
Definition: pcbnew.py:15402
def SetNeedRefill(self, aNeedRefill)
Definition: pcbnew.py:15220
def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
Definition: pcbnew.py:15590
def GetThermalReliefGap(self, *args)
Definition: pcbnew.py:15165
def IsTeardropArea(self)
Definition: pcbnew.py:15477
def IterateWithHoles(self)
Definition: pcbnew.py:15382
def SetHatchSmoothingValue(self, aValue)
Definition: pcbnew.py:15276
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:15557
def GetFill(self, aLayer)
Definition: pcbnew.py:15426
def GetZoneName(self)
Definition: pcbnew.py:15122
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:15509
def SameNet(self, aOther)
Definition: pcbnew.py:15114
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:15549
def HatchBorder(self)
Definition: pcbnew.py:15602
def __eq__(self, *args)
Definition: pcbnew.py:15618
def GetLock(self)
Definition: pcbnew.py:15196
def GetDefaultHatchPitch()
Definition: pcbnew.py:15586
def GetThermalReliefSpokeWidth(self)
Definition: pcbnew.py:15176
def Outline(self, *args)
Definition: pcbnew.py:15312
def GetFirstLayer(self)
Definition: pcbnew.py:15145
def GetDoNotAllowVias(self)
Definition: pcbnew.py:15513
def GetRuleAreaPlacementSource(self)
Definition: pcbnew.py:15505
def GetHatchHoleMinArea(self)
Definition: pcbnew.py:15280
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:15517
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:15450
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:15577
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:15553
def CIterateWithHoles(self)
Definition: pcbnew.py:15386
def GetIsRuleArea(self)
Definition: pcbnew.py:15493
def GetTeardropAreaType(self)
Definition: pcbnew.py:15485
def GetCornerRadius(self)
Definition: pcbnew.py:15462
def GetSelectedCorner(self)
Definition: pcbnew.py:15296
def GetIslandRemovalMode(self)
Definition: pcbnew.py:15565
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15323
def SetHatchThickness(self, aThickness)
Definition: pcbnew.py:15244
def AddPolygon(self, *args)
Definition: pcbnew.py:15470
def HigherPriority(self, aOther)
Definition: pcbnew.py:15110
def ClassOf(aItem)
Definition: pcbnew.py:15082
def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
Definition: pcbnew.py:15172
def SetTeardropAreaType(self, aType)
Definition: pcbnew.py:15481
def GetRuleAreaPlacementEnabled(self)
Definition: pcbnew.py:15497
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:15458
def SetHatchStyle(self, aStyle)
Definition: pcbnew.py:15414
def GetBorderHatchPitch(self)
Definition: pcbnew.py:15581
def GetHashValue(self, aLayer)
Definition: pcbnew.py:15614
def GetRuleAreaPlacementSourceType(self)
Definition: pcbnew.py:15501
def CacheBoundingBox(self)
Definition: pcbnew.py:15130
def SetRuleAreaPlacementEnabled(self, aEnabled)
Definition: pcbnew.py:15533
def SetZoneName(self, aName)
Definition: pcbnew.py:15126
def GetHatchSmoothingLevel(self)
Definition: pcbnew.py:15264
def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None)
Definition: pcbnew.py:15446
def SetHatchBorderAlgorithm(self, aAlgo)
Definition: pcbnew.py:15292
def SetFillMode(self, aFillMode)
Definition: pcbnew.py:15153
def GetLocalClearance(self, *args)
Definition: pcbnew.py:15138
def HasFilledPolysForLayer(self, aLayer)
Definition: pcbnew.py:15418
def CalculateOutlineArea(self)
Definition: pcbnew.py:15184
def SetHatchHoleMinArea(self, aPct)
Definition: pcbnew.py:15284
def GetPadConnection(self)
Definition: pcbnew.py:15224
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15149
def GetAssignedPriority(self)
Definition: pcbnew.py:15106
def GetHatchLines(self)
Definition: pcbnew.py:15606
def GetCornerSmoothingType(self)
Definition: pcbnew.py:15454
def GetHatchGap(self)
Definition: pcbnew.py:15248
def SetBorderHatchPitch(self, aPitch)
Definition: pcbnew.py:15594
def GetFillMode(self)
Definition: pcbnew.py:15157
def SetCornerPosition(self, aCornerIndex, new_pos)
Definition: pcbnew.py:15398
def HitTest(self, *args)
Definition: pcbnew.py:15359
def InitDataFromSrcInCopyCtor(self, aZone)
Definition: pcbnew.py:15094
def GetCornerPosition(self, aCornerIndex)
Definition: pcbnew.py:15394
def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:15351
def CalculateFilledArea(self)
Definition: pcbnew.py:15180
def SetAssignedPriority(self, aPriority)
Definition: pcbnew.py:15102
def UnFill(self)
Definition: pcbnew.py:15366
def GetHatchOrientation(self)
Definition: pcbnew.py:15256
def SetRuleAreaPlacementSourceType(self, aType)
Definition: pcbnew.py:15537
def Deserialize(self, aContainer)
Definition: pcbnew.py:15090
def SetFilledPolysList(self, aLayer, aPolysList)
Definition: pcbnew.py:15434
def IsFilled(self)
Definition: pcbnew.py:15208
def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
Definition: pcbnew.py:15343
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:15347
def __init__(self, *args)
Definition: pcbnew.py:15073
def GetMinIslandArea(self)
Definition: pcbnew.py:15573
def GetHatchStyle(self)
Definition: pcbnew.py:15410
def SetHatchOrientation(self, aStep)
Definition: pcbnew.py:15260
def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:15355
def RemoveCutout(self, aOutlineIdx, aHoleIdx)
Definition: pcbnew.py:15466
def HasKeepoutParametersSet(self)
Definition: pcbnew.py:15489
def GetFilledPolysList(self, aLayer)
Definition: pcbnew.py:15422
def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
Definition: pcbnew.py:15339
def SetMinThickness(self, aMinThickness)
Definition: pcbnew.py:15236
def SetHatchGap(self, aStep)
Definition: pcbnew.py:15252
def Serialize(self, aContainer)
Definition: pcbnew.py:15086
def SetFillFlag(self, aLayer, aFlag)
Definition: pcbnew.py:15204
def MoveEdge(self, offset, aEdge)
Definition: pcbnew.py:15370
def GetHatchSmoothingValue(self)
Definition: pcbnew.py:15272
def IsConflicting(self)
Definition: pcbnew.py:15098
def SetOutline(self, aOutline)
Definition: pcbnew.py:15319
def GetDoNotAllowPads(self)
Definition: pcbnew.py:15521
def BuildHashValue(self, aLayer)
Definition: pcbnew.py:15610
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:15529
def GetHatchThickness(self)
Definition: pcbnew.py:15240
def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None)
Definition: pcbnew.py:15331
def SetThermalReliefGap(self, aThermalReliefGap)
Definition: pcbnew.py:15161
def SetIsFilled(self, isFilled)
Definition: pcbnew.py:15212
def IsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:15438
def CacheTriangulation(self, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:15430
def SetSelectedCorner(self, aCorner)
Definition: pcbnew.py:15300
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:15569
def GetFillFlag(self, aLayer)
Definition: pcbnew.py:15200
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:15525
def SetIsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:15442
def SetRuleAreaPlacementSource(self, aSource)
Definition: pcbnew.py:15541
def SetLayerSetAndRemoveUnusedFills(self, aLayerSet)
Definition: pcbnew.py:15118
def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False)
Definition: pcbnew.py:15406
def GetHatchBorderAlgorithm(self)
Definition: pcbnew.py:15288
def SetLocalFlags(self, aFlags)
Definition: pcbnew.py:15308
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:15561
def GetOutlineArea(self)
Definition: pcbnew.py:15192
def GetFilledArea(self)
Definition: pcbnew.py:15188
def RemoveAllContours(self)
Definition: pcbnew.py:15390
def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0)
Definition: pcbnew.py:15327
def SetHatchSmoothingLevel(self, aLevel)
Definition: pcbnew.py:15268
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:15545
def Iterate(self)
Definition: pcbnew.py:15378
def empty(self)
Definition: pcbnew.py:9626
def resize(self, *args)
Definition: pcbnew.py:9698
def __delitem__(self, *args)
Definition: pcbnew.py:9596
def rbegin(self)
Definition: pcbnew.py:9646
def __iter__(self)
Definition: pcbnew.py:9566
def assign(self, n, x)
Definition: pcbnew.py:9694
def __getitem__(self, *args)
Definition: pcbnew.py:9603
def pop_back(self)
Definition: pcbnew.py:9662
def reserve(self, n)
Definition: pcbnew.py:9712
def __setslice__(self, *args)
Definition: pcbnew.py:9585
def capacity(self)
Definition: pcbnew.py:9716
def __len__(self)
Definition: pcbnew.py:9577
def append(self, x)
Definition: pcbnew.py:9622
def __delslice__(self, i, j)
Definition: pcbnew.py:9592
def rend(self)
Definition: pcbnew.py:9650
def clear(self)
Definition: pcbnew.py:9654
def insert(self, *args)
Definition: pcbnew.py:9705
def size(self)
Definition: pcbnew.py:9630
def __init__(self, *args)
Definition: pcbnew.py:9673
def erase(self, *args)
Definition: pcbnew.py:9666
def front(self)
Definition: pcbnew.py:9686
def swap(self, v)
Definition: pcbnew.py:9634
def __bool__(self)
Definition: pcbnew.py:9573
def iterator(self)
Definition: pcbnew.py:9563
def __setitem__(self, *args)
Definition: pcbnew.py:9610
def back(self)
Definition: pcbnew.py:9690
def end(self)
Definition: pcbnew.py:9642
def __nonzero__(self)
Definition: pcbnew.py:9569
def __getslice__(self, i, j)
Definition: pcbnew.py:9581
def begin(self)
Definition: pcbnew.py:9638
def push_back(self, x)
Definition: pcbnew.py:9682
def get_allocator(self)
Definition: pcbnew.py:9658
def pop(self)
Definition: pcbnew.py:9618
def __call__(self, itemA, itemB)
Definition: pcbnew.py:21257
def __init__(self)
Definition: pcbnew.py:21261
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:21274
def __init__(self)
Definition: pcbnew.py:21278
def __init__(self)
Definition: pcbnew.py:21295
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:21291
def get_allocator(self)
Definition: pcbnew.py:4015
def erase(self, *args)
Definition: pcbnew.py:4023
def resize(self, *args)
Definition: pcbnew.py:4055
def __iter__(self)
Definition: pcbnew.py:3923
def rbegin(self)
Definition: pcbnew.py:4003
def iterator(self)
Definition: pcbnew.py:3920
def __setslice__(self, *args)
Definition: pcbnew.py:3942
def capacity(self)
Definition: pcbnew.py:4073
def empty(self)
Definition: pcbnew.py:3983
def begin(self)
Definition: pcbnew.py:3995
def swap(self, v)
Definition: pcbnew.py:3991
def __delslice__(self, i, j)
Definition: pcbnew.py:3949
def __getslice__(self, i, j)
Definition: pcbnew.py:3938
def __delitem__(self, *args)
Definition: pcbnew.py:3953
def __len__(self)
Definition: pcbnew.py:3934
def __setitem__(self, *args)
Definition: pcbnew.py:3967
def pop_back(self)
Definition: pcbnew.py:4019
def front(self)
Definition: pcbnew.py:4043
def end(self)
Definition: pcbnew.py:3999
def clear(self)
Definition: pcbnew.py:4011
def __nonzero__(self)
Definition: pcbnew.py:3926
def reserve(self, n)
Definition: pcbnew.py:4069
def __init__(self, *args)
Definition: pcbnew.py:4030
def size(self)
Definition: pcbnew.py:3987
def assign(self, n, x)
Definition: pcbnew.py:4051
def pop(self)
Definition: pcbnew.py:3975
def push_back(self, x)
Definition: pcbnew.py:4039
def rend(self)
Definition: pcbnew.py:4007
def append(self, x)
Definition: pcbnew.py:3979
def __getitem__(self, *args)
Definition: pcbnew.py:3960
def insert(self, *args)
Definition: pcbnew.py:4062
def back(self)
Definition: pcbnew.py:4047
def __bool__(self)
Definition: pcbnew.py:3930
def __setitem__(self, *args)
Definition: pcbnew.py:10813
def count(self, x)
Definition: pcbnew.py:10868
def __getitem__(self, key)
Definition: pcbnew.py:10777
def value_iterator(self)
Definition: pcbnew.py:10809
def iteritems(self)
Definition: pcbnew.py:10774
def swap(self, v)
Definition: pcbnew.py:10840
def iterator(self)
Definition: pcbnew.py:10751
def get_allocator(self)
Definition: pcbnew.py:10864
def __iter__(self)
Definition: pcbnew.py:10754
def __bool__(self)
Definition: pcbnew.py:10761
def has_key(self, key)
Definition: pcbnew.py:10785
def __init__(self, *args)
Definition: pcbnew.py:10824
def itervalues(self)
Definition: pcbnew.py:10772
def iterkeys(self)
Definition: pcbnew.py:10770
def lower_bound(self, x)
Definition: pcbnew.py:10884
def __delitem__(self, key)
Definition: pcbnew.py:10781
def __nonzero__(self)
Definition: pcbnew.py:10757
def find(self, x)
Definition: pcbnew.py:10880
def __contains__(self, key)
Definition: pcbnew.py:10801
def erase(self, *args)
Definition: pcbnew.py:10872
def upper_bound(self, x)
Definition: pcbnew.py:10888
def key_iterator(self)
Definition: pcbnew.py:10805
def value_iterator(self)
Definition: pcbnew.py:4144
def __iter__(self)
Definition: pcbnew.py:4089
def __bool__(self)
Definition: pcbnew.py:4096
def __nonzero__(self)
Definition: pcbnew.py:4092
def __setitem__(self, *args)
Definition: pcbnew.py:4148
def __delitem__(self, key)
Definition: pcbnew.py:4116
def asdict(self)
Definition: pcbnew.py:4155
def lower_bound(self, x)
Definition: pcbnew.py:4219
def __init__(self, *args)
Definition: pcbnew.py:4159
def __len__(self)
Definition: pcbnew.py:4100
def upper_bound(self, x)
Definition: pcbnew.py:4223
def keys(self)
Definition: pcbnew.py:4124
def __getitem__(self, key)
Definition: pcbnew.py:4112
def empty(self)
Definition: pcbnew.py:4167
def find(self, x)
Definition: pcbnew.py:4215
def __contains__(self, key)
Definition: pcbnew.py:4136
def values(self)
Definition: pcbnew.py:4128
def begin(self)
Definition: pcbnew.py:4179
def rend(self)
Definition: pcbnew.py:4191
def erase(self, *args)
Definition: pcbnew.py:4207
def iterator(self)
Definition: pcbnew.py:4086
def has_key(self, key)
Definition: pcbnew.py:4120
def key_iterator(self)
Definition: pcbnew.py:4140
def itervalues(self)
Definition: pcbnew.py:4107
def rbegin(self)
Definition: pcbnew.py:4187
def get_allocator(self)
Definition: pcbnew.py:4199
def end(self)
Definition: pcbnew.py:4183
def swap(self, v)
Definition: pcbnew.py:4175
def iterkeys(self)
Definition: pcbnew.py:4105
def clear(self)
Definition: pcbnew.py:4195
def size(self)
Definition: pcbnew.py:4171
def items(self)
Definition: pcbnew.py:4132
def iteritems(self)
Definition: pcbnew.py:4109
def count(self, x)
Definition: pcbnew.py:4203
def __delitem__(self, *args)
Definition: pcbnew.py:333
def __gt__(self, v)
Definition: pcbnew.py:409
def get_allocator(self)
Definition: pcbnew.py:263
def find_last_of(self, *args)
Definition: pcbnew.py:207
def assign(self, *args)
Definition: pcbnew.py:284
def erase(self, *args)
Definition: pcbnew.py:267
def shrink_to_fit(self)
Definition: pcbnew.py:171
def __nonzero__(self)
Definition: pcbnew.py:306
def __eq__(self, v)
Definition: pcbnew.py:401
def __getitem__(self, *args)
Definition: pcbnew.py:340
def __ne__(self, v)
Definition: pcbnew.py:405
def max_size(self)
Definition: pcbnew.py:159
def __setitem__(self, *args)
Definition: pcbnew.py:347
def __lt__(self, v)
Definition: pcbnew.py:413
def __iter__(self)
Definition: pcbnew.py:303
def __init__(self, *args)
Definition: pcbnew.py:275
def __add__(self, v)
Definition: pcbnew.py:385
def size(self)
Definition: pcbnew.py:239
def __le__(self, v)
Definition: pcbnew.py:421
def __rlshift__(self, out)
Definition: pcbnew.py:397
def rend(self)
Definition: pcbnew.py:259
def __bool__(self)
Definition: pcbnew.py:310
def replace(self, *args)
Definition: pcbnew.py:367
def __getslice__(self, i, j)
Definition: pcbnew.py:318
def __delslice__(self, i, j)
Definition: pcbnew.py:329
def copy(self, __s, __n, __pos=0)
Definition: pcbnew.py:175
def find_first_of(self, *args)
Definition: pcbnew.py:199
def c_str(self)
Definition: pcbnew.py:179
def reserve(self, __res_arg)
Definition: pcbnew.py:167
def substr(self, *args)
Definition: pcbnew.py:231
def begin(self)
Definition: pcbnew.py:247
def __str__(self)
Definition: pcbnew.py:393
def swap(self, v)
Definition: pcbnew.py:243
def find(self, *args)
Definition: pcbnew.py:183
def empty(self)
Definition: pcbnew.py:235
def __iadd__(self, v)
Definition: pcbnew.py:381
def resize(self, *args)
Definition: pcbnew.py:293
def insert(self, *args)
Definition: pcbnew.py:355
def find_last_not_of(self, *args)
Definition: pcbnew.py:223
def iterator(self)
Definition: pcbnew.py:300
def capacity(self)
Definition: pcbnew.py:163
def rfind(self, *args)
Definition: pcbnew.py:191
def end(self)
Definition: pcbnew.py:251
def find_first_not_of(self, *args)
Definition: pcbnew.py:215
def rbegin(self)
Definition: pcbnew.py:255
def length(self)
Definition: pcbnew.py:155
def __len__(self)
Definition: pcbnew.py:314
def __radd__(self, v)
Definition: pcbnew.py:389
def __ge__(self, v)
Definition: pcbnew.py:417
def __setslice__(self, *args)
Definition: pcbnew.py:322
def empty(self)
Definition: pcbnew.py:772
def reserve(self, n)
Definition: pcbnew.py:858
def swap(self, v)
Definition: pcbnew.py:780
def clear(self)
Definition: pcbnew.py:800
def __getslice__(self, i, j)
Definition: pcbnew.py:727
def __delslice__(self, i, j)
Definition: pcbnew.py:738
def __bool__(self)
Definition: pcbnew.py:719
def __setitem__(self, *args)
Definition: pcbnew.py:756
def __iter__(self)
Definition: pcbnew.py:712
def append(self, x)
Definition: pcbnew.py:768
def front(self)
Definition: pcbnew.py:832
def resize(self, *args)
Definition: pcbnew.py:844
def rbegin(self)
Definition: pcbnew.py:792
def size(self)
Definition: pcbnew.py:776
def capacity(self)
Definition: pcbnew.py:862
def rend(self)
Definition: pcbnew.py:796
def __len__(self)
Definition: pcbnew.py:723
def __setslice__(self, *args)
Definition: pcbnew.py:731
def __getitem__(self, *args)
Definition: pcbnew.py:749
def iterator(self)
Definition: pcbnew.py:709
def begin(self)
Definition: pcbnew.py:784
def insert(self, *args)
Definition: pcbnew.py:851
def push_back(self, x)
Definition: pcbnew.py:828
def __init__(self, *args)
Definition: pcbnew.py:819
def back(self)
Definition: pcbnew.py:836
def assign(self, n, x)
Definition: pcbnew.py:840
def __nonzero__(self)
Definition: pcbnew.py:715
def pop_back(self)
Definition: pcbnew.py:808
def __delitem__(self, *args)
Definition: pcbnew.py:742
def get_allocator(self)
Definition: pcbnew.py:804
def erase(self, *args)
Definition: pcbnew.py:812
def Get(self)
Definition: pcbnew.py:660
def Set(self, x, y)
Definition: pcbnew.py:656
def __init__(self, *args)
Definition: pcbnew.py:640
property y
Definition: pcbnew.py:638
def __ne__(self, other)
Definition: pcbnew.py:665
def __len__(self)
Definition: pcbnew.py:668
property x
Definition: pcbnew.py:637
def __getitem__(self, index)
Definition: pcbnew.py:669
def __sub__(self, pt)
Definition: pcbnew.py:652
def __nonzero__(self)
Definition: pcbnew.py:677
def __str__(self)
Definition: pcbnew.py:666
def __add__(self, pt)
Definition: pcbnew.py:648
def __eq__(self, other)
Definition: pcbnew.py:664
def __setitem__(self, index, val)
Definition: pcbnew.py:670
def __str__(self)
Definition: pcbnew.py:560
def __nonzero__(self)
Definition: pcbnew.py:570
property height
Definition: pcbnew.py:551
def GetWidth(self)
Definition: pcbnew.py:525
def GetHeight(self)
Definition: pcbnew.py:533
def __eq__(self, other)
Definition: pcbnew.py:558
def GetX(self)
Definition: pcbnew.py:509
def SetX(self, xx)
Definition: pcbnew.py:513
property x
Definition: pcbnew.py:548
property width
Definition: pcbnew.py:550
property y
Definition: pcbnew.py:549
def SetPosition(self, p)
Definition: pcbnew.py:545
def __getitem__(self, index)
Definition: pcbnew.py:563
def GetPosition(self)
Definition: pcbnew.py:541
def SetHeight(self, h)
Definition: pcbnew.py:537
def __len__(self)
Definition: pcbnew.py:562
def __init__(self, *args)
Definition: pcbnew.py:499
def GetY(self)
Definition: pcbnew.py:517
def SetY(self, yy)
Definition: pcbnew.py:521
def __setitem__(self, index, val)
Definition: pcbnew.py:564
def SetWidth(self, w)
Definition: pcbnew.py:529
def Get(self)
Definition: pcbnew.py:553
property x
Definition: pcbnew.py:582
def __getitem__(self, index)
Definition: pcbnew.py:620
def SetWidth(self, w)
Definition: pcbnew.py:597
def __str__(self)
Definition: pcbnew.py:617
def __eq__(self, other)
Definition: pcbnew.py:615
def __len__(self)
Definition: pcbnew.py:619
def GetWidth(self)
Definition: pcbnew.py:605
def __init__(self, *args)
Definition: pcbnew.py:585
def SetHeight(self, h)
Definition: pcbnew.py:601
def __setitem__(self, index, val)
Definition: pcbnew.py:621
def __nonzero__(self)
Definition: pcbnew.py:625
def Get(self)
Definition: pcbnew.py:592
def Scale(self, xscale, yscale)
Definition: pcbnew.py:613
def GetHeight(self)
Definition: pcbnew.py:609
property y
Definition: pcbnew.py:583
def __str__(self)
Definition: pcbnew.py:690
def __init__(self)
Definition: pcbnew.py:697
def IsValidLayer(aLayerId)
Definition: pcbnew.py:3587
def Cast_to_BOARD(arg1)
Definition: pcbnew.py:10481
def __lt__(lhs, rhs)
Definition: pcbnew.py:2393
def FormatInternalUnits(*args)
Definition: pcbnew.py:1778
def EnsureFileExtension(aFilename, aExtension)
Definition: pcbnew.py:1836
def Cast_to_PCB_DIM_RADIAL(arg1)
Definition: pcbnew.py:10461
def Cast_to_SHAPE_ARC(_self)
Definition: pcbnew.py:7510
def IsExternalCopperLayer(aLayerId)
Definition: pcbnew.py:3595
def MessageTextFromMinOptMax(aIuScale, aUnits, aValue)
Definition: pcbnew.py:1806
def BOX2ISafe(*args)
Definition: pcbnew.py:4874
def FootprintLibDelete(libname)
Definition: pcbnew.py:21493
def GetFlippedAlignment(*args)
Definition: pcbnew.py:16795
def FootprintDelete(libname, name)
Definition: pcbnew.py:21485
def GetWizardsSearchPaths()
Definition: pcbnew.py:4265
def Cast_to_PCB_MARKER(arg1)
Definition: pcbnew.py:10477
def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None)
Definition: pcbnew.py:4336
def MessageTextFromValue(*args)
Definition: pcbnew.py:1797
def IsPcbLayer(aLayer)
Definition: pcbnew.py:3591
def ExportVRML(aFullFileName, aMMtoWRMLunit, aIncludeUnspecified, aIncludeDNP, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:9511
def ResolveUriByEnvVars(aUri, aProject)
Definition: pcbnew.py:1861
def IsActionRunning()
Definition: pcbnew.py:9546
def IsGerbviewType(aType)
Definition: pcbnew.py:1412
def SetOpenGLInfo(aRenderer, aVendor, aVersion)
Definition: pcbnew.py:2932
def LoadBoard(*args)
Definition: pcbnew.py:9473
def IsTextVar(aSource)
Definition: pcbnew.py:1857
def GetBuildDate()
Definition: pcbnew.py:2916
def Cast_to_PCB_DIM_ORTHOGONAL(arg1)
Definition: pcbnew.py:10449
def IsNullType(aType)
Definition: pcbnew.py:1396
def Cast_to_SHAPE_CIRCLE(_self)
Definition: pcbnew.py:7514
def InvokeRuleAreaEditor(aCaller, aSettings, aBoard=None, aConvertSettings=None)
Definition: pcbnew.py:15670
def wxPointMils(mmx, mmy)
Definition: pcbnew.py:21597
def FootprintIsWritable(libname)
Definition: pcbnew.py:21497
def FootprintLibCreate(libname)
Definition: pcbnew.py:21489
def Cast_to_ZONE(arg1)
Definition: pcbnew.py:10501
def SearchHelpFileFullPath(aBaseName)
Definition: pcbnew.py:1828
def __ne__(lhs, rhs)
Definition: pcbnew.py:2389
def VECTOR2I_MM(mmx, mmy)
Definition: pcbnew.py:21600
def IsViaPadLayer(aLayer)
Definition: pcbnew.py:3614
def FromMM(mm)
Definition: pcbnew.py:21556
def IsZoneFillLayer(aLayer)
Definition: pcbnew.py:3654
def BoardLayerFromLegacyId(aLegacyId)
Definition: pcbnew.py:3678
def FlipLayer(aLayerId, aCopperLayersCount=0)
Definition: pcbnew.py:3642
def GetSemanticVersion()
Definition: pcbnew.py:2904
def Cast_to_PCB_TEXT(arg1)
Definition: pcbnew.py:10437
def GetBuildVersion()
Definition: pcbnew.py:2892
def wxRectMils(x, y, wx, wy)
Definition: pcbnew.py:21613
def IsHoleLayer(aLayer)
Definition: pcbnew.py:3618
def FetchUnitsFromString(aTextValue, aUnits)
Definition: pcbnew.py:1762
def new_clone(aItem)
Definition: pcbnew.py:1664
def Cast_to_SHAPE_SIMPLE(_self)
Definition: pcbnew.py:7538
def StrPrintf(*args)
Definition: pcbnew.py:1873
def GetSettingsManager()
Definition: pcbnew.py:9484
def ExpandTextVars(*args)
Definition: pcbnew.py:1846
def ToMM(iu)
Definition: pcbnew.py:21548
def IsUTF8(aString)
Definition: pcbnew.py:7546
def ToGalLayer(aInteger)
Definition: pcbnew.py:3274
def Mils2mm(aVal)
Definition: pcbnew.py:1758
def ToHAlignment(x)
Definition: pcbnew.py:16802
def Cast_to_PCB_TARGET(arg1)
Definition: pcbnew.py:10505
def __eq__(lhs, rhs)
Definition: pcbnew.py:2385
def wxRectMM(x, y, wx, wy)
Definition: pcbnew.py:21606
def GetText(*args)
Definition: pcbnew.py:1766
def IsInstantiableType(aType)
Definition: pcbnew.py:1400
def NilUuid()
Definition: pcbnew.py:961
def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None)
Definition: pcbnew.py:1832
def UpdateUserInterface()
Definition: pcbnew.py:9530
def FootprintLoad(libname, name, preserveUUID=False)
Definition: pcbnew.py:21477
def FootprintEnumerate(libname)
Definition: pcbnew.py:21473
def GetCommitHash()
Definition: pcbnew.py:2920
def colorRefs()
Definition: pcbnew.py:2243
def PlotDrawingSheet(*args)
Definition: pcbnew.py:8962
def FormatAngle(aAngle)
Definition: pcbnew.py:1774
def GetLanguage()
Definition: pcbnew.py:9554
def __lshift__(aStream, aColor)
Definition: pcbnew.py:2397
def Mils2IU(aIuScale, mils)
Definition: pcbnew.py:1785
def GetVersionInfoData(aTitle, aHtml=False, aBrief=False)
Definition: pcbnew.py:2936
def FullVersion()
Definition: pcbnew.py:21625
def IsClearanceLayer(aLayer)
Definition: pcbnew.py:3666
def GetMajorMinorVersion()
Definition: pcbnew.py:2908
def FocusOnItem(aItem, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:9542
def IsNetnameLayer(aLayer)
Definition: pcbnew.py:3650
def CopperLayerToOrdinal(aLayer)
Definition: pcbnew.py:3674
def Cast_to_SHAPE_POLY_SET(_self)
Definition: pcbnew.py:7526
def ExportSpecctraDSN(*args)
Definition: pcbnew.py:9504
def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None)
Definition: pcbnew.py:15666
def GetMajorMinorPatchTuple()
Definition: pcbnew.py:2924
def _swig_setattr_nondynamic_instance_variable(set)
Definition: pcbnew.py:27
def GetCurrentSelection()
Definition: pcbnew.py:9538
def wxGetDefaultPyEncoding()
Definition: pcbnew.py:490
def IsImperialUnit(aUnit)
Definition: pcbnew.py:1746
def SaveBoard(aFileName, aBoard, aSkipSettings=False)
Definition: pcbnew.py:9492
def MapPCBLayerTo3DLayer(aLayer)
Definition: pcbnew.py:3686
def PrintZoneConnection(aConnection)
Definition: pcbnew.py:15658
def IsEeschemaType(aType)
Definition: pcbnew.py:1404
def Cast_to_SHAPE_RECT(_self)
Definition: pcbnew.py:7530
def Refresh()
Definition: pcbnew.py:9526
def Cast_to_PCB_TRACK(arg1)
Definition: pcbnew.py:10489
def Cast_to_SHAPE_SEGMENT(_self)
Definition: pcbnew.py:7534
def PutOnGridMM(value, gridSizeMM)
Definition: pcbnew.py:21580
def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None)
Definition: pcbnew.py:15662
def IsCopperLayer(*args)
Definition: pcbnew.py:3607
def Cast_to_SHAPE_COMPOUND(_self)
Definition: pcbnew.py:7518
def IsCopperLayerLowerThan(aLayerA, aLayerB)
Definition: pcbnew.py:3638
def DoubleValueFromString(*args)
Definition: pcbnew.py:1814
def IsFrontLayer(aLayerId)
Definition: pcbnew.py:3630
def Cast_to_FOOTPRINT(arg1)
Definition: pcbnew.py:10465
def StringFromValue(*args)
Definition: pcbnew.py:1793
def GetUserUnits()
Definition: pcbnew.py:9534
def ImportSpecctraSES(*args)
Definition: pcbnew.py:9515
def CreateEmptyBoard()
Definition: pcbnew.py:9488
def GetLabel(*args)
Definition: pcbnew.py:1770
def Version()
Definition: pcbnew.py:21621
def IsMiscType(aType)
Definition: pcbnew.py:1420
def ValueFromString(*args)
Definition: pcbnew.py:1821
def Cast_to_PCB_DIM_CENTER(arg1)
Definition: pcbnew.py:10457
def ExportFootprintsToLibrary(*args)
Definition: pcbnew.py:9522
def BaseType(aType)
Definition: pcbnew.py:1392
def PutOnGridMils(value, gridSizeMils)
Definition: pcbnew.py:21584
def IsSolderMaskLayer(aLayer)
Definition: pcbnew.py:3622
def Cast_to_PCB_REFERENCE_IMAGE(arg1)
Definition: pcbnew.py:10513
def IsPcbnewType(aType)
Definition: pcbnew.py:1408
def IsUserLayer(aLayerId)
Definition: pcbnew.py:3626
def GetMajorMinorPatchVersion()
Definition: pcbnew.py:2912
def GetBoard()
Definition: pcbnew.py:9469
def IsPageLayoutEditorType(aType)
Definition: pcbnew.py:1416
def SHAPE_TYPE_asString(a)
Definition: pcbnew.py:5879
def VECTOR2I_Mils(mmx, mmy)
Definition: pcbnew.py:21603
def Cast_to_PCB_VIA(arg1)
Definition: pcbnew.py:10493
def TimestampDir(aDirPath, aFilespec)
Definition: pcbnew.py:1865
def GetFootprints(aNickName)
Definition: pcbnew.py:9500
def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
Definition: pcbnew.py:9550
def GetTextVars(aSource)
Definition: pcbnew.py:1853
def GetBaseVersion()
Definition: pcbnew.py:2896
def Cast_to_PCB_TABLE(arg1)
Definition: pcbnew.py:10509
def GetNetnameLayer(aLayer)
Definition: pcbnew.py:3646
def wxSizeMM(mmx, mmy)
Definition: pcbnew.py:21588
def Cast_to_PCB_ARC(arg1)
Definition: pcbnew.py:10497
def Cast_to_PCB_SHAPE(arg1)
Definition: pcbnew.py:10473
def ToLAYER_ID(aLayer)
Definition: pcbnew.py:3690
def IsTypeCorrect(aType)
Definition: pcbnew.py:1424
def GetPluginForPath(libname)
Definition: pcbnew.py:21469
def IsBackLayer(aLayerId)
Definition: pcbnew.py:3634
def Cast_to_PCB_DIM_LEADER(arg1)
Definition: pcbnew.py:10453
def Cast_to_PCB_GROUP(arg1)
Definition: pcbnew.py:10469
def NewBoard(aFileName)
Definition: pcbnew.py:9480
def IsMetricUnit(aUnit)
Definition: pcbnew.py:1750
def ExpandEnvVarSubstitutions(aString, aProject)
Definition: pcbnew.py:1840
def wxSetDefaultPyEncoding(encoding)
Definition: pcbnew.py:486
def WarnUserIfOperatingSystemUnsupported()
Definition: pcbnew.py:1869
def SafeReadFile(aFilePath, aReadType)
Definition: pcbnew.py:1880
def GetFootprintLibraries()
Definition: pcbnew.py:9496
def _swig_add_metaclass(metaclass)
Definition: pcbnew.py:49
def Map3DLayerToPCBLayer(aLayer)
Definition: pcbnew.py:3682
def LayerName(aLayer)
Definition: pcbnew.py:3583
def FromMils(mils)
Definition: pcbnew.py:21572
def Mm2mils(aVal)
Definition: pcbnew.py:1754
def IsInnerCopperLayer(aLayerId)
Definition: pcbnew.py:3599
def Cast_to_SHAPE_LINE_CHAIN(_self)
Definition: pcbnew.py:7522
def IsNonCopperLayer(aLayerId)
Definition: pcbnew.py:3603
def Cast_to_PAD(arg1)
Definition: pcbnew.py:10485
def GetWizardsBackTrace()
Definition: pcbnew.py:4276
def ToMils(iu)
Definition: pcbnew.py:21564
def wxSizeMils(mmx, mmy)
Definition: pcbnew.py:21591
def LoadPluginModule(Dirname, ModuleName, FileName)
Definition: pcbnew.py:4281
def IsPadCopperLayer(aLayer)
Definition: pcbnew.py:3658
def GetDefaultPlotExtension(aFormat)
Definition: pcbnew.py:8966
def IsNightlyVersion()
Definition: pcbnew.py:2928
def GetPlatformGetBitnessName()
Definition: pcbnew.py:2900
def ToUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1789
def Cast_to_PCB_TEXTBOX(arg1)
Definition: pcbnew.py:10441
def wxPointMM(mmx, mmy)
Definition: pcbnew.py:21594
def Cast_to_PCB_DIM_ALIGNED(arg1)
Definition: pcbnew.py:10445
def Cast_to_BOARD_ITEM(base)
Definition: pcbnew.py:10433
def KiROUND(*args)
Definition: pcbnew.py:4881
def FootprintSave(libname, module)
Definition: pcbnew.py:21481
def IsViaCopperLayer(aLayer)
Definition: pcbnew.py:3662
def FromUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1810
def IsDCodeLayer(aLayer)
Definition: pcbnew.py:3670