- changed the above: too many shapes collections and the performance will go down. Created a class Exclusion areas that holds all the require properties and the Object UI elements will connect to it's methods. This way I can apply this to Excellon object too (who are a special type of Geometry Object)

This commit is contained in:
Marius Stanciu
2020-05-06 03:44:56 +03:00
committed by Marius
parent 91493b2fbc
commit 343d4ee534
4 changed files with 390 additions and 288 deletions

View File

@@ -43,7 +43,7 @@ import socket
# ####################################################################################################################
# Diverse
from FlatCAMCommon import LoudDict, color_variant
from FlatCAMCommon import LoudDict, color_variant, ExclusionAreas
from FlatCAMBookmark import BookmarkManager
from FlatCAMDB import ToolsDB2
@@ -1601,6 +1601,11 @@ class App(QtCore.QObject):
self.ui.excellon_defaults_form.excellon_gen_group.excellon_optimization_radio.set_value('T')
self.ui.excellon_defaults_form.excellon_gen_group.excellon_optimization_radio.setDisabled(True)
# ###########################################################################################################
# ########################################### EXCLUSION AREAS ###############################################
# ###########################################################################################################
self.exc_areas = ExclusionAreas(app=self)
# ###########################################################################################################
# ##################################### Finished the CONSTRUCTOR ############################################
# ###########################################################################################################