fabmetheus_utilities.svg_writer ($Date: 2008/02/05 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/svg_writer.py

`Svg_writer is a class and collection of utilities to read from and write to an svg file.
Svg_writer uses the layer_template.svg file in the templates folder in the same folder as svg_writer, to output an svg file.`

Modules
`` |  |
__init__ fabmetheus_utilities.archive cStringIO | fabmetheus_utilities.euclidean fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret fabmetheus_utilities.gcodec | math os fabmetheus_utilities.xml_simple_reader | fabmetheus_utilities.xml_simple_writer

Classes
`` |  | SVGWriter
class SVGWriter
`` | `A base class to get an svg skein from a carving.`
| Methods defined here: __init__(self, addLayerTemplateToSVG, cornerMaximum, cornerMinimum, decimalPlacesCarried, layerThickness, perimeterWidth=None) `Initialize.` addLayerBegin(self, layerIndex, loopLayer) `Add the start lines for the layer.` addLoopLayerToOutput(self, layerIndex, loopLayer) `Add rotated boundary layer to the output.` addLoopLayersToOutput(self, loopLayers) `Add rotated boundary layers to the output.` addOriginalAsComment(self, elementNode) `Add original elementNode as a comment.` getReplacedSVGTemplate(self, fileName, loopLayers, procedureName, elementNode=None) `Get the lines of text from the layer_template.svg file.` getRounded(self, number) `Get number rounded to the number of carried decimal places as a string.` getRoundedComplexString(self, point) `Get the rounded complex string.` getSVGStringForLoop(self, loop) `Get the svg loop string.` getSVGStringForLoops(self, loops) `Get the svg loops string.` getSVGStringForPath(self, path) `Get the svg path string.` getTransformString(self) `Get the svg transform string.` setDimensionTexts(self, key, valueString) `Set the texts to the valueString followed by mm.` setMetadataNoscriptElement(self, key, prefix, value) `Set the metadata value and the text.` setTexts(self, key, valueString) `Set the texts to the valueString.`

Functions
`` |  | getCarving(fileName) `Get a carving for the file using an import plugin.` getCommentElement(elementNode) `Get a carving for the file using an import plugin.` getSVGByLoopLayers(addLayerTemplateToSVG, carving, loopLayers) `Get the svg text.` getSliceDictionary(elementNode) `Get the metadata slice attribute dictionary.` getSliceElementNodes(elementNode) `Get the slice elements.` getTruncatedRotatedBoundaryLayers(loopLayers, repository) `Get the truncated rotated boundary layers.` setSVGCarvingCorners(cornerMaximum, cornerMinimum, layerThickness, loopLayers) `Parse SVG text and store the layers.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/02/05 $' __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384) globalOriginalTextString = '<!-- Original XML Text:\n'

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)