chiark / gitweb /
Turn all classes into new style classes, this speeds up skeinforge a tiny bit.
authordaid303 <daid303@gmail.com>
Fri, 7 Dec 2012 17:58:26 +0000 (18:58 +0100)
committerdaid303 <daid303@gmail.com>
Fri, 7 Dec 2012 17:58:26 +0000 (18:58 +0100)
131 files changed:
Cura/cura_sf/fabmetheus_utilities/euclidean.py
Cura/cura_sf/fabmetheus_utilities/fabmetheus_tools/fabmetheus_interpret.py
Cura/cura_sf/fabmetheus_utilities/fabmetheus_tools/interpret_plugins/slc.py
Cura/cura_sf/fabmetheus_utilities/fabmetheus_tools/interpret_plugins/svg.py
Cura/cura_sf/fabmetheus_utilities/gcodec.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/_drill.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/_svg.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/circle.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/concatenate.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/extrude.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/gear.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/grid.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/heightmap.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/lathe.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/line.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/linear_bearing_cage.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/lineation.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/mechaslab.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/peg.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/polygon.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/shaft.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/solid.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/sponge_slice.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/square.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/teardrop.py
Cura/cura_sf/fabmetheus_utilities/geometry/creation/text.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_tools/dictionary.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_tools/face.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_tools/path.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/boolean_geometry.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/evaluate.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/evaluate_elements/creation.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/evaluate_elements/document.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/evaluate_elements/setting.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/evaluate_enumerables/dictionary_attribute.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/evaluate_enumerables/list_attribute.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/evaluate_enumerables/string_attribute.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/evaluate_fundamentals/euclid.py
Cura/cura_sf/fabmetheus_utilities/geometry/geometry_utilities/matrix.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_matrix/_scale.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_matrix/rotate.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_matrix/transform.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_matrix/translate.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_meta/_array.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_meta/_carve.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_meta/_copy.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_meta/disjoin.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_meta/import.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_meta/write.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_paths/bevel.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_paths/outline.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_paths/overhang.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_paths/round.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_paths/segment.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_paths/wedge.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_shapes/_bottom.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_shapes/_inset.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_shapes/_outset.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_shapes/equation.py
Cura/cura_sf/fabmetheus_utilities/geometry/manipulation_shapes/flip.py
Cura/cura_sf/fabmetheus_utilities/geometry/solids/cube.py
Cura/cura_sf/fabmetheus_utilities/geometry/solids/cylinder.py
Cura/cura_sf/fabmetheus_utilities/geometry/solids/sphere.py
Cura/cura_sf/fabmetheus_utilities/geometry/solids/triangle_mesh.py
Cura/cura_sf/fabmetheus_utilities/geometry/statements/for.py
Cura/cura_sf/fabmetheus_utilities/intercircle.py
Cura/cura_sf/fabmetheus_utilities/settings.py
Cura/cura_sf/fabmetheus_utilities/svg_reader.py
Cura/cura_sf/fabmetheus_utilities/svg_writer.py
Cura/cura_sf/fabmetheus_utilities/xml_simple_reader.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/alteration.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/bottom.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/carve.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/chamber.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/chop.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/cleave.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/clip.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/coil.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/comb.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/cool.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/dimension.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/drill.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/dwindle.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/export.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/export_plugins/gcode_step.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/export_plugins/gcode_time_segment.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/export_plugins/static_plugins/gcode_small.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/feed.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/fill.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/fillet.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/flow.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/home.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/hop.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/inset.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/jitter.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/joris.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/lash.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/lift.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/limit.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/mill.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/multiply.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/oozebane.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/outset.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/preface.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/raft.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/scale.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/skin.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/skirt.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/smooth.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/speed.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/splodge.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/stretch.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/temperature.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/tower.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/unpause.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/whittle.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/widen.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/craft_plugins/wipe.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/meta_plugins/description.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/profile.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/profile_plugins/cutting.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/profile_plugins/extrusion.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/profile_plugins/milling.py
Cura/cura_sf/skeinforge_application/skeinforge_plugins/profile_plugins/winding.py
Cura/cura_sf/skeinforge_application/skeinforge_utilities/skeinforge_analyze.py
Cura/cura_sf/skeinforge_application/skeinforge_utilities/skeinforge_craft.py
Cura/cura_sf/skeinforge_application/skeinforge_utilities/skeinforge_help.py
Cura/cura_sf/skeinforge_application/skeinforge_utilities/skeinforge_meta.py
Cura/cura_sf/skeinforge_application/skeinforge_utilities/skeinforge_polyfile.py
Cura/util/profile.py

index f8c17ae8438e363e9f296634e2a9f70cb4562325..56e7d10235d4a2c63f528aabf49b4008f731fb2f 100644 (file)
@@ -2065,7 +2065,7 @@ def unbuckleBasis( basis, maximumUnbuckling, normal ):
        basis.setToVector3( basis * unbuckling )
 
 
-class DistanceIndex:
+class DistanceIndex(object):
        'A class to hold the distance and the index of the loop.'
        def __init__(self, distance, index):
                'Initialize.'
@@ -2077,7 +2077,7 @@ class DistanceIndex:
                return '%s, %s' % (self.distance, self.index)
 
 
-class Endpoint:
+class Endpoint(object):
        'The endpoint of a segment.'
        def __repr__(self):
                'Get the string representation of this Endpoint.'
@@ -2180,7 +2180,7 @@ class Endpoint:
                return self
 
 
-class LoopLayer:
+class LoopLayer(object):
        'Loops with a z.'
        def __init__(self, z):
                'Initialize.'
@@ -2192,7 +2192,7 @@ class LoopLayer:
                return '%s, %s' % (self.z, self.loops)
 
 
-class NestedRing:
+class NestedRing(object):
        'A nested ring.'
        def __init__(self):
                'Initialize.'
@@ -2345,7 +2345,7 @@ class NestedBand(NestedRing):
                self.infillPaths = getTransferredPaths(paths, self.boundary)
 
 
-class PathZ:
+class PathZ(object):
        'Complex path with a z.'
        def __init__( self, z ):
                self.path = []
@@ -2356,7 +2356,7 @@ class PathZ:
                return '%s, %s' % ( self.z, self.path )
 
 
-class ProjectiveSpace:
+class ProjectiveSpace(object):
        'Class to define a projective space.'
        def __init__( self, basisX = Vector3(1.0, 0.0, 0.0), basisY = Vector3( 0.0, 1.0, 0.0 ), basisZ = Vector3(0.0, 0.0, 1.0) ):
                'Initialize the basis vectors.'
@@ -2466,7 +2466,7 @@ class ProjectiveSpace:
                unbuckleBasis( self.basisY, maximumUnbuckling, normal )
 
 
-class XIntersectionIndex:
+class XIntersectionIndex(object):
        'A class to hold the x intersection position and the index of the loop which intersected.'
        def __init__( self, index, x ):
                'Initialize.'
index 8e6d1762ba69b656af9fcc9b644841bf98bf9ac8..3e2153ecb9affacd533bf77a92e38513412155cc 100644 (file)
@@ -110,7 +110,7 @@ def getWindowAnalyzeFile(fileName):
                print('Open office writer can then be started from the command line with the command "soffice -writer".')
 
 
-class InterpretRepository:
+class InterpretRepository(object):
        "A class to handle the interpret settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index 857ad768ad7c5410a874843735b49e8cbeb4f2c1..32f4b75ec90735bbfeb082dfa128cdd100fa3240 100644 (file)
@@ -54,7 +54,7 @@ def readHeader( file ):
                pass
 
 
-class SampleTableEntry:
+class SampleTableEntry(object):
        "Sample table entry."
        def __init__( self, file ):
                "Read in the sampling table section. It contains a table length (byte) and the table entries."
@@ -68,7 +68,7 @@ class SampleTableEntry:
                return '%s, %s, %s' % ( self.min_z_level, self.layer_thickness, self.beam_comp )
 
 
-class SLCCarving:
+class SLCCarving(object):
        "An slc carving."
        def __init__(self):
                "Add empty lists."
index c88fe063257c452a0429d0b5a4e91d7f619133a1..13d0812dcb5a3236cdb632e8d2f613f3c06acf09 100644 (file)
@@ -33,7 +33,7 @@ def getCarving(fileName=''):
        return carving
 
 
-class SVGCarving:
+class SVGCarving(object):
        'An svg carving.'
        def __init__(self):
                'Add empty lists.'
index f795a5561ae3ef82becc651e4e653d2aa0092a6d..38b357ce54220cc49b5ba85169900545164fa4a9 100644 (file)
@@ -224,7 +224,7 @@ def isThereAFirstWord(firstWord, lines, startIndex):
        return False
 
 
-class BoundingRectangle:
+class BoundingRectangle(object):
        'A class to get the corners of a gcode text.'
        def getFromGcodeLines(self, lines, radius):
                'Parse gcode text and get the minimum and maximum corners.'
@@ -256,7 +256,7 @@ class BoundingRectangle:
                        self.oldLocation = location
 
 
-class DistanceFeedRate:
+class DistanceFeedRate(object):
        'A class to limit the z feed rate and round values.'
        def __init__(self):
                'Initialize.'
index 6af23ece16200c159936854bd9095ae1776bca5d..bb3b286eb6e9a8fb0ae8d357ca8b7d583baeccd0 100644 (file)
@@ -40,7 +40,7 @@ def processElementNode(elementNode):
        solid.processElementNodeByGeometry(elementNode, getGeometryOutput(None, elementNode))
 
 
-class DrillDerivation:
+class DrillDerivation(object):
        "Class to hold drill variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 9a84f14cf771beb9c10f27cd1760924d91e8eaf4..0e26dd5bb9d795e158ca9739ac3d38f4437b10fd 100644 (file)
@@ -50,7 +50,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class SVGDerivation:
+class SVGDerivation(object):
        "Class to hold svg variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 4ef34e2ae9943fa131eb3bc7c410523339f4c510..7439d3811a1c0264691a865294917c7a5a3d9018 100644 (file)
@@ -56,7 +56,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class CircleDerivation:
+class CircleDerivation(object):
        "Class to hold circle variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 3a30716ca357858e226cf9f421bc1212eb5fff83..e082bbac6a6ae93febad7bdeec1f0431c5aa5c17 100644 (file)
@@ -43,7 +43,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class ConcatenateDerivation:
+class ConcatenateDerivation(object):
        'Class to hold concatenate variables.'
        def __init__(self, elementNode):
                'Initialize.'
index 4dc05de3f01d8c35c9fa03d4bf43307f879ad2a0..b94b6d9c96796822e5c857a8b088c74af6af3aed 100644 (file)
@@ -275,7 +275,7 @@ def setOffsetByMultiplier(begin, end, multiplier, offset):
        offset.setToVector3(offset + delta)
 
 
-class ExtrudeDerivation:
+class ExtrudeDerivation(object):
        'Class to hold extrude variables.'
        def __init__(self, elementNode):
                'Initialize.'
@@ -303,7 +303,7 @@ class ExtrudeDerivation:
                insertTwistPortions(self, elementNode)
 
 
