VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfGuiCore Library API Changes

Table of Contents

This document describes the public API changes in the vrfGuiCore library between VR-Forces 5.2 and VR-Forces 5.3.

vrfGuiCore is the front-end application framework that toolkit users extend with custom GUI plug-ins, so nearly every front-end customization touches at least one header in this library.

Three themes account for most of the change. First, a large group of GUI-side requestor and manager classes were rebased onto protocol-independent base classes in the new vrfcontrol library, so that the same request/response logic can be reused by remote-control applications that have no GUI. The GUI classes retain their names and their instance() accessors, but most of their data, signals, and query methods now live in the base class. Second, the internal Tactical Data Link (TDL) subsystem was removed in its entirety; every vrfTDL* and tdl* header, and every TDL-specific class, enumerator, filter, and symbol decoration, is gone. Third, ground clamping on object creation was generalized from a single boolean into a flag plus an explicit altitude offset, which changed the signature of several widely used creation calls.

Changes that are internal to an implementation or limited to comments are not listed.

Breaking Changes

Requestor and manager classes now derive from vrfcontrol base classes

The following classes were re-parented. In each case the derived class keeps its name, its constructor taking makVrv::DtDe&, and its static instance() accessor, but the data members, signals, lookup methods, and request methods moved to the new base class. Most call sites continue to compile unchanged because the inherited members are public, but code that overrode the removed virtual functions, or that referenced the removed protected members, must be reworked.

Class 5.2 base 5.3 base
DtRadarModeRequestor DtEmitterModesRequestor DtRemoteControlRadarModeRequestor, makVrv::DtVirtualBaseClass
DtActiveSonarModeRequestor DtEmitterModesRequestor DtRemoteControlActiveSonarModeRequestor, makVrv::DtVirtualBaseClass
DtJammingModeRequestor DtEmitterModesRequestor DtRemoteControlJammingModeRequestor, makVrv::DtVirtualBaseClass
DtVrfFormationRequestor makVrv::DtVirtualBaseClass DtRemoteControlFormationRequestor, makVrv::DtVirtualBaseClass
DtNavigationPreferencesRequestor makVrv::DtVirtualBaseClass DtRemoteControlNavigationPreferencesRequestor, makVrv::DtVirtualBaseClass
DtWeaponListRequestor makVrv::DtVirtualBaseClass DtRemoteControlWeaponListRequestor, makVrv::DtVirtualBaseClass
DtSystemListRequestor makVrv::DtVirtualBaseClass, boost::noncopyable DtRemoteControlSystemListRequestor, makVrv::DtVirtualBaseClass
DtVrfResourceManager makVrv::DtVirtualBaseClass DtRemoteControlResourceManager, makVrv::DtVirtualBaseClass
DtVrfResourceRequestor (none) DtRemoteControlResourceRequestor
DtVrfCurrentTaskManager makVrv::DtVirtualBaseClass DtCurrentTaskManager, makVrv::DtVirtualBaseClass
DtVrfScriptedTaskManager makVrv::DtVirtualBaseClass DtRemoteControlScriptedTaskManager, makVrv::DtVirtualBaseClass
DtVrfSensorInfoManager makVrv::DtVirtualBaseClass DtRemoteControlSensorInfoRequestor, makVrv::DtVirtualBaseClass
DtVrfSpotReportManager makVrv::DtVirtualBaseClass DtSpotReportManager, makVrv::DtVirtualBaseClass
DtVrfSpotReportDataHandler DtSpotReportDataHandler (vrfGuiCore) DtSpotReportDataHandler (vrfcontrol)
DtVrfEntityTypeDictionaryManager DtEntityTypeDictionaryManager (vrfGuiCore) DtEntityTypeDictionaryManager (vrfutil), makVrv::DtVirtualBaseClass

Because the base classes are protocol-independent, the message-handling virtual functions were replaced by a single sendMessage hook. The 5.2 pattern of overriding a processXxx callback no longer applies:

// 5.2 -- derived class handled the response message directly
virtual void processRadarModes(const DtVrfObjectMessage* msg);
// 5.3 -- derived class only supplies message delivery; the base class parses the response
virtual void sendMessage(const DtAdminMessage&) override;

The removed message handlers are DtRadarModeRequestor::processRadarModes, DtActiveSonarModeRequestor::processActiveSonarModes, DtJammingModeRequestor::processJammingModes, DtVrfFormationRequestor::processAvailableFormations, DtNavigationPreferencesRequestor::processAvailablePrefernces, DtWeaponListRequestor::processWeaponListResponse, DtSystemListRequestor::processSystemListResponse, DtVrfCurrentTaskManager::processEntityCurrentTaskCallback, and DtVrfSensorInfoManager::processSensorData. The requestModes(const DtUUID&) override on the three emitter-mode requestors was also removed; requestModes is now implemented by the base class.

