Difference between revisions of "Hatch drawing definition"
Jan.Gajdosik (talk | contribs) |
Jan.Gajdosik (talk | contribs) |
||
Line 1: | Line 1: | ||
Used to store hatch definition. | Used to store hatch definition. | ||
==== Data XML definition[edit | edit source] ==== | ==== Data XML definition[edit | edit source] ==== | ||
Line 8: | Line 8: | ||
!Default | !Default | ||
|- | |- | ||
| | |Line direction | ||
|<sup>[[Legend of XML elements|[A]]]</sup> <code> | |<sup>[[Legend of XML elements|[A]]]</sup> <code>Direction</code> | ||
| | |Direction of line [deg] | ||
|(empty) | |(empty) | ||
|- | |- | ||
| | |Line origin | ||
|<sup>[[Legend of XML elements|[ | |<sup>[[Legend of XML elements|[E]]]</sup> <code>Origin</code> | ||
|[ | |Origin of line X, Y value in [mm] | ||
| | |0, 0 | ||
|- | |- | ||
| | |Line distance | ||
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Background</code> | |<sup>[[Legend of XML elements|[A]]]</sup> <code>Background</code> | ||
| | |Distance of parallel lines [mm] | ||
|(empty) | |||
|- | |- | ||
| | |Line shift | ||
|<sup>[[Legend of XML elements|[A]]]</sup> <code> | |<sup>[[Legend of XML elements|[A]]]</sup> <code>Shift</code> | ||
| | |Shift of next line (in direction of line) [mm] | ||
| | |(empty) | ||
|- | |- | ||
| | |Line definition | ||
|<sup>[[Legend of XML elements|[E]]]</sup> <code> | |<sup>[[Legend of XML elements|[E]]]</sup> <code>Line</code> | ||
|Definition of the [[Hatch drawing definition| | |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->... | ||
|(empty) | |(empty) | ||
|} | |} | ||
'''Example of Data XML''' | '''Example of Data XML''' | ||
<code>< | <code><HatchDefinition Direction="0" Distance="2" Shift="4"></code> | ||
<code> <Line Type="ElemLine"></code> | |||
<code> <Elem Kind="Line" DX="2" DY="0" /></code> | |||
<code> <Elem Kind="Move" DX="-1" DY="1" /></code> | |||
<code> <Elem Kind="Line" DX="0" DY="-2" /></code> | |||
<code> <Elem Kind="Move" DX="7" DY="0" /></code> | |||
<code> </Line></code> | |||
<code> | <code></HatchDefinition></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 15:45, 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)