Class OwnShipRenderer
- Namespace
- EncDotNet.S100.Renderers.Mapsui.DynamicSources
- Assembly
- EncDotNet.S100.Renderers.Mapsui.dll
Own-ship renderer that draws a true-scale hull outline when the viewport is zoomed in far enough for the vessel to be visually distinguishable, falls back to a coloured disc when zoomed out, and decorates the course / speed vector with an arrowhead in both modes. Honours the IEC 62388 CCRP offsets carried by DynamicVesselGeometry on the feature.
public sealed class OwnShipRenderer : IDynamicFeatureRenderer
- Inheritance
-
OwnShipRenderer
- Implements
- Inherited Members
Remarks
The actual symbol-emission logic is shared with
AisVesselRenderer via the internal
EncDotNet.S100.Renderers.Mapsui.DynamicSources.VesselSymbology helper — own-ship simply binds the
helper to the S-52 own-ship blue palette.
Standards alignment (see docs/design/own-ship-symbology.md
§1 for citations): hull = SY(OWNSHP02), pictogram = SY(OWNSHP01),
CCRP cross = §8.3.1, COG vector convention from S-52 Annex A.
Fields
BowTaperRatio
Bow-taper ratio.
public const double BowTaperRatio = 0.7
Field Value
CcrpCrossPx
Pixel half-span of each arm of the CCRP cross (per IHO S-52 §8.3.1).
public const double CcrpCrossPx = 6
Field Value
HeadingArrowPx
Pixel size of the arrowhead on the course / speed vector (S-52 COG vector convention).
public const double HeadingArrowPx = 10
Field Value
MinVesselPixels
Pixel size at which the hull outline begins to display (≈ 6 mm at 96 dpi — IHO S-52 Ed 6.1 §§7.4.5 / 13.2.7).
public const double MinVesselPixels = 22
Field Value
Methods
CanRender(DynamicFeature)
Returns true if this renderer is willing to
produce output for feature. Used by
CompositeDynamicFeatureRenderer for ordered
fallthrough.
public bool CanRender(DynamicFeature feature)
Parameters
featureDynamicFeature
Returns
Render(DynamicFeature)
Produces zero or more Mapsui features for
feature. May return an empty sequence
when the feature is unsupported or degenerate.
public IEnumerable<IFeature> Render(DynamicFeature feature)
Parameters
featureDynamicFeature
Returns
- IEnumerable<IFeature>