-class Interpolation:
+class Interpolation(object):
        'Class to interpolate a path.'
        def __init__(self):
                'Set index.'
@@ -426,7 +426,7 @@ class Interpolation:
                self.endVertex = self.path[ self.interpolationIndex + 1 ]
 
 
-class PortionDirection:
+class PortionDirection(object):
        'Class to hold a portion and direction.'
        def __init__( self, portion ):
                'Initialize.'
index 3e47a66ce17d2e28cf42f0cc97cbcfd2c08e4078..90239646c9ec99d65b325318322d1f6de87b8e42 100644 (file)
@@ -1027,7 +1027,7 @@ def processElementNode(elementNode):
                solid.processElementNodeByGeometry(elementNode, geometryOutput)
 
 
-class GearDerivation:
+class GearDerivation(object):
        "Class to hold gear variables."
        def __init__(self, elementNode):
                'Set defaults.'
index b5915dd247f6f61bbf2458d951b0af85e72407aa..a396b1743f762044df9c22292d349053a392c476 100644 (file)
@@ -146,7 +146,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(elementNode))
 
 
-class GridDerivation:
+class GridDerivation(object):
        'Class to hold grid variables.'
        def __init__(self, elementNode):
                'Set defaults.'
index 6112580b8121c0400dec6f7e69120bc868e0c8d3..a4a4ad06d789871e662452e9c81bbabe803c1960 100644 (file)
@@ -187,7 +187,7 @@ def processElementNode(elementNode):
        solid.processElementNodeByGeometry(elementNode, getGeometryOutput(elementNode))
 
 
-class HeightmapDerivation:
+class HeightmapDerivation(object):
        'Class to hold heightmap variables.'
        def __init__(self, elementNode):
                'Set defaults.'
index fd0169ba7bace40de4ff8e9fe87f8fde9cffaed1..04c14c33196391de2ee9ffc8c725d6c84b5bcabf 100644 (file)
@@ -118,7 +118,7 @@ def processElementNode(elementNode):
        solid.processElementNodeByGeometry(elementNode, getGeometryOutput(None, elementNode))
 
 
-class LatheDerivation:
+class LatheDerivation(object):
        "Class to hold lathe variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 04516831ea3671037d9894213fbdb015a49a98f7..e3753d839736d28d2a62ba3213374277fe0536fb 100644 (file)
@@ -88,7 +88,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class LineDerivation:
+class LineDerivation(object):
        "Class to hold line variables."
        def __init__(self, elementNode):
                'Set defaults.'
index b6516a472717dac4993accbe857d5e18be0b9105..07f5e681cd43597fe597792df119a30c06320970 100644 (file)
@@ -165,7 +165,7 @@ def processElementNode(elementNode):
        solid.processElementNodeByGeometry(elementNode, getGeometryOutput(elementNode))
 
 
-class LinearBearingCageDerivation:
+class LinearBearingCageDerivation(object):
        'Class to hold linear bearing cage variables.'
        def __init__(self, elementNode):
                'Set defaults.'
index 8df2e585bf6d49e0c56006493b884088c749e698..37780e0e092ae9b256bdc5fb0d6b662c22689639 100644 (file)
@@ -222,14 +222,14 @@ def setClosedAttribute(elementNode, revolutions):
        elementNode.attributes['closed'] = str(closedBoolean).lower()
 
 
-class LineationDerivation:
+class LineationDerivation(object):
        'Class to hold lineation variables.'
        def __init__(self, elementNode):
                'Set defaults.'
                self.target = evaluate.getTransformedPathsByKey([], elementNode, 'target')
 
 
-class SideLoop:
+class SideLoop(object):
        'Class to handle loop, side angle and side length.'
        def __init__(self, loop, sideAngle=None, sideLength=None):
                'Initialize.'
@@ -282,7 +282,7 @@ class SideLoop:
                                self.loop.reverse()
 
 
-class Spiral:
+class Spiral(object):
        'Class to add a spiral.'
        def __init__(self, spiral, stepRatio):
                'Initialize.'
index f3f0091d463d85ead912d12ebe4e34c193483cbe..f9c3fdbc67f7085695e266ebfd669c63c7d928e5 100644 (file)
@@ -155,7 +155,7 @@ def processElementNode(elementNode):
        solid.processElementNodeByGeometry(elementNode, getGeometryOutput(elementNode))
 
 
-class CellExistence:
+class CellExistence(object):
        'Class to determine if a cell exists.'
        def __init__(self, columns, rows, value):
                'Initialize.'
@@ -184,7 +184,7 @@ class CellExistence:
                return (columnIndex, rowIndex) in self.existenceSet
 
 
-class HollowPegSocket:
+class HollowPegSocket(object):
        'Class to hold hollow peg socket variables.'
        def __init__(self, center):
                'Initialize.'
@@ -197,7 +197,7 @@ class HollowPegSocket:
                return euclidean.getDictionaryString(self.__dict__)
 
 
-class MechaslabDerivation:
+class MechaslabDerivation(object):
        'Class to hold mechaslab variables.'
        def __init__(self, elementNode):
                'Set defaults.'
index 12a7b15286549705378d5f86c847a30cb5806e2c..02fd1ba2887c8269eb55a2f14c30c2274ace2d34 100644 (file)
@@ -82,7 +82,7 @@ def setTopOverBottomByRadius(derivation, endZ, radius, startZ):
                derivation.topOverBottom = cylinder.getTopOverBottom(math.radians(angleDegrees), endZ, complex(radius, radius), startZ)
 
 
-class PegDerivation:
+class PegDerivation(object):
        'Class to hold peg variables.'
        def __init__(self, elementNode):
                'Set defaults.'
index 13287538451a67a8b5d77b5df027e7942984fc1f..35945aca5163c67bcf543558b5116a445b0462fd 100644 (file)
@@ -48,7 +48,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class PolygonDerivation:
+class PolygonDerivation(object):
        "Class to hold polygon variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 509add0203062f42f51b2ed4fb464148019bf271..2752108a6d0b2dfa90602152213d11e5b7d0ecaf 100644 (file)
@@ -63,7 +63,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class ShaftDerivation:
+class ShaftDerivation(object):
        "Class to hold shaft variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 9d3bb9ad1c7243a44a5f24fa92038b0d1dc85b64..91fea73e60b7a6ed8effa813c3c91fab4b154c07 100644 (file)
@@ -167,7 +167,7 @@ def processTargetByFunctionPair(geometryFunction, pathFunction, target):
        target.getXMLProcessor().convertElementNode(target, geometryOutput)
 
 
-class SolidDerivation:
+class SolidDerivation(object):
        'Class to hold solid variables.'
        def __init__(self, elementNode):
                'Set defaults.'
index 49262416acb569d32c11a4dda1978c7a0d4cd341..7992a3ad237abf5023741da3f3ee41987bedde78 100644 (file)
@@ -77,7 +77,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class SpongeCircle:
+class SpongeCircle(object):
        "Class to hold sponge circle."
        def __init__(self, center, radius=0.0):
                'Initialize.'
@@ -120,7 +120,7 @@ class SpongeCircle:
                self.radius = greatestRadius
 
 
-class SpongeSliceDerivation:
+class SpongeSliceDerivation(object):
        "Class to hold sponge slice variables."
        def __init__(self, elementNode):
                'Initialize.'
index a420296e9a6b430347b5ba608e5a164d8c33e995..dc89d3048458ff142044150ca890f758e56a1c3f 100644 (file)
@@ -64,7 +64,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class SquareDerivation:
+class SquareDerivation(object):
        "Class to hold square variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 914897b44a5c2d86c72389f5b6bb7118cede709b..6379e042b8aa679ee7584f0a1eb682d9e92c10c5 100644 (file)
@@ -93,7 +93,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class TeardropDerivation:
+class TeardropDerivation(object):
        "Class to hold teardrop variables."
        def __init__(self, elementNode):
                'Set defaults.'
index cb0e10b98548921000818af0de780a949a70e3fa..f22e3e8881eb32264547b31a3e44b5abce7b2b82 100644 (file)
@@ -49,7 +49,7 @@ def processElementNode(elementNode):
        path.convertElementNode(elementNode, getGeometryOutput(None, elementNode))
 
 
-class TextDerivation:
+class TextDerivation(object):
        "Class to hold text variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 93ebde4c9895c0cbb83d8a736036a570cd09a05b..5036ad5d9d345483a4ef82bc4c067ddc79516a4e 100644 (file)
@@ -48,7 +48,7 @@ def processElementNode(elementNode):
        evaluate.processArchivable( Dictionary, elementNode)
 
 
-class Dictionary:
+class Dictionary(object):
        'A dictionary object.'
        def __init__(self):
                'Add empty lists.'
index 86c21dc48eb48fd08c3505400ccf5b3b7c264470..3e85fd3be46185612f98c225b3d06229869909d3 100644 (file)
@@ -67,7 +67,7 @@ def processElementNode(elementNode):
        elementNode.parentNode.xmlObject.faces.append(face)
 
 
-class Edge:
+class Edge(object):
        "An edge of a triangle mesh."
        def __init__(self):
                "Set the face indexes to None."
@@ -92,7 +92,7 @@ class Edge:
                return self
 
 
-class Face:
+class Face(object):
        "A face of a triangle mesh."
        def __init__(self):
                "Initialize."
index 92585d6b22c46640090b15da84805e74e6209bba..ea7366c0d6ed338b062e3d968b76ee8e55b57043 100644 (file)
@@ -123,7 +123,7 @@ class Path(dictionary.Dictionary):
                return dictionary.getAllTransformedPaths([], self)
 
 
-class SVGFabricationCarving:
+class SVGFabricationCarving(object):
        'An svg carving.'
        def __init__(self, addLayerTemplate, elementNode):
                'Add empty lists.'
index 67ec68596b2148c228ee890dc11a791b915a7d47..0e64464bf0689e3e03561bbf854e7872c31a69f9 100644 (file)
@@ -67,7 +67,7 @@ def getMinimumZ(geometryObject):
        return min(archivableMinimumZ, geometryMinimumZ)
 
 
-class BooleanGeometry:
+class BooleanGeometry(object):
        'A boolean geometry scene.'
        def __init__(self):
                'Add empty lists.'
index d7ce048c33b9e5b3fd802423b3486b09655ad189..82273ce9e46f78b30233ae051a58851118bcd44f 100644 (file)
@@ -939,7 +939,7 @@ def setLocalAttribute(elementNode):
        elementNode.xmlObject = KeyValue()
 
 
-class BaseFunction:
+class BaseFunction(object):
        'Class to get equation results.'
        def __init__(self, elementNode):
                'Initialize.'
@@ -981,7 +981,7 @@ class ClassFunction(BaseFunction):
                return self.returnValue
 
 
-class ClassObject:
+class ClassObject(object):
        'Class to hold class attributes and functions.'
        def __init__(self, elementNode):
                'Initialize.'
@@ -1010,14 +1010,14 @@ class ClassObject:
                        self.selfDictionary[attributeName] = value
 
 
