changeset 50:c9acfeed99e6

pads2gpcb: data structures for footprint silk support
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 30 Jan 2016 21:31:03 +0000
parents b3b7013d9228
children f2bcf69fce63
files pads2gpcb/globals.c pads2gpcb/globals.h pads2gpcb/struct.h
diffstat 3 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pads2gpcb/globals.c	Sat Jan 30 17:38:47 2016 +0000
+++ b/pads2gpcb/globals.c	Sat Jan 30 21:31:03 2016 +0000
@@ -1,4 +1,5 @@
 int input_units_global, input_units_current;
 struct part_decal *part_decal_list;
 struct part_type *part_type_list;
+int do_footprint_silk;
 int write_decal_files, write_parttype_files, write_final_elements;
--- a/pads2gpcb/globals.h	Sat Jan 30 17:38:47 2016 +0000
+++ b/pads2gpcb/globals.h	Sat Jan 30 21:31:03 2016 +0000
@@ -2,6 +2,7 @@
 extern int input_units_global, input_units_current;
 extern struct part_decal *part_decal_list;
 extern struct part_type *part_type_list;
+extern int do_footprint_silk;
 extern int write_decal_files, write_parttype_files, write_final_elements;
 
 /* readpads.c */
--- a/pads2gpcb/struct.h	Sat Jan 30 17:38:47 2016 +0000
+++ b/pads2gpcb/struct.h	Sat Jan 30 21:31:03 2016 +0000
@@ -19,6 +19,24 @@
 	struct	pad_shape_info shape;
 };
 
+struct element_line {
+	long	x1;
+	long	y1;
+	long	x2;
+	long	y2;
+	long	thickness;
+};
+
+struct element_arc {
+	long	centre_x;
+	long	centre_y;
+	long	width;
+	long	height;
+	int	start_angle;
+	int	delta_angle;
+	long	thickness;
+};
+
 struct footprint_body {
 	int	src_units;
 	int	npins;
@@ -30,6 +48,10 @@
 	long	refdes_y;
 	int	refdes_dir;
 	int	refdes_scale;
+	struct	element_line *silk_lines;
+	struct	element_arc *silk_arcs;
+	int	num_silk_lines;
+	int	num_silk_arcs;
 };
 
 struct part_decal {