KiCad PCB EDA Suite
Loading...
Searching...
No Matches
fab_layer_index.h File Reference
#include <layer_ids.h>
#include <map>
#include <vector>

Go to the source code of this file.

Classes

class  FAB_LAYER_INDEX
 Board items grouped by authored layer and net, sorted by FabItemLess. More...
 

Functions

bool FabLayerHasVisibleItems (const BOARD &aBoard, PCB_LAYER_ID aLayer)
 True if the board draws visible text, graphics or zones on aLayer.
 
int FabTrackWidth (const PCB_TRACK &aTrack, PCB_LAYER_ID aLayer)
 Use only for traces and arcs; vias require a layer-specific width.
 
bool FabMaskShape (const PCB_SHAPE &aShape, PCB_LAYER_ID aLayer, PCB_SHAPE &aResult)
 Build an expanded mask copy of an exposed copper shape when needed.
 

Function Documentation

◆ FabLayerHasVisibleItems()

bool FabLayerHasVisibleItems ( const BOARD & aBoard,
PCB_LAYER_ID aLayer )

True if the board draws visible text, graphics or zones on aLayer.

Definition at line 169 of file fab_layer_index.cpp.

References BOARD::Drawings(), BOARD::Footprints(), BOARD::IsLayerEnabled(), text, and BOARD::Zones().

Referenced by ODB_MISC_ENTITY::GenerateMetadataFile().

◆ FabMaskShape()

◆ FabTrackWidth()

int FabTrackWidth ( const PCB_TRACK & aTrack,
PCB_LAYER_ID aLayer )

Use only for traces and arcs; vias require a layer-specific width.

Definition at line 112 of file fab_layer_index.cpp.

References PCB_TRACK::GetSolderMaskExpansion(), PCB_TRACK::GetWidth(), and IsSolderMaskLayer().

Referenced by FEATURES_MANAGER::AddTrack(), and PCB_IO_IPC2581::generateLayerSetNet().