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 175 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 658 of file board.cpp.
References LT_AUX, LT_BACK, LT_FRONT, LT_JUMPER, LT_MIXED, LT_POWER, LT_SIGNAL, and LT_UNDEFINED.
Referenced by PCB_IO_KICAD_LEGACY::loadSETUP(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayer().
|
static |
Convert a LAYER_T enum to a string representation of the layer type.
aType | The LAYER_T to convert |
Definition at line 642 of file board.cpp.
References LT_AUX, LT_BACK, LT_FRONT, LT_JUMPER, LT_MIXED, LT_POWER, and LT_SIGNAL.
Referenced by PCB_IO_KICAD_SEXPR::formatBoardLayers(), and PANEL_SETUP_LAYERS::showLayerTypes().
wxString LAYER::m_name |
The canonical name of the layer.
Definition at line 196 of file board.h.
Referenced by BOARD::BOARD(), clear(), PCB_IO_KICAD_SEXPR_PARSER::parseLayer(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayers().
int LAYER::m_number |
The layer ID.
Definition at line 200 of file board.h.
Referenced by clear(), PCB_IO_KICAD_SEXPR_PARSER::parseLayer(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayers().
int LAYER::m_opposite |
Similar layer on opposite side of the board, if any.
Definition at line 201 of file board.h.
Referenced by clear(), and BOARD::recalcOpposites().
LAYER_T LAYER::m_type |
The type of the layer.
Definition at line 198 of file board.h.
Referenced by BOARD::BOARD(), clear(), BOARD::GetLayerType(), PCB_IO_KICAD_SEXPR_PARSER::parseLayer(), PCB_IO_KICAD_SEXPR_PARSER::parseLayers(), and BOARD::SetLayerType().
wxString LAYER::m_userName |
The user defined name of the layer.
Definition at line 197 of file board.h.
Referenced by clear(), BOARD::GetLayerName(), PCB_IO_KICAD_SEXPR_PARSER::parseLayer(), BOARD::recalcOpposites(), and BOARD::SetLayerName().
bool LAYER::m_visible |
Definition at line 199 of file board.h.
Referenced by clear(), PCB_IO_KICAD_SEXPR_PARSER::parseLayer(), and PCB_IO_KICAD_SEXPR_PARSER::parseLayers().