summaryrefslogtreecommitdiff
path: root/trunk/users/stef/pyRepRap/docs/plugins/import/gerber_lib.html
blob: 1a8bbf9ae76a1cfffef478175eef2d2326ea69f5 (plain)
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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<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&nbsp;under&nbsp;GNU&nbsp;v2&nbsp;and&nbsp;the&nbsp;'I'm&nbsp;not&nbsp;going&nbsp;to&nbsp;help&nbsp;you&nbsp;kill&nbsp;people&nbsp;licence'.&nbsp;The&nbsp;latter&nbsp;overrules&nbsp;the&nbsp;former.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
I'm&nbsp;not&nbsp;going&nbsp;to&nbsp;help&nbsp;you&nbsp;kill&nbsp;people&nbsp;licence&nbsp;v1:<br>
The&nbsp;use&nbsp;of&nbsp;this&nbsp;software&nbsp;in&nbsp;any&nbsp;form&nbsp;for&nbsp;any&nbsp;purposes&nbsp;relating&nbsp;to&nbsp;any&nbsp;form&nbsp;of&nbsp;military&nbsp;activity&nbsp;or<br>
research&nbsp;either&nbsp;directly&nbsp;or&nbsp;via&nbsp;subcontracts&nbsp;is&nbsp;strictly&nbsp;prohibited.<br>
Any&nbsp;company&nbsp;or&nbsp;organisation&nbsp;affiliated&nbsp;with&nbsp;any&nbsp;military&nbsp;organisations&nbsp;either&nbsp;directly&nbsp;or&nbsp;through<br>
subcontracts&nbsp;are&nbsp;strictly&nbsp;prohibited&nbsp;from&nbsp;using&nbsp;any&nbsp;part&nbsp;of&nbsp;this&nbsp;software.<br>
&nbsp;<br>
GNU&nbsp;licence:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
RepRap&nbsp;Gerber&nbsp;Plotter&nbsp;is&nbsp;free&nbsp;software;&nbsp;you&nbsp;can&nbsp;redistribute&nbsp;it&nbsp;and/or&nbsp;modify&nbsp;it&nbsp;<br>
under&nbsp;the&nbsp;terms&nbsp;of&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;as&nbsp;published&nbsp;by&nbsp;the&nbsp;Free&nbsp;Software&nbsp;Foundation;&nbsp;<br>
either&nbsp;version&nbsp;2&nbsp;of&nbsp;the&nbsp;License,&nbsp;or&nbsp;(at&nbsp;your&nbsp;option)&nbsp;any&nbsp;later&nbsp;version.<br>
&nbsp;<br>
RepRap&nbsp;Gerber&nbsp;Plotter&nbsp;is&nbsp;distributed&nbsp;in&nbsp;the&nbsp;hope&nbsp;that&nbsp;it&nbsp;will&nbsp;be&nbsp;useful,&nbsp;but&nbsp;WITHOUT&nbsp;ANY&nbsp;WARRANTY;&nbsp;<br>
without&nbsp;even&nbsp;the&nbsp;implied&nbsp;warranty&nbsp;of&nbsp;MERCHANTABILITY&nbsp;or&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE.&nbsp;&nbsp;<br>
See&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;for&nbsp;more&nbsp;details.&nbsp;You&nbsp;should&nbsp;have&nbsp;received&nbsp;a&nbsp;copy&nbsp;of&nbsp;<br>
the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;along&nbsp;with&nbsp;File&nbsp;Hunter;&nbsp;if&nbsp;not,&nbsp;write&nbsp;to&nbsp;<br>
the&nbsp;Free&nbsp;Software&nbsp;Foundation,&nbsp;Inc.,&nbsp;59&nbsp;Temple&nbsp;Place,&nbsp;Suite&nbsp;330,&nbsp;Boston,&nbsp;MA&nbsp;&nbsp;02111-1307&nbsp;&nbsp;USA</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</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>&nbsp;<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>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>#&nbsp;Class&nbsp;for&nbsp;<a href="#gerber">gerber</a>&nbsp;<a href="#aperture">aperture</a>.&nbsp;Reads&nbsp;line&nbsp;from&nbsp;<a href="#gerber">gerber</a>&nbsp;file&nbsp;and&nbsp;extracts&nbsp;code,&nbsp;type&nbsp;&amp;&nbsp;modifiers<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</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>&nbsp;<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>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>#Class&nbsp;for&nbsp;<a href="#gerber">gerber</a>&nbsp;<a href="#aperture">aperture</a>&nbsp;macro<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</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>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="gerber">class <strong>gerber</strong></a></font></td></tr>
    
<tr><td bgcolor="#ffc8d8"><tt>&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</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&nbsp;D&nbsp;code&nbsp;&nbsp;-&nbsp;weird&nbsp;eagle&nbsp;inconsistancy?</tt></dd></dl>

<dl><dt><a name="gerber-cmdGcode"><strong>cmdGcode</strong></a>(self, gstring)</dt><dd><tt>#&nbsp;Handle&nbsp;a&nbsp;G&nbsp;code</tt></dd></dl>

<dl><dt><a name="gerber-cmdMisc"><strong>cmdMisc</strong></a>(self, mstring)</dt><dd><tt>#&nbsp;Handle&nbsp;an&nbsp;M&nbsp;code</tt></dd></dl>

<dl><dt><a name="gerber-cmdMove"><strong>cmdMove</strong></a>(self, moveString)</dt><dd><tt>#&nbsp;Hande&nbsp;a&nbsp;move</tt></dd></dl>

<dl><dt><a name="gerber-cmdParameter"><strong>cmdParameter</strong></a>(self, paramString)</dt><dd><tt>#&nbsp;Handle&nbsp;a&nbsp;parameter</tt></dd></dl>

<dl><dt><a name="gerber-parseLines"><strong>parseLines</strong></a>(self, lines)</dt><dd><tt>#&nbsp;Parse&nbsp;all&nbsp;lines&nbsp;of&nbsp;the&nbsp;<a href="#gerber">gerber</a>&nbsp;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>&nbsp;<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>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>#&nbsp;Class&nbsp;for&nbsp;a&nbsp;<a href="#gerber">gerber</a>&nbsp;flash&nbsp;(move&nbsp;and&nbsp;flash&nbsp;<a href="#aperture">aperture</a>)<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</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>&nbsp;<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>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>#&nbsp;Class&nbsp;for&nbsp;a&nbsp;<a href="#gerber">gerber</a>&nbsp;trace&nbsp;(<a href="#aperture">aperture</a>&nbsp;open&nbsp;move)<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</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>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</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>