-class EmptyObject:
+class EmptyObject(object):
        'An empty object.'
        def __init__(self):
                'Do nothing.'
                pass
 
 
-class Evaluator:
+class Evaluator(object):
        'Base evaluator class.'
        def __init__(self, elementNode, word):
                'Set value to none.'
@@ -1790,7 +1790,7 @@ class Function(BaseFunction):
                return self.returnValue
 
 
-class FunctionVariable:
+class FunctionVariable(object):
        'Class to hold class functions and variable set.'
        def __init__(self, elementNode):
                'Initialize.'
@@ -1834,7 +1834,7 @@ class FunctionVariable:
                        self.processStatement(childNode)
 
 
-class KeyValue:
+class KeyValue(object):
        'Class to hold a key value.'
        def __init__(self, key=None, value=None):
                'Get key value.'
@@ -1865,7 +1865,7 @@ class KeyValue:
                return self.getByCharacter('=', line )
 
 
-class ModuleElementNode:
+class ModuleElementNode(object):
        'Class to get the in attribute, the index name and the value name.'
        def __init__( self, elementNode):
                'Initialize.'
index 0ed20e618673ff7c7afc6f4234ae93c18256032a..4385ee6139516e1b40d614705ec646225387f034 100644 (file)
@@ -32,7 +32,7 @@ def _getAccessibleAttribute(attributeName, elementNode):
        return Creation(elementNode, pluginModule).getCreation
 
 
-class Creation:
+class Creation(object):
        'Class to handle a creation.'
        def __init__(self, elementNode, pluginModule):
                'Initialize.'
index 473cfeb67b335d1cc494e76f49415bc5378bd3d4..0bb91a20d215e11c52e9d4ef1322fcfafc996592 100644 (file)
@@ -19,7 +19,7 @@ def _getAccessibleAttribute(attributeName, elementNode):
        return None
 
 
-class Document:
+class Document(object):
        'Class to handle elementNodes in a document.'
        def __init__(self, elementNode):
                'Initialize.'
index a2c37fc141c66f9b5dec1646f93359f12765b956..29ec20a9a6bb0d6171b59e9e9a11590e5cfeef45 100644 (file)
@@ -109,7 +109,7 @@ def getTwistPrecisionRadians(elementNode):
        return math.radians(getTwistPrecision(elementNode))
 
 
-class Setting:
+class Setting(object):
        'Class to get handle elementNodes in a setting.'
        def __init__(self, elementNode):
                'Initialize.'
index b29cd93aa6c78bb92d3014e4e775b97eb824a986..4fc6dfc71a74a90450f9e2ee0cd724c1fd9019a9 100644 (file)
@@ -24,7 +24,7 @@ def _getAccessibleAttribute(attributeName, dictionaryObject):
        return None
 
 
-class DictionaryAttribute:
+class DictionaryAttribute(object):
        'Class to handle a dictionary.'
        def __init__(self, dictionaryObject):
                'Initialize.'
index eca10817da81ea6fa1216d835f44f7fa43c06e92..6813a1973cc2c22cc2a0737e5f648a0938932ca3 100644 (file)
@@ -24,7 +24,7 @@ def _getAccessibleAttribute(attributeName, listObject):
        return None
 
 
-class ListAttribute:
+class ListAttribute(object):
        'Class to handle a list.'
        def __init__(self, listObject):
                'Initialize.'
index 62478a1cae9cd2b8d4d25c240cadecb845c1ff52..54b92582bcbfea7b0db9c1d020cf4773ea8546cd 100644 (file)
@@ -24,7 +24,7 @@ def _getAccessibleAttribute(attributeName, stringObject):
        return None
 
 
-class StringAttribute:
+class StringAttribute(object):
        'Class to handle a string.'
        def __init__(self, stringObject):
                'Initialize.'
index 2f5e20a2203f5f804b5d5f312e71a5da649c46c8..f9db2bae22619ab0764730b9b8404406cb3743b3 100644 (file)
@@ -67,7 +67,7 @@ def getVector3Index(index=0, x=0.0, y=0.0, z=0.0):
        return Vector3Index(index, x, y, z)
 
 
-class NestedVectorTestExample:
+class NestedVectorTestExample(object):
        'Class to test local attribute.'
        def __init__(self, vector3):
                'Get the accessible attribute.'
index 8f87ef0a7e236cb3cacb0a831d0da5ada02c4eae..c124cc6ad6fa2a776d25b5c258557c89b62f2aa6 100644 (file)
@@ -427,7 +427,7 @@ def transformVector3sByMatrix(tetragrid, vector3s):
                transformVector3Blindly(tetragrid, vector3)
 
 
-class Matrix:
+class Matrix(object):
        'A four by four matrix.'
        def __init__(self, tetragrid=None):
                'Add empty lists.'
index 266fdca969472b1d5ae36ccf4c98cce3f4d81594..b57cc5640e805376877df03ffe595566bed86a85 100644 (file)
@@ -58,7 +58,7 @@ def scalePoints(elementNode, points, prefix):
                point.z *= scaleVector3.z
 
 
-class ScaleDerivation:
+class ScaleDerivation(object):
        "Class to hold scale variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 758fb8a3ff06d081e2dd2eb1d773a91aad473fa5..5776d35065c9177443b135ac5477b8468ace1d15 100644 (file)
@@ -55,7 +55,7 @@ def rotatePoints(elementNode, points, prefix):
        matrix.transformVector3sByMatrix(derivation.rotateTetragrid, points)
 
 
-class RotateDerivation:
+class RotateDerivation(object):
        "Class to hold rotate variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
index cf8df5b8dcf64abc858b9818ab49d1ada027555c..0c471f61cbbbf4a8c4e4cbb0213876ad02143ded 100644 (file)
@@ -55,7 +55,7 @@ def transformPoints(elementNode, points, prefix):
        matrix.transformVector3sByMatrix(derivation.transformTetragrid, points)
 
 
-class TransformDerivation:
+class TransformDerivation(object):
        "Class to hold transform variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
index b2375645df1166fc3629ff4dddebce1490ed96ad..115ccea8c533d8c3e4d430baf12b77ceb8502754 100644 (file)
@@ -59,7 +59,7 @@ def translatePoints(elementNode, points, prefix):
                euclidean.translateVector3Path(points, translateVector3)
 
 
-class TranslateDerivation:
+class TranslateDerivation(object):
        "Class to hold translate variables."
        def __init__(self, elementNode):
                'Set defaults.'
index d26144a4407158a65773cc6c493695fac3810edb..7bd48164c453ac9cd4ca5094a961851f95cbeb06 100644 (file)
@@ -111,7 +111,7 @@ def processElementNodeByDerivation(derivation, elementNode):
        elementNode.getXMLProcessor().processElementNode(elementNode)
 
 
-class ArrayDerivation:
+class ArrayDerivation(object):
        "Class to hold array variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 19a0610e2970f163d53f23b9902a8d3649c84e61..c6715cc21c1a1138ea53f2f25e2e08fecc6de773 100644 (file)
@@ -83,7 +83,7 @@ def processElementNodeByDerivation(derivation, elementNode):
                        path.convertElementNode(pathElement, vector3Loops)
 
 
-class CarveDerivation:
+class CarveDerivation(object):
        "Class to hold carve variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 0aa0f1f641f9b98813ce74a1cebe260ca2669713..7c93bdf1c4ac0c1796b2ae9483e66f5c47db1d6c 100644 (file)
@@ -63,7 +63,7 @@ def processElementNodeByDerivation(derivation, elementNode):
        elementNode.getXMLProcessor().convertElementNode(elementNode, geometryOutput)
 
 
-class CopyDerivation:
+class CopyDerivation(object):
        "Class to hold copy variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 4a8f2fe75e69e45a7dc42f1e5942963d94dffeea..4c6fcc32aace82fe290a61038d9a549c6898465b 100644 (file)
@@ -101,7 +101,7 @@ def processElementNodeByDerivation(derivation, elementNode):
        difference.processElementNode(differenceElement)
 
 
-class DisjoinDerivation:
+class DisjoinDerivation(object):
        "Class to hold disjoin variables."
        def __init__(self, elementNode):
                'Set defaults.'
index c04cc6f070bf31c26e8bef69554647b60fda9ea1..3de73c48271cd1fb8e757c6ffd69930a88e93d43 100644 (file)
@@ -81,7 +81,7 @@ def processElementNodeByDerivation(derivation, elementNode):
        evaluate.processArchivable(group.Group, elementNode)
 
 
-class ImportDerivation:
+class ImportDerivation(object):
        "Class to hold import variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 9fed5da2447a6ecfe29a94e57906e153ae8d01dc..9d2d128a47833f7032c4a63633da67ba6b8d50e1 100644 (file)
