|
KiCad PCB EDA Suite
|
Classes | |
| class | CHECK_ONCE |
| class | EnumStringMap |
| struct | VARIANT_NAMES |
Functions | |
| double | ModelHeightAboveBoard (const S3DMODEL &aModel, const FP_3DMODEL &aPlacement) |
| bool | HasShownModel (const FOOTPRINT *aFp) |
| int | IpcViaType (const DRILL_OPERATION &aOperation, bool aTop) |
| bool | ViaInPad (const PCB_VIA &aVia) |
| std::vector< ODB_TYPE > | OverridableLayerTypes (PCB_LAYER_ID aLayer) |
| Matrix types a layer override may assign to aLayer. | |
| wxString | GenODBString (const wxString &aStr) |
| static wxUniChar | NextCharacter (const wxString &aStr, size_t &aIndex) |
| wxString | GenLegalNetName (const wxString &aStr) |
| wxString | GenLegalComponentName (const wxString &aStr) |
| wxString | GenLegalEntityName (const wxString &aStr) |
| std::vector< wxString > | UniqueNames (const std::vector< wxString > &aBases, const std::set< wxString > &aReserved, size_t aMaxLength) |
| void | RemoveWhitespace (wxString &aStr) |
| wxString | Double2String (const ODB_FORMAT &aFormat, double aVal) |
| std::string | Double2String (double aVal, int32_t aDigits) |
| wxString | SymDouble2String (const ODB_FORMAT &aFormat, double aVal) |
| wxString | Data2String (const ODB_FORMAT &aFormat, double aVal) |
| std::pair< wxString, wxString > | AddXY (const ODB_FORMAT &aFormat, const VECTOR2I &aVec) |
| std::pair< wxString, wxString > | AddRelativeXY (const ODB_FORMAT &aFormat, const VECTOR2I &aVec) |
| VECTOR2I | GetShapePosition (const PCB_SHAPE &aShape) |
| template<typename T> | |
| std::string | Enum2String (T value) |
| std::pair< wxString, wxString > ODB::AddRelativeXY | ( | const ODB_FORMAT & | aFormat, |
| const VECTOR2I & | aVec ) |
Definition at line 419 of file odb_util.cpp.
References Double2String(), ODB_FORMAT::m_scale, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by EDA_DATA::PACKAGE::AddPin().
| std::pair< wxString, wxString > ODB::AddXY | ( | const ODB_FORMAT & | aFormat, |
| const VECTOR2I & | aVec ) |
Definition at line 412 of file odb_util.cpp.
References Double2String(), ODB_FORMAT::m_originOffset, ODB_FORMAT::m_scale, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by COMPONENTS_MANAGER::AddComponent(), FEATURES_MANAGER::AddFeatureArc(), FEATURES_MANAGER::AddFeatureLine(), FEATURES_MANAGER::AddPadCircle(), FEATURES_MANAGER::AddPadShape(), FEATURES_MANAGER::AddShape(), ODB_STEP_ENTITY::InitEdaData(), and ODB_SURFACE_DATA::WriteData().
| wxString ODB::Data2String | ( | const ODB_FORMAT & | aFormat, |
| double | aVal ) |
Definition at line 406 of file odb_util.cpp.
References Double2String(), and ODB_FORMAT::m_scale.
Referenced by ODB_LAYER_ENTITY::GenAttrList(), ODB_MISC_ENTITY::GenerateMetadataFile(), ODB_MATRIX_ENTITY::GenerateStackupFile(), EDA_DATA::PACKAGE::Write(), OUTLINE_CIRCLE::Write(), OUTLINE_RECT::Write(), OUTLINE_SQUARE::Write(), and ODB_NET_LIST::WriteNetPointRecords().
| wxString ODB::Double2String | ( | const ODB_FORMAT & | aFormat, |
| double | aVal ) |
Definition at line 382 of file odb_util.cpp.
References FormatTrimmedDecimal(), and ODB_FORMAT::m_sigfig.
Referenced by COMPONENTS_MANAGER::AddComponent(), AddRelativeXY(), AddXY(), ATTR_MANAGER::AttrValue2String(), Data2String(), ODB_LAYER_ENTITY::GenAttrList(), ODB_STEP_ENTITY::GenerateAttrListFile(), ODB_MATRIX_ENTITY::GenerateStackupFile(), ODB_STEP_ENTITY::InitEdaData(), SymDouble2String(), and ODB_PAD::WriteRecordContent().
| std::string ODB::Double2String | ( | double | aVal, |
| int32_t | aDigits ) |
Definition at line 388 of file odb_util.cpp.
Definition at line 279 of file odb_util.h.
References ODB::EnumStringMap< T >::GetMap(), and T.
Referenced by ODB_MATRIX_ENTITY::InitMatrixLayerData(), PreviewOdbMatrix(), and ODB_TEXT_WRITER::write_line_enum().
| wxString ODB::GenLegalComponentName | ( | const wxString & | aStr | ) |
Definition at line 185 of file odb_util.cpp.
References NextCharacter().
Referenced by COMPONENTS_MANAGER::AddComponent().
| wxString ODB::GenLegalEntityName | ( | const wxString & | aStr | ) |
Definition at line 212 of file odb_util.cpp.
References NextCharacter().
Referenced by ODB_MATRIX_ENTITY::AddAuxilliaryMatrixLayer(), ODB_MATRIX_ENTITY::AddDrillMatrixLayer(), ODB_MATRIX_ENTITY::AddRoutMatrixLayer(), ODB_MATRIX_ENTITY::AddStep(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ODB::VARIANT_NAMES::Build(), ODB_LAYER_ENTITY::GenAttrList(), ODB_MATRIX_ENTITY::InitMatrixLayerData(), and ODB::VARIANT_NAMES::LegalName().
| wxString ODB::GenLegalNetName | ( | const wxString & | aStr | ) |
Definition at line 161 of file odb_util.cpp.
References NextCharacter().
Referenced by PCB_IO_ODBPP::CreateEntity().
| wxString ODB::GenODBString | ( | const wxString & | aStr | ) |
Definition at line 121 of file odb_util.cpp.
Definition at line 426 of file odb_util.cpp.
References ARC, BEZIER, CIRCLE, ELLIPSE, ELLIPSE_ARC, PCB_SHAPE::GetPosition(), EDA_SHAPE::GetRectangleHeight(), EDA_SHAPE::GetRectangleWidth(), EDA_SHAPE::GetShape(), POLY, RECTANGLE, SEGMENT, and UNDEFINED.
Referenced by FEATURES_MANAGER::AddShape().
| bool ODB::HasShownModel | ( | const FOOTPRINT * | aFp | ) |
Definition at line 76 of file odb_component.cpp.
References model, and FOOTPRINT::Models().
Referenced by ODB_STEP_ENTITY::InitEdaData().
| int ODB::IpcViaType | ( | const DRILL_OPERATION & | aOperation, |
| bool | aTop ) |
Definition at line 43 of file odb_util.cpp.
References DRILL_OPERATION::m_BottomCovered, DRILL_OPERATION::m_BottomPlugged, DRILL_OPERATION::m_BottomTented, DRILL_OPERATION::m_Capped, DRILL_OPERATION::m_Filled, DRILL_OPERATION::m_TopCovered, DRILL_OPERATION::m_TopPlugged, and DRILL_OPERATION::m_TopTented.
Referenced by FEATURES_MANAGER::addViaDrillAttributes().
| double ODB::ModelHeightAboveBoard | ( | const S3DMODEL & | aModel, |
| const FP_3DMODEL & | aPlacement ) |
Definition at line 48 of file odb_component.cpp.
References CalcModelMatrix(), S3DMODEL::m_Meshes, S3DMODEL::m_MeshesSize, FP_3DMODEL::m_Offset, SMESH::m_Positions, FP_3DMODEL::m_Rotation, FP_3DMODEL::m_Scale, SMESH::m_VertexSize, VECTOR3< T >::x, VECTOR3< T >::y, and VECTOR3< T >::z.
|
static |
Definition at line 143 of file odb_util.cpp.
References next().
Referenced by GenLegalComponentName(), GenLegalEntityName(), and GenLegalNetName().
| std::vector< ODB_TYPE > ODB::OverridableLayerTypes | ( | PCB_LAYER_ID | aLayer | ) |
Matrix types a layer override may assign to aLayer.
Definition at line 110 of file odb_util.cpp.
References CONDUCTIVE_PASTE, DOCUMENT, IsCopperLayer(), MASK, MIXED, POWER_GROUND, SIGNAL, SILK_SCREEN, SOLDER_MASK, and SOLDER_PASTE.
Referenced by ODB_MATRIX_ENTITY::InitMatrixLayerData().
| void ODB::RemoveWhitespace | ( | wxString & | aStr | ) |
Definition at line 374 of file odb_util.cpp.
Referenced by COMPONENTS_MANAGER::AddComponent(), EDA_DATA::AddPackage(), and EDA_DATA::PACKAGE::AddPin().
| wxString ODB::SymDouble2String | ( | const ODB_FORMAT & | aFormat, |
| double | aVal ) |
Definition at line 400 of file odb_util.cpp.
References Double2String(), and ODB_FORMAT::m_symbolScale.
Referenced by ODB_DRILL_TOOLS::AddDrillTool(), FEATURES_MANAGER::AddFeatureArc(), FEATURES_MANAGER::AddFeatureLine(), FEATURES_MANAGER::AddPadCircle(), FEATURES_MANAGER::AddPadShape(), and FEATURES_MANAGER::AddShape().
| std::vector< wxString > ODB::UniqueNames | ( | const std::vector< wxString > & | aBases, |
| const std::set< wxString > & | aReserved, | ||
| size_t | aMaxLength ) |
Definition at line 252 of file odb_util.cpp.
Referenced by ODB::VARIANT_NAMES::Build(), PCB_IO_ODBPP::CreateEntity(), and ODB_MATRIX_ENTITY::EnsureUniqueLayerNames().
| bool ODB::ViaInPad | ( | const PCB_VIA & | aVia | ) |
Definition at line 68 of file odb_util.cpp.
References B_Cu, F_Cu, BOARD::Footprints(), BOARD_ITEM::GetBoard(), PCB_VIA::GetEffectiveHoleShape(), PCB_VIA::IsOnLayer(), NPTH, and pad.
Referenced by FEATURES_MANAGER::addViaDrillAttributes().