|
VR-Engage
2.2
|
DtSettingsOverrideComponent provides functionality to override graphics settings such as shadow quality, HDR, and HBAO during role engagement, and then restore the original settings when the role is exited. This allows roles to have customized graphics settings that optimize performance or visual quality for specific operational needs without permanently changing the user's preferences.
#include <settingsOverrideComponent.h>
Public Member Functions | |
| DtSettingsOverrideComponent () | |
| virtual | ~DtSettingsOverrideComponent () override |
| virtual bool | initialize (makVre::DtPlayerStation *player, makVre::DtInitTable &config) override |
| virtual void | tick (double dt) override |
| virtual void | shutdown () override |
| virtual const char * | type () const override |
Public Member Functions inherited from makVre::DtPlayerComponent | |
| DtPlayerComponent () | |
| virtual | ~DtPlayerComponent () |
| virtual bool | postInitialize () |
| virtual void | setName (const std::string &name) |
| virtual const std::string & | name () |
| virtual DtPlayerStation & | player () |
| virtual DtAttributeHandle & | playerAttributeStore () |
| virtual const DtAttributeHandle & | playerAttributeStore () const |
Protected Member Functions | |
| void | slot_observerModeChanged (makVrv::DtObserver *observer, int newMode) |
Protected Member Functions inherited from makVre::DtPlayerComponent | |
| virtual void | initializeStateAttributes () |
Protected Attributes | |
| bool | myRestoreShadowSettings |
| makArchives::DtShadowSettingsCollectionRecord | myOriginalShadowSettings |
| bool | myRestoreHdr |
| std::map< int, bool > | myHbaoRestoreMap |
Protected Attributes inherited from makVre::DtPlayerComponent | |
| std::string | myName |
| DtInitTable | myConfig |
| DtPlayerStation * | myPlayer |
| makVrv::DtDe * | myDe |
| DtEntityResolver * | myResolver |
| DtAttributeCallbackManager | myAttributeCallbacks |
| makVre::DtSettingsOverrideComponent::DtSettingsOverrideComponent | ( | ) |
Constructor for DtSettingsOverrideComponent.
Initializes the component with default settings and empty restoration maps
|
overridevirtual |
Virtual destructor for DtSettingsOverrideComponent.
|
overridevirtual |
Initializes the settings override component.
| player | Pointer to the player station this component belongs to |
| config | Configuration table containing override settings |
Reads configuration settings for shadow quality, HBAO, and HDR overrides, applies the specified overrides, and caches original settings for restoration
Reimplemented from makVre::DtPlayerComponent.
References makVre::DtPlayerComponent::player().
|
overridevirtual |
Called every frame to update the component state.
| dt | Delta time since the last frame in seconds |
Current implementation is empty as the component operates on initialization and shutdown
Implements makVre::DtPlayerComponent.
|
overridevirtual |
Shuts down the settings override component.
Restores all previously cached graphics settings to their original values before the component was initialized
Reimplemented from makVre::DtPlayerComponent.
|
overridevirtual |
Returns the type identifier for this component.
Implements makVre::DtPlayerComponent.
|
protected |
Handler for observer mode change events.
| observer | Pointer to the observer that changed modes |
| newMode | New observer mode index |
When the observer changes to a mode not previously cached, this function captures the current HBAO setting and disables it if necessary
|
protected |
Flag indicating if shadow settings need to be restored on shutdown.
|
protected |
Original shadow settings cached during initialization.
|
protected |
Original HDR state to restore on shutdown.
|
protected |
Map of observer modes to their original HBAO settings.
Maps observer mode IDs to the original HBAO enabled state for restoration