VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVortexConfiguration Class Reference

Detailed Description

Handles parsing of configuration descriptors and updating of Vortex fields with the specified values. Supports configuration via the VxVHLInterface.

#include <vortexConfiguration.h>

Public Member Functions

 DtVortexConfiguration (VxSim::VxWeakInterface< VxSim::VxVHLInterface > iface, DtVortexConfigurationDescriptor desc)
 
virtual ~DtVortexConfiguration ()
 
virtual void parseValues ()
 
virtual void updateVehicle ()
 

Protected Member Functions

virtual void parseUsingInterface (DtVortexConfigurationElementDescriptor *elementDescriptor)
 
virtual void parseAndAddElement (VxData::FieldBase *field, DtVortexConfigurationElementDescriptor *elementDescriptor)
 

Protected Attributes

VxSim::VxWeakInterface< VxSim::VxVHLInterface > myInterface
 
DtVortexConfigurationDescriptor myDescriptor
 
std::vector< std::shared_ptr< DtVortexConfigurationBaseElement > > myParameterElements
 

Constructor & Destructor Documentation

◆ DtVortexConfiguration()

makVre::DtVortexConfiguration::DtVortexConfiguration ( VxSim::VxWeakInterface< VxSim::VxVHLInterface > iface,
DtVortexConfigurationDescriptor desc )

Constructor with interface and descriptor.

Initializes the configuration manager with the specified Vortex interface and configuration descriptor.

Parameters
ifaceWeak interface to the Vortex VHL interface
descDescriptor containing the configuration settings to apply

◆ ~DtVortexConfiguration()

virtual makVre::DtVortexConfiguration::~DtVortexConfiguration ( )
virtual

Destructor.

Cleans up resources used by the configuration manager.

Member Function Documentation

◆ parseValues()

virtual void makVre::DtVortexConfiguration::parseValues ( )
virtual

Parses the configuration descriptor.

Iterates through the top-level entries in the descriptor and processes each one according to its type. For each entry, it locates the corresponding Vortex field and creates a configuration element to store the value.

◆ updateVehicle()

virtual void makVre::DtVortexConfiguration::updateVehicle ( )
virtual

Updates all configuration values in Vortex.

Applies all stored configuration values to their corresponding Vortex fields. This method should be called after parseValues() to apply the configuration.

◆ parseUsingInterface()

virtual void makVre::DtVortexConfiguration::parseUsingInterface ( DtVortexConfigurationElementDescriptor * elementDescriptor)
protectedvirtual

Parses a configuration element using the Vortex interface.

Locates the specified parameter in Vortex via the VHL interface and creates a configuration element for it.

Parameters
elementDescriptorDescriptor for the element to parse

◆ parseAndAddElement()

virtual void makVre::DtVortexConfiguration::parseAndAddElement ( VxData::FieldBase * field,
DtVortexConfigurationElementDescriptor * elementDescriptor )
protectedvirtual

Parses and adds a configuration element.

Creates a typed configuration element based on the descriptor's value type and adds it to the collection of elements.

Parameters
fieldPointer to the Vortex field to configure
elementDescriptorDescriptor containing the value to apply

Member Data Documentation

◆ myInterface

VxSim::VxWeakInterface<VxSim::VxVHLInterface> makVre::DtVortexConfiguration::myInterface
protected

Interface to the Vortex VHL system.

◆ myDescriptor

DtVortexConfigurationDescriptor makVre::DtVortexConfiguration::myDescriptor
protected

Descriptor containing configuration settings.

◆ myParameterElements

std::vector<std::shared_ptr<DtVortexConfigurationBaseElement> > makVre::DtVortexConfiguration::myParameterElements
protected

Collection of configured elements.


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