Distance markers 1.10.0+

Parent element name: dhill
Element name: distance-marker

TIP

distances attribute uses the following format: <min>-<max>@step. So for example, definition 0-50@5 will generate markers from 0 to 50 meter, with 5 meter step between each. You can also use <min>-<max> pattern, then to skip some distances, use skip-distances attribute with <min>-<max>@step format.

AttributeTypeDefault valueDescription
refxStringA reference to X-axis, which markers are based on
refzStringA reference to Z-axis, which axis are based on
angleFloat0.0Marker board rotation angle
r[1, 2]?[a, b]?Float0.1Marker board radius
edges+Integer4Marker board edges count
smoothBooleanFalseToggles smooth marker board edges
rearBooleanfalseToggles marker board rear side visibility
thickness+FloatMarker board thickness
dxFloat0.0Ending points of markers in position relative to X-axis
dyFloat0.0Ending points of markers in position relative to Y-axis
dzFloat0.0Ending points of markers in position relative to Z-axis
nyFloat0.0Ending points of markers in position perpendicular relative to dhill-top profile
nzFloat0.0Ending points of markers in position perpendicular relative to refz profile
font-size+Float0.1Marker label font size
font-colorColor0x000000Marker label font color
front-colorColor0xFFFFFFMarker board front side color
rear-colorColor0xFFFFFFMarker board rear side color
side-colorColor0xFFFFFFMarker board side side color
invertBooleanFalseToggles marker board rear side visibility
digits+Integer0Numbers digits count to be displayed
label+StringLabel to be displayed
distancesStringDistances to be generated
skip-distancesStringDistances to be skipped
poleBooleanFalseToggles stick behind marker visibility
pole-r[b]?Float0.02Stick radius
pole-edges+IntegerStick edges count
pole-dheight+Float0Stick height
pole-colorColor0xFFFFFFStick color
pole-ddepthFloat0.0Stick position relative to the Y-axis
pole-smoothFloat0.0Toggles smooth stick sides

Code snippets

<hill version="DSJ4-1.10.0">
    <!-- Rest of code omitted for clearance -->
    <dhill>
        <!-- ... -->
        <distance-marker refz="dhill-left" refy="dhill-top" distances="80-250@5" r="0.4" edges="20" smooth="true" thickness="0.005" dx="0" dy="0.55" dz="-0.02" nz="0" ny="0.0" font-size="0.5" font-color="0xA00000" rear="false" color="0xFFD700"/>
        <distance-marker refz="dhill-right" refy="dhill-top" distances="80-250@5" r="0.4" edges="20" smooth="true" thickness="0.005" dx="0" dy="0.55" dz="0.02" nz="0" ny="0.0" font-size="0.5" font-color="0xA00000" rear="false" color="0xFFD700"/>
        <distance-marker refz="dhill-left" refy="dhill-top" distances="80-250" skip-distances="80-250@5" r="0.25" edges="20" smooth="true" thickness="0.005" dx="0" dy="0.6" dz="-0.02" nz="0" ny="0.0" font-size="0.5" font-color="0x000000" rear="false" color="0xFFD700" digits="1"/>
        <distance-marker refz="dhill-right" refy="dhill-top" distances="80-250" skip-distances="80-250@5" r="0.25" edges="20" smooth="true" thickness="0.005" dx="0" dy="0.6" dz="0.02" nz="0" ny="0.0" font-size="0.5" font-color="0x000000" rear="false" color="0xFFD700" digits="1"/>
    </dhill>
</hill>

0