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

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)
 
XNODEFindPinMap (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)
 
XNODEFindNode (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"
 

Enumeration Type Documentation

◆ TTEXT_JUSTIFY

Enumerator
LowerLeft 
LowerCenter 
LowerRight 
UpperLeft 
UpperCenter 
UpperRight 
Left 
Center 
Right 

Definition at line 43 of file pcad2kicad_common.h.

Function Documentation

◆ CalculateTextLengthSize()

int PCAD2KICAD::CalculateTextLengthSize ( TTEXTVALUE aText)

◆ CorrectTextPosition()

◆ FindNode()

◆ FindNodeGetContent()

wxString PCAD2KICAD::FindNodeGetContent ( XNODE aChild,
const wxString &  aTag 
)

◆ FindPinMap()

XNODE * PCAD2KICAD::FindPinMap ( XNODE aNode)

◆ GetAndCutWordWithMeasureUnits()

wxString PCAD2KICAD::GetAndCutWordWithMeasureUnits ( wxString *  aStr,
const wxString &  aDefaultMeasurementUnit 
)

◆ GetJustifyIdentificator()

TTEXT_JUSTIFY PCAD2KICAD::GetJustifyIdentificator ( const wxString &  aJustify)

◆ GetWord()

wxString PCAD2KICAD::GetWord ( wxString *  aStr)

Definition at line 56 of file pcad2kicad_common.cpp.

◆ InitTTextValue()

◆ LoadInputFile()

void PCAD2KICAD::LoadInputFile ( const wxString &  aFileName,
wxXmlDocument *  aXmlDoc 
)

◆ SetDoublePrecisionPosition()

void PCAD2KICAD::SetDoublePrecisionPosition ( const wxString &  aStr,
const wxString &  aDefaultMeasurementUnit,
double *  aX,
double *  aY,
const wxString &  aActualConversion 
)

◆ SetFontProperty()

◆ SetHeight()

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

◆ SetPosition()

void PCAD2KICAD::SetPosition ( const wxString &  aStr,
const wxString &  aDefaultMeasurementUnit,
int *  aX,
int *  aY,
const wxString &  aActualConversion 
)

◆ SetTextJustify()

◆ SetTextParameters()

◆ SetTextSizeFromStrokeFontHeight()

void PCAD2KICAD::SetTextSizeFromStrokeFontHeight ( EDA_TEXT aText,
int  aTextHeight 
)

◆ SetTextSizeFromTrueTypeFontHeight()

void PCAD2KICAD::SetTextSizeFromTrueTypeFontHeight ( EDA_TEXT aText,
int  aTextHeight 
)

◆ SetWidth()

void PCAD2KICAD::SetWidth ( const wxString &  aStr,
const wxString &  aDefaultMeasurementUnit,
int *  aWidth,
const wxString &  aActualConversion 
)

◆ StrToDoublePrecisionUnits()

double PCAD2KICAD::StrToDoublePrecisionUnits ( const wxString &  aStr,
char  aAxe,
const wxString &  aActualConversion 
)

◆ StrToInt1Units()

int PCAD2KICAD::StrToInt1Units ( const wxString &  aStr)

◆ StrToIntUnits()

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

◆ ValidateName()

wxString PCAD2KICAD::ValidateName ( const wxString &  aName)

◆ ValidateReference()

wxString PCAD2KICAD::ValidateReference ( const wxString &  aRef)

Definition at line 242 of file pcad2kicad_common.cpp.

Referenced by PCAD2KICAD::PCAD_FOOTPRINT::AddToBoard().

◆ WX_DEFINE_ARRAY() [1/4]

PCAD2KICAD::WX_DEFINE_ARRAY ( PCAD_NET ,
PCAD_NETS_ARRAY   
)

◆ WX_DEFINE_ARRAY() [2/4]

PCAD2KICAD::WX_DEFINE_ARRAY ( PCAD_NET_NODE ,
PCAD_NET_NODES_ARRAY   
)

◆ WX_DEFINE_ARRAY() [3/4]

PCAD2KICAD::WX_DEFINE_ARRAY ( PCAD_PAD_SHAPE ,
PCAD_PAD_SHAPES_ARRAY   
)

◆ WX_DEFINE_ARRAY() [4/4]

PCAD2KICAD::WX_DEFINE_ARRAY ( PCAD_PCB_COMPONENT ,
PCAD_COMPONENTS_ARRAY   
)

Variable Documentation

◆ ACCEL_ASCII_KEYWORD

const char PCAD2KICAD::ACCEL_ASCII_KEYWORD[] = "ACCEL_ASCII"
static

Definition at line 38 of file s_expr_loader.cpp.

Referenced by LoadInputFile().

◆ empty_keywords

KEYWORD PCAD2KICAD::empty_keywords[1] = {}
static

Definition at line 37 of file s_expr_loader.cpp.

Referenced by LoadInputFile().

◆ STROKE_HEIGHT_TO_SIZE

const double PCAD2KICAD::STROKE_HEIGHT_TO_SIZE = 0.656

Definition at line 45 of file pcad2kicad_common.cpp.

Referenced by SetTextSizeFromStrokeFontHeight().

◆ STROKE_WIDTH_TO_SIZE

const double PCAD2KICAD::STROKE_WIDTH_TO_SIZE = 0.69

Definition at line 46 of file pcad2kicad_common.cpp.

Referenced by SetTextSizeFromStrokeFontHeight().

◆ TEXT_WIDTH_TO_SIZE_AVERAGE

const double PCAD2KICAD::TEXT_WIDTH_TO_SIZE_AVERAGE = 0.5

Definition at line 42 of file pcad2kicad_common.cpp.

Referenced by CalculateTextLengthSize().

◆ TRUETYPE_BOLD_MIN_WEIGHT

const long PCAD2KICAD::TRUETYPE_BOLD_MIN_WEIGHT = 700

Definition at line 53 of file pcad2kicad_common.cpp.

Referenced by SetFontProperty().

◆ TRUETYPE_BOLD_THICK_MUL

const double PCAD2KICAD::TRUETYPE_BOLD_THICK_MUL = 1.6

Definition at line 52 of file pcad2kicad_common.cpp.

Referenced by SetFontProperty().

◆ TRUETYPE_HEIGHT_TO_SIZE

const double PCAD2KICAD::TRUETYPE_HEIGHT_TO_SIZE = 0.585

Definition at line 49 of file pcad2kicad_common.cpp.

Referenced by SetTextSizeFromTrueTypeFontHeight().

◆ TRUETYPE_THICK_PER_HEIGHT

const double PCAD2KICAD::TRUETYPE_THICK_PER_HEIGHT = 0.073

Definition at line 51 of file pcad2kicad_common.cpp.

Referenced by SetFontProperty().

◆ TRUETYPE_WIDTH_TO_SIZE

const double PCAD2KICAD::TRUETYPE_WIDTH_TO_SIZE = 0.585

Definition at line 50 of file pcad2kicad_common.cpp.

Referenced by SetTextSizeFromTrueTypeFontHeight().