gerbv  2.6A
pick-and-place.h
Go to the documentation of this file.
1 /*
2  * gEDA - GNU Electronic Design Automation
3  * This files is a part of gerbv.
4  *
5  * Copyright (C) 2000-2001 Stefan Petersen (spe@stacken.kth.se)
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
20  */
21 
27 #ifndef GERBV_LAYERTYPE_PICKANDPLACE_H
28 #define GERBV_LAYERTYPE_PICKANDPLACE_H
29 
30 #define MAXL 200
31 
32 typedef struct gerb_transf {
33  double r_mat[2][2];
34  double scale;
35  double offset[2];
36 } gerbv_transf_t;
37 
38 enum e_footprint {
39  PART_SHAPE_UNKNOWN = 0, /* drawn as circle with line*/
40  PART_SHAPE_RECTANGLE = 1, /* rectangle with one side marked*/
41  PART_SHAPE_STD = 2 /* rectangle with one corner marked*/
42 };
43 
44 typedef struct {
45  char designator[MAXL];
46  char footprint[MAXL];
47  double mid_x;
48  double mid_y;
49  double ref_x;
50  double ref_y;
51  double pad_x;
52  double pad_y;
53  char layer[MAXL]; /*T is top B is bottom*/
54  double rotation;
55  char comment[MAXL];
56  int shape;
57  double width;
58  double length;
59  unsigned int nuf_push; /* Nuf pushes to estimate stack size */
60 } PnpPartData;
61 
62 GArray *pick_and_place_parse_file (gerb_file_t *fd);
63 
64 gerbv_image_t *pick_and_place_parse_file_to_image (gerb_file_t *fd);
65 
66 void
67 pick_and_place_parse_file_to_images (gerb_file_t *fd, gerbv_image_t **topImage,
68  gerbv_image_t **bottomImage);
69 
70 gboolean
71 pick_and_place_check_file_type(gerb_file_t *fd, gboolean *returnFoundBinary);
72 
73 #endif /* GERBV_LAYERTYPE_PICKANDPLACE_H */