Difference between revisions of "Hatch drawing definition"
Jump to navigation
Jump to search
Petr.Bures (talk | contribs) (Created page with "Jan Gajdošík will prepare this page") |
Jan.Gajdosik (talk | contribs) |
||
Line 1: | Line 1: | ||
Used to store hatch definition. | |||
==== Data XML definition[edit | edit source] ==== | |||
{| class="wikitable" | |||
!Property | |||
!XML | |||
!Description | |||
!Default | |||
|- | |||
|Hatch pattern | |||
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Hatch</code> | |||
|Text identifier of Hatch pattern | |||
|(empty) | |||
|- | |||
|Hatch color | |||
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Color</code> | |||
|[[Colors|Color]] of the lines of the Hatch pattern | |||
|<code>clNone</code> | |||
|- | |||
|Background color | |||
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Background</code> | |||
|Background [[Colors|color]] used to fill area (<code>clNone</code> without fill, <code>clDefault</code> filled with color calculated from Hatch color by saturation) | |||
|<code>clDefault</code> | |||
|- | |||
|Background saturation | |||
|<sup>[[Legend of XML elements|[A]]]</sup> <code>Saturation</code> | |||
|Saturation of the background color for <code>clDefault</code>, range 10% to 90% | |||
|50 | |||
|- | |||
|Hatch definition | |||
|<sup>[[Legend of XML elements|[E]]]</sup> <code>HatchDefinition</code> | |||
|Definition of the [[Hatch drawing definition|hatch pattern drawing]], if ommited, hatch will be prepared using <code>Hatch</code> property | |||
|(empty) | |||
|} | |||
'''Example of Data XML''' | |||
<code><Item ID="{331AD61E-8263-4C60-B19D-B937B125F1A6}" Hatch="GEO_GRANITE" Color="$00000000" Background="clDefault" Saturation="50"></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> </HatchDefinition></code> | |||
<code></Item></code> |
Revision as of 15:31, 31 May 2022
Used to store hatch definition.
Data XML definition[edit | edit source]
Property | XML | Description | Default |
---|---|---|---|
Hatch pattern | [A] Hatch
|
Text identifier of Hatch pattern | (empty) |
Hatch color | [A] Color
|
Color of the lines of the Hatch pattern | clNone
|
Background color | [A] Background
|
Background color used to fill area (clNone without fill, clDefault filled with color calculated from Hatch color by saturation)
|
clDefault
|
Background saturation | [A] Saturation
|
Saturation of the background color for clDefault , range 10% to 90%
|
50 |
Hatch definition | [E] HatchDefinition
|
Definition of the hatch pattern drawing, if ommited, hatch will be prepared using Hatch property
|
(empty) |
Example of Data XML
<Item ID="{331AD61E-8263-4C60-B19D-B937B125F1A6}" Hatch="GEO_GRANITE" Color="$00000000" Background="clDefault" Saturation="50">
<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>
</Item>