48 wxCHECK2( aSubItem, );
58 const LSET& aCustomUserLayers )
65 wxCHECK2( aSubItem, );
72 const PAD*
pad =
static_cast<const PAD*
>( aSubItem );
75 if( copper.count() > 1 )
79 if( !
pad->HasExplicitDefinitionForLayer( layer ) )
80 itemLayers.
reset( layer );
85 usedLayers |= itemLayers;
89 usedLayers &= ~aCustomUserLayers;
90 usedLayers &=
~LSET::AllTechMask();
91 usedLayers &=
~LSET::UserMask();
97 usedLayers.reset(
Rescue );
BASE_SET & reset(size_t pos)
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.
Information pertinent to a Pcbnew printed circuit board.
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
KICAD_T Type() const
Returns the type of object.
LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
LSET is a set of PCB_LAYER_IDs.
static const LSET & AllCuMask()
return AllCuMask( MAX_CU_LAYERS );
wxString LayerName(int aLayer)
Returns the default display name for a given layer.
PCB_LAYER_ID
A quick note on layer IDs:
wxString AccumulateNames(const LSEQ &aLayers, const BOARD *aBoard)
Accumulate layer names from a layer set into a comma separated string.
LSET GetAllFootprintLayers(const FOOTPRINT &aFootprint)
Return the union of layers referenced by every item inside the footprint (including graphic items,...
LSET 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 ...
wxString result
Test unit parsing edge cases and error handling.
@ PCB_PAD_T
class PAD, a pad in a footprint