Newer
Older
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
_pcbnew.SEXPR_BOARD_FILE_VERSION_swigconstant(_pcbnew)
SEXPR_BOARD_FILE_VERSION = _pcbnew.SEXPR_BOARD_FILE_VERSION
_pcbnew.CTL_STD_LAYER_NAMES_swigconstant(_pcbnew)
CTL_STD_LAYER_NAMES = _pcbnew.CTL_STD_LAYER_NAMES
_pcbnew.CTL_OMIT_NETS_swigconstant(_pcbnew)
CTL_OMIT_NETS = _pcbnew.CTL_OMIT_NETS
_pcbnew.CTL_OMIT_TSTAMPS_swigconstant(_pcbnew)
CTL_OMIT_TSTAMPS = _pcbnew.CTL_OMIT_TSTAMPS
_pcbnew.CTL_OMIT_INITIAL_COMMENTS_swigconstant(_pcbnew)
CTL_OMIT_INITIAL_COMMENTS = _pcbnew.CTL_OMIT_INITIAL_COMMENTS
_pcbnew.CTL_OMIT_PATH_swigconstant(_pcbnew)
CTL_OMIT_PATH = _pcbnew.CTL_OMIT_PATH
_pcbnew.CTL_OMIT_AT_swigconstant(_pcbnew)
CTL_OMIT_AT = _pcbnew.CTL_OMIT_AT
_pcbnew.CTL_FOR_CLIPBOARD_swigconstant(_pcbnew)
CTL_FOR_CLIPBOARD = _pcbnew.CTL_FOR_CLIPBOARD
_pcbnew.CTL_FOR_LIBRARY_swigconstant(_pcbnew)
CTL_FOR_LIBRARY = _pcbnew.CTL_FOR_LIBRARY
_pcbnew.CTL_FOR_BOARD_swigconstant(_pcbnew)
CTL_FOR_BOARD = _pcbnew.CTL_FOR_BOARD
class PCB_IO(PLUGIN):
"""Proxy of C++ PCB_IO class"""
__swig_setmethods__ = {}
for _s in [PLUGIN]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, PCB_IO, name, value)
__swig_getmethods__ = {}
for _s in [PLUGIN]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, PCB_IO, name)
__repr__ = _swig_repr
def PluginName(self):
"""PluginName(PCB_IO self) -> wxString const"""
return _pcbnew.PCB_IO_PluginName(self)
def GetFileExtension(self):
"""GetFileExtension(PCB_IO self) -> wxString const"""
return _pcbnew.PCB_IO_GetFileExtension(self)
def Save(self, aFileName, aBoard, aProperties=None):
"""
Save(PCB_IO self, wxString const & aFileName, BOARD aBoard, PROPERTIES aProperties=None)
Save(PCB_IO self, wxString const & aFileName, BOARD aBoard)
"""
return _pcbnew.PCB_IO_Save(self, aFileName, aBoard, aProperties)
def Load(self, aFileName, aAppendToMe, aProperties=None):
"""
Load(PCB_IO self, wxString const & aFileName, BOARD aAppendToMe, PROPERTIES aProperties=None) -> BOARD
Load(PCB_IO self, wxString const & aFileName, BOARD aAppendToMe) -> BOARD
"""
return _pcbnew.PCB_IO_Load(self, aFileName, aAppendToMe, aProperties)
def FootprintEnumerate(self, aLibraryPath, aProperties=None):
"""
FootprintEnumerate(PCB_IO self, wxString const & aLibraryPath, PROPERTIES aProperties=None) -> wxArrayString
FootprintEnumerate(PCB_IO self, wxString const & aLibraryPath) -> wxArrayString
"""
return _pcbnew.PCB_IO_FootprintEnumerate(self, aLibraryPath, aProperties)
def FootprintLoad(self, aLibraryPath, aFootprintName, aProperties=None):
"""
FootprintLoad(PCB_IO self, wxString const & aLibraryPath, wxString const & aFootprintName, PROPERTIES aProperties=None) -> MODULE
FootprintLoad(PCB_IO self, wxString const & aLibraryPath, wxString const & aFootprintName) -> MODULE
"""
return _pcbnew.PCB_IO_FootprintLoad(self, aLibraryPath, aFootprintName, aProperties)
def FootprintSave(self, aLibraryPath, aFootprint, aProperties=None):
"""
FootprintSave(PCB_IO self, wxString const & aLibraryPath, MODULE aFootprint, PROPERTIES aProperties=None)
FootprintSave(PCB_IO self, wxString const & aLibraryPath, MODULE aFootprint)
"""
return _pcbnew.PCB_IO_FootprintSave(self, aLibraryPath, aFootprint, aProperties)
def FootprintDelete(self, aLibraryPath, aFootprintName, aProperties=None):
"""
FootprintDelete(PCB_IO self, wxString const & aLibraryPath, wxString const & aFootprintName, PROPERTIES aProperties=None)
FootprintDelete(PCB_IO self, wxString const & aLibraryPath, wxString const & aFootprintName)
"""
return _pcbnew.PCB_IO_FootprintDelete(self, aLibraryPath, aFootprintName, aProperties)
def FootprintLibCreate(self, aLibraryPath, aProperties=None):
"""
FootprintLibCreate(PCB_IO self, wxString const & aLibraryPath, PROPERTIES aProperties=None)
FootprintLibCreate(PCB_IO self, wxString const & aLibraryPath)
"""
return _pcbnew.PCB_IO_FootprintLibCreate(self, aLibraryPath, aProperties)
def FootprintLibDelete(self, aLibraryPath, aProperties=None):
"""
FootprintLibDelete(PCB_IO self, wxString const & aLibraryPath, PROPERTIES aProperties=None) -> bool
FootprintLibDelete(PCB_IO self, wxString const & aLibraryPath) -> bool
"""
return _pcbnew.PCB_IO_FootprintLibDelete(self, aLibraryPath, aProperties)
def IsFootprintLibWritable(self, aLibraryPath):
"""IsFootprintLibWritable(PCB_IO self, wxString const & aLibraryPath) -> bool"""
return _pcbnew.PCB_IO_IsFootprintLibWritable(self, aLibraryPath)
def __init__(self, *args):
"""
__init__(PCB_IO self, int aControlFlags) -> PCB_IO
__init__(PCB_IO self) -> PCB_IO
"""
this = _pcbnew.new_PCB_IO(*args)
try:
self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pcbnew.delete_PCB_IO
__del__ = lambda self: None
def Format(self, aItem, aNestLevel=0):
"""
Format(PCB_IO self, BOARD_ITEM aItem, int aNestLevel=0)
Format(PCB_IO self, BOARD_ITEM aItem)
"""
return _pcbnew.PCB_IO_Format(self, aItem, aNestLevel)
def GetStringOutput(self, doClear):
"""GetStringOutput(PCB_IO self, bool doClear) -> string"""
return _pcbnew.PCB_IO_GetStringOutput(self, doClear)
def SetOutputFormatter(self, aFormatter):
"""SetOutputFormatter(PCB_IO self, OUTPUTFORMATTER * aFormatter)"""
return _pcbnew.PCB_IO_SetOutputFormatter(self, aFormatter)
def Parse(self, aClipboardSourceInput):
"""Parse(PCB_IO self, wxString const & aClipboardSourceInput) -> BOARD_ITEM"""
return _pcbnew.PCB_IO_Parse(self, aClipboardSourceInput)
PCB_IO_swigregister = _pcbnew.PCB_IO_swigregister
PCB_IO_swigregister(PCB_IO)
class BOARD_ITEM_List(DHEAD):
"""Proxy of C++ DLIST<(BOARD_ITEM)> class"""
__swig_setmethods__ = {}
for _s in [DHEAD]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, BOARD_ITEM_List, name, value)
__swig_getmethods__ = {}
for _s in [DHEAD]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, BOARD_ITEM_List, name)
__repr__ = _swig_repr
def Get(self):
"""Get(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_Get(self)
def __deref__(self):
"""__deref__(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List___deref__(self)
def GetFirst(self):
"""GetFirst(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_GetFirst(self)
def GetLast(self):
"""GetLast(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_GetLast(self)
def Append(self, *args):
"""
Append(BOARD_ITEM_List self, BOARD_ITEM aNewElement)
Append(BOARD_ITEM_List self, BOARD_ITEM_List aList)
"""
return _pcbnew.BOARD_ITEM_List_Append(self, *args)
def Insert(self, aNewElement, aElementAfterMe):
"""Insert(BOARD_ITEM_List self, BOARD_ITEM aNewElement, BOARD_ITEM aElementAfterMe)"""
return _pcbnew.BOARD_ITEM_List_Insert(self, aNewElement, aElementAfterMe)
def Remove(self, aElement):
"""Remove(BOARD_ITEM_List self, BOARD_ITEM aElement) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_Remove(self, aElement)
def begin(self):
"""begin(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_begin(self)
def end(self):
"""end(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_end(self)
def PopFront(self):
"""PopFront(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_PopFront(self)
def PopBack(self):
"""PopBack(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_PopBack(self)
def PushFront(self, aNewElement):
"""PushFront(BOARD_ITEM_List self, BOARD_ITEM aNewElement)"""
return _pcbnew.BOARD_ITEM_List_PushFront(self, aNewElement)
def PushBack(self, aNewElement):
"""PushBack(BOARD_ITEM_List self, BOARD_ITEM aNewElement)"""
return _pcbnew.BOARD_ITEM_List_PushBack(self, aNewElement)
class DLISTIter:
def __init__(self,aList):
self.last = aList # last item is the start of list
def next(self): # get the next item
item = self.last
try:
item = item.Get()
except:
pass
if item is None: # if the item is None, then finish the iteration
raise StopIteration
else:
ret = None
# first item in list has "Get" as a DLIST
try:
ret = self.last.Get()
except:
ret = self.last # next items do not..
self.last = self.last.Next()
# when the iterated object can be casted down in inheritance, just do it..
if 'Cast' in dir(ret):
ret = ret.Cast()
return ret
def __iter__(self):
return self.DLISTIter(self)
def __init__(self):
"""__init__(DLIST<(BOARD_ITEM)> self) -> BOARD_ITEM_List"""
this = _pcbnew.new_BOARD_ITEM_List()
try:
self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pcbnew.delete_BOARD_ITEM_List
__del__ = lambda self: None
def GetPosition(self):
"""GetPosition(BOARD_ITEM_List self) -> wxPoint"""
return _pcbnew.BOARD_ITEM_List_GetPosition(self)
def GetCenter(self):
"""GetCenter(BOARD_ITEM_List self) -> wxPoint"""
return _pcbnew.BOARD_ITEM_List_GetCenter(self)
def SetPosition(self, aPos):
"""SetPosition(BOARD_ITEM_List self, wxPoint aPos)"""
return _pcbnew.BOARD_ITEM_List_SetPosition(self, aPos)
def IsConnected(self):
"""IsConnected(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsConnected(self)
def Next(self):
"""Next(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_Next(self)
def Back(self):
"""Back(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_Back(self)
def GetParent(self):
"""GetParent(BOARD_ITEM_List self) -> BOARD_ITEM"""
return _pcbnew.BOARD_ITEM_List_GetParent(self)
def GetLayer(self):
"""GetLayer(BOARD_ITEM_List self) -> LAYER_ID"""
return _pcbnew.BOARD_ITEM_List_GetLayer(self)
def GetLayerSet(self):
"""GetLayerSet(BOARD_ITEM_List self) -> LSET"""
return _pcbnew.BOARD_ITEM_List_GetLayerSet(self)
def SetLayer(self, aLayer):
"""SetLayer(BOARD_ITEM_List self, LAYER_ID aLayer)"""
return _pcbnew.BOARD_ITEM_List_SetLayer(self, aLayer)
def Draw(self, *args):
"""
Draw(BOARD_ITEM_List self, EDA_DRAW_PANEL * panel, wxDC * DC, GR_DRAWMODE aDrawMode, wxPoint offset)
Draw(BOARD_ITEM_List self, EDA_DRAW_PANEL * panel, wxDC * DC, GR_DRAWMODE aDrawMode)
"""
return _pcbnew.BOARD_ITEM_List_Draw(self, *args)
def SwapData(self, aImage):
"""SwapData(BOARD_ITEM_List self, BOARD_ITEM aImage)"""
return _pcbnew.BOARD_ITEM_List_SwapData(self, aImage)
def IsOnLayer(self, aLayer):
"""IsOnLayer(BOARD_ITEM_List self, LAYER_ID aLayer) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsOnLayer(self, aLayer)
def IsTrack(self):
"""IsTrack(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsTrack(self)
def IsLocked(self):
"""IsLocked(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsLocked(self)
def UnLink(self):
"""UnLink(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_UnLink(self)
def DeleteStructure(self):
"""DeleteStructure(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_DeleteStructure(self)
def ShowShape(self, aShape):
"""ShowShape(BOARD_ITEM_List self, STROKE_T aShape) -> wxString"""
return _pcbnew.BOARD_ITEM_List_ShowShape(self, aShape)
def Move(self, aMoveVector):
"""Move(BOARD_ITEM_List self, wxPoint aMoveVector)"""
return _pcbnew.BOARD_ITEM_List_Move(self, aMoveVector)
def Rotate(self, aRotCentre, aAngle):
"""Rotate(BOARD_ITEM_List self, wxPoint aRotCentre, double aAngle)"""
return _pcbnew.BOARD_ITEM_List_Rotate(self, aRotCentre, aAngle)
def Flip(self, aCentre):
"""Flip(BOARD_ITEM_List self, wxPoint aCentre)"""
return _pcbnew.BOARD_ITEM_List_Flip(self, aCentre)
def GetBoard(self):
"""GetBoard(BOARD_ITEM_List self) -> BOARD"""
return _pcbnew.BOARD_ITEM_List_GetBoard(self)
def GetLayerName(self):
"""GetLayerName(BOARD_ITEM_List self) -> wxString"""
return _pcbnew.BOARD_ITEM_List_GetLayerName(self)
def HitTest(self, *args):
"""
HitTest(BOARD_ITEM_List self, wxPoint aPosition) -> bool
HitTest(BOARD_ITEM_List self, EDA_RECT aRect, bool aContained=True, int aAccuracy=0) -> bool
HitTest(BOARD_ITEM_List self, EDA_RECT aRect, bool aContained=True) -> bool
HitTest(BOARD_ITEM_List self, EDA_RECT aRect) -> bool
"""
return _pcbnew.BOARD_ITEM_List_HitTest(self, *args)
def FormatInternalUnits(self, *args):
"""
FormatInternalUnits(BOARD_ITEM_List self, int aValue) -> string
FormatInternalUnits(BOARD_ITEM_List self, wxPoint aPoint) -> string
FormatInternalUnits(BOARD_ITEM_List self, wxSize aSize) -> string
"""
return _pcbnew.BOARD_ITEM_List_FormatInternalUnits(self, *args)
def FormatAngle(self, aAngle):
"""FormatAngle(BOARD_ITEM_List self, double aAngle) -> string"""
return _pcbnew.BOARD_ITEM_List_FormatAngle(self, aAngle)
def ViewGetLayers(self, aLayers, aCount):
"""ViewGetLayers(BOARD_ITEM_List self, int [] aLayers, int & aCount)"""
return _pcbnew.BOARD_ITEM_List_ViewGetLayers(self, aLayers, aCount)
def IncrementItemReference(self):
"""IncrementItemReference(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IncrementItemReference(self)
def Cast_to_TEXTE_PCB(self):
"""Cast_to_TEXTE_PCB(BOARD_ITEM_List self) -> TEXTE_PCB"""
return _pcbnew.BOARD_ITEM_List_Cast_to_TEXTE_PCB(self)
def Cast_to_DIMENSION(self):
"""Cast_to_DIMENSION(BOARD_ITEM_List self) -> DIMENSION"""
return _pcbnew.BOARD_ITEM_List_Cast_to_DIMENSION(self)
def Cast_to_MODULE(self):
"""Cast_to_MODULE(BOARD_ITEM_List self) -> MODULE"""
return _pcbnew.BOARD_ITEM_List_Cast_to_MODULE(self)
def Cast_to_TEXTE_MODULE(self):
"""Cast_to_TEXTE_MODULE(BOARD_ITEM_List self) -> TEXTE_MODULE"""
return _pcbnew.BOARD_ITEM_List_Cast_to_TEXTE_MODULE(self)
def Cast_to_DRAWSEGMENT(self):
"""Cast_to_DRAWSEGMENT(BOARD_ITEM_List self) -> DRAWSEGMENT"""
return _pcbnew.BOARD_ITEM_List_Cast_to_DRAWSEGMENT(self)
def Cast_to_MARKER_PCB(self):
"""Cast_to_MARKER_PCB(BOARD_ITEM_List self) -> MARKER_PCB"""
return _pcbnew.BOARD_ITEM_List_Cast_to_MARKER_PCB(self)
def Cast_to_BOARD(self):
"""Cast_to_BOARD(BOARD_ITEM_List self) -> BOARD"""
return _pcbnew.BOARD_ITEM_List_Cast_to_BOARD(self)
def Cast_to_EDGE_MODULE(self):
"""Cast_to_EDGE_MODULE(BOARD_ITEM_List self) -> EDGE_MODULE"""
return _pcbnew.BOARD_ITEM_List_Cast_to_EDGE_MODULE(self)
def Cast_to_D_PAD(self):
"""Cast_to_D_PAD(BOARD_ITEM_List self) -> D_PAD"""
return _pcbnew.BOARD_ITEM_List_Cast_to_D_PAD(self)
def Cast_to_TRACK(self):
"""Cast_to_TRACK(BOARD_ITEM_List self) -> TRACK"""
return _pcbnew.BOARD_ITEM_List_Cast_to_TRACK(self)
def Cast_to_VIA(self):
"""Cast_to_VIA(BOARD_ITEM_List self) -> VIA"""
return _pcbnew.BOARD_ITEM_List_Cast_to_VIA(self)
def Cast_to_ZONE_CONTAINER(self):
"""Cast_to_ZONE_CONTAINER(BOARD_ITEM_List self) -> ZONE_CONTAINER"""
return _pcbnew.BOARD_ITEM_List_Cast_to_ZONE_CONTAINER(self)
def Cast_to_PCB_TARGET(self):
"""Cast_to_PCB_TARGET(BOARD_ITEM_List self) -> PCB_TARGET"""
return _pcbnew.BOARD_ITEM_List_Cast_to_PCB_TARGET(self)
def Type(self):
"""Type(BOARD_ITEM_List self) -> KICAD_T"""
return _pcbnew.BOARD_ITEM_List_Type(self)
def SetTimeStamp(self, aNewTimeStamp):
"""SetTimeStamp(BOARD_ITEM_List self, time_t aNewTimeStamp)"""
return _pcbnew.BOARD_ITEM_List_SetTimeStamp(self, aNewTimeStamp)
def GetTimeStamp(self):
"""GetTimeStamp(BOARD_ITEM_List self) -> time_t"""
return _pcbnew.BOARD_ITEM_List_GetTimeStamp(self)
def GetList(self):
"""GetList(BOARD_ITEM_List self) -> DHEAD"""
return _pcbnew.BOARD_ITEM_List_GetList(self)
def SetParent(self, aParent):
"""SetParent(BOARD_ITEM_List self, EDA_ITEM aParent)"""
return _pcbnew.BOARD_ITEM_List_SetParent(self, aParent)
def SetList(self, aList):
"""SetList(BOARD_ITEM_List self, DHEAD aList)"""
return _pcbnew.BOARD_ITEM_List_SetList(self, aList)
def IsNew(self):
"""IsNew(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsNew(self)
def IsModified(self):
"""IsModified(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsModified(self)
def IsMoving(self):
"""IsMoving(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsMoving(self)
def IsDragging(self):
"""IsDragging(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsDragging(self)
def IsWireImage(self):
"""IsWireImage(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsWireImage(self)
def IsSelected(self):
"""IsSelected(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsSelected(self)
def IsResized(self):
"""IsResized(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsResized(self)
def IsHighlighted(self):
"""IsHighlighted(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsHighlighted(self)
def IsBrightened(self):
"""IsBrightened(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsBrightened(self)
def SetWireImage(self):
"""SetWireImage(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_SetWireImage(self)
def SetSelected(self):
"""SetSelected(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_SetSelected(self)
def SetHighlighted(self):
"""SetHighlighted(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_SetHighlighted(self)
def SetBrightened(self):
"""SetBrightened(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_SetBrightened(self)
def ClearSelected(self):
"""ClearSelected(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_ClearSelected(self)
def ClearHighlighted(self):
"""ClearHighlighted(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_ClearHighlighted(self)
def ClearBrightened(self):
"""ClearBrightened(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_ClearBrightened(self)
def SetModified(self):
"""SetModified(BOARD_ITEM_List self)"""
return _pcbnew.BOARD_ITEM_List_SetModified(self)
def GetState(self, type):
"""GetState(BOARD_ITEM_List self, int type) -> int"""
return _pcbnew.BOARD_ITEM_List_GetState(self, type)
def SetState(self, type, state):
"""SetState(BOARD_ITEM_List self, int type, int state)"""
return _pcbnew.BOARD_ITEM_List_SetState(self, type, state)
def GetStatus(self):
"""GetStatus(BOARD_ITEM_List self) -> STATUS_FLAGS"""
return _pcbnew.BOARD_ITEM_List_GetStatus(self)
def SetStatus(self, aStatus):
"""SetStatus(BOARD_ITEM_List self, STATUS_FLAGS aStatus)"""
return _pcbnew.BOARD_ITEM_List_SetStatus(self, aStatus)
def SetFlags(self, aMask):
"""SetFlags(BOARD_ITEM_List self, STATUS_FLAGS aMask)"""
return _pcbnew.BOARD_ITEM_List_SetFlags(self, aMask)
def ClearFlags(self, aMask=-1):
"""
ClearFlags(BOARD_ITEM_List self, STATUS_FLAGS aMask=-1)
ClearFlags(BOARD_ITEM_List self)
"""
return _pcbnew.BOARD_ITEM_List_ClearFlags(self, aMask)
def GetFlags(self):
"""GetFlags(BOARD_ITEM_List self) -> STATUS_FLAGS"""
return _pcbnew.BOARD_ITEM_List_GetFlags(self)
def SetImage(self, aItem):
"""SetImage(BOARD_ITEM_List self, EDA_ITEM aItem)"""
return _pcbnew.BOARD_ITEM_List_SetImage(self, aItem)
def SetForceVisible(self, aEnable):
"""SetForceVisible(BOARD_ITEM_List self, bool aEnable)"""
return _pcbnew.BOARD_ITEM_List_SetForceVisible(self, aEnable)
def GetMsgPanelInfo(self, aList):
"""GetMsgPanelInfo(BOARD_ITEM_List self, std::vector< MSG_PANEL_ITEM,std::allocator< MSG_PANEL_ITEM > > & aList)"""
return _pcbnew.BOARD_ITEM_List_GetMsgPanelInfo(self, aList)
def GetBoundingBox(self):
"""GetBoundingBox(BOARD_ITEM_List self) -> EDA_RECT"""
return _pcbnew.BOARD_ITEM_List_GetBoundingBox(self)
def Clone(self):
"""Clone(BOARD_ITEM_List self) -> EDA_ITEM"""
return _pcbnew.BOARD_ITEM_List_Clone(self)
def IterateForward(self, listStart, inspector, testData, scanTypes):
"""IterateForward(BOARD_ITEM_List self, EDA_ITEM listStart, INSPECTOR inspector, void const * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
return _pcbnew.BOARD_ITEM_List_IterateForward(self, listStart, inspector, testData, scanTypes)
def Visit(self, inspector, testData, scanTypes):
"""Visit(BOARD_ITEM_List self, INSPECTOR inspector, void const * testData, KICAD_T const [] scanTypes) -> SEARCH_RESULT"""
return _pcbnew.BOARD_ITEM_List_Visit(self, inspector, testData, scanTypes)
def GetClass(self):
"""GetClass(BOARD_ITEM_List self) -> wxString"""
return _pcbnew.BOARD_ITEM_List_GetClass(self)
def GetSelectMenuText(self):
"""GetSelectMenuText(BOARD_ITEM_List self) -> wxString"""
return _pcbnew.BOARD_ITEM_List_GetSelectMenuText(self)
def GetMenuImage(self):
"""GetMenuImage(BOARD_ITEM_List self) -> BITMAP_DEF"""
return _pcbnew.BOARD_ITEM_List_GetMenuImage(self)
def Matches(self, aSearchData, aAuxData, aFindLocation):
"""Matches(BOARD_ITEM_List self, wxFindReplaceData & aSearchData, void * aAuxData, wxPoint aFindLocation) -> bool"""
return _pcbnew.BOARD_ITEM_List_Matches(self, aSearchData, aAuxData, aFindLocation)
def Replace(self, *args):
"""
Replace(BOARD_ITEM_List self, wxFindReplaceData & aSearchData, wxString & aText) -> bool
Replace(BOARD_ITEM_List self, wxFindReplaceData & aSearchData, void * aAuxData=None) -> bool
Replace(BOARD_ITEM_List self, wxFindReplaceData & aSearchData) -> bool
"""
return _pcbnew.BOARD_ITEM_List_Replace(self, *args)
def IsReplaceable(self):
"""IsReplaceable(BOARD_ITEM_List self) -> bool"""
return _pcbnew.BOARD_ITEM_List_IsReplaceable(self)
def __lt__(self, aItem):
"""__lt__(BOARD_ITEM_List self, EDA_ITEM aItem) -> bool"""
return _pcbnew.BOARD_ITEM_List___lt__(self, aItem)
def Sort(self, aLeft, aRight):
"""Sort(BOARD_ITEM_List self, EDA_ITEM aLeft, EDA_ITEM aRight) -> bool"""
return _pcbnew.BOARD_ITEM_List_Sort(self, aLeft, aRight)
def ViewBBox(self):
"""ViewBBox(BOARD_ITEM_List self) -> BOX2I const"""
return _pcbnew.BOARD_ITEM_List_ViewBBox(self)
BOARD_ITEM_List_swigregister = _pcbnew.BOARD_ITEM_List_swigregister
BOARD_ITEM_List_swigregister(BOARD_ITEM_List)
class MODULE_List(DHEAD):
"""Proxy of C++ DLIST<(MODULE)> class"""
__swig_setmethods__ = {}
for _s in [DHEAD]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, MODULE_List, name, value)
__swig_getmethods__ = {}
for _s in [DHEAD]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, MODULE_List, name)
__repr__ = _swig_repr
def Get(self):
"""Get(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List_Get(self)
def __deref__(self):
"""__deref__(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List___deref__(self)
def GetFirst(self):
"""GetFirst(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List_GetFirst(self)
def GetLast(self):
"""GetLast(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List_GetLast(self)
def Append(self, *args):
"""
Append(MODULE_List self, MODULE aNewElement)
Append(MODULE_List self, MODULE_List aList)
"""
return _pcbnew.MODULE_List_Append(self, *args)
def Insert(self, aNewElement, aElementAfterMe):
"""Insert(MODULE_List self, MODULE aNewElement, MODULE aElementAfterMe)"""
return _pcbnew.MODULE_List_Insert(self, aNewElement, aElementAfterMe)
def Remove(self, aElement):
"""Remove(MODULE_List self, MODULE aElement) -> MODULE"""
return _pcbnew.MODULE_List_Remove(self, aElement)
def begin(self):
"""begin(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List_begin(self)
def end(self):
"""end(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List_end(self)
def PopFront(self):
"""PopFront(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List_PopFront(self)
def PopBack(self):
"""PopBack(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List_PopBack(self)
def PushFront(self, aNewElement):
"""PushFront(MODULE_List self, MODULE aNewElement)"""
return _pcbnew.MODULE_List_PushFront(self, aNewElement)
def PushBack(self, aNewElement):
"""PushBack(MODULE_List self, MODULE aNewElement)"""
return _pcbnew.MODULE_List_PushBack(self, aNewElement)
class DLISTIter:
def __init__(self,aList):
self.last = aList # last item is the start of list
def next(self): # get the next item
item = self.last
try:
item = item.Get()
except:
pass
if item is None: # if the item is None, then finish the iteration
raise StopIteration
else:
ret = None
# first item in list has "Get" as a DLIST
try:
ret = self.last.Get()
except:
ret = self.last # next items do not..
self.last = self.last.Next()
# when the iterated object can be casted down in inheritance, just do it..
if 'Cast' in dir(ret):
ret = ret.Cast()
return ret
def __iter__(self):
return self.DLISTIter(self)
def __init__(self):
"""__init__(DLIST<(MODULE)> self) -> MODULE_List"""
this = _pcbnew.new_MODULE_List()
try:
self.this.append(this)
except:
self.this = this
__swig_destroy__ = _pcbnew.delete_MODULE_List
__del__ = lambda self: None
def ClassOf(self, aItem):
"""ClassOf(MODULE_List self, EDA_ITEM aItem) -> bool"""
return _pcbnew.MODULE_List_ClassOf(self, aItem)
def Next(self):
"""Next(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List_Next(self)
def Back(self):
"""Back(MODULE_List self) -> MODULE"""
return _pcbnew.MODULE_List_Back(self)
def Copy(self, Module):
"""Copy(MODULE_List self, MODULE Module)"""
return _pcbnew.MODULE_List_Copy(self, Module)
def AddChild(self, aBoardItem, doAppend=True):
"""
AddChild(MODULE_List self, BOARD_ITEM aBoardItem, bool doAppend=True)
AddChild(MODULE_List self, BOARD_ITEM aBoardItem)
"""
return _pcbnew.MODULE_List_AddChild(self, aBoardItem, doAppend)
def DeleteChild(self, aBoardItem):
"""DeleteChild(MODULE_List self, BOARD_ITEM aBoardItem)"""
return _pcbnew.MODULE_List_DeleteChild(self, aBoardItem)
def RemoveChild(self, aBoardItem):
"""RemoveChild(MODULE_List self, BOARD_ITEM aBoardItem) -> BOARD_ITEM"""
return _pcbnew.MODULE_List_RemoveChild(self, aBoardItem)
def ClearAllNets(self):
"""ClearAllNets(MODULE_List self)"""
return _pcbnew.MODULE_List_ClearAllNets(self)
def CalculateBoundingBox(self):
"""CalculateBoundingBox(MODULE_List self)"""
return _pcbnew.MODULE_List_CalculateBoundingBox(self)
def GetFootprintRect(self):
"""GetFootprintRect(MODULE_List self) -> EDA_RECT"""
return _pcbnew.MODULE_List_GetFootprintRect(self)
def GetBoundingBox(self):
"""GetBoundingBox(MODULE_List self) -> EDA_RECT"""
return _pcbnew.MODULE_List_GetBoundingBox(self)
def Pads(self, *args):
"""
Pads(MODULE_List self) -> PAD_List
Pads(MODULE_List self) -> PAD_List
"""
return _pcbnew.MODULE_List_Pads(self, *args)
def GraphicalItems(self, *args):
"""
GraphicalItems(MODULE_List self) -> BOARD_ITEM_List
GraphicalItems(MODULE_List self) -> BOARD_ITEM_List
"""
return _pcbnew.MODULE_List_GraphicalItems(self, *args)
def Models(self, *args):
"""
Models(MODULE_List self) -> DLIST< S3D_MASTER >
Models(MODULE_List self) -> DLIST< S3D_MASTER > const &
"""
return _pcbnew.MODULE_List_Models(self, *args)
def SetPosition(self, aPos):
"""SetPosition(MODULE_List self, wxPoint aPos)"""
return _pcbnew.MODULE_List_SetPosition(self, aPos)
def GetPosition(self):
"""GetPosition(MODULE_List self) -> wxPoint"""
return _pcbnew.MODULE_List_GetPosition(self)
def SetOrientation(self, newangle):
"""SetOrientation(MODULE_List self, double newangle)"""
return _pcbnew.MODULE_List_SetOrientation(self, newangle)
def GetOrientation(self):
"""GetOrientation(MODULE_List self) -> double"""
return _pcbnew.MODULE_List_GetOrientation(self)
def GetFPID(self):
"""GetFPID(MODULE_List self) -> FPID"""
return _pcbnew.MODULE_List_GetFPID(self)
def SetFPID(self, aFPID):
"""SetFPID(MODULE_List self, FPID aFPID)"""
return _pcbnew.MODULE_List_SetFPID(self, aFPID)
def GetDescription(self):
"""GetDescription(MODULE_List self) -> wxString const &"""
return _pcbnew.MODULE_List_GetDescription(self)
def SetDescription(self, aDoc):
"""SetDescription(MODULE_List self, wxString const & aDoc)"""
return _pcbnew.MODULE_List_SetDescription(self, aDoc)
def GetKeywords(self):
"""GetKeywords(MODULE_List self) -> wxString const &"""
return _pcbnew.MODULE_List_GetKeywords(self)
def SetKeywords(self, aKeywords):
"""SetKeywords(MODULE_List self, wxString const & aKeywords)"""
return _pcbnew.MODULE_List_SetKeywords(self, aKeywords)