KiCad PCB EDA Suite
|
Go to the source code of this file.
Macros | |
#define | SCALE_LIST_SIZE 9 |
Functions | |
int | scaletoIU (double aCoord, bool isMetric) |
Convert a coordinate given in floating point to GerbView's internal units (currently = 10 nanometers). | |
static bool | IsNumber (char x) |
int | ReadInt (char *&text, bool aSkipSeparator=true) |
Read an integer from an ASCII character buffer. | |
double | ReadDouble (char *&text, bool aSkipSeparator=true) |
Read a double precision floating point number from an ASCII character buffer. | |
Variables | |
static double | scale_list [SCALE_LIST_SIZE] |
#define SCALE_LIST_SIZE 9 |
Definition at line 39 of file rs274_read_XY_and_IJ_coordinates.cpp.
|
static |
Definition at line 72 of file rs274_read_XY_and_IJ_coordinates.cpp.
Referenced by GERBER_FILE_IMAGE::ReadIJCoord(), and GERBER_FILE_IMAGE::ReadXYCoord().
double ReadDouble | ( | char *& | text, |
bool | aSkipSeparator = true |
||
) |
Read a double precision floating point number from an ASCII character buffer.
If there is a comma after the number, then skip over that.
text | is a reference to a character pointer from which the ASCII double is read from and the pointer advanced for each character read. |
aSkipSeparator | set to true (default) to skip comma. |
Definition at line 303 of file rs274_read_XY_and_IJ_coordinates.cpp.
References text.
Referenced by GERBER_FILE_IMAGE::ExecuteRS274XCommand(), AM_PARAM::ReadParamFromAmDef(), and EXCELLON_IMAGE::readToolInformation().
int ReadInt | ( | char *& | text, |
bool | aSkipSeparator = true |
||
) |
Read an integer from an ASCII character buffer.
If there is a comma after the integer, then skip over that.
text | is a reference to a character pointer from which bytes are read and the pointer is advanced for each byte read. |
aSkipSeparator | set to true (default) to skip comma. |
Definition at line 266 of file rs274_read_XY_and_IJ_coordinates.cpp.
References text.
Referenced by GERBER_FILE_IMAGE::ExecuteRS274XCommand(), GERBER_FILE_IMAGE::ReadApertureMacro(), AM_PARAM::ReadParamFromAmDef(), and EXCELLON_IMAGE::readToolInformation().
int scaletoIU | ( | double | aCoord, |
bool | isMetric | ||
) |
Convert a coordinate given in floating point to GerbView's internal units (currently = 10 nanometers).
Function scaletoIU converts a distance given in floating point to our internal units.
Convert a distance given in floating point to our internal units.
Definition at line 58 of file rs274_read_XY_and_IJ_coordinates.cpp.
References GERB_IU_PER_MM, and KiROUND().
Referenced by AM_PRIMITIVE::ConvertBasicShapeToPolygon(), AM_PRIMITIVE::ConvertShapeToPolygon(), mapPt(), GERBER_FILE_IMAGE::ReadIJCoord(), GERBER_FILE_IMAGE::ReadXYCoord(), and GERBER_FILE_IMAGE::StepAndRepeatItem().
|
static |
Definition at line 40 of file rs274_read_XY_and_IJ_coordinates.cpp.
Referenced by GERBER_FILE_IMAGE::ReadIJCoord(), and GERBER_FILE_IMAGE::ReadXYCoord().