|
KiCad PCB EDA Suite
|
Container to hold information pertinent to a layer of a BOARD. More...
#include <board.h>
Public Member Functions | |
| LAYER () | |
| void | clear () |
Static Public Member Functions | |
| static const char * | ShowType (LAYER_T aType) |
| Convert a LAYER_T enum to a string representation of the layer type. | |
| static LAYER_T | ParseType (const char *aType) |
| Convert a string to a LAYER_T. | |
Public Attributes | |
| wxString | m_name |
| The canonical name of the layer. | |
| wxString | m_userName |
| The user defined name of the layer. | |
| LAYER_T | m_type |
| The type of the layer. | |
| bool | m_visible |
| int | m_number |
| The layer ID. | |
| int | m_opposite |
| Similar layer on opposite side of the board, if any. | |
Container to hold information pertinent to a layer of a BOARD.
|
inline |
Definition at line 207 of file board.h.
References LT_SIGNAL, m_name, m_number, m_opposite, m_type, m_userName, and m_visible.
Referenced by LAYER(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayer().
|
static |
Convert a string to a LAYER_T.
| aType | The layer name to convert. |
Definition at line 798 of file board.cpp.
References LT_AUX, LT_BACK, LT_FRONT, LT_JUMPER, LT_MIXED, LT_POWER, LT_SIGNAL, LT_UNDEFINED, and ParseType().
Referenced by ParseType().
|
static |
Convert a LAYER_T enum to a string representation of the layer type.
| aType | The LAYER_T to convert |
Definition at line 782 of file board.cpp.
References LT_AUX, LT_BACK, LT_FRONT, LT_JUMPER, LT_MIXED, LT_POWER, LT_SIGNAL, and ShowType().
Referenced by ShowType().
| wxString LAYER::m_name |
The canonical name of the layer.
Definition at line 228 of file board.h.
Referenced by clear(), PCB_IO_KICAD_SEXPR_PARSER::parseLayer(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayers().
| int LAYER::m_number |
The layer ID.
Definition at line 232 of file board.h.
Referenced by clear(), PCB_IO_KICAD_SEXPR_PARSER::parseLayer(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayers().
| int LAYER::m_opposite |
| LAYER_T LAYER::m_type |
The type of the layer.
Definition at line 230 of file board.h.
Referenced by clear(), PCB_IO_KICAD_SEXPR_PARSER::parseLayer(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayers().
| wxString LAYER::m_userName |
The user defined name of the layer.
Definition at line 229 of file board.h.
Referenced by clear(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayer().
| bool LAYER::m_visible |
Definition at line 231 of file board.h.
Referenced by clear(), PCB_IO_KICAD_SEXPR_PARSER::parseLayer(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayers().