![]() |
VR-Forces Developer's Guide
|
Military symbol parsed from a SIDC string.
Parses a 20-character MIL-STD-2525D SIDC and exposes typed accessors for each field. Pass to DtMilStdSVGRenderer::render() to produce SVG.
Protected Member Functions | |
| void | validateSIDC () |
| void | extractComponents () |
Protected Attributes | |
| std::string | mySIDCString |
| DtContext | myContext |
| DtStandardIdentity | myStandardIdentity |
| DtSymbolSet | mySymbolSet |
| DtStatus | myStatus |
| DtHqTfDummy | myHqtf |
| DtEchelonMobilityTowed | myEchelonMobility |
| std::string | myFunctionCodeString |
| int | myModifier1 |
| int | myModifier2 |
| DtSymbologyStandard | myMilStandard |
| int | myOverrideIndex |
| bool | myHighlighted |
| DtColorScheme | myColorScheme |
| DtOperationalConditionMode | myOcMode |
| bool | myIsValidFlag |
| std::string | myErrorString |
| int | mySize |
| bool | myFilled |
| bool | myFramed |
| double | myScale |
| std::string | myUniqueDesignation |
| std::string | myHigherFormation |
| std::string | myQuantity |
| DtColorMode | myColorMode |
| uint32_t | myFrameOutlineColorOverride |
| uint32_t | myFrameFillColorOverride |
| uint32_t | myIconColorOverride |
| uint8_t | myAlphaOverride |
| makVrv::DtMilStdSymbol::DtMilStdSymbol | ( | const std::string & | sidc | ) |
Construct from a SIDC string.
| sidc | 20-character MIL-STD-2525D SIDC; dashes are accepted and stripped. |
| void makVrv::DtMilStdSymbol::parse | ( | ) |
Parse the SIDC and extract all symbol components.
|
inline |
Return the normalised (dashes-stripped) SIDC string.
|
inline |
Return the standard identity (affiliation) from SIDC position 4.
|
inline |
Return the context (Reality/Exercise/Simulation) from SIDC position 3.
|
inline |
Return the HQ/TF/Dummy bit-field from SIDC position 8.
|
inline |
Return the echelon/mobility/towed-array code from SIDC positions 9-10.
|
inline |
Return the modifier 1 code (SIDC positions 17-18) as an integer.
|
inline |
Return the modifier 2 code (SIDC positions 19-20) as an integer.
|
inline |
Return the symbol set (SIDC positions 5-6).
|
inline |
Return the status from SIDC position 7.
|
inline |
Return the 6-digit function code string (SIDC positions 11-16).
| void makVrv::DtMilStdSymbol::setMilStandard | ( | DtSymbologyStandard | standard | ) |
Set the military symbology standard (2525D or APP-6D).
Stored on the symbol so individual symbols can use different standards in the same scene. Affects icon geometry selection in DtMilStdIcon.
|
inline |
Return the military symbology standard.
| void makVrv::DtMilStdSymbol::setSize | ( | int | size | ) |
Set/Get the symbol canvas size.
|
inline |
Set/Get the symbol canvas size.
|
inline |
Set/Get whether the symbol frame is filled.
|
inline |
Set/Get whether the symbol frame is filled.
|
inline |
Set/Get whether the affiliation frame is drawn.
|
inline |
Set/Get whether the affiliation frame is drawn.
|
inline |
Set/Get the additional scale factor applied at render time.
|
inline |
Set/Get the additional scale factor applied at render time.
|
inline |
Set/Get the unique designation label text.
|
inline |
Set/Get the unique designation label text.
|
inline |
Set/Get the higher formation label text.
|
inline |
Set/Get the higher formation label text.
|
inline |
Set/Get the quantity label text.
|
inline |
Set/Get the quantity label text.
|
inline |
Set/Get the fill colour palette (Light / Medium / Dark).
|
inline |
Set/Get the fill colour palette (Light / Medium / Dark).
|
inline |
Set/Get the frame outline colour override (ABGR); 0 means use the standard colour.
|
inline |
Set/Get the frame outline colour override (ABGR); 0 means use the standard colour.
|
inline |
Set/Get the affiliation fill colour override (ABGR); 0 means use the standard colour.
|
inline |
Set/Get the affiliation fill colour override (ABGR); 0 means use the standard colour.
|
inline |
Set/Get the icon colour override (ABGR); 0 means use the standard colour.
|
inline |
Set/Get the icon colour override (ABGR); 0 means use the standard colour.
|
inline |
Set/Get the ghost alpha override; 255 = fully opaque (no ghosting).
|
inline |
Set/Get the ghost alpha override; 255 = fully opaque (no ghosting).
| bool makVrv::DtMilStdSymbol::hasTopHat | ( | ) | const |
Return true when the symbol has echelon or HQ/TF marks above the frame.
| bool makVrv::DtMilStdSymbol::hasBottomHat | ( | ) | const |
Return true when the symbol has an HQ staff line below the frame.
| bool makVrv::DtMilStdSymbol::hasExtendedTop | ( | ) | const |
Return true when the symbol belongs to SS25 (Control Measure).
SS25 icons have geometry reaching milsymbol y = -60, requiring 40% extra space above the anchor. These symbols route to the decorated atlas even though they carry no echelon or HQ marks.
|
inline |
Return true when any decoration extends beyond the base symbol frame.
| int makVrv::DtMilStdSymbol::topHatSize | ( | ) | const |
Return the top-hat pixel height; 0 when hasTopHat() is false.
| int makVrv::DtMilStdSymbol::bottomHatSize | ( | ) | const |
Return the bottom-hat pixel height; 0 when hasBottomHat() is false.
|
inline |
Return the total render height: size() + topHatSize() + bottomHatSize().
| void makVrv::DtMilStdSymbol::setColorScheme | ( | const DtColorScheme & | scheme | ) |
Set/Get the pre-built colour scheme. Called by DtMilStdManager::buildSymbol().
| DtColorScheme makVrv::DtMilStdSymbol::colorScheme | ( | ) | const |
Set/Get the pre-built colour scheme. Called by DtMilStdManager::buildSymbol().
| bool makVrv::DtMilStdSymbol::isCivilian | ( | ) | const |
Return true when this symbol is classified as a civilian entity.
|
inline |
Return true when the SIDC was parsed successfully.
|
inline |
Return the error description when isValid() is false.
| DtPoint makVrv::DtMilStdSymbol::anchor | ( | ) | const |
Return the anchor point (centre of the symbol canvas).
|
inline |
Return the SVG override entry index, or -1 if no override applies.
|
inline |
Set the SVG override entry index. Called by DtMilStdManager::buildSymbol().
|
inline |
Set/Get whether the symbol is rendered in its highlight state. Set by DtMilStdManager::buildSymbol() from the key's H segment.
|
inline |
Set/Get whether the symbol is rendered in its highlight state. Set by DtMilStdManager::buildSymbol() from the key's H segment.
|
inline |
Set/Get the operational condition display mode.
|
inline |
Set/Get the operational condition display mode.
|
protected |
Helper methods.
|
protected |
|
protected |
|
protected |
Parsed SIDC components.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Symbology standard for icon geometry.
|
protected |
SVG override entry index; -1 = no override.
|
protected |
True when rendered in the highlight state; set from the key's H segment.
|
protected |
Pre-built colour scheme; set by DtMilStdManager::buildSymbol().
|
protected |
Current operational condition display mode.
|
protected |
Validation.
|
protected |
|
protected |
Symbol Options.
Symbol canvas size in pixels.
|
protected |
Fill the symbol frame or outline only.
|
protected |
Include the affiliation frame.
|
protected |
Additional scale factor applied at render time.
|
protected |
Unique designation label text.
|
protected |
Higher formation label text.
|
protected |
Quantity label text.
|
protected |
Fill colour palette (Light / Medium / Dark).
Frame color override for highlight rendering (ABGR). Zero means use the standard affiliation-derived frame color.
|
protected |
|
protected |
ABGR colour override for the affiliation fill area.
When non-zero, replaces the standard affiliation-derived fill colour. Zero means use the standard affiliation-derived fill.
frameColorOverride, which overrides the frame colour instead.
|
protected |
ABGR colour override for the icon.
When non-zero, replaces the standard icon-derived fill colour. Zero means use the standard icon-derived fill.
frameColorOverride, which overrides the frame colour instead.
|
protected |
Ghost alpha override: 0 = fully transparent, 255 = fully opaque.
When less than 255, overrides the alpha channel of all colour components (frame, fill, icon) in the rendered symbol to produce a ghosted appearance. 255 means no override (full opacity).