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_template.tmpl 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
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)
addInitializationToOutputSVG(self, procedureName)
Add initialization gcode to the output.
addLayerStart(self, layerIndex, z)
Add the start 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.
addShutdownToOutput(self)
Add shutdown svg to the output.
getReplacedSVGTemplateLines(self, fileName, rotatedBoundaryLayers)
Get the lines of text from the svg_template.tmpl 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.
getReplacedInQuotes(original, replacement, text)
Replace what follows in quotes after the word.
getReplacedTagString(replacementTagString, tagID, text)
Get text with the tag string replaced.
getReplacedWordAndInQuotes(original, replacement, text)
Replace the word in the text and replace what follows in quotes after the word.

 
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)