50 wxCHECK2( aSubItem, );
66 wxCHECK2( aSubItem, );
73 const PAD*
pad =
static_cast<const PAD*
>( aSubItem );
81 if( !
pad->HasExplicitDefinitionForLayer( layer ) )
82 itemLayers.
reset( layer );
87 usedLayers |= itemLayers;
104 return copperCount + copperCount % 2;
109 const LSET& aCustomUserLayers )
113 usedLayers &= ~aCustomUserLayers;
114 usedLayers &=
~LSET::AllTechMask();
115 usedLayers &=
~LSET::UserMask();
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 );
static LSET AllCuMask(int aCuLayerCount)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
static const LSET & InternalCuMask()
Return a complete set of internal copper layers which is all Cu layers except F_Cu and B_Cu.
wxString LayerName(int aLayer)
Returns the default display name for a given layer.
size_t CopperLayerToOrdinal(PCB_LAYER_ID aLayer)
Converts KiCad copper layer enum to an ordinal between the front and back layers.
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 GetUsedFootprintLayers(const FOOTPRINT &aFootprint)
Return the layers the footprint's items actually occupy.
int MinimalCopperLayerCount(const LSET &aLayers)
Return the smallest even copper layer count whose stackup contains every copper layer in aLayers.
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