1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module gerber_lib</title>
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>gerber_lib</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/share/reprap/plugins/import/gerber_lib.py">/usr/share/reprap/plugins/import/gerber_lib.py</a></font></td></tr></table>
<p><tt>Licenced under GNU v2 and the 'I'm not going to help you kill people licence'. The latter overrules the former.<br>
<br>
I'm not going to help you kill people licence v1:<br>
The use of this software in any form for any purposes relating to any form of military activity or<br>
research either directly or via subcontracts is strictly prohibited.<br>
Any company or organisation affiliated with any military organisations either directly or through<br>
subcontracts are strictly prohibited from using any part of this software.<br>
<br>
GNU licence: <br>
RepRap Gerber Plotter is free software; you can redistribute it and/or modify it <br>
under the terms of the GNU General Public License as published by the Free Software Foundation; <br>
either version 2 of the License, or (at your option) any later version.<br>
<br>
RepRap Gerber Plotter is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; <br>
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. <br>
See the GNU General Public License for more details. You should have received a copy of <br>
the GNU General Public License along with File Hunter; if not, write to <br>
the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="math.html">math</a><br>
</td><td width="25%" valign=top><a href="time.html">time</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="gerber_lib.html#aperture">aperture</a>
</font></dt><dt><font face="helvetica, arial"><a href="gerber_lib.html#apertureMacro">apertureMacro</a>
</font></dt><dt><font face="helvetica, arial"><a href="gerber_lib.html#gerber">gerber</a>
</font></dt><dt><font face="helvetica, arial"><a href="gerber_lib.html#gerberFlash">gerberFlash</a>
</font></dt><dt><font face="helvetica, arial"><a href="gerber_lib.html#gerberTrace">gerberTrace</a>
</font></dt></dl>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="aperture">class <strong>aperture</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt># Class for <a href="#gerber">gerber</a> <a href="#aperture">aperture</a>. Reads line from <a href="#gerber">gerber</a> file and extracts code, type & modifiers<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="aperture-__init__"><strong>__init__</strong></a>(self, paramString, units)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="apertureMacro">class <strong>apertureMacro</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt>#Class for <a href="#gerber">gerber</a> <a href="#aperture">aperture</a> macro<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="apertureMacro-__init__"><strong>__init__</strong></a>(self, paramString, units)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="gerber">class <strong>gerber</strong></a></font></td></tr>
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="gerber-__init__"><strong>__init__</strong></a>(self, fileName)</dt></dl>
<dl><dt><a name="gerber-cmdDcode"><strong>cmdDcode</strong></a>(self, paramString)</dt><dd><tt>#Handle D code - weird eagle inconsistancy?</tt></dd></dl>
<dl><dt><a name="gerber-cmdGcode"><strong>cmdGcode</strong></a>(self, gstring)</dt><dd><tt># Handle a G code</tt></dd></dl>
<dl><dt><a name="gerber-cmdMisc"><strong>cmdMisc</strong></a>(self, mstring)</dt><dd><tt># Handle an M code</tt></dd></dl>
<dl><dt><a name="gerber-cmdMove"><strong>cmdMove</strong></a>(self, moveString)</dt><dd><tt># Hande a move</tt></dd></dl>
<dl><dt><a name="gerber-cmdParameter"><strong>cmdParameter</strong></a>(self, paramString)</dt><dd><tt># Handle a parameter</tt></dd></dl>
<dl><dt><a name="gerber-parseLines"><strong>parseLines</strong></a>(self, lines)</dt><dd><tt># Parse all lines of the <a href="#gerber">gerber</a> file</tt></dd></dl>
<dl><dt><a name="gerber-selectTool"><strong>selectTool</strong></a>(self, tool)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="gerberFlash">class <strong>gerberFlash</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt># Class for a <a href="#gerber">gerber</a> flash (move and flash <a href="#aperture">aperture</a>)<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="gerberFlash-__init__"><strong>__init__</strong></a>(self, x, y, aperture)</dt></dl>
<dl><dt><a name="gerberFlash-printFlash"><strong>printFlash</strong></a>(self)</dt></dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom> <br>
<font color="#000000" face="helvetica, arial"><a name="gerberTrace">class <strong>gerberTrace</strong></a></font></td></tr>
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
<td colspan=2><tt># Class for a <a href="#gerber">gerber</a> trace (<a href="#aperture">aperture</a> open move)<br> </tt></td></tr>
<tr><td> </td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="gerberTrace-__init__"><strong>__init__</strong></a>(self, x1, y1, x2, y2, aperture)</dt></dl>
<dl><dt><a name="gerberTrace-printTrace"><strong>printTrace</strong></a>(self)</dt></dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>FLASH</strong> = 1<br>
<strong>FS_ABSOLUTE</strong> = 1<br>
<strong>FS_INCREMENTAL</strong> = 2<br>
<strong>STROKE</strong> = 2<br>
<strong>const_mmPerInch</strong> = 25.399999999999999</td></tr></table>
</body></html>
|