示例#1
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File for Raftless', '')
     self.archive.append(self.fileNameInput)
     self.activateRaftless = preferences.BooleanPreference().getFromValue(
         'Activate Raftless:', False)
     self.archive.append(self.activateRaftless)
     self.firstPerimeterFeedrateOverFeedrate = preferences.FloatPreference(
     ).getFromValue('1st Perimeter Feed Rate over Feed Rate (ratio):', 0.7)
     self.archive.append(self.firstPerimeterFeedrateOverFeedrate)
     self.firstPerimeterFlowrateOverFlowrate = preferences.FloatPreference(
     ).getFromValue('1st Perimeter Flow Rate over Flow Rate (ratio):', 1.0)
     self.archive.append(self.firstPerimeterFlowrateOverFlowrate)
     self.addExtrusionIntro = preferences.BooleanPreference().getFromValue(
         'Add Extrusion Intro:', True)
     self.archive.append(self.addExtrusionIntro)
     self.absMaxXIntro = preferences.FloatPreference().getFromValue(
         'Extrusion Intro Max X Absolute (mm):', 40.0)
     self.archive.append(self.absMaxXIntro)
     self.absMaxYIntro = preferences.FloatPreference().getFromValue(
         'Extrusion Intro Max Y Absolute (mm):', 40.0)
     self.archive.append(self.absMaxYIntro)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Raftless'
     self.fileNamePreferences = preferences.getPreferencesFilePath(
         'raftless.csv')
     self.saveTitle = 'Save Preferences'
     self.title = 'Raftless Preferences'
     self.fileNameHelp = 'skeinforge_tools.raftless.html'
示例#2
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.activateStretch = preferences.BooleanPreference().getFromValue(
         'Activate Stretch', False)
     self.archive.append(self.activateStretch)
     self.loopStretchOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue('Loop Stretch Over Extrusion Width (ratio):', 0.15)
     self.archive.append(self.loopStretchOverExtrusionWidth)
     self.pathStretchOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue('Path Stretch Over Extrusion Width (ratio):', 0.0)
     self.archive.append(self.pathStretchOverExtrusionWidth)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Stretched', '')
     self.archive.append(self.fileNameInput)
     self.stretchFromDistanceOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue('Stretch From Distance Over Extrusion Width (ratio):',
                    2.0)
     self.archive.append(self.stretchFromDistanceOverExtrusionWidth)
     self.perimeterStretchOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue(
         'Perimeter Maximum Stretch Over Extrusion Width (ratio):', 0.3)
     self.archive.append(self.perimeterStretchOverExtrusionWidth)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Stretch'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.stretch.html')
示例#3
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.activateComb = preferences.BooleanPreference().getFromValue(
         'Activate Comb', True)
     self.archive.append(self.activateComb)
     self.arrivalInsetFollowDistanceOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue(
         'Arrival Inset Follow Distance over Extrusion Width (ratio):', 3.0)
     self.archive.append(self.arrivalInsetFollowDistanceOverExtrusionWidth)
     self.jitterOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue('Jitter Over Extrusion Width (ratio):', 2.0)
     self.archive.append(self.jitterOverExtrusionWidth)
     self.minimumPerimeterDepartureDistanceOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue(
         'Minimum Perimeter Departure Distance over Extrusion Width (ratio):',
         30.0)
     self.archive.append(
         self.minimumPerimeterDepartureDistanceOverExtrusionWidth)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Combed', '')
     self.archive.append(self.fileNameInput)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Comb'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.comb.html')
示例#4
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.activateMultiply = preferences.BooleanPreference().getFromValue(
         'Activate Multiply:', False)
     self.archive.append(self.activateMultiply)
     self.centerX = preferences.FloatPreference().getFromValue(
         'Center X (millimeters):', 0.0)
     self.archive.append(self.centerX)
     self.centerY = preferences.FloatPreference().getFromValue(
         'Center Y (millimeters):', 0.0)
     self.archive.append(self.centerY)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Multiplied', '')
     self.archive.append(self.fileNameInput)
     self.numberOfColumns = preferences.IntPreference().getFromValue(
         'Number of Columns (integer):', 1)
     self.archive.append(self.numberOfColumns)
     self.numberOfRows = preferences.IntPreference().getFromValue(
         'Number of Rows (integer):', 1)
     self.archive.append(self.numberOfRows)
     self.separationOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue('Separation over Extrusion Width (ratio):', 15.0)
     self.archive.append(self.separationOverExtrusionWidth)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Multiply'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.multiply.html')
