21#include <magic_enum.hpp>
22#include <wx/translation.h>
106 case 57:
return wxT(
"User.10" );
107 case 59:
return wxT(
"User.11" );
108 case 61:
return wxT(
"User.12" );
109 case 63:
return wxT(
"User.13" );
133 case LAYER_NOTES:
return _(
"Schematic text && graphics" );
203 wxCHECK_MSG(
false, wxEmptyString, wxString::Format(
"Unknown layer ID %d", aLayer ) );
239 if( fliplayer <
F_Cu )
242 if( fliplayer >
B_Cu )
259 case 31:
return B_Cu;
263 return magic_enum::enum_cast<PCB_LAYER_ID>( aLegacyId ).value_or(
UNDEFINED_LAYER );
286 case 48:
return B_Fab;
287 case 49:
return F_Fab;
PCB_LAYER_ID BoardLayerFromLegacyId(int aLegacyId)
Retrieves a layer ID from an integer converted from a legacy (pre-V9) enum value.
PCB_LAYER_ID FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount)
wxString LayerName(int aLayer)
Returns the default display name for a given layer.
@ NETNAMES_LAYER_ID_START
bool IsCopperLayer(int aLayerId)
Tests whether a layer is a copper layer.
@ LAYER_PAGE_LIMITS
color for drawing the page extents (visibility stored in PCBNEW_SETTINGS::m_ShowPageLimits)
@ LAYER_LOCKED_ITEM_SHADOW
shadow layer for locked items
@ LAYER_CONFLICTS_SHADOW
shadow layer for items flagged conficting
@ LAYER_FOOTPRINTS_FR
show footprints on front
@ LAYER_DRC_SHAPE1
Custom shape for DRC marker.
@ LAYER_NON_PLATEDHOLES
handle color for not plated holes (holes, not pads)
@ LAYER_DRAWINGSHEET
drawingsheet frame and titleblock
@ LAYER_FP_REFERENCES
show footprints references (when texts are visible)
@ LAYER_DRC_EXCLUSION
layer for drc markers which have been individually excluded
@ LAYER_PCB_BACKGROUND
PCB background color.
@ LAYER_DRC_WARNING
layer for drc markers with SEVERITY_WARNING
@ LAYER_PAD_PLATEDHOLES
to draw pad holes (plated)
@ LAYER_CURSOR
PCB cursor.
@ LAYER_AUX_ITEMS
Auxiliary items (guides, rule, etc)
@ LAYER_DRC_SHAPE2
Custom shape for DRC marker.
@ LAYER_FOOTPRINTS_BK
show footprints on back
@ LAYER_ANCHOR
anchor of items having an anchor point (texts, footprints)
@ LAYER_MARKER_SHADOWS
shadows for drc markers
@ LAYER_VIA_HOLES
to draw via holes (pad holes do not use this layer)
@ LAYER_FP_VALUES
show footprints values (when texts are visible)
@ LAYER_VIA_MICROVIA
to draw micro vias
@ LAYER_SELECT_OVERLAY
currently selected items overlay
@ LAYER_VIA_THROUGH
to draw usual through hole vias
@ LAYER_DRC_ERROR
layer for drc markers with SEVERITY_ERROR
@ LAYER_VIA_BBLIND
to draw blind/buried vias
@ LAYER_EXCLUDED_FROM_SIM
@ LAYER_NET_COLOR_HIGHLIGHT
@ LAYER_DEVICE_BACKGROUND
@ LAYER_SCHEMATIC_DRAWINGSHEET
@ LAYER_SCHEMATIC_GRID_AXES
@ LAYER_SCHEMATIC_PAGE_LIMITS
@ LAYER_SELECTION_SHADOWS
@ LAYER_SCHEMATIC_BACKGROUND
@ LAYER_SCHEMATIC_AUX_ITEMS
PCB_LAYER_ID
A quick note on layer IDs: