Difference between revisions of "Hatch and Color (Named Data Type)"
Jump to navigation
Jump to search
Petr.Bures (talk | contribs) m |
Jan.Gajdosik (talk | contribs) |
||
| Line 63: | Line 63: | ||
<code><Item ID="{331AD61E-8263-4C60-B19D-B937B125F1A6}" Hatch="GEO_GRANITE" Color="$00000000" Background="clDefault" Saturation="50"></code> | <code><Item ID="{331AD61E-8263-4C60-B19D-B937B125F1A6}" Hatch="GEO_GRANITE" Color="$00000000" Background="clDefault" Saturation="50"></code> | ||
<code> < | <code> <Fill Type="Standard" Direction="0" Distance="2" Shift="4"></code> | ||
<code> <Line Type="ElemLine"></code> | <code> <Line Type="ElemLine"></code> | ||
| Line 77: | Line 77: | ||
<code> </Line></code> | <code> </Line></code> | ||
<code> </ | <code> </Fill></code> | ||
<code></Item></code> | <code></Item></code> | ||
Revision as of 09:16, 6 June 2022
Used to store soil pattern definition, which is used to fill areas with soils in graphs etc.
Template XML definition
| Property | XML | Description | Presence | Default |
|---|---|---|---|---|
| Settings | [E] Settings
|
required |
Example of Template XML
<Item ID="{331AD61E-8263-4C60-B19D-B937B125F1A6}" ItemType="SoilPattern">
<Name Lang="CS" Text="Vzorek" />
<Settings />
</Item>
Data XML definition
| 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">
<Fill Type="Standard" 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>
</Fill>
</Item>