index.html 99 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186
  1. <!DOCTYPE html>
  2. <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
  3. <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Welcome to Cirkuix’s documentation! &mdash; Cirkuix 0.5 documentation</title>
  8. <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT:'./',
  12. VERSION:'0.5',
  13. COLLAPSE_INDEX:false,
  14. FILE_SUFFIX:'.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/underscore.js"></script>
  20. <script type="text/javascript" src="_static/doctools.js"></script>
  21. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  22. <script type="text/javascript" src="_static/js/theme.js"></script>
  23. <script type="text/javascript">
  24. jQuery(function () {
  25. SphinxRtdTheme.StickyNav.enable();
  26. });
  27. </script>
  28. <link rel="top" title="Cirkuix 0.5 documentation" href="#"/>
  29. <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
  30. </head>
  31. <body class="wy-body-for-nav" role="document">
  32. <div class="wy-grid-for-nav">
  33. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  34. <div class="wy-side-nav-search">
  35. <a href="#" class="icon icon-home"> Cirkuix</a>
  36. <div role="search">
  37. <form id ="rtd-search-form" class="wy-form" action="search.html" method="get">
  38. <input type="text" name="q" placeholder="Search docs" />
  39. <input type="hidden" name="check_keywords" value="yes" />
  40. <input type="hidden" name="area" value="default" />
  41. </form>
  42. </div>
  43. </div>
  44. <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
  45. <ul class="simple">
  46. </ul>
  47. </div>
  48. &nbsp;
  49. </nav>
  50. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
  51. <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
  52. <i data-toggle="wy-nav-top" class="icon icon-reorder"></i>
  53. <a href="#">Cirkuix</a>
  54. </nav>
  55. <div class="wy-nav-content">
  56. <div class="rst-content">
  57. <div role="navigation" aria-label="breadcrumbs navigation">
  58. <ul class="wy-breadcrumbs">
  59. <li><a href="#">Docs</a> &raquo;</li>
  60. <li>Welcome to Cirkuix&#8217;s documentation!</li>
  61. <li class="wy-breadcrumbs-aside">
  62. <a href="_sources/index.txt" rel="nofollow"> View page source</a>
  63. </li>
  64. </ul>
  65. <hr/>
  66. </div>
  67. <div role="main">
  68. <div class="section" id="welcome-to-cirkuix-s-documentation">
  69. <h1>Welcome to Cirkuix&#8217;s documentation!<a class="headerlink" href="#welcome-to-cirkuix-s-documentation" title="Permalink to this headline">¶</a></h1>
  70. <p>Contents:</p>
  71. <div class="toctree-wrapper compound">
  72. <ul class="simple">
  73. </ul>
  74. </div>
  75. <span class="target" id="module-FlatCAM"></span><dl class="class">
  76. <dt id="FlatCAM.App">
  77. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">App</tt><a class="headerlink" href="#FlatCAM.App" title="Permalink to this definition">¶</a></dt>
  78. <dd><p>The main application class. The constructor starts the GUI.</p>
  79. <dl class="method">
  80. <dt id="FlatCAM.App.adjust_axes">
  81. <tt class="descname">adjust_axes</tt><big>(</big><em>xmin</em>, <em>ymin</em>, <em>xmax</em>, <em>ymax</em><big>)</big><a class="headerlink" href="#FlatCAM.App.adjust_axes" title="Permalink to this definition">¶</a></dt>
  82. <dd><p>Adjusts axes of all plots while maintaining the use of the whole canvas
  83. and an aspect ratio to 1:1 between x and y axes. The parameters are an original
  84. request that will be modified to fit these restrictions.</p>
  85. <table class="docutils field-list" frame="void" rules="none">
  86. <col class="field-name" />
  87. <col class="field-body" />
  88. <tbody valign="top">
  89. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  90. <li><strong>xmin</strong> (<em>float</em>) &#8211; Requested minimum value for the X axis.</li>
  91. <li><strong>ymin</strong> (<em>float</em>) &#8211; Requested minimum value for the Y axis.</li>
  92. <li><strong>xmax</strong> (<em>float</em>) &#8211; Requested maximum value for the X axis.</li>
  93. <li><strong>ymax</strong> (<em>float</em>) &#8211; Requested maximum value for the Y axis.</li>
  94. </ul>
  95. </td>
  96. </tr>
  97. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">None</p>
  98. </td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. </dd></dl>
  103. <dl class="method">
  104. <dt id="FlatCAM.App.build_list">
  105. <tt class="descname">build_list</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.build_list" title="Permalink to this definition">¶</a></dt>
  106. <dd><p>Clears and re-populates the list of objects in currently
  107. in the project.</p>
  108. <table class="docutils field-list" frame="void" rules="none">
  109. <col class="field-name" />
  110. <col class="field-body" />
  111. <tbody valign="top">
  112. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  113. </tr>
  114. </tbody>
  115. </table>
  116. </dd></dl>
  117. <dl class="method">
  118. <dt id="FlatCAM.App.clear_plots">
  119. <tt class="descname">clear_plots</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.clear_plots" title="Permalink to this definition">¶</a></dt>
  120. <dd><p>Clears self.axes and self.figure.</p>
  121. <table class="docutils field-list" frame="void" rules="none">
  122. <col class="field-name" />
  123. <col class="field-body" />
  124. <tbody valign="top">
  125. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  126. </tr>
  127. </tbody>
  128. </table>
  129. </dd></dl>
  130. <dl class="method">
  131. <dt id="FlatCAM.App.file_chooser_action">
  132. <tt class="descname">file_chooser_action</tt><big>(</big><em>on_success</em><big>)</big><a class="headerlink" href="#FlatCAM.App.file_chooser_action" title="Permalink to this definition">¶</a></dt>
  133. <dd><p>Opens the file chooser and runs on_success on a separate thread
  134. upon completion of valid file choice.</p>
  135. <table class="docutils field-list" frame="void" rules="none">
  136. <col class="field-name" />
  137. <col class="field-body" />
  138. <tbody valign="top">
  139. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>on_success</strong> (<em>func</em>) &#8211; A function to run upon completion of a valid file
  140. selection. Takes 2 parameters: The app instance and the filename.
  141. Note that it is run on a separate thread, therefore it must take the
  142. appropriate precautions when accessing shared resources.</td>
  143. </tr>
  144. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  145. </tr>
  146. </tbody>
  147. </table>
  148. </dd></dl>
  149. <dl class="method">
  150. <dt id="FlatCAM.App.file_chooser_save_action">
  151. <tt class="descname">file_chooser_save_action</tt><big>(</big><em>on_success</em><big>)</big><a class="headerlink" href="#FlatCAM.App.file_chooser_save_action" title="Permalink to this definition">¶</a></dt>
  152. <dd><p>Opens the file chooser and runs on_success upon completion of valid file choice.</p>
  153. <table class="docutils field-list" frame="void" rules="none">
  154. <col class="field-name" />
  155. <col class="field-body" />
  156. <tbody valign="top">
  157. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>on_success</strong> &#8211; A function to run upon selection of a filename. Takes 2
  158. parameters: The instance of the application (App) and the chosen filename. This
  159. gets run immediately in the same thread.</td>
  160. </tr>
  161. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  162. </tr>
  163. </tbody>
  164. </table>
  165. </dd></dl>
  166. <dl class="method">
  167. <dt id="FlatCAM.App.get_current">
  168. <tt class="descname">get_current</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.get_current" title="Permalink to this definition">¶</a></dt>
  169. <dd><p>Returns the currently selected FlatCAMObj in the application.</p>
  170. <table class="docutils field-list" frame="void" rules="none">
  171. <col class="field-name" />
  172. <col class="field-body" />
  173. <tbody valign="top">
  174. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Currently selected FlatCAMObj in the application.</td>
  175. </tr>
  176. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">FlatCAMObj or None</td>
  177. </tr>
  178. </tbody>
  179. </table>
  180. </dd></dl>
  181. <dl class="method">
  182. <dt id="FlatCAM.App.get_eval">
  183. <tt class="descname">get_eval</tt><big>(</big><em>widget_name</em><big>)</big><a class="headerlink" href="#FlatCAM.App.get_eval" title="Permalink to this definition">¶</a></dt>
  184. <dd><p>Runs eval() on the on the text entry of name &#8216;widget_name&#8217;
  185. and returns the results.</p>
  186. <table class="docutils field-list" frame="void" rules="none">
  187. <col class="field-name" />
  188. <col class="field-body" />
  189. <tbody valign="top">
  190. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget_name</strong> (<em>str</em>) &#8211; Name of Gtk.Entry</td>
  191. </tr>
  192. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Depends on contents of the entry text.</td>
  193. </tr>
  194. </tbody>
  195. </table>
  196. </dd></dl>
  197. <dl class="method">
  198. <dt id="FlatCAM.App.get_radio_value">
  199. <tt class="descname">get_radio_value</tt><big>(</big><em>radio_set</em><big>)</big><a class="headerlink" href="#FlatCAM.App.get_radio_value" title="Permalink to this definition">¶</a></dt>
  200. <dd><p>Returns the radio_set[key] of the radiobutton
  201. whose name is key is active.</p>
  202. <table class="docutils field-list" frame="void" rules="none">
  203. <col class="field-name" />
  204. <col class="field-body" />
  205. <tbody valign="top">
  206. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>radio_set</strong> (<em>dict</em>) &#8211; A dictionary containing widget_name: value pairs.</td>
  207. </tr>
  208. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">radio_set[key]</td>
  209. </tr>
  210. </tbody>
  211. </table>
  212. </dd></dl>
  213. <dl class="method">
  214. <dt id="FlatCAM.App.info">
  215. <tt class="descname">info</tt><big>(</big><em>text</em><big>)</big><a class="headerlink" href="#FlatCAM.App.info" title="Permalink to this definition">¶</a></dt>
  216. <dd><p>Show text on the status bar.</p>
  217. <table class="docutils field-list" frame="void" rules="none">
  218. <col class="field-name" />
  219. <col class="field-body" />
  220. <tbody valign="top">
  221. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>text</strong> (<em>str</em>) &#8211; Text to display.</td>
  222. </tr>
  223. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  224. </tr>
  225. </tbody>
  226. </table>
  227. </dd></dl>
  228. <dl class="method">
  229. <dt id="FlatCAM.App.load_defaults">
  230. <tt class="descname">load_defaults</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.load_defaults" title="Permalink to this definition">¶</a></dt>
  231. <dd><p>Loads the aplication&#8217;s default settings from defaults.json into
  232. <tt class="docutils literal"><span class="pre">self.defaults</span></tt>.</p>
  233. <table class="docutils field-list" frame="void" rules="none">
  234. <col class="field-name" />
  235. <col class="field-body" />
  236. <tbody valign="top">
  237. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  238. </tr>
  239. </tbody>
  240. </table>
  241. </dd></dl>
  242. <dl class="method">
  243. <dt id="FlatCAM.App.new_object">
  244. <tt class="descname">new_object</tt><big>(</big><em>kind</em>, <em>name</em>, <em>initialize</em><big>)</big><a class="headerlink" href="#FlatCAM.App.new_object" title="Permalink to this definition">¶</a></dt>
  245. <dd><p>Creates a new specalized FlatCAMObj and attaches it to the application,
  246. this is, updates the GUI accordingly, any other records and plots it.</p>
  247. <table class="docutils field-list" frame="void" rules="none">
  248. <col class="field-name" />
  249. <col class="field-body" />
  250. <tbody valign="top">
  251. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  252. <li><strong>kind</strong> (<em>str</em>) &#8211; The kind of object to create. One of &#8216;gerber&#8217;,
  253. &#8216;excellon&#8217;, &#8216;cncjob&#8217; and &#8216;geometry&#8217;.</li>
  254. <li><strong>name</strong> (<em>str</em>) &#8211; Name for the object.</li>
  255. <li><strong>initialize</strong> (<em>function</em>) &#8211; Function to run after creation of the object
  256. but before it is attached to the application. The function is
  257. called with 2 parameters: the new object and the App instance.</li>
  258. </ul>
  259. </td>
  260. </tr>
  261. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">None</p>
  262. </td>
  263. </tr>
  264. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">None</p>
  265. </td>
  266. </tr>
  267. </tbody>
  268. </table>
  269. </dd></dl>
  270. <dl class="method">
  271. <dt id="FlatCAM.App.on_activate_name">
  272. <tt class="descname">on_activate_name</tt><big>(</big><em>entry</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_activate_name" title="Permalink to this definition">¶</a></dt>
  273. <dd><p>Hitting &#8216;Enter&#8217; after changing the name of an item
  274. updates the item dictionary and re-builds the item list.</p>
  275. <table class="docutils field-list" frame="void" rules="none">
  276. <col class="field-name" />
  277. <col class="field-body" />
  278. <tbody valign="top">
  279. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>entry</strong> &#8211; The widget from which this was called.</td>
  280. </tr>
  281. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  282. </tr>
  283. </tbody>
  284. </table>
  285. </dd></dl>
  286. <dl class="method">
  287. <dt id="FlatCAM.App.on_canvas_configure">
  288. <tt class="descname">on_canvas_configure</tt><big>(</big><em>widget</em>, <em>event</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_canvas_configure" title="Permalink to this definition">¶</a></dt>
  289. <dd><p>Called whenever the canvas changes size. The axes are updated such
  290. as to use the whole canvas.</p>
  291. <table class="docutils field-list" frame="void" rules="none">
  292. <col class="field-name" />
  293. <col class="field-body" />
  294. <tbody valign="top">
  295. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  296. <li><strong>widget</strong> &#8211; Ignored.</li>
  297. <li><strong>event</strong> &#8211; Ignored.</li>
  298. </ul>
  299. </td>
  300. </tr>
  301. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">None</p>
  302. </td>
  303. </tr>
  304. </tbody>
  305. </table>
  306. </dd></dl>
  307. <dl class="method">
  308. <dt id="FlatCAM.App.on_clear_plots">
  309. <tt class="descname">on_clear_plots</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_clear_plots" title="Permalink to this definition">¶</a></dt>
  310. <dd><p>Callback for toolbar button. Clears all plots.</p>
  311. <table class="docutils field-list" frame="void" rules="none">
  312. <col class="field-name" />
  313. <col class="field-body" />
  314. <tbody valign="top">
  315. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  316. </tr>
  317. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  318. </tr>
  319. </tbody>
  320. </table>
  321. </dd></dl>
  322. <dl class="method">
  323. <dt id="FlatCAM.App.on_click_over_plot">
  324. <tt class="descname">on_click_over_plot</tt><big>(</big><em>event</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_click_over_plot" title="Permalink to this definition">¶</a></dt>
  325. <dd><p>Callback for the mouse click event over the plot. This event is generated
  326. by the Matplotlib backend and has been registered in <tt class="docutils literal"><span class="pre">self.__init__()</span></tt>.
  327. For details, see: <a class="reference external" href="http://matplotlib.org/users/event_handling.html">http://matplotlib.org/users/event_handling.html</a></p>
  328. <p>Default actions are:</p>
  329. <ul class="simple">
  330. <li>Copy coordinates to clipboard. Ex.: (65.5473, -13.2679)</li>
  331. </ul>
  332. <table class="docutils field-list" frame="void" rules="none">
  333. <col class="field-name" />
  334. <col class="field-body" />
  335. <tbody valign="top">
  336. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> &#8211; Contains information about the event, like which button
  337. was clicked, the pixel coordinates and the axes coordinates.</td>
  338. </tr>
  339. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  340. </tr>
  341. </tbody>
  342. </table>
  343. </dd></dl>
  344. <dl class="method">
  345. <dt id="FlatCAM.App.on_closewindow">
  346. <tt class="descname">on_closewindow</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_closewindow" title="Permalink to this definition">¶</a></dt>
  347. <dd><p>Callback for closing the main window.</p>
  348. <table class="docutils field-list" frame="void" rules="none">
  349. <col class="field-name" />
  350. <col class="field-body" />
  351. <tbody valign="top">
  352. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Whatever is passed by the event. Ignore.</td>
  353. </tr>
  354. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  355. </tr>
  356. </tbody>
  357. </table>
  358. </dd></dl>
  359. <dl class="method">
  360. <dt id="FlatCAM.App.on_cncjob_exportgcode">
  361. <tt class="descname">on_cncjob_exportgcode</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_cncjob_exportgcode" title="Permalink to this definition">¶</a></dt>
  362. <dd><p>Called from button on CNCjob form to save the G-Code from the object.</p>
  363. <table class="docutils field-list" frame="void" rules="none">
  364. <col class="field-name" />
  365. <col class="field-body" />
  366. <tbody valign="top">
  367. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  368. </tr>
  369. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  370. </tr>
  371. </tbody>
  372. </table>
  373. </dd></dl>
  374. <dl class="method">
  375. <dt id="FlatCAM.App.on_create_aligndrill">
  376. <tt class="descname">on_create_aligndrill</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_create_aligndrill" title="Permalink to this definition">¶</a></dt>
  377. <dd><p>Creates alignment holes Excellon object. Creates mirror duplicates
  378. of the specified holes around the specified axis.</p>
  379. <table class="docutils field-list" frame="void" rules="none">
  380. <col class="field-name" />
  381. <col class="field-body" />
  382. <tbody valign="top">
  383. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; Ignored.</td>
  384. </tr>
  385. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  386. </tr>
  387. </tbody>
  388. </table>
  389. </dd></dl>
  390. <dl class="method">
  391. <dt id="FlatCAM.App.on_create_mirror">
  392. <tt class="descname">on_create_mirror</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_create_mirror" title="Permalink to this definition">¶</a></dt>
  393. <dd><p>Creates a mirror image of a Gerber object to be used as a bottom
  394. copper layer.</p>
  395. <table class="docutils field-list" frame="void" rules="none">
  396. <col class="field-name" />
  397. <col class="field-body" />
  398. <tbody valign="top">
  399. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; Ignored.</td>
  400. </tr>
  401. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  402. </tr>
  403. </tbody>
  404. </table>
  405. </dd></dl>
  406. <dl class="method">
  407. <dt id="FlatCAM.App.on_delete">
  408. <tt class="descname">on_delete</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_delete" title="Permalink to this definition">¶</a></dt>
  409. <dd><p>Delete the currently selected FlatCAMObj.</p>
  410. <table class="docutils field-list" frame="void" rules="none">
  411. <col class="field-name" />
  412. <col class="field-body" />
  413. <tbody valign="top">
  414. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  415. </tr>
  416. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  417. </tr>
  418. </tbody>
  419. </table>
  420. </dd></dl>
  421. <dl class="method">
  422. <dt id="FlatCAM.App.on_entry_eval_activate">
  423. <tt class="descname">on_entry_eval_activate</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_entry_eval_activate" title="Permalink to this definition">¶</a></dt>
  424. <dd><p>Called when an entry is activated (eg. by hitting enter) if
  425. set to do so. Its text is eval()&#8217;d and set to the returned value.
  426. The current object is updated.</p>
  427. <table class="docutils field-list" frame="void" rules="none">
  428. <col class="field-name" />
  429. <col class="field-body" />
  430. <tbody valign="top">
  431. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; </td>
  432. </tr>
  433. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"></td>
  434. </tr>
  435. </tbody>
  436. </table>
  437. </dd></dl>
  438. <dl class="method">
  439. <dt id="FlatCAM.App.on_eval_update">
  440. <tt class="descname">on_eval_update</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_eval_update" title="Permalink to this definition">¶</a></dt>
  441. <dd><p>Modifies the content of a Gtk.Entry by running
  442. eval() on its contents and puting it back as a
  443. string.</p>
  444. <table class="docutils field-list" frame="void" rules="none">
  445. <col class="field-name" />
  446. <col class="field-body" />
  447. <tbody valign="top">
  448. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  449. </tr>
  450. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  451. </tr>
  452. </tbody>
  453. </table>
  454. </dd></dl>
  455. <dl class="method">
  456. <dt id="FlatCAM.App.on_excellon_tool_choose">
  457. <tt class="descname">on_excellon_tool_choose</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_excellon_tool_choose" title="Permalink to this definition">¶</a></dt>
  458. <dd><p>Callback for button on Excellon form to open up a window for
  459. selecting tools.</p>
  460. <table class="docutils field-list" frame="void" rules="none">
  461. <col class="field-name" />
  462. <col class="field-body" />
  463. <tbody valign="top">
  464. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  465. </tr>
  466. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  467. </tr>
  468. </tbody>
  469. </table>
  470. </dd></dl>
  471. <dl class="method">
  472. <dt id="FlatCAM.App.on_file_new">
  473. <tt class="descname">on_file_new</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_file_new" title="Permalink to this definition">¶</a></dt>
  474. <dd><p>Callback for menu item File-&gt;New. Returns the application to its
  475. startup state.</p>
  476. <table class="docutils field-list" frame="void" rules="none">
  477. <col class="field-name" />
  478. <col class="field-body" />
  479. <tbody valign="top">
  480. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Whatever is passed by the event. Ignore.</td>
  481. </tr>
  482. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  483. </tr>
  484. </tbody>
  485. </table>
  486. </dd></dl>
  487. <dl class="method">
  488. <dt id="FlatCAM.App.on_file_openproject">
  489. <tt class="descname">on_file_openproject</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_file_openproject" title="Permalink to this definition">¶</a></dt>
  490. <dd><p>Callback for menu item File-&gt;Open Project. Opens a file chooser and calls
  491. <tt class="docutils literal"><span class="pre">self.open_project()</span></tt> after successful selection of a filename.</p>
  492. <table class="docutils field-list" frame="void" rules="none">
  493. <col class="field-name" />
  494. <col class="field-body" />
  495. <tbody valign="top">
  496. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  497. </tr>
  498. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  499. </tr>
  500. </tbody>
  501. </table>
  502. </dd></dl>
  503. <dl class="method">
  504. <dt id="FlatCAM.App.on_file_savedefaults">
  505. <tt class="descname">on_file_savedefaults</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_file_savedefaults" title="Permalink to this definition">¶</a></dt>
  506. <dd><p>Callback for menu item File-&gt;Save Defaults. Saves application default options
  507. <tt class="docutils literal"><span class="pre">self.defaults</span></tt> to defaults.json.</p>
  508. <table class="docutils field-list" frame="void" rules="none">
  509. <col class="field-name" />
  510. <col class="field-body" />
  511. <tbody valign="top">
  512. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  513. </tr>
  514. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  515. </tr>
  516. </tbody>
  517. </table>
  518. </dd></dl>
  519. <dl class="method">
  520. <dt id="FlatCAM.App.on_file_saveproject">
  521. <tt class="descname">on_file_saveproject</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_file_saveproject" title="Permalink to this definition">¶</a></dt>
  522. <dd><p>Callback for menu item File-&gt;Save Project. Saves the project to
  523. <tt class="docutils literal"><span class="pre">self.project_filename</span></tt> or calls <tt class="docutils literal"><span class="pre">self.on_file_saveprojectas()</span></tt>
  524. if set to None. The project is saved by calling <tt class="docutils literal"><span class="pre">self.save_project()</span></tt>.</p>
  525. <table class="docutils field-list" frame="void" rules="none">
  526. <col class="field-name" />
  527. <col class="field-body" />
  528. <tbody valign="top">
  529. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  530. </tr>
  531. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  532. </tr>
  533. </tbody>
  534. </table>
  535. </dd></dl>
  536. <dl class="method">
  537. <dt id="FlatCAM.App.on_file_saveprojectas">
  538. <tt class="descname">on_file_saveprojectas</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_file_saveprojectas" title="Permalink to this definition">¶</a></dt>
  539. <dd><p>Callback for menu item File-&gt;Save Project As... Opens a file
  540. chooser and saves the project to the given file via
  541. <tt class="docutils literal"><span class="pre">self.save_project()</span></tt>.</p>
  542. <table class="docutils field-list" frame="void" rules="none">
  543. <col class="field-name" />
  544. <col class="field-body" />
  545. <tbody valign="top">
  546. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  547. </tr>
  548. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  549. </tr>
  550. </tbody>
  551. </table>
  552. </dd></dl>
  553. <dl class="method">
  554. <dt id="FlatCAM.App.on_file_saveprojectcopy">
  555. <tt class="descname">on_file_saveprojectcopy</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_file_saveprojectcopy" title="Permalink to this definition">¶</a></dt>
  556. <dd><p>Callback for menu item File-&gt;Save Project Copy... Opens a file
  557. chooser and saves the project to the given file via
  558. <tt class="docutils literal"><span class="pre">self.save_project</span></tt>. It does not update <tt class="docutils literal"><span class="pre">self.project_filename</span></tt> so
  559. subsequent save requests are done on the previous known filename.</p>
  560. <table class="docutils field-list" frame="void" rules="none">
  561. <col class="field-name" />
  562. <col class="field-body" />
  563. <tbody valign="top">
  564. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignore.</td>
  565. </tr>
  566. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  567. </tr>
  568. </tbody>
  569. </table>
  570. </dd></dl>
  571. <dl class="method">
  572. <dt id="FlatCAM.App.on_fileopenexcellon">
  573. <tt class="descname">on_fileopenexcellon</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_fileopenexcellon" title="Permalink to this definition">¶</a></dt>
  574. <dd><p>Callback for menu item File-&gt;Open Excellon. Defines a function that is then passed
  575. to <tt class="docutils literal"><span class="pre">self.file_chooser_action()</span></tt>. It requests the creation of a FlatCAMExcellon object
  576. and updates the progress bar throughout the process.</p>
  577. <table class="docutils field-list" frame="void" rules="none">
  578. <col class="field-name" />
  579. <col class="field-body" />
  580. <tbody valign="top">
  581. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignore</td>
  582. </tr>
  583. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  584. </tr>
  585. </tbody>
  586. </table>
  587. </dd></dl>
  588. <dl class="method">
  589. <dt id="FlatCAM.App.on_fileopengcode">
  590. <tt class="descname">on_fileopengcode</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_fileopengcode" title="Permalink to this definition">¶</a></dt>
  591. <dd><p>Callback for menu item File-&gt;Open G-Code. Defines a function that is then passed
  592. to <tt class="docutils literal"><span class="pre">self.file_chooser_action()</span></tt>. It requests the creation of a FlatCAMCNCjob object
  593. and updates the progress bar throughout the process.</p>
  594. <table class="docutils field-list" frame="void" rules="none">
  595. <col class="field-name" />
  596. <col class="field-body" />
  597. <tbody valign="top">
  598. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignore</td>
  599. </tr>
  600. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  601. </tr>
  602. </tbody>
  603. </table>
  604. </dd></dl>
  605. <dl class="method">
  606. <dt id="FlatCAM.App.on_fileopengerber">
  607. <tt class="descname">on_fileopengerber</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_fileopengerber" title="Permalink to this definition">¶</a></dt>
  608. <dd><p>Callback for menu item File-&gt;Open Gerber. Defines a function that is then passed
  609. to <tt class="docutils literal"><span class="pre">self.file_chooser_action()</span></tt>. It requests the creation of a FlatCAMGerber object
  610. and updates the progress bar throughout the process.</p>
  611. <table class="docutils field-list" frame="void" rules="none">
  612. <col class="field-name" />
  613. <col class="field-body" />
  614. <tbody valign="top">
  615. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignore</td>
  616. </tr>
  617. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  618. </tr>
  619. </tbody>
  620. </table>
  621. </dd></dl>
  622. <dl class="method">
  623. <dt id="FlatCAM.App.on_filequit">
  624. <tt class="descname">on_filequit</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_filequit" title="Permalink to this definition">¶</a></dt>
  625. <dd><p>Callback for menu item File-&gt;Quit. Closes the application.</p>
  626. <table class="docutils field-list" frame="void" rules="none">
  627. <col class="field-name" />
  628. <col class="field-body" />
  629. <tbody valign="top">
  630. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Whatever is passed by the event. Ignore.</td>
  631. </tr>
  632. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  633. </tr>
  634. </tbody>
  635. </table>
  636. </dd></dl>
  637. <dl class="method">
  638. <dt id="FlatCAM.App.on_generate_cncjob">
  639. <tt class="descname">on_generate_cncjob</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_generate_cncjob" title="Permalink to this definition">¶</a></dt>
  640. <dd><p>Callback for button on geometry form to generate CNC job.</p>
  641. <table class="docutils field-list" frame="void" rules="none">
  642. <col class="field-name" />
  643. <col class="field-body" />
  644. <tbody valign="top">
  645. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  646. </tr>
  647. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  648. </tr>
  649. </tbody>
  650. </table>
  651. </dd></dl>
  652. <dl class="method">
  653. <dt id="FlatCAM.App.on_generate_excellon_cncjob">
  654. <tt class="descname">on_generate_excellon_cncjob</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_generate_excellon_cncjob" title="Permalink to this definition">¶</a></dt>
  655. <dd><p>Callback for button active/click on Excellon form to
  656. create a CNC Job for the Excellon file.</p>
  657. <table class="docutils field-list" frame="void" rules="none">
  658. <col class="field-name" />
  659. <col class="field-body" />
  660. <tbody valign="top">
  661. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  662. </tr>
  663. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  664. </tr>
  665. </tbody>
  666. </table>
  667. </dd></dl>
  668. <dl class="method">
  669. <dt id="FlatCAM.App.on_generate_gerber_bounding_box">
  670. <tt class="descname">on_generate_gerber_bounding_box</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_generate_gerber_bounding_box" title="Permalink to this definition">¶</a></dt>
  671. <dd><p>Callback for request from the Gerber form to generate a bounding box for the
  672. geometry in the object. Creates a FlatCAMGeometry with the bounding box.</p>
  673. <table class="docutils field-list" frame="void" rules="none">
  674. <col class="field-name" />
  675. <col class="field-body" />
  676. <tbody valign="top">
  677. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; Ignored.</td>
  678. </tr>
  679. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  680. </tr>
  681. </tbody>
  682. </table>
  683. </dd></dl>
  684. <dl class="method">
  685. <dt id="FlatCAM.App.on_generate_isolation">
  686. <tt class="descname">on_generate_isolation</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_generate_isolation" title="Permalink to this definition">¶</a></dt>
  687. <dd><p>Callback for button on Gerber form to create isolation routing geometry.</p>
  688. <table class="docutils field-list" frame="void" rules="none">
  689. <col class="field-name" />
  690. <col class="field-body" />
  691. <tbody valign="top">
  692. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  693. </tr>
  694. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  695. </tr>
  696. </tbody>
  697. </table>
  698. </dd></dl>
  699. <dl class="method">
  700. <dt id="FlatCAM.App.on_generate_paintarea">
  701. <tt class="descname">on_generate_paintarea</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_generate_paintarea" title="Permalink to this definition">¶</a></dt>
  702. <dd><p>Callback for button on geometry form.
  703. Subscribes to the &#8220;Click on plot&#8221; event and continues
  704. after the click. Finds the polygon containing
  705. the clicked point and runs clear_poly() on it, resulting
  706. in a new FlatCAMGeometry object.</p>
  707. <table class="docutils field-list" frame="void" rules="none">
  708. <col class="field-name" />
  709. <col class="field-body" />
  710. <tbody valign="top">
  711. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  712. </tr>
  713. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  714. </tr>
  715. </tbody>
  716. </table>
  717. </dd></dl>
  718. <dl class="method">
  719. <dt id="FlatCAM.App.on_gerber_generate_cutout">
  720. <tt class="descname">on_gerber_generate_cutout</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_gerber_generate_cutout" title="Permalink to this definition">¶</a></dt>
  721. <dd><p>Callback for button on Gerber form to create geometry with lines
  722. for cutting off the board.</p>
  723. <table class="docutils field-list" frame="void" rules="none">
  724. <col class="field-name" />
  725. <col class="field-body" />
  726. <tbody valign="top">
  727. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  728. </tr>
  729. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  730. </tr>
  731. </tbody>
  732. </table>
  733. </dd></dl>
  734. <dl class="method">
  735. <dt id="FlatCAM.App.on_gerber_generate_noncopper">
  736. <tt class="descname">on_gerber_generate_noncopper</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_gerber_generate_noncopper" title="Permalink to this definition">¶</a></dt>
  737. <dd><p>Callback for button on Gerber form to create a geometry object
  738. with polygons covering the area without copper or negative of the
  739. Gerber.</p>
  740. <table class="docutils field-list" frame="void" rules="none">
  741. <col class="field-name" />
  742. <col class="field-body" />
  743. <tbody valign="top">
  744. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  745. </tr>
  746. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  747. </tr>
  748. </tbody>
  749. </table>
  750. </dd></dl>
  751. <dl class="method">
  752. <dt id="FlatCAM.App.on_key_over_plot">
  753. <tt class="descname">on_key_over_plot</tt><big>(</big><em>event</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_key_over_plot" title="Permalink to this definition">¶</a></dt>
  754. <dd><p>Callback for the key pressed event when the canvas is focused. Keyboard
  755. shortcuts are handled here. So far, these are the shortcuts:</p>
  756. <table border="1" class="docutils">
  757. <colgroup>
  758. <col width="19%" />
  759. <col width="81%" />
  760. </colgroup>
  761. <thead valign="bottom">
  762. <tr class="row-odd"><th class="head">Key</th>
  763. <th class="head">Action</th>
  764. </tr>
  765. </thead>
  766. <tbody valign="top">
  767. <tr class="row-even"><td>&#8216;1&#8217;</td>
  768. <td>Zoom-fit. Fits the axes limits to the data.</td>
  769. </tr>
  770. <tr class="row-odd"><td>&#8216;2&#8217;</td>
  771. <td>Zoom-out.</td>
  772. </tr>
  773. <tr class="row-even"><td>&#8216;3&#8217;</td>
  774. <td>Zoom-in.</td>
  775. </tr>
  776. </tbody>
  777. </table>
  778. <table class="docutils field-list" frame="void" rules="none">
  779. <col class="field-name" />
  780. <col class="field-body" />
  781. <tbody valign="top">
  782. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> &#8211; Ignored.</td>
  783. </tr>
  784. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  785. </tr>
  786. </tbody>
  787. </table>
  788. </dd></dl>
  789. <dl class="method">
  790. <dt id="FlatCAM.App.on_mouse_move_over_plot">
  791. <tt class="descname">on_mouse_move_over_plot</tt><big>(</big><em>event</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_mouse_move_over_plot" title="Permalink to this definition">¶</a></dt>
  792. <dd><p>Callback for the mouse motion event over the plot. This event is generated
  793. by the Matplotlib backend and has been registered in <tt class="docutils literal"><span class="pre">self.__init__()</span></tt>.
  794. For details, see: <a class="reference external" href="http://matplotlib.org/users/event_handling.html">http://matplotlib.org/users/event_handling.html</a></p>
  795. <table class="docutils field-list" frame="void" rules="none">
  796. <col class="field-name" />
  797. <col class="field-body" />
  798. <tbody valign="top">
  799. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> &#8211; Contains information about the event.</td>
  800. </tr>
  801. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  802. </tr>
  803. </tbody>
  804. </table>
  805. </dd></dl>
  806. <dl class="method">
  807. <dt id="FlatCAM.App.on_options_app2object">
  808. <tt class="descname">on_options_app2object</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_options_app2object" title="Permalink to this definition">¶</a></dt>
  809. <dd><p>Callback for Options-&gt;Transfer Options-&gt;App=&gt;Object. Copies options
  810. from application defaults to the currently selected object.</p>
  811. <table class="docutils field-list" frame="void" rules="none">
  812. <col class="field-name" />
  813. <col class="field-body" />
  814. <tbody valign="top">
  815. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  816. </tr>
  817. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  818. </tr>
  819. </tbody>
  820. </table>
  821. </dd></dl>
  822. <dl class="method">
  823. <dt id="FlatCAM.App.on_options_app2project">
  824. <tt class="descname">on_options_app2project</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_options_app2project" title="Permalink to this definition">¶</a></dt>
  825. <dd><p>Callback for Options-&gt;Transfer Options-&gt;App=&gt;Project. Copies options
  826. from application defaults to project defaults.</p>
  827. <table class="docutils field-list" frame="void" rules="none">
  828. <col class="field-name" />
  829. <col class="field-body" />
  830. <tbody valign="top">
  831. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  832. </tr>
  833. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  834. </tr>
  835. </tbody>
  836. </table>
  837. </dd></dl>
  838. <dl class="method">
  839. <dt id="FlatCAM.App.on_options_combo_change">
  840. <tt class="descname">on_options_combo_change</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_options_combo_change" title="Permalink to this definition">¶</a></dt>
  841. <dd><p>Called when the combo box to choose between application defaults and
  842. project option changes value. The corresponding variables are
  843. copied to the UI.</p>
  844. <table class="docutils field-list" frame="void" rules="none">
  845. <col class="field-name" />
  846. <col class="field-body" />
  847. <tbody valign="top">
  848. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called. Ignore.</td>
  849. </tr>
  850. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  851. </tr>
  852. </tbody>
  853. </table>
  854. </dd></dl>
  855. <dl class="method">
  856. <dt id="FlatCAM.App.on_options_object2app">
  857. <tt class="descname">on_options_object2app</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_options_object2app" title="Permalink to this definition">¶</a></dt>
  858. <dd><p>Callback for Options-&gt;Transfer Options-&gt;Object=&gt;App. Copies options
  859. from the currently selected object to application defaults.</p>
  860. <table class="docutils field-list" frame="void" rules="none">
  861. <col class="field-name" />
  862. <col class="field-body" />
  863. <tbody valign="top">
  864. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  865. </tr>
  866. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  867. </tr>
  868. </tbody>
  869. </table>
  870. </dd></dl>
  871. <dl class="method">
  872. <dt id="FlatCAM.App.on_options_object2project">
  873. <tt class="descname">on_options_object2project</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_options_object2project" title="Permalink to this definition">¶</a></dt>
  874. <dd><p>Callback for Options-&gt;Transfer Options-&gt;Object=&gt;Project. Copies options
  875. from the currently selected object to project defaults.</p>
  876. <table class="docutils field-list" frame="void" rules="none">
  877. <col class="field-name" />
  878. <col class="field-body" />
  879. <tbody valign="top">
  880. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  881. </tr>
  882. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  883. </tr>
  884. </tbody>
  885. </table>
  886. </dd></dl>
  887. <dl class="method">
  888. <dt id="FlatCAM.App.on_options_project2app">
  889. <tt class="descname">on_options_project2app</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_options_project2app" title="Permalink to this definition">¶</a></dt>
  890. <dd><p>Callback for Options-&gt;Transfer Options-&gt;Project=&gt;App. Copies options
  891. from project defaults to application defaults.</p>
  892. <table class="docutils field-list" frame="void" rules="none">
  893. <col class="field-name" />
  894. <col class="field-body" />
  895. <tbody valign="top">
  896. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  897. </tr>
  898. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  899. </tr>
  900. </tbody>
  901. </table>
  902. </dd></dl>
  903. <dl class="method">
  904. <dt id="FlatCAM.App.on_options_project2object">
  905. <tt class="descname">on_options_project2object</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_options_project2object" title="Permalink to this definition">¶</a></dt>
  906. <dd><p>Callback for Options-&gt;Transfer Options-&gt;Project=&gt;Object. Copies options
  907. from project defaults to the currently selected object.</p>
  908. <table class="docutils field-list" frame="void" rules="none">
  909. <col class="field-name" />
  910. <col class="field-body" />
  911. <tbody valign="top">
  912. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  913. </tr>
  914. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  915. </tr>
  916. </tbody>
  917. </table>
  918. </dd></dl>
  919. <dl class="method">
  920. <dt id="FlatCAM.App.on_options_update">
  921. <tt class="descname">on_options_update</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_options_update" title="Permalink to this definition">¶</a></dt>
  922. <dd><p>Called whenever a value in the options/defaults form changes.
  923. All values are updated. Can be inhibited by setting <tt class="docutils literal"><span class="pre">self.options_update_ignore</span> <span class="pre">=</span> <span class="pre">True</span></tt>,
  924. which may be necessary when updating the UI from code and not by the user.</p>
  925. <table class="docutils field-list" frame="void" rules="none">
  926. <col class="field-name" />
  927. <col class="field-body" />
  928. <tbody valign="top">
  929. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called. Ignore.</td>
  930. </tr>
  931. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  932. </tr>
  933. </tbody>
  934. </table>
  935. </dd></dl>
  936. <dl class="method">
  937. <dt id="FlatCAM.App.on_replot">
  938. <tt class="descname">on_replot</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_replot" title="Permalink to this definition">¶</a></dt>
  939. <dd><p>Callback for toolbar button. Re-plots all objects.</p>
  940. <table class="docutils field-list" frame="void" rules="none">
  941. <col class="field-name" />
  942. <col class="field-body" />
  943. <tbody valign="top">
  944. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  945. </tr>
  946. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  947. </tr>
  948. </tbody>
  949. </table>
  950. </dd></dl>
  951. <dl class="method">
  952. <dt id="FlatCAM.App.on_row_activated">
  953. <tt class="descname">on_row_activated</tt><big>(</big><em>widget</em>, <em>path</em>, <em>col</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_row_activated" title="Permalink to this definition">¶</a></dt>
  954. <dd><p>Callback for selection activation (Enter or double-click) on the Project list.
  955. Switches the notebook page to the object properties form. Calls
  956. <tt class="docutils literal"><span class="pre">self.notebook.set_current_page(1)</span></tt>.</p>
  957. <table class="docutils field-list" frame="void" rules="none">
  958. <col class="field-name" />
  959. <col class="field-body" />
  960. <tbody valign="top">
  961. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  962. <li><strong>widget</strong> &#8211; Ignored.</li>
  963. <li><strong>path</strong> &#8211; Ignored.</li>
  964. <li><strong>col</strong> &#8211; Ignored.</li>
  965. </ul>
  966. </td>
  967. </tr>
  968. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">None</p>
  969. </td>
  970. </tr>
  971. </tbody>
  972. </table>
  973. </dd></dl>
  974. <dl class="method">
  975. <dt id="FlatCAM.App.on_scale_object">
  976. <tt class="descname">on_scale_object</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_scale_object" title="Permalink to this definition">¶</a></dt>
  977. <dd><p>Callback for request to change an objects geometry scale. The object
  978. is re-scaled and replotted.</p>
  979. <table class="docutils field-list" frame="void" rules="none">
  980. <col class="field-name" />
  981. <col class="field-body" />
  982. <tbody valign="top">
  983. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; Ignored.</td>
  984. </tr>
  985. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  986. </tr>
  987. </tbody>
  988. </table>
  989. </dd></dl>
  990. <dl class="method">
  991. <dt id="FlatCAM.App.on_toggle_pointbox">
  992. <tt class="descname">on_toggle_pointbox</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_toggle_pointbox" title="Permalink to this definition">¶</a></dt>
  993. <dd><p>Callback for radio selection change between point and box in the
  994. Double-sided PCB tool. Updates the UI accordingly.</p>
  995. <table class="docutils field-list" frame="void" rules="none">
  996. <col class="field-name" />
  997. <col class="field-body" />
  998. <tbody valign="top">
  999. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; Ignored.</td>
  1000. </tr>
  1001. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1002. </tr>
  1003. </tbody>
  1004. </table>
  1005. </dd></dl>
  1006. <dl class="method">
  1007. <dt id="FlatCAM.App.on_toggle_units">
  1008. <tt class="descname">on_toggle_units</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_toggle_units" title="Permalink to this definition">¶</a></dt>
  1009. <dd><p>Callback for the Units radio-button change in the Options tab.
  1010. Changes the application&#8217;s default units or the current project&#8217;s units.
  1011. If changing the project&#8217;s units, the change propagates to all of
  1012. the objects in the project.</p>
  1013. <table class="docutils field-list" frame="void" rules="none">
  1014. <col class="field-name" />
  1015. <col class="field-body" />
  1016. <tbody valign="top">
  1017. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; Ignored.</td>
  1018. </tr>
  1019. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1020. </tr>
  1021. </tbody>
  1022. </table>
  1023. </dd></dl>
  1024. <dl class="method">
  1025. <dt id="FlatCAM.App.on_tools_doublesided">
  1026. <tt class="descname">on_tools_doublesided</tt><big>(</big><em>param</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_tools_doublesided" title="Permalink to this definition">¶</a></dt>
  1027. <dd><p>Callback for menu item Tools-&gt;Double Sided PCB Tool. Launches the
  1028. tool placing its UI in the &#8220;Tool&#8221; tab in the notebook.</p>
  1029. <table class="docutils field-list" frame="void" rules="none">
  1030. <col class="field-name" />
  1031. <col class="field-body" />
  1032. <tbody valign="top">
  1033. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>param</strong> &#8211; Ignored.</td>
  1034. </tr>
  1035. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1036. </tr>
  1037. </tbody>
  1038. </table>
  1039. </dd></dl>
  1040. <dl class="method">
  1041. <dt id="FlatCAM.App.on_tree_selection_changed">
  1042. <tt class="descname">on_tree_selection_changed</tt><big>(</big><em>selection</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_tree_selection_changed" title="Permalink to this definition">¶</a></dt>
  1043. <dd><p>Callback for selection change in the project list. This changes
  1044. the currently selected FlatCAMObj.</p>
  1045. <table class="docutils field-list" frame="void" rules="none">
  1046. <col class="field-name" />
  1047. <col class="field-body" />
  1048. <tbody valign="top">
  1049. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>selection</strong> (<em>Gtk.TreeSelection</em>) &#8211; Selection associated to the project tree or list</td>
  1050. </tr>
  1051. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1052. </tr>
  1053. </tbody>
  1054. </table>
  1055. </dd></dl>
  1056. <dl class="method">
  1057. <dt id="FlatCAM.App.on_update_plot">
  1058. <tt class="descname">on_update_plot</tt><big>(</big><em>widget</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_update_plot" title="Permalink to this definition">¶</a></dt>
  1059. <dd><p>Callback for button on form for all kinds of objects.
  1060. Re-plots the current object only.</p>
  1061. <table class="docutils field-list" frame="void" rules="none">
  1062. <col class="field-name" />
  1063. <col class="field-body" />
  1064. <tbody valign="top">
  1065. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>widget</strong> &#8211; The widget from which this was called.</td>
  1066. </tr>
  1067. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1068. </tr>
  1069. </tbody>
  1070. </table>
  1071. </dd></dl>
  1072. <dl class="method">
  1073. <dt id="FlatCAM.App.on_zoom_fit">
  1074. <tt class="descname">on_zoom_fit</tt><big>(</big><em>event</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_zoom_fit" title="Permalink to this definition">¶</a></dt>
  1075. <dd><p>Callback for zoom-out request. This can be either from the corresponding
  1076. toolbar button or the &#8216;1&#8217; key when the canvas is focused. Calls <tt class="docutils literal"><span class="pre">self.adjust_axes()</span></tt>
  1077. with axes limits from the geometry bounds of all objects.</p>
  1078. <table class="docutils field-list" frame="void" rules="none">
  1079. <col class="field-name" />
  1080. <col class="field-body" />
  1081. <tbody valign="top">
  1082. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> &#8211; Ignored.</td>
  1083. </tr>
  1084. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1085. </tr>
  1086. </tbody>
  1087. </table>
  1088. </dd></dl>
  1089. <dl class="method">
  1090. <dt id="FlatCAM.App.on_zoom_in">
  1091. <tt class="descname">on_zoom_in</tt><big>(</big><em>event</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_zoom_in" title="Permalink to this definition">¶</a></dt>
  1092. <dd><p>Callback for zoom-in request. This can be either from the corresponding
  1093. toolbar button or the &#8216;3&#8217; key when the canvas is focused. Calls <tt class="docutils literal"><span class="pre">self.zoom()</span></tt>.</p>
  1094. <table class="docutils field-list" frame="void" rules="none">
  1095. <col class="field-name" />
  1096. <col class="field-body" />
  1097. <tbody valign="top">
  1098. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> &#8211; Ignored.</td>
  1099. </tr>
  1100. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1101. </tr>
  1102. </tbody>
  1103. </table>
  1104. </dd></dl>
  1105. <dl class="method">
  1106. <dt id="FlatCAM.App.on_zoom_out">
  1107. <tt class="descname">on_zoom_out</tt><big>(</big><em>event</em><big>)</big><a class="headerlink" href="#FlatCAM.App.on_zoom_out" title="Permalink to this definition">¶</a></dt>
  1108. <dd><p>Callback for zoom-out request. This can be either from the corresponding
  1109. toolbar button or the &#8216;2&#8217; key when the canvas is focused. Calls <tt class="docutils literal"><span class="pre">self.zoom()</span></tt>.</p>
  1110. <table class="docutils field-list" frame="void" rules="none">
  1111. <col class="field-name" />
  1112. <col class="field-body" />
  1113. <tbody valign="top">
  1114. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> &#8211; Ignored.</td>
  1115. </tr>
  1116. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1117. </tr>
  1118. </tbody>
  1119. </table>
  1120. </dd></dl>
  1121. <dl class="method">
  1122. <dt id="FlatCAM.App.open_project">
  1123. <tt class="descname">open_project</tt><big>(</big><em>filename</em><big>)</big><a class="headerlink" href="#FlatCAM.App.open_project" title="Permalink to this definition">¶</a></dt>
  1124. <dd><p>Loads a project from the specified file.</p>
  1125. <table class="docutils field-list" frame="void" rules="none">
  1126. <col class="field-name" />
  1127. <col class="field-body" />
  1128. <tbody valign="top">
  1129. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>filename</strong> (<em>str</em>) &#8211; Name of the file from which to load.</td>
  1130. </tr>
  1131. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1132. </tr>
  1133. </tbody>
  1134. </table>
  1135. </dd></dl>
  1136. <dl class="method">
  1137. <dt id="FlatCAM.App.options2form">
  1138. <tt class="descname">options2form</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.options2form" title="Permalink to this definition">¶</a></dt>
  1139. <dd><p>Sets the &#8216;Project Options&#8217; or &#8216;Application Defaults&#8217; form with values from
  1140. <tt class="docutils literal"><span class="pre">self.options</span></tt> or <tt class="docutils literal"><span class="pre">self.defaults</span></tt>.</p>
  1141. <table class="docutils field-list" frame="void" rules="none">
  1142. <col class="field-name" />
  1143. <col class="field-body" />
  1144. <tbody valign="top">
  1145. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1146. </tr>
  1147. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  1148. </tr>
  1149. </tbody>
  1150. </table>
  1151. </dd></dl>
  1152. <dl class="method">
  1153. <dt id="FlatCAM.App.plot_all">
  1154. <tt class="descname">plot_all</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.plot_all" title="Permalink to this definition">¶</a></dt>
  1155. <dd><p>Re-generates all plots from all objects.</p>
  1156. <table class="docutils field-list" frame="void" rules="none">
  1157. <col class="field-name" />
  1158. <col class="field-body" />
  1159. <tbody valign="top">
  1160. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1161. </tr>
  1162. </tbody>
  1163. </table>
  1164. </dd></dl>
  1165. <dl class="method">
  1166. <dt id="FlatCAM.App.populate_objects_combo">
  1167. <tt class="descname">populate_objects_combo</tt><big>(</big><em>combo</em><big>)</big><a class="headerlink" href="#FlatCAM.App.populate_objects_combo" title="Permalink to this definition">¶</a></dt>
  1168. <dd><p>Populates a Gtk.Comboboxtext with the list of the object in the project.</p>
  1169. <table class="docutils field-list" frame="void" rules="none">
  1170. <col class="field-name" />
  1171. <col class="field-body" />
  1172. <tbody valign="top">
  1173. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>combo</strong> (<em>str or Gtk.ComboBoxText</em>) &#8211; Name or instance of the comboboxtext.</td>
  1174. </tr>
  1175. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1176. </tr>
  1177. </tbody>
  1178. </table>
  1179. </dd></dl>
  1180. <dl class="method">
  1181. <dt id="FlatCAM.App.read_form">
  1182. <tt class="descname">read_form</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.read_form" title="Permalink to this definition">¶</a></dt>
  1183. <dd><p>Reads the options form into self.defaults/self.options.</p>
  1184. <table class="docutils field-list" frame="void" rules="none">
  1185. <col class="field-name" />
  1186. <col class="field-body" />
  1187. <tbody valign="top">
  1188. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1189. </tr>
  1190. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  1191. </tr>
  1192. </tbody>
  1193. </table>
  1194. </dd></dl>
  1195. <dl class="method">
  1196. <dt id="FlatCAM.App.read_form_item">
  1197. <tt class="descname">read_form_item</tt><big>(</big><em>name</em>, <em>dest</em><big>)</big><a class="headerlink" href="#FlatCAM.App.read_form_item" title="Permalink to this definition">¶</a></dt>
  1198. <dd><p>Reads the value of a form item in the defaults/options form and
  1199. saves it to the corresponding dictionary.</p>
  1200. <table class="docutils field-list" frame="void" rules="none">
  1201. <col class="field-name" />
  1202. <col class="field-body" />
  1203. <tbody valign="top">
  1204. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1205. <li><strong>name</strong> (<em>str</em>) &#8211; Name of the form item. A key in <tt class="docutils literal"><span class="pre">self.defaults</span></tt> or
  1206. <tt class="docutils literal"><span class="pre">self.options</span></tt>.</li>
  1207. <li><strong>dest</strong> (<em>dict</em>) &#8211; Dictionary to which to save the value.</li>
  1208. </ul>
  1209. </td>
  1210. </tr>
  1211. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">None</p>
  1212. </td>
  1213. </tr>
  1214. </tbody>
  1215. </table>
  1216. </dd></dl>
  1217. <dl class="method">
  1218. <dt id="FlatCAM.App.save_project">
  1219. <tt class="descname">save_project</tt><big>(</big><em>filename</em><big>)</big><a class="headerlink" href="#FlatCAM.App.save_project" title="Permalink to this definition">¶</a></dt>
  1220. <dd><p>Saves the current project to the specified file.</p>
  1221. <table class="docutils field-list" frame="void" rules="none">
  1222. <col class="field-name" />
  1223. <col class="field-body" />
  1224. <tbody valign="top">
  1225. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>filename</strong> (<em>str</em>) &#8211; Name of the file in which to save.</td>
  1226. </tr>
  1227. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1228. </tr>
  1229. </tbody>
  1230. </table>
  1231. </dd></dl>
  1232. <dl class="method">
  1233. <dt id="FlatCAM.App.set_form_item">
  1234. <tt class="descname">set_form_item</tt><big>(</big><em>name</em>, <em>value</em><big>)</big><a class="headerlink" href="#FlatCAM.App.set_form_item" title="Permalink to this definition">¶</a></dt>
  1235. <dd><p>Sets a form item &#8216;name&#8217; in the GUI with the given &#8216;value&#8217;. The syntax of
  1236. form names in the GUI is &lt;kind&gt;_app_&lt;name&gt;, where kind is one of: rb (radio button),
  1237. cb (check button), entry_eval or entry_text (entry), combo (combo box). name is
  1238. whatever name it&#8217;s been given. For self.defaults, name is a key in the dictionary.</p>
  1239. <table class="docutils field-list" frame="void" rules="none">
  1240. <col class="field-name" />
  1241. <col class="field-body" />
  1242. <tbody valign="top">
  1243. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1244. <li><strong>name</strong> (<em>str</em>) &#8211; Name of the form field.</li>
  1245. <li><strong>value</strong> (<em>Depends on field kind.</em>) &#8211; The value to set the form field to.</li>
  1246. </ul>
  1247. </td>
  1248. </tr>
  1249. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">None</p>
  1250. </td>
  1251. </tr>
  1252. </tbody>
  1253. </table>
  1254. </dd></dl>
  1255. <dl class="method">
  1256. <dt id="FlatCAM.App.set_list_selection">
  1257. <tt class="descname">set_list_selection</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#FlatCAM.App.set_list_selection" title="Permalink to this definition">¶</a></dt>
  1258. <dd><p>Marks a given object as selected in the list ob objects
  1259. in the GUI. This selection will in turn trigger
  1260. <tt class="docutils literal"><span class="pre">self.on_tree_selection_changed()</span></tt>.</p>
  1261. <table class="docutils field-list" frame="void" rules="none">
  1262. <col class="field-name" />
  1263. <col class="field-body" />
  1264. <tbody valign="top">
  1265. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<em>str</em>) &#8211; Name of the object.</td>
  1266. </tr>
  1267. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1268. </tr>
  1269. </tbody>
  1270. </table>
  1271. </dd></dl>
  1272. <dl class="method">
  1273. <dt id="FlatCAM.App.set_progress_bar">
  1274. <tt class="descname">set_progress_bar</tt><big>(</big><em>percentage</em>, <em>text=''</em><big>)</big><a class="headerlink" href="#FlatCAM.App.set_progress_bar" title="Permalink to this definition">¶</a></dt>
  1275. <dd><p>Sets the application&#8217;s progress bar to a given fraction and text.</p>
  1276. <table class="docutils field-list" frame="void" rules="none">
  1277. <col class="field-name" />
  1278. <col class="field-body" />
  1279. <tbody valign="top">
  1280. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1281. <li><strong>percentage</strong> (<em>float</em>) &#8211; The fraction (0.0-1.0) of the progress.</li>
  1282. <li><strong>text</strong> (<em>str</em>) &#8211; Text to display on the progress bar.</li>
  1283. </ul>
  1284. </td>
  1285. </tr>
  1286. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last"></p>
  1287. </td>
  1288. </tr>
  1289. </tbody>
  1290. </table>
  1291. </dd></dl>
  1292. <dl class="method">
  1293. <dt id="FlatCAM.App.setup_component_editor">
  1294. <tt class="descname">setup_component_editor</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.setup_component_editor" title="Permalink to this definition">¶</a></dt>
  1295. <dd><p>Initial configuration of the component editor. Creates
  1296. a page titled &#8220;Selection&#8221; on the notebook on the left
  1297. side of the main window.</p>
  1298. <table class="docutils field-list" frame="void" rules="none">
  1299. <col class="field-name" />
  1300. <col class="field-body" />
  1301. <tbody valign="top">
  1302. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1303. </tr>
  1304. </tbody>
  1305. </table>
  1306. </dd></dl>
  1307. <dl class="method">
  1308. <dt id="FlatCAM.App.setup_obj_classes">
  1309. <tt class="descname">setup_obj_classes</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.setup_obj_classes" title="Permalink to this definition">¶</a></dt>
  1310. <dd><p>Sets up application specifics on the FlatCAMObj class.</p>
  1311. <table class="docutils field-list" frame="void" rules="none">
  1312. <col class="field-name" />
  1313. <col class="field-body" />
  1314. <tbody valign="top">
  1315. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1316. </tr>
  1317. </tbody>
  1318. </table>
  1319. </dd></dl>
  1320. <dl class="method">
  1321. <dt id="FlatCAM.App.setup_plot">
  1322. <tt class="descname">setup_plot</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.setup_plot" title="Permalink to this definition">¶</a></dt>
  1323. <dd><p>Sets up the main plotting area by creating a Matplotlib
  1324. figure in self.canvas, adding axes and configuring them.
  1325. These axes should not be ploted on and are just there to
  1326. display the axes ticks and grid.</p>
  1327. <table class="docutils field-list" frame="void" rules="none">
  1328. <col class="field-name" />
  1329. <col class="field-body" />
  1330. <tbody valign="top">
  1331. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1332. </tr>
  1333. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  1334. </tr>
  1335. </tbody>
  1336. </table>
  1337. </dd></dl>
  1338. <dl class="method">
  1339. <dt id="FlatCAM.App.setup_project_list">
  1340. <tt class="descname">setup_project_list</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.App.setup_project_list" title="Permalink to this definition">¶</a></dt>
  1341. <dd><p>Sets up list or Tree where whatever has been loaded or created is
  1342. displayed.</p>
  1343. <table class="docutils field-list" frame="void" rules="none">
  1344. <col class="field-name" />
  1345. <col class="field-body" />
  1346. <tbody valign="top">
  1347. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1348. </tr>
  1349. </tbody>
  1350. </table>
  1351. </dd></dl>
  1352. <dl class="method">
  1353. <dt id="FlatCAM.App.zoom">
  1354. <tt class="descname">zoom</tt><big>(</big><em>factor</em>, <em>center=None</em><big>)</big><a class="headerlink" href="#FlatCAM.App.zoom" title="Permalink to this definition">¶</a></dt>
  1355. <dd><p>Zooms the plot by factor around a given
  1356. center point. Takes care of re-drawing.</p>
  1357. <table class="docutils field-list" frame="void" rules="none">
  1358. <col class="field-name" />
  1359. <col class="field-body" />
  1360. <tbody valign="top">
  1361. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1362. <li><strong>factor</strong> (<em>float</em>) &#8211; Number by which to scale the plot.</li>
  1363. <li><strong>center</strong> (<em>list</em>) &#8211; Coordinates [x, y] of the point around which to scale the plot.</li>
  1364. </ul>
  1365. </td>
  1366. </tr>
  1367. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">None</p>
  1368. </td>
  1369. </tr>
  1370. </tbody>
  1371. </table>
  1372. </dd></dl>
  1373. </dd></dl>
  1374. <dl class="class">
  1375. <dt id="FlatCAM.Geometry">
  1376. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">Geometry</tt><a class="headerlink" href="#FlatCAM.Geometry" title="Permalink to this definition">¶</a></dt>
  1377. <dd><dl class="method">
  1378. <dt id="FlatCAM.Geometry.bounds">
  1379. <tt class="descname">bounds</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.Geometry.bounds" title="Permalink to this definition">¶</a></dt>
  1380. <dd><p>Returns coordinates of rectangular bounds
  1381. of geometry: (xmin, ymin, xmax, ymax).</p>
  1382. </dd></dl>
  1383. <dl class="method">
  1384. <dt id="FlatCAM.Geometry.clear_polygon">
  1385. <tt class="descname">clear_polygon</tt><big>(</big><em>polygon</em>, <em>tooldia</em>, <em>overlap=0.15</em><big>)</big><a class="headerlink" href="#FlatCAM.Geometry.clear_polygon" title="Permalink to this definition">¶</a></dt>
  1386. <dd><p>Creates geometry inside a polygon for a tool to cover
  1387. the whole area.</p>
  1388. </dd></dl>
  1389. <dl class="method">
  1390. <dt id="FlatCAM.Geometry.convert_units">
  1391. <tt class="descname">convert_units</tt><big>(</big><em>units</em><big>)</big><a class="headerlink" href="#FlatCAM.Geometry.convert_units" title="Permalink to this definition">¶</a></dt>
  1392. <dd><p>Converts the units of the object to <tt class="docutils literal"><span class="pre">units</span></tt> by scaling all
  1393. the geometry appropriately. This call <tt class="docutils literal"><span class="pre">scale()</span></tt>. Don&#8217;t call
  1394. it again in descendents.</p>
  1395. <table class="docutils field-list" frame="void" rules="none">
  1396. <col class="field-name" />
  1397. <col class="field-body" />
  1398. <tbody valign="top">
  1399. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>units</strong> (<em>str</em>) &#8211; &#8220;IN&#8221; or &#8220;MM&#8221;</td>
  1400. </tr>
  1401. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Scaling factor resulting from unit change.</td>
  1402. </tr>
  1403. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">float</td>
  1404. </tr>
  1405. </tbody>
  1406. </table>
  1407. </dd></dl>
  1408. <dl class="method">
  1409. <dt id="FlatCAM.Geometry.from_dict">
  1410. <tt class="descname">from_dict</tt><big>(</big><em>d</em><big>)</big><a class="headerlink" href="#FlatCAM.Geometry.from_dict" title="Permalink to this definition">¶</a></dt>
  1411. <dd><p>Sets object&#8217;s attributes from a dictionary.
  1412. Attributes to include are listed in <tt class="docutils literal"><span class="pre">self.ser_attrs</span></tt>.</p>
  1413. </dd></dl>
  1414. <dl class="method">
  1415. <dt id="FlatCAM.Geometry.get_empty_area">
  1416. <tt class="descname">get_empty_area</tt><big>(</big><em>boundary=None</em><big>)</big><a class="headerlink" href="#FlatCAM.Geometry.get_empty_area" title="Permalink to this definition">¶</a></dt>
  1417. <dd><p>Returns the complement of self.solid_geometry within
  1418. the given boundary polygon. If not specified, it defaults to
  1419. the rectangular bounding box of self.solid_geometry.</p>
  1420. </dd></dl>
  1421. <dl class="method">
  1422. <dt id="FlatCAM.Geometry.isolation_geometry">
  1423. <tt class="descname">isolation_geometry</tt><big>(</big><em>offset</em><big>)</big><a class="headerlink" href="#FlatCAM.Geometry.isolation_geometry" title="Permalink to this definition">¶</a></dt>
  1424. <dd><p>Creates contours around geometry at a given
  1425. offset distance.</p>
  1426. </dd></dl>
  1427. <dl class="method">
  1428. <dt id="FlatCAM.Geometry.scale">
  1429. <tt class="descname">scale</tt><big>(</big><em>factor</em><big>)</big><a class="headerlink" href="#FlatCAM.Geometry.scale" title="Permalink to this definition">¶</a></dt>
  1430. <dd><p>Scales all of the object&#8217;s geometry by a given factor. Override
  1431. this method.
  1432. :param factor: Number by which to scale.
  1433. :type factor: float
  1434. :return: None
  1435. :rtype: None</p>
  1436. </dd></dl>
  1437. <dl class="method">
  1438. <dt id="FlatCAM.Geometry.size">
  1439. <tt class="descname">size</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.Geometry.size" title="Permalink to this definition">¶</a></dt>
  1440. <dd><p>Returns (width, height) of rectangular
  1441. bounds of geometry.</p>
  1442. </dd></dl>
  1443. <dl class="method">
  1444. <dt id="FlatCAM.Geometry.to_dict">
  1445. <tt class="descname">to_dict</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.Geometry.to_dict" title="Permalink to this definition">¶</a></dt>
  1446. <dd><p>Returns a respresentation of the object as a dictionary.
  1447. Attributes to include are listed in <tt class="docutils literal"><span class="pre">self.ser_attrs</span></tt>.</p>
  1448. <table class="docutils field-list" frame="void" rules="none">
  1449. <col class="field-name" />
  1450. <col class="field-body" />
  1451. <tbody valign="top">
  1452. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">A dictionary-encoded copy of the object.</td>
  1453. </tr>
  1454. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">dict</td>
  1455. </tr>
  1456. </tbody>
  1457. </table>
  1458. </dd></dl>
  1459. </dd></dl>
  1460. <dl class="class">
  1461. <dt id="FlatCAM.Gerber">
  1462. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">Gerber</tt><big>(</big><em>Geometry</em><big>)</big><a class="headerlink" href="#FlatCAM.Gerber" title="Permalink to this definition">¶</a></dt>
  1463. <dd><p><strong>ATTRIBUTES</strong></p>
  1464. <ul class="simple">
  1465. <li><tt class="docutils literal"><span class="pre">apertures</span></tt> (dict): The keys are names/identifiers of each aperture.
  1466. The values are dictionaries key/value pairs which describe the aperture. The
  1467. type key is always present and the rest depend on the key:</li>
  1468. </ul>
  1469. <table border="1" class="docutils">
  1470. <colgroup>
  1471. <col width="24%" />
  1472. <col width="76%" />
  1473. </colgroup>
  1474. <thead valign="bottom">
  1475. <tr class="row-odd"><th class="head">Key</th>
  1476. <th class="head">Value</th>
  1477. </tr>
  1478. </thead>
  1479. <tbody valign="top">
  1480. <tr class="row-even"><td>type</td>
  1481. <td>(str) &#8220;C&#8221;, &#8220;R&#8221;, or &#8220;O&#8221;</td>
  1482. </tr>
  1483. <tr class="row-odd"><td>others</td>
  1484. <td>Depend on <tt class="docutils literal"><span class="pre">type</span></tt></td>
  1485. </tr>
  1486. </tbody>
  1487. </table>
  1488. <ul class="simple">
  1489. <li><tt class="docutils literal"><span class="pre">paths</span></tt> (list): A path is described by a line an aperture that follows that
  1490. line. Each paths[i] is a dictionary:</li>
  1491. </ul>
  1492. <table border="1" class="docutils">
  1493. <colgroup>
  1494. <col width="20%" />
  1495. <col width="80%" />
  1496. </colgroup>
  1497. <thead valign="bottom">
  1498. <tr class="row-odd"><th class="head">Key</th>
  1499. <th class="head">Value</th>
  1500. </tr>
  1501. </thead>
  1502. <tbody valign="top">
  1503. <tr class="row-even"><td>linestring</td>
  1504. <td>(Shapely.LineString) The actual path.</td>
  1505. </tr>
  1506. <tr class="row-odd"><td>aperture</td>
  1507. <td>(str) The key for an aperture in apertures.</td>
  1508. </tr>
  1509. </tbody>
  1510. </table>
  1511. <ul class="simple">
  1512. <li><tt class="docutils literal"><span class="pre">flashes</span></tt> (list): Flashes are single-point strokes of an aperture. Each
  1513. is a dictionary:</li>
  1514. </ul>
  1515. <table border="1" class="docutils">
  1516. <colgroup>
  1517. <col width="20%" />
  1518. <col width="80%" />
  1519. </colgroup>
  1520. <thead valign="bottom">
  1521. <tr class="row-odd"><th class="head">Key</th>
  1522. <th class="head">Value</th>
  1523. </tr>
  1524. </thead>
  1525. <tbody valign="top">
  1526. <tr class="row-even"><td>loc</td>
  1527. <td>(list) [x (float), y (float)] coordinates.</td>
  1528. </tr>
  1529. <tr class="row-odd"><td>aperture</td>
  1530. <td>(str) The key for an aperture in apertures.</td>
  1531. </tr>
  1532. </tbody>
  1533. </table>
  1534. <ul class="simple">
  1535. <li><tt class="docutils literal"><span class="pre">regions</span></tt> (list): Are surfaces defined by a polygon (Shapely.Polygon),
  1536. which have an exterior and zero or more interiors. An aperture is also
  1537. associated with a region. Each is a dictionary:</li>
  1538. </ul>
  1539. <table border="1" class="docutils">
  1540. <colgroup>
  1541. <col width="18%" />
  1542. <col width="82%" />
  1543. </colgroup>
  1544. <thead valign="bottom">
  1545. <tr class="row-odd"><th class="head">Key</th>
  1546. <th class="head">Value</th>
  1547. </tr>
  1548. </thead>
  1549. <tbody valign="top">
  1550. <tr class="row-even"><td>polygon</td>
  1551. <td>(Shapely.Polygon) The polygon defining the region.</td>
  1552. </tr>
  1553. <tr class="row-odd"><td>aperture</td>
  1554. <td>(str) The key for an aperture in apertures.</td>
  1555. </tr>
  1556. </tbody>
  1557. </table>
  1558. <ul class="simple">
  1559. <li><tt class="docutils literal"><span class="pre">flash_geometry</span></tt> (list): List of (Shapely) geometric object resulting
  1560. from <tt class="docutils literal"><span class="pre">flashes</span></tt>. These are generated from <tt class="docutils literal"><span class="pre">flashes</span></tt> in <tt class="docutils literal"><span class="pre">do_flashes()</span></tt>.</li>
  1561. <li><tt class="docutils literal"><span class="pre">buffered_paths</span></tt> (list): List of (Shapely) polygons resulting from
  1562. <em>buffering</em> (or thickening) the <tt class="docutils literal"><span class="pre">paths</span></tt> with the aperture. These are
  1563. generated from <tt class="docutils literal"><span class="pre">paths</span></tt> in <tt class="docutils literal"><span class="pre">buffer_paths()</span></tt>.</li>
  1564. </ul>
  1565. <p><strong>USAGE</strong>:</p>
  1566. <div class="highlight-python"><div class="highlight"><pre><span class="n">g</span> <span class="o">=</span> <span class="n">Gerber</span><span class="p">()</span>
  1567. <span class="n">g</span><span class="o">.</span><span class="n">parse_file</span><span class="p">(</span><span class="n">filename</span><span class="p">)</span>
  1568. <span class="n">g</span><span class="o">.</span><span class="n">create_geometry</span><span class="p">()</span>
  1569. <span class="n">do_something</span><span class="p">(</span><span class="n">s</span><span class="o">.</span><span class="n">solid_geometry</span><span class="p">)</span>
  1570. </pre></div>
  1571. </div>
  1572. <dl class="method">
  1573. <dt id="FlatCAM.Gerber.aperture_parse">
  1574. <tt class="descname">aperture_parse</tt><big>(</big><em>gline</em><big>)</big><a class="headerlink" href="#FlatCAM.Gerber.aperture_parse" title="Permalink to this definition">¶</a></dt>
  1575. <dd><p>Parse gerber aperture definition into dictionary of apertures.
  1576. The following kinds and their attributes are supported:</p>
  1577. <ul class="simple">
  1578. <li><em>Circular (C)</em>: size (float)</li>
  1579. <li><em>Rectangle (R)</em>: width (float), height (float)</li>
  1580. <li><em>Obround (O)</em>: width (float), height (float).</li>
  1581. </ul>
  1582. <table class="docutils field-list" frame="void" rules="none">
  1583. <col class="field-name" />
  1584. <col class="field-body" />
  1585. <tbody valign="top">
  1586. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>gline</strong> (<em>str</em>) &#8211; Line of Gerber code known to have an aperture definition.</td>
  1587. </tr>
  1588. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Identifier of the aperture.</td>
  1589. </tr>
  1590. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
  1591. </tr>
  1592. </tbody>
  1593. </table>
  1594. </dd></dl>
  1595. <dl class="method">
  1596. <dt id="FlatCAM.Gerber.create_geometry">
  1597. <tt class="descname">create_geometry</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.Gerber.create_geometry" title="Permalink to this definition">¶</a></dt>
  1598. <dd><p>Geometry from a Gerber file is made up entirely of polygons.
  1599. Every stroke (linear or circular) has an aperture which gives
  1600. it thickness. Additionally, aperture strokes have non-zero area,
  1601. and regions naturally do as well.</p>
  1602. <p>:rtype : None
  1603. :return: None</p>
  1604. </dd></dl>
  1605. <dl class="attribute">
  1606. <dt id="FlatCAM.Gerber.digits">
  1607. <tt class="descname">digits</tt><em class="property"> = None</em><a class="headerlink" href="#FlatCAM.Gerber.digits" title="Permalink to this definition">¶</a></dt>
  1608. <dd><p>Number of integer digits in Gerber numbers. Used during parsing.</p>
  1609. </dd></dl>
  1610. <dl class="method">
  1611. <dt id="FlatCAM.Gerber.do_flashes">
  1612. <tt class="descname">do_flashes</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.Gerber.do_flashes" title="Permalink to this definition">¶</a></dt>
  1613. <dd><p>Creates geometry for Gerber flashes (aperture on a single point).</p>
  1614. </dd></dl>
  1615. <dl class="method">
  1616. <dt id="FlatCAM.Gerber.fix_regions">
  1617. <tt class="descname">fix_regions</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.Gerber.fix_regions" title="Permalink to this definition">¶</a></dt>
  1618. <dd><p>Overwrites the region polygons with fixed
  1619. versions if found to be invalid (according to Shapely).</p>
  1620. </dd></dl>
  1621. <dl class="attribute">
  1622. <dt id="FlatCAM.Gerber.fraction">
  1623. <tt class="descname">fraction</tt><em class="property"> = None</em><a class="headerlink" href="#FlatCAM.Gerber.fraction" title="Permalink to this definition">¶</a></dt>
  1624. <dd><p>Number of fraction digits in Gerber numbers. Used during parsing.</p>
  1625. </dd></dl>
  1626. <dl class="method">
  1627. <dt id="FlatCAM.Gerber.get_bounding_box">
  1628. <tt class="descname">get_bounding_box</tt><big>(</big><em>margin=0.0</em>, <em>rounded=False</em><big>)</big><a class="headerlink" href="#FlatCAM.Gerber.get_bounding_box" title="Permalink to this definition">¶</a></dt>
  1629. <dd><p>Creates and returns a rectangular polygon bounding at a distance of
  1630. margin from the object&#8217;s <tt class="docutils literal"><span class="pre">solid_geometry</span></tt>. If margin &gt; 0, the polygon
  1631. can optionally have rounded corners of radius equal to margin.</p>
  1632. <table class="docutils field-list" frame="void" rules="none">
  1633. <col class="field-name" />
  1634. <col class="field-body" />
  1635. <tbody valign="top">
  1636. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
  1637. <li><strong>margin</strong> (<em>float</em>) &#8211; Distance to enlarge the rectangular bounding
  1638. box in both positive and negative, x and y axes.</li>
  1639. <li><strong>rounded</strong> (<em>bool</em>) &#8211; Wether or not to have rounded corners.</li>
  1640. </ul>
  1641. </td>
  1642. </tr>
  1643. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">The bounding box.</p>
  1644. </td>
  1645. </tr>
  1646. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Shapely.Polygon</p>
  1647. </td>
  1648. </tr>
  1649. </tbody>
  1650. </table>
  1651. </dd></dl>
  1652. <dl class="method">
  1653. <dt id="FlatCAM.Gerber.parse_file">
  1654. <tt class="descname">parse_file</tt><big>(</big><em>filename</em><big>)</big><a class="headerlink" href="#FlatCAM.Gerber.parse_file" title="Permalink to this definition">¶</a></dt>
  1655. <dd><p>Calls Gerber.parse_lines() with array of lines
  1656. read from the given file.</p>
  1657. </dd></dl>
  1658. <dl class="method">
  1659. <dt id="FlatCAM.Gerber.parse_lines">
  1660. <tt class="descname">parse_lines</tt><big>(</big><em>glines</em><big>)</big><a class="headerlink" href="#FlatCAM.Gerber.parse_lines" title="Permalink to this definition">¶</a></dt>
  1661. <dd><p>Main Gerber parser.</p>
  1662. </dd></dl>
  1663. <dl class="method">
  1664. <dt id="FlatCAM.Gerber.scale">
  1665. <tt class="descname">scale</tt><big>(</big><em>factor</em><big>)</big><a class="headerlink" href="#FlatCAM.Gerber.scale" title="Permalink to this definition">¶</a></dt>
  1666. <dd><p>Scales the objects&#8217; geometry on the XY plane by a given factor.
  1667. These are:</p>
  1668. <ul class="simple">
  1669. <li><tt class="docutils literal"><span class="pre">apertures</span></tt></li>
  1670. <li><tt class="docutils literal"><span class="pre">paths</span></tt></li>
  1671. <li><tt class="docutils literal"><span class="pre">regions</span></tt></li>
  1672. <li><tt class="docutils literal"><span class="pre">flashes</span></tt></li>
  1673. </ul>
  1674. <p>Then <tt class="docutils literal"><span class="pre">buffered_paths</span></tt>, <tt class="docutils literal"><span class="pre">flash_geometry</span></tt> and <tt class="docutils literal"><span class="pre">solid_geometry</span></tt>
  1675. are re-created with <tt class="docutils literal"><span class="pre">self.create_geometry()</span></tt>.
  1676. :param factor: Number by which to scale.
  1677. :type factor: float
  1678. :rtype : None</p>
  1679. </dd></dl>
  1680. </dd></dl>
  1681. <dl class="class">
  1682. <dt id="FlatCAM.Excellon">
  1683. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">Excellon</tt><a class="headerlink" href="#FlatCAM.Excellon" title="Permalink to this definition">¶</a></dt>
  1684. <dd><p><em>ATTRIBUTES</em></p>
  1685. <ul class="simple">
  1686. <li><tt class="docutils literal"><span class="pre">tools</span></tt> (dict): The key is the tool name and the value is
  1687. the size (diameter).</li>
  1688. <li><tt class="docutils literal"><span class="pre">drills</span></tt> (list): Each is a dictionary:</li>
  1689. </ul>
  1690. <table border="1" class="docutils">
  1691. <colgroup>
  1692. <col width="31%" />
  1693. <col width="69%" />
  1694. </colgroup>
  1695. <thead valign="bottom">
  1696. <tr class="row-odd"><th class="head">Key</th>
  1697. <th class="head">Value</th>
  1698. </tr>
  1699. </thead>
  1700. <tbody valign="top">
  1701. <tr class="row-even"><td>point</td>
  1702. <td>(Shapely.Point) Where to drill</td>
  1703. </tr>
  1704. <tr class="row-odd"><td>tool</td>
  1705. <td>(str) A key in <tt class="docutils literal"><span class="pre">tools</span></tt></td>
  1706. </tr>
  1707. </tbody>
  1708. </table>
  1709. <dl class="method">
  1710. <dt id="FlatCAM.Excellon.parse_lines">
  1711. <tt class="descname">parse_lines</tt><big>(</big><em>elines</em><big>)</big><a class="headerlink" href="#FlatCAM.Excellon.parse_lines" title="Permalink to this definition">¶</a></dt>
  1712. <dd><p>Main Excellon parser.</p>
  1713. </dd></dl>
  1714. <dl class="method">
  1715. <dt id="FlatCAM.Excellon.scale">
  1716. <tt class="descname">scale</tt><big>(</big><em>factor</em><big>)</big><a class="headerlink" href="#FlatCAM.Excellon.scale" title="Permalink to this definition">¶</a></dt>
  1717. <dd><p>Scales geometry on the XY plane in the object by a given factor.
  1718. Tool sizes, feedrates an Z-plane dimensions are untouched.</p>
  1719. <table class="docutils field-list" frame="void" rules="none">
  1720. <col class="field-name" />
  1721. <col class="field-body" />
  1722. <tbody valign="top">
  1723. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>factor</strong> (<em>float</em>) &#8211; Number by which to scale the object.</td>
  1724. </tr>
  1725. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1726. </tr>
  1727. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">NOne</td>
  1728. </tr>
  1729. </tbody>
  1730. </table>
  1731. </dd></dl>
  1732. </dd></dl>
  1733. <dl class="class">
  1734. <dt id="FlatCAM.CNCjob">
  1735. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">CNCjob</tt><big>(</big><em>units='in'</em>, <em>kind='generic'</em>, <em>z_move=0.1</em>, <em>feedrate=3.0</em>, <em>z_cut=-0.002</em>, <em>tooldia=0.0</em><big>)</big><a class="headerlink" href="#FlatCAM.CNCjob" title="Permalink to this definition">¶</a></dt>
  1736. <dd><p>Represents work to be done by a CNC machine.</p>
  1737. <p><em>ATTRIBUTES</em></p>
  1738. <ul class="simple">
  1739. <li><tt class="docutils literal"><span class="pre">gcode_parsed</span></tt> (list): Each is a dictionary:</li>
  1740. </ul>
  1741. <table border="1" class="docutils">
  1742. <colgroup>
  1743. <col width="34%" />
  1744. <col width="66%" />
  1745. </colgroup>
  1746. <thead valign="bottom">
  1747. <tr class="row-odd"><th class="head">Key</th>
  1748. <th class="head">Value</th>
  1749. </tr>
  1750. </thead>
  1751. <tbody valign="top">
  1752. <tr class="row-even"><td>geom</td>
  1753. <td>(Shapely.LineString) Tool path (XY plane)</td>
  1754. </tr>
  1755. <tr class="row-odd"><td>kind</td>
  1756. <td>(string) &#8220;AB&#8221;, A is &#8220;T&#8221; (travel) or
  1757. &#8220;C&#8221; (cut). B is &#8220;F&#8221; (fast) or &#8220;S&#8221; (slow).</td>
  1758. </tr>
  1759. </tbody>
  1760. </table>
  1761. <dl class="method">
  1762. <dt id="FlatCAM.CNCjob.gcode_parse">
  1763. <tt class="descname">gcode_parse</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.CNCjob.gcode_parse" title="Permalink to this definition">¶</a></dt>
  1764. <dd><p>G-Code parser (from self.gcode). Generates dictionary with
  1765. single-segment LineString&#8217;s and &#8220;kind&#8221; indicating cut or travel,
  1766. fast or feedrate speed.</p>
  1767. </dd></dl>
  1768. <dl class="method">
  1769. <dt id="FlatCAM.CNCjob.generate_from_excellon">
  1770. <tt class="descname">generate_from_excellon</tt><big>(</big><em>exobj</em><big>)</big><a class="headerlink" href="#FlatCAM.CNCjob.generate_from_excellon" title="Permalink to this definition">¶</a></dt>
  1771. <dd><p>Generates G-code for drilling from Excellon object.
  1772. self.gcode becomes a list, each element is a
  1773. different job for each tool in the excellon code.</p>
  1774. </dd></dl>
  1775. <dl class="method">
  1776. <dt id="FlatCAM.CNCjob.generate_from_excellon_by_tool">
  1777. <tt class="descname">generate_from_excellon_by_tool</tt><big>(</big><em>exobj</em>, <em>tools='all'</em><big>)</big><a class="headerlink" href="#FlatCAM.CNCjob.generate_from_excellon_by_tool" title="Permalink to this definition">¶</a></dt>
  1778. <dd><p>Creates gcode for this object from an Excellon object
  1779. for the specified tools.
  1780. &#64;param exobj: Excellon object to process
  1781. &#64;type exobj: Excellon
  1782. &#64;param tools: Comma separated tool names
  1783. &#64;type: tools: str
  1784. &#64;return: None</p>
  1785. </dd></dl>
  1786. <dl class="method">
  1787. <dt id="FlatCAM.CNCjob.generate_from_geometry">
  1788. <tt class="descname">generate_from_geometry</tt><big>(</big><em>geometry</em>, <em>append=True</em>, <em>tooldia=None</em><big>)</big><a class="headerlink" href="#FlatCAM.CNCjob.generate_from_geometry" title="Permalink to this definition">¶</a></dt>
  1789. <dd><p>Generates G-Code from a Geometry object.</p>
  1790. </dd></dl>
  1791. <dl class="method">
  1792. <dt id="FlatCAM.CNCjob.plot2">
  1793. <tt class="descname">plot2</tt><big>(</big><em>axes, tooldia=None, dpi=75, margin=0.1, color={'C': ['#5E6CFF', '#4650BD'], 'T': ['#F0E24D', '#B5AB3A']}, alpha={'C': 1.0, 'T': 0.3}</em><big>)</big><a class="headerlink" href="#FlatCAM.CNCjob.plot2" title="Permalink to this definition">¶</a></dt>
  1794. <dd><p>Plots the G-code job onto the given axes.</p>
  1795. </dd></dl>
  1796. <dl class="method">
  1797. <dt id="FlatCAM.CNCjob.polygon2gcode">
  1798. <tt class="descname">polygon2gcode</tt><big>(</big><em>polygon</em><big>)</big><a class="headerlink" href="#FlatCAM.CNCjob.polygon2gcode" title="Permalink to this definition">¶</a></dt>
  1799. <dd><p>Creates G-Code for the exterior and all interior paths
  1800. of a polygon.</p>
  1801. <table class="docutils field-list" frame="void" rules="none">
  1802. <col class="field-name" />
  1803. <col class="field-body" />
  1804. <tbody valign="top">
  1805. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>polygon</strong> (<em>Shapely.Polygon</em>) &#8211; A Shapely.Polygon</td>
  1806. </tr>
  1807. </tbody>
  1808. </table>
  1809. </dd></dl>
  1810. <dl class="method">
  1811. <dt id="FlatCAM.CNCjob.pre_parse">
  1812. <tt class="descname">pre_parse</tt><big>(</big><em>gtext</em><big>)</big><a class="headerlink" href="#FlatCAM.CNCjob.pre_parse" title="Permalink to this definition">¶</a></dt>
  1813. <dd><p>gtext is a single string with g-code</p>
  1814. </dd></dl>
  1815. <dl class="method">
  1816. <dt id="FlatCAM.CNCjob.scale">
  1817. <tt class="descname">scale</tt><big>(</big><em>factor</em><big>)</big><a class="headerlink" href="#FlatCAM.CNCjob.scale" title="Permalink to this definition">¶</a></dt>
  1818. <dd><p>Scales all the geometry on the XY plane in the object by the
  1819. given factor. Tool sizes, feedrates, or Z-axis dimensions are
  1820. not altered.</p>
  1821. <table class="docutils field-list" frame="void" rules="none">
  1822. <col class="field-name" />
  1823. <col class="field-body" />
  1824. <tbody valign="top">
  1825. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>factor</strong> (<em>float</em>) &#8211; Number by which to scale the object.</td>
  1826. </tr>
  1827. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1828. </tr>
  1829. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  1830. </tr>
  1831. </tbody>
  1832. </table>
  1833. </dd></dl>
  1834. </dd></dl>
  1835. <dl class="class">
  1836. <dt id="FlatCAM.FlatCAMObj">
  1837. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">FlatCAMObj</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMObj" title="Permalink to this definition">¶</a></dt>
  1838. <dd><p>Base type of objects handled in FlatCAM. These become interactive
  1839. in the GUI, can be plotted, and their options can be modified
  1840. by the user in their respective forms.</p>
  1841. <dl class="method">
  1842. <dt id="FlatCAM.FlatCAMObj.build_ui">
  1843. <tt class="descname">build_ui</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMObj.build_ui" title="Permalink to this definition">¶</a></dt>
  1844. <dd><p>Sets up the UI/form for this object.</p>
  1845. <table class="docutils field-list" frame="void" rules="none">
  1846. <col class="field-name" />
  1847. <col class="field-body" />
  1848. <tbody valign="top">
  1849. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1850. </tr>
  1851. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  1852. </tr>
  1853. </tbody>
  1854. </table>
  1855. </dd></dl>
  1856. <dl class="method">
  1857. <dt id="FlatCAM.FlatCAMObj.deserialize">
  1858. <tt class="descname">deserialize</tt><big>(</big><em>obj_dict</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMObj.deserialize" title="Permalink to this definition">¶</a></dt>
  1859. <dd><p>Re-builds an object from its serialized version.
  1860. &#64;param obj_dict: Dictionary representing a FlatCAMObj
  1861. &#64;type obj_dict: dict
  1862. &#64;return None</p>
  1863. </dd></dl>
  1864. <dl class="method">
  1865. <dt id="FlatCAM.FlatCAMObj.plot">
  1866. <tt class="descname">plot</tt><big>(</big><em>figure</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMObj.plot" title="Permalink to this definition">¶</a></dt>
  1867. <dd><p>Extend this method! Sets up axes if needed and
  1868. clears them. Descendants must do the actual plotting.</p>
  1869. </dd></dl>
  1870. <dl class="method">
  1871. <dt id="FlatCAM.FlatCAMObj.read_form">
  1872. <tt class="descname">read_form</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMObj.read_form" title="Permalink to this definition">¶</a></dt>
  1873. <dd><p>Reads form into <tt class="docutils literal"><span class="pre">self.options</span></tt>.</p>
  1874. <table class="docutils field-list" frame="void" rules="none">
  1875. <col class="field-name" />
  1876. <col class="field-body" />
  1877. <tbody valign="top">
  1878. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1879. </tr>
  1880. <tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  1881. </tr>
  1882. </tbody>
  1883. </table>
  1884. </dd></dl>
  1885. <dl class="method">
  1886. <dt id="FlatCAM.FlatCAMObj.serialize">
  1887. <tt class="descname">serialize</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMObj.serialize" title="Permalink to this definition">¶</a></dt>
  1888. <dd><p>Returns a representation of the object as a dictionary so
  1889. it can be later exported as JSON. Override this method.
  1890. &#64;return: Dictionary representing the object
  1891. &#64;rtype: dict</p>
  1892. </dd></dl>
  1893. <dl class="method">
  1894. <dt id="FlatCAM.FlatCAMObj.set_form_item">
  1895. <tt class="descname">set_form_item</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMObj.set_form_item" title="Permalink to this definition">¶</a></dt>
  1896. <dd><p>Copies the specified options to the UI form.</p>
  1897. <table class="docutils field-list" frame="void" rules="none">
  1898. <col class="field-name" />
  1899. <col class="field-body" />
  1900. <tbody valign="top">
  1901. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>option</strong> (<em>str</em>) &#8211; Name of the option (Key in <tt class="docutils literal"><span class="pre">self.options</span></tt>).</td>
  1902. </tr>
  1903. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1904. </tr>
  1905. </tbody>
  1906. </table>
  1907. </dd></dl>
  1908. <dl class="method">
  1909. <dt id="FlatCAM.FlatCAMObj.setup_axes">
  1910. <tt class="descname">setup_axes</tt><big>(</big><em>figure</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMObj.setup_axes" title="Permalink to this definition">¶</a></dt>
  1911. <dd><p>1) Creates axes if they don&#8217;t exist. 2) Clears axes. 3) Attaches
  1912. them to figure if not part of the figure. 4) Sets transparent
  1913. background. 5) Sets 1:1 scale aspect ratio.</p>
  1914. <table class="docutils field-list" frame="void" rules="none">
  1915. <col class="field-name" />
  1916. <col class="field-body" />
  1917. <tbody valign="top">
  1918. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>figure</strong> (<em>matplotlib.figure.Figure</em>) &#8211; A Matplotlib.Figure on which to add/configure axes.</td>
  1919. </tr>
  1920. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1921. </tr>
  1922. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  1923. </tr>
  1924. </tbody>
  1925. </table>
  1926. </dd></dl>
  1927. <dl class="method">
  1928. <dt id="FlatCAM.FlatCAMObj.to_form">
  1929. <tt class="descname">to_form</tt><big>(</big><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMObj.to_form" title="Permalink to this definition">¶</a></dt>
  1930. <dd><p>Copies options to the UI form.</p>
  1931. <table class="docutils field-list" frame="void" rules="none">
  1932. <col class="field-name" />
  1933. <col class="field-body" />
  1934. <tbody valign="top">
  1935. <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1936. </tr>
  1937. </tbody>
  1938. </table>
  1939. </dd></dl>
  1940. </dd></dl>
  1941. <dl class="class">
  1942. <dt id="FlatCAM.FlatCAMGerber">
  1943. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">FlatCAMGerber</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMGerber" title="Permalink to this definition">¶</a></dt>
  1944. <dd><p>Represents Gerber code.</p>
  1945. <dl class="method">
  1946. <dt id="FlatCAM.FlatCAMGerber.convert_units">
  1947. <tt class="descname">convert_units</tt><big>(</big><em>units</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMGerber.convert_units" title="Permalink to this definition">¶</a></dt>
  1948. <dd><p>Converts the units of the object by scaling dimensions in all geometry
  1949. and options.</p>
  1950. <table class="docutils field-list" frame="void" rules="none">
  1951. <col class="field-name" />
  1952. <col class="field-body" />
  1953. <tbody valign="top">
  1954. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>units</strong> (<em>str</em>) &#8211; Units to which to convert the object: &#8220;IN&#8221; or &#8220;MM&#8221;.</td>
  1955. </tr>
  1956. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
  1957. </tr>
  1958. <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">None</td>
  1959. </tr>
  1960. </tbody>
  1961. </table>
  1962. </dd></dl>
  1963. </dd></dl>
  1964. <dl class="class">
  1965. <dt id="FlatCAM.FlatCAMExcellon">
  1966. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">FlatCAMExcellon</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMExcellon" title="Permalink to this definition">¶</a></dt>
  1967. <dd><p>Represents Excellon code.</p>
  1968. </dd></dl>
  1969. <dl class="class">
  1970. <dt id="FlatCAM.FlatCAMCNCjob">
  1971. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">FlatCAMCNCjob</tt><big>(</big><em>name</em>, <em>units='in'</em>, <em>kind='generic'</em>, <em>z_move=0.1</em>, <em>feedrate=3.0</em>, <em>z_cut=-0.002</em>, <em>tooldia=0.0</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMCNCjob" title="Permalink to this definition">¶</a></dt>
  1972. <dd><p>Represents G-Code.</p>
  1973. </dd></dl>
  1974. <dl class="class">
  1975. <dt id="FlatCAM.FlatCAMGeometry">
  1976. <em class="property">class </em><tt class="descclassname">FlatCAM.</tt><tt class="descname">FlatCAMGeometry</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#FlatCAM.FlatCAMGeometry" title="Permalink to this definition">¶</a></dt>
  1977. <dd><p>Geometric object not associated with a specific
  1978. format.</p>
  1979. </dd></dl>
  1980. </div>
  1981. <div class="section" id="indices-and-tables">
  1982. <h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline">¶</a></h1>
  1983. <ul class="simple">
  1984. <li><a class="reference internal" href="genindex.html"><em>Index</em></a></li>
  1985. <li><a class="reference internal" href="py-modindex.html"><em>Module Index</em></a></li>
  1986. <li><a class="reference internal" href="search.html"><em>Search Page</em></a></li>
  1987. </ul>
  1988. </div>
  1989. </div>
  1990. <footer>
  1991. <hr/>
  1992. <div role="contentinfo">
  1993. <p>
  1994. &copy; Copyright 2014, Juan Pablo Caram.
  1995. </p>
  1996. </div>
  1997. <a href="https://github.com/snide/sphinx_rtd_theme">Sphinx theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>
  1998. </footer>
  1999. </div>
  2000. </div>
  2001. </section>
  2002. </div>
  2003. </body>
  2004. </html>