Difference between revisions of "Hatch drawing definition"

From wiki.fine.cz
Jump to navigation Jump to search
Line 30: Line 30:
|Line definition
|Line definition
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Line</code>
|<sup>[[Legend of XML elements|[E]]]</sup> <code>Line</code>
|Definition of the [[Hatch drawing definition|line]], if there is more than 1 line definition, lines are drawn in sequence Line1->Distance->Line2->Distance->...->Line1->...
|Definition of the [[Line definition|line]], if there is more than 1 line definition, lines are drawn in sequence Line1->Distance->Line2->Distance->...->Line1->...
|(empty)
|(empty)
|}
|}

Revision as of 15:50, 31 May 2022

Used to store hatch 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

<HatchDefinition Direction="0" Distance="2" Shift="4">

  <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>

</HatchDefinition>


    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)