KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
pcbnew.py
Go to the documentation of this file.
1# This file was automatically generated by SWIG (http://www.swig.org).
2# Version 4.0.2
3#
4# Do not make changes to this file unless you know what you are doing--modify
5# the SWIG interface file instead.
6
7from sys import version_info as _swig_python_version_info
8if _swig_python_version_info < (2, 7, 0):
9 raise RuntimeError("Python 2.7 or later required")
10
11# Import the low-level C/C++ module
12if __package__ or "." in __name__:
13 from . import _pcbnew
14else:
15 import _pcbnew
16
17try:
18 import builtins as __builtin__
19except ImportError:
20 import __builtin__
21
22def _swig_repr(self):
23 try:
24 strthis = "proxy of " + self.this.__repr__()
25 except __builtin__.Exception:
26 strthis = ""
27 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28
29
30def _swig_setattr_nondynamic_instance_variable(set):
31 def set_instance_attr(self, name, value):
32 if name == "thisown":
33 self.this.own(value)
34 elif name == "this":
35 set(self, name, value)
36 elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37 set(self, name, value)
38 else:
39 raise AttributeError("You cannot add instance attributes to %s" % self)
40 return set_instance_attr
41
42
43def _swig_setattr_nondynamic_class_variable(set):
44 def set_class_attr(cls, name, value):
45 if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46 set(cls, name, value)
47 else:
48 raise AttributeError("You cannot add class attributes to %s" % cls)
49 return set_class_attr
50
51
52def _swig_add_metaclass(metaclass):
53 """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54 def wrapper(cls):
55 return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56 return wrapper
57
58
60 """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61 __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62
63
64class SwigPyIterator(object):
65 r"""Proxy of C++ swig::SwigPyIterator class."""
66
67 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
68
69 def __init__(self, *args, **kwargs):
70 raise AttributeError("No constructor defined - class is abstract")
71 __repr__ = _swig_repr
72 __swig_destroy__ = _pcbnew.delete_SwigPyIterator
73
74 def value(self):
75 r"""value(SwigPyIterator self) -> PyObject *"""
76 return _pcbnew.SwigPyIterator_value(self)
77
78 def incr(self, n=1):
79 r"""incr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
80 return _pcbnew.SwigPyIterator_incr(self, n)
81
82 def decr(self, n=1):
83 r"""decr(SwigPyIterator self, size_t n=1) -> SwigPyIterator"""
84 return _pcbnew.SwigPyIterator_decr(self, n)
85
86 def distance(self, x):
87 r"""distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"""
88 return _pcbnew.SwigPyIterator_distance(self, x)
89
90 def equal(self, x):
91 r"""equal(SwigPyIterator self, SwigPyIterator x) -> bool"""
92 return _pcbnew.SwigPyIterator_equal(self, x)
93
94 def copy(self):
95 r"""copy(SwigPyIterator self) -> SwigPyIterator"""
96 return _pcbnew.SwigPyIterator_copy(self)
97
98 def next(self):
99 r"""next(SwigPyIterator self) -> PyObject *"""
100 return _pcbnew.SwigPyIterator_next(self)
101
102 def __next__(self):
103 r"""__next__(SwigPyIterator self) -> PyObject *"""
104 return _pcbnew.SwigPyIterator___next__(self)
105
106 def previous(self):
107 r"""previous(SwigPyIterator self) -> PyObject *"""
108 return _pcbnew.SwigPyIterator_previous(self)
109
110 def advance(self, n):
111 r"""advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
112 return _pcbnew.SwigPyIterator_advance(self, n)
113
114 def __eq__(self, x):
115 r"""__eq__(SwigPyIterator self, SwigPyIterator x) -> bool"""
116 return _pcbnew.SwigPyIterator___eq__(self, x)
117
118 def __ne__(self, x):
119 r"""__ne__(SwigPyIterator self, SwigPyIterator x) -> bool"""
120 return _pcbnew.SwigPyIterator___ne__(self, x)
121
122 def __iadd__(self, n):
123 r"""__iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
124 return _pcbnew.SwigPyIterator___iadd__(self, n)
125
126 def __isub__(self, n):
127 r"""__isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
128 return _pcbnew.SwigPyIterator___isub__(self, n)
129
130 def __add__(self, n):
131 r"""__add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"""
132 return _pcbnew.SwigPyIterator___add__(self, n)
133
134 def __sub__(self, *args):
135 r"""
136 __sub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator
137 __sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t
138 """
139 return _pcbnew.SwigPyIterator___sub__(self, *args)
140 def __iter__(self):
141 return self
142
143# Register SwigPyIterator in _pcbnew:
144_pcbnew.SwigPyIterator_swigregister(SwigPyIterator)
145
147 r"""Proxy of C++ std::basic_string< char > class."""
148
149 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
150 __repr__ = _swig_repr
151
152 def length(self):
153 r"""length(string self) -> std::basic_string< char >::size_type"""
154 return _pcbnew.string_length(self)
155
156 def max_size(self):
157 r"""max_size(string self) -> std::basic_string< char >::size_type"""
158 return _pcbnew.string_max_size(self)
159
160 def capacity(self):
161 r"""capacity(string self) -> std::basic_string< char >::size_type"""
162 return _pcbnew.string_capacity(self)
163
164 def reserve(self, __res_arg=0):
165 r"""reserve(string self, std::basic_string< char >::size_type __res_arg=0)"""
166 return _pcbnew.string_reserve(self, __res_arg)
167
168 def copy(self, __s, __n, __pos=0):
169 r"""copy(string self, char * __s, std::basic_string< char >::size_type __n, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type"""
170 return _pcbnew.string_copy(self, __s, __n, __pos)
171
172 def c_str(self):
173 r"""c_str(string self) -> char const *"""
174 return _pcbnew.string_c_str(self)
175
176 def find(self, *args):
177 r"""
178 find(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
179 find(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
180 find(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
181 """
182 return _pcbnew.string_find(self, *args)
183
184 def rfind(self, *args):
185 r"""
186 rfind(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
187 rfind(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
188 rfind(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
189 """
190 return _pcbnew.string_rfind(self, *args)
191
192 def find_first_of(self, *args):
193 r"""
194 find_first_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
195 find_first_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
196 find_first_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
197 """
198 return _pcbnew.string_find_first_of(self, *args)
199
200 def find_last_of(self, *args):
201 r"""
202 find_last_of(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
203 find_last_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
204 find_last_of(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
205 """
206 return _pcbnew.string_find_last_of(self, *args)
207
208 def find_first_not_of(self, *args):
209 r"""
210 find_first_not_of(string self, string __str, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
211 find_first_not_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
212 find_first_not_of(string self, char __c, std::basic_string< char >::size_type __pos=0) -> std::basic_string< char >::size_type
213 """
214 return _pcbnew.string_find_first_not_of(self, *args)
215
216 def find_last_not_of(self, *args):
217 r"""
218 find_last_not_of(string self, string __str, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
219 find_last_not_of(string self, char const * __s, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> std::basic_string< char >::size_type
220 find_last_not_of(string self, char __c, std::basic_string< char >::size_type __pos=std::basic_string< char >::npos) -> std::basic_string< char >::size_type
221 """
222 return _pcbnew.string_find_last_not_of(self, *args)
223
224 def substr(self, *args):
225 r"""substr(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n=std::basic_string< char >::npos) -> string"""
226 return _pcbnew.string_substr(self, *args)
227
228 def empty(self):
229 r"""empty(string self) -> bool"""
230 return _pcbnew.string_empty(self)
231
232 def size(self):
233 r"""size(string self) -> std::basic_string< char >::size_type"""
234 return _pcbnew.string_size(self)
235
236 def swap(self, v):
237 r"""swap(string self, string v)"""
238 return _pcbnew.string_swap(self, v)
239
240 def begin(self):
241 r"""begin(string self) -> std::basic_string< char >::iterator"""
242 return _pcbnew.string_begin(self)
243
244 def end(self):
245 r"""end(string self) -> std::basic_string< char >::iterator"""
246 return _pcbnew.string_end(self)
247
248 def rbegin(self):
249 r"""rbegin(string self) -> std::basic_string< char >::reverse_iterator"""
250 return _pcbnew.string_rbegin(self)
251
252 def rend(self):
253 r"""rend(string self) -> std::basic_string< char >::reverse_iterator"""
254 return _pcbnew.string_rend(self)
255
256 def get_allocator(self):
257 r"""get_allocator(string self) -> std::basic_string< char >::allocator_type"""
258 return _pcbnew.string_get_allocator(self)
259
260 def erase(self, *args):
261 r"""
262 erase(string self, std::basic_string< char >::size_type __pos=0, std::basic_string< char >::size_type __n=std::basic_string< char >::npos) -> string
263 erase(string self, std::basic_string< char >::iterator pos) -> std::basic_string< char >::iterator
264 erase(string self, std::basic_string< char >::iterator first, std::basic_string< char >::iterator last) -> std::basic_string< char >::iterator
265 """
266 return _pcbnew.string_erase(self, *args)
267
268 def __init__(self, *args):
269 r"""
270 __init__(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
271 __init__(string self) -> string
272 __init__(string self, string other) -> string
273 __init__(string self, std::basic_string< char >::size_type size, std::basic_string< char >::value_type value) -> string
274 """
275 _pcbnew.string_swiginit(self, _pcbnew.new_string(*args))
276
277 def assign(self, *args):
278 r"""
279 assign(string self, string __str) -> string
280 assign(string self, string __str, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n) -> string
281 assign(string self, char const * __s, std::basic_string< char >::size_type __n) -> string
282 assign(string self, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
283 """
284 return _pcbnew.string_assign(self, *args)
285
286 def resize(self, *args):
287 r"""
288 resize(string self, std::basic_string< char >::size_type new_size)
289 resize(string self, std::basic_string< char >::size_type new_size, std::basic_string< char >::value_type x)
290 """
291 return _pcbnew.string_resize(self, *args)
292
293 def iterator(self):
294 r"""iterator(string self) -> SwigPyIterator"""
295 return _pcbnew.string_iterator(self)
296 def __iter__(self):
297 return self.iterator()
298
299 def __nonzero__(self):
300 r"""__nonzero__(string self) -> bool"""
301 return _pcbnew.string___nonzero__(self)
302
303 def __bool__(self):
304 r"""__bool__(string self) -> bool"""
305 return _pcbnew.string___bool__(self)
306
307 def __len__(self):
308 r"""__len__(string self) -> std::basic_string< char >::size_type"""
309 return _pcbnew.string___len__(self)
310
311 def __getslice__(self, i, j):
312 r"""__getslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j) -> string"""
313 return _pcbnew.string___getslice__(self, i, j)
314
315 def __setslice__(self, *args):
316 r"""
317 __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)
318 __setslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j, string v)
319 """
320 return _pcbnew.string___setslice__(self, *args)
321
322 def __delslice__(self, i, j):
323 r"""__delslice__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::difference_type j)"""
324 return _pcbnew.string___delslice__(self, i, j)
325
326 def __delitem__(self, *args):
327 r"""
328 __delitem__(string self, std::basic_string< char >::difference_type i)
329 __delitem__(string self, PySliceObject * slice)
330 """
331 return _pcbnew.string___delitem__(self, *args)
332
333 def __getitem__(self, *args):
334 r"""
335 __getitem__(string self, PySliceObject * slice) -> string
336 __getitem__(string self, std::basic_string< char >::difference_type i) -> std::basic_string< char >::value_type
337 """
338 return _pcbnew.string___getitem__(self, *args)
339
340 def __setitem__(self, *args):
341 r"""
342 __setitem__(string self, PySliceObject * slice, string v)
343 __setitem__(string self, PySliceObject * slice)
344 __setitem__(string self, std::basic_string< char >::difference_type i, std::basic_string< char >::value_type x)
345 """
346 return _pcbnew.string___setitem__(self, *args)
347
348 def insert(self, *args):
349 r"""
350 insert(string self, std::basic_string< char >::size_type __pos1, string __str) -> string
351 insert(string self, std::basic_string< char >::size_type __pos1, string __str, std::basic_string< char >::size_type __pos2, std::basic_string< char >::size_type __n) -> string
352 insert(string self, std::basic_string< char >::size_type __pos, char const * __s, std::basic_string< char >::size_type __n) -> string
353 insert(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, char __c) -> string
354 insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::value_type x) -> std::basic_string< char >::iterator
355 insert(string self, std::basic_string< char >::iterator pos, std::basic_string< char >::size_type n, std::basic_string< char >::value_type x)
356 insert(string self, std::basic_string< char >::iterator __p, std::basic_string< char >::size_type __n, char __c)
357 """
358 return _pcbnew.string_insert(self, *args)
359
360 def replace(self, *args):
361 r"""
362 replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n, string __str) -> string
363 replace(string self, std::basic_string< char >::size_type __pos1, std::basic_string< char >::size_type __n1, string __str, std::basic_string< char >::size_type __pos2, std::basic_string< char >::size_type __n2) -> string
364 replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n1, char const * __s, std::basic_string< char >::size_type __n2) -> string
365 replace(string self, std::basic_string< char >::size_type __pos, std::basic_string< char >::size_type __n1, std::basic_string< char >::size_type __n2, char __c) -> string
366 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, string __str) -> string
367 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __s, std::basic_string< char >::size_type __n) -> string
368 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, std::basic_string< char >::size_type __n, char __c) -> string
369 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, char const * __k1, char const * __k2) -> string
370 replace(string self, std::basic_string< char >::iterator __i1, std::basic_string< char >::iterator __i2, std::basic_string< char >::const_iterator __k1, std::basic_string< char >::const_iterator __k2) -> string
371 """
372 return _pcbnew.string_replace(self, *args)
373
374 def __iadd__(self, v):
375 r"""__iadd__(string self, string v) -> string"""
376 return _pcbnew.string___iadd__(self, v)
377
378 def __add__(self, v):
379 r"""__add__(string self, string v) -> string"""
380 return _pcbnew.string___add__(self, v)
381
382 def __radd__(self, v):
383 r"""__radd__(string self, string v) -> string"""
384 return _pcbnew.string___radd__(self, v)
385
386 def __str__(self):
387 r"""__str__(string self) -> string"""
388 return _pcbnew.string___str__(self)
389
390 def __rlshift__(self, out):
391 r"""__rlshift__(string self, std::basic_ostream< char,std::char_traits< char > > & out) -> std::basic_ostream< char,std::char_traits< char > > &"""
392 return _pcbnew.string___rlshift__(self, out)
393
394 def __eq__(self, v):
395 r"""__eq__(string self, string v) -> bool"""
396 return _pcbnew.string___eq__(self, v)
397
398 def __ne__(self, v):
399 r"""__ne__(string self, string v) -> bool"""
400 return _pcbnew.string___ne__(self, v)
401
402 def __gt__(self, v):
403 r"""__gt__(string self, string v) -> bool"""
404 return _pcbnew.string___gt__(self, v)
405
406 def __lt__(self, v):
407 r"""__lt__(string self, string v) -> bool"""
408 return _pcbnew.string___lt__(self, v)
409
410 def __ge__(self, v):
411 r"""__ge__(string self, string v) -> bool"""
412 return _pcbnew.string___ge__(self, v)
413
414 def __le__(self, v):
415 r"""__le__(string self, string v) -> bool"""
416 return _pcbnew.string___le__(self, v)
417 __swig_destroy__ = _pcbnew.delete_string
418
419# Register string in _pcbnew:
420_pcbnew.string_swigregister(string)
421cvar = _pcbnew.cvar
422string.npos = _pcbnew.cvar.string_npos
423
424SHARED_PTR_DISOWN = _pcbnew.SHARED_PTR_DISOWN
425
427 r"""Proxy of C++ KI_PARAM_ERROR class."""
428
429 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
430 __repr__ = _swig_repr
431
432 def __init__(self, *args):
433 r"""
434 __init__(KI_PARAM_ERROR self, wxString aMessage) -> KI_PARAM_ERROR
435 __init__(KI_PARAM_ERROR self) -> KI_PARAM_ERROR
436 """
437 _pcbnew.KI_PARAM_ERROR_swiginit(self, _pcbnew.new_KI_PARAM_ERROR(*args))
438
439 def What(self):
440 r"""What(KI_PARAM_ERROR self) -> wxString"""
441 return _pcbnew.KI_PARAM_ERROR_What(self)
442 __swig_destroy__ = _pcbnew.delete_KI_PARAM_ERROR
443
444# Register KI_PARAM_ERROR in _pcbnew:
445_pcbnew.KI_PARAM_ERROR_swigregister(KI_PARAM_ERROR)
446
448 r"""Proxy of C++ IO_ERROR class."""
449
450 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
451 __repr__ = _swig_repr
452
453 def __init__(self, *args):
454 r"""
455 __init__(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber) -> IO_ERROR
456 __init__(IO_ERROR self) -> IO_ERROR
457 """
458 _pcbnew.IO_ERROR_swiginit(self, _pcbnew.new_IO_ERROR(*args))
459
460 def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber):
461 r"""init(IO_ERROR self, wxString aProblem, char const * aThrowersFile, char const * aThrowersFunction, int aThrowersLineNumber)"""
462 return _pcbnew.IO_ERROR_init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
463
464 def Problem(self):
465 r"""Problem(IO_ERROR self) -> wxString"""
466 return _pcbnew.IO_ERROR_Problem(self)
467
468 def Where(self):
469 r"""Where(IO_ERROR self) -> wxString"""
470 return _pcbnew.IO_ERROR_Where(self)
471
472 def What(self):
473 r"""What(IO_ERROR self) -> wxString"""
474 return _pcbnew.IO_ERROR_What(self)
475 __swig_destroy__ = _pcbnew.delete_IO_ERROR
476
477# Register IO_ERROR in _pcbnew:
478_pcbnew.IO_ERROR_swigregister(IO_ERROR)
479
480
482 r"""wxSetDefaultPyEncoding(char const * encoding)"""
483 return _pcbnew.wxSetDefaultPyEncoding(encoding)
484
486 r"""wxGetDefaultPyEncoding() -> char const *"""
487 return _pcbnew.wxGetDefaultPyEncoding()
489 r"""Proxy of C++ wxRect class."""
490
491 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
492 __repr__ = _swig_repr
493
494 def __init__(self, *args):
495 r"""
496 __init__(wxRect self) -> wxRect
497 __init__(wxRect self, int xx, int yy, int ww, int hh) -> wxRect
498 __init__(wxRect self, wxPoint topLeft, wxPoint bottomRight) -> wxRect
499 __init__(wxRect self, wxPoint pt, wxSize size) -> wxRect
500 __init__(wxRect self, wxSize size) -> wxRect
501 """
502 _pcbnew.wxRect_swiginit(self, _pcbnew.new_wxRect(*args))
503
504 def GetX(self):
505 r"""GetX(wxRect self) -> int"""
506 return _pcbnew.wxRect_GetX(self)
507
508 def SetX(self, xx):
509 r"""SetX(wxRect self, int xx)"""
510 return _pcbnew.wxRect_SetX(self, xx)
511
512 def GetY(self):
513 r"""GetY(wxRect self) -> int"""
514 return _pcbnew.wxRect_GetY(self)
515
516 def SetY(self, yy):
517 r"""SetY(wxRect self, int yy)"""
518 return _pcbnew.wxRect_SetY(self, yy)
519
520 def GetWidth(self):
521 r"""GetWidth(wxRect self) -> int"""
522 return _pcbnew.wxRect_GetWidth(self)
523
524 def SetWidth(self, w):
525 r"""SetWidth(wxRect self, int w)"""
526 return _pcbnew.wxRect_SetWidth(self, w)
527
528 def GetHeight(self):
529 r"""GetHeight(wxRect self) -> int"""
530 return _pcbnew.wxRect_GetHeight(self)
531
532 def SetHeight(self, h):
533 r"""SetHeight(wxRect self, int h)"""
534 return _pcbnew.wxRect_SetHeight(self, h)
535
536 def GetPosition(self):
537 r"""GetPosition(wxRect self) -> wxPoint"""
538 return _pcbnew.wxRect_GetPosition(self)
539
540 def SetPosition(self, p):
541 r"""SetPosition(wxRect self, wxPoint p)"""
542 return _pcbnew.wxRect_SetPosition(self, p)
543 x = property(_pcbnew.wxRect_x_get, _pcbnew.wxRect_x_set, doc=r"""x : int""")
544 y = property(_pcbnew.wxRect_y_get, _pcbnew.wxRect_y_set, doc=r"""y : int""")
545 width = property(_pcbnew.wxRect_width_get, _pcbnew.wxRect_width_set, doc=r"""width : int""")
546 height = property(_pcbnew.wxRect_height_get, _pcbnew.wxRect_height_set, doc=r"""height : int""")
547
548 def Get(self):
549 r"""Get(wxRect self) -> PyObject *"""
550 return _pcbnew.wxRect_Get(self)
551
552
553 def __eq__(self,other):
554 return self.x==other.x and self.y==other.y and self.width==other.width and self.height==other.height
555 def __str__(self): return str(self.Get())
556 def __repr__(self): return 'wxRect'+str(self.Get())
557 def __len__(self): return len(self.Get())
558 def __getitem__(self, index): return self.Get()[index]
559 def __setitem__(self, index, val):
560 if index == 0: self.SetX(val)
561 elif index == 1: self.SetY(val)
562 elif index == 2: self.SetWidth(val)
563 elif index == 3: self.SetHeight(val)
564 else: raise IndexError
565 def __nonzero__(self): return self.Get() != (0,0,0,0)
566 __safe_for_unpickling__ = True
567
568 __swig_destroy__ = _pcbnew.delete_wxRect
569
570# Register wxRect in _pcbnew:
571_pcbnew.wxRect_swigregister(wxRect)
572
574 r"""Proxy of C++ wxSize class."""
575
576 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
577 __repr__ = _swig_repr
578 x = property(_pcbnew.wxSize_x_get, _pcbnew.wxSize_x_set, doc=r"""x : int""")
579 y = property(_pcbnew.wxSize_y_get, _pcbnew.wxSize_y_set, doc=r"""y : int""")
580
581 def __init__(self, *args):
582 r"""
583 __init__(wxSize self, int xx, int yy) -> wxSize
584 __init__(wxSize self, double xx, double yy) -> wxSize
585 """
586 _pcbnew.wxSize_swiginit(self, _pcbnew.new_wxSize(*args))
587
588 def Get(self):
589 r"""Get(wxSize self) -> PyObject *"""
590 return _pcbnew.wxSize_Get(self)
591 __swig_destroy__ = _pcbnew.delete_wxSize
592
593 def SetWidth(self, w):
594 r"""SetWidth(wxSize self, int w)"""
595 return _pcbnew.wxSize_SetWidth(self, w)
596
597 def SetHeight(self, h):
598 r"""SetHeight(wxSize self, int h)"""
599 return _pcbnew.wxSize_SetHeight(self, h)
600
601 def GetWidth(self):
602 r"""GetWidth(wxSize self) -> int"""
603 return _pcbnew.wxSize_GetWidth(self)
604
605 def GetHeight(self):
606 r"""GetHeight(wxSize self) -> int"""
607 return _pcbnew.wxSize_GetHeight(self)
608
609 def Scale(self,xscale,yscale):
610 return wxSize(self.x*xscale,self.y*yscale)
611 def __eq__(self,other):
612 return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
613 def __str__(self): return str(self.Get())
614 def __repr__(self): return 'wxSize'+str(self.Get())
615 def __len__(self): return len(self.Get())
616 def __getitem__(self, index): return self.Get()[index]
617 def __setitem__(self, index, val):
618 if index == 0: self.SetWidth(val)
619 elif index == 1: self.SetHeight(val)
620 else: raise IndexError
621 def __nonzero__(self): return self.Get() != (0,0)
622 __safe_for_unpickling__ = True
623
624
625
626# Register wxSize in _pcbnew:
627_pcbnew.wxSize_swigregister(wxSize)
628
630 r"""Proxy of C++ wxPoint class."""
631
632 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
633 __repr__ = _swig_repr
634 x = property(_pcbnew.wxPoint_x_get, _pcbnew.wxPoint_x_set, doc=r"""x : int""")
635 y = property(_pcbnew.wxPoint_y_get, _pcbnew.wxPoint_y_set, doc=r"""y : int""")
636
637 def __init__(self, *args):
638 r"""
639 __init__(wxPoint self, int xx, int yy) -> wxPoint
640 __init__(wxPoint self, double xx, double yy) -> wxPoint
641 """
642 _pcbnew.wxPoint_swiginit(self, _pcbnew.new_wxPoint(*args))
643 __swig_destroy__ = _pcbnew.delete_wxPoint
644
645 def __add__(self, pt):
646 r"""__add__(wxPoint self, wxPoint pt) -> wxPoint"""
647 return _pcbnew.wxPoint___add__(self, pt)
648
649 def __sub__(self, pt):
650 r"""__sub__(wxPoint self, wxPoint pt) -> wxPoint"""
651 return _pcbnew.wxPoint___sub__(self, pt)
652
653 def Set(self, x, y):
654 r"""Set(wxPoint self, long x, long y)"""
655 return _pcbnew.wxPoint_Set(self, x, y)
656
657 def Get(self):
658 r"""Get(wxPoint self) -> PyObject *"""
659 return _pcbnew.wxPoint_Get(self)
660
661 def __eq__(self,other): return (self.x==other.x and self.y==other.y)
662 def __ne__(self,other): return not (self==other)
663 def __str__(self): return str(self.Get())
664 def __repr__(self): return 'wxPoint'+str(self.Get())
665 def __len__(self): return len(self.Get())
666 def __getitem__(self, index): return self.Get()[index]
667 def __setitem__(self, index, val):
668 if index == 0:
669 self.x = val
670 elif index == 1:
671 self.y = val
672 else:
673 raise IndexError
674 def __nonzero__(self): return self.Get() != (0,0)
675
676
677
678# Register wxPoint in _pcbnew:
679_pcbnew.wxPoint_swigregister(wxPoint)
680
682 r"""Proxy of C++ wxString class."""
683
684 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
685 __repr__ = _swig_repr
686 __swig_destroy__ = _pcbnew.delete_wxString
687
688 def __str__(self):
689 r"""__str__(wxString self) -> PyObject *"""
690 return _pcbnew.wxString___str__(self)
691
692 def __repr__(self): return 'wxString(\'' + self.__str__() + '\')'
693
694
695 def __init__(self):
696 r"""__init__(wxString self) -> wxString"""
697 _pcbnew.wxString_swiginit(self, _pcbnew.new_wxString())
698
699# Register wxString in _pcbnew:
700_pcbnew.wxString_swigregister(wxString)
701
703 r"""Proxy of C++ std::vector< wxPoint > class."""
704
705 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
706 __repr__ = _swig_repr
707
708 def iterator(self):
709 r"""iterator(wxPoint_Vector self) -> SwigPyIterator"""
710 return _pcbnew.wxPoint_Vector_iterator(self)
711 def __iter__(self):
712 return self.iterator()
713
714 def __nonzero__(self):
715 r"""__nonzero__(wxPoint_Vector self) -> bool"""
716 return _pcbnew.wxPoint_Vector___nonzero__(self)
717
718 def __bool__(self):
719 r"""__bool__(wxPoint_Vector self) -> bool"""
720 return _pcbnew.wxPoint_Vector___bool__(self)
721
722 def __len__(self):
723 r"""__len__(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
724 return _pcbnew.wxPoint_Vector___len__(self)
725
726 def __getslice__(self, i, j):
727 r"""__getslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j) -> wxPoint_Vector"""
728 return _pcbnew.wxPoint_Vector___getslice__(self, i, j)
729
730 def __setslice__(self, *args):
731 r"""
732 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)
733 __setslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j, wxPoint_Vector v)
734 """
735 return _pcbnew.wxPoint_Vector___setslice__(self, *args)
736
737 def __delslice__(self, i, j):
738 r"""__delslice__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, std::vector< wxPoint >::difference_type j)"""
739 return _pcbnew.wxPoint_Vector___delslice__(self, i, j)
740
741 def __delitem__(self, *args):
742 r"""
743 __delitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i)
744 __delitem__(wxPoint_Vector self, PySliceObject * slice)
745 """
746 return _pcbnew.wxPoint_Vector___delitem__(self, *args)
747
748 def __getitem__(self, *args):
749 r"""
750 __getitem__(wxPoint_Vector self, PySliceObject * slice) -> wxPoint_Vector
751 __getitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i) -> wxPoint
752 """
753 return _pcbnew.wxPoint_Vector___getitem__(self, *args)
754
755 def __setitem__(self, *args):
756 r"""
757 __setitem__(wxPoint_Vector self, PySliceObject * slice, wxPoint_Vector v)
758 __setitem__(wxPoint_Vector self, PySliceObject * slice)
759 __setitem__(wxPoint_Vector self, std::vector< wxPoint >::difference_type i, wxPoint x)
760 """
761 return _pcbnew.wxPoint_Vector___setitem__(self, *args)
762
763 def pop(self):
764 r"""pop(wxPoint_Vector self) -> wxPoint"""
765 return _pcbnew.wxPoint_Vector_pop(self)
766
767 def append(self, x):
768 r"""append(wxPoint_Vector self, wxPoint x)"""
769 return _pcbnew.wxPoint_Vector_append(self, x)
770
771 def empty(self):
772 r"""empty(wxPoint_Vector self) -> bool"""
773 return _pcbnew.wxPoint_Vector_empty(self)
774
775 def size(self):
776 r"""size(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
777 return _pcbnew.wxPoint_Vector_size(self)
778
779 def swap(self, v):
780 r"""swap(wxPoint_Vector self, wxPoint_Vector v)"""
781 return _pcbnew.wxPoint_Vector_swap(self, v)
782
783 def begin(self):
784 r"""begin(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
785 return _pcbnew.wxPoint_Vector_begin(self)
786
787 def end(self):
788 r"""end(wxPoint_Vector self) -> std::vector< wxPoint >::iterator"""
789 return _pcbnew.wxPoint_Vector_end(self)
790
791 def rbegin(self):
792 r"""rbegin(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
793 return _pcbnew.wxPoint_Vector_rbegin(self)
794
795 def rend(self):
796 r"""rend(wxPoint_Vector self) -> std::vector< wxPoint >::reverse_iterator"""
797 return _pcbnew.wxPoint_Vector_rend(self)
798
799 def clear(self):
800 r"""clear(wxPoint_Vector self)"""
801 return _pcbnew.wxPoint_Vector_clear(self)
802
803 def get_allocator(self):
804 r"""get_allocator(wxPoint_Vector self) -> std::vector< wxPoint >::allocator_type"""
805 return _pcbnew.wxPoint_Vector_get_allocator(self)
806
807 def pop_back(self):
808 r"""pop_back(wxPoint_Vector self)"""
809 return _pcbnew.wxPoint_Vector_pop_back(self)
810
811 def erase(self, *args):
812 r"""
813 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator pos) -> std::vector< wxPoint >::iterator
814 erase(wxPoint_Vector self, std::vector< wxPoint >::iterator first, std::vector< wxPoint >::iterator last) -> std::vector< wxPoint >::iterator
815 """
816 return _pcbnew.wxPoint_Vector_erase(self, *args)
817
818 def __init__(self, *args):
819 r"""
820 __init__(wxPoint_Vector self) -> wxPoint_Vector
821 __init__(wxPoint_Vector self, wxPoint_Vector other) -> wxPoint_Vector
822 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size) -> wxPoint_Vector
823 __init__(wxPoint_Vector self, std::vector< wxPoint >::size_type size, wxPoint value) -> wxPoint_Vector
824 """
825 _pcbnew.wxPoint_Vector_swiginit(self, _pcbnew.new_wxPoint_Vector(*args))
826
827 def push_back(self, x):
828 r"""push_back(wxPoint_Vector self, wxPoint x)"""
829 return _pcbnew.wxPoint_Vector_push_back(self, x)
830
831 def front(self):
832 r"""front(wxPoint_Vector self) -> wxPoint"""
833 return _pcbnew.wxPoint_Vector_front(self)
834
835 def back(self):
836 r"""back(wxPoint_Vector self) -> wxPoint"""
837 return _pcbnew.wxPoint_Vector_back(self)
838
839 def assign(self, n, x):
840 r"""assign(wxPoint_Vector self, std::vector< wxPoint >::size_type n, wxPoint x)"""
841 return _pcbnew.wxPoint_Vector_assign(self, n, x)
842
843 def resize(self, *args):
844 r"""
845 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size)
846 resize(wxPoint_Vector self, std::vector< wxPoint >::size_type new_size, wxPoint x)
847 """
848 return _pcbnew.wxPoint_Vector_resize(self, *args)
849
850 def insert(self, *args):
851 r"""
852 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, wxPoint x) -> std::vector< wxPoint >::iterator
853 insert(wxPoint_Vector self, std::vector< wxPoint >::iterator pos, std::vector< wxPoint >::size_type n, wxPoint x)
854 """
855 return _pcbnew.wxPoint_Vector_insert(self, *args)
856
857 def reserve(self, n):
858 r"""reserve(wxPoint_Vector self, std::vector< wxPoint >::size_type n)"""
859 return _pcbnew.wxPoint_Vector_reserve(self, n)
860
861 def capacity(self):
862 r"""capacity(wxPoint_Vector self) -> std::vector< wxPoint >::size_type"""
863 return _pcbnew.wxPoint_Vector_capacity(self)
864 __swig_destroy__ = _pcbnew.delete_wxPoint_Vector
865
866# Register wxPoint_Vector in _pcbnew:
867_pcbnew.wxPoint_Vector_swigregister(wxPoint_Vector)
868
870 r"""Proxy of C++ std::vector< enum PCB_LAYER_ID > class."""
871
872 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
873 __repr__ = _swig_repr
874
875 def iterator(self):
876 r"""iterator(base_seqVect self) -> SwigPyIterator"""
877 return _pcbnew.base_seqVect_iterator(self)
878 def __iter__(self):
879 return self.iterator()
880
881 def __nonzero__(self):
882 r"""__nonzero__(base_seqVect self) -> bool"""
883 return _pcbnew.base_seqVect___nonzero__(self)
884
885 def __bool__(self):
886 r"""__bool__(base_seqVect self) -> bool"""
887 return _pcbnew.base_seqVect___bool__(self)
888
889 def __len__(self):
890 r"""__len__(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
891 return _pcbnew.base_seqVect___len__(self)
892
893 def __getslice__(self, i, j):
894 r"""__getslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j) -> base_seqVect"""
895 return _pcbnew.base_seqVect___getslice__(self, i, j)
896
897 def __setslice__(self, *args):
898 r"""
899 __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)
900 __setslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j, base_seqVect v)
901 """
902 return _pcbnew.base_seqVect___setslice__(self, *args)
903
904 def __delslice__(self, i, j):
905 r"""__delslice__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::difference_type j)"""
906 return _pcbnew.base_seqVect___delslice__(self, i, j)
907
908 def __delitem__(self, *args):
909 r"""
910 __delitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i)
911 __delitem__(base_seqVect self, PySliceObject * slice)
912 """
913 return _pcbnew.base_seqVect___delitem__(self, *args)
914
915 def __getitem__(self, *args):
916 r"""
917 __getitem__(base_seqVect self, PySliceObject * slice) -> base_seqVect
918 __getitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i) -> std::vector< enum PCB_LAYER_ID >::value_type const &
919 """
920 return _pcbnew.base_seqVect___getitem__(self, *args)
921
922 def __setitem__(self, *args):
923 r"""
924 __setitem__(base_seqVect self, PySliceObject * slice, base_seqVect v)
925 __setitem__(base_seqVect self, PySliceObject * slice)
926 __setitem__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::difference_type i, std::vector< enum PCB_LAYER_ID >::value_type const & x)
927 """
928 return _pcbnew.base_seqVect___setitem__(self, *args)
929
930 def pop(self):
931 r"""pop(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type"""
932 return _pcbnew.base_seqVect_pop(self)
933
934 def append(self, x):
935 r"""append(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
936 return _pcbnew.base_seqVect_append(self, x)
937
938 def empty(self):
939 r"""empty(base_seqVect self) -> bool"""
940 return _pcbnew.base_seqVect_empty(self)
941
942 def size(self):
943 r"""size(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
944 return _pcbnew.base_seqVect_size(self)
945
946 def swap(self, v):
947 r"""swap(base_seqVect self, base_seqVect v)"""
948 return _pcbnew.base_seqVect_swap(self, v)
949
950 def begin(self):
951 r"""begin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
952 return _pcbnew.base_seqVect_begin(self)
953
954 def end(self):
955 r"""end(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::iterator"""
956 return _pcbnew.base_seqVect_end(self)
957
958 def rbegin(self):
959 r"""rbegin(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
960 return _pcbnew.base_seqVect_rbegin(self)
961
962 def rend(self):
963 r"""rend(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::reverse_iterator"""
964 return _pcbnew.base_seqVect_rend(self)
965
966 def clear(self):
967 r"""clear(base_seqVect self)"""
968 return _pcbnew.base_seqVect_clear(self)
969
970 def get_allocator(self):
971 r"""get_allocator(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::allocator_type"""
972 return _pcbnew.base_seqVect_get_allocator(self)
973
974 def pop_back(self):
975 r"""pop_back(base_seqVect self)"""
976 return _pcbnew.base_seqVect_pop_back(self)
977
978 def erase(self, *args):
979 r"""
980 erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos) -> std::vector< enum PCB_LAYER_ID >::iterator
981 erase(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator first, std::vector< enum PCB_LAYER_ID >::iterator last) -> std::vector< enum PCB_LAYER_ID >::iterator
982 """
983 return _pcbnew.base_seqVect_erase(self, *args)
984
985 def __init__(self, *args):
986 r"""
987 __init__(base_seqVect self) -> base_seqVect
988 __init__(base_seqVect self, base_seqVect other) -> base_seqVect
989 __init__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type size) -> base_seqVect
990 __init__(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type size, std::vector< enum PCB_LAYER_ID >::value_type const & value) -> base_seqVect
991 """
992 _pcbnew.base_seqVect_swiginit(self, _pcbnew.new_base_seqVect(*args))
993
994 def push_back(self, x):
995 r"""push_back(base_seqVect self, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
996 return _pcbnew.base_seqVect_push_back(self, x)
997
998 def front(self):
999 r"""front(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
1000 return _pcbnew.base_seqVect_front(self)
1001
1002 def back(self):
1003 r"""back(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::value_type const &"""
1004 return _pcbnew.base_seqVect_back(self)
1005
1006 def assign(self, n, x):
1007 r"""assign(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)"""
1008 return _pcbnew.base_seqVect_assign(self, n, x)
1009
1010 def resize(self, *args):
1011 r"""
1012 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size)
1013 resize(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type new_size, std::vector< enum PCB_LAYER_ID >::value_type const & x)
1014 """
1015 return _pcbnew.base_seqVect_resize(self, *args)
1016
1017 def insert(self, *args):
1018 r"""
1019 insert(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos, std::vector< enum PCB_LAYER_ID >::value_type const & x) -> std::vector< enum PCB_LAYER_ID >::iterator
1020 insert(base_seqVect self, std::vector< enum PCB_LAYER_ID >::iterator pos, std::vector< enum PCB_LAYER_ID >::size_type n, std::vector< enum PCB_LAYER_ID >::value_type const & x)
1021 """
1022 return _pcbnew.base_seqVect_insert(self, *args)
1023
1024 def reserve(self, n):
1025 r"""reserve(base_seqVect self, std::vector< enum PCB_LAYER_ID >::size_type n)"""
1026 return _pcbnew.base_seqVect_reserve(self, n)
1027
1028 def capacity(self):
1029 r"""capacity(base_seqVect self) -> std::vector< enum PCB_LAYER_ID >::size_type"""
1030 return _pcbnew.base_seqVect_capacity(self)
1031 __swig_destroy__ = _pcbnew.delete_base_seqVect
1032
1033# Register base_seqVect in _pcbnew:
1034_pcbnew.base_seqVect_swigregister(base_seqVect)
1035
1036SKETCH = _pcbnew.SKETCH
1037
1038FILLED = _pcbnew.FILLED
1039
1041 r"""Proxy of C++ KIID class."""
1042
1043 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1044 __repr__ = _swig_repr
1045
1046 def __init__(self, *args):
1047 r"""
1048 __init__(KIID self) -> KIID
1049 __init__(KIID self, int null) -> KIID
1050 __init__(KIID self, string aString) -> KIID
1051 __init__(KIID self, char const * aString) -> KIID
1052 __init__(KIID self, wxString aString) -> KIID
1053 __init__(KIID self, timestamp_t aTimestamp) -> KIID
1054 """
1055 _pcbnew.KIID_swiginit(self, _pcbnew.new_KIID(*args))
1056
1057 def Clone(self, aUUID):
1058 r"""Clone(KIID self, KIID aUUID)"""
1059 return _pcbnew.KIID_Clone(self, aUUID)
1060
1061 def Hash(self):
1062 r"""Hash(KIID self) -> size_t"""
1063 return _pcbnew.KIID_Hash(self)
1064
1066 r"""IsLegacyTimestamp(KIID self) -> bool"""
1067 return _pcbnew.KIID_IsLegacyTimestamp(self)
1068
1070 r"""AsLegacyTimestamp(KIID self) -> timestamp_t"""
1071 return _pcbnew.KIID_AsLegacyTimestamp(self)
1072
1073 def AsString(self):
1074 r"""AsString(KIID self) -> wxString"""
1075 return _pcbnew.KIID_AsString(self)
1076
1078 r"""AsLegacyTimestampString(KIID self) -> wxString"""
1079 return _pcbnew.KIID_AsLegacyTimestampString(self)
1080
1081 @staticmethod
1082 def SniffTest(aCandidate):
1083 r"""SniffTest(wxString aCandidate) -> bool"""
1084 return _pcbnew.KIID_SniffTest(aCandidate)
1085
1086 @staticmethod
1087 def CreateNilUuids(aNil=True):
1088 r"""CreateNilUuids(bool aNil=True)"""
1089 return _pcbnew.KIID_CreateNilUuids(aNil)
1090
1091 @staticmethod
1092 def SeedGenerator(aSeed):
1093 r"""SeedGenerator(unsigned int aSeed)"""
1094 return _pcbnew.KIID_SeedGenerator(aSeed)
1095
1097 r"""ConvertTimestampToUuid(KIID self)"""
1098 return _pcbnew.KIID_ConvertTimestampToUuid(self)
1099
1100 def Increment(self):
1101 r"""Increment(KIID self)"""
1102 return _pcbnew.KIID_Increment(self)
1103
1104 def __eq__(self, rhs):
1105 r"""__eq__(KIID self, KIID rhs) -> bool"""
1106 return _pcbnew.KIID___eq__(self, rhs)
1107
1108 def __ne__(self, rhs):
1109 r"""__ne__(KIID self, KIID rhs) -> bool"""
1110 return _pcbnew.KIID___ne__(self, rhs)
1111
1112 def __lt__(self, rhs):
1113 r"""__lt__(KIID self, KIID rhs) -> bool"""
1114 return _pcbnew.KIID___lt__(self, rhs)
1115
1116 def __gt__(self, rhs):
1117 r"""__gt__(KIID self, KIID rhs) -> bool"""
1118 return _pcbnew.KIID___gt__(self, rhs)
1119 __swig_destroy__ = _pcbnew.delete_KIID
1120
1121# Register KIID in _pcbnew:
1122_pcbnew.KIID_swigregister(KIID)
1123
1124def KIID_SniffTest(aCandidate):
1125 r"""KIID_SniffTest(wxString aCandidate) -> bool"""
1126 return _pcbnew.KIID_SniffTest(aCandidate)
1127
1128def KIID_CreateNilUuids(aNil=True):
1129 r"""KIID_CreateNilUuids(bool aNil=True)"""
1130 return _pcbnew.KIID_CreateNilUuids(aNil)
1131
1133 r"""KIID_SeedGenerator(unsigned int aSeed)"""
1134 return _pcbnew.KIID_SeedGenerator(aSeed)
1135
1136
1138 r"""NilUuid() -> KIID"""
1139 return _pcbnew.NilUuid()
1141 r"""Proxy of C++ std::vector< KIID > class."""
1142
1143 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1144 __repr__ = _swig_repr
1145
1146 def iterator(self):
1147 r"""iterator(KIID_VECT_LIST self) -> SwigPyIterator"""
1148 return _pcbnew.KIID_VECT_LIST_iterator(self)
1149 def __iter__(self):
1150 return self.iterator()
1151
1152 def __nonzero__(self):
1153 r"""__nonzero__(KIID_VECT_LIST self) -> bool"""
1154 return _pcbnew.KIID_VECT_LIST___nonzero__(self)
1155
1156 def __bool__(self):
1157 r"""__bool__(KIID_VECT_LIST self) -> bool"""
1158 return _pcbnew.KIID_VECT_LIST___bool__(self)
1159
1160 def __len__(self):
1161 r"""__len__(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1162 return _pcbnew.KIID_VECT_LIST___len__(self)
1163
1164 def __getslice__(self, i, j):
1165 r"""__getslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j) -> KIID_VECT_LIST"""
1166 return _pcbnew.KIID_VECT_LIST___getslice__(self, i, j)
1167
1168 def __setslice__(self, *args):
1169 r"""
1170 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)
1171 __setslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j, KIID_VECT_LIST v)
1172 """
1173 return _pcbnew.KIID_VECT_LIST___setslice__(self, *args)
1174
1175 def __delslice__(self, i, j):
1176 r"""__delslice__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, std::vector< KIID >::difference_type j)"""
1177 return _pcbnew.KIID_VECT_LIST___delslice__(self, i, j)
1178
1179 def __delitem__(self, *args):
1180 r"""
1181 __delitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i)
1182 __delitem__(KIID_VECT_LIST self, PySliceObject * slice)
1183 """
1184 return _pcbnew.KIID_VECT_LIST___delitem__(self, *args)
1185
1186 def __getitem__(self, *args):
1187 r"""
1188 __getitem__(KIID_VECT_LIST self, PySliceObject * slice) -> KIID_VECT_LIST
1189 __getitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i) -> KIID
1190 """
1191 return _pcbnew.KIID_VECT_LIST___getitem__(self, *args)
1192
1193 def __setitem__(self, *args):
1194 r"""
1195 __setitem__(KIID_VECT_LIST self, PySliceObject * slice, KIID_VECT_LIST v)
1196 __setitem__(KIID_VECT_LIST self, PySliceObject * slice)
1197 __setitem__(KIID_VECT_LIST self, std::vector< KIID >::difference_type i, KIID x)
1198 """
1199 return _pcbnew.KIID_VECT_LIST___setitem__(self, *args)
1200
1201 def pop(self):
1202 r"""pop(KIID_VECT_LIST self) -> KIID"""
1203 return _pcbnew.KIID_VECT_LIST_pop(self)
1204
1205 def append(self, x):
1206 r"""append(KIID_VECT_LIST self, KIID x)"""
1207 return _pcbnew.KIID_VECT_LIST_append(self, x)
1208
1209 def empty(self):
1210 r"""empty(KIID_VECT_LIST self) -> bool"""
1211 return _pcbnew.KIID_VECT_LIST_empty(self)
1212
1213 def size(self):
1214 r"""size(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1215 return _pcbnew.KIID_VECT_LIST_size(self)
1216
1217 def swap(self, v):
1218 r"""swap(KIID_VECT_LIST self, KIID_VECT_LIST v)"""
1219 return _pcbnew.KIID_VECT_LIST_swap(self, v)
1220
1221 def begin(self):
1222 r"""begin(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1223 return _pcbnew.KIID_VECT_LIST_begin(self)
1224
1225 def end(self):
1226 r"""end(KIID_VECT_LIST self) -> std::vector< KIID >::iterator"""
1227 return _pcbnew.KIID_VECT_LIST_end(self)
1228
1229 def rbegin(self):
1230 r"""rbegin(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1231 return _pcbnew.KIID_VECT_LIST_rbegin(self)
1232
1233 def rend(self):
1234 r"""rend(KIID_VECT_LIST self) -> std::vector< KIID >::reverse_iterator"""
1235 return _pcbnew.KIID_VECT_LIST_rend(self)
1236
1237 def clear(self):
1238 r"""clear(KIID_VECT_LIST self)"""
1239 return _pcbnew.KIID_VECT_LIST_clear(self)
1240
1241 def get_allocator(self):
1242 r"""get_allocator(KIID_VECT_LIST self) -> std::vector< KIID >::allocator_type"""
1243 return _pcbnew.KIID_VECT_LIST_get_allocator(self)
1244
1245 def pop_back(self):
1246 r"""pop_back(KIID_VECT_LIST self)"""
1247 return _pcbnew.KIID_VECT_LIST_pop_back(self)
1248
1249 def erase(self, *args):
1250 r"""
1251 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator pos) -> std::vector< KIID >::iterator
1252 erase(KIID_VECT_LIST self, std::vector< KIID >::iterator first, std::vector< KIID >::iterator last) -> std::vector< KIID >::iterator
1253 """
1254 return _pcbnew.KIID_VECT_LIST_erase(self, *args)
1255
1256 def __init__(self, *args):
1257 r"""
1258 __init__(KIID_VECT_LIST self) -> KIID_VECT_LIST
1259 __init__(KIID_VECT_LIST self, KIID_VECT_LIST other) -> KIID_VECT_LIST
1260 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size) -> KIID_VECT_LIST
1261 __init__(KIID_VECT_LIST self, std::vector< KIID >::size_type size, KIID value) -> KIID_VECT_LIST
1262 """
1263 _pcbnew.KIID_VECT_LIST_swiginit(self, _pcbnew.new_KIID_VECT_LIST(*args))
1264
1265 def push_back(self, x):
1266 r"""push_back(KIID_VECT_LIST self, KIID x)"""
1267 return _pcbnew.KIID_VECT_LIST_push_back(self, x)
1268
1269 def front(self):
1270 r"""front(KIID_VECT_LIST self) -> KIID"""
1271 return _pcbnew.KIID_VECT_LIST_front(self)
1272
1273 def back(self):
1274 r"""back(KIID_VECT_LIST self) -> KIID"""
1275 return _pcbnew.KIID_VECT_LIST_back(self)
1276
1277 def assign(self, n, x):
1278 r"""assign(KIID_VECT_LIST self, std::vector< KIID >::size_type n, KIID x)"""
1279 return _pcbnew.KIID_VECT_LIST_assign(self, n, x)
1280
1281 def resize(self, *args):
1282 r"""
1283 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size)
1284 resize(KIID_VECT_LIST self, std::vector< KIID >::size_type new_size, KIID x)
1285 """
1286 return _pcbnew.KIID_VECT_LIST_resize(self, *args)
1287
1288 def insert(self, *args):
1289 r"""
1290 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, KIID x) -> std::vector< KIID >::iterator
1291 insert(KIID_VECT_LIST self, std::vector< KIID >::iterator pos, std::vector< KIID >::size_type n, KIID x)
1292 """
1293 return _pcbnew.KIID_VECT_LIST_insert(self, *args)
1294
1295 def reserve(self, n):
1296 r"""reserve(KIID_VECT_LIST self, std::vector< KIID >::size_type n)"""
1297 return _pcbnew.KIID_VECT_LIST_reserve(self, n)
1298
1299 def capacity(self):
1300 r"""capacity(KIID_VECT_LIST self) -> std::vector< KIID >::size_type"""
1301 return _pcbnew.KIID_VECT_LIST_capacity(self)
1302 __swig_destroy__ = _pcbnew.delete_KIID_VECT_LIST
1303
1304# Register KIID_VECT_LIST in _pcbnew:
1305_pcbnew.KIID_VECT_LIST_swigregister(KIID_VECT_LIST)
1306
1308 r"""Proxy of C++ KIID_PATH class."""
1309
1310 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1311 __repr__ = _swig_repr
1312
1313 def __init__(self, *args):
1314 r"""
1315 __init__(KIID_PATH self) -> KIID_PATH
1316 __init__(KIID_PATH self, wxString aString) -> KIID_PATH
1317 """
1318 _pcbnew.KIID_PATH_swiginit(self, _pcbnew.new_KIID_PATH(*args))
1319
1320 def MakeRelativeTo(self, aPath):
1321 r"""MakeRelativeTo(KIID_PATH self, KIID_PATH aPath) -> bool"""
1322 return _pcbnew.KIID_PATH_MakeRelativeTo(self, aPath)
1323
1324 def EndsWith(self, aPath):
1325 r"""EndsWith(KIID_PATH self, KIID_PATH aPath) -> bool"""
1326 return _pcbnew.KIID_PATH_EndsWith(self, aPath)
1327
1328 def AsString(self):
1329 r"""AsString(KIID_PATH self) -> wxString"""
1330 return _pcbnew.KIID_PATH_AsString(self)
1331
1332 def __eq__(self, rhs):
1333 r"""__eq__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1334 return _pcbnew.KIID_PATH___eq__(self, rhs)
1335
1336 def __lt__(self, rhs):
1337 r"""__lt__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1338 return _pcbnew.KIID_PATH___lt__(self, rhs)
1339
1340 def __gt__(self, rhs):
1341 r"""__gt__(KIID_PATH self, KIID_PATH rhs) -> bool"""
1342 return _pcbnew.KIID_PATH___gt__(self, rhs)
1343
1344 def __iadd__(self, aRhs):
1345 r"""__iadd__(KIID_PATH self, KIID_PATH aRhs) -> KIID_PATH"""
1346 return _pcbnew.KIID_PATH___iadd__(self, aRhs)
1347 __swig_destroy__ = _pcbnew.delete_KIID_PATH
1348
1349# Register KIID_PATH in _pcbnew:
1350_pcbnew.KIID_PATH_swigregister(KIID_PATH)
1351
1353 r"""Proxy of C++ KIID_NIL_SET_RESET class."""
1354
1355 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1356 __repr__ = _swig_repr
1357
1358 def __init__(self):
1359 r"""__init__(KIID_NIL_SET_RESET self) -> KIID_NIL_SET_RESET"""
1360 _pcbnew.KIID_NIL_SET_RESET_swiginit(self, _pcbnew.new_KIID_NIL_SET_RESET())
1361 __swig_destroy__ = _pcbnew.delete_KIID_NIL_SET_RESET
1362
1363# Register KIID_NIL_SET_RESET in _pcbnew:
1364_pcbnew.KIID_NIL_SET_RESET_swigregister(KIID_NIL_SET_RESET)
1365
1366NOT_USED = _pcbnew.NOT_USED
1367
1368TYPE_NOT_INIT = _pcbnew.TYPE_NOT_INIT
1369
1370PCB_T = _pcbnew.PCB_T
1371
1372SCREEN_T = _pcbnew.SCREEN_T
1373
1374PCB_FOOTPRINT_T = _pcbnew.PCB_FOOTPRINT_T
1375
1376PCB_PAD_T = _pcbnew.PCB_PAD_T
1377
1378PCB_SHAPE_T = _pcbnew.PCB_SHAPE_T
1379
1380PCB_REFERENCE_IMAGE_T = _pcbnew.PCB_REFERENCE_IMAGE_T
1381
1382PCB_FIELD_T = _pcbnew.PCB_FIELD_T
1383
1384PCB_GENERATOR_T = _pcbnew.PCB_GENERATOR_T
1385
1386PCB_TEXT_T = _pcbnew.PCB_TEXT_T
1387
1388PCB_TEXTBOX_T = _pcbnew.PCB_TEXTBOX_T
1389
1390PCB_TRACE_T = _pcbnew.PCB_TRACE_T
1391
1392PCB_VIA_T = _pcbnew.PCB_VIA_T
1393
1394PCB_ARC_T = _pcbnew.PCB_ARC_T
1395
1396PCB_MARKER_T = _pcbnew.PCB_MARKER_T
1397
1398PCB_DIMENSION_T = _pcbnew.PCB_DIMENSION_T
1399
1400PCB_DIM_ALIGNED_T = _pcbnew.PCB_DIM_ALIGNED_T
1401
1402PCB_DIM_LEADER_T = _pcbnew.PCB_DIM_LEADER_T
1403
1404PCB_DIM_CENTER_T = _pcbnew.PCB_DIM_CENTER_T
1405
1406PCB_DIM_RADIAL_T = _pcbnew.PCB_DIM_RADIAL_T
1407
1408PCB_DIM_ORTHOGONAL_T = _pcbnew.PCB_DIM_ORTHOGONAL_T
1409
1410PCB_TARGET_T = _pcbnew.PCB_TARGET_T
1411
1412PCB_ZONE_T = _pcbnew.PCB_ZONE_T
1413
1414PCB_ITEM_LIST_T = _pcbnew.PCB_ITEM_LIST_T
1415
1416PCB_NETINFO_T = _pcbnew.PCB_NETINFO_T
1417
1418PCB_GROUP_T = _pcbnew.PCB_GROUP_T
1419
1420PCB_FIELD_LOCATE_REFERENCE_T = _pcbnew.PCB_FIELD_LOCATE_REFERENCE_T
1421
1422PCB_FIELD_LOCATE_VALUE_T = _pcbnew.PCB_FIELD_LOCATE_VALUE_T
1423
1424PCB_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.PCB_FIELD_LOCATE_FOOTPRINT_T
1425
1426PCB_FIELD_LOCATE_DATASHEET_T = _pcbnew.PCB_FIELD_LOCATE_DATASHEET_T
1427
1428PCB_LOCATE_STDVIA_T = _pcbnew.PCB_LOCATE_STDVIA_T
1429
1430PCB_LOCATE_UVIA_T = _pcbnew.PCB_LOCATE_UVIA_T
1431
1432PCB_LOCATE_BBVIA_T = _pcbnew.PCB_LOCATE_BBVIA_T
1433
1434PCB_LOCATE_TEXT_T = _pcbnew.PCB_LOCATE_TEXT_T
1435
1436PCB_LOCATE_HOLE_T = _pcbnew.PCB_LOCATE_HOLE_T
1437
1438PCB_LOCATE_PTH_T = _pcbnew.PCB_LOCATE_PTH_T
1439
1440PCB_LOCATE_NPTH_T = _pcbnew.PCB_LOCATE_NPTH_T
1441
1442PCB_LOCATE_BOARD_EDGE_T = _pcbnew.PCB_LOCATE_BOARD_EDGE_T
1443
1444PCB_SHAPE_LOCATE_SEGMENT_T = _pcbnew.PCB_SHAPE_LOCATE_SEGMENT_T
1445
1446PCB_SHAPE_LOCATE_RECT_T = _pcbnew.PCB_SHAPE_LOCATE_RECT_T
1447
1448PCB_SHAPE_LOCATE_CIRCLE_T = _pcbnew.PCB_SHAPE_LOCATE_CIRCLE_T
1449
1450PCB_SHAPE_LOCATE_ARC_T = _pcbnew.PCB_SHAPE_LOCATE_ARC_T
1451
1452PCB_SHAPE_LOCATE_POLY_T = _pcbnew.PCB_SHAPE_LOCATE_POLY_T
1453
1454PCB_SHAPE_LOCATE_BEZIER_T = _pcbnew.PCB_SHAPE_LOCATE_BEZIER_T
1455
1456SCH_MARKER_T = _pcbnew.SCH_MARKER_T
1457
1458SCH_JUNCTION_T = _pcbnew.SCH_JUNCTION_T
1459
1460SCH_NO_CONNECT_T = _pcbnew.SCH_NO_CONNECT_T
1461
1462SCH_BUS_WIRE_ENTRY_T = _pcbnew.SCH_BUS_WIRE_ENTRY_T
1463
1464SCH_BUS_BUS_ENTRY_T = _pcbnew.SCH_BUS_BUS_ENTRY_T
1465
1466SCH_LINE_T = _pcbnew.SCH_LINE_T
1467
1468SCH_SHAPE_T = _pcbnew.SCH_SHAPE_T
1469
1470SCH_BITMAP_T = _pcbnew.SCH_BITMAP_T
1471
1472SCH_TEXTBOX_T = _pcbnew.SCH_TEXTBOX_T
1473
1474SCH_TEXT_T = _pcbnew.SCH_TEXT_T
1475
1476SCH_LABEL_T = _pcbnew.SCH_LABEL_T
1477
1478SCH_GLOBAL_LABEL_T = _pcbnew.SCH_GLOBAL_LABEL_T
1479
1480SCH_HIER_LABEL_T = _pcbnew.SCH_HIER_LABEL_T
1481
1482SCH_DIRECTIVE_LABEL_T = _pcbnew.SCH_DIRECTIVE_LABEL_T
1483
1484SCH_FIELD_T = _pcbnew.SCH_FIELD_T
1485
1486SCH_SYMBOL_T = _pcbnew.SCH_SYMBOL_T
1487
1488SCH_SHEET_PIN_T = _pcbnew.SCH_SHEET_PIN_T
1489
1490SCH_SHEET_T = _pcbnew.SCH_SHEET_T
1491
1492SCH_PIN_T = _pcbnew.SCH_PIN_T
1493
1494SCH_FIELD_LOCATE_REFERENCE_T = _pcbnew.SCH_FIELD_LOCATE_REFERENCE_T
1495
1496SCH_FIELD_LOCATE_VALUE_T = _pcbnew.SCH_FIELD_LOCATE_VALUE_T
1497
1498SCH_FIELD_LOCATE_FOOTPRINT_T = _pcbnew.SCH_FIELD_LOCATE_FOOTPRINT_T
1499
1500SCH_FIELD_LOCATE_DATASHEET_T = _pcbnew.SCH_FIELD_LOCATE_DATASHEET_T
1501
1502SCH_ITEM_LOCATE_WIRE_T = _pcbnew.SCH_ITEM_LOCATE_WIRE_T
1503
1504SCH_ITEM_LOCATE_BUS_T = _pcbnew.SCH_ITEM_LOCATE_BUS_T
1505
1506SCH_ITEM_LOCATE_GRAPHIC_LINE_T = _pcbnew.SCH_ITEM_LOCATE_GRAPHIC_LINE_T
1507
1508SCH_LABEL_LOCATE_ANY_T = _pcbnew.SCH_LABEL_LOCATE_ANY_T
1509
1510SCH_LABEL_LOCATE_WIRE_T = _pcbnew.SCH_LABEL_LOCATE_WIRE_T
1511
1512SCH_LABEL_LOCATE_BUS_T = _pcbnew.SCH_LABEL_LOCATE_BUS_T
1513
1514SCH_SYMBOL_LOCATE_POWER_T = _pcbnew.SCH_SYMBOL_LOCATE_POWER_T
1515
1516SCH_LOCATE_ANY_T = _pcbnew.SCH_LOCATE_ANY_T
1517
1518SCH_SCREEN_T = _pcbnew.SCH_SCREEN_T
1519
1520SCHEMATIC_T = _pcbnew.SCHEMATIC_T
1521
1522LIB_SYMBOL_T = _pcbnew.LIB_SYMBOL_T
1523
1524LIB_SHAPE_T = _pcbnew.LIB_SHAPE_T
1525
1526LIB_TEXT_T = _pcbnew.LIB_TEXT_T
1527
1528LIB_TEXTBOX_T = _pcbnew.LIB_TEXTBOX_T
1529
1530LIB_PIN_T = _pcbnew.LIB_PIN_T
1531
1532LIB_FIELD_T = _pcbnew.LIB_FIELD_T
1533
1534GERBER_LAYOUT_T = _pcbnew.GERBER_LAYOUT_T
1535
1536GERBER_DRAW_ITEM_T = _pcbnew.GERBER_DRAW_ITEM_T
1537
1538GERBER_IMAGE_T = _pcbnew.GERBER_IMAGE_T
1539
1540WSG_LINE_T = _pcbnew.WSG_LINE_T
1541
1542WSG_RECT_T = _pcbnew.WSG_RECT_T
1543
1544WSG_POLY_T = _pcbnew.WSG_POLY_T
1545
1546WSG_TEXT_T = _pcbnew.WSG_TEXT_T
1547
1548WSG_BITMAP_T = _pcbnew.WSG_BITMAP_T
1549
1550WSG_PAGE_T = _pcbnew.WSG_PAGE_T
1551
1552WS_PROXY_UNDO_ITEM_T = _pcbnew.WS_PROXY_UNDO_ITEM_T
1553
1554WS_PROXY_UNDO_ITEM_PLUS_T = _pcbnew.WS_PROXY_UNDO_ITEM_PLUS_T
1555
1556SYMBOL_LIB_TABLE_T = _pcbnew.SYMBOL_LIB_TABLE_T
1557
1558FP_LIB_TABLE_T = _pcbnew.FP_LIB_TABLE_T
1559
1560SYMBOL_LIBS_T = _pcbnew.SYMBOL_LIBS_T
1561
1562SEARCH_STACK_T = _pcbnew.SEARCH_STACK_T
1563
1564S3D_CACHE_T = _pcbnew.S3D_CACHE_T
1565
1566MAX_STRUCT_TYPE_ID = _pcbnew.MAX_STRUCT_TYPE_ID
1567
1568
1569def BaseType(aType):
1570 r"""BaseType(KICAD_T const aType) -> KICAD_T"""
1571 return _pcbnew.BaseType(aType)
1572
1573def IsNullType(aType):
1574 r"""IsNullType(KICAD_T const aType) -> bool"""
1575 return _pcbnew.IsNullType(aType)
1576
1578 r"""IsInstantiableType(KICAD_T const aType) -> bool"""
1579 return _pcbnew.IsInstantiableType(aType)
1580
1582 r"""IsEeschemaType(KICAD_T const aType) -> bool"""
1583 return _pcbnew.IsEeschemaType(aType)
1584
1585def IsPcbnewType(aType):
1586 r"""IsPcbnewType(KICAD_T const aType) -> bool"""
1587 return _pcbnew.IsPcbnewType(aType)
1588
1590 r"""IsGerbviewType(KICAD_T const aType) -> bool"""
1591 return _pcbnew.IsGerbviewType(aType)
1592
1594 r"""IsPageLayoutEditorType(KICAD_T const aType) -> bool"""
1595 return _pcbnew.IsPageLayoutEditorType(aType)
1596
1597def IsMiscType(aType):
1598 r"""IsMiscType(KICAD_T const aType) -> bool"""
1599 return _pcbnew.IsMiscType(aType)
1600
1601def IsTypeCorrect(aType):
1602 r"""IsTypeCorrect(KICAD_T aType) -> bool"""
1603 return _pcbnew.IsTypeCorrect(aType)
1604
1606 r"""IsTypeAvailable(KICAD_T aType) -> bool"""
1607 return _pcbnew.IsTypeAvailable(aType)
1608INSPECT_RESULT_QUIT = _pcbnew.INSPECT_RESULT_QUIT
1609
1610INSPECT_RESULT_CONTINUE = _pcbnew.INSPECT_RESULT_CONTINUE
1611
1613 r"""Proxy of C++ EDA_ITEM class."""
1614
1615 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1616
1617 def __init__(self, *args, **kwargs):
1618 raise AttributeError("No constructor defined - class is abstract")
1619 __repr__ = _swig_repr
1620 __swig_destroy__ = _pcbnew.delete_EDA_ITEM
1621
1622 def Type(self):
1623 r"""Type(EDA_ITEM self) -> KICAD_T"""
1624 return _pcbnew.EDA_ITEM_Type(self)
1625
1626 def GetParent(self):
1627 r"""GetParent(EDA_ITEM self) -> EDA_ITEM"""
1628 return _pcbnew.EDA_ITEM_GetParent(self)
1629
1630 def SetParent(self, aParent):
1631 r"""SetParent(EDA_ITEM self, EDA_ITEM aParent)"""
1632 return _pcbnew.EDA_ITEM_SetParent(self, aParent)
1633
1634 def IsModified(self):
1635 r"""IsModified(EDA_ITEM self) -> bool"""
1636 return _pcbnew.EDA_ITEM_IsModified(self)
1637
1638 def IsNew(self):
1639 r"""IsNew(EDA_ITEM self) -> bool"""
1640 return _pcbnew.EDA_ITEM_IsNew(self)
1641
1642 def IsMoving(self):
1643 r"""IsMoving(EDA_ITEM self) -> bool"""
1644 return _pcbnew.EDA_ITEM_IsMoving(self)
1645
1646 def IsSelected(self):
1647 r"""IsSelected(EDA_ITEM self) -> bool"""
1648 return _pcbnew.EDA_ITEM_IsSelected(self)
1649
1650 def IsEntered(self):
1651 r"""IsEntered(EDA_ITEM self) -> bool"""
1652 return _pcbnew.EDA_ITEM_IsEntered(self)
1653
1654 def IsBrightened(self):
1655 r"""IsBrightened(EDA_ITEM self) -> bool"""
1656 return _pcbnew.EDA_ITEM_IsBrightened(self)
1657
1658 def IsRollover(self):
1659 r"""IsRollover(EDA_ITEM self) -> bool"""
1660 return _pcbnew.EDA_ITEM_IsRollover(self)
1661
1662 def SetSelected(self):
1663 r"""SetSelected(EDA_ITEM self)"""
1664 return _pcbnew.EDA_ITEM_SetSelected(self)
1665
1666 def SetBrightened(self):
1667 r"""SetBrightened(EDA_ITEM self)"""
1668 return _pcbnew.EDA_ITEM_SetBrightened(self)
1669
1670 def ClearSelected(self):
1671 r"""ClearSelected(EDA_ITEM self)"""
1672 return _pcbnew.EDA_ITEM_ClearSelected(self)
1673
1675 r"""ClearBrightened(EDA_ITEM self)"""
1676 return _pcbnew.EDA_ITEM_ClearBrightened(self)
1677
1678 def SetModified(self):
1679 r"""SetModified(EDA_ITEM self)"""
1680 return _pcbnew.EDA_ITEM_SetModified(self)
1681
1682 def SetFlags(self, aMask):
1683 r"""SetFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1684 return _pcbnew.EDA_ITEM_SetFlags(self, aMask)
1685
1686 def XorFlags(self, aMask):
1687 r"""XorFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask)"""
1688 return _pcbnew.EDA_ITEM_XorFlags(self, aMask)
1689
1690 def ClearFlags(self, *args):
1691 r"""ClearFlags(EDA_ITEM self, EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)"""
1692 return _pcbnew.EDA_ITEM_ClearFlags(self, *args)
1693
1694 def GetFlags(self):
1695 r"""GetFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1696 return _pcbnew.EDA_ITEM_GetFlags(self)
1697
1698 def HasFlag(self, aFlag):
1699 r"""HasFlag(EDA_ITEM self, EDA_ITEM_FLAGS aFlag) -> bool"""
1700 return _pcbnew.EDA_ITEM_HasFlag(self, aFlag)
1701
1702 def GetEditFlags(self):
1703 r"""GetEditFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1704 return _pcbnew.EDA_ITEM_GetEditFlags(self)
1705
1707 r"""ClearEditFlags(EDA_ITEM self)"""
1708 return _pcbnew.EDA_ITEM_ClearEditFlags(self)
1709
1710 def GetTempFlags(self):
1711 r"""GetTempFlags(EDA_ITEM self) -> EDA_ITEM_FLAGS"""
1712 return _pcbnew.EDA_ITEM_GetTempFlags(self)
1713
1715 r"""ClearTempFlags(EDA_ITEM self)"""
1716 return _pcbnew.EDA_ITEM_ClearTempFlags(self)
1717
1718 def RenderAsBitmap(self, aWorldScale):
1719 r"""RenderAsBitmap(EDA_ITEM self, double aWorldScale) -> bool"""
1720 return _pcbnew.EDA_ITEM_RenderAsBitmap(self, aWorldScale)
1721
1722 def SetIsShownAsBitmap(self, aBitmap):
1723 r"""SetIsShownAsBitmap(EDA_ITEM self, bool aBitmap)"""
1724 return _pcbnew.EDA_ITEM_SetIsShownAsBitmap(self, aBitmap)
1725
1727 r"""IsShownAsBitmap(EDA_ITEM self) -> bool"""
1728 return _pcbnew.EDA_ITEM_IsShownAsBitmap(self)
1729
1730 def IsType(self, aScanTypes):
1731 r"""IsType(EDA_ITEM self, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> bool"""
1732 return _pcbnew.EDA_ITEM_IsType(self, aScanTypes)
1733
1734 def SetForceVisible(self, aEnable):
1735 r"""SetForceVisible(EDA_ITEM self, bool aEnable)"""
1736 return _pcbnew.EDA_ITEM_SetForceVisible(self, aEnable)
1737
1739 r"""IsForceVisible(EDA_ITEM self) -> bool"""
1740 return _pcbnew.EDA_ITEM_IsForceVisible(self)
1741
1742 def GetMsgPanelInfo(self, aFrame, aList):
1743 r"""GetMsgPanelInfo(EDA_ITEM self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
1744 return _pcbnew.EDA_ITEM_GetMsgPanelInfo(self, aFrame, aList)
1745
1747 r"""GetFriendlyName(EDA_ITEM self) -> wxString"""
1748 return _pcbnew.EDA_ITEM_GetFriendlyName(self)
1749
1750 def HitTest(self, *args):
1751 r"""
1752 HitTest(EDA_ITEM self, VECTOR2I aPosition, int aAccuracy=0) -> bool
1753 HitTest(EDA_ITEM self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
1754 """
1755 return _pcbnew.EDA_ITEM_HitTest(self, *args)
1756
1758 r"""GetBoundingBox(EDA_ITEM self) -> BOX2I"""
1759 return _pcbnew.EDA_ITEM_GetBoundingBox(self)
1760
1761 def GetPosition(self):
1762 r"""GetPosition(EDA_ITEM self) -> VECTOR2I"""
1763 return _pcbnew.EDA_ITEM_GetPosition(self)
1764
1765 def SetPosition(self, aPos):
1766 r"""SetPosition(EDA_ITEM self, VECTOR2I aPos)"""
1767 return _pcbnew.EDA_ITEM_SetPosition(self, aPos)
1768
1770 r"""GetFocusPosition(EDA_ITEM self) -> VECTOR2I"""
1771 return _pcbnew.EDA_ITEM_GetFocusPosition(self)
1772
1774 r"""GetSortPosition(EDA_ITEM self) -> VECTOR2I"""
1775 return _pcbnew.EDA_ITEM_GetSortPosition(self)
1776
1777 def Clone(self):
1778 r"""Clone(EDA_ITEM self) -> EDA_ITEM"""
1779 return _pcbnew.EDA_ITEM_Clone(self)
1780
1781 def Visit(self, inspector, testData, aScanTypes):
1782 r"""Visit(EDA_ITEM self, INSPECTOR inspector, void * testData, std::vector< KICAD_T,std::allocator< KICAD_T > > const & aScanTypes) -> INSPECT_RESULT"""
1783 return _pcbnew.EDA_ITEM_Visit(self, inspector, testData, aScanTypes)
1784
1785 def GetClass(self):
1786 r"""GetClass(EDA_ITEM self) -> wxString"""
1787 return _pcbnew.EDA_ITEM_GetClass(self)
1788
1789 def GetTypeDesc(self):
1790 r"""GetTypeDesc(EDA_ITEM self) -> wxString"""
1791 return _pcbnew.EDA_ITEM_GetTypeDesc(self)
1792
1793 def GetItemDescription(self, aUnitsProvider):
1794 r"""GetItemDescription(EDA_ITEM self, UNITS_PROVIDER aUnitsProvider) -> wxString"""
1795 return _pcbnew.EDA_ITEM_GetItemDescription(self, aUnitsProvider)
1796
1797 def GetMenuImage(self):
1798 r"""GetMenuImage(EDA_ITEM self) -> BITMAPS"""
1799 return _pcbnew.EDA_ITEM_GetMenuImage(self)
1800
1801 def Matches(self, aSearchData, aAuxData):
1802 r"""Matches(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData) -> bool"""
1803 return _pcbnew.EDA_ITEM_Matches(self, aSearchData, aAuxData)
1804
1805 def Replace(self, *args):
1806 r"""
1807 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, wxString aText) -> bool
1808 Replace(EDA_ITEM self, EDA_SEARCH_DATA const & aSearchData, void * aAuxData=None) -> bool
1809 """
1810 return _pcbnew.EDA_ITEM_Replace(self, *args)
1811
1812 def IsReplaceable(self):
1813 r"""IsReplaceable(EDA_ITEM self) -> bool"""
1814 return _pcbnew.EDA_ITEM_IsReplaceable(self)
1815
1816 def __lt__(self, aItem):
1817 r"""__lt__(EDA_ITEM self, EDA_ITEM aItem) -> bool"""
1818 return _pcbnew.EDA_ITEM___lt__(self, aItem)
1819
1820 @staticmethod
1821 def Sort(aLeft, aRight):
1822 r"""Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1823 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1824
1825 def ViewBBox(self):
1826 r"""ViewBBox(EDA_ITEM self) -> BOX2I"""
1827 return _pcbnew.EDA_ITEM_ViewBBox(self)
1828
1829 def ViewGetLayers(self, aLayers, aCount):
1830 r"""ViewGetLayers(EDA_ITEM self, int [] aLayers, int & aCount)"""
1831 return _pcbnew.EDA_ITEM_ViewGetLayers(self, aLayers, aCount)
1832 m_Uuid = property(_pcbnew.EDA_ITEM_m_Uuid_get, doc=r"""m_Uuid : q(const).KIID""")
1833
1834# Register EDA_ITEM in _pcbnew:
1835_pcbnew.EDA_ITEM_swigregister(EDA_ITEM)
1836
1837def EDA_ITEM_Sort(aLeft, aRight):
1838 r"""EDA_ITEM_Sort(EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
1839 return _pcbnew.EDA_ITEM_Sort(aLeft, aRight)
1840
1841
1842def new_clone(aItem):
1843 r"""new_clone(EDA_ITEM aItem) -> EDA_ITEM"""
1844 return _pcbnew.new_clone(aItem)
1846 r"""Proxy of C++ CompareByUuid class."""
1847
1848 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1849 __repr__ = _swig_repr
1850
1851 def __call__(self, item1, item2):
1852 r"""__call__(CompareByUuid self, EDA_ITEM item1, EDA_ITEM item2) -> bool"""
1853 return _pcbnew.CompareByUuid___call__(self, item1, item2)
1854
1855 def __init__(self):
1856 r"""__init__(CompareByUuid self) -> CompareByUuid"""
1857 _pcbnew.CompareByUuid_swiginit(self, _pcbnew.new_CompareByUuid())
1858 __swig_destroy__ = _pcbnew.delete_CompareByUuid
1859
1860# Register CompareByUuid in _pcbnew:
1861_pcbnew.CompareByUuid_swigregister(CompareByUuid)
1862
1864 r"""Proxy of C++ EDA_IU_SCALE class."""
1865
1866 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1867 __repr__ = _swig_repr
1868 IU_PER_MM = property(_pcbnew.EDA_IU_SCALE_IU_PER_MM_get, doc=r"""IU_PER_MM : q(const).double""")
1869 IU_PER_MILS = property(_pcbnew.EDA_IU_SCALE_IU_PER_MILS_get, doc=r"""IU_PER_MILS : q(const).double""")
1870 MM_PER_IU = property(_pcbnew.EDA_IU_SCALE_MM_PER_IU_get, doc=r"""MM_PER_IU : q(const).double""")
1871
1872 def __init__(self, aIUPerMM):
1873 r"""__init__(EDA_IU_SCALE self, double aIUPerMM) -> EDA_IU_SCALE"""
1874 _pcbnew.EDA_IU_SCALE_swiginit(self, _pcbnew.new_EDA_IU_SCALE(aIUPerMM))
1875
1876 def IUTomm(self, iu):
1877 r"""IUTomm(EDA_IU_SCALE self, int iu) -> double"""
1878 return _pcbnew.EDA_IU_SCALE_IUTomm(self, iu)
1879
1880 def mmToIU(self, mm):
1881 r"""mmToIU(EDA_IU_SCALE self, double mm) -> int"""
1882 return _pcbnew.EDA_IU_SCALE_mmToIU(self, mm)
1883
1884 def MilsToIU(self, mils):
1885 r"""MilsToIU(EDA_IU_SCALE self, int mils) -> int"""
1886 return _pcbnew.EDA_IU_SCALE_MilsToIU(self, mils)
1887
1888 def IUToMils(self, iu):
1889 r"""IUToMils(EDA_IU_SCALE self, int iu) -> int"""
1890 return _pcbnew.EDA_IU_SCALE_IUToMils(self, iu)
1891 __swig_destroy__ = _pcbnew.delete_EDA_IU_SCALE
1892
1893# Register EDA_IU_SCALE in _pcbnew:
1894_pcbnew.EDA_IU_SCALE_swigregister(EDA_IU_SCALE)
1895GERB_IU_PER_MM = cvar.GERB_IU_PER_MM
1896PCB_IU_PER_MM = cvar.PCB_IU_PER_MM
1897PL_IU_PER_MM = cvar.PL_IU_PER_MM
1898SCH_IU_PER_MM = cvar.SCH_IU_PER_MM
1899
1900EDA_DATA_TYPE_DISTANCE = _pcbnew.EDA_DATA_TYPE_DISTANCE
1901
1902EDA_DATA_TYPE_AREA = _pcbnew.EDA_DATA_TYPE_AREA
1903
1904EDA_DATA_TYPE_VOLUME = _pcbnew.EDA_DATA_TYPE_VOLUME
1905
1906EDA_DATA_TYPE_UNITLESS = _pcbnew.EDA_DATA_TYPE_UNITLESS
1907
1908EDA_UNITS_INCHES = _pcbnew.EDA_UNITS_INCHES
1909
1910EDA_UNITS_MILLIMETRES = _pcbnew.EDA_UNITS_MILLIMETRES
1911
1912EDA_UNITS_UNSCALED = _pcbnew.EDA_UNITS_UNSCALED
1913
1914EDA_UNITS_DEGREES = _pcbnew.EDA_UNITS_DEGREES
1915
1916EDA_UNITS_PERCENT = _pcbnew.EDA_UNITS_PERCENT
1917
1918EDA_UNITS_MILS = _pcbnew.EDA_UNITS_MILS
1919
1920EDA_UNITS_MICROMETRES = _pcbnew.EDA_UNITS_MICROMETRES
1921
1922EDA_UNITS_CENTIMETRES = _pcbnew.EDA_UNITS_CENTIMETRES
1923
1924
1926 r"""IsImperialUnit(EDA_UNITS aUnit) -> bool"""
1927 return _pcbnew.IsImperialUnit(aUnit)
1928
1929def IsMetricUnit(aUnit):
1930 r"""IsMetricUnit(EDA_UNITS aUnit) -> bool"""
1931 return _pcbnew.IsMetricUnit(aUnit)
1932
1933def Mm2mils(aVal):
1934 r"""Mm2mils(double aVal) -> int"""
1935 return _pcbnew.Mm2mils(aVal)
1936
1937def Mils2mm(aVal):
1938 r"""Mils2mm(double aVal) -> int"""
1939 return _pcbnew.Mils2mm(aVal)
1940
1941def FetchUnitsFromString(aTextValue, aUnits):
1942 r"""FetchUnitsFromString(wxString aTextValue, EDA_UNITS & aUnits) -> bool"""
1943 return _pcbnew.FetchUnitsFromString(aTextValue, aUnits)
1944
1945def GetText(*args):
1946 r"""GetText(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1947 return _pcbnew.GetText(*args)
1948
1949def GetLabel(*args):
1950 r"""GetLabel(EDA_UNITS aUnits, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1951 return _pcbnew.GetLabel(*args)
1952
1953def FormatAngle(aAngle):
1954 r"""FormatAngle(EDA_ANGLE aAngle) -> string"""
1955 return _pcbnew.FormatAngle(aAngle)
1956
1958 r"""
1959 FormatInternalUnits(EDA_IU_SCALE aIuScale, int aValue) -> string
1960 FormatInternalUnits(EDA_IU_SCALE aIuScale, VECTOR2I aPoint) -> string
1961 """
1962 return _pcbnew.FormatInternalUnits(*args)
1963
1964def Mils2IU(aIuScale, mils):
1965 r"""Mils2IU(EDA_IU_SCALE aIuScale, int mils) -> int"""
1966 return _pcbnew.Mils2IU(aIuScale, mils)
1967
1968def ToUserUnit(aIuScale, aUnit, aValue):
1969 r"""ToUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1970 return _pcbnew.ToUserUnit(aIuScale, aUnit, aValue)
1971
1973 r"""StringFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString"""
1974 return _pcbnew.StringFromValue(*args)
1975
1977 r"""
1978 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1979 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, int aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1980 MessageTextFromValue(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, long long aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
1981 MessageTextFromValue(EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
1982 """
1983 return _pcbnew.MessageTextFromValue(*args)
1984
1985def MessageTextFromMinOptMax(aIuScale, aUnits, aValue):
1986 r"""MessageTextFromMinOptMax(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, MINOPTMAX< int > const & aValue) -> wxString"""
1987 return _pcbnew.MessageTextFromMinOptMax(aIuScale, aUnits, aValue)
1988
1989def FromUserUnit(aIuScale, aUnit, aValue):
1990 r"""FromUserUnit(EDA_IU_SCALE aIuScale, EDA_UNITS aUnit, double aValue) -> double"""
1991 return _pcbnew.FromUserUnit(aIuScale, aUnit, aValue)
1992
1994 r"""
1995 DoubleValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> double
1996 DoubleValueFromString(wxString aTextValue) -> double
1997 """
1998 return _pcbnew.DoubleValueFromString(*args)
1999
2001 r"""
2002 ValueFromString(EDA_IU_SCALE aIuScale, EDA_UNITS aUnits, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> long long
2003 ValueFromString(wxString aTextValue) -> long long
2004 """
2005 return _pcbnew.ValueFromString(*args)
2006
2008 r"""SearchHelpFileFullPath(wxString aBaseName) -> wxString"""
2009 return _pcbnew.SearchHelpFileFullPath(aBaseName)
2010
2011def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None):
2012 r"""EnsureFileDirectoryExists(wxFileName * aTargetFullFileName, wxString aBaseFilename, REPORTER * aReporter=None) -> bool"""
2013 return _pcbnew.EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter)
2014
2015def EnsureFileExtension(aFilename, aExtension):
2016 r"""EnsureFileExtension(wxString aFilename, wxString aExtension) -> wxString"""
2017 return _pcbnew.EnsureFileExtension(aFilename, aExtension)
2018
2019def ExpandEnvVarSubstitutions(aString, aProject):
2020 r"""ExpandEnvVarSubstitutions(wxString aString, PROJECT const * aProject) -> wxString"""
2021 return _pcbnew.ExpandEnvVarSubstitutions(aString, aProject)
2022
2024 r"""
2025 ExpandTextVars(wxString aSource, std::function< bool (wxString *) > const * aResolver) -> wxString
2026 ExpandTextVars(wxString aSource, PROJECT const * aProject) -> wxString
2027 """
2028 return _pcbnew.ExpandTextVars(*args)
2029
2030def GetTextVars(aSource):
2031 r"""GetTextVars(wxString aSource) -> wxString"""
2032 return _pcbnew.GetTextVars(aSource)
2033
2034def IsTextVar(aSource):
2035 r"""IsTextVar(wxString aSource) -> bool"""
2036 return _pcbnew.IsTextVar(aSource)
2037
2038def ResolveUriByEnvVars(aUri, aProject):
2039 r"""ResolveUriByEnvVars(wxString aUri, PROJECT const * aProject) -> wxString"""
2040 return _pcbnew.ResolveUriByEnvVars(aUri, aProject)
2041
2042def TimestampDir(aDirPath, aFilespec):
2043 r"""TimestampDir(wxString aDirPath, wxString aFilespec) -> long long"""
2044 return _pcbnew.TimestampDir(aDirPath, aFilespec)
2045
2047 r"""WarnUserIfOperatingSystemUnsupported() -> bool"""
2048 return _pcbnew.WarnUserIfOperatingSystemUnsupported()
2049
2050def StrPrintf(*args):
2051 r"""
2052 StrPrintf(string aResult, char const * aFormat) -> int
2053 StrPrintf(char const * format) -> string
2054 """
2055 return _pcbnew.StrPrintf(*args)
2056
2057def SafeReadFile(aFilePath, aReadType):
2058 r"""SafeReadFile(wxString aFilePath, wxString aReadType) -> wxString"""
2059 return _pcbnew.SafeReadFile(aFilePath, aReadType)
2060LINE_READER_LINE_DEFAULT_MAX = _pcbnew.LINE_READER_LINE_DEFAULT_MAX
2061
2062LINE_READER_LINE_INITIAL_SIZE = _pcbnew.LINE_READER_LINE_INITIAL_SIZE
2063
2065 r"""Proxy of C++ LINE_READER class."""
2066
2067 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2068
2069 def __init__(self, *args, **kwargs):
2070 raise AttributeError("No constructor defined - class is abstract")
2071 __repr__ = _swig_repr
2072 __swig_destroy__ = _pcbnew.delete_LINE_READER
2073
2074 def ReadLine(self):
2075 r"""ReadLine(LINE_READER self) -> char *"""
2076 return _pcbnew.LINE_READER_ReadLine(self)
2077
2078 def GetSource(self):
2079 r"""GetSource(LINE_READER self) -> wxString"""
2080 return _pcbnew.LINE_READER_GetSource(self)
2081
2082 def Line(self):
2083 r"""Line(LINE_READER self) -> char *"""
2084 return _pcbnew.LINE_READER_Line(self)
2085
2086 def LineNumber(self):
2087 r"""LineNumber(LINE_READER self) -> unsigned int"""
2088 return _pcbnew.LINE_READER_LineNumber(self)
2089
2090 def Length(self):
2091 r"""Length(LINE_READER self) -> unsigned int"""
2092 return _pcbnew.LINE_READER_Length(self)
2093
2094# Register LINE_READER in _pcbnew:
2095_pcbnew.LINE_READER_swigregister(LINE_READER)
2096gerbIUScale = cvar.gerbIUScale
2097pcbIUScale = cvar.pcbIUScale
2098drawSheetIUScale = cvar.drawSheetIUScale
2099schIUScale = cvar.schIUScale
2100unityScale = cvar.unityScale
2101
2103 r"""Proxy of C++ FILE_LINE_READER class."""
2104
2105 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2106 __repr__ = _swig_repr
2107
2108 def __init__(self, *args):
2109 r"""
2110 __init__(FILE_LINE_READER self, wxString aFileName, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
2111 __init__(FILE_LINE_READER self, FILE * aFile, wxString aFileName, bool doOwn=True, unsigned int aStartingLineNumber=0, unsigned int aMaxLineLength=1000000) -> FILE_LINE_READER
2112 """
2113 _pcbnew.FILE_LINE_READER_swiginit(self, _pcbnew.new_FILE_LINE_READER(*args))
2114 __swig_destroy__ = _pcbnew.delete_FILE_LINE_READER
2115
2116 def Rewind(self):
2117 r"""Rewind(FILE_LINE_READER self)"""
2118 return _pcbnew.FILE_LINE_READER_Rewind(self)
2119
2120 def FileLength(self):
2121 r"""FileLength(FILE_LINE_READER self) -> long"""
2122 return _pcbnew.FILE_LINE_READER_FileLength(self)
2123
2124 def CurPos(self):
2125 r"""CurPos(FILE_LINE_READER self) -> long"""
2126 return _pcbnew.FILE_LINE_READER_CurPos(self)
2127
2128# Register FILE_LINE_READER in _pcbnew:
2129_pcbnew.FILE_LINE_READER_swigregister(FILE_LINE_READER)
2130
2132 r"""Proxy of C++ STRING_LINE_READER class."""
2133
2134 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2135 __repr__ = _swig_repr
2136
2137 def __init__(self, *args):
2138 r"""
2139 __init__(STRING_LINE_READER self, string aString, wxString aSource) -> STRING_LINE_READER
2140 __init__(STRING_LINE_READER self, STRING_LINE_READER aStartingPoint) -> STRING_LINE_READER
2141 """
2142 _pcbnew.STRING_LINE_READER_swiginit(self, _pcbnew.new_STRING_LINE_READER(*args))
2143 __swig_destroy__ = _pcbnew.delete_STRING_LINE_READER
2144
2145# Register STRING_LINE_READER in _pcbnew:
2146_pcbnew.STRING_LINE_READER_swigregister(STRING_LINE_READER)
2147
2149 r"""Proxy of C++ INPUTSTREAM_LINE_READER class."""
2150
2151 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2152 __repr__ = _swig_repr
2153
2154 def __init__(self, aStream, aSource):
2155 r"""__init__(INPUTSTREAM_LINE_READER self, wxInputStream * aStream, wxString aSource) -> INPUTSTREAM_LINE_READER"""
2156 _pcbnew.INPUTSTREAM_LINE_READER_swiginit(self, _pcbnew.new_INPUTSTREAM_LINE_READER(aStream, aSource))
2157 __swig_destroy__ = _pcbnew.delete_INPUTSTREAM_LINE_READER
2158
2159# Register INPUTSTREAM_LINE_READER in _pcbnew:
2160_pcbnew.INPUTSTREAM_LINE_READER_swigregister(INPUTSTREAM_LINE_READER)
2161
2162OUTPUTFMTBUFZ = _pcbnew.OUTPUTFMTBUFZ
2163
2165 r"""Proxy of C++ OUTPUTFORMATTER class."""
2166
2167 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2168
2169 def __init__(self, *args, **kwargs):
2170 raise AttributeError("No constructor defined - class is abstract")
2171 __repr__ = _swig_repr
2172
2173 def Print(self, nestLevel, fmt):
2174 r"""Print(OUTPUTFORMATTER self, int nestLevel, char const * fmt) -> int"""
2175 return _pcbnew.OUTPUTFORMATTER_Print(self, nestLevel, fmt)
2176
2177 def GetQuoteChar(self, wrapee):
2178 r"""GetQuoteChar(OUTPUTFORMATTER self, char const * wrapee) -> char const *"""
2179 return _pcbnew.OUTPUTFORMATTER_GetQuoteChar(self, wrapee)
2180
2181 def Quotes(self, aWrapee):
2182 r"""Quotes(OUTPUTFORMATTER self, string aWrapee) -> string"""
2183 return _pcbnew.OUTPUTFORMATTER_Quotes(self, aWrapee)
2184
2185 def Quotew(self, aWrapee):
2186 r"""Quotew(OUTPUTFORMATTER self, wxString aWrapee) -> string"""
2187 return _pcbnew.OUTPUTFORMATTER_Quotew(self, aWrapee)
2188
2189 def Finish(self):
2190 r"""Finish(OUTPUTFORMATTER self) -> bool"""
2191 return _pcbnew.OUTPUTFORMATTER_Finish(self)
2192
2193# Register OUTPUTFORMATTER in _pcbnew:
2194_pcbnew.OUTPUTFORMATTER_swigregister(OUTPUTFORMATTER)
2195
2197 r"""Proxy of C++ STRING_FORMATTER class."""
2198
2199 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2200 __repr__ = _swig_repr
2201
2202 def __init__(self, *args):
2203 r"""__init__(STRING_FORMATTER self, int aReserve=500, char aQuoteChar='\"') -> STRING_FORMATTER"""
2204 _pcbnew.STRING_FORMATTER_swiginit(self, _pcbnew.new_STRING_FORMATTER(*args))
2205
2206 def Clear(self):
2207 r"""Clear(STRING_FORMATTER self)"""
2208 return _pcbnew.STRING_FORMATTER_Clear(self)
2209
2210 def StripUseless(self):
2211 r"""StripUseless(STRING_FORMATTER self)"""
2212 return _pcbnew.STRING_FORMATTER_StripUseless(self)
2213
2214 def GetString(self):
2215 r"""GetString(STRING_FORMATTER self) -> string"""
2216 return _pcbnew.STRING_FORMATTER_GetString(self)
2217 __swig_destroy__ = _pcbnew.delete_STRING_FORMATTER
2218
2219# Register STRING_FORMATTER in _pcbnew:
2220_pcbnew.STRING_FORMATTER_swigregister(STRING_FORMATTER)
2221
2223 r"""Proxy of C++ FILE_OUTPUTFORMATTER class."""
2224
2225 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2226 __repr__ = _swig_repr
2227
2228 def __init__(self, *args):
2229 r"""__init__(FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> FILE_OUTPUTFORMATTER"""
2230 _pcbnew.FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_FILE_OUTPUTFORMATTER(*args))
2231 __swig_destroy__ = _pcbnew.delete_FILE_OUTPUTFORMATTER
2232
2233# Register FILE_OUTPUTFORMATTER in _pcbnew:
2234_pcbnew.FILE_OUTPUTFORMATTER_swigregister(FILE_OUTPUTFORMATTER)
2235
2237 r"""Proxy of C++ PRETTIFIED_FILE_OUTPUTFORMATTER class."""
2238
2239 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2240 __repr__ = _swig_repr
2241
2242 def __init__(self, *args):
2243 r"""__init__(PRETTIFIED_FILE_OUTPUTFORMATTER self, wxString aFileName, wxChar const * aMode=wxT( "wt" ), char aQuoteChar='\"') -> PRETTIFIED_FILE_OUTPUTFORMATTER"""
2244 _pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swiginit(self, _pcbnew.new_PRETTIFIED_FILE_OUTPUTFORMATTER(*args))
2245 __swig_destroy__ = _pcbnew.delete_PRETTIFIED_FILE_OUTPUTFORMATTER
2246
2247# Register PRETTIFIED_FILE_OUTPUTFORMATTER in _pcbnew:
2248_pcbnew.PRETTIFIED_FILE_OUTPUTFORMATTER_swigregister(PRETTIFIED_FILE_OUTPUTFORMATTER)
2249
2251 r"""Proxy of C++ TITLE_BLOCK class."""
2252
2253 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2254 __repr__ = _swig_repr
2255
2256 def __init__(self):
2257 r"""__init__(TITLE_BLOCK self) -> TITLE_BLOCK"""
2258 _pcbnew.TITLE_BLOCK_swiginit(self, _pcbnew.new_TITLE_BLOCK())
2259 __swig_destroy__ = _pcbnew.delete_TITLE_BLOCK
2260
2261 def SetTitle(self, aTitle):
2262 r"""SetTitle(TITLE_BLOCK self, wxString aTitle)"""
2263 return _pcbnew.TITLE_BLOCK_SetTitle(self, aTitle)
2264
2265 def GetTitle(self):
2266 r"""GetTitle(TITLE_BLOCK self) -> wxString"""
2267 return _pcbnew.TITLE_BLOCK_GetTitle(self)
2268
2269 def SetDate(self, aDate):
2270 r"""SetDate(TITLE_BLOCK self, wxString aDate)"""
2271 return _pcbnew.TITLE_BLOCK_SetDate(self, aDate)
2272
2273 def GetDate(self):
2274 r"""GetDate(TITLE_BLOCK self) -> wxString"""
2275 return _pcbnew.TITLE_BLOCK_GetDate(self)
2276
2277 def SetRevision(self, aRevision):
2278 r"""SetRevision(TITLE_BLOCK self, wxString aRevision)"""
2279 return _pcbnew.TITLE_BLOCK_SetRevision(self, aRevision)
2280
2281 def GetRevision(self):
2282 r"""GetRevision(TITLE_BLOCK self) -> wxString"""
2283 return _pcbnew.TITLE_BLOCK_GetRevision(self)
2284
2285 def SetCompany(self, aCompany):
2286 r"""SetCompany(TITLE_BLOCK self, wxString aCompany)"""
2287 return _pcbnew.TITLE_BLOCK_SetCompany(self, aCompany)
2288
2289 def GetCompany(self):
2290 r"""GetCompany(TITLE_BLOCK self) -> wxString"""
2291 return _pcbnew.TITLE_BLOCK_GetCompany(self)
2292
2293 def SetComment(self, aIdx, aComment):
2294 r"""SetComment(TITLE_BLOCK self, int aIdx, wxString aComment)"""
2295 return _pcbnew.TITLE_BLOCK_SetComment(self, aIdx, aComment)
2296
2297 def GetComment(self, aIdx):
2298 r"""GetComment(TITLE_BLOCK self, int aIdx) -> wxString"""
2299 return _pcbnew.TITLE_BLOCK_GetComment(self, aIdx)
2300
2301 def Clear(self):
2302 r"""Clear(TITLE_BLOCK self)"""
2303 return _pcbnew.TITLE_BLOCK_Clear(self)
2304
2305 @staticmethod
2307 r"""GetContextualTextVars(wxArrayString * aVars)"""
2308 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2309
2310 def TextVarResolver(self, aToken, aProject):
2311 r"""TextVarResolver(TITLE_BLOCK self, wxString aToken, PROJECT const * aProject) -> bool"""
2312 return _pcbnew.TITLE_BLOCK_TextVarResolver(self, aToken, aProject)
2313
2314 def Format(self, aFormatter, aNestLevel, aControlBits):
2315 r"""Format(TITLE_BLOCK self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControlBits)"""
2316 return _pcbnew.TITLE_BLOCK_Format(self, aFormatter, aNestLevel, aControlBits)
2317
2318# Register TITLE_BLOCK in _pcbnew:
2319_pcbnew.TITLE_BLOCK_swigregister(TITLE_BLOCK)
2320
2322 r"""TITLE_BLOCK_GetContextualTextVars(wxArrayString * aVars)"""
2323 return _pcbnew.TITLE_BLOCK_GetContextualTextVars(aVars)
2324
2325UNSPECIFIED_COLOR = _pcbnew.UNSPECIFIED_COLOR
2326
2327BLACK = _pcbnew.BLACK
2328
2329DARKDARKGRAY = _pcbnew.DARKDARKGRAY
2330
2331DARKGRAY = _pcbnew.DARKGRAY
2332
2333LIGHTGRAY = _pcbnew.LIGHTGRAY
2334
2335WHITE = _pcbnew.WHITE
2336
2337LIGHTYELLOW = _pcbnew.LIGHTYELLOW
2338
2339DARKBLUE = _pcbnew.DARKBLUE
2340
2341DARKGREEN = _pcbnew.DARKGREEN
2342
2343DARKCYAN = _pcbnew.DARKCYAN
2344
2345DARKRED = _pcbnew.DARKRED
2346
2347DARKMAGENTA = _pcbnew.DARKMAGENTA
2348
2349DARKBROWN = _pcbnew.DARKBROWN
2350
2351BLUE = _pcbnew.BLUE
2352
2353GREEN = _pcbnew.GREEN
2354
2355CYAN = _pcbnew.CYAN
2356
2357RED = _pcbnew.RED
2358
2359MAGENTA = _pcbnew.MAGENTA
2360
2361BROWN = _pcbnew.BROWN
2362
2363LIGHTBLUE = _pcbnew.LIGHTBLUE
2364
2365LIGHTGREEN = _pcbnew.LIGHTGREEN
2366
2367LIGHTCYAN = _pcbnew.LIGHTCYAN
2368
2369LIGHTRED = _pcbnew.LIGHTRED
2370
2371LIGHTMAGENTA = _pcbnew.LIGHTMAGENTA
2372
2373YELLOW = _pcbnew.YELLOW
2374
2375PUREBLUE = _pcbnew.PUREBLUE
2376
2377PUREGREEN = _pcbnew.PUREGREEN
2378
2379PURECYAN = _pcbnew.PURECYAN
2380
2381PURERED = _pcbnew.PURERED
2382
2383PUREMAGENTA = _pcbnew.PUREMAGENTA
2384
2385PUREYELLOW = _pcbnew.PUREYELLOW
2386
2387LIGHTERORANGE = _pcbnew.LIGHTERORANGE
2388
2389DARKORANGE = _pcbnew.DARKORANGE
2390
2391ORANGE = _pcbnew.ORANGE
2392
2393LIGHTORANGE = _pcbnew.LIGHTORANGE
2394
2395PUREORANGE = _pcbnew.PUREORANGE
2396
2397NBCOLORS = _pcbnew.NBCOLORS
2398
2399HIGHLIGHT_FLAG = _pcbnew.HIGHLIGHT_FLAG
2400
2401MASKCOLOR = _pcbnew.MASKCOLOR
2402
2404 r"""Proxy of C++ StructColors class."""
2405
2406 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2407 __repr__ = _swig_repr
2408 m_Blue = property(_pcbnew.StructColors_m_Blue_get, _pcbnew.StructColors_m_Blue_set, doc=r"""m_Blue : unsigned char""")
2409 m_Green = property(_pcbnew.StructColors_m_Green_get, _pcbnew.StructColors_m_Green_set, doc=r"""m_Green : unsigned char""")
2410 m_Red = property(_pcbnew.StructColors_m_Red_get, _pcbnew.StructColors_m_Red_set, doc=r"""m_Red : unsigned char""")
2411 m_Numcolor = property(_pcbnew.StructColors_m_Numcolor_get, _pcbnew.StructColors_m_Numcolor_set, doc=r"""m_Numcolor : EDA_COLOR_T""")
2412 m_ColorName = property(_pcbnew.StructColors_m_ColorName_get, _pcbnew.StructColors_m_ColorName_set, doc=r"""m_ColorName : std::string""")
2413 m_LightColor = property(_pcbnew.StructColors_m_LightColor_get, _pcbnew.StructColors_m_LightColor_set, doc=r"""m_LightColor : EDA_COLOR_T""")
2414
2415 def __init__(self):
2416 r"""__init__(StructColors self) -> StructColors"""
2417 _pcbnew.StructColors_swiginit(self, _pcbnew.new_StructColors())
2418 __swig_destroy__ = _pcbnew.delete_StructColors
2419
2420# Register StructColors in _pcbnew:
2421_pcbnew.StructColors_swigregister(StructColors)
2422
2423
2425 r"""colorRefs() -> StructColors"""
2426 return _pcbnew.colorRefs()
2428 r"""Proxy of C++ KIGFX::COLOR4D class."""
2429
2430 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2431 __repr__ = _swig_repr
2432
2433 def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0):
2434 r"""FromCSSRGBA(COLOR4D self, int aRed, int aGreen, int aBlue, double aAlpha=1.0) -> COLOR4D"""
2435 return _pcbnew.COLOR4D_FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha)
2436
2437 def __init__(self, *args):
2438 r"""
2439 __init__(COLOR4D self) -> COLOR4D
2440 __init__(COLOR4D self, double aRed, double aGreen, double aBlue, double aAlpha) -> COLOR4D
2441 __init__(COLOR4D self, EDA_COLOR_T aColor) -> COLOR4D
2442 __init__(COLOR4D self, wxString aColorStr) -> COLOR4D
2443 __init__(COLOR4D self, wxColour const & aColor) -> COLOR4D
2444 """
2445 _pcbnew.COLOR4D_swiginit(self, _pcbnew.new_COLOR4D(*args))
2446
2447 def SetFromWxString(self, aColorString):
2448 r"""SetFromWxString(COLOR4D self, wxString aColorString) -> bool"""
2449 return _pcbnew.COLOR4D_SetFromWxString(self, aColorString)
2450
2451 def ToCSSString(self):
2452 r"""ToCSSString(COLOR4D self) -> wxString"""
2453 return _pcbnew.COLOR4D_ToCSSString(self)
2454
2455 def SetFromHexString(self, aColorString):
2456 r"""SetFromHexString(COLOR4D self, wxString aColorString) -> bool"""
2457 return _pcbnew.COLOR4D_SetFromHexString(self, aColorString)
2458
2459 def ToHexString(self):
2460 r"""ToHexString(COLOR4D self) -> wxString"""
2461 return _pcbnew.COLOR4D_ToHexString(self)
2462
2463 def ToColour(self):
2464 r"""ToColour(COLOR4D self) -> wxColour"""
2465 return _pcbnew.COLOR4D_ToColour(self)
2466
2467 def LegacyMix(self, aColor):
2468 r"""LegacyMix(COLOR4D self, COLOR4D aColor) -> COLOR4D"""
2469 return _pcbnew.COLOR4D_LegacyMix(self, aColor)
2470
2471 def ToHSL(self, aOutHue, aOutSaturation, aOutValue):
2472 r"""ToHSL(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue)"""
2473 return _pcbnew.COLOR4D_ToHSL(self, aOutHue, aOutSaturation, aOutValue)
2474
2475 def FromHSL(self, aInHue, aInSaturation, aInLightness):
2476 r"""FromHSL(COLOR4D self, double aInHue, double aInSaturation, double aInLightness)"""
2477 return _pcbnew.COLOR4D_FromHSL(self, aInHue, aInSaturation, aInLightness)
2478
2479 def Brighten(self, aFactor):
2480 r"""Brighten(COLOR4D self, double aFactor) -> COLOR4D"""
2481 return _pcbnew.COLOR4D_Brighten(self, aFactor)
2482
2483 def Darken(self, aFactor):
2484 r"""Darken(COLOR4D self, double aFactor) -> COLOR4D"""
2485 return _pcbnew.COLOR4D_Darken(self, aFactor)
2486
2487 def Invert(self):
2488 r"""Invert(COLOR4D self) -> COLOR4D"""
2489 return _pcbnew.COLOR4D_Invert(self)
2490
2491 def Saturate(self, aFactor):
2492 r"""Saturate(COLOR4D self, double aFactor) -> COLOR4D"""
2493 return _pcbnew.COLOR4D_Saturate(self, aFactor)
2494
2495 def Desaturate(self):
2496 r"""Desaturate(COLOR4D self) -> COLOR4D"""
2497 return _pcbnew.COLOR4D_Desaturate(self)
2498
2499 def Brightened(self, aFactor):
2500 r"""Brightened(COLOR4D self, double aFactor) -> COLOR4D"""
2501 return _pcbnew.COLOR4D_Brightened(self, aFactor)
2502
2503 def Darkened(self, aFactor):
2504 r"""Darkened(COLOR4D self, double aFactor) -> COLOR4D"""
2505 return _pcbnew.COLOR4D_Darkened(self, aFactor)
2506
2507 def Mix(self, aColor, aFactor):
2508 r"""Mix(COLOR4D self, COLOR4D aColor, double aFactor) -> COLOR4D"""
2509 return _pcbnew.COLOR4D_Mix(self, aColor, aFactor)
2510
2511 def WithAlpha(self, aAlpha):
2512 r"""WithAlpha(COLOR4D self, double aAlpha) -> COLOR4D"""
2513 return _pcbnew.COLOR4D_WithAlpha(self, aAlpha)
2514
2515 def Inverted(self):
2516 r"""Inverted(COLOR4D self) -> COLOR4D"""
2517 return _pcbnew.COLOR4D_Inverted(self)
2518
2519 def GetBrightness(self):
2520 r"""GetBrightness(COLOR4D self) -> double"""
2521 return _pcbnew.COLOR4D_GetBrightness(self)
2522
2523 def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False):
2524 r"""ToHSV(COLOR4D self, double & aOutHue, double & aOutSaturation, double & aOutValue, bool aAlwaysDefineHue=False)"""
2525 return _pcbnew.COLOR4D_ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue)
2526
2527 def FromHSV(self, aInH, aInS, aInV):
2528 r"""FromHSV(COLOR4D self, double aInH, double aInS, double aInV)"""
2529 return _pcbnew.COLOR4D_FromHSV(self, aInH, aInS, aInV)
2530
2531 def Distance(self, other):
2532 r"""Distance(COLOR4D self, COLOR4D other) -> double"""
2533 return _pcbnew.COLOR4D_Distance(self, other)
2534
2535 def Compare(self, aRhs):
2536 r"""Compare(COLOR4D self, COLOR4D aRhs) -> int"""
2537 return _pcbnew.COLOR4D_Compare(self, aRhs)
2538
2539 @staticmethod
2540 def FindNearestLegacyColor(aR, aG, aB):
2541 r"""FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2542 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2543 r = property(_pcbnew.COLOR4D_r_get, _pcbnew.COLOR4D_r_set, doc=r"""r : double""")
2544 g = property(_pcbnew.COLOR4D_g_get, _pcbnew.COLOR4D_g_set, doc=r"""g : double""")
2545 b = property(_pcbnew.COLOR4D_b_get, _pcbnew.COLOR4D_b_set, doc=r"""b : double""")
2546 a = property(_pcbnew.COLOR4D_a_get, _pcbnew.COLOR4D_a_set, doc=r"""a : double""")
2547 __swig_destroy__ = _pcbnew.delete_COLOR4D
2548
2549# Register COLOR4D in _pcbnew:
2550_pcbnew.COLOR4D_swigregister(COLOR4D)
2551
2553 r"""COLOR4D_FindNearestLegacyColor(int aR, int aG, int aB) -> EDA_COLOR_T"""
2554 return _pcbnew.COLOR4D_FindNearestLegacyColor(aR, aG, aB)
2555COLOR4D.UNSPECIFIED = _pcbnew.cvar.COLOR4D_UNSPECIFIED
2556COLOR4D.WHITE = _pcbnew.cvar.COLOR4D_WHITE
2557COLOR4D.BLACK = _pcbnew.cvar.COLOR4D_BLACK
2558COLOR4D.CLEAR = _pcbnew.cvar.COLOR4D_CLEAR
2559
2560
2561def __eq__(lhs, rhs):
2562 r"""__eq__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2563 return _pcbnew.__eq__(lhs, rhs)
2564
2565def __ne__(lhs, rhs):
2566 r"""__ne__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2567 return _pcbnew.__ne__(lhs, rhs)
2568
2569def __lt__(lhs, rhs):
2570 r"""__lt__(COLOR4D lhs, COLOR4D rhs) -> bool"""
2571 return _pcbnew.__lt__(lhs, rhs)
2572
2573def __lshift__(aStream, aColor):
2574 r"""__lshift__(std::ostream & aStream, COLOR4D aColor) -> std::ostream &"""
2575 return _pcbnew.__lshift__(aStream, aColor)
2577 r"""Proxy of C++ MARKER_BASE class."""
2578
2579 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2580
2581 def __init__(self, *args, **kwargs):
2582 raise AttributeError("No constructor defined - class is abstract")
2583 __repr__ = _swig_repr
2584 MARKER_UNSPEC = _pcbnew.MARKER_BASE_MARKER_UNSPEC
2585
2586 MARKER_ERC = _pcbnew.MARKER_BASE_MARKER_ERC
2587
2588 MARKER_DRC = _pcbnew.MARKER_BASE_MARKER_DRC
2589
2590 MARKER_DRAWING_SHEET = _pcbnew.MARKER_BASE_MARKER_DRAWING_SHEET
2591
2592 MARKER_RATSNEST = _pcbnew.MARKER_BASE_MARKER_RATSNEST
2593
2594 MARKER_PARITY = _pcbnew.MARKER_BASE_MARKER_PARITY
2595
2596 MARKER_SIMUL = _pcbnew.MARKER_BASE_MARKER_SIMUL
2597
2598 __swig_destroy__ = _pcbnew.delete_MARKER_BASE
2599
2600 def MarkerScale(self):
2601 r"""MarkerScale(MARKER_BASE self) -> int"""
2602 return _pcbnew.MARKER_BASE_MarkerScale(self)
2603
2604 def SetMarkerScale(self, aScale):
2605 r"""SetMarkerScale(MARKER_BASE self, int aScale)"""
2606 return _pcbnew.MARKER_BASE_SetMarkerScale(self, aScale)
2607
2608 def ShapeToPolygon(self, aPolygon, aScale=-1):
2609 r"""ShapeToPolygon(MARKER_BASE self, SHAPE_LINE_CHAIN aPolygon, int aScale=-1)"""
2610 return _pcbnew.MARKER_BASE_ShapeToPolygon(self, aPolygon, aScale)
2611
2612 def PrintMarker(self, aSettings, aOffset):
2613 r"""PrintMarker(MARKER_BASE self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset)"""
2614 return _pcbnew.MARKER_BASE_PrintMarker(self, aSettings, aOffset)
2615
2616 def GetPos(self):
2617 r"""GetPos(MARKER_BASE self) -> VECTOR2I"""
2618 return _pcbnew.MARKER_BASE_GetPos(self)
2619
2620 def GetUUID(self):
2621 r"""GetUUID(MARKER_BASE self) -> KIID"""
2622 return _pcbnew.MARKER_BASE_GetUUID(self)
2623
2624 def SetMarkerType(self, aMarkerType):
2625 r"""SetMarkerType(MARKER_BASE self, enum MARKER_BASE::MARKER_T aMarkerType)"""
2626 return _pcbnew.MARKER_BASE_SetMarkerType(self, aMarkerType)
2627
2628 def GetMarkerType(self):
2629 r"""GetMarkerType(MARKER_BASE self) -> enum MARKER_BASE::MARKER_T"""
2630 return _pcbnew.MARKER_BASE_GetMarkerType(self)
2631
2632 def IsExcluded(self):
2633 r"""IsExcluded(MARKER_BASE self) -> bool"""
2634 return _pcbnew.MARKER_BASE_IsExcluded(self)
2635
2636 def SetExcluded(self, aExcluded):
2637 r"""SetExcluded(MARKER_BASE self, bool aExcluded)"""
2638 return _pcbnew.MARKER_BASE_SetExcluded(self, aExcluded)
2639
2640 def GetSeverity(self):
2641 r"""GetSeverity(MARKER_BASE self) -> SEVERITY"""
2642 return _pcbnew.MARKER_BASE_GetSeverity(self)
2643
2644 def GetRCItem(self):
2645 r"""GetRCItem(MARKER_BASE self) -> std::shared_ptr< RC_ITEM >"""
2646 return _pcbnew.MARKER_BASE_GetRCItem(self)
2647
2648 def HitTestMarker(self, *args):
2649 r"""
2650 HitTestMarker(MARKER_BASE self, VECTOR2I aHitPosition, int aAccuracy) -> bool
2651 HitTestMarker(MARKER_BASE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
2652 """
2653 return _pcbnew.MARKER_BASE_HitTestMarker(self, *args)
2654
2656 r"""GetBoundingBoxMarker(MARKER_BASE self) -> BOX2I"""
2657 return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2658 m_Pos = property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set, doc=r"""m_Pos : VECTOR2I""")
2659
2660# Register MARKER_BASE in _pcbnew:
2661_pcbnew.MARKER_BASE_swigregister(MARKER_BASE)
2662
2663TEXT_MIN_SIZE_MM = _pcbnew.TEXT_MIN_SIZE_MM
2664
2665TEXT_MAX_SIZE_MM = _pcbnew.TEXT_MAX_SIZE_MM
2666
2667DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2668
2670 r"""Proxy of C++ EDA_TEXT class."""
2671
2672 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2673 __repr__ = _swig_repr
2674
2675 def __init__(self, *args):
2676 r"""
2677 __init__(EDA_TEXT self, EDA_IU_SCALE aIuScale, wxString aText=wxEmptyString) -> EDA_TEXT
2678 __init__(EDA_TEXT self, EDA_TEXT aText) -> EDA_TEXT
2679 """
2680 _pcbnew.EDA_TEXT_swiginit(self, _pcbnew.new_EDA_TEXT(*args))
2681 __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2682
2683 def GetText(self):
2684 r"""GetText(EDA_TEXT self) -> wxString"""
2685 return _pcbnew.EDA_TEXT_GetText(self)
2686
2687 def GetShownText(self, aAllowExtraText, aDepth=0):
2688 r"""GetShownText(EDA_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
2689 return _pcbnew.EDA_TEXT_GetShownText(self, aAllowExtraText, aDepth)
2690
2691 def HasTextVars(self):
2692 r"""HasTextVars(EDA_TEXT self) -> bool"""
2693 return _pcbnew.EDA_TEXT_HasTextVars(self)
2694
2695 def SetText(self, aText):
2696 r"""SetText(EDA_TEXT self, wxString aText)"""
2697 return _pcbnew.EDA_TEXT_SetText(self, aText)
2698
2699 def SetTextThickness(self, aWidth):
2700 r"""SetTextThickness(EDA_TEXT self, int aWidth)"""
2701 return _pcbnew.EDA_TEXT_SetTextThickness(self, aWidth)
2702
2704 r"""GetTextThickness(EDA_TEXT self) -> int"""
2705 return _pcbnew.EDA_TEXT_GetTextThickness(self)
2706
2707 def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0):
2708 r"""GetEffectiveTextPenWidth(EDA_TEXT self, int aDefaultPenWidth=0) -> int"""
2709 return _pcbnew.EDA_TEXT_GetEffectiveTextPenWidth(self, aDefaultPenWidth)
2710
2711 def SetTextAngle(self, aAngle):
2712 r"""SetTextAngle(EDA_TEXT self, EDA_ANGLE aAngle)"""
2713 return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2714
2715 def GetTextAngle(self):
2716 r"""GetTextAngle(EDA_TEXT self) -> EDA_ANGLE"""
2717 return _pcbnew.EDA_TEXT_GetTextAngle(self)
2718
2719 def SetTextAngleDegrees(self, aOrientation):
2720 r"""SetTextAngleDegrees(EDA_TEXT self, double aOrientation)"""
2721 return _pcbnew.EDA_TEXT_SetTextAngleDegrees(self, aOrientation)
2722
2724 r"""GetTextAngleDegrees(EDA_TEXT self) -> double"""
2725 return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2726
2727 def SetItalic(self, aItalic):
2728 r"""SetItalic(EDA_TEXT self, bool aItalic)"""
2729 return _pcbnew.EDA_TEXT_SetItalic(self, aItalic)
2730
2731 def SetItalicFlag(self, aItalic):
2732 r"""SetItalicFlag(EDA_TEXT self, bool aItalic)"""
2733 return _pcbnew.EDA_TEXT_SetItalicFlag(self, aItalic)
2734
2735 def IsItalic(self):
2736 r"""IsItalic(EDA_TEXT self) -> bool"""
2737 return _pcbnew.EDA_TEXT_IsItalic(self)
2738
2739 def SetBold(self, aBold):
2740 r"""SetBold(EDA_TEXT self, bool aBold)"""
2741 return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2742
2743 def SetBoldFlag(self, aBold):
2744 r"""SetBoldFlag(EDA_TEXT self, bool aBold)"""
2745 return _pcbnew.EDA_TEXT_SetBoldFlag(self, aBold)
2746
2747 def IsBold(self):
2748 r"""IsBold(EDA_TEXT self) -> bool"""
2749 return _pcbnew.EDA_TEXT_IsBold(self)
2750
2751 def SetVisible(self, aVisible):
2752 r"""SetVisible(EDA_TEXT self, bool aVisible)"""
2753 return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2754
2755 def IsVisible(self):
2756 r"""IsVisible(EDA_TEXT self) -> bool"""
2757 return _pcbnew.EDA_TEXT_IsVisible(self)
2758
2759 def SetMirrored(self, isMirrored):
2760 r"""SetMirrored(EDA_TEXT self, bool isMirrored)"""
2761 return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2762
2763 def IsMirrored(self):
2764 r"""IsMirrored(EDA_TEXT self) -> bool"""
2765 return _pcbnew.EDA_TEXT_IsMirrored(self)
2766
2767 def SetMultilineAllowed(self, aAllow):
2768 r"""SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2769 return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2770
2772 r"""IsMultilineAllowed(EDA_TEXT self) -> bool"""
2773 return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2774
2775 def SetHorizJustify(self, aType):
2776 r"""SetHorizJustify(EDA_TEXT self, GR_TEXT_H_ALIGN_T aType)"""
2777 return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2778
2780 r"""GetHorizJustify(EDA_TEXT self) -> GR_TEXT_H_ALIGN_T"""
2781 return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2782
2783 def SetVertJustify(self, aType):
2784 r"""SetVertJustify(EDA_TEXT self, GR_TEXT_V_ALIGN_T aType)"""
2785 return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2786
2788 r"""GetVertJustify(EDA_TEXT self) -> GR_TEXT_V_ALIGN_T"""
2789 return _pcbnew.EDA_TEXT_GetVertJustify(self)
2790
2791 def SetKeepUpright(self, aKeepUpright):
2792 r"""SetKeepUpright(EDA_TEXT self, bool aKeepUpright)"""
2793 return _pcbnew.EDA_TEXT_SetKeepUpright(self, aKeepUpright)
2794
2795 def IsKeepUpright(self):
2796 r"""IsKeepUpright(EDA_TEXT self) -> bool"""
2797 return _pcbnew.EDA_TEXT_IsKeepUpright(self)
2798
2799 def FlipHJustify(self):
2800 r"""FlipHJustify(EDA_TEXT self)"""
2801 return _pcbnew.EDA_TEXT_FlipHJustify(self)
2802
2803 def SwapAttributes(self, aTradingPartner):
2804 r"""SwapAttributes(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2805 return _pcbnew.EDA_TEXT_SwapAttributes(self, aTradingPartner)
2806
2807 def SwapText(self, aTradingPartner):
2808 r"""SwapText(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2809 return _pcbnew.EDA_TEXT_SwapText(self, aTradingPartner)
2810
2811 def CopyText(self, aSrc):
2812 r"""CopyText(EDA_TEXT self, EDA_TEXT aSrc)"""
2813 return _pcbnew.EDA_TEXT_CopyText(self, aSrc)
2814
2815 def SetAttributes(self, *args):
2816 r"""
2817 SetAttributes(EDA_TEXT self, EDA_TEXT aSrc, bool aSetPosition=True)
2818 SetAttributes(EDA_TEXT self, TEXT_ATTRIBUTES aTextAttrs)
2819 """
2820 return _pcbnew.EDA_TEXT_SetAttributes(self, *args)
2821
2822 def GetAttributes(self):
2823 r"""GetAttributes(EDA_TEXT self) -> TEXT_ATTRIBUTES"""
2824 return _pcbnew.EDA_TEXT_GetAttributes(self)
2825
2826 def Replace(self, aSearchData):
2827 r"""Replace(EDA_TEXT self, EDA_SEARCH_DATA const & aSearchData) -> bool"""
2828 return _pcbnew.EDA_TEXT_Replace(self, aSearchData)
2829
2831 r"""IsDefaultFormatting(EDA_TEXT self) -> bool"""
2832 return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2833
2834 def SetFont(self, aFont):
2835 r"""SetFont(EDA_TEXT self, KIFONT::FONT * aFont)"""
2836 return _pcbnew.EDA_TEXT_SetFont(self, aFont)
2837
2838 def GetFont(self):
2839 r"""GetFont(EDA_TEXT self) -> KIFONT::FONT *"""
2840 return _pcbnew.EDA_TEXT_GetFont(self)
2841
2842 def GetFontName(self):
2843 r"""GetFontName(EDA_TEXT self) -> wxString"""
2844 return _pcbnew.EDA_TEXT_GetFontName(self)
2845
2846 def SetFontIndex(self, aIdx):
2847 r"""SetFontIndex(EDA_TEXT self, int aIdx)"""
2848 return _pcbnew.EDA_TEXT_SetFontIndex(self, aIdx)
2849
2850 def GetFontIndex(self):
2851 r"""GetFontIndex(EDA_TEXT self) -> int"""
2852 return _pcbnew.EDA_TEXT_GetFontIndex(self)
2853
2854 def SetLineSpacing(self, aLineSpacing):
2855 r"""SetLineSpacing(EDA_TEXT self, double aLineSpacing)"""
2856 return _pcbnew.EDA_TEXT_SetLineSpacing(self, aLineSpacing)
2857
2859 r"""GetLineSpacing(EDA_TEXT self) -> double"""
2860 return _pcbnew.EDA_TEXT_GetLineSpacing(self)
2861
2862 def SetTextSize(self, aNewSize, aEnforceMinTextSize=True):
2863 r"""SetTextSize(EDA_TEXT self, VECTOR2I aNewSize, bool aEnforceMinTextSize=True)"""
2864 return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize, aEnforceMinTextSize)
2865
2866 def GetTextSize(self):
2867 r"""GetTextSize(EDA_TEXT self) -> VECTOR2I"""
2868 return _pcbnew.EDA_TEXT_GetTextSize(self)
2869
2870 def SetTextWidth(self, aWidth):
2871 r"""SetTextWidth(EDA_TEXT self, int aWidth)"""
2872 return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2873
2874 def GetTextWidth(self):
2875 r"""GetTextWidth(EDA_TEXT self) -> int"""
2876 return _pcbnew.EDA_TEXT_GetTextWidth(self)
2877
2878 def SetTextHeight(self, aHeight):
2879 r"""SetTextHeight(EDA_TEXT self, int aHeight)"""
2880 return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2881
2882 def GetTextHeight(self):
2883 r"""GetTextHeight(EDA_TEXT self) -> int"""
2884 return _pcbnew.EDA_TEXT_GetTextHeight(self)
2885
2886 def SetTextColor(self, aColor):
2887 r"""SetTextColor(EDA_TEXT self, COLOR4D aColor)"""
2888 return _pcbnew.EDA_TEXT_SetTextColor(self, aColor)
2889
2890 def GetTextColor(self):
2891 r"""GetTextColor(EDA_TEXT self) -> COLOR4D"""
2892 return _pcbnew.EDA_TEXT_GetTextColor(self)
2893
2894 def SetTextPos(self, aPoint):
2895 r"""SetTextPos(EDA_TEXT self, VECTOR2I aPoint)"""
2896 return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2897
2898 def GetTextPos(self):
2899 r"""GetTextPos(EDA_TEXT self) -> VECTOR2I"""
2900 return _pcbnew.EDA_TEXT_GetTextPos(self)
2901
2902 def SetTextX(self, aX):
2903 r"""SetTextX(EDA_TEXT self, int aX)"""
2904 return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2905
2906 def SetTextY(self, aY):
2907 r"""SetTextY(EDA_TEXT self, int aY)"""
2908 return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2909
2910 def Offset(self, aOffset):
2911 r"""Offset(EDA_TEXT self, VECTOR2I aOffset)"""
2912 return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2913
2914 def Empty(self):
2915 r"""Empty(EDA_TEXT self)"""
2916 return _pcbnew.EDA_TEXT_Empty(self)
2917
2918 @staticmethod
2919 def MapHorizJustify(aHorizJustify):
2920 r"""MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
2921 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
2922
2923 @staticmethod
2924 def MapVertJustify(aVertJustify):
2925 r"""MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
2926 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
2927
2928 def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED):
2929 r"""Print(EDA_TEXT self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset, COLOR4D aColor, OUTLINE_MODE aDisplay_mode=FILLED)"""
2930 return _pcbnew.EDA_TEXT_Print(self, aSettings, aOffset, aColor, aDisplay_mode)
2931
2932 def GetEffectiveTextShape(self, *args):
2933 r"""GetEffectiveTextShape(EDA_TEXT self, bool aTriangulate=True, BOX2I aBBox=BOX2I(), EDA_ANGLE aAngle=ANGLE_0) -> std::shared_ptr< SHAPE_COMPOUND >"""
2934 return _pcbnew.EDA_TEXT_GetEffectiveTextShape(self, *args)
2935
2936 def TextHitTest(self, *args):
2937 r"""
2938 TextHitTest(EDA_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
2939 TextHitTest(EDA_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
2940 """
2941 return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
2942
2943 def GetTextBox(self, aLine=-1, aInvertY=False):
2944 r"""GetTextBox(EDA_TEXT self, int aLine=-1, bool aInvertY=False) -> BOX2I"""
2945 return _pcbnew.EDA_TEXT_GetTextBox(self, aLine, aInvertY)
2946
2947 def GetInterline(self):
2948 r"""GetInterline(EDA_TEXT self) -> int"""
2949 return _pcbnew.EDA_TEXT_GetInterline(self)
2950
2952 r"""GetTextStyleName(EDA_TEXT self) -> wxString"""
2953 return _pcbnew.EDA_TEXT_GetTextStyleName(self)
2954
2955 def GetLinePositions(self, aPositions, aLineCount):
2956 r"""GetLinePositions(EDA_TEXT self, VECTOR_VECTOR2I aPositions, int aLineCount)"""
2957 return _pcbnew.EDA_TEXT_GetLinePositions(self, aPositions, aLineCount)
2958
2959 def Levenshtein(self, aOther):
2960 r"""Levenshtein(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2961 return _pcbnew.EDA_TEXT_Levenshtein(self, aOther)
2962
2963 def Similarity(self, aOther):
2964 r"""Similarity(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2965 return _pcbnew.EDA_TEXT_Similarity(self, aOther)
2966
2967 def Format(self, aFormatter, aNestLevel, aControlBits):
2968 r"""Format(EDA_TEXT self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControlBits)"""
2969 return _pcbnew.EDA_TEXT_Format(self, aFormatter, aNestLevel, aControlBits)
2970
2972 r"""GetDrawRotation(EDA_TEXT self) -> EDA_ANGLE"""
2973 return _pcbnew.EDA_TEXT_GetDrawRotation(self)
2974
2975 def GetDrawPos(self):
2976 r"""GetDrawPos(EDA_TEXT self) -> VECTOR2I"""
2977 return _pcbnew.EDA_TEXT_GetDrawPos(self)
2978
2980 r"""ClearRenderCache(EDA_TEXT self)"""
2981 return _pcbnew.EDA_TEXT_ClearRenderCache(self)
2982
2984 r"""ClearBoundingBoxCache(EDA_TEXT self)"""
2985 return _pcbnew.EDA_TEXT_ClearBoundingBoxCache(self)
2986
2987 def GetRenderCache(self, *args):
2988 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 > > >"""
2989 return _pcbnew.EDA_TEXT_GetRenderCache(self, *args)
2990
2991 def SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset):
2992 r"""SetupRenderCache(EDA_TEXT self, wxString aResolvedText, KIFONT::FONT const * aFont, EDA_ANGLE aAngle, VECTOR2I aOffset)"""
2993 return _pcbnew.EDA_TEXT_SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset)
2994
2995 def AddRenderCacheGlyph(self, aPoly):
2996 r"""AddRenderCacheGlyph(EDA_TEXT self, SHAPE_POLY_SET aPoly)"""
2997 return _pcbnew.EDA_TEXT_AddRenderCacheGlyph(self, aPoly)
2998
2999 def Compare(self, aOther):
3000 r"""Compare(EDA_TEXT self, EDA_TEXT aOther) -> int"""
3001 return _pcbnew.EDA_TEXT_Compare(self, aOther)
3002
3003 def __eq__(self, aRhs):
3004 r"""__eq__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
3005 return _pcbnew.EDA_TEXT___eq__(self, aRhs)
3006
3007 def __lt__(self, aRhs):
3008 r"""__lt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
3009 return _pcbnew.EDA_TEXT___lt__(self, aRhs)
3010
3011 def __gt__(self, aRhs):
3012 r"""__gt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
3013 return _pcbnew.EDA_TEXT___gt__(self, aRhs)
3014
3015 def HasHyperlink(self):
3016 r"""HasHyperlink(EDA_TEXT self) -> bool"""
3017 return _pcbnew.EDA_TEXT_HasHyperlink(self)
3018
3019 def GetHyperlink(self):
3020 r"""GetHyperlink(EDA_TEXT self) -> wxString"""
3021 return _pcbnew.EDA_TEXT_GetHyperlink(self)
3022
3023 def SetHyperlink(self, aLink):
3024 r"""SetHyperlink(EDA_TEXT self, wxString aLink)"""
3025 return _pcbnew.EDA_TEXT_SetHyperlink(self, aLink)
3026
3028 r"""RemoveHyperlink(EDA_TEXT self)"""
3029 return _pcbnew.EDA_TEXT_RemoveHyperlink(self)
3030
3031 @staticmethod
3033 r"""ValidateHyperlink(wxString aURL) -> bool"""
3034 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
3035
3036 @staticmethod
3037 def IsGotoPageHref(aHref, aDestination=None):
3038 r"""IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
3039 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
3040
3041 @staticmethod
3042 def GotoPageHref(aDestination):
3043 r"""GotoPageHref(wxString aDestination) -> wxString"""
3044 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
3045
3046# Register EDA_TEXT in _pcbnew:
3047_pcbnew.EDA_TEXT_swigregister(EDA_TEXT)
3048
3049def EDA_TEXT_MapHorizJustify(aHorizJustify):
3050 r"""EDA_TEXT_MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
3051 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
3052
3053def EDA_TEXT_MapVertJustify(aVertJustify):
3054 r"""EDA_TEXT_MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
3055 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
3056
3058 r"""EDA_TEXT_ValidateHyperlink(wxString aURL) -> bool"""
3059 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
3060
3061def EDA_TEXT_IsGotoPageHref(aHref, aDestination=None):
3062 r"""EDA_TEXT_IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
3063 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
3064
3065def EDA_TEXT_GotoPageHref(aDestination):
3066 r"""EDA_TEXT_GotoPageHref(wxString aDestination) -> wxString"""
3067 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
3068
3069
3071 r"""GetBuildVersion() -> wxString"""
3072 return _pcbnew.GetBuildVersion()
3073
3075 r"""GetBaseVersion() -> wxString"""
3076 return _pcbnew.GetBaseVersion()
3077
3079 r"""GetPlatformGetBitnessName() -> wxString"""
3080 return _pcbnew.GetPlatformGetBitnessName()
3081
3083 r"""GetSemanticVersion() -> wxString"""
3084 return _pcbnew.GetSemanticVersion()
3085
3087 r"""GetMajorMinorVersion() -> wxString"""
3088 return _pcbnew.GetMajorMinorVersion()
3089
3091 r"""GetMajorMinorPatchVersion() -> wxString"""
3092 return _pcbnew.GetMajorMinorPatchVersion()
3093
3095 r"""GetBuildDate() -> wxString"""
3096 return _pcbnew.GetBuildDate()
3097
3099 r"""GetCommitHash() -> wxString"""
3100 return _pcbnew.GetCommitHash()
3101
3103 r"""GetMajorMinorPatchTuple() -> std::tuple< int,int,int > const &"""
3104 return _pcbnew.GetMajorMinorPatchTuple()
3105
3107 r"""IsNightlyVersion() -> bool"""
3108 return _pcbnew.IsNightlyVersion()
3109
3110def SetOpenGLInfo(aRenderer, aVendor, aVersion):
3111 r"""SetOpenGLInfo(char const * aRenderer, char const * aVendor, char const * aVersion)"""
3112 return _pcbnew.SetOpenGLInfo(aRenderer, aVendor, aVersion)
3113
3114def GetVersionInfoData(aTitle, aHtml=False, aBrief=False):
3115 r"""GetVersionInfoData(wxString aTitle, bool aHtml=False, bool aBrief=False) -> wxString"""
3116 return _pcbnew.GetVersionInfoData(aTitle, aHtml, aBrief)
3117UNDEFINED_LAYER = _pcbnew.UNDEFINED_LAYER
3118
3119UNSELECTED_LAYER = _pcbnew.UNSELECTED_LAYER
3120
3121PCBNEW_LAYER_ID_START = _pcbnew.PCBNEW_LAYER_ID_START
3122
3123F_Cu = _pcbnew.F_Cu
3124
3125In1_Cu = _pcbnew.In1_Cu
3126
3127In2_Cu = _pcbnew.In2_Cu
3128
3129In3_Cu = _pcbnew.In3_Cu
3130
3131In4_Cu = _pcbnew.In4_Cu
3132
3133In5_Cu = _pcbnew.In5_Cu
3134
3135In6_Cu = _pcbnew.In6_Cu
3136
3137In7_Cu = _pcbnew.In7_Cu
3138
3139In8_Cu = _pcbnew.In8_Cu
3140
3141In9_Cu = _pcbnew.In9_Cu
3142
3143In10_Cu = _pcbnew.In10_Cu
3144
3145In11_Cu = _pcbnew.In11_Cu
3146
3147In12_Cu = _pcbnew.In12_Cu
3148
3149In13_Cu = _pcbnew.In13_Cu
3150
3151In14_Cu = _pcbnew.In14_Cu
3152
3153In15_Cu = _pcbnew.In15_Cu
3154
3155In16_Cu = _pcbnew.In16_Cu
3156
3157In17_Cu = _pcbnew.In17_Cu
3158
3159In18_Cu = _pcbnew.In18_Cu
3160
3161In19_Cu = _pcbnew.In19_Cu
3162
3163In20_Cu = _pcbnew.In20_Cu
3164
3165In21_Cu = _pcbnew.In21_Cu
3166
3167In22_Cu = _pcbnew.In22_Cu
3168
3169In23_Cu = _pcbnew.In23_Cu
3170
3171In24_Cu = _pcbnew.In24_Cu
3172
3173In25_Cu = _pcbnew.In25_Cu
3174
3175In26_Cu = _pcbnew.In26_Cu
3176
3177In27_Cu = _pcbnew.In27_Cu
3178
3179In28_Cu = _pcbnew.In28_Cu
3180
3181In29_Cu = _pcbnew.In29_Cu
3182
3183In30_Cu = _pcbnew.In30_Cu
3184
3185B_Cu = _pcbnew.B_Cu
3186
3187B_Adhes = _pcbnew.B_Adhes
3188
3189F_Adhes = _pcbnew.F_Adhes
3190
3191B_Paste = _pcbnew.B_Paste
3192
3193F_Paste = _pcbnew.F_Paste
3194
3195B_SilkS = _pcbnew.B_SilkS
3196
3197F_SilkS = _pcbnew.F_SilkS
3198
3199B_Mask = _pcbnew.B_Mask
3200
3201F_Mask = _pcbnew.F_Mask
3202
3203Dwgs_User = _pcbnew.Dwgs_User
3204
3205Cmts_User = _pcbnew.Cmts_User
3206
3207Eco1_User = _pcbnew.Eco1_User
3208
3209Eco2_User = _pcbnew.Eco2_User
3210
3211Edge_Cuts = _pcbnew.Edge_Cuts
3212
3213Margin = _pcbnew.Margin
3214
3215B_CrtYd = _pcbnew.B_CrtYd
3216
3217F_CrtYd = _pcbnew.F_CrtYd
3218
3219B_Fab = _pcbnew.B_Fab
3220
3221F_Fab = _pcbnew.F_Fab
3222
3223User_1 = _pcbnew.User_1
3224
3225User_2 = _pcbnew.User_2
3226
3227User_3 = _pcbnew.User_3
3228
3229User_4 = _pcbnew.User_4
3230
3231User_5 = _pcbnew.User_5
3232
3233User_6 = _pcbnew.User_6
3234
3235User_7 = _pcbnew.User_7
3236
3237User_8 = _pcbnew.User_8
3238
3239User_9 = _pcbnew.User_9
3240
3241Rescue = _pcbnew.Rescue
3242
3243PCB_LAYER_ID_COUNT = _pcbnew.PCB_LAYER_ID_COUNT
3244
3245FLASHING_DEFAULT = _pcbnew.FLASHING_DEFAULT
3246
3247FLASHING_ALWAYS_FLASHED = _pcbnew.FLASHING_ALWAYS_FLASHED
3248
3249FLASHING_NEVER_FLASHED = _pcbnew.FLASHING_NEVER_FLASHED
3250
3251NETNAMES_LAYER_ID_START = _pcbnew.NETNAMES_LAYER_ID_START
3252
3253NETNAMES_LAYER_ID_RESERVED = _pcbnew.NETNAMES_LAYER_ID_RESERVED
3254
3255LAYER_PAD_FR_NETNAMES = _pcbnew.LAYER_PAD_FR_NETNAMES
3256
3257LAYER_PAD_BK_NETNAMES = _pcbnew.LAYER_PAD_BK_NETNAMES
3258
3259LAYER_PAD_NETNAMES = _pcbnew.LAYER_PAD_NETNAMES
3260
3261LAYER_VIA_NETNAMES = _pcbnew.LAYER_VIA_NETNAMES
3262
3263NETNAMES_LAYER_ID_END = _pcbnew.NETNAMES_LAYER_ID_END
3264
3265GAL_UI_LAYER_COUNT = _pcbnew.GAL_UI_LAYER_COUNT
3266
3267GAL_LAYER_ID_START = _pcbnew.GAL_LAYER_ID_START
3268
3269LAYER_VIAS = _pcbnew.LAYER_VIAS
3270
3271LAYER_VIA_MICROVIA = _pcbnew.LAYER_VIA_MICROVIA
3272
3273LAYER_VIA_BBLIND = _pcbnew.LAYER_VIA_BBLIND
3274
3275LAYER_VIA_THROUGH = _pcbnew.LAYER_VIA_THROUGH
3276
3277LAYER_NON_PLATEDHOLES = _pcbnew.LAYER_NON_PLATEDHOLES
3278
3279LAYER_FP_TEXT = _pcbnew.LAYER_FP_TEXT
3280
3281LAYER_HIDDEN_TEXT = _pcbnew.LAYER_HIDDEN_TEXT
3282
3283LAYER_ANCHOR = _pcbnew.LAYER_ANCHOR
3284
3285LAYER_PADS_SMD_FR = _pcbnew.LAYER_PADS_SMD_FR
3286
3287LAYER_PADS_SMD_BK = _pcbnew.LAYER_PADS_SMD_BK
3288
3289LAYER_RATSNEST = _pcbnew.LAYER_RATSNEST
3290
3291LAYER_GRID = _pcbnew.LAYER_GRID
3292
3293LAYER_GRID_AXES = _pcbnew.LAYER_GRID_AXES
3294
3295LAYER_FOOTPRINTS_FR = _pcbnew.LAYER_FOOTPRINTS_FR
3296
3297LAYER_FOOTPRINTS_BK = _pcbnew.LAYER_FOOTPRINTS_BK
3298
3299LAYER_FP_VALUES = _pcbnew.LAYER_FP_VALUES
3300
3301LAYER_FP_REFERENCES = _pcbnew.LAYER_FP_REFERENCES
3302
3303LAYER_TRACKS = _pcbnew.LAYER_TRACKS
3304
3305LAYER_PADS_TH = _pcbnew.LAYER_PADS_TH
3306
3307LAYER_PAD_PLATEDHOLES = _pcbnew.LAYER_PAD_PLATEDHOLES
3308
3309LAYER_VIA_HOLES = _pcbnew.LAYER_VIA_HOLES
3310
3311LAYER_DRC_ERROR = _pcbnew.LAYER_DRC_ERROR
3312
3313LAYER_DRAWINGSHEET = _pcbnew.LAYER_DRAWINGSHEET
3314
3315LAYER_GP_OVERLAY = _pcbnew.LAYER_GP_OVERLAY
3316
3317LAYER_SELECT_OVERLAY = _pcbnew.LAYER_SELECT_OVERLAY
3318
3319LAYER_PCB_BACKGROUND = _pcbnew.LAYER_PCB_BACKGROUND
3320
3321LAYER_CURSOR = _pcbnew.LAYER_CURSOR
3322
3323LAYER_AUX_ITEMS = _pcbnew.LAYER_AUX_ITEMS
3324
3325LAYER_DRAW_BITMAPS = _pcbnew.LAYER_DRAW_BITMAPS
3326
3327GAL_LAYER_ID_BITMASK_END = _pcbnew.GAL_LAYER_ID_BITMASK_END
3328
3329LAYER_PADS = _pcbnew.LAYER_PADS
3330
3331LAYER_ZONES = _pcbnew.LAYER_ZONES
3332
3333LAYER_PAD_HOLEWALLS = _pcbnew.LAYER_PAD_HOLEWALLS
3334
3335LAYER_VIA_HOLEWALLS = _pcbnew.LAYER_VIA_HOLEWALLS
3336
3337LAYER_DRC_WARNING = _pcbnew.LAYER_DRC_WARNING
3338
3339LAYER_DRC_EXCLUSION = _pcbnew.LAYER_DRC_EXCLUSION
3340
3341LAYER_MARKER_SHADOWS = _pcbnew.LAYER_MARKER_SHADOWS
3342
3343LAYER_LOCKED_ITEM_SHADOW = _pcbnew.LAYER_LOCKED_ITEM_SHADOW
3344
3345LAYER_CONFLICTS_SHADOW = _pcbnew.LAYER_CONFLICTS_SHADOW
3346
3347LAYER_DRAWINGSHEET_PAGE1 = _pcbnew.LAYER_DRAWINGSHEET_PAGE1
3348
3349LAYER_DRAWINGSHEET_PAGEn = _pcbnew.LAYER_DRAWINGSHEET_PAGEn
3350
3351LAYER_PAGE_LIMITS = _pcbnew.LAYER_PAGE_LIMITS
3352
3353LAYER_ZONE_START = _pcbnew.LAYER_ZONE_START
3354
3355LAYER_ZONE_END = _pcbnew.LAYER_ZONE_END
3356
3357LAYER_BITMAP_START = _pcbnew.LAYER_BITMAP_START
3358
3359LAYER_BITMAP_END = _pcbnew.LAYER_BITMAP_END
3360
3361LAYER_UI_START = _pcbnew.LAYER_UI_START
3362
3363LAYER_UI_END = _pcbnew.LAYER_UI_END
3364
3365GAL_LAYER_ID_END = _pcbnew.GAL_LAYER_ID_END
3366
3367
3368def ToGalLayer(aInteger):
3369 r"""ToGalLayer(int aInteger) -> GAL_LAYER_ID"""
3370 return _pcbnew.ToGalLayer(aInteger)
3372 r"""Proxy of C++ GAL_SET class."""
3373
3374 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3375 __repr__ = _swig_repr
3376
3377 def __init__(self, *args):
3378 r"""
3379 __init__(GAL_SET self) -> GAL_SET
3380 __init__(GAL_SET self, GAL_SET aOther) -> GAL_SET
3381 __init__(GAL_SET self, GAL_LAYER_ID const * aArray, unsigned int aCount) -> GAL_SET
3382 """
3383 _pcbnew.GAL_SET_swiginit(self, _pcbnew.new_GAL_SET(*args))
3384
3385 def set(self, *args):
3386 r"""
3387 set(GAL_SET self) -> GAL_SET
3388 set(GAL_SET self, int aPos, bool aVal=True) -> GAL_SET
3389 set(GAL_SET self, GAL_LAYER_ID aPos, bool aVal=True) -> GAL_SET
3390 """
3391 return _pcbnew.GAL_SET_set(self, *args)
3392
3393 def Contains(self, aPos):
3394 r"""Contains(GAL_SET self, GAL_LAYER_ID aPos) -> bool"""
3395 return _pcbnew.GAL_SET_Contains(self, aPos)
3396
3397 def Seq(self):
3398 r"""Seq(GAL_SET self) -> std::vector< GAL_LAYER_ID,std::allocator< GAL_LAYER_ID > >"""
3399 return _pcbnew.GAL_SET_Seq(self)
3400
3401 @staticmethod
3403 r"""DefaultVisible() -> GAL_SET"""
3404 return _pcbnew.GAL_SET_DefaultVisible()
3405 __swig_destroy__ = _pcbnew.delete_GAL_SET
3406
3407# Register GAL_SET in _pcbnew:
3408_pcbnew.GAL_SET_swigregister(GAL_SET)
3409GAL_LAYER_ID_COUNT = cvar.GAL_LAYER_ID_COUNT
3410
3412 r"""GAL_SET_DefaultVisible() -> GAL_SET"""
3413 return _pcbnew.GAL_SET_DefaultVisible()
3414
3415SCH_LAYER_ID_START = _pcbnew.SCH_LAYER_ID_START
3416
3417LAYER_WIRE = _pcbnew.LAYER_WIRE
3418
3419LAYER_BUS = _pcbnew.LAYER_BUS
3420
3421LAYER_JUNCTION = _pcbnew.LAYER_JUNCTION
3422
3423LAYER_LOCLABEL = _pcbnew.LAYER_LOCLABEL
3424
3425LAYER_GLOBLABEL = _pcbnew.LAYER_GLOBLABEL
3426
3427LAYER_HIERLABEL = _pcbnew.LAYER_HIERLABEL
3428
3429LAYER_PINNUM = _pcbnew.LAYER_PINNUM
3430
3431LAYER_PINNAM = _pcbnew.LAYER_PINNAM
3432
3433LAYER_REFERENCEPART = _pcbnew.LAYER_REFERENCEPART
3434
3435LAYER_VALUEPART = _pcbnew.LAYER_VALUEPART
3436
3437LAYER_FIELDS = _pcbnew.LAYER_FIELDS
3438
3439LAYER_INTERSHEET_REFS = _pcbnew.LAYER_INTERSHEET_REFS
3440
3441LAYER_NETCLASS_REFS = _pcbnew.LAYER_NETCLASS_REFS
3442
3443LAYER_DEVICE = _pcbnew.LAYER_DEVICE
3444
3445LAYER_NOTES = _pcbnew.LAYER_NOTES
3446
3447LAYER_PRIVATE_NOTES = _pcbnew.LAYER_PRIVATE_NOTES
3448
3449LAYER_NOTES_BACKGROUND = _pcbnew.LAYER_NOTES_BACKGROUND
3450
3451LAYER_PIN = _pcbnew.LAYER_PIN
3452
3453LAYER_SHEET = _pcbnew.LAYER_SHEET
3454
3455LAYER_SHEETNAME = _pcbnew.LAYER_SHEETNAME
3456
3457LAYER_SHEETFILENAME = _pcbnew.LAYER_SHEETFILENAME
3458
3459LAYER_SHEETFIELDS = _pcbnew.LAYER_SHEETFIELDS
3460
3461LAYER_SHEETLABEL = _pcbnew.LAYER_SHEETLABEL
3462
3463LAYER_NOCONNECT = _pcbnew.LAYER_NOCONNECT
3464
3465LAYER_DANGLING = _pcbnew.LAYER_DANGLING
3466
3467LAYER_DNP_MARKER = _pcbnew.LAYER_DNP_MARKER
3468
3469LAYER_ERC_WARN = _pcbnew.LAYER_ERC_WARN
3470
3471LAYER_ERC_ERR = _pcbnew.LAYER_ERC_ERR
3472
3473LAYER_ERC_EXCLUSION = _pcbnew.LAYER_ERC_EXCLUSION
3474
3475LAYER_DEVICE_BACKGROUND = _pcbnew.LAYER_DEVICE_BACKGROUND
3476
3477LAYER_SHEET_BACKGROUND = _pcbnew.LAYER_SHEET_BACKGROUND
3478
3479LAYER_SCHEMATIC_GRID = _pcbnew.LAYER_SCHEMATIC_GRID
3480
3481LAYER_SCHEMATIC_GRID_AXES = _pcbnew.LAYER_SCHEMATIC_GRID_AXES
3482
3483LAYER_SCHEMATIC_BACKGROUND = _pcbnew.LAYER_SCHEMATIC_BACKGROUND
3484
3485LAYER_SCHEMATIC_CURSOR = _pcbnew.LAYER_SCHEMATIC_CURSOR
3486
3487LAYER_HOVERED = _pcbnew.LAYER_HOVERED
3488
3489LAYER_BRIGHTENED = _pcbnew.LAYER_BRIGHTENED
3490
3491LAYER_HIDDEN = _pcbnew.LAYER_HIDDEN
3492
3493LAYER_SELECTION_SHADOWS = _pcbnew.LAYER_SELECTION_SHADOWS
3494
3495LAYER_SCHEMATIC_DRAWINGSHEET = _pcbnew.LAYER_SCHEMATIC_DRAWINGSHEET
3496
3497LAYER_SCHEMATIC_PAGE_LIMITS = _pcbnew.LAYER_SCHEMATIC_PAGE_LIMITS
3498
3499LAYER_BUS_JUNCTION = _pcbnew.LAYER_BUS_JUNCTION
3500
3501LAYER_SCHEMATIC_AUX_ITEMS = _pcbnew.LAYER_SCHEMATIC_AUX_ITEMS
3502
3503LAYER_SCHEMATIC_ANCHOR = _pcbnew.LAYER_SCHEMATIC_ANCHOR
3504
3505LAYER_OP_VOLTAGES = _pcbnew.LAYER_OP_VOLTAGES
3506
3507LAYER_OP_CURRENTS = _pcbnew.LAYER_OP_CURRENTS
3508
3509SCH_LAYER_ID_END = _pcbnew.SCH_LAYER_ID_END
3510
3511GERBVIEW_LAYER_ID_START = _pcbnew.GERBVIEW_LAYER_ID_START
3512
3513GERBVIEW_LAYER_ID_RESERVED = _pcbnew.GERBVIEW_LAYER_ID_RESERVED
3514
3515LAYER_DCODES = _pcbnew.LAYER_DCODES
3516
3517LAYER_NEGATIVE_OBJECTS = _pcbnew.LAYER_NEGATIVE_OBJECTS
3518
3519LAYER_GERBVIEW_GRID = _pcbnew.LAYER_GERBVIEW_GRID
3520
3521LAYER_GERBVIEW_AXES = _pcbnew.LAYER_GERBVIEW_AXES
3522
3523LAYER_GERBVIEW_BACKGROUND = _pcbnew.LAYER_GERBVIEW_BACKGROUND
3524
3525LAYER_GERBVIEW_DRAWINGSHEET = _pcbnew.LAYER_GERBVIEW_DRAWINGSHEET
3526
3527LAYER_GERBVIEW_PAGE_LIMITS = _pcbnew.LAYER_GERBVIEW_PAGE_LIMITS
3528
3529GERBVIEW_LAYER_ID_END = _pcbnew.GERBVIEW_LAYER_ID_END
3530
3531LAYER_3D_START = _pcbnew.LAYER_3D_START
3532
3533LAYER_3D_BACKGROUND_BOTTOM = _pcbnew.LAYER_3D_BACKGROUND_BOTTOM
3534
3535LAYER_3D_BACKGROUND_TOP = _pcbnew.LAYER_3D_BACKGROUND_TOP
3536
3537LAYER_3D_BOARD = _pcbnew.LAYER_3D_BOARD
3538
3539LAYER_3D_COPPER_TOP = _pcbnew.LAYER_3D_COPPER_TOP
3540
3541LAYER_3D_COPPER_BOTTOM = _pcbnew.LAYER_3D_COPPER_BOTTOM
3542
3543LAYER_3D_SILKSCREEN_BOTTOM = _pcbnew.LAYER_3D_SILKSCREEN_BOTTOM
3544
3545LAYER_3D_SILKSCREEN_TOP = _pcbnew.LAYER_3D_SILKSCREEN_TOP
3546
3547LAYER_3D_SOLDERMASK_BOTTOM = _pcbnew.LAYER_3D_SOLDERMASK_BOTTOM
3548
3549LAYER_3D_SOLDERMASK_TOP = _pcbnew.LAYER_3D_SOLDERMASK_TOP
3550
3551LAYER_3D_SOLDERPASTE = _pcbnew.LAYER_3D_SOLDERPASTE
3552
3553LAYER_3D_ADHESIVE = _pcbnew.LAYER_3D_ADHESIVE
3554
3555LAYER_3D_USER_COMMENTS = _pcbnew.LAYER_3D_USER_COMMENTS
3556
3557LAYER_3D_USER_DRAWINGS = _pcbnew.LAYER_3D_USER_DRAWINGS
3558
3559LAYER_3D_USER_ECO1 = _pcbnew.LAYER_3D_USER_ECO1
3560
3561LAYER_3D_USER_ECO2 = _pcbnew.LAYER_3D_USER_ECO2
3562
3563LAYER_3D_TH_MODELS = _pcbnew.LAYER_3D_TH_MODELS
3564
3565LAYER_3D_SMD_MODELS = _pcbnew.LAYER_3D_SMD_MODELS
3566
3567LAYER_3D_VIRTUAL_MODELS = _pcbnew.LAYER_3D_VIRTUAL_MODELS
3568
3569LAYER_3D_MODELS_NOT_IN_POS = _pcbnew.LAYER_3D_MODELS_NOT_IN_POS
3570
3571LAYER_3D_MODELS_MARKED_DNP = _pcbnew.LAYER_3D_MODELS_MARKED_DNP
3572
3573LAYER_3D_AXES = _pcbnew.LAYER_3D_AXES
3574
3575LAYER_3D_BOUNDING_BOXES = _pcbnew.LAYER_3D_BOUNDING_BOXES
3576
3577LAYER_3D_OFF_BOARD_SILK = _pcbnew.LAYER_3D_OFF_BOARD_SILK
3578
3579LAYER_3D_END = _pcbnew.LAYER_3D_END
3580
3581
3582def LayerName(aLayer):
3583 r"""LayerName(int aLayer) -> wxString"""
3584 return _pcbnew.LayerName(aLayer)
3586 r"""Proxy of C++ LSEQ class."""
3587
3588 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3589 __repr__ = _swig_repr
3590
3591 def __init__(self, *args):
3592 r"""
3593 __init__(LSEQ self) -> LSEQ
3594 __init__(LSEQ self, std::initializer_list< PCB_LAYER_ID > aLayers) -> LSEQ
3595 """
3596 _pcbnew.LSEQ_swiginit(self, _pcbnew.new_LSEQ(*args))
3597
3598 def Rewind(self):
3599 r"""Rewind(LSEQ self)"""
3600 return _pcbnew.LSEQ_Rewind(self)
3601
3602 def __nonzero__(self):
3603 return _pcbnew.LSEQ___nonzero__(self)
3604 __bool__ = __nonzero__
3605
3606
3607
3608 def __ref__(self):
3609 r"""__ref__(LSEQ self) -> PCB_LAYER_ID"""
3610 return _pcbnew.LSEQ___ref__(self)
3611
3612 def TestLayers(self, aRhs, aLhs):
3613 r"""TestLayers(LSEQ self, PCB_LAYER_ID aRhs, PCB_LAYER_ID aLhs) -> int"""
3614 return _pcbnew.LSEQ_TestLayers(self, aRhs, aLhs)
3615 __swig_destroy__ = _pcbnew.delete_LSEQ
3616
3617# Register LSEQ in _pcbnew:
3618_pcbnew.LSEQ_swigregister(LSEQ)
3619
3621 r"""Proxy of C++ LSET class."""
3622
3623 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3624 __repr__ = _swig_repr
3625
3626 def __init__(self, *args):
3627 r"""
3628 __init__(LSET self) -> LSET
3629 __init__(LSET self, BASE_SET const & aOther) -> LSET
3630 __init__(LSET self, PCB_LAYER_ID aLayer) -> LSET
3631 __init__(LSET self, PCB_LAYER_ID const * aArray, unsigned int aCount) -> LSET
3632 __init__(LSET self, unsigned int aIdCount, int aFirst) -> LSET
3633 __init__(LSET self, LSEQ aSeq) -> LSET
3634 """
3635 _pcbnew.LSET_swiginit(self, _pcbnew.new_LSET(*args))
3636
3637 def Contains(self, aLayer):
3638 r"""Contains(LSET self, PCB_LAYER_ID aLayer) -> bool"""
3639 return _pcbnew.LSET_Contains(self, aLayer)
3640
3641 @staticmethod
3642 def Name(aLayerId):
3643 r"""Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3644 return _pcbnew.LSET_Name(aLayerId)
3645
3646 @staticmethod
3648 r"""InternalCuMask() -> LSET"""
3649 return _pcbnew.LSET_InternalCuMask()
3650
3651 @staticmethod
3653 r"""FrontAssembly() -> LSET"""
3654 return _pcbnew.LSET_FrontAssembly()
3655
3656 @staticmethod
3658 r"""BackAssembly() -> LSET"""
3659 return _pcbnew.LSET_BackAssembly()
3660
3661 @staticmethod
3662 def AllCuMask(*args):
3663 r"""AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3664 return _pcbnew.LSET_AllCuMask(*args)
3665
3666 @staticmethod
3668 r"""ExternalCuMask() -> LSET"""
3669 return _pcbnew.LSET_ExternalCuMask()
3670
3671 @staticmethod
3673 r"""AllNonCuMask() -> LSET"""
3674 return _pcbnew.LSET_AllNonCuMask()
3675
3676 @staticmethod
3678 r"""AllLayersMask() -> LSET"""
3679 return _pcbnew.LSET_AllLayersMask()
3680
3681 @staticmethod
3683 r"""FrontTechMask() -> LSET"""
3684 return _pcbnew.LSET_FrontTechMask()
3685
3686 @staticmethod
3688 r"""FrontBoardTechMask() -> LSET"""
3689 return _pcbnew.LSET_FrontBoardTechMask()
3690
3691 @staticmethod
3693 r"""BackTechMask() -> LSET"""
3694 return _pcbnew.LSET_BackTechMask()
3695
3696 @staticmethod
3698 r"""BackBoardTechMask() -> LSET"""
3699 return _pcbnew.LSET_BackBoardTechMask()
3700
3701 @staticmethod
3703 r"""AllTechMask() -> LSET"""
3704 return _pcbnew.LSET_AllTechMask()
3705
3706 @staticmethod
3708 r"""AllBoardTechMask() -> LSET"""
3709 return _pcbnew.LSET_AllBoardTechMask()
3710
3711 @staticmethod
3713 r"""FrontMask() -> LSET"""
3714 return _pcbnew.LSET_FrontMask()
3715
3716 @staticmethod
3718 r"""BackMask() -> LSET"""
3719 return _pcbnew.LSET_BackMask()
3720
3721 @staticmethod
3723 r"""SideSpecificMask() -> LSET"""
3724 return _pcbnew.LSET_SideSpecificMask()
3725
3726 @staticmethod
3728 r"""UserMask() -> LSET"""
3729 return _pcbnew.LSET_UserMask()
3730
3731 @staticmethod
3733 r"""PhysicalLayersMask() -> LSET"""
3734 return _pcbnew.LSET_PhysicalLayersMask()
3735
3736 @staticmethod
3738 r"""UserDefinedLayers() -> LSET"""
3739 return _pcbnew.LSET_UserDefinedLayers()
3740
3741 @staticmethod
3743 r"""ForbiddenFootprintLayers() -> LSET"""
3744 return _pcbnew.LSET_ForbiddenFootprintLayers()
3745
3746 def CuStack(self):
3747 r"""CuStack(LSET self) -> LSEQ"""
3748 return _pcbnew.LSET_CuStack(self)
3749
3750 def Technicals(self, *args):
3751 r"""Technicals(LSET self, LSET aSubToOmit=LSET()) -> LSEQ"""
3752 return _pcbnew.LSET_Technicals(self, *args)
3753
3754 def Users(self):
3755 r"""Users(LSET self) -> LSEQ"""
3756 return _pcbnew.LSET_Users(self)
3757
3759 r"""TechAndUserUIOrder(LSET self) -> LSEQ"""
3760 return _pcbnew.LSET_TechAndUserUIOrder(self)
3761
3762 def UIOrder(self):
3763 r"""UIOrder(LSET self) -> LSEQ"""
3764 return _pcbnew.LSET_UIOrder(self)
3765
3766 def Seq(self, *args):
3767 r"""
3768 Seq(LSET self, PCB_LAYER_ID const * aWishListSequence, unsigned int aCount) -> LSEQ
3769 Seq(LSET self, LSEQ aSequence) -> LSEQ
3770 Seq(LSET self) -> LSEQ
3771 """
3772 return _pcbnew.LSET_Seq(self, *args)
3773
3774 def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER):
3775 r"""SeqStackupTop2Bottom(LSET self, PCB_LAYER_ID aSelectedLayer=UNDEFINED_LAYER) -> LSEQ"""
3776 return _pcbnew.LSET_SeqStackupTop2Bottom(self, aSelectedLayer)
3777
3779 r"""SeqStackupForPlotting(LSET self) -> LSEQ"""
3780 return _pcbnew.LSET_SeqStackupForPlotting(self)
3781
3782 def FmtHex(self):
3783 r"""FmtHex(LSET self) -> string"""
3784 return _pcbnew.LSET_FmtHex(self)
3785
3786 def ParseHex(self, aStart, aCount):
3787 r"""ParseHex(LSET self, char const * aStart, int aCount) -> int"""
3788 return _pcbnew.LSET_ParseHex(self, aStart, aCount)
3789
3790 def FmtBin(self):
3791 r"""FmtBin(LSET self) -> string"""
3792 return _pcbnew.LSET_FmtBin(self)
3793
3794 def ExtractLayer(self):
3795 r"""ExtractLayer(LSET self) -> PCB_LAYER_ID"""
3796 return _pcbnew.LSET_ExtractLayer(self)
3797
3798 def addLayer(self, aLayer):
3799 r"""addLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3800 return _pcbnew.LSET_addLayer(self, aLayer)
3801
3802 def removeLayer(self, aLayer):
3803 r"""removeLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3804 return _pcbnew.LSET_removeLayer(self, aLayer)
3805
3806 def addLayerSet(self, aLayerSet):
3807 r"""addLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3808 return _pcbnew.LSET_addLayerSet(self, aLayerSet)
3809
3810 def removeLayerSet(self, aLayerSet):
3811 r"""removeLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3812 return _pcbnew.LSET_removeLayerSet(self, aLayerSet)
3813
3814 def AddLayer(self, layer):
3815 return self.addLayer( layer )
3816
3817 def AddLayerSet(self, layers):
3818 return self.addLayerSet( layers )
3819
3820 def RemoveLayer(self, layer):
3821 return self.removeLayer( layer )
3822
3823 def RemoveLayerSet(self, layers):
3824 return self.removeLayerSet( layers )
3825
3826 __swig_destroy__ = _pcbnew.delete_LSET
3827
3828# Register LSET in _pcbnew:
3829_pcbnew.LSET_swigregister(LSET)
3830
3831def LSET_Name(aLayerId):
3832 r"""LSET_Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3833 return _pcbnew.LSET_Name(aLayerId)
3834
3836 r"""LSET_InternalCuMask() -> LSET"""
3837 return _pcbnew.LSET_InternalCuMask()
3838
3840 r"""LSET_FrontAssembly() -> LSET"""
3841 return _pcbnew.LSET_FrontAssembly()
3842
3844 r"""LSET_BackAssembly() -> LSET"""
3845 return _pcbnew.LSET_BackAssembly()
3846
3848 r"""LSET_AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3849 return _pcbnew.LSET_AllCuMask(*args)
3850
3852 r"""LSET_ExternalCuMask() -> LSET"""
3853 return _pcbnew.LSET_ExternalCuMask()
3854
3856 r"""LSET_AllNonCuMask() -> LSET"""
3857 return _pcbnew.LSET_AllNonCuMask()
3858
3860 r"""LSET_AllLayersMask() -> LSET"""
3861 return _pcbnew.LSET_AllLayersMask()
3862
3864 r"""LSET_FrontTechMask() -> LSET"""
3865 return _pcbnew.LSET_FrontTechMask()
3866
3868 r"""LSET_FrontBoardTechMask() -> LSET"""
3869 return _pcbnew.LSET_FrontBoardTechMask()
3870
3872 r"""LSET_BackTechMask() -> LSET"""
3873 return _pcbnew.LSET_BackTechMask()
3874
3876 r"""LSET_BackBoardTechMask() -> LSET"""
3877 return _pcbnew.LSET_BackBoardTechMask()
3878
3880 r"""LSET_AllTechMask() -> LSET"""
3881 return _pcbnew.LSET_AllTechMask()
3882
3884 r"""LSET_AllBoardTechMask() -> LSET"""
3885 return _pcbnew.LSET_AllBoardTechMask()
3886
3888 r"""LSET_FrontMask() -> LSET"""
3889 return _pcbnew.LSET_FrontMask()
3890
3892 r"""LSET_BackMask() -> LSET"""
3893 return _pcbnew.LSET_BackMask()
3894
3896 r"""LSET_SideSpecificMask() -> LSET"""
3897 return _pcbnew.LSET_SideSpecificMask()
3898
3900 r"""LSET_UserMask() -> LSET"""
3901 return _pcbnew.LSET_UserMask()
3902
3904 r"""LSET_PhysicalLayersMask() -> LSET"""
3905 return _pcbnew.LSET_PhysicalLayersMask()
3906
3908 r"""LSET_UserDefinedLayers() -> LSET"""
3909 return _pcbnew.LSET_UserDefinedLayers()
3910
3912 r"""LSET_ForbiddenFootprintLayers() -> LSET"""
3913 return _pcbnew.LSET_ForbiddenFootprintLayers()
3914
3915
3916def IsValidLayer(aLayerId):
3917 r"""IsValidLayer(int aLayerId) -> bool"""
3918 return _pcbnew.IsValidLayer(aLayerId)
3919
3920def IsPcbLayer(aLayer):
3921 r"""IsPcbLayer(int aLayer) -> bool"""
3922 return _pcbnew.IsPcbLayer(aLayer)
3923
3924def IsNonCopperLayer(aLayerId):
3925 r"""IsNonCopperLayer(int aLayerId) -> bool"""
3926 return _pcbnew.IsNonCopperLayer(aLayerId)
3927
3928def IsCopperLayer(*args):
3929 r"""
3930 IsCopperLayer(int aLayerId) -> bool
3931 IsCopperLayer(int aLayerId, bool aIncludeSyntheticCopperLayers) -> bool
3932 """
3933 return _pcbnew.IsCopperLayer(*args)
3934
3935def IsViaPadLayer(aLayer):
3936 r"""IsViaPadLayer(int aLayer) -> bool"""
3937 return _pcbnew.IsViaPadLayer(aLayer)
3938
3939def IsHoleLayer(aLayer):
3940 r"""IsHoleLayer(int aLayer) -> bool"""
3941 return _pcbnew.IsHoleLayer(aLayer)
3942
3943def IsUserLayer(aLayerId):
3944 r"""IsUserLayer(PCB_LAYER_ID aLayerId) -> bool"""
3945 return _pcbnew.IsUserLayer(aLayerId)
3946
3947def IsFrontLayer(aLayerId):
3948 r"""IsFrontLayer(PCB_LAYER_ID aLayerId) -> bool"""
3949 return _pcbnew.IsFrontLayer(aLayerId)
3950
3951def IsBackLayer(aLayerId):
3952 r"""IsBackLayer(PCB_LAYER_ID aLayerId) -> bool"""
3953 return _pcbnew.IsBackLayer(aLayerId)
3954
3955def FlipLayer(aLayerId, aCopperLayersCount=0):
3956 r"""FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount=0) -> PCB_LAYER_ID"""
3957 return _pcbnew.FlipLayer(aLayerId, aCopperLayersCount)
3958
3959def FlipLayerMask(aMask, aCopperLayersCount=0):
3960 r"""FlipLayerMask(LSET aMask, int aCopperLayersCount=0) -> LSET"""
3961 return _pcbnew.FlipLayerMask(aMask, aCopperLayersCount)
3962
3964 r"""GetNetnameLayer(int aLayer) -> int"""
3965 return _pcbnew.GetNetnameLayer(aLayer)
3966
3967def IsNetnameLayer(aLayer):
3968 r"""IsNetnameLayer(int aLayer) -> bool"""
3969 return _pcbnew.IsNetnameLayer(aLayer)
3970
3972 r"""IsZoneFillLayer(int aLayer) -> bool"""
3973 return _pcbnew.IsZoneFillLayer(aLayer)
3974
3975def IsDCodeLayer(aLayer):
3976 r"""IsDCodeLayer(int aLayer) -> bool"""
3977 return _pcbnew.IsDCodeLayer(aLayer)
3978
3980 r"""IsNetCopperLayer(int aLayer) -> bool"""
3981 return _pcbnew.IsNetCopperLayer(aLayer)
3982
3983def ToLAYER_ID(aLayer):
3984 r"""ToLAYER_ID(int aLayer) -> PCB_LAYER_ID"""
3985 return _pcbnew.ToLAYER_ID(aLayer)
3987 r"""Proxy of C++ SETTINGS_MANAGER class."""
3988
3989 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3990 __repr__ = _swig_repr
3991
3992 def __init__(self, aHeadless=False):
3993 r"""__init__(SETTINGS_MANAGER self, bool aHeadless=False) -> SETTINGS_MANAGER"""
3994 _pcbnew.SETTINGS_MANAGER_swiginit(self, _pcbnew.new_SETTINGS_MANAGER(aHeadless))
3995 __swig_destroy__ = _pcbnew.delete_SETTINGS_MANAGER
3996
3997 def IsOK(self):
3998 r"""IsOK(SETTINGS_MANAGER self) -> bool"""
3999 return _pcbnew.SETTINGS_MANAGER_IsOK(self)
4000
4001 def SetKiway(self, aKiway):
4002 r"""SetKiway(SETTINGS_MANAGER self, KIWAY * aKiway)"""
4003 return _pcbnew.SETTINGS_MANAGER_SetKiway(self, aKiway)
4004
4005 def Load(self, *args):
4006 r"""
4007 Load(SETTINGS_MANAGER self)
4008 Load(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
4009 """
4010 return _pcbnew.SETTINGS_MANAGER_Load(self, *args)
4011
4012 def Save(self, *args):
4013 r"""
4014 Save(SETTINGS_MANAGER self)
4015 Save(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
4016 """
4017 return _pcbnew.SETTINGS_MANAGER_Save(self, *args)
4018
4019 def FlushAndRelease(self, aSettings, aSave=True):
4020 r"""FlushAndRelease(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings, bool aSave=True)"""
4021 return _pcbnew.SETTINGS_MANAGER_FlushAndRelease(self, aSettings, aSave)
4022
4023 def GetColorSettings(self, *args):
4024 r"""GetColorSettings(SETTINGS_MANAGER self, wxString aName="user") -> COLOR_SETTINGS"""
4025 return _pcbnew.SETTINGS_MANAGER_GetColorSettings(self, *args)
4026
4028 r"""GetColorSettingsList(SETTINGS_MANAGER self) -> std::vector< COLOR_SETTINGS *,std::allocator< COLOR_SETTINGS * > >"""
4029 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsList(self)
4030
4031 def SaveColorSettings(self, *args):
4032 r"""SaveColorSettings(SETTINGS_MANAGER self, COLOR_SETTINGS * aSettings, string aNamespace="")"""
4033 return _pcbnew.SETTINGS_MANAGER_SaveColorSettings(self, *args)
4034
4035 def AddNewColorSettings(self, aFilename):
4036 r"""AddNewColorSettings(SETTINGS_MANAGER self, wxString aFilename) -> COLOR_SETTINGS *"""
4037 return _pcbnew.SETTINGS_MANAGER_AddNewColorSettings(self, aFilename)
4038
4040 r"""GetMigratedColorSettings(SETTINGS_MANAGER self) -> COLOR_SETTINGS *"""
4041 return _pcbnew.SETTINGS_MANAGER_GetMigratedColorSettings(self)
4042
4044 r"""GetCommonSettings(SETTINGS_MANAGER self) -> COMMON_SETTINGS *"""
4045 return _pcbnew.SETTINGS_MANAGER_GetCommonSettings(self)
4046
4047 def GetPathForSettingsFile(self, aSettings):
4048 r"""GetPathForSettingsFile(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings) -> wxString"""
4049 return _pcbnew.SETTINGS_MANAGER_GetPathForSettingsFile(self, aSettings)
4050
4052 r"""MigrateIfNeeded(SETTINGS_MANAGER self) -> bool"""
4053 return _pcbnew.SETTINGS_MANAGER_MigrateIfNeeded(self)
4054
4055 def SetMigrationSource(self, aSource):
4056 r"""SetMigrationSource(SETTINGS_MANAGER self, wxString aSource)"""
4057 return _pcbnew.SETTINGS_MANAGER_SetMigrationSource(self, aSource)
4058
4059 def SetMigrateLibraryTables(self, aMigrate=True):
4060 r"""SetMigrateLibraryTables(SETTINGS_MANAGER self, bool aMigrate=True)"""
4061 return _pcbnew.SETTINGS_MANAGER_SetMigrateLibraryTables(self, aMigrate)
4062
4063 def GetPreviousVersionPaths(self, aName=None):
4064 r"""GetPreviousVersionPaths(SETTINGS_MANAGER self, std::vector< wxString,std::allocator< wxString > > * aName=None) -> bool"""
4065 return _pcbnew.SETTINGS_MANAGER_GetPreviousVersionPaths(self, aName)
4066
4068 r"""ReloadColorSettings(SETTINGS_MANAGER self)"""
4069 return _pcbnew.SETTINGS_MANAGER_ReloadColorSettings(self)
4070
4071 def LoadProject(self, aFullPath, aSetActive=True):
4072 r"""LoadProject(SETTINGS_MANAGER self, wxString aFullPath, bool aSetActive=True) -> bool"""
4073 return _pcbnew.SETTINGS_MANAGER_LoadProject(self, aFullPath, aSetActive)
4074
4075 def UnloadProject(self, aProject, aSave=True):
4076 r"""UnloadProject(SETTINGS_MANAGER self, PROJECT * aProject, bool aSave=True) -> bool"""
4077 return _pcbnew.SETTINGS_MANAGER_UnloadProject(self, aProject, aSave)
4078
4079 def IsProjectOpen(self):
4080 r"""IsProjectOpen(SETTINGS_MANAGER self) -> bool"""
4081 return _pcbnew.SETTINGS_MANAGER_IsProjectOpen(self)
4082
4083 def Prj(self):
4084 r"""Prj(SETTINGS_MANAGER self) -> PROJECT &"""
4085 return _pcbnew.SETTINGS_MANAGER_Prj(self)
4086
4087 def GetProject(self, aFullPath):
4088 r"""GetProject(SETTINGS_MANAGER self, wxString aFullPath) -> PROJECT *"""
4089 return _pcbnew.SETTINGS_MANAGER_GetProject(self, aFullPath)
4090
4092 r"""GetOpenProjects(SETTINGS_MANAGER self) -> std::vector< wxString,std::allocator< wxString > >"""
4093 return _pcbnew.SETTINGS_MANAGER_GetOpenProjects(self)
4094
4095 def SaveProject(self, *args):
4096 r"""SaveProject(SETTINGS_MANAGER self, wxString aFullPath=wxEmptyString, PROJECT * aProject=None) -> bool"""
4097 return _pcbnew.SETTINGS_MANAGER_SaveProject(self, *args)
4098
4099 def SaveProjectAs(self, aFullPath, aProject=None):
4100 r"""SaveProjectAs(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
4101 return _pcbnew.SETTINGS_MANAGER_SaveProjectAs(self, aFullPath, aProject)
4102
4103 def SaveProjectCopy(self, aFullPath, aProject=None):
4104 r"""SaveProjectCopy(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
4105 return _pcbnew.SETTINGS_MANAGER_SaveProjectCopy(self, aFullPath, aProject)
4106
4108 r"""GetProjectBackupsPath(SETTINGS_MANAGER self) -> wxString"""
4109 return _pcbnew.SETTINGS_MANAGER_GetProjectBackupsPath(self)
4110
4111 def BackupProject(self, aReporter):
4112 r"""BackupProject(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4113 return _pcbnew.SETTINGS_MANAGER_BackupProject(self, aReporter)
4114
4115 def TriggerBackupIfNeeded(self, aReporter):
4116 r"""TriggerBackupIfNeeded(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4117 return _pcbnew.SETTINGS_MANAGER_TriggerBackupIfNeeded(self, aReporter)
4118
4119 @staticmethod
4121 r"""IsSettingsPathValid(wxString aPath) -> bool"""
4122 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4123
4124 @staticmethod
4126 r"""GetColorSettingsPath() -> wxString"""
4127 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4128
4129 @staticmethod
4131 r"""GetSettingsVersion() -> string"""
4132 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4133
4134 @staticmethod
4136 r"""GetUserSettingsPath() -> wxString"""
4137 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4138
4139# Register SETTINGS_MANAGER in _pcbnew:
4140_pcbnew.SETTINGS_MANAGER_swigregister(SETTINGS_MANAGER)
4141
4143 r"""SETTINGS_MANAGER_IsSettingsPathValid(wxString aPath) -> bool"""
4144 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4145
4147 r"""SETTINGS_MANAGER_GetColorSettingsPath() -> wxString"""
4148 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4149
4151 r"""SETTINGS_MANAGER_GetSettingsVersion() -> string"""
4152 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4153
4155 r"""SETTINGS_MANAGER_GetUserSettingsPath() -> wxString"""
4156 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4157
4159 r"""Proxy of C++ UTILS_BOX3D class."""
4160
4161 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4162 __repr__ = _swig_repr
4163
4164 def Min(self):
4165 r"""Min(UTILS_BOX3D self) -> VECTOR3D"""
4166 return _pcbnew.UTILS_BOX3D_Min(self)
4167
4168 def Max(self):
4169 r"""Max(UTILS_BOX3D self) -> VECTOR3D"""
4170 return _pcbnew.UTILS_BOX3D_Max(self)
4171
4172 def GetCenter(self):
4173 r"""GetCenter(UTILS_BOX3D self) -> VECTOR3D"""
4174 return _pcbnew.UTILS_BOX3D_GetCenter(self)
4175
4176 def GetSize(self):
4177 r"""GetSize(UTILS_BOX3D self) -> VECTOR3D"""
4178 return _pcbnew.UTILS_BOX3D_GetSize(self)
4179
4180 def __init__(self):
4181 r"""__init__(UTILS_BOX3D self) -> UTILS_BOX3D"""
4182 _pcbnew.UTILS_BOX3D_swiginit(self, _pcbnew.new_UTILS_BOX3D())
4183 __swig_destroy__ = _pcbnew.delete_UTILS_BOX3D
4184
4185# Register UTILS_BOX3D in _pcbnew:
4186_pcbnew.UTILS_BOX3D_swigregister(UTILS_BOX3D)
4187
4189 r"""Proxy of C++ UTILS_STEP_MODEL class."""
4190
4191 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4192 __repr__ = _swig_repr
4193
4195 r"""GetBoundingBox(UTILS_STEP_MODEL self) -> UTILS_BOX3D"""
4196 return _pcbnew.UTILS_STEP_MODEL_GetBoundingBox(self)
4197
4198 def Translate(self, aX, aY, aZ):
4199 r"""Translate(UTILS_STEP_MODEL self, double aX, double aY, double aZ)"""
4200 return _pcbnew.UTILS_STEP_MODEL_Translate(self, aX, aY, aZ)
4201
4202 def Scale(self, aScale):
4203 r"""Scale(UTILS_STEP_MODEL self, double aScale)"""
4204 return _pcbnew.UTILS_STEP_MODEL_Scale(self, aScale)
4205
4206 def SaveSTEP(self, aFileName):
4207 r"""SaveSTEP(UTILS_STEP_MODEL self, wxString aFileName) -> bool"""
4208 return _pcbnew.UTILS_STEP_MODEL_SaveSTEP(self, aFileName)
4209
4210 @staticmethod
4211 def LoadSTEP(aFileName):
4212 r"""LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
4213 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
4214
4215 def __init__(self):
4216 r"""__init__(UTILS_STEP_MODEL self) -> UTILS_STEP_MODEL"""
4217 _pcbnew.UTILS_STEP_MODEL_swiginit(self, _pcbnew.new_UTILS_STEP_MODEL())
4218
4219# Register UTILS_STEP_MODEL in _pcbnew:
4220_pcbnew.UTILS_STEP_MODEL_swigregister(UTILS_STEP_MODEL)
4221
4223 r"""UTILS_STEP_MODEL_LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
4224 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
4225
4227 r"""Proxy of C++ std::vector< int > class."""
4228
4229 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4230 __repr__ = _swig_repr
4231
4232 def iterator(self):
4233 r"""iterator(intVector self) -> SwigPyIterator"""
4234 return _pcbnew.intVector_iterator(self)
4235 def __iter__(self):
4236 return self.iterator()
4237
4238 def __nonzero__(self):
4239 r"""__nonzero__(intVector self) -> bool"""
4240 return _pcbnew.intVector___nonzero__(self)
4241
4242 def __bool__(self):
4243 r"""__bool__(intVector self) -> bool"""
4244 return _pcbnew.intVector___bool__(self)
4245
4246 def __len__(self):
4247 r"""__len__(intVector self) -> std::vector< int >::size_type"""
4248 return _pcbnew.intVector___len__(self)
4249
4250 def __getslice__(self, i, j):
4251 r"""__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
4252 return _pcbnew.intVector___getslice__(self, i, j)
4253
4254 def __setslice__(self, *args):
4255 r"""
4256 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
4257 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
4258 """
4259 return _pcbnew.intVector___setslice__(self, *args)
4260
4261 def __delslice__(self, i, j):
4262 r"""__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
4263 return _pcbnew.intVector___delslice__(self, i, j)
4264
4265 def __delitem__(self, *args):
4266 r"""
4267 __delitem__(intVector self, std::vector< int >::difference_type i)
4268 __delitem__(intVector self, PySliceObject * slice)
4269 """
4270 return _pcbnew.intVector___delitem__(self, *args)
4271
4272 def __getitem__(self, *args):
4273 r"""
4274 __getitem__(intVector self, PySliceObject * slice) -> intVector
4275 __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
4276 """
4277 return _pcbnew.intVector___getitem__(self, *args)
4278
4279 def __setitem__(self, *args):
4280 r"""
4281 __setitem__(intVector self, PySliceObject * slice, intVector v)
4282 __setitem__(intVector self, PySliceObject * slice)
4283 __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
4284 """
4285 return _pcbnew.intVector___setitem__(self, *args)
4286
4287 def pop(self):
4288 r"""pop(intVector self) -> std::vector< int >::value_type"""
4289 return _pcbnew.intVector_pop(self)
4290
4291 def append(self, x):
4292 r"""append(intVector self, std::vector< int >::value_type const & x)"""
4293 return _pcbnew.intVector_append(self, x)
4294
4295 def empty(self):
4296 r"""empty(intVector self) -> bool"""
4297 return _pcbnew.intVector_empty(self)
4298
4299 def size(self):
4300 r"""size(intVector self) -> std::vector< int >::size_type"""
4301 return _pcbnew.intVector_size(self)
4302
4303 def swap(self, v):
4304 r"""swap(intVector self, intVector v)"""
4305 return _pcbnew.intVector_swap(self, v)
4306
4307 def begin(self):
4308 r"""begin(intVector self) -> std::vector< int >::iterator"""
4309 return _pcbnew.intVector_begin(self)
4310
4311 def end(self):
4312 r"""end(intVector self) -> std::vector< int >::iterator"""
4313 return _pcbnew.intVector_end(self)
4314
4315 def rbegin(self):
4316 r"""rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
4317 return _pcbnew.intVector_rbegin(self)
4318
4319 def rend(self):
4320 r"""rend(intVector self) -> std::vector< int >::reverse_iterator"""
4321 return _pcbnew.intVector_rend(self)
4322
4323 def clear(self):
4324 r"""clear(intVector self)"""
4325 return _pcbnew.intVector_clear(self)
4326
4327 def get_allocator(self):
4328 r"""get_allocator(intVector self) -> std::vector< int >::allocator_type"""
4329 return _pcbnew.intVector_get_allocator(self)
4330
4331 def pop_back(self):
4332 r"""pop_back(intVector self)"""
4333 return _pcbnew.intVector_pop_back(self)
4334
4335 def erase(self, *args):
4336 r"""
4337 erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
4338 erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
4339 """
4340 return _pcbnew.intVector_erase(self, *args)
4341
4342 def __init__(self, *args):
4343 r"""
4344 __init__(intVector self) -> intVector
4345 __init__(intVector self, intVector other) -> intVector
4346 __init__(intVector self, std::vector< int >::size_type size) -> intVector
4347 __init__(intVector self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
4348 """
4349 _pcbnew.intVector_swiginit(self, _pcbnew.new_intVector(*args))
4350
4351 def push_back(self, x):
4352 r"""push_back(intVector self, std::vector< int >::value_type const & x)"""
4353 return _pcbnew.intVector_push_back(self, x)
4354
4355 def front(self):
4356 r"""front(intVector self) -> std::vector< int >::value_type const &"""
4357 return _pcbnew.intVector_front(self)
4358
4359 def back(self):
4360 r"""back(intVector self) -> std::vector< int >::value_type const &"""
4361 return _pcbnew.intVector_back(self)
4362
4363 def assign(self, n, x):
4364 r"""assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
4365 return _pcbnew.intVector_assign(self, n, x)
4366
4367 def resize(self, *args):
4368 r"""
4369 resize(intVector self, std::vector< int >::size_type new_size)
4370 resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
4371 """
4372 return _pcbnew.intVector_resize(self, *args)
4373
4374 def insert(self, *args):
4375 r"""
4376 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
4377 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
4378 """
4379 return _pcbnew.intVector_insert(self, *args)
4380
4381 def reserve(self, n):
4382 r"""reserve(intVector self, std::vector< int >::size_type n)"""
4383 return _pcbnew.intVector_reserve(self, n)
4384
4385 def capacity(self):
4386 r"""capacity(intVector self) -> std::vector< int >::size_type"""
4387 return _pcbnew.intVector_capacity(self)
4388 __swig_destroy__ = _pcbnew.delete_intVector
4389
4390# Register intVector in _pcbnew:
4391_pcbnew.intVector_swigregister(intVector)
4392
4394 r"""Proxy of C++ std::map< std::string,UTF8 > class."""
4395
4396 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4397 __repr__ = _swig_repr
4398
4399 def iterator(self):
4400 r"""iterator(str_utf8_Map self) -> SwigPyIterator"""
4401 return _pcbnew.str_utf8_Map_iterator(self)
4402 def __iter__(self):
4403 return self.iterator()
4404
4405 def __nonzero__(self):
4406 r"""__nonzero__(str_utf8_Map self) -> bool"""
4407 return _pcbnew.str_utf8_Map___nonzero__(self)
4408
4409 def __bool__(self):
4410 r"""__bool__(str_utf8_Map self) -> bool"""
4411 return _pcbnew.str_utf8_Map___bool__(self)
4412
4413 def __len__(self):
4414 r"""__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4415 return _pcbnew.str_utf8_Map___len__(self)
4416 def __iter__(self):
4417 return self.key_iterator()
4418 def iterkeys(self):
4419 return self.key_iterator()
4420 def itervalues(self):
4421 return self.value_iterator()
4422 def iteritems(self):
4423 return self.iterator()
4424
4425 def __getitem__(self, key):
4426 r"""__getitem__(str_utf8_Map self, string key) -> UTF8"""
4427 return _pcbnew.str_utf8_Map___getitem__(self, key)
4428
4429 def __delitem__(self, key):
4430 r"""__delitem__(str_utf8_Map self, string key)"""
4431 return _pcbnew.str_utf8_Map___delitem__(self, key)
4432
4433 def has_key(self, key):
4434 r"""has_key(str_utf8_Map self, string key) -> bool"""
4435 return _pcbnew.str_utf8_Map_has_key(self, key)
4436
4437 def keys(self):
4438 r"""keys(str_utf8_Map self) -> PyObject *"""
4439 return _pcbnew.str_utf8_Map_keys(self)
4440
4441 def values(self):
4442 r"""values(str_utf8_Map self) -> PyObject *"""
4443 return _pcbnew.str_utf8_Map_values(self)
4444
4445 def items(self):
4446 r"""items(str_utf8_Map self) -> PyObject *"""
4447 return _pcbnew.str_utf8_Map_items(self)
4448
4449 def __contains__(self, key):
4450 r"""__contains__(str_utf8_Map self, string key) -> bool"""
4451 return _pcbnew.str_utf8_Map___contains__(self, key)
4452
4453 def key_iterator(self):
4454 r"""key_iterator(str_utf8_Map self) -> SwigPyIterator"""
4455 return _pcbnew.str_utf8_Map_key_iterator(self)
4456
4458 r"""value_iterator(str_utf8_Map self) -> SwigPyIterator"""
4459 return _pcbnew.str_utf8_Map_value_iterator(self)
4460
4461 def __setitem__(self, *args):
4462 r"""
4463 __setitem__(str_utf8_Map self, string key)
4464 __setitem__(str_utf8_Map self, string key, UTF8 x)
4465 """
4466 return _pcbnew.str_utf8_Map___setitem__(self, *args)
4467
4468 def asdict(self):
4469 r"""asdict(str_utf8_Map self) -> PyObject *"""
4470 return _pcbnew.str_utf8_Map_asdict(self)
4471
4472 def __init__(self, *args):
4473 r"""
4474 __init__(str_utf8_Map self, std::less< std::basic_string< char,std::char_traits< char >,std::allocator< char > > > const & other) -> str_utf8_Map
4475 __init__(str_utf8_Map self) -> str_utf8_Map
4476 __init__(str_utf8_Map self, str_utf8_Map other) -> str_utf8_Map
4477 """
4478 _pcbnew.str_utf8_Map_swiginit(self, _pcbnew.new_str_utf8_Map(*args))
4479
4480 def empty(self):
4481 r"""empty(str_utf8_Map self) -> bool"""
4482 return _pcbnew.str_utf8_Map_empty(self)
4483
4484 def size(self):
4485 r"""size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4486 return _pcbnew.str_utf8_Map_size(self)
4487
4488 def swap(self, v):
4489 r"""swap(str_utf8_Map self, str_utf8_Map v)"""
4490 return _pcbnew.str_utf8_Map_swap(self, v)
4491
4492 def begin(self):
4493 r"""begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4494 return _pcbnew.str_utf8_Map_begin(self)
4495
4496 def end(self):
4497 r"""end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4498 return _pcbnew.str_utf8_Map_end(self)
4499
4500 def rbegin(self):
4501 r"""rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4502 return _pcbnew.str_utf8_Map_rbegin(self)
4503
4504 def rend(self):
4505 r"""rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4506 return _pcbnew.str_utf8_Map_rend(self)
4507
4508 def clear(self):
4509 r"""clear(str_utf8_Map self)"""
4510 return _pcbnew.str_utf8_Map_clear(self)
4511
4512 def get_allocator(self):
4513 r"""get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
4514 return _pcbnew.str_utf8_Map_get_allocator(self)
4515
4516 def count(self, x):
4517 r"""count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4518 return _pcbnew.str_utf8_Map_count(self, x)
4519
4520 def erase(self, *args):
4521 r"""
4522 erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
4523 erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
4524 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)
4525 """
4526 return _pcbnew.str_utf8_Map_erase(self, *args)
4527
4528 def find(self, x):
4529 r"""find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4530 return _pcbnew.str_utf8_Map_find(self, x)
4531
4532 def lower_bound(self, x):
4533 r"""lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4534 return _pcbnew.str_utf8_Map_lower_bound(self, x)
4535
4536 def upper_bound(self, x):
4537 r"""upper_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4538 return _pcbnew.str_utf8_Map_upper_bound(self, x)
4539 __swig_destroy__ = _pcbnew.delete_str_utf8_Map
4540
4541# Register str_utf8_Map in _pcbnew:
4542_pcbnew.str_utf8_Map_swigregister(str_utf8_Map)
4543
4544
4545
4546KICAD_PLUGINS={} # the list of loaded footprint wizards
4547
4548""" the list of not loaded python scripts
4549 (usually because there is a syntax error in python script)
4550 this is the python script full filenames list.
4551 filenames are separated by '\n'
4552"""
4553NOT_LOADED_WIZARDS=""
4554
4555""" the list of paths used to search python scripts.
4556 Stored here to be displayed on request in Pcbnew
4557 paths are separated by '\n'
4558"""
4559PLUGIN_DIRECTORIES_SEARCH=""
4560
4561"""
4562 the trace of errors during execution of footprint wizards scripts
4563 Warning: strings (internally unicode) are returned as UTF-8 compatible C strings
4564"""
4565
4566FULL_BACK_TRACE=""
4567
4568def GetUnLoadableWizards():
4569 global NOT_LOADED_WIZARDS
4570 import sys
4571
4572 if sys.version_info[0] < 3:
4573 utf8_str = NOT_LOADED_WIZARDS.encode( 'UTF-8' )
4574 else:
4575 utf8_str = NOT_LOADED_WIZARDS
4576
4577 return utf8_str
4578
4580 global PLUGIN_DIRECTORIES_SEARCH
4581 import sys
4582
4583 if sys.version_info[0] < 3:
4584 utf8_str = PLUGIN_DIRECTORIES_SEARCH.encode( 'UTF-8' )
4585 else:
4586 utf8_str = PLUGIN_DIRECTORIES_SEARCH
4587
4588 return utf8_str
4589
4591 global FULL_BACK_TRACE # Already correct format
4592 return FULL_BACK_TRACE
4593
4594
4595def LoadPluginModule(Dirname, ModuleName, FileName):
4596 """
4597 Load the plugin module named ModuleName located in the folder Dirname.
4598 The module can be either inside a file called FileName or a subdirectory
4599 called FileName that contains a __init__.py file.
4600 If this module cannot be loaded, its name is stored in failed_wizards_list
4601 and the error trace is stored in FULL_BACK_TRACE
4602 """
4603 import os
4604 import sys
4605 import traceback
4606
4607 global NOT_LOADED_WIZARDS
4608 global FULL_BACK_TRACE
4609 global KICAD_PLUGINS
4610
4611 try: # If there is an error loading the script, skip it
4612
4613 module_filename = os.path.join( Dirname, FileName )
4614 mtime = os.path.getmtime( module_filename )
4615 mods_before = set( sys.modules )
4616
4617 if ModuleName in KICAD_PLUGINS:
4618 plugin = KICAD_PLUGINS[ModuleName]
4619
4620 for dependency in plugin["dependencies"]:
4621 if dependency in sys.modules:
4622 del sys.modules[dependency]
4623
4624 mods_before = set( sys.modules )
4625
4626 if sys.version_info >= (3,0,0):
4627 import importlib
4628 mod = importlib.import_module( ModuleName )
4629 else:
4630 mod = __import__( ModuleName, locals(), globals() )
4631
4632 mods_after = set( sys.modules ).difference( mods_before )
4633 dependencies = [m for m in mods_after if m.startswith(ModuleName)]
4634
4635 KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
4636 "modification_time":mtime,
4637 "ModuleName":mod,
4638 "dependencies": dependencies }
4639
4640 except:
4641 if ModuleName in KICAD_PLUGINS:
4642 del KICAD_PLUGINS[ModuleName]
4643
4644 if NOT_LOADED_WIZARDS != "" :
4645 NOT_LOADED_WIZARDS += "\n"
4646 NOT_LOADED_WIZARDS += module_filename
4647 FULL_BACK_TRACE += traceback.format_exc()
4648
4649
4650def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None):
4651 """
4652 Initialise Scripting/Plugin python environment and load plugins.
4653
4654 Arguments:
4655 Note: bundlepath and userpath are given utf8 encoded, to be compatible with asimple C string
4656 bundlepath -- The path to the bundled scripts.
4657 The bundled Plugins are relative to this path, in the
4658 "plugins" subdirectory.
4659 WARNING: bundlepath must use '/' as path separator, and not '\'
4660 because it creates issues:
4661 \n and \r are seen as a escaped seq when passing this string to this method
4662 I am thinking this is due to the fact LoadPlugins is called from C++ code by
4663 PyRun_SimpleString()
4664
4665 NOTE: These are all of the possible "default" search paths for kicad
4666 python scripts. These paths will ONLY be added to the python
4667 search path ONLY IF they already exist.
4668
4669 The Scripts bundled with the KiCad installation:
4670 <bundlepath>/
4671 <bundlepath>/plugins/
4672
4673 The Scripts relative to the KiCad Users configuration:
4674 <userpath>/
4675 <userpath>/plugins/
4676
4677 The plugins from 3rd party packages:
4678 $KICAD_3RD_PARTY/plugins/
4679 """
4680 import os
4681 import sys
4682 import traceback
4683 import pcbnew
4684
4685 if sys.version_info >= (3,3,0):
4686 import importlib
4687 importlib.invalidate_caches()
4688
4689 """
4690 bundlepath and userpath are strings utf-8 encoded (compatible "C" strings).
4691 So convert these utf8 encoding to unicode strings to avoid any encoding issue.
4692 """
4693 try:
4694 bundlepath = bundlepath.decode( 'UTF-8' )
4695 userpath = userpath.decode( 'UTF-8' )
4696 thirdpartypath = thirdpartypath.decode( 'UTF-8' )
4697 except AttributeError:
4698 pass
4699
4701 plugin_directories=[]
4702
4703 """
4704 To be consistent with others paths, on windows, convert the unix '/' separator
4705 to the windows separator, although using '/' works
4706 """
4707 if sys.platform.startswith('win32'):
4708 if bundlepath:
4709 bundlepath = bundlepath.replace("/","\\")
4710 if thirdpartypath:
4711 thirdpartypath = thirdpartypath.replace("/","\\")
4712
4713 if bundlepath:
4714 plugin_directories.append(bundlepath)
4715 plugin_directories.append(os.path.join(bundlepath, 'plugins'))
4716
4717 if config_path:
4718 plugin_directories.append(os.path.join(config_path, 'scripting'))
4719 plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
4720
4721 if userpath:
4722 plugin_directories.append(userpath)
4723 plugin_directories.append(os.path.join(userpath, 'plugins'))
4724
4725 if thirdpartypath:
4726 plugin_directories.append(thirdpartypath)
4727
4728 global PLUGIN_DIRECTORIES_SEARCH
4729 PLUGIN_DIRECTORIES_SEARCH=""
4730 for plugins_dir in plugin_directories: # save search path list for later use
4731 if PLUGIN_DIRECTORIES_SEARCH != "" :
4732 PLUGIN_DIRECTORIES_SEARCH += "\n"
4733 PLUGIN_DIRECTORIES_SEARCH += plugins_dir
4734
4735 global FULL_BACK_TRACE
4736 FULL_BACK_TRACE="" # clear any existing trace
4737
4738 global NOT_LOADED_WIZARDS
4739 NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
4740
4741 global KICAD_PLUGINS
4742
4743 for plugins_dir in plugin_directories:
4744 if not os.path.isdir( plugins_dir ):
4745 continue
4746
4747 if plugins_dir not in sys.path:
4748 sys.path.append( plugins_dir )
4749
4750 for module in os.listdir(plugins_dir):
4751 fullPath = os.path.join( plugins_dir, module )
4752
4753 if os.path.isdir( fullPath ):
4754 if os.path.exists( os.path.join( fullPath, '__init__.py' ) ):
4755 LoadPluginModule( plugins_dir, module, module )
4756 else:
4757 if NOT_LOADED_WIZARDS != "" :
4758 NOT_LOADED_WIZARDS += "\n"
4759 NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
4760 continue
4761
4762 if module == '__init__.py' or module[-3:] != '.py':
4763 continue
4764
4765 LoadPluginModule( plugins_dir, module[:-3], module )
4766
4767
4769 def __init__(self):
4770 pass
4771
4772 def register(self):
4773 import inspect
4774 import os
4775
4776 if isinstance(self,FilePlugin):
4777 pass # register to file plugins in C++
4778
4779 if isinstance(self,FootprintWizardPlugin):
4780 PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
4781 return
4782
4783 if isinstance(self,ActionPlugin):
4784 """
4785 Get path to .py or .pyc that has definition of plugin class.
4786 If path is binary but source also exists, assume definition is in source.
4787 """
4788 self.__plugin_path = inspect.getfile(self.__class__)
4789 if self.__plugin_path.endswith('.pyc') and os.path.isfile(self.__plugin_path[:-1]):
4790 self.__plugin_path = self.__plugin_path[:-1]
4791 self.__plugin_path = self.__plugin_path + '/' + self.__class__.__name__
4792 PYTHON_ACTION_PLUGINS.register_action(self)
4793 return
4794
4795 return
4796
4797 def deregister(self):
4798 if isinstance(self,FilePlugin):
4799 pass # deregister to file plugins in C++
4800
4801 if isinstance(self,FootprintWizardPlugin):
4802 PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
4803 return
4804
4805 if isinstance(self,ActionPlugin):
4806 PYTHON_ACTION_PLUGINS.deregister_action(self)
4807 return
4808
4809 return
4810
4811 def GetPluginPath( self ):
4812 return self.__plugin_path
4813
4814
4816 def __init__(self):
4817 KiCadPlugin.__init__(self)
4818
4819
4820from math import ceil, floor, sqrt
4821
4822uMM = "mm" # Millimetres
4823uMils = "mils" # Mils
4824uFloat = "float" # Natural number units (dimensionless)
4825uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
4826uBool = "bool" # Boolean value
4827uRadians = "radians" # Angular units (radians)
4828uDegrees = "degrees" # Angular units (degrees)
4829uPercent = "%" # Percent (0% -> 100%)
4830uString = "string" # Raw string
4831
4832uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
4833uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
4834
4836 _true = ['true','t','y','yes','on','1',1,]
4837 _false = ['false','f','n','no','off','0',0,'',None]
4838
4839 _bools = _true + _false
4840
4841 def __init__(self, page, name, units, default, **kwarg):
4842 self.page = page
4843 self.name = name
4844 self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
4845 self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
4846
4847 if units.lower() in uUnits:
4848 self.units = units.lower()
4849 elif units.lower() == 'percent':
4850 self.units = uPercent
4851 elif type(units) in [list, tuple]: # Convert a list of options into a single string
4852 self.units = ",".join([str(el).strip() for el in units])
4853 else:
4854 self.units = units
4855
4856 self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
4857 self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
4858 self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
4859
4860 self.SetValue(default)
4861 self.default = self.raw_value # Save value as default
4862
4863 def ClearErrors(self):
4864 self.error_list = []
4865
4866 def AddError(self, err, info=None):
4867
4868 if err in self.error_list: # prevent duplicate error messages
4869 return
4870 if info is not None:
4871 err = err + " (" + str(info) + ")"
4872
4873 self.error_list.append(err)
4874
4875 def Check(self, min_value=None, max_value=None, multiple=None, info=None):
4876
4877 if min_value is None:
4878 min_value = self.min_value
4879 if max_value is None:
4880 max_value = self.max_value
4881 if multiple is None:
4882 multiple = self.multiple
4883
4884 if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
4885 self.AddError("type '{t}' unknown".format(t=self.units),info)
4886 self.AddError("Allowable types: " + str(self.units),info)
4887
4888 if self.units in uNumeric:
4889 try:
4890 to_num = float(self.raw_value)
4891
4892 if min_value is not None: # Check minimum value if it is present
4893 if to_num < min_value:
4894 self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
4895
4896 if max_value is not None: # Check maximum value if it is present
4897 if to_num > max_value:
4898 self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
4899
4900 except:
4901 self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
4902
4903 if self.units == uInteger: # Perform integer specific checks
4904 try:
4905 to_int = int(self.raw_value)
4906
4907 if multiple is not None and multiple > 1:
4908 if (to_int % multiple) > 0:
4909 self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
4910 except:
4911 self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
4912
4913 if self.units == uBool: # Check that the value is of a correct boolean format
4914 if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
4915 pass
4916 else:
4917 self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
4918
4919 @property
4920 def value(self): # Return the current value, converted to appropriate units (from string representation) if required
4921 v = str(self.raw_value) # Enforce string type for known starting point
4922
4923 if self.units == uInteger: # Integer values
4924 return int(v)
4925 elif self.units in uNumeric: # Any values that use floating points
4926 v = v.replace(",",".") # Replace "," separators with "."
4927 v = float(v)
4928
4929 if self.units == uMM: # Convert from millimetres to nanometres
4930 return FromMM(v)
4931
4932 elif self.units == uMils: # Convert from mils to nanometres
4933 return FromMils(v)
4934
4935 else: # Any other floating-point values
4936 return v
4937
4938 elif self.units == uBool:
4939 if v.lower() in self._true:
4940 return True
4941 else:
4942 return False
4943 else:
4944 return v
4945
4946 def DefaultValue(self): # Reset the value of the parameter to its default
4947 self.raw_value = str(self.default)
4948
4949 def SetValue(self, new_value): # Update the value
4950 new_value = str(new_value)
4951
4952 if len(new_value.strip()) == 0:
4953 if not self.units in [uString, uBool]:
4954 return # Ignore empty values unless for strings or bools
4955
4956 if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
4957 new_value = "1" if new_value.lower() in self._true else "0"
4958 elif self.units in uNumeric:
4959 new_value = new_value.replace(",", ".") # Enforce decimal point separators
4960 elif ',' in self.units: # Select from a list of values
4961 if new_value not in self.units.split(','):
4962 new_value = self.units.split(',')[0]
4963
4964 self.raw_value = new_value
4965
4966 def __str__(self): # pretty-print the parameter
4967
4968 s = self.name + ": " + str(self.raw_value)
4969
4970 if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
4971 s += self.units
4972 elif self.units == uBool: # Special case for Boolean values
4973 s = self.name + ": {b}".format(b = "True" if self.value else "False")
4974 elif self.units == uString:
4975 s = self.name + ": '" + self.raw_value + "'"
4976
4977 return s
4978
4979
4981 def __init__(self):
4982 KiCadPlugin.__init__(self)
4983 self.defaults()
4984
4985 def defaults(self):
4986 self.module = None
4987 self.params = [] # List of added parameters that observes addition order
4988
4989 self.name = "KiCad FP Wizard"
4990 self.description = "Undefined Footprint Wizard plugin"
4991 self.image = ""
4993
4994 def AddParam(self, page, name, unit, default, **kwarg):
4995
4996 if self.GetParam(page,name) is not None: # Param already exists!
4997 return
4998
4999 param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
5000 self.params.append(param)
5001
5002 @property
5003 def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
5004 pages = {} # Page dict
5005 for p in self.params:
5006 if p.page not in pages:
5007 pages[p.page] = {}
5008
5009 pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
5010
5011 return pages
5012
5013 @property
5014 def values(self): # Same as above
5015 return self.parameters
5016
5017 def ResetWizard(self): # Reset all parameters to default values
5018 for p in self.params:
5019 p.DefaultValue()
5020
5021 def GetName(self): # Return the name of this wizard
5022 return self.name
5023
5024 def GetImage(self): # Return the filename of the preview image associated with this wizard
5025 return self.image
5026
5027 def GetDescription(self): # Return the description text
5028 return self.description
5029
5030 def GetValue(self):
5031 raise NotImplementedError
5032
5034 return "REF" # Default reference prefix for any footprint
5035
5036 def GetParam(self, page, name): # Grab a parameter
5037 for p in self.params:
5038 if p.page == page and p.name == name:
5039 return p
5040
5041 return None
5042
5043 def CheckParam(self, page, name, **kwarg):
5044 self.GetParam(page,name).Check(**kwarg)
5045
5046 def AnyErrors(self):
5047 return any([len(p.error_list) > 0 for p in self.params])
5048
5049 @property
5050 def pages(self): # Return an (ordered) list of the available page names
5051 page_list = []
5052 for p in self.params:
5053 if p.page not in page_list:
5054 page_list.append(p.page)
5055
5056 return page_list
5057
5058 def GetNumParameterPages(self): # Return the number of parameter pages
5059 return len(self.pages)
5060
5061 def GetParameterPageName(self,page_n): # Return the name of a page at a given index
5062 return self.pages[page_n]
5063
5064 def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
5065 params = []
5066
5067 for p in self.params:
5068 if p.page == page_name:
5069 params.append(p)
5070
5071 return params
5072
5073 def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
5074 return self.GetParametersByPageName(self.GetParameterPageName(page_index))
5075
5076 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
5077 params = self.GetParametersByPageIndex(page_index)
5078 return [p.designator for p in params]
5079
5080 def GetParameterNames(self,page_index): # Return the list of names associated with a given page
5081 params = self.GetParametersByPageIndex(page_index)
5082 return [p.name for p in params]
5083
5084 def GetParameterValues(self,page_index): # Return the list of values associated with a given page
5085 params = self.GetParametersByPageIndex(page_index)
5086 return [str(p.raw_value) for p in params]
5087
5088 def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
5089 params = self.GetParametersByPageIndex(page_index)
5090 return [str("\n".join(p.error_list)) for p in params]
5091
5092 def GetParameterTypes(self, page_index): # Return list of units associated with a given page
5093 params = self.GetParametersByPageIndex(page_index)
5094 return [str(p.units) for p in params]
5095
5096 def GetParameterHints(self, page_index): # Return a list of units associated with a given page
5097 params = self.GetParametersByPageIndex(page_index)
5098 return [str(p.hint) for p in params]
5099
5100 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
5101 params = self.GetParametersByPageIndex(page_index)
5102 return [str(p.designator) for p in params]
5103
5104 def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
5105
5106 params = self.GetParametersByPageIndex(page_index)
5107
5108 for i, param in enumerate(params):
5109 if i >= len(list_of_values):
5110 break
5111 param.SetValue(list_of_values[i])
5112
5113 def GetFootprint( self ):
5114 self.BuildFootprint()
5115 return self.module
5116
5118 return
5119
5120 def GetBuildMessages( self ):
5121 return self.buildmessages
5122
5123 def Show(self):
5124 text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
5125 text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
5126
5127 n_pages = self.GetNumParameterPages()
5128
5129 text += "Pages: {n}\n".format(n=n_pages)
5130
5131 for i in range(n_pages):
5132 name = self.GetParameterPageName(i)
5133
5134 params = self.GetParametersByPageName(name)
5135
5136 text += "{name}\n".format(name=name)
5137
5138 for j in range(len(params)):
5139 text += ("\t{param}{err}\n".format(
5140 param = str(params[j]),
5141 err = ' *' if len(params[j].error_list) > 0 else ''
5142 ))
5143
5144 if self.AnyErrors():
5145 text += " * Errors exist for these parameters"
5146
5147 return text
5148
5150 def __init__( self ):
5151 KiCadPlugin.__init__( self )
5155 self.defaults()
5156
5157 def defaults( self ):
5158 self.name = "Undefined Action plugin"
5159 self.category = "Undefined"
5160 self.description = ""
5161
5162 def GetName( self ):
5163 return self.name
5164
5165 def GetCategoryName( self ):
5166 return self.category
5167
5168 def GetDescription( self ):
5169 return self.description
5170
5172 return self.show_toolbar_button
5173
5174 def GetIconFileName( self, dark ):
5175 if dark and self.dark_icon_file_name:
5176 return self.dark_icon_file_name
5177 else:
5178 return self.icon_file_name
5179
5180 def Run(self):
5181 return
5182
5183
5184
5185def KiROUND(vec):
5186 r"""KiROUND(VECTOR2D const & vec) -> VECTOR2I"""
5187 return _pcbnew.KiROUND(vec)
5188
5189def BOX2ISafe(*args):
5190 r"""
5191 BOX2ISafe(BOX2D const & aInput) -> BOX2I
5192 BOX2ISafe(VECTOR2D const & aPos, VECTOR2D const & aSize) -> BOX2I
5193 """
5194 return _pcbnew.BOX2ISafe(*args)
5196 r"""Proxy of C++ VECTOR2< int > class."""
5197
5198 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5199 __repr__ = _swig_repr
5200 x = property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set, doc=r"""x : int""")
5201 y = property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set, doc=r"""y : int""")
5202
5203 def __init__(self, *args):
5204 r"""
5205 __init__(VECTOR2I self) -> VECTOR2I
5206 __init__(VECTOR2I self, int x, int y) -> VECTOR2I
5207 __init__(VECTOR2I self, VECTOR2I aVec) -> VECTOR2I
5208 """
5209 _pcbnew.VECTOR2I_swiginit(self, _pcbnew.new_VECTOR2I(*args))
5210
5211 def EuclideanNorm(self):
5212 r"""EuclideanNorm(VECTOR2I self) -> int"""
5213 return _pcbnew.VECTOR2I_EuclideanNorm(self)
5214
5216 r"""SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type"""
5217 return _pcbnew.VECTOR2I_SquaredEuclideanNorm(self)
5218
5219 def Perpendicular(self):
5220 r"""Perpendicular(VECTOR2I self) -> VECTOR2I"""
5221 return _pcbnew.VECTOR2I_Perpendicular(self)
5222
5223 def Resize(self, aNewLength):
5224 r"""Resize(VECTOR2I self, int aNewLength) -> VECTOR2I"""
5225 return _pcbnew.VECTOR2I_Resize(self, aNewLength)
5226
5227 def Format(self):
5228 r"""Format(VECTOR2I self) -> string"""
5229 return _pcbnew.VECTOR2I_Format(self)
5230
5231 def Cross(self, aVector):
5232 r"""Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5233 return _pcbnew.VECTOR2I_Cross(self, aVector)
5234
5235 def Dot(self, aVector):
5236 r"""Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5237 return _pcbnew.VECTOR2I_Dot(self, aVector)
5238
5239 def __add__(self, *args):
5240 r"""
5241 __add__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5242 __add__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5243 """
5244 return _pcbnew.VECTOR2I___add__(self, *args)
5245
5246 def __imul__(self, *args):
5247 r"""
5248 __imul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5249 __imul__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5250 """
5251 return _pcbnew.VECTOR2I___imul__(self, *args)
5252
5253 def __iadd__(self, *args):
5254 r"""
5255 __iadd__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5256 __iadd__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5257 """
5258 return _pcbnew.VECTOR2I___iadd__(self, *args)
5259
5260 def __sub__(self, *args):
5261 r"""
5262 __sub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5263 __sub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5264 """
5265 return _pcbnew.VECTOR2I___sub__(self, *args)
5266
5267 def __isub__(self, *args):
5268 r"""
5269 __isub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5270 __isub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5271 """
5272 return _pcbnew.VECTOR2I___isub__(self, *args)
5273
5274 def __neg__(self):
5275 r"""__neg__(VECTOR2I self) -> VECTOR2I"""
5276 return _pcbnew.VECTOR2I___neg__(self)
5277
5278 def __mul__(self, *args):
5279 r"""
5280 __mul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type
5281 __mul__(VECTOR2I self, int const & aFactor) -> VECTOR2I
5282 """
5283 return _pcbnew.VECTOR2I___mul__(self, *args)
5284
5285 def __truediv__(self, *args):
5286 return _pcbnew.VECTOR2I___truediv__(self, *args)
5287 __div__ = __truediv__
5288
5289
5290
5291 def __eq__(self, aVector):
5292 r"""__eq__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5293 return _pcbnew.VECTOR2I___eq__(self, aVector)
5294
5295 def __ne__(self, aVector):
5296 r"""__ne__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5297 return _pcbnew.VECTOR2I___ne__(self, aVector)
5298
5299 def __lt__(self, aVector):
5300 r"""__lt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5301 return _pcbnew.VECTOR2I___lt__(self, aVector)
5302
5303 def __le__(self, aVector):
5304 r"""__le__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5305 return _pcbnew.VECTOR2I___le__(self, aVector)
5306
5307 def __gt__(self, aVector):
5308 r"""__gt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5309 return _pcbnew.VECTOR2I___gt__(self, aVector)
5310
5311 def __ge__(self, aVector):
5312 r"""__ge__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5313 return _pcbnew.VECTOR2I___ge__(self, aVector)
5314
5315 def Set(self, x, y):
5316 r"""Set(VECTOR2I self, long x, long y)"""
5317 return _pcbnew.VECTOR2I_Set(self, x, y)
5318
5319 def Get(self):
5320 r"""Get(VECTOR2I self) -> PyObject *"""
5321 return _pcbnew.VECTOR2I_Get(self)
5322
5323 def __eq__(self,other): return (self.x==other.x and self.y==other.y)
5324 def __ne__(self,other): return not (self==other)
5325 def __str__(self): return str(self.Get())
5326 def __repr__(self): return 'VECTOR2I'+str(self.Get())
5327 def __len__(self): return len(self.Get())
5328 def __getitem__(self, index): return self.Get()[index]
5329 def __setitem__(self, index, val):
5330 if index == 0:
5331 self.x = val
5332 elif index == 1:
5333 self.y = val
5334 else:
5335 raise IndexError
5336 def __nonzero__(self): return self.Get() != (0,0)
5337
5338
5339 __swig_destroy__ = _pcbnew.delete_VECTOR2I
5340
5341# Register VECTOR2I in _pcbnew:
5342_pcbnew.VECTOR2I_swigregister(VECTOR2I)
5343
5345 r"""Proxy of C++ VECTOR2_TRAITS< int > class."""
5346
5347 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5348 __repr__ = _swig_repr
5349
5350 def __init__(self):
5351 r"""__init__(VECTOR2I_EXTENDED_TYPE self) -> VECTOR2I_EXTENDED_TYPE"""
5352 _pcbnew.VECTOR2I_EXTENDED_TYPE_swiginit(self, _pcbnew.new_VECTOR2I_EXTENDED_TYPE())
5353 __swig_destroy__ = _pcbnew.delete_VECTOR2I_EXTENDED_TYPE
5354
5355# Register VECTOR2I_EXTENDED_TYPE in _pcbnew:
5356_pcbnew.VECTOR2I_EXTENDED_TYPE_swigregister(VECTOR2I_EXTENDED_TYPE)
5357
5359 r"""Proxy of C++ VECTOR3< double > class."""
5360
5361 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5362 __repr__ = _swig_repr
5363 ECOORD_MAX = _pcbnew.VECTOR3D_ECOORD_MAX
5364
5365 ECOORD_MIN = _pcbnew.VECTOR3D_ECOORD_MIN
5366
5367 x = property(_pcbnew.VECTOR3D_x_get, _pcbnew.VECTOR3D_x_set, doc=r"""x : double""")
5368 y = property(_pcbnew.VECTOR3D_y_get, _pcbnew.VECTOR3D_y_set, doc=r"""y : double""")
5369 z = property(_pcbnew.VECTOR3D_z_get, _pcbnew.VECTOR3D_z_set, doc=r"""z : double""")
5370
5371 def __init__(self, *args):
5372 r"""
5373 __init__(VECTOR3D self) -> VECTOR3D
5374 __init__(VECTOR3D self, double x, double y, double z) -> VECTOR3D
5375 """
5376 _pcbnew.VECTOR3D_swiginit(self, _pcbnew.new_VECTOR3D(*args))
5377
5378 def Cross(self, aVector):
5379 r"""Cross(VECTOR3D self, VECTOR3D aVector) -> VECTOR3D"""
5380 return _pcbnew.VECTOR3D_Cross(self, aVector)
5381
5382 def Dot(self, aVector):
5383 r"""Dot(VECTOR3D self, VECTOR3D aVector) -> VECTOR3< double >::extended_type"""
5384 return _pcbnew.VECTOR3D_Dot(self, aVector)
5385
5386 def EuclideanNorm(self):
5387 r"""EuclideanNorm(VECTOR3D self) -> double"""
5388 return _pcbnew.VECTOR3D_EuclideanNorm(self)
5389
5390 def Normalize(self):
5391 r"""Normalize(VECTOR3D self) -> VECTOR3D"""
5392 return _pcbnew.VECTOR3D_Normalize(self)
5393
5394 def __eq__(self, aVector):
5395 r"""__eq__(VECTOR3D self, VECTOR3D aVector) -> bool"""
5396 return _pcbnew.VECTOR3D___eq__(self, aVector)
5397
5398 def __ne__(self, aVector):
5399 r"""__ne__(VECTOR3D self, VECTOR3D aVector) -> bool"""
5400 return _pcbnew.VECTOR3D___ne__(self, aVector)
5401
5402 def __imul__(self, val):
5403 r"""__imul__(VECTOR3D self, double val) -> VECTOR3D"""
5404 return _pcbnew.VECTOR3D___imul__(self, val)
5405
5406 def __itruediv__(self, *args):
5407 return _pcbnew.VECTOR3D___itruediv__(self, *args)
5408 __idiv__ = __itruediv__
5409
5410
5411
5412 def Set(self, x, y, z):
5413 r"""Set(VECTOR3D self, double x, double y, double z)"""
5414 return _pcbnew.VECTOR3D_Set(self, x, y, z)
5415
5416 def Get(self):
5417 r"""Get(VECTOR3D self) -> PyObject *"""
5418 return _pcbnew.VECTOR3D_Get(self)
5419
5420 def __eq__(self,other): return (self.x==other.x and self.y==other.y and self.z==other.z)
5421 def __ne__(self,other): return not (self==other)
5422 def __str__(self): return str(self.Get())
5423 def __repr__(self): return 'VECTOR3D'+str(self.Get())
5424 def __len__(self): return len(self.Get())
5425 def __getitem__(self, index): return self.Get()[index]
5426 def __setitem__(self, index, val):
5427 if index == 0:
5428 self.x = val
5429 elif index == 1:
5430 self.y = val
5431 elif index == 2:
5432 self.z = val
5433 else:
5434 raise IndexError
5435 def __nonzero__(self): return self.Get() != (0, 0, 0)
5436
5437
5438 __swig_destroy__ = _pcbnew.delete_VECTOR3D
5439
5440# Register VECTOR3D in _pcbnew:
5441_pcbnew.VECTOR3D_swigregister(VECTOR3D)
5442
5444 r"""Proxy of C++ BOX2< VECTOR2I > class."""
5445
5446 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5447 __repr__ = _swig_repr
5448
5449 def __init__(self, *args):
5450 r"""
5451 __init__(BOX2I self) -> BOX2I
5452 __init__(BOX2I self, VECTOR2I aPos, VECTOR2I aSize=VECTOR2< int >(0, 0)) -> BOX2I
5453 """
5454 _pcbnew.BOX2I_swiginit(self, _pcbnew.new_BOX2I(*args))
5455
5456 def SetMaximum(self):
5457 r"""SetMaximum(BOX2I self)"""
5458 return _pcbnew.BOX2I_SetMaximum(self)
5459
5460 def Centre(self):
5461 r"""Centre(BOX2I self) -> VECTOR2I"""
5462 return _pcbnew.BOX2I_Centre(self)
5463
5464 def Move(self, aMoveVector):
5465 r"""Move(BOX2I self, VECTOR2I aMoveVector)"""
5466 return _pcbnew.BOX2I_Move(self, aMoveVector)
5467
5468 def Normalize(self):
5469 r"""Normalize(BOX2I self) -> BOX2I"""
5470 return _pcbnew.BOX2I_Normalize(self)
5471
5472 def Contains(self, *args):
5473 r"""
5474 Contains(BOX2I self, VECTOR2I aPoint) -> bool
5475 Contains(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y) -> bool
5476 Contains(BOX2I self, BOX2I aRect) -> bool
5477 """
5478 return _pcbnew.BOX2I_Contains(self, *args)
5479
5480 def GetSize(self):
5481 r"""GetSize(BOX2I self) -> VECTOR2I"""
5482 return _pcbnew.BOX2I_GetSize(self)
5483
5484 def GetX(self):
5485 r"""GetX(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5486 return _pcbnew.BOX2I_GetX(self)
5487
5488 def GetY(self):
5489 r"""GetY(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5490 return _pcbnew.BOX2I_GetY(self)
5491
5492 def GetOrigin(self):
5493 r"""GetOrigin(BOX2I self) -> VECTOR2I"""
5494 return _pcbnew.BOX2I_GetOrigin(self)
5495
5496 def GetPosition(self):
5497 r"""GetPosition(BOX2I self) -> VECTOR2I"""
5498 return _pcbnew.BOX2I_GetPosition(self)
5499
5500 def GetEnd(self):
5501 r"""GetEnd(BOX2I self) -> VECTOR2I"""
5502 return _pcbnew.BOX2I_GetEnd(self)
5503
5504 def GetWidth(self):
5505 r"""GetWidth(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5506 return _pcbnew.BOX2I_GetWidth(self)
5507
5508 def GetHeight(self):
5509 r"""GetHeight(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5510 return _pcbnew.BOX2I_GetHeight(self)
5511
5512 def GetRight(self):
5513 r"""GetRight(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5514 return _pcbnew.BOX2I_GetRight(self)
5515
5516 def GetBottom(self):
5517 r"""GetBottom(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5518 return _pcbnew.BOX2I_GetBottom(self)
5519
5520 def GetLeft(self):
5521 r"""GetLeft(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5522 return _pcbnew.BOX2I_GetLeft(self)
5523
5524 def GetTop(self):
5525 r"""GetTop(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5526 return _pcbnew.BOX2I_GetTop(self)
5527
5528 def GetCenter(self):
5529 r"""GetCenter(BOX2I self) -> VECTOR2I"""
5530 return _pcbnew.BOX2I_GetCenter(self)
5531
5532 def GetSizeMax(self):
5533 r"""GetSizeMax(BOX2I self) -> int"""
5534 return _pcbnew.BOX2I_GetSizeMax(self)
5535
5536 def SetOrigin(self, *args):
5537 r"""
5538 SetOrigin(BOX2I self, VECTOR2I pos)
5539 SetOrigin(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5540 """
5541 return _pcbnew.BOX2I_SetOrigin(self, *args)
5542
5543 def SetSize(self, *args):
5544 r"""
5545 SetSize(BOX2I self, VECTOR2I size)
5546 SetSize(BOX2I self, BOX2< VECTOR2< int > >::coord_type w, BOX2< VECTOR2< int > >::coord_type h)
5547 """
5548 return _pcbnew.BOX2I_SetSize(self, *args)
5549
5550 def Offset(self, *args):
5551 r"""
5552 Offset(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy)
5553 Offset(BOX2I self, VECTOR2I offset)
5554 """
5555 return _pcbnew.BOX2I_Offset(self, *args)
5556
5557 def SetX(self, val):
5558 r"""SetX(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5559 return _pcbnew.BOX2I_SetX(self, val)
5560
5561 def SetY(self, val):
5562 r"""SetY(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5563 return _pcbnew.BOX2I_SetY(self, val)
5564
5565 def SetWidth(self, val):
5566 r"""SetWidth(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5567 return _pcbnew.BOX2I_SetWidth(self, val)
5568
5569 def SetHeight(self, val):
5570 r"""SetHeight(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5571 return _pcbnew.BOX2I_SetHeight(self, val)
5572
5573 def SetEnd(self, *args):
5574 r"""
5575 SetEnd(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5576 SetEnd(BOX2I self, VECTOR2I pos)
5577 """
5578 return _pcbnew.BOX2I_SetEnd(self, *args)
5579
5580 def Intersect(self, aRect):
5581 r"""Intersect(BOX2I self, BOX2I aRect) -> BOX2I"""
5582 return _pcbnew.BOX2I_Intersect(self, aRect)
5583
5584 def Intersects(self, *args):
5585 r"""
5586 Intersects(BOX2I self, BOX2I aRect) -> bool
5587 Intersects(BOX2I self, VECTOR2I aPoint1, VECTOR2I aPoint2) -> bool
5588 Intersects(BOX2I self, BOX2I aRect, EDA_ANGLE aRotation) -> bool
5589 """
5590 return _pcbnew.BOX2I_Intersects(self, *args)
5591
5592 def IntersectsCircle(self, aCenter, aRadius):
5593 r"""IntersectsCircle(BOX2I self, VECTOR2I aCenter, int const aRadius) -> bool"""
5594 return _pcbnew.BOX2I_IntersectsCircle(self, aCenter, aRadius)
5595
5596 def IntersectsCircleEdge(self, aCenter, aRadius, aWidth):
5597 r"""IntersectsCircleEdge(BOX2I self, VECTOR2I aCenter, int const aRadius, int const aWidth) -> bool"""
5598 return _pcbnew.BOX2I_IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
5599
5600 def Format(self):
5601 r"""Format(BOX2I self) -> string"""
5602 return _pcbnew.BOX2I_Format(self)
5603
5604 def Inflate(self, *args):
5605 r"""
5606 Inflate(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy) -> BOX2I
5607 Inflate(BOX2I self, int aDelta) -> BOX2I
5608 """
5609 return _pcbnew.BOX2I_Inflate(self, *args)
5610
5611 def Merge(self, *args):
5612 r"""
5613 Merge(BOX2I self, BOX2I aRect) -> BOX2I
5614 Merge(BOX2I self, VECTOR2I aPoint) -> BOX2I
5615 """
5616 return _pcbnew.BOX2I_Merge(self, *args)
5617
5618 def GetBoundingBoxRotated(self, aRotCenter, aAngle):
5619 r"""GetBoundingBoxRotated(BOX2I self, VECTOR2I aRotCenter, EDA_ANGLE aAngle) -> BOX2I"""
5620 return _pcbnew.BOX2I_GetBoundingBoxRotated(self, aRotCenter, aAngle)
5621
5622 def RevertYAxis(self):
5623 r"""RevertYAxis(BOX2I self)"""
5624 return _pcbnew.BOX2I_RevertYAxis(self)
5625
5626 def GetArea(self):
5627 r"""GetArea(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5628 return _pcbnew.BOX2I_GetArea(self)
5629
5630 def Diagonal(self):
5631 r"""Diagonal(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5632 return _pcbnew.BOX2I_Diagonal(self)
5633
5634 def SquaredDistance(self, *args):
5635 r"""
5636 SquaredDistance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5637 SquaredDistance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5638 """
5639 return _pcbnew.BOX2I_SquaredDistance(self, *args)
5640
5641 def Distance(self, *args):
5642 r"""
5643 Distance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5644 Distance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5645 """
5646 return _pcbnew.BOX2I_Distance(self, *args)
5647
5648 def ClosestPointTo(self, aPoint):
5649 r"""ClosestPointTo(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5650 return _pcbnew.BOX2I_ClosestPointTo(self, aPoint)
5651
5652 def FarthestPointTo(self, aPoint):
5653 r"""FarthestPointTo(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5654 return _pcbnew.BOX2I_FarthestPointTo(self, aPoint)
5655
5656 def __eq__(self, aOther):
5657 r"""__eq__(BOX2I self, BOX2I aOther) -> bool"""
5658 return _pcbnew.BOX2I___eq__(self, aOther)
5659
5660 def __ne__(self, aOther):
5661 r"""__ne__(BOX2I self, BOX2I aOther) -> bool"""
5662 return _pcbnew.BOX2I___ne__(self, aOther)
5663
5664 def IsValid(self):
5665 r"""IsValid(BOX2I self) -> bool"""
5666 return _pcbnew.BOX2I_IsValid(self)
5667 __swig_destroy__ = _pcbnew.delete_BOX2I
5668
5669# Register BOX2I in _pcbnew:
5670_pcbnew.BOX2I_swigregister(BOX2I)
5671
5673 r"""Proxy of C++ std::vector< VECTOR2I > class."""
5674
5675 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5676 __repr__ = _swig_repr
5677
5678 def iterator(self):
5679 r"""iterator(VECTOR_VECTOR2I self) -> SwigPyIterator"""
5680 return _pcbnew.VECTOR_VECTOR2I_iterator(self)
5681 def __iter__(self):
5682 return self.iterator()
5683
5684 def __nonzero__(self):
5685 r"""__nonzero__(VECTOR_VECTOR2I self) -> bool"""
5686 return _pcbnew.VECTOR_VECTOR2I___nonzero__(self)
5687
5688 def __bool__(self):
5689 r"""__bool__(VECTOR_VECTOR2I self) -> bool"""
5690 return _pcbnew.VECTOR_VECTOR2I___bool__(self)
5691
5692 def __len__(self):
5693 r"""__len__(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5694 return _pcbnew.VECTOR_VECTOR2I___len__(self)
5695
5696 def __getslice__(self, i, j):
5697 r"""__getslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j) -> VECTOR_VECTOR2I"""
5698 return _pcbnew.VECTOR_VECTOR2I___getslice__(self, i, j)
5699
5700 def __setslice__(self, *args):
5701 r"""
5702 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)
5703 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j, VECTOR_VECTOR2I v)
5704 """
5705 return _pcbnew.VECTOR_VECTOR2I___setslice__(self, *args)
5706
5707 def __delslice__(self, i, j):
5708 r"""__delslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)"""
5709 return _pcbnew.VECTOR_VECTOR2I___delslice__(self, i, j)
5710
5711 def __delitem__(self, *args):
5712 r"""
5713 __delitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i)
5714 __delitem__(VECTOR_VECTOR2I self, PySliceObject * slice)
5715 """
5716 return _pcbnew.VECTOR_VECTOR2I___delitem__(self, *args)
5717
5718 def __getitem__(self, *args):
5719 r"""
5720 __getitem__(VECTOR_VECTOR2I self, PySliceObject * slice) -> VECTOR_VECTOR2I
5721 __getitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i) -> VECTOR2I
5722 """
5723 return _pcbnew.VECTOR_VECTOR2I___getitem__(self, *args)
5724
5725 def __setitem__(self, *args):
5726 r"""
5727 __setitem__(VECTOR_VECTOR2I self, PySliceObject * slice, VECTOR_VECTOR2I v)
5728 __setitem__(VECTOR_VECTOR2I self, PySliceObject * slice)
5729 __setitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, VECTOR2I x)
5730 """
5731 return _pcbnew.VECTOR_VECTOR2I___setitem__(self, *args)
5732
5733 def pop(self):
5734 r"""pop(VECTOR_VECTOR2I self) -> VECTOR2I"""
5735 return _pcbnew.VECTOR_VECTOR2I_pop(self)
5736
5737 def append(self, x):
5738 r"""append(VECTOR_VECTOR2I self, VECTOR2I x)"""
5739 return _pcbnew.VECTOR_VECTOR2I_append(self, x)
5740
5741 def empty(self):
5742 r"""empty(VECTOR_VECTOR2I self) -> bool"""
5743 return _pcbnew.VECTOR_VECTOR2I_empty(self)
5744
5745 def size(self):
5746 r"""size(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5747 return _pcbnew.VECTOR_VECTOR2I_size(self)
5748
5749 def swap(self, v):
5750 r"""swap(VECTOR_VECTOR2I self, VECTOR_VECTOR2I v)"""
5751 return _pcbnew.VECTOR_VECTOR2I_swap(self, v)
5752
5753 def begin(self):
5754 r"""begin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5755 return _pcbnew.VECTOR_VECTOR2I_begin(self)
5756
5757 def end(self):
5758 r"""end(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5759 return _pcbnew.VECTOR_VECTOR2I_end(self)
5760
5761 def rbegin(self):
5762 r"""rbegin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5763 return _pcbnew.VECTOR_VECTOR2I_rbegin(self)
5764
5765 def rend(self):
5766 r"""rend(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5767 return _pcbnew.VECTOR_VECTOR2I_rend(self)
5768
5769 def clear(self):
5770 r"""clear(VECTOR_VECTOR2I self)"""
5771 return _pcbnew.VECTOR_VECTOR2I_clear(self)
5772
5773 def get_allocator(self):
5774 r"""get_allocator(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::allocator_type"""
5775 return _pcbnew.VECTOR_VECTOR2I_get_allocator(self)
5776
5777 def pop_back(self):
5778 r"""pop_back(VECTOR_VECTOR2I self)"""
5779 return _pcbnew.VECTOR_VECTOR2I_pop_back(self)
5780
5781 def erase(self, *args):
5782 r"""
5783 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos) -> std::vector< VECTOR2< int > >::iterator
5784 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator first, std::vector< VECTOR2< int > >::iterator last) -> std::vector< VECTOR2< int > >::iterator
5785 """
5786 return _pcbnew.VECTOR_VECTOR2I_erase(self, *args)
5787
5788 def __init__(self, *args):
5789 r"""
5790 __init__(VECTOR_VECTOR2I self) -> VECTOR_VECTOR2I
5791 __init__(VECTOR_VECTOR2I self, VECTOR_VECTOR2I other) -> VECTOR_VECTOR2I
5792 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size) -> VECTOR_VECTOR2I
5793 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size, VECTOR2I value) -> VECTOR_VECTOR2I
5794 """
5795 _pcbnew.VECTOR_VECTOR2I_swiginit(self, _pcbnew.new_VECTOR_VECTOR2I(*args))
5796
5797 def push_back(self, x):
5798 r"""push_back(VECTOR_VECTOR2I self, VECTOR2I x)"""
5799 return _pcbnew.VECTOR_VECTOR2I_push_back(self, x)
5800
5801 def front(self):
5802 r"""front(VECTOR_VECTOR2I self) -> VECTOR2I"""
5803 return _pcbnew.VECTOR_VECTOR2I_front(self)
5804
5805 def back(self):
5806 r"""back(VECTOR_VECTOR2I self) -> VECTOR2I"""
5807 return _pcbnew.VECTOR_VECTOR2I_back(self)
5808
5809 def assign(self, n, x):
5810 r"""assign(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)"""
5811 return _pcbnew.VECTOR_VECTOR2I_assign(self, n, x)
5812
5813 def resize(self, *args):
5814 r"""
5815 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size)
5816 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size, VECTOR2I x)
5817 """
5818 return _pcbnew.VECTOR_VECTOR2I_resize(self, *args)
5819
5820 def insert(self, *args):
5821 r"""
5822 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, VECTOR2I x) -> std::vector< VECTOR2< int > >::iterator
5823 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)
5824 """
5825 return _pcbnew.VECTOR_VECTOR2I_insert(self, *args)
5826
5827 def reserve(self, n):
5828 r"""reserve(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n)"""
5829 return _pcbnew.VECTOR_VECTOR2I_reserve(self, n)
5830
5831 def capacity(self):
5832 r"""capacity(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5833 return _pcbnew.VECTOR_VECTOR2I_capacity(self)
5834 __swig_destroy__ = _pcbnew.delete_VECTOR_VECTOR2I
5835
5836# Register VECTOR_VECTOR2I in _pcbnew:
5837_pcbnew.VECTOR_VECTOR2I_swigregister(VECTOR_VECTOR2I)
5838
5839CORNER_STRATEGY_ALLOW_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_ALLOW_ACUTE_CORNERS
5840
5841CORNER_STRATEGY_CHAMFER_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_CHAMFER_ACUTE_CORNERS
5842
5843CORNER_STRATEGY_ROUND_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_ROUND_ACUTE_CORNERS
5844
5845CORNER_STRATEGY_CHAMFER_ALL_CORNERS = _pcbnew.CORNER_STRATEGY_CHAMFER_ALL_CORNERS
5846
5847CORNER_STRATEGY_ROUND_ALL_CORNERS = _pcbnew.CORNER_STRATEGY_ROUND_ALL_CORNERS
5848
5850 r"""Proxy of C++ SEG class."""
5851
5852 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5853 __repr__ = _swig_repr
5854 A = property(_pcbnew.SEG_A_get, _pcbnew.SEG_A_set, doc=r"""A : VECTOR2I""")
5855 B = property(_pcbnew.SEG_B_get, _pcbnew.SEG_B_set, doc=r"""B : VECTOR2I""")
5856
5857 def __init__(self, *args):
5858 r"""
5859 __init__(SEG self) -> SEG
5860 __init__(SEG self, int aX1, int aY1, int aX2, int aY2) -> SEG
5861 __init__(SEG self, VECTOR2I aA, VECTOR2I aB) -> SEG
5862 __init__(SEG self, VECTOR2I aA, VECTOR2I aB, int aIndex) -> SEG
5863 __init__(SEG self, SEG aSeg) -> SEG
5864 """
5865 _pcbnew.SEG_swiginit(self, _pcbnew.new_SEG(*args))
5866
5867 def __eq__(self, aSeg):
5868 r"""__eq__(SEG self, SEG aSeg) -> bool"""
5869 return _pcbnew.SEG___eq__(self, aSeg)
5870
5871 def __ne__(self, aSeg):
5872 r"""__ne__(SEG self, SEG aSeg) -> bool"""
5873 return _pcbnew.SEG___ne__(self, aSeg)
5874
5875 @staticmethod
5876 def Square(a):
5877 r"""Square(int a) -> SEG::ecoord"""
5878 return _pcbnew.SEG_Square(a)
5879
5880 def LineProject(self, aP):
5881 r"""LineProject(SEG self, VECTOR2I aP) -> VECTOR2I"""
5882 return _pcbnew.SEG_LineProject(self, aP)
5883
5884 def Side(self, aP):
5885 r"""Side(SEG self, VECTOR2I aP) -> int"""
5886 return _pcbnew.SEG_Side(self, aP)
5887
5888 def LineDistance(self, aP, aDetermineSide=False):
5889 r"""LineDistance(SEG self, VECTOR2I aP, bool aDetermineSide=False) -> int"""
5890 return _pcbnew.SEG_LineDistance(self, aP, aDetermineSide)
5891
5892 def Angle(self, aOther):
5893 r"""Angle(SEG self, SEG aOther) -> EDA_ANGLE"""
5894 return _pcbnew.SEG_Angle(self, aOther)
5895
5896 def NearestPoint(self, *args):
5897 r"""
5898 NearestPoint(SEG self, VECTOR2I aP) -> VECTOR2I
5899 NearestPoint(SEG self, SEG aSeg) -> VECTOR2I
5900 """
5901 return _pcbnew.SEG_NearestPoint(self, *args)
5902
5903 def ReflectPoint(self, aP):
5904 r"""ReflectPoint(SEG self, VECTOR2I aP) -> VECTOR2I"""
5905 return _pcbnew.SEG_ReflectPoint(self, aP)
5906
5907 def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False):
5908 r"""Intersect(SEG self, SEG aSeg, bool aIgnoreEndpoints=False, bool aLines=False) -> OPT_VECTOR2I"""
5909 return _pcbnew.SEG_Intersect(self, aSeg, aIgnoreEndpoints, aLines)
5910
5911 def Intersects(self, aSeg):
5912 r"""Intersects(SEG self, SEG aSeg) -> bool"""
5913 return _pcbnew.SEG_Intersects(self, aSeg)
5914
5915 def IntersectLines(self, aSeg):
5916 r"""IntersectLines(SEG self, SEG aSeg) -> OPT_VECTOR2I"""
5917 return _pcbnew.SEG_IntersectLines(self, aSeg)
5918
5919 def PerpendicularSeg(self, aP):
5920 r"""PerpendicularSeg(SEG self, VECTOR2I aP) -> SEG"""
5921 return _pcbnew.SEG_PerpendicularSeg(self, aP)
5922
5923 def ParallelSeg(self, aP):
5924 r"""ParallelSeg(SEG self, VECTOR2I aP) -> SEG"""
5925 return _pcbnew.SEG_ParallelSeg(self, aP)
5926
5927 def Collide(self, aSeg, aClearance, aActual=None):
5928 r"""Collide(SEG self, SEG aSeg, int aClearance, int * aActual=None) -> bool"""
5929 return _pcbnew.SEG_Collide(self, aSeg, aClearance, aActual)
5930
5931 def SquaredDistance(self, *args):
5932 r"""
5933 SquaredDistance(SEG self, SEG aSeg) -> SEG::ecoord
5934 SquaredDistance(SEG self, VECTOR2I aP) -> SEG::ecoord
5935 """
5936 return _pcbnew.SEG_SquaredDistance(self, *args)
5937
5938 def Distance(self, *args):
5939 r"""
5940 Distance(SEG self, SEG aSeg) -> int
5941 Distance(SEG self, VECTOR2I aP) -> int
5942 """
5943 return _pcbnew.SEG_Distance(self, *args)
5944
5945 def CanonicalCoefs(self, qA, qB, qC):
5946 r"""CanonicalCoefs(SEG self, SEG::ecoord & qA, SEG::ecoord & qB, SEG::ecoord & qC)"""
5947 return _pcbnew.SEG_CanonicalCoefs(self, qA, qB, qC)
5948
5949 def Collinear(self, aSeg):
5950 r"""Collinear(SEG self, SEG aSeg) -> bool"""
5951 return _pcbnew.SEG_Collinear(self, aSeg)
5952
5953 def ApproxCollinear(self, aSeg, aDistanceThreshold=1):
5954 r"""ApproxCollinear(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5955 return _pcbnew.SEG_ApproxCollinear(self, aSeg, aDistanceThreshold)
5956
5957 def ApproxParallel(self, aSeg, aDistanceThreshold=1):
5958 r"""ApproxParallel(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5959 return _pcbnew.SEG_ApproxParallel(self, aSeg, aDistanceThreshold)
5960
5961 def ApproxPerpendicular(self, aSeg):
5962 r"""ApproxPerpendicular(SEG self, SEG aSeg) -> bool"""
5963 return _pcbnew.SEG_ApproxPerpendicular(self, aSeg)
5964
5965 def Overlaps(self, aSeg):
5966 r"""Overlaps(SEG self, SEG aSeg) -> bool"""
5967 return _pcbnew.SEG_Overlaps(self, aSeg)
5968
5969 def Length(self):
5970 r"""Length(SEG self) -> int"""
5971 return _pcbnew.SEG_Length(self)
5972
5973 def SquaredLength(self):
5974 r"""SquaredLength(SEG self) -> SEG::ecoord"""
5975 return _pcbnew.SEG_SquaredLength(self)
5976
5977 def TCoef(self, aP):
5978 r"""TCoef(SEG self, VECTOR2I aP) -> SEG::ecoord"""
5979 return _pcbnew.SEG_TCoef(self, aP)
5980
5981 def Index(self):
5982 r"""Index(SEG self) -> int"""
5983 return _pcbnew.SEG_Index(self)
5984
5985 def Contains(self, *args):
5986 r"""
5987 Contains(SEG self, SEG aSeg) -> bool
5988 Contains(SEG self, VECTOR2I aP) -> bool
5989 """
5990 return _pcbnew.SEG_Contains(self, *args)
5991
5992 def Reverse(self):
5993 r"""Reverse(SEG self)"""
5994 return _pcbnew.SEG_Reverse(self)
5995
5996 def Reversed(self):
5997 r"""Reversed(SEG self) -> SEG"""
5998 return _pcbnew.SEG_Reversed(self)
5999
6000 def Center(self):
6001 r"""Center(SEG self) -> VECTOR2I"""
6002 return _pcbnew.SEG_Center(self)
6003
6004 def __lt__(self, aSeg):
6005 r"""__lt__(SEG self, SEG aSeg) -> bool"""
6006 return _pcbnew.SEG___lt__(self, aSeg)
6007 __swig_destroy__ = _pcbnew.delete_SEG
6008
6009# Register SEG in _pcbnew:
6010_pcbnew.SEG_swigregister(SEG)
6011
6013 r"""SEG_Square(int a) -> SEG::ecoord"""
6014 return _pcbnew.SEG_Square(a)
6015
6016SH_RECT = _pcbnew.SH_RECT
6017
6018SH_SEGMENT = _pcbnew.SH_SEGMENT
6019
6020SH_LINE_CHAIN = _pcbnew.SH_LINE_CHAIN
6021
6022SH_CIRCLE = _pcbnew.SH_CIRCLE
6023
6024SH_SIMPLE = _pcbnew.SH_SIMPLE
6025
6026SH_POLY_SET = _pcbnew.SH_POLY_SET
6027
6028SH_COMPOUND = _pcbnew.SH_COMPOUND
6029
6030SH_ARC = _pcbnew.SH_ARC
6031
6032SH_NULL = _pcbnew.SH_NULL
6033
6034SH_POLY_SET_TRIANGLE = _pcbnew.SH_POLY_SET_TRIANGLE
6035
6036
6038 r"""SHAPE_TYPE_asString(SHAPE_TYPE a) -> wxString"""
6039 return _pcbnew.SHAPE_TYPE_asString(a)
6041 r"""Proxy of C++ SHAPE_BASE class."""
6042
6043 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6044 __repr__ = _swig_repr
6045
6046 def __init__(self, aType):
6047 r"""__init__(SHAPE_BASE self, SHAPE_TYPE aType) -> SHAPE_BASE"""
6048 _pcbnew.SHAPE_BASE_swiginit(self, _pcbnew.new_SHAPE_BASE(aType))
6049 __swig_destroy__ = _pcbnew.delete_SHAPE_BASE
6050
6051 def Type(self):
6052 r"""Type(SHAPE_BASE self) -> SHAPE_TYPE"""
6053 return _pcbnew.SHAPE_BASE_Type(self)
6054
6055 def TypeName(self):
6056 r"""TypeName(SHAPE_BASE self) -> wxString"""
6057 return _pcbnew.SHAPE_BASE_TypeName(self)
6058
6060 r"""HasIndexableSubshapes(SHAPE_BASE self) -> bool"""
6061 return _pcbnew.SHAPE_BASE_HasIndexableSubshapes(self)
6062
6064 r"""GetIndexableSubshapeCount(SHAPE_BASE self) -> size_t"""
6065 return _pcbnew.SHAPE_BASE_GetIndexableSubshapeCount(self)
6066
6067 def GetIndexableSubshapes(self, aSubshapes):
6068 r"""GetIndexableSubshapes(SHAPE_BASE self, std::vector< SHAPE const *,std::allocator< SHAPE const * > > & aSubshapes)"""
6069 return _pcbnew.SHAPE_BASE_GetIndexableSubshapes(self, aSubshapes)
6070
6071# Register SHAPE_BASE in _pcbnew:
6072_pcbnew.SHAPE_BASE_swigregister(SHAPE_BASE)
6073
6075 r"""Proxy of C++ SHAPE class."""
6076
6077 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6078
6079 def __init__(self, *args, **kwargs):
6080 raise AttributeError("No constructor defined - class is abstract")
6081 __repr__ = _swig_repr
6082 MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
6083
6084 __swig_destroy__ = _pcbnew.delete_SHAPE
6085
6086 def Clone(self):
6087 r"""Clone(SHAPE self) -> SHAPE"""
6088 return _pcbnew.SHAPE_Clone(self)
6089
6090 def GetClearance(self, aOther):
6091 r"""GetClearance(SHAPE self, SHAPE aOther) -> int"""
6092 return _pcbnew.SHAPE_GetClearance(self, aOther)
6093
6094 def IsNull(self):
6095 r"""IsNull(SHAPE self) -> bool"""
6096 return _pcbnew.SHAPE_IsNull(self)
6097
6098 def Collide(self, *args):
6099 r"""
6100 Collide(SHAPE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6101 Collide(SHAPE self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
6102 Collide(SHAPE self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6103 Collide(SHAPE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6104 """
6105 return _pcbnew.SHAPE_Collide(self, *args)
6106
6107 def BBox(self, aClearance=0):
6108 r"""BBox(SHAPE self, int aClearance=0) -> BOX2I"""
6109 return _pcbnew.SHAPE_BBox(self, aClearance)
6110
6111 def Centre(self):
6112 r"""Centre(SHAPE self) -> VECTOR2I"""
6113 return _pcbnew.SHAPE_Centre(self)
6114
6115 def Distance(self, aP):
6116 r"""Distance(SHAPE self, VECTOR2I aP) -> int"""
6117 return _pcbnew.SHAPE_Distance(self, aP)
6118
6119 def SquaredDistance(self, aP, aOutlineOnly=False):
6120 r"""SquaredDistance(SHAPE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord"""
6121 return _pcbnew.SHAPE_SquaredDistance(self, aP, aOutlineOnly)
6122
6123 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
6124 r"""PointInside(SHAPE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
6125 return _pcbnew.SHAPE_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
6126
6127 def TransformToPolygon(self, aBuffer, aError, aErrorLoc):
6128 r"""TransformToPolygon(SHAPE self, SHAPE_POLY_SET aBuffer, int aError, ERROR_LOC aErrorLoc)"""
6129 return _pcbnew.SHAPE_TransformToPolygon(self, aBuffer, aError, aErrorLoc)
6130
6131 def Rotate(self, *args):
6132 r"""Rotate(SHAPE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6133 return _pcbnew.SHAPE_Rotate(self, *args)
6134
6135 def Move(self, aVector):
6136 r"""Move(SHAPE self, VECTOR2I aVector)"""
6137 return _pcbnew.SHAPE_Move(self, aVector)
6138
6139 def IsSolid(self):
6140 r"""IsSolid(SHAPE self) -> bool"""
6141 return _pcbnew.SHAPE_IsSolid(self)
6142
6143 def Parse(self, aStream):
6144 r"""Parse(SHAPE self, std::stringstream & aStream) -> bool"""
6145 return _pcbnew.SHAPE_Parse(self, aStream)
6146
6147 def Format(self, aCplusPlus=True):
6148 r"""Format(SHAPE self, bool aCplusPlus=True) -> string"""
6149 return _pcbnew.SHAPE_Format(self, aCplusPlus)
6150
6151 def Cast(self):
6152 shape_type = SHAPE_TYPE_asString(self.Type())
6153
6154 if shape_type == "SH_ARC":
6155 return Cast_to_SHAPE_ARC(self)
6156 elif shape_type == "SH_CIRCLE":
6157 return Cast_to_SHAPE_CIRCLE(self)
6158 elif shape_type == "SH_COMPOUND":
6159 return Cast_to_SHAPE_COMPOUND(self)
6160 elif shape_type == "SH_LINE_CHAIN":
6161 return Cast_to_SHAPE_LINE_CHAIN(self)
6162 elif shape_type == "SH_POLY_SET":
6163 return Cast_to_SHAPE_POLY_SET(self)
6164 elif shape_type == "SH_RECT":
6165 return Cast_to_SHAPE_RECT(self)
6166 elif shape_type == "SH_SEGMENT":
6167 return Cast_to_SHAPE_SEGMENT(self)
6168 elif shape_type == "SH_SIMPLE":
6169 return Cast_to_SHAPE_SIMPLE(self)
6170 else:
6171 raise TypeError("Unsupported shape class: %s" % shape_type)
6172
6173
6174# Register SHAPE in _pcbnew:
6175_pcbnew.SHAPE_swigregister(SHAPE)
6176
6178 r"""Proxy of C++ SHAPE_LINE_CHAIN_BASE class."""
6179
6180 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6181
6182 def __init__(self, *args, **kwargs):
6183 raise AttributeError("No constructor defined - class is abstract")
6184 __repr__ = _swig_repr
6185 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN_BASE
6186
6187 def Collide(self, *args):
6188 r"""
6189 Collide(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6190 Collide(SHAPE_LINE_CHAIN_BASE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6191 """
6192 return _pcbnew.SHAPE_LINE_CHAIN_BASE_Collide(self, *args)
6193
6194 def SquaredDistance(self, aP, aOutlineOnly=False):
6195 r"""SquaredDistance(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord"""
6196 return _pcbnew.SHAPE_LINE_CHAIN_BASE_SquaredDistance(self, aP, aOutlineOnly)
6197
6198 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
6199 r"""PointInside(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
6200 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
6201
6202 def PointOnEdge(self, aP, aAccuracy=0):
6203 r"""PointOnEdge(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> bool"""
6204 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointOnEdge(self, aP, aAccuracy)
6205
6206 def EdgeContainingPoint(self, aP, aAccuracy=0):
6207 r"""EdgeContainingPoint(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> int"""
6208 return _pcbnew.SHAPE_LINE_CHAIN_BASE_EdgeContainingPoint(self, aP, aAccuracy)
6209
6210 def GetPoint(self, aIndex):
6211 r"""GetPoint(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> VECTOR2I"""
6212 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPoint(self, aIndex)
6213
6214 def GetSegment(self, aIndex):
6215 r"""GetSegment(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> SEG"""
6216 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegment(self, aIndex)
6217
6218 def GetPointCount(self):
6219 r"""GetPointCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
6220 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPointCount(self)
6221
6223 r"""GetSegmentCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
6224 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegmentCount(self)
6225
6226 def IsClosed(self):
6227 r"""IsClosed(SHAPE_LINE_CHAIN_BASE self) -> bool"""
6228 return _pcbnew.SHAPE_LINE_CHAIN_BASE_IsClosed(self)
6229
6230 def GetCachedBBox(self):
6231 r"""GetCachedBBox(SHAPE_LINE_CHAIN_BASE self) -> BOX2I"""
6232 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetCachedBBox(self)
6233
6234# Register SHAPE_LINE_CHAIN_BASE in _pcbnew:
6235_pcbnew.SHAPE_LINE_CHAIN_BASE_swigregister(SHAPE_LINE_CHAIN_BASE)
6236
6238 r"""Proxy of C++ SHAPE_ARC class."""
6239
6240 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6241
6242 def __init__(self, *args, **kwargs):
6243 raise AttributeError("No constructor defined - class is abstract")
6244 __repr__ = _swig_repr
6245 __swig_destroy__ = _pcbnew.delete_SHAPE_ARC
6246
6247 def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0):
6248 r"""ConstructFromStartEndAngle(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, EDA_ANGLE aAngle, double aWidth=0) -> SHAPE_ARC"""
6249 return _pcbnew.SHAPE_ARC_ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth)
6250
6251 def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0):
6252 r"""ConstructFromStartEndCenter(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, VECTOR2I aCenter, bool aClockwise=False, double aWidth=0) -> SHAPE_ARC"""
6253 return _pcbnew.SHAPE_ARC_ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise, aWidth)
6254
6255 def GetP0(self):
6256 r"""GetP0(SHAPE_ARC self) -> VECTOR2I"""
6257 return _pcbnew.SHAPE_ARC_GetP0(self)
6258
6259 def GetP1(self):
6260 r"""GetP1(SHAPE_ARC self) -> VECTOR2I"""
6261 return _pcbnew.SHAPE_ARC_GetP1(self)
6262
6263 def GetArcMid(self):
6264 r"""GetArcMid(SHAPE_ARC self) -> VECTOR2I"""
6265 return _pcbnew.SHAPE_ARC_GetArcMid(self)
6266
6267 def GetCenter(self):
6268 r"""GetCenter(SHAPE_ARC self) -> VECTOR2I"""
6269 return _pcbnew.SHAPE_ARC_GetCenter(self)
6270
6271 def BBox(self, aClearance=0):
6272 r"""BBox(SHAPE_ARC self, int aClearance=0) -> BOX2I"""
6273 return _pcbnew.SHAPE_ARC_BBox(self, aClearance)
6274
6275 def NearestPoint(self, aP):
6276 r"""NearestPoint(SHAPE_ARC self, VECTOR2I aP) -> VECTOR2I"""
6277 return _pcbnew.SHAPE_ARC_NearestPoint(self, aP)
6278
6279 def Collide(self, *args):
6280 r"""
6281 Collide(SHAPE_ARC self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6282 Collide(SHAPE_ARC self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6283 Collide(SHAPE_ARC self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6284 """
6285 return _pcbnew.SHAPE_ARC_Collide(self, *args)
6286
6287 def IntersectLine(self, aSeg, aIpsBuffer):
6288 r"""IntersectLine(SHAPE_ARC self, SEG aSeg, VECTOR_VECTOR2I aIpsBuffer) -> int"""
6289 return _pcbnew.SHAPE_ARC_IntersectLine(self, aSeg, aIpsBuffer)
6290
6291 def Intersect(self, aArc, aIpsBuffer):
6292 r"""Intersect(SHAPE_ARC self, SHAPE_ARC aArc, VECTOR_VECTOR2I aIpsBuffer) -> int"""
6293 return _pcbnew.SHAPE_ARC_Intersect(self, aArc, aIpsBuffer)
6294
6295 def SetWidth(self, aWidth):
6296 r"""SetWidth(SHAPE_ARC self, int aWidth)"""
6297 return _pcbnew.SHAPE_ARC_SetWidth(self, aWidth)
6298
6299 def GetWidth(self):
6300 r"""GetWidth(SHAPE_ARC self) -> int"""
6301 return _pcbnew.SHAPE_ARC_GetWidth(self)
6302
6303 def Mirror(self, *args):
6304 r"""
6305 Mirror(SHAPE_ARC self, bool aX=True, bool aY=False, VECTOR2I aVector={ 0, 0 })
6306 Mirror(SHAPE_ARC self, SEG axis)
6307 """
6308 return _pcbnew.SHAPE_ARC_Mirror(self, *args)
6309
6310 def Reverse(self):
6311 r"""Reverse(SHAPE_ARC self)"""
6312 return _pcbnew.SHAPE_ARC_Reverse(self)
6313
6314 def Reversed(self):
6315 r"""Reversed(SHAPE_ARC self) -> SHAPE_ARC"""
6316 return _pcbnew.SHAPE_ARC_Reversed(self)
6317
6318 def GetRadius(self):
6319 r"""GetRadius(SHAPE_ARC self) -> double"""
6320 return _pcbnew.SHAPE_ARC_GetRadius(self)
6321
6322 def GetChord(self):
6323 r"""GetChord(SHAPE_ARC self) -> SEG"""
6324 return _pcbnew.SHAPE_ARC_GetChord(self)
6325
6327 r"""GetCentralAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6328 return _pcbnew.SHAPE_ARC_GetCentralAngle(self)
6329
6330 def GetStartAngle(self):
6331 r"""GetStartAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6332 return _pcbnew.SHAPE_ARC_GetStartAngle(self)
6333
6334 def GetEndAngle(self):
6335 r"""GetEndAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6336 return _pcbnew.SHAPE_ARC_GetEndAngle(self)
6337
6338 def GetLength(self):
6339 r"""GetLength(SHAPE_ARC self) -> double"""
6340 return _pcbnew.SHAPE_ARC_GetLength(self)
6341
6342 @staticmethod
6344 r"""DefaultAccuracyForPCB() -> double"""
6345 return _pcbnew.SHAPE_ARC_DefaultAccuracyForPCB()
6346
6347 def ConvertToPolyline(self, *args):
6348 r"""ConvertToPolyline(SHAPE_ARC self, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB(), double * aEffectiveAccuracy=None) -> SHAPE_LINE_CHAIN"""
6349 return _pcbnew.SHAPE_ARC_ConvertToPolyline(self, *args)
6350
6351 def __eq__(self, aArc):
6352 r"""__eq__(SHAPE_ARC self, SHAPE_ARC aArc) -> bool"""
6353 return _pcbnew.SHAPE_ARC___eq__(self, aArc)
6354
6355 def IsCCW(self):
6356 r"""IsCCW(SHAPE_ARC self) -> bool"""
6357 return _pcbnew.SHAPE_ARC_IsCCW(self)
6358
6359 def IsClockwise(self):
6360 r"""IsClockwise(SHAPE_ARC self) -> bool"""
6361 return _pcbnew.SHAPE_ARC_IsClockwise(self)
6362
6363# Register SHAPE_ARC in _pcbnew:
6364_pcbnew.SHAPE_ARC_swigregister(SHAPE_ARC)
6365
6367 r"""SHAPE_ARC_DefaultAccuracyForPCB() -> double"""
6368 return _pcbnew.SHAPE_ARC_DefaultAccuracyForPCB()
6369
6371 r"""Proxy of C++ SHAPE_CIRCLE class."""
6372
6373 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6374 __repr__ = _swig_repr
6375
6376 def __init__(self, *args):
6377 r"""
6378 __init__(SHAPE_CIRCLE self) -> SHAPE_CIRCLE
6379 __init__(SHAPE_CIRCLE self, VECTOR2I aCenter, int aRadius) -> SHAPE_CIRCLE
6380 __init__(SHAPE_CIRCLE self, CIRCLE const & aCircle) -> SHAPE_CIRCLE
6381 __init__(SHAPE_CIRCLE self, SHAPE_CIRCLE aOther) -> SHAPE_CIRCLE
6382 """
6383 _pcbnew.SHAPE_CIRCLE_swiginit(self, _pcbnew.new_SHAPE_CIRCLE(*args))
6384 __swig_destroy__ = _pcbnew.delete_SHAPE_CIRCLE
6385
6386 def BBox(self, aClearance=0):
6387 r"""BBox(SHAPE_CIRCLE self, int aClearance=0) -> BOX2I"""
6388 return _pcbnew.SHAPE_CIRCLE_BBox(self, aClearance)
6389
6390 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
6391 r"""Collide(SHAPE_CIRCLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
6392 return _pcbnew.SHAPE_CIRCLE_Collide(self, aSeg, aClearance, aActual, aLocation)
6393
6394 def SetRadius(self, aRadius):
6395 r"""SetRadius(SHAPE_CIRCLE self, int aRadius)"""
6396 return _pcbnew.SHAPE_CIRCLE_SetRadius(self, aRadius)
6397
6398 def SetCenter(self, aCenter):
6399 r"""SetCenter(SHAPE_CIRCLE self, VECTOR2I aCenter)"""
6400 return _pcbnew.SHAPE_CIRCLE_SetCenter(self, aCenter)
6401
6402 def GetRadius(self):
6403 r"""GetRadius(SHAPE_CIRCLE self) -> int"""
6404 return _pcbnew.SHAPE_CIRCLE_GetRadius(self)
6405
6406 def GetCenter(self):
6407 r"""GetCenter(SHAPE_CIRCLE self) -> VECTOR2I"""
6408 return _pcbnew.SHAPE_CIRCLE_GetCenter(self)
6409
6410 def GetCircle(self):
6411 r"""GetCircle(SHAPE_CIRCLE self) -> CIRCLE const"""
6412 return _pcbnew.SHAPE_CIRCLE_GetCircle(self)
6413
6414 def Rotate(self, *args):
6415 r"""Rotate(SHAPE_CIRCLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6416 return _pcbnew.SHAPE_CIRCLE_Rotate(self, *args)
6417
6418 def Format(self, aCplusPlus=True):
6419 r"""Format(SHAPE_CIRCLE self, bool aCplusPlus=True) -> string"""
6420 return _pcbnew.SHAPE_CIRCLE_Format(self, aCplusPlus)
6421
6422# Register SHAPE_CIRCLE in _pcbnew:
6423_pcbnew.SHAPE_CIRCLE_swigregister(SHAPE_CIRCLE)
6424
6426 r"""Proxy of C++ SHAPE_COMPOUND class."""
6427
6428 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6429 __repr__ = _swig_repr
6430
6431 def __init__(self, *args):
6432 r"""
6433 __init__(SHAPE_COMPOUND self) -> SHAPE_COMPOUND
6434 __init__(SHAPE_COMPOUND self, std::vector< SHAPE *,std::allocator< SHAPE * > > const & aShapes) -> SHAPE_COMPOUND
6435 __init__(SHAPE_COMPOUND self, SHAPE_COMPOUND aOther) -> SHAPE_COMPOUND
6436 """
6437 _pcbnew.SHAPE_COMPOUND_swiginit(self, _pcbnew.new_SHAPE_COMPOUND(*args))
6438 __swig_destroy__ = _pcbnew.delete_SHAPE_COMPOUND
6439
6440 def Clone(self):
6441 r"""Clone(SHAPE_COMPOUND self) -> SHAPE_COMPOUND"""
6442 return _pcbnew.SHAPE_COMPOUND_Clone(self)
6443
6444 def Format(self, aCplusPlus=True):
6445 r"""Format(SHAPE_COMPOUND self, bool aCplusPlus=True) -> string"""
6446 return _pcbnew.SHAPE_COMPOUND_Format(self, aCplusPlus)
6447
6448 def Collide(self, *args):
6449 r"""
6450 Collide(SHAPE_COMPOUND self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6451 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
6452 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6453 """
6454 return _pcbnew.SHAPE_COMPOUND_Collide(self, *args)
6455
6456 def Shapes(self):
6457 r"""Shapes(SHAPE_COMPOUND self) -> std::vector< SHAPE *,std::allocator< SHAPE * > > const &"""
6458 return _pcbnew.SHAPE_COMPOUND_Shapes(self)
6459
6460 def BBox(self, aClearance=0):
6461 r"""BBox(SHAPE_COMPOUND self, int aClearance=0) -> BOX2I"""
6462 return _pcbnew.SHAPE_COMPOUND_BBox(self, aClearance)
6463
6464 def Distance(self, *args):
6465 r"""
6466 Distance(SHAPE_COMPOUND self, VECTOR2I aP) -> int
6467 Distance(SHAPE_COMPOUND self, SEG aSeg) -> int
6468 """
6469 return _pcbnew.SHAPE_COMPOUND_Distance(self, *args)
6470
6471 def AddShape(self, *args):
6472 r"""
6473 AddShape(SHAPE_COMPOUND self, SHAPE aShape)
6474 AddShape(SHAPE_COMPOUND self, std::shared_ptr< SHAPE > aShape)
6475 """
6476 return _pcbnew.SHAPE_COMPOUND_AddShape(self, *args)
6477
6478 def Empty(self):
6479 r"""Empty(SHAPE_COMPOUND self) -> bool"""
6480 return _pcbnew.SHAPE_COMPOUND_Empty(self)
6481
6482 def Size(self):
6483 r"""Size(SHAPE_COMPOUND self) -> int"""
6484 return _pcbnew.SHAPE_COMPOUND_Size(self)
6485
6486 def Rotate(self, *args):
6487 r"""Rotate(SHAPE_COMPOUND self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6488 return _pcbnew.SHAPE_COMPOUND_Rotate(self, *args)
6489
6491 r"""UniqueSubshape(SHAPE_COMPOUND self) -> SHAPE"""
6492 return _pcbnew.SHAPE_COMPOUND_UniqueSubshape(self)
6493
6494 def GetSubshapes(self):
6495 r"""GetSubshapes(SHAPE_COMPOUND self) -> VECTOR_SHAPEPTR"""
6496 return _pcbnew.SHAPE_COMPOUND_GetSubshapes(self)
6497
6498# Register SHAPE_COMPOUND in _pcbnew:
6499_pcbnew.SHAPE_COMPOUND_swigregister(SHAPE_COMPOUND)
6500
6502 r"""Proxy of C++ CLIPPER_Z_VALUE class."""
6503
6504 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6505 __repr__ = _swig_repr
6506
6507 def __init__(self, *args):
6508 r"""
6509 __init__(CLIPPER_Z_VALUE self) -> CLIPPER_Z_VALUE
6510 __init__(CLIPPER_Z_VALUE self, std::pair< ssize_t,ssize_t > const aShapeIndices, ssize_t aOffset=0) -> CLIPPER_Z_VALUE
6511 """
6512 _pcbnew.CLIPPER_Z_VALUE_swiginit(self, _pcbnew.new_CLIPPER_Z_VALUE(*args))
6513 m_FirstArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_set, doc=r"""m_FirstArcIdx : ssize_t""")
6514 m_SecondArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_set, doc=r"""m_SecondArcIdx : ssize_t""")
6515 __swig_destroy__ = _pcbnew.delete_CLIPPER_Z_VALUE
6516
6517# Register CLIPPER_Z_VALUE in _pcbnew:
6518_pcbnew.CLIPPER_Z_VALUE_swigregister(CLIPPER_Z_VALUE)
6519
6521 r"""Proxy of C++ SHAPE_LINE_CHAIN class."""
6522
6523 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6524 __repr__ = _swig_repr
6525
6526 def __init__(self, *args):
6527 r"""
6528 __init__(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN
6529 __init__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aShape) -> SHAPE_LINE_CHAIN
6530 __init__(SHAPE_LINE_CHAIN self, intVector aV) -> SHAPE_LINE_CHAIN
6531 __init__(SHAPE_LINE_CHAIN self, VECTOR_VECTOR2I aV, bool aClosed=False) -> SHAPE_LINE_CHAIN
6532 __init__(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, bool aClosed=False) -> SHAPE_LINE_CHAIN
6533 __init__(SHAPE_LINE_CHAIN self, ClipperLib::Path const & aPath, std::vector< CLIPPER_Z_VALUE,std::allocator< CLIPPER_Z_VALUE > > const & aZValueBuffer, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > const & aArcBuffer) -> SHAPE_LINE_CHAIN
6534 __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
6535 """
6536 _pcbnew.SHAPE_LINE_CHAIN_swiginit(self, _pcbnew.new_SHAPE_LINE_CHAIN(*args))
6537 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN
6538
6539 def Collide(self, *args):
6540 r"""
6541 Collide(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6542 Collide(SHAPE_LINE_CHAIN self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6543 """
6544 return _pcbnew.SHAPE_LINE_CHAIN_Collide(self, *args)
6545
6546 def Clear(self):
6547 r"""Clear(SHAPE_LINE_CHAIN self)"""
6548 return _pcbnew.SHAPE_LINE_CHAIN_Clear(self)
6549
6550 def SetClosed(self, aClosed):
6551 r"""SetClosed(SHAPE_LINE_CHAIN self, bool aClosed)"""
6552 return _pcbnew.SHAPE_LINE_CHAIN_SetClosed(self, aClosed)
6553
6554 def SetWidth(self, aWidth):
6555 r"""SetWidth(SHAPE_LINE_CHAIN self, int aWidth)"""
6556 return _pcbnew.SHAPE_LINE_CHAIN_SetWidth(self, aWidth)
6557
6558 def Width(self):
6559 r"""Width(SHAPE_LINE_CHAIN self) -> int"""
6560 return _pcbnew.SHAPE_LINE_CHAIN_Width(self)
6561
6562 def SegmentCount(self):
6563 r"""SegmentCount(SHAPE_LINE_CHAIN self) -> int"""
6564 return _pcbnew.SHAPE_LINE_CHAIN_SegmentCount(self)
6565
6566 def ShapeCount(self):
6567 r"""ShapeCount(SHAPE_LINE_CHAIN self) -> int"""
6568 return _pcbnew.SHAPE_LINE_CHAIN_ShapeCount(self)
6569
6571 r"""RemoveDuplicatePoints(SHAPE_LINE_CHAIN self)"""
6572 return _pcbnew.SHAPE_LINE_CHAIN_RemoveDuplicatePoints(self)
6573
6574 def Simplify(self, aMaxError=0):
6575 r"""Simplify(SHAPE_LINE_CHAIN self, int aMaxError=0)"""
6576 return _pcbnew.SHAPE_LINE_CHAIN_Simplify(self, aMaxError)
6577
6578 def PointCount(self):
6579 r"""PointCount(SHAPE_LINE_CHAIN self) -> int"""
6580 return _pcbnew.SHAPE_LINE_CHAIN_PointCount(self)
6581
6582 def Segment(self, aIndex):
6583 r"""Segment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6584 return _pcbnew.SHAPE_LINE_CHAIN_Segment(self, aIndex)
6585
6586 def CSegment(self, aIndex):
6587 r"""CSegment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6588 return _pcbnew.SHAPE_LINE_CHAIN_CSegment(self, aIndex)
6589
6590 def NextShape(self, aPointIndex):
6591 r"""NextShape(SHAPE_LINE_CHAIN self, int aPointIndex) -> int"""
6592 return _pcbnew.SHAPE_LINE_CHAIN_NextShape(self, aPointIndex)
6593
6594 def SetPoint(self, aIndex, aPos):
6595 r"""SetPoint(SHAPE_LINE_CHAIN self, int aIndex, VECTOR2I aPos)"""
6596 return _pcbnew.SHAPE_LINE_CHAIN_SetPoint(self, aIndex, aPos)
6597
6598 def CPoint(self, aIndex):
6599 r"""CPoint(SHAPE_LINE_CHAIN self, int aIndex) -> VECTOR2I"""
6600 return _pcbnew.SHAPE_LINE_CHAIN_CPoint(self, aIndex)
6601
6602 def CPoints(self):
6603 r"""CPoints(SHAPE_LINE_CHAIN self) -> VECTOR_VECTOR2I"""
6604 return _pcbnew.SHAPE_LINE_CHAIN_CPoints(self)
6605
6606 def CLastPoint(self):
6607 r"""CLastPoint(SHAPE_LINE_CHAIN self) -> VECTOR2I"""
6608 return _pcbnew.SHAPE_LINE_CHAIN_CLastPoint(self)
6609
6610 def CArcs(self):
6611 r"""CArcs(SHAPE_LINE_CHAIN self) -> std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > const &"""
6612 return _pcbnew.SHAPE_LINE_CHAIN_CArcs(self)
6613
6614 def CShapes(self):
6615 r"""CShapes(SHAPE_LINE_CHAIN self) -> std::vector< std::pair< ssize_t,ssize_t >,std::allocator< std::pair< ssize_t,ssize_t > > > const &"""
6616 return _pcbnew.SHAPE_LINE_CHAIN_CShapes(self)
6617
6618 def BBox(self, aClearance=0):
6619 r"""BBox(SHAPE_LINE_CHAIN self, int aClearance=0) -> BOX2I"""
6620 return _pcbnew.SHAPE_LINE_CHAIN_BBox(self, aClearance)
6621
6623 r"""GenerateBBoxCache(SHAPE_LINE_CHAIN self)"""
6624 return _pcbnew.SHAPE_LINE_CHAIN_GenerateBBoxCache(self)
6625
6626 def Reverse(self):
6627 r"""Reverse(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN"""
6628 return _pcbnew.SHAPE_LINE_CHAIN_Reverse(self)
6629
6630 def ClearArcs(self):
6631 r"""ClearArcs(SHAPE_LINE_CHAIN self)"""
6632 return _pcbnew.SHAPE_LINE_CHAIN_ClearArcs(self)
6633
6634 def Length(self):
6635 r"""Length(SHAPE_LINE_CHAIN self) -> long long"""
6636 return _pcbnew.SHAPE_LINE_CHAIN_Length(self)
6637
6638 def ReservePoints(self, aSize):
6639 r"""ReservePoints(SHAPE_LINE_CHAIN self, size_t aSize)"""
6640 return _pcbnew.SHAPE_LINE_CHAIN_ReservePoints(self, aSize)
6641
6642 def Append(self, *args):
6643 r"""
6644 Append(SHAPE_LINE_CHAIN self, int aX, int aY, bool aAllowDuplication=False)
6645 Append(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowDuplication=False)
6646 Append(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOtherLine)
6647 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc)
6648 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, double aAccuracy)
6649 """
6650 return _pcbnew.SHAPE_LINE_CHAIN_Append(self, *args)
6651
6652 def Insert(self, *args):
6653 r"""
6654 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, VECTOR2I aP)
6655 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, SHAPE_ARC aArc)
6656 """
6657 return _pcbnew.SHAPE_LINE_CHAIN_Insert(self, *args)
6658
6659 def Replace(self, *args):
6660 r"""
6661 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, VECTOR2I aP)
6662 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, SHAPE_LINE_CHAIN aLine)
6663 """
6664 return _pcbnew.SHAPE_LINE_CHAIN_Replace(self, *args)
6665
6666 def Remove(self, *args):
6667 r"""
6668 Remove(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex)
6669 Remove(SHAPE_LINE_CHAIN self, int aIndex)
6670 """
6671 return _pcbnew.SHAPE_LINE_CHAIN_Remove(self, *args)
6672
6673 def RemoveShape(self, aPointIndex):
6674 r"""RemoveShape(SHAPE_LINE_CHAIN self, int aPointIndex)"""
6675 return _pcbnew.SHAPE_LINE_CHAIN_RemoveShape(self, aPointIndex)
6676
6677 def Find(self, aP, aThreshold=0):
6678 r"""Find(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=0) -> int"""
6679 return _pcbnew.SHAPE_LINE_CHAIN_Find(self, aP, aThreshold)
6680
6681 def FindSegment(self, aP, aThreshold=1):
6682 r"""FindSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=1) -> int"""
6683 return _pcbnew.SHAPE_LINE_CHAIN_FindSegment(self, aP, aThreshold)
6684
6685 def Slice(self, aStartIndex, aEndIndex=-1):
6686 r"""Slice(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex=-1) -> SHAPE_LINE_CHAIN"""
6687 return _pcbnew.SHAPE_LINE_CHAIN_Slice(self, aStartIndex, aEndIndex)
6688
6689 def Intersects(self, aChain):
6690 r"""Intersects(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain) -> bool"""
6691 return _pcbnew.SHAPE_LINE_CHAIN_Intersects(self, aChain)
6692
6693 def Intersect(self, *args):
6694 r"""
6695 Intersect(SHAPE_LINE_CHAIN self, SEG aSeg, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp) -> int
6696 Intersect(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp, bool aExcludeColinearAndTouching=False, BOX2I aChainBBox=None) -> int
6697 """
6698 return _pcbnew.SHAPE_LINE_CHAIN_Intersect(self, *args)
6699
6700 def PathLength(self, aP, aIndex=-1):
6701 r"""PathLength(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aIndex=-1) -> int"""
6702 return _pcbnew.SHAPE_LINE_CHAIN_PathLength(self, aP, aIndex)
6703
6704 def CheckClearance(self, aP, aDist):
6705 r"""CheckClearance(SHAPE_LINE_CHAIN self, VECTOR2I aP, int const aDist) -> bool"""
6706 return _pcbnew.SHAPE_LINE_CHAIN_CheckClearance(self, aP, aDist)
6707
6709 r"""SelfIntersecting(SHAPE_LINE_CHAIN self) -> std::optional< SHAPE_LINE_CHAIN::INTERSECTION > const"""
6710 return _pcbnew.SHAPE_LINE_CHAIN_SelfIntersecting(self)
6711
6712 def NearestSegment(self, aP):
6713 r"""NearestSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
6714 return _pcbnew.SHAPE_LINE_CHAIN_NearestSegment(self, aP)
6715
6716 def NearestPoint(self, *args):
6717 r"""
6718 NearestPoint(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowInternalShapePoints=True) -> VECTOR2I
6719 NearestPoint(SHAPE_LINE_CHAIN self, SEG aSeg, int & dist) -> VECTOR2I
6720 """
6721 return _pcbnew.SHAPE_LINE_CHAIN_NearestPoint(self, *args)
6722
6723 def Format(self, aCplusPlus=True):
6724 r"""Format(SHAPE_LINE_CHAIN self, bool aCplusPlus=True) -> string"""
6725 return _pcbnew.SHAPE_LINE_CHAIN_Format(self, aCplusPlus)
6726
6727 def __ne__(self, aRhs):
6728 r"""__ne__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aRhs) -> bool"""
6729 return _pcbnew.SHAPE_LINE_CHAIN___ne__(self, aRhs)
6730
6731 def CompareGeometry(self, aOther):
6732 r"""CompareGeometry(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOther) -> bool"""
6733 return _pcbnew.SHAPE_LINE_CHAIN_CompareGeometry(self, aOther)
6734
6735 def Mirror(self, *args):
6736 r"""
6737 Mirror(SHAPE_LINE_CHAIN self, bool aX=True, bool aY=False, VECTOR2I aRef={ 0, 0 })
6738 Mirror(SHAPE_LINE_CHAIN self, SEG axis)
6739 """
6740 return _pcbnew.SHAPE_LINE_CHAIN_Mirror(self, *args)
6741
6742 def Rotate(self, *args):
6743 r"""Rotate(SHAPE_LINE_CHAIN self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6744 return _pcbnew.SHAPE_LINE_CHAIN_Rotate(self, *args)
6745
6746 def PointAlong(self, aPathLength):
6747 r"""PointAlong(SHAPE_LINE_CHAIN self, int aPathLength) -> VECTOR2I"""
6748 return _pcbnew.SHAPE_LINE_CHAIN_PointAlong(self, aPathLength)
6749
6750 def Area(self, aAbsolute=True):
6751 r"""Area(SHAPE_LINE_CHAIN self, bool aAbsolute=True) -> double"""
6752 return _pcbnew.SHAPE_LINE_CHAIN_Area(self, aAbsolute)
6753
6754 def Split(self, *args):
6755 r"""
6756 Split(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aExact=False) -> int
6757 Split(SHAPE_LINE_CHAIN self, VECTOR2I aStart, VECTOR2I aEnd, SHAPE_LINE_CHAIN aPre, SHAPE_LINE_CHAIN aMid, SHAPE_LINE_CHAIN aPost)
6758 """
6759 return _pcbnew.SHAPE_LINE_CHAIN_Split(self, *args)
6760
6761 def OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify=False):
6762 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"""
6763 return _pcbnew.SHAPE_LINE_CHAIN_OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify)
6764
6765 def ArcCount(self):
6766 r"""ArcCount(SHAPE_LINE_CHAIN self) -> size_t"""
6767 return _pcbnew.SHAPE_LINE_CHAIN_ArcCount(self)
6768
6769 def ArcIndex(self, aSegment):
6770 r"""ArcIndex(SHAPE_LINE_CHAIN self, size_t aSegment) -> ssize_t"""
6771 return _pcbnew.SHAPE_LINE_CHAIN_ArcIndex(self, aSegment)
6772
6773 def Arc(self, aArc):
6774 r"""Arc(SHAPE_LINE_CHAIN self, size_t aArc) -> SHAPE_ARC"""
6775 return _pcbnew.SHAPE_LINE_CHAIN_Arc(self, aArc)
6776
6777 def IsSharedPt(self, aIndex):
6778 r"""IsSharedPt(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6779 return _pcbnew.SHAPE_LINE_CHAIN_IsSharedPt(self, aIndex)
6780
6781 def IsPtOnArc(self, aPtIndex):
6782 r"""IsPtOnArc(SHAPE_LINE_CHAIN self, size_t aPtIndex) -> bool"""
6783 return _pcbnew.SHAPE_LINE_CHAIN_IsPtOnArc(self, aPtIndex)
6784
6785 def IsArcSegment(self, aSegment):
6786 r"""IsArcSegment(SHAPE_LINE_CHAIN self, size_t aSegment) -> bool"""
6787 return _pcbnew.SHAPE_LINE_CHAIN_IsArcSegment(self, aSegment)
6788
6789 def IsArcStart(self, aIndex):
6790 r"""IsArcStart(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6791 return _pcbnew.SHAPE_LINE_CHAIN_IsArcStart(self, aIndex)
6792
6793 def IsArcEnd(self, aIndex):
6794 r"""IsArcEnd(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6795 return _pcbnew.SHAPE_LINE_CHAIN_IsArcEnd(self, aIndex)
6796
6797 def Distance(self, *args):
6798 r"""
6799 Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int
6800 Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aOutlineOnly) -> int
6801 """
6802 return _pcbnew.SHAPE_LINE_CHAIN_Distance(self, *args)
6803
6804# Register SHAPE_LINE_CHAIN in _pcbnew:
6805_pcbnew.SHAPE_LINE_CHAIN_swigregister(SHAPE_LINE_CHAIN)
6806
6808 r"""Proxy of C++ SHAPE_POLY_SET class."""
6809
6810 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6811 __repr__ = _swig_repr
6812
6813 def __init__(self, *args):
6814 r"""
6815 __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
6816 __init__(SHAPE_POLY_SET self, BOX2D const & aRect) -> SHAPE_POLY_SET
6817 __init__(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> SHAPE_POLY_SET
6818 __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & aPolygon) -> SHAPE_POLY_SET
6819 __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET
6820 """
6821 _pcbnew.SHAPE_POLY_SET_swiginit(self, _pcbnew.new_SHAPE_POLY_SET(*args))
6822 __swig_destroy__ = _pcbnew.delete_SHAPE_POLY_SET
6823
6824 def CacheTriangulation(self, aPartition=True, aSimplify=False):
6825 r"""CacheTriangulation(SHAPE_POLY_SET self, bool aPartition=True, bool aSimplify=False)"""
6826 return _pcbnew.SHAPE_POLY_SET_CacheTriangulation(self, aPartition, aSimplify)
6827
6829 r"""IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool"""
6830 return _pcbnew.SHAPE_POLY_SET_IsTriangulationUpToDate(self)
6831
6832 def GetHash(self):
6833 r"""GetHash(SHAPE_POLY_SET self) -> MD5_HASH"""
6834 return _pcbnew.SHAPE_POLY_SET_GetHash(self)
6835
6836 def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices):
6837 r"""GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool"""
6838 return _pcbnew.SHAPE_POLY_SET_GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
6839
6840 def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx):
6841 r"""GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool"""
6842 return _pcbnew.SHAPE_POLY_SET_GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
6843
6845 r"""CloneDropTriangulation(SHAPE_POLY_SET self) -> SHAPE_POLY_SET"""
6846 return _pcbnew.SHAPE_POLY_SET_CloneDropTriangulation(self)
6847
6848 def NewOutline(self):
6849 r"""NewOutline(SHAPE_POLY_SET self) -> int"""
6850 return _pcbnew.SHAPE_POLY_SET_NewOutline(self)
6851
6852 def NewHole(self, aOutline=-1):
6853 r"""NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int"""
6854 return _pcbnew.SHAPE_POLY_SET_NewHole(self, aOutline)
6855
6856 def AddOutline(self, aOutline):
6857 r"""AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> int"""
6858 return _pcbnew.SHAPE_POLY_SET_AddOutline(self, aOutline)
6859
6860 def AddHole(self, aHole, aOutline=-1):
6861 r"""AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole, int aOutline=-1) -> int"""
6862 return _pcbnew.SHAPE_POLY_SET_AddHole(self, aHole, aOutline)
6863
6864 def AddPolygon(self, apolygon):
6865 r"""AddPolygon(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & apolygon) -> int"""
6866 return _pcbnew.SHAPE_POLY_SET_AddPolygon(self, apolygon)
6867
6868 def Area(self):
6869 r"""Area(SHAPE_POLY_SET self) -> double"""
6870 return _pcbnew.SHAPE_POLY_SET_Area(self)
6871
6872 def ArcCount(self):
6873 r"""ArcCount(SHAPE_POLY_SET self) -> int"""
6874 return _pcbnew.SHAPE_POLY_SET_ArcCount(self)
6875
6876 def GetArcs(self, aArcBuffer):
6877 r"""GetArcs(SHAPE_POLY_SET self, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > & aArcBuffer)"""
6878 return _pcbnew.SHAPE_POLY_SET_GetArcs(self, aArcBuffer)
6879
6880 def ClearArcs(self):
6881 r"""ClearArcs(SHAPE_POLY_SET self)"""
6882 return _pcbnew.SHAPE_POLY_SET_ClearArcs(self)
6883
6884 def Append(self, *args):
6885 r"""
6886 Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
6887 Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
6888 Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1, int aHole=-1)
6889 Append(SHAPE_POLY_SET self, SHAPE_ARC aArc, int aOutline=-1, int aHole=-1, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB()) -> int
6890 """
6891 return _pcbnew.SHAPE_POLY_SET_Append(self, *args)
6892
6893 def InsertVertex(self, aGlobalIndex, aNewVertex):
6894 r"""InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)"""
6895 return _pcbnew.SHAPE_POLY_SET_InsertVertex(self, aGlobalIndex, aNewVertex)
6896
6897 def CVertex(self, *args):
6898 r"""
6899 CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
6900 CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
6901 CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I
6902 """
6903 return _pcbnew.SHAPE_POLY_SET_CVertex(self, *args)
6904
6905 def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext):
6906 r"""GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool"""
6907 return _pcbnew.SHAPE_POLY_SET_GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
6908
6909 def IsPolygonSelfIntersecting(self, aPolygonIndex):
6910 r"""IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool"""
6911 return _pcbnew.SHAPE_POLY_SET_IsPolygonSelfIntersecting(self, aPolygonIndex)
6912
6914 r"""IsSelfIntersecting(SHAPE_POLY_SET self) -> bool"""
6915 return _pcbnew.SHAPE_POLY_SET_IsSelfIntersecting(self)
6916
6918 r"""TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int"""
6919 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolyCount(self)
6920
6921 def OutlineCount(self):
6922 r"""OutlineCount(SHAPE_POLY_SET self) -> int"""
6923 return _pcbnew.SHAPE_POLY_SET_OutlineCount(self)
6924
6925 def VertexCount(self, aOutline=-1, aHole=-1):
6926 r"""VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int"""
6927 return _pcbnew.SHAPE_POLY_SET_VertexCount(self, aOutline, aHole)
6928
6930 r"""FullPointCount(SHAPE_POLY_SET self) -> int"""
6931 return _pcbnew.SHAPE_POLY_SET_FullPointCount(self)
6932
6933 def HoleCount(self, aOutline):
6934 r"""HoleCount(SHAPE_POLY_SET self, int aOutline) -> int"""
6935 return _pcbnew.SHAPE_POLY_SET_HoleCount(self, aOutline)
6936
6937 def Outline(self, *args):
6938 r"""
6939 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6940 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6941 """
6942 return _pcbnew.SHAPE_POLY_SET_Outline(self, *args)
6943
6944 def Subset(self, aFirstPolygon, aLastPolygon):
6945 r"""Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET"""
6946 return _pcbnew.SHAPE_POLY_SET_Subset(self, aFirstPolygon, aLastPolygon)
6947
6948 def UnitSet(self, aPolygonIndex):
6949 r"""UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET"""
6950 return _pcbnew.SHAPE_POLY_SET_UnitSet(self, aPolygonIndex)
6951
6952 def Hole(self, aOutline, aHole):
6953 r"""Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6954 return _pcbnew.SHAPE_POLY_SET_Hole(self, aOutline, aHole)
6955
6956 def Polygon(self, *args):
6957 r"""
6958 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
6959 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &
6960 """
6961 return _pcbnew.SHAPE_POLY_SET_Polygon(self, *args)
6962
6963 def TriangulatedPolygon(self, aIndex):
6964 r"""TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *"""
6965 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolygon(self, aIndex)
6966
6967 def COutline(self, aIndex):
6968 r"""COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN"""
6969 return _pcbnew.SHAPE_POLY_SET_COutline(self, aIndex)
6970
6971 def CHole(self, aOutline, aHole):
6972 r"""CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6973 return _pcbnew.SHAPE_POLY_SET_CHole(self, aOutline, aHole)
6974
6975 def CPolygon(self, aIndex):
6976 r"""CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &"""
6977 return _pcbnew.SHAPE_POLY_SET_CPolygon(self, aIndex)
6978
6979 def CPolygons(self):
6980 r"""CPolygons(SHAPE_POLY_SET self) -> std::vector< SHAPE_POLY_SET::POLYGON,std::allocator< SHAPE_POLY_SET::POLYGON > > const &"""
6981 return _pcbnew.SHAPE_POLY_SET_CPolygons(self)
6982
6983 def Iterate(self, *args):
6984 r"""
6985 Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
6986 Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6987 Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6988 """
6989 return _pcbnew.SHAPE_POLY_SET_Iterate(self, *args)
6990
6991 def IterateWithHoles(self, *args):
6992 r"""
6993 IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6994 IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6995 """
6996 return _pcbnew.SHAPE_POLY_SET_IterateWithHoles(self, *args)
6997
6998 def CIterate(self, *args):
6999 r"""
7000 CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
7001 CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
7002 CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
7003 """
7004 return _pcbnew.SHAPE_POLY_SET_CIterate(self, *args)
7005
7006 def CIterateWithHoles(self, *args):
7007 r"""
7008 CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
7009 CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
7010 """
7011 return _pcbnew.SHAPE_POLY_SET_CIterateWithHoles(self, *args)
7012
7013 def IterateFromVertexWithHoles(self, aGlobalIdx):
7014 r"""IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR"""
7015 return _pcbnew.SHAPE_POLY_SET_IterateFromVertexWithHoles(self, aGlobalIdx)
7016
7017 def IterateSegments(self, *args):
7018 r"""
7019 IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7020 IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7021 IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7022 """
7023 return _pcbnew.SHAPE_POLY_SET_IterateSegments(self, *args)
7024
7025 def CIterateSegments(self, *args):
7026 r"""
7027 CIterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7028 CIterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7029 CIterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7030 """
7031 return _pcbnew.SHAPE_POLY_SET_CIterateSegments(self, *args)
7032
7034 r"""
7035 IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7036 IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7037 """
7038 return _pcbnew.SHAPE_POLY_SET_IterateSegmentsWithHoles(self, *args)
7039
7041 r"""
7042 CIterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7043 CIterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7044 """
7045 return _pcbnew.SHAPE_POLY_SET_CIterateSegmentsWithHoles(self, *args)
7046 PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
7047
7048 PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
7049
7050
7051 def BooleanAdd(self, *args):
7052 r"""
7053 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7054 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7055 """
7056 return _pcbnew.SHAPE_POLY_SET_BooleanAdd(self, *args)
7057
7058 def BooleanSubtract(self, *args):
7059 r"""
7060 BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7061 BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7062 """
7063 return _pcbnew.SHAPE_POLY_SET_BooleanSubtract(self, *args)
7064
7065 def BooleanIntersection(self, *args):
7066 r"""
7067 BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7068 BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7069 """
7070 return _pcbnew.SHAPE_POLY_SET_BooleanIntersection(self, *args)
7071
7072 def BooleanXor(self, *args):
7073 r"""
7074 BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7075 BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7076 """
7077 return _pcbnew.SHAPE_POLY_SET_BooleanXor(self, *args)
7078
7080 r"""RebuildHolesFromContours(SHAPE_POLY_SET self)"""
7081 return _pcbnew.SHAPE_POLY_SET_RebuildHolesFromContours(self)
7082
7083 def Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify=False):
7084 r"""Inflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify=False)"""
7085 return _pcbnew.SHAPE_POLY_SET_Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify)
7086
7087 def Deflate(self, aAmount, aCornerStrategy, aMaxError):
7088 r"""Deflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError)"""
7089 return _pcbnew.SHAPE_POLY_SET_Deflate(self, aAmount, aCornerStrategy, aMaxError)
7090
7091 def OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify):
7092 r"""OffsetLineChain(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aLine, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify)"""
7093 return _pcbnew.SHAPE_POLY_SET_OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify)
7094
7095 def InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError, aFastMode):
7096 r"""InflateWithLinkedHoles(SHAPE_POLY_SET self, int aFactor, CORNER_STRATEGY aCornerStrategy, int aMaxError, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
7097 return _pcbnew.SHAPE_POLY_SET_InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError, aFastMode)
7098
7099 def Fracture(self, aFastMode):
7100 r"""Fracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
7101 return _pcbnew.SHAPE_POLY_SET_Fracture(self, aFastMode)
7102
7103 def Unfracture(self, aFastMode):
7104 r"""Unfracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
7105 return _pcbnew.SHAPE_POLY_SET_Unfracture(self, aFastMode)
7106
7107 def HasHoles(self):
7108 r"""HasHoles(SHAPE_POLY_SET self) -> bool"""
7109 return _pcbnew.SHAPE_POLY_SET_HasHoles(self)
7110
7112 r"""HasTouchingHoles(SHAPE_POLY_SET self) -> bool"""
7113 return _pcbnew.SHAPE_POLY_SET_HasTouchingHoles(self)
7114
7115 def Simplify(self, aFastMode):
7116 r"""Simplify(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
7117 return _pcbnew.SHAPE_POLY_SET_Simplify(self, aFastMode)
7118
7119 def SimplifyOutlines(self, aMaxError=0):
7120 r"""SimplifyOutlines(SHAPE_POLY_SET self, int aMaxError=0)"""
7121 return _pcbnew.SHAPE_POLY_SET_SimplifyOutlines(self, aMaxError)
7122
7124 r"""NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int"""
7125 return _pcbnew.SHAPE_POLY_SET_NormalizeAreaOutlines(self)
7126
7127 def Format(self, aCplusPlus=True):
7128 r"""Format(SHAPE_POLY_SET self, bool aCplusPlus=True) -> string"""
7129 return _pcbnew.SHAPE_POLY_SET_Format(self, aCplusPlus)
7130
7131 def Mirror(self, *args):
7132 r"""Mirror(SHAPE_POLY_SET self, bool aX=True, bool aY=False, VECTOR2I aRef={ 0, 0 })"""
7133 return _pcbnew.SHAPE_POLY_SET_Mirror(self, *args)
7134
7135 def Rotate(self, *args):
7136 r"""Rotate(SHAPE_POLY_SET self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7137 return _pcbnew.SHAPE_POLY_SET_Rotate(self, *args)
7138
7139 def BBox(self, aClearance=0):
7140 r"""BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I"""
7141 return _pcbnew.SHAPE_POLY_SET_BBox(self, aClearance)
7142
7143 def PointOnEdge(self, aP, aAccuracy=0):
7144 r"""PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP, int aAccuracy=0) -> bool"""
7145 return _pcbnew.SHAPE_POLY_SET_PointOnEdge(self, aP, aAccuracy)
7146
7147 def Collide(self, *args):
7148 r"""
7149 Collide(SHAPE_POLY_SET self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7150 Collide(SHAPE_POLY_SET self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7151 Collide(SHAPE_POLY_SET self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7152 """
7153 return _pcbnew.SHAPE_POLY_SET_Collide(self, *args)
7154
7155 def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0):
7156 r"""CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
7157 return _pcbnew.SHAPE_POLY_SET_CollideVertex(self, aPoint, aClosestVertex, aClearance)
7158
7159 def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0):
7160 r"""CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
7161 return _pcbnew.SHAPE_POLY_SET_CollideEdge(self, aPoint, aClosestVertex, aClearance)
7162
7163 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
7164 r"""PointInside(SHAPE_POLY_SET self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
7165 return _pcbnew.SHAPE_POLY_SET_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
7166
7168 r"""BuildBBoxCaches(SHAPE_POLY_SET self)"""
7169 return _pcbnew.SHAPE_POLY_SET_BuildBBoxCaches(self)
7170
7172 r"""BBoxFromCaches(SHAPE_POLY_SET self) -> BOX2I"""
7173 return _pcbnew.SHAPE_POLY_SET_BBoxFromCaches(self)
7174
7175 def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False):
7176 r"""Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1, int aAccuracy=0, bool aUseBBoxCaches=False) -> bool"""
7177 return _pcbnew.SHAPE_POLY_SET_Contains(self, aP, aSubpolyIndex, aAccuracy, aUseBBoxCaches)
7178
7179 def IsEmpty(self):
7180 r"""IsEmpty(SHAPE_POLY_SET self) -> bool"""
7181 return _pcbnew.SHAPE_POLY_SET_IsEmpty(self)
7182
7183 def RemoveVertex(self, *args):
7184 r"""
7185 RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
7186 RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)
7187 """
7188 return _pcbnew.SHAPE_POLY_SET_RemoveVertex(self, *args)
7189
7191 r"""RemoveAllContours(SHAPE_POLY_SET self)"""
7192 return _pcbnew.SHAPE_POLY_SET_RemoveAllContours(self)
7193
7194 def RemoveContour(self, aContourIdx, aPolygonIdx=-1):
7195 r"""RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)"""
7196 return _pcbnew.SHAPE_POLY_SET_RemoveContour(self, aContourIdx, aPolygonIdx)
7197
7199 r"""RemoveNullSegments(SHAPE_POLY_SET self) -> int"""
7200 return _pcbnew.SHAPE_POLY_SET_RemoveNullSegments(self)
7201
7202 def SetVertex(self, *args):
7203 r"""
7204 SetVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX const & aIndex, VECTOR2I aPos)
7205 SetVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aPos)
7206 """
7207 return _pcbnew.SHAPE_POLY_SET_SetVertex(self, *args)
7208
7209 def TotalVertices(self):
7210 r"""TotalVertices(SHAPE_POLY_SET self) -> int"""
7211 return _pcbnew.SHAPE_POLY_SET_TotalVertices(self)
7212
7213 def DeletePolygon(self, aIdx):
7214 r"""DeletePolygon(SHAPE_POLY_SET self, int aIdx)"""
7215 return _pcbnew.SHAPE_POLY_SET_DeletePolygon(self, aIdx)
7216
7217 def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True):
7218 r"""DeletePolygonAndTriangulationData(SHAPE_POLY_SET self, int aIdx, bool aUpdateHash=True)"""
7219 return _pcbnew.SHAPE_POLY_SET_DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash)
7220
7222 r"""UpdateTriangulationDataHash(SHAPE_POLY_SET self)"""
7223 return _pcbnew.SHAPE_POLY_SET_UpdateTriangulationDataHash(self)
7224
7225 def ChamferPolygon(self, aDistance, aIndex):
7226 r"""ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
7227 return _pcbnew.SHAPE_POLY_SET_ChamferPolygon(self, aDistance, aIndex)
7228
7229 def FilletPolygon(self, aRadius, aErrorMax, aIndex):
7230 r"""FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
7231 return _pcbnew.SHAPE_POLY_SET_FilletPolygon(self, aRadius, aErrorMax, aIndex)
7232
7233 def Chamfer(self, aDistance):
7234 r"""Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET"""
7235 return _pcbnew.SHAPE_POLY_SET_Chamfer(self, aDistance)
7236
7237 def Fillet(self, aRadius, aErrorMax):
7238 r"""Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET"""
7239 return _pcbnew.SHAPE_POLY_SET_Fillet(self, aRadius, aErrorMax)
7240
7242 r"""
7243 SquaredDistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
7244 SquaredDistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
7245 """
7246 return _pcbnew.SHAPE_POLY_SET_SquaredDistanceToPolygon(self, *args)
7247
7248 def SquaredDistance(self, *args):
7249 r"""
7250 SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly, VECTOR2I aNearest) -> SEG::ecoord
7251 SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly=False) -> SEG::ecoord
7252 """
7253 return _pcbnew.SHAPE_POLY_SET_SquaredDistance(self, *args)
7254
7255 def SquaredDistanceToSeg(self, aSegment, aNearest=None):
7256 r"""SquaredDistanceToSeg(SHAPE_POLY_SET self, SEG aSegment, VECTOR2I aNearest=None) -> SEG::ecoord"""
7257 return _pcbnew.SHAPE_POLY_SET_SquaredDistanceToSeg(self, aSegment, aNearest)
7258
7259 def IsVertexInHole(self, aGlobalIdx):
7260 r"""IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool"""
7261 return _pcbnew.SHAPE_POLY_SET_IsVertexInHole(self, aGlobalIdx)
7262
7263 @staticmethod
7264 def BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False):
7265 r"""BuildPolysetFromOrientedPaths(std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const & aPaths, bool aReverseOrientation=False, bool aEvenOdd=False) -> SHAPE_POLY_SET"""
7266 return _pcbnew.SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation, aEvenOdd)
7267
7268# Register SHAPE_POLY_SET in _pcbnew:
7269_pcbnew.SHAPE_POLY_SET_swigregister(SHAPE_POLY_SET)
7270
7271def SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False):
7272 r"""SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const & aPaths, bool aReverseOrientation=False, bool aEvenOdd=False) -> SHAPE_POLY_SET"""
7273 return _pcbnew.SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation, aEvenOdd)
7274
7276 r"""Proxy of C++ SHAPE_RECT class."""
7277
7278 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7279 __repr__ = _swig_repr
7280
7281 def __init__(self, *args):
7282 r"""
7283 __init__(SHAPE_RECT self) -> SHAPE_RECT
7284 __init__(SHAPE_RECT self, BOX2I aBox) -> SHAPE_RECT
7285 __init__(SHAPE_RECT self, int aX0, int aY0, int aW, int aH) -> SHAPE_RECT
7286 __init__(SHAPE_RECT self, VECTOR2I aP0, int aW, int aH) -> SHAPE_RECT
7287 __init__(SHAPE_RECT self, SHAPE_RECT aOther) -> SHAPE_RECT
7288 """
7289 _pcbnew.SHAPE_RECT_swiginit(self, _pcbnew.new_SHAPE_RECT(*args))
7290
7291 def BBox(self, aClearance=0):
7292 r"""BBox(SHAPE_RECT self, int aClearance=0) -> BOX2I"""
7293 return _pcbnew.SHAPE_RECT_BBox(self, aClearance)
7294
7295 def Diagonal(self):
7296 r"""Diagonal(SHAPE_RECT self) -> int"""
7297 return _pcbnew.SHAPE_RECT_Diagonal(self)
7298
7299 def Collide(self, *args):
7300 r"""
7301 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
7302 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7303 Collide(SHAPE_RECT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7304 """
7305 return _pcbnew.SHAPE_RECT_Collide(self, *args)
7306
7307 def GetPosition(self):
7308 r"""GetPosition(SHAPE_RECT self) -> VECTOR2I"""
7309 return _pcbnew.SHAPE_RECT_GetPosition(self)
7310
7311 def GetSize(self):
7312 r"""GetSize(SHAPE_RECT self) -> VECTOR2I"""
7313 return _pcbnew.SHAPE_RECT_GetSize(self)
7314
7315 def GetWidth(self):
7316 r"""GetWidth(SHAPE_RECT self) -> int"""
7317 return _pcbnew.SHAPE_RECT_GetWidth(self)
7318
7319 def GetHeight(self):
7320 r"""GetHeight(SHAPE_RECT self) -> int"""
7321 return _pcbnew.SHAPE_RECT_GetHeight(self)
7322
7323 def Rotate(self, *args):
7324 r"""Rotate(SHAPE_RECT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7325 return _pcbnew.SHAPE_RECT_Rotate(self, *args)
7326
7327 def Outline(self):
7328 r"""Outline(SHAPE_RECT self) -> SHAPE_LINE_CHAIN"""
7329 return _pcbnew.SHAPE_RECT_Outline(self)
7330
7331 def Format(self, aCplusPlus=True):
7332 r"""Format(SHAPE_RECT self, bool aCplusPlus=True) -> string"""
7333 return _pcbnew.SHAPE_RECT_Format(self, aCplusPlus)
7334 __swig_destroy__ = _pcbnew.delete_SHAPE_RECT
7335
7336# Register SHAPE_RECT in _pcbnew:
7337_pcbnew.SHAPE_RECT_swigregister(SHAPE_RECT)
7338
7340 r"""Proxy of C++ SHAPE_SEGMENT class."""
7341
7342 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7343 __repr__ = _swig_repr
7344
7345 def __init__(self, *args):
7346 r"""
7347 __init__(SHAPE_SEGMENT self) -> SHAPE_SEGMENT
7348 __init__(SHAPE_SEGMENT self, VECTOR2I aA, VECTOR2I aB, int aWidth=0) -> SHAPE_SEGMENT
7349 __init__(SHAPE_SEGMENT self, SEG aSeg, int aWidth=0) -> SHAPE_SEGMENT
7350 """
7351 _pcbnew.SHAPE_SEGMENT_swiginit(self, _pcbnew.new_SHAPE_SEGMENT(*args))
7352 __swig_destroy__ = _pcbnew.delete_SHAPE_SEGMENT
7353
7354 def BBox(self, aClearance=0):
7355 r"""BBox(SHAPE_SEGMENT self, int aClearance=0) -> BOX2I"""
7356 return _pcbnew.SHAPE_SEGMENT_BBox(self, aClearance)
7357
7358 def Collide(self, *args):
7359 r"""
7360 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
7361 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7362 Collide(SHAPE_SEGMENT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7363 Collide(SHAPE_SEGMENT self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7364 """
7365 return _pcbnew.SHAPE_SEGMENT_Collide(self, *args)
7366
7367 def SetSeg(self, aSeg):
7368 r"""SetSeg(SHAPE_SEGMENT self, SEG aSeg)"""
7369 return _pcbnew.SHAPE_SEGMENT_SetSeg(self, aSeg)
7370
7371 def GetSeg(self):
7372 r"""GetSeg(SHAPE_SEGMENT self) -> SEG"""
7373 return _pcbnew.SHAPE_SEGMENT_GetSeg(self)
7374
7375 def SetWidth(self, aWidth):
7376 r"""SetWidth(SHAPE_SEGMENT self, int aWidth)"""
7377 return _pcbnew.SHAPE_SEGMENT_SetWidth(self, aWidth)
7378
7379 def GetWidth(self):
7380 r"""GetWidth(SHAPE_SEGMENT self) -> int"""
7381 return _pcbnew.SHAPE_SEGMENT_GetWidth(self)
7382
7383 def Rotate(self, *args):
7384 r"""Rotate(SHAPE_SEGMENT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7385 return _pcbnew.SHAPE_SEGMENT_Rotate(self, *args)
7386
7387 def Is45Degree(self, *args):
7388 r"""Is45Degree(SHAPE_SEGMENT self, EDA_ANGLE aTollerance=EDA_ANGLE( 1.0, DEGREES_T )) -> bool"""
7389 return _pcbnew.SHAPE_SEGMENT_Is45Degree(self, *args)
7390
7391 def Format(self, aCplusPlus=True):
7392 r"""Format(SHAPE_SEGMENT self, bool aCplusPlus=True) -> string"""
7393 return _pcbnew.SHAPE_SEGMENT_Format(self, aCplusPlus)
7394
7395# Register SHAPE_SEGMENT in _pcbnew:
7396_pcbnew.SHAPE_SEGMENT_swigregister(SHAPE_SEGMENT)
7397
7399 r"""Proxy of C++ SHAPE_SIMPLE class."""
7400
7401 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7402 __repr__ = _swig_repr
7403
7404 def __init__(self, *args):
7405 r"""
7406 __init__(SHAPE_SIMPLE self) -> SHAPE_SIMPLE
7407 __init__(SHAPE_SIMPLE self, SHAPE_LINE_CHAIN aPoly) -> SHAPE_SIMPLE
7408 __init__(SHAPE_SIMPLE self, SHAPE_SIMPLE aOther) -> SHAPE_SIMPLE
7409 """
7410 _pcbnew.SHAPE_SIMPLE_swiginit(self, _pcbnew.new_SHAPE_SIMPLE(*args))
7411
7412 def Clear(self):
7413 r"""Clear(SHAPE_SIMPLE self)"""
7414 return _pcbnew.SHAPE_SIMPLE_Clear(self)
7415
7416 def BBox(self, aClearance=0):
7417 r"""BBox(SHAPE_SIMPLE self, int aClearance=0) -> BOX2I"""
7418 return _pcbnew.SHAPE_SIMPLE_BBox(self, aClearance)
7419
7420 def PointCount(self):
7421 r"""PointCount(SHAPE_SIMPLE self) -> int"""
7422 return _pcbnew.SHAPE_SIMPLE_PointCount(self)
7423
7424 def CPoint(self, aIndex):
7425 r"""CPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2I"""
7426 return _pcbnew.SHAPE_SIMPLE_CPoint(self, aIndex)
7427
7428 def CDPoint(self, aIndex):
7429 r"""CDPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2D const"""
7430 return _pcbnew.SHAPE_SIMPLE_CDPoint(self, aIndex)
7431
7432 def Vertices(self):
7433 r"""Vertices(SHAPE_SIMPLE self) -> SHAPE_LINE_CHAIN"""
7434 return _pcbnew.SHAPE_SIMPLE_Vertices(self)
7435
7436 def Append(self, *args):
7437 r"""
7438 Append(SHAPE_SIMPLE self, int aX, int aY)
7439 Append(SHAPE_SIMPLE self, VECTOR2I aP)
7440 """
7441 return _pcbnew.SHAPE_SIMPLE_Append(self, *args)
7442
7443 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
7444 r"""Collide(SHAPE_SIMPLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
7445 return _pcbnew.SHAPE_SIMPLE_Collide(self, aSeg, aClearance, aActual, aLocation)
7446
7447 def Rotate(self, *args):
7448 r"""Rotate(SHAPE_SIMPLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7449 return _pcbnew.SHAPE_SIMPLE_Rotate(self, *args)
7450 __swig_destroy__ = _pcbnew.delete_SHAPE_SIMPLE
7451
7452# Register SHAPE_SIMPLE in _pcbnew:
7453_pcbnew.SHAPE_SIMPLE_swigregister(SHAPE_SIMPLE)
7454
7456 r"""Proxy of C++ std::vector< std::shared_ptr< SHAPE > > class."""
7457
7458 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7459 __repr__ = _swig_repr
7460
7461 def iterator(self):
7462 r"""iterator(VECTOR_SHAPEPTR self) -> SwigPyIterator"""
7463 return _pcbnew.VECTOR_SHAPEPTR_iterator(self)
7464 def __iter__(self):
7465 return self.iterator()
7466
7467 def __nonzero__(self):
7468 r"""__nonzero__(VECTOR_SHAPEPTR self) -> bool"""
7469 return _pcbnew.VECTOR_SHAPEPTR___nonzero__(self)
7470
7471 def __bool__(self):
7472 r"""__bool__(VECTOR_SHAPEPTR self) -> bool"""
7473 return _pcbnew.VECTOR_SHAPEPTR___bool__(self)
7474
7475 def __len__(self):
7476 r"""__len__(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7477 return _pcbnew.VECTOR_SHAPEPTR___len__(self)
7478
7479 def __getslice__(self, i, j):
7480 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"""
7481 return _pcbnew.VECTOR_SHAPEPTR___getslice__(self, i, j)
7482
7483 def __setslice__(self, *args):
7484 r"""
7485 __setslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)
7486 __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)
7487 """
7488 return _pcbnew.VECTOR_SHAPEPTR___setslice__(self, *args)
7489
7490 def __delslice__(self, i, j):
7491 r"""__delslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)"""
7492 return _pcbnew.VECTOR_SHAPEPTR___delslice__(self, i, j)
7493
7494 def __delitem__(self, *args):
7495 r"""
7496 __delitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i)
7497 __delitem__(VECTOR_SHAPEPTR self, PySliceObject * slice)
7498 """
7499 return _pcbnew.VECTOR_SHAPEPTR___delitem__(self, *args)
7500
7501 def __getitem__(self, *args):
7502 r"""
7503 __getitem__(VECTOR_SHAPEPTR self, PySliceObject * slice) -> VECTOR_SHAPEPTR
7504 __getitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &
7505 """
7506 return _pcbnew.VECTOR_SHAPEPTR___getitem__(self, *args)
7507
7508 def __setitem__(self, *args):
7509 r"""
7510 __setitem__(VECTOR_SHAPEPTR self, PySliceObject * slice, VECTOR_SHAPEPTR v)
7511 __setitem__(VECTOR_SHAPEPTR self, PySliceObject * slice)
7512 __setitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7513 """
7514 return _pcbnew.VECTOR_SHAPEPTR___setitem__(self, *args)
7515
7516 def pop(self):
7517 r"""pop(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type"""
7518 return _pcbnew.VECTOR_SHAPEPTR_pop(self)
7519
7520 def append(self, x):
7521 r"""append(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7522 return _pcbnew.VECTOR_SHAPEPTR_append(self, x)
7523
7524 def empty(self):
7525 r"""empty(VECTOR_SHAPEPTR self) -> bool"""
7526 return _pcbnew.VECTOR_SHAPEPTR_empty(self)
7527
7528 def size(self):
7529 r"""size(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7530 return _pcbnew.VECTOR_SHAPEPTR_size(self)
7531
7532 def swap(self, v):
7533 r"""swap(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR v)"""
7534 return _pcbnew.VECTOR_SHAPEPTR_swap(self, v)
7535
7536 def begin(self):
7537 r"""begin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7538 return _pcbnew.VECTOR_SHAPEPTR_begin(self)
7539
7540 def end(self):
7541 r"""end(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7542 return _pcbnew.VECTOR_SHAPEPTR_end(self)
7543
7544 def rbegin(self):
7545 r"""rbegin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7546 return _pcbnew.VECTOR_SHAPEPTR_rbegin(self)
7547
7548 def rend(self):
7549 r"""rend(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7550 return _pcbnew.VECTOR_SHAPEPTR_rend(self)
7551
7552 def clear(self):
7553 r"""clear(VECTOR_SHAPEPTR self)"""
7554 return _pcbnew.VECTOR_SHAPEPTR_clear(self)
7555
7556 def get_allocator(self):
7557 r"""get_allocator(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::allocator_type"""
7558 return _pcbnew.VECTOR_SHAPEPTR_get_allocator(self)
7559
7560 def pop_back(self):
7561 r"""pop_back(VECTOR_SHAPEPTR self)"""
7562 return _pcbnew.VECTOR_SHAPEPTR_pop_back(self)
7563
7564 def erase(self, *args):
7565 r"""
7566 erase(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::iterator pos) -> std::vector< std::shared_ptr< SHAPE > >::iterator
7567 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
7568 """
7569 return _pcbnew.VECTOR_SHAPEPTR_erase(self, *args)
7570
7571 def __init__(self, *args):
7572 r"""
7573 __init__(VECTOR_SHAPEPTR self) -> VECTOR_SHAPEPTR
7574 __init__(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR other) -> VECTOR_SHAPEPTR
7575 __init__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type size) -> VECTOR_SHAPEPTR
7576 __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
7577 """
7578 _pcbnew.VECTOR_SHAPEPTR_swiginit(self, _pcbnew.new_VECTOR_SHAPEPTR(*args))
7579
7580 def push_back(self, x):
7581 r"""push_back(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7582 return _pcbnew.VECTOR_SHAPEPTR_push_back(self, x)
7583
7584 def front(self):
7585 r"""front(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7586 return _pcbnew.VECTOR_SHAPEPTR_front(self)
7587
7588 def back(self):
7589 r"""back(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7590 return _pcbnew.VECTOR_SHAPEPTR_back(self)
7591
7592 def assign(self, n, x):
7593 r"""assign(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7594 return _pcbnew.VECTOR_SHAPEPTR_assign(self, n, x)
7595
7596 def resize(self, *args):
7597 r"""
7598 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size)
7599 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7600 """
7601 return _pcbnew.VECTOR_SHAPEPTR_resize(self, *args)
7602
7603 def insert(self, *args):
7604 r"""
7605 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
7606 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)
7607 """
7608 return _pcbnew.VECTOR_SHAPEPTR_insert(self, *args)
7609
7610 def reserve(self, n):
7611 r"""reserve(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n)"""
7612 return _pcbnew.VECTOR_SHAPEPTR_reserve(self, n)
7613
7614 def capacity(self):
7615 r"""capacity(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7616 return _pcbnew.VECTOR_SHAPEPTR_capacity(self)
7617
7618 def __iter__(self):
7619 it = self.iterator()
7620 try:
7621 while True:
7622 item = it.next() # throws StopIteration when iterator reached the end.
7623 yield item.Cast()
7624 except StopIteration:
7625 return
7626
7627 __swig_destroy__ = _pcbnew.delete_VECTOR_SHAPEPTR
7628
7629# Register VECTOR_SHAPEPTR in _pcbnew:
7630_pcbnew.VECTOR_SHAPEPTR_swigregister(VECTOR_SHAPEPTR)
7631
7632
7634 r"""Cast_to_SHAPE_ARC(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_ARC >"""
7635 return _pcbnew.Cast_to_SHAPE_ARC(_self)
7636
7638 r"""Cast_to_SHAPE_CIRCLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_CIRCLE >"""
7639 return _pcbnew.Cast_to_SHAPE_CIRCLE(_self)
7640
7642 r"""Cast_to_SHAPE_COMPOUND(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_COMPOUND >"""
7643 return _pcbnew.Cast_to_SHAPE_COMPOUND(_self)
7644
7646 r"""Cast_to_SHAPE_LINE_CHAIN(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_LINE_CHAIN >"""
7647 return _pcbnew.Cast_to_SHAPE_LINE_CHAIN(_self)
7648
7650 r"""Cast_to_SHAPE_POLY_SET(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_POLY_SET >"""
7651 return _pcbnew.Cast_to_SHAPE_POLY_SET(_self)
7652
7654 r"""Cast_to_SHAPE_RECT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_RECT >"""
7655 return _pcbnew.Cast_to_SHAPE_RECT(_self)
7656
7658 r"""Cast_to_SHAPE_SEGMENT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SEGMENT >"""
7659 return _pcbnew.Cast_to_SHAPE_SEGMENT(_self)
7660
7662 r"""Cast_to_SHAPE_SIMPLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SIMPLE >"""
7663 return _pcbnew.Cast_to_SHAPE_SIMPLE(_self)
7664
7665def IsUTF8(aString):
7666 r"""IsUTF8(char const * aString) -> bool"""
7667 return _pcbnew.IsUTF8(aString)
7669 r"""Proxy of C++ UTF8 class."""
7670
7671 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7672 __repr__ = _swig_repr
7673
7674 def __init__(self, *args):
7675 r"""
7676 __init__(UTF8 self, wxString o) -> UTF8
7677 __init__(UTF8 self, char const * txt) -> UTF8
7678 __init__(UTF8 self, wchar_t const * txt) -> UTF8
7679 __init__(UTF8 self, string o) -> UTF8
7680 __init__(UTF8 self) -> UTF8
7681 """
7682 _pcbnew.UTF8_swiginit(self, _pcbnew.new_UTF8(*args))
7683 __swig_destroy__ = _pcbnew.delete_UTF8
7684
7685 def c_str(self):
7686 r"""c_str(UTF8 self) -> char const *"""
7687 return _pcbnew.UTF8_c_str(self)
7688
7689 def empty(self):
7690 r"""empty(UTF8 self) -> bool"""
7691 return _pcbnew.UTF8_empty(self)
7692
7693 def find(self, *args):
7694 r"""
7695 find(UTF8 self, char c) -> std::string::size_type
7696 find(UTF8 self, char c, size_t s) -> std::string::size_type
7697 """
7698 return _pcbnew.UTF8_find(self, *args)
7699
7700 def clear(self):
7701 r"""clear(UTF8 self)"""
7702 return _pcbnew.UTF8_clear(self)
7703
7704 def length(self):
7705 r"""length(UTF8 self) -> std::string::size_type"""
7706 return _pcbnew.UTF8_length(self)
7707
7708 def size(self):
7709 r"""size(UTF8 self) -> std::string::size_type"""
7710 return _pcbnew.UTF8_size(self)
7711
7712 def compare(self, s):
7713 r"""compare(UTF8 self, string s) -> int"""
7714 return _pcbnew.UTF8_compare(self, s)
7715
7716 def __eq__(self, *args):
7717 r"""
7718 __eq__(UTF8 self, UTF8 rhs) -> bool
7719 __eq__(UTF8 self, string rhs) -> bool
7720 __eq__(UTF8 self, char const * s) -> bool
7721 """
7722 return _pcbnew.UTF8___eq__(self, *args)
7723
7724 def find_first_of(self, str, pos=0):
7725 r"""find_first_of(UTF8 self, string str, std::string::size_type pos=0) -> std::string::size_type"""
7726 return _pcbnew.UTF8_find_first_of(self, str, pos)
7727
7728 def __iadd__(self, *args):
7729 r"""
7730 __iadd__(UTF8 self, UTF8 str) -> UTF8
7731 __iadd__(UTF8 self, char ch) -> UTF8
7732 __iadd__(UTF8 self, char const * s) -> UTF8
7733 __iadd__(UTF8 self, unsigned int w_ch) -> UTF8
7734 """
7735 return _pcbnew.UTF8___iadd__(self, *args)
7736 npos = _pcbnew.UTF8_npos
7737
7738
7739 def substr(self, *args):
7740 r"""substr(UTF8 self, size_t pos=0, size_t len=npos) -> string"""
7741 return _pcbnew.UTF8_substr(self, *args)
7742
7744 r"""utf8_to_string(UTF8 self) -> string"""
7745 return _pcbnew.UTF8_utf8_to_string(self)
7746
7747 def wx_str(self):
7748 r"""wx_str(UTF8 self) -> wxString"""
7749 return _pcbnew.UTF8_wx_str(self)
7750
7752 r"""utf8_to_wxstring(UTF8 self) -> wxString"""
7753 return _pcbnew.UTF8_utf8_to_wxstring(self)
7754
7755 def begin(self):
7756 r"""begin(UTF8 self) -> std::string::const_iterator"""
7757 return _pcbnew.UTF8_begin(self)
7758
7759 def end(self):
7760 r"""end(UTF8 self) -> std::string::const_iterator"""
7761 return _pcbnew.UTF8_end(self)
7762
7763 def Cast_to_CChar(self):
7764 r"""Cast_to_CChar(UTF8 self) -> char const *"""
7765 return _pcbnew.UTF8_Cast_to_CChar(self)
7766
7767
7768 # Get the char buffer of the UTF8 string
7769 def GetChars(self):
7770 return self.Cast_to_CChar()
7771
7772 # Convert the UTF8 string to a python string
7773 # Same as GetChars(), but more easy to use in print command
7774 def __str__(self):
7775 return self.GetChars()
7776
7777
7778
7779# Register UTF8 in _pcbnew:
7780_pcbnew.UTF8_swigregister(UTF8)
7781
7783 r"""Proxy of C++ LIB_ID class."""
7784
7785 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7786 __repr__ = _swig_repr
7787
7788 def __init__(self, *args):
7789 r"""
7790 __init__(LIB_ID self) -> LIB_ID
7791 __init__(LIB_ID self, wxString aLibraryName, wxString aItemName) -> LIB_ID
7792 """
7793 _pcbnew.LIB_ID_swiginit(self, _pcbnew.new_LIB_ID(*args))
7794
7795 def Parse(self, aId, aFix=False):
7796 r"""Parse(LIB_ID self, UTF8 aId, bool aFix=False) -> int"""
7797 return _pcbnew.LIB_ID_Parse(self, aId, aFix)
7798
7800 r"""GetLibNickname(LIB_ID self) -> UTF8"""
7801 return _pcbnew.LIB_ID_GetLibNickname(self)
7802
7804 r"""GetUniStringLibNickname(LIB_ID self) -> wxString"""
7805 return _pcbnew.LIB_ID_GetUniStringLibNickname(self)
7806
7807 def SetLibNickname(self, aLibNickname):
7808 r"""SetLibNickname(LIB_ID self, UTF8 aLibNickname) -> int"""
7809 return _pcbnew.LIB_ID_SetLibNickname(self, aLibNickname)
7810
7812 r"""GetLibItemName(LIB_ID self) -> UTF8"""
7813 return _pcbnew.LIB_ID_GetLibItemName(self)
7814
7816 r"""GetUniStringLibItemName(LIB_ID self) -> wxString"""
7817 return _pcbnew.LIB_ID_GetUniStringLibItemName(self)
7818
7819 def SetLibItemName(self, aLibItemName):
7820 r"""SetLibItemName(LIB_ID self, UTF8 aLibItemName) -> int"""
7821 return _pcbnew.LIB_ID_SetLibItemName(self, aLibItemName)
7822
7824 r"""GetSubLibraryName(LIB_ID self) -> UTF8"""
7825 return _pcbnew.LIB_ID_GetSubLibraryName(self)
7826
7827 def SetSubLibraryName(self, aName):
7828 r"""SetSubLibraryName(LIB_ID self, UTF8 aName)"""
7829 return _pcbnew.LIB_ID_SetSubLibraryName(self, aName)
7830
7832 r"""GetUniStringSubLibraryName(LIB_ID self) -> wxString"""
7833 return _pcbnew.LIB_ID_GetUniStringSubLibraryName(self)
7834
7836 r"""GetFullLibraryName(LIB_ID self) -> wxString"""
7837 return _pcbnew.LIB_ID_GetFullLibraryName(self)
7838
7840 r"""GetUniStringLibId(LIB_ID self) -> wxString"""
7841 return _pcbnew.LIB_ID_GetUniStringLibId(self)
7842
7843 @staticmethod
7844 def Format(*args):
7845 r"""
7846 Format() -> UTF8
7847 Format(UTF8 aLibraryName, UTF8 aLibItemName) -> UTF8
7848 """
7849 return _pcbnew.LIB_ID_Format(*args)
7850
7851 def IsValid(self):
7852 r"""IsValid(LIB_ID self) -> bool"""
7853 return _pcbnew.LIB_ID_IsValid(self)
7854
7855 def IsLegacy(self):
7856 r"""IsLegacy(LIB_ID self) -> bool"""
7857 return _pcbnew.LIB_ID_IsLegacy(self)
7858
7859 def clear(self):
7860 r"""clear(LIB_ID self)"""
7861 return _pcbnew.LIB_ID_clear(self)
7862
7863 def empty(self):
7864 r"""empty(LIB_ID self) -> bool"""
7865 return _pcbnew.LIB_ID_empty(self)
7866
7867 def compare(self, aLibId):
7868 r"""compare(LIB_ID self, LIB_ID aLibId) -> int"""
7869 return _pcbnew.LIB_ID_compare(self, aLibId)
7870
7871 def __lt__(self, aLibId):
7872 r"""__lt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7873 return _pcbnew.LIB_ID___lt__(self, aLibId)
7874
7875 def __gt__(self, aLibId):
7876 r"""__gt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7877 return _pcbnew.LIB_ID___gt__(self, aLibId)
7878
7879 def __eq__(self, aLibId):
7880 r"""__eq__(LIB_ID self, LIB_ID aLibId) -> bool"""
7881 return _pcbnew.LIB_ID___eq__(self, aLibId)
7882
7883 def __ne__(self, aLibId):
7884 r"""__ne__(LIB_ID self, LIB_ID aLibId) -> bool"""
7885 return _pcbnew.LIB_ID___ne__(self, aLibId)
7886
7887 @staticmethod
7888 def HasIllegalChars(aLibItemName):
7889 r"""HasIllegalChars(UTF8 aLibItemName) -> int"""
7890 return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName)
7891
7892 @staticmethod
7893 def FixIllegalChars(aLibItemName, aLib):
7894 r"""FixIllegalChars(UTF8 aLibItemName, bool aLib) -> UTF8"""
7895 return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aLib)
7896
7897 @staticmethod
7899 r"""FindIllegalLibraryNameChar(UTF8 aLibraryName) -> unsigned int"""
7900 return _pcbnew.LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
7901 __swig_destroy__ = _pcbnew.delete_LIB_ID
7902
7903# Register LIB_ID in _pcbnew:
7904_pcbnew.LIB_ID_swigregister(LIB_ID)
7905
7906def LIB_ID_Format(*args):
7907 r"""
7908 LIB_ID_Format() -> UTF8
7909 LIB_ID_Format(UTF8 aLibraryName, UTF8 aLibItemName) -> UTF8
7910 """
7911 return _pcbnew.LIB_ID_Format(*args)
7912
7913def LIB_ID_HasIllegalChars(aLibItemName):
7914 r"""LIB_ID_HasIllegalChars(UTF8 aLibItemName) -> int"""
7915 return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName)
7916
7917def LIB_ID_FixIllegalChars(aLibItemName, aLib):
7918 r"""LIB_ID_FixIllegalChars(UTF8 aLibItemName, bool aLib) -> UTF8"""
7919 return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aLib)
7920
7922 r"""LIB_ID_FindIllegalLibraryNameChar(UTF8 aLibraryName) -> unsigned int"""
7923 return _pcbnew.LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
7924
7926 r"""Proxy of C++ BASE_SET class."""
7927
7928 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7929
7930 def __init__(self, *args, **kwargs):
7931 raise AttributeError("No constructor defined")
7932 __repr__ = _swig_repr
7933 __swig_destroy__ = _pcbnew.delete_BASE_SET
7934
7935# Register BASE_SET in _pcbnew:
7936_pcbnew.BASE_SET_swigregister(BASE_SET)
7937
7939 r"""Proxy of C++ PCB_IO_MGR class."""
7940
7941 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7942 __repr__ = _swig_repr
7943 PCB_FILE_UNKNOWN = _pcbnew.PCB_IO_MGR_PCB_FILE_UNKNOWN
7944
7945 KICAD_SEXP = _pcbnew.PCB_IO_MGR_KICAD_SEXP
7946
7947 LEGACY = _pcbnew.PCB_IO_MGR_LEGACY
7948
7949 ALTIUM_CIRCUIT_MAKER = _pcbnew.PCB_IO_MGR_ALTIUM_CIRCUIT_MAKER
7950
7951 ALTIUM_CIRCUIT_STUDIO = _pcbnew.PCB_IO_MGR_ALTIUM_CIRCUIT_STUDIO
7952
7953 ALTIUM_DESIGNER = _pcbnew.PCB_IO_MGR_ALTIUM_DESIGNER
7954
7955 CADSTAR_PCB_ARCHIVE = _pcbnew.PCB_IO_MGR_CADSTAR_PCB_ARCHIVE
7956
7957 EAGLE = _pcbnew.PCB_IO_MGR_EAGLE
7958
7959 EASYEDA = _pcbnew.PCB_IO_MGR_EASYEDA
7960
7961 EASYEDAPRO = _pcbnew.PCB_IO_MGR_EASYEDAPRO
7962
7963 FABMASTER = _pcbnew.PCB_IO_MGR_FABMASTER
7964
7965 GEDA_PCB = _pcbnew.PCB_IO_MGR_GEDA_PCB
7966
7967 PCAD = _pcbnew.PCB_IO_MGR_PCAD
7968
7969 SOLIDWORKS_PCB = _pcbnew.PCB_IO_MGR_SOLIDWORKS_PCB
7970
7971 IPC2581 = _pcbnew.PCB_IO_MGR_IPC2581
7972
7973 FILE_TYPE_NONE = _pcbnew.PCB_IO_MGR_FILE_TYPE_NONE
7974
7975
7976 @staticmethod
7977 def PluginFind(aFileType):
7978 r"""PluginFind(PCB_IO_MGR::PCB_FILE_T aFileType) -> PCB_IO"""
7979 return _pcbnew.PCB_IO_MGR_PluginFind(aFileType)
7980
7981 @staticmethod
7982 def ShowType(aFileType):
7983 r"""ShowType(PCB_IO_MGR::PCB_FILE_T aFileType) -> wxString"""
7984 return _pcbnew.PCB_IO_MGR_ShowType(aFileType)
7985
7986 @staticmethod
7987 def EnumFromStr(aFileType):
7988 r"""EnumFromStr(wxString aFileType) -> PCB_IO_MGR::PCB_FILE_T"""
7989 return _pcbnew.PCB_IO_MGR_EnumFromStr(aFileType)
7990
7991 @staticmethod
7992 def FindPluginTypeFromBoardPath(aFileName, aCtl=0):
7993 r"""FindPluginTypeFromBoardPath(wxString aFileName, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
7994 return _pcbnew.PCB_IO_MGR_FindPluginTypeFromBoardPath(aFileName, aCtl)
7995
7996 @staticmethod
7997 def GuessPluginTypeFromLibPath(aLibPath, aCtl=0):
7998 r"""GuessPluginTypeFromLibPath(wxString aLibPath, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
7999 return _pcbnew.PCB_IO_MGR_GuessPluginTypeFromLibPath(aLibPath, aCtl)
8000
8001 @staticmethod
8002 def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None):
8003 r"""Load(PCB_IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aAppendToMe=None, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None, PROGRESS_REPORTER * aProgressReporter=None) -> BOARD"""
8004 return _pcbnew.PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
8005
8006 @staticmethod
8007 def Save(aFileType, aFileName, aBoard, aProperties=None):
8008 r"""Save(PCB_IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
8009 return _pcbnew.PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
8010
8011 @staticmethod
8012 def ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath):
8013 r"""ConvertLibrary(STRING_UTF8_MAP * aOldFileProps, wxString aOldFilePath, wxString aNewFilePath) -> bool"""
8014 return _pcbnew.PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath)
8015
8016 def __init__(self):
8017 r"""__init__(PCB_IO_MGR self) -> PCB_IO_MGR"""
8018 _pcbnew.PCB_IO_MGR_swiginit(self, _pcbnew.new_PCB_IO_MGR())
8019 __swig_destroy__ = _pcbnew.delete_PCB_IO_MGR
8020
8021# Register PCB_IO_MGR in _pcbnew:
8022_pcbnew.PCB_IO_MGR_swigregister(PCB_IO_MGR)
8023
8025 r"""PCB_IO_MGR_PluginFind(PCB_IO_MGR::PCB_FILE_T aFileType) -> PCB_IO"""
8026 return _pcbnew.PCB_IO_MGR_PluginFind(aFileType)
8027
8028def PCB_IO_MGR_ShowType(aFileType):
8029 r"""PCB_IO_MGR_ShowType(PCB_IO_MGR::PCB_FILE_T aFileType) -> wxString"""
8030 return _pcbnew.PCB_IO_MGR_ShowType(aFileType)
8031
8033 r"""PCB_IO_MGR_EnumFromStr(wxString aFileType) -> PCB_IO_MGR::PCB_FILE_T"""
8034 return _pcbnew.PCB_IO_MGR_EnumFromStr(aFileType)
8035
8037 r"""PCB_IO_MGR_FindPluginTypeFromBoardPath(wxString aFileName, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
8038 return _pcbnew.PCB_IO_MGR_FindPluginTypeFromBoardPath(aFileName, aCtl)
8039
8041 r"""PCB_IO_MGR_GuessPluginTypeFromLibPath(wxString aLibPath, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
8042 return _pcbnew.PCB_IO_MGR_GuessPluginTypeFromLibPath(aLibPath, aCtl)
8043
8044def PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None):
8045 r"""PCB_IO_MGR_Load(PCB_IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aAppendToMe=None, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None, PROGRESS_REPORTER * aProgressReporter=None) -> BOARD"""
8046 return _pcbnew.PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
8047
8048def PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties=None):
8049 r"""PCB_IO_MGR_Save(PCB_IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
8050 return _pcbnew.PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
8051
8052def PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath):
8053 r"""PCB_IO_MGR_ConvertLibrary(STRING_UTF8_MAP * aOldFileProps, wxString aOldFilePath, wxString aNewFilePath) -> bool"""
8054 return _pcbnew.PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath)
8055
8057 r"""Proxy of C++ PCB_IO class."""
8058
8059 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8060
8061 def __init__(self, *args, **kwargs):
8062 raise AttributeError("No constructor defined - class is abstract")
8063 __repr__ = _swig_repr
8064
8066 r"""GetBoardFileDesc(PCB_IO self) -> IO_BASE::IO_FILE_DESC const"""
8067 return _pcbnew.PCB_IO_GetBoardFileDesc(self)
8068
8069 def CanReadBoard(self, aFileName):
8070 r"""CanReadBoard(PCB_IO self, wxString aFileName) -> bool"""
8071 return _pcbnew.PCB_IO_CanReadBoard(self, aFileName)
8072
8073 def CanReadFootprint(self, aFileName):
8074 r"""CanReadFootprint(PCB_IO self, wxString aFileName) -> bool"""
8075 return _pcbnew.PCB_IO_CanReadFootprint(self, aFileName)
8076
8077 def SetQueryUserCallback(self, aCallback):
8078 r"""SetQueryUserCallback(PCB_IO self, std::function< bool (wxString,int,wxString,wxString) > aCallback)"""
8079 return _pcbnew.PCB_IO_SetQueryUserCallback(self, aCallback)
8080
8081 def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None):
8082 r"""LoadBoard(PCB_IO self, wxString aFileName, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None) -> BOARD"""
8083 return _pcbnew.PCB_IO_LoadBoard(self, aFileName, aAppendToMe, aProperties, aProject)
8084
8086 r"""GetImportedCachedLibraryFootprints(PCB_IO self) -> std::vector< FOOTPRINT *,std::allocator< FOOTPRINT * > >"""
8087 return _pcbnew.PCB_IO_GetImportedCachedLibraryFootprints(self)
8088
8089 def SaveBoard(self, aFileName, aBoard, aProperties=None):
8090 r"""SaveBoard(PCB_IO self, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
8091 return _pcbnew.PCB_IO_SaveBoard(self, aFileName, aBoard, aProperties)
8092
8093 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
8094 r"""FootprintEnumerate(PCB_IO self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, STRING_UTF8_MAP const * aProperties=None)"""
8095 return _pcbnew.PCB_IO_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
8096
8097 def GetLibraryTimestamp(self, aLibraryPath):
8098 r"""GetLibraryTimestamp(PCB_IO self, wxString aLibraryPath) -> long long"""
8099 return _pcbnew.PCB_IO_GetLibraryTimestamp(self, aLibraryPath)
8100
8101 def PrefetchLib(self, aLibraryPath, aProperties=None):
8102 r"""PrefetchLib(PCB_IO self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None)"""
8103 return _pcbnew.PCB_IO_PrefetchLib(self, aLibraryPath, aProperties)
8104
8105 def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None):
8106 r"""ImportFootprint(PCB_IO self, wxString aFootprintPath, wxString aFootprintNameOut, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8107 return _pcbnew.PCB_IO_ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties)
8108
8109 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
8110 r"""FootprintLoad(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8111 return _pcbnew.PCB_IO_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
8112
8113 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
8114 r"""GetEnumeratedFootprint(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8115 return _pcbnew.PCB_IO_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
8116
8117 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
8118 r"""FootprintExists(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> bool"""
8119 return _pcbnew.PCB_IO_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
8120
8121 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
8122 r"""FootprintSave(PCB_IO self, wxString aLibraryPath, FOOTPRINT aFootprint, STRING_UTF8_MAP const * aProperties=None)"""
8123 return _pcbnew.PCB_IO_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
8124
8125 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
8126 r"""FootprintDelete(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None)"""
8127 return _pcbnew.PCB_IO_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
8128
8129 def GetLibraryOptions(self, aListToAppendTo):
8130 r"""GetLibraryOptions(PCB_IO self, STRING_UTF8_MAP * aListToAppendTo)"""
8131 return _pcbnew.PCB_IO_GetLibraryOptions(self, aListToAppendTo)
8132 __swig_destroy__ = _pcbnew.delete_PCB_IO
8133
8134 def footprintPyEnumerate(self, aLibraryPath, aExitOnError):
8135 r"""footprintPyEnumerate(PCB_IO self, wxString aLibraryPath, bool aExitOnError) -> wxArrayString"""
8136 return _pcbnew.PCB_IO_footprintPyEnumerate(self, aLibraryPath, aExitOnError)
8137
8138 def FootprintEnumerate(self, libname):
8139 return self.footprintPyEnumerate( libname, True )
8140
8141 # Old function name for compatibility with pre-v8 scripts, use CreateLibrary() for new scripts.
8142 def FootprintLibCreate(self, aLibraryPath, aProperties=None):
8143 self.CreateLibrary(aLibraryPath, aProperties)
8144
8145 # Old function name for compatibility with pre-v8 scripts, use DeleteLibrary() for new scripts.
8146 def FootprintLibDelete(self, aLibraryPath, aProperties=None):
8147 return self.DeleteLibrary(aLibraryPath, aProperties)
8148
8149 # Old function name for compatibility with pre-v8 scripts, use IsLibraryWritable() for new scripts.
8150 def IsFootprintLibWritable(self, aLibraryPath):
8151 return self.IsLibraryWritable(aLibraryPath)
8152
8153
8154# Register PCB_IO in _pcbnew:
8155_pcbnew.PCB_IO_swigregister(PCB_IO)
8156
8157SEXPR_BOARD_FILE_VERSION = _pcbnew.SEXPR_BOARD_FILE_VERSION
8158
8159BOARD_FILE_HOST_VERSION = _pcbnew.BOARD_FILE_HOST_VERSION
8160
8161LEGACY_ARC_FORMATTING = _pcbnew.LEGACY_ARC_FORMATTING
8162
8163LEGACY_NET_TIES = _pcbnew.LEGACY_NET_TIES
8164
8165FIRST_NORMALIZED_VERISON = _pcbnew.FIRST_NORMALIZED_VERISON
8166
8168 r"""Proxy of C++ FP_CACHE_ITEM class."""
8169
8170 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8171 __repr__ = _swig_repr
8172
8173 def __init__(self, aFootprint, aFileName):
8174 r"""__init__(FP_CACHE_ITEM self, FOOTPRINT aFootprint, WX_FILENAME const & aFileName) -> FP_CACHE_ITEM"""
8175 _pcbnew.FP_CACHE_ITEM_swiginit(self, _pcbnew.new_FP_CACHE_ITEM(aFootprint, aFileName))
8176
8177 def GetFileName(self):
8178 r"""GetFileName(FP_CACHE_ITEM self) -> WX_FILENAME const &"""
8179 return _pcbnew.FP_CACHE_ITEM_GetFileName(self)
8180
8181 def SetFilePath(self, aFilePath):
8182 r"""SetFilePath(FP_CACHE_ITEM self, wxString aFilePath)"""
8183 return _pcbnew.FP_CACHE_ITEM_SetFilePath(self, aFilePath)
8184
8185 def GetFootprint(self):
8186 r"""GetFootprint(FP_CACHE_ITEM self) -> FOOTPRINT"""
8187 return _pcbnew.FP_CACHE_ITEM_GetFootprint(self)
8188 __swig_destroy__ = _pcbnew.delete_FP_CACHE_ITEM
8189
8190# Register FP_CACHE_ITEM in _pcbnew:
8191_pcbnew.FP_CACHE_ITEM_swigregister(FP_CACHE_ITEM)
8192
8194 r"""Proxy of C++ FP_CACHE class."""
8195
8196 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8197 __repr__ = _swig_repr
8198
8199 def __init__(self, aOwner, aLibraryPath):
8200 r"""__init__(FP_CACHE self, PCB_IO_KICAD_SEXPR aOwner, wxString aLibraryPath) -> FP_CACHE"""
8201 _pcbnew.FP_CACHE_swiginit(self, _pcbnew.new_FP_CACHE(aOwner, aLibraryPath))
8202
8203 def GetPath(self):
8204 r"""GetPath(FP_CACHE self) -> wxString"""
8205 return _pcbnew.FP_CACHE_GetPath(self)
8206
8207 def IsWritable(self):
8208 r"""IsWritable(FP_CACHE self) -> bool"""
8209 return _pcbnew.FP_CACHE_IsWritable(self)
8210
8211 def Exists(self):
8212 r"""Exists(FP_CACHE self) -> bool"""
8213 return _pcbnew.FP_CACHE_Exists(self)
8214
8215 def GetFootprints(self):
8216 r"""GetFootprints(FP_CACHE self) -> FP_CACHE_FOOTPRINT_MAP &"""
8217 return _pcbnew.FP_CACHE_GetFootprints(self)
8218
8219 def Save(self, aFootprint=None):
8220 r"""Save(FP_CACHE self, FOOTPRINT aFootprint=None)"""
8221 return _pcbnew.FP_CACHE_Save(self, aFootprint)
8222
8223 def Load(self):
8224 r"""Load(FP_CACHE self)"""
8225 return _pcbnew.FP_CACHE_Load(self)
8226
8227 def Remove(self, aFootprintName):
8228 r"""Remove(FP_CACHE self, wxString aFootprintName)"""
8229 return _pcbnew.FP_CACHE_Remove(self, aFootprintName)
8230
8231 @staticmethod
8232 def GetTimestamp(aLibPath):
8233 r"""GetTimestamp(wxString aLibPath) -> long long"""
8234 return _pcbnew.FP_CACHE_GetTimestamp(aLibPath)
8235
8236 def IsModified(self):
8237 r"""IsModified(FP_CACHE self) -> bool"""
8238 return _pcbnew.FP_CACHE_IsModified(self)
8239
8240 def IsPath(self, aPath):
8241 r"""IsPath(FP_CACHE self, wxString aPath) -> bool"""
8242 return _pcbnew.FP_CACHE_IsPath(self, aPath)
8243
8244 def SetPath(self, aPath):
8245 r"""SetPath(FP_CACHE self, wxString aPath)"""
8246 return _pcbnew.FP_CACHE_SetPath(self, aPath)
8247 __swig_destroy__ = _pcbnew.delete_FP_CACHE
8248
8249# Register FP_CACHE in _pcbnew:
8250_pcbnew.FP_CACHE_swigregister(FP_CACHE)
8251
8253 r"""FP_CACHE_GetTimestamp(wxString aLibPath) -> long long"""
8254 return _pcbnew.FP_CACHE_GetTimestamp(aLibPath)
8255
8257 r"""Proxy of C++ PCB_IO_KICAD_SEXPR class."""
8258
8259 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8260 __repr__ = _swig_repr
8261
8263 r"""GetLibraryFileDesc(PCB_IO_KICAD_SEXPR self) -> IO_BASE::IO_FILE_DESC const"""
8264 return _pcbnew.PCB_IO_KICAD_SEXPR_GetLibraryFileDesc(self)
8265
8267 r"""GetLibraryDesc(PCB_IO_KICAD_SEXPR self) -> IO_BASE::IO_FILE_DESC const"""
8268 return _pcbnew.PCB_IO_KICAD_SEXPR_GetLibraryDesc(self)
8269
8270 def SaveBoard(self, aFileName, aBoard, aProperties=None):
8271 r"""SaveBoard(PCB_IO_KICAD_SEXPR self, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
8272 return _pcbnew.PCB_IO_KICAD_SEXPR_SaveBoard(self, aFileName, aBoard, aProperties)
8273
8274 def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None):
8275 r"""LoadBoard(PCB_IO_KICAD_SEXPR self, wxString aFileName, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None) -> BOARD"""
8276 return _pcbnew.PCB_IO_KICAD_SEXPR_LoadBoard(self, aFileName, aAppendToMe, aProperties, aProject)
8277
8278 def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount):
8279 r"""DoLoad(PCB_IO_KICAD_SEXPR self, LINE_READER aReader, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties, PROGRESS_REPORTER * aProgressReporter, unsigned int aLineCount) -> BOARD"""
8280 return _pcbnew.PCB_IO_KICAD_SEXPR_DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
8281
8282 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
8283 r"""FootprintEnumerate(PCB_IO_KICAD_SEXPR self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, STRING_UTF8_MAP const * aProperties=None)"""
8284 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
8285
8286 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
8287 r"""GetEnumeratedFootprint(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8288 return _pcbnew.PCB_IO_KICAD_SEXPR_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
8289
8290 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
8291 r"""FootprintExists(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> bool"""
8292 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
8293
8294 def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None):
8295 r"""ImportFootprint(PCB_IO_KICAD_SEXPR self, wxString aFootprintPath, wxString aFootprintNameOut, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8296 return _pcbnew.PCB_IO_KICAD_SEXPR_ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties)
8297
8298 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
8299 r"""FootprintLoad(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8300 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
8301
8302 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
8303 r"""FootprintSave(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, FOOTPRINT aFootprint, STRING_UTF8_MAP const * aProperties=None)"""
8304 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
8305
8306 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
8307 r"""FootprintDelete(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None)"""
8308 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
8309
8310 def CreateLibrary(self, aLibraryPath, aProperties=None):
8311 r"""CreateLibrary(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None)"""
8312 return _pcbnew.PCB_IO_KICAD_SEXPR_CreateLibrary(self, aLibraryPath, aProperties)
8313
8314 def DeleteLibrary(self, aLibraryPath, aProperties=None):
8315 r"""DeleteLibrary(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None) -> bool"""
8316 return _pcbnew.PCB_IO_KICAD_SEXPR_DeleteLibrary(self, aLibraryPath, aProperties)
8317
8318 def IsLibraryWritable(self, aLibraryPath):
8319 r"""IsLibraryWritable(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath) -> bool"""
8320 return _pcbnew.PCB_IO_KICAD_SEXPR_IsLibraryWritable(self, aLibraryPath)
8321
8322 def __init__(self, *args):
8323 r"""__init__(PCB_IO_KICAD_SEXPR self, int aControlFlags=(CTL_OMIT_INITIAL_COMMENTS|CTL_OMIT_FOOTPRINT_VERSION)) -> PCB_IO_KICAD_SEXPR"""
8324 _pcbnew.PCB_IO_KICAD_SEXPR_swiginit(self, _pcbnew.new_PCB_IO_KICAD_SEXPR(*args))
8325 __swig_destroy__ = _pcbnew.delete_PCB_IO_KICAD_SEXPR
8326
8327 def Format(self, aItem, aNestLevel=0):
8328 r"""Format(PCB_IO_KICAD_SEXPR self, BOARD_ITEM aItem, int aNestLevel=0)"""
8329 return _pcbnew.PCB_IO_KICAD_SEXPR_Format(self, aItem, aNestLevel)
8330
8331 def GetStringOutput(self, doClear):
8332 r"""GetStringOutput(PCB_IO_KICAD_SEXPR self, bool doClear) -> string"""
8333 return _pcbnew.PCB_IO_KICAD_SEXPR_GetStringOutput(self, doClear)
8334
8335 def SetOutputFormatter(self, aFormatter):
8336 r"""SetOutputFormatter(PCB_IO_KICAD_SEXPR self, OUTPUTFORMATTER aFormatter)"""
8337 return _pcbnew.PCB_IO_KICAD_SEXPR_SetOutputFormatter(self, aFormatter)
8338
8339 def Parse(self, aClipboardSourceInput):
8340 r"""Parse(PCB_IO_KICAD_SEXPR self, wxString aClipboardSourceInput) -> BOARD_ITEM"""
8341 return _pcbnew.PCB_IO_KICAD_SEXPR_Parse(self, aClipboardSourceInput)
8342
8343# Register PCB_IO_KICAD_SEXPR in _pcbnew:
8344_pcbnew.PCB_IO_KICAD_SEXPR_swigregister(PCB_IO_KICAD_SEXPR)
8345
8347 r"""Proxy of C++ PLOT_CONTROLLER class."""
8348
8349 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8350 __repr__ = _swig_repr
8351
8352 def __init__(self, aBoard):
8353 r"""__init__(PLOT_CONTROLLER self, BOARD aBoard) -> PLOT_CONTROLLER"""
8354 _pcbnew.PLOT_CONTROLLER_swiginit(self, _pcbnew.new_PLOT_CONTROLLER(aBoard))
8355 __swig_destroy__ = _pcbnew.delete_PLOT_CONTROLLER
8356
8358 r"""GetPlotOptions(PLOT_CONTROLLER self) -> PCB_PLOT_PARAMS"""
8359 return _pcbnew.PLOT_CONTROLLER_GetPlotOptions(self)
8360
8361 def SetLayer(self, aLayer):
8362 r"""SetLayer(PLOT_CONTROLLER self, int aLayer)"""
8363 return _pcbnew.PLOT_CONTROLLER_SetLayer(self, aLayer)
8364
8365 def GetLayer(self):
8366 r"""GetLayer(PLOT_CONTROLLER self) -> int"""
8367 return _pcbnew.PLOT_CONTROLLER_GetLayer(self)
8368
8369 def IsPlotOpen(self):
8370 r"""IsPlotOpen(PLOT_CONTROLLER self) -> bool"""
8371 return _pcbnew.PLOT_CONTROLLER_IsPlotOpen(self)
8372
8373 def ClosePlot(self):
8374 r"""ClosePlot(PLOT_CONTROLLER self)"""
8375 return _pcbnew.PLOT_CONTROLLER_ClosePlot(self)
8376
8377 def OpenPlotfile(self, *args):
8378 r"""OpenPlotfile(PLOT_CONTROLLER self, wxString aSuffix, PLOT_FORMAT aFormat, wxString aSheetName=wxEmptyString, wxString aSheetPath=wxEmptyString) -> bool"""
8379 return _pcbnew.PLOT_CONTROLLER_OpenPlotfile(self, *args)
8380
8381 def PlotLayer(self):
8382 r"""PlotLayer(PLOT_CONTROLLER self) -> bool"""
8383 return _pcbnew.PLOT_CONTROLLER_PlotLayer(self)
8384
8385 def PlotLayers(self, aLayerSequence):
8386 r"""PlotLayers(PLOT_CONTROLLER self, LSEQ aLayerSequence) -> bool"""
8387 return _pcbnew.PLOT_CONTROLLER_PlotLayers(self, aLayerSequence)
8388
8390 r"""GetPlotFileName(PLOT_CONTROLLER self) -> wxString"""
8391 return _pcbnew.PLOT_CONTROLLER_GetPlotFileName(self)
8392
8394 r"""GetPlotDirName(PLOT_CONTROLLER self) -> wxString"""
8395 return _pcbnew.PLOT_CONTROLLER_GetPlotDirName(self)
8396
8397 def SetColorMode(self, aColorMode):
8398 r"""SetColorMode(PLOT_CONTROLLER self, bool aColorMode)"""
8399 return _pcbnew.PLOT_CONTROLLER_SetColorMode(self, aColorMode)
8400
8401 def GetColorMode(self):
8402 r"""GetColorMode(PLOT_CONTROLLER self) -> bool"""
8403 return _pcbnew.PLOT_CONTROLLER_GetColorMode(self)
8404
8405 def GetPlotter(self):
8406 r"""GetPlotter(PLOT_CONTROLLER self) -> PLOTTER"""
8407 return _pcbnew.PLOT_CONTROLLER_GetPlotter(self)
8408
8409# Register PLOT_CONTROLLER in _pcbnew:
8410_pcbnew.PLOT_CONTROLLER_swigregister(PLOT_CONTROLLER)
8411
8412DRILL_MARKS_NO_DRILL_SHAPE = _pcbnew.DRILL_MARKS_NO_DRILL_SHAPE
8413
8414DRILL_MARKS_SMALL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_SMALL_DRILL_SHAPE
8415
8416DRILL_MARKS_FULL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_FULL_DRILL_SHAPE
8417
8419 r"""Proxy of C++ PCB_PLOT_PARAMS class."""
8420
8421 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8422 __repr__ = _swig_repr
8423
8424 def __init__(self):
8425 r"""__init__(PCB_PLOT_PARAMS self) -> PCB_PLOT_PARAMS"""
8426 _pcbnew.PCB_PLOT_PARAMS_swiginit(self, _pcbnew.new_PCB_PLOT_PARAMS())
8427
8428 def SetSkipPlotNPTH_Pads(self, aSkip):
8429 r"""SetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self, bool aSkip)"""
8430 return _pcbnew.PCB_PLOT_PARAMS_SetSkipPlotNPTH_Pads(self, aSkip)
8431
8433 r"""GetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self) -> bool"""
8434 return _pcbnew.PCB_PLOT_PARAMS_GetSkipPlotNPTH_Pads(self)
8435
8436 def Format(self, aFormatter, aNestLevel, aControl=0):
8437 r"""Format(PCB_PLOT_PARAMS self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControl=0)"""
8438 return _pcbnew.PCB_PLOT_PARAMS_Format(self, aFormatter, aNestLevel, aControl)
8439
8440 def Parse(self, aParser):
8441 r"""Parse(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS_PARSER * aParser)"""
8442 return _pcbnew.PCB_PLOT_PARAMS_Parse(self, aParser)
8443
8444 def IsSameAs(self, aPcbPlotParams):
8445 r"""IsSameAs(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS aPcbPlotParams) -> bool"""
8446 return _pcbnew.PCB_PLOT_PARAMS_IsSameAs(self, aPcbPlotParams)
8447
8448 def SetColorSettings(self, aSettings):
8449 r"""SetColorSettings(PCB_PLOT_PARAMS self, COLOR_SETTINGS * aSettings)"""
8450 return _pcbnew.PCB_PLOT_PARAMS_SetColorSettings(self, aSettings)
8451
8452 def ColorSettings(self):
8453 r"""ColorSettings(PCB_PLOT_PARAMS self) -> COLOR_SETTINGS *"""
8454 return _pcbnew.PCB_PLOT_PARAMS_ColorSettings(self)
8455
8456 def SetTextMode(self, aVal):
8457 r"""SetTextMode(PCB_PLOT_PARAMS self, PLOT_TEXT_MODE aVal)"""
8458 return _pcbnew.PCB_PLOT_PARAMS_SetTextMode(self, aVal)
8459
8460 def GetTextMode(self):
8461 r"""GetTextMode(PCB_PLOT_PARAMS self) -> PLOT_TEXT_MODE"""
8462 return _pcbnew.PCB_PLOT_PARAMS_GetTextMode(self)
8463
8464 def SetPlotMode(self, aPlotMode):
8465 r"""SetPlotMode(PCB_PLOT_PARAMS self, OUTLINE_MODE aPlotMode)"""
8466 return _pcbnew.PCB_PLOT_PARAMS_SetPlotMode(self, aPlotMode)
8467
8468 def GetPlotMode(self):
8469 r"""GetPlotMode(PCB_PLOT_PARAMS self) -> OUTLINE_MODE"""
8470 return _pcbnew.PCB_PLOT_PARAMS_GetPlotMode(self)
8471
8472 def SetDXFPlotPolygonMode(self, aFlag):
8473 r"""SetDXFPlotPolygonMode(PCB_PLOT_PARAMS self, bool aFlag)"""
8474 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotPolygonMode(self, aFlag)
8475
8477 r"""GetDXFPlotPolygonMode(PCB_PLOT_PARAMS self) -> bool"""
8478 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotPolygonMode(self)
8479
8480 def SetDXFPlotUnits(self, aUnit):
8481 r"""SetDXFPlotUnits(PCB_PLOT_PARAMS self, DXF_UNITS aUnit)"""
8482 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotUnits(self, aUnit)
8483
8485 r"""GetDXFPlotUnits(PCB_PLOT_PARAMS self) -> DXF_UNITS"""
8486 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotUnits(self)
8487
8488 def SetDrillMarksType(self, aVal):
8489 r"""SetDrillMarksType(PCB_PLOT_PARAMS self, DRILL_MARKS aVal)"""
8490 return _pcbnew.PCB_PLOT_PARAMS_SetDrillMarksType(self, aVal)
8491
8493 r"""GetDrillMarksType(PCB_PLOT_PARAMS self) -> DRILL_MARKS"""
8494 return _pcbnew.PCB_PLOT_PARAMS_GetDrillMarksType(self)
8495
8496 def SetScale(self, aVal):
8497 r"""SetScale(PCB_PLOT_PARAMS self, double aVal)"""
8498 return _pcbnew.PCB_PLOT_PARAMS_SetScale(self, aVal)
8499
8500 def GetScale(self):
8501 r"""GetScale(PCB_PLOT_PARAMS self) -> double"""
8502 return _pcbnew.PCB_PLOT_PARAMS_GetScale(self)
8503
8504 def SetFineScaleAdjustX(self, aVal):
8505 r"""SetFineScaleAdjustX(PCB_PLOT_PARAMS self, double aVal)"""
8506 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustX(self, aVal)
8507
8509 r"""GetFineScaleAdjustX(PCB_PLOT_PARAMS self) -> double"""
8510 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustX(self)
8511
8512 def SetFineScaleAdjustY(self, aVal):
8513 r"""SetFineScaleAdjustY(PCB_PLOT_PARAMS self, double aVal)"""
8514 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustY(self, aVal)
8515
8517 r"""GetFineScaleAdjustY(PCB_PLOT_PARAMS self) -> double"""
8518 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustY(self)
8519
8520 def SetWidthAdjust(self, aVal):
8521 r"""SetWidthAdjust(PCB_PLOT_PARAMS self, int aVal)"""
8522 return _pcbnew.PCB_PLOT_PARAMS_SetWidthAdjust(self, aVal)
8523
8525 r"""GetWidthAdjust(PCB_PLOT_PARAMS self) -> int"""
8526 return _pcbnew.PCB_PLOT_PARAMS_GetWidthAdjust(self)
8527
8528 def SetAutoScale(self, aFlag):
8529 r"""SetAutoScale(PCB_PLOT_PARAMS self, bool aFlag)"""
8530 return _pcbnew.PCB_PLOT_PARAMS_SetAutoScale(self, aFlag)
8531
8532 def GetAutoScale(self):
8533 r"""GetAutoScale(PCB_PLOT_PARAMS self) -> bool"""
8534 return _pcbnew.PCB_PLOT_PARAMS_GetAutoScale(self)
8535
8536 def SetMirror(self, aFlag):
8537 r"""SetMirror(PCB_PLOT_PARAMS self, bool aFlag)"""
8538 return _pcbnew.PCB_PLOT_PARAMS_SetMirror(self, aFlag)
8539
8540 def GetMirror(self):
8541 r"""GetMirror(PCB_PLOT_PARAMS self) -> bool"""
8542 return _pcbnew.PCB_PLOT_PARAMS_GetMirror(self)
8543
8545 r"""SetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8546 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadsOnFabLayers(self, aFlag)
8547
8549 r"""GetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8550 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadsOnFabLayers(self)
8551
8552 def SetSketchPadLineWidth(self, aWidth):
8553 r"""SetSketchPadLineWidth(PCB_PLOT_PARAMS self, int aWidth)"""
8554 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadLineWidth(self, aWidth)
8555
8557 r"""GetSketchPadLineWidth(PCB_PLOT_PARAMS self) -> int"""
8558 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadLineWidth(self)
8559
8560 def SetPlotInvisibleText(self, aFlag):
8561 r"""SetPlotInvisibleText(PCB_PLOT_PARAMS self, bool aFlag)"""
8562 return _pcbnew.PCB_PLOT_PARAMS_SetPlotInvisibleText(self, aFlag)
8563
8565 r"""GetPlotInvisibleText(PCB_PLOT_PARAMS self) -> bool"""
8566 return _pcbnew.PCB_PLOT_PARAMS_GetPlotInvisibleText(self)
8567
8568 def SetPlotValue(self, aFlag):
8569 r"""SetPlotValue(PCB_PLOT_PARAMS self, bool aFlag)"""
8570 return _pcbnew.PCB_PLOT_PARAMS_SetPlotValue(self, aFlag)
8571
8572 def GetPlotValue(self):
8573 r"""GetPlotValue(PCB_PLOT_PARAMS self) -> bool"""
8574 return _pcbnew.PCB_PLOT_PARAMS_GetPlotValue(self)
8575
8576 def SetPlotReference(self, aFlag):
8577 r"""SetPlotReference(PCB_PLOT_PARAMS self, bool aFlag)"""
8578 return _pcbnew.PCB_PLOT_PARAMS_SetPlotReference(self, aFlag)
8579
8581 r"""GetPlotReference(PCB_PLOT_PARAMS self) -> bool"""
8582 return _pcbnew.PCB_PLOT_PARAMS_GetPlotReference(self)
8583
8584 def SetPlotFPText(self, aFlag):
8585 r"""SetPlotFPText(PCB_PLOT_PARAMS self, bool aFlag)"""
8586 return _pcbnew.PCB_PLOT_PARAMS_SetPlotFPText(self, aFlag)
8587
8588 def GetPlotFPText(self):
8589 r"""GetPlotFPText(PCB_PLOT_PARAMS self) -> bool"""
8590 return _pcbnew.PCB_PLOT_PARAMS_GetPlotFPText(self)
8591
8592 def SetNegative(self, aFlag):
8593 r"""SetNegative(PCB_PLOT_PARAMS self, bool aFlag)"""
8594 return _pcbnew.PCB_PLOT_PARAMS_SetNegative(self, aFlag)
8595
8596 def GetNegative(self):
8597 r"""GetNegative(PCB_PLOT_PARAMS self) -> bool"""
8598 return _pcbnew.PCB_PLOT_PARAMS_GetNegative(self)
8599
8600 def SetPlotViaOnMaskLayer(self, aFlag):
8601 r"""SetPlotViaOnMaskLayer(PCB_PLOT_PARAMS self, bool aFlag)"""
8602 return _pcbnew.PCB_PLOT_PARAMS_SetPlotViaOnMaskLayer(self, aFlag)
8603
8605 r"""GetPlotViaOnMaskLayer(PCB_PLOT_PARAMS self) -> bool"""
8606 return _pcbnew.PCB_PLOT_PARAMS_GetPlotViaOnMaskLayer(self)
8607
8608 def SetPlotFrameRef(self, aFlag):
8609 r"""SetPlotFrameRef(PCB_PLOT_PARAMS self, bool aFlag)"""
8610 return _pcbnew.PCB_PLOT_PARAMS_SetPlotFrameRef(self, aFlag)
8611
8613 r"""GetPlotFrameRef(PCB_PLOT_PARAMS self) -> bool"""
8614 return _pcbnew.PCB_PLOT_PARAMS_GetPlotFrameRef(self)
8615
8616 def SetFormat(self, aFormat):
8617 r"""SetFormat(PCB_PLOT_PARAMS self, PLOT_FORMAT aFormat)"""
8618 return _pcbnew.PCB_PLOT_PARAMS_SetFormat(self, aFormat)
8619
8620 def GetFormat(self):
8621 r"""GetFormat(PCB_PLOT_PARAMS self) -> PLOT_FORMAT"""
8622 return _pcbnew.PCB_PLOT_PARAMS_GetFormat(self)
8623
8624 def SetOutputDirectory(self, aDir):
8625 r"""SetOutputDirectory(PCB_PLOT_PARAMS self, wxString aDir)"""
8626 return _pcbnew.PCB_PLOT_PARAMS_SetOutputDirectory(self, aDir)
8627
8629 r"""GetOutputDirectory(PCB_PLOT_PARAMS self) -> wxString"""
8630 return _pcbnew.PCB_PLOT_PARAMS_GetOutputDirectory(self)
8631
8632 def SetDisableGerberMacros(self, aDisable):
8633 r"""SetDisableGerberMacros(PCB_PLOT_PARAMS self, bool aDisable)"""
8634 return _pcbnew.PCB_PLOT_PARAMS_SetDisableGerberMacros(self, aDisable)
8635
8637 r"""GetDisableGerberMacros(PCB_PLOT_PARAMS self) -> bool"""
8638 return _pcbnew.PCB_PLOT_PARAMS_GetDisableGerberMacros(self)
8639
8640 def SetUseGerberX2format(self, aUse):
8641 r"""SetUseGerberX2format(PCB_PLOT_PARAMS self, bool aUse)"""
8642 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberX2format(self, aUse)
8643
8645 r"""GetUseGerberX2format(PCB_PLOT_PARAMS self) -> bool"""
8646 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberX2format(self)
8647
8649 r"""SetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self, bool aUse)"""
8650 return _pcbnew.PCB_PLOT_PARAMS_SetIncludeGerberNetlistInfo(self, aUse)
8651
8653 r"""GetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self) -> bool"""
8654 return _pcbnew.PCB_PLOT_PARAMS_GetIncludeGerberNetlistInfo(self)
8655
8656 def SetCreateGerberJobFile(self, aCreate):
8657 r"""SetCreateGerberJobFile(PCB_PLOT_PARAMS self, bool aCreate)"""
8658 return _pcbnew.PCB_PLOT_PARAMS_SetCreateGerberJobFile(self, aCreate)
8659
8661 r"""GetCreateGerberJobFile(PCB_PLOT_PARAMS self) -> bool"""
8662 return _pcbnew.PCB_PLOT_PARAMS_GetCreateGerberJobFile(self)
8663
8665 r"""SetUseGerberProtelExtensions(PCB_PLOT_PARAMS self, bool aUse)"""
8666 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberProtelExtensions(self, aUse)
8667
8669 r"""GetUseGerberProtelExtensions(PCB_PLOT_PARAMS self) -> bool"""
8670 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberProtelExtensions(self)
8671
8672 def SetGerberPrecision(self, aPrecision):
8673 r"""SetGerberPrecision(PCB_PLOT_PARAMS self, int aPrecision)"""
8674 return _pcbnew.PCB_PLOT_PARAMS_SetGerberPrecision(self, aPrecision)
8675
8677 r"""GetGerberPrecision(PCB_PLOT_PARAMS self) -> int"""
8678 return _pcbnew.PCB_PLOT_PARAMS_GetGerberPrecision(self)
8679
8680 def SetSvgPrecision(self, aPrecision):
8681 r"""SetSvgPrecision(PCB_PLOT_PARAMS self, unsigned int aPrecision)"""
8682 return _pcbnew.PCB_PLOT_PARAMS_SetSvgPrecision(self, aPrecision)
8683
8685 r"""GetSvgPrecision(PCB_PLOT_PARAMS self) -> unsigned int"""
8686 return _pcbnew.PCB_PLOT_PARAMS_GetSvgPrecision(self)
8687
8688 def SetBlackAndWhite(self, blackAndWhite):
8689 r"""SetBlackAndWhite(PCB_PLOT_PARAMS self, bool blackAndWhite)"""
8690 return _pcbnew.PCB_PLOT_PARAMS_SetBlackAndWhite(self, blackAndWhite)
8691
8693 r"""GetBlackAndWhite(PCB_PLOT_PARAMS self) -> unsigned int"""
8694 return _pcbnew.PCB_PLOT_PARAMS_GetBlackAndWhite(self)
8695
8696 def SetSubtractMaskFromSilk(self, aSubtract):
8697 r"""SetSubtractMaskFromSilk(PCB_PLOT_PARAMS self, bool aSubtract)"""
8698 return _pcbnew.PCB_PLOT_PARAMS_SetSubtractMaskFromSilk(self, aSubtract)
8699
8701 r"""GetSubtractMaskFromSilk(PCB_PLOT_PARAMS self) -> bool"""
8702 return _pcbnew.PCB_PLOT_PARAMS_GetSubtractMaskFromSilk(self)
8703
8704 def SetLayerSelection(self, aSelection):
8705 r"""SetLayerSelection(PCB_PLOT_PARAMS self, LSET aSelection)"""
8706 return _pcbnew.PCB_PLOT_PARAMS_SetLayerSelection(self, aSelection)
8707
8709 r"""GetLayerSelection(PCB_PLOT_PARAMS self) -> LSET"""
8710 return _pcbnew.PCB_PLOT_PARAMS_GetLayerSelection(self)
8711
8712 def SetPlotOnAllLayersSelection(self, aSelection):
8713 r"""SetPlotOnAllLayersSelection(PCB_PLOT_PARAMS self, LSET aSelection)"""
8714 return _pcbnew.PCB_PLOT_PARAMS_SetPlotOnAllLayersSelection(self, aSelection)
8715
8717 r"""GetPlotOnAllLayersSelection(PCB_PLOT_PARAMS self) -> LSET"""
8718 return _pcbnew.PCB_PLOT_PARAMS_GetPlotOnAllLayersSelection(self)
8719
8720 def SetUseAuxOrigin(self, aAux):
8721 r"""SetUseAuxOrigin(PCB_PLOT_PARAMS self, bool aAux)"""
8722 return _pcbnew.PCB_PLOT_PARAMS_SetUseAuxOrigin(self, aAux)
8723
8725 r"""GetUseAuxOrigin(PCB_PLOT_PARAMS self) -> bool"""
8726 return _pcbnew.PCB_PLOT_PARAMS_GetUseAuxOrigin(self)
8727
8728 def SetScaleSelection(self, aSelection):
8729 r"""SetScaleSelection(PCB_PLOT_PARAMS self, int aSelection)"""
8730 return _pcbnew.PCB_PLOT_PARAMS_SetScaleSelection(self, aSelection)
8731
8733 r"""GetScaleSelection(PCB_PLOT_PARAMS self) -> int"""
8734 return _pcbnew.PCB_PLOT_PARAMS_GetScaleSelection(self)
8735
8736 def SetA4Output(self, aForce):
8737 r"""SetA4Output(PCB_PLOT_PARAMS self, int aForce)"""
8738 return _pcbnew.PCB_PLOT_PARAMS_SetA4Output(self, aForce)
8739
8740 def GetA4Output(self):
8741 r"""GetA4Output(PCB_PLOT_PARAMS self) -> bool"""
8742 return _pcbnew.PCB_PLOT_PARAMS_GetA4Output(self)
8743
8745 r"""GetHPGLPenDiameter(PCB_PLOT_PARAMS self) -> double"""
8746 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenDiameter(self)
8747
8748 def SetHPGLPenDiameter(self, aValue):
8749 r"""SetHPGLPenDiameter(PCB_PLOT_PARAMS self, double aValue) -> bool"""
8750 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenDiameter(self, aValue)
8751
8753 r"""GetHPGLPenSpeed(PCB_PLOT_PARAMS self) -> int"""
8754 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenSpeed(self)
8755
8756 def SetHPGLPenSpeed(self, aValue):
8757 r"""SetHPGLPenSpeed(PCB_PLOT_PARAMS self, int aValue) -> bool"""
8758 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenSpeed(self, aValue)
8759
8760 def SetHPGLPenNum(self, aVal):
8761 r"""SetHPGLPenNum(PCB_PLOT_PARAMS self, int aVal)"""
8762 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenNum(self, aVal)
8763
8764 def GetHPGLPenNum(self):
8765 r"""GetHPGLPenNum(PCB_PLOT_PARAMS self) -> int"""
8766 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenNum(self)
8767
8768 def SetDashedLineDashRatio(self, aVal):
8769 r"""SetDashedLineDashRatio(PCB_PLOT_PARAMS self, double aVal)"""
8770 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineDashRatio(self, aVal)
8771
8773 r"""GetDashedLineDashRatio(PCB_PLOT_PARAMS self) -> double"""
8774 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineDashRatio(self)
8775
8776 def SetDashedLineGapRatio(self, aVal):
8777 r"""SetDashedLineGapRatio(PCB_PLOT_PARAMS self, double aVal)"""
8778 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineGapRatio(self, aVal)
8779
8781 r"""GetDashedLineGapRatio(PCB_PLOT_PARAMS self) -> double"""
8782 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineGapRatio(self)
8783 m_PDFFrontFPPropertyPopups = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFFrontFPPropertyPopups_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFFrontFPPropertyPopups_set, doc=r"""m_PDFFrontFPPropertyPopups : bool""")
8784 m_PDFBackFPPropertyPopups = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFBackFPPropertyPopups_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFBackFPPropertyPopups_set, doc=r"""m_PDFBackFPPropertyPopups : bool""")
8785
8786 # add SetUseGerberAttributes() for compatibility with old python scripts
8787 # after renaming it to SetUseGerberX2format()
8788 def SetUseGerberAttributes( self, aUse ):
8789 return self.SetUseGerberX2format( aUse )
8790
8791 __swig_destroy__ = _pcbnew.delete_PCB_PLOT_PARAMS
8792
8793# Register PCB_PLOT_PARAMS in _pcbnew:
8794_pcbnew.PCB_PLOT_PARAMS_swigregister(PCB_PLOT_PARAMS)
8795
8796DXF_UNITS_INCHES = _pcbnew.DXF_UNITS_INCHES
8797
8798DXF_UNITS_MILLIMETERS = _pcbnew.DXF_UNITS_MILLIMETERS
8799
8800PLOT_FORMAT_UNDEFINED = _pcbnew.PLOT_FORMAT_UNDEFINED
8801
8802PLOT_FORMAT_FIRST_FORMAT = _pcbnew.PLOT_FORMAT_FIRST_FORMAT
8803
8804PLOT_FORMAT_HPGL = _pcbnew.PLOT_FORMAT_HPGL
8805
8806PLOT_FORMAT_GERBER = _pcbnew.PLOT_FORMAT_GERBER
8807
8808PLOT_FORMAT_POST = _pcbnew.PLOT_FORMAT_POST
8809
8810PLOT_FORMAT_DXF = _pcbnew.PLOT_FORMAT_DXF
8811
8812PLOT_FORMAT_PDF = _pcbnew.PLOT_FORMAT_PDF
8813
8814PLOT_FORMAT_SVG = _pcbnew.PLOT_FORMAT_SVG
8815
8816PLOT_FORMAT_LAST_FORMAT = _pcbnew.PLOT_FORMAT_LAST_FORMAT
8817
8818PLOT_TEXT_MODE_STROKE = _pcbnew.PLOT_TEXT_MODE_STROKE
8819
8820PLOT_TEXT_MODE_NATIVE = _pcbnew.PLOT_TEXT_MODE_NATIVE
8821
8822PLOT_TEXT_MODE_PHANTOM = _pcbnew.PLOT_TEXT_MODE_PHANTOM
8823
8824PLOT_TEXT_MODE_DEFAULT = _pcbnew.PLOT_TEXT_MODE_DEFAULT
8825
8827 r"""Proxy of C++ PLOTTER class."""
8828
8829 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8830
8831 def __init__(self, *args, **kwargs):
8832 raise AttributeError("No constructor defined - class is abstract")
8833 __repr__ = _swig_repr
8834 DO_NOT_SET_LINE_WIDTH = _pcbnew.PLOTTER_DO_NOT_SET_LINE_WIDTH
8835
8836 USE_DEFAULT_LINE_WIDTH = _pcbnew.PLOTTER_USE_DEFAULT_LINE_WIDTH
8837
8838 __swig_destroy__ = _pcbnew.delete_PLOTTER
8839
8841 r"""GetPlotterType(PLOTTER self) -> PLOT_FORMAT"""
8842 return _pcbnew.PLOTTER_GetPlotterType(self)
8843
8844 def StartPlot(self, aPageNumber):
8845 r"""StartPlot(PLOTTER self, wxString aPageNumber) -> bool"""
8846 return _pcbnew.PLOTTER_StartPlot(self, aPageNumber)
8847
8848 def EndPlot(self):
8849 r"""EndPlot(PLOTTER self) -> bool"""
8850 return _pcbnew.PLOTTER_EndPlot(self)
8851
8852 def SetNegative(self, aNegative):
8853 r"""SetNegative(PLOTTER self, bool aNegative)"""
8854 return _pcbnew.PLOTTER_SetNegative(self, aNegative)
8855
8856 def SetColorMode(self, aColorMode):
8857 r"""SetColorMode(PLOTTER self, bool aColorMode)"""
8858 return _pcbnew.PLOTTER_SetColorMode(self, aColorMode)
8859
8860 def GetColorMode(self):
8861 r"""GetColorMode(PLOTTER self) -> bool"""
8862 return _pcbnew.PLOTTER_GetColorMode(self)
8863
8864 def SetRenderSettings(self, aSettings):
8865 r"""SetRenderSettings(PLOTTER self, RENDER_SETTINGS * aSettings)"""
8866 return _pcbnew.PLOTTER_SetRenderSettings(self, aSettings)
8867
8869 r"""RenderSettings(PLOTTER self) -> RENDER_SETTINGS *"""
8870 return _pcbnew.PLOTTER_RenderSettings(self)
8871
8872 def SetPageSettings(self, aPageSettings):
8873 r"""SetPageSettings(PLOTTER self, PAGE_INFO const & aPageSettings)"""
8874 return _pcbnew.PLOTTER_SetPageSettings(self, aPageSettings)
8875
8876 def PageSettings(self):
8877 r"""PageSettings(PLOTTER self) -> PAGE_INFO &"""
8878 return _pcbnew.PLOTTER_PageSettings(self)
8879
8880 def SetCurrentLineWidth(self, width, aData=None):
8881 r"""SetCurrentLineWidth(PLOTTER self, int width, void * aData=None)"""
8882 return _pcbnew.PLOTTER_SetCurrentLineWidth(self, width, aData)
8883
8885 r"""GetCurrentLineWidth(PLOTTER self) -> int"""
8886 return _pcbnew.PLOTTER_GetCurrentLineWidth(self)
8887
8888 def SetColor(self, color):
8889 r"""SetColor(PLOTTER self, COLOR4D color)"""
8890 return _pcbnew.PLOTTER_SetColor(self, color)
8891
8892 def SetDash(self, aLineWidth, aLineStyle):
8893 r"""SetDash(PLOTTER self, int aLineWidth, LINE_STYLE aLineStyle)"""
8894 return _pcbnew.PLOTTER_SetDash(self, aLineWidth, aLineStyle)
8895
8896 def SetCreator(self, aCreator):
8897 r"""SetCreator(PLOTTER self, wxString aCreator)"""
8898 return _pcbnew.PLOTTER_SetCreator(self, aCreator)
8899
8900 def SetTitle(self, aTitle):
8901 r"""SetTitle(PLOTTER self, wxString aTitle)"""
8902 return _pcbnew.PLOTTER_SetTitle(self, aTitle)
8903
8904 def AddLineToHeader(self, aExtraString):
8905 r"""AddLineToHeader(PLOTTER self, wxString aExtraString)"""
8906 return _pcbnew.PLOTTER_AddLineToHeader(self, aExtraString)
8907
8909 r"""ClearHeaderLinesList(PLOTTER self)"""
8910 return _pcbnew.PLOTTER_ClearHeaderLinesList(self)
8911
8912 def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror):
8913 r"""SetViewport(PLOTTER self, VECTOR2I aOffset, double aIusPerDecimil, double aScale, bool aMirror)"""
8914 return _pcbnew.PLOTTER_SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
8915
8916 def OpenFile(self, aFullFilename):
8917 r"""OpenFile(PLOTTER self, wxString aFullFilename) -> bool"""
8918 return _pcbnew.PLOTTER_OpenFile(self, aFullFilename)
8919
8921 r"""GetIUsPerDecimil(PLOTTER self) -> double"""
8922 return _pcbnew.PLOTTER_GetIUsPerDecimil(self)
8923
8925 r"""GetPlotterArcLowDef(PLOTTER self) -> int"""
8926 return _pcbnew.PLOTTER_GetPlotterArcLowDef(self)
8927
8929 r"""GetPlotterArcHighDef(PLOTTER self) -> int"""
8930 return _pcbnew.PLOTTER_GetPlotterArcHighDef(self)
8931
8932 def Rect(self, *args):
8933 r"""Rect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8934 return _pcbnew.PLOTTER_Rect(self, *args)
8935
8936 def Circle(self, *args):
8937 r"""Circle(PLOTTER self, VECTOR2I pos, int diametre, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8938 return _pcbnew.PLOTTER_Circle(self, *args)
8939
8940 def Arc(self, *args):
8941 r"""
8942 Arc(PLOTTER self, VECTOR2D const & aStart, VECTOR2D const & aMid, VECTOR2D const & aEnd, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH)
8943 Arc(PLOTTER self, VECTOR2D const & aCenter, EDA_ANGLE aStartAngle, EDA_ANGLE aAngle, double aRadius, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH)
8944 """
8945 return _pcbnew.PLOTTER_Arc(self, *args)
8946
8947 def BezierCurve(self, *args):
8948 r"""BezierCurve(PLOTTER self, VECTOR2I aStart, VECTOR2I aControl1, VECTOR2I aControl2, VECTOR2I aEnd, int aTolerance, int aLineThickness=USE_DEFAULT_LINE_WIDTH)"""
8949 return _pcbnew.PLOTTER_BezierCurve(self, *args)
8950
8951 def PenTo(self, pos, plume):
8952 r"""PenTo(PLOTTER self, VECTOR2I pos, char plume)"""
8953 return _pcbnew.PLOTTER_PenTo(self, pos, plume)
8954
8955 def MoveTo(self, pos):
8956 r"""MoveTo(PLOTTER self, VECTOR2I pos)"""
8957 return _pcbnew.PLOTTER_MoveTo(self, pos)
8958
8959 def LineTo(self, pos):
8960 r"""LineTo(PLOTTER self, VECTOR2I pos)"""
8961 return _pcbnew.PLOTTER_LineTo(self, pos)
8962
8963 def FinishTo(self, pos):
8964 r"""FinishTo(PLOTTER self, VECTOR2I pos)"""
8965 return _pcbnew.PLOTTER_FinishTo(self, pos)
8966
8967 def PenFinish(self):
8968 r"""PenFinish(PLOTTER self)"""
8969 return _pcbnew.PLOTTER_PenFinish(self)
8970
8971 def PlotPoly(self, *args):
8972 r"""
8973 PlotPoly(PLOTTER self, VECTOR_VECTOR2I aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8974 PlotPoly(PLOTTER self, SHAPE_LINE_CHAIN aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8975 """
8976 return _pcbnew.PLOTTER_PlotPoly(self, *args)
8977
8978 def PlotImage(self, aImage, aPos, aScaleFactor):
8979 r"""PlotImage(PLOTTER self, wxImage const & aImage, VECTOR2I aPos, double aScaleFactor)"""
8980 return _pcbnew.PLOTTER_PlotImage(self, aImage, aPos, aScaleFactor)
8981
8982 def ThickSegment(self, start, end, width, tracemode, aData):
8983 r"""ThickSegment(PLOTTER self, VECTOR2I start, VECTOR2I end, int width, OUTLINE_MODE tracemode, void * aData)"""
8984 return _pcbnew.PLOTTER_ThickSegment(self, start, end, width, tracemode, aData)
8985
8986 def ThickArc(self, *args):
8987 r"""
8988 ThickArc(PLOTTER self, EDA_SHAPE aArcShape, OUTLINE_MODE aTraceMode, void * aData)
8989 ThickArc(PLOTTER self, VECTOR2D const & aCentre, EDA_ANGLE aStAngle, EDA_ANGLE aAngle, double aRadius, int aWidth, OUTLINE_MODE aTraceMode, void * aData)
8990 """
8991 return _pcbnew.PLOTTER_ThickArc(self, *args)
8992
8993 def ThickRect(self, p1, p2, width, tracemode, aData):
8994 r"""ThickRect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, int width, OUTLINE_MODE tracemode, void * aData)"""
8995 return _pcbnew.PLOTTER_ThickRect(self, p1, p2, width, tracemode, aData)
8996
8997 def ThickCircle(self, pos, diametre, width, tracemode, aData):
8998 r"""ThickCircle(PLOTTER self, VECTOR2I pos, int diametre, int width, OUTLINE_MODE tracemode, void * aData)"""
8999 return _pcbnew.PLOTTER_ThickCircle(self, pos, diametre, width, tracemode, aData)
9000
9001 def FilledCircle(self, pos, diametre, tracemode, aData):
9002 r"""FilledCircle(PLOTTER self, VECTOR2I pos, int diametre, OUTLINE_MODE tracemode, void * aData)"""
9003 return _pcbnew.PLOTTER_FilledCircle(self, pos, diametre, tracemode, aData)
9004
9005 def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData):
9006 r"""FlashPadCircle(PLOTTER self, VECTOR2I aPadPos, int aDiameter, OUTLINE_MODE aTraceMode, void * aData)"""
9007 return _pcbnew.PLOTTER_FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
9008
9009 def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
9010 r"""FlashPadOval(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9011 return _pcbnew.PLOTTER_FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
9012
9013 def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
9014 r"""FlashPadRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9015 return _pcbnew.PLOTTER_FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
9016
9017 def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData):
9018 r"""FlashPadRoundRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, int aCornerRadius, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9019 return _pcbnew.PLOTTER_FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
9020
9021 def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData):
9022 r"""FlashPadCustom(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, SHAPE_POLY_SET aPolygons, OUTLINE_MODE aTraceMode, void * aData)"""
9023 return _pcbnew.PLOTTER_FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
9024
9025 def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData):
9026 r"""FlashPadTrapez(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aCorners, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9027 return _pcbnew.PLOTTER_FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
9028
9029 def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData):
9030 r"""FlashRegularPolygon(PLOTTER self, VECTOR2I aShapePos, int aDiameter, int aCornerCount, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9031 return _pcbnew.PLOTTER_FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
9032
9033 def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData=None):
9034 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)"""
9035 return _pcbnew.PLOTTER_Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData)
9036
9037 def PlotText(self, aPos, aColor, aText, aAttributes, aFont, aFontMetrics, aData=None):
9038 r"""PlotText(PLOTTER self, VECTOR2I aPos, COLOR4D aColor, wxString aText, TEXT_ATTRIBUTES aAttributes, KIFONT::FONT * aFont, KIFONT::METRICS const & aFontMetrics, void * aData=None)"""
9039 return _pcbnew.PLOTTER_PlotText(self, aPos, aColor, aText, aAttributes, aFont, aFontMetrics, aData)
9040
9041 def HyperlinkBox(self, aBox, aDestinationURL):
9042 r"""HyperlinkBox(PLOTTER self, BOX2I aBox, wxString aDestinationURL)"""
9043 return _pcbnew.PLOTTER_HyperlinkBox(self, aBox, aDestinationURL)
9044
9045 def HyperlinkMenu(self, aBox, aDestURLs):
9046 r"""HyperlinkMenu(PLOTTER self, BOX2I aBox, std::vector< wxString,std::allocator< wxString > > const & aDestURLs)"""
9047 return _pcbnew.PLOTTER_HyperlinkMenu(self, aBox, aDestURLs)
9048
9049 def Bookmark(self, *args):
9050 r"""Bookmark(PLOTTER self, BOX2I aBox, wxString aName, wxString aGroupName=wxEmptyString)"""
9051 return _pcbnew.PLOTTER_Bookmark(self, *args)
9052 MARKER_COUNT = _pcbnew.PLOTTER_MARKER_COUNT
9053
9054
9055 def Marker(self, position, diametre, aShapeId):
9056 r"""Marker(PLOTTER self, VECTOR2I position, int diametre, unsigned int aShapeId)"""
9057 return _pcbnew.PLOTTER_Marker(self, position, diametre, aShapeId)
9058
9059 def SetLayerPolarity(self, aPositive):
9060 r"""SetLayerPolarity(PLOTTER self, bool aPositive)"""
9061 return _pcbnew.PLOTTER_SetLayerPolarity(self, aPositive)
9062
9063 def SetTextMode(self, mode):
9064 r"""SetTextMode(PLOTTER self, PLOT_TEXT_MODE mode)"""
9065 return _pcbnew.PLOTTER_SetTextMode(self, mode)
9066
9067 def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False):
9068 r"""SetGerberCoordinatesFormat(PLOTTER self, int aResolution, bool aUseInches=False)"""
9069 return _pcbnew.PLOTTER_SetGerberCoordinatesFormat(self, aResolution, aUseInches)
9070
9071 def SetSvgCoordinatesFormat(self, aPrecision):
9072 r"""SetSvgCoordinatesFormat(PLOTTER self, unsigned int aPrecision)"""
9073 return _pcbnew.PLOTTER_SetSvgCoordinatesFormat(self, aPrecision)
9074
9075 def StartBlock(self, aData):
9076 r"""StartBlock(PLOTTER self, void * aData)"""
9077 return _pcbnew.PLOTTER_StartBlock(self, aData)
9078
9079 def EndBlock(self, aData):
9080 r"""EndBlock(PLOTTER self, void * aData)"""
9081 return _pcbnew.PLOTTER_EndBlock(self, aData)
9082
9084 r"""GetPlotOffsetUserUnits(PLOTTER self) -> VECTOR2I"""
9085 return _pcbnew.PLOTTER_GetPlotOffsetUserUnits(self)
9086
9087# Register PLOTTER in _pcbnew:
9088_pcbnew.PLOTTER_swigregister(PLOTTER)
9089
9090
9092 r"""PlotDrawingSheet(PLOTTER plotter, PROJECT const * aProject, TITLE_BLOCK aTitleBlock, PAGE_INFO const & aPageInfo, MAP_STRING_STRING aProperties, wxString aSheetNumber, int aSheetCount, wxString aSheetName, wxString aSheetPath, wxString aFilename, COLOR4D aColor=COLOR4D::UNSPECIFIED, bool aIsFirstPage=True)"""
9093 return _pcbnew.PlotDrawingSheet(*args)
9094
9096 r"""GetDefaultPlotExtension(PLOT_FORMAT aFormat) -> wxString"""
9097 return _pcbnew.GetDefaultPlotExtension(aFormat)
9099 r"""Proxy of C++ D356_RECORD class."""
9100
9101 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9102 __repr__ = _swig_repr
9103 smd = property(_pcbnew.D356_RECORD_smd_get, _pcbnew.D356_RECORD_smd_set, doc=r"""smd : bool""")
9104 hole = property(_pcbnew.D356_RECORD_hole_get, _pcbnew.D356_RECORD_hole_set, doc=r"""hole : bool""")
9105 netname = property(_pcbnew.D356_RECORD_netname_get, _pcbnew.D356_RECORD_netname_set, doc=r"""netname : wxString""")
9106 refdes = property(_pcbnew.D356_RECORD_refdes_get, _pcbnew.D356_RECORD_refdes_set, doc=r"""refdes : wxString""")
9107 pin = property(_pcbnew.D356_RECORD_pin_get, _pcbnew.D356_RECORD_pin_set, doc=r"""pin : wxString""")
9108 midpoint = property(_pcbnew.D356_RECORD_midpoint_get, _pcbnew.D356_RECORD_midpoint_set, doc=r"""midpoint : bool""")
9109 drill = property(_pcbnew.D356_RECORD_drill_get, _pcbnew.D356_RECORD_drill_set, doc=r"""drill : int""")
9110 mechanical = property(_pcbnew.D356_RECORD_mechanical_get, _pcbnew.D356_RECORD_mechanical_set, doc=r"""mechanical : bool""")
9111 access = property(_pcbnew.D356_RECORD_access_get, _pcbnew.D356_RECORD_access_set, doc=r"""access : int""")
9112 soldermask = property(_pcbnew.D356_RECORD_soldermask_get, _pcbnew.D356_RECORD_soldermask_set, doc=r"""soldermask : int""")
9113 x_location = property(_pcbnew.D356_RECORD_x_location_get, _pcbnew.D356_RECORD_x_location_set, doc=r"""x_location : int""")
9114 y_location = property(_pcbnew.D356_RECORD_y_location_get, _pcbnew.D356_RECORD_y_location_set, doc=r"""y_location : int""")
9115 x_size = property(_pcbnew.D356_RECORD_x_size_get, _pcbnew.D356_RECORD_x_size_set, doc=r"""x_size : int""")
9116 y_size = property(_pcbnew.D356_RECORD_y_size_get, _pcbnew.D356_RECORD_y_size_set, doc=r"""y_size : int""")
9117 rotation = property(_pcbnew.D356_RECORD_rotation_get, _pcbnew.D356_RECORD_rotation_set, doc=r"""rotation : int""")
9118
9119 def __init__(self):
9120 r"""__init__(D356_RECORD self) -> D356_RECORD"""
9121 _pcbnew.D356_RECORD_swiginit(self, _pcbnew.new_D356_RECORD())
9122 __swig_destroy__ = _pcbnew.delete_D356_RECORD
9123
9124# Register D356_RECORD in _pcbnew:
9125_pcbnew.D356_RECORD_swigregister(D356_RECORD)
9126
9128 r"""Proxy of C++ IPC356D_WRITER class."""
9129
9130 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9131 __repr__ = _swig_repr
9132
9133 def __init__(self, aPcb, aParent=None):
9134 r"""__init__(IPC356D_WRITER self, BOARD aPcb, wxWindow * aParent=None) -> IPC356D_WRITER"""
9135 _pcbnew.IPC356D_WRITER_swiginit(self, _pcbnew.new_IPC356D_WRITER(aPcb, aParent))
9136 __swig_destroy__ = _pcbnew.delete_IPC356D_WRITER
9137
9138 def Write(self, aFilename):
9139 r"""Write(IPC356D_WRITER self, wxString aFilename)"""
9140 return _pcbnew.IPC356D_WRITER_Write(self, aFilename)
9141
9142# Register IPC356D_WRITER in _pcbnew:
9143_pcbnew.IPC356D_WRITER_swigregister(IPC356D_WRITER)
9144
9146 r"""Proxy of C++ PLACE_FILE_EXPORTER class."""
9147
9148 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9149 __repr__ = _swig_repr
9150
9151 def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX):
9152 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"""
9153 _pcbnew.PLACE_FILE_EXPORTER_swiginit(self, _pcbnew.new_PLACE_FILE_EXPORTER(aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX))
9154
9156 r"""GenPositionData(PLACE_FILE_EXPORTER self) -> string"""
9157 return _pcbnew.PLACE_FILE_EXPORTER_GenPositionData(self)
9158
9159 def GenReportData(self):
9160 r"""GenReportData(PLACE_FILE_EXPORTER self) -> string"""
9161 return _pcbnew.PLACE_FILE_EXPORTER_GenReportData(self)
9162
9164 r"""GetFootprintCount(PLACE_FILE_EXPORTER self) -> int"""
9165 return _pcbnew.PLACE_FILE_EXPORTER_GetFootprintCount(self)
9166
9167 @staticmethod
9169 r"""GetFrontSideName() -> string"""
9170 return _pcbnew.PLACE_FILE_EXPORTER_GetFrontSideName()
9171
9172 @staticmethod
9174 r"""GetBackSideName() -> string"""
9175 return _pcbnew.PLACE_FILE_EXPORTER_GetBackSideName()
9176 __swig_destroy__ = _pcbnew.delete_PLACE_FILE_EXPORTER
9177
9178# Register PLACE_FILE_EXPORTER in _pcbnew:
9179_pcbnew.PLACE_FILE_EXPORTER_swigregister(PLACE_FILE_EXPORTER)
9180
9182 r"""PLACE_FILE_EXPORTER_GetFrontSideName() -> string"""
9183 return _pcbnew.PLACE_FILE_EXPORTER_GetFrontSideName()
9184
9186 r"""PLACE_FILE_EXPORTER_GetBackSideName() -> string"""
9187 return _pcbnew.PLACE_FILE_EXPORTER_GetBackSideName()
9188
9190 r"""Proxy of C++ EXPORTER_VRML class."""
9191
9192 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9193 __repr__ = _swig_repr
9194
9195 def __init__(self, aBoard):
9196 r"""__init__(EXPORTER_VRML self, BOARD aBoard) -> EXPORTER_VRML"""
9197 _pcbnew.EXPORTER_VRML_swiginit(self, _pcbnew.new_EXPORTER_VRML(aBoard))
9198 __swig_destroy__ = _pcbnew.delete_EXPORTER_VRML
9199
9200 def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
9201 r"""ExportVRML_File(EXPORTER_VRML self, PROJECT * aProject, wxString aMessages, wxString aFullFileName, double aMMtoWRMLunit, bool aExport3DFiles, bool aUseRelativePaths, wxString a3D_Subdir, double aXRef, double aYRef) -> bool"""
9202 return _pcbnew.EXPORTER_VRML_ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
9203
9204# Register EXPORTER_VRML in _pcbnew:
9205_pcbnew.EXPORTER_VRML_swigregister(EXPORTER_VRML)
9206
9207USE_ATTRIB_FOR_HOLES = _pcbnew.USE_ATTRIB_FOR_HOLES
9208
9209HOLE_ATTRIBUTE_HOLE_UNKNOWN = _pcbnew.HOLE_ATTRIBUTE_HOLE_UNKNOWN
9210
9211HOLE_ATTRIBUTE_HOLE_VIA_THROUGH = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_THROUGH
9212
9213HOLE_ATTRIBUTE_HOLE_VIA_BURIED = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_BURIED
9214
9215HOLE_ATTRIBUTE_HOLE_PAD = _pcbnew.HOLE_ATTRIBUTE_HOLE_PAD
9216
9217HOLE_ATTRIBUTE_HOLE_MECHANICAL = _pcbnew.HOLE_ATTRIBUTE_HOLE_MECHANICAL
9218
9220 r"""Proxy of C++ DRILL_TOOL class."""
9221
9222 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9223 __repr__ = _swig_repr
9224 m_Diameter = property(_pcbnew.DRILL_TOOL_m_Diameter_get, _pcbnew.DRILL_TOOL_m_Diameter_set, doc=r"""m_Diameter : int""")
9225 m_TotalCount = property(_pcbnew.DRILL_TOOL_m_TotalCount_get, _pcbnew.DRILL_TOOL_m_TotalCount_set, doc=r"""m_TotalCount : int""")
9226 m_OvalCount = property(_pcbnew.DRILL_TOOL_m_OvalCount_get, _pcbnew.DRILL_TOOL_m_OvalCount_set, doc=r"""m_OvalCount : int""")
9227 m_Hole_NotPlated = property(_pcbnew.DRILL_TOOL_m_Hole_NotPlated_get, _pcbnew.DRILL_TOOL_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
9228 m_HoleAttribute = property(_pcbnew.DRILL_TOOL_m_HoleAttribute_get, _pcbnew.DRILL_TOOL_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
9229
9230 def __init__(self, aDiameter, a_NotPlated):
9231 r"""__init__(DRILL_TOOL self, int aDiameter, bool a_NotPlated) -> DRILL_TOOL"""
9232 _pcbnew.DRILL_TOOL_swiginit(self, _pcbnew.new_DRILL_TOOL(aDiameter, a_NotPlated))
9233 __swig_destroy__ = _pcbnew.delete_DRILL_TOOL
9234
9235# Register DRILL_TOOL in _pcbnew:
9236_pcbnew.DRILL_TOOL_swigregister(DRILL_TOOL)
9237
9239 r"""Proxy of C++ HOLE_INFO class."""
9240
9241 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9242 __repr__ = _swig_repr
9243
9244 def __init__(self):
9245 r"""__init__(HOLE_INFO self) -> HOLE_INFO"""
9246 _pcbnew.HOLE_INFO_swiginit(self, _pcbnew.new_HOLE_INFO())
9247 m_ItemParent = property(_pcbnew.HOLE_INFO_m_ItemParent_get, _pcbnew.HOLE_INFO_m_ItemParent_set, doc=r"""m_ItemParent : p.BOARD_ITEM""")
9248 m_Hole_Diameter = property(_pcbnew.HOLE_INFO_m_Hole_Diameter_get, _pcbnew.HOLE_INFO_m_Hole_Diameter_set, doc=r"""m_Hole_Diameter : int""")
9249 m_Tool_Reference = property(_pcbnew.HOLE_INFO_m_Tool_Reference_get, _pcbnew.HOLE_INFO_m_Tool_Reference_set, doc=r"""m_Tool_Reference : int""")
9250 m_Hole_Size = property(_pcbnew.HOLE_INFO_m_Hole_Size_get, _pcbnew.HOLE_INFO_m_Hole_Size_set, doc=r"""m_Hole_Size : VECTOR2I""")
9251 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""")
9252 m_Hole_Shape = property(_pcbnew.HOLE_INFO_m_Hole_Shape_get, _pcbnew.HOLE_INFO_m_Hole_Shape_set, doc=r"""m_Hole_Shape : int""")
9253 m_Hole_Pos = property(_pcbnew.HOLE_INFO_m_Hole_Pos_get, _pcbnew.HOLE_INFO_m_Hole_Pos_set, doc=r"""m_Hole_Pos : VECTOR2I""")
9254 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""")
9255 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""")
9256 m_Hole_NotPlated = property(_pcbnew.HOLE_INFO_m_Hole_NotPlated_get, _pcbnew.HOLE_INFO_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
9257 m_HoleAttribute = property(_pcbnew.HOLE_INFO_m_HoleAttribute_get, _pcbnew.HOLE_INFO_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
9258 __swig_destroy__ = _pcbnew.delete_HOLE_INFO
9259
9260# Register HOLE_INFO in _pcbnew:
9261_pcbnew.HOLE_INFO_swigregister(HOLE_INFO)
9262
9264 r"""Proxy of C++ DRILL_PRECISION class."""
9265
9266 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9267 __repr__ = _swig_repr
9268
9269 def __init__(self, l=2, r=4):
9270 r"""__init__(DRILL_PRECISION self, int l=2, int r=4) -> DRILL_PRECISION"""
9271 _pcbnew.DRILL_PRECISION_swiginit(self, _pcbnew.new_DRILL_PRECISION(l, r))
9272
9274 r"""GetPrecisionString(DRILL_PRECISION self) -> wxString"""
9275 return _pcbnew.DRILL_PRECISION_GetPrecisionString(self)
9276 m_Lhs = property(_pcbnew.DRILL_PRECISION_m_Lhs_get, _pcbnew.DRILL_PRECISION_m_Lhs_set, doc=r"""m_Lhs : int""")
9277 m_Rhs = property(_pcbnew.DRILL_PRECISION_m_Rhs_get, _pcbnew.DRILL_PRECISION_m_Rhs_set, doc=r"""m_Rhs : int""")
9278 __swig_destroy__ = _pcbnew.delete_DRILL_PRECISION
9279
9280# Register DRILL_PRECISION in _pcbnew:
9281_pcbnew.DRILL_PRECISION_swigregister(DRILL_PRECISION)
9282
9284 r"""Proxy of C++ GENDRILL_WRITER_BASE class."""
9285
9286 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9287
9288 def __init__(self, *args, **kwargs):
9289 raise AttributeError("No constructor defined")
9290 __repr__ = _swig_repr
9291 DECIMAL_FORMAT = _pcbnew.GENDRILL_WRITER_BASE_DECIMAL_FORMAT
9292
9293 SUPPRESS_LEADING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_LEADING
9294
9295 SUPPRESS_TRAILING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_TRAILING
9296
9297 KEEP_ZEROS = _pcbnew.GENDRILL_WRITER_BASE_KEEP_ZEROS
9298
9299 PTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_PTH_FILE
9300
9301 NPTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_NPTH_FILE
9302
9303 MIXED_FILE = _pcbnew.GENDRILL_WRITER_BASE_MIXED_FILE
9304
9305 __swig_destroy__ = _pcbnew.delete_GENDRILL_WRITER_BASE
9306
9307 def SetMergeOption(self, aMerge):
9308 r"""SetMergeOption(GENDRILL_WRITER_BASE self, bool aMerge)"""
9309 return _pcbnew.GENDRILL_WRITER_BASE_SetMergeOption(self, aMerge)
9310
9311 def GetOffset(self):
9312 r"""GetOffset(GENDRILL_WRITER_BASE self) -> VECTOR2I"""
9313 return _pcbnew.GENDRILL_WRITER_BASE_GetOffset(self)
9314
9315 def SetPageInfo(self, aPageInfo):
9316 r"""SetPageInfo(GENDRILL_WRITER_BASE self, PAGE_INFO const * aPageInfo)"""
9317 return _pcbnew.GENDRILL_WRITER_BASE_SetPageInfo(self, aPageInfo)
9318
9319 def SetMapFileFormat(self, aMapFmt):
9320 r"""SetMapFileFormat(GENDRILL_WRITER_BASE self, PLOT_FORMAT aMapFmt)"""
9321 return _pcbnew.GENDRILL_WRITER_BASE_SetMapFileFormat(self, aMapFmt)
9322
9323 def CreateMapFilesSet(self, aPlotDirectory, aReporter=None):
9324 r"""CreateMapFilesSet(GENDRILL_WRITER_BASE self, wxString aPlotDirectory, REPORTER * aReporter=None) -> bool"""
9325 return _pcbnew.GENDRILL_WRITER_BASE_CreateMapFilesSet(self, aPlotDirectory, aReporter)
9326
9327 def GenDrillReportFile(self, aFullFileName):
9328 r"""GenDrillReportFile(GENDRILL_WRITER_BASE self, wxString aFullFileName) -> bool"""
9329 return _pcbnew.GENDRILL_WRITER_BASE_GenDrillReportFile(self, aFullFileName)
9330
9332 r"""GetDrillFileExt(GENDRILL_WRITER_BASE self) -> wxString"""
9333 return _pcbnew.GENDRILL_WRITER_BASE_GetDrillFileExt(self)
9334
9335# Register GENDRILL_WRITER_BASE in _pcbnew:
9336_pcbnew.GENDRILL_WRITER_BASE_swigregister(GENDRILL_WRITER_BASE)
9337
9339 r"""Proxy of C++ EXCELLON_WRITER class."""
9340
9341 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9342 __repr__ = _swig_repr
9343
9344 def __init__(self, aPcb):
9345 r"""__init__(EXCELLON_WRITER self, BOARD aPcb) -> EXCELLON_WRITER"""
9346 _pcbnew.EXCELLON_WRITER_swiginit(self, _pcbnew.new_EXCELLON_WRITER(aPcb))
9347 __swig_destroy__ = _pcbnew.delete_EXCELLON_WRITER
9348
9349 def GetOffset(self):
9350 r"""GetOffset(EXCELLON_WRITER self) -> VECTOR2I"""
9351 return _pcbnew.EXCELLON_WRITER_GetOffset(self)
9352
9353 def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles):
9354 r"""SetRouteModeForOvalHoles(EXCELLON_WRITER self, bool aUseRouteModeForOvalHoles)"""
9355 return _pcbnew.EXCELLON_WRITER_SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
9356
9357 def SetFormat(self, *args):
9358 r"""SetFormat(EXCELLON_WRITER self, bool aMetric, GENDRILL_WRITER_BASE::ZEROS_FMT aZerosFmt=DECIMAL_FORMAT, int aLeftDigits=0, int aRightDigits=0)"""
9359 return _pcbnew.EXCELLON_WRITER_SetFormat(self, *args)
9360
9361 def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH):
9362 r"""SetOptions(EXCELLON_WRITER self, bool aMirror, bool aMinimalHeader, VECTOR2I aOffset, bool aMerge_PTH_NPTH)"""
9363 return _pcbnew.EXCELLON_WRITER_SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
9364
9365 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
9366 r"""CreateDrillandMapFilesSet(EXCELLON_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
9367 return _pcbnew.EXCELLON_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
9368
9369# Register EXCELLON_WRITER in _pcbnew:
9370_pcbnew.EXCELLON_WRITER_swigregister(EXCELLON_WRITER)
9371
9373 r"""Proxy of C++ GERBER_WRITER class."""
9374
9375 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9376 __repr__ = _swig_repr
9377
9378 def __init__(self, aPcb):
9379 r"""__init__(GERBER_WRITER self, BOARD aPcb) -> GERBER_WRITER"""
9380 _pcbnew.GERBER_WRITER_swiginit(self, _pcbnew.new_GERBER_WRITER(aPcb))
9381 __swig_destroy__ = _pcbnew.delete_GERBER_WRITER
9382
9383 def SetFormat(self, aRightDigits=6):
9384 r"""SetFormat(GERBER_WRITER self, int aRightDigits=6)"""
9385 return _pcbnew.GERBER_WRITER_SetFormat(self, aRightDigits)
9386
9387 def SetOptions(self, aOffset):
9388 r"""SetOptions(GERBER_WRITER self, VECTOR2I aOffset)"""
9389 return _pcbnew.GERBER_WRITER_SetOptions(self, aOffset)
9390
9391 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
9392 r"""CreateDrillandMapFilesSet(GERBER_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
9393 return _pcbnew.GERBER_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
9394
9395# Register GERBER_WRITER in _pcbnew:
9396_pcbnew.GERBER_WRITER_swigregister(GERBER_WRITER)
9397
9398SIDE_NONE = _pcbnew.SIDE_NONE
9399
9400SIDE_TOP = _pcbnew.SIDE_TOP
9401
9402SIDE_BOTTOM = _pcbnew.SIDE_BOTTOM
9403
9404SIDE_BOTH = _pcbnew.SIDE_BOTH
9405
9407 r"""Proxy of C++ JOBFILE_PARAMS class."""
9408
9409 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9410 __repr__ = _swig_repr
9411 m_GerberFileList = property(_pcbnew.JOBFILE_PARAMS_m_GerberFileList_get, _pcbnew.JOBFILE_PARAMS_m_GerberFileList_set, doc=r"""m_GerberFileList : wxArrayString""")
9412 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)>)>""")
9413
9414 def __init__(self):
9415 r"""__init__(JOBFILE_PARAMS self) -> JOBFILE_PARAMS"""
9416 _pcbnew.JOBFILE_PARAMS_swiginit(self, _pcbnew.new_JOBFILE_PARAMS())
9417 __swig_destroy__ = _pcbnew.delete_JOBFILE_PARAMS
9418
9419# Register JOBFILE_PARAMS in _pcbnew:
9420_pcbnew.JOBFILE_PARAMS_swigregister(JOBFILE_PARAMS)
9421
9423 r"""Proxy of C++ GERBER_JOBFILE_WRITER class."""
9424
9425 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9426 __repr__ = _swig_repr
9427
9428 def __init__(self, aPcb, aReporter=None):
9429 r"""__init__(GERBER_JOBFILE_WRITER self, BOARD aPcb, REPORTER * aReporter=None) -> GERBER_JOBFILE_WRITER"""
9430 _pcbnew.GERBER_JOBFILE_WRITER_swiginit(self, _pcbnew.new_GERBER_JOBFILE_WRITER(aPcb, aReporter))
9431 __swig_destroy__ = _pcbnew.delete_GERBER_JOBFILE_WRITER
9432
9433 def AddGbrFile(self, aLayer, aFilename):
9434 r"""AddGbrFile(GERBER_JOBFILE_WRITER self, PCB_LAYER_ID aLayer, wxString aFilename)"""
9435 return _pcbnew.GERBER_JOBFILE_WRITER_AddGbrFile(self, aLayer, aFilename)
9436
9437 def CreateJobFile(self, aFullFilename):
9438 r"""CreateJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9439 return _pcbnew.GERBER_JOBFILE_WRITER_CreateJobFile(self, aFullFilename)
9440
9441 def WriteJSONJobFile(self, aFullFilename):
9442 r"""WriteJSONJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9443 return _pcbnew.GERBER_JOBFILE_WRITER_WriteJSONJobFile(self, aFullFilename)
9444
9445# Register GERBER_JOBFILE_WRITER in _pcbnew:
9446_pcbnew.GERBER_JOBFILE_WRITER_swigregister(GERBER_JOBFILE_WRITER)
9447
9448ROOM_FOR_KICADMANAGER = _pcbnew.ROOM_FOR_KICADMANAGER
9449
9450ROOM_FOR_3D_VIEWER = _pcbnew.ROOM_FOR_3D_VIEWER
9451
9452ROOM_FOR_PANEL_PREV_MODEL = _pcbnew.ROOM_FOR_PANEL_PREV_MODEL
9453
9454DEFAULT_FILE_HISTORY_SIZE = _pcbnew.DEFAULT_FILE_HISTORY_SIZE
9455
9456MAX_FILE_HISTORY_SIZE = _pcbnew.MAX_FILE_HISTORY_SIZE
9457
9458ID_APPEND_PROJECT = _pcbnew.ID_APPEND_PROJECT
9459
9460ID_LOAD_FILE = _pcbnew.ID_LOAD_FILE
9461
9462ID_NEW_BOARD = _pcbnew.ID_NEW_BOARD
9463
9464ID_SAVE_BOARD = _pcbnew.ID_SAVE_BOARD
9465
9466ID_SAVE_BOARD_AS = _pcbnew.ID_SAVE_BOARD_AS
9467
9468ID_AUTO_SAVE_TIMER = _pcbnew.ID_AUTO_SAVE_TIMER
9469
9470ID_FILE = _pcbnew.ID_FILE
9471
9472ID_FILE1 = _pcbnew.ID_FILE1
9473
9474ID_FILEMAX = _pcbnew.ID_FILEMAX
9475
9476ID_FILE_LIST_EMPTY = _pcbnew.ID_FILE_LIST_EMPTY
9477
9478ID_FILE_LIST_CLEAR = _pcbnew.ID_FILE_LIST_CLEAR
9479
9480ID_PREFERENCES_RESET_PANEL = _pcbnew.ID_PREFERENCES_RESET_PANEL
9481
9482ID_GEN_PLOT = _pcbnew.ID_GEN_PLOT
9483
9484ID_GEN_PLOT_PS = _pcbnew.ID_GEN_PLOT_PS
9485
9486ID_GEN_PLOT_HPGL = _pcbnew.ID_GEN_PLOT_HPGL
9487
9488ID_GEN_PLOT_GERBER = _pcbnew.ID_GEN_PLOT_GERBER
9489
9490ID_GEN_PLOT_SVG = _pcbnew.ID_GEN_PLOT_SVG
9491
9492ID_GEN_PLOT_DXF = _pcbnew.ID_GEN_PLOT_DXF
9493
9494ID_GEN_PLOT_PDF = _pcbnew.ID_GEN_PLOT_PDF
9495
9496ID_H_TOOLBAR = _pcbnew.ID_H_TOOLBAR
9497
9498ID_V_TOOLBAR = _pcbnew.ID_V_TOOLBAR
9499
9500ID_OPT_TOOLBAR = _pcbnew.ID_OPT_TOOLBAR
9501
9502ID_AUX_TOOLBAR = _pcbnew.ID_AUX_TOOLBAR
9503
9504ID_LANGUAGE_CHOICE = _pcbnew.ID_LANGUAGE_CHOICE
9505
9506ID_LANGUAGE_DANISH = _pcbnew.ID_LANGUAGE_DANISH
9507
9508ID_LANGUAGE_DEFAULT = _pcbnew.ID_LANGUAGE_DEFAULT
9509
9510ID_LANGUAGE_ENGLISH = _pcbnew.ID_LANGUAGE_ENGLISH
9511
9512ID_LANGUAGE_FRENCH = _pcbnew.ID_LANGUAGE_FRENCH
9513
9514ID_LANGUAGE_FINNISH = _pcbnew.ID_LANGUAGE_FINNISH
9515
9516ID_LANGUAGE_SPANISH = _pcbnew.ID_LANGUAGE_SPANISH
9517
9518ID_LANGUAGE_SPANISH_MEXICAN = _pcbnew.ID_LANGUAGE_SPANISH_MEXICAN
9519
9520ID_LANGUAGE_GERMAN = _pcbnew.ID_LANGUAGE_GERMAN
9521
9522ID_LANGUAGE_GREEK = _pcbnew.ID_LANGUAGE_GREEK
9523
9524ID_LANGUAGE_NORWEGIAN = _pcbnew.ID_LANGUAGE_NORWEGIAN
9525
9526ID_LANGUAGE_RUSSIAN = _pcbnew.ID_LANGUAGE_RUSSIAN
9527
9528ID_LANGUAGE_PORTUGUESE = _pcbnew.ID_LANGUAGE_PORTUGUESE
9529
9530ID_LANGUAGE_PORTUGUESE_BRAZILIAN = _pcbnew.ID_LANGUAGE_PORTUGUESE_BRAZILIAN
9531
9532ID_LANGUAGE_TURKISH = _pcbnew.ID_LANGUAGE_TURKISH
9533
9534ID_LANGUAGE_INDONESIAN = _pcbnew.ID_LANGUAGE_INDONESIAN
9535
9536ID_LANGUAGE_ITALIAN = _pcbnew.ID_LANGUAGE_ITALIAN
9537
9538ID_LANGUAGE_SLOVENIAN = _pcbnew.ID_LANGUAGE_SLOVENIAN
9539
9540ID_LANGUAGE_SLOVAK = _pcbnew.ID_LANGUAGE_SLOVAK
9541
9542ID_LANGUAGE_HUNGARIAN = _pcbnew.ID_LANGUAGE_HUNGARIAN
9543
9544ID_LANGUAGE_POLISH = _pcbnew.ID_LANGUAGE_POLISH
9545
9546ID_LANGUAGE_CZECH = _pcbnew.ID_LANGUAGE_CZECH
9547
9548ID_LANGUAGE_KOREAN = _pcbnew.ID_LANGUAGE_KOREAN
9549
9550ID_LANGUAGE_CATALAN = _pcbnew.ID_LANGUAGE_CATALAN
9551
9552ID_LANGUAGE_CHINESE_SIMPLIFIED = _pcbnew.ID_LANGUAGE_CHINESE_SIMPLIFIED
9553
9554ID_LANGUAGE_CHINESE_TRADITIONAL = _pcbnew.ID_LANGUAGE_CHINESE_TRADITIONAL
9555
9556ID_LANGUAGE_DUTCH = _pcbnew.ID_LANGUAGE_DUTCH
9557
9558ID_LANGUAGE_JAPANESE = _pcbnew.ID_LANGUAGE_JAPANESE
9559
9560ID_LANGUAGE_BULGARIAN = _pcbnew.ID_LANGUAGE_BULGARIAN
9561
9562ID_LANGUAGE_LATVIAN = _pcbnew.ID_LANGUAGE_LATVIAN
9563
9564ID_LANGUAGE_LITHUANIAN = _pcbnew.ID_LANGUAGE_LITHUANIAN
9565
9566ID_LANGUAGE_VIETNAMESE = _pcbnew.ID_LANGUAGE_VIETNAMESE
9567
9568ID_LANGUAGE_SERBIAN = _pcbnew.ID_LANGUAGE_SERBIAN
9569
9570ID_LANGUAGE_THAI = _pcbnew.ID_LANGUAGE_THAI
9571
9572ID_LANGUAGE_SWEDISH = _pcbnew.ID_LANGUAGE_SWEDISH
9573
9574ID_LANGUAGE_UKRANIAN = _pcbnew.ID_LANGUAGE_UKRANIAN
9575
9576ID_LANGUAGE_CHOICE_END = _pcbnew.ID_LANGUAGE_CHOICE_END
9577
9578ID_ON_ZOOM_SELECT = _pcbnew.ID_ON_ZOOM_SELECT
9579
9580ID_ON_GRID_SELECT = _pcbnew.ID_ON_GRID_SELECT
9581
9582ID_POPUP_ZOOM_LEVEL_START = _pcbnew.ID_POPUP_ZOOM_LEVEL_START
9583
9584ID_POPUP_ZOOM_LEVEL_END = _pcbnew.ID_POPUP_ZOOM_LEVEL_END
9585
9586ID_POPUP_GRID_START = _pcbnew.ID_POPUP_GRID_START
9587
9588ID_POPUP_GRID_END = _pcbnew.ID_POPUP_GRID_END
9589
9590ID_EDA_SOCKET_EVENT_SERV = _pcbnew.ID_EDA_SOCKET_EVENT_SERV
9591
9592ID_EDA_SOCKET_EVENT = _pcbnew.ID_EDA_SOCKET_EVENT
9593
9594ID_KICAD_MANAGER_START = _pcbnew.ID_KICAD_MANAGER_START
9595
9596ID_KICAD_MANAGER_END = _pcbnew.ID_KICAD_MANAGER_END
9597
9598ID_KICAD_3D_VIEWER_START = _pcbnew.ID_KICAD_3D_VIEWER_START
9599
9600ID_KICAD_3D_VIEWER_END = _pcbnew.ID_KICAD_3D_VIEWER_END
9601
9602ID_KICAD_PANEL_PREV_MODEL_START = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_START
9603
9604ID_KICAD_PANEL_PREV_MODEL_END = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_END
9605
9606ID_POPUP_MENU_START = _pcbnew.ID_POPUP_MENU_START
9607
9608ID_POPUP_MENU_END = _pcbnew.ID_POPUP_MENU_END
9609
9610ID_END_LIST = _pcbnew.ID_END_LIST
9611
9612
9614 r"""GetBoard() -> BOARD"""
9615 return _pcbnew.GetBoard()
9616
9617def LoadBoard(*args):
9618 r"""
9619 LoadBoard(wxString aFileName, PCB_IO_MGR::PCB_FILE_T aFormat) -> BOARD
9620 LoadBoard(wxString aFileName) -> BOARD
9621 """
9622 return _pcbnew.LoadBoard(*args)
9623
9624def NewBoard(aFileName):
9625 r"""NewBoard(wxString aFileName) -> BOARD"""
9626 return _pcbnew.NewBoard(aFileName)
9627
9629 r"""GetSettingsManager() -> SETTINGS_MANAGER"""
9630 return _pcbnew.GetSettingsManager()
9631
9633 r"""CreateEmptyBoard() -> BOARD"""
9634 return _pcbnew.CreateEmptyBoard()
9635
9636def SaveBoard(aFileName, aBoard, aSkipSettings=False):
9637 r"""SaveBoard(wxString aFileName, BOARD aBoard, bool aSkipSettings=False) -> bool"""
9638 return _pcbnew.SaveBoard(aFileName, aBoard, aSkipSettings)
9639
9641 r"""GetFootprintLibraries() -> wxArrayString"""
9642 return _pcbnew.GetFootprintLibraries()
9643
9644def GetFootprints(aNickName):
9645 r"""GetFootprints(wxString aNickName) -> wxArrayString"""
9646 return _pcbnew.GetFootprints(aNickName)
9647
9649 r"""
9650 ExportSpecctraDSN(wxString aFullFilename) -> bool
9651 ExportSpecctraDSN(BOARD aBoard, wxString aFullFilename) -> bool
9652 """
9653 return _pcbnew.ExportSpecctraDSN(*args)
9654
9655def ExportVRML(aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
9656 r"""ExportVRML(wxString aFullFileName, double aMMtoWRMLunit, bool aExport3DFiles, bool aUseRelativePaths, wxString a3D_Subdir, double aXRef, double aYRef) -> bool"""
9657 return _pcbnew.ExportVRML(aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
9658
9660 r"""
9661 ImportSpecctraSES(wxString aFullFilename) -> bool
9662 ImportSpecctraSES(BOARD aBoard, wxString aFullFilename) -> bool
9663 """
9664 return _pcbnew.ImportSpecctraSES(*args)
9665
9667 r"""ExportFootprintsToLibrary(bool aStoreInNewLib, wxString aLibName=wxEmptyString, wxString aLibPath=None) -> bool"""
9668 return _pcbnew.ExportFootprintsToLibrary(*args)
9669
9671 r"""Refresh()"""
9672 return _pcbnew.Refresh()
9673
9675 r"""UpdateUserInterface()"""
9676 return _pcbnew.UpdateUserInterface()
9677
9679 r"""GetUserUnits() -> int"""
9680 return _pcbnew.GetUserUnits()
9681
9683 r"""GetCurrentSelection() -> DRAWINGS"""
9684 return _pcbnew.GetCurrentSelection()
9685
9686def FocusOnItem(aItem, aLayer=UNDEFINED_LAYER):
9687 r"""FocusOnItem(BOARD_ITEM aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
9688 return _pcbnew.FocusOnItem(aItem, aLayer)
9689
9691 r"""IsActionRunning() -> bool"""
9692 return _pcbnew.IsActionRunning()
9693
9694def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors):
9695 r"""WriteDRCReport(BOARD aBoard, wxString aFileName, EDA_UNITS aUnits, bool aReportAllTrackErrors) -> bool"""
9696 return _pcbnew.WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
9697
9699 r"""GetLanguage() -> wxString"""
9700 return _pcbnew.GetLanguage()
9701ZLO_NONE = _pcbnew.ZLO_NONE
9702
9703ZLO_FORCE_FLASHED = _pcbnew.ZLO_FORCE_FLASHED
9704
9705ZLO_FORCE_NO_ZONE_CONNECTION = _pcbnew.ZLO_FORCE_NO_ZONE_CONNECTION
9706
9708 r"""Proxy of C++ BOARD_ITEM class."""
9709
9710 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9711
9712 def __init__(self, *args, **kwargs):
9713 raise AttributeError("No constructor defined - class is abstract")
9714 __repr__ = _swig_repr
9715 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM
9716
9717 def SetParentGroup(self, aGroup):
9718 r"""SetParentGroup(BOARD_ITEM self, PCB_GROUP aGroup)"""
9719 return _pcbnew.BOARD_ITEM_SetParentGroup(self, aGroup)
9720
9722 r"""GetParentGroup(BOARD_ITEM self) -> PCB_GROUP"""
9723 return _pcbnew.BOARD_ITEM_GetParentGroup(self)
9724
9725 def GetX(self):
9726 r"""GetX(BOARD_ITEM self) -> int"""
9727 return _pcbnew.BOARD_ITEM_GetX(self)
9728
9729 def GetY(self):
9730 r"""GetY(BOARD_ITEM self) -> int"""
9731 return _pcbnew.BOARD_ITEM_GetY(self)
9732
9733 def GetCenter(self):
9734 r"""GetCenter(BOARD_ITEM self) -> VECTOR2I"""
9735 return _pcbnew.BOARD_ITEM_GetCenter(self)
9736
9737 def SetX(self, aX):
9738 r"""SetX(BOARD_ITEM self, int aX)"""
9739 return _pcbnew.BOARD_ITEM_SetX(self, aX)
9740
9741 def SetY(self, aY):
9742 r"""SetY(BOARD_ITEM self, int aY)"""
9743 return _pcbnew.BOARD_ITEM_SetY(self, aY)
9744
9745 def IsConnected(self):
9746 r"""IsConnected(BOARD_ITEM self) -> bool"""
9747 return _pcbnew.BOARD_ITEM_IsConnected(self)
9748
9749 def Similarity(self, aItem):
9750 r"""Similarity(BOARD_ITEM self, BOARD_ITEM aItem) -> double"""
9751 return _pcbnew.BOARD_ITEM_Similarity(self, aItem)
9752
9753 def __eq__(self, aItem):
9754 r"""__eq__(BOARD_ITEM self, BOARD_ITEM aItem) -> bool"""
9755 return _pcbnew.BOARD_ITEM___eq__(self, aItem)
9756
9758 r"""IsOnCopperLayer(BOARD_ITEM self) -> bool"""
9759 return _pcbnew.BOARD_ITEM_IsOnCopperLayer(self)
9760
9761 def HasHole(self):
9762 r"""HasHole(BOARD_ITEM self) -> bool"""
9763 return _pcbnew.BOARD_ITEM_HasHole(self)
9764
9765 def IsTented(self):
9766 r"""IsTented(BOARD_ITEM self) -> bool"""
9767 return _pcbnew.BOARD_ITEM_IsTented(self)
9768
9769 def GetEffectiveShape(self, *args):
9770 r"""GetEffectiveShape(BOARD_ITEM self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
9771 return _pcbnew.BOARD_ITEM_GetEffectiveShape(self, *args)
9772
9774 r"""GetEffectiveHoleShape(BOARD_ITEM self) -> std::shared_ptr< SHAPE_SEGMENT >"""
9775 return _pcbnew.BOARD_ITEM_GetEffectiveHoleShape(self)
9776
9777 def RunOnChildren(self, aFunction):
9778 r"""RunOnChildren(BOARD_ITEM self, std::function< void (BOARD_ITEM *) > const & aFunction)"""
9779 return _pcbnew.BOARD_ITEM_RunOnChildren(self, aFunction)
9780
9781 def RunOnDescendants(self, aFunction, aDepth=0):
9782 r"""RunOnDescendants(BOARD_ITEM self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
9783 return _pcbnew.BOARD_ITEM_RunOnDescendants(self, aFunction, aDepth)
9784
9785 def GetParent(self):
9786 r"""GetParent(BOARD_ITEM self) -> BOARD_ITEM_CONTAINER"""
9787 return _pcbnew.BOARD_ITEM_GetParent(self)
9788
9790 r"""GetParentFootprint(BOARD_ITEM self) -> FOOTPRINT"""
9791 return _pcbnew.BOARD_ITEM_GetParentFootprint(self)
9792
9794 r"""GetFPRelativePosition(BOARD_ITEM self) -> VECTOR2I"""
9795 return _pcbnew.BOARD_ITEM_GetFPRelativePosition(self)
9796
9797 def SetFPRelativePosition(self, aPos):
9798 r"""SetFPRelativePosition(BOARD_ITEM self, VECTOR2I aPos)"""
9799 return _pcbnew.BOARD_ITEM_SetFPRelativePosition(self, aPos)
9800
9801 def HasLineStroke(self):
9802 r"""HasLineStroke(BOARD_ITEM self) -> bool"""
9803 return _pcbnew.BOARD_ITEM_HasLineStroke(self)
9804
9805 def GetStroke(self):
9806 r"""GetStroke(BOARD_ITEM self) -> STROKE_PARAMS"""
9807 return _pcbnew.BOARD_ITEM_GetStroke(self)
9808
9809 def SetStroke(self, aStroke):
9810 r"""SetStroke(BOARD_ITEM self, STROKE_PARAMS const & aStroke)"""
9811 return _pcbnew.BOARD_ITEM_SetStroke(self, aStroke)
9812
9814 r"""GetFontMetrics(BOARD_ITEM self) -> KIFONT::METRICS const &"""
9815 return _pcbnew.BOARD_ITEM_GetFontMetrics(self)
9816
9817 def GetLayer(self):
9818 r"""GetLayer(BOARD_ITEM self) -> PCB_LAYER_ID"""
9819 return _pcbnew.BOARD_ITEM_GetLayer(self)
9820
9821 def GetLayerSet(self):
9822 r"""GetLayerSet(BOARD_ITEM self) -> LSET"""
9823 return _pcbnew.BOARD_ITEM_GetLayerSet(self)
9824
9825 def SetLayerSet(self, aLayers):
9826 r"""SetLayerSet(BOARD_ITEM self, LSET aLayers)"""
9827 return _pcbnew.BOARD_ITEM_SetLayerSet(self, aLayers)
9828
9829 def SetLayer(self, aLayer):
9830 r"""SetLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer)"""
9831 return _pcbnew.BOARD_ITEM_SetLayer(self, aLayer)
9832
9833 def Duplicate(self):
9834 r"""Duplicate(BOARD_ITEM self) -> BOARD_ITEM"""
9835 return _pcbnew.BOARD_ITEM_Duplicate(self)
9836
9837 def SwapItemData(self, aImage):
9838 r"""SwapItemData(BOARD_ITEM self, BOARD_ITEM aImage)"""
9839 return _pcbnew.BOARD_ITEM_SwapItemData(self, aImage)
9840
9841 def IsOnLayer(self, aLayer):
9842 r"""IsOnLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer) -> bool"""
9843 return _pcbnew.BOARD_ITEM_IsOnLayer(self, aLayer)
9844
9845 def IsKnockout(self):
9846 r"""IsKnockout(BOARD_ITEM self) -> bool"""
9847 return _pcbnew.BOARD_ITEM_IsKnockout(self)
9848
9849 def SetIsKnockout(self, aKnockout):
9850 r"""SetIsKnockout(BOARD_ITEM self, bool aKnockout)"""
9851 return _pcbnew.BOARD_ITEM_SetIsKnockout(self, aKnockout)
9852
9853 def IsLocked(self):
9854 r"""IsLocked(BOARD_ITEM self) -> bool"""
9855 return _pcbnew.BOARD_ITEM_IsLocked(self)
9856
9857 def SetLocked(self, aLocked):
9858 r"""SetLocked(BOARD_ITEM self, bool aLocked)"""
9859 return _pcbnew.BOARD_ITEM_SetLocked(self, aLocked)
9860
9861 def StyleFromSettings(self, settings):
9862 r"""StyleFromSettings(BOARD_ITEM self, BOARD_DESIGN_SETTINGS settings)"""
9863 return _pcbnew.BOARD_ITEM_StyleFromSettings(self, settings)
9864
9866 r"""DeleteStructure(BOARD_ITEM self)"""
9867 return _pcbnew.BOARD_ITEM_DeleteStructure(self)
9868
9869 def Move(self, aMoveVector):
9870 r"""Move(BOARD_ITEM self, VECTOR2I aMoveVector)"""
9871 return _pcbnew.BOARD_ITEM_Move(self, aMoveVector)
9872
9873 def Rotate(self, aRotCentre, aAngle):
9874 r"""Rotate(BOARD_ITEM self, VECTOR2I aRotCentre, EDA_ANGLE aAngle)"""
9875 return _pcbnew.BOARD_ITEM_Rotate(self, aRotCentre, aAngle)
9876
9877 def Flip(self, aCentre, aFlipLeftRight):
9878 r"""Flip(BOARD_ITEM self, VECTOR2I aCentre, bool aFlipLeftRight)"""
9879 return _pcbnew.BOARD_ITEM_Flip(self, aCentre, aFlipLeftRight)
9880
9881 def Normalize(self):
9882 r"""Normalize(BOARD_ITEM self)"""
9883 return _pcbnew.BOARD_ITEM_Normalize(self)
9884
9886 r"""NormalizeForCompare(BOARD_ITEM self)"""
9887 return _pcbnew.BOARD_ITEM_NormalizeForCompare(self)
9888
9889 def GetBoard(self, *args):
9890 r"""
9891 GetBoard(BOARD_ITEM self) -> BOARD
9892 GetBoard(BOARD_ITEM self) -> BOARD
9893 """
9894 return _pcbnew.BOARD_ITEM_GetBoard(self, *args)
9895
9897 r"""GetParentAsString(BOARD_ITEM self) -> wxString"""
9898 return _pcbnew.BOARD_ITEM_GetParentAsString(self)
9899
9900 def GetLayerName(self):
9901 r"""GetLayerName(BOARD_ITEM self) -> wxString"""
9902 return _pcbnew.BOARD_ITEM_GetLayerName(self)
9903
9904 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
9905 r"""TransformShapeToPolygon(BOARD_ITEM self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
9906 return _pcbnew.BOARD_ITEM_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
9907 DRC = _pcbnew.BOARD_ITEM_DRC
9908
9909
9910 def Cast(self):
9911
9912 ct = self.GetClass()
9913
9914 if ct=="PCB_TEXT":
9915 return Cast_to_PCB_TEXT(self)
9916 if ct=="PCB_TEXTBOX":
9917 return Cast_to_PCB_TEXTBOX(self)
9918 elif ct=="BOARD":
9919 return Cast_to_BOARD(self)
9920 elif ct=="PCB_DIM_ALIGNED":
9921 return Cast_to_PCB_DIM_ALIGNED(self)
9922 elif ct=="PCB_DIM_LEADER":
9923 return Cast_to_PCB_DIM_LEADER(self)
9924 elif ct=="PCB_DIM_CENTER":
9925 return Cast_to_PCB_DIM_CENTER(self)
9926 elif ct=="PCB_DIM_RADIAL":
9927 return Cast_to_PCB_DIM_RADIAL(self)
9928 elif ct=="PCB_DIM_ORTHOGONAL":
9929 return Cast_to_PCB_DIM_ORTHOGONAL(self)
9930 elif ct=="PCB_SHAPE":
9931 return Cast_to_PCB_SHAPE(self)
9932 elif ct=="FOOTPRINT":
9933 return Cast_to_FOOTPRINT(self)
9934 elif ct=="PCB_GROUP":
9935 return Cast_to_PCB_GROUP(self)
9936 elif ct=="PAD":
9937 return Cast_to_PAD(self)
9938 elif ct=="PCB_VIA":
9939 return Cast_to_PCB_VIA(self)
9940 elif ct=="PCB_TRACK":
9941 return Cast_to_PCB_TRACK(self)
9942 elif ct=="PCB_ARC":
9943 return Cast_to_PCB_ARC(self)
9944 elif ct=="PCB_TARGET":
9945 return Cast_to_PCB_TARGET(self)
9946 elif ct=="PCB_REFERENCE_IMAGE":
9947 return Cast_to_PCB_REFERENCE_IMAGE(self)
9948 elif ct=="ZONE":
9949 return Cast_to_ZONE(self)
9950 else:
9951 raise TypeError("Unsupported drawing class: %s" % ct)
9952
9953 """
9954 Needed to cast BOARD_ITEM::Duplicate() to the suitable type
9955 """
9956 def Duplicate(self):
9957 ct = self.GetClass()
9958 if ct=="BOARD":
9959 return None
9960 else:
9961 return Cast_to_BOARD_ITEM( _pcbnew.BOARD_ITEM_Duplicate(self) ).Cast()
9962
9963 def SetPos(self,p):
9964 self.SetPosition(p)
9965 #self.SetPos0(p)
9966
9967 def SetStartEnd(self,start,end):
9968 self.SetStart(start)
9969 #self.SetStart0(start)
9970 self.SetEnd(end)
9971 #self.SetEnd0(end)
9972
9973
9974# Register BOARD_ITEM in _pcbnew:
9975_pcbnew.BOARD_ITEM_swigregister(BOARD_ITEM)
9976
9978 r"""Proxy of C++ DELETED_BOARD_ITEM class."""
9979
9980 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9981 __repr__ = _swig_repr
9982
9983 def __init__(self):
9984 r"""__init__(DELETED_BOARD_ITEM self) -> DELETED_BOARD_ITEM"""
9985 _pcbnew.DELETED_BOARD_ITEM_swiginit(self, _pcbnew.new_DELETED_BOARD_ITEM())
9986
9987 @staticmethod
9989 r"""GetInstance() -> DELETED_BOARD_ITEM"""
9990 return _pcbnew.DELETED_BOARD_ITEM_GetInstance()
9991 __swig_destroy__ = _pcbnew.delete_DELETED_BOARD_ITEM
9992
9993# Register DELETED_BOARD_ITEM in _pcbnew:
9994_pcbnew.DELETED_BOARD_ITEM_swigregister(DELETED_BOARD_ITEM)
9995
9997 r"""DELETED_BOARD_ITEM_GetInstance() -> DELETED_BOARD_ITEM"""
9998 return _pcbnew.DELETED_BOARD_ITEM_GetInstance()
9999
10000IS_CHANGED = _pcbnew.IS_CHANGED
10001
10002IS_LINKED = _pcbnew.IS_LINKED
10003
10004IN_EDIT = _pcbnew.IN_EDIT
10005
10006IS_MOVING = _pcbnew.IS_MOVING
10007
10008IS_NEW = _pcbnew.IS_NEW
10009
10010IS_BROKEN = _pcbnew.IS_BROKEN
10011
10012IS_DELETED = _pcbnew.IS_DELETED
10013
10014STARTPOINT = _pcbnew.STARTPOINT
10015
10016ENDPOINT = _pcbnew.ENDPOINT
10017
10018SELECTED = _pcbnew.SELECTED
10019
10020SELECTED_BY_DRAG = _pcbnew.SELECTED_BY_DRAG
10021
10022STRUCT_DELETED = _pcbnew.STRUCT_DELETED
10023
10024CANDIDATE = _pcbnew.CANDIDATE
10025
10026SKIP_STRUCT = _pcbnew.SKIP_STRUCT
10027
10028IS_PASTED = _pcbnew.IS_PASTED
10029
10030IS_SHOWN_AS_BITMAP = _pcbnew.IS_SHOWN_AS_BITMAP
10031
10032COURTYARD_CONFLICT = _pcbnew.COURTYARD_CONFLICT
10033
10034MALFORMED_F_COURTYARD = _pcbnew.MALFORMED_F_COURTYARD
10035
10036MALFORMED_B_COURTYARD = _pcbnew.MALFORMED_B_COURTYARD
10037
10038MALFORMED_COURTYARDS = _pcbnew.MALFORMED_COURTYARDS
10039
10040ROUTER_TRANSIENT = _pcbnew.ROUTER_TRANSIENT
10041
10042HOLE_PROXY = _pcbnew.HOLE_PROXY
10043
10044IS_ROLLOVER = _pcbnew.IS_ROLLOVER
10045
10046SHOW_ELEC_TYPE = _pcbnew.SHOW_ELEC_TYPE
10047
10048BRIGHTENED = _pcbnew.BRIGHTENED
10049
10050UR_TRANSIENT = _pcbnew.UR_TRANSIENT
10051
10052IS_DANGLING = _pcbnew.IS_DANGLING
10053
10054ENTERED = _pcbnew.ENTERED
10055
10057 r"""Proxy of C++ UNITS_PROVIDER class."""
10058
10059 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10060 __repr__ = _swig_repr
10061
10062 def __init__(self, aIuScale, aUnits):
10063 r"""__init__(UNITS_PROVIDER self, EDA_IU_SCALE aIuScale, EDA_UNITS aUnits) -> UNITS_PROVIDER"""
10064 _pcbnew.UNITS_PROVIDER_swiginit(self, _pcbnew.new_UNITS_PROVIDER(aIuScale, aUnits))
10065 __swig_destroy__ = _pcbnew.delete_UNITS_PROVIDER
10066
10067 def GetUserUnits(self):
10068 r"""GetUserUnits(UNITS_PROVIDER self) -> EDA_UNITS"""
10069 return _pcbnew.UNITS_PROVIDER_GetUserUnits(self)
10070
10071 def SetUserUnits(self, aUnits):
10072 r"""SetUserUnits(UNITS_PROVIDER self, EDA_UNITS aUnits)"""
10073 return _pcbnew.UNITS_PROVIDER_SetUserUnits(self, aUnits)
10074
10075 def GetUnitPair(self, aPrimaryUnit, aSecondaryUnits):
10076 r"""GetUnitPair(UNITS_PROVIDER self, EDA_UNITS & aPrimaryUnit, EDA_UNITS & aSecondaryUnits)"""
10077 return _pcbnew.UNITS_PROVIDER_GetUnitPair(self, aPrimaryUnit, aSecondaryUnits)
10078
10079 def GetIuScale(self):
10080 r"""GetIuScale(UNITS_PROVIDER self) -> EDA_IU_SCALE"""
10081 return _pcbnew.UNITS_PROVIDER_GetIuScale(self)
10082
10084 r"""GetOriginTransforms(UNITS_PROVIDER self) -> ORIGIN_TRANSFORMS &"""
10085 return _pcbnew.UNITS_PROVIDER_GetOriginTransforms(self)
10086
10087 def StringFromValue(self, *args):
10088 r"""
10089 StringFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString
10090 StringFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=False) -> wxString
10091 """
10092 return _pcbnew.UNITS_PROVIDER_StringFromValue(self, *args)
10093
10094 def MessageTextFromValue(self, *args):
10095 r"""
10096 MessageTextFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
10097 MessageTextFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
10098 """
10099 return _pcbnew.UNITS_PROVIDER_MessageTextFromValue(self, *args)
10100
10101 def MessageTextFromMinOptMax(self, aValue):
10102 r"""MessageTextFromMinOptMax(UNITS_PROVIDER self, MINOPTMAX< int > const & aValue) -> wxString"""
10103 return _pcbnew.UNITS_PROVIDER_MessageTextFromMinOptMax(self, aValue)
10104
10105 def ValueFromString(self, *args):
10106 r"""ValueFromString(UNITS_PROVIDER self, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> int"""
10107 return _pcbnew.UNITS_PROVIDER_ValueFromString(self, *args)
10108
10109 def AngleValueFromString(self, aTextValue):
10110 r"""AngleValueFromString(UNITS_PROVIDER self, wxString aTextValue) -> EDA_ANGLE"""
10111 return _pcbnew.UNITS_PROVIDER_AngleValueFromString(self, aTextValue)
10112
10113# Register UNITS_PROVIDER in _pcbnew:
10114_pcbnew.UNITS_PROVIDER_swigregister(UNITS_PROVIDER)
10115
10116
10118 r"""Cast_to_BOARD_ITEM(EDA_ITEM base) -> BOARD_ITEM"""
10119 return _pcbnew.Cast_to_BOARD_ITEM(base)
10120
10122 r"""Cast_to_PCB_TEXT(BOARD_ITEM arg1) -> PCB_TEXT"""
10123 return _pcbnew.Cast_to_PCB_TEXT(arg1)
10124
10126 r"""Cast_to_PCB_TEXTBOX(BOARD_ITEM arg1) -> PCB_TEXTBOX"""
10127 return _pcbnew.Cast_to_PCB_TEXTBOX(arg1)
10128
10130 r"""Cast_to_PCB_DIM_ALIGNED(BOARD_ITEM arg1) -> PCB_DIM_ALIGNED"""
10131 return _pcbnew.Cast_to_PCB_DIM_ALIGNED(arg1)
10132
10134 r"""Cast_to_PCB_DIM_ORTHOGONAL(BOARD_ITEM arg1) -> PCB_DIM_ORTHOGONAL"""
10135 return _pcbnew.Cast_to_PCB_DIM_ORTHOGONAL(arg1)
10136
10138 r"""Cast_to_PCB_DIM_LEADER(BOARD_ITEM arg1) -> PCB_DIM_LEADER"""
10139 return _pcbnew.Cast_to_PCB_DIM_LEADER(arg1)
10140
10142 r"""Cast_to_PCB_DIM_CENTER(BOARD_ITEM arg1) -> PCB_DIM_CENTER"""
10143 return _pcbnew.Cast_to_PCB_DIM_CENTER(arg1)
10144
10146 r"""Cast_to_PCB_DIM_RADIAL(BOARD_ITEM arg1) -> PCB_DIM_RADIAL"""
10147 return _pcbnew.Cast_to_PCB_DIM_RADIAL(arg1)
10148
10150 r"""Cast_to_FOOTPRINT(BOARD_ITEM arg1) -> FOOTPRINT"""
10151 return _pcbnew.Cast_to_FOOTPRINT(arg1)
10152
10154 r"""Cast_to_PCB_GROUP(BOARD_ITEM arg1) -> PCB_GROUP"""
10155 return _pcbnew.Cast_to_PCB_GROUP(arg1)
10156
10158 r"""Cast_to_PCB_SHAPE(BOARD_ITEM arg1) -> PCB_SHAPE"""
10159 return _pcbnew.Cast_to_PCB_SHAPE(arg1)
10160
10162 r"""Cast_to_PCB_MARKER(BOARD_ITEM arg1) -> PCB_MARKER"""
10163 return _pcbnew.Cast_to_PCB_MARKER(arg1)
10164
10166 r"""Cast_to_BOARD(BOARD_ITEM arg1) -> BOARD"""
10167 return _pcbnew.Cast_to_BOARD(arg1)
10168
10169def Cast_to_PAD(arg1):
10170 r"""Cast_to_PAD(BOARD_ITEM arg1) -> PAD"""
10171 return _pcbnew.Cast_to_PAD(arg1)
10172
10174 r"""Cast_to_PCB_TRACK(BOARD_ITEM arg1) -> PCB_TRACK"""
10175 return _pcbnew.Cast_to_PCB_TRACK(arg1)
10176
10178 r"""Cast_to_PCB_VIA(BOARD_ITEM arg1) -> PCB_VIA"""
10179 return _pcbnew.Cast_to_PCB_VIA(arg1)
10180
10182 r"""Cast_to_PCB_ARC(BOARD_ITEM arg1) -> PCB_ARC"""
10183 return _pcbnew.Cast_to_PCB_ARC(arg1)
10184
10186 r"""Cast_to_ZONE(BOARD_ITEM arg1) -> ZONE"""
10187 return _pcbnew.Cast_to_ZONE(arg1)
10188
10190 r"""Cast_to_PCB_TARGET(BOARD_ITEM arg1) -> PCB_TARGET"""
10191 return _pcbnew.Cast_to_PCB_TARGET(arg1)
10192
10194 r"""Cast_to_PCB_REFERENCE_IMAGE(BOARD_ITEM arg1) -> PCB_REFERENCE_IMAGE"""
10195 return _pcbnew.Cast_to_PCB_REFERENCE_IMAGE(arg1)
10196ADD_MODE_INSERT = _pcbnew.ADD_MODE_INSERT
10197
10198ADD_MODE_APPEND = _pcbnew.ADD_MODE_APPEND
10199
10200ADD_MODE_BULK_APPEND = _pcbnew.ADD_MODE_BULK_APPEND
10201
10202ADD_MODE_BULK_INSERT = _pcbnew.ADD_MODE_BULK_INSERT
10203
10204REMOVE_MODE_NORMAL = _pcbnew.REMOVE_MODE_NORMAL
10205
10206REMOVE_MODE_BULK = _pcbnew.REMOVE_MODE_BULK
10207
10209 r"""Proxy of C++ BOARD_ITEM_CONTAINER class."""
10210
10211 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10212
10213 def __init__(self, *args, **kwargs):
10214 raise AttributeError("No constructor defined - class is abstract")
10215 __repr__ = _swig_repr
10216
10217 def AddNative(self, *args):
10218 r"""AddNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
10219 return _pcbnew.BOARD_ITEM_CONTAINER_AddNative(self, *args)
10220
10221 def RemoveNative(self, *args):
10222 r"""RemoveNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
10223 return _pcbnew.BOARD_ITEM_CONTAINER_RemoveNative(self, *args)
10224
10225 def DeleteNative(self, aItem):
10226 r"""DeleteNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)"""
10227 return _pcbnew.BOARD_ITEM_CONTAINER_DeleteNative(self, aItem)
10228
10229 def Add(self,item):
10230 """
10231 Add a BOARD_ITEM to this BOARD_ITEM_CONTAINER, clear the thisown to prevent
10232 python from deleting the object in the garbage collector
10233 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, BOARD_ADD_MODE aMode=BOARD_ADD_MODE::INSERT)
10234 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)
10235 """
10236 item.thisown=0
10237 self.AddNative(item)
10238
10239 def Remove(self,item):
10240 """
10241 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
10242 the python wrapper owns the C++ BOARD_ITEM
10243 Remove(self, BOARD_ITEM)
10244 """
10245 self.RemoveNative(item)
10246 if (not IsActionRunning()):
10247 item.thisown=1
10248
10249 def Delete(self,item):
10250 """
10251 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
10252 the python wrapper does not owns the C++ BOARD_ITEM
10253 Delete(self, BOARD_ITEM)
10254 """
10255 item.thisown=0 # C++'s BOARD_ITEM_CONTAINER::Delete() will delete
10256 self.DeleteNative(item)
10257 item.this = None
10258
10259 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM_CONTAINER
10260
10261# Register BOARD_ITEM_CONTAINER in _pcbnew:
10262_pcbnew.BOARD_ITEM_CONTAINER_swigregister(BOARD_ITEM_CONTAINER)
10263
10265 r"""Proxy of C++ BOARD_CONNECTED_ITEM class."""
10266
10267 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10268
10269 def __init__(self, *args, **kwargs):
10270 raise AttributeError("No constructor defined - class is abstract")
10271 __repr__ = _swig_repr
10272
10273 @staticmethod
10274 def ClassOf(aItem):
10275 r"""ClassOf(EDA_ITEM aItem) -> bool"""
10276 return _pcbnew.BOARD_CONNECTED_ITEM_ClassOf(aItem)
10277
10278 def GetNet(self):
10279 r"""GetNet(BOARD_CONNECTED_ITEM self) -> NETINFO_ITEM"""
10280 return _pcbnew.BOARD_CONNECTED_ITEM_GetNet(self)
10281
10282 def SetNet(self, aNetInfo):
10283 r"""SetNet(BOARD_CONNECTED_ITEM self, NETINFO_ITEM aNetInfo)"""
10284 return _pcbnew.BOARD_CONNECTED_ITEM_SetNet(self, aNetInfo)
10285
10286 def GetNetCode(self):
10287 r"""GetNetCode(BOARD_CONNECTED_ITEM self) -> int"""
10288 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetCode(self)
10289
10290 def SetNetCode(self, *args):
10291 r"""
10292 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode, bool aNoAssert) -> bool
10293 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode)
10294 """
10295 return _pcbnew.BOARD_CONNECTED_ITEM_SetNetCode(self, *args)
10296
10297 def GetNetname(self):
10298 r"""GetNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10299 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetname(self)
10300
10301 def GetNetnameMsg(self):
10302 r"""GetNetnameMsg(BOARD_CONNECTED_ITEM self) -> wxString"""
10303 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetnameMsg(self)
10304
10306 r"""GetShortNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10307 return _pcbnew.BOARD_CONNECTED_ITEM_GetShortNetname(self)
10308
10310 r"""GetDisplayNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10311 return _pcbnew.BOARD_CONNECTED_ITEM_GetDisplayNetname(self)
10312
10313 def GetOwnClearance(self, aLayer, aSource=None):
10314 r"""GetOwnClearance(BOARD_CONNECTED_ITEM self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
10315 return _pcbnew.BOARD_CONNECTED_ITEM_GetOwnClearance(self, aLayer, aSource)
10316
10317 def GetLocalClearanceOverrides(self, aSource):
10318 r"""GetLocalClearanceOverrides(BOARD_CONNECTED_ITEM self, wxString aSource) -> int"""
10319 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalClearanceOverrides(self, aSource)
10320
10321 def GetLocalClearance(self, aSource):
10322 r"""GetLocalClearance(BOARD_CONNECTED_ITEM self, wxString aSource) -> int"""
10323 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalClearance(self, aSource)
10324
10326 r"""GetEffectiveNetClass(BOARD_CONNECTED_ITEM self) -> NETCLASS"""
10327 return _pcbnew.BOARD_CONNECTED_ITEM_GetEffectiveNetClass(self)
10328
10330 r"""GetNetClassName(BOARD_CONNECTED_ITEM self) -> wxString"""
10331 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetClassName(self)
10332
10333 def SetLocalRatsnestVisible(self, aVisible):
10334 r"""SetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self, bool aVisible)"""
10335 return _pcbnew.BOARD_CONNECTED_ITEM_SetLocalRatsnestVisible(self, aVisible)
10336
10338 r"""GetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self) -> bool"""
10339 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalRatsnestVisible(self)
10340
10341 def GetTeardropParams(self, *args):
10342 r"""
10343 GetTeardropParams(BOARD_CONNECTED_ITEM self) -> TEARDROP_PARAMETERS
10344 GetTeardropParams(BOARD_CONNECTED_ITEM self) -> TEARDROP_PARAMETERS const &
10345 """
10346 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropParams(self, *args)
10347
10348 def SetTeardropsEnabled(self, aEnable):
10349 r"""SetTeardropsEnabled(BOARD_CONNECTED_ITEM self, bool aEnable)"""
10350 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropsEnabled(self, aEnable)
10351
10353 r"""GetTeardropsEnabled(BOARD_CONNECTED_ITEM self) -> bool"""
10354 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropsEnabled(self)
10355
10357 r"""SetTeardropBestLengthRatio(BOARD_CONNECTED_ITEM self, double aRatio)"""
10358 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropBestLengthRatio(self, aRatio)
10359
10361 r"""GetTeardropBestLengthRatio(BOARD_CONNECTED_ITEM self) -> double"""
10362 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropBestLengthRatio(self)
10363
10364 def SetTeardropMaxLength(self, aMaxLength):
10365 r"""SetTeardropMaxLength(BOARD_CONNECTED_ITEM self, int aMaxLength)"""
10366 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxLength(self, aMaxLength)
10367
10369 r"""GetTeardropMaxLength(BOARD_CONNECTED_ITEM self) -> int"""
10370 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxLength(self)
10371
10372 def SetTeardropBestWidthRatio(self, aRatio):
10373 r"""SetTeardropBestWidthRatio(BOARD_CONNECTED_ITEM self, double aRatio)"""
10374 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropBestWidthRatio(self, aRatio)
10375
10377 r"""GetTeardropBestWidthRatio(BOARD_CONNECTED_ITEM self) -> double"""
10378 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropBestWidthRatio(self)
10379
10380 def SetTeardropMaxWidth(self, aMaxWidth):
10381 r"""SetTeardropMaxWidth(BOARD_CONNECTED_ITEM self, int aMaxWidth)"""
10382 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxWidth(self, aMaxWidth)
10383
10385 r"""GetTeardropMaxWidth(BOARD_CONNECTED_ITEM self) -> int"""
10386 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxWidth(self)
10387
10388 def SetTeardropCurvePts(self, aPointCount):
10389 r"""SetTeardropCurvePts(BOARD_CONNECTED_ITEM self, int aPointCount)"""
10390 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropCurvePts(self, aPointCount)
10391
10393 r"""GetTeardropCurvePts(BOARD_CONNECTED_ITEM self) -> int"""
10394 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropCurvePts(self)
10395
10397 r"""SetTeardropPreferZoneConnections(BOARD_CONNECTED_ITEM self, bool aPrefer)"""
10398 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropPreferZoneConnections(self, aPrefer)
10399
10401 r"""GetTeardropPreferZoneConnections(BOARD_CONNECTED_ITEM self) -> bool"""
10402 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropPreferZoneConnections(self)
10403
10405 r"""SetTeardropAllowSpanTwoTracks(BOARD_CONNECTED_ITEM self, bool aAllow)"""
10406 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropAllowSpanTwoTracks(self, aAllow)
10407
10409 r"""GetTeardropAllowSpanTwoTracks(BOARD_CONNECTED_ITEM self) -> bool"""
10410 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropAllowSpanTwoTracks(self)
10411
10412 def SetTeardropMaxTrackWidth(self, aRatio):
10413 r"""SetTeardropMaxTrackWidth(BOARD_CONNECTED_ITEM self, double aRatio)"""
10414 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxTrackWidth(self, aRatio)
10415
10417 r"""GetTeardropMaxTrackWidth(BOARD_CONNECTED_ITEM self) -> double"""
10418 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxTrackWidth(self)
10419 __swig_destroy__ = _pcbnew.delete_BOARD_CONNECTED_ITEM
10420
10421# Register BOARD_CONNECTED_ITEM in _pcbnew:
10422_pcbnew.BOARD_CONNECTED_ITEM_swigregister(BOARD_CONNECTED_ITEM)
10423
10425 r"""BOARD_CONNECTED_ITEM_ClassOf(EDA_ITEM aItem) -> bool"""
10426 return _pcbnew.BOARD_CONNECTED_ITEM_ClassOf(aItem)
10427
10429 r"""Proxy of C++ std::map< wxString,std::shared_ptr< NETCLASS > > class."""
10430
10431 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10432 __repr__ = _swig_repr
10433
10434 def iterator(self):
10435 r"""iterator(netclasses_map self) -> SwigPyIterator"""
10436 return _pcbnew.netclasses_map_iterator(self)
10437 def __iter__(self):
10438 return self.iterator()
10439
10440 def __nonzero__(self):
10441 r"""__nonzero__(netclasses_map self) -> bool"""
10442 return _pcbnew.netclasses_map___nonzero__(self)
10443
10444 def __bool__(self):
10445 r"""__bool__(netclasses_map self) -> bool"""
10446 return _pcbnew.netclasses_map___bool__(self)
10447
10448 def __len__(self):
10449 r"""__len__(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10450 return _pcbnew.netclasses_map___len__(self)
10451 def __iter__(self):
10452 return self.key_iterator()
10453 def iterkeys(self):
10454 return self.key_iterator()
10455 def itervalues(self):
10456 return self.value_iterator()
10457 def iteritems(self):
10458 return self.iterator()
10459
10460 def __getitem__(self, key):
10461 r"""__getitem__(netclasses_map self, wxString key) -> std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const &"""
10462 return _pcbnew.netclasses_map___getitem__(self, key)
10463
10464 def __delitem__(self, key):
10465 r"""__delitem__(netclasses_map self, wxString key)"""
10466 return _pcbnew.netclasses_map___delitem__(self, key)
10467
10468 def has_key(self, key):
10469 r"""has_key(netclasses_map self, wxString key) -> bool"""
10470 return _pcbnew.netclasses_map_has_key(self, key)
10471
10472 def keys(self):
10473 r"""keys(netclasses_map self) -> PyObject *"""
10474 return _pcbnew.netclasses_map_keys(self)
10475
10476 def values(self):
10477 r"""values(netclasses_map self) -> PyObject *"""
10478 return _pcbnew.netclasses_map_values(self)
10479
10480 def items(self):
10481 r"""items(netclasses_map self) -> PyObject *"""
10482 return _pcbnew.netclasses_map_items(self)
10483
10484 def __contains__(self, key):
10485 r"""__contains__(netclasses_map self, wxString key) -> bool"""
10486 return _pcbnew.netclasses_map___contains__(self, key)
10487
10488 def key_iterator(self):
10489 r"""key_iterator(netclasses_map self) -> SwigPyIterator"""
10490 return _pcbnew.netclasses_map_key_iterator(self)
10491
10493 r"""value_iterator(netclasses_map self) -> SwigPyIterator"""
10494 return _pcbnew.netclasses_map_value_iterator(self)
10495
10496 def __setitem__(self, *args):
10497 r"""
10498 __setitem__(netclasses_map self, wxString key)
10499 __setitem__(netclasses_map self, wxString key, std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const & x)
10500 """
10501 return _pcbnew.netclasses_map___setitem__(self, *args)
10502
10503 def asdict(self):
10504 r"""asdict(netclasses_map self) -> PyObject *"""
10505 return _pcbnew.netclasses_map_asdict(self)
10506
10507 def __init__(self, *args):
10508 r"""
10509 __init__(netclasses_map self, std::less< wxString > const & other) -> netclasses_map
10510 __init__(netclasses_map self) -> netclasses_map
10511 __init__(netclasses_map self, netclasses_map other) -> netclasses_map
10512 """
10513 _pcbnew.netclasses_map_swiginit(self, _pcbnew.new_netclasses_map(*args))
10514
10515 def empty(self):
10516 r"""empty(netclasses_map self) -> bool"""
10517 return _pcbnew.netclasses_map_empty(self)
10518
10519 def size(self):
10520 r"""size(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10521 return _pcbnew.netclasses_map_size(self)
10522
10523 def swap(self, v):
10524 r"""swap(netclasses_map self, netclasses_map v)"""
10525 return _pcbnew.netclasses_map_swap(self, v)
10526
10527 def begin(self):
10528 r"""begin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10529 return _pcbnew.netclasses_map_begin(self)
10530
10531 def end(self):
10532 r"""end(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10533 return _pcbnew.netclasses_map_end(self)
10534
10535 def rbegin(self):
10536 r"""rbegin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10537 return _pcbnew.netclasses_map_rbegin(self)
10538
10539 def rend(self):
10540 r"""rend(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10541 return _pcbnew.netclasses_map_rend(self)
10542
10543 def clear(self):
10544 r"""clear(netclasses_map self)"""
10545 return _pcbnew.netclasses_map_clear(self)
10546
10547 def get_allocator(self):
10548 r"""get_allocator(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::allocator_type"""
10549 return _pcbnew.netclasses_map_get_allocator(self)
10550
10551 def count(self, x):
10552 r"""count(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10553 return _pcbnew.netclasses_map_count(self, x)
10554
10555 def erase(self, *args):
10556 r"""
10557 erase(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type
10558 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator position)
10559 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator first, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator last)
10560 """
10561 return _pcbnew.netclasses_map_erase(self, *args)
10562
10563 def find(self, x):
10564 r"""find(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10565 return _pcbnew.netclasses_map_find(self, x)
10566
10567 def lower_bound(self, x):
10568 r"""lower_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10569 return _pcbnew.netclasses_map_lower_bound(self, x)
10570
10571 def upper_bound(self, x):
10572 r"""upper_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10573 return _pcbnew.netclasses_map_upper_bound(self, x)
10574 __swig_destroy__ = _pcbnew.delete_netclasses_map
10575
10576# Register netclasses_map in _pcbnew:
10577_pcbnew.netclasses_map_swigregister(netclasses_map)
10578
10579DEFAULT_SILK_LINE_WIDTH = _pcbnew.DEFAULT_SILK_LINE_WIDTH
10580
10581DEFAULT_COPPER_LINE_WIDTH = _pcbnew.DEFAULT_COPPER_LINE_WIDTH
10582
10583DEFAULT_EDGE_WIDTH = _pcbnew.DEFAULT_EDGE_WIDTH
10584
10585DEFAULT_COURTYARD_WIDTH = _pcbnew.DEFAULT_COURTYARD_WIDTH
10586
10587DEFAULT_LINE_WIDTH = _pcbnew.DEFAULT_LINE_WIDTH
10588
10589DEFAULT_SILK_TEXT_SIZE = _pcbnew.DEFAULT_SILK_TEXT_SIZE
10590
10591DEFAULT_COPPER_TEXT_SIZE = _pcbnew.DEFAULT_COPPER_TEXT_SIZE
10592
10593DEFAULT_TEXT_SIZE = _pcbnew.DEFAULT_TEXT_SIZE
10594
10595DEFAULT_SILK_TEXT_WIDTH = _pcbnew.DEFAULT_SILK_TEXT_WIDTH
10596
10597DEFAULT_COPPER_TEXT_WIDTH = _pcbnew.DEFAULT_COPPER_TEXT_WIDTH
10598
10599DEFAULT_TEXT_WIDTH = _pcbnew.DEFAULT_TEXT_WIDTH
10600
10601DEFAULT_DIMENSION_ARROW_LENGTH = _pcbnew.DEFAULT_DIMENSION_ARROW_LENGTH
10602
10603DEFAULT_DIMENSION_EXTENSION_OFFSET = _pcbnew.DEFAULT_DIMENSION_EXTENSION_OFFSET
10604
10605DEFAULT_BOARD_THICKNESS_MM = _pcbnew.DEFAULT_BOARD_THICKNESS_MM
10606
10607DEFAULT_PCB_EDGE_THICKNESS = _pcbnew.DEFAULT_PCB_EDGE_THICKNESS
10608
10609DEFAULT_SOLDERMASK_EXPANSION = _pcbnew.DEFAULT_SOLDERMASK_EXPANSION
10610
10611DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE = _pcbnew.DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE
10612
10613DEFAULT_SOLDERMASK_MIN_WIDTH = _pcbnew.DEFAULT_SOLDERMASK_MIN_WIDTH
10614
10615DEFAULT_SOLDERPASTE_CLEARANCE = _pcbnew.DEFAULT_SOLDERPASTE_CLEARANCE
10616
10617DEFAULT_SOLDERPASTE_RATIO = _pcbnew.DEFAULT_SOLDERPASTE_RATIO
10618
10619DEFAULT_CUSTOMTRACKWIDTH = _pcbnew.DEFAULT_CUSTOMTRACKWIDTH
10620
10621DEFAULT_CUSTOMDPAIRWIDTH = _pcbnew.DEFAULT_CUSTOMDPAIRWIDTH
10622
10623DEFAULT_CUSTOMDPAIRGAP = _pcbnew.DEFAULT_CUSTOMDPAIRGAP
10624
10625DEFAULT_CUSTOMDPAIRVIAGAP = _pcbnew.DEFAULT_CUSTOMDPAIRVIAGAP
10626
10627DEFAULT_MEANDER_SPACING = _pcbnew.DEFAULT_MEANDER_SPACING
10628
10629DEFAULT_DP_MEANDER_SPACING = _pcbnew.DEFAULT_DP_MEANDER_SPACING
10630
10631DEFAULT_MINCLEARANCE = _pcbnew.DEFAULT_MINCLEARANCE
10632
10633DEFAULT_MINCONNECTION = _pcbnew.DEFAULT_MINCONNECTION
10634
10635DEFAULT_TRACKMINWIDTH = _pcbnew.DEFAULT_TRACKMINWIDTH
10636
10637DEFAULT_VIASMINSIZE = _pcbnew.DEFAULT_VIASMINSIZE
10638
10639DEFAULT_MINTHROUGHDRILL = _pcbnew.DEFAULT_MINTHROUGHDRILL
10640
10641DEFAULT_MICROVIASMINSIZE = _pcbnew.DEFAULT_MICROVIASMINSIZE
10642
10643DEFAULT_MICROVIASMINDRILL = _pcbnew.DEFAULT_MICROVIASMINDRILL
10644
10645DEFAULT_HOLETOHOLEMIN = _pcbnew.DEFAULT_HOLETOHOLEMIN
10646
10647DEFAULT_HOLECLEARANCE = _pcbnew.DEFAULT_HOLECLEARANCE
10648
10649DEFAULT_COPPEREDGECLEARANCE = _pcbnew.DEFAULT_COPPEREDGECLEARANCE
10650
10651LEGACY_COPPEREDGECLEARANCE = _pcbnew.LEGACY_COPPEREDGECLEARANCE
10652
10653DEFAULT_SILKCLEARANCE = _pcbnew.DEFAULT_SILKCLEARANCE
10654
10655DEFAULT_MINRESOLVEDSPOKES = _pcbnew.DEFAULT_MINRESOLVEDSPOKES
10656
10657MINIMUM_ERROR_SIZE_MM = _pcbnew.MINIMUM_ERROR_SIZE_MM
10658
10659MAXIMUM_ERROR_SIZE_MM = _pcbnew.MAXIMUM_ERROR_SIZE_MM
10660
10661MINIMUM_LINE_WIDTH_MM = _pcbnew.MINIMUM_LINE_WIDTH_MM
10662
10663MAXIMUM_LINE_WIDTH_MM = _pcbnew.MAXIMUM_LINE_WIDTH_MM
10664
10666 r"""Proxy of C++ VIA_DIMENSION class."""
10667
10668 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10669 __repr__ = _swig_repr
10670 m_Diameter = property(_pcbnew.VIA_DIMENSION_m_Diameter_get, _pcbnew.VIA_DIMENSION_m_Diameter_set, doc=r"""m_Diameter : int""")
10671 m_Drill = property(_pcbnew.VIA_DIMENSION_m_Drill_get, _pcbnew.VIA_DIMENSION_m_Drill_set, doc=r"""m_Drill : int""")
10672
10673 def __init__(self, *args):
10674 r"""
10675 __init__(VIA_DIMENSION self) -> VIA_DIMENSION
10676 __init__(VIA_DIMENSION self, int aDiameter, int aDrill) -> VIA_DIMENSION
10677 """
10678 _pcbnew.VIA_DIMENSION_swiginit(self, _pcbnew.new_VIA_DIMENSION(*args))
10679
10680 def __eq__(self, aOther):
10681 r"""__eq__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10682 return _pcbnew.VIA_DIMENSION___eq__(self, aOther)
10683
10684 def __ne__(self, aOther):
10685 r"""__ne__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10686 return _pcbnew.VIA_DIMENSION___ne__(self, aOther)
10687
10688 def __lt__(self, aOther):
10689 r"""__lt__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10690 return _pcbnew.VIA_DIMENSION___lt__(self, aOther)
10691 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION
10692
10693# Register VIA_DIMENSION in _pcbnew:
10694_pcbnew.VIA_DIMENSION_swigregister(VIA_DIMENSION)
10695
10697 r"""Proxy of C++ DIFF_PAIR_DIMENSION class."""
10698
10699 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10700 __repr__ = _swig_repr
10701 m_Width = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Width_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Width_set, doc=r"""m_Width : int""")
10702 m_Gap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Gap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Gap_set, doc=r"""m_Gap : int""")
10703 m_ViaGap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_set, doc=r"""m_ViaGap : int""")
10704
10705 def __init__(self, *args):
10706 r"""
10707 __init__(DIFF_PAIR_DIMENSION self) -> DIFF_PAIR_DIMENSION
10708 __init__(DIFF_PAIR_DIMENSION self, int aWidth, int aGap, int aViaGap) -> DIFF_PAIR_DIMENSION
10709 """
10710 _pcbnew.DIFF_PAIR_DIMENSION_swiginit(self, _pcbnew.new_DIFF_PAIR_DIMENSION(*args))
10711
10712 def __eq__(self, aOther):
10713 r"""__eq__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10714 return _pcbnew.DIFF_PAIR_DIMENSION___eq__(self, aOther)
10715
10716 def __ne__(self, aOther):
10717 r"""__ne__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10718 return _pcbnew.DIFF_PAIR_DIMENSION___ne__(self, aOther)
10719
10720 def __lt__(self, aOther):
10721 r"""__lt__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10722 return _pcbnew.DIFF_PAIR_DIMENSION___lt__(self, aOther)
10723 __swig_destroy__ = _pcbnew.delete_DIFF_PAIR_DIMENSION
10724
10725# Register DIFF_PAIR_DIMENSION in _pcbnew:
10726_pcbnew.DIFF_PAIR_DIMENSION_swigregister(DIFF_PAIR_DIMENSION)
10727
10728LAYER_CLASS_SILK = _pcbnew.LAYER_CLASS_SILK
10729
10730LAYER_CLASS_COPPER = _pcbnew.LAYER_CLASS_COPPER
10731
10732LAYER_CLASS_EDGES = _pcbnew.LAYER_CLASS_EDGES
10733
10734LAYER_CLASS_COURTYARD = _pcbnew.LAYER_CLASS_COURTYARD
10735
10736LAYER_CLASS_FAB = _pcbnew.LAYER_CLASS_FAB
10737
10738LAYER_CLASS_OTHERS = _pcbnew.LAYER_CLASS_OTHERS
10739
10740LAYER_CLASS_COUNT = _pcbnew.LAYER_CLASS_COUNT
10741
10743 r"""Proxy of C++ TEXT_ITEM_INFO class."""
10744
10745 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10746 __repr__ = _swig_repr
10747 m_Text = property(_pcbnew.TEXT_ITEM_INFO_m_Text_get, _pcbnew.TEXT_ITEM_INFO_m_Text_set, doc=r"""m_Text : wxString""")
10748 m_Visible = property(_pcbnew.TEXT_ITEM_INFO_m_Visible_get, _pcbnew.TEXT_ITEM_INFO_m_Visible_set, doc=r"""m_Visible : bool""")
10749 m_Layer = property(_pcbnew.TEXT_ITEM_INFO_m_Layer_get, _pcbnew.TEXT_ITEM_INFO_m_Layer_set, doc=r"""m_Layer : int""")
10750
10751 def __init__(self, aText, aVisible, aLayer):
10752 r"""__init__(TEXT_ITEM_INFO self, wxString aText, bool aVisible, int aLayer) -> TEXT_ITEM_INFO"""
10753 _pcbnew.TEXT_ITEM_INFO_swiginit(self, _pcbnew.new_TEXT_ITEM_INFO(aText, aVisible, aLayer))
10754
10755 def __eq__(self, aOther):
10756 r"""__eq__(TEXT_ITEM_INFO self, TEXT_ITEM_INFO aOther) -> bool"""
10757 return _pcbnew.TEXT_ITEM_INFO___eq__(self, aOther)
10758 __swig_destroy__ = _pcbnew.delete_TEXT_ITEM_INFO
10759
10760# Register TEXT_ITEM_INFO in _pcbnew:
10761_pcbnew.TEXT_ITEM_INFO_swigregister(TEXT_ITEM_INFO)
10762
10764 r"""Proxy of C++ BOARD_DESIGN_SETTINGS class."""
10765
10766 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10767 __repr__ = _swig_repr
10768 __swig_destroy__ = _pcbnew.delete_BOARD_DESIGN_SETTINGS
10769
10770 def __eq__(self, aOther):
10771 r"""__eq__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> bool"""
10772 return _pcbnew.BOARD_DESIGN_SETTINGS___eq__(self, aOther)
10773
10774 def __ne__(self, aOther):
10775 r"""__ne__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> bool"""
10776 return _pcbnew.BOARD_DESIGN_SETTINGS___ne__(self, aOther)
10777
10778 def __init__(self, *args):
10779 r"""
10780 __init__(BOARD_DESIGN_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> BOARD_DESIGN_SETTINGS
10781 __init__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> BOARD_DESIGN_SETTINGS
10782 """
10783 _pcbnew.BOARD_DESIGN_SETTINGS_swiginit(self, _pcbnew.new_BOARD_DESIGN_SETTINGS(*args))
10784
10785 def LoadFromFile(self, *args):
10786 r"""LoadFromFile(BOARD_DESIGN_SETTINGS self, wxString aDirectory="") -> bool"""
10787 return _pcbnew.BOARD_DESIGN_SETTINGS_LoadFromFile(self, *args)
10788
10789 def GetStackupDescriptor(self, *args):
10790 r"""
10791 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP
10792 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP const &
10793 """
10794 return _pcbnew.BOARD_DESIGN_SETTINGS_GetStackupDescriptor(self, *args)
10795
10797 r"""GetTeadropParamsList(BOARD_DESIGN_SETTINGS self) -> TEARDROP_PARAMETERS_LIST *"""
10798 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTeadropParamsList(self)
10799
10800 def GetSeverity(self, aDRCErrorCode):
10801 r"""GetSeverity(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> SEVERITY"""
10802 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSeverity(self, aDRCErrorCode)
10803
10804 def Ignore(self, aDRCErrorCode):
10805 r"""Ignore(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> bool"""
10806 return _pcbnew.BOARD_DESIGN_SETTINGS_Ignore(self, aDRCErrorCode)
10807
10809 r"""GetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self) -> ZONE_SETTINGS"""
10810 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDefaultZoneSettings(self)
10811
10812 def SetDefaultZoneSettings(self, aSettings):
10813 r"""SetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self, ZONE_SETTINGS aSettings)"""
10814 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDefaultZoneSettings(self, aSettings)
10815
10817 r"""GetCurrentNetClassName(BOARD_DESIGN_SETTINGS self) -> wxString"""
10818 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentNetClassName(self)
10819
10821 r"""UseNetClassTrack(BOARD_DESIGN_SETTINGS self) -> bool"""
10822 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassTrack(self)
10823
10825 r"""UseNetClassVia(BOARD_DESIGN_SETTINGS self) -> bool"""
10826 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassVia(self)
10827
10829 r"""UseNetClassDiffPair(BOARD_DESIGN_SETTINGS self) -> bool"""
10830 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassDiffPair(self)
10831
10833 r"""GetBiggestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
10834 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBiggestClearanceValue(self)
10835
10837 r"""GetSmallestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
10838 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSmallestClearanceValue(self)
10839
10841 r"""GetTrackWidthIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10842 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTrackWidthIndex(self)
10843
10844 def SetTrackWidthIndex(self, aIndex):
10845 r"""SetTrackWidthIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10846 return _pcbnew.BOARD_DESIGN_SETTINGS_SetTrackWidthIndex(self, aIndex)
10847
10849 r"""GetCurrentTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10850 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentTrackWidth(self)
10851
10852 def SetCustomTrackWidth(self, aWidth):
10853 r"""SetCustomTrackWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
10854 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomTrackWidth(self, aWidth)
10855
10857 r"""GetCustomTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10858 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomTrackWidth(self)
10859
10861 r"""GetViaSizeIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10862 return _pcbnew.BOARD_DESIGN_SETTINGS_GetViaSizeIndex(self)
10863
10864 def SetViaSizeIndex(self, aIndex):
10865 r"""SetViaSizeIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10866 return _pcbnew.BOARD_DESIGN_SETTINGS_SetViaSizeIndex(self, aIndex)
10867
10869 r"""GetCurrentViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
10870 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaSize(self)
10871
10872 def SetCustomViaSize(self, aSize):
10873 r"""SetCustomViaSize(BOARD_DESIGN_SETTINGS self, int aSize)"""
10874 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaSize(self, aSize)
10875
10877 r"""GetCustomViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
10878 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaSize(self)
10879
10881 r"""GetCurrentViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
10882 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaDrill(self)
10883
10884 def SetCustomViaDrill(self, aDrill):
10885 r"""SetCustomViaDrill(BOARD_DESIGN_SETTINGS self, int aDrill)"""
10886 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaDrill(self, aDrill)
10887
10889 r"""GetCustomViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
10890 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaDrill(self)
10891
10892 def UseCustomTrackViaSize(self, *args):
10893 r"""
10894 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self, bool aEnabled)
10895 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self) -> bool
10896 """
10897 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomTrackViaSize(self, *args)
10898
10900 r"""GetDiffPairIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10901 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDiffPairIndex(self)
10902
10903 def SetDiffPairIndex(self, aIndex):
10904 r"""SetDiffPairIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10905 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDiffPairIndex(self, aIndex)
10906
10907 def SetCustomDiffPairWidth(self, aWidth):
10908 r"""SetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
10909 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairWidth(self, aWidth)
10910
10912 r"""GetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10913 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairWidth(self)
10914
10915 def SetCustomDiffPairGap(self, aGap):
10916 r"""SetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
10917 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairGap(self, aGap)
10918
10920 r"""GetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
10921 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairGap(self)
10922
10924 r"""SetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
10925 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairViaGap(self, aGap)
10926
10928 r"""GetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
10929 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairViaGap(self)
10930
10932 r"""
10933 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self, bool aEnabled)
10934 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self) -> bool
10935 """
10936 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomDiffPairDimensions(self, *args)
10937
10939 r"""GetCurrentDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10940 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairWidth(self)
10941
10943 r"""GetCurrentDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
10944 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairGap(self)
10945
10947 r"""GetCurrentDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
10948 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairViaGap(self)
10949
10951 r"""GetEnabledLayers(BOARD_DESIGN_SETTINGS self) -> LSET"""
10952 return _pcbnew.BOARD_DESIGN_SETTINGS_GetEnabledLayers(self)
10953
10954 def SetEnabledLayers(self, aMask):
10955 r"""SetEnabledLayers(BOARD_DESIGN_SETTINGS self, LSET aMask)"""
10956 return _pcbnew.BOARD_DESIGN_SETTINGS_SetEnabledLayers(self, aMask)
10957
10958 def IsLayerEnabled(self, aLayerId):
10959 r"""IsLayerEnabled(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayerId) -> bool"""
10960 return _pcbnew.BOARD_DESIGN_SETTINGS_IsLayerEnabled(self, aLayerId)
10961
10963 r"""GetCopperLayerCount(BOARD_DESIGN_SETTINGS self) -> int"""
10964 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCopperLayerCount(self)
10965
10966 def SetCopperLayerCount(self, aNewLayerCount):
10967 r"""SetCopperLayerCount(BOARD_DESIGN_SETTINGS self, int aNewLayerCount)"""
10968 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCopperLayerCount(self, aNewLayerCount)
10969
10971 r"""GetBoardThickness(BOARD_DESIGN_SETTINGS self) -> int"""
10972 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBoardThickness(self)
10973
10974 def SetBoardThickness(self, aThickness):
10975 r"""SetBoardThickness(BOARD_DESIGN_SETTINGS self, int aThickness)"""
10976 return _pcbnew.BOARD_DESIGN_SETTINGS_SetBoardThickness(self, aThickness)
10977
10978 def GetDRCEpsilon(self):
10979 r"""GetDRCEpsilon(BOARD_DESIGN_SETTINGS self) -> int"""
10980 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDRCEpsilon(self)
10981
10983 r"""GetHolePlatingThickness(BOARD_DESIGN_SETTINGS self) -> int"""
10984 return _pcbnew.BOARD_DESIGN_SETTINGS_GetHolePlatingThickness(self)
10985
10986 def GetLineThickness(self, aLayer):
10987 r"""GetLineThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
10988 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLineThickness(self, aLayer)
10989
10990 def GetTextSize(self, aLayer):
10991 r"""GetTextSize(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
10992 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextSize(self, aLayer)
10993
10994 def GetTextThickness(self, aLayer):
10995 r"""GetTextThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
10996 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextThickness(self, aLayer)
10997
10998 def GetTextItalic(self, aLayer):
10999 r"""GetTextItalic(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
11000 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextItalic(self, aLayer)
11001
11002 def GetTextUpright(self, aLayer):
11003 r"""GetTextUpright(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
11004 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextUpright(self, aLayer)
11005
11006 def GetLayerClass(self, aLayer):
11007 r"""GetLayerClass(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
11008 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLayerClass(self, aLayer)
11009
11010 def SetAuxOrigin(self, aOrigin):
11011 r"""SetAuxOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
11012 return _pcbnew.BOARD_DESIGN_SETTINGS_SetAuxOrigin(self, aOrigin)
11013
11014 def GetAuxOrigin(self):
11015 r"""GetAuxOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
11016 return _pcbnew.BOARD_DESIGN_SETTINGS_GetAuxOrigin(self)
11017
11018 def SetGridOrigin(self, aOrigin):
11019 r"""SetGridOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
11020 return _pcbnew.BOARD_DESIGN_SETTINGS_SetGridOrigin(self, aOrigin)
11021
11022 def GetGridOrigin(self):
11023 r"""GetGridOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
11024 return _pcbnew.BOARD_DESIGN_SETTINGS_GetGridOrigin(self)
11025 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)>)>""")
11026 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)>)>""")
11027 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)>)>""")
11028 m_TeardropParamsList = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_set, doc=r"""m_TeardropParamsList : TEARDROP_PARAMETERS_LIST""")
11029 m_SingleTrackMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SingleTrackMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SingleTrackMeanderSettings_set, doc=r"""m_SingleTrackMeanderSettings : PNS::MEANDER_SETTINGS""")
11030 m_DiffPairMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairMeanderSettings_set, doc=r"""m_DiffPairMeanderSettings : PNS::MEANDER_SETTINGS""")
11031 m_SkewMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SkewMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SkewMeanderSettings_set, doc=r"""m_SkewMeanderSettings : PNS::MEANDER_SETTINGS""")
11032 m_CurrentViaType = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_set, doc=r"""m_CurrentViaType : VIATYPE""")
11033 m_UseConnectedTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_set, doc=r"""m_UseConnectedTrackWidth : bool""")
11034 m_TempOverrideTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_set, doc=r"""m_TempOverrideTrackWidth : bool""")
11035 m_MinClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_set, doc=r"""m_MinClearance : int""")
11036 m_MinConn = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_set, doc=r"""m_MinConn : int""")
11037 m_TrackMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_set, doc=r"""m_TrackMinWidth : int""")
11038 m_ViasMinAnnularWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_set, doc=r"""m_ViasMinAnnularWidth : int""")
11039 m_ViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_set, doc=r"""m_ViasMinSize : int""")
11040 m_MinThroughDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_set, doc=r"""m_MinThroughDrill : int""")
11041 m_MicroViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_set, doc=r"""m_MicroViasMinSize : int""")
11042 m_MicroViasMinDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_set, doc=r"""m_MicroViasMinDrill : int""")
11043 m_CopperEdgeClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_set, doc=r"""m_CopperEdgeClearance : int""")
11044 m_HoleClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_set, doc=r"""m_HoleClearance : int""")
11045 m_HoleToHoleMin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_set, doc=r"""m_HoleToHoleMin : int""")
11046 m_SilkClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_set, doc=r"""m_SilkClearance : int""")
11047 m_MinResolvedSpokes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_set, doc=r"""m_MinResolvedSpokes : int""")
11048 m_MinSilkTextHeight = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_set, doc=r"""m_MinSilkTextHeight : int""")
11049 m_MinSilkTextThickness = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_set, doc=r"""m_MinSilkTextThickness : int""")
11050 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)>)>)>""")
11051 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)>)>""")
11052 m_ZoneKeepExternalFillets = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_set, doc=r"""m_ZoneKeepExternalFillets : bool""")
11053 m_MaxError = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_set, doc=r"""m_MaxError : int""")
11054 m_SolderMaskExpansion = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_set, doc=r"""m_SolderMaskExpansion : int""")
11055 m_SolderMaskMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_set, doc=r"""m_SolderMaskMinWidth : int""")
11056 m_SolderMaskToCopperClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_set, doc=r"""m_SolderMaskToCopperClearance : int""")
11057 m_SolderPasteMargin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_set, doc=r"""m_SolderPasteMargin : int""")
11058 m_SolderPasteMarginRatio = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_set, doc=r"""m_SolderPasteMarginRatio : double""")
11059 m_AllowSoldermaskBridgesInFPs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_set, doc=r"""m_AllowSoldermaskBridgesInFPs : bool""")
11060 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)>""")
11061 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)>)>""")
11062 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""")
11063 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""")
11064 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""")
11065 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""")
11066 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""")
11067 m_DimensionUnitsMode = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_set, doc=r"""m_DimensionUnitsMode : DIM_UNITS_MODE""")
11068 m_DimensionPrecision = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_set, doc=r"""m_DimensionPrecision : DIM_PRECISION""")
11069 m_DimensionUnitsFormat = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_set, doc=r"""m_DimensionUnitsFormat : DIM_UNITS_FORMAT""")
11070 m_DimensionSuppressZeroes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_set, doc=r"""m_DimensionSuppressZeroes : bool""")
11071 m_DimensionTextPosition = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_set, doc=r"""m_DimensionTextPosition : DIM_TEXT_POSITION""")
11072 m_DimensionKeepTextAligned = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_set, doc=r"""m_DimensionKeepTextAligned : bool""")
11073 m_DimensionArrowLength = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_set, doc=r"""m_DimensionArrowLength : int""")
11074 m_DimensionExtensionOffset = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_set, doc=r"""m_DimensionExtensionOffset : int""")
11075 m_StyleFPFields = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPFields_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPFields_set, doc=r"""m_StyleFPFields : bool""")
11076 m_StyleFPText = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPText_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPText_set, doc=r"""m_StyleFPText : bool""")
11077 m_StyleFPShapes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPShapes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPShapes_set, doc=r"""m_StyleFPShapes : bool""")
11078 m_HasStackup = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_set, doc=r"""m_HasStackup : bool""")
11079 m_UseHeightForLengthCalcs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_set, doc=r"""m_UseHeightForLengthCalcs : bool""")
11080
11081 def CloneFrom(self, aOther):
11082 r"""CloneFrom(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther)"""
11083 return _pcbnew.BOARD_DESIGN_SETTINGS_CloneFrom(self, aOther)
11084
11085# Register BOARD_DESIGN_SETTINGS in _pcbnew:
11086_pcbnew.BOARD_DESIGN_SETTINGS_swigregister(BOARD_DESIGN_SETTINGS)
11087
11089 r"""Proxy of C++ NET_SETTINGS class."""
11090
11091 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11092 __repr__ = _swig_repr
11093
11094 def __init__(self, aParent, aPath):
11095 r"""__init__(NET_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> NET_SETTINGS"""
11096 _pcbnew.NET_SETTINGS_swiginit(self, _pcbnew.new_NET_SETTINGS(aParent, aPath))
11097 __swig_destroy__ = _pcbnew.delete_NET_SETTINGS
11098
11099 def __eq__(self, aOther):
11100 r"""__eq__(NET_SETTINGS self, NET_SETTINGS aOther) -> bool"""
11101 return _pcbnew.NET_SETTINGS___eq__(self, aOther)
11102
11103 def __ne__(self, aOther):
11104 r"""__ne__(NET_SETTINGS self, NET_SETTINGS aOther) -> bool"""
11105 return _pcbnew.NET_SETTINGS___ne__(self, aOther)
11106 m_NetClasses = property(_pcbnew.NET_SETTINGS_m_NetClasses_get, _pcbnew.NET_SETTINGS_m_NetClasses_set, doc=r"""m_NetClasses : std::map<(wxString,std::shared_ptr<(NETCLASS)>,std::less<(wxString)>,std::allocator<(std::pair<(q(const).wxString,std::shared_ptr<(NETCLASS)>)>)>)>""")
11107 m_DefaultNetClass = property(_pcbnew.NET_SETTINGS_m_DefaultNetClass_get, _pcbnew.NET_SETTINGS_m_DefaultNetClass_set, doc=r"""m_DefaultNetClass : std::shared_ptr<(NETCLASS)>""")
11108 m_NetClassPatternAssignmentCache = property(_pcbnew.NET_SETTINGS_m_NetClassPatternAssignmentCache_get, _pcbnew.NET_SETTINGS_m_NetClassPatternAssignmentCache_set, doc=r"""m_NetClassPatternAssignmentCache : std::map<(wxString,wxString,std::less<(wxString)>,std::allocator<(std::pair<(q(const).wxString,wxString)>)>)>""")
11109 m_NetColorAssignments = property(_pcbnew.NET_SETTINGS_m_NetColorAssignments_get, _pcbnew.NET_SETTINGS_m_NetColorAssignments_set, doc=r"""m_NetColorAssignments : std::map<(wxString,KIGFX::COLOR4D,std::less<(wxString)>,std::allocator<(std::pair<(q(const).wxString,KIGFX::COLOR4D)>)>)>""")
11110
11111 def GetEffectiveNetClass(self, aNetName):
11112 r"""GetEffectiveNetClass(NET_SETTINGS self, wxString aNetName) -> std::shared_ptr< NETCLASS >"""
11113 return _pcbnew.NET_SETTINGS_GetEffectiveNetClass(self, aNetName)
11114
11115 @staticmethod
11116 def ParseBusVector(aBus, aName, aMemberList):
11117 r"""ParseBusVector(wxString aBus, wxString aName, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11118 return _pcbnew.NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
11119
11120 @staticmethod
11121 def ParseBusGroup(aGroup, name, aMemberList):
11122 r"""ParseBusGroup(wxString aGroup, wxString name, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11123 return _pcbnew.NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
11124
11125# Register NET_SETTINGS in _pcbnew:
11126_pcbnew.NET_SETTINGS_swigregister(NET_SETTINGS)
11127
11128def NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList):
11129 r"""NET_SETTINGS_ParseBusVector(wxString aBus, wxString aName, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11130 return _pcbnew.NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
11131
11132def NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList):
11133 r"""NET_SETTINGS_ParseBusGroup(wxString aGroup, wxString name, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11134 return _pcbnew.NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
11135
11137 r"""Proxy of C++ CN_DISJOINT_NET_ENTRY class."""
11138
11139 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11140 __repr__ = _swig_repr
11141 net = property(_pcbnew.CN_DISJOINT_NET_ENTRY_net_get, _pcbnew.CN_DISJOINT_NET_ENTRY_net_set, doc=r"""net : int""")
11142 a = property(_pcbnew.CN_DISJOINT_NET_ENTRY_a_get, _pcbnew.CN_DISJOINT_NET_ENTRY_a_set, doc=r"""a : p.BOARD_CONNECTED_ITEM""")
11143 b = property(_pcbnew.CN_DISJOINT_NET_ENTRY_b_get, _pcbnew.CN_DISJOINT_NET_ENTRY_b_set, doc=r"""b : p.BOARD_CONNECTED_ITEM""")
11144 anchorA = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_set, doc=r"""anchorA : VECTOR2I""")
11145 anchorB = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_set, doc=r"""anchorB : VECTOR2I""")
11146
11147 def __init__(self):
11148 r"""__init__(CN_DISJOINT_NET_ENTRY self) -> CN_DISJOINT_NET_ENTRY"""
11149 _pcbnew.CN_DISJOINT_NET_ENTRY_swiginit(self, _pcbnew.new_CN_DISJOINT_NET_ENTRY())
11150 __swig_destroy__ = _pcbnew.delete_CN_DISJOINT_NET_ENTRY
11151
11152# Register CN_DISJOINT_NET_ENTRY in _pcbnew:
11153_pcbnew.CN_DISJOINT_NET_ENTRY_swigregister(CN_DISJOINT_NET_ENTRY)
11154
11156 r"""Proxy of C++ RN_DYNAMIC_LINE class."""
11157
11158 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11159 __repr__ = _swig_repr
11160 netCode = property(_pcbnew.RN_DYNAMIC_LINE_netCode_get, _pcbnew.RN_DYNAMIC_LINE_netCode_set, doc=r"""netCode : int""")
11161 a = property(_pcbnew.RN_DYNAMIC_LINE_a_get, _pcbnew.RN_DYNAMIC_LINE_a_set, doc=r"""a : VECTOR2I""")
11162 b = property(_pcbnew.RN_DYNAMIC_LINE_b_get, _pcbnew.RN_DYNAMIC_LINE_b_set, doc=r"""b : VECTOR2I""")
11163
11164 def __init__(self):
11165 r"""__init__(RN_DYNAMIC_LINE self) -> RN_DYNAMIC_LINE"""
11166 _pcbnew.RN_DYNAMIC_LINE_swiginit(self, _pcbnew.new_RN_DYNAMIC_LINE())
11167 __swig_destroy__ = _pcbnew.delete_RN_DYNAMIC_LINE
11168
11169# Register RN_DYNAMIC_LINE in _pcbnew:
11170_pcbnew.RN_DYNAMIC_LINE_swigregister(RN_DYNAMIC_LINE)
11171
11172PROPAGATE_MODE_SKIP_CONFLICTS = _pcbnew.PROPAGATE_MODE_SKIP_CONFLICTS
11173
11174PROPAGATE_MODE_RESOLVE_CONFLICTS = _pcbnew.PROPAGATE_MODE_RESOLVE_CONFLICTS
11175
11177 r"""Proxy of C++ CONNECTIVITY_DATA class."""
11178
11179 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11180 __repr__ = _swig_repr
11181 __swig_destroy__ = _pcbnew.delete_CONNECTIVITY_DATA
11182
11183 def __init__(self, *args):
11184 r"""
11185 __init__(CONNECTIVITY_DATA self) -> CONNECTIVITY_DATA
11186 __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
11187 """
11188 _pcbnew.CONNECTIVITY_DATA_swiginit(self, _pcbnew.new_CONNECTIVITY_DATA(*args))
11189
11190 def Build(self, *args):
11191 r"""
11192 Build(CONNECTIVITY_DATA self, BOARD aBoard, PROGRESS_REPORTER * aReporter=None) -> bool
11193 Build(CONNECTIVITY_DATA self, std::shared_ptr< CONNECTIVITY_DATA > & aGlobalConnectivity, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aLocalItems)
11194 """
11195 return _pcbnew.CONNECTIVITY_DATA_Build(self, *args)
11196
11197 def Add(self, aItem):
11198 r"""Add(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11199 return _pcbnew.CONNECTIVITY_DATA_Add(self, aItem)
11200
11201 def Remove(self, aItem):
11202 r"""Remove(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11203 return _pcbnew.CONNECTIVITY_DATA_Remove(self, aItem)
11204
11205 def Update(self, aItem):
11206 r"""Update(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11207 return _pcbnew.CONNECTIVITY_DATA_Update(self, aItem)
11208
11209 def Move(self, aDelta):
11210 r"""Move(CONNECTIVITY_DATA self, VECTOR2I aDelta)"""
11211 return _pcbnew.CONNECTIVITY_DATA_Move(self, aDelta)
11212
11213 def ClearRatsnest(self):
11214 r"""ClearRatsnest(CONNECTIVITY_DATA self)"""
11215 return _pcbnew.CONNECTIVITY_DATA_ClearRatsnest(self)
11216
11217 def GetNetCount(self):
11218 r"""GetNetCount(CONNECTIVITY_DATA self) -> int"""
11219 return _pcbnew.CONNECTIVITY_DATA_GetNetCount(self)
11220
11221 def GetRatsnestForNet(self, aNet):
11222 r"""GetRatsnestForNet(CONNECTIVITY_DATA self, int aNet) -> RN_NET *"""
11223 return _pcbnew.CONNECTIVITY_DATA_GetRatsnestForNet(self, aNet)
11224
11225 def PropagateNets(self, aCommit=None):
11226 r"""PropagateNets(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
11227 return _pcbnew.CONNECTIVITY_DATA_PropagateNets(self, aCommit)
11228
11229 def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False):
11230 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)"""
11231 return _pcbnew.CONNECTIVITY_DATA_FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt)
11232
11233 def RecalculateRatsnest(self, aCommit=None):
11234 r"""RecalculateRatsnest(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
11235 return _pcbnew.CONNECTIVITY_DATA_RecalculateRatsnest(self, aCommit)
11236
11237 def GetUnconnectedCount(self, aVisibileOnly):
11238 r"""GetUnconnectedCount(CONNECTIVITY_DATA self, bool aVisibileOnly) -> unsigned int"""
11239 return _pcbnew.CONNECTIVITY_DATA_GetUnconnectedCount(self, aVisibileOnly)
11240
11241 def IsConnectedOnLayer(self, *args):
11242 r"""IsConnectedOnLayer(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, int aLayer, std::initializer_list< KICAD_T > const & aTypes={}) -> bool"""
11243 return _pcbnew.CONNECTIVITY_DATA_IsConnectedOnLayer(self, *args)
11244
11245 def GetNodeCount(self, aNet=-1):
11246 r"""GetNodeCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
11247 return _pcbnew.CONNECTIVITY_DATA_GetNodeCount(self, aNet)
11248
11249 def GetPadCount(self, aNet=-1):
11250 r"""GetPadCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
11251 return _pcbnew.CONNECTIVITY_DATA_GetPadCount(self, aNet)
11252
11253 def GetConnectedTracks(self, aItem):
11254 r"""GetConnectedTracks(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> TRACKS_VEC"""
11255 return _pcbnew.CONNECTIVITY_DATA_GetConnectedTracks(self, aItem)
11256
11257 def GetConnectedPads(self, *args):
11258 r"""
11259 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> PADS_VEC
11260 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, std::set< PAD *,std::less< PAD * >,std::allocator< PAD * > > * pads)
11261 """
11262 return _pcbnew.CONNECTIVITY_DATA_GetConnectedPads(self, *args)
11263
11264 def GetConnectedPadsAndVias(self, aItem, pads, vias):
11265 r"""GetConnectedPadsAndVias(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, PADS_VEC pads, std::vector< PCB_VIA *,std::allocator< PCB_VIA * > > * vias)"""
11266 return _pcbnew.CONNECTIVITY_DATA_GetConnectedPadsAndVias(self, aItem, pads, vias)
11267
11268 def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0):
11269 r"""GetConnectedItemsAtAnchor(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, VECTOR2I aAnchor, std::initializer_list< KICAD_T > const & aTypes, int const & aMaxError=0) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
11270 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError)
11271
11272 def RunOnUnconnectedEdges(self, aFunc):
11273 r"""RunOnUnconnectedEdges(CONNECTIVITY_DATA self, std::function< bool (CN_EDGE &) > aFunc)"""
11274 return _pcbnew.CONNECTIVITY_DATA_RunOnUnconnectedEdges(self, aFunc)
11275
11276 def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None):
11277 r"""TestTrackEndpointDangling(CONNECTIVITY_DATA self, PCB_TRACK aTrack, bool aIgnoreTracksInPads, VECTOR2I aPos=None) -> bool"""
11278 return _pcbnew.CONNECTIVITY_DATA_TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos)
11279
11281 r"""ClearLocalRatsnest(CONNECTIVITY_DATA self)"""
11282 return _pcbnew.CONNECTIVITY_DATA_ClearLocalRatsnest(self)
11283
11285 r"""HideLocalRatsnest(CONNECTIVITY_DATA self)"""
11286 return _pcbnew.CONNECTIVITY_DATA_HideLocalRatsnest(self)
11287
11288 def ComputeLocalRatsnest(self, *args):
11289 r"""ComputeLocalRatsnest(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems, CONNECTIVITY_DATA aDynamicData, VECTOR2I aInternalOffset={ 0, 0 })"""
11290 return _pcbnew.CONNECTIVITY_DATA_ComputeLocalRatsnest(self, *args)
11291
11293 r"""GetLocalRatsnest(CONNECTIVITY_DATA self) -> std::vector< RN_DYNAMIC_LINE,std::allocator< RN_DYNAMIC_LINE > > const &"""
11294 return _pcbnew.CONNECTIVITY_DATA_GetLocalRatsnest(self)
11295
11296 def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False):
11297 r"""GetConnectedItems(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, std::initializer_list< KICAD_T > const & aTypes, bool aIgnoreNetcodes=False) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
11298 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes)
11299
11300 def GetNetItems(self, aNetCode, aTypes):
11301 r"""GetNetItems(CONNECTIVITY_DATA self, int aNetCode, std::initializer_list< KICAD_T > const & aTypes) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
11302 return _pcbnew.CONNECTIVITY_DATA_GetNetItems(self, aNetCode, aTypes)
11303
11304 def BlockRatsnestItems(self, aItems):
11305 r"""BlockRatsnestItems(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems)"""
11306 return _pcbnew.CONNECTIVITY_DATA_BlockRatsnestItems(self, aItems)
11307
11309 r"""GetConnectivityAlgo(CONNECTIVITY_DATA self) -> std::shared_ptr< CN_CONNECTIVITY_ALGO >"""
11310 return _pcbnew.CONNECTIVITY_DATA_GetConnectivityAlgo(self)
11311
11312 def GetLock(self):
11313 r"""GetLock(CONNECTIVITY_DATA self) -> KISPINLOCK &"""
11314 return _pcbnew.CONNECTIVITY_DATA_GetLock(self)
11315
11316 def MarkItemNetAsDirty(self, aItem):
11317 r"""MarkItemNetAsDirty(CONNECTIVITY_DATA self, BOARD_ITEM aItem)"""
11318 return _pcbnew.CONNECTIVITY_DATA_MarkItemNetAsDirty(self, aItem)
11319
11321 r"""RemoveInvalidRefs(CONNECTIVITY_DATA self)"""
11322 return _pcbnew.CONNECTIVITY_DATA_RemoveInvalidRefs(self)
11323
11324 def SetProgressReporter(self, aReporter):
11325 r"""SetProgressReporter(CONNECTIVITY_DATA self, PROGRESS_REPORTER * aReporter)"""
11326 return _pcbnew.CONNECTIVITY_DATA_SetProgressReporter(self, aReporter)
11327
11329 r"""GetNetclassMap(CONNECTIVITY_DATA self) -> std::map< int,wxString,std::less< int >,std::allocator< std::pair< int const,wxString > > > const &"""
11330 return _pcbnew.CONNECTIVITY_DATA_GetNetclassMap(self)
11331
11333 r"""GetFromToCache(CONNECTIVITY_DATA self) -> std::shared_ptr< FROM_TO_CACHE >"""
11334 return _pcbnew.CONNECTIVITY_DATA_GetFromToCache(self)
11335
11336# Register CONNECTIVITY_DATA in _pcbnew:
11337_pcbnew.CONNECTIVITY_DATA_swigregister(CONNECTIVITY_DATA)
11338
11340 r"""Proxy of C++ std::vector< PCB_MARKER * > class."""
11341
11342 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11343 __repr__ = _swig_repr
11344
11345 def iterator(self):
11346 r"""iterator(MARKERS self) -> SwigPyIterator"""
11347 return _pcbnew.MARKERS_iterator(self)
11348 def __iter__(self):
11349 return self.iterator()
11350
11351 def __nonzero__(self):
11352 r"""__nonzero__(MARKERS self) -> bool"""
11353 return _pcbnew.MARKERS___nonzero__(self)
11354
11355 def __bool__(self):
11356 r"""__bool__(MARKERS self) -> bool"""
11357 return _pcbnew.MARKERS___bool__(self)
11358
11359 def __len__(self):
11360 r"""__len__(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11361 return _pcbnew.MARKERS___len__(self)
11362
11363 def __getslice__(self, i, j):
11364 r"""__getslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j) -> MARKERS"""
11365 return _pcbnew.MARKERS___getslice__(self, i, j)
11366
11367 def __setslice__(self, *args):
11368 r"""
11369 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)
11370 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j, MARKERS v)
11371 """
11372 return _pcbnew.MARKERS___setslice__(self, *args)
11373
11374 def __delslice__(self, i, j):
11375 r"""__delslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)"""
11376 return _pcbnew.MARKERS___delslice__(self, i, j)
11377
11378 def __delitem__(self, *args):
11379 r"""
11380 __delitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i)
11381 __delitem__(MARKERS self, PySliceObject * slice)
11382 """
11383 return _pcbnew.MARKERS___delitem__(self, *args)
11384
11385 def __getitem__(self, *args):
11386 r"""
11387 __getitem__(MARKERS self, PySliceObject * slice) -> MARKERS
11388 __getitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i) -> PCB_MARKER
11389 """
11390 return _pcbnew.MARKERS___getitem__(self, *args)
11391
11392 def __setitem__(self, *args):
11393 r"""
11394 __setitem__(MARKERS self, PySliceObject * slice, MARKERS v)
11395 __setitem__(MARKERS self, PySliceObject * slice)
11396 __setitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, PCB_MARKER x)
11397 """
11398 return _pcbnew.MARKERS___setitem__(self, *args)
11399
11400 def pop(self):
11401 r"""pop(MARKERS self) -> PCB_MARKER"""
11402 return _pcbnew.MARKERS_pop(self)
11403
11404 def append(self, x):
11405 r"""append(MARKERS self, PCB_MARKER x)"""
11406 return _pcbnew.MARKERS_append(self, x)
11407
11408 def empty(self):
11409 r"""empty(MARKERS self) -> bool"""
11410 return _pcbnew.MARKERS_empty(self)
11411
11412 def size(self):
11413 r"""size(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11414 return _pcbnew.MARKERS_size(self)
11415
11416 def swap(self, v):
11417 r"""swap(MARKERS self, MARKERS v)"""
11418 return _pcbnew.MARKERS_swap(self, v)
11419
11420 def begin(self):
11421 r"""begin(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
11422 return _pcbnew.MARKERS_begin(self)
11423
11424 def end(self):
11425 r"""end(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
11426 return _pcbnew.MARKERS_end(self)
11427
11428 def rbegin(self):
11429 r"""rbegin(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11430 return _pcbnew.MARKERS_rbegin(self)
11431
11432 def rend(self):
11433 r"""rend(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11434 return _pcbnew.MARKERS_rend(self)
11435
11436 def clear(self):
11437 r"""clear(MARKERS self)"""
11438 return _pcbnew.MARKERS_clear(self)
11439
11440 def get_allocator(self):
11441 r"""get_allocator(MARKERS self) -> std::vector< PCB_MARKER * >::allocator_type"""
11442 return _pcbnew.MARKERS_get_allocator(self)
11443
11444 def pop_back(self):
11445 r"""pop_back(MARKERS self)"""
11446 return _pcbnew.MARKERS_pop_back(self)
11447
11448 def erase(self, *args):
11449 r"""
11450 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator pos) -> std::vector< PCB_MARKER * >::iterator
11451 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator first, std::vector< PCB_MARKER * >::iterator last) -> std::vector< PCB_MARKER * >::iterator
11452 """
11453 return _pcbnew.MARKERS_erase(self, *args)
11454
11455 def __init__(self, *args):
11456 r"""
11457 __init__(MARKERS self) -> MARKERS
11458 __init__(MARKERS self, MARKERS other) -> MARKERS
11459 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size) -> MARKERS
11460 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size, PCB_MARKER value) -> MARKERS
11461 """
11462 _pcbnew.MARKERS_swiginit(self, _pcbnew.new_MARKERS(*args))
11463
11464 def push_back(self, x):
11465 r"""push_back(MARKERS self, PCB_MARKER x)"""
11466 return _pcbnew.MARKERS_push_back(self, x)
11467
11468 def front(self):
11469 r"""front(MARKERS self) -> PCB_MARKER"""
11470 return _pcbnew.MARKERS_front(self)
11471
11472 def back(self):
11473 r"""back(MARKERS self) -> PCB_MARKER"""
11474 return _pcbnew.MARKERS_back(self)
11475
11476 def assign(self, n, x):
11477 r"""assign(MARKERS self, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)"""
11478 return _pcbnew.MARKERS_assign(self, n, x)
11479
11480 def resize(self, *args):
11481 r"""
11482 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size)
11483 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size, PCB_MARKER x)
11484 """
11485 return _pcbnew.MARKERS_resize(self, *args)
11486
11487 def insert(self, *args):
11488 r"""
11489 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, PCB_MARKER x) -> std::vector< PCB_MARKER * >::iterator
11490 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)
11491 """
11492 return _pcbnew.MARKERS_insert(self, *args)
11493
11494 def reserve(self, n):
11495 r"""reserve(MARKERS self, std::vector< PCB_MARKER * >::size_type n)"""
11496 return _pcbnew.MARKERS_reserve(self, n)
11497
11498 def capacity(self):
11499 r"""capacity(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11500 return _pcbnew.MARKERS_capacity(self)
11501 __swig_destroy__ = _pcbnew.delete_MARKERS
11502
11503# Register MARKERS in _pcbnew:
11504_pcbnew.MARKERS_swigregister(MARKERS)
11505
11507 r"""Proxy of C++ std::vector< ZONE * > class."""
11508
11509 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11510 __repr__ = _swig_repr
11511
11512 def iterator(self):
11513 r"""iterator(ZONES self) -> SwigPyIterator"""
11514 return _pcbnew.ZONES_iterator(self)
11515 def __iter__(self):
11516 return self.iterator()
11517
11518 def __nonzero__(self):
11519 r"""__nonzero__(ZONES self) -> bool"""
11520 return _pcbnew.ZONES___nonzero__(self)
11521
11522 def __bool__(self):
11523 r"""__bool__(ZONES self) -> bool"""
11524 return _pcbnew.ZONES___bool__(self)
11525
11526 def __len__(self):
11527 r"""__len__(ZONES self) -> std::vector< ZONE * >::size_type"""
11528 return _pcbnew.ZONES___len__(self)
11529
11530 def __getslice__(self, i, j):
11531 r"""__getslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j) -> ZONES"""
11532 return _pcbnew.ZONES___getslice__(self, i, j)
11533
11534 def __setslice__(self, *args):
11535 r"""
11536 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)
11537 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j, ZONES v)
11538 """
11539 return _pcbnew.ZONES___setslice__(self, *args)
11540
11541 def __delslice__(self, i, j):
11542 r"""__delslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)"""
11543 return _pcbnew.ZONES___delslice__(self, i, j)
11544
11545 def __delitem__(self, *args):
11546 r"""
11547 __delitem__(ZONES self, std::vector< ZONE * >::difference_type i)
11548 __delitem__(ZONES self, PySliceObject * slice)
11549 """
11550 return _pcbnew.ZONES___delitem__(self, *args)
11551
11552 def __getitem__(self, *args):
11553 r"""
11554 __getitem__(ZONES self, PySliceObject * slice) -> ZONES
11555 __getitem__(ZONES self, std::vector< ZONE * >::difference_type i) -> ZONE
11556 """
11557 return _pcbnew.ZONES___getitem__(self, *args)
11558
11559 def __setitem__(self, *args):
11560 r"""
11561 __setitem__(ZONES self, PySliceObject * slice, ZONES v)
11562 __setitem__(ZONES self, PySliceObject * slice)
11563 __setitem__(ZONES self, std::vector< ZONE * >::difference_type i, ZONE x)
11564 """
11565 return _pcbnew.ZONES___setitem__(self, *args)
11566
11567 def pop(self):
11568 r"""pop(ZONES self) -> ZONE"""
11569 return _pcbnew.ZONES_pop(self)
11570
11571 def append(self, x):
11572 r"""append(ZONES self, ZONE x)"""
11573 return _pcbnew.ZONES_append(self, x)
11574
11575 def empty(self):
11576 r"""empty(ZONES self) -> bool"""
11577 return _pcbnew.ZONES_empty(self)
11578
11579 def size(self):
11580 r"""size(ZONES self) -> std::vector< ZONE * >::size_type"""
11581 return _pcbnew.ZONES_size(self)
11582
11583 def swap(self, v):
11584 r"""swap(ZONES self, ZONES v)"""
11585 return _pcbnew.ZONES_swap(self, v)
11586
11587 def begin(self):
11588 r"""begin(ZONES self) -> std::vector< ZONE * >::iterator"""
11589 return _pcbnew.ZONES_begin(self)
11590
11591 def end(self):
11592 r"""end(ZONES self) -> std::vector< ZONE * >::iterator"""
11593 return _pcbnew.ZONES_end(self)
11594
11595 def rbegin(self):
11596 r"""rbegin(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
11597 return _pcbnew.ZONES_rbegin(self)
11598
11599 def rend(self):
11600 r"""rend(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
11601 return _pcbnew.ZONES_rend(self)
11602
11603 def clear(self):
11604 r"""clear(ZONES self)"""
11605 return _pcbnew.ZONES_clear(self)
11606
11607 def get_allocator(self):
11608 r"""get_allocator(ZONES self) -> std::vector< ZONE * >::allocator_type"""
11609 return _pcbnew.ZONES_get_allocator(self)
11610
11611 def pop_back(self):
11612 r"""pop_back(ZONES self)"""
11613 return _pcbnew.ZONES_pop_back(self)
11614
11615 def erase(self, *args):
11616 r"""
11617 erase(ZONES self, std::vector< ZONE * >::iterator pos) -> std::vector< ZONE * >::iterator
11618 erase(ZONES self, std::vector< ZONE * >::iterator first, std::vector< ZONE * >::iterator last) -> std::vector< ZONE * >::iterator
11619 """
11620 return _pcbnew.ZONES_erase(self, *args)
11621
11622 def __init__(self, *args):
11623 r"""
11624 __init__(ZONES self) -> ZONES
11625 __init__(ZONES self, ZONES other) -> ZONES
11626 __init__(ZONES self, std::vector< ZONE * >::size_type size) -> ZONES
11627 __init__(ZONES self, std::vector< ZONE * >::size_type size, ZONE value) -> ZONES
11628 """
11629 _pcbnew.ZONES_swiginit(self, _pcbnew.new_ZONES(*args))
11630
11631 def push_back(self, x):
11632 r"""push_back(ZONES self, ZONE x)"""
11633 return _pcbnew.ZONES_push_back(self, x)
11634
11635 def front(self):
11636 r"""front(ZONES self) -> ZONE"""
11637 return _pcbnew.ZONES_front(self)
11638
11639 def back(self):
11640 r"""back(ZONES self) -> ZONE"""
11641 return _pcbnew.ZONES_back(self)
11642
11643 def assign(self, n, x):
11644 r"""assign(ZONES self, std::vector< ZONE * >::size_type n, ZONE x)"""
11645 return _pcbnew.ZONES_assign(self, n, x)
11646
11647 def resize(self, *args):
11648 r"""
11649 resize(ZONES self, std::vector< ZONE * >::size_type new_size)
11650 resize(ZONES self, std::vector< ZONE * >::size_type new_size, ZONE x)
11651 """
11652 return _pcbnew.ZONES_resize(self, *args)
11653
11654 def insert(self, *args):
11655 r"""
11656 insert(ZONES self, std::vector< ZONE * >::iterator pos, ZONE x) -> std::vector< ZONE * >::iterator
11657 insert(ZONES self, std::vector< ZONE * >::iterator pos, std::vector< ZONE * >::size_type n, ZONE x)
11658 """
11659 return _pcbnew.ZONES_insert(self, *args)
11660
11661 def reserve(self, n):
11662 r"""reserve(ZONES self, std::vector< ZONE * >::size_type n)"""
11663 return _pcbnew.ZONES_reserve(self, n)
11664
11665 def capacity(self):
11666 r"""capacity(ZONES self) -> std::vector< ZONE * >::size_type"""
11667 return _pcbnew.ZONES_capacity(self)
11668 __swig_destroy__ = _pcbnew.delete_ZONES
11669
11670# Register ZONES in _pcbnew:
11671_pcbnew.ZONES_swigregister(ZONES)
11672
11674 r"""Proxy of C++ std::deque< PCB_TRACK * > class."""
11675
11676 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11677 __repr__ = _swig_repr
11678
11679 def iterator(self):
11680 r"""iterator(TRACKS self) -> SwigPyIterator"""
11681 return _pcbnew.TRACKS_iterator(self)
11682 def __iter__(self):
11683 return self.iterator()
11684
11685 def __nonzero__(self):
11686 r"""__nonzero__(TRACKS self) -> bool"""
11687 return _pcbnew.TRACKS___nonzero__(self)
11688
11689 def __bool__(self):
11690 r"""__bool__(TRACKS self) -> bool"""
11691 return _pcbnew.TRACKS___bool__(self)
11692
11693 def __len__(self):
11694 r"""__len__(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
11695 return _pcbnew.TRACKS___len__(self)
11696
11697 def __getslice__(self, i, j):
11698 r"""__getslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j) -> TRACKS"""
11699 return _pcbnew.TRACKS___getslice__(self, i, j)
11700
11701 def __setslice__(self, *args):
11702 r"""
11703 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)
11704 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j, TRACKS v)
11705 """
11706 return _pcbnew.TRACKS___setslice__(self, *args)
11707
11708 def __delslice__(self, i, j):
11709 r"""__delslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)"""
11710 return _pcbnew.TRACKS___delslice__(self, i, j)
11711
11712 def __delitem__(self, *args):
11713 r"""
11714 __delitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i)
11715 __delitem__(TRACKS self, PySliceObject * slice)
11716 """
11717 return _pcbnew.TRACKS___delitem__(self, *args)
11718
11719 def __getitem__(self, *args):
11720 r"""
11721 __getitem__(TRACKS self, PySliceObject * slice) -> TRACKS
11722 __getitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i) -> PCB_TRACK
11723 """
11724 return _pcbnew.TRACKS___getitem__(self, *args)
11725
11726 def __setitem__(self, *args):
11727 r"""
11728 __setitem__(TRACKS self, PySliceObject * slice, TRACKS v)
11729 __setitem__(TRACKS self, PySliceObject * slice)
11730 __setitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, PCB_TRACK x)
11731 """
11732 return _pcbnew.TRACKS___setitem__(self, *args)
11733
11734 def pop(self):
11735 r"""pop(TRACKS self) -> PCB_TRACK"""
11736 return _pcbnew.TRACKS_pop(self)
11737
11738 def append(self, x):
11739 r"""append(TRACKS self, PCB_TRACK x)"""
11740 return _pcbnew.TRACKS_append(self, x)
11741
11742 def empty(self):
11743 r"""empty(TRACKS self) -> bool"""
11744 return _pcbnew.TRACKS_empty(self)
11745
11746 def size(self):
11747 r"""size(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
11748 return _pcbnew.TRACKS_size(self)
11749
11750 def swap(self, v):
11751 r"""swap(TRACKS self, TRACKS v)"""
11752 return _pcbnew.TRACKS_swap(self, v)
11753
11754 def begin(self):
11755 r"""begin(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
11756 return _pcbnew.TRACKS_begin(self)
11757
11758 def end(self):
11759 r"""end(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
11760 return _pcbnew.TRACKS_end(self)
11761
11762 def rbegin(self):
11763 r"""rbegin(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
11764 return _pcbnew.TRACKS_rbegin(self)
11765
11766 def rend(self):
11767 r"""rend(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
11768 return _pcbnew.TRACKS_rend(self)
11769
11770 def clear(self):
11771 r"""clear(TRACKS self)"""
11772 return _pcbnew.TRACKS_clear(self)
11773
11774 def get_allocator(self):
11775 r"""get_allocator(TRACKS self) -> std::deque< PCB_TRACK * >::allocator_type"""
11776 return _pcbnew.TRACKS_get_allocator(self)
11777
11778 def pop_back(self):
11779 r"""pop_back(TRACKS self)"""
11780 return _pcbnew.TRACKS_pop_back(self)
11781
11782 def erase(self, *args):
11783 r"""
11784 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator pos) -> std::deque< PCB_TRACK * >::iterator
11785 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator first, std::deque< PCB_TRACK * >::iterator last) -> std::deque< PCB_TRACK * >::iterator
11786 """
11787 return _pcbnew.TRACKS_erase(self, *args)
11788
11789 def __init__(self, *args):
11790 r"""
11791 __init__(TRACKS self) -> TRACKS
11792 __init__(TRACKS self, TRACKS other) -> TRACKS
11793 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size) -> TRACKS
11794 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS
11795 """
11796 _pcbnew.TRACKS_swiginit(self, _pcbnew.new_TRACKS(*args))
11797
11798 def push_back(self, x):
11799 r"""push_back(TRACKS self, PCB_TRACK x)"""
11800 return _pcbnew.TRACKS_push_back(self, x)
11801
11802 def front(self):
11803 r"""front(TRACKS self) -> PCB_TRACK"""
11804 return _pcbnew.TRACKS_front(self)
11805
11806 def back(self):
11807 r"""back(TRACKS self) -> PCB_TRACK"""
11808 return _pcbnew.TRACKS_back(self)
11809
11810 def assign(self, n, x):
11811 r"""assign(TRACKS self, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
11812 return _pcbnew.TRACKS_assign(self, n, x)
11813
11814 def resize(self, *args):
11815 r"""
11816 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size)
11817 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
11818 """
11819 return _pcbnew.TRACKS_resize(self, *args)
11820
11821 def insert(self, *args):
11822 r"""
11823 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::deque< PCB_TRACK * >::iterator
11824 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)
11825 """
11826 return _pcbnew.TRACKS_insert(self, *args)
11827
11828 def pop_front(self):
11829 r"""pop_front(TRACKS self)"""
11830 return _pcbnew.TRACKS_pop_front(self)
11831
11832 def push_front(self, x):
11833 r"""push_front(TRACKS self, PCB_TRACK x)"""
11834 return _pcbnew.TRACKS_push_front(self, x)
11835
11836 def __iter__(self):
11837 it = self.iterator()
11838 try:
11839 while True:
11840 item = it.next() # throws StopIteration when iterator reached the end.
11841 yield item.Cast()
11842 except StopIteration:
11843 return
11844
11845 __swig_destroy__ = _pcbnew.delete_TRACKS
11846
11847# Register TRACKS in _pcbnew:
11848_pcbnew.TRACKS_swigregister(TRACKS)
11849
11851 r"""Proxy of C++ std::deque< FOOTPRINT * > class."""
11852
11853 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11854 __repr__ = _swig_repr
11855
11856 def iterator(self):
11857 r"""iterator(FOOTPRINTS self) -> SwigPyIterator"""
11858 return _pcbnew.FOOTPRINTS_iterator(self)
11859 def __iter__(self):
11860 return self.iterator()
11861
11862 def __nonzero__(self):
11863 r"""__nonzero__(FOOTPRINTS self) -> bool"""
11864 return _pcbnew.FOOTPRINTS___nonzero__(self)
11865
11866 def __bool__(self):
11867 r"""__bool__(FOOTPRINTS self) -> bool"""
11868 return _pcbnew.FOOTPRINTS___bool__(self)
11869
11870 def __len__(self):
11871 r"""__len__(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
11872 return _pcbnew.FOOTPRINTS___len__(self)
11873
11874 def __getslice__(self, i, j):
11875 r"""__getslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j) -> FOOTPRINTS"""
11876 return _pcbnew.FOOTPRINTS___getslice__(self, i, j)
11877
11878 def __setslice__(self, *args):
11879 r"""
11880 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)
11881 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j, FOOTPRINTS v)
11882 """
11883 return _pcbnew.FOOTPRINTS___setslice__(self, *args)
11884
11885 def __delslice__(self, i, j):
11886 r"""__delslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)"""
11887 return _pcbnew.FOOTPRINTS___delslice__(self, i, j)
11888
11889 def __delitem__(self, *args):
11890 r"""
11891 __delitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i)
11892 __delitem__(FOOTPRINTS self, PySliceObject * slice)
11893 """
11894 return _pcbnew.FOOTPRINTS___delitem__(self, *args)
11895
11896 def __getitem__(self, *args):
11897 r"""
11898 __getitem__(FOOTPRINTS self, PySliceObject * slice) -> FOOTPRINTS
11899 __getitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i) -> FOOTPRINT
11900 """
11901 return _pcbnew.FOOTPRINTS___getitem__(self, *args)
11902
11903 def __setitem__(self, *args):
11904 r"""
11905 __setitem__(FOOTPRINTS self, PySliceObject * slice, FOOTPRINTS v)
11906 __setitem__(FOOTPRINTS self, PySliceObject * slice)
11907 __setitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, FOOTPRINT x)
11908 """
11909 return _pcbnew.FOOTPRINTS___setitem__(self, *args)
11910
11911 def pop(self):
11912 r"""pop(FOOTPRINTS self) -> FOOTPRINT"""
11913 return _pcbnew.FOOTPRINTS_pop(self)
11914
11915 def append(self, x):
11916 r"""append(FOOTPRINTS self, FOOTPRINT x)"""
11917 return _pcbnew.FOOTPRINTS_append(self, x)
11918
11919 def empty(self):
11920 r"""empty(FOOTPRINTS self) -> bool"""
11921 return _pcbnew.FOOTPRINTS_empty(self)
11922
11923 def size(self):
11924 r"""size(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
11925 return _pcbnew.FOOTPRINTS_size(self)
11926
11927 def swap(self, v):
11928 r"""swap(FOOTPRINTS self, FOOTPRINTS v)"""
11929 return _pcbnew.FOOTPRINTS_swap(self, v)
11930
11931 def begin(self):
11932 r"""begin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
11933 return _pcbnew.FOOTPRINTS_begin(self)
11934
11935 def end(self):
11936 r"""end(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
11937 return _pcbnew.FOOTPRINTS_end(self)
11938
11939 def rbegin(self):
11940 r"""rbegin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
11941 return _pcbnew.FOOTPRINTS_rbegin(self)
11942
11943 def rend(self):
11944 r"""rend(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
11945 return _pcbnew.FOOTPRINTS_rend(self)
11946
11947 def clear(self):
11948 r"""clear(FOOTPRINTS self)"""
11949 return _pcbnew.FOOTPRINTS_clear(self)
11950
11951 def get_allocator(self):
11952 r"""get_allocator(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::allocator_type"""
11953 return _pcbnew.FOOTPRINTS_get_allocator(self)
11954
11955 def pop_back(self):
11956 r"""pop_back(FOOTPRINTS self)"""
11957 return _pcbnew.FOOTPRINTS_pop_back(self)
11958
11959 def erase(self, *args):
11960 r"""
11961 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos) -> std::deque< FOOTPRINT * >::iterator
11962 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator first, std::deque< FOOTPRINT * >::iterator last) -> std::deque< FOOTPRINT * >::iterator
11963 """
11964 return _pcbnew.FOOTPRINTS_erase(self, *args)
11965
11966 def __init__(self, *args):
11967 r"""
11968 __init__(FOOTPRINTS self) -> FOOTPRINTS
11969 __init__(FOOTPRINTS self, FOOTPRINTS other) -> FOOTPRINTS
11970 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size) -> FOOTPRINTS
11971 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size, FOOTPRINT value) -> FOOTPRINTS
11972 """
11973 _pcbnew.FOOTPRINTS_swiginit(self, _pcbnew.new_FOOTPRINTS(*args))
11974
11975 def push_back(self, x):
11976 r"""push_back(FOOTPRINTS self, FOOTPRINT x)"""
11977 return _pcbnew.FOOTPRINTS_push_back(self, x)
11978
11979 def front(self):
11980 r"""front(FOOTPRINTS self) -> FOOTPRINT"""
11981 return _pcbnew.FOOTPRINTS_front(self)
11982
11983 def back(self):
11984 r"""back(FOOTPRINTS self) -> FOOTPRINT"""
11985 return _pcbnew.FOOTPRINTS_back(self)
11986
11987 def assign(self, n, x):
11988 r"""assign(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)"""
11989 return _pcbnew.FOOTPRINTS_assign(self, n, x)
11990
11991 def resize(self, *args):
11992 r"""
11993 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size)
11994 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size, FOOTPRINT x)
11995 """
11996 return _pcbnew.FOOTPRINTS_resize(self, *args)
11997
11998 def insert(self, *args):
11999 r"""
12000 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, FOOTPRINT x) -> std::deque< FOOTPRINT * >::iterator
12001 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)
12002 """
12003 return _pcbnew.FOOTPRINTS_insert(self, *args)
12004
12005 def pop_front(self):
12006 r"""pop_front(FOOTPRINTS self)"""
12007 return _pcbnew.FOOTPRINTS_pop_front(self)
12008
12009 def push_front(self, x):
12010 r"""push_front(FOOTPRINTS self, FOOTPRINT x)"""
12011 return _pcbnew.FOOTPRINTS_push_front(self, x)
12012 __swig_destroy__ = _pcbnew.delete_FOOTPRINTS
12013
12014# Register FOOTPRINTS in _pcbnew:
12015_pcbnew.FOOTPRINTS_swigregister(FOOTPRINTS)
12016
12018 r"""Proxy of C++ std::deque< PCB_GROUP * > class."""
12019
12020 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12021 __repr__ = _swig_repr
12022
12023 def iterator(self):
12024 r"""iterator(GROUPS self) -> SwigPyIterator"""
12025 return _pcbnew.GROUPS_iterator(self)
12026 def __iter__(self):
12027 return self.iterator()
12028
12029 def __nonzero__(self):
12030 r"""__nonzero__(GROUPS self) -> bool"""
12031 return _pcbnew.GROUPS___nonzero__(self)
12032
12033 def __bool__(self):
12034 r"""__bool__(GROUPS self) -> bool"""
12035 return _pcbnew.GROUPS___bool__(self)
12036
12037 def __len__(self):
12038 r"""__len__(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
12039 return _pcbnew.GROUPS___len__(self)
12040
12041 def __getslice__(self, i, j):
12042 r"""__getslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j) -> GROUPS"""
12043 return _pcbnew.GROUPS___getslice__(self, i, j)
12044
12045 def __setslice__(self, *args):
12046 r"""
12047 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)
12048 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j, GROUPS v)
12049 """
12050 return _pcbnew.GROUPS___setslice__(self, *args)
12051
12052 def __delslice__(self, i, j):
12053 r"""__delslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)"""
12054 return _pcbnew.GROUPS___delslice__(self, i, j)
12055
12056 def __delitem__(self, *args):
12057 r"""
12058 __delitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i)
12059 __delitem__(GROUPS self, PySliceObject * slice)
12060 """
12061 return _pcbnew.GROUPS___delitem__(self, *args)
12062
12063 def __getitem__(self, *args):
12064 r"""
12065 __getitem__(GROUPS self, PySliceObject * slice) -> GROUPS
12066 __getitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i) -> PCB_GROUP
12067 """
12068 return _pcbnew.GROUPS___getitem__(self, *args)
12069
12070 def __setitem__(self, *args):
12071 r"""
12072 __setitem__(GROUPS self, PySliceObject * slice, GROUPS v)
12073 __setitem__(GROUPS self, PySliceObject * slice)
12074 __setitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, PCB_GROUP x)
12075 """
12076 return _pcbnew.GROUPS___setitem__(self, *args)
12077
12078 def pop(self):
12079 r"""pop(GROUPS self) -> PCB_GROUP"""
12080 return _pcbnew.GROUPS_pop(self)
12081
12082 def append(self, x):
12083 r"""append(GROUPS self, PCB_GROUP x)"""
12084 return _pcbnew.GROUPS_append(self, x)
12085
12086 def empty(self):
12087 r"""empty(GROUPS self) -> bool"""
12088 return _pcbnew.GROUPS_empty(self)
12089
12090 def size(self):
12091 r"""size(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
12092 return _pcbnew.GROUPS_size(self)
12093
12094 def swap(self, v):
12095 r"""swap(GROUPS self, GROUPS v)"""
12096 return _pcbnew.GROUPS_swap(self, v)
12097
12098 def begin(self):
12099 r"""begin(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
12100 return _pcbnew.GROUPS_begin(self)
12101
12102 def end(self):
12103 r"""end(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
12104 return _pcbnew.GROUPS_end(self)
12105
12106 def rbegin(self):
12107 r"""rbegin(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
12108 return _pcbnew.GROUPS_rbegin(self)
12109
12110 def rend(self):
12111 r"""rend(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
12112 return _pcbnew.GROUPS_rend(self)
12113
12114 def clear(self):
12115 r"""clear(GROUPS self)"""
12116 return _pcbnew.GROUPS_clear(self)
12117
12118 def get_allocator(self):
12119 r"""get_allocator(GROUPS self) -> std::deque< PCB_GROUP * >::allocator_type"""
12120 return _pcbnew.GROUPS_get_allocator(self)
12121
12122 def pop_back(self):
12123 r"""pop_back(GROUPS self)"""
12124 return _pcbnew.GROUPS_pop_back(self)
12125
12126 def erase(self, *args):
12127 r"""
12128 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator pos) -> std::deque< PCB_GROUP * >::iterator
12129 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator first, std::deque< PCB_GROUP * >::iterator last) -> std::deque< PCB_GROUP * >::iterator
12130 """
12131 return _pcbnew.GROUPS_erase(self, *args)
12132
12133 def __init__(self, *args):
12134 r"""
12135 __init__(GROUPS self) -> GROUPS
12136 __init__(GROUPS self, GROUPS other) -> GROUPS
12137 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size) -> GROUPS
12138 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size, PCB_GROUP value) -> GROUPS
12139 """
12140 _pcbnew.GROUPS_swiginit(self, _pcbnew.new_GROUPS(*args))
12141
12142 def push_back(self, x):
12143 r"""push_back(GROUPS self, PCB_GROUP x)"""
12144 return _pcbnew.GROUPS_push_back(self, x)
12145
12146 def front(self):
12147 r"""front(GROUPS self) -> PCB_GROUP"""
12148 return _pcbnew.GROUPS_front(self)
12149
12150 def back(self):
12151 r"""back(GROUPS self) -> PCB_GROUP"""
12152 return _pcbnew.GROUPS_back(self)
12153
12154 def assign(self, n, x):
12155 r"""assign(GROUPS self, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)"""
12156 return _pcbnew.GROUPS_assign(self, n, x)
12157
12158 def resize(self, *args):
12159 r"""
12160 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size)
12161 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size, PCB_GROUP x)
12162 """
12163 return _pcbnew.GROUPS_resize(self, *args)
12164
12165 def insert(self, *args):
12166 r"""
12167 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, PCB_GROUP x) -> std::deque< PCB_GROUP * >::iterator
12168 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)
12169 """
12170 return _pcbnew.GROUPS_insert(self, *args)
12171
12172 def pop_front(self):
12173 r"""pop_front(GROUPS self)"""
12174 return _pcbnew.GROUPS_pop_front(self)
12175
12176 def push_front(self, x):
12177 r"""push_front(GROUPS self, PCB_GROUP x)"""
12178 return _pcbnew.GROUPS_push_front(self, x)
12179 __swig_destroy__ = _pcbnew.delete_GROUPS
12180
12181# Register GROUPS in _pcbnew:
12182_pcbnew.GROUPS_swigregister(GROUPS)
12183
12185 r"""Proxy of C++ std::deque< PCB_GENERATOR * > class."""
12186
12187 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12188 __repr__ = _swig_repr
12189
12190 def iterator(self):
12191 r"""iterator(GENERATORS self) -> SwigPyIterator"""
12192 return _pcbnew.GENERATORS_iterator(self)
12193 def __iter__(self):
12194 return self.iterator()
12195
12196 def __nonzero__(self):
12197 r"""__nonzero__(GENERATORS self) -> bool"""
12198 return _pcbnew.GENERATORS___nonzero__(self)
12199
12200 def __bool__(self):
12201 r"""__bool__(GENERATORS self) -> bool"""
12202 return _pcbnew.GENERATORS___bool__(self)
12203
12204 def __len__(self):
12205 r"""__len__(GENERATORS self) -> std::deque< PCB_GENERATOR * >::size_type"""
12206 return _pcbnew.GENERATORS___len__(self)
12207
12208 def __getslice__(self, i, j):
12209 r"""__getslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j) -> GENERATORS"""
12210 return _pcbnew.GENERATORS___getslice__(self, i, j)
12211
12212 def __setslice__(self, *args):
12213 r"""
12214 __setslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j)
12215 __setslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j, GENERATORS v)
12216 """
12217 return _pcbnew.GENERATORS___setslice__(self, *args)
12218
12219 def __delslice__(self, i, j):
12220 r"""__delslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j)"""
12221 return _pcbnew.GENERATORS___delslice__(self, i, j)
12222
12223 def __delitem__(self, *args):
12224 r"""
12225 __delitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i)
12226 __delitem__(GENERATORS self, PySliceObject * slice)
12227 """
12228 return _pcbnew.GENERATORS___delitem__(self, *args)
12229
12230 def __getitem__(self, *args):
12231 r"""
12232 __getitem__(GENERATORS self, PySliceObject * slice) -> GENERATORS
12233 __getitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i) -> std::deque< PCB_GENERATOR * >::value_type
12234 """
12235 return _pcbnew.GENERATORS___getitem__(self, *args)
12236
12237 def __setitem__(self, *args):
12238 r"""
12239 __setitem__(GENERATORS self, PySliceObject * slice, GENERATORS v)
12240 __setitem__(GENERATORS self, PySliceObject * slice)
12241 __setitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::value_type x)
12242 """
12243 return _pcbnew.GENERATORS___setitem__(self, *args)
12244
12245 def pop(self):
12246 r"""pop(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12247 return _pcbnew.GENERATORS_pop(self)
12248
12249 def append(self, x):
12250 r"""append(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12251 return _pcbnew.GENERATORS_append(self, x)
12252
12253 def empty(self):
12254 r"""empty(GENERATORS self) -> bool"""
12255 return _pcbnew.GENERATORS_empty(self)
12256
12257 def size(self):
12258 r"""size(GENERATORS self) -> std::deque< PCB_GENERATOR * >::size_type"""
12259 return _pcbnew.GENERATORS_size(self)
12260
12261 def swap(self, v):
12262 r"""swap(GENERATORS self, GENERATORS v)"""
12263 return _pcbnew.GENERATORS_swap(self, v)
12264
12265 def begin(self):
12266 r"""begin(GENERATORS self) -> std::deque< PCB_GENERATOR * >::iterator"""
12267 return _pcbnew.GENERATORS_begin(self)
12268
12269 def end(self):
12270 r"""end(GENERATORS self) -> std::deque< PCB_GENERATOR * >::iterator"""
12271 return _pcbnew.GENERATORS_end(self)
12272
12273 def rbegin(self):
12274 r"""rbegin(GENERATORS self) -> std::deque< PCB_GENERATOR * >::reverse_iterator"""
12275 return _pcbnew.GENERATORS_rbegin(self)
12276
12277 def rend(self):
12278 r"""rend(GENERATORS self) -> std::deque< PCB_GENERATOR * >::reverse_iterator"""
12279 return _pcbnew.GENERATORS_rend(self)
12280
12281 def clear(self):
12282 r"""clear(GENERATORS self)"""
12283 return _pcbnew.GENERATORS_clear(self)
12284
12285 def get_allocator(self):
12286 r"""get_allocator(GENERATORS self) -> std::deque< PCB_GENERATOR * >::allocator_type"""
12287 return _pcbnew.GENERATORS_get_allocator(self)
12288
12289 def pop_back(self):
12290 r"""pop_back(GENERATORS self)"""
12291 return _pcbnew.GENERATORS_pop_back(self)
12292
12293 def erase(self, *args):
12294 r"""
12295 erase(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos) -> std::deque< PCB_GENERATOR * >::iterator
12296 erase(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator first, std::deque< PCB_GENERATOR * >::iterator last) -> std::deque< PCB_GENERATOR * >::iterator
12297 """
12298 return _pcbnew.GENERATORS_erase(self, *args)
12299
12300 def __init__(self, *args):
12301 r"""
12302 __init__(GENERATORS self) -> GENERATORS
12303 __init__(GENERATORS self, GENERATORS other) -> GENERATORS
12304 __init__(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type size) -> GENERATORS
12305 __init__(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type size, std::deque< PCB_GENERATOR * >::value_type value) -> GENERATORS
12306 """
12307 _pcbnew.GENERATORS_swiginit(self, _pcbnew.new_GENERATORS(*args))
12308
12309 def push_back(self, x):
12310 r"""push_back(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12311 return _pcbnew.GENERATORS_push_back(self, x)
12312
12313 def front(self):
12314 r"""front(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12315 return _pcbnew.GENERATORS_front(self)
12316
12317 def back(self):
12318 r"""back(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12319 return _pcbnew.GENERATORS_back(self)
12320
12321 def assign(self, n, x):
12322 r"""assign(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type n, std::deque< PCB_GENERATOR * >::value_type x)"""
12323 return _pcbnew.GENERATORS_assign(self, n, x)
12324
12325 def resize(self, *args):
12326 r"""
12327 resize(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type new_size)
12328 resize(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type new_size, std::deque< PCB_GENERATOR * >::value_type x)
12329 """
12330 return _pcbnew.GENERATORS_resize(self, *args)
12331
12332 def insert(self, *args):
12333 r"""
12334 insert(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos, std::deque< PCB_GENERATOR * >::value_type x) -> std::deque< PCB_GENERATOR * >::iterator
12335 insert(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos, std::deque< PCB_GENERATOR * >::size_type n, std::deque< PCB_GENERATOR * >::value_type x)
12336 """
12337 return _pcbnew.GENERATORS_insert(self, *args)
12338
12339 def pop_front(self):
12340 r"""pop_front(GENERATORS self)"""
12341 return _pcbnew.GENERATORS_pop_front(self)
12342
12343 def push_front(self, x):
12344 r"""push_front(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12345 return _pcbnew.GENERATORS_push_front(self, x)
12346 __swig_destroy__ = _pcbnew.delete_GENERATORS
12347
12348# Register GENERATORS in _pcbnew:
12349_pcbnew.GENERATORS_swigregister(GENERATORS)
12350
12352 r"""Proxy of C++ std::deque< BOARD_ITEM * > class."""
12353
12354 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12355 __repr__ = _swig_repr
12356
12357 def iterator(self):
12358 r"""iterator(DRAWINGS self) -> SwigPyIterator"""
12359 return _pcbnew.DRAWINGS_iterator(self)
12360 def __iter__(self):
12361 return self.iterator()
12362
12363 def __nonzero__(self):
12364 r"""__nonzero__(DRAWINGS self) -> bool"""
12365 return _pcbnew.DRAWINGS___nonzero__(self)
12366
12367 def __bool__(self):
12368 r"""__bool__(DRAWINGS self) -> bool"""
12369 return _pcbnew.DRAWINGS___bool__(self)
12370
12371 def __len__(self):
12372 r"""__len__(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
12373 return _pcbnew.DRAWINGS___len__(self)
12374
12375 def __getslice__(self, i, j):
12376 r"""__getslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j) -> DRAWINGS"""
12377 return _pcbnew.DRAWINGS___getslice__(self, i, j)
12378
12379 def __setslice__(self, *args):
12380 r"""
12381 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)
12382 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j, DRAWINGS v)
12383 """
12384 return _pcbnew.DRAWINGS___setslice__(self, *args)
12385
12386 def __delslice__(self, i, j):
12387 r"""__delslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)"""
12388 return _pcbnew.DRAWINGS___delslice__(self, i, j)
12389
12390 def __delitem__(self, *args):
12391 r"""
12392 __delitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i)
12393 __delitem__(DRAWINGS self, PySliceObject * slice)
12394 """
12395 return _pcbnew.DRAWINGS___delitem__(self, *args)
12396
12397 def __getitem__(self, *args):
12398 r"""
12399 __getitem__(DRAWINGS self, PySliceObject * slice) -> DRAWINGS
12400 __getitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i) -> BOARD_ITEM
12401 """
12402 return _pcbnew.DRAWINGS___getitem__(self, *args)
12403
12404 def __setitem__(self, *args):
12405 r"""
12406 __setitem__(DRAWINGS self, PySliceObject * slice, DRAWINGS v)
12407 __setitem__(DRAWINGS self, PySliceObject * slice)
12408 __setitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, BOARD_ITEM x)
12409 """
12410 return _pcbnew.DRAWINGS___setitem__(self, *args)
12411
12412 def pop(self):
12413 r"""pop(DRAWINGS self) -> BOARD_ITEM"""
12414 return _pcbnew.DRAWINGS_pop(self)
12415
12416 def append(self, x):
12417 r"""append(DRAWINGS self, BOARD_ITEM x)"""
12418 return _pcbnew.DRAWINGS_append(self, x)
12419
12420 def empty(self):
12421 r"""empty(DRAWINGS self) -> bool"""
12422 return _pcbnew.DRAWINGS_empty(self)
12423
12424 def size(self):
12425 r"""size(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
12426 return _pcbnew.DRAWINGS_size(self)
12427
12428 def swap(self, v):
12429 r"""swap(DRAWINGS self, DRAWINGS v)"""
12430 return _pcbnew.DRAWINGS_swap(self, v)
12431
12432 def begin(self):
12433 r"""begin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
12434 return _pcbnew.DRAWINGS_begin(self)
12435
12436 def end(self):
12437 r"""end(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
12438 return _pcbnew.DRAWINGS_end(self)
12439
12440 def rbegin(self):
12441 r"""rbegin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
12442 return _pcbnew.DRAWINGS_rbegin(self)
12443
12444 def rend(self):
12445 r"""rend(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
12446 return _pcbnew.DRAWINGS_rend(self)
12447
12448 def clear(self):
12449 r"""clear(DRAWINGS self)"""
12450 return _pcbnew.DRAWINGS_clear(self)
12451
12452 def get_allocator(self):
12453 r"""get_allocator(DRAWINGS self) -> std::deque< BOARD_ITEM * >::allocator_type"""
12454 return _pcbnew.DRAWINGS_get_allocator(self)
12455
12456 def pop_back(self):
12457 r"""pop_back(DRAWINGS self)"""
12458 return _pcbnew.DRAWINGS_pop_back(self)
12459
12460 def erase(self, *args):
12461 r"""
12462 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos) -> std::deque< BOARD_ITEM * >::iterator
12463 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator first, std::deque< BOARD_ITEM * >::iterator last) -> std::deque< BOARD_ITEM * >::iterator
12464 """
12465 return _pcbnew.DRAWINGS_erase(self, *args)
12466
12467 def __init__(self, *args):
12468 r"""
12469 __init__(DRAWINGS self) -> DRAWINGS
12470 __init__(DRAWINGS self, DRAWINGS other) -> DRAWINGS
12471 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size) -> DRAWINGS
12472 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size, BOARD_ITEM value) -> DRAWINGS
12473 """
12474 _pcbnew.DRAWINGS_swiginit(self, _pcbnew.new_DRAWINGS(*args))
12475
12476 def push_back(self, x):
12477 r"""push_back(DRAWINGS self, BOARD_ITEM x)"""
12478 return _pcbnew.DRAWINGS_push_back(self, x)
12479
12480 def front(self):
12481 r"""front(DRAWINGS self) -> BOARD_ITEM"""
12482 return _pcbnew.DRAWINGS_front(self)
12483
12484 def back(self):
12485 r"""back(DRAWINGS self) -> BOARD_ITEM"""
12486 return _pcbnew.DRAWINGS_back(self)
12487
12488 def assign(self, n, x):
12489 r"""assign(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)"""
12490 return _pcbnew.DRAWINGS_assign(self, n, x)
12491
12492 def resize(self, *args):
12493 r"""
12494 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size)
12495 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size, BOARD_ITEM x)
12496 """
12497 return _pcbnew.DRAWINGS_resize(self, *args)
12498
12499 def insert(self, *args):
12500 r"""
12501 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, BOARD_ITEM x) -> std::deque< BOARD_ITEM * >::iterator
12502 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)
12503 """
12504 return _pcbnew.DRAWINGS_insert(self, *args)
12505
12506 def pop_front(self):
12507 r"""pop_front(DRAWINGS self)"""
12508 return _pcbnew.DRAWINGS_pop_front(self)
12509
12510 def push_front(self, x):
12511 r"""push_front(DRAWINGS self, BOARD_ITEM x)"""
12512 return _pcbnew.DRAWINGS_push_front(self, x)
12513
12514 def __iter__(self):
12515 it = self.iterator()
12516 try:
12517 while True:
12518 item = it.next() # throws StopIteration when iterator reached the end.
12519 yield item.Cast()
12520 except StopIteration:
12521 return
12522
12523 __swig_destroy__ = _pcbnew.delete_DRAWINGS
12524
12525# Register DRAWINGS in _pcbnew:
12526_pcbnew.DRAWINGS_swigregister(DRAWINGS)
12527
12529 r"""Proxy of C++ std::deque< PAD * > class."""
12530
12531 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12532 __repr__ = _swig_repr
12533
12534 def iterator(self):
12535 r"""iterator(PADS self) -> SwigPyIterator"""
12536 return _pcbnew.PADS_iterator(self)
12537 def __iter__(self):
12538 return self.iterator()
12539
12540 def __nonzero__(self):
12541 r"""__nonzero__(PADS self) -> bool"""
12542 return _pcbnew.PADS___nonzero__(self)
12543
12544 def __bool__(self):
12545 r"""__bool__(PADS self) -> bool"""
12546 return _pcbnew.PADS___bool__(self)
12547
12548 def __len__(self):
12549 r"""__len__(PADS self) -> std::deque< PAD * >::size_type"""
12550 return _pcbnew.PADS___len__(self)
12551
12552 def __getslice__(self, i, j):
12553 r"""__getslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j) -> PADS"""
12554 return _pcbnew.PADS___getslice__(self, i, j)
12555
12556 def __setslice__(self, *args):
12557 r"""
12558 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)
12559 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j, PADS v)
12560 """
12561 return _pcbnew.PADS___setslice__(self, *args)
12562
12563 def __delslice__(self, i, j):
12564 r"""__delslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)"""
12565 return _pcbnew.PADS___delslice__(self, i, j)
12566
12567 def __delitem__(self, *args):
12568 r"""
12569 __delitem__(PADS self, std::deque< PAD * >::difference_type i)
12570 __delitem__(PADS self, PySliceObject * slice)
12571 """
12572 return _pcbnew.PADS___delitem__(self, *args)
12573
12574 def __getitem__(self, *args):
12575 r"""
12576 __getitem__(PADS self, PySliceObject * slice) -> PADS
12577 __getitem__(PADS self, std::deque< PAD * >::difference_type i) -> PAD
12578 """
12579 return _pcbnew.PADS___getitem__(self, *args)
12580
12581 def __setitem__(self, *args):
12582 r"""
12583 __setitem__(PADS self, PySliceObject * slice, PADS v)
12584 __setitem__(PADS self, PySliceObject * slice)
12585 __setitem__(PADS self, std::deque< PAD * >::difference_type i, PAD x)
12586 """
12587 return _pcbnew.PADS___setitem__(self, *args)
12588
12589 def pop(self):
12590 r"""pop(PADS self) -> PAD"""
12591 return _pcbnew.PADS_pop(self)
12592
12593 def append(self, x):
12594 r"""append(PADS self, PAD x)"""
12595 return _pcbnew.PADS_append(self, x)
12596
12597 def empty(self):
12598 r"""empty(PADS self) -> bool"""
12599 return _pcbnew.PADS_empty(self)
12600
12601 def size(self):
12602 r"""size(PADS self) -> std::deque< PAD * >::size_type"""
12603 return _pcbnew.PADS_size(self)
12604
12605 def swap(self, v):
12606 r"""swap(PADS self, PADS v)"""
12607 return _pcbnew.PADS_swap(self, v)
12608
12609 def begin(self):
12610 r"""begin(PADS self) -> std::deque< PAD * >::iterator"""
12611 return _pcbnew.PADS_begin(self)
12612
12613 def end(self):
12614 r"""end(PADS self) -> std::deque< PAD * >::iterator"""
12615 return _pcbnew.PADS_end(self)
12616
12617 def rbegin(self):
12618 r"""rbegin(PADS self) -> std::deque< PAD * >::reverse_iterator"""
12619 return _pcbnew.PADS_rbegin(self)
12620
12621 def rend(self):
12622 r"""rend(PADS self) -> std::deque< PAD * >::reverse_iterator"""
12623 return _pcbnew.PADS_rend(self)
12624
12625 def clear(self):
12626 r"""clear(PADS self)"""
12627 return _pcbnew.PADS_clear(self)
12628
12629 def get_allocator(self):
12630 r"""get_allocator(PADS self) -> std::deque< PAD * >::allocator_type"""
12631 return _pcbnew.PADS_get_allocator(self)
12632
12633 def pop_back(self):
12634 r"""pop_back(PADS self)"""
12635 return _pcbnew.PADS_pop_back(self)
12636
12637 def erase(self, *args):
12638 r"""
12639 erase(PADS self, std::deque< PAD * >::iterator pos) -> std::deque< PAD * >::iterator
12640 erase(PADS self, std::deque< PAD * >::iterator first, std::deque< PAD * >::iterator last) -> std::deque< PAD * >::iterator
12641 """
12642 return _pcbnew.PADS_erase(self, *args)
12643
12644 def __init__(self, *args):
12645 r"""
12646 __init__(PADS self) -> PADS
12647 __init__(PADS self, PADS other) -> PADS
12648 __init__(PADS self, std::deque< PAD * >::size_type size) -> PADS
12649 __init__(PADS self, std::deque< PAD * >::size_type size, PAD value) -> PADS
12650 """
12651 _pcbnew.PADS_swiginit(self, _pcbnew.new_PADS(*args))
12652
12653 def push_back(self, x):
12654 r"""push_back(PADS self, PAD x)"""
12655 return _pcbnew.PADS_push_back(self, x)
12656
12657 def front(self):
12658 r"""front(PADS self) -> PAD"""
12659 return _pcbnew.PADS_front(self)
12660
12661 def back(self):
12662 r"""back(PADS self) -> PAD"""
12663 return _pcbnew.PADS_back(self)
12664
12665 def assign(self, n, x):
12666 r"""assign(PADS self, std::deque< PAD * >::size_type n, PAD x)"""
12667 return _pcbnew.PADS_assign(self, n, x)
12668
12669 def resize(self, *args):
12670 r"""
12671 resize(PADS self, std::deque< PAD * >::size_type new_size)
12672 resize(PADS self, std::deque< PAD * >::size_type new_size, PAD x)
12673 """
12674 return _pcbnew.PADS_resize(self, *args)
12675
12676 def insert(self, *args):
12677 r"""
12678 insert(PADS self, std::deque< PAD * >::iterator pos, PAD x) -> std::deque< PAD * >::iterator
12679 insert(PADS self, std::deque< PAD * >::iterator pos, std::deque< PAD * >::size_type n, PAD x)
12680 """
12681 return _pcbnew.PADS_insert(self, *args)
12682
12683 def pop_front(self):
12684 r"""pop_front(PADS self)"""
12685 return _pcbnew.PADS_pop_front(self)
12686
12687 def push_front(self, x):
12688 r"""push_front(PADS self, PAD x)"""
12689 return _pcbnew.PADS_push_front(self, x)
12690 __swig_destroy__ = _pcbnew.delete_PADS
12691
12692# Register PADS in _pcbnew:
12693_pcbnew.PADS_swigregister(PADS)
12694
12696 r"""Proxy of C++ std::deque< PCB_FIELD * > class."""
12697
12698 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12699 __repr__ = _swig_repr
12700
12701 def iterator(self):
12702 r"""iterator(PCB_FIELDS self) -> SwigPyIterator"""
12703 return _pcbnew.PCB_FIELDS_iterator(self)
12704 def __iter__(self):
12705 return self.iterator()
12706
12707 def __nonzero__(self):
12708 r"""__nonzero__(PCB_FIELDS self) -> bool"""
12709 return _pcbnew.PCB_FIELDS___nonzero__(self)
12710
12711 def __bool__(self):
12712 r"""__bool__(PCB_FIELDS self) -> bool"""
12713 return _pcbnew.PCB_FIELDS___bool__(self)
12714
12715 def __len__(self):
12716 r"""__len__(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::size_type"""
12717 return _pcbnew.PCB_FIELDS___len__(self)
12718
12719 def __getslice__(self, i, j):
12720 r"""__getslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j) -> PCB_FIELDS"""
12721 return _pcbnew.PCB_FIELDS___getslice__(self, i, j)
12722
12723 def __setslice__(self, *args):
12724 r"""
12725 __setslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j)
12726 __setslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j, PCB_FIELDS v)
12727 """
12728 return _pcbnew.PCB_FIELDS___setslice__(self, *args)
12729
12730 def __delslice__(self, i, j):
12731 r"""__delslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j)"""
12732 return _pcbnew.PCB_FIELDS___delslice__(self, i, j)
12733
12734 def __delitem__(self, *args):
12735 r"""
12736 __delitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i)
12737 __delitem__(PCB_FIELDS self, PySliceObject * slice)
12738 """
12739 return _pcbnew.PCB_FIELDS___delitem__(self, *args)
12740
12741 def __getitem__(self, *args):
12742 r"""
12743 __getitem__(PCB_FIELDS self, PySliceObject * slice) -> PCB_FIELDS
12744 __getitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i) -> PCB_FIELD
12745 """
12746 return _pcbnew.PCB_FIELDS___getitem__(self, *args)
12747
12748 def __setitem__(self, *args):
12749 r"""
12750 __setitem__(PCB_FIELDS self, PySliceObject * slice, PCB_FIELDS v)
12751 __setitem__(PCB_FIELDS self, PySliceObject * slice)
12752 __setitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, PCB_FIELD x)
12753 """
12754 return _pcbnew.PCB_FIELDS___setitem__(self, *args)
12755
12756 def pop(self):
12757 r"""pop(PCB_FIELDS self) -> PCB_FIELD"""
12758 return _pcbnew.PCB_FIELDS_pop(self)
12759
12760 def append(self, x):
12761 r"""append(PCB_FIELDS self, PCB_FIELD x)"""
12762 return _pcbnew.PCB_FIELDS_append(self, x)
12763
12764 def empty(self):
12765 r"""empty(PCB_FIELDS self) -> bool"""
12766 return _pcbnew.PCB_FIELDS_empty(self)
12767
12768 def size(self):
12769 r"""size(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::size_type"""
12770 return _pcbnew.PCB_FIELDS_size(self)
12771
12772 def swap(self, v):
12773 r"""swap(PCB_FIELDS self, PCB_FIELDS v)"""
12774 return _pcbnew.PCB_FIELDS_swap(self, v)
12775
12776 def begin(self):
12777 r"""begin(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::iterator"""
12778 return _pcbnew.PCB_FIELDS_begin(self)
12779
12780 def end(self):
12781 r"""end(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::iterator"""
12782 return _pcbnew.PCB_FIELDS_end(self)
12783
12784 def rbegin(self):
12785 r"""rbegin(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::reverse_iterator"""
12786 return _pcbnew.PCB_FIELDS_rbegin(self)
12787
12788 def rend(self):
12789 r"""rend(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::reverse_iterator"""
12790 return _pcbnew.PCB_FIELDS_rend(self)
12791
12792 def clear(self):
12793 r"""clear(PCB_FIELDS self)"""
12794 return _pcbnew.PCB_FIELDS_clear(self)
12795
12796 def get_allocator(self):
12797 r"""get_allocator(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::allocator_type"""
12798 return _pcbnew.PCB_FIELDS_get_allocator(self)
12799
12800 def pop_back(self):
12801 r"""pop_back(PCB_FIELDS self)"""
12802 return _pcbnew.PCB_FIELDS_pop_back(self)
12803
12804 def erase(self, *args):
12805 r"""
12806 erase(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos) -> std::deque< PCB_FIELD * >::iterator
12807 erase(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator first, std::deque< PCB_FIELD * >::iterator last) -> std::deque< PCB_FIELD * >::iterator
12808 """
12809 return _pcbnew.PCB_FIELDS_erase(self, *args)
12810
12811 def __init__(self, *args):
12812 r"""
12813 __init__(PCB_FIELDS self) -> PCB_FIELDS
12814 __init__(PCB_FIELDS self, PCB_FIELDS other) -> PCB_FIELDS
12815 __init__(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type size) -> PCB_FIELDS
12816 __init__(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type size, PCB_FIELD value) -> PCB_FIELDS
12817 """
12818 _pcbnew.PCB_FIELDS_swiginit(self, _pcbnew.new_PCB_FIELDS(*args))
12819
12820 def push_back(self, x):
12821 r"""push_back(PCB_FIELDS self, PCB_FIELD x)"""
12822 return _pcbnew.PCB_FIELDS_push_back(self, x)
12823
12824 def front(self):
12825 r"""front(PCB_FIELDS self) -> PCB_FIELD"""
12826 return _pcbnew.PCB_FIELDS_front(self)
12827
12828 def back(self):
12829 r"""back(PCB_FIELDS self) -> PCB_FIELD"""
12830 return _pcbnew.PCB_FIELDS_back(self)
12831
12832 def assign(self, n, x):
12833 r"""assign(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type n, PCB_FIELD x)"""
12834 return _pcbnew.PCB_FIELDS_assign(self, n, x)
12835
12836 def resize(self, *args):
12837 r"""
12838 resize(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type new_size)
12839 resize(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type new_size, PCB_FIELD x)
12840 """
12841 return _pcbnew.PCB_FIELDS_resize(self, *args)
12842
12843 def insert(self, *args):
12844 r"""
12845 insert(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos, PCB_FIELD x) -> std::deque< PCB_FIELD * >::iterator
12846 insert(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos, std::deque< PCB_FIELD * >::size_type n, PCB_FIELD x)
12847 """
12848 return _pcbnew.PCB_FIELDS_insert(self, *args)
12849
12850 def pop_front(self):
12851 r"""pop_front(PCB_FIELDS self)"""
12852 return _pcbnew.PCB_FIELDS_pop_front(self)
12853
12854 def push_front(self, x):
12855 r"""push_front(PCB_FIELDS self, PCB_FIELD x)"""
12856 return _pcbnew.PCB_FIELDS_push_front(self, x)
12857 __swig_destroy__ = _pcbnew.delete_PCB_FIELDS
12858
12859# Register PCB_FIELDS in _pcbnew:
12860_pcbnew.PCB_FIELDS_swigregister(PCB_FIELDS)
12861
12862PAD_SHAPE_CIRCLE = _pcbnew.PAD_SHAPE_CIRCLE
12863
12864PAD_SHAPE_RECTANGLE = _pcbnew.PAD_SHAPE_RECTANGLE
12865
12866PAD_SHAPE_OVAL = _pcbnew.PAD_SHAPE_OVAL
12867
12868PAD_SHAPE_TRAPEZOID = _pcbnew.PAD_SHAPE_TRAPEZOID
12869
12870PAD_SHAPE_ROUNDRECT = _pcbnew.PAD_SHAPE_ROUNDRECT
12871
12872PAD_SHAPE_CHAMFERED_RECT = _pcbnew.PAD_SHAPE_CHAMFERED_RECT
12873
12874PAD_SHAPE_CUSTOM = _pcbnew.PAD_SHAPE_CUSTOM
12875
12876
12878 r"""PAD_SHAPE_T_asString(PAD_SHAPE a) -> string"""
12879 return _pcbnew.PAD_SHAPE_T_asString(a)
12880PAD_DRILL_SHAPE_CIRCLE = _pcbnew.PAD_DRILL_SHAPE_CIRCLE
12881
12882PAD_DRILL_SHAPE_OBLONG = _pcbnew.PAD_DRILL_SHAPE_OBLONG
12883
12884PAD_ATTRIB_PTH = _pcbnew.PAD_ATTRIB_PTH
12885
12886PAD_ATTRIB_SMD = _pcbnew.PAD_ATTRIB_SMD
12887
12888PAD_ATTRIB_CONN = _pcbnew.PAD_ATTRIB_CONN
12889
12890PAD_ATTRIB_NPTH = _pcbnew.PAD_ATTRIB_NPTH
12891
12892PAD_PROP_NONE = _pcbnew.PAD_PROP_NONE
12893
12894PAD_PROP_BGA = _pcbnew.PAD_PROP_BGA
12895
12896PAD_PROP_FIDUCIAL_GLBL = _pcbnew.PAD_PROP_FIDUCIAL_GLBL
12897
12898PAD_PROP_FIDUCIAL_LOCAL = _pcbnew.PAD_PROP_FIDUCIAL_LOCAL
12899
12900PAD_PROP_TESTPOINT = _pcbnew.PAD_PROP_TESTPOINT
12901
12902PAD_PROP_HEATSINK = _pcbnew.PAD_PROP_HEATSINK
12903
12904PAD_PROP_CASTELLATED = _pcbnew.PAD_PROP_CASTELLATED
12905
12906CUST_PAD_SHAPE_IN_ZONE_OUTLINE = _pcbnew.CUST_PAD_SHAPE_IN_ZONE_OUTLINE
12907
12908CUST_PAD_SHAPE_IN_ZONE_CONVEXHULL = _pcbnew.CUST_PAD_SHAPE_IN_ZONE_CONVEXHULL
12909
12911 r"""Proxy of C++ PAD class."""
12912
12913 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12914 __repr__ = _swig_repr
12915
12916 def __init__(self, *args):
12917 r"""
12918 __init__(PAD self, FOOTPRINT parent) -> PAD
12919 __init__(PAD self, PAD aPad) -> PAD
12920 """
12921 _pcbnew.PAD_swiginit(self, _pcbnew.new_PAD(*args))
12922
12923 @staticmethod
12924 def PTHMask():
12925 r"""PTHMask() -> LSET"""
12926 return _pcbnew.PAD_PTHMask()
12927
12928 @staticmethod
12929 def SMDMask():
12930 r"""SMDMask() -> LSET"""
12931 return _pcbnew.PAD_SMDMask()
12932
12933 @staticmethod
12935 r"""ConnSMDMask() -> LSET"""
12936 return _pcbnew.PAD_ConnSMDMask()
12937
12938 @staticmethod
12940 r"""UnplatedHoleMask() -> LSET"""
12941 return _pcbnew.PAD_UnplatedHoleMask()
12942
12943 @staticmethod
12945 r"""ApertureMask() -> LSET"""
12946 return _pcbnew.PAD_ApertureMask()
12947
12948 @staticmethod
12949 def ClassOf(aItem):
12950 r"""ClassOf(EDA_ITEM aItem) -> bool"""
12951 return _pcbnew.PAD_ClassOf(aItem)
12952
12953 def ImportSettingsFrom(self, aMasterPad):
12954 r"""ImportSettingsFrom(PAD self, PAD aMasterPad)"""
12955 return _pcbnew.PAD_ImportSettingsFrom(self, aMasterPad)
12956
12957 def IsFlipped(self):
12958 r"""IsFlipped(PAD self) -> bool"""
12959 return _pcbnew.PAD_IsFlipped(self)
12960
12961 def SetNumber(self, aNumber):
12962 r"""SetNumber(PAD self, wxString aNumber)"""
12963 return _pcbnew.PAD_SetNumber(self, aNumber)
12964
12965 def GetNumber(self):
12966 r"""GetNumber(PAD self) -> wxString"""
12967 return _pcbnew.PAD_GetNumber(self)
12968
12969 def CanHaveNumber(self):
12970 r"""CanHaveNumber(PAD self) -> bool"""
12971 return _pcbnew.PAD_CanHaveNumber(self)
12972
12973 def SetPinFunction(self, aName):
12974 r"""SetPinFunction(PAD self, wxString aName)"""
12975 return _pcbnew.PAD_SetPinFunction(self, aName)
12976
12978 r"""GetPinFunction(PAD self) -> wxString"""
12979 return _pcbnew.PAD_GetPinFunction(self)
12980
12981 def SetPinType(self, aType):
12982 r"""SetPinType(PAD self, wxString aType)"""
12983 return _pcbnew.PAD_SetPinType(self, aType)
12984
12985 def GetPinType(self):
12986 r"""GetPinType(PAD self) -> wxString"""
12987 return _pcbnew.PAD_GetPinType(self)
12988
12989 def SameLogicalPadAs(self, aOther):
12990 r"""SameLogicalPadAs(PAD self, PAD aOther) -> bool"""
12991 return _pcbnew.PAD_SameLogicalPadAs(self, aOther)
12992
12993 def SharesNetTieGroup(self, aOther):
12994 r"""SharesNetTieGroup(PAD self, PAD aOther) -> bool"""
12995 return _pcbnew.PAD_SharesNetTieGroup(self, aOther)
12996
12998 r"""IsNoConnectPad(PAD self) -> bool"""
12999 return _pcbnew.PAD_IsNoConnectPad(self)
13000
13001 def IsFreePad(self):
13002 r"""IsFreePad(PAD self) -> bool"""
13003 return _pcbnew.PAD_IsFreePad(self)
13004
13005 def SetShape(self, aShape):
13006 r"""SetShape(PAD self, PAD_SHAPE aShape)"""
13007 return _pcbnew.PAD_SetShape(self, aShape)
13008
13009 def GetShape(self):
13010 r"""GetShape(PAD self) -> PAD_SHAPE"""
13011 return _pcbnew.PAD_GetShape(self)
13012
13014 r"""GetAnchorPadShape(PAD self) -> PAD_SHAPE"""
13015 return _pcbnew.PAD_GetAnchorPadShape(self)
13016
13018 r"""GetCustomShapeInZoneOpt(PAD self) -> CUST_PAD_SHAPE_IN_ZONE"""
13019 return _pcbnew.PAD_GetCustomShapeInZoneOpt(self)
13020
13021 def SetCustomShapeInZoneOpt(self, aOption):
13022 r"""SetCustomShapeInZoneOpt(PAD self, CUST_PAD_SHAPE_IN_ZONE aOption)"""
13023 return _pcbnew.PAD_SetCustomShapeInZoneOpt(self, aOption)
13024
13025 def SetAnchorPadShape(self, aShape):
13026 r"""SetAnchorPadShape(PAD self, PAD_SHAPE aShape)"""
13027 return _pcbnew.PAD_SetAnchorPadShape(self, aShape)
13028
13029 def SetY(self, y):
13030 r"""SetY(PAD self, int y)"""
13031 return _pcbnew.PAD_SetY(self, y)
13032
13033 def SetX(self, x):
13034 r"""SetX(PAD self, int x)"""
13035 return _pcbnew.PAD_SetX(self, x)
13036
13037 def SetSize(self, aSize):
13038 r"""SetSize(PAD self, VECTOR2I aSize)"""
13039 return _pcbnew.PAD_SetSize(self, aSize)
13040
13041 def GetSize(self):
13042 r"""GetSize(PAD self) -> VECTOR2I"""
13043 return _pcbnew.PAD_GetSize(self)
13044
13045 def SetSizeX(self, aX):
13046 r"""SetSizeX(PAD self, int const aX)"""
13047 return _pcbnew.PAD_SetSizeX(self, aX)
13048
13049 def GetSizeX(self):
13050 r"""GetSizeX(PAD self) -> int"""
13051 return _pcbnew.PAD_GetSizeX(self)
13052
13053 def SetSizeY(self, aY):
13054 r"""SetSizeY(PAD self, int const aY)"""
13055 return _pcbnew.PAD_SetSizeY(self, aY)
13056
13057 def GetSizeY(self):
13058 r"""GetSizeY(PAD self) -> int"""
13059 return _pcbnew.PAD_GetSizeY(self)
13060
13061 def SetDelta(self, aSize):
13062 r"""SetDelta(PAD self, VECTOR2I aSize)"""
13063 return _pcbnew.PAD_SetDelta(self, aSize)
13064
13065 def GetDelta(self):
13066 r"""GetDelta(PAD self) -> VECTOR2I"""
13067 return _pcbnew.PAD_GetDelta(self)
13068
13069 def SetDrillSize(self, aSize):
13070 r"""SetDrillSize(PAD self, VECTOR2I aSize)"""
13071 return _pcbnew.PAD_SetDrillSize(self, aSize)
13072
13073 def GetDrillSize(self):
13074 r"""GetDrillSize(PAD self) -> VECTOR2I"""
13075 return _pcbnew.PAD_GetDrillSize(self)
13076
13077 def SetDrillSizeX(self, aX):
13078 r"""SetDrillSizeX(PAD self, int const aX)"""
13079 return _pcbnew.PAD_SetDrillSizeX(self, aX)
13080
13081 def GetDrillSizeX(self):
13082 r"""GetDrillSizeX(PAD self) -> int"""
13083 return _pcbnew.PAD_GetDrillSizeX(self)
13084
13085 def SetDrillSizeY(self, aY):
13086 r"""SetDrillSizeY(PAD self, int const aY)"""
13087 return _pcbnew.PAD_SetDrillSizeY(self, aY)
13088
13089 def GetDrillSizeY(self):
13090 r"""GetDrillSizeY(PAD self) -> int"""
13091 return _pcbnew.PAD_GetDrillSizeY(self)
13092
13093 def SetOffset(self, aOffset):
13094 r"""SetOffset(PAD self, VECTOR2I aOffset)"""
13095 return _pcbnew.PAD_SetOffset(self, aOffset)
13096
13097 def GetOffset(self):
13098 r"""GetOffset(PAD self) -> VECTOR2I"""
13099 return _pcbnew.PAD_GetOffset(self)
13100
13101 def AddPrimitivePoly(self, *args):
13102 r"""
13103 AddPrimitivePoly(PAD self, SHAPE_POLY_SET aPoly, int aThickness, bool aFilled)
13104 AddPrimitivePoly(PAD self, VECTOR_VECTOR2I aPoly, int aThickness, bool aFilled)
13105 """
13106 return _pcbnew.PAD_AddPrimitivePoly(self, *args)
13107
13109 r"""MergePrimitivesAsPolygon(PAD self, SHAPE_POLY_SET aMergedPolygon, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
13110 return _pcbnew.PAD_MergePrimitivesAsPolygon(self, *args)
13111
13113 r"""DeletePrimitivesList(PAD self)"""
13114 return _pcbnew.PAD_DeletePrimitivesList(self)
13115
13116 def GetPrimitives(self):
13117 r"""GetPrimitives(PAD self) -> std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const &"""
13118 return _pcbnew.PAD_GetPrimitives(self)
13119
13120 def FlipPrimitives(self, aFlipLeftRight):
13121 r"""FlipPrimitives(PAD self, bool aFlipLeftRight)"""
13122 return _pcbnew.PAD_FlipPrimitives(self, aFlipLeftRight)
13123
13124 def ReplacePrimitives(self, aPrimitivesList):
13125 r"""ReplacePrimitives(PAD self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
13126 return _pcbnew.PAD_ReplacePrimitives(self, aPrimitivesList)
13127
13128 def AppendPrimitives(self, aPrimitivesList):
13129 r"""AppendPrimitives(PAD self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
13130 return _pcbnew.PAD_AppendPrimitives(self, aPrimitivesList)
13131
13132 def AddPrimitiveShape(self, aPrimitive):
13133 r"""AddPrimitiveShape(PAD self, PCB_SHAPE aPrimitive)"""
13134 return _pcbnew.PAD_AddPrimitiveShape(self, aPrimitive)
13135
13136 def SetOrientation(self, aAngle):
13137 r"""SetOrientation(PAD self, EDA_ANGLE aAngle)"""
13138 return _pcbnew.PAD_SetOrientation(self, aAngle)
13139
13140 def SetFPRelativeOrientation(self, aAngle):
13141 r"""SetFPRelativeOrientation(PAD self, EDA_ANGLE aAngle)"""
13142 return _pcbnew.PAD_SetFPRelativeOrientation(self, aAngle)
13143
13145 r"""GetOrientation(PAD self) -> EDA_ANGLE"""
13146 return _pcbnew.PAD_GetOrientation(self)
13147
13149 r"""GetFPRelativeOrientation(PAD self) -> EDA_ANGLE"""
13150 return _pcbnew.PAD_GetFPRelativeOrientation(self)
13151
13152 def SetOrientationDegrees(self, aOrientation):
13153 r"""SetOrientationDegrees(PAD self, double aOrientation)"""
13154 return _pcbnew.PAD_SetOrientationDegrees(self, aOrientation)
13155
13157 r"""GetOrientationDegrees(PAD self) -> double"""
13158 return _pcbnew.PAD_GetOrientationDegrees(self)
13159
13160 def SetDrillShape(self, aShape):
13161 r"""SetDrillShape(PAD self, PAD_DRILL_SHAPE_T aShape)"""
13162 return _pcbnew.PAD_SetDrillShape(self, aShape)
13163
13164 def GetDrillShape(self):
13165 r"""GetDrillShape(PAD self) -> PAD_DRILL_SHAPE_T"""
13166 return _pcbnew.PAD_GetDrillShape(self)
13167
13168 def IsDirty(self):
13169 r"""IsDirty(PAD self) -> bool"""
13170 return _pcbnew.PAD_IsDirty(self)
13171
13172 def SetDirty(self):
13173 r"""SetDirty(PAD self)"""
13174 return _pcbnew.PAD_SetDirty(self)
13175
13176 def SetAttribute(self, aAttribute):
13177 r"""SetAttribute(PAD self, PAD_ATTRIB aAttribute)"""
13178 return _pcbnew.PAD_SetAttribute(self, aAttribute)
13179
13180 def GetAttribute(self):
13181 r"""GetAttribute(PAD self) -> PAD_ATTRIB"""
13182 return _pcbnew.PAD_GetAttribute(self)
13183
13184 def SetProperty(self, aProperty):
13185 r"""SetProperty(PAD self, PAD_PROP aProperty)"""
13186 return _pcbnew.PAD_SetProperty(self, aProperty)
13187
13188 def GetProperty(self):
13189 r"""GetProperty(PAD self) -> PAD_PROP"""
13190 return _pcbnew.PAD_GetProperty(self)
13191
13192 def IsAperturePad(self):
13193 r"""IsAperturePad(PAD self) -> bool"""
13194 return _pcbnew.PAD_IsAperturePad(self)
13195
13196 def SetPadToDieLength(self, aLength):
13197 r"""SetPadToDieLength(PAD self, int aLength)"""
13198 return _pcbnew.PAD_SetPadToDieLength(self, aLength)
13199
13201 r"""GetPadToDieLength(PAD self) -> int"""
13202 return _pcbnew.PAD_GetPadToDieLength(self)
13203
13205 r"""GetLocalSolderMaskMargin(PAD self) -> int"""
13206 return _pcbnew.PAD_GetLocalSolderMaskMargin(self)
13207
13208 def SetLocalSolderMaskMargin(self, aMargin):
13209 r"""SetLocalSolderMaskMargin(PAD self, int aMargin)"""
13210 return _pcbnew.PAD_SetLocalSolderMaskMargin(self, aMargin)
13211
13212 def GetLocalClearance(self, *args):
13213 r"""
13214 GetLocalClearance(PAD self, wxString aSource) -> int
13215 GetLocalClearance(PAD self) -> int
13216 """
13217 return _pcbnew.PAD_GetLocalClearance(self, *args)
13218
13219 def SetLocalClearance(self, aClearance):
13220 r"""SetLocalClearance(PAD self, int aClearance)"""
13221 return _pcbnew.PAD_SetLocalClearance(self, aClearance)
13222
13224 r"""GetLocalSolderPasteMargin(PAD self) -> int"""
13225 return _pcbnew.PAD_GetLocalSolderPasteMargin(self)
13226
13227 def SetLocalSolderPasteMargin(self, aMargin):
13228 r"""SetLocalSolderPasteMargin(PAD self, int aMargin)"""
13229 return _pcbnew.PAD_SetLocalSolderPasteMargin(self, aMargin)
13230
13232 r"""GetLocalSolderPasteMarginRatio(PAD self) -> double"""
13233 return _pcbnew.PAD_GetLocalSolderPasteMarginRatio(self)
13234
13236 r"""SetLocalSolderPasteMarginRatio(PAD self, double aRatio)"""
13237 return _pcbnew.PAD_SetLocalSolderPasteMarginRatio(self, aRatio)
13238
13239 def GetOwnClearance(self, aLayer, aSource=None):
13240 r"""GetOwnClearance(PAD self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
13241 return _pcbnew.PAD_GetOwnClearance(self, aLayer, aSource)
13242
13243 def TransformShapeToPolygon(self, *args):
13244 r"""TransformShapeToPolygon(PAD self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc=ERROR_INSIDE, bool ignoreLineWidth=False)"""
13245 return _pcbnew.PAD_TransformShapeToPolygon(self, *args)
13246
13247 def TransformHoleToPolygon(self, *args):
13248 r"""TransformHoleToPolygon(PAD self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> bool"""
13249 return _pcbnew.PAD_TransformHoleToPolygon(self, *args)
13250
13251 def GetEffectiveShape(self, *args):
13252 r"""GetEffectiveShape(PAD self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING flashPTHPads=DEFAULT) -> std::shared_ptr< SHAPE >"""
13253 return _pcbnew.PAD_GetEffectiveShape(self, *args)
13254
13255 def GetEffectivePolygon(self, *args):
13256 r"""GetEffectivePolygon(PAD self, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> std::shared_ptr< SHAPE_POLY_SET > const"""
13257 return _pcbnew.PAD_GetEffectivePolygon(self, *args)
13258
13260 r"""GetBoundingRadius(PAD self) -> int"""
13261 return _pcbnew.PAD_GetBoundingRadius(self)
13262
13264 r"""GetSolderMaskExpansion(PAD self) -> int"""
13265 return _pcbnew.PAD_GetSolderMaskExpansion(self)
13266
13268 r"""GetSolderPasteMargin(PAD self) -> VECTOR2I"""
13269 return _pcbnew.PAD_GetSolderPasteMargin(self)
13270
13271 def SetZoneConnection(self, aType):
13272 r"""SetZoneConnection(PAD self, ZONE_CONNECTION aType)"""
13273 return _pcbnew.PAD_SetZoneConnection(self, aType)
13274
13276 r"""GetZoneConnection(PAD self) -> ZONE_CONNECTION"""
13277 return _pcbnew.PAD_GetZoneConnection(self)
13278
13279 def GetLocalZoneConnectionOverride(self, aSource=None):
13280 r"""GetLocalZoneConnectionOverride(PAD self, wxString aSource=None) -> ZONE_CONNECTION"""
13281 return _pcbnew.PAD_GetLocalZoneConnectionOverride(self, aSource)
13282
13283 def SetThermalSpokeWidth(self, aWidth):
13284 r"""SetThermalSpokeWidth(PAD self, int aWidth)"""
13285 return _pcbnew.PAD_SetThermalSpokeWidth(self, aWidth)
13286
13288 r"""GetThermalSpokeWidth(PAD self) -> int"""
13289 return _pcbnew.PAD_GetThermalSpokeWidth(self)
13290
13291 def GetLocalSpokeWidthOverride(self, aSource=None):
13292 r"""GetLocalSpokeWidthOverride(PAD self, wxString aSource=None) -> int"""
13293 return _pcbnew.PAD_GetLocalSpokeWidthOverride(self, aSource)
13294
13295 def SetThermalSpokeAngle(self, aAngle):
13296 r"""SetThermalSpokeAngle(PAD self, EDA_ANGLE aAngle)"""
13297 return _pcbnew.PAD_SetThermalSpokeAngle(self, aAngle)
13298
13300 r"""GetThermalSpokeAngle(PAD self) -> EDA_ANGLE"""
13301 return _pcbnew.PAD_GetThermalSpokeAngle(self)
13302
13304 r"""SetThermalSpokeAngleDegrees(PAD self, double aAngle)"""
13305 return _pcbnew.PAD_SetThermalSpokeAngleDegrees(self, aAngle)
13306
13308 r"""GetThermalSpokeAngleDegrees(PAD self) -> double"""
13309 return _pcbnew.PAD_GetThermalSpokeAngleDegrees(self)
13310
13311 def SetThermalGap(self, aGap):
13312 r"""SetThermalGap(PAD self, int aGap)"""
13313 return _pcbnew.PAD_SetThermalGap(self, aGap)
13314
13315 def GetThermalGap(self):
13316 r"""GetThermalGap(PAD self) -> int"""
13317 return _pcbnew.PAD_GetThermalGap(self)
13318
13319 def GetLocalThermalGapOverride(self, aSource=None):
13320 r"""GetLocalThermalGapOverride(PAD self, wxString aSource=None) -> int"""
13321 return _pcbnew.PAD_GetLocalThermalGapOverride(self, aSource)
13322
13323 def SetRoundRectCornerRadius(self, aRadius):
13324 r"""SetRoundRectCornerRadius(PAD self, double aRadius)"""
13325 return _pcbnew.PAD_SetRoundRectCornerRadius(self, aRadius)
13326
13328 r"""GetRoundRectCornerRadius(PAD self) -> int"""
13329 return _pcbnew.PAD_GetRoundRectCornerRadius(self)
13330
13331 def ShapePos(self):
13332 r"""ShapePos(PAD self) -> VECTOR2I"""
13333 return _pcbnew.PAD_ShapePos(self)
13334
13335 def SetRoundRectRadiusRatio(self, aRadiusScale):
13336 r"""SetRoundRectRadiusRatio(PAD self, double aRadiusScale)"""
13337 return _pcbnew.PAD_SetRoundRectRadiusRatio(self, aRadiusScale)
13338
13340 r"""GetRoundRectRadiusRatio(PAD self) -> double"""
13341 return _pcbnew.PAD_GetRoundRectRadiusRatio(self)
13342
13343 def SetChamferRectRatio(self, aChamferScale):
13344 r"""SetChamferRectRatio(PAD self, double aChamferScale)"""
13345 return _pcbnew.PAD_SetChamferRectRatio(self, aChamferScale)
13346
13348 r"""GetChamferRectRatio(PAD self) -> double"""
13349 return _pcbnew.PAD_GetChamferRectRatio(self)
13350
13351 def SetChamferPositions(self, aPositions):
13352 r"""SetChamferPositions(PAD self, int aPositions)"""
13353 return _pcbnew.PAD_SetChamferPositions(self, aPositions)
13354
13356 r"""GetChamferPositions(PAD self) -> int"""
13357 return _pcbnew.PAD_GetChamferPositions(self)
13358
13360 r"""GetSubRatsnest(PAD self) -> int"""
13361 return _pcbnew.PAD_GetSubRatsnest(self)
13362
13363 def SetSubRatsnest(self, aSubRatsnest):
13364 r"""SetSubRatsnest(PAD self, int aSubRatsnest)"""
13365 return _pcbnew.PAD_SetSubRatsnest(self, aSubRatsnest)
13366
13367 def SetRemoveUnconnected(self, aSet):
13368 r"""SetRemoveUnconnected(PAD self, bool aSet)"""
13369 return _pcbnew.PAD_SetRemoveUnconnected(self, aSet)
13370
13372 r"""GetRemoveUnconnected(PAD self) -> bool"""
13373 return _pcbnew.PAD_GetRemoveUnconnected(self)
13374
13375 def SetKeepTopBottom(self, aSet):
13376 r"""SetKeepTopBottom(PAD self, bool aSet)"""
13377 return _pcbnew.PAD_SetKeepTopBottom(self, aSet)
13378
13380 r"""GetKeepTopBottom(PAD self) -> bool"""
13381 return _pcbnew.PAD_GetKeepTopBottom(self)
13382
13383 def ConditionallyFlashed(self, aLayer):
13384 r"""ConditionallyFlashed(PAD self, PCB_LAYER_ID aLayer) -> bool"""
13385 return _pcbnew.PAD_ConditionallyFlashed(self, aLayer)
13386
13387 def CanFlashLayer(self, aLayer):
13388 r"""CanFlashLayer(PAD self, int aLayer) -> bool"""
13389 return _pcbnew.PAD_CanFlashLayer(self, aLayer)
13390
13392 r"""GetPrincipalLayer(PAD self) -> PCB_LAYER_ID"""
13393 return _pcbnew.PAD_GetPrincipalLayer(self)
13394
13395 def FlashLayer(self, *args):
13396 r"""
13397 FlashLayer(PAD self, int aLayer, bool aOnlyCheckIfPermitted=False) -> bool
13398 FlashLayer(PAD self, LSET aLayers) -> bool
13399 """
13400 return _pcbnew.PAD_FlashLayer(self, *args)
13401
13402 def HitTest(self, *args):
13403 r"""
13404 HitTest(PAD self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13405 HitTest(PAD self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13406 """
13407 return _pcbnew.PAD_HitTest(self, *args)
13408
13409 def Recombine(self, aIsDryRun, aMaxError):
13410 r"""Recombine(PAD self, bool aIsDryRun, int aMaxError) -> std::vector< PCB_SHAPE *,std::allocator< PCB_SHAPE * > >"""
13411 return _pcbnew.PAD_Recombine(self, aIsDryRun, aMaxError)
13412
13413 @staticmethod
13414 def Compare(aPadRef, aPadCmp):
13415 r"""Compare(PAD aPadRef, PAD aPadCmp) -> int"""
13416 return _pcbnew.PAD_Compare(aPadRef, aPadCmp)
13417
13418 def ShowPadShape(self):
13419 r"""ShowPadShape(PAD self) -> wxString"""
13420 return _pcbnew.PAD_ShowPadShape(self)
13421
13422 def ShowPadAttr(self):
13423 r"""ShowPadAttr(PAD self) -> wxString"""
13424 return _pcbnew.PAD_ShowPadAttr(self)
13425
13426 def ClonePad(self):
13427 r"""ClonePad(PAD self) -> PAD"""
13428 return _pcbnew.PAD_ClonePad(self)
13429
13430 def BuildEffectiveShapes(self, aLayer):
13431 r"""BuildEffectiveShapes(PAD self, PCB_LAYER_ID aLayer)"""
13432 return _pcbnew.PAD_BuildEffectiveShapes(self, aLayer)
13433
13434 def BuildEffectivePolygon(self, *args):
13435 r"""BuildEffectivePolygon(PAD self, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
13436 return _pcbnew.PAD_BuildEffectivePolygon(self, *args)
13437
13438 def ViewGetLOD(self, aLayer, aView):
13439 r"""ViewGetLOD(PAD self, int aLayer, KIGFX::VIEW * aView) -> double"""
13440 return _pcbnew.PAD_ViewGetLOD(self, aLayer, aView)
13441
13443 r"""ClearZoneLayerOverrides(PAD self)"""
13444 return _pcbnew.PAD_ClearZoneLayerOverrides(self)
13445
13446 def GetZoneLayerOverride(self, aLayer):
13447 r"""GetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
13448 return _pcbnew.PAD_GetZoneLayerOverride(self, aLayer)
13449
13450 def SetZoneLayerOverride(self, aLayer, aOverride):
13451 r"""SetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
13452 return _pcbnew.PAD_SetZoneLayerOverride(self, aLayer, aOverride)
13453
13454 def CheckPad(self, aUnitsProvider, aErrorHandler):
13455 r"""CheckPad(PAD self, UNITS_PROVIDER aUnitsProvider, std::function< void (int,wxString const &) > const & aErrorHandler)"""
13456 return _pcbnew.PAD_CheckPad(self, aUnitsProvider, aErrorHandler)
13457
13458 def __ne__(self, aOther):
13459 r"""__ne__(PAD self, BOARD_ITEM aOther) -> bool"""
13460 return _pcbnew.PAD___ne__(self, aOther)
13461
13462
13463 # SetPadName() is the old name for PAD::SetName()
13464 # define it for compatibility
13465 def SetPadName(self, aName):
13466 return self.SetNumber(aName)
13467
13468 def SetName(self, aName):
13469 return self.SetNumber(aName)
13470
13471 # GetPadName() is the old name for PAD::GetName()
13472 # define it for compatibility
13473 def GetPadName(self):
13474 return self.GetNumber()
13475
13476 def GetName(self):
13477 return self.GetNumber()
13478
13479 # AddPrimitive() used to be multiple functions on the C++ side and this single Python function
13480 # was made to maintain compatibility with an even older version of the PAD class that had a
13481 # single function. Now we're back to a single function, but different, and Python scripts
13482 # have gotten used to this API, so keep compatibility with it
13483 def AddPrimitive(self, *args):
13484 if len(args) == 2:
13485 return self.AddPrimitivePoly(*args, True)
13486 elif len(args) == 3:
13487 if type(args[1] in [wxPoint,wxSize,VECTOR2I]):
13488 s = PCB_SHAPE(None, SHAPE_T_SEGMENT)
13489 s.SetStart(args[0])
13490 s.SetEnd(args[1])
13491 s.SetWidth(args[2])
13492 else:
13493 s = PCB_SHAPE(None, SHAPE_T_CIRCLE)
13494 s.SetCenter(args[0])
13495 s.SetRadius(args[1])
13496 s.SetWidth(args[2])
13497 elif len(args) == 4:
13498 s = PCB_SHAPE(None, SHAPE_T_ARC)
13499 s.SetCenter(args[0])
13500 s.SetStart(args[1])
13501 s.SetArcAngleAndEnd(args[2])
13502 s.SetWidth(args[3])
13503 elif len(args) == 5:
13504 s = PCB_SHAPE(None, SHAPE_T_BEZIER)
13505 s.SetStart(args[0])
13506 s.SetEnd(args[1])
13507 s.SetBezierC1(args[2])
13508 s.SetBezierC2(args[3])
13509 s.SetWidth(args[4])
13510 else:
13511 raise TypeError(f"Arguments not recognized; expected 2-5 args, got {len(args)}")
13512
13513 self.AddPrimitiveShape(s)
13514
13515 # GetCustomShapeAsPolygon() is the old accessor to get custom shapes
13516 def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER):
13517 polygon_set = SHAPE_POLY_SET()
13518 self.MergePrimitivesAsPolygon(polygon_set)
13519 return polygon_set
13520
13521 __swig_destroy__ = _pcbnew.delete_PAD
13522
13523# Register PAD in _pcbnew:
13524_pcbnew.PAD_swigregister(PAD)
13525
13527 r"""PAD_PTHMask() -> LSET"""
13528 return _pcbnew.PAD_PTHMask()
13529
13531 r"""PAD_SMDMask() -> LSET"""
13532 return _pcbnew.PAD_SMDMask()
13533
13535 r"""PAD_ConnSMDMask() -> LSET"""
13536 return _pcbnew.PAD_ConnSMDMask()
13537
13539 r"""PAD_UnplatedHoleMask() -> LSET"""
13540 return _pcbnew.PAD_UnplatedHoleMask()
13541
13543 r"""PAD_ApertureMask() -> LSET"""
13544 return _pcbnew.PAD_ApertureMask()
13545
13546def PAD_ClassOf(aItem):
13547 r"""PAD_ClassOf(EDA_ITEM aItem) -> bool"""
13548 return _pcbnew.PAD_ClassOf(aItem)
13549
13550def PAD_Compare(aPadRef, aPadCmp):
13551 r"""PAD_Compare(PAD aPadRef, PAD aPadCmp) -> int"""
13552 return _pcbnew.PAD_Compare(aPadRef, aPadCmp)
13553
13554ENDPOINT_START = _pcbnew.ENDPOINT_START
13555
13556ENDPOINT_END = _pcbnew.ENDPOINT_END
13557
13558VIATYPE_THROUGH = _pcbnew.VIATYPE_THROUGH
13559
13560VIATYPE_BLIND_BURIED = _pcbnew.VIATYPE_BLIND_BURIED
13561
13562VIATYPE_MICROVIA = _pcbnew.VIATYPE_MICROVIA
13563
13564VIATYPE_NOT_DEFINED = _pcbnew.VIATYPE_NOT_DEFINED
13565
13566UNDEFINED_DRILL_DIAMETER = _pcbnew.UNDEFINED_DRILL_DIAMETER
13567
13569 r"""Proxy of C++ PCB_TRACK class."""
13570
13571 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13572 __repr__ = _swig_repr
13573
13574 @staticmethod
13575 def ClassOf(aItem):
13576 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13577 return _pcbnew.PCB_TRACK_ClassOf(aItem)
13578
13579 def __init__(self, aParent, idtype=PCB_TRACE_T):
13580 r"""__init__(PCB_TRACK self, BOARD_ITEM aParent, KICAD_T idtype=PCB_TRACE_T) -> PCB_TRACK"""
13581 _pcbnew.PCB_TRACK_swiginit(self, _pcbnew.new_PCB_TRACK(aParent, idtype))
13582
13583 def Mirror(self, aCentre, aMirrorAroundXAxis):
13584 r"""Mirror(PCB_TRACK self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
13585 return _pcbnew.PCB_TRACK_Mirror(self, aCentre, aMirrorAroundXAxis)
13586
13587 def SetWidth(self, aWidth):
13588 r"""SetWidth(PCB_TRACK self, int aWidth)"""
13589 return _pcbnew.PCB_TRACK_SetWidth(self, aWidth)
13590
13591 def GetWidth(self):
13592 r"""GetWidth(PCB_TRACK self) -> int"""
13593 return _pcbnew.PCB_TRACK_GetWidth(self)
13594
13595 def SetEnd(self, aEnd):
13596 r"""SetEnd(PCB_TRACK self, VECTOR2I aEnd)"""
13597 return _pcbnew.PCB_TRACK_SetEnd(self, aEnd)
13598
13599 def GetEnd(self):
13600 r"""GetEnd(PCB_TRACK self) -> VECTOR2I"""
13601 return _pcbnew.PCB_TRACK_GetEnd(self)
13602
13603 def SetStart(self, aStart):
13604 r"""SetStart(PCB_TRACK self, VECTOR2I aStart)"""
13605 return _pcbnew.PCB_TRACK_SetStart(self, aStart)
13606
13607 def GetStart(self):
13608 r"""GetStart(PCB_TRACK self) -> VECTOR2I"""
13609 return _pcbnew.PCB_TRACK_GetStart(self)
13610
13611 def SetStartX(self, aX):
13612 r"""SetStartX(PCB_TRACK self, int aX)"""
13613 return _pcbnew.PCB_TRACK_SetStartX(self, aX)
13614
13615 def SetStartY(self, aY):
13616 r"""SetStartY(PCB_TRACK self, int aY)"""
13617 return _pcbnew.PCB_TRACK_SetStartY(self, aY)
13618
13619 def GetStartX(self):
13620 r"""GetStartX(PCB_TRACK self) -> int"""
13621 return _pcbnew.PCB_TRACK_GetStartX(self)
13622
13623 def GetStartY(self):
13624 r"""GetStartY(PCB_TRACK self) -> int"""
13625 return _pcbnew.PCB_TRACK_GetStartY(self)
13626
13627 def SetEndX(self, aX):
13628 r"""SetEndX(PCB_TRACK self, int aX)"""
13629 return _pcbnew.PCB_TRACK_SetEndX(self, aX)
13630
13631 def SetEndY(self, aY):
13632 r"""SetEndY(PCB_TRACK self, int aY)"""
13633 return _pcbnew.PCB_TRACK_SetEndY(self, aY)
13634
13635 def GetEndX(self):
13636 r"""GetEndX(PCB_TRACK self) -> int"""
13637 return _pcbnew.PCB_TRACK_GetEndX(self)
13638
13639 def GetEndY(self):
13640 r"""GetEndY(PCB_TRACK self) -> int"""
13641 return _pcbnew.PCB_TRACK_GetEndY(self)
13642
13643 def GetEndPoint(self, aEndPoint):
13644 r"""GetEndPoint(PCB_TRACK self, ENDPOINT_T aEndPoint) -> VECTOR2I"""
13645 return _pcbnew.PCB_TRACK_GetEndPoint(self, aEndPoint)
13646
13647 def GetLength(self):
13648 r"""GetLength(PCB_TRACK self) -> double"""
13649 return _pcbnew.PCB_TRACK_GetLength(self)
13650
13651 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
13652 r"""TransformShapeToPolygon(PCB_TRACK self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
13653 return _pcbnew.PCB_TRACK_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
13654
13655 def GetEffectiveShape(self, *args):
13656 r"""GetEffectiveShape(PCB_TRACK self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13657 return _pcbnew.PCB_TRACK_GetEffectiveShape(self, *args)
13658
13659 def IsPointOnEnds(self, point, min_dist=0):
13660 r"""IsPointOnEnds(PCB_TRACK self, VECTOR2I point, int min_dist=0) -> EDA_ITEM_FLAGS"""
13661 return _pcbnew.PCB_TRACK_IsPointOnEnds(self, point, min_dist)
13662
13663 def IsNull(self):
13664 r"""IsNull(PCB_TRACK self) -> bool"""
13665 return _pcbnew.PCB_TRACK_IsNull(self)
13666
13667 def HitTest(self, *args):
13668 r"""
13669 HitTest(PCB_TRACK self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13670 HitTest(PCB_TRACK self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13671 """
13672 return _pcbnew.PCB_TRACK_HitTest(self, *args)
13673
13674 def ApproxCollinear(self, aTrack):
13675 r"""ApproxCollinear(PCB_TRACK self, PCB_TRACK aTrack) -> bool"""
13676 return _pcbnew.PCB_TRACK_ApproxCollinear(self, aTrack)
13677
13678 def GetWidthConstraint(self, aSource=None):
13679 r"""GetWidthConstraint(PCB_TRACK self, wxString aSource=None) -> MINOPTMAX< int >"""
13680 return _pcbnew.PCB_TRACK_GetWidthConstraint(self, aSource)
13681
13682 def ViewGetLOD(self, aLayer, aView):
13683 r"""ViewGetLOD(PCB_TRACK self, int aLayer, KIGFX::VIEW * aView) -> double"""
13684 return _pcbnew.PCB_TRACK_ViewGetLOD(self, aLayer, aView)
13685 __swig_destroy__ = _pcbnew.delete_PCB_TRACK
13686
13687# Register PCB_TRACK in _pcbnew:
13688_pcbnew.PCB_TRACK_swigregister(PCB_TRACK)
13689PAD_SHAPE_RECT = cvar.PAD_SHAPE_RECT
13690
13692 r"""PCB_TRACK_ClassOf(EDA_ITEM aItem) -> bool"""
13693 return _pcbnew.PCB_TRACK_ClassOf(aItem)
13694
13696 r"""Proxy of C++ PCB_ARC class."""
13697
13698 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13699 __repr__ = _swig_repr
13700
13701 def __init__(self, *args):
13702 r"""
13703 __init__(PCB_ARC self, BOARD_ITEM aParent) -> PCB_ARC
13704 __init__(PCB_ARC self, BOARD_ITEM aParent, SHAPE_ARC aArc) -> PCB_ARC
13705 """
13706 _pcbnew.PCB_ARC_swiginit(self, _pcbnew.new_PCB_ARC(*args))
13707
13708 @staticmethod
13709 def ClassOf(aItem):
13710 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13711 return _pcbnew.PCB_ARC_ClassOf(aItem)
13712
13713 def SetMid(self, aMid):
13714 r"""SetMid(PCB_ARC self, VECTOR2I aMid)"""
13715 return _pcbnew.PCB_ARC_SetMid(self, aMid)
13716
13717 def GetMid(self):
13718 r"""GetMid(PCB_ARC self) -> VECTOR2I"""
13719 return _pcbnew.PCB_ARC_GetMid(self)
13720
13721 def GetRadius(self):
13722 r"""GetRadius(PCB_ARC self) -> double"""
13723 return _pcbnew.PCB_ARC_GetRadius(self)
13724
13725 def GetAngle(self):
13726 r"""GetAngle(PCB_ARC self) -> EDA_ANGLE"""
13727 return _pcbnew.PCB_ARC_GetAngle(self)
13728
13730 r"""GetArcAngleStart(PCB_ARC self) -> EDA_ANGLE"""
13731 return _pcbnew.PCB_ARC_GetArcAngleStart(self)
13732
13734 r"""GetArcAngleEnd(PCB_ARC self) -> EDA_ANGLE"""
13735 return _pcbnew.PCB_ARC_GetArcAngleEnd(self)
13736
13737 def HitTest(self, *args):
13738 r"""
13739 HitTest(PCB_ARC self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13740 HitTest(PCB_ARC self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
13741 """
13742 return _pcbnew.PCB_ARC_HitTest(self, *args)
13743
13744 def IsCCW(self):
13745 r"""IsCCW(PCB_ARC self) -> bool"""
13746 return _pcbnew.PCB_ARC_IsCCW(self)
13747
13748 def GetEffectiveShape(self, *args):
13749 r"""GetEffectiveShape(PCB_ARC self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13750 return _pcbnew.PCB_ARC_GetEffectiveShape(self, *args)
13751
13752 def IsDegenerated(self, aThreshold=5):
13753 r"""IsDegenerated(PCB_ARC self, int aThreshold=5) -> bool"""
13754 return _pcbnew.PCB_ARC_IsDegenerated(self, aThreshold)
13755 __swig_destroy__ = _pcbnew.delete_PCB_ARC
13756
13757# Register PCB_ARC in _pcbnew:
13758_pcbnew.PCB_ARC_swigregister(PCB_ARC)
13759
13761 r"""PCB_ARC_ClassOf(EDA_ITEM aItem) -> bool"""
13762 return _pcbnew.PCB_ARC_ClassOf(aItem)
13763
13765 r"""Proxy of C++ PCB_VIA class."""
13766
13767 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13768 __repr__ = _swig_repr
13769
13770 @staticmethod
13771 def ClassOf(aItem):
13772 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13773 return _pcbnew.PCB_VIA_ClassOf(aItem)
13774
13775 def __init__(self, *args):
13776 r"""
13777 __init__(PCB_VIA self, BOARD_ITEM aParent) -> PCB_VIA
13778 __init__(PCB_VIA self, PCB_VIA aOther) -> PCB_VIA
13779 """
13780 _pcbnew.PCB_VIA_swiginit(self, _pcbnew.new_PCB_VIA(*args))
13781
13782 def GetViaType(self):
13783 r"""GetViaType(PCB_VIA self) -> VIATYPE"""
13784 return _pcbnew.PCB_VIA_GetViaType(self)
13785
13786 def SetViaType(self, aViaType):
13787 r"""SetViaType(PCB_VIA self, VIATYPE aViaType)"""
13788 return _pcbnew.PCB_VIA_SetViaType(self, aViaType)
13789
13790 def GetWidthConstraint(self, aSource=None):
13791 r"""GetWidthConstraint(PCB_VIA self, wxString aSource=None) -> MINOPTMAX< int >"""
13792 return _pcbnew.PCB_VIA_GetWidthConstraint(self, aSource)
13793
13794 def GetDrillConstraint(self, aSource=None):
13795 r"""GetDrillConstraint(PCB_VIA self, wxString aSource=None) -> MINOPTMAX< int >"""
13796 return _pcbnew.PCB_VIA_GetDrillConstraint(self, aSource)
13797
13799 r"""GetSolderMaskExpansion(PCB_VIA self) -> int"""
13800 return _pcbnew.PCB_VIA_GetSolderMaskExpansion(self)
13801
13802 def SetLayerPair(self, aTopLayer, aBottomLayer):
13803 r"""SetLayerPair(PCB_VIA self, PCB_LAYER_ID aTopLayer, PCB_LAYER_ID aBottomLayer)"""
13804 return _pcbnew.PCB_VIA_SetLayerPair(self, aTopLayer, aBottomLayer)
13805
13806 def SetBottomLayer(self, aLayer):
13807 r"""SetBottomLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
13808 return _pcbnew.PCB_VIA_SetBottomLayer(self, aLayer)
13809
13810 def SetTopLayer(self, aLayer):
13811 r"""SetTopLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
13812 return _pcbnew.PCB_VIA_SetTopLayer(self, aLayer)
13813
13814 def LayerPair(self, top_layer, bottom_layer):
13815 r"""LayerPair(PCB_VIA self, PCB_LAYER_ID * top_layer, PCB_LAYER_ID * bottom_layer)"""
13816 return _pcbnew.PCB_VIA_LayerPair(self, top_layer, bottom_layer)
13817
13818 def TopLayer(self):
13819 r"""TopLayer(PCB_VIA self) -> PCB_LAYER_ID"""
13820 return _pcbnew.PCB_VIA_TopLayer(self)
13821
13822 def BottomLayer(self):
13823 r"""BottomLayer(PCB_VIA self) -> PCB_LAYER_ID"""
13824 return _pcbnew.PCB_VIA_BottomLayer(self)
13825
13827 r"""SanitizeLayers(PCB_VIA self)"""
13828 return _pcbnew.PCB_VIA_SanitizeLayers(self)
13829
13830 def HitTest(self, *args):
13831 r"""
13832 HitTest(PCB_VIA self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13833 HitTest(PCB_VIA self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13834 """
13835 return _pcbnew.PCB_VIA_HitTest(self, *args)
13836
13837 def ViewGetLOD(self, aLayer, aView):
13838 r"""ViewGetLOD(PCB_VIA self, int aLayer, KIGFX::VIEW * aView) -> double"""
13839 return _pcbnew.PCB_VIA_ViewGetLOD(self, aLayer, aView)
13840
13841 def GetMinAnnulus(self, aLayer, aSource):
13842 r"""GetMinAnnulus(PCB_VIA self, PCB_LAYER_ID aLayer, wxString aSource) -> int"""
13843 return _pcbnew.PCB_VIA_GetMinAnnulus(self, aLayer, aSource)
13844
13845 def SetRemoveUnconnected(self, aSet):
13846 r"""SetRemoveUnconnected(PCB_VIA self, bool aSet)"""
13847 return _pcbnew.PCB_VIA_SetRemoveUnconnected(self, aSet)
13848
13850 r"""GetRemoveUnconnected(PCB_VIA self) -> bool"""
13851 return _pcbnew.PCB_VIA_GetRemoveUnconnected(self)
13852
13853 def SetKeepStartEnd(self, aSet):
13854 r"""SetKeepStartEnd(PCB_VIA self, bool aSet)"""
13855 return _pcbnew.PCB_VIA_SetKeepStartEnd(self, aSet)
13856
13858 r"""GetKeepStartEnd(PCB_VIA self) -> bool"""
13859 return _pcbnew.PCB_VIA_GetKeepStartEnd(self)
13860
13861 def ConditionallyFlashed(self, aLayer):
13862 r"""ConditionallyFlashed(PCB_VIA self, PCB_LAYER_ID aLayer) -> bool"""
13863 return _pcbnew.PCB_VIA_ConditionallyFlashed(self, aLayer)
13864
13865 def FlashLayer(self, *args):
13866 r"""
13867 FlashLayer(PCB_VIA self, int aLayer) -> bool
13868 FlashLayer(PCB_VIA self, LSET aLayers) -> bool
13869 """
13870 return _pcbnew.PCB_VIA_FlashLayer(self, *args)
13871
13872 def GetOutermostConnectedLayers(self, aTopmost, aBottommost):
13873 r"""GetOutermostConnectedLayers(PCB_VIA self, PCB_LAYER_ID * aTopmost, PCB_LAYER_ID * aBottommost)"""
13874 return _pcbnew.PCB_VIA_GetOutermostConnectedLayers(self, aTopmost, aBottommost)
13875
13876 def SetDrill(self, aDrill):
13877 r"""SetDrill(PCB_VIA self, int aDrill)"""
13878 return _pcbnew.PCB_VIA_SetDrill(self, aDrill)
13879
13880 def GetDrill(self):
13881 r"""GetDrill(PCB_VIA self) -> int"""
13882 return _pcbnew.PCB_VIA_GetDrill(self)
13883
13884 def GetDrillValue(self):
13885 r"""GetDrillValue(PCB_VIA self) -> int"""
13886 return _pcbnew.PCB_VIA_GetDrillValue(self)
13887
13889 r"""SetDrillDefault(PCB_VIA self)"""
13890 return _pcbnew.PCB_VIA_SetDrillDefault(self)
13891
13892 def GetIsFree(self):
13893 r"""GetIsFree(PCB_VIA self) -> bool"""
13894 return _pcbnew.PCB_VIA_GetIsFree(self)
13895
13896 def SetIsFree(self, aFree=True):
13897 r"""SetIsFree(PCB_VIA self, bool aFree=True)"""
13898 return _pcbnew.PCB_VIA_SetIsFree(self, aFree)
13899
13900 def GetEffectiveShape(self, *args):
13901 r"""GetEffectiveShape(PCB_VIA self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13902 return _pcbnew.PCB_VIA_GetEffectiveShape(self, *args)
13903
13905 r"""ClearZoneLayerOverrides(PCB_VIA self)"""
13906 return _pcbnew.PCB_VIA_ClearZoneLayerOverrides(self)
13907
13908 def GetZoneLayerOverride(self, aLayer):
13909 r"""GetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
13910 return _pcbnew.PCB_VIA_GetZoneLayerOverride(self, aLayer)
13911
13912 def SetZoneLayerOverride(self, aLayer, aOverride):
13913 r"""SetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
13914 return _pcbnew.PCB_VIA_SetZoneLayerOverride(self, aLayer, aOverride)
13915 __swig_destroy__ = _pcbnew.delete_PCB_VIA
13916
13917# Register PCB_VIA in _pcbnew:
13918_pcbnew.PCB_VIA_swigregister(PCB_VIA)
13919
13921 r"""PCB_VIA_ClassOf(EDA_ITEM aItem) -> bool"""
13922 return _pcbnew.PCB_VIA_ClassOf(aItem)
13923
13925 r"""Proxy of C++ ISOLATED_ISLANDS class."""
13926
13927 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13928 __repr__ = _swig_repr
13929 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)>)>""")
13930 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)>)>""")
13931
13932 def __init__(self):
13933 r"""__init__(ISOLATED_ISLANDS self) -> ISOLATED_ISLANDS"""
13934 _pcbnew.ISOLATED_ISLANDS_swiginit(self, _pcbnew.new_ISOLATED_ISLANDS())
13935 __swig_destroy__ = _pcbnew.delete_ISOLATED_ISLANDS
13936
13937# Register ISOLATED_ISLANDS in _pcbnew:
13938_pcbnew.ISOLATED_ISLANDS_swigregister(ISOLATED_ISLANDS)
13939
13941 r"""Proxy of C++ ZONE class."""
13942
13943 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13944 __repr__ = _swig_repr
13945
13946 def __init__(self, *args):
13947 r"""
13948 __init__(ZONE self, BOARD_ITEM_CONTAINER parent) -> ZONE
13949 __init__(ZONE self, ZONE aZone) -> ZONE
13950 """
13951 _pcbnew.ZONE_swiginit(self, _pcbnew.new_ZONE(*args))
13952 __swig_destroy__ = _pcbnew.delete_ZONE
13953
13954 @staticmethod
13955 def ClassOf(aItem):
13956 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13957 return _pcbnew.ZONE_ClassOf(aItem)
13958
13960 r"""InitDataFromSrcInCopyCtor(ZONE self, ZONE aZone)"""
13961 return _pcbnew.ZONE_InitDataFromSrcInCopyCtor(self, aZone)
13962
13963 def IsConflicting(self):
13964 r"""IsConflicting(ZONE self) -> bool"""
13965 return _pcbnew.ZONE_IsConflicting(self)
13966
13967 def SetAssignedPriority(self, aPriority):
13968 r"""SetAssignedPriority(ZONE self, unsigned int aPriority)"""
13969 return _pcbnew.ZONE_SetAssignedPriority(self, aPriority)
13970
13972 r"""GetAssignedPriority(ZONE self) -> unsigned int"""
13973 return _pcbnew.ZONE_GetAssignedPriority(self)
13974
13975 def HigherPriority(self, aOther):
13976 r"""HigherPriority(ZONE self, ZONE aOther) -> bool"""
13977 return _pcbnew.ZONE_HigherPriority(self, aOther)
13978
13979 def SameNet(self, aOther):
13980 r"""SameNet(ZONE self, ZONE aOther) -> bool"""
13981 return _pcbnew.ZONE_SameNet(self, aOther)
13982
13983 def GetZoneName(self):
13984 r"""GetZoneName(ZONE self) -> wxString"""
13985 return _pcbnew.ZONE_GetZoneName(self)
13986
13987 def SetZoneName(self, aName):
13988 r"""SetZoneName(ZONE self, wxString aName)"""
13989 return _pcbnew.ZONE_SetZoneName(self, aName)
13990
13992 r"""CacheBoundingBox(ZONE self)"""
13993 return _pcbnew.ZONE_CacheBoundingBox(self)
13994
13995 def GetLocalClearance(self, *args):
13996 r"""
13997 GetLocalClearance(ZONE self, wxString aSource) -> int
13998 GetLocalClearance(ZONE self) -> int
13999 """
14000 return _pcbnew.ZONE_GetLocalClearance(self, *args)
14001
14002 def SetLocalClearance(self, aClearance):
14003 r"""SetLocalClearance(ZONE self, int aClearance)"""
14004 return _pcbnew.ZONE_SetLocalClearance(self, aClearance)
14005
14006 def GetFirstLayer(self):
14007 r"""GetFirstLayer(ZONE self) -> PCB_LAYER_ID"""
14008 return _pcbnew.ZONE_GetFirstLayer(self)
14009
14010 def ViewGetLOD(self, aLayer, aView):
14011 r"""ViewGetLOD(ZONE self, int aLayer, KIGFX::VIEW * aView) -> double"""
14012 return _pcbnew.ZONE_ViewGetLOD(self, aLayer, aView)
14013
14014 def SetFillMode(self, aFillMode):
14015 r"""SetFillMode(ZONE self, ZONE_FILL_MODE aFillMode)"""
14016 return _pcbnew.ZONE_SetFillMode(self, aFillMode)
14017
14018 def GetFillMode(self):
14019 r"""GetFillMode(ZONE self) -> ZONE_FILL_MODE"""
14020 return _pcbnew.ZONE_GetFillMode(self)
14021
14022 def SetThermalReliefGap(self, aThermalReliefGap):
14023 r"""SetThermalReliefGap(ZONE self, int aThermalReliefGap)"""
14024 return _pcbnew.ZONE_SetThermalReliefGap(self, aThermalReliefGap)
14025
14026 def GetThermalReliefGap(self, *args):
14027 r"""
14028 GetThermalReliefGap(ZONE self) -> int
14029 GetThermalReliefGap(ZONE self, PAD aPad, wxString aSource=None) -> int
14030 """
14031 return _pcbnew.ZONE_GetThermalReliefGap(self, *args)
14032
14033 def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth):
14034 r"""SetThermalReliefSpokeWidth(ZONE self, int aThermalReliefSpokeWidth)"""
14035 return _pcbnew.ZONE_SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
14036
14038 r"""GetThermalReliefSpokeWidth(ZONE self) -> int"""
14039 return _pcbnew.ZONE_GetThermalReliefSpokeWidth(self)
14040
14042 r"""CalculateFilledArea(ZONE self) -> double"""
14043 return _pcbnew.ZONE_CalculateFilledArea(self)
14044
14046 r"""CalculateOutlineArea(ZONE self) -> double"""
14047 return _pcbnew.ZONE_CalculateOutlineArea(self)
14048
14049 def GetFilledArea(self):
14050 r"""GetFilledArea(ZONE self) -> double"""
14051 return _pcbnew.ZONE_GetFilledArea(self)
14052
14054 r"""GetOutlineArea(ZONE self) -> double"""
14055 return _pcbnew.ZONE_GetOutlineArea(self)
14056
14057 def GetLock(self):
14058 r"""GetLock(ZONE self) -> std::mutex &"""
14059 return _pcbnew.ZONE_GetLock(self)
14060
14061 def GetFillFlag(self, aLayer):
14062 r"""GetFillFlag(ZONE self, PCB_LAYER_ID aLayer) -> int"""
14063 return _pcbnew.ZONE_GetFillFlag(self, aLayer)
14064
14065 def SetFillFlag(self, aLayer, aFlag):
14066 r"""SetFillFlag(ZONE self, PCB_LAYER_ID aLayer, bool aFlag)"""
14067 return _pcbnew.ZONE_SetFillFlag(self, aLayer, aFlag)
14068
14069 def IsFilled(self):
14070 r"""IsFilled(ZONE self) -> bool"""
14071 return _pcbnew.ZONE_IsFilled(self)
14072
14073 def SetIsFilled(self, isFilled):
14074 r"""SetIsFilled(ZONE self, bool isFilled)"""
14075 return _pcbnew.ZONE_SetIsFilled(self, isFilled)
14076
14077 def NeedRefill(self):
14078 r"""NeedRefill(ZONE self) -> bool"""
14079 return _pcbnew.ZONE_NeedRefill(self)
14080
14081 def SetNeedRefill(self, aNeedRefill):
14082 r"""SetNeedRefill(ZONE self, bool aNeedRefill)"""
14083 return _pcbnew.ZONE_SetNeedRefill(self, aNeedRefill)
14084
14086 r"""GetPadConnection(ZONE self) -> ZONE_CONNECTION"""
14087 return _pcbnew.ZONE_GetPadConnection(self)
14088
14089 def SetPadConnection(self, aPadConnection):
14090 r"""SetPadConnection(ZONE self, ZONE_CONNECTION aPadConnection)"""
14091 return _pcbnew.ZONE_SetPadConnection(self, aPadConnection)
14092
14094 r"""GetMinThickness(ZONE self) -> int"""
14095 return _pcbnew.ZONE_GetMinThickness(self)
14096
14097 def SetMinThickness(self, aMinThickness):
14098 r"""SetMinThickness(ZONE self, int aMinThickness)"""
14099 return _pcbnew.ZONE_SetMinThickness(self, aMinThickness)
14100
14102 r"""GetHatchThickness(ZONE self) -> int"""
14103 return _pcbnew.ZONE_GetHatchThickness(self)
14104
14105 def SetHatchThickness(self, aThickness):
14106 r"""SetHatchThickness(ZONE self, int aThickness)"""
14107 return _pcbnew.ZONE_SetHatchThickness(self, aThickness)
14108
14109 def GetHatchGap(self):
14110 r"""GetHatchGap(ZONE self) -> int"""
14111 return _pcbnew.ZONE_GetHatchGap(self)
14112
14113 def SetHatchGap(self, aStep):
14114 r"""SetHatchGap(ZONE self, int aStep)"""
14115 return _pcbnew.ZONE_SetHatchGap(self, aStep)
14116
14118 r"""GetHatchOrientation(ZONE self) -> EDA_ANGLE"""
14119 return _pcbnew.ZONE_GetHatchOrientation(self)
14120
14121 def SetHatchOrientation(self, aStep):
14122 r"""SetHatchOrientation(ZONE self, EDA_ANGLE aStep)"""
14123 return _pcbnew.ZONE_SetHatchOrientation(self, aStep)
14124
14126 r"""GetHatchSmoothingLevel(ZONE self) -> int"""
14127 return _pcbnew.ZONE_GetHatchSmoothingLevel(self)
14128
14129 def SetHatchSmoothingLevel(self, aLevel):
14130 r"""SetHatchSmoothingLevel(ZONE self, int aLevel)"""
14131 return _pcbnew.ZONE_SetHatchSmoothingLevel(self, aLevel)
14132
14134 r"""GetHatchSmoothingValue(ZONE self) -> double"""
14135 return _pcbnew.ZONE_GetHatchSmoothingValue(self)
14136
14137 def SetHatchSmoothingValue(self, aValue):
14138 r"""SetHatchSmoothingValue(ZONE self, double aValue)"""
14139 return _pcbnew.ZONE_SetHatchSmoothingValue(self, aValue)
14140
14142 r"""GetHatchHoleMinArea(ZONE self) -> double"""
14143 return _pcbnew.ZONE_GetHatchHoleMinArea(self)
14144
14145 def SetHatchHoleMinArea(self, aPct):
14146 r"""SetHatchHoleMinArea(ZONE self, double aPct)"""
14147 return _pcbnew.ZONE_SetHatchHoleMinArea(self, aPct)
14148
14150 r"""GetHatchBorderAlgorithm(ZONE self) -> int"""
14151 return _pcbnew.ZONE_GetHatchBorderAlgorithm(self)
14152
14153 def SetHatchBorderAlgorithm(self, aAlgo):
14154 r"""SetHatchBorderAlgorithm(ZONE self, int aAlgo)"""
14155 return _pcbnew.ZONE_SetHatchBorderAlgorithm(self, aAlgo)
14156
14158 r"""GetSelectedCorner(ZONE self) -> int"""
14159 return _pcbnew.ZONE_GetSelectedCorner(self)
14160
14161 def SetSelectedCorner(self, aCorner):
14162 r"""SetSelectedCorner(ZONE self, int aCorner)"""
14163 return _pcbnew.ZONE_SetSelectedCorner(self, aCorner)
14164
14165 def GetLocalFlags(self):
14166 r"""GetLocalFlags(ZONE self) -> int"""
14167 return _pcbnew.ZONE_GetLocalFlags(self)
14168
14169 def SetLocalFlags(self, aFlags):
14170 r"""SetLocalFlags(ZONE self, int aFlags)"""
14171 return _pcbnew.ZONE_SetLocalFlags(self, aFlags)
14172
14173 def Outline(self, *args):
14174 r"""
14175 Outline(ZONE self) -> SHAPE_POLY_SET
14176 Outline(ZONE self) -> SHAPE_POLY_SET
14177 """
14178 return _pcbnew.ZONE_Outline(self, *args)
14179
14180 def SetOutline(self, aOutline):
14181 r"""SetOutline(ZONE self, SHAPE_POLY_SET aOutline)"""
14182 return _pcbnew.ZONE_SetOutline(self, aOutline)
14183
14184 def GetEffectiveShape(self, *args):
14185 r"""GetEffectiveShape(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14186 return _pcbnew.ZONE_GetEffectiveShape(self, *args)
14187
14188 def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0):
14189 r"""HitTestFilledArea(ZONE self, PCB_LAYER_ID aLayer, VECTOR2I aRefPos, int aAccuracy=0) -> bool"""
14190 return _pcbnew.ZONE_HitTestFilledArea(self, aLayer, aRefPos, aAccuracy)
14191
14192 def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None):
14193 r"""HitTestCutout(ZONE self, VECTOR2I aRefPos, int * aOutlineIdx=None, int * aHoleIdx=None) -> bool"""
14194 return _pcbnew.ZONE_HitTestCutout(self, aRefPos, aOutlineIdx, aHoleIdx)
14195
14196 def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones):
14197 r"""GetInteractingZones(ZONE self, PCB_LAYER_ID aLayer, ZONES aSameNetCollidingZones, ZONES aOtherNetIntersectingZones)"""
14198 return _pcbnew.ZONE_GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
14199
14200 def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer):
14201 r"""TransformSolidAreasShapesToPolygon(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBuffer)"""
14202 return _pcbnew.ZONE_TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
14203
14204 def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline):
14205 r"""TransformSmoothedOutlineToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, SHAPE_POLY_SET aBoardOutline)"""
14206 return _pcbnew.ZONE_TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
14207
14208 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
14209 r"""TransformShapeToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
14210 return _pcbnew.ZONE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
14211
14212 def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None):
14213 r"""HitTestForCorner(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
14214 return _pcbnew.ZONE_HitTestForCorner(self, refPos, aAccuracy, aCornerHit)
14215
14216 def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None):
14217 r"""HitTestForEdge(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
14218 return _pcbnew.ZONE_HitTestForEdge(self, refPos, aAccuracy, aCornerHit)
14219
14220 def HitTest(self, *args):
14221 r"""
14222 HitTest(ZONE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14223 HitTest(ZONE self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
14224 """
14225 return _pcbnew.ZONE_HitTest(self, *args)
14226
14227 def UnFill(self):
14228 r"""UnFill(ZONE self) -> bool"""
14229 return _pcbnew.ZONE_UnFill(self)
14230
14231 def MoveEdge(self, offset, aEdge):
14232 r"""MoveEdge(ZONE self, VECTOR2I offset, int aEdge)"""
14233 return _pcbnew.ZONE_MoveEdge(self, offset, aEdge)
14234
14235 def Mirror(self, aMirrorRef, aMirrorLeftRight):
14236 r"""Mirror(ZONE self, VECTOR2I aMirrorRef, bool aMirrorLeftRight)"""
14237 return _pcbnew.ZONE_Mirror(self, aMirrorRef, aMirrorLeftRight)
14238
14239 def GetNumCorners(self):
14240 r"""GetNumCorners(ZONE self) -> int"""
14241 return _pcbnew.ZONE_GetNumCorners(self)
14242
14243 def Iterate(self):
14244 r"""Iterate(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
14245 return _pcbnew.ZONE_Iterate(self)
14246
14248 r"""IterateWithHoles(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
14249 return _pcbnew.ZONE_IterateWithHoles(self)
14250
14252 r"""CIterateWithHoles(ZONE self) -> SHAPE_POLY_SET::CONST_ITERATOR"""
14253 return _pcbnew.ZONE_CIterateWithHoles(self)
14254
14256 r"""RemoveAllContours(ZONE self)"""
14257 return _pcbnew.ZONE_RemoveAllContours(self)
14258
14259 def GetCornerPosition(self, aCornerIndex):
14260 r"""GetCornerPosition(ZONE self, int aCornerIndex) -> VECTOR2I"""
14261 return _pcbnew.ZONE_GetCornerPosition(self, aCornerIndex)
14262
14263 def SetCornerPosition(self, aCornerIndex, new_pos):
14264 r"""SetCornerPosition(ZONE self, int aCornerIndex, VECTOR2I new_pos)"""
14265 return _pcbnew.ZONE_SetCornerPosition(self, aCornerIndex, new_pos)
14266
14267 def NewHole(self):
14268 r"""NewHole(ZONE self)"""
14269 return _pcbnew.ZONE_NewHole(self)
14270
14271 def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False):
14272 r"""AppendCorner(ZONE self, VECTOR2I aPosition, int aHoleIdx, bool aAllowDuplication=False) -> bool"""
14273 return _pcbnew.ZONE_AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication)
14274
14275 def GetHatchStyle(self):
14276 r"""GetHatchStyle(ZONE self) -> ZONE_BORDER_DISPLAY_STYLE"""
14277 return _pcbnew.ZONE_GetHatchStyle(self)
14278
14279 def SetHatchStyle(self, aStyle):
14280 r"""SetHatchStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aStyle)"""
14281 return _pcbnew.ZONE_SetHatchStyle(self, aStyle)
14282
14283 def HasFilledPolysForLayer(self, aLayer):
14284 r"""HasFilledPolysForLayer(ZONE self, PCB_LAYER_ID aLayer) -> bool"""
14285 return _pcbnew.ZONE_HasFilledPolysForLayer(self, aLayer)
14286
14287 def GetFilledPolysList(self, aLayer):
14288 r"""GetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer) -> std::shared_ptr< SHAPE_POLY_SET > const &"""
14289 return _pcbnew.ZONE_GetFilledPolysList(self, aLayer)
14290
14291 def GetFill(self, aLayer):
14292 r"""GetFill(ZONE self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
14293 return _pcbnew.ZONE_GetFill(self, aLayer)
14294
14295 def CacheTriangulation(self, aLayer=UNDEFINED_LAYER):
14296 r"""CacheTriangulation(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
14297 return _pcbnew.ZONE_CacheTriangulation(self, aLayer)
14298
14299 def SetFilledPolysList(self, aLayer, aPolysList):
14300 r"""SetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aPolysList)"""
14301 return _pcbnew.ZONE_SetFilledPolysList(self, aLayer, aPolysList)
14302
14303 def IsIsland(self, aLayer, aPolyIdx):
14304 r"""IsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx) -> bool"""
14305 return _pcbnew.ZONE_IsIsland(self, aLayer, aPolyIdx)
14306
14307 def SetIsIsland(self, aLayer, aPolyIdx):
14308 r"""SetIsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx)"""
14309 return _pcbnew.ZONE_SetIsIsland(self, aLayer, aPolyIdx)
14310
14311 def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None):
14312 r"""BuildSmoothedPoly(ZONE self, SHAPE_POLY_SET aSmoothedPoly, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBoardOutline, SHAPE_POLY_SET aSmoothedPolyWithApron=None) -> bool"""
14313 return _pcbnew.ZONE_BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron)
14314
14315 def SetCornerSmoothingType(self, aType):
14316 r"""SetCornerSmoothingType(ZONE self, int aType)"""
14317 return _pcbnew.ZONE_SetCornerSmoothingType(self, aType)
14318
14320 r"""GetCornerSmoothingType(ZONE self) -> int"""
14321 return _pcbnew.ZONE_GetCornerSmoothingType(self)
14322
14323 def SetCornerRadius(self, aRadius):
14324 r"""SetCornerRadius(ZONE self, unsigned int aRadius)"""
14325 return _pcbnew.ZONE_SetCornerRadius(self, aRadius)
14326
14328 r"""GetCornerRadius(ZONE self) -> unsigned int"""
14329 return _pcbnew.ZONE_GetCornerRadius(self)
14330
14331 def RemoveCutout(self, aOutlineIdx, aHoleIdx):
14332 r"""RemoveCutout(ZONE self, int aOutlineIdx, int aHoleIdx)"""
14333 return _pcbnew.ZONE_RemoveCutout(self, aOutlineIdx, aHoleIdx)
14334
14335 def AddPolygon(self, *args):
14336 r"""
14337 AddPolygon(ZONE self, VECTOR_VECTOR2I aPolygon)
14338 AddPolygon(ZONE self, SHAPE_LINE_CHAIN aPolygon)
14339 """
14340 return _pcbnew.ZONE_AddPolygon(self, *args)
14341
14343 r"""IsTeardropArea(ZONE self) -> bool"""
14344 return _pcbnew.ZONE_IsTeardropArea(self)
14345
14346 def SetTeardropAreaType(self, aType):
14347 r"""SetTeardropAreaType(ZONE self, TEARDROP_TYPE aType)"""
14348 return _pcbnew.ZONE_SetTeardropAreaType(self, aType)
14349
14351 r"""GetTeardropAreaType(ZONE self) -> TEARDROP_TYPE"""
14352 return _pcbnew.ZONE_GetTeardropAreaType(self)
14353
14354 def GetIsRuleArea(self):
14355 r"""GetIsRuleArea(ZONE self) -> bool"""
14356 return _pcbnew.ZONE_GetIsRuleArea(self)
14357
14359 r"""GetDoNotAllowCopperPour(ZONE self) -> bool"""
14360 return _pcbnew.ZONE_GetDoNotAllowCopperPour(self)
14361
14363 r"""GetDoNotAllowVias(ZONE self) -> bool"""
14364 return _pcbnew.ZONE_GetDoNotAllowVias(self)
14365
14367 r"""GetDoNotAllowTracks(ZONE self) -> bool"""
14368 return _pcbnew.ZONE_GetDoNotAllowTracks(self)
14369
14371 r"""GetDoNotAllowPads(ZONE self) -> bool"""
14372 return _pcbnew.ZONE_GetDoNotAllowPads(self)
14373
14375 r"""GetDoNotAllowFootprints(ZONE self) -> bool"""
14376 return _pcbnew.ZONE_GetDoNotAllowFootprints(self)
14377
14378 def SetIsRuleArea(self, aEnable):
14379 r"""SetIsRuleArea(ZONE self, bool aEnable)"""
14380 return _pcbnew.ZONE_SetIsRuleArea(self, aEnable)
14381
14382 def SetDoNotAllowCopperPour(self, aEnable):
14383 r"""SetDoNotAllowCopperPour(ZONE self, bool aEnable)"""
14384 return _pcbnew.ZONE_SetDoNotAllowCopperPour(self, aEnable)
14385
14386 def SetDoNotAllowVias(self, aEnable):
14387 r"""SetDoNotAllowVias(ZONE self, bool aEnable)"""
14388 return _pcbnew.ZONE_SetDoNotAllowVias(self, aEnable)
14389
14390 def SetDoNotAllowTracks(self, aEnable):
14391 r"""SetDoNotAllowTracks(ZONE self, bool aEnable)"""
14392 return _pcbnew.ZONE_SetDoNotAllowTracks(self, aEnable)
14393
14394 def SetDoNotAllowPads(self, aEnable):
14395 r"""SetDoNotAllowPads(ZONE self, bool aEnable)"""
14396 return _pcbnew.ZONE_SetDoNotAllowPads(self, aEnable)
14397
14398 def SetDoNotAllowFootprints(self, aEnable):
14399 r"""SetDoNotAllowFootprints(ZONE self, bool aEnable)"""
14400 return _pcbnew.ZONE_SetDoNotAllowFootprints(self, aEnable)
14401
14403 r"""GetIslandRemovalMode(ZONE self) -> ISLAND_REMOVAL_MODE"""
14404 return _pcbnew.ZONE_GetIslandRemovalMode(self)
14405
14406 def SetIslandRemovalMode(self, aRemove):
14407 r"""SetIslandRemovalMode(ZONE self, ISLAND_REMOVAL_MODE aRemove)"""
14408 return _pcbnew.ZONE_SetIslandRemovalMode(self, aRemove)
14409
14411 r"""GetMinIslandArea(ZONE self) -> long long"""
14412 return _pcbnew.ZONE_GetMinIslandArea(self)
14413
14414 def SetMinIslandArea(self, aArea):
14415 r"""SetMinIslandArea(ZONE self, long long aArea)"""
14416 return _pcbnew.ZONE_SetMinIslandArea(self, aArea)
14417
14419 r"""GetBorderHatchPitch(ZONE self) -> int"""
14420 return _pcbnew.ZONE_GetBorderHatchPitch(self)
14421
14422 @staticmethod
14424 r"""GetDefaultHatchPitch() -> int"""
14425 return _pcbnew.ZONE_GetDefaultHatchPitch()
14426
14427 def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch):
14428 r"""SetBorderDisplayStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aBorderHatchStyle, int aBorderHatchPitch, bool aRebuilBorderdHatch)"""
14429 return _pcbnew.ZONE_SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
14430
14431 def SetBorderHatchPitch(self, aPitch):
14432 r"""SetBorderHatchPitch(ZONE self, int aPitch)"""
14433 return _pcbnew.ZONE_SetBorderHatchPitch(self, aPitch)
14434
14435 def UnHatchBorder(self):
14436 r"""UnHatchBorder(ZONE self)"""
14437 return _pcbnew.ZONE_UnHatchBorder(self)
14438
14439 def HatchBorder(self):
14440 r"""HatchBorder(ZONE self)"""
14441 return _pcbnew.ZONE_HatchBorder(self)
14442
14443 def GetHatchLines(self):
14444 r"""GetHatchLines(ZONE self) -> std::vector< SEG,std::allocator< SEG > > const &"""
14445 return _pcbnew.ZONE_GetHatchLines(self)
14446
14447 def BuildHashValue(self, aLayer):
14448 r"""BuildHashValue(ZONE self, PCB_LAYER_ID aLayer)"""
14449 return _pcbnew.ZONE_BuildHashValue(self, aLayer)
14450
14451 def GetHashValue(self, aLayer):
14452 r"""GetHashValue(ZONE self, PCB_LAYER_ID aLayer) -> MD5_HASH"""
14453 return _pcbnew.ZONE_GetHashValue(self, aLayer)
14454
14455# Register ZONE in _pcbnew:
14456_pcbnew.ZONE_swigregister(ZONE)
14457
14458def ZONE_ClassOf(aItem):
14459 r"""ZONE_ClassOf(EDA_ITEM aItem) -> bool"""
14460 return _pcbnew.ZONE_ClassOf(aItem)
14461
14463 r"""ZONE_GetDefaultHatchPitch() -> int"""
14464 return _pcbnew.ZONE_GetDefaultHatchPitch()
14465
14466ZONE_THERMAL_RELIEF_GAP_MM = _pcbnew.ZONE_THERMAL_RELIEF_GAP_MM
14467
14468ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM = _pcbnew.ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM
14469
14470ZONE_THICKNESS_MM = _pcbnew.ZONE_THICKNESS_MM
14471
14472ZONE_THICKNESS_MIN_VALUE_MM = _pcbnew.ZONE_THICKNESS_MIN_VALUE_MM
14473
14474ZONE_CLEARANCE_MM = _pcbnew.ZONE_CLEARANCE_MM
14475
14476ZONE_CLEARANCE_MAX_VALUE_MM = _pcbnew.ZONE_CLEARANCE_MAX_VALUE_MM
14477
14478ZONE_BORDER_HATCH_DIST_MM = _pcbnew.ZONE_BORDER_HATCH_DIST_MM
14479
14480ZONE_BORDER_HATCH_MINDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MINDIST_MM
14481
14482ZONE_BORDER_HATCH_MAXDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MAXDIST_MM
14483
14484ZONE_CONNECTION_INHERITED = _pcbnew.ZONE_CONNECTION_INHERITED
14485
14486ZONE_CONNECTION_NONE = _pcbnew.ZONE_CONNECTION_NONE
14487
14488ZONE_CONNECTION_THERMAL = _pcbnew.ZONE_CONNECTION_THERMAL
14489
14490ZONE_CONNECTION_FULL = _pcbnew.ZONE_CONNECTION_FULL
14491
14492ZONE_CONNECTION_THT_THERMAL = _pcbnew.ZONE_CONNECTION_THT_THERMAL
14493
14494
14495def PrintZoneConnection(aConnection):
14496 r"""PrintZoneConnection(ZONE_CONNECTION aConnection) -> wxString"""
14497 return _pcbnew.PrintZoneConnection(aConnection)
14498
14499def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None):
14500 r"""InvokeNonCopperZonesEditor(PCB_BASE_FRAME * aParent, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
14501 return _pcbnew.InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings)
14502
14503def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None):
14504 r"""InvokeCopperZonesEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
14505 return _pcbnew.InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings)
14506
14507def InvokeRuleAreaEditor(aCaller, aSettings, aConvertSettings=None):
14508 r"""InvokeRuleAreaEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
14509 return _pcbnew.InvokeRuleAreaEditor(aCaller, aSettings, aConvertSettings)
14511 r"""Proxy of C++ ZONE_FILLER class."""
14512
14513 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14514 __repr__ = _swig_repr
14515 __swig_destroy__ = _pcbnew.delete_ZONE_FILLER
14516
14517 def SetProgressReporter(self, aReporter):
14518 r"""SetProgressReporter(ZONE_FILLER self, PROGRESS_REPORTER * aReporter)"""
14519 return _pcbnew.ZONE_FILLER_SetProgressReporter(self, aReporter)
14520
14522 r"""GetProgressReporter(ZONE_FILLER self) -> PROGRESS_REPORTER *"""
14523 return _pcbnew.ZONE_FILLER_GetProgressReporter(self)
14524
14525 def Fill(self, aZones, aCheck=False, aParent=None):
14526 r"""Fill(ZONE_FILLER self, ZONES aZones, bool aCheck=False, wxWindow * aParent=None) -> bool"""
14527 return _pcbnew.ZONE_FILLER_Fill(self, aZones, aCheck, aParent)
14528
14529 def IsDebug(self):
14530 r"""IsDebug(ZONE_FILLER self) -> bool"""
14531 return _pcbnew.ZONE_FILLER_IsDebug(self)
14532
14533 def __init__(self, aBoard):
14534 r"""__init__(ZONE_FILLER self, BOARD aBoard) -> ZONE_FILLER"""
14535 _pcbnew.ZONE_FILLER_swiginit(self, _pcbnew.new_ZONE_FILLER(aBoard))
14536
14537# Register ZONE_FILLER in _pcbnew:
14538_pcbnew.ZONE_FILLER_swigregister(ZONE_FILLER)
14539
14540ZONE_FILL_MODE_POLYGONS = _pcbnew.ZONE_FILL_MODE_POLYGONS
14541
14542ZONE_FILL_MODE_HATCH_PATTERN = _pcbnew.ZONE_FILL_MODE_HATCH_PATTERN
14543
14544ZONE_BORDER_DISPLAY_STYLE_NO_HATCH = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_NO_HATCH
14545
14546ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL
14547
14548ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE
14549
14550ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER
14551
14552ISLAND_REMOVAL_MODE_ALWAYS = _pcbnew.ISLAND_REMOVAL_MODE_ALWAYS
14553
14554ISLAND_REMOVAL_MODE_NEVER = _pcbnew.ISLAND_REMOVAL_MODE_NEVER
14555
14556ISLAND_REMOVAL_MODE_AREA = _pcbnew.ISLAND_REMOVAL_MODE_AREA
14557
14559 r"""Proxy of C++ ZONE_SETTINGS class."""
14560
14561 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14562 __repr__ = _swig_repr
14563 SMOOTHING_UNDEFINED = _pcbnew.ZONE_SETTINGS_SMOOTHING_UNDEFINED
14564
14565 SMOOTHING_NONE = _pcbnew.ZONE_SETTINGS_SMOOTHING_NONE
14566
14567 SMOOTHING_CHAMFER = _pcbnew.ZONE_SETTINGS_SMOOTHING_CHAMFER
14568
14569 SMOOTHING_FILLET = _pcbnew.ZONE_SETTINGS_SMOOTHING_FILLET
14570
14571 SMOOTHING_LAST = _pcbnew.ZONE_SETTINGS_SMOOTHING_LAST
14572
14573 m_ZonePriority = property(_pcbnew.ZONE_SETTINGS_m_ZonePriority_get, _pcbnew.ZONE_SETTINGS_m_ZonePriority_set, doc=r"""m_ZonePriority : unsigned int""")
14574 m_FillMode = property(_pcbnew.ZONE_SETTINGS_m_FillMode_get, _pcbnew.ZONE_SETTINGS_m_FillMode_set, doc=r"""m_FillMode : ZONE_FILL_MODE""")
14575 m_ZoneClearance = property(_pcbnew.ZONE_SETTINGS_m_ZoneClearance_get, _pcbnew.ZONE_SETTINGS_m_ZoneClearance_set, doc=r"""m_ZoneClearance : int""")
14576 m_ZoneMinThickness = property(_pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_get, _pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_set, doc=r"""m_ZoneMinThickness : int""")
14577 m_HatchThickness = property(_pcbnew.ZONE_SETTINGS_m_HatchThickness_get, _pcbnew.ZONE_SETTINGS_m_HatchThickness_set, doc=r"""m_HatchThickness : int""")
14578 m_HatchGap = property(_pcbnew.ZONE_SETTINGS_m_HatchGap_get, _pcbnew.ZONE_SETTINGS_m_HatchGap_set, doc=r"""m_HatchGap : int""")
14579 m_HatchOrientation = property(_pcbnew.ZONE_SETTINGS_m_HatchOrientation_get, _pcbnew.ZONE_SETTINGS_m_HatchOrientation_set, doc=r"""m_HatchOrientation : EDA_ANGLE""")
14580 m_HatchSmoothingLevel = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_set, doc=r"""m_HatchSmoothingLevel : int""")
14581 m_HatchSmoothingValue = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_set, doc=r"""m_HatchSmoothingValue : double""")
14582 m_HatchHoleMinArea = property(_pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_get, _pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_set, doc=r"""m_HatchHoleMinArea : double""")
14583 m_HatchBorderAlgorithm = property(_pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_get, _pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_set, doc=r"""m_HatchBorderAlgorithm : int""")
14584 m_NetcodeSelection = property(_pcbnew.ZONE_SETTINGS_m_NetcodeSelection_get, _pcbnew.ZONE_SETTINGS_m_NetcodeSelection_set, doc=r"""m_NetcodeSelection : int""")
14585 m_Name = property(_pcbnew.ZONE_SETTINGS_m_Name_get, _pcbnew.ZONE_SETTINGS_m_Name_set, doc=r"""m_Name : wxString""")
14586 m_Layers = property(_pcbnew.ZONE_SETTINGS_m_Layers_get, _pcbnew.ZONE_SETTINGS_m_Layers_set, doc=r"""m_Layers : LSET""")
14587 m_ZoneBorderDisplayStyle = property(_pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_get, _pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_set, doc=r"""m_ZoneBorderDisplayStyle : ZONE_BORDER_DISPLAY_STYLE""")
14588 m_BorderHatchPitch = property(_pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_get, _pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_set, doc=r"""m_BorderHatchPitch : int""")
14589 m_ThermalReliefGap = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_set, doc=r"""m_ThermalReliefGap : long""")
14590 m_ThermalReliefSpokeWidth = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_set, doc=r"""m_ThermalReliefSpokeWidth : long""")
14591 m_Locked = property(_pcbnew.ZONE_SETTINGS_m_Locked_get, _pcbnew.ZONE_SETTINGS_m_Locked_set, doc=r"""m_Locked : bool""")
14592 m_TeardropType = property(_pcbnew.ZONE_SETTINGS_m_TeardropType_get, _pcbnew.ZONE_SETTINGS_m_TeardropType_set, doc=r"""m_TeardropType : TEARDROP_TYPE""")
14593
14594 def __init__(self):
14595 r"""__init__(ZONE_SETTINGS self) -> ZONE_SETTINGS"""
14596 _pcbnew.ZONE_SETTINGS_swiginit(self, _pcbnew.new_ZONE_SETTINGS())
14597
14598 def __eq__(self, aOther):
14599 r"""__eq__(ZONE_SETTINGS self, ZONE_SETTINGS aOther) -> bool"""
14600 return _pcbnew.ZONE_SETTINGS___eq__(self, aOther)
14601
14602 def __ne__(self, aOther):
14603 r"""__ne__(ZONE_SETTINGS self, ZONE_SETTINGS aOther) -> bool"""
14604 return _pcbnew.ZONE_SETTINGS___ne__(self, aOther)
14605
14606 def __lshift__(self, aSource):
14607 r"""__lshift__(ZONE_SETTINGS self, ZONE aSource) -> ZONE_SETTINGS"""
14608 return _pcbnew.ZONE_SETTINGS___lshift__(self, aSource)
14609
14610 @staticmethod
14612 r"""GetDefaultSettings() -> ZONE_SETTINGS"""
14613 return _pcbnew.ZONE_SETTINGS_GetDefaultSettings()
14614
14615 def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode):
14616 r"""SetupLayersList(ZONE_SETTINGS self, wxDataViewListCtrl * aList, PCB_BASE_FRAME * aFrame, LSET aLayers, bool aFpEditorMode)"""
14617 return _pcbnew.ZONE_SETTINGS_SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
14618
14619 def ExportSetting(self, aTarget, aFullExport=True):
14620 r"""ExportSetting(ZONE_SETTINGS self, ZONE aTarget, bool aFullExport=True)"""
14621 return _pcbnew.ZONE_SETTINGS_ExportSetting(self, aTarget, aFullExport)
14622
14623 def SetCornerSmoothingType(self, aType):
14624 r"""SetCornerSmoothingType(ZONE_SETTINGS self, int aType)"""
14625 return _pcbnew.ZONE_SETTINGS_SetCornerSmoothingType(self, aType)
14626
14628 r"""GetCornerSmoothingType(ZONE_SETTINGS self) -> int"""
14629 return _pcbnew.ZONE_SETTINGS_GetCornerSmoothingType(self)
14630
14631 def SetCornerRadius(self, aRadius):
14632 r"""SetCornerRadius(ZONE_SETTINGS self, int aRadius)"""
14633 return _pcbnew.ZONE_SETTINGS_SetCornerRadius(self, aRadius)
14634
14636 r"""GetCornerRadius(ZONE_SETTINGS self) -> unsigned int"""
14637 return _pcbnew.ZONE_SETTINGS_GetCornerRadius(self)
14638
14640 r"""GetPadConnection(ZONE_SETTINGS self) -> ZONE_CONNECTION"""
14641 return _pcbnew.ZONE_SETTINGS_GetPadConnection(self)
14642
14643 def SetPadConnection(self, aPadConnection):
14644 r"""SetPadConnection(ZONE_SETTINGS self, ZONE_CONNECTION aPadConnection)"""
14645 return _pcbnew.ZONE_SETTINGS_SetPadConnection(self, aPadConnection)
14646
14647 def GetIsRuleArea(self):
14648 r"""GetIsRuleArea(ZONE_SETTINGS self) -> bool"""
14649 return _pcbnew.ZONE_SETTINGS_GetIsRuleArea(self)
14650
14652 r"""GetDoNotAllowCopperPour(ZONE_SETTINGS self) -> bool"""
14653 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowCopperPour(self)
14654
14656 r"""GetDoNotAllowVias(ZONE_SETTINGS self) -> bool"""
14657 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowVias(self)
14658
14660 r"""GetDoNotAllowTracks(ZONE_SETTINGS self) -> bool"""
14661 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowTracks(self)
14662
14664 r"""GetDoNotAllowPads(ZONE_SETTINGS self) -> bool"""
14665 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowPads(self)
14666
14668 r"""GetDoNotAllowFootprints(ZONE_SETTINGS self) -> bool"""
14669 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowFootprints(self)
14670
14671 def SetIsRuleArea(self, aEnable):
14672 r"""SetIsRuleArea(ZONE_SETTINGS self, bool aEnable)"""
14673 return _pcbnew.ZONE_SETTINGS_SetIsRuleArea(self, aEnable)
14674
14675 def SetDoNotAllowCopperPour(self, aEnable):
14676 r"""SetDoNotAllowCopperPour(ZONE_SETTINGS self, bool aEnable)"""
14677 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowCopperPour(self, aEnable)
14678
14679 def SetDoNotAllowVias(self, aEnable):
14680 r"""SetDoNotAllowVias(ZONE_SETTINGS self, bool aEnable)"""
14681 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowVias(self, aEnable)
14682
14683 def SetDoNotAllowTracks(self, aEnable):
14684 r"""SetDoNotAllowTracks(ZONE_SETTINGS self, bool aEnable)"""
14685 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowTracks(self, aEnable)
14686
14687 def SetDoNotAllowPads(self, aEnable):
14688 r"""SetDoNotAllowPads(ZONE_SETTINGS self, bool aEnable)"""
14689 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowPads(self, aEnable)
14690
14691 def SetDoNotAllowFootprints(self, aEnable):
14692 r"""SetDoNotAllowFootprints(ZONE_SETTINGS self, bool aEnable)"""
14693 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowFootprints(self, aEnable)
14694
14696 r"""GetIslandRemovalMode(ZONE_SETTINGS self) -> ISLAND_REMOVAL_MODE"""
14697 return _pcbnew.ZONE_SETTINGS_GetIslandRemovalMode(self)
14698
14699 def SetIslandRemovalMode(self, aRemove):
14700 r"""SetIslandRemovalMode(ZONE_SETTINGS self, ISLAND_REMOVAL_MODE aRemove)"""
14701 return _pcbnew.ZONE_SETTINGS_SetIslandRemovalMode(self, aRemove)
14702
14704 r"""GetMinIslandArea(ZONE_SETTINGS self) -> long long"""
14705 return _pcbnew.ZONE_SETTINGS_GetMinIslandArea(self)
14706
14707 def SetMinIslandArea(self, aArea):
14708 r"""SetMinIslandArea(ZONE_SETTINGS self, long long aArea)"""
14709 return _pcbnew.ZONE_SETTINGS_SetMinIslandArea(self, aArea)
14710 __swig_destroy__ = _pcbnew.delete_ZONE_SETTINGS
14711
14712# Register ZONE_SETTINGS in _pcbnew:
14713_pcbnew.ZONE_SETTINGS_swigregister(ZONE_SETTINGS)
14714
14716 r"""ZONE_SETTINGS_GetDefaultSettings() -> ZONE_SETTINGS"""
14717 return _pcbnew.ZONE_SETTINGS_GetDefaultSettings()
14718
14719TENTHS_OF_A_DEGREE_T = _pcbnew.TENTHS_OF_A_DEGREE_T
14720
14721DEGREES_T = _pcbnew.DEGREES_T
14722
14723RADIANS_T = _pcbnew.RADIANS_T
14724
14726 r"""Proxy of C++ EDA_ANGLE class."""
14727
14728 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14729 __repr__ = _swig_repr
14730
14731 def __init__(self, *args):
14732 r"""
14733 __init__(EDA_ANGLE self, double aValue, EDA_ANGLE_T aAngleType) -> EDA_ANGLE
14734 __init__(EDA_ANGLE self, double aAngleInDegrees) -> EDA_ANGLE
14735 __init__(EDA_ANGLE self, VECTOR2D const & aVector) -> EDA_ANGLE
14736 __init__(EDA_ANGLE self, VECTOR2I aVector) -> EDA_ANGLE
14737 __init__(EDA_ANGLE self) -> EDA_ANGLE
14738 """
14739 _pcbnew.EDA_ANGLE_swiginit(self, _pcbnew.new_EDA_ANGLE(*args))
14740
14741 def AsDegrees(self):
14742 r"""AsDegrees(EDA_ANGLE self) -> double"""
14743 return _pcbnew.EDA_ANGLE_AsDegrees(self)
14744
14746 r"""AsTenthsOfADegree(EDA_ANGLE self) -> int"""
14747 return _pcbnew.EDA_ANGLE_AsTenthsOfADegree(self)
14748
14749 def AsRadians(self):
14750 r"""AsRadians(EDA_ANGLE self) -> double"""
14751 return _pcbnew.EDA_ANGLE_AsRadians(self)
14752 DEGREES_TO_RADIANS = _pcbnew.EDA_ANGLE_DEGREES_TO_RADIANS
14753
14754
14755 def IsCardinal(self):
14756 r"""IsCardinal(EDA_ANGLE self) -> bool"""
14757 return _pcbnew.EDA_ANGLE_IsCardinal(self)
14758
14759 def IsCardinal90(self):
14760 r"""IsCardinal90(EDA_ANGLE self) -> bool"""
14761 return _pcbnew.EDA_ANGLE_IsCardinal90(self)
14762
14763 def IsZero(self):
14764 r"""IsZero(EDA_ANGLE self) -> bool"""
14765 return _pcbnew.EDA_ANGLE_IsZero(self)
14766
14767 def IsHorizontal(self):
14768 r"""IsHorizontal(EDA_ANGLE self) -> bool"""
14769 return _pcbnew.EDA_ANGLE_IsHorizontal(self)
14770
14771 def IsVertical(self):
14772 r"""IsVertical(EDA_ANGLE self) -> bool"""
14773 return _pcbnew.EDA_ANGLE_IsVertical(self)
14774
14775 def IsParallelTo(self, aAngle):
14776 r"""IsParallelTo(EDA_ANGLE self, EDA_ANGLE aAngle) -> bool"""
14777 return _pcbnew.EDA_ANGLE_IsParallelTo(self, aAngle)
14778
14779 def Invert(self):
14780 r"""Invert(EDA_ANGLE self) -> EDA_ANGLE"""
14781 return _pcbnew.EDA_ANGLE_Invert(self)
14782
14783 def Sin(self):
14784 r"""Sin(EDA_ANGLE self) -> double"""
14785 return _pcbnew.EDA_ANGLE_Sin(self)
14786
14787 def Cos(self):
14788 r"""Cos(EDA_ANGLE self) -> double"""
14789 return _pcbnew.EDA_ANGLE_Cos(self)
14790
14791 def Tan(self):
14792 r"""Tan(EDA_ANGLE self) -> double"""
14793 return _pcbnew.EDA_ANGLE_Tan(self)
14794
14795 @staticmethod
14796 def Arccos(x):
14797 r"""Arccos(double x) -> EDA_ANGLE"""
14798 return _pcbnew.EDA_ANGLE_Arccos(x)
14799
14800 @staticmethod
14801 def Arcsin(x):
14802 r"""Arcsin(double x) -> EDA_ANGLE"""
14803 return _pcbnew.EDA_ANGLE_Arcsin(x)
14804
14805 @staticmethod
14806 def Arctan(x):
14807 r"""Arctan(double x) -> EDA_ANGLE"""
14808 return _pcbnew.EDA_ANGLE_Arctan(x)
14809
14810 @staticmethod
14811 def Arctan2(y, x):
14812 r"""Arctan2(double y, double x) -> EDA_ANGLE"""
14813 return _pcbnew.EDA_ANGLE_Arctan2(y, x)
14814
14815 def Normalize(self):
14816 r"""Normalize(EDA_ANGLE self) -> EDA_ANGLE"""
14817 return _pcbnew.EDA_ANGLE_Normalize(self)
14818
14819 def Normalized(self):
14820 r"""Normalized(EDA_ANGLE self) -> EDA_ANGLE"""
14821 return _pcbnew.EDA_ANGLE_Normalized(self)
14822
14824 r"""NormalizeNegative(EDA_ANGLE self) -> EDA_ANGLE"""
14825 return _pcbnew.EDA_ANGLE_NormalizeNegative(self)
14826
14827 def Normalize90(self):
14828 r"""Normalize90(EDA_ANGLE self) -> EDA_ANGLE"""
14829 return _pcbnew.EDA_ANGLE_Normalize90(self)
14830
14831 def Normalize180(self):
14832 r"""Normalize180(EDA_ANGLE self) -> EDA_ANGLE"""
14833 return _pcbnew.EDA_ANGLE_Normalize180(self)
14834
14835 def Normalize720(self):
14836 r"""Normalize720(EDA_ANGLE self) -> EDA_ANGLE"""
14837 return _pcbnew.EDA_ANGLE_Normalize720(self)
14838
14839 def KeepUpright(self):
14840 r"""KeepUpright(EDA_ANGLE self) -> EDA_ANGLE"""
14841 return _pcbnew.EDA_ANGLE_KeepUpright(self)
14842
14843 def Round(self, digits):
14844 r"""Round(EDA_ANGLE self, int digits) -> EDA_ANGLE"""
14845 return _pcbnew.EDA_ANGLE_Round(self, digits)
14846
14847 def __iadd__(self, aAngle):
14848 r"""__iadd__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
14849 return _pcbnew.EDA_ANGLE___iadd__(self, aAngle)
14850
14851 def __isub__(self, aAngle):
14852 r"""__isub__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
14853 return _pcbnew.EDA_ANGLE___isub__(self, aAngle)
14854
14855 def __add__(self, other):
14856 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
14857 n += other
14858 return n
14859
14860 def __sub__(self, other):
14861 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
14862 n -= other
14863 return n
14864
14865 def __mul__(self, other):
14866 return EDA_ANGLE(self.AsDegrees() * other, DEGREES_T)
14867
14868 def __rmul__(self, other):
14869 return EDA_ANGLE(other * self.AsDegrees(), DEGREES_T)
14870
14871 def __truediv__(self, other):
14872 return EDA_ANGLE(self.AsDegrees() / other, DEGREES_T)
14873
14874 def __abs__(self):
14875 return EDA_ANGLE(abs(self.AsDegrees()), DEGREES_T)
14876
14877 __swig_destroy__ = _pcbnew.delete_EDA_ANGLE
14878
14879# Register EDA_ANGLE in _pcbnew:
14880_pcbnew.EDA_ANGLE_swigregister(EDA_ANGLE)
14881
14883 r"""EDA_ANGLE_Arccos(double x) -> EDA_ANGLE"""
14884 return _pcbnew.EDA_ANGLE_Arccos(x)
14885
14887 r"""EDA_ANGLE_Arcsin(double x) -> EDA_ANGLE"""
14888 return _pcbnew.EDA_ANGLE_Arcsin(x)
14889
14891 r"""EDA_ANGLE_Arctan(double x) -> EDA_ANGLE"""
14892 return _pcbnew.EDA_ANGLE_Arctan(x)
14893
14895 r"""EDA_ANGLE_Arctan2(double y, double x) -> EDA_ANGLE"""
14896 return _pcbnew.EDA_ANGLE_Arctan2(y, x)
14897
14898SHAPE_T_SEGMENT = _pcbnew.SHAPE_T_SEGMENT
14899
14900SHAPE_T_RECTANGLE = _pcbnew.SHAPE_T_RECTANGLE
14901
14902SHAPE_T_ARC = _pcbnew.SHAPE_T_ARC
14903
14904SHAPE_T_CIRCLE = _pcbnew.SHAPE_T_CIRCLE
14905
14906SHAPE_T_POLY = _pcbnew.SHAPE_T_POLY
14907
14908SHAPE_T_BEZIER = _pcbnew.SHAPE_T_BEZIER
14909
14910FILL_T_NO_FILL = _pcbnew.FILL_T_NO_FILL
14911
14912FILL_T_FILLED_SHAPE = _pcbnew.FILL_T_FILLED_SHAPE
14913
14914FILL_T_FILLED_WITH_BG_BODYCOLOR = _pcbnew.FILL_T_FILLED_WITH_BG_BODYCOLOR
14915
14916FILL_T_FILLED_WITH_COLOR = _pcbnew.FILL_T_FILLED_WITH_COLOR
14917
14919 r"""Proxy of C++ ARC_MID class."""
14920
14921 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14922 __repr__ = _swig_repr
14923 mid = property(_pcbnew.ARC_MID_mid_get, _pcbnew.ARC_MID_mid_set, doc=r"""mid : VECTOR2I""")
14924 start = property(_pcbnew.ARC_MID_start_get, _pcbnew.ARC_MID_start_set, doc=r"""start : VECTOR2I""")
14925 end = property(_pcbnew.ARC_MID_end_get, _pcbnew.ARC_MID_end_set, doc=r"""end : VECTOR2I""")
14926 center = property(_pcbnew.ARC_MID_center_get, _pcbnew.ARC_MID_center_set, doc=r"""center : VECTOR2I""")
14927
14928 def __init__(self):
14929 r"""__init__(ARC_MID self) -> ARC_MID"""
14930 _pcbnew.ARC_MID_swiginit(self, _pcbnew.new_ARC_MID())
14931 __swig_destroy__ = _pcbnew.delete_ARC_MID
14932
14933# Register ARC_MID in _pcbnew:
14934_pcbnew.ARC_MID_swigregister(ARC_MID)
14935ANGLE_HORIZONTAL = cvar.ANGLE_HORIZONTAL
14936ANGLE_VERTICAL = cvar.ANGLE_VERTICAL
14937FULL_CIRCLE = cvar.FULL_CIRCLE
14938ANGLE_0 = cvar.ANGLE_0
14939ANGLE_45 = cvar.ANGLE_45
14940ANGLE_90 = cvar.ANGLE_90
14941ANGLE_135 = cvar.ANGLE_135
14942ANGLE_180 = cvar.ANGLE_180
14943ANGLE_270 = cvar.ANGLE_270
14944ANGLE_360 = cvar.ANGLE_360
14945
14947 r"""Proxy of C++ EDA_SHAPE class."""
14948
14949 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14950 __repr__ = _swig_repr
14951
14952 def __init__(self, aType, aLineWidth, aFill):
14953 r"""__init__(EDA_SHAPE self, SHAPE_T aType, int aLineWidth, FILL_T aFill) -> EDA_SHAPE"""
14954 _pcbnew.EDA_SHAPE_swiginit(self, _pcbnew.new_EDA_SHAPE(aType, aLineWidth, aFill))
14955 __swig_destroy__ = _pcbnew.delete_EDA_SHAPE
14956
14957 def SwapShape(self, aImage):
14958 r"""SwapShape(EDA_SHAPE self, EDA_SHAPE aImage)"""
14959 return _pcbnew.EDA_SHAPE_SwapShape(self, aImage)
14960
14961 def ShowShape(self):
14962 r"""ShowShape(EDA_SHAPE self) -> wxString"""
14963 return _pcbnew.EDA_SHAPE_ShowShape(self)
14964
14966 r"""SHAPE_T_asString(EDA_SHAPE self) -> wxString"""
14967 return _pcbnew.EDA_SHAPE_SHAPE_T_asString(self)
14968
14969 def IsProxyItem(self):
14970 r"""IsProxyItem(EDA_SHAPE self) -> bool"""
14971 return _pcbnew.EDA_SHAPE_IsProxyItem(self)
14972
14973 def SetIsProxyItem(self, aIsProxy=True):
14974 r"""SetIsProxyItem(EDA_SHAPE self, bool aIsProxy=True)"""
14975 return _pcbnew.EDA_SHAPE_SetIsProxyItem(self, aIsProxy)
14976
14977 def IsFilled(self):
14978 r"""IsFilled(EDA_SHAPE self) -> bool"""
14979 return _pcbnew.EDA_SHAPE_IsFilled(self)
14980
14981 def SetFilled(self, aFlag):
14982 r"""SetFilled(EDA_SHAPE self, bool aFlag)"""
14983 return _pcbnew.EDA_SHAPE_SetFilled(self, aFlag)
14984
14985 def SetFillMode(self, aFill):
14986 r"""SetFillMode(EDA_SHAPE self, FILL_T aFill)"""
14987 return _pcbnew.EDA_SHAPE_SetFillMode(self, aFill)
14988
14989 def GetFillMode(self):
14990 r"""GetFillMode(EDA_SHAPE self) -> FILL_T"""
14991 return _pcbnew.EDA_SHAPE_GetFillMode(self)
14992
14993 def IsClosed(self):
14994 r"""IsClosed(EDA_SHAPE self) -> bool"""
14995 return _pcbnew.EDA_SHAPE_IsClosed(self)
14996
14997 def GetFillColor(self):
14998 r"""GetFillColor(EDA_SHAPE self) -> COLOR4D"""
14999 return _pcbnew.EDA_SHAPE_GetFillColor(self)
15000
15001 def SetFillColor(self, aColor):
15002 r"""SetFillColor(EDA_SHAPE self, COLOR4D aColor)"""
15003 return _pcbnew.EDA_SHAPE_SetFillColor(self, aColor)
15004
15005 def SetWidth(self, aWidth):
15006 r"""SetWidth(EDA_SHAPE self, int aWidth)"""
15007 return _pcbnew.EDA_SHAPE_SetWidth(self, aWidth)
15008
15009 def GetWidth(self):
15010 r"""GetWidth(EDA_SHAPE self) -> int"""
15011 return _pcbnew.EDA_SHAPE_GetWidth(self)
15012
15014 r"""GetEffectiveWidth(EDA_SHAPE self) -> int"""
15015 return _pcbnew.EDA_SHAPE_GetEffectiveWidth(self)
15016
15017 def SetLineStyle(self, aStyle):
15018 r"""SetLineStyle(EDA_SHAPE self, LINE_STYLE const aStyle)"""
15019 return _pcbnew.EDA_SHAPE_SetLineStyle(self, aStyle)
15020
15021 def GetLineStyle(self):
15022 r"""GetLineStyle(EDA_SHAPE self) -> LINE_STYLE"""
15023 return _pcbnew.EDA_SHAPE_GetLineStyle(self)
15024
15025 def SetLineColor(self, aColor):
15026 r"""SetLineColor(EDA_SHAPE self, COLOR4D aColor)"""
15027 return _pcbnew.EDA_SHAPE_SetLineColor(self, aColor)
15028
15029 def GetLineColor(self):
15030 r"""GetLineColor(EDA_SHAPE self) -> COLOR4D"""
15031 return _pcbnew.EDA_SHAPE_GetLineColor(self)
15032
15033 def SetShape(self, aShape):
15034 r"""SetShape(EDA_SHAPE self, SHAPE_T aShape)"""
15035 return _pcbnew.EDA_SHAPE_SetShape(self, aShape)
15036
15037 def GetShape(self):
15038 r"""GetShape(EDA_SHAPE self) -> SHAPE_T"""
15039 return _pcbnew.EDA_SHAPE_GetShape(self)
15040
15042 r"""GetFriendlyName(EDA_SHAPE self) -> wxString"""
15043 return _pcbnew.EDA_SHAPE_GetFriendlyName(self)
15044
15045 def GetStart(self):
15046 r"""GetStart(EDA_SHAPE self) -> VECTOR2I"""
15047 return _pcbnew.EDA_SHAPE_GetStart(self)
15048
15049 def GetStartY(self):
15050 r"""GetStartY(EDA_SHAPE self) -> int"""
15051 return _pcbnew.EDA_SHAPE_GetStartY(self)
15052
15053 def GetStartX(self):
15054 r"""GetStartX(EDA_SHAPE self) -> int"""
15055 return _pcbnew.EDA_SHAPE_GetStartX(self)
15056
15057 def SetStart(self, aStart):
15058 r"""SetStart(EDA_SHAPE self, VECTOR2I aStart)"""
15059 return _pcbnew.EDA_SHAPE_SetStart(self, aStart)
15060
15061 def SetStartY(self, y):
15062 r"""SetStartY(EDA_SHAPE self, int y)"""
15063 return _pcbnew.EDA_SHAPE_SetStartY(self, y)
15064
15065 def SetStartX(self, x):
15066 r"""SetStartX(EDA_SHAPE self, int x)"""
15067 return _pcbnew.EDA_SHAPE_SetStartX(self, x)
15068
15069 def SetCenterY(self, y):
15070 r"""SetCenterY(EDA_SHAPE self, int y)"""
15071 return _pcbnew.EDA_SHAPE_SetCenterY(self, y)
15072
15073 def SetCenterX(self, x):
15074 r"""SetCenterX(EDA_SHAPE self, int x)"""
15075 return _pcbnew.EDA_SHAPE_SetCenterX(self, x)
15076
15077 def GetEnd(self):
15078 r"""GetEnd(EDA_SHAPE self) -> VECTOR2I"""
15079 return _pcbnew.EDA_SHAPE_GetEnd(self)
15080
15081 def GetEndY(self):
15082 r"""GetEndY(EDA_SHAPE self) -> int"""
15083 return _pcbnew.EDA_SHAPE_GetEndY(self)
15084
15085 def GetEndX(self):
15086 r"""GetEndX(EDA_SHAPE self) -> int"""
15087 return _pcbnew.EDA_SHAPE_GetEndX(self)
15088
15089 def SetEnd(self, aEnd):
15090 r"""SetEnd(EDA_SHAPE self, VECTOR2I aEnd)"""
15091 return _pcbnew.EDA_SHAPE_SetEnd(self, aEnd)
15092
15093 def SetEndY(self, aY):
15094 r"""SetEndY(EDA_SHAPE self, int aY)"""
15095 return _pcbnew.EDA_SHAPE_SetEndY(self, aY)
15096
15097 def SetEndX(self, aX):
15098 r"""SetEndX(EDA_SHAPE self, int aX)"""
15099 return _pcbnew.EDA_SHAPE_SetEndX(self, aX)
15100
15101 def SetRadius(self, aX):
15102 r"""SetRadius(EDA_SHAPE self, int aX)"""
15103 return _pcbnew.EDA_SHAPE_SetRadius(self, aX)
15104
15105 def GetTopLeft(self):
15106 r"""GetTopLeft(EDA_SHAPE self) -> VECTOR2I"""
15107 return _pcbnew.EDA_SHAPE_GetTopLeft(self)
15108
15109 def GetBotRight(self):
15110 r"""GetBotRight(EDA_SHAPE self) -> VECTOR2I"""
15111 return _pcbnew.EDA_SHAPE_GetBotRight(self)
15112
15113 def SetTop(self, val):
15114 r"""SetTop(EDA_SHAPE self, int val)"""
15115 return _pcbnew.EDA_SHAPE_SetTop(self, val)
15116
15117 def SetLeft(self, val):
15118 r"""SetLeft(EDA_SHAPE self, int val)"""
15119 return _pcbnew.EDA_SHAPE_SetLeft(self, val)
15120
15121 def SetRight(self, val):
15122 r"""SetRight(EDA_SHAPE self, int val)"""
15123 return _pcbnew.EDA_SHAPE_SetRight(self, val)
15124
15125 def SetBottom(self, val):
15126 r"""SetBottom(EDA_SHAPE self, int val)"""
15127 return _pcbnew.EDA_SHAPE_SetBottom(self, val)
15128
15129 def SetBezierC1(self, aPt):
15130 r"""SetBezierC1(EDA_SHAPE self, VECTOR2I aPt)"""
15131 return _pcbnew.EDA_SHAPE_SetBezierC1(self, aPt)
15132
15133 def GetBezierC1(self):
15134 r"""GetBezierC1(EDA_SHAPE self) -> VECTOR2I"""
15135 return _pcbnew.EDA_SHAPE_GetBezierC1(self)
15136
15137 def SetBezierC2(self, aPt):
15138 r"""SetBezierC2(EDA_SHAPE self, VECTOR2I aPt)"""
15139 return _pcbnew.EDA_SHAPE_SetBezierC2(self, aPt)
15140
15141 def GetBezierC2(self):
15142 r"""GetBezierC2(EDA_SHAPE self) -> VECTOR2I"""
15143 return _pcbnew.EDA_SHAPE_GetBezierC2(self)
15144
15145 def SetCenter(self, aCenter):
15146 r"""SetCenter(EDA_SHAPE self, VECTOR2I aCenter)"""
15147 return _pcbnew.EDA_SHAPE_SetCenter(self, aCenter)
15148
15149 def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False):
15150 r"""SetArcAngleAndEnd(EDA_SHAPE self, EDA_ANGLE aAngle, bool aCheckNegativeAngle=False)"""
15151 return _pcbnew.EDA_SHAPE_SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle)
15152
15153 def GetArcAngle(self):
15154 r"""GetArcAngle(EDA_SHAPE self) -> EDA_ANGLE"""
15155 return _pcbnew.EDA_SHAPE_GetArcAngle(self)
15156
15158 r"""GetSegmentAngle(EDA_SHAPE self) -> EDA_ANGLE"""
15159 return _pcbnew.EDA_SHAPE_GetSegmentAngle(self)
15160
15161 def EndsSwapped(self):
15162 r"""EndsSwapped(EDA_SHAPE self) -> bool"""
15163 return _pcbnew.EDA_SHAPE_EndsSwapped(self)
15164
15165 def GetArcMid(self):
15166 r"""GetArcMid(EDA_SHAPE self) -> VECTOR2I"""
15167 return _pcbnew.EDA_SHAPE_GetArcMid(self)
15168
15170 r"""GetRectCorners(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
15171 return _pcbnew.EDA_SHAPE_GetRectCorners(self)
15172
15173 def CalcArcAngles(self, aStartAngle, aEndAngle):
15174 r"""CalcArcAngles(EDA_SHAPE self, EDA_ANGLE aStartAngle, EDA_ANGLE aEndAngle)"""
15175 return _pcbnew.EDA_SHAPE_CalcArcAngles(self, aStartAngle, aEndAngle)
15176
15177 def GetRadius(self):
15178 r"""GetRadius(EDA_SHAPE self) -> int"""
15179 return _pcbnew.EDA_SHAPE_GetRadius(self)
15180
15181 def SetArcGeometry(self, aStart, aMid, aEnd):
15182 r"""SetArcGeometry(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd)"""
15183 return _pcbnew.EDA_SHAPE_SetArcGeometry(self, aStart, aMid, aEnd)
15184
15185 def SetCachedArcData(self, aStart, aMid, aEnd, aCenter):
15186 r"""SetCachedArcData(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd, VECTOR2I aCenter)"""
15187 return _pcbnew.EDA_SHAPE_SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
15188
15190 r"""GetBezierPoints(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
15191 return _pcbnew.EDA_SHAPE_GetBezierPoints(self)
15192
15193 def DupPolyPointsList(self, aBuffer):
15194 r"""DupPolyPointsList(EDA_SHAPE self, VECTOR_VECTOR2I aBuffer)"""
15195 return _pcbnew.EDA_SHAPE_DupPolyPointsList(self, aBuffer)
15196
15197 def GetPointCount(self):
15198 r"""GetPointCount(EDA_SHAPE self) -> int"""
15199 return _pcbnew.EDA_SHAPE_GetPointCount(self)
15200
15201 def GetPolyShape(self, *args):
15202 r"""
15203 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
15204 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
15205 """
15206 return _pcbnew.EDA_SHAPE_GetPolyShape(self, *args)
15207
15209 r"""IsPolyShapeValid(EDA_SHAPE self) -> bool"""
15210 return _pcbnew.EDA_SHAPE_IsPolyShapeValid(self)
15211
15212 def SetPolyShape(self, aShape):
15213 r"""SetPolyShape(EDA_SHAPE self, SHAPE_POLY_SET aShape)"""
15214 return _pcbnew.EDA_SHAPE_SetPolyShape(self, aShape)
15215
15216 def SetPolyPoints(self, aPoints):
15217 r"""SetPolyPoints(EDA_SHAPE self, VECTOR_VECTOR2I aPoints)"""
15218 return _pcbnew.EDA_SHAPE_SetPolyPoints(self, aPoints)
15219
15221 r"""RebuildBezierToSegmentsPointsList(EDA_SHAPE self, int aMinSegLen)"""
15222 return _pcbnew.EDA_SHAPE_RebuildBezierToSegmentsPointsList(self, aMinSegLen)
15223
15224 def MakeEffectiveShapes(self, aEdgeOnly=False):
15225 r"""MakeEffectiveShapes(EDA_SHAPE self, bool aEdgeOnly=False) -> std::vector< SHAPE *,std::allocator< SHAPE * > >"""
15226 return _pcbnew.EDA_SHAPE_MakeEffectiveShapes(self, aEdgeOnly)
15227
15228 def ShapeGetMsgPanelInfo(self, aFrame, aList):
15229 r"""ShapeGetMsgPanelInfo(EDA_SHAPE self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
15230 return _pcbnew.EDA_SHAPE_ShapeGetMsgPanelInfo(self, aFrame, aList)
15231
15232 def SetLength(self, aLength):
15233 r"""SetLength(EDA_SHAPE self, double const & aLength)"""
15234 return _pcbnew.EDA_SHAPE_SetLength(self, aLength)
15235
15236 def SetRectangle(self, aHeight, aWidth):
15237 r"""SetRectangle(EDA_SHAPE self, long long const & aHeight, long long const & aWidth)"""
15238 return _pcbnew.EDA_SHAPE_SetRectangle(self, aHeight, aWidth)
15239
15240 def SetSegmentAngle(self, aAngle):
15241 r"""SetSegmentAngle(EDA_SHAPE self, EDA_ANGLE aAngle)"""
15242 return _pcbnew.EDA_SHAPE_SetSegmentAngle(self, aAngle)
15243
15245 r"""IsClockwiseArc(EDA_SHAPE self) -> bool"""
15246 return _pcbnew.EDA_SHAPE_IsClockwiseArc(self)
15247
15248 def GetLength(self):
15249 r"""GetLength(EDA_SHAPE self) -> double"""
15250 return _pcbnew.EDA_SHAPE_GetLength(self)
15251
15253 r"""GetRectangleHeight(EDA_SHAPE self) -> int"""
15254 return _pcbnew.EDA_SHAPE_GetRectangleHeight(self)
15255
15257 r"""GetRectangleWidth(EDA_SHAPE self) -> int"""
15258 return _pcbnew.EDA_SHAPE_GetRectangleWidth(self)
15259
15260 def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
15261 r"""TransformShapeToPolygon(EDA_SHAPE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
15262 return _pcbnew.EDA_SHAPE_TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth)
15263
15264 def Compare(self, aOther):
15265 r"""Compare(EDA_SHAPE self, EDA_SHAPE aOther) -> int"""
15266 return _pcbnew.EDA_SHAPE_Compare(self, aOther)
15267
15268 def Similarity(self, aOther):
15269 r"""Similarity(EDA_SHAPE self, EDA_SHAPE aOther) -> double"""
15270 return _pcbnew.EDA_SHAPE_Similarity(self, aOther)
15271
15272 def __eq__(self, aOther):
15273 r"""__eq__(EDA_SHAPE self, EDA_SHAPE aOther) -> bool"""
15274 return _pcbnew.EDA_SHAPE___eq__(self, aOther)
15275
15276# Register EDA_SHAPE in _pcbnew:
15277_pcbnew.EDA_SHAPE_swigregister(EDA_SHAPE)
15278
15280 r"""Proxy of C++ PCB_SHAPE class."""
15281
15282 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15283 __repr__ = _swig_repr
15284
15285 def __init__(self, *args):
15286 r"""
15287 __init__(PCB_SHAPE self, BOARD_ITEM aParent, KICAD_T aItemType, SHAPE_T aShapeType) -> PCB_SHAPE
15288 __init__(PCB_SHAPE self, BOARD_ITEM aParent=None, SHAPE_T aShapeType=SEGMENT) -> PCB_SHAPE
15289 """
15290 _pcbnew.PCB_SHAPE_swiginit(self, _pcbnew.new_PCB_SHAPE(*args))
15291 __swig_destroy__ = _pcbnew.delete_PCB_SHAPE
15292
15293 @staticmethod
15294 def ClassOf(aItem):
15295 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15296 return _pcbnew.PCB_SHAPE_ClassOf(aItem)
15297
15299 r"""GetFriendlyName(PCB_SHAPE self) -> wxString"""
15300 return _pcbnew.PCB_SHAPE_GetFriendlyName(self)
15301
15303 r"""GetConnectionPoints(PCB_SHAPE self) -> VECTOR_VECTOR2I"""
15304 return _pcbnew.PCB_SHAPE_GetConnectionPoints(self)
15305
15306 def GetCorners(self):
15307 r"""GetCorners(PCB_SHAPE self) -> VECTOR_VECTOR2I"""
15308 return _pcbnew.PCB_SHAPE_GetCorners(self)
15309
15310 def GetEffectiveShape(self, *args):
15311 r"""GetEffectiveShape(PCB_SHAPE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15312 return _pcbnew.PCB_SHAPE_GetEffectiveShape(self, *args)
15313
15314 def SetIsProxyItem(self, aIsProxy=True):
15315 r"""SetIsProxyItem(PCB_SHAPE self, bool aIsProxy=True)"""
15316 return _pcbnew.PCB_SHAPE_SetIsProxyItem(self, aIsProxy)
15317
15318 def HitTest(self, *args):
15319 r"""
15320 HitTest(PCB_SHAPE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
15321 HitTest(PCB_SHAPE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15322 """
15323 return _pcbnew.PCB_SHAPE_HitTest(self, *args)
15324
15325 def Mirror(self, aCentre, aMirrorAroundXAxis):
15326 r"""Mirror(PCB_SHAPE self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
15327 return _pcbnew.PCB_SHAPE_Mirror(self, aCentre, aMirrorAroundXAxis)
15328
15329 def Scale(self, aScale):
15330 r"""Scale(PCB_SHAPE self, double aScale)"""
15331 return _pcbnew.PCB_SHAPE_Scale(self, aScale)
15332
15333 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
15334 r"""TransformShapeToPolygon(PCB_SHAPE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
15335 return _pcbnew.PCB_SHAPE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
15336
15337 def ViewGetLOD(self, aLayer, aView):
15338 r"""ViewGetLOD(PCB_SHAPE self, int aLayer, KIGFX::VIEW * aView) -> double"""
15339 return _pcbnew.PCB_SHAPE_ViewGetLOD(self, aLayer, aView)
15340
15342 r"""GetArcAngleStart(PCB_SHAPE self) -> EDA_ANGLE"""
15343 return _pcbnew.PCB_SHAPE_GetArcAngleStart(self)
15344
15345 def GetShapeStr(self):
15346 return self.ShowShape()
15347
15348
15349# Register PCB_SHAPE in _pcbnew:
15350_pcbnew.PCB_SHAPE_swigregister(PCB_SHAPE)
15351
15353 r"""PCB_SHAPE_ClassOf(EDA_ITEM aItem) -> bool"""
15354 return _pcbnew.PCB_SHAPE_ClassOf(aItem)
15355
15357 r"""Proxy of C++ PCB_TEXT class."""
15358
15359 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15360 __repr__ = _swig_repr
15361
15362 def __init__(self, *args):
15363 r"""
15364 __init__(PCB_TEXT self, BOARD_ITEM parent, KICAD_T idtype=PCB_TEXT_T) -> PCB_TEXT
15365 __init__(PCB_TEXT self, FOOTPRINT aParent, KICAD_T idtype=PCB_TEXT_T) -> PCB_TEXT
15366 """
15367 _pcbnew.PCB_TEXT_swiginit(self, _pcbnew.new_PCB_TEXT(*args))
15368 __swig_destroy__ = _pcbnew.delete_PCB_TEXT
15369
15370 @staticmethod
15371 def ClassOf(aItem):
15372 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15373 return _pcbnew.PCB_TEXT_ClassOf(aItem)
15374
15375 def KeepUpright(self):
15376 r"""KeepUpright(PCB_TEXT self)"""
15377 return _pcbnew.PCB_TEXT_KeepUpright(self)
15378
15379 def GetShownText(self, aAllowExtraText, aDepth=0):
15380 r"""GetShownText(PCB_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
15381 return _pcbnew.PCB_TEXT_GetShownText(self, aAllowExtraText, aDepth)
15382
15383 def Mirror(self, aCentre, aMirrorAroundXAxis):
15384 r"""Mirror(PCB_TEXT self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
15385 return _pcbnew.PCB_TEXT_Mirror(self, aCentre, aMirrorAroundXAxis)
15386
15387 def TextHitTest(self, *args):
15388 r"""
15389 TextHitTest(PCB_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
15390 TextHitTest(PCB_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
15391 """
15392 return _pcbnew.PCB_TEXT_TextHitTest(self, *args)
15393
15394 def HitTest(self, *args):
15395 r"""
15396 HitTest(PCB_TEXT self, VECTOR2I aPosition, int aAccuracy) -> bool
15397 HitTest(PCB_TEXT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15398 """
15399 return _pcbnew.PCB_TEXT_HitTest(self, *args)
15400
15401 def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc):
15402 r"""TransformTextToPolySet(PCB_TEXT self, SHAPE_POLY_SET aBuffer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc)"""
15403 return _pcbnew.PCB_TEXT_TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
15404
15405 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
15406 r"""TransformShapeToPolygon(PCB_TEXT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
15407 return _pcbnew.PCB_TEXT_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
15408
15409 def GetEffectiveShape(self, *args):
15410 r"""GetEffectiveShape(PCB_TEXT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15411 return _pcbnew.PCB_TEXT_GetEffectiveShape(self, *args)
15412
15414 r"""GetTextTypeDescription(PCB_TEXT self) -> wxString"""
15415 return _pcbnew.PCB_TEXT_GetTextTypeDescription(self)
15416
15417 def ViewGetLOD(self, aLayer, aView):
15418 r"""ViewGetLOD(PCB_TEXT self, int aLayer, KIGFX::VIEW * aView) -> double"""
15419 return _pcbnew.PCB_TEXT_ViewGetLOD(self, aLayer, aView)
15420
15421# Register PCB_TEXT in _pcbnew:
15422_pcbnew.PCB_TEXT_swigregister(PCB_TEXT)
15423S_SEGMENT = cvar.S_SEGMENT
15424S_RECT = cvar.S_RECT
15425S_ARC = cvar.S_ARC
15426S_CIRCLE = cvar.S_CIRCLE
15427S_POLYGON = cvar.S_POLYGON
15428S_CURVE = cvar.S_CURVE
15429SHAPE_T_RECT = cvar.SHAPE_T_RECT
15430
15432 r"""PCB_TEXT_ClassOf(EDA_ITEM aItem) -> bool"""
15433 return _pcbnew.PCB_TEXT_ClassOf(aItem)
15434
15436 r"""Proxy of C++ PCB_TEXTBOX class."""
15437
15438 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15439 __repr__ = _swig_repr
15440
15441 def __init__(self, parent):
15442 r"""__init__(PCB_TEXTBOX self, BOARD_ITEM parent) -> PCB_TEXTBOX"""
15443 _pcbnew.PCB_TEXTBOX_swiginit(self, _pcbnew.new_PCB_TEXTBOX(parent))
15444 __swig_destroy__ = _pcbnew.delete_PCB_TEXTBOX
15445
15446 @staticmethod
15447 def ClassOf(aItem):
15448 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15449 return _pcbnew.PCB_TEXTBOX_ClassOf(aItem)
15450
15452 r"""GetFriendlyName(PCB_TEXTBOX self) -> wxString"""
15453 return _pcbnew.PCB_TEXTBOX_GetFriendlyName(self)
15454
15455 def GetTextMargin(self):
15456 r"""GetTextMargin(PCB_TEXTBOX self) -> int"""
15457 return _pcbnew.PCB_TEXTBOX_GetTextMargin(self)
15458
15459 def GetDrawPos(self, *args):
15460 r"""
15461 GetDrawPos(PCB_TEXTBOX self) -> VECTOR2I
15462 GetDrawPos(PCB_TEXTBOX self, bool aIsFlipped) -> VECTOR2I
15463 """
15464 return _pcbnew.PCB_TEXTBOX_GetDrawPos(self, *args)
15465
15466 def GetShownText(self, aAllowExtraText, aDepth=0):
15467 r"""GetShownText(PCB_TEXTBOX self, bool aAllowExtraText, int aDepth=0) -> wxString"""
15468 return _pcbnew.PCB_TEXTBOX_GetShownText(self, aAllowExtraText, aDepth)
15469
15471 r"""GetAnchorAndOppositeCorner(PCB_TEXTBOX self) -> VECTOR_VECTOR2I"""
15472 return _pcbnew.PCB_TEXTBOX_GetAnchorAndOppositeCorner(self)
15473
15474 def HitTest(self, *args):
15475 r"""
15476 HitTest(PCB_TEXTBOX self, VECTOR2I aPosition, int aAccuracy) -> bool
15477 HitTest(PCB_TEXTBOX self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15478 """
15479 return _pcbnew.PCB_TEXTBOX_HitTest(self, *args)
15480
15481 def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc):
15482 r"""TransformTextToPolySet(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc)"""
15483 return _pcbnew.PCB_TEXTBOX_TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
15484
15485 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
15486 r"""TransformShapeToPolygon(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
15487 return _pcbnew.PCB_TEXTBOX_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
15488
15489 def GetEffectiveShape(self, *args):
15490 r"""GetEffectiveShape(PCB_TEXTBOX self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15491 return _pcbnew.PCB_TEXTBOX_GetEffectiveShape(self, *args)
15492
15493 def ViewGetLOD(self, aLayer, aView):
15494 r"""ViewGetLOD(PCB_TEXTBOX self, int aLayer, KIGFX::VIEW * aView) -> double"""
15495 return _pcbnew.PCB_TEXTBOX_ViewGetLOD(self, aLayer, aView)
15496
15498 r"""IsBorderEnabled(PCB_TEXTBOX self) -> bool"""
15499 return _pcbnew.PCB_TEXTBOX_IsBorderEnabled(self)
15500
15501 def SetBorderEnabled(self, enabled):
15502 r"""SetBorderEnabled(PCB_TEXTBOX self, bool enabled)"""
15503 return _pcbnew.PCB_TEXTBOX_SetBorderEnabled(self, enabled)
15504
15505 def SetBorderWidth(self, aSize):
15506 r"""SetBorderWidth(PCB_TEXTBOX self, int const aSize)"""
15507 return _pcbnew.PCB_TEXTBOX_SetBorderWidth(self, aSize)
15508
15510 r"""GetBorderWidth(PCB_TEXTBOX self) -> int"""
15511 return _pcbnew.PCB_TEXTBOX_GetBorderWidth(self)
15512
15513# Register PCB_TEXTBOX in _pcbnew:
15514_pcbnew.PCB_TEXTBOX_swigregister(PCB_TEXTBOX)
15515
15517 r"""PCB_TEXTBOX_ClassOf(EDA_ITEM aItem) -> bool"""
15518 return _pcbnew.PCB_TEXTBOX_ClassOf(aItem)
15519
15520GR_TEXT_H_ALIGN_LEFT = _pcbnew.GR_TEXT_H_ALIGN_LEFT
15521
15522GR_TEXT_H_ALIGN_CENTER = _pcbnew.GR_TEXT_H_ALIGN_CENTER
15523
15524GR_TEXT_H_ALIGN_RIGHT = _pcbnew.GR_TEXT_H_ALIGN_RIGHT
15525
15526GR_TEXT_V_ALIGN_TOP = _pcbnew.GR_TEXT_V_ALIGN_TOP
15527
15528GR_TEXT_V_ALIGN_CENTER = _pcbnew.GR_TEXT_V_ALIGN_CENTER
15529
15530GR_TEXT_V_ALIGN_BOTTOM = _pcbnew.GR_TEXT_V_ALIGN_BOTTOM
15531
15533 r"""Proxy of C++ TEXT_ATTRIBUTES class."""
15534
15535 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15536 __repr__ = _swig_repr
15537
15538 def __init__(self, aFont=None):
15539 r"""__init__(TEXT_ATTRIBUTES self, KIFONT::FONT * aFont=None) -> TEXT_ATTRIBUTES"""
15540 _pcbnew.TEXT_ATTRIBUTES_swiginit(self, _pcbnew.new_TEXT_ATTRIBUTES(aFont))
15541
15542 def Compare(self, aRhs):
15543 r"""Compare(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> int"""
15544 return _pcbnew.TEXT_ATTRIBUTES_Compare(self, aRhs)
15545
15546 def __eq__(self, aRhs):
15547 r"""__eq__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
15548 return _pcbnew.TEXT_ATTRIBUTES___eq__(self, aRhs)
15549
15550 def __gt__(self, aRhs):
15551 r"""__gt__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
15552 return _pcbnew.TEXT_ATTRIBUTES___gt__(self, aRhs)
15553
15554 def __lt__(self, aRhs):
15555 r"""__lt__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
15556 return _pcbnew.TEXT_ATTRIBUTES___lt__(self, aRhs)
15557 m_Font = property(_pcbnew.TEXT_ATTRIBUTES_m_Font_get, _pcbnew.TEXT_ATTRIBUTES_m_Font_set, doc=r"""m_Font : p.KIFONT::FONT""")
15558 m_Halign = property(_pcbnew.TEXT_ATTRIBUTES_m_Halign_get, _pcbnew.TEXT_ATTRIBUTES_m_Halign_set, doc=r"""m_Halign : GR_TEXT_H_ALIGN_T""")
15559 m_Valign = property(_pcbnew.TEXT_ATTRIBUTES_m_Valign_get, _pcbnew.TEXT_ATTRIBUTES_m_Valign_set, doc=r"""m_Valign : GR_TEXT_V_ALIGN_T""")
15560 m_Angle = property(_pcbnew.TEXT_ATTRIBUTES_m_Angle_get, _pcbnew.TEXT_ATTRIBUTES_m_Angle_set, doc=r"""m_Angle : EDA_ANGLE""")
15561 m_LineSpacing = property(_pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_get, _pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_set, doc=r"""m_LineSpacing : double""")
15562 m_StrokeWidth = property(_pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_get, _pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_set, doc=r"""m_StrokeWidth : int""")
15563 m_Italic = property(_pcbnew.TEXT_ATTRIBUTES_m_Italic_get, _pcbnew.TEXT_ATTRIBUTES_m_Italic_set, doc=r"""m_Italic : bool""")
15564 m_Bold = property(_pcbnew.TEXT_ATTRIBUTES_m_Bold_get, _pcbnew.TEXT_ATTRIBUTES_m_Bold_set, doc=r"""m_Bold : bool""")
15565 m_Underlined = property(_pcbnew.TEXT_ATTRIBUTES_m_Underlined_get, _pcbnew.TEXT_ATTRIBUTES_m_Underlined_set, doc=r"""m_Underlined : bool""")
15566 m_Color = property(_pcbnew.TEXT_ATTRIBUTES_m_Color_get, _pcbnew.TEXT_ATTRIBUTES_m_Color_set, doc=r"""m_Color : KIGFX::COLOR4D""")
15567 m_Visible = property(_pcbnew.TEXT_ATTRIBUTES_m_Visible_get, _pcbnew.TEXT_ATTRIBUTES_m_Visible_set, doc=r"""m_Visible : bool""")
15568 m_Mirrored = property(_pcbnew.TEXT_ATTRIBUTES_m_Mirrored_get, _pcbnew.TEXT_ATTRIBUTES_m_Mirrored_set, doc=r"""m_Mirrored : bool""")
15569 m_Multiline = property(_pcbnew.TEXT_ATTRIBUTES_m_Multiline_get, _pcbnew.TEXT_ATTRIBUTES_m_Multiline_set, doc=r"""m_Multiline : bool""")
15570 m_Size = property(_pcbnew.TEXT_ATTRIBUTES_m_Size_get, _pcbnew.TEXT_ATTRIBUTES_m_Size_set, doc=r"""m_Size : VECTOR2I""")
15571 m_KeepUpright = property(_pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_get, _pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_set, doc=r"""m_KeepUpright : bool""")
15572 m_StoredStrokeWidth = property(_pcbnew.TEXT_ATTRIBUTES_m_StoredStrokeWidth_get, _pcbnew.TEXT_ATTRIBUTES_m_StoredStrokeWidth_set, doc=r"""m_StoredStrokeWidth : int""")
15573 __swig_destroy__ = _pcbnew.delete_TEXT_ATTRIBUTES
15574
15575# Register TEXT_ATTRIBUTES in _pcbnew:
15576_pcbnew.TEXT_ATTRIBUTES_swigregister(TEXT_ATTRIBUTES)
15577
15579 r"""Proxy of C++ PCB_FIELD class."""
15580
15581 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15582 __repr__ = _swig_repr
15583
15584 def __init__(self, *args):
15585 r"""
15586 __init__(PCB_FIELD self, FOOTPRINT aParent, int aFieldId, wxString aName=wxEmptyString) -> PCB_FIELD
15587 __init__(PCB_FIELD self, PCB_TEXT aText, int aFieldId, wxString aName=wxEmptyString) -> PCB_FIELD
15588 """
15589 _pcbnew.PCB_FIELD_swiginit(self, _pcbnew.new_PCB_FIELD(*args))
15590
15591 @staticmethod
15592 def ClassOf(aItem):
15593 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15594 return _pcbnew.PCB_FIELD_ClassOf(aItem)
15595
15596 def IsReference(self):
15597 r"""IsReference(PCB_FIELD self) -> bool"""
15598 return _pcbnew.PCB_FIELD_IsReference(self)
15599
15600 def IsValue(self):
15601 r"""IsValue(PCB_FIELD self) -> bool"""
15602 return _pcbnew.PCB_FIELD_IsValue(self)
15603
15604 def IsFootprint(self):
15605 r"""IsFootprint(PCB_FIELD self) -> bool"""
15606 return _pcbnew.PCB_FIELD_IsFootprint(self)
15607
15608 def IsDatasheet(self):
15609 r"""IsDatasheet(PCB_FIELD self) -> bool"""
15610 return _pcbnew.PCB_FIELD_IsDatasheet(self)
15611
15613 r"""IsMandatoryField(PCB_FIELD self) -> bool"""
15614 return _pcbnew.PCB_FIELD_IsMandatoryField(self)
15615
15616 def ViewGetLOD(self, aLayer, aView):
15617 r"""ViewGetLOD(PCB_FIELD self, int aLayer, KIGFX::VIEW * aView) -> double"""
15618 return _pcbnew.PCB_FIELD_ViewGetLOD(self, aLayer, aView)
15619
15620 def CloneField(self):
15621 r"""CloneField(PCB_FIELD self) -> PCB_FIELD"""
15622 return _pcbnew.PCB_FIELD_CloneField(self)
15623
15624 def GetName(self, aUseDefaultName=True):
15625 r"""GetName(PCB_FIELD self, bool aUseDefaultName=True) -> wxString"""
15626 return _pcbnew.PCB_FIELD_GetName(self, aUseDefaultName)
15627
15629 r"""GetCanonicalName(PCB_FIELD self) -> wxString"""
15630 return _pcbnew.PCB_FIELD_GetCanonicalName(self)
15631
15632 def SetName(self, aName):
15633 r"""SetName(PCB_FIELD self, wxString aName)"""
15634 return _pcbnew.PCB_FIELD_SetName(self, aName)
15635
15636 def GetId(self):
15637 r"""GetId(PCB_FIELD self) -> int"""
15638 return _pcbnew.PCB_FIELD_GetId(self)
15639
15640 def SetId(self, aId):
15641 r"""SetId(PCB_FIELD self, int aId)"""
15642 return _pcbnew.PCB_FIELD_SetId(self, aId)
15643 __swig_destroy__ = _pcbnew.delete_PCB_FIELD
15644
15645# Register PCB_FIELD in _pcbnew:
15646_pcbnew.PCB_FIELD_swigregister(PCB_FIELD)
15647
15649 r"""PCB_FIELD_ClassOf(EDA_ITEM aItem) -> bool"""
15650 return _pcbnew.PCB_FIELD_ClassOf(aItem)
15651
15652DIM_UNITS_FORMAT_NO_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_NO_SUFFIX
15653
15654DIM_UNITS_FORMAT_BARE_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_BARE_SUFFIX
15655
15656DIM_UNITS_FORMAT_PAREN_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_PAREN_SUFFIX
15657
15658DIM_PRECISION_X = _pcbnew.DIM_PRECISION_X
15659
15660DIM_PRECISION_X_X = _pcbnew.DIM_PRECISION_X_X
15661
15662DIM_PRECISION_X_XX = _pcbnew.DIM_PRECISION_X_XX
15663
15664DIM_PRECISION_X_XXX = _pcbnew.DIM_PRECISION_X_XXX
15665
15666DIM_PRECISION_X_XXXX = _pcbnew.DIM_PRECISION_X_XXXX
15667
15668DIM_PRECISION_X_XXXXX = _pcbnew.DIM_PRECISION_X_XXXXX
15669
15670DIM_PRECISION_V_VV = _pcbnew.DIM_PRECISION_V_VV
15671
15672DIM_PRECISION_V_VVV = _pcbnew.DIM_PRECISION_V_VVV
15673
15674DIM_PRECISION_V_VVVV = _pcbnew.DIM_PRECISION_V_VVVV
15675
15676DIM_PRECISION_V_VVVVV = _pcbnew.DIM_PRECISION_V_VVVVV
15677
15678DIM_TEXT_POSITION_OUTSIDE = _pcbnew.DIM_TEXT_POSITION_OUTSIDE
15679
15680DIM_TEXT_POSITION_INLINE = _pcbnew.DIM_TEXT_POSITION_INLINE
15681
15682DIM_TEXT_POSITION_MANUAL = _pcbnew.DIM_TEXT_POSITION_MANUAL
15683
15684DIM_UNITS_MODE_INCHES = _pcbnew.DIM_UNITS_MODE_INCHES
15685
15686DIM_UNITS_MODE_MILS = _pcbnew.DIM_UNITS_MODE_MILS
15687
15688DIM_UNITS_MODE_MILLIMETRES = _pcbnew.DIM_UNITS_MODE_MILLIMETRES
15689
15690DIM_UNITS_MODE_AUTOMATIC = _pcbnew.DIM_UNITS_MODE_AUTOMATIC
15691
15692DIM_TEXT_BORDER_NONE = _pcbnew.DIM_TEXT_BORDER_NONE
15693
15694DIM_TEXT_BORDER_RECTANGLE = _pcbnew.DIM_TEXT_BORDER_RECTANGLE
15695
15696DIM_TEXT_BORDER_CIRCLE = _pcbnew.DIM_TEXT_BORDER_CIRCLE
15697
15698DIM_TEXT_BORDER_ROUNDRECT = _pcbnew.DIM_TEXT_BORDER_ROUNDRECT
15699
15701 r"""Proxy of C++ PCB_DIMENSION_BASE class."""
15702
15703 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15704
15705 def __init__(self, *args, **kwargs):
15706 raise AttributeError("No constructor defined - class is abstract")
15707 __repr__ = _swig_repr
15708
15709 def GetStart(self):
15710 r"""GetStart(PCB_DIMENSION_BASE self) -> VECTOR2I"""
15711 return _pcbnew.PCB_DIMENSION_BASE_GetStart(self)
15712
15713 def SetStart(self, aPoint):
15714 r"""SetStart(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
15715 return _pcbnew.PCB_DIMENSION_BASE_SetStart(self, aPoint)
15716
15717 def GetEnd(self):
15718 r"""GetEnd(PCB_DIMENSION_BASE self) -> VECTOR2I"""
15719 return _pcbnew.PCB_DIMENSION_BASE_GetEnd(self)
15720
15721 def SetEnd(self, aPoint):
15722 r"""SetEnd(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
15723 return _pcbnew.PCB_DIMENSION_BASE_SetEnd(self, aPoint)
15724
15726 r"""GetOverrideTextEnabled(PCB_DIMENSION_BASE self) -> bool"""
15727 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideTextEnabled(self)
15728
15729 def SetOverrideTextEnabled(self, aOverride):
15730 r"""SetOverrideTextEnabled(PCB_DIMENSION_BASE self, bool aOverride)"""
15731 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideTextEnabled(self, aOverride)
15732
15734 r"""GetOverrideText(PCB_DIMENSION_BASE self) -> wxString"""
15735 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideText(self)
15736
15737 def SetOverrideText(self, aValue):
15738 r"""SetOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
15739 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideText(self, aValue)
15740
15741 def ChangeOverrideText(self, aValue):
15742 r"""ChangeOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
15743 return _pcbnew.PCB_DIMENSION_BASE_ChangeOverrideText(self, aValue)
15744
15746 r"""GetMeasuredValue(PCB_DIMENSION_BASE self) -> int"""
15747 return _pcbnew.PCB_DIMENSION_BASE_GetMeasuredValue(self)
15748
15749 def SetMeasuredValue(self, aValue):
15750 r"""SetMeasuredValue(PCB_DIMENSION_BASE self, int aValue)"""
15751 return _pcbnew.PCB_DIMENSION_BASE_SetMeasuredValue(self, aValue)
15752
15753 def GetValueText(self):
15754 r"""GetValueText(PCB_DIMENSION_BASE self) -> wxString"""
15755 return _pcbnew.PCB_DIMENSION_BASE_GetValueText(self)
15756
15757 def Update(self):
15758 r"""Update(PCB_DIMENSION_BASE self)"""
15759 return _pcbnew.PCB_DIMENSION_BASE_Update(self)
15760
15761 def UpdateUnits(self):
15762 r"""UpdateUnits(PCB_DIMENSION_BASE self)"""
15763 return _pcbnew.PCB_DIMENSION_BASE_UpdateUnits(self)
15764
15765 def GetPrefix(self):
15766 r"""GetPrefix(PCB_DIMENSION_BASE self) -> wxString"""
15767 return _pcbnew.PCB_DIMENSION_BASE_GetPrefix(self)
15768
15769 def SetPrefix(self, aPrefix):
15770 r"""SetPrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
15771 return _pcbnew.PCB_DIMENSION_BASE_SetPrefix(self, aPrefix)
15772
15773 def ChangePrefix(self, aPrefix):
15774 r"""ChangePrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
15775 return _pcbnew.PCB_DIMENSION_BASE_ChangePrefix(self, aPrefix)
15776
15777 def GetSuffix(self):
15778 r"""GetSuffix(PCB_DIMENSION_BASE self) -> wxString"""
15779 return _pcbnew.PCB_DIMENSION_BASE_GetSuffix(self)
15780
15781 def SetSuffix(self, aSuffix):
15782 r"""SetSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
15783 return _pcbnew.PCB_DIMENSION_BASE_SetSuffix(self, aSuffix)
15784
15785 def ChangeSuffix(self, aSuffix):
15786 r"""ChangeSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
15787 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuffix(self, aSuffix)
15788
15789 def GetUnits(self):
15790 r"""GetUnits(PCB_DIMENSION_BASE self) -> EDA_UNITS"""
15791 return _pcbnew.PCB_DIMENSION_BASE_GetUnits(self)
15792
15793 def SetUnits(self, aUnits):
15794 r"""SetUnits(PCB_DIMENSION_BASE self, EDA_UNITS aUnits)"""
15795 return _pcbnew.PCB_DIMENSION_BASE_SetUnits(self, aUnits)
15796
15797 def GetUnitsMode(self):
15798 r"""GetUnitsMode(PCB_DIMENSION_BASE self) -> DIM_UNITS_MODE"""
15799 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsMode(self)
15800
15801 def SetUnitsMode(self, aMode):
15802 r"""SetUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
15803 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsMode(self, aMode)
15804
15805 def ChangeUnitsMode(self, aMode):
15806 r"""ChangeUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
15807 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsMode(self, aMode)
15808
15809 def SetAutoUnits(self, aAuto=True):
15810 r"""SetAutoUnits(PCB_DIMENSION_BASE self, bool aAuto=True)"""
15811 return _pcbnew.PCB_DIMENSION_BASE_SetAutoUnits(self, aAuto)
15812
15814 r"""GetUnitsFormat(PCB_DIMENSION_BASE self) -> DIM_UNITS_FORMAT"""
15815 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsFormat(self)
15816
15817 def SetUnitsFormat(self, aFormat):
15818 r"""SetUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
15819 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsFormat(self, aFormat)
15820
15821 def ChangeUnitsFormat(self, aFormat):
15822 r"""ChangeUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
15823 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsFormat(self, aFormat)
15824
15825 def GetPrecision(self):
15826 r"""GetPrecision(PCB_DIMENSION_BASE self) -> DIM_PRECISION"""
15827 return _pcbnew.PCB_DIMENSION_BASE_GetPrecision(self)
15828
15829 def SetPrecision(self, aPrecision):
15830 r"""SetPrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
15831 return _pcbnew.PCB_DIMENSION_BASE_SetPrecision(self, aPrecision)
15832
15833 def ChangePrecision(self, aPrecision):
15834 r"""ChangePrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
15835 return _pcbnew.PCB_DIMENSION_BASE_ChangePrecision(self, aPrecision)
15836
15838 r"""GetSuppressZeroes(PCB_DIMENSION_BASE self) -> bool"""
15839 return _pcbnew.PCB_DIMENSION_BASE_GetSuppressZeroes(self)
15840
15841 def SetSuppressZeroes(self, aSuppress):
15842 r"""SetSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
15843 return _pcbnew.PCB_DIMENSION_BASE_SetSuppressZeroes(self, aSuppress)
15844
15845 def ChangeSuppressZeroes(self, aSuppress):
15846 r"""ChangeSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
15847 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuppressZeroes(self, aSuppress)
15848
15850 r"""GetKeepTextAligned(PCB_DIMENSION_BASE self) -> bool"""
15851 return _pcbnew.PCB_DIMENSION_BASE_GetKeepTextAligned(self)
15852
15853 def SetKeepTextAligned(self, aKeepAligned):
15854 r"""SetKeepTextAligned(PCB_DIMENSION_BASE self, bool aKeepAligned)"""
15855 return _pcbnew.PCB_DIMENSION_BASE_SetKeepTextAligned(self, aKeepAligned)
15856
15857 def SetTextPositionMode(self, aMode):
15858 r"""SetTextPositionMode(PCB_DIMENSION_BASE self, DIM_TEXT_POSITION aMode)"""
15859 return _pcbnew.PCB_DIMENSION_BASE_SetTextPositionMode(self, aMode)
15860
15862 r"""GetTextPositionMode(PCB_DIMENSION_BASE self) -> DIM_TEXT_POSITION"""
15863 return _pcbnew.PCB_DIMENSION_BASE_GetTextPositionMode(self)
15864
15866 r"""GetArrowLength(PCB_DIMENSION_BASE self) -> int"""
15867 return _pcbnew.PCB_DIMENSION_BASE_GetArrowLength(self)
15868
15869 def SetArrowLength(self, aLength):
15870 r"""SetArrowLength(PCB_DIMENSION_BASE self, int aLength)"""
15871 return _pcbnew.PCB_DIMENSION_BASE_SetArrowLength(self, aLength)
15872
15873 def SetExtensionOffset(self, aOffset):
15874 r"""SetExtensionOffset(PCB_DIMENSION_BASE self, int aOffset)"""
15875 return _pcbnew.PCB_DIMENSION_BASE_SetExtensionOffset(self, aOffset)
15876
15878 r"""GetExtensionOffset(PCB_DIMENSION_BASE self) -> int"""
15879 return _pcbnew.PCB_DIMENSION_BASE_GetExtensionOffset(self)
15880
15882 r"""GetLineThickness(PCB_DIMENSION_BASE self) -> int"""
15883 return _pcbnew.PCB_DIMENSION_BASE_GetLineThickness(self)
15884
15885 def SetLineThickness(self, aWidth):
15886 r"""SetLineThickness(PCB_DIMENSION_BASE self, int aWidth)"""
15887 return _pcbnew.PCB_DIMENSION_BASE_SetLineThickness(self, aWidth)
15888
15889 def GetShapes(self):
15890 r"""GetShapes(PCB_DIMENSION_BASE self) -> VECTOR_SHAPEPTR"""
15891 return _pcbnew.PCB_DIMENSION_BASE_GetShapes(self)
15892
15893 def Mirror(self, axis_pos, aMirrorLeftRight=False):
15894 r"""Mirror(PCB_DIMENSION_BASE self, VECTOR2I axis_pos, bool aMirrorLeftRight=False)"""
15895 return _pcbnew.PCB_DIMENSION_BASE_Mirror(self, axis_pos, aMirrorLeftRight)
15896
15897 def HitTest(self, *args):
15898 r"""
15899 HitTest(PCB_DIMENSION_BASE self, VECTOR2I aPosition, int aAccuracy) -> bool
15900 HitTest(PCB_DIMENSION_BASE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15901 """
15902 return _pcbnew.PCB_DIMENSION_BASE_HitTest(self, *args)
15903
15904 def GetEffectiveShape(self, *args):
15905 r"""GetEffectiveShape(PCB_DIMENSION_BASE self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15906 return _pcbnew.PCB_DIMENSION_BASE_GetEffectiveShape(self, *args)
15907
15908 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False):
15909 r"""TransformShapeToPolygon(PCB_DIMENSION_BASE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
15910 return _pcbnew.PCB_DIMENSION_BASE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth)
15911 __swig_destroy__ = _pcbnew.delete_PCB_DIMENSION_BASE
15912
15913# Register PCB_DIMENSION_BASE in _pcbnew:
15914_pcbnew.PCB_DIMENSION_BASE_swigregister(PCB_DIMENSION_BASE)
15915
15917 r"""Proxy of C++ PCB_DIM_ALIGNED class."""
15918
15919 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15920 __repr__ = _swig_repr
15921
15922 def __init__(self, aParent, aType=PCB_DIM_ALIGNED_T):
15923 r"""__init__(PCB_DIM_ALIGNED self, BOARD_ITEM aParent, KICAD_T aType=PCB_DIM_ALIGNED_T) -> PCB_DIM_ALIGNED"""
15924 _pcbnew.PCB_DIM_ALIGNED_swiginit(self, _pcbnew.new_PCB_DIM_ALIGNED(aParent, aType))
15925 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ALIGNED
15926
15927 @staticmethod
15928 def ClassOf(aItem):
15929 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15930 return _pcbnew.PCB_DIM_ALIGNED_ClassOf(aItem)
15931
15932 def Mirror(self, axis_pos, aMirrorLeftRight=False):
15933 r"""Mirror(PCB_DIM_ALIGNED self, VECTOR2I axis_pos, bool aMirrorLeftRight=False)"""
15934 return _pcbnew.PCB_DIM_ALIGNED_Mirror(self, axis_pos, aMirrorLeftRight)
15935
15937 r"""GetCrossbarStart(PCB_DIM_ALIGNED self) -> VECTOR2I"""
15938 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarStart(self)
15939
15941 r"""GetCrossbarEnd(PCB_DIM_ALIGNED self) -> VECTOR2I"""
15942 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarEnd(self)
15943
15944 def SetHeight(self, aHeight):
15945 r"""SetHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15946 return _pcbnew.PCB_DIM_ALIGNED_SetHeight(self, aHeight)
15947
15948 def GetHeight(self):
15949 r"""GetHeight(PCB_DIM_ALIGNED self) -> int"""
15950 return _pcbnew.PCB_DIM_ALIGNED_GetHeight(self)
15951
15952 def ChangeHeight(self, aHeight):
15953 r"""ChangeHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15954 return _pcbnew.PCB_DIM_ALIGNED_ChangeHeight(self, aHeight)
15955
15956 def UpdateHeight(self, aCrossbarStart, aCrossbarEnd):
15957 r"""UpdateHeight(PCB_DIM_ALIGNED self, VECTOR2I aCrossbarStart, VECTOR2I aCrossbarEnd)"""
15958 return _pcbnew.PCB_DIM_ALIGNED_UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
15959
15960 def SetExtensionHeight(self, aHeight):
15961 r"""SetExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15962 return _pcbnew.PCB_DIM_ALIGNED_SetExtensionHeight(self, aHeight)
15963
15965 r"""GetExtensionHeight(PCB_DIM_ALIGNED self) -> int"""
15966 return _pcbnew.PCB_DIM_ALIGNED_GetExtensionHeight(self)
15967
15968 def ChangeExtensionHeight(self, aHeight):
15969 r"""ChangeExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15970 return _pcbnew.PCB_DIM_ALIGNED_ChangeExtensionHeight(self, aHeight)
15971
15972 def GetAngle(self):
15973 r"""GetAngle(PCB_DIM_ALIGNED self) -> double"""
15974 return _pcbnew.PCB_DIM_ALIGNED_GetAngle(self)
15975
15976# Register PCB_DIM_ALIGNED in _pcbnew:
15977_pcbnew.PCB_DIM_ALIGNED_swigregister(PCB_DIM_ALIGNED)
15978
15980 r"""PCB_DIM_ALIGNED_ClassOf(EDA_ITEM aItem) -> bool"""
15981 return _pcbnew.PCB_DIM_ALIGNED_ClassOf(aItem)
15982
15984 r"""Proxy of C++ PCB_DIM_ORTHOGONAL class."""
15985
15986 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15987 __repr__ = _swig_repr
15988 DIR_HORIZONTAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_HORIZONTAL
15989
15990 DIR_VERTICAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_VERTICAL
15991
15992
15993 def __init__(self, aParent):
15994 r"""__init__(PCB_DIM_ORTHOGONAL self, BOARD_ITEM aParent) -> PCB_DIM_ORTHOGONAL"""
15995 _pcbnew.PCB_DIM_ORTHOGONAL_swiginit(self, _pcbnew.new_PCB_DIM_ORTHOGONAL(aParent))
15996 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ORTHOGONAL
15997
15998 @staticmethod
15999 def ClassOf(aItem):
16000 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16001 return _pcbnew.PCB_DIM_ORTHOGONAL_ClassOf(aItem)
16002
16003 def Mirror(self, axis_pos, aMirrorLeftRight=False):
16004 r"""Mirror(PCB_DIM_ORTHOGONAL self, VECTOR2I axis_pos, bool aMirrorLeftRight=False)"""
16005 return _pcbnew.PCB_DIM_ORTHOGONAL_Mirror(self, axis_pos, aMirrorLeftRight)
16006
16007 def SetOrientation(self, aOrientation):
16008 r"""SetOrientation(PCB_DIM_ORTHOGONAL self, PCB_DIM_ORTHOGONAL::DIR aOrientation)"""
16009 return _pcbnew.PCB_DIM_ORTHOGONAL_SetOrientation(self, aOrientation)
16010
16012 r"""GetOrientation(PCB_DIM_ORTHOGONAL self) -> PCB_DIM_ORTHOGONAL::DIR"""
16013 return _pcbnew.PCB_DIM_ORTHOGONAL_GetOrientation(self)
16014
16015# Register PCB_DIM_ORTHOGONAL in _pcbnew:
16016_pcbnew.PCB_DIM_ORTHOGONAL_swigregister(PCB_DIM_ORTHOGONAL)
16017
16019 r"""PCB_DIM_ORTHOGONAL_ClassOf(EDA_ITEM aItem) -> bool"""
16020 return _pcbnew.PCB_DIM_ORTHOGONAL_ClassOf(aItem)
16021
16023 r"""Proxy of C++ PCB_DIM_RADIAL class."""
16024
16025 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16026 __repr__ = _swig_repr
16027
16028 def __init__(self, aParent):
16029 r"""__init__(PCB_DIM_RADIAL self, BOARD_ITEM aParent) -> PCB_DIM_RADIAL"""
16030 _pcbnew.PCB_DIM_RADIAL_swiginit(self, _pcbnew.new_PCB_DIM_RADIAL(aParent))
16031
16032 @staticmethod
16033 def ClassOf(aItem):
16034 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16035 return _pcbnew.PCB_DIM_RADIAL_ClassOf(aItem)
16036
16037 def SetLeaderLength(self, aLength):
16038 r"""SetLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
16039 return _pcbnew.PCB_DIM_RADIAL_SetLeaderLength(self, aLength)
16040
16042 r"""GetLeaderLength(PCB_DIM_RADIAL self) -> int"""
16043 return _pcbnew.PCB_DIM_RADIAL_GetLeaderLength(self)
16044
16045 def ChangeLeaderLength(self, aLength):
16046 r"""ChangeLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
16047 return _pcbnew.PCB_DIM_RADIAL_ChangeLeaderLength(self, aLength)
16048
16049 def GetKnee(self):
16050 r"""GetKnee(PCB_DIM_RADIAL self) -> VECTOR2I"""
16051 return _pcbnew.PCB_DIM_RADIAL_GetKnee(self)
16052 __swig_destroy__ = _pcbnew.delete_PCB_DIM_RADIAL
16053
16054# Register PCB_DIM_RADIAL in _pcbnew:
16055_pcbnew.PCB_DIM_RADIAL_swigregister(PCB_DIM_RADIAL)
16056
16058 r"""PCB_DIM_RADIAL_ClassOf(EDA_ITEM aItem) -> bool"""
16059 return _pcbnew.PCB_DIM_RADIAL_ClassOf(aItem)
16060
16062 r"""Proxy of C++ PCB_DIM_LEADER class."""
16063
16064 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16065 __repr__ = _swig_repr
16066
16067 def __init__(self, aParent):
16068 r"""__init__(PCB_DIM_LEADER self, BOARD_ITEM aParent) -> PCB_DIM_LEADER"""
16069 _pcbnew.PCB_DIM_LEADER_swiginit(self, _pcbnew.new_PCB_DIM_LEADER(aParent))
16070
16071 @staticmethod
16072 def ClassOf(aItem):
16073 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16074 return _pcbnew.PCB_DIM_LEADER_ClassOf(aItem)
16075
16076 def SetTextBorder(self, aBorder):
16077 r"""SetTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
16078 return _pcbnew.PCB_DIM_LEADER_SetTextBorder(self, aBorder)
16079
16080 def GetTextBorder(self):
16081 r"""GetTextBorder(PCB_DIM_LEADER self) -> DIM_TEXT_BORDER"""
16082 return _pcbnew.PCB_DIM_LEADER_GetTextBorder(self)
16083
16084 def ChangeTextBorder(self, aBorder):
16085 r"""ChangeTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
16086 return _pcbnew.PCB_DIM_LEADER_ChangeTextBorder(self, aBorder)
16087 __swig_destroy__ = _pcbnew.delete_PCB_DIM_LEADER
16088
16089# Register PCB_DIM_LEADER in _pcbnew:
16090_pcbnew.PCB_DIM_LEADER_swigregister(PCB_DIM_LEADER)
16091
16093 r"""PCB_DIM_LEADER_ClassOf(EDA_ITEM aItem) -> bool"""
16094 return _pcbnew.PCB_DIM_LEADER_ClassOf(aItem)
16095
16097 r"""Proxy of C++ PCB_DIM_CENTER class."""
16098
16099 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16100 __repr__ = _swig_repr
16101
16102 def __init__(self, aParent):
16103 r"""__init__(PCB_DIM_CENTER self, BOARD_ITEM aParent) -> PCB_DIM_CENTER"""
16104 _pcbnew.PCB_DIM_CENTER_swiginit(self, _pcbnew.new_PCB_DIM_CENTER(aParent))
16105
16106 @staticmethod
16107 def ClassOf(aItem):
16108 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16109 return _pcbnew.PCB_DIM_CENTER_ClassOf(aItem)
16110 __swig_destroy__ = _pcbnew.delete_PCB_DIM_CENTER
16111
16112# Register PCB_DIM_CENTER in _pcbnew:
16113_pcbnew.PCB_DIM_CENTER_swigregister(PCB_DIM_CENTER)
16114
16116 r"""PCB_DIM_CENTER_ClassOf(EDA_ITEM aItem) -> bool"""
16117 return _pcbnew.PCB_DIM_CENTER_ClassOf(aItem)
16118
16119MARKER_SHAPE_POINT_COUNT = _pcbnew.MARKER_SHAPE_POINT_COUNT
16120
16122 r"""Proxy of C++ PCB_MARKER class."""
16123
16124 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16125 __repr__ = _swig_repr
16126
16127 def __init__(self, aItem, aPos, aLayer=F_Cu):
16128 r"""__init__(PCB_MARKER self, std::shared_ptr< RC_ITEM > aItem, VECTOR2I aPos, int aLayer=F_Cu) -> PCB_MARKER"""
16129 _pcbnew.PCB_MARKER_swiginit(self, _pcbnew.new_PCB_MARKER(aItem, aPos, aLayer))
16130 __swig_destroy__ = _pcbnew.delete_PCB_MARKER
16131
16132 @staticmethod
16133 def ClassOf(aItem):
16134 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16135 return _pcbnew.PCB_MARKER_ClassOf(aItem)
16136
16137 def Serialize(self):
16138 r"""Serialize(PCB_MARKER self) -> wxString"""
16139 return _pcbnew.PCB_MARKER_Serialize(self)
16140
16141 @staticmethod
16142 def Deserialize(data):
16143 r"""Deserialize(wxString data) -> PCB_MARKER"""
16144 return _pcbnew.PCB_MARKER_Deserialize(data)
16145
16146 def HitTest(self, *args):
16147 r"""
16148 HitTest(PCB_MARKER self, VECTOR2I aPosition, int aAccuracy=0) -> bool
16149 HitTest(PCB_MARKER self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16150 """
16151 return _pcbnew.PCB_MARKER_HitTest(self, *args)
16152
16153 def GetColorLayer(self):
16154 r"""GetColorLayer(PCB_MARKER self) -> GAL_LAYER_ID"""
16155 return _pcbnew.PCB_MARKER_GetColorLayer(self)
16156
16157 def GetEffectiveShape(self, *args):
16158 r"""GetEffectiveShape(PCB_MARKER self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16159 return _pcbnew.PCB_MARKER_GetEffectiveShape(self, *args)
16160
16161 def SetZoom(self, aZoomFactor):
16162 r"""SetZoom(PCB_MARKER self, double aZoomFactor)"""
16163 return _pcbnew.PCB_MARKER_SetZoom(self, aZoomFactor)
16164
16165# Register PCB_MARKER in _pcbnew:
16166_pcbnew.PCB_MARKER_swigregister(PCB_MARKER)
16167
16169 r"""PCB_MARKER_ClassOf(EDA_ITEM aItem) -> bool"""
16170 return _pcbnew.PCB_MARKER_ClassOf(aItem)
16171
16173 r"""PCB_MARKER_Deserialize(wxString data) -> PCB_MARKER"""
16174 return _pcbnew.PCB_MARKER_Deserialize(data)
16175
16177 r"""Proxy of C++ PCB_TARGET class."""
16178
16179 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16180 __repr__ = _swig_repr
16181
16182 def __init__(self, *args):
16183 r"""
16184 __init__(PCB_TARGET self, BOARD_ITEM aParent) -> PCB_TARGET
16185 __init__(PCB_TARGET self, BOARD_ITEM aParent, int aShape, PCB_LAYER_ID aLayer, VECTOR2I aPos, int aSize, int aWidth) -> PCB_TARGET
16186 """
16187 _pcbnew.PCB_TARGET_swiginit(self, _pcbnew.new_PCB_TARGET(*args))
16188 __swig_destroy__ = _pcbnew.delete_PCB_TARGET
16189
16190 @staticmethod
16191 def ClassOf(aItem):
16192 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16193 return _pcbnew.PCB_TARGET_ClassOf(aItem)
16194
16195 def SetShape(self, aShape):
16196 r"""SetShape(PCB_TARGET self, int aShape)"""
16197 return _pcbnew.PCB_TARGET_SetShape(self, aShape)
16198
16199 def GetShape(self):
16200 r"""GetShape(PCB_TARGET self) -> int"""
16201 return _pcbnew.PCB_TARGET_GetShape(self)
16202
16203 def SetSize(self, aSize):
16204 r"""SetSize(PCB_TARGET self, int aSize)"""
16205 return _pcbnew.PCB_TARGET_SetSize(self, aSize)
16206
16207 def GetSize(self):
16208 r"""GetSize(PCB_TARGET self) -> int"""
16209 return _pcbnew.PCB_TARGET_GetSize(self)
16210
16211 def SetWidth(self, aWidth):
16212 r"""SetWidth(PCB_TARGET self, int aWidth)"""
16213 return _pcbnew.PCB_TARGET_SetWidth(self, aWidth)
16214
16215 def GetWidth(self):
16216 r"""GetWidth(PCB_TARGET self) -> int"""
16217 return _pcbnew.PCB_TARGET_GetWidth(self)
16218
16219 def HitTest(self, *args):
16220 r"""
16221 HitTest(PCB_TARGET self, VECTOR2I aPosition, int aAccuracy=0) -> bool
16222 HitTest(PCB_TARGET self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16223 """
16224 return _pcbnew.PCB_TARGET_HitTest(self, *args)
16225
16226 def GetEffectiveShape(self, *args):
16227 r"""GetEffectiveShape(PCB_TARGET self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16228 return _pcbnew.PCB_TARGET_GetEffectiveShape(self, *args)
16229
16230 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
16231 r"""TransformShapeToPolygon(PCB_TARGET self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
16232 return _pcbnew.PCB_TARGET_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
16233
16234# Register PCB_TARGET in _pcbnew:
16235_pcbnew.PCB_TARGET_swigregister(PCB_TARGET)
16236
16238 r"""PCB_TARGET_ClassOf(EDA_ITEM aItem) -> bool"""
16239 return _pcbnew.PCB_TARGET_ClassOf(aItem)
16240
16242 r"""Proxy of C++ std::vector< PAD * > class."""
16243
16244 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16245 __repr__ = _swig_repr
16246
16247 def iterator(self):
16248 r"""iterator(PADS_VEC self) -> SwigPyIterator"""
16249 return _pcbnew.PADS_VEC_iterator(self)
16250 def __iter__(self):
16251 return self.iterator()
16252
16253 def __nonzero__(self):
16254 r"""__nonzero__(PADS_VEC self) -> bool"""
16255 return _pcbnew.PADS_VEC___nonzero__(self)
16256
16257 def __bool__(self):
16258 r"""__bool__(PADS_VEC self) -> bool"""
16259 return _pcbnew.PADS_VEC___bool__(self)
16260
16261 def __len__(self):
16262 r"""__len__(PADS_VEC self) -> std::vector< PAD * >::size_type"""
16263 return _pcbnew.PADS_VEC___len__(self)
16264
16265 def __getslice__(self, i, j):
16266 r"""__getslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j) -> PADS_VEC"""
16267 return _pcbnew.PADS_VEC___getslice__(self, i, j)
16268
16269 def __setslice__(self, *args):
16270 r"""
16271 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)
16272 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j, PADS_VEC v)
16273 """
16274 return _pcbnew.PADS_VEC___setslice__(self, *args)
16275
16276 def __delslice__(self, i, j):
16277 r"""__delslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)"""
16278 return _pcbnew.PADS_VEC___delslice__(self, i, j)
16279
16280 def __delitem__(self, *args):
16281 r"""
16282 __delitem__(PADS_VEC self, std::vector< PAD * >::difference_type i)
16283 __delitem__(PADS_VEC self, PySliceObject * slice)
16284 """
16285 return _pcbnew.PADS_VEC___delitem__(self, *args)
16286
16287 def __getitem__(self, *args):
16288 r"""
16289 __getitem__(PADS_VEC self, PySliceObject * slice) -> PADS_VEC
16290 __getitem__(PADS_VEC self, std::vector< PAD * >::difference_type i) -> PAD
16291 """
16292 return _pcbnew.PADS_VEC___getitem__(self, *args)
16293
16294 def __setitem__(self, *args):
16295 r"""
16296 __setitem__(PADS_VEC self, PySliceObject * slice, PADS_VEC v)
16297 __setitem__(PADS_VEC self, PySliceObject * slice)
16298 __setitem__(PADS_VEC self, std::vector< PAD * >::difference_type i, PAD x)
16299 """
16300 return _pcbnew.PADS_VEC___setitem__(self, *args)
16301
16302 def pop(self):
16303 r"""pop(PADS_VEC self) -> PAD"""
16304 return _pcbnew.PADS_VEC_pop(self)
16305
16306 def append(self, x):
16307 r"""append(PADS_VEC self, PAD x)"""
16308 return _pcbnew.PADS_VEC_append(self, x)
16309
16310 def empty(self):
16311 r"""empty(PADS_VEC self) -> bool"""
16312 return _pcbnew.PADS_VEC_empty(self)
16313
16314 def size(self):
16315 r"""size(PADS_VEC self) -> std::vector< PAD * >::size_type"""
16316 return _pcbnew.PADS_VEC_size(self)
16317
16318 def swap(self, v):
16319 r"""swap(PADS_VEC self, PADS_VEC v)"""
16320 return _pcbnew.PADS_VEC_swap(self, v)
16321
16322 def begin(self):
16323 r"""begin(PADS_VEC self) -> std::vector< PAD * >::iterator"""
16324 return _pcbnew.PADS_VEC_begin(self)
16325
16326 def end(self):
16327 r"""end(PADS_VEC self) -> std::vector< PAD * >::iterator"""
16328 return _pcbnew.PADS_VEC_end(self)
16329
16330 def rbegin(self):
16331 r"""rbegin(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
16332 return _pcbnew.PADS_VEC_rbegin(self)
16333
16334 def rend(self):
16335 r"""rend(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
16336 return _pcbnew.PADS_VEC_rend(self)
16337
16338 def clear(self):
16339 r"""clear(PADS_VEC self)"""
16340 return _pcbnew.PADS_VEC_clear(self)
16341
16342 def get_allocator(self):
16343 r"""get_allocator(PADS_VEC self) -> std::vector< PAD * >::allocator_type"""
16344 return _pcbnew.PADS_VEC_get_allocator(self)
16345
16346 def pop_back(self):
16347 r"""pop_back(PADS_VEC self)"""
16348 return _pcbnew.PADS_VEC_pop_back(self)
16349
16350 def erase(self, *args):
16351 r"""
16352 erase(PADS_VEC self, std::vector< PAD * >::iterator pos) -> std::vector< PAD * >::iterator
16353 erase(PADS_VEC self, std::vector< PAD * >::iterator first, std::vector< PAD * >::iterator last) -> std::vector< PAD * >::iterator
16354 """
16355 return _pcbnew.PADS_VEC_erase(self, *args)
16356
16357 def __init__(self, *args):
16358 r"""
16359 __init__(PADS_VEC self) -> PADS_VEC
16360 __init__(PADS_VEC self, PADS_VEC other) -> PADS_VEC
16361 __init__(PADS_VEC self, std::vector< PAD * >::size_type size) -> PADS_VEC
16362 __init__(PADS_VEC self, std::vector< PAD * >::size_type size, PAD value) -> PADS_VEC
16363 """
16364 _pcbnew.PADS_VEC_swiginit(self, _pcbnew.new_PADS_VEC(*args))
16365
16366 def push_back(self, x):
16367 r"""push_back(PADS_VEC self, PAD x)"""
16368 return _pcbnew.PADS_VEC_push_back(self, x)
16369
16370 def front(self):
16371 r"""front(PADS_VEC self) -> PAD"""
16372 return _pcbnew.PADS_VEC_front(self)
16373
16374 def back(self):
16375 r"""back(PADS_VEC self) -> PAD"""
16376 return _pcbnew.PADS_VEC_back(self)
16377
16378 def assign(self, n, x):
16379 r"""assign(PADS_VEC self, std::vector< PAD * >::size_type n, PAD x)"""
16380 return _pcbnew.PADS_VEC_assign(self, n, x)
16381
16382 def resize(self, *args):
16383 r"""
16384 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size)
16385 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size, PAD x)
16386 """
16387 return _pcbnew.PADS_VEC_resize(self, *args)
16388
16389 def insert(self, *args):
16390 r"""
16391 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, PAD x) -> std::vector< PAD * >::iterator
16392 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, std::vector< PAD * >::size_type n, PAD x)
16393 """
16394 return _pcbnew.PADS_VEC_insert(self, *args)
16395
16396 def reserve(self, n):
16397 r"""reserve(PADS_VEC self, std::vector< PAD * >::size_type n)"""
16398 return _pcbnew.PADS_VEC_reserve(self, n)
16399
16400 def capacity(self):
16401 r"""capacity(PADS_VEC self) -> std::vector< PAD * >::size_type"""
16402 return _pcbnew.PADS_VEC_capacity(self)
16403 __swig_destroy__ = _pcbnew.delete_PADS_VEC
16404
16405# Register PADS_VEC in _pcbnew:
16406_pcbnew.PADS_VEC_swigregister(PADS_VEC)
16407
16409 r"""Proxy of C++ std::vector< PCB_TRACK * > class."""
16410
16411 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16412 __repr__ = _swig_repr
16413
16414 def iterator(self):
16415 r"""iterator(TRACKS_VEC self) -> SwigPyIterator"""
16416 return _pcbnew.TRACKS_VEC_iterator(self)
16417 def __iter__(self):
16418 return self.iterator()
16419
16420 def __nonzero__(self):
16421 r"""__nonzero__(TRACKS_VEC self) -> bool"""
16422 return _pcbnew.TRACKS_VEC___nonzero__(self)
16423
16424 def __bool__(self):
16425 r"""__bool__(TRACKS_VEC self) -> bool"""
16426 return _pcbnew.TRACKS_VEC___bool__(self)
16427
16428 def __len__(self):
16429 r"""__len__(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
16430 return _pcbnew.TRACKS_VEC___len__(self)
16431
16432 def __getslice__(self, i, j):
16433 r"""__getslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j) -> TRACKS_VEC"""
16434 return _pcbnew.TRACKS_VEC___getslice__(self, i, j)
16435
16436 def __setslice__(self, *args):
16437 r"""
16438 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)
16439 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j, TRACKS_VEC v)
16440 """
16441 return _pcbnew.TRACKS_VEC___setslice__(self, *args)
16442
16443 def __delslice__(self, i, j):
16444 r"""__delslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)"""
16445 return _pcbnew.TRACKS_VEC___delslice__(self, i, j)
16446
16447 def __delitem__(self, *args):
16448 r"""
16449 __delitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i)
16450 __delitem__(TRACKS_VEC self, PySliceObject * slice)
16451 """
16452 return _pcbnew.TRACKS_VEC___delitem__(self, *args)
16453
16454 def __getitem__(self, *args):
16455 r"""
16456 __getitem__(TRACKS_VEC self, PySliceObject * slice) -> TRACKS_VEC
16457 __getitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i) -> PCB_TRACK
16458 """
16459 return _pcbnew.TRACKS_VEC___getitem__(self, *args)
16460
16461 def __setitem__(self, *args):
16462 r"""
16463 __setitem__(TRACKS_VEC self, PySliceObject * slice, TRACKS_VEC v)
16464 __setitem__(TRACKS_VEC self, PySliceObject * slice)
16465 __setitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, PCB_TRACK x)
16466 """
16467 return _pcbnew.TRACKS_VEC___setitem__(self, *args)
16468
16469 def pop(self):
16470 r"""pop(TRACKS_VEC self) -> PCB_TRACK"""
16471 return _pcbnew.TRACKS_VEC_pop(self)
16472
16473 def append(self, x):
16474 r"""append(TRACKS_VEC self, PCB_TRACK x)"""
16475 return _pcbnew.TRACKS_VEC_append(self, x)
16476
16477 def empty(self):
16478 r"""empty(TRACKS_VEC self) -> bool"""
16479 return _pcbnew.TRACKS_VEC_empty(self)
16480
16481 def size(self):
16482 r"""size(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
16483 return _pcbnew.TRACKS_VEC_size(self)
16484
16485 def swap(self, v):
16486 r"""swap(TRACKS_VEC self, TRACKS_VEC v)"""
16487 return _pcbnew.TRACKS_VEC_swap(self, v)
16488
16489 def begin(self):
16490 r"""begin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
16491 return _pcbnew.TRACKS_VEC_begin(self)
16492
16493 def end(self):
16494 r"""end(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
16495 return _pcbnew.TRACKS_VEC_end(self)
16496
16497 def rbegin(self):
16498 r"""rbegin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
16499 return _pcbnew.TRACKS_VEC_rbegin(self)
16500
16501 def rend(self):
16502 r"""rend(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
16503 return _pcbnew.TRACKS_VEC_rend(self)
16504
16505 def clear(self):
16506 r"""clear(TRACKS_VEC self)"""
16507 return _pcbnew.TRACKS_VEC_clear(self)
16508
16509 def get_allocator(self):
16510 r"""get_allocator(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::allocator_type"""
16511 return _pcbnew.TRACKS_VEC_get_allocator(self)
16512
16513 def pop_back(self):
16514 r"""pop_back(TRACKS_VEC self)"""
16515 return _pcbnew.TRACKS_VEC_pop_back(self)
16516
16517 def erase(self, *args):
16518 r"""
16519 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos) -> std::vector< PCB_TRACK * >::iterator
16520 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator first, std::vector< PCB_TRACK * >::iterator last) -> std::vector< PCB_TRACK * >::iterator
16521 """
16522 return _pcbnew.TRACKS_VEC_erase(self, *args)
16523
16524 def __init__(self, *args):
16525 r"""
16526 __init__(TRACKS_VEC self) -> TRACKS_VEC
16527 __init__(TRACKS_VEC self, TRACKS_VEC other) -> TRACKS_VEC
16528 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size) -> TRACKS_VEC
16529 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS_VEC
16530 """
16531 _pcbnew.TRACKS_VEC_swiginit(self, _pcbnew.new_TRACKS_VEC(*args))
16532
16533 def push_back(self, x):
16534 r"""push_back(TRACKS_VEC self, PCB_TRACK x)"""
16535 return _pcbnew.TRACKS_VEC_push_back(self, x)
16536
16537 def front(self):
16538 r"""front(TRACKS_VEC self) -> PCB_TRACK"""
16539 return _pcbnew.TRACKS_VEC_front(self)
16540
16541 def back(self):
16542 r"""back(TRACKS_VEC self) -> PCB_TRACK"""
16543 return _pcbnew.TRACKS_VEC_back(self)
16544
16545 def assign(self, n, x):
16546 r"""assign(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
16547 return _pcbnew.TRACKS_VEC_assign(self, n, x)
16548
16549 def resize(self, *args):
16550 r"""
16551 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size)
16552 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
16553 """
16554 return _pcbnew.TRACKS_VEC_resize(self, *args)
16555
16556 def insert(self, *args):
16557 r"""
16558 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::vector< PCB_TRACK * >::iterator
16559 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)
16560 """
16561 return _pcbnew.TRACKS_VEC_insert(self, *args)
16562
16563 def reserve(self, n):
16564 r"""reserve(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n)"""
16565 return _pcbnew.TRACKS_VEC_reserve(self, n)
16566
16567 def capacity(self):
16568 r"""capacity(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
16569 return _pcbnew.TRACKS_VEC_capacity(self)
16570 __swig_destroy__ = _pcbnew.delete_TRACKS_VEC
16571
16572# Register TRACKS_VEC in _pcbnew:
16573_pcbnew.TRACKS_VEC_swigregister(TRACKS_VEC)
16574
16576 r"""Proxy of C++ NETINFO_ITEM class."""
16577
16578 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16579 __repr__ = _swig_repr
16580
16581 def __init__(self, *args):
16582 r"""__init__(NETINFO_ITEM self, BOARD aParent, wxString aNetName=wxEmptyString, int aNetCode=-1) -> NETINFO_ITEM"""
16583 _pcbnew.NETINFO_ITEM_swiginit(self, _pcbnew.new_NETINFO_ITEM(*args))
16584 __swig_destroy__ = _pcbnew.delete_NETINFO_ITEM
16585
16586 @staticmethod
16587 def ClassOf(aItem):
16588 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16589 return _pcbnew.NETINFO_ITEM_ClassOf(aItem)
16590
16591 def SetNetClass(self, aNetClass):
16592 r"""SetNetClass(NETINFO_ITEM self, std::shared_ptr< NETCLASS > const & aNetClass)"""
16593 return _pcbnew.NETINFO_ITEM_SetNetClass(self, aNetClass)
16594
16595 def GetNetClass(self):
16596 r"""GetNetClass(NETINFO_ITEM self) -> NETCLASS"""
16597 return _pcbnew.NETINFO_ITEM_GetNetClass(self)
16598
16600 r"""GetNetClassSlow(NETINFO_ITEM self) -> std::shared_ptr< NETCLASS >"""
16601 return _pcbnew.NETINFO_ITEM_GetNetClassSlow(self)
16602
16603 def GetNetCode(self):
16604 r"""GetNetCode(NETINFO_ITEM self) -> int"""
16605 return _pcbnew.NETINFO_ITEM_GetNetCode(self)
16606
16607 def SetNetCode(self, aNetCode):
16608 r"""SetNetCode(NETINFO_ITEM self, int aNetCode)"""
16609 return _pcbnew.NETINFO_ITEM_SetNetCode(self, aNetCode)
16610
16611 def GetNetname(self):
16612 r"""GetNetname(NETINFO_ITEM self) -> wxString"""
16613 return _pcbnew.NETINFO_ITEM_GetNetname(self)
16614
16616 r"""GetShortNetname(NETINFO_ITEM self) -> wxString"""
16617 return _pcbnew.NETINFO_ITEM_GetShortNetname(self)
16618
16620 r"""GetDisplayNetname(NETINFO_ITEM self) -> wxString"""
16621 return _pcbnew.NETINFO_ITEM_GetDisplayNetname(self)
16622
16624 r"""HasAutoGeneratedNetname(NETINFO_ITEM self) -> bool"""
16625 return _pcbnew.NETINFO_ITEM_HasAutoGeneratedNetname(self)
16626
16627 def SetNetname(self, aNewName):
16628 r"""SetNetname(NETINFO_ITEM self, wxString aNewName)"""
16629 return _pcbnew.NETINFO_ITEM_SetNetname(self, aNewName)
16630
16631 def IsCurrent(self):
16632 r"""IsCurrent(NETINFO_ITEM self) -> bool"""
16633 return _pcbnew.NETINFO_ITEM_IsCurrent(self)
16634
16635 def SetIsCurrent(self, isCurrent):
16636 r"""SetIsCurrent(NETINFO_ITEM self, bool isCurrent)"""
16637 return _pcbnew.NETINFO_ITEM_SetIsCurrent(self, isCurrent)
16638
16639 def Clear(self):
16640 r"""Clear(NETINFO_ITEM self)"""
16641 return _pcbnew.NETINFO_ITEM_Clear(self)
16642
16643 def GetParent(self):
16644 r"""GetParent(NETINFO_ITEM self) -> BOARD"""
16645 return _pcbnew.NETINFO_ITEM_GetParent(self)
16646
16648 return self.GetNetClassSlow().GetName()
16649
16650
16651# Register NETINFO_ITEM in _pcbnew:
16652_pcbnew.NETINFO_ITEM_swigregister(NETINFO_ITEM)
16653
16655 r"""NETINFO_ITEM_ClassOf(EDA_ITEM aItem) -> bool"""
16656 return _pcbnew.NETINFO_ITEM_ClassOf(aItem)
16657
16659 r"""Proxy of C++ std::map< wxString,NETINFO_ITEM * > class."""
16660
16661 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16662 __repr__ = _swig_repr
16663
16664 def iterator(self):
16665 r"""iterator(NETNAMES_MAP self) -> SwigPyIterator"""
16666 return _pcbnew.NETNAMES_MAP_iterator(self)
16667 def __iter__(self):
16668 return self.iterator()
16669
16670 def __nonzero__(self):
16671 r"""__nonzero__(NETNAMES_MAP self) -> bool"""
16672 return _pcbnew.NETNAMES_MAP___nonzero__(self)
16673
16674 def __bool__(self):
16675 r"""__bool__(NETNAMES_MAP self) -> bool"""
16676 return _pcbnew.NETNAMES_MAP___bool__(self)
16677
16678 def __len__(self):
16679 r"""__len__(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
16680 return _pcbnew.NETNAMES_MAP___len__(self)
16681 def __iter__(self):
16682 return self.key_iterator()
16683 def iterkeys(self):
16684 return self.key_iterator()
16685 def itervalues(self):
16686 return self.value_iterator()
16687 def iteritems(self):
16688 return self.iterator()
16689
16690 def __getitem__(self, key):
16691 r"""__getitem__(NETNAMES_MAP self, wxString key) -> NETINFO_ITEM"""
16692 return _pcbnew.NETNAMES_MAP___getitem__(self, key)
16693
16694 def __delitem__(self, key):
16695 r"""__delitem__(NETNAMES_MAP self, wxString key)"""
16696 return _pcbnew.NETNAMES_MAP___delitem__(self, key)
16697
16698 def has_key(self, key):
16699 r"""has_key(NETNAMES_MAP self, wxString key) -> bool"""
16700 return _pcbnew.NETNAMES_MAP_has_key(self, key)
16701
16702 def keys(self):
16703 r"""keys(NETNAMES_MAP self) -> PyObject *"""
16704 return _pcbnew.NETNAMES_MAP_keys(self)
16705
16706 def values(self):
16707 r"""values(NETNAMES_MAP self) -> PyObject *"""
16708 return _pcbnew.NETNAMES_MAP_values(self)
16709
16710 def items(self):
16711 r"""items(NETNAMES_MAP self) -> PyObject *"""
16712 return _pcbnew.NETNAMES_MAP_items(self)
16713
16714 def __contains__(self, key):
16715 r"""__contains__(NETNAMES_MAP self, wxString key) -> bool"""
16716 return _pcbnew.NETNAMES_MAP___contains__(self, key)
16717
16718 def key_iterator(self):
16719 r"""key_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
16720 return _pcbnew.NETNAMES_MAP_key_iterator(self)
16721
16723 r"""value_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
16724 return _pcbnew.NETNAMES_MAP_value_iterator(self)
16725
16726 def __setitem__(self, *args):
16727 r"""
16728 __setitem__(NETNAMES_MAP self, wxString key)
16729 __setitem__(NETNAMES_MAP self, wxString key, NETINFO_ITEM x)
16730 """
16731 return _pcbnew.NETNAMES_MAP___setitem__(self, *args)
16732
16733 def asdict(self):
16734 r"""asdict(NETNAMES_MAP self) -> PyObject *"""
16735 return _pcbnew.NETNAMES_MAP_asdict(self)
16736
16737 def __init__(self, *args):
16738 r"""
16739 __init__(NETNAMES_MAP self, std::less< wxString > const & other) -> NETNAMES_MAP
16740 __init__(NETNAMES_MAP self) -> NETNAMES_MAP
16741 __init__(NETNAMES_MAP self, NETNAMES_MAP other) -> NETNAMES_MAP
16742 """
16743 _pcbnew.NETNAMES_MAP_swiginit(self, _pcbnew.new_NETNAMES_MAP(*args))
16744
16745 def empty(self):
16746 r"""empty(NETNAMES_MAP self) -> bool"""
16747 return _pcbnew.NETNAMES_MAP_empty(self)
16748
16749 def size(self):
16750 r"""size(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
16751 return _pcbnew.NETNAMES_MAP_size(self)
16752
16753 def swap(self, v):
16754 r"""swap(NETNAMES_MAP self, NETNAMES_MAP v)"""
16755 return _pcbnew.NETNAMES_MAP_swap(self, v)
16756
16757 def begin(self):
16758 r"""begin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16759 return _pcbnew.NETNAMES_MAP_begin(self)
16760
16761 def end(self):
16762 r"""end(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16763 return _pcbnew.NETNAMES_MAP_end(self)
16764
16765 def rbegin(self):
16766 r"""rbegin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
16767 return _pcbnew.NETNAMES_MAP_rbegin(self)
16768
16769 def rend(self):
16770 r"""rend(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
16771 return _pcbnew.NETNAMES_MAP_rend(self)
16772
16773 def clear(self):
16774 r"""clear(NETNAMES_MAP self)"""
16775 return _pcbnew.NETNAMES_MAP_clear(self)
16776
16777 def get_allocator(self):
16778 r"""get_allocator(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::allocator_type"""
16779 return _pcbnew.NETNAMES_MAP_get_allocator(self)
16780
16781 def count(self, x):
16782 r"""count(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
16783 return _pcbnew.NETNAMES_MAP_count(self, x)
16784
16785 def erase(self, *args):
16786 r"""
16787 erase(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type
16788 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator position)
16789 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator first, std::map< wxString,NETINFO_ITEM * >::iterator last)
16790 """
16791 return _pcbnew.NETNAMES_MAP_erase(self, *args)
16792
16793 def find(self, x):
16794 r"""find(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16795 return _pcbnew.NETNAMES_MAP_find(self, x)
16796
16797 def lower_bound(self, x):
16798 r"""lower_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16799 return _pcbnew.NETNAMES_MAP_lower_bound(self, x)
16800
16801 def upper_bound(self, x):
16802 r"""upper_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16803 return _pcbnew.NETNAMES_MAP_upper_bound(self, x)
16804 __swig_destroy__ = _pcbnew.delete_NETNAMES_MAP
16805
16806# Register NETNAMES_MAP in _pcbnew:
16807_pcbnew.NETNAMES_MAP_swigregister(NETNAMES_MAP)
16808
16810 r"""Proxy of C++ std::map< int,NETINFO_ITEM * > class."""
16811
16812 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16813 __repr__ = _swig_repr
16814
16815 def iterator(self):
16816 r"""iterator(NETCODES_MAP self) -> SwigPyIterator"""
16817 return _pcbnew.NETCODES_MAP_iterator(self)
16818 def __iter__(self):
16819 return self.iterator()
16820
16821 def __nonzero__(self):
16822 r"""__nonzero__(NETCODES_MAP self) -> bool"""
16823 return _pcbnew.NETCODES_MAP___nonzero__(self)
16824
16825 def __bool__(self):
16826 r"""__bool__(NETCODES_MAP self) -> bool"""
16827 return _pcbnew.NETCODES_MAP___bool__(self)
16828
16829 def __len__(self):
16830 r"""__len__(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
16831 return _pcbnew.NETCODES_MAP___len__(self)
16832 def __iter__(self):
16833 return self.key_iterator()
16834 def iterkeys(self):
16835 return self.key_iterator()
16836 def itervalues(self):
16837 return self.value_iterator()
16838 def iteritems(self):
16839 return self.iterator()
16840
16841 def __getitem__(self, key):
16842 r"""__getitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> NETINFO_ITEM"""
16843 return _pcbnew.NETCODES_MAP___getitem__(self, key)
16844
16845 def __delitem__(self, key):
16846 r"""__delitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)"""
16847 return _pcbnew.NETCODES_MAP___delitem__(self, key)
16848
16849 def has_key(self, key):
16850 r"""has_key(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
16851 return _pcbnew.NETCODES_MAP_has_key(self, key)
16852
16853 def keys(self):
16854 r"""keys(NETCODES_MAP self) -> PyObject *"""
16855 return _pcbnew.NETCODES_MAP_keys(self)
16856
16857 def values(self):
16858 r"""values(NETCODES_MAP self) -> PyObject *"""
16859 return _pcbnew.NETCODES_MAP_values(self)
16860
16861 def items(self):
16862 r"""items(NETCODES_MAP self) -> PyObject *"""
16863 return _pcbnew.NETCODES_MAP_items(self)
16864
16865 def __contains__(self, key):
16866 r"""__contains__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
16867 return _pcbnew.NETCODES_MAP___contains__(self, key)
16868
16869 def key_iterator(self):
16870 r"""key_iterator(NETCODES_MAP self) -> SwigPyIterator"""
16871 return _pcbnew.NETCODES_MAP_key_iterator(self)
16872
16874 r"""value_iterator(NETCODES_MAP self) -> SwigPyIterator"""
16875 return _pcbnew.NETCODES_MAP_value_iterator(self)
16876
16877 def __setitem__(self, *args):
16878 r"""
16879 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)
16880 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key, NETINFO_ITEM x)
16881 """
16882 return _pcbnew.NETCODES_MAP___setitem__(self, *args)
16883
16884 def asdict(self):
16885 r"""asdict(NETCODES_MAP self) -> PyObject *"""
16886 return _pcbnew.NETCODES_MAP_asdict(self)
16887
16888 def __init__(self, *args):
16889 r"""
16890 __init__(NETCODES_MAP self, std::less< int > const & other) -> NETCODES_MAP
16891 __init__(NETCODES_MAP self) -> NETCODES_MAP
16892 __init__(NETCODES_MAP self, NETCODES_MAP other) -> NETCODES_MAP
16893 """
16894 _pcbnew.NETCODES_MAP_swiginit(self, _pcbnew.new_NETCODES_MAP(*args))
16895
16896 def empty(self):
16897 r"""empty(NETCODES_MAP self) -> bool"""
16898 return _pcbnew.NETCODES_MAP_empty(self)
16899
16900 def size(self):
16901 r"""size(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
16902 return _pcbnew.NETCODES_MAP_size(self)
16903
16904 def swap(self, v):
16905 r"""swap(NETCODES_MAP self, NETCODES_MAP v)"""
16906 return _pcbnew.NETCODES_MAP_swap(self, v)
16907
16908 def begin(self):
16909 r"""begin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
16910 return _pcbnew.NETCODES_MAP_begin(self)
16911
16912 def end(self):
16913 r"""end(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
16914 return _pcbnew.NETCODES_MAP_end(self)
16915
16916 def rbegin(self):
16917 r"""rbegin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
16918 return _pcbnew.NETCODES_MAP_rbegin(self)
16919
16920 def rend(self):
16921 r"""rend(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
16922 return _pcbnew.NETCODES_MAP_rend(self)
16923
16924 def clear(self):
16925 r"""clear(NETCODES_MAP self)"""
16926 return _pcbnew.NETCODES_MAP_clear(self)
16927
16928 def get_allocator(self):
16929 r"""get_allocator(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::allocator_type"""
16930 return _pcbnew.NETCODES_MAP_get_allocator(self)
16931
16932 def count(self, x):
16933 r"""count(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type"""
16934 return _pcbnew.NETCODES_MAP_count(self, x)
16935
16936 def erase(self, *args):
16937 r"""
16938 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type
16939 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator position)
16940 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator first, std::map< int,NETINFO_ITEM * >::iterator last)
16941 """
16942 return _pcbnew.NETCODES_MAP_erase(self, *args)
16943
16944 def find(self, x):
16945 r"""find(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
16946 return _pcbnew.NETCODES_MAP_find(self, x)
16947
16948 def lower_bound(self, x):
16949 r"""lower_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
16950 return _pcbnew.NETCODES_MAP_lower_bound(self, x)
16951
16952 def upper_bound(self, x):
16953 r"""upper_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
16954 return _pcbnew.NETCODES_MAP_upper_bound(self, x)
16955 __swig_destroy__ = _pcbnew.delete_NETCODES_MAP
16956
16957# Register NETCODES_MAP in _pcbnew:
16958_pcbnew.NETCODES_MAP_swigregister(NETCODES_MAP)
16959
16961 r"""Proxy of C++ NETINFO_LIST class."""
16962
16963 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16964 __repr__ = _swig_repr
16965
16966 def __init__(self, aParent):
16967 r"""__init__(NETINFO_LIST self, BOARD aParent) -> NETINFO_LIST"""
16968 _pcbnew.NETINFO_LIST_swiginit(self, _pcbnew.new_NETINFO_LIST(aParent))
16969 __swig_destroy__ = _pcbnew.delete_NETINFO_LIST
16970
16971 def GetNetItem(self, *args):
16972 r"""
16973 GetNetItem(NETINFO_LIST self, int aNetCode) -> NETINFO_ITEM
16974 GetNetItem(NETINFO_LIST self, wxString aNetName) -> NETINFO_ITEM
16975 """
16976 return _pcbnew.NETINFO_LIST_GetNetItem(self, *args)
16977
16978 def GetNetCount(self):
16979 r"""GetNetCount(NETINFO_LIST self) -> unsigned int"""
16980 return _pcbnew.NETINFO_LIST_GetNetCount(self)
16981
16982 def NetsByName(self):
16983 r"""NetsByName(NETINFO_LIST self) -> NETNAMES_MAP"""
16984 return _pcbnew.NETINFO_LIST_NetsByName(self)
16985
16986 def NetsByNetcode(self):
16987 r"""NetsByNetcode(NETINFO_LIST self) -> NETCODES_MAP"""
16988 return _pcbnew.NETINFO_LIST_NetsByNetcode(self)
16989
16991 r"""RebuildDisplayNetnames(NETINFO_LIST self)"""
16992 return _pcbnew.NETINFO_LIST_RebuildDisplayNetnames(self)
16993
16994 @staticmethod
16996 r"""OrphanedItem() -> NETINFO_ITEM"""
16997 return _pcbnew.NETINFO_LIST_OrphanedItem()
16998
16999 def GetParent(self):
17000 r"""GetParent(NETINFO_LIST self) -> BOARD"""
17001 return _pcbnew.NETINFO_LIST_GetParent(self)
17002 m_DisplayNetnamesDirty = property(_pcbnew.NETINFO_LIST_m_DisplayNetnamesDirty_get, _pcbnew.NETINFO_LIST_m_DisplayNetnamesDirty_set, doc=r"""m_DisplayNetnamesDirty : bool""")
17003
17004# Register NETINFO_LIST in _pcbnew:
17005_pcbnew.NETINFO_LIST_swigregister(NETINFO_LIST)
17006NETINFO_LIST.UNCONNECTED = _pcbnew.cvar.NETINFO_LIST_UNCONNECTED
17007NETINFO_LIST.ORPHANED = _pcbnew.cvar.NETINFO_LIST_ORPHANED
17008
17010 r"""NETINFO_LIST_OrphanedItem() -> NETINFO_ITEM"""
17011 return _pcbnew.NETINFO_LIST_OrphanedItem()
17012
17014 r"""Proxy of C++ std::set< wxString > class."""
17015
17016 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17017 __repr__ = _swig_repr
17018
17019 def iterator(self):
17020 r"""iterator(STRINGSET self) -> SwigPyIterator"""
17021 return _pcbnew.STRINGSET_iterator(self)
17022 def __iter__(self):
17023 return self.iterator()
17024
17025 def __nonzero__(self):
17026 r"""__nonzero__(STRINGSET self) -> bool"""
17027 return _pcbnew.STRINGSET___nonzero__(self)
17028
17029 def __bool__(self):
17030 r"""__bool__(STRINGSET self) -> bool"""
17031 return _pcbnew.STRINGSET___bool__(self)
17032
17033 def __len__(self):
17034 r"""__len__(STRINGSET self) -> std::set< wxString >::size_type"""
17035 return _pcbnew.STRINGSET___len__(self)
17036
17037 def append(self, x):
17038 r"""append(STRINGSET self, wxString x)"""
17039 return _pcbnew.STRINGSET_append(self, x)
17040
17041 def __contains__(self, x):
17042 r"""__contains__(STRINGSET self, wxString x) -> bool"""
17043 return _pcbnew.STRINGSET___contains__(self, x)
17044
17045 def __getitem__(self, i):
17046 r"""__getitem__(STRINGSET self, std::set< wxString >::difference_type i) -> wxString"""
17047 return _pcbnew.STRINGSET___getitem__(self, i)
17048
17049 def add(self, x):
17050 r"""add(STRINGSET self, wxString x)"""
17051 return _pcbnew.STRINGSET_add(self, x)
17052
17053 def discard(self, x):
17054 r"""discard(STRINGSET self, wxString x)"""
17055 return _pcbnew.STRINGSET_discard(self, x)
17056
17057 def __init__(self, *args):
17058 r"""
17059 __init__(STRINGSET self, std::less< wxString > const & other) -> STRINGSET
17060 __init__(STRINGSET self) -> STRINGSET
17061 __init__(STRINGSET self, STRINGSET other) -> STRINGSET
17062 """
17063 _pcbnew.STRINGSET_swiginit(self, _pcbnew.new_STRINGSET(*args))
17064
17065 def empty(self):
17066 r"""empty(STRINGSET self) -> bool"""
17067 return _pcbnew.STRINGSET_empty(self)
17068
17069 def size(self):
17070 r"""size(STRINGSET self) -> std::set< wxString >::size_type"""
17071 return _pcbnew.STRINGSET_size(self)
17072
17073 def clear(self):
17074 r"""clear(STRINGSET self)"""
17075 return _pcbnew.STRINGSET_clear(self)
17076
17077 def swap(self, v):
17078 r"""swap(STRINGSET self, STRINGSET v)"""
17079 return _pcbnew.STRINGSET_swap(self, v)
17080
17081 def count(self, x):
17082 r"""count(STRINGSET self, wxString x) -> std::set< wxString >::size_type"""
17083 return _pcbnew.STRINGSET_count(self, x)
17084
17085 def begin(self):
17086 r"""begin(STRINGSET self) -> std::set< wxString >::iterator"""
17087 return _pcbnew.STRINGSET_begin(self)
17088
17089 def end(self):
17090 r"""end(STRINGSET self) -> std::set< wxString >::iterator"""
17091 return _pcbnew.STRINGSET_end(self)
17092
17093 def rbegin(self):
17094 r"""rbegin(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
17095 return _pcbnew.STRINGSET_rbegin(self)
17096
17097 def rend(self):
17098 r"""rend(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
17099 return _pcbnew.STRINGSET_rend(self)
17100
17101 def erase(self, *args):
17102 r"""
17103 erase(STRINGSET self, wxString x) -> std::set< wxString >::size_type
17104 erase(STRINGSET self, std::set< wxString >::iterator pos)
17105 erase(STRINGSET self, std::set< wxString >::iterator first, std::set< wxString >::iterator last)
17106 """
17107 return _pcbnew.STRINGSET_erase(self, *args)
17108
17109 def find(self, x):
17110 r"""find(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
17111 return _pcbnew.STRINGSET_find(self, x)
17112
17113 def lower_bound(self, x):
17114 r"""lower_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
17115 return _pcbnew.STRINGSET_lower_bound(self, x)
17116
17117 def upper_bound(self, x):
17118 r"""upper_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
17119 return _pcbnew.STRINGSET_upper_bound(self, x)
17120
17121 def equal_range(self, x):
17122 r"""equal_range(STRINGSET self, wxString x) -> std::pair< std::set< wxString >::iterator,std::set< wxString >::iterator >"""
17123 return _pcbnew.STRINGSET_equal_range(self, x)
17124
17125 def insert(self, __x):
17126 r"""insert(STRINGSET self, wxString __x) -> std::pair< std::set< wxString >::iterator,bool >"""
17127 return _pcbnew.STRINGSET_insert(self, __x)
17128 __swig_destroy__ = _pcbnew.delete_STRINGSET
17129
17130# Register STRINGSET in _pcbnew:
17131_pcbnew.STRINGSET_swigregister(STRINGSET)
17132
17134 r"""Proxy of C++ NETCLASS class."""
17135
17136 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17137 __repr__ = _swig_repr
17138
17139 def __init__(self, aName):
17140 r"""__init__(NETCLASS self, wxString aName) -> NETCLASS"""
17141 _pcbnew.NETCLASS_swiginit(self, _pcbnew.new_NETCLASS(aName))
17142 __swig_destroy__ = _pcbnew.delete_NETCLASS
17143
17144 def GetClass(self):
17145 r"""GetClass(NETCLASS self) -> wxString"""
17146 return _pcbnew.NETCLASS_GetClass(self)
17147
17148 def GetName(self):
17149 r"""GetName(NETCLASS self) -> wxString"""
17150 return _pcbnew.NETCLASS_GetName(self)
17151
17152 def SetName(self, aName):
17153 r"""SetName(NETCLASS self, wxString aName)"""
17154 return _pcbnew.NETCLASS_SetName(self, aName)
17155
17157 r"""GetDescription(NETCLASS self) -> wxString"""
17158 return _pcbnew.NETCLASS_GetDescription(self)
17159
17160 def SetDescription(self, aDesc):
17161 r"""SetDescription(NETCLASS self, wxString aDesc)"""
17162 return _pcbnew.NETCLASS_SetDescription(self, aDesc)
17163
17164 def HasClearance(self):
17165 r"""HasClearance(NETCLASS self) -> bool"""
17166 return _pcbnew.NETCLASS_HasClearance(self)
17167
17168 def GetClearance(self):
17169 r"""GetClearance(NETCLASS self) -> int"""
17170 return _pcbnew.NETCLASS_GetClearance(self)
17171
17172 def SetClearance(self, aClearance):
17173 r"""SetClearance(NETCLASS self, int aClearance)"""
17174 return _pcbnew.NETCLASS_SetClearance(self, aClearance)
17175
17176 def HasTrackWidth(self):
17177 r"""HasTrackWidth(NETCLASS self) -> bool"""
17178 return _pcbnew.NETCLASS_HasTrackWidth(self)
17179
17180 def GetTrackWidth(self):
17181 r"""GetTrackWidth(NETCLASS self) -> int"""
17182 return _pcbnew.NETCLASS_GetTrackWidth(self)
17183
17184 def SetTrackWidth(self, aWidth):
17185 r"""SetTrackWidth(NETCLASS self, int aWidth)"""
17186 return _pcbnew.NETCLASS_SetTrackWidth(self, aWidth)
17187
17189 r"""HasViaDiameter(NETCLASS self) -> bool"""
17190 return _pcbnew.NETCLASS_HasViaDiameter(self)
17191
17193 r"""GetViaDiameter(NETCLASS self) -> int"""
17194 return _pcbnew.NETCLASS_GetViaDiameter(self)
17195
17196 def SetViaDiameter(self, aDia):
17197 r"""SetViaDiameter(NETCLASS self, int aDia)"""
17198 return _pcbnew.NETCLASS_SetViaDiameter(self, aDia)
17199
17200 def HasViaDrill(self):
17201 r"""HasViaDrill(NETCLASS self) -> int"""
17202 return _pcbnew.NETCLASS_HasViaDrill(self)
17203
17204 def GetViaDrill(self):
17205 r"""GetViaDrill(NETCLASS self) -> int"""
17206 return _pcbnew.NETCLASS_GetViaDrill(self)
17207
17208 def SetViaDrill(self, aSize):
17209 r"""SetViaDrill(NETCLASS self, int aSize)"""
17210 return _pcbnew.NETCLASS_SetViaDrill(self, aSize)
17211
17213 r"""HasuViaDiameter(NETCLASS self) -> bool"""
17214 return _pcbnew.NETCLASS_HasuViaDiameter(self)
17215
17217 r"""GetuViaDiameter(NETCLASS self) -> int"""
17218 return _pcbnew.NETCLASS_GetuViaDiameter(self)
17219
17220 def SetuViaDiameter(self, aSize):
17221 r"""SetuViaDiameter(NETCLASS self, int aSize)"""
17222 return _pcbnew.NETCLASS_SetuViaDiameter(self, aSize)
17223
17224 def HasuViaDrill(self):
17225 r"""HasuViaDrill(NETCLASS self) -> bool"""
17226 return _pcbnew.NETCLASS_HasuViaDrill(self)
17227
17228 def GetuViaDrill(self):
17229 r"""GetuViaDrill(NETCLASS self) -> int"""
17230 return _pcbnew.NETCLASS_GetuViaDrill(self)
17231
17232 def SetuViaDrill(self, aSize):
17233 r"""SetuViaDrill(NETCLASS self, int aSize)"""
17234 return _pcbnew.NETCLASS_SetuViaDrill(self, aSize)
17235
17237 r"""HasDiffPairWidth(NETCLASS self) -> bool"""
17238 return _pcbnew.NETCLASS_HasDiffPairWidth(self)
17239
17241 r"""GetDiffPairWidth(NETCLASS self) -> int"""
17242 return _pcbnew.NETCLASS_GetDiffPairWidth(self)
17243
17244 def SetDiffPairWidth(self, aSize):
17245 r"""SetDiffPairWidth(NETCLASS self, int aSize)"""
17246 return _pcbnew.NETCLASS_SetDiffPairWidth(self, aSize)
17247
17249 r"""HasDiffPairGap(NETCLASS self) -> bool"""
17250 return _pcbnew.NETCLASS_HasDiffPairGap(self)
17251
17253 r"""GetDiffPairGap(NETCLASS self) -> int"""
17254 return _pcbnew.NETCLASS_GetDiffPairGap(self)
17255
17256 def SetDiffPairGap(self, aSize):
17257 r"""SetDiffPairGap(NETCLASS self, int aSize)"""
17258 return _pcbnew.NETCLASS_SetDiffPairGap(self, aSize)
17259
17261 r"""HasDiffPairViaGap(NETCLASS self) -> bool"""
17262 return _pcbnew.NETCLASS_HasDiffPairViaGap(self)
17263
17265 r"""GetDiffPairViaGap(NETCLASS self) -> int"""
17266 return _pcbnew.NETCLASS_GetDiffPairViaGap(self)
17267
17268 def SetDiffPairViaGap(self, aSize):
17269 r"""SetDiffPairViaGap(NETCLASS self, int aSize)"""
17270 return _pcbnew.NETCLASS_SetDiffPairViaGap(self, aSize)
17271
17272 def GetPcbColor(self):
17273 r"""GetPcbColor(NETCLASS self) -> COLOR4D"""
17274 return _pcbnew.NETCLASS_GetPcbColor(self)
17275
17276 def SetPcbColor(self, aColor):
17277 r"""SetPcbColor(NETCLASS self, COLOR4D aColor)"""
17278 return _pcbnew.NETCLASS_SetPcbColor(self, aColor)
17279
17280 def GetWireWidth(self):
17281 r"""GetWireWidth(NETCLASS self) -> int"""
17282 return _pcbnew.NETCLASS_GetWireWidth(self)
17283
17284 def SetWireWidth(self, aWidth):
17285 r"""SetWireWidth(NETCLASS self, int aWidth)"""
17286 return _pcbnew.NETCLASS_SetWireWidth(self, aWidth)
17287
17288 def GetBusWidth(self):
17289 r"""GetBusWidth(NETCLASS self) -> int"""
17290 return _pcbnew.NETCLASS_GetBusWidth(self)
17291
17292 def SetBusWidth(self, aWidth):
17293 r"""SetBusWidth(NETCLASS self, int aWidth)"""
17294 return _pcbnew.NETCLASS_SetBusWidth(self, aWidth)
17295
17297 r"""GetSchematicColor(NETCLASS self) -> COLOR4D"""
17298 return _pcbnew.NETCLASS_GetSchematicColor(self)
17299
17300 def SetSchematicColor(self, aColor):
17301 r"""SetSchematicColor(NETCLASS self, COLOR4D aColor)"""
17302 return _pcbnew.NETCLASS_SetSchematicColor(self, aColor)
17303
17304 def GetLineStyle(self):
17305 r"""GetLineStyle(NETCLASS self) -> int"""
17306 return _pcbnew.NETCLASS_GetLineStyle(self)
17307
17308 def SetLineStyle(self, aStyle):
17309 r"""SetLineStyle(NETCLASS self, int aStyle)"""
17310 return _pcbnew.NETCLASS_SetLineStyle(self, aStyle)
17311
17312# Register NETCLASS in _pcbnew:
17313_pcbnew.NETCLASS_swigregister(NETCLASS)
17314NETCLASS.Default = _pcbnew.cvar.NETCLASS_Default
17315
17317 r"""Proxy of C++ PCB_GROUP class."""
17318
17319 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17320 __repr__ = _swig_repr
17321
17322 def __init__(self, aParent):
17323 r"""__init__(PCB_GROUP self, BOARD_ITEM aParent) -> PCB_GROUP"""
17324 _pcbnew.PCB_GROUP_swiginit(self, _pcbnew.new_PCB_GROUP(aParent))
17325
17326 @staticmethod
17327 def ClassOf(aItem):
17328 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17329 return _pcbnew.PCB_GROUP_ClassOf(aItem)
17330
17331 def GetName(self):
17332 r"""GetName(PCB_GROUP self) -> wxString"""
17333 return _pcbnew.PCB_GROUP_GetName(self)
17334
17335 def SetName(self, aName):
17336 r"""SetName(PCB_GROUP self, wxString aName)"""
17337 return _pcbnew.PCB_GROUP_SetName(self, aName)
17338
17339 def GetItems(self, *args):
17340 r"""
17341 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * >
17342 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * > const &
17343 """
17344 return _pcbnew.PCB_GROUP_GetItems(self, *args)
17345
17346 def AddItem(self, aItem):
17347 r"""AddItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
17348 return _pcbnew.PCB_GROUP_AddItem(self, aItem)
17349
17350 def RemoveItem(self, aItem):
17351 r"""RemoveItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
17352 return _pcbnew.PCB_GROUP_RemoveItem(self, aItem)
17353
17354 def RemoveAll(self):
17355 r"""RemoveAll(PCB_GROUP self)"""
17356 return _pcbnew.PCB_GROUP_RemoveAll(self)
17357
17358 @staticmethod
17359 def TopLevelGroup(aItem, aScope, isFootprintEditor):
17360 r"""TopLevelGroup(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> PCB_GROUP"""
17361 return _pcbnew.PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
17362
17363 @staticmethod
17364 def WithinScope(aItem, aScope, isFootprintEditor):
17365 r"""WithinScope(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> bool"""
17366 return _pcbnew.PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
17367
17368 def DeepClone(self):
17369 r"""DeepClone(PCB_GROUP self) -> PCB_GROUP"""
17370 return _pcbnew.PCB_GROUP_DeepClone(self)
17371
17372 def DeepDuplicate(self):
17373 r"""DeepDuplicate(PCB_GROUP self) -> PCB_GROUP"""
17374 return _pcbnew.PCB_GROUP_DeepDuplicate(self)
17375
17376 def HitTest(self, *args):
17377 r"""
17378 HitTest(PCB_GROUP self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17379 HitTest(PCB_GROUP self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17380 """
17381 return _pcbnew.PCB_GROUP_HitTest(self, *args)
17382
17383 def GetEffectiveShape(self, *args):
17384 r"""GetEffectiveShape(PCB_GROUP self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17385 return _pcbnew.PCB_GROUP_GetEffectiveShape(self, *args)
17386
17387 def ViewGetLOD(self, aLayer, aView):
17388 r"""ViewGetLOD(PCB_GROUP self, int aLayer, KIGFX::VIEW * aView) -> double"""
17389 return _pcbnew.PCB_GROUP_ViewGetLOD(self, aLayer, aView)
17390
17391 def RunOnDescendants(self, aFunction, aDepth=0):
17392 r"""RunOnDescendants(PCB_GROUP self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
17393 return _pcbnew.PCB_GROUP_RunOnDescendants(self, aFunction, aDepth)
17394
17395 @staticmethod
17397 r"""IsGroupableType(KICAD_T aType) -> bool"""
17398 return _pcbnew.PCB_GROUP_IsGroupableType(aType)
17399
17400 def GetItemsDeque(self):
17401 r"""GetItemsDeque(PCB_GROUP self) -> DRAWINGS"""
17402 return _pcbnew.PCB_GROUP_GetItemsDeque(self)
17403
17404 def GetItems(self):
17405 return [item.Cast() for item in self.GetItemsDeque()]
17406
17407 __swig_destroy__ = _pcbnew.delete_PCB_GROUP
17408
17409# Register PCB_GROUP in _pcbnew:
17410_pcbnew.PCB_GROUP_swigregister(PCB_GROUP)
17411
17413 r"""PCB_GROUP_ClassOf(EDA_ITEM aItem) -> bool"""
17414 return _pcbnew.PCB_GROUP_ClassOf(aItem)
17415
17416def PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor):
17417 r"""PCB_GROUP_TopLevelGroup(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> PCB_GROUP"""
17418 return _pcbnew.PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
17419
17420def PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor):
17421 r"""PCB_GROUP_WithinScope(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> bool"""
17422 return _pcbnew.PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
17423
17425 r"""PCB_GROUP_IsGroupableType(KICAD_T aType) -> bool"""
17426 return _pcbnew.PCB_GROUP_IsGroupableType(aType)
17427
17429 r"""Proxy of C++ PCB_REFERENCE_IMAGE class."""
17430
17431 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17432 __repr__ = _swig_repr
17433
17434 def __init__(self, *args):
17435 r"""
17436 __init__(PCB_REFERENCE_IMAGE self, BOARD_ITEM aParent, VECTOR2I pos=VECTOR2I( 0, 0 ), PCB_LAYER_ID aLayer=F_Cu) -> PCB_REFERENCE_IMAGE
17437 __init__(PCB_REFERENCE_IMAGE self, PCB_REFERENCE_IMAGE aPcbBitmap) -> PCB_REFERENCE_IMAGE
17438 """
17439 _pcbnew.PCB_REFERENCE_IMAGE_swiginit(self, _pcbnew.new_PCB_REFERENCE_IMAGE(*args))
17440 __swig_destroy__ = _pcbnew.delete_PCB_REFERENCE_IMAGE
17441
17442 def GetImage(self):
17443 r"""GetImage(PCB_REFERENCE_IMAGE self) -> BITMAP_BASE const *"""
17444 return _pcbnew.PCB_REFERENCE_IMAGE_GetImage(self)
17445
17446 def MutableImage(self):
17447 r"""MutableImage(PCB_REFERENCE_IMAGE self) -> BITMAP_BASE *"""
17448 return _pcbnew.PCB_REFERENCE_IMAGE_MutableImage(self)
17449
17450 def GetImageScale(self):
17451 r"""GetImageScale(PCB_REFERENCE_IMAGE self) -> double"""
17452 return _pcbnew.PCB_REFERENCE_IMAGE_GetImageScale(self)
17453
17454 def SetImageScale(self, aScale):
17455 r"""SetImageScale(PCB_REFERENCE_IMAGE self, double aScale)"""
17456 return _pcbnew.PCB_REFERENCE_IMAGE_SetImageScale(self, aScale)
17457
17458 @staticmethod
17459 def ClassOf(aItem):
17460 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17461 return _pcbnew.PCB_REFERENCE_IMAGE_ClassOf(aItem)
17462
17463 def GetSize(self):
17464 r"""GetSize(PCB_REFERENCE_IMAGE self) -> VECTOR2I"""
17465 return _pcbnew.PCB_REFERENCE_IMAGE_GetSize(self)
17466
17467 def ViewGetLOD(self, aLayer, aView):
17468 r"""ViewGetLOD(PCB_REFERENCE_IMAGE self, int aLayer, KIGFX::VIEW * aView) -> double"""
17469 return _pcbnew.PCB_REFERENCE_IMAGE_ViewGetLOD(self, aLayer, aView)
17470
17471 def GetEffectiveShape(self, *args):
17472 r"""GetEffectiveShape(PCB_REFERENCE_IMAGE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17473 return _pcbnew.PCB_REFERENCE_IMAGE_GetEffectiveShape(self, *args)
17474
17475 def ReadImageFile(self, *args):
17476 r"""
17477 ReadImageFile(PCB_REFERENCE_IMAGE self, wxString aFullFilename) -> bool
17478 ReadImageFile(PCB_REFERENCE_IMAGE self, wxMemoryBuffer & aBuf) -> bool
17479 """
17480 return _pcbnew.PCB_REFERENCE_IMAGE_ReadImageFile(self, *args)
17481
17482 def HitTest(self, *args):
17483 r"""
17484 HitTest(PCB_REFERENCE_IMAGE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17485 HitTest(PCB_REFERENCE_IMAGE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17486 """
17487 return _pcbnew.PCB_REFERENCE_IMAGE_HitTest(self, *args)
17488
17489# Register PCB_REFERENCE_IMAGE in _pcbnew:
17490_pcbnew.PCB_REFERENCE_IMAGE_swigregister(PCB_REFERENCE_IMAGE)
17491
17493 r"""PCB_REFERENCE_IMAGE_ClassOf(EDA_ITEM aItem) -> bool"""
17494 return _pcbnew.PCB_REFERENCE_IMAGE_ClassOf(aItem)
17495
17497 r"""Proxy of C++ std::vector< VIA_DIMENSION > class."""
17498
17499 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17500 __repr__ = _swig_repr
17501
17502 def iterator(self):
17503 r"""iterator(VIA_DIMENSION_Vector self) -> SwigPyIterator"""
17504 return _pcbnew.VIA_DIMENSION_Vector_iterator(self)
17505 def __iter__(self):
17506 return self.iterator()
17507
17508 def __nonzero__(self):
17509 r"""__nonzero__(VIA_DIMENSION_Vector self) -> bool"""
17510 return _pcbnew.VIA_DIMENSION_Vector___nonzero__(self)
17511
17512 def __bool__(self):
17513 r"""__bool__(VIA_DIMENSION_Vector self) -> bool"""
17514 return _pcbnew.VIA_DIMENSION_Vector___bool__(self)
17515
17516 def __len__(self):
17517 r"""__len__(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
17518 return _pcbnew.VIA_DIMENSION_Vector___len__(self)
17519
17520 def __getslice__(self, i, j):
17521 r"""__getslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j) -> VIA_DIMENSION_Vector"""
17522 return _pcbnew.VIA_DIMENSION_Vector___getslice__(self, i, j)
17523
17524 def __setslice__(self, *args):
17525 r"""
17526 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)
17527 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j, VIA_DIMENSION_Vector v)
17528 """
17529 return _pcbnew.VIA_DIMENSION_Vector___setslice__(self, *args)
17530
17531 def __delslice__(self, i, j):
17532 r"""__delslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)"""
17533 return _pcbnew.VIA_DIMENSION_Vector___delslice__(self, i, j)
17534
17535 def __delitem__(self, *args):
17536 r"""
17537 __delitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i)
17538 __delitem__(VIA_DIMENSION_Vector self, PySliceObject * slice)
17539 """
17540 return _pcbnew.VIA_DIMENSION_Vector___delitem__(self, *args)
17541
17542 def __getitem__(self, *args):
17543 r"""
17544 __getitem__(VIA_DIMENSION_Vector self, PySliceObject * slice) -> VIA_DIMENSION_Vector
17545 __getitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i) -> VIA_DIMENSION
17546 """
17547 return _pcbnew.VIA_DIMENSION_Vector___getitem__(self, *args)
17548
17549 def __setitem__(self, *args):
17550 r"""
17551 __setitem__(VIA_DIMENSION_Vector self, PySliceObject * slice, VIA_DIMENSION_Vector v)
17552 __setitem__(VIA_DIMENSION_Vector self, PySliceObject * slice)
17553 __setitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, VIA_DIMENSION x)
17554 """
17555 return _pcbnew.VIA_DIMENSION_Vector___setitem__(self, *args)
17556
17557 def pop(self):
17558 r"""pop(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
17559 return _pcbnew.VIA_DIMENSION_Vector_pop(self)
17560
17561 def append(self, x):
17562 r"""append(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
17563 return _pcbnew.VIA_DIMENSION_Vector_append(self, x)
17564
17565 def empty(self):
17566 r"""empty(VIA_DIMENSION_Vector self) -> bool"""
17567 return _pcbnew.VIA_DIMENSION_Vector_empty(self)
17568
17569 def size(self):
17570 r"""size(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
17571 return _pcbnew.VIA_DIMENSION_Vector_size(self)
17572
17573 def swap(self, v):
17574 r"""swap(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector v)"""
17575 return _pcbnew.VIA_DIMENSION_Vector_swap(self, v)
17576
17577 def begin(self):
17578 r"""begin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
17579 return _pcbnew.VIA_DIMENSION_Vector_begin(self)
17580
17581 def end(self):
17582 r"""end(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
17583 return _pcbnew.VIA_DIMENSION_Vector_end(self)
17584
17585 def rbegin(self):
17586 r"""rbegin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
17587 return _pcbnew.VIA_DIMENSION_Vector_rbegin(self)
17588
17589 def rend(self):
17590 r"""rend(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
17591 return _pcbnew.VIA_DIMENSION_Vector_rend(self)
17592
17593 def clear(self):
17594 r"""clear(VIA_DIMENSION_Vector self)"""
17595 return _pcbnew.VIA_DIMENSION_Vector_clear(self)
17596
17597 def get_allocator(self):
17598 r"""get_allocator(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::allocator_type"""
17599 return _pcbnew.VIA_DIMENSION_Vector_get_allocator(self)
17600
17601 def pop_back(self):
17602 r"""pop_back(VIA_DIMENSION_Vector self)"""
17603 return _pcbnew.VIA_DIMENSION_Vector_pop_back(self)
17604
17605 def erase(self, *args):
17606 r"""
17607 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos) -> std::vector< VIA_DIMENSION >::iterator
17608 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator first, std::vector< VIA_DIMENSION >::iterator last) -> std::vector< VIA_DIMENSION >::iterator
17609 """
17610 return _pcbnew.VIA_DIMENSION_Vector_erase(self, *args)
17611
17612 def __init__(self, *args):
17613 r"""
17614 __init__(VIA_DIMENSION_Vector self) -> VIA_DIMENSION_Vector
17615 __init__(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector other) -> VIA_DIMENSION_Vector
17616 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size) -> VIA_DIMENSION_Vector
17617 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size, VIA_DIMENSION value) -> VIA_DIMENSION_Vector
17618 """
17619 _pcbnew.VIA_DIMENSION_Vector_swiginit(self, _pcbnew.new_VIA_DIMENSION_Vector(*args))
17620
17621 def push_back(self, x):
17622 r"""push_back(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
17623 return _pcbnew.VIA_DIMENSION_Vector_push_back(self, x)
17624
17625 def front(self):
17626 r"""front(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
17627 return _pcbnew.VIA_DIMENSION_Vector_front(self)
17628
17629 def back(self):
17630 r"""back(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
17631 return _pcbnew.VIA_DIMENSION_Vector_back(self)
17632
17633 def assign(self, n, x):
17634 r"""assign(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)"""
17635 return _pcbnew.VIA_DIMENSION_Vector_assign(self, n, x)
17636
17637 def resize(self, *args):
17638 r"""
17639 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size)
17640 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size, VIA_DIMENSION x)
17641 """
17642 return _pcbnew.VIA_DIMENSION_Vector_resize(self, *args)
17643
17644 def insert(self, *args):
17645 r"""
17646 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, VIA_DIMENSION x) -> std::vector< VIA_DIMENSION >::iterator
17647 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)
17648 """
17649 return _pcbnew.VIA_DIMENSION_Vector_insert(self, *args)
17650
17651 def reserve(self, n):
17652 r"""reserve(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n)"""
17653 return _pcbnew.VIA_DIMENSION_Vector_reserve(self, n)
17654
17655 def capacity(self):
17656 r"""capacity(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
17657 return _pcbnew.VIA_DIMENSION_Vector_capacity(self)
17658 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION_Vector
17659
17660# Register VIA_DIMENSION_Vector in _pcbnew:
17661_pcbnew.VIA_DIMENSION_Vector_swigregister(VIA_DIMENSION_Vector)
17662
17663DEFAULT_CHAINING_EPSILON_MM = _pcbnew.DEFAULT_CHAINING_EPSILON_MM
17664
17666 r"""Proxy of C++ PTR_PTR_CACHE_KEY class."""
17667
17668 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17669 __repr__ = _swig_repr
17670 A = property(_pcbnew.PTR_PTR_CACHE_KEY_A_get, _pcbnew.PTR_PTR_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
17671 B = property(_pcbnew.PTR_PTR_CACHE_KEY_B_get, _pcbnew.PTR_PTR_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
17672
17673 def __eq__(self, other):
17674 r"""__eq__(PTR_PTR_CACHE_KEY self, PTR_PTR_CACHE_KEY other) -> bool"""
17675 return _pcbnew.PTR_PTR_CACHE_KEY___eq__(self, other)
17676
17677 def __init__(self):
17678 r"""__init__(PTR_PTR_CACHE_KEY self) -> PTR_PTR_CACHE_KEY"""
17679 _pcbnew.PTR_PTR_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_CACHE_KEY())
17680 __swig_destroy__ = _pcbnew.delete_PTR_PTR_CACHE_KEY
17681
17682# Register PTR_PTR_CACHE_KEY in _pcbnew:
17683_pcbnew.PTR_PTR_CACHE_KEY_swigregister(PTR_PTR_CACHE_KEY)
17684
17686 r"""Proxy of C++ PTR_LAYER_CACHE_KEY class."""
17687
17688 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17689 __repr__ = _swig_repr
17690 A = property(_pcbnew.PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
17691 Layer = property(_pcbnew.PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
17692
17693 def __eq__(self, other):
17694 r"""__eq__(PTR_LAYER_CACHE_KEY self, PTR_LAYER_CACHE_KEY other) -> bool"""
17695 return _pcbnew.PTR_LAYER_CACHE_KEY___eq__(self, other)
17696
17697 def __init__(self):
17698 r"""__init__(PTR_LAYER_CACHE_KEY self) -> PTR_LAYER_CACHE_KEY"""
17699 _pcbnew.PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_LAYER_CACHE_KEY())
17700 __swig_destroy__ = _pcbnew.delete_PTR_LAYER_CACHE_KEY
17701
17702# Register PTR_LAYER_CACHE_KEY in _pcbnew:
17703_pcbnew.PTR_LAYER_CACHE_KEY_swigregister(PTR_LAYER_CACHE_KEY)
17704
17706 r"""Proxy of C++ PTR_PTR_LAYER_CACHE_KEY class."""
17707
17708 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17709 __repr__ = _swig_repr
17710 A = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
17711 B = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
17712 Layer = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
17713
17714 def __eq__(self, other):
17715 r"""__eq__(PTR_PTR_LAYER_CACHE_KEY self, PTR_PTR_LAYER_CACHE_KEY other) -> bool"""
17716 return _pcbnew.PTR_PTR_LAYER_CACHE_KEY___eq__(self, other)
17717
17718 def __init__(self):
17719 r"""__init__(PTR_PTR_LAYER_CACHE_KEY self) -> PTR_PTR_LAYER_CACHE_KEY"""
17720 _pcbnew.PTR_PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_LAYER_CACHE_KEY())
17721 __swig_destroy__ = _pcbnew.delete_PTR_PTR_LAYER_CACHE_KEY
17722
17723# Register PTR_PTR_LAYER_CACHE_KEY in _pcbnew:
17724_pcbnew.PTR_PTR_LAYER_CACHE_KEY_swigregister(PTR_PTR_LAYER_CACHE_KEY)
17725
17726LT_UNDEFINED = _pcbnew.LT_UNDEFINED
17727
17728LT_SIGNAL = _pcbnew.LT_SIGNAL
17729
17730LT_POWER = _pcbnew.LT_POWER
17731
17732LT_MIXED = _pcbnew.LT_MIXED
17733
17734LT_JUMPER = _pcbnew.LT_JUMPER
17735
17737 r"""Proxy of C++ LAYER class."""
17738
17739 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17740 __repr__ = _swig_repr
17741
17742 def __init__(self):
17743 r"""__init__(LAYER self) -> LAYER"""
17744 _pcbnew.LAYER_swiginit(self, _pcbnew.new_LAYER())
17745
17746 def clear(self):
17747 r"""clear(LAYER self)"""
17748 return _pcbnew.LAYER_clear(self)
17749 m_name = property(_pcbnew.LAYER_m_name_get, _pcbnew.LAYER_m_name_set, doc=r"""m_name : wxString""")
17750 m_userName = property(_pcbnew.LAYER_m_userName_get, _pcbnew.LAYER_m_userName_set, doc=r"""m_userName : wxString""")
17751 m_type = property(_pcbnew.LAYER_m_type_get, _pcbnew.LAYER_m_type_set, doc=r"""m_type : LAYER_T""")
17752 m_visible = property(_pcbnew.LAYER_m_visible_get, _pcbnew.LAYER_m_visible_set, doc=r"""m_visible : bool""")
17753 m_number = property(_pcbnew.LAYER_m_number_get, _pcbnew.LAYER_m_number_set, doc=r"""m_number : int""")
17754
17755 @staticmethod
17756 def ShowType(aType):
17757 r"""ShowType(LAYER_T aType) -> char const *"""
17758 return _pcbnew.LAYER_ShowType(aType)
17759
17760 @staticmethod
17761 def ParseType(aType):
17762 r"""ParseType(char const * aType) -> LAYER_T"""
17763 return _pcbnew.LAYER_ParseType(aType)
17764 __swig_destroy__ = _pcbnew.delete_LAYER
17765
17766# Register LAYER in _pcbnew:
17767_pcbnew.LAYER_swigregister(LAYER)
17768
17770 r"""LAYER_ShowType(LAYER_T aType) -> char const *"""
17771 return _pcbnew.LAYER_ShowType(aType)
17772
17774 r"""LAYER_ParseType(char const * aType) -> LAYER_T"""
17775 return _pcbnew.LAYER_ParseType(aType)
17776
17778 r"""Proxy of C++ HIGH_LIGHT_INFO class."""
17779
17780 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17781
17782 def __init__(self, *args, **kwargs):
17783 raise AttributeError("No constructor defined")
17784 __repr__ = _swig_repr
17785 __swig_destroy__ = _pcbnew.delete_HIGH_LIGHT_INFO
17786
17787# Register HIGH_LIGHT_INFO in _pcbnew:
17788_pcbnew.HIGH_LIGHT_INFO_swigregister(HIGH_LIGHT_INFO)
17789
17791 r"""Proxy of C++ BOARD_LISTENER class."""
17792
17793 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17794 __repr__ = _swig_repr
17795 __swig_destroy__ = _pcbnew.delete_BOARD_LISTENER
17796
17797 def OnBoardItemAdded(self, aBoard, aBoardItem):
17798 r"""OnBoardItemAdded(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
17799 return _pcbnew.BOARD_LISTENER_OnBoardItemAdded(self, aBoard, aBoardItem)
17800
17801 def OnBoardItemsAdded(self, aBoard, aBoardItem):
17802 r"""OnBoardItemsAdded(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
17803 return _pcbnew.BOARD_LISTENER_OnBoardItemsAdded(self, aBoard, aBoardItem)
17804
17805 def OnBoardItemRemoved(self, aBoard, aBoardItem):
17806 r"""OnBoardItemRemoved(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
17807 return _pcbnew.BOARD_LISTENER_OnBoardItemRemoved(self, aBoard, aBoardItem)
17808
17809 def OnBoardItemsRemoved(self, aBoard, aBoardItem):
17810 r"""OnBoardItemsRemoved(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
17811 return _pcbnew.BOARD_LISTENER_OnBoardItemsRemoved(self, aBoard, aBoardItem)
17812
17813 def OnBoardNetSettingsChanged(self, aBoard):
17814 r"""OnBoardNetSettingsChanged(BOARD_LISTENER self, BOARD aBoard)"""
17815 return _pcbnew.BOARD_LISTENER_OnBoardNetSettingsChanged(self, aBoard)
17816
17817 def OnBoardItemChanged(self, aBoard, aBoardItem):
17818 r"""OnBoardItemChanged(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
17819 return _pcbnew.BOARD_LISTENER_OnBoardItemChanged(self, aBoard, aBoardItem)
17820
17821 def OnBoardItemsChanged(self, aBoard, aBoardItem):
17822 r"""OnBoardItemsChanged(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
17823 return _pcbnew.BOARD_LISTENER_OnBoardItemsChanged(self, aBoard, aBoardItem)
17824
17826 r"""OnBoardHighlightNetChanged(BOARD_LISTENER self, BOARD aBoard)"""
17827 return _pcbnew.BOARD_LISTENER_OnBoardHighlightNetChanged(self, aBoard)
17828
17829 def OnBoardRatsnestChanged(self, aBoard):
17830 r"""OnBoardRatsnestChanged(BOARD_LISTENER self, BOARD aBoard)"""
17831 return _pcbnew.BOARD_LISTENER_OnBoardRatsnestChanged(self, aBoard)
17832
17833 def __init__(self):
17834 r"""__init__(BOARD_LISTENER self) -> BOARD_LISTENER"""
17835 _pcbnew.BOARD_LISTENER_swiginit(self, _pcbnew.new_BOARD_LISTENER())
17836
17837# Register BOARD_LISTENER in _pcbnew:
17838_pcbnew.BOARD_LISTENER_swigregister(BOARD_LISTENER)
17839
17840BOARD_USE_NORMAL = _pcbnew.BOARD_USE_NORMAL
17841
17842BOARD_USE_FPHOLDER = _pcbnew.BOARD_USE_FPHOLDER
17843
17845 r"""Proxy of C++ BOARD class."""
17846
17847 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17848
17849 def __init__(self, *args, **kwargs):
17850 raise AttributeError("No constructor defined")
17851 __repr__ = _swig_repr
17852
17853 @staticmethod
17854 def ClassOf(aItem):
17855 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17856 return _pcbnew.BOARD_ClassOf(aItem)
17857
17858 def SetBoardUse(self, aUse):
17859 r"""SetBoardUse(BOARD self, BOARD_USE aUse)"""
17860 return _pcbnew.BOARD_SetBoardUse(self, aUse)
17861
17862 def GetBoardUse(self):
17863 r"""GetBoardUse(BOARD self) -> BOARD_USE"""
17864 return _pcbnew.BOARD_GetBoardUse(self)
17865
17867 r"""IncrementTimeStamp(BOARD self)"""
17868 return _pcbnew.BOARD_IncrementTimeStamp(self)
17869
17870 def GetTimeStamp(self):
17871 r"""GetTimeStamp(BOARD self) -> int"""
17872 return _pcbnew.BOARD_GetTimeStamp(self)
17873
17875 r"""IsFootprintHolder(BOARD self) -> bool"""
17876 return _pcbnew.BOARD_IsFootprintHolder(self)
17877
17878 def SetFileName(self, aFileName):
17879 r"""SetFileName(BOARD self, wxString aFileName)"""
17880 return _pcbnew.BOARD_SetFileName(self, aFileName)
17881
17882 def GetFileName(self):
17883 r"""GetFileName(BOARD self) -> wxString"""
17884 return _pcbnew.BOARD_GetFileName(self)
17885
17886 def Tracks(self, *args):
17887 r"""
17888 Tracks(BOARD self) -> TRACKS
17889 Tracks(BOARD self) -> TRACKS
17890 """
17891 return _pcbnew.BOARD_Tracks(self, *args)
17892
17893 def Footprints(self, *args):
17894 r"""
17895 Footprints(BOARD self) -> FOOTPRINTS
17896 Footprints(BOARD self) -> FOOTPRINTS
17897 """
17898 return _pcbnew.BOARD_Footprints(self, *args)
17899
17900 def Drawings(self, *args):
17901 r"""
17902 Drawings(BOARD self) -> DRAWINGS
17903 Drawings(BOARD self) -> DRAWINGS
17904 """
17905 return _pcbnew.BOARD_Drawings(self, *args)
17906
17907 def Zones(self, *args):
17908 r"""
17909 Zones(BOARD self) -> ZONES
17910 Zones(BOARD self) -> ZONES
17911 """
17912 return _pcbnew.BOARD_Zones(self, *args)
17913
17914 def Generators(self, *args):
17915 r"""
17916 Generators(BOARD self) -> GENERATORS
17917 Generators(BOARD self) -> GENERATORS
17918 """
17919 return _pcbnew.BOARD_Generators(self, *args)
17920
17921 def Markers(self, *args):
17922 r"""
17923 Markers(BOARD self) -> MARKERS
17924 Markers(BOARD self) -> MARKERS
17925 """
17926 return _pcbnew.BOARD_Markers(self, *args)
17927
17928 def GetItemSet(self):
17929 r"""GetItemSet(BOARD self) -> BOARD_ITEM_SET const"""
17930 return _pcbnew.BOARD_GetItemSet(self)
17931
17932 def Groups(self, *args):
17933 r"""
17934 Groups(BOARD self) -> GROUPS
17935 Groups(BOARD self) -> GROUPS
17936 """
17937 return _pcbnew.BOARD_Groups(self, *args)
17938
17940 r"""AllConnectedItems(BOARD self) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
17941 return _pcbnew.BOARD_AllConnectedItems(self)
17942
17943 def GetProperties(self):
17944 r"""GetProperties(BOARD self) -> MAP_STRING_STRING"""
17945 return _pcbnew.BOARD_GetProperties(self)
17946
17947 def SetProperties(self, aProps):
17948 r"""SetProperties(BOARD self, MAP_STRING_STRING aProps)"""
17949 return _pcbnew.BOARD_SetProperties(self, aProps)
17950
17951 def GetContextualTextVars(self, aVars):
17952 r"""GetContextualTextVars(BOARD self, wxArrayString * aVars)"""
17953 return _pcbnew.BOARD_GetContextualTextVars(self, aVars)
17954
17955 def ResolveTextVar(self, token, aDepth):
17956 r"""ResolveTextVar(BOARD self, wxString token, int aDepth) -> bool"""
17957 return _pcbnew.BOARD_ResolveTextVar(self, token, aDepth)
17958 m_LegacyVisibleLayers = property(_pcbnew.BOARD_m_LegacyVisibleLayers_get, _pcbnew.BOARD_m_LegacyVisibleLayers_set, doc=r"""m_LegacyVisibleLayers : LSET""")
17959 m_LegacyVisibleItems = property(_pcbnew.BOARD_m_LegacyVisibleItems_get, _pcbnew.BOARD_m_LegacyVisibleItems_set, doc=r"""m_LegacyVisibleItems : GAL_SET""")
17960 m_LegacyDesignSettingsLoaded = property(_pcbnew.BOARD_m_LegacyDesignSettingsLoaded_get, _pcbnew.BOARD_m_LegacyDesignSettingsLoaded_set, doc=r"""m_LegacyDesignSettingsLoaded : bool""")
17961 m_LegacyCopperEdgeClearanceLoaded = property(_pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_get, _pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_set, doc=r"""m_LegacyCopperEdgeClearanceLoaded : bool""")
17962 m_LegacyNetclassesLoaded = property(_pcbnew.BOARD_m_LegacyNetclassesLoaded_get, _pcbnew.BOARD_m_LegacyNetclassesLoaded_set, doc=r"""m_LegacyNetclassesLoaded : bool""")
17963 __swig_destroy__ = _pcbnew.delete_BOARD
17964
17965 def IsEmpty(self):
17966 r"""IsEmpty(BOARD self) -> bool"""
17967 return _pcbnew.BOARD_IsEmpty(self)
17968
17969 def SetFileFormatVersionAtLoad(self, aVersion):
17970 r"""SetFileFormatVersionAtLoad(BOARD self, int aVersion)"""
17971 return _pcbnew.BOARD_SetFileFormatVersionAtLoad(self, aVersion)
17972
17974 r"""GetFileFormatVersionAtLoad(BOARD self) -> int"""
17975 return _pcbnew.BOARD_GetFileFormatVersionAtLoad(self)
17976
17977 def SetGenerator(self, aGenerator):
17978 r"""SetGenerator(BOARD self, wxString aGenerator)"""
17979 return _pcbnew.BOARD_SetGenerator(self, aGenerator)
17980
17981 def GetGenerator(self):
17982 r"""GetGenerator(BOARD self) -> wxString"""
17983 return _pcbnew.BOARD_GetGenerator(self)
17984
17985 def AddNative(self, *args):
17986 r"""AddNative(BOARD self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
17987 return _pcbnew.BOARD_AddNative(self, *args)
17988
17989 def RemoveNative(self, *args):
17990 r"""RemoveNative(BOARD self, BOARD_ITEM aBoardItem, REMOVE_MODE aMode=NORMAL)"""
17991 return _pcbnew.BOARD_RemoveNative(self, *args)
17992
17993 def FinalizeBulkAdd(self, aNewItems):
17994 r"""FinalizeBulkAdd(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aNewItems)"""
17995 return _pcbnew.BOARD_FinalizeBulkAdd(self, aNewItems)
17996
17997 def FinalizeBulkRemove(self, aRemovedItems):
17998 r"""FinalizeBulkRemove(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aRemovedItems)"""
17999 return _pcbnew.BOARD_FinalizeBulkRemove(self, aRemovedItems)
18000
18001 def CacheTriangulation(self, *args):
18002 r"""CacheTriangulation(BOARD self, PROGRESS_REPORTER * aReporter=None, ZONES aZones={})"""
18003 return _pcbnew.BOARD_CacheTriangulation(self, *args)
18004
18006 r"""GetFirstFootprint(BOARD self) -> FOOTPRINT"""
18007 return _pcbnew.BOARD_GetFirstFootprint(self)
18008
18010 r"""DeleteAllFootprints(BOARD self)"""
18011 return _pcbnew.BOARD_DeleteAllFootprints(self)
18012
18013 def GetItem(self, aID):
18014 r"""GetItem(BOARD self, KIID aID) -> BOARD_ITEM"""
18015 return _pcbnew.BOARD_GetItem(self, aID)
18016
18017 def FillItemMap(self, aMap):
18018 r"""FillItemMap(BOARD self, std::map< KIID,EDA_ITEM *,std::less< KIID >,std::allocator< std::pair< KIID const,EDA_ITEM * > > > & aMap)"""
18019 return _pcbnew.BOARD_FillItemMap(self, aMap)
18020
18022 r"""ConvertCrossReferencesToKIIDs(BOARD self, wxString aSource) -> wxString"""
18023 return _pcbnew.BOARD_ConvertCrossReferencesToKIIDs(self, aSource)
18024
18026 r"""ConvertKIIDsToCrossReferences(BOARD self, wxString aSource) -> wxString"""
18027 return _pcbnew.BOARD_ConvertKIIDsToCrossReferences(self, aSource)
18028
18030 r"""GetConnectivity(BOARD self) -> std::shared_ptr< CONNECTIVITY_DATA >"""
18031 return _pcbnew.BOARD_GetConnectivity(self)
18032
18033 def BuildConnectivity(self, aReporter=None):
18034 r"""BuildConnectivity(BOARD self, PROGRESS_REPORTER * aReporter=None) -> bool"""
18035 return _pcbnew.BOARD_BuildConnectivity(self, aReporter)
18036
18037 def DeleteMARKERs(self, *args):
18038 r"""
18039 DeleteMARKERs(BOARD self)
18040 DeleteMARKERs(BOARD self, bool aWarningsAndErrors, bool aExclusions)
18041 """
18042 return _pcbnew.BOARD_DeleteMARKERs(self, *args)
18043
18044 def GetProject(self):
18045 r"""GetProject(BOARD self) -> PROJECT *"""
18046 return _pcbnew.BOARD_GetProject(self)
18047
18048 def SetProject(self, aProject, aReferenceOnly=False):
18049 r"""SetProject(BOARD self, PROJECT * aProject, bool aReferenceOnly=False)"""
18050 return _pcbnew.BOARD_SetProject(self, aProject, aReferenceOnly)
18051
18052 def ClearProject(self):
18053 r"""ClearProject(BOARD self)"""
18054 return _pcbnew.BOARD_ClearProject(self)
18055
18056 def ResolveDRCExclusions(self, aCreateMarkers):
18057 r"""ResolveDRCExclusions(BOARD self, bool aCreateMarkers) -> MARKERS"""
18058 return _pcbnew.BOARD_ResolveDRCExclusions(self, aCreateMarkers)
18059
18061 r"""RecordDRCExclusions(BOARD self)"""
18062 return _pcbnew.BOARD_RecordDRCExclusions(self)
18063
18065 r"""UpdateRatsnestExclusions(BOARD self)"""
18066 return _pcbnew.BOARD_UpdateRatsnestExclusions(self)
18067
18069 r"""ResetNetHighLight(BOARD self)"""
18070 return _pcbnew.BOARD_ResetNetHighLight(self)
18071
18073 r"""GetHighLightNetCodes(BOARD self) -> std::set< int,std::less< int >,std::allocator< int > > const &"""
18074 return _pcbnew.BOARD_GetHighLightNetCodes(self)
18075
18076 def SetHighLightNet(self, aNetCode, aMulti=False):
18077 r"""SetHighLightNet(BOARD self, int aNetCode, bool aMulti=False)"""
18078 return _pcbnew.BOARD_SetHighLightNet(self, aNetCode, aMulti)
18079
18081 r"""IsHighLightNetON(BOARD self) -> bool"""
18082 return _pcbnew.BOARD_IsHighLightNetON(self)
18083
18084 def HighLightON(self, aValue=True):
18085 r"""HighLightON(BOARD self, bool aValue=True)"""
18086 return _pcbnew.BOARD_HighLightON(self, aValue)
18087
18088 def HighLightOFF(self):
18089 r"""HighLightOFF(BOARD self)"""
18090 return _pcbnew.BOARD_HighLightOFF(self)
18091
18093 r"""GetCopperLayerCount(BOARD self) -> int"""
18094 return _pcbnew.BOARD_GetCopperLayerCount(self)
18095
18096 def SetCopperLayerCount(self, aCount):
18097 r"""SetCopperLayerCount(BOARD self, int aCount)"""
18098 return _pcbnew.BOARD_SetCopperLayerCount(self, aCount)
18099
18100 def LayerDepth(self, aStartLayer, aEndLayer):
18101 r"""LayerDepth(BOARD self, PCB_LAYER_ID aStartLayer, PCB_LAYER_ID aEndLayer) -> int"""
18102 return _pcbnew.BOARD_LayerDepth(self, aStartLayer, aEndLayer)
18103
18105 r"""GetEnabledLayers(BOARD self) -> LSET"""
18106 return _pcbnew.BOARD_GetEnabledLayers(self)
18107
18108 def SetEnabledLayers(self, aLayerMask):
18109 r"""SetEnabledLayers(BOARD self, LSET aLayerMask)"""
18110 return _pcbnew.BOARD_SetEnabledLayers(self, aLayerMask)
18111
18112 def IsLayerEnabled(self, aLayer):
18113 r"""IsLayerEnabled(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
18114 return _pcbnew.BOARD_IsLayerEnabled(self, aLayer)
18115
18116 def IsLayerVisible(self, aLayer):
18117 r"""IsLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
18118 return _pcbnew.BOARD_IsLayerVisible(self, aLayer)
18119
18121 r"""GetVisibleLayers(BOARD self) -> LSET"""
18122 return _pcbnew.BOARD_GetVisibleLayers(self)
18123
18124 def SetVisibleLayers(self, aLayerMask):
18125 r"""SetVisibleLayers(BOARD self, LSET aLayerMask)"""
18126 return _pcbnew.BOARD_SetVisibleLayers(self, aLayerMask)
18127
18129 r"""GetVisibleElements(BOARD self) -> GAL_SET"""
18130 return _pcbnew.BOARD_GetVisibleElements(self)
18131
18132 def SetVisibleElements(self, aMask):
18133 r"""SetVisibleElements(BOARD self, GAL_SET aMask)"""
18134 return _pcbnew.BOARD_SetVisibleElements(self, aMask)
18135
18137 r"""SetVisibleAlls(BOARD self)"""
18138 return _pcbnew.BOARD_SetVisibleAlls(self)
18139
18140 def IsElementVisible(self, aLayer):
18141 r"""IsElementVisible(BOARD self, GAL_LAYER_ID aLayer) -> bool"""
18142 return _pcbnew.BOARD_IsElementVisible(self, aLayer)
18143
18144 def SetElementVisibility(self, aLayer, aNewState):
18145 r"""SetElementVisibility(BOARD self, GAL_LAYER_ID aLayer, bool aNewState)"""
18146 return _pcbnew.BOARD_SetElementVisibility(self, aLayer, aNewState)
18147
18148 def IsFootprintLayerVisible(self, aLayer):
18149 r"""IsFootprintLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
18150 return _pcbnew.BOARD_IsFootprintLayerVisible(self, aLayer)
18151
18153 r"""GetDesignSettings(BOARD self) -> BOARD_DESIGN_SETTINGS"""
18154 return _pcbnew.BOARD_GetDesignSettings(self)
18155
18156 def GetTentVias(self):
18157 r"""GetTentVias(BOARD self) -> bool"""
18158 return _pcbnew.BOARD_GetTentVias(self)
18159
18160 def SetTentVias(self, aFlag):
18161 r"""SetTentVias(BOARD self, bool aFlag)"""
18162 return _pcbnew.BOARD_SetTentVias(self, aFlag)
18163
18165 r"""GetPageSettings(BOARD self) -> PAGE_INFO const &"""
18166 return _pcbnew.BOARD_GetPageSettings(self)
18167
18168 def SetPageSettings(self, aPageSettings):
18169 r"""SetPageSettings(BOARD self, PAGE_INFO const & aPageSettings)"""
18170 return _pcbnew.BOARD_SetPageSettings(self, aPageSettings)
18171
18173 r"""GetPlotOptions(BOARD self) -> PCB_PLOT_PARAMS"""
18174 return _pcbnew.BOARD_GetPlotOptions(self)
18175
18176 def SetPlotOptions(self, aOptions):
18177 r"""SetPlotOptions(BOARD self, PCB_PLOT_PARAMS aOptions)"""
18178 return _pcbnew.BOARD_SetPlotOptions(self, aOptions)
18179
18180 def GetTitleBlock(self, *args):
18181 r"""
18182 GetTitleBlock(BOARD self) -> TITLE_BLOCK
18183 GetTitleBlock(BOARD self) -> TITLE_BLOCK
18184 """
18185 return _pcbnew.BOARD_GetTitleBlock(self, *args)
18186
18187 def SetTitleBlock(self, aTitleBlock):
18188 r"""SetTitleBlock(BOARD self, TITLE_BLOCK aTitleBlock)"""
18189 return _pcbnew.BOARD_SetTitleBlock(self, aTitleBlock)
18190
18191 def GetUserUnits(self):
18192 r"""GetUserUnits(BOARD self) -> EDA_UNITS"""
18193 return _pcbnew.BOARD_GetUserUnits(self)
18194
18195 def SetUserUnits(self, aUnits):
18196 r"""SetUserUnits(BOARD self, EDA_UNITS aUnits)"""
18197 return _pcbnew.BOARD_SetUserUnits(self, aUnits)
18198
18199 def UpdateUserUnits(self, aItem, aView):
18200 r"""UpdateUserUnits(BOARD self, BOARD_ITEM aItem, KIGFX::VIEW * aView)"""
18201 return _pcbnew.BOARD_UpdateUserUnits(self, aItem, aView)
18202
18203 def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False, aIncludeNPTHAsOutlines=False):
18204 r"""GetBoardPolygonOutlines(BOARD self, SHAPE_POLY_SET aOutlines, OUTLINE_ERROR_HANDLER * aErrorHandler=None, bool aAllowUseArcsInPolygons=False, bool aIncludeNPTHAsOutlines=False) -> bool"""
18205 return _pcbnew.BOARD_GetBoardPolygonOutlines(self, aOutlines, aErrorHandler, aAllowUseArcsInPolygons, aIncludeNPTHAsOutlines)
18206
18208 r"""GetOutlinesChainingEpsilon(BOARD self) -> int"""
18209 return _pcbnew.BOARD_GetOutlinesChainingEpsilon(self)
18210
18212 r"""SetOutlinesChainingEpsilon(BOARD self, int aValue)"""
18213 return _pcbnew.BOARD_SetOutlinesChainingEpsilon(self, aValue)
18214
18215 def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines):
18216 r"""ConvertBrdLayerToPolygonalContours(BOARD self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aOutlines)"""
18217 return _pcbnew.BOARD_ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
18218
18219 def GetLayerID(self, aLayerName):
18220 r"""GetLayerID(BOARD self, wxString aLayerName) -> PCB_LAYER_ID"""
18221 return _pcbnew.BOARD_GetLayerID(self, aLayerName)
18222
18223 def GetLayerName(self, aLayer):
18224 r"""GetLayerName(BOARD self, PCB_LAYER_ID aLayer) -> wxString"""
18225 return _pcbnew.BOARD_GetLayerName(self, aLayer)
18226
18227 def SetLayerName(self, aLayer, aLayerName):
18228 r"""SetLayerName(BOARD self, PCB_LAYER_ID aLayer, wxString aLayerName) -> bool"""
18229 return _pcbnew.BOARD_SetLayerName(self, aLayer, aLayerName)
18230
18231 @staticmethod
18233 r"""GetStandardLayerName(PCB_LAYER_ID aLayerId) -> wxString"""
18234 return _pcbnew.BOARD_GetStandardLayerName(aLayerId)
18235
18236 def SetLayerDescr(self, aIndex, aLayer):
18237 r"""SetLayerDescr(BOARD self, PCB_LAYER_ID aIndex, LAYER aLayer) -> bool"""
18238 return _pcbnew.BOARD_SetLayerDescr(self, aIndex, aLayer)
18239
18240 def GetLayerType(self, aLayer):
18241 r"""GetLayerType(BOARD self, PCB_LAYER_ID aLayer) -> LAYER_T"""
18242 return _pcbnew.BOARD_GetLayerType(self, aLayer)
18243
18244 def SetLayerType(self, aLayer, aLayerType):
18245 r"""SetLayerType(BOARD self, PCB_LAYER_ID aLayer, LAYER_T aLayerType) -> bool"""
18246 return _pcbnew.BOARD_SetLayerType(self, aLayer, aLayerType)
18247
18248 def GetNodesCount(self, aNet=-1):
18249 r"""GetNodesCount(BOARD self, int aNet=-1) -> unsigned int"""
18250 return _pcbnew.BOARD_GetNodesCount(self, aNet)
18251
18252 def GetPads(self):
18253 r"""GetPads(BOARD self) -> PADS_VEC"""
18254 return _pcbnew.BOARD_GetPads(self)
18255
18257 r"""BuildListOfNets(BOARD self)"""
18258 return _pcbnew.BOARD_BuildListOfNets(self)
18259
18260 def FindNet(self, *args):
18261 r"""
18262 FindNet(BOARD self, int aNetcode) -> NETINFO_ITEM
18263 FindNet(BOARD self, wxString aNetname) -> NETINFO_ITEM
18264 """
18265 return _pcbnew.BOARD_FindNet(self, *args)
18266
18267 def MatchDpSuffix(self, aNetName, aComplementNet):
18268 r"""MatchDpSuffix(BOARD self, wxString aNetName, wxString aComplementNet) -> int"""
18269 return _pcbnew.BOARD_MatchDpSuffix(self, aNetName, aComplementNet)
18270
18271 def DpCoupledNet(self, aNet):
18272 r"""DpCoupledNet(BOARD self, NETINFO_ITEM aNet) -> NETINFO_ITEM"""
18273 return _pcbnew.BOARD_DpCoupledNet(self, aNet)
18274
18275 def GetNetInfo(self):
18276 r"""GetNetInfo(BOARD self) -> NETINFO_LIST"""
18277 return _pcbnew.BOARD_GetNetInfo(self)
18278
18279 def RemoveUnusedNets(self, aCommit):
18280 r"""RemoveUnusedNets(BOARD self, BOARD_COMMIT * aCommit)"""
18281 return _pcbnew.BOARD_RemoveUnusedNets(self, aCommit)
18282
18283 def GetNetCount(self):
18284 r"""GetNetCount(BOARD self) -> unsigned int"""
18285 return _pcbnew.BOARD_GetNetCount(self)
18286
18287 def ComputeBoundingBox(self, aBoardEdgesOnly=False):
18288 r"""ComputeBoundingBox(BOARD self, bool aBoardEdgesOnly=False) -> BOX2I"""
18289 return _pcbnew.BOARD_ComputeBoundingBox(self, aBoardEdgesOnly)
18290
18292 r"""GetBoardEdgesBoundingBox(BOARD self) -> BOX2I"""
18293 return _pcbnew.BOARD_GetBoardEdgesBoundingBox(self)
18294
18295 def FindFootprintByReference(self, aReference):
18296 r"""FindFootprintByReference(BOARD self, wxString aReference) -> FOOTPRINT"""
18297 return _pcbnew.BOARD_FindFootprintByReference(self, aReference)
18298
18299 def FindFootprintByPath(self, aPath):
18300 r"""FindFootprintByPath(BOARD self, KIID_PATH aPath) -> FOOTPRINT"""
18301 return _pcbnew.BOARD_FindFootprintByPath(self, aPath)
18302
18304 r"""GetNetClassAssignmentCandidates(BOARD self) -> STRINGSET"""
18305 return _pcbnew.BOARD_GetNetClassAssignmentCandidates(self)
18306
18307 def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes):
18308 r"""SynchronizeNetsAndNetClasses(BOARD self, bool aResetTrackAndViaSizes)"""
18309 return _pcbnew.BOARD_SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
18310
18312 r"""SynchronizeProperties(BOARD self)"""
18313 return _pcbnew.BOARD_SynchronizeProperties(self)
18314
18316 r"""SetAreasNetCodesFromNetNames(BOARD self) -> int"""
18317 return _pcbnew.BOARD_SetAreasNetCodesFromNetNames(self)
18318
18319 def GetArea(self, index):
18320 r"""GetArea(BOARD self, int index) -> ZONE"""
18321 return _pcbnew.BOARD_GetArea(self, index)
18322
18323 def GetZoneList(self, aIncludeZonesInFootprints=False):
18324 r"""GetZoneList(BOARD self, bool aIncludeZonesInFootprints=False) -> std::list< ZONE *,std::allocator< ZONE * > >"""
18325 return _pcbnew.BOARD_GetZoneList(self, aIncludeZonesInFootprints)
18326
18327 def GetAreaCount(self):
18328 r"""GetAreaCount(BOARD self) -> int"""
18329 return _pcbnew.BOARD_GetAreaCount(self)
18330
18331 def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch):
18332 r"""AddArea(BOARD self, PICKED_ITEMS_LIST * aNewZonesList, int aNetcode, PCB_LAYER_ID aLayer, VECTOR2I aStartPointPosition, ZONE_BORDER_DISPLAY_STYLE aHatch) -> ZONE"""
18333 return _pcbnew.BOARD_AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
18334
18335 def TestZoneIntersection(self, aZone1, aZone2):
18336 r"""TestZoneIntersection(BOARD self, ZONE aZone1, ZONE aZone2) -> bool"""
18337 return _pcbnew.BOARD_TestZoneIntersection(self, aZone1, aZone2)
18338
18339 def GetPadFast(self, aPosition, aLayerMask):
18340 r"""GetPadFast(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD"""
18341 return _pcbnew.BOARD_GetPadFast(self, aPosition, aLayerMask)
18342
18343 def GetPad(self, *args):
18344 r"""
18345 GetPad(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD
18346 GetPad(BOARD self, VECTOR2I aPosition) -> PAD
18347 GetPad(BOARD self, PCB_TRACK aTrace, ENDPOINT_T aEndPoint) -> PAD
18348 GetPad(BOARD self, PADS_VEC aPadList, VECTOR2I aPosition, LSET aLayerMask) -> PAD
18349 """
18350 return _pcbnew.BOARD_GetPad(self, *args)
18351
18352 def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1):
18353 r"""GetSortedPadListByXthenYCoord(BOARD self, PADS_VEC aVector, int aNetCode=-1)"""
18354 return _pcbnew.BOARD_GetSortedPadListByXthenYCoord(self, aVector, aNetCode)
18355
18356 def GetTrackLength(self, aTrack):
18357 r"""GetTrackLength(BOARD self, PCB_TRACK aTrack) -> std::tuple< int,double,double >"""
18358 return _pcbnew.BOARD_GetTrackLength(self, aTrack)
18359
18360 def TracksInNet(self, aNetCode):
18361 r"""TracksInNet(BOARD self, int aNetCode) -> TRACKS"""
18362 return _pcbnew.BOARD_TracksInNet(self, aNetCode)
18363
18364 def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False):
18365 r"""GetFootprint(BOARD self, VECTOR2I aPosition, PCB_LAYER_ID aActiveLayer, bool aVisibleOnly, bool aIgnoreLocked=False) -> FOOTPRINT"""
18366 return _pcbnew.BOARD_GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked)
18367
18369 r"""GetMaxClearanceValue(BOARD self) -> int"""
18370 return _pcbnew.BOARD_GetMaxClearanceValue(self)
18371
18372 def MapNets(self, aDestBoard):
18373 r"""MapNets(BOARD self, BOARD aDestBoard)"""
18374 return _pcbnew.BOARD_MapNets(self, aDestBoard)
18375
18377 r"""SanitizeNetcodes(BOARD self)"""
18378 return _pcbnew.BOARD_SanitizeNetcodes(self)
18379
18380 def AddListener(self, aListener):
18381 r"""AddListener(BOARD self, BOARD_LISTENER aListener)"""
18382 return _pcbnew.BOARD_AddListener(self, aListener)
18383
18384 def RemoveListener(self, aListener):
18385 r"""RemoveListener(BOARD self, BOARD_LISTENER aListener)"""
18386 return _pcbnew.BOARD_RemoveListener(self, aListener)
18387
18389 r"""RemoveAllListeners(BOARD self)"""
18390 return _pcbnew.BOARD_RemoveAllListeners(self)
18391
18392 def OnItemChanged(self, aItem):
18393 r"""OnItemChanged(BOARD self, BOARD_ITEM aItem)"""
18394 return _pcbnew.BOARD_OnItemChanged(self, aItem)
18395
18396 def OnItemsChanged(self, aItems):
18397 r"""OnItemsChanged(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aItems)"""
18398 return _pcbnew.BOARD_OnItemsChanged(self, aItems)
18399
18401 r"""OnRatsnestChanged(BOARD self)"""
18402 return _pcbnew.BOARD_OnRatsnestChanged(self)
18403
18404 def GroupsSanityCheck(self, repair=False):
18405 r"""GroupsSanityCheck(BOARD self, bool repair=False) -> wxString"""
18406 return _pcbnew.BOARD_GroupsSanityCheck(self, repair)
18407
18408 def GroupsSanityCheckInternal(self, repair):
18409 r"""GroupsSanityCheckInternal(BOARD self, bool repair) -> wxString"""
18410 return _pcbnew.BOARD_GroupsSanityCheckInternal(self, repair)
18411
18412 def GroupLegalOps(self, selection):
18413 r"""GroupLegalOps(BOARD self, PCB_SELECTION const & selection) -> BOARD::GroupLegalOpsField"""
18414 return _pcbnew.BOARD_GroupLegalOps(self, selection)
18415
18417 r"""LegacyTeardrops(BOARD self) -> bool"""
18418 return _pcbnew.BOARD_LegacyTeardrops(self)
18419
18420 def SetLegacyTeardrops(self, aFlag):
18421 r"""SetLegacyTeardrops(BOARD self, bool aFlag)"""
18422 return _pcbnew.BOARD_SetLegacyTeardrops(self, aFlag)
18423 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)>""")
18424 m_maxClearanceValue = property(_pcbnew.BOARD_m_maxClearanceValue_get, _pcbnew.BOARD_m_maxClearanceValue_set, doc=r"""m_maxClearanceValue : std::optional<(int)>""")
18425 m_SolderMaskBridges = property(_pcbnew.BOARD_m_SolderMaskBridges_get, _pcbnew.BOARD_m_SolderMaskBridges_set, doc=r"""m_SolderMaskBridges : p.ZONE""")
18426 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)>)>)>)>)>)>""")
18427
18428 def __init__(self, *args):
18429 this = CreateEmptyBoard()
18430
18431 try:
18432 self.this.append(this)
18433 except:
18434 self.this = this
18435
18436 # Convert these to lists to keep users from using them to delete
18437 # items in the iterable while looping over it
18438 def GetFootprints(self): return list(self.Footprints())
18439 def GetDrawings(self): return list(self.Drawings())
18440 def GetTracks(self): return list(self.Tracks())
18441
18442 def Save(self,filename):
18443 return SaveBoard(filename,self)
18444
18445 def GetNetClasses(self):
18446 return self.GetDesignSettings().m_NetSettings.m_NetClasses
18447
18450
18452 return self.GetDesignSettings().m_ViasDimensionsList
18453
18455 return self.GetDesignSettings().m_TrackWidthList
18456
18457 def GetNetsByName(self):
18458 """
18459 Return a dictionary like object with key:wxString netname and value:NETINFO_ITEM
18460 """
18461 return self.GetNetInfo().NetsByName()
18462
18464 """
18465 Return a dictionary like object with key:int netcode and value:NETINFO_ITEM
18466 """
18467 return self.GetNetInfo().NetsByNetcode()
18468
18469 def GetNetcodeFromNetname(self,netname):
18470 """
18471 Given a netname, return its netcode
18472 """
18473 net = self.GetNetsByName()[netname]
18474 return net.GetNetCode()
18475
18477 """
18478 Return a dictionary like object with net_class_name as key and NETCLASSPTR as value
18479 GetNetClasses(BOARD self) -> { wxString net_class_name : NETCLASSPTR }
18480 Include the "Default" netclass also.
18481 """
18482
18483 # Copy the NETCLASS_MAP so the one in the BOARD isn't modified
18484 # when we add the Default net class.
18485 netclassmap = {k:v for k,v in self.GetNetClasses().items()}
18486 netclassmap['Default'] = self.GetDesignSettings().m_NetSettings.m_DefaultNetClass
18487 return netclassmap
18488
18489
18490# Register BOARD in _pcbnew:
18491_pcbnew.BOARD_swigregister(BOARD)
18492
18493def BOARD_ClassOf(aItem):
18494 r"""BOARD_ClassOf(EDA_ITEM aItem) -> bool"""
18495 return _pcbnew.BOARD_ClassOf(aItem)
18496
18498 r"""BOARD_GetStandardLayerName(PCB_LAYER_ID aLayerId) -> wxString"""
18499 return _pcbnew.BOARD_GetStandardLayerName(aLayerId)
18500
18502 r"""Proxy of C++ std::map< wxString,wxString > class."""
18503
18504 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18505 __repr__ = _swig_repr
18506
18507 def iterator(self):
18508 r"""iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
18509 return _pcbnew.MAP_STRING_STRING_iterator(self)
18510 def __iter__(self):
18511 return self.iterator()
18512
18513 def __nonzero__(self):
18514 r"""__nonzero__(MAP_STRING_STRING self) -> bool"""
18515 return _pcbnew.MAP_STRING_STRING___nonzero__(self)
18516
18517 def __bool__(self):
18518 r"""__bool__(MAP_STRING_STRING self) -> bool"""
18519 return _pcbnew.MAP_STRING_STRING___bool__(self)
18520
18521 def __len__(self):
18522 r"""__len__(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
18523 return _pcbnew.MAP_STRING_STRING___len__(self)
18524 def __iter__(self):
18525 return self.key_iterator()
18526 def iterkeys(self):
18527 return self.key_iterator()
18528 def itervalues(self):
18529 return self.value_iterator()
18530 def iteritems(self):
18531 return self.iterator()
18532
18533 def __getitem__(self, key):
18534 r"""__getitem__(MAP_STRING_STRING self, wxString key) -> wxString"""
18535 return _pcbnew.MAP_STRING_STRING___getitem__(self, key)
18536
18537 def __delitem__(self, key):
18538 r"""__delitem__(MAP_STRING_STRING self, wxString key)"""
18539 return _pcbnew.MAP_STRING_STRING___delitem__(self, key)
18540
18541 def has_key(self, key):
18542 r"""has_key(MAP_STRING_STRING self, wxString key) -> bool"""
18543 return _pcbnew.MAP_STRING_STRING_has_key(self, key)
18544
18545 def keys(self):
18546 r"""keys(MAP_STRING_STRING self) -> PyObject *"""
18547 return _pcbnew.MAP_STRING_STRING_keys(self)
18548
18549 def values(self):
18550 r"""values(MAP_STRING_STRING self) -> PyObject *"""
18551 return _pcbnew.MAP_STRING_STRING_values(self)
18552
18553 def items(self):
18554 r"""items(MAP_STRING_STRING self) -> PyObject *"""
18555 return _pcbnew.MAP_STRING_STRING_items(self)
18556
18557 def __contains__(self, key):
18558 r"""__contains__(MAP_STRING_STRING self, wxString key) -> bool"""
18559 return _pcbnew.MAP_STRING_STRING___contains__(self, key)
18560
18561 def key_iterator(self):
18562 r"""key_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
18563 return _pcbnew.MAP_STRING_STRING_key_iterator(self)
18564
18566 r"""value_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
18567 return _pcbnew.MAP_STRING_STRING_value_iterator(self)
18568
18569 def __setitem__(self, *args):
18570 r"""
18571 __setitem__(MAP_STRING_STRING self, wxString key)
18572 __setitem__(MAP_STRING_STRING self, wxString key, wxString x)
18573 """
18574 return _pcbnew.MAP_STRING_STRING___setitem__(self, *args)
18575
18576 def asdict(self):
18577 r"""asdict(MAP_STRING_STRING self) -> PyObject *"""
18578 return _pcbnew.MAP_STRING_STRING_asdict(self)
18579
18580 def __init__(self, *args):
18581 r"""
18582 __init__(MAP_STRING_STRING self, std::less< wxString > const & other) -> MAP_STRING_STRING
18583 __init__(MAP_STRING_STRING self) -> MAP_STRING_STRING
18584 __init__(MAP_STRING_STRING self, MAP_STRING_STRING other) -> MAP_STRING_STRING
18585 """
18586 _pcbnew.MAP_STRING_STRING_swiginit(self, _pcbnew.new_MAP_STRING_STRING(*args))
18587
18588 def empty(self):
18589 r"""empty(MAP_STRING_STRING self) -> bool"""
18590 return _pcbnew.MAP_STRING_STRING_empty(self)
18591
18592 def size(self):
18593 r"""size(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
18594 return _pcbnew.MAP_STRING_STRING_size(self)
18595
18596 def swap(self, v):
18597 r"""swap(MAP_STRING_STRING self, MAP_STRING_STRING v)"""
18598 return _pcbnew.MAP_STRING_STRING_swap(self, v)
18599
18600 def begin(self):
18601 r"""begin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
18602 return _pcbnew.MAP_STRING_STRING_begin(self)
18603
18604 def end(self):
18605 r"""end(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
18606 return _pcbnew.MAP_STRING_STRING_end(self)
18607
18608 def rbegin(self):
18609 r"""rbegin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
18610 return _pcbnew.MAP_STRING_STRING_rbegin(self)
18611
18612 def rend(self):
18613 r"""rend(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
18614 return _pcbnew.MAP_STRING_STRING_rend(self)
18615
18616 def clear(self):
18617 r"""clear(MAP_STRING_STRING self)"""
18618 return _pcbnew.MAP_STRING_STRING_clear(self)
18619
18620 def get_allocator(self):
18621 r"""get_allocator(MAP_STRING_STRING self) -> std::map< wxString,wxString >::allocator_type"""
18622 return _pcbnew.MAP_STRING_STRING_get_allocator(self)
18623
18624 def count(self, x):
18625 r"""count(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type"""
18626 return _pcbnew.MAP_STRING_STRING_count(self, x)
18627
18628 def erase(self, *args):
18629 r"""
18630 erase(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type
18631 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator position)
18632 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator first, std::map< wxString,wxString >::iterator last)
18633 """
18634 return _pcbnew.MAP_STRING_STRING_erase(self, *args)
18635
18636 def find(self, x):
18637 r"""find(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
18638 return _pcbnew.MAP_STRING_STRING_find(self, x)
18639
18640 def lower_bound(self, x):
18641 r"""lower_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
18642 return _pcbnew.MAP_STRING_STRING_lower_bound(self, x)
18643
18644 def upper_bound(self, x):
18645 r"""upper_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
18646 return _pcbnew.MAP_STRING_STRING_upper_bound(self, x)
18647 __swig_destroy__ = _pcbnew.delete_MAP_STRING_STRING
18648
18649# Register MAP_STRING_STRING in _pcbnew:
18650_pcbnew.MAP_STRING_STRING_swigregister(MAP_STRING_STRING)
18651
18652DO_NOT_INCLUDE_NPTH = _pcbnew.DO_NOT_INCLUDE_NPTH
18653
18654INCLUDE_NPTH = _pcbnew.INCLUDE_NPTH
18655
18656FP_THROUGH_HOLE = _pcbnew.FP_THROUGH_HOLE
18657
18658FP_SMD = _pcbnew.FP_SMD
18659
18660FP_EXCLUDE_FROM_POS_FILES = _pcbnew.FP_EXCLUDE_FROM_POS_FILES
18661
18662FP_EXCLUDE_FROM_BOM = _pcbnew.FP_EXCLUDE_FROM_BOM
18663
18664FP_BOARD_ONLY = _pcbnew.FP_BOARD_ONLY
18665
18666FP_JUST_ADDED = _pcbnew.FP_JUST_ADDED
18667
18668FP_ALLOW_SOLDERMASK_BRIDGES = _pcbnew.FP_ALLOW_SOLDERMASK_BRIDGES
18669
18670FP_ALLOW_MISSING_COURTYARD = _pcbnew.FP_ALLOW_MISSING_COURTYARD
18671
18672FP_DNP = _pcbnew.FP_DNP
18673
18675 r"""Proxy of C++ FP_3DMODEL class."""
18676
18677 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18678 __repr__ = _swig_repr
18679
18680 def __init__(self):
18681 r"""__init__(FP_3DMODEL self) -> FP_3DMODEL"""
18682 _pcbnew.FP_3DMODEL_swiginit(self, _pcbnew.new_FP_3DMODEL())
18683 m_Scale = property(_pcbnew.FP_3DMODEL_m_Scale_get, _pcbnew.FP_3DMODEL_m_Scale_set, doc=r"""m_Scale : VECTOR3D""")
18684 m_Rotation = property(_pcbnew.FP_3DMODEL_m_Rotation_get, _pcbnew.FP_3DMODEL_m_Rotation_set, doc=r"""m_Rotation : VECTOR3D""")
18685 m_Offset = property(_pcbnew.FP_3DMODEL_m_Offset_get, _pcbnew.FP_3DMODEL_m_Offset_set, doc=r"""m_Offset : VECTOR3D""")
18686 m_Opacity = property(_pcbnew.FP_3DMODEL_m_Opacity_get, _pcbnew.FP_3DMODEL_m_Opacity_set, doc=r"""m_Opacity : double""")
18687 m_Filename = property(_pcbnew.FP_3DMODEL_m_Filename_get, _pcbnew.FP_3DMODEL_m_Filename_set, doc=r"""m_Filename : wxString""")
18688 m_Show = property(_pcbnew.FP_3DMODEL_m_Show_get, _pcbnew.FP_3DMODEL_m_Show_set, doc=r"""m_Show : bool""")
18689
18690 def __eq__(self, aOther):
18691 r"""__eq__(FP_3DMODEL self, FP_3DMODEL aOther) -> bool"""
18692 return _pcbnew.FP_3DMODEL___eq__(self, aOther)
18693 __swig_destroy__ = _pcbnew.delete_FP_3DMODEL
18694
18695# Register FP_3DMODEL in _pcbnew:
18696_pcbnew.FP_3DMODEL_swigregister(FP_3DMODEL)
18697
18699 r"""Proxy of C++ FOOTPRINT class."""
18700
18701 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18702 __repr__ = _swig_repr
18703
18704 def __init__(self, *args):
18705 r"""
18706 __init__(FOOTPRINT self, BOARD parent) -> FOOTPRINT
18707 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
18708 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
18709 """
18710 _pcbnew.FOOTPRINT_swiginit(self, _pcbnew.new_FOOTPRINT(*args))
18711 __swig_destroy__ = _pcbnew.delete_FOOTPRINT
18712
18713 @staticmethod
18714 def ClassOf(aItem):
18715 r"""ClassOf(EDA_ITEM aItem) -> bool"""
18716 return _pcbnew.FOOTPRINT_ClassOf(aItem)
18717
18719 r"""GetPrivateLayers(FOOTPRINT self) -> LSET"""
18720 return _pcbnew.FOOTPRINT_GetPrivateLayers(self)
18721
18722 def SetPrivateLayers(self, aLayers):
18723 r"""SetPrivateLayers(FOOTPRINT self, LSET aLayers)"""
18724 return _pcbnew.FOOTPRINT_SetPrivateLayers(self, aLayers)
18725
18726 def AddNative(self, *args):
18727 r"""AddNative(FOOTPRINT self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
18728 return _pcbnew.FOOTPRINT_AddNative(self, *args)
18729
18730 def RemoveNative(self, *args):
18731 r"""RemoveNative(FOOTPRINT self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
18732 return _pcbnew.FOOTPRINT_RemoveNative(self, *args)
18733
18734 def ClearAllNets(self):
18735 r"""ClearAllNets(FOOTPRINT self)"""
18736 return _pcbnew.FOOTPRINT_ClearAllNets(self)
18737
18738 def FixUuids(self):
18739 r"""FixUuids(FOOTPRINT self) -> bool"""
18740 return _pcbnew.FOOTPRINT_FixUuids(self)
18741
18743 r"""GetFpPadsLocalBbox(FOOTPRINT self) -> BOX2I"""
18744 return _pcbnew.FOOTPRINT_GetFpPadsLocalBbox(self)
18745
18747 r"""GetBoundingHull(FOOTPRINT self) -> SHAPE_POLY_SET"""
18748 return _pcbnew.FOOTPRINT_GetBoundingHull(self)
18749
18750 def GetBoundingBox(self, *args):
18751 r"""
18752 GetBoundingBox(FOOTPRINT self) -> BOX2I
18753 GetBoundingBox(FOOTPRINT self, bool aIncludeText, bool aIncludeInvisibleText) -> BOX2I
18754 """
18755 return _pcbnew.FOOTPRINT_GetBoundingBox(self, *args)
18756
18757 def GetLayerBoundingBox(self, aLayers):
18758 r"""GetLayerBoundingBox(FOOTPRINT self, LSET aLayers) -> BOX2I"""
18759 return _pcbnew.FOOTPRINT_GetLayerBoundingBox(self, aLayers)
18760
18761 def Fields(self, *args):
18762 r"""
18763 Fields(FOOTPRINT self) -> PCB_FIELDS
18764 Fields(FOOTPRINT self) -> PCB_FIELDS
18765 """
18766 return _pcbnew.FOOTPRINT_Fields(self, *args)
18767
18768 def Pads(self, *args):
18769 r"""
18770 Pads(FOOTPRINT self) -> PADS
18771 Pads(FOOTPRINT self) -> PADS
18772 """
18773 return _pcbnew.FOOTPRINT_Pads(self, *args)
18774
18775 def GraphicalItems(self, *args):
18776 r"""
18777 GraphicalItems(FOOTPRINT self) -> DRAWINGS
18778 GraphicalItems(FOOTPRINT self) -> DRAWINGS
18779 """
18780 return _pcbnew.FOOTPRINT_GraphicalItems(self, *args)
18781
18782 def Zones(self, *args):
18783 r"""
18784 Zones(FOOTPRINT self) -> ZONES
18785 Zones(FOOTPRINT self) -> ZONES
18786 """
18787 return _pcbnew.FOOTPRINT_Zones(self, *args)
18788
18789 def Groups(self, *args):
18790 r"""
18791 Groups(FOOTPRINT self) -> GROUPS
18792 Groups(FOOTPRINT self) -> GROUPS
18793 """
18794 return _pcbnew.FOOTPRINT_Groups(self, *args)
18795
18797 r"""HasThroughHolePads(FOOTPRINT self) -> bool"""
18798 return _pcbnew.FOOTPRINT_HasThroughHolePads(self)
18799
18800 def Models(self, *args):
18801 r"""
18802 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
18803 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
18804 """
18805 return _pcbnew.FOOTPRINT_Models(self, *args)
18806
18807 def SetOrientation(self, aNewAngle):
18808 r"""SetOrientation(FOOTPRINT self, EDA_ANGLE aNewAngle)"""
18809 return _pcbnew.FOOTPRINT_SetOrientation(self, aNewAngle)
18810
18812 r"""GetOrientation(FOOTPRINT self) -> EDA_ANGLE"""
18813 return _pcbnew.FOOTPRINT_GetOrientation(self)
18814
18815 def SetLayerAndFlip(self, aLayer):
18816 r"""SetLayerAndFlip(FOOTPRINT self, PCB_LAYER_ID aLayer)"""
18817 return _pcbnew.FOOTPRINT_SetLayerAndFlip(self, aLayer)
18818
18819 def SetOrientationDegrees(self, aOrientation):
18820 r"""SetOrientationDegrees(FOOTPRINT self, double aOrientation)"""
18821 return _pcbnew.FOOTPRINT_SetOrientationDegrees(self, aOrientation)
18822
18824 r"""GetOrientationDegrees(FOOTPRINT self) -> double"""
18825 return _pcbnew.FOOTPRINT_GetOrientationDegrees(self)
18826
18827 def GetFPID(self):
18828 r"""GetFPID(FOOTPRINT self) -> LIB_ID"""
18829 return _pcbnew.FOOTPRINT_GetFPID(self)
18830
18831 def SetFPID(self, aFPID):
18832 r"""SetFPID(FOOTPRINT self, LIB_ID aFPID)"""
18833 return _pcbnew.FOOTPRINT_SetFPID(self, aFPID)
18834
18836 r"""GetFPIDAsString(FOOTPRINT self) -> wxString"""
18837 return _pcbnew.FOOTPRINT_GetFPIDAsString(self)
18838
18839 def SetFPIDAsString(self, aFPID):
18840 r"""SetFPIDAsString(FOOTPRINT self, wxString aFPID)"""
18841 return _pcbnew.FOOTPRINT_SetFPIDAsString(self, aFPID)
18842
18844 r"""GetLibDescription(FOOTPRINT self) -> wxString"""
18845 return _pcbnew.FOOTPRINT_GetLibDescription(self)
18846
18847 def SetLibDescription(self, aDesc):
18848 r"""SetLibDescription(FOOTPRINT self, wxString aDesc)"""
18849 return _pcbnew.FOOTPRINT_SetLibDescription(self, aDesc)
18850
18851 def GetKeywords(self):
18852 r"""GetKeywords(FOOTPRINT self) -> wxString"""
18853 return _pcbnew.FOOTPRINT_GetKeywords(self)
18854
18855 def SetKeywords(self, aKeywords):
18856 r"""SetKeywords(FOOTPRINT self, wxString aKeywords)"""
18857 return _pcbnew.FOOTPRINT_SetKeywords(self, aKeywords)
18858
18859 def GetPath(self):
18860 r"""GetPath(FOOTPRINT self) -> KIID_PATH"""
18861 return _pcbnew.FOOTPRINT_GetPath(self)
18862
18863 def SetPath(self, aPath):
18864 r"""SetPath(FOOTPRINT self, KIID_PATH aPath)"""
18865 return _pcbnew.FOOTPRINT_SetPath(self, aPath)
18866
18867 def GetSheetname(self):
18868 r"""GetSheetname(FOOTPRINT self) -> wxString"""
18869 return _pcbnew.FOOTPRINT_GetSheetname(self)
18870
18871 def SetSheetname(self, aSheetname):
18872 r"""SetSheetname(FOOTPRINT self, wxString aSheetname)"""
18873 return _pcbnew.FOOTPRINT_SetSheetname(self, aSheetname)
18874
18875 def GetSheetfile(self):
18876 r"""GetSheetfile(FOOTPRINT self) -> wxString"""
18877 return _pcbnew.FOOTPRINT_GetSheetfile(self)
18878
18879 def SetSheetfile(self, aSheetfile):
18880 r"""SetSheetfile(FOOTPRINT self, wxString aSheetfile)"""
18881 return _pcbnew.FOOTPRINT_SetSheetfile(self, aSheetfile)
18882
18883 def GetFilters(self):
18884 r"""GetFilters(FOOTPRINT self) -> wxString"""
18885 return _pcbnew.FOOTPRINT_GetFilters(self)
18886
18887 def SetFilters(self, aFilters):
18888 r"""SetFilters(FOOTPRINT self, wxString aFilters)"""
18889 return _pcbnew.FOOTPRINT_SetFilters(self, aFilters)
18890
18892 r"""GetLocalSolderMaskMargin(FOOTPRINT self) -> int"""
18893 return _pcbnew.FOOTPRINT_GetLocalSolderMaskMargin(self)
18894
18895 def SetLocalSolderMaskMargin(self, aMargin):
18896 r"""SetLocalSolderMaskMargin(FOOTPRINT self, int aMargin)"""
18897 return _pcbnew.FOOTPRINT_SetLocalSolderMaskMargin(self, aMargin)
18898
18899 def SetLocalClearance(self, aClearance):
18900 r"""SetLocalClearance(FOOTPRINT self, int aClearance)"""
18901 return _pcbnew.FOOTPRINT_SetLocalClearance(self, aClearance)
18902
18903 def GetLocalClearance(self, *args):
18904 r"""
18905 GetLocalClearance(FOOTPRINT self) -> int
18906 GetLocalClearance(FOOTPRINT self, wxString aSource) -> int
18907 """
18908 return _pcbnew.FOOTPRINT_GetLocalClearance(self, *args)
18909
18911 r"""GetLocalSolderPasteMargin(FOOTPRINT self) -> int"""
18912 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMargin(self)
18913
18914 def SetLocalSolderPasteMargin(self, aMargin):
18915 r"""SetLocalSolderPasteMargin(FOOTPRINT self, int aMargin)"""
18916 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMargin(self, aMargin)
18917
18919 r"""GetLocalSolderPasteMarginRatio(FOOTPRINT self) -> double"""
18920 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMarginRatio(self)
18921
18923 r"""SetLocalSolderPasteMarginRatio(FOOTPRINT self, double aRatio)"""
18924 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMarginRatio(self, aRatio)
18925
18926 def SetZoneConnection(self, aType):
18927 r"""SetZoneConnection(FOOTPRINT self, ZONE_CONNECTION aType)"""
18928 return _pcbnew.FOOTPRINT_SetZoneConnection(self, aType)
18929
18931 r"""GetZoneConnection(FOOTPRINT self) -> ZONE_CONNECTION"""
18932 return _pcbnew.FOOTPRINT_GetZoneConnection(self)
18933
18934 def GetAttributes(self):
18935 r"""GetAttributes(FOOTPRINT self) -> int"""
18936 return _pcbnew.FOOTPRINT_GetAttributes(self)
18937
18938 def SetAttributes(self, aAttributes):
18939 r"""SetAttributes(FOOTPRINT self, int aAttributes)"""
18940 return _pcbnew.FOOTPRINT_SetAttributes(self, aAttributes)
18941
18942 def SetFlag(self, aFlag):
18943 r"""SetFlag(FOOTPRINT self, int aFlag)"""
18944 return _pcbnew.FOOTPRINT_SetFlag(self, aFlag)
18945
18946 def IncrementFlag(self):
18947 r"""IncrementFlag(FOOTPRINT self)"""
18948 return _pcbnew.FOOTPRINT_IncrementFlag(self)
18949
18950 def GetFlag(self):
18951 r"""GetFlag(FOOTPRINT self) -> int"""
18952 return _pcbnew.FOOTPRINT_GetFlag(self)
18953
18954 def IsNetTie(self):
18955 r"""IsNetTie(FOOTPRINT self) -> bool"""
18956 return _pcbnew.FOOTPRINT_IsNetTie(self)
18957
18959 r"""GetNetTiePadGroups(FOOTPRINT self) -> std::vector< wxString,std::allocator< wxString > > const &"""
18960 return _pcbnew.FOOTPRINT_GetNetTiePadGroups(self)
18961
18963 r"""ClearNetTiePadGroups(FOOTPRINT self)"""
18964 return _pcbnew.FOOTPRINT_ClearNetTiePadGroups(self)
18965
18966 def AddNetTiePadGroup(self, aGroup):
18967 r"""AddNetTiePadGroup(FOOTPRINT self, wxString aGroup)"""
18968 return _pcbnew.FOOTPRINT_AddNetTiePadGroup(self, aGroup)
18969
18971 r"""MapPadNumbersToNetTieGroups(FOOTPRINT self) -> std::map< wxString,int,std::less< wxString >,std::allocator< std::pair< wxString const,int > > >"""
18972 return _pcbnew.FOOTPRINT_MapPadNumbersToNetTieGroups(self)
18973
18974 def GetNetTiePads(self, aPad):
18975 r"""GetNetTiePads(FOOTPRINT self, PAD aPad) -> PADS_VEC"""
18976 return _pcbnew.FOOTPRINT_GetNetTiePads(self, aPad)
18977
18979 r"""GetLikelyAttribute(FOOTPRINT self) -> int"""
18980 return _pcbnew.FOOTPRINT_GetLikelyAttribute(self)
18981
18982 def MoveAnchorPosition(self, aMoveVector):
18983 r"""MoveAnchorPosition(FOOTPRINT self, VECTOR2I aMoveVector)"""
18984 return _pcbnew.FOOTPRINT_MoveAnchorPosition(self, aMoveVector)
18985
18986 def IsFlipped(self):
18987 r"""IsFlipped(FOOTPRINT self) -> bool"""
18988 return _pcbnew.FOOTPRINT_IsFlipped(self)
18989
18990 def GetSide(self):
18991 r"""GetSide(FOOTPRINT self) -> PCB_LAYER_ID"""
18992 return _pcbnew.FOOTPRINT_GetSide(self)
18993
18994 def IsConflicting(self):
18995 r"""IsConflicting(FOOTPRINT self) -> bool"""
18996 return _pcbnew.FOOTPRINT_IsConflicting(self)
18997
18998 def IsPlaced(self):
18999 r"""IsPlaced(FOOTPRINT self) -> bool"""
19000 return _pcbnew.FOOTPRINT_IsPlaced(self)
19001
19002 def SetIsPlaced(self, isPlaced):
19003 r"""SetIsPlaced(FOOTPRINT self, bool isPlaced)"""
19004 return _pcbnew.FOOTPRINT_SetIsPlaced(self, isPlaced)
19005
19006 def NeedsPlaced(self):
19007 r"""NeedsPlaced(FOOTPRINT self) -> bool"""
19008 return _pcbnew.FOOTPRINT_NeedsPlaced(self)
19009
19010 def SetNeedsPlaced(self, needsPlaced):
19011 r"""SetNeedsPlaced(FOOTPRINT self, bool needsPlaced)"""
19012 return _pcbnew.FOOTPRINT_SetNeedsPlaced(self, needsPlaced)
19013
19015 r"""LegacyPadsLocked(FOOTPRINT self) -> bool"""
19016 return _pcbnew.FOOTPRINT_LegacyPadsLocked(self)
19017
19018 def CheckFootprintAttributes(self, aErrorHandler):
19019 r"""CheckFootprintAttributes(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
19020 return _pcbnew.FOOTPRINT_CheckFootprintAttributes(self, aErrorHandler)
19021
19022 def CheckPads(self, aUnitsProvider, aErrorHandler):
19023 r"""CheckPads(FOOTPRINT self, UNITS_PROVIDER aUnitsProvider, std::function< void (PAD const *,int,wxString const &) > const & aErrorHandler)"""
19024 return _pcbnew.FOOTPRINT_CheckPads(self, aUnitsProvider, aErrorHandler)
19025
19026 def CheckShortingPads(self, aErrorHandler):
19027 r"""CheckShortingPads(FOOTPRINT self, std::function< void (PAD const *,PAD const *,VECTOR2I const &) > const & aErrorHandler)"""
19028 return _pcbnew.FOOTPRINT_CheckShortingPads(self, aErrorHandler)
19029
19030 def CheckNetTies(self, aErrorHandler):
19031 r"""CheckNetTies(FOOTPRINT self, std::function< void (BOARD_ITEM const *,BOARD_ITEM const *,BOARD_ITEM const *,VECTOR2I const &) > const & aErrorHandler)"""
19032 return _pcbnew.FOOTPRINT_CheckNetTies(self, aErrorHandler)
19033
19034 def CheckNetTiePadGroups(self, aErrorHandler):
19035 r"""CheckNetTiePadGroups(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
19036 return _pcbnew.FOOTPRINT_CheckNetTiePadGroups(self, aErrorHandler)
19037
19038 def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False, aSkipPlatedPads=False, aSkipNonPlatedPads=False):
19039 r"""TransformPadsToPolySet(FOOTPRINT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aSkipNPTHPadsWihNoCopper=False, bool aSkipPlatedPads=False, bool aSkipNonPlatedPads=False)"""
19040 return _pcbnew.FOOTPRINT_TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper, aSkipPlatedPads, aSkipNonPlatedPads)
19041
19042 def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False):
19043 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)"""
19044 return _pcbnew.FOOTPRINT_TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText, aIncludeShapes, aIncludePrivateItems)
19045
19046 def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc):
19047 r"""TransformFPTextToPolySet(FOOTPRINT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc)"""
19048 return _pcbnew.FOOTPRINT_TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
19049
19050 def GetContextualTextVars(self, aVars):
19051 r"""GetContextualTextVars(FOOTPRINT self, wxArrayString * aVars)"""
19052 return _pcbnew.FOOTPRINT_GetContextualTextVars(self, aVars)
19053
19054 def ResolveTextVar(self, token, aDepth=0):
19055 r"""ResolveTextVar(FOOTPRINT self, wxString token, int aDepth=0) -> bool"""
19056 return _pcbnew.FOOTPRINT_ResolveTextVar(self, token, aDepth)
19057
19058 def HitTestAccurate(self, aPosition, aAccuracy=0):
19059 r"""HitTestAccurate(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool"""
19060 return _pcbnew.FOOTPRINT_HitTestAccurate(self, aPosition, aAccuracy)
19061
19062 def HitTest(self, *args):
19063 r"""
19064 HitTest(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool
19065 HitTest(FOOTPRINT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
19066 """
19067 return _pcbnew.FOOTPRINT_HitTest(self, *args)
19068
19069 def HitTestOnLayer(self, *args):
19070 r"""
19071 HitTestOnLayer(FOOTPRINT self, VECTOR2I aPosition, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
19072 HitTestOnLayer(FOOTPRINT self, BOX2I aRect, bool aContained, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
19073 """
19074 return _pcbnew.FOOTPRINT_HitTestOnLayer(self, *args)
19075
19076 def GetReference(self):
19077 r"""GetReference(FOOTPRINT self) -> wxString"""
19078 return _pcbnew.FOOTPRINT_GetReference(self)
19079
19080 def SetReference(self, aReference):
19081 r"""SetReference(FOOTPRINT self, wxString aReference)"""
19082 return _pcbnew.FOOTPRINT_SetReference(self, aReference)
19083
19085 r"""GetReferenceAsString(FOOTPRINT self) -> wxString"""
19086 return _pcbnew.FOOTPRINT_GetReferenceAsString(self)
19087
19088 def IncrementReference(self, aDelta):
19089 r"""IncrementReference(FOOTPRINT self, int aDelta)"""
19090 return _pcbnew.FOOTPRINT_IncrementReference(self, aDelta)
19091
19092 def GetValue(self):
19093 r"""GetValue(FOOTPRINT self) -> wxString"""
19094 return _pcbnew.FOOTPRINT_GetValue(self)
19095
19096 def SetValue(self, aValue):
19097 r"""SetValue(FOOTPRINT self, wxString aValue)"""
19098 return _pcbnew.FOOTPRINT_SetValue(self, aValue)
19099
19101 r"""GetValueAsString(FOOTPRINT self) -> wxString"""
19102 return _pcbnew.FOOTPRINT_GetValueAsString(self)
19103
19104 def Value(self, *args):
19105 r"""
19106 Value(FOOTPRINT self) -> PCB_FIELD
19107 Value(FOOTPRINT self) -> PCB_FIELD
19108 """
19109 return _pcbnew.FOOTPRINT_Value(self, *args)
19110
19111 def Reference(self, *args):
19112 r"""
19113 Reference(FOOTPRINT self) -> PCB_FIELD
19114 Reference(FOOTPRINT self) -> PCB_FIELD
19115 """
19116 return _pcbnew.FOOTPRINT_Reference(self, *args)
19117
19118 def Footprint(self, *args):
19119 r"""
19120 Footprint(FOOTPRINT self) -> PCB_FIELD
19121 Footprint(FOOTPRINT self) -> PCB_FIELD
19122 """
19123 return _pcbnew.FOOTPRINT_Footprint(self, *args)
19124
19125 def GetField(self, *args):
19126 r"""
19127 GetField(FOOTPRINT self, MANDATORY_FIELD_T aFieldType) -> PCB_FIELD
19128 GetField(FOOTPRINT self, MANDATORY_FIELD_T aFieldNdx) -> PCB_FIELD
19129 """
19130 return _pcbnew.FOOTPRINT_GetField(self, *args)
19131
19132 def GetFieldById(self, aFieldId):
19133 r"""GetFieldById(FOOTPRINT self, int aFieldId) -> PCB_FIELD"""
19134 return _pcbnew.FOOTPRINT_GetFieldById(self, aFieldId)
19135
19136 def GetFieldByName(self, aFieldName):
19137 r"""GetFieldByName(FOOTPRINT self, wxString aFieldName) -> PCB_FIELD"""
19138 return _pcbnew.FOOTPRINT_GetFieldByName(self, aFieldName)
19139
19140 def HasFieldByName(self, aFieldName):
19141 r"""HasFieldByName(FOOTPRINT self, wxString aFieldName) -> bool"""
19142 return _pcbnew.FOOTPRINT_HasFieldByName(self, aFieldName)
19143
19144 def GetFieldText(self, aFieldName):
19145 r"""GetFieldText(FOOTPRINT self, wxString aFieldName) -> wxString"""
19146 return _pcbnew.FOOTPRINT_GetFieldText(self, aFieldName)
19147
19148 def GetFields(self, *args):
19149 r"""
19150 GetFields(FOOTPRINT self, std::vector< PCB_FIELD *,std::allocator< PCB_FIELD * > > & aVector, bool aVisibleOnly)
19151 GetFields(FOOTPRINT self) -> PCB_FIELDS
19152 GetFields(FOOTPRINT self) -> PCB_FIELDS
19153 """
19154 return _pcbnew.FOOTPRINT_GetFields(self, *args)
19155
19156 def AddField(self, aField):
19157 r"""AddField(FOOTPRINT self, PCB_FIELD aField) -> PCB_FIELD"""
19158 return _pcbnew.FOOTPRINT_AddField(self, aField)
19159
19160 def RemoveField(self, aFieldName):
19161 r"""RemoveField(FOOTPRINT self, wxString aFieldName)"""
19162 return _pcbnew.FOOTPRINT_RemoveField(self, aFieldName)
19163
19164 def GetFieldCount(self):
19165 r"""GetFieldCount(FOOTPRINT self) -> int"""
19166 return _pcbnew.FOOTPRINT_GetFieldCount(self)
19167
19168 def ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes):
19169 r"""ApplyDefaultSettings(FOOTPRINT self, BOARD board, bool aStyleFields, bool aStyleText, bool aStyleShapes)"""
19170 return _pcbnew.FOOTPRINT_ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes)
19171
19172 def IsBoardOnly(self):
19173 r"""IsBoardOnly(FOOTPRINT self) -> bool"""
19174 return _pcbnew.FOOTPRINT_IsBoardOnly(self)
19175
19176 def SetBoardOnly(self, aIsBoardOnly=True):
19177 r"""SetBoardOnly(FOOTPRINT self, bool aIsBoardOnly=True)"""
19178 return _pcbnew.FOOTPRINT_SetBoardOnly(self, aIsBoardOnly)
19179
19181 r"""IsExcludedFromPosFiles(FOOTPRINT self) -> bool"""
19182 return _pcbnew.FOOTPRINT_IsExcludedFromPosFiles(self)
19183
19184 def SetExcludedFromPosFiles(self, aExclude=True):
19185 r"""SetExcludedFromPosFiles(FOOTPRINT self, bool aExclude=True)"""
19186 return _pcbnew.FOOTPRINT_SetExcludedFromPosFiles(self, aExclude)
19187
19189 r"""IsExcludedFromBOM(FOOTPRINT self) -> bool"""
19190 return _pcbnew.FOOTPRINT_IsExcludedFromBOM(self)
19191
19192 def SetExcludedFromBOM(self, aExclude=True):
19193 r"""SetExcludedFromBOM(FOOTPRINT self, bool aExclude=True)"""
19194 return _pcbnew.FOOTPRINT_SetExcludedFromBOM(self, aExclude)
19195
19197 r"""AllowMissingCourtyard(FOOTPRINT self) -> bool"""
19198 return _pcbnew.FOOTPRINT_AllowMissingCourtyard(self)
19199
19200 def SetAllowMissingCourtyard(self, aAllow=True):
19201 r"""SetAllowMissingCourtyard(FOOTPRINT self, bool aAllow=True)"""
19202 return _pcbnew.FOOTPRINT_SetAllowMissingCourtyard(self, aAllow)
19203
19204 def IsDNP(self):
19205 r"""IsDNP(FOOTPRINT self) -> bool"""
19206 return _pcbnew.FOOTPRINT_IsDNP(self)
19207
19208 def SetDNP(self, aDNP=True):
19209 r"""SetDNP(FOOTPRINT self, bool aDNP=True)"""
19210 return _pcbnew.FOOTPRINT_SetDNP(self, aDNP)
19211
19212 def SetFileFormatVersionAtLoad(self, aVersion):
19213 r"""SetFileFormatVersionAtLoad(FOOTPRINT self, int aVersion)"""
19214 return _pcbnew.FOOTPRINT_SetFileFormatVersionAtLoad(self, aVersion)
19215
19217 r"""GetFileFormatVersionAtLoad(FOOTPRINT self) -> int"""
19218 return _pcbnew.FOOTPRINT_GetFileFormatVersionAtLoad(self)
19219
19220 def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None):
19221 r"""FindPadByNumber(FOOTPRINT self, wxString aPadNumber, PAD aSearchAfterMe=None) -> PAD"""
19222 return _pcbnew.FOOTPRINT_FindPadByNumber(self, aPadNumber, aSearchAfterMe)
19223
19224 def GetPad(self, *args):
19225 r"""GetPad(FOOTPRINT self, VECTOR2I aPosition, LSET aLayerMask=LSET::AllLayersMask()) -> PAD"""
19226 return _pcbnew.FOOTPRINT_GetPad(self, *args)
19227
19228 def GetPads(self, aPadNumber, aIgnore=None):
19229 r"""GetPads(FOOTPRINT self, wxString aPadNumber, PAD aIgnore=None) -> std::vector< PAD const *,std::allocator< PAD const * > >"""
19230 return _pcbnew.FOOTPRINT_GetPads(self, aPadNumber, aIgnore)
19231
19232 def GetPadCount(self, *args):
19233 r"""GetPadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
19234 return _pcbnew.FOOTPRINT_GetPadCount(self, *args)
19235
19236 def GetUniquePadCount(self, *args):
19237 r"""GetUniquePadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
19238 return _pcbnew.FOOTPRINT_GetUniquePadCount(self, *args)
19239
19240 def GetUniquePadNumbers(self, *args):
19241 r"""GetUniquePadNumbers(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> STRINGSET"""
19242 return _pcbnew.FOOTPRINT_GetUniquePadNumbers(self, *args)
19243
19244 def GetNextPadNumber(self, aLastPadName):
19245 r"""GetNextPadNumber(FOOTPRINT self, wxString aLastPadName) -> wxString"""
19246 return _pcbnew.FOOTPRINT_GetNextPadNumber(self, aLastPadName)
19247
19249 r"""AutoPositionFields(FOOTPRINT self)"""
19250 return _pcbnew.FOOTPRINT_AutoPositionFields(self)
19251
19252 def GetTypeName(self):
19253 r"""GetTypeName(FOOTPRINT self) -> wxString"""
19254 return _pcbnew.FOOTPRINT_GetTypeName(self)
19255
19256 def GetArea(self, aPadding=0):
19257 r"""GetArea(FOOTPRINT self, int aPadding=0) -> double"""
19258 return _pcbnew.FOOTPRINT_GetArea(self, aPadding)
19259
19260 def GetLink(self):
19261 r"""GetLink(FOOTPRINT self) -> KIID"""
19262 return _pcbnew.FOOTPRINT_GetLink(self)
19263
19264 def SetLink(self, aLink):
19265 r"""SetLink(FOOTPRINT self, KIID aLink)"""
19266 return _pcbnew.FOOTPRINT_SetLink(self, aLink)
19267
19268 def DuplicateItem(self, aItem, aAddToFootprint=False):
19269 r"""DuplicateItem(FOOTPRINT self, BOARD_ITEM aItem, bool aAddToFootprint=False) -> BOARD_ITEM"""
19270 return _pcbnew.FOOTPRINT_DuplicateItem(self, aItem, aAddToFootprint)
19271
19272 def Add3DModel(self, a3DModel):
19273 r"""Add3DModel(FOOTPRINT self, FP_3DMODEL a3DModel)"""
19274 return _pcbnew.FOOTPRINT_Add3DModel(self, a3DModel)
19275
19276 def RunOnDescendants(self, aFunction, aDepth=0):
19277 r"""RunOnDescendants(FOOTPRINT self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
19278 return _pcbnew.FOOTPRINT_RunOnDescendants(self, aFunction, aDepth)
19279
19280 def ViewGetLOD(self, aLayer, aView):
19281 r"""ViewGetLOD(FOOTPRINT self, int aLayer, KIGFX::VIEW * aView) -> double"""
19282 return _pcbnew.FOOTPRINT_ViewGetLOD(self, aLayer, aView)
19283
19284 @staticmethod
19285 def IsLibNameValid(aName):
19286 r"""IsLibNameValid(wxString aName) -> bool"""
19287 return _pcbnew.FOOTPRINT_IsLibNameValid(aName)
19288
19289 @staticmethod
19290 def StringLibNameInvalidChars(aUserReadable):
19291 r"""StringLibNameInvalidChars(bool aUserReadable) -> wxChar const *"""
19292 return _pcbnew.FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
19293
19294 def FootprintNeedsUpdate(self, aLibFP, aCompareFlags=0, aReporter=None):
19295 r"""FootprintNeedsUpdate(FOOTPRINT self, FOOTPRINT aLibFP, int aCompareFlags=0, REPORTER * aReporter=None) -> bool"""
19296 return _pcbnew.FOOTPRINT_FootprintNeedsUpdate(self, aLibFP, aCompareFlags, aReporter)
19297
19298 def SetInitialComments(self, aInitialComments):
19299 r"""SetInitialComments(FOOTPRINT self, wxArrayString * aInitialComments)"""
19300 return _pcbnew.FOOTPRINT_SetInitialComments(self, aInitialComments)
19301
19302 def CoverageRatio(self, aCollector):
19303 r"""CoverageRatio(FOOTPRINT self, GENERAL_COLLECTOR const & aCollector) -> double"""
19304 return _pcbnew.FOOTPRINT_CoverageRatio(self, aCollector)
19305
19306 @staticmethod
19307 def GetCoverageArea(aItem, aCollector):
19308 r"""GetCoverageArea(BOARD_ITEM aItem, GENERAL_COLLECTOR const & aCollector) -> double"""
19309 return _pcbnew.FOOTPRINT_GetCoverageArea(aItem, aCollector)
19310
19312 r"""GetInitialComments(FOOTPRINT self) -> wxArrayString const *"""
19313 return _pcbnew.FOOTPRINT_GetInitialComments(self)
19314
19315 def GetCourtyard(self, aLayer):
19316 r"""GetCourtyard(FOOTPRINT self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
19317 return _pcbnew.FOOTPRINT_GetCourtyard(self, aLayer)
19318
19319 def GetCachedCourtyard(self, aLayer):
19320 r"""GetCachedCourtyard(FOOTPRINT self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
19321 return _pcbnew.FOOTPRINT_GetCachedCourtyard(self, aLayer)
19322
19323 def BuildCourtyardCaches(self, aErrorHandler=None):
19324 r"""BuildCourtyardCaches(FOOTPRINT self, OUTLINE_ERROR_HANDLER * aErrorHandler=None)"""
19325 return _pcbnew.FOOTPRINT_BuildCourtyardCaches(self, aErrorHandler)
19326
19327 def GetEffectiveShape(self, *args):
19328 r"""GetEffectiveShape(FOOTPRINT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
19329 return _pcbnew.FOOTPRINT_GetEffectiveShape(self, *args)
19330
19331
19332 #def SaveToLibrary(self,filename):
19333 # return SaveFootprintToLibrary(filename,self)
19334
19335 #
19336 # add function, clears the thisown to avoid python from deleting
19337 # the object in the garbage collector
19338 #
19339
19340 def GetFieldsText(self):
19341 """ Returns footprint fields name to text map. """
19342 fields = self.GetFields()
19343 return {str(field.GetName()): str(field.GetText()) for field in fields}
19344
19346 """ Returns footprint fields name to shown text map. """
19347 fields = self.GetFields()
19348 return {str(field.GetName()): str(field.GetShownText(False)) for field in fields}
19349
19350 def GetFieldText(self, key):
19351 """ Returns Field text with a given key if it exists, throws KeyError otherwise. """
19352 if self.HasFieldByName(key):
19353 return self.GetFieldByName(key).GetText()
19354 else:
19355 raise KeyError("Field not found: " + key)
19356
19357 def GetFieldShownText(self, key):
19358 """ Returns Field shown text with a given key if it exists, throws KeyError otherwise. """
19359 if self.HasFieldByName(key):
19360 return self.GetFieldByName(key).GetShownText(False)
19361 else:
19362 raise KeyError("Field not found: " + key)
19363
19364 def SetField(self, key, value):
19365 if self.HasFieldByName(key):
19366 self.GetFieldByName(key).SetText(value)
19367 else:
19368 field = PCB_FIELD(self, self.GetFieldCount(), key)
19369 field.SetText(value)
19370 self.AddField(field)
19371
19372 def HasField(self, key):
19373 return self.HasFieldByName(key)
19374
19375 def SetFields(self, fields):
19376 """ Sets footprint fields map. """
19377 for k, v in fields.items():
19378 self.SetField(k, v)
19379
19380
19381
19382# Register FOOTPRINT in _pcbnew:
19383_pcbnew.FOOTPRINT_swigregister(FOOTPRINT)
19384
19386 r"""FOOTPRINT_ClassOf(EDA_ITEM aItem) -> bool"""
19387 return _pcbnew.FOOTPRINT_ClassOf(aItem)
19388FP_is_LOCKED = _pcbnew.FP_is_LOCKED
19389
19390FP_is_PLACED = _pcbnew.FP_is_PLACED
19391
19392FP_to_PLACE = _pcbnew.FP_to_PLACE
19393
19394FP_PADS_are_LOCKED = _pcbnew.FP_PADS_are_LOCKED
19395
19396
19398 r"""FOOTPRINT_IsLibNameValid(wxString aName) -> bool"""
19399 return _pcbnew.FOOTPRINT_IsLibNameValid(aName)
19400
19402 r"""FOOTPRINT_StringLibNameInvalidChars(bool aUserReadable) -> wxChar const *"""
19403 return _pcbnew.FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
19404
19405def FOOTPRINT_GetCoverageArea(aItem, aCollector):
19406 r"""FOOTPRINT_GetCoverageArea(BOARD_ITEM aItem, GENERAL_COLLECTOR const & aCollector) -> double"""
19407 return _pcbnew.FOOTPRINT_GetCoverageArea(aItem, aCollector)
19408
19410 r"""Proxy of C++ FOOTPRINT::cmp_drawings class."""
19411
19412 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19413 __repr__ = _swig_repr
19414
19415 def __call__(self, itemA, itemB):
19416 r"""__call__(cmp_drawings self, BOARD_ITEM itemA, BOARD_ITEM itemB) -> bool"""
19417 return _pcbnew.cmp_drawings___call__(self, itemA, itemB)
19418
19419 def __init__(self):
19420 r"""__init__(cmp_drawings self) -> cmp_drawings"""
19421 _pcbnew.cmp_drawings_swiginit(self, _pcbnew.new_cmp_drawings())
19422 __swig_destroy__ = _pcbnew.delete_cmp_drawings
19423
19424# Register cmp_drawings in _pcbnew:
19425_pcbnew.cmp_drawings_swigregister(cmp_drawings)
19426
19428 r"""Proxy of C++ FOOTPRINT::cmp_pads class."""
19429
19430 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19431 __repr__ = _swig_repr
19432
19433 def __call__(self, aFirst, aSecond):
19434 r"""__call__(cmp_pads self, PAD aFirst, PAD aSecond) -> bool"""
19435 return _pcbnew.cmp_pads___call__(self, aFirst, aSecond)
19436
19437 def __init__(self):
19438 r"""__init__(cmp_pads self) -> cmp_pads"""
19439 _pcbnew.cmp_pads_swiginit(self, _pcbnew.new_cmp_pads())
19440 __swig_destroy__ = _pcbnew.delete_cmp_pads
19441
19442# Register cmp_pads in _pcbnew:
19443_pcbnew.cmp_pads_swigregister(cmp_pads)
19444
19446 r"""Proxy of C++ FOOTPRINT::cmp_padstack class."""
19447
19448 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19449 __repr__ = _swig_repr
19450
19451 def __call__(self, aFirst, aSecond):
19452 r"""__call__(cmp_padstack self, PAD aFirst, PAD aSecond) -> bool"""
19453 return _pcbnew.cmp_padstack___call__(self, aFirst, aSecond)
19454
19455 def __init__(self):
19456 r"""__init__(cmp_padstack self) -> cmp_padstack"""
19457 _pcbnew.cmp_padstack_swiginit(self, _pcbnew.new_cmp_padstack())
19458 __swig_destroy__ = _pcbnew.delete_cmp_padstack
19459
19460# Register cmp_padstack in _pcbnew:
19461_pcbnew.cmp_padstack_swigregister(cmp_padstack)
19462
19464 r"""Proxy of C++ FOOTPRINT::cmp_zones class."""
19465
19466 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19467 __repr__ = _swig_repr
19468
19469 def __call__(self, aFirst, aSecond):
19470 r"""__call__(cmp_zones self, ZONE aFirst, ZONE aSecond) -> bool"""
19471 return _pcbnew.cmp_zones___call__(self, aFirst, aSecond)
19472
19473 def __init__(self):
19474 r"""__init__(cmp_zones self) -> cmp_zones"""
19475 _pcbnew.cmp_zones_swiginit(self, _pcbnew.new_cmp_zones())
19476 __swig_destroy__ = _pcbnew.delete_cmp_zones
19477
19478# Register cmp_zones in _pcbnew:
19479_pcbnew.cmp_zones_swigregister(cmp_zones)
19480
19482 r"""Proxy of C++ std::vector< FP_3DMODEL > class."""
19483
19484 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19485 __repr__ = _swig_repr
19486
19487 def iterator(self):
19488 r"""iterator(VECTOR_FP_3DMODEL self) -> SwigPyIterator"""
19489 return _pcbnew.VECTOR_FP_3DMODEL_iterator(self)
19490 def __iter__(self):
19491 return self.iterator()
19492
19493 def __nonzero__(self):
19494 r"""__nonzero__(VECTOR_FP_3DMODEL self) -> bool"""
19495 return _pcbnew.VECTOR_FP_3DMODEL___nonzero__(self)
19496
19497 def __bool__(self):
19498 r"""__bool__(VECTOR_FP_3DMODEL self) -> bool"""
19499 return _pcbnew.VECTOR_FP_3DMODEL___bool__(self)
19500
19501 def __len__(self):
19502 r"""__len__(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
19503 return _pcbnew.VECTOR_FP_3DMODEL___len__(self)
19504
19505 def __getslice__(self, i, j):
19506 r"""__getslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j) -> VECTOR_FP_3DMODEL"""
19507 return _pcbnew.VECTOR_FP_3DMODEL___getslice__(self, i, j)
19508
19509 def __setslice__(self, *args):
19510 r"""
19511 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)
19512 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j, VECTOR_FP_3DMODEL v)
19513 """
19514 return _pcbnew.VECTOR_FP_3DMODEL___setslice__(self, *args)
19515
19516 def __delslice__(self, i, j):
19517 r"""__delslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)"""
19518 return _pcbnew.VECTOR_FP_3DMODEL___delslice__(self, i, j)
19519
19520 def __delitem__(self, *args):
19521 r"""
19522 __delitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i)
19523 __delitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice)
19524 """
19525 return _pcbnew.VECTOR_FP_3DMODEL___delitem__(self, *args)
19526
19527 def __getitem__(self, *args):
19528 r"""
19529 __getitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice) -> VECTOR_FP_3DMODEL
19530 __getitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i) -> FP_3DMODEL
19531 """
19532 return _pcbnew.VECTOR_FP_3DMODEL___getitem__(self, *args)
19533
19534 def __setitem__(self, *args):
19535 r"""
19536 __setitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice, VECTOR_FP_3DMODEL v)
19537 __setitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice)
19538 __setitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, FP_3DMODEL x)
19539 """
19540 return _pcbnew.VECTOR_FP_3DMODEL___setitem__(self, *args)
19541
19542 def pop(self):
19543 r"""pop(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
19544 return _pcbnew.VECTOR_FP_3DMODEL_pop(self)
19545
19546 def append(self, x):
19547 r"""append(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
19548 return _pcbnew.VECTOR_FP_3DMODEL_append(self, x)
19549
19550 def empty(self):
19551 r"""empty(VECTOR_FP_3DMODEL self) -> bool"""
19552 return _pcbnew.VECTOR_FP_3DMODEL_empty(self)
19553
19554 def size(self):
19555 r"""size(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
19556 return _pcbnew.VECTOR_FP_3DMODEL_size(self)
19557
19558 def swap(self, v):
19559 r"""swap(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL v)"""
19560 return _pcbnew.VECTOR_FP_3DMODEL_swap(self, v)
19561
19562 def begin(self):
19563 r"""begin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
19564 return _pcbnew.VECTOR_FP_3DMODEL_begin(self)
19565
19566 def end(self):
19567 r"""end(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
19568 return _pcbnew.VECTOR_FP_3DMODEL_end(self)
19569
19570 def rbegin(self):
19571 r"""rbegin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
19572 return _pcbnew.VECTOR_FP_3DMODEL_rbegin(self)
19573
19574 def rend(self):
19575 r"""rend(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
19576 return _pcbnew.VECTOR_FP_3DMODEL_rend(self)
19577
19578 def clear(self):
19579 r"""clear(VECTOR_FP_3DMODEL self)"""
19580 return _pcbnew.VECTOR_FP_3DMODEL_clear(self)
19581
19582 def get_allocator(self):
19583 r"""get_allocator(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::allocator_type"""
19584 return _pcbnew.VECTOR_FP_3DMODEL_get_allocator(self)
19585
19586 def pop_back(self):
19587 r"""pop_back(VECTOR_FP_3DMODEL self)"""
19588 return _pcbnew.VECTOR_FP_3DMODEL_pop_back(self)
19589
19590 def erase(self, *args):
19591 r"""
19592 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos) -> std::vector< FP_3DMODEL >::iterator
19593 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator first, std::vector< FP_3DMODEL >::iterator last) -> std::vector< FP_3DMODEL >::iterator
19594 """
19595 return _pcbnew.VECTOR_FP_3DMODEL_erase(self, *args)
19596
19597 def __init__(self, *args):
19598 r"""
19599 __init__(VECTOR_FP_3DMODEL self) -> VECTOR_FP_3DMODEL
19600 __init__(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL other) -> VECTOR_FP_3DMODEL
19601 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size) -> VECTOR_FP_3DMODEL
19602 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size, FP_3DMODEL value) -> VECTOR_FP_3DMODEL
19603 """
19604 _pcbnew.VECTOR_FP_3DMODEL_swiginit(self, _pcbnew.new_VECTOR_FP_3DMODEL(*args))
19605
19606 def push_back(self, x):
19607 r"""push_back(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
19608 return _pcbnew.VECTOR_FP_3DMODEL_push_back(self, x)
19609
19610 def front(self):
19611 r"""front(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
19612 return _pcbnew.VECTOR_FP_3DMODEL_front(self)
19613
19614 def back(self):
19615 r"""back(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
19616 return _pcbnew.VECTOR_FP_3DMODEL_back(self)
19617
19618 def assign(self, n, x):
19619 r"""assign(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)"""
19620 return _pcbnew.VECTOR_FP_3DMODEL_assign(self, n, x)
19621
19622 def resize(self, *args):
19623 r"""
19624 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size)
19625 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size, FP_3DMODEL x)
19626 """
19627 return _pcbnew.VECTOR_FP_3DMODEL_resize(self, *args)
19628
19629 def insert(self, *args):
19630 r"""
19631 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, FP_3DMODEL x) -> std::vector< FP_3DMODEL >::iterator
19632 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)
19633 """
19634 return _pcbnew.VECTOR_FP_3DMODEL_insert(self, *args)
19635
19636 def reserve(self, n):
19637 r"""reserve(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n)"""
19638 return _pcbnew.VECTOR_FP_3DMODEL_reserve(self, n)
19639
19640 def capacity(self):
19641 r"""capacity(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
19642 return _pcbnew.VECTOR_FP_3DMODEL_capacity(self)
19643 __swig_destroy__ = _pcbnew.delete_VECTOR_FP_3DMODEL
19644
19645# Register VECTOR_FP_3DMODEL in _pcbnew:
19646_pcbnew.VECTOR_FP_3DMODEL_swigregister(VECTOR_FP_3DMODEL)
19647
19648
19649def GetPluginForPath(libname):
19650 plugin_type = PCB_IO_MGR.GuessPluginTypeFromLibPath( libname );
19651 return PCB_IO_MGR.PluginFind(plugin_type)
19652
19654 plug = GetPluginForPath(libname)
19655 return plug.FootprintEnumerate(libname)
19656
19657def FootprintLoad(libname,name,preserveUUID=False):
19658 plug = GetPluginForPath(libname)
19659 return plug.FootprintLoad(libname,name,preserveUUID)
19660
19661def FootprintSave(libname,module):
19662 plug = GetPluginForPath(libname)
19663 return plug.FootprintSave(libname,module)
19664
19665def FootprintDelete(libname,name):
19666 plug = GetPluginForPath(libname)
19667 plug.FootprintDelete(libname,name)
19668
19670 plug = GetPluginForPath(libname)
19671 plug.CreateLibrary(libname)
19672
19674 plug = GetPluginForPath(libname)
19675 plug.DeleteLibrary(libname)
19676
19678 plug = GetPluginForPath(libname)
19679 plug.FootprintLibIsWritable(libname)
19680
19682 r"""Proxy of C++ PYTHON_FOOTPRINT_WIZARD_LIST class."""
19683
19684 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19685 __repr__ = _swig_repr
19686
19687 @staticmethod
19688 def register_wizard(wizard):
19689 r"""register_wizard(PyObject * wizard)"""
19690 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
19691
19692 @staticmethod
19694 r"""deregister_wizard(PyObject * wizard)"""
19695 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
19696
19697 def __init__(self):
19698 r"""__init__(PYTHON_FOOTPRINT_WIZARD_LIST self) -> PYTHON_FOOTPRINT_WIZARD_LIST"""
19699 _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swiginit(self, _pcbnew.new_PYTHON_FOOTPRINT_WIZARD_LIST())
19700 __swig_destroy__ = _pcbnew.delete_PYTHON_FOOTPRINT_WIZARD_LIST
19701
19702# Register PYTHON_FOOTPRINT_WIZARD_LIST in _pcbnew:
19703_pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swigregister(PYTHON_FOOTPRINT_WIZARD_LIST)
19704
19706 r"""PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(PyObject * wizard)"""
19707 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
19708
19710 r"""PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(PyObject * wizard)"""
19711 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
19712
19714 r"""Proxy of C++ PYTHON_ACTION_PLUGINS class."""
19715
19716 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19717 __repr__ = _swig_repr
19718
19719 @staticmethod
19720 def register_action(wizard):
19721 r"""register_action(PyObject * wizard)"""
19722 return _pcbnew.PYTHON_ACTION_PLUGINS_register_action(wizard)
19723
19724 @staticmethod
19726 r"""deregister_action(PyObject * wizard)"""
19727 return _pcbnew.PYTHON_ACTION_PLUGINS_deregister_action(wizard)
19728
19729 def __init__(self):
19730 r"""__init__(PYTHON_ACTION_PLUGINS self) -> PYTHON_ACTION_PLUGINS"""
19731 _pcbnew.PYTHON_ACTION_PLUGINS_swiginit(self, _pcbnew.new_PYTHON_ACTION_PLUGINS())
19732 __swig_destroy__ = _pcbnew.delete_PYTHON_ACTION_PLUGINS
19733
19734# Register PYTHON_ACTION_PLUGINS in _pcbnew:
19735_pcbnew.PYTHON_ACTION_PLUGINS_swigregister(PYTHON_ACTION_PLUGINS)
19736
19738 r"""PYTHON_ACTION_PLUGINS_register_action(PyObject * wizard)"""
19739 return _pcbnew.PYTHON_ACTION_PLUGINS_register_action(wizard)
19740
19742 r"""PYTHON_ACTION_PLUGINS_deregister_action(PyObject * wizard)"""
19743 return _pcbnew.PYTHON_ACTION_PLUGINS_deregister_action(wizard)
19744
19745
19746def ToMM(iu):
19747 if type(iu) in [int,float]:
19748 return float(iu) / float(pcbIUScale.IU_PER_MM)
19749 elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
19750 return tuple(map(ToMM,iu))
19751 else:
19752 raise TypeError("ToMM() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
19753
19754def FromMM(mm):
19755 if type(mm) in [int,float]:
19756 return int(float(mm) * float(pcbIUScale.IU_PER_MM))
19757 elif type(mm) in [wxPoint,wxSize,VECTOR2I]:
19758 return tuple(map(FromMM,mm))
19759 else:
19760 raise TypeError("FromMM() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mm)))
19761
19762def ToMils(iu):
19763 if type(iu) in [int,float]:
19764 return float(iu) / float(pcbIUScale.IU_PER_MILS)
19765 elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
19766 return tuple(map(ToMils,iu))
19767 else:
19768 raise TypeError("ToMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
19769
19770def FromMils(mils):
19771 if type(mils) in [int,float]:
19772 return int(float(mils)*float(pcbIUScale.IU_PER_MILS))
19773 elif type(mils) in [wxPoint,wxSize,VECTOR2I]:
19774 return tuple(map(FromMils,mils))
19775 else:
19776 raise TypeError("FromMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mils)))
19777
19778def PutOnGridMM(value, gridSizeMM):
19779 thresh = FromMM(gridSizeMM)
19780 return round(value/thresh)*thresh
19781
19782def PutOnGridMils(value, gridSizeMils):
19783 thresh = FromMils(gridSizeMils)
19784 return round(value/thresh)*thresh
19785
19786def wxSizeMM(mmx,mmy):
19787 return wxSize(FromMM(mmx),FromMM(mmy))
19788
19789def wxSizeMils(mmx,mmy):
19790 return wxSize(FromMils(mmx),FromMils(mmy))
19791
19792def wxPointMM(mmx,mmy):
19793 return wxPoint(FromMM(mmx),FromMM(mmy))
19794
19795def wxPointMils(mmx,mmy):
19796 return wxPoint(FromMils(mmx),FromMils(mmy))
19797
19798def VECTOR2I_MM(mmx,mmy):
19799 return VECTOR2I(FromMM(mmx),FromMM(mmy))
19800
19801def VECTOR2I_Mils(mmx,mmy):
19802 return VECTOR2I(FromMils(mmx),FromMils(mmy))
19803
19804def wxRectMM(x,y,wx,wy):
19805 x = int(FromMM(x))
19806 y = int(FromMM(y))
19807 wx = int(FromMM(wx))
19808 wy = int (FromMM(wy))
19809 return wxRect(x,y,wx,wy)
19810
19811def wxRectMils(x,y,wx,wy):
19812 x = int(FromMils(x))
19813 y = int(FromMils(y))
19814 wx = int(FromMils(wx))
19815 wy = int(FromMils(wy))
19816 return wxRect(x,y,wx,wy)
19817
19818
19820 """Return the semantic version of KiCad"""
19821 return GetSemanticVersion()
19822
19824 """Return the full, git-based version of KiCad"""
19825 return GetBuildVersion()
19826
19827
19828
def __init__(self)
Definition: pcbnew.py:14928
def Run(self)
Definition: pcbnew.py:5180
def GetShowToolbarButton(self)
Definition: pcbnew.py:5171
def GetIconFileName(self, dark)
Definition: pcbnew.py:5174
def GetCategoryName(self)
Definition: pcbnew.py:5165
def GetDescription(self)
Definition: pcbnew.py:5168
def GetName(self)
Definition: pcbnew.py:5162
def __init__(self)
Definition: pcbnew.py:5150
def defaults(self)
Definition: pcbnew.py:5157
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:7930
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:10313
def GetLocalClearance(self, aSource)
Definition: pcbnew.py:10321
def SetTeardropsEnabled(self, aEnable)
Definition: pcbnew.py:10348
def SetTeardropBestWidthRatio(self, aRatio)
Definition: pcbnew.py:10372
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:10269
def GetLocalClearanceOverrides(self, aSource)
Definition: pcbnew.py:10317
def SetLocalRatsnestVisible(self, aVisible)
Definition: pcbnew.py:10333
def SetTeardropMaxTrackWidth(self, aRatio)
Definition: pcbnew.py:10412
def GetTeardropAllowSpanTwoTracks(self)
Definition: pcbnew.py:10408
def GetTeardropMaxLength(self)
Definition: pcbnew.py:10368
def SetTeardropCurvePts(self, aPointCount)
Definition: pcbnew.py:10388
def GetTeardropParams(self, *args)
Definition: pcbnew.py:10341
def GetTeardropBestWidthRatio(self)
Definition: pcbnew.py:10376
def SetNetCode(self, *args)
Definition: pcbnew.py:10290
def GetTeardropMaxTrackWidth(self)
Definition: pcbnew.py:10416
def SetTeardropAllowSpanTwoTracks(self, aAllow)
Definition: pcbnew.py:10404
def SetTeardropMaxWidth(self, aMaxWidth)
Definition: pcbnew.py:10380
def GetLocalRatsnestVisible(self)
Definition: pcbnew.py:10337
def SetTeardropBestLengthRatio(self, aRatio)
Definition: pcbnew.py:10356
def GetTeardropBestLengthRatio(self)
Definition: pcbnew.py:10360
def GetTeardropPreferZoneConnections(self)
Definition: pcbnew.py:10400
def GetEffectiveNetClass(self)
Definition: pcbnew.py:10325
def SetNet(self, aNetInfo)
Definition: pcbnew.py:10282
def SetTeardropPreferZoneConnections(self, aPrefer)
Definition: pcbnew.py:10396
def SetTeardropMaxLength(self, aMaxLength)
Definition: pcbnew.py:10364
def SetAuxOrigin(self, aOrigin)
Definition: pcbnew.py:11010
def IsLayerEnabled(self, aLayerId)
Definition: pcbnew.py:10958
def GetCustomDiffPairWidth(self)
Definition: pcbnew.py:10911
def GetLineThickness(self, aLayer)
Definition: pcbnew.py:10986
def GetTextSize(self, aLayer)
Definition: pcbnew.py:10990
def SetEnabledLayers(self, aMask)
Definition: pcbnew.py:10954
def SetDefaultZoneSettings(self, aSettings)
Definition: pcbnew.py:10812
def UseCustomDiffPairDimensions(self, *args)
Definition: pcbnew.py:10931
def SetCustomDiffPairGap(self, aGap)
Definition: pcbnew.py:10915
def GetLayerClass(self, aLayer)
Definition: pcbnew.py:11006
def LoadFromFile(self, *args)
Definition: pcbnew.py:10785
def GetCurrentDiffPairWidth(self)
Definition: pcbnew.py:10938
def SetBoardThickness(self, aThickness)
Definition: pcbnew.py:10974
def GetSeverity(self, aDRCErrorCode)
Definition: pcbnew.py:10800
def GetHolePlatingThickness(self)
Definition: pcbnew.py:10982
def GetBiggestClearanceValue(self)
Definition: pcbnew.py:10832
def Ignore(self, aDRCErrorCode)
Definition: pcbnew.py:10804
def CloneFrom(self, aOther)
Definition: pcbnew.py:11081
def SetCustomTrackWidth(self, aWidth)
Definition: pcbnew.py:10852
def SetDiffPairIndex(self, aIndex)
Definition: pcbnew.py:10903
def GetTextUpright(self, aLayer)
Definition: pcbnew.py:11002
def GetStackupDescriptor(self, *args)
Definition: pcbnew.py:10789
def GetCurrentNetClassName(self)
Definition: pcbnew.py:10816
def __eq__(self, aOther)
Definition: pcbnew.py:10770
def GetDefaultZoneSettings(self)
Definition: pcbnew.py:10808
def UseCustomTrackViaSize(self, *args)
Definition: pcbnew.py:10892
def SetViaSizeIndex(self, aIndex)
Definition: pcbnew.py:10864
def __ne__(self, aOther)
Definition: pcbnew.py:10774
def GetCustomDiffPairViaGap(self)
Definition: pcbnew.py:10927
def SetCustomViaSize(self, aSize)
Definition: pcbnew.py:10872
def SetGridOrigin(self, aOrigin)
Definition: pcbnew.py:11018
def SetCustomViaDrill(self, aDrill)
Definition: pcbnew.py:10884
def GetSmallestClearanceValue(self)
Definition: pcbnew.py:10836
def GetTextItalic(self, aLayer)
Definition: pcbnew.py:10998
def GetCurrentDiffPairViaGap(self)
Definition: pcbnew.py:10946
def SetCopperLayerCount(self, aNewLayerCount)
Definition: pcbnew.py:10966
def __init__(self, *args)
Definition: pcbnew.py:10778
def GetTextThickness(self, aLayer)
Definition: pcbnew.py:10994
def SetCustomDiffPairWidth(self, aWidth)
Definition: pcbnew.py:10907
def SetTrackWidthIndex(self, aIndex)
Definition: pcbnew.py:10844
def SetCustomDiffPairViaGap(self, aGap)
Definition: pcbnew.py:10923
def Delete(self, item)
Definition: pcbnew.py:10249
def DeleteNative(self, aItem)
Definition: pcbnew.py:10225
def Remove(self, item)
Definition: pcbnew.py:10239
def RemoveNative(self, *args)
Definition: pcbnew.py:10221
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:10213
def Add(self, item)
Definition: pcbnew.py:10229
def AddNative(self, *args)
Definition: pcbnew.py:10217
def IsTented(self)
Definition: pcbnew.py:9765
def IsOnLayer(self, aLayer)
Definition: pcbnew.py:9841
def GetLayer(self)
Definition: pcbnew.py:9817
def IsKnockout(self)
Definition: pcbnew.py:9845
def IsConnected(self)
Definition: pcbnew.py:9745
def SetIsKnockout(self, aKnockout)
Definition: pcbnew.py:9849
def Move(self, aMoveVector)
Definition: pcbnew.py:9869
def SetStartEnd(self, start, end)
Definition: pcbnew.py:9967
def SetParentGroup(self, aGroup)
Definition: pcbnew.py:9717
def SetFPRelativePosition(self, aPos)
Definition: pcbnew.py:9797
def GetParent(self)
Definition: pcbnew.py:9785
def Flip(self, aCentre, aFlipLeftRight)
Definition: pcbnew.py:9877
def StyleFromSettings(self, settings)
Definition: pcbnew.py:9861
def SetStroke(self, aStroke)
Definition: pcbnew.py:9809
def GetFontMetrics(self)
Definition: pcbnew.py:9813
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9712
def GetParentGroup(self)
Definition: pcbnew.py:9721
def Rotate(self, aRotCentre, aAngle)
Definition: pcbnew.py:9873
def GetLayerSet(self)
Definition: pcbnew.py:9821
def Cast(self)
Definition: pcbnew.py:9910
def NormalizeForCompare(self)
Definition: pcbnew.py:9885
def SetLayer(self, aLayer)
Definition: pcbnew.py:9829
def SetLayerSet(self, aLayers)
Definition: pcbnew.py:9825
def GetCenter(self)
Definition: pcbnew.py:9733
def SwapItemData(self, aImage)
Definition: pcbnew.py:9837
def GetEffectiveHoleShape(self)
Definition: pcbnew.py:9773
def GetStroke(self)
Definition: pcbnew.py:9805
def IsOnCopperLayer(self)
Definition: pcbnew.py:9757
def Similarity(self, aItem)
Definition: pcbnew.py:9749
def GetY(self)
Definition: pcbnew.py:9729
def GetX(self)
Definition: pcbnew.py:9725
def SetX(self, aX)
Definition: pcbnew.py:9737
def IsLocked(self)
Definition: pcbnew.py:9853
def GetParentAsString(self)
Definition: pcbnew.py:9896
def DeleteStructure(self)
Definition: pcbnew.py:9865
def GetFPRelativePosition(self)
Definition: pcbnew.py:9793
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:9769
def Normalize(self)
Definition: pcbnew.py:9881
def HasLineStroke(self)
Definition: pcbnew.py:9801
def RunOnChildren(self, aFunction)
Definition: pcbnew.py:9777
def GetLayerName(self)
Definition: pcbnew.py:9900
def GetParentFootprint(self)
Definition: pcbnew.py:9789
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:9781
def Duplicate(self)
Definition: pcbnew.py:9833
def SetLocked(self, aLocked)
Definition: pcbnew.py:9857
def HasHole(self)
Definition: pcbnew.py:9761
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:9904
def SetY(self, aY)
Definition: pcbnew.py:9741
def __eq__(self, aItem)
Definition: pcbnew.py:9753
def SetPos(self, p)
Definition: pcbnew.py:9963
def OnBoardHighlightNetChanged(self, aBoard)
Definition: pcbnew.py:17825
def OnBoardItemAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:17797
def OnBoardRatsnestChanged(self, aBoard)
Definition: pcbnew.py:17829
def OnBoardItemChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:17817
def OnBoardNetSettingsChanged(self, aBoard)
Definition: pcbnew.py:17813
def __init__(self)
Definition: pcbnew.py:17833
def OnBoardItemsAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:17801
def OnBoardItemRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:17805
def OnBoardItemsChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:17821
def OnBoardItemsRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:17809
def DeleteMARKERs(self, *args)
Definition: pcbnew.py:18037
def RemoveListener(self, aListener)
Definition: pcbnew.py:18384
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:17951
def IsHighLightNetON(self)
Definition: pcbnew.py:18080
def IsFootprintLayerVisible(self, aLayer)
Definition: pcbnew.py:18148
def GetNetsByNetcode(self)
Definition: pcbnew.py:18463
def BuildListOfNets(self)
Definition: pcbnew.py:18256
def GetPadFast(self, aPosition, aLayerMask)
Definition: pcbnew.py:18339
def SetLayerDescr(self, aIndex, aLayer)
Definition: pcbnew.py:18236
def GetLayerName(self, aLayer)
Definition: pcbnew.py:18223
def GetPad(self, *args)
Definition: pcbnew.py:18343
def GetLayerType(self, aLayer)
Definition: pcbnew.py:18240
def SetCopperLayerCount(self, aCount)
Definition: pcbnew.py:18096
def RemoveAllListeners(self)
Definition: pcbnew.py:18388
def GetCopperLayerCount(self)
Definition: pcbnew.py:18092
def LayerDepth(self, aStartLayer, aEndLayer)
Definition: pcbnew.py:18100
def GetTracks(self)
Definition: pcbnew.py:18440
def GetPads(self)
Definition: pcbnew.py:18252
def FillItemMap(self, aMap)
Definition: pcbnew.py:18017
def GetPageSettings(self)
Definition: pcbnew.py:18164
def SetProject(self, aProject, aReferenceOnly=False)
Definition: pcbnew.py:18048
def RecordDRCExclusions(self)
Definition: pcbnew.py:18060
def GetFileName(self)
Definition: pcbnew.py:17882
def GroupsSanityCheck(self, repair=False)
Definition: pcbnew.py:18404
def TestZoneIntersection(self, aZone1, aZone2)
Definition: pcbnew.py:18335
def ResetNetHighLight(self)
Definition: pcbnew.py:18068
def Save(self, filename)
Definition: pcbnew.py:18442
def SetOutlinesChainingEpsilon(self, aValue)
Definition: pcbnew.py:18211
def RemoveNative(self, *args)
Definition: pcbnew.py:17989
def GetAllNetClasses(self)
Definition: pcbnew.py:18476
def GetFirstFootprint(self)
Definition: pcbnew.py:18005
def GetOutlinesChainingEpsilon(self)
Definition: pcbnew.py:18207
def ResolveTextVar(self, token, aDepth)
Definition: pcbnew.py:17955
def SetHighLightNet(self, aNetCode, aMulti=False)
Definition: pcbnew.py:18076
def ComputeBoundingBox(self, aBoardEdgesOnly=False)
Definition: pcbnew.py:18287
def UpdateRatsnestExclusions(self)
Definition: pcbnew.py:18064
def Zones(self, *args)
Definition: pcbnew.py:17907
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:17849
def GroupsSanityCheckInternal(self, repair)
Definition: pcbnew.py:18408
def OnItemsChanged(self, aItems)
Definition: pcbnew.py:18396
def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False)
Definition: pcbnew.py:18364
def GetBoardUse(self)
Definition: pcbnew.py:17862
def GetLayerID(self, aLayerName)
Definition: pcbnew.py:18219
def GetVisibleElements(self)
Definition: pcbnew.py:18128
def GetItem(self, aID)
Definition: pcbnew.py:18013
def IsElementVisible(self, aLayer)
Definition: pcbnew.py:18140
def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1)
Definition: pcbnew.py:18352
def FinalizeBulkRemove(self, aRemovedItems)
Definition: pcbnew.py:17997
def AddListener(self, aListener)
Definition: pcbnew.py:18380
def Drawings(self, *args)
Definition: pcbnew.py:17900
def AddNative(self, *args)
Definition: pcbnew.py:17985
def SetVisibleAlls(self)
Definition: pcbnew.py:18136
def GetHighLightNetCodes(self)
Definition: pcbnew.py:18072
def OnItemChanged(self, aItem)
Definition: pcbnew.py:18392
def GetFootprints(self)
Definition: pcbnew.py:18438
def TracksInNet(self, aNetCode)
Definition: pcbnew.py:18360
def GetStandardLayerName(aLayerId)
Definition: pcbnew.py:18232
def IsFootprintHolder(self)
Definition: pcbnew.py:17874
def FinalizeBulkAdd(self, aNewItems)
Definition: pcbnew.py:17993
def SetTentVias(self, aFlag)
Definition: pcbnew.py:18160
def FindNet(self, *args)
Definition: pcbnew.py:18260
def Groups(self, *args)
Definition: pcbnew.py:17932
def SetTitleBlock(self, aTitleBlock)
Definition: pcbnew.py:18187
def OnRatsnestChanged(self)
Definition: pcbnew.py:18400
def HighLightON(self, aValue=True)
Definition: pcbnew.py:18084
def GetMaxClearanceValue(self)
Definition: pcbnew.py:18368
def SetVisibleLayers(self, aLayerMask)
Definition: pcbnew.py:18124
def IncrementTimeStamp(self)
Definition: pcbnew.py:17866
def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
Definition: pcbnew.py:18331
def CacheTriangulation(self, *args)
Definition: pcbnew.py:18001
def GetViasDimensionsList(self)
Definition: pcbnew.py:18451
def IsLayerVisible(self, aLayer)
Definition: pcbnew.py:18116
def ResolveDRCExclusions(self, aCreateMarkers)
Definition: pcbnew.py:18056
def MatchDpSuffix(self, aNetName, aComplementNet)
Definition: pcbnew.py:18267
def Markers(self, *args)
Definition: pcbnew.py:17921
def GetTimeStamp(self)
Definition: pcbnew.py:17870
def SetPlotOptions(self, aOptions)
Definition: pcbnew.py:18176
def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False, aIncludeNPTHAsOutlines=False)
Definition: pcbnew.py:18203
def GetEnabledLayers(self)
Definition: pcbnew.py:18104
def FindFootprintByReference(self, aReference)
Definition: pcbnew.py:18295
def HighLightOFF(self)
Definition: pcbnew.py:18088
def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
Definition: pcbnew.py:18215
def SetGenerator(self, aGenerator)
Definition: pcbnew.py:17977
def IsEmpty(self)
Definition: pcbnew.py:17965
def GetZoneList(self, aIncludeZonesInFootprints=False)
Definition: pcbnew.py:18323
def GetNetClasses(self)
Definition: pcbnew.py:18445
def SetAreasNetCodesFromNetNames(self)
Definition: pcbnew.py:18315
def GetTentVias(self)
Definition: pcbnew.py:18156
def GetProperties(self)
Definition: pcbnew.py:17943
def SetLegacyTeardrops(self, aFlag)
Definition: pcbnew.py:18420
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:18168
def ClearProject(self)
Definition: pcbnew.py:18052
def DeleteAllFootprints(self)
Definition: pcbnew.py:18009
def DpCoupledNet(self, aNet)
Definition: pcbnew.py:18271
def GetAreaCount(self)
Definition: pcbnew.py:18327
def GetBoardEdgesBoundingBox(self)
Definition: pcbnew.py:18291
def ClassOf(aItem)
Definition: pcbnew.py:17854
def GetArea(self, index)
Definition: pcbnew.py:18319
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:17973
def UpdateUserUnits(self, aItem, aView)
Definition: pcbnew.py:18199
def GetVisibleLayers(self)
Definition: pcbnew.py:18120
def GetNetClassAssignmentCandidates(self)
Definition: pcbnew.py:18303
def RemoveUnusedNets(self, aCommit)
Definition: pcbnew.py:18279
def Tracks(self, *args)
Definition: pcbnew.py:17886
def Footprints(self, *args)
Definition: pcbnew.py:17893
def ConvertKIIDsToCrossReferences(self, aSource)
Definition: pcbnew.py:18025
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:17969
def SetProperties(self, aProps)
Definition: pcbnew.py:17947
def GetTrackLength(self, aTrack)
Definition: pcbnew.py:18356
def SanitizeNetcodes(self)
Definition: pcbnew.py:18376
def GetCurrentNetClassName(self)
Definition: pcbnew.py:18448
def SetLayerType(self, aLayer, aLayerType)
Definition: pcbnew.py:18244
def GetNodesCount(self, aNet=-1)
Definition: pcbnew.py:18248
def GetNetcodeFromNetname(self, netname)
Definition: pcbnew.py:18469
def FindFootprintByPath(self, aPath)
Definition: pcbnew.py:18299
def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
Definition: pcbnew.py:18307
def AllConnectedItems(self)
Definition: pcbnew.py:17939
def GetNetsByName(self)
Definition: pcbnew.py:18457
def SetFileName(self, aFileName)
Definition: pcbnew.py:17878
def SetEnabledLayers(self, aLayerMask)
Definition: pcbnew.py:18108
def GetGenerator(self)
Definition: pcbnew.py:17981
def GetNetInfo(self)
Definition: pcbnew.py:18275
def GetTrackWidthList(self)
Definition: pcbnew.py:18454
def GroupLegalOps(self, selection)
Definition: pcbnew.py:18412
def BuildConnectivity(self, aReporter=None)
Definition: pcbnew.py:18033
def SynchronizeProperties(self)
Definition: pcbnew.py:18311
def GetConnectivity(self)
Definition: pcbnew.py:18029
def GetTitleBlock(self, *args)
Definition: pcbnew.py:18180
def SetElementVisibility(self, aLayer, aNewState)
Definition: pcbnew.py:18144
def GetDrawings(self)
Definition: pcbnew.py:18439
def GetProject(self)
Definition: pcbnew.py:18044
def IsLayerEnabled(self, aLayer)
Definition: pcbnew.py:18112
def SetLayerName(self, aLayer, aLayerName)
Definition: pcbnew.py:18227
def ConvertCrossReferencesToKIIDs(self, aSource)
Definition: pcbnew.py:18021
def GetDesignSettings(self)
Definition: pcbnew.py:18152
def LegacyTeardrops(self)
Definition: pcbnew.py:18416
def GetPlotOptions(self)
Definition: pcbnew.py:18172
def MapNets(self, aDestBoard)
Definition: pcbnew.py:18372
def SetBoardUse(self, aUse)
Definition: pcbnew.py:17858
def Generators(self, *args)
Definition: pcbnew.py:17914
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:18195
def GetNetCount(self)
Definition: pcbnew.py:18283
def GetItemSet(self)
Definition: pcbnew.py:17928
def SetVisibleElements(self, aMask)
Definition: pcbnew.py:18132
def GetY(self)
Definition: pcbnew.py:5488
def IntersectsCircle(self, aCenter, aRadius)
Definition: pcbnew.py:5592
def Contains(self, *args)
Definition: pcbnew.py:5472
def GetWidth(self)
Definition: pcbnew.py:5504
def Merge(self, *args)
Definition: pcbnew.py:5611
def Centre(self)
Definition: pcbnew.py:5460
def __init__(self, *args)
Definition: pcbnew.py:5449
def GetHeight(self)
Definition: pcbnew.py:5508
def SetOrigin(self, *args)
Definition: pcbnew.py:5536
def GetBoundingBoxRotated(self, aRotCenter, aAngle)
Definition: pcbnew.py:5618
def Offset(self, *args)
Definition: pcbnew.py:5550
def GetTop(self)
Definition: pcbnew.py:5524
def SetX(self, val)
Definition: pcbnew.py:5557
def __eq__(self, aOther)
Definition: pcbnew.py:5656
def GetCenter(self)
Definition: pcbnew.py:5528
def GetBottom(self)
Definition: pcbnew.py:5516
def GetSizeMax(self)
Definition: pcbnew.py:5532
def GetRight(self)
Definition: pcbnew.py:5512
def Format(self)
Definition: pcbnew.py:5600
def SetY(self, val)
Definition: pcbnew.py:5561
def SquaredDistance(self, *args)
Definition: pcbnew.py:5634
def RevertYAxis(self)
Definition: pcbnew.py:5622
def Intersect(self, aRect)
Definition: pcbnew.py:5580
def SetWidth(self, val)
Definition: pcbnew.py:5565
def Distance(self, *args)
Definition: pcbnew.py:5641
def FarthestPointTo(self, aPoint)
Definition: pcbnew.py:5652
def SetEnd(self, *args)
Definition: pcbnew.py:5573
def GetEnd(self)
Definition: pcbnew.py:5500
def Intersects(self, *args)
Definition: pcbnew.py:5584
def SetHeight(self, val)
Definition: pcbnew.py:5569
def GetArea(self)
Definition: pcbnew.py:5626
def GetPosition(self)
Definition: pcbnew.py:5496
def SetSize(self, *args)
Definition: pcbnew.py:5543
def GetOrigin(self)
Definition: pcbnew.py:5492
def GetLeft(self)
Definition: pcbnew.py:5520
def Normalize(self)
Definition: pcbnew.py:5468
def Move(self, aMoveVector)
Definition: pcbnew.py:5464
def GetX(self)
Definition: pcbnew.py:5484
def Diagonal(self)
Definition: pcbnew.py:5630
def __ne__(self, aOther)
Definition: pcbnew.py:5660
def ClosestPointTo(self, aPoint)
Definition: pcbnew.py:5648
def GetSize(self)
Definition: pcbnew.py:5480
def IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
Definition: pcbnew.py:5596
def SetMaximum(self)
Definition: pcbnew.py:5456
def IsValid(self)
Definition: pcbnew.py:5664
def Inflate(self, *args)
Definition: pcbnew.py:5604
def __init__(self, *args)
Definition: pcbnew.py:6507
Definition: pcbnew.py:11136
def __init__(self)
Definition: pcbnew.py:11147
def GetBrightness(self)
Definition: pcbnew.py:2519
def Desaturate(self)
Definition: pcbnew.py:2495
def Inverted(self)
Definition: pcbnew.py:2515
def SetFromWxString(self, aColorString)
Definition: pcbnew.py:2447
def LegacyMix(self, aColor)
Definition: pcbnew.py:2467
def FromCSSRGBA(self, aRed, aGreen, aBlue, aAlpha=1.0)
Definition: pcbnew.py:2433
def Darkened(self, aFactor)
Definition: pcbnew.py:2503
def ToHexString(self)
Definition: pcbnew.py:2459
def ToHSL(self, aOutHue, aOutSaturation, aOutValue)
Definition: pcbnew.py:2471
def FindNearestLegacyColor(aR, aG, aB)
Definition: pcbnew.py:2540
def ToColour(self)
Definition: pcbnew.py:2463
def Darken(self, aFactor)
Definition: pcbnew.py:2483
def Mix(self, aColor, aFactor)
Definition: pcbnew.py:2507
def ToCSSString(self)
Definition: pcbnew.py:2451
def Brighten(self, aFactor)
Definition: pcbnew.py:2479
def Compare(self, aRhs)
Definition: pcbnew.py:2535
def Distance(self, other)
Definition: pcbnew.py:2531
def FromHSL(self, aInHue, aInSaturation, aInLightness)
Definition: pcbnew.py:2475
def WithAlpha(self, aAlpha)
Definition: pcbnew.py:2511
def SetFromHexString(self, aColorString)
Definition: pcbnew.py:2455
def Invert(self)
Definition: pcbnew.py:2487
def Saturate(self, aFactor)
Definition: pcbnew.py:2491
def Brightened(self, aFactor)
Definition: pcbnew.py:2499
def ToHSV(self, aOutHue, aOutSaturation, aOutValue, aAlwaysDefineHue=False)
Definition: pcbnew.py:2523
def __init__(self, *args)
Definition: pcbnew.py:2437
def FromHSV(self, aInH, aInS, aInV)
Definition: pcbnew.py:2527
def GetConnectedPads(self, *args)
Definition: pcbnew.py:11257
def RunOnUnconnectedEdges(self, aFunc)
Definition: pcbnew.py:11272
def Add(self, aItem)
Definition: pcbnew.py:11197
def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False)
Definition: pcbnew.py:11296
def GetUnconnectedCount(self, aVisibileOnly)
Definition: pcbnew.py:11237
def GetConnectivityAlgo(self)
Definition: pcbnew.py:11308
def Update(self, aItem)
Definition: pcbnew.py:11205
def RemoveInvalidRefs(self)
Definition: pcbnew.py:11320
def Remove(self, aItem)
Definition: pcbnew.py:11201
def GetConnectedTracks(self, aItem)
Definition: pcbnew.py:11253
def GetLocalRatsnest(self)
Definition: pcbnew.py:11292
def BlockRatsnestItems(self, aItems)
Definition: pcbnew.py:11304
def IsConnectedOnLayer(self, *args)
Definition: pcbnew.py:11241
def RecalculateRatsnest(self, aCommit=None)
Definition: pcbnew.py:11233
def GetNetclassMap(self)
Definition: pcbnew.py:11328
def ComputeLocalRatsnest(self, *args)
Definition: pcbnew.py:11288
def ClearLocalRatsnest(self)
Definition: pcbnew.py:11280
def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False)
Definition: pcbnew.py:11229
def GetPadCount(self, aNet=-1)
Definition: pcbnew.py:11249
def HideLocalRatsnest(self)
Definition: pcbnew.py:11284
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:11324
def Move(self, aDelta)
Definition: pcbnew.py:11209
def GetFromToCache(self)
Definition: pcbnew.py:11332
def Build(self, *args)
Definition: pcbnew.py:11190
def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None)
Definition: pcbnew.py:11276
def __init__(self, *args)
Definition: pcbnew.py:11183
def PropagateNets(self, aCommit=None)
Definition: pcbnew.py:11225
def MarkItemNetAsDirty(self, aItem)
Definition: pcbnew.py:11316
def GetNodeCount(self, aNet=-1)
Definition: pcbnew.py:11245
def GetConnectedPadsAndVias(self, aItem, pads, vias)
Definition: pcbnew.py:11264
def GetNetItems(self, aNetCode, aTypes)
Definition: pcbnew.py:11300
def GetRatsnestForNet(self, aNet)
Definition: pcbnew.py:11221
def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0)
Definition: pcbnew.py:11268
def __call__(self, item1, item2)
Definition: pcbnew.py:1851
def __init__(self)
Definition: pcbnew.py:1855
def __init__(self)
Definition: pcbnew.py:9119
def __init__(self, *args)
Definition: pcbnew.py:10705
def __ne__(self, aOther)
Definition: pcbnew.py:10716
def __eq__(self, aOther)
Definition: pcbnew.py:10712
def __lt__(self, aOther)
Definition: pcbnew.py:10720
def begin(self)
Definition: pcbnew.py:12432
def clear(self)
Definition: pcbnew.py:12448
def resize(self, *args)
Definition: pcbnew.py:12492
def __delslice__(self, i, j)
Definition: pcbnew.py:12386
def end(self)
Definition: pcbnew.py:12436
def front(self)
Definition: pcbnew.py:12480
def assign(self, n, x)
Definition: pcbnew.py:12488
def size(self)
Definition: pcbnew.py:12424
def push_back(self, x)
Definition: pcbnew.py:12476
def swap(self, v)
Definition: pcbnew.py:12428
def get_allocator(self)
Definition: pcbnew.py:12452
def back(self)
Definition: pcbnew.py:12484
def push_front(self, x)
Definition: pcbnew.py:12510
def __getitem__(self, *args)
Definition: pcbnew.py:12397
def pop_front(self)
Definition: pcbnew.py:12506
def erase(self, *args)
Definition: pcbnew.py:12460
def append(self, x)
Definition: pcbnew.py:12416
def __getslice__(self, i, j)
Definition: pcbnew.py:12375
def empty(self)
Definition: pcbnew.py:12420
def __setslice__(self, *args)
Definition: pcbnew.py:12379
def __delitem__(self, *args)
Definition: pcbnew.py:12390
def pop_back(self)
Definition: pcbnew.py:12456
def __nonzero__(self)
Definition: pcbnew.py:12363
def insert(self, *args)
Definition: pcbnew.py:12499
def __init__(self, *args)
Definition: pcbnew.py:12467
def __iter__(self)
Definition: pcbnew.py:12360
def __setitem__(self, *args)
Definition: pcbnew.py:12404
def rbegin(self)
Definition: pcbnew.py:12440
def iterator(self)
Definition: pcbnew.py:12357
def __len__(self)
Definition: pcbnew.py:12371
def __bool__(self)
Definition: pcbnew.py:12367
def rend(self)
Definition: pcbnew.py:12444
def pop(self)
Definition: pcbnew.py:12412
def __init__(self, l=2, r=4)
Definition: pcbnew.py:9269
def GetPrecisionString(self)
Definition: pcbnew.py:9273
def __init__(self, aDiameter, a_NotPlated)
Definition: pcbnew.py:9230
def __truediv__(self, other)
Definition: pcbnew.py:14871
def AsTenthsOfADegree(self)
Definition: pcbnew.py:14745
def __mul__(self, other)
Definition: pcbnew.py:14865
def IsCardinal(self)
Definition: pcbnew.py:14755
def AsRadians(self)
Definition: pcbnew.py:14749
def IsCardinal90(self)
Definition: pcbnew.py:14759
def IsZero(self)
Definition: pcbnew.py:14763
def AsDegrees(self)
Definition: pcbnew.py:14741
def __rmul__(self, other)
Definition: pcbnew.py:14868
def Invert(self)
Definition: pcbnew.py:14779
def NormalizeNegative(self)
Definition: pcbnew.py:14823
def __iadd__(self, aAngle)
Definition: pcbnew.py:14847
def Normalized(self)
Definition: pcbnew.py:14819
def Normalize(self)
Definition: pcbnew.py:14815
def IsVertical(self)
Definition: pcbnew.py:14771
def Normalize90(self)
Definition: pcbnew.py:14827
def Normalize180(self)
Definition: pcbnew.py:14831
def IsParallelTo(self, aAngle)
Definition: pcbnew.py:14775
def __init__(self, *args)
Definition: pcbnew.py:14731
def Normalize720(self)
Definition: pcbnew.py:14835
def __abs__(self)
Definition: pcbnew.py:14874
def __isub__(self, aAngle)
Definition: pcbnew.py:14851
def __sub__(self, other)
Definition: pcbnew.py:14860
def IsHorizontal(self)
Definition: pcbnew.py:14767
def Tan(self)
Definition: pcbnew.py:14791
def Sin(self)
Definition: pcbnew.py:14783
def KeepUpright(self)
Definition: pcbnew.py:14839
def Arctan2(y, x)
Definition: pcbnew.py:14811
def Cos(self)
Definition: pcbnew.py:14787
def Round(self, digits)
Definition: pcbnew.py:14843
def __add__(self, other)
Definition: pcbnew.py:14855
def ClearSelected(self)
Definition: pcbnew.py:1670
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:1617
def SetSelected(self)
Definition: pcbnew.py:1662
def SetBrightened(self)
Definition: pcbnew.py:1666
def Clone(self)
Definition: pcbnew.py:1777
def GetFlags(self)
Definition: pcbnew.py:1694
def IsForceVisible(self)
Definition: pcbnew.py:1738
def IsRollover(self)
Definition: pcbnew.py:1658
def IsNew(self)
Definition: pcbnew.py:1638
def __lt__(self, aItem)
Definition: pcbnew.py:1816
def IsEntered(self)
Definition: pcbnew.py:1650
def ClearEditFlags(self)
Definition: pcbnew.py:1706
def SetParent(self, aParent)
Definition: pcbnew.py:1630
def GetFocusPosition(self)
Definition: pcbnew.py:1769
def IsType(self, aScanTypes)
Definition: pcbnew.py:1730
def SetForceVisible(self, aEnable)
Definition: pcbnew.py:1734
def Type(self)
Definition: pcbnew.py:1622
def GetMenuImage(self)
Definition: pcbnew.py:1797
def ViewBBox(self)
Definition: pcbnew.py:1825
def HitTest(self, *args)
Definition: pcbnew.py:1750
def GetMsgPanelInfo(self, aFrame, aList)
Definition: pcbnew.py:1742
def IsBrightened(self)
Definition: pcbnew.py:1654
def ClearTempFlags(self)
Definition: pcbnew.py:1714
def SetModified(self)
Definition: pcbnew.py:1678
def GetClass(self)
Definition: pcbnew.py:1785
def XorFlags(self, aMask)
Definition: pcbnew.py:1686
def IsReplaceable(self)
Definition: pcbnew.py:1812
def RenderAsBitmap(self, aWorldScale)
Definition: pcbnew.py:1718
def ViewGetLayers(self, aLayers, aCount)
Definition: pcbnew.py:1829
def ClearBrightened(self)
Definition: pcbnew.py:1674
def ClearFlags(self, *args)
Definition: pcbnew.py:1690
def Replace(self, *args)
Definition: pcbnew.py:1805
def GetParent(self)
Definition: pcbnew.py:1626
def IsShownAsBitmap(self)
Definition: pcbnew.py:1726
def GetSortPosition(self)
Definition: pcbnew.py:1773
def GetEditFlags(self)
Definition: pcbnew.py:1702
def SetIsShownAsBitmap(self, aBitmap)
Definition: pcbnew.py:1722
def IsMoving(self)
Definition: pcbnew.py:1642
def HasFlag(self, aFlag)
Definition: pcbnew.py:1698
def Sort(aLeft, aRight)
Definition: pcbnew.py:1821
def IsSelected(self)
Definition: pcbnew.py:1646
def IsModified(self)
Definition: pcbnew.py:1634
def SetFlags(self, aMask)
Definition: pcbnew.py:1682
def GetTempFlags(self)
Definition: pcbnew.py:1710
def GetTypeDesc(self)
Definition: pcbnew.py:1789
def GetFriendlyName(self)
Definition: pcbnew.py:1746
def Visit(self, inspector, testData, aScanTypes)
Definition: pcbnew.py:1781
def Matches(self, aSearchData, aAuxData)
Definition: pcbnew.py:1801
def GetItemDescription(self, aUnitsProvider)
Definition: pcbnew.py:1793
def GetBoundingBox(self)
Definition: pcbnew.py:1757
def GetPosition(self)
Definition: pcbnew.py:1761
def SetPosition(self, aPos)
Definition: pcbnew.py:1765
def MilsToIU(self, mils)
Definition: pcbnew.py:1884
def __init__(self, aIUPerMM)
Definition: pcbnew.py:1872
def IUTomm(self, iu)
Definition: pcbnew.py:1876
def IUToMils(self, iu)
Definition: pcbnew.py:1888
def mmToIU(self, mm)
Definition: pcbnew.py:1880
def GetArcAngle(self)
Definition: pcbnew.py:15153
def SetCenterX(self, x)
Definition: pcbnew.py:15073
def SetEnd(self, aEnd)
Definition: pcbnew.py:15089
def SHAPE_T_asString(self)
Definition: pcbnew.py:14965
def EndsSwapped(self)
Definition: pcbnew.py:15161
def GetShape(self)
Definition: pcbnew.py:15037
def Similarity(self, aOther)
Definition: pcbnew.py:15268
def SetRight(self, val)
Definition: pcbnew.py:15121
def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:15260
def ShapeGetMsgPanelInfo(self, aFrame, aList)
Definition: pcbnew.py:15228
def GetWidth(self)
Definition: pcbnew.py:15009
def SetStart(self, aStart)
Definition: pcbnew.py:15057
def GetTopLeft(self)
Definition: pcbnew.py:15105
def GetLineColor(self)
Definition: pcbnew.py:15029
def DupPolyPointsList(self, aBuffer)
Definition: pcbnew.py:15193
def SetBezierC2(self, aPt)
Definition: pcbnew.py:15137
def IsFilled(self)
Definition: pcbnew.py:14977
def SetFillColor(self, aColor)
Definition: pcbnew.py:15001
def SetPolyShape(self, aShape)
Definition: pcbnew.py:15212
def GetBotRight(self)
Definition: pcbnew.py:15109
def GetRadius(self)
Definition: pcbnew.py:15177
def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False)
Definition: pcbnew.py:15149
def IsProxyItem(self)
Definition: pcbnew.py:14969
def SetArcGeometry(self, aStart, aMid, aEnd)
Definition: pcbnew.py:15181
def GetStartY(self)
Definition: pcbnew.py:15049
def SwapShape(self, aImage)
Definition: pcbnew.py:14957
def GetFillColor(self)
Definition: pcbnew.py:14997
def CalcArcAngles(self, aStartAngle, aEndAngle)
Definition: pcbnew.py:15173
def SetSegmentAngle(self, aAngle)
Definition: pcbnew.py:15240
def SetLineStyle(self, aStyle)
Definition: pcbnew.py:15017
def SetIsProxyItem(self, aIsProxy=True)
Definition: pcbnew.py:14973
def SetWidth(self, aWidth)
Definition: pcbnew.py:15005
def RebuildBezierToSegmentsPointsList(self, aMinSegLen)
Definition: pcbnew.py:15220
def SetRectangle(self, aHeight, aWidth)
Definition: pcbnew.py:15236
def GetRectangleWidth(self)
Definition: pcbnew.py:15256
def SetCenterY(self, y)
Definition: pcbnew.py:15069
def GetStart(self)
Definition: pcbnew.py:15045
def GetEnd(self)
Definition: pcbnew.py:15077
def GetRectangleHeight(self)
Definition: pcbnew.py:15252
def GetEndY(self)
Definition: pcbnew.py:15081
def SetFilled(self, aFlag)
Definition: pcbnew.py:14981
def SetPolyPoints(self, aPoints)
Definition: pcbnew.py:15216
def IsPolyShapeValid(self)
Definition: pcbnew.py:15208
def SetLength(self, aLength)
Definition: pcbnew.py:15232
def GetPointCount(self)
Definition: pcbnew.py:15197
def GetLength(self)
Definition: pcbnew.py:15248
def GetBezierPoints(self)
Definition: pcbnew.py:15189
def MakeEffectiveShapes(self, aEdgeOnly=False)
Definition: pcbnew.py:15224
def GetRectCorners(self)
Definition: pcbnew.py:15169
def IsClosed(self)
Definition: pcbnew.py:14993
def GetPolyShape(self, *args)
Definition: pcbnew.py:15201
def SetStartX(self, x)
Definition: pcbnew.py:15065
def SetRadius(self, aX)
Definition: pcbnew.py:15101
def SetEndX(self, aX)
Definition: pcbnew.py:15097
def SetTop(self, val)
Definition: pcbnew.py:15113
def Compare(self, aOther)
Definition: pcbnew.py:15264
def SetStartY(self, y)
Definition: pcbnew.py:15061
def SetEndY(self, aY)
Definition: pcbnew.py:15093
def GetBezierC2(self)
Definition: pcbnew.py:15141
def SetCenter(self, aCenter)
Definition: pcbnew.py:15145
def GetLineStyle(self)
Definition: pcbnew.py:15021
def GetFriendlyName(self)
Definition: pcbnew.py:15041
def SetBezierC1(self, aPt)
Definition: pcbnew.py:15129
def GetEndX(self)
Definition: pcbnew.py:15085
def SetLeft(self, val)
Definition: pcbnew.py:15117
def GetFillMode(self)
Definition: pcbnew.py:14989
def ShowShape(self)
Definition: pcbnew.py:14961
def __init__(self, aType, aLineWidth, aFill)
Definition: pcbnew.py:14952
def SetShape(self, aShape)
Definition: pcbnew.py:15033
def SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
Definition: pcbnew.py:15185
def SetFillMode(self, aFill)
Definition: pcbnew.py:14985
def IsClockwiseArc(self)
Definition: pcbnew.py:15244
def SetBottom(self, val)
Definition: pcbnew.py:15125
def __eq__(self, aOther)
Definition: pcbnew.py:15272
def GetArcMid(self)
Definition: pcbnew.py:15165
def SetLineColor(self, aColor)
Definition: pcbnew.py:15025
def GetSegmentAngle(self)
Definition: pcbnew.py:15157
def GetStartX(self)
Definition: pcbnew.py:15053
def GetBezierC1(self)
Definition: pcbnew.py:15133
def GetEffectiveWidth(self)
Definition: pcbnew.py:15013
def SetAttributes(self, *args)
Definition: pcbnew.py:2815
def SetTextSize(self, aNewSize, aEnforceMinTextSize=True)
Definition: pcbnew.py:2862
def GetTextStyleName(self)
Definition: pcbnew.py:2951
def GetTextWidth(self)
Definition: pcbnew.py:2874
def GetHyperlink(self)
Definition: pcbnew.py:3019
def GotoPageHref(aDestination)
Definition: pcbnew.py:3042
def SetTextX(self, aX)
Definition: pcbnew.py:2902
def SetText(self, aText)
Definition: pcbnew.py:2695
def GetLinePositions(self, aPositions, aLineCount)
Definition: pcbnew.py:2955
def Offset(self, aOffset)
Definition: pcbnew.py:2910
def GetHorizJustify(self)
Definition: pcbnew.py:2779
def IsDefaultFormatting(self)
Definition: pcbnew.py:2830
def __eq__(self, aRhs)
Definition: pcbnew.py:3003
def SetVertJustify(self, aType)
Definition: pcbnew.py:2783
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:2687
def GetFontName(self)
Definition: pcbnew.py:2842
def Similarity(self, aOther)
Definition: pcbnew.py:2963
def SetMultilineAllowed(self, aAllow)
Definition: pcbnew.py:2767
def GetTextBox(self, aLine=-1, aInvertY=False)
Definition: pcbnew.py:2943
def SetTextThickness(self, aWidth)
Definition: pcbnew.py:2699
def GetTextThickness(self)
Definition: pcbnew.py:2703
def SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset)
Definition: pcbnew.py:2991
def Replace(self, aSearchData)
Definition: pcbnew.py:2826
def SetTextAngleDegrees(self, aOrientation)
Definition: pcbnew.py:2719
def IsMultilineAllowed(self)
Definition: pcbnew.py:2771
def SetFont(self, aFont)
Definition: pcbnew.py:2834
def IsKeepUpright(self)
Definition: pcbnew.py:2795
def ClearBoundingBoxCache(self)
Definition: pcbnew.py:2983
def SetBold(self, aBold)
Definition: pcbnew.py:2739
def SwapText(self, aTradingPartner)
Definition: pcbnew.py:2807
def SetTextPos(self, aPoint)
Definition: pcbnew.py:2894
def AddRenderCacheGlyph(self, aPoly)
Definition: pcbnew.py:2995
def HasHyperlink(self)
Definition: pcbnew.py:3015
def Empty(self)
Definition: pcbnew.py:2914
def GetAttributes(self)
Definition: pcbnew.py:2822
def SetTextHeight(self, aHeight)
Definition: pcbnew.py:2878
def GetTextAngle(self)
Definition: pcbnew.py:2715
def SetKeepUpright(self, aKeepUpright)
Definition: pcbnew.py:2791
def GetRenderCache(self, *args)
Definition: pcbnew.py:2987
def GetVertJustify(self)
Definition: pcbnew.py:2787
def __gt__(self, aRhs)
Definition: pcbnew.py:3011
def SetVisible(self, aVisible)
Definition: pcbnew.py:2751
def GetTextPos(self)
Definition: pcbnew.py:2898
def SetTextColor(self, aColor)
Definition: pcbnew.py:2886
def SetTextAngle(self, aAngle)
Definition: pcbnew.py:2711
def SwapAttributes(self, aTradingPartner)
Definition: pcbnew.py:2803
def SetFontIndex(self, aIdx)
Definition: pcbnew.py:2846
def ClearRenderCache(self)
Definition: pcbnew.py:2979
def RemoveHyperlink(self)
Definition: pcbnew.py:3027
def GetText(self)
Definition: pcbnew.py:2683
def TextHitTest(self, *args)
Definition: pcbnew.py:2936
def GetLineSpacing(self)
Definition: pcbnew.py:2858
def IsVisible(self)
Definition: pcbnew.py:2755
def IsItalic(self)
Definition: pcbnew.py:2735
def __lt__(self, aRhs)
Definition: pcbnew.py:3007
def Format(self, aFormatter, aNestLevel, aControlBits)
Definition: pcbnew.py:2967
def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0)
Definition: pcbnew.py:2707
def ValidateHyperlink(aURL)
Definition: pcbnew.py:3032
def SetTextY(self, aY)
Definition: pcbnew.py:2906
def SetHyperlink(self, aLink)
Definition: pcbnew.py:3023
def GetDrawPos(self)
Definition: pcbnew.py:2975
def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED)
Definition: pcbnew.py:2928
def SetHorizJustify(self, aType)
Definition: pcbnew.py:2775
def GetFontIndex(self)
Definition: pcbnew.py:2850
def CopyText(self, aSrc)
Definition: pcbnew.py:2811
def GetTextColor(self)
Definition: pcbnew.py:2890
def GetFont(self)
Definition: pcbnew.py:2838
def GetTextAngleDegrees(self)
Definition: pcbnew.py:2723
def SetItalicFlag(self, aItalic)
Definition: pcbnew.py:2731
def __init__(self, *args)
Definition: pcbnew.py:2675
def SetBoldFlag(self, aBold)
Definition: pcbnew.py:2743
def Levenshtein(self, aOther)
Definition: pcbnew.py:2959
def MapVertJustify(aVertJustify)
Definition: pcbnew.py:2924
def HasTextVars(self)
Definition: pcbnew.py:2691
def SetTextWidth(self, aWidth)
Definition: pcbnew.py:2870
def GetTextHeight(self)
Definition: pcbnew.py:2882
def SetMirrored(self, isMirrored)
Definition: pcbnew.py:2759
def GetEffectiveTextShape(self, *args)
Definition: pcbnew.py:2932
def SetItalic(self, aItalic)
Definition: pcbnew.py:2727
def GetTextSize(self)
Definition: pcbnew.py:2866
def IsGotoPageHref(aHref, aDestination=None)
Definition: pcbnew.py:3037
def IsBold(self)
Definition: pcbnew.py:2747
def SetLineSpacing(self, aLineSpacing)
Definition: pcbnew.py:2854
def IsMirrored(self)
Definition: pcbnew.py:2763
def Compare(self, aOther)
Definition: pcbnew.py:2999
def GetDrawRotation(self)
Definition: pcbnew.py:2971
def GetInterline(self)
Definition: pcbnew.py:2947
def MapHorizJustify(aHorizJustify)
Definition: pcbnew.py:2919
def FlipHJustify(self)
Definition: pcbnew.py:2799
def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
Definition: pcbnew.py:9353
def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
Definition: pcbnew.py:9361
def SetFormat(self, *args)
Definition: pcbnew.py:9357
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:9365
def GetOffset(self)
Definition: pcbnew.py:9349
def __init__(self, aPcb)
Definition: pcbnew.py:9344
def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:9200
def __init__(self, aBoard)
Definition: pcbnew.py:9195
def __init__(self, *args)
Definition: pcbnew.py:2108
def FileLength(self)
Definition: pcbnew.py:2120
def __init__(self, *args)
Definition: pcbnew.py:2228
def append(self, x)
Definition: pcbnew.py:11915
def iterator(self)
Definition: pcbnew.py:11856
def clear(self)
Definition: pcbnew.py:11947
def front(self)
Definition: pcbnew.py:11979
def pop_front(self)
Definition: pcbnew.py:12005
def end(self)
Definition: pcbnew.py:11935
def rbegin(self)
Definition: pcbnew.py:11939
def pop_back(self)
Definition: pcbnew.py:11955
def empty(self)
Definition: pcbnew.py:11919
def swap(self, v)
Definition: pcbnew.py:11927
def resize(self, *args)
Definition: pcbnew.py:11991
def __len__(self)
Definition: pcbnew.py:11870
def __setitem__(self, *args)
Definition: pcbnew.py:11903
def __setslice__(self, *args)
Definition: pcbnew.py:11878
def push_back(self, x)
Definition: pcbnew.py:11975
def begin(self)
Definition: pcbnew.py:11931
def push_front(self, x)
Definition: pcbnew.py:12009
def __init__(self, *args)
Definition: pcbnew.py:11966
def __iter__(self)
Definition: pcbnew.py:11859
def back(self)
Definition: pcbnew.py:11983
def __bool__(self)
Definition: pcbnew.py:11866
def __getitem__(self, *args)
Definition: pcbnew.py:11896
def assign(self, n, x)
Definition: pcbnew.py:11987
def insert(self, *args)
Definition: pcbnew.py:11998
def get_allocator(self)
Definition: pcbnew.py:11951
def __delitem__(self, *args)
Definition: pcbnew.py:11889
def rend(self)
Definition: pcbnew.py:11943
def __getslice__(self, i, j)
Definition: pcbnew.py:11874
def __delslice__(self, i, j)
Definition: pcbnew.py:11885
def erase(self, *args)
Definition: pcbnew.py:11959
def pop(self)
Definition: pcbnew.py:11911
def size(self)
Definition: pcbnew.py:11923
def __nonzero__(self)
Definition: pcbnew.py:11862
def CheckFootprintAttributes(self, aErrorHandler)
Definition: pcbnew.py:19018
def Models(self, *args)
Definition: pcbnew.py:18800
def IsExcludedFromBOM(self)
Definition: pcbnew.py:19188
def IsExcludedFromPosFiles(self)
Definition: pcbnew.py:19180
def LegacyPadsLocked(self)
Definition: pcbnew.py:19014
def GetFields(self, *args)
Definition: pcbnew.py:19148
def GetPadCount(self, *args)
Definition: pcbnew.py:19232
def GetUniquePadNumbers(self, *args)
Definition: pcbnew.py:19240
def GetFieldsShownText(self)
Definition: pcbnew.py:19345
def CoverageRatio(self, aCollector)
Definition: pcbnew.py:19302
def GetPad(self, *args)
Definition: pcbnew.py:19224
def SetSheetfile(self, aSheetfile)
Definition: pcbnew.py:18879
def MapPadNumbersToNetTieGroups(self)
Definition: pcbnew.py:18970
def GetBoundingBox(self, *args)
Definition: pcbnew.py:18750
def GetAttributes(self)
Definition: pcbnew.py:18934
def Value(self, *args)
Definition: pcbnew.py:19104
def SetAttributes(self, aAttributes)
Definition: pcbnew.py:18938
def GetPrivateLayers(self)
Definition: pcbnew.py:18718
def GetSide(self)
Definition: pcbnew.py:18990
def ClearAllNets(self)
Definition: pcbnew.py:18734
def SetAllowMissingCourtyard(self, aAllow=True)
Definition: pcbnew.py:19200
def FootprintNeedsUpdate(self, aLibFP, aCompareFlags=0, aReporter=None)
Definition: pcbnew.py:19294
def CheckPads(self, aUnitsProvider, aErrorHandler)
Definition: pcbnew.py:19022
def GetSheetfile(self)
Definition: pcbnew.py:18875
def AddNative(self, *args)
Definition: pcbnew.py:18726
def SetFPID(self, aFPID)
Definition: pcbnew.py:18831
def StringLibNameInvalidChars(aUserReadable)
Definition: pcbnew.py:19290
def SetField(self, key, value)
Definition: pcbnew.py:19364
def GetFieldText(self, aFieldName)
Definition: pcbnew.py:19144
def ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes)
Definition: pcbnew.py:19168
def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
Definition: pcbnew.py:19046
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:19050
def Footprint(self, *args)
Definition: pcbnew.py:19118
def GetReferenceAsString(self)
Definition: pcbnew.py:19084
def Fields(self, *args)
Definition: pcbnew.py:18761
def NeedsPlaced(self)
Definition: pcbnew.py:19006
def SetKeywords(self, aKeywords)
Definition: pcbnew.py:18855
def MoveAnchorPosition(self, aMoveVector)
Definition: pcbnew.py:18982
def GetTypeName(self)
Definition: pcbnew.py:19252
def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None)
Definition: pcbnew.py:19220
def SetFPIDAsString(self, aFPID)
Definition: pcbnew.py:18839
def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False)
Definition: pcbnew.py:19042
def SetReference(self, aReference)
Definition: pcbnew.py:19080
def GetLibDescription(self)
Definition: pcbnew.py:18843
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:18918
def GetCoverageArea(aItem, aCollector)
Definition: pcbnew.py:19307
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:18819
def AutoPositionFields(self)
Definition: pcbnew.py:19248
def GetLink(self)
Definition: pcbnew.py:19260
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:19280
def GetValue(self)
Definition: pcbnew.py:19092
def CheckNetTiePadGroups(self, aErrorHandler)
Definition: pcbnew.py:19034
def RemoveNative(self, *args)
Definition: pcbnew.py:18730
def GetLikelyAttribute(self)
Definition: pcbnew.py:18978
def GetCourtyard(self, aLayer)
Definition: pcbnew.py:19315
def DuplicateItem(self, aItem, aAddToFootprint=False)
Definition: pcbnew.py:19268
def IsConflicting(self)
Definition: pcbnew.py:18994
def HasThroughHolePads(self)
Definition: pcbnew.py:18796
def Zones(self, *args)
Definition: pcbnew.py:18782
def SetValue(self, aValue)
Definition: pcbnew.py:19096
def GetFieldsText(self)
Definition: pcbnew.py:19340
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:18895
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:18899
def SetFlag(self, aFlag)
Definition: pcbnew.py:18942
def GetLocalClearance(self, *args)
Definition: pcbnew.py:18903
def SetIsPlaced(self, isPlaced)
Definition: pcbnew.py:19002
def GetNetTiePadGroups(self)
Definition: pcbnew.py:18958
def GetNetTiePads(self, aPad)
Definition: pcbnew.py:18974
def __init__(self, *args)
Definition: pcbnew.py:18704
def AddNetTiePadGroup(self, aGroup)
Definition: pcbnew.py:18966
def FixUuids(self)
Definition: pcbnew.py:18738
def IsDNP(self)
Definition: pcbnew.py:19204
def ResolveTextVar(self, token, aDepth=0)
Definition: pcbnew.py:19054
def Groups(self, *args)
Definition: pcbnew.py:18789
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:18910
def AllowMissingCourtyard(self)
Definition: pcbnew.py:19196
def GetFieldShownText(self, key)
Definition: pcbnew.py:19357
def CheckShortingPads(self, aErrorHandler)
Definition: pcbnew.py:19026
def GetFieldById(self, aFieldId)
Definition: pcbnew.py:19132
def GetInitialComments(self)
Definition: pcbnew.py:19311
def GetSheetname(self)
Definition: pcbnew.py:18867
def GetNextPadNumber(self, aLastPadName)
Definition: pcbnew.py:19244
def HasFieldByName(self, aFieldName)
Definition: pcbnew.py:19140
def GetValueAsString(self)
Definition: pcbnew.py:19100
def GetReference(self)
Definition: pcbnew.py:19076
def CheckNetTies(self, aErrorHandler)
Definition: pcbnew.py:19030
def Pads(self, *args)
Definition: pcbnew.py:18768
def SetNeedsPlaced(self, needsPlaced)
Definition: pcbnew.py:19010
def GetFPIDAsString(self)
Definition: pcbnew.py:18835
def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False, aSkipPlatedPads=False, aSkipNonPlatedPads=False)
Definition: pcbnew.py:19038
def GetPads(self, aPadNumber, aIgnore=None)
Definition: pcbnew.py:19228
def GetUniquePadCount(self, *args)
Definition: pcbnew.py:19236
def SetExcludedFromBOM(self, aExclude=True)
Definition: pcbnew.py:19192
def BuildCourtyardCaches(self, aErrorHandler=None)
Definition: pcbnew.py:19323
def GetKeywords(self)
Definition: pcbnew.py:18851
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:19327
def AddField(self, aField)
Definition: pcbnew.py:19156
def SetLink(self, aLink)
Definition: pcbnew.py:19264
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:19212
def IncrementReference(self, aDelta)
Definition: pcbnew.py:19088
def SetPath(self, aPath)
Definition: pcbnew.py:18863
def GetFilters(self)
Definition: pcbnew.py:18883
def SetExcludedFromPosFiles(self, aExclude=True)
Definition: pcbnew.py:19184
def SetFilters(self, aFilters)
Definition: pcbnew.py:18887
def GetLayerBoundingBox(self, aLayers)
Definition: pcbnew.py:18757
def GraphicalItems(self, *args)
Definition: pcbnew.py:18775
def GetBoundingHull(self)
Definition: pcbnew.py:18746
def IsBoardOnly(self)
Definition: pcbnew.py:19172
def SetSheetname(self, aSheetname)
Definition: pcbnew.py:18871
def SetOrientation(self, aNewAngle)
Definition: pcbnew.py:18807
def IsNetTie(self)
Definition: pcbnew.py:18954
def GetPath(self)
Definition: pcbnew.py:18859
def SetZoneConnection(self, aType)
Definition: pcbnew.py:18926
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:18914
def SetFields(self, fields)
Definition: pcbnew.py:19375
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:19276
def ClearNetTiePadGroups(self)
Definition: pcbnew.py:18962
def GetOrientationDegrees(self)
Definition: pcbnew.py:18823
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:19216
def Reference(self, *args)
Definition: pcbnew.py:19111
def GetZoneConnection(self)
Definition: pcbnew.py:18930
def IsFlipped(self)
Definition: pcbnew.py:18986
def GetFieldByName(self, aFieldName)
Definition: pcbnew.py:19136
def Add3DModel(self, a3DModel)
Definition: pcbnew.py:19272
def HitTest(self, *args)
Definition: pcbnew.py:19062
def GetFieldCount(self)
Definition: pcbnew.py:19164
def GetFlag(self)
Definition: pcbnew.py:18950
def RemoveField(self, aFieldName)
Definition: pcbnew.py:19160
def SetInitialComments(self, aInitialComments)
Definition: pcbnew.py:19298
def IsPlaced(self)
Definition: pcbnew.py:18998
def HasField(self, key)
Definition: pcbnew.py:19372
def GetOrientation(self)
Definition: pcbnew.py:18811
def SetPrivateLayers(self, aLayers)
Definition: pcbnew.py:18722
def HitTestAccurate(self, aPosition, aAccuracy=0)
Definition: pcbnew.py:19058
def SetLayerAndFlip(self, aLayer)
Definition: pcbnew.py:18815
def SetLibDescription(self, aDesc)
Definition: pcbnew.py:18847
def IncrementFlag(self)
Definition: pcbnew.py:18946
def GetField(self, *args)
Definition: pcbnew.py:19125
def SetDNP(self, aDNP=True)
Definition: pcbnew.py:19208
def IsLibNameValid(aName)
Definition: pcbnew.py:19285
def SetBoardOnly(self, aIsBoardOnly=True)
Definition: pcbnew.py:19176
def HitTestOnLayer(self, *args)
Definition: pcbnew.py:19069
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:18922
def GetFPID(self)
Definition: pcbnew.py:18827
def ClassOf(aItem)
Definition: pcbnew.py:18714
def GetArea(self, aPadding=0)
Definition: pcbnew.py:19256
def GetFpPadsLocalBbox(self)
Definition: pcbnew.py:18742
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:18891
def GetCachedCourtyard(self, aLayer)
Definition: pcbnew.py:19319
def __eq__(self, aOther)
Definition: pcbnew.py:18690
def __init__(self)
Definition: pcbnew.py:18680
def GetFootprint(self)
Definition: pcbnew.py:8185
def __init__(self, aFootprint, aFileName)
Definition: pcbnew.py:8173
def SetFilePath(self, aFilePath)
Definition: pcbnew.py:8181
def GetFileName(self)
Definition: pcbnew.py:8177
def GetFootprints(self)
Definition: pcbnew.py:8215
def __init__(self, aOwner, aLibraryPath)
Definition: pcbnew.py:8199
def Remove(self, aFootprintName)
Definition: pcbnew.py:8227
def IsPath(self, aPath)
Definition: pcbnew.py:8240
def Save(self, aFootprint=None)
Definition: pcbnew.py:8219
def IsWritable(self)
Definition: pcbnew.py:8207
def Exists(self)
Definition: pcbnew.py:8211
def GetPath(self)
Definition: pcbnew.py:8203
def Load(self)
Definition: pcbnew.py:8223
def GetTimestamp(aLibPath)
Definition: pcbnew.py:8232
def IsModified(self)
Definition: pcbnew.py:8236
def SetPath(self, aPath)
Definition: pcbnew.py:8244
def __init__(self)
Definition: pcbnew.py:4816
def __init__(self, page, name, units, default, **kwarg)
Definition: pcbnew.py:4841
def Check(self, min_value=None, max_value=None, multiple=None, info=None)
Definition: pcbnew.py:4875
def SetValue(self, new_value)
Definition: pcbnew.py:4949
def AddError(self, err, info=None)
Definition: pcbnew.py:4866
def CheckParam(self, page, name, **kwarg)
Definition: pcbnew.py:5043
def GetParameterPageName(self, page_n)
Definition: pcbnew.py:5061
def GetParameterValues(self, page_index)
Definition: pcbnew.py:5084
def GetParameterErrors(self, page_index)
Definition: pcbnew.py:5088
def SetParameterValues(self, page_index, list_of_values)
Definition: pcbnew.py:5104
def GetParametersByPageIndex(self, page_index)
Definition: pcbnew.py:5073
def GetParam(self, page, name)
Definition: pcbnew.py:5036
def GetNumParameterPages(self)
Definition: pcbnew.py:5058
def GetParametersByPageName(self, page_name)
Definition: pcbnew.py:5064
def GetParameterNames(self, page_index)
Definition: pcbnew.py:5080
def GetParameterDesignators(self, page_index)
Definition: pcbnew.py:5076
def AddParam(self, page, name, unit, default, **kwarg)
Definition: pcbnew.py:4994
def GetParameterHints(self, page_index)
Definition: pcbnew.py:5096
def GetParameterTypes(self, page_index)
Definition: pcbnew.py:5092
def DefaultVisible()
Definition: pcbnew.py:3402
def Contains(self, aPos)
Definition: pcbnew.py:3393
def set(self, *args)
Definition: pcbnew.py:3385
def __init__(self, *args)
Definition: pcbnew.py:3377
def Seq(self)
Definition: pcbnew.py:3397
def GenDrillReportFile(self, aFullFileName)
Definition: pcbnew.py:9327
def SetMapFileFormat(self, aMapFmt)
Definition: pcbnew.py:9319
def CreateMapFilesSet(self, aPlotDirectory, aReporter=None)
Definition: pcbnew.py:9323
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9288
def SetPageInfo(self, aPageInfo)
Definition: pcbnew.py:9315
def SetMergeOption(self, aMerge)
Definition: pcbnew.py:9307
def __iter__(self)
Definition: pcbnew.py:12193
def pop_back(self)
Definition: pcbnew.py:12289
def resize(self, *args)
Definition: pcbnew.py:12325
def __bool__(self)
Definition: pcbnew.py:12200
def empty(self)
Definition: pcbnew.py:12253
def append(self, x)
Definition: pcbnew.py:12249
def front(self)
Definition: pcbnew.py:12313
def iterator(self)
Definition: pcbnew.py:12190
def rbegin(self)
Definition: pcbnew.py:12273
def __delitem__(self, *args)
Definition: pcbnew.py:12223
def clear(self)
Definition: pcbnew.py:12281
def __nonzero__(self)
Definition: pcbnew.py:12196
def __getslice__(self, i, j)
Definition: pcbnew.py:12208
def get_allocator(self)
Definition: pcbnew.py:12285
def rend(self)
Definition: pcbnew.py:12277
def swap(self, v)
Definition: pcbnew.py:12261
def insert(self, *args)
Definition: pcbnew.py:12332
def __delslice__(self, i, j)
Definition: pcbnew.py:12219
def begin(self)
Definition: pcbnew.py:12265
def assign(self, n, x)
Definition: pcbnew.py:12321
def size(self)
Definition: pcbnew.py:12257
def pop_front(self)
Definition: pcbnew.py:12339
def __setslice__(self, *args)
Definition: pcbnew.py:12212
def __getitem__(self, *args)
Definition: pcbnew.py:12230
def push_front(self, x)
Definition: pcbnew.py:12343
def back(self)
Definition: pcbnew.py:12317
def __init__(self, *args)
Definition: pcbnew.py:12300
def __len__(self)
Definition: pcbnew.py:12204
def pop(self)
Definition: pcbnew.py:12245
def __setitem__(self, *args)
Definition: pcbnew.py:12237
def erase(self, *args)
Definition: pcbnew.py:12293
def end(self)
Definition: pcbnew.py:12269
def push_back(self, x)
Definition: pcbnew.py:12309
def CreateJobFile(self, aFullFilename)
Definition: pcbnew.py:9437
def __init__(self, aPcb, aReporter=None)
Definition: pcbnew.py:9428
def WriteJSONJobFile(self, aFullFilename)
Definition: pcbnew.py:9441
def AddGbrFile(self, aLayer, aFilename)
Definition: pcbnew.py:9433
def SetFormat(self, aRightDigits=6)
Definition: pcbnew.py:9383
def __init__(self, aPcb)
Definition: pcbnew.py:9378
def SetOptions(self, aOffset)
Definition: pcbnew.py:9387
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:9391
def get_allocator(self)
Definition: pcbnew.py:12118
def __bool__(self)
Definition: pcbnew.py:12033
def __getitem__(self, *args)
Definition: pcbnew.py:12063
def push_back(self, x)
Definition: pcbnew.py:12142
def __delitem__(self, *args)
Definition: pcbnew.py:12056
def __setitem__(self, *args)
Definition: pcbnew.py:12070
def erase(self, *args)
Definition: pcbnew.py:12126
def size(self)
Definition: pcbnew.py:12090
def __getslice__(self, i, j)
Definition: pcbnew.py:12041
def front(self)
Definition: pcbnew.py:12146
def pop_front(self)
Definition: pcbnew.py:12172
def swap(self, v)
Definition: pcbnew.py:12094
def end(self)
Definition: pcbnew.py:12102
def pop(self)
Definition: pcbnew.py:12078
def insert(self, *args)
Definition: pcbnew.py:12165
def __init__(self, *args)
Definition: pcbnew.py:12133
def __delslice__(self, i, j)
Definition: pcbnew.py:12052
def __nonzero__(self)
Definition: pcbnew.py:12029
def assign(self, n, x)
Definition: pcbnew.py:12154
def push_front(self, x)
Definition: pcbnew.py:12176
def append(self, x)
Definition: pcbnew.py:12082
def __len__(self)
Definition: pcbnew.py:12037
def __iter__(self)
Definition: pcbnew.py:12026
def clear(self)
Definition: pcbnew.py:12114
def resize(self, *args)
Definition: pcbnew.py:12158
def back(self)
Definition: pcbnew.py:12150
def pop_back(self)
Definition: pcbnew.py:12122
def __setslice__(self, *args)
Definition: pcbnew.py:12045
def rend(self)
Definition: pcbnew.py:12110
def empty(self)
Definition: pcbnew.py:12086
def rbegin(self)
Definition: pcbnew.py:12106
def begin(self)
Definition: pcbnew.py:12098
def iterator(self)
Definition: pcbnew.py:12023
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:17782
def __init__(self)
Definition: pcbnew.py:9244
def __init__(self, aStream, aSource)
Definition: pcbnew.py:2154
def __init__(self, *args)
Definition: pcbnew.py:453
def Where(self)
Definition: pcbnew.py:468
def What(self)
Definition: pcbnew.py:472
def Problem(self)
Definition: pcbnew.py:464
def init(self, aProblem, aThrowersFile, aThrowersFunction, aThrowersLineNumber)
Definition: pcbnew.py:460
def __init__(self, aPcb, aParent=None)
Definition: pcbnew.py:9133
def Write(self, aFilename)
Definition: pcbnew.py:9138
def __init__(self)
Definition: pcbnew.py:9414
def MakeRelativeTo(self, aPath)
Definition: pcbnew.py:1320
def __iadd__(self, aRhs)
Definition: pcbnew.py:1344
def EndsWith(self, aPath)
Definition: pcbnew.py:1324
def __init__(self, *args)
Definition: pcbnew.py:1313
def AsString(self)
Definition: pcbnew.py:1328
def __eq__(self, rhs)
Definition: pcbnew.py:1332
def __gt__(self, rhs)
Definition: pcbnew.py:1340
def __lt__(self, rhs)
Definition: pcbnew.py:1336
def swap(self, v)
Definition: pcbnew.py:1217
def rbegin(self)
Definition: pcbnew.py:1229
def __setitem__(self, *args)
Definition: pcbnew.py:1193
def __delitem__(self, *args)
Definition: pcbnew.py:1179
def erase(self, *args)
Definition: pcbnew.py:1249
def __iter__(self)
Definition: pcbnew.py:1149
def insert(self, *args)
Definition: pcbnew.py:1288
def push_back(self, x)
Definition: pcbnew.py:1265
def resize(self, *args)
Definition: pcbnew.py:1281
def reserve(self, n)
Definition: pcbnew.py:1295
def __init__(self, *args)
Definition: pcbnew.py:1256
def __nonzero__(self)
Definition: pcbnew.py:1152
def assign(self, n, x)
Definition: pcbnew.py:1277
def __getitem__(self, *args)
Definition: pcbnew.py:1186
def pop_back(self)
Definition: pcbnew.py:1245
def get_allocator(self)
Definition: pcbnew.py:1241
def __bool__(self)
Definition: pcbnew.py:1156
def iterator(self)
Definition: pcbnew.py:1146
def capacity(self)
Definition: pcbnew.py:1299
def __len__(self)
Definition: pcbnew.py:1160
def __setslice__(self, *args)
Definition: pcbnew.py:1168
def __getslice__(self, i, j)
Definition: pcbnew.py:1164
def __delslice__(self, i, j)
Definition: pcbnew.py:1175
def append(self, x)
Definition: pcbnew.py:1205
def CreateNilUuids(aNil=True)
Definition: pcbnew.py:1087
def AsString(self)
Definition: pcbnew.py:1073
def ConvertTimestampToUuid(self)
Definition: pcbnew.py:1096
def __ne__(self, rhs)
Definition: pcbnew.py:1108
def AsLegacyTimestampString(self)
Definition: pcbnew.py:1077
def Hash(self)
Definition: pcbnew.py:1061
def Clone(self, aUUID)
Definition: pcbnew.py:1057
def SniffTest(aCandidate)
Definition: pcbnew.py:1082
def IsLegacyTimestamp(self)
Definition: pcbnew.py:1065
def AsLegacyTimestamp(self)
Definition: pcbnew.py:1069
def __init__(self, *args)
Definition: pcbnew.py:1046
def __lt__(self, rhs)
Definition: pcbnew.py:1112
def __eq__(self, rhs)
Definition: pcbnew.py:1104
def __gt__(self, rhs)
Definition: pcbnew.py:1116
def Increment(self)
Definition: pcbnew.py:1100
def SeedGenerator(aSeed)
Definition: pcbnew.py:1092
def __init__(self, *args)
Definition: pcbnew.py:432
def What(self)
Definition: pcbnew.py:439
def GetPluginPath(self)
Definition: pcbnew.py:4811
def deregister(self)
Definition: pcbnew.py:4797
def __init__(self)
Definition: pcbnew.py:4769
def register(self)
Definition: pcbnew.py:4772
def clear(self)
Definition: pcbnew.py:17746
def __init__(self)
Definition: pcbnew.py:17742
def ShowType(aType)
Definition: pcbnew.py:17756
def ParseType(aType)
Definition: pcbnew.py:17761
def IsLegacy(self)
Definition: pcbnew.py:7855
def GetSubLibraryName(self)
Definition: pcbnew.py:7823
def GetLibNickname(self)
Definition: pcbnew.py:7799
def SetLibItemName(self, aLibItemName)
Definition: pcbnew.py:7819
def HasIllegalChars(aLibItemName)
Definition: pcbnew.py:7888
def GetUniStringLibId(self)
Definition: pcbnew.py:7839
def SetSubLibraryName(self, aName)
Definition: pcbnew.py:7827
def clear(self)
Definition: pcbnew.py:7859
def GetUniStringSubLibraryName(self)
Definition: pcbnew.py:7831
def __init__(self, *args)
Definition: pcbnew.py:7788
def FindIllegalLibraryNameChar(aLibraryName)
Definition: pcbnew.py:7898
def empty(self)
Definition: pcbnew.py:7863
def __eq__(self, aLibId)
Definition: pcbnew.py:7879
def FixIllegalChars(aLibItemName, aLib)
Definition: pcbnew.py:7893
def __gt__(self, aLibId)
Definition: pcbnew.py:7875
def GetFullLibraryName(self)
Definition: pcbnew.py:7835
def Format(*args)
Definition: pcbnew.py:7844
def IsValid(self)
Definition: pcbnew.py:7851
def Parse(self, aId, aFix=False)
Definition: pcbnew.py:7795
def GetUniStringLibItemName(self)
Definition: pcbnew.py:7815
def GetLibItemName(self)
Definition: pcbnew.py:7811
def __ne__(self, aLibId)
Definition: pcbnew.py:7883
def compare(self, aLibId)
Definition: pcbnew.py:7867
def SetLibNickname(self, aLibNickname)
Definition: pcbnew.py:7807
def GetUniStringLibNickname(self)
Definition: pcbnew.py:7803
def __lt__(self, aLibId)
Definition: pcbnew.py:7871
def LineNumber(self)
Definition: pcbnew.py:2086
def Line(self)
Definition: pcbnew.py:2082
def Length(self)
Definition: pcbnew.py:2090
def ReadLine(self)
Definition: pcbnew.py:2074
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:2069
def GetSource(self)
Definition: pcbnew.py:2078
def __nonzero__(self)
Definition: pcbnew.py:3602
def Rewind(self)
Definition: pcbnew.py:3598
def TestLayers(self, aRhs, aLhs)
Definition: pcbnew.py:3612
def __init__(self, *args)
Definition: pcbnew.py:3591
def __ref__(self)
Definition: pcbnew.py:3608
def BackAssembly()
Definition: pcbnew.py:3657
def Contains(self, aLayer)
Definition: pcbnew.py:3637
def RemoveLayer(self, layer)
Definition: pcbnew.py:3820
def PhysicalLayersMask()
Definition: pcbnew.py:3732
def BackTechMask()
Definition: pcbnew.py:3692
def FmtHex(self)
Definition: pcbnew.py:3782
def addLayer(self, aLayer)
Definition: pcbnew.py:3798
def Seq(self, *args)
Definition: pcbnew.py:3766
def SeqStackupForPlotting(self)
Definition: pcbnew.py:3778
def AddLayer(self, layer)
Definition: pcbnew.py:3814
def SideSpecificMask()
Definition: pcbnew.py:3722
def UIOrder(self)
Definition: pcbnew.py:3762
def ParseHex(self, aStart, aCount)
Definition: pcbnew.py:3786
def AllCuMask(*args)
Definition: pcbnew.py:3662
def AllTechMask()
Definition: pcbnew.py:3702
def addLayerSet(self, aLayerSet)
Definition: pcbnew.py:3806
def AllBoardTechMask()
Definition: pcbnew.py:3707
def AllNonCuMask()
Definition: pcbnew.py:3672
def CuStack(self)
Definition: pcbnew.py:3746
def ForbiddenFootprintLayers()
Definition: pcbnew.py:3742
def removeLayerSet(self, aLayerSet)
Definition: pcbnew.py:3810
def AllLayersMask()
Definition: pcbnew.py:3677
def AddLayerSet(self, layers)
Definition: pcbnew.py:3817
def __init__(self, *args)
Definition: pcbnew.py:3626
def InternalCuMask()
Definition: pcbnew.py:3647
def FrontTechMask()
Definition: pcbnew.py:3682
def TechAndUserUIOrder(self)
Definition: pcbnew.py:3758
def UserDefinedLayers()
Definition: pcbnew.py:3737
def BackBoardTechMask()
Definition: pcbnew.py:3697
def FrontAssembly()
Definition: pcbnew.py:3652
def ExternalCuMask()
Definition: pcbnew.py:3667
def BackMask()
Definition: pcbnew.py:3717
def UserMask()
Definition: pcbnew.py:3727
def FrontMask()
Definition: pcbnew.py:3712
def Users(self)
Definition: pcbnew.py:3754
def ExtractLayer(self)
Definition: pcbnew.py:3794
def FrontBoardTechMask()
Definition: pcbnew.py:3687
def FmtBin(self)
Definition: pcbnew.py:3790
def removeLayer(self, aLayer)
Definition: pcbnew.py:3802
def Name(aLayerId)
Definition: pcbnew.py:3642
def RemoveLayerSet(self, layers)
Definition: pcbnew.py:3823
def Technicals(self, *args)
Definition: pcbnew.py:3750
def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:3774
def count(self, x)
Definition: pcbnew.py:18624
def has_key(self, key)
Definition: pcbnew.py:18541
def __delitem__(self, key)
Definition: pcbnew.py:18537
def erase(self, *args)
Definition: pcbnew.py:18628
def __contains__(self, key)
Definition: pcbnew.py:18557
def upper_bound(self, x)
Definition: pcbnew.py:18644
def __setitem__(self, *args)
Definition: pcbnew.py:18569
def value_iterator(self)
Definition: pcbnew.py:18565
def __init__(self, *args)
Definition: pcbnew.py:18580
def __getitem__(self, key)
Definition: pcbnew.py:18533
def lower_bound(self, x)
Definition: pcbnew.py:18640
def back(self)
Definition: pcbnew.py:11472
def empty(self)
Definition: pcbnew.py:11408
def __len__(self)
Definition: pcbnew.py:11359
def capacity(self)
Definition: pcbnew.py:11498
def __getslice__(self, i, j)
Definition: pcbnew.py:11363
def pop(self)
Definition: pcbnew.py:11400
def __delitem__(self, *args)
Definition: pcbnew.py:11378
def __nonzero__(self)
Definition: pcbnew.py:11351
def __iter__(self)
Definition: pcbnew.py:11348
def rend(self)
Definition: pcbnew.py:11432
def __init__(self, *args)
Definition: pcbnew.py:11455
def size(self)
Definition: pcbnew.py:11412
def begin(self)
Definition: pcbnew.py:11420
def resize(self, *args)
Definition: pcbnew.py:11480
def front(self)
Definition: pcbnew.py:11468
def append(self, x)
Definition: pcbnew.py:11404
def get_allocator(self)
Definition: pcbnew.py:11440
def swap(self, v)
Definition: pcbnew.py:11416
def __setitem__(self, *args)
Definition: pcbnew.py:11392
def erase(self, *args)
Definition: pcbnew.py:11448
def rbegin(self)
Definition: pcbnew.py:11428
def reserve(self, n)
Definition: pcbnew.py:11494
def __getitem__(self, *args)
Definition: pcbnew.py:11385
def __setslice__(self, *args)
Definition: pcbnew.py:11367
def clear(self)
Definition: pcbnew.py:11436
def push_back(self, x)
Definition: pcbnew.py:11464
def pop_back(self)
Definition: pcbnew.py:11444
def iterator(self)
Definition: pcbnew.py:11345
def insert(self, *args)
Definition: pcbnew.py:11487
def __delslice__(self, i, j)
Definition: pcbnew.py:11374
def assign(self, n, x)
Definition: pcbnew.py:11476
def __bool__(self)
Definition: pcbnew.py:11355
def end(self)
Definition: pcbnew.py:11424
def IsExcluded(self)
Definition: pcbnew.py:2632
def GetBoundingBoxMarker(self)
Definition: pcbnew.py:2655
def GetUUID(self)
Definition: pcbnew.py:2620
def MarkerScale(self)
Definition: pcbnew.py:2600
def GetMarkerType(self)
Definition: pcbnew.py:2628
def GetPos(self)
Definition: pcbnew.py:2616
def PrintMarker(self, aSettings, aOffset)
Definition: pcbnew.py:2612
def GetSeverity(self)
Definition: pcbnew.py:2640
def SetExcluded(self, aExcluded)
Definition: pcbnew.py:2636
def HitTestMarker(self, *args)
Definition: pcbnew.py:2648
def SetMarkerType(self, aMarkerType)
Definition: pcbnew.py:2624
def ShapeToPolygon(self, aPolygon, aScale=-1)
Definition: pcbnew.py:2608
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:2581
def SetMarkerScale(self, aScale)
Definition: pcbnew.py:2604
def GetRCItem(self)
Definition: pcbnew.py:2644
def SetBusWidth(self, aWidth)
Definition: pcbnew.py:17292
def HasuViaDiameter(self)
Definition: pcbnew.py:17212
def SetTrackWidth(self, aWidth)
Definition: pcbnew.py:17184
def GetTrackWidth(self)
Definition: pcbnew.py:17180
def GetLineStyle(self)
Definition: pcbnew.py:17304
def SetuViaDiameter(self, aSize)
Definition: pcbnew.py:17220
def __init__(self, aName)
Definition: pcbnew.py:17139
def GetName(self)
Definition: pcbnew.py:17148
def HasDiffPairWidth(self)
Definition: pcbnew.py:17236
def GetClearance(self)
Definition: pcbnew.py:17168
def SetDescription(self, aDesc)
Definition: pcbnew.py:17160
def HasClearance(self)
Definition: pcbnew.py:17164
def SetLineStyle(self, aStyle)
Definition: pcbnew.py:17308
def HasuViaDrill(self)
Definition: pcbnew.py:17224
def GetBusWidth(self)
Definition: pcbnew.py:17288
def SetDiffPairGap(self, aSize)
Definition: pcbnew.py:17256
def GetuViaDrill(self)
Definition: pcbnew.py:17228
def GetViaDrill(self)
Definition: pcbnew.py:17204
def GetDescription(self)
Definition: pcbnew.py:17156
def SetDiffPairViaGap(self, aSize)
Definition: pcbnew.py:17268
def GetDiffPairViaGap(self)
Definition: pcbnew.py:17264
def GetDiffPairWidth(self)
Definition: pcbnew.py:17240
def SetPcbColor(self, aColor)
Definition: pcbnew.py:17276
def HasViaDrill(self)
Definition: pcbnew.py:17200
def SetName(self, aName)
Definition: pcbnew.py:17152
def SetWireWidth(self, aWidth)
Definition: pcbnew.py:17284
def SetSchematicColor(self, aColor)
Definition: pcbnew.py:17300
def HasTrackWidth(self)
Definition: pcbnew.py:17176
def GetSchematicColor(self)
Definition: pcbnew.py:17296
def HasViaDiameter(self)
Definition: pcbnew.py:17188
def SetViaDiameter(self, aDia)
Definition: pcbnew.py:17196
def SetClearance(self, aClearance)
Definition: pcbnew.py:17172
def HasDiffPairViaGap(self)
Definition: pcbnew.py:17260
def GetuViaDiameter(self)
Definition: pcbnew.py:17216
def SetuViaDrill(self, aSize)
Definition: pcbnew.py:17232
def GetPcbColor(self)
Definition: pcbnew.py:17272
def GetClass(self)
Definition: pcbnew.py:17144
def HasDiffPairGap(self)
Definition: pcbnew.py:17248
def SetViaDrill(self, aSize)
Definition: pcbnew.py:17208
def GetDiffPairGap(self)
Definition: pcbnew.py:17252
def GetWireWidth(self)
Definition: pcbnew.py:17280
def GetViaDiameter(self)
Definition: pcbnew.py:17192
def SetDiffPairWidth(self, aSize)
Definition: pcbnew.py:17244
def values(self)
Definition: pcbnew.py:16857
def asdict(self)
Definition: pcbnew.py:16884
def __delitem__(self, key)
Definition: pcbnew.py:16845
def has_key(self, key)
Definition: pcbnew.py:16849
def key_iterator(self)
Definition: pcbnew.py:16869
def clear(self)
Definition: pcbnew.py:16924
def find(self, x)
Definition: pcbnew.py:16944
def __len__(self)
Definition: pcbnew.py:16829
def iterkeys(self)
Definition: pcbnew.py:16834
def empty(self)
Definition: pcbnew.py:16896
def __init__(self, *args)
Definition: pcbnew.py:16888
def __contains__(self, key)
Definition: pcbnew.py:16865
def __setitem__(self, *args)
Definition: pcbnew.py:16877
def iterator(self)
Definition: pcbnew.py:16815
def begin(self)
Definition: pcbnew.py:16908
def __getitem__(self, key)
Definition: pcbnew.py:16841
def upper_bound(self, x)
Definition: pcbnew.py:16952
def __nonzero__(self)
Definition: pcbnew.py:16821
def keys(self)
Definition: pcbnew.py:16853
def erase(self, *args)
Definition: pcbnew.py:16936
def __bool__(self)
Definition: pcbnew.py:16825
def swap(self, v)
Definition: pcbnew.py:16904
def items(self)
Definition: pcbnew.py:16861
def __iter__(self)
Definition: pcbnew.py:16818
def itervalues(self)
Definition: pcbnew.py:16836
def value_iterator(self)
Definition: pcbnew.py:16873
def iteritems(self)
Definition: pcbnew.py:16838
def lower_bound(self, x)
Definition: pcbnew.py:16948
def rbegin(self)
Definition: pcbnew.py:16916
def rend(self)
Definition: pcbnew.py:16920
def get_allocator(self)
Definition: pcbnew.py:16928
def count(self, x)
Definition: pcbnew.py:16932
def size(self)
Definition: pcbnew.py:16900
def HasAutoGeneratedNetname(self)
Definition: pcbnew.py:16623
def GetNetClass(self)
Definition: pcbnew.py:16595
def SetNetname(self, aNewName)
Definition: pcbnew.py:16627
def GetDisplayNetname(self)
Definition: pcbnew.py:16619
def SetNetCode(self, aNetCode)
Definition: pcbnew.py:16607
def SetIsCurrent(self, isCurrent)
Definition: pcbnew.py:16635
def GetShortNetname(self)
Definition: pcbnew.py:16615
def SetNetClass(self, aNetClass)
Definition: pcbnew.py:16591
def GetNetClassSlow(self)
Definition: pcbnew.py:16599
def IsCurrent(self)
Definition: pcbnew.py:16631
def GetNetClassName(self)
Definition: pcbnew.py:16647
def ClassOf(aItem)
Definition: pcbnew.py:16587
def GetParent(self)
Definition: pcbnew.py:16643
def __init__(self, *args)
Definition: pcbnew.py:16581
def GetNetname(self)
Definition: pcbnew.py:16611
def GetNetCode(self)
Definition: pcbnew.py:16603
def Clear(self)
Definition: pcbnew.py:16639
def NetsByNetcode(self)
Definition: pcbnew.py:16986
def __init__(self, aParent)
Definition: pcbnew.py:16966
def GetNetCount(self)
Definition: pcbnew.py:16978
def GetNetItem(self, *args)
Definition: pcbnew.py:16971
def RebuildDisplayNetnames(self)
Definition: pcbnew.py:16990
def NetsByName(self)
Definition: pcbnew.py:16982
def GetParent(self)
Definition: pcbnew.py:16999
def __contains__(self, key)
Definition: pcbnew.py:16714
def __init__(self, *args)
Definition: pcbnew.py:16737
def get_allocator(self)
Definition: pcbnew.py:16777
def __len__(self)
Definition: pcbnew.py:16678
def iteritems(self)
Definition: pcbnew.py:16687
def size(self)
Definition: pcbnew.py:16749
def value_iterator(self)
Definition: pcbnew.py:16722
def find(self, x)
Definition: pcbnew.py:16793
def __iter__(self)
Definition: pcbnew.py:16667
def empty(self)
Definition: pcbnew.py:16745
def __nonzero__(self)
Definition: pcbnew.py:16670
def values(self)
Definition: pcbnew.py:16706
def lower_bound(self, x)
Definition: pcbnew.py:16797
def rbegin(self)
Definition: pcbnew.py:16765
def asdict(self)
Definition: pcbnew.py:16733
def keys(self)
Definition: pcbnew.py:16702
def __delitem__(self, key)
Definition: pcbnew.py:16694
def __getitem__(self, key)
Definition: pcbnew.py:16690
def iterator(self)
Definition: pcbnew.py:16664
def begin(self)
Definition: pcbnew.py:16757
def upper_bound(self, x)
Definition: pcbnew.py:16801
def items(self)
Definition: pcbnew.py:16710
def erase(self, *args)
Definition: pcbnew.py:16785
def rend(self)
Definition: pcbnew.py:16769
def has_key(self, key)
Definition: pcbnew.py:16698
def iterkeys(self)
Definition: pcbnew.py:16683
def count(self, x)
Definition: pcbnew.py:16781
def key_iterator(self)
Definition: pcbnew.py:16718
def swap(self, v)
Definition: pcbnew.py:16753
def itervalues(self)
Definition: pcbnew.py:16685
def clear(self)
Definition: pcbnew.py:16773
def __setitem__(self, *args)
Definition: pcbnew.py:16726
def __bool__(self)
Definition: pcbnew.py:16674
def __ne__(self, aOther)
Definition: pcbnew.py:11103
def ParseBusGroup(aGroup, name, aMemberList)
Definition: pcbnew.py:11121
def GetEffectiveNetClass(self, aNetName)
Definition: pcbnew.py:11111
def __init__(self, aParent, aPath)
Definition: pcbnew.py:11094
def __eq__(self, aOther)
Definition: pcbnew.py:11099
def ParseBusVector(aBus, aName, aMemberList)
Definition: pcbnew.py:11116
def Print(self, nestLevel, fmt)
Definition: pcbnew.py:2173
def GetQuoteChar(self, wrapee)
Definition: pcbnew.py:2177
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:2169
def Quotew(self, aWrapee)
Definition: pcbnew.py:2185
def Quotes(self, aWrapee)
Definition: pcbnew.py:2181
def insert(self, *args)
Definition: pcbnew.py:16389
def rend(self)
Definition: pcbnew.py:16334
def back(self)
Definition: pcbnew.py:16374
def swap(self, v)
Definition: pcbnew.py:16318
def __delitem__(self, *args)
Definition: pcbnew.py:16280
def reserve(self, n)
Definition: pcbnew.py:16396
def capacity(self)
Definition: pcbnew.py:16400
def __getitem__(self, *args)
Definition: pcbnew.py:16287
def empty(self)
Definition: pcbnew.py:16310
def pop(self)
Definition: pcbnew.py:16302
def __getslice__(self, i, j)
Definition: pcbnew.py:16265
def size(self)
Definition: pcbnew.py:16314
def rbegin(self)
Definition: pcbnew.py:16330
def __len__(self)
Definition: pcbnew.py:16261
def __delslice__(self, i, j)
Definition: pcbnew.py:16276
def clear(self)
Definition: pcbnew.py:16338
def __bool__(self)
Definition: pcbnew.py:16257
def __iter__(self)
Definition: pcbnew.py:16250
def append(self, x)
Definition: pcbnew.py:16306
def assign(self, n, x)
Definition: pcbnew.py:16378
def __setitem__(self, *args)
Definition: pcbnew.py:16294
def pop_back(self)
Definition: pcbnew.py:16346
def resize(self, *args)
Definition: pcbnew.py:16382
def front(self)
Definition: pcbnew.py:16370
def begin(self)
Definition: pcbnew.py:16322
def erase(self, *args)
Definition: pcbnew.py:16350
def __init__(self, *args)
Definition: pcbnew.py:16357
def iterator(self)
Definition: pcbnew.py:16247
def push_back(self, x)
Definition: pcbnew.py:16366
def __nonzero__(self)
Definition: pcbnew.py:16253
def end(self)
Definition: pcbnew.py:16326
def get_allocator(self)
Definition: pcbnew.py:16342
def __setslice__(self, *args)
Definition: pcbnew.py:16269
def rbegin(self)
Definition: pcbnew.py:12617
def front(self)
Definition: pcbnew.py:12657
def erase(self, *args)
Definition: pcbnew.py:12637
def append(self, x)
Definition: pcbnew.py:12593
def rend(self)
Definition: pcbnew.py:12621
def end(self)
Definition: pcbnew.py:12613
def pop_back(self)
Definition: pcbnew.py:12633
def resize(self, *args)
Definition: pcbnew.py:12669
def __getslice__(self, i, j)
Definition: pcbnew.py:12552
def empty(self)
Definition: pcbnew.py:12597
def __setitem__(self, *args)
Definition: pcbnew.py:12581
def __nonzero__(self)
Definition: pcbnew.py:12540
def begin(self)
Definition: pcbnew.py:12609
def size(self)
Definition: pcbnew.py:12601
def iterator(self)
Definition: pcbnew.py:12534
def __delitem__(self, *args)
Definition: pcbnew.py:12567
def push_front(self, x)
Definition: pcbnew.py:12687
def __bool__(self)
Definition: pcbnew.py:12544
def insert(self, *args)
Definition: pcbnew.py:12676
def back(self)
Definition: pcbnew.py:12661
def pop_front(self)
Definition: pcbnew.py:12683
def assign(self, n, x)
Definition: pcbnew.py:12665
def push_back(self, x)
Definition: pcbnew.py:12653
def get_allocator(self)
Definition: pcbnew.py:12629
def __delslice__(self, i, j)
Definition: pcbnew.py:12563
def pop(self)
Definition: pcbnew.py:12589
def __len__(self)
Definition: pcbnew.py:12548
def clear(self)
Definition: pcbnew.py:12625
def swap(self, v)
Definition: pcbnew.py:12605
def __init__(self, *args)
Definition: pcbnew.py:12644
def __iter__(self)
Definition: pcbnew.py:12537
def __getitem__(self, *args)
Definition: pcbnew.py:12574
def __setslice__(self, *args)
Definition: pcbnew.py:12556
def GetNumber(self)
Definition: pcbnew.py:12965
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:13383
def GetOrientation(self)
Definition: pcbnew.py:13144
def GetDrillSizeY(self)
Definition: pcbnew.py:13089
def GetRoundRectRadiusRatio(self)
Definition: pcbnew.py:13339
def Recombine(self, aIsDryRun, aMaxError)
Definition: pcbnew.py:13409
def GetChamferPositions(self)
Definition: pcbnew.py:13355
def IsFreePad(self)
Definition: pcbnew.py:13001
def GetLocalZoneConnectionOverride(self, aSource=None)
Definition: pcbnew.py:13279
def GetLocalSpokeWidthOverride(self, aSource=None)
Definition: pcbnew.py:13291
def SetThermalSpokeAngleDegrees(self, aAngle)
Definition: pcbnew.py:13303
def AddPrimitiveShape(self, aPrimitive)
Definition: pcbnew.py:13132
def GetRemoveUnconnected(self)
Definition: pcbnew.py:13371
def SetThermalSpokeAngle(self, aAngle)
Definition: pcbnew.py:13295
def ConnSMDMask()
Definition: pcbnew.py:12934
def GetDelta(self)
Definition: pcbnew.py:13065
def SetSizeY(self, aY)
Definition: pcbnew.py:13053
def GetBoundingRadius(self)
Definition: pcbnew.py:13259
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:13235
def SetShape(self, aShape)
Definition: pcbnew.py:13005
def SetDrillSizeX(self, aX)
Definition: pcbnew.py:13077
def SetPinType(self, aType)
Definition: pcbnew.py:12981
def GetZoneConnection(self)
Definition: pcbnew.py:13275
def GetPinFunction(self)
Definition: pcbnew.py:12977
def Compare(aPadRef, aPadCmp)
Definition: pcbnew.py:13414
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:13223
def IsNoConnectPad(self)
Definition: pcbnew.py:12997
def SetChamferPositions(self, aPositions)
Definition: pcbnew.py:13351
def GetKeepTopBottom(self)
Definition: pcbnew.py:13379
def GetOffset(self)
Definition: pcbnew.py:13097
def SetDrillSizeY(self, aY)
Definition: pcbnew.py:13085
def SetAttribute(self, aAttribute)
Definition: pcbnew.py:13176
def GetPadToDieLength(self)
Definition: pcbnew.py:13200
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:13446
def SetY(self, y)
Definition: pcbnew.py:13029
def GetPrimitives(self)
Definition: pcbnew.py:13116
def SetOrientation(self, aAngle)
Definition: pcbnew.py:13136
def __ne__(self, aOther)
Definition: pcbnew.py:13458
def SameLogicalPadAs(self, aOther)
Definition: pcbnew.py:12989
def SetDirty(self)
Definition: pcbnew.py:13172
def BuildEffectivePolygon(self, *args)
Definition: pcbnew.py:13434
def GetOrientationDegrees(self)
Definition: pcbnew.py:13156
def SetProperty(self, aProperty)
Definition: pcbnew.py:13184
def SetPinFunction(self, aName)
Definition: pcbnew.py:12973
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:13442
def CanHaveNumber(self)
Definition: pcbnew.py:12969
def GetDrillSizeX(self)
Definition: pcbnew.py:13081
def IsFlipped(self)
Definition: pcbnew.py:12957
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:13227
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:13239
def GetChamferRectRatio(self)
Definition: pcbnew.py:13347
def SetX(self, x)
Definition: pcbnew.py:13033
def SetKeepTopBottom(self, aSet)
Definition: pcbnew.py:13375
def BuildEffectiveShapes(self, aLayer)
Definition: pcbnew.py:13430
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:13152
def GetDrillShape(self)
Definition: pcbnew.py:13164
def ShowPadAttr(self)
Definition: pcbnew.py:13422
def TransformHoleToPolygon(self, *args)
Definition: pcbnew.py:13247
def GetAnchorPadShape(self)
Definition: pcbnew.py:13013
def ApertureMask()
Definition: pcbnew.py:12944
def CanFlashLayer(self, aLayer)
Definition: pcbnew.py:13387
def GetRoundRectCornerRadius(self)
Definition: pcbnew.py:13327
def GetSolderPasteMargin(self)
Definition: pcbnew.py:13267
def TransformShapeToPolygon(self, *args)
Definition: pcbnew.py:13243
def GetPadName(self)
Definition: pcbnew.py:13473
def SetDelta(self, aSize)
Definition: pcbnew.py:13061
def UnplatedHoleMask()
Definition: pcbnew.py:12939
def SetCustomShapeInZoneOpt(self, aOption)
Definition: pcbnew.py:13021
def GetThermalGap(self)
Definition: pcbnew.py:13315
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:13231
def SetDrillShape(self, aShape)
Definition: pcbnew.py:13160
def GetPrincipalLayer(self)
Definition: pcbnew.py:13391
def SetPadToDieLength(self, aLength)
Definition: pcbnew.py:13196
def GetFPRelativeOrientation(self)
Definition: pcbnew.py:13148
def HitTest(self, *args)
Definition: pcbnew.py:13402
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:13367
def SetThermalGap(self, aGap)
Definition: pcbnew.py:13311
def GetPinType(self)
Definition: pcbnew.py:12985
def MergePrimitivesAsPolygon(self, *args)
Definition: pcbnew.py:13108
def FlashLayer(self, *args)
Definition: pcbnew.py:13395
def SetOffset(self, aOffset)
Definition: pcbnew.py:13093
def SetDrillSize(self, aSize)
Definition: pcbnew.py:13069
def SetPadName(self, aName)
Definition: pcbnew.py:13465
def SetThermalSpokeWidth(self, aWidth)
Definition: pcbnew.py:13283
def GetSubRatsnest(self)
Definition: pcbnew.py:13359
def SetSubRatsnest(self, aSubRatsnest)
Definition: pcbnew.py:13363
def AddPrimitive(self, *args)
Definition: pcbnew.py:13483
def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER)
Definition: pcbnew.py:13516
def GetSizeY(self)
Definition: pcbnew.py:13057
def SetRoundRectCornerRadius(self, aRadius)
Definition: pcbnew.py:13323
def ClonePad(self)
Definition: pcbnew.py:13426
def __init__(self, *args)
Definition: pcbnew.py:12916
def GetSize(self)
Definition: pcbnew.py:13041
def DeletePrimitivesList(self)
Definition: pcbnew.py:13112
def GetProperty(self)
Definition: pcbnew.py:13188
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13251
def AppendPrimitives(self, aPrimitivesList)
Definition: pcbnew.py:13128
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:13204
def AddPrimitivePoly(self, *args)
Definition: pcbnew.py:13101
def SetSizeX(self, aX)
Definition: pcbnew.py:13045
def GetThermalSpokeAngleDegrees(self)
Definition: pcbnew.py:13307
def SetChamferRectRatio(self, aChamferScale)
Definition: pcbnew.py:13343
def SMDMask()
Definition: pcbnew.py:12929
def IsDirty(self)
Definition: pcbnew.py:13168
def SetName(self, aName)
Definition: pcbnew.py:13468
def SetRoundRectRadiusRatio(self, aRadiusScale)
Definition: pcbnew.py:13335
def GetAttribute(self)
Definition: pcbnew.py:13180
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:13219
def ImportSettingsFrom(self, aMasterPad)
Definition: pcbnew.py:12953
def SharesNetTieGroup(self, aOther)
Definition: pcbnew.py:12993
def ReplacePrimitives(self, aPrimitivesList)
Definition: pcbnew.py:13124
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:13208
def PTHMask()
Definition: pcbnew.py:12924
def ShowPadShape(self)
Definition: pcbnew.py:13418
def CheckPad(self, aUnitsProvider, aErrorHandler)
Definition: pcbnew.py:13454
def SetZoneConnection(self, aType)
Definition: pcbnew.py:13271
def GetThermalSpokeWidth(self)
Definition: pcbnew.py:13287
def GetSizeX(self)
Definition: pcbnew.py:13049
def GetName(self)
Definition: pcbnew.py:13476
def SetSize(self, aSize)
Definition: pcbnew.py:13037
def GetCustomShapeInZoneOpt(self)
Definition: pcbnew.py:13017
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:13263
def GetLocalThermalGapOverride(self, aSource=None)
Definition: pcbnew.py:13319
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13438
def ClassOf(aItem)
Definition: pcbnew.py:12949
def GetThermalSpokeAngle(self)
Definition: pcbnew.py:13299
def SetAnchorPadShape(self, aShape)
Definition: pcbnew.py:13025
def GetEffectivePolygon(self, *args)
Definition: pcbnew.py:13255
def GetDrillSize(self)
Definition: pcbnew.py:13073
def FlipPrimitives(self, aFlipLeftRight)
Definition: pcbnew.py:13120
def SetNumber(self, aNumber)
Definition: pcbnew.py:12961
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:13450
def IsAperturePad(self)
Definition: pcbnew.py:13192
def ShapePos(self)
Definition: pcbnew.py:13331
def GetShape(self)
Definition: pcbnew.py:13009
def SetFPRelativeOrientation(self, aAngle)
Definition: pcbnew.py:13140
def GetLocalClearance(self, *args)
Definition: pcbnew.py:13212
def SetMid(self, aMid)
Definition: pcbnew.py:13713
def HitTest(self, *args)
Definition: pcbnew.py:13737
def GetArcAngleStart(self)
Definition: pcbnew.py:13729
def GetMid(self)
Definition: pcbnew.py:13717
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13748
def IsDegenerated(self, aThreshold=5)
Definition: pcbnew.py:13752
def GetAngle(self)
Definition: pcbnew.py:13725
def GetRadius(self)
Definition: pcbnew.py:13721
def IsCCW(self)
Definition: pcbnew.py:13744
def GetArcAngleEnd(self)
Definition: pcbnew.py:13733
def __init__(self, *args)
Definition: pcbnew.py:13701
def ClassOf(aItem)
Definition: pcbnew.py:13709
def SetUnits(self, aUnits)
Definition: pcbnew.py:15793
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:15705
def SetArrowLength(self, aLength)
Definition: pcbnew.py:15869
def GetKeepTextAligned(self)
Definition: pcbnew.py:15849
def ChangeOverrideText(self, aValue)
Definition: pcbnew.py:15741
def SetOverrideTextEnabled(self, aOverride)
Definition: pcbnew.py:15729
def SetTextPositionMode(self, aMode)
Definition: pcbnew.py:15857
def SetOverrideText(self, aValue)
Definition: pcbnew.py:15737
def ChangeSuffix(self, aSuffix)
Definition: pcbnew.py:15785
def ChangePrecision(self, aPrecision)
Definition: pcbnew.py:15833
def GetOverrideTextEnabled(self)
Definition: pcbnew.py:15725
def SetEnd(self, aPoint)
Definition: pcbnew.py:15721
def SetAutoUnits(self, aAuto=True)
Definition: pcbnew.py:15809
def SetMeasuredValue(self, aValue)
Definition: pcbnew.py:15749
def SetSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:15841
def SetPrefix(self, aPrefix)
Definition: pcbnew.py:15769
def GetExtensionOffset(self)
Definition: pcbnew.py:15877
def GetSuppressZeroes(self)
Definition: pcbnew.py:15837
def GetTextPositionMode(self)
Definition: pcbnew.py:15861
def ChangeSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:15845
def SetUnitsFormat(self, aFormat)
Definition: pcbnew.py:15817
def ChangePrefix(self, aPrefix)
Definition: pcbnew.py:15773
def SetLineThickness(self, aWidth)
Definition: pcbnew.py:15885
def GetMeasuredValue(self)
Definition: pcbnew.py:15745
def SetKeepTextAligned(self, aKeepAligned)
Definition: pcbnew.py:15853
def SetExtensionOffset(self, aOffset)
Definition: pcbnew.py:15873
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:15908
def Mirror(self, axis_pos, aMirrorLeftRight=False)
Definition: pcbnew.py:15893
def ChangeUnitsMode(self, aMode)
Definition: pcbnew.py:15805
def HitTest(self, *args)
Definition: pcbnew.py:15897
def GetLineThickness(self)
Definition: pcbnew.py:15881
def SetPrecision(self, aPrecision)
Definition: pcbnew.py:15829
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15904
def ChangeUnitsFormat(self, aFormat)
Definition: pcbnew.py:15821
def SetStart(self, aPoint)
Definition: pcbnew.py:15713
def SetUnitsMode(self, aMode)
Definition: pcbnew.py:15801
def SetSuffix(self, aSuffix)
Definition: pcbnew.py:15781
def SetExtensionHeight(self, aHeight)
Definition: pcbnew.py:15960
def ClassOf(aItem)
Definition: pcbnew.py:15928
def GetCrossbarEnd(self)
Definition: pcbnew.py:15940
def GetCrossbarStart(self)
Definition: pcbnew.py:15936
def UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
Definition: pcbnew.py:15956
def SetHeight(self, aHeight)
Definition: pcbnew.py:15944
def Mirror(self, axis_pos, aMirrorLeftRight=False)
Definition: pcbnew.py:15932
def __init__(self, aParent, aType=PCB_DIM_ALIGNED_T)
Definition: pcbnew.py:15922
def GetExtensionHeight(self)
Definition: pcbnew.py:15964
def ChangeHeight(self, aHeight)
Definition: pcbnew.py:15952
def ChangeExtensionHeight(self, aHeight)
Definition: pcbnew.py:15968
def ClassOf(aItem)
Definition: pcbnew.py:16107
def __init__(self, aParent)
Definition: pcbnew.py:16102
def ClassOf(aItem)
Definition: pcbnew.py:16072
def __init__(self, aParent)
Definition: pcbnew.py:16067
def ChangeTextBorder(self, aBorder)
Definition: pcbnew.py:16084
def SetTextBorder(self, aBorder)
Definition: pcbnew.py:16076
def GetTextBorder(self)
Definition: pcbnew.py:16080
def __init__(self, aParent)
Definition: pcbnew.py:15993
def SetOrientation(self, aOrientation)
Definition: pcbnew.py:16007
def Mirror(self, axis_pos, aMirrorLeftRight=False)
Definition: pcbnew.py:16003
def SetLeaderLength(self, aLength)
Definition: pcbnew.py:16037
def __init__(self, aParent)
Definition: pcbnew.py:16028
def GetLeaderLength(self)
Definition: pcbnew.py:16041
def ClassOf(aItem)
Definition: pcbnew.py:16033
def ChangeLeaderLength(self, aLength)
Definition: pcbnew.py:16045
def __nonzero__(self)
Definition: pcbnew.py:12707
def swap(self, v)
Definition: pcbnew.py:12772
def __getitem__(self, *args)
Definition: pcbnew.py:12741
def empty(self)
Definition: pcbnew.py:12764
def __init__(self, *args)
Definition: pcbnew.py:12811
def __len__(self)
Definition: pcbnew.py:12715
def rend(self)
Definition: pcbnew.py:12788
def __getslice__(self, i, j)
Definition: pcbnew.py:12719
def __delitem__(self, *args)
Definition: pcbnew.py:12734
def iterator(self)
Definition: pcbnew.py:12701
def rbegin(self)
Definition: pcbnew.py:12784
def __setslice__(self, *args)
Definition: pcbnew.py:12723
def begin(self)
Definition: pcbnew.py:12776
def size(self)
Definition: pcbnew.py:12768
def end(self)
Definition: pcbnew.py:12780
def __iter__(self)
Definition: pcbnew.py:12704
def clear(self)
Definition: pcbnew.py:12792
def __bool__(self)
Definition: pcbnew.py:12711
def back(self)
Definition: pcbnew.py:12828
def resize(self, *args)
Definition: pcbnew.py:12836
def push_back(self, x)
Definition: pcbnew.py:12820
def assign(self, n, x)
Definition: pcbnew.py:12832
def insert(self, *args)
Definition: pcbnew.py:12843
def push_front(self, x)
Definition: pcbnew.py:12854
def pop_back(self)
Definition: pcbnew.py:12800
def pop_front(self)
Definition: pcbnew.py:12850
def front(self)
Definition: pcbnew.py:12824
def get_allocator(self)
Definition: pcbnew.py:12796
def pop(self)
Definition: pcbnew.py:12756
def erase(self, *args)
Definition: pcbnew.py:12804
def __setitem__(self, *args)
Definition: pcbnew.py:12748
def __delslice__(self, i, j)
Definition: pcbnew.py:12730
def append(self, x)
Definition: pcbnew.py:12760
def CloneField(self)
Definition: pcbnew.py:15620
def SetId(self, aId)
Definition: pcbnew.py:15640
def __init__(self, *args)
Definition: pcbnew.py:15584
def ClassOf(aItem)
Definition: pcbnew.py:15592
def GetName(self, aUseDefaultName=True)
Definition: pcbnew.py:15624
def IsDatasheet(self)
Definition: pcbnew.py:15608
def GetCanonicalName(self)
Definition: pcbnew.py:15628
def IsReference(self)
Definition: pcbnew.py:15596
def GetId(self)
Definition: pcbnew.py:15636
def IsMandatoryField(self)
Definition: pcbnew.py:15612
def IsValue(self)
Definition: pcbnew.py:15600
def SetName(self, aName)
Definition: pcbnew.py:15632
def IsFootprint(self)
Definition: pcbnew.py:15604
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15616
def TopLevelGroup(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17359
def IsGroupableType(aType)
Definition: pcbnew.py:17396
def DeepDuplicate(self)
Definition: pcbnew.py:17372
def RemoveAll(self)
Definition: pcbnew.py:17354
def SetName(self, aName)
Definition: pcbnew.py:17335
def WithinScope(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17364
def GetName(self)
Definition: pcbnew.py:17331
def ClassOf(aItem)
Definition: pcbnew.py:17327
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:17391
def AddItem(self, aItem)
Definition: pcbnew.py:17346
def RemoveItem(self, aItem)
Definition: pcbnew.py:17350
def __init__(self, aParent)
Definition: pcbnew.py:17322
def DeepClone(self)
Definition: pcbnew.py:17368
def HitTest(self, *args)
Definition: pcbnew.py:17376
def GetItems(self, *args)
Definition: pcbnew.py:17339
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:17387
def GetItemsDeque(self)
Definition: pcbnew.py:17400
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17383
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:8282
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8290
def GetLibraryDesc(self)
Definition: pcbnew.py:8266
def Parse(self, aClipboardSourceInput)
Definition: pcbnew.py:8339
def GetStringOutput(self, doClear)
Definition: pcbnew.py:8331
def SaveBoard(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8270
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:8298
def DeleteLibrary(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8314
def GetLibraryFileDesc(self)
Definition: pcbnew.py:8262
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8286
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:8302
def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
Definition: pcbnew.py:8278
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8306
def __init__(self, *args)
Definition: pcbnew.py:8322
def IsLibraryWritable(self, aLibraryPath)
Definition: pcbnew.py:8318
def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None)
Definition: pcbnew.py:8274
def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None)
Definition: pcbnew.py:8294
def Format(self, aItem, aNestLevel=0)
Definition: pcbnew.py:8327
def CreateLibrary(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8310
def SetOutputFormatter(self, aFormatter)
Definition: pcbnew.py:8335
def GuessPluginTypeFromLibPath(aLibPath, aCtl=0)
Definition: pcbnew.py:7997
def PluginFind(aFileType)
Definition: pcbnew.py:7977
def FindPluginTypeFromBoardPath(aFileName, aCtl=0)
Definition: pcbnew.py:7992
def EnumFromStr(aFileType)
Definition: pcbnew.py:7987
def ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath)
Definition: pcbnew.py:8012
def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:8002
def Save(aFileType, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8007
def __init__(self)
Definition: pcbnew.py:8016
def ShowType(aFileType)
Definition: pcbnew.py:7982
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8117
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:8109
def footprintPyEnumerate(self, aLibraryPath, aExitOnError)
Definition: pcbnew.py:8134
def CanReadBoard(self, aFileName)
Definition: pcbnew.py:8069
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:8061
def GetBoardFileDesc(self)
Definition: pcbnew.py:8065
def GetLibraryOptions(self, aListToAppendTo)
Definition: pcbnew.py:8129
def IsFootprintLibWritable(self, aLibraryPath)
Definition: pcbnew.py:8150
def PrefetchLib(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8101
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8125
def FootprintLibDelete(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8146
def FootprintLibCreate(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8142
def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None)
Definition: pcbnew.py:8081
def GetImportedCachedLibraryFootprints(self)
Definition: pcbnew.py:8085
def SetQueryUserCallback(self, aCallback)
Definition: pcbnew.py:8077
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8113
def SaveBoard(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8089
def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None)
Definition: pcbnew.py:8105
def GetLibraryTimestamp(self, aLibraryPath)
Definition: pcbnew.py:8097
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:8121
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:8093
def CanReadFootprint(self, aFileName)
Definition: pcbnew.py:8073
def __init__(self, aItem, aPos, aLayer=F_Cu)
Definition: pcbnew.py:16127
def SetZoom(self, aZoomFactor)
Definition: pcbnew.py:16161
def Serialize(self)
Definition: pcbnew.py:16137
def GetColorLayer(self)
Definition: pcbnew.py:16153
def HitTest(self, *args)
Definition: pcbnew.py:16146
def ClassOf(aItem)
Definition: pcbnew.py:16133
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16157
def Deserialize(data)
Definition: pcbnew.py:16142
def SetFineScaleAdjustY(self, aVal)
Definition: pcbnew.py:8512
def ColorSettings(self)
Definition: pcbnew.py:8452
def GetDashedLineGapRatio(self)
Definition: pcbnew.py:8780
def GetPlotViaOnMaskLayer(self)
Definition: pcbnew.py:8604
def GetDrillMarksType(self)
Definition: pcbnew.py:8492
def GetDisableGerberMacros(self)
Definition: pcbnew.py:8636
def GetTextMode(self)
Definition: pcbnew.py:8460
def GetPlotReference(self)
Definition: pcbnew.py:8580
def SetPlotReference(self, aFlag)
Definition: pcbnew.py:8576
def SetLayerSelection(self, aSelection)
Definition: pcbnew.py:8704
def GetLayerSelection(self)
Definition: pcbnew.py:8708
def GetWidthAdjust(self)
Definition: pcbnew.py:8524
def GetUseGerberX2format(self)
Definition: pcbnew.py:8644
def SetColorSettings(self, aSettings)
Definition: pcbnew.py:8448
def SetDashedLineGapRatio(self, aVal)
Definition: pcbnew.py:8776
def SetA4Output(self, aForce)
Definition: pcbnew.py:8736
def GetScale(self)
Definition: pcbnew.py:8500
def SetWidthAdjust(self, aVal)
Definition: pcbnew.py:8520
def GetSketchPadsOnFabLayers(self)
Definition: pcbnew.py:8548
def SetUseGerberProtelExtensions(self, aUse)
Definition: pcbnew.py:8664
def SetUseGerberAttributes(self, aUse)
Definition: pcbnew.py:8788
def SetSketchPadLineWidth(self, aWidth)
Definition: pcbnew.py:8552
def SetDXFPlotUnits(self, aUnit)
Definition: pcbnew.py:8480
def GetFineScaleAdjustY(self)
Definition: pcbnew.py:8516
def GetSketchPadLineWidth(self)
Definition: pcbnew.py:8556
def SetFormat(self, aFormat)
Definition: pcbnew.py:8616
def SetSkipPlotNPTH_Pads(self, aSkip)
Definition: pcbnew.py:8428
def SetPlotMode(self, aPlotMode)
Definition: pcbnew.py:8464
def SetScaleSelection(self, aSelection)
Definition: pcbnew.py:8728
def SetFineScaleAdjustX(self, aVal)
Definition: pcbnew.py:8504
def SetBlackAndWhite(self, blackAndWhite)
Definition: pcbnew.py:8688
def GetScaleSelection(self)
Definition: pcbnew.py:8732
def GetAutoScale(self)
Definition: pcbnew.py:8532
def SetHPGLPenNum(self, aVal)
Definition: pcbnew.py:8760
def GetA4Output(self)
Definition: pcbnew.py:8740
def GetMirror(self)
Definition: pcbnew.py:8540
def SetDashedLineDashRatio(self, aVal)
Definition: pcbnew.py:8768
def GetGerberPrecision(self)
Definition: pcbnew.py:8676
def SetUseGerberX2format(self, aUse)
Definition: pcbnew.py:8640
def SetTextMode(self, aVal)
Definition: pcbnew.py:8456
def SetPlotViaOnMaskLayer(self, aFlag)
Definition: pcbnew.py:8600
def GetPlotInvisibleText(self)
Definition: pcbnew.py:8564
def GetFormat(self)
Definition: pcbnew.py:8620
def SetScale(self, aVal)
Definition: pcbnew.py:8496
def SetSvgPrecision(self, aPrecision)
Definition: pcbnew.py:8680
def __init__(self)
Definition: pcbnew.py:8424
def SetPlotFPText(self, aFlag)
Definition: pcbnew.py:8584
def IsSameAs(self, aPcbPlotParams)
Definition: pcbnew.py:8444
def SetUseAuxOrigin(self, aAux)
Definition: pcbnew.py:8720
def GetHPGLPenNum(self)
Definition: pcbnew.py:8764
def GetNegative(self)
Definition: pcbnew.py:8596
def SetSubtractMaskFromSilk(self, aSubtract)
Definition: pcbnew.py:8696
def SetAutoScale(self, aFlag)
Definition: pcbnew.py:8528
def GetPlotFrameRef(self)
Definition: pcbnew.py:8612
def GetDXFPlotPolygonMode(self)
Definition: pcbnew.py:8476
def GetIncludeGerberNetlistInfo(self)
Definition: pcbnew.py:8652
def SetMirror(self, aFlag)
Definition: pcbnew.py:8536
def GetSvgPrecision(self)
Definition: pcbnew.py:8684
def GetUseAuxOrigin(self)
Definition: pcbnew.py:8724
def SetDrillMarksType(self, aVal)
Definition: pcbnew.py:8488
def GetFineScaleAdjustX(self)
Definition: pcbnew.py:8508
def GetCreateGerberJobFile(self)
Definition: pcbnew.py:8660
def GetOutputDirectory(self)
Definition: pcbnew.py:8628
def GetHPGLPenSpeed(self)
Definition: pcbnew.py:8752
def SetPlotFrameRef(self, aFlag)
Definition: pcbnew.py:8608
def SetPlotInvisibleText(self, aFlag)
Definition: pcbnew.py:8560
def GetDXFPlotUnits(self)
Definition: pcbnew.py:8484
def GetDashedLineDashRatio(self)
Definition: pcbnew.py:8772
def SetPlotOnAllLayersSelection(self, aSelection)
Definition: pcbnew.py:8712
def SetIncludeGerberNetlistInfo(self, aUse)
Definition: pcbnew.py:8648
def SetDisableGerberMacros(self, aDisable)
Definition: pcbnew.py:8632
def SetCreateGerberJobFile(self, aCreate)
Definition: pcbnew.py:8656
def SetGerberPrecision(self, aPrecision)
Definition: pcbnew.py:8672
def GetPlotValue(self)
Definition: pcbnew.py:8572
def SetSketchPadsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8544
def GetHPGLPenDiameter(self)
Definition: pcbnew.py:8744
def GetBlackAndWhite(self)
Definition: pcbnew.py:8692
def GetUseGerberProtelExtensions(self)
Definition: pcbnew.py:8668
def GetSubtractMaskFromSilk(self)
Definition: pcbnew.py:8700
def SetDXFPlotPolygonMode(self, aFlag)
Definition: pcbnew.py:8472
def GetPlotFPText(self)
Definition: pcbnew.py:8588
def Parse(self, aParser)
Definition: pcbnew.py:8440
def GetPlotOnAllLayersSelection(self)
Definition: pcbnew.py:8716
def SetOutputDirectory(self, aDir)
Definition: pcbnew.py:8624
def SetHPGLPenSpeed(self, aValue)
Definition: pcbnew.py:8756
def Format(self, aFormatter, aNestLevel, aControl=0)
Definition: pcbnew.py:8436
def SetPlotValue(self, aFlag)
Definition: pcbnew.py:8568
def SetNegative(self, aFlag)
Definition: pcbnew.py:8592
def GetPlotMode(self)
Definition: pcbnew.py:8468
def SetHPGLPenDiameter(self, aValue)
Definition: pcbnew.py:8748
def GetSkipPlotNPTH_Pads(self)
Definition: pcbnew.py:8432
def __init__(self, *args)
Definition: pcbnew.py:17434
def ReadImageFile(self, *args)
Definition: pcbnew.py:17475
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17471
def SetImageScale(self, aScale)
Definition: pcbnew.py:17454
def HitTest(self, *args)
Definition: pcbnew.py:17482
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:17467
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15310
def GetCorners(self)
Definition: pcbnew.py:15306
def __init__(self, *args)
Definition: pcbnew.py:15285
def GetConnectionPoints(self)
Definition: pcbnew.py:15302
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15337
def SetIsProxyItem(self, aIsProxy=True)
Definition: pcbnew.py:15314
def GetFriendlyName(self)
Definition: pcbnew.py:15298
def GetArcAngleStart(self)
Definition: pcbnew.py:15341
def Scale(self, aScale)
Definition: pcbnew.py:15329
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:15333
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:15325
def GetShapeStr(self)
Definition: pcbnew.py:15345
def HitTest(self, *args)
Definition: pcbnew.py:15318
def ClassOf(aItem)
Definition: pcbnew.py:15294
def GetShape(self)
Definition: pcbnew.py:16199
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16226
def __init__(self, *args)
Definition: pcbnew.py:16182
def ClassOf(aItem)
Definition: pcbnew.py:16191
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:16230
def HitTest(self, *args)
Definition: pcbnew.py:16219
def SetWidth(self, aWidth)
Definition: pcbnew.py:16211
def GetWidth(self)
Definition: pcbnew.py:16215
def SetSize(self, aSize)
Definition: pcbnew.py:16203
def SetShape(self, aShape)
Definition: pcbnew.py:16195
def GetSize(self)
Definition: pcbnew.py:16207
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15489
def SetBorderWidth(self, aSize)
Definition: pcbnew.py:15505
def GetAnchorAndOppositeCorner(self)
Definition: pcbnew.py:15470
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:15485
def GetDrawPos(self, *args)
Definition: pcbnew.py:15459
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15493
def GetFriendlyName(self)
Definition: pcbnew.py:15451
def ClassOf(aItem)
Definition: pcbnew.py:15447
def GetBorderWidth(self)
Definition: pcbnew.py:15509
def HitTest(self, *args)
Definition: pcbnew.py:15474
def GetTextMargin(self)
Definition: pcbnew.py:15455
def SetBorderEnabled(self, enabled)
Definition: pcbnew.py:15501
def __init__(self, parent)
Definition: pcbnew.py:15441
def IsBorderEnabled(self)
Definition: pcbnew.py:15497
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:15466
def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
Definition: pcbnew.py:15481
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:15379
def ClassOf(aItem)
Definition: pcbnew.py:15371
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:15405
def GetTextTypeDescription(self)
Definition: pcbnew.py:15413
def HitTest(self, *args)
Definition: pcbnew.py:15394
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:15383
def KeepUpright(self)
Definition: pcbnew.py:15375
def __init__(self, *args)
Definition: pcbnew.py:15362
def TextHitTest(self, *args)
Definition: pcbnew.py:15387
def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
Definition: pcbnew.py:15401
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15409
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15417
def __init__(self, aParent, idtype=PCB_TRACE_T)
Definition: pcbnew.py:13579
def ClassOf(aItem)
Definition: pcbnew.py:13575
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13655
def GetEndX(self)
Definition: pcbnew.py:13635
def IsPointOnEnds(self, point, min_dist=0)
Definition: pcbnew.py:13659
def SetStartY(self, aY)
Definition: pcbnew.py:13615
def GetStartX(self)
Definition: pcbnew.py:13619
def GetStartY(self)
Definition: pcbnew.py:13623
def ApproxCollinear(self, aTrack)
Definition: pcbnew.py:13674
def SetWidth(self, aWidth)
Definition: pcbnew.py:13587
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:13651
def GetEndPoint(self, aEndPoint)
Definition: pcbnew.py:13643
def GetStart(self)
Definition: pcbnew.py:13607
def SetStart(self, aStart)
Definition: pcbnew.py:13603
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:13583
def SetEndX(self, aX)
Definition: pcbnew.py:13627
def GetEnd(self)
Definition: pcbnew.py:13599
def IsNull(self)
Definition: pcbnew.py:13663
def GetLength(self)
Definition: pcbnew.py:13647
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13682
def HitTest(self, *args)
Definition: pcbnew.py:13667
def SetStartX(self, aX)
Definition: pcbnew.py:13611
def SetEnd(self, aEnd)
Definition: pcbnew.py:13595
def GetWidthConstraint(self, aSource=None)
Definition: pcbnew.py:13678
def GetWidth(self)
Definition: pcbnew.py:13591
def SetEndY(self, aY)
Definition: pcbnew.py:13631
def GetEndY(self)
Definition: pcbnew.py:13639
def LayerPair(self, top_layer, bottom_layer)
Definition: pcbnew.py:13814
def ClassOf(aItem)
Definition: pcbnew.py:13771
def SetKeepStartEnd(self, aSet)
Definition: pcbnew.py:13853
def SanitizeLayers(self)
Definition: pcbnew.py:13826
def GetOutermostConnectedLayers(self, aTopmost, aBottommost)
Definition: pcbnew.py:13872
def GetMinAnnulus(self, aLayer, aSource)
Definition: pcbnew.py:13841
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:13861
def GetKeepStartEnd(self)
Definition: pcbnew.py:13857
def TopLayer(self)
Definition: pcbnew.py:13818
def HitTest(self, *args)
Definition: pcbnew.py:13830
def SetViaType(self, aViaType)
Definition: pcbnew.py:13786
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:13912
def GetDrillConstraint(self, aSource=None)
Definition: pcbnew.py:13794
def GetRemoveUnconnected(self)
Definition: pcbnew.py:13849
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13837
def SetDrill(self, aDrill)
Definition: pcbnew.py:13876
def GetWidthConstraint(self, aSource=None)
Definition: pcbnew.py:13790
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:13798
def SetBottomLayer(self, aLayer)
Definition: pcbnew.py:13806
def GetIsFree(self)
Definition: pcbnew.py:13892
def FlashLayer(self, *args)
Definition: pcbnew.py:13865
def GetViaType(self)
Definition: pcbnew.py:13782
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:13904
def __init__(self, *args)
Definition: pcbnew.py:13775
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:13845
def BottomLayer(self)
Definition: pcbnew.py:13822
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13900
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:13908
def GetDrillValue(self)
Definition: pcbnew.py:13884
def SetDrillDefault(self)
Definition: pcbnew.py:13888
def SetLayerPair(self, aTopLayer, aBottomLayer)
Definition: pcbnew.py:13802
def GetDrill(self)
Definition: pcbnew.py:13880
def SetTopLayer(self, aLayer)
Definition: pcbnew.py:13810
def SetIsFree(self, aFree=True)
Definition: pcbnew.py:13896
def GetFootprintCount(self)
Definition: pcbnew.py:9163
def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX)
Definition: pcbnew.py:9151
def MoveTo(self, pos)
Definition: pcbnew.py:8955
def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:9025
def Bookmark(self, *args)
Definition: pcbnew.py:9049
def SetNegative(self, aNegative)
Definition: pcbnew.py:8852
def SetTextMode(self, mode)
Definition: pcbnew.py:9063
def SetRenderSettings(self, aSettings)
Definition: pcbnew.py:8864
def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:9013
def SetCurrentLineWidth(self, width, aData=None)
Definition: pcbnew.py:8880
def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:9009
def ThickRect(self, p1, p2, width, tracemode, aData)
Definition: pcbnew.py:8993
def ThickCircle(self, pos, diametre, width, tracemode, aData)
Definition: pcbnew.py:8997
def LineTo(self, pos)
Definition: pcbnew.py:8959
def GetPlotOffsetUserUnits(self)
Definition: pcbnew.py:9083
def Marker(self, position, diametre, aShapeId)
Definition: pcbnew.py:9055
def SetCreator(self, aCreator)
Definition: pcbnew.py:8896
def EndBlock(self, aData)
Definition: pcbnew.py:9079
def StartBlock(self, aData)
Definition: pcbnew.py:9075
def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
Definition: pcbnew.py:8912
def GetPlotterType(self)
Definition: pcbnew.py:8840
def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData=None)
Definition: pcbnew.py:9033
def HyperlinkBox(self, aBox, aDestinationURL)
Definition: pcbnew.py:9041
def PenTo(self, pos, plume)
Definition: pcbnew.py:8951
def ClearHeaderLinesList(self)
Definition: pcbnew.py:8908
def GetPlotterArcLowDef(self)
Definition: pcbnew.py:8924
def PlotPoly(self, *args)
Definition: pcbnew.py:8971
def StartPlot(self, aPageNumber)
Definition: pcbnew.py:8844
def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
Definition: pcbnew.py:9029
def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
Definition: pcbnew.py:9021
def GetColorMode(self)
Definition: pcbnew.py:8860
def BezierCurve(self, *args)
Definition: pcbnew.py:8947
def PlotText(self, aPos, aColor, aText, aAttributes, aFont, aFontMetrics, aData=None)
Definition: pcbnew.py:9037
def GetCurrentLineWidth(self)
Definition: pcbnew.py:8884
def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
Definition: pcbnew.py:9017
def PlotImage(self, aImage, aPos, aScaleFactor)
Definition: pcbnew.py:8978
def ThickArc(self, *args)
Definition: pcbnew.py:8986
def Arc(self, *args)
Definition: pcbnew.py:8940
def Circle(self, *args)
Definition: pcbnew.py:8936
def RenderSettings(self)
Definition: pcbnew.py:8868
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:8872
def SetDash(self, aLineWidth, aLineStyle)
Definition: pcbnew.py:8892
def AddLineToHeader(self, aExtraString)
Definition: pcbnew.py:8904
def SetSvgCoordinatesFormat(self, aPrecision)
Definition: pcbnew.py:9071
def HyperlinkMenu(self, aBox, aDestURLs)
Definition: pcbnew.py:9045
def Rect(self, *args)
Definition: pcbnew.py:8932
def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
Definition: pcbnew.py:9005
def SetLayerPolarity(self, aPositive)
Definition: pcbnew.py:9059
def SetColor(self, color)
Definition: pcbnew.py:8888
def FinishTo(self, pos)
Definition: pcbnew.py:8963
def EndPlot(self)
Definition: pcbnew.py:8848
def FilledCircle(self, pos, diametre, tracemode, aData)
Definition: pcbnew.py:9001
def GetPlotterArcHighDef(self)
Definition: pcbnew.py:8928
def PenFinish(self)
Definition: pcbnew.py:8967
def ThickSegment(self, start, end, width, tracemode, aData)
Definition: pcbnew.py:8982
def GetIUsPerDecimil(self)
Definition: pcbnew.py:8920
def SetTitle(self, aTitle)
Definition: pcbnew.py:8900
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:8831
def OpenFile(self, aFullFilename)
Definition: pcbnew.py:8916
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:8856
def PageSettings(self)
Definition: pcbnew.py:8876
def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False)
Definition: pcbnew.py:9067
def OpenPlotfile(self, *args)
Definition: pcbnew.py:8377
def GetPlotOptions(self)
Definition: pcbnew.py:8357
def GetPlotDirName(self)
Definition: pcbnew.py:8393
def PlotLayer(self)
Definition: pcbnew.py:8381
def GetColorMode(self)
Definition: pcbnew.py:8401
def ClosePlot(self)
Definition: pcbnew.py:8373
def GetLayer(self)
Definition: pcbnew.py:8365
def __init__(self, aBoard)
Definition: pcbnew.py:8352
def GetPlotter(self)
Definition: pcbnew.py:8405
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:8397
def SetLayer(self, aLayer)
Definition: pcbnew.py:8361
def GetPlotFileName(self)
Definition: pcbnew.py:8389
def IsPlotOpen(self)
Definition: pcbnew.py:8369
def PlotLayers(self, aLayerSequence)
Definition: pcbnew.py:8385
def __eq__(self, other)
Definition: pcbnew.py:17693
def __eq__(self, other)
Definition: pcbnew.py:17673
def __eq__(self, other)
Definition: pcbnew.py:17714
def deregister_action(wizard)
Definition: pcbnew.py:19725
def TCoef(self, aP)
Definition: pcbnew.py:5977
def Collide(self, aSeg, aClearance, aActual=None)
Definition: pcbnew.py:5927
def __lt__(self, aSeg)
Definition: pcbnew.py:6004
def Overlaps(self, aSeg)
Definition: pcbnew.py:5965
def LineProject(self, aP)
Definition: pcbnew.py:5880
def Contains(self, *args)
Definition: pcbnew.py:5985
def __eq__(self, aSeg)
Definition: pcbnew.py:5867
def ReflectPoint(self, aP)
Definition: pcbnew.py:5903
def LineDistance(self, aP, aDetermineSide=False)
Definition: pcbnew.py:5888
def CanonicalCoefs(self, qA, qB, qC)
Definition: pcbnew.py:5945
def Reversed(self)
Definition: pcbnew.py:5996
def __init__(self, *args)
Definition: pcbnew.py:5857
def Intersects(self, aSeg)
Definition: pcbnew.py:5911
def SquaredDistance(self, *args)
Definition: pcbnew.py:5931
def __ne__(self, aSeg)
Definition: pcbnew.py:5871
def Angle(self, aOther)
Definition: pcbnew.py:5892
def Collinear(self, aSeg)
Definition: pcbnew.py:5949
def Length(self)
Definition: pcbnew.py:5969
def Reverse(self)
Definition: pcbnew.py:5992
def NearestPoint(self, *args)
Definition: pcbnew.py:5896
def Square(a)
Definition: pcbnew.py:5876
def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False)
Definition: pcbnew.py:5907
def Index(self)
Definition: pcbnew.py:5981
def Side(self, aP)
Definition: pcbnew.py:5884
def Distance(self, *args)
Definition: pcbnew.py:5938
def SquaredLength(self)
Definition: pcbnew.py:5973
def ApproxCollinear(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5953
def ParallelSeg(self, aP)
Definition: pcbnew.py:5923
def IntersectLines(self, aSeg)
Definition: pcbnew.py:5915
def PerpendicularSeg(self, aP)
Definition: pcbnew.py:5919
def ApproxPerpendicular(self, aSeg)
Definition: pcbnew.py:5961
def Center(self)
Definition: pcbnew.py:6000
def ApproxParallel(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5957
def AddNewColorSettings(self, aFilename)
Definition: pcbnew.py:4035
def SetMigrateLibraryTables(self, aMigrate=True)
Definition: pcbnew.py:4059
def GetPreviousVersionPaths(self, aName=None)
Definition: pcbnew.py:4063
def GetPathForSettingsFile(self, aSettings)
Definition: pcbnew.py:4047
def IsProjectOpen(self)
Definition: pcbnew.py:4079
def Save(self, *args)
Definition: pcbnew.py:4012
def GetColorSettings(self, *args)
Definition: pcbnew.py:4023
def GetColorSettingsList(self)
Definition: pcbnew.py:4027
def SaveColorSettings(self, *args)
Definition: pcbnew.py:4031
def Load(self, *args)
Definition: pcbnew.py:4005
def GetProject(self, aFullPath)
Definition: pcbnew.py:4087
def GetMigratedColorSettings(self)
Definition: pcbnew.py:4039
def IsSettingsPathValid(aPath)
Definition: pcbnew.py:4120
def MigrateIfNeeded(self)
Definition: pcbnew.py:4051
def UnloadProject(self, aProject, aSave=True)
Definition: pcbnew.py:4075
def TriggerBackupIfNeeded(self, aReporter)
Definition: pcbnew.py:4115
def GetCommonSettings(self)
Definition: pcbnew.py:4043
def __init__(self, aHeadless=False)
Definition: pcbnew.py:3992
def BackupProject(self, aReporter)
Definition: pcbnew.py:4111
def LoadProject(self, aFullPath, aSetActive=True)
Definition: pcbnew.py:4071
def FlushAndRelease(self, aSettings, aSave=True)
Definition: pcbnew.py:4019
def GetOpenProjects(self)
Definition: pcbnew.py:4091
def SaveProjectAs(self, aFullPath, aProject=None)
Definition: pcbnew.py:4099
def SetKiway(self, aKiway)
Definition: pcbnew.py:4001
def SaveProjectCopy(self, aFullPath, aProject=None)
Definition: pcbnew.py:4103
def SetMigrationSource(self, aSource)
Definition: pcbnew.py:4055
def SaveProject(self, *args)
Definition: pcbnew.py:4095
def GetProjectBackupsPath(self)
Definition: pcbnew.py:4107
def ReloadColorSettings(self)
Definition: pcbnew.py:4067
def BBox(self, aClearance=0)
Definition: pcbnew.py:6271
def GetRadius(self)
Definition: pcbnew.py:6318
def IntersectLine(self, aSeg, aIpsBuffer)
Definition: pcbnew.py:6287
def SetWidth(self, aWidth)
Definition: pcbnew.py:6295
def GetWidth(self)
Definition: pcbnew.py:6299
def Intersect(self, aArc, aIpsBuffer)
Definition: pcbnew.py:6291
def DefaultAccuracyForPCB()
Definition: pcbnew.py:6343
def Mirror(self, *args)
Definition: pcbnew.py:6303
def GetP1(self)
Definition: pcbnew.py:6259
def Collide(self, *args)
Definition: pcbnew.py:6279
def GetCentralAngle(self)
Definition: pcbnew.py:6326
def IsClockwise(self)
Definition: pcbnew.py:6359
def GetCenter(self)
Definition: pcbnew.py:6267
def __eq__(self, aArc)
Definition: pcbnew.py:6351
def GetChord(self)
Definition: pcbnew.py:6322
def Reversed(self)
Definition: pcbnew.py:6314
def IsCCW(self)
Definition: pcbnew.py:6355
def GetLength(self)
Definition: pcbnew.py:6338
def ConvertToPolyline(self, *args)
Definition: pcbnew.py:6347
def NearestPoint(self, aP)
Definition: pcbnew.py:6275
def Reverse(self)
Definition: pcbnew.py:6310
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:6242
def GetP0(self)
Definition: pcbnew.py:6255
def GetArcMid(self)
Definition: pcbnew.py:6263
def GetStartAngle(self)
Definition: pcbnew.py:6330
def GetEndAngle(self)
Definition: pcbnew.py:6334
def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0)
Definition: pcbnew.py:6251
def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0)
Definition: pcbnew.py:6247
def GetIndexableSubshapes(self, aSubshapes)
Definition: pcbnew.py:6067
def __init__(self, aType)
Definition: pcbnew.py:6046
def Type(self)
Definition: pcbnew.py:6051
def GetIndexableSubshapeCount(self)
Definition: pcbnew.py:6063
def HasIndexableSubshapes(self)
Definition: pcbnew.py:6059
def TypeName(self)
Definition: pcbnew.py:6055
def GetRadius(self)
Definition: pcbnew.py:6402
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:6390
def SetCenter(self, aCenter)
Definition: pcbnew.py:6398
def __init__(self, *args)
Definition: pcbnew.py:6376
def SetRadius(self, aRadius)
Definition: pcbnew.py:6394
def BBox(self, aClearance=0)
Definition: pcbnew.py:6386
def GetCircle(self)
Definition: pcbnew.py:6410
def Rotate(self, *args)
Definition: pcbnew.py:6414
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6418
def GetCenter(self)
Definition: pcbnew.py:6406
def __init__(self, *args)
Definition: pcbnew.py:6431
def UniqueSubshape(self)
Definition: pcbnew.py:6490
def BBox(self, aClearance=0)
Definition: pcbnew.py:6460
def Collide(self, *args)
Definition: pcbnew.py:6448
def Rotate(self, *args)
Definition: pcbnew.py:6486
def GetSubshapes(self)
Definition: pcbnew.py:6494
def Distance(self, *args)
Definition: pcbnew.py:6464
def Shapes(self)
Definition: pcbnew.py:6456
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6444
def AddShape(self, *args)
Definition: pcbnew.py:6471
def SquaredDistance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:6194
def EdgeContainingPoint(self, aP, aAccuracy=0)
Definition: pcbnew.py:6206
def PointOnEdge(self, aP, aAccuracy=0)
Definition: pcbnew.py:6202
def GetSegment(self, aIndex)
Definition: pcbnew.py:6214
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:6182
def GetPoint(self, aIndex)
Definition: pcbnew.py:6210
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:6198
def Collide(self, *args)
Definition: pcbnew.py:6187
def SegmentCount(self)
Definition: pcbnew.py:6562
def CheckClearance(self, aP, aDist)
Definition: pcbnew.py:6704
def Find(self, aP, aThreshold=0)
Definition: pcbnew.py:6677
def PointCount(self)
Definition: pcbnew.py:6578
def Slice(self, aStartIndex, aEndIndex=-1)
Definition: pcbnew.py:6685
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6723
def CLastPoint(self)
Definition: pcbnew.py:6606
def Remove(self, *args)
Definition: pcbnew.py:6666
def RemoveShape(self, aPointIndex)
Definition: pcbnew.py:6673
def SetPoint(self, aIndex, aPos)
Definition: pcbnew.py:6594
def SelfIntersecting(self)
Definition: pcbnew.py:6708
def NextShape(self, aPointIndex)
Definition: pcbnew.py:6590
def Simplify(self, aMaxError=0)
Definition: pcbnew.py:6574
def ArcIndex(self, aSegment)
Definition: pcbnew.py:6769
def CSegment(self, aIndex)
Definition: pcbnew.py:6586
def Collide(self, *args)
Definition: pcbnew.py:6539
def SetClosed(self, aClosed)
Definition: pcbnew.py:6550
def ShapeCount(self)
Definition: pcbnew.py:6566
def IsArcStart(self, aIndex)
Definition: pcbnew.py:6789
def NearestSegment(self, aP)
Definition: pcbnew.py:6712
def Distance(self, *args)
Definition: pcbnew.py:6797
def ReservePoints(self, aSize)
Definition: pcbnew.py:6638
def GenerateBBoxCache(self)
Definition: pcbnew.py:6622
def CPoint(self, aIndex)
Definition: pcbnew.py:6598
def Append(self, *args)
Definition: pcbnew.py:6642
def PointAlong(self, aPathLength)
Definition: pcbnew.py:6746
def SetWidth(self, aWidth)
Definition: pcbnew.py:6554
def IsPtOnArc(self, aPtIndex)
Definition: pcbnew.py:6781
def Intersect(self, *args)
Definition: pcbnew.py:6693
def NearestPoint(self, *args)
Definition: pcbnew.py:6716
def Split(self, *args)
Definition: pcbnew.py:6754
def Area(self, aAbsolute=True)
Definition: pcbnew.py:6750
def Rotate(self, *args)
Definition: pcbnew.py:6742
def Arc(self, aArc)
Definition: pcbnew.py:6773
def __ne__(self, aRhs)
Definition: pcbnew.py:6727
def Insert(self, *args)
Definition: pcbnew.py:6652
def OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify=False)
Definition: pcbnew.py:6761
def CompareGeometry(self, aOther)
Definition: pcbnew.py:6731
def BBox(self, aClearance=0)
Definition: pcbnew.py:6618
def Replace(self, *args)
Definition: pcbnew.py:6659
def RemoveDuplicatePoints(self)
Definition: pcbnew.py:6570
def Intersects(self, aChain)
Definition: pcbnew.py:6689
def Mirror(self, *args)
Definition: pcbnew.py:6735
def IsSharedPt(self, aIndex)
Definition: pcbnew.py:6777
def IsArcSegment(self, aSegment)
Definition: pcbnew.py:6785
def PathLength(self, aP, aIndex=-1)
Definition: pcbnew.py:6700
def IsArcEnd(self, aIndex)
Definition: pcbnew.py:6793
def FindSegment(self, aP, aThreshold=1)
Definition: pcbnew.py:6681
def __init__(self, *args)
Definition: pcbnew.py:6526
def Segment(self, aIndex)
Definition: pcbnew.py:6582
def NormalizeAreaOutlines(self)
Definition: pcbnew.py:7123
def CVertex(self, *args)
Definition: pcbnew.py:6897
def SquaredDistance(self, *args)
Definition: pcbnew.py:7248
def IsTriangulationUpToDate(self)
Definition: pcbnew.py:6828
def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False)
Definition: pcbnew.py:7175
def BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False)
Definition: pcbnew.py:7264
def IsPolygonSelfIntersecting(self, aPolygonIndex)
Definition: pcbnew.py:6909
def IsVertexInHole(self, aGlobalIdx)
Definition: pcbnew.py:7259
def VertexCount(self, aOutline=-1, aHole=-1)
Definition: pcbnew.py:6925
def OutlineCount(self)
Definition: pcbnew.py:6921
def IterateFromVertexWithHoles(self, aGlobalIdx)
Definition: pcbnew.py:7013
def BooleanXor(self, *args)
Definition: pcbnew.py:7072
def FilletPolygon(self, aRadius, aErrorMax, aIndex)
Definition: pcbnew.py:7229
def IsSelfIntersecting(self)
Definition: pcbnew.py:6913
def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:7155
def Fracture(self, aFastMode)
Definition: pcbnew.py:7099
def TotalVertices(self)
Definition: pcbnew.py:7209
def RemoveAllContours(self)
Definition: pcbnew.py:7190
def SquaredDistanceToSeg(self, aSegment, aNearest=None)
Definition: pcbnew.py:7255
def SetVertex(self, *args)
Definition: pcbnew.py:7202
def HoleCount(self, aOutline)
Definition: pcbnew.py:6933
def CIterateWithHoles(self, *args)
Definition: pcbnew.py:7006
def CloneDropTriangulation(self)
Definition: pcbnew.py:6844
def Collide(self, *args)
Definition: pcbnew.py:7147
def BooleanAdd(self, *args)
Definition: pcbnew.py:7051
def BuildBBoxCaches(self)
Definition: pcbnew.py:7167
def RemoveNullSegments(self)
Definition: pcbnew.py:7198
def Iterate(self, *args)
Definition: pcbnew.py:6983
def HasTouchingHoles(self)
Definition: pcbnew.py:7111
def Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify=False)
Definition: pcbnew.py:7083
def ChamferPolygon(self, aDistance, aIndex)
Definition: pcbnew.py:7225
def NewHole(self, aOutline=-1)
Definition: pcbnew.py:6852
def CacheTriangulation(self, aPartition=True, aSimplify=False)
Definition: pcbnew.py:6824
def ArcCount(self)
Definition: pcbnew.py:6872
def OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify)
Definition: pcbnew.py:7091
def Unfracture(self, aFastMode)
Definition: pcbnew.py:7103
def FullPointCount(self)
Definition: pcbnew.py:6929
def RemoveContour(self, aContourIdx, aPolygonIdx=-1)
Definition: pcbnew.py:7194
def InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError, aFastMode)
Definition: pcbnew.py:7095
def NewOutline(self)
Definition: pcbnew.py:6848
def Simplify(self, aFastMode)
Definition: pcbnew.py:7115
def AddHole(self, aHole, aOutline=-1)
Definition: pcbnew.py:6860
def SquaredDistanceToPolygon(self, *args)
Definition: pcbnew.py:7241
def IterateSegments(self, *args)
Definition: pcbnew.py:7017
def COutline(self, aIndex)
Definition: pcbnew.py:6967
def BBox(self, aClearance=0)
Definition: pcbnew.py:7139
def InsertVertex(self, aGlobalIndex, aNewVertex)
Definition: pcbnew.py:6893
def AddOutline(self, aOutline)
Definition: pcbnew.py:6856
def __init__(self, *args)
Definition: pcbnew.py:6813
def Hole(self, aOutline, aHole)
Definition: pcbnew.py:6952
def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
Definition: pcbnew.py:6905
def IterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:7033
def Rotate(self, *args)
Definition: pcbnew.py:7135
def GetArcs(self, aArcBuffer)
Definition: pcbnew.py:6876
def RemoveVertex(self, *args)
Definition: pcbnew.py:7183
def UpdateTriangulationDataHash(self)
Definition: pcbnew.py:7221
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:7163
def Append(self, *args)
Definition: pcbnew.py:6884
def Outline(self, *args)
Definition: pcbnew.py:6937
def BooleanSubtract(self, *args)
Definition: pcbnew.py:7058
def CPolygon(self, aIndex)
Definition: pcbnew.py:6975
def RebuildHolesFromContours(self)
Definition: pcbnew.py:7079
def GetHash(self)
Definition: pcbnew.py:6832
def Fillet(self, aRadius, aErrorMax)
Definition: pcbnew.py:7237
def Deflate(self, aAmount, aCornerStrategy, aMaxError)
Definition: pcbnew.py:7087
def UnitSet(self, aPolygonIndex)
Definition: pcbnew.py:6948
def Mirror(self, *args)
Definition: pcbnew.py:7131
def CIterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:7040
def SimplifyOutlines(self, aMaxError=0)
Definition: pcbnew.py:7119
def CHole(self, aOutline, aHole)
Definition: pcbnew.py:6971
def DeletePolygon(self, aIdx)
Definition: pcbnew.py:7213
def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
Definition: pcbnew.py:6836
def TriangulatedPolygon(self, aIndex)
Definition: pcbnew.py:6963
def CIterateSegments(self, *args)
Definition: pcbnew.py:7025
def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True)
Definition: pcbnew.py:7217
def BooleanIntersection(self, *args)
Definition: pcbnew.py:7065
def AddPolygon(self, apolygon)
Definition: pcbnew.py:6864
def IterateWithHoles(self, *args)
Definition: pcbnew.py:6991
def Chamfer(self, aDistance)
Definition: pcbnew.py:7233
def HasHoles(self)
Definition: pcbnew.py:7107
def ClearArcs(self)
Definition: pcbnew.py:6880
def Subset(self, aFirstPolygon, aLastPolygon)
Definition: pcbnew.py:6944
def IsEmpty(self)
Definition: pcbnew.py:7179
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7127
def TriangulatedPolyCount(self)
Definition: pcbnew.py:6917
def PointOnEdge(self, aP, aAccuracy=0)
Definition: pcbnew.py:7143
def BBoxFromCaches(self)
Definition: pcbnew.py:7171
def Polygon(self, *args)
Definition: pcbnew.py:6956
def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
Definition: pcbnew.py:6840
def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:7159
def CIterate(self, *args)
Definition: pcbnew.py:6998
def CPolygons(self)
Definition: pcbnew.py:6979
def GetWidth(self)
Definition: pcbnew.py:7315
def Diagonal(self)
Definition: pcbnew.py:7295
def Collide(self, *args)
Definition: pcbnew.py:7299
def __init__(self, *args)
Definition: pcbnew.py:7281
def GetPosition(self)
Definition: pcbnew.py:7307
def GetSize(self)
Definition: pcbnew.py:7311
def Rotate(self, *args)
Definition: pcbnew.py:7323
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7331
def Outline(self)
Definition: pcbnew.py:7327
def BBox(self, aClearance=0)
Definition: pcbnew.py:7291
def GetHeight(self)
Definition: pcbnew.py:7319
def SetWidth(self, aWidth)
Definition: pcbnew.py:7375
def Collide(self, *args)
Definition: pcbnew.py:7358
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7391
def BBox(self, aClearance=0)
Definition: pcbnew.py:7354
def SetSeg(self, aSeg)
Definition: pcbnew.py:7367
def __init__(self, *args)
Definition: pcbnew.py:7345
def GetWidth(self)
Definition: pcbnew.py:7379
def GetSeg(self)
Definition: pcbnew.py:7371
def Is45Degree(self, *args)
Definition: pcbnew.py:7387
def Rotate(self, *args)
Definition: pcbnew.py:7383
def BBox(self, aClearance=0)
Definition: pcbnew.py:7416
def Clear(self)
Definition: pcbnew.py:7412
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:7443
def Vertices(self)
Definition: pcbnew.py:7432
def PointCount(self)
Definition: pcbnew.py:7420
def CDPoint(self, aIndex)
Definition: pcbnew.py:7428
def CPoint(self, aIndex)
Definition: pcbnew.py:7424
def Rotate(self, *args)
Definition: pcbnew.py:7447
def Append(self, *args)
Definition: pcbnew.py:7436
def __init__(self, *args)
Definition: pcbnew.py:7404
def GetClearance(self, aOther)
Definition: pcbnew.py:6090
def TransformToPolygon(self, aBuffer, aError, aErrorLoc)
Definition: pcbnew.py:6127
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:6123
def Distance(self, aP)
Definition: pcbnew.py:6115
def Parse(self, aStream)
Definition: pcbnew.py:6143
def BBox(self, aClearance=0)
Definition: pcbnew.py:6107
def Centre(self)
Definition: pcbnew.py:6111
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:6079
def Move(self, aVector)
Definition: pcbnew.py:6135
def Rotate(self, *args)
Definition: pcbnew.py:6131
def IsSolid(self)
Definition: pcbnew.py:6139
def Cast(self)
Definition: pcbnew.py:6151
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6147
def IsNull(self)
Definition: pcbnew.py:6094
def SquaredDistance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:6119
def Clone(self)
Definition: pcbnew.py:6086
def Collide(self, *args)
Definition: pcbnew.py:6098
def __init__(self, *args)
Definition: pcbnew.py:17057
def iterator(self)
Definition: pcbnew.py:17019
def count(self, x)
Definition: pcbnew.py:17081
def upper_bound(self, x)
Definition: pcbnew.py:17117
def append(self, x)
Definition: pcbnew.py:17037
def insert(self, __x)
Definition: pcbnew.py:17125
def __nonzero__(self)
Definition: pcbnew.py:17025
def __getitem__(self, i)
Definition: pcbnew.py:17045
def end(self)
Definition: pcbnew.py:17089
def lower_bound(self, x)
Definition: pcbnew.py:17113
def add(self, x)
Definition: pcbnew.py:17049
def __bool__(self)
Definition: pcbnew.py:17029
def clear(self)
Definition: pcbnew.py:17073
def erase(self, *args)
Definition: pcbnew.py:17101
def equal_range(self, x)
Definition: pcbnew.py:17121
def find(self, x)
Definition: pcbnew.py:17109
def rbegin(self)
Definition: pcbnew.py:17093
def __len__(self)
Definition: pcbnew.py:17033
def size(self)
Definition: pcbnew.py:17069
def __iter__(self)
Definition: pcbnew.py:17022
def __contains__(self, x)
Definition: pcbnew.py:17041
def discard(self, x)
Definition: pcbnew.py:17053
def rend(self)
Definition: pcbnew.py:17097
def begin(self)
Definition: pcbnew.py:17085
def empty(self)
Definition: pcbnew.py:17065
def swap(self, v)
Definition: pcbnew.py:17077
def __init__(self, *args)
Definition: pcbnew.py:2202
def StripUseless(self)
Definition: pcbnew.py:2210
def __init__(self, *args)
Definition: pcbnew.py:2137
def __init__(self)
Definition: pcbnew.py:2415
def Compare(self, aRhs)
Definition: pcbnew.py:15542
def __gt__(self, aRhs)
Definition: pcbnew.py:15550
def __eq__(self, aRhs)
Definition: pcbnew.py:15546
def __lt__(self, aRhs)
Definition: pcbnew.py:15554
def __init__(self, aFont=None)
Definition: pcbnew.py:15538
def __eq__(self, aOther)
Definition: pcbnew.py:10755
def __init__(self, aText, aVisible, aLayer)
Definition: pcbnew.py:10751
def GetComment(self, aIdx)
Definition: pcbnew.py:2297
def SetDate(self, aDate)
Definition: pcbnew.py:2269
def GetContextualTextVars(aVars)
Definition: pcbnew.py:2306
def GetCompany(self)
Definition: pcbnew.py:2289
def GetTitle(self)
Definition: pcbnew.py:2265
def TextVarResolver(self, aToken, aProject)
Definition: pcbnew.py:2310
def Clear(self)
Definition: pcbnew.py:2301
def Format(self, aFormatter, aNestLevel, aControlBits)
Definition: pcbnew.py:2314
def GetDate(self)
Definition: pcbnew.py:2273
def SetComment(self, aIdx, aComment)
Definition: pcbnew.py:2293
def SetRevision(self, aRevision)
Definition: pcbnew.py:2277
def GetRevision(self)
Definition: pcbnew.py:2281
def __init__(self)
Definition: pcbnew.py:2256
def SetCompany(self, aCompany)
Definition: pcbnew.py:2285
def SetTitle(self, aTitle)
Definition: pcbnew.py:2261
def end(self)
Definition: pcbnew.py:16493
def __delitem__(self, *args)
Definition: pcbnew.py:16447
def __setslice__(self, *args)
Definition: pcbnew.py:16436
def __iter__(self)
Definition: pcbnew.py:16417
def __len__(self)
Definition: pcbnew.py:16428
def __getslice__(self, i, j)
Definition: pcbnew.py:16432
def get_allocator(self)
Definition: pcbnew.py:16509
def begin(self)
Definition: pcbnew.py:16489
def iterator(self)
Definition: pcbnew.py:16414
def __setitem__(self, *args)
Definition: pcbnew.py:16461
def capacity(self)
Definition: pcbnew.py:16567
def erase(self, *args)
Definition: pcbnew.py:16517
def __getitem__(self, *args)
Definition: pcbnew.py:16454
def clear(self)
Definition: pcbnew.py:16505
def size(self)
Definition: pcbnew.py:16481
def __nonzero__(self)
Definition: pcbnew.py:16420
def empty(self)
Definition: pcbnew.py:16477
def assign(self, n, x)
Definition: pcbnew.py:16545
def pop(self)
Definition: pcbnew.py:16469
def reserve(self, n)
Definition: pcbnew.py:16563
def __init__(self, *args)
Definition: pcbnew.py:16524
def back(self)
Definition: pcbnew.py:16541
def pop_back(self)
Definition: pcbnew.py:16513
def insert(self, *args)
Definition: pcbnew.py:16556
def rend(self)
Definition: pcbnew.py:16501
def __bool__(self)
Definition: pcbnew.py:16424
def resize(self, *args)
Definition: pcbnew.py:16549
def swap(self, v)
Definition: pcbnew.py:16485
def push_back(self, x)
Definition: pcbnew.py:16533
def __delslice__(self, i, j)
Definition: pcbnew.py:16443
def rbegin(self)
Definition: pcbnew.py:16497
def append(self, x)
Definition: pcbnew.py:16473
def front(self)
Definition: pcbnew.py:16537
def size(self)
Definition: pcbnew.py:11746
def resize(self, *args)
Definition: pcbnew.py:11814
def pop(self)
Definition: pcbnew.py:11734
def insert(self, *args)
Definition: pcbnew.py:11821
def __getitem__(self, *args)
Definition: pcbnew.py:11719
def begin(self)
Definition: pcbnew.py:11754
def assign(self, n, x)
Definition: pcbnew.py:11810
def get_allocator(self)
Definition: pcbnew.py:11774
def clear(self)
Definition: pcbnew.py:11770
def empty(self)
Definition: pcbnew.py:11742
def __delitem__(self, *args)
Definition: pcbnew.py:11712
def push_front(self, x)
Definition: pcbnew.py:11832
def __setitem__(self, *args)
Definition: pcbnew.py:11726
def __delslice__(self, i, j)
Definition: pcbnew.py:11708
def __setslice__(self, *args)
Definition: pcbnew.py:11701
def __iter__(self)
Definition: pcbnew.py:11682
def __nonzero__(self)
Definition: pcbnew.py:11685
def __init__(self, *args)
Definition: pcbnew.py:11789
def front(self)
Definition: pcbnew.py:11802
def swap(self, v)
Definition: pcbnew.py:11750
def erase(self, *args)
Definition: pcbnew.py:11782
def push_back(self, x)
Definition: pcbnew.py:11798
def __getslice__(self, i, j)
Definition: pcbnew.py:11697
def __bool__(self)
Definition: pcbnew.py:11689
def append(self, x)
Definition: pcbnew.py:11738
def __len__(self)
Definition: pcbnew.py:11693
def iterator(self)
Definition: pcbnew.py:11679
def pop_front(self)
Definition: pcbnew.py:11828
def back(self)
Definition: pcbnew.py:11806
def end(self)
Definition: pcbnew.py:11758
def rbegin(self)
Definition: pcbnew.py:11762
def rend(self)
Definition: pcbnew.py:11766
def pop_back(self)
Definition: pcbnew.py:11778
def GetUnitPair(self, aPrimaryUnit, aSecondaryUnits)
Definition: pcbnew.py:10075
def GetOriginTransforms(self)
Definition: pcbnew.py:10083
def GetIuScale(self)
Definition: pcbnew.py:10079
def MessageTextFromValue(self, *args)
Definition: pcbnew.py:10094
def StringFromValue(self, *args)
Definition: pcbnew.py:10087
def AngleValueFromString(self, aTextValue)
Definition: pcbnew.py:10109
def __init__(self, aIuScale, aUnits)
Definition: pcbnew.py:10062
def MessageTextFromMinOptMax(self, aValue)
Definition: pcbnew.py:10101
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:10071
def ValueFromString(self, *args)
Definition: pcbnew.py:10105
def find(self, *args)
Definition: pcbnew.py:7693
def __str__(self)
Definition: pcbnew.py:7774
def end(self)
Definition: pcbnew.py:7759
def empty(self)
Definition: pcbnew.py:7689
def c_str(self)
Definition: pcbnew.py:7685
def __init__(self, *args)
Definition: pcbnew.py:7674
def utf8_to_wxstring(self)
Definition: pcbnew.py:7751
def clear(self)
Definition: pcbnew.py:7700
def __iadd__(self, *args)
Definition: pcbnew.py:7728
def compare(self, s)
Definition: pcbnew.py:7712
def __eq__(self, *args)
Definition: pcbnew.py:7716
def wx_str(self)
Definition: pcbnew.py:7747
def find_first_of(self, str, pos=0)
Definition: pcbnew.py:7724
def size(self)
Definition: pcbnew.py:7708
def GetChars(self)
Definition: pcbnew.py:7769
def Cast_to_CChar(self)
Definition: pcbnew.py:7763
def length(self)
Definition: pcbnew.py:7704
def utf8_to_string(self)
Definition: pcbnew.py:7743
def substr(self, *args)
Definition: pcbnew.py:7739
def begin(self)
Definition: pcbnew.py:7755
def GetCenter(self)
Definition: pcbnew.py:4172
def Min(self)
Definition: pcbnew.py:4164
def Max(self)
Definition: pcbnew.py:4168
def __init__(self)
Definition: pcbnew.py:4180
def GetSize(self)
Definition: pcbnew.py:4176
def Scale(self, aScale)
Definition: pcbnew.py:4202
def LoadSTEP(aFileName)
Definition: pcbnew.py:4211
def SaveSTEP(self, aFileName)
Definition: pcbnew.py:4206
def Translate(self, aX, aY, aZ)
Definition: pcbnew.py:4198
def GetBoundingBox(self)
Definition: pcbnew.py:4194
def __gt__(self, aVector)
Definition: pcbnew.py:5307
def __eq__(self, aVector)
Definition: pcbnew.py:5291
def __mul__(self, *args)
Definition: pcbnew.py:5278
def Get(self)
Definition: pcbnew.py:5319
def EuclideanNorm(self)
Definition: pcbnew.py:5211
def __add__(self, *args)
Definition: pcbnew.py:5239
def Perpendicular(self)
Definition: pcbnew.py:5219
def __truediv__(self, *args)
Definition: pcbnew.py:5285
def Format(self)
Definition: pcbnew.py:5227
def __imul__(self, *args)
Definition: pcbnew.py:5246
def __neg__(self)
Definition: pcbnew.py:5274
def __le__(self, aVector)
Definition: pcbnew.py:5303
def __ne__(self, aVector)
Definition: pcbnew.py:5295
def __setitem__(self, index, val)
Definition: pcbnew.py:5329
def __ge__(self, aVector)
Definition: pcbnew.py:5311
def __init__(self, *args)
Definition: pcbnew.py:5203
def __nonzero__(self)
Definition: pcbnew.py:5336
def SquaredEuclideanNorm(self)
Definition: pcbnew.py:5215
def __str__(self)
Definition: pcbnew.py:5325
def Resize(self, aNewLength)
Definition: pcbnew.py:5223
def __getitem__(self, index)
Definition: pcbnew.py:5328
def Dot(self, aVector)
Definition: pcbnew.py:5235
def __lt__(self, aVector)
Definition: pcbnew.py:5299
def Set(self, x, y)
Definition: pcbnew.py:5315
def Cross(self, aVector)
Definition: pcbnew.py:5231
def __len__(self)
Definition: pcbnew.py:5327
def __sub__(self, *args)
Definition: pcbnew.py:5260
def __iadd__(self, *args)
Definition: pcbnew.py:5253
def __isub__(self, *args)
Definition: pcbnew.py:5267
def __itruediv__(self, *args)
Definition: pcbnew.py:5406
def Normalize(self)
Definition: pcbnew.py:5390
def EuclideanNorm(self)
Definition: pcbnew.py:5386
def __setitem__(self, index, val)
Definition: pcbnew.py:5426
def __len__(self)
Definition: pcbnew.py:5424
def __ne__(self, aVector)
Definition: pcbnew.py:5398
def Cross(self, aVector)
Definition: pcbnew.py:5378
def __getitem__(self, index)
Definition: pcbnew.py:5425
def __eq__(self, aVector)
Definition: pcbnew.py:5394
def __imul__(self, val)
Definition: pcbnew.py:5402
def __init__(self, *args)
Definition: pcbnew.py:5371
def Get(self)
Definition: pcbnew.py:5416
def __nonzero__(self)
Definition: pcbnew.py:5435
def Dot(self, aVector)
Definition: pcbnew.py:5382
def __str__(self)
Definition: pcbnew.py:5422
def Set(self, x, y, z)
Definition: pcbnew.py:5412
def append(self, x)
Definition: pcbnew.py:19546
def reserve(self, n)
Definition: pcbnew.py:19636
def push_back(self, x)
Definition: pcbnew.py:19606
def erase(self, *args)
Definition: pcbnew.py:19590
def __init__(self, *args)
Definition: pcbnew.py:19597
def __setslice__(self, *args)
Definition: pcbnew.py:19509
def __delslice__(self, i, j)
Definition: pcbnew.py:19516
def assign(self, n, x)
Definition: pcbnew.py:19618
def resize(self, *args)
Definition: pcbnew.py:19622
def __getitem__(self, *args)
Definition: pcbnew.py:19527
def __delitem__(self, *args)
Definition: pcbnew.py:19520
def __getslice__(self, i, j)
Definition: pcbnew.py:19505
def __setitem__(self, *args)
Definition: pcbnew.py:19534
def insert(self, *args)
Definition: pcbnew.py:19629
def insert(self, *args)
Definition: pcbnew.py:7603
def __setslice__(self, *args)
Definition: pcbnew.py:7483
def capacity(self)
Definition: pcbnew.py:7614
def push_back(self, x)
Definition: pcbnew.py:7580
def __getitem__(self, *args)
Definition: pcbnew.py:7501
def __iter__(self)
Definition: pcbnew.py:7464
def iterator(self)
Definition: pcbnew.py:7461
def pop_back(self)
Definition: pcbnew.py:7560
def get_allocator(self)
Definition: pcbnew.py:7556
def __bool__(self)
Definition: pcbnew.py:7471
def __delslice__(self, i, j)
Definition: pcbnew.py:7490
def __delitem__(self, *args)
Definition: pcbnew.py:7494
def erase(self, *args)
Definition: pcbnew.py:7564
def resize(self, *args)
Definition: pcbnew.py:7596
def __nonzero__(self)
Definition: pcbnew.py:7467
def assign(self, n, x)
Definition: pcbnew.py:7592
def swap(self, v)
Definition: pcbnew.py:7532
def __getslice__(self, i, j)
Definition: pcbnew.py:7479
def __setitem__(self, *args)
Definition: pcbnew.py:7508
def reserve(self, n)
Definition: pcbnew.py:7610
def __init__(self, *args)
Definition: pcbnew.py:7571
def append(self, x)
Definition: pcbnew.py:7520
def __getitem__(self, *args)
Definition: pcbnew.py:5718
def erase(self, *args)
Definition: pcbnew.py:5781
def resize(self, *args)
Definition: pcbnew.py:5813
def __iter__(self)
Definition: pcbnew.py:5681
def __delslice__(self, i, j)
Definition: pcbnew.py:5707
def __nonzero__(self)
Definition: pcbnew.py:5684
def get_allocator(self)
Definition: pcbnew.py:5773
def append(self, x)
Definition: pcbnew.py:5737
def insert(self, *args)
Definition: pcbnew.py:5820
def assign(self, n, x)
Definition: pcbnew.py:5809
def __init__(self, *args)
Definition: pcbnew.py:5788
def __bool__(self)
Definition: pcbnew.py:5688
def capacity(self)
Definition: pcbnew.py:5831
def __setslice__(self, *args)
Definition: pcbnew.py:5700
def iterator(self)
Definition: pcbnew.py:5678
def push_back(self, x)
Definition: pcbnew.py:5797
def __getslice__(self, i, j)
Definition: pcbnew.py:5696
def __setitem__(self, *args)
Definition: pcbnew.py:5725
def reserve(self, n)
Definition: pcbnew.py:5827
def __delitem__(self, *args)
Definition: pcbnew.py:5711
def pop_back(self)
Definition: pcbnew.py:5777
def swap(self, v)
Definition: pcbnew.py:5749
def resize(self, *args)
Definition: pcbnew.py:17637
def __getslice__(self, i, j)
Definition: pcbnew.py:17520
def erase(self, *args)
Definition: pcbnew.py:17605
def assign(self, n, x)
Definition: pcbnew.py:17633
def __init__(self, *args)
Definition: pcbnew.py:17612
def __delitem__(self, *args)
Definition: pcbnew.py:17535
def __delslice__(self, i, j)
Definition: pcbnew.py:17531
def __getitem__(self, *args)
Definition: pcbnew.py:17542
def __setslice__(self, *args)
Definition: pcbnew.py:17524
def __setitem__(self, *args)
Definition: pcbnew.py:17549
def insert(self, *args)
Definition: pcbnew.py:17644
def __lt__(self, aOther)
Definition: pcbnew.py:10688
def __ne__(self, aOther)
Definition: pcbnew.py:10684
def __init__(self, *args)
Definition: pcbnew.py:10673
def __eq__(self, aOther)
Definition: pcbnew.py:10680
def reserve(self, n)
Definition: pcbnew.py:11661
def iterator(self)
Definition: pcbnew.py:11512
def __delitem__(self, *args)
Definition: pcbnew.py:11545
def __getslice__(self, i, j)
Definition: pcbnew.py:11530
def back(self)
Definition: pcbnew.py:11639
def capacity(self)
Definition: pcbnew.py:11665
def __setslice__(self, *args)
Definition: pcbnew.py:11534
def get_allocator(self)
Definition: pcbnew.py:11607
def __init__(self, *args)
Definition: pcbnew.py:11622
def append(self, x)
Definition: pcbnew.py:11571
def empty(self)
Definition: pcbnew.py:11575
def __iter__(self)
Definition: pcbnew.py:11515
def end(self)
Definition: pcbnew.py:11591
def __setitem__(self, *args)
Definition: pcbnew.py:11559
def __delslice__(self, i, j)
Definition: pcbnew.py:11541
def resize(self, *args)
Definition: pcbnew.py:11647
def assign(self, n, x)
Definition: pcbnew.py:11643
def size(self)
Definition: pcbnew.py:11579
def push_back(self, x)
Definition: pcbnew.py:11631
def front(self)
Definition: pcbnew.py:11635
def pop(self)
Definition: pcbnew.py:11567
def pop_back(self)
Definition: pcbnew.py:11611
def __len__(self)
Definition: pcbnew.py:11526
def __nonzero__(self)
Definition: pcbnew.py:11518
def insert(self, *args)
Definition: pcbnew.py:11654
def __getitem__(self, *args)
Definition: pcbnew.py:11552
def clear(self)
Definition: pcbnew.py:11603
def swap(self, v)
Definition: pcbnew.py:11583
def rend(self)
Definition: pcbnew.py:11599
def erase(self, *args)
Definition: pcbnew.py:11615
def begin(self)
Definition: pcbnew.py:11587
def rbegin(self)
Definition: pcbnew.py:11595
def __bool__(self)
Definition: pcbnew.py:11522
def GetProgressReporter(self)
Definition: pcbnew.py:14521
def __init__(self, aBoard)
Definition: pcbnew.py:14533
def IsDebug(self)
Definition: pcbnew.py:14529
def Fill(self, aZones, aCheck=False, aParent=None)
Definition: pcbnew.py:14525
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:14517
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:14671
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:14667
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:14631
def __eq__(self, aOther)
Definition: pcbnew.py:14598
def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
Definition: pcbnew.py:14615
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:14687
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:14683
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:14659
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:14707
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:14643
def __ne__(self, aOther)
Definition: pcbnew.py:14602
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:14651
def __lshift__(self, aSource)
Definition: pcbnew.py:14606
def GetCornerRadius(self)
Definition: pcbnew.py:14635
def GetPadConnection(self)
Definition: pcbnew.py:14639
def GetIslandRemovalMode(self)
Definition: pcbnew.py:14695
def GetDoNotAllowPads(self)
Definition: pcbnew.py:14663
def ExportSetting(self, aTarget, aFullExport=True)
Definition: pcbnew.py:14619
def GetCornerSmoothingType(self)
Definition: pcbnew.py:14627
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:14623
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:14699
def GetIsRuleArea(self)
Definition: pcbnew.py:14647
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:14675
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:14691
def GetDoNotAllowVias(self)
Definition: pcbnew.py:14655
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:14679
def __init__(self)
Definition: pcbnew.py:14594
def GetDefaultSettings()
Definition: pcbnew.py:14611
def GetMinIslandArea(self)
Definition: pcbnew.py:14703
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:14002
def GetMinThickness(self)
Definition: pcbnew.py:14093
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:14089
def GetLocalFlags(self)
Definition: pcbnew.py:14165
def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
Definition: pcbnew.py:14196
def NeedRefill(self)
Definition: pcbnew.py:14077
def GetNumCorners(self)
Definition: pcbnew.py:14239
def UnHatchBorder(self)
Definition: pcbnew.py:14435
def NewHole(self)
Definition: pcbnew.py:14267
def SetNeedRefill(self, aNeedRefill)
Definition: pcbnew.py:14081
def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
Definition: pcbnew.py:14427
def GetThermalReliefGap(self, *args)
Definition: pcbnew.py:14026
def IsTeardropArea(self)
Definition: pcbnew.py:14342
def IterateWithHoles(self)
Definition: pcbnew.py:14247
def SetHatchSmoothingValue(self, aValue)
Definition: pcbnew.py:14137
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:14394
def GetFill(self, aLayer)
Definition: pcbnew.py:14291
def Mirror(self, aMirrorRef, aMirrorLeftRight)
Definition: pcbnew.py:14235
def GetZoneName(self)
Definition: pcbnew.py:13983
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:14358
def SameNet(self, aOther)
Definition: pcbnew.py:13979
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:14386
def HatchBorder(self)
Definition: pcbnew.py:14439
def GetLock(self)
Definition: pcbnew.py:14057
def GetDefaultHatchPitch()
Definition: pcbnew.py:14423
def GetThermalReliefSpokeWidth(self)
Definition: pcbnew.py:14037
def Outline(self, *args)
Definition: pcbnew.py:14173
def GetFirstLayer(self)
Definition: pcbnew.py:14006
def GetDoNotAllowVias(self)
Definition: pcbnew.py:14362
def GetHatchHoleMinArea(self)
Definition: pcbnew.py:14141
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:14366
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:14315
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:14414
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:14390
def CIterateWithHoles(self)
Definition: pcbnew.py:14251
def GetIsRuleArea(self)
Definition: pcbnew.py:14354
def GetTeardropAreaType(self)
Definition: pcbnew.py:14350
def GetCornerRadius(self)
Definition: pcbnew.py:14327
def GetSelectedCorner(self)
Definition: pcbnew.py:14157
def GetIslandRemovalMode(self)
Definition: pcbnew.py:14402
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14184
def SetHatchThickness(self, aThickness)
Definition: pcbnew.py:14105
def AddPolygon(self, *args)
Definition: pcbnew.py:14335
def HigherPriority(self, aOther)
Definition: pcbnew.py:13975
def ClassOf(aItem)
Definition: pcbnew.py:13955
def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
Definition: pcbnew.py:14033
def SetTeardropAreaType(self, aType)
Definition: pcbnew.py:14346
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:14323
def SetHatchStyle(self, aStyle)
Definition: pcbnew.py:14279
def GetBorderHatchPitch(self)
Definition: pcbnew.py:14418
def GetHashValue(self, aLayer)
Definition: pcbnew.py:14451
def CacheBoundingBox(self)
Definition: pcbnew.py:13991
def SetZoneName(self, aName)
Definition: pcbnew.py:13987
def GetHatchSmoothingLevel(self)
Definition: pcbnew.py:14125
def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None)
Definition: pcbnew.py:14311
def SetHatchBorderAlgorithm(self, aAlgo)
Definition: pcbnew.py:14153
def SetFillMode(self, aFillMode)
Definition: pcbnew.py:14014
def GetLocalClearance(self, *args)
Definition: pcbnew.py:13995
def HasFilledPolysForLayer(self, aLayer)
Definition: pcbnew.py:14283
def CalculateOutlineArea(self)
Definition: pcbnew.py:14045
def SetHatchHoleMinArea(self, aPct)
Definition: pcbnew.py:14145
def GetPadConnection(self)
Definition: pcbnew.py:14085
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:14010
def GetAssignedPriority(self)
Definition: pcbnew.py:13971
def GetHatchLines(self)
Definition: pcbnew.py:14443
def GetCornerSmoothingType(self)
Definition: pcbnew.py:14319
def GetHatchGap(self)
Definition: pcbnew.py:14109
def SetBorderHatchPitch(self, aPitch)
Definition: pcbnew.py:14431
def GetFillMode(self)
Definition: pcbnew.py:14018
def SetCornerPosition(self, aCornerIndex, new_pos)
Definition: pcbnew.py:14263
def HitTest(self, *args)
Definition: pcbnew.py:14220
def InitDataFromSrcInCopyCtor(self, aZone)
Definition: pcbnew.py:13959
def GetCornerPosition(self, aCornerIndex)
Definition: pcbnew.py:14259
def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:14212
def CalculateFilledArea(self)
Definition: pcbnew.py:14041
def SetAssignedPriority(self, aPriority)
Definition: pcbnew.py:13967
def UnFill(self)
Definition: pcbnew.py:14227
def GetHatchOrientation(self)
Definition: pcbnew.py:14117
def SetFilledPolysList(self, aLayer, aPolysList)
Definition: pcbnew.py:14299
def IsFilled(self)
Definition: pcbnew.py:14069
def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
Definition: pcbnew.py:14204
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:14208
def __init__(self, *args)
Definition: pcbnew.py:13946
def GetMinIslandArea(self)
Definition: pcbnew.py:14410
def GetHatchStyle(self)
Definition: pcbnew.py:14275
def SetHatchOrientation(self, aStep)
Definition: pcbnew.py:14121
def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:14216
def RemoveCutout(self, aOutlineIdx, aHoleIdx)
Definition: pcbnew.py:14331
def GetFilledPolysList(self, aLayer)
Definition: pcbnew.py:14287
def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
Definition: pcbnew.py:14200
def SetMinThickness(self, aMinThickness)
Definition: pcbnew.py:14097
def SetHatchGap(self, aStep)
Definition: pcbnew.py:14113
def SetFillFlag(self, aLayer, aFlag)
Definition: pcbnew.py:14065
def MoveEdge(self, offset, aEdge)
Definition: pcbnew.py:14231
def GetHatchSmoothingValue(self)
Definition: pcbnew.py:14133
def IsConflicting(self)
Definition: pcbnew.py:13963
def SetOutline(self, aOutline)
Definition: pcbnew.py:14180
def GetDoNotAllowPads(self)
Definition: pcbnew.py:14370
def BuildHashValue(self, aLayer)
Definition: pcbnew.py:14447
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:14378
def GetHatchThickness(self)
Definition: pcbnew.py:14101
def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None)
Definition: pcbnew.py:14192
def SetThermalReliefGap(self, aThermalReliefGap)
Definition: pcbnew.py:14022
def SetIsFilled(self, isFilled)
Definition: pcbnew.py:14073
def IsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:14303
def CacheTriangulation(self, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:14295
def SetSelectedCorner(self, aCorner)
Definition: pcbnew.py:14161
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:14406
def GetFillFlag(self, aLayer)
Definition: pcbnew.py:14061
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:14374
def SetIsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:14307
def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False)
Definition: pcbnew.py:14271
def GetHatchBorderAlgorithm(self)
Definition: pcbnew.py:14149
def SetLocalFlags(self, aFlags)
Definition: pcbnew.py:14169
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:14398
def GetOutlineArea(self)
Definition: pcbnew.py:14053
def GetFilledArea(self)
Definition: pcbnew.py:14049
def RemoveAllContours(self)
Definition: pcbnew.py:14255
def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0)
Definition: pcbnew.py:14188
def SetHatchSmoothingLevel(self, aLevel)
Definition: pcbnew.py:14129
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:14382
def Iterate(self)
Definition: pcbnew.py:14243
def empty(self)
Definition: pcbnew.py:938
def resize(self, *args)
Definition: pcbnew.py:1010
def __delitem__(self, *args)
Definition: pcbnew.py:908
def rbegin(self)
Definition: pcbnew.py:958
def __iter__(self)
Definition: pcbnew.py:878
def assign(self, n, x)
Definition: pcbnew.py:1006
def __getitem__(self, *args)
Definition: pcbnew.py:915
def pop_back(self)
Definition: pcbnew.py:974
def reserve(self, n)
Definition: pcbnew.py:1024
def __setslice__(self, *args)
Definition: pcbnew.py:897
def capacity(self)
Definition: pcbnew.py:1028
def __len__(self)
Definition: pcbnew.py:889
def append(self, x)
Definition: pcbnew.py:934
def __delslice__(self, i, j)
Definition: pcbnew.py:904
def rend(self)
Definition: pcbnew.py:962
def clear(self)
Definition: pcbnew.py:966
def insert(self, *args)
Definition: pcbnew.py:1017
def size(self)
Definition: pcbnew.py:942
def __init__(self, *args)
Definition: pcbnew.py:985
def erase(self, *args)
Definition: pcbnew.py:978
def front(self)
Definition: pcbnew.py:998
def swap(self, v)
Definition: pcbnew.py:946
def __bool__(self)
Definition: pcbnew.py:885
def iterator(self)
Definition: pcbnew.py:875
def __setitem__(self, *args)
Definition: pcbnew.py:922
def back(self)
Definition: pcbnew.py:1002
def end(self)
Definition: pcbnew.py:954
def __nonzero__(self)
Definition: pcbnew.py:881
def __getslice__(self, i, j)
Definition: pcbnew.py:893
def begin(self)
Definition: pcbnew.py:950
def push_back(self, x)
Definition: pcbnew.py:994
def get_allocator(self)
Definition: pcbnew.py:970
def pop(self)
Definition: pcbnew.py:930
def __call__(self, itemA, itemB)
Definition: pcbnew.py:19415
def __init__(self)
Definition: pcbnew.py:19419
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:19433
def __init__(self)
Definition: pcbnew.py:19437
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:19451
def __init__(self)
Definition: pcbnew.py:19455
def __init__(self)
Definition: pcbnew.py:19473
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:19469
def get_allocator(self)
Definition: pcbnew.py:4327
def erase(self, *args)
Definition: pcbnew.py:4335
def resize(self, *args)
Definition: pcbnew.py:4367
def __iter__(self)
Definition: pcbnew.py:4235
def rbegin(self)
Definition: pcbnew.py:4315
def iterator(self)
Definition: pcbnew.py:4232
def __setslice__(self, *args)
Definition: pcbnew.py:4254
def capacity(self)
Definition: pcbnew.py:4385
def empty(self)
Definition: pcbnew.py:4295
def begin(self)
Definition: pcbnew.py:4307
def swap(self, v)
Definition: pcbnew.py:4303
def __delslice__(self, i, j)
Definition: pcbnew.py:4261
def __getslice__(self, i, j)
Definition: pcbnew.py:4250
def __delitem__(self, *args)
Definition: pcbnew.py:4265
def __len__(self)
Definition: pcbnew.py:4246
def __setitem__(self, *args)
Definition: pcbnew.py:4279
def pop_back(self)
Definition: pcbnew.py:4331
def front(self)
Definition: pcbnew.py:4355
def end(self)
Definition: pcbnew.py:4311
def clear(self)
Definition: pcbnew.py:4323
def __nonzero__(self)
Definition: pcbnew.py:4238
def reserve(self, n)
Definition: pcbnew.py:4381
def __init__(self, *args)
Definition: pcbnew.py:4342
def size(self)
Definition: pcbnew.py:4299
def assign(self, n, x)
Definition: pcbnew.py:4363
def pop(self)
Definition: pcbnew.py:4287
def push_back(self, x)
Definition: pcbnew.py:4351
def rend(self)
Definition: pcbnew.py:4319
def append(self, x)
Definition: pcbnew.py:4291
def __getitem__(self, *args)
Definition: pcbnew.py:4272
def insert(self, *args)
Definition: pcbnew.py:4374
def back(self)
Definition: pcbnew.py:4359
def __bool__(self)
Definition: pcbnew.py:4242
def __setitem__(self, *args)
Definition: pcbnew.py:10496
def count(self, x)
Definition: pcbnew.py:10551
def __getitem__(self, key)
Definition: pcbnew.py:10460
def value_iterator(self)
Definition: pcbnew.py:10492
def iteritems(self)
Definition: pcbnew.py:10457
def swap(self, v)
Definition: pcbnew.py:10523
def iterator(self)
Definition: pcbnew.py:10434
def get_allocator(self)
Definition: pcbnew.py:10547
def __iter__(self)
Definition: pcbnew.py:10437
def __bool__(self)
Definition: pcbnew.py:10444
def has_key(self, key)
Definition: pcbnew.py:10468
def __init__(self, *args)
Definition: pcbnew.py:10507
def itervalues(self)
Definition: pcbnew.py:10455
def iterkeys(self)
Definition: pcbnew.py:10453
def lower_bound(self, x)
Definition: pcbnew.py:10567
def __delitem__(self, key)
Definition: pcbnew.py:10464
def __nonzero__(self)
Definition: pcbnew.py:10440
def find(self, x)
Definition: pcbnew.py:10563
def __contains__(self, key)
Definition: pcbnew.py:10484
def erase(self, *args)
Definition: pcbnew.py:10555
def upper_bound(self, x)
Definition: pcbnew.py:10571
def key_iterator(self)
Definition: pcbnew.py:10488
def value_iterator(self)
Definition: pcbnew.py:4457
def __iter__(self)
Definition: pcbnew.py:4402
def __bool__(self)
Definition: pcbnew.py:4409
def __nonzero__(self)
Definition: pcbnew.py:4405
def __setitem__(self, *args)
Definition: pcbnew.py:4461
def __delitem__(self, key)
Definition: pcbnew.py:4429
def asdict(self)
Definition: pcbnew.py:4468
def lower_bound(self, x)
Definition: pcbnew.py:4532
def __init__(self, *args)
Definition: pcbnew.py:4472
def __len__(self)
Definition: pcbnew.py:4413
def upper_bound(self, x)
Definition: pcbnew.py:4536
def keys(self)
Definition: pcbnew.py:4437
def __getitem__(self, key)
Definition: pcbnew.py:4425
def empty(self)
Definition: pcbnew.py:4480
def find(self, x)
Definition: pcbnew.py:4528
def __contains__(self, key)
Definition: pcbnew.py:4449
def values(self)
Definition: pcbnew.py:4441
def begin(self)
Definition: pcbnew.py:4492
def rend(self)
Definition: pcbnew.py:4504
def erase(self, *args)
Definition: pcbnew.py:4520
def iterator(self)
Definition: pcbnew.py:4399
def has_key(self, key)
Definition: pcbnew.py:4433
def key_iterator(self)
Definition: pcbnew.py:4453
def itervalues(self)
Definition: pcbnew.py:4420
def rbegin(self)
Definition: pcbnew.py:4500
def get_allocator(self)
Definition: pcbnew.py:4512
def end(self)
Definition: pcbnew.py:4496
def swap(self, v)
Definition: pcbnew.py:4488
def iterkeys(self)
Definition: pcbnew.py:4418
def clear(self)
Definition: pcbnew.py:4508
def size(self)
Definition: pcbnew.py:4484
def items(self)
Definition: pcbnew.py:4445
def iteritems(self)
Definition: pcbnew.py:4422
def count(self, x)
Definition: pcbnew.py:4516
def __delitem__(self, *args)
Definition: pcbnew.py:326
def __gt__(self, v)
Definition: pcbnew.py:402
def get_allocator(self)
Definition: pcbnew.py:256
def find_last_of(self, *args)
Definition: pcbnew.py:200
def assign(self, *args)
Definition: pcbnew.py:277
def erase(self, *args)
Definition: pcbnew.py:260
def __nonzero__(self)
Definition: pcbnew.py:299
def __eq__(self, v)
Definition: pcbnew.py:394
def __getitem__(self, *args)
Definition: pcbnew.py:333
def __ne__(self, v)
Definition: pcbnew.py:398
def max_size(self)
Definition: pcbnew.py:156
def __setitem__(self, *args)
Definition: pcbnew.py:340
def reserve(self, __res_arg=0)
Definition: pcbnew.py:164
def __lt__(self, v)
Definition: pcbnew.py:406
def __iter__(self)
Definition: pcbnew.py:296
def __init__(self, *args)
Definition: pcbnew.py:268
def __add__(self, v)
Definition: pcbnew.py:378
def size(self)
Definition: pcbnew.py:232
def __le__(self, v)
Definition: pcbnew.py:414
def __rlshift__(self, out)
Definition: pcbnew.py:390
def rend(self)
Definition: pcbnew.py:252
def __bool__(self)
Definition: pcbnew.py:303
def replace(self, *args)
Definition: pcbnew.py:360
def __getslice__(self, i, j)
Definition: pcbnew.py:311
def __delslice__(self, i, j)
Definition: pcbnew.py:322
def copy(self, __s, __n, __pos=0)
Definition: pcbnew.py:168
def find_first_of(self, *args)
Definition: pcbnew.py:192
def c_str(self)
Definition: pcbnew.py:172
def substr(self, *args)
Definition: pcbnew.py:224
def begin(self)
Definition: pcbnew.py:240
def __str__(self)
Definition: pcbnew.py:386
def swap(self, v)
Definition: pcbnew.py:236
def find(self, *args)
Definition: pcbnew.py:176
def empty(self)
Definition: pcbnew.py:228
def __iadd__(self, v)
Definition: pcbnew.py:374
def resize(self, *args)
Definition: pcbnew.py:286
def insert(self, *args)
Definition: pcbnew.py:348
def find_last_not_of(self, *args)
Definition: pcbnew.py:216
def iterator(self)
Definition: pcbnew.py:293
def capacity(self)
Definition: pcbnew.py:160
def rfind(self, *args)
Definition: pcbnew.py:184
def end(self)
Definition: pcbnew.py:244
def find_first_not_of(self, *args)
Definition: pcbnew.py:208
def rbegin(self)
Definition: pcbnew.py:248
def length(self)
Definition: pcbnew.py:152
def __len__(self)
Definition: pcbnew.py:307
def __radd__(self, v)
Definition: pcbnew.py:382
def __ge__(self, v)
Definition: pcbnew.py:410
def __setslice__(self, *args)
Definition: pcbnew.py:315
def empty(self)
Definition: pcbnew.py:771
def reserve(self, n)
Definition: pcbnew.py:857
def swap(self, v)
Definition: pcbnew.py:779
def clear(self)
Definition: pcbnew.py:799
def __getslice__(self, i, j)
Definition: pcbnew.py:726
def __delslice__(self, i, j)
Definition: pcbnew.py:737
def __bool__(self)
Definition: pcbnew.py:718
def __setitem__(self, *args)
Definition: pcbnew.py:755
def __iter__(self)
Definition: pcbnew.py:711
def append(self, x)
Definition: pcbnew.py:767
def front(self)
Definition: pcbnew.py:831
def resize(self, *args)
Definition: pcbnew.py:843
def rbegin(self)
Definition: pcbnew.py:791
def size(self)
Definition: pcbnew.py:775
def capacity(self)
Definition: pcbnew.py:861
def rend(self)
Definition: pcbnew.py:795
def __len__(self)
Definition: pcbnew.py:722
def __setslice__(self, *args)
Definition: pcbnew.py:730
def __getitem__(self, *args)
Definition: pcbnew.py:748
def iterator(self)
Definition: pcbnew.py:708
def begin(self)
Definition: pcbnew.py:783
def insert(self, *args)
Definition: pcbnew.py:850
def push_back(self, x)
Definition: pcbnew.py:827
def __init__(self, *args)
Definition: pcbnew.py:818
def back(self)
Definition: pcbnew.py:835
def assign(self, n, x)
Definition: pcbnew.py:839
def __nonzero__(self)
Definition: pcbnew.py:714
def pop_back(self)
Definition: pcbnew.py:807
def __delitem__(self, *args)
Definition: pcbnew.py:741
def get_allocator(self)
Definition: pcbnew.py:803
def erase(self, *args)
Definition: pcbnew.py:811
def Get(self)
Definition: pcbnew.py:657
def Set(self, x, y)
Definition: pcbnew.py:653
def __init__(self, *args)
Definition: pcbnew.py:637
def __ne__(self, other)
Definition: pcbnew.py:662
def __len__(self)
Definition: pcbnew.py:665
def __getitem__(self, index)
Definition: pcbnew.py:666
def __sub__(self, pt)
Definition: pcbnew.py:649
def __nonzero__(self)
Definition: pcbnew.py:674
def __str__(self)
Definition: pcbnew.py:663
def __add__(self, pt)
Definition: pcbnew.py:645
def __eq__(self, other)
Definition: pcbnew.py:661
def __setitem__(self, index, val)
Definition: pcbnew.py:667
def __str__(self)
Definition: pcbnew.py:555
def __nonzero__(self)
Definition: pcbnew.py:565
def GetWidth(self)
Definition: pcbnew.py:520
def GetHeight(self)
Definition: pcbnew.py:528
def __eq__(self, other)
Definition: pcbnew.py:553
def GetX(self)
Definition: pcbnew.py:504
def SetX(self, xx)
Definition: pcbnew.py:508
def SetPosition(self, p)
Definition: pcbnew.py:540
def __getitem__(self, index)
Definition: pcbnew.py:558
def GetPosition(self)
Definition: pcbnew.py:536
def SetHeight(self, h)
Definition: pcbnew.py:532
def __len__(self)
Definition: pcbnew.py:557
def __init__(self, *args)
Definition: pcbnew.py:494
def GetY(self)
Definition: pcbnew.py:512
def SetY(self, yy)
Definition: pcbnew.py:516
def __setitem__(self, index, val)
Definition: pcbnew.py:559
def SetWidth(self, w)
Definition: pcbnew.py:524
def Get(self)
Definition: pcbnew.py:548
def __getitem__(self, index)
Definition: pcbnew.py:616
def SetWidth(self, w)
Definition: pcbnew.py:593
def __str__(self)
Definition: pcbnew.py:613
def __eq__(self, other)
Definition: pcbnew.py:611
def __len__(self)
Definition: pcbnew.py:615
def GetWidth(self)
Definition: pcbnew.py:601
def __init__(self, *args)
Definition: pcbnew.py:581
def SetHeight(self, h)
Definition: pcbnew.py:597
def __setitem__(self, index, val)
Definition: pcbnew.py:617
def __nonzero__(self)
Definition: pcbnew.py:621
def Get(self)
Definition: pcbnew.py:588
def Scale(self, xscale, yscale)
Definition: pcbnew.py:609
def GetHeight(self)
Definition: pcbnew.py:605
def __str__(self)
Definition: pcbnew.py:688
def __init__(self)
Definition: pcbnew.py:695
def IsValidLayer(aLayerId)
Definition: pcbnew.py:3916
def PCB_TRACK_ClassOf(aItem)
Definition: pcbnew.py:13691
def Cast_to_BOARD(arg1)
Definition: pcbnew.py:10165
def __lt__(lhs, rhs)
Definition: pcbnew.py:2569
def FormatInternalUnits(*args)
Definition: pcbnew.py:1957
def EnsureFileExtension(aFilename, aExtension)
Definition: pcbnew.py:2015
def LSET_SideSpecificMask()
Definition: pcbnew.py:3895
def Cast_to_PCB_DIM_RADIAL(arg1)
Definition: pcbnew.py:10145
def Cast_to_SHAPE_ARC(_self)
Definition: pcbnew.py:7633
def EDA_ANGLE_Arcsin(x)
Definition: pcbnew.py:14886
def MessageTextFromMinOptMax(aIuScale, aUnits, aValue)
Definition: pcbnew.py:1985
def BOX2ISafe(*args)
Definition: pcbnew.py:5189
def PCB_REFERENCE_IMAGE_ClassOf(aItem)
Definition: pcbnew.py:17492
def FootprintLibDelete(libname)
Definition: pcbnew.py:19673
def FootprintDelete(libname, name)
Definition: pcbnew.py:19665
def EDA_ANGLE_Arccos(x)
Definition: pcbnew.py:14882
def PAD_UnplatedHoleMask()
Definition: pcbnew.py:13538
def GetWizardsSearchPaths()
Definition: pcbnew.py:4579
def BOARD_CONNECTED_ITEM_ClassOf(aItem)
Definition: pcbnew.py:10424
def Cast_to_PCB_MARKER(arg1)
Definition: pcbnew.py:10161
def KIID_CreateNilUuids(aNil=True)
Definition: pcbnew.py:1128
def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None)
Definition: pcbnew.py:4650
def MessageTextFromValue(*args)
Definition: pcbnew.py:1976
def KIID_SeedGenerator(aSeed)
Definition: pcbnew.py:1132
def GAL_SET_DefaultVisible()
Definition: pcbnew.py:3411
def IsPcbLayer(aLayer)
Definition: pcbnew.py:3920
def NETINFO_LIST_OrphanedItem()
Definition: pcbnew.py:17009
def ResolveUriByEnvVars(aUri, aProject)
Definition: pcbnew.py:2038
def PCB_DIM_LEADER_ClassOf(aItem)
Definition: pcbnew.py:16092
def IsActionRunning()
Definition: pcbnew.py:9690
def IsGerbviewType(aType)
Definition: pcbnew.py:1589
def EDA_TEXT_IsGotoPageHref(aHref, aDestination=None)
Definition: pcbnew.py:3061
def SetOpenGLInfo(aRenderer, aVendor, aVersion)
Definition: pcbnew.py:3110
def PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
Definition: pcbnew.py:19709
def LoadBoard(*args)
Definition: pcbnew.py:9617
def IsTextVar(aSource)
Definition: pcbnew.py:2034
def GetBuildDate()
Definition: pcbnew.py:3094
def Cast_to_PCB_DIM_ORTHOGONAL(arg1)
Definition: pcbnew.py:10133
def EDA_ANGLE_Arctan2(y, x)
Definition: pcbnew.py:14894
def FOOTPRINT_GetCoverageArea(aItem, aCollector)
Definition: pcbnew.py:19405
def IsNullType(aType)
Definition: pcbnew.py:1573
def Cast_to_SHAPE_CIRCLE(_self)
Definition: pcbnew.py:7637
def wxPointMils(mmx, mmy)
Definition: pcbnew.py:19795
def FootprintIsWritable(libname)
Definition: pcbnew.py:19677
def FootprintLibCreate(libname)
Definition: pcbnew.py:19669
def Cast_to_ZONE(arg1)
Definition: pcbnew.py:10185
def FOOTPRINT_ClassOf(aItem)
Definition: pcbnew.py:19385
def SearchHelpFileFullPath(aBaseName)
Definition: pcbnew.py:2007
def __ne__(lhs, rhs)
Definition: pcbnew.py:2565
def VECTOR2I_MM(mmx, mmy)
Definition: pcbnew.py:19798
def LAYER_ParseType(aType)
Definition: pcbnew.py:17773
def LSET_UserMask()
Definition: pcbnew.py:3899
def PCB_IO_MGR_ShowType(aFileType)
Definition: pcbnew.py:8028
def IsViaPadLayer(aLayer)
Definition: pcbnew.py:3935
def FromMM(mm)
Definition: pcbnew.py:19754
def IsZoneFillLayer(aLayer)
Definition: pcbnew.py:3971
def PLACE_FILE_EXPORTER_GetBackSideName()
Definition: pcbnew.py:9185
def IsTypeAvailable(aType)
Definition: pcbnew.py:1605
def FlipLayer(aLayerId, aCopperLayersCount=0)
Definition: pcbnew.py:3955
def LIB_ID_FixIllegalChars(aLibItemName, aLib)
Definition: pcbnew.py:7917
def GetSemanticVersion()
Definition: pcbnew.py:3082
def Cast_to_PCB_TEXT(arg1)
Definition: pcbnew.py:10121
def GetBuildVersion()
Definition: pcbnew.py:3070
def wxRectMils(x, y, wx, wy)
Definition: pcbnew.py:19811
def IsHoleLayer(aLayer)
Definition: pcbnew.py:3939
def FetchUnitsFromString(aTextValue, aUnits)
Definition: pcbnew.py:1941
def new_clone(aItem)
Definition: pcbnew.py:1842
def PCB_VIA_ClassOf(aItem)
Definition: pcbnew.py:13920
def LSET_AllNonCuMask()
Definition: pcbnew.py:3855
def Cast_to_SHAPE_SIMPLE(_self)
Definition: pcbnew.py:7661
def PCB_DIM_CENTER_ClassOf(aItem)
Definition: pcbnew.py:16115
def StrPrintf(*args)
Definition: pcbnew.py:2050
def EDA_TEXT_GotoPageHref(aDestination)
Definition: pcbnew.py:3065
def PAD_PTHMask()
Definition: pcbnew.py:13526
def PAD_SHAPE_T_asString(a)
Definition: pcbnew.py:12877
def EDA_TEXT_MapHorizJustify(aHorizJustify)
Definition: pcbnew.py:3049
def PYTHON_ACTION_PLUGINS_deregister_action(wizard)
Definition: pcbnew.py:19741
def LSET_PhysicalLayersMask()
Definition: pcbnew.py:3903
def LSET_FrontAssembly()
Definition: pcbnew.py:3839
def InvokeRuleAreaEditor(aCaller, aSettings, aConvertSettings=None)
Definition: pcbnew.py:14507
def LSET_BackMask()
Definition: pcbnew.py:3891
def PAD_Compare(aPadRef, aPadCmp)
Definition: pcbnew.py:13550
def GetSettingsManager()
Definition: pcbnew.py:9628
def PCB_IO_MGR_EnumFromStr(aFileType)
Definition: pcbnew.py:8032
def ExpandTextVars(*args)
Definition: pcbnew.py:2023
def KIID_SniffTest(aCandidate)
Definition: pcbnew.py:1124
def ToMM(iu)
Definition: pcbnew.py:19746
def IsUTF8(aString)
Definition: pcbnew.py:7665
def EDA_ANGLE_Arctan(x)
Definition: pcbnew.py:14890
def ToGalLayer(aInteger)
Definition: pcbnew.py:3368
def PCB_DIM_ALIGNED_ClassOf(aItem)
Definition: pcbnew.py:15979
def LSET_AllTechMask()
Definition: pcbnew.py:3879
def Mils2mm(aVal)
Definition: pcbnew.py:1937
def NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
Definition: pcbnew.py:11128
def PCB_SHAPE_ClassOf(aItem)
Definition: pcbnew.py:15352
def Cast_to_PCB_TARGET(arg1)
Definition: pcbnew.py:10189
def __eq__(lhs, rhs)
Definition: pcbnew.py:2561
def wxRectMM(x, y, wx, wy)
Definition: pcbnew.py:19804
def GetText(*args)
Definition: pcbnew.py:1945
def PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
Definition: pcbnew.py:19705
def IsInstantiableType(aType)
Definition: pcbnew.py:1577
def IsNetCopperLayer(aLayer)
Definition: pcbnew.py:3979
def NilUuid()
Definition: pcbnew.py:1137
def PCB_IO_MGR_FindPluginTypeFromBoardPath(aFileName, aCtl=0)
Definition: pcbnew.py:8036
def PCB_GROUP_ClassOf(aItem)
Definition: pcbnew.py:17412
def SEG_Square(a)
Definition: pcbnew.py:6012
def ZONE_SETTINGS_GetDefaultSettings()
Definition: pcbnew.py:14715
def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None)
Definition: pcbnew.py:2011
def SETTINGS_MANAGER_GetSettingsVersion()
Definition: pcbnew.py:4150
def SETTINGS_MANAGER_GetUserSettingsPath()
Definition: pcbnew.py:4154
def UpdateUserInterface()
Definition: pcbnew.py:9674
def FootprintLoad(libname, name, preserveUUID=False)
Definition: pcbnew.py:19657
def FootprintEnumerate(libname)
Definition: pcbnew.py:19653
def GetCommitHash()
Definition: pcbnew.py:3098
def colorRefs()
Definition: pcbnew.py:2424
def LSET_BackBoardTechMask()
Definition: pcbnew.py:3875
def PlotDrawingSheet(*args)
Definition: pcbnew.py:9091
def LSET_AllLayersMask()
Definition: pcbnew.py:3859
def LIB_ID_Format(*args)
Definition: pcbnew.py:7906
def FormatAngle(aAngle)
Definition: pcbnew.py:1953
def GetLanguage()
Definition: pcbnew.py:9698
def __lshift__(aStream, aColor)
Definition: pcbnew.py:2573
def Mils2IU(aIuScale, mils)
Definition: pcbnew.py:1964
def PAD_ConnSMDMask()
Definition: pcbnew.py:13534
def PYTHON_ACTION_PLUGINS_register_action(wizard)
Definition: pcbnew.py:19737
def GetVersionInfoData(aTitle, aHtml=False, aBrief=False)
Definition: pcbnew.py:3114
def FullVersion()
Definition: pcbnew.py:19823
def GetMajorMinorVersion()
Definition: pcbnew.py:3086
def FocusOnItem(aItem, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:9686
def PCB_FIELD_ClassOf(aItem)
Definition: pcbnew.py:15648
def IsNetnameLayer(aLayer)
Definition: pcbnew.py:3967
def COLOR4D_FindNearestLegacyColor(aR, aG, aB)
Definition: pcbnew.py:2552
def PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8048
def LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
Definition: pcbnew.py:7921
def LAYER_ShowType(aType)
Definition: pcbnew.py:17769
def Cast_to_SHAPE_POLY_SET(_self)
Definition: pcbnew.py:7649
def ExportSpecctraDSN(*args)
Definition: pcbnew.py:9648
def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None)
Definition: pcbnew.py:14503
def EDA_ITEM_Sort(aLeft, aRight)
Definition: pcbnew.py:1837
def GetMajorMinorPatchTuple()
Definition: pcbnew.py:3102
def SHAPE_ARC_DefaultAccuracyForPCB()
Definition: pcbnew.py:6366
def LSET_BackAssembly()
Definition: pcbnew.py:3843
def GetCurrentSelection()
Definition: pcbnew.py:9682
def wxGetDefaultPyEncoding()
Definition: pcbnew.py:485
def IsImperialUnit(aUnit)
Definition: pcbnew.py:1925
def SaveBoard(aFileName, aBoard, aSkipSettings=False)
Definition: pcbnew.py:9636
def PrintZoneConnection(aConnection)
Definition: pcbnew.py:14495
def ZONE_ClassOf(aItem)
Definition: pcbnew.py:14458
def IsEeschemaType(aType)
Definition: pcbnew.py:1581
def Cast_to_SHAPE_RECT(_self)
Definition: pcbnew.py:7653
def FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
Definition: pcbnew.py:19401
def LSET_AllBoardTechMask()
Definition: pcbnew.py:3883
def PCB_TEXTBOX_ClassOf(aItem)
Definition: pcbnew.py:15516
def Refresh()
Definition: pcbnew.py:9670
def Cast_to_PCB_TRACK(arg1)
Definition: pcbnew.py:10173
def Cast_to_SHAPE_SEGMENT(_self)
Definition: pcbnew.py:7657
def PutOnGridMM(value, gridSizeMM)
Definition: pcbnew.py:19778
def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None)
Definition: pcbnew.py:14499
def IsCopperLayer(*args)
Definition: pcbnew.py:3928
def PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17420
def Cast_to_SHAPE_COMPOUND(_self)
Definition: pcbnew.py:7641
def LSET_ForbiddenFootprintLayers()
Definition: pcbnew.py:3911
def PCB_TEXT_ClassOf(aItem)
Definition: pcbnew.py:15431
def LSET_AllCuMask(*args)
Definition: pcbnew.py:3847
def DoubleValueFromString(*args)
Definition: pcbnew.py:1993
def IsFrontLayer(aLayerId)
Definition: pcbnew.py:3947
def Cast_to_FOOTPRINT(arg1)
Definition: pcbnew.py:10149
def StringFromValue(*args)
Definition: pcbnew.py:1972
def EDA_TEXT_ValidateHyperlink(aURL)
Definition: pcbnew.py:3057
def PAD_ApertureMask()
Definition: pcbnew.py:13542
def GetUserUnits()
Definition: pcbnew.py:9678
def ImportSpecctraSES(*args)
Definition: pcbnew.py:9659
def CreateEmptyBoard()
Definition: pcbnew.py:9632
def GetLabel(*args)
Definition: pcbnew.py:1949
def Version()
Definition: pcbnew.py:19819
def BOARD_GetStandardLayerName(aLayerId)
Definition: pcbnew.py:18497
def TITLE_BLOCK_GetContextualTextVars(aVars)
Definition: pcbnew.py:2321
def IsMiscType(aType)
Definition: pcbnew.py:1597
def PCB_GROUP_IsGroupableType(aType)
Definition: pcbnew.py:17424
def ValueFromString(*args)
Definition: pcbnew.py:2000
def PCB_TARGET_ClassOf(aItem)
Definition: pcbnew.py:16237
def Cast_to_PCB_DIM_CENTER(arg1)
Definition: pcbnew.py:10141
def ExportFootprintsToLibrary(*args)
Definition: pcbnew.py:9666
def LSET_FrontMask()
Definition: pcbnew.py:3887
def BaseType(aType)
Definition: pcbnew.py:1569
def PutOnGridMils(value, gridSizeMils)
Definition: pcbnew.py:19782
def ZONE_GetDefaultHatchPitch()
Definition: pcbnew.py:14462
def Cast_to_PCB_REFERENCE_IMAGE(arg1)
Definition: pcbnew.py:10193
def IsPcbnewType(aType)
Definition: pcbnew.py:1585
def IsUserLayer(aLayerId)
Definition: pcbnew.py:3943
def PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:8044
def GetMajorMinorPatchVersion()
Definition: pcbnew.py:3090
def GetBoard()
Definition: pcbnew.py:9613
def LSET_ExternalCuMask()
Definition: pcbnew.py:3851
def IsPageLayoutEditorType(aType)
Definition: pcbnew.py:1593
def PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath)
Definition: pcbnew.py:8052
def ExportVRML(aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:9655
def SHAPE_TYPE_asString(a)
Definition: pcbnew.py:6037
def PAD_SMDMask()
Definition: pcbnew.py:13530
def LSET_FrontTechMask()
Definition: pcbnew.py:3863
def VECTOR2I_Mils(mmx, mmy)
Definition: pcbnew.py:19801
def EDA_TEXT_MapVertJustify(aVertJustify)
Definition: pcbnew.py:3053
def Cast_to_PCB_VIA(arg1)
Definition: pcbnew.py:10177
def BOARD_ClassOf(aItem)
Definition: pcbnew.py:18493
def TimestampDir(aDirPath, aFilespec)
Definition: pcbnew.py:2042
def GetFootprints(aNickName)
Definition: pcbnew.py:9644
def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
Definition: pcbnew.py:9694
def PCB_IO_MGR_PluginFind(aFileType)
Definition: pcbnew.py:8024
def LSET_FrontBoardTechMask()
Definition: pcbnew.py:3867
def LSET_BackTechMask()
Definition: pcbnew.py:3871
def FP_CACHE_GetTimestamp(aLibPath)
Definition: pcbnew.py:8252
def GetTextVars(aSource)
Definition: pcbnew.py:2030
def GetBaseVersion()
Definition: pcbnew.py:3074
def GetNetnameLayer(aLayer)
Definition: pcbnew.py:3963
def PCB_IO_MGR_GuessPluginTypeFromLibPath(aLibPath, aCtl=0)
Definition: pcbnew.py:8040
def wxSizeMM(mmx, mmy)
Definition: pcbnew.py:19786
def Cast_to_PCB_ARC(arg1)
Definition: pcbnew.py:10181
def Cast_to_PCB_SHAPE(arg1)
Definition: pcbnew.py:10157
def ToLAYER_ID(aLayer)
Definition: pcbnew.py:3983
def NETINFO_ITEM_ClassOf(aItem)
Definition: pcbnew.py:16654
def IsTypeCorrect(aType)
Definition: pcbnew.py:1601
def PCB_ARC_ClassOf(aItem)
Definition: pcbnew.py:13760
def GetPluginForPath(libname)
Definition: pcbnew.py:19649
def IsBackLayer(aLayerId)
Definition: pcbnew.py:3951
def LIB_ID_HasIllegalChars(aLibItemName)
Definition: pcbnew.py:7913
def Cast_to_PCB_DIM_LEADER(arg1)
Definition: pcbnew.py:10137
def Cast_to_PCB_GROUP(arg1)
Definition: pcbnew.py:10153
def FOOTPRINT_IsLibNameValid(aName)
Definition: pcbnew.py:19397
def NewBoard(aFileName)
Definition: pcbnew.py:9624
def IsMetricUnit(aUnit)
Definition: pcbnew.py:1929
def FlipLayerMask(aMask, aCopperLayersCount=0)
Definition: pcbnew.py:3959
def PCB_MARKER_Deserialize(data)
Definition: pcbnew.py:16172
def LSET_UserDefinedLayers()
Definition: pcbnew.py:3907
def ExpandEnvVarSubstitutions(aString, aProject)
Definition: pcbnew.py:2019
def wxSetDefaultPyEncoding(encoding)
Definition: pcbnew.py:481
def WarnUserIfOperatingSystemUnsupported()
Definition: pcbnew.py:2046
def SafeReadFile(aFilePath, aReadType)
Definition: pcbnew.py:2057
def DELETED_BOARD_ITEM_GetInstance()
Definition: pcbnew.py:9996
def GetFootprintLibraries()
Definition: pcbnew.py:9640
def PAD_ClassOf(aItem)
Definition: pcbnew.py:13546
def KiROUND(vec)
Definition: pcbnew.py:5185
def LayerName(aLayer)
Definition: pcbnew.py:3582
def FromMils(mils)
Definition: pcbnew.py:19770
def Mm2mils(aVal)
Definition: pcbnew.py:1933
def SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False)
Definition: pcbnew.py:7271
def Cast_to_SHAPE_LINE_CHAIN(_self)
Definition: pcbnew.py:7645
def IsNonCopperLayer(aLayerId)
Definition: pcbnew.py:3924
def Cast_to_PAD(arg1)
Definition: pcbnew.py:10169
def GetWizardsBackTrace()
Definition: pcbnew.py:4590
def LSET_InternalCuMask()
Definition: pcbnew.py:3835
def SETTINGS_MANAGER_GetColorSettingsPath()
Definition: pcbnew.py:4146
def ToMils(iu)
Definition: pcbnew.py:19762
def PCB_MARKER_ClassOf(aItem)
Definition: pcbnew.py:16168
def wxSizeMils(mmx, mmy)
Definition: pcbnew.py:19789
def PCB_DIM_ORTHOGONAL_ClassOf(aItem)
Definition: pcbnew.py:16018
def LoadPluginModule(Dirname, ModuleName, FileName)
Definition: pcbnew.py:4595
def NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
Definition: pcbnew.py:11132
def PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17416
def GetDefaultPlotExtension(aFormat)
Definition: pcbnew.py:9095
def IsNightlyVersion()
Definition: pcbnew.py:3106
def GetPlatformGetBitnessName()
Definition: pcbnew.py:3078
def PLACE_FILE_EXPORTER_GetFrontSideName()
Definition: pcbnew.py:9181
def ToUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1968
def Cast_to_PCB_TEXTBOX(arg1)
Definition: pcbnew.py:10125
def wxPointMM(mmx, mmy)
Definition: pcbnew.py:19792
def UTILS_STEP_MODEL_LoadSTEP(aFileName)
Definition: pcbnew.py:4222
def Cast_to_PCB_DIM_ALIGNED(arg1)
Definition: pcbnew.py:10129
def Cast_to_BOARD_ITEM(base)
Definition: pcbnew.py:10117
def FootprintSave(libname, module)
Definition: pcbnew.py:19661
def SETTINGS_MANAGER_IsSettingsPathValid(aPath)
Definition: pcbnew.py:4142
def FromUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1989
def IsDCodeLayer(aLayer)
Definition: pcbnew.py:3975
def PCB_DIM_RADIAL_ClassOf(aItem)
Definition: pcbnew.py:16057
def LSET_Name(aLayerId)
Definition: pcbnew.py:3831