示例#5
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.extrusionPerimeterWidthOverThickness = preferences.FloatPreference(
     ).getFromValue('Extrusion Perimeter Width over Thickness (ratio):',
                    1.8)
     self.archive.append(self.extrusionPerimeterWidthOverThickness)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Insetted', '')
     self.archive.append(self.fileNameInput)
     self.infillPerimeterOverlap = preferences.FloatPreference(
     ).getFromValue('Infill Perimeter Overlap (ratio):', 0.05)
     self.archive.append(self.infillPerimeterOverlap)
     self.infillPerimeterOverlapMethodOfCalculationLabel = preferences.LabelDisplay(
     ).getFromName('Infill Perimeter Overlap Method of Calculation: ')
     self.archive.append(
         self.infillPerimeterOverlapMethodOfCalculationLabel)
     infillRadio = []
     self.perimeterInfillPreference = preferences.Radio().getFromRadio(
         'Calculate Overlap from Perimeter and Infill', infillRadio, True)
     self.archive.append(self.perimeterInfillPreference)
     self.perimeterPreference = preferences.Radio().getFromRadio(
         'Calculate Overlap from Perimeter Only', infillRadio, False)
     self.archive.append(self.perimeterPreference)
     self.startAtHome = preferences.BooleanPreference().getFromValue(
         'Start at Home', False)
     self.archive.append(self.startAtHome)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Inset'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.inset.html')
示例#6
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.activateFillet = preferences.BooleanPreference().getFromValue( 'Activate Fillet', True )
		self.archive.append( self.activateFillet )
		self.filletProcedureChoiceLabel = preferences.LabelDisplay().getFromName( 'Fillet Procedure Choice: ' )
		self.archive.append( self.filletProcedureChoiceLabel )
		filletRadio = []
		self.arcPoint = preferences.Radio().getFromRadio( 'Arc Point', filletRadio, False )
		self.archive.append( self.arcPoint )
		self.arcRadius = preferences.Radio().getFromRadio( 'Arc Radius', filletRadio, False )
		self.archive.append( self.arcRadius )
		self.arcSegment = preferences.Radio().getFromRadio( 'Arc Segment', filletRadio, False )
		self.archive.append( self.arcSegment )
		self.bevel = preferences.Radio().getFromRadio( 'Bevel', filletRadio, True )
		self.archive.append( self.bevel )
		self.cornerFeedrateOverOperatingFeedrate = preferences.FloatPreference().getFromValue( 'Corner Feedrate over Operating Feedrate (ratio):', 1.0 )
		self.archive.append( self.cornerFeedrateOverOperatingFeedrate )
		self.filletRadiusOverExtrusionWidth = preferences.FloatPreference().getFromValue( 'Fillet Radius over Extrusion Width (ratio):', 0.35 )
		self.archive.append( self.filletRadiusOverExtrusionWidth )
		self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Filleted', '' )
		self.archive.append( self.fileNameInput )
		self.reversalSlowdownDistanceOverExtrusionWidth = preferences.FloatPreference().getFromValue( 'Reversal Slowdown Distance over Extrusion Width (ratio):', 0.5 )
		self.archive.append( self.reversalSlowdownDistanceOverExtrusionWidth )
		self.useIntermediateFeedrateInCorners = preferences.BooleanPreference().getFromValue( 'Use Intermediate Feedrate in Corners', True )
		self.archive.append( self.useIntermediateFeedrateInCorners )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Fillet'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.fillet.html' )
