pick-and-place.h

Go to the documentation of this file.
00001 /*
00002  * gEDA - GNU Electronic Design Automation
00003  * This files is a part of gerbv.
00004  *
00005  *   Copyright (C) 2000-2001 Stefan Petersen (spe@stacken.kth.se)
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
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, /* drawn as circle with line*/
00042     PART_SHAPE_RECTANGLE = 1, /* rectangle with one side marked*/
00043     PART_SHAPE_STD = 2 /* rectangle with one corner marked*/
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]; /*T is top B is bottom*/
00056     double   rotation;
00057     char     comment[MAXL];    
00058     int      shape;
00059     double   width;
00060     double   length;
00061     unsigned int nuf_push;  /* Nuf pushes to estimate stack size */
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 /* GERBV_LAYERTYPE_PICKANDPLACE_H */

Generated on Tue Aug 19 00:14:49 2008 for gerbv by  doxygen 1.5.6