KiCad PCB EDA Suite
Loading...
Searching...
No Matches
layer_settings_utils.h File Reference
#include <optional>
#include <layer_ids.h>

Go to the source code of this file.

Enumerations

enum class  VISIBILITY_LAYER {
  TRACKS , VIAS , PADS , ZONES ,
  SHAPES , BITMAPS , FOOTPRINTS_FRONT , FOOTPRINTS_BACK ,
  FOOTPRINT_VALUES , FOOTPRINT_REFERENCES , FOOTPRINT_TEXT , FOOTPRINT_ANCHORS ,
  RATSNEST , DRC_WARNINGS , DRC_ERRORS , DRC_EXCLUSIONS ,
  LOCKED_ITEM_SHADOWS , CONFLICT_SHADOWS , DRAWING_SHEET , GRID
}
 The set of things that can have visibility settings stored in a project file (for example in a view preset). More...
 

Functions

GAL_SET UserVisbilityLayers ()
 The set of GAL_LAYER_IDs that correspond to VISIBILITY_LAYERS.
 
GAL_LAYER_ID RenderLayerFromVisibilityLayer (VISIBILITY_LAYER aLayer)
 
std::optional< VISIBILITY_LAYERVisibilityLayerFromRenderLayer (GAL_LAYER_ID aLayerId)
 
std::optional< GAL_LAYER_IDRenderLayerFromVisbilityString (const std::string &aLayer)
 
std::string VisibilityLayerToString (VISIBILITY_LAYER aLayerId)
 

Enumeration Type Documentation

◆ VISIBILITY_LAYER

enum class VISIBILITY_LAYER
strong

The set of things that can have visibility settings stored in a project file (for example in a view preset).

This is maintained separately from the enums in layer_ids.h because not all GAL layers get visibility controls, and these are turned into strings for storing in JSON settings files.

Enumerator
TRACKS 
VIAS 
PADS 
ZONES 
SHAPES 
BITMAPS 
FOOTPRINTS_FRONT 
FOOTPRINTS_BACK 
FOOTPRINT_VALUES 
FOOTPRINT_REFERENCES 
FOOTPRINT_TEXT 
FOOTPRINT_ANCHORS 
RATSNEST 
DRC_WARNINGS 
DRC_ERRORS 
DRC_EXCLUSIONS 
LOCKED_ITEM_SHADOWS 
CONFLICT_SHADOWS 
DRAWING_SHEET 
GRID 

Definition at line 32 of file layer_settings_utils.h.

Function Documentation

◆ RenderLayerFromVisbilityString()

std::optional< GAL_LAYER_ID > RenderLayerFromVisbilityString ( const std::string &  aLayer)

◆ RenderLayerFromVisibilityLayer()

◆ UserVisbilityLayers()

◆ VisibilityLayerFromRenderLayer()

◆ VisibilityLayerToString()