KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drill_symbol_profile.h File Reference
#include <map>
#include <optional>
#include <set>
#include <string>
#include <vector>
#include <kiid.h>
#include <math/vector2d.h>
#include <wx/string.h>

Go to the source code of this file.

Classes

struct  DRILL_SYMBOL_ASSIGNMENT
 
class  DRILL_SYMBOL_PROFILE
 Grouping rules and symbol assignments, shared by reference so a chart and its map can never disagree about which symbol means which hole. More...
 

Enumerations

enum class  DRILL_GROUP_KEY {
  SIZE_GRP , SLOT , PLATING , SPAN ,
  OPERATION , HOLE_FUNCTION , PROTECTION , POST_MACHINING
}
 Which properties split holes into separate chart rows and symbols. More...
 
enum class  DRILL_MARK_MODE { SHAPE , LETTER , SIZE_TEXT }
 
enum class  DRILL_MARK_POLICY { SHAPES , LETTERS , SHAPES_THEN_LETTERS , SIZE_TEXT }
 

Functions

const char * DrillGroupKeyToken (DRILL_GROUP_KEY aKey)
 Stable file tokens, deliberately independent of enum ordering so a later insertion into the enum cannot silently change what a board file means.
 
const char * DrillMarkPolicyToken (DRILL_MARK_POLICY aPolicy)
 
const char * DrillMarkModeToken (DRILL_MARK_MODE aMode)
 
bool DrillGroupKeyFromToken (const wxString &aToken, DRILL_GROUP_KEY &aKey)
 
bool DrillMarkPolicyFromToken (const wxString &aToken, DRILL_MARK_POLICY &aPolicy)
 
bool DrillMarkModeFromToken (const wxString &aToken, DRILL_MARK_MODE &aMode)
 

Enumeration Type Documentation

◆ DRILL_GROUP_KEY

enum class DRILL_GROUP_KEY
strong

Which properties split holes into separate chart rows and symbols.

A disabled key does not merely go unprinted, it stops distinguishing holes, so two operations differing only in a disabled property share one row and one symbol.

Enumerator
SIZE_GRP 
SLOT 
PLATING 
SPAN 
OPERATION 
HOLE_FUNCTION 
PROTECTION 
POST_MACHINING 

Definition at line 42 of file drill_symbol_profile.h.

◆ DRILL_MARK_MODE

enum class DRILL_MARK_MODE
strong
Enumerator
SHAPE 
LETTER 
SIZE_TEXT 

Definition at line 55 of file drill_symbol_profile.h.

◆ DRILL_MARK_POLICY

enum class DRILL_MARK_POLICY
strong
Enumerator
SHAPES 
LETTERS 
SHAPES_THEN_LETTERS 
SIZE_TEXT 

Definition at line 63 of file drill_symbol_profile.h.

Function Documentation

◆ DrillGroupKeyFromToken()

bool DrillGroupKeyFromToken ( const wxString & aToken,
DRILL_GROUP_KEY & aKey )

◆ DrillGroupKeyToken()

const char * DrillGroupKeyToken ( DRILL_GROUP_KEY aKey)

Stable file tokens, deliberately independent of enum ordering so a later insertion into the enum cannot silently change what a board file means.

Definition at line 251 of file drill_symbol_profile.cpp.

Referenced by PCB_IO_KICAD_SEXPR::formatDrillSymbolProfile().

◆ DrillMarkModeFromToken()

bool DrillMarkModeFromToken ( const wxString & aToken,
DRILL_MARK_MODE & aMode )

◆ DrillMarkModeToken()

const char * DrillMarkModeToken ( DRILL_MARK_MODE aMode)

◆ DrillMarkPolicyFromToken()

bool DrillMarkPolicyFromToken ( const wxString & aToken,
DRILL_MARK_POLICY & aPolicy )

◆ DrillMarkPolicyToken()

const char * DrillMarkPolicyToken ( DRILL_MARK_POLICY aPolicy)