Several convenience overloads that took a DtUUID were removed from the derived classes because the base class already provides them. This affects DtVrfFormationRequestor::updateAvailableFormations, formationsFor, and hasFormationsFor, and DtNavigationPreferencesRequestor's updateAvailablePreferences, preferencesFor, and hasPreferencesFor. The makVrv::DtUniqueID overloads remain on the derived class. Because the removed overloads are now inherited rather than declared locally, an unqualified call that relied on overload resolution between the two forms may become ambiguous or may select the inherited version; qualify the call or convert the argument explicitly where the compiler reports a problem.

DtNavigationPreferencesRequestor::DtNavigationPrefernceDataRecord moved to DtRemoteControlNavigationPreferencesRequestor. The nested type is still reachable through the derived class name, so existing declarations continue to work.

DtVrfSensorInfoManager no longer declares DtSensorContactInformation, DtSensorInformation, DtSensorInformationMap, signal_contactInfoReceived, stopMonitoring, monitoring, or sensorInfoFor. All of these moved to DtRemoteControlSensorInfoRequestor and are inherited. startMonitoring is now an override, and two new pure hooks, subscribe and unsubscribe, are implemented by the GUI class.

DtVrfResourceRequestor lost its pure virtual interface (resourcesChanged, resourceCheckingDisabled, addResource, resourceCheckComplete, resourceUpdated), its startMonitoring, stopMonitoring, setUpdateRate, and canSetResources methods, and its slot_resourceResponse handler. Those are all inherited from DtRemoteControlResourceRequestor; derived classes must implement the base-class versions instead. requestResourcesFor also lost its entitiesOnly parameter:

// 5.2
virtual void requestResourcesFor(const std::set<makVrv::DtUniqueID>& data, bool entitiesOnly = true);
// 5.3
virtual void requestResourcesFor(const std::set<makVrv::DtUniqueID>& data);

DtEntityTypeDictionaryManager moved out of vrfGuiCore

makVrf::DtEntityTypeDictionaryManager is no longer defined in vrfGuiCore/vrfEntityTypeDictionaryManager.h. It now lives in vrfutil/entityTypeDictionaryManager.h with the same public interface (clearEnumerations, initializeEnumerations, loadEnumerations, dictionary, setEntityTypesFileDirectory, entityTypesFileDirectory, resourceUnitOfMeasurementFor). The vrfGuiCore header includes the new location, so code that uses DtVrfEntityTypeDictionaryManager is unaffected. Code that named the base class directly should include vrfutil/entityTypeDictionaryManager.h.

DtVrfScriptedTaskManager interface largely relocated to the base class

DtVrfScriptedTaskManager was the most heavily affected class in this group. The following nested types were removed from it and are now provided by DtRemoteControlScriptedTaskManager: DoctrinesByForce, ScenarioSystemPair, ScriptedTasks, ActionCategory, Doctrines, and ActionCategories. The following query and state methods were removed from the derived class and are inherited instead: all scriptedTaskMetaData overloads, doesNotHaveSMSLoaded, isSystemScript, hasSystemScript, hasScriptedTaskMetaData, hasScenarioScriptedTaskMetaData, hasSystemScriptedTaskMetaData, hasDoctrine, assignScriptError, clearScriptError, scriptHasError, scriptIsModified, setScriptModified, hasModifiedScripts, actionCategories, doctrines, doctrinesByForce, doctrineForForce, remapScriptId, scriptsValidFor, scriptsThatSupportDoctrine, scriptsLoaded, activeRequest, and the DtEntityType forms of scriptedTasksValidFor, scriptedSetsValidFor, reactiveTasksValidFor, and backgroundProcessesValidFor.

The following signals were removed from DtVrfScriptedTaskManager and are now emitted by the base class: signal_scriptSaveError, signal_scriptedTaskManagerAboutToChange, signal_scriptedTaskAboutToBeRemoved, signal_scriptedTaskAdded, signal_receivedScriptedTasks, signal_doctrinesReceived, signal_scriptErrorChange, signal_scriptModified, signal_scriptModifiedCleared, signal_assignedDoctrineChanged, and signal_scriptIdChanged. Connections written against the derived class still compile, because the signals are inherited public members.

Two signatures changed and several methods became overrides:

