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. More... | |
static LAYER_T | ParseType (const char *aType) |
Convert a string to a LAYER_T. More... | |
Public Attributes | |
wxString | m_name |
The canonical name of the layer. More... | |
wxString | m_userName |
The user defined name of the layer. More... | |
LAYER_T | m_type |
The type of the layer. More... | |
bool | m_visible |
int | m_number |
The layer ID. More... | |
Container to hold information pertinent to a layer of a BOARD.
|
inline |
Definition at line 168 of file board.h.
References LT_SIGNAL, m_name, m_number, m_type, m_userName, and m_visible.
Referenced by LAYER(), and PCB_PARSER::parseLayer().
|
static |
Convert a string to a LAYER_T.
aType | The layer name to convert. |
Definition at line 610 of file board.cpp.
References LT_JUMPER, LT_MIXED, LT_POWER, LT_SIGNAL, and LT_UNDEFINED.
Referenced by LEGACY_PLUGIN::loadSETUP(), and PCB_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 597 of file board.cpp.
References LT_JUMPER, LT_MIXED, LT_POWER, and LT_SIGNAL.
Referenced by PCB_PLUGIN::formatBoardLayers().
wxString LAYER::m_name |
The canonical name of the layer.
Definition at line 188 of file board.h.
Referenced by BOARD::BOARD(), clear(), PCB_PARSER::parseLayer(), and PCB_PARSER::parseLayers().
int LAYER::m_number |
The layer ID.
Definition at line 192 of file board.h.
Referenced by clear(), PCB_PARSER::parseLayer(), and PCB_PARSER::parseLayers().
LAYER_T LAYER::m_type |
The type of the layer.
Definition at line 190 of file board.h.
Referenced by BOARD::BOARD(), clear(), BOARD::GetLayerType(), PCB_PARSER::parseLayer(), PCB_PARSER::parseLayers(), and BOARD::SetLayerType().
wxString LAYER::m_userName |
The user defined name of the layer.
Definition at line 189 of file board.h.
Referenced by clear(), BOARD::GetLayerName(), PCB_PARSER::parseLayer(), and BOARD::SetLayerName().
bool LAYER::m_visible |
Definition at line 191 of file board.h.
Referenced by clear(), PCB_PARSER::parseLayer(), and PCB_PARSER::parseLayers().