@@ -81,7 +81,7 @@ def writeXMLObject(absoluteFolderDirectory, derivation, fileNames, target, xmlOb
        archive.writeFileText(absoluteFileName, xmlObject.getFabricationText(derivation.addLayerTemplate))
 
 
-class WriteDerivation:
+class WriteDerivation(object):
        "Class to hold write variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 125f35c6c4b0e8543415115c49bbcc9c97b67d58..a7ebba36e92200e05160a34671cc4a81b0727789 100644 (file)
@@ -61,7 +61,7 @@ def processElementNode(elementNode):
        lineation.processElementNodeByFunction(elementNode, getManipulatedPaths)
 
 
-class BevelDerivation:
+class BevelDerivation(object):
        "Class to hold bevel variables."
        def __init__(self, elementNode, prefix, sideLength):
                'Set defaults.'
index b910f8b2dedaf4daa9ca3b88e11febf303eb42b2..7ee4b3b7ea5a81a4b90a9464afef391b378b1376 100644 (file)
@@ -42,7 +42,7 @@ def processElementNode(elementNode):
        lineation.processElementNodeByFunction(elementNode, getManipulatedPaths)
 
 
-class OutlineDerivation:
+class OutlineDerivation(object):
        "Class to hold outline variables."
        def __init__(self, elementNode, prefix, sideLength):
                'Set defaults.'
index 8a27f4c87b0aba3c187fdf9306b996af68cfdfc5..83f4e7130dda25e7bc8845e92d0cd0dd7615ff80 100644 (file)
@@ -137,7 +137,7 @@ def processElementNode(elementNode):
        lineation.processElementNodeByFunction(elementNode, getManipulatedPaths)
 
 
-class AlongAway:
+class AlongAway(object):
        "Class to derive the path along the point and away from the point."
        def __init__( self, loop, overhangPlaneAngle ):
                "Initialize."
@@ -211,7 +211,7 @@ class AlongAway:
                return self.getIsPointSupportedBySegment( self.pointIndex + 1 )
 
 
-class OverhangClockwise:
+class OverhangClockwise(object):
        "Class to get the intersection up from the point."
        def __init__( self, alongAway ):
                "Initialize."
@@ -269,7 +269,7 @@ class OverhangClockwise:
                self.alongAway.loop[ unsupportedBeginIndex : endIndex ] = supportPoints
 
 
-class OverhangDerivation:
+class OverhangDerivation(object):
        "Class to hold overhang variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
@@ -277,7 +277,7 @@ class OverhangDerivation:
                self.overhangInclinationRadians = math.radians(evaluate.getEvaluatedFloat(0.0, elementNode,  prefix + 'inclination'))
 
 
-class OverhangWiddershinsLeft:
+class OverhangWiddershinsLeft(object):
        "Class to get the intersection from the point down to the left."
        def __init__( self, alongAway ):
                "Initialize."
index fb00985a7630a18f705cdd0de825772eb4254b55..c1ee8fcf3f742ad50fbc02e657695776786e1dde 100644 (file)
@@ -85,7 +85,7 @@ def processElementNode(elementNode):
        lineation.processElementNodeByFunction(elementNode, getManipulatedPaths)
 
 
-class RoundDerivation:
+class RoundDerivation(object):
        "Class to hold round variables."
        def __init__(self, elementNode, prefix, sideLength):
                'Set defaults.'
index dce7a7d06a2322c589fcbed35ab05bd6acc2923f..a0311bb5b45ceb3a97b9c6c6be5927c7222310e9 100644 (file)
@@ -140,7 +140,7 @@ def processElementNode(elementNode):
        lineation.processElementNodeByFunction(elementNode, getManipulatedPaths)
 
 
-class SegmentDerivation:
+class SegmentDerivation(object):
        "Class to hold segment variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
@@ -148,7 +148,7 @@ class SegmentDerivation:
                self.path = evaluate.getPathByPrefix(elementNode, getSegmentPathDefault(), prefix)
 
 
-class StartEnd:
+class StartEnd(object):
        'Class to get a start through end range.'
        def __init__(self, elementNode, modulo, prefix):
                "Initialize."
index 25d3c94d7229285b91c3a116645ea56e3d4ae001..952303d1cdeca510ee83ad9cf16aec6dc79a1c66 100644 (file)
@@ -34,7 +34,7 @@ def processElementNode(elementNode):
        lineation.processElementNodeByFunction(elementNode, getManipulatedPaths)
 
 
-class WedgeDerivation:
+class WedgeDerivation(object):
        "Class to hold wedge variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
index 9a97eaf65dcd40c5808de8d9416f06f038311d47..c63b039ce0b56a7c265b6c88af8c024d8250ee02 100644 (file)
@@ -89,7 +89,7 @@ def processElementNodeByDerivation(derivation, elementNode):
                bottomElementNode(derivation, target)
 
 
-class BottomDerivation:
+class BottomDerivation(object):
        "Class to hold bottom variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
index 495fe57f7e57564063449d8bf08fdd525b3247b7..fabda378acd8c98ed5ef30b44f5ce9fa6c8a289a 100644 (file)
@@ -74,7 +74,7 @@ def processElementNode(elementNode):
        solid.processElementNodeByFunctionPair(elementNode, getManipulatedGeometryOutput, getManipulatedPaths)
 
 
-class InsetDerivation:
+class InsetDerivation(object):
        "Class to hold inset variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
index faadb191044714f8280fa29ccadb85be01b08c4c..ac4d6f351ab91c36450c7dcfa48ce68932db9c38 100644 (file)
@@ -66,7 +66,7 @@ def processElementNode(elementNode):
        solid.processElementNodeByFunctionPair(elementNode, getManipulatedGeometryOutput, getManipulatedPaths)
 
 
-class OutsetDerivation:
+class OutsetDerivation(object):
        "Class to hold outset variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
index 80621848b6efe293a71031e062007ac0db394035..075b58b9ea259e8ec271cd88b3e6d646b41f0d4f 100644 (file)
@@ -64,7 +64,7 @@ def getNewDerivation(elementNode, prefix, sideLength):
        return EquationDerivation(elementNode, prefix)
 
 
-class EquationDerivation:
+class EquationDerivation(object):
        "Class to hold equation variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
@@ -81,7 +81,7 @@ class EquationDerivation:
                        self.equationResults.append(EquationResult(elementNode, equationFunction, prefixedEquationName))
 
 
-class EquationResult:
+class EquationResult(object):
        "Class to get equation results."
        def __init__(self, elementNode, equationFunction, key):
                "Initialize."
index c59fec95f09d58eea71bcaee6dfa48a0c1d6870b..af666c3e791af9955707f94b99318a2eb3402c1b 100644 (file)
@@ -82,7 +82,7 @@ def processElementNode(elementNode):
        solid.processElementNodeByFunctionPair(elementNode, getManipulatedGeometryOutput, getManipulatedPaths)
 
 
-class FlipDerivation:
+class FlipDerivation(object):
        "Class to hold flip variables."
        def __init__(self, elementNode, prefix):
                'Set defaults.'
index 6ed84b0180c2d434f21100e7012604850699371f..886f5eb275288388100c6ea789aa7e6bb7ed5fa5 100644 (file)
@@ -68,7 +68,7 @@ class Cube(triangle_mesh.TriangleMesh):
                solid.processArchiveRemoveSolid(elementNode, self.getGeometryOutput())
 
 
-class CubeDerivation:
+class CubeDerivation(object):
        "Class to hold cube variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 70e16866a89e3fb21ee4bc08a20fda3d762afc6e..40abe76ca820ac04237bc41e9784d10975b068da 100644 (file)
@@ -99,7 +99,7 @@ class Cylinder( cube.Cube ):
                solid.processArchiveRemoveSolid(elementNode, self.getGeometryOutput())
 
 
-class CylinderDerivation:
+class CylinderDerivation(object):
        "Class to hold cylinder variables."
        def __init__(self, elementNode):
                'Set defaults.'
index a9801b4c89c73f49b7935719f915d610d68fdc71..efffcad63ece3ec27a61d22d39fc0b6e2f228779 100644 (file)
@@ -73,7 +73,7 @@ class Sphere(cube.Cube):
                solid.processArchiveRemoveSolid(elementNode, self.getGeometryOutput())
 
 
-class SphereDerivation:
+class SphereDerivation(object):
        "Class to hold sphere variables."
        def __init__(self, elementNode):
                'Set defaults.'
index 308b1dfbff72a876c7ad72df66224227edd9bc46..36d583f95cd1105c534fcc48011004bef05fe7ec 100644 (file)
@@ -724,7 +724,7 @@ def sortLoopsInOrderOfArea(isDescending, loops):
        loops.sort(key=euclidean.getAreaLoopAbsolute, reverse=isDescending)
 
 
-class EdgePair:
+class EdgePair(object):
        def __init__(self):
                'Pair of edges on a face.'
                self.edgeIndexes = []
@@ -743,7 +743,7 @@ class EdgePair:
                return self
 
 
-class FaceGenerator:
+class FaceGenerator(object):
        'A face generator.'
        def __init__(self, faces, indexedLoopBottom, indexedLoopTop):
                'Initialize.'
@@ -922,7 +922,7 @@ class TriangleMesh( group.Group ):
                        face.setEdgeIndexesToVertexIndexes( self.edges, edgeTable )
 
 
-class ZoneArrangement:
+class ZoneArrangement(object):
        'A zone arrangement.'
        def __init__(self, layerHeight, vertexes):
                'Initialize the zone interval and the zZone table.'
index 5772cdb178b0281bcfdaf06eab976af0d8ec5bd3..88d345c163ce337805d96a1278278b8a54f8006e 100644 (file)
@@ -46,7 +46,7 @@ def processElementNode(elementNode):
                        processChildNodesByIndexValue( elementNode, function, inKey, elementNode.xmlObject, inValue[ inKey ] )
 
 
-class IndexValue:
+class IndexValue(object):
        "Class to get the in attribute, the index name and the value name."
        def __init__(self, elementNode):
                "Initialize."
index 4ab457ee2ea4ac50872db328e3cb905233b966c3..39d618f7bdd9264d641dfc7d9e96c1714e673209 100644 (file)
@@ -548,7 +548,7 @@ def removeIntersection( loop ):
                                        return
 
 
-class BoundingLoop:
+class BoundingLoop(object):
        'A class to hold a bounding loop composed of a minimum complex, a maximum complex and an outset loop.'
        def __eq__(self, other):
                'Determine whether this bounding loop is identical to other one.'
@@ -614,7 +614,7 @@ class BoundingLoop:
                return self.minimum.imag > anotherBoundingLoop.maximum.imag or self.minimum.real > anotherBoundingLoop.maximum.real
 
 
-class CenterOutset:
+class CenterOutset(object):
        'A class to hold a center and an outset.'
        def __init__(self, center, outset):
                'Set the center and outset.'
@@ -626,7 +626,7 @@ class CenterOutset:
                return '%s\n%s' % (self.center, self.outset)
 
 
-class CircleIntersection:
+class CircleIntersection(object):
        'An intersection of two complex circles.'
        def __init__( self, circleNodeAhead, index, circleNodeBehind ):
                self.aheadMinusBehind = 0.5 * ( circleNodeAhead.dividedPoint - circleNodeBehind.dividedPoint )
@@ -695,7 +695,7 @@ class CircleIntersection:
                return False
 
 
-class CircleNode:
+class CircleNode(object):
        'A complex node of complex circle intersections.'
        def __init__(self, oneOverRadius, point):
                self.actualPoint = point
index 43c9db488326b8f82d8dc6e4025f75a653a11d00..078acf188a9e32957b953957cf63cd08cf8f2918 100644 (file)
@@ -458,7 +458,7 @@ def getAlterationFile(fileName):
 ## Configuration settings classes ##
 ####################################
 
-class GeneralSetting:
+class GeneralSetting(object):
        "Just a basic setting subclass"
        def getFromValue( self, name, repository, value ):
                #print('GeneralSetting:', name, repository, value )
@@ -477,7 +477,7 @@ class BooleanSetting( GeneralSetting ):
        def setValueToString(self, value):
                self.value = str(value) == "True"
 
-class LatentStringVar:
+class LatentStringVar(object):
        "This is actually used as 'group' object for Radio buttons. (Did I mention the code is a mess?)"
        "This class doesn't have a name, and isn't really used for anything. It doesn't even know which repository it belongs to"
 
@@ -505,7 +505,7 @@ class RadioCapitalizedButton( Radio ):
                repository.preferences.append(self)
                return self
                
-class FileNameInput(StringSetting ):
+class FileNameInput(StringSetting):
        "A class to display, read & write a fileName."
        def getFromFileName( self, fileTypes, name, repository, value ):
                #print('FileNameInput:getFromFileName:', self, fileTypes, name, repository, value )
@@ -513,12 +513,12 @@ class FileNameInput(StringSetting ):
                self.value = value
                return self
 
-class HelpPage:
+class HelpPage(object):
        "A class to open a help page."
        def getOpenFromAbsolute( self, hypertextAddress ):
                return self
 
-class MenuButtonDisplay:
+class MenuButtonDisplay(object):
        "A class to add a combo box selection."
        def getFromName( self, name, repository ):
                #print('MenuButtonDisplay->getFromName:', name, repository )
@@ -553,7 +553,7 @@ class MenuRadio( BooleanSetting ):
                menuButtonDisplay.addRadio(self, value)
                return self
 
-class LabelDisplay:
+class LabelDisplay(object):
        "A class to add a label."
        def getFromName( self, name, repository ):
                "Initialize."
@@ -574,7 +574,7 @@ class FloatSpin( FloatSetting ):
                        repository.preferences.append(self)
                return self
 
-class LabelSeparator:
+class LabelSeparator(object):
        "A class to add a label and menu separator."
        def getFromRepository( self, repository ):
                "Initialize."
@@ -596,7 +596,7 @@ class IntSpin(FloatSpin):
 # Helper classes
 ##########################
 
-class LayerCount:
+class LayerCount(object):
        'A class to handle the layerIndex.'
        def __init__(self):
                'Initialize.'
index 980a1e6464ce70fa3d77ef0a41373425403e07eb..03846c919fb677536e8d86618f1756124eabcd51 100644 (file)
@@ -485,7 +485,7 @@ def processSVGElementtext(elementNode, svgReader):
                loopLayer.loops.append(matrixSVG.getTransformedPath(translatedLoop))
 
 
-class FontReader:
+class FontReader(object):
        "Class to read a font in the fonts folder."
        def __init__(self, fontFamily):
                "Initialize."
@@ -514,7 +514,7 @@ class FontReader:
                return self.glyphDictionary[character]
 
 
-class Glyph:
+class Glyph(object):
        "Class to handle a glyph."
        def __init__(self, elementNode, unitsPerEM, yAxisPointingUpward):
                "Initialize."
@@ -541,7 +541,7 @@ class Glyph:
                return sizedLoops
 
 
-class MatrixSVG:
+class MatrixSVG(object):
        "Two by three svg matrix."
        def __init__(self, tricomplex=None):
                "Initialize."
@@ -591,7 +591,7 @@ class MatrixSVG:
                return transformedPaths
 
 
-class PathReader:
+class PathReader(object):
        "Class to read svg path."
        def __init__(self, elementNode, loops, yAxisPointingUpward):
                "Add to path string to loops."
@@ -837,7 +837,7 @@ class PathReader:
                self.processPathWordZ()
 
 
-class SVGReader:
+class SVGReader(object):
        "An svg carving."
        def __init__(self):
                "Add empty lists."
index b7332746899f03bdd97ba43cbf06cc096b06a780..eda04699cff637fc098d04e7441f79c0ad8b8aac 100644 (file)
@@ -92,7 +92,7 @@ def setSVGCarvingCorners(cornerMaximum, cornerMinimum, layerHeight, loopLayers):
        cornerMinimum.z -= halfLayerThickness
 
 
-class SVGWriter:
+class SVGWriter(object):
        'A base class to get an svg skein from a carving.'
        def __init__(self,
                        addLayerTemplateToSVG,
index 9fcfe0d57eaea1a644818607a71d1cb1ad528cc8..1bf2e53b40f5e0e64daf862879bdb95e75d85d42 100644 (file)
@@ -93,7 +93,7 @@ def getFileText(fileName, printWarning=True, readMode='r'):
        return ''
 
 
-class CDATASectionMonad:
+class CDATASectionMonad(object):
        'A monad to handle a CDATASection node.'
        def __init__(self, input, parentNode):
                'Initialize.'
@@ -112,7 +112,7 @@ class CDATASectionMonad:
                return self
 
 
-class CDATASectionNode:
+class CDATASectionNode(object):
        'A CDATASection node.'
        def __init__(self, parentNode, textContent=''):
                'Initialize.'
@@ -228,7 +228,7 @@ class CommentNode(CDATASectionNode):
        nodeType = property(getNodeType)
 
 
-class DocumentNode:
+class DocumentNode(object):
        'A class to parse an xml text and store the elements.'
        def __init__(self, fileName, xmlText):
                'Initialize.'
@@ -337,7 +337,7 @@ class DocumentTypeNode(CDATASectionNode):
        nodeType = property(getNodeType)
 
 
-class ElementEndMonad:
+class ElementEndMonad(object):
        'A monad to look for the end of an ElementNode tag.'
        def __init__(self, parentNode):
                'Initialize.'
@@ -350,7 +350,7 @@ class ElementEndMonad:
                return self
 
 
-class ElementLocalNameMonad:
+class ElementLocalNameMonad(object):
        'A monad to set the local name of an ElementNode.'
        def __init__(self, character, parentNode):
                'Initialize.'
@@ -388,7 +388,7 @@ class ElementLocalNameMonad:
                self.elementNode.localName = self.input.getvalue().lower().strip()
 
 
-class ElementNode:
+class ElementNode(object):
        'An xml element.'
        def __init__(self, parentNode=None):
                'Initialize.'
@@ -725,7 +725,7 @@ class ElementNode:
        textContent = property(getTextContent)
 
 
-class ElementReadMonad:
+class ElementReadMonad(object):
        'A monad to read the attributes of the ElementNode tag.'
        def __init__(self, elementNode):
                'Initialize.'
@@ -744,7 +744,7 @@ class ElementReadMonad:
                return KeyMonad(character, self.elementNode)
 
 
-class KeyMonad:
+class KeyMonad(object):
        'A monad to set the key of an attribute of an ElementNode.'
        def __init__(self, character, elementNode):
                'Initialize.'
@@ -784,7 +784,7 @@ class OpenMonad(ElementEndMonad):
                return self
 
 
-class TextMonad:
+class TextMonad(object):
        'A monad to handle the open tag character and set the text.'
        def __init__(self, parentNode):
                'Initialize.'
@@ -824,7 +824,7 @@ class TextNode(CDATASectionNode):
        nodeType = property(getNodeType)
 
 
-class ValueMonad:
+class ValueMonad(object):
        'A monad to set the value of an attribute of an ElementNode.'
        def __init__(self, elementNode, key):
                'Initialize.'
index 563a7862bae87f6cf95d6e179613aec9c49a96a9..6b625836f1b7710bf19ccedc7caaf494beb0af5f 100644 (file)
@@ -61,7 +61,7 @@ def writeOutput(fileName):
        return skeinforge_craft.writeOutput(fileName)
 
 
-class CraftMenuSaveListener:
+class CraftMenuSaveListener(object):
        "A class to update a craft menu."
        def __init__( self, menu, window ):
                "Set the menu."
@@ -75,7 +75,7 @@ class CraftMenuSaveListener:
                addToCraftMenu( self.menu )
 
 
-class CraftRadioButtonsSaveListener:
+class CraftRadioButtonsSaveListener(object):
        "A class to update the craft radio buttons."
        def addToDialog( self, gridPosition ):
                "Add this to the dialog."
index 00ff25c973fd0b2a203adbe1edf5b76a23023827..4ac2a73107eb676094b93b18f916bd0d23defdd7 100644 (file)
@@ -136,7 +136,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'alteration', shouldAnalyze)
 
 
-class AlterationRepository:
+class AlterationRepository(object):
        "A class to handle the alteration settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -158,7 +158,7 @@ class AlterationRepository:
                        writeOutput(fileName)
 
 
-class AlterationSkein:
+class AlterationSkein(object):
        "A class to alteration a skein of extrusions."
        def __init__(self):
                'Initialize.'
index c65ffe0137bb2236bd8a1749ecd0f4e0023ac5a7..acd32c709420761eef9e38e81f72bd9fb7ce3635 100644 (file)
@@ -83,7 +83,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeSVGTextWithNounMessage(fileName, BottomRepository(), shouldAnalyze)
 
 
-class BottomRepository:
+class BottomRepository(object):
        "A class to handle the bottom settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -106,7 +106,7 @@ class BottomRepository:
                        writeOutput(fileName)
 
 
-class BottomSkein:
+class BottomSkein(object):
        "A class to bottom a skein of extrusions."
        def getCraftedGcode(self, fileName, repository, svgText):
                "Parse svgText and store the bottom svgText."
index f06753eb2271cc9b935e68ea22aa284e1e8115bf..14ef4476bf8bc01f4855995558d9ed72d14ced0f 100644 (file)
@@ -145,7 +145,7 @@ def writeOutput(fileName, shouldAnalyze=True):
                settings.openSVGPage(suffixFileName, repository.svgViewer.value)
 
 
-class CarveRepository:
+class CarveRepository(object):
        "A class to handle the carve settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -189,7 +189,7 @@ class CarveRepository:
                        writeOutput(fileName)
 
 
-class CarveSkein:
+class CarveSkein(object):
        "A class to carve a carving."
        def getCarvedSVG(self, carving, fileName, repository):
                "Parse gnu triangulated surface text and store the carved gcode."
index 1fca0a2ba84c5889a59d14ba8b7a4492dd5d0769..62d328d032369d78b670fa339fe2c8ad6772965e 100644 (file)
@@ -198,7 +198,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'chamber', shouldAnalyze)
 
 
-class ChamberRepository:
+class ChamberRepository(object):
        "A class to handle the chamber settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -225,7 +225,7 @@ class ChamberRepository:
 
 
 
