skeinforge_tools.skeinforge_utilities.svg_codec ($Date: 2008/02/05 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/skeinforge_utilities/svg_codec.py

Svg_codec is a class and collection of utilities to read from and write to an svg file.

Svg_codec uses the svg_layer.template file in the same folder as svg_codec, to output an svg file.

 
Modules
       
__init__
cStringIO
skeinforge_tools.skeinforge_utilities.euclidean
skeinforge_tools.skeinforge_utilities.gcodec
skeinforge_tools.skeinforge_utilities.interpret
math
os
skeinforge_tools.skeinforge_utilities.triangle_mesh

 
Classes
       
SVGCodecSkein

 
class SVGCodecSkein
    A base class to get an svg skein from a carving.
 
  Methods defined here:
__init__(self)
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 svg_layer.template 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.
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)