Difference between revisions of "Line definition"

From wiki.fine.cz
Jump to navigation Jump to search
(Created page with "Used to store line definition. ====Data XML definition[edit | edit source]==== {| class="wikitable" !Property !XML !Description !Default |- |Line direction |<sup>[A]</sup> <code>Direction</code> |Direction of line [deg] |(empty) |- |Line origin |<sup>[E]</sup> <code>Origin</code> |Origin of line X, Y value in [mm] |0, 0 |- |Line distance |<sup>[A]</sup> <code>Background</code> |Distance of...")
 
Line 1: Line 1:
Used to store line definition.
Used to store line definition.


====Data XML definition[edit | edit source]====
====Data XML definition====
{| class="wikitable"
{| class="wikitable"
!Property
!Property
Line 8: Line 8:
!Default
!Default
|-
|-
|Line direction
|Line type
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Direction</code>
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Type</code>
|Direction of line [deg]
|Direction of line [deg]
|(empty)
|(empty)
Line 45: Line 45:


<code></Line></code>
<code></Line></code>
    FDirection         : Double;                         // smer vedeni car
    FOrigin            : TUnitsPt;                       // pocatek prvni cary
    FDistance          : TE2RandomUnitsSize;             // vzdalenost mezi carami
    FShift             : TE2RandomUnitsSize;             // posun pocatku car
    FLines             : TBsFastObjectList;              // seznam car
    FWidth             : PUnitsSize;                     // tloustka car vyplne (NIL = pouziti DefaultPen)
    FColor             : TColor;                         // barva carove vyplne (clDefault = pouziti DefaultPen/DefaultBrush)

Revision as of 08:34, 1 June 2022

Used to store line definition.

Data XML definition

Property XML Description Default
Line type [A] Type Direction of line [deg] (empty)
Line origin [E] Origin Origin of line X, Y value in [mm] 0, 0
Line distance [A] Background Distance of parallel lines [mm] (empty)
Line shift [A] Shift Shift of next line (in direction of line) [mm] (empty)
Line definition [E] Line Definition of the line, if there is more than 1 line definition, lines are drawn in sequence Line1->Distance->Line2->Distance->...->Line1->... (empty)

Example of Data XML

<Line Type="ElemLine">

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

  <Elem Kind="Move" DX="-1" DY="1" />

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

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

</Line>