2 * gEDA - GNU Electronic Design Automation
3 * This files is a part of gerbv.
5 * Copyright (C) 2000-2002 Stefan Petersen (spe@stacken.kth.se)
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
25 \brief Header info for the RS274X parsing functions
39 #include "gerb_file.h"
41 typedef struct gerb_state
{
50 gerbv_aperture_state_t aperture_state
;
51 gerbv_interpolation_t interpolation
;
52 gerbv_interpolation_t prev_interpolation
;
53 gerbv_net_t
*parea_start_node
;
55 gerbv_netstate_t
*state
;
61 * parse gerber file pointed to by fd
63 gerbv_image_t
*parse_gerb(gerb_file_t
*fd
, gchar
*directoryPath
);
64 gboolean
gerber_is_rs274x_p(gerb_file_t
*fd
, gboolean
*returnFoundBinary
);
65 gboolean
gerber_is_rs274d_p(gerb_file_t
*fd
);
67 gerber_create_new_net (gerbv_net_t
*currentNet
, gerbv_layer_t
*layer
, gerbv_netstate_t
*state
);
70 gerber_create_new_aperture (gerbv_image_t
*image
, int *indexNumber
,
71 gerbv_aperture_type_t apertureType
, gdouble parameter1
, gdouble parameter2
);