-class ChamberSkein:
+class ChamberSkein(object):
        "A class to chamber a skein of extrusions."
        def __init__(self):
                'Initialize.'
index d37eced11704fe67d765c4416d64069bc2a1939d..1bbf9418309f6708bbcc7018ff85bf138eb5da12 100644 (file)
@@ -135,7 +135,7 @@ def writeOutput(fileName, shouldAnalyze=True):
                settings.openSVGPage( suffixFileName, repository.svgViewer.value )
 
 
-class ChopRepository:
+class ChopRepository(object):
        "A class to handle the chop settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -164,7 +164,7 @@ class ChopRepository:
                        writeOutput(fileName)
 
 
-class ChopSkein:
+class ChopSkein(object):
        "A class to chop a carving."
        def addExtraTopLayerIfNecessary( self, carving, layerHeight, loopLayers ):
                "Add extra top layer if necessary."
index fa5f225c93e456f74f8dfd856f75953443a745b2..cd8332ec9247f08c65597ee661ff9da7fa352642 100644 (file)
@@ -130,7 +130,7 @@ def writeOutput(fileName, shouldAnalyze=True):
                settings.openSVGPage( suffixFileName, repository.svgViewer.value )
 
 
-class CleaveRepository:
+class CleaveRepository(object):
        "A class to handle the cleave settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -158,7 +158,7 @@ class CleaveRepository:
                        writeOutput(fileName)
 
 
-class CleaveSkein:
+class CleaveSkein(object):
        "A class to cleave a carving."
        def getCarvedSVG( self, carving, fileName, repository ):
                "Parse gnu triangulated surface text and store the cleaved gcode."
index a3602c27816f10be803bc2ca1b6f6dc2986fc160..9fef02ab4602203da023a14a99212a36ce424937 100644 (file)
@@ -82,7 +82,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'clip', shouldAnalyze)
 
 
-class ClipRepository:
+class ClipRepository(object):
        "A class to handle the clip settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -101,7 +101,7 @@ class ClipRepository:
                        writeOutput(fileName)
 
 
