예제 #1
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.cleave.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getTranslatorFileTypeTuples(), 'Open File to be Cleaved',
         self, '')
     self.extraDecimalPlaces = settings.IntSpin().getFromValue(
         0, 'Extra Decimal Places (integer):', self, 2, 1)
     self.importCoarseness = settings.FloatSpin().getFromValue(
         0.5, 'Import Coarseness (ratio):', self, 2.0, 1.0)
     self.layerThickness = settings.FloatSpin().getFromValue(
         0.1, 'Layer Thickness (mm):', self, 1.0, 0.4)
     self.layersFrom = settings.IntSpin().getFromValue(
         0, 'Layers From (index):', self, 20, 0)
     self.layersTo = settings.IntSpin().getSingleIncrementFromValue(
         0, 'Layers To (index):', self, 912345678, 912345678)
     self.meshTypeLabel = settings.LabelDisplay().getFromName(
         'Mesh Type: ',
         self,
     )
     importLatentStringVar = settings.LatentStringVar()
     self.correctMesh = settings.Radio().getFromRadio(
         importLatentStringVar, 'Correct Mesh', self, True)
     self.unprovenMesh = settings.Radio().getFromRadio(
         importLatentStringVar, 'Unproven Mesh', self, False)
     self.perimeterWidth = settings.FloatSpin().getFromValue(
         0.4, 'Perimeter Width (mm):', self, 4.0, 2.0)
     self.executeTitle = 'Cleave'
예제 #2
0
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		settings.addListsToRepository( 'skeinforge_tools.meta_plugins.polyfile.html', '', self )
		self.directoryOrFileChoiceLabel = settings.LabelDisplay().getFromName( 'Directory or File Choice: ', self )
		directoryLatentStringVar = settings.LatentStringVar()
		self.directorySetting = settings.Radio().getFromRadio( directoryLatentStringVar, 'Execute All Unmodified Files in a Directory', self, False )
		self.fileSetting = settings.Radio().getFromRadio( directoryLatentStringVar, 'Execute File', self, True )
예제 #3
0
파일: carve.py 프로젝트: yazici/skeinforge
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     profile.addListsToCraftTypeRepository(
         'skeinforge_tools.craft_plugins.carve.html', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getTranslatorFileTypeTuples(), 'Open File for Carve',
         self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Carve'
     )
     self.bridgeThicknessMultiplier = settings.FloatSpin().getFromValue(
         0.8, 'Bridge Thickness Multiplier (ratio):', self, 1.2, 1.0)
     self.extraDecimalPlaces = settings.IntSpin().getFromValue(
         0, 'Extra Decimal Places (integer):', self, 2, 1)
     self.importCoarseness = settings.FloatSpin().getFromValue(
         0.5, 'Import Coarseness (ratio):', self, 2.0, 1.0)
     self.infillDirectionBridge = settings.BooleanSetting().getFromValue(
         'Infill in Direction of Bridges', self, True)
     self.layerThickness = settings.FloatSpin().getFromValue(
         0.1, 'Layer Thickness (mm):', self, 1.0, 0.4)
     self.layersFrom = settings.IntSpin().getFromValue(
         0, 'Layers From (index):', self, 20, 0)
     self.layersTo = settings.IntSpin().getSingleIncrementFromValue(
         0, 'Layers To (index):', self, 912345678, 912345678)
     self.meshTypeLabel = settings.LabelDisplay().getFromName(
         'Mesh Type: ', self)
     importLatentStringVar = settings.LatentStringVar()
     self.correctMesh = settings.Radio().getFromRadio(
         importLatentStringVar, 'Correct Mesh', self, True)
     self.unprovenMesh = settings.Radio().getFromRadio(
         importLatentStringVar, 'Unproven Mesh', self, False)
     self.perimeterWidthOverThickness = settings.FloatSpin().getFromValue(
         1.4, 'Perimeter Width over Thickness (ratio):', self, 2.2, 1.8)
     self.executeTitle = 'Carve'
