home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Inkscape / Inkscape-0.48.2-1-win32.exe / share / extensions / measure.inx < prev    next >
Extensible Markup Language  |  2011-07-08  |  3KB  |  50 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
  3.     <_name>Measure Path</_name>
  4.     <id>com.njhurst.filter.measure_length</id>
  5.     <dependency type="executable" location="extensions">measure.py</dependency>
  6.     <dependency type="executable" location="extensions">inkex.py</dependency>
  7.     <param name="tab" type="notebook">
  8.         <page name="measure" _gui-text="Measure">
  9.             <param name="type" type="enum" _gui-text="Measurement Type: ">
  10.                 <_item value="length">Length</_item>
  11.                 <_item value="area">Area</_item>
  12.             </param>
  13.             <param name="fontsize" type="int" min="1" max="1000" _gui-text="Font size [px]">12</param>
  14.             <param name="offset" type="float" min="-10000" max="10000" _gui-text="Offset [px]">-6</param>
  15.             <param name="precision" type="int" min="0" max="25" _gui-text="Precision">2</param>
  16.             <param name="scale" type="float" min="1e-8" max="1e10" _gui-text="Scale Factor (Drawing:Real Length) = 1:">1</param>
  17.             <!--<param name="orient" type="boolean" _gui-text="Keep text orientation upright">true</param>-->
  18.             <!--<param name="unit" type="string" _gui-text="Unit {km|m|cm|mm|in|px|pt}">mm</param>-->
  19.             <param name="unit" type="enum" _gui-text="Length Unit: ">
  20.                 <item value="px">px</item>
  21.                 <item value="pt">pt</item>
  22.                 <item value="in">in</item>
  23.                 <item value="ft">ft</item>
  24.                 <item value="yd">yd</item>
  25.                 <item value="mm">mm</item>
  26.                 <item value="cm">cm</item>
  27.                 <item value="m">m</item>
  28.                 <item value="km">km</item>
  29.             </param>
  30.         </page>
  31.         <page name="desc" _gui-text="Help">
  32.             <_param name="measurehelp" type="description" xml:space="preserve">This effect measures the length, or area, of the selected path and adds it as a text-on-path object with the selected unit.
  33.             
  34.   * The number of significant digits can be controlled by the Precision field.
  35.   * The Offset field controls the distance from the text to the path.
  36.   * The Scale factor can be used to make measurements in scaled drawings. For example, if 1 cm in the drawing equals 2.5 m in the real world, Scale must be set to 250.
  37.   * When calculating area, the result should be precise for polygons and Bezier curves. If a circle is used, the area may be too high by as much as 0.03%.</_param>
  38.         </page>
  39.     </param>
  40.     <effect>
  41.         <object-type>path</object-type>
  42.         <effects-menu>
  43.             <submenu _name="Visualize Path"/>
  44.         </effects-menu>
  45.     </effect>
  46.     <script>
  47.         <command reldir="extensions" interpreter="python">measure.py</command>
  48.     </script>
  49. </inkscape-extension>
  50.