-class ClipSkein:
+class ClipSkein(object):
        "A class to clip a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 7f5b0e6d8215e50c18deabf37cf31a4998240acf..728e6457212e0a93e00cb8a738ff5c6091e1e281 100644 (file)
@@ -70,7 +70,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'coil', shouldAnalyze)
 
 
-class CoilRepository:
+class CoilRepository(object):
        "A class to handle the coil settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -88,7 +88,7 @@ class CoilRepository:
 
 
 
-class CoilSkein:
+class CoilSkein(object):
        "A class to coil a skein of extrusions."
        def __init__(self):
                self.boundaryLayers = []
index 0f14024ed630bf719c95e4e49ccf7726728a89ae..5e12e853dbbf89d855b350d77d4bce0687ac4100 100644 (file)
@@ -125,7 +125,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'comb', shouldAnalyze)
 
 
-class BoundarySegment:
+class BoundarySegment(object):
        'A boundary and segment.'
        def __init__(self, begin):
                'Initialize'
@@ -144,7 +144,7 @@ class BoundarySegment:
                return (self.segment[0], end)
 
 
-class CombRepository:
+class CombRepository(object):
        "A class to handle the comb settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -162,7 +162,7 @@ class CombRepository:
                        writeOutput(fileName)
 
 
-class CombSkein:
+class CombSkein(object):
        "A class to comb a skein of extrusions."
        def __init__(self):
                'Initialize'
@@ -451,7 +451,7 @@ class CombSkein:
                self.distanceFeedRate.addLineCheckAlteration(line)
 
 
-class DistancePoint:
+class DistancePoint(object):
        'A class to get the distance of the point along a segment inside a loop.'
        def __init__(self, begin, loop, runningJumpSpace, segment):
                'Initialize'
index 3541f530d5c9d4558f0dad7112b8abeb5a7f9f0b..db54b48b6cf7e053a6ea9645b127ac2c648961be 100644 (file)
@@ -131,7 +131,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'cool', shouldAnalyze)
 
 
-class CoolRepository:
+class CoolRepository(object):
        'A class to handle the cool settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -172,7 +172,7 @@ class CoolRepository:
                        writeOutput(fileName)
 
 
-class CoolSkein:
+class CoolSkein(object):
        'A class to cool a skein of extrusions.'
        def __init__(self):
                self.boundaryLayer = None
index f42570fcc62343a889fbc200d82e6ffa140b7845..0d29205def73a2d193ffef6ae945036be9ddca4e 100644 (file)
@@ -137,7 +137,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'dimension', shouldAnalyze)
 
 
-class DimensionRepository:
+class DimensionRepository(object):
        'A class to handle the dimension settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -169,7 +169,7 @@ class DimensionRepository:
                        writeOutput(fileName)
 
 
-class DimensionSkein:
+class DimensionSkein(object):
        'A class to dimension a skein of extrusions.'
        def __init__(self):
                'Initialize.'
index ca462cfc29e5cc3a45f3ae230a801adde67870a6..685c0c073bc76dbb9d83cd9dc705f27717b0172d 100644 (file)
@@ -80,7 +80,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'drill', shouldAnalyze)
 
 
-class ThreadLayer:
+class ThreadLayer(object):
        "A layer of loops and paths."
        def __init__( self, z ):
                "Thread layer constructor."
@@ -92,7 +92,7 @@ class ThreadLayer:
                return '%s, %s' % ( self.z, self.points )
 
 
-class DrillRepository:
+class DrillRepository(object):
        "A class to handle the drill settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -110,7 +110,7 @@ class DrillRepository:
                        writeOutput(fileName)
 
 
-class DrillSkein:
+class DrillSkein(object):
        "A class to drill a skein of extrusions."
        def __init__(self):
                self.boundary = None
index 436c1473eb7406c1644d49d182d97dd9f5dd7b3a..1ba8ba59a33fe272882088201582a4a47395ad1e 100644 (file)
@@ -84,7 +84,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'dwindle', shouldAnalyze)
 
 
-class DwindleRepository:
+class DwindleRepository(object):
        'A class to handle the dwindle settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -106,7 +106,7 @@ class DwindleRepository:
                        writeOutput(fileName)
 
 
-class DwindleSkein:
+class DwindleSkein(object):
        'A class to dwindle a skein of extrusions.'
        def __init__(self):
                'Initialize.'
@@ -207,7 +207,7 @@ class DwindleSkein:
                        self.distanceFeedRate.addLine(line)
 
 
-class ThreadSection:
+class ThreadSection(object):
        'A class to handle a volumetric section of a thread.'
        def __init__(self, feedRateMinute, flowRate, location, oldLocation):
                'Initialize.'
index 91fd4f09ee878abc28427928683e9e4873922222..b6ff22395fe9eab23efbafd70d854803a9fd1314 100644 (file)
@@ -310,7 +310,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        return window
 
 
-class ExportRepository:
+class ExportRepository(object):
        'A class to handle the export settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -363,7 +363,7 @@ class ExportRepository:
                        writeOutput(fileName)
 
 
-class ExportSkein:
+class ExportSkein(object):
        'A class to export a skein of extrusions.'
        def __init__(self):
                self.crafting = False
index e8375ba6700a9d04df4c7cbb1d6cae5555160dc9..a94bb57a9422115196fd9fb13b48815b65ba1be6 100644 (file)
@@ -132,7 +132,7 @@ def writeOutput( fileName, gcodeText = ''):
        print('The converted file is saved as ' + archive.getSummarizedFileName(suffixFileName))
 
 
-class GcodeStepRepository:
+class GcodeStepRepository(object):
        'A class to handle the export settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -163,7 +163,7 @@ class GcodeStepRepository:
                        writeOutput(fileName)
 
 
-class GcodeStepSkein:
+class GcodeStepSkein(object):
        'A class to convert gcode into 16 byte binary segments.'
        def __init__(self):
                self.oldFeedRateString = None
index 5e21e8c3a2a3876c218b281cdd511b58f78a0f25..99c74f4ee552aa25554bd949267e61c9f5268aa3 100644 (file)
@@ -117,7 +117,7 @@ def writeOutput( fileName, gcodeText = ''):
        print('The converted file is saved as ' + archive.getSummarizedFileName(suffixFileName) )
 
 
-class GcodeTimeSegmentRepository:
+class GcodeTimeSegmentRepository(object):
        "A class to handle the export settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -147,7 +147,7 @@ class GcodeTimeSegmentRepository:
                        writeOutput(fileName)
 
 
-class GcodeTimeSegmentSkein:
+class GcodeTimeSegmentSkein(object):
        "A class to convert gcode into time segments."
        def __init__(self):
                'Initialize.'
index 246cee5d9a4a3c94b68fe2f50b9c8a9e7817345e..b55e52ddecdc3ca35fe0a3e0c43195e5d95ef527 100644 (file)
@@ -62,7 +62,7 @@ def getTextLines(text):
        return text.replace('\r', '\n').split('\n')
 
 
-class GcodeSmallSkein:
+class GcodeSmallSkein(object):
        "A class to remove redundant z and feed rate parameters from a skein of extrusions."
        def __init__(self):
                self.lastFeedRateString = None
index 5766d409187636460c6ae694e57bf5a415fe5890..fb1a1ababb98c77482c99bf0672042a176004f80 100644 (file)
@@ -81,8 +81,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        "Feed a gcode linear move file."
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'feed', shouldAnalyze)
 
-
-class FeedRepository:
+class FeedRepository(object):
        "A class to handle the feed settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -102,7 +101,7 @@ class FeedRepository:
                        writeOutput(fileName)
 
 
-class FeedSkein:
+class FeedSkein(object):
        "A class to feed a skein of cuttings."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 6cb80525adecb4ddc5bdc06aca90612a11277f57..cd3661644bb712eec3bef9e426d0b3f9fb3881a7 100644 (file)
@@ -761,7 +761,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'fill', shouldAnalyze)
 
 
-class FillRepository:
+class FillRepository(object):
        'A class to handle the fill settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -823,7 +823,7 @@ class FillRepository:
                        writeOutput(fileName)
 
 
-class FillSkein:
+class FillSkein(object):
        'A class to fill a skein of extrusions.'
        def __init__(self):
                'Initialize.'
@@ -1334,7 +1334,7 @@ class FillSkein:
                        self.gridJunctionMiddle = halfGridMinusWidth * repository.gridJunctionSeparationOverOctogonRadiusAtMiddle.value
 
 
-class RotatedLayer:
+class RotatedLayer(object):
        'A rotated layer.'
        def __init__( self, z ):
                'Initialize.'
@@ -1348,7 +1348,7 @@ class RotatedLayer:
                return '%s, %s, %s' % ( self.z, self.rotation, self.nestedRings )
 
 
-class YIntersectionPath:
+class YIntersectionPath(object):
        'A class to hold the y intersection position, the loop which it intersected and the point index of the loop which it intersected.'
        def __init__( self, pathIndex, pointIndex, y ):
                'Initialize from the path, point index, and y.'
index b040fe3deba7069b3367069a55133e3626e33232..51e33bc75fd4252f618bc1ceab193c82b8a8596f 100644 (file)
@@ -109,7 +109,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'fillet', shouldAnalyze)
 
 
-class BevelSkein:
+class BevelSkein(object):
        "A class to bevel a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
@@ -352,7 +352,7 @@ class ArcRadiusSkein( ArcPointSkein ):
                return ' R' + ( self.distanceFeedRate.getRounded(radius) )
 
 
-class FilletRepository:
+class FilletRepository(object):
        "A class to handle the fillet settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index 82a7f1dfd0217f6c170f10bc4737a8c89611f56e..8eda2a7e8d1c2a77c880df0c64519efbb969ffee 100644 (file)
@@ -67,7 +67,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'flow', shouldAnalyze)
 
 
-class FlowRepository:
+class FlowRepository(object):
        "A class to handle the flow settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -84,7 +84,7 @@ class FlowRepository:
                        writeOutput(fileName)
 
 
-class FlowSkein:
+class FlowSkein(object):
        "A class to flow a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 16fb7611c1fbd8399e4e559c81c0e2ce3f031ead..c9bb6235379d3d7bd21c6f60a2ff4c71f80e057f 100644 (file)
@@ -71,7 +71,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'home', shouldAnalyze)
 
 
-class HomeRepository:
+class HomeRepository(object):
        "A class to handle the home settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -89,7 +89,7 @@ class HomeRepository:
                        writeOutput(fileName)
 
 
-class HomeSkein:
+class HomeSkein(object):
        "A class to home a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 411a72f040f69bb15ca83a414ea7c303596b12a9..53a77f0d0bc076b368b078dc715a264cdfa68739 100644 (file)
@@ -83,7 +83,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'hop', shouldAnalyze)
 
 
-class HopRepository:
+class HopRepository(object):
        "A class to handle the hop settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -102,7 +102,7 @@ class HopRepository:
                        writeOutput(fileName)
 
 
