Fixed Gerber parser: Now buffers current path with previous tool on tool change.

This commit is contained in:
Juan Pablo Caram
2014-11-13 15:06:43 -05:00
parent b873cbfea4
commit 5659c3e7bd
69 changed files with 1930 additions and 6110 deletions

View File

@@ -539,8 +539,6 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
self.axes.plot(x, y, linespec)
self.app.plotcanvas.auto_adjust_axes()
#GLib.idle_add(self.app.plotcanvas.auto_adjust_axes)
#self.emit(QtCore.SIGNAL("plotChanged"), self)
def serialize(self):
return {
@@ -857,6 +855,25 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
ui_type = GeometryObjectUI
@staticmethod
def merge(geo_list, geo_final):
"""
Merges the geometry of objects in geo_list into
the geometry of geo_final.
:param geo_list: List of FlatCAMGeometry Objects to join.
:param geo_final: Destination FlatCAMGeometry object.
:return: None
"""
geo_final.solid_geometry = []
for geo in geo_list:
try:
for shape in geo.solid_geometry:
geo_final.solid_geometry.append(shape)
except:
geo_final.solid_geometry.append(geo)
def __init__(self, name):
FlatCAMObj.__init__(self, name)
Geometry.__init__(self)
@@ -884,8 +901,6 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
def build_ui(self):
FlatCAMObj.build_ui(self)
def set_ui(self, ui):
FlatCAMObj.set_ui(self, ui)