KiCad PCB EDA Suite
Loading...
Searching...
No Matches
layer_utils.h File Reference
#include <wx/string.h>
#include <board.h>
#include <footprint.h>
#include <lseq.h>
#include <lset.h>

Go to the source code of this file.

Namespaces

namespace  LAYER_UTILS
 Utility functions for dealing with layers in the context of a PCB board.s.
 

Functions

wxString LAYER_UTILS::AccumulateNames (const LSEQ &aLayers, const BOARD *aBoard)
 Accumulate layer names from a layer set into a comma separated string.
 
wxString LAYER_UTILS::AccumulateNames (const LSET &aLayers, const BOARD *aBoard)
 Accumulate layer names from a layer set into a comma separated string, in UI order.
 
LSET LAYER_UTILS::GetAllFootprintLayers (const FOOTPRINT &aFootprint)
 Return the union of layers referenced by every item inside the footprint (including graphic items, pads, zones, fields, and nested groups).
 
LSET LAYER_UTILS::GetOrphanedFootprintLayers (const FOOTPRINT &aFootprint, const LSET &aCustomUserLayers)
 Compute the set of footprint-used layers that would be orphaned if the footprint's allowed layer set is restricted to aCustomUserLayers (plus the tech and user masks).