-class HopSkein:
+class HopSkein(object):
        "A class to hop a skein of extrusions."
        def __init__(self):
                'Initialize'
index 7d1ec9740fda709aee31ee924a67fe726f45dad6..8af333f59ad2e850ca1bcdc7282dd5a7beb053d7 100644 (file)
@@ -280,7 +280,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'inset', shouldAnalyze)
 
 
-class InsetRepository:
+class InsetRepository(object):
        "A class to handle the inset settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -308,7 +308,7 @@ class InsetRepository:
                        writeOutput(fileName)
 
 
-class InsetSkein:
+class InsetSkein(object):
        "A class to inset a skein of extrusions."
        def __init__(self):
                'Initialize.'
index 0b3acd3e5ecc5e9e019b5da202518c79460e7cf2..8ffae9568730dd5a44f33c81bb8d3445112f5775 100644 (file)
@@ -106,7 +106,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'jitter', shouldAnalyze)
 
 
-class JitterRepository:
+class JitterRepository(object):
        'A class to handle the jitter settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -124,7 +124,7 @@ class JitterRepository:
                        writeOutput(fileName)
 
 
-class JitterSkein:
+class JitterSkein(object):
        'A class to jitter a skein of extrusions.'
        def __init__(self):
                'Initialize.'
index 8a8f1c1c69b2ea457c61bb3f4acc872035ca507f..d211cdbb9718751f09e1e34dd8a39e8094170fb6 100644 (file)
@@ -62,7 +62,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'joris', shouldAnalyze)
 
 
-class JorisRepository:
+class JorisRepository(object):
        'A class to handle the Joris settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -81,7 +81,7 @@ class JorisRepository:
                        writeOutput(fileName)
 
 
-class JorisSkein:
+class JorisSkein(object):
        'A class to Joris a skein of extrusions.'
        def __init__(self):
                'Initialize.'
index dd5e5a13f37d6b612cae29a751b05f1c4beb1b41..0e731e943eecd8e414dd9dede7ec6c05e3935be6 100644 (file)
@@ -78,7 +78,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'lash', shouldAnalyze)
 
 
-class LashRepository:
+class LashRepository(object):
        "A class to handle the lash settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -97,7 +97,7 @@ class LashRepository:
                        writeOutput(fileName)
 
 
-class LashSkein:
+class LashSkein(object):
        "A class to lash a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 7c5ffb615f8d140c0b3d304db96079e50c7e3873..9fccf0df8cea3ec45c7cbb37d3b823b3dba7a2fa 100644 (file)
@@ -70,7 +70,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'lift', shouldAnalyze)
 
 
-class LiftRepository:
+class LiftRepository(object):
        "A class to handle the lift settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -88,7 +88,7 @@ class LiftRepository:
                        writeOutput(fileName)
 
 
-class LiftSkein:
+class LiftSkein(object):
        "A class to lift a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 66a521233fb1298f3aa5a10dbc5848930ab7ad47..ac3e2c9545f540721ca3cae58a4268d160cc0294 100644 (file)
@@ -71,7 +71,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'limit', shouldAnalyze)
 
 
-class LimitRepository:
+class LimitRepository(object):
        'A class to handle the limit settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -89,7 +89,7 @@ class LimitRepository:
                        writeOutput(fileName)
 
 
-class LimitSkein:
+class LimitSkein(object):
        'A class to limit a skein of extrusions.'
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 5b8a018fc019bacc3231c072fc650b3dc38a372e..0bc135b6c8284e6276b14b34f95a262ba7ba3cfa 100644 (file)
@@ -115,7 +115,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'mill', shouldAnalyze)
 
 
-class Average:
+class Average(object):
        'A class to hold values and get the average.'
        def __init__(self):
                self.reset()
@@ -138,7 +138,7 @@ class Average:
                self.total = 0.0
 
 
-class MillRepository:
+class MillRepository(object):
        'A class to handle the mill settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -163,7 +163,7 @@ class MillRepository:
 
 
 
-class MillSkein:
+class MillSkein(object):
        'A class to mill a skein of extrusions.'
        def __init__(self):
                self.aroundPixelTable = {}
index ca2d52ec3b8629c497dcd2f3de601f34510e7c60..8f4a4334f5fbd887bc6e821c1f94b9302873aeb1 100644 (file)
@@ -100,7 +100,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'multiply', shouldAnalyze)
 
 
-class MultiplyRepository:
+class MultiplyRepository(object):
        'A class to handle the multiply settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -130,7 +130,7 @@ class MultiplyRepository:
                        writeOutput(fileName)
 
 
-class MultiplySkein:
+class MultiplySkein(object):
        'A class to multiply a skein of extrusions.'
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index fd75a37fe1d3629e6dc015b58a42e1db6227997a..a16ab6d29bf780686cbd7c6535a921c5d68e31c0 100644 (file)
@@ -107,7 +107,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'oozebane', shouldAnalyze)
 
 
-class OozebaneRepository:
+class OozebaneRepository(object):
        "A class to handle the oozebane settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -132,7 +132,7 @@ class OozebaneRepository:
                        writeOutput(fileName)
 
 
-class OozebaneSkein:
+class OozebaneSkein(object):
        "A class to oozebane a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index de181a5cb3e0d990d2ded1929ccd79a9921b85a4..be389371e50670c248a083b8c200fb9755b1eaf0 100644 (file)
@@ -63,7 +63,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'outset', shouldAnalyze)
 
 
-class OutsetRepository:
+class OutsetRepository(object):
        'A class to handle the outset settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -79,7 +79,7 @@ class OutsetRepository:
                        writeOutput(fileName)
 
 
-class OutsetSkein:
+class OutsetSkein(object):
        'A class to outset a skein of extrusions.'
        def __init__(self):
                self.boundary = None
index aa42745fe2c2619cbf79e14a245276c88b2b3099..5b36203127a9cfdbc498ff1cd73fb0f4dcceae59 100644 (file)
@@ -94,7 +94,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'preface', shouldAnalyze)
 
 
-class PrefaceRepository:
+class PrefaceRepository(object):
        "A class to handle the preface settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -118,7 +118,7 @@ class PrefaceRepository:
                        writeOutput(fileName)
 
 
-class PrefaceSkein:
+class PrefaceSkein(object):
        "A class to preface a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 615bc7e707f2b86dd38811dc6677ee02a4495780..b4771d86d80adff5a1a31dbd41497b92cae07b72 100644 (file)
@@ -330,7 +330,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'raft', shouldAnalyze)
 
 
-class RaftRepository:
+class RaftRepository(object):
        'A class to handle the raft settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -410,7 +410,7 @@ class RaftRepository:
                        writeOutput(fileName)
 
 
-class RaftSkein:
+class RaftSkein(object):
        'A class to raft a skein of extrusions.'
        def __init__(self):
                self.addLineLayerStart = True
@@ -1094,7 +1094,7 @@ class RaftSkein:
                self.supportLayers = []
 
 
-class SupportLayer:
+class SupportLayer(object):
        'Support loops with segment tables.'
        def __init__( self, supportLoops ):
                self.supportLoops = supportLoops
index 12a636eb0b52552c12b656679181310114141bf5..60f99ade94d6c984b657d9fcbacca75a1cac2fc6 100644 (file)
@@ -93,7 +93,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeSVGTextWithNounMessage(fileName, ScaleRepository(), shouldAnalyze)
 
 
-class ScaleRepository:
+class ScaleRepository(object):
        "A class to handle the scale settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -113,7 +113,7 @@ class ScaleRepository:
                        writeOutput(fileName)
 
 
-class ScaleSkein:
+class ScaleSkein(object):
        "A class to scale a skein of extrusions."
        def getCraftedGcode(self, fileName, repository, svgText):
                "Parse svgText and store the scale svgText."
index a447f6e321726c9c107fba30d061e9eb96485675..c8a69f0ea2fe24d4562624291b4124d4925dbcfa 100644 (file)
@@ -110,7 +110,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'skin', shouldAnalyze)
 
 
-class SkinRepository:
+class SkinRepository(object):
        'A class to handle the skin settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -135,7 +135,7 @@ class SkinRepository:
                        writeOutput(fileName)
 
 
-class SkinSkein:
+class SkinSkein(object):
        'A class to skin a skein of extrusions.'
        def __init__(self):
                'Initialize.'
index 5b8e09599c06710e919def3cf1d2c6a692b15c28..e5c8bdc11e895301c5779720de020907fedab61f 100644 (file)
@@ -108,7 +108,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'skirt', shouldAnalyze)
 
 
-class LoopCrossDictionary:
+class LoopCrossDictionary(object):
        'Loop with a horizontal and vertical dictionary.'
        def __init__(self):
                'Initialize LoopCrossDictionary.'
@@ -119,7 +119,7 @@ class LoopCrossDictionary:
                return str(self.loop)
 
 
-class SkirtRepository:
+class SkirtRepository(object):
        'A class to handle the skirt settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -141,7 +141,7 @@ class SkirtRepository:
                        writeOutput(fileName)
 
 
-class SkirtSkein:
+class SkirtSkein(object):
        'A class to skirt a skein of extrusions.'
        def __init__(self):
                'Initialize variables.'
index 0838098d7edbe7f0d10178777349c51d7abc08dd..da21d1696cc74d7c3058eb5305de637c19980dbc 100644 (file)
@@ -79,7 +79,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'smooth', shouldAnalyze)
 
 
-class SmoothRepository:
+class SmoothRepository(object):
        'A class to handle the smooth settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -98,7 +98,7 @@ class SmoothRepository:
                        writeOutput(fileName)
 
 
-class SmoothSkein:
+class SmoothSkein(object):
        'A class to smooth a skein of extrusions.'
        def __init__(self):
                'Initialize.'
index e42a7b61b281bb1723277c0b962779b30bd887fa..2aa7224ca12a4ff68e48751b3fd2a8bc03ff9ea1 100644 (file)
@@ -157,7 +157,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'speed', shouldAnalyze)
 
 
-class SpeedRepository:
+class SpeedRepository(object):
        "A class to handle the speed settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -216,7 +216,7 @@ class SpeedRepository:
                        writeOutput(fileName)
 
 
-class SpeedSkein:
+class SpeedSkein(object):
        "A class to speed a skein of extrusions."
        def __init__(self):
                'Initialize.'
index d1babb18ed19c54e467795b91a51d46a43459027..bef836f6facbaeee4166704a626897612713bb7c 100644 (file)
@@ -97,7 +97,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'splodge', shouldAnalyze)
 
 
-class SplodgeRepository:
+class SplodgeRepository(object):
        "A class to handle the splodge settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -125,7 +125,7 @@ class SplodgeRepository:
                        writeOutput(fileName)
 
 
-class SplodgeSkein:
+class SplodgeSkein(object):
        "A class to splodge a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 0cb1430c465856d410dc0ee662a7812d2c25ed5b..0af481a8e574e67d57530c2c8bab8bcb04dc4bb1 100644 (file)
