VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Static Public Member Functions | Private Member Functions
makVrv::DtFogSignalSequenceGenerator Class Reference

Builds fallback fog signal slot sequences when SIGSEQ is not present and supplies hardcoded default cycle periods per CATFOG category.

All methods are static; the class is non-instantiable.

Static Public Member Functions

static std::vector< DtSigseqSlot > generateFogSigseq (float sigperSeconds, const std::string &siggrp)
 
static float defaultPeriodForCategory (const std::string &catfog)
 

Private Member Functions

 DtFogSignalSequenceGenerator ()=delete
 

Constructor & Destructor Documentation

makVrv::DtFogSignalSequenceGenerator::DtFogSignalSequenceGenerator ( )
privatedelete

Member Function Documentation

static std::vector<DtSigseqSlot> makVrv::DtFogSignalSequenceGenerator::generateFogSigseq ( float  sigperSeconds,
const std::string &  siggrp 
)
static

Build a slot sequence from SIGPER and SIGGRP when SIGSEQ is absent.

Distributes the sound bursts evenly within the cycle. If the total sound duration would meet or exceed the cycle period, the per-burst sound duration is clamped so the cycle still divides evenly.

Parameters
sigperSecondsTotal cycle period in seconds. Returns empty vector if <= 0.
siggrpRaw SIGGRP string, e.g. "(2)" or "(2+1)". Empty string maps to a group count of 1.
Returns
Slot sequence whose total duration equals sigperSeconds, or an empty vector on invalid input.
static float makVrv::DtFogSignalSequenceGenerator::defaultPeriodForCategory ( const std::string &  catfog)
static

Last-resort default cycle period (seconds) per CATFOG label.

Used only when none of the higher-priority sources supply timing: the per-feature SIGSEQ/SIGPER attributes are absent and the FogSignals model definition has no <catfog>_default_sequence override (or that override fails to parse). The override path is the supported way to retune fog signal pacing without rebuilding.

Parameters
catfogLowercase CATFOG label from s57_attr_map.csv.
Returns
Default seconds. 30.0 for any label not in the table.

The documentation for this class was generated from the following file:

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)