KiCad PCB EDA Suite
|
#include <odb_entity.h>
Classes | |
struct | MATRIX_LAYER |
Public Member Functions | |
ODB_MATRIX_ENTITY (BOARD *aBoard, PCB_IO_ODBPP *aPlugin) | |
virtual | ~ODB_MATRIX_ENTITY ()=default |
virtual std::string | GetEntityName () override |
virtual void | GenerateFiles (ODB_TREE_WRITER &writer) override |
virtual void | InitEntityData () override |
void | InitMatrixLayerData () |
void | AddStep (const wxString &aStepName) |
void | AddMatrixLayerField (MATRIX_LAYER &aMLayer, PCB_LAYER_ID aLayer) |
void | AddDrillMatrixLayer () |
void | AddCOMPMatrixLayer (PCB_LAYER_ID aCompSide) |
virtual bool | CreateDirectoryTree (ODB_TREE_WRITER &writer) |
Protected Attributes | |
BOARD * | m_board |
std::vector< std::string > | m_fileName |
PCB_IO_ODBPP * | m_plugin |
Private Attributes | |
std::map< wxString, unsigned int > | m_matrixSteps |
std::vector< MATRIX_LAYER > | m_matrixLayers |
unsigned int | m_row = 1 |
unsigned int | m_col = 1 |
bool | m_hasBotComp = false |
Definition at line 69 of file odb_entity.h.
|
inline |
Definition at line 72 of file odb_entity.h.
|
virtualdefault |
void ODB_MATRIX_ENTITY::AddCOMPMatrixLayer | ( | PCB_LAYER_ID | aCompSide | ) |
Definition at line 333 of file odb_entity.cpp.
References B_Cu, F_Cu, ODB::GenLegalEntityName(), PCB_IO_ODBPP::GetLayerNameList(), ODB_MATRIX_ENTITY::MATRIX_LAYER::m_context, m_hasBotComp, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_layerName, m_matrixLayers, ODB_ENTITY_BASE::m_plugin, m_row, and ODB_MATRIX_ENTITY::MATRIX_LAYER::m_type.
Referenced by InitMatrixLayerData().
void ODB_MATRIX_ENTITY::AddDrillMatrixLayer | ( | ) |
Definition at line 251 of file odb_entity.cpp.
References B_Cu, F_Cu, BOARD::Footprints(), ODB::GenLegalEntityName(), PCB_IO_ODBPP::GetDrillLayerItemsMap(), BOARD::GetLayerName(), PCB_IO_ODBPP::GetLayerNameList(), PCB_IO_ODBPP::GetSlotHolesMap(), ODB_ENTITY_BASE::m_board, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_context, m_hasBotComp, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_layerName, m_matrixLayers, ODB_ENTITY_BASE::m_plugin, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_polarity, m_row, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_span, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_type, pad, PCB_VIA_T, BOARD::Tracks(), and via.
Referenced by InitMatrixLayerData().
void ODB_MATRIX_ENTITY::AddMatrixLayerField | ( | MATRIX_LAYER & | aMLayer, |
PCB_LAYER_ID | aLayer | ||
) |
Definition at line 191 of file odb_entity.cpp.
References B_Adhes, B_CrtYd, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Fab, F_Mask, F_Paste, F_SilkS, PCB_IO_ODBPP::GetLayerNameList(), IsCopperLayer(), ODB_MATRIX_ENTITY::MATRIX_LAYER::m_context, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_layerName, m_matrixLayers, ODB_ENTITY_BASE::m_plugin, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_polarity, m_row, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_type, Margin, User_1, User_2, User_3, User_4, User_5, User_6, User_7, User_8, and User_9.
Referenced by InitMatrixLayerData().
void ODB_MATRIX_ENTITY::AddStep | ( | const wxString & | aStepName | ) |
Definition at line 104 of file odb_entity.cpp.
References m_col, and m_matrixSteps.
Referenced by InitEntityData().
|
virtualinherited |
Reimplemented in ODB_STEP_ENTITY.
Definition at line 62 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateEntityDirectory(), ODB_ENTITY_BASE::GetEntityName(), and ODB_TREE_WRITER::GetRootPath().
|
overridevirtual |
Reimplemented from ODB_ENTITY_BASE.
Definition at line 356 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateFileProxy(), m_matrixLayers, m_matrixSteps, ODB_TEXT_WRITER::MakeArrayProxy(), ODB_TEXT_WRITER::write_line_enum(), and ODB_TEXT_WRITER::WriteEquationLine().
|
inlineoverridevirtual |
Implements ODB_ENTITY_BASE.
Definition at line 78 of file odb_entity.h.
|
overridevirtual |
Reimplemented from ODB_ENTITY_BASE.
Definition at line 110 of file odb_entity.cpp.
References AddStep(), and InitMatrixLayerData().
void ODB_MATRIX_ENTITY::InitMatrixLayerData | ( | ) |
Definition at line 118 of file odb_entity.cpp.
References AddCOMPMatrixLayer(), AddDrillMatrixLayer(), AddMatrixLayerField(), B_Cu, BS_ITEM_TYPE_DIELECTRIC, F_Cu, BOARD_STACKUP_ITEM::GetBrdLayerId(), BOARD_STACKUP::GetCount(), BOARD::GetDesignSettings(), BOARD_STACKUP_ITEM::GetDielectricLayerId(), BOARD::GetEnabledLayers(), BOARD_STACKUP_ITEM::GetLayerName(), BOARD::GetLayerName(), PCB_IO_ODBPP::GetLayerNameList(), BOARD_STACKUP::GetList(), BOARD_DESIGN_SETTINGS::GetStackupDescriptor(), BOARD_STACKUP_ITEM::GetSublayersCount(), BOARD_STACKUP_ITEM::GetType(), BOARD_STACKUP_ITEM::GetTypeName(), IsValidLayer(), KEY_CORE, ODB_ENTITY_BASE::m_board, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_context, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_diType, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_layerName, m_matrixLayers, ODB_ENTITY_BASE::m_plugin, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_polarity, m_row, ODB_MATRIX_ENTITY::MATRIX_LAYER::m_type, LSET::Seq(), and BOARD_STACKUP::SynchronizeWithBoard().
Referenced by InitEntityData().
|
protectedinherited |
Definition at line 59 of file odb_entity.h.
Referenced by AddDrillMatrixLayer(), ODB_STEP_ENTITY::GenerateProfileFile(), ODB_LAYER_ENTITY::InitDrillData(), ODB_STEP_ENTITY::InitEdaData(), ODB_LAYER_ENTITY::InitFeatureData(), InitMatrixLayerData(), and ODB_STEP_ENTITY::MakeLayerEntity().
|
private |
Definition at line 111 of file odb_entity.h.
Referenced by AddStep().
|
protectedinherited |
Definition at line 60 of file odb_entity.h.
|
private |
Definition at line 112 of file odb_entity.h.
Referenced by AddCOMPMatrixLayer(), and AddDrillMatrixLayer().
|
private |
Definition at line 109 of file odb_entity.h.
Referenced by AddCOMPMatrixLayer(), AddDrillMatrixLayer(), AddMatrixLayerField(), GenerateFiles(), and InitMatrixLayerData().
|
private |
Definition at line 108 of file odb_entity.h.
Referenced by AddStep(), and GenerateFiles().
|
protectedinherited |
Definition at line 61 of file odb_entity.h.
Referenced by AddCOMPMatrixLayer(), AddDrillMatrixLayer(), AddMatrixLayerField(), ODB_STEP_ENTITY::GenerateProfileFile(), ODB_LAYER_ENTITY::InitDrillData(), ODB_STEP_ENTITY::InitEdaData(), InitMatrixLayerData(), and ODB_STEP_ENTITY::MakeLayerEntity().
|
private |
Definition at line 110 of file odb_entity.h.
Referenced by AddCOMPMatrixLayer(), AddDrillMatrixLayer(), AddMatrixLayerField(), and InitMatrixLayerData().