示例#7
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.activateSpeed = preferences.BooleanPreference().getFromValue(
         'Activate Speed:', True)
     self.archive.append(self.activateSpeed)
     self.bridgeFeedrateMultiplier = preferences.FloatPreference(
     ).getFromValue('Bridge Feedrate Multiplier (ratio):', 1.0)
     self.archive.append(self.bridgeFeedrateMultiplier)
     self.extrusionDiameterOverThickness = preferences.FloatPreference(
     ).getFromValue('Extrusion Diameter over Thickness (ratio):', 1.25)
     self.archive.append(self.extrusionDiameterOverThickness)
     self.feedratePerSecond = preferences.FloatPreference().getFromValue(
         'Feedrate (mm/s):', 16.0)
     self.archive.append(self.feedratePerSecond)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Speeded', '')
     self.archive.append(self.fileNameInput)
     flowrateRadio = []
     self.flowrateChoiceLabel = preferences.LabelDisplay().getFromName(
         'Flowrate Choice: ')
     self.archive.append(self.flowrateChoiceLabel)
     self.flowrateDoNotAddFlowratePreference = preferences.Radio(
     ).getFromRadio('Do Not Add Flowrate', flowrateRadio, False)
     self.archive.append(self.flowrateDoNotAddFlowratePreference)
     self.flowrateMetricPreference = preferences.Radio().getFromRadio(
         'Metric', flowrateRadio, False)
     self.archive.append(self.flowrateMetricPreference)
     self.flowratePWMPreference = preferences.Radio().getFromRadio(
         'PWM Setting', flowrateRadio, True)
     self.archive.append(self.flowratePWMPreference)
     self.flowratePWMSetting = preferences.FloatPreference().getFromValue(
         'Flowrate PWM Setting (if PWM Setting is Chosen):', 210.0)
     self.archive.append(self.flowratePWMSetting)
     self.orbitalFeedrateOverOperatingFeedrate = preferences.FloatPreference(
     ).getFromValue('Orbital Feedrate over Operating Feedrate (ratio):',
                    0.5)
     self.archive.append(self.orbitalFeedrateOverOperatingFeedrate)
     self.perimeterFeedrateOverOperatingFeedrate = preferences.FloatPreference(
     ).getFromValue('Perimeter Feedrate over Operating Feedrate (ratio):',
                    1.0)
     self.archive.append(self.perimeterFeedrateOverOperatingFeedrate)
     self.perimeterFlowrateOverOperatingFlowrate = preferences.FloatPreference(
     ).getFromValue('Perimeter Flowrate over Operating Flowrate (ratio):',
                    1.0)
     self.archive.append(self.perimeterFlowrateOverOperatingFlowrate)
     self.supportFlowrateOverOperatingFlowrate = preferences.FloatPreference(
     ).getFromValue('Support Flowrate over Operating Flowrate (ratio):',
                    1.0)
     self.archive.append(self.supportFlowrateOverOperatingFlowrate)
     self.travelFeedratePerSecond = preferences.FloatPreference(
     ).getFromValue('Travel Feedrate (mm/s):', 30.0)
     self.archive.append(self.travelFeedratePerSecond)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Speed'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.speed.html')
示例#8
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.addFeedrateEvenWhenUnchanging = preferences.BooleanPreference().getFromValue( 'Add Feedrate Even When Unchanging', True )
		self.archive.append( self.addFeedrateEvenWhenUnchanging )
		self.addSpaceBetweenWords = preferences.BooleanPreference().getFromValue( 'Add Space Between Words', True )
		self.archive.append( self.addSpaceBetweenWords )
		self.addZEvenWhenUnchanging = preferences.BooleanPreference().getFromValue( 'Add Z Even When Unchanging', True )
		self.archive.append( self.addZEvenWhenUnchanging )
		self.fileNameInput = preferences.Filename().getFromFilename( [ ( 'Gcode text files', '*.gcode' ) ], 'Open File to be Converted to Gcode Step', '' )
		self.archive.append( self.fileNameInput )
		self.feedrateStepLength = preferences.FloatPreference().getFromValue( 'Feedrate Step Length (millimeters/second)', 0.1 )
		self.archive.append( self.feedrateStepLength )
		self.radiusStepLength = preferences.FloatPreference().getFromValue( 'Radius Step Length (millimeters)', 0.1 )
		self.archive.append( self.radiusStepLength )
		self.xStepLength = preferences.FloatPreference().getFromValue( 'X Step Length (millimeters)', 0.1 )
		self.archive.append( self.xStepLength )
		self.yStepLength = preferences.FloatPreference().getFromValue( 'Y Step Length (millimeters)', 0.1 )
		self.archive.append( self.yStepLength )
		self.zStepLength = preferences.FloatPreference().getFromValue( 'Z Step Length (millimeters)', 0.01 )
		self.archive.append( self.zStepLength )
		self.xOffset = preferences.FloatPreference().getFromValue( 'X Offset (millimeters)', 0.0 )
		self.archive.append( self.xOffset )
		self.yOffset = preferences.FloatPreference().getFromValue( 'Y Offset (millimeters)', 0.0 )
		self.archive.append( self.yOffset )
		self.zOffset = preferences.FloatPreference().getFromValue( 'Z Offset (millimeters)', 0.0 )
		self.archive.append( self.zOffset )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Convert to Gcode Step'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.export_plugins.gcode_step.html' )