// 5.2
virtual void addScriptedTaskMetaData(const DtScriptedTaskMetaData&, bool signal = true);
virtual void requestScriptedTasks(const std::vector<std::string>& scripts = std::vector<std::string>());
virtual void receiveScriptedTaskChecksums(DtSimMessage* msg);
virtual void receiveScriptedTaskList(DtSimMessage* msg);
virtual void processDoctrinesOperation(DtSimMessage* msg);
// 5.3
virtual bool addScriptedTaskMetaData(const DtScriptedTaskMetaData&, bool signal = true) override;
virtual void requestScriptedTasks(const std::vector<std::string>& scripts = std::vector<std::string>(),
bool checksumsOnly = false) override;
virtual void processScriptedTaskChecksums(DtSimMessage* msg) override;
virtual void processReceiveScriptedTaskList(DtSimMessage* msg) override;
virtual bool processDoctrinesOperation(DtSimMessage* msg) override;

receiveActionCategories, receiveDoctrines, and receivedScriptedTaskUpdateMessage were removed outright. language() moved from protected to public. A new protected hook, finalizeScriptIdChange(const std::string& oldId, const std::string& newId), is called after a script identifier changes.

DtVrfSpotReportManager request and handler methods removed

Spot report request handling moved to DtSpotReportManager in vrfcontrol. The following methods were removed from DtVrfSpotReportManager: lookup, requestSpotReports, requestSpotReportsFor, processReceiveSpotReport, processReceiveSpotReports, addOrUpdateSpotReport, addSpotReportDataHandler, removeSpotReportDataHandler, removeSpotReport, isSpotReport, certaintyLevelForTime, and reset. certaintyLevels, setCertaintyLevels, and setCertaintyLevel are now base class overrides rather than locally declared methods.

spotReportGatherTime changed from a floating-point to an integer number of seconds, in both the manager and the settings record:

// 5.2
virtual void setSpotReportGatherTime(double);
virtual double spotReportGatherTime() const;
// 5.3
virtual void setSpotReportGatherTime(int) override;
virtual int spotReportGatherTime() const override;

Subclasses must now implement the base class hooks createAndDeliverMessage, backendsLoaded, generateRequestId, tick, dataFor, anyBackendsPlaying, numberOfBackends, and createSpotReportDataHandler.

DtVrfSpotReportDataHandler was rewritten

The GUI spot report data handler is now a thin adapter over vrfcontrol/spotReportDataHandler.h. Its constructor no longer takes a makVrv::DtUniqueID:

// 5.2
DtVrfSpotReportDataHandler(makVrv::DtDe&, makVrv::DtUniqueID);
// 5.3
DtVrfSpotReportDataHandler(makVrv::DtDe&);

update, objectEntryRemoved, handlerType, observedBy, slot_onContactUpdated, updateReport, idleTick, purgeSpotters, slot_stateAdded, updateLastSpotterName, and slot_spotReportOptionsChanged were all removed, along with the protected members that backed them. The class adds spotReport(), aboutToBeRemoved(), and a protected adjustIncomingMarkingText hook.

DtVrfSpotReportDataHandlerCreator changed base class and signature. It no longer derives from DtSpotReportDataHandlerCreatorInterface, and now requires a makVrv::DtDe& at construction:

// 5.2
class DtVrfSpotReportDataHandlerCreator : public DtSpotReportDataHandlerCreatorInterface
{
};
// 5.3
class DtVrfSpotReportDataHandlerCreator : public makVrv::DtVirtualBaseClass
{
virtual DtVrfSpotReportDataHandler* create();
};

Tactical Data Link subsystem removed

All TDL headers, classes, and identifiers were removed. There is no replacement; remove the corresponding code from plug-ins. Beyond the deleted headers listed at the end of this document, the following public symbols were removed from headers that still exist.

Header Removed symbol
vrfExtendedElementAttributes.h DtTDLMessageDataSelectionType, TDLMessageDataElementType, DtVrfGuiTDLMessageDataTrackHistories
vrfSelectionFilters.h DtVrfAllEntitiesTDLFilter, DtVrfTDLDomainFilter, DtVrfAllTacticalGraphicsTDLFilter
messageInterfaces.h DtVrfGuiTDLMessageInterface
guiThreadNetworkCallbackManager.h tdlMessageReceived, signal_tdlMessageReceived
spotReportListenerImplementation.h isTDLMessageData
timeSinceLastReportSymbolDecoration.h DtTDLTimeSinceLastReportSymbolDecorationCreator
spotReportHeadingIndicatorSymbolDecoration.h DtVrfTDLMessageDataHeadingIndicatorSymbolDecorationCreator
vrfBackendSettingsManager.h setTDLMessagesGloballyEnabled

Removing the TDL selection type and element type also renumbered the constants that followed them in vrfExtendedElementAttributes.h. DtLaserDesignatorSelectionType changed from 102 to 101, DtAerodromeSelectionType from 103 to 102, and AerodromeElementType from UserStart + 103 to UserStart + 102. Code that hardcoded these numeric values, or that persisted them, must be updated; code that uses the named constants recompiles correctly.

