![]() |
KiCad PCB EDA Suite
|
Classes | |
class | PCB |
class | PCB_ARC |
class | PCB_CALLBACKS |
class | PCB_COMPONENT |
class | PCB_COPPER_POUR |
class | PCB_CUTOUT |
class | PCB_FOOTPRINT |
class | PCB_KEEPOUT |
class | PCB_LINE |
class | PCB_NET |
class | PCB_NET_NODE |
class | PCB_PAD |
class | PCB_PAD_SHAPE |
class | PCB_PLANE |
class | PCB_POLYGON |
class | PCB_TEXT |
class | PCB_VIA |
class | PCB_VIA_SHAPE |
struct | TTEXTVALUE |
Enumerations | |
enum | TTEXT_JUSTIFY { LowerLeft, LowerCenter, LowerRight, UpperLeft, UpperCenter, UpperRight, Left, Center, Right } |
Functions | |
wxString | GetWord (wxString *aStr) |
XNODE * | FindPinMap (XNODE *aNode) |
double | StrToDoublePrecisionUnits (const wxString &aStr, char aAxe, const wxString &aActualConversion) |
int | StrToIntUnits (const wxString &aStr, char aAxe, const wxString &aActualConversion) |
wxString | GetAndCutWordWithMeasureUnits (wxString *aStr, const wxString &aDefaultMeasurementUnit) |
int | StrToInt1Units (const wxString &aStr) |
wxString | ValidateName (const wxString &aName) |
wxString | ValidateReference (const wxString &aRef) |
void | SetWidth (const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aWidth, const wxString &aActualConversion) |
void | SetHeight (const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aHeight, const wxString &aActualConversion) |
void | SetPosition (const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aX, int *aY, const wxString &aActualConversion) |
void | SetDoublePrecisionPosition (const wxString &aStr, const wxString &aDefaultMeasurementUnit, double *aX, double *aY, const wxString &aActualConversion) |
TTEXT_JUSTIFY | GetJustifyIdentificator (const wxString &aJustify) |
void | SetTextParameters (XNODE *aNode, TTEXTVALUE *aTextValue, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion) |
void | SetFontProperty (XNODE *aNode, TTEXTVALUE *aTextValue, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion) |
void | SetTextJustify (EDA_TEXT *aText, TTEXT_JUSTIFY aJustify) |
int | CalculateTextLengthSize (TTEXTVALUE *aText) |
void | CorrectTextPosition (TTEXTVALUE *aValue) |
void | SetTextSizeFromStrokeFontHeight (EDA_TEXT *aText, int aTextHeight) |
void | SetTextSizeFromTrueTypeFontHeight (EDA_TEXT *aText, int aTextHeight) |
XNODE * | FindNode (XNODE *aChild, const wxString &aTag) |
wxString | FindNodeGetContent (XNODE *aChild, const wxString &aTag) |
void | InitTTextValue (TTEXTVALUE *aTextValue) |
WX_DEFINE_ARRAY (PCB_COMPONENT *, PCB_COMPONENTS_ARRAY) | |
WX_DEFINE_ARRAY (PCB_NET *, PCB_NETS_ARRAY) | |
WX_DEFINE_ARRAY (PCB_NET_NODE *, PCB_NET_NODES_ARRAY) | |
WX_DEFINE_ARRAY (PCB_PAD_SHAPE *, PCB_PAD_SHAPES_ARRAY) | |
void | LoadInputFile (const wxString &aFileName, wxXmlDocument *aXmlDoc) |
Variables | |
const double | TEXT_WIDTH_TO_SIZE_AVERAGE = 0.5 |
const double | STROKE_HEIGHT_TO_SIZE = 0.656 |
const double | STROKE_WIDTH_TO_SIZE = 0.69 |
const double | TRUETYPE_HEIGHT_TO_SIZE = 0.585 |
const double | TRUETYPE_WIDTH_TO_SIZE = 0.585 |
const double | TRUETYPE_THICK_PER_HEIGHT = 0.073 |
const double | TRUETYPE_BOLD_THICK_MUL = 1.6 |
const long | TRUETYPE_BOLD_MIN_WEIGHT = 700 |
static KEYWORD | empty_keywords [1] = {} |
static const char | ACCEL_ASCII_KEYWORD [] = "ACCEL_ASCII" |
Enumerator | |
---|---|
LowerLeft | |
LowerCenter | |
LowerRight | |
UpperLeft | |
UpperCenter | |
UpperRight | |
Left | |
Center | |
Right |
Definition at line 43 of file pcad2kicad_common.h.
int PCAD2KICAD::CalculateTextLengthSize | ( | TTEXTVALUE * | aText | ) |
Definition at line 510 of file pcad2kicad_common.cpp.
References KiROUND(), PCAD2KICAD::TTEXTVALUE::text, TEXT_WIDTH_TO_SIZE_AVERAGE, and PCAD2KICAD::TTEXTVALUE::textHeight.
Referenced by CorrectTextPosition().
void PCAD2KICAD::CorrectTextPosition | ( | TTEXTVALUE * | aValue | ) |
Definition at line 517 of file pcad2kicad_common.cpp.
References CalculateTextLengthSize(), PCAD2KICAD::TTEXTVALUE::correctedPositionX, PCAD2KICAD::TTEXTVALUE::correctedPositionY, PCAD2KICAD::TTEXTVALUE::justify, KiROUND(), Left, LowerCenter, LowerLeft, LowerRight, PCAD2KICAD::TTEXTVALUE::mirror, Right, RotatePoint(), PCAD2KICAD::TTEXTVALUE::textHeight, PCAD2KICAD::TTEXTVALUE::textPositionX, PCAD2KICAD::TTEXTVALUE::textPositionY, PCAD2KICAD::TTEXTVALUE::textRotation, UpperCenter, UpperLeft, and UpperRight.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::AddToBoard().
Definition at line 559 of file pcad2kicad_common.cpp.
References XNODE::GetChildren(), and XNODE::GetNext().
Referenced by PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB::FindCompDefName(), PCAD2KICAD::PCB_FOOTPRINT::FindModulePatternDefName(), FindNodeGetContent(), PCAD2KICAD::PCB_FOOTPRINT::FindPatternMultilayerSection(), FindPinMap(), PCAD2KICAD::PCB_POLYGON::FormPolygon(), PCAD2KICAD::PCB::GetBoardOutline(), PCAD2KICAD::PCB::MapLayer(), PCAD2KICAD::PCB_KEEPOUT::Parse(), PCAD2KICAD::PCB_PLANE::Parse(), PCAD2KICAD::PCB_PAD_SHAPE::Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_CUTOUT::Parse(), PCAD2KICAD::PCB_VIA_SHAPE::Parse(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_POLYGON::Parse(), PCAD2KICAD::PCB_LINE::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), PCAD2KICAD::PCB_NET::Parse(), PCAD2KICAD::PCB_FOOTPRINT::Parse(), PCAD2KICAD::PCB::ParseBoard(), SetFontProperty(), SetTextParameters(), and PCAD2KICAD::PCB::SetTextProperty().
wxString PCAD2KICAD::FindNodeGetContent | ( | XNODE * | aChild, |
const wxString & | aTag | ||
) |
Definition at line 575 of file pcad2kicad_common.cpp.
References FindNode().
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), SetFontProperty(), and SetTextParameters().
Definition at line 102 of file pcad2kicad_common.cpp.
References FindNode().
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), and PCAD2KICAD::PCB_FOOTPRINT::Parse().
wxString PCAD2KICAD::GetAndCutWordWithMeasureUnits | ( | wxString * | aStr, |
const wxString & | aDefaultMeasurementUnit | ||
) |
Definition at line 186 of file pcad2kicad_common.cpp.
Referenced by SetDoublePrecisionPosition(), SetHeight(), SetPosition(), and SetWidth().
TTEXT_JUSTIFY PCAD2KICAD::GetJustifyIdentificator | ( | const wxString & | aJustify | ) |
Definition at line 303 of file pcad2kicad_common.cpp.
References Center, Left, LowerCenter, LowerLeft, LowerRight, Right, UpperCenter, UpperLeft, and UpperRight.
Referenced by PCAD2KICAD::PCB_TEXT::Parse(), and SetTextParameters().
wxString PCAD2KICAD::GetWord | ( | wxString * | aStr | ) |
Definition at line 57 of file pcad2kicad_common.cpp.
void PCAD2KICAD::InitTTextValue | ( | TTEXTVALUE * | aTextValue | ) |
Definition at line 592 of file pcad2kicad_common.cpp.
References PCAD2KICAD::TTEXTVALUE::correctedPositionX, PCAD2KICAD::TTEXTVALUE::correctedPositionY, PCAD2KICAD::TTEXTVALUE::isBold, PCAD2KICAD::TTEXTVALUE::isItalic, PCAD2KICAD::TTEXTVALUE::isTrueType, PCAD2KICAD::TTEXTVALUE::justify, LowerLeft, PCAD2KICAD::TTEXTVALUE::mirror, PCAD2KICAD::TTEXTVALUE::text, PCAD2KICAD::TTEXTVALUE::textHeight, PCAD2KICAD::TTEXTVALUE::textIsVisible, PCAD2KICAD::TTEXTVALUE::textPositionX, PCAD2KICAD::TTEXTVALUE::textPositionY, PCAD2KICAD::TTEXTVALUE::textRotation, PCAD2KICAD::TTEXTVALUE::textstrokeWidth, and PCAD2KICAD::TTEXTVALUE::textUnit.
Referenced by PCAD2KICAD::PCB_COMPONENT::PCB_COMPONENT(), and PCAD2KICAD::PCB_FOOTPRINT::PCB_FOOTPRINT().
void PCAD2KICAD::LoadInputFile | ( | const wxString & | aFileName, |
wxXmlDocument * | aXmlDoc | ||
) |
Definition at line 40 of file s_expr_loader.cpp.
References ACCEL_ASCII_KEYWORD, DSNLEXER::CurText(), DSN_EOF, DSN_LEFT, DSN_RIGHT, DSN_STRING, empty_keywords, XNODE::GetChildren(), XNODE::GetParent(), DSNLEXER::NextTok(), and THROW_IO_ERROR.
Referenced by PCAD_PLUGIN::Load().
void PCAD2KICAD::SetDoublePrecisionPosition | ( | const wxString & | aStr, |
const wxString & | aDefaultMeasurementUnit, | ||
double * | aX, | ||
double * | aY, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 289 of file pcad2kicad_common.cpp.
References GetAndCutWordWithMeasureUnits(), and StrToDoublePrecisionUnits().
Referenced by PCAD2KICAD::PCB_POLYGON::FormPolygon().
void PCAD2KICAD::SetFontProperty | ( | XNODE * | aNode, |
TTEXTVALUE * | aTextValue, | ||
const wxString & | aDefaultMeasurementUnit, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 379 of file pcad2kicad_common.cpp.
References FindNode(), FindNodeGetContent(), XNODE::GetNext(), XNODE::GetParent(), PCAD2KICAD::TTEXTVALUE::isBold, PCAD2KICAD::TTEXTVALUE::isItalic, PCAD2KICAD::TTEXTVALUE::isTrueType, SetHeight(), SetWidth(), PCAD2KICAD::TTEXTVALUE::textHeight, PCAD2KICAD::TTEXTVALUE::textstrokeWidth, TRUETYPE_BOLD_MIN_WEIGHT, TRUETYPE_BOLD_THICK_MUL, and TRUETYPE_THICK_PER_HEIGHT.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCB_TEXT::Parse(), and SetTextParameters().
void PCAD2KICAD::SetHeight | ( | const wxString & | aStr, |
const wxString & | aDefaultMeasurementUnit, | ||
int * | aHeight, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 267 of file pcad2kicad_common.cpp.
References GetAndCutWordWithMeasureUnits(), and StrToIntUnits().
Referenced by SetFontProperty().
void PCAD2KICAD::SetPosition | ( | const wxString & | aStr, |
const wxString & | aDefaultMeasurementUnit, | ||
int * | aX, | ||
int * | aY, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 277 of file pcad2kicad_common.cpp.
References GetAndCutWordWithMeasureUnits(), and StrToIntUnits().
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB::GetBoardOutline(), STATUS_POPUP::Move(), PCAD2KICAD::PCB_PAD_SHAPE::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_LINE::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), DIALOG_SHIM::SetPosition(), and SetTextParameters().
void PCAD2KICAD::SetTextJustify | ( | EDA_TEXT * | aText, |
TTEXT_JUSTIFY | aJustify | ||
) |
Definition at line 466 of file pcad2kicad_common.cpp.
References Center, GR_TEXT_HJUSTIFY_CENTER, GR_TEXT_HJUSTIFY_LEFT, GR_TEXT_HJUSTIFY_RIGHT, GR_TEXT_VJUSTIFY_BOTTOM, GR_TEXT_VJUSTIFY_CENTER, GR_TEXT_VJUSTIFY_TOP, Left, LowerCenter, LowerLeft, LowerRight, Right, EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetVertJustify(), UpperCenter, UpperLeft, and UpperRight.
Referenced by PCAD2KICAD::PCB_TEXT::AddToBoard().
void PCAD2KICAD::SetTextParameters | ( | XNODE * | aNode, |
TTEXTVALUE * | aTextValue, | ||
const wxString & | aDefaultMeasurementUnit, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 330 of file pcad2kicad_common.cpp.
References FindNode(), FindNodeGetContent(), GetJustifyIdentificator(), PCAD2KICAD::TTEXTVALUE::justify, PCAD2KICAD::TTEXTVALUE::mirror, SetFontProperty(), SetPosition(), StrToInt1Units(), PCAD2KICAD::TTEXTVALUE::textIsVisible, PCAD2KICAD::TTEXTVALUE::textPositionX, PCAD2KICAD::TTEXTVALUE::textPositionY, and PCAD2KICAD::TTEXTVALUE::textRotation.
Referenced by PCAD2KICAD::PCB::SetTextProperty().
void PCAD2KICAD::SetTextSizeFromStrokeFontHeight | ( | EDA_TEXT * | aText, |
int | aTextHeight | ||
) |
Definition at line 545 of file pcad2kicad_common.cpp.
References KiROUND(), EDA_TEXT::SetTextSize(), STROKE_HEIGHT_TO_SIZE, and STROKE_WIDTH_TO_SIZE.
Referenced by PCAD2KICAD::PCB_TEXT::AddToBoard(), and PCAD2KICAD::PCB_FOOTPRINT::AddToBoard().
void PCAD2KICAD::SetTextSizeFromTrueTypeFontHeight | ( | EDA_TEXT * | aText, |
int | aTextHeight | ||
) |
Definition at line 552 of file pcad2kicad_common.cpp.
References KiROUND(), EDA_TEXT::SetTextSize(), TRUETYPE_HEIGHT_TO_SIZE, and TRUETYPE_WIDTH_TO_SIZE.
Referenced by PCAD2KICAD::PCB_TEXT::AddToBoard(), and PCAD2KICAD::PCB_FOOTPRINT::AddToBoard().
void PCAD2KICAD::SetWidth | ( | const wxString & | aStr, |
const wxString & | aDefaultMeasurementUnit, | ||
int * | aWidth, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 257 of file pcad2kicad_common.cpp.
References GetAndCutWordWithMeasureUnits(), and StrToIntUnits().
Referenced by PCAD2KICAD::PCB_PLANE::Parse(), PCAD2KICAD::PCB_VIA_SHAPE::Parse(), PCAD2KICAD::PCB_COPPER_POUR::Parse(), PCAD2KICAD::PCB_PAD_SHAPE::Parse(), PCAD2KICAD::PCB_VIA::Parse(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_LINE::Parse(), and SetFontProperty().
double PCAD2KICAD::StrToDoublePrecisionUnits | ( | const wxString & | aStr, |
char | aAxe, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 116 of file pcad2kicad_common.cpp.
References IU_PER_MILS, and Millimeter2iu().
Referenced by SetDoublePrecisionPosition(), and StrToIntUnits().
int PCAD2KICAD::StrToInt1Units | ( | const wxString & | aStr | ) |
Definition at line 225 of file pcad2kicad_common.cpp.
References KiROUND().
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_PAD::Parse(), PCAD2KICAD::PCB_ARC::Parse(), PCAD2KICAD::PCB_TEXT::Parse(), and SetTextParameters().
int PCAD2KICAD::StrToIntUnits | ( | const wxString & | aStr, |
char | aAxe, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 180 of file pcad2kicad_common.cpp.
References KiROUND(), and StrToDoublePrecisionUnits().
Referenced by SetHeight(), SetPosition(), and SetWidth().
wxString PCAD2KICAD::ValidateName | ( | const wxString & | aName | ) |
Definition at line 234 of file pcad2kicad_common.cpp.
Referenced by PCAD2KICAD::PCB::DoPCBComponents(), PCAD2KICAD::PCB_FOOTPRINT::FindModulePatternDefName(), and PCAD2KICAD::PCB_FOOTPRINT::FindPatternMultilayerSection().
wxString PCAD2KICAD::ValidateReference | ( | const wxString & | aRef | ) |
Definition at line 243 of file pcad2kicad_common.cpp.
Referenced by PCAD2KICAD::PCB_FOOTPRINT::AddToBoard().
PCAD2KICAD::WX_DEFINE_ARRAY | ( | PCB_COMPONENT * | , |
PCB_COMPONENTS_ARRAY | |||
) |
PCAD2KICAD::WX_DEFINE_ARRAY | ( | PCB_NET * | , |
PCB_NETS_ARRAY | |||
) |
PCAD2KICAD::WX_DEFINE_ARRAY | ( | PCB_NET_NODE * | , |
PCB_NET_NODES_ARRAY | |||
) |
PCAD2KICAD::WX_DEFINE_ARRAY | ( | PCB_PAD_SHAPE * | , |
PCB_PAD_SHAPES_ARRAY | |||
) |
|
static |
Definition at line 37 of file s_expr_loader.cpp.
Referenced by LoadInputFile().
|
static |
Definition at line 36 of file s_expr_loader.cpp.
Referenced by LoadInputFile().
const double PCAD2KICAD::STROKE_HEIGHT_TO_SIZE = 0.656 |
Definition at line 46 of file pcad2kicad_common.cpp.
Referenced by SetTextSizeFromStrokeFontHeight().
const double PCAD2KICAD::STROKE_WIDTH_TO_SIZE = 0.69 |
Definition at line 47 of file pcad2kicad_common.cpp.
Referenced by SetTextSizeFromStrokeFontHeight().
const double PCAD2KICAD::TEXT_WIDTH_TO_SIZE_AVERAGE = 0.5 |
Definition at line 43 of file pcad2kicad_common.cpp.
Referenced by CalculateTextLengthSize().
const long PCAD2KICAD::TRUETYPE_BOLD_MIN_WEIGHT = 700 |
Definition at line 54 of file pcad2kicad_common.cpp.
Referenced by SetFontProperty().
const double PCAD2KICAD::TRUETYPE_BOLD_THICK_MUL = 1.6 |
Definition at line 53 of file pcad2kicad_common.cpp.
Referenced by SetFontProperty().
const double PCAD2KICAD::TRUETYPE_HEIGHT_TO_SIZE = 0.585 |
Definition at line 50 of file pcad2kicad_common.cpp.
Referenced by SetTextSizeFromTrueTypeFontHeight().
const double PCAD2KICAD::TRUETYPE_THICK_PER_HEIGHT = 0.073 |
Definition at line 52 of file pcad2kicad_common.cpp.
Referenced by SetFontProperty().
const double PCAD2KICAD::TRUETYPE_WIDTH_TO_SIZE = 0.585 |
Definition at line 51 of file pcad2kicad_common.cpp.
Referenced by SetTextSizeFromTrueTypeFontHeight().