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

Detailed Description

DtVrvSensorOverlayUpdater manages which overlay sections are displayed in the gimbal sensor view. It allows customization of the sensor display by including or excluding specific overlay sections based on configuration, and restores default sections when shutting down.

#include <vrvSensorOverlayUpdater.h>

Inheritance diagram for makVre::DtVrvSensorOverlayUpdater:
[legend]

Public Member Functions

 DtVrvSensorOverlayUpdater ()
 
virtual ~DtVrvSensorOverlayUpdater () 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 DtPlayerStationplayer ()
 
virtual DtAttributeHandleplayerAttributeStore ()
 
virtual const DtAttributeHandleplayerAttributeStore () const
 

Additional Inherited Members

- Protected Member Functions inherited from makVre::DtPlayerComponent
virtual void initializeStateAttributes ()
 
- Protected Attributes inherited from makVre::DtPlayerComponent
std::string myName
 
DtInitTable myConfig
 
DtPlayerStationmyPlayer
 
makVrv::DtDe * myDe
 
DtEntityResolvermyResolver
 
DtAttributeCallbackManager myAttributeCallbacks
 

Constructor & Destructor Documentation

◆ DtVrvSensorOverlayUpdater()

makVre::DtVrvSensorOverlayUpdater::DtVrvSensorOverlayUpdater ( )

Constructor for DtVrvSensorOverlayUpdater.

Initializes the component with the name "DtVrvSensorOverlayUpdater"

◆ ~DtVrvSensorOverlayUpdater()

virtual makVre::DtVrvSensorOverlayUpdater::~DtVrvSensorOverlayUpdater ( )
overridevirtual

Virtual destructor for DtVrvSensorOverlayUpdater.

Member Function Documentation

◆ initialize()

virtual bool makVre::DtVrvSensorOverlayUpdater::initialize ( makVre::DtPlayerStation * player,
makVre::DtInitTable & config )
overridevirtual

Initializes the sensor overlay updater component.

Parameters
playerPointer to the player station this component belongs to
configConfiguration table containing overlay section settings
Returns
True if initialization succeeded, false otherwise

Reads the "sections" configuration list to determine which overlay sections should be displayed. If no sections are specified, default overlay sections will be used. Sends a SetGimbalOverlaySectionsMessage with the configured sections to apply the changes.

Reimplemented from makVre::DtPlayerComponent.

References makVre::DtPlayerComponent::player().

◆ tick()

virtual void makVre::DtVrvSensorOverlayUpdater::tick ( double dt)
overridevirtual

Called every frame to update the component state.

Parameters
dtDelta time since the last frame in seconds

Current implementation has no per-frame update actions

Implements makVre::DtPlayerComponent.

◆ shutdown()

virtual void makVre::DtVrvSensorOverlayUpdater::shutdown ( )
overridevirtual

Shuts down the sensor overlay updater component.

Sends a RestoreGimbalOverlaySectionsMessage to revert to the default overlay sections configuration

Reimplemented from makVre::DtPlayerComponent.

◆ type()

virtual const char * makVre::DtVrvSensorOverlayUpdater::type ( ) const
overridevirtual

Returns the type identifier for this component.

Returns
The type string for DtVrvSensorOverlayUpdater

Implements makVre::DtPlayerComponent.


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