def __init__(self): "Set the default preferences, execute title & preferences filename." #Set the default preferences. self.stretchFromDistanceOverExtrusionWidth = preferences.FloatPreference( ).getFromValue('Stretch From Distance Over Extrusion Width (ratio):', 2.0) self.stretchOverHalfExtrusionWidth = preferences.FloatPreference( ).getFromValue('Maximum Stretch Over Half Extrusion Width (ratio):', 0.3) self.travelOverExtrusionStretch = preferences.FloatPreference( ).getFromValue('Travel Stretch Over Extrusion Stretch (ratio):', 0.2) directoryRadio = [] self.directoryPreference = preferences.RadioLabel().getFromRadioLabel( 'Stretch All Unmodified Files in a Directory', 'File or Directory Choice:', directoryRadio, False) self.filePreference = preferences.Radio().getFromRadio( 'Stretch File', directoryRadio, True) self.filenameInput = preferences.Filename().getFromFilename( [('GNU Triangulated Surface text files', '*.gts'), ('Gcode text files', '*.gcode')], 'Open File to be Stretched', '') #Create the archive, title of the execute button, title of the dialog & preferences filename. self.archive = [ self.stretchFromDistanceOverExtrusionWidth, self.stretchOverHalfExtrusionWidth, self.travelOverExtrusionStretch, self.directoryPreference, self.filePreference, self.filenameInput ] self.executeTitle = 'Stretch' # self.filename = getPreferencesFilePath( 'stretch.csv' ) self.filenamePreferences = 'stretch.csv' self.filenameHelp = 'stretch.html' self.title = 'Stretch Preferences'
def __init__(self): "Set the default preferences, execute title & preferences filename." #Set the default preferences. self.extruderPossibleCollisionConeAngle = preferences.FloatPreference( ).getFromValue('Extruder Possible Collision Cone Angle (degrees):', 60.0) self.maximumTowerHeight = preferences.IntPreference().getFromValue( 'Maximum Tower Height (layers):', 0) self.towerStartLayer = preferences.IntPreference().getFromValue( 'Tower Start Layer (integer):', 3) directoryRadio = [] self.directoryPreference = preferences.RadioLabel().getFromRadioLabel( 'Tower All Unmodified Files in a Directory', 'File or Directory Choice:', directoryRadio, False) self.filePreference = preferences.Radio().getFromRadio( 'Tower File', directoryRadio, True) self.filenameInput = preferences.Filename().getFromFilename( [('GNU Triangulated Surface text files', '*.gts'), ('Gcode text files', '*.gcode')], 'Open File to be Towered', '') #Create the archive, title of the execute button, title of the dialog & preferences filename. self.archive = [ self.extruderPossibleCollisionConeAngle, self.maximumTowerHeight, self.towerStartLayer, self.directoryPreference, self.filePreference, self.filenameInput ] self.executeTitle = 'Tower' # self.filename = getPreferencesFilePath( 'tower.csv' ) self.filenamePreferences = 'tower.csv' self.filenameHelp = 'tower.html' self.title = 'Tower Preferences'
def __init__(self): "Set the default preferences, execute title & preferences filename." #Set the default preferences. self.comb = preferences.BooleanPreference().getFromValue( 'Comb Hair:', True) self.writeSVG = preferences.BooleanPreference().getFromValue( 'Write Scalable Vector Graphics:', True) directoryRadio = [] self.directoryPreference = preferences.RadioLabel().getFromRadioLabel( 'Comb All Unmodified Files in a Directory', 'File or Directory Choice:', directoryRadio, False) self.filePreference = preferences.Radio().getFromRadio( 'Comb File', directoryRadio, True) self.filenameInput = preferences.Filename().getFromFilename( [('GNU Triangulated Surface text files', '*.gts'), ('Gcode text files', '*.gcode')], 'Open File to be Combed', '') #Create the archive, title of the execute button, title of the dialog & preferences filename. self.archive = [ self.comb, self.writeSVG, self.directoryPreference, self.filePreference, self.filenameInput ] self.executeTitle = 'Comb' # self.filename = getPreferencesFilePath( 'comb.csv' ) self.filenamePreferences = 'comb.csv' self.filenameHelp = 'comb.html' self.title = 'Comb Preferences'
def __init__( self ): "Set the default preferences, execute title & preferences filename." #Set the default preferences. self.pixelsWidthExtrusion = preferences.FloatPreference().getFromValue( 'Pixels for the Width of the Extrusion (ratio):', 10.0 ) self.writeSkeinforgeSVG = preferences.BooleanPreference().getFromValue( 'Write Scalable Vector Graphics for Skeinforge Chain:', True ) directoryRadio = [] self.directoryPreference = preferences.RadioLabel().getFromRadioLabel( 'Write Vector Graphics for All Unmodified Files in a Directory', 'File or Directory Choice:', directoryRadio, False ) self.filePreference = preferences.Radio().getFromRadio( 'Write Vector Graphics File', directoryRadio, True ) self.filenameInput = preferences.Filename().getFromFilename( [ ( 'Gcode text files', '*.gcode' ) ], 'Open File to Write Vector Graphics for', '' ) #Create the archive, title of the execute button, title of the dialog & preferences filename. self.archive = [ self.pixelsWidthExtrusion, self.writeSkeinforgeSVG, self.directoryPreference, self.filePreference, self.filenameInput ] self.executeTitle = 'Write Vector Graphics' self.filenamePreferences = 'vectorwrite.csv' self.filenameHelp = 'vectorwrite.html' self.title = 'Vectorwrite Preferences'
def __init__(self): "Set the default preferences, execute title & preferences filename." #Set the default preferences. self.diaphragmPeriod = preferences.IntPreference().getFromValue( 'Diaphragm Period (layers):', 29) self.diaphragmThickness = preferences.IntPreference().getFromValue( 'Diaphragm Thickness (layers):', 3) self.extraShellsBase = preferences.IntPreference().getFromValue( 'Extra Shells on Base (layers):', 0) self.extraShellsSparseLayer = preferences.IntPreference().getFromValue( 'Extra Shells on Sparse Layer (layers):', 1) self.feedratePerSecond = preferences.FloatPreference().getFromValue( 'Feedrate (mm/s):', 16.0) self.filenameInput = preferences.Filename().getFromFilename( [('GNU Triangulated Surface text files', '*.gts'), ('Gcode text files', '*.gcode')], 'Open File to be Filled', '') self.fillBeginRotation = preferences.FloatPreference().getFromValue( 'Fill Begin Rotation (degrees):', 45.0) self.fillDensity = preferences.FloatPreference().getFromValue( 'Fill Density (ratio):', 0.5) self.fillOddLayerExtraRotation = preferences.FloatPreference( ).getFromValue('Fill Odd Layer Extra Rotation (degrees):', 90.0) self.infillPerimeterOverlap = preferences.FloatPreference( ).getFromValue('Infill Perimeter Overlap (ratio):', 0.5) self.solidSurfaceThickness = preferences.IntPreference().getFromValue( 'Solid Surface Thickness (layers):', 3) directoryRadio = [] self.directoryPreference = preferences.RadioLabel().getFromRadioLabel( 'Fill All Unmodified Files in a Directory', 'File or Directory Choice:', directoryRadio, False) self.filePreference = preferences.Radio().getFromRadio( 'Fill File', directoryRadio, True) #Create the archive, title of the execute button, title of the dialog & preferences filename. self.archive = [ self.diaphragmPeriod, self.diaphragmThickness, self.extraShellsBase, self.extraShellsSparseLayer, self.feedratePerSecond, self.filenameInput, self.fillBeginRotation, self.fillDensity, self.fillOddLayerExtraRotation, self.infillPerimeterOverlap, self.solidSurfaceThickness, self.directoryPreference, self.filePreference ] self.executeTitle = 'Fill' # self.filename = getPreferencesFilePath( 'fill.csv' ) self.filenamePreferences = 'fill.csv' self.filenameHelp = 'fill.html' self.title = 'Fill Preferences'
def __init__(self): "Set the default preferences, execute title & preferences filename." #Set the default preferences. filletRadio = [] self.arcPoint = preferences.RadioLabel().getFromRadioLabel( 'Arc Point', 'Fillet Procedure Choice:', filletRadio, False) self.arcRadius = preferences.Radio().getFromRadio( 'Arc Radius', filletRadio, False) self.arcSegment = preferences.Radio().getFromRadio( 'Arc Segment', filletRadio, False) self.bevel = preferences.Radio().getFromRadio('Bevel', filletRadio, True) self.doNotFillet = preferences.Radio().getFromRadio( 'Do Not Fillet', filletRadio, False) self.filletRadiusOverHalfExtrusionWidth = preferences.FloatPreference( ).getFromValue('Fillet Radius Over Half Extrusion Width (ratio):', 0.7) directoryRadio = [] self.directoryPreference = preferences.RadioLabel().getFromRadioLabel( 'Fillet All Unmodified Files in a Directory', 'File or Directory Choice:', directoryRadio, False) self.filePreference = preferences.Radio().getFromRadio( 'Fillet File', directoryRadio, True) self.filenameInput = preferences.Filename().getFromFilename( [('GNU Triangulated Surface text files', '*.gts'), ('Gcode text files', '*.gcode')], 'Open File to be Filleted', '') #Create the archive, title of the execute button, title of the dialog & preferences filename. self.archive = [ self.arcPoint, self.arcRadius, self.arcSegment, self.bevel, self.doNotFillet, self.filletRadiusOverHalfExtrusionWidth, self.directoryPreference, self.filePreference, self.filenameInput ] self.executeTitle = 'Fillet' # self.filename = getPreferencesFilePath( 'fillet.csv' ) self.filenamePreferences = 'fillet.csv' self.filenameHelp = 'fillet.html' self.title = 'Fillet Preferences'
def __init__( self ): "Set the default preferences, execute title & preferences filename." #Set the default preferences. self.extrusionDiameter = preferences.FloatPreference().getFromValue( 'Extrusion Diameter (mm):', 0.6 ) self.extrusionFillDensity = preferences.FloatPreference().getFromValue( 'Extrusion Density (ratio):', 0.82 ) self.extrusionWidthOverThickness = preferences.FloatPreference().getFromValue( 'Extrusion Width Over Thickness (ratio):', 1.5 ) self.filenameInput = preferences.Filename().getFromFilename( [ ( 'GNU Triangulated Surface files', '*.gts' ) ], 'Open File to be Sliced', '' ) self.importCoarseness = preferences.FloatPreference().getFromValue( 'Import Coarseness (ratio):', 1.0 ) importRadio = [] self.correct = preferences.RadioLabel().getFromRadioLabel( 'Correct Mesh', 'Mesh Type:', importRadio, True ) self.unproven = preferences.Radio().getFromRadio( 'Unproven Mesh', importRadio,False ) self.importTinyDetails = preferences.BooleanPreference().getFromValue( 'Import Tiny Details:', True ) self.infillBridgeWidthOverThickness = preferences.FloatPreference().getFromValue( 'Infill Bridge Width Over Thickness (ratio):', 1.0 ) self.infillDirectionBridge = preferences.BooleanPreference().getFromValue( 'Infill in Direction of Bridges', True ) directoryRadio = [] self.directoryPreference = preferences.RadioLabel().getFromRadioLabel( 'Slice All GNU Triangulated Surface Files in a Directory', 'File or Directory:', directoryRadio, False ) self.filePreference = preferences.Radio().getFromRadio( 'Slice File', directoryRadio, True ) #Create the archive, title of the execute button, title of the dialog & preferences filename. self.archive = [ self.extrusionDiameter, self.extrusionFillDensity, self.extrusionWidthOverThickness, self.filenameInput, self.importCoarseness, self.correct, self.unproven, self.importTinyDetails, self.infillBridgeWidthOverThickness, self.infillDirectionBridge, self.directoryPreference, self.filePreference ] self.executeTitle = 'Slice' # self.filename = getPreferencesFilePath( 'slice.csv' ) self.filenamePreferences = 'slice.csv' self.filenameHelp = 'slice.html' self.title = 'Slice Preferences'