VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces
DtMilStdJsonRegistry.h File Reference

Go to the source code of this file.

Classes

class  makVrv::DtMilStdJsonRegistry
 
struct  makVrv::DtMilStdJsonRegistry::PolylineSet
 
struct  makVrv::DtMilStdJsonRegistry::LayerDef
 
struct  makVrv::DtMilStdJsonRegistry::HqtfOverlayData
 
struct  makVrv::DtMilStdJsonRegistry::EchelonMark
 
struct  makVrv::DtMilStdJsonRegistry::EchelonCodeDef
 
struct  makVrv::DtMilStdJsonRegistry::IconItem
 
struct  makVrv::DtMilStdJsonRegistry::NamePair
 
struct  makVrv::DtMilStdJsonRegistry::ExtraPathDef
 
struct  makVrv::DtMilStdJsonRegistry::ExtraGroup
 
struct  makVrv::DtMilStdJsonRegistry::ContextDecoratorDef
 

Namespaces

 makVrv
 

Detailed Description

Per-DtDe JSON registry of MIL-STD frame and icon geometry.

DtMilStdJsonRegistry has a two-phase lifecycle:

  1. Load phase - call load() once at startup with the directory that contains the milstd_*.json data files. Each JSON file is parsed into pre-scaled polyline geometry stored in 200x200 space (centred at (100,100)). Parsed geometry is cached in per-layer member maps keyed by makeKey(ssId, stdId).
  2. Render phase - call build*Paths() once per symbol per frame. Each method scales the cached 200-unit geometry into render-space coordinates using sc = size / 200.0, applies the DtColorScheme, and returns a std::vector<DtDrawPath> ready for immediate rasterisation. Raw coordinates are never exposed to callers.

The registry is registered on a DtDe via registerInstance() and retrieved via instance(). It is not thread-safe: do not call load() while any build*Paths() call is in progress on another thread.


Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)