VR-Engage  2.2
Loading...
Searching...
No Matches
vreConfiguration.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file vreConfiguration.h
7//! \ingroup vreUtil
8//! \brief Provides configuration settings for the VREngage application
9//!
10//! This file defines the DtVreConfiguration class which extends the VRv stealth
11//! configuration to add VREngage-specific settings, primarily related to SensorFX.
12
13#pragma once
14
15#include "vreUtil/export.h"
16
17#include <vrvCore/DtStealthConfiguration.h>
18
19namespace makVre
20{
21//! \brief Configuration class for VREngage application settings
22//!
23//! This class extends the base VRv stealth configuration to provide
24//! VREngage-specific configuration settings, particularly focusing on
25//! SensorFX integration and related options.
26class UTIL_DLL DtVreConfiguration : public makVrv::DtStealthConfiguration
27{
28public:
29 //! \brief Default constructor
30 //!
31 //! Initializes default configuration values for VREngage
33
34 //! \brief Destructor
35 virtual ~DtVreConfiguration() override;
36
37 //! \brief Sets up SensorFX configuration if enabled
38 //!
39 //! Loads the SensorFX DLL and "default_Sensors.sfx" file if SensorFX is enabled
41
42 //! \brief Enables or disables SensorFX
43 //! \param setSfx True to enable SensorFX, false to disable
44 void setUsingSensorFx(bool setSfx) { mySfxEnabled = setSfx; }
45
46 //! \brief Sets the SensorFX DLL filename
47 //! \param filename Path to the SensorFX DLL as a DtFilename
48 void setSensorFxFilename(const DtFilename& filename) { mySfxFilename = filename; }
49
50 //! \brief Sets the SensorFX DLL filename
51 //! \param filename Path to the SensorFX DLL as a string
52 void setSensorFxFilename(const std::string& filename) { mySfxFilename = filename; }
53
54 //! \brief Checks if SensorFX is enabled
55 //! \return True if SensorFX is enabled, false otherwise
56 bool isSensorFxEnabled() const { return mySfxEnabled; }
57
58 //! \brief Gets the SensorFX DLL filename
59 //! \return Reference to the SensorFX DLL filename
60 const DtFilename& getSensorFxFilename() const { return mySfxFilename; }
61
62protected:
63 //! \brief Flag indicating if SensorFX is enabled
65
66 //! \brief Path to the SensorFX DLL
67 DtFilename mySfxFilename;
68};
69} // namespace makVre
DtVreConfiguration()
Default constructor.
void setSensorFxFilename(const std::string &filename)
Sets the SensorFX DLL filename.
Definition vreConfiguration.h:52
void setUsingSensorFx(bool setSfx)
Enables or disables SensorFX.
Definition vreConfiguration.h:44
const DtFilename & getSensorFxFilename() const
Gets the SensorFX DLL filename.
Definition vreConfiguration.h:60
void setSensorFxFilename(const DtFilename &filename)
Sets the SensorFX DLL filename.
Definition vreConfiguration.h:48
virtual void setupSensorFxConfiguration()
Sets up SensorFX configuration if enabled.
virtual ~DtVreConfiguration() override
Destructor.
bool isSensorFxEnabled() const
Checks if SensorFX is enabled.
Definition vreConfiguration.h:56
DtFilename mySfxFilename
Path to the SensorFX DLL.
Definition vreConfiguration.h:67
bool mySfxEnabled
Flag indicating if SensorFX is enabled.
Definition vreConfiguration.h:64
Defines export macros for the VREngage Utility library.
#define UTIL_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49