示例#9
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.activateOozebane = preferences.BooleanPreference().getFromValue( 'Activate Oozebane', False )
		self.archive.append( self.activateOozebane )
		self.afterStartupDistance = preferences.FloatPreference().getFromValue( 'After Startup Distance (millimeters):', 1.2 )
		self.archive.append( self.afterStartupDistance )
		self.earlyShutdownDistance = preferences.FloatPreference().getFromValue( 'Early Shutdown Distance (millimeters):', 1.2 )
		self.archive.append( self.earlyShutdownDistance )
		self.earlyStartupDistanceConstant = preferences.FloatPreference().getFromValue( 'Early Startup Distance Constant (millimeters):', 20.0 )
		self.archive.append( self.earlyStartupDistanceConstant )
		self.earlyStartupMaximumDistance = preferences.FloatPreference().getFromValue( 'Early Startup Maximum Distance (millimeters):', 1.2 )
		self.archive.append( self.earlyStartupMaximumDistance )
		self.firstEarlyStartupDistance = preferences.FloatPreference().getFromValue( 'First Early Startup Distance (millimeters):', 25.0 )
		self.archive.append( self.firstEarlyStartupDistance )
		self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Oozebaned', '' )
		self.archive.append( self.fileNameInput )
		self.minimumDistanceForEarlyStartup = preferences.FloatPreference().getFromValue( 'Minimum Distance for Early Startup (millimeters):', 0.0 )
		self.archive.append( self.minimumDistanceForEarlyStartup )
		self.minimumDistanceForEarlyShutdown = preferences.FloatPreference().getFromValue( 'Minimum Distance for Early Shutdown (millimeters):', 0.0 )
		self.archive.append( self.minimumDistanceForEarlyShutdown )
		self.slowdownStartupSteps = preferences.IntPreference().getFromValue( 'Slowdown Startup Steps (positive integer):', 3 )
		self.archive.append( self.slowdownStartupSteps )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Oozebane'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.oozebane.html' )
示例#10
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.activateWipe = preferences.BooleanPreference().getFromValue(
         'Activate Wipe', False)
     self.archive.append(self.activateWipe)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Wiped', '')
     self.archive.append(self.fileNameInput)
     self.locationArrivalX = preferences.FloatPreference().getFromValue(
         'Location Arrival X (mm):', -70.0)
     self.archive.append(self.locationArrivalX)
     self.locationArrivalY = preferences.FloatPreference().getFromValue(
         'Location Arrival Y (mm):', -50.0)
     self.archive.append(self.locationArrivalY)
     self.locationArrivalZ = preferences.FloatPreference().getFromValue(
         'Location Arrival Z (mm):', 50.0)
     self.archive.append(self.locationArrivalZ)
     self.locationDepartureX = preferences.FloatPreference().getFromValue(
         'Location Departure X (mm):', -70.0)
     self.archive.append(self.locationDepartureX)
     self.locationDepartureY = preferences.FloatPreference().getFromValue(
         'Location Departure Y (mm):', -40.0)
     self.archive.append(self.locationDepartureY)
     self.locationDepartureZ = preferences.FloatPreference().getFromValue(
         'Location Departure Z (mm):', 50.0)
     self.archive.append(self.locationDepartureZ)
     self.locationWipeX = preferences.FloatPreference().getFromValue(
         'Location Wipe X (mm):', -70.0)
     self.archive.append(self.locationWipeX)
     self.locationWipeY = preferences.FloatPreference().getFromValue(
         'Location Wipe Y (mm):', -70.0)
     self.archive.append(self.locationWipeY)
     self.locationWipeZ = preferences.FloatPreference().getFromValue(
         'Location Wipe Z (mm):', 50.0)
     self.archive.append(self.locationWipeZ)
     self.wipePeriod = preferences.IntPreference().getFromValue(
         'Wipe Period (layers):', 3)
     self.archive.append(self.wipePeriod)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Wipe'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.wipe.html')