DtVrfGuiApplication reports whether the model set came from the command line

DtVrfGuiApplication gained a static query and a corresponding static member:

static bool defaultSimulationModelSetByUser();

The backing member theDefaultSimulationModelSetByUser was added to the protected static state. Subclasses that enumerate or initialize the static members of DtVrfGuiApplication must account for it. DtSharedVrfVrlApplicationSettings exposes the same information at instance scope through the new setSimulationModelSetByUser and simulationModelSetByUser accessors.

DtGuiLocalObject::setUUID is now public

setUUID moved from the protected section to the public section of DtGuiLocalObject. This is a widening of access and does not break existing code, but an override in a derived class that kept the method protected now narrows the access of an inherited public method; move such overrides to the public section. The class also gained setSidc, nextFrameStatePropertiesStateComponent, and nextFrameEntityStateComponent.

localObjects() return type changed

DtGuiLocalObjectManager::localObjects() now returns a map by value rather than by const reference, because the manager's internal container no longer stores bare pointers:

// 5.2
const std::map<DtUUID, DtGuiLocalObject*>& localObjects() const;
// 5.3
std::map<DtUUID, DtGuiLocalObject*> localObjects() const;

Code that bound the result to a const reference still compiles, but it now binds to a temporary; the lifetime is extended by the reference binding, so the snapshot no longer tracks later changes. Code that took a pointer or an iterator into the returned map and held it across a frame must be changed to hold a copy.

DtVrfGuiSimObjectManager::localObjects() changed its mapped type. It still returns a const reference, but the value is now a struct rather than a pointer:

// 5.2
const std::map<DtUUID, DtGuiLocalObject*>& localObjects() const;
// 5.3
struct LocalObject
{
DtGuiLocalObject* localObject = nullptr;
boost::signals2::connection deleteConnection;
};
const std::map<DtUUID, LocalObject>& localObjects() const;

Iteration code must be updated to dereference through localObject:

// 5.2
for (const auto& entry : mgr.localObjects())
{
DtGuiLocalObject* obj = entry.second;
// ...
}
// 5.3
for (const auto& entry : mgr.localObjects())
{
DtGuiLocalObject* obj = entry.second.localObject;
// ...
}

Ground clamping replaced by an altitude-above-terrain flag and offset

Object creation previously carried a single clampToGround boolean. It was replaced everywhere by a useAltitudeAboveTerrain flag plus an explicit altitudeAboveTerrain offset in meters. Because the new offset was inserted immediately after the flag, every affected call with trailing arguments must be updated; a call that passes only the flag and relies on defaults for the rest compiles unchanged.

Header Affected declaration
entityCreationData.h DtEntityCreationData constructor; setClampToGround/clampToGround replaced by setUseAltitudeAboveTerrain/useAltitudeAboveTerrain and setAltitudeAboveTerrain/altitudeAboveTerrain
environmentalCreationData.h DtEnvironmentalCreationData constructor; same accessor pair added
guiThreadVrfRemoteController.h both entity creation overloads and the aggregate creation overload
vrfObjectManipulationHandlerBaseClass.h ObjectManipulationData::clamped replaced by useAltitudeAboveTerrain and altitudeAboveTerrain
// 5.2
virtual void createEntity(...,
const std::string& label = "",
bool groundClamp = true,
const std::list<DtAdminContent*>& content = std::list<DtAdminContent*>(),
...);
// 5.3
virtual void createEntity(...,
const std::string& label = "",
bool useAltitudeAboveTerrain = true,
double altitudeAboveTerrain = 0.,
const std::list<DtAdminContent*>& content = std::list<DtAdminContent*>(),
...);

DtGuiThreadVrfRemoteController run-control and callback changes

The object-created callback gained a trailing integer parameter that carries the request identifier:

// 5.2
typedef boost::function<void (DtString, const DtUUID&, const DtEntityIdentifier&, const DtEntityType&)>
// 5.3
typedef boost::function<void (DtString, const DtUUID&, const DtEntityIdentifier&, const DtEntityType&, int)>

Every function or lambda bound to this typedef must add the parameter.

setScenarioRunDuration was renamed:

// 5.2
virtual void setScenarioRunDuration(double time, bool duration = false);
// 5.3
virtual void setScenarioRunUntilTime(double time, bool duration = false);

closeScenario gained a third parameter that tells the back-end a checkpoint load will follow:

// 5.2
virtual void closeScenario(const DtFilename& databaseToOpen = "", bool forceCloseScenario = false);
// 5.3
virtual void closeScenario(const DtFilename& databaseToOpen = "", bool forceCloseScenario = false,
bool willLoadCheckpointAfterClose = false);

The corresponding shared signal changed arity in sharedNetworkSignaler.h:

