KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ODB Namespace Reference

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)
 

Function Documentation

◆ AddRelativeXY()

std::pair< wxString, wxString > ODB::AddRelativeXY ( const ODB_FORMAT & aFormat,
const VECTOR2I & aVec )

◆ AddXY()

◆ Data2String()

◆ Double2String() [1/2]

◆ Double2String() [2/2]

std::string ODB::Double2String ( double aVal,
int32_t aDigits )

Definition at line 388 of file odb_util.cpp.

◆ Enum2String()

template<typename T>
std::string ODB::Enum2String ( T value)

◆ GenLegalComponentName()

wxString ODB::GenLegalComponentName ( const wxString & aStr)

Definition at line 185 of file odb_util.cpp.

References NextCharacter().

Referenced by COMPONENTS_MANAGER::AddComponent().

◆ GenLegalEntityName()

◆ GenLegalNetName()

wxString ODB::GenLegalNetName ( const wxString & aStr)

Definition at line 161 of file odb_util.cpp.

References NextCharacter().

Referenced by PCB_IO_ODBPP::CreateEntity().

◆ GenODBString()

wxString ODB::GenODBString ( const wxString & aStr)

Definition at line 121 of file odb_util.cpp.

◆ GetShapePosition()

◆ HasShownModel()

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().

◆ IpcViaType()

◆ ModelHeightAboveBoard()

◆ NextCharacter()

static wxUniChar ODB::NextCharacter ( const wxString & aStr,
size_t & aIndex )
static

Definition at line 143 of file odb_util.cpp.

References next().

Referenced by GenLegalComponentName(), GenLegalEntityName(), and GenLegalNetName().

◆ OverridableLayerTypes()

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().

◆ RemoveWhitespace()

void ODB::RemoveWhitespace ( wxString & aStr)

◆ SymDouble2String()

◆ UniqueNames()

std::vector< wxString > ODB::UniqueNames ( const std::vector< wxString > & aBases,
const std::set< wxString > & aReserved,
size_t aMaxLength )

◆ ViaInPad()

bool ODB::ViaInPad ( const PCB_VIA & aVia)