|
KiCad PCB EDA Suite
|
Layer mapping for one layer table, copper in stack order and other layers by their type. More...
#include <easypc_pcb_items.h>
Public Member Functions | |
| LAYER_MAPPER (const std::vector< const EASYPC::SOURCE_LAYER * > &aLayers) | |
| std::vector< INPUT_LAYER_DESC > | Describe () const |
| void | ApplyUserMapping (const std::map< wxString, PCB_LAYER_ID > &aMapping) |
| PCB_LAYER_ID | Map (const EASYPC::OBJECT *aLayer) const |
| UNDEFINED_LAYER when the native layer has no KiCad layer. | |
| LSET | PadLayers (const EASYPC::OBJECT *aLayer, bool aComponentPad) const |
| The copper aLayer (a layer or a set) covers, with the mask and paste layers whose type plots such pads. | |
| const EASYPC::SOURCE_LAYER * | Native (PCB_LAYER_ID aLayer) const |
| int32_t | GrowByLayer (const EASYPC::SOURCE_LAYER *aLayer, int32_t aSize) const |
| aSize grown on each side by aLayer's type oversize, fixed or a percentage of the size | |
| int | CopperCount () const |
Private Attributes | |
| std::vector< const EASYPC::SOURCE_LAYER * > | m_layers |
| std::map< const EASYPC::SOURCE_LAYER *, PCB_LAYER_ID > | m_map |
| int | m_copperCount = 2 |
Layer mapping for one layer table, copper in stack order and other layers by their type.
Definition at line 85 of file easypc_pcb_items.h.
|
explicit |
Definition at line 488 of file easypc_pcb_items.cpp.
References B_Cu, EASYPC::BOTTOM, F_Cu, In1_Cu, EASYPC::LAYER_USAGE_ELECTRICAL, EASYPC::LAYER_USAGE_NON_ELECTRICAL, m_copperCount, m_layers, m_map, MAX_CU_LAYERS, EASYPC::TOP, UNDEFINED_LAYER, User_1, and User_45.
| void EASYPC_PCB::LAYER_MAPPER::ApplyUserMapping | ( | const std::map< wxString, PCB_LAYER_ID > & | aMapping | ) |
Definition at line 552 of file easypc_pcb_items.cpp.
References m_map.
|
inline |
Definition at line 105 of file easypc_pcb_items.h.
References m_copperCount.
| std::vector< INPUT_LAYER_DESC > EASYPC_PCB::LAYER_MAPPER::Describe | ( | ) | const |
Definition at line 529 of file easypc_pcb_items.cpp.
References LSET::AllCuMask(), LSET::AllNonCuMask(), INPUT_LAYER_DESC::AutoMapLayer, EASYPC::LAYER_USAGE_ELECTRICAL, m_layers, m_map, INPUT_LAYER_DESC::Name, INPUT_LAYER_DESC::PermittedLayers, and INPUT_LAYER_DESC::Required.
| int32_t EASYPC_PCB::LAYER_MAPPER::GrowByLayer | ( | const EASYPC::SOURCE_LAYER * | aLayer, |
| int32_t | aSize ) const |
aSize grown on each side by aLayer's type oversize, fixed or a percentage of the size
Definition at line 623 of file easypc_pcb_items.cpp.
References EASYPC::NONE, EASYPC::SOURCE_LAYER_TYPE::Oversize, EASYPC::SOURCE_LAYER_TYPE::OversizeType, EASYPC::PERCENT, and EASYPC::SOURCE_LAYER::Type.
| PCB_LAYER_ID EASYPC_PCB::LAYER_MAPPER::Map | ( | const EASYPC::OBJECT * | aLayer | ) | const |
UNDEFINED_LAYER when the native layer has no KiCad layer.
Definition at line 562 of file easypc_pcb_items.cpp.
References m_map, and UNDEFINED_LAYER.
Referenced by EASYPC_PCB::AddShapeItem(), EASYPC_PCB::ApplyTextPosition(), Native(), and PadLayers().
| const SOURCE_LAYER * EASYPC_PCB::LAYER_MAPPER::Native | ( | PCB_LAYER_ID | aLayer | ) | const |
Definition at line 611 of file easypc_pcb_items.cpp.
| LSET EASYPC_PCB::LAYER_MAPPER::PadLayers | ( | const EASYPC::OBJECT * | aLayer, |
| bool | aComponentPad ) const |
The copper aLayer (a layer or a set) covers, with the mask and paste layers whose type plots such pads.
Definition at line 569 of file easypc_pcb_items.cpp.
References _, EASYPC::ALL, EASYPC::SOURCE_LAYER_TYPE::AllLayerPadInstancesEnabled, EASYPC::SOURCE_LAYER_TYPE::AllLayerPadsEnabled, B_Mask, B_Paste, F_Mask, F_Paste, EASYPC::LAYER_USAGE_ELECTRICAL, EASYPC::LAYER_USAGE_NON_ELECTRICAL, EASYPC::LAYER_USAGE_SET, EASYPC::LAYER_USAGE_SPAN, m_layers, Map(), EASYPC::SOURCE_LAYER::Name, BASE_SET::set(), EASYPC::SOURCE_LAYER::Side, EASYPC::SOURCE_LAYER_TYPE::SurfacePadInstancesEnabled, EASYPC::SOURCE_LAYER_TYPE::SurfacePadsEnabled, THROW_IO_ERROR, and EASYPC::SOURCE_LAYER::Usage.
Referenced by EASYPC_PCB::CreatePad().
|
private |
Definition at line 110 of file easypc_pcb_items.h.
Referenced by CopperCount(), and LAYER_MAPPER().
|
private |
Definition at line 108 of file easypc_pcb_items.h.
Referenced by Describe(), LAYER_MAPPER(), Native(), and PadLayers().
|
private |
Definition at line 109 of file easypc_pcb_items.h.
Referenced by ApplyUserMapping(), Describe(), LAYER_MAPPER(), and Map().