KiCad PCB EDA Suite
Loading...
Searching...
No Matches
fab_layer_index.cpp File Reference
#include "fab_layer_index.h"
#include "fab_item_order.h"
#include <algorithm>
#include <board.h>
#include <board_connected_item.h>
#include <eda_text.h>
#include <footprint.h>
#include <pad.h>
#include <pcb_field.h>
#include <pcb_shape.h>
#include <pcb_track.h>
#include <zone.h>

Go to the source code of this file.

Functions

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.
 
bool FabLayerHasVisibleItems (const BOARD &aBoard, PCB_LAYER_ID aLayer)
 True if the board draws visible text, graphics or zones on aLayer.
 

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().