KiCad PCB EDA Suite
|
LSET is a set of PCB_LAYER_IDs. More...
#include <lset.h>
Classes | |
class | all_set_layers_iterator |
class | copper_layers_iterator |
class | non_copper_layers_iterator |
Public Member Functions | |
LSET () | |
Create an empty (cleared) set. | |
LSET (const BASE_SET &aOther) | |
LSET (std::initializer_list< PCB_LAYER_ID > aList) | |
LSET (const std::vector< PCB_LAYER_ID > &aList) | |
LSET (const LSEQ &aSeq) | |
LSET (const LAYER_RANGE &aRange) | |
LSET (unsigned long __val)=delete | |
bool | Contains (PCB_LAYER_ID aLayer) const |
See if the layer set contains a PCB layer. | |
LSEQ | CuStack () const |
Return a sequence of copper layers in starting from the front/top and extending to the back/bottom. | |
LSEQ | TechAndUserUIOrder () const |
Return the technical and user layers in the order shown in layer widget. | |
LSEQ | UIOrder () const |
Return the copper, technical and user layers in the order shown in layer widget. | |
LSEQ | Seq (const LSEQ &aSequence) const |
Return an LSEQ from the union of this LSET and a desired sequence. | |
LSEQ | Seq () const |
Return a LSEQ from this LSET in ascending PCB_LAYER_ID order. | |
LSEQ | SeqStackupTop2Bottom (PCB_LAYER_ID aSelectedLayer=UNDEFINED_LAYER) const |
Generate a sequence of layers that represent a top to bottom stack of this set of layers. | |
LSEQ | SeqStackupForPlotting () const |
Return the sequence that is typical for a bottom-to-top stack-up. | |
void | RunOnLayers (const std::function< void(PCB_LAYER_ID)> &aFunction) const |
Execute a function on each layer of the LSET. | |
PCB_LAYER_ID | ExtractLayer () const |
Find the first set PCB_LAYER_ID. | |
LSET & | Flip (int aCopperLayersCount=0) |
Flip the layers in this set. | |
LSET & | ClearCopperLayers () |
Clear the copper layers in this set. | |
LSET & | ClearNonCopperLayers () |
Clear the non-copper layers in this set. | |
LSET & | ClearUserDefinedLayers () |
Clear the user defined layers in this set. | |
all_set_layers_iterator | begin () const |
all_set_layers_iterator | end () const |
copper_layers_iterator | copper_layers_begin () const |
copper_layers_iterator | copper_layers_end () const |
non_copper_layers_iterator | non_copper_layers_begin () const |
non_copper_layers_iterator | non_copper_layers_end () const |
iterator | begin () |
iterator | end () |
BASE_SET & | set (size_t pos) |
BASE_SET & | set (size_t pos, bool value) |
BASE_SET & | set () |
BASE_SET & | reset (size_t pos) |
BASE_SET & | reset () |
BASE_SET & | flip (size_t pos) |
BASE_SET & | flip () |
BASE_SET | operator~ () const |
BASE_SET & | operator&= (const BASE_SET &other) |
BASE_SET & | operator|= (const BASE_SET &other) |
BASE_SET & | operator^= (const BASE_SET &other) |
int | compare (const BASE_SET &other) const |
bool | operator< (const BASE_SET &other) const |
std::string | FmtBin () const |
Return a binary string showing contents of this set. | |
std::string | FmtHex () const |
Return a hex string showing contents of this set. | |
int | ParseHex (const std::string &str) |
Convert the output of FmtHex() and replaces this set's values with those given in the input string. | |
int | ParseHex (const char *aStart, int aCount) |
Convert the output of FmtHex() and replaces this set's values with those given in the input string. | |
set_bits_iterator | set_bits_begin () const |
set_bits_iterator | set_bits_end () const |
set_bits_reverse_iterator | set_bits_rbegin () const |
set_bits_reverse_iterator | set_bits_rend () const |
Static Public Member Functions | |
static wxString | Name (PCB_LAYER_ID aLayerId) |
Return the fixed name association with aLayerId. | |
static int | NameToLayer (wxString &aName) |
Return the layer number from a layer name. | |
static bool | IsBetween (PCB_LAYER_ID aStart, PCB_LAYER_ID aEnd, PCB_LAYER_ID aLayer) |
Return true if aLayer is between aStart and aEnd, inclusive. | |
static LSET | InternalCuMask () |
Return a complete set of internal copper layers which is all Cu layers except F_Cu and B_Cu. | |
static LSET | FrontAssembly () |
Return a complete set of all top assembly layers which is all F_SilkS and F_Mask. | |
static LSET | BackAssembly () |
Return a complete set of all bottom assembly layers which is all B_SilkS and B_Mask. | |
static LSET | AllCuMask (int aCuLayerCount=MAX_CU_LAYERS) |
Return a mask holding the requested number of Cu PCB_LAYER_IDs. | |
static LSET | ExternalCuMask () |
Return a mask holding the Front and Bottom layers. | |
static LSET | AllNonCuMask () |
Return a mask holding all layer minus CU layers. | |
static LSET | AllLayersMask () |
static LSET | FrontTechMask () |
Return a mask holding all technical layers (no CU layer) on front side. | |
static LSET | FrontBoardTechMask () |
Return a mask holding technical layers used in a board fabrication (no CU layer) on front side. | |
static LSET | BackTechMask () |
Return a mask holding all technical layers (no CU layer) on back side. | |
static LSET | BackBoardTechMask () |
Return a mask holding technical layers used in a board fabrication (no CU layer) on Back side. | |
static LSET | AllTechMask () |
Return a mask holding all technical layers (no CU layer) on both side. | |
static LSET | AllBoardTechMask () |
Return a mask holding board technical layers (no CU layer) on both side. | |
static LSET | FrontMask () |
Return a mask holding all technical layers and the external CU layer on front side. | |
static LSET | BackMask () |
Return a mask holding all technical layers and the external CU layer on back side. | |
static LSET | SideSpecificMask () |
static LSET | UserMask () |
static LSET | PhysicalLayersMask () |
Return a mask holding all layers which are physically realized. | |
static LSET | UserDefinedLayersMask (int aUserDefinedLayerCount=MAX_USER_DEFINED_LAYERS) |
Return a mask with the requested number of user defined layers. | |
static LSET | ForbiddenFootprintLayers () |
Layers which are not allowed within footprint definitions. | |
static int | LayerCount (PCB_LAYER_ID aStart, PCB_LAYER_ID aEnd, int aCopperLayerCount) |
Return the number of layers between aStart and aEnd, inclusive. | |
LSET is a set of PCB_LAYER_IDs.
It can be converted to numerous purpose LSEQs using the various member functions, most of which are based on Seq(). The advantage of converting to LSEQ using purposeful code, is it removes any dependency on order/sequence inherent in this set.
|
inline |
Create an empty (cleared) set.
Definition at line 43 of file lset.h.
Referenced by AllLayersMask(), and AllNonCuMask().
LSET::LSET | ( | std::initializer_list< PCB_LAYER_ID > | aList | ) |
Definition at line 44 of file lset.cpp.
References BASE_SET::set().
LSET::LSET | ( | const std::vector< PCB_LAYER_ID > & | aList | ) |
Definition at line 54 of file lset.cpp.
References BASE_SET::set().
LSET::LSET | ( | const LSEQ & | aSeq | ) |
Definition at line 65 of file lset.cpp.
References BASE_SET::set().
LSET::LSET | ( | const LAYER_RANGE & | aRange | ) |
Definition at line 76 of file lset.cpp.
References BASE_SET::set().
|
delete |
|
static |
Return a mask holding board technical layers (no CU layer) on both side.
Definition at line 635 of file lset.cpp.
References BackBoardTechMask(), and FrontBoardTechMask().
Referenced by CADSTAR_PCB_ARCHIVE_LOADER::getKiCadLayerSet(), PhysicalLayersMask(), CADSTAR_PCB_ARCHIVE_LOADER::remapUnsureLayers(), and ALTIUM_PCB::remapUnsureLayers().
|
static |
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
Definition at line 564 of file lset.cpp.
References B_Cu, F_Cu, and BASE_SET::set().
Referenced by PCAD2KICAD::PCAD_PAD::AddToFootprint(), DIALOG_PAD_PROPERTIES::afterPadstackModeChanged(), DIALOG_TRACK_VIA_PROPERTIES::afterPadstackModeChanged(), DIALOG_PLOT::applyPlotSettings(), MULTICHANNEL_TOOL::AutogenerateRuleAreas(), CN_CONNECTIVITY_ALGO::Build(), DSN::SPECCTRA_DB::buildLayerMaps(), EXPORTER_STEP::buildZones3DShape(), FOOTPRINT::CheckShortingPads(), TRACKS_CLEANER::cleanup(), HYPERLYNX_EXPORTER::collectNetObjects(), compute_pad_access_code(), EXPORTER_PCB_VRML::ComputeLayer3D_Zpos(), ODB_NET_LIST::ComputePadAccessSide(), PCB_PLOTTER::copperLayerShouldBeSkipped(), ZONE_CREATE_HELPER::createNewZone(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_RULE_AREA_PROPERTIES::DIALOG_RULE_AREA_PROPERTIES(), BOARD_COMMIT::dirtyIntersectingZones(), DRAWING_TOOL::DrawVia(), PADSTACK::EffectiveLayerFor(), ZONE_FILLER::Fill(), fmt_mask(), PCB_IO_KICAD_SEXPR::formatLayers(), DSN::SPECCTRA_DB::FromBOARD(), GENDRILL_WRITER_BASE::GenDrillReportFile(), BOARD_ADAPTER::GetBoardEditorCopperLayerColors(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), CADSTAR_PCB_ARCHIVE_LOADER::getKiCadLayerSet(), CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad(), PCB_VIA::GetLayerSet(), BOARD::GetPad(), PAD::GetSolderMaskExpansion(), PAD::GetSolderPasteMargin(), FOOTPRINT::GetUniquePadNumbers(), ROUTER_TOOL::handleLayerSwitch(), BOARD_INSPECTION_TOOL::highlightNet(), PCB_IO_KICAD_SEXPR_PARSER::init(), ROUTER_TOOL::InlineDrag(), BOARD_INSPECTION_TOOL::InspectClearance(), PAD::IsAperturePad(), HYPERLYNX_PAD_STACK::IsEmpty(), isMaskAperture(), PAD::IsOnCopperLayer(), ZONE::IsOnCopperLayer(), DSN::isRoundKeepout(), PCBNEW_JOBS_HANDLER::JobExportGerbers(), BOARD_ITEM::layerMaskDescribe(), PCB_CONTROL::LayerNext(), PCB_CONTROL::LayerPrev(), PCB_IO_KICAD_LEGACY::leg_mask2new(), CADSTAR_PCB_ARCHIVE_LOADER::Load(), KIGFX::PCB_RENDER_SETTINGS::LoadColors(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), FABMASTER::loadZone(), DSN::SPECCTRA_DB::makeIMAGE(), DSN::SPECCTRA_DB::makePADSTACK(), DIALOG_PRINT_PCBNEW::onPopUpLayers(), DIALOG_PLOT::OnRightClickLayers(), DIALOG_PAD_PROPERTIES::OnUpdateUI(), DIALOG_PAD_PROPERTIES::OnUpdateUINonCopperWarning(), PCB_IO_EAGLE::packageHole(), PCB_IO_EAGLE::packagePad(), PANEL_FP_EDITOR_FIELD_DEFAULTS::PANEL_FP_EDITOR_FIELD_DEFAULTS(), PCB_PLOT_PARAMS_PARSER::Parse(), GPCB_FPL_CACHE::parseFOOTPRINT(), DRC_RULES_PARSER::parseLayer(), PCB_IO_KICAD_SEXPR_PARSER::parseLayersForCuItemWithSoldermask(), PCB_IO_KICAD_SEXPR_PARSER::parsePAD(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_VIA(), CLI::PCB_EXPORT_BASE_COMMAND::PCB_EXPORT_BASE_COMMAND(), PCB_PLOT_PARAMS::PCB_PLOT_PARAMS(), PhysicalLayersMask(), DRAWING_TOOL::PlaceCharacteristics(), DRAWING_TOOL::PlaceStackup(), EXPORT_SVG::Plot(), BRDITEMS_PLOTTER::PlotDrillMarks(), BRDITEMS_PLOTTER::PlotPad(), BRDITEMS_PLOTTER::PlotShape(), PlotStandardLayer(), PRIVATE_LAYERS_GRID_TABLE::PRIVATE_LAYERS_GRID_TABLE(), PAD::PTHMask(), PCB_LAYER_BOX_SELECTOR::Resync(), DRC_CACHE_GENERATOR::Run(), DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run(), test::DRC_TEST_PROVIDER_DIFF_PAIR_COUPLING::Run(), DRC_TEST_PROVIDER_SLIVER_CHECKER::Run(), DRC_TEST_PROVIDER_MATCHED_LENGTH::runInternal(), SELECT_LAYER_DIALOG::SELECT_LAYER_DIALOG(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), PAD::SetAttribute(), PANEL_SETUP_LAYERS::setCopperLayerCheckBoxes(), BOARD_DESIGN_SETTINGS::SetCopperLayerCount(), PCB_IO_EAGLE::setKeepoutSettingsToZone(), ZONE_CREATE_HELPER::setUniquePriority(), PCBNEW_PRINTOUT::setupViewLayers(), PANEL_SETUP_LAYERS::showLayerTypes(), SideSpecificMask(), PANEL_SETUP_LAYERS::SyncCopperLayers(), DRC_TEST_PROVIDER_MISC::testDisabledLayers(), DRC_TEST_PROVIDER_HOLE_TO_HOLE::testHoleAgainstHole(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadClearances(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackClearances(), DIALOG_SWAP_LAYERS::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::transferDataToPad(), DIALOG_SWAP_LAYERS::TransferDataToWindow(), PANEL_SETUP_BOARD_STACKUP::updateCopperLayerCount(), PCB_PROPERTIES_PANEL::updateLists(), PCB_CONTROL::UpdateMessagePanel(), DIALOG_PAD_PROPERTIES::updatePadLayersList(), RATSNEST_VIEW_ITEM::ViewDraw(), PAD::ViewGetLayers(), PCB_VIA::ViewGetLayers(), GBR_TO_PCB_EXPORTER::writePcbHeader(), and HYPERLYNX_EXPORTER::writeSinglePadStack().
|
static |
Definition at line 593 of file lset.cpp.
References LSET().
Referenced by PCB_GRID_HELPER::BestSnapAnchor(), BOARD_CONNECTED_ITEM_DESC::BOARD_CONNECTED_ITEM_DESC(), BOARD_ITEM_DESC::BOARD_ITEM_DESC(), BOARD_ITEM::BoardLayerSet(), BOOST_AUTO_TEST_CASE(), CLI::FP_EXPORT_SVG_COMMAND::doPerform(), DRC_RTREE::DRC_RTREE(), PCB_SELECTION_TOOL::FilterCollectorForFootprints(), FOOTPRINT_DESC::FOOTPRINT_DESC(), GERBVIEW_FRAME::GERBVIEW_FRAME(), PCB_LAYER_BOX_SELECTOR::getEnabledLayers(), APPEARANCE_CONTROLS::getVisibleLayers(), GERBVIEW_FRAME::GetVisibleLayers(), BOARD::GetVisibleLayers(), LoadBoard(), CADSTAR_PCB_ARCHIVE_LOADER::loadBoardStackup(), PCB_EDIT_FRAME::onBoardLoaded(), DIALOG_DRC::OnDRCItemSelected(), PCB_POINT_EDITOR::OnSelectionChange(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), padNeedsUpdate(), DRC_RULES_PARSER::parseDRC_RULE(), CLI::PCB_EXPORT_BASE_COMMAND::PCB_EXPORT_BASE_COMMAND(), PCB_SHAPE_DESC::PCB_SHAPE_DESC(), EDIT_TOOL::pickReferencePoint(), PAD_TOOL::PlacePad(), PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS(), PCB_PICKER_TOOL::reset(), DRC_TEST_PROVIDER_DISALLOW::Run(), DRC_TEST_PROVIDER_EDGE_CLEARANCE::Run(), DRC_TEST_PROVIDER_HOLE_TO_HOLE::Run(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::Run(), DRC_TEST_PROVIDER_TEXT_DIMS::Run(), PCB_SELECTION_TOOL::Selectable(), DRAWING_TOOL::SetAnchor(), APPEARANCE_CONTROLS::setVisibleLayers(), DRC_TEST_PROVIDER_MISC::testAssertions(), DRC_TEST_PROVIDER_MISC::testDisabledLayers(), PANEL_SETUP_LAYERS::testLayerNames(), DRC_TEST_PROVIDER_MISC::testTextVars(), TRACK_VIA_DESC::TRACK_VIA_DESC(), PCB_EDIT_FRAME::UpdateUserInterface(), PCB_VIA::ViewGetLOD(), WriteDRCReport(), and ZONE_DESC::ZONE_DESC().
|
static |
Return a mask holding all layer minus CU layers.
Definition at line 575 of file lset.cpp.
References copper_layers_begin(), copper_layers_end(), LSET(), and BASE_SET::reset().
Referenced by DIALOG_CLEANUP_TRACKS_AND_VIAS::buildFilterLists(), DIALOG_GLOBAL_EDIT_TEARDROPS::buildFilterLists(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::buildFilterLists(), PANEL_PCBNEW_COLOR_SETTINGS::createSwatches(), DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS::DIALOG_GLOBAL_EDIT_TRACKS_AND_VIAS(), DIALOG_NON_COPPER_ZONES_EDITOR::DIALOG_NON_COPPER_ZONES_EDITOR(), DIALOG_RULE_AREA_PROPERTIES::DIALOG_RULE_AREA_PROPERTIES(), DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(), DIALOG_GLOBAL_DELETION::DoGlobalDeletions(), ROUTER_TOOL::handleLayerSwitch(), PCBNEW_JOBS_HANDLER::JobExportGerbers(), PNS_LOG_VIEWER_FRAME::PNS_LOG_VIEWER_FRAME(), PCB_LAYER_BOX_SELECTOR::Resync(), and DIALOG_SWAP_LAYERS::TransferDataToWindow().
|
static |
Return a mask holding all technical layers (no CU layer) on both side.
Definition at line 628 of file lset.cpp.
References BackTechMask(), and FrontTechMask().
Referenced by BOARD_ITEM::layerMaskDescribe(), FABMASTER::loadLayers(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnAddField(), DIALOG_PRINT_PCBNEW::onPopUpLayers(), DIALOG_PLOT::OnRightClickLayers(), PANEL_FP_EDITOR_FIELD_DEFAULTS::PANEL_FP_EDITOR_FIELD_DEFAULTS(), DRAWING_TOOL::PlaceCharacteristics(), DRAWING_TOOL::PlaceStackup(), PRIVATE_LAYERS_GRID_TABLE::PRIVATE_LAYERS_GRID_TABLE(), SELECT_LAYER_DIALOG::SELECT_LAYER_DIALOG(), and GBR_TO_PCB_EXPORTER::writePcbHeader().
|
static |
|
static |
Return a mask holding technical layers used in a board fabrication (no CU layer) on Back side.
Definition at line 607 of file lset.cpp.
References B_Adhes, B_Mask, B_Paste, and B_SilkS.
Referenced by AllBoardTechMask(), PAD::FlashLayer(), and DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem().
|
static |
Return a mask holding all technical layers and the external CU layer on back side.
Definition at line 682 of file lset.cpp.
References B_Cu, BackTechMask(), and BASE_SET::set().
Referenced by DIALOG_FOOTPRINT_CHOOSER::build3DCanvas(), FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), collidesWithArea(), DRC_ENGINE::EvalRules(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), PCB_SELECTION_TOOL::Selectable(), and DRC_INTERACTIVE_COURTYARD_CLEARANCE::testCourtyardClearances().
|
static |
Return a mask holding all technical layers (no CU layer) on back side.
Definition at line 600 of file lset.cpp.
References B_Adhes, B_CrtYd, B_Fab, B_Mask, B_Paste, and B_SilkS.
Referenced by AllTechMask(), BackMask(), SideSpecificMask(), and PCB_VIA::ViewGetLOD().
|
inlineinherited |
Definition at line 106 of file base_set.h.
Referenced by BASE_SET::compare(), and BASE_SET::operator<().
|
inline |
LSET & LSET::ClearCopperLayers | ( | ) |
Clear the copper layers in this set.
Definition at line 900 of file lset.cpp.
References BASE_SET::reset().
Referenced by PlotBoardLayers(), BOARD_DESIGN_SETTINGS::SetCopperLayerCount(), and PANEL_SETUP_BOARD_STACKUP::updateCopperLayerCount().
LSET & LSET::ClearNonCopperLayers | ( | ) |
Clear the non-copper layers in this set.
Definition at line 909 of file lset.cpp.
References BASE_SET::reset().
Referenced by PlotBoardLayers(), and BOARD_DESIGN_SETTINGS::SetEnabledLayers().
LSET & LSET::ClearUserDefinedLayers | ( | ) |
Clear the user defined layers in this set.
Definition at line 918 of file lset.cpp.
References BASE_SET::reset(), and User_1.
Referenced by BOARD_DESIGN_SETTINGS::SetUserDefinedLayerCount().
|
inlineinherited |
Definition at line 261 of file base_set.h.
References BASE_SET::begin(), BASE_SET::end(), end, and alg::lexicographical_compare_three_way().
Referenced by BOOST_AUTO_TEST_CASE(), and PADSTACK::Compare().
|
inline |
See if the layer set contains a PCB layer.
aLayer | is the layer to check. |
Definition at line 63 of file lset.h.
Referenced by STEP_PCB_MODEL::AddPadShape(), STEP_PCB_MODEL::AddPolygonShapes(), BOOST_AUTO_TEST_CASE(), EXPORTER_STEP::buildGraphic3DShape(), EXPORTER_STEP::buildTrack3DShape(), CADSTAR_PCB_ARCHIVE_LOADER::calculateZonePriorities(), collidesWithArea(), MULTICHANNEL_TOOL::copyRuleAreaContents(), STEP_PCB_MODEL::CreatePCB(), APPEARANCE_CONTROLS::doApplyLayerPreset(), PADSTACK::EffectiveLayerFor(), PCBEXPR_LAYER_VALUE::EqualTo(), ZONE_FILLER::Fill(), API_HANDLER_PCB::handleSetVisibleLayers(), BOARD_INSPECTION_TOOL::highlightNet(), PCB_SELECTION_TOOL::selectAllConnectedTracks(), ZONE::SetLayerSetAndRemoveUnusedFills(), APPEARANCE_CONTROLS::setVisibleLayers(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testItemAgainstZone(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstZones(), and PCB_VIA::ViewGetLayers().
LSET::copper_layers_iterator LSET::copper_layers_begin | ( | ) | const |
Definition at line 876 of file lset.cpp.
Referenced by AllNonCuMask(), PCB_NET_INSPECTOR_PANEL::calculateViaLength(), CuStack(), PANEL_SETUP_LAYERS::initialize_layers_controls(), SELECT_LAYER_DIALOG::SELECT_LAYER_DIALOG(), SeqStackupForPlotting(), SeqStackupTop2Bottom(), and GBR_TO_PCB_EXPORTER::writePcbHeader().
LSET::copper_layers_iterator LSET::copper_layers_end | ( | ) | const |
Definition at line 882 of file lset.cpp.
Referenced by AllNonCuMask(), PCB_NET_INSPECTOR_PANEL::calculateViaLength(), CuStack(), PANEL_SETUP_LAYERS::initialize_layers_controls(), SELECT_LAYER_DIALOG::SELECT_LAYER_DIALOG(), SeqStackupForPlotting(), SeqStackupTop2Bottom(), and GBR_TO_PCB_EXPORTER::writePcbHeader().
LSEQ LSET::CuStack | ( | ) | const |
Return a sequence of copper layers in starting from the front/top and extending to the back/bottom.
Definition at line 247 of file lset.cpp.
References copper_layers_begin(), and copper_layers_end().
Referenced by BOARD_STACKUP::BuildDefaultStackupList(), DSN::SPECCTRA_DB::buildLayerMaps(), GENCAD_EXPORTER::CreatePadsShapesSection(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::formatBoardLayers(), DSN::SPECCTRA_DB::makeIMAGE(), APPEARANCE_CONTROLS::rebuildLayers(), PANEL_SETUP_LAYERS::showLayerTypes(), PNS_KICAD_IFACE_BASE::syncPad(), UIOrder(), PCB_CONTROL::UpdateMessagePanel(), and HYPERLYNX_EXPORTER::writeStackupInfo().
|
inlineinherited |
Definition at line 107 of file base_set.h.
Referenced by BASE_SET::compare(), and BASE_SET::operator<().
|
inline |
Definition at line 327 of file lset.h.
Referenced by IsBetween(), and LayerCount().
|
static |
Return a mask holding the Front and Bottom layers.
Definition at line 586 of file lset.cpp.
Referenced by EXPORTER_STEP::Export(), DRC_RULES_PARSER::parseLayer(), BRDITEMS_PLOTTER::PlotPad(), PANEL_SETUP_BOARD_STACKUP::showOnlyActiveLayers(), and BOARD_STACKUP::StackupAllowedBrdLayers().
PCB_LAYER_ID LSET::ExtractLayer | ( | ) | const |
Find the first set PCB_LAYER_ID.
Definition at line 518 of file lset.cpp.
References UNDEFINED_LAYER, and UNSELECTED_LAYER.
Referenced by BOOST_AUTO_TEST_CASE(), KIGFX::PCB_PAINTER::Draw(), and PCBNEW_PRINTOUT::OnPrintPage().
|
inlineinherited |
Definition at line 170 of file base_set.h.
LSET & LSET::Flip | ( | int | aCopperLayersCount = 0 | ) |
Flip the layers in this set.
BACK and FRONT copper layers, mask, paste, solder layers are swapped internal layers are flipped only if the copper layers count is known.
aMask | = the LSET to flip |
aCopperLayersCount | = the number of copper layers. if 0 (in fact if < 4 ) internal layers will be not flipped because the layer count is not known |
Definition at line 469 of file lset.cpp.
References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, InternalCuMask(), BASE_SET::reset(), and BASE_SET::set().
Referenced by BOOST_AUTO_TEST_CASE(), and PAD::Flip().
|
inlineinherited |
Definition at line 160 of file base_set.h.
Referenced by BASE_SET::operator~(), and DRC_TEST_PROVIDER_MISC::testDisabledLayers().
|
inlineinherited |
Return a binary string showing contents of this set.
Definition at line 276 of file base_set.h.
Referenced by ViaSort().
|
inlineinherited |
Return a hex string showing contents of this set.
Definition at line 302 of file base_set.h.
References arrayDim().
Referenced by BOOST_AUTO_TEST_CASE(), PCB_PLOT_PARAMS::Format(), and PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS().
|
static |
Layers which are not allowed within footprint definitions.
Currently internal copper layers and Margin.
Definition at line 696 of file lset.cpp.
References InternalCuMask().
Referenced by DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), APPEARANCE_CONTROLS::onLayerLeftClick(), APPEARANCE_CONTROLS::rebuildLayers(), and FOOTPRINT_EDIT_FRAME::ReCreateHToolbar().
|
static |
|
static |
Return a mask holding technical layers used in a board fabrication (no CU layer) on front side.
Definition at line 621 of file lset.cpp.
References F_Adhes, F_Mask, F_Paste, and F_SilkS.
Referenced by AllBoardTechMask(), PAD::FlashLayer(), and DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem().
|
static |
Return a mask holding all technical layers and the external CU layer on front side.
Definition at line 675 of file lset.cpp.
References F_Cu, FrontTechMask(), and BASE_SET::set().
Referenced by DIALOG_FOOTPRINT_CHOOSER::build3DCanvas(), FOOTPRINT_CHOOSER_FRAME::build3DCanvas(), collidesWithArea(), DRC_ENGINE::EvalRules(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), DRC_TEST_PROVIDER_SILK_CLEARANCE::Run(), PCB_SELECTION_TOOL::Selectable(), and DRC_INTERACTIVE_COURTYARD_CLEARANCE::testCourtyardClearances().
|
static |
Return a mask holding all technical layers (no CU layer) on front side.
Definition at line 614 of file lset.cpp.
References F_Adhes, F_CrtYd, F_Fab, F_Mask, F_Paste, and F_SilkS.
Referenced by AllTechMask(), FrontMask(), SideSpecificMask(), and PCB_VIA::ViewGetLOD().
|
static |
Return a complete set of internal copper layers which is all Cu layers except F_Cu and B_Cu.
Definition at line 553 of file lset.cpp.
References In10_Cu, In11_Cu, In12_Cu, In13_Cu, In14_Cu, In15_Cu, In16_Cu, In17_Cu, In18_Cu, In19_Cu, In1_Cu, In20_Cu, In21_Cu, In22_Cu, In23_Cu, In24_Cu, In25_Cu, In26_Cu, In27_Cu, In28_Cu, In29_Cu, In2_Cu, In30_Cu, In3_Cu, In4_Cu, In5_Cu, In6_Cu, In7_Cu, In8_Cu, and In9_Cu.
Referenced by BOOST_AUTO_TEST_CASE(), PAD::CheckPad(), EXPORTER_STEP::Export(), ZONE_FILLER::Fill(), ZONE_FILLER::fillSingleZone(), Flip(), ForbiddenFootprintLayers(), PCB_IO_KICAD_SEXPR_PARSER::init(), DIALOG_RULE_AREA_PROPERTIES::OnLayerSelection(), DRC_RULES_PARSER::parseLayer(), PCB_IO_KICAD_SEXPR_PARSER::parseLayersForCuItemWithSoldermask(), CLI::PCB_EXPORT_BASE_COMMAND::PCB_EXPORT_BASE_COMMAND(), PANEL_SETUP_BOARD_STACKUP::showOnlyActiveLayers(), BOARD_STACKUP::StackupAllowedBrdLayers(), and PANEL_SETUP_LAYERS::TransferDataFromWindow().
|
static |
|
static |
|
static |
Return the fixed name association with aLayerId.
Definition at line 188 of file lset.cpp.
References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, Margin, and Rescue.
Referenced by PANEL_SETUP_LAYERS::addUserDefinedLayer(), BOARD_CONNECTED_ITEM_DESC::BOARD_CONNECTED_ITEM_DESC(), BOARD_ITEM_DESC::BOARD_ITEM_DESC(), BOOST_AUTO_TEST_CASE(), GBR_TO_PCB_EXPORTER::export_non_copper_arc(), GBR_TO_PCB_EXPORTER::export_non_copper_item(), GBR_TO_PCB_EXPORTER::export_segarc_copper_item(), GBR_TO_PCB_EXPORTER::export_via(), FOOTPRINT_DESC::FOOTPRINT_DESC(), FOOTPRINT_EDITOR_SETTINGS::FOOTPRINT_EDITOR_SETTINGS(), PCB_IO_KICAD_SEXPR::format(), PCB_IO_KICAD_SEXPR::formatBoardLayers(), BOARD_STACKUP::FormatBoardStackup(), PCB_IO_KICAD_SEXPR::formatLayer(), PCB_IO_KICAD_SEXPR::formatLayers(), PCB_IO_KICAD_SEXPR_PARSER::init(), LAYERS_MAP_DIALOG::initDialog(), LoadBoard(), CADSTAR_PCB_ARCHIVE_LOADER::logBoardStackupMessage(), CADSTAR_PCB_ARCHIVE_LOADER::logBoardStackupWarning(), FOOTPRINT_EDITOR_SETTINGS::MigrateFromLegacy(), PCBNEW_SETTINGS::MigrateFromLegacy(), FOOTPRINT_EDITOR_SETTINGS::migrateSchema4To5(), PCB_EDIT_FRAME::onBoardLoaded(), LAYERS_MAP_DIALOG::OnGetSetup(), LAYERS_MAP_DIALOG::OnSelectLayer(), CLI::PCB_EXPORT_BASE_COMMAND::PCB_EXPORT_BASE_COMMAND(), PCB_SHAPE_DESC::PCB_SHAPE_DESC(), SELECT_LAYER_DIALOG::SELECT_LAYER_DIALOG(), JOB_PARAM_LSEQ::ToJson(), TRACK_VIA_DESC::TRACK_VIA_DESC(), PANEL_FP_EDITOR_FIELD_DEFAULTS::TransferDataFromWindow(), PCB_PROPERTIES_PANEL::updateLists(), PCB_EDIT_FRAME::UpdateUserInterface(), GBR_TO_PCB_EXPORTER::writeCopperLineItem(), WriteDRCReport(), GBR_TO_PCB_EXPORTER::writePcbFilledCircle(), GBR_TO_PCB_EXPORTER::writePcbHeader(), GBR_TO_PCB_EXPORTER::writePcbPolygon(), GBR_TO_PCB_EXPORTER::writePcbZoneItem(), and ZONE_DESC::ZONE_DESC().
|
static |
Return the layer number from a layer name.
Definition at line 117 of file lset.cpp.
References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, In1_Cu, Margin, Rescue, and User_1.
Referenced by BOOST_AUTO_TEST_CASE(), FOOTPRINT_EDITOR_SETTINGS::FOOTPRINT_EDITOR_SETTINGS(), JOB_PARAM_LSEQ::FromJson(), PANEL_FP_EDITOR_FIELD_DEFAULTS::loadFPSettings(), FOOTPRINT_EDIT_FRAME::LoadSettings(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayers().
LSET::non_copper_layers_iterator LSET::non_copper_layers_begin | ( | ) | const |
Definition at line 888 of file lset.cpp.
Referenced by PANEL_SETUP_LAYERS::initialize_layers_controls(), SELECT_LAYER_DIALOG::SELECT_LAYER_DIALOG(), SeqStackupForPlotting(), SeqStackupTop2Bottom(), TechAndUserUIOrder(), and GBR_TO_PCB_EXPORTER::writePcbHeader().
LSET::non_copper_layers_iterator LSET::non_copper_layers_end | ( | ) | const |
Definition at line 894 of file lset.cpp.
Referenced by PANEL_SETUP_LAYERS::initialize_layers_controls(), SELECT_LAYER_DIALOG::SELECT_LAYER_DIALOG(), SeqStackupForPlotting(), SeqStackupTop2Bottom(), TechAndUserUIOrder(), and GBR_TO_PCB_EXPORTER::writePcbHeader().
Definition at line 187 of file base_set.h.
|
inlineinherited |
Definition at line 267 of file base_set.h.
References BASE_SET::begin(), BASE_SET::end(), end, and alg::lexicographical_compare_three_way().
Definition at line 237 of file base_set.h.
Definition at line 212 of file base_set.h.
|
inlineinherited |
Definition at line 179 of file base_set.h.
References BASE_SET::flip().
|
inlineinherited |
Convert the output of FmtHex() and replaces this set's values with those given in the input string.
Parsing stops at the first non hex ASCII byte, except that marker bytes output from FmtHex() are not terminators.
Definition at line 362 of file base_set.h.
References BASE_SET::set().
|
inlineinherited |
Convert the output of FmtHex() and replaces this set's values with those given in the input string.
Parsing stops at the first non hex ASCII byte, except that marker bytes output from FmtHex() are not terminators.
Definition at line 348 of file base_set.h.
Referenced by PCB_PLOT_PARAMS_PARSER::Parse(), and PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS().
|
static |
Return a mask holding all layers which are physically realized.
Equivalent to the copper layers + the board tech mask.
Definition at line 650 of file lset.cpp.
References AllBoardTechMask(), and AllCuMask().
Referenced by BOARD_COMMIT::dirtyIntersectingZones(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), RENDER_3D_OPENGL::Redraw(), RENDER_3D_OPENGL::reload(), PCB_SELECTION_TOOL::Selectable(), PAD::ViewGetLOD(), and PCB_VIA::ViewGetLOD().
|
inlineinherited |
Definition at line 153 of file base_set.h.
Referenced by ClearCopperLayers(), ClearNonCopperLayers(), ClearUserDefinedLayers(), and Flip().
|
inlineinherited |
Definition at line 143 of file base_set.h.
Referenced by AllNonCuMask(), BOARD::BOARD(), BOOST_AUTO_TEST_CASE(), ZONE_CREATE_HELPER::createNewZone(), CONVERT_TOOL::CreatePolys(), PCB_VIA::Deserialize(), PCB_SELECTION_TOOL::FilterCollectorForFootprints(), CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad(), PARAM_LAYER_PRESET::jsonToPresets(), BOARD_PRINTOUT_SETTINGS::Load(), PCB_IO_KICAD_SEXPR_PARSER::parseBOARD_unchecked(), PCB_VIA::PCB_VIA(), DRAWING_TOOL::PlaceCharacteristics(), DRAWING_TOOL::PlaceStackup(), PANEL_SETUP_LAYERS::setCopperLayerCheckBoxes(), PANEL_SETUP_LAYERS::SyncCopperLayers(), PANEL_SETUP_LAYERS::TransferDataFromWindow(), PANEL_SETUP_LAYERS::TransferDataToWindow(), ZONE::UnFill(), and ZONE_SETTINGS::ZONE_SETTINGS().
|
inline |
Execute a function on each layer of the LSET.
Definition at line 255 of file lset.h.
Referenced by CN_CONNECTIVITY_ALGO::Add(), CN_CONNECTIVITY_ALGO::Build(), ZONE::InitDataFromSrcInCopyCtor(), ZONES_CONTAINER::OnUserConfirmChange(), DRC_CACHE_GENERATOR::Run(), PCB_SHAPE::SetLayerSet(), PCB_TRACK::SetLayerSet(), PCB_VIA::SetLayerSet(), ZONE::SetLayerSet(), ZONE::SetLayerSetAndRemoveUnusedFills(), RATSNEST_VIEW_ITEM::ViewDraw(), and ZONE::ViewGetLayers().
LSEQ LSET::Seq | ( | ) | const |
Return a LSEQ from this LSET in ascending PCB_LAYER_ID order.
Each LSEQ element will be in the same sequence as in PCB_LAYER_ID and only present in the resultant LSEQ if present in this set. Therefore the sequence is subject to change, use it only when enumeration and not order is important.
Definition at line 311 of file lset.cpp.
Referenced by SeqStackupForPlotting(), SeqStackupTop2Bottom(), and TechAndUserUIOrder().
Return an LSEQ from the union of this LSET and a desired sequence.
The LSEQ element will be in the same sequence as aWishListSequence if they are present.
aWishListSequence | establishes the order of the returned LSEQ, and the LSEQ will only contain PCB_LAYER_IDs which are present in this set. |
Definition at line 297 of file lset.cpp.
Referenced by STEP_PCB_MODEL::AddPadShape(), PCB_IO_IPC2581::addPadStack(), BOOST_AUTO_TEST_CASE(), EXPORTER_STEP::buildBoard3DShapes(), PCB_NET_INSPECTOR_PANEL::buildColumns(), EXPORTER_STEP::buildFootprint3DShapes(), EXPORTER_STEP::buildTrack3DShape(), EXPORTER_STEP::buildZones3DShape(), PCB_GRID_HELPER::computeAnchors(), GENCAD_EXPORTER::CreatePadsShapesSection(), APPEARANCE_CONTROLS::doApplyLayerPreset(), DRAWING_TOOL::DrawVia(), ZONE_FILLER::Fill(), PCB_SELECTION_TOOL::FilterCollectorForFootprints(), PAD::FlashLayer(), PCB_IO_KICAD_SEXPR::format(), GENDRILL_WRITER_BASE::GenDrillReportFile(), PCB_IO_IPC2581::generateCadLayers(), PCB_IO_IPC2581::generateLayerFeatures(), KIGFX::PCB_RENDER_SETTINGS::GetColor(), ZONE::GetFirstLayer(), ZONE::GetItemDescription(), CADSTAR_PCB_ARCHIVE_LOADER::getKiCadPad(), ZONE::GetMsgPanelInfo(), PANEL_SETUP_LAYERS::getNonRemovableLayers(), PAD::GetPrincipalLayer(), PANEL_SETUP_LAYERS::getRemovedLayersWithItems(), ZONE_SEARCH_HANDLER::getResultCell(), MODEL_ZONES_OVERVIEW_TABLE::GetValueByRow(), ODB_MATRIX_ENTITY::InitMatrixLayerData(), GENERAL_COLLECTOR::Inspect(), BOARD_INSPECTION_TOOL::InspectClearance(), PNS_KICAD_IFACE::IsItemVisible(), CADSTAR_PCB_ARCHIVE_LOADER::loadDocumentationSymbols(), CADSTAR_PCB_ARCHIVE_LOADER::loadFigures(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryCoppers(), CADSTAR_PCB_ARCHIVE_LOADER::loadLibraryFigures(), ODB_STEP_ENTITY::MakeLayerEntity(), DIALOG_DRC::OnDRCItemSelected(), APPEARANCE_CONTROLS::OnLayerContextMenu(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), BOARD_ITEM::ptr_cmp::operator()(), KI_TEST::kitest_cmp_drawings::operator()(), FOOTPRINT::cmp_pads::operator()(), FOOTPRINT::cmp_zones::operator()(), kiapi::board::PackLayerSet(), PCB_IO_KICAD_SEXPR_PARSER::parsePAD(), PCB_IO_KICAD_SEXPR_PARSER::parsePCB_VIA(), PlotLayerOutlines(), PlotStandardLayer(), PCB_SELECTION_TOOL::pruneObscuredSelectionCandidates(), DRC_TEST_PROVIDER_CONNECTION_WIDTH::Run(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::Run(), DRC_TEST_PROVIDER_SLIVER_CHECKER::Run(), DRC_TEST_PROVIDER_ZONE_CONNECTIONS::Run(), PCB_SELECTION_TOOL::Selectable(), PAD::SetAttribute(), BOARD_ITEM::SetLayerSet(), GERBVIEW_PRINTOUT::setupViewLayers(), PCBNEW_PRINTOUT::setupViewLayers(), GLOBAL_EDIT_TOOL::swapBoardItem(), DRC_TEST_PROVIDER_MISC::testDisabledLayers(), DRC_TEST_PROVIDER_COPPER_CLEARANCE::testTrackClearances(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataToWindow(), PCB_EDIT_FRAME::UpdateUserInterface(), PAD::ViewGetLayers(), and HYPERLYNX_EXPORTER::writeSinglePadStack().
LSEQ LSET::SeqStackupForPlotting | ( | ) | const |
Return the sequence that is typical for a bottom-to-top stack-up.
For instance, to plot multiple layers in a single image, the top layers output last.
Definition at line 388 of file lset.cpp.
References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, copper_layers_begin(), copper_layers_end(), Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Fab, F_Mask, F_Paste, F_SilkS, Margin, non_copper_layers_begin(), non_copper_layers_end(), Seq(), and User_1.
Referenced by DIALOG_PLOT::DIALOG_PLOT(), CLI::FP_EXPORT_SVG_COMMAND::doPerform(), PCBNEW_JOBS_HANDLER::JobExportGerbers(), PlotLayerOutlines(), and PlotStandardLayer().
LSEQ LSET::SeqStackupTop2Bottom | ( | PCB_LAYER_ID | aSelectedLayer = UNDEFINED_LAYER | ) | const |
Generate a sequence of layers that represent a top to bottom stack of this set of layers.
aSelectedLayer | is the layer to put at the top of stack when defined. |
Definition at line 327 of file lset.cpp.
References B_Adhes, B_CrtYd, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, copper_layers_begin(), copper_layers_end(), Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Fab, F_Mask, F_Paste, F_SilkS, Margin, non_copper_layers_begin(), non_copper_layers_end(), Seq(), UNDEFINED_LAYER, and User_1.
Referenced by BOOST_AUTO_TEST_CASE(), and PCB_SELECTION_TOOL::pruneObscuredSelectionCandidates().
|
inlineinherited |
Definition at line 136 of file base_set.h.
|
inlineinherited |
Definition at line 116 of file base_set.h.
Referenced by SCOPED_LAYERSET::Add(), PANEL_SETUP_LAYERS::addUserDefinedLayer(), AllCuMask(), DIALOG_PLOT::applyPlotSettings(), BackMask(), BOARD::BOARD(), BOARD_DESIGN_SETTINGS::BOARD_DESIGN_SETTINGS(), BOARD_PRINTOUT_SETTINGS::BOARD_PRINTOUT_SETTINGS(), BOOST_AUTO_TEST_CASE(), AR_AUTOPLACER::buildFpAreas(), BOARD::ComputeBoundingBox(), ALTIUM_PCB::ConvertFills6ToFootprintItemOnLayer(), ALTIUM_PCB::ConvertShapeBasedRegions6ToFootprintItemOnLayer(), ZONE_CREATE_HELPER::createNewZone(), CONVERT_TOOL::CreatePolys(), PCB_IO_EAGLE::defaultKicadLayer(), FOOTPRINT::Deserialize(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_GLOBAL_DELETION::DoGlobalDeletions(), PCBEXPR_LAYER_VALUE::EqualTo(), existsOnLayerFunc(), EXPORTER_STEP::Export(), PCB_SELECTION_TOOL::FilterCollectorForFootprints(), FrontMask(), AR_AUTOPLACER::genModuleOnRoutingMatrix(), PCB_SHAPE::GetLayerSet(), PCB_TRACK::GetLayerSet(), PCB_VIA::GetLayerSet(), PANEL_SETUP_LAYERS::GetUILayerMask(), APPEARANCE_CONTROLS::getVisibleLayers(), BOARD_ADAPTER::GetVisibleLayers(), ROUTER_TOOL::handleLayerSwitch(), API_HANDLER_PCB::handleSetVisibleLayers(), ALTIUM_PCB::HelperSetZoneLayers(), intersectsAreaFunc(), PARAM_LAYER_PRESET::jsonToPresets(), PCB_IO_KICAD_LEGACY::leg_mask2new(), BOARD_PRINTOUT_SETTINGS::Load(), FABMASTER::loadLayers(), DIALOG_DRC::OnDRCItemSelected(), DIALOG_COPPER_ZONE::OnLayerSelection(), DIALOG_NON_COPPER_ZONES_EDITOR::OnLayerSelection(), DIALOG_RULE_AREA_PROPERTIES::OnLayerSelection(), APPEARANCE_CONTROLS::onLayerVisibilityToggled(), PCBNEW_PRINTOUT::OnPrintPage(), DIALOG_FOOTPRINT_CHECKER::OnSelectItem(), PCB_PLOT_PARAMS_PARSER::Parse(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_KICAD_SEXPR_PARSER::parseBOARD_unchecked(), PCB_IO_KICAD_SEXPR_PARSER::parseFOOTPRINT_unchecked(), BASE_SET::ParseHex(), DRC_RULES_PARSER::parseLayer(), PCB_IO_KICAD_SEXPR_PARSER::parseLayers(), DRAWING_TOOL::PlaceCharacteristics(), DRAWING_TOOL::PlaceStackup(), PRIVATE_LAYERS_GRID_TABLE::PRIVATE_LAYERS_GRID_TABLE(), PADSTACK::RelevantShapeLayers(), GERBVIEW_FRAME::RemapLayers(), PCB_SELECTION_CONDITIONS::sameLayerFunc(), PCB_SELECTION_TOOL::Selectable(), PAD::SetAttribute(), BOARD_DESIGN_SETTINGS::SetEnabledLayers(), ZONE::SetFillFlag(), DIALOG_PRINT_GERBVIEW::setLayerSetFromList(), DIALOG_PRINT_PCBNEW::setLayerSetFromList(), APPEARANCE_CONTROLS::SetLayerVisible(), GENERAL_COLLECTORS_GUIDE::SetLayerVisible(), ZONE_SETTINGS::SetupLayersList(), GLOBAL_EDIT_TOOL::swapBoardItem(), DRC_TEST_PROVIDER_PHYSICAL_CLEARANCE::testItemAgainstItem(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataFromWindow(), DIALOG_PAD_PROPERTIES::transferDataToPad(), kiapi::board::UnpackLayerSet(), UserDefinedLayersMask(), RATSNEST_VIEW_ITEM::ViewDraw(), and ZONE_SETTINGS::ZONE_SETTINGS().
|
inlineinherited |
Definition at line 126 of file base_set.h.
|
inlineinherited |
Definition at line 501 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 502 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 504 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlineinherited |
Definition at line 508 of file base_set.h.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 689 of file lset.cpp.
References AllCuMask(), BackTechMask(), and FrontTechMask().
Referenced by FOOTPRINT::GetSide(), and BOARD_ITEM::IsSideSpecific().
LSEQ LSET::TechAndUserUIOrder | ( | ) | const |
Return the technical and user layers in the order shown in layer widget.
Definition at line 260 of file lset.cpp.
References B_Adhes, B_CrtYd, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Fab, F_Mask, F_Paste, F_SilkS, Margin, non_copper_layers_begin(), non_copper_layers_end(), Seq(), and User_1.
Referenced by PCB_IO_KICAD_SEXPR::formatBoardLayers(), and UIOrder().
LSEQ LSET::UIOrder | ( | ) | const |
Return the copper, technical and user layers in the order shown in layer widget.
Definition at line 703 of file lset.cpp.
References CuStack(), and TechAndUserUIOrder().
Referenced by PANE_ZONE_VIEWER::ActivateSelectedZone(), DIALOG_PAD_PROPERTIES::afterPadstackModeChanged(), DIALOG_TRACK_VIA_PROPERTIES::afterPadstackModeChanged(), DIALOG_MAP_LAYERS::DIALOG_MAP_LAYERS(), DIALOG_PRINT_PCBNEW::DIALOG_PRINT_PCBNEW(), PAD_TOOL::explodePad(), ZONE::GetFirstLayer(), PCB_LAYER_PRESENTATION::getOrderedEnabledLayers(), MODEL_ZONES_OVERVIEW_TABLE::GetValueByRow(), ROUTER_TOOL::handleLayerSwitch(), DIALOG_PLOT::init_Dialog(), PCBNEW_JOBS_HANDLER::JobExportGerbers(), PCB_CONTROL::LayerNext(), PCB_CONTROL::LayerPrev(), GERBVIEW_PRINTOUT::OnPrintPage(), PCBNEW_PRINTOUT::OnPrintPage(), DIALOG_CLEANUP_GRAPHICS::OnSelectItem(), DIALOG_PLOT::Plot(), PAD::Recombine(), PCB_LAYER_BOX_SELECTOR::Resync(), ZONE_SETTINGS::SetupLayersList(), DIALOG_SWAP_LAYERS::TransferDataFromWindow(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataToWindow(), DIALOG_PRINT_PCBNEW::TransferDataToWindow(), DIALOG_SWAP_LAYERS::TransferDataToWindow(), DIALOG_PLOT::transferPlotParamsToJob(), and PCB_PROPERTIES_PANEL::updateLists().
|
static |
Return a mask with the requested number of user defined layers.
aUserDefinedLayerCount | The number of user defined layers |
Definition at line 657 of file lset.cpp.
References BASE_SET::set(), and User_1.
Referenced by PANEL_SETUP_LAYERS::addUserDefinedLayer(), CADSTAR_PCB_ARCHIVE_LOADER::getKiCadLayerSet(), PANEL_SETUP_LAYERS::initialize_layers_controls(), CADSTAR_PCB_ARCHIVE_LOADER::remapUnsureLayers(), ALTIUM_PCB::remapUnsureLayers(), BOARD_DESIGN_SETTINGS::SetEnabledLayers(), PANEL_SETUP_LAYERS::setUserDefinedLayerCheckBoxes(), BOARD_DESIGN_SETTINGS::SetUserDefinedLayerCount(), PANEL_SETUP_LAYERS::showLayerTypes(), and PANEL_SETUP_LAYERS::TransferDataFromWindow().
|
static |
Definition at line 642 of file lset.cpp.
References Cmts_User, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, and Margin.
Referenced by FABMASTER::loadLayers(), CADSTAR_PCB_ARCHIVE_LOADER::remapUnsureLayers(), ALTIUM_PCB::remapUnsureLayers(), SELECT_LAYER_DIALOG::SELECT_LAYER_DIALOG(), and GBR_TO_PCB_EXPORTER::writePcbHeader().