Run-duration terminology replaced by run-until across the back-end manager

5.2 declaration 5.3 declaration
DtVrfSimBackendManager::runDurationTime() DtVrfSimBackendManager::runUntilTime()
DtBackendRunDurationTime (in vrfBackendState.h) DtBackendRunUntilTime

DtVrfSimBackendManager::scenarioRunId() also changed return type from int to DtUUID. Code that compared or stored the run identifier as an integer must be updated.

Three back-end status constants moved from vrfSimBackendManager.h into the DtVrfBackendState status enumeration in vrfBackendState.h, and their numeric values changed as a result:

Constant 5.2 value 5.3 value
DtBackendChangedGuiRuntimeLoadBalancingScheme 0x00200000 0x08000000
DtBackendChangedSimRemoteAttachmentBalancingScheme 0x00400000 0x10000000
DtBackendAllowInfiniteObjectsChanged 0x00800000 0x20000000

The signal_backendDiscovered signal gained a parameter identifying the discovering address:

// 5.2
boost::signals2::signal<void (const DtVrfBackendState&)> signal_backendDiscovered;
// 5.3
boost::signals2::signal<void (const DtVrfBackendState&, const DtSimulationAddress&)> signal_backendDiscovered;

Periodic checkpointing settings removed

The periodic checkpointing feature was replaced by scenario fragment saving. The following were removed from DtVrfSimulationSettingsManager and DtVrfSimulationSettingsRecord: setEnablePeriodicCheckpointing, enablePeriodicCheckpointing, setPeriodicCheckpointingFrequency, periodicCheckpointingFrequency, setPeriodicCheckpointingDirectory, periodicCheckpointingDirectory, and periodicCheckpointingDirectoryResolved. The enumerator DtEnablePeriodicCheckpointing (0x00400000) was removed from DtVrfSimulationSettingsRecord::VrfSimulationSettingsOptions.

The replacement is a single flag pair, setEnableSaveScenarioFragments and enableSaveScenarioFragments, backed by the new enumerator DtEnableSaveScenarioFragments (0x00800000). The record serialization version advanced from 1 to 2; scenarios written by 5.2 load correctly, but the checkpointing fields are discarded.

DtVrfBackendSettingsManager::setPeriodicSnapshotSettings gained two parameters:

// 5.2
virtual void setPeriodicSnapshotSettings(bool enabled, double period, int numberOfSnapshotsToKeep);
// 5.3
virtual void setPeriodicSnapshotSettings(bool enabled, double period, int numberOfSnapshotsToKeep,
bool checkpointsEnabled, double checkpointSimTime);

makVrv::DtUniqueID and makVrv::DtElementID replaced by DtUUID

Several classes that keyed collections and signals by the front-end display identifier now key them by the simulation object UUID. The change is mechanical, but every affected declaration is a different type, so overrides and connected slots must be retyped.

Class Affected members
DtLocalWeatherManager WeatherObjects and GlobalWeatherObjects mapped keys; increasePriorityOf, decreasePriorityOf, bringWeatherToFront, sendWeatherToBack, changePriorityOf, offsetPriorityBy, isLocalWeatherArea, isWeatherObject, both weatherAreaNear overloads; signal_removed, signal_isTimeFrozenChanged, signal_isTimeSetToLocalOnFirstPlacementChanged, signal_globalWeatherDiscovered, signal_globalWeatherRemoved
DtExternalDataVisualManager ExternalDataHandlers mapped key; both spotReportListenerFor overloads; objectDeleted

Both weatherAreaNear overloads also changed return type from makVrv::DtUniqueID (by value) to const DtUUID&.

DtVrfSelectionFilters force filtering moved into DtAllFilters

DtAllFilters gained an explicit copy constructor, a myForce member, and overrides of setForce and isValid. The behavior it acquired is the force filtering previously implemented by the removed TDL filters. DtAllEnvironmentalsFilters now overrides isValid and is no longer a name-only variant of DtAllFilters; it returns true when the object is environmental or has an entity type kind of 16 or greater. Filters derived from either class that assumed the base isValid always returned true must be reviewed.

DtPlanVariablesFilter now overrides setForce with an empty implementation, so force assignment on that filter has no effect.

Sensor field of view enums renamed to aimable system enums

sensorFieldOfViewControlInteractionData.h now includes vrfExtObjects/aimableSystemEnums.h instead of vrfExtObjects/sensorFieldOfViewEnums.h, and the corresponding enumeration types were renamed.

5.2 type 5.3 type
DtSensorTrackingMode DtAimableSystemTrackingMode
DtSensorManualControlDirection DtAimableSystemManualControlDirection

This changes the signature of DtSensorFieldOfViewControlInteractionData::setManualControl, trackingMode, and manualControlDirection.