示例#11
0
文件: hop.py 项目: kiram9/ReplicatorG
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.activateHop = preferences.BooleanPreference().getFromValue(
         'Activate Hop', False)
     self.archive.append(self.activateHop)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Hopped', '')
     self.archive.append(self.fileNameInput)
     self.hopOverLayerThickness = preferences.FloatPreference(
     ).getFromValue('Hop Over Layer Thickness (ratio):', 1.0)
     self.archive.append(self.hopOverLayerThickness)
     self.minimumHopAngle = preferences.FloatPreference().getFromValue(
         'Minimum Hop Angle (degrees):', 30.0)
     self.archive.append(self.minimumHopAngle)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Hop'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.hop.html')
示例#12
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.activateUnpause = preferences.BooleanPreference().getFromValue(
         'Activate Unpause', False)
     self.archive.append(self.activateUnpause)
     self.delay = preferences.FloatPreference().getFromValue(
         'Delay (milliseconds):', 28.0)
     self.archive.append(self.delay)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getGNUTranslatorGcodeFileTypeTuples(),
         'Open File to be Unpaused', '')
     self.archive.append(self.fileNameInput)
     self.maximumSpeed = preferences.FloatPreference().getFromValue(
         'Maximum Speed (ratio):', 1.5)
     self.archive.append(self.maximumSpeed)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Unpause'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.unpause.html')
示例#13
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.activateClip = preferences.BooleanPreference().getFromValue( 'Activate Clip', True )
		self.archive.append( self.activateClip )
		self.clipOverExtrusionWidth = preferences.FloatPreference().getFromValue( 'Clip Over Extrusion Width (ratio):', 0.15 )
		self.archive.append( self.clipOverExtrusionWidth )
		self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Clipped', '' )
		self.archive.append( self.fileNameInput )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Clip'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.clip.html' )
示例#14
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.activateVectorwrite = preferences.BooleanPreference().getFromValue( 'Activate Vectorwrite', False )
		self.archive.append( self.activateVectorwrite )
		self.fileNameInput = preferences.Filename().getFromFilename( [ ( 'Gcode text files', '*.gcode' ) ], 'Open File to Write Vector Graphics for', '' )
		self.archive.append( self.fileNameInput )
		self.minimumNumberLayersMultipleFiles = preferences.IntPreference().getFromValue( 'Minimum Number of Layers for Multiple Files (integer):', 10 )
		self.archive.append( self.minimumNumberLayersMultipleFiles )
		self.pixelsWidthExtrusion = preferences.FloatPreference().getFromValue( 'Pixels over Extrusion Width (ratio):', 5.0 )
		self.archive.append( self.pixelsWidthExtrusion )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Write Vector Graphics'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.analyze_plugins.vectorwrite.html' )
示例#15
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.activateTower = preferences.BooleanPreference().getFromValue( 'Activate Tower', True )
		self.archive.append( self.activateTower )
		self.extruderPossibleCollisionConeAngle = preferences.FloatPreference().getFromValue( 'Extruder Possible Collision Cone Angle (degrees):', 60.0 )
		self.archive.append( self.extruderPossibleCollisionConeAngle )
		self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Towered', '' )
		self.archive.append( self.fileNameInput )
		self.maximumTowerHeight = preferences.IntPreference().getFromValue( 'Maximum Tower Height (layers):', 0 )
		self.archive.append( self.maximumTowerHeight )
		self.towerStartLayer = preferences.IntPreference().getFromValue( 'Tower Start Layer (integer):', 1 )
		self.archive.append( self.towerStartLayer )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Tower'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.tower.html' )
