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, aHitPosition, aAccuracy):
2649 r"""HitTestMarker(MARKER_BASE self, VECTOR2I aHitPosition, int aAccuracy) -> bool"""
2650 return _pcbnew.MARKER_BASE_HitTestMarker(self, aHitPosition, aAccuracy)
2651
2653 r"""GetBoundingBoxMarker(MARKER_BASE self) -> BOX2I"""
2654 return _pcbnew.MARKER_BASE_GetBoundingBoxMarker(self)
2655 m_Pos = property(_pcbnew.MARKER_BASE_m_Pos_get, _pcbnew.MARKER_BASE_m_Pos_set, doc=r"""m_Pos : VECTOR2I""")
2656
2657# Register MARKER_BASE in _pcbnew:
2658_pcbnew.MARKER_BASE_swigregister(MARKER_BASE)
2659
2660TEXT_MIN_SIZE_MM = _pcbnew.TEXT_MIN_SIZE_MM
2661
2662TEXT_MAX_SIZE_MM = _pcbnew.TEXT_MAX_SIZE_MM
2663
2664DEFAULT_SIZE_TEXT = _pcbnew.DEFAULT_SIZE_TEXT
2665
2667 r"""Proxy of C++ EDA_TEXT class."""
2668
2669 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2670 __repr__ = _swig_repr
2671
2672 def __init__(self, *args):
2673 r"""
2674 __init__(EDA_TEXT self, EDA_IU_SCALE aIuScale, wxString aText=wxEmptyString) -> EDA_TEXT
2675 __init__(EDA_TEXT self, EDA_TEXT aText) -> EDA_TEXT
2676 """
2677 _pcbnew.EDA_TEXT_swiginit(self, _pcbnew.new_EDA_TEXT(*args))
2678 __swig_destroy__ = _pcbnew.delete_EDA_TEXT
2679
2680 def GetText(self):
2681 r"""GetText(EDA_TEXT self) -> wxString"""
2682 return _pcbnew.EDA_TEXT_GetText(self)
2683
2684 def GetShownText(self, aAllowExtraText, aDepth=0):
2685 r"""GetShownText(EDA_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
2686 return _pcbnew.EDA_TEXT_GetShownText(self, aAllowExtraText, aDepth)
2687
2688 def HasTextVars(self):
2689 r"""HasTextVars(EDA_TEXT self) -> bool"""
2690 return _pcbnew.EDA_TEXT_HasTextVars(self)
2691
2692 def SetText(self, aText):
2693 r"""SetText(EDA_TEXT self, wxString aText)"""
2694 return _pcbnew.EDA_TEXT_SetText(self, aText)
2695
2696 def SetTextThickness(self, aWidth):
2697 r"""SetTextThickness(EDA_TEXT self, int aWidth)"""
2698 return _pcbnew.EDA_TEXT_SetTextThickness(self, aWidth)
2699
2701 r"""GetTextThickness(EDA_TEXT self) -> int"""
2702 return _pcbnew.EDA_TEXT_GetTextThickness(self)
2703
2704 def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0):
2705 r"""GetEffectiveTextPenWidth(EDA_TEXT self, int aDefaultPenWidth=0) -> int"""
2706 return _pcbnew.EDA_TEXT_GetEffectiveTextPenWidth(self, aDefaultPenWidth)
2707
2708 def SetTextAngle(self, aAngle):
2709 r"""SetTextAngle(EDA_TEXT self, EDA_ANGLE aAngle)"""
2710 return _pcbnew.EDA_TEXT_SetTextAngle(self, aAngle)
2711
2712 def GetTextAngle(self):
2713 r"""GetTextAngle(EDA_TEXT self) -> EDA_ANGLE"""
2714 return _pcbnew.EDA_TEXT_GetTextAngle(self)
2715
2716 def SetTextAngleDegrees(self, aOrientation):
2717 r"""SetTextAngleDegrees(EDA_TEXT self, double aOrientation)"""
2718 return _pcbnew.EDA_TEXT_SetTextAngleDegrees(self, aOrientation)
2719
2721 r"""GetTextAngleDegrees(EDA_TEXT self) -> double"""
2722 return _pcbnew.EDA_TEXT_GetTextAngleDegrees(self)
2723
2724 def SetItalic(self, aItalic):
2725 r"""SetItalic(EDA_TEXT self, bool aItalic)"""
2726 return _pcbnew.EDA_TEXT_SetItalic(self, aItalic)
2727
2728 def IsItalic(self):
2729 r"""IsItalic(EDA_TEXT self) -> bool"""
2730 return _pcbnew.EDA_TEXT_IsItalic(self)
2731
2732 def SetBold(self, aBold):
2733 r"""SetBold(EDA_TEXT self, bool aBold)"""
2734 return _pcbnew.EDA_TEXT_SetBold(self, aBold)
2735
2736 def SetBoldFlag(self, aBold):
2737 r"""SetBoldFlag(EDA_TEXT self, bool aBold)"""
2738 return _pcbnew.EDA_TEXT_SetBoldFlag(self, aBold)
2739
2740 def IsBold(self):
2741 r"""IsBold(EDA_TEXT self) -> bool"""
2742 return _pcbnew.EDA_TEXT_IsBold(self)
2743
2744 def SetVisible(self, aVisible):
2745 r"""SetVisible(EDA_TEXT self, bool aVisible)"""
2746 return _pcbnew.EDA_TEXT_SetVisible(self, aVisible)
2747
2748 def IsVisible(self):
2749 r"""IsVisible(EDA_TEXT self) -> bool"""
2750 return _pcbnew.EDA_TEXT_IsVisible(self)
2751
2752 def SetMirrored(self, isMirrored):
2753 r"""SetMirrored(EDA_TEXT self, bool isMirrored)"""
2754 return _pcbnew.EDA_TEXT_SetMirrored(self, isMirrored)
2755
2756 def IsMirrored(self):
2757 r"""IsMirrored(EDA_TEXT self) -> bool"""
2758 return _pcbnew.EDA_TEXT_IsMirrored(self)
2759
2760 def SetMultilineAllowed(self, aAllow):
2761 r"""SetMultilineAllowed(EDA_TEXT self, bool aAllow)"""
2762 return _pcbnew.EDA_TEXT_SetMultilineAllowed(self, aAllow)
2763
2765 r"""IsMultilineAllowed(EDA_TEXT self) -> bool"""
2766 return _pcbnew.EDA_TEXT_IsMultilineAllowed(self)
2767
2768 def SetHorizJustify(self, aType):
2769 r"""SetHorizJustify(EDA_TEXT self, GR_TEXT_H_ALIGN_T aType)"""
2770 return _pcbnew.EDA_TEXT_SetHorizJustify(self, aType)
2771
2773 r"""GetHorizJustify(EDA_TEXT self) -> GR_TEXT_H_ALIGN_T"""
2774 return _pcbnew.EDA_TEXT_GetHorizJustify(self)
2775
2776 def SetVertJustify(self, aType):
2777 r"""SetVertJustify(EDA_TEXT self, GR_TEXT_V_ALIGN_T aType)"""
2778 return _pcbnew.EDA_TEXT_SetVertJustify(self, aType)
2779
2781 r"""GetVertJustify(EDA_TEXT self) -> GR_TEXT_V_ALIGN_T"""
2782 return _pcbnew.EDA_TEXT_GetVertJustify(self)
2783
2784 def SetKeepUpright(self, aKeepUpright):
2785 r"""SetKeepUpright(EDA_TEXT self, bool aKeepUpright)"""
2786 return _pcbnew.EDA_TEXT_SetKeepUpright(self, aKeepUpright)
2787
2788 def IsKeepUpright(self):
2789 r"""IsKeepUpright(EDA_TEXT self) -> bool"""
2790 return _pcbnew.EDA_TEXT_IsKeepUpright(self)
2791
2792 def FlipHJustify(self):
2793 r"""FlipHJustify(EDA_TEXT self)"""
2794 return _pcbnew.EDA_TEXT_FlipHJustify(self)
2795
2796 def SwapAttributes(self, aTradingPartner):
2797 r"""SwapAttributes(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2798 return _pcbnew.EDA_TEXT_SwapAttributes(self, aTradingPartner)
2799
2800 def SwapText(self, aTradingPartner):
2801 r"""SwapText(EDA_TEXT self, EDA_TEXT aTradingPartner)"""
2802 return _pcbnew.EDA_TEXT_SwapText(self, aTradingPartner)
2803
2804 def CopyText(self, aSrc):
2805 r"""CopyText(EDA_TEXT self, EDA_TEXT aSrc)"""
2806 return _pcbnew.EDA_TEXT_CopyText(self, aSrc)
2807
2808 def SetAttributes(self, *args):
2809 r"""
2810 SetAttributes(EDA_TEXT self, EDA_TEXT aSrc, bool aSetPosition=True)
2811 SetAttributes(EDA_TEXT self, TEXT_ATTRIBUTES aTextAttrs)
2812 """
2813 return _pcbnew.EDA_TEXT_SetAttributes(self, *args)
2814
2815 def GetAttributes(self):
2816 r"""GetAttributes(EDA_TEXT self) -> TEXT_ATTRIBUTES"""
2817 return _pcbnew.EDA_TEXT_GetAttributes(self)
2818
2819 def Replace(self, aSearchData):
2820 r"""Replace(EDA_TEXT self, EDA_SEARCH_DATA const & aSearchData) -> bool"""
2821 return _pcbnew.EDA_TEXT_Replace(self, aSearchData)
2822
2824 r"""IsDefaultFormatting(EDA_TEXT self) -> bool"""
2825 return _pcbnew.EDA_TEXT_IsDefaultFormatting(self)
2826
2827 def SetFont(self, aFont):
2828 r"""SetFont(EDA_TEXT self, KIFONT::FONT * aFont)"""
2829 return _pcbnew.EDA_TEXT_SetFont(self, aFont)
2830
2831 def GetFont(self):
2832 r"""GetFont(EDA_TEXT self) -> KIFONT::FONT *"""
2833 return _pcbnew.EDA_TEXT_GetFont(self)
2834
2835 def GetFontName(self):
2836 r"""GetFontName(EDA_TEXT self) -> wxString"""
2837 return _pcbnew.EDA_TEXT_GetFontName(self)
2838
2839 def SetFontIndex(self, aIdx):
2840 r"""SetFontIndex(EDA_TEXT self, int aIdx)"""
2841 return _pcbnew.EDA_TEXT_SetFontIndex(self, aIdx)
2842
2843 def GetFontIndex(self):
2844 r"""GetFontIndex(EDA_TEXT self) -> int"""
2845 return _pcbnew.EDA_TEXT_GetFontIndex(self)
2846
2847 def SetLineSpacing(self, aLineSpacing):
2848 r"""SetLineSpacing(EDA_TEXT self, double aLineSpacing)"""
2849 return _pcbnew.EDA_TEXT_SetLineSpacing(self, aLineSpacing)
2850
2852 r"""GetLineSpacing(EDA_TEXT self) -> double"""
2853 return _pcbnew.EDA_TEXT_GetLineSpacing(self)
2854
2855 def SetTextSize(self, aNewSize, aEnforceMinTextSize=True):
2856 r"""SetTextSize(EDA_TEXT self, VECTOR2I aNewSize, bool aEnforceMinTextSize=True)"""
2857 return _pcbnew.EDA_TEXT_SetTextSize(self, aNewSize, aEnforceMinTextSize)
2858
2859 def GetTextSize(self):
2860 r"""GetTextSize(EDA_TEXT self) -> VECTOR2I"""
2861 return _pcbnew.EDA_TEXT_GetTextSize(self)
2862
2863 def SetTextWidth(self, aWidth):
2864 r"""SetTextWidth(EDA_TEXT self, int aWidth)"""
2865 return _pcbnew.EDA_TEXT_SetTextWidth(self, aWidth)
2866
2867 def GetTextWidth(self):
2868 r"""GetTextWidth(EDA_TEXT self) -> int"""
2869 return _pcbnew.EDA_TEXT_GetTextWidth(self)
2870
2871 def SetTextHeight(self, aHeight):
2872 r"""SetTextHeight(EDA_TEXT self, int aHeight)"""
2873 return _pcbnew.EDA_TEXT_SetTextHeight(self, aHeight)
2874
2875 def GetTextHeight(self):
2876 r"""GetTextHeight(EDA_TEXT self) -> int"""
2877 return _pcbnew.EDA_TEXT_GetTextHeight(self)
2878
2879 def SetTextColor(self, aColor):
2880 r"""SetTextColor(EDA_TEXT self, COLOR4D aColor)"""
2881 return _pcbnew.EDA_TEXT_SetTextColor(self, aColor)
2882
2883 def GetTextColor(self):
2884 r"""GetTextColor(EDA_TEXT self) -> COLOR4D"""
2885 return _pcbnew.EDA_TEXT_GetTextColor(self)
2886
2887 def SetTextPos(self, aPoint):
2888 r"""SetTextPos(EDA_TEXT self, VECTOR2I aPoint)"""
2889 return _pcbnew.EDA_TEXT_SetTextPos(self, aPoint)
2890
2891 def GetTextPos(self):
2892 r"""GetTextPos(EDA_TEXT self) -> VECTOR2I"""
2893 return _pcbnew.EDA_TEXT_GetTextPos(self)
2894
2895 def SetTextX(self, aX):
2896 r"""SetTextX(EDA_TEXT self, int aX)"""
2897 return _pcbnew.EDA_TEXT_SetTextX(self, aX)
2898
2899 def SetTextY(self, aY):
2900 r"""SetTextY(EDA_TEXT self, int aY)"""
2901 return _pcbnew.EDA_TEXT_SetTextY(self, aY)
2902
2903 def Offset(self, aOffset):
2904 r"""Offset(EDA_TEXT self, VECTOR2I aOffset)"""
2905 return _pcbnew.EDA_TEXT_Offset(self, aOffset)
2906
2907 def Empty(self):
2908 r"""Empty(EDA_TEXT self)"""
2909 return _pcbnew.EDA_TEXT_Empty(self)
2910
2911 @staticmethod
2912 def MapHorizJustify(aHorizJustify):
2913 r"""MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
2914 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
2915
2916 @staticmethod
2917 def MapVertJustify(aVertJustify):
2918 r"""MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
2919 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
2920
2921 def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED):
2922 r"""Print(EDA_TEXT self, RENDER_SETTINGS const * aSettings, VECTOR2I aOffset, COLOR4D aColor, OUTLINE_MODE aDisplay_mode=FILLED)"""
2923 return _pcbnew.EDA_TEXT_Print(self, aSettings, aOffset, aColor, aDisplay_mode)
2924
2925 def GetEffectiveTextShape(self, *args):
2926 r"""GetEffectiveTextShape(EDA_TEXT self, bool aTriangulate=True, BOX2I aBBox=BOX2I(), EDA_ANGLE aAngle=ANGLE_0) -> std::shared_ptr< SHAPE_COMPOUND >"""
2927 return _pcbnew.EDA_TEXT_GetEffectiveTextShape(self, *args)
2928
2929 def TextHitTest(self, *args):
2930 r"""
2931 TextHitTest(EDA_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
2932 TextHitTest(EDA_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
2933 """
2934 return _pcbnew.EDA_TEXT_TextHitTest(self, *args)
2935
2936 def GetTextBox(self, aLine=-1, aInvertY=False):
2937 r"""GetTextBox(EDA_TEXT self, int aLine=-1, bool aInvertY=False) -> BOX2I"""
2938 return _pcbnew.EDA_TEXT_GetTextBox(self, aLine, aInvertY)
2939
2940 def GetInterline(self):
2941 r"""GetInterline(EDA_TEXT self) -> int"""
2942 return _pcbnew.EDA_TEXT_GetInterline(self)
2943
2945 r"""GetTextStyleName(EDA_TEXT self) -> wxString"""
2946 return _pcbnew.EDA_TEXT_GetTextStyleName(self)
2947
2948 def GetLinePositions(self, aPositions, aLineCount):
2949 r"""GetLinePositions(EDA_TEXT self, VECTOR_VECTOR2I aPositions, int aLineCount)"""
2950 return _pcbnew.EDA_TEXT_GetLinePositions(self, aPositions, aLineCount)
2951
2952 def Levenshtein(self, aOther):
2953 r"""Levenshtein(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2954 return _pcbnew.EDA_TEXT_Levenshtein(self, aOther)
2955
2956 def Similarity(self, aOther):
2957 r"""Similarity(EDA_TEXT self, EDA_TEXT aOther) -> double"""
2958 return _pcbnew.EDA_TEXT_Similarity(self, aOther)
2959
2960 def Format(self, aFormatter, aNestLevel, aControlBits):
2961 r"""Format(EDA_TEXT self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControlBits)"""
2962 return _pcbnew.EDA_TEXT_Format(self, aFormatter, aNestLevel, aControlBits)
2963
2965 r"""GetDrawRotation(EDA_TEXT self) -> EDA_ANGLE"""
2966 return _pcbnew.EDA_TEXT_GetDrawRotation(self)
2967
2968 def GetDrawPos(self):
2969 r"""GetDrawPos(EDA_TEXT self) -> VECTOR2I"""
2970 return _pcbnew.EDA_TEXT_GetDrawPos(self)
2971
2973 r"""ClearRenderCache(EDA_TEXT self)"""
2974 return _pcbnew.EDA_TEXT_ClearRenderCache(self)
2975
2977 r"""ClearBoundingBoxCache(EDA_TEXT self)"""
2978 return _pcbnew.EDA_TEXT_ClearBoundingBoxCache(self)
2979
2980 def GetRenderCache(self, *args):
2981 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 > > >"""
2982 return _pcbnew.EDA_TEXT_GetRenderCache(self, *args)
2983
2984 def SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset):
2985 r"""SetupRenderCache(EDA_TEXT self, wxString aResolvedText, KIFONT::FONT const * aFont, EDA_ANGLE aAngle, VECTOR2I aOffset)"""
2986 return _pcbnew.EDA_TEXT_SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset)
2987
2988 def AddRenderCacheGlyph(self, aPoly):
2989 r"""AddRenderCacheGlyph(EDA_TEXT self, SHAPE_POLY_SET aPoly)"""
2990 return _pcbnew.EDA_TEXT_AddRenderCacheGlyph(self, aPoly)
2991
2992 def Compare(self, aOther):
2993 r"""Compare(EDA_TEXT self, EDA_TEXT aOther) -> int"""
2994 return _pcbnew.EDA_TEXT_Compare(self, aOther)
2995
2996 def __eq__(self, aRhs):
2997 r"""__eq__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
2998 return _pcbnew.EDA_TEXT___eq__(self, aRhs)
2999
3000 def __lt__(self, aRhs):
3001 r"""__lt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
3002 return _pcbnew.EDA_TEXT___lt__(self, aRhs)
3003
3004 def __gt__(self, aRhs):
3005 r"""__gt__(EDA_TEXT self, EDA_TEXT aRhs) -> bool"""
3006 return _pcbnew.EDA_TEXT___gt__(self, aRhs)
3007
3008 def HasHyperlink(self):
3009 r"""HasHyperlink(EDA_TEXT self) -> bool"""
3010 return _pcbnew.EDA_TEXT_HasHyperlink(self)
3011
3012 def GetHyperlink(self):
3013 r"""GetHyperlink(EDA_TEXT self) -> wxString"""
3014 return _pcbnew.EDA_TEXT_GetHyperlink(self)
3015
3016 def SetHyperlink(self, aLink):
3017 r"""SetHyperlink(EDA_TEXT self, wxString aLink)"""
3018 return _pcbnew.EDA_TEXT_SetHyperlink(self, aLink)
3019
3021 r"""RemoveHyperlink(EDA_TEXT self)"""
3022 return _pcbnew.EDA_TEXT_RemoveHyperlink(self)
3023
3024 @staticmethod
3026 r"""ValidateHyperlink(wxString aURL) -> bool"""
3027 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
3028
3029 @staticmethod
3030 def IsGotoPageHref(aHref, aDestination=None):
3031 r"""IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
3032 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
3033
3034 @staticmethod
3035 def GotoPageHref(aDestination):
3036 r"""GotoPageHref(wxString aDestination) -> wxString"""
3037 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
3038
3039# Register EDA_TEXT in _pcbnew:
3040_pcbnew.EDA_TEXT_swigregister(EDA_TEXT)
3041
3042def EDA_TEXT_MapHorizJustify(aHorizJustify):
3043 r"""EDA_TEXT_MapHorizJustify(int aHorizJustify) -> GR_TEXT_H_ALIGN_T"""
3044 return _pcbnew.EDA_TEXT_MapHorizJustify(aHorizJustify)
3045
3046def EDA_TEXT_MapVertJustify(aVertJustify):
3047 r"""EDA_TEXT_MapVertJustify(int aVertJustify) -> GR_TEXT_V_ALIGN_T"""
3048 return _pcbnew.EDA_TEXT_MapVertJustify(aVertJustify)
3049
3051 r"""EDA_TEXT_ValidateHyperlink(wxString aURL) -> bool"""
3052 return _pcbnew.EDA_TEXT_ValidateHyperlink(aURL)
3053
3054def EDA_TEXT_IsGotoPageHref(aHref, aDestination=None):
3055 r"""EDA_TEXT_IsGotoPageHref(wxString aHref, wxString aDestination=None) -> bool"""
3056 return _pcbnew.EDA_TEXT_IsGotoPageHref(aHref, aDestination)
3057
3058def EDA_TEXT_GotoPageHref(aDestination):
3059 r"""EDA_TEXT_GotoPageHref(wxString aDestination) -> wxString"""
3060 return _pcbnew.EDA_TEXT_GotoPageHref(aDestination)
3061
3062
3064 r"""GetBuildVersion() -> wxString"""
3065 return _pcbnew.GetBuildVersion()
3066
3068 r"""GetBaseVersion() -> wxString"""
3069 return _pcbnew.GetBaseVersion()
3070
3072 r"""GetPlatformGetBitnessName() -> wxString"""
3073 return _pcbnew.GetPlatformGetBitnessName()
3074
3076 r"""GetSemanticVersion() -> wxString"""
3077 return _pcbnew.GetSemanticVersion()
3078
3080 r"""GetMajorMinorVersion() -> wxString"""
3081 return _pcbnew.GetMajorMinorVersion()
3082
3084 r"""GetMajorMinorPatchVersion() -> wxString"""
3085 return _pcbnew.GetMajorMinorPatchVersion()
3086
3088 r"""GetBuildDate() -> wxString"""
3089 return _pcbnew.GetBuildDate()
3090
3092 r"""GetCommitHash() -> wxString"""
3093 return _pcbnew.GetCommitHash()
3094
3096 r"""GetMajorMinorPatchTuple() -> std::tuple< int,int,int > const &"""
3097 return _pcbnew.GetMajorMinorPatchTuple()
3098
3100 r"""IsNightlyVersion() -> bool"""
3101 return _pcbnew.IsNightlyVersion()
3102
3103def SetOpenGLInfo(aRenderer, aVendor, aVersion):
3104 r"""SetOpenGLInfo(char const * aRenderer, char const * aVendor, char const * aVersion)"""
3105 return _pcbnew.SetOpenGLInfo(aRenderer, aVendor, aVersion)
3106
3107def GetVersionInfoData(aTitle, aHtml=False, aBrief=False):
3108 r"""GetVersionInfoData(wxString aTitle, bool aHtml=False, bool aBrief=False) -> wxString"""
3109 return _pcbnew.GetVersionInfoData(aTitle, aHtml, aBrief)
3110UNDEFINED_LAYER = _pcbnew.UNDEFINED_LAYER
3111
3112UNSELECTED_LAYER = _pcbnew.UNSELECTED_LAYER
3113
3114PCBNEW_LAYER_ID_START = _pcbnew.PCBNEW_LAYER_ID_START
3115
3116F_Cu = _pcbnew.F_Cu
3117
3118In1_Cu = _pcbnew.In1_Cu
3119
3120In2_Cu = _pcbnew.In2_Cu
3121
3122In3_Cu = _pcbnew.In3_Cu
3123
3124In4_Cu = _pcbnew.In4_Cu
3125
3126In5_Cu = _pcbnew.In5_Cu
3127
3128In6_Cu = _pcbnew.In6_Cu
3129
3130In7_Cu = _pcbnew.In7_Cu
3131
3132In8_Cu = _pcbnew.In8_Cu
3133
3134In9_Cu = _pcbnew.In9_Cu
3135
3136In10_Cu = _pcbnew.In10_Cu
3137
3138In11_Cu = _pcbnew.In11_Cu
3139
3140In12_Cu = _pcbnew.In12_Cu
3141
3142In13_Cu = _pcbnew.In13_Cu
3143
3144In14_Cu = _pcbnew.In14_Cu
3145
3146In15_Cu = _pcbnew.In15_Cu
3147
3148In16_Cu = _pcbnew.In16_Cu
3149
3150In17_Cu = _pcbnew.In17_Cu
3151
3152In18_Cu = _pcbnew.In18_Cu
3153
3154In19_Cu = _pcbnew.In19_Cu
3155
3156In20_Cu = _pcbnew.In20_Cu
3157
3158In21_Cu = _pcbnew.In21_Cu
3159
3160In22_Cu = _pcbnew.In22_Cu
3161
3162In23_Cu = _pcbnew.In23_Cu
3163
3164In24_Cu = _pcbnew.In24_Cu
3165
3166In25_Cu = _pcbnew.In25_Cu
3167
3168In26_Cu = _pcbnew.In26_Cu
3169
3170In27_Cu = _pcbnew.In27_Cu
3171
3172In28_Cu = _pcbnew.In28_Cu
3173
3174In29_Cu = _pcbnew.In29_Cu
3175
3176In30_Cu = _pcbnew.In30_Cu
3177
3178B_Cu = _pcbnew.B_Cu
3179
3180B_Adhes = _pcbnew.B_Adhes
3181
3182F_Adhes = _pcbnew.F_Adhes
3183
3184B_Paste = _pcbnew.B_Paste
3185
3186F_Paste = _pcbnew.F_Paste
3187
3188B_SilkS = _pcbnew.B_SilkS
3189
3190F_SilkS = _pcbnew.F_SilkS
3191
3192B_Mask = _pcbnew.B_Mask
3193
3194F_Mask = _pcbnew.F_Mask
3195
3196Dwgs_User = _pcbnew.Dwgs_User
3197
3198Cmts_User = _pcbnew.Cmts_User
3199
3200Eco1_User = _pcbnew.Eco1_User
3201
3202Eco2_User = _pcbnew.Eco2_User
3203
3204Edge_Cuts = _pcbnew.Edge_Cuts
3205
3206Margin = _pcbnew.Margin
3207
3208B_CrtYd = _pcbnew.B_CrtYd
3209
3210F_CrtYd = _pcbnew.F_CrtYd
3211
3212B_Fab = _pcbnew.B_Fab
3213
3214F_Fab = _pcbnew.F_Fab
3215
3216User_1 = _pcbnew.User_1
3217
3218User_2 = _pcbnew.User_2
3219
3220User_3 = _pcbnew.User_3
3221
3222User_4 = _pcbnew.User_4
3223
3224User_5 = _pcbnew.User_5
3225
3226User_6 = _pcbnew.User_6
3227
3228User_7 = _pcbnew.User_7
3229
3230User_8 = _pcbnew.User_8
3231
3232User_9 = _pcbnew.User_9
3233
3234Rescue = _pcbnew.Rescue
3235
3236PCB_LAYER_ID_COUNT = _pcbnew.PCB_LAYER_ID_COUNT
3237
3238FLASHING_DEFAULT = _pcbnew.FLASHING_DEFAULT
3239
3240FLASHING_ALWAYS_FLASHED = _pcbnew.FLASHING_ALWAYS_FLASHED
3241
3242FLASHING_NEVER_FLASHED = _pcbnew.FLASHING_NEVER_FLASHED
3243
3244NETNAMES_LAYER_ID_START = _pcbnew.NETNAMES_LAYER_ID_START
3245
3246NETNAMES_LAYER_ID_RESERVED = _pcbnew.NETNAMES_LAYER_ID_RESERVED
3247
3248LAYER_PAD_FR_NETNAMES = _pcbnew.LAYER_PAD_FR_NETNAMES
3249
3250LAYER_PAD_BK_NETNAMES = _pcbnew.LAYER_PAD_BK_NETNAMES
3251
3252LAYER_PAD_NETNAMES = _pcbnew.LAYER_PAD_NETNAMES
3253
3254LAYER_VIA_NETNAMES = _pcbnew.LAYER_VIA_NETNAMES
3255
3256NETNAMES_LAYER_ID_END = _pcbnew.NETNAMES_LAYER_ID_END
3257
3258GAL_UI_LAYER_COUNT = _pcbnew.GAL_UI_LAYER_COUNT
3259
3260GAL_LAYER_ID_START = _pcbnew.GAL_LAYER_ID_START
3261
3262LAYER_VIAS = _pcbnew.LAYER_VIAS
3263
3264LAYER_VIA_MICROVIA = _pcbnew.LAYER_VIA_MICROVIA
3265
3266LAYER_VIA_BBLIND = _pcbnew.LAYER_VIA_BBLIND
3267
3268LAYER_VIA_THROUGH = _pcbnew.LAYER_VIA_THROUGH
3269
3270LAYER_NON_PLATEDHOLES = _pcbnew.LAYER_NON_PLATEDHOLES
3271
3272LAYER_FP_TEXT = _pcbnew.LAYER_FP_TEXT
3273
3274LAYER_HIDDEN_TEXT = _pcbnew.LAYER_HIDDEN_TEXT
3275
3276LAYER_ANCHOR = _pcbnew.LAYER_ANCHOR
3277
3278LAYER_PADS_SMD_FR = _pcbnew.LAYER_PADS_SMD_FR
3279
3280LAYER_PADS_SMD_BK = _pcbnew.LAYER_PADS_SMD_BK
3281
3282LAYER_RATSNEST = _pcbnew.LAYER_RATSNEST
3283
3284LAYER_GRID = _pcbnew.LAYER_GRID
3285
3286LAYER_GRID_AXES = _pcbnew.LAYER_GRID_AXES
3287
3288LAYER_FOOTPRINTS_FR = _pcbnew.LAYER_FOOTPRINTS_FR
3289
3290LAYER_FOOTPRINTS_BK = _pcbnew.LAYER_FOOTPRINTS_BK
3291
3292LAYER_FP_VALUES = _pcbnew.LAYER_FP_VALUES
3293
3294LAYER_FP_REFERENCES = _pcbnew.LAYER_FP_REFERENCES
3295
3296LAYER_TRACKS = _pcbnew.LAYER_TRACKS
3297
3298LAYER_PADS_TH = _pcbnew.LAYER_PADS_TH
3299
3300LAYER_PAD_PLATEDHOLES = _pcbnew.LAYER_PAD_PLATEDHOLES
3301
3302LAYER_VIA_HOLES = _pcbnew.LAYER_VIA_HOLES
3303
3304LAYER_DRC_ERROR = _pcbnew.LAYER_DRC_ERROR
3305
3306LAYER_DRAWINGSHEET = _pcbnew.LAYER_DRAWINGSHEET
3307
3308LAYER_GP_OVERLAY = _pcbnew.LAYER_GP_OVERLAY
3309
3310LAYER_SELECT_OVERLAY = _pcbnew.LAYER_SELECT_OVERLAY
3311
3312LAYER_PCB_BACKGROUND = _pcbnew.LAYER_PCB_BACKGROUND
3313
3314LAYER_CURSOR = _pcbnew.LAYER_CURSOR
3315
3316LAYER_AUX_ITEMS = _pcbnew.LAYER_AUX_ITEMS
3317
3318LAYER_DRAW_BITMAPS = _pcbnew.LAYER_DRAW_BITMAPS
3319
3320GAL_LAYER_ID_BITMASK_END = _pcbnew.GAL_LAYER_ID_BITMASK_END
3321
3322LAYER_PADS = _pcbnew.LAYER_PADS
3323
3324LAYER_ZONES = _pcbnew.LAYER_ZONES
3325
3326LAYER_PAD_HOLEWALLS = _pcbnew.LAYER_PAD_HOLEWALLS
3327
3328LAYER_VIA_HOLEWALLS = _pcbnew.LAYER_VIA_HOLEWALLS
3329
3330LAYER_DRC_WARNING = _pcbnew.LAYER_DRC_WARNING
3331
3332LAYER_DRC_EXCLUSION = _pcbnew.LAYER_DRC_EXCLUSION
3333
3334LAYER_MARKER_SHADOWS = _pcbnew.LAYER_MARKER_SHADOWS
3335
3336LAYER_LOCKED_ITEM_SHADOW = _pcbnew.LAYER_LOCKED_ITEM_SHADOW
3337
3338LAYER_CONFLICTS_SHADOW = _pcbnew.LAYER_CONFLICTS_SHADOW
3339
3340LAYER_DRAWINGSHEET_PAGE1 = _pcbnew.LAYER_DRAWINGSHEET_PAGE1
3341
3342LAYER_DRAWINGSHEET_PAGEn = _pcbnew.LAYER_DRAWINGSHEET_PAGEn
3343
3344LAYER_PAGE_LIMITS = _pcbnew.LAYER_PAGE_LIMITS
3345
3346LAYER_ZONE_START = _pcbnew.LAYER_ZONE_START
3347
3348LAYER_ZONE_END = _pcbnew.LAYER_ZONE_END
3349
3350LAYER_BITMAP_START = _pcbnew.LAYER_BITMAP_START
3351
3352LAYER_BITMAP_END = _pcbnew.LAYER_BITMAP_END
3353
3354LAYER_UI_START = _pcbnew.LAYER_UI_START
3355
3356LAYER_UI_END = _pcbnew.LAYER_UI_END
3357
3358GAL_LAYER_ID_END = _pcbnew.GAL_LAYER_ID_END
3359
3360
3361def ToGalLayer(aInteger):
3362 r"""ToGalLayer(int aInteger) -> GAL_LAYER_ID"""
3363 return _pcbnew.ToGalLayer(aInteger)
3365 r"""Proxy of C++ GAL_SET class."""
3366
3367 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3368 __repr__ = _swig_repr
3369
3370 def __init__(self, *args):
3371 r"""
3372 __init__(GAL_SET self) -> GAL_SET
3373 __init__(GAL_SET self, GAL_SET aOther) -> GAL_SET
3374 __init__(GAL_SET self, GAL_LAYER_ID const * aArray, unsigned int aCount) -> GAL_SET
3375 """
3376 _pcbnew.GAL_SET_swiginit(self, _pcbnew.new_GAL_SET(*args))
3377
3378 def set(self, *args):
3379 r"""
3380 set(GAL_SET self) -> GAL_SET
3381 set(GAL_SET self, int aPos, bool aVal=True) -> GAL_SET
3382 set(GAL_SET self, GAL_LAYER_ID aPos, bool aVal=True) -> GAL_SET
3383 """
3384 return _pcbnew.GAL_SET_set(self, *args)
3385
3386 def Contains(self, aPos):
3387 r"""Contains(GAL_SET self, GAL_LAYER_ID aPos) -> bool"""
3388 return _pcbnew.GAL_SET_Contains(self, aPos)
3389
3390 def Seq(self):
3391 r"""Seq(GAL_SET self) -> std::vector< GAL_LAYER_ID,std::allocator< GAL_LAYER_ID > >"""
3392 return _pcbnew.GAL_SET_Seq(self)
3393
3394 @staticmethod
3396 r"""DefaultVisible() -> GAL_SET"""
3397 return _pcbnew.GAL_SET_DefaultVisible()
3398 __swig_destroy__ = _pcbnew.delete_GAL_SET
3399
3400# Register GAL_SET in _pcbnew:
3401_pcbnew.GAL_SET_swigregister(GAL_SET)
3402GAL_LAYER_ID_COUNT = cvar.GAL_LAYER_ID_COUNT
3403
3405 r"""GAL_SET_DefaultVisible() -> GAL_SET"""
3406 return _pcbnew.GAL_SET_DefaultVisible()
3407
3408SCH_LAYER_ID_START = _pcbnew.SCH_LAYER_ID_START
3409
3410LAYER_WIRE = _pcbnew.LAYER_WIRE
3411
3412LAYER_BUS = _pcbnew.LAYER_BUS
3413
3414LAYER_JUNCTION = _pcbnew.LAYER_JUNCTION
3415
3416LAYER_LOCLABEL = _pcbnew.LAYER_LOCLABEL
3417
3418LAYER_GLOBLABEL = _pcbnew.LAYER_GLOBLABEL
3419
3420LAYER_HIERLABEL = _pcbnew.LAYER_HIERLABEL
3421
3422LAYER_PINNUM = _pcbnew.LAYER_PINNUM
3423
3424LAYER_PINNAM = _pcbnew.LAYER_PINNAM
3425
3426LAYER_REFERENCEPART = _pcbnew.LAYER_REFERENCEPART
3427
3428LAYER_VALUEPART = _pcbnew.LAYER_VALUEPART
3429
3430LAYER_FIELDS = _pcbnew.LAYER_FIELDS
3431
3432LAYER_INTERSHEET_REFS = _pcbnew.LAYER_INTERSHEET_REFS
3433
3434LAYER_NETCLASS_REFS = _pcbnew.LAYER_NETCLASS_REFS
3435
3436LAYER_DEVICE = _pcbnew.LAYER_DEVICE
3437
3438LAYER_NOTES = _pcbnew.LAYER_NOTES
3439
3440LAYER_PRIVATE_NOTES = _pcbnew.LAYER_PRIVATE_NOTES
3441
3442LAYER_NOTES_BACKGROUND = _pcbnew.LAYER_NOTES_BACKGROUND
3443
3444LAYER_PIN = _pcbnew.LAYER_PIN
3445
3446LAYER_SHEET = _pcbnew.LAYER_SHEET
3447
3448LAYER_SHEETNAME = _pcbnew.LAYER_SHEETNAME
3449
3450LAYER_SHEETFILENAME = _pcbnew.LAYER_SHEETFILENAME
3451
3452LAYER_SHEETFIELDS = _pcbnew.LAYER_SHEETFIELDS
3453
3454LAYER_SHEETLABEL = _pcbnew.LAYER_SHEETLABEL
3455
3456LAYER_NOCONNECT = _pcbnew.LAYER_NOCONNECT
3457
3458LAYER_DANGLING = _pcbnew.LAYER_DANGLING
3459
3460LAYER_DNP_MARKER = _pcbnew.LAYER_DNP_MARKER
3461
3462LAYER_ERC_WARN = _pcbnew.LAYER_ERC_WARN
3463
3464LAYER_ERC_ERR = _pcbnew.LAYER_ERC_ERR
3465
3466LAYER_ERC_EXCLUSION = _pcbnew.LAYER_ERC_EXCLUSION
3467
3468LAYER_DEVICE_BACKGROUND = _pcbnew.LAYER_DEVICE_BACKGROUND
3469
3470LAYER_SHEET_BACKGROUND = _pcbnew.LAYER_SHEET_BACKGROUND
3471
3472LAYER_SCHEMATIC_GRID = _pcbnew.LAYER_SCHEMATIC_GRID
3473
3474LAYER_SCHEMATIC_GRID_AXES = _pcbnew.LAYER_SCHEMATIC_GRID_AXES
3475
3476LAYER_SCHEMATIC_BACKGROUND = _pcbnew.LAYER_SCHEMATIC_BACKGROUND
3477
3478LAYER_SCHEMATIC_CURSOR = _pcbnew.LAYER_SCHEMATIC_CURSOR
3479
3480LAYER_HOVERED = _pcbnew.LAYER_HOVERED
3481
3482LAYER_BRIGHTENED = _pcbnew.LAYER_BRIGHTENED
3483
3484LAYER_HIDDEN = _pcbnew.LAYER_HIDDEN
3485
3486LAYER_SELECTION_SHADOWS = _pcbnew.LAYER_SELECTION_SHADOWS
3487
3488LAYER_SCHEMATIC_DRAWINGSHEET = _pcbnew.LAYER_SCHEMATIC_DRAWINGSHEET
3489
3490LAYER_SCHEMATIC_PAGE_LIMITS = _pcbnew.LAYER_SCHEMATIC_PAGE_LIMITS
3491
3492LAYER_BUS_JUNCTION = _pcbnew.LAYER_BUS_JUNCTION
3493
3494LAYER_SCHEMATIC_AUX_ITEMS = _pcbnew.LAYER_SCHEMATIC_AUX_ITEMS
3495
3496LAYER_SCHEMATIC_ANCHOR = _pcbnew.LAYER_SCHEMATIC_ANCHOR
3497
3498LAYER_OP_VOLTAGES = _pcbnew.LAYER_OP_VOLTAGES
3499
3500LAYER_OP_CURRENTS = _pcbnew.LAYER_OP_CURRENTS
3501
3502SCH_LAYER_ID_END = _pcbnew.SCH_LAYER_ID_END
3503
3504GERBVIEW_LAYER_ID_START = _pcbnew.GERBVIEW_LAYER_ID_START
3505
3506GERBVIEW_LAYER_ID_RESERVED = _pcbnew.GERBVIEW_LAYER_ID_RESERVED
3507
3508LAYER_DCODES = _pcbnew.LAYER_DCODES
3509
3510LAYER_NEGATIVE_OBJECTS = _pcbnew.LAYER_NEGATIVE_OBJECTS
3511
3512LAYER_GERBVIEW_GRID = _pcbnew.LAYER_GERBVIEW_GRID
3513
3514LAYER_GERBVIEW_AXES = _pcbnew.LAYER_GERBVIEW_AXES
3515
3516LAYER_GERBVIEW_BACKGROUND = _pcbnew.LAYER_GERBVIEW_BACKGROUND
3517
3518LAYER_GERBVIEW_DRAWINGSHEET = _pcbnew.LAYER_GERBVIEW_DRAWINGSHEET
3519
3520LAYER_GERBVIEW_PAGE_LIMITS = _pcbnew.LAYER_GERBVIEW_PAGE_LIMITS
3521
3522GERBVIEW_LAYER_ID_END = _pcbnew.GERBVIEW_LAYER_ID_END
3523
3524LAYER_3D_START = _pcbnew.LAYER_3D_START
3525
3526LAYER_3D_BACKGROUND_BOTTOM = _pcbnew.LAYER_3D_BACKGROUND_BOTTOM
3527
3528LAYER_3D_BACKGROUND_TOP = _pcbnew.LAYER_3D_BACKGROUND_TOP
3529
3530LAYER_3D_BOARD = _pcbnew.LAYER_3D_BOARD
3531
3532LAYER_3D_COPPER_TOP = _pcbnew.LAYER_3D_COPPER_TOP
3533
3534LAYER_3D_COPPER_BOTTOM = _pcbnew.LAYER_3D_COPPER_BOTTOM
3535
3536LAYER_3D_SILKSCREEN_BOTTOM = _pcbnew.LAYER_3D_SILKSCREEN_BOTTOM
3537
3538LAYER_3D_SILKSCREEN_TOP = _pcbnew.LAYER_3D_SILKSCREEN_TOP
3539
3540LAYER_3D_SOLDERMASK_BOTTOM = _pcbnew.LAYER_3D_SOLDERMASK_BOTTOM
3541
3542LAYER_3D_SOLDERMASK_TOP = _pcbnew.LAYER_3D_SOLDERMASK_TOP
3543
3544LAYER_3D_SOLDERPASTE = _pcbnew.LAYER_3D_SOLDERPASTE
3545
3546LAYER_3D_ADHESIVE = _pcbnew.LAYER_3D_ADHESIVE
3547
3548LAYER_3D_USER_COMMENTS = _pcbnew.LAYER_3D_USER_COMMENTS
3549
3550LAYER_3D_USER_DRAWINGS = _pcbnew.LAYER_3D_USER_DRAWINGS
3551
3552LAYER_3D_USER_ECO1 = _pcbnew.LAYER_3D_USER_ECO1
3553
3554LAYER_3D_USER_ECO2 = _pcbnew.LAYER_3D_USER_ECO2
3555
3556LAYER_3D_TH_MODELS = _pcbnew.LAYER_3D_TH_MODELS
3557
3558LAYER_3D_SMD_MODELS = _pcbnew.LAYER_3D_SMD_MODELS
3559
3560LAYER_3D_VIRTUAL_MODELS = _pcbnew.LAYER_3D_VIRTUAL_MODELS
3561
3562LAYER_3D_MODELS_NOT_IN_POS = _pcbnew.LAYER_3D_MODELS_NOT_IN_POS
3563
3564LAYER_3D_MODELS_MARKED_DNP = _pcbnew.LAYER_3D_MODELS_MARKED_DNP
3565
3566LAYER_3D_AXES = _pcbnew.LAYER_3D_AXES
3567
3568LAYER_3D_BOUNDING_BOXES = _pcbnew.LAYER_3D_BOUNDING_BOXES
3569
3570LAYER_3D_OFF_BOARD_SILK = _pcbnew.LAYER_3D_OFF_BOARD_SILK
3571
3572LAYER_3D_END = _pcbnew.LAYER_3D_END
3573
3574
3575def LayerName(aLayer):
3576 r"""LayerName(int aLayer) -> wxString"""
3577 return _pcbnew.LayerName(aLayer)
3579 r"""Proxy of C++ LSEQ class."""
3580
3581 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3582 __repr__ = _swig_repr
3583
3584 def __init__(self, *args):
3585 r"""
3586 __init__(LSEQ self) -> LSEQ
3587 __init__(LSEQ self, std::initializer_list< PCB_LAYER_ID > aLayers) -> LSEQ
3588 """
3589 _pcbnew.LSEQ_swiginit(self, _pcbnew.new_LSEQ(*args))
3590
3591 def Rewind(self):
3592 r"""Rewind(LSEQ self)"""
3593 return _pcbnew.LSEQ_Rewind(self)
3594
3595 def __nonzero__(self):
3596 return _pcbnew.LSEQ___nonzero__(self)
3597 __bool__ = __nonzero__
3598
3599
3600
3601 def __ref__(self):
3602 r"""__ref__(LSEQ self) -> PCB_LAYER_ID"""
3603 return _pcbnew.LSEQ___ref__(self)
3604
3605 def TestLayers(self, aRhs, aLhs):
3606 r"""TestLayers(LSEQ self, PCB_LAYER_ID aRhs, PCB_LAYER_ID aLhs) -> int"""
3607 return _pcbnew.LSEQ_TestLayers(self, aRhs, aLhs)
3608 __swig_destroy__ = _pcbnew.delete_LSEQ
3609
3610# Register LSEQ in _pcbnew:
3611_pcbnew.LSEQ_swigregister(LSEQ)
3612
3614 r"""Proxy of C++ LSET class."""
3615
3616 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3617 __repr__ = _swig_repr
3618
3619 def __init__(self, *args):
3620 r"""
3621 __init__(LSET self) -> LSET
3622 __init__(LSET self, BASE_SET const & aOther) -> LSET
3623 __init__(LSET self, PCB_LAYER_ID aLayer) -> LSET
3624 __init__(LSET self, PCB_LAYER_ID const * aArray, unsigned int aCount) -> LSET
3625 __init__(LSET self, unsigned int aIdCount, int aFirst) -> LSET
3626 __init__(LSET self, LSEQ aSeq) -> LSET
3627 """
3628 _pcbnew.LSET_swiginit(self, _pcbnew.new_LSET(*args))
3629
3630 def Contains(self, aLayer):
3631 r"""Contains(LSET self, PCB_LAYER_ID aLayer) -> bool"""
3632 return _pcbnew.LSET_Contains(self, aLayer)
3633
3634 @staticmethod
3635 def Name(aLayerId):
3636 r"""Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3637 return _pcbnew.LSET_Name(aLayerId)
3638
3639 @staticmethod
3641 r"""InternalCuMask() -> LSET"""
3642 return _pcbnew.LSET_InternalCuMask()
3643
3644 @staticmethod
3646 r"""FrontAssembly() -> LSET"""
3647 return _pcbnew.LSET_FrontAssembly()
3648
3649 @staticmethod
3651 r"""BackAssembly() -> LSET"""
3652 return _pcbnew.LSET_BackAssembly()
3653
3654 @staticmethod
3655 def AllCuMask(*args):
3656 r"""AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3657 return _pcbnew.LSET_AllCuMask(*args)
3658
3659 @staticmethod
3661 r"""ExternalCuMask() -> LSET"""
3662 return _pcbnew.LSET_ExternalCuMask()
3663
3664 @staticmethod
3666 r"""AllNonCuMask() -> LSET"""
3667 return _pcbnew.LSET_AllNonCuMask()
3668
3669 @staticmethod
3671 r"""AllLayersMask() -> LSET"""
3672 return _pcbnew.LSET_AllLayersMask()
3673
3674 @staticmethod
3676 r"""FrontTechMask() -> LSET"""
3677 return _pcbnew.LSET_FrontTechMask()
3678
3679 @staticmethod
3681 r"""FrontBoardTechMask() -> LSET"""
3682 return _pcbnew.LSET_FrontBoardTechMask()
3683
3684 @staticmethod
3686 r"""BackTechMask() -> LSET"""
3687 return _pcbnew.LSET_BackTechMask()
3688
3689 @staticmethod
3691 r"""BackBoardTechMask() -> LSET"""
3692 return _pcbnew.LSET_BackBoardTechMask()
3693
3694 @staticmethod
3696 r"""AllTechMask() -> LSET"""
3697 return _pcbnew.LSET_AllTechMask()
3698
3699 @staticmethod
3701 r"""AllBoardTechMask() -> LSET"""
3702 return _pcbnew.LSET_AllBoardTechMask()
3703
3704 @staticmethod
3706 r"""FrontMask() -> LSET"""
3707 return _pcbnew.LSET_FrontMask()
3708
3709 @staticmethod
3711 r"""BackMask() -> LSET"""
3712 return _pcbnew.LSET_BackMask()
3713
3714 @staticmethod
3716 r"""SideSpecificMask() -> LSET"""
3717 return _pcbnew.LSET_SideSpecificMask()
3718
3719 @staticmethod
3721 r"""UserMask() -> LSET"""
3722 return _pcbnew.LSET_UserMask()
3723
3724 @staticmethod
3726 r"""PhysicalLayersMask() -> LSET"""
3727 return _pcbnew.LSET_PhysicalLayersMask()
3728
3729 @staticmethod
3731 r"""UserDefinedLayers() -> LSET"""
3732 return _pcbnew.LSET_UserDefinedLayers()
3733
3734 @staticmethod
3736 r"""ForbiddenFootprintLayers() -> LSET"""
3737 return _pcbnew.LSET_ForbiddenFootprintLayers()
3738
3739 def CuStack(self):
3740 r"""CuStack(LSET self) -> LSEQ"""
3741 return _pcbnew.LSET_CuStack(self)
3742
3743 def Technicals(self, *args):
3744 r"""Technicals(LSET self, LSET aSubToOmit=LSET()) -> LSEQ"""
3745 return _pcbnew.LSET_Technicals(self, *args)
3746
3747 def Users(self):
3748 r"""Users(LSET self) -> LSEQ"""
3749 return _pcbnew.LSET_Users(self)
3750
3752 r"""TechAndUserUIOrder(LSET self) -> LSEQ"""
3753 return _pcbnew.LSET_TechAndUserUIOrder(self)
3754
3755 def UIOrder(self):
3756 r"""UIOrder(LSET self) -> LSEQ"""
3757 return _pcbnew.LSET_UIOrder(self)
3758
3759 def Seq(self, *args):
3760 r"""
3761 Seq(LSET self, PCB_LAYER_ID const * aWishListSequence, unsigned int aCount) -> LSEQ
3762 Seq(LSET self, LSEQ aSequence) -> LSEQ
3763 Seq(LSET self) -> LSEQ
3764 """
3765 return _pcbnew.LSET_Seq(self, *args)
3766
3767 def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER):
3768 r"""SeqStackupTop2Bottom(LSET self, PCB_LAYER_ID aSelectedLayer=UNDEFINED_LAYER) -> LSEQ"""
3769 return _pcbnew.LSET_SeqStackupTop2Bottom(self, aSelectedLayer)
3770
3772 r"""SeqStackupForPlotting(LSET self) -> LSEQ"""
3773 return _pcbnew.LSET_SeqStackupForPlotting(self)
3774
3775 def FmtHex(self):
3776 r"""FmtHex(LSET self) -> string"""
3777 return _pcbnew.LSET_FmtHex(self)
3778
3779 def ParseHex(self, aStart, aCount):
3780 r"""ParseHex(LSET self, char const * aStart, int aCount) -> int"""
3781 return _pcbnew.LSET_ParseHex(self, aStart, aCount)
3782
3783 def FmtBin(self):
3784 r"""FmtBin(LSET self) -> string"""
3785 return _pcbnew.LSET_FmtBin(self)
3786
3787 def ExtractLayer(self):
3788 r"""ExtractLayer(LSET self) -> PCB_LAYER_ID"""
3789 return _pcbnew.LSET_ExtractLayer(self)
3790
3791 def addLayer(self, aLayer):
3792 r"""addLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3793 return _pcbnew.LSET_addLayer(self, aLayer)
3794
3795 def removeLayer(self, aLayer):
3796 r"""removeLayer(LSET self, PCB_LAYER_ID aLayer) -> LSET"""
3797 return _pcbnew.LSET_removeLayer(self, aLayer)
3798
3799 def addLayerSet(self, aLayerSet):
3800 r"""addLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3801 return _pcbnew.LSET_addLayerSet(self, aLayerSet)
3802
3803 def removeLayerSet(self, aLayerSet):
3804 r"""removeLayerSet(LSET self, LSET aLayerSet) -> LSET"""
3805 return _pcbnew.LSET_removeLayerSet(self, aLayerSet)
3806
3807 def AddLayer(self, layer):
3808 return self.addLayer( layer )
3809
3810 def AddLayerSet(self, layers):
3811 return self.addLayerSet( layers )
3812
3813 def RemoveLayer(self, layer):
3814 return self.removeLayer( layer )
3815
3816 def RemoveLayerSet(self, layers):
3817 return self.removeLayerSet( layers )
3818
3819 __swig_destroy__ = _pcbnew.delete_LSET
3820
3821# Register LSET in _pcbnew:
3822_pcbnew.LSET_swigregister(LSET)
3823
3824def LSET_Name(aLayerId):
3825 r"""LSET_Name(PCB_LAYER_ID aLayerId) -> wxChar const *"""
3826 return _pcbnew.LSET_Name(aLayerId)
3827
3829 r"""LSET_InternalCuMask() -> LSET"""
3830 return _pcbnew.LSET_InternalCuMask()
3831
3833 r"""LSET_FrontAssembly() -> LSET"""
3834 return _pcbnew.LSET_FrontAssembly()
3835
3837 r"""LSET_BackAssembly() -> LSET"""
3838 return _pcbnew.LSET_BackAssembly()
3839
3841 r"""LSET_AllCuMask(int aCuLayerCount=(B_Cu-F_Cu+1)) -> LSET"""
3842 return _pcbnew.LSET_AllCuMask(*args)
3843
3845 r"""LSET_ExternalCuMask() -> LSET"""
3846 return _pcbnew.LSET_ExternalCuMask()
3847
3849 r"""LSET_AllNonCuMask() -> LSET"""
3850 return _pcbnew.LSET_AllNonCuMask()
3851
3853 r"""LSET_AllLayersMask() -> LSET"""
3854 return _pcbnew.LSET_AllLayersMask()
3855
3857 r"""LSET_FrontTechMask() -> LSET"""
3858 return _pcbnew.LSET_FrontTechMask()
3859
3861 r"""LSET_FrontBoardTechMask() -> LSET"""
3862 return _pcbnew.LSET_FrontBoardTechMask()
3863
3865 r"""LSET_BackTechMask() -> LSET"""
3866 return _pcbnew.LSET_BackTechMask()
3867
3869 r"""LSET_BackBoardTechMask() -> LSET"""
3870 return _pcbnew.LSET_BackBoardTechMask()
3871
3873 r"""LSET_AllTechMask() -> LSET"""
3874 return _pcbnew.LSET_AllTechMask()
3875
3877 r"""LSET_AllBoardTechMask() -> LSET"""
3878 return _pcbnew.LSET_AllBoardTechMask()
3879
3881 r"""LSET_FrontMask() -> LSET"""
3882 return _pcbnew.LSET_FrontMask()
3883
3885 r"""LSET_BackMask() -> LSET"""
3886 return _pcbnew.LSET_BackMask()
3887
3889 r"""LSET_SideSpecificMask() -> LSET"""
3890 return _pcbnew.LSET_SideSpecificMask()
3891
3893 r"""LSET_UserMask() -> LSET"""
3894 return _pcbnew.LSET_UserMask()
3895
3897 r"""LSET_PhysicalLayersMask() -> LSET"""
3898 return _pcbnew.LSET_PhysicalLayersMask()
3899
3901 r"""LSET_UserDefinedLayers() -> LSET"""
3902 return _pcbnew.LSET_UserDefinedLayers()
3903
3905 r"""LSET_ForbiddenFootprintLayers() -> LSET"""
3906 return _pcbnew.LSET_ForbiddenFootprintLayers()
3907
3908
3909def IsValidLayer(aLayerId):
3910 r"""IsValidLayer(int aLayerId) -> bool"""
3911 return _pcbnew.IsValidLayer(aLayerId)
3912
3913def IsPcbLayer(aLayer):
3914 r"""IsPcbLayer(int aLayer) -> bool"""
3915 return _pcbnew.IsPcbLayer(aLayer)
3916
3917def IsNonCopperLayer(aLayerId):
3918 r"""IsNonCopperLayer(int aLayerId) -> bool"""
3919 return _pcbnew.IsNonCopperLayer(aLayerId)
3920
3921def IsCopperLayer(*args):
3922 r"""
3923 IsCopperLayer(int aLayerId) -> bool
3924 IsCopperLayer(int aLayerId, bool aIncludeSyntheticCopperLayers) -> bool
3925 """
3926 return _pcbnew.IsCopperLayer(*args)
3927
3928def IsViaPadLayer(aLayer):
3929 r"""IsViaPadLayer(int aLayer) -> bool"""
3930 return _pcbnew.IsViaPadLayer(aLayer)
3931
3932def IsHoleLayer(aLayer):
3933 r"""IsHoleLayer(int aLayer) -> bool"""
3934 return _pcbnew.IsHoleLayer(aLayer)
3935
3936def IsUserLayer(aLayerId):
3937 r"""IsUserLayer(PCB_LAYER_ID aLayerId) -> bool"""
3938 return _pcbnew.IsUserLayer(aLayerId)
3939
3940def IsFrontLayer(aLayerId):
3941 r"""IsFrontLayer(PCB_LAYER_ID aLayerId) -> bool"""
3942 return _pcbnew.IsFrontLayer(aLayerId)
3943
3944def IsBackLayer(aLayerId):
3945 r"""IsBackLayer(PCB_LAYER_ID aLayerId) -> bool"""
3946 return _pcbnew.IsBackLayer(aLayerId)
3947
3948def FlipLayer(aLayerId, aCopperLayersCount=0):
3949 r"""FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount=0) -> PCB_LAYER_ID"""
3950 return _pcbnew.FlipLayer(aLayerId, aCopperLayersCount)
3951
3952def FlipLayerMask(aMask, aCopperLayersCount=0):
3953 r"""FlipLayerMask(LSET aMask, int aCopperLayersCount=0) -> LSET"""
3954 return _pcbnew.FlipLayerMask(aMask, aCopperLayersCount)
3955
3957 r"""GetNetnameLayer(int aLayer) -> int"""
3958 return _pcbnew.GetNetnameLayer(aLayer)
3959
3960def IsNetnameLayer(aLayer):
3961 r"""IsNetnameLayer(int aLayer) -> bool"""
3962 return _pcbnew.IsNetnameLayer(aLayer)
3963
3965 r"""IsZoneFillLayer(int aLayer) -> bool"""
3966 return _pcbnew.IsZoneFillLayer(aLayer)
3967
3968def IsDCodeLayer(aLayer):
3969 r"""IsDCodeLayer(int aLayer) -> bool"""
3970 return _pcbnew.IsDCodeLayer(aLayer)
3971
3973 r"""IsNetCopperLayer(int aLayer) -> bool"""
3974 return _pcbnew.IsNetCopperLayer(aLayer)
3975
3976def ToLAYER_ID(aLayer):
3977 r"""ToLAYER_ID(int aLayer) -> PCB_LAYER_ID"""
3978 return _pcbnew.ToLAYER_ID(aLayer)
3980 r"""Proxy of C++ SETTINGS_MANAGER class."""
3981
3982 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3983 __repr__ = _swig_repr
3984
3985 def __init__(self, aHeadless=False):
3986 r"""__init__(SETTINGS_MANAGER self, bool aHeadless=False) -> SETTINGS_MANAGER"""
3987 _pcbnew.SETTINGS_MANAGER_swiginit(self, _pcbnew.new_SETTINGS_MANAGER(aHeadless))
3988 __swig_destroy__ = _pcbnew.delete_SETTINGS_MANAGER
3989
3990 def IsOK(self):
3991 r"""IsOK(SETTINGS_MANAGER self) -> bool"""
3992 return _pcbnew.SETTINGS_MANAGER_IsOK(self)
3993
3994 def SetKiway(self, aKiway):
3995 r"""SetKiway(SETTINGS_MANAGER self, KIWAY * aKiway)"""
3996 return _pcbnew.SETTINGS_MANAGER_SetKiway(self, aKiway)
3997
3998 def Load(self, *args):
3999 r"""
4000 Load(SETTINGS_MANAGER self)
4001 Load(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
4002 """
4003 return _pcbnew.SETTINGS_MANAGER_Load(self, *args)
4004
4005 def Save(self, *args):
4006 r"""
4007 Save(SETTINGS_MANAGER self)
4008 Save(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings)
4009 """
4010 return _pcbnew.SETTINGS_MANAGER_Save(self, *args)
4011
4012 def FlushAndRelease(self, aSettings, aSave=True):
4013 r"""FlushAndRelease(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings, bool aSave=True)"""
4014 return _pcbnew.SETTINGS_MANAGER_FlushAndRelease(self, aSettings, aSave)
4015
4016 def GetColorSettings(self, *args):
4017 r"""GetColorSettings(SETTINGS_MANAGER self, wxString aName="user") -> COLOR_SETTINGS"""
4018 return _pcbnew.SETTINGS_MANAGER_GetColorSettings(self, *args)
4019
4021 r"""GetColorSettingsList(SETTINGS_MANAGER self) -> std::vector< COLOR_SETTINGS *,std::allocator< COLOR_SETTINGS * > >"""
4022 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsList(self)
4023
4024 def SaveColorSettings(self, *args):
4025 r"""SaveColorSettings(SETTINGS_MANAGER self, COLOR_SETTINGS * aSettings, string aNamespace="")"""
4026 return _pcbnew.SETTINGS_MANAGER_SaveColorSettings(self, *args)
4027
4028 def AddNewColorSettings(self, aFilename):
4029 r"""AddNewColorSettings(SETTINGS_MANAGER self, wxString aFilename) -> COLOR_SETTINGS *"""
4030 return _pcbnew.SETTINGS_MANAGER_AddNewColorSettings(self, aFilename)
4031
4033 r"""GetMigratedColorSettings(SETTINGS_MANAGER self) -> COLOR_SETTINGS *"""
4034 return _pcbnew.SETTINGS_MANAGER_GetMigratedColorSettings(self)
4035
4037 r"""GetCommonSettings(SETTINGS_MANAGER self) -> COMMON_SETTINGS *"""
4038 return _pcbnew.SETTINGS_MANAGER_GetCommonSettings(self)
4039
4040 def GetPathForSettingsFile(self, aSettings):
4041 r"""GetPathForSettingsFile(SETTINGS_MANAGER self, JSON_SETTINGS * aSettings) -> wxString"""
4042 return _pcbnew.SETTINGS_MANAGER_GetPathForSettingsFile(self, aSettings)
4043
4045 r"""MigrateIfNeeded(SETTINGS_MANAGER self) -> bool"""
4046 return _pcbnew.SETTINGS_MANAGER_MigrateIfNeeded(self)
4047
4048 def SetMigrationSource(self, aSource):
4049 r"""SetMigrationSource(SETTINGS_MANAGER self, wxString aSource)"""
4050 return _pcbnew.SETTINGS_MANAGER_SetMigrationSource(self, aSource)
4051
4052 def SetMigrateLibraryTables(self, aMigrate=True):
4053 r"""SetMigrateLibraryTables(SETTINGS_MANAGER self, bool aMigrate=True)"""
4054 return _pcbnew.SETTINGS_MANAGER_SetMigrateLibraryTables(self, aMigrate)
4055
4056 def GetPreviousVersionPaths(self, aName=None):
4057 r"""GetPreviousVersionPaths(SETTINGS_MANAGER self, std::vector< wxString,std::allocator< wxString > > * aName=None) -> bool"""
4058 return _pcbnew.SETTINGS_MANAGER_GetPreviousVersionPaths(self, aName)
4059
4061 r"""ReloadColorSettings(SETTINGS_MANAGER self)"""
4062 return _pcbnew.SETTINGS_MANAGER_ReloadColorSettings(self)
4063
4064 def LoadProject(self, aFullPath, aSetActive=True):
4065 r"""LoadProject(SETTINGS_MANAGER self, wxString aFullPath, bool aSetActive=True) -> bool"""
4066 return _pcbnew.SETTINGS_MANAGER_LoadProject(self, aFullPath, aSetActive)
4067
4068 def UnloadProject(self, aProject, aSave=True):
4069 r"""UnloadProject(SETTINGS_MANAGER self, PROJECT * aProject, bool aSave=True) -> bool"""
4070 return _pcbnew.SETTINGS_MANAGER_UnloadProject(self, aProject, aSave)
4071
4072 def IsProjectOpen(self):
4073 r"""IsProjectOpen(SETTINGS_MANAGER self) -> bool"""
4074 return _pcbnew.SETTINGS_MANAGER_IsProjectOpen(self)
4075
4076 def Prj(self):
4077 r"""Prj(SETTINGS_MANAGER self) -> PROJECT &"""
4078 return _pcbnew.SETTINGS_MANAGER_Prj(self)
4079
4080 def GetProject(self, aFullPath):
4081 r"""GetProject(SETTINGS_MANAGER self, wxString aFullPath) -> PROJECT *"""
4082 return _pcbnew.SETTINGS_MANAGER_GetProject(self, aFullPath)
4083
4085 r"""GetOpenProjects(SETTINGS_MANAGER self) -> std::vector< wxString,std::allocator< wxString > >"""
4086 return _pcbnew.SETTINGS_MANAGER_GetOpenProjects(self)
4087
4088 def SaveProject(self, *args):
4089 r"""SaveProject(SETTINGS_MANAGER self, wxString aFullPath=wxEmptyString, PROJECT * aProject=None) -> bool"""
4090 return _pcbnew.SETTINGS_MANAGER_SaveProject(self, *args)
4091
4092 def SaveProjectAs(self, aFullPath, aProject=None):
4093 r"""SaveProjectAs(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
4094 return _pcbnew.SETTINGS_MANAGER_SaveProjectAs(self, aFullPath, aProject)
4095
4096 def SaveProjectCopy(self, aFullPath, aProject=None):
4097 r"""SaveProjectCopy(SETTINGS_MANAGER self, wxString aFullPath, PROJECT * aProject=None)"""
4098 return _pcbnew.SETTINGS_MANAGER_SaveProjectCopy(self, aFullPath, aProject)
4099
4101 r"""GetProjectBackupsPath(SETTINGS_MANAGER self) -> wxString"""
4102 return _pcbnew.SETTINGS_MANAGER_GetProjectBackupsPath(self)
4103
4104 def BackupProject(self, aReporter):
4105 r"""BackupProject(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4106 return _pcbnew.SETTINGS_MANAGER_BackupProject(self, aReporter)
4107
4108 def TriggerBackupIfNeeded(self, aReporter):
4109 r"""TriggerBackupIfNeeded(SETTINGS_MANAGER self, REPORTER & aReporter) -> bool"""
4110 return _pcbnew.SETTINGS_MANAGER_TriggerBackupIfNeeded(self, aReporter)
4111
4112 @staticmethod
4114 r"""IsSettingsPathValid(wxString aPath) -> bool"""
4115 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4116
4117 @staticmethod
4119 r"""GetColorSettingsPath() -> wxString"""
4120 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4121
4122 @staticmethod
4124 r"""GetSettingsVersion() -> string"""
4125 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4126
4127 @staticmethod
4129 r"""GetUserSettingsPath() -> wxString"""
4130 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4131
4132# Register SETTINGS_MANAGER in _pcbnew:
4133_pcbnew.SETTINGS_MANAGER_swigregister(SETTINGS_MANAGER)
4134
4136 r"""SETTINGS_MANAGER_IsSettingsPathValid(wxString aPath) -> bool"""
4137 return _pcbnew.SETTINGS_MANAGER_IsSettingsPathValid(aPath)
4138
4140 r"""SETTINGS_MANAGER_GetColorSettingsPath() -> wxString"""
4141 return _pcbnew.SETTINGS_MANAGER_GetColorSettingsPath()
4142
4144 r"""SETTINGS_MANAGER_GetSettingsVersion() -> string"""
4145 return _pcbnew.SETTINGS_MANAGER_GetSettingsVersion()
4146
4148 r"""SETTINGS_MANAGER_GetUserSettingsPath() -> wxString"""
4149 return _pcbnew.SETTINGS_MANAGER_GetUserSettingsPath()
4150
4152 r"""Proxy of C++ UTILS_BOX3D class."""
4153
4154 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4155 __repr__ = _swig_repr
4156
4157 def Min(self):
4158 r"""Min(UTILS_BOX3D self) -> VECTOR3D"""
4159 return _pcbnew.UTILS_BOX3D_Min(self)
4160
4161 def Max(self):
4162 r"""Max(UTILS_BOX3D self) -> VECTOR3D"""
4163 return _pcbnew.UTILS_BOX3D_Max(self)
4164
4165 def GetCenter(self):
4166 r"""GetCenter(UTILS_BOX3D self) -> VECTOR3D"""
4167 return _pcbnew.UTILS_BOX3D_GetCenter(self)
4168
4169 def GetSize(self):
4170 r"""GetSize(UTILS_BOX3D self) -> VECTOR3D"""
4171 return _pcbnew.UTILS_BOX3D_GetSize(self)
4172
4173 def __init__(self):
4174 r"""__init__(UTILS_BOX3D self) -> UTILS_BOX3D"""
4175 _pcbnew.UTILS_BOX3D_swiginit(self, _pcbnew.new_UTILS_BOX3D())
4176 __swig_destroy__ = _pcbnew.delete_UTILS_BOX3D
4177
4178# Register UTILS_BOX3D in _pcbnew:
4179_pcbnew.UTILS_BOX3D_swigregister(UTILS_BOX3D)
4180
4182 r"""Proxy of C++ UTILS_STEP_MODEL class."""
4183
4184 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4185 __repr__ = _swig_repr
4186
4188 r"""GetBoundingBox(UTILS_STEP_MODEL self) -> UTILS_BOX3D"""
4189 return _pcbnew.UTILS_STEP_MODEL_GetBoundingBox(self)
4190
4191 def Translate(self, aX, aY, aZ):
4192 r"""Translate(UTILS_STEP_MODEL self, double aX, double aY, double aZ)"""
4193 return _pcbnew.UTILS_STEP_MODEL_Translate(self, aX, aY, aZ)
4194
4195 def Scale(self, aScale):
4196 r"""Scale(UTILS_STEP_MODEL self, double aScale)"""
4197 return _pcbnew.UTILS_STEP_MODEL_Scale(self, aScale)
4198
4199 def SaveSTEP(self, aFileName):
4200 r"""SaveSTEP(UTILS_STEP_MODEL self, wxString aFileName) -> bool"""
4201 return _pcbnew.UTILS_STEP_MODEL_SaveSTEP(self, aFileName)
4202
4203 @staticmethod
4204 def LoadSTEP(aFileName):
4205 r"""LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
4206 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
4207
4208 def __init__(self):
4209 r"""__init__(UTILS_STEP_MODEL self) -> UTILS_STEP_MODEL"""
4210 _pcbnew.UTILS_STEP_MODEL_swiginit(self, _pcbnew.new_UTILS_STEP_MODEL())
4211
4212# Register UTILS_STEP_MODEL in _pcbnew:
4213_pcbnew.UTILS_STEP_MODEL_swigregister(UTILS_STEP_MODEL)
4214
4216 r"""UTILS_STEP_MODEL_LoadSTEP(wxString aFileName) -> UTILS_STEP_MODEL"""
4217 return _pcbnew.UTILS_STEP_MODEL_LoadSTEP(aFileName)
4218
4220 r"""Proxy of C++ std::vector< int > class."""
4221
4222 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4223 __repr__ = _swig_repr
4224
4225 def iterator(self):
4226 r"""iterator(intVector self) -> SwigPyIterator"""
4227 return _pcbnew.intVector_iterator(self)
4228 def __iter__(self):
4229 return self.iterator()
4230
4231 def __nonzero__(self):
4232 r"""__nonzero__(intVector self) -> bool"""
4233 return _pcbnew.intVector___nonzero__(self)
4234
4235 def __bool__(self):
4236 r"""__bool__(intVector self) -> bool"""
4237 return _pcbnew.intVector___bool__(self)
4238
4239 def __len__(self):
4240 r"""__len__(intVector self) -> std::vector< int >::size_type"""
4241 return _pcbnew.intVector___len__(self)
4242
4243 def __getslice__(self, i, j):
4244 r"""__getslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j) -> intVector"""
4245 return _pcbnew.intVector___getslice__(self, i, j)
4246
4247 def __setslice__(self, *args):
4248 r"""
4249 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)
4250 __setslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j, intVector v)
4251 """
4252 return _pcbnew.intVector___setslice__(self, *args)
4253
4254 def __delslice__(self, i, j):
4255 r"""__delslice__(intVector self, std::vector< int >::difference_type i, std::vector< int >::difference_type j)"""
4256 return _pcbnew.intVector___delslice__(self, i, j)
4257
4258 def __delitem__(self, *args):
4259 r"""
4260 __delitem__(intVector self, std::vector< int >::difference_type i)
4261 __delitem__(intVector self, PySliceObject * slice)
4262 """
4263 return _pcbnew.intVector___delitem__(self, *args)
4264
4265 def __getitem__(self, *args):
4266 r"""
4267 __getitem__(intVector self, PySliceObject * slice) -> intVector
4268 __getitem__(intVector self, std::vector< int >::difference_type i) -> std::vector< int >::value_type const &
4269 """
4270 return _pcbnew.intVector___getitem__(self, *args)
4271
4272 def __setitem__(self, *args):
4273 r"""
4274 __setitem__(intVector self, PySliceObject * slice, intVector v)
4275 __setitem__(intVector self, PySliceObject * slice)
4276 __setitem__(intVector self, std::vector< int >::difference_type i, std::vector< int >::value_type const & x)
4277 """
4278 return _pcbnew.intVector___setitem__(self, *args)
4279
4280 def pop(self):
4281 r"""pop(intVector self) -> std::vector< int >::value_type"""
4282 return _pcbnew.intVector_pop(self)
4283
4284 def append(self, x):
4285 r"""append(intVector self, std::vector< int >::value_type const & x)"""
4286 return _pcbnew.intVector_append(self, x)
4287
4288 def empty(self):
4289 r"""empty(intVector self) -> bool"""
4290 return _pcbnew.intVector_empty(self)
4291
4292 def size(self):
4293 r"""size(intVector self) -> std::vector< int >::size_type"""
4294 return _pcbnew.intVector_size(self)
4295
4296 def swap(self, v):
4297 r"""swap(intVector self, intVector v)"""
4298 return _pcbnew.intVector_swap(self, v)
4299
4300 def begin(self):
4301 r"""begin(intVector self) -> std::vector< int >::iterator"""
4302 return _pcbnew.intVector_begin(self)
4303
4304 def end(self):
4305 r"""end(intVector self) -> std::vector< int >::iterator"""
4306 return _pcbnew.intVector_end(self)
4307
4308 def rbegin(self):
4309 r"""rbegin(intVector self) -> std::vector< int >::reverse_iterator"""
4310 return _pcbnew.intVector_rbegin(self)
4311
4312 def rend(self):
4313 r"""rend(intVector self) -> std::vector< int >::reverse_iterator"""
4314 return _pcbnew.intVector_rend(self)
4315
4316 def clear(self):
4317 r"""clear(intVector self)"""
4318 return _pcbnew.intVector_clear(self)
4319
4320 def get_allocator(self):
4321 r"""get_allocator(intVector self) -> std::vector< int >::allocator_type"""
4322 return _pcbnew.intVector_get_allocator(self)
4323
4324 def pop_back(self):
4325 r"""pop_back(intVector self)"""
4326 return _pcbnew.intVector_pop_back(self)
4327
4328 def erase(self, *args):
4329 r"""
4330 erase(intVector self, std::vector< int >::iterator pos) -> std::vector< int >::iterator
4331 erase(intVector self, std::vector< int >::iterator first, std::vector< int >::iterator last) -> std::vector< int >::iterator
4332 """
4333 return _pcbnew.intVector_erase(self, *args)
4334
4335 def __init__(self, *args):
4336 r"""
4337 __init__(intVector self) -> intVector
4338 __init__(intVector self, intVector other) -> intVector
4339 __init__(intVector self, std::vector< int >::size_type size) -> intVector
4340 __init__(intVector self, std::vector< int >::size_type size, std::vector< int >::value_type const & value) -> intVector
4341 """
4342 _pcbnew.intVector_swiginit(self, _pcbnew.new_intVector(*args))
4343
4344 def push_back(self, x):
4345 r"""push_back(intVector self, std::vector< int >::value_type const & x)"""
4346 return _pcbnew.intVector_push_back(self, x)
4347
4348 def front(self):
4349 r"""front(intVector self) -> std::vector< int >::value_type const &"""
4350 return _pcbnew.intVector_front(self)
4351
4352 def back(self):
4353 r"""back(intVector self) -> std::vector< int >::value_type const &"""
4354 return _pcbnew.intVector_back(self)
4355
4356 def assign(self, n, x):
4357 r"""assign(intVector self, std::vector< int >::size_type n, std::vector< int >::value_type const & x)"""
4358 return _pcbnew.intVector_assign(self, n, x)
4359
4360 def resize(self, *args):
4361 r"""
4362 resize(intVector self, std::vector< int >::size_type new_size)
4363 resize(intVector self, std::vector< int >::size_type new_size, std::vector< int >::value_type const & x)
4364 """
4365 return _pcbnew.intVector_resize(self, *args)
4366
4367 def insert(self, *args):
4368 r"""
4369 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::value_type const & x) -> std::vector< int >::iterator
4370 insert(intVector self, std::vector< int >::iterator pos, std::vector< int >::size_type n, std::vector< int >::value_type const & x)
4371 """
4372 return _pcbnew.intVector_insert(self, *args)
4373
4374 def reserve(self, n):
4375 r"""reserve(intVector self, std::vector< int >::size_type n)"""
4376 return _pcbnew.intVector_reserve(self, n)
4377
4378 def capacity(self):
4379 r"""capacity(intVector self) -> std::vector< int >::size_type"""
4380 return _pcbnew.intVector_capacity(self)
4381 __swig_destroy__ = _pcbnew.delete_intVector
4382
4383# Register intVector in _pcbnew:
4384_pcbnew.intVector_swigregister(intVector)
4385
4387 r"""Proxy of C++ std::map< std::string,UTF8 > class."""
4388
4389 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4390 __repr__ = _swig_repr
4391
4392 def iterator(self):
4393 r"""iterator(str_utf8_Map self) -> SwigPyIterator"""
4394 return _pcbnew.str_utf8_Map_iterator(self)
4395 def __iter__(self):
4396 return self.iterator()
4397
4398 def __nonzero__(self):
4399 r"""__nonzero__(str_utf8_Map self) -> bool"""
4400 return _pcbnew.str_utf8_Map___nonzero__(self)
4401
4402 def __bool__(self):
4403 r"""__bool__(str_utf8_Map self) -> bool"""
4404 return _pcbnew.str_utf8_Map___bool__(self)
4405
4406 def __len__(self):
4407 r"""__len__(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4408 return _pcbnew.str_utf8_Map___len__(self)
4409 def __iter__(self):
4410 return self.key_iterator()
4411 def iterkeys(self):
4412 return self.key_iterator()
4413 def itervalues(self):
4414 return self.value_iterator()
4415 def iteritems(self):
4416 return self.iterator()
4417
4418 def __getitem__(self, key):
4419 r"""__getitem__(str_utf8_Map self, string key) -> UTF8"""
4420 return _pcbnew.str_utf8_Map___getitem__(self, key)
4421
4422 def __delitem__(self, key):
4423 r"""__delitem__(str_utf8_Map self, string key)"""
4424 return _pcbnew.str_utf8_Map___delitem__(self, key)
4425
4426 def has_key(self, key):
4427 r"""has_key(str_utf8_Map self, string key) -> bool"""
4428 return _pcbnew.str_utf8_Map_has_key(self, key)
4429
4430 def keys(self):
4431 r"""keys(str_utf8_Map self) -> PyObject *"""
4432 return _pcbnew.str_utf8_Map_keys(self)
4433
4434 def values(self):
4435 r"""values(str_utf8_Map self) -> PyObject *"""
4436 return _pcbnew.str_utf8_Map_values(self)
4437
4438 def items(self):
4439 r"""items(str_utf8_Map self) -> PyObject *"""
4440 return _pcbnew.str_utf8_Map_items(self)
4441
4442 def __contains__(self, key):
4443 r"""__contains__(str_utf8_Map self, string key) -> bool"""
4444 return _pcbnew.str_utf8_Map___contains__(self, key)
4445
4446 def key_iterator(self):
4447 r"""key_iterator(str_utf8_Map self) -> SwigPyIterator"""
4448 return _pcbnew.str_utf8_Map_key_iterator(self)
4449
4451 r"""value_iterator(str_utf8_Map self) -> SwigPyIterator"""
4452 return _pcbnew.str_utf8_Map_value_iterator(self)
4453
4454 def __setitem__(self, *args):
4455 r"""
4456 __setitem__(str_utf8_Map self, string key)
4457 __setitem__(str_utf8_Map self, string key, UTF8 x)
4458 """
4459 return _pcbnew.str_utf8_Map___setitem__(self, *args)
4460
4461 def asdict(self):
4462 r"""asdict(str_utf8_Map self) -> PyObject *"""
4463 return _pcbnew.str_utf8_Map_asdict(self)
4464
4465 def __init__(self, *args):
4466 r"""
4467 __init__(str_utf8_Map self, std::less< std::basic_string< char,std::char_traits< char >,std::allocator< char > > > const & other) -> str_utf8_Map
4468 __init__(str_utf8_Map self) -> str_utf8_Map
4469 __init__(str_utf8_Map self, str_utf8_Map other) -> str_utf8_Map
4470 """
4471 _pcbnew.str_utf8_Map_swiginit(self, _pcbnew.new_str_utf8_Map(*args))
4472
4473 def empty(self):
4474 r"""empty(str_utf8_Map self) -> bool"""
4475 return _pcbnew.str_utf8_Map_empty(self)
4476
4477 def size(self):
4478 r"""size(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4479 return _pcbnew.str_utf8_Map_size(self)
4480
4481 def swap(self, v):
4482 r"""swap(str_utf8_Map self, str_utf8_Map v)"""
4483 return _pcbnew.str_utf8_Map_swap(self, v)
4484
4485 def begin(self):
4486 r"""begin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4487 return _pcbnew.str_utf8_Map_begin(self)
4488
4489 def end(self):
4490 r"""end(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4491 return _pcbnew.str_utf8_Map_end(self)
4492
4493 def rbegin(self):
4494 r"""rbegin(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4495 return _pcbnew.str_utf8_Map_rbegin(self)
4496
4497 def rend(self):
4498 r"""rend(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::reverse_iterator"""
4499 return _pcbnew.str_utf8_Map_rend(self)
4500
4501 def clear(self):
4502 r"""clear(str_utf8_Map self)"""
4503 return _pcbnew.str_utf8_Map_clear(self)
4504
4505 def get_allocator(self):
4506 r"""get_allocator(str_utf8_Map self) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::allocator_type"""
4507 return _pcbnew.str_utf8_Map_get_allocator(self)
4508
4509 def count(self, x):
4510 r"""count(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type"""
4511 return _pcbnew.str_utf8_Map_count(self, x)
4512
4513 def erase(self, *args):
4514 r"""
4515 erase(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::size_type
4516 erase(str_utf8_Map self, std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator position)
4517 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)
4518 """
4519 return _pcbnew.str_utf8_Map_erase(self, *args)
4520
4521 def find(self, x):
4522 r"""find(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4523 return _pcbnew.str_utf8_Map_find(self, x)
4524
4525 def lower_bound(self, x):
4526 r"""lower_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4527 return _pcbnew.str_utf8_Map_lower_bound(self, x)
4528
4529 def upper_bound(self, x):
4530 r"""upper_bound(str_utf8_Map self, string x) -> std::map< std::basic_string< char,std::char_traits< char >,std::allocator< char > >,UTF8 >::iterator"""
4531 return _pcbnew.str_utf8_Map_upper_bound(self, x)
4532 __swig_destroy__ = _pcbnew.delete_str_utf8_Map
4533
4534# Register str_utf8_Map in _pcbnew:
4535_pcbnew.str_utf8_Map_swigregister(str_utf8_Map)
4536
4537
4538
4539KICAD_PLUGINS={} # the list of loaded footprint wizards
4540
4541""" the list of not loaded python scripts
4542 (usually because there is a syntax error in python script)
4543 this is the python script full filenames list.
4544 filenames are separated by '\n'
4545"""
4546NOT_LOADED_WIZARDS=""
4547
4548""" the list of paths used to search python scripts.
4549 Stored here to be displayed on request in Pcbnew
4550 paths are separated by '\n'
4551"""
4552PLUGIN_DIRECTORIES_SEARCH=""
4553
4554"""
4555 the trace of errors during execution of footprint wizards scripts
4556 Warning: strings (internally unicode) are returned as UTF-8 compatible C strings
4557"""
4558
4559FULL_BACK_TRACE=""
4560
4561def GetUnLoadableWizards():
4562 global NOT_LOADED_WIZARDS
4563 import sys
4564
4565 if sys.version_info[0] < 3:
4566 utf8_str = NOT_LOADED_WIZARDS.encode( 'UTF-8' )
4567 else:
4568 utf8_str = NOT_LOADED_WIZARDS
4569
4570 return utf8_str
4571
4573 global PLUGIN_DIRECTORIES_SEARCH
4574 import sys
4575
4576 if sys.version_info[0] < 3:
4577 utf8_str = PLUGIN_DIRECTORIES_SEARCH.encode( 'UTF-8' )
4578 else:
4579 utf8_str = PLUGIN_DIRECTORIES_SEARCH
4580
4581 return utf8_str
4582
4584 global FULL_BACK_TRACE # Already correct format
4585 return FULL_BACK_TRACE
4586
4587
4588def LoadPluginModule(Dirname, ModuleName, FileName):
4589 """
4590 Load the plugin module named ModuleName located in the folder Dirname.
4591 The module can be either inside a file called FileName or a subdirectory
4592 called FileName that contains a __init__.py file.
4593 If this module cannot be loaded, its name is stored in failed_wizards_list
4594 and the error trace is stored in FULL_BACK_TRACE
4595 """
4596 import os
4597 import sys
4598 import traceback
4599
4600 global NOT_LOADED_WIZARDS
4601 global FULL_BACK_TRACE
4602 global KICAD_PLUGINS
4603
4604 try: # If there is an error loading the script, skip it
4605
4606 module_filename = os.path.join( Dirname, FileName )
4607 mtime = os.path.getmtime( module_filename )
4608 mods_before = set( sys.modules )
4609
4610 if ModuleName in KICAD_PLUGINS:
4611 plugin = KICAD_PLUGINS[ModuleName]
4612
4613 for dependency in plugin["dependencies"]:
4614 if dependency in sys.modules:
4615 del sys.modules[dependency]
4616
4617 mods_before = set( sys.modules )
4618
4619 if sys.version_info >= (3,0,0):
4620 import importlib
4621 mod = importlib.import_module( ModuleName )
4622 else:
4623 mod = __import__( ModuleName, locals(), globals() )
4624
4625 mods_after = set( sys.modules ).difference( mods_before )
4626 dependencies = [m for m in mods_after if m.startswith(ModuleName)]
4627
4628 KICAD_PLUGINS[ModuleName]={ "filename":module_filename,
4629 "modification_time":mtime,
4630 "ModuleName":mod,
4631 "dependencies": dependencies }
4632
4633 except:
4634 if ModuleName in KICAD_PLUGINS:
4635 del KICAD_PLUGINS[ModuleName]
4636
4637 if NOT_LOADED_WIZARDS != "" :
4638 NOT_LOADED_WIZARDS += "\n"
4639 NOT_LOADED_WIZARDS += module_filename
4640 FULL_BACK_TRACE += traceback.format_exc()
4641
4642
4643def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None):
4644 """
4645 Initialise Scripting/Plugin python environment and load plugins.
4646
4647 Arguments:
4648 Note: bundlepath and userpath are given utf8 encoded, to be compatible with asimple C string
4649 bundlepath -- The path to the bundled scripts.
4650 The bundled Plugins are relative to this path, in the
4651 "plugins" subdirectory.
4652 WARNING: bundlepath must use '/' as path separator, and not '\'
4653 because it creates issues:
4654 \n and \r are seen as a escaped seq when passing this string to this method
4655 I am thinking this is due to the fact LoadPlugins is called from C++ code by
4656 PyRun_SimpleString()
4657
4658 NOTE: These are all of the possible "default" search paths for kicad
4659 python scripts. These paths will ONLY be added to the python
4660 search path ONLY IF they already exist.
4661
4662 The Scripts bundled with the KiCad installation:
4663 <bundlepath>/
4664 <bundlepath>/plugins/
4665
4666 The Scripts relative to the KiCad Users configuration:
4667 <userpath>/
4668 <userpath>/plugins/
4669
4670 The plugins from 3rd party packages:
4671 $KICAD_3RD_PARTY/plugins/
4672 """
4673 import os
4674 import sys
4675 import traceback
4676 import pcbnew
4677
4678 if sys.version_info >= (3,3,0):
4679 import importlib
4680 importlib.invalidate_caches()
4681
4682 """
4683 bundlepath and userpath are strings utf-8 encoded (compatible "C" strings).
4684 So convert these utf8 encoding to unicode strings to avoid any encoding issue.
4685 """
4686 try:
4687 bundlepath = bundlepath.decode( 'UTF-8' )
4688 userpath = userpath.decode( 'UTF-8' )
4689 thirdpartypath = thirdpartypath.decode( 'UTF-8' )
4690 except AttributeError:
4691 pass
4692
4694 plugin_directories=[]
4695
4696 """
4697 To be consistent with others paths, on windows, convert the unix '/' separator
4698 to the windows separator, although using '/' works
4699 """
4700 if sys.platform.startswith('win32'):
4701 if bundlepath:
4702 bundlepath = bundlepath.replace("/","\\")
4703 if thirdpartypath:
4704 thirdpartypath = thirdpartypath.replace("/","\\")
4705
4706 if bundlepath:
4707 plugin_directories.append(bundlepath)
4708 plugin_directories.append(os.path.join(bundlepath, 'plugins'))
4709
4710 if config_path:
4711 plugin_directories.append(os.path.join(config_path, 'scripting'))
4712 plugin_directories.append(os.path.join(config_path, 'scripting', 'plugins'))
4713
4714 if userpath:
4715 plugin_directories.append(userpath)
4716 plugin_directories.append(os.path.join(userpath, 'plugins'))
4717
4718 if thirdpartypath:
4719 plugin_directories.append(thirdpartypath)
4720
4721 global PLUGIN_DIRECTORIES_SEARCH
4722 PLUGIN_DIRECTORIES_SEARCH=""
4723 for plugins_dir in plugin_directories: # save search path list for later use
4724 if PLUGIN_DIRECTORIES_SEARCH != "" :
4725 PLUGIN_DIRECTORIES_SEARCH += "\n"
4726 PLUGIN_DIRECTORIES_SEARCH += plugins_dir
4727
4728 global FULL_BACK_TRACE
4729 FULL_BACK_TRACE="" # clear any existing trace
4730
4731 global NOT_LOADED_WIZARDS
4732 NOT_LOADED_WIZARDS = "" # save not loaded wizards names list for later use
4733
4734 global KICAD_PLUGINS
4735
4736 for plugins_dir in plugin_directories:
4737 if not os.path.isdir( plugins_dir ):
4738 continue
4739
4740 if plugins_dir not in sys.path:
4741 sys.path.append( plugins_dir )
4742
4743 for module in os.listdir(plugins_dir):
4744 fullPath = os.path.join( plugins_dir, module )
4745
4746 if os.path.isdir( fullPath ):
4747 if os.path.exists( os.path.join( fullPath, '__init__.py' ) ):
4748 LoadPluginModule( plugins_dir, module, module )
4749 else:
4750 if NOT_LOADED_WIZARDS != "" :
4751 NOT_LOADED_WIZARDS += "\n"
4752 NOT_LOADED_WIZARDS += 'Skip subdir ' + fullPath
4753 continue
4754
4755 if module == '__init__.py' or module[-3:] != '.py':
4756 continue
4757
4758 LoadPluginModule( plugins_dir, module[:-3], module )
4759
4760
4762 def __init__(self):
4763 pass
4764
4765 def register(self):
4766 import inspect
4767 import os
4768
4769 if isinstance(self,FilePlugin):
4770 pass # register to file plugins in C++
4771
4772 if isinstance(self,FootprintWizardPlugin):
4773 PYTHON_FOOTPRINT_WIZARD_LIST.register_wizard(self)
4774 return
4775
4776 if isinstance(self,ActionPlugin):
4777 """
4778 Get path to .py or .pyc that has definition of plugin class.
4779 If path is binary but source also exists, assume definition is in source.
4780 """
4781 self.__plugin_path = inspect.getfile(self.__class__)
4782 if self.__plugin_path.endswith('.pyc') and os.path.isfile(self.__plugin_path[:-1]):
4783 self.__plugin_path = self.__plugin_path[:-1]
4784 self.__plugin_path = self.__plugin_path + '/' + self.__class__.__name__
4785 PYTHON_ACTION_PLUGINS.register_action(self)
4786 return
4787
4788 return
4789
4790 def deregister(self):
4791 if isinstance(self,FilePlugin):
4792 pass # deregister to file plugins in C++
4793
4794 if isinstance(self,FootprintWizardPlugin):
4795 PYTHON_FOOTPRINT_WIZARD_LIST.deregister_wizard(self)
4796 return
4797
4798 if isinstance(self,ActionPlugin):
4799 PYTHON_ACTION_PLUGINS.deregister_action(self)
4800 return
4801
4802 return
4803
4804 def GetPluginPath( self ):
4805 return self.__plugin_path
4806
4807
4809 def __init__(self):
4810 KiCadPlugin.__init__(self)
4811
4812
4813from math import ceil, floor, sqrt
4814
4815uMM = "mm" # Millimetres
4816uMils = "mils" # Mils
4817uFloat = "float" # Natural number units (dimensionless)
4818uInteger = "integer" # Integer (no decimals, numeric, dimensionless)
4819uBool = "bool" # Boolean value
4820uRadians = "radians" # Angular units (radians)
4821uDegrees = "degrees" # Angular units (degrees)
4822uPercent = "%" # Percent (0% -> 100%)
4823uString = "string" # Raw string
4824
4825uNumeric = [uMM, uMils, uFloat, uInteger, uDegrees, uRadians, uPercent] # List of numeric types
4826uUnits = [uMM, uMils, uFloat, uInteger, uBool, uDegrees, uRadians, uPercent, uString] # List of allowable types
4827
4829 _true = ['true','t','y','yes','on','1',1,]
4830 _false = ['false','f','n','no','off','0',0,'',None]
4831
4832 _bools = _true + _false
4833
4834 def __init__(self, page, name, units, default, **kwarg):
4835 self.page = page
4836 self.name = name
4837 self.hint = kwarg.get('hint','') # Parameter hint (shown as mouse-over text)
4838 self.designator = kwarg.get('designator',' ') # Parameter designator such as "e, D, p" (etc)
4839
4840 if units.lower() in uUnits:
4841 self.units = units.lower()
4842 elif units.lower() == 'percent':
4843 self.units = uPercent
4844 elif type(units) in [list, tuple]: # Convert a list of options into a single string
4845 self.units = ",".join([str(el).strip() for el in units])
4846 else:
4847 self.units = units
4848
4849 self.multiple = int(kwarg.get('multiple',1)) # Check integer values are multiples of this number
4850 self.min_value = kwarg.get('min_value',None) # Check numeric values are above or equal to this number
4851 self.max_value = kwarg.get('max_value',None) # Check numeric values are below or equal to this number
4852
4853 self.SetValue(default)
4854 self.default = self.raw_value # Save value as default
4855
4856 def ClearErrors(self):
4857 self.error_list = []
4858
4859 def AddError(self, err, info=None):
4860
4861 if err in self.error_list: # prevent duplicate error messages
4862 return
4863 if info is not None:
4864 err = err + " (" + str(info) + ")"
4865
4866 self.error_list.append(err)
4867
4868 def Check(self, min_value=None, max_value=None, multiple=None, info=None):
4869
4870 if min_value is None:
4871 min_value = self.min_value
4872 if max_value is None:
4873 max_value = self.max_value
4874 if multiple is None:
4875 multiple = self.multiple
4876
4877 if self.units not in uUnits and ',' not in self.units: # Allow either valid units or a list of strings
4878 self.AddError("type '{t}' unknown".format(t=self.units),info)
4879 self.AddError("Allowable types: " + str(self.units),info)
4880
4881 if self.units in uNumeric:
4882 try:
4883 to_num = float(self.raw_value)
4884
4885 if min_value is not None: # Check minimum value if it is present
4886 if to_num < min_value:
4887 self.AddError("value '{v}' is below minimum ({m})".format(v=self.raw_value,m=min_value),info)
4888
4889 if max_value is not None: # Check maximum value if it is present
4890 if to_num > max_value:
4891 self.AddError("value '{v}' is above maximum ({m})".format(v=self.raw_value,m=max_value),info)
4892
4893 except:
4894 self.AddError("value '{v}' is not of type '{t}'".format(v = self.raw_value, t=self.units),info)
4895
4896 if self.units == uInteger: # Perform integer specific checks
4897 try:
4898 to_int = int(self.raw_value)
4899
4900 if multiple is not None and multiple > 1:
4901 if (to_int % multiple) > 0:
4902 self.AddError("value '{v}' is not a multiple of {m}".format(v=self.raw_value,m=multiple),info)
4903 except:
4904 self.AddError("value '{v}' is not an integer".format(v=self.raw_value),info)
4905
4906 if self.units == uBool: # Check that the value is of a correct boolean format
4907 if self.raw_value in [True,False] or str(self.raw_value).lower() in self._bools:
4908 pass
4909 else:
4910 self.AddError("value '{v}' is not a boolean value".format(v = self.raw_value),info)
4911
4912 @property
4913 def value(self): # Return the current value, converted to appropriate units (from string representation) if required
4914 v = str(self.raw_value) # Enforce string type for known starting point
4915
4916 if self.units == uInteger: # Integer values
4917 return int(v)
4918 elif self.units in uNumeric: # Any values that use floating points
4919 v = v.replace(",",".") # Replace "," separators with "."
4920 v = float(v)
4921
4922 if self.units == uMM: # Convert from millimetres to nanometres
4923 return FromMM(v)
4924
4925 elif self.units == uMils: # Convert from mils to nanometres
4926 return FromMils(v)
4927
4928 else: # Any other floating-point values
4929 return v
4930
4931 elif self.units == uBool:
4932 if v.lower() in self._true:
4933 return True
4934 else:
4935 return False
4936 else:
4937 return v
4938
4939 def DefaultValue(self): # Reset the value of the parameter to its default
4940 self.raw_value = str(self.default)
4941
4942 def SetValue(self, new_value): # Update the value
4943 new_value = str(new_value)
4944
4945 if len(new_value.strip()) == 0:
4946 if not self.units in [uString, uBool]:
4947 return # Ignore empty values unless for strings or bools
4948
4949 if self.units == uBool: # Enforce the same boolean representation as is used in KiCad
4950 new_value = "1" if new_value.lower() in self._true else "0"
4951 elif self.units in uNumeric:
4952 new_value = new_value.replace(",", ".") # Enforce decimal point separators
4953 elif ',' in self.units: # Select from a list of values
4954 if new_value not in self.units.split(','):
4955 new_value = self.units.split(',')[0]
4956
4957 self.raw_value = new_value
4958
4959 def __str__(self): # pretty-print the parameter
4960
4961 s = self.name + ": " + str(self.raw_value)
4962
4963 if self.units in [uMM, uMils, uPercent, uRadians, uDegrees]:
4964 s += self.units
4965 elif self.units == uBool: # Special case for Boolean values
4966 s = self.name + ": {b}".format(b = "True" if self.value else "False")
4967 elif self.units == uString:
4968 s = self.name + ": '" + self.raw_value + "'"
4969
4970 return s
4971
4972
4974 def __init__(self):
4975 KiCadPlugin.__init__(self)
4976 self.defaults()
4977
4978 def defaults(self):
4979 self.module = None
4980 self.params = [] # List of added parameters that observes addition order
4981
4982 self.name = "KiCad FP Wizard"
4983 self.description = "Undefined Footprint Wizard plugin"
4984 self.image = ""
4986
4987 def AddParam(self, page, name, unit, default, **kwarg):
4988
4989 if self.GetParam(page,name) is not None: # Param already exists!
4990 return
4991
4992 param = FootprintWizardParameter(page, name, unit, default, **kwarg) # Create a new parameter
4993 self.params.append(param)
4994
4995 @property
4996 def parameters(self): # This is a helper function that returns a nested (unordered) dict of the VALUES of parameters
4997 pages = {} # Page dict
4998 for p in self.params:
4999 if p.page not in pages:
5000 pages[p.page] = {}
5001
5002 pages[p.page][p.name] = p.value # Return the 'converted' value (convert from string to actual useful units)
5003
5004 return pages
5005
5006 @property
5007 def values(self): # Same as above
5008 return self.parameters
5009
5010 def ResetWizard(self): # Reset all parameters to default values
5011 for p in self.params:
5012 p.DefaultValue()
5013
5014 def GetName(self): # Return the name of this wizard
5015 return self.name
5016
5017 def GetImage(self): # Return the filename of the preview image associated with this wizard
5018 return self.image
5019
5020 def GetDescription(self): # Return the description text
5021 return self.description
5022
5023 def GetValue(self):
5024 raise NotImplementedError
5025
5027 return "REF" # Default reference prefix for any footprint
5028
5029 def GetParam(self, page, name): # Grab a parameter
5030 for p in self.params:
5031 if p.page == page and p.name == name:
5032 return p
5033
5034 return None
5035
5036 def CheckParam(self, page, name, **kwarg):
5037 self.GetParam(page,name).Check(**kwarg)
5038
5039 def AnyErrors(self):
5040 return any([len(p.error_list) > 0 for p in self.params])
5041
5042 @property
5043 def pages(self): # Return an (ordered) list of the available page names
5044 page_list = []
5045 for p in self.params:
5046 if p.page not in page_list:
5047 page_list.append(p.page)
5048
5049 return page_list
5050
5051 def GetNumParameterPages(self): # Return the number of parameter pages
5052 return len(self.pages)
5053
5054 def GetParameterPageName(self,page_n): # Return the name of a page at a given index
5055 return self.pages[page_n]
5056
5057 def GetParametersByPageName(self, page_name): # Return a list of parameters on a given page
5058 params = []
5059
5060 for p in self.params:
5061 if p.page == page_name:
5062 params.append(p)
5063
5064 return params
5065
5066 def GetParametersByPageIndex(self, page_index): # Return an ordered list of parameters on a given page
5067 return self.GetParametersByPageName(self.GetParameterPageName(page_index))
5068
5069 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
5070 params = self.GetParametersByPageIndex(page_index)
5071 return [p.designator for p in params]
5072
5073 def GetParameterNames(self,page_index): # Return the list of names associated with a given page
5074 params = self.GetParametersByPageIndex(page_index)
5075 return [p.name for p in params]
5076
5077 def GetParameterValues(self,page_index): # Return the list of values associated with a given page
5078 params = self.GetParametersByPageIndex(page_index)
5079 return [str(p.raw_value) for p in params]
5080
5081 def GetParameterErrors(self,page_index): # Return list of errors associated with a given page
5082 params = self.GetParametersByPageIndex(page_index)
5083 return [str("\n".join(p.error_list)) for p in params]
5084
5085 def GetParameterTypes(self, page_index): # Return list of units associated with a given page
5086 params = self.GetParametersByPageIndex(page_index)
5087 return [str(p.units) for p in params]
5088
5089 def GetParameterHints(self, page_index): # Return a list of units associated with a given page
5090 params = self.GetParametersByPageIndex(page_index)
5091 return [str(p.hint) for p in params]
5092
5093 def GetParameterDesignators(self, page_index): # Return a list of designators associated with a given page
5094 params = self.GetParametersByPageIndex(page_index)
5095 return [str(p.designator) for p in params]
5096
5097 def SetParameterValues(self, page_index, list_of_values): # Update values on a given page
5098
5099 params = self.GetParametersByPageIndex(page_index)
5100
5101 for i, param in enumerate(params):
5102 if i >= len(list_of_values):
5103 break
5104 param.SetValue(list_of_values[i])
5105
5106 def GetFootprint( self ):
5107 self.BuildFootprint()
5108 return self.module
5109
5111 return
5112
5113 def GetBuildMessages( self ):
5114 return self.buildmessages
5115
5116 def Show(self):
5117 text = "Footprint Wizard Name: {name}\n".format(name=self.GetName())
5118 text += "Footprint Wizard Description: {desc}\n".format(desc=self.GetDescription())
5119
5120 n_pages = self.GetNumParameterPages()
5121
5122 text += "Pages: {n}\n".format(n=n_pages)
5123
5124 for i in range(n_pages):
5125 name = self.GetParameterPageName(i)
5126
5127 params = self.GetParametersByPageName(name)
5128
5129 text += "{name}\n".format(name=name)
5130
5131 for j in range(len(params)):
5132 text += ("\t{param}{err}\n".format(
5133 param = str(params[j]),
5134 err = ' *' if len(params[j].error_list) > 0 else ''
5135 ))
5136
5137 if self.AnyErrors():
5138 text += " * Errors exist for these parameters"
5139
5140 return text
5141
5143 def __init__( self ):
5144 KiCadPlugin.__init__( self )
5148 self.defaults()
5149
5150 def defaults( self ):
5151 self.name = "Undefined Action plugin"
5152 self.category = "Undefined"
5153 self.description = ""
5154
5155 def GetName( self ):
5156 return self.name
5157
5158 def GetCategoryName( self ):
5159 return self.category
5160
5161 def GetDescription( self ):
5162 return self.description
5163
5165 return self.show_toolbar_button
5166
5167 def GetIconFileName( self, dark ):
5168 if dark and self.dark_icon_file_name:
5169 return self.dark_icon_file_name
5170 else:
5171 return self.icon_file_name
5172
5173 def Run(self):
5174 return
5175
5176
5177
5178def KiROUND(vec):
5179 r"""KiROUND(VECTOR2D const & vec) -> VECTOR2I"""
5180 return _pcbnew.KiROUND(vec)
5181
5182def BOX2ISafe(*args):
5183 r"""
5184 BOX2ISafe(BOX2D const & aInput) -> BOX2I
5185 BOX2ISafe(VECTOR2D const & aPos, VECTOR2D const & aSize) -> BOX2I
5186 """
5187 return _pcbnew.BOX2ISafe(*args)
5189 r"""Proxy of C++ VECTOR2< int > class."""
5190
5191 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5192 __repr__ = _swig_repr
5193 x = property(_pcbnew.VECTOR2I_x_get, _pcbnew.VECTOR2I_x_set, doc=r"""x : int""")
5194 y = property(_pcbnew.VECTOR2I_y_get, _pcbnew.VECTOR2I_y_set, doc=r"""y : int""")
5195
5196 def __init__(self, *args):
5197 r"""
5198 __init__(VECTOR2I self) -> VECTOR2I
5199 __init__(VECTOR2I self, int x, int y) -> VECTOR2I
5200 __init__(VECTOR2I self, VECTOR2I aVec) -> VECTOR2I
5201 """
5202 _pcbnew.VECTOR2I_swiginit(self, _pcbnew.new_VECTOR2I(*args))
5203
5204 def EuclideanNorm(self):
5205 r"""EuclideanNorm(VECTOR2I self) -> int"""
5206 return _pcbnew.VECTOR2I_EuclideanNorm(self)
5207
5209 r"""SquaredEuclideanNorm(VECTOR2I self) -> VECTOR2< int >::extended_type"""
5210 return _pcbnew.VECTOR2I_SquaredEuclideanNorm(self)
5211
5212 def Perpendicular(self):
5213 r"""Perpendicular(VECTOR2I self) -> VECTOR2I"""
5214 return _pcbnew.VECTOR2I_Perpendicular(self)
5215
5216 def Resize(self, aNewLength):
5217 r"""Resize(VECTOR2I self, int aNewLength) -> VECTOR2I"""
5218 return _pcbnew.VECTOR2I_Resize(self, aNewLength)
5219
5220 def Format(self):
5221 r"""Format(VECTOR2I self) -> string"""
5222 return _pcbnew.VECTOR2I_Format(self)
5223
5224 def Cross(self, aVector):
5225 r"""Cross(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5226 return _pcbnew.VECTOR2I_Cross(self, aVector)
5227
5228 def Dot(self, aVector):
5229 r"""Dot(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type"""
5230 return _pcbnew.VECTOR2I_Dot(self, aVector)
5231
5232 def __add__(self, *args):
5233 r"""
5234 __add__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5235 __add__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5236 """
5237 return _pcbnew.VECTOR2I___add__(self, *args)
5238
5239 def __imul__(self, *args):
5240 r"""
5241 __imul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5242 __imul__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5243 """
5244 return _pcbnew.VECTOR2I___imul__(self, *args)
5245
5246 def __iadd__(self, *args):
5247 r"""
5248 __iadd__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5249 __iadd__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5250 """
5251 return _pcbnew.VECTOR2I___iadd__(self, *args)
5252
5253 def __sub__(self, *args):
5254 r"""
5255 __sub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5256 __sub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5257 """
5258 return _pcbnew.VECTOR2I___sub__(self, *args)
5259
5260 def __isub__(self, *args):
5261 r"""
5262 __isub__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2I
5263 __isub__(VECTOR2I self, int const & aScalar) -> VECTOR2I
5264 """
5265 return _pcbnew.VECTOR2I___isub__(self, *args)
5266
5267 def __neg__(self):
5268 r"""__neg__(VECTOR2I self) -> VECTOR2I"""
5269 return _pcbnew.VECTOR2I___neg__(self)
5270
5271 def __mul__(self, *args):
5272 r"""
5273 __mul__(VECTOR2I self, VECTOR2I aVector) -> VECTOR2< int >::extended_type
5274 __mul__(VECTOR2I self, int const & aFactor) -> VECTOR2I
5275 """
5276 return _pcbnew.VECTOR2I___mul__(self, *args)
5277
5278 def __truediv__(self, *args):
5279 return _pcbnew.VECTOR2I___truediv__(self, *args)
5280 __div__ = __truediv__
5281
5282
5283
5284 def __eq__(self, aVector):
5285 r"""__eq__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5286 return _pcbnew.VECTOR2I___eq__(self, aVector)
5287
5288 def __ne__(self, aVector):
5289 r"""__ne__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5290 return _pcbnew.VECTOR2I___ne__(self, aVector)
5291
5292 def __lt__(self, aVector):
5293 r"""__lt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5294 return _pcbnew.VECTOR2I___lt__(self, aVector)
5295
5296 def __le__(self, aVector):
5297 r"""__le__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5298 return _pcbnew.VECTOR2I___le__(self, aVector)
5299
5300 def __gt__(self, aVector):
5301 r"""__gt__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5302 return _pcbnew.VECTOR2I___gt__(self, aVector)
5303
5304 def __ge__(self, aVector):
5305 r"""__ge__(VECTOR2I self, VECTOR2I aVector) -> bool"""
5306 return _pcbnew.VECTOR2I___ge__(self, aVector)
5307
5308 def Set(self, x, y):
5309 r"""Set(VECTOR2I self, long x, long y)"""
5310 return _pcbnew.VECTOR2I_Set(self, x, y)
5311
5312 def Get(self):
5313 r"""Get(VECTOR2I self) -> PyObject *"""
5314 return _pcbnew.VECTOR2I_Get(self)
5315
5316 def __eq__(self,other): return (self.x==other.x and self.y==other.y)
5317 def __ne__(self,other): return not (self==other)
5318 def __str__(self): return str(self.Get())
5319 def __repr__(self): return 'VECTOR2I'+str(self.Get())
5320 def __len__(self): return len(self.Get())
5321 def __getitem__(self, index): return self.Get()[index]
5322 def __setitem__(self, index, val):
5323 if index == 0:
5324 self.x = val
5325 elif index == 1:
5326 self.y = val
5327 else:
5328 raise IndexError
5329 def __nonzero__(self): return self.Get() != (0,0)
5330
5331
5332 __swig_destroy__ = _pcbnew.delete_VECTOR2I
5333
5334# Register VECTOR2I in _pcbnew:
5335_pcbnew.VECTOR2I_swigregister(VECTOR2I)
5336
5338 r"""Proxy of C++ VECTOR2_TRAITS< int > class."""
5339
5340 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5341 __repr__ = _swig_repr
5342
5343 def __init__(self):
5344 r"""__init__(VECTOR2I_EXTENDED_TYPE self) -> VECTOR2I_EXTENDED_TYPE"""
5345 _pcbnew.VECTOR2I_EXTENDED_TYPE_swiginit(self, _pcbnew.new_VECTOR2I_EXTENDED_TYPE())
5346 __swig_destroy__ = _pcbnew.delete_VECTOR2I_EXTENDED_TYPE
5347
5348# Register VECTOR2I_EXTENDED_TYPE in _pcbnew:
5349_pcbnew.VECTOR2I_EXTENDED_TYPE_swigregister(VECTOR2I_EXTENDED_TYPE)
5350
5352 r"""Proxy of C++ VECTOR3< double > class."""
5353
5354 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5355 __repr__ = _swig_repr
5356 ECOORD_MAX = _pcbnew.VECTOR3D_ECOORD_MAX
5357
5358 ECOORD_MIN = _pcbnew.VECTOR3D_ECOORD_MIN
5359
5360 x = property(_pcbnew.VECTOR3D_x_get, _pcbnew.VECTOR3D_x_set, doc=r"""x : double""")
5361 y = property(_pcbnew.VECTOR3D_y_get, _pcbnew.VECTOR3D_y_set, doc=r"""y : double""")
5362 z = property(_pcbnew.VECTOR3D_z_get, _pcbnew.VECTOR3D_z_set, doc=r"""z : double""")
5363
5364 def __init__(self, *args):
5365 r"""
5366 __init__(VECTOR3D self) -> VECTOR3D
5367 __init__(VECTOR3D self, double x, double y, double z) -> VECTOR3D
5368 """
5369 _pcbnew.VECTOR3D_swiginit(self, _pcbnew.new_VECTOR3D(*args))
5370
5371 def Cross(self, aVector):
5372 r"""Cross(VECTOR3D self, VECTOR3D aVector) -> VECTOR3D"""
5373 return _pcbnew.VECTOR3D_Cross(self, aVector)
5374
5375 def Dot(self, aVector):
5376 r"""Dot(VECTOR3D self, VECTOR3D aVector) -> VECTOR3< double >::extended_type"""
5377 return _pcbnew.VECTOR3D_Dot(self, aVector)
5378
5379 def EuclideanNorm(self):
5380 r"""EuclideanNorm(VECTOR3D self) -> double"""
5381 return _pcbnew.VECTOR3D_EuclideanNorm(self)
5382
5383 def Normalize(self):
5384 r"""Normalize(VECTOR3D self) -> VECTOR3D"""
5385 return _pcbnew.VECTOR3D_Normalize(self)
5386
5387 def __eq__(self, aVector):
5388 r"""__eq__(VECTOR3D self, VECTOR3D aVector) -> bool"""
5389 return _pcbnew.VECTOR3D___eq__(self, aVector)
5390
5391 def __ne__(self, aVector):
5392 r"""__ne__(VECTOR3D self, VECTOR3D aVector) -> bool"""
5393 return _pcbnew.VECTOR3D___ne__(self, aVector)
5394
5395 def __imul__(self, val):
5396 r"""__imul__(VECTOR3D self, double val) -> VECTOR3D"""
5397 return _pcbnew.VECTOR3D___imul__(self, val)
5398
5399 def __itruediv__(self, *args):
5400 return _pcbnew.VECTOR3D___itruediv__(self, *args)
5401 __idiv__ = __itruediv__
5402
5403
5404
5405 def Set(self, x, y, z):
5406 r"""Set(VECTOR3D self, double x, double y, double z)"""
5407 return _pcbnew.VECTOR3D_Set(self, x, y, z)
5408
5409 def Get(self):
5410 r"""Get(VECTOR3D self) -> PyObject *"""
5411 return _pcbnew.VECTOR3D_Get(self)
5412
5413 def __eq__(self,other): return (self.x==other.x and self.y==other.y and self.z==other.z)
5414 def __ne__(self,other): return not (self==other)
5415 def __str__(self): return str(self.Get())
5416 def __repr__(self): return 'VECTOR3D'+str(self.Get())
5417 def __len__(self): return len(self.Get())
5418 def __getitem__(self, index): return self.Get()[index]
5419 def __setitem__(self, index, val):
5420 if index == 0:
5421 self.x = val
5422 elif index == 1:
5423 self.y = val
5424 elif index == 2:
5425 self.z = val
5426 else:
5427 raise IndexError
5428 def __nonzero__(self): return self.Get() != (0, 0, 0)
5429
5430
5431 __swig_destroy__ = _pcbnew.delete_VECTOR3D
5432
5433# Register VECTOR3D in _pcbnew:
5434_pcbnew.VECTOR3D_swigregister(VECTOR3D)
5435
5437 r"""Proxy of C++ BOX2< VECTOR2I > class."""
5438
5439 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5440 __repr__ = _swig_repr
5441
5442 def __init__(self, *args):
5443 r"""
5444 __init__(BOX2I self) -> BOX2I
5445 __init__(BOX2I self, VECTOR2I aPos, VECTOR2I aSize=VECTOR2< int >(0, 0)) -> BOX2I
5446 """
5447 _pcbnew.BOX2I_swiginit(self, _pcbnew.new_BOX2I(*args))
5448
5449 def SetMaximum(self):
5450 r"""SetMaximum(BOX2I self)"""
5451 return _pcbnew.BOX2I_SetMaximum(self)
5452
5453 def Centre(self):
5454 r"""Centre(BOX2I self) -> VECTOR2I"""
5455 return _pcbnew.BOX2I_Centre(self)
5456
5457 def Move(self, aMoveVector):
5458 r"""Move(BOX2I self, VECTOR2I aMoveVector)"""
5459 return _pcbnew.BOX2I_Move(self, aMoveVector)
5460
5461 def Normalize(self):
5462 r"""Normalize(BOX2I self) -> BOX2I"""
5463 return _pcbnew.BOX2I_Normalize(self)
5464
5465 def Contains(self, *args):
5466 r"""
5467 Contains(BOX2I self, VECTOR2I aPoint) -> bool
5468 Contains(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y) -> bool
5469 Contains(BOX2I self, BOX2I aRect) -> bool
5470 """
5471 return _pcbnew.BOX2I_Contains(self, *args)
5472
5473 def GetSize(self):
5474 r"""GetSize(BOX2I self) -> VECTOR2I"""
5475 return _pcbnew.BOX2I_GetSize(self)
5476
5477 def GetX(self):
5478 r"""GetX(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5479 return _pcbnew.BOX2I_GetX(self)
5480
5481 def GetY(self):
5482 r"""GetY(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5483 return _pcbnew.BOX2I_GetY(self)
5484
5485 def GetOrigin(self):
5486 r"""GetOrigin(BOX2I self) -> VECTOR2I"""
5487 return _pcbnew.BOX2I_GetOrigin(self)
5488
5489 def GetPosition(self):
5490 r"""GetPosition(BOX2I self) -> VECTOR2I"""
5491 return _pcbnew.BOX2I_GetPosition(self)
5492
5493 def GetEnd(self):
5494 r"""GetEnd(BOX2I self) -> VECTOR2I"""
5495 return _pcbnew.BOX2I_GetEnd(self)
5496
5497 def GetWidth(self):
5498 r"""GetWidth(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5499 return _pcbnew.BOX2I_GetWidth(self)
5500
5501 def GetHeight(self):
5502 r"""GetHeight(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5503 return _pcbnew.BOX2I_GetHeight(self)
5504
5505 def GetRight(self):
5506 r"""GetRight(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5507 return _pcbnew.BOX2I_GetRight(self)
5508
5509 def GetBottom(self):
5510 r"""GetBottom(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5511 return _pcbnew.BOX2I_GetBottom(self)
5512
5513 def GetLeft(self):
5514 r"""GetLeft(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5515 return _pcbnew.BOX2I_GetLeft(self)
5516
5517 def GetTop(self):
5518 r"""GetTop(BOX2I self) -> BOX2< VECTOR2< int > >::coord_type"""
5519 return _pcbnew.BOX2I_GetTop(self)
5520
5521 def GetCenter(self):
5522 r"""GetCenter(BOX2I self) -> VECTOR2I"""
5523 return _pcbnew.BOX2I_GetCenter(self)
5524
5525 def GetSizeMax(self):
5526 r"""GetSizeMax(BOX2I self) -> int"""
5527 return _pcbnew.BOX2I_GetSizeMax(self)
5528
5529 def SetOrigin(self, *args):
5530 r"""
5531 SetOrigin(BOX2I self, VECTOR2I pos)
5532 SetOrigin(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5533 """
5534 return _pcbnew.BOX2I_SetOrigin(self, *args)
5535
5536 def SetSize(self, *args):
5537 r"""
5538 SetSize(BOX2I self, VECTOR2I size)
5539 SetSize(BOX2I self, BOX2< VECTOR2< int > >::coord_type w, BOX2< VECTOR2< int > >::coord_type h)
5540 """
5541 return _pcbnew.BOX2I_SetSize(self, *args)
5542
5543 def Offset(self, *args):
5544 r"""
5545 Offset(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy)
5546 Offset(BOX2I self, VECTOR2I offset)
5547 """
5548 return _pcbnew.BOX2I_Offset(self, *args)
5549
5550 def SetX(self, val):
5551 r"""SetX(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5552 return _pcbnew.BOX2I_SetX(self, val)
5553
5554 def SetY(self, val):
5555 r"""SetY(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5556 return _pcbnew.BOX2I_SetY(self, val)
5557
5558 def SetWidth(self, val):
5559 r"""SetWidth(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5560 return _pcbnew.BOX2I_SetWidth(self, val)
5561
5562 def SetHeight(self, val):
5563 r"""SetHeight(BOX2I self, BOX2< VECTOR2< int > >::coord_type val)"""
5564 return _pcbnew.BOX2I_SetHeight(self, val)
5565
5566 def SetEnd(self, *args):
5567 r"""
5568 SetEnd(BOX2I self, BOX2< VECTOR2< int > >::coord_type x, BOX2< VECTOR2< int > >::coord_type y)
5569 SetEnd(BOX2I self, VECTOR2I pos)
5570 """
5571 return _pcbnew.BOX2I_SetEnd(self, *args)
5572
5573 def Intersect(self, aRect):
5574 r"""Intersect(BOX2I self, BOX2I aRect) -> BOX2I"""
5575 return _pcbnew.BOX2I_Intersect(self, aRect)
5576
5577 def Intersects(self, *args):
5578 r"""
5579 Intersects(BOX2I self, BOX2I aRect) -> bool
5580 Intersects(BOX2I self, VECTOR2I aPoint1, VECTOR2I aPoint2) -> bool
5581 Intersects(BOX2I self, BOX2I aRect, EDA_ANGLE aRotation) -> bool
5582 """
5583 return _pcbnew.BOX2I_Intersects(self, *args)
5584
5585 def IntersectsCircle(self, aCenter, aRadius):
5586 r"""IntersectsCircle(BOX2I self, VECTOR2I aCenter, int const aRadius) -> bool"""
5587 return _pcbnew.BOX2I_IntersectsCircle(self, aCenter, aRadius)
5588
5589 def IntersectsCircleEdge(self, aCenter, aRadius, aWidth):
5590 r"""IntersectsCircleEdge(BOX2I self, VECTOR2I aCenter, int const aRadius, int const aWidth) -> bool"""
5591 return _pcbnew.BOX2I_IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
5592
5593 def Format(self):
5594 r"""Format(BOX2I self) -> string"""
5595 return _pcbnew.BOX2I_Format(self)
5596
5597 def Inflate(self, *args):
5598 r"""
5599 Inflate(BOX2I self, BOX2< VECTOR2< int > >::coord_type dx, BOX2< VECTOR2< int > >::coord_type dy) -> BOX2I
5600 Inflate(BOX2I self, int aDelta) -> BOX2I
5601 """
5602 return _pcbnew.BOX2I_Inflate(self, *args)
5603
5604 def Merge(self, *args):
5605 r"""
5606 Merge(BOX2I self, BOX2I aRect) -> BOX2I
5607 Merge(BOX2I self, VECTOR2I aPoint) -> BOX2I
5608 """
5609 return _pcbnew.BOX2I_Merge(self, *args)
5610
5611 def GetBoundingBoxRotated(self, aRotCenter, aAngle):
5612 r"""GetBoundingBoxRotated(BOX2I self, VECTOR2I aRotCenter, EDA_ANGLE aAngle) -> BOX2I"""
5613 return _pcbnew.BOX2I_GetBoundingBoxRotated(self, aRotCenter, aAngle)
5614
5615 def RevertYAxis(self):
5616 r"""RevertYAxis(BOX2I self)"""
5617 return _pcbnew.BOX2I_RevertYAxis(self)
5618
5619 def GetArea(self):
5620 r"""GetArea(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5621 return _pcbnew.BOX2I_GetArea(self)
5622
5623 def Diagonal(self):
5624 r"""Diagonal(BOX2I self) -> BOX2< VECTOR2< int > >::ecoord_type"""
5625 return _pcbnew.BOX2I_Diagonal(self)
5626
5627 def SquaredDistance(self, *args):
5628 r"""
5629 SquaredDistance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5630 SquaredDistance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5631 """
5632 return _pcbnew.BOX2I_SquaredDistance(self, *args)
5633
5634 def Distance(self, *args):
5635 r"""
5636 Distance(BOX2I self, VECTOR2I aP) -> BOX2< VECTOR2< int > >::ecoord_type
5637 Distance(BOX2I self, BOX2I aBox) -> BOX2< VECTOR2< int > >::ecoord_type
5638 """
5639 return _pcbnew.BOX2I_Distance(self, *args)
5640
5641 def ClosestPointTo(self, aPoint):
5642 r"""ClosestPointTo(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5643 return _pcbnew.BOX2I_ClosestPointTo(self, aPoint)
5644
5645 def FarthestPointTo(self, aPoint):
5646 r"""FarthestPointTo(BOX2I self, VECTOR2I aPoint) -> VECTOR2I"""
5647 return _pcbnew.BOX2I_FarthestPointTo(self, aPoint)
5648
5649 def __eq__(self, aOther):
5650 r"""__eq__(BOX2I self, BOX2I aOther) -> bool"""
5651 return _pcbnew.BOX2I___eq__(self, aOther)
5652
5653 def __ne__(self, aOther):
5654 r"""__ne__(BOX2I self, BOX2I aOther) -> bool"""
5655 return _pcbnew.BOX2I___ne__(self, aOther)
5656
5657 def IsValid(self):
5658 r"""IsValid(BOX2I self) -> bool"""
5659 return _pcbnew.BOX2I_IsValid(self)
5660 __swig_destroy__ = _pcbnew.delete_BOX2I
5661
5662# Register BOX2I in _pcbnew:
5663_pcbnew.BOX2I_swigregister(BOX2I)
5664
5666 r"""Proxy of C++ std::vector< VECTOR2I > class."""
5667
5668 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5669 __repr__ = _swig_repr
5670
5671 def iterator(self):
5672 r"""iterator(VECTOR_VECTOR2I self) -> SwigPyIterator"""
5673 return _pcbnew.VECTOR_VECTOR2I_iterator(self)
5674 def __iter__(self):
5675 return self.iterator()
5676
5677 def __nonzero__(self):
5678 r"""__nonzero__(VECTOR_VECTOR2I self) -> bool"""
5679 return _pcbnew.VECTOR_VECTOR2I___nonzero__(self)
5680
5681 def __bool__(self):
5682 r"""__bool__(VECTOR_VECTOR2I self) -> bool"""
5683 return _pcbnew.VECTOR_VECTOR2I___bool__(self)
5684
5685 def __len__(self):
5686 r"""__len__(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5687 return _pcbnew.VECTOR_VECTOR2I___len__(self)
5688
5689 def __getslice__(self, i, j):
5690 r"""__getslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j) -> VECTOR_VECTOR2I"""
5691 return _pcbnew.VECTOR_VECTOR2I___getslice__(self, i, j)
5692
5693 def __setslice__(self, *args):
5694 r"""
5695 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)
5696 __setslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j, VECTOR_VECTOR2I v)
5697 """
5698 return _pcbnew.VECTOR_VECTOR2I___setslice__(self, *args)
5699
5700 def __delslice__(self, i, j):
5701 r"""__delslice__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, std::vector< VECTOR2< int > >::difference_type j)"""
5702 return _pcbnew.VECTOR_VECTOR2I___delslice__(self, i, j)
5703
5704 def __delitem__(self, *args):
5705 r"""
5706 __delitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i)
5707 __delitem__(VECTOR_VECTOR2I self, PySliceObject * slice)
5708 """
5709 return _pcbnew.VECTOR_VECTOR2I___delitem__(self, *args)
5710
5711 def __getitem__(self, *args):
5712 r"""
5713 __getitem__(VECTOR_VECTOR2I self, PySliceObject * slice) -> VECTOR_VECTOR2I
5714 __getitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i) -> VECTOR2I
5715 """
5716 return _pcbnew.VECTOR_VECTOR2I___getitem__(self, *args)
5717
5718 def __setitem__(self, *args):
5719 r"""
5720 __setitem__(VECTOR_VECTOR2I self, PySliceObject * slice, VECTOR_VECTOR2I v)
5721 __setitem__(VECTOR_VECTOR2I self, PySliceObject * slice)
5722 __setitem__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::difference_type i, VECTOR2I x)
5723 """
5724 return _pcbnew.VECTOR_VECTOR2I___setitem__(self, *args)
5725
5726 def pop(self):
5727 r"""pop(VECTOR_VECTOR2I self) -> VECTOR2I"""
5728 return _pcbnew.VECTOR_VECTOR2I_pop(self)
5729
5730 def append(self, x):
5731 r"""append(VECTOR_VECTOR2I self, VECTOR2I x)"""
5732 return _pcbnew.VECTOR_VECTOR2I_append(self, x)
5733
5734 def empty(self):
5735 r"""empty(VECTOR_VECTOR2I self) -> bool"""
5736 return _pcbnew.VECTOR_VECTOR2I_empty(self)
5737
5738 def size(self):
5739 r"""size(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5740 return _pcbnew.VECTOR_VECTOR2I_size(self)
5741
5742 def swap(self, v):
5743 r"""swap(VECTOR_VECTOR2I self, VECTOR_VECTOR2I v)"""
5744 return _pcbnew.VECTOR_VECTOR2I_swap(self, v)
5745
5746 def begin(self):
5747 r"""begin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5748 return _pcbnew.VECTOR_VECTOR2I_begin(self)
5749
5750 def end(self):
5751 r"""end(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::iterator"""
5752 return _pcbnew.VECTOR_VECTOR2I_end(self)
5753
5754 def rbegin(self):
5755 r"""rbegin(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5756 return _pcbnew.VECTOR_VECTOR2I_rbegin(self)
5757
5758 def rend(self):
5759 r"""rend(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::reverse_iterator"""
5760 return _pcbnew.VECTOR_VECTOR2I_rend(self)
5761
5762 def clear(self):
5763 r"""clear(VECTOR_VECTOR2I self)"""
5764 return _pcbnew.VECTOR_VECTOR2I_clear(self)
5765
5766 def get_allocator(self):
5767 r"""get_allocator(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::allocator_type"""
5768 return _pcbnew.VECTOR_VECTOR2I_get_allocator(self)
5769
5770 def pop_back(self):
5771 r"""pop_back(VECTOR_VECTOR2I self)"""
5772 return _pcbnew.VECTOR_VECTOR2I_pop_back(self)
5773
5774 def erase(self, *args):
5775 r"""
5776 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos) -> std::vector< VECTOR2< int > >::iterator
5777 erase(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator first, std::vector< VECTOR2< int > >::iterator last) -> std::vector< VECTOR2< int > >::iterator
5778 """
5779 return _pcbnew.VECTOR_VECTOR2I_erase(self, *args)
5780
5781 def __init__(self, *args):
5782 r"""
5783 __init__(VECTOR_VECTOR2I self) -> VECTOR_VECTOR2I
5784 __init__(VECTOR_VECTOR2I self, VECTOR_VECTOR2I other) -> VECTOR_VECTOR2I
5785 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size) -> VECTOR_VECTOR2I
5786 __init__(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type size, VECTOR2I value) -> VECTOR_VECTOR2I
5787 """
5788 _pcbnew.VECTOR_VECTOR2I_swiginit(self, _pcbnew.new_VECTOR_VECTOR2I(*args))
5789
5790 def push_back(self, x):
5791 r"""push_back(VECTOR_VECTOR2I self, VECTOR2I x)"""
5792 return _pcbnew.VECTOR_VECTOR2I_push_back(self, x)
5793
5794 def front(self):
5795 r"""front(VECTOR_VECTOR2I self) -> VECTOR2I"""
5796 return _pcbnew.VECTOR_VECTOR2I_front(self)
5797
5798 def back(self):
5799 r"""back(VECTOR_VECTOR2I self) -> VECTOR2I"""
5800 return _pcbnew.VECTOR_VECTOR2I_back(self)
5801
5802 def assign(self, n, x):
5803 r"""assign(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)"""
5804 return _pcbnew.VECTOR_VECTOR2I_assign(self, n, x)
5805
5806 def resize(self, *args):
5807 r"""
5808 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size)
5809 resize(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type new_size, VECTOR2I x)
5810 """
5811 return _pcbnew.VECTOR_VECTOR2I_resize(self, *args)
5812
5813 def insert(self, *args):
5814 r"""
5815 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, VECTOR2I x) -> std::vector< VECTOR2< int > >::iterator
5816 insert(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::iterator pos, std::vector< VECTOR2< int > >::size_type n, VECTOR2I x)
5817 """
5818 return _pcbnew.VECTOR_VECTOR2I_insert(self, *args)
5819
5820 def reserve(self, n):
5821 r"""reserve(VECTOR_VECTOR2I self, std::vector< VECTOR2< int > >::size_type n)"""
5822 return _pcbnew.VECTOR_VECTOR2I_reserve(self, n)
5823
5824 def capacity(self):
5825 r"""capacity(VECTOR_VECTOR2I self) -> std::vector< VECTOR2< int > >::size_type"""
5826 return _pcbnew.VECTOR_VECTOR2I_capacity(self)
5827 __swig_destroy__ = _pcbnew.delete_VECTOR_VECTOR2I
5828
5829# Register VECTOR_VECTOR2I in _pcbnew:
5830_pcbnew.VECTOR_VECTOR2I_swigregister(VECTOR_VECTOR2I)
5831
5832CORNER_STRATEGY_ALLOW_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_ALLOW_ACUTE_CORNERS
5833
5834CORNER_STRATEGY_CHAMFER_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_CHAMFER_ACUTE_CORNERS
5835
5836CORNER_STRATEGY_ROUND_ACUTE_CORNERS = _pcbnew.CORNER_STRATEGY_ROUND_ACUTE_CORNERS
5837
5838CORNER_STRATEGY_CHAMFER_ALL_CORNERS = _pcbnew.CORNER_STRATEGY_CHAMFER_ALL_CORNERS
5839
5840CORNER_STRATEGY_ROUND_ALL_CORNERS = _pcbnew.CORNER_STRATEGY_ROUND_ALL_CORNERS
5841
5843 r"""Proxy of C++ SEG class."""
5844
5845 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5846 __repr__ = _swig_repr
5847 A = property(_pcbnew.SEG_A_get, _pcbnew.SEG_A_set, doc=r"""A : VECTOR2I""")
5848 B = property(_pcbnew.SEG_B_get, _pcbnew.SEG_B_set, doc=r"""B : VECTOR2I""")
5849
5850 def __init__(self, *args):
5851 r"""
5852 __init__(SEG self) -> SEG
5853 __init__(SEG self, int aX1, int aY1, int aX2, int aY2) -> SEG
5854 __init__(SEG self, VECTOR2I aA, VECTOR2I aB) -> SEG
5855 __init__(SEG self, VECTOR2I aA, VECTOR2I aB, int aIndex) -> SEG
5856 __init__(SEG self, SEG aSeg) -> SEG
5857 """
5858 _pcbnew.SEG_swiginit(self, _pcbnew.new_SEG(*args))
5859
5860 def __eq__(self, aSeg):
5861 r"""__eq__(SEG self, SEG aSeg) -> bool"""
5862 return _pcbnew.SEG___eq__(self, aSeg)
5863
5864 def __ne__(self, aSeg):
5865 r"""__ne__(SEG self, SEG aSeg) -> bool"""
5866 return _pcbnew.SEG___ne__(self, aSeg)
5867
5868 @staticmethod
5869 def Square(a):
5870 r"""Square(int a) -> SEG::ecoord"""
5871 return _pcbnew.SEG_Square(a)
5872
5873 def LineProject(self, aP):
5874 r"""LineProject(SEG self, VECTOR2I aP) -> VECTOR2I"""
5875 return _pcbnew.SEG_LineProject(self, aP)
5876
5877 def Side(self, aP):
5878 r"""Side(SEG self, VECTOR2I aP) -> int"""
5879 return _pcbnew.SEG_Side(self, aP)
5880
5881 def LineDistance(self, aP, aDetermineSide=False):
5882 r"""LineDistance(SEG self, VECTOR2I aP, bool aDetermineSide=False) -> int"""
5883 return _pcbnew.SEG_LineDistance(self, aP, aDetermineSide)
5884
5885 def Angle(self, aOther):
5886 r"""Angle(SEG self, SEG aOther) -> EDA_ANGLE"""
5887 return _pcbnew.SEG_Angle(self, aOther)
5888
5889 def NearestPoint(self, *args):
5890 r"""
5891 NearestPoint(SEG self, VECTOR2I aP) -> VECTOR2I
5892 NearestPoint(SEG self, SEG aSeg) -> VECTOR2I
5893 """
5894 return _pcbnew.SEG_NearestPoint(self, *args)
5895
5896 def ReflectPoint(self, aP):
5897 r"""ReflectPoint(SEG self, VECTOR2I aP) -> VECTOR2I"""
5898 return _pcbnew.SEG_ReflectPoint(self, aP)
5899
5900 def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False):
5901 r"""Intersect(SEG self, SEG aSeg, bool aIgnoreEndpoints=False, bool aLines=False) -> OPT_VECTOR2I"""
5902 return _pcbnew.SEG_Intersect(self, aSeg, aIgnoreEndpoints, aLines)
5903
5904 def Intersects(self, aSeg):
5905 r"""Intersects(SEG self, SEG aSeg) -> bool"""
5906 return _pcbnew.SEG_Intersects(self, aSeg)
5907
5908 def IntersectLines(self, aSeg):
5909 r"""IntersectLines(SEG self, SEG aSeg) -> OPT_VECTOR2I"""
5910 return _pcbnew.SEG_IntersectLines(self, aSeg)
5911
5912 def PerpendicularSeg(self, aP):
5913 r"""PerpendicularSeg(SEG self, VECTOR2I aP) -> SEG"""
5914 return _pcbnew.SEG_PerpendicularSeg(self, aP)
5915
5916 def ParallelSeg(self, aP):
5917 r"""ParallelSeg(SEG self, VECTOR2I aP) -> SEG"""
5918 return _pcbnew.SEG_ParallelSeg(self, aP)
5919
5920 def Collide(self, aSeg, aClearance, aActual=None):
5921 r"""Collide(SEG self, SEG aSeg, int aClearance, int * aActual=None) -> bool"""
5922 return _pcbnew.SEG_Collide(self, aSeg, aClearance, aActual)
5923
5924 def SquaredDistance(self, *args):
5925 r"""
5926 SquaredDistance(SEG self, SEG aSeg) -> SEG::ecoord
5927 SquaredDistance(SEG self, VECTOR2I aP) -> SEG::ecoord
5928 """
5929 return _pcbnew.SEG_SquaredDistance(self, *args)
5930
5931 def Distance(self, *args):
5932 r"""
5933 Distance(SEG self, SEG aSeg) -> int
5934 Distance(SEG self, VECTOR2I aP) -> int
5935 """
5936 return _pcbnew.SEG_Distance(self, *args)
5937
5938 def CanonicalCoefs(self, qA, qB, qC):
5939 r"""CanonicalCoefs(SEG self, SEG::ecoord & qA, SEG::ecoord & qB, SEG::ecoord & qC)"""
5940 return _pcbnew.SEG_CanonicalCoefs(self, qA, qB, qC)
5941
5942 def Collinear(self, aSeg):
5943 r"""Collinear(SEG self, SEG aSeg) -> bool"""
5944 return _pcbnew.SEG_Collinear(self, aSeg)
5945
5946 def ApproxCollinear(self, aSeg, aDistanceThreshold=1):
5947 r"""ApproxCollinear(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5948 return _pcbnew.SEG_ApproxCollinear(self, aSeg, aDistanceThreshold)
5949
5950 def ApproxParallel(self, aSeg, aDistanceThreshold=1):
5951 r"""ApproxParallel(SEG self, SEG aSeg, int aDistanceThreshold=1) -> bool"""
5952 return _pcbnew.SEG_ApproxParallel(self, aSeg, aDistanceThreshold)
5953
5954 def ApproxPerpendicular(self, aSeg):
5955 r"""ApproxPerpendicular(SEG self, SEG aSeg) -> bool"""
5956 return _pcbnew.SEG_ApproxPerpendicular(self, aSeg)
5957
5958 def Overlaps(self, aSeg):
5959 r"""Overlaps(SEG self, SEG aSeg) -> bool"""
5960 return _pcbnew.SEG_Overlaps(self, aSeg)
5961
5962 def Length(self):
5963 r"""Length(SEG self) -> int"""
5964 return _pcbnew.SEG_Length(self)
5965
5966 def SquaredLength(self):
5967 r"""SquaredLength(SEG self) -> SEG::ecoord"""
5968 return _pcbnew.SEG_SquaredLength(self)
5969
5970 def TCoef(self, aP):
5971 r"""TCoef(SEG self, VECTOR2I aP) -> SEG::ecoord"""
5972 return _pcbnew.SEG_TCoef(self, aP)
5973
5974 def Index(self):
5975 r"""Index(SEG self) -> int"""
5976 return _pcbnew.SEG_Index(self)
5977
5978 def Contains(self, *args):
5979 r"""
5980 Contains(SEG self, SEG aSeg) -> bool
5981 Contains(SEG self, VECTOR2I aP) -> bool
5982 """
5983 return _pcbnew.SEG_Contains(self, *args)
5984
5985 def Reverse(self):
5986 r"""Reverse(SEG self)"""
5987 return _pcbnew.SEG_Reverse(self)
5988
5989 def Reversed(self):
5990 r"""Reversed(SEG self) -> SEG"""
5991 return _pcbnew.SEG_Reversed(self)
5992
5993 def Center(self):
5994 r"""Center(SEG self) -> VECTOR2I"""
5995 return _pcbnew.SEG_Center(self)
5996
5997 def __lt__(self, aSeg):
5998 r"""__lt__(SEG self, SEG aSeg) -> bool"""
5999 return _pcbnew.SEG___lt__(self, aSeg)
6000 __swig_destroy__ = _pcbnew.delete_SEG
6001
6002# Register SEG in _pcbnew:
6003_pcbnew.SEG_swigregister(SEG)
6004
6006 r"""SEG_Square(int a) -> SEG::ecoord"""
6007 return _pcbnew.SEG_Square(a)
6008
6009SH_RECT = _pcbnew.SH_RECT
6010
6011SH_SEGMENT = _pcbnew.SH_SEGMENT
6012
6013SH_LINE_CHAIN = _pcbnew.SH_LINE_CHAIN
6014
6015SH_CIRCLE = _pcbnew.SH_CIRCLE
6016
6017SH_SIMPLE = _pcbnew.SH_SIMPLE
6018
6019SH_POLY_SET = _pcbnew.SH_POLY_SET
6020
6021SH_COMPOUND = _pcbnew.SH_COMPOUND
6022
6023SH_ARC = _pcbnew.SH_ARC
6024
6025SH_NULL = _pcbnew.SH_NULL
6026
6027SH_POLY_SET_TRIANGLE = _pcbnew.SH_POLY_SET_TRIANGLE
6028
6029
6031 r"""SHAPE_TYPE_asString(SHAPE_TYPE a) -> wxString"""
6032 return _pcbnew.SHAPE_TYPE_asString(a)
6034 r"""Proxy of C++ SHAPE_BASE class."""
6035
6036 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6037 __repr__ = _swig_repr
6038
6039 def __init__(self, aType):
6040 r"""__init__(SHAPE_BASE self, SHAPE_TYPE aType) -> SHAPE_BASE"""
6041 _pcbnew.SHAPE_BASE_swiginit(self, _pcbnew.new_SHAPE_BASE(aType))
6042 __swig_destroy__ = _pcbnew.delete_SHAPE_BASE
6043
6044 def Type(self):
6045 r"""Type(SHAPE_BASE self) -> SHAPE_TYPE"""
6046 return _pcbnew.SHAPE_BASE_Type(self)
6047
6048 def TypeName(self):
6049 r"""TypeName(SHAPE_BASE self) -> wxString"""
6050 return _pcbnew.SHAPE_BASE_TypeName(self)
6051
6053 r"""HasIndexableSubshapes(SHAPE_BASE self) -> bool"""
6054 return _pcbnew.SHAPE_BASE_HasIndexableSubshapes(self)
6055
6057 r"""GetIndexableSubshapeCount(SHAPE_BASE self) -> size_t"""
6058 return _pcbnew.SHAPE_BASE_GetIndexableSubshapeCount(self)
6059
6060 def GetIndexableSubshapes(self, aSubshapes):
6061 r"""GetIndexableSubshapes(SHAPE_BASE self, std::vector< SHAPE const *,std::allocator< SHAPE const * > > & aSubshapes)"""
6062 return _pcbnew.SHAPE_BASE_GetIndexableSubshapes(self, aSubshapes)
6063
6064# Register SHAPE_BASE in _pcbnew:
6065_pcbnew.SHAPE_BASE_swigregister(SHAPE_BASE)
6066
6068 r"""Proxy of C++ SHAPE class."""
6069
6070 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6071
6072 def __init__(self, *args, **kwargs):
6073 raise AttributeError("No constructor defined - class is abstract")
6074 __repr__ = _swig_repr
6075 MIN_PRECISION_IU = _pcbnew.SHAPE_MIN_PRECISION_IU
6076
6077 __swig_destroy__ = _pcbnew.delete_SHAPE
6078
6079 def Clone(self):
6080 r"""Clone(SHAPE self) -> SHAPE"""
6081 return _pcbnew.SHAPE_Clone(self)
6082
6083 def GetClearance(self, aOther):
6084 r"""GetClearance(SHAPE self, SHAPE aOther) -> int"""
6085 return _pcbnew.SHAPE_GetClearance(self, aOther)
6086
6087 def IsNull(self):
6088 r"""IsNull(SHAPE self) -> bool"""
6089 return _pcbnew.SHAPE_IsNull(self)
6090
6091 def Collide(self, *args):
6092 r"""
6093 Collide(SHAPE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6094 Collide(SHAPE self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
6095 Collide(SHAPE self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6096 Collide(SHAPE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6097 """
6098 return _pcbnew.SHAPE_Collide(self, *args)
6099
6100 def BBox(self, aClearance=0):
6101 r"""BBox(SHAPE self, int aClearance=0) -> BOX2I"""
6102 return _pcbnew.SHAPE_BBox(self, aClearance)
6103
6104 def Centre(self):
6105 r"""Centre(SHAPE self) -> VECTOR2I"""
6106 return _pcbnew.SHAPE_Centre(self)
6107
6108 def Distance(self, aP):
6109 r"""Distance(SHAPE self, VECTOR2I aP) -> int"""
6110 return _pcbnew.SHAPE_Distance(self, aP)
6111
6112 def SquaredDistance(self, aP, aOutlineOnly=False):
6113 r"""SquaredDistance(SHAPE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord"""
6114 return _pcbnew.SHAPE_SquaredDistance(self, aP, aOutlineOnly)
6115
6116 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
6117 r"""PointInside(SHAPE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
6118 return _pcbnew.SHAPE_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
6119
6120 def TransformToPolygon(self, aBuffer, aError, aErrorLoc):
6121 r"""TransformToPolygon(SHAPE self, SHAPE_POLY_SET aBuffer, int aError, ERROR_LOC aErrorLoc)"""
6122 return _pcbnew.SHAPE_TransformToPolygon(self, aBuffer, aError, aErrorLoc)
6123
6124 def Rotate(self, *args):
6125 r"""Rotate(SHAPE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6126 return _pcbnew.SHAPE_Rotate(self, *args)
6127
6128 def Move(self, aVector):
6129 r"""Move(SHAPE self, VECTOR2I aVector)"""
6130 return _pcbnew.SHAPE_Move(self, aVector)
6131
6132 def IsSolid(self):
6133 r"""IsSolid(SHAPE self) -> bool"""
6134 return _pcbnew.SHAPE_IsSolid(self)
6135
6136 def Parse(self, aStream):
6137 r"""Parse(SHAPE self, std::stringstream & aStream) -> bool"""
6138 return _pcbnew.SHAPE_Parse(self, aStream)
6139
6140 def Format(self, aCplusPlus=True):
6141 r"""Format(SHAPE self, bool aCplusPlus=True) -> string"""
6142 return _pcbnew.SHAPE_Format(self, aCplusPlus)
6143
6144 def Cast(self):
6145 shape_type = SHAPE_TYPE_asString(self.Type())
6146
6147 if shape_type == "SH_ARC":
6148 return Cast_to_SHAPE_ARC(self)
6149 elif shape_type == "SH_CIRCLE":
6150 return Cast_to_SHAPE_CIRCLE(self)
6151 elif shape_type == "SH_COMPOUND":
6152 return Cast_to_SHAPE_COMPOUND(self)
6153 elif shape_type == "SH_LINE_CHAIN":
6154 return Cast_to_SHAPE_LINE_CHAIN(self)
6155 elif shape_type == "SH_POLY_SET":
6156 return Cast_to_SHAPE_POLY_SET(self)
6157 elif shape_type == "SH_RECT":
6158 return Cast_to_SHAPE_RECT(self)
6159 elif shape_type == "SH_SEGMENT":
6160 return Cast_to_SHAPE_SEGMENT(self)
6161 elif shape_type == "SH_SIMPLE":
6162 return Cast_to_SHAPE_SIMPLE(self)
6163 else:
6164 raise TypeError("Unsupported shape class: %s" % shape_type)
6165
6166
6167# Register SHAPE in _pcbnew:
6168_pcbnew.SHAPE_swigregister(SHAPE)
6169
6171 r"""Proxy of C++ SHAPE_LINE_CHAIN_BASE class."""
6172
6173 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6174
6175 def __init__(self, *args, **kwargs):
6176 raise AttributeError("No constructor defined - class is abstract")
6177 __repr__ = _swig_repr
6178 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN_BASE
6179
6180 def Collide(self, *args):
6181 r"""
6182 Collide(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6183 Collide(SHAPE_LINE_CHAIN_BASE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6184 """
6185 return _pcbnew.SHAPE_LINE_CHAIN_BASE_Collide(self, *args)
6186
6187 def SquaredDistance(self, aP, aOutlineOnly=False):
6188 r"""SquaredDistance(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, bool aOutlineOnly=False) -> SEG::ecoord"""
6189 return _pcbnew.SHAPE_LINE_CHAIN_BASE_SquaredDistance(self, aP, aOutlineOnly)
6190
6191 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
6192 r"""PointInside(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
6193 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
6194
6195 def PointOnEdge(self, aP, aAccuracy=0):
6196 r"""PointOnEdge(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> bool"""
6197 return _pcbnew.SHAPE_LINE_CHAIN_BASE_PointOnEdge(self, aP, aAccuracy)
6198
6199 def EdgeContainingPoint(self, aP, aAccuracy=0):
6200 r"""EdgeContainingPoint(SHAPE_LINE_CHAIN_BASE self, VECTOR2I aP, int aAccuracy=0) -> int"""
6201 return _pcbnew.SHAPE_LINE_CHAIN_BASE_EdgeContainingPoint(self, aP, aAccuracy)
6202
6203 def GetPoint(self, aIndex):
6204 r"""GetPoint(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> VECTOR2I"""
6205 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPoint(self, aIndex)
6206
6207 def GetSegment(self, aIndex):
6208 r"""GetSegment(SHAPE_LINE_CHAIN_BASE self, int aIndex) -> SEG"""
6209 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegment(self, aIndex)
6210
6211 def GetPointCount(self):
6212 r"""GetPointCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
6213 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetPointCount(self)
6214
6216 r"""GetSegmentCount(SHAPE_LINE_CHAIN_BASE self) -> size_t"""
6217 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetSegmentCount(self)
6218
6219 def IsClosed(self):
6220 r"""IsClosed(SHAPE_LINE_CHAIN_BASE self) -> bool"""
6221 return _pcbnew.SHAPE_LINE_CHAIN_BASE_IsClosed(self)
6222
6223 def GetCachedBBox(self):
6224 r"""GetCachedBBox(SHAPE_LINE_CHAIN_BASE self) -> BOX2I"""
6225 return _pcbnew.SHAPE_LINE_CHAIN_BASE_GetCachedBBox(self)
6226
6227# Register SHAPE_LINE_CHAIN_BASE in _pcbnew:
6228_pcbnew.SHAPE_LINE_CHAIN_BASE_swigregister(SHAPE_LINE_CHAIN_BASE)
6229
6231 r"""Proxy of C++ SHAPE_ARC class."""
6232
6233 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6234
6235 def __init__(self, *args, **kwargs):
6236 raise AttributeError("No constructor defined - class is abstract")
6237 __repr__ = _swig_repr
6238 __swig_destroy__ = _pcbnew.delete_SHAPE_ARC
6239
6240 def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0):
6241 r"""ConstructFromStartEndAngle(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, EDA_ANGLE aAngle, double aWidth=0) -> SHAPE_ARC"""
6242 return _pcbnew.SHAPE_ARC_ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth)
6243
6244 def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0):
6245 r"""ConstructFromStartEndCenter(SHAPE_ARC self, VECTOR2I aStart, VECTOR2I aEnd, VECTOR2I aCenter, bool aClockwise=False, double aWidth=0) -> SHAPE_ARC"""
6246 return _pcbnew.SHAPE_ARC_ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise, aWidth)
6247
6248 def GetP0(self):
6249 r"""GetP0(SHAPE_ARC self) -> VECTOR2I"""
6250 return _pcbnew.SHAPE_ARC_GetP0(self)
6251
6252 def GetP1(self):
6253 r"""GetP1(SHAPE_ARC self) -> VECTOR2I"""
6254 return _pcbnew.SHAPE_ARC_GetP1(self)
6255
6256 def GetArcMid(self):
6257 r"""GetArcMid(SHAPE_ARC self) -> VECTOR2I"""
6258 return _pcbnew.SHAPE_ARC_GetArcMid(self)
6259
6260 def GetCenter(self):
6261 r"""GetCenter(SHAPE_ARC self) -> VECTOR2I"""
6262 return _pcbnew.SHAPE_ARC_GetCenter(self)
6263
6264 def BBox(self, aClearance=0):
6265 r"""BBox(SHAPE_ARC self, int aClearance=0) -> BOX2I"""
6266 return _pcbnew.SHAPE_ARC_BBox(self, aClearance)
6267
6268 def NearestPoint(self, aP):
6269 r"""NearestPoint(SHAPE_ARC self, VECTOR2I aP) -> VECTOR2I"""
6270 return _pcbnew.SHAPE_ARC_NearestPoint(self, aP)
6271
6272 def Collide(self, *args):
6273 r"""
6274 Collide(SHAPE_ARC self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6275 Collide(SHAPE_ARC self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6276 Collide(SHAPE_ARC self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6277 """
6278 return _pcbnew.SHAPE_ARC_Collide(self, *args)
6279
6280 def IntersectLine(self, aSeg, aIpsBuffer):
6281 r"""IntersectLine(SHAPE_ARC self, SEG aSeg, VECTOR_VECTOR2I aIpsBuffer) -> int"""
6282 return _pcbnew.SHAPE_ARC_IntersectLine(self, aSeg, aIpsBuffer)
6283
6284 def Intersect(self, aArc, aIpsBuffer):
6285 r"""Intersect(SHAPE_ARC self, SHAPE_ARC aArc, VECTOR_VECTOR2I aIpsBuffer) -> int"""
6286 return _pcbnew.SHAPE_ARC_Intersect(self, aArc, aIpsBuffer)
6287
6288 def SetWidth(self, aWidth):
6289 r"""SetWidth(SHAPE_ARC self, int aWidth)"""
6290 return _pcbnew.SHAPE_ARC_SetWidth(self, aWidth)
6291
6292 def GetWidth(self):
6293 r"""GetWidth(SHAPE_ARC self) -> int"""
6294 return _pcbnew.SHAPE_ARC_GetWidth(self)
6295
6296 def Mirror(self, *args):
6297 r"""
6298 Mirror(SHAPE_ARC self, bool aX=True, bool aY=False, VECTOR2I aVector={ 0, 0 })
6299 Mirror(SHAPE_ARC self, SEG axis)
6300 """
6301 return _pcbnew.SHAPE_ARC_Mirror(self, *args)
6302
6303 def Reverse(self):
6304 r"""Reverse(SHAPE_ARC self)"""
6305 return _pcbnew.SHAPE_ARC_Reverse(self)
6306
6307 def Reversed(self):
6308 r"""Reversed(SHAPE_ARC self) -> SHAPE_ARC"""
6309 return _pcbnew.SHAPE_ARC_Reversed(self)
6310
6311 def GetRadius(self):
6312 r"""GetRadius(SHAPE_ARC self) -> double"""
6313 return _pcbnew.SHAPE_ARC_GetRadius(self)
6314
6315 def GetChord(self):
6316 r"""GetChord(SHAPE_ARC self) -> SEG"""
6317 return _pcbnew.SHAPE_ARC_GetChord(self)
6318
6320 r"""GetCentralAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6321 return _pcbnew.SHAPE_ARC_GetCentralAngle(self)
6322
6323 def GetStartAngle(self):
6324 r"""GetStartAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6325 return _pcbnew.SHAPE_ARC_GetStartAngle(self)
6326
6327 def GetEndAngle(self):
6328 r"""GetEndAngle(SHAPE_ARC self) -> EDA_ANGLE"""
6329 return _pcbnew.SHAPE_ARC_GetEndAngle(self)
6330
6331 def GetLength(self):
6332 r"""GetLength(SHAPE_ARC self) -> double"""
6333 return _pcbnew.SHAPE_ARC_GetLength(self)
6334
6335 @staticmethod
6337 r"""DefaultAccuracyForPCB() -> double"""
6338 return _pcbnew.SHAPE_ARC_DefaultAccuracyForPCB()
6339
6340 def ConvertToPolyline(self, *args):
6341 r"""ConvertToPolyline(SHAPE_ARC self, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB(), double * aEffectiveAccuracy=None) -> SHAPE_LINE_CHAIN"""
6342 return _pcbnew.SHAPE_ARC_ConvertToPolyline(self, *args)
6343
6344 def __eq__(self, aArc):
6345 r"""__eq__(SHAPE_ARC self, SHAPE_ARC aArc) -> bool"""
6346 return _pcbnew.SHAPE_ARC___eq__(self, aArc)
6347
6348 def IsCCW(self):
6349 r"""IsCCW(SHAPE_ARC self) -> bool"""
6350 return _pcbnew.SHAPE_ARC_IsCCW(self)
6351
6352 def IsClockwise(self):
6353 r"""IsClockwise(SHAPE_ARC self) -> bool"""
6354 return _pcbnew.SHAPE_ARC_IsClockwise(self)
6355
6356# Register SHAPE_ARC in _pcbnew:
6357_pcbnew.SHAPE_ARC_swigregister(SHAPE_ARC)
6358
6360 r"""SHAPE_ARC_DefaultAccuracyForPCB() -> double"""
6361 return _pcbnew.SHAPE_ARC_DefaultAccuracyForPCB()
6362
6364 r"""Proxy of C++ SHAPE_CIRCLE class."""
6365
6366 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6367 __repr__ = _swig_repr
6368
6369 def __init__(self, *args):
6370 r"""
6371 __init__(SHAPE_CIRCLE self) -> SHAPE_CIRCLE
6372 __init__(SHAPE_CIRCLE self, VECTOR2I aCenter, int aRadius) -> SHAPE_CIRCLE
6373 __init__(SHAPE_CIRCLE self, CIRCLE const & aCircle) -> SHAPE_CIRCLE
6374 __init__(SHAPE_CIRCLE self, SHAPE_CIRCLE aOther) -> SHAPE_CIRCLE
6375 """
6376 _pcbnew.SHAPE_CIRCLE_swiginit(self, _pcbnew.new_SHAPE_CIRCLE(*args))
6377 __swig_destroy__ = _pcbnew.delete_SHAPE_CIRCLE
6378
6379 def BBox(self, aClearance=0):
6380 r"""BBox(SHAPE_CIRCLE self, int aClearance=0) -> BOX2I"""
6381 return _pcbnew.SHAPE_CIRCLE_BBox(self, aClearance)
6382
6383 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
6384 r"""Collide(SHAPE_CIRCLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
6385 return _pcbnew.SHAPE_CIRCLE_Collide(self, aSeg, aClearance, aActual, aLocation)
6386
6387 def SetRadius(self, aRadius):
6388 r"""SetRadius(SHAPE_CIRCLE self, int aRadius)"""
6389 return _pcbnew.SHAPE_CIRCLE_SetRadius(self, aRadius)
6390
6391 def SetCenter(self, aCenter):
6392 r"""SetCenter(SHAPE_CIRCLE self, VECTOR2I aCenter)"""
6393 return _pcbnew.SHAPE_CIRCLE_SetCenter(self, aCenter)
6394
6395 def GetRadius(self):
6396 r"""GetRadius(SHAPE_CIRCLE self) -> int"""
6397 return _pcbnew.SHAPE_CIRCLE_GetRadius(self)
6398
6399 def GetCenter(self):
6400 r"""GetCenter(SHAPE_CIRCLE self) -> VECTOR2I"""
6401 return _pcbnew.SHAPE_CIRCLE_GetCenter(self)
6402
6403 def GetCircle(self):
6404 r"""GetCircle(SHAPE_CIRCLE self) -> CIRCLE const"""
6405 return _pcbnew.SHAPE_CIRCLE_GetCircle(self)
6406
6407 def Rotate(self, *args):
6408 r"""Rotate(SHAPE_CIRCLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6409 return _pcbnew.SHAPE_CIRCLE_Rotate(self, *args)
6410
6411 def Format(self, aCplusPlus=True):
6412 r"""Format(SHAPE_CIRCLE self, bool aCplusPlus=True) -> string"""
6413 return _pcbnew.SHAPE_CIRCLE_Format(self, aCplusPlus)
6414
6415# Register SHAPE_CIRCLE in _pcbnew:
6416_pcbnew.SHAPE_CIRCLE_swigregister(SHAPE_CIRCLE)
6417
6419 r"""Proxy of C++ SHAPE_COMPOUND class."""
6420
6421 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6422 __repr__ = _swig_repr
6423
6424 def __init__(self, *args):
6425 r"""
6426 __init__(SHAPE_COMPOUND self) -> SHAPE_COMPOUND
6427 __init__(SHAPE_COMPOUND self, std::vector< SHAPE *,std::allocator< SHAPE * > > const & aShapes) -> SHAPE_COMPOUND
6428 __init__(SHAPE_COMPOUND self, SHAPE_COMPOUND aOther) -> SHAPE_COMPOUND
6429 """
6430 _pcbnew.SHAPE_COMPOUND_swiginit(self, _pcbnew.new_SHAPE_COMPOUND(*args))
6431 __swig_destroy__ = _pcbnew.delete_SHAPE_COMPOUND
6432
6433 def Clone(self):
6434 r"""Clone(SHAPE_COMPOUND self) -> SHAPE_COMPOUND"""
6435 return _pcbnew.SHAPE_COMPOUND_Clone(self)
6436
6437 def Format(self, aCplusPlus=True):
6438 r"""Format(SHAPE_COMPOUND self, bool aCplusPlus=True) -> string"""
6439 return _pcbnew.SHAPE_COMPOUND_Format(self, aCplusPlus)
6440
6441 def Collide(self, *args):
6442 r"""
6443 Collide(SHAPE_COMPOUND self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6444 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
6445 Collide(SHAPE_COMPOUND self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6446 """
6447 return _pcbnew.SHAPE_COMPOUND_Collide(self, *args)
6448
6449 def Shapes(self):
6450 r"""Shapes(SHAPE_COMPOUND self) -> std::vector< SHAPE *,std::allocator< SHAPE * > > const &"""
6451 return _pcbnew.SHAPE_COMPOUND_Shapes(self)
6452
6453 def BBox(self, aClearance=0):
6454 r"""BBox(SHAPE_COMPOUND self, int aClearance=0) -> BOX2I"""
6455 return _pcbnew.SHAPE_COMPOUND_BBox(self, aClearance)
6456
6457 def Distance(self, *args):
6458 r"""
6459 Distance(SHAPE_COMPOUND self, VECTOR2I aP) -> int
6460 Distance(SHAPE_COMPOUND self, SEG aSeg) -> int
6461 """
6462 return _pcbnew.SHAPE_COMPOUND_Distance(self, *args)
6463
6464 def AddShape(self, *args):
6465 r"""
6466 AddShape(SHAPE_COMPOUND self, SHAPE aShape)
6467 AddShape(SHAPE_COMPOUND self, std::shared_ptr< SHAPE > aShape)
6468 """
6469 return _pcbnew.SHAPE_COMPOUND_AddShape(self, *args)
6470
6471 def Empty(self):
6472 r"""Empty(SHAPE_COMPOUND self) -> bool"""
6473 return _pcbnew.SHAPE_COMPOUND_Empty(self)
6474
6475 def Size(self):
6476 r"""Size(SHAPE_COMPOUND self) -> int"""
6477 return _pcbnew.SHAPE_COMPOUND_Size(self)
6478
6479 def Rotate(self, *args):
6480 r"""Rotate(SHAPE_COMPOUND self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6481 return _pcbnew.SHAPE_COMPOUND_Rotate(self, *args)
6482
6484 r"""UniqueSubshape(SHAPE_COMPOUND self) -> SHAPE"""
6485 return _pcbnew.SHAPE_COMPOUND_UniqueSubshape(self)
6486
6487 def GetSubshapes(self):
6488 r"""GetSubshapes(SHAPE_COMPOUND self) -> VECTOR_SHAPEPTR"""
6489 return _pcbnew.SHAPE_COMPOUND_GetSubshapes(self)
6490
6491# Register SHAPE_COMPOUND in _pcbnew:
6492_pcbnew.SHAPE_COMPOUND_swigregister(SHAPE_COMPOUND)
6493
6495 r"""Proxy of C++ CLIPPER_Z_VALUE class."""
6496
6497 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6498 __repr__ = _swig_repr
6499
6500 def __init__(self, *args):
6501 r"""
6502 __init__(CLIPPER_Z_VALUE self) -> CLIPPER_Z_VALUE
6503 __init__(CLIPPER_Z_VALUE self, std::pair< ssize_t,ssize_t > const aShapeIndices, ssize_t aOffset=0) -> CLIPPER_Z_VALUE
6504 """
6505 _pcbnew.CLIPPER_Z_VALUE_swiginit(self, _pcbnew.new_CLIPPER_Z_VALUE(*args))
6506 m_FirstArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_FirstArcIdx_set, doc=r"""m_FirstArcIdx : ssize_t""")
6507 m_SecondArcIdx = property(_pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_get, _pcbnew.CLIPPER_Z_VALUE_m_SecondArcIdx_set, doc=r"""m_SecondArcIdx : ssize_t""")
6508 __swig_destroy__ = _pcbnew.delete_CLIPPER_Z_VALUE
6509
6510# Register CLIPPER_Z_VALUE in _pcbnew:
6511_pcbnew.CLIPPER_Z_VALUE_swigregister(CLIPPER_Z_VALUE)
6512
6514 r"""Proxy of C++ SHAPE_LINE_CHAIN class."""
6515
6516 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6517 __repr__ = _swig_repr
6518
6519 def __init__(self, *args):
6520 r"""
6521 __init__(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN
6522 __init__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aShape) -> SHAPE_LINE_CHAIN
6523 __init__(SHAPE_LINE_CHAIN self, intVector aV) -> SHAPE_LINE_CHAIN
6524 __init__(SHAPE_LINE_CHAIN self, VECTOR_VECTOR2I aV, bool aClosed=False) -> SHAPE_LINE_CHAIN
6525 __init__(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, bool aClosed=False) -> SHAPE_LINE_CHAIN
6526 __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
6527 __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
6528 """
6529 _pcbnew.SHAPE_LINE_CHAIN_swiginit(self, _pcbnew.new_SHAPE_LINE_CHAIN(*args))
6530 __swig_destroy__ = _pcbnew.delete_SHAPE_LINE_CHAIN
6531
6532 def Collide(self, *args):
6533 r"""
6534 Collide(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6535 Collide(SHAPE_LINE_CHAIN self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
6536 """
6537 return _pcbnew.SHAPE_LINE_CHAIN_Collide(self, *args)
6538
6539 def Clear(self):
6540 r"""Clear(SHAPE_LINE_CHAIN self)"""
6541 return _pcbnew.SHAPE_LINE_CHAIN_Clear(self)
6542
6543 def SetClosed(self, aClosed):
6544 r"""SetClosed(SHAPE_LINE_CHAIN self, bool aClosed)"""
6545 return _pcbnew.SHAPE_LINE_CHAIN_SetClosed(self, aClosed)
6546
6547 def SetWidth(self, aWidth):
6548 r"""SetWidth(SHAPE_LINE_CHAIN self, int aWidth)"""
6549 return _pcbnew.SHAPE_LINE_CHAIN_SetWidth(self, aWidth)
6550
6551 def Width(self):
6552 r"""Width(SHAPE_LINE_CHAIN self) -> int"""
6553 return _pcbnew.SHAPE_LINE_CHAIN_Width(self)
6554
6555 def SegmentCount(self):
6556 r"""SegmentCount(SHAPE_LINE_CHAIN self) -> int"""
6557 return _pcbnew.SHAPE_LINE_CHAIN_SegmentCount(self)
6558
6559 def ShapeCount(self):
6560 r"""ShapeCount(SHAPE_LINE_CHAIN self) -> int"""
6561 return _pcbnew.SHAPE_LINE_CHAIN_ShapeCount(self)
6562
6564 r"""RemoveDuplicatePoints(SHAPE_LINE_CHAIN self)"""
6565 return _pcbnew.SHAPE_LINE_CHAIN_RemoveDuplicatePoints(self)
6566
6567 def Simplify(self, aMaxError=0):
6568 r"""Simplify(SHAPE_LINE_CHAIN self, int aMaxError=0)"""
6569 return _pcbnew.SHAPE_LINE_CHAIN_Simplify(self, aMaxError)
6570
6571 def PointCount(self):
6572 r"""PointCount(SHAPE_LINE_CHAIN self) -> int"""
6573 return _pcbnew.SHAPE_LINE_CHAIN_PointCount(self)
6574
6575 def Segment(self, aIndex):
6576 r"""Segment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6577 return _pcbnew.SHAPE_LINE_CHAIN_Segment(self, aIndex)
6578
6579 def CSegment(self, aIndex):
6580 r"""CSegment(SHAPE_LINE_CHAIN self, int aIndex) -> SEG"""
6581 return _pcbnew.SHAPE_LINE_CHAIN_CSegment(self, aIndex)
6582
6583 def NextShape(self, aPointIndex):
6584 r"""NextShape(SHAPE_LINE_CHAIN self, int aPointIndex) -> int"""
6585 return _pcbnew.SHAPE_LINE_CHAIN_NextShape(self, aPointIndex)
6586
6587 def SetPoint(self, aIndex, aPos):
6588 r"""SetPoint(SHAPE_LINE_CHAIN self, int aIndex, VECTOR2I aPos)"""
6589 return _pcbnew.SHAPE_LINE_CHAIN_SetPoint(self, aIndex, aPos)
6590
6591 def CPoint(self, aIndex):
6592 r"""CPoint(SHAPE_LINE_CHAIN self, int aIndex) -> VECTOR2I"""
6593 return _pcbnew.SHAPE_LINE_CHAIN_CPoint(self, aIndex)
6594
6595 def CPoints(self):
6596 r"""CPoints(SHAPE_LINE_CHAIN self) -> VECTOR_VECTOR2I"""
6597 return _pcbnew.SHAPE_LINE_CHAIN_CPoints(self)
6598
6599 def CLastPoint(self):
6600 r"""CLastPoint(SHAPE_LINE_CHAIN self) -> VECTOR2I"""
6601 return _pcbnew.SHAPE_LINE_CHAIN_CLastPoint(self)
6602
6603 def CArcs(self):
6604 r"""CArcs(SHAPE_LINE_CHAIN self) -> std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > const &"""
6605 return _pcbnew.SHAPE_LINE_CHAIN_CArcs(self)
6606
6607 def CShapes(self):
6608 r"""CShapes(SHAPE_LINE_CHAIN self) -> std::vector< std::pair< ssize_t,ssize_t >,std::allocator< std::pair< ssize_t,ssize_t > > > const &"""
6609 return _pcbnew.SHAPE_LINE_CHAIN_CShapes(self)
6610
6611 def BBox(self, aClearance=0):
6612 r"""BBox(SHAPE_LINE_CHAIN self, int aClearance=0) -> BOX2I"""
6613 return _pcbnew.SHAPE_LINE_CHAIN_BBox(self, aClearance)
6614
6616 r"""GenerateBBoxCache(SHAPE_LINE_CHAIN self)"""
6617 return _pcbnew.SHAPE_LINE_CHAIN_GenerateBBoxCache(self)
6618
6619 def Reverse(self):
6620 r"""Reverse(SHAPE_LINE_CHAIN self) -> SHAPE_LINE_CHAIN"""
6621 return _pcbnew.SHAPE_LINE_CHAIN_Reverse(self)
6622
6623 def ClearArcs(self):
6624 r"""ClearArcs(SHAPE_LINE_CHAIN self)"""
6625 return _pcbnew.SHAPE_LINE_CHAIN_ClearArcs(self)
6626
6627 def Length(self):
6628 r"""Length(SHAPE_LINE_CHAIN self) -> long long"""
6629 return _pcbnew.SHAPE_LINE_CHAIN_Length(self)
6630
6631 def ReservePoints(self, aSize):
6632 r"""ReservePoints(SHAPE_LINE_CHAIN self, size_t aSize)"""
6633 return _pcbnew.SHAPE_LINE_CHAIN_ReservePoints(self, aSize)
6634
6635 def Append(self, *args):
6636 r"""
6637 Append(SHAPE_LINE_CHAIN self, int aX, int aY, bool aAllowDuplication=False)
6638 Append(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowDuplication=False)
6639 Append(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOtherLine)
6640 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc)
6641 Append(SHAPE_LINE_CHAIN self, SHAPE_ARC aArc, double aAccuracy)
6642 """
6643 return _pcbnew.SHAPE_LINE_CHAIN_Append(self, *args)
6644
6645 def Insert(self, *args):
6646 r"""
6647 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, VECTOR2I aP)
6648 Insert(SHAPE_LINE_CHAIN self, size_t aVertex, SHAPE_ARC aArc)
6649 """
6650 return _pcbnew.SHAPE_LINE_CHAIN_Insert(self, *args)
6651
6652 def Replace(self, *args):
6653 r"""
6654 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, VECTOR2I aP)
6655 Replace(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex, SHAPE_LINE_CHAIN aLine)
6656 """
6657 return _pcbnew.SHAPE_LINE_CHAIN_Replace(self, *args)
6658
6659 def Remove(self, *args):
6660 r"""
6661 Remove(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex)
6662 Remove(SHAPE_LINE_CHAIN self, int aIndex)
6663 """
6664 return _pcbnew.SHAPE_LINE_CHAIN_Remove(self, *args)
6665
6666 def RemoveShape(self, aPointIndex):
6667 r"""RemoveShape(SHAPE_LINE_CHAIN self, int aPointIndex)"""
6668 return _pcbnew.SHAPE_LINE_CHAIN_RemoveShape(self, aPointIndex)
6669
6670 def Find(self, aP, aThreshold=0):
6671 r"""Find(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=0) -> int"""
6672 return _pcbnew.SHAPE_LINE_CHAIN_Find(self, aP, aThreshold)
6673
6674 def FindSegment(self, aP, aThreshold=1):
6675 r"""FindSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aThreshold=1) -> int"""
6676 return _pcbnew.SHAPE_LINE_CHAIN_FindSegment(self, aP, aThreshold)
6677
6678 def Slice(self, aStartIndex, aEndIndex=-1):
6679 r"""Slice(SHAPE_LINE_CHAIN self, int aStartIndex, int aEndIndex=-1) -> SHAPE_LINE_CHAIN"""
6680 return _pcbnew.SHAPE_LINE_CHAIN_Slice(self, aStartIndex, aEndIndex)
6681
6682 def Intersects(self, aChain):
6683 r"""Intersects(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain) -> bool"""
6684 return _pcbnew.SHAPE_LINE_CHAIN_Intersects(self, aChain)
6685
6686 def Intersect(self, *args):
6687 r"""
6688 Intersect(SHAPE_LINE_CHAIN self, SEG aSeg, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp) -> int
6689 Intersect(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aChain, SHAPE_LINE_CHAIN::INTERSECTIONS & aIp, bool aExcludeColinearAndTouching=False, BOX2I aChainBBox=None) -> int
6690 """
6691 return _pcbnew.SHAPE_LINE_CHAIN_Intersect(self, *args)
6692
6693 def PathLength(self, aP, aIndex=-1):
6694 r"""PathLength(SHAPE_LINE_CHAIN self, VECTOR2I aP, int aIndex=-1) -> int"""
6695 return _pcbnew.SHAPE_LINE_CHAIN_PathLength(self, aP, aIndex)
6696
6697 def CheckClearance(self, aP, aDist):
6698 r"""CheckClearance(SHAPE_LINE_CHAIN self, VECTOR2I aP, int const aDist) -> bool"""
6699 return _pcbnew.SHAPE_LINE_CHAIN_CheckClearance(self, aP, aDist)
6700
6702 r"""SelfIntersecting(SHAPE_LINE_CHAIN self) -> std::optional< SHAPE_LINE_CHAIN::INTERSECTION > const"""
6703 return _pcbnew.SHAPE_LINE_CHAIN_SelfIntersecting(self)
6704
6705 def NearestSegment(self, aP):
6706 r"""NearestSegment(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int"""
6707 return _pcbnew.SHAPE_LINE_CHAIN_NearestSegment(self, aP)
6708
6709 def NearestPoint(self, *args):
6710 r"""
6711 NearestPoint(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aAllowInternalShapePoints=True) -> VECTOR2I
6712 NearestPoint(SHAPE_LINE_CHAIN self, SEG aSeg, int & dist) -> VECTOR2I
6713 """
6714 return _pcbnew.SHAPE_LINE_CHAIN_NearestPoint(self, *args)
6715
6716 def Format(self, aCplusPlus=True):
6717 r"""Format(SHAPE_LINE_CHAIN self, bool aCplusPlus=True) -> string"""
6718 return _pcbnew.SHAPE_LINE_CHAIN_Format(self, aCplusPlus)
6719
6720 def __ne__(self, aRhs):
6721 r"""__ne__(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aRhs) -> bool"""
6722 return _pcbnew.SHAPE_LINE_CHAIN___ne__(self, aRhs)
6723
6724 def CompareGeometry(self, aOther):
6725 r"""CompareGeometry(SHAPE_LINE_CHAIN self, SHAPE_LINE_CHAIN aOther) -> bool"""
6726 return _pcbnew.SHAPE_LINE_CHAIN_CompareGeometry(self, aOther)
6727
6728 def Mirror(self, *args):
6729 r"""
6730 Mirror(SHAPE_LINE_CHAIN self, bool aX=True, bool aY=False, VECTOR2I aRef={ 0, 0 })
6731 Mirror(SHAPE_LINE_CHAIN self, SEG axis)
6732 """
6733 return _pcbnew.SHAPE_LINE_CHAIN_Mirror(self, *args)
6734
6735 def Rotate(self, *args):
6736 r"""Rotate(SHAPE_LINE_CHAIN self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
6737 return _pcbnew.SHAPE_LINE_CHAIN_Rotate(self, *args)
6738
6739 def PointAlong(self, aPathLength):
6740 r"""PointAlong(SHAPE_LINE_CHAIN self, int aPathLength) -> VECTOR2I"""
6741 return _pcbnew.SHAPE_LINE_CHAIN_PointAlong(self, aPathLength)
6742
6743 def Area(self, aAbsolute=True):
6744 r"""Area(SHAPE_LINE_CHAIN self, bool aAbsolute=True) -> double"""
6745 return _pcbnew.SHAPE_LINE_CHAIN_Area(self, aAbsolute)
6746
6747 def Split(self, *args):
6748 r"""
6749 Split(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aExact=False) -> int
6750 Split(SHAPE_LINE_CHAIN self, VECTOR2I aStart, VECTOR2I aEnd, SHAPE_LINE_CHAIN aPre, SHAPE_LINE_CHAIN aMid, SHAPE_LINE_CHAIN aPost)
6751 """
6752 return _pcbnew.SHAPE_LINE_CHAIN_Split(self, *args)
6753
6754 def OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify=False):
6755 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"""
6756 return _pcbnew.SHAPE_LINE_CHAIN_OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify)
6757
6758 def ArcCount(self):
6759 r"""ArcCount(SHAPE_LINE_CHAIN self) -> size_t"""
6760 return _pcbnew.SHAPE_LINE_CHAIN_ArcCount(self)
6761
6762 def ArcIndex(self, aSegment):
6763 r"""ArcIndex(SHAPE_LINE_CHAIN self, size_t aSegment) -> ssize_t"""
6764 return _pcbnew.SHAPE_LINE_CHAIN_ArcIndex(self, aSegment)
6765
6766 def Arc(self, aArc):
6767 r"""Arc(SHAPE_LINE_CHAIN self, size_t aArc) -> SHAPE_ARC"""
6768 return _pcbnew.SHAPE_LINE_CHAIN_Arc(self, aArc)
6769
6770 def IsSharedPt(self, aIndex):
6771 r"""IsSharedPt(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6772 return _pcbnew.SHAPE_LINE_CHAIN_IsSharedPt(self, aIndex)
6773
6774 def IsPtOnArc(self, aPtIndex):
6775 r"""IsPtOnArc(SHAPE_LINE_CHAIN self, size_t aPtIndex) -> bool"""
6776 return _pcbnew.SHAPE_LINE_CHAIN_IsPtOnArc(self, aPtIndex)
6777
6778 def IsArcSegment(self, aSegment):
6779 r"""IsArcSegment(SHAPE_LINE_CHAIN self, size_t aSegment) -> bool"""
6780 return _pcbnew.SHAPE_LINE_CHAIN_IsArcSegment(self, aSegment)
6781
6782 def IsArcStart(self, aIndex):
6783 r"""IsArcStart(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6784 return _pcbnew.SHAPE_LINE_CHAIN_IsArcStart(self, aIndex)
6785
6786 def IsArcEnd(self, aIndex):
6787 r"""IsArcEnd(SHAPE_LINE_CHAIN self, size_t aIndex) -> bool"""
6788 return _pcbnew.SHAPE_LINE_CHAIN_IsArcEnd(self, aIndex)
6789
6790 def Distance(self, *args):
6791 r"""
6792 Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP) -> int
6793 Distance(SHAPE_LINE_CHAIN self, VECTOR2I aP, bool aOutlineOnly) -> int
6794 """
6795 return _pcbnew.SHAPE_LINE_CHAIN_Distance(self, *args)
6796
6797# Register SHAPE_LINE_CHAIN in _pcbnew:
6798_pcbnew.SHAPE_LINE_CHAIN_swigregister(SHAPE_LINE_CHAIN)
6799
6801 r"""Proxy of C++ SHAPE_POLY_SET class."""
6802
6803 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6804 __repr__ = _swig_repr
6805
6806 def __init__(self, *args):
6807 r"""
6808 __init__(SHAPE_POLY_SET self) -> SHAPE_POLY_SET
6809 __init__(SHAPE_POLY_SET self, BOX2D const & aRect) -> SHAPE_POLY_SET
6810 __init__(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> SHAPE_POLY_SET
6811 __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & aPolygon) -> SHAPE_POLY_SET
6812 __init__(SHAPE_POLY_SET self, SHAPE_POLY_SET aOther) -> SHAPE_POLY_SET
6813 """
6814 _pcbnew.SHAPE_POLY_SET_swiginit(self, _pcbnew.new_SHAPE_POLY_SET(*args))
6815 __swig_destroy__ = _pcbnew.delete_SHAPE_POLY_SET
6816
6817 def CacheTriangulation(self, aPartition=True, aSimplify=False):
6818 r"""CacheTriangulation(SHAPE_POLY_SET self, bool aPartition=True, bool aSimplify=False)"""
6819 return _pcbnew.SHAPE_POLY_SET_CacheTriangulation(self, aPartition, aSimplify)
6820
6822 r"""IsTriangulationUpToDate(SHAPE_POLY_SET self) -> bool"""
6823 return _pcbnew.SHAPE_POLY_SET_IsTriangulationUpToDate(self)
6824
6825 def GetHash(self):
6826 r"""GetHash(SHAPE_POLY_SET self) -> MD5_HASH"""
6827 return _pcbnew.SHAPE_POLY_SET_GetHash(self)
6828
6829 def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices):
6830 r"""GetRelativeIndices(SHAPE_POLY_SET self, int aGlobalIdx, SHAPE_POLY_SET::VERTEX_INDEX * aRelativeIndices) -> bool"""
6831 return _pcbnew.SHAPE_POLY_SET_GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
6832
6833 def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx):
6834 r"""GetGlobalIndex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices, int & aGlobalIdx) -> bool"""
6835 return _pcbnew.SHAPE_POLY_SET_GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
6836
6838 r"""CloneDropTriangulation(SHAPE_POLY_SET self) -> SHAPE_POLY_SET"""
6839 return _pcbnew.SHAPE_POLY_SET_CloneDropTriangulation(self)
6840
6841 def NewOutline(self):
6842 r"""NewOutline(SHAPE_POLY_SET self) -> int"""
6843 return _pcbnew.SHAPE_POLY_SET_NewOutline(self)
6844
6845 def NewHole(self, aOutline=-1):
6846 r"""NewHole(SHAPE_POLY_SET self, int aOutline=-1) -> int"""
6847 return _pcbnew.SHAPE_POLY_SET_NewHole(self, aOutline)
6848
6849 def AddOutline(self, aOutline):
6850 r"""AddOutline(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aOutline) -> int"""
6851 return _pcbnew.SHAPE_POLY_SET_AddOutline(self, aOutline)
6852
6853 def AddHole(self, aHole, aOutline=-1):
6854 r"""AddHole(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aHole, int aOutline=-1) -> int"""
6855 return _pcbnew.SHAPE_POLY_SET_AddHole(self, aHole, aOutline)
6856
6857 def AddPolygon(self, apolygon):
6858 r"""AddPolygon(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON const & apolygon) -> int"""
6859 return _pcbnew.SHAPE_POLY_SET_AddPolygon(self, apolygon)
6860
6861 def Area(self):
6862 r"""Area(SHAPE_POLY_SET self) -> double"""
6863 return _pcbnew.SHAPE_POLY_SET_Area(self)
6864
6865 def ArcCount(self):
6866 r"""ArcCount(SHAPE_POLY_SET self) -> int"""
6867 return _pcbnew.SHAPE_POLY_SET_ArcCount(self)
6868
6869 def GetArcs(self, aArcBuffer):
6870 r"""GetArcs(SHAPE_POLY_SET self, std::vector< SHAPE_ARC,std::allocator< SHAPE_ARC > > & aArcBuffer)"""
6871 return _pcbnew.SHAPE_POLY_SET_GetArcs(self, aArcBuffer)
6872
6873 def ClearArcs(self):
6874 r"""ClearArcs(SHAPE_POLY_SET self)"""
6875 return _pcbnew.SHAPE_POLY_SET_ClearArcs(self)
6876
6877 def Append(self, *args):
6878 r"""
6879 Append(SHAPE_POLY_SET self, int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=False) -> int
6880 Append(SHAPE_POLY_SET self, SHAPE_POLY_SET aSet)
6881 Append(SHAPE_POLY_SET self, VECTOR2I aP, int aOutline=-1, int aHole=-1)
6882 Append(SHAPE_POLY_SET self, SHAPE_ARC aArc, int aOutline=-1, int aHole=-1, double aAccuracy=SHAPE_ARC::DefaultAccuracyForPCB()) -> int
6883 """
6884 return _pcbnew.SHAPE_POLY_SET_Append(self, *args)
6885
6886 def InsertVertex(self, aGlobalIndex, aNewVertex):
6887 r"""InsertVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aNewVertex)"""
6888 return _pcbnew.SHAPE_POLY_SET_InsertVertex(self, aGlobalIndex, aNewVertex)
6889
6890 def CVertex(self, *args):
6891 r"""
6892 CVertex(SHAPE_POLY_SET self, int aIndex, int aOutline, int aHole) -> VECTOR2I
6893 CVertex(SHAPE_POLY_SET self, int aGlobalIndex) -> VECTOR2I
6894 CVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aIndex) -> VECTOR2I
6895 """
6896 return _pcbnew.SHAPE_POLY_SET_CVertex(self, *args)
6897
6898 def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext):
6899 r"""GetNeighbourIndexes(SHAPE_POLY_SET self, int aGlobalIndex, int * aPrevious, int * aNext) -> bool"""
6900 return _pcbnew.SHAPE_POLY_SET_GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
6901
6902 def IsPolygonSelfIntersecting(self, aPolygonIndex):
6903 r"""IsPolygonSelfIntersecting(SHAPE_POLY_SET self, int aPolygonIndex) -> bool"""
6904 return _pcbnew.SHAPE_POLY_SET_IsPolygonSelfIntersecting(self, aPolygonIndex)
6905
6907 r"""IsSelfIntersecting(SHAPE_POLY_SET self) -> bool"""
6908 return _pcbnew.SHAPE_POLY_SET_IsSelfIntersecting(self)
6909
6911 r"""TriangulatedPolyCount(SHAPE_POLY_SET self) -> unsigned int"""
6912 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolyCount(self)
6913
6914 def OutlineCount(self):
6915 r"""OutlineCount(SHAPE_POLY_SET self) -> int"""
6916 return _pcbnew.SHAPE_POLY_SET_OutlineCount(self)
6917
6918 def VertexCount(self, aOutline=-1, aHole=-1):
6919 r"""VertexCount(SHAPE_POLY_SET self, int aOutline=-1, int aHole=-1) -> int"""
6920 return _pcbnew.SHAPE_POLY_SET_VertexCount(self, aOutline, aHole)
6921
6923 r"""FullPointCount(SHAPE_POLY_SET self) -> int"""
6924 return _pcbnew.SHAPE_POLY_SET_FullPointCount(self)
6925
6926 def HoleCount(self, aOutline):
6927 r"""HoleCount(SHAPE_POLY_SET self, int aOutline) -> int"""
6928 return _pcbnew.SHAPE_POLY_SET_HoleCount(self, aOutline)
6929
6930 def Outline(self, *args):
6931 r"""
6932 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6933 Outline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN
6934 """
6935 return _pcbnew.SHAPE_POLY_SET_Outline(self, *args)
6936
6937 def Subset(self, aFirstPolygon, aLastPolygon):
6938 r"""Subset(SHAPE_POLY_SET self, int aFirstPolygon, int aLastPolygon) -> SHAPE_POLY_SET"""
6939 return _pcbnew.SHAPE_POLY_SET_Subset(self, aFirstPolygon, aLastPolygon)
6940
6941 def UnitSet(self, aPolygonIndex):
6942 r"""UnitSet(SHAPE_POLY_SET self, int aPolygonIndex) -> SHAPE_POLY_SET"""
6943 return _pcbnew.SHAPE_POLY_SET_UnitSet(self, aPolygonIndex)
6944
6945 def Hole(self, aOutline, aHole):
6946 r"""Hole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6947 return _pcbnew.SHAPE_POLY_SET_Hole(self, aOutline, aHole)
6948
6949 def Polygon(self, *args):
6950 r"""
6951 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON
6952 Polygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &
6953 """
6954 return _pcbnew.SHAPE_POLY_SET_Polygon(self, *args)
6955
6956 def TriangulatedPolygon(self, aIndex):
6957 r"""TriangulatedPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::TRIANGULATED_POLYGON const *"""
6958 return _pcbnew.SHAPE_POLY_SET_TriangulatedPolygon(self, aIndex)
6959
6960 def COutline(self, aIndex):
6961 r"""COutline(SHAPE_POLY_SET self, int aIndex) -> SHAPE_LINE_CHAIN"""
6962 return _pcbnew.SHAPE_POLY_SET_COutline(self, aIndex)
6963
6964 def CHole(self, aOutline, aHole):
6965 r"""CHole(SHAPE_POLY_SET self, int aOutline, int aHole) -> SHAPE_LINE_CHAIN"""
6966 return _pcbnew.SHAPE_POLY_SET_CHole(self, aOutline, aHole)
6967
6968 def CPolygon(self, aIndex):
6969 r"""CPolygon(SHAPE_POLY_SET self, int aIndex) -> SHAPE_POLY_SET::POLYGON const &"""
6970 return _pcbnew.SHAPE_POLY_SET_CPolygon(self, aIndex)
6971
6972 def CPolygons(self):
6973 r"""CPolygons(SHAPE_POLY_SET self) -> std::vector< SHAPE_POLY_SET::POLYGON,std::allocator< SHAPE_POLY_SET::POLYGON > > const &"""
6974 return _pcbnew.SHAPE_POLY_SET_CPolygons(self)
6975
6976 def Iterate(self, *args):
6977 r"""
6978 Iterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::ITERATOR
6979 Iterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6980 Iterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6981 """
6982 return _pcbnew.SHAPE_POLY_SET_Iterate(self, *args)
6983
6984 def IterateWithHoles(self, *args):
6985 r"""
6986 IterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::ITERATOR
6987 IterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::ITERATOR
6988 """
6989 return _pcbnew.SHAPE_POLY_SET_IterateWithHoles(self, *args)
6990
6991 def CIterate(self, *args):
6992 r"""
6993 CIterate(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_ITERATOR
6994 CIterate(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
6995 CIterate(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
6996 """
6997 return _pcbnew.SHAPE_POLY_SET_CIterate(self, *args)
6998
6999 def CIterateWithHoles(self, *args):
7000 r"""
7001 CIterateWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_ITERATOR
7002 CIterateWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_ITERATOR
7003 """
7004 return _pcbnew.SHAPE_POLY_SET_CIterateWithHoles(self, *args)
7005
7006 def IterateFromVertexWithHoles(self, aGlobalIdx):
7007 r"""IterateFromVertexWithHoles(SHAPE_POLY_SET self, int aGlobalIdx) -> SHAPE_POLY_SET::ITERATOR"""
7008 return _pcbnew.SHAPE_POLY_SET_IterateFromVertexWithHoles(self, aGlobalIdx)
7009
7010 def IterateSegments(self, *args):
7011 r"""
7012 IterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7013 IterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7014 IterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7015 """
7016 return _pcbnew.SHAPE_POLY_SET_IterateSegments(self, *args)
7017
7018 def CIterateSegments(self, *args):
7019 r"""
7020 CIterateSegments(SHAPE_POLY_SET self, int aFirst, int aLast, bool aIterateHoles=False) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7021 CIterateSegments(SHAPE_POLY_SET self, int aPolygonIdx) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7022 CIterateSegments(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7023 """
7024 return _pcbnew.SHAPE_POLY_SET_CIterateSegments(self, *args)
7025
7027 r"""
7028 IterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7029 IterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::SEGMENT_ITERATOR
7030 """
7031 return _pcbnew.SHAPE_POLY_SET_IterateSegmentsWithHoles(self, *args)
7032
7034 r"""
7035 CIterateSegmentsWithHoles(SHAPE_POLY_SET self) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7036 CIterateSegmentsWithHoles(SHAPE_POLY_SET self, int aOutline) -> SHAPE_POLY_SET::CONST_SEGMENT_ITERATOR
7037 """
7038 return _pcbnew.SHAPE_POLY_SET_CIterateSegmentsWithHoles(self, *args)
7039 PM_FAST = _pcbnew.SHAPE_POLY_SET_PM_FAST
7040
7041 PM_STRICTLY_SIMPLE = _pcbnew.SHAPE_POLY_SET_PM_STRICTLY_SIMPLE
7042
7043
7044 def BooleanAdd(self, *args):
7045 r"""
7046 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7047 BooleanAdd(SHAPE_POLY_SET self, SHAPE_POLY_SET a, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7048 """
7049 return _pcbnew.SHAPE_POLY_SET_BooleanAdd(self, *args)
7050
7051 def BooleanSubtract(self, *args):
7052 r"""
7053 BooleanSubtract(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7054 BooleanSubtract(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_BooleanSubtract(self, *args)
7057
7058 def BooleanIntersection(self, *args):
7059 r"""
7060 BooleanIntersection(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7061 BooleanIntersection(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_BooleanIntersection(self, *args)
7064
7065 def BooleanXor(self, *args):
7066 r"""
7067 BooleanXor(SHAPE_POLY_SET self, SHAPE_POLY_SET b, SHAPE_POLY_SET::POLYGON_MODE aFastMode)
7068 BooleanXor(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_BooleanXor(self, *args)
7071
7073 r"""RebuildHolesFromContours(SHAPE_POLY_SET self)"""
7074 return _pcbnew.SHAPE_POLY_SET_RebuildHolesFromContours(self)
7075
7076 def Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify=False):
7077 r"""Inflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify=False)"""
7078 return _pcbnew.SHAPE_POLY_SET_Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify)
7079
7080 def Deflate(self, aAmount, aCornerStrategy, aMaxError):
7081 r"""Deflate(SHAPE_POLY_SET self, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError)"""
7082 return _pcbnew.SHAPE_POLY_SET_Deflate(self, aAmount, aCornerStrategy, aMaxError)
7083
7084 def OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify):
7085 r"""OffsetLineChain(SHAPE_POLY_SET self, SHAPE_LINE_CHAIN aLine, int aAmount, CORNER_STRATEGY aCornerStrategy, int aMaxError, bool aSimplify)"""
7086 return _pcbnew.SHAPE_POLY_SET_OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify)
7087
7088 def InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError, aFastMode):
7089 r"""InflateWithLinkedHoles(SHAPE_POLY_SET self, int aFactor, CORNER_STRATEGY aCornerStrategy, int aMaxError, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
7090 return _pcbnew.SHAPE_POLY_SET_InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError, aFastMode)
7091
7092 def Fracture(self, aFastMode):
7093 r"""Fracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
7094 return _pcbnew.SHAPE_POLY_SET_Fracture(self, aFastMode)
7095
7096 def Unfracture(self, aFastMode):
7097 r"""Unfracture(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
7098 return _pcbnew.SHAPE_POLY_SET_Unfracture(self, aFastMode)
7099
7100 def HasHoles(self):
7101 r"""HasHoles(SHAPE_POLY_SET self) -> bool"""
7102 return _pcbnew.SHAPE_POLY_SET_HasHoles(self)
7103
7105 r"""HasTouchingHoles(SHAPE_POLY_SET self) -> bool"""
7106 return _pcbnew.SHAPE_POLY_SET_HasTouchingHoles(self)
7107
7108 def Simplify(self, aFastMode):
7109 r"""Simplify(SHAPE_POLY_SET self, SHAPE_POLY_SET::POLYGON_MODE aFastMode)"""
7110 return _pcbnew.SHAPE_POLY_SET_Simplify(self, aFastMode)
7111
7112 def SimplifyOutlines(self, aMaxError=0):
7113 r"""SimplifyOutlines(SHAPE_POLY_SET self, int aMaxError=0)"""
7114 return _pcbnew.SHAPE_POLY_SET_SimplifyOutlines(self, aMaxError)
7115
7117 r"""NormalizeAreaOutlines(SHAPE_POLY_SET self) -> int"""
7118 return _pcbnew.SHAPE_POLY_SET_NormalizeAreaOutlines(self)
7119
7120 def Format(self, aCplusPlus=True):
7121 r"""Format(SHAPE_POLY_SET self, bool aCplusPlus=True) -> string"""
7122 return _pcbnew.SHAPE_POLY_SET_Format(self, aCplusPlus)
7123
7124 def Mirror(self, *args):
7125 r"""Mirror(SHAPE_POLY_SET self, bool aX=True, bool aY=False, VECTOR2I aRef={ 0, 0 })"""
7126 return _pcbnew.SHAPE_POLY_SET_Mirror(self, *args)
7127
7128 def Rotate(self, *args):
7129 r"""Rotate(SHAPE_POLY_SET self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7130 return _pcbnew.SHAPE_POLY_SET_Rotate(self, *args)
7131
7132 def BBox(self, aClearance=0):
7133 r"""BBox(SHAPE_POLY_SET self, int aClearance=0) -> BOX2I"""
7134 return _pcbnew.SHAPE_POLY_SET_BBox(self, aClearance)
7135
7136 def PointOnEdge(self, aP, aAccuracy=0):
7137 r"""PointOnEdge(SHAPE_POLY_SET self, VECTOR2I aP, int aAccuracy=0) -> bool"""
7138 return _pcbnew.SHAPE_POLY_SET_PointOnEdge(self, aP, aAccuracy)
7139
7140 def Collide(self, *args):
7141 r"""
7142 Collide(SHAPE_POLY_SET self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7143 Collide(SHAPE_POLY_SET self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7144 Collide(SHAPE_POLY_SET self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7145 """
7146 return _pcbnew.SHAPE_POLY_SET_Collide(self, *args)
7147
7148 def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0):
7149 r"""CollideVertex(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
7150 return _pcbnew.SHAPE_POLY_SET_CollideVertex(self, aPoint, aClosestVertex, aClearance)
7151
7152 def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0):
7153 r"""CollideEdge(SHAPE_POLY_SET self, VECTOR2I aPoint, SHAPE_POLY_SET::VERTEX_INDEX * aClosestVertex=None, int aClearance=0) -> bool"""
7154 return _pcbnew.SHAPE_POLY_SET_CollideEdge(self, aPoint, aClosestVertex, aClearance)
7155
7156 def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False):
7157 r"""PointInside(SHAPE_POLY_SET self, VECTOR2I aPt, int aAccuracy=0, bool aUseBBoxCache=False) -> bool"""
7158 return _pcbnew.SHAPE_POLY_SET_PointInside(self, aPt, aAccuracy, aUseBBoxCache)
7159
7161 r"""BuildBBoxCaches(SHAPE_POLY_SET self)"""
7162 return _pcbnew.SHAPE_POLY_SET_BuildBBoxCaches(self)
7163
7165 r"""BBoxFromCaches(SHAPE_POLY_SET self) -> BOX2I"""
7166 return _pcbnew.SHAPE_POLY_SET_BBoxFromCaches(self)
7167
7168 def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False):
7169 r"""Contains(SHAPE_POLY_SET self, VECTOR2I aP, int aSubpolyIndex=-1, int aAccuracy=0, bool aUseBBoxCaches=False) -> bool"""
7170 return _pcbnew.SHAPE_POLY_SET_Contains(self, aP, aSubpolyIndex, aAccuracy, aUseBBoxCaches)
7171
7172 def IsEmpty(self):
7173 r"""IsEmpty(SHAPE_POLY_SET self) -> bool"""
7174 return _pcbnew.SHAPE_POLY_SET_IsEmpty(self)
7175
7176 def RemoveVertex(self, *args):
7177 r"""
7178 RemoveVertex(SHAPE_POLY_SET self, int aGlobalIndex)
7179 RemoveVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX aRelativeIndices)
7180 """
7181 return _pcbnew.SHAPE_POLY_SET_RemoveVertex(self, *args)
7182
7184 r"""RemoveAllContours(SHAPE_POLY_SET self)"""
7185 return _pcbnew.SHAPE_POLY_SET_RemoveAllContours(self)
7186
7187 def RemoveContour(self, aContourIdx, aPolygonIdx=-1):
7188 r"""RemoveContour(SHAPE_POLY_SET self, int aContourIdx, int aPolygonIdx=-1)"""
7189 return _pcbnew.SHAPE_POLY_SET_RemoveContour(self, aContourIdx, aPolygonIdx)
7190
7192 r"""RemoveNullSegments(SHAPE_POLY_SET self) -> int"""
7193 return _pcbnew.SHAPE_POLY_SET_RemoveNullSegments(self)
7194
7195 def SetVertex(self, *args):
7196 r"""
7197 SetVertex(SHAPE_POLY_SET self, SHAPE_POLY_SET::VERTEX_INDEX const & aIndex, VECTOR2I aPos)
7198 SetVertex(SHAPE_POLY_SET self, int aGlobalIndex, VECTOR2I aPos)
7199 """
7200 return _pcbnew.SHAPE_POLY_SET_SetVertex(self, *args)
7201
7202 def TotalVertices(self):
7203 r"""TotalVertices(SHAPE_POLY_SET self) -> int"""
7204 return _pcbnew.SHAPE_POLY_SET_TotalVertices(self)
7205
7206 def DeletePolygon(self, aIdx):
7207 r"""DeletePolygon(SHAPE_POLY_SET self, int aIdx)"""
7208 return _pcbnew.SHAPE_POLY_SET_DeletePolygon(self, aIdx)
7209
7210 def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True):
7211 r"""DeletePolygonAndTriangulationData(SHAPE_POLY_SET self, int aIdx, bool aUpdateHash=True)"""
7212 return _pcbnew.SHAPE_POLY_SET_DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash)
7213
7215 r"""UpdateTriangulationDataHash(SHAPE_POLY_SET self)"""
7216 return _pcbnew.SHAPE_POLY_SET_UpdateTriangulationDataHash(self)
7217
7218 def ChamferPolygon(self, aDistance, aIndex):
7219 r"""ChamferPolygon(SHAPE_POLY_SET self, unsigned int aDistance, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
7220 return _pcbnew.SHAPE_POLY_SET_ChamferPolygon(self, aDistance, aIndex)
7221
7222 def FilletPolygon(self, aRadius, aErrorMax, aIndex):
7223 r"""FilletPolygon(SHAPE_POLY_SET self, unsigned int aRadius, int aErrorMax, int aIndex) -> SHAPE_POLY_SET::POLYGON"""
7224 return _pcbnew.SHAPE_POLY_SET_FilletPolygon(self, aRadius, aErrorMax, aIndex)
7225
7226 def Chamfer(self, aDistance):
7227 r"""Chamfer(SHAPE_POLY_SET self, int aDistance) -> SHAPE_POLY_SET"""
7228 return _pcbnew.SHAPE_POLY_SET_Chamfer(self, aDistance)
7229
7230 def Fillet(self, aRadius, aErrorMax):
7231 r"""Fillet(SHAPE_POLY_SET self, int aRadius, int aErrorMax) -> SHAPE_POLY_SET"""
7232 return _pcbnew.SHAPE_POLY_SET_Fillet(self, aRadius, aErrorMax)
7233
7235 r"""
7236 SquaredDistanceToPolygon(SHAPE_POLY_SET self, VECTOR2I aPoint, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
7237 SquaredDistanceToPolygon(SHAPE_POLY_SET self, SEG aSegment, int aIndex, VECTOR2I aNearest) -> SEG::ecoord
7238 """
7239 return _pcbnew.SHAPE_POLY_SET_SquaredDistanceToPolygon(self, *args)
7240
7241 def SquaredDistance(self, *args):
7242 r"""
7243 SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly, VECTOR2I aNearest) -> SEG::ecoord
7244 SquaredDistance(SHAPE_POLY_SET self, VECTOR2I aPoint, bool aOutlineOnly=False) -> SEG::ecoord
7245 """
7246 return _pcbnew.SHAPE_POLY_SET_SquaredDistance(self, *args)
7247
7248 def SquaredDistanceToSeg(self, aSegment, aNearest=None):
7249 r"""SquaredDistanceToSeg(SHAPE_POLY_SET self, SEG aSegment, VECTOR2I aNearest=None) -> SEG::ecoord"""
7250 return _pcbnew.SHAPE_POLY_SET_SquaredDistanceToSeg(self, aSegment, aNearest)
7251
7252 def IsVertexInHole(self, aGlobalIdx):
7253 r"""IsVertexInHole(SHAPE_POLY_SET self, int aGlobalIdx) -> bool"""
7254 return _pcbnew.SHAPE_POLY_SET_IsVertexInHole(self, aGlobalIdx)
7255
7256 @staticmethod
7257 def BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False):
7258 r"""BuildPolysetFromOrientedPaths(std::vector< SHAPE_LINE_CHAIN,std::allocator< SHAPE_LINE_CHAIN > > const & aPaths, bool aReverseOrientation=False, bool aEvenOdd=False) -> SHAPE_POLY_SET"""
7259 return _pcbnew.SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation, aEvenOdd)
7260
7261# Register SHAPE_POLY_SET in _pcbnew:
7262_pcbnew.SHAPE_POLY_SET_swigregister(SHAPE_POLY_SET)
7263
7264def SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False):
7265 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"""
7266 return _pcbnew.SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation, aEvenOdd)
7267
7269 r"""Proxy of C++ SHAPE_RECT class."""
7270
7271 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7272 __repr__ = _swig_repr
7273
7274 def __init__(self, *args):
7275 r"""
7276 __init__(SHAPE_RECT self) -> SHAPE_RECT
7277 __init__(SHAPE_RECT self, BOX2I aBox) -> SHAPE_RECT
7278 __init__(SHAPE_RECT self, int aX0, int aY0, int aW, int aH) -> SHAPE_RECT
7279 __init__(SHAPE_RECT self, VECTOR2I aP0, int aW, int aH) -> SHAPE_RECT
7280 __init__(SHAPE_RECT self, SHAPE_RECT aOther) -> SHAPE_RECT
7281 """
7282 _pcbnew.SHAPE_RECT_swiginit(self, _pcbnew.new_SHAPE_RECT(*args))
7283
7284 def BBox(self, aClearance=0):
7285 r"""BBox(SHAPE_RECT self, int aClearance=0) -> BOX2I"""
7286 return _pcbnew.SHAPE_RECT_BBox(self, aClearance)
7287
7288 def Diagonal(self):
7289 r"""Diagonal(SHAPE_RECT self) -> int"""
7290 return _pcbnew.SHAPE_RECT_Diagonal(self)
7291
7292 def Collide(self, *args):
7293 r"""
7294 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
7295 Collide(SHAPE_RECT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7296 Collide(SHAPE_RECT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7297 """
7298 return _pcbnew.SHAPE_RECT_Collide(self, *args)
7299
7300 def GetPosition(self):
7301 r"""GetPosition(SHAPE_RECT self) -> VECTOR2I"""
7302 return _pcbnew.SHAPE_RECT_GetPosition(self)
7303
7304 def GetSize(self):
7305 r"""GetSize(SHAPE_RECT self) -> VECTOR2I"""
7306 return _pcbnew.SHAPE_RECT_GetSize(self)
7307
7308 def GetWidth(self):
7309 r"""GetWidth(SHAPE_RECT self) -> int"""
7310 return _pcbnew.SHAPE_RECT_GetWidth(self)
7311
7312 def GetHeight(self):
7313 r"""GetHeight(SHAPE_RECT self) -> int"""
7314 return _pcbnew.SHAPE_RECT_GetHeight(self)
7315
7316 def Rotate(self, *args):
7317 r"""Rotate(SHAPE_RECT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7318 return _pcbnew.SHAPE_RECT_Rotate(self, *args)
7319
7320 def Outline(self):
7321 r"""Outline(SHAPE_RECT self) -> SHAPE_LINE_CHAIN"""
7322 return _pcbnew.SHAPE_RECT_Outline(self)
7323
7324 def Format(self, aCplusPlus=True):
7325 r"""Format(SHAPE_RECT self, bool aCplusPlus=True) -> string"""
7326 return _pcbnew.SHAPE_RECT_Format(self, aCplusPlus)
7327 __swig_destroy__ = _pcbnew.delete_SHAPE_RECT
7328
7329# Register SHAPE_RECT in _pcbnew:
7330_pcbnew.SHAPE_RECT_swigregister(SHAPE_RECT)
7331
7333 r"""Proxy of C++ SHAPE_SEGMENT class."""
7334
7335 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7336 __repr__ = _swig_repr
7337
7338 def __init__(self, *args):
7339 r"""
7340 __init__(SHAPE_SEGMENT self) -> SHAPE_SEGMENT
7341 __init__(SHAPE_SEGMENT self, VECTOR2I aA, VECTOR2I aB, int aWidth=0) -> SHAPE_SEGMENT
7342 __init__(SHAPE_SEGMENT self, SEG aSeg, int aWidth=0) -> SHAPE_SEGMENT
7343 """
7344 _pcbnew.SHAPE_SEGMENT_swiginit(self, _pcbnew.new_SHAPE_SEGMENT(*args))
7345 __swig_destroy__ = _pcbnew.delete_SHAPE_SEGMENT
7346
7347 def BBox(self, aClearance=0):
7348 r"""BBox(SHAPE_SEGMENT self, int aClearance=0) -> BOX2I"""
7349 return _pcbnew.SHAPE_SEGMENT_BBox(self, aClearance)
7350
7351 def Collide(self, *args):
7352 r"""
7353 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance, VECTOR2I aMTV) -> bool
7354 Collide(SHAPE_SEGMENT self, SHAPE aShape, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7355 Collide(SHAPE_SEGMENT self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7356 Collide(SHAPE_SEGMENT self, VECTOR2I aP, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool
7357 """
7358 return _pcbnew.SHAPE_SEGMENT_Collide(self, *args)
7359
7360 def SetSeg(self, aSeg):
7361 r"""SetSeg(SHAPE_SEGMENT self, SEG aSeg)"""
7362 return _pcbnew.SHAPE_SEGMENT_SetSeg(self, aSeg)
7363
7364 def GetSeg(self):
7365 r"""GetSeg(SHAPE_SEGMENT self) -> SEG"""
7366 return _pcbnew.SHAPE_SEGMENT_GetSeg(self)
7367
7368 def SetWidth(self, aWidth):
7369 r"""SetWidth(SHAPE_SEGMENT self, int aWidth)"""
7370 return _pcbnew.SHAPE_SEGMENT_SetWidth(self, aWidth)
7371
7372 def GetWidth(self):
7373 r"""GetWidth(SHAPE_SEGMENT self) -> int"""
7374 return _pcbnew.SHAPE_SEGMENT_GetWidth(self)
7375
7376 def Rotate(self, *args):
7377 r"""Rotate(SHAPE_SEGMENT self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7378 return _pcbnew.SHAPE_SEGMENT_Rotate(self, *args)
7379
7380 def Is45Degree(self, *args):
7381 r"""Is45Degree(SHAPE_SEGMENT self, EDA_ANGLE aTollerance=EDA_ANGLE( 1.0, DEGREES_T )) -> bool"""
7382 return _pcbnew.SHAPE_SEGMENT_Is45Degree(self, *args)
7383
7384 def Format(self, aCplusPlus=True):
7385 r"""Format(SHAPE_SEGMENT self, bool aCplusPlus=True) -> string"""
7386 return _pcbnew.SHAPE_SEGMENT_Format(self, aCplusPlus)
7387
7388# Register SHAPE_SEGMENT in _pcbnew:
7389_pcbnew.SHAPE_SEGMENT_swigregister(SHAPE_SEGMENT)
7390
7392 r"""Proxy of C++ SHAPE_SIMPLE class."""
7393
7394 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7395 __repr__ = _swig_repr
7396
7397 def __init__(self, *args):
7398 r"""
7399 __init__(SHAPE_SIMPLE self) -> SHAPE_SIMPLE
7400 __init__(SHAPE_SIMPLE self, SHAPE_LINE_CHAIN aPoly) -> SHAPE_SIMPLE
7401 __init__(SHAPE_SIMPLE self, SHAPE_SIMPLE aOther) -> SHAPE_SIMPLE
7402 """
7403 _pcbnew.SHAPE_SIMPLE_swiginit(self, _pcbnew.new_SHAPE_SIMPLE(*args))
7404
7405 def Clear(self):
7406 r"""Clear(SHAPE_SIMPLE self)"""
7407 return _pcbnew.SHAPE_SIMPLE_Clear(self)
7408
7409 def BBox(self, aClearance=0):
7410 r"""BBox(SHAPE_SIMPLE self, int aClearance=0) -> BOX2I"""
7411 return _pcbnew.SHAPE_SIMPLE_BBox(self, aClearance)
7412
7413 def PointCount(self):
7414 r"""PointCount(SHAPE_SIMPLE self) -> int"""
7415 return _pcbnew.SHAPE_SIMPLE_PointCount(self)
7416
7417 def CPoint(self, aIndex):
7418 r"""CPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2I"""
7419 return _pcbnew.SHAPE_SIMPLE_CPoint(self, aIndex)
7420
7421 def CDPoint(self, aIndex):
7422 r"""CDPoint(SHAPE_SIMPLE self, int aIndex) -> VECTOR2D const"""
7423 return _pcbnew.SHAPE_SIMPLE_CDPoint(self, aIndex)
7424
7425 def Vertices(self):
7426 r"""Vertices(SHAPE_SIMPLE self) -> SHAPE_LINE_CHAIN"""
7427 return _pcbnew.SHAPE_SIMPLE_Vertices(self)
7428
7429 def Append(self, *args):
7430 r"""
7431 Append(SHAPE_SIMPLE self, int aX, int aY)
7432 Append(SHAPE_SIMPLE self, VECTOR2I aP)
7433 """
7434 return _pcbnew.SHAPE_SIMPLE_Append(self, *args)
7435
7436 def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None):
7437 r"""Collide(SHAPE_SIMPLE self, SEG aSeg, int aClearance=0, int * aActual=None, VECTOR2I aLocation=None) -> bool"""
7438 return _pcbnew.SHAPE_SIMPLE_Collide(self, aSeg, aClearance, aActual, aLocation)
7439
7440 def Rotate(self, *args):
7441 r"""Rotate(SHAPE_SIMPLE self, EDA_ANGLE aAngle, VECTOR2I aCenter={ 0, 0 })"""
7442 return _pcbnew.SHAPE_SIMPLE_Rotate(self, *args)
7443 __swig_destroy__ = _pcbnew.delete_SHAPE_SIMPLE
7444
7445# Register SHAPE_SIMPLE in _pcbnew:
7446_pcbnew.SHAPE_SIMPLE_swigregister(SHAPE_SIMPLE)
7447
7449 r"""Proxy of C++ std::vector< std::shared_ptr< SHAPE > > class."""
7450
7451 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7452 __repr__ = _swig_repr
7453
7454 def iterator(self):
7455 r"""iterator(VECTOR_SHAPEPTR self) -> SwigPyIterator"""
7456 return _pcbnew.VECTOR_SHAPEPTR_iterator(self)
7457 def __iter__(self):
7458 return self.iterator()
7459
7460 def __nonzero__(self):
7461 r"""__nonzero__(VECTOR_SHAPEPTR self) -> bool"""
7462 return _pcbnew.VECTOR_SHAPEPTR___nonzero__(self)
7463
7464 def __bool__(self):
7465 r"""__bool__(VECTOR_SHAPEPTR self) -> bool"""
7466 return _pcbnew.VECTOR_SHAPEPTR___bool__(self)
7467
7468 def __len__(self):
7469 r"""__len__(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7470 return _pcbnew.VECTOR_SHAPEPTR___len__(self)
7471
7472 def __getslice__(self, i, j):
7473 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"""
7474 return _pcbnew.VECTOR_SHAPEPTR___getslice__(self, i, j)
7475
7476 def __setslice__(self, *args):
7477 r"""
7478 __setslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)
7479 __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)
7480 """
7481 return _pcbnew.VECTOR_SHAPEPTR___setslice__(self, *args)
7482
7483 def __delslice__(self, i, j):
7484 r"""__delslice__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::difference_type j)"""
7485 return _pcbnew.VECTOR_SHAPEPTR___delslice__(self, i, j)
7486
7487 def __delitem__(self, *args):
7488 r"""
7489 __delitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i)
7490 __delitem__(VECTOR_SHAPEPTR self, PySliceObject * slice)
7491 """
7492 return _pcbnew.VECTOR_SHAPEPTR___delitem__(self, *args)
7493
7494 def __getitem__(self, *args):
7495 r"""
7496 __getitem__(VECTOR_SHAPEPTR self, PySliceObject * slice) -> VECTOR_SHAPEPTR
7497 __getitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &
7498 """
7499 return _pcbnew.VECTOR_SHAPEPTR___getitem__(self, *args)
7500
7501 def __setitem__(self, *args):
7502 r"""
7503 __setitem__(VECTOR_SHAPEPTR self, PySliceObject * slice, VECTOR_SHAPEPTR v)
7504 __setitem__(VECTOR_SHAPEPTR self, PySliceObject * slice)
7505 __setitem__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::difference_type i, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7506 """
7507 return _pcbnew.VECTOR_SHAPEPTR___setitem__(self, *args)
7508
7509 def pop(self):
7510 r"""pop(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type"""
7511 return _pcbnew.VECTOR_SHAPEPTR_pop(self)
7512
7513 def append(self, x):
7514 r"""append(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7515 return _pcbnew.VECTOR_SHAPEPTR_append(self, x)
7516
7517 def empty(self):
7518 r"""empty(VECTOR_SHAPEPTR self) -> bool"""
7519 return _pcbnew.VECTOR_SHAPEPTR_empty(self)
7520
7521 def size(self):
7522 r"""size(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7523 return _pcbnew.VECTOR_SHAPEPTR_size(self)
7524
7525 def swap(self, v):
7526 r"""swap(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR v)"""
7527 return _pcbnew.VECTOR_SHAPEPTR_swap(self, v)
7528
7529 def begin(self):
7530 r"""begin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7531 return _pcbnew.VECTOR_SHAPEPTR_begin(self)
7532
7533 def end(self):
7534 r"""end(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::iterator"""
7535 return _pcbnew.VECTOR_SHAPEPTR_end(self)
7536
7537 def rbegin(self):
7538 r"""rbegin(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7539 return _pcbnew.VECTOR_SHAPEPTR_rbegin(self)
7540
7541 def rend(self):
7542 r"""rend(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::reverse_iterator"""
7543 return _pcbnew.VECTOR_SHAPEPTR_rend(self)
7544
7545 def clear(self):
7546 r"""clear(VECTOR_SHAPEPTR self)"""
7547 return _pcbnew.VECTOR_SHAPEPTR_clear(self)
7548
7549 def get_allocator(self):
7550 r"""get_allocator(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::allocator_type"""
7551 return _pcbnew.VECTOR_SHAPEPTR_get_allocator(self)
7552
7553 def pop_back(self):
7554 r"""pop_back(VECTOR_SHAPEPTR self)"""
7555 return _pcbnew.VECTOR_SHAPEPTR_pop_back(self)
7556
7557 def erase(self, *args):
7558 r"""
7559 erase(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::iterator pos) -> std::vector< std::shared_ptr< SHAPE > >::iterator
7560 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
7561 """
7562 return _pcbnew.VECTOR_SHAPEPTR_erase(self, *args)
7563
7564 def __init__(self, *args):
7565 r"""
7566 __init__(VECTOR_SHAPEPTR self) -> VECTOR_SHAPEPTR
7567 __init__(VECTOR_SHAPEPTR self, VECTOR_SHAPEPTR other) -> VECTOR_SHAPEPTR
7568 __init__(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type size) -> VECTOR_SHAPEPTR
7569 __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
7570 """
7571 _pcbnew.VECTOR_SHAPEPTR_swiginit(self, _pcbnew.new_VECTOR_SHAPEPTR(*args))
7572
7573 def push_back(self, x):
7574 r"""push_back(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7575 return _pcbnew.VECTOR_SHAPEPTR_push_back(self, x)
7576
7577 def front(self):
7578 r"""front(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7579 return _pcbnew.VECTOR_SHAPEPTR_front(self)
7580
7581 def back(self):
7582 r"""back(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::value_type const &"""
7583 return _pcbnew.VECTOR_SHAPEPTR_back(self)
7584
7585 def assign(self, n, x):
7586 r"""assign(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)"""
7587 return _pcbnew.VECTOR_SHAPEPTR_assign(self, n, x)
7588
7589 def resize(self, *args):
7590 r"""
7591 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size)
7592 resize(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type new_size, std::vector< std::shared_ptr< SHAPE > >::value_type const & x)
7593 """
7594 return _pcbnew.VECTOR_SHAPEPTR_resize(self, *args)
7595
7596 def insert(self, *args):
7597 r"""
7598 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
7599 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)
7600 """
7601 return _pcbnew.VECTOR_SHAPEPTR_insert(self, *args)
7602
7603 def reserve(self, n):
7604 r"""reserve(VECTOR_SHAPEPTR self, std::vector< std::shared_ptr< SHAPE > >::size_type n)"""
7605 return _pcbnew.VECTOR_SHAPEPTR_reserve(self, n)
7606
7607 def capacity(self):
7608 r"""capacity(VECTOR_SHAPEPTR self) -> std::vector< std::shared_ptr< SHAPE > >::size_type"""
7609 return _pcbnew.VECTOR_SHAPEPTR_capacity(self)
7610
7611 def __iter__(self):
7612 it = self.iterator()
7613 try:
7614 while True:
7615 item = it.next() # throws StopIteration when iterator reached the end.
7616 yield item.Cast()
7617 except StopIteration:
7618 return
7619
7620 __swig_destroy__ = _pcbnew.delete_VECTOR_SHAPEPTR
7621
7622# Register VECTOR_SHAPEPTR in _pcbnew:
7623_pcbnew.VECTOR_SHAPEPTR_swigregister(VECTOR_SHAPEPTR)
7624
7625
7627 r"""Cast_to_SHAPE_ARC(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_ARC >"""
7628 return _pcbnew.Cast_to_SHAPE_ARC(_self)
7629
7631 r"""Cast_to_SHAPE_CIRCLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_CIRCLE >"""
7632 return _pcbnew.Cast_to_SHAPE_CIRCLE(_self)
7633
7635 r"""Cast_to_SHAPE_COMPOUND(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_COMPOUND >"""
7636 return _pcbnew.Cast_to_SHAPE_COMPOUND(_self)
7637
7639 r"""Cast_to_SHAPE_LINE_CHAIN(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_LINE_CHAIN >"""
7640 return _pcbnew.Cast_to_SHAPE_LINE_CHAIN(_self)
7641
7643 r"""Cast_to_SHAPE_POLY_SET(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_POLY_SET >"""
7644 return _pcbnew.Cast_to_SHAPE_POLY_SET(_self)
7645
7647 r"""Cast_to_SHAPE_RECT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_RECT >"""
7648 return _pcbnew.Cast_to_SHAPE_RECT(_self)
7649
7651 r"""Cast_to_SHAPE_SEGMENT(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SEGMENT >"""
7652 return _pcbnew.Cast_to_SHAPE_SEGMENT(_self)
7653
7655 r"""Cast_to_SHAPE_SIMPLE(std::shared_ptr< SHAPE > _self) -> std::shared_ptr< SHAPE_SIMPLE >"""
7656 return _pcbnew.Cast_to_SHAPE_SIMPLE(_self)
7657
7658def IsUTF8(aString):
7659 r"""IsUTF8(char const * aString) -> bool"""
7660 return _pcbnew.IsUTF8(aString)
7662 r"""Proxy of C++ UTF8 class."""
7663
7664 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7665 __repr__ = _swig_repr
7666
7667 def __init__(self, *args):
7668 r"""
7669 __init__(UTF8 self, wxString o) -> UTF8
7670 __init__(UTF8 self, char const * txt) -> UTF8
7671 __init__(UTF8 self, wchar_t const * txt) -> UTF8
7672 __init__(UTF8 self, string o) -> UTF8
7673 __init__(UTF8 self) -> UTF8
7674 """
7675 _pcbnew.UTF8_swiginit(self, _pcbnew.new_UTF8(*args))
7676 __swig_destroy__ = _pcbnew.delete_UTF8
7677
7678 def c_str(self):
7679 r"""c_str(UTF8 self) -> char const *"""
7680 return _pcbnew.UTF8_c_str(self)
7681
7682 def empty(self):
7683 r"""empty(UTF8 self) -> bool"""
7684 return _pcbnew.UTF8_empty(self)
7685
7686 def find(self, *args):
7687 r"""
7688 find(UTF8 self, char c) -> std::string::size_type
7689 find(UTF8 self, char c, size_t s) -> std::string::size_type
7690 """
7691 return _pcbnew.UTF8_find(self, *args)
7692
7693 def clear(self):
7694 r"""clear(UTF8 self)"""
7695 return _pcbnew.UTF8_clear(self)
7696
7697 def length(self):
7698 r"""length(UTF8 self) -> std::string::size_type"""
7699 return _pcbnew.UTF8_length(self)
7700
7701 def size(self):
7702 r"""size(UTF8 self) -> std::string::size_type"""
7703 return _pcbnew.UTF8_size(self)
7704
7705 def compare(self, s):
7706 r"""compare(UTF8 self, string s) -> int"""
7707 return _pcbnew.UTF8_compare(self, s)
7708
7709 def __eq__(self, *args):
7710 r"""
7711 __eq__(UTF8 self, UTF8 rhs) -> bool
7712 __eq__(UTF8 self, string rhs) -> bool
7713 __eq__(UTF8 self, char const * s) -> bool
7714 """
7715 return _pcbnew.UTF8___eq__(self, *args)
7716
7717 def find_first_of(self, str, pos=0):
7718 r"""find_first_of(UTF8 self, string str, std::string::size_type pos=0) -> std::string::size_type"""
7719 return _pcbnew.UTF8_find_first_of(self, str, pos)
7720
7721 def __iadd__(self, *args):
7722 r"""
7723 __iadd__(UTF8 self, UTF8 str) -> UTF8
7724 __iadd__(UTF8 self, char ch) -> UTF8
7725 __iadd__(UTF8 self, char const * s) -> UTF8
7726 __iadd__(UTF8 self, unsigned int w_ch) -> UTF8
7727 """
7728 return _pcbnew.UTF8___iadd__(self, *args)
7729 npos = _pcbnew.UTF8_npos
7730
7731
7732 def substr(self, *args):
7733 r"""substr(UTF8 self, size_t pos=0, size_t len=npos) -> string"""
7734 return _pcbnew.UTF8_substr(self, *args)
7735
7737 r"""utf8_to_string(UTF8 self) -> string"""
7738 return _pcbnew.UTF8_utf8_to_string(self)
7739
7740 def wx_str(self):
7741 r"""wx_str(UTF8 self) -> wxString"""
7742 return _pcbnew.UTF8_wx_str(self)
7743
7745 r"""utf8_to_wxstring(UTF8 self) -> wxString"""
7746 return _pcbnew.UTF8_utf8_to_wxstring(self)
7747
7748 def begin(self):
7749 r"""begin(UTF8 self) -> std::string::const_iterator"""
7750 return _pcbnew.UTF8_begin(self)
7751
7752 def end(self):
7753 r"""end(UTF8 self) -> std::string::const_iterator"""
7754 return _pcbnew.UTF8_end(self)
7755
7756 def Cast_to_CChar(self):
7757 r"""Cast_to_CChar(UTF8 self) -> char const *"""
7758 return _pcbnew.UTF8_Cast_to_CChar(self)
7759
7760
7761 # Get the char buffer of the UTF8 string
7762 def GetChars(self):
7763 return self.Cast_to_CChar()
7764
7765 # Convert the UTF8 string to a python string
7766 # Same as GetChars(), but more easy to use in print command
7767 def __str__(self):
7768 return self.GetChars()
7769
7770
7771
7772# Register UTF8 in _pcbnew:
7773_pcbnew.UTF8_swigregister(UTF8)
7774
7776 r"""Proxy of C++ LIB_ID class."""
7777
7778 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7779 __repr__ = _swig_repr
7780
7781 def __init__(self, *args):
7782 r"""
7783 __init__(LIB_ID self) -> LIB_ID
7784 __init__(LIB_ID self, wxString aLibraryName, wxString aItemName) -> LIB_ID
7785 """
7786 _pcbnew.LIB_ID_swiginit(self, _pcbnew.new_LIB_ID(*args))
7787
7788 def Parse(self, aId, aFix=False):
7789 r"""Parse(LIB_ID self, UTF8 aId, bool aFix=False) -> int"""
7790 return _pcbnew.LIB_ID_Parse(self, aId, aFix)
7791
7793 r"""GetLibNickname(LIB_ID self) -> UTF8"""
7794 return _pcbnew.LIB_ID_GetLibNickname(self)
7795
7797 r"""GetUniStringLibNickname(LIB_ID self) -> wxString"""
7798 return _pcbnew.LIB_ID_GetUniStringLibNickname(self)
7799
7800 def SetLibNickname(self, aLibNickname):
7801 r"""SetLibNickname(LIB_ID self, UTF8 aLibNickname) -> int"""
7802 return _pcbnew.LIB_ID_SetLibNickname(self, aLibNickname)
7803
7805 r"""GetLibItemName(LIB_ID self) -> UTF8"""
7806 return _pcbnew.LIB_ID_GetLibItemName(self)
7807
7809 r"""GetUniStringLibItemName(LIB_ID self) -> wxString"""
7810 return _pcbnew.LIB_ID_GetUniStringLibItemName(self)
7811
7812 def SetLibItemName(self, aLibItemName):
7813 r"""SetLibItemName(LIB_ID self, UTF8 aLibItemName) -> int"""
7814 return _pcbnew.LIB_ID_SetLibItemName(self, aLibItemName)
7815
7817 r"""GetSubLibraryName(LIB_ID self) -> UTF8"""
7818 return _pcbnew.LIB_ID_GetSubLibraryName(self)
7819
7820 def SetSubLibraryName(self, aName):
7821 r"""SetSubLibraryName(LIB_ID self, UTF8 aName)"""
7822 return _pcbnew.LIB_ID_SetSubLibraryName(self, aName)
7823
7825 r"""GetUniStringSubLibraryName(LIB_ID self) -> wxString"""
7826 return _pcbnew.LIB_ID_GetUniStringSubLibraryName(self)
7827
7829 r"""GetFullLibraryName(LIB_ID self) -> wxString"""
7830 return _pcbnew.LIB_ID_GetFullLibraryName(self)
7831
7833 r"""GetUniStringLibId(LIB_ID self) -> wxString"""
7834 return _pcbnew.LIB_ID_GetUniStringLibId(self)
7835
7836 @staticmethod
7837 def Format(*args):
7838 r"""
7839 Format() -> UTF8
7840 Format(UTF8 aLibraryName, UTF8 aLibItemName) -> UTF8
7841 """
7842 return _pcbnew.LIB_ID_Format(*args)
7843
7844 def IsValid(self):
7845 r"""IsValid(LIB_ID self) -> bool"""
7846 return _pcbnew.LIB_ID_IsValid(self)
7847
7848 def IsLegacy(self):
7849 r"""IsLegacy(LIB_ID self) -> bool"""
7850 return _pcbnew.LIB_ID_IsLegacy(self)
7851
7852 def clear(self):
7853 r"""clear(LIB_ID self)"""
7854 return _pcbnew.LIB_ID_clear(self)
7855
7856 def empty(self):
7857 r"""empty(LIB_ID self) -> bool"""
7858 return _pcbnew.LIB_ID_empty(self)
7859
7860 def compare(self, aLibId):
7861 r"""compare(LIB_ID self, LIB_ID aLibId) -> int"""
7862 return _pcbnew.LIB_ID_compare(self, aLibId)
7863
7864 def __lt__(self, aLibId):
7865 r"""__lt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7866 return _pcbnew.LIB_ID___lt__(self, aLibId)
7867
7868 def __gt__(self, aLibId):
7869 r"""__gt__(LIB_ID self, LIB_ID aLibId) -> bool"""
7870 return _pcbnew.LIB_ID___gt__(self, aLibId)
7871
7872 def __eq__(self, aLibId):
7873 r"""__eq__(LIB_ID self, LIB_ID aLibId) -> bool"""
7874 return _pcbnew.LIB_ID___eq__(self, aLibId)
7875
7876 def __ne__(self, aLibId):
7877 r"""__ne__(LIB_ID self, LIB_ID aLibId) -> bool"""
7878 return _pcbnew.LIB_ID___ne__(self, aLibId)
7879
7880 @staticmethod
7881 def HasIllegalChars(aLibItemName):
7882 r"""HasIllegalChars(UTF8 aLibItemName) -> int"""
7883 return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName)
7884
7885 @staticmethod
7886 def FixIllegalChars(aLibItemName, aLib):
7887 r"""FixIllegalChars(UTF8 aLibItemName, bool aLib) -> UTF8"""
7888 return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aLib)
7889
7890 @staticmethod
7892 r"""FindIllegalLibraryNameChar(UTF8 aLibraryName) -> unsigned int"""
7893 return _pcbnew.LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
7894 __swig_destroy__ = _pcbnew.delete_LIB_ID
7895
7896# Register LIB_ID in _pcbnew:
7897_pcbnew.LIB_ID_swigregister(LIB_ID)
7898
7899def LIB_ID_Format(*args):
7900 r"""
7901 LIB_ID_Format() -> UTF8
7902 LIB_ID_Format(UTF8 aLibraryName, UTF8 aLibItemName) -> UTF8
7903 """
7904 return _pcbnew.LIB_ID_Format(*args)
7905
7906def LIB_ID_HasIllegalChars(aLibItemName):
7907 r"""LIB_ID_HasIllegalChars(UTF8 aLibItemName) -> int"""
7908 return _pcbnew.LIB_ID_HasIllegalChars(aLibItemName)
7909
7910def LIB_ID_FixIllegalChars(aLibItemName, aLib):
7911 r"""LIB_ID_FixIllegalChars(UTF8 aLibItemName, bool aLib) -> UTF8"""
7912 return _pcbnew.LIB_ID_FixIllegalChars(aLibItemName, aLib)
7913
7915 r"""LIB_ID_FindIllegalLibraryNameChar(UTF8 aLibraryName) -> unsigned int"""
7916 return _pcbnew.LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
7917
7919 r"""Proxy of C++ BASE_SET class."""
7920
7921 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7922
7923 def __init__(self, *args, **kwargs):
7924 raise AttributeError("No constructor defined")
7925 __repr__ = _swig_repr
7926 __swig_destroy__ = _pcbnew.delete_BASE_SET
7927
7928# Register BASE_SET in _pcbnew:
7929_pcbnew.BASE_SET_swigregister(BASE_SET)
7930
7932 r"""Proxy of C++ PCB_IO_MGR class."""
7933
7934 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7935 __repr__ = _swig_repr
7936 PCB_FILE_UNKNOWN = _pcbnew.PCB_IO_MGR_PCB_FILE_UNKNOWN
7937
7938 KICAD_SEXP = _pcbnew.PCB_IO_MGR_KICAD_SEXP
7939
7940 LEGACY = _pcbnew.PCB_IO_MGR_LEGACY
7941
7942 ALTIUM_CIRCUIT_MAKER = _pcbnew.PCB_IO_MGR_ALTIUM_CIRCUIT_MAKER
7943
7944 ALTIUM_CIRCUIT_STUDIO = _pcbnew.PCB_IO_MGR_ALTIUM_CIRCUIT_STUDIO
7945
7946 ALTIUM_DESIGNER = _pcbnew.PCB_IO_MGR_ALTIUM_DESIGNER
7947
7948 CADSTAR_PCB_ARCHIVE = _pcbnew.PCB_IO_MGR_CADSTAR_PCB_ARCHIVE
7949
7950 EAGLE = _pcbnew.PCB_IO_MGR_EAGLE
7951
7952 EASYEDA = _pcbnew.PCB_IO_MGR_EASYEDA
7953
7954 EASYEDAPRO = _pcbnew.PCB_IO_MGR_EASYEDAPRO
7955
7956 FABMASTER = _pcbnew.PCB_IO_MGR_FABMASTER
7957
7958 GEDA_PCB = _pcbnew.PCB_IO_MGR_GEDA_PCB
7959
7960 PCAD = _pcbnew.PCB_IO_MGR_PCAD
7961
7962 SOLIDWORKS_PCB = _pcbnew.PCB_IO_MGR_SOLIDWORKS_PCB
7963
7964 IPC2581 = _pcbnew.PCB_IO_MGR_IPC2581
7965
7966 FILE_TYPE_NONE = _pcbnew.PCB_IO_MGR_FILE_TYPE_NONE
7967
7968
7969 @staticmethod
7970 def PluginFind(aFileType):
7971 r"""PluginFind(PCB_IO_MGR::PCB_FILE_T aFileType) -> PCB_IO"""
7972 return _pcbnew.PCB_IO_MGR_PluginFind(aFileType)
7973
7974 @staticmethod
7975 def ShowType(aFileType):
7976 r"""ShowType(PCB_IO_MGR::PCB_FILE_T aFileType) -> wxString"""
7977 return _pcbnew.PCB_IO_MGR_ShowType(aFileType)
7978
7979 @staticmethod
7980 def EnumFromStr(aFileType):
7981 r"""EnumFromStr(wxString aFileType) -> PCB_IO_MGR::PCB_FILE_T"""
7982 return _pcbnew.PCB_IO_MGR_EnumFromStr(aFileType)
7983
7984 @staticmethod
7985 def FindPluginTypeFromBoardPath(aFileName, aCtl=0):
7986 r"""FindPluginTypeFromBoardPath(wxString aFileName, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
7987 return _pcbnew.PCB_IO_MGR_FindPluginTypeFromBoardPath(aFileName, aCtl)
7988
7989 @staticmethod
7990 def GuessPluginTypeFromLibPath(aLibPath, aCtl=0):
7991 r"""GuessPluginTypeFromLibPath(wxString aLibPath, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
7992 return _pcbnew.PCB_IO_MGR_GuessPluginTypeFromLibPath(aLibPath, aCtl)
7993
7994 @staticmethod
7995 def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None):
7996 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"""
7997 return _pcbnew.PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
7998
7999 @staticmethod
8000 def Save(aFileType, aFileName, aBoard, aProperties=None):
8001 r"""Save(PCB_IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
8002 return _pcbnew.PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
8003
8004 @staticmethod
8005 def ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath):
8006 r"""ConvertLibrary(STRING_UTF8_MAP * aOldFileProps, wxString aOldFilePath, wxString aNewFilePath) -> bool"""
8007 return _pcbnew.PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath)
8008
8009 def __init__(self):
8010 r"""__init__(PCB_IO_MGR self) -> PCB_IO_MGR"""
8011 _pcbnew.PCB_IO_MGR_swiginit(self, _pcbnew.new_PCB_IO_MGR())
8012 __swig_destroy__ = _pcbnew.delete_PCB_IO_MGR
8013
8014# Register PCB_IO_MGR in _pcbnew:
8015_pcbnew.PCB_IO_MGR_swigregister(PCB_IO_MGR)
8016
8018 r"""PCB_IO_MGR_PluginFind(PCB_IO_MGR::PCB_FILE_T aFileType) -> PCB_IO"""
8019 return _pcbnew.PCB_IO_MGR_PluginFind(aFileType)
8020
8021def PCB_IO_MGR_ShowType(aFileType):
8022 r"""PCB_IO_MGR_ShowType(PCB_IO_MGR::PCB_FILE_T aFileType) -> wxString"""
8023 return _pcbnew.PCB_IO_MGR_ShowType(aFileType)
8024
8026 r"""PCB_IO_MGR_EnumFromStr(wxString aFileType) -> PCB_IO_MGR::PCB_FILE_T"""
8027 return _pcbnew.PCB_IO_MGR_EnumFromStr(aFileType)
8028
8030 r"""PCB_IO_MGR_FindPluginTypeFromBoardPath(wxString aFileName, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
8031 return _pcbnew.PCB_IO_MGR_FindPluginTypeFromBoardPath(aFileName, aCtl)
8032
8034 r"""PCB_IO_MGR_GuessPluginTypeFromLibPath(wxString aLibPath, int aCtl=0) -> PCB_IO_MGR::PCB_FILE_T"""
8035 return _pcbnew.PCB_IO_MGR_GuessPluginTypeFromLibPath(aLibPath, aCtl)
8036
8037def PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None):
8038 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"""
8039 return _pcbnew.PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe, aProperties, aProject, aProgressReporter)
8040
8041def PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties=None):
8042 r"""PCB_IO_MGR_Save(PCB_IO_MGR::PCB_FILE_T aFileType, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
8043 return _pcbnew.PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties)
8044
8045def PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath):
8046 r"""PCB_IO_MGR_ConvertLibrary(STRING_UTF8_MAP * aOldFileProps, wxString aOldFilePath, wxString aNewFilePath) -> bool"""
8047 return _pcbnew.PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath)
8048
8050 r"""Proxy of C++ PCB_IO class."""
8051
8052 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8053
8054 def __init__(self, *args, **kwargs):
8055 raise AttributeError("No constructor defined - class is abstract")
8056 __repr__ = _swig_repr
8057
8059 r"""GetBoardFileDesc(PCB_IO self) -> IO_BASE::IO_FILE_DESC const"""
8060 return _pcbnew.PCB_IO_GetBoardFileDesc(self)
8061
8062 def CanReadBoard(self, aFileName):
8063 r"""CanReadBoard(PCB_IO self, wxString aFileName) -> bool"""
8064 return _pcbnew.PCB_IO_CanReadBoard(self, aFileName)
8065
8066 def CanReadFootprint(self, aFileName):
8067 r"""CanReadFootprint(PCB_IO self, wxString aFileName) -> bool"""
8068 return _pcbnew.PCB_IO_CanReadFootprint(self, aFileName)
8069
8070 def SetQueryUserCallback(self, aCallback):
8071 r"""SetQueryUserCallback(PCB_IO self, std::function< bool (wxString,int,wxString,wxString) > aCallback)"""
8072 return _pcbnew.PCB_IO_SetQueryUserCallback(self, aCallback)
8073
8074 def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None):
8075 r"""LoadBoard(PCB_IO self, wxString aFileName, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None) -> BOARD"""
8076 return _pcbnew.PCB_IO_LoadBoard(self, aFileName, aAppendToMe, aProperties, aProject)
8077
8079 r"""GetImportedCachedLibraryFootprints(PCB_IO self) -> std::vector< FOOTPRINT *,std::allocator< FOOTPRINT * > >"""
8080 return _pcbnew.PCB_IO_GetImportedCachedLibraryFootprints(self)
8081
8082 def SaveBoard(self, aFileName, aBoard, aProperties=None):
8083 r"""SaveBoard(PCB_IO self, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
8084 return _pcbnew.PCB_IO_SaveBoard(self, aFileName, aBoard, aProperties)
8085
8086 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
8087 r"""FootprintEnumerate(PCB_IO self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, STRING_UTF8_MAP const * aProperties=None)"""
8088 return _pcbnew.PCB_IO_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
8089
8090 def GetLibraryTimestamp(self, aLibraryPath):
8091 r"""GetLibraryTimestamp(PCB_IO self, wxString aLibraryPath) -> long long"""
8092 return _pcbnew.PCB_IO_GetLibraryTimestamp(self, aLibraryPath)
8093
8094 def PrefetchLib(self, aLibraryPath, aProperties=None):
8095 r"""PrefetchLib(PCB_IO self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None)"""
8096 return _pcbnew.PCB_IO_PrefetchLib(self, aLibraryPath, aProperties)
8097
8098 def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None):
8099 r"""ImportFootprint(PCB_IO self, wxString aFootprintPath, wxString aFootprintNameOut, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8100 return _pcbnew.PCB_IO_ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties)
8101
8102 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
8103 r"""FootprintLoad(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8104 return _pcbnew.PCB_IO_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
8105
8106 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
8107 r"""GetEnumeratedFootprint(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8108 return _pcbnew.PCB_IO_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
8109
8110 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
8111 r"""FootprintExists(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> bool"""
8112 return _pcbnew.PCB_IO_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
8113
8114 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
8115 r"""FootprintSave(PCB_IO self, wxString aLibraryPath, FOOTPRINT aFootprint, STRING_UTF8_MAP const * aProperties=None)"""
8116 return _pcbnew.PCB_IO_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
8117
8118 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
8119 r"""FootprintDelete(PCB_IO self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None)"""
8120 return _pcbnew.PCB_IO_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
8121
8122 def GetLibraryOptions(self, aListToAppendTo):
8123 r"""GetLibraryOptions(PCB_IO self, STRING_UTF8_MAP * aListToAppendTo)"""
8124 return _pcbnew.PCB_IO_GetLibraryOptions(self, aListToAppendTo)
8125 __swig_destroy__ = _pcbnew.delete_PCB_IO
8126
8127 def footprintPyEnumerate(self, aLibraryPath, aExitOnError):
8128 r"""footprintPyEnumerate(PCB_IO self, wxString aLibraryPath, bool aExitOnError) -> wxArrayString"""
8129 return _pcbnew.PCB_IO_footprintPyEnumerate(self, aLibraryPath, aExitOnError)
8130
8131 def FootprintEnumerate(self, libname):
8132 return self.footprintPyEnumerate( libname, True )
8133
8134 # Old function name for compatibility with pre-v8 scripts, use CreateLibrary() for new scripts.
8135 def FootprintLibCreate(self, aLibraryPath, aProperties=None):
8136 self.CreateLibrary(aLibraryPath, aProperties)
8137
8138 # Old function name for compatibility with pre-v8 scripts, use DeleteLibrary() for new scripts.
8139 def FootprintLibDelete(self, aLibraryPath, aProperties=None):
8140 return self.DeleteLibrary(aLibraryPath, aProperties)
8141
8142 # Old function name for compatibility with pre-v8 scripts, use IsLibraryWritable() for new scripts.
8143 def IsFootprintLibWritable(self, aLibraryPath):
8144 return self.IsLibraryWritable(aLibraryPath)
8145
8146
8147# Register PCB_IO in _pcbnew:
8148_pcbnew.PCB_IO_swigregister(PCB_IO)
8149
8150SEXPR_BOARD_FILE_VERSION = _pcbnew.SEXPR_BOARD_FILE_VERSION
8151
8152BOARD_FILE_HOST_VERSION = _pcbnew.BOARD_FILE_HOST_VERSION
8153
8154LEGACY_ARC_FORMATTING = _pcbnew.LEGACY_ARC_FORMATTING
8155
8156LEGACY_NET_TIES = _pcbnew.LEGACY_NET_TIES
8157
8158FIRST_NORMALIZED_VERISON = _pcbnew.FIRST_NORMALIZED_VERISON
8159
8161 r"""Proxy of C++ FP_CACHE_ITEM class."""
8162
8163 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8164 __repr__ = _swig_repr
8165
8166 def __init__(self, aFootprint, aFileName):
8167 r"""__init__(FP_CACHE_ITEM self, FOOTPRINT aFootprint, WX_FILENAME const & aFileName) -> FP_CACHE_ITEM"""
8168 _pcbnew.FP_CACHE_ITEM_swiginit(self, _pcbnew.new_FP_CACHE_ITEM(aFootprint, aFileName))
8169
8170 def GetFileName(self):
8171 r"""GetFileName(FP_CACHE_ITEM self) -> WX_FILENAME const &"""
8172 return _pcbnew.FP_CACHE_ITEM_GetFileName(self)
8173
8174 def SetFilePath(self, aFilePath):
8175 r"""SetFilePath(FP_CACHE_ITEM self, wxString aFilePath)"""
8176 return _pcbnew.FP_CACHE_ITEM_SetFilePath(self, aFilePath)
8177
8178 def GetFootprint(self):
8179 r"""GetFootprint(FP_CACHE_ITEM self) -> FOOTPRINT"""
8180 return _pcbnew.FP_CACHE_ITEM_GetFootprint(self)
8181 __swig_destroy__ = _pcbnew.delete_FP_CACHE_ITEM
8182
8183# Register FP_CACHE_ITEM in _pcbnew:
8184_pcbnew.FP_CACHE_ITEM_swigregister(FP_CACHE_ITEM)
8185
8187 r"""Proxy of C++ FP_CACHE class."""
8188
8189 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8190 __repr__ = _swig_repr
8191
8192 def __init__(self, aOwner, aLibraryPath):
8193 r"""__init__(FP_CACHE self, PCB_IO_KICAD_SEXPR aOwner, wxString aLibraryPath) -> FP_CACHE"""
8194 _pcbnew.FP_CACHE_swiginit(self, _pcbnew.new_FP_CACHE(aOwner, aLibraryPath))
8195
8196 def GetPath(self):
8197 r"""GetPath(FP_CACHE self) -> wxString"""
8198 return _pcbnew.FP_CACHE_GetPath(self)
8199
8200 def IsWritable(self):
8201 r"""IsWritable(FP_CACHE self) -> bool"""
8202 return _pcbnew.FP_CACHE_IsWritable(self)
8203
8204 def Exists(self):
8205 r"""Exists(FP_CACHE self) -> bool"""
8206 return _pcbnew.FP_CACHE_Exists(self)
8207
8208 def GetFootprints(self):
8209 r"""GetFootprints(FP_CACHE self) -> FP_CACHE_FOOTPRINT_MAP &"""
8210 return _pcbnew.FP_CACHE_GetFootprints(self)
8211
8212 def Save(self, aFootprint=None):
8213 r"""Save(FP_CACHE self, FOOTPRINT aFootprint=None)"""
8214 return _pcbnew.FP_CACHE_Save(self, aFootprint)
8215
8216 def Load(self):
8217 r"""Load(FP_CACHE self)"""
8218 return _pcbnew.FP_CACHE_Load(self)
8219
8220 def Remove(self, aFootprintName):
8221 r"""Remove(FP_CACHE self, wxString aFootprintName)"""
8222 return _pcbnew.FP_CACHE_Remove(self, aFootprintName)
8223
8224 @staticmethod
8225 def GetTimestamp(aLibPath):
8226 r"""GetTimestamp(wxString aLibPath) -> long long"""
8227 return _pcbnew.FP_CACHE_GetTimestamp(aLibPath)
8228
8229 def IsModified(self):
8230 r"""IsModified(FP_CACHE self) -> bool"""
8231 return _pcbnew.FP_CACHE_IsModified(self)
8232
8233 def IsPath(self, aPath):
8234 r"""IsPath(FP_CACHE self, wxString aPath) -> bool"""
8235 return _pcbnew.FP_CACHE_IsPath(self, aPath)
8236
8237 def SetPath(self, aPath):
8238 r"""SetPath(FP_CACHE self, wxString aPath)"""
8239 return _pcbnew.FP_CACHE_SetPath(self, aPath)
8240 __swig_destroy__ = _pcbnew.delete_FP_CACHE
8241
8242# Register FP_CACHE in _pcbnew:
8243_pcbnew.FP_CACHE_swigregister(FP_CACHE)
8244
8246 r"""FP_CACHE_GetTimestamp(wxString aLibPath) -> long long"""
8247 return _pcbnew.FP_CACHE_GetTimestamp(aLibPath)
8248
8250 r"""Proxy of C++ PCB_IO_KICAD_SEXPR class."""
8251
8252 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8253 __repr__ = _swig_repr
8254
8256 r"""GetLibraryFileDesc(PCB_IO_KICAD_SEXPR self) -> IO_BASE::IO_FILE_DESC const"""
8257 return _pcbnew.PCB_IO_KICAD_SEXPR_GetLibraryFileDesc(self)
8258
8260 r"""GetLibraryDesc(PCB_IO_KICAD_SEXPR self) -> IO_BASE::IO_FILE_DESC const"""
8261 return _pcbnew.PCB_IO_KICAD_SEXPR_GetLibraryDesc(self)
8262
8263 def SaveBoard(self, aFileName, aBoard, aProperties=None):
8264 r"""SaveBoard(PCB_IO_KICAD_SEXPR self, wxString aFileName, BOARD aBoard, STRING_UTF8_MAP const * aProperties=None)"""
8265 return _pcbnew.PCB_IO_KICAD_SEXPR_SaveBoard(self, aFileName, aBoard, aProperties)
8266
8267 def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None):
8268 r"""LoadBoard(PCB_IO_KICAD_SEXPR self, wxString aFileName, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties=None, PROJECT * aProject=None) -> BOARD"""
8269 return _pcbnew.PCB_IO_KICAD_SEXPR_LoadBoard(self, aFileName, aAppendToMe, aProperties, aProject)
8270
8271 def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount):
8272 r"""DoLoad(PCB_IO_KICAD_SEXPR self, LINE_READER aReader, BOARD aAppendToMe, STRING_UTF8_MAP const * aProperties, PROGRESS_REPORTER * aProgressReporter, unsigned int aLineCount) -> BOARD"""
8273 return _pcbnew.PCB_IO_KICAD_SEXPR_DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
8274
8275 def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None):
8276 r"""FootprintEnumerate(PCB_IO_KICAD_SEXPR self, wxArrayString & aFootprintNames, wxString aLibraryPath, bool aBestEfforts, STRING_UTF8_MAP const * aProperties=None)"""
8277 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties)
8278
8279 def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None):
8280 r"""GetEnumeratedFootprint(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8281 return _pcbnew.PCB_IO_KICAD_SEXPR_GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties)
8282
8283 def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None):
8284 r"""FootprintExists(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None) -> bool"""
8285 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintExists(self, aLibraryPath, aFootprintName, aProperties)
8286
8287 def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None):
8288 r"""ImportFootprint(PCB_IO_KICAD_SEXPR self, wxString aFootprintPath, wxString aFootprintNameOut, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8289 return _pcbnew.PCB_IO_KICAD_SEXPR_ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties)
8290
8291 def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None):
8292 r"""FootprintLoad(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, bool aKeepUUID=False, STRING_UTF8_MAP const * aProperties=None) -> FOOTPRINT"""
8293 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID, aProperties)
8294
8295 def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
8296 r"""FootprintSave(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, FOOTPRINT aFootprint, STRING_UTF8_MAP const * aProperties=None)"""
8297 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
8298
8299 def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
8300 r"""FootprintDelete(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, wxString aFootprintName, STRING_UTF8_MAP const * aProperties=None)"""
8301 return _pcbnew.PCB_IO_KICAD_SEXPR_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
8302
8303 def CreateLibrary(self, aLibraryPath, aProperties=None):
8304 r"""CreateLibrary(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None)"""
8305 return _pcbnew.PCB_IO_KICAD_SEXPR_CreateLibrary(self, aLibraryPath, aProperties)
8306
8307 def DeleteLibrary(self, aLibraryPath, aProperties=None):
8308 r"""DeleteLibrary(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath, STRING_UTF8_MAP const * aProperties=None) -> bool"""
8309 return _pcbnew.PCB_IO_KICAD_SEXPR_DeleteLibrary(self, aLibraryPath, aProperties)
8310
8311 def IsLibraryWritable(self, aLibraryPath):
8312 r"""IsLibraryWritable(PCB_IO_KICAD_SEXPR self, wxString aLibraryPath) -> bool"""
8313 return _pcbnew.PCB_IO_KICAD_SEXPR_IsLibraryWritable(self, aLibraryPath)
8314
8315 def __init__(self, *args):
8316 r"""__init__(PCB_IO_KICAD_SEXPR self, int aControlFlags=(CTL_OMIT_INITIAL_COMMENTS|CTL_OMIT_FOOTPRINT_VERSION)) -> PCB_IO_KICAD_SEXPR"""
8317 _pcbnew.PCB_IO_KICAD_SEXPR_swiginit(self, _pcbnew.new_PCB_IO_KICAD_SEXPR(*args))
8318 __swig_destroy__ = _pcbnew.delete_PCB_IO_KICAD_SEXPR
8319
8320 def Format(self, aItem, aNestLevel=0):
8321 r"""Format(PCB_IO_KICAD_SEXPR self, BOARD_ITEM aItem, int aNestLevel=0)"""
8322 return _pcbnew.PCB_IO_KICAD_SEXPR_Format(self, aItem, aNestLevel)
8323
8324 def GetStringOutput(self, doClear):
8325 r"""GetStringOutput(PCB_IO_KICAD_SEXPR self, bool doClear) -> string"""
8326 return _pcbnew.PCB_IO_KICAD_SEXPR_GetStringOutput(self, doClear)
8327
8328 def SetOutputFormatter(self, aFormatter):
8329 r"""SetOutputFormatter(PCB_IO_KICAD_SEXPR self, OUTPUTFORMATTER aFormatter)"""
8330 return _pcbnew.PCB_IO_KICAD_SEXPR_SetOutputFormatter(self, aFormatter)
8331
8332 def Parse(self, aClipboardSourceInput):
8333 r"""Parse(PCB_IO_KICAD_SEXPR self, wxString aClipboardSourceInput) -> BOARD_ITEM"""
8334 return _pcbnew.PCB_IO_KICAD_SEXPR_Parse(self, aClipboardSourceInput)
8335
8336# Register PCB_IO_KICAD_SEXPR in _pcbnew:
8337_pcbnew.PCB_IO_KICAD_SEXPR_swigregister(PCB_IO_KICAD_SEXPR)
8338
8340 r"""Proxy of C++ PLOT_CONTROLLER class."""
8341
8342 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8343 __repr__ = _swig_repr
8344
8345 def __init__(self, aBoard):
8346 r"""__init__(PLOT_CONTROLLER self, BOARD aBoard) -> PLOT_CONTROLLER"""
8347 _pcbnew.PLOT_CONTROLLER_swiginit(self, _pcbnew.new_PLOT_CONTROLLER(aBoard))
8348 __swig_destroy__ = _pcbnew.delete_PLOT_CONTROLLER
8349
8351 r"""GetPlotOptions(PLOT_CONTROLLER self) -> PCB_PLOT_PARAMS"""
8352 return _pcbnew.PLOT_CONTROLLER_GetPlotOptions(self)
8353
8354 def SetLayer(self, aLayer):
8355 r"""SetLayer(PLOT_CONTROLLER self, int aLayer)"""
8356 return _pcbnew.PLOT_CONTROLLER_SetLayer(self, aLayer)
8357
8358 def GetLayer(self):
8359 r"""GetLayer(PLOT_CONTROLLER self) -> int"""
8360 return _pcbnew.PLOT_CONTROLLER_GetLayer(self)
8361
8362 def IsPlotOpen(self):
8363 r"""IsPlotOpen(PLOT_CONTROLLER self) -> bool"""
8364 return _pcbnew.PLOT_CONTROLLER_IsPlotOpen(self)
8365
8366 def ClosePlot(self):
8367 r"""ClosePlot(PLOT_CONTROLLER self)"""
8368 return _pcbnew.PLOT_CONTROLLER_ClosePlot(self)
8369
8370 def OpenPlotfile(self, *args):
8371 r"""OpenPlotfile(PLOT_CONTROLLER self, wxString aSuffix, PLOT_FORMAT aFormat, wxString aSheetName=wxEmptyString, wxString aSheetPath=wxEmptyString) -> bool"""
8372 return _pcbnew.PLOT_CONTROLLER_OpenPlotfile(self, *args)
8373
8374 def PlotLayer(self):
8375 r"""PlotLayer(PLOT_CONTROLLER self) -> bool"""
8376 return _pcbnew.PLOT_CONTROLLER_PlotLayer(self)
8377
8378 def PlotLayers(self, aLayerSequence):
8379 r"""PlotLayers(PLOT_CONTROLLER self, LSEQ aLayerSequence) -> bool"""
8380 return _pcbnew.PLOT_CONTROLLER_PlotLayers(self, aLayerSequence)
8381
8383 r"""GetPlotFileName(PLOT_CONTROLLER self) -> wxString"""
8384 return _pcbnew.PLOT_CONTROLLER_GetPlotFileName(self)
8385
8387 r"""GetPlotDirName(PLOT_CONTROLLER self) -> wxString"""
8388 return _pcbnew.PLOT_CONTROLLER_GetPlotDirName(self)
8389
8390 def SetColorMode(self, aColorMode):
8391 r"""SetColorMode(PLOT_CONTROLLER self, bool aColorMode)"""
8392 return _pcbnew.PLOT_CONTROLLER_SetColorMode(self, aColorMode)
8393
8394 def GetColorMode(self):
8395 r"""GetColorMode(PLOT_CONTROLLER self) -> bool"""
8396 return _pcbnew.PLOT_CONTROLLER_GetColorMode(self)
8397
8398 def GetPlotter(self):
8399 r"""GetPlotter(PLOT_CONTROLLER self) -> PLOTTER"""
8400 return _pcbnew.PLOT_CONTROLLER_GetPlotter(self)
8401
8402# Register PLOT_CONTROLLER in _pcbnew:
8403_pcbnew.PLOT_CONTROLLER_swigregister(PLOT_CONTROLLER)
8404
8405DRILL_MARKS_NO_DRILL_SHAPE = _pcbnew.DRILL_MARKS_NO_DRILL_SHAPE
8406
8407DRILL_MARKS_SMALL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_SMALL_DRILL_SHAPE
8408
8409DRILL_MARKS_FULL_DRILL_SHAPE = _pcbnew.DRILL_MARKS_FULL_DRILL_SHAPE
8410
8412 r"""Proxy of C++ PCB_PLOT_PARAMS class."""
8413
8414 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8415 __repr__ = _swig_repr
8416
8417 def __init__(self):
8418 r"""__init__(PCB_PLOT_PARAMS self) -> PCB_PLOT_PARAMS"""
8419 _pcbnew.PCB_PLOT_PARAMS_swiginit(self, _pcbnew.new_PCB_PLOT_PARAMS())
8420
8421 def SetSkipPlotNPTH_Pads(self, aSkip):
8422 r"""SetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self, bool aSkip)"""
8423 return _pcbnew.PCB_PLOT_PARAMS_SetSkipPlotNPTH_Pads(self, aSkip)
8424
8426 r"""GetSkipPlotNPTH_Pads(PCB_PLOT_PARAMS self) -> bool"""
8427 return _pcbnew.PCB_PLOT_PARAMS_GetSkipPlotNPTH_Pads(self)
8428
8429 def Format(self, aFormatter, aNestLevel, aControl=0):
8430 r"""Format(PCB_PLOT_PARAMS self, OUTPUTFORMATTER aFormatter, int aNestLevel, int aControl=0)"""
8431 return _pcbnew.PCB_PLOT_PARAMS_Format(self, aFormatter, aNestLevel, aControl)
8432
8433 def Parse(self, aParser):
8434 r"""Parse(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS_PARSER * aParser)"""
8435 return _pcbnew.PCB_PLOT_PARAMS_Parse(self, aParser)
8436
8437 def IsSameAs(self, aPcbPlotParams):
8438 r"""IsSameAs(PCB_PLOT_PARAMS self, PCB_PLOT_PARAMS aPcbPlotParams) -> bool"""
8439 return _pcbnew.PCB_PLOT_PARAMS_IsSameAs(self, aPcbPlotParams)
8440
8441 def SetColorSettings(self, aSettings):
8442 r"""SetColorSettings(PCB_PLOT_PARAMS self, COLOR_SETTINGS * aSettings)"""
8443 return _pcbnew.PCB_PLOT_PARAMS_SetColorSettings(self, aSettings)
8444
8445 def ColorSettings(self):
8446 r"""ColorSettings(PCB_PLOT_PARAMS self) -> COLOR_SETTINGS *"""
8447 return _pcbnew.PCB_PLOT_PARAMS_ColorSettings(self)
8448
8449 def SetTextMode(self, aVal):
8450 r"""SetTextMode(PCB_PLOT_PARAMS self, PLOT_TEXT_MODE aVal)"""
8451 return _pcbnew.PCB_PLOT_PARAMS_SetTextMode(self, aVal)
8452
8453 def GetTextMode(self):
8454 r"""GetTextMode(PCB_PLOT_PARAMS self) -> PLOT_TEXT_MODE"""
8455 return _pcbnew.PCB_PLOT_PARAMS_GetTextMode(self)
8456
8457 def SetPlotMode(self, aPlotMode):
8458 r"""SetPlotMode(PCB_PLOT_PARAMS self, OUTLINE_MODE aPlotMode)"""
8459 return _pcbnew.PCB_PLOT_PARAMS_SetPlotMode(self, aPlotMode)
8460
8461 def GetPlotMode(self):
8462 r"""GetPlotMode(PCB_PLOT_PARAMS self) -> OUTLINE_MODE"""
8463 return _pcbnew.PCB_PLOT_PARAMS_GetPlotMode(self)
8464
8465 def SetDXFPlotPolygonMode(self, aFlag):
8466 r"""SetDXFPlotPolygonMode(PCB_PLOT_PARAMS self, bool aFlag)"""
8467 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotPolygonMode(self, aFlag)
8468
8470 r"""GetDXFPlotPolygonMode(PCB_PLOT_PARAMS self) -> bool"""
8471 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotPolygonMode(self)
8472
8473 def SetDXFPlotUnits(self, aUnit):
8474 r"""SetDXFPlotUnits(PCB_PLOT_PARAMS self, DXF_UNITS aUnit)"""
8475 return _pcbnew.PCB_PLOT_PARAMS_SetDXFPlotUnits(self, aUnit)
8476
8478 r"""GetDXFPlotUnits(PCB_PLOT_PARAMS self) -> DXF_UNITS"""
8479 return _pcbnew.PCB_PLOT_PARAMS_GetDXFPlotUnits(self)
8480
8481 def SetDrillMarksType(self, aVal):
8482 r"""SetDrillMarksType(PCB_PLOT_PARAMS self, DRILL_MARKS aVal)"""
8483 return _pcbnew.PCB_PLOT_PARAMS_SetDrillMarksType(self, aVal)
8484
8486 r"""GetDrillMarksType(PCB_PLOT_PARAMS self) -> DRILL_MARKS"""
8487 return _pcbnew.PCB_PLOT_PARAMS_GetDrillMarksType(self)
8488
8489 def SetScale(self, aVal):
8490 r"""SetScale(PCB_PLOT_PARAMS self, double aVal)"""
8491 return _pcbnew.PCB_PLOT_PARAMS_SetScale(self, aVal)
8492
8493 def GetScale(self):
8494 r"""GetScale(PCB_PLOT_PARAMS self) -> double"""
8495 return _pcbnew.PCB_PLOT_PARAMS_GetScale(self)
8496
8497 def SetFineScaleAdjustX(self, aVal):
8498 r"""SetFineScaleAdjustX(PCB_PLOT_PARAMS self, double aVal)"""
8499 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustX(self, aVal)
8500
8502 r"""GetFineScaleAdjustX(PCB_PLOT_PARAMS self) -> double"""
8503 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustX(self)
8504
8505 def SetFineScaleAdjustY(self, aVal):
8506 r"""SetFineScaleAdjustY(PCB_PLOT_PARAMS self, double aVal)"""
8507 return _pcbnew.PCB_PLOT_PARAMS_SetFineScaleAdjustY(self, aVal)
8508
8510 r"""GetFineScaleAdjustY(PCB_PLOT_PARAMS self) -> double"""
8511 return _pcbnew.PCB_PLOT_PARAMS_GetFineScaleAdjustY(self)
8512
8513 def SetWidthAdjust(self, aVal):
8514 r"""SetWidthAdjust(PCB_PLOT_PARAMS self, int aVal)"""
8515 return _pcbnew.PCB_PLOT_PARAMS_SetWidthAdjust(self, aVal)
8516
8518 r"""GetWidthAdjust(PCB_PLOT_PARAMS self) -> int"""
8519 return _pcbnew.PCB_PLOT_PARAMS_GetWidthAdjust(self)
8520
8521 def SetAutoScale(self, aFlag):
8522 r"""SetAutoScale(PCB_PLOT_PARAMS self, bool aFlag)"""
8523 return _pcbnew.PCB_PLOT_PARAMS_SetAutoScale(self, aFlag)
8524
8525 def GetAutoScale(self):
8526 r"""GetAutoScale(PCB_PLOT_PARAMS self) -> bool"""
8527 return _pcbnew.PCB_PLOT_PARAMS_GetAutoScale(self)
8528
8529 def SetMirror(self, aFlag):
8530 r"""SetMirror(PCB_PLOT_PARAMS self, bool aFlag)"""
8531 return _pcbnew.PCB_PLOT_PARAMS_SetMirror(self, aFlag)
8532
8533 def GetMirror(self):
8534 r"""GetMirror(PCB_PLOT_PARAMS self) -> bool"""
8535 return _pcbnew.PCB_PLOT_PARAMS_GetMirror(self)
8536
8538 r"""SetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self, bool aFlag)"""
8539 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadsOnFabLayers(self, aFlag)
8540
8542 r"""GetSketchPadsOnFabLayers(PCB_PLOT_PARAMS self) -> bool"""
8543 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadsOnFabLayers(self)
8544
8545 def SetSketchPadLineWidth(self, aWidth):
8546 r"""SetSketchPadLineWidth(PCB_PLOT_PARAMS self, int aWidth)"""
8547 return _pcbnew.PCB_PLOT_PARAMS_SetSketchPadLineWidth(self, aWidth)
8548
8550 r"""GetSketchPadLineWidth(PCB_PLOT_PARAMS self) -> int"""
8551 return _pcbnew.PCB_PLOT_PARAMS_GetSketchPadLineWidth(self)
8552
8553 def SetPlotInvisibleText(self, aFlag):
8554 r"""SetPlotInvisibleText(PCB_PLOT_PARAMS self, bool aFlag)"""
8555 return _pcbnew.PCB_PLOT_PARAMS_SetPlotInvisibleText(self, aFlag)
8556
8558 r"""GetPlotInvisibleText(PCB_PLOT_PARAMS self) -> bool"""
8559 return _pcbnew.PCB_PLOT_PARAMS_GetPlotInvisibleText(self)
8560
8561 def SetPlotValue(self, aFlag):
8562 r"""SetPlotValue(PCB_PLOT_PARAMS self, bool aFlag)"""
8563 return _pcbnew.PCB_PLOT_PARAMS_SetPlotValue(self, aFlag)
8564
8565 def GetPlotValue(self):
8566 r"""GetPlotValue(PCB_PLOT_PARAMS self) -> bool"""
8567 return _pcbnew.PCB_PLOT_PARAMS_GetPlotValue(self)
8568
8569 def SetPlotReference(self, aFlag):
8570 r"""SetPlotReference(PCB_PLOT_PARAMS self, bool aFlag)"""
8571 return _pcbnew.PCB_PLOT_PARAMS_SetPlotReference(self, aFlag)
8572
8574 r"""GetPlotReference(PCB_PLOT_PARAMS self) -> bool"""
8575 return _pcbnew.PCB_PLOT_PARAMS_GetPlotReference(self)
8576
8577 def SetPlotFPText(self, aFlag):
8578 r"""SetPlotFPText(PCB_PLOT_PARAMS self, bool aFlag)"""
8579 return _pcbnew.PCB_PLOT_PARAMS_SetPlotFPText(self, aFlag)
8580
8581 def GetPlotFPText(self):
8582 r"""GetPlotFPText(PCB_PLOT_PARAMS self) -> bool"""
8583 return _pcbnew.PCB_PLOT_PARAMS_GetPlotFPText(self)
8584
8585 def SetNegative(self, aFlag):
8586 r"""SetNegative(PCB_PLOT_PARAMS self, bool aFlag)"""
8587 return _pcbnew.PCB_PLOT_PARAMS_SetNegative(self, aFlag)
8588
8589 def GetNegative(self):
8590 r"""GetNegative(PCB_PLOT_PARAMS self) -> bool"""
8591 return _pcbnew.PCB_PLOT_PARAMS_GetNegative(self)
8592
8593 def SetPlotViaOnMaskLayer(self, aFlag):
8594 r"""SetPlotViaOnMaskLayer(PCB_PLOT_PARAMS self, bool aFlag)"""
8595 return _pcbnew.PCB_PLOT_PARAMS_SetPlotViaOnMaskLayer(self, aFlag)
8596
8598 r"""GetPlotViaOnMaskLayer(PCB_PLOT_PARAMS self) -> bool"""
8599 return _pcbnew.PCB_PLOT_PARAMS_GetPlotViaOnMaskLayer(self)
8600
8601 def SetPlotFrameRef(self, aFlag):
8602 r"""SetPlotFrameRef(PCB_PLOT_PARAMS self, bool aFlag)"""
8603 return _pcbnew.PCB_PLOT_PARAMS_SetPlotFrameRef(self, aFlag)
8604
8606 r"""GetPlotFrameRef(PCB_PLOT_PARAMS self) -> bool"""
8607 return _pcbnew.PCB_PLOT_PARAMS_GetPlotFrameRef(self)
8608
8609 def SetFormat(self, aFormat):
8610 r"""SetFormat(PCB_PLOT_PARAMS self, PLOT_FORMAT aFormat)"""
8611 return _pcbnew.PCB_PLOT_PARAMS_SetFormat(self, aFormat)
8612
8613 def GetFormat(self):
8614 r"""GetFormat(PCB_PLOT_PARAMS self) -> PLOT_FORMAT"""
8615 return _pcbnew.PCB_PLOT_PARAMS_GetFormat(self)
8616
8617 def SetOutputDirectory(self, aDir):
8618 r"""SetOutputDirectory(PCB_PLOT_PARAMS self, wxString aDir)"""
8619 return _pcbnew.PCB_PLOT_PARAMS_SetOutputDirectory(self, aDir)
8620
8622 r"""GetOutputDirectory(PCB_PLOT_PARAMS self) -> wxString"""
8623 return _pcbnew.PCB_PLOT_PARAMS_GetOutputDirectory(self)
8624
8625 def SetDisableGerberMacros(self, aDisable):
8626 r"""SetDisableGerberMacros(PCB_PLOT_PARAMS self, bool aDisable)"""
8627 return _pcbnew.PCB_PLOT_PARAMS_SetDisableGerberMacros(self, aDisable)
8628
8630 r"""GetDisableGerberMacros(PCB_PLOT_PARAMS self) -> bool"""
8631 return _pcbnew.PCB_PLOT_PARAMS_GetDisableGerberMacros(self)
8632
8633 def SetUseGerberX2format(self, aUse):
8634 r"""SetUseGerberX2format(PCB_PLOT_PARAMS self, bool aUse)"""
8635 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberX2format(self, aUse)
8636
8638 r"""GetUseGerberX2format(PCB_PLOT_PARAMS self) -> bool"""
8639 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberX2format(self)
8640
8642 r"""SetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self, bool aUse)"""
8643 return _pcbnew.PCB_PLOT_PARAMS_SetIncludeGerberNetlistInfo(self, aUse)
8644
8646 r"""GetIncludeGerberNetlistInfo(PCB_PLOT_PARAMS self) -> bool"""
8647 return _pcbnew.PCB_PLOT_PARAMS_GetIncludeGerberNetlistInfo(self)
8648
8649 def SetCreateGerberJobFile(self, aCreate):
8650 r"""SetCreateGerberJobFile(PCB_PLOT_PARAMS self, bool aCreate)"""
8651 return _pcbnew.PCB_PLOT_PARAMS_SetCreateGerberJobFile(self, aCreate)
8652
8654 r"""GetCreateGerberJobFile(PCB_PLOT_PARAMS self) -> bool"""
8655 return _pcbnew.PCB_PLOT_PARAMS_GetCreateGerberJobFile(self)
8656
8658 r"""SetUseGerberProtelExtensions(PCB_PLOT_PARAMS self, bool aUse)"""
8659 return _pcbnew.PCB_PLOT_PARAMS_SetUseGerberProtelExtensions(self, aUse)
8660
8662 r"""GetUseGerberProtelExtensions(PCB_PLOT_PARAMS self) -> bool"""
8663 return _pcbnew.PCB_PLOT_PARAMS_GetUseGerberProtelExtensions(self)
8664
8665 def SetGerberPrecision(self, aPrecision):
8666 r"""SetGerberPrecision(PCB_PLOT_PARAMS self, int aPrecision)"""
8667 return _pcbnew.PCB_PLOT_PARAMS_SetGerberPrecision(self, aPrecision)
8668
8670 r"""GetGerberPrecision(PCB_PLOT_PARAMS self) -> int"""
8671 return _pcbnew.PCB_PLOT_PARAMS_GetGerberPrecision(self)
8672
8673 def SetSvgPrecision(self, aPrecision):
8674 r"""SetSvgPrecision(PCB_PLOT_PARAMS self, unsigned int aPrecision)"""
8675 return _pcbnew.PCB_PLOT_PARAMS_SetSvgPrecision(self, aPrecision)
8676
8678 r"""GetSvgPrecision(PCB_PLOT_PARAMS self) -> unsigned int"""
8679 return _pcbnew.PCB_PLOT_PARAMS_GetSvgPrecision(self)
8680
8681 def SetBlackAndWhite(self, blackAndWhite):
8682 r"""SetBlackAndWhite(PCB_PLOT_PARAMS self, bool blackAndWhite)"""
8683 return _pcbnew.PCB_PLOT_PARAMS_SetBlackAndWhite(self, blackAndWhite)
8684
8686 r"""GetBlackAndWhite(PCB_PLOT_PARAMS self) -> unsigned int"""
8687 return _pcbnew.PCB_PLOT_PARAMS_GetBlackAndWhite(self)
8688
8689 def SetSubtractMaskFromSilk(self, aSubtract):
8690 r"""SetSubtractMaskFromSilk(PCB_PLOT_PARAMS self, bool aSubtract)"""
8691 return _pcbnew.PCB_PLOT_PARAMS_SetSubtractMaskFromSilk(self, aSubtract)
8692
8694 r"""GetSubtractMaskFromSilk(PCB_PLOT_PARAMS self) -> bool"""
8695 return _pcbnew.PCB_PLOT_PARAMS_GetSubtractMaskFromSilk(self)
8696
8697 def SetLayerSelection(self, aSelection):
8698 r"""SetLayerSelection(PCB_PLOT_PARAMS self, LSET aSelection)"""
8699 return _pcbnew.PCB_PLOT_PARAMS_SetLayerSelection(self, aSelection)
8700
8702 r"""GetLayerSelection(PCB_PLOT_PARAMS self) -> LSET"""
8703 return _pcbnew.PCB_PLOT_PARAMS_GetLayerSelection(self)
8704
8705 def SetPlotOnAllLayersSelection(self, aSelection):
8706 r"""SetPlotOnAllLayersSelection(PCB_PLOT_PARAMS self, LSET aSelection)"""
8707 return _pcbnew.PCB_PLOT_PARAMS_SetPlotOnAllLayersSelection(self, aSelection)
8708
8710 r"""GetPlotOnAllLayersSelection(PCB_PLOT_PARAMS self) -> LSET"""
8711 return _pcbnew.PCB_PLOT_PARAMS_GetPlotOnAllLayersSelection(self)
8712
8713 def SetUseAuxOrigin(self, aAux):
8714 r"""SetUseAuxOrigin(PCB_PLOT_PARAMS self, bool aAux)"""
8715 return _pcbnew.PCB_PLOT_PARAMS_SetUseAuxOrigin(self, aAux)
8716
8718 r"""GetUseAuxOrigin(PCB_PLOT_PARAMS self) -> bool"""
8719 return _pcbnew.PCB_PLOT_PARAMS_GetUseAuxOrigin(self)
8720
8721 def SetScaleSelection(self, aSelection):
8722 r"""SetScaleSelection(PCB_PLOT_PARAMS self, int aSelection)"""
8723 return _pcbnew.PCB_PLOT_PARAMS_SetScaleSelection(self, aSelection)
8724
8726 r"""GetScaleSelection(PCB_PLOT_PARAMS self) -> int"""
8727 return _pcbnew.PCB_PLOT_PARAMS_GetScaleSelection(self)
8728
8729 def SetA4Output(self, aForce):
8730 r"""SetA4Output(PCB_PLOT_PARAMS self, int aForce)"""
8731 return _pcbnew.PCB_PLOT_PARAMS_SetA4Output(self, aForce)
8732
8733 def GetA4Output(self):
8734 r"""GetA4Output(PCB_PLOT_PARAMS self) -> bool"""
8735 return _pcbnew.PCB_PLOT_PARAMS_GetA4Output(self)
8736
8738 r"""GetHPGLPenDiameter(PCB_PLOT_PARAMS self) -> double"""
8739 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenDiameter(self)
8740
8741 def SetHPGLPenDiameter(self, aValue):
8742 r"""SetHPGLPenDiameter(PCB_PLOT_PARAMS self, double aValue) -> bool"""
8743 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenDiameter(self, aValue)
8744
8746 r"""GetHPGLPenSpeed(PCB_PLOT_PARAMS self) -> int"""
8747 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenSpeed(self)
8748
8749 def SetHPGLPenSpeed(self, aValue):
8750 r"""SetHPGLPenSpeed(PCB_PLOT_PARAMS self, int aValue) -> bool"""
8751 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenSpeed(self, aValue)
8752
8753 def SetHPGLPenNum(self, aVal):
8754 r"""SetHPGLPenNum(PCB_PLOT_PARAMS self, int aVal)"""
8755 return _pcbnew.PCB_PLOT_PARAMS_SetHPGLPenNum(self, aVal)
8756
8757 def GetHPGLPenNum(self):
8758 r"""GetHPGLPenNum(PCB_PLOT_PARAMS self) -> int"""
8759 return _pcbnew.PCB_PLOT_PARAMS_GetHPGLPenNum(self)
8760
8761 def SetDashedLineDashRatio(self, aVal):
8762 r"""SetDashedLineDashRatio(PCB_PLOT_PARAMS self, double aVal)"""
8763 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineDashRatio(self, aVal)
8764
8766 r"""GetDashedLineDashRatio(PCB_PLOT_PARAMS self) -> double"""
8767 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineDashRatio(self)
8768
8769 def SetDashedLineGapRatio(self, aVal):
8770 r"""SetDashedLineGapRatio(PCB_PLOT_PARAMS self, double aVal)"""
8771 return _pcbnew.PCB_PLOT_PARAMS_SetDashedLineGapRatio(self, aVal)
8772
8774 r"""GetDashedLineGapRatio(PCB_PLOT_PARAMS self) -> double"""
8775 return _pcbnew.PCB_PLOT_PARAMS_GetDashedLineGapRatio(self)
8776 m_PDFFrontFPPropertyPopups = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFFrontFPPropertyPopups_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFFrontFPPropertyPopups_set, doc=r"""m_PDFFrontFPPropertyPopups : bool""")
8777 m_PDFBackFPPropertyPopups = property(_pcbnew.PCB_PLOT_PARAMS_m_PDFBackFPPropertyPopups_get, _pcbnew.PCB_PLOT_PARAMS_m_PDFBackFPPropertyPopups_set, doc=r"""m_PDFBackFPPropertyPopups : bool""")
8778
8779 # add SetUseGerberAttributes() for compatibility with old python scripts
8780 # after renaming it to SetUseGerberX2format()
8781 def SetUseGerberAttributes( self, aUse ):
8782 return self.SetUseGerberX2format( aUse )
8783
8784 __swig_destroy__ = _pcbnew.delete_PCB_PLOT_PARAMS
8785
8786# Register PCB_PLOT_PARAMS in _pcbnew:
8787_pcbnew.PCB_PLOT_PARAMS_swigregister(PCB_PLOT_PARAMS)
8788
8789DXF_UNITS_INCHES = _pcbnew.DXF_UNITS_INCHES
8790
8791DXF_UNITS_MILLIMETERS = _pcbnew.DXF_UNITS_MILLIMETERS
8792
8793PLOT_FORMAT_UNDEFINED = _pcbnew.PLOT_FORMAT_UNDEFINED
8794
8795PLOT_FORMAT_FIRST_FORMAT = _pcbnew.PLOT_FORMAT_FIRST_FORMAT
8796
8797PLOT_FORMAT_HPGL = _pcbnew.PLOT_FORMAT_HPGL
8798
8799PLOT_FORMAT_GERBER = _pcbnew.PLOT_FORMAT_GERBER
8800
8801PLOT_FORMAT_POST = _pcbnew.PLOT_FORMAT_POST
8802
8803PLOT_FORMAT_DXF = _pcbnew.PLOT_FORMAT_DXF
8804
8805PLOT_FORMAT_PDF = _pcbnew.PLOT_FORMAT_PDF
8806
8807PLOT_FORMAT_SVG = _pcbnew.PLOT_FORMAT_SVG
8808
8809PLOT_FORMAT_LAST_FORMAT = _pcbnew.PLOT_FORMAT_LAST_FORMAT
8810
8811PLOT_TEXT_MODE_STROKE = _pcbnew.PLOT_TEXT_MODE_STROKE
8812
8813PLOT_TEXT_MODE_NATIVE = _pcbnew.PLOT_TEXT_MODE_NATIVE
8814
8815PLOT_TEXT_MODE_PHANTOM = _pcbnew.PLOT_TEXT_MODE_PHANTOM
8816
8817PLOT_TEXT_MODE_DEFAULT = _pcbnew.PLOT_TEXT_MODE_DEFAULT
8818
8820 r"""Proxy of C++ PLOTTER class."""
8821
8822 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8823
8824 def __init__(self, *args, **kwargs):
8825 raise AttributeError("No constructor defined - class is abstract")
8826 __repr__ = _swig_repr
8827 DO_NOT_SET_LINE_WIDTH = _pcbnew.PLOTTER_DO_NOT_SET_LINE_WIDTH
8828
8829 USE_DEFAULT_LINE_WIDTH = _pcbnew.PLOTTER_USE_DEFAULT_LINE_WIDTH
8830
8831 __swig_destroy__ = _pcbnew.delete_PLOTTER
8832
8834 r"""GetPlotterType(PLOTTER self) -> PLOT_FORMAT"""
8835 return _pcbnew.PLOTTER_GetPlotterType(self)
8836
8837 def StartPlot(self, aPageNumber):
8838 r"""StartPlot(PLOTTER self, wxString aPageNumber) -> bool"""
8839 return _pcbnew.PLOTTER_StartPlot(self, aPageNumber)
8840
8841 def EndPlot(self):
8842 r"""EndPlot(PLOTTER self) -> bool"""
8843 return _pcbnew.PLOTTER_EndPlot(self)
8844
8845 def SetNegative(self, aNegative):
8846 r"""SetNegative(PLOTTER self, bool aNegative)"""
8847 return _pcbnew.PLOTTER_SetNegative(self, aNegative)
8848
8849 def SetColorMode(self, aColorMode):
8850 r"""SetColorMode(PLOTTER self, bool aColorMode)"""
8851 return _pcbnew.PLOTTER_SetColorMode(self, aColorMode)
8852
8853 def GetColorMode(self):
8854 r"""GetColorMode(PLOTTER self) -> bool"""
8855 return _pcbnew.PLOTTER_GetColorMode(self)
8856
8857 def SetRenderSettings(self, aSettings):
8858 r"""SetRenderSettings(PLOTTER self, RENDER_SETTINGS * aSettings)"""
8859 return _pcbnew.PLOTTER_SetRenderSettings(self, aSettings)
8860
8862 r"""RenderSettings(PLOTTER self) -> RENDER_SETTINGS *"""
8863 return _pcbnew.PLOTTER_RenderSettings(self)
8864
8865 def SetPageSettings(self, aPageSettings):
8866 r"""SetPageSettings(PLOTTER self, PAGE_INFO const & aPageSettings)"""
8867 return _pcbnew.PLOTTER_SetPageSettings(self, aPageSettings)
8868
8869 def PageSettings(self):
8870 r"""PageSettings(PLOTTER self) -> PAGE_INFO &"""
8871 return _pcbnew.PLOTTER_PageSettings(self)
8872
8873 def SetCurrentLineWidth(self, width, aData=None):
8874 r"""SetCurrentLineWidth(PLOTTER self, int width, void * aData=None)"""
8875 return _pcbnew.PLOTTER_SetCurrentLineWidth(self, width, aData)
8876
8878 r"""GetCurrentLineWidth(PLOTTER self) -> int"""
8879 return _pcbnew.PLOTTER_GetCurrentLineWidth(self)
8880
8881 def SetColor(self, color):
8882 r"""SetColor(PLOTTER self, COLOR4D color)"""
8883 return _pcbnew.PLOTTER_SetColor(self, color)
8884
8885 def SetDash(self, aLineWidth, aLineStyle):
8886 r"""SetDash(PLOTTER self, int aLineWidth, LINE_STYLE aLineStyle)"""
8887 return _pcbnew.PLOTTER_SetDash(self, aLineWidth, aLineStyle)
8888
8889 def SetCreator(self, aCreator):
8890 r"""SetCreator(PLOTTER self, wxString aCreator)"""
8891 return _pcbnew.PLOTTER_SetCreator(self, aCreator)
8892
8893 def SetTitle(self, aTitle):
8894 r"""SetTitle(PLOTTER self, wxString aTitle)"""
8895 return _pcbnew.PLOTTER_SetTitle(self, aTitle)
8896
8897 def AddLineToHeader(self, aExtraString):
8898 r"""AddLineToHeader(PLOTTER self, wxString aExtraString)"""
8899 return _pcbnew.PLOTTER_AddLineToHeader(self, aExtraString)
8900
8902 r"""ClearHeaderLinesList(PLOTTER self)"""
8903 return _pcbnew.PLOTTER_ClearHeaderLinesList(self)
8904
8905 def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror):
8906 r"""SetViewport(PLOTTER self, VECTOR2I aOffset, double aIusPerDecimil, double aScale, bool aMirror)"""
8907 return _pcbnew.PLOTTER_SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
8908
8909 def OpenFile(self, aFullFilename):
8910 r"""OpenFile(PLOTTER self, wxString aFullFilename) -> bool"""
8911 return _pcbnew.PLOTTER_OpenFile(self, aFullFilename)
8912
8914 r"""GetIUsPerDecimil(PLOTTER self) -> double"""
8915 return _pcbnew.PLOTTER_GetIUsPerDecimil(self)
8916
8918 r"""GetPlotterArcLowDef(PLOTTER self) -> int"""
8919 return _pcbnew.PLOTTER_GetPlotterArcLowDef(self)
8920
8922 r"""GetPlotterArcHighDef(PLOTTER self) -> int"""
8923 return _pcbnew.PLOTTER_GetPlotterArcHighDef(self)
8924
8925 def Rect(self, *args):
8926 r"""Rect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8927 return _pcbnew.PLOTTER_Rect(self, *args)
8928
8929 def Circle(self, *args):
8930 r"""Circle(PLOTTER self, VECTOR2I pos, int diametre, FILL_T fill, int width=USE_DEFAULT_LINE_WIDTH)"""
8931 return _pcbnew.PLOTTER_Circle(self, *args)
8932
8933 def Arc(self, *args):
8934 r"""
8935 Arc(PLOTTER self, VECTOR2D const & aStart, VECTOR2D const & aMid, VECTOR2D const & aEnd, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH)
8936 Arc(PLOTTER self, VECTOR2D const & aCenter, EDA_ANGLE aStartAngle, EDA_ANGLE aAngle, double aRadius, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH)
8937 """
8938 return _pcbnew.PLOTTER_Arc(self, *args)
8939
8940 def BezierCurve(self, *args):
8941 r"""BezierCurve(PLOTTER self, VECTOR2I aStart, VECTOR2I aControl1, VECTOR2I aControl2, VECTOR2I aEnd, int aTolerance, int aLineThickness=USE_DEFAULT_LINE_WIDTH)"""
8942 return _pcbnew.PLOTTER_BezierCurve(self, *args)
8943
8944 def PenTo(self, pos, plume):
8945 r"""PenTo(PLOTTER self, VECTOR2I pos, char plume)"""
8946 return _pcbnew.PLOTTER_PenTo(self, pos, plume)
8947
8948 def MoveTo(self, pos):
8949 r"""MoveTo(PLOTTER self, VECTOR2I pos)"""
8950 return _pcbnew.PLOTTER_MoveTo(self, pos)
8951
8952 def LineTo(self, pos):
8953 r"""LineTo(PLOTTER self, VECTOR2I pos)"""
8954 return _pcbnew.PLOTTER_LineTo(self, pos)
8955
8956 def FinishTo(self, pos):
8957 r"""FinishTo(PLOTTER self, VECTOR2I pos)"""
8958 return _pcbnew.PLOTTER_FinishTo(self, pos)
8959
8960 def PenFinish(self):
8961 r"""PenFinish(PLOTTER self)"""
8962 return _pcbnew.PLOTTER_PenFinish(self)
8963
8964 def PlotPoly(self, *args):
8965 r"""
8966 PlotPoly(PLOTTER self, VECTOR_VECTOR2I aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8967 PlotPoly(PLOTTER self, SHAPE_LINE_CHAIN aCornerList, FILL_T aFill, int aWidth=USE_DEFAULT_LINE_WIDTH, void * aData=None)
8968 """
8969 return _pcbnew.PLOTTER_PlotPoly(self, *args)
8970
8971 def PlotImage(self, aImage, aPos, aScaleFactor):
8972 r"""PlotImage(PLOTTER self, wxImage const & aImage, VECTOR2I aPos, double aScaleFactor)"""
8973 return _pcbnew.PLOTTER_PlotImage(self, aImage, aPos, aScaleFactor)
8974
8975 def ThickSegment(self, start, end, width, tracemode, aData):
8976 r"""ThickSegment(PLOTTER self, VECTOR2I start, VECTOR2I end, int width, OUTLINE_MODE tracemode, void * aData)"""
8977 return _pcbnew.PLOTTER_ThickSegment(self, start, end, width, tracemode, aData)
8978
8979 def ThickArc(self, *args):
8980 r"""
8981 ThickArc(PLOTTER self, EDA_SHAPE aArcShape, OUTLINE_MODE aTraceMode, void * aData)
8982 ThickArc(PLOTTER self, VECTOR2D const & aCentre, EDA_ANGLE aStAngle, EDA_ANGLE aAngle, double aRadius, int aWidth, OUTLINE_MODE aTraceMode, void * aData)
8983 """
8984 return _pcbnew.PLOTTER_ThickArc(self, *args)
8985
8986 def ThickRect(self, p1, p2, width, tracemode, aData):
8987 r"""ThickRect(PLOTTER self, VECTOR2I p1, VECTOR2I p2, int width, OUTLINE_MODE tracemode, void * aData)"""
8988 return _pcbnew.PLOTTER_ThickRect(self, p1, p2, width, tracemode, aData)
8989
8990 def ThickCircle(self, pos, diametre, width, tracemode, aData):
8991 r"""ThickCircle(PLOTTER self, VECTOR2I pos, int diametre, int width, OUTLINE_MODE tracemode, void * aData)"""
8992 return _pcbnew.PLOTTER_ThickCircle(self, pos, diametre, width, tracemode, aData)
8993
8994 def FilledCircle(self, pos, diametre, tracemode, aData):
8995 r"""FilledCircle(PLOTTER self, VECTOR2I pos, int diametre, OUTLINE_MODE tracemode, void * aData)"""
8996 return _pcbnew.PLOTTER_FilledCircle(self, pos, diametre, tracemode, aData)
8997
8998 def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData):
8999 r"""FlashPadCircle(PLOTTER self, VECTOR2I aPadPos, int aDiameter, OUTLINE_MODE aTraceMode, void * aData)"""
9000 return _pcbnew.PLOTTER_FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
9001
9002 def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
9003 r"""FlashPadOval(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9004 return _pcbnew.PLOTTER_FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
9005
9006 def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData):
9007 r"""FlashPadRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9008 return _pcbnew.PLOTTER_FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
9009
9010 def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData):
9011 r"""FlashPadRoundRect(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, int aCornerRadius, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9012 return _pcbnew.PLOTTER_FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
9013
9014 def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData):
9015 r"""FlashPadCustom(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aSize, EDA_ANGLE aPadOrient, SHAPE_POLY_SET aPolygons, OUTLINE_MODE aTraceMode, void * aData)"""
9016 return _pcbnew.PLOTTER_FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
9017
9018 def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData):
9019 r"""FlashPadTrapez(PLOTTER self, VECTOR2I aPadPos, VECTOR2I aCorners, EDA_ANGLE aPadOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9020 return _pcbnew.PLOTTER_FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
9021
9022 def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData):
9023 r"""FlashRegularPolygon(PLOTTER self, VECTOR2I aShapePos, int aDiameter, int aCornerCount, EDA_ANGLE aOrient, OUTLINE_MODE aTraceMode, void * aData)"""
9024 return _pcbnew.PLOTTER_FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
9025
9026 def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData=None):
9027 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)"""
9028 return _pcbnew.PLOTTER_Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData)
9029
9030 def PlotText(self, aPos, aColor, aText, aAttributes, aFont, aFontMetrics, aData=None):
9031 r"""PlotText(PLOTTER self, VECTOR2I aPos, COLOR4D aColor, wxString aText, TEXT_ATTRIBUTES aAttributes, KIFONT::FONT * aFont, KIFONT::METRICS const & aFontMetrics, void * aData=None)"""
9032 return _pcbnew.PLOTTER_PlotText(self, aPos, aColor, aText, aAttributes, aFont, aFontMetrics, aData)
9033
9034 def HyperlinkBox(self, aBox, aDestinationURL):
9035 r"""HyperlinkBox(PLOTTER self, BOX2I aBox, wxString aDestinationURL)"""
9036 return _pcbnew.PLOTTER_HyperlinkBox(self, aBox, aDestinationURL)
9037
9038 def HyperlinkMenu(self, aBox, aDestURLs):
9039 r"""HyperlinkMenu(PLOTTER self, BOX2I aBox, std::vector< wxString,std::allocator< wxString > > const & aDestURLs)"""
9040 return _pcbnew.PLOTTER_HyperlinkMenu(self, aBox, aDestURLs)
9041
9042 def Bookmark(self, *args):
9043 r"""Bookmark(PLOTTER self, BOX2I aBox, wxString aName, wxString aGroupName=wxEmptyString)"""
9044 return _pcbnew.PLOTTER_Bookmark(self, *args)
9045 MARKER_COUNT = _pcbnew.PLOTTER_MARKER_COUNT
9046
9047
9048 def Marker(self, position, diametre, aShapeId):
9049 r"""Marker(PLOTTER self, VECTOR2I position, int diametre, unsigned int aShapeId)"""
9050 return _pcbnew.PLOTTER_Marker(self, position, diametre, aShapeId)
9051
9052 def SetLayerPolarity(self, aPositive):
9053 r"""SetLayerPolarity(PLOTTER self, bool aPositive)"""
9054 return _pcbnew.PLOTTER_SetLayerPolarity(self, aPositive)
9055
9056 def SetTextMode(self, mode):
9057 r"""SetTextMode(PLOTTER self, PLOT_TEXT_MODE mode)"""
9058 return _pcbnew.PLOTTER_SetTextMode(self, mode)
9059
9060 def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False):
9061 r"""SetGerberCoordinatesFormat(PLOTTER self, int aResolution, bool aUseInches=False)"""
9062 return _pcbnew.PLOTTER_SetGerberCoordinatesFormat(self, aResolution, aUseInches)
9063
9064 def SetSvgCoordinatesFormat(self, aPrecision):
9065 r"""SetSvgCoordinatesFormat(PLOTTER self, unsigned int aPrecision)"""
9066 return _pcbnew.PLOTTER_SetSvgCoordinatesFormat(self, aPrecision)
9067
9068 def StartBlock(self, aData):
9069 r"""StartBlock(PLOTTER self, void * aData)"""
9070 return _pcbnew.PLOTTER_StartBlock(self, aData)
9071
9072 def EndBlock(self, aData):
9073 r"""EndBlock(PLOTTER self, void * aData)"""
9074 return _pcbnew.PLOTTER_EndBlock(self, aData)
9075
9077 r"""GetPlotOffsetUserUnits(PLOTTER self) -> VECTOR2I"""
9078 return _pcbnew.PLOTTER_GetPlotOffsetUserUnits(self)
9079
9080# Register PLOTTER in _pcbnew:
9081_pcbnew.PLOTTER_swigregister(PLOTTER)
9082
9083
9085 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)"""
9086 return _pcbnew.PlotDrawingSheet(*args)
9087
9089 r"""GetDefaultPlotExtension(PLOT_FORMAT aFormat) -> wxString"""
9090 return _pcbnew.GetDefaultPlotExtension(aFormat)
9092 r"""Proxy of C++ D356_RECORD class."""
9093
9094 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9095 __repr__ = _swig_repr
9096 smd = property(_pcbnew.D356_RECORD_smd_get, _pcbnew.D356_RECORD_smd_set, doc=r"""smd : bool""")
9097 hole = property(_pcbnew.D356_RECORD_hole_get, _pcbnew.D356_RECORD_hole_set, doc=r"""hole : bool""")
9098 netname = property(_pcbnew.D356_RECORD_netname_get, _pcbnew.D356_RECORD_netname_set, doc=r"""netname : wxString""")
9099 refdes = property(_pcbnew.D356_RECORD_refdes_get, _pcbnew.D356_RECORD_refdes_set, doc=r"""refdes : wxString""")
9100 pin = property(_pcbnew.D356_RECORD_pin_get, _pcbnew.D356_RECORD_pin_set, doc=r"""pin : wxString""")
9101 midpoint = property(_pcbnew.D356_RECORD_midpoint_get, _pcbnew.D356_RECORD_midpoint_set, doc=r"""midpoint : bool""")
9102 drill = property(_pcbnew.D356_RECORD_drill_get, _pcbnew.D356_RECORD_drill_set, doc=r"""drill : int""")
9103 mechanical = property(_pcbnew.D356_RECORD_mechanical_get, _pcbnew.D356_RECORD_mechanical_set, doc=r"""mechanical : bool""")
9104 access = property(_pcbnew.D356_RECORD_access_get, _pcbnew.D356_RECORD_access_set, doc=r"""access : int""")
9105 soldermask = property(_pcbnew.D356_RECORD_soldermask_get, _pcbnew.D356_RECORD_soldermask_set, doc=r"""soldermask : int""")
9106 x_location = property(_pcbnew.D356_RECORD_x_location_get, _pcbnew.D356_RECORD_x_location_set, doc=r"""x_location : int""")
9107 y_location = property(_pcbnew.D356_RECORD_y_location_get, _pcbnew.D356_RECORD_y_location_set, doc=r"""y_location : int""")
9108 x_size = property(_pcbnew.D356_RECORD_x_size_get, _pcbnew.D356_RECORD_x_size_set, doc=r"""x_size : int""")
9109 y_size = property(_pcbnew.D356_RECORD_y_size_get, _pcbnew.D356_RECORD_y_size_set, doc=r"""y_size : int""")
9110 rotation = property(_pcbnew.D356_RECORD_rotation_get, _pcbnew.D356_RECORD_rotation_set, doc=r"""rotation : int""")
9111
9112 def __init__(self):
9113 r"""__init__(D356_RECORD self) -> D356_RECORD"""
9114 _pcbnew.D356_RECORD_swiginit(self, _pcbnew.new_D356_RECORD())
9115 __swig_destroy__ = _pcbnew.delete_D356_RECORD
9116
9117# Register D356_RECORD in _pcbnew:
9118_pcbnew.D356_RECORD_swigregister(D356_RECORD)
9119
9121 r"""Proxy of C++ IPC356D_WRITER class."""
9122
9123 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9124 __repr__ = _swig_repr
9125
9126 def __init__(self, aPcb, aParent=None):
9127 r"""__init__(IPC356D_WRITER self, BOARD aPcb, wxWindow * aParent=None) -> IPC356D_WRITER"""
9128 _pcbnew.IPC356D_WRITER_swiginit(self, _pcbnew.new_IPC356D_WRITER(aPcb, aParent))
9129 __swig_destroy__ = _pcbnew.delete_IPC356D_WRITER
9130
9131 def Write(self, aFilename):
9132 r"""Write(IPC356D_WRITER self, wxString aFilename)"""
9133 return _pcbnew.IPC356D_WRITER_Write(self, aFilename)
9134
9135# Register IPC356D_WRITER in _pcbnew:
9136_pcbnew.IPC356D_WRITER_swigregister(IPC356D_WRITER)
9137
9139 r"""Proxy of C++ PLACE_FILE_EXPORTER class."""
9140
9141 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9142 __repr__ = _swig_repr
9143
9144 def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX):
9145 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"""
9146 _pcbnew.PLACE_FILE_EXPORTER_swiginit(self, _pcbnew.new_PLACE_FILE_EXPORTER(aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX))
9147
9149 r"""GenPositionData(PLACE_FILE_EXPORTER self) -> string"""
9150 return _pcbnew.PLACE_FILE_EXPORTER_GenPositionData(self)
9151
9152 def GenReportData(self):
9153 r"""GenReportData(PLACE_FILE_EXPORTER self) -> string"""
9154 return _pcbnew.PLACE_FILE_EXPORTER_GenReportData(self)
9155
9157 r"""GetFootprintCount(PLACE_FILE_EXPORTER self) -> int"""
9158 return _pcbnew.PLACE_FILE_EXPORTER_GetFootprintCount(self)
9159
9160 @staticmethod
9162 r"""GetFrontSideName() -> string"""
9163 return _pcbnew.PLACE_FILE_EXPORTER_GetFrontSideName()
9164
9165 @staticmethod
9167 r"""GetBackSideName() -> string"""
9168 return _pcbnew.PLACE_FILE_EXPORTER_GetBackSideName()
9169 __swig_destroy__ = _pcbnew.delete_PLACE_FILE_EXPORTER
9170
9171# Register PLACE_FILE_EXPORTER in _pcbnew:
9172_pcbnew.PLACE_FILE_EXPORTER_swigregister(PLACE_FILE_EXPORTER)
9173
9175 r"""PLACE_FILE_EXPORTER_GetFrontSideName() -> string"""
9176 return _pcbnew.PLACE_FILE_EXPORTER_GetFrontSideName()
9177
9179 r"""PLACE_FILE_EXPORTER_GetBackSideName() -> string"""
9180 return _pcbnew.PLACE_FILE_EXPORTER_GetBackSideName()
9181
9183 r"""Proxy of C++ EXPORTER_VRML class."""
9184
9185 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9186 __repr__ = _swig_repr
9187
9188 def __init__(self, aBoard):
9189 r"""__init__(EXPORTER_VRML self, BOARD aBoard) -> EXPORTER_VRML"""
9190 _pcbnew.EXPORTER_VRML_swiginit(self, _pcbnew.new_EXPORTER_VRML(aBoard))
9191 __swig_destroy__ = _pcbnew.delete_EXPORTER_VRML
9192
9193 def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
9194 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"""
9195 return _pcbnew.EXPORTER_VRML_ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
9196
9197# Register EXPORTER_VRML in _pcbnew:
9198_pcbnew.EXPORTER_VRML_swigregister(EXPORTER_VRML)
9199
9200USE_ATTRIB_FOR_HOLES = _pcbnew.USE_ATTRIB_FOR_HOLES
9201
9202HOLE_ATTRIBUTE_HOLE_UNKNOWN = _pcbnew.HOLE_ATTRIBUTE_HOLE_UNKNOWN
9203
9204HOLE_ATTRIBUTE_HOLE_VIA_THROUGH = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_THROUGH
9205
9206HOLE_ATTRIBUTE_HOLE_VIA_BURIED = _pcbnew.HOLE_ATTRIBUTE_HOLE_VIA_BURIED
9207
9208HOLE_ATTRIBUTE_HOLE_PAD = _pcbnew.HOLE_ATTRIBUTE_HOLE_PAD
9209
9210HOLE_ATTRIBUTE_HOLE_MECHANICAL = _pcbnew.HOLE_ATTRIBUTE_HOLE_MECHANICAL
9211
9213 r"""Proxy of C++ DRILL_TOOL class."""
9214
9215 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9216 __repr__ = _swig_repr
9217 m_Diameter = property(_pcbnew.DRILL_TOOL_m_Diameter_get, _pcbnew.DRILL_TOOL_m_Diameter_set, doc=r"""m_Diameter : int""")
9218 m_TotalCount = property(_pcbnew.DRILL_TOOL_m_TotalCount_get, _pcbnew.DRILL_TOOL_m_TotalCount_set, doc=r"""m_TotalCount : int""")
9219 m_OvalCount = property(_pcbnew.DRILL_TOOL_m_OvalCount_get, _pcbnew.DRILL_TOOL_m_OvalCount_set, doc=r"""m_OvalCount : int""")
9220 m_Hole_NotPlated = property(_pcbnew.DRILL_TOOL_m_Hole_NotPlated_get, _pcbnew.DRILL_TOOL_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
9221 m_HoleAttribute = property(_pcbnew.DRILL_TOOL_m_HoleAttribute_get, _pcbnew.DRILL_TOOL_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
9222
9223 def __init__(self, aDiameter, a_NotPlated):
9224 r"""__init__(DRILL_TOOL self, int aDiameter, bool a_NotPlated) -> DRILL_TOOL"""
9225 _pcbnew.DRILL_TOOL_swiginit(self, _pcbnew.new_DRILL_TOOL(aDiameter, a_NotPlated))
9226 __swig_destroy__ = _pcbnew.delete_DRILL_TOOL
9227
9228# Register DRILL_TOOL in _pcbnew:
9229_pcbnew.DRILL_TOOL_swigregister(DRILL_TOOL)
9230
9232 r"""Proxy of C++ HOLE_INFO class."""
9233
9234 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9235 __repr__ = _swig_repr
9236
9237 def __init__(self):
9238 r"""__init__(HOLE_INFO self) -> HOLE_INFO"""
9239 _pcbnew.HOLE_INFO_swiginit(self, _pcbnew.new_HOLE_INFO())
9240 m_ItemParent = property(_pcbnew.HOLE_INFO_m_ItemParent_get, _pcbnew.HOLE_INFO_m_ItemParent_set, doc=r"""m_ItemParent : p.BOARD_ITEM""")
9241 m_Hole_Diameter = property(_pcbnew.HOLE_INFO_m_Hole_Diameter_get, _pcbnew.HOLE_INFO_m_Hole_Diameter_set, doc=r"""m_Hole_Diameter : int""")
9242 m_Tool_Reference = property(_pcbnew.HOLE_INFO_m_Tool_Reference_get, _pcbnew.HOLE_INFO_m_Tool_Reference_set, doc=r"""m_Tool_Reference : int""")
9243 m_Hole_Size = property(_pcbnew.HOLE_INFO_m_Hole_Size_get, _pcbnew.HOLE_INFO_m_Hole_Size_set, doc=r"""m_Hole_Size : VECTOR2I""")
9244 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""")
9245 m_Hole_Shape = property(_pcbnew.HOLE_INFO_m_Hole_Shape_get, _pcbnew.HOLE_INFO_m_Hole_Shape_set, doc=r"""m_Hole_Shape : int""")
9246 m_Hole_Pos = property(_pcbnew.HOLE_INFO_m_Hole_Pos_get, _pcbnew.HOLE_INFO_m_Hole_Pos_set, doc=r"""m_Hole_Pos : VECTOR2I""")
9247 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""")
9248 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""")
9249 m_Hole_NotPlated = property(_pcbnew.HOLE_INFO_m_Hole_NotPlated_get, _pcbnew.HOLE_INFO_m_Hole_NotPlated_set, doc=r"""m_Hole_NotPlated : bool""")
9250 m_HoleAttribute = property(_pcbnew.HOLE_INFO_m_HoleAttribute_get, _pcbnew.HOLE_INFO_m_HoleAttribute_set, doc=r"""m_HoleAttribute : HOLE_ATTRIBUTE""")
9251 __swig_destroy__ = _pcbnew.delete_HOLE_INFO
9252
9253# Register HOLE_INFO in _pcbnew:
9254_pcbnew.HOLE_INFO_swigregister(HOLE_INFO)
9255
9257 r"""Proxy of C++ DRILL_PRECISION class."""
9258
9259 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9260 __repr__ = _swig_repr
9261
9262 def __init__(self, l=2, r=4):
9263 r"""__init__(DRILL_PRECISION self, int l=2, int r=4) -> DRILL_PRECISION"""
9264 _pcbnew.DRILL_PRECISION_swiginit(self, _pcbnew.new_DRILL_PRECISION(l, r))
9265
9267 r"""GetPrecisionString(DRILL_PRECISION self) -> wxString"""
9268 return _pcbnew.DRILL_PRECISION_GetPrecisionString(self)
9269 m_Lhs = property(_pcbnew.DRILL_PRECISION_m_Lhs_get, _pcbnew.DRILL_PRECISION_m_Lhs_set, doc=r"""m_Lhs : int""")
9270 m_Rhs = property(_pcbnew.DRILL_PRECISION_m_Rhs_get, _pcbnew.DRILL_PRECISION_m_Rhs_set, doc=r"""m_Rhs : int""")
9271 __swig_destroy__ = _pcbnew.delete_DRILL_PRECISION
9272
9273# Register DRILL_PRECISION in _pcbnew:
9274_pcbnew.DRILL_PRECISION_swigregister(DRILL_PRECISION)
9275
9277 r"""Proxy of C++ GENDRILL_WRITER_BASE class."""
9278
9279 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9280
9281 def __init__(self, *args, **kwargs):
9282 raise AttributeError("No constructor defined")
9283 __repr__ = _swig_repr
9284 DECIMAL_FORMAT = _pcbnew.GENDRILL_WRITER_BASE_DECIMAL_FORMAT
9285
9286 SUPPRESS_LEADING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_LEADING
9287
9288 SUPPRESS_TRAILING = _pcbnew.GENDRILL_WRITER_BASE_SUPPRESS_TRAILING
9289
9290 KEEP_ZEROS = _pcbnew.GENDRILL_WRITER_BASE_KEEP_ZEROS
9291
9292 PTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_PTH_FILE
9293
9294 NPTH_FILE = _pcbnew.GENDRILL_WRITER_BASE_NPTH_FILE
9295
9296 MIXED_FILE = _pcbnew.GENDRILL_WRITER_BASE_MIXED_FILE
9297
9298 __swig_destroy__ = _pcbnew.delete_GENDRILL_WRITER_BASE
9299
9300 def SetMergeOption(self, aMerge):
9301 r"""SetMergeOption(GENDRILL_WRITER_BASE self, bool aMerge)"""
9302 return _pcbnew.GENDRILL_WRITER_BASE_SetMergeOption(self, aMerge)
9303
9304 def GetOffset(self):
9305 r"""GetOffset(GENDRILL_WRITER_BASE self) -> VECTOR2I"""
9306 return _pcbnew.GENDRILL_WRITER_BASE_GetOffset(self)
9307
9308 def SetPageInfo(self, aPageInfo):
9309 r"""SetPageInfo(GENDRILL_WRITER_BASE self, PAGE_INFO const * aPageInfo)"""
9310 return _pcbnew.GENDRILL_WRITER_BASE_SetPageInfo(self, aPageInfo)
9311
9312 def SetMapFileFormat(self, aMapFmt):
9313 r"""SetMapFileFormat(GENDRILL_WRITER_BASE self, PLOT_FORMAT aMapFmt)"""
9314 return _pcbnew.GENDRILL_WRITER_BASE_SetMapFileFormat(self, aMapFmt)
9315
9316 def CreateMapFilesSet(self, aPlotDirectory, aReporter=None):
9317 r"""CreateMapFilesSet(GENDRILL_WRITER_BASE self, wxString aPlotDirectory, REPORTER * aReporter=None) -> bool"""
9318 return _pcbnew.GENDRILL_WRITER_BASE_CreateMapFilesSet(self, aPlotDirectory, aReporter)
9319
9320 def GenDrillReportFile(self, aFullFileName):
9321 r"""GenDrillReportFile(GENDRILL_WRITER_BASE self, wxString aFullFileName) -> bool"""
9322 return _pcbnew.GENDRILL_WRITER_BASE_GenDrillReportFile(self, aFullFileName)
9323
9325 r"""GetDrillFileExt(GENDRILL_WRITER_BASE self) -> wxString"""
9326 return _pcbnew.GENDRILL_WRITER_BASE_GetDrillFileExt(self)
9327
9328# Register GENDRILL_WRITER_BASE in _pcbnew:
9329_pcbnew.GENDRILL_WRITER_BASE_swigregister(GENDRILL_WRITER_BASE)
9330
9332 r"""Proxy of C++ EXCELLON_WRITER class."""
9333
9334 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9335 __repr__ = _swig_repr
9336
9337 def __init__(self, aPcb):
9338 r"""__init__(EXCELLON_WRITER self, BOARD aPcb) -> EXCELLON_WRITER"""
9339 _pcbnew.EXCELLON_WRITER_swiginit(self, _pcbnew.new_EXCELLON_WRITER(aPcb))
9340 __swig_destroy__ = _pcbnew.delete_EXCELLON_WRITER
9341
9342 def GetOffset(self):
9343 r"""GetOffset(EXCELLON_WRITER self) -> VECTOR2I"""
9344 return _pcbnew.EXCELLON_WRITER_GetOffset(self)
9345
9346 def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles):
9347 r"""SetRouteModeForOvalHoles(EXCELLON_WRITER self, bool aUseRouteModeForOvalHoles)"""
9348 return _pcbnew.EXCELLON_WRITER_SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
9349
9350 def SetFormat(self, *args):
9351 r"""SetFormat(EXCELLON_WRITER self, bool aMetric, GENDRILL_WRITER_BASE::ZEROS_FMT aZerosFmt=DECIMAL_FORMAT, int aLeftDigits=0, int aRightDigits=0)"""
9352 return _pcbnew.EXCELLON_WRITER_SetFormat(self, *args)
9353
9354 def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH):
9355 r"""SetOptions(EXCELLON_WRITER self, bool aMirror, bool aMinimalHeader, VECTOR2I aOffset, bool aMerge_PTH_NPTH)"""
9356 return _pcbnew.EXCELLON_WRITER_SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
9357
9358 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
9359 r"""CreateDrillandMapFilesSet(EXCELLON_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
9360 return _pcbnew.EXCELLON_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
9361
9362# Register EXCELLON_WRITER in _pcbnew:
9363_pcbnew.EXCELLON_WRITER_swigregister(EXCELLON_WRITER)
9364
9366 r"""Proxy of C++ GERBER_WRITER class."""
9367
9368 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9369 __repr__ = _swig_repr
9370
9371 def __init__(self, aPcb):
9372 r"""__init__(GERBER_WRITER self, BOARD aPcb) -> GERBER_WRITER"""
9373 _pcbnew.GERBER_WRITER_swiginit(self, _pcbnew.new_GERBER_WRITER(aPcb))
9374 __swig_destroy__ = _pcbnew.delete_GERBER_WRITER
9375
9376 def SetFormat(self, aRightDigits=6):
9377 r"""SetFormat(GERBER_WRITER self, int aRightDigits=6)"""
9378 return _pcbnew.GERBER_WRITER_SetFormat(self, aRightDigits)
9379
9380 def SetOptions(self, aOffset):
9381 r"""SetOptions(GERBER_WRITER self, VECTOR2I aOffset)"""
9382 return _pcbnew.GERBER_WRITER_SetOptions(self, aOffset)
9383
9384 def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None):
9385 r"""CreateDrillandMapFilesSet(GERBER_WRITER self, wxString aPlotDirectory, bool aGenDrill, bool aGenMap, REPORTER * aReporter=None) -> bool"""
9386 return _pcbnew.GERBER_WRITER_CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter)
9387
9388# Register GERBER_WRITER in _pcbnew:
9389_pcbnew.GERBER_WRITER_swigregister(GERBER_WRITER)
9390
9391SIDE_NONE = _pcbnew.SIDE_NONE
9392
9393SIDE_TOP = _pcbnew.SIDE_TOP
9394
9395SIDE_BOTTOM = _pcbnew.SIDE_BOTTOM
9396
9397SIDE_BOTH = _pcbnew.SIDE_BOTH
9398
9400 r"""Proxy of C++ JOBFILE_PARAMS class."""
9401
9402 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9403 __repr__ = _swig_repr
9404 m_GerberFileList = property(_pcbnew.JOBFILE_PARAMS_m_GerberFileList_get, _pcbnew.JOBFILE_PARAMS_m_GerberFileList_set, doc=r"""m_GerberFileList : wxArrayString""")
9405 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)>)>""")
9406
9407 def __init__(self):
9408 r"""__init__(JOBFILE_PARAMS self) -> JOBFILE_PARAMS"""
9409 _pcbnew.JOBFILE_PARAMS_swiginit(self, _pcbnew.new_JOBFILE_PARAMS())
9410 __swig_destroy__ = _pcbnew.delete_JOBFILE_PARAMS
9411
9412# Register JOBFILE_PARAMS in _pcbnew:
9413_pcbnew.JOBFILE_PARAMS_swigregister(JOBFILE_PARAMS)
9414
9416 r"""Proxy of C++ GERBER_JOBFILE_WRITER class."""
9417
9418 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9419 __repr__ = _swig_repr
9420
9421 def __init__(self, aPcb, aReporter=None):
9422 r"""__init__(GERBER_JOBFILE_WRITER self, BOARD aPcb, REPORTER * aReporter=None) -> GERBER_JOBFILE_WRITER"""
9423 _pcbnew.GERBER_JOBFILE_WRITER_swiginit(self, _pcbnew.new_GERBER_JOBFILE_WRITER(aPcb, aReporter))
9424 __swig_destroy__ = _pcbnew.delete_GERBER_JOBFILE_WRITER
9425
9426 def AddGbrFile(self, aLayer, aFilename):
9427 r"""AddGbrFile(GERBER_JOBFILE_WRITER self, PCB_LAYER_ID aLayer, wxString aFilename)"""
9428 return _pcbnew.GERBER_JOBFILE_WRITER_AddGbrFile(self, aLayer, aFilename)
9429
9430 def CreateJobFile(self, aFullFilename):
9431 r"""CreateJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9432 return _pcbnew.GERBER_JOBFILE_WRITER_CreateJobFile(self, aFullFilename)
9433
9434 def WriteJSONJobFile(self, aFullFilename):
9435 r"""WriteJSONJobFile(GERBER_JOBFILE_WRITER self, wxString aFullFilename) -> bool"""
9436 return _pcbnew.GERBER_JOBFILE_WRITER_WriteJSONJobFile(self, aFullFilename)
9437
9438# Register GERBER_JOBFILE_WRITER in _pcbnew:
9439_pcbnew.GERBER_JOBFILE_WRITER_swigregister(GERBER_JOBFILE_WRITER)
9440
9441ROOM_FOR_KICADMANAGER = _pcbnew.ROOM_FOR_KICADMANAGER
9442
9443ROOM_FOR_3D_VIEWER = _pcbnew.ROOM_FOR_3D_VIEWER
9444
9445ROOM_FOR_PANEL_PREV_MODEL = _pcbnew.ROOM_FOR_PANEL_PREV_MODEL
9446
9447DEFAULT_FILE_HISTORY_SIZE = _pcbnew.DEFAULT_FILE_HISTORY_SIZE
9448
9449MAX_FILE_HISTORY_SIZE = _pcbnew.MAX_FILE_HISTORY_SIZE
9450
9451ID_APPEND_PROJECT = _pcbnew.ID_APPEND_PROJECT
9452
9453ID_LOAD_FILE = _pcbnew.ID_LOAD_FILE
9454
9455ID_NEW_BOARD = _pcbnew.ID_NEW_BOARD
9456
9457ID_SAVE_BOARD = _pcbnew.ID_SAVE_BOARD
9458
9459ID_SAVE_BOARD_AS = _pcbnew.ID_SAVE_BOARD_AS
9460
9461ID_AUTO_SAVE_TIMER = _pcbnew.ID_AUTO_SAVE_TIMER
9462
9463ID_FILE = _pcbnew.ID_FILE
9464
9465ID_FILE1 = _pcbnew.ID_FILE1
9466
9467ID_FILEMAX = _pcbnew.ID_FILEMAX
9468
9469ID_FILE_LIST_EMPTY = _pcbnew.ID_FILE_LIST_EMPTY
9470
9471ID_FILE_LIST_CLEAR = _pcbnew.ID_FILE_LIST_CLEAR
9472
9473ID_PREFERENCES_RESET_PANEL = _pcbnew.ID_PREFERENCES_RESET_PANEL
9474
9475ID_GEN_PLOT = _pcbnew.ID_GEN_PLOT
9476
9477ID_GEN_PLOT_PS = _pcbnew.ID_GEN_PLOT_PS
9478
9479ID_GEN_PLOT_HPGL = _pcbnew.ID_GEN_PLOT_HPGL
9480
9481ID_GEN_PLOT_GERBER = _pcbnew.ID_GEN_PLOT_GERBER
9482
9483ID_GEN_PLOT_SVG = _pcbnew.ID_GEN_PLOT_SVG
9484
9485ID_GEN_PLOT_DXF = _pcbnew.ID_GEN_PLOT_DXF
9486
9487ID_GEN_PLOT_PDF = _pcbnew.ID_GEN_PLOT_PDF
9488
9489ID_H_TOOLBAR = _pcbnew.ID_H_TOOLBAR
9490
9491ID_V_TOOLBAR = _pcbnew.ID_V_TOOLBAR
9492
9493ID_OPT_TOOLBAR = _pcbnew.ID_OPT_TOOLBAR
9494
9495ID_AUX_TOOLBAR = _pcbnew.ID_AUX_TOOLBAR
9496
9497ID_LANGUAGE_CHOICE = _pcbnew.ID_LANGUAGE_CHOICE
9498
9499ID_LANGUAGE_DANISH = _pcbnew.ID_LANGUAGE_DANISH
9500
9501ID_LANGUAGE_DEFAULT = _pcbnew.ID_LANGUAGE_DEFAULT
9502
9503ID_LANGUAGE_ENGLISH = _pcbnew.ID_LANGUAGE_ENGLISH
9504
9505ID_LANGUAGE_FRENCH = _pcbnew.ID_LANGUAGE_FRENCH
9506
9507ID_LANGUAGE_FINNISH = _pcbnew.ID_LANGUAGE_FINNISH
9508
9509ID_LANGUAGE_SPANISH = _pcbnew.ID_LANGUAGE_SPANISH
9510
9511ID_LANGUAGE_SPANISH_MEXICAN = _pcbnew.ID_LANGUAGE_SPANISH_MEXICAN
9512
9513ID_LANGUAGE_GERMAN = _pcbnew.ID_LANGUAGE_GERMAN
9514
9515ID_LANGUAGE_GREEK = _pcbnew.ID_LANGUAGE_GREEK
9516
9517ID_LANGUAGE_NORWEGIAN = _pcbnew.ID_LANGUAGE_NORWEGIAN
9518
9519ID_LANGUAGE_RUSSIAN = _pcbnew.ID_LANGUAGE_RUSSIAN
9520
9521ID_LANGUAGE_PORTUGUESE = _pcbnew.ID_LANGUAGE_PORTUGUESE
9522
9523ID_LANGUAGE_PORTUGUESE_BRAZILIAN = _pcbnew.ID_LANGUAGE_PORTUGUESE_BRAZILIAN
9524
9525ID_LANGUAGE_TURKISH = _pcbnew.ID_LANGUAGE_TURKISH
9526
9527ID_LANGUAGE_INDONESIAN = _pcbnew.ID_LANGUAGE_INDONESIAN
9528
9529ID_LANGUAGE_ITALIAN = _pcbnew.ID_LANGUAGE_ITALIAN
9530
9531ID_LANGUAGE_SLOVENIAN = _pcbnew.ID_LANGUAGE_SLOVENIAN
9532
9533ID_LANGUAGE_SLOVAK = _pcbnew.ID_LANGUAGE_SLOVAK
9534
9535ID_LANGUAGE_HUNGARIAN = _pcbnew.ID_LANGUAGE_HUNGARIAN
9536
9537ID_LANGUAGE_POLISH = _pcbnew.ID_LANGUAGE_POLISH
9538
9539ID_LANGUAGE_CZECH = _pcbnew.ID_LANGUAGE_CZECH
9540
9541ID_LANGUAGE_KOREAN = _pcbnew.ID_LANGUAGE_KOREAN
9542
9543ID_LANGUAGE_CATALAN = _pcbnew.ID_LANGUAGE_CATALAN
9544
9545ID_LANGUAGE_CHINESE_SIMPLIFIED = _pcbnew.ID_LANGUAGE_CHINESE_SIMPLIFIED
9546
9547ID_LANGUAGE_CHINESE_TRADITIONAL = _pcbnew.ID_LANGUAGE_CHINESE_TRADITIONAL
9548
9549ID_LANGUAGE_DUTCH = _pcbnew.ID_LANGUAGE_DUTCH
9550
9551ID_LANGUAGE_JAPANESE = _pcbnew.ID_LANGUAGE_JAPANESE
9552
9553ID_LANGUAGE_BULGARIAN = _pcbnew.ID_LANGUAGE_BULGARIAN
9554
9555ID_LANGUAGE_LATVIAN = _pcbnew.ID_LANGUAGE_LATVIAN
9556
9557ID_LANGUAGE_LITHUANIAN = _pcbnew.ID_LANGUAGE_LITHUANIAN
9558
9559ID_LANGUAGE_VIETNAMESE = _pcbnew.ID_LANGUAGE_VIETNAMESE
9560
9561ID_LANGUAGE_SERBIAN = _pcbnew.ID_LANGUAGE_SERBIAN
9562
9563ID_LANGUAGE_THAI = _pcbnew.ID_LANGUAGE_THAI
9564
9565ID_LANGUAGE_SWEDISH = _pcbnew.ID_LANGUAGE_SWEDISH
9566
9567ID_LANGUAGE_UKRANIAN = _pcbnew.ID_LANGUAGE_UKRANIAN
9568
9569ID_LANGUAGE_CHOICE_END = _pcbnew.ID_LANGUAGE_CHOICE_END
9570
9571ID_ON_ZOOM_SELECT = _pcbnew.ID_ON_ZOOM_SELECT
9572
9573ID_ON_GRID_SELECT = _pcbnew.ID_ON_GRID_SELECT
9574
9575ID_POPUP_ZOOM_LEVEL_START = _pcbnew.ID_POPUP_ZOOM_LEVEL_START
9576
9577ID_POPUP_ZOOM_LEVEL_END = _pcbnew.ID_POPUP_ZOOM_LEVEL_END
9578
9579ID_POPUP_GRID_START = _pcbnew.ID_POPUP_GRID_START
9580
9581ID_POPUP_GRID_END = _pcbnew.ID_POPUP_GRID_END
9582
9583ID_EDA_SOCKET_EVENT_SERV = _pcbnew.ID_EDA_SOCKET_EVENT_SERV
9584
9585ID_EDA_SOCKET_EVENT = _pcbnew.ID_EDA_SOCKET_EVENT
9586
9587ID_KICAD_MANAGER_START = _pcbnew.ID_KICAD_MANAGER_START
9588
9589ID_KICAD_MANAGER_END = _pcbnew.ID_KICAD_MANAGER_END
9590
9591ID_KICAD_3D_VIEWER_START = _pcbnew.ID_KICAD_3D_VIEWER_START
9592
9593ID_KICAD_3D_VIEWER_END = _pcbnew.ID_KICAD_3D_VIEWER_END
9594
9595ID_KICAD_PANEL_PREV_MODEL_START = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_START
9596
9597ID_KICAD_PANEL_PREV_MODEL_END = _pcbnew.ID_KICAD_PANEL_PREV_MODEL_END
9598
9599ID_POPUP_MENU_START = _pcbnew.ID_POPUP_MENU_START
9600
9601ID_POPUP_MENU_END = _pcbnew.ID_POPUP_MENU_END
9602
9603ID_END_LIST = _pcbnew.ID_END_LIST
9604
9605
9607 r"""GetBoard() -> BOARD"""
9608 return _pcbnew.GetBoard()
9609
9610def LoadBoard(*args):
9611 r"""
9612 LoadBoard(wxString aFileName, PCB_IO_MGR::PCB_FILE_T aFormat) -> BOARD
9613 LoadBoard(wxString aFileName) -> BOARD
9614 """
9615 return _pcbnew.LoadBoard(*args)
9616
9617def NewBoard(aFileName):
9618 r"""NewBoard(wxString aFileName) -> BOARD"""
9619 return _pcbnew.NewBoard(aFileName)
9620
9622 r"""GetSettingsManager() -> SETTINGS_MANAGER"""
9623 return _pcbnew.GetSettingsManager()
9624
9626 r"""CreateEmptyBoard() -> BOARD"""
9627 return _pcbnew.CreateEmptyBoard()
9628
9629def SaveBoard(aFileName, aBoard, aSkipSettings=False):
9630 r"""SaveBoard(wxString aFileName, BOARD aBoard, bool aSkipSettings=False) -> bool"""
9631 return _pcbnew.SaveBoard(aFileName, aBoard, aSkipSettings)
9632
9634 r"""GetFootprintLibraries() -> wxArrayString"""
9635 return _pcbnew.GetFootprintLibraries()
9636
9637def GetFootprints(aNickName):
9638 r"""GetFootprints(wxString aNickName) -> wxArrayString"""
9639 return _pcbnew.GetFootprints(aNickName)
9640
9642 r"""
9643 ExportSpecctraDSN(wxString aFullFilename) -> bool
9644 ExportSpecctraDSN(BOARD aBoard, wxString aFullFilename) -> bool
9645 """
9646 return _pcbnew.ExportSpecctraDSN(*args)
9647
9648def ExportVRML(aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef):
9649 r"""ExportVRML(wxString aFullFileName, double aMMtoWRMLunit, bool aExport3DFiles, bool aUseRelativePaths, wxString a3D_Subdir, double aXRef, double aYRef) -> bool"""
9650 return _pcbnew.ExportVRML(aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
9651
9653 r"""
9654 ImportSpecctraSES(wxString aFullFilename) -> bool
9655 ImportSpecctraSES(BOARD aBoard, wxString aFullFilename) -> bool
9656 """
9657 return _pcbnew.ImportSpecctraSES(*args)
9658
9660 r"""ExportFootprintsToLibrary(bool aStoreInNewLib, wxString aLibName=wxEmptyString, wxString aLibPath=None) -> bool"""
9661 return _pcbnew.ExportFootprintsToLibrary(*args)
9662
9664 r"""Refresh()"""
9665 return _pcbnew.Refresh()
9666
9668 r"""UpdateUserInterface()"""
9669 return _pcbnew.UpdateUserInterface()
9670
9672 r"""GetUserUnits() -> int"""
9673 return _pcbnew.GetUserUnits()
9674
9676 r"""GetCurrentSelection() -> DRAWINGS"""
9677 return _pcbnew.GetCurrentSelection()
9678
9679def FocusOnItem(aItem, aLayer=UNDEFINED_LAYER):
9680 r"""FocusOnItem(BOARD_ITEM aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
9681 return _pcbnew.FocusOnItem(aItem, aLayer)
9682
9684 r"""IsActionRunning() -> bool"""
9685 return _pcbnew.IsActionRunning()
9686
9687def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors):
9688 r"""WriteDRCReport(BOARD aBoard, wxString aFileName, EDA_UNITS aUnits, bool aReportAllTrackErrors) -> bool"""
9689 return _pcbnew.WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
9690
9692 r"""GetLanguage() -> wxString"""
9693 return _pcbnew.GetLanguage()
9694ZLO_NONE = _pcbnew.ZLO_NONE
9695
9696ZLO_FORCE_FLASHED = _pcbnew.ZLO_FORCE_FLASHED
9697
9698ZLO_FORCE_NO_ZONE_CONNECTION = _pcbnew.ZLO_FORCE_NO_ZONE_CONNECTION
9699
9701 r"""Proxy of C++ BOARD_ITEM class."""
9702
9703 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9704
9705 def __init__(self, *args, **kwargs):
9706 raise AttributeError("No constructor defined - class is abstract")
9707 __repr__ = _swig_repr
9708 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM
9709
9710 def SetParentGroup(self, aGroup):
9711 r"""SetParentGroup(BOARD_ITEM self, PCB_GROUP aGroup)"""
9712 return _pcbnew.BOARD_ITEM_SetParentGroup(self, aGroup)
9713
9715 r"""GetParentGroup(BOARD_ITEM self) -> PCB_GROUP"""
9716 return _pcbnew.BOARD_ITEM_GetParentGroup(self)
9717
9718 def GetX(self):
9719 r"""GetX(BOARD_ITEM self) -> int"""
9720 return _pcbnew.BOARD_ITEM_GetX(self)
9721
9722 def GetY(self):
9723 r"""GetY(BOARD_ITEM self) -> int"""
9724 return _pcbnew.BOARD_ITEM_GetY(self)
9725
9726 def GetCenter(self):
9727 r"""GetCenter(BOARD_ITEM self) -> VECTOR2I"""
9728 return _pcbnew.BOARD_ITEM_GetCenter(self)
9729
9730 def SetX(self, aX):
9731 r"""SetX(BOARD_ITEM self, int aX)"""
9732 return _pcbnew.BOARD_ITEM_SetX(self, aX)
9733
9734 def SetY(self, aY):
9735 r"""SetY(BOARD_ITEM self, int aY)"""
9736 return _pcbnew.BOARD_ITEM_SetY(self, aY)
9737
9738 def IsConnected(self):
9739 r"""IsConnected(BOARD_ITEM self) -> bool"""
9740 return _pcbnew.BOARD_ITEM_IsConnected(self)
9741
9742 def Similarity(self, aItem):
9743 r"""Similarity(BOARD_ITEM self, BOARD_ITEM aItem) -> double"""
9744 return _pcbnew.BOARD_ITEM_Similarity(self, aItem)
9745
9746 def __eq__(self, aItem):
9747 r"""__eq__(BOARD_ITEM self, BOARD_ITEM aItem) -> bool"""
9748 return _pcbnew.BOARD_ITEM___eq__(self, aItem)
9749
9751 r"""IsOnCopperLayer(BOARD_ITEM self) -> bool"""
9752 return _pcbnew.BOARD_ITEM_IsOnCopperLayer(self)
9753
9754 def HasHole(self):
9755 r"""HasHole(BOARD_ITEM self) -> bool"""
9756 return _pcbnew.BOARD_ITEM_HasHole(self)
9757
9758 def IsTented(self):
9759 r"""IsTented(BOARD_ITEM self) -> bool"""
9760 return _pcbnew.BOARD_ITEM_IsTented(self)
9761
9762 def GetEffectiveShape(self, *args):
9763 r"""GetEffectiveShape(BOARD_ITEM self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
9764 return _pcbnew.BOARD_ITEM_GetEffectiveShape(self, *args)
9765
9767 r"""GetEffectiveHoleShape(BOARD_ITEM self) -> std::shared_ptr< SHAPE_SEGMENT >"""
9768 return _pcbnew.BOARD_ITEM_GetEffectiveHoleShape(self)
9769
9770 def RunOnChildren(self, aFunction):
9771 r"""RunOnChildren(BOARD_ITEM self, std::function< void (BOARD_ITEM *) > const & aFunction)"""
9772 return _pcbnew.BOARD_ITEM_RunOnChildren(self, aFunction)
9773
9774 def RunOnDescendants(self, aFunction, aDepth=0):
9775 r"""RunOnDescendants(BOARD_ITEM self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
9776 return _pcbnew.BOARD_ITEM_RunOnDescendants(self, aFunction, aDepth)
9777
9778 def GetParent(self):
9779 r"""GetParent(BOARD_ITEM self) -> BOARD_ITEM_CONTAINER"""
9780 return _pcbnew.BOARD_ITEM_GetParent(self)
9781
9783 r"""GetParentFootprint(BOARD_ITEM self) -> FOOTPRINT"""
9784 return _pcbnew.BOARD_ITEM_GetParentFootprint(self)
9785
9787 r"""GetFPRelativePosition(BOARD_ITEM self) -> VECTOR2I"""
9788 return _pcbnew.BOARD_ITEM_GetFPRelativePosition(self)
9789
9790 def SetFPRelativePosition(self, aPos):
9791 r"""SetFPRelativePosition(BOARD_ITEM self, VECTOR2I aPos)"""
9792 return _pcbnew.BOARD_ITEM_SetFPRelativePosition(self, aPos)
9793
9794 def HasLineStroke(self):
9795 r"""HasLineStroke(BOARD_ITEM self) -> bool"""
9796 return _pcbnew.BOARD_ITEM_HasLineStroke(self)
9797
9798 def GetStroke(self):
9799 r"""GetStroke(BOARD_ITEM self) -> STROKE_PARAMS"""
9800 return _pcbnew.BOARD_ITEM_GetStroke(self)
9801
9802 def SetStroke(self, aStroke):
9803 r"""SetStroke(BOARD_ITEM self, STROKE_PARAMS const & aStroke)"""
9804 return _pcbnew.BOARD_ITEM_SetStroke(self, aStroke)
9805
9807 r"""GetFontMetrics(BOARD_ITEM self) -> KIFONT::METRICS const &"""
9808 return _pcbnew.BOARD_ITEM_GetFontMetrics(self)
9809
9810 def GetLayer(self):
9811 r"""GetLayer(BOARD_ITEM self) -> PCB_LAYER_ID"""
9812 return _pcbnew.BOARD_ITEM_GetLayer(self)
9813
9814 def GetLayerSet(self):
9815 r"""GetLayerSet(BOARD_ITEM self) -> LSET"""
9816 return _pcbnew.BOARD_ITEM_GetLayerSet(self)
9817
9818 def SetLayerSet(self, aLayers):
9819 r"""SetLayerSet(BOARD_ITEM self, LSET aLayers)"""
9820 return _pcbnew.BOARD_ITEM_SetLayerSet(self, aLayers)
9821
9822 def SetLayer(self, aLayer):
9823 r"""SetLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer)"""
9824 return _pcbnew.BOARD_ITEM_SetLayer(self, aLayer)
9825
9826 def Duplicate(self):
9827 r"""Duplicate(BOARD_ITEM self) -> BOARD_ITEM"""
9828 return _pcbnew.BOARD_ITEM_Duplicate(self)
9829
9830 def SwapItemData(self, aImage):
9831 r"""SwapItemData(BOARD_ITEM self, BOARD_ITEM aImage)"""
9832 return _pcbnew.BOARD_ITEM_SwapItemData(self, aImage)
9833
9834 def IsOnLayer(self, aLayer):
9835 r"""IsOnLayer(BOARD_ITEM self, PCB_LAYER_ID aLayer) -> bool"""
9836 return _pcbnew.BOARD_ITEM_IsOnLayer(self, aLayer)
9837
9838 def IsKnockout(self):
9839 r"""IsKnockout(BOARD_ITEM self) -> bool"""
9840 return _pcbnew.BOARD_ITEM_IsKnockout(self)
9841
9842 def SetIsKnockout(self, aKnockout):
9843 r"""SetIsKnockout(BOARD_ITEM self, bool aKnockout)"""
9844 return _pcbnew.BOARD_ITEM_SetIsKnockout(self, aKnockout)
9845
9846 def IsLocked(self):
9847 r"""IsLocked(BOARD_ITEM self) -> bool"""
9848 return _pcbnew.BOARD_ITEM_IsLocked(self)
9849
9850 def SetLocked(self, aLocked):
9851 r"""SetLocked(BOARD_ITEM self, bool aLocked)"""
9852 return _pcbnew.BOARD_ITEM_SetLocked(self, aLocked)
9853
9854 def StyleFromSettings(self, settings):
9855 r"""StyleFromSettings(BOARD_ITEM self, BOARD_DESIGN_SETTINGS settings)"""
9856 return _pcbnew.BOARD_ITEM_StyleFromSettings(self, settings)
9857
9859 r"""DeleteStructure(BOARD_ITEM self)"""
9860 return _pcbnew.BOARD_ITEM_DeleteStructure(self)
9861
9862 def Move(self, aMoveVector):
9863 r"""Move(BOARD_ITEM self, VECTOR2I aMoveVector)"""
9864 return _pcbnew.BOARD_ITEM_Move(self, aMoveVector)
9865
9866 def Rotate(self, aRotCentre, aAngle):
9867 r"""Rotate(BOARD_ITEM self, VECTOR2I aRotCentre, EDA_ANGLE aAngle)"""
9868 return _pcbnew.BOARD_ITEM_Rotate(self, aRotCentre, aAngle)
9869
9870 def Flip(self, aCentre, aFlipLeftRight):
9871 r"""Flip(BOARD_ITEM self, VECTOR2I aCentre, bool aFlipLeftRight)"""
9872 return _pcbnew.BOARD_ITEM_Flip(self, aCentre, aFlipLeftRight)
9873
9874 def Normalize(self):
9875 r"""Normalize(BOARD_ITEM self)"""
9876 return _pcbnew.BOARD_ITEM_Normalize(self)
9877
9879 r"""NormalizeForCompare(BOARD_ITEM self)"""
9880 return _pcbnew.BOARD_ITEM_NormalizeForCompare(self)
9881
9882 def GetBoard(self, *args):
9883 r"""
9884 GetBoard(BOARD_ITEM self) -> BOARD
9885 GetBoard(BOARD_ITEM self) -> BOARD
9886 """
9887 return _pcbnew.BOARD_ITEM_GetBoard(self, *args)
9888
9890 r"""GetParentAsString(BOARD_ITEM self) -> wxString"""
9891 return _pcbnew.BOARD_ITEM_GetParentAsString(self)
9892
9893 def GetLayerName(self):
9894 r"""GetLayerName(BOARD_ITEM self) -> wxString"""
9895 return _pcbnew.BOARD_ITEM_GetLayerName(self)
9896
9897 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
9898 r"""TransformShapeToPolygon(BOARD_ITEM self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
9899 return _pcbnew.BOARD_ITEM_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
9900 DRC = _pcbnew.BOARD_ITEM_DRC
9901
9902
9903 def Cast(self):
9904
9905 ct = self.GetClass()
9906
9907 if ct=="PCB_TEXT":
9908 return Cast_to_PCB_TEXT(self)
9909 if ct=="PCB_TEXTBOX":
9910 return Cast_to_PCB_TEXTBOX(self)
9911 elif ct=="BOARD":
9912 return Cast_to_BOARD(self)
9913 elif ct=="PCB_DIM_ALIGNED":
9914 return Cast_to_PCB_DIM_ALIGNED(self)
9915 elif ct=="PCB_DIM_LEADER":
9916 return Cast_to_PCB_DIM_LEADER(self)
9917 elif ct=="PCB_DIM_CENTER":
9918 return Cast_to_PCB_DIM_CENTER(self)
9919 elif ct=="PCB_DIM_RADIAL":
9920 return Cast_to_PCB_DIM_RADIAL(self)
9921 elif ct=="PCB_DIM_ORTHOGONAL":
9922 return Cast_to_PCB_DIM_ORTHOGONAL(self)
9923 elif ct=="PCB_SHAPE":
9924 return Cast_to_PCB_SHAPE(self)
9925 elif ct=="FOOTPRINT":
9926 return Cast_to_FOOTPRINT(self)
9927 elif ct=="PCB_GROUP":
9928 return Cast_to_PCB_GROUP(self)
9929 elif ct=="PAD":
9930 return Cast_to_PAD(self)
9931 elif ct=="PCB_VIA":
9932 return Cast_to_PCB_VIA(self)
9933 elif ct=="PCB_TRACK":
9934 return Cast_to_PCB_TRACK(self)
9935 elif ct=="PCB_ARC":
9936 return Cast_to_PCB_ARC(self)
9937 elif ct=="PCB_TARGET":
9938 return Cast_to_PCB_TARGET(self)
9939 elif ct=="PCB_REFERENCE_IMAGE":
9940 return Cast_to_PCB_REFERENCE_IMAGE(self)
9941 elif ct=="ZONE":
9942 return Cast_to_ZONE(self)
9943 else:
9944 raise TypeError("Unsupported drawing class: %s" % ct)
9945
9946 """
9947 Needed to cast BOARD_ITEM::Duplicate() to the suitable type
9948 """
9949 def Duplicate(self):
9950 ct = self.GetClass()
9951 if ct=="BOARD":
9952 return None
9953 else:
9954 return Cast_to_BOARD_ITEM( _pcbnew.BOARD_ITEM_Duplicate(self) ).Cast()
9955
9956 def SetPos(self,p):
9957 self.SetPosition(p)
9958 #self.SetPos0(p)
9959
9960 def SetStartEnd(self,start,end):
9961 self.SetStart(start)
9962 #self.SetStart0(start)
9963 self.SetEnd(end)
9964 #self.SetEnd0(end)
9965
9966
9967# Register BOARD_ITEM in _pcbnew:
9968_pcbnew.BOARD_ITEM_swigregister(BOARD_ITEM)
9969
9971 r"""Proxy of C++ DELETED_BOARD_ITEM class."""
9972
9973 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9974 __repr__ = _swig_repr
9975
9976 def __init__(self):
9977 r"""__init__(DELETED_BOARD_ITEM self) -> DELETED_BOARD_ITEM"""
9978 _pcbnew.DELETED_BOARD_ITEM_swiginit(self, _pcbnew.new_DELETED_BOARD_ITEM())
9979
9980 @staticmethod
9982 r"""GetInstance() -> DELETED_BOARD_ITEM"""
9983 return _pcbnew.DELETED_BOARD_ITEM_GetInstance()
9984 __swig_destroy__ = _pcbnew.delete_DELETED_BOARD_ITEM
9985
9986# Register DELETED_BOARD_ITEM in _pcbnew:
9987_pcbnew.DELETED_BOARD_ITEM_swigregister(DELETED_BOARD_ITEM)
9988
9990 r"""DELETED_BOARD_ITEM_GetInstance() -> DELETED_BOARD_ITEM"""
9991 return _pcbnew.DELETED_BOARD_ITEM_GetInstance()
9992
9993IS_CHANGED = _pcbnew.IS_CHANGED
9994
9995IS_LINKED = _pcbnew.IS_LINKED
9996
9997IN_EDIT = _pcbnew.IN_EDIT
9998
9999IS_MOVING = _pcbnew.IS_MOVING
10000
10001IS_NEW = _pcbnew.IS_NEW
10002
10003IS_BROKEN = _pcbnew.IS_BROKEN
10004
10005IS_DELETED = _pcbnew.IS_DELETED
10006
10007STARTPOINT = _pcbnew.STARTPOINT
10008
10009ENDPOINT = _pcbnew.ENDPOINT
10010
10011SELECTED = _pcbnew.SELECTED
10012
10013SELECTED_BY_DRAG = _pcbnew.SELECTED_BY_DRAG
10014
10015STRUCT_DELETED = _pcbnew.STRUCT_DELETED
10016
10017CANDIDATE = _pcbnew.CANDIDATE
10018
10019SKIP_STRUCT = _pcbnew.SKIP_STRUCT
10020
10021IS_PASTED = _pcbnew.IS_PASTED
10022
10023IS_SHOWN_AS_BITMAP = _pcbnew.IS_SHOWN_AS_BITMAP
10024
10025COURTYARD_CONFLICT = _pcbnew.COURTYARD_CONFLICT
10026
10027MALFORMED_F_COURTYARD = _pcbnew.MALFORMED_F_COURTYARD
10028
10029MALFORMED_B_COURTYARD = _pcbnew.MALFORMED_B_COURTYARD
10030
10031MALFORMED_COURTYARDS = _pcbnew.MALFORMED_COURTYARDS
10032
10033ROUTER_TRANSIENT = _pcbnew.ROUTER_TRANSIENT
10034
10035HOLE_PROXY = _pcbnew.HOLE_PROXY
10036
10037IS_ROLLOVER = _pcbnew.IS_ROLLOVER
10038
10039SHOW_ELEC_TYPE = _pcbnew.SHOW_ELEC_TYPE
10040
10041BRIGHTENED = _pcbnew.BRIGHTENED
10042
10043UR_TRANSIENT = _pcbnew.UR_TRANSIENT
10044
10045IS_DANGLING = _pcbnew.IS_DANGLING
10046
10047ENTERED = _pcbnew.ENTERED
10048
10050 r"""Proxy of C++ UNITS_PROVIDER class."""
10051
10052 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10053 __repr__ = _swig_repr
10054
10055 def __init__(self, aIuScale, aUnits):
10056 r"""__init__(UNITS_PROVIDER self, EDA_IU_SCALE aIuScale, EDA_UNITS aUnits) -> UNITS_PROVIDER"""
10057 _pcbnew.UNITS_PROVIDER_swiginit(self, _pcbnew.new_UNITS_PROVIDER(aIuScale, aUnits))
10058 __swig_destroy__ = _pcbnew.delete_UNITS_PROVIDER
10059
10060 def GetUserUnits(self):
10061 r"""GetUserUnits(UNITS_PROVIDER self) -> EDA_UNITS"""
10062 return _pcbnew.UNITS_PROVIDER_GetUserUnits(self)
10063
10064 def SetUserUnits(self, aUnits):
10065 r"""SetUserUnits(UNITS_PROVIDER self, EDA_UNITS aUnits)"""
10066 return _pcbnew.UNITS_PROVIDER_SetUserUnits(self, aUnits)
10067
10068 def GetUnitPair(self, aPrimaryUnit, aSecondaryUnits):
10069 r"""GetUnitPair(UNITS_PROVIDER self, EDA_UNITS & aPrimaryUnit, EDA_UNITS & aSecondaryUnits)"""
10070 return _pcbnew.UNITS_PROVIDER_GetUnitPair(self, aPrimaryUnit, aSecondaryUnits)
10071
10072 def GetIuScale(self):
10073 r"""GetIuScale(UNITS_PROVIDER self) -> EDA_IU_SCALE"""
10074 return _pcbnew.UNITS_PROVIDER_GetIuScale(self)
10075
10077 r"""GetOriginTransforms(UNITS_PROVIDER self) -> ORIGIN_TRANSFORMS &"""
10078 return _pcbnew.UNITS_PROVIDER_GetOriginTransforms(self)
10079
10080 def StringFromValue(self, *args):
10081 r"""
10082 StringFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=False, EDA_DATA_TYPE aType=DISTANCE) -> wxString
10083 StringFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=False) -> wxString
10084 """
10085 return _pcbnew.UNITS_PROVIDER_StringFromValue(self, *args)
10086
10087 def MessageTextFromValue(self, *args):
10088 r"""
10089 MessageTextFromValue(UNITS_PROVIDER self, double aValue, bool aAddUnitLabel=True, EDA_DATA_TYPE aType=DISTANCE) -> wxString
10090 MessageTextFromValue(UNITS_PROVIDER self, EDA_ANGLE aValue, bool aAddUnitLabel=True) -> wxString
10091 """
10092 return _pcbnew.UNITS_PROVIDER_MessageTextFromValue(self, *args)
10093
10094 def MessageTextFromMinOptMax(self, aValue):
10095 r"""MessageTextFromMinOptMax(UNITS_PROVIDER self, MINOPTMAX< int > const & aValue) -> wxString"""
10096 return _pcbnew.UNITS_PROVIDER_MessageTextFromMinOptMax(self, aValue)
10097
10098 def ValueFromString(self, *args):
10099 r"""ValueFromString(UNITS_PROVIDER self, wxString aTextValue, EDA_DATA_TYPE aType=DISTANCE) -> int"""
10100 return _pcbnew.UNITS_PROVIDER_ValueFromString(self, *args)
10101
10102 def AngleValueFromString(self, aTextValue):
10103 r"""AngleValueFromString(UNITS_PROVIDER self, wxString aTextValue) -> EDA_ANGLE"""
10104 return _pcbnew.UNITS_PROVIDER_AngleValueFromString(self, aTextValue)
10105
10106# Register UNITS_PROVIDER in _pcbnew:
10107_pcbnew.UNITS_PROVIDER_swigregister(UNITS_PROVIDER)
10108
10109
10111 r"""Cast_to_BOARD_ITEM(EDA_ITEM base) -> BOARD_ITEM"""
10112 return _pcbnew.Cast_to_BOARD_ITEM(base)
10113
10115 r"""Cast_to_PCB_TEXT(BOARD_ITEM arg1) -> PCB_TEXT"""
10116 return _pcbnew.Cast_to_PCB_TEXT(arg1)
10117
10119 r"""Cast_to_PCB_TEXTBOX(BOARD_ITEM arg1) -> PCB_TEXTBOX"""
10120 return _pcbnew.Cast_to_PCB_TEXTBOX(arg1)
10121
10123 r"""Cast_to_PCB_DIM_ALIGNED(BOARD_ITEM arg1) -> PCB_DIM_ALIGNED"""
10124 return _pcbnew.Cast_to_PCB_DIM_ALIGNED(arg1)
10125
10127 r"""Cast_to_PCB_DIM_ORTHOGONAL(BOARD_ITEM arg1) -> PCB_DIM_ORTHOGONAL"""
10128 return _pcbnew.Cast_to_PCB_DIM_ORTHOGONAL(arg1)
10129
10131 r"""Cast_to_PCB_DIM_LEADER(BOARD_ITEM arg1) -> PCB_DIM_LEADER"""
10132 return _pcbnew.Cast_to_PCB_DIM_LEADER(arg1)
10133
10135 r"""Cast_to_PCB_DIM_CENTER(BOARD_ITEM arg1) -> PCB_DIM_CENTER"""
10136 return _pcbnew.Cast_to_PCB_DIM_CENTER(arg1)
10137
10139 r"""Cast_to_PCB_DIM_RADIAL(BOARD_ITEM arg1) -> PCB_DIM_RADIAL"""
10140 return _pcbnew.Cast_to_PCB_DIM_RADIAL(arg1)
10141
10143 r"""Cast_to_FOOTPRINT(BOARD_ITEM arg1) -> FOOTPRINT"""
10144 return _pcbnew.Cast_to_FOOTPRINT(arg1)
10145
10147 r"""Cast_to_PCB_GROUP(BOARD_ITEM arg1) -> PCB_GROUP"""
10148 return _pcbnew.Cast_to_PCB_GROUP(arg1)
10149
10151 r"""Cast_to_PCB_SHAPE(BOARD_ITEM arg1) -> PCB_SHAPE"""
10152 return _pcbnew.Cast_to_PCB_SHAPE(arg1)
10153
10155 r"""Cast_to_PCB_MARKER(BOARD_ITEM arg1) -> PCB_MARKER"""
10156 return _pcbnew.Cast_to_PCB_MARKER(arg1)
10157
10159 r"""Cast_to_BOARD(BOARD_ITEM arg1) -> BOARD"""
10160 return _pcbnew.Cast_to_BOARD(arg1)
10161
10162def Cast_to_PAD(arg1):
10163 r"""Cast_to_PAD(BOARD_ITEM arg1) -> PAD"""
10164 return _pcbnew.Cast_to_PAD(arg1)
10165
10167 r"""Cast_to_PCB_TRACK(BOARD_ITEM arg1) -> PCB_TRACK"""
10168 return _pcbnew.Cast_to_PCB_TRACK(arg1)
10169
10171 r"""Cast_to_PCB_VIA(BOARD_ITEM arg1) -> PCB_VIA"""
10172 return _pcbnew.Cast_to_PCB_VIA(arg1)
10173
10175 r"""Cast_to_PCB_ARC(BOARD_ITEM arg1) -> PCB_ARC"""
10176 return _pcbnew.Cast_to_PCB_ARC(arg1)
10177
10179 r"""Cast_to_ZONE(BOARD_ITEM arg1) -> ZONE"""
10180 return _pcbnew.Cast_to_ZONE(arg1)
10181
10183 r"""Cast_to_PCB_TARGET(BOARD_ITEM arg1) -> PCB_TARGET"""
10184 return _pcbnew.Cast_to_PCB_TARGET(arg1)
10185
10187 r"""Cast_to_PCB_REFERENCE_IMAGE(BOARD_ITEM arg1) -> PCB_REFERENCE_IMAGE"""
10188 return _pcbnew.Cast_to_PCB_REFERENCE_IMAGE(arg1)
10189ADD_MODE_INSERT = _pcbnew.ADD_MODE_INSERT
10190
10191ADD_MODE_APPEND = _pcbnew.ADD_MODE_APPEND
10192
10193ADD_MODE_BULK_APPEND = _pcbnew.ADD_MODE_BULK_APPEND
10194
10195ADD_MODE_BULK_INSERT = _pcbnew.ADD_MODE_BULK_INSERT
10196
10197REMOVE_MODE_NORMAL = _pcbnew.REMOVE_MODE_NORMAL
10198
10199REMOVE_MODE_BULK = _pcbnew.REMOVE_MODE_BULK
10200
10202 r"""Proxy of C++ BOARD_ITEM_CONTAINER class."""
10203
10204 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10205
10206 def __init__(self, *args, **kwargs):
10207 raise AttributeError("No constructor defined - class is abstract")
10208 __repr__ = _swig_repr
10209
10210 def AddNative(self, *args):
10211 r"""AddNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
10212 return _pcbnew.BOARD_ITEM_CONTAINER_AddNative(self, *args)
10213
10214 def RemoveNative(self, *args):
10215 r"""RemoveNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
10216 return _pcbnew.BOARD_ITEM_CONTAINER_RemoveNative(self, *args)
10217
10218 def DeleteNative(self, aItem):
10219 r"""DeleteNative(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)"""
10220 return _pcbnew.BOARD_ITEM_CONTAINER_DeleteNative(self, aItem)
10221
10222 def Add(self,item):
10223 """
10224 Add a BOARD_ITEM to this BOARD_ITEM_CONTAINER, clear the thisown to prevent
10225 python from deleting the object in the garbage collector
10226 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem, BOARD_ADD_MODE aMode=BOARD_ADD_MODE::INSERT)
10227 Add(BOARD_ITEM_CONTAINER self, BOARD_ITEM aItem)
10228 """
10229 item.thisown=0
10230 self.AddNative(item)
10231
10232 def Remove(self,item):
10233 """
10234 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
10235 the python wrapper owns the C++ BOARD_ITEM
10236 Remove(self, BOARD_ITEM)
10237 """
10238 self.RemoveNative(item)
10239 if (not IsActionRunning()):
10240 item.thisown=1
10241
10242 def Delete(self,item):
10243 """
10244 Remove a BOARD_ITEM from this BOARD_ITEM_CONTAINER, set the thisdown flag so that
10245 the python wrapper does not owns the C++ BOARD_ITEM
10246 Delete(self, BOARD_ITEM)
10247 """
10248 item.thisown=0 # C++'s BOARD_ITEM_CONTAINER::Delete() will delete
10249 self.DeleteNative(item)
10250 item.this = None
10251
10252 __swig_destroy__ = _pcbnew.delete_BOARD_ITEM_CONTAINER
10253
10254# Register BOARD_ITEM_CONTAINER in _pcbnew:
10255_pcbnew.BOARD_ITEM_CONTAINER_swigregister(BOARD_ITEM_CONTAINER)
10256
10258 r"""Proxy of C++ BOARD_CONNECTED_ITEM class."""
10259
10260 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10261
10262 def __init__(self, *args, **kwargs):
10263 raise AttributeError("No constructor defined - class is abstract")
10264 __repr__ = _swig_repr
10265
10266 @staticmethod
10267 def ClassOf(aItem):
10268 r"""ClassOf(EDA_ITEM aItem) -> bool"""
10269 return _pcbnew.BOARD_CONNECTED_ITEM_ClassOf(aItem)
10270
10271 def GetNet(self):
10272 r"""GetNet(BOARD_CONNECTED_ITEM self) -> NETINFO_ITEM"""
10273 return _pcbnew.BOARD_CONNECTED_ITEM_GetNet(self)
10274
10275 def SetNet(self, aNetInfo):
10276 r"""SetNet(BOARD_CONNECTED_ITEM self, NETINFO_ITEM aNetInfo)"""
10277 return _pcbnew.BOARD_CONNECTED_ITEM_SetNet(self, aNetInfo)
10278
10279 def GetNetCode(self):
10280 r"""GetNetCode(BOARD_CONNECTED_ITEM self) -> int"""
10281 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetCode(self)
10282
10283 def SetNetCode(self, *args):
10284 r"""
10285 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode, bool aNoAssert) -> bool
10286 SetNetCode(BOARD_CONNECTED_ITEM self, int aNetCode)
10287 """
10288 return _pcbnew.BOARD_CONNECTED_ITEM_SetNetCode(self, *args)
10289
10290 def GetNetname(self):
10291 r"""GetNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10292 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetname(self)
10293
10294 def GetNetnameMsg(self):
10295 r"""GetNetnameMsg(BOARD_CONNECTED_ITEM self) -> wxString"""
10296 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetnameMsg(self)
10297
10299 r"""GetShortNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10300 return _pcbnew.BOARD_CONNECTED_ITEM_GetShortNetname(self)
10301
10303 r"""GetDisplayNetname(BOARD_CONNECTED_ITEM self) -> wxString"""
10304 return _pcbnew.BOARD_CONNECTED_ITEM_GetDisplayNetname(self)
10305
10306 def GetOwnClearance(self, aLayer, aSource=None):
10307 r"""GetOwnClearance(BOARD_CONNECTED_ITEM self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
10308 return _pcbnew.BOARD_CONNECTED_ITEM_GetOwnClearance(self, aLayer, aSource)
10309
10310 def GetLocalClearanceOverrides(self, aSource):
10311 r"""GetLocalClearanceOverrides(BOARD_CONNECTED_ITEM self, wxString aSource) -> int"""
10312 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalClearanceOverrides(self, aSource)
10313
10314 def GetLocalClearance(self, aSource):
10315 r"""GetLocalClearance(BOARD_CONNECTED_ITEM self, wxString aSource) -> int"""
10316 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalClearance(self, aSource)
10317
10319 r"""GetEffectiveNetClass(BOARD_CONNECTED_ITEM self) -> NETCLASS"""
10320 return _pcbnew.BOARD_CONNECTED_ITEM_GetEffectiveNetClass(self)
10321
10323 r"""GetNetClassName(BOARD_CONNECTED_ITEM self) -> wxString"""
10324 return _pcbnew.BOARD_CONNECTED_ITEM_GetNetClassName(self)
10325
10326 def SetLocalRatsnestVisible(self, aVisible):
10327 r"""SetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self, bool aVisible)"""
10328 return _pcbnew.BOARD_CONNECTED_ITEM_SetLocalRatsnestVisible(self, aVisible)
10329
10331 r"""GetLocalRatsnestVisible(BOARD_CONNECTED_ITEM self) -> bool"""
10332 return _pcbnew.BOARD_CONNECTED_ITEM_GetLocalRatsnestVisible(self)
10333
10334 def GetTeardropParams(self, *args):
10335 r"""
10336 GetTeardropParams(BOARD_CONNECTED_ITEM self) -> TEARDROP_PARAMETERS
10337 GetTeardropParams(BOARD_CONNECTED_ITEM self) -> TEARDROP_PARAMETERS const &
10338 """
10339 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropParams(self, *args)
10340
10341 def SetTeardropsEnabled(self, aEnable):
10342 r"""SetTeardropsEnabled(BOARD_CONNECTED_ITEM self, bool aEnable)"""
10343 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropsEnabled(self, aEnable)
10344
10346 r"""GetTeardropsEnabled(BOARD_CONNECTED_ITEM self) -> bool"""
10347 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropsEnabled(self)
10348
10350 r"""SetTeardropBestLengthRatio(BOARD_CONNECTED_ITEM self, double aRatio)"""
10351 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropBestLengthRatio(self, aRatio)
10352
10354 r"""GetTeardropBestLengthRatio(BOARD_CONNECTED_ITEM self) -> double"""
10355 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropBestLengthRatio(self)
10356
10357 def SetTeardropMaxLength(self, aMaxLength):
10358 r"""SetTeardropMaxLength(BOARD_CONNECTED_ITEM self, int aMaxLength)"""
10359 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxLength(self, aMaxLength)
10360
10362 r"""GetTeardropMaxLength(BOARD_CONNECTED_ITEM self) -> int"""
10363 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxLength(self)
10364
10365 def SetTeardropBestWidthRatio(self, aRatio):
10366 r"""SetTeardropBestWidthRatio(BOARD_CONNECTED_ITEM self, double aRatio)"""
10367 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropBestWidthRatio(self, aRatio)
10368
10370 r"""GetTeardropBestWidthRatio(BOARD_CONNECTED_ITEM self) -> double"""
10371 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropBestWidthRatio(self)
10372
10373 def SetTeardropMaxWidth(self, aMaxWidth):
10374 r"""SetTeardropMaxWidth(BOARD_CONNECTED_ITEM self, int aMaxWidth)"""
10375 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxWidth(self, aMaxWidth)
10376
10378 r"""GetTeardropMaxWidth(BOARD_CONNECTED_ITEM self) -> int"""
10379 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxWidth(self)
10380
10381 def SetTeardropCurvePts(self, aPointCount):
10382 r"""SetTeardropCurvePts(BOARD_CONNECTED_ITEM self, int aPointCount)"""
10383 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropCurvePts(self, aPointCount)
10384
10386 r"""GetTeardropCurvePts(BOARD_CONNECTED_ITEM self) -> int"""
10387 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropCurvePts(self)
10388
10390 r"""SetTeardropPreferZoneConnections(BOARD_CONNECTED_ITEM self, bool aPrefer)"""
10391 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropPreferZoneConnections(self, aPrefer)
10392
10394 r"""GetTeardropPreferZoneConnections(BOARD_CONNECTED_ITEM self) -> bool"""
10395 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropPreferZoneConnections(self)
10396
10398 r"""SetTeardropAllowSpanTwoTracks(BOARD_CONNECTED_ITEM self, bool aAllow)"""
10399 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropAllowSpanTwoTracks(self, aAllow)
10400
10402 r"""GetTeardropAllowSpanTwoTracks(BOARD_CONNECTED_ITEM self) -> bool"""
10403 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropAllowSpanTwoTracks(self)
10404
10405 def SetTeardropMaxTrackWidth(self, aRatio):
10406 r"""SetTeardropMaxTrackWidth(BOARD_CONNECTED_ITEM self, double aRatio)"""
10407 return _pcbnew.BOARD_CONNECTED_ITEM_SetTeardropMaxTrackWidth(self, aRatio)
10408
10410 r"""GetTeardropMaxTrackWidth(BOARD_CONNECTED_ITEM self) -> double"""
10411 return _pcbnew.BOARD_CONNECTED_ITEM_GetTeardropMaxTrackWidth(self)
10412 __swig_destroy__ = _pcbnew.delete_BOARD_CONNECTED_ITEM
10413
10414# Register BOARD_CONNECTED_ITEM in _pcbnew:
10415_pcbnew.BOARD_CONNECTED_ITEM_swigregister(BOARD_CONNECTED_ITEM)
10416
10418 r"""BOARD_CONNECTED_ITEM_ClassOf(EDA_ITEM aItem) -> bool"""
10419 return _pcbnew.BOARD_CONNECTED_ITEM_ClassOf(aItem)
10420
10422 r"""Proxy of C++ std::map< wxString,std::shared_ptr< NETCLASS > > class."""
10423
10424 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10425 __repr__ = _swig_repr
10426
10427 def iterator(self):
10428 r"""iterator(netclasses_map self) -> SwigPyIterator"""
10429 return _pcbnew.netclasses_map_iterator(self)
10430 def __iter__(self):
10431 return self.iterator()
10432
10433 def __nonzero__(self):
10434 r"""__nonzero__(netclasses_map self) -> bool"""
10435 return _pcbnew.netclasses_map___nonzero__(self)
10436
10437 def __bool__(self):
10438 r"""__bool__(netclasses_map self) -> bool"""
10439 return _pcbnew.netclasses_map___bool__(self)
10440
10441 def __len__(self):
10442 r"""__len__(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10443 return _pcbnew.netclasses_map___len__(self)
10444 def __iter__(self):
10445 return self.key_iterator()
10446 def iterkeys(self):
10447 return self.key_iterator()
10448 def itervalues(self):
10449 return self.value_iterator()
10450 def iteritems(self):
10451 return self.iterator()
10452
10453 def __getitem__(self, key):
10454 r"""__getitem__(netclasses_map self, wxString key) -> std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const &"""
10455 return _pcbnew.netclasses_map___getitem__(self, key)
10456
10457 def __delitem__(self, key):
10458 r"""__delitem__(netclasses_map self, wxString key)"""
10459 return _pcbnew.netclasses_map___delitem__(self, key)
10460
10461 def has_key(self, key):
10462 r"""has_key(netclasses_map self, wxString key) -> bool"""
10463 return _pcbnew.netclasses_map_has_key(self, key)
10464
10465 def keys(self):
10466 r"""keys(netclasses_map self) -> PyObject *"""
10467 return _pcbnew.netclasses_map_keys(self)
10468
10469 def values(self):
10470 r"""values(netclasses_map self) -> PyObject *"""
10471 return _pcbnew.netclasses_map_values(self)
10472
10473 def items(self):
10474 r"""items(netclasses_map self) -> PyObject *"""
10475 return _pcbnew.netclasses_map_items(self)
10476
10477 def __contains__(self, key):
10478 r"""__contains__(netclasses_map self, wxString key) -> bool"""
10479 return _pcbnew.netclasses_map___contains__(self, key)
10480
10481 def key_iterator(self):
10482 r"""key_iterator(netclasses_map self) -> SwigPyIterator"""
10483 return _pcbnew.netclasses_map_key_iterator(self)
10484
10486 r"""value_iterator(netclasses_map self) -> SwigPyIterator"""
10487 return _pcbnew.netclasses_map_value_iterator(self)
10488
10489 def __setitem__(self, *args):
10490 r"""
10491 __setitem__(netclasses_map self, wxString key)
10492 __setitem__(netclasses_map self, wxString key, std::map< wxString,std::shared_ptr< NETCLASS > >::mapped_type const & x)
10493 """
10494 return _pcbnew.netclasses_map___setitem__(self, *args)
10495
10496 def asdict(self):
10497 r"""asdict(netclasses_map self) -> PyObject *"""
10498 return _pcbnew.netclasses_map_asdict(self)
10499
10500 def __init__(self, *args):
10501 r"""
10502 __init__(netclasses_map self, std::less< wxString > const & other) -> netclasses_map
10503 __init__(netclasses_map self) -> netclasses_map
10504 __init__(netclasses_map self, netclasses_map other) -> netclasses_map
10505 """
10506 _pcbnew.netclasses_map_swiginit(self, _pcbnew.new_netclasses_map(*args))
10507
10508 def empty(self):
10509 r"""empty(netclasses_map self) -> bool"""
10510 return _pcbnew.netclasses_map_empty(self)
10511
10512 def size(self):
10513 r"""size(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10514 return _pcbnew.netclasses_map_size(self)
10515
10516 def swap(self, v):
10517 r"""swap(netclasses_map self, netclasses_map v)"""
10518 return _pcbnew.netclasses_map_swap(self, v)
10519
10520 def begin(self):
10521 r"""begin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10522 return _pcbnew.netclasses_map_begin(self)
10523
10524 def end(self):
10525 r"""end(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10526 return _pcbnew.netclasses_map_end(self)
10527
10528 def rbegin(self):
10529 r"""rbegin(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10530 return _pcbnew.netclasses_map_rbegin(self)
10531
10532 def rend(self):
10533 r"""rend(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::reverse_iterator"""
10534 return _pcbnew.netclasses_map_rend(self)
10535
10536 def clear(self):
10537 r"""clear(netclasses_map self)"""
10538 return _pcbnew.netclasses_map_clear(self)
10539
10540 def get_allocator(self):
10541 r"""get_allocator(netclasses_map self) -> std::map< wxString,std::shared_ptr< NETCLASS > >::allocator_type"""
10542 return _pcbnew.netclasses_map_get_allocator(self)
10543
10544 def count(self, x):
10545 r"""count(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type"""
10546 return _pcbnew.netclasses_map_count(self, x)
10547
10548 def erase(self, *args):
10549 r"""
10550 erase(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::size_type
10551 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator position)
10552 erase(netclasses_map self, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator first, std::map< wxString,std::shared_ptr< NETCLASS > >::iterator last)
10553 """
10554 return _pcbnew.netclasses_map_erase(self, *args)
10555
10556 def find(self, x):
10557 r"""find(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10558 return _pcbnew.netclasses_map_find(self, x)
10559
10560 def lower_bound(self, x):
10561 r"""lower_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10562 return _pcbnew.netclasses_map_lower_bound(self, x)
10563
10564 def upper_bound(self, x):
10565 r"""upper_bound(netclasses_map self, wxString x) -> std::map< wxString,std::shared_ptr< NETCLASS > >::iterator"""
10566 return _pcbnew.netclasses_map_upper_bound(self, x)
10567 __swig_destroy__ = _pcbnew.delete_netclasses_map
10568
10569# Register netclasses_map in _pcbnew:
10570_pcbnew.netclasses_map_swigregister(netclasses_map)
10571
10572DEFAULT_SILK_LINE_WIDTH = _pcbnew.DEFAULT_SILK_LINE_WIDTH
10573
10574DEFAULT_COPPER_LINE_WIDTH = _pcbnew.DEFAULT_COPPER_LINE_WIDTH
10575
10576DEFAULT_EDGE_WIDTH = _pcbnew.DEFAULT_EDGE_WIDTH
10577
10578DEFAULT_COURTYARD_WIDTH = _pcbnew.DEFAULT_COURTYARD_WIDTH
10579
10580DEFAULT_LINE_WIDTH = _pcbnew.DEFAULT_LINE_WIDTH
10581
10582DEFAULT_SILK_TEXT_SIZE = _pcbnew.DEFAULT_SILK_TEXT_SIZE
10583
10584DEFAULT_COPPER_TEXT_SIZE = _pcbnew.DEFAULT_COPPER_TEXT_SIZE
10585
10586DEFAULT_TEXT_SIZE = _pcbnew.DEFAULT_TEXT_SIZE
10587
10588DEFAULT_SILK_TEXT_WIDTH = _pcbnew.DEFAULT_SILK_TEXT_WIDTH
10589
10590DEFAULT_COPPER_TEXT_WIDTH = _pcbnew.DEFAULT_COPPER_TEXT_WIDTH
10591
10592DEFAULT_TEXT_WIDTH = _pcbnew.DEFAULT_TEXT_WIDTH
10593
10594DEFAULT_DIMENSION_ARROW_LENGTH = _pcbnew.DEFAULT_DIMENSION_ARROW_LENGTH
10595
10596DEFAULT_DIMENSION_EXTENSION_OFFSET = _pcbnew.DEFAULT_DIMENSION_EXTENSION_OFFSET
10597
10598DEFAULT_BOARD_THICKNESS_MM = _pcbnew.DEFAULT_BOARD_THICKNESS_MM
10599
10600DEFAULT_PCB_EDGE_THICKNESS = _pcbnew.DEFAULT_PCB_EDGE_THICKNESS
10601
10602DEFAULT_SOLDERMASK_EXPANSION = _pcbnew.DEFAULT_SOLDERMASK_EXPANSION
10603
10604DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE = _pcbnew.DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE
10605
10606DEFAULT_SOLDERMASK_MIN_WIDTH = _pcbnew.DEFAULT_SOLDERMASK_MIN_WIDTH
10607
10608DEFAULT_SOLDERPASTE_CLEARANCE = _pcbnew.DEFAULT_SOLDERPASTE_CLEARANCE
10609
10610DEFAULT_SOLDERPASTE_RATIO = _pcbnew.DEFAULT_SOLDERPASTE_RATIO
10611
10612DEFAULT_CUSTOMTRACKWIDTH = _pcbnew.DEFAULT_CUSTOMTRACKWIDTH
10613
10614DEFAULT_CUSTOMDPAIRWIDTH = _pcbnew.DEFAULT_CUSTOMDPAIRWIDTH
10615
10616DEFAULT_CUSTOMDPAIRGAP = _pcbnew.DEFAULT_CUSTOMDPAIRGAP
10617
10618DEFAULT_CUSTOMDPAIRVIAGAP = _pcbnew.DEFAULT_CUSTOMDPAIRVIAGAP
10619
10620DEFAULT_MEANDER_SPACING = _pcbnew.DEFAULT_MEANDER_SPACING
10621
10622DEFAULT_DP_MEANDER_SPACING = _pcbnew.DEFAULT_DP_MEANDER_SPACING
10623
10624DEFAULT_MINCLEARANCE = _pcbnew.DEFAULT_MINCLEARANCE
10625
10626DEFAULT_MINCONNECTION = _pcbnew.DEFAULT_MINCONNECTION
10627
10628DEFAULT_TRACKMINWIDTH = _pcbnew.DEFAULT_TRACKMINWIDTH
10629
10630DEFAULT_VIASMINSIZE = _pcbnew.DEFAULT_VIASMINSIZE
10631
10632DEFAULT_MINTHROUGHDRILL = _pcbnew.DEFAULT_MINTHROUGHDRILL
10633
10634DEFAULT_MICROVIASMINSIZE = _pcbnew.DEFAULT_MICROVIASMINSIZE
10635
10636DEFAULT_MICROVIASMINDRILL = _pcbnew.DEFAULT_MICROVIASMINDRILL
10637
10638DEFAULT_HOLETOHOLEMIN = _pcbnew.DEFAULT_HOLETOHOLEMIN
10639
10640DEFAULT_HOLECLEARANCE = _pcbnew.DEFAULT_HOLECLEARANCE
10641
10642DEFAULT_COPPEREDGECLEARANCE = _pcbnew.DEFAULT_COPPEREDGECLEARANCE
10643
10644LEGACY_COPPEREDGECLEARANCE = _pcbnew.LEGACY_COPPEREDGECLEARANCE
10645
10646DEFAULT_SILKCLEARANCE = _pcbnew.DEFAULT_SILKCLEARANCE
10647
10648DEFAULT_MINRESOLVEDSPOKES = _pcbnew.DEFAULT_MINRESOLVEDSPOKES
10649
10650MINIMUM_ERROR_SIZE_MM = _pcbnew.MINIMUM_ERROR_SIZE_MM
10651
10652MAXIMUM_ERROR_SIZE_MM = _pcbnew.MAXIMUM_ERROR_SIZE_MM
10653
10654MINIMUM_LINE_WIDTH_MM = _pcbnew.MINIMUM_LINE_WIDTH_MM
10655
10656MAXIMUM_LINE_WIDTH_MM = _pcbnew.MAXIMUM_LINE_WIDTH_MM
10657
10659 r"""Proxy of C++ VIA_DIMENSION class."""
10660
10661 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10662 __repr__ = _swig_repr
10663 m_Diameter = property(_pcbnew.VIA_DIMENSION_m_Diameter_get, _pcbnew.VIA_DIMENSION_m_Diameter_set, doc=r"""m_Diameter : int""")
10664 m_Drill = property(_pcbnew.VIA_DIMENSION_m_Drill_get, _pcbnew.VIA_DIMENSION_m_Drill_set, doc=r"""m_Drill : int""")
10665
10666 def __init__(self, *args):
10667 r"""
10668 __init__(VIA_DIMENSION self) -> VIA_DIMENSION
10669 __init__(VIA_DIMENSION self, int aDiameter, int aDrill) -> VIA_DIMENSION
10670 """
10671 _pcbnew.VIA_DIMENSION_swiginit(self, _pcbnew.new_VIA_DIMENSION(*args))
10672
10673 def __eq__(self, aOther):
10674 r"""__eq__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10675 return _pcbnew.VIA_DIMENSION___eq__(self, aOther)
10676
10677 def __ne__(self, aOther):
10678 r"""__ne__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10679 return _pcbnew.VIA_DIMENSION___ne__(self, aOther)
10680
10681 def __lt__(self, aOther):
10682 r"""__lt__(VIA_DIMENSION self, VIA_DIMENSION aOther) -> bool"""
10683 return _pcbnew.VIA_DIMENSION___lt__(self, aOther)
10684 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION
10685
10686# Register VIA_DIMENSION in _pcbnew:
10687_pcbnew.VIA_DIMENSION_swigregister(VIA_DIMENSION)
10688
10690 r"""Proxy of C++ DIFF_PAIR_DIMENSION class."""
10691
10692 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10693 __repr__ = _swig_repr
10694 m_Width = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Width_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Width_set, doc=r"""m_Width : int""")
10695 m_Gap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_Gap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_Gap_set, doc=r"""m_Gap : int""")
10696 m_ViaGap = property(_pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_get, _pcbnew.DIFF_PAIR_DIMENSION_m_ViaGap_set, doc=r"""m_ViaGap : int""")
10697
10698 def __init__(self, *args):
10699 r"""
10700 __init__(DIFF_PAIR_DIMENSION self) -> DIFF_PAIR_DIMENSION
10701 __init__(DIFF_PAIR_DIMENSION self, int aWidth, int aGap, int aViaGap) -> DIFF_PAIR_DIMENSION
10702 """
10703 _pcbnew.DIFF_PAIR_DIMENSION_swiginit(self, _pcbnew.new_DIFF_PAIR_DIMENSION(*args))
10704
10705 def __eq__(self, aOther):
10706 r"""__eq__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10707 return _pcbnew.DIFF_PAIR_DIMENSION___eq__(self, aOther)
10708
10709 def __ne__(self, aOther):
10710 r"""__ne__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10711 return _pcbnew.DIFF_PAIR_DIMENSION___ne__(self, aOther)
10712
10713 def __lt__(self, aOther):
10714 r"""__lt__(DIFF_PAIR_DIMENSION self, DIFF_PAIR_DIMENSION aOther) -> bool"""
10715 return _pcbnew.DIFF_PAIR_DIMENSION___lt__(self, aOther)
10716 __swig_destroy__ = _pcbnew.delete_DIFF_PAIR_DIMENSION
10717
10718# Register DIFF_PAIR_DIMENSION in _pcbnew:
10719_pcbnew.DIFF_PAIR_DIMENSION_swigregister(DIFF_PAIR_DIMENSION)
10720
10721LAYER_CLASS_SILK = _pcbnew.LAYER_CLASS_SILK
10722
10723LAYER_CLASS_COPPER = _pcbnew.LAYER_CLASS_COPPER
10724
10725LAYER_CLASS_EDGES = _pcbnew.LAYER_CLASS_EDGES
10726
10727LAYER_CLASS_COURTYARD = _pcbnew.LAYER_CLASS_COURTYARD
10728
10729LAYER_CLASS_FAB = _pcbnew.LAYER_CLASS_FAB
10730
10731LAYER_CLASS_OTHERS = _pcbnew.LAYER_CLASS_OTHERS
10732
10733LAYER_CLASS_COUNT = _pcbnew.LAYER_CLASS_COUNT
10734
10736 r"""Proxy of C++ TEXT_ITEM_INFO class."""
10737
10738 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10739 __repr__ = _swig_repr
10740 m_Text = property(_pcbnew.TEXT_ITEM_INFO_m_Text_get, _pcbnew.TEXT_ITEM_INFO_m_Text_set, doc=r"""m_Text : wxString""")
10741 m_Visible = property(_pcbnew.TEXT_ITEM_INFO_m_Visible_get, _pcbnew.TEXT_ITEM_INFO_m_Visible_set, doc=r"""m_Visible : bool""")
10742 m_Layer = property(_pcbnew.TEXT_ITEM_INFO_m_Layer_get, _pcbnew.TEXT_ITEM_INFO_m_Layer_set, doc=r"""m_Layer : int""")
10743
10744 def __init__(self, aText, aVisible, aLayer):
10745 r"""__init__(TEXT_ITEM_INFO self, wxString aText, bool aVisible, int aLayer) -> TEXT_ITEM_INFO"""
10746 _pcbnew.TEXT_ITEM_INFO_swiginit(self, _pcbnew.new_TEXT_ITEM_INFO(aText, aVisible, aLayer))
10747
10748 def __eq__(self, aOther):
10749 r"""__eq__(TEXT_ITEM_INFO self, TEXT_ITEM_INFO aOther) -> bool"""
10750 return _pcbnew.TEXT_ITEM_INFO___eq__(self, aOther)
10751 __swig_destroy__ = _pcbnew.delete_TEXT_ITEM_INFO
10752
10753# Register TEXT_ITEM_INFO in _pcbnew:
10754_pcbnew.TEXT_ITEM_INFO_swigregister(TEXT_ITEM_INFO)
10755
10757 r"""Proxy of C++ BOARD_DESIGN_SETTINGS class."""
10758
10759 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10760 __repr__ = _swig_repr
10761 __swig_destroy__ = _pcbnew.delete_BOARD_DESIGN_SETTINGS
10762
10763 def __eq__(self, aOther):
10764 r"""__eq__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> bool"""
10765 return _pcbnew.BOARD_DESIGN_SETTINGS___eq__(self, aOther)
10766
10767 def __ne__(self, aOther):
10768 r"""__ne__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> bool"""
10769 return _pcbnew.BOARD_DESIGN_SETTINGS___ne__(self, aOther)
10770
10771 def __init__(self, *args):
10772 r"""
10773 __init__(BOARD_DESIGN_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> BOARD_DESIGN_SETTINGS
10774 __init__(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther) -> BOARD_DESIGN_SETTINGS
10775 """
10776 _pcbnew.BOARD_DESIGN_SETTINGS_swiginit(self, _pcbnew.new_BOARD_DESIGN_SETTINGS(*args))
10777
10778 def LoadFromFile(self, *args):
10779 r"""LoadFromFile(BOARD_DESIGN_SETTINGS self, wxString aDirectory="") -> bool"""
10780 return _pcbnew.BOARD_DESIGN_SETTINGS_LoadFromFile(self, *args)
10781
10782 def GetStackupDescriptor(self, *args):
10783 r"""
10784 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP
10785 GetStackupDescriptor(BOARD_DESIGN_SETTINGS self) -> BOARD_STACKUP const &
10786 """
10787 return _pcbnew.BOARD_DESIGN_SETTINGS_GetStackupDescriptor(self, *args)
10788
10790 r"""GetTeadropParamsList(BOARD_DESIGN_SETTINGS self) -> TEARDROP_PARAMETERS_LIST *"""
10791 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTeadropParamsList(self)
10792
10793 def GetSeverity(self, aDRCErrorCode):
10794 r"""GetSeverity(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> SEVERITY"""
10795 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSeverity(self, aDRCErrorCode)
10796
10797 def Ignore(self, aDRCErrorCode):
10798 r"""Ignore(BOARD_DESIGN_SETTINGS self, int aDRCErrorCode) -> bool"""
10799 return _pcbnew.BOARD_DESIGN_SETTINGS_Ignore(self, aDRCErrorCode)
10800
10802 r"""GetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self) -> ZONE_SETTINGS"""
10803 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDefaultZoneSettings(self)
10804
10805 def SetDefaultZoneSettings(self, aSettings):
10806 r"""SetDefaultZoneSettings(BOARD_DESIGN_SETTINGS self, ZONE_SETTINGS aSettings)"""
10807 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDefaultZoneSettings(self, aSettings)
10808
10810 r"""GetCurrentNetClassName(BOARD_DESIGN_SETTINGS self) -> wxString"""
10811 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentNetClassName(self)
10812
10814 r"""UseNetClassTrack(BOARD_DESIGN_SETTINGS self) -> bool"""
10815 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassTrack(self)
10816
10818 r"""UseNetClassVia(BOARD_DESIGN_SETTINGS self) -> bool"""
10819 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassVia(self)
10820
10822 r"""UseNetClassDiffPair(BOARD_DESIGN_SETTINGS self) -> bool"""
10823 return _pcbnew.BOARD_DESIGN_SETTINGS_UseNetClassDiffPair(self)
10824
10826 r"""GetBiggestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
10827 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBiggestClearanceValue(self)
10828
10830 r"""GetSmallestClearanceValue(BOARD_DESIGN_SETTINGS self) -> int"""
10831 return _pcbnew.BOARD_DESIGN_SETTINGS_GetSmallestClearanceValue(self)
10832
10834 r"""GetTrackWidthIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10835 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTrackWidthIndex(self)
10836
10837 def SetTrackWidthIndex(self, aIndex):
10838 r"""SetTrackWidthIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10839 return _pcbnew.BOARD_DESIGN_SETTINGS_SetTrackWidthIndex(self, aIndex)
10840
10842 r"""GetCurrentTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10843 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentTrackWidth(self)
10844
10845 def SetCustomTrackWidth(self, aWidth):
10846 r"""SetCustomTrackWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
10847 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomTrackWidth(self, aWidth)
10848
10850 r"""GetCustomTrackWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10851 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomTrackWidth(self)
10852
10854 r"""GetViaSizeIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10855 return _pcbnew.BOARD_DESIGN_SETTINGS_GetViaSizeIndex(self)
10856
10857 def SetViaSizeIndex(self, aIndex):
10858 r"""SetViaSizeIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10859 return _pcbnew.BOARD_DESIGN_SETTINGS_SetViaSizeIndex(self, aIndex)
10860
10862 r"""GetCurrentViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
10863 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaSize(self)
10864
10865 def SetCustomViaSize(self, aSize):
10866 r"""SetCustomViaSize(BOARD_DESIGN_SETTINGS self, int aSize)"""
10867 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaSize(self, aSize)
10868
10870 r"""GetCustomViaSize(BOARD_DESIGN_SETTINGS self) -> int"""
10871 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaSize(self)
10872
10874 r"""GetCurrentViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
10875 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentViaDrill(self)
10876
10877 def SetCustomViaDrill(self, aDrill):
10878 r"""SetCustomViaDrill(BOARD_DESIGN_SETTINGS self, int aDrill)"""
10879 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomViaDrill(self, aDrill)
10880
10882 r"""GetCustomViaDrill(BOARD_DESIGN_SETTINGS self) -> int"""
10883 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomViaDrill(self)
10884
10885 def UseCustomTrackViaSize(self, *args):
10886 r"""
10887 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self, bool aEnabled)
10888 UseCustomTrackViaSize(BOARD_DESIGN_SETTINGS self) -> bool
10889 """
10890 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomTrackViaSize(self, *args)
10891
10893 r"""GetDiffPairIndex(BOARD_DESIGN_SETTINGS self) -> unsigned int"""
10894 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDiffPairIndex(self)
10895
10896 def SetDiffPairIndex(self, aIndex):
10897 r"""SetDiffPairIndex(BOARD_DESIGN_SETTINGS self, unsigned int aIndex)"""
10898 return _pcbnew.BOARD_DESIGN_SETTINGS_SetDiffPairIndex(self, aIndex)
10899
10900 def SetCustomDiffPairWidth(self, aWidth):
10901 r"""SetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self, int aWidth)"""
10902 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairWidth(self, aWidth)
10903
10905 r"""GetCustomDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10906 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairWidth(self)
10907
10908 def SetCustomDiffPairGap(self, aGap):
10909 r"""SetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
10910 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairGap(self, aGap)
10911
10913 r"""GetCustomDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
10914 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairGap(self)
10915
10917 r"""SetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self, int aGap)"""
10918 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCustomDiffPairViaGap(self, aGap)
10919
10921 r"""GetCustomDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
10922 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCustomDiffPairViaGap(self)
10923
10925 r"""
10926 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self, bool aEnabled)
10927 UseCustomDiffPairDimensions(BOARD_DESIGN_SETTINGS self) -> bool
10928 """
10929 return _pcbnew.BOARD_DESIGN_SETTINGS_UseCustomDiffPairDimensions(self, *args)
10930
10932 r"""GetCurrentDiffPairWidth(BOARD_DESIGN_SETTINGS self) -> int"""
10933 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairWidth(self)
10934
10936 r"""GetCurrentDiffPairGap(BOARD_DESIGN_SETTINGS self) -> int"""
10937 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairGap(self)
10938
10940 r"""GetCurrentDiffPairViaGap(BOARD_DESIGN_SETTINGS self) -> int"""
10941 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCurrentDiffPairViaGap(self)
10942
10944 r"""GetEnabledLayers(BOARD_DESIGN_SETTINGS self) -> LSET"""
10945 return _pcbnew.BOARD_DESIGN_SETTINGS_GetEnabledLayers(self)
10946
10947 def SetEnabledLayers(self, aMask):
10948 r"""SetEnabledLayers(BOARD_DESIGN_SETTINGS self, LSET aMask)"""
10949 return _pcbnew.BOARD_DESIGN_SETTINGS_SetEnabledLayers(self, aMask)
10950
10951 def IsLayerEnabled(self, aLayerId):
10952 r"""IsLayerEnabled(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayerId) -> bool"""
10953 return _pcbnew.BOARD_DESIGN_SETTINGS_IsLayerEnabled(self, aLayerId)
10954
10956 r"""GetCopperLayerCount(BOARD_DESIGN_SETTINGS self) -> int"""
10957 return _pcbnew.BOARD_DESIGN_SETTINGS_GetCopperLayerCount(self)
10958
10959 def SetCopperLayerCount(self, aNewLayerCount):
10960 r"""SetCopperLayerCount(BOARD_DESIGN_SETTINGS self, int aNewLayerCount)"""
10961 return _pcbnew.BOARD_DESIGN_SETTINGS_SetCopperLayerCount(self, aNewLayerCount)
10962
10964 r"""GetBoardThickness(BOARD_DESIGN_SETTINGS self) -> int"""
10965 return _pcbnew.BOARD_DESIGN_SETTINGS_GetBoardThickness(self)
10966
10967 def SetBoardThickness(self, aThickness):
10968 r"""SetBoardThickness(BOARD_DESIGN_SETTINGS self, int aThickness)"""
10969 return _pcbnew.BOARD_DESIGN_SETTINGS_SetBoardThickness(self, aThickness)
10970
10971 def GetDRCEpsilon(self):
10972 r"""GetDRCEpsilon(BOARD_DESIGN_SETTINGS self) -> int"""
10973 return _pcbnew.BOARD_DESIGN_SETTINGS_GetDRCEpsilon(self)
10974
10976 r"""GetHolePlatingThickness(BOARD_DESIGN_SETTINGS self) -> int"""
10977 return _pcbnew.BOARD_DESIGN_SETTINGS_GetHolePlatingThickness(self)
10978
10979 def GetLineThickness(self, aLayer):
10980 r"""GetLineThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
10981 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLineThickness(self, aLayer)
10982
10983 def GetTextSize(self, aLayer):
10984 r"""GetTextSize(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> VECTOR2I"""
10985 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextSize(self, aLayer)
10986
10987 def GetTextThickness(self, aLayer):
10988 r"""GetTextThickness(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
10989 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextThickness(self, aLayer)
10990
10991 def GetTextItalic(self, aLayer):
10992 r"""GetTextItalic(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
10993 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextItalic(self, aLayer)
10994
10995 def GetTextUpright(self, aLayer):
10996 r"""GetTextUpright(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> bool"""
10997 return _pcbnew.BOARD_DESIGN_SETTINGS_GetTextUpright(self, aLayer)
10998
10999 def GetLayerClass(self, aLayer):
11000 r"""GetLayerClass(BOARD_DESIGN_SETTINGS self, PCB_LAYER_ID aLayer) -> int"""
11001 return _pcbnew.BOARD_DESIGN_SETTINGS_GetLayerClass(self, aLayer)
11002
11003 def SetAuxOrigin(self, aOrigin):
11004 r"""SetAuxOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
11005 return _pcbnew.BOARD_DESIGN_SETTINGS_SetAuxOrigin(self, aOrigin)
11006
11007 def GetAuxOrigin(self):
11008 r"""GetAuxOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
11009 return _pcbnew.BOARD_DESIGN_SETTINGS_GetAuxOrigin(self)
11010
11011 def SetGridOrigin(self, aOrigin):
11012 r"""SetGridOrigin(BOARD_DESIGN_SETTINGS self, VECTOR2I aOrigin)"""
11013 return _pcbnew.BOARD_DESIGN_SETTINGS_SetGridOrigin(self, aOrigin)
11014
11015 def GetGridOrigin(self):
11016 r"""GetGridOrigin(BOARD_DESIGN_SETTINGS self) -> VECTOR2I"""
11017 return _pcbnew.BOARD_DESIGN_SETTINGS_GetGridOrigin(self)
11018 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)>)>""")
11019 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)>)>""")
11020 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)>)>""")
11021 m_TeardropParamsList = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TeardropParamsList_set, doc=r"""m_TeardropParamsList : TEARDROP_PARAMETERS_LIST""")
11022 m_SingleTrackMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SingleTrackMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SingleTrackMeanderSettings_set, doc=r"""m_SingleTrackMeanderSettings : PNS::MEANDER_SETTINGS""")
11023 m_DiffPairMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DiffPairMeanderSettings_set, doc=r"""m_DiffPairMeanderSettings : PNS::MEANDER_SETTINGS""")
11024 m_SkewMeanderSettings = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SkewMeanderSettings_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SkewMeanderSettings_set, doc=r"""m_SkewMeanderSettings : PNS::MEANDER_SETTINGS""")
11025 m_CurrentViaType = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CurrentViaType_set, doc=r"""m_CurrentViaType : VIATYPE""")
11026 m_UseConnectedTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseConnectedTrackWidth_set, doc=r"""m_UseConnectedTrackWidth : bool""")
11027 m_TempOverrideTrackWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TempOverrideTrackWidth_set, doc=r"""m_TempOverrideTrackWidth : bool""")
11028 m_MinClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinClearance_set, doc=r"""m_MinClearance : int""")
11029 m_MinConn = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinConn_set, doc=r"""m_MinConn : int""")
11030 m_TrackMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_TrackMinWidth_set, doc=r"""m_TrackMinWidth : int""")
11031 m_ViasMinAnnularWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinAnnularWidth_set, doc=r"""m_ViasMinAnnularWidth : int""")
11032 m_ViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ViasMinSize_set, doc=r"""m_ViasMinSize : int""")
11033 m_MinThroughDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinThroughDrill_set, doc=r"""m_MinThroughDrill : int""")
11034 m_MicroViasMinSize = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinSize_set, doc=r"""m_MicroViasMinSize : int""")
11035 m_MicroViasMinDrill = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MicroViasMinDrill_set, doc=r"""m_MicroViasMinDrill : int""")
11036 m_CopperEdgeClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_CopperEdgeClearance_set, doc=r"""m_CopperEdgeClearance : int""")
11037 m_HoleClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleClearance_set, doc=r"""m_HoleClearance : int""")
11038 m_HoleToHoleMin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HoleToHoleMin_set, doc=r"""m_HoleToHoleMin : int""")
11039 m_SilkClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SilkClearance_set, doc=r"""m_SilkClearance : int""")
11040 m_MinResolvedSpokes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinResolvedSpokes_set, doc=r"""m_MinResolvedSpokes : int""")
11041 m_MinSilkTextHeight = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextHeight_set, doc=r"""m_MinSilkTextHeight : int""")
11042 m_MinSilkTextThickness = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MinSilkTextThickness_set, doc=r"""m_MinSilkTextThickness : int""")
11043 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)>)>)>""")
11044 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)>)>""")
11045 m_ZoneKeepExternalFillets = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_ZoneKeepExternalFillets_set, doc=r"""m_ZoneKeepExternalFillets : bool""")
11046 m_MaxError = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_MaxError_set, doc=r"""m_MaxError : int""")
11047 m_SolderMaskExpansion = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskExpansion_set, doc=r"""m_SolderMaskExpansion : int""")
11048 m_SolderMaskMinWidth = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskMinWidth_set, doc=r"""m_SolderMaskMinWidth : int""")
11049 m_SolderMaskToCopperClearance = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderMaskToCopperClearance_set, doc=r"""m_SolderMaskToCopperClearance : int""")
11050 m_SolderPasteMargin = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMargin_set, doc=r"""m_SolderPasteMargin : int""")
11051 m_SolderPasteMarginRatio = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_SolderPasteMarginRatio_set, doc=r"""m_SolderPasteMarginRatio : double""")
11052 m_AllowSoldermaskBridgesInFPs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_AllowSoldermaskBridgesInFPs_set, doc=r"""m_AllowSoldermaskBridgesInFPs : bool""")
11053 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)>""")
11054 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)>)>""")
11055 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""")
11056 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""")
11057 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""")
11058 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""")
11059 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""")
11060 m_DimensionUnitsMode = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsMode_set, doc=r"""m_DimensionUnitsMode : DIM_UNITS_MODE""")
11061 m_DimensionPrecision = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionPrecision_set, doc=r"""m_DimensionPrecision : DIM_PRECISION""")
11062 m_DimensionUnitsFormat = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionUnitsFormat_set, doc=r"""m_DimensionUnitsFormat : DIM_UNITS_FORMAT""")
11063 m_DimensionSuppressZeroes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionSuppressZeroes_set, doc=r"""m_DimensionSuppressZeroes : bool""")
11064 m_DimensionTextPosition = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionTextPosition_set, doc=r"""m_DimensionTextPosition : DIM_TEXT_POSITION""")
11065 m_DimensionKeepTextAligned = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionKeepTextAligned_set, doc=r"""m_DimensionKeepTextAligned : bool""")
11066 m_DimensionArrowLength = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionArrowLength_set, doc=r"""m_DimensionArrowLength : int""")
11067 m_DimensionExtensionOffset = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_DimensionExtensionOffset_set, doc=r"""m_DimensionExtensionOffset : int""")
11068 m_StyleFPFields = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPFields_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPFields_set, doc=r"""m_StyleFPFields : bool""")
11069 m_StyleFPText = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPText_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPText_set, doc=r"""m_StyleFPText : bool""")
11070 m_StyleFPShapes = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPShapes_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_StyleFPShapes_set, doc=r"""m_StyleFPShapes : bool""")
11071 m_HasStackup = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_HasStackup_set, doc=r"""m_HasStackup : bool""")
11072 m_UseHeightForLengthCalcs = property(_pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_get, _pcbnew.BOARD_DESIGN_SETTINGS_m_UseHeightForLengthCalcs_set, doc=r"""m_UseHeightForLengthCalcs : bool""")
11073
11074 def CloneFrom(self, aOther):
11075 r"""CloneFrom(BOARD_DESIGN_SETTINGS self, BOARD_DESIGN_SETTINGS aOther)"""
11076 return _pcbnew.BOARD_DESIGN_SETTINGS_CloneFrom(self, aOther)
11077
11078# Register BOARD_DESIGN_SETTINGS in _pcbnew:
11079_pcbnew.BOARD_DESIGN_SETTINGS_swigregister(BOARD_DESIGN_SETTINGS)
11080
11082 r"""Proxy of C++ NET_SETTINGS class."""
11083
11084 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11085 __repr__ = _swig_repr
11086
11087 def __init__(self, aParent, aPath):
11088 r"""__init__(NET_SETTINGS self, JSON_SETTINGS * aParent, string aPath) -> NET_SETTINGS"""
11089 _pcbnew.NET_SETTINGS_swiginit(self, _pcbnew.new_NET_SETTINGS(aParent, aPath))
11090 __swig_destroy__ = _pcbnew.delete_NET_SETTINGS
11091
11092 def __eq__(self, aOther):
11093 r"""__eq__(NET_SETTINGS self, NET_SETTINGS aOther) -> bool"""
11094 return _pcbnew.NET_SETTINGS___eq__(self, aOther)
11095
11096 def __ne__(self, aOther):
11097 r"""__ne__(NET_SETTINGS self, NET_SETTINGS aOther) -> bool"""
11098 return _pcbnew.NET_SETTINGS___ne__(self, aOther)
11099 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)>)>)>)>""")
11100 m_DefaultNetClass = property(_pcbnew.NET_SETTINGS_m_DefaultNetClass_get, _pcbnew.NET_SETTINGS_m_DefaultNetClass_set, doc=r"""m_DefaultNetClass : std::shared_ptr<(NETCLASS)>""")
11101 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)>)>)>""")
11102 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)>)>)>""")
11103
11104 def GetEffectiveNetClass(self, aNetName):
11105 r"""GetEffectiveNetClass(NET_SETTINGS self, wxString aNetName) -> std::shared_ptr< NETCLASS >"""
11106 return _pcbnew.NET_SETTINGS_GetEffectiveNetClass(self, aNetName)
11107
11108 @staticmethod
11109 def ParseBusVector(aBus, aName, aMemberList):
11110 r"""ParseBusVector(wxString aBus, wxString aName, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11111 return _pcbnew.NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
11112
11113 @staticmethod
11114 def ParseBusGroup(aGroup, name, aMemberList):
11115 r"""ParseBusGroup(wxString aGroup, wxString name, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11116 return _pcbnew.NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
11117
11118# Register NET_SETTINGS in _pcbnew:
11119_pcbnew.NET_SETTINGS_swigregister(NET_SETTINGS)
11120
11121def NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList):
11122 r"""NET_SETTINGS_ParseBusVector(wxString aBus, wxString aName, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11123 return _pcbnew.NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
11124
11125def NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList):
11126 r"""NET_SETTINGS_ParseBusGroup(wxString aGroup, wxString name, std::vector< wxString,std::allocator< wxString > > * aMemberList) -> bool"""
11127 return _pcbnew.NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
11128
11130 r"""Proxy of C++ CN_DISJOINT_NET_ENTRY class."""
11131
11132 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11133 __repr__ = _swig_repr
11134 net = property(_pcbnew.CN_DISJOINT_NET_ENTRY_net_get, _pcbnew.CN_DISJOINT_NET_ENTRY_net_set, doc=r"""net : int""")
11135 a = property(_pcbnew.CN_DISJOINT_NET_ENTRY_a_get, _pcbnew.CN_DISJOINT_NET_ENTRY_a_set, doc=r"""a : p.BOARD_CONNECTED_ITEM""")
11136 b = property(_pcbnew.CN_DISJOINT_NET_ENTRY_b_get, _pcbnew.CN_DISJOINT_NET_ENTRY_b_set, doc=r"""b : p.BOARD_CONNECTED_ITEM""")
11137 anchorA = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorA_set, doc=r"""anchorA : VECTOR2I""")
11138 anchorB = property(_pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_get, _pcbnew.CN_DISJOINT_NET_ENTRY_anchorB_set, doc=r"""anchorB : VECTOR2I""")
11139
11140 def __init__(self):
11141 r"""__init__(CN_DISJOINT_NET_ENTRY self) -> CN_DISJOINT_NET_ENTRY"""
11142 _pcbnew.CN_DISJOINT_NET_ENTRY_swiginit(self, _pcbnew.new_CN_DISJOINT_NET_ENTRY())
11143 __swig_destroy__ = _pcbnew.delete_CN_DISJOINT_NET_ENTRY
11144
11145# Register CN_DISJOINT_NET_ENTRY in _pcbnew:
11146_pcbnew.CN_DISJOINT_NET_ENTRY_swigregister(CN_DISJOINT_NET_ENTRY)
11147
11149 r"""Proxy of C++ RN_DYNAMIC_LINE class."""
11150
11151 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11152 __repr__ = _swig_repr
11153 netCode = property(_pcbnew.RN_DYNAMIC_LINE_netCode_get, _pcbnew.RN_DYNAMIC_LINE_netCode_set, doc=r"""netCode : int""")
11154 a = property(_pcbnew.RN_DYNAMIC_LINE_a_get, _pcbnew.RN_DYNAMIC_LINE_a_set, doc=r"""a : VECTOR2I""")
11155 b = property(_pcbnew.RN_DYNAMIC_LINE_b_get, _pcbnew.RN_DYNAMIC_LINE_b_set, doc=r"""b : VECTOR2I""")
11156
11157 def __init__(self):
11158 r"""__init__(RN_DYNAMIC_LINE self) -> RN_DYNAMIC_LINE"""
11159 _pcbnew.RN_DYNAMIC_LINE_swiginit(self, _pcbnew.new_RN_DYNAMIC_LINE())
11160 __swig_destroy__ = _pcbnew.delete_RN_DYNAMIC_LINE
11161
11162# Register RN_DYNAMIC_LINE in _pcbnew:
11163_pcbnew.RN_DYNAMIC_LINE_swigregister(RN_DYNAMIC_LINE)
11164
11165PROPAGATE_MODE_SKIP_CONFLICTS = _pcbnew.PROPAGATE_MODE_SKIP_CONFLICTS
11166
11167PROPAGATE_MODE_RESOLVE_CONFLICTS = _pcbnew.PROPAGATE_MODE_RESOLVE_CONFLICTS
11168
11170 r"""Proxy of C++ CONNECTIVITY_DATA class."""
11171
11172 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11173 __repr__ = _swig_repr
11174 __swig_destroy__ = _pcbnew.delete_CONNECTIVITY_DATA
11175
11176 def __init__(self, *args):
11177 r"""
11178 __init__(CONNECTIVITY_DATA self) -> CONNECTIVITY_DATA
11179 __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
11180 """
11181 _pcbnew.CONNECTIVITY_DATA_swiginit(self, _pcbnew.new_CONNECTIVITY_DATA(*args))
11182
11183 def Build(self, *args):
11184 r"""
11185 Build(CONNECTIVITY_DATA self, BOARD aBoard, PROGRESS_REPORTER * aReporter=None) -> bool
11186 Build(CONNECTIVITY_DATA self, std::shared_ptr< CONNECTIVITY_DATA > & aGlobalConnectivity, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aLocalItems)
11187 """
11188 return _pcbnew.CONNECTIVITY_DATA_Build(self, *args)
11189
11190 def Add(self, aItem):
11191 r"""Add(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11192 return _pcbnew.CONNECTIVITY_DATA_Add(self, aItem)
11193
11194 def Remove(self, aItem):
11195 r"""Remove(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11196 return _pcbnew.CONNECTIVITY_DATA_Remove(self, aItem)
11197
11198 def Update(self, aItem):
11199 r"""Update(CONNECTIVITY_DATA self, BOARD_ITEM aItem) -> bool"""
11200 return _pcbnew.CONNECTIVITY_DATA_Update(self, aItem)
11201
11202 def Move(self, aDelta):
11203 r"""Move(CONNECTIVITY_DATA self, VECTOR2I aDelta)"""
11204 return _pcbnew.CONNECTIVITY_DATA_Move(self, aDelta)
11205
11206 def ClearRatsnest(self):
11207 r"""ClearRatsnest(CONNECTIVITY_DATA self)"""
11208 return _pcbnew.CONNECTIVITY_DATA_ClearRatsnest(self)
11209
11210 def GetNetCount(self):
11211 r"""GetNetCount(CONNECTIVITY_DATA self) -> int"""
11212 return _pcbnew.CONNECTIVITY_DATA_GetNetCount(self)
11213
11214 def GetRatsnestForNet(self, aNet):
11215 r"""GetRatsnestForNet(CONNECTIVITY_DATA self, int aNet) -> RN_NET *"""
11216 return _pcbnew.CONNECTIVITY_DATA_GetRatsnestForNet(self, aNet)
11217
11218 def PropagateNets(self, aCommit=None):
11219 r"""PropagateNets(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
11220 return _pcbnew.CONNECTIVITY_DATA_PropagateNets(self, aCommit)
11221
11222 def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False):
11223 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)"""
11224 return _pcbnew.CONNECTIVITY_DATA_FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt)
11225
11226 def RecalculateRatsnest(self, aCommit=None):
11227 r"""RecalculateRatsnest(CONNECTIVITY_DATA self, BOARD_COMMIT * aCommit=None)"""
11228 return _pcbnew.CONNECTIVITY_DATA_RecalculateRatsnest(self, aCommit)
11229
11230 def GetUnconnectedCount(self, aVisibileOnly):
11231 r"""GetUnconnectedCount(CONNECTIVITY_DATA self, bool aVisibileOnly) -> unsigned int"""
11232 return _pcbnew.CONNECTIVITY_DATA_GetUnconnectedCount(self, aVisibileOnly)
11233
11234 def IsConnectedOnLayer(self, *args):
11235 r"""IsConnectedOnLayer(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, int aLayer, std::initializer_list< KICAD_T > const & aTypes={}) -> bool"""
11236 return _pcbnew.CONNECTIVITY_DATA_IsConnectedOnLayer(self, *args)
11237
11238 def GetNodeCount(self, aNet=-1):
11239 r"""GetNodeCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
11240 return _pcbnew.CONNECTIVITY_DATA_GetNodeCount(self, aNet)
11241
11242 def GetPadCount(self, aNet=-1):
11243 r"""GetPadCount(CONNECTIVITY_DATA self, int aNet=-1) -> unsigned int"""
11244 return _pcbnew.CONNECTIVITY_DATA_GetPadCount(self, aNet)
11245
11246 def GetConnectedTracks(self, aItem):
11247 r"""GetConnectedTracks(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> TRACKS_VEC"""
11248 return _pcbnew.CONNECTIVITY_DATA_GetConnectedTracks(self, aItem)
11249
11250 def GetConnectedPads(self, *args):
11251 r"""
11252 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem) -> PADS_VEC
11253 GetConnectedPads(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, std::set< PAD *,std::less< PAD * >,std::allocator< PAD * > > * pads)
11254 """
11255 return _pcbnew.CONNECTIVITY_DATA_GetConnectedPads(self, *args)
11256
11257 def GetConnectedPadsAndVias(self, aItem, pads, vias):
11258 r"""GetConnectedPadsAndVias(CONNECTIVITY_DATA self, BOARD_CONNECTED_ITEM aItem, PADS_VEC pads, std::vector< PCB_VIA *,std::allocator< PCB_VIA * > > * vias)"""
11259 return _pcbnew.CONNECTIVITY_DATA_GetConnectedPadsAndVias(self, aItem, pads, vias)
11260
11261 def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0):
11262 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"""
11263 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError)
11264
11265 def RunOnUnconnectedEdges(self, aFunc):
11266 r"""RunOnUnconnectedEdges(CONNECTIVITY_DATA self, std::function< bool (CN_EDGE &) > aFunc)"""
11267 return _pcbnew.CONNECTIVITY_DATA_RunOnUnconnectedEdges(self, aFunc)
11268
11269 def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None):
11270 r"""TestTrackEndpointDangling(CONNECTIVITY_DATA self, PCB_TRACK aTrack, bool aIgnoreTracksInPads, VECTOR2I aPos=None) -> bool"""
11271 return _pcbnew.CONNECTIVITY_DATA_TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos)
11272
11274 r"""ClearLocalRatsnest(CONNECTIVITY_DATA self)"""
11275 return _pcbnew.CONNECTIVITY_DATA_ClearLocalRatsnest(self)
11276
11278 r"""HideLocalRatsnest(CONNECTIVITY_DATA self)"""
11279 return _pcbnew.CONNECTIVITY_DATA_HideLocalRatsnest(self)
11280
11281 def ComputeLocalRatsnest(self, *args):
11282 r"""ComputeLocalRatsnest(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems, CONNECTIVITY_DATA aDynamicData, VECTOR2I aInternalOffset={ 0, 0 })"""
11283 return _pcbnew.CONNECTIVITY_DATA_ComputeLocalRatsnest(self, *args)
11284
11286 r"""GetLocalRatsnest(CONNECTIVITY_DATA self) -> std::vector< RN_DYNAMIC_LINE,std::allocator< RN_DYNAMIC_LINE > > const &"""
11287 return _pcbnew.CONNECTIVITY_DATA_GetLocalRatsnest(self)
11288
11289 def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False):
11290 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"""
11291 return _pcbnew.CONNECTIVITY_DATA_GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes)
11292
11293 def GetNetItems(self, aNetCode, aTypes):
11294 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"""
11295 return _pcbnew.CONNECTIVITY_DATA_GetNetItems(self, aNetCode, aTypes)
11296
11297 def BlockRatsnestItems(self, aItems):
11298 r"""BlockRatsnestItems(CONNECTIVITY_DATA self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > const & aItems)"""
11299 return _pcbnew.CONNECTIVITY_DATA_BlockRatsnestItems(self, aItems)
11300
11302 r"""GetConnectivityAlgo(CONNECTIVITY_DATA self) -> std::shared_ptr< CN_CONNECTIVITY_ALGO >"""
11303 return _pcbnew.CONNECTIVITY_DATA_GetConnectivityAlgo(self)
11304
11305 def GetLock(self):
11306 r"""GetLock(CONNECTIVITY_DATA self) -> KISPINLOCK &"""
11307 return _pcbnew.CONNECTIVITY_DATA_GetLock(self)
11308
11309 def MarkItemNetAsDirty(self, aItem):
11310 r"""MarkItemNetAsDirty(CONNECTIVITY_DATA self, BOARD_ITEM aItem)"""
11311 return _pcbnew.CONNECTIVITY_DATA_MarkItemNetAsDirty(self, aItem)
11312
11314 r"""RemoveInvalidRefs(CONNECTIVITY_DATA self)"""
11315 return _pcbnew.CONNECTIVITY_DATA_RemoveInvalidRefs(self)
11316
11317 def SetProgressReporter(self, aReporter):
11318 r"""SetProgressReporter(CONNECTIVITY_DATA self, PROGRESS_REPORTER * aReporter)"""
11319 return _pcbnew.CONNECTIVITY_DATA_SetProgressReporter(self, aReporter)
11320
11322 r"""GetNetclassMap(CONNECTIVITY_DATA self) -> std::map< int,wxString,std::less< int >,std::allocator< std::pair< int const,wxString > > > const &"""
11323 return _pcbnew.CONNECTIVITY_DATA_GetNetclassMap(self)
11324
11326 r"""GetFromToCache(CONNECTIVITY_DATA self) -> std::shared_ptr< FROM_TO_CACHE >"""
11327 return _pcbnew.CONNECTIVITY_DATA_GetFromToCache(self)
11328
11329# Register CONNECTIVITY_DATA in _pcbnew:
11330_pcbnew.CONNECTIVITY_DATA_swigregister(CONNECTIVITY_DATA)
11331
11333 r"""Proxy of C++ std::vector< PCB_MARKER * > class."""
11334
11335 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11336 __repr__ = _swig_repr
11337
11338 def iterator(self):
11339 r"""iterator(MARKERS self) -> SwigPyIterator"""
11340 return _pcbnew.MARKERS_iterator(self)
11341 def __iter__(self):
11342 return self.iterator()
11343
11344 def __nonzero__(self):
11345 r"""__nonzero__(MARKERS self) -> bool"""
11346 return _pcbnew.MARKERS___nonzero__(self)
11347
11348 def __bool__(self):
11349 r"""__bool__(MARKERS self) -> bool"""
11350 return _pcbnew.MARKERS___bool__(self)
11351
11352 def __len__(self):
11353 r"""__len__(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11354 return _pcbnew.MARKERS___len__(self)
11355
11356 def __getslice__(self, i, j):
11357 r"""__getslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j) -> MARKERS"""
11358 return _pcbnew.MARKERS___getslice__(self, i, j)
11359
11360 def __setslice__(self, *args):
11361 r"""
11362 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)
11363 __setslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j, MARKERS v)
11364 """
11365 return _pcbnew.MARKERS___setslice__(self, *args)
11366
11367 def __delslice__(self, i, j):
11368 r"""__delslice__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, std::vector< PCB_MARKER * >::difference_type j)"""
11369 return _pcbnew.MARKERS___delslice__(self, i, j)
11370
11371 def __delitem__(self, *args):
11372 r"""
11373 __delitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i)
11374 __delitem__(MARKERS self, PySliceObject * slice)
11375 """
11376 return _pcbnew.MARKERS___delitem__(self, *args)
11377
11378 def __getitem__(self, *args):
11379 r"""
11380 __getitem__(MARKERS self, PySliceObject * slice) -> MARKERS
11381 __getitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i) -> PCB_MARKER
11382 """
11383 return _pcbnew.MARKERS___getitem__(self, *args)
11384
11385 def __setitem__(self, *args):
11386 r"""
11387 __setitem__(MARKERS self, PySliceObject * slice, MARKERS v)
11388 __setitem__(MARKERS self, PySliceObject * slice)
11389 __setitem__(MARKERS self, std::vector< PCB_MARKER * >::difference_type i, PCB_MARKER x)
11390 """
11391 return _pcbnew.MARKERS___setitem__(self, *args)
11392
11393 def pop(self):
11394 r"""pop(MARKERS self) -> PCB_MARKER"""
11395 return _pcbnew.MARKERS_pop(self)
11396
11397 def append(self, x):
11398 r"""append(MARKERS self, PCB_MARKER x)"""
11399 return _pcbnew.MARKERS_append(self, x)
11400
11401 def empty(self):
11402 r"""empty(MARKERS self) -> bool"""
11403 return _pcbnew.MARKERS_empty(self)
11404
11405 def size(self):
11406 r"""size(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11407 return _pcbnew.MARKERS_size(self)
11408
11409 def swap(self, v):
11410 r"""swap(MARKERS self, MARKERS v)"""
11411 return _pcbnew.MARKERS_swap(self, v)
11412
11413 def begin(self):
11414 r"""begin(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
11415 return _pcbnew.MARKERS_begin(self)
11416
11417 def end(self):
11418 r"""end(MARKERS self) -> std::vector< PCB_MARKER * >::iterator"""
11419 return _pcbnew.MARKERS_end(self)
11420
11421 def rbegin(self):
11422 r"""rbegin(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11423 return _pcbnew.MARKERS_rbegin(self)
11424
11425 def rend(self):
11426 r"""rend(MARKERS self) -> std::vector< PCB_MARKER * >::reverse_iterator"""
11427 return _pcbnew.MARKERS_rend(self)
11428
11429 def clear(self):
11430 r"""clear(MARKERS self)"""
11431 return _pcbnew.MARKERS_clear(self)
11432
11433 def get_allocator(self):
11434 r"""get_allocator(MARKERS self) -> std::vector< PCB_MARKER * >::allocator_type"""
11435 return _pcbnew.MARKERS_get_allocator(self)
11436
11437 def pop_back(self):
11438 r"""pop_back(MARKERS self)"""
11439 return _pcbnew.MARKERS_pop_back(self)
11440
11441 def erase(self, *args):
11442 r"""
11443 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator pos) -> std::vector< PCB_MARKER * >::iterator
11444 erase(MARKERS self, std::vector< PCB_MARKER * >::iterator first, std::vector< PCB_MARKER * >::iterator last) -> std::vector< PCB_MARKER * >::iterator
11445 """
11446 return _pcbnew.MARKERS_erase(self, *args)
11447
11448 def __init__(self, *args):
11449 r"""
11450 __init__(MARKERS self) -> MARKERS
11451 __init__(MARKERS self, MARKERS other) -> MARKERS
11452 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size) -> MARKERS
11453 __init__(MARKERS self, std::vector< PCB_MARKER * >::size_type size, PCB_MARKER value) -> MARKERS
11454 """
11455 _pcbnew.MARKERS_swiginit(self, _pcbnew.new_MARKERS(*args))
11456
11457 def push_back(self, x):
11458 r"""push_back(MARKERS self, PCB_MARKER x)"""
11459 return _pcbnew.MARKERS_push_back(self, x)
11460
11461 def front(self):
11462 r"""front(MARKERS self) -> PCB_MARKER"""
11463 return _pcbnew.MARKERS_front(self)
11464
11465 def back(self):
11466 r"""back(MARKERS self) -> PCB_MARKER"""
11467 return _pcbnew.MARKERS_back(self)
11468
11469 def assign(self, n, x):
11470 r"""assign(MARKERS self, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)"""
11471 return _pcbnew.MARKERS_assign(self, n, x)
11472
11473 def resize(self, *args):
11474 r"""
11475 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size)
11476 resize(MARKERS self, std::vector< PCB_MARKER * >::size_type new_size, PCB_MARKER x)
11477 """
11478 return _pcbnew.MARKERS_resize(self, *args)
11479
11480 def insert(self, *args):
11481 r"""
11482 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, PCB_MARKER x) -> std::vector< PCB_MARKER * >::iterator
11483 insert(MARKERS self, std::vector< PCB_MARKER * >::iterator pos, std::vector< PCB_MARKER * >::size_type n, PCB_MARKER x)
11484 """
11485 return _pcbnew.MARKERS_insert(self, *args)
11486
11487 def reserve(self, n):
11488 r"""reserve(MARKERS self, std::vector< PCB_MARKER * >::size_type n)"""
11489 return _pcbnew.MARKERS_reserve(self, n)
11490
11491 def capacity(self):
11492 r"""capacity(MARKERS self) -> std::vector< PCB_MARKER * >::size_type"""
11493 return _pcbnew.MARKERS_capacity(self)
11494 __swig_destroy__ = _pcbnew.delete_MARKERS
11495
11496# Register MARKERS in _pcbnew:
11497_pcbnew.MARKERS_swigregister(MARKERS)
11498
11500 r"""Proxy of C++ std::vector< ZONE * > class."""
11501
11502 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11503 __repr__ = _swig_repr
11504
11505 def iterator(self):
11506 r"""iterator(ZONES self) -> SwigPyIterator"""
11507 return _pcbnew.ZONES_iterator(self)
11508 def __iter__(self):
11509 return self.iterator()
11510
11511 def __nonzero__(self):
11512 r"""__nonzero__(ZONES self) -> bool"""
11513 return _pcbnew.ZONES___nonzero__(self)
11514
11515 def __bool__(self):
11516 r"""__bool__(ZONES self) -> bool"""
11517 return _pcbnew.ZONES___bool__(self)
11518
11519 def __len__(self):
11520 r"""__len__(ZONES self) -> std::vector< ZONE * >::size_type"""
11521 return _pcbnew.ZONES___len__(self)
11522
11523 def __getslice__(self, i, j):
11524 r"""__getslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j) -> ZONES"""
11525 return _pcbnew.ZONES___getslice__(self, i, j)
11526
11527 def __setslice__(self, *args):
11528 r"""
11529 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)
11530 __setslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j, ZONES v)
11531 """
11532 return _pcbnew.ZONES___setslice__(self, *args)
11533
11534 def __delslice__(self, i, j):
11535 r"""__delslice__(ZONES self, std::vector< ZONE * >::difference_type i, std::vector< ZONE * >::difference_type j)"""
11536 return _pcbnew.ZONES___delslice__(self, i, j)
11537
11538 def __delitem__(self, *args):
11539 r"""
11540 __delitem__(ZONES self, std::vector< ZONE * >::difference_type i)
11541 __delitem__(ZONES self, PySliceObject * slice)
11542 """
11543 return _pcbnew.ZONES___delitem__(self, *args)
11544
11545 def __getitem__(self, *args):
11546 r"""
11547 __getitem__(ZONES self, PySliceObject * slice) -> ZONES
11548 __getitem__(ZONES self, std::vector< ZONE * >::difference_type i) -> ZONE
11549 """
11550 return _pcbnew.ZONES___getitem__(self, *args)
11551
11552 def __setitem__(self, *args):
11553 r"""
11554 __setitem__(ZONES self, PySliceObject * slice, ZONES v)
11555 __setitem__(ZONES self, PySliceObject * slice)
11556 __setitem__(ZONES self, std::vector< ZONE * >::difference_type i, ZONE x)
11557 """
11558 return _pcbnew.ZONES___setitem__(self, *args)
11559
11560 def pop(self):
11561 r"""pop(ZONES self) -> ZONE"""
11562 return _pcbnew.ZONES_pop(self)
11563
11564 def append(self, x):
11565 r"""append(ZONES self, ZONE x)"""
11566 return _pcbnew.ZONES_append(self, x)
11567
11568 def empty(self):
11569 r"""empty(ZONES self) -> bool"""
11570 return _pcbnew.ZONES_empty(self)
11571
11572 def size(self):
11573 r"""size(ZONES self) -> std::vector< ZONE * >::size_type"""
11574 return _pcbnew.ZONES_size(self)
11575
11576 def swap(self, v):
11577 r"""swap(ZONES self, ZONES v)"""
11578 return _pcbnew.ZONES_swap(self, v)
11579
11580 def begin(self):
11581 r"""begin(ZONES self) -> std::vector< ZONE * >::iterator"""
11582 return _pcbnew.ZONES_begin(self)
11583
11584 def end(self):
11585 r"""end(ZONES self) -> std::vector< ZONE * >::iterator"""
11586 return _pcbnew.ZONES_end(self)
11587
11588 def rbegin(self):
11589 r"""rbegin(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
11590 return _pcbnew.ZONES_rbegin(self)
11591
11592 def rend(self):
11593 r"""rend(ZONES self) -> std::vector< ZONE * >::reverse_iterator"""
11594 return _pcbnew.ZONES_rend(self)
11595
11596 def clear(self):
11597 r"""clear(ZONES self)"""
11598 return _pcbnew.ZONES_clear(self)
11599
11600 def get_allocator(self):
11601 r"""get_allocator(ZONES self) -> std::vector< ZONE * >::allocator_type"""
11602 return _pcbnew.ZONES_get_allocator(self)
11603
11604 def pop_back(self):
11605 r"""pop_back(ZONES self)"""
11606 return _pcbnew.ZONES_pop_back(self)
11607
11608 def erase(self, *args):
11609 r"""
11610 erase(ZONES self, std::vector< ZONE * >::iterator pos) -> std::vector< ZONE * >::iterator
11611 erase(ZONES self, std::vector< ZONE * >::iterator first, std::vector< ZONE * >::iterator last) -> std::vector< ZONE * >::iterator
11612 """
11613 return _pcbnew.ZONES_erase(self, *args)
11614
11615 def __init__(self, *args):
11616 r"""
11617 __init__(ZONES self) -> ZONES
11618 __init__(ZONES self, ZONES other) -> ZONES
11619 __init__(ZONES self, std::vector< ZONE * >::size_type size) -> ZONES
11620 __init__(ZONES self, std::vector< ZONE * >::size_type size, ZONE value) -> ZONES
11621 """
11622 _pcbnew.ZONES_swiginit(self, _pcbnew.new_ZONES(*args))
11623
11624 def push_back(self, x):
11625 r"""push_back(ZONES self, ZONE x)"""
11626 return _pcbnew.ZONES_push_back(self, x)
11627
11628 def front(self):
11629 r"""front(ZONES self) -> ZONE"""
11630 return _pcbnew.ZONES_front(self)
11631
11632 def back(self):
11633 r"""back(ZONES self) -> ZONE"""
11634 return _pcbnew.ZONES_back(self)
11635
11636 def assign(self, n, x):
11637 r"""assign(ZONES self, std::vector< ZONE * >::size_type n, ZONE x)"""
11638 return _pcbnew.ZONES_assign(self, n, x)
11639
11640 def resize(self, *args):
11641 r"""
11642 resize(ZONES self, std::vector< ZONE * >::size_type new_size)
11643 resize(ZONES self, std::vector< ZONE * >::size_type new_size, ZONE x)
11644 """
11645 return _pcbnew.ZONES_resize(self, *args)
11646
11647 def insert(self, *args):
11648 r"""
11649 insert(ZONES self, std::vector< ZONE * >::iterator pos, ZONE x) -> std::vector< ZONE * >::iterator
11650 insert(ZONES self, std::vector< ZONE * >::iterator pos, std::vector< ZONE * >::size_type n, ZONE x)
11651 """
11652 return _pcbnew.ZONES_insert(self, *args)
11653
11654 def reserve(self, n):
11655 r"""reserve(ZONES self, std::vector< ZONE * >::size_type n)"""
11656 return _pcbnew.ZONES_reserve(self, n)
11657
11658 def capacity(self):
11659 r"""capacity(ZONES self) -> std::vector< ZONE * >::size_type"""
11660 return _pcbnew.ZONES_capacity(self)
11661 __swig_destroy__ = _pcbnew.delete_ZONES
11662
11663# Register ZONES in _pcbnew:
11664_pcbnew.ZONES_swigregister(ZONES)
11665
11667 r"""Proxy of C++ std::deque< PCB_TRACK * > class."""
11668
11669 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11670 __repr__ = _swig_repr
11671
11672 def iterator(self):
11673 r"""iterator(TRACKS self) -> SwigPyIterator"""
11674 return _pcbnew.TRACKS_iterator(self)
11675 def __iter__(self):
11676 return self.iterator()
11677
11678 def __nonzero__(self):
11679 r"""__nonzero__(TRACKS self) -> bool"""
11680 return _pcbnew.TRACKS___nonzero__(self)
11681
11682 def __bool__(self):
11683 r"""__bool__(TRACKS self) -> bool"""
11684 return _pcbnew.TRACKS___bool__(self)
11685
11686 def __len__(self):
11687 r"""__len__(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
11688 return _pcbnew.TRACKS___len__(self)
11689
11690 def __getslice__(self, i, j):
11691 r"""__getslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j) -> TRACKS"""
11692 return _pcbnew.TRACKS___getslice__(self, i, j)
11693
11694 def __setslice__(self, *args):
11695 r"""
11696 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)
11697 __setslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j, TRACKS v)
11698 """
11699 return _pcbnew.TRACKS___setslice__(self, *args)
11700
11701 def __delslice__(self, i, j):
11702 r"""__delslice__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, std::deque< PCB_TRACK * >::difference_type j)"""
11703 return _pcbnew.TRACKS___delslice__(self, i, j)
11704
11705 def __delitem__(self, *args):
11706 r"""
11707 __delitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i)
11708 __delitem__(TRACKS self, PySliceObject * slice)
11709 """
11710 return _pcbnew.TRACKS___delitem__(self, *args)
11711
11712 def __getitem__(self, *args):
11713 r"""
11714 __getitem__(TRACKS self, PySliceObject * slice) -> TRACKS
11715 __getitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i) -> PCB_TRACK
11716 """
11717 return _pcbnew.TRACKS___getitem__(self, *args)
11718
11719 def __setitem__(self, *args):
11720 r"""
11721 __setitem__(TRACKS self, PySliceObject * slice, TRACKS v)
11722 __setitem__(TRACKS self, PySliceObject * slice)
11723 __setitem__(TRACKS self, std::deque< PCB_TRACK * >::difference_type i, PCB_TRACK x)
11724 """
11725 return _pcbnew.TRACKS___setitem__(self, *args)
11726
11727 def pop(self):
11728 r"""pop(TRACKS self) -> PCB_TRACK"""
11729 return _pcbnew.TRACKS_pop(self)
11730
11731 def append(self, x):
11732 r"""append(TRACKS self, PCB_TRACK x)"""
11733 return _pcbnew.TRACKS_append(self, x)
11734
11735 def empty(self):
11736 r"""empty(TRACKS self) -> bool"""
11737 return _pcbnew.TRACKS_empty(self)
11738
11739 def size(self):
11740 r"""size(TRACKS self) -> std::deque< PCB_TRACK * >::size_type"""
11741 return _pcbnew.TRACKS_size(self)
11742
11743 def swap(self, v):
11744 r"""swap(TRACKS self, TRACKS v)"""
11745 return _pcbnew.TRACKS_swap(self, v)
11746
11747 def begin(self):
11748 r"""begin(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
11749 return _pcbnew.TRACKS_begin(self)
11750
11751 def end(self):
11752 r"""end(TRACKS self) -> std::deque< PCB_TRACK * >::iterator"""
11753 return _pcbnew.TRACKS_end(self)
11754
11755 def rbegin(self):
11756 r"""rbegin(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
11757 return _pcbnew.TRACKS_rbegin(self)
11758
11759 def rend(self):
11760 r"""rend(TRACKS self) -> std::deque< PCB_TRACK * >::reverse_iterator"""
11761 return _pcbnew.TRACKS_rend(self)
11762
11763 def clear(self):
11764 r"""clear(TRACKS self)"""
11765 return _pcbnew.TRACKS_clear(self)
11766
11767 def get_allocator(self):
11768 r"""get_allocator(TRACKS self) -> std::deque< PCB_TRACK * >::allocator_type"""
11769 return _pcbnew.TRACKS_get_allocator(self)
11770
11771 def pop_back(self):
11772 r"""pop_back(TRACKS self)"""
11773 return _pcbnew.TRACKS_pop_back(self)
11774
11775 def erase(self, *args):
11776 r"""
11777 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator pos) -> std::deque< PCB_TRACK * >::iterator
11778 erase(TRACKS self, std::deque< PCB_TRACK * >::iterator first, std::deque< PCB_TRACK * >::iterator last) -> std::deque< PCB_TRACK * >::iterator
11779 """
11780 return _pcbnew.TRACKS_erase(self, *args)
11781
11782 def __init__(self, *args):
11783 r"""
11784 __init__(TRACKS self) -> TRACKS
11785 __init__(TRACKS self, TRACKS other) -> TRACKS
11786 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size) -> TRACKS
11787 __init__(TRACKS self, std::deque< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS
11788 """
11789 _pcbnew.TRACKS_swiginit(self, _pcbnew.new_TRACKS(*args))
11790
11791 def push_back(self, x):
11792 r"""push_back(TRACKS self, PCB_TRACK x)"""
11793 return _pcbnew.TRACKS_push_back(self, x)
11794
11795 def front(self):
11796 r"""front(TRACKS self) -> PCB_TRACK"""
11797 return _pcbnew.TRACKS_front(self)
11798
11799 def back(self):
11800 r"""back(TRACKS self) -> PCB_TRACK"""
11801 return _pcbnew.TRACKS_back(self)
11802
11803 def assign(self, n, x):
11804 r"""assign(TRACKS self, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
11805 return _pcbnew.TRACKS_assign(self, n, x)
11806
11807 def resize(self, *args):
11808 r"""
11809 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size)
11810 resize(TRACKS self, std::deque< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
11811 """
11812 return _pcbnew.TRACKS_resize(self, *args)
11813
11814 def insert(self, *args):
11815 r"""
11816 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::deque< PCB_TRACK * >::iterator
11817 insert(TRACKS self, std::deque< PCB_TRACK * >::iterator pos, std::deque< PCB_TRACK * >::size_type n, PCB_TRACK x)
11818 """
11819 return _pcbnew.TRACKS_insert(self, *args)
11820
11821 def pop_front(self):
11822 r"""pop_front(TRACKS self)"""
11823 return _pcbnew.TRACKS_pop_front(self)
11824
11825 def push_front(self, x):
11826 r"""push_front(TRACKS self, PCB_TRACK x)"""
11827 return _pcbnew.TRACKS_push_front(self, x)
11828
11829 def __iter__(self):
11830 it = self.iterator()
11831 try:
11832 while True:
11833 item = it.next() # throws StopIteration when iterator reached the end.
11834 yield item.Cast()
11835 except StopIteration:
11836 return
11837
11838 __swig_destroy__ = _pcbnew.delete_TRACKS
11839
11840# Register TRACKS in _pcbnew:
11841_pcbnew.TRACKS_swigregister(TRACKS)
11842
11844 r"""Proxy of C++ std::deque< FOOTPRINT * > class."""
11845
11846 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11847 __repr__ = _swig_repr
11848
11849 def iterator(self):
11850 r"""iterator(FOOTPRINTS self) -> SwigPyIterator"""
11851 return _pcbnew.FOOTPRINTS_iterator(self)
11852 def __iter__(self):
11853 return self.iterator()
11854
11855 def __nonzero__(self):
11856 r"""__nonzero__(FOOTPRINTS self) -> bool"""
11857 return _pcbnew.FOOTPRINTS___nonzero__(self)
11858
11859 def __bool__(self):
11860 r"""__bool__(FOOTPRINTS self) -> bool"""
11861 return _pcbnew.FOOTPRINTS___bool__(self)
11862
11863 def __len__(self):
11864 r"""__len__(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
11865 return _pcbnew.FOOTPRINTS___len__(self)
11866
11867 def __getslice__(self, i, j):
11868 r"""__getslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j) -> FOOTPRINTS"""
11869 return _pcbnew.FOOTPRINTS___getslice__(self, i, j)
11870
11871 def __setslice__(self, *args):
11872 r"""
11873 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)
11874 __setslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j, FOOTPRINTS v)
11875 """
11876 return _pcbnew.FOOTPRINTS___setslice__(self, *args)
11877
11878 def __delslice__(self, i, j):
11879 r"""__delslice__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, std::deque< FOOTPRINT * >::difference_type j)"""
11880 return _pcbnew.FOOTPRINTS___delslice__(self, i, j)
11881
11882 def __delitem__(self, *args):
11883 r"""
11884 __delitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i)
11885 __delitem__(FOOTPRINTS self, PySliceObject * slice)
11886 """
11887 return _pcbnew.FOOTPRINTS___delitem__(self, *args)
11888
11889 def __getitem__(self, *args):
11890 r"""
11891 __getitem__(FOOTPRINTS self, PySliceObject * slice) -> FOOTPRINTS
11892 __getitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i) -> FOOTPRINT
11893 """
11894 return _pcbnew.FOOTPRINTS___getitem__(self, *args)
11895
11896 def __setitem__(self, *args):
11897 r"""
11898 __setitem__(FOOTPRINTS self, PySliceObject * slice, FOOTPRINTS v)
11899 __setitem__(FOOTPRINTS self, PySliceObject * slice)
11900 __setitem__(FOOTPRINTS self, std::deque< FOOTPRINT * >::difference_type i, FOOTPRINT x)
11901 """
11902 return _pcbnew.FOOTPRINTS___setitem__(self, *args)
11903
11904 def pop(self):
11905 r"""pop(FOOTPRINTS self) -> FOOTPRINT"""
11906 return _pcbnew.FOOTPRINTS_pop(self)
11907
11908 def append(self, x):
11909 r"""append(FOOTPRINTS self, FOOTPRINT x)"""
11910 return _pcbnew.FOOTPRINTS_append(self, x)
11911
11912 def empty(self):
11913 r"""empty(FOOTPRINTS self) -> bool"""
11914 return _pcbnew.FOOTPRINTS_empty(self)
11915
11916 def size(self):
11917 r"""size(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::size_type"""
11918 return _pcbnew.FOOTPRINTS_size(self)
11919
11920 def swap(self, v):
11921 r"""swap(FOOTPRINTS self, FOOTPRINTS v)"""
11922 return _pcbnew.FOOTPRINTS_swap(self, v)
11923
11924 def begin(self):
11925 r"""begin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
11926 return _pcbnew.FOOTPRINTS_begin(self)
11927
11928 def end(self):
11929 r"""end(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::iterator"""
11930 return _pcbnew.FOOTPRINTS_end(self)
11931
11932 def rbegin(self):
11933 r"""rbegin(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
11934 return _pcbnew.FOOTPRINTS_rbegin(self)
11935
11936 def rend(self):
11937 r"""rend(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::reverse_iterator"""
11938 return _pcbnew.FOOTPRINTS_rend(self)
11939
11940 def clear(self):
11941 r"""clear(FOOTPRINTS self)"""
11942 return _pcbnew.FOOTPRINTS_clear(self)
11943
11944 def get_allocator(self):
11945 r"""get_allocator(FOOTPRINTS self) -> std::deque< FOOTPRINT * >::allocator_type"""
11946 return _pcbnew.FOOTPRINTS_get_allocator(self)
11947
11948 def pop_back(self):
11949 r"""pop_back(FOOTPRINTS self)"""
11950 return _pcbnew.FOOTPRINTS_pop_back(self)
11951
11952 def erase(self, *args):
11953 r"""
11954 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos) -> std::deque< FOOTPRINT * >::iterator
11955 erase(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator first, std::deque< FOOTPRINT * >::iterator last) -> std::deque< FOOTPRINT * >::iterator
11956 """
11957 return _pcbnew.FOOTPRINTS_erase(self, *args)
11958
11959 def __init__(self, *args):
11960 r"""
11961 __init__(FOOTPRINTS self) -> FOOTPRINTS
11962 __init__(FOOTPRINTS self, FOOTPRINTS other) -> FOOTPRINTS
11963 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size) -> FOOTPRINTS
11964 __init__(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type size, FOOTPRINT value) -> FOOTPRINTS
11965 """
11966 _pcbnew.FOOTPRINTS_swiginit(self, _pcbnew.new_FOOTPRINTS(*args))
11967
11968 def push_back(self, x):
11969 r"""push_back(FOOTPRINTS self, FOOTPRINT x)"""
11970 return _pcbnew.FOOTPRINTS_push_back(self, x)
11971
11972 def front(self):
11973 r"""front(FOOTPRINTS self) -> FOOTPRINT"""
11974 return _pcbnew.FOOTPRINTS_front(self)
11975
11976 def back(self):
11977 r"""back(FOOTPRINTS self) -> FOOTPRINT"""
11978 return _pcbnew.FOOTPRINTS_back(self)
11979
11980 def assign(self, n, x):
11981 r"""assign(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)"""
11982 return _pcbnew.FOOTPRINTS_assign(self, n, x)
11983
11984 def resize(self, *args):
11985 r"""
11986 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size)
11987 resize(FOOTPRINTS self, std::deque< FOOTPRINT * >::size_type new_size, FOOTPRINT x)
11988 """
11989 return _pcbnew.FOOTPRINTS_resize(self, *args)
11990
11991 def insert(self, *args):
11992 r"""
11993 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, FOOTPRINT x) -> std::deque< FOOTPRINT * >::iterator
11994 insert(FOOTPRINTS self, std::deque< FOOTPRINT * >::iterator pos, std::deque< FOOTPRINT * >::size_type n, FOOTPRINT x)
11995 """
11996 return _pcbnew.FOOTPRINTS_insert(self, *args)
11997
11998 def pop_front(self):
11999 r"""pop_front(FOOTPRINTS self)"""
12000 return _pcbnew.FOOTPRINTS_pop_front(self)
12001
12002 def push_front(self, x):
12003 r"""push_front(FOOTPRINTS self, FOOTPRINT x)"""
12004 return _pcbnew.FOOTPRINTS_push_front(self, x)
12005 __swig_destroy__ = _pcbnew.delete_FOOTPRINTS
12006
12007# Register FOOTPRINTS in _pcbnew:
12008_pcbnew.FOOTPRINTS_swigregister(FOOTPRINTS)
12009
12011 r"""Proxy of C++ std::deque< PCB_GROUP * > class."""
12012
12013 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12014 __repr__ = _swig_repr
12015
12016 def iterator(self):
12017 r"""iterator(GROUPS self) -> SwigPyIterator"""
12018 return _pcbnew.GROUPS_iterator(self)
12019 def __iter__(self):
12020 return self.iterator()
12021
12022 def __nonzero__(self):
12023 r"""__nonzero__(GROUPS self) -> bool"""
12024 return _pcbnew.GROUPS___nonzero__(self)
12025
12026 def __bool__(self):
12027 r"""__bool__(GROUPS self) -> bool"""
12028 return _pcbnew.GROUPS___bool__(self)
12029
12030 def __len__(self):
12031 r"""__len__(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
12032 return _pcbnew.GROUPS___len__(self)
12033
12034 def __getslice__(self, i, j):
12035 r"""__getslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j) -> GROUPS"""
12036 return _pcbnew.GROUPS___getslice__(self, i, j)
12037
12038 def __setslice__(self, *args):
12039 r"""
12040 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)
12041 __setslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j, GROUPS v)
12042 """
12043 return _pcbnew.GROUPS___setslice__(self, *args)
12044
12045 def __delslice__(self, i, j):
12046 r"""__delslice__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, std::deque< PCB_GROUP * >::difference_type j)"""
12047 return _pcbnew.GROUPS___delslice__(self, i, j)
12048
12049 def __delitem__(self, *args):
12050 r"""
12051 __delitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i)
12052 __delitem__(GROUPS self, PySliceObject * slice)
12053 """
12054 return _pcbnew.GROUPS___delitem__(self, *args)
12055
12056 def __getitem__(self, *args):
12057 r"""
12058 __getitem__(GROUPS self, PySliceObject * slice) -> GROUPS
12059 __getitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i) -> PCB_GROUP
12060 """
12061 return _pcbnew.GROUPS___getitem__(self, *args)
12062
12063 def __setitem__(self, *args):
12064 r"""
12065 __setitem__(GROUPS self, PySliceObject * slice, GROUPS v)
12066 __setitem__(GROUPS self, PySliceObject * slice)
12067 __setitem__(GROUPS self, std::deque< PCB_GROUP * >::difference_type i, PCB_GROUP x)
12068 """
12069 return _pcbnew.GROUPS___setitem__(self, *args)
12070
12071 def pop(self):
12072 r"""pop(GROUPS self) -> PCB_GROUP"""
12073 return _pcbnew.GROUPS_pop(self)
12074
12075 def append(self, x):
12076 r"""append(GROUPS self, PCB_GROUP x)"""
12077 return _pcbnew.GROUPS_append(self, x)
12078
12079 def empty(self):
12080 r"""empty(GROUPS self) -> bool"""
12081 return _pcbnew.GROUPS_empty(self)
12082
12083 def size(self):
12084 r"""size(GROUPS self) -> std::deque< PCB_GROUP * >::size_type"""
12085 return _pcbnew.GROUPS_size(self)
12086
12087 def swap(self, v):
12088 r"""swap(GROUPS self, GROUPS v)"""
12089 return _pcbnew.GROUPS_swap(self, v)
12090
12091 def begin(self):
12092 r"""begin(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
12093 return _pcbnew.GROUPS_begin(self)
12094
12095 def end(self):
12096 r"""end(GROUPS self) -> std::deque< PCB_GROUP * >::iterator"""
12097 return _pcbnew.GROUPS_end(self)
12098
12099 def rbegin(self):
12100 r"""rbegin(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
12101 return _pcbnew.GROUPS_rbegin(self)
12102
12103 def rend(self):
12104 r"""rend(GROUPS self) -> std::deque< PCB_GROUP * >::reverse_iterator"""
12105 return _pcbnew.GROUPS_rend(self)
12106
12107 def clear(self):
12108 r"""clear(GROUPS self)"""
12109 return _pcbnew.GROUPS_clear(self)
12110
12111 def get_allocator(self):
12112 r"""get_allocator(GROUPS self) -> std::deque< PCB_GROUP * >::allocator_type"""
12113 return _pcbnew.GROUPS_get_allocator(self)
12114
12115 def pop_back(self):
12116 r"""pop_back(GROUPS self)"""
12117 return _pcbnew.GROUPS_pop_back(self)
12118
12119 def erase(self, *args):
12120 r"""
12121 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator pos) -> std::deque< PCB_GROUP * >::iterator
12122 erase(GROUPS self, std::deque< PCB_GROUP * >::iterator first, std::deque< PCB_GROUP * >::iterator last) -> std::deque< PCB_GROUP * >::iterator
12123 """
12124 return _pcbnew.GROUPS_erase(self, *args)
12125
12126 def __init__(self, *args):
12127 r"""
12128 __init__(GROUPS self) -> GROUPS
12129 __init__(GROUPS self, GROUPS other) -> GROUPS
12130 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size) -> GROUPS
12131 __init__(GROUPS self, std::deque< PCB_GROUP * >::size_type size, PCB_GROUP value) -> GROUPS
12132 """
12133 _pcbnew.GROUPS_swiginit(self, _pcbnew.new_GROUPS(*args))
12134
12135 def push_back(self, x):
12136 r"""push_back(GROUPS self, PCB_GROUP x)"""
12137 return _pcbnew.GROUPS_push_back(self, x)
12138
12139 def front(self):
12140 r"""front(GROUPS self) -> PCB_GROUP"""
12141 return _pcbnew.GROUPS_front(self)
12142
12143 def back(self):
12144 r"""back(GROUPS self) -> PCB_GROUP"""
12145 return _pcbnew.GROUPS_back(self)
12146
12147 def assign(self, n, x):
12148 r"""assign(GROUPS self, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)"""
12149 return _pcbnew.GROUPS_assign(self, n, x)
12150
12151 def resize(self, *args):
12152 r"""
12153 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size)
12154 resize(GROUPS self, std::deque< PCB_GROUP * >::size_type new_size, PCB_GROUP x)
12155 """
12156 return _pcbnew.GROUPS_resize(self, *args)
12157
12158 def insert(self, *args):
12159 r"""
12160 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, PCB_GROUP x) -> std::deque< PCB_GROUP * >::iterator
12161 insert(GROUPS self, std::deque< PCB_GROUP * >::iterator pos, std::deque< PCB_GROUP * >::size_type n, PCB_GROUP x)
12162 """
12163 return _pcbnew.GROUPS_insert(self, *args)
12164
12165 def pop_front(self):
12166 r"""pop_front(GROUPS self)"""
12167 return _pcbnew.GROUPS_pop_front(self)
12168
12169 def push_front(self, x):
12170 r"""push_front(GROUPS self, PCB_GROUP x)"""
12171 return _pcbnew.GROUPS_push_front(self, x)
12172 __swig_destroy__ = _pcbnew.delete_GROUPS
12173
12174# Register GROUPS in _pcbnew:
12175_pcbnew.GROUPS_swigregister(GROUPS)
12176
12178 r"""Proxy of C++ std::deque< PCB_GENERATOR * > class."""
12179
12180 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12181 __repr__ = _swig_repr
12182
12183 def iterator(self):
12184 r"""iterator(GENERATORS self) -> SwigPyIterator"""
12185 return _pcbnew.GENERATORS_iterator(self)
12186 def __iter__(self):
12187 return self.iterator()
12188
12189 def __nonzero__(self):
12190 r"""__nonzero__(GENERATORS self) -> bool"""
12191 return _pcbnew.GENERATORS___nonzero__(self)
12192
12193 def __bool__(self):
12194 r"""__bool__(GENERATORS self) -> bool"""
12195 return _pcbnew.GENERATORS___bool__(self)
12196
12197 def __len__(self):
12198 r"""__len__(GENERATORS self) -> std::deque< PCB_GENERATOR * >::size_type"""
12199 return _pcbnew.GENERATORS___len__(self)
12200
12201 def __getslice__(self, i, j):
12202 r"""__getslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j) -> GENERATORS"""
12203 return _pcbnew.GENERATORS___getslice__(self, i, j)
12204
12205 def __setslice__(self, *args):
12206 r"""
12207 __setslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j)
12208 __setslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j, GENERATORS v)
12209 """
12210 return _pcbnew.GENERATORS___setslice__(self, *args)
12211
12212 def __delslice__(self, i, j):
12213 r"""__delslice__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::difference_type j)"""
12214 return _pcbnew.GENERATORS___delslice__(self, i, j)
12215
12216 def __delitem__(self, *args):
12217 r"""
12218 __delitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i)
12219 __delitem__(GENERATORS self, PySliceObject * slice)
12220 """
12221 return _pcbnew.GENERATORS___delitem__(self, *args)
12222
12223 def __getitem__(self, *args):
12224 r"""
12225 __getitem__(GENERATORS self, PySliceObject * slice) -> GENERATORS
12226 __getitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i) -> std::deque< PCB_GENERATOR * >::value_type
12227 """
12228 return _pcbnew.GENERATORS___getitem__(self, *args)
12229
12230 def __setitem__(self, *args):
12231 r"""
12232 __setitem__(GENERATORS self, PySliceObject * slice, GENERATORS v)
12233 __setitem__(GENERATORS self, PySliceObject * slice)
12234 __setitem__(GENERATORS self, std::deque< PCB_GENERATOR * >::difference_type i, std::deque< PCB_GENERATOR * >::value_type x)
12235 """
12236 return _pcbnew.GENERATORS___setitem__(self, *args)
12237
12238 def pop(self):
12239 r"""pop(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12240 return _pcbnew.GENERATORS_pop(self)
12241
12242 def append(self, x):
12243 r"""append(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12244 return _pcbnew.GENERATORS_append(self, x)
12245
12246 def empty(self):
12247 r"""empty(GENERATORS self) -> bool"""
12248 return _pcbnew.GENERATORS_empty(self)
12249
12250 def size(self):
12251 r"""size(GENERATORS self) -> std::deque< PCB_GENERATOR * >::size_type"""
12252 return _pcbnew.GENERATORS_size(self)
12253
12254 def swap(self, v):
12255 r"""swap(GENERATORS self, GENERATORS v)"""
12256 return _pcbnew.GENERATORS_swap(self, v)
12257
12258 def begin(self):
12259 r"""begin(GENERATORS self) -> std::deque< PCB_GENERATOR * >::iterator"""
12260 return _pcbnew.GENERATORS_begin(self)
12261
12262 def end(self):
12263 r"""end(GENERATORS self) -> std::deque< PCB_GENERATOR * >::iterator"""
12264 return _pcbnew.GENERATORS_end(self)
12265
12266 def rbegin(self):
12267 r"""rbegin(GENERATORS self) -> std::deque< PCB_GENERATOR * >::reverse_iterator"""
12268 return _pcbnew.GENERATORS_rbegin(self)
12269
12270 def rend(self):
12271 r"""rend(GENERATORS self) -> std::deque< PCB_GENERATOR * >::reverse_iterator"""
12272 return _pcbnew.GENERATORS_rend(self)
12273
12274 def clear(self):
12275 r"""clear(GENERATORS self)"""
12276 return _pcbnew.GENERATORS_clear(self)
12277
12278 def get_allocator(self):
12279 r"""get_allocator(GENERATORS self) -> std::deque< PCB_GENERATOR * >::allocator_type"""
12280 return _pcbnew.GENERATORS_get_allocator(self)
12281
12282 def pop_back(self):
12283 r"""pop_back(GENERATORS self)"""
12284 return _pcbnew.GENERATORS_pop_back(self)
12285
12286 def erase(self, *args):
12287 r"""
12288 erase(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos) -> std::deque< PCB_GENERATOR * >::iterator
12289 erase(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator first, std::deque< PCB_GENERATOR * >::iterator last) -> std::deque< PCB_GENERATOR * >::iterator
12290 """
12291 return _pcbnew.GENERATORS_erase(self, *args)
12292
12293 def __init__(self, *args):
12294 r"""
12295 __init__(GENERATORS self) -> GENERATORS
12296 __init__(GENERATORS self, GENERATORS other) -> GENERATORS
12297 __init__(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type size) -> GENERATORS
12298 __init__(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type size, std::deque< PCB_GENERATOR * >::value_type value) -> GENERATORS
12299 """
12300 _pcbnew.GENERATORS_swiginit(self, _pcbnew.new_GENERATORS(*args))
12301
12302 def push_back(self, x):
12303 r"""push_back(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12304 return _pcbnew.GENERATORS_push_back(self, x)
12305
12306 def front(self):
12307 r"""front(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12308 return _pcbnew.GENERATORS_front(self)
12309
12310 def back(self):
12311 r"""back(GENERATORS self) -> std::deque< PCB_GENERATOR * >::value_type"""
12312 return _pcbnew.GENERATORS_back(self)
12313
12314 def assign(self, n, x):
12315 r"""assign(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type n, std::deque< PCB_GENERATOR * >::value_type x)"""
12316 return _pcbnew.GENERATORS_assign(self, n, x)
12317
12318 def resize(self, *args):
12319 r"""
12320 resize(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type new_size)
12321 resize(GENERATORS self, std::deque< PCB_GENERATOR * >::size_type new_size, std::deque< PCB_GENERATOR * >::value_type x)
12322 """
12323 return _pcbnew.GENERATORS_resize(self, *args)
12324
12325 def insert(self, *args):
12326 r"""
12327 insert(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos, std::deque< PCB_GENERATOR * >::value_type x) -> std::deque< PCB_GENERATOR * >::iterator
12328 insert(GENERATORS self, std::deque< PCB_GENERATOR * >::iterator pos, std::deque< PCB_GENERATOR * >::size_type n, std::deque< PCB_GENERATOR * >::value_type x)
12329 """
12330 return _pcbnew.GENERATORS_insert(self, *args)
12331
12332 def pop_front(self):
12333 r"""pop_front(GENERATORS self)"""
12334 return _pcbnew.GENERATORS_pop_front(self)
12335
12336 def push_front(self, x):
12337 r"""push_front(GENERATORS self, std::deque< PCB_GENERATOR * >::value_type x)"""
12338 return _pcbnew.GENERATORS_push_front(self, x)
12339 __swig_destroy__ = _pcbnew.delete_GENERATORS
12340
12341# Register GENERATORS in _pcbnew:
12342_pcbnew.GENERATORS_swigregister(GENERATORS)
12343
12345 r"""Proxy of C++ std::deque< BOARD_ITEM * > class."""
12346
12347 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12348 __repr__ = _swig_repr
12349
12350 def iterator(self):
12351 r"""iterator(DRAWINGS self) -> SwigPyIterator"""
12352 return _pcbnew.DRAWINGS_iterator(self)
12353 def __iter__(self):
12354 return self.iterator()
12355
12356 def __nonzero__(self):
12357 r"""__nonzero__(DRAWINGS self) -> bool"""
12358 return _pcbnew.DRAWINGS___nonzero__(self)
12359
12360 def __bool__(self):
12361 r"""__bool__(DRAWINGS self) -> bool"""
12362 return _pcbnew.DRAWINGS___bool__(self)
12363
12364 def __len__(self):
12365 r"""__len__(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
12366 return _pcbnew.DRAWINGS___len__(self)
12367
12368 def __getslice__(self, i, j):
12369 r"""__getslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j) -> DRAWINGS"""
12370 return _pcbnew.DRAWINGS___getslice__(self, i, j)
12371
12372 def __setslice__(self, *args):
12373 r"""
12374 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)
12375 __setslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j, DRAWINGS v)
12376 """
12377 return _pcbnew.DRAWINGS___setslice__(self, *args)
12378
12379 def __delslice__(self, i, j):
12380 r"""__delslice__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, std::deque< BOARD_ITEM * >::difference_type j)"""
12381 return _pcbnew.DRAWINGS___delslice__(self, i, j)
12382
12383 def __delitem__(self, *args):
12384 r"""
12385 __delitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i)
12386 __delitem__(DRAWINGS self, PySliceObject * slice)
12387 """
12388 return _pcbnew.DRAWINGS___delitem__(self, *args)
12389
12390 def __getitem__(self, *args):
12391 r"""
12392 __getitem__(DRAWINGS self, PySliceObject * slice) -> DRAWINGS
12393 __getitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i) -> BOARD_ITEM
12394 """
12395 return _pcbnew.DRAWINGS___getitem__(self, *args)
12396
12397 def __setitem__(self, *args):
12398 r"""
12399 __setitem__(DRAWINGS self, PySliceObject * slice, DRAWINGS v)
12400 __setitem__(DRAWINGS self, PySliceObject * slice)
12401 __setitem__(DRAWINGS self, std::deque< BOARD_ITEM * >::difference_type i, BOARD_ITEM x)
12402 """
12403 return _pcbnew.DRAWINGS___setitem__(self, *args)
12404
12405 def pop(self):
12406 r"""pop(DRAWINGS self) -> BOARD_ITEM"""
12407 return _pcbnew.DRAWINGS_pop(self)
12408
12409 def append(self, x):
12410 r"""append(DRAWINGS self, BOARD_ITEM x)"""
12411 return _pcbnew.DRAWINGS_append(self, x)
12412
12413 def empty(self):
12414 r"""empty(DRAWINGS self) -> bool"""
12415 return _pcbnew.DRAWINGS_empty(self)
12416
12417 def size(self):
12418 r"""size(DRAWINGS self) -> std::deque< BOARD_ITEM * >::size_type"""
12419 return _pcbnew.DRAWINGS_size(self)
12420
12421 def swap(self, v):
12422 r"""swap(DRAWINGS self, DRAWINGS v)"""
12423 return _pcbnew.DRAWINGS_swap(self, v)
12424
12425 def begin(self):
12426 r"""begin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
12427 return _pcbnew.DRAWINGS_begin(self)
12428
12429 def end(self):
12430 r"""end(DRAWINGS self) -> std::deque< BOARD_ITEM * >::iterator"""
12431 return _pcbnew.DRAWINGS_end(self)
12432
12433 def rbegin(self):
12434 r"""rbegin(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
12435 return _pcbnew.DRAWINGS_rbegin(self)
12436
12437 def rend(self):
12438 r"""rend(DRAWINGS self) -> std::deque< BOARD_ITEM * >::reverse_iterator"""
12439 return _pcbnew.DRAWINGS_rend(self)
12440
12441 def clear(self):
12442 r"""clear(DRAWINGS self)"""
12443 return _pcbnew.DRAWINGS_clear(self)
12444
12445 def get_allocator(self):
12446 r"""get_allocator(DRAWINGS self) -> std::deque< BOARD_ITEM * >::allocator_type"""
12447 return _pcbnew.DRAWINGS_get_allocator(self)
12448
12449 def pop_back(self):
12450 r"""pop_back(DRAWINGS self)"""
12451 return _pcbnew.DRAWINGS_pop_back(self)
12452
12453 def erase(self, *args):
12454 r"""
12455 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos) -> std::deque< BOARD_ITEM * >::iterator
12456 erase(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator first, std::deque< BOARD_ITEM * >::iterator last) -> std::deque< BOARD_ITEM * >::iterator
12457 """
12458 return _pcbnew.DRAWINGS_erase(self, *args)
12459
12460 def __init__(self, *args):
12461 r"""
12462 __init__(DRAWINGS self) -> DRAWINGS
12463 __init__(DRAWINGS self, DRAWINGS other) -> DRAWINGS
12464 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size) -> DRAWINGS
12465 __init__(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type size, BOARD_ITEM value) -> DRAWINGS
12466 """
12467 _pcbnew.DRAWINGS_swiginit(self, _pcbnew.new_DRAWINGS(*args))
12468
12469 def push_back(self, x):
12470 r"""push_back(DRAWINGS self, BOARD_ITEM x)"""
12471 return _pcbnew.DRAWINGS_push_back(self, x)
12472
12473 def front(self):
12474 r"""front(DRAWINGS self) -> BOARD_ITEM"""
12475 return _pcbnew.DRAWINGS_front(self)
12476
12477 def back(self):
12478 r"""back(DRAWINGS self) -> BOARD_ITEM"""
12479 return _pcbnew.DRAWINGS_back(self)
12480
12481 def assign(self, n, x):
12482 r"""assign(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)"""
12483 return _pcbnew.DRAWINGS_assign(self, n, x)
12484
12485 def resize(self, *args):
12486 r"""
12487 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size)
12488 resize(DRAWINGS self, std::deque< BOARD_ITEM * >::size_type new_size, BOARD_ITEM x)
12489 """
12490 return _pcbnew.DRAWINGS_resize(self, *args)
12491
12492 def insert(self, *args):
12493 r"""
12494 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, BOARD_ITEM x) -> std::deque< BOARD_ITEM * >::iterator
12495 insert(DRAWINGS self, std::deque< BOARD_ITEM * >::iterator pos, std::deque< BOARD_ITEM * >::size_type n, BOARD_ITEM x)
12496 """
12497 return _pcbnew.DRAWINGS_insert(self, *args)
12498
12499 def pop_front(self):
12500 r"""pop_front(DRAWINGS self)"""
12501 return _pcbnew.DRAWINGS_pop_front(self)
12502
12503 def push_front(self, x):
12504 r"""push_front(DRAWINGS self, BOARD_ITEM x)"""
12505 return _pcbnew.DRAWINGS_push_front(self, x)
12506
12507 def __iter__(self):
12508 it = self.iterator()
12509 try:
12510 while True:
12511 item = it.next() # throws StopIteration when iterator reached the end.
12512 yield item.Cast()
12513 except StopIteration:
12514 return
12515
12516 __swig_destroy__ = _pcbnew.delete_DRAWINGS
12517
12518# Register DRAWINGS in _pcbnew:
12519_pcbnew.DRAWINGS_swigregister(DRAWINGS)
12520
12522 r"""Proxy of C++ std::deque< PAD * > class."""
12523
12524 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12525 __repr__ = _swig_repr
12526
12527 def iterator(self):
12528 r"""iterator(PADS self) -> SwigPyIterator"""
12529 return _pcbnew.PADS_iterator(self)
12530 def __iter__(self):
12531 return self.iterator()
12532
12533 def __nonzero__(self):
12534 r"""__nonzero__(PADS self) -> bool"""
12535 return _pcbnew.PADS___nonzero__(self)
12536
12537 def __bool__(self):
12538 r"""__bool__(PADS self) -> bool"""
12539 return _pcbnew.PADS___bool__(self)
12540
12541 def __len__(self):
12542 r"""__len__(PADS self) -> std::deque< PAD * >::size_type"""
12543 return _pcbnew.PADS___len__(self)
12544
12545 def __getslice__(self, i, j):
12546 r"""__getslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j) -> PADS"""
12547 return _pcbnew.PADS___getslice__(self, i, j)
12548
12549 def __setslice__(self, *args):
12550 r"""
12551 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)
12552 __setslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j, PADS v)
12553 """
12554 return _pcbnew.PADS___setslice__(self, *args)
12555
12556 def __delslice__(self, i, j):
12557 r"""__delslice__(PADS self, std::deque< PAD * >::difference_type i, std::deque< PAD * >::difference_type j)"""
12558 return _pcbnew.PADS___delslice__(self, i, j)
12559
12560 def __delitem__(self, *args):
12561 r"""
12562 __delitem__(PADS self, std::deque< PAD * >::difference_type i)
12563 __delitem__(PADS self, PySliceObject * slice)
12564 """
12565 return _pcbnew.PADS___delitem__(self, *args)
12566
12567 def __getitem__(self, *args):
12568 r"""
12569 __getitem__(PADS self, PySliceObject * slice) -> PADS
12570 __getitem__(PADS self, std::deque< PAD * >::difference_type i) -> PAD
12571 """
12572 return _pcbnew.PADS___getitem__(self, *args)
12573
12574 def __setitem__(self, *args):
12575 r"""
12576 __setitem__(PADS self, PySliceObject * slice, PADS v)
12577 __setitem__(PADS self, PySliceObject * slice)
12578 __setitem__(PADS self, std::deque< PAD * >::difference_type i, PAD x)
12579 """
12580 return _pcbnew.PADS___setitem__(self, *args)
12581
12582 def pop(self):
12583 r"""pop(PADS self) -> PAD"""
12584 return _pcbnew.PADS_pop(self)
12585
12586 def append(self, x):
12587 r"""append(PADS self, PAD x)"""
12588 return _pcbnew.PADS_append(self, x)
12589
12590 def empty(self):
12591 r"""empty(PADS self) -> bool"""
12592 return _pcbnew.PADS_empty(self)
12593
12594 def size(self):
12595 r"""size(PADS self) -> std::deque< PAD * >::size_type"""
12596 return _pcbnew.PADS_size(self)
12597
12598 def swap(self, v):
12599 r"""swap(PADS self, PADS v)"""
12600 return _pcbnew.PADS_swap(self, v)
12601
12602 def begin(self):
12603 r"""begin(PADS self) -> std::deque< PAD * >::iterator"""
12604 return _pcbnew.PADS_begin(self)
12605
12606 def end(self):
12607 r"""end(PADS self) -> std::deque< PAD * >::iterator"""
12608 return _pcbnew.PADS_end(self)
12609
12610 def rbegin(self):
12611 r"""rbegin(PADS self) -> std::deque< PAD * >::reverse_iterator"""
12612 return _pcbnew.PADS_rbegin(self)
12613
12614 def rend(self):
12615 r"""rend(PADS self) -> std::deque< PAD * >::reverse_iterator"""
12616 return _pcbnew.PADS_rend(self)
12617
12618 def clear(self):
12619 r"""clear(PADS self)"""
12620 return _pcbnew.PADS_clear(self)
12621
12622 def get_allocator(self):
12623 r"""get_allocator(PADS self) -> std::deque< PAD * >::allocator_type"""
12624 return _pcbnew.PADS_get_allocator(self)
12625
12626 def pop_back(self):
12627 r"""pop_back(PADS self)"""
12628 return _pcbnew.PADS_pop_back(self)
12629
12630 def erase(self, *args):
12631 r"""
12632 erase(PADS self, std::deque< PAD * >::iterator pos) -> std::deque< PAD * >::iterator
12633 erase(PADS self, std::deque< PAD * >::iterator first, std::deque< PAD * >::iterator last) -> std::deque< PAD * >::iterator
12634 """
12635 return _pcbnew.PADS_erase(self, *args)
12636
12637 def __init__(self, *args):
12638 r"""
12639 __init__(PADS self) -> PADS
12640 __init__(PADS self, PADS other) -> PADS
12641 __init__(PADS self, std::deque< PAD * >::size_type size) -> PADS
12642 __init__(PADS self, std::deque< PAD * >::size_type size, PAD value) -> PADS
12643 """
12644 _pcbnew.PADS_swiginit(self, _pcbnew.new_PADS(*args))
12645
12646 def push_back(self, x):
12647 r"""push_back(PADS self, PAD x)"""
12648 return _pcbnew.PADS_push_back(self, x)
12649
12650 def front(self):
12651 r"""front(PADS self) -> PAD"""
12652 return _pcbnew.PADS_front(self)
12653
12654 def back(self):
12655 r"""back(PADS self) -> PAD"""
12656 return _pcbnew.PADS_back(self)
12657
12658 def assign(self, n, x):
12659 r"""assign(PADS self, std::deque< PAD * >::size_type n, PAD x)"""
12660 return _pcbnew.PADS_assign(self, n, x)
12661
12662 def resize(self, *args):
12663 r"""
12664 resize(PADS self, std::deque< PAD * >::size_type new_size)
12665 resize(PADS self, std::deque< PAD * >::size_type new_size, PAD x)
12666 """
12667 return _pcbnew.PADS_resize(self, *args)
12668
12669 def insert(self, *args):
12670 r"""
12671 insert(PADS self, std::deque< PAD * >::iterator pos, PAD x) -> std::deque< PAD * >::iterator
12672 insert(PADS self, std::deque< PAD * >::iterator pos, std::deque< PAD * >::size_type n, PAD x)
12673 """
12674 return _pcbnew.PADS_insert(self, *args)
12675
12676 def pop_front(self):
12677 r"""pop_front(PADS self)"""
12678 return _pcbnew.PADS_pop_front(self)
12679
12680 def push_front(self, x):
12681 r"""push_front(PADS self, PAD x)"""
12682 return _pcbnew.PADS_push_front(self, x)
12683 __swig_destroy__ = _pcbnew.delete_PADS
12684
12685# Register PADS in _pcbnew:
12686_pcbnew.PADS_swigregister(PADS)
12687
12689 r"""Proxy of C++ std::deque< PCB_FIELD * > class."""
12690
12691 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12692 __repr__ = _swig_repr
12693
12694 def iterator(self):
12695 r"""iterator(PCB_FIELDS self) -> SwigPyIterator"""
12696 return _pcbnew.PCB_FIELDS_iterator(self)
12697 def __iter__(self):
12698 return self.iterator()
12699
12700 def __nonzero__(self):
12701 r"""__nonzero__(PCB_FIELDS self) -> bool"""
12702 return _pcbnew.PCB_FIELDS___nonzero__(self)
12703
12704 def __bool__(self):
12705 r"""__bool__(PCB_FIELDS self) -> bool"""
12706 return _pcbnew.PCB_FIELDS___bool__(self)
12707
12708 def __len__(self):
12709 r"""__len__(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::size_type"""
12710 return _pcbnew.PCB_FIELDS___len__(self)
12711
12712 def __getslice__(self, i, j):
12713 r"""__getslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j) -> PCB_FIELDS"""
12714 return _pcbnew.PCB_FIELDS___getslice__(self, i, j)
12715
12716 def __setslice__(self, *args):
12717 r"""
12718 __setslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j)
12719 __setslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j, PCB_FIELDS v)
12720 """
12721 return _pcbnew.PCB_FIELDS___setslice__(self, *args)
12722
12723 def __delslice__(self, i, j):
12724 r"""__delslice__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, std::deque< PCB_FIELD * >::difference_type j)"""
12725 return _pcbnew.PCB_FIELDS___delslice__(self, i, j)
12726
12727 def __delitem__(self, *args):
12728 r"""
12729 __delitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i)
12730 __delitem__(PCB_FIELDS self, PySliceObject * slice)
12731 """
12732 return _pcbnew.PCB_FIELDS___delitem__(self, *args)
12733
12734 def __getitem__(self, *args):
12735 r"""
12736 __getitem__(PCB_FIELDS self, PySliceObject * slice) -> PCB_FIELDS
12737 __getitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i) -> PCB_FIELD
12738 """
12739 return _pcbnew.PCB_FIELDS___getitem__(self, *args)
12740
12741 def __setitem__(self, *args):
12742 r"""
12743 __setitem__(PCB_FIELDS self, PySliceObject * slice, PCB_FIELDS v)
12744 __setitem__(PCB_FIELDS self, PySliceObject * slice)
12745 __setitem__(PCB_FIELDS self, std::deque< PCB_FIELD * >::difference_type i, PCB_FIELD x)
12746 """
12747 return _pcbnew.PCB_FIELDS___setitem__(self, *args)
12748
12749 def pop(self):
12750 r"""pop(PCB_FIELDS self) -> PCB_FIELD"""
12751 return _pcbnew.PCB_FIELDS_pop(self)
12752
12753 def append(self, x):
12754 r"""append(PCB_FIELDS self, PCB_FIELD x)"""
12755 return _pcbnew.PCB_FIELDS_append(self, x)
12756
12757 def empty(self):
12758 r"""empty(PCB_FIELDS self) -> bool"""
12759 return _pcbnew.PCB_FIELDS_empty(self)
12760
12761 def size(self):
12762 r"""size(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::size_type"""
12763 return _pcbnew.PCB_FIELDS_size(self)
12764
12765 def swap(self, v):
12766 r"""swap(PCB_FIELDS self, PCB_FIELDS v)"""
12767 return _pcbnew.PCB_FIELDS_swap(self, v)
12768
12769 def begin(self):
12770 r"""begin(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::iterator"""
12771 return _pcbnew.PCB_FIELDS_begin(self)
12772
12773 def end(self):
12774 r"""end(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::iterator"""
12775 return _pcbnew.PCB_FIELDS_end(self)
12776
12777 def rbegin(self):
12778 r"""rbegin(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::reverse_iterator"""
12779 return _pcbnew.PCB_FIELDS_rbegin(self)
12780
12781 def rend(self):
12782 r"""rend(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::reverse_iterator"""
12783 return _pcbnew.PCB_FIELDS_rend(self)
12784
12785 def clear(self):
12786 r"""clear(PCB_FIELDS self)"""
12787 return _pcbnew.PCB_FIELDS_clear(self)
12788
12789 def get_allocator(self):
12790 r"""get_allocator(PCB_FIELDS self) -> std::deque< PCB_FIELD * >::allocator_type"""
12791 return _pcbnew.PCB_FIELDS_get_allocator(self)
12792
12793 def pop_back(self):
12794 r"""pop_back(PCB_FIELDS self)"""
12795 return _pcbnew.PCB_FIELDS_pop_back(self)
12796
12797 def erase(self, *args):
12798 r"""
12799 erase(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos) -> std::deque< PCB_FIELD * >::iterator
12800 erase(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator first, std::deque< PCB_FIELD * >::iterator last) -> std::deque< PCB_FIELD * >::iterator
12801 """
12802 return _pcbnew.PCB_FIELDS_erase(self, *args)
12803
12804 def __init__(self, *args):
12805 r"""
12806 __init__(PCB_FIELDS self) -> PCB_FIELDS
12807 __init__(PCB_FIELDS self, PCB_FIELDS other) -> PCB_FIELDS
12808 __init__(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type size) -> PCB_FIELDS
12809 __init__(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type size, PCB_FIELD value) -> PCB_FIELDS
12810 """
12811 _pcbnew.PCB_FIELDS_swiginit(self, _pcbnew.new_PCB_FIELDS(*args))
12812
12813 def push_back(self, x):
12814 r"""push_back(PCB_FIELDS self, PCB_FIELD x)"""
12815 return _pcbnew.PCB_FIELDS_push_back(self, x)
12816
12817 def front(self):
12818 r"""front(PCB_FIELDS self) -> PCB_FIELD"""
12819 return _pcbnew.PCB_FIELDS_front(self)
12820
12821 def back(self):
12822 r"""back(PCB_FIELDS self) -> PCB_FIELD"""
12823 return _pcbnew.PCB_FIELDS_back(self)
12824
12825 def assign(self, n, x):
12826 r"""assign(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type n, PCB_FIELD x)"""
12827 return _pcbnew.PCB_FIELDS_assign(self, n, x)
12828
12829 def resize(self, *args):
12830 r"""
12831 resize(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type new_size)
12832 resize(PCB_FIELDS self, std::deque< PCB_FIELD * >::size_type new_size, PCB_FIELD x)
12833 """
12834 return _pcbnew.PCB_FIELDS_resize(self, *args)
12835
12836 def insert(self, *args):
12837 r"""
12838 insert(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos, PCB_FIELD x) -> std::deque< PCB_FIELD * >::iterator
12839 insert(PCB_FIELDS self, std::deque< PCB_FIELD * >::iterator pos, std::deque< PCB_FIELD * >::size_type n, PCB_FIELD x)
12840 """
12841 return _pcbnew.PCB_FIELDS_insert(self, *args)
12842
12843 def pop_front(self):
12844 r"""pop_front(PCB_FIELDS self)"""
12845 return _pcbnew.PCB_FIELDS_pop_front(self)
12846
12847 def push_front(self, x):
12848 r"""push_front(PCB_FIELDS self, PCB_FIELD x)"""
12849 return _pcbnew.PCB_FIELDS_push_front(self, x)
12850 __swig_destroy__ = _pcbnew.delete_PCB_FIELDS
12851
12852# Register PCB_FIELDS in _pcbnew:
12853_pcbnew.PCB_FIELDS_swigregister(PCB_FIELDS)
12854
12855PAD_SHAPE_CIRCLE = _pcbnew.PAD_SHAPE_CIRCLE
12856
12857PAD_SHAPE_RECTANGLE = _pcbnew.PAD_SHAPE_RECTANGLE
12858
12859PAD_SHAPE_OVAL = _pcbnew.PAD_SHAPE_OVAL
12860
12861PAD_SHAPE_TRAPEZOID = _pcbnew.PAD_SHAPE_TRAPEZOID
12862
12863PAD_SHAPE_ROUNDRECT = _pcbnew.PAD_SHAPE_ROUNDRECT
12864
12865PAD_SHAPE_CHAMFERED_RECT = _pcbnew.PAD_SHAPE_CHAMFERED_RECT
12866
12867PAD_SHAPE_CUSTOM = _pcbnew.PAD_SHAPE_CUSTOM
12868
12869
12871 r"""PAD_SHAPE_T_asString(PAD_SHAPE a) -> string"""
12872 return _pcbnew.PAD_SHAPE_T_asString(a)
12873PAD_DRILL_SHAPE_CIRCLE = _pcbnew.PAD_DRILL_SHAPE_CIRCLE
12874
12875PAD_DRILL_SHAPE_OBLONG = _pcbnew.PAD_DRILL_SHAPE_OBLONG
12876
12877PAD_ATTRIB_PTH = _pcbnew.PAD_ATTRIB_PTH
12878
12879PAD_ATTRIB_SMD = _pcbnew.PAD_ATTRIB_SMD
12880
12881PAD_ATTRIB_CONN = _pcbnew.PAD_ATTRIB_CONN
12882
12883PAD_ATTRIB_NPTH = _pcbnew.PAD_ATTRIB_NPTH
12884
12885PAD_PROP_NONE = _pcbnew.PAD_PROP_NONE
12886
12887PAD_PROP_BGA = _pcbnew.PAD_PROP_BGA
12888
12889PAD_PROP_FIDUCIAL_GLBL = _pcbnew.PAD_PROP_FIDUCIAL_GLBL
12890
12891PAD_PROP_FIDUCIAL_LOCAL = _pcbnew.PAD_PROP_FIDUCIAL_LOCAL
12892
12893PAD_PROP_TESTPOINT = _pcbnew.PAD_PROP_TESTPOINT
12894
12895PAD_PROP_HEATSINK = _pcbnew.PAD_PROP_HEATSINK
12896
12897PAD_PROP_CASTELLATED = _pcbnew.PAD_PROP_CASTELLATED
12898
12899CUST_PAD_SHAPE_IN_ZONE_OUTLINE = _pcbnew.CUST_PAD_SHAPE_IN_ZONE_OUTLINE
12900
12901CUST_PAD_SHAPE_IN_ZONE_CONVEXHULL = _pcbnew.CUST_PAD_SHAPE_IN_ZONE_CONVEXHULL
12902
12904 r"""Proxy of C++ PAD class."""
12905
12906 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12907 __repr__ = _swig_repr
12908
12909 def __init__(self, *args):
12910 r"""
12911 __init__(PAD self, FOOTPRINT parent) -> PAD
12912 __init__(PAD self, PAD aPad) -> PAD
12913 """
12914 _pcbnew.PAD_swiginit(self, _pcbnew.new_PAD(*args))
12915
12916 @staticmethod
12917 def PTHMask():
12918 r"""PTHMask() -> LSET"""
12919 return _pcbnew.PAD_PTHMask()
12920
12921 @staticmethod
12922 def SMDMask():
12923 r"""SMDMask() -> LSET"""
12924 return _pcbnew.PAD_SMDMask()
12925
12926 @staticmethod
12928 r"""ConnSMDMask() -> LSET"""
12929 return _pcbnew.PAD_ConnSMDMask()
12930
12931 @staticmethod
12933 r"""UnplatedHoleMask() -> LSET"""
12934 return _pcbnew.PAD_UnplatedHoleMask()
12935
12936 @staticmethod
12938 r"""ApertureMask() -> LSET"""
12939 return _pcbnew.PAD_ApertureMask()
12940
12941 @staticmethod
12942 def ClassOf(aItem):
12943 r"""ClassOf(EDA_ITEM aItem) -> bool"""
12944 return _pcbnew.PAD_ClassOf(aItem)
12945
12946 def ImportSettingsFrom(self, aMasterPad):
12947 r"""ImportSettingsFrom(PAD self, PAD aMasterPad)"""
12948 return _pcbnew.PAD_ImportSettingsFrom(self, aMasterPad)
12949
12950 def IsFlipped(self):
12951 r"""IsFlipped(PAD self) -> bool"""
12952 return _pcbnew.PAD_IsFlipped(self)
12953
12954 def SetNumber(self, aNumber):
12955 r"""SetNumber(PAD self, wxString aNumber)"""
12956 return _pcbnew.PAD_SetNumber(self, aNumber)
12957
12958 def GetNumber(self):
12959 r"""GetNumber(PAD self) -> wxString"""
12960 return _pcbnew.PAD_GetNumber(self)
12961
12962 def CanHaveNumber(self):
12963 r"""CanHaveNumber(PAD self) -> bool"""
12964 return _pcbnew.PAD_CanHaveNumber(self)
12965
12966 def SetPinFunction(self, aName):
12967 r"""SetPinFunction(PAD self, wxString aName)"""
12968 return _pcbnew.PAD_SetPinFunction(self, aName)
12969
12971 r"""GetPinFunction(PAD self) -> wxString"""
12972 return _pcbnew.PAD_GetPinFunction(self)
12973
12974 def SetPinType(self, aType):
12975 r"""SetPinType(PAD self, wxString aType)"""
12976 return _pcbnew.PAD_SetPinType(self, aType)
12977
12978 def GetPinType(self):
12979 r"""GetPinType(PAD self) -> wxString"""
12980 return _pcbnew.PAD_GetPinType(self)
12981
12982 def SameLogicalPadAs(self, aOther):
12983 r"""SameLogicalPadAs(PAD self, PAD aOther) -> bool"""
12984 return _pcbnew.PAD_SameLogicalPadAs(self, aOther)
12985
12986 def SharesNetTieGroup(self, aOther):
12987 r"""SharesNetTieGroup(PAD self, PAD aOther) -> bool"""
12988 return _pcbnew.PAD_SharesNetTieGroup(self, aOther)
12989
12991 r"""IsNoConnectPad(PAD self) -> bool"""
12992 return _pcbnew.PAD_IsNoConnectPad(self)
12993
12994 def IsFreePad(self):
12995 r"""IsFreePad(PAD self) -> bool"""
12996 return _pcbnew.PAD_IsFreePad(self)
12997
12998 def SetShape(self, aShape):
12999 r"""SetShape(PAD self, PAD_SHAPE aShape)"""
13000 return _pcbnew.PAD_SetShape(self, aShape)
13001
13002 def GetShape(self):
13003 r"""GetShape(PAD self) -> PAD_SHAPE"""
13004 return _pcbnew.PAD_GetShape(self)
13005
13007 r"""GetAnchorPadShape(PAD self) -> PAD_SHAPE"""
13008 return _pcbnew.PAD_GetAnchorPadShape(self)
13009
13011 r"""GetCustomShapeInZoneOpt(PAD self) -> CUST_PAD_SHAPE_IN_ZONE"""
13012 return _pcbnew.PAD_GetCustomShapeInZoneOpt(self)
13013
13014 def SetCustomShapeInZoneOpt(self, aOption):
13015 r"""SetCustomShapeInZoneOpt(PAD self, CUST_PAD_SHAPE_IN_ZONE aOption)"""
13016 return _pcbnew.PAD_SetCustomShapeInZoneOpt(self, aOption)
13017
13018 def SetAnchorPadShape(self, aShape):
13019 r"""SetAnchorPadShape(PAD self, PAD_SHAPE aShape)"""
13020 return _pcbnew.PAD_SetAnchorPadShape(self, aShape)
13021
13022 def SetY(self, y):
13023 r"""SetY(PAD self, int y)"""
13024 return _pcbnew.PAD_SetY(self, y)
13025
13026 def SetX(self, x):
13027 r"""SetX(PAD self, int x)"""
13028 return _pcbnew.PAD_SetX(self, x)
13029
13030 def SetSize(self, aSize):
13031 r"""SetSize(PAD self, VECTOR2I aSize)"""
13032 return _pcbnew.PAD_SetSize(self, aSize)
13033
13034 def GetSize(self):
13035 r"""GetSize(PAD self) -> VECTOR2I"""
13036 return _pcbnew.PAD_GetSize(self)
13037
13038 def SetSizeX(self, aX):
13039 r"""SetSizeX(PAD self, int const aX)"""
13040 return _pcbnew.PAD_SetSizeX(self, aX)
13041
13042 def GetSizeX(self):
13043 r"""GetSizeX(PAD self) -> int"""
13044 return _pcbnew.PAD_GetSizeX(self)
13045
13046 def SetSizeY(self, aY):
13047 r"""SetSizeY(PAD self, int const aY)"""
13048 return _pcbnew.PAD_SetSizeY(self, aY)
13049
13050 def GetSizeY(self):
13051 r"""GetSizeY(PAD self) -> int"""
13052 return _pcbnew.PAD_GetSizeY(self)
13053
13054 def SetDelta(self, aSize):
13055 r"""SetDelta(PAD self, VECTOR2I aSize)"""
13056 return _pcbnew.PAD_SetDelta(self, aSize)
13057
13058 def GetDelta(self):
13059 r"""GetDelta(PAD self) -> VECTOR2I"""
13060 return _pcbnew.PAD_GetDelta(self)
13061
13062 def SetDrillSize(self, aSize):
13063 r"""SetDrillSize(PAD self, VECTOR2I aSize)"""
13064 return _pcbnew.PAD_SetDrillSize(self, aSize)
13065
13066 def GetDrillSize(self):
13067 r"""GetDrillSize(PAD self) -> VECTOR2I"""
13068 return _pcbnew.PAD_GetDrillSize(self)
13069
13070 def SetDrillSizeX(self, aX):
13071 r"""SetDrillSizeX(PAD self, int const aX)"""
13072 return _pcbnew.PAD_SetDrillSizeX(self, aX)
13073
13074 def GetDrillSizeX(self):
13075 r"""GetDrillSizeX(PAD self) -> int"""
13076 return _pcbnew.PAD_GetDrillSizeX(self)
13077
13078 def SetDrillSizeY(self, aY):
13079 r"""SetDrillSizeY(PAD self, int const aY)"""
13080 return _pcbnew.PAD_SetDrillSizeY(self, aY)
13081
13082 def GetDrillSizeY(self):
13083 r"""GetDrillSizeY(PAD self) -> int"""
13084 return _pcbnew.PAD_GetDrillSizeY(self)
13085
13086 def SetOffset(self, aOffset):
13087 r"""SetOffset(PAD self, VECTOR2I aOffset)"""
13088 return _pcbnew.PAD_SetOffset(self, aOffset)
13089
13090 def GetOffset(self):
13091 r"""GetOffset(PAD self) -> VECTOR2I"""
13092 return _pcbnew.PAD_GetOffset(self)
13093
13094 def AddPrimitivePoly(self, *args):
13095 r"""
13096 AddPrimitivePoly(PAD self, SHAPE_POLY_SET aPoly, int aThickness, bool aFilled)
13097 AddPrimitivePoly(PAD self, VECTOR_VECTOR2I aPoly, int aThickness, bool aFilled)
13098 """
13099 return _pcbnew.PAD_AddPrimitivePoly(self, *args)
13100
13102 r"""MergePrimitivesAsPolygon(PAD self, SHAPE_POLY_SET aMergedPolygon, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
13103 return _pcbnew.PAD_MergePrimitivesAsPolygon(self, *args)
13104
13106 r"""DeletePrimitivesList(PAD self)"""
13107 return _pcbnew.PAD_DeletePrimitivesList(self)
13108
13109 def GetPrimitives(self):
13110 r"""GetPrimitives(PAD self) -> std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const &"""
13111 return _pcbnew.PAD_GetPrimitives(self)
13112
13113 def FlipPrimitives(self, aFlipLeftRight):
13114 r"""FlipPrimitives(PAD self, bool aFlipLeftRight)"""
13115 return _pcbnew.PAD_FlipPrimitives(self, aFlipLeftRight)
13116
13117 def ReplacePrimitives(self, aPrimitivesList):
13118 r"""ReplacePrimitives(PAD self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
13119 return _pcbnew.PAD_ReplacePrimitives(self, aPrimitivesList)
13120
13121 def AppendPrimitives(self, aPrimitivesList):
13122 r"""AppendPrimitives(PAD self, std::vector< std::shared_ptr< PCB_SHAPE >,std::allocator< std::shared_ptr< PCB_SHAPE > > > const & aPrimitivesList)"""
13123 return _pcbnew.PAD_AppendPrimitives(self, aPrimitivesList)
13124
13125 def AddPrimitiveShape(self, aPrimitive):
13126 r"""AddPrimitiveShape(PAD self, PCB_SHAPE aPrimitive)"""
13127 return _pcbnew.PAD_AddPrimitiveShape(self, aPrimitive)
13128
13129 def SetOrientation(self, aAngle):
13130 r"""SetOrientation(PAD self, EDA_ANGLE aAngle)"""
13131 return _pcbnew.PAD_SetOrientation(self, aAngle)
13132
13133 def SetFPRelativeOrientation(self, aAngle):
13134 r"""SetFPRelativeOrientation(PAD self, EDA_ANGLE aAngle)"""
13135 return _pcbnew.PAD_SetFPRelativeOrientation(self, aAngle)
13136
13138 r"""GetOrientation(PAD self) -> EDA_ANGLE"""
13139 return _pcbnew.PAD_GetOrientation(self)
13140
13142 r"""GetFPRelativeOrientation(PAD self) -> EDA_ANGLE"""
13143 return _pcbnew.PAD_GetFPRelativeOrientation(self)
13144
13145 def SetOrientationDegrees(self, aOrientation):
13146 r"""SetOrientationDegrees(PAD self, double aOrientation)"""
13147 return _pcbnew.PAD_SetOrientationDegrees(self, aOrientation)
13148
13150 r"""GetOrientationDegrees(PAD self) -> double"""
13151 return _pcbnew.PAD_GetOrientationDegrees(self)
13152
13153 def SetDrillShape(self, aShape):
13154 r"""SetDrillShape(PAD self, PAD_DRILL_SHAPE_T aShape)"""
13155 return _pcbnew.PAD_SetDrillShape(self, aShape)
13156
13157 def GetDrillShape(self):
13158 r"""GetDrillShape(PAD self) -> PAD_DRILL_SHAPE_T"""
13159 return _pcbnew.PAD_GetDrillShape(self)
13160
13161 def IsDirty(self):
13162 r"""IsDirty(PAD self) -> bool"""
13163 return _pcbnew.PAD_IsDirty(self)
13164
13165 def SetDirty(self):
13166 r"""SetDirty(PAD self)"""
13167 return _pcbnew.PAD_SetDirty(self)
13168
13169 def SetAttribute(self, aAttribute):
13170 r"""SetAttribute(PAD self, PAD_ATTRIB aAttribute)"""
13171 return _pcbnew.PAD_SetAttribute(self, aAttribute)
13172
13173 def GetAttribute(self):
13174 r"""GetAttribute(PAD self) -> PAD_ATTRIB"""
13175 return _pcbnew.PAD_GetAttribute(self)
13176
13177 def SetProperty(self, aProperty):
13178 r"""SetProperty(PAD self, PAD_PROP aProperty)"""
13179 return _pcbnew.PAD_SetProperty(self, aProperty)
13180
13181 def GetProperty(self):
13182 r"""GetProperty(PAD self) -> PAD_PROP"""
13183 return _pcbnew.PAD_GetProperty(self)
13184
13185 def IsAperturePad(self):
13186 r"""IsAperturePad(PAD self) -> bool"""
13187 return _pcbnew.PAD_IsAperturePad(self)
13188
13189 def SetPadToDieLength(self, aLength):
13190 r"""SetPadToDieLength(PAD self, int aLength)"""
13191 return _pcbnew.PAD_SetPadToDieLength(self, aLength)
13192
13194 r"""GetPadToDieLength(PAD self) -> int"""
13195 return _pcbnew.PAD_GetPadToDieLength(self)
13196
13198 r"""GetLocalSolderMaskMargin(PAD self) -> int"""
13199 return _pcbnew.PAD_GetLocalSolderMaskMargin(self)
13200
13201 def SetLocalSolderMaskMargin(self, aMargin):
13202 r"""SetLocalSolderMaskMargin(PAD self, int aMargin)"""
13203 return _pcbnew.PAD_SetLocalSolderMaskMargin(self, aMargin)
13204
13205 def GetLocalClearance(self, *args):
13206 r"""
13207 GetLocalClearance(PAD self, wxString aSource) -> int
13208 GetLocalClearance(PAD self) -> int
13209 """
13210 return _pcbnew.PAD_GetLocalClearance(self, *args)
13211
13212 def SetLocalClearance(self, aClearance):
13213 r"""SetLocalClearance(PAD self, int aClearance)"""
13214 return _pcbnew.PAD_SetLocalClearance(self, aClearance)
13215
13217 r"""GetLocalSolderPasteMargin(PAD self) -> int"""
13218 return _pcbnew.PAD_GetLocalSolderPasteMargin(self)
13219
13220 def SetLocalSolderPasteMargin(self, aMargin):
13221 r"""SetLocalSolderPasteMargin(PAD self, int aMargin)"""
13222 return _pcbnew.PAD_SetLocalSolderPasteMargin(self, aMargin)
13223
13225 r"""GetLocalSolderPasteMarginRatio(PAD self) -> double"""
13226 return _pcbnew.PAD_GetLocalSolderPasteMarginRatio(self)
13227
13229 r"""SetLocalSolderPasteMarginRatio(PAD self, double aRatio)"""
13230 return _pcbnew.PAD_SetLocalSolderPasteMarginRatio(self, aRatio)
13231
13232 def GetOwnClearance(self, aLayer, aSource=None):
13233 r"""GetOwnClearance(PAD self, PCB_LAYER_ID aLayer, wxString aSource=None) -> int"""
13234 return _pcbnew.PAD_GetOwnClearance(self, aLayer, aSource)
13235
13236 def TransformShapeToPolygon(self, *args):
13237 r"""TransformShapeToPolygon(PAD self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc=ERROR_INSIDE, bool ignoreLineWidth=False)"""
13238 return _pcbnew.PAD_TransformShapeToPolygon(self, *args)
13239
13240 def TransformHoleToPolygon(self, *args):
13241 r"""TransformHoleToPolygon(PAD self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> bool"""
13242 return _pcbnew.PAD_TransformHoleToPolygon(self, *args)
13243
13244 def GetEffectiveShape(self, *args):
13245 r"""GetEffectiveShape(PAD self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING flashPTHPads=DEFAULT) -> std::shared_ptr< SHAPE >"""
13246 return _pcbnew.PAD_GetEffectiveShape(self, *args)
13247
13248 def GetEffectivePolygon(self, *args):
13249 r"""GetEffectivePolygon(PAD self, ERROR_LOC aErrorLoc=ERROR_INSIDE) -> std::shared_ptr< SHAPE_POLY_SET > const"""
13250 return _pcbnew.PAD_GetEffectivePolygon(self, *args)
13251
13253 r"""GetBoundingRadius(PAD self) -> int"""
13254 return _pcbnew.PAD_GetBoundingRadius(self)
13255
13257 r"""GetSolderMaskExpansion(PAD self) -> int"""
13258 return _pcbnew.PAD_GetSolderMaskExpansion(self)
13259
13261 r"""GetSolderPasteMargin(PAD self) -> VECTOR2I"""
13262 return _pcbnew.PAD_GetSolderPasteMargin(self)
13263
13264 def SetZoneConnection(self, aType):
13265 r"""SetZoneConnection(PAD self, ZONE_CONNECTION aType)"""
13266 return _pcbnew.PAD_SetZoneConnection(self, aType)
13267
13269 r"""GetZoneConnection(PAD self) -> ZONE_CONNECTION"""
13270 return _pcbnew.PAD_GetZoneConnection(self)
13271
13272 def GetLocalZoneConnectionOverride(self, aSource=None):
13273 r"""GetLocalZoneConnectionOverride(PAD self, wxString aSource=None) -> ZONE_CONNECTION"""
13274 return _pcbnew.PAD_GetLocalZoneConnectionOverride(self, aSource)
13275
13276 def SetThermalSpokeWidth(self, aWidth):
13277 r"""SetThermalSpokeWidth(PAD self, int aWidth)"""
13278 return _pcbnew.PAD_SetThermalSpokeWidth(self, aWidth)
13279
13281 r"""GetThermalSpokeWidth(PAD self) -> int"""
13282 return _pcbnew.PAD_GetThermalSpokeWidth(self)
13283
13284 def GetLocalSpokeWidthOverride(self, aSource=None):
13285 r"""GetLocalSpokeWidthOverride(PAD self, wxString aSource=None) -> int"""
13286 return _pcbnew.PAD_GetLocalSpokeWidthOverride(self, aSource)
13287
13288 def SetThermalSpokeAngle(self, aAngle):
13289 r"""SetThermalSpokeAngle(PAD self, EDA_ANGLE aAngle)"""
13290 return _pcbnew.PAD_SetThermalSpokeAngle(self, aAngle)
13291
13293 r"""GetThermalSpokeAngle(PAD self) -> EDA_ANGLE"""
13294 return _pcbnew.PAD_GetThermalSpokeAngle(self)
13295
13297 r"""SetThermalSpokeAngleDegrees(PAD self, double aAngle)"""
13298 return _pcbnew.PAD_SetThermalSpokeAngleDegrees(self, aAngle)
13299
13301 r"""GetThermalSpokeAngleDegrees(PAD self) -> double"""
13302 return _pcbnew.PAD_GetThermalSpokeAngleDegrees(self)
13303
13304 def SetThermalGap(self, aGap):
13305 r"""SetThermalGap(PAD self, int aGap)"""
13306 return _pcbnew.PAD_SetThermalGap(self, aGap)
13307
13308 def GetThermalGap(self):
13309 r"""GetThermalGap(PAD self) -> int"""
13310 return _pcbnew.PAD_GetThermalGap(self)
13311
13312 def GetLocalThermalGapOverride(self, aSource=None):
13313 r"""GetLocalThermalGapOverride(PAD self, wxString aSource=None) -> int"""
13314 return _pcbnew.PAD_GetLocalThermalGapOverride(self, aSource)
13315
13316 def SetRoundRectCornerRadius(self, aRadius):
13317 r"""SetRoundRectCornerRadius(PAD self, double aRadius)"""
13318 return _pcbnew.PAD_SetRoundRectCornerRadius(self, aRadius)
13319
13321 r"""GetRoundRectCornerRadius(PAD self) -> int"""
13322 return _pcbnew.PAD_GetRoundRectCornerRadius(self)
13323
13324 def ShapePos(self):
13325 r"""ShapePos(PAD self) -> VECTOR2I"""
13326 return _pcbnew.PAD_ShapePos(self)
13327
13328 def SetRoundRectRadiusRatio(self, aRadiusScale):
13329 r"""SetRoundRectRadiusRatio(PAD self, double aRadiusScale)"""
13330 return _pcbnew.PAD_SetRoundRectRadiusRatio(self, aRadiusScale)
13331
13333 r"""GetRoundRectRadiusRatio(PAD self) -> double"""
13334 return _pcbnew.PAD_GetRoundRectRadiusRatio(self)
13335
13336 def SetChamferRectRatio(self, aChamferScale):
13337 r"""SetChamferRectRatio(PAD self, double aChamferScale)"""
13338 return _pcbnew.PAD_SetChamferRectRatio(self, aChamferScale)
13339
13341 r"""GetChamferRectRatio(PAD self) -> double"""
13342 return _pcbnew.PAD_GetChamferRectRatio(self)
13343
13344 def SetChamferPositions(self, aPositions):
13345 r"""SetChamferPositions(PAD self, int aPositions)"""
13346 return _pcbnew.PAD_SetChamferPositions(self, aPositions)
13347
13349 r"""GetChamferPositions(PAD self) -> int"""
13350 return _pcbnew.PAD_GetChamferPositions(self)
13351
13353 r"""GetSubRatsnest(PAD self) -> int"""
13354 return _pcbnew.PAD_GetSubRatsnest(self)
13355
13356 def SetSubRatsnest(self, aSubRatsnest):
13357 r"""SetSubRatsnest(PAD self, int aSubRatsnest)"""
13358 return _pcbnew.PAD_SetSubRatsnest(self, aSubRatsnest)
13359
13360 def SetRemoveUnconnected(self, aSet):
13361 r"""SetRemoveUnconnected(PAD self, bool aSet)"""
13362 return _pcbnew.PAD_SetRemoveUnconnected(self, aSet)
13363
13365 r"""GetRemoveUnconnected(PAD self) -> bool"""
13366 return _pcbnew.PAD_GetRemoveUnconnected(self)
13367
13368 def SetKeepTopBottom(self, aSet):
13369 r"""SetKeepTopBottom(PAD self, bool aSet)"""
13370 return _pcbnew.PAD_SetKeepTopBottom(self, aSet)
13371
13373 r"""GetKeepTopBottom(PAD self) -> bool"""
13374 return _pcbnew.PAD_GetKeepTopBottom(self)
13375
13376 def ConditionallyFlashed(self, aLayer):
13377 r"""ConditionallyFlashed(PAD self, PCB_LAYER_ID aLayer) -> bool"""
13378 return _pcbnew.PAD_ConditionallyFlashed(self, aLayer)
13379
13380 def CanFlashLayer(self, aLayer):
13381 r"""CanFlashLayer(PAD self, int aLayer) -> bool"""
13382 return _pcbnew.PAD_CanFlashLayer(self, aLayer)
13383
13385 r"""GetPrincipalLayer(PAD self) -> PCB_LAYER_ID"""
13386 return _pcbnew.PAD_GetPrincipalLayer(self)
13387
13388 def FlashLayer(self, *args):
13389 r"""
13390 FlashLayer(PAD self, int aLayer, bool aOnlyCheckIfPermitted=False) -> bool
13391 FlashLayer(PAD self, LSET aLayers) -> bool
13392 """
13393 return _pcbnew.PAD_FlashLayer(self, *args)
13394
13395 def HitTest(self, *args):
13396 r"""
13397 HitTest(PAD self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13398 HitTest(PAD self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13399 """
13400 return _pcbnew.PAD_HitTest(self, *args)
13401
13402 def Recombine(self, aIsDryRun, aMaxError):
13403 r"""Recombine(PAD self, bool aIsDryRun, int aMaxError) -> std::vector< PCB_SHAPE *,std::allocator< PCB_SHAPE * > >"""
13404 return _pcbnew.PAD_Recombine(self, aIsDryRun, aMaxError)
13405
13406 @staticmethod
13407 def Compare(aPadRef, aPadCmp):
13408 r"""Compare(PAD aPadRef, PAD aPadCmp) -> int"""
13409 return _pcbnew.PAD_Compare(aPadRef, aPadCmp)
13410
13411 def ShowPadShape(self):
13412 r"""ShowPadShape(PAD self) -> wxString"""
13413 return _pcbnew.PAD_ShowPadShape(self)
13414
13415 def ShowPadAttr(self):
13416 r"""ShowPadAttr(PAD self) -> wxString"""
13417 return _pcbnew.PAD_ShowPadAttr(self)
13418
13419 def ClonePad(self):
13420 r"""ClonePad(PAD self) -> PAD"""
13421 return _pcbnew.PAD_ClonePad(self)
13422
13423 def BuildEffectiveShapes(self, aLayer):
13424 r"""BuildEffectiveShapes(PAD self, PCB_LAYER_ID aLayer)"""
13425 return _pcbnew.PAD_BuildEffectiveShapes(self, aLayer)
13426
13427 def BuildEffectivePolygon(self, *args):
13428 r"""BuildEffectivePolygon(PAD self, ERROR_LOC aErrorLoc=ERROR_INSIDE)"""
13429 return _pcbnew.PAD_BuildEffectivePolygon(self, *args)
13430
13431 def ViewGetLOD(self, aLayer, aView):
13432 r"""ViewGetLOD(PAD self, int aLayer, KIGFX::VIEW * aView) -> double"""
13433 return _pcbnew.PAD_ViewGetLOD(self, aLayer, aView)
13434
13436 r"""ClearZoneLayerOverrides(PAD self)"""
13437 return _pcbnew.PAD_ClearZoneLayerOverrides(self)
13438
13439 def GetZoneLayerOverride(self, aLayer):
13440 r"""GetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
13441 return _pcbnew.PAD_GetZoneLayerOverride(self, aLayer)
13442
13443 def SetZoneLayerOverride(self, aLayer, aOverride):
13444 r"""SetZoneLayerOverride(PAD self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
13445 return _pcbnew.PAD_SetZoneLayerOverride(self, aLayer, aOverride)
13446
13447 def CheckPad(self, aUnitsProvider, aErrorHandler):
13448 r"""CheckPad(PAD self, UNITS_PROVIDER aUnitsProvider, std::function< void (int,wxString const &) > const & aErrorHandler)"""
13449 return _pcbnew.PAD_CheckPad(self, aUnitsProvider, aErrorHandler)
13450
13451 def __ne__(self, aOther):
13452 r"""__ne__(PAD self, BOARD_ITEM aOther) -> bool"""
13453 return _pcbnew.PAD___ne__(self, aOther)
13454
13455
13456 # SetPadName() is the old name for PAD::SetName()
13457 # define it for compatibility
13458 def SetPadName(self, aName):
13459 return self.SetNumber(aName)
13460
13461 def SetName(self, aName):
13462 return self.SetNumber(aName)
13463
13464 # GetPadName() is the old name for PAD::GetName()
13465 # define it for compatibility
13466 def GetPadName(self):
13467 return self.GetNumber()
13468
13469 def GetName(self):
13470 return self.GetNumber()
13471
13472 # AddPrimitive() used to be multiple functions on the C++ side and this single Python function
13473 # was made to maintain compatibility with an even older version of the PAD class that had a
13474 # single function. Now we're back to a single function, but different, and Python scripts
13475 # have gotten used to this API, so keep compatibility with it
13476 def AddPrimitive(self, *args):
13477 if len(args) == 2:
13478 return self.AddPrimitivePoly(*args, True)
13479 elif len(args) == 3:
13480 if type(args[1] in [wxPoint,wxSize,VECTOR2I]):
13481 s = PCB_SHAPE(None, SHAPE_T_SEGMENT)
13482 s.SetStart(args[0])
13483 s.SetEnd(args[1])
13484 s.SetWidth(args[2])
13485 else:
13486 s = PCB_SHAPE(None, SHAPE_T_CIRCLE)
13487 s.SetCenter(args[0])
13488 s.SetRadius(args[1])
13489 s.SetWidth(args[2])
13490 elif len(args) == 4:
13491 s = PCB_SHAPE(None, SHAPE_T_ARC)
13492 s.SetCenter(args[0])
13493 s.SetStart(args[1])
13494 s.SetArcAngleAndEnd(args[2])
13495 s.SetWidth(args[3])
13496 elif len(args) == 5:
13497 s = PCB_SHAPE(None, SHAPE_T_BEZIER)
13498 s.SetStart(args[0])
13499 s.SetEnd(args[1])
13500 s.SetBezierC1(args[2])
13501 s.SetBezierC2(args[3])
13502 s.SetWidth(args[4])
13503 else:
13504 raise TypeError(f"Arguments not recognized; expected 2-5 args, got {len(args)}")
13505
13506 self.AddPrimitiveShape(s)
13507
13508 # GetCustomShapeAsPolygon() is the old accessor to get custom shapes
13509 def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER):
13510 polygon_set = SHAPE_POLY_SET()
13511 self.MergePrimitivesAsPolygon(polygon_set)
13512 return polygon_set
13513
13514 __swig_destroy__ = _pcbnew.delete_PAD
13515
13516# Register PAD in _pcbnew:
13517_pcbnew.PAD_swigregister(PAD)
13518
13520 r"""PAD_PTHMask() -> LSET"""
13521 return _pcbnew.PAD_PTHMask()
13522
13524 r"""PAD_SMDMask() -> LSET"""
13525 return _pcbnew.PAD_SMDMask()
13526
13528 r"""PAD_ConnSMDMask() -> LSET"""
13529 return _pcbnew.PAD_ConnSMDMask()
13530
13532 r"""PAD_UnplatedHoleMask() -> LSET"""
13533 return _pcbnew.PAD_UnplatedHoleMask()
13534
13536 r"""PAD_ApertureMask() -> LSET"""
13537 return _pcbnew.PAD_ApertureMask()
13538
13539def PAD_ClassOf(aItem):
13540 r"""PAD_ClassOf(EDA_ITEM aItem) -> bool"""
13541 return _pcbnew.PAD_ClassOf(aItem)
13542
13543def PAD_Compare(aPadRef, aPadCmp):
13544 r"""PAD_Compare(PAD aPadRef, PAD aPadCmp) -> int"""
13545 return _pcbnew.PAD_Compare(aPadRef, aPadCmp)
13546
13547ENDPOINT_START = _pcbnew.ENDPOINT_START
13548
13549ENDPOINT_END = _pcbnew.ENDPOINT_END
13550
13551VIATYPE_THROUGH = _pcbnew.VIATYPE_THROUGH
13552
13553VIATYPE_BLIND_BURIED = _pcbnew.VIATYPE_BLIND_BURIED
13554
13555VIATYPE_MICROVIA = _pcbnew.VIATYPE_MICROVIA
13556
13557VIATYPE_NOT_DEFINED = _pcbnew.VIATYPE_NOT_DEFINED
13558
13559UNDEFINED_DRILL_DIAMETER = _pcbnew.UNDEFINED_DRILL_DIAMETER
13560
13562 r"""Proxy of C++ PCB_TRACK class."""
13563
13564 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13565 __repr__ = _swig_repr
13566
13567 @staticmethod
13568 def ClassOf(aItem):
13569 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13570 return _pcbnew.PCB_TRACK_ClassOf(aItem)
13571
13572 def __init__(self, aParent, idtype=PCB_TRACE_T):
13573 r"""__init__(PCB_TRACK self, BOARD_ITEM aParent, KICAD_T idtype=PCB_TRACE_T) -> PCB_TRACK"""
13574 _pcbnew.PCB_TRACK_swiginit(self, _pcbnew.new_PCB_TRACK(aParent, idtype))
13575
13576 def Mirror(self, aCentre, aMirrorAroundXAxis):
13577 r"""Mirror(PCB_TRACK self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
13578 return _pcbnew.PCB_TRACK_Mirror(self, aCentre, aMirrorAroundXAxis)
13579
13580 def SetWidth(self, aWidth):
13581 r"""SetWidth(PCB_TRACK self, int aWidth)"""
13582 return _pcbnew.PCB_TRACK_SetWidth(self, aWidth)
13583
13584 def GetWidth(self):
13585 r"""GetWidth(PCB_TRACK self) -> int"""
13586 return _pcbnew.PCB_TRACK_GetWidth(self)
13587
13588 def SetEnd(self, aEnd):
13589 r"""SetEnd(PCB_TRACK self, VECTOR2I aEnd)"""
13590 return _pcbnew.PCB_TRACK_SetEnd(self, aEnd)
13591
13592 def GetEnd(self):
13593 r"""GetEnd(PCB_TRACK self) -> VECTOR2I"""
13594 return _pcbnew.PCB_TRACK_GetEnd(self)
13595
13596 def SetStart(self, aStart):
13597 r"""SetStart(PCB_TRACK self, VECTOR2I aStart)"""
13598 return _pcbnew.PCB_TRACK_SetStart(self, aStart)
13599
13600 def GetStart(self):
13601 r"""GetStart(PCB_TRACK self) -> VECTOR2I"""
13602 return _pcbnew.PCB_TRACK_GetStart(self)
13603
13604 def SetEndX(self, aX):
13605 r"""SetEndX(PCB_TRACK self, int aX)"""
13606 return _pcbnew.PCB_TRACK_SetEndX(self, aX)
13607
13608 def SetEndY(self, aY):
13609 r"""SetEndY(PCB_TRACK self, int aY)"""
13610 return _pcbnew.PCB_TRACK_SetEndY(self, aY)
13611
13612 def GetEndX(self):
13613 r"""GetEndX(PCB_TRACK self) -> int"""
13614 return _pcbnew.PCB_TRACK_GetEndX(self)
13615
13616 def GetEndY(self):
13617 r"""GetEndY(PCB_TRACK self) -> int"""
13618 return _pcbnew.PCB_TRACK_GetEndY(self)
13619
13620 def GetEndPoint(self, aEndPoint):
13621 r"""GetEndPoint(PCB_TRACK self, ENDPOINT_T aEndPoint) -> VECTOR2I"""
13622 return _pcbnew.PCB_TRACK_GetEndPoint(self, aEndPoint)
13623
13624 def GetLength(self):
13625 r"""GetLength(PCB_TRACK self) -> double"""
13626 return _pcbnew.PCB_TRACK_GetLength(self)
13627
13628 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
13629 r"""TransformShapeToPolygon(PCB_TRACK self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
13630 return _pcbnew.PCB_TRACK_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
13631
13632 def GetEffectiveShape(self, *args):
13633 r"""GetEffectiveShape(PCB_TRACK self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13634 return _pcbnew.PCB_TRACK_GetEffectiveShape(self, *args)
13635
13636 def IsPointOnEnds(self, point, min_dist=0):
13637 r"""IsPointOnEnds(PCB_TRACK self, VECTOR2I point, int min_dist=0) -> EDA_ITEM_FLAGS"""
13638 return _pcbnew.PCB_TRACK_IsPointOnEnds(self, point, min_dist)
13639
13640 def IsNull(self):
13641 r"""IsNull(PCB_TRACK self) -> bool"""
13642 return _pcbnew.PCB_TRACK_IsNull(self)
13643
13644 def HitTest(self, *args):
13645 r"""
13646 HitTest(PCB_TRACK self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13647 HitTest(PCB_TRACK self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13648 """
13649 return _pcbnew.PCB_TRACK_HitTest(self, *args)
13650
13651 def ApproxCollinear(self, aTrack):
13652 r"""ApproxCollinear(PCB_TRACK self, PCB_TRACK aTrack) -> bool"""
13653 return _pcbnew.PCB_TRACK_ApproxCollinear(self, aTrack)
13654
13655 def GetWidthConstraint(self, aSource=None):
13656 r"""GetWidthConstraint(PCB_TRACK self, wxString aSource=None) -> MINOPTMAX< int >"""
13657 return _pcbnew.PCB_TRACK_GetWidthConstraint(self, aSource)
13658
13659 def ViewGetLOD(self, aLayer, aView):
13660 r"""ViewGetLOD(PCB_TRACK self, int aLayer, KIGFX::VIEW * aView) -> double"""
13661 return _pcbnew.PCB_TRACK_ViewGetLOD(self, aLayer, aView)
13662 __swig_destroy__ = _pcbnew.delete_PCB_TRACK
13663
13664# Register PCB_TRACK in _pcbnew:
13665_pcbnew.PCB_TRACK_swigregister(PCB_TRACK)
13666PAD_SHAPE_RECT = cvar.PAD_SHAPE_RECT
13667
13669 r"""PCB_TRACK_ClassOf(EDA_ITEM aItem) -> bool"""
13670 return _pcbnew.PCB_TRACK_ClassOf(aItem)
13671
13673 r"""Proxy of C++ PCB_ARC class."""
13674
13675 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13676 __repr__ = _swig_repr
13677
13678 def __init__(self, *args):
13679 r"""
13680 __init__(PCB_ARC self, BOARD_ITEM aParent) -> PCB_ARC
13681 __init__(PCB_ARC self, BOARD_ITEM aParent, SHAPE_ARC aArc) -> PCB_ARC
13682 """
13683 _pcbnew.PCB_ARC_swiginit(self, _pcbnew.new_PCB_ARC(*args))
13684
13685 @staticmethod
13686 def ClassOf(aItem):
13687 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13688 return _pcbnew.PCB_ARC_ClassOf(aItem)
13689
13690 def SetMid(self, aMid):
13691 r"""SetMid(PCB_ARC self, VECTOR2I aMid)"""
13692 return _pcbnew.PCB_ARC_SetMid(self, aMid)
13693
13694 def GetMid(self):
13695 r"""GetMid(PCB_ARC self) -> VECTOR2I"""
13696 return _pcbnew.PCB_ARC_GetMid(self)
13697
13698 def GetRadius(self):
13699 r"""GetRadius(PCB_ARC self) -> double"""
13700 return _pcbnew.PCB_ARC_GetRadius(self)
13701
13702 def GetAngle(self):
13703 r"""GetAngle(PCB_ARC self) -> EDA_ANGLE"""
13704 return _pcbnew.PCB_ARC_GetAngle(self)
13705
13707 r"""GetArcAngleStart(PCB_ARC self) -> EDA_ANGLE"""
13708 return _pcbnew.PCB_ARC_GetArcAngleStart(self)
13709
13711 r"""GetArcAngleEnd(PCB_ARC self) -> EDA_ANGLE"""
13712 return _pcbnew.PCB_ARC_GetArcAngleEnd(self)
13713
13714 def HitTest(self, *args):
13715 r"""
13716 HitTest(PCB_ARC self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13717 HitTest(PCB_ARC self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
13718 """
13719 return _pcbnew.PCB_ARC_HitTest(self, *args)
13720
13721 def IsCCW(self):
13722 r"""IsCCW(PCB_ARC self) -> bool"""
13723 return _pcbnew.PCB_ARC_IsCCW(self)
13724
13725 def GetEffectiveShape(self, *args):
13726 r"""GetEffectiveShape(PCB_ARC self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13727 return _pcbnew.PCB_ARC_GetEffectiveShape(self, *args)
13728
13729 def IsDegenerated(self, aThreshold=5):
13730 r"""IsDegenerated(PCB_ARC self, int aThreshold=5) -> bool"""
13731 return _pcbnew.PCB_ARC_IsDegenerated(self, aThreshold)
13732 __swig_destroy__ = _pcbnew.delete_PCB_ARC
13733
13734# Register PCB_ARC in _pcbnew:
13735_pcbnew.PCB_ARC_swigregister(PCB_ARC)
13736
13738 r"""PCB_ARC_ClassOf(EDA_ITEM aItem) -> bool"""
13739 return _pcbnew.PCB_ARC_ClassOf(aItem)
13740
13742 r"""Proxy of C++ PCB_VIA class."""
13743
13744 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13745 __repr__ = _swig_repr
13746
13747 @staticmethod
13748 def ClassOf(aItem):
13749 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13750 return _pcbnew.PCB_VIA_ClassOf(aItem)
13751
13752 def __init__(self, *args):
13753 r"""
13754 __init__(PCB_VIA self, BOARD_ITEM aParent) -> PCB_VIA
13755 __init__(PCB_VIA self, PCB_VIA aOther) -> PCB_VIA
13756 """
13757 _pcbnew.PCB_VIA_swiginit(self, _pcbnew.new_PCB_VIA(*args))
13758
13759 def GetViaType(self):
13760 r"""GetViaType(PCB_VIA self) -> VIATYPE"""
13761 return _pcbnew.PCB_VIA_GetViaType(self)
13762
13763 def SetViaType(self, aViaType):
13764 r"""SetViaType(PCB_VIA self, VIATYPE aViaType)"""
13765 return _pcbnew.PCB_VIA_SetViaType(self, aViaType)
13766
13767 def GetWidthConstraint(self, aSource=None):
13768 r"""GetWidthConstraint(PCB_VIA self, wxString aSource=None) -> MINOPTMAX< int >"""
13769 return _pcbnew.PCB_VIA_GetWidthConstraint(self, aSource)
13770
13771 def GetDrillConstraint(self, aSource=None):
13772 r"""GetDrillConstraint(PCB_VIA self, wxString aSource=None) -> MINOPTMAX< int >"""
13773 return _pcbnew.PCB_VIA_GetDrillConstraint(self, aSource)
13774
13776 r"""GetSolderMaskExpansion(PCB_VIA self) -> int"""
13777 return _pcbnew.PCB_VIA_GetSolderMaskExpansion(self)
13778
13779 def SetLayerPair(self, aTopLayer, aBottomLayer):
13780 r"""SetLayerPair(PCB_VIA self, PCB_LAYER_ID aTopLayer, PCB_LAYER_ID aBottomLayer)"""
13781 return _pcbnew.PCB_VIA_SetLayerPair(self, aTopLayer, aBottomLayer)
13782
13783 def SetBottomLayer(self, aLayer):
13784 r"""SetBottomLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
13785 return _pcbnew.PCB_VIA_SetBottomLayer(self, aLayer)
13786
13787 def SetTopLayer(self, aLayer):
13788 r"""SetTopLayer(PCB_VIA self, PCB_LAYER_ID aLayer)"""
13789 return _pcbnew.PCB_VIA_SetTopLayer(self, aLayer)
13790
13791 def LayerPair(self, top_layer, bottom_layer):
13792 r"""LayerPair(PCB_VIA self, PCB_LAYER_ID * top_layer, PCB_LAYER_ID * bottom_layer)"""
13793 return _pcbnew.PCB_VIA_LayerPair(self, top_layer, bottom_layer)
13794
13795 def TopLayer(self):
13796 r"""TopLayer(PCB_VIA self) -> PCB_LAYER_ID"""
13797 return _pcbnew.PCB_VIA_TopLayer(self)
13798
13799 def BottomLayer(self):
13800 r"""BottomLayer(PCB_VIA self) -> PCB_LAYER_ID"""
13801 return _pcbnew.PCB_VIA_BottomLayer(self)
13802
13804 r"""SanitizeLayers(PCB_VIA self)"""
13805 return _pcbnew.PCB_VIA_SanitizeLayers(self)
13806
13807 def HitTest(self, *args):
13808 r"""
13809 HitTest(PCB_VIA self, VECTOR2I aPosition, int aAccuracy=0) -> bool
13810 HitTest(PCB_VIA self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
13811 """
13812 return _pcbnew.PCB_VIA_HitTest(self, *args)
13813
13814 def ViewGetLOD(self, aLayer, aView):
13815 r"""ViewGetLOD(PCB_VIA self, int aLayer, KIGFX::VIEW * aView) -> double"""
13816 return _pcbnew.PCB_VIA_ViewGetLOD(self, aLayer, aView)
13817
13818 def GetMinAnnulus(self, aLayer, aSource):
13819 r"""GetMinAnnulus(PCB_VIA self, PCB_LAYER_ID aLayer, wxString aSource) -> int"""
13820 return _pcbnew.PCB_VIA_GetMinAnnulus(self, aLayer, aSource)
13821
13822 def SetRemoveUnconnected(self, aSet):
13823 r"""SetRemoveUnconnected(PCB_VIA self, bool aSet)"""
13824 return _pcbnew.PCB_VIA_SetRemoveUnconnected(self, aSet)
13825
13827 r"""GetRemoveUnconnected(PCB_VIA self) -> bool"""
13828 return _pcbnew.PCB_VIA_GetRemoveUnconnected(self)
13829
13830 def SetKeepStartEnd(self, aSet):
13831 r"""SetKeepStartEnd(PCB_VIA self, bool aSet)"""
13832 return _pcbnew.PCB_VIA_SetKeepStartEnd(self, aSet)
13833
13835 r"""GetKeepStartEnd(PCB_VIA self) -> bool"""
13836 return _pcbnew.PCB_VIA_GetKeepStartEnd(self)
13837
13838 def ConditionallyFlashed(self, aLayer):
13839 r"""ConditionallyFlashed(PCB_VIA self, PCB_LAYER_ID aLayer) -> bool"""
13840 return _pcbnew.PCB_VIA_ConditionallyFlashed(self, aLayer)
13841
13842 def FlashLayer(self, *args):
13843 r"""
13844 FlashLayer(PCB_VIA self, int aLayer) -> bool
13845 FlashLayer(PCB_VIA self, LSET aLayers) -> bool
13846 """
13847 return _pcbnew.PCB_VIA_FlashLayer(self, *args)
13848
13849 def GetOutermostConnectedLayers(self, aTopmost, aBottommost):
13850 r"""GetOutermostConnectedLayers(PCB_VIA self, PCB_LAYER_ID * aTopmost, PCB_LAYER_ID * aBottommost)"""
13851 return _pcbnew.PCB_VIA_GetOutermostConnectedLayers(self, aTopmost, aBottommost)
13852
13853 def SetDrill(self, aDrill):
13854 r"""SetDrill(PCB_VIA self, int aDrill)"""
13855 return _pcbnew.PCB_VIA_SetDrill(self, aDrill)
13856
13857 def GetDrill(self):
13858 r"""GetDrill(PCB_VIA self) -> int"""
13859 return _pcbnew.PCB_VIA_GetDrill(self)
13860
13861 def GetDrillValue(self):
13862 r"""GetDrillValue(PCB_VIA self) -> int"""
13863 return _pcbnew.PCB_VIA_GetDrillValue(self)
13864
13866 r"""SetDrillDefault(PCB_VIA self)"""
13867 return _pcbnew.PCB_VIA_SetDrillDefault(self)
13868
13869 def GetIsFree(self):
13870 r"""GetIsFree(PCB_VIA self) -> bool"""
13871 return _pcbnew.PCB_VIA_GetIsFree(self)
13872
13873 def SetIsFree(self, aFree=True):
13874 r"""SetIsFree(PCB_VIA self, bool aFree=True)"""
13875 return _pcbnew.PCB_VIA_SetIsFree(self, aFree)
13876
13877 def GetEffectiveShape(self, *args):
13878 r"""GetEffectiveShape(PCB_VIA self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
13879 return _pcbnew.PCB_VIA_GetEffectiveShape(self, *args)
13880
13882 r"""ClearZoneLayerOverrides(PCB_VIA self)"""
13883 return _pcbnew.PCB_VIA_ClearZoneLayerOverrides(self)
13884
13885 def GetZoneLayerOverride(self, aLayer):
13886 r"""GetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer) -> ZONE_LAYER_OVERRIDE const &"""
13887 return _pcbnew.PCB_VIA_GetZoneLayerOverride(self, aLayer)
13888
13889 def SetZoneLayerOverride(self, aLayer, aOverride):
13890 r"""SetZoneLayerOverride(PCB_VIA self, PCB_LAYER_ID aLayer, ZONE_LAYER_OVERRIDE aOverride)"""
13891 return _pcbnew.PCB_VIA_SetZoneLayerOverride(self, aLayer, aOverride)
13892 __swig_destroy__ = _pcbnew.delete_PCB_VIA
13893
13894# Register PCB_VIA in _pcbnew:
13895_pcbnew.PCB_VIA_swigregister(PCB_VIA)
13896
13898 r"""PCB_VIA_ClassOf(EDA_ITEM aItem) -> bool"""
13899 return _pcbnew.PCB_VIA_ClassOf(aItem)
13900
13902 r"""Proxy of C++ ISOLATED_ISLANDS class."""
13903
13904 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13905 __repr__ = _swig_repr
13906 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)>)>""")
13907 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)>)>""")
13908
13909 def __init__(self):
13910 r"""__init__(ISOLATED_ISLANDS self) -> ISOLATED_ISLANDS"""
13911 _pcbnew.ISOLATED_ISLANDS_swiginit(self, _pcbnew.new_ISOLATED_ISLANDS())
13912 __swig_destroy__ = _pcbnew.delete_ISOLATED_ISLANDS
13913
13914# Register ISOLATED_ISLANDS in _pcbnew:
13915_pcbnew.ISOLATED_ISLANDS_swigregister(ISOLATED_ISLANDS)
13916
13918 r"""Proxy of C++ ZONE class."""
13919
13920 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13921 __repr__ = _swig_repr
13922
13923 def __init__(self, *args):
13924 r"""
13925 __init__(ZONE self, BOARD_ITEM_CONTAINER parent) -> ZONE
13926 __init__(ZONE self, ZONE aZone) -> ZONE
13927 """
13928 _pcbnew.ZONE_swiginit(self, _pcbnew.new_ZONE(*args))
13929 __swig_destroy__ = _pcbnew.delete_ZONE
13930
13931 @staticmethod
13932 def ClassOf(aItem):
13933 r"""ClassOf(EDA_ITEM aItem) -> bool"""
13934 return _pcbnew.ZONE_ClassOf(aItem)
13935
13937 r"""InitDataFromSrcInCopyCtor(ZONE self, ZONE aZone)"""
13938 return _pcbnew.ZONE_InitDataFromSrcInCopyCtor(self, aZone)
13939
13940 def IsConflicting(self):
13941 r"""IsConflicting(ZONE self) -> bool"""
13942 return _pcbnew.ZONE_IsConflicting(self)
13943
13944 def SetAssignedPriority(self, aPriority):
13945 r"""SetAssignedPriority(ZONE self, unsigned int aPriority)"""
13946 return _pcbnew.ZONE_SetAssignedPriority(self, aPriority)
13947
13949 r"""GetAssignedPriority(ZONE self) -> unsigned int"""
13950 return _pcbnew.ZONE_GetAssignedPriority(self)
13951
13952 def HigherPriority(self, aOther):
13953 r"""HigherPriority(ZONE self, ZONE aOther) -> bool"""
13954 return _pcbnew.ZONE_HigherPriority(self, aOther)
13955
13956 def SameNet(self, aOther):
13957 r"""SameNet(ZONE self, ZONE aOther) -> bool"""
13958 return _pcbnew.ZONE_SameNet(self, aOther)
13959
13960 def GetZoneName(self):
13961 r"""GetZoneName(ZONE self) -> wxString"""
13962 return _pcbnew.ZONE_GetZoneName(self)
13963
13964 def SetZoneName(self, aName):
13965 r"""SetZoneName(ZONE self, wxString aName)"""
13966 return _pcbnew.ZONE_SetZoneName(self, aName)
13967
13969 r"""CacheBoundingBox(ZONE self)"""
13970 return _pcbnew.ZONE_CacheBoundingBox(self)
13971
13972 def GetLocalClearance(self, *args):
13973 r"""
13974 GetLocalClearance(ZONE self, wxString aSource) -> int
13975 GetLocalClearance(ZONE self) -> int
13976 """
13977 return _pcbnew.ZONE_GetLocalClearance(self, *args)
13978
13979 def SetLocalClearance(self, aClearance):
13980 r"""SetLocalClearance(ZONE self, int aClearance)"""
13981 return _pcbnew.ZONE_SetLocalClearance(self, aClearance)
13982
13983 def GetFirstLayer(self):
13984 r"""GetFirstLayer(ZONE self) -> PCB_LAYER_ID"""
13985 return _pcbnew.ZONE_GetFirstLayer(self)
13986
13987 def ViewGetLOD(self, aLayer, aView):
13988 r"""ViewGetLOD(ZONE self, int aLayer, KIGFX::VIEW * aView) -> double"""
13989 return _pcbnew.ZONE_ViewGetLOD(self, aLayer, aView)
13990
13991 def SetFillMode(self, aFillMode):
13992 r"""SetFillMode(ZONE self, ZONE_FILL_MODE aFillMode)"""
13993 return _pcbnew.ZONE_SetFillMode(self, aFillMode)
13994
13995 def GetFillMode(self):
13996 r"""GetFillMode(ZONE self) -> ZONE_FILL_MODE"""
13997 return _pcbnew.ZONE_GetFillMode(self)
13998
13999 def SetThermalReliefGap(self, aThermalReliefGap):
14000 r"""SetThermalReliefGap(ZONE self, int aThermalReliefGap)"""
14001 return _pcbnew.ZONE_SetThermalReliefGap(self, aThermalReliefGap)
14002
14003 def GetThermalReliefGap(self, *args):
14004 r"""
14005 GetThermalReliefGap(ZONE self) -> int
14006 GetThermalReliefGap(ZONE self, PAD aPad, wxString aSource=None) -> int
14007 """
14008 return _pcbnew.ZONE_GetThermalReliefGap(self, *args)
14009
14010 def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth):
14011 r"""SetThermalReliefSpokeWidth(ZONE self, int aThermalReliefSpokeWidth)"""
14012 return _pcbnew.ZONE_SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
14013
14015 r"""GetThermalReliefSpokeWidth(ZONE self) -> int"""
14016 return _pcbnew.ZONE_GetThermalReliefSpokeWidth(self)
14017
14019 r"""CalculateFilledArea(ZONE self) -> double"""
14020 return _pcbnew.ZONE_CalculateFilledArea(self)
14021
14023 r"""CalculateOutlineArea(ZONE self) -> double"""
14024 return _pcbnew.ZONE_CalculateOutlineArea(self)
14025
14026 def GetFilledArea(self):
14027 r"""GetFilledArea(ZONE self) -> double"""
14028 return _pcbnew.ZONE_GetFilledArea(self)
14029
14031 r"""GetOutlineArea(ZONE self) -> double"""
14032 return _pcbnew.ZONE_GetOutlineArea(self)
14033
14034 def GetLock(self):
14035 r"""GetLock(ZONE self) -> std::mutex &"""
14036 return _pcbnew.ZONE_GetLock(self)
14037
14038 def GetFillFlag(self, aLayer):
14039 r"""GetFillFlag(ZONE self, PCB_LAYER_ID aLayer) -> int"""
14040 return _pcbnew.ZONE_GetFillFlag(self, aLayer)
14041
14042 def SetFillFlag(self, aLayer, aFlag):
14043 r"""SetFillFlag(ZONE self, PCB_LAYER_ID aLayer, bool aFlag)"""
14044 return _pcbnew.ZONE_SetFillFlag(self, aLayer, aFlag)
14045
14046 def IsFilled(self):
14047 r"""IsFilled(ZONE self) -> bool"""
14048 return _pcbnew.ZONE_IsFilled(self)
14049
14050 def SetIsFilled(self, isFilled):
14051 r"""SetIsFilled(ZONE self, bool isFilled)"""
14052 return _pcbnew.ZONE_SetIsFilled(self, isFilled)
14053
14054 def NeedRefill(self):
14055 r"""NeedRefill(ZONE self) -> bool"""
14056 return _pcbnew.ZONE_NeedRefill(self)
14057
14058 def SetNeedRefill(self, aNeedRefill):
14059 r"""SetNeedRefill(ZONE self, bool aNeedRefill)"""
14060 return _pcbnew.ZONE_SetNeedRefill(self, aNeedRefill)
14061
14063 r"""GetPadConnection(ZONE self) -> ZONE_CONNECTION"""
14064 return _pcbnew.ZONE_GetPadConnection(self)
14065
14066 def SetPadConnection(self, aPadConnection):
14067 r"""SetPadConnection(ZONE self, ZONE_CONNECTION aPadConnection)"""
14068 return _pcbnew.ZONE_SetPadConnection(self, aPadConnection)
14069
14071 r"""GetMinThickness(ZONE self) -> int"""
14072 return _pcbnew.ZONE_GetMinThickness(self)
14073
14074 def SetMinThickness(self, aMinThickness):
14075 r"""SetMinThickness(ZONE self, int aMinThickness)"""
14076 return _pcbnew.ZONE_SetMinThickness(self, aMinThickness)
14077
14079 r"""GetHatchThickness(ZONE self) -> int"""
14080 return _pcbnew.ZONE_GetHatchThickness(self)
14081
14082 def SetHatchThickness(self, aThickness):
14083 r"""SetHatchThickness(ZONE self, int aThickness)"""
14084 return _pcbnew.ZONE_SetHatchThickness(self, aThickness)
14085
14086 def GetHatchGap(self):
14087 r"""GetHatchGap(ZONE self) -> int"""
14088 return _pcbnew.ZONE_GetHatchGap(self)
14089
14090 def SetHatchGap(self, aStep):
14091 r"""SetHatchGap(ZONE self, int aStep)"""
14092 return _pcbnew.ZONE_SetHatchGap(self, aStep)
14093
14095 r"""GetHatchOrientation(ZONE self) -> EDA_ANGLE"""
14096 return _pcbnew.ZONE_GetHatchOrientation(self)
14097
14098 def SetHatchOrientation(self, aStep):
14099 r"""SetHatchOrientation(ZONE self, EDA_ANGLE aStep)"""
14100 return _pcbnew.ZONE_SetHatchOrientation(self, aStep)
14101
14103 r"""GetHatchSmoothingLevel(ZONE self) -> int"""
14104 return _pcbnew.ZONE_GetHatchSmoothingLevel(self)
14105
14106 def SetHatchSmoothingLevel(self, aLevel):
14107 r"""SetHatchSmoothingLevel(ZONE self, int aLevel)"""
14108 return _pcbnew.ZONE_SetHatchSmoothingLevel(self, aLevel)
14109
14111 r"""GetHatchSmoothingValue(ZONE self) -> double"""
14112 return _pcbnew.ZONE_GetHatchSmoothingValue(self)
14113
14114 def SetHatchSmoothingValue(self, aValue):
14115 r"""SetHatchSmoothingValue(ZONE self, double aValue)"""
14116 return _pcbnew.ZONE_SetHatchSmoothingValue(self, aValue)
14117
14119 r"""GetHatchHoleMinArea(ZONE self) -> double"""
14120 return _pcbnew.ZONE_GetHatchHoleMinArea(self)
14121
14122 def SetHatchHoleMinArea(self, aPct):
14123 r"""SetHatchHoleMinArea(ZONE self, double aPct)"""
14124 return _pcbnew.ZONE_SetHatchHoleMinArea(self, aPct)
14125
14127 r"""GetHatchBorderAlgorithm(ZONE self) -> int"""
14128 return _pcbnew.ZONE_GetHatchBorderAlgorithm(self)
14129
14130 def SetHatchBorderAlgorithm(self, aAlgo):
14131 r"""SetHatchBorderAlgorithm(ZONE self, int aAlgo)"""
14132 return _pcbnew.ZONE_SetHatchBorderAlgorithm(self, aAlgo)
14133
14135 r"""GetSelectedCorner(ZONE self) -> int"""
14136 return _pcbnew.ZONE_GetSelectedCorner(self)
14137
14138 def SetSelectedCorner(self, aCorner):
14139 r"""SetSelectedCorner(ZONE self, int aCorner)"""
14140 return _pcbnew.ZONE_SetSelectedCorner(self, aCorner)
14141
14142 def GetLocalFlags(self):
14143 r"""GetLocalFlags(ZONE self) -> int"""
14144 return _pcbnew.ZONE_GetLocalFlags(self)
14145
14146 def SetLocalFlags(self, aFlags):
14147 r"""SetLocalFlags(ZONE self, int aFlags)"""
14148 return _pcbnew.ZONE_SetLocalFlags(self, aFlags)
14149
14150 def Outline(self, *args):
14151 r"""
14152 Outline(ZONE self) -> SHAPE_POLY_SET
14153 Outline(ZONE self) -> SHAPE_POLY_SET
14154 """
14155 return _pcbnew.ZONE_Outline(self, *args)
14156
14157 def SetOutline(self, aOutline):
14158 r"""SetOutline(ZONE self, SHAPE_POLY_SET aOutline)"""
14159 return _pcbnew.ZONE_SetOutline(self, aOutline)
14160
14161 def GetEffectiveShape(self, *args):
14162 r"""GetEffectiveShape(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
14163 return _pcbnew.ZONE_GetEffectiveShape(self, *args)
14164
14165 def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0):
14166 r"""HitTestFilledArea(ZONE self, PCB_LAYER_ID aLayer, VECTOR2I aRefPos, int aAccuracy=0) -> bool"""
14167 return _pcbnew.ZONE_HitTestFilledArea(self, aLayer, aRefPos, aAccuracy)
14168
14169 def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None):
14170 r"""HitTestCutout(ZONE self, VECTOR2I aRefPos, int * aOutlineIdx=None, int * aHoleIdx=None) -> bool"""
14171 return _pcbnew.ZONE_HitTestCutout(self, aRefPos, aOutlineIdx, aHoleIdx)
14172
14173 def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones):
14174 r"""GetInteractingZones(ZONE self, PCB_LAYER_ID aLayer, ZONES aSameNetCollidingZones, ZONES aOtherNetIntersectingZones)"""
14175 return _pcbnew.ZONE_GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
14176
14177 def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer):
14178 r"""TransformSolidAreasShapesToPolygon(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBuffer)"""
14179 return _pcbnew.ZONE_TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
14180
14181 def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline):
14182 r"""TransformSmoothedOutlineToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, SHAPE_POLY_SET aBoardOutline)"""
14183 return _pcbnew.ZONE_TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
14184
14185 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
14186 r"""TransformShapeToPolygon(ZONE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
14187 return _pcbnew.ZONE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
14188
14189 def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None):
14190 r"""HitTestForCorner(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
14191 return _pcbnew.ZONE_HitTestForCorner(self, refPos, aAccuracy, aCornerHit)
14192
14193 def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None):
14194 r"""HitTestForEdge(ZONE self, VECTOR2I refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX * aCornerHit=None) -> bool"""
14195 return _pcbnew.ZONE_HitTestForEdge(self, refPos, aAccuracy, aCornerHit)
14196
14197 def HitTest(self, *args):
14198 r"""
14199 HitTest(ZONE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
14200 HitTest(ZONE self, BOX2I aRect, bool aContained=True, int aAccuracy=0) -> bool
14201 """
14202 return _pcbnew.ZONE_HitTest(self, *args)
14203
14204 def UnFill(self):
14205 r"""UnFill(ZONE self) -> bool"""
14206 return _pcbnew.ZONE_UnFill(self)
14207
14208 def MoveEdge(self, offset, aEdge):
14209 r"""MoveEdge(ZONE self, VECTOR2I offset, int aEdge)"""
14210 return _pcbnew.ZONE_MoveEdge(self, offset, aEdge)
14211
14212 def Mirror(self, aMirrorRef, aMirrorLeftRight):
14213 r"""Mirror(ZONE self, VECTOR2I aMirrorRef, bool aMirrorLeftRight)"""
14214 return _pcbnew.ZONE_Mirror(self, aMirrorRef, aMirrorLeftRight)
14215
14216 def GetNumCorners(self):
14217 r"""GetNumCorners(ZONE self) -> int"""
14218 return _pcbnew.ZONE_GetNumCorners(self)
14219
14220 def Iterate(self):
14221 r"""Iterate(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
14222 return _pcbnew.ZONE_Iterate(self)
14223
14225 r"""IterateWithHoles(ZONE self) -> SHAPE_POLY_SET::ITERATOR"""
14226 return _pcbnew.ZONE_IterateWithHoles(self)
14227
14229 r"""CIterateWithHoles(ZONE self) -> SHAPE_POLY_SET::CONST_ITERATOR"""
14230 return _pcbnew.ZONE_CIterateWithHoles(self)
14231
14233 r"""RemoveAllContours(ZONE self)"""
14234 return _pcbnew.ZONE_RemoveAllContours(self)
14235
14236 def GetCornerPosition(self, aCornerIndex):
14237 r"""GetCornerPosition(ZONE self, int aCornerIndex) -> VECTOR2I"""
14238 return _pcbnew.ZONE_GetCornerPosition(self, aCornerIndex)
14239
14240 def SetCornerPosition(self, aCornerIndex, new_pos):
14241 r"""SetCornerPosition(ZONE self, int aCornerIndex, VECTOR2I new_pos)"""
14242 return _pcbnew.ZONE_SetCornerPosition(self, aCornerIndex, new_pos)
14243
14244 def NewHole(self):
14245 r"""NewHole(ZONE self)"""
14246 return _pcbnew.ZONE_NewHole(self)
14247
14248 def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False):
14249 r"""AppendCorner(ZONE self, VECTOR2I aPosition, int aHoleIdx, bool aAllowDuplication=False) -> bool"""
14250 return _pcbnew.ZONE_AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication)
14251
14252 def GetHatchStyle(self):
14253 r"""GetHatchStyle(ZONE self) -> ZONE_BORDER_DISPLAY_STYLE"""
14254 return _pcbnew.ZONE_GetHatchStyle(self)
14255
14256 def SetHatchStyle(self, aStyle):
14257 r"""SetHatchStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aStyle)"""
14258 return _pcbnew.ZONE_SetHatchStyle(self, aStyle)
14259
14260 def HasFilledPolysForLayer(self, aLayer):
14261 r"""HasFilledPolysForLayer(ZONE self, PCB_LAYER_ID aLayer) -> bool"""
14262 return _pcbnew.ZONE_HasFilledPolysForLayer(self, aLayer)
14263
14264 def GetFilledPolysList(self, aLayer):
14265 r"""GetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer) -> std::shared_ptr< SHAPE_POLY_SET > const &"""
14266 return _pcbnew.ZONE_GetFilledPolysList(self, aLayer)
14267
14268 def GetFill(self, aLayer):
14269 r"""GetFill(ZONE self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
14270 return _pcbnew.ZONE_GetFill(self, aLayer)
14271
14272 def CacheTriangulation(self, aLayer=UNDEFINED_LAYER):
14273 r"""CacheTriangulation(ZONE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)"""
14274 return _pcbnew.ZONE_CacheTriangulation(self, aLayer)
14275
14276 def SetFilledPolysList(self, aLayer, aPolysList):
14277 r"""SetFilledPolysList(ZONE self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aPolysList)"""
14278 return _pcbnew.ZONE_SetFilledPolysList(self, aLayer, aPolysList)
14279
14280 def IsIsland(self, aLayer, aPolyIdx):
14281 r"""IsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx) -> bool"""
14282 return _pcbnew.ZONE_IsIsland(self, aLayer, aPolyIdx)
14283
14284 def SetIsIsland(self, aLayer, aPolyIdx):
14285 r"""SetIsIsland(ZONE self, PCB_LAYER_ID aLayer, int aPolyIdx)"""
14286 return _pcbnew.ZONE_SetIsIsland(self, aLayer, aPolyIdx)
14287
14288 def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None):
14289 r"""BuildSmoothedPoly(ZONE self, SHAPE_POLY_SET aSmoothedPoly, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aBoardOutline, SHAPE_POLY_SET aSmoothedPolyWithApron=None) -> bool"""
14290 return _pcbnew.ZONE_BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron)
14291
14292 def SetCornerSmoothingType(self, aType):
14293 r"""SetCornerSmoothingType(ZONE self, int aType)"""
14294 return _pcbnew.ZONE_SetCornerSmoothingType(self, aType)
14295
14297 r"""GetCornerSmoothingType(ZONE self) -> int"""
14298 return _pcbnew.ZONE_GetCornerSmoothingType(self)
14299
14300 def SetCornerRadius(self, aRadius):
14301 r"""SetCornerRadius(ZONE self, unsigned int aRadius)"""
14302 return _pcbnew.ZONE_SetCornerRadius(self, aRadius)
14303
14305 r"""GetCornerRadius(ZONE self) -> unsigned int"""
14306 return _pcbnew.ZONE_GetCornerRadius(self)
14307
14308 def RemoveCutout(self, aOutlineIdx, aHoleIdx):
14309 r"""RemoveCutout(ZONE self, int aOutlineIdx, int aHoleIdx)"""
14310 return _pcbnew.ZONE_RemoveCutout(self, aOutlineIdx, aHoleIdx)
14311
14312 def AddPolygon(self, *args):
14313 r"""
14314 AddPolygon(ZONE self, VECTOR_VECTOR2I aPolygon)
14315 AddPolygon(ZONE self, SHAPE_LINE_CHAIN aPolygon)
14316 """
14317 return _pcbnew.ZONE_AddPolygon(self, *args)
14318
14320 r"""IsTeardropArea(ZONE self) -> bool"""
14321 return _pcbnew.ZONE_IsTeardropArea(self)
14322
14323 def SetTeardropAreaType(self, aType):
14324 r"""SetTeardropAreaType(ZONE self, TEARDROP_TYPE aType)"""
14325 return _pcbnew.ZONE_SetTeardropAreaType(self, aType)
14326
14328 r"""GetTeardropAreaType(ZONE self) -> TEARDROP_TYPE"""
14329 return _pcbnew.ZONE_GetTeardropAreaType(self)
14330
14331 def GetIsRuleArea(self):
14332 r"""GetIsRuleArea(ZONE self) -> bool"""
14333 return _pcbnew.ZONE_GetIsRuleArea(self)
14334
14336 r"""GetDoNotAllowCopperPour(ZONE self) -> bool"""
14337 return _pcbnew.ZONE_GetDoNotAllowCopperPour(self)
14338
14340 r"""GetDoNotAllowVias(ZONE self) -> bool"""
14341 return _pcbnew.ZONE_GetDoNotAllowVias(self)
14342
14344 r"""GetDoNotAllowTracks(ZONE self) -> bool"""
14345 return _pcbnew.ZONE_GetDoNotAllowTracks(self)
14346
14348 r"""GetDoNotAllowPads(ZONE self) -> bool"""
14349 return _pcbnew.ZONE_GetDoNotAllowPads(self)
14350
14352 r"""GetDoNotAllowFootprints(ZONE self) -> bool"""
14353 return _pcbnew.ZONE_GetDoNotAllowFootprints(self)
14354
14355 def SetIsRuleArea(self, aEnable):
14356 r"""SetIsRuleArea(ZONE self, bool aEnable)"""
14357 return _pcbnew.ZONE_SetIsRuleArea(self, aEnable)
14358
14359 def SetDoNotAllowCopperPour(self, aEnable):
14360 r"""SetDoNotAllowCopperPour(ZONE self, bool aEnable)"""
14361 return _pcbnew.ZONE_SetDoNotAllowCopperPour(self, aEnable)
14362
14363 def SetDoNotAllowVias(self, aEnable):
14364 r"""SetDoNotAllowVias(ZONE self, bool aEnable)"""
14365 return _pcbnew.ZONE_SetDoNotAllowVias(self, aEnable)
14366
14367 def SetDoNotAllowTracks(self, aEnable):
14368 r"""SetDoNotAllowTracks(ZONE self, bool aEnable)"""
14369 return _pcbnew.ZONE_SetDoNotAllowTracks(self, aEnable)
14370
14371 def SetDoNotAllowPads(self, aEnable):
14372 r"""SetDoNotAllowPads(ZONE self, bool aEnable)"""
14373 return _pcbnew.ZONE_SetDoNotAllowPads(self, aEnable)
14374
14375 def SetDoNotAllowFootprints(self, aEnable):
14376 r"""SetDoNotAllowFootprints(ZONE self, bool aEnable)"""
14377 return _pcbnew.ZONE_SetDoNotAllowFootprints(self, aEnable)
14378
14380 r"""GetIslandRemovalMode(ZONE self) -> ISLAND_REMOVAL_MODE"""
14381 return _pcbnew.ZONE_GetIslandRemovalMode(self)
14382
14383 def SetIslandRemovalMode(self, aRemove):
14384 r"""SetIslandRemovalMode(ZONE self, ISLAND_REMOVAL_MODE aRemove)"""
14385 return _pcbnew.ZONE_SetIslandRemovalMode(self, aRemove)
14386
14388 r"""GetMinIslandArea(ZONE self) -> long long"""
14389 return _pcbnew.ZONE_GetMinIslandArea(self)
14390
14391 def SetMinIslandArea(self, aArea):
14392 r"""SetMinIslandArea(ZONE self, long long aArea)"""
14393 return _pcbnew.ZONE_SetMinIslandArea(self, aArea)
14394
14396 r"""GetBorderHatchPitch(ZONE self) -> int"""
14397 return _pcbnew.ZONE_GetBorderHatchPitch(self)
14398
14399 @staticmethod
14401 r"""GetDefaultHatchPitch() -> int"""
14402 return _pcbnew.ZONE_GetDefaultHatchPitch()
14403
14404 def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch):
14405 r"""SetBorderDisplayStyle(ZONE self, ZONE_BORDER_DISPLAY_STYLE aBorderHatchStyle, int aBorderHatchPitch, bool aRebuilBorderdHatch)"""
14406 return _pcbnew.ZONE_SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
14407
14408 def SetBorderHatchPitch(self, aPitch):
14409 r"""SetBorderHatchPitch(ZONE self, int aPitch)"""
14410 return _pcbnew.ZONE_SetBorderHatchPitch(self, aPitch)
14411
14412 def UnHatchBorder(self):
14413 r"""UnHatchBorder(ZONE self)"""
14414 return _pcbnew.ZONE_UnHatchBorder(self)
14415
14416 def HatchBorder(self):
14417 r"""HatchBorder(ZONE self)"""
14418 return _pcbnew.ZONE_HatchBorder(self)
14419
14420 def GetHatchLines(self):
14421 r"""GetHatchLines(ZONE self) -> std::vector< SEG,std::allocator< SEG > > const &"""
14422 return _pcbnew.ZONE_GetHatchLines(self)
14423
14424 def BuildHashValue(self, aLayer):
14425 r"""BuildHashValue(ZONE self, PCB_LAYER_ID aLayer)"""
14426 return _pcbnew.ZONE_BuildHashValue(self, aLayer)
14427
14428 def GetHashValue(self, aLayer):
14429 r"""GetHashValue(ZONE self, PCB_LAYER_ID aLayer) -> MD5_HASH"""
14430 return _pcbnew.ZONE_GetHashValue(self, aLayer)
14431
14432# Register ZONE in _pcbnew:
14433_pcbnew.ZONE_swigregister(ZONE)
14434
14435def ZONE_ClassOf(aItem):
14436 r"""ZONE_ClassOf(EDA_ITEM aItem) -> bool"""
14437 return _pcbnew.ZONE_ClassOf(aItem)
14438
14440 r"""ZONE_GetDefaultHatchPitch() -> int"""
14441 return _pcbnew.ZONE_GetDefaultHatchPitch()
14442
14443ZONE_THERMAL_RELIEF_GAP_MM = _pcbnew.ZONE_THERMAL_RELIEF_GAP_MM
14444
14445ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM = _pcbnew.ZONE_THERMAL_RELIEF_COPPER_WIDTH_MM
14446
14447ZONE_THICKNESS_MM = _pcbnew.ZONE_THICKNESS_MM
14448
14449ZONE_THICKNESS_MIN_VALUE_MM = _pcbnew.ZONE_THICKNESS_MIN_VALUE_MM
14450
14451ZONE_CLEARANCE_MM = _pcbnew.ZONE_CLEARANCE_MM
14452
14453ZONE_CLEARANCE_MAX_VALUE_MM = _pcbnew.ZONE_CLEARANCE_MAX_VALUE_MM
14454
14455ZONE_BORDER_HATCH_DIST_MM = _pcbnew.ZONE_BORDER_HATCH_DIST_MM
14456
14457ZONE_BORDER_HATCH_MINDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MINDIST_MM
14458
14459ZONE_BORDER_HATCH_MAXDIST_MM = _pcbnew.ZONE_BORDER_HATCH_MAXDIST_MM
14460
14461ZONE_CONNECTION_INHERITED = _pcbnew.ZONE_CONNECTION_INHERITED
14462
14463ZONE_CONNECTION_NONE = _pcbnew.ZONE_CONNECTION_NONE
14464
14465ZONE_CONNECTION_THERMAL = _pcbnew.ZONE_CONNECTION_THERMAL
14466
14467ZONE_CONNECTION_FULL = _pcbnew.ZONE_CONNECTION_FULL
14468
14469ZONE_CONNECTION_THT_THERMAL = _pcbnew.ZONE_CONNECTION_THT_THERMAL
14470
14471
14472def PrintZoneConnection(aConnection):
14473 r"""PrintZoneConnection(ZONE_CONNECTION aConnection) -> wxString"""
14474 return _pcbnew.PrintZoneConnection(aConnection)
14475
14476def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None):
14477 r"""InvokeNonCopperZonesEditor(PCB_BASE_FRAME * aParent, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
14478 return _pcbnew.InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings)
14479
14480def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None):
14481 r"""InvokeCopperZonesEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
14482 return _pcbnew.InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings)
14483
14484def InvokeRuleAreaEditor(aCaller, aSettings, aConvertSettings=None):
14485 r"""InvokeRuleAreaEditor(PCB_BASE_FRAME * aCaller, ZONE_SETTINGS aSettings, CONVERT_SETTINGS * aConvertSettings=None) -> int"""
14486 return _pcbnew.InvokeRuleAreaEditor(aCaller, aSettings, aConvertSettings)
14488 r"""Proxy of C++ ZONE_FILLER class."""
14489
14490 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14491 __repr__ = _swig_repr
14492 __swig_destroy__ = _pcbnew.delete_ZONE_FILLER
14493
14494 def SetProgressReporter(self, aReporter):
14495 r"""SetProgressReporter(ZONE_FILLER self, PROGRESS_REPORTER * aReporter)"""
14496 return _pcbnew.ZONE_FILLER_SetProgressReporter(self, aReporter)
14497
14499 r"""GetProgressReporter(ZONE_FILLER self) -> PROGRESS_REPORTER *"""
14500 return _pcbnew.ZONE_FILLER_GetProgressReporter(self)
14501
14502 def Fill(self, aZones, aCheck=False, aParent=None):
14503 r"""Fill(ZONE_FILLER self, ZONES aZones, bool aCheck=False, wxWindow * aParent=None) -> bool"""
14504 return _pcbnew.ZONE_FILLER_Fill(self, aZones, aCheck, aParent)
14505
14506 def IsDebug(self):
14507 r"""IsDebug(ZONE_FILLER self) -> bool"""
14508 return _pcbnew.ZONE_FILLER_IsDebug(self)
14509
14510 def __init__(self, aBoard):
14511 r"""__init__(ZONE_FILLER self, BOARD aBoard) -> ZONE_FILLER"""
14512 _pcbnew.ZONE_FILLER_swiginit(self, _pcbnew.new_ZONE_FILLER(aBoard))
14513
14514# Register ZONE_FILLER in _pcbnew:
14515_pcbnew.ZONE_FILLER_swigregister(ZONE_FILLER)
14516
14517ZONE_FILL_MODE_POLYGONS = _pcbnew.ZONE_FILL_MODE_POLYGONS
14518
14519ZONE_FILL_MODE_HATCH_PATTERN = _pcbnew.ZONE_FILL_MODE_HATCH_PATTERN
14520
14521ZONE_BORDER_DISPLAY_STYLE_NO_HATCH = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_NO_HATCH
14522
14523ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_FULL
14524
14525ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_DIAGONAL_EDGE
14526
14527ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER = _pcbnew.ZONE_BORDER_DISPLAY_STYLE_INVISIBLE_BORDER
14528
14529ISLAND_REMOVAL_MODE_ALWAYS = _pcbnew.ISLAND_REMOVAL_MODE_ALWAYS
14530
14531ISLAND_REMOVAL_MODE_NEVER = _pcbnew.ISLAND_REMOVAL_MODE_NEVER
14532
14533ISLAND_REMOVAL_MODE_AREA = _pcbnew.ISLAND_REMOVAL_MODE_AREA
14534
14536 r"""Proxy of C++ ZONE_SETTINGS class."""
14537
14538 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14539 __repr__ = _swig_repr
14540 SMOOTHING_UNDEFINED = _pcbnew.ZONE_SETTINGS_SMOOTHING_UNDEFINED
14541
14542 SMOOTHING_NONE = _pcbnew.ZONE_SETTINGS_SMOOTHING_NONE
14543
14544 SMOOTHING_CHAMFER = _pcbnew.ZONE_SETTINGS_SMOOTHING_CHAMFER
14545
14546 SMOOTHING_FILLET = _pcbnew.ZONE_SETTINGS_SMOOTHING_FILLET
14547
14548 SMOOTHING_LAST = _pcbnew.ZONE_SETTINGS_SMOOTHING_LAST
14549
14550 m_ZonePriority = property(_pcbnew.ZONE_SETTINGS_m_ZonePriority_get, _pcbnew.ZONE_SETTINGS_m_ZonePriority_set, doc=r"""m_ZonePriority : unsigned int""")
14551 m_FillMode = property(_pcbnew.ZONE_SETTINGS_m_FillMode_get, _pcbnew.ZONE_SETTINGS_m_FillMode_set, doc=r"""m_FillMode : ZONE_FILL_MODE""")
14552 m_ZoneClearance = property(_pcbnew.ZONE_SETTINGS_m_ZoneClearance_get, _pcbnew.ZONE_SETTINGS_m_ZoneClearance_set, doc=r"""m_ZoneClearance : int""")
14553 m_ZoneMinThickness = property(_pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_get, _pcbnew.ZONE_SETTINGS_m_ZoneMinThickness_set, doc=r"""m_ZoneMinThickness : int""")
14554 m_HatchThickness = property(_pcbnew.ZONE_SETTINGS_m_HatchThickness_get, _pcbnew.ZONE_SETTINGS_m_HatchThickness_set, doc=r"""m_HatchThickness : int""")
14555 m_HatchGap = property(_pcbnew.ZONE_SETTINGS_m_HatchGap_get, _pcbnew.ZONE_SETTINGS_m_HatchGap_set, doc=r"""m_HatchGap : int""")
14556 m_HatchOrientation = property(_pcbnew.ZONE_SETTINGS_m_HatchOrientation_get, _pcbnew.ZONE_SETTINGS_m_HatchOrientation_set, doc=r"""m_HatchOrientation : EDA_ANGLE""")
14557 m_HatchSmoothingLevel = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingLevel_set, doc=r"""m_HatchSmoothingLevel : int""")
14558 m_HatchSmoothingValue = property(_pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_get, _pcbnew.ZONE_SETTINGS_m_HatchSmoothingValue_set, doc=r"""m_HatchSmoothingValue : double""")
14559 m_HatchHoleMinArea = property(_pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_get, _pcbnew.ZONE_SETTINGS_m_HatchHoleMinArea_set, doc=r"""m_HatchHoleMinArea : double""")
14560 m_HatchBorderAlgorithm = property(_pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_get, _pcbnew.ZONE_SETTINGS_m_HatchBorderAlgorithm_set, doc=r"""m_HatchBorderAlgorithm : int""")
14561 m_NetcodeSelection = property(_pcbnew.ZONE_SETTINGS_m_NetcodeSelection_get, _pcbnew.ZONE_SETTINGS_m_NetcodeSelection_set, doc=r"""m_NetcodeSelection : int""")
14562 m_Name = property(_pcbnew.ZONE_SETTINGS_m_Name_get, _pcbnew.ZONE_SETTINGS_m_Name_set, doc=r"""m_Name : wxString""")
14563 m_Layers = property(_pcbnew.ZONE_SETTINGS_m_Layers_get, _pcbnew.ZONE_SETTINGS_m_Layers_set, doc=r"""m_Layers : LSET""")
14564 m_ZoneBorderDisplayStyle = property(_pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_get, _pcbnew.ZONE_SETTINGS_m_ZoneBorderDisplayStyle_set, doc=r"""m_ZoneBorderDisplayStyle : ZONE_BORDER_DISPLAY_STYLE""")
14565 m_BorderHatchPitch = property(_pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_get, _pcbnew.ZONE_SETTINGS_m_BorderHatchPitch_set, doc=r"""m_BorderHatchPitch : int""")
14566 m_ThermalReliefGap = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefGap_set, doc=r"""m_ThermalReliefGap : long""")
14567 m_ThermalReliefSpokeWidth = property(_pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_get, _pcbnew.ZONE_SETTINGS_m_ThermalReliefSpokeWidth_set, doc=r"""m_ThermalReliefSpokeWidth : long""")
14568 m_Locked = property(_pcbnew.ZONE_SETTINGS_m_Locked_get, _pcbnew.ZONE_SETTINGS_m_Locked_set, doc=r"""m_Locked : bool""")
14569 m_TeardropType = property(_pcbnew.ZONE_SETTINGS_m_TeardropType_get, _pcbnew.ZONE_SETTINGS_m_TeardropType_set, doc=r"""m_TeardropType : TEARDROP_TYPE""")
14570
14571 def __init__(self):
14572 r"""__init__(ZONE_SETTINGS self) -> ZONE_SETTINGS"""
14573 _pcbnew.ZONE_SETTINGS_swiginit(self, _pcbnew.new_ZONE_SETTINGS())
14574
14575 def __eq__(self, aOther):
14576 r"""__eq__(ZONE_SETTINGS self, ZONE_SETTINGS aOther) -> bool"""
14577 return _pcbnew.ZONE_SETTINGS___eq__(self, aOther)
14578
14579 def __ne__(self, aOther):
14580 r"""__ne__(ZONE_SETTINGS self, ZONE_SETTINGS aOther) -> bool"""
14581 return _pcbnew.ZONE_SETTINGS___ne__(self, aOther)
14582
14583 def __lshift__(self, aSource):
14584 r"""__lshift__(ZONE_SETTINGS self, ZONE aSource) -> ZONE_SETTINGS"""
14585 return _pcbnew.ZONE_SETTINGS___lshift__(self, aSource)
14586
14587 @staticmethod
14589 r"""GetDefaultSettings() -> ZONE_SETTINGS"""
14590 return _pcbnew.ZONE_SETTINGS_GetDefaultSettings()
14591
14592 def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode):
14593 r"""SetupLayersList(ZONE_SETTINGS self, wxDataViewListCtrl * aList, PCB_BASE_FRAME * aFrame, LSET aLayers, bool aFpEditorMode)"""
14594 return _pcbnew.ZONE_SETTINGS_SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
14595
14596 def ExportSetting(self, aTarget, aFullExport=True):
14597 r"""ExportSetting(ZONE_SETTINGS self, ZONE aTarget, bool aFullExport=True)"""
14598 return _pcbnew.ZONE_SETTINGS_ExportSetting(self, aTarget, aFullExport)
14599
14600 def SetCornerSmoothingType(self, aType):
14601 r"""SetCornerSmoothingType(ZONE_SETTINGS self, int aType)"""
14602 return _pcbnew.ZONE_SETTINGS_SetCornerSmoothingType(self, aType)
14603
14605 r"""GetCornerSmoothingType(ZONE_SETTINGS self) -> int"""
14606 return _pcbnew.ZONE_SETTINGS_GetCornerSmoothingType(self)
14607
14608 def SetCornerRadius(self, aRadius):
14609 r"""SetCornerRadius(ZONE_SETTINGS self, int aRadius)"""
14610 return _pcbnew.ZONE_SETTINGS_SetCornerRadius(self, aRadius)
14611
14613 r"""GetCornerRadius(ZONE_SETTINGS self) -> unsigned int"""
14614 return _pcbnew.ZONE_SETTINGS_GetCornerRadius(self)
14615
14617 r"""GetPadConnection(ZONE_SETTINGS self) -> ZONE_CONNECTION"""
14618 return _pcbnew.ZONE_SETTINGS_GetPadConnection(self)
14619
14620 def SetPadConnection(self, aPadConnection):
14621 r"""SetPadConnection(ZONE_SETTINGS self, ZONE_CONNECTION aPadConnection)"""
14622 return _pcbnew.ZONE_SETTINGS_SetPadConnection(self, aPadConnection)
14623
14624 def GetIsRuleArea(self):
14625 r"""GetIsRuleArea(ZONE_SETTINGS self) -> bool"""
14626 return _pcbnew.ZONE_SETTINGS_GetIsRuleArea(self)
14627
14629 r"""GetDoNotAllowCopperPour(ZONE_SETTINGS self) -> bool"""
14630 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowCopperPour(self)
14631
14633 r"""GetDoNotAllowVias(ZONE_SETTINGS self) -> bool"""
14634 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowVias(self)
14635
14637 r"""GetDoNotAllowTracks(ZONE_SETTINGS self) -> bool"""
14638 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowTracks(self)
14639
14641 r"""GetDoNotAllowPads(ZONE_SETTINGS self) -> bool"""
14642 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowPads(self)
14643
14645 r"""GetDoNotAllowFootprints(ZONE_SETTINGS self) -> bool"""
14646 return _pcbnew.ZONE_SETTINGS_GetDoNotAllowFootprints(self)
14647
14648 def SetIsRuleArea(self, aEnable):
14649 r"""SetIsRuleArea(ZONE_SETTINGS self, bool aEnable)"""
14650 return _pcbnew.ZONE_SETTINGS_SetIsRuleArea(self, aEnable)
14651
14652 def SetDoNotAllowCopperPour(self, aEnable):
14653 r"""SetDoNotAllowCopperPour(ZONE_SETTINGS self, bool aEnable)"""
14654 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowCopperPour(self, aEnable)
14655
14656 def SetDoNotAllowVias(self, aEnable):
14657 r"""SetDoNotAllowVias(ZONE_SETTINGS self, bool aEnable)"""
14658 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowVias(self, aEnable)
14659
14660 def SetDoNotAllowTracks(self, aEnable):
14661 r"""SetDoNotAllowTracks(ZONE_SETTINGS self, bool aEnable)"""
14662 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowTracks(self, aEnable)
14663
14664 def SetDoNotAllowPads(self, aEnable):
14665 r"""SetDoNotAllowPads(ZONE_SETTINGS self, bool aEnable)"""
14666 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowPads(self, aEnable)
14667
14668 def SetDoNotAllowFootprints(self, aEnable):
14669 r"""SetDoNotAllowFootprints(ZONE_SETTINGS self, bool aEnable)"""
14670 return _pcbnew.ZONE_SETTINGS_SetDoNotAllowFootprints(self, aEnable)
14671
14673 r"""GetIslandRemovalMode(ZONE_SETTINGS self) -> ISLAND_REMOVAL_MODE"""
14674 return _pcbnew.ZONE_SETTINGS_GetIslandRemovalMode(self)
14675
14676 def SetIslandRemovalMode(self, aRemove):
14677 r"""SetIslandRemovalMode(ZONE_SETTINGS self, ISLAND_REMOVAL_MODE aRemove)"""
14678 return _pcbnew.ZONE_SETTINGS_SetIslandRemovalMode(self, aRemove)
14679
14681 r"""GetMinIslandArea(ZONE_SETTINGS self) -> long long"""
14682 return _pcbnew.ZONE_SETTINGS_GetMinIslandArea(self)
14683
14684 def SetMinIslandArea(self, aArea):
14685 r"""SetMinIslandArea(ZONE_SETTINGS self, long long aArea)"""
14686 return _pcbnew.ZONE_SETTINGS_SetMinIslandArea(self, aArea)
14687 __swig_destroy__ = _pcbnew.delete_ZONE_SETTINGS
14688
14689# Register ZONE_SETTINGS in _pcbnew:
14690_pcbnew.ZONE_SETTINGS_swigregister(ZONE_SETTINGS)
14691
14693 r"""ZONE_SETTINGS_GetDefaultSettings() -> ZONE_SETTINGS"""
14694 return _pcbnew.ZONE_SETTINGS_GetDefaultSettings()
14695
14696TENTHS_OF_A_DEGREE_T = _pcbnew.TENTHS_OF_A_DEGREE_T
14697
14698DEGREES_T = _pcbnew.DEGREES_T
14699
14700RADIANS_T = _pcbnew.RADIANS_T
14701
14703 r"""Proxy of C++ EDA_ANGLE class."""
14704
14705 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14706 __repr__ = _swig_repr
14707
14708 def __init__(self, *args):
14709 r"""
14710 __init__(EDA_ANGLE self, double aValue, EDA_ANGLE_T aAngleType) -> EDA_ANGLE
14711 __init__(EDA_ANGLE self, double aAngleInDegrees) -> EDA_ANGLE
14712 __init__(EDA_ANGLE self, VECTOR2D const & aVector) -> EDA_ANGLE
14713 __init__(EDA_ANGLE self, VECTOR2I aVector) -> EDA_ANGLE
14714 __init__(EDA_ANGLE self) -> EDA_ANGLE
14715 """
14716 _pcbnew.EDA_ANGLE_swiginit(self, _pcbnew.new_EDA_ANGLE(*args))
14717
14718 def AsDegrees(self):
14719 r"""AsDegrees(EDA_ANGLE self) -> double"""
14720 return _pcbnew.EDA_ANGLE_AsDegrees(self)
14721
14723 r"""AsTenthsOfADegree(EDA_ANGLE self) -> int"""
14724 return _pcbnew.EDA_ANGLE_AsTenthsOfADegree(self)
14725
14726 def AsRadians(self):
14727 r"""AsRadians(EDA_ANGLE self) -> double"""
14728 return _pcbnew.EDA_ANGLE_AsRadians(self)
14729 DEGREES_TO_RADIANS = _pcbnew.EDA_ANGLE_DEGREES_TO_RADIANS
14730
14731
14732 def IsCardinal(self):
14733 r"""IsCardinal(EDA_ANGLE self) -> bool"""
14734 return _pcbnew.EDA_ANGLE_IsCardinal(self)
14735
14736 def IsCardinal90(self):
14737 r"""IsCardinal90(EDA_ANGLE self) -> bool"""
14738 return _pcbnew.EDA_ANGLE_IsCardinal90(self)
14739
14740 def IsZero(self):
14741 r"""IsZero(EDA_ANGLE self) -> bool"""
14742 return _pcbnew.EDA_ANGLE_IsZero(self)
14743
14744 def IsHorizontal(self):
14745 r"""IsHorizontal(EDA_ANGLE self) -> bool"""
14746 return _pcbnew.EDA_ANGLE_IsHorizontal(self)
14747
14748 def IsVertical(self):
14749 r"""IsVertical(EDA_ANGLE self) -> bool"""
14750 return _pcbnew.EDA_ANGLE_IsVertical(self)
14751
14752 def IsParallelTo(self, aAngle):
14753 r"""IsParallelTo(EDA_ANGLE self, EDA_ANGLE aAngle) -> bool"""
14754 return _pcbnew.EDA_ANGLE_IsParallelTo(self, aAngle)
14755
14756 def Invert(self):
14757 r"""Invert(EDA_ANGLE self) -> EDA_ANGLE"""
14758 return _pcbnew.EDA_ANGLE_Invert(self)
14759
14760 def Sin(self):
14761 r"""Sin(EDA_ANGLE self) -> double"""
14762 return _pcbnew.EDA_ANGLE_Sin(self)
14763
14764 def Cos(self):
14765 r"""Cos(EDA_ANGLE self) -> double"""
14766 return _pcbnew.EDA_ANGLE_Cos(self)
14767
14768 def Tan(self):
14769 r"""Tan(EDA_ANGLE self) -> double"""
14770 return _pcbnew.EDA_ANGLE_Tan(self)
14771
14772 @staticmethod
14773 def Arccos(x):
14774 r"""Arccos(double x) -> EDA_ANGLE"""
14775 return _pcbnew.EDA_ANGLE_Arccos(x)
14776
14777 @staticmethod
14778 def Arcsin(x):
14779 r"""Arcsin(double x) -> EDA_ANGLE"""
14780 return _pcbnew.EDA_ANGLE_Arcsin(x)
14781
14782 @staticmethod
14783 def Arctan(x):
14784 r"""Arctan(double x) -> EDA_ANGLE"""
14785 return _pcbnew.EDA_ANGLE_Arctan(x)
14786
14787 @staticmethod
14788 def Arctan2(y, x):
14789 r"""Arctan2(double y, double x) -> EDA_ANGLE"""
14790 return _pcbnew.EDA_ANGLE_Arctan2(y, x)
14791
14792 def Normalize(self):
14793 r"""Normalize(EDA_ANGLE self) -> EDA_ANGLE"""
14794 return _pcbnew.EDA_ANGLE_Normalize(self)
14795
14796 def Normalized(self):
14797 r"""Normalized(EDA_ANGLE self) -> EDA_ANGLE"""
14798 return _pcbnew.EDA_ANGLE_Normalized(self)
14799
14801 r"""NormalizeNegative(EDA_ANGLE self) -> EDA_ANGLE"""
14802 return _pcbnew.EDA_ANGLE_NormalizeNegative(self)
14803
14804 def Normalize90(self):
14805 r"""Normalize90(EDA_ANGLE self) -> EDA_ANGLE"""
14806 return _pcbnew.EDA_ANGLE_Normalize90(self)
14807
14808 def Normalize180(self):
14809 r"""Normalize180(EDA_ANGLE self) -> EDA_ANGLE"""
14810 return _pcbnew.EDA_ANGLE_Normalize180(self)
14811
14812 def Normalize720(self):
14813 r"""Normalize720(EDA_ANGLE self) -> EDA_ANGLE"""
14814 return _pcbnew.EDA_ANGLE_Normalize720(self)
14815
14816 def KeepUpright(self):
14817 r"""KeepUpright(EDA_ANGLE self) -> EDA_ANGLE"""
14818 return _pcbnew.EDA_ANGLE_KeepUpright(self)
14819
14820 def Round(self, digits):
14821 r"""Round(EDA_ANGLE self, int digits) -> EDA_ANGLE"""
14822 return _pcbnew.EDA_ANGLE_Round(self, digits)
14823
14824 def __iadd__(self, aAngle):
14825 r"""__iadd__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
14826 return _pcbnew.EDA_ANGLE___iadd__(self, aAngle)
14827
14828 def __isub__(self, aAngle):
14829 r"""__isub__(EDA_ANGLE self, EDA_ANGLE aAngle) -> EDA_ANGLE"""
14830 return _pcbnew.EDA_ANGLE___isub__(self, aAngle)
14831
14832 def __add__(self, other):
14833 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
14834 n += other
14835 return n
14836
14837 def __sub__(self, other):
14838 n = EDA_ANGLE(self.AsDegrees(), DEGREES_T)
14839 n -= other
14840 return n
14841
14842 def __mul__(self, other):
14843 return EDA_ANGLE(self.AsDegrees() * other, DEGREES_T)
14844
14845 def __rmul__(self, other):
14846 return EDA_ANGLE(other * self.AsDegrees(), DEGREES_T)
14847
14848 def __truediv__(self, other):
14849 return EDA_ANGLE(self.AsDegrees() / other, DEGREES_T)
14850
14851 def __abs__(self):
14852 return EDA_ANGLE(abs(self.AsDegrees()), DEGREES_T)
14853
14854 __swig_destroy__ = _pcbnew.delete_EDA_ANGLE
14855
14856# Register EDA_ANGLE in _pcbnew:
14857_pcbnew.EDA_ANGLE_swigregister(EDA_ANGLE)
14858
14860 r"""EDA_ANGLE_Arccos(double x) -> EDA_ANGLE"""
14861 return _pcbnew.EDA_ANGLE_Arccos(x)
14862
14864 r"""EDA_ANGLE_Arcsin(double x) -> EDA_ANGLE"""
14865 return _pcbnew.EDA_ANGLE_Arcsin(x)
14866
14868 r"""EDA_ANGLE_Arctan(double x) -> EDA_ANGLE"""
14869 return _pcbnew.EDA_ANGLE_Arctan(x)
14870
14872 r"""EDA_ANGLE_Arctan2(double y, double x) -> EDA_ANGLE"""
14873 return _pcbnew.EDA_ANGLE_Arctan2(y, x)
14874
14875SHAPE_T_SEGMENT = _pcbnew.SHAPE_T_SEGMENT
14876
14877SHAPE_T_RECTANGLE = _pcbnew.SHAPE_T_RECTANGLE
14878
14879SHAPE_T_ARC = _pcbnew.SHAPE_T_ARC
14880
14881SHAPE_T_CIRCLE = _pcbnew.SHAPE_T_CIRCLE
14882
14883SHAPE_T_POLY = _pcbnew.SHAPE_T_POLY
14884
14885SHAPE_T_BEZIER = _pcbnew.SHAPE_T_BEZIER
14886
14887FILL_T_NO_FILL = _pcbnew.FILL_T_NO_FILL
14888
14889FILL_T_FILLED_SHAPE = _pcbnew.FILL_T_FILLED_SHAPE
14890
14891FILL_T_FILLED_WITH_BG_BODYCOLOR = _pcbnew.FILL_T_FILLED_WITH_BG_BODYCOLOR
14892
14893FILL_T_FILLED_WITH_COLOR = _pcbnew.FILL_T_FILLED_WITH_COLOR
14894
14896 r"""Proxy of C++ ARC_MID class."""
14897
14898 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14899 __repr__ = _swig_repr
14900 mid = property(_pcbnew.ARC_MID_mid_get, _pcbnew.ARC_MID_mid_set, doc=r"""mid : VECTOR2I""")
14901 start = property(_pcbnew.ARC_MID_start_get, _pcbnew.ARC_MID_start_set, doc=r"""start : VECTOR2I""")
14902 end = property(_pcbnew.ARC_MID_end_get, _pcbnew.ARC_MID_end_set, doc=r"""end : VECTOR2I""")
14903 center = property(_pcbnew.ARC_MID_center_get, _pcbnew.ARC_MID_center_set, doc=r"""center : VECTOR2I""")
14904
14905 def __init__(self):
14906 r"""__init__(ARC_MID self) -> ARC_MID"""
14907 _pcbnew.ARC_MID_swiginit(self, _pcbnew.new_ARC_MID())
14908 __swig_destroy__ = _pcbnew.delete_ARC_MID
14909
14910# Register ARC_MID in _pcbnew:
14911_pcbnew.ARC_MID_swigregister(ARC_MID)
14912ANGLE_HORIZONTAL = cvar.ANGLE_HORIZONTAL
14913ANGLE_VERTICAL = cvar.ANGLE_VERTICAL
14914FULL_CIRCLE = cvar.FULL_CIRCLE
14915ANGLE_0 = cvar.ANGLE_0
14916ANGLE_45 = cvar.ANGLE_45
14917ANGLE_90 = cvar.ANGLE_90
14918ANGLE_135 = cvar.ANGLE_135
14919ANGLE_180 = cvar.ANGLE_180
14920ANGLE_270 = cvar.ANGLE_270
14921ANGLE_360 = cvar.ANGLE_360
14922
14924 r"""Proxy of C++ EDA_SHAPE class."""
14925
14926 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14927 __repr__ = _swig_repr
14928
14929 def __init__(self, aType, aLineWidth, aFill):
14930 r"""__init__(EDA_SHAPE self, SHAPE_T aType, int aLineWidth, FILL_T aFill) -> EDA_SHAPE"""
14931 _pcbnew.EDA_SHAPE_swiginit(self, _pcbnew.new_EDA_SHAPE(aType, aLineWidth, aFill))
14932 __swig_destroy__ = _pcbnew.delete_EDA_SHAPE
14933
14934 def SwapShape(self, aImage):
14935 r"""SwapShape(EDA_SHAPE self, EDA_SHAPE aImage)"""
14936 return _pcbnew.EDA_SHAPE_SwapShape(self, aImage)
14937
14938 def ShowShape(self):
14939 r"""ShowShape(EDA_SHAPE self) -> wxString"""
14940 return _pcbnew.EDA_SHAPE_ShowShape(self)
14941
14943 r"""SHAPE_T_asString(EDA_SHAPE self) -> wxString"""
14944 return _pcbnew.EDA_SHAPE_SHAPE_T_asString(self)
14945
14946 def IsProxyItem(self):
14947 r"""IsProxyItem(EDA_SHAPE self) -> bool"""
14948 return _pcbnew.EDA_SHAPE_IsProxyItem(self)
14949
14950 def SetIsProxyItem(self, aIsProxy=True):
14951 r"""SetIsProxyItem(EDA_SHAPE self, bool aIsProxy=True)"""
14952 return _pcbnew.EDA_SHAPE_SetIsProxyItem(self, aIsProxy)
14953
14954 def IsFilled(self):
14955 r"""IsFilled(EDA_SHAPE self) -> bool"""
14956 return _pcbnew.EDA_SHAPE_IsFilled(self)
14957
14958 def SetFilled(self, aFlag):
14959 r"""SetFilled(EDA_SHAPE self, bool aFlag)"""
14960 return _pcbnew.EDA_SHAPE_SetFilled(self, aFlag)
14961
14962 def SetFillMode(self, aFill):
14963 r"""SetFillMode(EDA_SHAPE self, FILL_T aFill)"""
14964 return _pcbnew.EDA_SHAPE_SetFillMode(self, aFill)
14965
14966 def GetFillMode(self):
14967 r"""GetFillMode(EDA_SHAPE self) -> FILL_T"""
14968 return _pcbnew.EDA_SHAPE_GetFillMode(self)
14969
14970 def IsClosed(self):
14971 r"""IsClosed(EDA_SHAPE self) -> bool"""
14972 return _pcbnew.EDA_SHAPE_IsClosed(self)
14973
14974 def GetFillColor(self):
14975 r"""GetFillColor(EDA_SHAPE self) -> COLOR4D"""
14976 return _pcbnew.EDA_SHAPE_GetFillColor(self)
14977
14978 def SetFillColor(self, aColor):
14979 r"""SetFillColor(EDA_SHAPE self, COLOR4D aColor)"""
14980 return _pcbnew.EDA_SHAPE_SetFillColor(self, aColor)
14981
14982 def SetWidth(self, aWidth):
14983 r"""SetWidth(EDA_SHAPE self, int aWidth)"""
14984 return _pcbnew.EDA_SHAPE_SetWidth(self, aWidth)
14985
14986 def GetWidth(self):
14987 r"""GetWidth(EDA_SHAPE self) -> int"""
14988 return _pcbnew.EDA_SHAPE_GetWidth(self)
14989
14991 r"""GetEffectiveWidth(EDA_SHAPE self) -> int"""
14992 return _pcbnew.EDA_SHAPE_GetEffectiveWidth(self)
14993
14994 def SetLineStyle(self, aStyle):
14995 r"""SetLineStyle(EDA_SHAPE self, LINE_STYLE const aStyle)"""
14996 return _pcbnew.EDA_SHAPE_SetLineStyle(self, aStyle)
14997
14998 def GetLineStyle(self):
14999 r"""GetLineStyle(EDA_SHAPE self) -> LINE_STYLE"""
15000 return _pcbnew.EDA_SHAPE_GetLineStyle(self)
15001
15002 def SetLineColor(self, aColor):
15003 r"""SetLineColor(EDA_SHAPE self, COLOR4D aColor)"""
15004 return _pcbnew.EDA_SHAPE_SetLineColor(self, aColor)
15005
15006 def GetLineColor(self):
15007 r"""GetLineColor(EDA_SHAPE self) -> COLOR4D"""
15008 return _pcbnew.EDA_SHAPE_GetLineColor(self)
15009
15010 def SetShape(self, aShape):
15011 r"""SetShape(EDA_SHAPE self, SHAPE_T aShape)"""
15012 return _pcbnew.EDA_SHAPE_SetShape(self, aShape)
15013
15014 def GetShape(self):
15015 r"""GetShape(EDA_SHAPE self) -> SHAPE_T"""
15016 return _pcbnew.EDA_SHAPE_GetShape(self)
15017
15019 r"""GetFriendlyName(EDA_SHAPE self) -> wxString"""
15020 return _pcbnew.EDA_SHAPE_GetFriendlyName(self)
15021
15022 def GetStart(self):
15023 r"""GetStart(EDA_SHAPE self) -> VECTOR2I"""
15024 return _pcbnew.EDA_SHAPE_GetStart(self)
15025
15026 def GetStartY(self):
15027 r"""GetStartY(EDA_SHAPE self) -> int"""
15028 return _pcbnew.EDA_SHAPE_GetStartY(self)
15029
15030 def GetStartX(self):
15031 r"""GetStartX(EDA_SHAPE self) -> int"""
15032 return _pcbnew.EDA_SHAPE_GetStartX(self)
15033
15034 def SetStart(self, aStart):
15035 r"""SetStart(EDA_SHAPE self, VECTOR2I aStart)"""
15036 return _pcbnew.EDA_SHAPE_SetStart(self, aStart)
15037
15038 def SetStartY(self, y):
15039 r"""SetStartY(EDA_SHAPE self, int y)"""
15040 return _pcbnew.EDA_SHAPE_SetStartY(self, y)
15041
15042 def SetStartX(self, x):
15043 r"""SetStartX(EDA_SHAPE self, int x)"""
15044 return _pcbnew.EDA_SHAPE_SetStartX(self, x)
15045
15046 def SetCenterY(self, y):
15047 r"""SetCenterY(EDA_SHAPE self, int y)"""
15048 return _pcbnew.EDA_SHAPE_SetCenterY(self, y)
15049
15050 def SetCenterX(self, x):
15051 r"""SetCenterX(EDA_SHAPE self, int x)"""
15052 return _pcbnew.EDA_SHAPE_SetCenterX(self, x)
15053
15054 def GetEnd(self):
15055 r"""GetEnd(EDA_SHAPE self) -> VECTOR2I"""
15056 return _pcbnew.EDA_SHAPE_GetEnd(self)
15057
15058 def GetEndY(self):
15059 r"""GetEndY(EDA_SHAPE self) -> int"""
15060 return _pcbnew.EDA_SHAPE_GetEndY(self)
15061
15062 def GetEndX(self):
15063 r"""GetEndX(EDA_SHAPE self) -> int"""
15064 return _pcbnew.EDA_SHAPE_GetEndX(self)
15065
15066 def SetEnd(self, aEnd):
15067 r"""SetEnd(EDA_SHAPE self, VECTOR2I aEnd)"""
15068 return _pcbnew.EDA_SHAPE_SetEnd(self, aEnd)
15069
15070 def SetEndY(self, aY):
15071 r"""SetEndY(EDA_SHAPE self, int aY)"""
15072 return _pcbnew.EDA_SHAPE_SetEndY(self, aY)
15073
15074 def SetEndX(self, aX):
15075 r"""SetEndX(EDA_SHAPE self, int aX)"""
15076 return _pcbnew.EDA_SHAPE_SetEndX(self, aX)
15077
15078 def SetRadius(self, aX):
15079 r"""SetRadius(EDA_SHAPE self, int aX)"""
15080 return _pcbnew.EDA_SHAPE_SetRadius(self, aX)
15081
15082 def GetTopLeft(self):
15083 r"""GetTopLeft(EDA_SHAPE self) -> VECTOR2I"""
15084 return _pcbnew.EDA_SHAPE_GetTopLeft(self)
15085
15086 def GetBotRight(self):
15087 r"""GetBotRight(EDA_SHAPE self) -> VECTOR2I"""
15088 return _pcbnew.EDA_SHAPE_GetBotRight(self)
15089
15090 def SetTop(self, val):
15091 r"""SetTop(EDA_SHAPE self, int val)"""
15092 return _pcbnew.EDA_SHAPE_SetTop(self, val)
15093
15094 def SetLeft(self, val):
15095 r"""SetLeft(EDA_SHAPE self, int val)"""
15096 return _pcbnew.EDA_SHAPE_SetLeft(self, val)
15097
15098 def SetRight(self, val):
15099 r"""SetRight(EDA_SHAPE self, int val)"""
15100 return _pcbnew.EDA_SHAPE_SetRight(self, val)
15101
15102 def SetBottom(self, val):
15103 r"""SetBottom(EDA_SHAPE self, int val)"""
15104 return _pcbnew.EDA_SHAPE_SetBottom(self, val)
15105
15106 def SetBezierC1(self, aPt):
15107 r"""SetBezierC1(EDA_SHAPE self, VECTOR2I aPt)"""
15108 return _pcbnew.EDA_SHAPE_SetBezierC1(self, aPt)
15109
15110 def GetBezierC1(self):
15111 r"""GetBezierC1(EDA_SHAPE self) -> VECTOR2I"""
15112 return _pcbnew.EDA_SHAPE_GetBezierC1(self)
15113
15114 def SetBezierC2(self, aPt):
15115 r"""SetBezierC2(EDA_SHAPE self, VECTOR2I aPt)"""
15116 return _pcbnew.EDA_SHAPE_SetBezierC2(self, aPt)
15117
15118 def GetBezierC2(self):
15119 r"""GetBezierC2(EDA_SHAPE self) -> VECTOR2I"""
15120 return _pcbnew.EDA_SHAPE_GetBezierC2(self)
15121
15122 def SetCenter(self, aCenter):
15123 r"""SetCenter(EDA_SHAPE self, VECTOR2I aCenter)"""
15124 return _pcbnew.EDA_SHAPE_SetCenter(self, aCenter)
15125
15126 def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False):
15127 r"""SetArcAngleAndEnd(EDA_SHAPE self, EDA_ANGLE aAngle, bool aCheckNegativeAngle=False)"""
15128 return _pcbnew.EDA_SHAPE_SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle)
15129
15130 def GetArcAngle(self):
15131 r"""GetArcAngle(EDA_SHAPE self) -> EDA_ANGLE"""
15132 return _pcbnew.EDA_SHAPE_GetArcAngle(self)
15133
15135 r"""GetSegmentAngle(EDA_SHAPE self) -> EDA_ANGLE"""
15136 return _pcbnew.EDA_SHAPE_GetSegmentAngle(self)
15137
15138 def EndsSwapped(self):
15139 r"""EndsSwapped(EDA_SHAPE self) -> bool"""
15140 return _pcbnew.EDA_SHAPE_EndsSwapped(self)
15141
15142 def GetArcMid(self):
15143 r"""GetArcMid(EDA_SHAPE self) -> VECTOR2I"""
15144 return _pcbnew.EDA_SHAPE_GetArcMid(self)
15145
15147 r"""GetRectCorners(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
15148 return _pcbnew.EDA_SHAPE_GetRectCorners(self)
15149
15150 def CalcArcAngles(self, aStartAngle, aEndAngle):
15151 r"""CalcArcAngles(EDA_SHAPE self, EDA_ANGLE aStartAngle, EDA_ANGLE aEndAngle)"""
15152 return _pcbnew.EDA_SHAPE_CalcArcAngles(self, aStartAngle, aEndAngle)
15153
15154 def GetRadius(self):
15155 r"""GetRadius(EDA_SHAPE self) -> int"""
15156 return _pcbnew.EDA_SHAPE_GetRadius(self)
15157
15158 def SetArcGeometry(self, aStart, aMid, aEnd):
15159 r"""SetArcGeometry(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd)"""
15160 return _pcbnew.EDA_SHAPE_SetArcGeometry(self, aStart, aMid, aEnd)
15161
15162 def SetCachedArcData(self, aStart, aMid, aEnd, aCenter):
15163 r"""SetCachedArcData(EDA_SHAPE self, VECTOR2I aStart, VECTOR2I aMid, VECTOR2I aEnd, VECTOR2I aCenter)"""
15164 return _pcbnew.EDA_SHAPE_SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
15165
15167 r"""GetBezierPoints(EDA_SHAPE self) -> VECTOR_VECTOR2I"""
15168 return _pcbnew.EDA_SHAPE_GetBezierPoints(self)
15169
15170 def DupPolyPointsList(self, aBuffer):
15171 r"""DupPolyPointsList(EDA_SHAPE self, VECTOR_VECTOR2I aBuffer)"""
15172 return _pcbnew.EDA_SHAPE_DupPolyPointsList(self, aBuffer)
15173
15174 def GetPointCount(self):
15175 r"""GetPointCount(EDA_SHAPE self) -> int"""
15176 return _pcbnew.EDA_SHAPE_GetPointCount(self)
15177
15178 def GetPolyShape(self, *args):
15179 r"""
15180 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
15181 GetPolyShape(EDA_SHAPE self) -> SHAPE_POLY_SET
15182 """
15183 return _pcbnew.EDA_SHAPE_GetPolyShape(self, *args)
15184
15186 r"""IsPolyShapeValid(EDA_SHAPE self) -> bool"""
15187 return _pcbnew.EDA_SHAPE_IsPolyShapeValid(self)
15188
15189 def SetPolyShape(self, aShape):
15190 r"""SetPolyShape(EDA_SHAPE self, SHAPE_POLY_SET aShape)"""
15191 return _pcbnew.EDA_SHAPE_SetPolyShape(self, aShape)
15192
15193 def SetPolyPoints(self, aPoints):
15194 r"""SetPolyPoints(EDA_SHAPE self, VECTOR_VECTOR2I aPoints)"""
15195 return _pcbnew.EDA_SHAPE_SetPolyPoints(self, aPoints)
15196
15198 r"""RebuildBezierToSegmentsPointsList(EDA_SHAPE self, int aMinSegLen)"""
15199 return _pcbnew.EDA_SHAPE_RebuildBezierToSegmentsPointsList(self, aMinSegLen)
15200
15201 def MakeEffectiveShapes(self, aEdgeOnly=False):
15202 r"""MakeEffectiveShapes(EDA_SHAPE self, bool aEdgeOnly=False) -> std::vector< SHAPE *,std::allocator< SHAPE * > >"""
15203 return _pcbnew.EDA_SHAPE_MakeEffectiveShapes(self, aEdgeOnly)
15204
15205 def ShapeGetMsgPanelInfo(self, aFrame, aList):
15206 r"""ShapeGetMsgPanelInfo(EDA_SHAPE self, EDA_DRAW_FRAME * aFrame, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
15207 return _pcbnew.EDA_SHAPE_ShapeGetMsgPanelInfo(self, aFrame, aList)
15208
15209 def SetLength(self, aLength):
15210 r"""SetLength(EDA_SHAPE self, double const & aLength)"""
15211 return _pcbnew.EDA_SHAPE_SetLength(self, aLength)
15212
15213 def SetRectangle(self, aHeight, aWidth):
15214 r"""SetRectangle(EDA_SHAPE self, long long const & aHeight, long long const & aWidth)"""
15215 return _pcbnew.EDA_SHAPE_SetRectangle(self, aHeight, aWidth)
15216
15217 def SetSegmentAngle(self, aAngle):
15218 r"""SetSegmentAngle(EDA_SHAPE self, EDA_ANGLE aAngle)"""
15219 return _pcbnew.EDA_SHAPE_SetSegmentAngle(self, aAngle)
15220
15222 r"""IsClockwiseArc(EDA_SHAPE self) -> bool"""
15223 return _pcbnew.EDA_SHAPE_IsClockwiseArc(self)
15224
15225 def GetLength(self):
15226 r"""GetLength(EDA_SHAPE self) -> double"""
15227 return _pcbnew.EDA_SHAPE_GetLength(self)
15228
15230 r"""GetRectangleHeight(EDA_SHAPE self) -> int"""
15231 return _pcbnew.EDA_SHAPE_GetRectangleHeight(self)
15232
15234 r"""GetRectangleWidth(EDA_SHAPE self) -> int"""
15235 return _pcbnew.EDA_SHAPE_GetRectangleWidth(self)
15236
15237 def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
15238 r"""TransformShapeToPolygon(EDA_SHAPE self, SHAPE_POLY_SET aBuffer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
15239 return _pcbnew.EDA_SHAPE_TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth)
15240
15241 def Compare(self, aOther):
15242 r"""Compare(EDA_SHAPE self, EDA_SHAPE aOther) -> int"""
15243 return _pcbnew.EDA_SHAPE_Compare(self, aOther)
15244
15245 def Similarity(self, aOther):
15246 r"""Similarity(EDA_SHAPE self, EDA_SHAPE aOther) -> double"""
15247 return _pcbnew.EDA_SHAPE_Similarity(self, aOther)
15248
15249 def __eq__(self, aOther):
15250 r"""__eq__(EDA_SHAPE self, EDA_SHAPE aOther) -> bool"""
15251 return _pcbnew.EDA_SHAPE___eq__(self, aOther)
15252
15253# Register EDA_SHAPE in _pcbnew:
15254_pcbnew.EDA_SHAPE_swigregister(EDA_SHAPE)
15255
15257 r"""Proxy of C++ PCB_SHAPE class."""
15258
15259 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15260 __repr__ = _swig_repr
15261
15262 def __init__(self, *args):
15263 r"""
15264 __init__(PCB_SHAPE self, BOARD_ITEM aParent, KICAD_T aItemType, SHAPE_T aShapeType) -> PCB_SHAPE
15265 __init__(PCB_SHAPE self, BOARD_ITEM aParent=None, SHAPE_T aShapeType=SEGMENT) -> PCB_SHAPE
15266 """
15267 _pcbnew.PCB_SHAPE_swiginit(self, _pcbnew.new_PCB_SHAPE(*args))
15268 __swig_destroy__ = _pcbnew.delete_PCB_SHAPE
15269
15270 @staticmethod
15271 def ClassOf(aItem):
15272 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15273 return _pcbnew.PCB_SHAPE_ClassOf(aItem)
15274
15276 r"""GetFriendlyName(PCB_SHAPE self) -> wxString"""
15277 return _pcbnew.PCB_SHAPE_GetFriendlyName(self)
15278
15280 r"""GetConnectionPoints(PCB_SHAPE self) -> VECTOR_VECTOR2I"""
15281 return _pcbnew.PCB_SHAPE_GetConnectionPoints(self)
15282
15283 def GetCorners(self):
15284 r"""GetCorners(PCB_SHAPE self) -> VECTOR_VECTOR2I"""
15285 return _pcbnew.PCB_SHAPE_GetCorners(self)
15286
15287 def GetEffectiveShape(self, *args):
15288 r"""GetEffectiveShape(PCB_SHAPE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15289 return _pcbnew.PCB_SHAPE_GetEffectiveShape(self, *args)
15290
15291 def SetIsProxyItem(self, aIsProxy=True):
15292 r"""SetIsProxyItem(PCB_SHAPE self, bool aIsProxy=True)"""
15293 return _pcbnew.PCB_SHAPE_SetIsProxyItem(self, aIsProxy)
15294
15295 def HitTest(self, *args):
15296 r"""
15297 HitTest(PCB_SHAPE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
15298 HitTest(PCB_SHAPE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15299 """
15300 return _pcbnew.PCB_SHAPE_HitTest(self, *args)
15301
15302 def Mirror(self, aCentre, aMirrorAroundXAxis):
15303 r"""Mirror(PCB_SHAPE self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
15304 return _pcbnew.PCB_SHAPE_Mirror(self, aCentre, aMirrorAroundXAxis)
15305
15306 def Scale(self, aScale):
15307 r"""Scale(PCB_SHAPE self, double aScale)"""
15308 return _pcbnew.PCB_SHAPE_Scale(self, aScale)
15309
15310 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
15311 r"""TransformShapeToPolygon(PCB_SHAPE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
15312 return _pcbnew.PCB_SHAPE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
15313
15314 def ViewGetLOD(self, aLayer, aView):
15315 r"""ViewGetLOD(PCB_SHAPE self, int aLayer, KIGFX::VIEW * aView) -> double"""
15316 return _pcbnew.PCB_SHAPE_ViewGetLOD(self, aLayer, aView)
15317
15319 r"""GetArcAngleStart(PCB_SHAPE self) -> EDA_ANGLE"""
15320 return _pcbnew.PCB_SHAPE_GetArcAngleStart(self)
15321
15322 def GetShapeStr(self):
15323 return self.ShowShape()
15324
15325
15326# Register PCB_SHAPE in _pcbnew:
15327_pcbnew.PCB_SHAPE_swigregister(PCB_SHAPE)
15328
15330 r"""PCB_SHAPE_ClassOf(EDA_ITEM aItem) -> bool"""
15331 return _pcbnew.PCB_SHAPE_ClassOf(aItem)
15332
15334 r"""Proxy of C++ PCB_TEXT class."""
15335
15336 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15337 __repr__ = _swig_repr
15338
15339 def __init__(self, *args):
15340 r"""
15341 __init__(PCB_TEXT self, BOARD_ITEM parent, KICAD_T idtype=PCB_TEXT_T) -> PCB_TEXT
15342 __init__(PCB_TEXT self, FOOTPRINT aParent, KICAD_T idtype=PCB_TEXT_T) -> PCB_TEXT
15343 """
15344 _pcbnew.PCB_TEXT_swiginit(self, _pcbnew.new_PCB_TEXT(*args))
15345 __swig_destroy__ = _pcbnew.delete_PCB_TEXT
15346
15347 @staticmethod
15348 def ClassOf(aItem):
15349 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15350 return _pcbnew.PCB_TEXT_ClassOf(aItem)
15351
15352 def KeepUpright(self):
15353 r"""KeepUpright(PCB_TEXT self)"""
15354 return _pcbnew.PCB_TEXT_KeepUpright(self)
15355
15356 def GetShownText(self, aAllowExtraText, aDepth=0):
15357 r"""GetShownText(PCB_TEXT self, bool aAllowExtraText, int aDepth=0) -> wxString"""
15358 return _pcbnew.PCB_TEXT_GetShownText(self, aAllowExtraText, aDepth)
15359
15360 def Mirror(self, aCentre, aMirrorAroundXAxis):
15361 r"""Mirror(PCB_TEXT self, VECTOR2I aCentre, bool aMirrorAroundXAxis)"""
15362 return _pcbnew.PCB_TEXT_Mirror(self, aCentre, aMirrorAroundXAxis)
15363
15364 def TextHitTest(self, *args):
15365 r"""
15366 TextHitTest(PCB_TEXT self, VECTOR2I aPoint, int aAccuracy=0) -> bool
15367 TextHitTest(PCB_TEXT self, BOX2I aRect, bool aContains, int aAccuracy=0) -> bool
15368 """
15369 return _pcbnew.PCB_TEXT_TextHitTest(self, *args)
15370
15371 def HitTest(self, *args):
15372 r"""
15373 HitTest(PCB_TEXT self, VECTOR2I aPosition, int aAccuracy) -> bool
15374 HitTest(PCB_TEXT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15375 """
15376 return _pcbnew.PCB_TEXT_HitTest(self, *args)
15377
15378 def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc):
15379 r"""TransformTextToPolySet(PCB_TEXT self, SHAPE_POLY_SET aBuffer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc)"""
15380 return _pcbnew.PCB_TEXT_TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
15381
15382 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
15383 r"""TransformShapeToPolygon(PCB_TEXT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
15384 return _pcbnew.PCB_TEXT_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
15385
15386 def GetEffectiveShape(self, *args):
15387 r"""GetEffectiveShape(PCB_TEXT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15388 return _pcbnew.PCB_TEXT_GetEffectiveShape(self, *args)
15389
15391 r"""GetTextTypeDescription(PCB_TEXT self) -> wxString"""
15392 return _pcbnew.PCB_TEXT_GetTextTypeDescription(self)
15393
15394 def ViewGetLOD(self, aLayer, aView):
15395 r"""ViewGetLOD(PCB_TEXT self, int aLayer, KIGFX::VIEW * aView) -> double"""
15396 return _pcbnew.PCB_TEXT_ViewGetLOD(self, aLayer, aView)
15397
15398# Register PCB_TEXT in _pcbnew:
15399_pcbnew.PCB_TEXT_swigregister(PCB_TEXT)
15400S_SEGMENT = cvar.S_SEGMENT
15401S_RECT = cvar.S_RECT
15402S_ARC = cvar.S_ARC
15403S_CIRCLE = cvar.S_CIRCLE
15404S_POLYGON = cvar.S_POLYGON
15405S_CURVE = cvar.S_CURVE
15406SHAPE_T_RECT = cvar.SHAPE_T_RECT
15407
15409 r"""PCB_TEXT_ClassOf(EDA_ITEM aItem) -> bool"""
15410 return _pcbnew.PCB_TEXT_ClassOf(aItem)
15411
15413 r"""Proxy of C++ PCB_TEXTBOX class."""
15414
15415 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15416 __repr__ = _swig_repr
15417
15418 def __init__(self, parent):
15419 r"""__init__(PCB_TEXTBOX self, BOARD_ITEM parent) -> PCB_TEXTBOX"""
15420 _pcbnew.PCB_TEXTBOX_swiginit(self, _pcbnew.new_PCB_TEXTBOX(parent))
15421 __swig_destroy__ = _pcbnew.delete_PCB_TEXTBOX
15422
15423 @staticmethod
15424 def ClassOf(aItem):
15425 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15426 return _pcbnew.PCB_TEXTBOX_ClassOf(aItem)
15427
15429 r"""GetFriendlyName(PCB_TEXTBOX self) -> wxString"""
15430 return _pcbnew.PCB_TEXTBOX_GetFriendlyName(self)
15431
15432 def GetTextMargin(self):
15433 r"""GetTextMargin(PCB_TEXTBOX self) -> int"""
15434 return _pcbnew.PCB_TEXTBOX_GetTextMargin(self)
15435
15436 def GetDrawPos(self, *args):
15437 r"""
15438 GetDrawPos(PCB_TEXTBOX self) -> VECTOR2I
15439 GetDrawPos(PCB_TEXTBOX self, bool aIsFlipped) -> VECTOR2I
15440 """
15441 return _pcbnew.PCB_TEXTBOX_GetDrawPos(self, *args)
15442
15443 def GetShownText(self, aAllowExtraText, aDepth=0):
15444 r"""GetShownText(PCB_TEXTBOX self, bool aAllowExtraText, int aDepth=0) -> wxString"""
15445 return _pcbnew.PCB_TEXTBOX_GetShownText(self, aAllowExtraText, aDepth)
15446
15448 r"""GetAnchorAndOppositeCorner(PCB_TEXTBOX self) -> VECTOR_VECTOR2I"""
15449 return _pcbnew.PCB_TEXTBOX_GetAnchorAndOppositeCorner(self)
15450
15451 def HitTest(self, *args):
15452 r"""
15453 HitTest(PCB_TEXTBOX self, VECTOR2I aPosition, int aAccuracy) -> bool
15454 HitTest(PCB_TEXTBOX self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15455 """
15456 return _pcbnew.PCB_TEXTBOX_HitTest(self, *args)
15457
15458 def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc):
15459 r"""TransformTextToPolySet(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc)"""
15460 return _pcbnew.PCB_TEXTBOX_TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
15461
15462 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False):
15463 r"""TransformShapeToPolygon(PCB_TEXTBOX self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aMaxError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
15464 return _pcbnew.PCB_TEXTBOX_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth)
15465
15466 def GetEffectiveShape(self, *args):
15467 r"""GetEffectiveShape(PCB_TEXTBOX self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15468 return _pcbnew.PCB_TEXTBOX_GetEffectiveShape(self, *args)
15469
15470 def ViewGetLOD(self, aLayer, aView):
15471 r"""ViewGetLOD(PCB_TEXTBOX self, int aLayer, KIGFX::VIEW * aView) -> double"""
15472 return _pcbnew.PCB_TEXTBOX_ViewGetLOD(self, aLayer, aView)
15473
15475 r"""IsBorderEnabled(PCB_TEXTBOX self) -> bool"""
15476 return _pcbnew.PCB_TEXTBOX_IsBorderEnabled(self)
15477
15478 def SetBorderEnabled(self, enabled):
15479 r"""SetBorderEnabled(PCB_TEXTBOX self, bool enabled)"""
15480 return _pcbnew.PCB_TEXTBOX_SetBorderEnabled(self, enabled)
15481
15482 def SetBorderWidth(self, aSize):
15483 r"""SetBorderWidth(PCB_TEXTBOX self, int const aSize)"""
15484 return _pcbnew.PCB_TEXTBOX_SetBorderWidth(self, aSize)
15485
15487 r"""GetBorderWidth(PCB_TEXTBOX self) -> int"""
15488 return _pcbnew.PCB_TEXTBOX_GetBorderWidth(self)
15489
15490# Register PCB_TEXTBOX in _pcbnew:
15491_pcbnew.PCB_TEXTBOX_swigregister(PCB_TEXTBOX)
15492
15494 r"""PCB_TEXTBOX_ClassOf(EDA_ITEM aItem) -> bool"""
15495 return _pcbnew.PCB_TEXTBOX_ClassOf(aItem)
15496
15497GR_TEXT_H_ALIGN_LEFT = _pcbnew.GR_TEXT_H_ALIGN_LEFT
15498
15499GR_TEXT_H_ALIGN_CENTER = _pcbnew.GR_TEXT_H_ALIGN_CENTER
15500
15501GR_TEXT_H_ALIGN_RIGHT = _pcbnew.GR_TEXT_H_ALIGN_RIGHT
15502
15503GR_TEXT_V_ALIGN_TOP = _pcbnew.GR_TEXT_V_ALIGN_TOP
15504
15505GR_TEXT_V_ALIGN_CENTER = _pcbnew.GR_TEXT_V_ALIGN_CENTER
15506
15507GR_TEXT_V_ALIGN_BOTTOM = _pcbnew.GR_TEXT_V_ALIGN_BOTTOM
15508
15510 r"""Proxy of C++ TEXT_ATTRIBUTES class."""
15511
15512 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15513 __repr__ = _swig_repr
15514
15515 def __init__(self, aFont=None):
15516 r"""__init__(TEXT_ATTRIBUTES self, KIFONT::FONT * aFont=None) -> TEXT_ATTRIBUTES"""
15517 _pcbnew.TEXT_ATTRIBUTES_swiginit(self, _pcbnew.new_TEXT_ATTRIBUTES(aFont))
15518
15519 def Compare(self, aRhs):
15520 r"""Compare(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> int"""
15521 return _pcbnew.TEXT_ATTRIBUTES_Compare(self, aRhs)
15522
15523 def __eq__(self, aRhs):
15524 r"""__eq__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
15525 return _pcbnew.TEXT_ATTRIBUTES___eq__(self, aRhs)
15526
15527 def __gt__(self, aRhs):
15528 r"""__gt__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
15529 return _pcbnew.TEXT_ATTRIBUTES___gt__(self, aRhs)
15530
15531 def __lt__(self, aRhs):
15532 r"""__lt__(TEXT_ATTRIBUTES self, TEXT_ATTRIBUTES aRhs) -> bool"""
15533 return _pcbnew.TEXT_ATTRIBUTES___lt__(self, aRhs)
15534 m_Font = property(_pcbnew.TEXT_ATTRIBUTES_m_Font_get, _pcbnew.TEXT_ATTRIBUTES_m_Font_set, doc=r"""m_Font : p.KIFONT::FONT""")
15535 m_Halign = property(_pcbnew.TEXT_ATTRIBUTES_m_Halign_get, _pcbnew.TEXT_ATTRIBUTES_m_Halign_set, doc=r"""m_Halign : GR_TEXT_H_ALIGN_T""")
15536 m_Valign = property(_pcbnew.TEXT_ATTRIBUTES_m_Valign_get, _pcbnew.TEXT_ATTRIBUTES_m_Valign_set, doc=r"""m_Valign : GR_TEXT_V_ALIGN_T""")
15537 m_Angle = property(_pcbnew.TEXT_ATTRIBUTES_m_Angle_get, _pcbnew.TEXT_ATTRIBUTES_m_Angle_set, doc=r"""m_Angle : EDA_ANGLE""")
15538 m_LineSpacing = property(_pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_get, _pcbnew.TEXT_ATTRIBUTES_m_LineSpacing_set, doc=r"""m_LineSpacing : double""")
15539 m_StrokeWidth = property(_pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_get, _pcbnew.TEXT_ATTRIBUTES_m_StrokeWidth_set, doc=r"""m_StrokeWidth : int""")
15540 m_Italic = property(_pcbnew.TEXT_ATTRIBUTES_m_Italic_get, _pcbnew.TEXT_ATTRIBUTES_m_Italic_set, doc=r"""m_Italic : bool""")
15541 m_Bold = property(_pcbnew.TEXT_ATTRIBUTES_m_Bold_get, _pcbnew.TEXT_ATTRIBUTES_m_Bold_set, doc=r"""m_Bold : bool""")
15542 m_Underlined = property(_pcbnew.TEXT_ATTRIBUTES_m_Underlined_get, _pcbnew.TEXT_ATTRIBUTES_m_Underlined_set, doc=r"""m_Underlined : bool""")
15543 m_Color = property(_pcbnew.TEXT_ATTRIBUTES_m_Color_get, _pcbnew.TEXT_ATTRIBUTES_m_Color_set, doc=r"""m_Color : KIGFX::COLOR4D""")
15544 m_Visible = property(_pcbnew.TEXT_ATTRIBUTES_m_Visible_get, _pcbnew.TEXT_ATTRIBUTES_m_Visible_set, doc=r"""m_Visible : bool""")
15545 m_Mirrored = property(_pcbnew.TEXT_ATTRIBUTES_m_Mirrored_get, _pcbnew.TEXT_ATTRIBUTES_m_Mirrored_set, doc=r"""m_Mirrored : bool""")
15546 m_Multiline = property(_pcbnew.TEXT_ATTRIBUTES_m_Multiline_get, _pcbnew.TEXT_ATTRIBUTES_m_Multiline_set, doc=r"""m_Multiline : bool""")
15547 m_Size = property(_pcbnew.TEXT_ATTRIBUTES_m_Size_get, _pcbnew.TEXT_ATTRIBUTES_m_Size_set, doc=r"""m_Size : VECTOR2I""")
15548 m_KeepUpright = property(_pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_get, _pcbnew.TEXT_ATTRIBUTES_m_KeepUpright_set, doc=r"""m_KeepUpright : bool""")
15549 __swig_destroy__ = _pcbnew.delete_TEXT_ATTRIBUTES
15550
15551# Register TEXT_ATTRIBUTES in _pcbnew:
15552_pcbnew.TEXT_ATTRIBUTES_swigregister(TEXT_ATTRIBUTES)
15553
15555 r"""Proxy of C++ PCB_FIELD class."""
15556
15557 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15558 __repr__ = _swig_repr
15559
15560 def __init__(self, *args):
15561 r"""
15562 __init__(PCB_FIELD self, FOOTPRINT aParent, int aFieldId, wxString aName=wxEmptyString) -> PCB_FIELD
15563 __init__(PCB_FIELD self, PCB_TEXT aText, int aFieldId, wxString aName=wxEmptyString) -> PCB_FIELD
15564 """
15565 _pcbnew.PCB_FIELD_swiginit(self, _pcbnew.new_PCB_FIELD(*args))
15566
15567 @staticmethod
15568 def ClassOf(aItem):
15569 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15570 return _pcbnew.PCB_FIELD_ClassOf(aItem)
15571
15572 def IsReference(self):
15573 r"""IsReference(PCB_FIELD self) -> bool"""
15574 return _pcbnew.PCB_FIELD_IsReference(self)
15575
15576 def IsValue(self):
15577 r"""IsValue(PCB_FIELD self) -> bool"""
15578 return _pcbnew.PCB_FIELD_IsValue(self)
15579
15580 def IsFootprint(self):
15581 r"""IsFootprint(PCB_FIELD self) -> bool"""
15582 return _pcbnew.PCB_FIELD_IsFootprint(self)
15583
15584 def IsDatasheet(self):
15585 r"""IsDatasheet(PCB_FIELD self) -> bool"""
15586 return _pcbnew.PCB_FIELD_IsDatasheet(self)
15587
15589 r"""IsMandatoryField(PCB_FIELD self) -> bool"""
15590 return _pcbnew.PCB_FIELD_IsMandatoryField(self)
15591
15592 def ViewGetLOD(self, aLayer, aView):
15593 r"""ViewGetLOD(PCB_FIELD self, int aLayer, KIGFX::VIEW * aView) -> double"""
15594 return _pcbnew.PCB_FIELD_ViewGetLOD(self, aLayer, aView)
15595
15596 def CloneField(self):
15597 r"""CloneField(PCB_FIELD self) -> PCB_FIELD"""
15598 return _pcbnew.PCB_FIELD_CloneField(self)
15599
15600 def GetName(self, aUseDefaultName=True):
15601 r"""GetName(PCB_FIELD self, bool aUseDefaultName=True) -> wxString"""
15602 return _pcbnew.PCB_FIELD_GetName(self, aUseDefaultName)
15603
15605 r"""GetCanonicalName(PCB_FIELD self) -> wxString"""
15606 return _pcbnew.PCB_FIELD_GetCanonicalName(self)
15607
15608 def SetName(self, aName):
15609 r"""SetName(PCB_FIELD self, wxString aName)"""
15610 return _pcbnew.PCB_FIELD_SetName(self, aName)
15611
15612 def GetId(self):
15613 r"""GetId(PCB_FIELD self) -> int"""
15614 return _pcbnew.PCB_FIELD_GetId(self)
15615
15616 def SetId(self, aId):
15617 r"""SetId(PCB_FIELD self, int aId)"""
15618 return _pcbnew.PCB_FIELD_SetId(self, aId)
15619 __swig_destroy__ = _pcbnew.delete_PCB_FIELD
15620
15621# Register PCB_FIELD in _pcbnew:
15622_pcbnew.PCB_FIELD_swigregister(PCB_FIELD)
15623
15625 r"""PCB_FIELD_ClassOf(EDA_ITEM aItem) -> bool"""
15626 return _pcbnew.PCB_FIELD_ClassOf(aItem)
15627
15628DIM_UNITS_FORMAT_NO_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_NO_SUFFIX
15629
15630DIM_UNITS_FORMAT_BARE_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_BARE_SUFFIX
15631
15632DIM_UNITS_FORMAT_PAREN_SUFFIX = _pcbnew.DIM_UNITS_FORMAT_PAREN_SUFFIX
15633
15634DIM_PRECISION_X = _pcbnew.DIM_PRECISION_X
15635
15636DIM_PRECISION_X_X = _pcbnew.DIM_PRECISION_X_X
15637
15638DIM_PRECISION_X_XX = _pcbnew.DIM_PRECISION_X_XX
15639
15640DIM_PRECISION_X_XXX = _pcbnew.DIM_PRECISION_X_XXX
15641
15642DIM_PRECISION_X_XXXX = _pcbnew.DIM_PRECISION_X_XXXX
15643
15644DIM_PRECISION_X_XXXXX = _pcbnew.DIM_PRECISION_X_XXXXX
15645
15646DIM_PRECISION_V_VV = _pcbnew.DIM_PRECISION_V_VV
15647
15648DIM_PRECISION_V_VVV = _pcbnew.DIM_PRECISION_V_VVV
15649
15650DIM_PRECISION_V_VVVV = _pcbnew.DIM_PRECISION_V_VVVV
15651
15652DIM_PRECISION_V_VVVVV = _pcbnew.DIM_PRECISION_V_VVVVV
15653
15654DIM_TEXT_POSITION_OUTSIDE = _pcbnew.DIM_TEXT_POSITION_OUTSIDE
15655
15656DIM_TEXT_POSITION_INLINE = _pcbnew.DIM_TEXT_POSITION_INLINE
15657
15658DIM_TEXT_POSITION_MANUAL = _pcbnew.DIM_TEXT_POSITION_MANUAL
15659
15660DIM_UNITS_MODE_INCHES = _pcbnew.DIM_UNITS_MODE_INCHES
15661
15662DIM_UNITS_MODE_MILS = _pcbnew.DIM_UNITS_MODE_MILS
15663
15664DIM_UNITS_MODE_MILLIMETRES = _pcbnew.DIM_UNITS_MODE_MILLIMETRES
15665
15666DIM_UNITS_MODE_AUTOMATIC = _pcbnew.DIM_UNITS_MODE_AUTOMATIC
15667
15668DIM_TEXT_BORDER_NONE = _pcbnew.DIM_TEXT_BORDER_NONE
15669
15670DIM_TEXT_BORDER_RECTANGLE = _pcbnew.DIM_TEXT_BORDER_RECTANGLE
15671
15672DIM_TEXT_BORDER_CIRCLE = _pcbnew.DIM_TEXT_BORDER_CIRCLE
15673
15674DIM_TEXT_BORDER_ROUNDRECT = _pcbnew.DIM_TEXT_BORDER_ROUNDRECT
15675
15677 r"""Proxy of C++ PCB_DIMENSION_BASE class."""
15678
15679 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15680
15681 def __init__(self, *args, **kwargs):
15682 raise AttributeError("No constructor defined - class is abstract")
15683 __repr__ = _swig_repr
15684
15685 def GetStart(self):
15686 r"""GetStart(PCB_DIMENSION_BASE self) -> VECTOR2I"""
15687 return _pcbnew.PCB_DIMENSION_BASE_GetStart(self)
15688
15689 def SetStart(self, aPoint):
15690 r"""SetStart(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
15691 return _pcbnew.PCB_DIMENSION_BASE_SetStart(self, aPoint)
15692
15693 def GetEnd(self):
15694 r"""GetEnd(PCB_DIMENSION_BASE self) -> VECTOR2I"""
15695 return _pcbnew.PCB_DIMENSION_BASE_GetEnd(self)
15696
15697 def SetEnd(self, aPoint):
15698 r"""SetEnd(PCB_DIMENSION_BASE self, VECTOR2I aPoint)"""
15699 return _pcbnew.PCB_DIMENSION_BASE_SetEnd(self, aPoint)
15700
15702 r"""GetOverrideTextEnabled(PCB_DIMENSION_BASE self) -> bool"""
15703 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideTextEnabled(self)
15704
15705 def SetOverrideTextEnabled(self, aOverride):
15706 r"""SetOverrideTextEnabled(PCB_DIMENSION_BASE self, bool aOverride)"""
15707 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideTextEnabled(self, aOverride)
15708
15710 r"""GetOverrideText(PCB_DIMENSION_BASE self) -> wxString"""
15711 return _pcbnew.PCB_DIMENSION_BASE_GetOverrideText(self)
15712
15713 def SetOverrideText(self, aValue):
15714 r"""SetOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
15715 return _pcbnew.PCB_DIMENSION_BASE_SetOverrideText(self, aValue)
15716
15717 def ChangeOverrideText(self, aValue):
15718 r"""ChangeOverrideText(PCB_DIMENSION_BASE self, wxString aValue)"""
15719 return _pcbnew.PCB_DIMENSION_BASE_ChangeOverrideText(self, aValue)
15720
15722 r"""GetMeasuredValue(PCB_DIMENSION_BASE self) -> int"""
15723 return _pcbnew.PCB_DIMENSION_BASE_GetMeasuredValue(self)
15724
15725 def SetMeasuredValue(self, aValue):
15726 r"""SetMeasuredValue(PCB_DIMENSION_BASE self, int aValue)"""
15727 return _pcbnew.PCB_DIMENSION_BASE_SetMeasuredValue(self, aValue)
15728
15729 def GetValueText(self):
15730 r"""GetValueText(PCB_DIMENSION_BASE self) -> wxString"""
15731 return _pcbnew.PCB_DIMENSION_BASE_GetValueText(self)
15732
15733 def Update(self):
15734 r"""Update(PCB_DIMENSION_BASE self)"""
15735 return _pcbnew.PCB_DIMENSION_BASE_Update(self)
15736
15737 def UpdateUnits(self):
15738 r"""UpdateUnits(PCB_DIMENSION_BASE self)"""
15739 return _pcbnew.PCB_DIMENSION_BASE_UpdateUnits(self)
15740
15741 def GetPrefix(self):
15742 r"""GetPrefix(PCB_DIMENSION_BASE self) -> wxString"""
15743 return _pcbnew.PCB_DIMENSION_BASE_GetPrefix(self)
15744
15745 def SetPrefix(self, aPrefix):
15746 r"""SetPrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
15747 return _pcbnew.PCB_DIMENSION_BASE_SetPrefix(self, aPrefix)
15748
15749 def ChangePrefix(self, aPrefix):
15750 r"""ChangePrefix(PCB_DIMENSION_BASE self, wxString aPrefix)"""
15751 return _pcbnew.PCB_DIMENSION_BASE_ChangePrefix(self, aPrefix)
15752
15753 def GetSuffix(self):
15754 r"""GetSuffix(PCB_DIMENSION_BASE self) -> wxString"""
15755 return _pcbnew.PCB_DIMENSION_BASE_GetSuffix(self)
15756
15757 def SetSuffix(self, aSuffix):
15758 r"""SetSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
15759 return _pcbnew.PCB_DIMENSION_BASE_SetSuffix(self, aSuffix)
15760
15761 def ChangeSuffix(self, aSuffix):
15762 r"""ChangeSuffix(PCB_DIMENSION_BASE self, wxString aSuffix)"""
15763 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuffix(self, aSuffix)
15764
15765 def GetUnits(self):
15766 r"""GetUnits(PCB_DIMENSION_BASE self) -> EDA_UNITS"""
15767 return _pcbnew.PCB_DIMENSION_BASE_GetUnits(self)
15768
15769 def SetUnits(self, aUnits):
15770 r"""SetUnits(PCB_DIMENSION_BASE self, EDA_UNITS aUnits)"""
15771 return _pcbnew.PCB_DIMENSION_BASE_SetUnits(self, aUnits)
15772
15773 def GetUnitsMode(self):
15774 r"""GetUnitsMode(PCB_DIMENSION_BASE self) -> DIM_UNITS_MODE"""
15775 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsMode(self)
15776
15777 def SetUnitsMode(self, aMode):
15778 r"""SetUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
15779 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsMode(self, aMode)
15780
15781 def ChangeUnitsMode(self, aMode):
15782 r"""ChangeUnitsMode(PCB_DIMENSION_BASE self, DIM_UNITS_MODE aMode)"""
15783 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsMode(self, aMode)
15784
15785 def SetAutoUnits(self, aAuto=True):
15786 r"""SetAutoUnits(PCB_DIMENSION_BASE self, bool aAuto=True)"""
15787 return _pcbnew.PCB_DIMENSION_BASE_SetAutoUnits(self, aAuto)
15788
15790 r"""GetUnitsFormat(PCB_DIMENSION_BASE self) -> DIM_UNITS_FORMAT"""
15791 return _pcbnew.PCB_DIMENSION_BASE_GetUnitsFormat(self)
15792
15793 def SetUnitsFormat(self, aFormat):
15794 r"""SetUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
15795 return _pcbnew.PCB_DIMENSION_BASE_SetUnitsFormat(self, aFormat)
15796
15797 def ChangeUnitsFormat(self, aFormat):
15798 r"""ChangeUnitsFormat(PCB_DIMENSION_BASE self, DIM_UNITS_FORMAT const aFormat)"""
15799 return _pcbnew.PCB_DIMENSION_BASE_ChangeUnitsFormat(self, aFormat)
15800
15801 def GetPrecision(self):
15802 r"""GetPrecision(PCB_DIMENSION_BASE self) -> DIM_PRECISION"""
15803 return _pcbnew.PCB_DIMENSION_BASE_GetPrecision(self)
15804
15805 def SetPrecision(self, aPrecision):
15806 r"""SetPrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
15807 return _pcbnew.PCB_DIMENSION_BASE_SetPrecision(self, aPrecision)
15808
15809 def ChangePrecision(self, aPrecision):
15810 r"""ChangePrecision(PCB_DIMENSION_BASE self, DIM_PRECISION aPrecision)"""
15811 return _pcbnew.PCB_DIMENSION_BASE_ChangePrecision(self, aPrecision)
15812
15814 r"""GetSuppressZeroes(PCB_DIMENSION_BASE self) -> bool"""
15815 return _pcbnew.PCB_DIMENSION_BASE_GetSuppressZeroes(self)
15816
15817 def SetSuppressZeroes(self, aSuppress):
15818 r"""SetSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
15819 return _pcbnew.PCB_DIMENSION_BASE_SetSuppressZeroes(self, aSuppress)
15820
15821 def ChangeSuppressZeroes(self, aSuppress):
15822 r"""ChangeSuppressZeroes(PCB_DIMENSION_BASE self, bool aSuppress)"""
15823 return _pcbnew.PCB_DIMENSION_BASE_ChangeSuppressZeroes(self, aSuppress)
15824
15826 r"""GetKeepTextAligned(PCB_DIMENSION_BASE self) -> bool"""
15827 return _pcbnew.PCB_DIMENSION_BASE_GetKeepTextAligned(self)
15828
15829 def SetKeepTextAligned(self, aKeepAligned):
15830 r"""SetKeepTextAligned(PCB_DIMENSION_BASE self, bool aKeepAligned)"""
15831 return _pcbnew.PCB_DIMENSION_BASE_SetKeepTextAligned(self, aKeepAligned)
15832
15833 def SetTextPositionMode(self, aMode):
15834 r"""SetTextPositionMode(PCB_DIMENSION_BASE self, DIM_TEXT_POSITION aMode)"""
15835 return _pcbnew.PCB_DIMENSION_BASE_SetTextPositionMode(self, aMode)
15836
15838 r"""GetTextPositionMode(PCB_DIMENSION_BASE self) -> DIM_TEXT_POSITION"""
15839 return _pcbnew.PCB_DIMENSION_BASE_GetTextPositionMode(self)
15840
15842 r"""GetArrowLength(PCB_DIMENSION_BASE self) -> int"""
15843 return _pcbnew.PCB_DIMENSION_BASE_GetArrowLength(self)
15844
15845 def SetArrowLength(self, aLength):
15846 r"""SetArrowLength(PCB_DIMENSION_BASE self, int aLength)"""
15847 return _pcbnew.PCB_DIMENSION_BASE_SetArrowLength(self, aLength)
15848
15849 def SetExtensionOffset(self, aOffset):
15850 r"""SetExtensionOffset(PCB_DIMENSION_BASE self, int aOffset)"""
15851 return _pcbnew.PCB_DIMENSION_BASE_SetExtensionOffset(self, aOffset)
15852
15854 r"""GetExtensionOffset(PCB_DIMENSION_BASE self) -> int"""
15855 return _pcbnew.PCB_DIMENSION_BASE_GetExtensionOffset(self)
15856
15858 r"""GetLineThickness(PCB_DIMENSION_BASE self) -> int"""
15859 return _pcbnew.PCB_DIMENSION_BASE_GetLineThickness(self)
15860
15861 def SetLineThickness(self, aWidth):
15862 r"""SetLineThickness(PCB_DIMENSION_BASE self, int aWidth)"""
15863 return _pcbnew.PCB_DIMENSION_BASE_SetLineThickness(self, aWidth)
15864
15865 def GetShapes(self):
15866 r"""GetShapes(PCB_DIMENSION_BASE self) -> VECTOR_SHAPEPTR"""
15867 return _pcbnew.PCB_DIMENSION_BASE_GetShapes(self)
15868
15869 def Mirror(self, axis_pos, aMirrorLeftRight=False):
15870 r"""Mirror(PCB_DIMENSION_BASE self, VECTOR2I axis_pos, bool aMirrorLeftRight=False)"""
15871 return _pcbnew.PCB_DIMENSION_BASE_Mirror(self, axis_pos, aMirrorLeftRight)
15872
15873 def HitTest(self, *args):
15874 r"""
15875 HitTest(PCB_DIMENSION_BASE self, VECTOR2I aPosition, int aAccuracy) -> bool
15876 HitTest(PCB_DIMENSION_BASE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
15877 """
15878 return _pcbnew.PCB_DIMENSION_BASE_HitTest(self, *args)
15879
15880 def GetEffectiveShape(self, *args):
15881 r"""GetEffectiveShape(PCB_DIMENSION_BASE self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
15882 return _pcbnew.PCB_DIMENSION_BASE_GetEffectiveShape(self, *args)
15883
15884 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False):
15885 r"""TransformShapeToPolygon(PCB_DIMENSION_BASE self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool aIgnoreLineWidth=False)"""
15886 return _pcbnew.PCB_DIMENSION_BASE_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth)
15887 __swig_destroy__ = _pcbnew.delete_PCB_DIMENSION_BASE
15888
15889# Register PCB_DIMENSION_BASE in _pcbnew:
15890_pcbnew.PCB_DIMENSION_BASE_swigregister(PCB_DIMENSION_BASE)
15891
15893 r"""Proxy of C++ PCB_DIM_ALIGNED class."""
15894
15895 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15896 __repr__ = _swig_repr
15897
15898 def __init__(self, aParent, aType=PCB_DIM_ALIGNED_T):
15899 r"""__init__(PCB_DIM_ALIGNED self, BOARD_ITEM aParent, KICAD_T aType=PCB_DIM_ALIGNED_T) -> PCB_DIM_ALIGNED"""
15900 _pcbnew.PCB_DIM_ALIGNED_swiginit(self, _pcbnew.new_PCB_DIM_ALIGNED(aParent, aType))
15901 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ALIGNED
15902
15903 @staticmethod
15904 def ClassOf(aItem):
15905 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15906 return _pcbnew.PCB_DIM_ALIGNED_ClassOf(aItem)
15907
15908 def Mirror(self, axis_pos, aMirrorLeftRight=False):
15909 r"""Mirror(PCB_DIM_ALIGNED self, VECTOR2I axis_pos, bool aMirrorLeftRight=False)"""
15910 return _pcbnew.PCB_DIM_ALIGNED_Mirror(self, axis_pos, aMirrorLeftRight)
15911
15913 r"""GetCrossbarStart(PCB_DIM_ALIGNED self) -> VECTOR2I"""
15914 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarStart(self)
15915
15917 r"""GetCrossbarEnd(PCB_DIM_ALIGNED self) -> VECTOR2I"""
15918 return _pcbnew.PCB_DIM_ALIGNED_GetCrossbarEnd(self)
15919
15920 def SetHeight(self, aHeight):
15921 r"""SetHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15922 return _pcbnew.PCB_DIM_ALIGNED_SetHeight(self, aHeight)
15923
15924 def GetHeight(self):
15925 r"""GetHeight(PCB_DIM_ALIGNED self) -> int"""
15926 return _pcbnew.PCB_DIM_ALIGNED_GetHeight(self)
15927
15928 def ChangeHeight(self, aHeight):
15929 r"""ChangeHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15930 return _pcbnew.PCB_DIM_ALIGNED_ChangeHeight(self, aHeight)
15931
15932 def UpdateHeight(self, aCrossbarStart, aCrossbarEnd):
15933 r"""UpdateHeight(PCB_DIM_ALIGNED self, VECTOR2I aCrossbarStart, VECTOR2I aCrossbarEnd)"""
15934 return _pcbnew.PCB_DIM_ALIGNED_UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
15935
15936 def SetExtensionHeight(self, aHeight):
15937 r"""SetExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15938 return _pcbnew.PCB_DIM_ALIGNED_SetExtensionHeight(self, aHeight)
15939
15941 r"""GetExtensionHeight(PCB_DIM_ALIGNED self) -> int"""
15942 return _pcbnew.PCB_DIM_ALIGNED_GetExtensionHeight(self)
15943
15944 def ChangeExtensionHeight(self, aHeight):
15945 r"""ChangeExtensionHeight(PCB_DIM_ALIGNED self, int aHeight)"""
15946 return _pcbnew.PCB_DIM_ALIGNED_ChangeExtensionHeight(self, aHeight)
15947
15948 def GetAngle(self):
15949 r"""GetAngle(PCB_DIM_ALIGNED self) -> double"""
15950 return _pcbnew.PCB_DIM_ALIGNED_GetAngle(self)
15951
15952# Register PCB_DIM_ALIGNED in _pcbnew:
15953_pcbnew.PCB_DIM_ALIGNED_swigregister(PCB_DIM_ALIGNED)
15954
15956 r"""PCB_DIM_ALIGNED_ClassOf(EDA_ITEM aItem) -> bool"""
15957 return _pcbnew.PCB_DIM_ALIGNED_ClassOf(aItem)
15958
15960 r"""Proxy of C++ PCB_DIM_ORTHOGONAL class."""
15961
15962 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15963 __repr__ = _swig_repr
15964 DIR_HORIZONTAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_HORIZONTAL
15965
15966 DIR_VERTICAL = _pcbnew.PCB_DIM_ORTHOGONAL_DIR_VERTICAL
15967
15968
15969 def __init__(self, aParent):
15970 r"""__init__(PCB_DIM_ORTHOGONAL self, BOARD_ITEM aParent) -> PCB_DIM_ORTHOGONAL"""
15971 _pcbnew.PCB_DIM_ORTHOGONAL_swiginit(self, _pcbnew.new_PCB_DIM_ORTHOGONAL(aParent))
15972 __swig_destroy__ = _pcbnew.delete_PCB_DIM_ORTHOGONAL
15973
15974 @staticmethod
15975 def ClassOf(aItem):
15976 r"""ClassOf(EDA_ITEM aItem) -> bool"""
15977 return _pcbnew.PCB_DIM_ORTHOGONAL_ClassOf(aItem)
15978
15979 def Mirror(self, axis_pos, aMirrorLeftRight=False):
15980 r"""Mirror(PCB_DIM_ORTHOGONAL self, VECTOR2I axis_pos, bool aMirrorLeftRight=False)"""
15981 return _pcbnew.PCB_DIM_ORTHOGONAL_Mirror(self, axis_pos, aMirrorLeftRight)
15982
15983 def SetOrientation(self, aOrientation):
15984 r"""SetOrientation(PCB_DIM_ORTHOGONAL self, PCB_DIM_ORTHOGONAL::DIR aOrientation)"""
15985 return _pcbnew.PCB_DIM_ORTHOGONAL_SetOrientation(self, aOrientation)
15986
15988 r"""GetOrientation(PCB_DIM_ORTHOGONAL self) -> PCB_DIM_ORTHOGONAL::DIR"""
15989 return _pcbnew.PCB_DIM_ORTHOGONAL_GetOrientation(self)
15990
15991# Register PCB_DIM_ORTHOGONAL in _pcbnew:
15992_pcbnew.PCB_DIM_ORTHOGONAL_swigregister(PCB_DIM_ORTHOGONAL)
15993
15995 r"""PCB_DIM_ORTHOGONAL_ClassOf(EDA_ITEM aItem) -> bool"""
15996 return _pcbnew.PCB_DIM_ORTHOGONAL_ClassOf(aItem)
15997
15999 r"""Proxy of C++ PCB_DIM_RADIAL class."""
16000
16001 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16002 __repr__ = _swig_repr
16003
16004 def __init__(self, aParent):
16005 r"""__init__(PCB_DIM_RADIAL self, BOARD_ITEM aParent) -> PCB_DIM_RADIAL"""
16006 _pcbnew.PCB_DIM_RADIAL_swiginit(self, _pcbnew.new_PCB_DIM_RADIAL(aParent))
16007
16008 @staticmethod
16009 def ClassOf(aItem):
16010 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16011 return _pcbnew.PCB_DIM_RADIAL_ClassOf(aItem)
16012
16013 def SetLeaderLength(self, aLength):
16014 r"""SetLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
16015 return _pcbnew.PCB_DIM_RADIAL_SetLeaderLength(self, aLength)
16016
16018 r"""GetLeaderLength(PCB_DIM_RADIAL self) -> int"""
16019 return _pcbnew.PCB_DIM_RADIAL_GetLeaderLength(self)
16020
16021 def ChangeLeaderLength(self, aLength):
16022 r"""ChangeLeaderLength(PCB_DIM_RADIAL self, int aLength)"""
16023 return _pcbnew.PCB_DIM_RADIAL_ChangeLeaderLength(self, aLength)
16024
16025 def GetKnee(self):
16026 r"""GetKnee(PCB_DIM_RADIAL self) -> VECTOR2I"""
16027 return _pcbnew.PCB_DIM_RADIAL_GetKnee(self)
16028 __swig_destroy__ = _pcbnew.delete_PCB_DIM_RADIAL
16029
16030# Register PCB_DIM_RADIAL in _pcbnew:
16031_pcbnew.PCB_DIM_RADIAL_swigregister(PCB_DIM_RADIAL)
16032
16034 r"""PCB_DIM_RADIAL_ClassOf(EDA_ITEM aItem) -> bool"""
16035 return _pcbnew.PCB_DIM_RADIAL_ClassOf(aItem)
16036
16038 r"""Proxy of C++ PCB_DIM_LEADER class."""
16039
16040 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16041 __repr__ = _swig_repr
16042
16043 def __init__(self, aParent):
16044 r"""__init__(PCB_DIM_LEADER self, BOARD_ITEM aParent) -> PCB_DIM_LEADER"""
16045 _pcbnew.PCB_DIM_LEADER_swiginit(self, _pcbnew.new_PCB_DIM_LEADER(aParent))
16046
16047 @staticmethod
16048 def ClassOf(aItem):
16049 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16050 return _pcbnew.PCB_DIM_LEADER_ClassOf(aItem)
16051
16052 def SetTextBorder(self, aBorder):
16053 r"""SetTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
16054 return _pcbnew.PCB_DIM_LEADER_SetTextBorder(self, aBorder)
16055
16056 def GetTextBorder(self):
16057 r"""GetTextBorder(PCB_DIM_LEADER self) -> DIM_TEXT_BORDER"""
16058 return _pcbnew.PCB_DIM_LEADER_GetTextBorder(self)
16059
16060 def ChangeTextBorder(self, aBorder):
16061 r"""ChangeTextBorder(PCB_DIM_LEADER self, DIM_TEXT_BORDER aBorder)"""
16062 return _pcbnew.PCB_DIM_LEADER_ChangeTextBorder(self, aBorder)
16063 __swig_destroy__ = _pcbnew.delete_PCB_DIM_LEADER
16064
16065# Register PCB_DIM_LEADER in _pcbnew:
16066_pcbnew.PCB_DIM_LEADER_swigregister(PCB_DIM_LEADER)
16067
16069 r"""PCB_DIM_LEADER_ClassOf(EDA_ITEM aItem) -> bool"""
16070 return _pcbnew.PCB_DIM_LEADER_ClassOf(aItem)
16071
16073 r"""Proxy of C++ PCB_DIM_CENTER class."""
16074
16075 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16076 __repr__ = _swig_repr
16077
16078 def __init__(self, aParent):
16079 r"""__init__(PCB_DIM_CENTER self, BOARD_ITEM aParent) -> PCB_DIM_CENTER"""
16080 _pcbnew.PCB_DIM_CENTER_swiginit(self, _pcbnew.new_PCB_DIM_CENTER(aParent))
16081
16082 @staticmethod
16083 def ClassOf(aItem):
16084 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16085 return _pcbnew.PCB_DIM_CENTER_ClassOf(aItem)
16086 __swig_destroy__ = _pcbnew.delete_PCB_DIM_CENTER
16087
16088# Register PCB_DIM_CENTER in _pcbnew:
16089_pcbnew.PCB_DIM_CENTER_swigregister(PCB_DIM_CENTER)
16090
16092 r"""PCB_DIM_CENTER_ClassOf(EDA_ITEM aItem) -> bool"""
16093 return _pcbnew.PCB_DIM_CENTER_ClassOf(aItem)
16094
16095MARKER_SHAPE_POINT_COUNT = _pcbnew.MARKER_SHAPE_POINT_COUNT
16096
16098 r"""Proxy of C++ PCB_MARKER class."""
16099
16100 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16101 __repr__ = _swig_repr
16102
16103 def __init__(self, aItem, aPos, aLayer=F_Cu):
16104 r"""__init__(PCB_MARKER self, std::shared_ptr< RC_ITEM > aItem, VECTOR2I aPos, int aLayer=F_Cu) -> PCB_MARKER"""
16105 _pcbnew.PCB_MARKER_swiginit(self, _pcbnew.new_PCB_MARKER(aItem, aPos, aLayer))
16106 __swig_destroy__ = _pcbnew.delete_PCB_MARKER
16107
16108 @staticmethod
16109 def ClassOf(aItem):
16110 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16111 return _pcbnew.PCB_MARKER_ClassOf(aItem)
16112
16113 def Serialize(self):
16114 r"""Serialize(PCB_MARKER self) -> wxString"""
16115 return _pcbnew.PCB_MARKER_Serialize(self)
16116
16117 @staticmethod
16118 def Deserialize(data):
16119 r"""Deserialize(wxString data) -> PCB_MARKER"""
16120 return _pcbnew.PCB_MARKER_Deserialize(data)
16121
16122 def HitTest(self, aPosition, aAccuracy=0):
16123 r"""HitTest(PCB_MARKER self, VECTOR2I aPosition, int aAccuracy=0) -> bool"""
16124 return _pcbnew.PCB_MARKER_HitTest(self, aPosition, aAccuracy)
16125
16126 def GetColorLayer(self):
16127 r"""GetColorLayer(PCB_MARKER self) -> GAL_LAYER_ID"""
16128 return _pcbnew.PCB_MARKER_GetColorLayer(self)
16129
16130 def GetEffectiveShape(self, *args):
16131 r"""GetEffectiveShape(PCB_MARKER self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16132 return _pcbnew.PCB_MARKER_GetEffectiveShape(self, *args)
16133
16134 def SetZoom(self, aZoomFactor):
16135 r"""SetZoom(PCB_MARKER self, double aZoomFactor)"""
16136 return _pcbnew.PCB_MARKER_SetZoom(self, aZoomFactor)
16137
16138# Register PCB_MARKER in _pcbnew:
16139_pcbnew.PCB_MARKER_swigregister(PCB_MARKER)
16140
16142 r"""PCB_MARKER_ClassOf(EDA_ITEM aItem) -> bool"""
16143 return _pcbnew.PCB_MARKER_ClassOf(aItem)
16144
16146 r"""PCB_MARKER_Deserialize(wxString data) -> PCB_MARKER"""
16147 return _pcbnew.PCB_MARKER_Deserialize(data)
16148
16150 r"""Proxy of C++ PCB_TARGET class."""
16151
16152 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16153 __repr__ = _swig_repr
16154
16155 def __init__(self, *args):
16156 r"""
16157 __init__(PCB_TARGET self, BOARD_ITEM aParent) -> PCB_TARGET
16158 __init__(PCB_TARGET self, BOARD_ITEM aParent, int aShape, PCB_LAYER_ID aLayer, VECTOR2I aPos, int aSize, int aWidth) -> PCB_TARGET
16159 """
16160 _pcbnew.PCB_TARGET_swiginit(self, _pcbnew.new_PCB_TARGET(*args))
16161 __swig_destroy__ = _pcbnew.delete_PCB_TARGET
16162
16163 @staticmethod
16164 def ClassOf(aItem):
16165 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16166 return _pcbnew.PCB_TARGET_ClassOf(aItem)
16167
16168 def SetShape(self, aShape):
16169 r"""SetShape(PCB_TARGET self, int aShape)"""
16170 return _pcbnew.PCB_TARGET_SetShape(self, aShape)
16171
16172 def GetShape(self):
16173 r"""GetShape(PCB_TARGET self) -> int"""
16174 return _pcbnew.PCB_TARGET_GetShape(self)
16175
16176 def SetSize(self, aSize):
16177 r"""SetSize(PCB_TARGET self, int aSize)"""
16178 return _pcbnew.PCB_TARGET_SetSize(self, aSize)
16179
16180 def GetSize(self):
16181 r"""GetSize(PCB_TARGET self) -> int"""
16182 return _pcbnew.PCB_TARGET_GetSize(self)
16183
16184 def SetWidth(self, aWidth):
16185 r"""SetWidth(PCB_TARGET self, int aWidth)"""
16186 return _pcbnew.PCB_TARGET_SetWidth(self, aWidth)
16187
16188 def GetWidth(self):
16189 r"""GetWidth(PCB_TARGET self) -> int"""
16190 return _pcbnew.PCB_TARGET_GetWidth(self)
16191
16192 def HitTest(self, *args):
16193 r"""
16194 HitTest(PCB_TARGET self, VECTOR2I aPosition, int aAccuracy=0) -> bool
16195 HitTest(PCB_TARGET self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
16196 """
16197 return _pcbnew.PCB_TARGET_HitTest(self, *args)
16198
16199 def GetEffectiveShape(self, *args):
16200 r"""GetEffectiveShape(PCB_TARGET self, PCB_LAYER_ID aLayer, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
16201 return _pcbnew.PCB_TARGET_GetEffectiveShape(self, *args)
16202
16203 def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False):
16204 r"""TransformShapeToPolygon(PCB_TARGET self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc, bool ignoreLineWidth=False)"""
16205 return _pcbnew.PCB_TARGET_TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth)
16206
16207# Register PCB_TARGET in _pcbnew:
16208_pcbnew.PCB_TARGET_swigregister(PCB_TARGET)
16209
16211 r"""PCB_TARGET_ClassOf(EDA_ITEM aItem) -> bool"""
16212 return _pcbnew.PCB_TARGET_ClassOf(aItem)
16213
16215 r"""Proxy of C++ std::vector< PAD * > class."""
16216
16217 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16218 __repr__ = _swig_repr
16219
16220 def iterator(self):
16221 r"""iterator(PADS_VEC self) -> SwigPyIterator"""
16222 return _pcbnew.PADS_VEC_iterator(self)
16223 def __iter__(self):
16224 return self.iterator()
16225
16226 def __nonzero__(self):
16227 r"""__nonzero__(PADS_VEC self) -> bool"""
16228 return _pcbnew.PADS_VEC___nonzero__(self)
16229
16230 def __bool__(self):
16231 r"""__bool__(PADS_VEC self) -> bool"""
16232 return _pcbnew.PADS_VEC___bool__(self)
16233
16234 def __len__(self):
16235 r"""__len__(PADS_VEC self) -> std::vector< PAD * >::size_type"""
16236 return _pcbnew.PADS_VEC___len__(self)
16237
16238 def __getslice__(self, i, j):
16239 r"""__getslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j) -> PADS_VEC"""
16240 return _pcbnew.PADS_VEC___getslice__(self, i, j)
16241
16242 def __setslice__(self, *args):
16243 r"""
16244 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)
16245 __setslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j, PADS_VEC v)
16246 """
16247 return _pcbnew.PADS_VEC___setslice__(self, *args)
16248
16249 def __delslice__(self, i, j):
16250 r"""__delslice__(PADS_VEC self, std::vector< PAD * >::difference_type i, std::vector< PAD * >::difference_type j)"""
16251 return _pcbnew.PADS_VEC___delslice__(self, i, j)
16252
16253 def __delitem__(self, *args):
16254 r"""
16255 __delitem__(PADS_VEC self, std::vector< PAD * >::difference_type i)
16256 __delitem__(PADS_VEC self, PySliceObject * slice)
16257 """
16258 return _pcbnew.PADS_VEC___delitem__(self, *args)
16259
16260 def __getitem__(self, *args):
16261 r"""
16262 __getitem__(PADS_VEC self, PySliceObject * slice) -> PADS_VEC
16263 __getitem__(PADS_VEC self, std::vector< PAD * >::difference_type i) -> PAD
16264 """
16265 return _pcbnew.PADS_VEC___getitem__(self, *args)
16266
16267 def __setitem__(self, *args):
16268 r"""
16269 __setitem__(PADS_VEC self, PySliceObject * slice, PADS_VEC v)
16270 __setitem__(PADS_VEC self, PySliceObject * slice)
16271 __setitem__(PADS_VEC self, std::vector< PAD * >::difference_type i, PAD x)
16272 """
16273 return _pcbnew.PADS_VEC___setitem__(self, *args)
16274
16275 def pop(self):
16276 r"""pop(PADS_VEC self) -> PAD"""
16277 return _pcbnew.PADS_VEC_pop(self)
16278
16279 def append(self, x):
16280 r"""append(PADS_VEC self, PAD x)"""
16281 return _pcbnew.PADS_VEC_append(self, x)
16282
16283 def empty(self):
16284 r"""empty(PADS_VEC self) -> bool"""
16285 return _pcbnew.PADS_VEC_empty(self)
16286
16287 def size(self):
16288 r"""size(PADS_VEC self) -> std::vector< PAD * >::size_type"""
16289 return _pcbnew.PADS_VEC_size(self)
16290
16291 def swap(self, v):
16292 r"""swap(PADS_VEC self, PADS_VEC v)"""
16293 return _pcbnew.PADS_VEC_swap(self, v)
16294
16295 def begin(self):
16296 r"""begin(PADS_VEC self) -> std::vector< PAD * >::iterator"""
16297 return _pcbnew.PADS_VEC_begin(self)
16298
16299 def end(self):
16300 r"""end(PADS_VEC self) -> std::vector< PAD * >::iterator"""
16301 return _pcbnew.PADS_VEC_end(self)
16302
16303 def rbegin(self):
16304 r"""rbegin(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
16305 return _pcbnew.PADS_VEC_rbegin(self)
16306
16307 def rend(self):
16308 r"""rend(PADS_VEC self) -> std::vector< PAD * >::reverse_iterator"""
16309 return _pcbnew.PADS_VEC_rend(self)
16310
16311 def clear(self):
16312 r"""clear(PADS_VEC self)"""
16313 return _pcbnew.PADS_VEC_clear(self)
16314
16315 def get_allocator(self):
16316 r"""get_allocator(PADS_VEC self) -> std::vector< PAD * >::allocator_type"""
16317 return _pcbnew.PADS_VEC_get_allocator(self)
16318
16319 def pop_back(self):
16320 r"""pop_back(PADS_VEC self)"""
16321 return _pcbnew.PADS_VEC_pop_back(self)
16322
16323 def erase(self, *args):
16324 r"""
16325 erase(PADS_VEC self, std::vector< PAD * >::iterator pos) -> std::vector< PAD * >::iterator
16326 erase(PADS_VEC self, std::vector< PAD * >::iterator first, std::vector< PAD * >::iterator last) -> std::vector< PAD * >::iterator
16327 """
16328 return _pcbnew.PADS_VEC_erase(self, *args)
16329
16330 def __init__(self, *args):
16331 r"""
16332 __init__(PADS_VEC self) -> PADS_VEC
16333 __init__(PADS_VEC self, PADS_VEC other) -> PADS_VEC
16334 __init__(PADS_VEC self, std::vector< PAD * >::size_type size) -> PADS_VEC
16335 __init__(PADS_VEC self, std::vector< PAD * >::size_type size, PAD value) -> PADS_VEC
16336 """
16337 _pcbnew.PADS_VEC_swiginit(self, _pcbnew.new_PADS_VEC(*args))
16338
16339 def push_back(self, x):
16340 r"""push_back(PADS_VEC self, PAD x)"""
16341 return _pcbnew.PADS_VEC_push_back(self, x)
16342
16343 def front(self):
16344 r"""front(PADS_VEC self) -> PAD"""
16345 return _pcbnew.PADS_VEC_front(self)
16346
16347 def back(self):
16348 r"""back(PADS_VEC self) -> PAD"""
16349 return _pcbnew.PADS_VEC_back(self)
16350
16351 def assign(self, n, x):
16352 r"""assign(PADS_VEC self, std::vector< PAD * >::size_type n, PAD x)"""
16353 return _pcbnew.PADS_VEC_assign(self, n, x)
16354
16355 def resize(self, *args):
16356 r"""
16357 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size)
16358 resize(PADS_VEC self, std::vector< PAD * >::size_type new_size, PAD x)
16359 """
16360 return _pcbnew.PADS_VEC_resize(self, *args)
16361
16362 def insert(self, *args):
16363 r"""
16364 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, PAD x) -> std::vector< PAD * >::iterator
16365 insert(PADS_VEC self, std::vector< PAD * >::iterator pos, std::vector< PAD * >::size_type n, PAD x)
16366 """
16367 return _pcbnew.PADS_VEC_insert(self, *args)
16368
16369 def reserve(self, n):
16370 r"""reserve(PADS_VEC self, std::vector< PAD * >::size_type n)"""
16371 return _pcbnew.PADS_VEC_reserve(self, n)
16372
16373 def capacity(self):
16374 r"""capacity(PADS_VEC self) -> std::vector< PAD * >::size_type"""
16375 return _pcbnew.PADS_VEC_capacity(self)
16376 __swig_destroy__ = _pcbnew.delete_PADS_VEC
16377
16378# Register PADS_VEC in _pcbnew:
16379_pcbnew.PADS_VEC_swigregister(PADS_VEC)
16380
16382 r"""Proxy of C++ std::vector< PCB_TRACK * > class."""
16383
16384 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16385 __repr__ = _swig_repr
16386
16387 def iterator(self):
16388 r"""iterator(TRACKS_VEC self) -> SwigPyIterator"""
16389 return _pcbnew.TRACKS_VEC_iterator(self)
16390 def __iter__(self):
16391 return self.iterator()
16392
16393 def __nonzero__(self):
16394 r"""__nonzero__(TRACKS_VEC self) -> bool"""
16395 return _pcbnew.TRACKS_VEC___nonzero__(self)
16396
16397 def __bool__(self):
16398 r"""__bool__(TRACKS_VEC self) -> bool"""
16399 return _pcbnew.TRACKS_VEC___bool__(self)
16400
16401 def __len__(self):
16402 r"""__len__(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
16403 return _pcbnew.TRACKS_VEC___len__(self)
16404
16405 def __getslice__(self, i, j):
16406 r"""__getslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j) -> TRACKS_VEC"""
16407 return _pcbnew.TRACKS_VEC___getslice__(self, i, j)
16408
16409 def __setslice__(self, *args):
16410 r"""
16411 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)
16412 __setslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j, TRACKS_VEC v)
16413 """
16414 return _pcbnew.TRACKS_VEC___setslice__(self, *args)
16415
16416 def __delslice__(self, i, j):
16417 r"""__delslice__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, std::vector< PCB_TRACK * >::difference_type j)"""
16418 return _pcbnew.TRACKS_VEC___delslice__(self, i, j)
16419
16420 def __delitem__(self, *args):
16421 r"""
16422 __delitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i)
16423 __delitem__(TRACKS_VEC self, PySliceObject * slice)
16424 """
16425 return _pcbnew.TRACKS_VEC___delitem__(self, *args)
16426
16427 def __getitem__(self, *args):
16428 r"""
16429 __getitem__(TRACKS_VEC self, PySliceObject * slice) -> TRACKS_VEC
16430 __getitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i) -> PCB_TRACK
16431 """
16432 return _pcbnew.TRACKS_VEC___getitem__(self, *args)
16433
16434 def __setitem__(self, *args):
16435 r"""
16436 __setitem__(TRACKS_VEC self, PySliceObject * slice, TRACKS_VEC v)
16437 __setitem__(TRACKS_VEC self, PySliceObject * slice)
16438 __setitem__(TRACKS_VEC self, std::vector< PCB_TRACK * >::difference_type i, PCB_TRACK x)
16439 """
16440 return _pcbnew.TRACKS_VEC___setitem__(self, *args)
16441
16442 def pop(self):
16443 r"""pop(TRACKS_VEC self) -> PCB_TRACK"""
16444 return _pcbnew.TRACKS_VEC_pop(self)
16445
16446 def append(self, x):
16447 r"""append(TRACKS_VEC self, PCB_TRACK x)"""
16448 return _pcbnew.TRACKS_VEC_append(self, x)
16449
16450 def empty(self):
16451 r"""empty(TRACKS_VEC self) -> bool"""
16452 return _pcbnew.TRACKS_VEC_empty(self)
16453
16454 def size(self):
16455 r"""size(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
16456 return _pcbnew.TRACKS_VEC_size(self)
16457
16458 def swap(self, v):
16459 r"""swap(TRACKS_VEC self, TRACKS_VEC v)"""
16460 return _pcbnew.TRACKS_VEC_swap(self, v)
16461
16462 def begin(self):
16463 r"""begin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
16464 return _pcbnew.TRACKS_VEC_begin(self)
16465
16466 def end(self):
16467 r"""end(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::iterator"""
16468 return _pcbnew.TRACKS_VEC_end(self)
16469
16470 def rbegin(self):
16471 r"""rbegin(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
16472 return _pcbnew.TRACKS_VEC_rbegin(self)
16473
16474 def rend(self):
16475 r"""rend(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::reverse_iterator"""
16476 return _pcbnew.TRACKS_VEC_rend(self)
16477
16478 def clear(self):
16479 r"""clear(TRACKS_VEC self)"""
16480 return _pcbnew.TRACKS_VEC_clear(self)
16481
16482 def get_allocator(self):
16483 r"""get_allocator(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::allocator_type"""
16484 return _pcbnew.TRACKS_VEC_get_allocator(self)
16485
16486 def pop_back(self):
16487 r"""pop_back(TRACKS_VEC self)"""
16488 return _pcbnew.TRACKS_VEC_pop_back(self)
16489
16490 def erase(self, *args):
16491 r"""
16492 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos) -> std::vector< PCB_TRACK * >::iterator
16493 erase(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator first, std::vector< PCB_TRACK * >::iterator last) -> std::vector< PCB_TRACK * >::iterator
16494 """
16495 return _pcbnew.TRACKS_VEC_erase(self, *args)
16496
16497 def __init__(self, *args):
16498 r"""
16499 __init__(TRACKS_VEC self) -> TRACKS_VEC
16500 __init__(TRACKS_VEC self, TRACKS_VEC other) -> TRACKS_VEC
16501 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size) -> TRACKS_VEC
16502 __init__(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type size, PCB_TRACK value) -> TRACKS_VEC
16503 """
16504 _pcbnew.TRACKS_VEC_swiginit(self, _pcbnew.new_TRACKS_VEC(*args))
16505
16506 def push_back(self, x):
16507 r"""push_back(TRACKS_VEC self, PCB_TRACK x)"""
16508 return _pcbnew.TRACKS_VEC_push_back(self, x)
16509
16510 def front(self):
16511 r"""front(TRACKS_VEC self) -> PCB_TRACK"""
16512 return _pcbnew.TRACKS_VEC_front(self)
16513
16514 def back(self):
16515 r"""back(TRACKS_VEC self) -> PCB_TRACK"""
16516 return _pcbnew.TRACKS_VEC_back(self)
16517
16518 def assign(self, n, x):
16519 r"""assign(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)"""
16520 return _pcbnew.TRACKS_VEC_assign(self, n, x)
16521
16522 def resize(self, *args):
16523 r"""
16524 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size)
16525 resize(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type new_size, PCB_TRACK x)
16526 """
16527 return _pcbnew.TRACKS_VEC_resize(self, *args)
16528
16529 def insert(self, *args):
16530 r"""
16531 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, PCB_TRACK x) -> std::vector< PCB_TRACK * >::iterator
16532 insert(TRACKS_VEC self, std::vector< PCB_TRACK * >::iterator pos, std::vector< PCB_TRACK * >::size_type n, PCB_TRACK x)
16533 """
16534 return _pcbnew.TRACKS_VEC_insert(self, *args)
16535
16536 def reserve(self, n):
16537 r"""reserve(TRACKS_VEC self, std::vector< PCB_TRACK * >::size_type n)"""
16538 return _pcbnew.TRACKS_VEC_reserve(self, n)
16539
16540 def capacity(self):
16541 r"""capacity(TRACKS_VEC self) -> std::vector< PCB_TRACK * >::size_type"""
16542 return _pcbnew.TRACKS_VEC_capacity(self)
16543 __swig_destroy__ = _pcbnew.delete_TRACKS_VEC
16544
16545# Register TRACKS_VEC in _pcbnew:
16546_pcbnew.TRACKS_VEC_swigregister(TRACKS_VEC)
16547
16549 r"""Proxy of C++ NETINFO_ITEM class."""
16550
16551 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16552 __repr__ = _swig_repr
16553
16554 def __init__(self, *args):
16555 r"""__init__(NETINFO_ITEM self, BOARD aParent, wxString aNetName=wxEmptyString, int aNetCode=-1) -> NETINFO_ITEM"""
16556 _pcbnew.NETINFO_ITEM_swiginit(self, _pcbnew.new_NETINFO_ITEM(*args))
16557 __swig_destroy__ = _pcbnew.delete_NETINFO_ITEM
16558
16559 @staticmethod
16560 def ClassOf(aItem):
16561 r"""ClassOf(EDA_ITEM aItem) -> bool"""
16562 return _pcbnew.NETINFO_ITEM_ClassOf(aItem)
16563
16564 def SetNetClass(self, aNetClass):
16565 r"""SetNetClass(NETINFO_ITEM self, std::shared_ptr< NETCLASS > const & aNetClass)"""
16566 return _pcbnew.NETINFO_ITEM_SetNetClass(self, aNetClass)
16567
16568 def GetNetClass(self):
16569 r"""GetNetClass(NETINFO_ITEM self) -> NETCLASS"""
16570 return _pcbnew.NETINFO_ITEM_GetNetClass(self)
16571
16573 r"""GetNetClassSlow(NETINFO_ITEM self) -> std::shared_ptr< NETCLASS >"""
16574 return _pcbnew.NETINFO_ITEM_GetNetClassSlow(self)
16575
16576 def GetNetCode(self):
16577 r"""GetNetCode(NETINFO_ITEM self) -> int"""
16578 return _pcbnew.NETINFO_ITEM_GetNetCode(self)
16579
16580 def SetNetCode(self, aNetCode):
16581 r"""SetNetCode(NETINFO_ITEM self, int aNetCode)"""
16582 return _pcbnew.NETINFO_ITEM_SetNetCode(self, aNetCode)
16583
16584 def GetNetname(self):
16585 r"""GetNetname(NETINFO_ITEM self) -> wxString"""
16586 return _pcbnew.NETINFO_ITEM_GetNetname(self)
16587
16589 r"""GetShortNetname(NETINFO_ITEM self) -> wxString"""
16590 return _pcbnew.NETINFO_ITEM_GetShortNetname(self)
16591
16593 r"""GetDisplayNetname(NETINFO_ITEM self) -> wxString"""
16594 return _pcbnew.NETINFO_ITEM_GetDisplayNetname(self)
16595
16597 r"""HasAutoGeneratedNetname(NETINFO_ITEM self) -> bool"""
16598 return _pcbnew.NETINFO_ITEM_HasAutoGeneratedNetname(self)
16599
16600 def SetNetname(self, aNewName):
16601 r"""SetNetname(NETINFO_ITEM self, wxString aNewName)"""
16602 return _pcbnew.NETINFO_ITEM_SetNetname(self, aNewName)
16603
16604 def IsCurrent(self):
16605 r"""IsCurrent(NETINFO_ITEM self) -> bool"""
16606 return _pcbnew.NETINFO_ITEM_IsCurrent(self)
16607
16608 def SetIsCurrent(self, isCurrent):
16609 r"""SetIsCurrent(NETINFO_ITEM self, bool isCurrent)"""
16610 return _pcbnew.NETINFO_ITEM_SetIsCurrent(self, isCurrent)
16611
16612 def Clear(self):
16613 r"""Clear(NETINFO_ITEM self)"""
16614 return _pcbnew.NETINFO_ITEM_Clear(self)
16615
16616 def GetParent(self):
16617 r"""GetParent(NETINFO_ITEM self) -> BOARD"""
16618 return _pcbnew.NETINFO_ITEM_GetParent(self)
16619
16621 return self.GetNetClassSlow().GetName()
16622
16623
16624# Register NETINFO_ITEM in _pcbnew:
16625_pcbnew.NETINFO_ITEM_swigregister(NETINFO_ITEM)
16626
16628 r"""NETINFO_ITEM_ClassOf(EDA_ITEM aItem) -> bool"""
16629 return _pcbnew.NETINFO_ITEM_ClassOf(aItem)
16630
16632 r"""Proxy of C++ std::map< wxString,NETINFO_ITEM * > class."""
16633
16634 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16635 __repr__ = _swig_repr
16636
16637 def iterator(self):
16638 r"""iterator(NETNAMES_MAP self) -> SwigPyIterator"""
16639 return _pcbnew.NETNAMES_MAP_iterator(self)
16640 def __iter__(self):
16641 return self.iterator()
16642
16643 def __nonzero__(self):
16644 r"""__nonzero__(NETNAMES_MAP self) -> bool"""
16645 return _pcbnew.NETNAMES_MAP___nonzero__(self)
16646
16647 def __bool__(self):
16648 r"""__bool__(NETNAMES_MAP self) -> bool"""
16649 return _pcbnew.NETNAMES_MAP___bool__(self)
16650
16651 def __len__(self):
16652 r"""__len__(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
16653 return _pcbnew.NETNAMES_MAP___len__(self)
16654 def __iter__(self):
16655 return self.key_iterator()
16656 def iterkeys(self):
16657 return self.key_iterator()
16658 def itervalues(self):
16659 return self.value_iterator()
16660 def iteritems(self):
16661 return self.iterator()
16662
16663 def __getitem__(self, key):
16664 r"""__getitem__(NETNAMES_MAP self, wxString key) -> NETINFO_ITEM"""
16665 return _pcbnew.NETNAMES_MAP___getitem__(self, key)
16666
16667 def __delitem__(self, key):
16668 r"""__delitem__(NETNAMES_MAP self, wxString key)"""
16669 return _pcbnew.NETNAMES_MAP___delitem__(self, key)
16670
16671 def has_key(self, key):
16672 r"""has_key(NETNAMES_MAP self, wxString key) -> bool"""
16673 return _pcbnew.NETNAMES_MAP_has_key(self, key)
16674
16675 def keys(self):
16676 r"""keys(NETNAMES_MAP self) -> PyObject *"""
16677 return _pcbnew.NETNAMES_MAP_keys(self)
16678
16679 def values(self):
16680 r"""values(NETNAMES_MAP self) -> PyObject *"""
16681 return _pcbnew.NETNAMES_MAP_values(self)
16682
16683 def items(self):
16684 r"""items(NETNAMES_MAP self) -> PyObject *"""
16685 return _pcbnew.NETNAMES_MAP_items(self)
16686
16687 def __contains__(self, key):
16688 r"""__contains__(NETNAMES_MAP self, wxString key) -> bool"""
16689 return _pcbnew.NETNAMES_MAP___contains__(self, key)
16690
16691 def key_iterator(self):
16692 r"""key_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
16693 return _pcbnew.NETNAMES_MAP_key_iterator(self)
16694
16696 r"""value_iterator(NETNAMES_MAP self) -> SwigPyIterator"""
16697 return _pcbnew.NETNAMES_MAP_value_iterator(self)
16698
16699 def __setitem__(self, *args):
16700 r"""
16701 __setitem__(NETNAMES_MAP self, wxString key)
16702 __setitem__(NETNAMES_MAP self, wxString key, NETINFO_ITEM x)
16703 """
16704 return _pcbnew.NETNAMES_MAP___setitem__(self, *args)
16705
16706 def asdict(self):
16707 r"""asdict(NETNAMES_MAP self) -> PyObject *"""
16708 return _pcbnew.NETNAMES_MAP_asdict(self)
16709
16710 def __init__(self, *args):
16711 r"""
16712 __init__(NETNAMES_MAP self, std::less< wxString > const & other) -> NETNAMES_MAP
16713 __init__(NETNAMES_MAP self) -> NETNAMES_MAP
16714 __init__(NETNAMES_MAP self, NETNAMES_MAP other) -> NETNAMES_MAP
16715 """
16716 _pcbnew.NETNAMES_MAP_swiginit(self, _pcbnew.new_NETNAMES_MAP(*args))
16717
16718 def empty(self):
16719 r"""empty(NETNAMES_MAP self) -> bool"""
16720 return _pcbnew.NETNAMES_MAP_empty(self)
16721
16722 def size(self):
16723 r"""size(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
16724 return _pcbnew.NETNAMES_MAP_size(self)
16725
16726 def swap(self, v):
16727 r"""swap(NETNAMES_MAP self, NETNAMES_MAP v)"""
16728 return _pcbnew.NETNAMES_MAP_swap(self, v)
16729
16730 def begin(self):
16731 r"""begin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16732 return _pcbnew.NETNAMES_MAP_begin(self)
16733
16734 def end(self):
16735 r"""end(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16736 return _pcbnew.NETNAMES_MAP_end(self)
16737
16738 def rbegin(self):
16739 r"""rbegin(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
16740 return _pcbnew.NETNAMES_MAP_rbegin(self)
16741
16742 def rend(self):
16743 r"""rend(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::reverse_iterator"""
16744 return _pcbnew.NETNAMES_MAP_rend(self)
16745
16746 def clear(self):
16747 r"""clear(NETNAMES_MAP self)"""
16748 return _pcbnew.NETNAMES_MAP_clear(self)
16749
16750 def get_allocator(self):
16751 r"""get_allocator(NETNAMES_MAP self) -> std::map< wxString,NETINFO_ITEM * >::allocator_type"""
16752 return _pcbnew.NETNAMES_MAP_get_allocator(self)
16753
16754 def count(self, x):
16755 r"""count(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type"""
16756 return _pcbnew.NETNAMES_MAP_count(self, x)
16757
16758 def erase(self, *args):
16759 r"""
16760 erase(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::size_type
16761 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator position)
16762 erase(NETNAMES_MAP self, std::map< wxString,NETINFO_ITEM * >::iterator first, std::map< wxString,NETINFO_ITEM * >::iterator last)
16763 """
16764 return _pcbnew.NETNAMES_MAP_erase(self, *args)
16765
16766 def find(self, x):
16767 r"""find(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16768 return _pcbnew.NETNAMES_MAP_find(self, x)
16769
16770 def lower_bound(self, x):
16771 r"""lower_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16772 return _pcbnew.NETNAMES_MAP_lower_bound(self, x)
16773
16774 def upper_bound(self, x):
16775 r"""upper_bound(NETNAMES_MAP self, wxString x) -> std::map< wxString,NETINFO_ITEM * >::iterator"""
16776 return _pcbnew.NETNAMES_MAP_upper_bound(self, x)
16777 __swig_destroy__ = _pcbnew.delete_NETNAMES_MAP
16778
16779# Register NETNAMES_MAP in _pcbnew:
16780_pcbnew.NETNAMES_MAP_swigregister(NETNAMES_MAP)
16781
16783 r"""Proxy of C++ std::map< int,NETINFO_ITEM * > class."""
16784
16785 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16786 __repr__ = _swig_repr
16787
16788 def iterator(self):
16789 r"""iterator(NETCODES_MAP self) -> SwigPyIterator"""
16790 return _pcbnew.NETCODES_MAP_iterator(self)
16791 def __iter__(self):
16792 return self.iterator()
16793
16794 def __nonzero__(self):
16795 r"""__nonzero__(NETCODES_MAP self) -> bool"""
16796 return _pcbnew.NETCODES_MAP___nonzero__(self)
16797
16798 def __bool__(self):
16799 r"""__bool__(NETCODES_MAP self) -> bool"""
16800 return _pcbnew.NETCODES_MAP___bool__(self)
16801
16802 def __len__(self):
16803 r"""__len__(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
16804 return _pcbnew.NETCODES_MAP___len__(self)
16805 def __iter__(self):
16806 return self.key_iterator()
16807 def iterkeys(self):
16808 return self.key_iterator()
16809 def itervalues(self):
16810 return self.value_iterator()
16811 def iteritems(self):
16812 return self.iterator()
16813
16814 def __getitem__(self, key):
16815 r"""__getitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> NETINFO_ITEM"""
16816 return _pcbnew.NETCODES_MAP___getitem__(self, key)
16817
16818 def __delitem__(self, key):
16819 r"""__delitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)"""
16820 return _pcbnew.NETCODES_MAP___delitem__(self, key)
16821
16822 def has_key(self, key):
16823 r"""has_key(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
16824 return _pcbnew.NETCODES_MAP_has_key(self, key)
16825
16826 def keys(self):
16827 r"""keys(NETCODES_MAP self) -> PyObject *"""
16828 return _pcbnew.NETCODES_MAP_keys(self)
16829
16830 def values(self):
16831 r"""values(NETCODES_MAP self) -> PyObject *"""
16832 return _pcbnew.NETCODES_MAP_values(self)
16833
16834 def items(self):
16835 r"""items(NETCODES_MAP self) -> PyObject *"""
16836 return _pcbnew.NETCODES_MAP_items(self)
16837
16838 def __contains__(self, key):
16839 r"""__contains__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key) -> bool"""
16840 return _pcbnew.NETCODES_MAP___contains__(self, key)
16841
16842 def key_iterator(self):
16843 r"""key_iterator(NETCODES_MAP self) -> SwigPyIterator"""
16844 return _pcbnew.NETCODES_MAP_key_iterator(self)
16845
16847 r"""value_iterator(NETCODES_MAP self) -> SwigPyIterator"""
16848 return _pcbnew.NETCODES_MAP_value_iterator(self)
16849
16850 def __setitem__(self, *args):
16851 r"""
16852 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key)
16853 __setitem__(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & key, NETINFO_ITEM x)
16854 """
16855 return _pcbnew.NETCODES_MAP___setitem__(self, *args)
16856
16857 def asdict(self):
16858 r"""asdict(NETCODES_MAP self) -> PyObject *"""
16859 return _pcbnew.NETCODES_MAP_asdict(self)
16860
16861 def __init__(self, *args):
16862 r"""
16863 __init__(NETCODES_MAP self, std::less< int > const & other) -> NETCODES_MAP
16864 __init__(NETCODES_MAP self) -> NETCODES_MAP
16865 __init__(NETCODES_MAP self, NETCODES_MAP other) -> NETCODES_MAP
16866 """
16867 _pcbnew.NETCODES_MAP_swiginit(self, _pcbnew.new_NETCODES_MAP(*args))
16868
16869 def empty(self):
16870 r"""empty(NETCODES_MAP self) -> bool"""
16871 return _pcbnew.NETCODES_MAP_empty(self)
16872
16873 def size(self):
16874 r"""size(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::size_type"""
16875 return _pcbnew.NETCODES_MAP_size(self)
16876
16877 def swap(self, v):
16878 r"""swap(NETCODES_MAP self, NETCODES_MAP v)"""
16879 return _pcbnew.NETCODES_MAP_swap(self, v)
16880
16881 def begin(self):
16882 r"""begin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
16883 return _pcbnew.NETCODES_MAP_begin(self)
16884
16885 def end(self):
16886 r"""end(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::iterator"""
16887 return _pcbnew.NETCODES_MAP_end(self)
16888
16889 def rbegin(self):
16890 r"""rbegin(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
16891 return _pcbnew.NETCODES_MAP_rbegin(self)
16892
16893 def rend(self):
16894 r"""rend(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::reverse_iterator"""
16895 return _pcbnew.NETCODES_MAP_rend(self)
16896
16897 def clear(self):
16898 r"""clear(NETCODES_MAP self)"""
16899 return _pcbnew.NETCODES_MAP_clear(self)
16900
16901 def get_allocator(self):
16902 r"""get_allocator(NETCODES_MAP self) -> std::map< int,NETINFO_ITEM * >::allocator_type"""
16903 return _pcbnew.NETCODES_MAP_get_allocator(self)
16904
16905 def count(self, x):
16906 r"""count(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type"""
16907 return _pcbnew.NETCODES_MAP_count(self, x)
16908
16909 def erase(self, *args):
16910 r"""
16911 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::size_type
16912 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator position)
16913 erase(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::iterator first, std::map< int,NETINFO_ITEM * >::iterator last)
16914 """
16915 return _pcbnew.NETCODES_MAP_erase(self, *args)
16916
16917 def find(self, x):
16918 r"""find(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
16919 return _pcbnew.NETCODES_MAP_find(self, x)
16920
16921 def lower_bound(self, x):
16922 r"""lower_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
16923 return _pcbnew.NETCODES_MAP_lower_bound(self, x)
16924
16925 def upper_bound(self, x):
16926 r"""upper_bound(NETCODES_MAP self, std::map< int,NETINFO_ITEM * >::key_type const & x) -> std::map< int,NETINFO_ITEM * >::iterator"""
16927 return _pcbnew.NETCODES_MAP_upper_bound(self, x)
16928 __swig_destroy__ = _pcbnew.delete_NETCODES_MAP
16929
16930# Register NETCODES_MAP in _pcbnew:
16931_pcbnew.NETCODES_MAP_swigregister(NETCODES_MAP)
16932
16934 r"""Proxy of C++ NETINFO_LIST class."""
16935
16936 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16937 __repr__ = _swig_repr
16938
16939 def __init__(self, aParent):
16940 r"""__init__(NETINFO_LIST self, BOARD aParent) -> NETINFO_LIST"""
16941 _pcbnew.NETINFO_LIST_swiginit(self, _pcbnew.new_NETINFO_LIST(aParent))
16942 __swig_destroy__ = _pcbnew.delete_NETINFO_LIST
16943
16944 def GetNetItem(self, *args):
16945 r"""
16946 GetNetItem(NETINFO_LIST self, int aNetCode) -> NETINFO_ITEM
16947 GetNetItem(NETINFO_LIST self, wxString aNetName) -> NETINFO_ITEM
16948 """
16949 return _pcbnew.NETINFO_LIST_GetNetItem(self, *args)
16950
16951 def GetNetCount(self):
16952 r"""GetNetCount(NETINFO_LIST self) -> unsigned int"""
16953 return _pcbnew.NETINFO_LIST_GetNetCount(self)
16954
16955 def NetsByName(self):
16956 r"""NetsByName(NETINFO_LIST self) -> NETNAMES_MAP"""
16957 return _pcbnew.NETINFO_LIST_NetsByName(self)
16958
16959 def NetsByNetcode(self):
16960 r"""NetsByNetcode(NETINFO_LIST self) -> NETCODES_MAP"""
16961 return _pcbnew.NETINFO_LIST_NetsByNetcode(self)
16962
16964 r"""RebuildDisplayNetnames(NETINFO_LIST self)"""
16965 return _pcbnew.NETINFO_LIST_RebuildDisplayNetnames(self)
16966
16967 @staticmethod
16969 r"""OrphanedItem() -> NETINFO_ITEM"""
16970 return _pcbnew.NETINFO_LIST_OrphanedItem()
16971
16972 def GetParent(self):
16973 r"""GetParent(NETINFO_LIST self) -> BOARD"""
16974 return _pcbnew.NETINFO_LIST_GetParent(self)
16975 m_DisplayNetnamesDirty = property(_pcbnew.NETINFO_LIST_m_DisplayNetnamesDirty_get, _pcbnew.NETINFO_LIST_m_DisplayNetnamesDirty_set, doc=r"""m_DisplayNetnamesDirty : bool""")
16976
16977# Register NETINFO_LIST in _pcbnew:
16978_pcbnew.NETINFO_LIST_swigregister(NETINFO_LIST)
16979NETINFO_LIST.UNCONNECTED = _pcbnew.cvar.NETINFO_LIST_UNCONNECTED
16980NETINFO_LIST.ORPHANED = _pcbnew.cvar.NETINFO_LIST_ORPHANED
16981
16983 r"""NETINFO_LIST_OrphanedItem() -> NETINFO_ITEM"""
16984 return _pcbnew.NETINFO_LIST_OrphanedItem()
16985
16987 r"""Proxy of C++ std::set< wxString > class."""
16988
16989 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
16990 __repr__ = _swig_repr
16991
16992 def iterator(self):
16993 r"""iterator(STRINGSET self) -> SwigPyIterator"""
16994 return _pcbnew.STRINGSET_iterator(self)
16995 def __iter__(self):
16996 return self.iterator()
16997
16998 def __nonzero__(self):
16999 r"""__nonzero__(STRINGSET self) -> bool"""
17000 return _pcbnew.STRINGSET___nonzero__(self)
17001
17002 def __bool__(self):
17003 r"""__bool__(STRINGSET self) -> bool"""
17004 return _pcbnew.STRINGSET___bool__(self)
17005
17006 def __len__(self):
17007 r"""__len__(STRINGSET self) -> std::set< wxString >::size_type"""
17008 return _pcbnew.STRINGSET___len__(self)
17009
17010 def append(self, x):
17011 r"""append(STRINGSET self, wxString x)"""
17012 return _pcbnew.STRINGSET_append(self, x)
17013
17014 def __contains__(self, x):
17015 r"""__contains__(STRINGSET self, wxString x) -> bool"""
17016 return _pcbnew.STRINGSET___contains__(self, x)
17017
17018 def __getitem__(self, i):
17019 r"""__getitem__(STRINGSET self, std::set< wxString >::difference_type i) -> wxString"""
17020 return _pcbnew.STRINGSET___getitem__(self, i)
17021
17022 def add(self, x):
17023 r"""add(STRINGSET self, wxString x)"""
17024 return _pcbnew.STRINGSET_add(self, x)
17025
17026 def discard(self, x):
17027 r"""discard(STRINGSET self, wxString x)"""
17028 return _pcbnew.STRINGSET_discard(self, x)
17029
17030 def __init__(self, *args):
17031 r"""
17032 __init__(STRINGSET self, std::less< wxString > const & other) -> STRINGSET
17033 __init__(STRINGSET self) -> STRINGSET
17034 __init__(STRINGSET self, STRINGSET other) -> STRINGSET
17035 """
17036 _pcbnew.STRINGSET_swiginit(self, _pcbnew.new_STRINGSET(*args))
17037
17038 def empty(self):
17039 r"""empty(STRINGSET self) -> bool"""
17040 return _pcbnew.STRINGSET_empty(self)
17041
17042 def size(self):
17043 r"""size(STRINGSET self) -> std::set< wxString >::size_type"""
17044 return _pcbnew.STRINGSET_size(self)
17045
17046 def clear(self):
17047 r"""clear(STRINGSET self)"""
17048 return _pcbnew.STRINGSET_clear(self)
17049
17050 def swap(self, v):
17051 r"""swap(STRINGSET self, STRINGSET v)"""
17052 return _pcbnew.STRINGSET_swap(self, v)
17053
17054 def count(self, x):
17055 r"""count(STRINGSET self, wxString x) -> std::set< wxString >::size_type"""
17056 return _pcbnew.STRINGSET_count(self, x)
17057
17058 def begin(self):
17059 r"""begin(STRINGSET self) -> std::set< wxString >::iterator"""
17060 return _pcbnew.STRINGSET_begin(self)
17061
17062 def end(self):
17063 r"""end(STRINGSET self) -> std::set< wxString >::iterator"""
17064 return _pcbnew.STRINGSET_end(self)
17065
17066 def rbegin(self):
17067 r"""rbegin(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
17068 return _pcbnew.STRINGSET_rbegin(self)
17069
17070 def rend(self):
17071 r"""rend(STRINGSET self) -> std::set< wxString >::reverse_iterator"""
17072 return _pcbnew.STRINGSET_rend(self)
17073
17074 def erase(self, *args):
17075 r"""
17076 erase(STRINGSET self, wxString x) -> std::set< wxString >::size_type
17077 erase(STRINGSET self, std::set< wxString >::iterator pos)
17078 erase(STRINGSET self, std::set< wxString >::iterator first, std::set< wxString >::iterator last)
17079 """
17080 return _pcbnew.STRINGSET_erase(self, *args)
17081
17082 def find(self, x):
17083 r"""find(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
17084 return _pcbnew.STRINGSET_find(self, x)
17085
17086 def lower_bound(self, x):
17087 r"""lower_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
17088 return _pcbnew.STRINGSET_lower_bound(self, x)
17089
17090 def upper_bound(self, x):
17091 r"""upper_bound(STRINGSET self, wxString x) -> std::set< wxString >::iterator"""
17092 return _pcbnew.STRINGSET_upper_bound(self, x)
17093
17094 def equal_range(self, x):
17095 r"""equal_range(STRINGSET self, wxString x) -> std::pair< std::set< wxString >::iterator,std::set< wxString >::iterator >"""
17096 return _pcbnew.STRINGSET_equal_range(self, x)
17097
17098 def insert(self, __x):
17099 r"""insert(STRINGSET self, wxString __x) -> std::pair< std::set< wxString >::iterator,bool >"""
17100 return _pcbnew.STRINGSET_insert(self, __x)
17101 __swig_destroy__ = _pcbnew.delete_STRINGSET
17102
17103# Register STRINGSET in _pcbnew:
17104_pcbnew.STRINGSET_swigregister(STRINGSET)
17105
17107 r"""Proxy of C++ NETCLASS class."""
17108
17109 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17110 __repr__ = _swig_repr
17111
17112 def __init__(self, aName):
17113 r"""__init__(NETCLASS self, wxString aName) -> NETCLASS"""
17114 _pcbnew.NETCLASS_swiginit(self, _pcbnew.new_NETCLASS(aName))
17115 __swig_destroy__ = _pcbnew.delete_NETCLASS
17116
17117 def GetClass(self):
17118 r"""GetClass(NETCLASS self) -> wxString"""
17119 return _pcbnew.NETCLASS_GetClass(self)
17120
17121 def GetName(self):
17122 r"""GetName(NETCLASS self) -> wxString"""
17123 return _pcbnew.NETCLASS_GetName(self)
17124
17125 def SetName(self, aName):
17126 r"""SetName(NETCLASS self, wxString aName)"""
17127 return _pcbnew.NETCLASS_SetName(self, aName)
17128
17130 r"""GetDescription(NETCLASS self) -> wxString"""
17131 return _pcbnew.NETCLASS_GetDescription(self)
17132
17133 def SetDescription(self, aDesc):
17134 r"""SetDescription(NETCLASS self, wxString aDesc)"""
17135 return _pcbnew.NETCLASS_SetDescription(self, aDesc)
17136
17137 def HasClearance(self):
17138 r"""HasClearance(NETCLASS self) -> bool"""
17139 return _pcbnew.NETCLASS_HasClearance(self)
17140
17141 def GetClearance(self):
17142 r"""GetClearance(NETCLASS self) -> int"""
17143 return _pcbnew.NETCLASS_GetClearance(self)
17144
17145 def SetClearance(self, aClearance):
17146 r"""SetClearance(NETCLASS self, int aClearance)"""
17147 return _pcbnew.NETCLASS_SetClearance(self, aClearance)
17148
17149 def HasTrackWidth(self):
17150 r"""HasTrackWidth(NETCLASS self) -> bool"""
17151 return _pcbnew.NETCLASS_HasTrackWidth(self)
17152
17153 def GetTrackWidth(self):
17154 r"""GetTrackWidth(NETCLASS self) -> int"""
17155 return _pcbnew.NETCLASS_GetTrackWidth(self)
17156
17157 def SetTrackWidth(self, aWidth):
17158 r"""SetTrackWidth(NETCLASS self, int aWidth)"""
17159 return _pcbnew.NETCLASS_SetTrackWidth(self, aWidth)
17160
17162 r"""HasViaDiameter(NETCLASS self) -> bool"""
17163 return _pcbnew.NETCLASS_HasViaDiameter(self)
17164
17166 r"""GetViaDiameter(NETCLASS self) -> int"""
17167 return _pcbnew.NETCLASS_GetViaDiameter(self)
17168
17169 def SetViaDiameter(self, aDia):
17170 r"""SetViaDiameter(NETCLASS self, int aDia)"""
17171 return _pcbnew.NETCLASS_SetViaDiameter(self, aDia)
17172
17173 def HasViaDrill(self):
17174 r"""HasViaDrill(NETCLASS self) -> int"""
17175 return _pcbnew.NETCLASS_HasViaDrill(self)
17176
17177 def GetViaDrill(self):
17178 r"""GetViaDrill(NETCLASS self) -> int"""
17179 return _pcbnew.NETCLASS_GetViaDrill(self)
17180
17181 def SetViaDrill(self, aSize):
17182 r"""SetViaDrill(NETCLASS self, int aSize)"""
17183 return _pcbnew.NETCLASS_SetViaDrill(self, aSize)
17184
17186 r"""HasuViaDiameter(NETCLASS self) -> bool"""
17187 return _pcbnew.NETCLASS_HasuViaDiameter(self)
17188
17190 r"""GetuViaDiameter(NETCLASS self) -> int"""
17191 return _pcbnew.NETCLASS_GetuViaDiameter(self)
17192
17193 def SetuViaDiameter(self, aSize):
17194 r"""SetuViaDiameter(NETCLASS self, int aSize)"""
17195 return _pcbnew.NETCLASS_SetuViaDiameter(self, aSize)
17196
17197 def HasuViaDrill(self):
17198 r"""HasuViaDrill(NETCLASS self) -> bool"""
17199 return _pcbnew.NETCLASS_HasuViaDrill(self)
17200
17201 def GetuViaDrill(self):
17202 r"""GetuViaDrill(NETCLASS self) -> int"""
17203 return _pcbnew.NETCLASS_GetuViaDrill(self)
17204
17205 def SetuViaDrill(self, aSize):
17206 r"""SetuViaDrill(NETCLASS self, int aSize)"""
17207 return _pcbnew.NETCLASS_SetuViaDrill(self, aSize)
17208
17210 r"""HasDiffPairWidth(NETCLASS self) -> bool"""
17211 return _pcbnew.NETCLASS_HasDiffPairWidth(self)
17212
17214 r"""GetDiffPairWidth(NETCLASS self) -> int"""
17215 return _pcbnew.NETCLASS_GetDiffPairWidth(self)
17216
17217 def SetDiffPairWidth(self, aSize):
17218 r"""SetDiffPairWidth(NETCLASS self, int aSize)"""
17219 return _pcbnew.NETCLASS_SetDiffPairWidth(self, aSize)
17220
17222 r"""HasDiffPairGap(NETCLASS self) -> bool"""
17223 return _pcbnew.NETCLASS_HasDiffPairGap(self)
17224
17226 r"""GetDiffPairGap(NETCLASS self) -> int"""
17227 return _pcbnew.NETCLASS_GetDiffPairGap(self)
17228
17229 def SetDiffPairGap(self, aSize):
17230 r"""SetDiffPairGap(NETCLASS self, int aSize)"""
17231 return _pcbnew.NETCLASS_SetDiffPairGap(self, aSize)
17232
17234 r"""HasDiffPairViaGap(NETCLASS self) -> bool"""
17235 return _pcbnew.NETCLASS_HasDiffPairViaGap(self)
17236
17238 r"""GetDiffPairViaGap(NETCLASS self) -> int"""
17239 return _pcbnew.NETCLASS_GetDiffPairViaGap(self)
17240
17241 def SetDiffPairViaGap(self, aSize):
17242 r"""SetDiffPairViaGap(NETCLASS self, int aSize)"""
17243 return _pcbnew.NETCLASS_SetDiffPairViaGap(self, aSize)
17244
17245 def GetPcbColor(self):
17246 r"""GetPcbColor(NETCLASS self) -> COLOR4D"""
17247 return _pcbnew.NETCLASS_GetPcbColor(self)
17248
17249 def SetPcbColor(self, aColor):
17250 r"""SetPcbColor(NETCLASS self, COLOR4D aColor)"""
17251 return _pcbnew.NETCLASS_SetPcbColor(self, aColor)
17252
17253 def GetWireWidth(self):
17254 r"""GetWireWidth(NETCLASS self) -> int"""
17255 return _pcbnew.NETCLASS_GetWireWidth(self)
17256
17257 def SetWireWidth(self, aWidth):
17258 r"""SetWireWidth(NETCLASS self, int aWidth)"""
17259 return _pcbnew.NETCLASS_SetWireWidth(self, aWidth)
17260
17261 def GetBusWidth(self):
17262 r"""GetBusWidth(NETCLASS self) -> int"""
17263 return _pcbnew.NETCLASS_GetBusWidth(self)
17264
17265 def SetBusWidth(self, aWidth):
17266 r"""SetBusWidth(NETCLASS self, int aWidth)"""
17267 return _pcbnew.NETCLASS_SetBusWidth(self, aWidth)
17268
17270 r"""GetSchematicColor(NETCLASS self) -> COLOR4D"""
17271 return _pcbnew.NETCLASS_GetSchematicColor(self)
17272
17273 def SetSchematicColor(self, aColor):
17274 r"""SetSchematicColor(NETCLASS self, COLOR4D aColor)"""
17275 return _pcbnew.NETCLASS_SetSchematicColor(self, aColor)
17276
17277 def GetLineStyle(self):
17278 r"""GetLineStyle(NETCLASS self) -> int"""
17279 return _pcbnew.NETCLASS_GetLineStyle(self)
17280
17281 def SetLineStyle(self, aStyle):
17282 r"""SetLineStyle(NETCLASS self, int aStyle)"""
17283 return _pcbnew.NETCLASS_SetLineStyle(self, aStyle)
17284
17285# Register NETCLASS in _pcbnew:
17286_pcbnew.NETCLASS_swigregister(NETCLASS)
17287NETCLASS.Default = _pcbnew.cvar.NETCLASS_Default
17288
17290 r"""Proxy of C++ PCB_GROUP class."""
17291
17292 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17293 __repr__ = _swig_repr
17294
17295 def __init__(self, aParent):
17296 r"""__init__(PCB_GROUP self, BOARD_ITEM aParent) -> PCB_GROUP"""
17297 _pcbnew.PCB_GROUP_swiginit(self, _pcbnew.new_PCB_GROUP(aParent))
17298
17299 @staticmethod
17300 def ClassOf(aItem):
17301 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17302 return _pcbnew.PCB_GROUP_ClassOf(aItem)
17303
17304 def GetName(self):
17305 r"""GetName(PCB_GROUP self) -> wxString"""
17306 return _pcbnew.PCB_GROUP_GetName(self)
17307
17308 def SetName(self, aName):
17309 r"""SetName(PCB_GROUP self, wxString aName)"""
17310 return _pcbnew.PCB_GROUP_SetName(self, aName)
17311
17312 def GetItems(self, *args):
17313 r"""
17314 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * >
17315 GetItems(PCB_GROUP self) -> std::unordered_set< BOARD_ITEM * > const &
17316 """
17317 return _pcbnew.PCB_GROUP_GetItems(self, *args)
17318
17319 def AddItem(self, aItem):
17320 r"""AddItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
17321 return _pcbnew.PCB_GROUP_AddItem(self, aItem)
17322
17323 def RemoveItem(self, aItem):
17324 r"""RemoveItem(PCB_GROUP self, BOARD_ITEM aItem) -> bool"""
17325 return _pcbnew.PCB_GROUP_RemoveItem(self, aItem)
17326
17327 def RemoveAll(self):
17328 r"""RemoveAll(PCB_GROUP self)"""
17329 return _pcbnew.PCB_GROUP_RemoveAll(self)
17330
17331 @staticmethod
17332 def TopLevelGroup(aItem, aScope, isFootprintEditor):
17333 r"""TopLevelGroup(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> PCB_GROUP"""
17334 return _pcbnew.PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
17335
17336 @staticmethod
17337 def WithinScope(aItem, aScope, isFootprintEditor):
17338 r"""WithinScope(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> bool"""
17339 return _pcbnew.PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
17340
17341 def DeepClone(self):
17342 r"""DeepClone(PCB_GROUP self) -> PCB_GROUP"""
17343 return _pcbnew.PCB_GROUP_DeepClone(self)
17344
17345 def DeepDuplicate(self):
17346 r"""DeepDuplicate(PCB_GROUP self) -> PCB_GROUP"""
17347 return _pcbnew.PCB_GROUP_DeepDuplicate(self)
17348
17349 def HitTest(self, *args):
17350 r"""
17351 HitTest(PCB_GROUP self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17352 HitTest(PCB_GROUP self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17353 """
17354 return _pcbnew.PCB_GROUP_HitTest(self, *args)
17355
17356 def GetEffectiveShape(self, *args):
17357 r"""GetEffectiveShape(PCB_GROUP self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17358 return _pcbnew.PCB_GROUP_GetEffectiveShape(self, *args)
17359
17360 def ViewGetLOD(self, aLayer, aView):
17361 r"""ViewGetLOD(PCB_GROUP self, int aLayer, KIGFX::VIEW * aView) -> double"""
17362 return _pcbnew.PCB_GROUP_ViewGetLOD(self, aLayer, aView)
17363
17364 def RunOnDescendants(self, aFunction, aDepth=0):
17365 r"""RunOnDescendants(PCB_GROUP self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
17366 return _pcbnew.PCB_GROUP_RunOnDescendants(self, aFunction, aDepth)
17367
17368 @staticmethod
17370 r"""IsGroupableType(KICAD_T aType) -> bool"""
17371 return _pcbnew.PCB_GROUP_IsGroupableType(aType)
17372
17373 def GetItemsDeque(self):
17374 r"""GetItemsDeque(PCB_GROUP self) -> DRAWINGS"""
17375 return _pcbnew.PCB_GROUP_GetItemsDeque(self)
17376
17377 def GetItems(self):
17378 return [item.Cast() for item in self.GetItemsDeque()]
17379
17380 __swig_destroy__ = _pcbnew.delete_PCB_GROUP
17381
17382# Register PCB_GROUP in _pcbnew:
17383_pcbnew.PCB_GROUP_swigregister(PCB_GROUP)
17384
17386 r"""PCB_GROUP_ClassOf(EDA_ITEM aItem) -> bool"""
17387 return _pcbnew.PCB_GROUP_ClassOf(aItem)
17388
17389def PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor):
17390 r"""PCB_GROUP_TopLevelGroup(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> PCB_GROUP"""
17391 return _pcbnew.PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
17392
17393def PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor):
17394 r"""PCB_GROUP_WithinScope(BOARD_ITEM aItem, PCB_GROUP aScope, bool isFootprintEditor) -> bool"""
17395 return _pcbnew.PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
17396
17398 r"""PCB_GROUP_IsGroupableType(KICAD_T aType) -> bool"""
17399 return _pcbnew.PCB_GROUP_IsGroupableType(aType)
17400
17402 r"""Proxy of C++ PCB_REFERENCE_IMAGE class."""
17403
17404 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17405 __repr__ = _swig_repr
17406
17407 def __init__(self, *args):
17408 r"""
17409 __init__(PCB_REFERENCE_IMAGE self, BOARD_ITEM aParent, VECTOR2I pos=VECTOR2I( 0, 0 ), PCB_LAYER_ID aLayer=F_Cu) -> PCB_REFERENCE_IMAGE
17410 __init__(PCB_REFERENCE_IMAGE self, PCB_REFERENCE_IMAGE aPcbBitmap) -> PCB_REFERENCE_IMAGE
17411 """
17412 _pcbnew.PCB_REFERENCE_IMAGE_swiginit(self, _pcbnew.new_PCB_REFERENCE_IMAGE(*args))
17413 __swig_destroy__ = _pcbnew.delete_PCB_REFERENCE_IMAGE
17414
17415 def GetImage(self):
17416 r"""GetImage(PCB_REFERENCE_IMAGE self) -> BITMAP_BASE const *"""
17417 return _pcbnew.PCB_REFERENCE_IMAGE_GetImage(self)
17418
17419 def MutableImage(self):
17420 r"""MutableImage(PCB_REFERENCE_IMAGE self) -> BITMAP_BASE *"""
17421 return _pcbnew.PCB_REFERENCE_IMAGE_MutableImage(self)
17422
17423 def GetImageScale(self):
17424 r"""GetImageScale(PCB_REFERENCE_IMAGE self) -> double"""
17425 return _pcbnew.PCB_REFERENCE_IMAGE_GetImageScale(self)
17426
17427 def SetImageScale(self, aScale):
17428 r"""SetImageScale(PCB_REFERENCE_IMAGE self, double aScale)"""
17429 return _pcbnew.PCB_REFERENCE_IMAGE_SetImageScale(self, aScale)
17430
17431 @staticmethod
17432 def ClassOf(aItem):
17433 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17434 return _pcbnew.PCB_REFERENCE_IMAGE_ClassOf(aItem)
17435
17436 def GetSize(self):
17437 r"""GetSize(PCB_REFERENCE_IMAGE self) -> VECTOR2I"""
17438 return _pcbnew.PCB_REFERENCE_IMAGE_GetSize(self)
17439
17440 def ViewGetLOD(self, aLayer, aView):
17441 r"""ViewGetLOD(PCB_REFERENCE_IMAGE self, int aLayer, KIGFX::VIEW * aView) -> double"""
17442 return _pcbnew.PCB_REFERENCE_IMAGE_ViewGetLOD(self, aLayer, aView)
17443
17444 def GetEffectiveShape(self, *args):
17445 r"""GetEffectiveShape(PCB_REFERENCE_IMAGE self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
17446 return _pcbnew.PCB_REFERENCE_IMAGE_GetEffectiveShape(self, *args)
17447
17448 def ReadImageFile(self, *args):
17449 r"""
17450 ReadImageFile(PCB_REFERENCE_IMAGE self, wxString aFullFilename) -> bool
17451 ReadImageFile(PCB_REFERENCE_IMAGE self, wxMemoryBuffer & aBuf) -> bool
17452 """
17453 return _pcbnew.PCB_REFERENCE_IMAGE_ReadImageFile(self, *args)
17454
17455 def HitTest(self, *args):
17456 r"""
17457 HitTest(PCB_REFERENCE_IMAGE self, VECTOR2I aPosition, int aAccuracy=0) -> bool
17458 HitTest(PCB_REFERENCE_IMAGE self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
17459 """
17460 return _pcbnew.PCB_REFERENCE_IMAGE_HitTest(self, *args)
17461
17462# Register PCB_REFERENCE_IMAGE in _pcbnew:
17463_pcbnew.PCB_REFERENCE_IMAGE_swigregister(PCB_REFERENCE_IMAGE)
17464
17466 r"""PCB_REFERENCE_IMAGE_ClassOf(EDA_ITEM aItem) -> bool"""
17467 return _pcbnew.PCB_REFERENCE_IMAGE_ClassOf(aItem)
17468
17470 r"""Proxy of C++ std::vector< VIA_DIMENSION > class."""
17471
17472 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17473 __repr__ = _swig_repr
17474
17475 def iterator(self):
17476 r"""iterator(VIA_DIMENSION_Vector self) -> SwigPyIterator"""
17477 return _pcbnew.VIA_DIMENSION_Vector_iterator(self)
17478 def __iter__(self):
17479 return self.iterator()
17480
17481 def __nonzero__(self):
17482 r"""__nonzero__(VIA_DIMENSION_Vector self) -> bool"""
17483 return _pcbnew.VIA_DIMENSION_Vector___nonzero__(self)
17484
17485 def __bool__(self):
17486 r"""__bool__(VIA_DIMENSION_Vector self) -> bool"""
17487 return _pcbnew.VIA_DIMENSION_Vector___bool__(self)
17488
17489 def __len__(self):
17490 r"""__len__(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
17491 return _pcbnew.VIA_DIMENSION_Vector___len__(self)
17492
17493 def __getslice__(self, i, j):
17494 r"""__getslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j) -> VIA_DIMENSION_Vector"""
17495 return _pcbnew.VIA_DIMENSION_Vector___getslice__(self, i, j)
17496
17497 def __setslice__(self, *args):
17498 r"""
17499 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)
17500 __setslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j, VIA_DIMENSION_Vector v)
17501 """
17502 return _pcbnew.VIA_DIMENSION_Vector___setslice__(self, *args)
17503
17504 def __delslice__(self, i, j):
17505 r"""__delslice__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, std::vector< VIA_DIMENSION >::difference_type j)"""
17506 return _pcbnew.VIA_DIMENSION_Vector___delslice__(self, i, j)
17507
17508 def __delitem__(self, *args):
17509 r"""
17510 __delitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i)
17511 __delitem__(VIA_DIMENSION_Vector self, PySliceObject * slice)
17512 """
17513 return _pcbnew.VIA_DIMENSION_Vector___delitem__(self, *args)
17514
17515 def __getitem__(self, *args):
17516 r"""
17517 __getitem__(VIA_DIMENSION_Vector self, PySliceObject * slice) -> VIA_DIMENSION_Vector
17518 __getitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i) -> VIA_DIMENSION
17519 """
17520 return _pcbnew.VIA_DIMENSION_Vector___getitem__(self, *args)
17521
17522 def __setitem__(self, *args):
17523 r"""
17524 __setitem__(VIA_DIMENSION_Vector self, PySliceObject * slice, VIA_DIMENSION_Vector v)
17525 __setitem__(VIA_DIMENSION_Vector self, PySliceObject * slice)
17526 __setitem__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::difference_type i, VIA_DIMENSION x)
17527 """
17528 return _pcbnew.VIA_DIMENSION_Vector___setitem__(self, *args)
17529
17530 def pop(self):
17531 r"""pop(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
17532 return _pcbnew.VIA_DIMENSION_Vector_pop(self)
17533
17534 def append(self, x):
17535 r"""append(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
17536 return _pcbnew.VIA_DIMENSION_Vector_append(self, x)
17537
17538 def empty(self):
17539 r"""empty(VIA_DIMENSION_Vector self) -> bool"""
17540 return _pcbnew.VIA_DIMENSION_Vector_empty(self)
17541
17542 def size(self):
17543 r"""size(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
17544 return _pcbnew.VIA_DIMENSION_Vector_size(self)
17545
17546 def swap(self, v):
17547 r"""swap(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector v)"""
17548 return _pcbnew.VIA_DIMENSION_Vector_swap(self, v)
17549
17550 def begin(self):
17551 r"""begin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
17552 return _pcbnew.VIA_DIMENSION_Vector_begin(self)
17553
17554 def end(self):
17555 r"""end(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::iterator"""
17556 return _pcbnew.VIA_DIMENSION_Vector_end(self)
17557
17558 def rbegin(self):
17559 r"""rbegin(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
17560 return _pcbnew.VIA_DIMENSION_Vector_rbegin(self)
17561
17562 def rend(self):
17563 r"""rend(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::reverse_iterator"""
17564 return _pcbnew.VIA_DIMENSION_Vector_rend(self)
17565
17566 def clear(self):
17567 r"""clear(VIA_DIMENSION_Vector self)"""
17568 return _pcbnew.VIA_DIMENSION_Vector_clear(self)
17569
17570 def get_allocator(self):
17571 r"""get_allocator(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::allocator_type"""
17572 return _pcbnew.VIA_DIMENSION_Vector_get_allocator(self)
17573
17574 def pop_back(self):
17575 r"""pop_back(VIA_DIMENSION_Vector self)"""
17576 return _pcbnew.VIA_DIMENSION_Vector_pop_back(self)
17577
17578 def erase(self, *args):
17579 r"""
17580 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos) -> std::vector< VIA_DIMENSION >::iterator
17581 erase(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator first, std::vector< VIA_DIMENSION >::iterator last) -> std::vector< VIA_DIMENSION >::iterator
17582 """
17583 return _pcbnew.VIA_DIMENSION_Vector_erase(self, *args)
17584
17585 def __init__(self, *args):
17586 r"""
17587 __init__(VIA_DIMENSION_Vector self) -> VIA_DIMENSION_Vector
17588 __init__(VIA_DIMENSION_Vector self, VIA_DIMENSION_Vector other) -> VIA_DIMENSION_Vector
17589 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size) -> VIA_DIMENSION_Vector
17590 __init__(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type size, VIA_DIMENSION value) -> VIA_DIMENSION_Vector
17591 """
17592 _pcbnew.VIA_DIMENSION_Vector_swiginit(self, _pcbnew.new_VIA_DIMENSION_Vector(*args))
17593
17594 def push_back(self, x):
17595 r"""push_back(VIA_DIMENSION_Vector self, VIA_DIMENSION x)"""
17596 return _pcbnew.VIA_DIMENSION_Vector_push_back(self, x)
17597
17598 def front(self):
17599 r"""front(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
17600 return _pcbnew.VIA_DIMENSION_Vector_front(self)
17601
17602 def back(self):
17603 r"""back(VIA_DIMENSION_Vector self) -> VIA_DIMENSION"""
17604 return _pcbnew.VIA_DIMENSION_Vector_back(self)
17605
17606 def assign(self, n, x):
17607 r"""assign(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)"""
17608 return _pcbnew.VIA_DIMENSION_Vector_assign(self, n, x)
17609
17610 def resize(self, *args):
17611 r"""
17612 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size)
17613 resize(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type new_size, VIA_DIMENSION x)
17614 """
17615 return _pcbnew.VIA_DIMENSION_Vector_resize(self, *args)
17616
17617 def insert(self, *args):
17618 r"""
17619 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, VIA_DIMENSION x) -> std::vector< VIA_DIMENSION >::iterator
17620 insert(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::iterator pos, std::vector< VIA_DIMENSION >::size_type n, VIA_DIMENSION x)
17621 """
17622 return _pcbnew.VIA_DIMENSION_Vector_insert(self, *args)
17623
17624 def reserve(self, n):
17625 r"""reserve(VIA_DIMENSION_Vector self, std::vector< VIA_DIMENSION >::size_type n)"""
17626 return _pcbnew.VIA_DIMENSION_Vector_reserve(self, n)
17627
17628 def capacity(self):
17629 r"""capacity(VIA_DIMENSION_Vector self) -> std::vector< VIA_DIMENSION >::size_type"""
17630 return _pcbnew.VIA_DIMENSION_Vector_capacity(self)
17631 __swig_destroy__ = _pcbnew.delete_VIA_DIMENSION_Vector
17632
17633# Register VIA_DIMENSION_Vector in _pcbnew:
17634_pcbnew.VIA_DIMENSION_Vector_swigregister(VIA_DIMENSION_Vector)
17635
17636DEFAULT_CHAINING_EPSILON_MM = _pcbnew.DEFAULT_CHAINING_EPSILON_MM
17637
17639 r"""Proxy of C++ PTR_PTR_CACHE_KEY class."""
17640
17641 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17642 __repr__ = _swig_repr
17643 A = property(_pcbnew.PTR_PTR_CACHE_KEY_A_get, _pcbnew.PTR_PTR_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
17644 B = property(_pcbnew.PTR_PTR_CACHE_KEY_B_get, _pcbnew.PTR_PTR_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
17645
17646 def __eq__(self, other):
17647 r"""__eq__(PTR_PTR_CACHE_KEY self, PTR_PTR_CACHE_KEY other) -> bool"""
17648 return _pcbnew.PTR_PTR_CACHE_KEY___eq__(self, other)
17649
17650 def __init__(self):
17651 r"""__init__(PTR_PTR_CACHE_KEY self) -> PTR_PTR_CACHE_KEY"""
17652 _pcbnew.PTR_PTR_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_CACHE_KEY())
17653 __swig_destroy__ = _pcbnew.delete_PTR_PTR_CACHE_KEY
17654
17655# Register PTR_PTR_CACHE_KEY in _pcbnew:
17656_pcbnew.PTR_PTR_CACHE_KEY_swigregister(PTR_PTR_CACHE_KEY)
17657
17659 r"""Proxy of C++ PTR_LAYER_CACHE_KEY class."""
17660
17661 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17662 __repr__ = _swig_repr
17663 A = property(_pcbnew.PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
17664 Layer = property(_pcbnew.PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
17665
17666 def __eq__(self, other):
17667 r"""__eq__(PTR_LAYER_CACHE_KEY self, PTR_LAYER_CACHE_KEY other) -> bool"""
17668 return _pcbnew.PTR_LAYER_CACHE_KEY___eq__(self, other)
17669
17670 def __init__(self):
17671 r"""__init__(PTR_LAYER_CACHE_KEY self) -> PTR_LAYER_CACHE_KEY"""
17672 _pcbnew.PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_LAYER_CACHE_KEY())
17673 __swig_destroy__ = _pcbnew.delete_PTR_LAYER_CACHE_KEY
17674
17675# Register PTR_LAYER_CACHE_KEY in _pcbnew:
17676_pcbnew.PTR_LAYER_CACHE_KEY_swigregister(PTR_LAYER_CACHE_KEY)
17677
17679 r"""Proxy of C++ PTR_PTR_LAYER_CACHE_KEY class."""
17680
17681 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17682 __repr__ = _swig_repr
17683 A = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_A_set, doc=r"""A : p.BOARD_ITEM""")
17684 B = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_B_set, doc=r"""B : p.BOARD_ITEM""")
17685 Layer = property(_pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_get, _pcbnew.PTR_PTR_LAYER_CACHE_KEY_Layer_set, doc=r"""Layer : PCB_LAYER_ID""")
17686
17687 def __eq__(self, other):
17688 r"""__eq__(PTR_PTR_LAYER_CACHE_KEY self, PTR_PTR_LAYER_CACHE_KEY other) -> bool"""
17689 return _pcbnew.PTR_PTR_LAYER_CACHE_KEY___eq__(self, other)
17690
17691 def __init__(self):
17692 r"""__init__(PTR_PTR_LAYER_CACHE_KEY self) -> PTR_PTR_LAYER_CACHE_KEY"""
17693 _pcbnew.PTR_PTR_LAYER_CACHE_KEY_swiginit(self, _pcbnew.new_PTR_PTR_LAYER_CACHE_KEY())
17694 __swig_destroy__ = _pcbnew.delete_PTR_PTR_LAYER_CACHE_KEY
17695
17696# Register PTR_PTR_LAYER_CACHE_KEY in _pcbnew:
17697_pcbnew.PTR_PTR_LAYER_CACHE_KEY_swigregister(PTR_PTR_LAYER_CACHE_KEY)
17698
17699LT_UNDEFINED = _pcbnew.LT_UNDEFINED
17700
17701LT_SIGNAL = _pcbnew.LT_SIGNAL
17702
17703LT_POWER = _pcbnew.LT_POWER
17704
17705LT_MIXED = _pcbnew.LT_MIXED
17706
17707LT_JUMPER = _pcbnew.LT_JUMPER
17708
17710 r"""Proxy of C++ LAYER class."""
17711
17712 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17713 __repr__ = _swig_repr
17714
17715 def __init__(self):
17716 r"""__init__(LAYER self) -> LAYER"""
17717 _pcbnew.LAYER_swiginit(self, _pcbnew.new_LAYER())
17718
17719 def clear(self):
17720 r"""clear(LAYER self)"""
17721 return _pcbnew.LAYER_clear(self)
17722 m_name = property(_pcbnew.LAYER_m_name_get, _pcbnew.LAYER_m_name_set, doc=r"""m_name : wxString""")
17723 m_userName = property(_pcbnew.LAYER_m_userName_get, _pcbnew.LAYER_m_userName_set, doc=r"""m_userName : wxString""")
17724 m_type = property(_pcbnew.LAYER_m_type_get, _pcbnew.LAYER_m_type_set, doc=r"""m_type : LAYER_T""")
17725 m_visible = property(_pcbnew.LAYER_m_visible_get, _pcbnew.LAYER_m_visible_set, doc=r"""m_visible : bool""")
17726 m_number = property(_pcbnew.LAYER_m_number_get, _pcbnew.LAYER_m_number_set, doc=r"""m_number : int""")
17727
17728 @staticmethod
17729 def ShowType(aType):
17730 r"""ShowType(LAYER_T aType) -> char const *"""
17731 return _pcbnew.LAYER_ShowType(aType)
17732
17733 @staticmethod
17734 def ParseType(aType):
17735 r"""ParseType(char const * aType) -> LAYER_T"""
17736 return _pcbnew.LAYER_ParseType(aType)
17737 __swig_destroy__ = _pcbnew.delete_LAYER
17738
17739# Register LAYER in _pcbnew:
17740_pcbnew.LAYER_swigregister(LAYER)
17741
17743 r"""LAYER_ShowType(LAYER_T aType) -> char const *"""
17744 return _pcbnew.LAYER_ShowType(aType)
17745
17747 r"""LAYER_ParseType(char const * aType) -> LAYER_T"""
17748 return _pcbnew.LAYER_ParseType(aType)
17749
17751 r"""Proxy of C++ HIGH_LIGHT_INFO class."""
17752
17753 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17754
17755 def __init__(self, *args, **kwargs):
17756 raise AttributeError("No constructor defined")
17757 __repr__ = _swig_repr
17758 __swig_destroy__ = _pcbnew.delete_HIGH_LIGHT_INFO
17759
17760# Register HIGH_LIGHT_INFO in _pcbnew:
17761_pcbnew.HIGH_LIGHT_INFO_swigregister(HIGH_LIGHT_INFO)
17762
17764 r"""Proxy of C++ BOARD_LISTENER class."""
17765
17766 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17767 __repr__ = _swig_repr
17768 __swig_destroy__ = _pcbnew.delete_BOARD_LISTENER
17769
17770 def OnBoardItemAdded(self, aBoard, aBoardItem):
17771 r"""OnBoardItemAdded(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
17772 return _pcbnew.BOARD_LISTENER_OnBoardItemAdded(self, aBoard, aBoardItem)
17773
17774 def OnBoardItemsAdded(self, aBoard, aBoardItem):
17775 r"""OnBoardItemsAdded(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
17776 return _pcbnew.BOARD_LISTENER_OnBoardItemsAdded(self, aBoard, aBoardItem)
17777
17778 def OnBoardItemRemoved(self, aBoard, aBoardItem):
17779 r"""OnBoardItemRemoved(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
17780 return _pcbnew.BOARD_LISTENER_OnBoardItemRemoved(self, aBoard, aBoardItem)
17781
17782 def OnBoardItemsRemoved(self, aBoard, aBoardItem):
17783 r"""OnBoardItemsRemoved(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
17784 return _pcbnew.BOARD_LISTENER_OnBoardItemsRemoved(self, aBoard, aBoardItem)
17785
17786 def OnBoardNetSettingsChanged(self, aBoard):
17787 r"""OnBoardNetSettingsChanged(BOARD_LISTENER self, BOARD aBoard)"""
17788 return _pcbnew.BOARD_LISTENER_OnBoardNetSettingsChanged(self, aBoard)
17789
17790 def OnBoardItemChanged(self, aBoard, aBoardItem):
17791 r"""OnBoardItemChanged(BOARD_LISTENER self, BOARD aBoard, BOARD_ITEM aBoardItem)"""
17792 return _pcbnew.BOARD_LISTENER_OnBoardItemChanged(self, aBoard, aBoardItem)
17793
17794 def OnBoardItemsChanged(self, aBoard, aBoardItem):
17795 r"""OnBoardItemsChanged(BOARD_LISTENER self, BOARD aBoard, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aBoardItem)"""
17796 return _pcbnew.BOARD_LISTENER_OnBoardItemsChanged(self, aBoard, aBoardItem)
17797
17799 r"""OnBoardHighlightNetChanged(BOARD_LISTENER self, BOARD aBoard)"""
17800 return _pcbnew.BOARD_LISTENER_OnBoardHighlightNetChanged(self, aBoard)
17801
17802 def OnBoardRatsnestChanged(self, aBoard):
17803 r"""OnBoardRatsnestChanged(BOARD_LISTENER self, BOARD aBoard)"""
17804 return _pcbnew.BOARD_LISTENER_OnBoardRatsnestChanged(self, aBoard)
17805
17806 def __init__(self):
17807 r"""__init__(BOARD_LISTENER self) -> BOARD_LISTENER"""
17808 _pcbnew.BOARD_LISTENER_swiginit(self, _pcbnew.new_BOARD_LISTENER())
17809
17810# Register BOARD_LISTENER in _pcbnew:
17811_pcbnew.BOARD_LISTENER_swigregister(BOARD_LISTENER)
17812
17813BOARD_USE_NORMAL = _pcbnew.BOARD_USE_NORMAL
17814
17815BOARD_USE_FPHOLDER = _pcbnew.BOARD_USE_FPHOLDER
17816
17818 r"""Proxy of C++ BOARD class."""
17819
17820 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
17821
17822 def __init__(self, *args, **kwargs):
17823 raise AttributeError("No constructor defined")
17824 __repr__ = _swig_repr
17825
17826 @staticmethod
17827 def ClassOf(aItem):
17828 r"""ClassOf(EDA_ITEM aItem) -> bool"""
17829 return _pcbnew.BOARD_ClassOf(aItem)
17830
17831 def SetBoardUse(self, aUse):
17832 r"""SetBoardUse(BOARD self, BOARD_USE aUse)"""
17833 return _pcbnew.BOARD_SetBoardUse(self, aUse)
17834
17835 def GetBoardUse(self):
17836 r"""GetBoardUse(BOARD self) -> BOARD_USE"""
17837 return _pcbnew.BOARD_GetBoardUse(self)
17838
17840 r"""IncrementTimeStamp(BOARD self)"""
17841 return _pcbnew.BOARD_IncrementTimeStamp(self)
17842
17843 def GetTimeStamp(self):
17844 r"""GetTimeStamp(BOARD self) -> int"""
17845 return _pcbnew.BOARD_GetTimeStamp(self)
17846
17848 r"""IsFootprintHolder(BOARD self) -> bool"""
17849 return _pcbnew.BOARD_IsFootprintHolder(self)
17850
17851 def SetFileName(self, aFileName):
17852 r"""SetFileName(BOARD self, wxString aFileName)"""
17853 return _pcbnew.BOARD_SetFileName(self, aFileName)
17854
17855 def GetFileName(self):
17856 r"""GetFileName(BOARD self) -> wxString"""
17857 return _pcbnew.BOARD_GetFileName(self)
17858
17859 def Tracks(self, *args):
17860 r"""
17861 Tracks(BOARD self) -> TRACKS
17862 Tracks(BOARD self) -> TRACKS
17863 """
17864 return _pcbnew.BOARD_Tracks(self, *args)
17865
17866 def Footprints(self, *args):
17867 r"""
17868 Footprints(BOARD self) -> FOOTPRINTS
17869 Footprints(BOARD self) -> FOOTPRINTS
17870 """
17871 return _pcbnew.BOARD_Footprints(self, *args)
17872
17873 def Drawings(self, *args):
17874 r"""
17875 Drawings(BOARD self) -> DRAWINGS
17876 Drawings(BOARD self) -> DRAWINGS
17877 """
17878 return _pcbnew.BOARD_Drawings(self, *args)
17879
17880 def Zones(self, *args):
17881 r"""
17882 Zones(BOARD self) -> ZONES
17883 Zones(BOARD self) -> ZONES
17884 """
17885 return _pcbnew.BOARD_Zones(self, *args)
17886
17887 def Generators(self, *args):
17888 r"""
17889 Generators(BOARD self) -> GENERATORS
17890 Generators(BOARD self) -> GENERATORS
17891 """
17892 return _pcbnew.BOARD_Generators(self, *args)
17893
17894 def Markers(self, *args):
17895 r"""
17896 Markers(BOARD self) -> MARKERS
17897 Markers(BOARD self) -> MARKERS
17898 """
17899 return _pcbnew.BOARD_Markers(self, *args)
17900
17901 def GetItemSet(self):
17902 r"""GetItemSet(BOARD self) -> BOARD_ITEM_SET const"""
17903 return _pcbnew.BOARD_GetItemSet(self)
17904
17905 def Groups(self, *args):
17906 r"""
17907 Groups(BOARD self) -> GROUPS
17908 Groups(BOARD self) -> GROUPS
17909 """
17910 return _pcbnew.BOARD_Groups(self, *args)
17911
17913 r"""AllConnectedItems(BOARD self) -> std::vector< BOARD_CONNECTED_ITEM *,std::allocator< BOARD_CONNECTED_ITEM * > > const"""
17914 return _pcbnew.BOARD_AllConnectedItems(self)
17915
17916 def GetProperties(self):
17917 r"""GetProperties(BOARD self) -> MAP_STRING_STRING"""
17918 return _pcbnew.BOARD_GetProperties(self)
17919
17920 def SetProperties(self, aProps):
17921 r"""SetProperties(BOARD self, MAP_STRING_STRING aProps)"""
17922 return _pcbnew.BOARD_SetProperties(self, aProps)
17923
17924 def GetContextualTextVars(self, aVars):
17925 r"""GetContextualTextVars(BOARD self, wxArrayString * aVars)"""
17926 return _pcbnew.BOARD_GetContextualTextVars(self, aVars)
17927
17928 def ResolveTextVar(self, token, aDepth):
17929 r"""ResolveTextVar(BOARD self, wxString token, int aDepth) -> bool"""
17930 return _pcbnew.BOARD_ResolveTextVar(self, token, aDepth)
17931 m_LegacyVisibleLayers = property(_pcbnew.BOARD_m_LegacyVisibleLayers_get, _pcbnew.BOARD_m_LegacyVisibleLayers_set, doc=r"""m_LegacyVisibleLayers : LSET""")
17932 m_LegacyVisibleItems = property(_pcbnew.BOARD_m_LegacyVisibleItems_get, _pcbnew.BOARD_m_LegacyVisibleItems_set, doc=r"""m_LegacyVisibleItems : GAL_SET""")
17933 m_LegacyDesignSettingsLoaded = property(_pcbnew.BOARD_m_LegacyDesignSettingsLoaded_get, _pcbnew.BOARD_m_LegacyDesignSettingsLoaded_set, doc=r"""m_LegacyDesignSettingsLoaded : bool""")
17934 m_LegacyCopperEdgeClearanceLoaded = property(_pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_get, _pcbnew.BOARD_m_LegacyCopperEdgeClearanceLoaded_set, doc=r"""m_LegacyCopperEdgeClearanceLoaded : bool""")
17935 m_LegacyNetclassesLoaded = property(_pcbnew.BOARD_m_LegacyNetclassesLoaded_get, _pcbnew.BOARD_m_LegacyNetclassesLoaded_set, doc=r"""m_LegacyNetclassesLoaded : bool""")
17936 __swig_destroy__ = _pcbnew.delete_BOARD
17937
17938 def IsEmpty(self):
17939 r"""IsEmpty(BOARD self) -> bool"""
17940 return _pcbnew.BOARD_IsEmpty(self)
17941
17942 def SetFileFormatVersionAtLoad(self, aVersion):
17943 r"""SetFileFormatVersionAtLoad(BOARD self, int aVersion)"""
17944 return _pcbnew.BOARD_SetFileFormatVersionAtLoad(self, aVersion)
17945
17947 r"""GetFileFormatVersionAtLoad(BOARD self) -> int"""
17948 return _pcbnew.BOARD_GetFileFormatVersionAtLoad(self)
17949
17950 def SetGenerator(self, aGenerator):
17951 r"""SetGenerator(BOARD self, wxString aGenerator)"""
17952 return _pcbnew.BOARD_SetGenerator(self, aGenerator)
17953
17954 def GetGenerator(self):
17955 r"""GetGenerator(BOARD self) -> wxString"""
17956 return _pcbnew.BOARD_GetGenerator(self)
17957
17958 def AddNative(self, *args):
17959 r"""AddNative(BOARD self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
17960 return _pcbnew.BOARD_AddNative(self, *args)
17961
17962 def RemoveNative(self, *args):
17963 r"""RemoveNative(BOARD self, BOARD_ITEM aBoardItem, REMOVE_MODE aMode=NORMAL)"""
17964 return _pcbnew.BOARD_RemoveNative(self, *args)
17965
17966 def FinalizeBulkAdd(self, aNewItems):
17967 r"""FinalizeBulkAdd(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aNewItems)"""
17968 return _pcbnew.BOARD_FinalizeBulkAdd(self, aNewItems)
17969
17970 def FinalizeBulkRemove(self, aRemovedItems):
17971 r"""FinalizeBulkRemove(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aRemovedItems)"""
17972 return _pcbnew.BOARD_FinalizeBulkRemove(self, aRemovedItems)
17973
17974 def CacheTriangulation(self, *args):
17975 r"""CacheTriangulation(BOARD self, PROGRESS_REPORTER * aReporter=None, ZONES aZones={})"""
17976 return _pcbnew.BOARD_CacheTriangulation(self, *args)
17977
17979 r"""GetFirstFootprint(BOARD self) -> FOOTPRINT"""
17980 return _pcbnew.BOARD_GetFirstFootprint(self)
17981
17983 r"""DeleteAllFootprints(BOARD self)"""
17984 return _pcbnew.BOARD_DeleteAllFootprints(self)
17985
17986 def GetItem(self, aID):
17987 r"""GetItem(BOARD self, KIID aID) -> BOARD_ITEM"""
17988 return _pcbnew.BOARD_GetItem(self, aID)
17989
17990 def FillItemMap(self, aMap):
17991 r"""FillItemMap(BOARD self, std::map< KIID,EDA_ITEM *,std::less< KIID >,std::allocator< std::pair< KIID const,EDA_ITEM * > > > & aMap)"""
17992 return _pcbnew.BOARD_FillItemMap(self, aMap)
17993
17995 r"""ConvertCrossReferencesToKIIDs(BOARD self, wxString aSource) -> wxString"""
17996 return _pcbnew.BOARD_ConvertCrossReferencesToKIIDs(self, aSource)
17997
17999 r"""ConvertKIIDsToCrossReferences(BOARD self, wxString aSource) -> wxString"""
18000 return _pcbnew.BOARD_ConvertKIIDsToCrossReferences(self, aSource)
18001
18003 r"""GetConnectivity(BOARD self) -> std::shared_ptr< CONNECTIVITY_DATA >"""
18004 return _pcbnew.BOARD_GetConnectivity(self)
18005
18006 def BuildConnectivity(self, aReporter=None):
18007 r"""BuildConnectivity(BOARD self, PROGRESS_REPORTER * aReporter=None) -> bool"""
18008 return _pcbnew.BOARD_BuildConnectivity(self, aReporter)
18009
18010 def DeleteMARKERs(self, *args):
18011 r"""
18012 DeleteMARKERs(BOARD self)
18013 DeleteMARKERs(BOARD self, bool aWarningsAndErrors, bool aExclusions)
18014 """
18015 return _pcbnew.BOARD_DeleteMARKERs(self, *args)
18016
18017 def GetProject(self):
18018 r"""GetProject(BOARD self) -> PROJECT *"""
18019 return _pcbnew.BOARD_GetProject(self)
18020
18021 def SetProject(self, aProject, aReferenceOnly=False):
18022 r"""SetProject(BOARD self, PROJECT * aProject, bool aReferenceOnly=False)"""
18023 return _pcbnew.BOARD_SetProject(self, aProject, aReferenceOnly)
18024
18025 def ClearProject(self):
18026 r"""ClearProject(BOARD self)"""
18027 return _pcbnew.BOARD_ClearProject(self)
18028
18029 def ResolveDRCExclusions(self, aCreateMarkers):
18030 r"""ResolveDRCExclusions(BOARD self, bool aCreateMarkers) -> MARKERS"""
18031 return _pcbnew.BOARD_ResolveDRCExclusions(self, aCreateMarkers)
18032
18034 r"""RecordDRCExclusions(BOARD self)"""
18035 return _pcbnew.BOARD_RecordDRCExclusions(self)
18036
18038 r"""UpdateRatsnestExclusions(BOARD self)"""
18039 return _pcbnew.BOARD_UpdateRatsnestExclusions(self)
18040
18042 r"""ResetNetHighLight(BOARD self)"""
18043 return _pcbnew.BOARD_ResetNetHighLight(self)
18044
18046 r"""GetHighLightNetCodes(BOARD self) -> std::set< int,std::less< int >,std::allocator< int > > const &"""
18047 return _pcbnew.BOARD_GetHighLightNetCodes(self)
18048
18049 def SetHighLightNet(self, aNetCode, aMulti=False):
18050 r"""SetHighLightNet(BOARD self, int aNetCode, bool aMulti=False)"""
18051 return _pcbnew.BOARD_SetHighLightNet(self, aNetCode, aMulti)
18052
18054 r"""IsHighLightNetON(BOARD self) -> bool"""
18055 return _pcbnew.BOARD_IsHighLightNetON(self)
18056
18057 def HighLightON(self, aValue=True):
18058 r"""HighLightON(BOARD self, bool aValue=True)"""
18059 return _pcbnew.BOARD_HighLightON(self, aValue)
18060
18061 def HighLightOFF(self):
18062 r"""HighLightOFF(BOARD self)"""
18063 return _pcbnew.BOARD_HighLightOFF(self)
18064
18066 r"""GetCopperLayerCount(BOARD self) -> int"""
18067 return _pcbnew.BOARD_GetCopperLayerCount(self)
18068
18069 def SetCopperLayerCount(self, aCount):
18070 r"""SetCopperLayerCount(BOARD self, int aCount)"""
18071 return _pcbnew.BOARD_SetCopperLayerCount(self, aCount)
18072
18073 def LayerDepth(self, aStartLayer, aEndLayer):
18074 r"""LayerDepth(BOARD self, PCB_LAYER_ID aStartLayer, PCB_LAYER_ID aEndLayer) -> int"""
18075 return _pcbnew.BOARD_LayerDepth(self, aStartLayer, aEndLayer)
18076
18078 r"""GetEnabledLayers(BOARD self) -> LSET"""
18079 return _pcbnew.BOARD_GetEnabledLayers(self)
18080
18081 def SetEnabledLayers(self, aLayerMask):
18082 r"""SetEnabledLayers(BOARD self, LSET aLayerMask)"""
18083 return _pcbnew.BOARD_SetEnabledLayers(self, aLayerMask)
18084
18085 def IsLayerEnabled(self, aLayer):
18086 r"""IsLayerEnabled(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
18087 return _pcbnew.BOARD_IsLayerEnabled(self, aLayer)
18088
18089 def IsLayerVisible(self, aLayer):
18090 r"""IsLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
18091 return _pcbnew.BOARD_IsLayerVisible(self, aLayer)
18092
18094 r"""GetVisibleLayers(BOARD self) -> LSET"""
18095 return _pcbnew.BOARD_GetVisibleLayers(self)
18096
18097 def SetVisibleLayers(self, aLayerMask):
18098 r"""SetVisibleLayers(BOARD self, LSET aLayerMask)"""
18099 return _pcbnew.BOARD_SetVisibleLayers(self, aLayerMask)
18100
18102 r"""GetVisibleElements(BOARD self) -> GAL_SET"""
18103 return _pcbnew.BOARD_GetVisibleElements(self)
18104
18105 def SetVisibleElements(self, aMask):
18106 r"""SetVisibleElements(BOARD self, GAL_SET aMask)"""
18107 return _pcbnew.BOARD_SetVisibleElements(self, aMask)
18108
18110 r"""SetVisibleAlls(BOARD self)"""
18111 return _pcbnew.BOARD_SetVisibleAlls(self)
18112
18113 def IsElementVisible(self, aLayer):
18114 r"""IsElementVisible(BOARD self, GAL_LAYER_ID aLayer) -> bool"""
18115 return _pcbnew.BOARD_IsElementVisible(self, aLayer)
18116
18117 def SetElementVisibility(self, aLayer, aNewState):
18118 r"""SetElementVisibility(BOARD self, GAL_LAYER_ID aLayer, bool aNewState)"""
18119 return _pcbnew.BOARD_SetElementVisibility(self, aLayer, aNewState)
18120
18121 def IsFootprintLayerVisible(self, aLayer):
18122 r"""IsFootprintLayerVisible(BOARD self, PCB_LAYER_ID aLayer) -> bool"""
18123 return _pcbnew.BOARD_IsFootprintLayerVisible(self, aLayer)
18124
18126 r"""GetDesignSettings(BOARD self) -> BOARD_DESIGN_SETTINGS"""
18127 return _pcbnew.BOARD_GetDesignSettings(self)
18128
18129 def GetTentVias(self):
18130 r"""GetTentVias(BOARD self) -> bool"""
18131 return _pcbnew.BOARD_GetTentVias(self)
18132
18133 def SetTentVias(self, aFlag):
18134 r"""SetTentVias(BOARD self, bool aFlag)"""
18135 return _pcbnew.BOARD_SetTentVias(self, aFlag)
18136
18138 r"""GetPageSettings(BOARD self) -> PAGE_INFO const &"""
18139 return _pcbnew.BOARD_GetPageSettings(self)
18140
18141 def SetPageSettings(self, aPageSettings):
18142 r"""SetPageSettings(BOARD self, PAGE_INFO const & aPageSettings)"""
18143 return _pcbnew.BOARD_SetPageSettings(self, aPageSettings)
18144
18146 r"""GetPlotOptions(BOARD self) -> PCB_PLOT_PARAMS"""
18147 return _pcbnew.BOARD_GetPlotOptions(self)
18148
18149 def SetPlotOptions(self, aOptions):
18150 r"""SetPlotOptions(BOARD self, PCB_PLOT_PARAMS aOptions)"""
18151 return _pcbnew.BOARD_SetPlotOptions(self, aOptions)
18152
18153 def GetTitleBlock(self, *args):
18154 r"""
18155 GetTitleBlock(BOARD self) -> TITLE_BLOCK
18156 GetTitleBlock(BOARD self) -> TITLE_BLOCK
18157 """
18158 return _pcbnew.BOARD_GetTitleBlock(self, *args)
18159
18160 def SetTitleBlock(self, aTitleBlock):
18161 r"""SetTitleBlock(BOARD self, TITLE_BLOCK aTitleBlock)"""
18162 return _pcbnew.BOARD_SetTitleBlock(self, aTitleBlock)
18163
18164 def GetUserUnits(self):
18165 r"""GetUserUnits(BOARD self) -> EDA_UNITS"""
18166 return _pcbnew.BOARD_GetUserUnits(self)
18167
18168 def SetUserUnits(self, aUnits):
18169 r"""SetUserUnits(BOARD self, EDA_UNITS aUnits)"""
18170 return _pcbnew.BOARD_SetUserUnits(self, aUnits)
18171
18172 def UpdateUserUnits(self, aItem, aView):
18173 r"""UpdateUserUnits(BOARD self, BOARD_ITEM aItem, KIGFX::VIEW * aView)"""
18174 return _pcbnew.BOARD_UpdateUserUnits(self, aItem, aView)
18175
18176 def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False, aIncludeNPTHAsOutlines=False):
18177 r"""GetBoardPolygonOutlines(BOARD self, SHAPE_POLY_SET aOutlines, OUTLINE_ERROR_HANDLER * aErrorHandler=None, bool aAllowUseArcsInPolygons=False, bool aIncludeNPTHAsOutlines=False) -> bool"""
18178 return _pcbnew.BOARD_GetBoardPolygonOutlines(self, aOutlines, aErrorHandler, aAllowUseArcsInPolygons, aIncludeNPTHAsOutlines)
18179
18181 r"""GetOutlinesChainingEpsilon(BOARD self) -> int"""
18182 return _pcbnew.BOARD_GetOutlinesChainingEpsilon(self)
18183
18185 r"""SetOutlinesChainingEpsilon(BOARD self, int aValue)"""
18186 return _pcbnew.BOARD_SetOutlinesChainingEpsilon(self, aValue)
18187
18188 def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines):
18189 r"""ConvertBrdLayerToPolygonalContours(BOARD self, PCB_LAYER_ID aLayer, SHAPE_POLY_SET aOutlines)"""
18190 return _pcbnew.BOARD_ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
18191
18192 def GetLayerID(self, aLayerName):
18193 r"""GetLayerID(BOARD self, wxString aLayerName) -> PCB_LAYER_ID"""
18194 return _pcbnew.BOARD_GetLayerID(self, aLayerName)
18195
18196 def GetLayerName(self, aLayer):
18197 r"""GetLayerName(BOARD self, PCB_LAYER_ID aLayer) -> wxString"""
18198 return _pcbnew.BOARD_GetLayerName(self, aLayer)
18199
18200 def SetLayerName(self, aLayer, aLayerName):
18201 r"""SetLayerName(BOARD self, PCB_LAYER_ID aLayer, wxString aLayerName) -> bool"""
18202 return _pcbnew.BOARD_SetLayerName(self, aLayer, aLayerName)
18203
18204 @staticmethod
18206 r"""GetStandardLayerName(PCB_LAYER_ID aLayerId) -> wxString"""
18207 return _pcbnew.BOARD_GetStandardLayerName(aLayerId)
18208
18209 def SetLayerDescr(self, aIndex, aLayer):
18210 r"""SetLayerDescr(BOARD self, PCB_LAYER_ID aIndex, LAYER aLayer) -> bool"""
18211 return _pcbnew.BOARD_SetLayerDescr(self, aIndex, aLayer)
18212
18213 def GetLayerType(self, aLayer):
18214 r"""GetLayerType(BOARD self, PCB_LAYER_ID aLayer) -> LAYER_T"""
18215 return _pcbnew.BOARD_GetLayerType(self, aLayer)
18216
18217 def SetLayerType(self, aLayer, aLayerType):
18218 r"""SetLayerType(BOARD self, PCB_LAYER_ID aLayer, LAYER_T aLayerType) -> bool"""
18219 return _pcbnew.BOARD_SetLayerType(self, aLayer, aLayerType)
18220
18221 def GetNodesCount(self, aNet=-1):
18222 r"""GetNodesCount(BOARD self, int aNet=-1) -> unsigned int"""
18223 return _pcbnew.BOARD_GetNodesCount(self, aNet)
18224
18225 def GetPads(self):
18226 r"""GetPads(BOARD self) -> PADS_VEC"""
18227 return _pcbnew.BOARD_GetPads(self)
18228
18230 r"""BuildListOfNets(BOARD self)"""
18231 return _pcbnew.BOARD_BuildListOfNets(self)
18232
18233 def FindNet(self, *args):
18234 r"""
18235 FindNet(BOARD self, int aNetcode) -> NETINFO_ITEM
18236 FindNet(BOARD self, wxString aNetname) -> NETINFO_ITEM
18237 """
18238 return _pcbnew.BOARD_FindNet(self, *args)
18239
18240 def MatchDpSuffix(self, aNetName, aComplementNet):
18241 r"""MatchDpSuffix(BOARD self, wxString aNetName, wxString aComplementNet) -> int"""
18242 return _pcbnew.BOARD_MatchDpSuffix(self, aNetName, aComplementNet)
18243
18244 def DpCoupledNet(self, aNet):
18245 r"""DpCoupledNet(BOARD self, NETINFO_ITEM aNet) -> NETINFO_ITEM"""
18246 return _pcbnew.BOARD_DpCoupledNet(self, aNet)
18247
18248 def GetNetInfo(self):
18249 r"""GetNetInfo(BOARD self) -> NETINFO_LIST"""
18250 return _pcbnew.BOARD_GetNetInfo(self)
18251
18252 def RemoveUnusedNets(self, aCommit):
18253 r"""RemoveUnusedNets(BOARD self, BOARD_COMMIT * aCommit)"""
18254 return _pcbnew.BOARD_RemoveUnusedNets(self, aCommit)
18255
18256 def GetNetCount(self):
18257 r"""GetNetCount(BOARD self) -> unsigned int"""
18258 return _pcbnew.BOARD_GetNetCount(self)
18259
18260 def ComputeBoundingBox(self, aBoardEdgesOnly=False):
18261 r"""ComputeBoundingBox(BOARD self, bool aBoardEdgesOnly=False) -> BOX2I"""
18262 return _pcbnew.BOARD_ComputeBoundingBox(self, aBoardEdgesOnly)
18263
18265 r"""GetBoardEdgesBoundingBox(BOARD self) -> BOX2I"""
18266 return _pcbnew.BOARD_GetBoardEdgesBoundingBox(self)
18267
18268 def FindFootprintByReference(self, aReference):
18269 r"""FindFootprintByReference(BOARD self, wxString aReference) -> FOOTPRINT"""
18270 return _pcbnew.BOARD_FindFootprintByReference(self, aReference)
18271
18272 def FindFootprintByPath(self, aPath):
18273 r"""FindFootprintByPath(BOARD self, KIID_PATH aPath) -> FOOTPRINT"""
18274 return _pcbnew.BOARD_FindFootprintByPath(self, aPath)
18275
18277 r"""GetNetClassAssignmentCandidates(BOARD self) -> STRINGSET"""
18278 return _pcbnew.BOARD_GetNetClassAssignmentCandidates(self)
18279
18280 def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes):
18281 r"""SynchronizeNetsAndNetClasses(BOARD self, bool aResetTrackAndViaSizes)"""
18282 return _pcbnew.BOARD_SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
18283
18285 r"""SynchronizeProperties(BOARD self)"""
18286 return _pcbnew.BOARD_SynchronizeProperties(self)
18287
18289 r"""SetAreasNetCodesFromNetNames(BOARD self) -> int"""
18290 return _pcbnew.BOARD_SetAreasNetCodesFromNetNames(self)
18291
18292 def GetArea(self, index):
18293 r"""GetArea(BOARD self, int index) -> ZONE"""
18294 return _pcbnew.BOARD_GetArea(self, index)
18295
18296 def GetZoneList(self, aIncludeZonesInFootprints=False):
18297 r"""GetZoneList(BOARD self, bool aIncludeZonesInFootprints=False) -> std::list< ZONE *,std::allocator< ZONE * > >"""
18298 return _pcbnew.BOARD_GetZoneList(self, aIncludeZonesInFootprints)
18299
18300 def GetAreaCount(self):
18301 r"""GetAreaCount(BOARD self) -> int"""
18302 return _pcbnew.BOARD_GetAreaCount(self)
18303
18304 def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch):
18305 r"""AddArea(BOARD self, PICKED_ITEMS_LIST * aNewZonesList, int aNetcode, PCB_LAYER_ID aLayer, VECTOR2I aStartPointPosition, ZONE_BORDER_DISPLAY_STYLE aHatch) -> ZONE"""
18306 return _pcbnew.BOARD_AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
18307
18308 def TestZoneIntersection(self, aZone1, aZone2):
18309 r"""TestZoneIntersection(BOARD self, ZONE aZone1, ZONE aZone2) -> bool"""
18310 return _pcbnew.BOARD_TestZoneIntersection(self, aZone1, aZone2)
18311
18312 def GetPadFast(self, aPosition, aLayerMask):
18313 r"""GetPadFast(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD"""
18314 return _pcbnew.BOARD_GetPadFast(self, aPosition, aLayerMask)
18315
18316 def GetPad(self, *args):
18317 r"""
18318 GetPad(BOARD self, VECTOR2I aPosition, LSET aLayerMask) -> PAD
18319 GetPad(BOARD self, VECTOR2I aPosition) -> PAD
18320 GetPad(BOARD self, PCB_TRACK aTrace, ENDPOINT_T aEndPoint) -> PAD
18321 GetPad(BOARD self, PADS_VEC aPadList, VECTOR2I aPosition, LSET aLayerMask) -> PAD
18322 """
18323 return _pcbnew.BOARD_GetPad(self, *args)
18324
18325 def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1):
18326 r"""GetSortedPadListByXthenYCoord(BOARD self, PADS_VEC aVector, int aNetCode=-1)"""
18327 return _pcbnew.BOARD_GetSortedPadListByXthenYCoord(self, aVector, aNetCode)
18328
18329 def GetTrackLength(self, aTrack):
18330 r"""GetTrackLength(BOARD self, PCB_TRACK aTrack) -> std::tuple< int,double,double >"""
18331 return _pcbnew.BOARD_GetTrackLength(self, aTrack)
18332
18333 def TracksInNet(self, aNetCode):
18334 r"""TracksInNet(BOARD self, int aNetCode) -> TRACKS"""
18335 return _pcbnew.BOARD_TracksInNet(self, aNetCode)
18336
18337 def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False):
18338 r"""GetFootprint(BOARD self, VECTOR2I aPosition, PCB_LAYER_ID aActiveLayer, bool aVisibleOnly, bool aIgnoreLocked=False) -> FOOTPRINT"""
18339 return _pcbnew.BOARD_GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked)
18340
18342 r"""GetMaxClearanceValue(BOARD self) -> int"""
18343 return _pcbnew.BOARD_GetMaxClearanceValue(self)
18344
18345 def MapNets(self, aDestBoard):
18346 r"""MapNets(BOARD self, BOARD aDestBoard)"""
18347 return _pcbnew.BOARD_MapNets(self, aDestBoard)
18348
18350 r"""SanitizeNetcodes(BOARD self)"""
18351 return _pcbnew.BOARD_SanitizeNetcodes(self)
18352
18353 def AddListener(self, aListener):
18354 r"""AddListener(BOARD self, BOARD_LISTENER aListener)"""
18355 return _pcbnew.BOARD_AddListener(self, aListener)
18356
18357 def RemoveListener(self, aListener):
18358 r"""RemoveListener(BOARD self, BOARD_LISTENER aListener)"""
18359 return _pcbnew.BOARD_RemoveListener(self, aListener)
18360
18362 r"""RemoveAllListeners(BOARD self)"""
18363 return _pcbnew.BOARD_RemoveAllListeners(self)
18364
18365 def OnItemChanged(self, aItem):
18366 r"""OnItemChanged(BOARD self, BOARD_ITEM aItem)"""
18367 return _pcbnew.BOARD_OnItemChanged(self, aItem)
18368
18369 def OnItemsChanged(self, aItems):
18370 r"""OnItemsChanged(BOARD self, std::vector< BOARD_ITEM *,std::allocator< BOARD_ITEM * > > & aItems)"""
18371 return _pcbnew.BOARD_OnItemsChanged(self, aItems)
18372
18374 r"""OnRatsnestChanged(BOARD self)"""
18375 return _pcbnew.BOARD_OnRatsnestChanged(self)
18376
18377 def GroupsSanityCheck(self, repair=False):
18378 r"""GroupsSanityCheck(BOARD self, bool repair=False) -> wxString"""
18379 return _pcbnew.BOARD_GroupsSanityCheck(self, repair)
18380
18381 def GroupsSanityCheckInternal(self, repair):
18382 r"""GroupsSanityCheckInternal(BOARD self, bool repair) -> wxString"""
18383 return _pcbnew.BOARD_GroupsSanityCheckInternal(self, repair)
18384
18385 def GroupLegalOps(self, selection):
18386 r"""GroupLegalOps(BOARD self, PCB_SELECTION const & selection) -> BOARD::GroupLegalOpsField"""
18387 return _pcbnew.BOARD_GroupLegalOps(self, selection)
18388
18390 r"""LegacyTeardrops(BOARD self) -> bool"""
18391 return _pcbnew.BOARD_LegacyTeardrops(self)
18392
18393 def SetLegacyTeardrops(self, aFlag):
18394 r"""SetLegacyTeardrops(BOARD self, bool aFlag)"""
18395 return _pcbnew.BOARD_SetLegacyTeardrops(self, aFlag)
18396 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)>""")
18397 m_maxClearanceValue = property(_pcbnew.BOARD_m_maxClearanceValue_get, _pcbnew.BOARD_m_maxClearanceValue_set, doc=r"""m_maxClearanceValue : std::optional<(int)>""")
18398 m_SolderMaskBridges = property(_pcbnew.BOARD_m_SolderMaskBridges_get, _pcbnew.BOARD_m_SolderMaskBridges_set, doc=r"""m_SolderMaskBridges : p.ZONE""")
18399 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)>)>)>)>)>)>""")
18400
18401 def __init__(self, *args):
18402 this = CreateEmptyBoard()
18403
18404 try:
18405 self.this.append(this)
18406 except:
18407 self.this = this
18408
18409 # Convert these to lists to keep users from using them to delete
18410 # items in the iterable while looping over it
18411 def GetFootprints(self): return list(self.Footprints())
18412 def GetDrawings(self): return list(self.Drawings())
18413 def GetTracks(self): return list(self.Tracks())
18414
18415 def Save(self,filename):
18416 return SaveBoard(filename,self)
18417
18418 def GetNetClasses(self):
18419 return self.GetDesignSettings().m_NetSettings.m_NetClasses
18420
18423
18425 return self.GetDesignSettings().m_ViasDimensionsList
18426
18428 return self.GetDesignSettings().m_TrackWidthList
18429
18430 def GetNetsByName(self):
18431 """
18432 Return a dictionary like object with key:wxString netname and value:NETINFO_ITEM
18433 """
18434 return self.GetNetInfo().NetsByName()
18435
18437 """
18438 Return a dictionary like object with key:int netcode and value:NETINFO_ITEM
18439 """
18440 return self.GetNetInfo().NetsByNetcode()
18441
18442 def GetNetcodeFromNetname(self,netname):
18443 """
18444 Given a netname, return its netcode
18445 """
18446 net = self.GetNetsByName()[netname]
18447 return net.GetNetCode()
18448
18450 """
18451 Return a dictionary like object with net_class_name as key and NETCLASSPTR as value
18452 GetNetClasses(BOARD self) -> { wxString net_class_name : NETCLASSPTR }
18453 Include the "Default" netclass also.
18454 """
18455
18456 # Copy the NETCLASS_MAP so the one in the BOARD isn't modified
18457 # when we add the Default net class.
18458 netclassmap = {k:v for k,v in self.GetNetClasses().items()}
18459 netclassmap['Default'] = self.GetDesignSettings().m_NetSettings.m_DefaultNetClass
18460 return netclassmap
18461
18462
18463# Register BOARD in _pcbnew:
18464_pcbnew.BOARD_swigregister(BOARD)
18465
18466def BOARD_ClassOf(aItem):
18467 r"""BOARD_ClassOf(EDA_ITEM aItem) -> bool"""
18468 return _pcbnew.BOARD_ClassOf(aItem)
18469
18471 r"""BOARD_GetStandardLayerName(PCB_LAYER_ID aLayerId) -> wxString"""
18472 return _pcbnew.BOARD_GetStandardLayerName(aLayerId)
18473
18475 r"""Proxy of C++ std::map< wxString,wxString > class."""
18476
18477 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18478 __repr__ = _swig_repr
18479
18480 def iterator(self):
18481 r"""iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
18482 return _pcbnew.MAP_STRING_STRING_iterator(self)
18483 def __iter__(self):
18484 return self.iterator()
18485
18486 def __nonzero__(self):
18487 r"""__nonzero__(MAP_STRING_STRING self) -> bool"""
18488 return _pcbnew.MAP_STRING_STRING___nonzero__(self)
18489
18490 def __bool__(self):
18491 r"""__bool__(MAP_STRING_STRING self) -> bool"""
18492 return _pcbnew.MAP_STRING_STRING___bool__(self)
18493
18494 def __len__(self):
18495 r"""__len__(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
18496 return _pcbnew.MAP_STRING_STRING___len__(self)
18497 def __iter__(self):
18498 return self.key_iterator()
18499 def iterkeys(self):
18500 return self.key_iterator()
18501 def itervalues(self):
18502 return self.value_iterator()
18503 def iteritems(self):
18504 return self.iterator()
18505
18506 def __getitem__(self, key):
18507 r"""__getitem__(MAP_STRING_STRING self, wxString key) -> wxString"""
18508 return _pcbnew.MAP_STRING_STRING___getitem__(self, key)
18509
18510 def __delitem__(self, key):
18511 r"""__delitem__(MAP_STRING_STRING self, wxString key)"""
18512 return _pcbnew.MAP_STRING_STRING___delitem__(self, key)
18513
18514 def has_key(self, key):
18515 r"""has_key(MAP_STRING_STRING self, wxString key) -> bool"""
18516 return _pcbnew.MAP_STRING_STRING_has_key(self, key)
18517
18518 def keys(self):
18519 r"""keys(MAP_STRING_STRING self) -> PyObject *"""
18520 return _pcbnew.MAP_STRING_STRING_keys(self)
18521
18522 def values(self):
18523 r"""values(MAP_STRING_STRING self) -> PyObject *"""
18524 return _pcbnew.MAP_STRING_STRING_values(self)
18525
18526 def items(self):
18527 r"""items(MAP_STRING_STRING self) -> PyObject *"""
18528 return _pcbnew.MAP_STRING_STRING_items(self)
18529
18530 def __contains__(self, key):
18531 r"""__contains__(MAP_STRING_STRING self, wxString key) -> bool"""
18532 return _pcbnew.MAP_STRING_STRING___contains__(self, key)
18533
18534 def key_iterator(self):
18535 r"""key_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
18536 return _pcbnew.MAP_STRING_STRING_key_iterator(self)
18537
18539 r"""value_iterator(MAP_STRING_STRING self) -> SwigPyIterator"""
18540 return _pcbnew.MAP_STRING_STRING_value_iterator(self)
18541
18542 def __setitem__(self, *args):
18543 r"""
18544 __setitem__(MAP_STRING_STRING self, wxString key)
18545 __setitem__(MAP_STRING_STRING self, wxString key, wxString x)
18546 """
18547 return _pcbnew.MAP_STRING_STRING___setitem__(self, *args)
18548
18549 def asdict(self):
18550 r"""asdict(MAP_STRING_STRING self) -> PyObject *"""
18551 return _pcbnew.MAP_STRING_STRING_asdict(self)
18552
18553 def __init__(self, *args):
18554 r"""
18555 __init__(MAP_STRING_STRING self, std::less< wxString > const & other) -> MAP_STRING_STRING
18556 __init__(MAP_STRING_STRING self) -> MAP_STRING_STRING
18557 __init__(MAP_STRING_STRING self, MAP_STRING_STRING other) -> MAP_STRING_STRING
18558 """
18559 _pcbnew.MAP_STRING_STRING_swiginit(self, _pcbnew.new_MAP_STRING_STRING(*args))
18560
18561 def empty(self):
18562 r"""empty(MAP_STRING_STRING self) -> bool"""
18563 return _pcbnew.MAP_STRING_STRING_empty(self)
18564
18565 def size(self):
18566 r"""size(MAP_STRING_STRING self) -> std::map< wxString,wxString >::size_type"""
18567 return _pcbnew.MAP_STRING_STRING_size(self)
18568
18569 def swap(self, v):
18570 r"""swap(MAP_STRING_STRING self, MAP_STRING_STRING v)"""
18571 return _pcbnew.MAP_STRING_STRING_swap(self, v)
18572
18573 def begin(self):
18574 r"""begin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
18575 return _pcbnew.MAP_STRING_STRING_begin(self)
18576
18577 def end(self):
18578 r"""end(MAP_STRING_STRING self) -> std::map< wxString,wxString >::iterator"""
18579 return _pcbnew.MAP_STRING_STRING_end(self)
18580
18581 def rbegin(self):
18582 r"""rbegin(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
18583 return _pcbnew.MAP_STRING_STRING_rbegin(self)
18584
18585 def rend(self):
18586 r"""rend(MAP_STRING_STRING self) -> std::map< wxString,wxString >::reverse_iterator"""
18587 return _pcbnew.MAP_STRING_STRING_rend(self)
18588
18589 def clear(self):
18590 r"""clear(MAP_STRING_STRING self)"""
18591 return _pcbnew.MAP_STRING_STRING_clear(self)
18592
18593 def get_allocator(self):
18594 r"""get_allocator(MAP_STRING_STRING self) -> std::map< wxString,wxString >::allocator_type"""
18595 return _pcbnew.MAP_STRING_STRING_get_allocator(self)
18596
18597 def count(self, x):
18598 r"""count(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type"""
18599 return _pcbnew.MAP_STRING_STRING_count(self, x)
18600
18601 def erase(self, *args):
18602 r"""
18603 erase(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::size_type
18604 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator position)
18605 erase(MAP_STRING_STRING self, std::map< wxString,wxString >::iterator first, std::map< wxString,wxString >::iterator last)
18606 """
18607 return _pcbnew.MAP_STRING_STRING_erase(self, *args)
18608
18609 def find(self, x):
18610 r"""find(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
18611 return _pcbnew.MAP_STRING_STRING_find(self, x)
18612
18613 def lower_bound(self, x):
18614 r"""lower_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
18615 return _pcbnew.MAP_STRING_STRING_lower_bound(self, x)
18616
18617 def upper_bound(self, x):
18618 r"""upper_bound(MAP_STRING_STRING self, wxString x) -> std::map< wxString,wxString >::iterator"""
18619 return _pcbnew.MAP_STRING_STRING_upper_bound(self, x)
18620 __swig_destroy__ = _pcbnew.delete_MAP_STRING_STRING
18621
18622# Register MAP_STRING_STRING in _pcbnew:
18623_pcbnew.MAP_STRING_STRING_swigregister(MAP_STRING_STRING)
18624
18625DO_NOT_INCLUDE_NPTH = _pcbnew.DO_NOT_INCLUDE_NPTH
18626
18627INCLUDE_NPTH = _pcbnew.INCLUDE_NPTH
18628
18629FP_THROUGH_HOLE = _pcbnew.FP_THROUGH_HOLE
18630
18631FP_SMD = _pcbnew.FP_SMD
18632
18633FP_EXCLUDE_FROM_POS_FILES = _pcbnew.FP_EXCLUDE_FROM_POS_FILES
18634
18635FP_EXCLUDE_FROM_BOM = _pcbnew.FP_EXCLUDE_FROM_BOM
18636
18637FP_BOARD_ONLY = _pcbnew.FP_BOARD_ONLY
18638
18639FP_JUST_ADDED = _pcbnew.FP_JUST_ADDED
18640
18641FP_ALLOW_SOLDERMASK_BRIDGES = _pcbnew.FP_ALLOW_SOLDERMASK_BRIDGES
18642
18643FP_ALLOW_MISSING_COURTYARD = _pcbnew.FP_ALLOW_MISSING_COURTYARD
18644
18645FP_DNP = _pcbnew.FP_DNP
18646
18648 r"""Proxy of C++ FP_3DMODEL class."""
18649
18650 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18651 __repr__ = _swig_repr
18652
18653 def __init__(self):
18654 r"""__init__(FP_3DMODEL self) -> FP_3DMODEL"""
18655 _pcbnew.FP_3DMODEL_swiginit(self, _pcbnew.new_FP_3DMODEL())
18656 m_Scale = property(_pcbnew.FP_3DMODEL_m_Scale_get, _pcbnew.FP_3DMODEL_m_Scale_set, doc=r"""m_Scale : VECTOR3D""")
18657 m_Rotation = property(_pcbnew.FP_3DMODEL_m_Rotation_get, _pcbnew.FP_3DMODEL_m_Rotation_set, doc=r"""m_Rotation : VECTOR3D""")
18658 m_Offset = property(_pcbnew.FP_3DMODEL_m_Offset_get, _pcbnew.FP_3DMODEL_m_Offset_set, doc=r"""m_Offset : VECTOR3D""")
18659 m_Opacity = property(_pcbnew.FP_3DMODEL_m_Opacity_get, _pcbnew.FP_3DMODEL_m_Opacity_set, doc=r"""m_Opacity : double""")
18660 m_Filename = property(_pcbnew.FP_3DMODEL_m_Filename_get, _pcbnew.FP_3DMODEL_m_Filename_set, doc=r"""m_Filename : wxString""")
18661 m_Show = property(_pcbnew.FP_3DMODEL_m_Show_get, _pcbnew.FP_3DMODEL_m_Show_set, doc=r"""m_Show : bool""")
18662
18663 def __eq__(self, aOther):
18664 r"""__eq__(FP_3DMODEL self, FP_3DMODEL aOther) -> bool"""
18665 return _pcbnew.FP_3DMODEL___eq__(self, aOther)
18666 __swig_destroy__ = _pcbnew.delete_FP_3DMODEL
18667
18668# Register FP_3DMODEL in _pcbnew:
18669_pcbnew.FP_3DMODEL_swigregister(FP_3DMODEL)
18670
18672 r"""Proxy of C++ FOOTPRINT class."""
18673
18674 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
18675 __repr__ = _swig_repr
18676
18677 def __init__(self, *args):
18678 r"""
18679 __init__(FOOTPRINT self, BOARD parent) -> FOOTPRINT
18680 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
18681 __init__(FOOTPRINT self, FOOTPRINT aFootprint) -> FOOTPRINT
18682 """
18683 _pcbnew.FOOTPRINT_swiginit(self, _pcbnew.new_FOOTPRINT(*args))
18684 __swig_destroy__ = _pcbnew.delete_FOOTPRINT
18685
18686 @staticmethod
18687 def ClassOf(aItem):
18688 r"""ClassOf(EDA_ITEM aItem) -> bool"""
18689 return _pcbnew.FOOTPRINT_ClassOf(aItem)
18690
18692 r"""GetPrivateLayers(FOOTPRINT self) -> LSET"""
18693 return _pcbnew.FOOTPRINT_GetPrivateLayers(self)
18694
18695 def SetPrivateLayers(self, aLayers):
18696 r"""SetPrivateLayers(FOOTPRINT self, LSET aLayers)"""
18697 return _pcbnew.FOOTPRINT_SetPrivateLayers(self, aLayers)
18698
18699 def AddNative(self, *args):
18700 r"""AddNative(FOOTPRINT self, BOARD_ITEM aItem, ADD_MODE aMode=INSERT, bool aSkipConnectivity=False)"""
18701 return _pcbnew.FOOTPRINT_AddNative(self, *args)
18702
18703 def RemoveNative(self, *args):
18704 r"""RemoveNative(FOOTPRINT self, BOARD_ITEM aItem, REMOVE_MODE aMode=NORMAL)"""
18705 return _pcbnew.FOOTPRINT_RemoveNative(self, *args)
18706
18707 def ClearAllNets(self):
18708 r"""ClearAllNets(FOOTPRINT self)"""
18709 return _pcbnew.FOOTPRINT_ClearAllNets(self)
18710
18711 def FixUuids(self):
18712 r"""FixUuids(FOOTPRINT self) -> bool"""
18713 return _pcbnew.FOOTPRINT_FixUuids(self)
18714
18716 r"""GetFpPadsLocalBbox(FOOTPRINT self) -> BOX2I"""
18717 return _pcbnew.FOOTPRINT_GetFpPadsLocalBbox(self)
18718
18720 r"""GetBoundingHull(FOOTPRINT self) -> SHAPE_POLY_SET"""
18721 return _pcbnew.FOOTPRINT_GetBoundingHull(self)
18722
18723 def GetBoundingBox(self, *args):
18724 r"""
18725 GetBoundingBox(FOOTPRINT self) -> BOX2I
18726 GetBoundingBox(FOOTPRINT self, bool aIncludeText, bool aIncludeInvisibleText) -> BOX2I
18727 """
18728 return _pcbnew.FOOTPRINT_GetBoundingBox(self, *args)
18729
18730 def GetLayerBoundingBox(self, aLayers):
18731 r"""GetLayerBoundingBox(FOOTPRINT self, LSET aLayers) -> BOX2I"""
18732 return _pcbnew.FOOTPRINT_GetLayerBoundingBox(self, aLayers)
18733
18734 def Fields(self, *args):
18735 r"""
18736 Fields(FOOTPRINT self) -> PCB_FIELDS
18737 Fields(FOOTPRINT self) -> PCB_FIELDS
18738 """
18739 return _pcbnew.FOOTPRINT_Fields(self, *args)
18740
18741 def Pads(self, *args):
18742 r"""
18743 Pads(FOOTPRINT self) -> PADS
18744 Pads(FOOTPRINT self) -> PADS
18745 """
18746 return _pcbnew.FOOTPRINT_Pads(self, *args)
18747
18748 def GraphicalItems(self, *args):
18749 r"""
18750 GraphicalItems(FOOTPRINT self) -> DRAWINGS
18751 GraphicalItems(FOOTPRINT self) -> DRAWINGS
18752 """
18753 return _pcbnew.FOOTPRINT_GraphicalItems(self, *args)
18754
18755 def Zones(self, *args):
18756 r"""
18757 Zones(FOOTPRINT self) -> ZONES
18758 Zones(FOOTPRINT self) -> ZONES
18759 """
18760 return _pcbnew.FOOTPRINT_Zones(self, *args)
18761
18762 def Groups(self, *args):
18763 r"""
18764 Groups(FOOTPRINT self) -> GROUPS
18765 Groups(FOOTPRINT self) -> GROUPS
18766 """
18767 return _pcbnew.FOOTPRINT_Groups(self, *args)
18768
18770 r"""HasThroughHolePads(FOOTPRINT self) -> bool"""
18771 return _pcbnew.FOOTPRINT_HasThroughHolePads(self)
18772
18773 def Models(self, *args):
18774 r"""
18775 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
18776 Models(FOOTPRINT self) -> VECTOR_FP_3DMODEL
18777 """
18778 return _pcbnew.FOOTPRINT_Models(self, *args)
18779
18780 def SetOrientation(self, aNewAngle):
18781 r"""SetOrientation(FOOTPRINT self, EDA_ANGLE aNewAngle)"""
18782 return _pcbnew.FOOTPRINT_SetOrientation(self, aNewAngle)
18783
18785 r"""GetOrientation(FOOTPRINT self) -> EDA_ANGLE"""
18786 return _pcbnew.FOOTPRINT_GetOrientation(self)
18787
18788 def SetLayerAndFlip(self, aLayer):
18789 r"""SetLayerAndFlip(FOOTPRINT self, PCB_LAYER_ID aLayer)"""
18790 return _pcbnew.FOOTPRINT_SetLayerAndFlip(self, aLayer)
18791
18792 def SetOrientationDegrees(self, aOrientation):
18793 r"""SetOrientationDegrees(FOOTPRINT self, double aOrientation)"""
18794 return _pcbnew.FOOTPRINT_SetOrientationDegrees(self, aOrientation)
18795
18797 r"""GetOrientationDegrees(FOOTPRINT self) -> double"""
18798 return _pcbnew.FOOTPRINT_GetOrientationDegrees(self)
18799
18800 def GetFPID(self):
18801 r"""GetFPID(FOOTPRINT self) -> LIB_ID"""
18802 return _pcbnew.FOOTPRINT_GetFPID(self)
18803
18804 def SetFPID(self, aFPID):
18805 r"""SetFPID(FOOTPRINT self, LIB_ID aFPID)"""
18806 return _pcbnew.FOOTPRINT_SetFPID(self, aFPID)
18807
18809 r"""GetFPIDAsString(FOOTPRINT self) -> wxString"""
18810 return _pcbnew.FOOTPRINT_GetFPIDAsString(self)
18811
18812 def SetFPIDAsString(self, aFPID):
18813 r"""SetFPIDAsString(FOOTPRINT self, wxString aFPID)"""
18814 return _pcbnew.FOOTPRINT_SetFPIDAsString(self, aFPID)
18815
18817 r"""GetLibDescription(FOOTPRINT self) -> wxString"""
18818 return _pcbnew.FOOTPRINT_GetLibDescription(self)
18819
18820 def SetLibDescription(self, aDesc):
18821 r"""SetLibDescription(FOOTPRINT self, wxString aDesc)"""
18822 return _pcbnew.FOOTPRINT_SetLibDescription(self, aDesc)
18823
18824 def GetKeywords(self):
18825 r"""GetKeywords(FOOTPRINT self) -> wxString"""
18826 return _pcbnew.FOOTPRINT_GetKeywords(self)
18827
18828 def SetKeywords(self, aKeywords):
18829 r"""SetKeywords(FOOTPRINT self, wxString aKeywords)"""
18830 return _pcbnew.FOOTPRINT_SetKeywords(self, aKeywords)
18831
18832 def GetPath(self):
18833 r"""GetPath(FOOTPRINT self) -> KIID_PATH"""
18834 return _pcbnew.FOOTPRINT_GetPath(self)
18835
18836 def SetPath(self, aPath):
18837 r"""SetPath(FOOTPRINT self, KIID_PATH aPath)"""
18838 return _pcbnew.FOOTPRINT_SetPath(self, aPath)
18839
18840 def GetSheetname(self):
18841 r"""GetSheetname(FOOTPRINT self) -> wxString"""
18842 return _pcbnew.FOOTPRINT_GetSheetname(self)
18843
18844 def SetSheetname(self, aSheetname):
18845 r"""SetSheetname(FOOTPRINT self, wxString aSheetname)"""
18846 return _pcbnew.FOOTPRINT_SetSheetname(self, aSheetname)
18847
18848 def GetSheetfile(self):
18849 r"""GetSheetfile(FOOTPRINT self) -> wxString"""
18850 return _pcbnew.FOOTPRINT_GetSheetfile(self)
18851
18852 def SetSheetfile(self, aSheetfile):
18853 r"""SetSheetfile(FOOTPRINT self, wxString aSheetfile)"""
18854 return _pcbnew.FOOTPRINT_SetSheetfile(self, aSheetfile)
18855
18856 def GetFilters(self):
18857 r"""GetFilters(FOOTPRINT self) -> wxString"""
18858 return _pcbnew.FOOTPRINT_GetFilters(self)
18859
18860 def SetFilters(self, aFilters):
18861 r"""SetFilters(FOOTPRINT self, wxString aFilters)"""
18862 return _pcbnew.FOOTPRINT_SetFilters(self, aFilters)
18863
18865 r"""GetLocalSolderMaskMargin(FOOTPRINT self) -> int"""
18866 return _pcbnew.FOOTPRINT_GetLocalSolderMaskMargin(self)
18867
18868 def SetLocalSolderMaskMargin(self, aMargin):
18869 r"""SetLocalSolderMaskMargin(FOOTPRINT self, int aMargin)"""
18870 return _pcbnew.FOOTPRINT_SetLocalSolderMaskMargin(self, aMargin)
18871
18872 def SetLocalClearance(self, aClearance):
18873 r"""SetLocalClearance(FOOTPRINT self, int aClearance)"""
18874 return _pcbnew.FOOTPRINT_SetLocalClearance(self, aClearance)
18875
18876 def GetLocalClearance(self, *args):
18877 r"""
18878 GetLocalClearance(FOOTPRINT self) -> int
18879 GetLocalClearance(FOOTPRINT self, wxString aSource) -> int
18880 """
18881 return _pcbnew.FOOTPRINT_GetLocalClearance(self, *args)
18882
18884 r"""GetLocalSolderPasteMargin(FOOTPRINT self) -> int"""
18885 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMargin(self)
18886
18887 def SetLocalSolderPasteMargin(self, aMargin):
18888 r"""SetLocalSolderPasteMargin(FOOTPRINT self, int aMargin)"""
18889 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMargin(self, aMargin)
18890
18892 r"""GetLocalSolderPasteMarginRatio(FOOTPRINT self) -> double"""
18893 return _pcbnew.FOOTPRINT_GetLocalSolderPasteMarginRatio(self)
18894
18896 r"""SetLocalSolderPasteMarginRatio(FOOTPRINT self, double aRatio)"""
18897 return _pcbnew.FOOTPRINT_SetLocalSolderPasteMarginRatio(self, aRatio)
18898
18899 def SetZoneConnection(self, aType):
18900 r"""SetZoneConnection(FOOTPRINT self, ZONE_CONNECTION aType)"""
18901 return _pcbnew.FOOTPRINT_SetZoneConnection(self, aType)
18902
18904 r"""GetZoneConnection(FOOTPRINT self) -> ZONE_CONNECTION"""
18905 return _pcbnew.FOOTPRINT_GetZoneConnection(self)
18906
18907 def GetAttributes(self):
18908 r"""GetAttributes(FOOTPRINT self) -> int"""
18909 return _pcbnew.FOOTPRINT_GetAttributes(self)
18910
18911 def SetAttributes(self, aAttributes):
18912 r"""SetAttributes(FOOTPRINT self, int aAttributes)"""
18913 return _pcbnew.FOOTPRINT_SetAttributes(self, aAttributes)
18914
18915 def SetFlag(self, aFlag):
18916 r"""SetFlag(FOOTPRINT self, int aFlag)"""
18917 return _pcbnew.FOOTPRINT_SetFlag(self, aFlag)
18918
18919 def IncrementFlag(self):
18920 r"""IncrementFlag(FOOTPRINT self)"""
18921 return _pcbnew.FOOTPRINT_IncrementFlag(self)
18922
18923 def GetFlag(self):
18924 r"""GetFlag(FOOTPRINT self) -> int"""
18925 return _pcbnew.FOOTPRINT_GetFlag(self)
18926
18927 def IsNetTie(self):
18928 r"""IsNetTie(FOOTPRINT self) -> bool"""
18929 return _pcbnew.FOOTPRINT_IsNetTie(self)
18930
18932 r"""GetNetTiePadGroups(FOOTPRINT self) -> std::vector< wxString,std::allocator< wxString > > const &"""
18933 return _pcbnew.FOOTPRINT_GetNetTiePadGroups(self)
18934
18936 r"""ClearNetTiePadGroups(FOOTPRINT self)"""
18937 return _pcbnew.FOOTPRINT_ClearNetTiePadGroups(self)
18938
18939 def AddNetTiePadGroup(self, aGroup):
18940 r"""AddNetTiePadGroup(FOOTPRINT self, wxString aGroup)"""
18941 return _pcbnew.FOOTPRINT_AddNetTiePadGroup(self, aGroup)
18942
18944 r"""MapPadNumbersToNetTieGroups(FOOTPRINT self) -> std::map< wxString,int,std::less< wxString >,std::allocator< std::pair< wxString const,int > > >"""
18945 return _pcbnew.FOOTPRINT_MapPadNumbersToNetTieGroups(self)
18946
18947 def GetNetTiePads(self, aPad):
18948 r"""GetNetTiePads(FOOTPRINT self, PAD aPad) -> PADS_VEC"""
18949 return _pcbnew.FOOTPRINT_GetNetTiePads(self, aPad)
18950
18952 r"""GetLikelyAttribute(FOOTPRINT self) -> int"""
18953 return _pcbnew.FOOTPRINT_GetLikelyAttribute(self)
18954
18955 def MoveAnchorPosition(self, aMoveVector):
18956 r"""MoveAnchorPosition(FOOTPRINT self, VECTOR2I aMoveVector)"""
18957 return _pcbnew.FOOTPRINT_MoveAnchorPosition(self, aMoveVector)
18958
18959 def IsFlipped(self):
18960 r"""IsFlipped(FOOTPRINT self) -> bool"""
18961 return _pcbnew.FOOTPRINT_IsFlipped(self)
18962
18963 def GetSide(self):
18964 r"""GetSide(FOOTPRINT self) -> PCB_LAYER_ID"""
18965 return _pcbnew.FOOTPRINT_GetSide(self)
18966
18967 def IsConflicting(self):
18968 r"""IsConflicting(FOOTPRINT self) -> bool"""
18969 return _pcbnew.FOOTPRINT_IsConflicting(self)
18970
18971 def IsPlaced(self):
18972 r"""IsPlaced(FOOTPRINT self) -> bool"""
18973 return _pcbnew.FOOTPRINT_IsPlaced(self)
18974
18975 def SetIsPlaced(self, isPlaced):
18976 r"""SetIsPlaced(FOOTPRINT self, bool isPlaced)"""
18977 return _pcbnew.FOOTPRINT_SetIsPlaced(self, isPlaced)
18978
18979 def NeedsPlaced(self):
18980 r"""NeedsPlaced(FOOTPRINT self) -> bool"""
18981 return _pcbnew.FOOTPRINT_NeedsPlaced(self)
18982
18983 def SetNeedsPlaced(self, needsPlaced):
18984 r"""SetNeedsPlaced(FOOTPRINT self, bool needsPlaced)"""
18985 return _pcbnew.FOOTPRINT_SetNeedsPlaced(self, needsPlaced)
18986
18988 r"""LegacyPadsLocked(FOOTPRINT self) -> bool"""
18989 return _pcbnew.FOOTPRINT_LegacyPadsLocked(self)
18990
18991 def CheckFootprintAttributes(self, aErrorHandler):
18992 r"""CheckFootprintAttributes(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
18993 return _pcbnew.FOOTPRINT_CheckFootprintAttributes(self, aErrorHandler)
18994
18995 def CheckPads(self, aUnitsProvider, aErrorHandler):
18996 r"""CheckPads(FOOTPRINT self, UNITS_PROVIDER aUnitsProvider, std::function< void (PAD const *,int,wxString const &) > const & aErrorHandler)"""
18997 return _pcbnew.FOOTPRINT_CheckPads(self, aUnitsProvider, aErrorHandler)
18998
18999 def CheckShortingPads(self, aErrorHandler):
19000 r"""CheckShortingPads(FOOTPRINT self, std::function< void (PAD const *,PAD const *,VECTOR2I const &) > const & aErrorHandler)"""
19001 return _pcbnew.FOOTPRINT_CheckShortingPads(self, aErrorHandler)
19002
19003 def CheckNetTies(self, aErrorHandler):
19004 r"""CheckNetTies(FOOTPRINT self, std::function< void (BOARD_ITEM const *,BOARD_ITEM const *,BOARD_ITEM const *,VECTOR2I const &) > const & aErrorHandler)"""
19005 return _pcbnew.FOOTPRINT_CheckNetTies(self, aErrorHandler)
19006
19007 def CheckNetTiePadGroups(self, aErrorHandler):
19008 r"""CheckNetTiePadGroups(FOOTPRINT self, std::function< void (wxString const &) > const & aErrorHandler)"""
19009 return _pcbnew.FOOTPRINT_CheckNetTiePadGroups(self, aErrorHandler)
19010
19011 def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False, aSkipPlatedPads=False, aSkipNonPlatedPads=False):
19012 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)"""
19013 return _pcbnew.FOOTPRINT_TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper, aSkipPlatedPads, aSkipNonPlatedPads)
19014
19015 def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False):
19016 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)"""
19017 return _pcbnew.FOOTPRINT_TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText, aIncludeShapes, aIncludePrivateItems)
19018
19019 def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc):
19020 r"""TransformFPTextToPolySet(FOOTPRINT self, SHAPE_POLY_SET aBuffer, PCB_LAYER_ID aLayer, int aClearance, int aError, ERROR_LOC aErrorLoc)"""
19021 return _pcbnew.FOOTPRINT_TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
19022
19023 def GetContextualTextVars(self, aVars):
19024 r"""GetContextualTextVars(FOOTPRINT self, wxArrayString * aVars)"""
19025 return _pcbnew.FOOTPRINT_GetContextualTextVars(self, aVars)
19026
19027 def ResolveTextVar(self, token, aDepth=0):
19028 r"""ResolveTextVar(FOOTPRINT self, wxString token, int aDepth=0) -> bool"""
19029 return _pcbnew.FOOTPRINT_ResolveTextVar(self, token, aDepth)
19030
19031 def HitTestAccurate(self, aPosition, aAccuracy=0):
19032 r"""HitTestAccurate(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool"""
19033 return _pcbnew.FOOTPRINT_HitTestAccurate(self, aPosition, aAccuracy)
19034
19035 def HitTest(self, *args):
19036 r"""
19037 HitTest(FOOTPRINT self, VECTOR2I aPosition, int aAccuracy=0) -> bool
19038 HitTest(FOOTPRINT self, BOX2I aRect, bool aContained, int aAccuracy=0) -> bool
19039 """
19040 return _pcbnew.FOOTPRINT_HitTest(self, *args)
19041
19042 def HitTestOnLayer(self, *args):
19043 r"""
19044 HitTestOnLayer(FOOTPRINT self, VECTOR2I aPosition, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
19045 HitTestOnLayer(FOOTPRINT self, BOX2I aRect, bool aContained, PCB_LAYER_ID aLayer, int aAccuracy=0) -> bool
19046 """
19047 return _pcbnew.FOOTPRINT_HitTestOnLayer(self, *args)
19048
19049 def GetReference(self):
19050 r"""GetReference(FOOTPRINT self) -> wxString"""
19051 return _pcbnew.FOOTPRINT_GetReference(self)
19052
19053 def SetReference(self, aReference):
19054 r"""SetReference(FOOTPRINT self, wxString aReference)"""
19055 return _pcbnew.FOOTPRINT_SetReference(self, aReference)
19056
19058 r"""GetReferenceAsString(FOOTPRINT self) -> wxString"""
19059 return _pcbnew.FOOTPRINT_GetReferenceAsString(self)
19060
19061 def IncrementReference(self, aDelta):
19062 r"""IncrementReference(FOOTPRINT self, int aDelta)"""
19063 return _pcbnew.FOOTPRINT_IncrementReference(self, aDelta)
19064
19065 def GetValue(self):
19066 r"""GetValue(FOOTPRINT self) -> wxString"""
19067 return _pcbnew.FOOTPRINT_GetValue(self)
19068
19069 def SetValue(self, aValue):
19070 r"""SetValue(FOOTPRINT self, wxString aValue)"""
19071 return _pcbnew.FOOTPRINT_SetValue(self, aValue)
19072
19074 r"""GetValueAsString(FOOTPRINT self) -> wxString"""
19075 return _pcbnew.FOOTPRINT_GetValueAsString(self)
19076
19077 def Value(self, *args):
19078 r"""
19079 Value(FOOTPRINT self) -> PCB_FIELD
19080 Value(FOOTPRINT self) -> PCB_FIELD
19081 """
19082 return _pcbnew.FOOTPRINT_Value(self, *args)
19083
19084 def Reference(self, *args):
19085 r"""
19086 Reference(FOOTPRINT self) -> PCB_FIELD
19087 Reference(FOOTPRINT self) -> PCB_FIELD
19088 """
19089 return _pcbnew.FOOTPRINT_Reference(self, *args)
19090
19091 def Footprint(self, *args):
19092 r"""
19093 Footprint(FOOTPRINT self) -> PCB_FIELD
19094 Footprint(FOOTPRINT self) -> PCB_FIELD
19095 """
19096 return _pcbnew.FOOTPRINT_Footprint(self, *args)
19097
19098 def GetField(self, *args):
19099 r"""
19100 GetField(FOOTPRINT self, MANDATORY_FIELD_T aFieldType) -> PCB_FIELD
19101 GetField(FOOTPRINT self, MANDATORY_FIELD_T aFieldNdx) -> PCB_FIELD
19102 """
19103 return _pcbnew.FOOTPRINT_GetField(self, *args)
19104
19105 def GetFieldById(self, aFieldId):
19106 r"""GetFieldById(FOOTPRINT self, int aFieldId) -> PCB_FIELD"""
19107 return _pcbnew.FOOTPRINT_GetFieldById(self, aFieldId)
19108
19109 def GetFieldByName(self, aFieldName):
19110 r"""GetFieldByName(FOOTPRINT self, wxString aFieldName) -> PCB_FIELD"""
19111 return _pcbnew.FOOTPRINT_GetFieldByName(self, aFieldName)
19112
19113 def HasFieldByName(self, aFieldName):
19114 r"""HasFieldByName(FOOTPRINT self, wxString aFieldName) -> bool"""
19115 return _pcbnew.FOOTPRINT_HasFieldByName(self, aFieldName)
19116
19117 def GetFieldText(self, aFieldName):
19118 r"""GetFieldText(FOOTPRINT self, wxString aFieldName) -> wxString"""
19119 return _pcbnew.FOOTPRINT_GetFieldText(self, aFieldName)
19120
19121 def GetFields(self, *args):
19122 r"""
19123 GetFields(FOOTPRINT self, std::vector< PCB_FIELD *,std::allocator< PCB_FIELD * > > & aVector, bool aVisibleOnly)
19124 GetFields(FOOTPRINT self) -> PCB_FIELDS
19125 GetFields(FOOTPRINT self) -> PCB_FIELDS
19126 """
19127 return _pcbnew.FOOTPRINT_GetFields(self, *args)
19128
19129 def AddField(self, aField):
19130 r"""AddField(FOOTPRINT self, PCB_FIELD aField) -> PCB_FIELD"""
19131 return _pcbnew.FOOTPRINT_AddField(self, aField)
19132
19133 def RemoveField(self, aFieldName):
19134 r"""RemoveField(FOOTPRINT self, wxString aFieldName)"""
19135 return _pcbnew.FOOTPRINT_RemoveField(self, aFieldName)
19136
19137 def GetFieldCount(self):
19138 r"""GetFieldCount(FOOTPRINT self) -> int"""
19139 return _pcbnew.FOOTPRINT_GetFieldCount(self)
19140
19141 def ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes):
19142 r"""ApplyDefaultSettings(FOOTPRINT self, BOARD board, bool aStyleFields, bool aStyleText, bool aStyleShapes)"""
19143 return _pcbnew.FOOTPRINT_ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes)
19144
19145 def IsBoardOnly(self):
19146 r"""IsBoardOnly(FOOTPRINT self) -> bool"""
19147 return _pcbnew.FOOTPRINT_IsBoardOnly(self)
19148
19149 def SetBoardOnly(self, aIsBoardOnly=True):
19150 r"""SetBoardOnly(FOOTPRINT self, bool aIsBoardOnly=True)"""
19151 return _pcbnew.FOOTPRINT_SetBoardOnly(self, aIsBoardOnly)
19152
19154 r"""IsExcludedFromPosFiles(FOOTPRINT self) -> bool"""
19155 return _pcbnew.FOOTPRINT_IsExcludedFromPosFiles(self)
19156
19157 def SetExcludedFromPosFiles(self, aExclude=True):
19158 r"""SetExcludedFromPosFiles(FOOTPRINT self, bool aExclude=True)"""
19159 return _pcbnew.FOOTPRINT_SetExcludedFromPosFiles(self, aExclude)
19160
19162 r"""IsExcludedFromBOM(FOOTPRINT self) -> bool"""
19163 return _pcbnew.FOOTPRINT_IsExcludedFromBOM(self)
19164
19165 def SetExcludedFromBOM(self, aExclude=True):
19166 r"""SetExcludedFromBOM(FOOTPRINT self, bool aExclude=True)"""
19167 return _pcbnew.FOOTPRINT_SetExcludedFromBOM(self, aExclude)
19168
19170 r"""AllowMissingCourtyard(FOOTPRINT self) -> bool"""
19171 return _pcbnew.FOOTPRINT_AllowMissingCourtyard(self)
19172
19173 def SetAllowMissingCourtyard(self, aAllow=True):
19174 r"""SetAllowMissingCourtyard(FOOTPRINT self, bool aAllow=True)"""
19175 return _pcbnew.FOOTPRINT_SetAllowMissingCourtyard(self, aAllow)
19176
19177 def IsDNP(self):
19178 r"""IsDNP(FOOTPRINT self) -> bool"""
19179 return _pcbnew.FOOTPRINT_IsDNP(self)
19180
19181 def SetDNP(self, aDNP=True):
19182 r"""SetDNP(FOOTPRINT self, bool aDNP=True)"""
19183 return _pcbnew.FOOTPRINT_SetDNP(self, aDNP)
19184
19185 def SetFileFormatVersionAtLoad(self, aVersion):
19186 r"""SetFileFormatVersionAtLoad(FOOTPRINT self, int aVersion)"""
19187 return _pcbnew.FOOTPRINT_SetFileFormatVersionAtLoad(self, aVersion)
19188
19190 r"""GetFileFormatVersionAtLoad(FOOTPRINT self) -> int"""
19191 return _pcbnew.FOOTPRINT_GetFileFormatVersionAtLoad(self)
19192
19193 def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None):
19194 r"""FindPadByNumber(FOOTPRINT self, wxString aPadNumber, PAD aSearchAfterMe=None) -> PAD"""
19195 return _pcbnew.FOOTPRINT_FindPadByNumber(self, aPadNumber, aSearchAfterMe)
19196
19197 def GetPad(self, *args):
19198 r"""GetPad(FOOTPRINT self, VECTOR2I aPosition, LSET aLayerMask=LSET::AllLayersMask()) -> PAD"""
19199 return _pcbnew.FOOTPRINT_GetPad(self, *args)
19200
19201 def GetPads(self, aPadNumber, aIgnore=None):
19202 r"""GetPads(FOOTPRINT self, wxString aPadNumber, PAD aIgnore=None) -> std::vector< PAD const *,std::allocator< PAD const * > >"""
19203 return _pcbnew.FOOTPRINT_GetPads(self, aPadNumber, aIgnore)
19204
19205 def GetPadCount(self, *args):
19206 r"""GetPadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
19207 return _pcbnew.FOOTPRINT_GetPadCount(self, *args)
19208
19209 def GetUniquePadCount(self, *args):
19210 r"""GetUniquePadCount(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> unsigned int"""
19211 return _pcbnew.FOOTPRINT_GetUniquePadCount(self, *args)
19212
19213 def GetUniquePadNumbers(self, *args):
19214 r"""GetUniquePadNumbers(FOOTPRINT self, INCLUDE_NPTH_T aIncludeNPTH=INCLUDE_NPTH_T(INCLUDE_NPTH)) -> STRINGSET"""
19215 return _pcbnew.FOOTPRINT_GetUniquePadNumbers(self, *args)
19216
19217 def GetNextPadNumber(self, aLastPadName):
19218 r"""GetNextPadNumber(FOOTPRINT self, wxString aLastPadName) -> wxString"""
19219 return _pcbnew.FOOTPRINT_GetNextPadNumber(self, aLastPadName)
19220
19222 r"""AutoPositionFields(FOOTPRINT self)"""
19223 return _pcbnew.FOOTPRINT_AutoPositionFields(self)
19224
19225 def GetTypeName(self):
19226 r"""GetTypeName(FOOTPRINT self) -> wxString"""
19227 return _pcbnew.FOOTPRINT_GetTypeName(self)
19228
19229 def GetArea(self, aPadding=0):
19230 r"""GetArea(FOOTPRINT self, int aPadding=0) -> double"""
19231 return _pcbnew.FOOTPRINT_GetArea(self, aPadding)
19232
19233 def GetLink(self):
19234 r"""GetLink(FOOTPRINT self) -> KIID"""
19235 return _pcbnew.FOOTPRINT_GetLink(self)
19236
19237 def SetLink(self, aLink):
19238 r"""SetLink(FOOTPRINT self, KIID aLink)"""
19239 return _pcbnew.FOOTPRINT_SetLink(self, aLink)
19240
19241 def DuplicateItem(self, aItem, aAddToFootprint=False):
19242 r"""DuplicateItem(FOOTPRINT self, BOARD_ITEM aItem, bool aAddToFootprint=False) -> BOARD_ITEM"""
19243 return _pcbnew.FOOTPRINT_DuplicateItem(self, aItem, aAddToFootprint)
19244
19245 def Add3DModel(self, a3DModel):
19246 r"""Add3DModel(FOOTPRINT self, FP_3DMODEL a3DModel)"""
19247 return _pcbnew.FOOTPRINT_Add3DModel(self, a3DModel)
19248
19249 def RunOnDescendants(self, aFunction, aDepth=0):
19250 r"""RunOnDescendants(FOOTPRINT self, std::function< void (BOARD_ITEM *) > const & aFunction, int aDepth=0)"""
19251 return _pcbnew.FOOTPRINT_RunOnDescendants(self, aFunction, aDepth)
19252
19253 def ViewGetLOD(self, aLayer, aView):
19254 r"""ViewGetLOD(FOOTPRINT self, int aLayer, KIGFX::VIEW * aView) -> double"""
19255 return _pcbnew.FOOTPRINT_ViewGetLOD(self, aLayer, aView)
19256
19257 @staticmethod
19258 def IsLibNameValid(aName):
19259 r"""IsLibNameValid(wxString aName) -> bool"""
19260 return _pcbnew.FOOTPRINT_IsLibNameValid(aName)
19261
19262 @staticmethod
19263 def StringLibNameInvalidChars(aUserReadable):
19264 r"""StringLibNameInvalidChars(bool aUserReadable) -> wxChar const *"""
19265 return _pcbnew.FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
19266
19267 def FootprintNeedsUpdate(self, aLibFP, aCompareFlags=0, aReporter=None):
19268 r"""FootprintNeedsUpdate(FOOTPRINT self, FOOTPRINT aLibFP, int aCompareFlags=0, REPORTER * aReporter=None) -> bool"""
19269 return _pcbnew.FOOTPRINT_FootprintNeedsUpdate(self, aLibFP, aCompareFlags, aReporter)
19270
19271 def SetInitialComments(self, aInitialComments):
19272 r"""SetInitialComments(FOOTPRINT self, wxArrayString * aInitialComments)"""
19273 return _pcbnew.FOOTPRINT_SetInitialComments(self, aInitialComments)
19274
19275 def CoverageRatio(self, aCollector):
19276 r"""CoverageRatio(FOOTPRINT self, GENERAL_COLLECTOR const & aCollector) -> double"""
19277 return _pcbnew.FOOTPRINT_CoverageRatio(self, aCollector)
19278
19279 @staticmethod
19280 def GetCoverageArea(aItem, aCollector):
19281 r"""GetCoverageArea(BOARD_ITEM aItem, GENERAL_COLLECTOR const & aCollector) -> double"""
19282 return _pcbnew.FOOTPRINT_GetCoverageArea(aItem, aCollector)
19283
19285 r"""GetInitialComments(FOOTPRINT self) -> wxArrayString const *"""
19286 return _pcbnew.FOOTPRINT_GetInitialComments(self)
19287
19288 def GetCourtyard(self, aLayer):
19289 r"""GetCourtyard(FOOTPRINT self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
19290 return _pcbnew.FOOTPRINT_GetCourtyard(self, aLayer)
19291
19292 def GetCachedCourtyard(self, aLayer):
19293 r"""GetCachedCourtyard(FOOTPRINT self, PCB_LAYER_ID aLayer) -> SHAPE_POLY_SET"""
19294 return _pcbnew.FOOTPRINT_GetCachedCourtyard(self, aLayer)
19295
19296 def BuildCourtyardCaches(self, aErrorHandler=None):
19297 r"""BuildCourtyardCaches(FOOTPRINT self, OUTLINE_ERROR_HANDLER * aErrorHandler=None)"""
19298 return _pcbnew.FOOTPRINT_BuildCourtyardCaches(self, aErrorHandler)
19299
19300 def GetEffectiveShape(self, *args):
19301 r"""GetEffectiveShape(FOOTPRINT self, PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=DEFAULT) -> std::shared_ptr< SHAPE >"""
19302 return _pcbnew.FOOTPRINT_GetEffectiveShape(self, *args)
19303
19304
19305 #def SaveToLibrary(self,filename):
19306 # return SaveFootprintToLibrary(filename,self)
19307
19308 #
19309 # add function, clears the thisown to avoid python from deleting
19310 # the object in the garbage collector
19311 #
19312
19313 def GetFieldsText(self):
19314 """ Returns footprint fields name to text map. """
19315 fields = self.GetFields()
19316 return {str(field.GetName()): str(field.GetText()) for field in fields}
19317
19319 """ Returns footprint fields name to shown text map. """
19320 fields = self.GetFields()
19321 return {str(field.GetName()): str(field.GetShownText(False)) for field in fields}
19322
19323 def GetFieldText(self, key):
19324 """ Returns Field text with a given key if it exists, throws KeyError otherwise. """
19325 if self.HasFieldByName(key):
19326 return self.GetFieldByName(key).GetText()
19327 else:
19328 raise KeyError("Field not found: " + key)
19329
19330 def GetFieldShownText(self, key):
19331 """ Returns Field shown text with a given key if it exists, throws KeyError otherwise. """
19332 if self.HasFieldByName(key):
19333 return self.GetFieldByName(key).GetShownText(False)
19334 else:
19335 raise KeyError("Field not found: " + key)
19336
19337 def SetField(self, key, value):
19338 if self.HasFieldByName(key):
19339 self.GetFieldByName(key).SetText(value)
19340 else:
19341 field = PCB_FIELD(self, self.GetFieldCount(), key)
19342 field.SetText(value)
19343 self.AddField(field)
19344
19345 def HasField(self, key):
19346 return self.HasFieldByName(key)
19347
19348 def SetFields(self, fields):
19349 """ Sets footprint fields map. """
19350 for k, v in fields.items():
19351 self.SetField(k, v)
19352
19353
19354
19355# Register FOOTPRINT in _pcbnew:
19356_pcbnew.FOOTPRINT_swigregister(FOOTPRINT)
19357
19359 r"""FOOTPRINT_ClassOf(EDA_ITEM aItem) -> bool"""
19360 return _pcbnew.FOOTPRINT_ClassOf(aItem)
19361FP_is_LOCKED = _pcbnew.FP_is_LOCKED
19362
19363FP_is_PLACED = _pcbnew.FP_is_PLACED
19364
19365FP_to_PLACE = _pcbnew.FP_to_PLACE
19366
19367FP_PADS_are_LOCKED = _pcbnew.FP_PADS_are_LOCKED
19368
19369
19371 r"""FOOTPRINT_IsLibNameValid(wxString aName) -> bool"""
19372 return _pcbnew.FOOTPRINT_IsLibNameValid(aName)
19373
19375 r"""FOOTPRINT_StringLibNameInvalidChars(bool aUserReadable) -> wxChar const *"""
19376 return _pcbnew.FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
19377
19378def FOOTPRINT_GetCoverageArea(aItem, aCollector):
19379 r"""FOOTPRINT_GetCoverageArea(BOARD_ITEM aItem, GENERAL_COLLECTOR const & aCollector) -> double"""
19380 return _pcbnew.FOOTPRINT_GetCoverageArea(aItem, aCollector)
19381
19383 r"""Proxy of C++ FOOTPRINT::cmp_drawings class."""
19384
19385 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19386 __repr__ = _swig_repr
19387
19388 def __call__(self, itemA, itemB):
19389 r"""__call__(cmp_drawings self, BOARD_ITEM itemA, BOARD_ITEM itemB) -> bool"""
19390 return _pcbnew.cmp_drawings___call__(self, itemA, itemB)
19391
19392 def __init__(self):
19393 r"""__init__(cmp_drawings self) -> cmp_drawings"""
19394 _pcbnew.cmp_drawings_swiginit(self, _pcbnew.new_cmp_drawings())
19395 __swig_destroy__ = _pcbnew.delete_cmp_drawings
19396
19397# Register cmp_drawings in _pcbnew:
19398_pcbnew.cmp_drawings_swigregister(cmp_drawings)
19399
19401 r"""Proxy of C++ FOOTPRINT::cmp_pads class."""
19402
19403 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19404 __repr__ = _swig_repr
19405
19406 def __call__(self, aFirst, aSecond):
19407 r"""__call__(cmp_pads self, PAD aFirst, PAD aSecond) -> bool"""
19408 return _pcbnew.cmp_pads___call__(self, aFirst, aSecond)
19409
19410 def __init__(self):
19411 r"""__init__(cmp_pads self) -> cmp_pads"""
19412 _pcbnew.cmp_pads_swiginit(self, _pcbnew.new_cmp_pads())
19413 __swig_destroy__ = _pcbnew.delete_cmp_pads
19414
19415# Register cmp_pads in _pcbnew:
19416_pcbnew.cmp_pads_swigregister(cmp_pads)
19417
19419 r"""Proxy of C++ FOOTPRINT::cmp_padstack class."""
19420
19421 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19422 __repr__ = _swig_repr
19423
19424 def __call__(self, aFirst, aSecond):
19425 r"""__call__(cmp_padstack self, PAD aFirst, PAD aSecond) -> bool"""
19426 return _pcbnew.cmp_padstack___call__(self, aFirst, aSecond)
19427
19428 def __init__(self):
19429 r"""__init__(cmp_padstack self) -> cmp_padstack"""
19430 _pcbnew.cmp_padstack_swiginit(self, _pcbnew.new_cmp_padstack())
19431 __swig_destroy__ = _pcbnew.delete_cmp_padstack
19432
19433# Register cmp_padstack in _pcbnew:
19434_pcbnew.cmp_padstack_swigregister(cmp_padstack)
19435
19437 r"""Proxy of C++ FOOTPRINT::cmp_zones class."""
19438
19439 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19440 __repr__ = _swig_repr
19441
19442 def __call__(self, aFirst, aSecond):
19443 r"""__call__(cmp_zones self, ZONE aFirst, ZONE aSecond) -> bool"""
19444 return _pcbnew.cmp_zones___call__(self, aFirst, aSecond)
19445
19446 def __init__(self):
19447 r"""__init__(cmp_zones self) -> cmp_zones"""
19448 _pcbnew.cmp_zones_swiginit(self, _pcbnew.new_cmp_zones())
19449 __swig_destroy__ = _pcbnew.delete_cmp_zones
19450
19451# Register cmp_zones in _pcbnew:
19452_pcbnew.cmp_zones_swigregister(cmp_zones)
19453
19455 r"""Proxy of C++ std::vector< FP_3DMODEL > class."""
19456
19457 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19458 __repr__ = _swig_repr
19459
19460 def iterator(self):
19461 r"""iterator(VECTOR_FP_3DMODEL self) -> SwigPyIterator"""
19462 return _pcbnew.VECTOR_FP_3DMODEL_iterator(self)
19463 def __iter__(self):
19464 return self.iterator()
19465
19466 def __nonzero__(self):
19467 r"""__nonzero__(VECTOR_FP_3DMODEL self) -> bool"""
19468 return _pcbnew.VECTOR_FP_3DMODEL___nonzero__(self)
19469
19470 def __bool__(self):
19471 r"""__bool__(VECTOR_FP_3DMODEL self) -> bool"""
19472 return _pcbnew.VECTOR_FP_3DMODEL___bool__(self)
19473
19474 def __len__(self):
19475 r"""__len__(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
19476 return _pcbnew.VECTOR_FP_3DMODEL___len__(self)
19477
19478 def __getslice__(self, i, j):
19479 r"""__getslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j) -> VECTOR_FP_3DMODEL"""
19480 return _pcbnew.VECTOR_FP_3DMODEL___getslice__(self, i, j)
19481
19482 def __setslice__(self, *args):
19483 r"""
19484 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)
19485 __setslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j, VECTOR_FP_3DMODEL v)
19486 """
19487 return _pcbnew.VECTOR_FP_3DMODEL___setslice__(self, *args)
19488
19489 def __delslice__(self, i, j):
19490 r"""__delslice__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, std::vector< FP_3DMODEL >::difference_type j)"""
19491 return _pcbnew.VECTOR_FP_3DMODEL___delslice__(self, i, j)
19492
19493 def __delitem__(self, *args):
19494 r"""
19495 __delitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i)
19496 __delitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice)
19497 """
19498 return _pcbnew.VECTOR_FP_3DMODEL___delitem__(self, *args)
19499
19500 def __getitem__(self, *args):
19501 r"""
19502 __getitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice) -> VECTOR_FP_3DMODEL
19503 __getitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i) -> FP_3DMODEL
19504 """
19505 return _pcbnew.VECTOR_FP_3DMODEL___getitem__(self, *args)
19506
19507 def __setitem__(self, *args):
19508 r"""
19509 __setitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice, VECTOR_FP_3DMODEL v)
19510 __setitem__(VECTOR_FP_3DMODEL self, PySliceObject * slice)
19511 __setitem__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::difference_type i, FP_3DMODEL x)
19512 """
19513 return _pcbnew.VECTOR_FP_3DMODEL___setitem__(self, *args)
19514
19515 def pop(self):
19516 r"""pop(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
19517 return _pcbnew.VECTOR_FP_3DMODEL_pop(self)
19518
19519 def append(self, x):
19520 r"""append(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
19521 return _pcbnew.VECTOR_FP_3DMODEL_append(self, x)
19522
19523 def empty(self):
19524 r"""empty(VECTOR_FP_3DMODEL self) -> bool"""
19525 return _pcbnew.VECTOR_FP_3DMODEL_empty(self)
19526
19527 def size(self):
19528 r"""size(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
19529 return _pcbnew.VECTOR_FP_3DMODEL_size(self)
19530
19531 def swap(self, v):
19532 r"""swap(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL v)"""
19533 return _pcbnew.VECTOR_FP_3DMODEL_swap(self, v)
19534
19535 def begin(self):
19536 r"""begin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
19537 return _pcbnew.VECTOR_FP_3DMODEL_begin(self)
19538
19539 def end(self):
19540 r"""end(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::iterator"""
19541 return _pcbnew.VECTOR_FP_3DMODEL_end(self)
19542
19543 def rbegin(self):
19544 r"""rbegin(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
19545 return _pcbnew.VECTOR_FP_3DMODEL_rbegin(self)
19546
19547 def rend(self):
19548 r"""rend(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::reverse_iterator"""
19549 return _pcbnew.VECTOR_FP_3DMODEL_rend(self)
19550
19551 def clear(self):
19552 r"""clear(VECTOR_FP_3DMODEL self)"""
19553 return _pcbnew.VECTOR_FP_3DMODEL_clear(self)
19554
19555 def get_allocator(self):
19556 r"""get_allocator(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::allocator_type"""
19557 return _pcbnew.VECTOR_FP_3DMODEL_get_allocator(self)
19558
19559 def pop_back(self):
19560 r"""pop_back(VECTOR_FP_3DMODEL self)"""
19561 return _pcbnew.VECTOR_FP_3DMODEL_pop_back(self)
19562
19563 def erase(self, *args):
19564 r"""
19565 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos) -> std::vector< FP_3DMODEL >::iterator
19566 erase(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator first, std::vector< FP_3DMODEL >::iterator last) -> std::vector< FP_3DMODEL >::iterator
19567 """
19568 return _pcbnew.VECTOR_FP_3DMODEL_erase(self, *args)
19569
19570 def __init__(self, *args):
19571 r"""
19572 __init__(VECTOR_FP_3DMODEL self) -> VECTOR_FP_3DMODEL
19573 __init__(VECTOR_FP_3DMODEL self, VECTOR_FP_3DMODEL other) -> VECTOR_FP_3DMODEL
19574 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size) -> VECTOR_FP_3DMODEL
19575 __init__(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type size, FP_3DMODEL value) -> VECTOR_FP_3DMODEL
19576 """
19577 _pcbnew.VECTOR_FP_3DMODEL_swiginit(self, _pcbnew.new_VECTOR_FP_3DMODEL(*args))
19578
19579 def push_back(self, x):
19580 r"""push_back(VECTOR_FP_3DMODEL self, FP_3DMODEL x)"""
19581 return _pcbnew.VECTOR_FP_3DMODEL_push_back(self, x)
19582
19583 def front(self):
19584 r"""front(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
19585 return _pcbnew.VECTOR_FP_3DMODEL_front(self)
19586
19587 def back(self):
19588 r"""back(VECTOR_FP_3DMODEL self) -> FP_3DMODEL"""
19589 return _pcbnew.VECTOR_FP_3DMODEL_back(self)
19590
19591 def assign(self, n, x):
19592 r"""assign(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)"""
19593 return _pcbnew.VECTOR_FP_3DMODEL_assign(self, n, x)
19594
19595 def resize(self, *args):
19596 r"""
19597 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size)
19598 resize(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type new_size, FP_3DMODEL x)
19599 """
19600 return _pcbnew.VECTOR_FP_3DMODEL_resize(self, *args)
19601
19602 def insert(self, *args):
19603 r"""
19604 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, FP_3DMODEL x) -> std::vector< FP_3DMODEL >::iterator
19605 insert(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::iterator pos, std::vector< FP_3DMODEL >::size_type n, FP_3DMODEL x)
19606 """
19607 return _pcbnew.VECTOR_FP_3DMODEL_insert(self, *args)
19608
19609 def reserve(self, n):
19610 r"""reserve(VECTOR_FP_3DMODEL self, std::vector< FP_3DMODEL >::size_type n)"""
19611 return _pcbnew.VECTOR_FP_3DMODEL_reserve(self, n)
19612
19613 def capacity(self):
19614 r"""capacity(VECTOR_FP_3DMODEL self) -> std::vector< FP_3DMODEL >::size_type"""
19615 return _pcbnew.VECTOR_FP_3DMODEL_capacity(self)
19616 __swig_destroy__ = _pcbnew.delete_VECTOR_FP_3DMODEL
19617
19618# Register VECTOR_FP_3DMODEL in _pcbnew:
19619_pcbnew.VECTOR_FP_3DMODEL_swigregister(VECTOR_FP_3DMODEL)
19620
19621
19622def GetPluginForPath(libname):
19623 plugin_type = PCB_IO_MGR.GuessPluginTypeFromLibPath( libname );
19624 return PCB_IO_MGR.PluginFind(plugin_type)
19625
19627 plug = GetPluginForPath(libname)
19628 return plug.FootprintEnumerate(libname)
19629
19630def FootprintLoad(libname,name,preserveUUID=False):
19631 plug = GetPluginForPath(libname)
19632 return plug.FootprintLoad(libname,name,preserveUUID)
19633
19634def FootprintSave(libname,module):
19635 plug = GetPluginForPath(libname)
19636 return plug.FootprintSave(libname,module)
19637
19638def FootprintDelete(libname,name):
19639 plug = GetPluginForPath(libname)
19640 plug.FootprintDelete(libname,name)
19641
19643 plug = GetPluginForPath(libname)
19644 plug.CreateLibrary(libname)
19645
19647 plug = GetPluginForPath(libname)
19648 plug.DeleteLibrary(libname)
19649
19651 plug = GetPluginForPath(libname)
19652 plug.FootprintLibIsWritable(libname)
19653
19655 r"""Proxy of C++ PYTHON_FOOTPRINT_WIZARD_LIST class."""
19656
19657 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19658 __repr__ = _swig_repr
19659
19660 @staticmethod
19661 def register_wizard(wizard):
19662 r"""register_wizard(PyObject * wizard)"""
19663 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
19664
19665 @staticmethod
19667 r"""deregister_wizard(PyObject * wizard)"""
19668 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
19669
19670 def __init__(self):
19671 r"""__init__(PYTHON_FOOTPRINT_WIZARD_LIST self) -> PYTHON_FOOTPRINT_WIZARD_LIST"""
19672 _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swiginit(self, _pcbnew.new_PYTHON_FOOTPRINT_WIZARD_LIST())
19673 __swig_destroy__ = _pcbnew.delete_PYTHON_FOOTPRINT_WIZARD_LIST
19674
19675# Register PYTHON_FOOTPRINT_WIZARD_LIST in _pcbnew:
19676_pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_swigregister(PYTHON_FOOTPRINT_WIZARD_LIST)
19677
19679 r"""PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(PyObject * wizard)"""
19680 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
19681
19683 r"""PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(PyObject * wizard)"""
19684 return _pcbnew.PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
19685
19687 r"""Proxy of C++ PYTHON_ACTION_PLUGINS class."""
19688
19689 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
19690 __repr__ = _swig_repr
19691
19692 @staticmethod
19693 def register_action(wizard):
19694 r"""register_action(PyObject * wizard)"""
19695 return _pcbnew.PYTHON_ACTION_PLUGINS_register_action(wizard)
19696
19697 @staticmethod
19699 r"""deregister_action(PyObject * wizard)"""
19700 return _pcbnew.PYTHON_ACTION_PLUGINS_deregister_action(wizard)
19701
19702 def __init__(self):
19703 r"""__init__(PYTHON_ACTION_PLUGINS self) -> PYTHON_ACTION_PLUGINS"""
19704 _pcbnew.PYTHON_ACTION_PLUGINS_swiginit(self, _pcbnew.new_PYTHON_ACTION_PLUGINS())
19705 __swig_destroy__ = _pcbnew.delete_PYTHON_ACTION_PLUGINS
19706
19707# Register PYTHON_ACTION_PLUGINS in _pcbnew:
19708_pcbnew.PYTHON_ACTION_PLUGINS_swigregister(PYTHON_ACTION_PLUGINS)
19709
19711 r"""PYTHON_ACTION_PLUGINS_register_action(PyObject * wizard)"""
19712 return _pcbnew.PYTHON_ACTION_PLUGINS_register_action(wizard)
19713
19715 r"""PYTHON_ACTION_PLUGINS_deregister_action(PyObject * wizard)"""
19716 return _pcbnew.PYTHON_ACTION_PLUGINS_deregister_action(wizard)
19717
19718
19719def ToMM(iu):
19720 if type(iu) in [int,float]:
19721 return float(iu) / float(pcbIUScale.IU_PER_MM)
19722 elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
19723 return tuple(map(ToMM,iu))
19724 else:
19725 raise TypeError("ToMM() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
19726
19727def FromMM(mm):
19728 if type(mm) in [int,float]:
19729 return int(float(mm) * float(pcbIUScale.IU_PER_MM))
19730 elif type(mm) in [wxPoint,wxSize,VECTOR2I]:
19731 return tuple(map(FromMM,mm))
19732 else:
19733 raise TypeError("FromMM() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mm)))
19734
19735def ToMils(iu):
19736 if type(iu) in [int,float]:
19737 return float(iu) / float(pcbIUScale.IU_PER_MILS)
19738 elif type(iu) in [wxPoint,wxSize,VECTOR2I]:
19739 return tuple(map(ToMils,iu))
19740 else:
19741 raise TypeError("ToMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(iu)))
19742
19743def FromMils(mils):
19744 if type(mils) in [int,float]:
19745 return int(float(mils)*float(pcbIUScale.IU_PER_MILS))
19746 elif type(mils) in [wxPoint,wxSize,VECTOR2I]:
19747 return tuple(map(FromMils,mils))
19748 else:
19749 raise TypeError("FromMils() expects int, float, wxPoint, wxSize or VECTOR2I, instead got type " + str(type(mils)))
19750
19751def PutOnGridMM(value, gridSizeMM):
19752 thresh = FromMM(gridSizeMM)
19753 return round(value/thresh)*thresh
19754
19755def PutOnGridMils(value, gridSizeMils):
19756 thresh = FromMils(gridSizeMils)
19757 return round(value/thresh)*thresh
19758
19759def wxSizeMM(mmx,mmy):
19760 return wxSize(FromMM(mmx),FromMM(mmy))
19761
19762def wxSizeMils(mmx,mmy):
19763 return wxSize(FromMils(mmx),FromMils(mmy))
19764
19765def wxPointMM(mmx,mmy):
19766 return wxPoint(FromMM(mmx),FromMM(mmy))
19767
19768def wxPointMils(mmx,mmy):
19769 return wxPoint(FromMils(mmx),FromMils(mmy))
19770
19771def VECTOR2I_MM(mmx,mmy):
19772 return VECTOR2I(FromMM(mmx),FromMM(mmy))
19773
19774def VECTOR2I_Mils(mmx,mmy):
19775 return VECTOR2I(FromMils(mmx),FromMils(mmy))
19776
19777def wxRectMM(x,y,wx,wy):
19778 x = int(FromMM(x))
19779 y = int(FromMM(y))
19780 wx = int(FromMM(wx))
19781 wy = int (FromMM(wy))
19782 return wxRect(x,y,wx,wy)
19783
19784def wxRectMils(x,y,wx,wy):
19785 x = int(FromMils(x))
19786 y = int(FromMils(y))
19787 wx = int(FromMils(wx))
19788 wy = int(FromMils(wy))
19789 return wxRect(x,y,wx,wy)
19790
19791
19793 """Return the semantic version of KiCad"""
19794 return GetSemanticVersion()
19795
19797 """Return the full, git-based version of KiCad"""
19798 return GetBuildVersion()
19799
19800
19801
def __init__(self)
Definition: pcbnew.py:14905
def Run(self)
Definition: pcbnew.py:5173
def GetShowToolbarButton(self)
Definition: pcbnew.py:5164
def GetIconFileName(self, dark)
Definition: pcbnew.py:5167
def GetCategoryName(self)
Definition: pcbnew.py:5158
def GetDescription(self)
Definition: pcbnew.py:5161
def GetName(self)
Definition: pcbnew.py:5155
def __init__(self)
Definition: pcbnew.py:5143
def defaults(self)
Definition: pcbnew.py:5150
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:7923
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:10306
def GetLocalClearance(self, aSource)
Definition: pcbnew.py:10314
def SetTeardropsEnabled(self, aEnable)
Definition: pcbnew.py:10341
def SetTeardropBestWidthRatio(self, aRatio)
Definition: pcbnew.py:10365
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:10262
def GetLocalClearanceOverrides(self, aSource)
Definition: pcbnew.py:10310
def SetLocalRatsnestVisible(self, aVisible)
Definition: pcbnew.py:10326
def SetTeardropMaxTrackWidth(self, aRatio)
Definition: pcbnew.py:10405
def GetTeardropAllowSpanTwoTracks(self)
Definition: pcbnew.py:10401
def GetTeardropMaxLength(self)
Definition: pcbnew.py:10361
def SetTeardropCurvePts(self, aPointCount)
Definition: pcbnew.py:10381
def GetTeardropParams(self, *args)
Definition: pcbnew.py:10334
def GetTeardropBestWidthRatio(self)
Definition: pcbnew.py:10369
def SetNetCode(self, *args)
Definition: pcbnew.py:10283
def GetTeardropMaxTrackWidth(self)
Definition: pcbnew.py:10409
def SetTeardropAllowSpanTwoTracks(self, aAllow)
Definition: pcbnew.py:10397
def SetTeardropMaxWidth(self, aMaxWidth)
Definition: pcbnew.py:10373
def GetLocalRatsnestVisible(self)
Definition: pcbnew.py:10330
def SetTeardropBestLengthRatio(self, aRatio)
Definition: pcbnew.py:10349
def GetTeardropBestLengthRatio(self)
Definition: pcbnew.py:10353
def GetTeardropPreferZoneConnections(self)
Definition: pcbnew.py:10393
def GetEffectiveNetClass(self)
Definition: pcbnew.py:10318
def SetNet(self, aNetInfo)
Definition: pcbnew.py:10275
def SetTeardropPreferZoneConnections(self, aPrefer)
Definition: pcbnew.py:10389
def SetTeardropMaxLength(self, aMaxLength)
Definition: pcbnew.py:10357
def SetAuxOrigin(self, aOrigin)
Definition: pcbnew.py:11003
def IsLayerEnabled(self, aLayerId)
Definition: pcbnew.py:10951
def GetCustomDiffPairWidth(self)
Definition: pcbnew.py:10904
def GetLineThickness(self, aLayer)
Definition: pcbnew.py:10979
def GetTextSize(self, aLayer)
Definition: pcbnew.py:10983
def SetEnabledLayers(self, aMask)
Definition: pcbnew.py:10947
def SetDefaultZoneSettings(self, aSettings)
Definition: pcbnew.py:10805
def UseCustomDiffPairDimensions(self, *args)
Definition: pcbnew.py:10924
def SetCustomDiffPairGap(self, aGap)
Definition: pcbnew.py:10908
def GetLayerClass(self, aLayer)
Definition: pcbnew.py:10999
def LoadFromFile(self, *args)
Definition: pcbnew.py:10778
def GetCurrentDiffPairWidth(self)
Definition: pcbnew.py:10931
def SetBoardThickness(self, aThickness)
Definition: pcbnew.py:10967
def GetSeverity(self, aDRCErrorCode)
Definition: pcbnew.py:10793
def GetHolePlatingThickness(self)
Definition: pcbnew.py:10975
def GetBiggestClearanceValue(self)
Definition: pcbnew.py:10825
def Ignore(self, aDRCErrorCode)
Definition: pcbnew.py:10797
def CloneFrom(self, aOther)
Definition: pcbnew.py:11074
def SetCustomTrackWidth(self, aWidth)
Definition: pcbnew.py:10845
def SetDiffPairIndex(self, aIndex)
Definition: pcbnew.py:10896
def GetTextUpright(self, aLayer)
Definition: pcbnew.py:10995
def GetStackupDescriptor(self, *args)
Definition: pcbnew.py:10782
def GetCurrentNetClassName(self)
Definition: pcbnew.py:10809
def __eq__(self, aOther)
Definition: pcbnew.py:10763
def GetDefaultZoneSettings(self)
Definition: pcbnew.py:10801
def UseCustomTrackViaSize(self, *args)
Definition: pcbnew.py:10885
def SetViaSizeIndex(self, aIndex)
Definition: pcbnew.py:10857
def __ne__(self, aOther)
Definition: pcbnew.py:10767
def GetCustomDiffPairViaGap(self)
Definition: pcbnew.py:10920
def SetCustomViaSize(self, aSize)
Definition: pcbnew.py:10865
def SetGridOrigin(self, aOrigin)
Definition: pcbnew.py:11011
def SetCustomViaDrill(self, aDrill)
Definition: pcbnew.py:10877
def GetSmallestClearanceValue(self)
Definition: pcbnew.py:10829
def GetTextItalic(self, aLayer)
Definition: pcbnew.py:10991
def GetCurrentDiffPairViaGap(self)
Definition: pcbnew.py:10939
def SetCopperLayerCount(self, aNewLayerCount)
Definition: pcbnew.py:10959
def __init__(self, *args)
Definition: pcbnew.py:10771
def GetTextThickness(self, aLayer)
Definition: pcbnew.py:10987
def SetCustomDiffPairWidth(self, aWidth)
Definition: pcbnew.py:10900
def SetTrackWidthIndex(self, aIndex)
Definition: pcbnew.py:10837
def SetCustomDiffPairViaGap(self, aGap)
Definition: pcbnew.py:10916
def Delete(self, item)
Definition: pcbnew.py:10242
def DeleteNative(self, aItem)
Definition: pcbnew.py:10218
def Remove(self, item)
Definition: pcbnew.py:10232
def RemoveNative(self, *args)
Definition: pcbnew.py:10214
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:10206
def Add(self, item)
Definition: pcbnew.py:10222
def AddNative(self, *args)
Definition: pcbnew.py:10210
def IsTented(self)
Definition: pcbnew.py:9758
def IsOnLayer(self, aLayer)
Definition: pcbnew.py:9834
def GetLayer(self)
Definition: pcbnew.py:9810
def IsKnockout(self)
Definition: pcbnew.py:9838
def IsConnected(self)
Definition: pcbnew.py:9738
def SetIsKnockout(self, aKnockout)
Definition: pcbnew.py:9842
def Move(self, aMoveVector)
Definition: pcbnew.py:9862
def SetStartEnd(self, start, end)
Definition: pcbnew.py:9960
def SetParentGroup(self, aGroup)
Definition: pcbnew.py:9710
def SetFPRelativePosition(self, aPos)
Definition: pcbnew.py:9790
def GetParent(self)
Definition: pcbnew.py:9778
def Flip(self, aCentre, aFlipLeftRight)
Definition: pcbnew.py:9870
def StyleFromSettings(self, settings)
Definition: pcbnew.py:9854
def SetStroke(self, aStroke)
Definition: pcbnew.py:9802
def GetFontMetrics(self)
Definition: pcbnew.py:9806
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9705
def GetParentGroup(self)
Definition: pcbnew.py:9714
def Rotate(self, aRotCentre, aAngle)
Definition: pcbnew.py:9866
def GetLayerSet(self)
Definition: pcbnew.py:9814
def Cast(self)
Definition: pcbnew.py:9903
def NormalizeForCompare(self)
Definition: pcbnew.py:9878
def SetLayer(self, aLayer)
Definition: pcbnew.py:9822
def SetLayerSet(self, aLayers)
Definition: pcbnew.py:9818
def GetCenter(self)
Definition: pcbnew.py:9726
def SwapItemData(self, aImage)
Definition: pcbnew.py:9830
def GetEffectiveHoleShape(self)
Definition: pcbnew.py:9766
def GetStroke(self)
Definition: pcbnew.py:9798
def IsOnCopperLayer(self)
Definition: pcbnew.py:9750
def Similarity(self, aItem)
Definition: pcbnew.py:9742
def GetY(self)
Definition: pcbnew.py:9722
def GetX(self)
Definition: pcbnew.py:9718
def SetX(self, aX)
Definition: pcbnew.py:9730
def IsLocked(self)
Definition: pcbnew.py:9846
def GetParentAsString(self)
Definition: pcbnew.py:9889
def DeleteStructure(self)
Definition: pcbnew.py:9858
def GetFPRelativePosition(self)
Definition: pcbnew.py:9786
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:9762
def Normalize(self)
Definition: pcbnew.py:9874
def HasLineStroke(self)
Definition: pcbnew.py:9794
def RunOnChildren(self, aFunction)
Definition: pcbnew.py:9770
def GetLayerName(self)
Definition: pcbnew.py:9893
def GetParentFootprint(self)
Definition: pcbnew.py:9782
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:9774
def Duplicate(self)
Definition: pcbnew.py:9826
def SetLocked(self, aLocked)
Definition: pcbnew.py:9850
def HasHole(self)
Definition: pcbnew.py:9754
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:9897
def SetY(self, aY)
Definition: pcbnew.py:9734
def __eq__(self, aItem)
Definition: pcbnew.py:9746
def SetPos(self, p)
Definition: pcbnew.py:9956
def OnBoardHighlightNetChanged(self, aBoard)
Definition: pcbnew.py:17798
def OnBoardItemAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:17770
def OnBoardRatsnestChanged(self, aBoard)
Definition: pcbnew.py:17802
def OnBoardItemChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:17790
def OnBoardNetSettingsChanged(self, aBoard)
Definition: pcbnew.py:17786
def __init__(self)
Definition: pcbnew.py:17806
def OnBoardItemsAdded(self, aBoard, aBoardItem)
Definition: pcbnew.py:17774
def OnBoardItemRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:17778
def OnBoardItemsChanged(self, aBoard, aBoardItem)
Definition: pcbnew.py:17794
def OnBoardItemsRemoved(self, aBoard, aBoardItem)
Definition: pcbnew.py:17782
def DeleteMARKERs(self, *args)
Definition: pcbnew.py:18010
def RemoveListener(self, aListener)
Definition: pcbnew.py:18357
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:17924
def IsHighLightNetON(self)
Definition: pcbnew.py:18053
def IsFootprintLayerVisible(self, aLayer)
Definition: pcbnew.py:18121
def GetNetsByNetcode(self)
Definition: pcbnew.py:18436
def BuildListOfNets(self)
Definition: pcbnew.py:18229
def GetPadFast(self, aPosition, aLayerMask)
Definition: pcbnew.py:18312
def SetLayerDescr(self, aIndex, aLayer)
Definition: pcbnew.py:18209
def GetLayerName(self, aLayer)
Definition: pcbnew.py:18196
def GetPad(self, *args)
Definition: pcbnew.py:18316
def GetLayerType(self, aLayer)
Definition: pcbnew.py:18213
def SetCopperLayerCount(self, aCount)
Definition: pcbnew.py:18069
def RemoveAllListeners(self)
Definition: pcbnew.py:18361
def GetCopperLayerCount(self)
Definition: pcbnew.py:18065
def LayerDepth(self, aStartLayer, aEndLayer)
Definition: pcbnew.py:18073
def GetTracks(self)
Definition: pcbnew.py:18413
def GetPads(self)
Definition: pcbnew.py:18225
def FillItemMap(self, aMap)
Definition: pcbnew.py:17990
def GetPageSettings(self)
Definition: pcbnew.py:18137
def SetProject(self, aProject, aReferenceOnly=False)
Definition: pcbnew.py:18021
def RecordDRCExclusions(self)
Definition: pcbnew.py:18033
def GetFileName(self)
Definition: pcbnew.py:17855
def GroupsSanityCheck(self, repair=False)
Definition: pcbnew.py:18377
def TestZoneIntersection(self, aZone1, aZone2)
Definition: pcbnew.py:18308
def ResetNetHighLight(self)
Definition: pcbnew.py:18041
def Save(self, filename)
Definition: pcbnew.py:18415
def SetOutlinesChainingEpsilon(self, aValue)
Definition: pcbnew.py:18184
def RemoveNative(self, *args)
Definition: pcbnew.py:17962
def GetAllNetClasses(self)
Definition: pcbnew.py:18449
def GetFirstFootprint(self)
Definition: pcbnew.py:17978
def GetOutlinesChainingEpsilon(self)
Definition: pcbnew.py:18180
def ResolveTextVar(self, token, aDepth)
Definition: pcbnew.py:17928
def SetHighLightNet(self, aNetCode, aMulti=False)
Definition: pcbnew.py:18049
def ComputeBoundingBox(self, aBoardEdgesOnly=False)
Definition: pcbnew.py:18260
def UpdateRatsnestExclusions(self)
Definition: pcbnew.py:18037
def Zones(self, *args)
Definition: pcbnew.py:17880
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:17822
def GroupsSanityCheckInternal(self, repair)
Definition: pcbnew.py:18381
def OnItemsChanged(self, aItems)
Definition: pcbnew.py:18369
def GetFootprint(self, aPosition, aActiveLayer, aVisibleOnly, aIgnoreLocked=False)
Definition: pcbnew.py:18337
def GetBoardUse(self)
Definition: pcbnew.py:17835
def GetLayerID(self, aLayerName)
Definition: pcbnew.py:18192
def GetVisibleElements(self)
Definition: pcbnew.py:18101
def GetItem(self, aID)
Definition: pcbnew.py:17986
def IsElementVisible(self, aLayer)
Definition: pcbnew.py:18113
def GetSortedPadListByXthenYCoord(self, aVector, aNetCode=-1)
Definition: pcbnew.py:18325
def FinalizeBulkRemove(self, aRemovedItems)
Definition: pcbnew.py:17970
def AddListener(self, aListener)
Definition: pcbnew.py:18353
def Drawings(self, *args)
Definition: pcbnew.py:17873
def AddNative(self, *args)
Definition: pcbnew.py:17958
def SetVisibleAlls(self)
Definition: pcbnew.py:18109
def GetHighLightNetCodes(self)
Definition: pcbnew.py:18045
def OnItemChanged(self, aItem)
Definition: pcbnew.py:18365
def GetFootprints(self)
Definition: pcbnew.py:18411
def TracksInNet(self, aNetCode)
Definition: pcbnew.py:18333
def GetStandardLayerName(aLayerId)
Definition: pcbnew.py:18205
def IsFootprintHolder(self)
Definition: pcbnew.py:17847
def FinalizeBulkAdd(self, aNewItems)
Definition: pcbnew.py:17966
def SetTentVias(self, aFlag)
Definition: pcbnew.py:18133
def FindNet(self, *args)
Definition: pcbnew.py:18233
def Groups(self, *args)
Definition: pcbnew.py:17905
def SetTitleBlock(self, aTitleBlock)
Definition: pcbnew.py:18160
def OnRatsnestChanged(self)
Definition: pcbnew.py:18373
def HighLightON(self, aValue=True)
Definition: pcbnew.py:18057
def GetMaxClearanceValue(self)
Definition: pcbnew.py:18341
def SetVisibleLayers(self, aLayerMask)
Definition: pcbnew.py:18097
def IncrementTimeStamp(self)
Definition: pcbnew.py:17839
def AddArea(self, aNewZonesList, aNetcode, aLayer, aStartPointPosition, aHatch)
Definition: pcbnew.py:18304
def CacheTriangulation(self, *args)
Definition: pcbnew.py:17974
def GetViasDimensionsList(self)
Definition: pcbnew.py:18424
def IsLayerVisible(self, aLayer)
Definition: pcbnew.py:18089
def ResolveDRCExclusions(self, aCreateMarkers)
Definition: pcbnew.py:18029
def MatchDpSuffix(self, aNetName, aComplementNet)
Definition: pcbnew.py:18240
def Markers(self, *args)
Definition: pcbnew.py:17894
def GetTimeStamp(self)
Definition: pcbnew.py:17843
def SetPlotOptions(self, aOptions)
Definition: pcbnew.py:18149
def GetBoardPolygonOutlines(self, aOutlines, aErrorHandler=None, aAllowUseArcsInPolygons=False, aIncludeNPTHAsOutlines=False)
Definition: pcbnew.py:18176
def GetEnabledLayers(self)
Definition: pcbnew.py:18077
def FindFootprintByReference(self, aReference)
Definition: pcbnew.py:18268
def HighLightOFF(self)
Definition: pcbnew.py:18061
def ConvertBrdLayerToPolygonalContours(self, aLayer, aOutlines)
Definition: pcbnew.py:18188
def SetGenerator(self, aGenerator)
Definition: pcbnew.py:17950
def IsEmpty(self)
Definition: pcbnew.py:17938
def GetZoneList(self, aIncludeZonesInFootprints=False)
Definition: pcbnew.py:18296
def GetNetClasses(self)
Definition: pcbnew.py:18418
def SetAreasNetCodesFromNetNames(self)
Definition: pcbnew.py:18288
def GetTentVias(self)
Definition: pcbnew.py:18129
def GetProperties(self)
Definition: pcbnew.py:17916
def SetLegacyTeardrops(self, aFlag)
Definition: pcbnew.py:18393
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:18141
def ClearProject(self)
Definition: pcbnew.py:18025
def DeleteAllFootprints(self)
Definition: pcbnew.py:17982
def DpCoupledNet(self, aNet)
Definition: pcbnew.py:18244
def GetAreaCount(self)
Definition: pcbnew.py:18300
def GetBoardEdgesBoundingBox(self)
Definition: pcbnew.py:18264
def ClassOf(aItem)
Definition: pcbnew.py:17827
def GetArea(self, index)
Definition: pcbnew.py:18292
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:17946
def UpdateUserUnits(self, aItem, aView)
Definition: pcbnew.py:18172
def GetVisibleLayers(self)
Definition: pcbnew.py:18093
def GetNetClassAssignmentCandidates(self)
Definition: pcbnew.py:18276
def RemoveUnusedNets(self, aCommit)
Definition: pcbnew.py:18252
def Tracks(self, *args)
Definition: pcbnew.py:17859
def Footprints(self, *args)
Definition: pcbnew.py:17866
def ConvertKIIDsToCrossReferences(self, aSource)
Definition: pcbnew.py:17998
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:17942
def SetProperties(self, aProps)
Definition: pcbnew.py:17920
def GetTrackLength(self, aTrack)
Definition: pcbnew.py:18329
def SanitizeNetcodes(self)
Definition: pcbnew.py:18349
def GetCurrentNetClassName(self)
Definition: pcbnew.py:18421
def SetLayerType(self, aLayer, aLayerType)
Definition: pcbnew.py:18217
def GetNodesCount(self, aNet=-1)
Definition: pcbnew.py:18221
def GetNetcodeFromNetname(self, netname)
Definition: pcbnew.py:18442
def FindFootprintByPath(self, aPath)
Definition: pcbnew.py:18272
def SynchronizeNetsAndNetClasses(self, aResetTrackAndViaSizes)
Definition: pcbnew.py:18280
def AllConnectedItems(self)
Definition: pcbnew.py:17912
def GetNetsByName(self)
Definition: pcbnew.py:18430
def SetFileName(self, aFileName)
Definition: pcbnew.py:17851
def SetEnabledLayers(self, aLayerMask)
Definition: pcbnew.py:18081
def GetGenerator(self)
Definition: pcbnew.py:17954
def GetNetInfo(self)
Definition: pcbnew.py:18248
def GetTrackWidthList(self)
Definition: pcbnew.py:18427
def GroupLegalOps(self, selection)
Definition: pcbnew.py:18385
def BuildConnectivity(self, aReporter=None)
Definition: pcbnew.py:18006
def SynchronizeProperties(self)
Definition: pcbnew.py:18284
def GetConnectivity(self)
Definition: pcbnew.py:18002
def GetTitleBlock(self, *args)
Definition: pcbnew.py:18153
def SetElementVisibility(self, aLayer, aNewState)
Definition: pcbnew.py:18117
def GetDrawings(self)
Definition: pcbnew.py:18412
def GetProject(self)
Definition: pcbnew.py:18017
def IsLayerEnabled(self, aLayer)
Definition: pcbnew.py:18085
def SetLayerName(self, aLayer, aLayerName)
Definition: pcbnew.py:18200
def ConvertCrossReferencesToKIIDs(self, aSource)
Definition: pcbnew.py:17994
def GetDesignSettings(self)
Definition: pcbnew.py:18125
def LegacyTeardrops(self)
Definition: pcbnew.py:18389
def GetPlotOptions(self)
Definition: pcbnew.py:18145
def MapNets(self, aDestBoard)
Definition: pcbnew.py:18345
def SetBoardUse(self, aUse)
Definition: pcbnew.py:17831
def Generators(self, *args)
Definition: pcbnew.py:17887
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:18168
def GetNetCount(self)
Definition: pcbnew.py:18256
def GetItemSet(self)
Definition: pcbnew.py:17901
def SetVisibleElements(self, aMask)
Definition: pcbnew.py:18105
def GetY(self)
Definition: pcbnew.py:5481
def IntersectsCircle(self, aCenter, aRadius)
Definition: pcbnew.py:5585
def Contains(self, *args)
Definition: pcbnew.py:5465
def GetWidth(self)
Definition: pcbnew.py:5497
def Merge(self, *args)
Definition: pcbnew.py:5604
def Centre(self)
Definition: pcbnew.py:5453
def __init__(self, *args)
Definition: pcbnew.py:5442
def GetHeight(self)
Definition: pcbnew.py:5501
def SetOrigin(self, *args)
Definition: pcbnew.py:5529
def GetBoundingBoxRotated(self, aRotCenter, aAngle)
Definition: pcbnew.py:5611
def Offset(self, *args)
Definition: pcbnew.py:5543
def GetTop(self)
Definition: pcbnew.py:5517
def SetX(self, val)
Definition: pcbnew.py:5550
def __eq__(self, aOther)
Definition: pcbnew.py:5649
def GetCenter(self)
Definition: pcbnew.py:5521
def GetBottom(self)
Definition: pcbnew.py:5509
def GetSizeMax(self)
Definition: pcbnew.py:5525
def GetRight(self)
Definition: pcbnew.py:5505
def Format(self)
Definition: pcbnew.py:5593
def SetY(self, val)
Definition: pcbnew.py:5554
def SquaredDistance(self, *args)
Definition: pcbnew.py:5627
def RevertYAxis(self)
Definition: pcbnew.py:5615
def Intersect(self, aRect)
Definition: pcbnew.py:5573
def SetWidth(self, val)
Definition: pcbnew.py:5558
def Distance(self, *args)
Definition: pcbnew.py:5634
def FarthestPointTo(self, aPoint)
Definition: pcbnew.py:5645
def SetEnd(self, *args)
Definition: pcbnew.py:5566
def GetEnd(self)
Definition: pcbnew.py:5493
def Intersects(self, *args)
Definition: pcbnew.py:5577
def SetHeight(self, val)
Definition: pcbnew.py:5562
def GetArea(self)
Definition: pcbnew.py:5619
def GetPosition(self)
Definition: pcbnew.py:5489
def SetSize(self, *args)
Definition: pcbnew.py:5536
def GetOrigin(self)
Definition: pcbnew.py:5485
def GetLeft(self)
Definition: pcbnew.py:5513
def Normalize(self)
Definition: pcbnew.py:5461
def Move(self, aMoveVector)
Definition: pcbnew.py:5457
def GetX(self)
Definition: pcbnew.py:5477
def Diagonal(self)
Definition: pcbnew.py:5623
def __ne__(self, aOther)
Definition: pcbnew.py:5653
def ClosestPointTo(self, aPoint)
Definition: pcbnew.py:5641
def GetSize(self)
Definition: pcbnew.py:5473
def IntersectsCircleEdge(self, aCenter, aRadius, aWidth)
Definition: pcbnew.py:5589
def SetMaximum(self)
Definition: pcbnew.py:5449
def IsValid(self)
Definition: pcbnew.py:5657
def Inflate(self, *args)
Definition: pcbnew.py:5597
def __init__(self, *args)
Definition: pcbnew.py:6500
Definition: pcbnew.py:11129
def __init__(self)
Definition: pcbnew.py:11140
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:11250
def RunOnUnconnectedEdges(self, aFunc)
Definition: pcbnew.py:11265
def Add(self, aItem)
Definition: pcbnew.py:11190
def GetConnectedItems(self, aItem, aTypes, aIgnoreNetcodes=False)
Definition: pcbnew.py:11289
def GetUnconnectedCount(self, aVisibileOnly)
Definition: pcbnew.py:11230
def GetConnectivityAlgo(self)
Definition: pcbnew.py:11301
def Update(self, aItem)
Definition: pcbnew.py:11198
def RemoveInvalidRefs(self)
Definition: pcbnew.py:11313
def Remove(self, aItem)
Definition: pcbnew.py:11194
def GetConnectedTracks(self, aItem)
Definition: pcbnew.py:11246
def GetLocalRatsnest(self)
Definition: pcbnew.py:11285
def BlockRatsnestItems(self, aItems)
Definition: pcbnew.py:11297
def IsConnectedOnLayer(self, *args)
Definition: pcbnew.py:11234
def RecalculateRatsnest(self, aCommit=None)
Definition: pcbnew.py:11226
def GetNetclassMap(self)
Definition: pcbnew.py:11321
def ComputeLocalRatsnest(self, *args)
Definition: pcbnew.py:11281
def ClearLocalRatsnest(self)
Definition: pcbnew.py:11273
def FillIsolatedIslandsMap(self, aMap, aConnectivityAlreadyRebuilt=False)
Definition: pcbnew.py:11222
def GetPadCount(self, aNet=-1)
Definition: pcbnew.py:11242
def HideLocalRatsnest(self)
Definition: pcbnew.py:11277
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:11317
def Move(self, aDelta)
Definition: pcbnew.py:11202
def GetFromToCache(self)
Definition: pcbnew.py:11325
def Build(self, *args)
Definition: pcbnew.py:11183
def TestTrackEndpointDangling(self, aTrack, aIgnoreTracksInPads, aPos=None)
Definition: pcbnew.py:11269
def __init__(self, *args)
Definition: pcbnew.py:11176
def PropagateNets(self, aCommit=None)
Definition: pcbnew.py:11218
def MarkItemNetAsDirty(self, aItem)
Definition: pcbnew.py:11309
def GetNodeCount(self, aNet=-1)
Definition: pcbnew.py:11238
def GetConnectedPadsAndVias(self, aItem, pads, vias)
Definition: pcbnew.py:11257
def GetNetItems(self, aNetCode, aTypes)
Definition: pcbnew.py:11293
def GetRatsnestForNet(self, aNet)
Definition: pcbnew.py:11214
def GetConnectedItemsAtAnchor(self, aItem, aAnchor, aTypes, aMaxError=0)
Definition: pcbnew.py:11261
def __call__(self, item1, item2)
Definition: pcbnew.py:1851
def __init__(self)
Definition: pcbnew.py:1855
def __init__(self)
Definition: pcbnew.py:9112
def __init__(self, *args)
Definition: pcbnew.py:10698
def __ne__(self, aOther)
Definition: pcbnew.py:10709
def __eq__(self, aOther)
Definition: pcbnew.py:10705
def __lt__(self, aOther)
Definition: pcbnew.py:10713
def begin(self)
Definition: pcbnew.py:12425
def clear(self)
Definition: pcbnew.py:12441
def resize(self, *args)
Definition: pcbnew.py:12485
def __delslice__(self, i, j)
Definition: pcbnew.py:12379
def end(self)
Definition: pcbnew.py:12429
def front(self)
Definition: pcbnew.py:12473
def assign(self, n, x)
Definition: pcbnew.py:12481
def size(self)
Definition: pcbnew.py:12417
def push_back(self, x)
Definition: pcbnew.py:12469
def swap(self, v)
Definition: pcbnew.py:12421
def get_allocator(self)
Definition: pcbnew.py:12445
def back(self)
Definition: pcbnew.py:12477
def push_front(self, x)
Definition: pcbnew.py:12503
def __getitem__(self, *args)
Definition: pcbnew.py:12390
def pop_front(self)
Definition: pcbnew.py:12499
def erase(self, *args)
Definition: pcbnew.py:12453
def append(self, x)
Definition: pcbnew.py:12409
def __getslice__(self, i, j)
Definition: pcbnew.py:12368
def empty(self)
Definition: pcbnew.py:12413
def __setslice__(self, *args)
Definition: pcbnew.py:12372
def __delitem__(self, *args)
Definition: pcbnew.py:12383
def pop_back(self)
Definition: pcbnew.py:12449
def __nonzero__(self)
Definition: pcbnew.py:12356
def insert(self, *args)
Definition: pcbnew.py:12492
def __init__(self, *args)
Definition: pcbnew.py:12460
def __iter__(self)
Definition: pcbnew.py:12353
def __setitem__(self, *args)
Definition: pcbnew.py:12397
def rbegin(self)
Definition: pcbnew.py:12433
def iterator(self)
Definition: pcbnew.py:12350
def __len__(self)
Definition: pcbnew.py:12364
def __bool__(self)
Definition: pcbnew.py:12360
def rend(self)
Definition: pcbnew.py:12437
def pop(self)
Definition: pcbnew.py:12405
def __init__(self, l=2, r=4)
Definition: pcbnew.py:9262
def GetPrecisionString(self)
Definition: pcbnew.py:9266
def __init__(self, aDiameter, a_NotPlated)
Definition: pcbnew.py:9223
def __truediv__(self, other)
Definition: pcbnew.py:14848
def AsTenthsOfADegree(self)
Definition: pcbnew.py:14722
def __mul__(self, other)
Definition: pcbnew.py:14842
def IsCardinal(self)
Definition: pcbnew.py:14732
def AsRadians(self)
Definition: pcbnew.py:14726
def IsCardinal90(self)
Definition: pcbnew.py:14736
def IsZero(self)
Definition: pcbnew.py:14740
def AsDegrees(self)
Definition: pcbnew.py:14718
def __rmul__(self, other)
Definition: pcbnew.py:14845
def Invert(self)
Definition: pcbnew.py:14756
def NormalizeNegative(self)
Definition: pcbnew.py:14800
def __iadd__(self, aAngle)
Definition: pcbnew.py:14824
def Normalized(self)
Definition: pcbnew.py:14796
def Normalize(self)
Definition: pcbnew.py:14792
def IsVertical(self)
Definition: pcbnew.py:14748
def Normalize90(self)
Definition: pcbnew.py:14804
def Normalize180(self)
Definition: pcbnew.py:14808
def IsParallelTo(self, aAngle)
Definition: pcbnew.py:14752
def __init__(self, *args)
Definition: pcbnew.py:14708
def Normalize720(self)
Definition: pcbnew.py:14812
def __abs__(self)
Definition: pcbnew.py:14851
def __isub__(self, aAngle)
Definition: pcbnew.py:14828
def __sub__(self, other)
Definition: pcbnew.py:14837
def IsHorizontal(self)
Definition: pcbnew.py:14744
def Tan(self)
Definition: pcbnew.py:14768
def Sin(self)
Definition: pcbnew.py:14760
def KeepUpright(self)
Definition: pcbnew.py:14816
def Arctan2(y, x)
Definition: pcbnew.py:14788
def Cos(self)
Definition: pcbnew.py:14764
def Round(self, digits)
Definition: pcbnew.py:14820
def __add__(self, other)
Definition: pcbnew.py:14832
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:15130
def SetCenterX(self, x)
Definition: pcbnew.py:15050
def SetEnd(self, aEnd)
Definition: pcbnew.py:15066
def SHAPE_T_asString(self)
Definition: pcbnew.py:14942
def EndsSwapped(self)
Definition: pcbnew.py:15138
def GetShape(self)
Definition: pcbnew.py:15014
def Similarity(self, aOther)
Definition: pcbnew.py:15245
def SetRight(self, val)
Definition: pcbnew.py:15098
def TransformShapeToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:15237
def ShapeGetMsgPanelInfo(self, aFrame, aList)
Definition: pcbnew.py:15205
def GetWidth(self)
Definition: pcbnew.py:14986
def SetStart(self, aStart)
Definition: pcbnew.py:15034
def GetTopLeft(self)
Definition: pcbnew.py:15082
def GetLineColor(self)
Definition: pcbnew.py:15006
def DupPolyPointsList(self, aBuffer)
Definition: pcbnew.py:15170
def SetBezierC2(self, aPt)
Definition: pcbnew.py:15114
def IsFilled(self)
Definition: pcbnew.py:14954
def SetFillColor(self, aColor)
Definition: pcbnew.py:14978
def SetPolyShape(self, aShape)
Definition: pcbnew.py:15189
def GetBotRight(self)
Definition: pcbnew.py:15086
def GetRadius(self)
Definition: pcbnew.py:15154
def SetArcAngleAndEnd(self, aAngle, aCheckNegativeAngle=False)
Definition: pcbnew.py:15126
def IsProxyItem(self)
Definition: pcbnew.py:14946
def SetArcGeometry(self, aStart, aMid, aEnd)
Definition: pcbnew.py:15158
def GetStartY(self)
Definition: pcbnew.py:15026
def SwapShape(self, aImage)
Definition: pcbnew.py:14934
def GetFillColor(self)
Definition: pcbnew.py:14974
def CalcArcAngles(self, aStartAngle, aEndAngle)
Definition: pcbnew.py:15150
def SetSegmentAngle(self, aAngle)
Definition: pcbnew.py:15217
def SetLineStyle(self, aStyle)
Definition: pcbnew.py:14994
def SetIsProxyItem(self, aIsProxy=True)
Definition: pcbnew.py:14950
def SetWidth(self, aWidth)
Definition: pcbnew.py:14982
def RebuildBezierToSegmentsPointsList(self, aMinSegLen)
Definition: pcbnew.py:15197
def SetRectangle(self, aHeight, aWidth)
Definition: pcbnew.py:15213
def GetRectangleWidth(self)
Definition: pcbnew.py:15233
def SetCenterY(self, y)
Definition: pcbnew.py:15046
def GetStart(self)
Definition: pcbnew.py:15022
def GetEnd(self)
Definition: pcbnew.py:15054
def GetRectangleHeight(self)
Definition: pcbnew.py:15229
def GetEndY(self)
Definition: pcbnew.py:15058
def SetFilled(self, aFlag)
Definition: pcbnew.py:14958
def SetPolyPoints(self, aPoints)
Definition: pcbnew.py:15193
def IsPolyShapeValid(self)
Definition: pcbnew.py:15185
def SetLength(self, aLength)
Definition: pcbnew.py:15209
def GetPointCount(self)
Definition: pcbnew.py:15174
def GetLength(self)
Definition: pcbnew.py:15225
def GetBezierPoints(self)
Definition: pcbnew.py:15166
def MakeEffectiveShapes(self, aEdgeOnly=False)
Definition: pcbnew.py:15201
def GetRectCorners(self)
Definition: pcbnew.py:15146
def IsClosed(self)
Definition: pcbnew.py:14970
def GetPolyShape(self, *args)
Definition: pcbnew.py:15178
def SetStartX(self, x)
Definition: pcbnew.py:15042
def SetRadius(self, aX)
Definition: pcbnew.py:15078
def SetEndX(self, aX)
Definition: pcbnew.py:15074
def SetTop(self, val)
Definition: pcbnew.py:15090
def Compare(self, aOther)
Definition: pcbnew.py:15241
def SetStartY(self, y)
Definition: pcbnew.py:15038
def SetEndY(self, aY)
Definition: pcbnew.py:15070
def GetBezierC2(self)
Definition: pcbnew.py:15118
def SetCenter(self, aCenter)
Definition: pcbnew.py:15122
def GetLineStyle(self)
Definition: pcbnew.py:14998
def GetFriendlyName(self)
Definition: pcbnew.py:15018
def SetBezierC1(self, aPt)
Definition: pcbnew.py:15106
def GetEndX(self)
Definition: pcbnew.py:15062
def SetLeft(self, val)
Definition: pcbnew.py:15094
def GetFillMode(self)
Definition: pcbnew.py:14966
def ShowShape(self)
Definition: pcbnew.py:14938
def __init__(self, aType, aLineWidth, aFill)
Definition: pcbnew.py:14929
def SetShape(self, aShape)
Definition: pcbnew.py:15010
def SetCachedArcData(self, aStart, aMid, aEnd, aCenter)
Definition: pcbnew.py:15162
def SetFillMode(self, aFill)
Definition: pcbnew.py:14962
def IsClockwiseArc(self)
Definition: pcbnew.py:15221
def SetBottom(self, val)
Definition: pcbnew.py:15102
def __eq__(self, aOther)
Definition: pcbnew.py:15249
def GetArcMid(self)
Definition: pcbnew.py:15142
def SetLineColor(self, aColor)
Definition: pcbnew.py:15002
def GetSegmentAngle(self)
Definition: pcbnew.py:15134
def GetStartX(self)
Definition: pcbnew.py:15030
def GetBezierC1(self)
Definition: pcbnew.py:15110
def GetEffectiveWidth(self)
Definition: pcbnew.py:14990
def SetAttributes(self, *args)
Definition: pcbnew.py:2808
def SetTextSize(self, aNewSize, aEnforceMinTextSize=True)
Definition: pcbnew.py:2855
def GetTextStyleName(self)
Definition: pcbnew.py:2944
def GetTextWidth(self)
Definition: pcbnew.py:2867
def GetHyperlink(self)
Definition: pcbnew.py:3012
def GotoPageHref(aDestination)
Definition: pcbnew.py:3035
def SetTextX(self, aX)
Definition: pcbnew.py:2895
def SetText(self, aText)
Definition: pcbnew.py:2692
def GetLinePositions(self, aPositions, aLineCount)
Definition: pcbnew.py:2948
def Offset(self, aOffset)
Definition: pcbnew.py:2903
def GetHorizJustify(self)
Definition: pcbnew.py:2772
def IsDefaultFormatting(self)
Definition: pcbnew.py:2823
def __eq__(self, aRhs)
Definition: pcbnew.py:2996
def SetVertJustify(self, aType)
Definition: pcbnew.py:2776
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:2684
def GetFontName(self)
Definition: pcbnew.py:2835
def Similarity(self, aOther)
Definition: pcbnew.py:2956
def SetMultilineAllowed(self, aAllow)
Definition: pcbnew.py:2760
def GetTextBox(self, aLine=-1, aInvertY=False)
Definition: pcbnew.py:2936
def SetTextThickness(self, aWidth)
Definition: pcbnew.py:2696
def GetTextThickness(self)
Definition: pcbnew.py:2700
def SetupRenderCache(self, aResolvedText, aFont, aAngle, aOffset)
Definition: pcbnew.py:2984
def Replace(self, aSearchData)
Definition: pcbnew.py:2819
def SetTextAngleDegrees(self, aOrientation)
Definition: pcbnew.py:2716
def IsMultilineAllowed(self)
Definition: pcbnew.py:2764
def SetFont(self, aFont)
Definition: pcbnew.py:2827
def IsKeepUpright(self)
Definition: pcbnew.py:2788
def ClearBoundingBoxCache(self)
Definition: pcbnew.py:2976
def SetBold(self, aBold)
Definition: pcbnew.py:2732
def SwapText(self, aTradingPartner)
Definition: pcbnew.py:2800
def SetTextPos(self, aPoint)
Definition: pcbnew.py:2887
def AddRenderCacheGlyph(self, aPoly)
Definition: pcbnew.py:2988
def HasHyperlink(self)
Definition: pcbnew.py:3008
def Empty(self)
Definition: pcbnew.py:2907
def GetAttributes(self)
Definition: pcbnew.py:2815
def SetTextHeight(self, aHeight)
Definition: pcbnew.py:2871
def GetTextAngle(self)
Definition: pcbnew.py:2712
def SetKeepUpright(self, aKeepUpright)
Definition: pcbnew.py:2784
def GetRenderCache(self, *args)
Definition: pcbnew.py:2980
def GetVertJustify(self)
Definition: pcbnew.py:2780
def __gt__(self, aRhs)
Definition: pcbnew.py:3004
def SetVisible(self, aVisible)
Definition: pcbnew.py:2744
def GetTextPos(self)
Definition: pcbnew.py:2891
def SetTextColor(self, aColor)
Definition: pcbnew.py:2879
def SetTextAngle(self, aAngle)
Definition: pcbnew.py:2708
def SwapAttributes(self, aTradingPartner)
Definition: pcbnew.py:2796
def SetFontIndex(self, aIdx)
Definition: pcbnew.py:2839
def ClearRenderCache(self)
Definition: pcbnew.py:2972
def RemoveHyperlink(self)
Definition: pcbnew.py:3020
def GetText(self)
Definition: pcbnew.py:2680
def TextHitTest(self, *args)
Definition: pcbnew.py:2929
def GetLineSpacing(self)
Definition: pcbnew.py:2851
def IsVisible(self)
Definition: pcbnew.py:2748
def IsItalic(self)
Definition: pcbnew.py:2728
def __lt__(self, aRhs)
Definition: pcbnew.py:3000
def Format(self, aFormatter, aNestLevel, aControlBits)
Definition: pcbnew.py:2960
def GetEffectiveTextPenWidth(self, aDefaultPenWidth=0)
Definition: pcbnew.py:2704
def ValidateHyperlink(aURL)
Definition: pcbnew.py:3025
def SetTextY(self, aY)
Definition: pcbnew.py:2899
def SetHyperlink(self, aLink)
Definition: pcbnew.py:3016
def GetDrawPos(self)
Definition: pcbnew.py:2968
def Print(self, aSettings, aOffset, aColor, aDisplay_mode=FILLED)
Definition: pcbnew.py:2921
def SetHorizJustify(self, aType)
Definition: pcbnew.py:2768
def GetFontIndex(self)
Definition: pcbnew.py:2843
def CopyText(self, aSrc)
Definition: pcbnew.py:2804
def GetTextColor(self)
Definition: pcbnew.py:2883
def GetFont(self)
Definition: pcbnew.py:2831
def GetTextAngleDegrees(self)
Definition: pcbnew.py:2720
def __init__(self, *args)
Definition: pcbnew.py:2672
def SetBoldFlag(self, aBold)
Definition: pcbnew.py:2736
def Levenshtein(self, aOther)
Definition: pcbnew.py:2952
def MapVertJustify(aVertJustify)
Definition: pcbnew.py:2917
def HasTextVars(self)
Definition: pcbnew.py:2688
def SetTextWidth(self, aWidth)
Definition: pcbnew.py:2863
def GetTextHeight(self)
Definition: pcbnew.py:2875
def SetMirrored(self, isMirrored)
Definition: pcbnew.py:2752
def GetEffectiveTextShape(self, *args)
Definition: pcbnew.py:2925
def SetItalic(self, aItalic)
Definition: pcbnew.py:2724
def GetTextSize(self)
Definition: pcbnew.py:2859
def IsGotoPageHref(aHref, aDestination=None)
Definition: pcbnew.py:3030
def IsBold(self)
Definition: pcbnew.py:2740
def SetLineSpacing(self, aLineSpacing)
Definition: pcbnew.py:2847
def IsMirrored(self)
Definition: pcbnew.py:2756
def Compare(self, aOther)
Definition: pcbnew.py:2992
def GetDrawRotation(self)
Definition: pcbnew.py:2964
def GetInterline(self)
Definition: pcbnew.py:2940
def MapHorizJustify(aHorizJustify)
Definition: pcbnew.py:2912
def FlipHJustify(self)
Definition: pcbnew.py:2792
def SetRouteModeForOvalHoles(self, aUseRouteModeForOvalHoles)
Definition: pcbnew.py:9346
def SetOptions(self, aMirror, aMinimalHeader, aOffset, aMerge_PTH_NPTH)
Definition: pcbnew.py:9354
def SetFormat(self, *args)
Definition: pcbnew.py:9350
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:9358
def GetOffset(self)
Definition: pcbnew.py:9342
def __init__(self, aPcb)
Definition: pcbnew.py:9337
def ExportVRML_File(self, aProject, aMessages, aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:9193
def __init__(self, aBoard)
Definition: pcbnew.py:9188
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:11908
def iterator(self)
Definition: pcbnew.py:11849
def clear(self)
Definition: pcbnew.py:11940
def front(self)
Definition: pcbnew.py:11972
def pop_front(self)
Definition: pcbnew.py:11998
def end(self)
Definition: pcbnew.py:11928
def rbegin(self)
Definition: pcbnew.py:11932
def pop_back(self)
Definition: pcbnew.py:11948
def empty(self)
Definition: pcbnew.py:11912
def swap(self, v)
Definition: pcbnew.py:11920
def resize(self, *args)
Definition: pcbnew.py:11984
def __len__(self)
Definition: pcbnew.py:11863
def __setitem__(self, *args)
Definition: pcbnew.py:11896
def __setslice__(self, *args)
Definition: pcbnew.py:11871
def push_back(self, x)
Definition: pcbnew.py:11968
def begin(self)
Definition: pcbnew.py:11924
def push_front(self, x)
Definition: pcbnew.py:12002
def __init__(self, *args)
Definition: pcbnew.py:11959
def __iter__(self)
Definition: pcbnew.py:11852
def back(self)
Definition: pcbnew.py:11976
def __bool__(self)
Definition: pcbnew.py:11859
def __getitem__(self, *args)
Definition: pcbnew.py:11889
def assign(self, n, x)
Definition: pcbnew.py:11980
def insert(self, *args)
Definition: pcbnew.py:11991
def get_allocator(self)
Definition: pcbnew.py:11944
def __delitem__(self, *args)
Definition: pcbnew.py:11882
def rend(self)
Definition: pcbnew.py:11936
def __getslice__(self, i, j)
Definition: pcbnew.py:11867
def __delslice__(self, i, j)
Definition: pcbnew.py:11878
def erase(self, *args)
Definition: pcbnew.py:11952
def pop(self)
Definition: pcbnew.py:11904
def size(self)
Definition: pcbnew.py:11916
def __nonzero__(self)
Definition: pcbnew.py:11855
def CheckFootprintAttributes(self, aErrorHandler)
Definition: pcbnew.py:18991
def Models(self, *args)
Definition: pcbnew.py:18773
def IsExcludedFromBOM(self)
Definition: pcbnew.py:19161
def IsExcludedFromPosFiles(self)
Definition: pcbnew.py:19153
def LegacyPadsLocked(self)
Definition: pcbnew.py:18987
def GetFields(self, *args)
Definition: pcbnew.py:19121
def GetPadCount(self, *args)
Definition: pcbnew.py:19205
def GetUniquePadNumbers(self, *args)
Definition: pcbnew.py:19213
def GetFieldsShownText(self)
Definition: pcbnew.py:19318
def CoverageRatio(self, aCollector)
Definition: pcbnew.py:19275
def GetPad(self, *args)
Definition: pcbnew.py:19197
def SetSheetfile(self, aSheetfile)
Definition: pcbnew.py:18852
def MapPadNumbersToNetTieGroups(self)
Definition: pcbnew.py:18943
def GetBoundingBox(self, *args)
Definition: pcbnew.py:18723
def GetAttributes(self)
Definition: pcbnew.py:18907
def Value(self, *args)
Definition: pcbnew.py:19077
def SetAttributes(self, aAttributes)
Definition: pcbnew.py:18911
def GetPrivateLayers(self)
Definition: pcbnew.py:18691
def GetSide(self)
Definition: pcbnew.py:18963
def ClearAllNets(self)
Definition: pcbnew.py:18707
def SetAllowMissingCourtyard(self, aAllow=True)
Definition: pcbnew.py:19173
def FootprintNeedsUpdate(self, aLibFP, aCompareFlags=0, aReporter=None)
Definition: pcbnew.py:19267
def CheckPads(self, aUnitsProvider, aErrorHandler)
Definition: pcbnew.py:18995
def GetSheetfile(self)
Definition: pcbnew.py:18848
def AddNative(self, *args)
Definition: pcbnew.py:18699
def SetFPID(self, aFPID)
Definition: pcbnew.py:18804
def StringLibNameInvalidChars(aUserReadable)
Definition: pcbnew.py:19263
def SetField(self, key, value)
Definition: pcbnew.py:19337
def GetFieldText(self, aFieldName)
Definition: pcbnew.py:19117
def ApplyDefaultSettings(self, board, aStyleFields, aStyleText, aStyleShapes)
Definition: pcbnew.py:19141
def TransformFPTextToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc)
Definition: pcbnew.py:19019
def GetContextualTextVars(self, aVars)
Definition: pcbnew.py:19023
def Footprint(self, *args)
Definition: pcbnew.py:19091
def GetReferenceAsString(self)
Definition: pcbnew.py:19057
def Fields(self, *args)
Definition: pcbnew.py:18734
def NeedsPlaced(self)
Definition: pcbnew.py:18979
def SetKeywords(self, aKeywords)
Definition: pcbnew.py:18828
def MoveAnchorPosition(self, aMoveVector)
Definition: pcbnew.py:18955
def GetTypeName(self)
Definition: pcbnew.py:19225
def FindPadByNumber(self, aPadNumber, aSearchAfterMe=None)
Definition: pcbnew.py:19193
def SetFPIDAsString(self, aFPID)
Definition: pcbnew.py:18812
def TransformFPShapesToPolySet(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIncludeText=True, aIncludeShapes=True, aIncludePrivateItems=False)
Definition: pcbnew.py:19015
def SetReference(self, aReference)
Definition: pcbnew.py:19053
def GetLibDescription(self)
Definition: pcbnew.py:18816
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:18891
def GetCoverageArea(aItem, aCollector)
Definition: pcbnew.py:19280
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:18792
def AutoPositionFields(self)
Definition: pcbnew.py:19221
def GetLink(self)
Definition: pcbnew.py:19233
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:19253
def GetValue(self)
Definition: pcbnew.py:19065
def CheckNetTiePadGroups(self, aErrorHandler)
Definition: pcbnew.py:19007
def RemoveNative(self, *args)
Definition: pcbnew.py:18703
def GetLikelyAttribute(self)
Definition: pcbnew.py:18951
def GetCourtyard(self, aLayer)
Definition: pcbnew.py:19288
def DuplicateItem(self, aItem, aAddToFootprint=False)
Definition: pcbnew.py:19241
def IsConflicting(self)
Definition: pcbnew.py:18967
def HasThroughHolePads(self)
Definition: pcbnew.py:18769
def Zones(self, *args)
Definition: pcbnew.py:18755
def SetValue(self, aValue)
Definition: pcbnew.py:19069
def GetFieldsText(self)
Definition: pcbnew.py:19313
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:18868
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:18872
def SetFlag(self, aFlag)
Definition: pcbnew.py:18915
def GetLocalClearance(self, *args)
Definition: pcbnew.py:18876
def SetIsPlaced(self, isPlaced)
Definition: pcbnew.py:18975
def GetNetTiePadGroups(self)
Definition: pcbnew.py:18931
def GetNetTiePads(self, aPad)
Definition: pcbnew.py:18947
def __init__(self, *args)
Definition: pcbnew.py:18677
def AddNetTiePadGroup(self, aGroup)
Definition: pcbnew.py:18939
def FixUuids(self)
Definition: pcbnew.py:18711
def IsDNP(self)
Definition: pcbnew.py:19177
def ResolveTextVar(self, token, aDepth=0)
Definition: pcbnew.py:19027
def Groups(self, *args)
Definition: pcbnew.py:18762
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:18883
def AllowMissingCourtyard(self)
Definition: pcbnew.py:19169
def GetFieldShownText(self, key)
Definition: pcbnew.py:19330
def CheckShortingPads(self, aErrorHandler)
Definition: pcbnew.py:18999
def GetFieldById(self, aFieldId)
Definition: pcbnew.py:19105
def GetInitialComments(self)
Definition: pcbnew.py:19284
def GetSheetname(self)
Definition: pcbnew.py:18840
def GetNextPadNumber(self, aLastPadName)
Definition: pcbnew.py:19217
def HasFieldByName(self, aFieldName)
Definition: pcbnew.py:19113
def GetValueAsString(self)
Definition: pcbnew.py:19073
def GetReference(self)
Definition: pcbnew.py:19049
def CheckNetTies(self, aErrorHandler)
Definition: pcbnew.py:19003
def Pads(self, *args)
Definition: pcbnew.py:18741
def SetNeedsPlaced(self, needsPlaced)
Definition: pcbnew.py:18983
def GetFPIDAsString(self)
Definition: pcbnew.py:18808
def TransformPadsToPolySet(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aSkipNPTHPadsWihNoCopper=False, aSkipPlatedPads=False, aSkipNonPlatedPads=False)
Definition: pcbnew.py:19011
def GetPads(self, aPadNumber, aIgnore=None)
Definition: pcbnew.py:19201
def GetUniquePadCount(self, *args)
Definition: pcbnew.py:19209
def SetExcludedFromBOM(self, aExclude=True)
Definition: pcbnew.py:19165
def BuildCourtyardCaches(self, aErrorHandler=None)
Definition: pcbnew.py:19296
def GetKeywords(self)
Definition: pcbnew.py:18824
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:19300
def AddField(self, aField)
Definition: pcbnew.py:19129
def SetLink(self, aLink)
Definition: pcbnew.py:19237
def SetFileFormatVersionAtLoad(self, aVersion)
Definition: pcbnew.py:19185
def IncrementReference(self, aDelta)
Definition: pcbnew.py:19061
def SetPath(self, aPath)
Definition: pcbnew.py:18836
def GetFilters(self)
Definition: pcbnew.py:18856
def SetExcludedFromPosFiles(self, aExclude=True)
Definition: pcbnew.py:19157
def SetFilters(self, aFilters)
Definition: pcbnew.py:18860
def GetLayerBoundingBox(self, aLayers)
Definition: pcbnew.py:18730
def GraphicalItems(self, *args)
Definition: pcbnew.py:18748
def GetBoundingHull(self)
Definition: pcbnew.py:18719
def IsBoardOnly(self)
Definition: pcbnew.py:19145
def SetSheetname(self, aSheetname)
Definition: pcbnew.py:18844
def SetOrientation(self, aNewAngle)
Definition: pcbnew.py:18780
def IsNetTie(self)
Definition: pcbnew.py:18927
def GetPath(self)
Definition: pcbnew.py:18832
def SetZoneConnection(self, aType)
Definition: pcbnew.py:18899
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:18887
def SetFields(self, fields)
Definition: pcbnew.py:19348
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:19249
def ClearNetTiePadGroups(self)
Definition: pcbnew.py:18935
def GetOrientationDegrees(self)
Definition: pcbnew.py:18796
def GetFileFormatVersionAtLoad(self)
Definition: pcbnew.py:19189
def Reference(self, *args)
Definition: pcbnew.py:19084
def GetZoneConnection(self)
Definition: pcbnew.py:18903
def IsFlipped(self)
Definition: pcbnew.py:18959
def GetFieldByName(self, aFieldName)
Definition: pcbnew.py:19109
def Add3DModel(self, a3DModel)
Definition: pcbnew.py:19245
def HitTest(self, *args)
Definition: pcbnew.py:19035
def GetFieldCount(self)
Definition: pcbnew.py:19137
def GetFlag(self)
Definition: pcbnew.py:18923
def RemoveField(self, aFieldName)
Definition: pcbnew.py:19133
def SetInitialComments(self, aInitialComments)
Definition: pcbnew.py:19271
def IsPlaced(self)
Definition: pcbnew.py:18971
def HasField(self, key)
Definition: pcbnew.py:19345
def GetOrientation(self)
Definition: pcbnew.py:18784
def SetPrivateLayers(self, aLayers)
Definition: pcbnew.py:18695
def HitTestAccurate(self, aPosition, aAccuracy=0)
Definition: pcbnew.py:19031
def SetLayerAndFlip(self, aLayer)
Definition: pcbnew.py:18788
def SetLibDescription(self, aDesc)
Definition: pcbnew.py:18820
def IncrementFlag(self)
Definition: pcbnew.py:18919
def GetField(self, *args)
Definition: pcbnew.py:19098
def SetDNP(self, aDNP=True)
Definition: pcbnew.py:19181
def IsLibNameValid(aName)
Definition: pcbnew.py:19258
def SetBoardOnly(self, aIsBoardOnly=True)
Definition: pcbnew.py:19149
def HitTestOnLayer(self, *args)
Definition: pcbnew.py:19042
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:18895
def GetFPID(self)
Definition: pcbnew.py:18800
def ClassOf(aItem)
Definition: pcbnew.py:18687
def GetArea(self, aPadding=0)
Definition: pcbnew.py:19229
def GetFpPadsLocalBbox(self)
Definition: pcbnew.py:18715
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:18864
def GetCachedCourtyard(self, aLayer)
Definition: pcbnew.py:19292
def __eq__(self, aOther)
Definition: pcbnew.py:18663
def __init__(self)
Definition: pcbnew.py:18653
def GetFootprint(self)
Definition: pcbnew.py:8178
def __init__(self, aFootprint, aFileName)
Definition: pcbnew.py:8166
def SetFilePath(self, aFilePath)
Definition: pcbnew.py:8174
def GetFileName(self)
Definition: pcbnew.py:8170
def GetFootprints(self)
Definition: pcbnew.py:8208
def __init__(self, aOwner, aLibraryPath)
Definition: pcbnew.py:8192
def Remove(self, aFootprintName)
Definition: pcbnew.py:8220
def IsPath(self, aPath)
Definition: pcbnew.py:8233
def Save(self, aFootprint=None)
Definition: pcbnew.py:8212
def IsWritable(self)
Definition: pcbnew.py:8200
def Exists(self)
Definition: pcbnew.py:8204
def GetPath(self)
Definition: pcbnew.py:8196
def Load(self)
Definition: pcbnew.py:8216
def GetTimestamp(aLibPath)
Definition: pcbnew.py:8225
def IsModified(self)
Definition: pcbnew.py:8229
def SetPath(self, aPath)
Definition: pcbnew.py:8237
def __init__(self)
Definition: pcbnew.py:4809
def __init__(self, page, name, units, default, **kwarg)
Definition: pcbnew.py:4834
def Check(self, min_value=None, max_value=None, multiple=None, info=None)
Definition: pcbnew.py:4868
def SetValue(self, new_value)
Definition: pcbnew.py:4942
def AddError(self, err, info=None)
Definition: pcbnew.py:4859
def CheckParam(self, page, name, **kwarg)
Definition: pcbnew.py:5036
def GetParameterPageName(self, page_n)
Definition: pcbnew.py:5054
def GetParameterValues(self, page_index)
Definition: pcbnew.py:5077
def GetParameterErrors(self, page_index)
Definition: pcbnew.py:5081
def SetParameterValues(self, page_index, list_of_values)
Definition: pcbnew.py:5097
def GetParametersByPageIndex(self, page_index)
Definition: pcbnew.py:5066
def GetParam(self, page, name)
Definition: pcbnew.py:5029
def GetNumParameterPages(self)
Definition: pcbnew.py:5051
def GetParametersByPageName(self, page_name)
Definition: pcbnew.py:5057
def GetParameterNames(self, page_index)
Definition: pcbnew.py:5073
def GetParameterDesignators(self, page_index)
Definition: pcbnew.py:5069
def AddParam(self, page, name, unit, default, **kwarg)
Definition: pcbnew.py:4987
def GetParameterHints(self, page_index)
Definition: pcbnew.py:5089
def GetParameterTypes(self, page_index)
Definition: pcbnew.py:5085
def DefaultVisible()
Definition: pcbnew.py:3395
def Contains(self, aPos)
Definition: pcbnew.py:3386
def set(self, *args)
Definition: pcbnew.py:3378
def __init__(self, *args)
Definition: pcbnew.py:3370
def Seq(self)
Definition: pcbnew.py:3390
def GenDrillReportFile(self, aFullFileName)
Definition: pcbnew.py:9320
def SetMapFileFormat(self, aMapFmt)
Definition: pcbnew.py:9312
def CreateMapFilesSet(self, aPlotDirectory, aReporter=None)
Definition: pcbnew.py:9316
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:9281
def SetPageInfo(self, aPageInfo)
Definition: pcbnew.py:9308
def SetMergeOption(self, aMerge)
Definition: pcbnew.py:9300
def __iter__(self)
Definition: pcbnew.py:12186
def pop_back(self)
Definition: pcbnew.py:12282
def resize(self, *args)
Definition: pcbnew.py:12318
def __bool__(self)
Definition: pcbnew.py:12193
def empty(self)
Definition: pcbnew.py:12246
def append(self, x)
Definition: pcbnew.py:12242
def front(self)
Definition: pcbnew.py:12306
def iterator(self)
Definition: pcbnew.py:12183
def rbegin(self)
Definition: pcbnew.py:12266
def __delitem__(self, *args)
Definition: pcbnew.py:12216
def clear(self)
Definition: pcbnew.py:12274
def __nonzero__(self)
Definition: pcbnew.py:12189
def __getslice__(self, i, j)
Definition: pcbnew.py:12201
def get_allocator(self)
Definition: pcbnew.py:12278
def rend(self)
Definition: pcbnew.py:12270
def swap(self, v)
Definition: pcbnew.py:12254
def insert(self, *args)
Definition: pcbnew.py:12325
def __delslice__(self, i, j)
Definition: pcbnew.py:12212
def begin(self)
Definition: pcbnew.py:12258
def assign(self, n, x)
Definition: pcbnew.py:12314
def size(self)
Definition: pcbnew.py:12250
def pop_front(self)
Definition: pcbnew.py:12332
def __setslice__(self, *args)
Definition: pcbnew.py:12205
def __getitem__(self, *args)
Definition: pcbnew.py:12223
def push_front(self, x)
Definition: pcbnew.py:12336
def back(self)
Definition: pcbnew.py:12310
def __init__(self, *args)
Definition: pcbnew.py:12293
def __len__(self)
Definition: pcbnew.py:12197
def pop(self)
Definition: pcbnew.py:12238
def __setitem__(self, *args)
Definition: pcbnew.py:12230
def erase(self, *args)
Definition: pcbnew.py:12286
def end(self)
Definition: pcbnew.py:12262
def push_back(self, x)
Definition: pcbnew.py:12302
def CreateJobFile(self, aFullFilename)
Definition: pcbnew.py:9430
def __init__(self, aPcb, aReporter=None)
Definition: pcbnew.py:9421
def WriteJSONJobFile(self, aFullFilename)
Definition: pcbnew.py:9434
def AddGbrFile(self, aLayer, aFilename)
Definition: pcbnew.py:9426
def SetFormat(self, aRightDigits=6)
Definition: pcbnew.py:9376
def __init__(self, aPcb)
Definition: pcbnew.py:9371
def SetOptions(self, aOffset)
Definition: pcbnew.py:9380
def CreateDrillandMapFilesSet(self, aPlotDirectory, aGenDrill, aGenMap, aReporter=None)
Definition: pcbnew.py:9384
def get_allocator(self)
Definition: pcbnew.py:12111
def __bool__(self)
Definition: pcbnew.py:12026
def __getitem__(self, *args)
Definition: pcbnew.py:12056
def push_back(self, x)
Definition: pcbnew.py:12135
def __delitem__(self, *args)
Definition: pcbnew.py:12049
def __setitem__(self, *args)
Definition: pcbnew.py:12063
def erase(self, *args)
Definition: pcbnew.py:12119
def size(self)
Definition: pcbnew.py:12083
def __getslice__(self, i, j)
Definition: pcbnew.py:12034
def front(self)
Definition: pcbnew.py:12139
def pop_front(self)
Definition: pcbnew.py:12165
def swap(self, v)
Definition: pcbnew.py:12087
def end(self)
Definition: pcbnew.py:12095
def pop(self)
Definition: pcbnew.py:12071
def insert(self, *args)
Definition: pcbnew.py:12158
def __init__(self, *args)
Definition: pcbnew.py:12126
def __delslice__(self, i, j)
Definition: pcbnew.py:12045
def __nonzero__(self)
Definition: pcbnew.py:12022
def assign(self, n, x)
Definition: pcbnew.py:12147
def push_front(self, x)
Definition: pcbnew.py:12169
def append(self, x)
Definition: pcbnew.py:12075
def __len__(self)
Definition: pcbnew.py:12030
def __iter__(self)
Definition: pcbnew.py:12019
def clear(self)
Definition: pcbnew.py:12107
def resize(self, *args)
Definition: pcbnew.py:12151
def back(self)
Definition: pcbnew.py:12143
def pop_back(self)
Definition: pcbnew.py:12115
def __setslice__(self, *args)
Definition: pcbnew.py:12038
def rend(self)
Definition: pcbnew.py:12103
def empty(self)
Definition: pcbnew.py:12079
def rbegin(self)
Definition: pcbnew.py:12099
def begin(self)
Definition: pcbnew.py:12091
def iterator(self)
Definition: pcbnew.py:12016
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:17755
def __init__(self)
Definition: pcbnew.py:9237
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:9126
def Write(self, aFilename)
Definition: pcbnew.py:9131
def __init__(self)
Definition: pcbnew.py:9407
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:4804
def deregister(self)
Definition: pcbnew.py:4790
def __init__(self)
Definition: pcbnew.py:4762
def register(self)
Definition: pcbnew.py:4765
def clear(self)
Definition: pcbnew.py:17719
def __init__(self)
Definition: pcbnew.py:17715
def ShowType(aType)
Definition: pcbnew.py:17729
def ParseType(aType)
Definition: pcbnew.py:17734
def IsLegacy(self)
Definition: pcbnew.py:7848
def GetSubLibraryName(self)
Definition: pcbnew.py:7816
def GetLibNickname(self)
Definition: pcbnew.py:7792
def SetLibItemName(self, aLibItemName)
Definition: pcbnew.py:7812
def HasIllegalChars(aLibItemName)
Definition: pcbnew.py:7881
def GetUniStringLibId(self)
Definition: pcbnew.py:7832
def SetSubLibraryName(self, aName)
Definition: pcbnew.py:7820
def clear(self)
Definition: pcbnew.py:7852
def GetUniStringSubLibraryName(self)
Definition: pcbnew.py:7824
def __init__(self, *args)
Definition: pcbnew.py:7781
def FindIllegalLibraryNameChar(aLibraryName)
Definition: pcbnew.py:7891
def empty(self)
Definition: pcbnew.py:7856
def __eq__(self, aLibId)
Definition: pcbnew.py:7872
def FixIllegalChars(aLibItemName, aLib)
Definition: pcbnew.py:7886
def __gt__(self, aLibId)
Definition: pcbnew.py:7868
def GetFullLibraryName(self)
Definition: pcbnew.py:7828
def Format(*args)
Definition: pcbnew.py:7837
def IsValid(self)
Definition: pcbnew.py:7844
def Parse(self, aId, aFix=False)
Definition: pcbnew.py:7788
def GetUniStringLibItemName(self)
Definition: pcbnew.py:7808
def GetLibItemName(self)
Definition: pcbnew.py:7804
def __ne__(self, aLibId)
Definition: pcbnew.py:7876
def compare(self, aLibId)
Definition: pcbnew.py:7860
def SetLibNickname(self, aLibNickname)
Definition: pcbnew.py:7800
def GetUniStringLibNickname(self)
Definition: pcbnew.py:7796
def __lt__(self, aLibId)
Definition: pcbnew.py:7864
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:3595
def Rewind(self)
Definition: pcbnew.py:3591
def TestLayers(self, aRhs, aLhs)
Definition: pcbnew.py:3605
def __init__(self, *args)
Definition: pcbnew.py:3584
def __ref__(self)
Definition: pcbnew.py:3601
def BackAssembly()
Definition: pcbnew.py:3650
def Contains(self, aLayer)
Definition: pcbnew.py:3630
def RemoveLayer(self, layer)
Definition: pcbnew.py:3813
def PhysicalLayersMask()
Definition: pcbnew.py:3725
def BackTechMask()
Definition: pcbnew.py:3685
def FmtHex(self)
Definition: pcbnew.py:3775
def addLayer(self, aLayer)
Definition: pcbnew.py:3791
def Seq(self, *args)
Definition: pcbnew.py:3759
def SeqStackupForPlotting(self)
Definition: pcbnew.py:3771
def AddLayer(self, layer)
Definition: pcbnew.py:3807
def SideSpecificMask()
Definition: pcbnew.py:3715
def UIOrder(self)
Definition: pcbnew.py:3755
def ParseHex(self, aStart, aCount)
Definition: pcbnew.py:3779
def AllCuMask(*args)
Definition: pcbnew.py:3655
def AllTechMask()
Definition: pcbnew.py:3695
def addLayerSet(self, aLayerSet)
Definition: pcbnew.py:3799
def AllBoardTechMask()
Definition: pcbnew.py:3700
def AllNonCuMask()
Definition: pcbnew.py:3665
def CuStack(self)
Definition: pcbnew.py:3739
def ForbiddenFootprintLayers()
Definition: pcbnew.py:3735
def removeLayerSet(self, aLayerSet)
Definition: pcbnew.py:3803
def AllLayersMask()
Definition: pcbnew.py:3670
def AddLayerSet(self, layers)
Definition: pcbnew.py:3810
def __init__(self, *args)
Definition: pcbnew.py:3619
def InternalCuMask()
Definition: pcbnew.py:3640
def FrontTechMask()
Definition: pcbnew.py:3675
def TechAndUserUIOrder(self)
Definition: pcbnew.py:3751
def UserDefinedLayers()
Definition: pcbnew.py:3730
def BackBoardTechMask()
Definition: pcbnew.py:3690
def FrontAssembly()
Definition: pcbnew.py:3645
def ExternalCuMask()
Definition: pcbnew.py:3660
def BackMask()
Definition: pcbnew.py:3710
def UserMask()
Definition: pcbnew.py:3720
def FrontMask()
Definition: pcbnew.py:3705
def Users(self)
Definition: pcbnew.py:3747
def ExtractLayer(self)
Definition: pcbnew.py:3787
def FrontBoardTechMask()
Definition: pcbnew.py:3680
def FmtBin(self)
Definition: pcbnew.py:3783
def removeLayer(self, aLayer)
Definition: pcbnew.py:3795
def Name(aLayerId)
Definition: pcbnew.py:3635
def RemoveLayerSet(self, layers)
Definition: pcbnew.py:3816
def Technicals(self, *args)
Definition: pcbnew.py:3743
def SeqStackupTop2Bottom(self, aSelectedLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:3767
def count(self, x)
Definition: pcbnew.py:18597
def has_key(self, key)
Definition: pcbnew.py:18514
def __delitem__(self, key)
Definition: pcbnew.py:18510
def erase(self, *args)
Definition: pcbnew.py:18601
def __contains__(self, key)
Definition: pcbnew.py:18530
def upper_bound(self, x)
Definition: pcbnew.py:18617
def __setitem__(self, *args)
Definition: pcbnew.py:18542
def value_iterator(self)
Definition: pcbnew.py:18538
def __init__(self, *args)
Definition: pcbnew.py:18553
def __getitem__(self, key)
Definition: pcbnew.py:18506
def lower_bound(self, x)
Definition: pcbnew.py:18613
def back(self)
Definition: pcbnew.py:11465
def empty(self)
Definition: pcbnew.py:11401
def __len__(self)
Definition: pcbnew.py:11352
def capacity(self)
Definition: pcbnew.py:11491
def __getslice__(self, i, j)
Definition: pcbnew.py:11356
def pop(self)
Definition: pcbnew.py:11393
def __delitem__(self, *args)
Definition: pcbnew.py:11371
def __nonzero__(self)
Definition: pcbnew.py:11344
def __iter__(self)
Definition: pcbnew.py:11341
def rend(self)
Definition: pcbnew.py:11425
def __init__(self, *args)
Definition: pcbnew.py:11448
def size(self)
Definition: pcbnew.py:11405
def begin(self)
Definition: pcbnew.py:11413
def resize(self, *args)
Definition: pcbnew.py:11473
def front(self)
Definition: pcbnew.py:11461
def append(self, x)
Definition: pcbnew.py:11397
def get_allocator(self)
Definition: pcbnew.py:11433
def swap(self, v)
Definition: pcbnew.py:11409
def __setitem__(self, *args)
Definition: pcbnew.py:11385
def erase(self, *args)
Definition: pcbnew.py:11441
def rbegin(self)
Definition: pcbnew.py:11421
def reserve(self, n)
Definition: pcbnew.py:11487
def __getitem__(self, *args)
Definition: pcbnew.py:11378
def __setslice__(self, *args)
Definition: pcbnew.py:11360
def clear(self)
Definition: pcbnew.py:11429
def push_back(self, x)
Definition: pcbnew.py:11457
def pop_back(self)
Definition: pcbnew.py:11437
def iterator(self)
Definition: pcbnew.py:11338
def insert(self, *args)
Definition: pcbnew.py:11480
def __delslice__(self, i, j)
Definition: pcbnew.py:11367
def assign(self, n, x)
Definition: pcbnew.py:11469
def __bool__(self)
Definition: pcbnew.py:11348
def end(self)
Definition: pcbnew.py:11417
def IsExcluded(self)
Definition: pcbnew.py:2632
def GetBoundingBoxMarker(self)
Definition: pcbnew.py:2652
def HitTestMarker(self, aHitPosition, aAccuracy)
Definition: pcbnew.py:2648
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 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:17265
def HasuViaDiameter(self)
Definition: pcbnew.py:17185
def SetTrackWidth(self, aWidth)
Definition: pcbnew.py:17157
def GetTrackWidth(self)
Definition: pcbnew.py:17153
def GetLineStyle(self)
Definition: pcbnew.py:17277
def SetuViaDiameter(self, aSize)
Definition: pcbnew.py:17193
def __init__(self, aName)
Definition: pcbnew.py:17112
def GetName(self)
Definition: pcbnew.py:17121
def HasDiffPairWidth(self)
Definition: pcbnew.py:17209
def GetClearance(self)
Definition: pcbnew.py:17141
def SetDescription(self, aDesc)
Definition: pcbnew.py:17133
def HasClearance(self)
Definition: pcbnew.py:17137
def SetLineStyle(self, aStyle)
Definition: pcbnew.py:17281
def HasuViaDrill(self)
Definition: pcbnew.py:17197
def GetBusWidth(self)
Definition: pcbnew.py:17261
def SetDiffPairGap(self, aSize)
Definition: pcbnew.py:17229
def GetuViaDrill(self)
Definition: pcbnew.py:17201
def GetViaDrill(self)
Definition: pcbnew.py:17177
def GetDescription(self)
Definition: pcbnew.py:17129
def SetDiffPairViaGap(self, aSize)
Definition: pcbnew.py:17241
def GetDiffPairViaGap(self)
Definition: pcbnew.py:17237
def GetDiffPairWidth(self)
Definition: pcbnew.py:17213
def SetPcbColor(self, aColor)
Definition: pcbnew.py:17249
def HasViaDrill(self)
Definition: pcbnew.py:17173
def SetName(self, aName)
Definition: pcbnew.py:17125
def SetWireWidth(self, aWidth)
Definition: pcbnew.py:17257
def SetSchematicColor(self, aColor)
Definition: pcbnew.py:17273
def HasTrackWidth(self)
Definition: pcbnew.py:17149
def GetSchematicColor(self)
Definition: pcbnew.py:17269
def HasViaDiameter(self)
Definition: pcbnew.py:17161
def SetViaDiameter(self, aDia)
Definition: pcbnew.py:17169
def SetClearance(self, aClearance)
Definition: pcbnew.py:17145
def HasDiffPairViaGap(self)
Definition: pcbnew.py:17233
def GetuViaDiameter(self)
Definition: pcbnew.py:17189
def SetuViaDrill(self, aSize)
Definition: pcbnew.py:17205
def GetPcbColor(self)
Definition: pcbnew.py:17245
def GetClass(self)
Definition: pcbnew.py:17117
def HasDiffPairGap(self)
Definition: pcbnew.py:17221
def SetViaDrill(self, aSize)
Definition: pcbnew.py:17181
def GetDiffPairGap(self)
Definition: pcbnew.py:17225
def GetWireWidth(self)
Definition: pcbnew.py:17253
def GetViaDiameter(self)
Definition: pcbnew.py:17165
def SetDiffPairWidth(self, aSize)
Definition: pcbnew.py:17217
def values(self)
Definition: pcbnew.py:16830
def asdict(self)
Definition: pcbnew.py:16857
def __delitem__(self, key)
Definition: pcbnew.py:16818
def has_key(self, key)
Definition: pcbnew.py:16822
def key_iterator(self)
Definition: pcbnew.py:16842
def clear(self)
Definition: pcbnew.py:16897
def find(self, x)
Definition: pcbnew.py:16917
def __len__(self)
Definition: pcbnew.py:16802
def iterkeys(self)
Definition: pcbnew.py:16807
def empty(self)
Definition: pcbnew.py:16869
def __init__(self, *args)
Definition: pcbnew.py:16861
def __contains__(self, key)
Definition: pcbnew.py:16838
def __setitem__(self, *args)
Definition: pcbnew.py:16850
def iterator(self)
Definition: pcbnew.py:16788
def begin(self)
Definition: pcbnew.py:16881
def __getitem__(self, key)
Definition: pcbnew.py:16814
def upper_bound(self, x)
Definition: pcbnew.py:16925
def __nonzero__(self)
Definition: pcbnew.py:16794
def keys(self)
Definition: pcbnew.py:16826
def erase(self, *args)
Definition: pcbnew.py:16909
def __bool__(self)
Definition: pcbnew.py:16798
def swap(self, v)
Definition: pcbnew.py:16877
def items(self)
Definition: pcbnew.py:16834
def __iter__(self)
Definition: pcbnew.py:16791
def itervalues(self)
Definition: pcbnew.py:16809
def value_iterator(self)
Definition: pcbnew.py:16846
def iteritems(self)
Definition: pcbnew.py:16811
def lower_bound(self, x)
Definition: pcbnew.py:16921
def rbegin(self)
Definition: pcbnew.py:16889
def rend(self)
Definition: pcbnew.py:16893
def get_allocator(self)
Definition: pcbnew.py:16901
def count(self, x)
Definition: pcbnew.py:16905
def size(self)
Definition: pcbnew.py:16873
def HasAutoGeneratedNetname(self)
Definition: pcbnew.py:16596
def GetNetClass(self)
Definition: pcbnew.py:16568
def SetNetname(self, aNewName)
Definition: pcbnew.py:16600
def GetDisplayNetname(self)
Definition: pcbnew.py:16592
def SetNetCode(self, aNetCode)
Definition: pcbnew.py:16580
def SetIsCurrent(self, isCurrent)
Definition: pcbnew.py:16608
def GetShortNetname(self)
Definition: pcbnew.py:16588
def SetNetClass(self, aNetClass)
Definition: pcbnew.py:16564
def GetNetClassSlow(self)
Definition: pcbnew.py:16572
def IsCurrent(self)
Definition: pcbnew.py:16604
def GetNetClassName(self)
Definition: pcbnew.py:16620
def ClassOf(aItem)
Definition: pcbnew.py:16560
def GetParent(self)
Definition: pcbnew.py:16616
def __init__(self, *args)
Definition: pcbnew.py:16554
def GetNetname(self)
Definition: pcbnew.py:16584
def GetNetCode(self)
Definition: pcbnew.py:16576
def Clear(self)
Definition: pcbnew.py:16612
def NetsByNetcode(self)
Definition: pcbnew.py:16959
def __init__(self, aParent)
Definition: pcbnew.py:16939
def GetNetCount(self)
Definition: pcbnew.py:16951
def GetNetItem(self, *args)
Definition: pcbnew.py:16944
def RebuildDisplayNetnames(self)
Definition: pcbnew.py:16963
def NetsByName(self)
Definition: pcbnew.py:16955
def GetParent(self)
Definition: pcbnew.py:16972
def __contains__(self, key)
Definition: pcbnew.py:16687
def __init__(self, *args)
Definition: pcbnew.py:16710
def get_allocator(self)
Definition: pcbnew.py:16750
def __len__(self)
Definition: pcbnew.py:16651
def iteritems(self)
Definition: pcbnew.py:16660
def size(self)
Definition: pcbnew.py:16722
def value_iterator(self)
Definition: pcbnew.py:16695
def find(self, x)
Definition: pcbnew.py:16766
def __iter__(self)
Definition: pcbnew.py:16640
def empty(self)
Definition: pcbnew.py:16718
def __nonzero__(self)
Definition: pcbnew.py:16643
def values(self)
Definition: pcbnew.py:16679
def lower_bound(self, x)
Definition: pcbnew.py:16770
def rbegin(self)
Definition: pcbnew.py:16738
def asdict(self)
Definition: pcbnew.py:16706
def keys(self)
Definition: pcbnew.py:16675
def __delitem__(self, key)
Definition: pcbnew.py:16667
def __getitem__(self, key)
Definition: pcbnew.py:16663
def iterator(self)
Definition: pcbnew.py:16637
def begin(self)
Definition: pcbnew.py:16730
def upper_bound(self, x)
Definition: pcbnew.py:16774
def items(self)
Definition: pcbnew.py:16683
def erase(self, *args)
Definition: pcbnew.py:16758
def rend(self)
Definition: pcbnew.py:16742
def has_key(self, key)
Definition: pcbnew.py:16671
def iterkeys(self)
Definition: pcbnew.py:16656
def count(self, x)
Definition: pcbnew.py:16754
def key_iterator(self)
Definition: pcbnew.py:16691
def swap(self, v)
Definition: pcbnew.py:16726
def itervalues(self)
Definition: pcbnew.py:16658
def clear(self)
Definition: pcbnew.py:16746
def __setitem__(self, *args)
Definition: pcbnew.py:16699
def __bool__(self)
Definition: pcbnew.py:16647
def __ne__(self, aOther)
Definition: pcbnew.py:11096
def ParseBusGroup(aGroup, name, aMemberList)
Definition: pcbnew.py:11114
def GetEffectiveNetClass(self, aNetName)
Definition: pcbnew.py:11104
def __init__(self, aParent, aPath)
Definition: pcbnew.py:11087
def __eq__(self, aOther)
Definition: pcbnew.py:11092
def ParseBusVector(aBus, aName, aMemberList)
Definition: pcbnew.py:11109
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:16362
def rend(self)
Definition: pcbnew.py:16307
def back(self)
Definition: pcbnew.py:16347
def swap(self, v)
Definition: pcbnew.py:16291
def __delitem__(self, *args)
Definition: pcbnew.py:16253
def reserve(self, n)
Definition: pcbnew.py:16369
def capacity(self)
Definition: pcbnew.py:16373
def __getitem__(self, *args)
Definition: pcbnew.py:16260
def empty(self)
Definition: pcbnew.py:16283
def pop(self)
Definition: pcbnew.py:16275
def __getslice__(self, i, j)
Definition: pcbnew.py:16238
def size(self)
Definition: pcbnew.py:16287
def rbegin(self)
Definition: pcbnew.py:16303
def __len__(self)
Definition: pcbnew.py:16234
def __delslice__(self, i, j)
Definition: pcbnew.py:16249
def clear(self)
Definition: pcbnew.py:16311
def __bool__(self)
Definition: pcbnew.py:16230
def __iter__(self)
Definition: pcbnew.py:16223
def append(self, x)
Definition: pcbnew.py:16279
def assign(self, n, x)
Definition: pcbnew.py:16351
def __setitem__(self, *args)
Definition: pcbnew.py:16267
def pop_back(self)
Definition: pcbnew.py:16319
def resize(self, *args)
Definition: pcbnew.py:16355
def front(self)
Definition: pcbnew.py:16343
def begin(self)
Definition: pcbnew.py:16295
def erase(self, *args)
Definition: pcbnew.py:16323
def __init__(self, *args)
Definition: pcbnew.py:16330
def iterator(self)
Definition: pcbnew.py:16220
def push_back(self, x)
Definition: pcbnew.py:16339
def __nonzero__(self)
Definition: pcbnew.py:16226
def end(self)
Definition: pcbnew.py:16299
def get_allocator(self)
Definition: pcbnew.py:16315
def __setslice__(self, *args)
Definition: pcbnew.py:16242
def rbegin(self)
Definition: pcbnew.py:12610
def front(self)
Definition: pcbnew.py:12650
def erase(self, *args)
Definition: pcbnew.py:12630
def append(self, x)
Definition: pcbnew.py:12586
def rend(self)
Definition: pcbnew.py:12614
def end(self)
Definition: pcbnew.py:12606
def pop_back(self)
Definition: pcbnew.py:12626
def resize(self, *args)
Definition: pcbnew.py:12662
def __getslice__(self, i, j)
Definition: pcbnew.py:12545
def empty(self)
Definition: pcbnew.py:12590
def __setitem__(self, *args)
Definition: pcbnew.py:12574
def __nonzero__(self)
Definition: pcbnew.py:12533
def begin(self)
Definition: pcbnew.py:12602
def size(self)
Definition: pcbnew.py:12594
def iterator(self)
Definition: pcbnew.py:12527
def __delitem__(self, *args)
Definition: pcbnew.py:12560
def push_front(self, x)
Definition: pcbnew.py:12680
def __bool__(self)
Definition: pcbnew.py:12537
def insert(self, *args)
Definition: pcbnew.py:12669
def back(self)
Definition: pcbnew.py:12654
def pop_front(self)
Definition: pcbnew.py:12676
def assign(self, n, x)
Definition: pcbnew.py:12658
def push_back(self, x)
Definition: pcbnew.py:12646
def get_allocator(self)
Definition: pcbnew.py:12622
def __delslice__(self, i, j)
Definition: pcbnew.py:12556
def pop(self)
Definition: pcbnew.py:12582
def __len__(self)
Definition: pcbnew.py:12541
def clear(self)
Definition: pcbnew.py:12618
def swap(self, v)
Definition: pcbnew.py:12598
def __init__(self, *args)
Definition: pcbnew.py:12637
def __iter__(self)
Definition: pcbnew.py:12530
def __getitem__(self, *args)
Definition: pcbnew.py:12567
def __setslice__(self, *args)
Definition: pcbnew.py:12549
def GetNumber(self)
Definition: pcbnew.py:12958
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:13376
def GetOrientation(self)
Definition: pcbnew.py:13137
def GetDrillSizeY(self)
Definition: pcbnew.py:13082
def GetRoundRectRadiusRatio(self)
Definition: pcbnew.py:13332
def Recombine(self, aIsDryRun, aMaxError)
Definition: pcbnew.py:13402
def GetChamferPositions(self)
Definition: pcbnew.py:13348
def IsFreePad(self)
Definition: pcbnew.py:12994
def GetLocalZoneConnectionOverride(self, aSource=None)
Definition: pcbnew.py:13272
def GetLocalSpokeWidthOverride(self, aSource=None)
Definition: pcbnew.py:13284
def SetThermalSpokeAngleDegrees(self, aAngle)
Definition: pcbnew.py:13296
def AddPrimitiveShape(self, aPrimitive)
Definition: pcbnew.py:13125
def GetRemoveUnconnected(self)
Definition: pcbnew.py:13364
def SetThermalSpokeAngle(self, aAngle)
Definition: pcbnew.py:13288
def ConnSMDMask()
Definition: pcbnew.py:12927
def GetDelta(self)
Definition: pcbnew.py:13058
def SetSizeY(self, aY)
Definition: pcbnew.py:13046
def GetBoundingRadius(self)
Definition: pcbnew.py:13252
def SetLocalSolderPasteMarginRatio(self, aRatio)
Definition: pcbnew.py:13228
def SetShape(self, aShape)
Definition: pcbnew.py:12998
def SetDrillSizeX(self, aX)
Definition: pcbnew.py:13070
def SetPinType(self, aType)
Definition: pcbnew.py:12974
def GetZoneConnection(self)
Definition: pcbnew.py:13268
def GetPinFunction(self)
Definition: pcbnew.py:12970
def Compare(aPadRef, aPadCmp)
Definition: pcbnew.py:13407
def GetLocalSolderPasteMargin(self)
Definition: pcbnew.py:13216
def IsNoConnectPad(self)
Definition: pcbnew.py:12990
def SetChamferPositions(self, aPositions)
Definition: pcbnew.py:13344
def GetKeepTopBottom(self)
Definition: pcbnew.py:13372
def GetOffset(self)
Definition: pcbnew.py:13090
def SetDrillSizeY(self, aY)
Definition: pcbnew.py:13078
def SetAttribute(self, aAttribute)
Definition: pcbnew.py:13169
def GetPadToDieLength(self)
Definition: pcbnew.py:13193
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:13439
def SetY(self, y)
Definition: pcbnew.py:13022
def GetPrimitives(self)
Definition: pcbnew.py:13109
def SetOrientation(self, aAngle)
Definition: pcbnew.py:13129
def __ne__(self, aOther)
Definition: pcbnew.py:13451
def SameLogicalPadAs(self, aOther)
Definition: pcbnew.py:12982
def SetDirty(self)
Definition: pcbnew.py:13165
def BuildEffectivePolygon(self, *args)
Definition: pcbnew.py:13427
def GetOrientationDegrees(self)
Definition: pcbnew.py:13149
def SetProperty(self, aProperty)
Definition: pcbnew.py:13177
def SetPinFunction(self, aName)
Definition: pcbnew.py:12966
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:13435
def CanHaveNumber(self)
Definition: pcbnew.py:12962
def GetDrillSizeX(self)
Definition: pcbnew.py:13074
def IsFlipped(self)
Definition: pcbnew.py:12950
def SetLocalSolderPasteMargin(self, aMargin)
Definition: pcbnew.py:13220
def GetOwnClearance(self, aLayer, aSource=None)
Definition: pcbnew.py:13232
def GetChamferRectRatio(self)
Definition: pcbnew.py:13340
def SetX(self, x)
Definition: pcbnew.py:13026
def SetKeepTopBottom(self, aSet)
Definition: pcbnew.py:13368
def BuildEffectiveShapes(self, aLayer)
Definition: pcbnew.py:13423
def SetOrientationDegrees(self, aOrientation)
Definition: pcbnew.py:13145
def GetDrillShape(self)
Definition: pcbnew.py:13157
def ShowPadAttr(self)
Definition: pcbnew.py:13415
def TransformHoleToPolygon(self, *args)
Definition: pcbnew.py:13240
def GetAnchorPadShape(self)
Definition: pcbnew.py:13006
def ApertureMask()
Definition: pcbnew.py:12937
def CanFlashLayer(self, aLayer)
Definition: pcbnew.py:13380
def GetRoundRectCornerRadius(self)
Definition: pcbnew.py:13320
def GetSolderPasteMargin(self)
Definition: pcbnew.py:13260
def TransformShapeToPolygon(self, *args)
Definition: pcbnew.py:13236
def GetPadName(self)
Definition: pcbnew.py:13466
def SetDelta(self, aSize)
Definition: pcbnew.py:13054
def UnplatedHoleMask()
Definition: pcbnew.py:12932
def SetCustomShapeInZoneOpt(self, aOption)
Definition: pcbnew.py:13014
def GetThermalGap(self)
Definition: pcbnew.py:13308
def GetLocalSolderPasteMarginRatio(self)
Definition: pcbnew.py:13224
def SetDrillShape(self, aShape)
Definition: pcbnew.py:13153
def GetPrincipalLayer(self)
Definition: pcbnew.py:13384
def SetPadToDieLength(self, aLength)
Definition: pcbnew.py:13189
def GetFPRelativeOrientation(self)
Definition: pcbnew.py:13141
def HitTest(self, *args)
Definition: pcbnew.py:13395
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:13360
def SetThermalGap(self, aGap)
Definition: pcbnew.py:13304
def GetPinType(self)
Definition: pcbnew.py:12978
def MergePrimitivesAsPolygon(self, *args)
Definition: pcbnew.py:13101
def FlashLayer(self, *args)
Definition: pcbnew.py:13388
def SetOffset(self, aOffset)
Definition: pcbnew.py:13086
def SetDrillSize(self, aSize)
Definition: pcbnew.py:13062
def SetPadName(self, aName)
Definition: pcbnew.py:13458
def SetThermalSpokeWidth(self, aWidth)
Definition: pcbnew.py:13276
def GetSubRatsnest(self)
Definition: pcbnew.py:13352
def SetSubRatsnest(self, aSubRatsnest)
Definition: pcbnew.py:13356
def AddPrimitive(self, *args)
Definition: pcbnew.py:13476
def GetCustomShapeAsPolygon(self, layer=UNDEFINED_LAYER)
Definition: pcbnew.py:13509
def GetSizeY(self)
Definition: pcbnew.py:13050
def SetRoundRectCornerRadius(self, aRadius)
Definition: pcbnew.py:13316
def ClonePad(self)
Definition: pcbnew.py:13419
def __init__(self, *args)
Definition: pcbnew.py:12909
def GetSize(self)
Definition: pcbnew.py:13034
def DeletePrimitivesList(self)
Definition: pcbnew.py:13105
def GetProperty(self)
Definition: pcbnew.py:13181
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13244
def AppendPrimitives(self, aPrimitivesList)
Definition: pcbnew.py:13121
def GetLocalSolderMaskMargin(self)
Definition: pcbnew.py:13197
def AddPrimitivePoly(self, *args)
Definition: pcbnew.py:13094
def SetSizeX(self, aX)
Definition: pcbnew.py:13038
def GetThermalSpokeAngleDegrees(self)
Definition: pcbnew.py:13300
def SetChamferRectRatio(self, aChamferScale)
Definition: pcbnew.py:13336
def SMDMask()
Definition: pcbnew.py:12922
def IsDirty(self)
Definition: pcbnew.py:13161
def SetName(self, aName)
Definition: pcbnew.py:13461
def SetRoundRectRadiusRatio(self, aRadiusScale)
Definition: pcbnew.py:13328
def GetAttribute(self)
Definition: pcbnew.py:13173
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:13212
def ImportSettingsFrom(self, aMasterPad)
Definition: pcbnew.py:12946
def SharesNetTieGroup(self, aOther)
Definition: pcbnew.py:12986
def ReplacePrimitives(self, aPrimitivesList)
Definition: pcbnew.py:13117
def SetLocalSolderMaskMargin(self, aMargin)
Definition: pcbnew.py:13201
def PTHMask()
Definition: pcbnew.py:12917
def ShowPadShape(self)
Definition: pcbnew.py:13411
def CheckPad(self, aUnitsProvider, aErrorHandler)
Definition: pcbnew.py:13447
def SetZoneConnection(self, aType)
Definition: pcbnew.py:13264
def GetThermalSpokeWidth(self)
Definition: pcbnew.py:13280
def GetSizeX(self)
Definition: pcbnew.py:13042
def GetName(self)
Definition: pcbnew.py:13469
def SetSize(self, aSize)
Definition: pcbnew.py:13030
def GetCustomShapeInZoneOpt(self)
Definition: pcbnew.py:13010
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:13256
def GetLocalThermalGapOverride(self, aSource=None)
Definition: pcbnew.py:13312
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13431
def ClassOf(aItem)
Definition: pcbnew.py:12942
def GetThermalSpokeAngle(self)
Definition: pcbnew.py:13292
def SetAnchorPadShape(self, aShape)
Definition: pcbnew.py:13018
def GetEffectivePolygon(self, *args)
Definition: pcbnew.py:13248
def GetDrillSize(self)
Definition: pcbnew.py:13066
def FlipPrimitives(self, aFlipLeftRight)
Definition: pcbnew.py:13113
def SetNumber(self, aNumber)
Definition: pcbnew.py:12954
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:13443
def IsAperturePad(self)
Definition: pcbnew.py:13185
def ShapePos(self)
Definition: pcbnew.py:13324
def GetShape(self)
Definition: pcbnew.py:13002
def SetFPRelativeOrientation(self, aAngle)
Definition: pcbnew.py:13133
def GetLocalClearance(self, *args)
Definition: pcbnew.py:13205
def SetMid(self, aMid)
Definition: pcbnew.py:13690
def HitTest(self, *args)
Definition: pcbnew.py:13714
def GetArcAngleStart(self)
Definition: pcbnew.py:13706
def GetMid(self)
Definition: pcbnew.py:13694
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13725
def IsDegenerated(self, aThreshold=5)
Definition: pcbnew.py:13729
def GetAngle(self)
Definition: pcbnew.py:13702
def GetRadius(self)
Definition: pcbnew.py:13698
def IsCCW(self)
Definition: pcbnew.py:13721
def GetArcAngleEnd(self)
Definition: pcbnew.py:13710
def __init__(self, *args)
Definition: pcbnew.py:13678
def ClassOf(aItem)
Definition: pcbnew.py:13686
def SetUnits(self, aUnits)
Definition: pcbnew.py:15769
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:15681
def SetArrowLength(self, aLength)
Definition: pcbnew.py:15845
def GetKeepTextAligned(self)
Definition: pcbnew.py:15825
def ChangeOverrideText(self, aValue)
Definition: pcbnew.py:15717
def SetOverrideTextEnabled(self, aOverride)
Definition: pcbnew.py:15705
def SetTextPositionMode(self, aMode)
Definition: pcbnew.py:15833
def SetOverrideText(self, aValue)
Definition: pcbnew.py:15713
def ChangeSuffix(self, aSuffix)
Definition: pcbnew.py:15761
def ChangePrecision(self, aPrecision)
Definition: pcbnew.py:15809
def GetOverrideTextEnabled(self)
Definition: pcbnew.py:15701
def SetEnd(self, aPoint)
Definition: pcbnew.py:15697
def SetAutoUnits(self, aAuto=True)
Definition: pcbnew.py:15785
def SetMeasuredValue(self, aValue)
Definition: pcbnew.py:15725
def SetSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:15817
def SetPrefix(self, aPrefix)
Definition: pcbnew.py:15745
def GetExtensionOffset(self)
Definition: pcbnew.py:15853
def GetSuppressZeroes(self)
Definition: pcbnew.py:15813
def GetTextPositionMode(self)
Definition: pcbnew.py:15837
def ChangeSuppressZeroes(self, aSuppress)
Definition: pcbnew.py:15821
def SetUnitsFormat(self, aFormat)
Definition: pcbnew.py:15793
def ChangePrefix(self, aPrefix)
Definition: pcbnew.py:15749
def SetLineThickness(self, aWidth)
Definition: pcbnew.py:15861
def GetMeasuredValue(self)
Definition: pcbnew.py:15721
def SetKeepTextAligned(self, aKeepAligned)
Definition: pcbnew.py:15829
def SetExtensionOffset(self, aOffset)
Definition: pcbnew.py:15849
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:15884
def Mirror(self, axis_pos, aMirrorLeftRight=False)
Definition: pcbnew.py:15869
def ChangeUnitsMode(self, aMode)
Definition: pcbnew.py:15781
def HitTest(self, *args)
Definition: pcbnew.py:15873
def GetLineThickness(self)
Definition: pcbnew.py:15857
def SetPrecision(self, aPrecision)
Definition: pcbnew.py:15805
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15880
def ChangeUnitsFormat(self, aFormat)
Definition: pcbnew.py:15797
def SetStart(self, aPoint)
Definition: pcbnew.py:15689
def SetUnitsMode(self, aMode)
Definition: pcbnew.py:15777
def SetSuffix(self, aSuffix)
Definition: pcbnew.py:15757
def SetExtensionHeight(self, aHeight)
Definition: pcbnew.py:15936
def ClassOf(aItem)
Definition: pcbnew.py:15904
def GetCrossbarEnd(self)
Definition: pcbnew.py:15916
def GetCrossbarStart(self)
Definition: pcbnew.py:15912
def UpdateHeight(self, aCrossbarStart, aCrossbarEnd)
Definition: pcbnew.py:15932
def SetHeight(self, aHeight)
Definition: pcbnew.py:15920
def Mirror(self, axis_pos, aMirrorLeftRight=False)
Definition: pcbnew.py:15908
def __init__(self, aParent, aType=PCB_DIM_ALIGNED_T)
Definition: pcbnew.py:15898
def GetExtensionHeight(self)
Definition: pcbnew.py:15940
def ChangeHeight(self, aHeight)
Definition: pcbnew.py:15928
def ChangeExtensionHeight(self, aHeight)
Definition: pcbnew.py:15944
def ClassOf(aItem)
Definition: pcbnew.py:16083
def __init__(self, aParent)
Definition: pcbnew.py:16078
def ClassOf(aItem)
Definition: pcbnew.py:16048
def __init__(self, aParent)
Definition: pcbnew.py:16043
def ChangeTextBorder(self, aBorder)
Definition: pcbnew.py:16060
def SetTextBorder(self, aBorder)
Definition: pcbnew.py:16052
def GetTextBorder(self)
Definition: pcbnew.py:16056
def __init__(self, aParent)
Definition: pcbnew.py:15969
def SetOrientation(self, aOrientation)
Definition: pcbnew.py:15983
def Mirror(self, axis_pos, aMirrorLeftRight=False)
Definition: pcbnew.py:15979
def SetLeaderLength(self, aLength)
Definition: pcbnew.py:16013
def __init__(self, aParent)
Definition: pcbnew.py:16004
def GetLeaderLength(self)
Definition: pcbnew.py:16017
def ClassOf(aItem)
Definition: pcbnew.py:16009
def ChangeLeaderLength(self, aLength)
Definition: pcbnew.py:16021
def __nonzero__(self)
Definition: pcbnew.py:12700
def swap(self, v)
Definition: pcbnew.py:12765
def __getitem__(self, *args)
Definition: pcbnew.py:12734
def empty(self)
Definition: pcbnew.py:12757
def __init__(self, *args)
Definition: pcbnew.py:12804
def __len__(self)
Definition: pcbnew.py:12708
def rend(self)
Definition: pcbnew.py:12781
def __getslice__(self, i, j)
Definition: pcbnew.py:12712
def __delitem__(self, *args)
Definition: pcbnew.py:12727
def iterator(self)
Definition: pcbnew.py:12694
def rbegin(self)
Definition: pcbnew.py:12777
def __setslice__(self, *args)
Definition: pcbnew.py:12716
def begin(self)
Definition: pcbnew.py:12769
def size(self)
Definition: pcbnew.py:12761
def end(self)
Definition: pcbnew.py:12773
def __iter__(self)
Definition: pcbnew.py:12697
def clear(self)
Definition: pcbnew.py:12785
def __bool__(self)
Definition: pcbnew.py:12704
def back(self)
Definition: pcbnew.py:12821
def resize(self, *args)
Definition: pcbnew.py:12829
def push_back(self, x)
Definition: pcbnew.py:12813
def assign(self, n, x)
Definition: pcbnew.py:12825
def insert(self, *args)
Definition: pcbnew.py:12836
def push_front(self, x)
Definition: pcbnew.py:12847
def pop_back(self)
Definition: pcbnew.py:12793
def pop_front(self)
Definition: pcbnew.py:12843
def front(self)
Definition: pcbnew.py:12817
def get_allocator(self)
Definition: pcbnew.py:12789
def pop(self)
Definition: pcbnew.py:12749
def erase(self, *args)
Definition: pcbnew.py:12797
def __setitem__(self, *args)
Definition: pcbnew.py:12741
def __delslice__(self, i, j)
Definition: pcbnew.py:12723
def append(self, x)
Definition: pcbnew.py:12753
def CloneField(self)
Definition: pcbnew.py:15596
def SetId(self, aId)
Definition: pcbnew.py:15616
def __init__(self, *args)
Definition: pcbnew.py:15560
def ClassOf(aItem)
Definition: pcbnew.py:15568
def GetName(self, aUseDefaultName=True)
Definition: pcbnew.py:15600
def IsDatasheet(self)
Definition: pcbnew.py:15584
def GetCanonicalName(self)
Definition: pcbnew.py:15604
def IsReference(self)
Definition: pcbnew.py:15572
def GetId(self)
Definition: pcbnew.py:15612
def IsMandatoryField(self)
Definition: pcbnew.py:15588
def IsValue(self)
Definition: pcbnew.py:15576
def SetName(self, aName)
Definition: pcbnew.py:15608
def IsFootprint(self)
Definition: pcbnew.py:15580
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15592
def TopLevelGroup(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17332
def IsGroupableType(aType)
Definition: pcbnew.py:17369
def DeepDuplicate(self)
Definition: pcbnew.py:17345
def RemoveAll(self)
Definition: pcbnew.py:17327
def SetName(self, aName)
Definition: pcbnew.py:17308
def WithinScope(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17337
def GetName(self)
Definition: pcbnew.py:17304
def ClassOf(aItem)
Definition: pcbnew.py:17300
def RunOnDescendants(self, aFunction, aDepth=0)
Definition: pcbnew.py:17364
def AddItem(self, aItem)
Definition: pcbnew.py:17319
def RemoveItem(self, aItem)
Definition: pcbnew.py:17323
def __init__(self, aParent)
Definition: pcbnew.py:17295
def DeepClone(self)
Definition: pcbnew.py:17341
def HitTest(self, *args)
Definition: pcbnew.py:17349
def GetItems(self, *args)
Definition: pcbnew.py:17312
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:17360
def GetItemsDeque(self)
Definition: pcbnew.py:17373
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17356
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:8275
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8283
def GetLibraryDesc(self)
Definition: pcbnew.py:8259
def Parse(self, aClipboardSourceInput)
Definition: pcbnew.py:8332
def GetStringOutput(self, doClear)
Definition: pcbnew.py:8324
def SaveBoard(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8263
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:8291
def DeleteLibrary(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8307
def GetLibraryFileDesc(self)
Definition: pcbnew.py:8255
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8279
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:8295
def DoLoad(self, aReader, aAppendToMe, aProperties, aProgressReporter, aLineCount)
Definition: pcbnew.py:8271
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8299
def __init__(self, *args)
Definition: pcbnew.py:8315
def IsLibraryWritable(self, aLibraryPath)
Definition: pcbnew.py:8311
def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None)
Definition: pcbnew.py:8267
def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None)
Definition: pcbnew.py:8287
def Format(self, aItem, aNestLevel=0)
Definition: pcbnew.py:8320
def CreateLibrary(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8303
def SetOutputFormatter(self, aFormatter)
Definition: pcbnew.py:8328
def GuessPluginTypeFromLibPath(aLibPath, aCtl=0)
Definition: pcbnew.py:7990
def PluginFind(aFileType)
Definition: pcbnew.py:7970
def FindPluginTypeFromBoardPath(aFileName, aCtl=0)
Definition: pcbnew.py:7985
def EnumFromStr(aFileType)
Definition: pcbnew.py:7980
def ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath)
Definition: pcbnew.py:8005
def Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:7995
def Save(aFileType, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8000
def __init__(self)
Definition: pcbnew.py:8009
def ShowType(aFileType)
Definition: pcbnew.py:7975
def FootprintExists(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8110
def FootprintLoad(self, aLibraryPath, aFootprintName, aKeepUUID=False, aProperties=None)
Definition: pcbnew.py:8102
def footprintPyEnumerate(self, aLibraryPath, aExitOnError)
Definition: pcbnew.py:8127
def CanReadBoard(self, aFileName)
Definition: pcbnew.py:8062
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:8054
def GetBoardFileDesc(self)
Definition: pcbnew.py:8058
def GetLibraryOptions(self, aListToAppendTo)
Definition: pcbnew.py:8122
def IsFootprintLibWritable(self, aLibraryPath)
Definition: pcbnew.py:8143
def PrefetchLib(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8094
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8118
def FootprintLibDelete(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8139
def FootprintLibCreate(self, aLibraryPath, aProperties=None)
Definition: pcbnew.py:8135
def LoadBoard(self, aFileName, aAppendToMe, aProperties=None, aProject=None)
Definition: pcbnew.py:8074
def GetImportedCachedLibraryFootprints(self)
Definition: pcbnew.py:8078
def SetQueryUserCallback(self, aCallback)
Definition: pcbnew.py:8070
def GetEnumeratedFootprint(self, aLibraryPath, aFootprintName, aProperties=None)
Definition: pcbnew.py:8106
def SaveBoard(self, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8082
def ImportFootprint(self, aFootprintPath, aFootprintNameOut, aProperties=None)
Definition: pcbnew.py:8098
def GetLibraryTimestamp(self, aLibraryPath)
Definition: pcbnew.py:8090
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None)
Definition: pcbnew.py:8114
def FootprintEnumerate(self, aFootprintNames, aLibraryPath, aBestEfforts, aProperties=None)
Definition: pcbnew.py:8086
def CanReadFootprint(self, aFileName)
Definition: pcbnew.py:8066
def __init__(self, aItem, aPos, aLayer=F_Cu)
Definition: pcbnew.py:16103
def SetZoom(self, aZoomFactor)
Definition: pcbnew.py:16134
def HitTest(self, aPosition, aAccuracy=0)
Definition: pcbnew.py:16122
def Serialize(self)
Definition: pcbnew.py:16113
def GetColorLayer(self)
Definition: pcbnew.py:16126
def ClassOf(aItem)
Definition: pcbnew.py:16109
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16130
def Deserialize(data)
Definition: pcbnew.py:16118
def SetFineScaleAdjustY(self, aVal)
Definition: pcbnew.py:8505
def ColorSettings(self)
Definition: pcbnew.py:8445
def GetDashedLineGapRatio(self)
Definition: pcbnew.py:8773
def GetPlotViaOnMaskLayer(self)
Definition: pcbnew.py:8597
def GetDrillMarksType(self)
Definition: pcbnew.py:8485
def GetDisableGerberMacros(self)
Definition: pcbnew.py:8629
def GetTextMode(self)
Definition: pcbnew.py:8453
def GetPlotReference(self)
Definition: pcbnew.py:8573
def SetPlotReference(self, aFlag)
Definition: pcbnew.py:8569
def SetLayerSelection(self, aSelection)
Definition: pcbnew.py:8697
def GetLayerSelection(self)
Definition: pcbnew.py:8701
def GetWidthAdjust(self)
Definition: pcbnew.py:8517
def GetUseGerberX2format(self)
Definition: pcbnew.py:8637
def SetColorSettings(self, aSettings)
Definition: pcbnew.py:8441
def SetDashedLineGapRatio(self, aVal)
Definition: pcbnew.py:8769
def SetA4Output(self, aForce)
Definition: pcbnew.py:8729
def GetScale(self)
Definition: pcbnew.py:8493
def SetWidthAdjust(self, aVal)
Definition: pcbnew.py:8513
def GetSketchPadsOnFabLayers(self)
Definition: pcbnew.py:8541
def SetUseGerberProtelExtensions(self, aUse)
Definition: pcbnew.py:8657
def SetUseGerberAttributes(self, aUse)
Definition: pcbnew.py:8781
def SetSketchPadLineWidth(self, aWidth)
Definition: pcbnew.py:8545
def SetDXFPlotUnits(self, aUnit)
Definition: pcbnew.py:8473
def GetFineScaleAdjustY(self)
Definition: pcbnew.py:8509
def GetSketchPadLineWidth(self)
Definition: pcbnew.py:8549
def SetFormat(self, aFormat)
Definition: pcbnew.py:8609
def SetSkipPlotNPTH_Pads(self, aSkip)
Definition: pcbnew.py:8421
def SetPlotMode(self, aPlotMode)
Definition: pcbnew.py:8457
def SetScaleSelection(self, aSelection)
Definition: pcbnew.py:8721
def SetFineScaleAdjustX(self, aVal)
Definition: pcbnew.py:8497
def SetBlackAndWhite(self, blackAndWhite)
Definition: pcbnew.py:8681
def GetScaleSelection(self)
Definition: pcbnew.py:8725
def GetAutoScale(self)
Definition: pcbnew.py:8525
def SetHPGLPenNum(self, aVal)
Definition: pcbnew.py:8753
def GetA4Output(self)
Definition: pcbnew.py:8733
def GetMirror(self)
Definition: pcbnew.py:8533
def SetDashedLineDashRatio(self, aVal)
Definition: pcbnew.py:8761
def GetGerberPrecision(self)
Definition: pcbnew.py:8669
def SetUseGerberX2format(self, aUse)
Definition: pcbnew.py:8633
def SetTextMode(self, aVal)
Definition: pcbnew.py:8449
def SetPlotViaOnMaskLayer(self, aFlag)
Definition: pcbnew.py:8593
def GetPlotInvisibleText(self)
Definition: pcbnew.py:8557
def GetFormat(self)
Definition: pcbnew.py:8613
def SetScale(self, aVal)
Definition: pcbnew.py:8489
def SetSvgPrecision(self, aPrecision)
Definition: pcbnew.py:8673
def __init__(self)
Definition: pcbnew.py:8417
def SetPlotFPText(self, aFlag)
Definition: pcbnew.py:8577
def IsSameAs(self, aPcbPlotParams)
Definition: pcbnew.py:8437
def SetUseAuxOrigin(self, aAux)
Definition: pcbnew.py:8713
def GetHPGLPenNum(self)
Definition: pcbnew.py:8757
def GetNegative(self)
Definition: pcbnew.py:8589
def SetSubtractMaskFromSilk(self, aSubtract)
Definition: pcbnew.py:8689
def SetAutoScale(self, aFlag)
Definition: pcbnew.py:8521
def GetPlotFrameRef(self)
Definition: pcbnew.py:8605
def GetDXFPlotPolygonMode(self)
Definition: pcbnew.py:8469
def GetIncludeGerberNetlistInfo(self)
Definition: pcbnew.py:8645
def SetMirror(self, aFlag)
Definition: pcbnew.py:8529
def GetSvgPrecision(self)
Definition: pcbnew.py:8677
def GetUseAuxOrigin(self)
Definition: pcbnew.py:8717
def SetDrillMarksType(self, aVal)
Definition: pcbnew.py:8481
def GetFineScaleAdjustX(self)
Definition: pcbnew.py:8501
def GetCreateGerberJobFile(self)
Definition: pcbnew.py:8653
def GetOutputDirectory(self)
Definition: pcbnew.py:8621
def GetHPGLPenSpeed(self)
Definition: pcbnew.py:8745
def SetPlotFrameRef(self, aFlag)
Definition: pcbnew.py:8601
def SetPlotInvisibleText(self, aFlag)
Definition: pcbnew.py:8553
def GetDXFPlotUnits(self)
Definition: pcbnew.py:8477
def GetDashedLineDashRatio(self)
Definition: pcbnew.py:8765
def SetPlotOnAllLayersSelection(self, aSelection)
Definition: pcbnew.py:8705
def SetIncludeGerberNetlistInfo(self, aUse)
Definition: pcbnew.py:8641
def SetDisableGerberMacros(self, aDisable)
Definition: pcbnew.py:8625
def SetCreateGerberJobFile(self, aCreate)
Definition: pcbnew.py:8649
def SetGerberPrecision(self, aPrecision)
Definition: pcbnew.py:8665
def GetPlotValue(self)
Definition: pcbnew.py:8565
def SetSketchPadsOnFabLayers(self, aFlag)
Definition: pcbnew.py:8537
def GetHPGLPenDiameter(self)
Definition: pcbnew.py:8737
def GetBlackAndWhite(self)
Definition: pcbnew.py:8685
def GetUseGerberProtelExtensions(self)
Definition: pcbnew.py:8661
def GetSubtractMaskFromSilk(self)
Definition: pcbnew.py:8693
def SetDXFPlotPolygonMode(self, aFlag)
Definition: pcbnew.py:8465
def GetPlotFPText(self)
Definition: pcbnew.py:8581
def Parse(self, aParser)
Definition: pcbnew.py:8433
def GetPlotOnAllLayersSelection(self)
Definition: pcbnew.py:8709
def SetOutputDirectory(self, aDir)
Definition: pcbnew.py:8617
def SetHPGLPenSpeed(self, aValue)
Definition: pcbnew.py:8749
def Format(self, aFormatter, aNestLevel, aControl=0)
Definition: pcbnew.py:8429
def SetPlotValue(self, aFlag)
Definition: pcbnew.py:8561
def SetNegative(self, aFlag)
Definition: pcbnew.py:8585
def GetPlotMode(self)
Definition: pcbnew.py:8461
def SetHPGLPenDiameter(self, aValue)
Definition: pcbnew.py:8741
def GetSkipPlotNPTH_Pads(self)
Definition: pcbnew.py:8425
def __init__(self, *args)
Definition: pcbnew.py:17407
def ReadImageFile(self, *args)
Definition: pcbnew.py:17448
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:17444
def SetImageScale(self, aScale)
Definition: pcbnew.py:17427
def HitTest(self, *args)
Definition: pcbnew.py:17455
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:17440
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15287
def GetCorners(self)
Definition: pcbnew.py:15283
def __init__(self, *args)
Definition: pcbnew.py:15262
def GetConnectionPoints(self)
Definition: pcbnew.py:15279
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15314
def SetIsProxyItem(self, aIsProxy=True)
Definition: pcbnew.py:15291
def GetFriendlyName(self)
Definition: pcbnew.py:15275
def GetArcAngleStart(self)
Definition: pcbnew.py:15318
def Scale(self, aScale)
Definition: pcbnew.py:15306
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:15310
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:15302
def GetShapeStr(self)
Definition: pcbnew.py:15322
def HitTest(self, *args)
Definition: pcbnew.py:15295
def ClassOf(aItem)
Definition: pcbnew.py:15271
def GetShape(self)
Definition: pcbnew.py:16172
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:16199
def __init__(self, *args)
Definition: pcbnew.py:16155
def ClassOf(aItem)
Definition: pcbnew.py:16164
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:16203
def HitTest(self, *args)
Definition: pcbnew.py:16192
def SetWidth(self, aWidth)
Definition: pcbnew.py:16184
def GetWidth(self)
Definition: pcbnew.py:16188
def SetSize(self, aSize)
Definition: pcbnew.py:16176
def SetShape(self, aShape)
Definition: pcbnew.py:16168
def GetSize(self)
Definition: pcbnew.py:16180
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15466
def SetBorderWidth(self, aSize)
Definition: pcbnew.py:15482
def GetAnchorAndOppositeCorner(self)
Definition: pcbnew.py:15447
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:15462
def GetDrawPos(self, *args)
Definition: pcbnew.py:15436
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15470
def GetFriendlyName(self)
Definition: pcbnew.py:15428
def ClassOf(aItem)
Definition: pcbnew.py:15424
def GetBorderWidth(self)
Definition: pcbnew.py:15486
def HitTest(self, *args)
Definition: pcbnew.py:15451
def GetTextMargin(self)
Definition: pcbnew.py:15432
def SetBorderEnabled(self, enabled)
Definition: pcbnew.py:15478
def __init__(self, parent)
Definition: pcbnew.py:15418
def IsBorderEnabled(self)
Definition: pcbnew.py:15474
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:15443
def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
Definition: pcbnew.py:15458
def GetShownText(self, aAllowExtraText, aDepth=0)
Definition: pcbnew.py:15356
def ClassOf(aItem)
Definition: pcbnew.py:15348
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aMaxError, aErrorLoc, aIgnoreLineWidth=False)
Definition: pcbnew.py:15382
def GetTextTypeDescription(self)
Definition: pcbnew.py:15390
def HitTest(self, *args)
Definition: pcbnew.py:15371
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:15360
def KeepUpright(self)
Definition: pcbnew.py:15352
def __init__(self, *args)
Definition: pcbnew.py:15339
def TextHitTest(self, *args)
Definition: pcbnew.py:15364
def TransformTextToPolySet(self, aBuffer, aClearance, aMaxError, aErrorLoc)
Definition: pcbnew.py:15378
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:15386
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:15394
def __init__(self, aParent, idtype=PCB_TRACE_T)
Definition: pcbnew.py:13572
def ClassOf(aItem)
Definition: pcbnew.py:13568
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13632
def GetEndX(self)
Definition: pcbnew.py:13612
def IsPointOnEnds(self, point, min_dist=0)
Definition: pcbnew.py:13636
def ApproxCollinear(self, aTrack)
Definition: pcbnew.py:13651
def SetWidth(self, aWidth)
Definition: pcbnew.py:13580
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:13628
def GetEndPoint(self, aEndPoint)
Definition: pcbnew.py:13620
def GetStart(self)
Definition: pcbnew.py:13600
def SetStart(self, aStart)
Definition: pcbnew.py:13596
def Mirror(self, aCentre, aMirrorAroundXAxis)
Definition: pcbnew.py:13576
def SetEndX(self, aX)
Definition: pcbnew.py:13604
def GetEnd(self)
Definition: pcbnew.py:13592
def IsNull(self)
Definition: pcbnew.py:13640
def GetLength(self)
Definition: pcbnew.py:13624
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13659
def HitTest(self, *args)
Definition: pcbnew.py:13644
def SetEnd(self, aEnd)
Definition: pcbnew.py:13588
def GetWidthConstraint(self, aSource=None)
Definition: pcbnew.py:13655
def GetWidth(self)
Definition: pcbnew.py:13584
def SetEndY(self, aY)
Definition: pcbnew.py:13608
def GetEndY(self)
Definition: pcbnew.py:13616
def LayerPair(self, top_layer, bottom_layer)
Definition: pcbnew.py:13791
def ClassOf(aItem)
Definition: pcbnew.py:13748
def SetKeepStartEnd(self, aSet)
Definition: pcbnew.py:13830
def SanitizeLayers(self)
Definition: pcbnew.py:13803
def GetOutermostConnectedLayers(self, aTopmost, aBottommost)
Definition: pcbnew.py:13849
def GetMinAnnulus(self, aLayer, aSource)
Definition: pcbnew.py:13818
def ConditionallyFlashed(self, aLayer)
Definition: pcbnew.py:13838
def GetKeepStartEnd(self)
Definition: pcbnew.py:13834
def TopLayer(self)
Definition: pcbnew.py:13795
def HitTest(self, *args)
Definition: pcbnew.py:13807
def SetViaType(self, aViaType)
Definition: pcbnew.py:13763
def SetZoneLayerOverride(self, aLayer, aOverride)
Definition: pcbnew.py:13889
def GetDrillConstraint(self, aSource=None)
Definition: pcbnew.py:13771
def GetRemoveUnconnected(self)
Definition: pcbnew.py:13826
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13814
def SetDrill(self, aDrill)
Definition: pcbnew.py:13853
def GetWidthConstraint(self, aSource=None)
Definition: pcbnew.py:13767
def GetSolderMaskExpansion(self)
Definition: pcbnew.py:13775
def SetBottomLayer(self, aLayer)
Definition: pcbnew.py:13783
def GetIsFree(self)
Definition: pcbnew.py:13869
def FlashLayer(self, *args)
Definition: pcbnew.py:13842
def GetViaType(self)
Definition: pcbnew.py:13759
def ClearZoneLayerOverrides(self)
Definition: pcbnew.py:13881
def __init__(self, *args)
Definition: pcbnew.py:13752
def SetRemoveUnconnected(self, aSet)
Definition: pcbnew.py:13822
def BottomLayer(self)
Definition: pcbnew.py:13799
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:13877
def GetZoneLayerOverride(self, aLayer)
Definition: pcbnew.py:13885
def GetDrillValue(self)
Definition: pcbnew.py:13861
def SetDrillDefault(self)
Definition: pcbnew.py:13865
def SetLayerPair(self, aTopLayer, aBottomLayer)
Definition: pcbnew.py:13779
def GetDrill(self)
Definition: pcbnew.py:13857
def SetTopLayer(self, aLayer)
Definition: pcbnew.py:13787
def SetIsFree(self, aFree=True)
Definition: pcbnew.py:13873
def GetFootprintCount(self)
Definition: pcbnew.py:9156
def __init__(self, aBoard, aUnitsMM, aOnlySMD, aExcludeAllTH, aExcludeDNP, aTopSide, aBottomSide, aFormatCSV, aUseAuxOrigin, aNegateBottomX)
Definition: pcbnew.py:9144
def MoveTo(self, pos)
Definition: pcbnew.py:8948
def FlashPadTrapez(self, aPadPos, aCorners, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:9018
def Bookmark(self, *args)
Definition: pcbnew.py:9042
def SetNegative(self, aNegative)
Definition: pcbnew.py:8845
def SetTextMode(self, mode)
Definition: pcbnew.py:9056
def SetRenderSettings(self, aSettings)
Definition: pcbnew.py:8857
def FlashPadRect(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:9006
def SetCurrentLineWidth(self, width, aData=None)
Definition: pcbnew.py:8873
def FlashPadOval(self, aPadPos, aSize, aPadOrient, aTraceMode, aData)
Definition: pcbnew.py:9002
def ThickRect(self, p1, p2, width, tracemode, aData)
Definition: pcbnew.py:8986
def ThickCircle(self, pos, diametre, width, tracemode, aData)
Definition: pcbnew.py:8990
def LineTo(self, pos)
Definition: pcbnew.py:8952
def GetPlotOffsetUserUnits(self)
Definition: pcbnew.py:9076
def Marker(self, position, diametre, aShapeId)
Definition: pcbnew.py:9048
def SetCreator(self, aCreator)
Definition: pcbnew.py:8889
def EndBlock(self, aData)
Definition: pcbnew.py:9072
def StartBlock(self, aData)
Definition: pcbnew.py:9068
def SetViewport(self, aOffset, aIusPerDecimil, aScale, aMirror)
Definition: pcbnew.py:8905
def GetPlotterType(self)
Definition: pcbnew.py:8833
def Text(self, aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aPenWidth, aItalic, aBold, aMultilineAllowed, aFont, aFontMetrics, aData=None)
Definition: pcbnew.py:9026
def HyperlinkBox(self, aBox, aDestinationURL)
Definition: pcbnew.py:9034
def PenTo(self, pos, plume)
Definition: pcbnew.py:8944
def ClearHeaderLinesList(self)
Definition: pcbnew.py:8901
def GetPlotterArcLowDef(self)
Definition: pcbnew.py:8917
def PlotPoly(self, *args)
Definition: pcbnew.py:8964
def StartPlot(self, aPageNumber)
Definition: pcbnew.py:8837
def FlashRegularPolygon(self, aShapePos, aDiameter, aCornerCount, aOrient, aTraceMode, aData)
Definition: pcbnew.py:9022
def FlashPadCustom(self, aPadPos, aSize, aPadOrient, aPolygons, aTraceMode, aData)
Definition: pcbnew.py:9014
def GetColorMode(self)
Definition: pcbnew.py:8853
def BezierCurve(self, *args)
Definition: pcbnew.py:8940
def PlotText(self, aPos, aColor, aText, aAttributes, aFont, aFontMetrics, aData=None)
Definition: pcbnew.py:9030
def GetCurrentLineWidth(self)
Definition: pcbnew.py:8877
def FlashPadRoundRect(self, aPadPos, aSize, aCornerRadius, aOrient, aTraceMode, aData)
Definition: pcbnew.py:9010
def PlotImage(self, aImage, aPos, aScaleFactor)
Definition: pcbnew.py:8971
def ThickArc(self, *args)
Definition: pcbnew.py:8979
def Arc(self, *args)
Definition: pcbnew.py:8933
def Circle(self, *args)
Definition: pcbnew.py:8929
def RenderSettings(self)
Definition: pcbnew.py:8861
def SetPageSettings(self, aPageSettings)
Definition: pcbnew.py:8865
def SetDash(self, aLineWidth, aLineStyle)
Definition: pcbnew.py:8885
def AddLineToHeader(self, aExtraString)
Definition: pcbnew.py:8897
def SetSvgCoordinatesFormat(self, aPrecision)
Definition: pcbnew.py:9064
def HyperlinkMenu(self, aBox, aDestURLs)
Definition: pcbnew.py:9038
def Rect(self, *args)
Definition: pcbnew.py:8925
def FlashPadCircle(self, aPadPos, aDiameter, aTraceMode, aData)
Definition: pcbnew.py:8998
def SetLayerPolarity(self, aPositive)
Definition: pcbnew.py:9052
def SetColor(self, color)
Definition: pcbnew.py:8881
def FinishTo(self, pos)
Definition: pcbnew.py:8956
def EndPlot(self)
Definition: pcbnew.py:8841
def FilledCircle(self, pos, diametre, tracemode, aData)
Definition: pcbnew.py:8994
def GetPlotterArcHighDef(self)
Definition: pcbnew.py:8921
def PenFinish(self)
Definition: pcbnew.py:8960
def ThickSegment(self, start, end, width, tracemode, aData)
Definition: pcbnew.py:8975
def GetIUsPerDecimil(self)
Definition: pcbnew.py:8913
def SetTitle(self, aTitle)
Definition: pcbnew.py:8893
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:8824
def OpenFile(self, aFullFilename)
Definition: pcbnew.py:8909
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:8849
def PageSettings(self)
Definition: pcbnew.py:8869
def SetGerberCoordinatesFormat(self, aResolution, aUseInches=False)
Definition: pcbnew.py:9060
def OpenPlotfile(self, *args)
Definition: pcbnew.py:8370
def GetPlotOptions(self)
Definition: pcbnew.py:8350
def GetPlotDirName(self)
Definition: pcbnew.py:8386
def PlotLayer(self)
Definition: pcbnew.py:8374
def GetColorMode(self)
Definition: pcbnew.py:8394
def ClosePlot(self)
Definition: pcbnew.py:8366
def GetLayer(self)
Definition: pcbnew.py:8358
def __init__(self, aBoard)
Definition: pcbnew.py:8345
def GetPlotter(self)
Definition: pcbnew.py:8398
def SetColorMode(self, aColorMode)
Definition: pcbnew.py:8390
def SetLayer(self, aLayer)
Definition: pcbnew.py:8354
def GetPlotFileName(self)
Definition: pcbnew.py:8382
def IsPlotOpen(self)
Definition: pcbnew.py:8362
def PlotLayers(self, aLayerSequence)
Definition: pcbnew.py:8378
def __eq__(self, other)
Definition: pcbnew.py:17666
def __eq__(self, other)
Definition: pcbnew.py:17646
def __eq__(self, other)
Definition: pcbnew.py:17687
def deregister_action(wizard)
Definition: pcbnew.py:19698
def TCoef(self, aP)
Definition: pcbnew.py:5970
def Collide(self, aSeg, aClearance, aActual=None)
Definition: pcbnew.py:5920
def __lt__(self, aSeg)
Definition: pcbnew.py:5997
def Overlaps(self, aSeg)
Definition: pcbnew.py:5958
def LineProject(self, aP)
Definition: pcbnew.py:5873
def Contains(self, *args)
Definition: pcbnew.py:5978
def __eq__(self, aSeg)
Definition: pcbnew.py:5860
def ReflectPoint(self, aP)
Definition: pcbnew.py:5896
def LineDistance(self, aP, aDetermineSide=False)
Definition: pcbnew.py:5881
def CanonicalCoefs(self, qA, qB, qC)
Definition: pcbnew.py:5938
def Reversed(self)
Definition: pcbnew.py:5989
def __init__(self, *args)
Definition: pcbnew.py:5850
def Intersects(self, aSeg)
Definition: pcbnew.py:5904
def SquaredDistance(self, *args)
Definition: pcbnew.py:5924
def __ne__(self, aSeg)
Definition: pcbnew.py:5864
def Angle(self, aOther)
Definition: pcbnew.py:5885
def Collinear(self, aSeg)
Definition: pcbnew.py:5942
def Length(self)
Definition: pcbnew.py:5962
def Reverse(self)
Definition: pcbnew.py:5985
def NearestPoint(self, *args)
Definition: pcbnew.py:5889
def Square(a)
Definition: pcbnew.py:5869
def Intersect(self, aSeg, aIgnoreEndpoints=False, aLines=False)
Definition: pcbnew.py:5900
def Index(self)
Definition: pcbnew.py:5974
def Side(self, aP)
Definition: pcbnew.py:5877
def Distance(self, *args)
Definition: pcbnew.py:5931
def SquaredLength(self)
Definition: pcbnew.py:5966
def ApproxCollinear(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5946
def ParallelSeg(self, aP)
Definition: pcbnew.py:5916
def IntersectLines(self, aSeg)
Definition: pcbnew.py:5908
def PerpendicularSeg(self, aP)
Definition: pcbnew.py:5912
def ApproxPerpendicular(self, aSeg)
Definition: pcbnew.py:5954
def Center(self)
Definition: pcbnew.py:5993
def ApproxParallel(self, aSeg, aDistanceThreshold=1)
Definition: pcbnew.py:5950
def AddNewColorSettings(self, aFilename)
Definition: pcbnew.py:4028
def SetMigrateLibraryTables(self, aMigrate=True)
Definition: pcbnew.py:4052
def GetPreviousVersionPaths(self, aName=None)
Definition: pcbnew.py:4056
def GetPathForSettingsFile(self, aSettings)
Definition: pcbnew.py:4040
def IsProjectOpen(self)
Definition: pcbnew.py:4072
def Save(self, *args)
Definition: pcbnew.py:4005
def GetColorSettings(self, *args)
Definition: pcbnew.py:4016
def GetColorSettingsList(self)
Definition: pcbnew.py:4020
def SaveColorSettings(self, *args)
Definition: pcbnew.py:4024
def Load(self, *args)
Definition: pcbnew.py:3998
def GetProject(self, aFullPath)
Definition: pcbnew.py:4080
def GetMigratedColorSettings(self)
Definition: pcbnew.py:4032
def IsSettingsPathValid(aPath)
Definition: pcbnew.py:4113
def MigrateIfNeeded(self)
Definition: pcbnew.py:4044
def UnloadProject(self, aProject, aSave=True)
Definition: pcbnew.py:4068
def TriggerBackupIfNeeded(self, aReporter)
Definition: pcbnew.py:4108
def GetCommonSettings(self)
Definition: pcbnew.py:4036
def __init__(self, aHeadless=False)
Definition: pcbnew.py:3985
def BackupProject(self, aReporter)
Definition: pcbnew.py:4104
def LoadProject(self, aFullPath, aSetActive=True)
Definition: pcbnew.py:4064
def FlushAndRelease(self, aSettings, aSave=True)
Definition: pcbnew.py:4012
def GetOpenProjects(self)
Definition: pcbnew.py:4084
def SaveProjectAs(self, aFullPath, aProject=None)
Definition: pcbnew.py:4092
def SetKiway(self, aKiway)
Definition: pcbnew.py:3994
def SaveProjectCopy(self, aFullPath, aProject=None)
Definition: pcbnew.py:4096
def SetMigrationSource(self, aSource)
Definition: pcbnew.py:4048
def SaveProject(self, *args)
Definition: pcbnew.py:4088
def GetProjectBackupsPath(self)
Definition: pcbnew.py:4100
def ReloadColorSettings(self)
Definition: pcbnew.py:4060
def BBox(self, aClearance=0)
Definition: pcbnew.py:6264
def GetRadius(self)
Definition: pcbnew.py:6311
def IntersectLine(self, aSeg, aIpsBuffer)
Definition: pcbnew.py:6280
def SetWidth(self, aWidth)
Definition: pcbnew.py:6288
def GetWidth(self)
Definition: pcbnew.py:6292
def Intersect(self, aArc, aIpsBuffer)
Definition: pcbnew.py:6284
def DefaultAccuracyForPCB()
Definition: pcbnew.py:6336
def Mirror(self, *args)
Definition: pcbnew.py:6296
def GetP1(self)
Definition: pcbnew.py:6252
def Collide(self, *args)
Definition: pcbnew.py:6272
def GetCentralAngle(self)
Definition: pcbnew.py:6319
def IsClockwise(self)
Definition: pcbnew.py:6352
def GetCenter(self)
Definition: pcbnew.py:6260
def __eq__(self, aArc)
Definition: pcbnew.py:6344
def GetChord(self)
Definition: pcbnew.py:6315
def Reversed(self)
Definition: pcbnew.py:6307
def IsCCW(self)
Definition: pcbnew.py:6348
def GetLength(self)
Definition: pcbnew.py:6331
def ConvertToPolyline(self, *args)
Definition: pcbnew.py:6340
def NearestPoint(self, aP)
Definition: pcbnew.py:6268
def Reverse(self)
Definition: pcbnew.py:6303
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:6235
def GetP0(self)
Definition: pcbnew.py:6248
def GetArcMid(self)
Definition: pcbnew.py:6256
def GetStartAngle(self)
Definition: pcbnew.py:6323
def GetEndAngle(self)
Definition: pcbnew.py:6327
def ConstructFromStartEndCenter(self, aStart, aEnd, aCenter, aClockwise=False, aWidth=0)
Definition: pcbnew.py:6244
def ConstructFromStartEndAngle(self, aStart, aEnd, aAngle, aWidth=0)
Definition: pcbnew.py:6240
def GetIndexableSubshapes(self, aSubshapes)
Definition: pcbnew.py:6060
def __init__(self, aType)
Definition: pcbnew.py:6039
def Type(self)
Definition: pcbnew.py:6044
def GetIndexableSubshapeCount(self)
Definition: pcbnew.py:6056
def HasIndexableSubshapes(self)
Definition: pcbnew.py:6052
def TypeName(self)
Definition: pcbnew.py:6048
def GetRadius(self)
Definition: pcbnew.py:6395
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:6383
def SetCenter(self, aCenter)
Definition: pcbnew.py:6391
def __init__(self, *args)
Definition: pcbnew.py:6369
def SetRadius(self, aRadius)
Definition: pcbnew.py:6387
def BBox(self, aClearance=0)
Definition: pcbnew.py:6379
def GetCircle(self)
Definition: pcbnew.py:6403
def Rotate(self, *args)
Definition: pcbnew.py:6407
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6411
def GetCenter(self)
Definition: pcbnew.py:6399
def __init__(self, *args)
Definition: pcbnew.py:6424
def UniqueSubshape(self)
Definition: pcbnew.py:6483
def BBox(self, aClearance=0)
Definition: pcbnew.py:6453
def Collide(self, *args)
Definition: pcbnew.py:6441
def Rotate(self, *args)
Definition: pcbnew.py:6479
def GetSubshapes(self)
Definition: pcbnew.py:6487
def Distance(self, *args)
Definition: pcbnew.py:6457
def Shapes(self)
Definition: pcbnew.py:6449
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6437
def AddShape(self, *args)
Definition: pcbnew.py:6464
def SquaredDistance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:6187
def EdgeContainingPoint(self, aP, aAccuracy=0)
Definition: pcbnew.py:6199
def PointOnEdge(self, aP, aAccuracy=0)
Definition: pcbnew.py:6195
def GetSegment(self, aIndex)
Definition: pcbnew.py:6207
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:6175
def GetPoint(self, aIndex)
Definition: pcbnew.py:6203
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:6191
def Collide(self, *args)
Definition: pcbnew.py:6180
def SegmentCount(self)
Definition: pcbnew.py:6555
def CheckClearance(self, aP, aDist)
Definition: pcbnew.py:6697
def Find(self, aP, aThreshold=0)
Definition: pcbnew.py:6670
def PointCount(self)
Definition: pcbnew.py:6571
def Slice(self, aStartIndex, aEndIndex=-1)
Definition: pcbnew.py:6678
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6716
def CLastPoint(self)
Definition: pcbnew.py:6599
def Remove(self, *args)
Definition: pcbnew.py:6659
def RemoveShape(self, aPointIndex)
Definition: pcbnew.py:6666
def SetPoint(self, aIndex, aPos)
Definition: pcbnew.py:6587
def SelfIntersecting(self)
Definition: pcbnew.py:6701
def NextShape(self, aPointIndex)
Definition: pcbnew.py:6583
def Simplify(self, aMaxError=0)
Definition: pcbnew.py:6567
def ArcIndex(self, aSegment)
Definition: pcbnew.py:6762
def CSegment(self, aIndex)
Definition: pcbnew.py:6579
def Collide(self, *args)
Definition: pcbnew.py:6532
def SetClosed(self, aClosed)
Definition: pcbnew.py:6543
def ShapeCount(self)
Definition: pcbnew.py:6559
def IsArcStart(self, aIndex)
Definition: pcbnew.py:6782
def NearestSegment(self, aP)
Definition: pcbnew.py:6705
def Distance(self, *args)
Definition: pcbnew.py:6790
def ReservePoints(self, aSize)
Definition: pcbnew.py:6631
def GenerateBBoxCache(self)
Definition: pcbnew.py:6615
def CPoint(self, aIndex)
Definition: pcbnew.py:6591
def Append(self, *args)
Definition: pcbnew.py:6635
def PointAlong(self, aPathLength)
Definition: pcbnew.py:6739
def SetWidth(self, aWidth)
Definition: pcbnew.py:6547
def IsPtOnArc(self, aPtIndex)
Definition: pcbnew.py:6774
def Intersect(self, *args)
Definition: pcbnew.py:6686
def NearestPoint(self, *args)
Definition: pcbnew.py:6709
def Split(self, *args)
Definition: pcbnew.py:6747
def Area(self, aAbsolute=True)
Definition: pcbnew.py:6743
def Rotate(self, *args)
Definition: pcbnew.py:6735
def Arc(self, aArc)
Definition: pcbnew.py:6766
def __ne__(self, aRhs)
Definition: pcbnew.py:6720
def Insert(self, *args)
Definition: pcbnew.py:6645
def OffsetLine(self, aAmount, aCornerStrategy, aMaxError, aLeft, aRight, aSimplify=False)
Definition: pcbnew.py:6754
def CompareGeometry(self, aOther)
Definition: pcbnew.py:6724
def BBox(self, aClearance=0)
Definition: pcbnew.py:6611
def Replace(self, *args)
Definition: pcbnew.py:6652
def RemoveDuplicatePoints(self)
Definition: pcbnew.py:6563
def Intersects(self, aChain)
Definition: pcbnew.py:6682
def Mirror(self, *args)
Definition: pcbnew.py:6728
def IsSharedPt(self, aIndex)
Definition: pcbnew.py:6770
def IsArcSegment(self, aSegment)
Definition: pcbnew.py:6778
def PathLength(self, aP, aIndex=-1)
Definition: pcbnew.py:6693
def IsArcEnd(self, aIndex)
Definition: pcbnew.py:6786
def FindSegment(self, aP, aThreshold=1)
Definition: pcbnew.py:6674
def __init__(self, *args)
Definition: pcbnew.py:6519
def Segment(self, aIndex)
Definition: pcbnew.py:6575
def NormalizeAreaOutlines(self)
Definition: pcbnew.py:7116
def CVertex(self, *args)
Definition: pcbnew.py:6890
def SquaredDistance(self, *args)
Definition: pcbnew.py:7241
def IsTriangulationUpToDate(self)
Definition: pcbnew.py:6821
def Contains(self, aP, aSubpolyIndex=-1, aAccuracy=0, aUseBBoxCaches=False)
Definition: pcbnew.py:7168
def BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False)
Definition: pcbnew.py:7257
def IsPolygonSelfIntersecting(self, aPolygonIndex)
Definition: pcbnew.py:6902
def IsVertexInHole(self, aGlobalIdx)
Definition: pcbnew.py:7252
def VertexCount(self, aOutline=-1, aHole=-1)
Definition: pcbnew.py:6918
def OutlineCount(self)
Definition: pcbnew.py:6914
def IterateFromVertexWithHoles(self, aGlobalIdx)
Definition: pcbnew.py:7006
def BooleanXor(self, *args)
Definition: pcbnew.py:7065
def FilletPolygon(self, aRadius, aErrorMax, aIndex)
Definition: pcbnew.py:7222
def IsSelfIntersecting(self)
Definition: pcbnew.py:6906
def CollideVertex(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:7148
def Fracture(self, aFastMode)
Definition: pcbnew.py:7092
def TotalVertices(self)
Definition: pcbnew.py:7202
def RemoveAllContours(self)
Definition: pcbnew.py:7183
def SquaredDistanceToSeg(self, aSegment, aNearest=None)
Definition: pcbnew.py:7248
def SetVertex(self, *args)
Definition: pcbnew.py:7195
def HoleCount(self, aOutline)
Definition: pcbnew.py:6926
def CIterateWithHoles(self, *args)
Definition: pcbnew.py:6999
def CloneDropTriangulation(self)
Definition: pcbnew.py:6837
def Collide(self, *args)
Definition: pcbnew.py:7140
def BooleanAdd(self, *args)
Definition: pcbnew.py:7044
def BuildBBoxCaches(self)
Definition: pcbnew.py:7160
def RemoveNullSegments(self)
Definition: pcbnew.py:7191
def Iterate(self, *args)
Definition: pcbnew.py:6976
def HasTouchingHoles(self)
Definition: pcbnew.py:7104
def Inflate(self, aAmount, aCornerStrategy, aMaxError, aSimplify=False)
Definition: pcbnew.py:7076
def ChamferPolygon(self, aDistance, aIndex)
Definition: pcbnew.py:7218
def NewHole(self, aOutline=-1)
Definition: pcbnew.py:6845
def CacheTriangulation(self, aPartition=True, aSimplify=False)
Definition: pcbnew.py:6817
def ArcCount(self)
Definition: pcbnew.py:6865
def OffsetLineChain(self, aLine, aAmount, aCornerStrategy, aMaxError, aSimplify)
Definition: pcbnew.py:7084
def Unfracture(self, aFastMode)
Definition: pcbnew.py:7096
def FullPointCount(self)
Definition: pcbnew.py:6922
def RemoveContour(self, aContourIdx, aPolygonIdx=-1)
Definition: pcbnew.py:7187
def InflateWithLinkedHoles(self, aFactor, aCornerStrategy, aMaxError, aFastMode)
Definition: pcbnew.py:7088
def NewOutline(self)
Definition: pcbnew.py:6841
def Simplify(self, aFastMode)
Definition: pcbnew.py:7108
def AddHole(self, aHole, aOutline=-1)
Definition: pcbnew.py:6853
def SquaredDistanceToPolygon(self, *args)
Definition: pcbnew.py:7234
def IterateSegments(self, *args)
Definition: pcbnew.py:7010
def COutline(self, aIndex)
Definition: pcbnew.py:6960
def BBox(self, aClearance=0)
Definition: pcbnew.py:7132
def InsertVertex(self, aGlobalIndex, aNewVertex)
Definition: pcbnew.py:6886
def AddOutline(self, aOutline)
Definition: pcbnew.py:6849
def __init__(self, *args)
Definition: pcbnew.py:6806
def Hole(self, aOutline, aHole)
Definition: pcbnew.py:6945
def GetNeighbourIndexes(self, aGlobalIndex, aPrevious, aNext)
Definition: pcbnew.py:6898
def IterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:7026
def Rotate(self, *args)
Definition: pcbnew.py:7128
def GetArcs(self, aArcBuffer)
Definition: pcbnew.py:6869
def RemoveVertex(self, *args)
Definition: pcbnew.py:7176
def UpdateTriangulationDataHash(self)
Definition: pcbnew.py:7214
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:7156
def Append(self, *args)
Definition: pcbnew.py:6877
def Outline(self, *args)
Definition: pcbnew.py:6930
def BooleanSubtract(self, *args)
Definition: pcbnew.py:7051
def CPolygon(self, aIndex)
Definition: pcbnew.py:6968
def RebuildHolesFromContours(self)
Definition: pcbnew.py:7072
def GetHash(self)
Definition: pcbnew.py:6825
def Fillet(self, aRadius, aErrorMax)
Definition: pcbnew.py:7230
def Deflate(self, aAmount, aCornerStrategy, aMaxError)
Definition: pcbnew.py:7080
def UnitSet(self, aPolygonIndex)
Definition: pcbnew.py:6941
def Mirror(self, *args)
Definition: pcbnew.py:7124
def CIterateSegmentsWithHoles(self, *args)
Definition: pcbnew.py:7033
def SimplifyOutlines(self, aMaxError=0)
Definition: pcbnew.py:7112
def CHole(self, aOutline, aHole)
Definition: pcbnew.py:6964
def DeletePolygon(self, aIdx)
Definition: pcbnew.py:7206
def GetRelativeIndices(self, aGlobalIdx, aRelativeIndices)
Definition: pcbnew.py:6829
def TriangulatedPolygon(self, aIndex)
Definition: pcbnew.py:6956
def CIterateSegments(self, *args)
Definition: pcbnew.py:7018
def DeletePolygonAndTriangulationData(self, aIdx, aUpdateHash=True)
Definition: pcbnew.py:7210
def BooleanIntersection(self, *args)
Definition: pcbnew.py:7058
def AddPolygon(self, apolygon)
Definition: pcbnew.py:6857
def IterateWithHoles(self, *args)
Definition: pcbnew.py:6984
def Chamfer(self, aDistance)
Definition: pcbnew.py:7226
def HasHoles(self)
Definition: pcbnew.py:7100
def ClearArcs(self)
Definition: pcbnew.py:6873
def Subset(self, aFirstPolygon, aLastPolygon)
Definition: pcbnew.py:6937
def IsEmpty(self)
Definition: pcbnew.py:7172
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7120
def TriangulatedPolyCount(self)
Definition: pcbnew.py:6910
def PointOnEdge(self, aP, aAccuracy=0)
Definition: pcbnew.py:7136
def BBoxFromCaches(self)
Definition: pcbnew.py:7164
def Polygon(self, *args)
Definition: pcbnew.py:6949
def GetGlobalIndex(self, aRelativeIndices, aGlobalIdx)
Definition: pcbnew.py:6833
def CollideEdge(self, aPoint, aClosestVertex=None, aClearance=0)
Definition: pcbnew.py:7152
def CIterate(self, *args)
Definition: pcbnew.py:6991
def CPolygons(self)
Definition: pcbnew.py:6972
def GetWidth(self)
Definition: pcbnew.py:7308
def Diagonal(self)
Definition: pcbnew.py:7288
def Collide(self, *args)
Definition: pcbnew.py:7292
def __init__(self, *args)
Definition: pcbnew.py:7274
def GetPosition(self)
Definition: pcbnew.py:7300
def GetSize(self)
Definition: pcbnew.py:7304
def Rotate(self, *args)
Definition: pcbnew.py:7316
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7324
def Outline(self)
Definition: pcbnew.py:7320
def BBox(self, aClearance=0)
Definition: pcbnew.py:7284
def GetHeight(self)
Definition: pcbnew.py:7312
def SetWidth(self, aWidth)
Definition: pcbnew.py:7368
def Collide(self, *args)
Definition: pcbnew.py:7351
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:7384
def BBox(self, aClearance=0)
Definition: pcbnew.py:7347
def SetSeg(self, aSeg)
Definition: pcbnew.py:7360
def __init__(self, *args)
Definition: pcbnew.py:7338
def GetWidth(self)
Definition: pcbnew.py:7372
def GetSeg(self)
Definition: pcbnew.py:7364
def Is45Degree(self, *args)
Definition: pcbnew.py:7380
def Rotate(self, *args)
Definition: pcbnew.py:7376
def BBox(self, aClearance=0)
Definition: pcbnew.py:7409
def Clear(self)
Definition: pcbnew.py:7405
def Collide(self, aSeg, aClearance=0, aActual=None, aLocation=None)
Definition: pcbnew.py:7436
def Vertices(self)
Definition: pcbnew.py:7425
def PointCount(self)
Definition: pcbnew.py:7413
def CDPoint(self, aIndex)
Definition: pcbnew.py:7421
def CPoint(self, aIndex)
Definition: pcbnew.py:7417
def Rotate(self, *args)
Definition: pcbnew.py:7440
def Append(self, *args)
Definition: pcbnew.py:7429
def __init__(self, *args)
Definition: pcbnew.py:7397
def GetClearance(self, aOther)
Definition: pcbnew.py:6083
def TransformToPolygon(self, aBuffer, aError, aErrorLoc)
Definition: pcbnew.py:6120
def PointInside(self, aPt, aAccuracy=0, aUseBBoxCache=False)
Definition: pcbnew.py:6116
def Distance(self, aP)
Definition: pcbnew.py:6108
def Parse(self, aStream)
Definition: pcbnew.py:6136
def BBox(self, aClearance=0)
Definition: pcbnew.py:6100
def Centre(self)
Definition: pcbnew.py:6104
def __init__(self, *args, **kwargs)
Definition: pcbnew.py:6072
def Move(self, aVector)
Definition: pcbnew.py:6128
def Rotate(self, *args)
Definition: pcbnew.py:6124
def IsSolid(self)
Definition: pcbnew.py:6132
def Cast(self)
Definition: pcbnew.py:6144
def Format(self, aCplusPlus=True)
Definition: pcbnew.py:6140
def IsNull(self)
Definition: pcbnew.py:6087
def SquaredDistance(self, aP, aOutlineOnly=False)
Definition: pcbnew.py:6112
def Clone(self)
Definition: pcbnew.py:6079
def Collide(self, *args)
Definition: pcbnew.py:6091
def __init__(self, *args)
Definition: pcbnew.py:17030
def iterator(self)
Definition: pcbnew.py:16992
def count(self, x)
Definition: pcbnew.py:17054
def upper_bound(self, x)
Definition: pcbnew.py:17090
def append(self, x)
Definition: pcbnew.py:17010
def insert(self, __x)
Definition: pcbnew.py:17098
def __nonzero__(self)
Definition: pcbnew.py:16998
def __getitem__(self, i)
Definition: pcbnew.py:17018
def end(self)
Definition: pcbnew.py:17062
def lower_bound(self, x)
Definition: pcbnew.py:17086
def add(self, x)
Definition: pcbnew.py:17022
def __bool__(self)
Definition: pcbnew.py:17002
def clear(self)
Definition: pcbnew.py:17046
def erase(self, *args)
Definition: pcbnew.py:17074
def equal_range(self, x)
Definition: pcbnew.py:17094
def find(self, x)
Definition: pcbnew.py:17082
def rbegin(self)
Definition: pcbnew.py:17066
def __len__(self)
Definition: pcbnew.py:17006
def size(self)
Definition: pcbnew.py:17042
def __iter__(self)
Definition: pcbnew.py:16995
def __contains__(self, x)
Definition: pcbnew.py:17014
def discard(self, x)
Definition: pcbnew.py:17026
def rend(self)
Definition: pcbnew.py:17070
def begin(self)
Definition: pcbnew.py:17058
def empty(self)
Definition: pcbnew.py:17038
def swap(self, v)
Definition: pcbnew.py:17050
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:15519
def __gt__(self, aRhs)
Definition: pcbnew.py:15527
def __eq__(self, aRhs)
Definition: pcbnew.py:15523
def __lt__(self, aRhs)
Definition: pcbnew.py:15531
def __init__(self, aFont=None)
Definition: pcbnew.py:15515
def __eq__(self, aOther)
Definition: pcbnew.py:10748
def __init__(self, aText, aVisible, aLayer)
Definition: pcbnew.py:10744
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:16466
def __delitem__(self, *args)
Definition: pcbnew.py:16420
def __setslice__(self, *args)
Definition: pcbnew.py:16409
def __iter__(self)
Definition: pcbnew.py:16390
def __len__(self)
Definition: pcbnew.py:16401
def __getslice__(self, i, j)
Definition: pcbnew.py:16405
def get_allocator(self)
Definition: pcbnew.py:16482
def begin(self)
Definition: pcbnew.py:16462
def iterator(self)
Definition: pcbnew.py:16387
def __setitem__(self, *args)
Definition: pcbnew.py:16434
def capacity(self)
Definition: pcbnew.py:16540
def erase(self, *args)
Definition: pcbnew.py:16490
def __getitem__(self, *args)
Definition: pcbnew.py:16427
def clear(self)
Definition: pcbnew.py:16478
def size(self)
Definition: pcbnew.py:16454
def __nonzero__(self)
Definition: pcbnew.py:16393
def empty(self)
Definition: pcbnew.py:16450
def assign(self, n, x)
Definition: pcbnew.py:16518
def pop(self)
Definition: pcbnew.py:16442
def reserve(self, n)
Definition: pcbnew.py:16536
def __init__(self, *args)
Definition: pcbnew.py:16497
def back(self)
Definition: pcbnew.py:16514
def pop_back(self)
Definition: pcbnew.py:16486
def insert(self, *args)
Definition: pcbnew.py:16529
def rend(self)
Definition: pcbnew.py:16474
def __bool__(self)
Definition: pcbnew.py:16397
def resize(self, *args)
Definition: pcbnew.py:16522
def swap(self, v)
Definition: pcbnew.py:16458
def push_back(self, x)
Definition: pcbnew.py:16506
def __delslice__(self, i, j)
Definition: pcbnew.py:16416
def rbegin(self)
Definition: pcbnew.py:16470
def append(self, x)
Definition: pcbnew.py:16446
def front(self)
Definition: pcbnew.py:16510
def size(self)
Definition: pcbnew.py:11739
def resize(self, *args)
Definition: pcbnew.py:11807
def pop(self)
Definition: pcbnew.py:11727
def insert(self, *args)
Definition: pcbnew.py:11814
def __getitem__(self, *args)
Definition: pcbnew.py:11712
def begin(self)
Definition: pcbnew.py:11747
def assign(self, n, x)
Definition: pcbnew.py:11803
def get_allocator(self)
Definition: pcbnew.py:11767
def clear(self)
Definition: pcbnew.py:11763
def empty(self)
Definition: pcbnew.py:11735
def __delitem__(self, *args)
Definition: pcbnew.py:11705
def push_front(self, x)
Definition: pcbnew.py:11825
def __setitem__(self, *args)
Definition: pcbnew.py:11719
def __delslice__(self, i, j)
Definition: pcbnew.py:11701
def __setslice__(self, *args)
Definition: pcbnew.py:11694
def __iter__(self)
Definition: pcbnew.py:11675
def __nonzero__(self)
Definition: pcbnew.py:11678
def __init__(self, *args)
Definition: pcbnew.py:11782
def front(self)
Definition: pcbnew.py:11795
def swap(self, v)
Definition: pcbnew.py:11743
def erase(self, *args)
Definition: pcbnew.py:11775
def push_back(self, x)
Definition: pcbnew.py:11791
def __getslice__(self, i, j)
Definition: pcbnew.py:11690
def __bool__(self)
Definition: pcbnew.py:11682
def append(self, x)
Definition: pcbnew.py:11731
def __len__(self)
Definition: pcbnew.py:11686
def iterator(self)
Definition: pcbnew.py:11672
def pop_front(self)
Definition: pcbnew.py:11821
def back(self)
Definition: pcbnew.py:11799
def end(self)
Definition: pcbnew.py:11751
def rbegin(self)
Definition: pcbnew.py:11755
def rend(self)
Definition: pcbnew.py:11759
def pop_back(self)
Definition: pcbnew.py:11771
def GetUnitPair(self, aPrimaryUnit, aSecondaryUnits)
Definition: pcbnew.py:10068
def GetOriginTransforms(self)
Definition: pcbnew.py:10076
def GetIuScale(self)
Definition: pcbnew.py:10072
def MessageTextFromValue(self, *args)
Definition: pcbnew.py:10087
def StringFromValue(self, *args)
Definition: pcbnew.py:10080
def AngleValueFromString(self, aTextValue)
Definition: pcbnew.py:10102
def __init__(self, aIuScale, aUnits)
Definition: pcbnew.py:10055
def MessageTextFromMinOptMax(self, aValue)
Definition: pcbnew.py:10094
def SetUserUnits(self, aUnits)
Definition: pcbnew.py:10064
def ValueFromString(self, *args)
Definition: pcbnew.py:10098
def find(self, *args)
Definition: pcbnew.py:7686
def __str__(self)
Definition: pcbnew.py:7767
def end(self)
Definition: pcbnew.py:7752
def empty(self)
Definition: pcbnew.py:7682
def c_str(self)
Definition: pcbnew.py:7678
def __init__(self, *args)
Definition: pcbnew.py:7667
def utf8_to_wxstring(self)
Definition: pcbnew.py:7744
def clear(self)
Definition: pcbnew.py:7693
def __iadd__(self, *args)
Definition: pcbnew.py:7721
def compare(self, s)
Definition: pcbnew.py:7705
def __eq__(self, *args)
Definition: pcbnew.py:7709
def wx_str(self)
Definition: pcbnew.py:7740
def find_first_of(self, str, pos=0)
Definition: pcbnew.py:7717
def size(self)
Definition: pcbnew.py:7701
def GetChars(self)
Definition: pcbnew.py:7762
def Cast_to_CChar(self)
Definition: pcbnew.py:7756
def length(self)
Definition: pcbnew.py:7697
def utf8_to_string(self)
Definition: pcbnew.py:7736
def substr(self, *args)
Definition: pcbnew.py:7732
def begin(self)
Definition: pcbnew.py:7748
def GetCenter(self)
Definition: pcbnew.py:4165
def Min(self)
Definition: pcbnew.py:4157
def Max(self)
Definition: pcbnew.py:4161
def __init__(self)
Definition: pcbnew.py:4173
def GetSize(self)
Definition: pcbnew.py:4169
def Scale(self, aScale)
Definition: pcbnew.py:4195
def LoadSTEP(aFileName)
Definition: pcbnew.py:4204
def SaveSTEP(self, aFileName)
Definition: pcbnew.py:4199
def Translate(self, aX, aY, aZ)
Definition: pcbnew.py:4191
def GetBoundingBox(self)
Definition: pcbnew.py:4187
def __gt__(self, aVector)
Definition: pcbnew.py:5300
def __eq__(self, aVector)
Definition: pcbnew.py:5284
def __mul__(self, *args)
Definition: pcbnew.py:5271
def Get(self)
Definition: pcbnew.py:5312
def EuclideanNorm(self)
Definition: pcbnew.py:5204
def __add__(self, *args)
Definition: pcbnew.py:5232
def Perpendicular(self)
Definition: pcbnew.py:5212
def __truediv__(self, *args)
Definition: pcbnew.py:5278
def Format(self)
Definition: pcbnew.py:5220
def __imul__(self, *args)
Definition: pcbnew.py:5239
def __neg__(self)
Definition: pcbnew.py:5267
def __le__(self, aVector)
Definition: pcbnew.py:5296
def __ne__(self, aVector)
Definition: pcbnew.py:5288
def __setitem__(self, index, val)
Definition: pcbnew.py:5322
def __ge__(self, aVector)
Definition: pcbnew.py:5304
def __init__(self, *args)
Definition: pcbnew.py:5196
def __nonzero__(self)
Definition: pcbnew.py:5329
def SquaredEuclideanNorm(self)
Definition: pcbnew.py:5208
def __str__(self)
Definition: pcbnew.py:5318
def Resize(self, aNewLength)
Definition: pcbnew.py:5216
def __getitem__(self, index)
Definition: pcbnew.py:5321
def Dot(self, aVector)
Definition: pcbnew.py:5228
def __lt__(self, aVector)
Definition: pcbnew.py:5292
def Set(self, x, y)
Definition: pcbnew.py:5308
def Cross(self, aVector)
Definition: pcbnew.py:5224
def __len__(self)
Definition: pcbnew.py:5320
def __sub__(self, *args)
Definition: pcbnew.py:5253
def __iadd__(self, *args)
Definition: pcbnew.py:5246
def __isub__(self, *args)
Definition: pcbnew.py:5260
def __itruediv__(self, *args)
Definition: pcbnew.py:5399
def Normalize(self)
Definition: pcbnew.py:5383
def EuclideanNorm(self)
Definition: pcbnew.py:5379
def __setitem__(self, index, val)
Definition: pcbnew.py:5419
def __len__(self)
Definition: pcbnew.py:5417
def __ne__(self, aVector)
Definition: pcbnew.py:5391
def Cross(self, aVector)
Definition: pcbnew.py:5371
def __getitem__(self, index)
Definition: pcbnew.py:5418
def __eq__(self, aVector)
Definition: pcbnew.py:5387
def __imul__(self, val)
Definition: pcbnew.py:5395
def __init__(self, *args)
Definition: pcbnew.py:5364
def Get(self)
Definition: pcbnew.py:5409
def __nonzero__(self)
Definition: pcbnew.py:5428
def Dot(self, aVector)
Definition: pcbnew.py:5375
def __str__(self)
Definition: pcbnew.py:5415
def Set(self, x, y, z)
Definition: pcbnew.py:5405
def append(self, x)
Definition: pcbnew.py:19519
def reserve(self, n)
Definition: pcbnew.py:19609
def push_back(self, x)
Definition: pcbnew.py:19579
def erase(self, *args)
Definition: pcbnew.py:19563
def __init__(self, *args)
Definition: pcbnew.py:19570
def __setslice__(self, *args)
Definition: pcbnew.py:19482
def __delslice__(self, i, j)
Definition: pcbnew.py:19489
def assign(self, n, x)
Definition: pcbnew.py:19591
def resize(self, *args)
Definition: pcbnew.py:19595
def __getitem__(self, *args)
Definition: pcbnew.py:19500
def __delitem__(self, *args)
Definition: pcbnew.py:19493
def __getslice__(self, i, j)
Definition: pcbnew.py:19478
def __setitem__(self, *args)
Definition: pcbnew.py:19507
def insert(self, *args)
Definition: pcbnew.py:19602
def insert(self, *args)
Definition: pcbnew.py:7596
def __setslice__(self, *args)
Definition: pcbnew.py:7476
def capacity(self)
Definition: pcbnew.py:7607
def push_back(self, x)
Definition: pcbnew.py:7573
def __getitem__(self, *args)
Definition: pcbnew.py:7494
def __iter__(self)
Definition: pcbnew.py:7457
def iterator(self)
Definition: pcbnew.py:7454
def pop_back(self)
Definition: pcbnew.py:7553
def get_allocator(self)
Definition: pcbnew.py:7549
def __bool__(self)
Definition: pcbnew.py:7464
def __delslice__(self, i, j)
Definition: pcbnew.py:7483
def __delitem__(self, *args)
Definition: pcbnew.py:7487
def erase(self, *args)
Definition: pcbnew.py:7557
def resize(self, *args)
Definition: pcbnew.py:7589
def __nonzero__(self)
Definition: pcbnew.py:7460
def assign(self, n, x)
Definition: pcbnew.py:7585
def swap(self, v)
Definition: pcbnew.py:7525
def __getslice__(self, i, j)
Definition: pcbnew.py:7472
def __setitem__(self, *args)
Definition: pcbnew.py:7501
def reserve(self, n)
Definition: pcbnew.py:7603
def __init__(self, *args)
Definition: pcbnew.py:7564
def append(self, x)
Definition: pcbnew.py:7513
def __getitem__(self, *args)
Definition: pcbnew.py:5711
def erase(self, *args)
Definition: pcbnew.py:5774
def resize(self, *args)
Definition: pcbnew.py:5806
def __iter__(self)
Definition: pcbnew.py:5674
def __delslice__(self, i, j)
Definition: pcbnew.py:5700
def __nonzero__(self)
Definition: pcbnew.py:5677
def get_allocator(self)
Definition: pcbnew.py:5766
def append(self, x)
Definition: pcbnew.py:5730
def insert(self, *args)
Definition: pcbnew.py:5813
def assign(self, n, x)
Definition: pcbnew.py:5802
def __init__(self, *args)
Definition: pcbnew.py:5781
def __bool__(self)
Definition: pcbnew.py:5681
def capacity(self)
Definition: pcbnew.py:5824
def __setslice__(self, *args)
Definition: pcbnew.py:5693
def iterator(self)
Definition: pcbnew.py:5671
def push_back(self, x)
Definition: pcbnew.py:5790
def __getslice__(self, i, j)
Definition: pcbnew.py:5689
def __setitem__(self, *args)
Definition: pcbnew.py:5718
def reserve(self, n)
Definition: pcbnew.py:5820
def __delitem__(self, *args)
Definition: pcbnew.py:5704
def pop_back(self)
Definition: pcbnew.py:5770
def swap(self, v)
Definition: pcbnew.py:5742
def resize(self, *args)
Definition: pcbnew.py:17610
def __getslice__(self, i, j)
Definition: pcbnew.py:17493
def erase(self, *args)
Definition: pcbnew.py:17578
def assign(self, n, x)
Definition: pcbnew.py:17606
def __init__(self, *args)
Definition: pcbnew.py:17585
def __delitem__(self, *args)
Definition: pcbnew.py:17508
def __delslice__(self, i, j)
Definition: pcbnew.py:17504
def __getitem__(self, *args)
Definition: pcbnew.py:17515
def __setslice__(self, *args)
Definition: pcbnew.py:17497
def __setitem__(self, *args)
Definition: pcbnew.py:17522
def insert(self, *args)
Definition: pcbnew.py:17617
def __lt__(self, aOther)
Definition: pcbnew.py:10681
def __ne__(self, aOther)
Definition: pcbnew.py:10677
def __init__(self, *args)
Definition: pcbnew.py:10666
def __eq__(self, aOther)
Definition: pcbnew.py:10673
def reserve(self, n)
Definition: pcbnew.py:11654
def iterator(self)
Definition: pcbnew.py:11505
def __delitem__(self, *args)
Definition: pcbnew.py:11538
def __getslice__(self, i, j)
Definition: pcbnew.py:11523
def back(self)
Definition: pcbnew.py:11632
def capacity(self)
Definition: pcbnew.py:11658
def __setslice__(self, *args)
Definition: pcbnew.py:11527
def get_allocator(self)
Definition: pcbnew.py:11600
def __init__(self, *args)
Definition: pcbnew.py:11615
def append(self, x)
Definition: pcbnew.py:11564
def empty(self)
Definition: pcbnew.py:11568
def __iter__(self)
Definition: pcbnew.py:11508
def end(self)
Definition: pcbnew.py:11584
def __setitem__(self, *args)
Definition: pcbnew.py:11552
def __delslice__(self, i, j)
Definition: pcbnew.py:11534
def resize(self, *args)
Definition: pcbnew.py:11640
def assign(self, n, x)
Definition: pcbnew.py:11636
def size(self)
Definition: pcbnew.py:11572
def push_back(self, x)
Definition: pcbnew.py:11624
def front(self)
Definition: pcbnew.py:11628
def pop(self)
Definition: pcbnew.py:11560
def pop_back(self)
Definition: pcbnew.py:11604
def __len__(self)
Definition: pcbnew.py:11519
def __nonzero__(self)
Definition: pcbnew.py:11511
def insert(self, *args)
Definition: pcbnew.py:11647
def __getitem__(self, *args)
Definition: pcbnew.py:11545
def clear(self)
Definition: pcbnew.py:11596
def swap(self, v)
Definition: pcbnew.py:11576
def rend(self)
Definition: pcbnew.py:11592
def erase(self, *args)
Definition: pcbnew.py:11608
def begin(self)
Definition: pcbnew.py:11580
def rbegin(self)
Definition: pcbnew.py:11588
def __bool__(self)
Definition: pcbnew.py:11515
def GetProgressReporter(self)
Definition: pcbnew.py:14498
def __init__(self, aBoard)
Definition: pcbnew.py:14510
def IsDebug(self)
Definition: pcbnew.py:14506
def Fill(self, aZones, aCheck=False, aParent=None)
Definition: pcbnew.py:14502
def SetProgressReporter(self, aReporter)
Definition: pcbnew.py:14494
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:14648
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:14644
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:14608
def __eq__(self, aOther)
Definition: pcbnew.py:14575
def SetupLayersList(self, aList, aFrame, aLayers, aFpEditorMode)
Definition: pcbnew.py:14592
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:14664
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:14660
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:14636
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:14684
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:14620
def __ne__(self, aOther)
Definition: pcbnew.py:14579
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:14628
def __lshift__(self, aSource)
Definition: pcbnew.py:14583
def GetCornerRadius(self)
Definition: pcbnew.py:14612
def GetPadConnection(self)
Definition: pcbnew.py:14616
def GetIslandRemovalMode(self)
Definition: pcbnew.py:14672
def GetDoNotAllowPads(self)
Definition: pcbnew.py:14640
def ExportSetting(self, aTarget, aFullExport=True)
Definition: pcbnew.py:14596
def GetCornerSmoothingType(self)
Definition: pcbnew.py:14604
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:14600
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:14676
def GetIsRuleArea(self)
Definition: pcbnew.py:14624
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:14652
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:14668
def GetDoNotAllowVias(self)
Definition: pcbnew.py:14632
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:14656
def __init__(self)
Definition: pcbnew.py:14571
def GetDefaultSettings()
Definition: pcbnew.py:14588
def GetMinIslandArea(self)
Definition: pcbnew.py:14680
def SetLocalClearance(self, aClearance)
Definition: pcbnew.py:13979
def GetMinThickness(self)
Definition: pcbnew.py:14070
def SetPadConnection(self, aPadConnection)
Definition: pcbnew.py:14066
def GetLocalFlags(self)
Definition: pcbnew.py:14142
def GetInteractingZones(self, aLayer, aSameNetCollidingZones, aOtherNetIntersectingZones)
Definition: pcbnew.py:14173
def NeedRefill(self)
Definition: pcbnew.py:14054
def GetNumCorners(self)
Definition: pcbnew.py:14216
def UnHatchBorder(self)
Definition: pcbnew.py:14412
def NewHole(self)
Definition: pcbnew.py:14244
def SetNeedRefill(self, aNeedRefill)
Definition: pcbnew.py:14058
def SetBorderDisplayStyle(self, aBorderHatchStyle, aBorderHatchPitch, aRebuilBorderdHatch)
Definition: pcbnew.py:14404
def GetThermalReliefGap(self, *args)
Definition: pcbnew.py:14003
def IsTeardropArea(self)
Definition: pcbnew.py:14319
def IterateWithHoles(self)
Definition: pcbnew.py:14224
def SetHatchSmoothingValue(self, aValue)
Definition: pcbnew.py:14114
def SetDoNotAllowPads(self, aEnable)
Definition: pcbnew.py:14371
def GetFill(self, aLayer)
Definition: pcbnew.py:14268
def Mirror(self, aMirrorRef, aMirrorLeftRight)
Definition: pcbnew.py:14212
def GetZoneName(self)
Definition: pcbnew.py:13960
def GetDoNotAllowCopperPour(self)
Definition: pcbnew.py:14335
def SameNet(self, aOther)
Definition: pcbnew.py:13956
def SetDoNotAllowVias(self, aEnable)
Definition: pcbnew.py:14363
def HatchBorder(self)
Definition: pcbnew.py:14416
def GetLock(self)
Definition: pcbnew.py:14034
def GetDefaultHatchPitch()
Definition: pcbnew.py:14400
def GetThermalReliefSpokeWidth(self)
Definition: pcbnew.py:14014
def Outline(self, *args)
Definition: pcbnew.py:14150
def GetFirstLayer(self)
Definition: pcbnew.py:13983
def GetDoNotAllowVias(self)
Definition: pcbnew.py:14339
def GetHatchHoleMinArea(self)
Definition: pcbnew.py:14118
def GetDoNotAllowTracks(self)
Definition: pcbnew.py:14343
def SetCornerSmoothingType(self, aType)
Definition: pcbnew.py:14292
def SetMinIslandArea(self, aArea)
Definition: pcbnew.py:14391
def SetDoNotAllowTracks(self, aEnable)
Definition: pcbnew.py:14367
def CIterateWithHoles(self)
Definition: pcbnew.py:14228
def GetIsRuleArea(self)
Definition: pcbnew.py:14331
def GetTeardropAreaType(self)
Definition: pcbnew.py:14327
def GetCornerRadius(self)
Definition: pcbnew.py:14304
def GetSelectedCorner(self)
Definition: pcbnew.py:14134
def GetIslandRemovalMode(self)
Definition: pcbnew.py:14379
def GetEffectiveShape(self, *args)
Definition: pcbnew.py:14161
def SetHatchThickness(self, aThickness)
Definition: pcbnew.py:14082
def AddPolygon(self, *args)
Definition: pcbnew.py:14312
def HigherPriority(self, aOther)
Definition: pcbnew.py:13952
def ClassOf(aItem)
Definition: pcbnew.py:13932
def SetThermalReliefSpokeWidth(self, aThermalReliefSpokeWidth)
Definition: pcbnew.py:14010
def SetTeardropAreaType(self, aType)
Definition: pcbnew.py:14323
def SetCornerRadius(self, aRadius)
Definition: pcbnew.py:14300
def SetHatchStyle(self, aStyle)
Definition: pcbnew.py:14256
def GetBorderHatchPitch(self)
Definition: pcbnew.py:14395
def GetHashValue(self, aLayer)
Definition: pcbnew.py:14428
def CacheBoundingBox(self)
Definition: pcbnew.py:13968
def SetZoneName(self, aName)
Definition: pcbnew.py:13964
def GetHatchSmoothingLevel(self)
Definition: pcbnew.py:14102
def BuildSmoothedPoly(self, aSmoothedPoly, aLayer, aBoardOutline, aSmoothedPolyWithApron=None)
Definition: pcbnew.py:14288
def SetHatchBorderAlgorithm(self, aAlgo)
Definition: pcbnew.py:14130
def SetFillMode(self, aFillMode)
Definition: pcbnew.py:13991
def GetLocalClearance(self, *args)
Definition: pcbnew.py:13972
def HasFilledPolysForLayer(self, aLayer)
Definition: pcbnew.py:14260
def CalculateOutlineArea(self)
Definition: pcbnew.py:14022
def SetHatchHoleMinArea(self, aPct)
Definition: pcbnew.py:14122
def GetPadConnection(self)
Definition: pcbnew.py:14062
def ViewGetLOD(self, aLayer, aView)
Definition: pcbnew.py:13987
def GetAssignedPriority(self)
Definition: pcbnew.py:13948
def GetHatchLines(self)
Definition: pcbnew.py:14420
def GetCornerSmoothingType(self)
Definition: pcbnew.py:14296
def GetHatchGap(self)
Definition: pcbnew.py:14086
def SetBorderHatchPitch(self, aPitch)
Definition: pcbnew.py:14408
def GetFillMode(self)
Definition: pcbnew.py:13995
def SetCornerPosition(self, aCornerIndex, new_pos)
Definition: pcbnew.py:14240
def HitTest(self, *args)
Definition: pcbnew.py:14197
def InitDataFromSrcInCopyCtor(self, aZone)
Definition: pcbnew.py:13936
def GetCornerPosition(self, aCornerIndex)
Definition: pcbnew.py:14236
def HitTestForCorner(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:14189
def CalculateFilledArea(self)
Definition: pcbnew.py:14018
def SetAssignedPriority(self, aPriority)
Definition: pcbnew.py:13944
def UnFill(self)
Definition: pcbnew.py:14204
def GetHatchOrientation(self)
Definition: pcbnew.py:14094
def SetFilledPolysList(self, aLayer, aPolysList)
Definition: pcbnew.py:14276
def IsFilled(self)
Definition: pcbnew.py:14046
def TransformSmoothedOutlineToPolygon(self, aBuffer, aClearance, aError, aErrorLoc, aBoardOutline)
Definition: pcbnew.py:14181
def TransformShapeToPolygon(self, aBuffer, aLayer, aClearance, aError, aErrorLoc, ignoreLineWidth=False)
Definition: pcbnew.py:14185
def __init__(self, *args)
Definition: pcbnew.py:13923
def GetMinIslandArea(self)
Definition: pcbnew.py:14387
def GetHatchStyle(self)
Definition: pcbnew.py:14252
def SetHatchOrientation(self, aStep)
Definition: pcbnew.py:14098
def HitTestForEdge(self, refPos, aAccuracy, aCornerHit=None)
Definition: pcbnew.py:14193
def RemoveCutout(self, aOutlineIdx, aHoleIdx)
Definition: pcbnew.py:14308
def GetFilledPolysList(self, aLayer)
Definition: pcbnew.py:14264
def TransformSolidAreasShapesToPolygon(self, aLayer, aBuffer)
Definition: pcbnew.py:14177
def SetMinThickness(self, aMinThickness)
Definition: pcbnew.py:14074
def SetHatchGap(self, aStep)
Definition: pcbnew.py:14090
def SetFillFlag(self, aLayer, aFlag)
Definition: pcbnew.py:14042
def MoveEdge(self, offset, aEdge)
Definition: pcbnew.py:14208
def GetHatchSmoothingValue(self)
Definition: pcbnew.py:14110
def IsConflicting(self)
Definition: pcbnew.py:13940
def SetOutline(self, aOutline)
Definition: pcbnew.py:14157
def GetDoNotAllowPads(self)
Definition: pcbnew.py:14347
def BuildHashValue(self, aLayer)
Definition: pcbnew.py:14424
def SetIsRuleArea(self, aEnable)
Definition: pcbnew.py:14355
def GetHatchThickness(self)
Definition: pcbnew.py:14078
def HitTestCutout(self, aRefPos, aOutlineIdx=None, aHoleIdx=None)
Definition: pcbnew.py:14169
def SetThermalReliefGap(self, aThermalReliefGap)
Definition: pcbnew.py:13999
def SetIsFilled(self, isFilled)
Definition: pcbnew.py:14050
def IsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:14280
def CacheTriangulation(self, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:14272
def SetSelectedCorner(self, aCorner)
Definition: pcbnew.py:14138
def SetIslandRemovalMode(self, aRemove)
Definition: pcbnew.py:14383
def GetFillFlag(self, aLayer)
Definition: pcbnew.py:14038
def GetDoNotAllowFootprints(self)
Definition: pcbnew.py:14351
def SetIsIsland(self, aLayer, aPolyIdx)
Definition: pcbnew.py:14284
def AppendCorner(self, aPosition, aHoleIdx, aAllowDuplication=False)
Definition: pcbnew.py:14248
def GetHatchBorderAlgorithm(self)
Definition: pcbnew.py:14126
def SetLocalFlags(self, aFlags)
Definition: pcbnew.py:14146
def SetDoNotAllowFootprints(self, aEnable)
Definition: pcbnew.py:14375
def GetOutlineArea(self)
Definition: pcbnew.py:14030
def GetFilledArea(self)
Definition: pcbnew.py:14026
def RemoveAllContours(self)
Definition: pcbnew.py:14232
def HitTestFilledArea(self, aLayer, aRefPos, aAccuracy=0)
Definition: pcbnew.py:14165
def SetHatchSmoothingLevel(self, aLevel)
Definition: pcbnew.py:14106
def SetDoNotAllowCopperPour(self, aEnable)
Definition: pcbnew.py:14359
def Iterate(self)
Definition: pcbnew.py:14220
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:19388
def __init__(self)
Definition: pcbnew.py:19392
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:19406
def __init__(self)
Definition: pcbnew.py:19410
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:19424
def __init__(self)
Definition: pcbnew.py:19428
def __init__(self)
Definition: pcbnew.py:19446
def __call__(self, aFirst, aSecond)
Definition: pcbnew.py:19442
def get_allocator(self)
Definition: pcbnew.py:4320
def erase(self, *args)
Definition: pcbnew.py:4328
def resize(self, *args)
Definition: pcbnew.py:4360
def __iter__(self)
Definition: pcbnew.py:4228
def rbegin(self)
Definition: pcbnew.py:4308
def iterator(self)
Definition: pcbnew.py:4225
def __setslice__(self, *args)
Definition: pcbnew.py:4247
def capacity(self)
Definition: pcbnew.py:4378
def empty(self)
Definition: pcbnew.py:4288
def begin(self)
Definition: pcbnew.py:4300
def swap(self, v)
Definition: pcbnew.py:4296
def __delslice__(self, i, j)
Definition: pcbnew.py:4254
def __getslice__(self, i, j)
Definition: pcbnew.py:4243
def __delitem__(self, *args)
Definition: pcbnew.py:4258
def __len__(self)
Definition: pcbnew.py:4239
def __setitem__(self, *args)
Definition: pcbnew.py:4272
def pop_back(self)
Definition: pcbnew.py:4324
def front(self)
Definition: pcbnew.py:4348
def end(self)
Definition: pcbnew.py:4304
def clear(self)
Definition: pcbnew.py:4316
def __nonzero__(self)
Definition: pcbnew.py:4231
def reserve(self, n)
Definition: pcbnew.py:4374
def __init__(self, *args)
Definition: pcbnew.py:4335
def size(self)
Definition: pcbnew.py:4292
def assign(self, n, x)
Definition: pcbnew.py:4356
def pop(self)
Definition: pcbnew.py:4280
def push_back(self, x)
Definition: pcbnew.py:4344
def rend(self)
Definition: pcbnew.py:4312
def append(self, x)
Definition: pcbnew.py:4284
def __getitem__(self, *args)
Definition: pcbnew.py:4265
def insert(self, *args)
Definition: pcbnew.py:4367
def back(self)
Definition: pcbnew.py:4352
def __bool__(self)
Definition: pcbnew.py:4235
def __setitem__(self, *args)
Definition: pcbnew.py:10489
def count(self, x)
Definition: pcbnew.py:10544
def __getitem__(self, key)
Definition: pcbnew.py:10453
def value_iterator(self)
Definition: pcbnew.py:10485
def iteritems(self)
Definition: pcbnew.py:10450
def swap(self, v)
Definition: pcbnew.py:10516
def iterator(self)
Definition: pcbnew.py:10427
def get_allocator(self)
Definition: pcbnew.py:10540
def __iter__(self)
Definition: pcbnew.py:10430
def __bool__(self)
Definition: pcbnew.py:10437
def has_key(self, key)
Definition: pcbnew.py:10461
def __init__(self, *args)
Definition: pcbnew.py:10500
def itervalues(self)
Definition: pcbnew.py:10448
def iterkeys(self)
Definition: pcbnew.py:10446
def lower_bound(self, x)
Definition: pcbnew.py:10560
def __delitem__(self, key)
Definition: pcbnew.py:10457
def __nonzero__(self)
Definition: pcbnew.py:10433
def find(self, x)
Definition: pcbnew.py:10556
def __contains__(self, key)
Definition: pcbnew.py:10477
def erase(self, *args)
Definition: pcbnew.py:10548
def upper_bound(self, x)
Definition: pcbnew.py:10564
def key_iterator(self)
Definition: pcbnew.py:10481
def value_iterator(self)
Definition: pcbnew.py:4450
def __iter__(self)
Definition: pcbnew.py:4395
def __bool__(self)
Definition: pcbnew.py:4402
def __nonzero__(self)
Definition: pcbnew.py:4398
def __setitem__(self, *args)
Definition: pcbnew.py:4454
def __delitem__(self, key)
Definition: pcbnew.py:4422
def asdict(self)
Definition: pcbnew.py:4461
def lower_bound(self, x)
Definition: pcbnew.py:4525
def __init__(self, *args)
Definition: pcbnew.py:4465
def __len__(self)
Definition: pcbnew.py:4406
def upper_bound(self, x)
Definition: pcbnew.py:4529
def keys(self)
Definition: pcbnew.py:4430
def __getitem__(self, key)
Definition: pcbnew.py:4418
def empty(self)
Definition: pcbnew.py:4473
def find(self, x)
Definition: pcbnew.py:4521
def __contains__(self, key)
Definition: pcbnew.py:4442
def values(self)
Definition: pcbnew.py:4434
def begin(self)
Definition: pcbnew.py:4485
def rend(self)
Definition: pcbnew.py:4497
def erase(self, *args)
Definition: pcbnew.py:4513
def iterator(self)
Definition: pcbnew.py:4392
def has_key(self, key)
Definition: pcbnew.py:4426
def key_iterator(self)
Definition: pcbnew.py:4446
def itervalues(self)
Definition: pcbnew.py:4413
def rbegin(self)
Definition: pcbnew.py:4493
def get_allocator(self)
Definition: pcbnew.py:4505
def end(self)
Definition: pcbnew.py:4489
def swap(self, v)
Definition: pcbnew.py:4481
def iterkeys(self)
Definition: pcbnew.py:4411
def clear(self)
Definition: pcbnew.py:4501
def size(self)
Definition: pcbnew.py:4477
def items(self)
Definition: pcbnew.py:4438
def iteritems(self)
Definition: pcbnew.py:4415
def count(self, x)
Definition: pcbnew.py:4509
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:3909
def PCB_TRACK_ClassOf(aItem)
Definition: pcbnew.py:13668
def Cast_to_BOARD(arg1)
Definition: pcbnew.py:10158
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:3888
def Cast_to_PCB_DIM_RADIAL(arg1)
Definition: pcbnew.py:10138
def Cast_to_SHAPE_ARC(_self)
Definition: pcbnew.py:7626
def EDA_ANGLE_Arcsin(x)
Definition: pcbnew.py:14863
def MessageTextFromMinOptMax(aIuScale, aUnits, aValue)
Definition: pcbnew.py:1985
def BOX2ISafe(*args)
Definition: pcbnew.py:5182
def PCB_REFERENCE_IMAGE_ClassOf(aItem)
Definition: pcbnew.py:17465
def FootprintLibDelete(libname)
Definition: pcbnew.py:19646
def FootprintDelete(libname, name)
Definition: pcbnew.py:19638
def EDA_ANGLE_Arccos(x)
Definition: pcbnew.py:14859
def PAD_UnplatedHoleMask()
Definition: pcbnew.py:13531
def GetWizardsSearchPaths()
Definition: pcbnew.py:4572
def BOARD_CONNECTED_ITEM_ClassOf(aItem)
Definition: pcbnew.py:10417
def Cast_to_PCB_MARKER(arg1)
Definition: pcbnew.py:10154
def KIID_CreateNilUuids(aNil=True)
Definition: pcbnew.py:1128
def LoadPlugins(bundlepath=None, userpath=None, thirdpartypath=None)
Definition: pcbnew.py:4643
def MessageTextFromValue(*args)
Definition: pcbnew.py:1976
def KIID_SeedGenerator(aSeed)
Definition: pcbnew.py:1132
def GAL_SET_DefaultVisible()
Definition: pcbnew.py:3404
def IsPcbLayer(aLayer)
Definition: pcbnew.py:3913
def NETINFO_LIST_OrphanedItem()
Definition: pcbnew.py:16982
def ResolveUriByEnvVars(aUri, aProject)
Definition: pcbnew.py:2038
def PCB_DIM_LEADER_ClassOf(aItem)
Definition: pcbnew.py:16068
def IsActionRunning()
Definition: pcbnew.py:9683
def IsGerbviewType(aType)
Definition: pcbnew.py:1589
def EDA_TEXT_IsGotoPageHref(aHref, aDestination=None)
Definition: pcbnew.py:3054
def SetOpenGLInfo(aRenderer, aVendor, aVersion)
Definition: pcbnew.py:3103
def PYTHON_FOOTPRINT_WIZARD_LIST_deregister_wizard(wizard)
Definition: pcbnew.py:19682
def LoadBoard(*args)
Definition: pcbnew.py:9610
def IsTextVar(aSource)
Definition: pcbnew.py:2034
def GetBuildDate()
Definition: pcbnew.py:3087
def Cast_to_PCB_DIM_ORTHOGONAL(arg1)
Definition: pcbnew.py:10126
def EDA_ANGLE_Arctan2(y, x)
Definition: pcbnew.py:14871
def FOOTPRINT_GetCoverageArea(aItem, aCollector)
Definition: pcbnew.py:19378
def IsNullType(aType)
Definition: pcbnew.py:1573
def Cast_to_SHAPE_CIRCLE(_self)
Definition: pcbnew.py:7630
def wxPointMils(mmx, mmy)
Definition: pcbnew.py:19768
def FootprintIsWritable(libname)
Definition: pcbnew.py:19650
def FootprintLibCreate(libname)
Definition: pcbnew.py:19642
def Cast_to_ZONE(arg1)
Definition: pcbnew.py:10178
def FOOTPRINT_ClassOf(aItem)
Definition: pcbnew.py:19358
def SearchHelpFileFullPath(aBaseName)
Definition: pcbnew.py:2007
def __ne__(lhs, rhs)
Definition: pcbnew.py:2565
def VECTOR2I_MM(mmx, mmy)
Definition: pcbnew.py:19771
def LAYER_ParseType(aType)
Definition: pcbnew.py:17746
def LSET_UserMask()
Definition: pcbnew.py:3892
def PCB_IO_MGR_ShowType(aFileType)
Definition: pcbnew.py:8021
def IsViaPadLayer(aLayer)
Definition: pcbnew.py:3928
def FromMM(mm)
Definition: pcbnew.py:19727
def IsZoneFillLayer(aLayer)
Definition: pcbnew.py:3964
def PLACE_FILE_EXPORTER_GetBackSideName()
Definition: pcbnew.py:9178
def IsTypeAvailable(aType)
Definition: pcbnew.py:1605
def FlipLayer(aLayerId, aCopperLayersCount=0)
Definition: pcbnew.py:3948
def LIB_ID_FixIllegalChars(aLibItemName, aLib)
Definition: pcbnew.py:7910
def GetSemanticVersion()
Definition: pcbnew.py:3075
def Cast_to_PCB_TEXT(arg1)
Definition: pcbnew.py:10114
def GetBuildVersion()
Definition: pcbnew.py:3063
def wxRectMils(x, y, wx, wy)
Definition: pcbnew.py:19784
def IsHoleLayer(aLayer)
Definition: pcbnew.py:3932
def FetchUnitsFromString(aTextValue, aUnits)
Definition: pcbnew.py:1941
def new_clone(aItem)
Definition: pcbnew.py:1842
def PCB_VIA_ClassOf(aItem)
Definition: pcbnew.py:13897
def LSET_AllNonCuMask()
Definition: pcbnew.py:3848
def Cast_to_SHAPE_SIMPLE(_self)
Definition: pcbnew.py:7654
def PCB_DIM_CENTER_ClassOf(aItem)
Definition: pcbnew.py:16091
def StrPrintf(*args)
Definition: pcbnew.py:2050
def EDA_TEXT_GotoPageHref(aDestination)
Definition: pcbnew.py:3058
def PAD_PTHMask()
Definition: pcbnew.py:13519
def PAD_SHAPE_T_asString(a)
Definition: pcbnew.py:12870
def EDA_TEXT_MapHorizJustify(aHorizJustify)
Definition: pcbnew.py:3042
def PYTHON_ACTION_PLUGINS_deregister_action(wizard)
Definition: pcbnew.py:19714
def LSET_PhysicalLayersMask()
Definition: pcbnew.py:3896
def LSET_FrontAssembly()
Definition: pcbnew.py:3832
def InvokeRuleAreaEditor(aCaller, aSettings, aConvertSettings=None)
Definition: pcbnew.py:14484
def LSET_BackMask()
Definition: pcbnew.py:3884
def PAD_Compare(aPadRef, aPadCmp)
Definition: pcbnew.py:13543
def GetSettingsManager()
Definition: pcbnew.py:9621
def PCB_IO_MGR_EnumFromStr(aFileType)
Definition: pcbnew.py:8025
def ExpandTextVars(*args)
Definition: pcbnew.py:2023
def KIID_SniffTest(aCandidate)
Definition: pcbnew.py:1124
def ToMM(iu)
Definition: pcbnew.py:19719
def IsUTF8(aString)
Definition: pcbnew.py:7658
def EDA_ANGLE_Arctan(x)
Definition: pcbnew.py:14867
def ToGalLayer(aInteger)
Definition: pcbnew.py:3361
def PCB_DIM_ALIGNED_ClassOf(aItem)
Definition: pcbnew.py:15955
def LSET_AllTechMask()
Definition: pcbnew.py:3872
def Mils2mm(aVal)
Definition: pcbnew.py:1937
def NET_SETTINGS_ParseBusVector(aBus, aName, aMemberList)
Definition: pcbnew.py:11121
def PCB_SHAPE_ClassOf(aItem)
Definition: pcbnew.py:15329
def Cast_to_PCB_TARGET(arg1)
Definition: pcbnew.py:10182
def __eq__(lhs, rhs)
Definition: pcbnew.py:2561
def wxRectMM(x, y, wx, wy)
Definition: pcbnew.py:19777
def GetText(*args)
Definition: pcbnew.py:1945
def PYTHON_FOOTPRINT_WIZARD_LIST_register_wizard(wizard)
Definition: pcbnew.py:19678
def IsInstantiableType(aType)
Definition: pcbnew.py:1577
def IsNetCopperLayer(aLayer)
Definition: pcbnew.py:3972
def NilUuid()
Definition: pcbnew.py:1137
def PCB_IO_MGR_FindPluginTypeFromBoardPath(aFileName, aCtl=0)
Definition: pcbnew.py:8029
def PCB_GROUP_ClassOf(aItem)
Definition: pcbnew.py:17385
def SEG_Square(a)
Definition: pcbnew.py:6005
def ZONE_SETTINGS_GetDefaultSettings()
Definition: pcbnew.py:14692
def EnsureFileDirectoryExists(aTargetFullFileName, aBaseFilename, aReporter=None)
Definition: pcbnew.py:2011
def SETTINGS_MANAGER_GetSettingsVersion()
Definition: pcbnew.py:4143
def SETTINGS_MANAGER_GetUserSettingsPath()
Definition: pcbnew.py:4147
def UpdateUserInterface()
Definition: pcbnew.py:9667
def FootprintLoad(libname, name, preserveUUID=False)
Definition: pcbnew.py:19630
def FootprintEnumerate(libname)
Definition: pcbnew.py:19626
def GetCommitHash()
Definition: pcbnew.py:3091
def colorRefs()
Definition: pcbnew.py:2424
def LSET_BackBoardTechMask()
Definition: pcbnew.py:3868
def PlotDrawingSheet(*args)
Definition: pcbnew.py:9084
def LSET_AllLayersMask()
Definition: pcbnew.py:3852
def LIB_ID_Format(*args)
Definition: pcbnew.py:7899
def FormatAngle(aAngle)
Definition: pcbnew.py:1953
def GetLanguage()
Definition: pcbnew.py:9691
def __lshift__(aStream, aColor)
Definition: pcbnew.py:2573
def Mils2IU(aIuScale, mils)
Definition: pcbnew.py:1964
def PAD_ConnSMDMask()
Definition: pcbnew.py:13527
def PYTHON_ACTION_PLUGINS_register_action(wizard)
Definition: pcbnew.py:19710
def GetVersionInfoData(aTitle, aHtml=False, aBrief=False)
Definition: pcbnew.py:3107
def FullVersion()
Definition: pcbnew.py:19796
def GetMajorMinorVersion()
Definition: pcbnew.py:3079
def FocusOnItem(aItem, aLayer=UNDEFINED_LAYER)
Definition: pcbnew.py:9679
def PCB_FIELD_ClassOf(aItem)
Definition: pcbnew.py:15624
def IsNetnameLayer(aLayer)
Definition: pcbnew.py:3960
def COLOR4D_FindNearestLegacyColor(aR, aG, aB)
Definition: pcbnew.py:2552
def PCB_IO_MGR_Save(aFileType, aFileName, aBoard, aProperties=None)
Definition: pcbnew.py:8041
def LIB_ID_FindIllegalLibraryNameChar(aLibraryName)
Definition: pcbnew.py:7914
def LAYER_ShowType(aType)
Definition: pcbnew.py:17742
def Cast_to_SHAPE_POLY_SET(_self)
Definition: pcbnew.py:7642
def ExportSpecctraDSN(*args)
Definition: pcbnew.py:9641
def InvokeCopperZonesEditor(aCaller, aSettings, aConvertSettings=None)
Definition: pcbnew.py:14480
def EDA_ITEM_Sort(aLeft, aRight)
Definition: pcbnew.py:1837
def GetMajorMinorPatchTuple()
Definition: pcbnew.py:3095
def SHAPE_ARC_DefaultAccuracyForPCB()
Definition: pcbnew.py:6359
def LSET_BackAssembly()
Definition: pcbnew.py:3836
def GetCurrentSelection()
Definition: pcbnew.py:9675
def wxGetDefaultPyEncoding()
Definition: pcbnew.py:485
def IsImperialUnit(aUnit)
Definition: pcbnew.py:1925
def SaveBoard(aFileName, aBoard, aSkipSettings=False)
Definition: pcbnew.py:9629
def PrintZoneConnection(aConnection)
Definition: pcbnew.py:14472
def ZONE_ClassOf(aItem)
Definition: pcbnew.py:14435
def IsEeschemaType(aType)
Definition: pcbnew.py:1581
def Cast_to_SHAPE_RECT(_self)
Definition: pcbnew.py:7646
def FOOTPRINT_StringLibNameInvalidChars(aUserReadable)
Definition: pcbnew.py:19374
def LSET_AllBoardTechMask()
Definition: pcbnew.py:3876
def PCB_TEXTBOX_ClassOf(aItem)
Definition: pcbnew.py:15493
def Refresh()
Definition: pcbnew.py:9663
def Cast_to_PCB_TRACK(arg1)
Definition: pcbnew.py:10166
def Cast_to_SHAPE_SEGMENT(_self)
Definition: pcbnew.py:7650
def PutOnGridMM(value, gridSizeMM)
Definition: pcbnew.py:19751
def InvokeNonCopperZonesEditor(aParent, aSettings, aConvertSettings=None)
Definition: pcbnew.py:14476
def IsCopperLayer(*args)
Definition: pcbnew.py:3921
def PCB_GROUP_WithinScope(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17393
def Cast_to_SHAPE_COMPOUND(_self)
Definition: pcbnew.py:7634
def LSET_ForbiddenFootprintLayers()
Definition: pcbnew.py:3904
def PCB_TEXT_ClassOf(aItem)
Definition: pcbnew.py:15408
def LSET_AllCuMask(*args)
Definition: pcbnew.py:3840
def DoubleValueFromString(*args)
Definition: pcbnew.py:1993
def IsFrontLayer(aLayerId)
Definition: pcbnew.py:3940
def Cast_to_FOOTPRINT(arg1)
Definition: pcbnew.py:10142
def StringFromValue(*args)
Definition: pcbnew.py:1972
def EDA_TEXT_ValidateHyperlink(aURL)
Definition: pcbnew.py:3050
def PAD_ApertureMask()
Definition: pcbnew.py:13535
def GetUserUnits()
Definition: pcbnew.py:9671
def ImportSpecctraSES(*args)
Definition: pcbnew.py:9652
def CreateEmptyBoard()
Definition: pcbnew.py:9625
def GetLabel(*args)
Definition: pcbnew.py:1949
def Version()
Definition: pcbnew.py:19792
def BOARD_GetStandardLayerName(aLayerId)
Definition: pcbnew.py:18470
def TITLE_BLOCK_GetContextualTextVars(aVars)
Definition: pcbnew.py:2321
def IsMiscType(aType)
Definition: pcbnew.py:1597
def PCB_GROUP_IsGroupableType(aType)
Definition: pcbnew.py:17397
def ValueFromString(*args)
Definition: pcbnew.py:2000
def PCB_TARGET_ClassOf(aItem)
Definition: pcbnew.py:16210
def Cast_to_PCB_DIM_CENTER(arg1)
Definition: pcbnew.py:10134
def ExportFootprintsToLibrary(*args)
Definition: pcbnew.py:9659
def LSET_FrontMask()
Definition: pcbnew.py:3880
def BaseType(aType)
Definition: pcbnew.py:1569
def PutOnGridMils(value, gridSizeMils)
Definition: pcbnew.py:19755
def ZONE_GetDefaultHatchPitch()
Definition: pcbnew.py:14439
def Cast_to_PCB_REFERENCE_IMAGE(arg1)
Definition: pcbnew.py:10186
def IsPcbnewType(aType)
Definition: pcbnew.py:1585
def IsUserLayer(aLayerId)
Definition: pcbnew.py:3936
def PCB_IO_MGR_Load(aFileType, aFileName, aAppendToMe=None, aProperties=None, aProject=None, aProgressReporter=None)
Definition: pcbnew.py:8037
def GetMajorMinorPatchVersion()
Definition: pcbnew.py:3083
def GetBoard()
Definition: pcbnew.py:9606
def LSET_ExternalCuMask()
Definition: pcbnew.py:3844
def IsPageLayoutEditorType(aType)
Definition: pcbnew.py:1593
def PCB_IO_MGR_ConvertLibrary(aOldFileProps, aOldFilePath, aNewFilePath)
Definition: pcbnew.py:8045
def ExportVRML(aFullFileName, aMMtoWRMLunit, aExport3DFiles, aUseRelativePaths, a3D_Subdir, aXRef, aYRef)
Definition: pcbnew.py:9648
def SHAPE_TYPE_asString(a)
Definition: pcbnew.py:6030
def PAD_SMDMask()
Definition: pcbnew.py:13523
def LSET_FrontTechMask()
Definition: pcbnew.py:3856
def VECTOR2I_Mils(mmx, mmy)
Definition: pcbnew.py:19774
def EDA_TEXT_MapVertJustify(aVertJustify)
Definition: pcbnew.py:3046
def Cast_to_PCB_VIA(arg1)
Definition: pcbnew.py:10170
def BOARD_ClassOf(aItem)
Definition: pcbnew.py:18466
def TimestampDir(aDirPath, aFilespec)
Definition: pcbnew.py:2042
def GetFootprints(aNickName)
Definition: pcbnew.py:9637
def WriteDRCReport(aBoard, aFileName, aUnits, aReportAllTrackErrors)
Definition: pcbnew.py:9687
def PCB_IO_MGR_PluginFind(aFileType)
Definition: pcbnew.py:8017
def LSET_FrontBoardTechMask()
Definition: pcbnew.py:3860
def LSET_BackTechMask()
Definition: pcbnew.py:3864
def FP_CACHE_GetTimestamp(aLibPath)
Definition: pcbnew.py:8245
def GetTextVars(aSource)
Definition: pcbnew.py:2030
def GetBaseVersion()
Definition: pcbnew.py:3067
def GetNetnameLayer(aLayer)
Definition: pcbnew.py:3956
def PCB_IO_MGR_GuessPluginTypeFromLibPath(aLibPath, aCtl=0)
Definition: pcbnew.py:8033
def wxSizeMM(mmx, mmy)
Definition: pcbnew.py:19759
def Cast_to_PCB_ARC(arg1)
Definition: pcbnew.py:10174
def Cast_to_PCB_SHAPE(arg1)
Definition: pcbnew.py:10150
def ToLAYER_ID(aLayer)
Definition: pcbnew.py:3976
def NETINFO_ITEM_ClassOf(aItem)
Definition: pcbnew.py:16627
def IsTypeCorrect(aType)
Definition: pcbnew.py:1601
def PCB_ARC_ClassOf(aItem)
Definition: pcbnew.py:13737
def GetPluginForPath(libname)
Definition: pcbnew.py:19622
def IsBackLayer(aLayerId)
Definition: pcbnew.py:3944
def LIB_ID_HasIllegalChars(aLibItemName)
Definition: pcbnew.py:7906
def Cast_to_PCB_DIM_LEADER(arg1)
Definition: pcbnew.py:10130
def Cast_to_PCB_GROUP(arg1)
Definition: pcbnew.py:10146
def FOOTPRINT_IsLibNameValid(aName)
Definition: pcbnew.py:19370
def NewBoard(aFileName)
Definition: pcbnew.py:9617
def IsMetricUnit(aUnit)
Definition: pcbnew.py:1929
def FlipLayerMask(aMask, aCopperLayersCount=0)
Definition: pcbnew.py:3952
def PCB_MARKER_Deserialize(data)
Definition: pcbnew.py:16145
def LSET_UserDefinedLayers()
Definition: pcbnew.py:3900
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:9989
def GetFootprintLibraries()
Definition: pcbnew.py:9633
def PAD_ClassOf(aItem)
Definition: pcbnew.py:13539
def KiROUND(vec)
Definition: pcbnew.py:5178
def LayerName(aLayer)
Definition: pcbnew.py:3575
def FromMils(mils)
Definition: pcbnew.py:19743
def Mm2mils(aVal)
Definition: pcbnew.py:1933
def SHAPE_POLY_SET_BuildPolysetFromOrientedPaths(aPaths, aReverseOrientation=False, aEvenOdd=False)
Definition: pcbnew.py:7264
def Cast_to_SHAPE_LINE_CHAIN(_self)
Definition: pcbnew.py:7638
def IsNonCopperLayer(aLayerId)
Definition: pcbnew.py:3917
def Cast_to_PAD(arg1)
Definition: pcbnew.py:10162
def GetWizardsBackTrace()
Definition: pcbnew.py:4583
def LSET_InternalCuMask()
Definition: pcbnew.py:3828
def SETTINGS_MANAGER_GetColorSettingsPath()
Definition: pcbnew.py:4139
def ToMils(iu)
Definition: pcbnew.py:19735
def PCB_MARKER_ClassOf(aItem)
Definition: pcbnew.py:16141
def wxSizeMils(mmx, mmy)
Definition: pcbnew.py:19762
def PCB_DIM_ORTHOGONAL_ClassOf(aItem)
Definition: pcbnew.py:15994
def LoadPluginModule(Dirname, ModuleName, FileName)
Definition: pcbnew.py:4588
def NET_SETTINGS_ParseBusGroup(aGroup, name, aMemberList)
Definition: pcbnew.py:11125
def PCB_GROUP_TopLevelGroup(aItem, aScope, isFootprintEditor)
Definition: pcbnew.py:17389
def GetDefaultPlotExtension(aFormat)
Definition: pcbnew.py:9088
def IsNightlyVersion()
Definition: pcbnew.py:3099
def GetPlatformGetBitnessName()
Definition: pcbnew.py:3071
def PLACE_FILE_EXPORTER_GetFrontSideName()
Definition: pcbnew.py:9174
def ToUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1968
def Cast_to_PCB_TEXTBOX(arg1)
Definition: pcbnew.py:10118
def wxPointMM(mmx, mmy)
Definition: pcbnew.py:19765
def UTILS_STEP_MODEL_LoadSTEP(aFileName)
Definition: pcbnew.py:4215
def Cast_to_PCB_DIM_ALIGNED(arg1)
Definition: pcbnew.py:10122
def Cast_to_BOARD_ITEM(base)
Definition: pcbnew.py:10110
def FootprintSave(libname, module)
Definition: pcbnew.py:19634
def SETTINGS_MANAGER_IsSettingsPathValid(aPath)
Definition: pcbnew.py:4135
def FromUserUnit(aIuScale, aUnit, aValue)
Definition: pcbnew.py:1989
def IsDCodeLayer(aLayer)
Definition: pcbnew.py:3968
def PCB_DIM_RADIAL_ClassOf(aItem)
Definition: pcbnew.py:16033
def LSET_Name(aLayerId)
Definition: pcbnew.py:3824