KiCad PCB EDA Suite
|
#include <odb_entity.h>
Public Member Functions | |
ODB_LAYER_ENTITY (BOARD *aBoard, PCB_IO_ODBPP *aPlugin, std::map< int, std::vector< BOARD_ITEM * > > &aMap, const PCB_LAYER_ID &aLayerID, const wxString &aLayerName) | |
virtual | ~ODB_LAYER_ENTITY ()=default |
virtual std::string | GetEntityName () override |
virtual void | InitEntityData () override |
void | InitFeatureData () |
ODB_COMPONENT & | InitComponentData (const FOOTPRINT *aFp, const EDA_DATA::PACKAGE &aPkg) |
void | InitDrillData () |
void | AddLayerFeatures () |
void | GenAttrList (ODB_TREE_WRITER &writer) |
void | GenComponents (ODB_TREE_WRITER &writer) |
void | GenTools (ODB_TREE_WRITER &writer) |
void | GenFeatures (ODB_TREE_WRITER &writer) |
virtual void | GenerateFiles (ODB_TREE_WRITER &writer) override |
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< int, std::vector< BOARD_ITEM * > > | m_layerItems |
PCB_LAYER_ID | m_layerID |
wxString | m_matrixLayerName |
std::optional< ODB_DRILL_TOOLS > | m_tools |
std::optional< COMPONENTS_MANAGER > | m_compTop |
std::optional< COMPONENTS_MANAGER > | m_compBot |
std::unique_ptr< FEATURES_MANAGER > | m_featuresMgr |
Definition at line 176 of file odb_entity.h.
ODB_LAYER_ENTITY::ODB_LAYER_ENTITY | ( | BOARD * | aBoard, |
PCB_IO_ODBPP * | aPlugin, | ||
std::map< int, std::vector< BOARD_ITEM * > > & | aMap, | ||
const PCB_LAYER_ID & | aLayerID, | ||
const wxString & | aLayerName | ||
) |
Definition at line 409 of file odb_entity.cpp.
References m_featuresMgr.
|
virtualdefault |
void ODB_LAYER_ENTITY::AddLayerFeatures | ( | ) |
|
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().
void ODB_LAYER_ENTITY::GenAttrList | ( | ODB_TREE_WRITER & | writer | ) |
Definition at line 644 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateFileProxy().
Referenced by GenerateFiles().
void ODB_LAYER_ENTITY::GenComponents | ( | ODB_TREE_WRITER & | writer | ) |
Definition at line 621 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateFileProxy(), m_compBot, and m_compTop.
Referenced by GenerateFiles().
|
overridevirtual |
Reimplemented from ODB_ENTITY_BASE.
Definition at line 603 of file odb_entity.cpp.
References GenAttrList(), GenComponents(), GenFeatures(), GenTools(), m_compBot, m_compTop, and m_tools.
void ODB_LAYER_ENTITY::GenFeatures | ( | ODB_TREE_WRITER & | writer | ) |
Definition at line 636 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateFileProxy(), and m_featuresMgr.
Referenced by GenerateFiles().
void ODB_LAYER_ENTITY::GenTools | ( | ODB_TREE_WRITER & | writer | ) |
Definition at line 650 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateFileProxy(), and m_tools.
Referenced by GenerateFiles().
|
inlineoverridevirtual |
Implements ODB_ENTITY_BASE.
Definition at line 185 of file odb_entity.h.
ODB_COMPONENT & ODB_LAYER_ENTITY::InitComponentData | ( | const FOOTPRINT * | aFp, |
const EDA_DATA::PACKAGE & | aPkg | ||
) |
Definition at line 462 of file odb_entity.cpp.
References m_compBot, m_compTop, and m_matrixLayerName.
void ODB_LAYER_ENTITY::InitDrillData | ( | ) |
Definition at line 485 of file odb_entity.cpp.
References ODB::GenLegalEntityName(), PCB_IO_ODBPP::GetDrillLayerItemsMap(), BOARD::GetLayerName(), PCB_IO_ODBPP::GetSlotHolesMap(), ODB_ENTITY_BASE::m_board, m_layerItems, m_matrixLayerName, ODB_ENTITY_BASE::m_plugin, m_tools, PCB_IO_ODBPP::m_unitsStr, pad, PCB_PAD_T, PCB_VIA_T, ODB::SymDouble2String(), and via.
Referenced by InitEntityData().
|
overridevirtual |
Reimplemented from ODB_ENTITY_BASE.
Definition at line 419 of file odb_entity.cpp.
References InitDrillData(), InitFeatureData(), m_layerID, and m_matrixLayerName.
void ODB_LAYER_ENTITY::InitFeatureData | ( | ) |
Definition at line 434 of file odb_entity.cpp.
References BOARD::GetNetInfo(), ODB_ENTITY_BASE::m_board, m_featuresMgr, m_layerID, and m_layerItems.
Referenced by InitEntityData().
|
protectedinherited |
Definition at line 59 of file odb_entity.h.
Referenced by ODB_MATRIX_ENTITY::AddDrillMatrixLayer(), ODB_STEP_ENTITY::GenerateProfileFile(), InitDrillData(), ODB_STEP_ENTITY::InitEdaData(), InitFeatureData(), ODB_MATRIX_ENTITY::InitMatrixLayerData(), and ODB_STEP_ENTITY::MakeLayerEntity().
|
private |
Definition at line 209 of file odb_entity.h.
Referenced by GenComponents(), GenerateFiles(), and InitComponentData().
|
private |
Definition at line 208 of file odb_entity.h.
Referenced by GenComponents(), GenerateFiles(), and InitComponentData().
|
private |
Definition at line 210 of file odb_entity.h.
Referenced by GenFeatures(), InitFeatureData(), and ODB_LAYER_ENTITY().
|
protectedinherited |
Definition at line 60 of file odb_entity.h.
|
private |
Definition at line 204 of file odb_entity.h.
Referenced by InitEntityData(), and InitFeatureData().
|
private |
Definition at line 203 of file odb_entity.h.
Referenced by InitDrillData(), and InitFeatureData().
|
private |
Definition at line 205 of file odb_entity.h.
Referenced by InitComponentData(), InitDrillData(), and InitEntityData().
|
protectedinherited |
Definition at line 61 of file odb_entity.h.
Referenced by ODB_MATRIX_ENTITY::AddCOMPMatrixLayer(), ODB_MATRIX_ENTITY::AddDrillMatrixLayer(), ODB_MATRIX_ENTITY::AddMatrixLayerField(), ODB_STEP_ENTITY::GenerateProfileFile(), InitDrillData(), ODB_STEP_ENTITY::InitEdaData(), ODB_MATRIX_ENTITY::InitMatrixLayerData(), and ODB_STEP_ENTITY::MakeLayerEntity().
|
private |
Definition at line 207 of file odb_entity.h.
Referenced by GenerateFiles(), GenTools(), and InitDrillData().