Line definition

From wiki.fine.cz
Jump to navigation Jump to search

Used to store line definition.

Data XML definition

Property XML Description Default
Line type [A] Type Type of line defined as StandardLine or ElemeLine (empty)
StandardLine
Property XML Description Default
Line width [A] Width Thickness of line [mm], if folowed by *, means multiple of default width 1*
Color [A] Color Color of line clDefault

Example of Data XML

<Line Type="StandardLine" Width="2.5*" Color="clFill" />

ElemLine

Line consisting of varius elements.

Property XML Description Default
Line type [A] Type Type of line defined as StandardLine or ElemeLine (empty)
Elem

Element of line

Property XML Description Default
Element type [A] Kind Type of element defined as DefaultWidth, DefaultColor, Width, Color, Move, Line, Point, Circle, RegularPolygon, Polygon or Arc (empty)
DefaultWidth

Following elements are drawn with default width.

DefaultColor

Following elements are drawn with default color.

Width

Following elements are drawn with given width.

Property XML Description Default
Width [A] ToolWidth Thickness of following elements [mm], if folowed by *, means multiple of default width (empty)
Color

Following elements are drawn with given color.

Property XML Description Default
Color [A] Color Color of following elements (empty)
Move

Move to next position.

<Elem Kind="Move" DX="2" DY="0" />

Line

Draw line to next position.

<Elem Kind="Line" DX="2" DY="0" />

Point

Draw point.

Circle

Draw circle.

Property XML Description Default
Radius [A] Radius Radius of circle [mm] (empty)
Fill [A] ShapeFilled Draw filled (empty)

<Elem Kind="Circle" Radius="1" ShapeFilled="false" />

RegularPolygon

Draw regular polygon.

Property XML Description Default
Radius [A] Radius Radius of regular polygon (empty)
Fill [A] ShapeFilled Draw filled (empty)
Vertices count [A] PolygonN Number of vertices of regular polygon (empty)
Polygon orientation [A] PolygonAngle Orientation of regular polygon (empty)

<Elem Kind="RegularPolygon" Radius="0.5" ShapeFilled="true" PolygonN="4" PolygonAngle="0.785398163397448" />

Polygon
Property XML Description Default
Vertices [E] Pt Vertice of polygon (empty)

<Elem Kind="Polygon" ShapeFilled="true">

  <Pt X="0" Y="0.5" />

  <Pt X="0" Y="2.5" />

  <Pt X="0.5" Y="3" />

  <Pt X="1.5" Y="2.75" />

  <Pt X="1.75" Y="1.5" />

  <Pt X="2.25" Y="1" />

  <Pt X="1.75" Y="0.25" />

  <Pt X="1" Y="0" />

  <Pt X="0.5" Y="0.25" />

</Elem>

Arc
Property XML Description Default
Coordinate change X [A] DX End coordinate X of arc [mm] (empty)
Coordinate change Y [A] DY End coordinate Y of arc [mm] (empty)
Arc height [A] Height Height of arc [mm], positive value is to left of line (empty)

<Elem Kind="Arc" DX="2" DY="0" Height="1" />

Example of Data XML

<Line Type="ElemLine">

  <Elem Kind="Line" DX="2" DY="0" />

  <Elem Kind="Line" DX="-1" DY="1.73205080756888" />

  <Elem Kind="Line" DX="-1" DY="-1.73205080756888" />

  <Elem Kind="Move" DX="4" DY="0" />

<Elem Kind="Polygon" ShapeFilled="true">

    <Pt X="0" Y="0.5" />

    <Pt X="0" Y="2.5" />

    <Pt X="0.5" Y="3" />

    <Pt X="1.5" Y="2.75" />

    <Pt X="1.75" Y="1.5" />

    <Pt X="2.25" Y="1" />

    <Pt X="1.75" Y="0.25" />

    <Pt X="1" Y="0" />

    <Pt X="0.5" Y="0.25" />

  </Elem>

  <Elem Kind="Move" DX="2" DY="0" />

</Line>