DtCopyObject and DtEntityCopyObject callback signatures changed

Pasting now restores resources, which required additional identity tracking during the paste. Two DtEntityCopyObject virtual functions changed signature:

// 5.2
virtual void uuidChanged(DtSimObjectReference);
virtual void processObjectCreated(DtString, const DtUUID&, const DtEntityIdentifier&);
// 5.3
virtual void uuidChanged(const DtUUID& oldUUID, const DtUUID& newUUID, DtSimObjectReference);
virtual void processObjectCreated(DtString, const DtUUID&, const DtEntityIdentifier&, int);

DtVrfAggregateCopyObject::addStateData(std::map<std::string, std::string>&, const DtRwVariableBindings&, const DtString&) was removed; there is no replacement.

Dt2DEntityExtentVisualizer definition hook renamed

The point at which a visualizer reads its definition changed:

// 5.2
virtual void setVisualizerDefinition(const makVrv::DtVisualizerDefinition& visDef) override;
// 5.3
virtual void setInitialValuesFromVisualizerDefinition() override;

The definition is available from the base class when the new hook is called. initialize() is now also overridden.

MIL-STD icon visualizer echelon hook lost its force parameter

In all three visualizer classes in vrfGuiAggregateMilStdIconVisualizer.h:

// 5.2
virtual unsigned short echelonCharacterForUnitSymbolFont(int force) const override;
// 5.3
virtual unsigned short echelonCharacterForUnitSymbolFont() const override;

A new virtual, updateGeneratedMilStdImageIcon(), must be overridden by subclasses that customize icon generation.

Other removals and signature changes

DtTerrainSettingsManager::setUseSoundingPointData and useSoundingPointData were removed. Sounding point data is always loaded; there is no replacement setting.

DtVrfSpotReportVisualHandler::mySimulation was replaced by a static member:

// 5.2
// 5.3
static std::unique_ptr<makVrv::DtBaseConnection> theSimulationConnection;

DtTimeZoneManager renamed a signal and added a conversion flag to several methods. The rename is a compile error at every connection site:

// 5.2
boost::signals2::signal<void (time_t old, time_t newTime)> signal_utcTimeChangedWithObserverPosition;
// 5.3
boost::signals2::signal<void (time_t oldTimeZoneOffsetFromUTC, time_t newTimeZoneOffsetFromUTC)>
signal_timeZoneChangedWithObserverPosition;

offsetForTimezone, convertFromLocalTimeToUtcTime, convertFromUtcTimeToLocalTime, dateTimeFormatString, utcOffsetHours, and utcLabel each gained a trailing DtTimeZoneManager::TimeConversionFlag flag = UseSettings parameter. Existing calls compile unchanged; overrides in derived classes must add the parameter.

DtVrfTaskSetManager::setDIGuyGestures gained a duration map before the trailing signal flag:

// 5.2
virtual void setDIGuyGestures(const makVrv::DtUniqueID&, const std::vector<DtString>&, bool signal = true);
// 5.3
virtual void setDIGuyGestures(const makVrv::DtUniqueID&, const std::vector<DtString>&,
bool signal = true);

Calls that passed the signal argument positionally now bind it to the duration map and will fail to compile. DtDIGuyAppearancesAndAnimations gained a public mySupportedGestureDurations member.

DtVrfVertexManipulationHandler now overrides localLocation() to return the position of the selected vertex rather than the origin of the parent shape. Handlers that relied on the previous behavior must override localLocation() themselves.

DtSharedModelSet::parameterPropertiesFor gained an overload taking const std::set<const makVrf::DtStateDataWrapper*>&. An existing call passing an empty braced initializer list may now be ambiguous and needs an explicit type.

DtScenarioSignaler::signal_scenarioAboutToBeSaved no longer reports the ChangeOnSave_RandomNumberSeed change reason; that enumerator is no longer emitted.

DtVrfGuiCommandLineParser now enables observer mode flags by default (myAllowObserverModeFlags changed from false to true), and the HLA configuration parameters written for additive FOM modules were renamed. The --fomModules argument now writes numberOfAdditionalFomModules and AdditionalFomModule_<n> instead of numberFomModules and FomModule_<n>; the new --setFomModuleList argument writes the replacement set under the original numberFomModules and FomModule_<n> names. Custom drivers that read these configuration keys must be updated. The --frameRate argument, previously commented out of the argument order, is now registered.

Moved Headers and Symbols

