Class EcdisCategoryMapper
Maps a cross-spec EcdisDisplayCategory to the
per-spec displayMode id declared in that spec's bundled
portrayal catalogue. Specs that only declare a single mode
(typically just StandardDisplay) fall back to null
for non-Standard categories — meaning "no mode filter, render
everything", matching the bundled catalogue's authoring intent.
public static class EcdisCategoryMapper
- Inheritance
-
EcdisCategoryMapper
- Inherited Members
Methods
Map(string, EcdisDisplayCategory, IReadOnlySet<string>)
Resolves the ECDIS category for a given spec to a
ActiveDisplayModeId value.
Returns null for "All" (no filter) or for specs that
don't declare per-category modes.
public static string? Map(string productSpec, EcdisDisplayCategory category, IReadOnlySet<string> availableModeIds)
Parameters
productSpecstringSpec code, e.g.
"S-101".categoryEcdisDisplayCategoryCross-spec ECDIS category.
availableModeIdsIReadOnlySet<string>Display-mode ids declared by the spec's portrayal catalogue.