summaryrefslogtreecommitdiffstats
path: root/share/extensions/plotter.inx
diff options
context:
space:
mode:
authorSebastian Wüst <sebi@timewaster.de>2013-07-13 17:21:28 +0000
committerSebastian Wüst <sebi@timewaster.de>2013-07-13 17:21:28 +0000
commit7858bd3f3f6acf19964274472062546d84986cad (patch)
tree8820358b1366e15fedcf12d8079496d57ddd56dc /share/extensions/plotter.inx
parentUse Jon Cruz info about OptRect to correctly get area height and width (diff)
downloadinkscape-7858bd3f3f6acf19964274472062546d84986cad.tar.gz
inkscape-7858bd3f3f6acf19964274472062546d84986cad.zip
moved main hpgl processing to new classes, moved plotter control to a extension dialog
(bzr r12417.1.1)
Diffstat (limited to 'share/extensions/plotter.inx')
-rw-r--r--share/extensions/plotter.inx72
1 files changed, 72 insertions, 0 deletions
diff --git a/share/extensions/plotter.inx b/share/extensions/plotter.inx
new file mode 100644
index 000000000..0dc5a35fc
--- /dev/null
+++ b/share/extensions/plotter.inx
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Plot</_name>
+ <id>org.ekips.filter.plot</id>
+ <dependency type="executable" location="extensions">plotter.py</dependency>
+ <dependency type="executable" location="extensions">hpgl_decoder.py</dependency>
+ <dependency type="executable" location="extensions">hpgl_encoder.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <_param name="introduction" type="description">Please make sure that all objects you want to plot are converted to paths. The plot will automatically be aligned to the zero point.</_param>
+ <param name="tab" type="notebook">
+ <page name="plotter" _gui-text="Plotter Settings">
+ <param name="pen" type="int" min="1" max="10" _gui-text="Pen number" _gui-description="The number of the pen (tool) to use, on most plotters 1 (Standard: '1')">1</param>
+ <param name="resolutionX" type="float" min="1.0" max="4096.0" precision="1" _gui-text="Resolution X (dpi)" _gui-description="The amount of steps the cutter moves if it moves for 1 inch on the X axis - Try different settings to find the one that fits your plotter (Default: 1016.0)">1016.0</param>
+ <param name="resolutionY" type="float" min="1.0" max="4096.0" precision="1" _gui-text="Resolution Y (dpi)" _gui-description="The amount of steps the cutter moves if it moves for 1 inch on the Y axis - Try different settings to find the one that fits your plotter (Default: 1016.0)">1016.0</param>
+ <param name="mirrorX" type="boolean" _gui-text="Mirror X-axis" _gui-description="Check this to mirror the X axis - Try different settings to find the one that fits your plotter (Default: Unchecked)">false</param>
+ <param name="mirrorY" type="boolean" _gui-text="Mirror Y-axis" _gui-description="Check this to mirror the Y axis - Try different settings to find the one that fits your plotter (Default: Unchecked)">false</param>
+ <param name="orientation" type="optiongroup" appearance="minimal" _gui-text="Orientation" _gui-description="Orientation of the plot - Try different settings to find the one that fits your plotter (Default: 90°)">
+ <option value="90">90°</option>
+ <option value="-90">-90°</option>
+ <option value="0">0°</option>
+ <option value="180">180°</option>
+ </param>
+ <param name="center" type="boolean" _gui-text="Center zero point" _gui-description="Check this if the plotter needs the zero point to be in the center of the drawing - Try different settings to find the one that fits your plotter (Default: Unchecked)">false</param>
+ </page>
+ <page name="misc" _gui-text="Connection">
+ <param name="serialPort" type="string" _gui-text="Serial Port" _gui-description="The port of your serial connection, on Windows something like 'COM1', on Linux something like: '/dev/ttyUSB0' (Default: COM1)">COM1</param>
+ <param name="serialBaudRate" type="optiongroup" appearance="minimal" _gui-text="Serial Baud rate" _gui-description="The Baud rate of your serial connection (Default: 9600)">
+ <option value="110">110</option>
+ <option value="300">300</option>
+ <option value="600">600</option>
+ <option value="1200">1200</option>
+ <option value="2400">2400</option>
+ <option value="4800">4800</option>
+ <option value="9600">9600</option>
+ <option value="14400">14400</option>
+ <option value="19200">19200</option>
+ <option value="28800">28800</option>
+ <option value="38400">38400</option>
+ <option value="56000">56000</option>
+ <option value="57600">57600</option>
+ <option value="115200">115200</option>
+ </param>
+ <_param name="serialHelp" type="description">This can be a physical serial connection or a virtual USB-to-Serial bridge. Ask your plotter manufacturer for drivers if needed.</_param>
+ <_param name="parallelHelp" type="description">Parallel (LPT) connections are not supported.</_param>
+ </page>
+ <page name="overcut" _gui-text="Overcut">
+ <param name="useOvercut" type="boolean" _gui-text="Use overcut" _gui-description="Check this to use the overcut, if not checked the 'Overcut' parameter is unused (Default: Checked)">true</param>
+ <param name="overcut" type="float" min="0.0" max="100.0" precision="2" _gui-text="Overcut (mm)" _gui-description="The distance in mm that will be cut over the starting point of the path to prevent open paths (Default: 1.00)">1.00</param>
+ </page>
+ <page name="toolOffset" _gui-text="Tool Offset">
+ <param name="useToolOffset" type="boolean" _gui-text="Use tool offset correction" _gui-description="Check this to use the tool offset correction, if not checked the 'Tool offset', 'Return Factor' and 'Precut' parameters are unused (Default: Checked)">true</param>
+ <param name="toolOffset" type="float" min="0.0" max="20.0" precision="2" _gui-text="Tool offset (mm)" _gui-description="The offset from the tool tip to the tool axis in mm (Default: 0.25)">0.25</param>
+ <param name="toolOffsetReturn" type="float" min="1.0" max="10.0" precision="2" _gui-text="Return factor" _gui-description="The return factor multiplied by the tool offset is the length that is used to guide the tool back to the original path after an overcut is performed, you can only determine this value by experimentation (Default: 2.50)">2.50</param>
+ <param name="precut" type="boolean" _gui-text="Use precut" _gui-description="Check this to cut a small line before the real drawing to align the tool orientation for the first cut (Default: Checked)">true</param>
+ <_param name="offsetNote" type="description">Please note that using the tool offset correction will move your drawing away from the zero point on both axes by the tool offset specified.</_param>
+ </page>
+ <page name="misc" _gui-text="Miscellaneous">
+ <param name="flat" type="float" min="0.1" max="10.0" precision="1" _gui-text="Curve flatness" _gui-description="Curves are divided into lines, this number controls how fine the curves will be reproduced, the smaller the finer (Default: '1.2')">1.2</param>
+ <param name="offsetX" type="float" min="-10000.0" max="10000.0" precision="2" _gui-text="X offset (mm)" _gui-description="The offset to move your plot away from the zero point in mm (Default: '0.00')">0.00</param>
+ <param name="offsetY" type="float" min="-10000.0" max="10000.0" precision="2" _gui-text="Y offset (mm)" _gui-description="The offset to move your plot away from the zero point in mm (Default: '0.00')">0.00</param>
+ </page>
+ </param>
+ <effect needs-live-preview="true">
+ <object-type>path</object-type>
+ <effects-menu>
+ <submenu _name="Plotter"/>
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">plotter.py</command>
+ </script>
+</inkscape-extension>