|
VR-Engage
2.2
|
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 |
| 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.
| iface | Weak interface to the Vortex VHL interface |
| desc | Descriptor containing the configuration settings to apply |
|
virtual |
Destructor.
Cleans up resources used by the configuration manager.
|
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.
|
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.
|
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.
| elementDescriptor | Descriptor for the element to parse |
|
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.
| field | Pointer to the Vortex field to configure |
| elementDescriptor | Descriptor containing the value to apply |
|
protected |
Interface to the Vortex VHL system.
|
protected |
Descriptor containing configuration settings.
|
protected |
Collection of configured elements.