pick-and-place.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00027 #ifndef GERBV_LAYERTYPE_PICKANDPLACE_H
00028 #define GERBV_LAYERTYPE_PICKANDPLACE_H
00029
00030 #include <glib.h>
00031
00032 #define MAXL 200
00033
00034 typedef struct gerb_transf {
00035 double r_mat[2][2];
00036 double scale;
00037 double offset[2];
00038 } gerbv_transf_t;
00039
00040 enum e_footprint {
00041 PART_SHAPE_UNKNOWN = 0,
00042 PART_SHAPE_RECTANGLE = 1,
00043 PART_SHAPE_STD = 2
00044 };
00045
00046 typedef struct {
00047 char designator[MAXL];
00048 char footprint[MAXL];
00049 double mid_x;
00050 double mid_y;
00051 double ref_x;
00052 double ref_y;
00053 double pad_x;
00054 double pad_y;
00055 char layer[MAXL];
00056 double rotation;
00057 char comment[MAXL];
00058 int shape;
00059 double width;
00060 double length;
00061 unsigned int nuf_push;
00062 } PnpPartData;
00063
00064 GArray *pick_and_place_parse_file (gerb_file_t *fd);
00065
00066 gerbv_image_t *pick_and_place_parse_file_to_image (gerb_file_t *fd);
00067
00068 void
00069 pick_and_place_parse_file_to_images (gerb_file_t *fd, gerbv_image_t **topImage,
00070 gerbv_image_t **bottomImage);
00071
00072 gboolean
00073 pick_and_place_check_file_type(gerb_file_t *fd, gboolean *returnFoundBinary);
00074
00075 #endif