KiCad PCB EDA Suite
|
Classes | |
class | CHECK_ONCE |
class | EnumStringMap |
Functions | |
wxString | GenODBString (const wxString &aStr) |
wxString | GenLegalNetName (const wxString &aStr) |
wxString | GenLegalEntityName (const wxString &aStr) |
wxString | Double2String (double aVal) |
std::string | Double2String (double aVal, int32_t aDigits) |
wxString | SymDouble2String (double aVal) |
wxString | Data2String (double aVal) |
std::pair< wxString, wxString > | AddXY (const VECTOR2I &aVec) |
VECTOR2I | GetShapePosition (const PCB_SHAPE &aShape) |
template<typename T > | |
std::string | Enum2String (T value) |
std::pair< wxString, wxString > ODB::AddXY | ( | const VECTOR2I & | aVec | ) |
Definition at line 158 of file odb_util.cpp.
References Double2String(), PCB_IO_ODBPP::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(), EDA_DATA::PACKAGE::AddPin(), FEATURES_MANAGER::AddShape(), ODB_STEP_ENTITY::InitEdaData(), and ODB_SURFACE_DATA::WriteData().
wxString ODB::Data2String | ( | double | aVal | ) |
Definition at line 152 of file odb_util.cpp.
References Double2String(), and PCB_IO_ODBPP::m_scale.
Referenced by EDA_DATA::PACKAGE::Write(), OUTLINE_RECT::Write(), OUTLINE_SQUARE::Write(), OUTLINE_CIRCLE::Write(), and ODB_NET_LIST::WriteNetPointRecords().
wxString ODB::Double2String | ( | double | aVal | ) |
Definition at line 118 of file odb_util.cpp.
References PCB_IO_ODBPP::m_sigfig.
Referenced by COMPONENTS_MANAGER::AddComponent(), AddXY(), ATTR_MANAGER::AttrValue2String(), Data2String(), ODB_STEP_ENTITY::InitEdaData(), SymDouble2String(), and ODB_PAD::WriteRecordContent().
std::string ODB::Double2String | ( | double | aVal, |
int32_t | aDigits | ||
) |
Definition at line 134 of file odb_util.cpp.
std::string ODB::Enum2String | ( | T | value | ) |
Definition at line 172 of file odb_util.h.
References ODB::EnumStringMap< T >::GetMap().
Referenced by ODB_TEXT_WRITER::write_line_enum().
wxString ODB::GenLegalEntityName | ( | const wxString & | aStr | ) |
Definition at line 81 of file odb_util.cpp.
Referenced by ODB_MATRIX_ENTITY::AddCOMPMatrixLayer(), ODB_MATRIX_ENTITY::AddDrillMatrixLayer(), ODB_LAYER_ENTITY::InitDrillData(), and ODB_STEP_ENTITY::InitEdaData().
wxString ODB::GenLegalNetName | ( | const wxString & | aStr | ) |
Definition at line 56 of file odb_util.cpp.
Referenced by ODB_NET_LIST::WriteNetPointRecords().
wxString ODB::GenODBString | ( | const wxString & | aStr | ) |
Definition at line 34 of file odb_util.cpp.
Definition at line 169 of file odb_util.cpp.
References PCB_SHAPE::GetPosition(), EDA_SHAPE::GetRectangleHeight(), EDA_SHAPE::GetRectangleWidth(), and EDA_SHAPE::GetShape().
Referenced by FEATURES_MANAGER::AddShape().
wxString ODB::SymDouble2String | ( | double | aVal | ) |
Definition at line 146 of file odb_util.cpp.
References Double2String(), and PCB_IO_ODBPP::m_symbolScale.
Referenced by FEATURES_MANAGER::AddFeatureArc(), FEATURES_MANAGER::AddFeatureLine(), FEATURES_MANAGER::AddPadCircle(), FEATURES_MANAGER::AddPadShape(), FEATURES_MANAGER::AddShape(), and ODB_LAYER_ENTITY::InitDrillData().