KiCad PCB EDA Suite
|
Classes | |
class | PCAD_ARC |
class | PCAD_CALLBACKS |
class | PCAD_COPPER_POUR |
class | PCAD_CUTOUT |
class | PCAD_FOOTPRINT |
class | PCAD_KEEPOUT |
class | PCAD_LINE |
class | PCAD_NET |
class | PCAD_NET_NODE |
class | PCAD_PAD |
class | PCAD_PAD_SHAPE |
class | PCAD_PCB |
class | PCAD_PCB_COMPONENT |
class | PCAD_PLANE |
class | PCAD_POLYGON |
class | PCAD_TEXT |
class | PCAD_VIA |
class | PCAD_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 (PCAD_PCB_COMPONENT *, PCAD_COMPONENTS_ARRAY) | |
WX_DEFINE_ARRAY (PCAD_NET *, PCAD_NETS_ARRAY) | |
WX_DEFINE_ARRAY (PCAD_NET_NODE *, PCAD_NET_NODES_ARRAY) | |
WX_DEFINE_ARRAY (PCAD_PAD_SHAPE *, PCAD_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 509 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 516 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::PCAD_FOOTPRINT::AddToBoard().
Definition at line 558 of file pcad2kicad_common.cpp.
References XNODE::GetChildren(), and XNODE::GetNext().
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PCB::FindCompDefName(), PCAD2KICAD::PCAD_FOOTPRINT::FindModulePatternDefName(), FindNodeGetContent(), PCAD2KICAD::PCAD_FOOTPRINT::FindPatternMultilayerSection(), FindPinMap(), PCAD2KICAD::PCAD_POLYGON::FormPolygon(), PCAD2KICAD::PCAD_PCB::GetBoardOutline(), PCAD2KICAD::PCAD_PCB::MapLayer(), PCAD2KICAD::PCAD_NET::Parse(), PCAD2KICAD::PCAD_KEEPOUT::Parse(), PCAD2KICAD::PCAD_CUTOUT::Parse(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_PAD_SHAPE::Parse(), PCAD2KICAD::PCAD_POLYGON::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_VIA_SHAPE::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), PCAD2KICAD::PCAD_FOOTPRINT::Parse(), PCAD2KICAD::PCAD_PCB::ParseBoard(), SetFontProperty(), SetTextParameters(), and PCAD2KICAD::PCAD_PCB::SetTextProperty().
wxString PCAD2KICAD::FindNodeGetContent | ( | XNODE * | aChild, |
const wxString & | aTag | ||
) |
Definition at line 574 of file pcad2kicad_common.cpp.
References FindNode().
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), SetFontProperty(), and SetTextParameters().
Definition at line 101 of file pcad2kicad_common.cpp.
References FindNode().
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), and PCAD2KICAD::PCAD_FOOTPRINT::Parse().
wxString PCAD2KICAD::GetAndCutWordWithMeasureUnits | ( | wxString * | aStr, |
const wxString & | aDefaultMeasurementUnit | ||
) |
Definition at line 185 of file pcad2kicad_common.cpp.
Referenced by SetDoublePrecisionPosition(), SetHeight(), SetPosition(), and SetWidth().
TTEXT_JUSTIFY PCAD2KICAD::GetJustifyIdentificator | ( | const wxString & | aJustify | ) |
Definition at line 302 of file pcad2kicad_common.cpp.
References Center, Left, LowerCenter, LowerLeft, LowerRight, Right, UpperCenter, UpperLeft, and UpperRight.
Referenced by PCAD2KICAD::PCAD_TEXT::Parse(), and SetTextParameters().
wxString PCAD2KICAD::GetWord | ( | wxString * | aStr | ) |
Definition at line 56 of file pcad2kicad_common.cpp.
void PCAD2KICAD::InitTTextValue | ( | TTEXTVALUE * | aTextValue | ) |
Definition at line 591 of file pcad2kicad_common.cpp.
References ANGLE_0, 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::PCAD_FOOTPRINT::PCAD_FOOTPRINT(), and PCAD2KICAD::PCAD_PCB_COMPONENT::PCAD_PCB_COMPONENT().
void PCAD2KICAD::LoadInputFile | ( | const wxString & | aFileName, |
wxXmlDocument * | aXmlDoc | ||
) |
Definition at line 41 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 PCB_IO_PCAD::LoadBoard().
void PCAD2KICAD::SetDoublePrecisionPosition | ( | const wxString & | aStr, |
const wxString & | aDefaultMeasurementUnit, | ||
double * | aX, | ||
double * | aY, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 288 of file pcad2kicad_common.cpp.
References GetAndCutWordWithMeasureUnits(), and StrToDoublePrecisionUnits().
Referenced by PCAD2KICAD::PCAD_POLYGON::FormPolygon().
void PCAD2KICAD::SetFontProperty | ( | XNODE * | aNode, |
TTEXTVALUE * | aTextValue, | ||
const wxString & | aDefaultMeasurementUnit, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 378 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::PCAD_FOOTPRINT::DoLayerContentsObjects(), PCAD2KICAD::PCAD_TEXT::Parse(), and SetTextParameters().
void PCAD2KICAD::SetHeight | ( | const wxString & | aStr, |
const wxString & | aDefaultMeasurementUnit, | ||
int * | aHeight, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 266 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 276 of file pcad2kicad_common.cpp.
References GetAndCutWordWithMeasureUnits(), and StrToIntUnits().
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PCB::GetBoardOutline(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_PAD_SHAPE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), and SetTextParameters().
void PCAD2KICAD::SetTextJustify | ( | EDA_TEXT * | aText, |
TTEXT_JUSTIFY | aJustify | ||
) |
Definition at line 465 of file pcad2kicad_common.cpp.
References Center, GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, Left, LowerCenter, LowerLeft, LowerRight, Right, EDA_TEXT::SetHorizJustify(), EDA_TEXT::SetVertJustify(), UpperCenter, UpperLeft, and UpperRight.
Referenced by PCAD2KICAD::PCAD_TEXT::AddToBoard().
void PCAD2KICAD::SetTextParameters | ( | XNODE * | aNode, |
TTEXTVALUE * | aTextValue, | ||
const wxString & | aDefaultMeasurementUnit, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 329 of file pcad2kicad_common.cpp.
References ANGLE_0, FindNode(), FindNodeGetContent(), GetJustifyIdentificator(), PCAD2KICAD::TTEXTVALUE::justify, PCAD2KICAD::TTEXTVALUE::mirror, SetFontProperty(), SetPosition(), StrToInt1Units(), TENTHS_OF_A_DEGREE_T, PCAD2KICAD::TTEXTVALUE::textIsVisible, PCAD2KICAD::TTEXTVALUE::textPositionX, PCAD2KICAD::TTEXTVALUE::textPositionY, and PCAD2KICAD::TTEXTVALUE::textRotation.
Referenced by PCAD2KICAD::PCAD_PCB::SetTextProperty().
void PCAD2KICAD::SetTextSizeFromStrokeFontHeight | ( | EDA_TEXT * | aText, |
int | aTextHeight | ||
) |
Definition at line 544 of file pcad2kicad_common.cpp.
References KiROUND(), EDA_TEXT::SetTextSize(), STROKE_HEIGHT_TO_SIZE, and STROKE_WIDTH_TO_SIZE.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), and PCAD2KICAD::PCAD_TEXT::AddToBoard().
void PCAD2KICAD::SetTextSizeFromTrueTypeFontHeight | ( | EDA_TEXT * | aText, |
int | aTextHeight | ||
) |
Definition at line 551 of file pcad2kicad_common.cpp.
References KiROUND(), EDA_TEXT::SetTextSize(), TRUETYPE_HEIGHT_TO_SIZE, and TRUETYPE_WIDTH_TO_SIZE.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard(), and PCAD2KICAD::PCAD_TEXT::AddToBoard().
void PCAD2KICAD::SetWidth | ( | const wxString & | aStr, |
const wxString & | aDefaultMeasurementUnit, | ||
int * | aWidth, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 256 of file pcad2kicad_common.cpp.
References GetAndCutWordWithMeasureUnits(), and StrToIntUnits().
Referenced by PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_PAD_SHAPE::Parse(), PCAD2KICAD::PCAD_COPPER_POUR::Parse(), PCAD2KICAD::PCAD_PLANE::Parse(), PCAD2KICAD::PCAD_VIA::Parse(), PCAD2KICAD::PCAD_VIA_SHAPE::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_LINE::Parse(), and SetFontProperty().
double PCAD2KICAD::StrToDoublePrecisionUnits | ( | const wxString & | aStr, |
char | aAxe, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 115 of file pcad2kicad_common.cpp.
References EDA_IU_SCALE::IU_PER_MILS, EDA_IU_SCALE::mmToIU(), and pcbIUScale.
Referenced by SetDoublePrecisionPosition(), and StrToIntUnits().
int PCAD2KICAD::StrToInt1Units | ( | const wxString & | aStr | ) |
Definition at line 224 of file pcad2kicad_common.cpp.
References KiROUND().
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_PAD::Parse(), PCAD2KICAD::PCAD_ARC::Parse(), PCAD2KICAD::PCAD_TEXT::Parse(), and SetTextParameters().
int PCAD2KICAD::StrToIntUnits | ( | const wxString & | aStr, |
char | aAxe, | ||
const wxString & | aActualConversion | ||
) |
Definition at line 179 of file pcad2kicad_common.cpp.
References KiROUND(), and StrToDoublePrecisionUnits().
Referenced by SetHeight(), SetPosition(), and SetWidth().
wxString PCAD2KICAD::ValidateName | ( | const wxString & | aName | ) |
Definition at line 233 of file pcad2kicad_common.cpp.
Referenced by PCAD2KICAD::PCAD_PCB::DoPCBComponents(), PCAD2KICAD::PCAD_FOOTPRINT::FindModulePatternDefName(), and PCAD2KICAD::PCAD_FOOTPRINT::FindPatternMultilayerSection().
wxString PCAD2KICAD::ValidateReference | ( | const wxString & | aRef | ) |
Definition at line 242 of file pcad2kicad_common.cpp.
Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard().
PCAD2KICAD::WX_DEFINE_ARRAY | ( | PCAD_NET * | , |
PCAD_NETS_ARRAY | |||
) |
PCAD2KICAD::WX_DEFINE_ARRAY | ( | PCAD_NET_NODE * | , |
PCAD_NET_NODES_ARRAY | |||
) |
PCAD2KICAD::WX_DEFINE_ARRAY | ( | PCAD_PAD_SHAPE * | , |
PCAD_PAD_SHAPES_ARRAY | |||
) |
PCAD2KICAD::WX_DEFINE_ARRAY | ( | PCAD_PCB_COMPONENT * | , |
PCAD_COMPONENTS_ARRAY | |||
) |
|
static |
Definition at line 38 of file s_expr_loader.cpp.
Referenced by LoadInputFile().
|
static |
Definition at line 37 of file s_expr_loader.cpp.
Referenced by LoadInputFile().
const double PCAD2KICAD::STROKE_HEIGHT_TO_SIZE = 0.656 |
Definition at line 45 of file pcad2kicad_common.cpp.
Referenced by SetTextSizeFromStrokeFontHeight().
const double PCAD2KICAD::STROKE_WIDTH_TO_SIZE = 0.69 |
Definition at line 46 of file pcad2kicad_common.cpp.
Referenced by SetTextSizeFromStrokeFontHeight().
const double PCAD2KICAD::TEXT_WIDTH_TO_SIZE_AVERAGE = 0.5 |
Definition at line 42 of file pcad2kicad_common.cpp.
Referenced by CalculateTextLengthSize().
const long PCAD2KICAD::TRUETYPE_BOLD_MIN_WEIGHT = 700 |
Definition at line 53 of file pcad2kicad_common.cpp.
Referenced by SetFontProperty().
const double PCAD2KICAD::TRUETYPE_BOLD_THICK_MUL = 1.6 |
Definition at line 52 of file pcad2kicad_common.cpp.
Referenced by SetFontProperty().
const double PCAD2KICAD::TRUETYPE_HEIGHT_TO_SIZE = 0.585 |
Definition at line 49 of file pcad2kicad_common.cpp.
Referenced by SetTextSizeFromTrueTypeFontHeight().
const double PCAD2KICAD::TRUETYPE_THICK_PER_HEIGHT = 0.073 |
Definition at line 51 of file pcad2kicad_common.cpp.
Referenced by SetFontProperty().
const double PCAD2KICAD::TRUETYPE_WIDTH_TO_SIZE = 0.585 |
Definition at line 50 of file pcad2kicad_common.cpp.
Referenced by SetTextSizeFromTrueTypeFontHeight().