KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcad2kicad_common.cpp File Reference
#include <pcad/pcad2kicad_common.h>
#include <common.h>
#include <math/util.h>
#include <trigo.h>
#include <xnode.h>
#include <wx/regex.h>

Go to the source code of this file.

Namespaces

namespace  PCAD2KICAD
 

Functions

wxString PCAD2KICAD::GetWord (wxString *aStr)
 
XNODEPCAD2KICAD::FindPinMap (XNODE *aNode)
 
double PCAD2KICAD::StrToDoublePrecisionUnits (const wxString &aStr, char aAxe, const wxString &aActualConversion)
 
int PCAD2KICAD::StrToIntUnits (const wxString &aStr, char aAxe, const wxString &aActualConversion)
 
wxString PCAD2KICAD::GetAndCutWordWithMeasureUnits (wxString *aStr, const wxString &aDefaultMeasurementUnit)
 
int PCAD2KICAD::StrToInt1Units (const wxString &aStr)
 
wxString PCAD2KICAD::ValidateName (const wxString &aName)
 
wxString PCAD2KICAD::ValidateReference (const wxString &aRef)
 
void PCAD2KICAD::SetWidth (const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aWidth, const wxString &aActualConversion)
 
void PCAD2KICAD::SetHeight (const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aHeight, const wxString &aActualConversion)
 
void PCAD2KICAD::SetPosition (const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aX, int *aY, const wxString &aActualConversion)
 
void PCAD2KICAD::SetDoublePrecisionPosition (const wxString &aStr, const wxString &aDefaultMeasurementUnit, double *aX, double *aY, const wxString &aActualConversion)
 
TTEXT_JUSTIFY PCAD2KICAD::GetJustifyIdentificator (const wxString &aJustify)
 
void PCAD2KICAD::SetTextParameters (XNODE *aNode, TTEXTVALUE *aTextValue, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion)
 
void PCAD2KICAD::SetFontProperty (XNODE *aNode, TTEXTVALUE *aTextValue, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion)
 
void PCAD2KICAD::SetTextJustify (EDA_TEXT *aText, TTEXT_JUSTIFY aJustify)
 
int PCAD2KICAD::CalculateTextLengthSize (TTEXTVALUE *aText)
 
void PCAD2KICAD::CorrectTextPosition (TTEXTVALUE *aValue)
 
void PCAD2KICAD::SetTextSizeFromStrokeFontHeight (EDA_TEXT *aText, int aTextHeight)
 
void PCAD2KICAD::SetTextSizeFromTrueTypeFontHeight (EDA_TEXT *aText, int aTextHeight)
 
XNODEPCAD2KICAD::FindNode (XNODE *aChild, const wxString &aTag)
 
wxString PCAD2KICAD::FindNodeGetContent (XNODE *aChild, const wxString &aTag)
 
void PCAD2KICAD::InitTTextValue (TTEXTVALUE *aTextValue)
 

Variables

const double PCAD2KICAD::TEXT_WIDTH_TO_SIZE_AVERAGE = 0.5
 
const double PCAD2KICAD::STROKE_HEIGHT_TO_SIZE = 0.656
 
const double PCAD2KICAD::STROKE_WIDTH_TO_SIZE = 0.69
 
const double PCAD2KICAD::TRUETYPE_HEIGHT_TO_SIZE = 0.585
 
const double PCAD2KICAD::TRUETYPE_WIDTH_TO_SIZE = 0.585
 
const double PCAD2KICAD::TRUETYPE_THICK_PER_HEIGHT = 0.073
 
const double PCAD2KICAD::TRUETYPE_BOLD_THICK_MUL = 1.6
 
const long PCAD2KICAD::TRUETYPE_BOLD_MIN_WEIGHT = 700