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, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#include <collectors.h>
26#include <board_item.h> // class BOARD_ITEM
27
28#include <footprint.h>
29#include <netinfo.h>
30#include <pad.h>
31#include <pcb_track.h>
32#include <pcb_marker.h>
33#include <pcb_dimension.h>
34#include <zone.h>
35#include <pcb_shape.h>
36#include <pcb_group.h>
37#include <macros.h>
38#include <math/util.h> // for KiROUND
39
40
41const std::vector<KICAD_T> GENERAL_COLLECTOR::AllBoardItems = {
42 PCB_MARKER_T, // in m_markers
43 PCB_TEXT_T, // in m_drawings
44 PCB_REFERENCE_IMAGE_T, // in m_drawings
45 PCB_TEXTBOX_T, // in m_drawings
46 PCB_TABLE_T, // in m_drawings
47 PCB_TABLECELL_T, // in tables
48 PCB_SHAPE_T, // in m_drawings
49 PCB_DIM_ALIGNED_T, // in m_drawings
50 PCB_DIM_CENTER_T, // in m_drawings
51 PCB_DIM_RADIAL_T, // in m_drawings
52 PCB_DIM_ORTHOGONAL_T, // in m_drawings
53 PCB_DIM_LEADER_T, // in m_drawings
54 PCB_TARGET_T, // in m_drawings
55 PCB_VIA_T, // in m_tracks
56 PCB_TRACE_T, // in m_tracks
57 PCB_ARC_T, // in m_tracks
58 PCB_PAD_T, // in footprints
59 PCB_FIELD_T, // in footprints
60 PCB_FOOTPRINT_T, // in m_footprints
61 PCB_GROUP_T, // in m_groups
62 PCB_ZONE_T, // in m_zones
63 PCB_POINT_T, // in m_points
64 PCB_GENERATOR_T, // in m_generators
65 PCB_BARCODE_T, // in m_drawings
66};
67
68
69const std::vector<KICAD_T> GENERAL_COLLECTOR::BoardLevelItems = {
91};
92
93
94const std::vector<KICAD_T> GENERAL_COLLECTOR::Footprints = {
96};
97
98
99const std::vector<KICAD_T> GENERAL_COLLECTOR::PadsOrTracks = {
100 PCB_PAD_T,
101 PCB_VIA_T,
104};
105
106
107const std::vector<KICAD_T> GENERAL_COLLECTOR::FootprintItems = {
120 PCB_PAD_T,
126};
127
128
129const std::vector<KICAD_T> GENERAL_COLLECTOR::Tracks = {
131 PCB_ARC_T,
133};
134
135
136const std::vector<KICAD_T> GENERAL_COLLECTOR::Dimensions = {
142};
143
144
145const std::vector<KICAD_T> GENERAL_COLLECTOR::DraggableItems = {
147 PCB_VIA_T,
150};
151
152
154{
155 BOARD_ITEM* boardItem = nullptr;
156 FOOTPRINT* footprint = nullptr;
157 PCB_GROUP* group = nullptr;
158 PAD* pad = nullptr;
159 bool pad_through = false;
160 PCB_VIA* via = nullptr;
161 PCB_MARKER* marker = nullptr;
162 ZONE* zone = nullptr;
163 PCB_FIELD* field = nullptr;
164 PCB_TEXT* text = nullptr;
165 PCB_DIMENSION_BASE* dimension = nullptr;
166 PCB_SHAPE* shape = nullptr;
167
168 switch( aTestItem->Type() )
169 {
170 case PCB_PAD_T:
171 // there are pad specific visibility controls.
172 // Criteria to select a pad is:
173 // for smd pads: the footprint parent must be visible, and pads on the corresponding
174 // board side must be visible
175 // if pad is a thru hole, then it can be visible when its parent footprint is not.
176 // for through pads: pads on Front or Back board sides must be visible
177 pad = static_cast<PAD*>( aTestItem );
178 boardItem = pad;
179
180 if( ( pad->GetAttribute() != PAD_ATTRIB::SMD ) &&
181 ( pad->GetAttribute() != PAD_ATTRIB::CONN ) ) // a hole is present, so multiple layers
182 {
183 // proceed to the common tests below, but without the parent footprint test,
184 // by leaving footprint==NULL, but having pad != null
185 pad_through = true;
186 }
187
188 break;
189
190 case PCB_VIA_T: // vias are on many layers, so layer test is specific
191 via = static_cast<PCB_VIA*>( aTestItem );
192 boardItem = via;
193 break;
194
195 case PCB_TRACE_T:
196 case PCB_ARC_T:
197 if( m_Guide->IgnoreTracks() )
199
200 boardItem = static_cast<PCB_TRACK*>( aTestItem );
201 break;
202
203 case PCB_ZONE_T:
204 zone = static_cast<ZONE*>( aTestItem );
205
206 if( m_Guide->IgnoreNoNets() && zone->GetNetCode() == NETINFO_LIST::UNCONNECTED )
208
209 boardItem = zone;
210 break;
211
212 case PCB_SHAPE_T:
213 shape = static_cast<PCB_SHAPE*>( aTestItem );
214
215 if( m_Guide->IgnoreNoNets() && shape->GetNetCode() == NETINFO_LIST::UNCONNECTED )
217
218 boardItem = shape;
219 break;
220
221 case PCB_TEXTBOX_T:
222 case PCB_TABLE_T:
223 case PCB_TABLECELL_T:
224 if( m_Guide->IgnoreNoNets() )
226
227 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
228 break;
229
231 case PCB_DIM_CENTER_T:
232 case PCB_DIM_RADIAL_T:
234 case PCB_DIM_LEADER_T:
235 if( m_Guide->IgnoreNoNets() )
237
238 dimension = static_cast<PCB_DIMENSION_BASE*>( aTestItem );
239 boardItem = dimension;
240 break;
241
242 case PCB_TARGET_T:
243 if( m_Guide->IgnoreNoNets() )
245
246 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
247 break;
248
249 case PCB_POINT_T:
250 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
251 break;
252
253 case PCB_FIELD_T:
254 if( m_Guide->IgnoreNoNets() )
256
257 field = static_cast<PCB_FIELD*>( aTestItem );
258
259 if( !field->IsVisible() )
261
262 if( field->IsReference() && m_Guide->IgnoreFPReferences() )
264
265 if( field->IsValue() && m_Guide->IgnoreFPValues() )
267
269
270 case PCB_TEXT_T:
271 if( m_Guide->IgnoreNoNets() )
273
274 text = static_cast<PCB_TEXT*>( aTestItem );
275 boardItem = text;
276
277 if( text->GetParentFootprint() )
278 {
279 PCB_LAYER_ID layer = text->GetLayer();
280
281 if( m_Guide->IgnoreFPTextOnBack() && IsBackLayer( layer ) )
283
284 if( m_Guide->IgnoreFPTextOnFront() && IsFrontLayer( layer ) )
286 }
287
288 break;
289
290 case PCB_BARCODE_T:
291 if( m_Guide->IgnoreNoNets() )
293
294 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
295 break;
296
297 case PCB_FOOTPRINT_T:
298 footprint = static_cast<FOOTPRINT*>( aTestItem );
299 boardItem = footprint;
300 break;
301
302 case PCB_GROUP_T:
303 group = static_cast<PCB_GROUP*>( aTestItem );
304 boardItem = group;
305 break;
306
307 case PCB_MARKER_T:
308 marker = static_cast<PCB_MARKER*>( aTestItem );
309 boardItem = marker;
310 break;
311
312 default:
313 if( aTestItem->IsBOARD_ITEM() )
314 boardItem = static_cast<BOARD_ITEM*>( aTestItem );
315
316 break;
317 }
318
319 if( boardItem && !footprint )
320 footprint = boardItem->GetParentFootprint();
321
322 // common tests:
323
324 if( footprint )
325 {
326 if( m_Guide->IgnoreFootprintsOnBack() && footprint->GetSide() == B_Cu )
328
329 if( m_Guide->IgnoreFootprintsOnFront() && footprint->GetSide() == F_Cu )
331 }
332
333 // Pads are not sensitive to the layer visibility controls; they all have their own separate
334 // visibility controls.
335 if( pad )
336 {
337 if( m_Guide->IgnorePads() )
339
340 if( ! pad_through )
341 {
342 if( m_Guide->IgnorePadsOnFront() && pad->IsOnLayer(F_Cu ) )
344
345 if( m_Guide->IgnorePadsOnBack() && pad->IsOnLayer(B_Cu ) )
347 }
348 }
349
350 if( marker )
351 {
352 // Markers are not sensitive to the layer
353 if( marker->HitTest( m_refPos ) )
354 Append( aTestItem );
355
357 }
358
359 if( group )
360 {
361 // Groups are not sensitive to the layer ... ?
362 if( group->HitTest( m_refPos ) )
363 Append( aTestItem );
364
366 }
367
368 if( via )
369 {
370 auto type = via->GetViaType();
371
372 if( ( m_Guide->IgnoreThroughVias() && type == VIATYPE::THROUGH )
373 || ( m_Guide->IgnoreBlindBuriedVias() && ( type == VIATYPE::BLIND || type == VIATYPE::BURIED ) )
374 || ( m_Guide->IgnoreMicroVias() && type == VIATYPE::MICROVIA ) )
375 {
377 }
378 }
379
380 if( boardItem
381 && ( boardItem->IsOnLayer( m_Guide->GetPreferredLayer() ) )
382 && ( !boardItem->IsLocked() || !m_Guide->IgnoreLockedItems() ) )
383 {
384 // Footprints and their subcomponents: reference, value and pads are not sensitive to the
385 // layer visibility controls; they all have their own separate visibility controls.
386 // For vias, GetLayer() has no meaning, but IsOnLayer() works fine.
387 // User text and fields in a footprint *are* sensitive to layer visibility but they were
388 // already handled.
389
390 int accuracy = m_Guide->Accuracy();
391
392 if( zone )
393 {
394 if( zone->HitTestForCorner( m_refPos, accuracy * 2 ) || zone->HitTestForEdge( m_refPos, accuracy ) )
395 {
396 Append( zone );
398 }
399 else if( !m_Guide->IgnoreZoneFills() )
400 {
401 for( PCB_LAYER_ID layer : zone->GetLayerSet() )
402 {
403 if( m_Guide->IsLayerVisible( layer ) && zone->HitTestFilledArea( layer, m_refPos ) )
404 {
405 Append( zone );
407 }
408 }
409 }
410 }
411 else if( aTestItem == footprint )
412 {
413 if( footprint->HitTest( m_refPos, accuracy ) && footprint->HitTestAccurate( m_refPos, accuracy ) )
414 {
415 Append( footprint );
417 }
418 }
419 else if( pad || via )
420 {
421 if( boardItem->HitTest( m_refPos, accuracy ) )
422 {
423 Append( boardItem );
425 }
426 }
427 else
428 {
429 PCB_LAYER_ID layer = boardItem->GetLayer();
430
431 if( m_Guide->IsLayerVisible( layer ) )
432 {
433 if( dimension )
434 {
435 // Dimensions feel particularly hard to select, probably due to their noisy
436 // shape making it feel like they should have a larger boundary.
437 accuracy = KiROUND( accuracy * 1.5 );
438 }
439
440 if( boardItem->HitTest( m_refPos, accuracy ) )
441 {
442 Append( boardItem );
444 }
445 }
446 }
447 }
448
449 if( m_Guide->IncludeSecondary()
450 && ( !boardItem || !boardItem->IsLocked() || !m_Guide->IgnoreLockedItems() ) )
451 {
452 // For now, "secondary" means "tolerate any visible layer". It has no effect on other
453 // criteria, since there is a separate "ignore" control for those in the COLLECTORS_GUIDE
454
455 // Footprints and their subcomponents: reference, value and pads are not sensitive to the
456 // layer visibility controls; they all have their own separate visibility controls.
457 // For vias, GetLayer() has no meaning, but IsOnLayer() works fine.
458 // User text and fields in a footprint *are* sensitive to layer visibility but they were
459 // already handled.
460
461 int accuracy = m_Guide->Accuracy();
462
463 if( zone )
464 {
465 if( zone->HitTestForCorner( m_refPos, accuracy * 2 ) || zone->HitTestForEdge( m_refPos, accuracy ) )
466 {
467 Append2nd( zone );
469 }
470 else if( !m_Guide->IgnoreZoneFills() )
471 {
472 for( PCB_LAYER_ID layer : zone->GetLayerSet() )
473 {
474 if( m_Guide->IsLayerVisible( layer ) && zone->HitTestFilledArea( layer, m_refPos ) )
475 {
476 Append2nd( zone );
478 }
479 }
480 }
481 }
482 else if( aTestItem->Type() == PCB_FOOTPRINT_T )
483 {
484 // Already tested above, but Coverity can't figure that out
485 wxCHECK( footprint, INSPECT_RESULT::CONTINUE );
486
487 if( footprint->HitTest( m_refPos, accuracy ) && footprint->HitTestAccurate( m_refPos, accuracy ) )
488 {
489 Append2nd( footprint );
491 }
492 }
493 else if( pad || via )
494 {
495 if( boardItem->HitTest( m_refPos, accuracy ) )
496 {
497 Append2nd( boardItem );
499 }
500 }
501 else if( boardItem && m_Guide->IsLayerVisible( boardItem->GetLayer() ) )
502 {
503 if( dimension )
504 {
505 // Dimensions feel particularly hard to select, probably due to their noisy shape
506 // making it feel like they should have a larger boundary.
507 accuracy = KiROUND( accuracy * 1.5 );
508 }
509
510 if( boardItem->HitTest( m_refPos, accuracy ) )
511 {
512 Append2nd( boardItem );
514 }
515 }
516 }
517
518 return INSPECT_RESULT::CONTINUE; // always when collecting
519}
520
521
522void GENERAL_COLLECTOR::Collect( BOARD_ITEM* aItem, const std::vector<KICAD_T>& aScanTypes,
523 const VECTOR2I& aRefPos, const COLLECTORS_GUIDE& aGuide )
524{
525 Empty(); // empty the collection, primary criteria list
526 Empty2nd(); // empty the collection, secondary criteria list
527
528 // remember guide, pass it to Inspect()
529 SetGuide( &aGuide );
530
531 SetScanTypes( aScanTypes );
532
533 // remember where the snapshot was taken from and pass refPos to
534 // the Inspect() function.
535 SetRefPos( aRefPos );
536
537 wxCHECK_RET( aItem, "" );
538 aItem->Visit( m_inspector, nullptr, m_scanTypes );
539
540 // append 2nd list onto end of the first list
541 for( EDA_ITEM* item : m_List2nd )
542 Append( item );
543
544 Empty2nd();
545}
546
547
549{
550 // The Visit() function only visits the testItem if its type was in the the scanList,
551 // so therefore we can collect anything given to us here.
552 Append( testItem );
553
554 return INSPECT_RESULT::CONTINUE; // always when collecting
555}
556
557
558void PCB_TYPE_COLLECTOR::Collect( BOARD_ITEM* aBoard, const std::vector<KICAD_T>& aTypes )
559{
560 Empty();
561 aBoard->Visit( m_inspector, nullptr, aTypes );
562}
563
564
566{
567 BOARD_ITEM* item = (BOARD_ITEM*) testItem;
568
569 if( item->IsOnLayer( m_layer_id ) )
570 Append( testItem );
571
573}
574
575
576void PCB_LAYER_COLLECTOR::Collect( BOARD_ITEM* aBoard, const std::vector<KICAD_T>& aTypes )
577{
578 Empty();
579 aBoard->Visit( m_inspector, nullptr, aTypes );
580}
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
Definition box2.h:990
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:79
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
Definition board_item.h:232
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:314
FOOTPRINT * GetParentFootprint() const
An abstract base class whose derivatives may be passed to a GENERAL_COLLECTOR telling it what should ...
Definition collectors.h:54
INSPECTOR_FUNC m_inspector
Definition collector.h:246
void Empty()
Clear the list.
Definition collector.h:91
VECTOR2I m_refPos
Definition collector.h:248
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:213
void SetRefPos(const VECTOR2I &aRefPos)
Definition collector.h:215
std::vector< KICAD_T > m_scanTypes
Definition collector.h:245
void Append(EDA_ITEM *item)
Add an item to the end of the list.
Definition collector.h:101
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:98
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:110
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:127
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:233
virtual bool IsVisible() const
Definition eda_text.h:187
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:69
void SetGuide(const COLLECTORS_GUIDE *aGuide)
Record which COLLECTORS_GUIDE to use.
Definition collectors.h:291
static const std::vector< KICAD_T > PadsOrTracks
A scan list for PADs, TRACKs, or VIAs.
Definition collectors.h:99
void Append2nd(EDA_ITEM *item)
Definition collectors.h:281
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:215
static const std::vector< KICAD_T > Footprints
A scan list for only FOOTPRINTs.
Definition collectors.h:94
static const std::vector< KICAD_T > AllBoardItems
A scan list for all editable board items.
Definition collectors.h:41
static const std::vector< KICAD_T > Tracks
A scan list for only TRACKs and ARCs.
Definition collectors.h:129
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:136
static const std::vector< KICAD_T > FootprintItems
A scan list for primary footprint items.
Definition collectors.h:107
const COLLECTORS_GUIDE * m_Guide
Determine which items are to be collected by Inspect().
Definition collectors.h:220
static const std::vector< KICAD_T > DraggableItems
A scan list for items that can be dragged.
Definition collectors.h:145
bool IsBOARD_ITEM() const
Definition view_item.h:102
static const int UNCONNECTED
Constant that holds the "unconnected net" number (typically 0) all items "connected" to this net are ...
Definition netinfo.h:365
Definition pad.h:54
Abstract dimension API.
bool IsReference() const
Definition pcb_field.h:68
bool IsValue() const
Definition pcb_field.h:69
A set of BOARD_ITEMs (i.e., without duplicates).
Definition pcb_group.h:53
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:575
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:72
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:74
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:713
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:720
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:820
virtual LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
Definition zone.h:136
INSPECT_RESULT
Definition eda_item.h:44
bool IsFrontLayer(PCB_LAYER_ID aLayerId)
Layer classification: check if it's a front layer.
Definition layer_ids.h:779
bool IsBackLayer(PCB_LAYER_ID aLayerId)
Layer classification: check if it's a back layer.
Definition layer_ids.h:802
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:60
@ B_Cu
Definition layer_ids.h:65
@ F_Cu
Definition layer_ids.h:64
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:83
@ SMD
Smd pad, appears on the solder paste layer (default)
Definition padstack.h:83
@ CONN
Like smd, does not appear on the solder paste layer (default) Note: also has a special attribute in G...
Definition padstack.h:84
Class to handle a set of BOARD_ITEMs.
@ THROUGH
Definition pcb_track.h:68
@ MICROVIA
Definition pcb_track.h:71
const int accuracy
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
Definition typeinfo.h:88
@ PCB_DIM_ORTHOGONAL_T
class PCB_DIM_ORTHOGONAL, a linear dimension constrained to x/y
Definition typeinfo.h:106
@ PCB_DIM_LEADER_T
class PCB_DIM_LEADER, a leader dimension (graphic item)
Definition typeinfo.h:103
@ PCB_GENERATOR_T
class PCB_GENERATOR, generator on a layer
Definition typeinfo.h:91
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
Definition typeinfo.h:97
@ PCB_DIM_CENTER_T
class PCB_DIM_CENTER, a center point marking (graphic item)
Definition typeinfo.h:104
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs
Definition typeinfo.h:111
@ PCB_TEXTBOX_T
class PCB_TEXTBOX, wrapped text on a layer
Definition typeinfo.h:93
@ PCB_ZONE_T
class ZONE, a copper pour area
Definition typeinfo.h:108
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
Definition typeinfo.h:92
@ PCB_REFERENCE_IMAGE_T
class PCB_REFERENCE_IMAGE, bitmap on a layer
Definition typeinfo.h:89
@ PCB_FIELD_T
class PCB_FIELD, text associated with a footprint property
Definition typeinfo.h:90
@ PCB_MARKER_T
class PCB_MARKER, a marker used to show something
Definition typeinfo.h:99
@ PCB_BARCODE_T
class PCB_BARCODE, a barcode (graphic item)
Definition typeinfo.h:101
@ PCB_TARGET_T
class PCB_TARGET, a target (graphic item)
Definition typeinfo.h:107
@ PCB_TABLECELL_T
class PCB_TABLECELL, PCB_TEXTBOX for use in tables
Definition typeinfo.h:95
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
Definition typeinfo.h:86
@ PCB_DIM_ALIGNED_T
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
Definition typeinfo.h:102
@ PCB_PAD_T
class PAD, a pad in a footprint
Definition typeinfo.h:87
@ PCB_ARC_T
class PCB_ARC, an arc track segment on a copper layer
Definition typeinfo.h:98
@ PCB_TABLE_T
class PCB_TABLE, table of PCB_TABLECELLs
Definition typeinfo.h:94
@ PCB_POINT_T
class PCB_POINT, a 0-dimensional point
Definition typeinfo.h:113
@ PCB_TRACE_T
class PCB_TRACK, a track segment (segment on a copper layer)
Definition typeinfo.h:96
@ PCB_DIM_RADIAL_T
class PCB_DIM_RADIAL, a radius or diameter dimension
Definition typeinfo.h:105
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:695