示例#16
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		#Set the default preferences.
		self.archive = []
		self.activateCool = preferences.BooleanPreference().getFromValue( 'Activate Cool', True )
		self.archive.append( self.activateCool )
		self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Cooled', '' )
		self.archive.append( self.fileNameInput )
		self.minimumLayerTime = preferences.FloatPreference().getFromValue( 'Minimum Layer Time (seconds):', 60.0 )
		self.archive.append( self.minimumLayerTime )
		self.turnFanOnAtBeginning = preferences.BooleanPreference().getFromValue( 'Turn Fan On at Beginning', True )
		self.archive.append( self.turnFanOnAtBeginning )
		self.turnFanOffAtEnding = preferences.BooleanPreference().getFromValue( 'Turn Fan Off at Ending', True )
		self.archive.append( self.turnFanOffAtEnding )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Cool'
		self.saveTitle = 'Save Preferences'
		preferences.setHelpPreferencesFileNameTitleWindowPosition( self, 'skeinforge_tools.cool.html' )
示例#17
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.extrusionWidthOverThickness = preferences.FloatPreference(
     ).getFromValue('Extrusion Width over Thickness (ratio):', 1.5)
     self.archive.append(self.extrusionWidthOverThickness)
     self.fileNameInput = preferences.Filename().getFromFilename(
         interpret.getTranslatorFileTypeTuples(), 'Open File to be Carved',
         '')
     self.archive.append(self.fileNameInput)
     self.importCoarseness = preferences.FloatPreference().getFromValue(
         'Import Coarseness (ratio):', 1.0)
     self.archive.append(self.importCoarseness)
     self.meshTypeLabel = preferences.LabelDisplay().getFromName(
         'Mesh Type: ')
     self.archive.append(self.meshTypeLabel)
     importRadio = []
     self.correctMesh = preferences.Radio().getFromRadio(
         'Correct Mesh', importRadio, True)
     self.archive.append(self.correctMesh)
     self.unprovenMesh = preferences.Radio().getFromRadio(
         'Unproven Mesh', importRadio, False)
     self.archive.append(self.unprovenMesh)
     self.infillBridgeThicknessOverLayerThickness = preferences.FloatPreference(
     ).getFromValue('Infill Bridge Thickness over Layer Thickness (ratio):',
                    1.0)
     self.archive.append(self.infillBridgeThicknessOverLayerThickness)
     self.infillBridgeWidthOverExtrusionWidth = preferences.FloatPreference(
     ).getFromValue('Infill Bridge Width over Extrusion Width (ratio):',
                    1.0)
     self.archive.append(self.infillBridgeWidthOverExtrusionWidth)
     self.infillDirectionBridge = preferences.BooleanPreference(
     ).getFromValue('Infill in Direction of Bridges', True)
     self.archive.append(self.infillDirectionBridge)
     self.layerThickness = preferences.FloatPreference().getFromValue(
         'Layer Thickness (mm):', 0.4)
     self.archive.append(self.layerThickness)
     self.layerThicknessOverPrecision = preferences.FloatPreference(
     ).getFromValue('Layer Thickness over Precision (ratio):', 10.0)
     self.archive.append(self.layerThicknessOverPrecision)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Carve'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.carve.html')
示例#18
0
 def __init__(self):
     "Set the default preferences, execute title & preferences fileName."
     #Set the default preferences.
     self.archive = []
     self.fileExtension = preferences.StringPreference().getFromValue(
         'File Extension:', 'bin')
     self.archive.append(self.fileExtension)
     self.fileNameInput = preferences.Filename().getFromFilename(
         [('Gcode text files', '*.gcode')],
         'Open File to be Converted to Binary 16 Byte', '')
     self.archive.append(self.fileNameInput)
     self.feedrateStepLength = preferences.FloatPreference().getFromValue(
         'Feedrate Step Length (millimeters/second)', 0.1)
     self.archive.append(self.feedrateStepLength)
     self.xStepLength = preferences.FloatPreference().getFromValue(
         'X Step Length (millimeters)', 0.1)
     self.archive.append(self.xStepLength)
     self.yStepLength = preferences.FloatPreference().getFromValue(
         'Y Step Length (millimeters)', 0.1)
     self.archive.append(self.yStepLength)
     self.zStepLength = preferences.FloatPreference().getFromValue(
         'Z Step Length (millimeters)', 0.01)
     self.archive.append(self.zStepLength)
     self.xOffset = preferences.FloatPreference().getFromValue(
         'X Offset (millimeters)', 0.0)
     self.archive.append(self.xOffset)
     self.yOffset = preferences.FloatPreference().getFromValue(
         'Y Offset (millimeters)', 0.0)
     self.archive.append(self.yOffset)
     self.zOffset = preferences.FloatPreference().getFromValue(
         'Z Offset (millimeters)', 0.0)
     self.archive.append(self.zOffset)
     #Create the archive, title of the execute button, title of the dialog & preferences fileName.
     self.executeTitle = 'Convert to Binary 16 Byte'
     self.saveTitle = 'Save Preferences'
     preferences.setHelpPreferencesFileNameTitleWindowPosition(
         self, 'skeinforge_tools.export_plugins.binary_16_byte.html')
