21class DtChannelConfiguration;
70class DtEntityResolver;
71class DtInstrumentPanelManager;
112 virtual void tick(
double dt)
override;
120 virtual const char*
type()
const override;
136 const std::string& windowName,
const std::string& channelName,
bool restoreInitialSettings =
true);
175 const std::string& windowName,
const std::string& channelName, makVrv::DtChannelConfiguration& config);
197 const std::string& windowName,
const std::string& channelName,
const makVrv::DtChannelConfiguration& newConfig);
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Manager for instrument panels, gimbal sensors, and specialized views.
Definition instrumentPanelManager.h:44
virtual bool applyConfigurationToChannel(const std::string &windowName, const std::string &channelName, const makVrv::DtChannelConfiguration &newConfig)
Applies a configuration to a specific channel.
makVrv::DtWindow * myWindow
Pointer to the main window.
Definition observerUpdater.h:237
virtual void setShowCockpits(bool show)
Sets the showCockpits keyword on all managed channels.
virtual void shutdown() override
Shuts down the observer updater component.
bool firstWindowAndChannelNames(std::string &windowName, std::string &channelName)
Gets the names of the first window and channel.
virtual void removeChannelToUpdate(const std::string &windowName, const std::string &channelName, bool restoreInitialSettings=true)
Removes a channel from being managed by this updater.
virtual bool initialize(DtPlayerStation *station, DtInitTable &config) override
Initializes the observer updater component.
virtual void initializeStateAttributes() override
Initializes player state attributes related to observer settings.
std::pair< std::string, std::string > WindowAndChannelName
Type definition for window and channel name pairs.
Definition observerUpdater.h:216
virtual ~DtObserverUpdater() override
Virtual destructor for DtObserverUpdater.
ChannelConfigMap myChannelsToUpdate
Map of channel configurations to be updated.
Definition observerUpdater.h:225
virtual void addChannelToUpdate(const std::string &windowName, const std::string &channelName)
Adds a channel to be managed by this updater.
virtual void tick(double dt) override
Called every frame to update observer parameters.
virtual bool findChannelConfiguration(const std::string &windowName, const std::string &channelName, makVrv::DtChannelConfiguration &config)
Finds the configuration for a specific channel.
virtual void onObserverModeChanged(std::string observerMode)
Handles changes to the observer mode state attribute.
bool myForceChannelUpdate
Flag indicating if channel updates should be forced.
Definition observerUpdater.h:228
std::map< WindowAndChannelName, makVrv::DtChannelConfiguration > ChannelConfigMap
Type definition for mapping window/channel pairs to configurations.
Definition observerUpdater.h:219
virtual void updateStateAttributes()
Updates player state attributes with current observer data.
virtual void onSensorModeChanged(std::string sensorMode)
Handles changes to the sensor mode state attribute.
double myVerticalFOV
Vertical field of view in degrees.
Definition observerUpdater.h:231
virtual void updateAllChannels()
Updates all managed channels with current settings.
virtual void addVrChannels()
Adds VR-specific channels to be managed.
double myHorizontalFOV
Horizontal field of view in degrees.
Definition observerUpdater.h:234
virtual void addDefaultChannels()
Adds the default channel (Window 1, Channel 1) to be managed.
DtObserverUpdater()
Default constructor for DtObserverUpdater.
virtual const char * type() const override
Returns the component type identifier.
makVre::DtInstrumentPanelManager * myInstrumentPanelManager
Pointer to the instrument panel manager.
Definition observerUpdater.h:213
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
constexpr const char * horizontalFOV
Definition observerUpdater.h:34
constexpr const char * verticalFOV
Definition observerUpdater.h:37
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition observerUpdater.h:26
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtObserverUpdaterType
Type identifier for DtObserverUpdater component.
Definition observerUpdater.h:74
Definition appLauncherComponent.h:28
Defines the DtPlayerComponent base class for VR-Engage role components.
void setMax(double m)
Sets the maximum value in the range, converting from degrees to radians.
Definition observerUpdater.h:53
ObserverRange()=default
Default constructor.
void setMin(double m)
Sets the minimum value in the range, converting from degrees to radians.
Definition observerUpdater.h:57
double min
Minimum value of the range in radians.
Definition observerUpdater.h:63
double max
Maximum value of the range in radians.
Definition observerUpdater.h:60