Package fabmetheus_utilities :: Module svg_writer :: Class SVGWriter
[hide private]
[frames] | no frames]

Class SVGWriter

source code

A base class to get an svg skein from a carving.

Instance Methods [hide private]
 
__init__(self, addLayerTemplateToSVG, cornerMaximum, cornerMinimum, decimalPlacesCarried, layerThickness, perimeterWidth=None)
Initialize.
source code
 
addLayerBegin(self, layerIndex, rotatedLoopLayer)
Add the start lines for the layer.
source code
 
addOriginalAsComment(self, xmlElement)
Add original xmlElement as a comment.
source code
 
addRotatedLoopLayerToOutput(self, layerIndex, rotatedLoopLayer)
Add rotated boundary layer to the output.
source code
 
addRotatedLoopLayersToOutput(self, rotatedLoopLayers)
Add rotated boundary layers to the output.
source code
 
getReplacedSVGTemplate(self, fileName, procedureName, rotatedLoopLayers, xmlElement=None)
Get the lines of text from the layer_template.svg file.
source code
 
getRounded(self, number)
Get number rounded to the number of carried decimal places as a string.
source code
 
getRoundedComplexString(self, point)
Get the rounded complex string.
source code
 
getSVGStringForLoop(self, loop)
Get the svg loop string.
source code
 
getSVGStringForLoops(self, loops)
Get the svg loops string.
source code
 
getSVGStringForPath(self, path)
Get the svg path string.
source code
 
setMetadataNoscriptElement(self, key, prefix, value)
Set the metadata value and the text.
source code
 
setDimensionTexts(self, key, valueString)
Set the texts to the valueString followed by mm.
source code
 
setTexts(self, key, valueString)
Set the texts to the valueString.
source code
 
getTransformString(self)
Get the svg transform string.
source code