@@ -108,7 +108,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'stretch', shouldAnalyze)
 
 
-class LineIteratorBackward:
+class LineIteratorBackward(object):
        "Backward line iterator class."
        def __init__( self, isLoop, lineIndex, lines ):
                self.firstLineIndex = None
@@ -172,7 +172,7 @@ class LineIteratorBackward:
                return False
 
 
-class LineIteratorForward:
+class LineIteratorForward(object):
        "Forward line iterator class."
        def __init__( self, isLoop, lineIndex, lines ):
                self.firstLineIndex = None
@@ -213,7 +213,7 @@ class LineIteratorForward:
                raise StopIteration, "You've reached the end of the line."
 
 
-class StretchRepository:
+class StretchRepository(object):
        "A class to handle the stretch settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -239,7 +239,7 @@ class StretchRepository:
                        writeOutput(fileName)
 
 
-class StretchSkein:
+class StretchSkein(object):
        "A class to stretch a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 0775100b0cda271b430ac08c01d068c243ece8a2..4282c248f43513b3a6e2e1a984dbd7886de69bfb 100644 (file)
@@ -114,7 +114,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'temperature', shouldAnalyze)
 
 
-class TemperatureRepository:
+class TemperatureRepository(object):
        "A class to handle the temperature settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -144,7 +144,7 @@ class TemperatureRepository:
                        writeOutput(fileName)
 
 
-class TemperatureSkein:
+class TemperatureSkein(object):
        "A class to temperature a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 4efe8ad3f2d6d1a9e2d2405297b19ecfa38b5418..7be665781d4ffac31abdcb169c03a04df03215cc 100644 (file)
@@ -82,7 +82,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'tower', shouldAnalyze)
 
 
-class Island:
+class Island(object):
        "A class to hold the boundary and lines."
        def __init__(self):
                self.boundary = []
@@ -102,7 +102,7 @@ class Island:
                        self.boundingLoop = intercircle.BoundingLoop().getFromLoop( self.boundary )
 
 
-class ThreadLayer:
+class ThreadLayer(object):
        "A layer of loops and paths."
        def __init__(self):
                "Thread layer constructor."
@@ -115,7 +115,7 @@ class ThreadLayer:
                return '%s' % self.islands
 
 
-class TowerRepository:
+class TowerRepository(object):
        "A class to handle the tower settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -135,7 +135,7 @@ class TowerRepository:
                        writeOutput(fileName)
 
 
-class TowerSkein:
+class TowerSkein(object):
        "A class to tower a skein of extrusions."
        def __init__(self):
                self.afterExtrusionLines = []
index c46ff90d61c6fc12d39597d2705fc51ca3506042..d7ae2d290ccfd9fe5e4c58ea5511d6b139bcb6f7 100644 (file)
@@ -82,7 +82,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'unpause', shouldAnalyze)
 
 
-class UnpauseRepository:
+class UnpauseRepository(object):
        "A class to handle the unpause settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -101,7 +101,7 @@ class UnpauseRepository:
                        writeOutput(fileName)
 
 
-class UnpauseSkein:
+class UnpauseSkein(object):
        "A class to unpause a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index 147e40853433e1d32625ccdb769d76d1ba897189..19eb5f790c4149ee460a8ed005065568a036cb9b 100644 (file)
@@ -67,7 +67,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'whittle', shouldAnalyze)
 
 
-class WhittleRepository:
+class WhittleRepository(object):
        "A class to handle the whittle settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -84,7 +84,7 @@ class WhittleRepository:
                        writeOutput(fileName)
 
 
-class WhittleSkein:
+class WhittleSkein(object):
        "A class to whittle a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index f6866278edebb111a0f6e61529a3039284379fe3..9649f3533413151ce39d8d71b19421698ad3091a 100644 (file)
@@ -103,7 +103,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'widen', shouldAnalyze)
 
 
-class WidenRepository:
+class WidenRepository(object):
        'A class to handle the widen settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
@@ -124,7 +124,7 @@ class WidenRepository:
                        writeOutput(fileName)
 
 
-class WidenSkein:
+class WidenSkein(object):
        'A class to widen a skein of extrusions.'
        def __init__(self):
                self.boundary = None
index 04de7e47396d5470db35612f09c0b6d417e40742..de65e59c9d4a2efdf85b91694ef363a1f4f7d713 100644 (file)
@@ -121,7 +121,7 @@ def writeOutput(fileName, shouldAnalyze=True):
        skeinforge_craft.writeChainTextWithNounMessage(fileName, 'wipe', shouldAnalyze)
 
 
-class WipeRepository:
+class WipeRepository(object):
        "A class to handle the wipe settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
@@ -155,7 +155,7 @@ class WipeRepository:
                        writeOutput(fileName)
 
 
-class WipeSkein:
+class WipeSkein(object):
        "A class to wipe a skein of extrusions."
        def __init__(self):
                self.distanceFeedRate = gcodec.DistanceFeedRate()
index d823413c55b3579e2bae419a2a858456f642760b..21c356efe16c618d539ca7d95394b3733ce68b9b 100644 (file)
@@ -32,7 +32,7 @@ def getNewRepository():
        return DescriptionRepository()
 
 
-class DescriptionRepository:
+class DescriptionRepository(object):
        "A class to handle the description settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index d1b448163899700f3f34b384125a6e75cc3ca36a..6a49bdc51c2f65b91f7f7bdcd83d8a16b91bde77 100644 (file)
@@ -58,7 +58,7 @@ def getNewRepository():
        return skeinforge_profile.ProfileRepository()
 
 
-class ProfileMenuRadio:
+class ProfileMenuRadio(object):
        "A class to display a profile menu radio button."
        def __init__( self, profilePluginFileName, menu, name, radioVar, value ):
                "Create a profile menu radio."
@@ -92,7 +92,7 @@ class ProfileMenuRadio:
                skeinforge_profile.updateProfileSaveListeners()
 
 
-class ProfileMenuSaveListener:
+class ProfileMenuSaveListener(object):
        "A class to update a profile menu."
        def __init__( self, menu, window ):
                "Set the menu."
index e4637128f93ccb61df1360797cfa6c2325af47a5..cbf5ac28bef6d5daced30ece18d38c1a7b16ed73 100644 (file)
@@ -35,7 +35,7 @@ def getNewRepository():
        return CuttingRepository()
 
 
-class CuttingRepository:
+class CuttingRepository(object):
        "A class to handle the cutting settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index 1168cc3a343e4f70db16bbd58d4535c7a8bef536..76a4f342cb73e9557d03f68323a5c8ae985f5840 100644 (file)
@@ -35,7 +35,7 @@ def getNewRepository():
        return ExtrusionRepository()
 
 
-class ExtrusionRepository:
+class ExtrusionRepository(object):
        'A class to handle the export settings.'
        def __init__(self):
                'Set the default settings, execute title & settings fileName.'
index 443eddc864d63a071616d86b5fdc5f1797b20fb6..5d39eed17fd70825d2dc75074a72bfd0ed216ddd 100644 (file)
@@ -35,7 +35,7 @@ def getNewRepository():
        return MillingRepository()
 
 
-class MillingRepository:
+class MillingRepository(object):
        "A class to handle the milling settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index 39c0b3a8d55bbc489b66e9710fe66d927967c6df..30949c72513e5f871861b49e894070f78078e855 100644 (file)
@@ -35,7 +35,7 @@ def getNewRepository():
        return WindingRepository()
 
 
-class WindingRepository:
+class WindingRepository(object):
        "A class to handle the winding settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index 5dbb98b1d164c0af4b5819371bf9659584dc3f1e..1927eae403080c80f43166eeb0667b4a71a2e2f4 100644 (file)
@@ -51,7 +51,7 @@ def writeOutput(fileName, fileNamePenultimate, fileNameSuffix, filePenultimateWr
        return window
 
 
-class AnalyzeRepository:
+class AnalyzeRepository(object):
        "A class to handle the analyze settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index 4f6db47688ce3c22871acd14bf6f30812b900598..4a54ffda22172bb739fe78f77afdc66f45cf457a 100644 (file)
@@ -154,7 +154,7 @@ def writeSVGTextWithNounMessage(fileName, repository, shouldAnalyze=True):
                settings.openSVGPage(fileNameSuffix, repository.svgViewer.value)
 
 
-class CraftRadioButtonsSaveListener:
+class CraftRadioButtonsSaveListener(object):
        "A class to update the craft radio buttons."
        def addToDialog( self, gridPosition ):
                "Add this to the dialog."
@@ -198,7 +198,7 @@ class CraftRadioButtonsSaveListener:
                self.repository.pluginFrame.update()
 
 
-class CraftRepository:
+class CraftRepository(object):
        "A class to handle the craft settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index 7f41ef6cbcc34a5e2e6b4927a975532dd87faad8..a7f0791a5fe0cf4db49f4a83f8786e4ee24c514c 100644 (file)
@@ -20,7 +20,7 @@ def getNewRepository():
        return HelpRepository()
 
 
-class HelpRepository:
+class HelpRepository(object):
        "A class to handle the help settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index e0c6f68b8c66d547f199084076813b6cbfbd0fd7..4c9f59be1d577a733adfc022edaee3424290045b 100644 (file)
@@ -28,7 +28,7 @@ def getPluginsDirectoryPath():
        return archive.getSkeinforgePluginsPath('meta_plugins')
 
 
-class MetaRepository:
+class MetaRepository(object):
        "A class to handle the meta settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index 2343cb62b5374de4547b2bdf5b89dc87dc08bd44..19ac696ec228311f4067c66f9333eb6e454bb45e 100644 (file)
@@ -57,7 +57,7 @@ def isEmptyOrCancelled( fileName, wasCancelled ):
        return str(fileName) == '' or str(fileName) == '()' or wasCancelled
 
 
-class PolyfileRepository:
+class PolyfileRepository(object):
        "A class to handle the polyfile settings."
        def __init__(self):
                "Set the default settings, execute title & settings fileName."
index 27314fd9384dac8900d82366f6f5c073351838ee..d2f4d3d53f0e92076e7d520ba898d09b8438fd87 100644 (file)
@@ -72,6 +72,8 @@ profileDefaultSettings = {
        'bottom_thickness': '0.3',
        'hop_on_move': 'False',
        'plugin_config': '',
+       'object_center_x': '-1',
+       'object_center_y': '-1',
        
        'add_start_end_gcode': 'True',
        'gcode_extension': 'gcode',
@@ -596,7 +598,7 @@ def runPostProcessingPlugins(gcodefilename):
                for pluginTest in pluginList:
                        if pluginTest['filename'] == pluginConfig['filename']:
                                plugin = pluginTest
-               if plugin == None:
+               if plugin is None:
                        continue
                
                pythonFile = None
@@ -604,7 +606,7 @@ def runPostProcessingPlugins(gcodefilename):
                        testFilename = os.path.join(basePath, pluginConfig['filename'])
                        if os.path.isfile(testFilename):
                                pythonFile = testFilename
-               if pythonFile == None:
+               if pythonFile is None:
                        continue
                
                locals = {'filename': gcodefilename}