vectorwrite ($Date: 2008/21/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap_v0.1/vectorwrite.py

Analyze is a script to analyze and comment a gcode file.
 
To run analyze, install python 2.x on your machine, which is avaliable from http://www.python.org/download/
 
Then in the folder which analyze is in, type 'python' in a shell to run the python interpreter.  Finally type
'from analyze import *' to import this program.
To get documentation for this program, open a shell in the fill.py directory, then type 'pydoc fill.py'.
 
 
This example analyzes and comments the gcode file Hollow Square.gcode.  This example is run in a terminal in the folder which contains Hollow Square.gcode and analyze.py.
 
>>> import fillet
Fillet has been imported.
The gcode files in this directory that are not already beveled or filleted are the following:
['Hollow Square.gcode']
 
 
>>> fillet.arcPoint()
File Hollow Square.gcode is being filleted into arc points.
( GCode generated by March 29,2007 Skeinforge )
( Extruder Initialization )
..
many lines of gcode
..
The arc point file is saved as Hollow Square_arc_point.gcode
 
 
>>> fillet.arcPointFile("Hollow Square.gcode")
File Hollow Square.gcode is being filleted into arc points.
..
The arc point file is saved as Hollow Square_arc_point.gcode
 
 
>>> fillet.arcPointFiles(["Hollow Square.gcode"])
File Hollow Square.gcode is being filleted into arc points.
..
The arc point file is saved as Hollow Square_arc_point.gcode
 
 
>>> fillet.arcRadius()
File Hollow Square.gcode is being filleted into arc radiuses.
..
The arc radius file is saved as Hollow Square_arc_radius.gcode
 
 
>>> fillet.arcRadiusFile("Hollow Square.gcode")
File Hollow Square.gcode is being filleted into arc radiuses.
..
The arc radius file is saved as Hollow Square_arc_radius.gcode
 
 
>>> fillet.arcRadiusFiles(["Hollow Square.gcode"])
File Hollow Square.gcode is being filleted into arc radiuses.
..
The arc radius file is saved as Hollow Square_arc_radius.gcode
 
 
>>> fillet.arcSegment()
File Hollow Square.gcode is being arc segmented.
..
The arc segment file is saved as Hollow Square_arc_segment.gcode
 
 
>>> fillet.arcSegmentFile("Hollow Square.gcode")
File Hollow Square.gcode is being arc segmented.
..
The arc segment file is saved as Hollow Square_arc_segment.gcode
 
 
>>> fillet.arcSegmentFiles(["Hollow Square.gcode"])
File Hollow Square.gcode is being arc segmented.
..
The arc segment file is saved as Hollow Square_arc_segment.gcode

 
Modules
       
cStringIO
euclidean
gcodec
math
preferences

 
Classes
       
VectorWindow
VectorwritePreferences
VectorwriteSkein

 
class VectorWindow
    A class to accumulate a scalable vector graphics text.
 
  Methods defined here:
__init__(self)
__repr__(self)
Get the string representation of this VectorWindow.
addColoredLine(self, pointFirst, pointSecond, colorName)
Add a colored line to the text.
addFontHeight(self, fontSize)
Add quadruple the font size to the height.
addLine(self, line)
Add a line to the text and a newline.
addPane(self)
Add a new window pane for drawing lines.
addText(self, fontSize, line)
Add a colored line to the text.
getVectorFormattedText(self)
Get the text in scalable vector graphics format.
setPaneCorners(self, bottomLeftCorner, topRightCorner)
Set the corners for the window pane.

 
class VectorwritePreferences
    A class to handle the vectorwrite preferences.
 
  Methods defined here:
__init__(self)
Set the default preferences, execute title & preferences filename.
execute(self)
Write button has been clicked.

 
class VectorwriteSkein
    A class to write a get a scalable vector graphics text for a gcode skein.
 
  Methods defined here:
__init__(self)
addToPath(self, location, nextLine)
Add a point to travel and maybe extrusion.
initializeActiveLocation(self)
Set variables to default.
linearCorner(self, splitLine)
Update the bounding corners.
linearMove(self, splitLine, nextLine)
Get statistics for a linear move.
parseCorner(self, line)
Parse a gcode line and use the location to update the bounding corners.
parseGcode(self, gcodeText, vectorwritePreferences)
Parse gcode text and store the commented gcode.
parseLine(self, line, nextLine)
Parse a gcode line and add it to the commented gcode.

 
Functions
       
getVectorGcode(gcodeText, vectorwritePreferences=None)
Write a gcode text.
main(hashtable=None)
Display the vectorwrite dialog.
writeSkeinforgeVectorFile(filename)
Write scalable vector graphics for a skeinforge gcode file, if 'Write Scalable Vector Graphics for Skeinforge Chain' is selected.
writeVectorFile(filename='')
Write scalable vector graphics for a gcode file.  If no filename is specified, write scalable vector graphics for the first gcode file in this folder.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__credits__ = 'Nophead <http://hydraraptor.blogspot.com/>'
__date__ = '$Date: 2008/21/04 $'
__license__ = 'GPL 3.0'

 
Author
        Enrique Perez (perez_enrique@yahoo.com)

 
Credits
        Nophead <http://hydraraptor.blogspot.com/>