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__
cStringIO
fabmetheus_utilities.euclidean
fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret
fabmetheus_utilities.gcodec
math
os
fabmetheus_utilities.solids.trianglemesh

 
Classes
       
SVGWriter

 
class SVGWriter
    A base class to get an svg skein from a carving.
 
  Methods defined here:
__init__(self, carving, decimalPlacesCarried, perimeterWidth=None)
addLayerBegin(self, layerIndex, z)
Add the start lines for the layer.
addLayerEnd(self, rotatedBoundaryLayer)
Add the path and end lines for the layer.
addLine(self, line)
Add a line of text and a newline to the output.
addLines(self, lines)
Add lines of text to the output.
addRotatedLoopLayerToOutput(self, layerIndex, rotatedBoundaryLayer)
Add rotated boundary layer to the output.
addRotatedLoopLayersToOutput(self, rotatedBoundaryLayers)
Add rotated boundary layers to the output.
getInitializationForOutputSVG(self, procedureName)
Get initialization gcode for the output.
getReplacedSVGTemplate(self, fileName, procedureName, rotatedBoundaryLayers)
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.
getSVGLoopString(self, loop)
Get the svg loop string.
getSVGPathString(self, path)
Get the svg path string.

 
Functions
       
getCarving(fileName)
Get a carving for the file using an import plugin.
getParameterFromJavascript(lines, parameterName, parameterValue)
Get a parameter from lines of javascript.
getReplaceWithLine(line, replaceWithTable)
Parse the line and replace it a table key is in the line.
getReplacedInQuotes(original, replacement, text)
Replace what follows in quotes after the word.
getReplacedWordAndInQuotes(original, replacement, text)
Replace the word in the text and replace what follows in quotes after the word.
getTruncatedRotatedBoundaryLayers(repository, rotatedBoundaryLayers)
Get the truncated rotated boundary layers.
parseLineReplaceWithTable(firstWordTable, line, output, replaceWithTable)
Parse the line and replace it if the first word of the line is in the first word table.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__date__ = '$Date: 2008/02/05 $'
__license__ = 'GPL 3.0'
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

 
Author
        Enrique Perez (perez_enrique@yahoo.com)