5.2 location 5.3 location
vrfGuiCore/spotReportDataHandler.h vrfcontrol/spotReportDataHandler.h
vrfGuiCore/emitterModesRequestor.h vrfcontrol/remoteControlEmitterModesRequestor.h
vrfGuiCore/aggregateRollUpManager.h vrfGuiCore/guiAggregateRollUpManager.h and vrfutil/trueAggregateRollUpHelper.h
makVrf::DtAggregateRollUpManager makVrf::DtGuiAggregateRollUpManager
makVrf::DtEntityTypeDictionaryManager (in vrfGuiCore/vrfEntityTypeDictionaryManager.h) vrfutil/entityTypeDictionaryManager.h
DtNavigationPreferencesRequestor::DtNavigationPrefernceDataRecord DtRemoteControlNavigationPreferencesRequestor
DtVrfSensorInfoManager::DtSensorInformation, DtSensorContactInformation, DtSensorInformationMap DtRemoteControlSensorInfoRequestor
DtVrfScriptedTaskManager::ScriptedTasks, ScenarioSystemPair, Doctrines, ActionCategories, ActionCategory, DoctrinesByForce DtRemoteControlScriptedTaskManager
DtBackendChangedGuiRuntimeLoadBalancingScheme, DtBackendChangedSimRemoteAttachmentBalancingScheme, DtBackendAllowInfiniteObjectsChanged (in vrfSimBackendManager.h) vrfBackendState.h

Additions

DtGuiAggregateRollUpManager

The new header vrfGuiCore/guiAggregateRollUpManager.h replaces the deleted aggregateRollUpManager.h. DtGuiAggregateRollUpManager derives from makVrv::DtVirtualBaseClass and DtTrueAggregateRollUpFunctor, and provides the GUI-side view of aggregate roll-up data. It supplies leaf node enumeration (leafNodes), rolled-up state and parameter properties (statePropertiesFor, parameterData), property existence queries (hasStateProperties, hasStateProperty), reference-counted monitoring (monitor, startMonitoring, stopMonitoring), a customization point for roll-up rules (installCustomRules, DtRollUpFunction), superior lookup (superior), and the signal_aggregateUpdated signal. UpdateFlags distinguishes StructureChanged from DataChanged. Obtain the singleton through DtGuiAggregateRollUpManager::instance(de) and replace an implementation with registerInstance.

DtSoundListRequestor

The new header vrfGuiCore/soundListRequestor.h defines DtSoundListRequestor, which follows the same pattern as the existing weapon and system list requestors. It caches the sound types available to an entity and offers soundTypesForEntity, hasSoundTypesForEntity, soundTypes, updateSoundTypes, clearEntityEntry, and signal_soundListReceived. It backs the new DtTaskPlaySoundAction task.

DtVrfGuiSidcReader

The new header vrfGuiCore/vrfGuiSidcReader.h defines DtVrfGuiSidcReader, a Qt-aware reader and indexed container for MIL-STD-2525D symbol identification codes. It derives from DtSidcReader (vrfutil/sidcReader.h) and makVrv::DtVirtualBaseClass, and returns QVector<MilStdSymbolValue> lists for each SIDC field: symbolSets, contextValues, sidValues, HQTFDummyValues, statusValues, echelonValues, mobilityValues, leadershipValues, towedArrayValues, echelonAndTowedArrayValues, notApplicable, mainIcons, modifier1, and modifier2. The header also defines the symbol set constants AIR_SYMBOLSET_VALUE through ACTIVITY_SYMBOLSET_VALUE.

SIDC support on existing classes

SIDC codes can now be supplied per object rather than derived solely from entity type.

Header Addition
vrfObjectFacadeInterface.h setSidc(const std::string&), sidc()
entityFacadeCollection.h setSidc override, setWaterClampingEnabled, clearFlags override
environmentalFacadeCollection.h setSidc override, setFixedEntityIconScalingEnabled
guiLocalObject.h setSidc(const DtString&)
entityCreationData.h sidc constructor parameter, setSidc, sidc()
environmentalCreationData.h sidc constructor parameter, setSidc, sidc()
entityMapperKey.h setSidc(const DtString&), sidc()
sharedModelSet.h sidc(DtModelSetEntry*), setSidc, hasSystemNamed
vrfModelSetManager.h adjustedSidc, sidc, defaultSidc, hasSystemNamed

Frame rate limiting

DtVrfGuiSettingsRecord and DtVrfGuiSettingsManager both gained setEnableAutoFPSLimiting, enableAutoFPSLimiting, set2DMaxFrameRate, get2DMaxFrameRate, set3DMaxFrameRate, and get3DMaxFrameRate. The record adds the EnableAutoFPSLimiting (0x40000000) enumerator and advances its serialization version from 8 to 9; settings written by 5.2 load with auto FPS limiting enabled. DtVrfDe implements the limit by overriding fixedFrameRate() and adding recalculateFixedFrameRate().

Checkpoint loading

