KiCad PCB EDA Suite
|
#include <odb_entity.h>
Public Member Functions | |
ODB_STEP_ENTITY (BOARD *aBoard, PCB_IO_ODBPP *aPlugin) | |
virtual | ~ODB_STEP_ENTITY ()=default |
virtual std::string | GetEntityName () override |
void | InitEdaData () |
void | InitPackage () |
void | InitNetListData () |
void | MakeLayerEntity () |
bool | AddNetList () |
bool | AddProfile () |
bool | AddStepHeader () |
virtual bool | CreateDirectoryTree (ODB_TREE_WRITER &writer) override |
virtual void | InitEntityData () override |
void | GenerateLayerFiles (ODB_TREE_WRITER &writer) |
void | GenerateEdaFiles (ODB_TREE_WRITER &writer) |
void | GenerateNetlistsFiles (ODB_TREE_WRITER &writer) |
void | GenerateProfileFile (ODB_TREE_WRITER &writer) |
void | GenerateStepHeaderFile (ODB_TREE_WRITER &writer) |
virtual void | GenerateFiles (ODB_TREE_WRITER &writer) override |
Protected Attributes | |
BOARD * | m_board |
std::vector< std::string > | m_fileName |
PCB_IO_ODBPP * | m_plugin |
Private Attributes | |
std::map< wxString, std::shared_ptr< ODB_LAYER_ENTITY > > | m_layerEntityMap |
std::unique_ptr< FEATURES_MANAGER > | m_profile |
EDA_DATA | m_edaData |
std::unordered_map< wxString, wxString > | m_stephdr |
ODB_NET_LIST | m_netlist |
Definition at line 134 of file odb_entity.h.
|
inline |
Definition at line 137 of file odb_entity.h.
|
virtualdefault |
bool ODB_STEP_ENTITY::AddNetList | ( | ) |
bool ODB_STEP_ENTITY::AddProfile | ( | ) |
bool ODB_STEP_ENTITY::AddStepHeader | ( | ) |
|
overridevirtual |
Reimplemented from ODB_ENTITY_BASE.
Definition at line 863 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateEntityDirectory(), ODB_TREE_WRITER::GetCurrentPath(), GetEntityName(), and ODB_TREE_WRITER::GetRootPath().
void ODB_STEP_ENTITY::GenerateEdaFiles | ( | ODB_TREE_WRITER & | writer | ) |
Definition at line 847 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateFileProxy(), m_edaData, and EDA_DATA::Write().
Referenced by GenerateFiles().
|
overridevirtual |
Reimplemented from ODB_ENTITY_BASE.
Definition at line 762 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateEntityDirectory(), GenerateEdaFiles(), GenerateLayerFiles(), GenerateNetlistsFiles(), GenerateProfileFile(), GenerateStepHeaderFile(), ODB_TREE_WRITER::GetCurrentPath(), and ODB_TREE_WRITER::SetCurrentPath().
void ODB_STEP_ENTITY::GenerateLayerFiles | ( | ODB_TREE_WRITER & | writer | ) |
Definition at line 834 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateEntityDirectory(), ODB_TREE_WRITER::GetCurrentPath(), and m_layerEntityMap.
Referenced by GenerateFiles().
void ODB_STEP_ENTITY::GenerateNetlistsFiles | ( | ODB_TREE_WRITER & | writer | ) |
Definition at line 855 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateFileProxy(), m_netlist, and ODB_NET_LIST::Write().
Referenced by GenerateFiles().
void ODB_STEP_ENTITY::GenerateProfileFile | ( | ODB_TREE_WRITER & | writer | ) |
Definition at line 785 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateFileProxy(), BOARD::GetBoardPolygonOutlines(), ODB_ENTITY_BASE::m_board, ODB_ENTITY_BASE::m_plugin, and m_profile.
Referenced by GenerateFiles().
void ODB_STEP_ENTITY::GenerateStepHeaderFile | ( | ODB_TREE_WRITER & | writer | ) |
Definition at line 807 of file odb_entity.cpp.
References ODB_TREE_WRITER::CreateFileProxy(), m_stephdr, PCB_IO_ODBPP::m_unitsStr, ODB_UNITS, and ODB_TEXT_WRITER::WriteEquationLine().
Referenced by GenerateFiles().
|
inlineoverridevirtual |
Implements ODB_ENTITY_BASE.
Definition at line 144 of file odb_entity.h.
Referenced by CreateDirectoryTree().
void ODB_STEP_ENTITY::InitEdaData | ( | ) |
Definition at line 658 of file odb_entity.cpp.
References _, EDA_DATA::AddNET(), EDA_DATA::AddPackage(), EDA_DATA::NET::AddSubnet(), ODB::AddXY(), ANGLE_360, EDA_DATA::SUB_NET_TOEPRINT::BOTTOM, ODB::Double2String(), EDA_DATA::SUB_NET_PLANE::EXACT, BOARD::Footprints(), ODB::GenLegalEntityName(), EDA_DATA::GetEdaFootprints(), EDA_DATA::PACKAGE::GetEdaPkgPin(), EDA_DATA::GetNet(), BOARD::GetNetInfo(), EDA_DATA::GetPackage(), PCB_IO_ODBPP::GetPadSubnetMap(), PCB_IO_ODBPP::GetPlaneSubnetMap(), PCB_IO_ODBPP::GetViaTraceSubnetMap(), hash_fp_item(), HASH_POS, ODB_ENTITY_BASE::m_board, m_edaData, ODB_COMPONENT::m_index, m_layerEntityMap, ODB_ENTITY_BASE::m_plugin, ODB_COMPONENT::m_toeprints, pad, PCB_VIA_T, pin, REL_COORD, EDA_DATA::SUB_NET_PLANE::SOLID, EDA_DATA::SUB_NET_TOEPRINT::TOP, BOARD::Tracks(), and BOARD::Zones().
Referenced by InitEntityData().
|
overridevirtual |
Reimplemented from ODB_ENTITY_BASE.
Definition at line 589 of file odb_entity.cpp.
References InitEdaData(), m_layerEntityMap, and MakeLayerEntity().
void ODB_STEP_ENTITY::InitNetListData | ( | ) |
void ODB_STEP_ENTITY::InitPackage | ( | ) |
void ODB_STEP_ENTITY::MakeLayerEntity | ( | ) |
Definition at line 879 of file odb_entity.cpp.
References BOARD::GetEnabledLayers(), PCB_IO_ODBPP::GetLayerElementsMap(), BOARD::GetNetInfo(), ODB_ENTITY_BASE::m_board, ODB_ENTITY_BASE::m_plugin, LSET::Seq(), and BOARD::Tracks().
Referenced by InitEntityData().
|
protectedinherited |
Definition at line 59 of file odb_entity.h.
Referenced by ODB_MATRIX_ENTITY::AddDrillMatrixLayer(), GenerateProfileFile(), ODB_LAYER_ENTITY::InitDrillData(), InitEdaData(), ODB_LAYER_ENTITY::InitFeatureData(), ODB_MATRIX_ENTITY::InitMatrixLayerData(), and MakeLayerEntity().
|
private |
Definition at line 170 of file odb_entity.h.
Referenced by GenerateEdaFiles(), and InitEdaData().
|
protectedinherited |
Definition at line 60 of file odb_entity.h.
|
private |
Definition at line 167 of file odb_entity.h.
Referenced by GenerateLayerFiles(), InitEdaData(), and InitEntityData().
|
private |
Definition at line 172 of file odb_entity.h.
Referenced by GenerateNetlistsFiles().
|
protectedinherited |
Definition at line 61 of file odb_entity.h.
Referenced by ODB_MATRIX_ENTITY::AddCOMPMatrixLayer(), ODB_MATRIX_ENTITY::AddDrillMatrixLayer(), ODB_MATRIX_ENTITY::AddMatrixLayerField(), GenerateProfileFile(), ODB_LAYER_ENTITY::InitDrillData(), InitEdaData(), ODB_MATRIX_ENTITY::InitMatrixLayerData(), and MakeLayerEntity().
|
private |
Definition at line 168 of file odb_entity.h.
Referenced by GenerateProfileFile().
|
private |
Definition at line 171 of file odb_entity.h.
Referenced by GenerateStepHeaderFile().