gerbv
2.6A
|
Go to the source code of this file.
Functions | |
void | gerb_transf_rotate (gerbv_transf_t *transf, double angle) |
void | gerb_transf_shift (gerbv_transf_t *transf, double shift_x, double shift_y) |
static double | pick_and_place_get_float_unit (const char *str) |
int | pick_and_place_screen_for_delimiter (char *str, int n) |
GArray * | pick_and_place_parse_file (gerb_file_t *fd) |
PNP (pick-and-place) parsing functions.
Definition in file pick-and-place.c.
void gerb_transf_rotate | ( | gerbv_transf_t * | transf, |
double | angle | ||
) |
Rotation.
append rotation to transformation.
transf | transformation to be modified |
angle | in rad (counterclockwise rotation) |
Definition at line 75 of file pick-and-place.c.
Referenced by pick_and_place_parse_file().
void gerb_transf_shift | ( | gerbv_transf_t * | transf, |
double | shift_x, | ||
double | shift_y | ||
) |
Translation.
append translation to transformation.
transf | transformation to be modified |
shift_x | translation in x direction |
shift_y | translation in y direction |
Definition at line 95 of file pick-and-place.c.
GArray* pick_and_place_parse_file | ( | gerb_file_t * | fd | ) |
Parses the PNP data.
two lists are filled with the row data.
One for the scrollable list in the search and select parts interface, the other one a mere two columned list, which drives the autocompletion when entering a search.
It also tries to determine the shape of a part and sets pnp_state->shape accordingly which will be used when drawing the selections as an overlay on screen.
Definition at line 197 of file pick-and-place.c.
References gerb_transf_rotate(), and pick_and_place_get_float_unit().
int pick_and_place_screen_for_delimiter | ( | char * | str, |
int | n | ||
) |
search a string for a delimiter.
Must occur at least n times.
Definition at line 150 of file pick-and-place.c.