DtGuiThreadVrfRemoteController gained loadScenarioCheckpoint(const DtString& scenarioName, const DtString& runId, double simTime) and runUntil(double, DtSimulationAddress addr = DtSimSendToAll). DtScenarioSignaler gained the matching signal_scenarioLoadScenarioCheckpointRequest.

DtVrfSimBackendManager additions

keywordValue(const DtString&), addresses(), backendsLoaded(), requestScenarioStatus(const DtSimulationAddress& addr = DtSimSendToAll), signal_simTimeReset, and signal_dateAndTimeOfDayChanged. DtVrfBackendState gained sendMonitorRequest(double period = -1).

New task and set action identifiers

menuItems.h defines the following new constants.

Constant Value
DtTaskFlyIntoAction 10066
DtTaskPlaySoundAction 10067
DtSetHitZoneStatusAction 11137
DtSetAimSearchLightAction 11138
DtSetAimLaserLightAction 11139
DtSetSignalFlagsAction 11140

Copy and paste additions

DtCopyObject gained the DtPasteResources (0x00000200) paste flag, which is included in DtAllPasteFlags, along with writeResourceData, readResourceData, and the signal_objectCreated signal. DtEntityCopyObject implements the resource round trip through writeResourceData, readResourceData, processResourceResponse, sendResources, and two updatePotentialUUIDFromImport overloads. DtVrfCopyPasteHandler gained pasteSingleInstance(const DtVector& at = DtVector(), int flags = DtCopyObject::DtAllPasteFlags), slot_objectCreated, and signal_objectCreated. DtVrfCopyPasteManager gained canPasteType(const DtEntityType&).

Spot report velocity threshold

DtVrfSpotReportsSettingsRecord, DtVrfSpotReportManager, and DtSpotReportVelocityIndicatorSymbolDecoration all gained setMinimumVelocityVectorMagnitude/minimumVelocityVectorMagnitude, expressed in meters per second with a default of 13.4112. The decoration also gained the protected minimumSpeedMagnitude(const DtSpotReportStateComponentData&) hook, and the manager emits signal_minimumVelocityVectorMagnitudeChanged. The settings record serialization version advanced from 6 to 7.

Miscellaneous additions

Header Addition
vrfObjectManipulationManager.h eventProcessor() accessor
vrfEditManagerEventProcessor.h setAllowEditingByDoubleClick, allowEditingByDoubleClick
vrfGuiForcesRequestor.h processForces(const DtIfForces&)
objectConsoleMessageHandler.h acknowledgeAll, hasAnyAwaitingMessages
sharedVrfVrlApplicationSettings.h hasAnyAwaitingMessages, setSimulationModelSetByUser, simulationModelSetByUser
guiThreadVrfRemoteController.h requestObjectNotifyLevel(const DtUUID&)
vrfTacticalGraphicOverlayManager.h slot_onElementsRemoved override, isOrganizableObject
vrfSharedVisibilityChangeSignaler.h signal_rerunFogOfWarFilters
scenarioSignaler.h signal_forcesInitialized
vrfVantageSubclasses.h DtVrfDeTimeManager::timeScale, DtVrfDeTimeManager::calculateCurrentDateAndTime
sensorFieldOfViewControlInteractionData.h setPowerOn(bool), powerOn()
timeZoneManager.h TimeConversionFlag enumeration (UseSettings, UseObserverPosition, UseFixedTimeZone)
aggregateCopyObject.h slot_subordinateCreated
vrfGuiCommandLineParser.h HlaArgs::setFomModuleList
vrfCopyPasteHandler.h signal_objectCreated

Removed Headers

Removed header Replacement
vrfGuiCore/aggregateRollUpManager.h vrfGuiCore/guiAggregateRollUpManager.h and vrfutil/trueAggregateRollUpHelper.h
vrfGuiCore/emitterModesRequestor.h vrfcontrol/remoteControlEmitterModesRequestor.h
vrfGuiCore/spotReportDataHandler.h vrfcontrol/spotReportDataHandler.h
vrfGuiCore/spotReportDataProcessor.h None. Spot report dispatch is handled by DtSpotReportManager in vrfcontrol.
vrfGuiCore/tdlGenericNetworkMessage.h None. The Tactical Data Link subsystem was removed.
vrfGuiCore/tdlNetworkMessageHandler.h None.
vrfGuiCore/vrfTDLMessageDataElement.h None.
vrfGuiCore/vrfTDLMessageDataHandler.h None.
vrfGuiCore/vrfTDLMessageDataProcessor.h None.
vrfGuiCore/vrfTDLMessageDataVisualHandler.h None.
vrfGuiCore/vrfTDLMessageManager.h None.
vrfGuiCore/vrfTDLSettingsRecord.h None.

Return to VR-Forces 5.3 API Migration Guide.

[Home]


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)