示例#19
0
	def __init__( self ):
		"Set the default preferences, execute title & preferences fileName."
		materialName = material.getSelectedMaterial()
		#Set the default preferences.
		self.archive = []
		self.activateRaft = preferences.BooleanPreference().getFromValue( 'Activate Raft:', True )
		self.archive.append( self.activateRaft )
		self.addRaftElevateNozzleOrbitSetAltitude = preferences.BooleanPreference().getFromValue( 'Add Raft, Elevate Nozzle, Orbit and Set Altitude:', True )
		self.archive.append( self.addRaftElevateNozzleOrbitSetAltitude )
		self.baseInfillDensity = preferences.FloatPreference().getFromValue( 'Base Infill Density (ratio):', 0.5 )
		self.archive.append( self.baseInfillDensity )
		self.baseLayerThicknessOverLayerThickness = preferences.FloatPreference().getFromValue( 'Base Layer Thickness over Layer Thickness:', 2.0 )
		self.archive.append( self.baseLayerThicknessOverLayerThickness )
		self.baseLayers = preferences.IntPreference().getFromValue( 'Base Layers (integer):', 1 )
		self.archive.append( self.baseLayers )
		self.baseNozzleLiftOverHalfBaseLayerThickness = preferences.FloatPreference().getFromValue( 'Base Nozzle Lift over Half Base Layer Thickness (ratio):', 0.75 )
		self.archive.append( self.baseNozzleLiftOverHalfBaseLayerThickness )
		self.bottomAltitude = preferences.FloatPreference().getFromValue( 'Bottom Altitude:', 0.0 )
		self.archive.append( self.bottomAltitude )
		self.fileNameInput = preferences.Filename().getFromFilename( interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File to be Rafted', '' )
		self.archive.append( self.fileNameInput )
		self.infillOverhang = preferences.FloatPreference().getFromValue( 'Infill Overhang (ratio):', 0.1 )
		self.archive.append( self.infillOverhang )
		self.interfaceInfillDensity = preferences.FloatPreference().getFromValue( 'Interface Infill Density (ratio):', 0.5 )
		self.archive.append( self.interfaceInfillDensity )
		self.interfaceLayerThicknessOverLayerThickness = preferences.FloatPreference().getFromValue( 'Interface Layer Thickness over Layer Thickness:', 1.0 )
		self.archive.append( self.interfaceLayerThicknessOverLayerThickness )
		self.interfaceLayers = preferences.IntPreference().getFromValue( 'Interface Layers (integer):', 2 )
		self.archive.append( self.interfaceLayers )
		self.interfaceNozzleLiftOverHalfInterfaceLayerThickness = preferences.FloatPreference().getFromValue( 'Interface Nozzle Lift over Half Interface Layer Thickness (ratio):', 1.0 )
		self.archive.append( self.interfaceNozzleLiftOverHalfInterfaceLayerThickness )
		self.material = preferences.LabelDisplay().getFromName( 'Material: ' + materialName )
		self.archive.append( self.material )
		self.operatingNozzleLiftOverHalfLayerThickness = preferences.FloatPreference().getFromValue( 'Operating Nozzle Lift over Half Layer Thickness (ratio):', 1.0 )
		self.archive.append( self.operatingNozzleLiftOverHalfLayerThickness )
		self.raftOutsetRadiusOverExtrusionWidth = preferences.FloatPreference().getFromValue( 'Raft Outset Radius over Extrusion Width (ratio):', 15.0 )
		self.archive.append( self.raftOutsetRadiusOverExtrusionWidth )
		self.supportInsetOverPerimeterExtrusionWidth = preferences.FloatPreference().getFromValue( 'Support Inset over Perimeter Extrusion Width (ratio):', 0.0 )
		self.archive.append( self.supportInsetOverPerimeterExtrusionWidth )
		supportRadio = []
		self.supportChoiceLabel = preferences.LabelDisplay().getFromName( 'Support Material Choice: ' )
		self.archive.append( self.supportChoiceLabel )
		self.supportChoiceNoSupportMaterial = preferences.Radio().getFromRadio( 'No Support Material', supportRadio, True )
		self.archive.append( self.supportChoiceNoSupportMaterial )
		self.supportChoiceSupportMateriaEverywhere = preferences.Radio().getFromRadio( 'Support Material Everywhere', supportRadio, False )
		self.archive.append( self.supportChoiceSupportMateriaEverywhere )
		self.supportChoiceSupportMaterialOnExteriorOnly = preferences.Radio().getFromRadio( 'Support Material on Exterior Only', supportRadio, False )
		self.archive.append( self.supportChoiceSupportMaterialOnExteriorOnly )
		self.supportMinimumAngle = preferences.FloatPreference().getFromValue( 'Support Minimum Angle (degrees):', 60.0 )
		self.archive.append( self.supportMinimumAngle )
		self.temperatureChangeBeforeTimeRaft = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before Raft (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeBeforeTimeRaft )
		self.temperatureChangeTimeBeforeFirstLayerOutline = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before First Layer Outline (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeTimeBeforeFirstLayerOutline )
		self.temperatureChangeTimeBeforeNextThreads = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before Next Threads (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeTimeBeforeNextThreads )
		self.temperatureChangeTimeBeforeSupportLayers = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before Support Layers (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeTimeBeforeSupportLayers )
		self.temperatureChangeTimeBeforeSupportedLayers = preferences.FloatPreference().getFromValue( 'Temperature Change Time Before Supported Layers (seconds):', 120.0 )
		self.archive.append( self.temperatureChangeTimeBeforeSupportedLayers )
		self.temperatureRaft = preferences.FloatPreference().getFromValue( 'Temperature of Raft (Celcius):', 200.0 )
		self.archive.append( self.temperatureRaft )
		self.temperatureShapeFirstLayerOutline = preferences.FloatPreference().getFromValue( 'Temperature of Shape First Layer Outline (Celcius):', 220.0 )
		self.archive.append( self.temperatureShapeFirstLayerOutline )
		self.temperatureShapeFirstLayerWithin = preferences.FloatPreference().getFromValue( 'Temperature of Shape First Layer Within (Celcius):', 195.0 )
		self.archive.append( self.temperatureShapeFirstLayerWithin )
		self.temperatureShapeNextLayers = preferences.FloatPreference().getFromValue( 'Temperature of Shape Next Layers (Celcius):', 230.0 )
		self.archive.append( self.temperatureShapeNextLayers )
		self.temperatureShapeSupportLayers = preferences.FloatPreference().getFromValue( 'Temperature of Support Layers (Celcius):', 200.0 )
		self.archive.append( self.temperatureShapeSupportLayers )
		self.temperatureShapeSupportedLayers = preferences.FloatPreference().getFromValue( 'Temperature of Supported Layers (Celcius):', 230.0 )
		self.archive.append( self.temperatureShapeSupportedLayers )
		self.windowPositionRaftPreferences = preferences.WindowPosition().getFromValue( 'windowPositionRaft Preferences', '0+0' )
		self.archive.append( self.windowPositionRaftPreferences )
		#Create the archive, title of the execute button, title of the dialog & preferences fileName.
		self.executeTitle = 'Raft'
		self.fileNamePreferences = preferences.getPreferencesFilePath( 'raft_' + materialName + '.csv' )
		self.fileNameHelp = 'skeinforge_tools.raft.html'
		self.saveTitle = 'Save Preferences'
		self.title = 'Raft Preferences'