예제 #4
0
	def __init__( self ):
		"Set the default settings, execute title & settings fileName."
		profile.addListsToCraftTypeRepository( 'skeinforge_tools.craft_plugins.dimension.html', self )
		self.fileNameInput = settings.FileNameInput().getFromFileName( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Dimension', self, '' )
		self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute( 'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Dimension' )
		self.activateDimension = settings.BooleanSetting().getFromValue( 'Activate Dimension', self, False )
		extrusionDistanceFormatLatentStringVar = settings.LatentStringVar()
		self.extrusionDistanceFormatChoiceLabel = settings.LabelDisplay().getFromName( 'Extrusion Distance Format Choice: ', self )
		settings.Radio().getFromRadio( extrusionDistanceFormatLatentStringVar, 'Absolute Extrusion Distance', self, False )
		self.relativeExtrusionDistance = settings.Radio().getFromRadio( extrusionDistanceFormatLatentStringVar, 'Relative Extrusion Distance', self, True )
		self.executeTitle = 'Dimension'
예제 #5
0
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository(
         'skeinforge_tools.craft_plugins.export.html', '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Export', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Export'
     )
     self.activateExport = settings.BooleanSetting().getFromValue(
         'Activate Export', self, True)
     self.alsoSendOutputTo = settings.StringSetting().getFromValue(
         'Also Send Output To:', self, '')
     self.deleteComments = settings.BooleanSetting().getFromValue(
         'Delete Comments', self, True)
     exportPluginsFolderPath = gcodec.getAbsoluteFolderPath(
         __file__, 'export_plugins')
     exportStaticDirectoryPath = os.path.join(exportPluginsFolderPath,
                                              'static_plugins')
     exportPluginFileNames = gcodec.getPluginFileNamesFromDirectoryPath(
         exportPluginsFolderPath)
     exportStaticPluginFileNames = gcodec.getPluginFileNamesFromDirectoryPath(
         exportStaticDirectoryPath)
     self.exportLabel = settings.LabelDisplay().getFromName(
         'Export Operations: ', self)
     self.exportPlugins = []
     exportLatentStringVar = settings.LatentStringVar()
     self.doNotChangeOutput = settings.RadioCapitalized().getFromRadio(
         exportLatentStringVar, 'Do Not Change Output', self, True)
     self.doNotChangeOutput.directoryPath = None
     allExportPluginFileNames = exportPluginFileNames + exportStaticPluginFileNames
     for exportPluginFileName in allExportPluginFileNames:
         exportPlugin = None
         if exportPluginFileName in exportPluginFileNames:
             path = os.path.join(exportPluginsFolderPath,
                                 exportPluginFileName)
             exportPlugin = settings.RadioCapitalizedButton().getFromPath(
                 exportLatentStringVar, exportPluginFileName, path, self,
                 False)
             exportPlugin.directoryPath = exportPluginsFolderPath
         else:
             exportPlugin = settings.RadioCapitalized().getFromRadio(
                 exportLatentStringVar, exportPluginFileName, self, False)
             exportPlugin.directoryPath = exportStaticDirectoryPath
         self.exportPlugins.append(exportPlugin)
     self.fileExtension = settings.StringSetting().getFromValue(
         'File Extension:', self, 'gcode')
     self.savePenultimateGcode = settings.BooleanSetting().getFromValue(
         'Save Penultimate Gcode', self, False)
     self.executeTitle = 'Export'
예제 #6
0
파일: fillet.py 프로젝트: yazici/skeinforge
 def __init__(self):
     "Set the default settings, execute title & settings fileName."
     settings.addListsToRepository(
         'skeinforge_tools.craft_plugins.fillet.html', '', self)
     self.fileNameInput = settings.FileNameInput().getFromFileName(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Filleted', self, '')
     self.openWikiManualHelpPage = settings.HelpPage().getOpenFromAbsolute(
         'http://www.bitsfrombytes.com/wiki/index.php?title=Skeinforge_Fillet'
     )
     self.activateFillet = settings.BooleanSetting().getFromValue(
         'Activate Fillet', self, False)
     self.filletProcedureChoiceLabel = settings.LabelDisplay().getFromName(
         'Fillet Procedure Choice: ', self)
     filletLatentStringVar = settings.LatentStringVar()
     self.arcPoint = settings.Radio().getFromRadio(filletLatentStringVar,
                                                   'Arc Point', self, False)
     self.arcRadius = settings.Radio().getFromRadio(filletLatentStringVar,
                                                    'Arc Radius', self,
                                                    False)
     self.arcSegment = settings.Radio().getFromRadio(
         filletLatentStringVar, 'Arc Segment', self, False)
     self.bevel = settings.Radio().getFromRadio(filletLatentStringVar,
                                                'Bevel', self, True)
     self.cornerFeedRateOverOperatingFeedRate = settings.FloatSpin(
     ).getFromValue(0.8,
                    'Corner Feed Rate over Operating Feed Rate (ratio):',
                    self, 1.2, 1.0)
     self.filletRadiusOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(0.25, 'Fillet Radius over Perimeter Width (ratio):',
                    self, 0.65, 0.35)
     self.reversalSlowdownDistanceOverPerimeterWidth = settings.FloatSpin(
     ).getFromValue(
         0.3, 'Reversal Slowdown Distance over Perimeter Width (ratio):',
         self, 0.7, 0.5)
     self.useIntermediateFeedRateInCorners = settings.BooleanSetting(
     ).getFromValue('Use Intermediate Feed Rate in Corners', self, True)
     self.executeTitle = 'Fillet'