Difference between revisions of "Line definition"
Jan.Gajdosik (talk | contribs) (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...") |
(No difference)
|
Revision as of 15:52, 31 May 2022
Used to store line definition.
Data XML definition[edit | edit source]
Property | XML | Description | Default |
---|---|---|---|
Line direction | [A] Direction
|
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>
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)