KiCad PCB EDA Suite
Loading...
Searching...
No Matches
collectors.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2007-2008 SoftPLC Corporation, Dick Hollenbeck <[email protected]>
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#include <collectors.h>
22#include <board_item.h> // class BOARD_ITEM
23
24#include <footprint.h>
25#include <netinfo.h>
26#include <pad.h>
27#include <pcb_track.h>
28#include <pcb_marker.h>
29#include <pcb_dimension.h>
30#include <zone.h>
31#include <pcb_shape.h>
32#include <pcb_group.h>
33#include <macros.h>
34#include <math/util.h> // for KiROUND
35
36
37const std::vector<KICAD_T> GENERAL_COLLECTOR::AllBoardItems = {
38 PCB_MARKER_T, // in m_markers
39 PCB_TEXT_T, // in m_drawings
40 PCB_REFERENCE_IMAGE_T, // in m_drawings
41 PCB_TEXTBOX_T, // in m_drawings
42 PCB_TABLE_T, // in m_drawings
43 PCB_TABLECELL_T, // in tables
44 PCB_SHAPE_T, // in m_drawings
45 PCB_DIM_ALIGNED_T, // in m_drawings
46 PCB_DIM_CENTER_T, // in m_drawings
47 PCB_DIM_RADIAL_T, // in m_drawings
48 PCB_DIM_ORTHOGONAL_T, // in m_drawings
49 PCB_DIM_LEADER_T, // in m_drawings
50 PCB_TARGET_T, // in m_drawings
51 PCB_VIA_T, // in m_tracks
52 PCB_TRACE_T, // in m_tracks
53 PCB_ARC_T, // in m_tracks
54 PCB_PAD_T, // in footprints
55 PCB_FIELD_T, // in footprints
56 PCB_FOOTPRINT_T, // in m_footprints
57 PCB_GROUP_T, // in m_groups
58 PCB_ZONE_T, // in m_zones
59 PCB_POINT_T, // in m_points
60 PCB_GENERATOR_T, // in m_generators
61 PCB_BARCODE_T, // in m_drawings
62};
63
64
65const std::vector<KICAD_T> GENERAL_COLLECTOR::BoardLevelItems = {
87};
88
89
90const std::vector<KICAD_T> GENERAL_COLLECTOR::Footprints = {
92};
93
94
95const std::vector<KICAD_T> GENERAL_COLLECTOR::PadsOrTracks = {
100};
101
102
103const std::vector<KICAD_T> GENERAL_COLLECTOR::FootprintItems = {
116 PCB_PAD_T,
122};
123
124
125const std::vector<KICAD_T> GENERAL_COLLECTOR::Tracks = {
127 PCB_ARC_T,
129};
130
131
132const std::vector<KICAD_T> GENERAL_COLLECTOR::Dimensions = {
138};
139
140
141const std::vector<KICAD_T> GENERAL_COLLECTOR::DraggableItems = {
143 PCB_VIA_T,
146};
147
148
150{
151 BOARD_ITEM* boardItem = nullptr;
152 FOOTPRINT* footprint = nullptr;
153 PCB_GROUP* group = nullptr;
154 PAD* pad = nullptr;
155 bool pad_through = false;
156 PCB_VIA* via = nullptr;
157 PCB_MARKER* marker = nullptr;
158 ZONE* zone = nullptr;
159 PCB_FIELD* field = nullptr;
160 PCB_TEXT* text = nullptr;
161 PCB_DIMENSION_BASE* dimension = nullptr;
162 PCB_SHAPE* shape = nullptr;
163
164 switch( aTestItem->Type() )
165 {
166 case PCB_PAD_T:
167 // there are pad specific visibility controls.
168 // Criteria to select a pad is:
169 // for smd pads: the footprint parent must be visible, and pads on the corresponding
170 // board side must be visible
171 // if pad is a thru hole, then it can be visible when its parent footprint is not.
172 // for through pads: pads on Front or Back board sides must be visible
173 pad = static_cast<PAD*>( aTestItem );
174 boardItem = pad;
175
176 if( ( pad->GetAttribute() != PAD_ATTRIB::SMD ) &&
177 ( pad->GetAttribute() != PAD_ATTRIB::CONN ) ) // a hole is present, so multiple layers
178 {
179 // proceed to the common tests below, but without the parent footprint test,
180 // by leaving footprint==NULL, but having pad != null
181 pad_through = true;
182 }
183
184 break;
185
186 case PCB_VIA_T: // vias are on many layers, so layer test is specific
187 via = static_cast<PCB_VIA*>( aTestItem );
188 boardItem = via;
189 break;
190
191 case PCB_TRACE_T:
192 case PCB_ARC_T:
193 if( m_Guide->IgnoreTracks() )
195
196 boardItem = static_cast<PCB_TRACK*>( aTestItem );
197 break;
198
199 case PCB_ZONE_T:
200 zone = static_cast<ZONE*>( aTestItem );
201
202 if( m_Guide->IgnoreNoNets() && zone->GetNetCode() == NETINFO_LIST::UNCONNECTED )
204
205 boardItem = zone;
206 break;
207
208 case PCB_SHAPE_T:
209 shape = static_cast<PCB_SHAPE*>( aTestItem );
210
211 if( m_Guide->IgnoreNoNets() && shape->GetNetCode() == NETINFO_LIST::UNCONNECTED )
213
214 boardItem = shape;
215 break;
216
217 case PCB_TEXTBOX_T:
218 case PCB_TABLE_T:
219 case PCB_TABLECELL_T:
220 if( m_Guide->IgnoreNoNets() )
222
223 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
224 break;
225
227 case PCB_DIM_CENTER_T:
228 case PCB_DIM_RADIAL_T:
230 case PCB_DIM_LEADER_T:
231 if( m_Guide->IgnoreNoNets() )
233
234 dimension = static_cast<PCB_DIMENSION_BASE*>( aTestItem );
235 boardItem = dimension;
236 break;
237
238 case PCB_TARGET_T:
239 if( m_Guide->IgnoreNoNets() )
241
242 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
243 break;
244
245 case PCB_POINT_T:
246 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
247 break;
248
249 case PCB_FIELD_T:
250 if( m_Guide->IgnoreNoNets() )
252
253 field = static_cast<PCB_FIELD*>( aTestItem );
254
255 if( !field->IsVisible() )
257
258 if( field->IsReference() && m_Guide->IgnoreFPReferences() )
260
261 if( field->IsValue() && m_Guide->IgnoreFPValues() )
263
265
266 case PCB_TEXT_T:
267 if( m_Guide->IgnoreNoNets() )
269
270 text = static_cast<PCB_TEXT*>( aTestItem );
271 boardItem = text;
272
273 if( text->GetParentFootprint() )
274 {
275 PCB_LAYER_ID layer = text->GetLayer();
276
277 if( m_Guide->IgnoreFPTextOnBack() && IsBackLayer( layer ) )
279
280 if( m_Guide->IgnoreFPTextOnFront() && IsFrontLayer( layer ) )
282 }
283
284 break;
285
286 case PCB_BARCODE_T:
287 if( m_Guide->IgnoreNoNets() )
289
290 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
291 break;
292
293 case PCB_FOOTPRINT_T:
294 footprint = static_cast<FOOTPRINT*>( aTestItem );
295 boardItem = footprint;
296 break;
297
298 case PCB_GROUP_T:
299 group = static_cast<PCB_GROUP*>( aTestItem );
300 boardItem = group;
301 break;
302
303 case PCB_MARKER_T:
304 marker = static_cast<PCB_MARKER*>( aTestItem );
305 boardItem = marker;
306 break;
307
308 default:
309 if( aTestItem->IsBOARD_ITEM() )
310 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
311
312 break;
313 }
314
315 if( boardItem && !footprint )
316 footprint = boardItem->GetParentFootprint();
317
318 // common tests:
319
320 if( footprint )
321 {
322 if( m_Guide->IgnoreFootprintsOnBack() && footprint->GetSide() == B_Cu )
324
325 if( m_Guide->IgnoreFootprintsOnFront() && footprint->GetSide() == F_Cu )
327 }
328
329 // Pads are not sensitive to the layer visibility controls; they all have their own separate
330 // visibility controls.
331 if( pad )
332 {
333 if( m_Guide->IgnorePads() )
335
336 if( ! pad_through )
337 {
338 if( m_Guide->IgnorePadsOnFront() && pad->IsOnLayer(F_Cu ) )
340
341 if( m_Guide->IgnorePadsOnBack() && pad->IsOnLayer(B_Cu ) )
343 }
344 }
345
346 if( marker )
347 {
348 // Markers are not sensitive to the layer
349 if( marker->HitTest( m_refPos ) )
350 Append( aTestItem );
351
353 }
354
355 if( group )
356 {
357 // Groups are not sensitive to the layer ... ?
358 if( group->HitTest( m_refPos ) )
359 Append( aTestItem );
360
362 }
363
364 if( via )
365 {
366 auto type = via->GetViaType();
367
368 if( ( m_Guide->IgnoreThroughVias() && type == VIATYPE::THROUGH )
369 || ( m_Guide->IgnoreBlindBuriedVias() && ( type == VIATYPE::BLIND || type == VIATYPE::BURIED ) )
370 || ( m_Guide->IgnoreMicroVias() && type == VIATYPE::MICROVIA ) )
371 {
373 }
374 }
375
376 if( boardItem
377 && ( boardItem->IsOnLayer( m_Guide->GetPreferredLayer() ) )
378 && ( !boardItem->IsLocked() || !m_Guide->IgnoreLockedItems() ) )
379 {
380 // Footprints and their subcomponents: reference, value and pads are not sensitive to the
381 // layer visibility controls; they all have their own separate visibility controls.
382 // For vias, GetLayer() has no meaning, but IsOnLayer() works fine.
383 // User text and fields in a footprint *are* sensitive to layer visibility but they were
384 // already handled.
385
386 int accuracy = m_Guide->Accuracy();
387
388 if( zone )
389 {
390 if( zone->HitTestForCorner( m_refPos, accuracy * 2 ) || zone->HitTestForEdge( m_refPos, accuracy ) )
391 {
392 Append( zone );
394 }
395 else if( !m_Guide->IgnoreZoneFills() )
396 {
397 for( PCB_LAYER_ID layer : zone->GetLayerSet() )
398 {
399 if( m_Guide->IsLayerVisible( layer ) && zone->HitTestFilledArea( layer, m_refPos ) )
400 {
401 Append( zone );
403 }
404 }
405 }
406 }
407 else if( aTestItem == footprint )
408 {
409 if( footprint->HitTest( m_refPos, accuracy ) && footprint->HitTestAccurate( m_refPos, accuracy ) )
410 {
411 Append( footprint );
413 }
414 }
415 else if( pad || via )
416 {
417 if( boardItem->HitTest( m_refPos, accuracy ) )
418 {
419 Append( boardItem );
421 }
422 }
423 else
424 {
425 PCB_LAYER_ID layer = boardItem->GetLayer();
426
427 if( m_Guide->IsLayerVisible( layer ) )
428 {
429 if( dimension )
430 {
431 // Dimensions feel particularly hard to select, probably due to their noisy
432 // shape making it feel like they should have a larger boundary.
433 accuracy = KiROUND( accuracy * 1.5 );
434 }
435
436 if( boardItem->HitTest( m_refPos, accuracy ) )
437 {
438 Append( boardItem );
440 }
441 }
442 }
443 }
444
445 if( m_Guide->IncludeSecondary()
446 && ( !boardItem || !boardItem->IsLocked() || !m_Guide->IgnoreLockedItems() ) )
447 {
448 // For now, "secondary" means "tolerate any visible layer". It has no effect on other
449 // criteria, since there is a separate "ignore" control for those in the COLLECTORS_GUIDE
450
451 // Footprints and their subcomponents: reference, value and pads are not sensitive to the
452 // layer visibility controls; they all have their own separate visibility controls.
453 // For vias, GetLayer() has no meaning, but IsOnLayer() works fine.
454 // User text and fields in a footprint *are* sensitive to layer visibility but they were
455 // already handled.
456
457 int accuracy = m_Guide->Accuracy();
458
459 if( zone )
460 {
461 if( zone->HitTestForCorner( m_refPos, accuracy * 2 ) || zone->HitTestForEdge( m_refPos, accuracy ) )
462 {
463 Append2nd( zone );
465 }
466 else if( !m_Guide->IgnoreZoneFills() )
467 {
468 for( PCB_LAYER_ID layer : zone->GetLayerSet() )
469 {
470 if( m_Guide->IsLayerVisible( layer ) && zone->HitTestFilledArea( layer, m_refPos ) )
471 {
472 Append2nd( zone );
474 }
475 }
476 }
477 }
478 else if( aTestItem->Type() == PCB_FOOTPRINT_T )
479 {
480 // Already tested above, but Coverity can't figure that out
481 wxCHECK( footprint, INSPECT_RESULT::CONTINUE );
482
483 if( footprint->HitTest( m_refPos, accuracy ) && footprint->HitTestAccurate( m_refPos, accuracy ) )
484 {
485 Append2nd( footprint );
487 }
488 }
489 else if( pad || via )
490 {
491 if( boardItem->HitTest( m_refPos, accuracy ) )
492 {
493 Append2nd( boardItem );
495 }
496 }
497 else if( boardItem && m_Guide->IsLayerVisible( boardItem->GetLayer() ) )
498 {
499 if( dimension )
500 {
501 // Dimensions feel particularly hard to select, probably due to their noisy shape
502 // making it feel like they should have a larger boundary.
503 accuracy = KiROUND( accuracy * 1.5 );
504 }
505
506 if( boardItem->HitTest( m_refPos, accuracy ) )
507 {
508 Append2nd( boardItem );
510 }
511 }
512 }
513
514 return INSPECT_RESULT::CONTINUE; // always when collecting
515}
516
517
518void GENERAL_COLLECTOR::Collect( BOARD_ITEM* aItem, const std::vector<KICAD_T>& aScanTypes,
519 const VECTOR2I& aRefPos, const COLLECTORS_GUIDE& aGuide )
520{
521 Empty(); // empty the collection, primary criteria list
522 Empty2nd(); // empty the collection, secondary criteria list
523
524 // remember guide, pass it to Inspect()
525 SetGuide( &aGuide );
526
527 SetScanTypes( aScanTypes );
528
529 // remember where the snapshot was taken from and pass refPos to
530 // the Inspect() function.
531 SetRefPos( aRefPos );
532
533 wxCHECK_RET( aItem, "" );
534 aItem->Visit( m_inspector, nullptr, m_scanTypes );
535
536 // append 2nd list onto end of the first list
537 for( EDA_ITEM* item : m_List2nd )
538 Append( item );
539
540 Empty2nd();
541}
542
543
545{
546 // The Visit() function only visits the testItem if its type was in the the scanList,
547 // so therefore we can collect anything given to us here.
548 Append( testItem );
549
550 return INSPECT_RESULT::CONTINUE; // always when collecting
551}
552
553
554void PCB_TYPE_COLLECTOR::Collect( BOARD_ITEM* aBoard, const std::vector<KICAD_T>& aTypes )
555{
556 Empty();
557 aBoard->Visit( m_inspector, nullptr, aTypes );
558}
559
560
562{
563 BOARD_ITEM* item = (BOARD_ITEM*) testItem;
564
565 if( item->IsOnLayer( m_layer_id ) )
566 Append( testItem );
567
569}
570
571
572void PCB_LAYER_COLLECTOR::Collect( BOARD_ITEM* aBoard, const std::vector<KICAD_T>& aTypes )
573{
574 Empty();
575 aBoard->Visit( m_inspector, nullptr, aTypes );
576}
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
Definition box2.h:986
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:81
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
Definition board_item.h:265
bool IsLocked() const override
virtual bool IsOnLayer(PCB_LAYER_ID aLayer) const
Test to see if this object is on the given layer.
Definition board_item.h:347
FOOTPRINT * GetParentFootprint() const
An abstract base class whose derivatives may be passed to a GENERAL_COLLECTOR telling it what should ...
Definition collectors.h:50
INSPECTOR_FUNC m_inspector
Definition collector.h:242
void Empty()
Clear the list.
Definition collector.h:87
VECTOR2I m_refPos
Definition collector.h:244
void SetScanTypes(const std::vector< KICAD_T > &aTypes)
Record the list of KICAD_T types to consider for collection by the Inspect() function.
Definition collector.h:209
void SetRefPos(const VECTOR2I &aRefPos)
Definition collector.h:211
std::vector< KICAD_T > m_scanTypes
Definition collector.h:241
void Append(EDA_ITEM *item)
Add an item to the end of the list.
Definition collector.h:97
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:96
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:108
virtual INSPECT_RESULT Visit(INSPECTOR inspector, void *testData, const std::vector< KICAD_T > &aScanTypes)
May be re-implemented for each derived class in order to handle all the types given by its member dat...
Definition eda_item.cpp:152
virtual bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const
Test if aPosition is inside or on the boundary of this item.
Definition eda_item.h:243
virtual bool IsVisible() const
Definition eda_text.h:208
PCB_LAYER_ID GetSide() const
Use instead of IsFlipped() when you also need to account for unsided footprints (those purely on user...
bool HitTestAccurate(const VECTOR2I &aPosition, int aAccuracy=0) const
Test if a point is inside the bounding polygon of the footprint.
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
static const std::vector< KICAD_T > BoardLevelItems
A scan list for all primary board items, omitting items which are subordinate to a FOOTPRINT,...
Definition collectors.h:65
void SetGuide(const COLLECTORS_GUIDE *aGuide)
Record which COLLECTORS_GUIDE to use.
Definition collectors.h:287
static const std::vector< KICAD_T > PadsOrTracks
A scan list for PADs, TRACKs, or VIAs.
Definition collectors.h:95
void Append2nd(EDA_ITEM *item)
Definition collectors.h:277
INSPECT_RESULT Inspect(EDA_ITEM *aTestItem, void *aTestData) override
The examining function within the INSPECTOR which is passed to the Iterate function.
std::vector< EDA_ITEM * > m_List2nd
A place to hold collected objects which don't match precisely the search criteria,...
Definition collectors.h:211
static const std::vector< KICAD_T > Footprints
A scan list for only FOOTPRINTs.
Definition collectors.h:90
static const std::vector< KICAD_T > AllBoardItems
A scan list for all editable board items.
Definition collectors.h:37
static const std::vector< KICAD_T > Tracks
A scan list for only TRACKs and ARCs.
Definition collectors.h:125
void Collect(BOARD_ITEM *aItem, const std::vector< KICAD_T > &aScanList, const VECTOR2I &aRefPos, const COLLECTORS_GUIDE &aGuide)
Scan a BOARD_ITEM using this class's Inspector method, which does the collection.
static const std::vector< KICAD_T > Dimensions
A scan list for dimensions.
Definition collectors.h:132
static const std::vector< KICAD_T > FootprintItems
A scan list for primary footprint items.
Definition collectors.h:103
const COLLECTORS_GUIDE * m_Guide
Determine which items are to be collected by Inspect().
Definition collectors.h:216
static const std::vector< KICAD_T > DraggableItems
A scan list for items that can be dragged.
Definition collectors.h:141
bool IsBOARD_ITEM() const
Definition view_item.h:98
static const int UNCONNECTED
Constant that holds the "unconnected net" number (typically 0) all items "connected" to this net are ...
Definition netinfo.h:256
Definition pad.h:61
Abstract dimension API.
bool IsReference() const
Definition pcb_field.h:66
bool IsValue() const
Definition pcb_field.h:67
A set of BOARD_ITEMs (i.e., without duplicates).
Definition pcb_group.h:49
void Collect(BOARD_ITEM *aBoard, const std::vector< KICAD_T > &aTypes)
Test a BOARD_ITEM using this class's Inspector method, which does the collection.
INSPECT_RESULT Inspect(EDA_ITEM *testItem, void *testData) override
The examining function within the INSPECTOR which is passed to the iterate function.
PCB_LAYER_ID m_layer_id
Definition collectors.h:571
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
Definition pcb_marker.h:68
void Collect(BOARD_ITEM *aBoard, const std::vector< KICAD_T > &aTypes)
Collect BOARD_ITEM objects using this class's Inspector method, which does the collection.
INSPECT_RESULT Inspect(EDA_ITEM *testItem, void *testData) override
The examining function within the INSPECTOR which is passed to the Iterate function.
Handle a list of polygons defining a copper zone.
Definition zone.h:70
bool HitTestForCorner(const VECTOR2I &refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX *aCornerHit=nullptr) const
Test if the given VECTOR2I is near a corner.
Definition zone.cpp:861
bool HitTestForEdge(const VECTOR2I &refPos, int aAccuracy, SHAPE_POLY_SET::VERTEX_INDEX *aCornerHit=nullptr) const
Test if the given VECTOR2I is near a segment defined by 2 corners.
Definition zone.cpp:873
bool HitTestFilledArea(PCB_LAYER_ID aLayer, const VECTOR2I &aRefPos, int aAccuracy=0) const
Test if the given VECTOR2I is within the bounds of a filled area of this zone.
Definition zone.cpp:979
virtual LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
Definition zone.h:133
INSPECT_RESULT
Definition eda_item.h:42
bool IsFrontLayer(PCB_LAYER_ID aLayerId)
Layer classification: check if it's a front layer.
Definition layer_ids.h:778
bool IsBackLayer(PCB_LAYER_ID aLayerId)
Layer classification: check if it's a back layer.
Definition layer_ids.h:801
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:56
@ B_Cu
Definition layer_ids.h:61
@ F_Cu
Definition layer_ids.h:60
This file contains miscellaneous commonly used macros and functions.
#define KI_FALLTHROUGH
The KI_FALLTHROUGH macro is to be used when switch statement cases should purposely fallthrough from ...
Definition macros.h:79
@ SMD
Smd pad, appears on the solder paste layer (default)
Definition padstack.h:99
@ CONN
Like smd, does not appear on the solder paste layer (default) Note: also has a special attribute in G...
Definition padstack.h:100
Class to handle a set of BOARD_ITEMs.
const int accuracy
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
Definition typeinfo.h:81
@ PCB_DIM_ORTHOGONAL_T
class PCB_DIM_ORTHOGONAL, a linear dimension constrained to x/y
Definition typeinfo.h:99
@ PCB_DIM_LEADER_T
class PCB_DIM_LEADER, a leader dimension (graphic item)
Definition typeinfo.h:96
@ PCB_GENERATOR_T
class PCB_GENERATOR, generator on a layer
Definition typeinfo.h:84
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
Definition typeinfo.h:90
@ PCB_DIM_CENTER_T
class PCB_DIM_CENTER, a center point marking (graphic item)
Definition typeinfo.h:97
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs
Definition typeinfo.h:104
@ PCB_TEXTBOX_T
class PCB_TEXTBOX, wrapped text on a layer
Definition typeinfo.h:86
@ PCB_ZONE_T
class ZONE, a copper pour area
Definition typeinfo.h:101
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
Definition typeinfo.h:85
@ PCB_REFERENCE_IMAGE_T
class PCB_REFERENCE_IMAGE, bitmap on a layer
Definition typeinfo.h:82
@ PCB_FIELD_T
class PCB_FIELD, text associated with a footprint property
Definition typeinfo.h:83
@ PCB_MARKER_T
class PCB_MARKER, a marker used to show something
Definition typeinfo.h:92
@ PCB_BARCODE_T
class PCB_BARCODE, a barcode (graphic item)
Definition typeinfo.h:94
@ PCB_TARGET_T
class PCB_TARGET, a target (graphic item)
Definition typeinfo.h:100
@ PCB_TABLECELL_T
class PCB_TABLECELL, PCB_TEXTBOX for use in tables
Definition typeinfo.h:88
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
Definition typeinfo.h:79
@ PCB_DIM_ALIGNED_T
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
Definition typeinfo.h:95
@ PCB_PAD_T
class PAD, a pad in a footprint
Definition typeinfo.h:80
@ PCB_ARC_T
class PCB_ARC, an arc track segment on a copper layer
Definition typeinfo.h:91
@ PCB_TABLE_T
class PCB_TABLE, table of PCB_TABLECELLs
Definition typeinfo.h:87
@ PCB_POINT_T
class PCB_POINT, a 0-dimensional point
Definition typeinfo.h:106
@ PCB_TRACE_T
class PCB_TRACK, a track segment (segment on a copper layer)
Definition typeinfo.h:89
@ PCB_DIM_RADIAL_T
class PCB_DIM_RADIAL, a radius or diameter dimension
Definition typeinfo.h:98
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:683