20#include <boost/algorithm/string/case_conv.hpp>
21#include <magic_enum.hpp>
83 wxCHECK_MSG(
false,
GAL_LAYER_ID_END,
"Unhandled layer in RenderLayerFromVisibilityLayer" );
121 if( std::optional<VISIBILITY_LAYER> val =
122 magic_enum::enum_cast<VISIBILITY_LAYER>( aLayer, magic_enum::case_insensitive ) )
133 std::string ret( magic_enum::enum_name<VISIBILITY_LAYER>( aLayerId ) );
134 boost::algorithm::to_lower( ret );
constexpr std::size_t arrayDim(T const (&)[N]) noexcept
Returns # of elements in an array.
Helper for storing and iterating over GAL_LAYER_IDs.
GAL_LAYER_ID
GAL layers are "virtual" layers, i.e.
@ LAYER_LOCKED_ITEM_SHADOW
Shadow layer for locked items.
@ LAYER_CONFLICTS_SHADOW
Shadow layer for items flagged conflicting.
@ LAYER_FOOTPRINTS_FR
Show footprints on front.
@ LAYER_DRAWINGSHEET
Sheet frame and title block.
@ LAYER_DRAW_BITMAPS
Draw images.
@ LAYER_FP_REFERENCES
Show footprints references (when texts are visible).
@ LAYER_DRC_EXCLUSION
Layer for DRC markers which have been individually excluded.
@ LAYER_ZONES
Control for copper zone opacity/visibility (color ignored).
@ LAYER_SHAPES
Copper graphic shape opacity/visibility (color ignored).
@ LAYER_PADS
Meta control for all pads opacity/visibility (color ignored).
@ LAYER_DRC_WARNING
Layer for DRC markers with #SEVERITY_WARNING.
@ LAYER_FOOTPRINTS_BK
Show footprints on back.
@ LAYER_ANCHOR
Anchor of items having an anchor point (texts, footprints).
@ LAYER_FP_VALUES
Show footprints values (when texts are visible).
@ LAYER_DRC_ERROR
Layer for DRC markers with #SEVERITY_ERROR.
@ LAYER_VIAS
Meta control for all vias opacity/visibility.
std::optional< VISIBILITY_LAYER > VisibilityLayerFromRenderLayer(GAL_LAYER_ID aLayerId)
GAL_SET UserVisbilityLayers()
The set of GAL_LAYER_IDs that correspond to VISIBILITY_LAYERS.
std::string VisibilityLayerToString(VISIBILITY_LAYER aLayerId)
GAL_LAYER_ID RenderLayerFromVisibilityLayer(VISIBILITY_LAYER aLayer)
std::optional< GAL_LAYER_ID > RenderLayerFromVisbilityString(const std::string &aLayer)
VISIBILITY_LAYER
The set of things that can have visibility settings stored in a project file (for example in a view p...