|
VR-Engage
2.3
|
DtPilotObserverUpdater manages the observer (camera) behavior for the pilot role, including handling different view modes, cockpit views, and external aircraft views. It handles positioning, orientation, and updates of the observer based on the aircraft state and pilot inputs.
#include <pilotObserverUpdater.h>
Classes | |
| struct | InstrumentPanel |
Public Member Functions | |
| DtPilotObserverUpdater () | |
| virtual | ~DtPilotObserverUpdater () override |
| virtual bool | initialize (makVre::DtPlayerStation *player, makVre::DtInitTable &config) override |
| virtual makVre::DtInitTickStatus | finalizeInitTick (double dt) override |
| virtual void | tick (double dt) override |
| virtual void | shutdown () override |
| virtual const char * | type () const override |
Public Member Functions inherited from makVre::DtObserverUpdater | |
| DtObserverUpdater () | |
| virtual | ~DtObserverUpdater () override |
| virtual bool | postInitialize () override |
| virtual void | addChannelToUpdate (const std::string &windowName, const std::string &channelName) |
| virtual void | removeChannelToUpdate (const std::string &windowName, const std::string &channelName, bool restoreInitialSettings=true) |
Public Member Functions inherited from makVre::DtPlayerComponent | |
| DtPlayerComponent () | |
| virtual | ~DtPlayerComponent () |
| bool | componentReady () const |
| void | setComponentReady (bool ready) |
| virtual void | setName (const std::string &name) |
| virtual const std::string & | name () |
| virtual DtPlayerStation & | player () |
| virtual DtAttributeHandle & | playerAttributeStore () |
| virtual const DtAttributeHandle & | playerAttributeStore () const |
| virtual const DtAttributeHandle & | ownshipState () const |
| virtual void | setExtendedData (const std::string &key, const std::string &value, DtEntityIdentifier entity=DtEntityIdentifier::nullId()) |
Additional Inherited Members | |
Protected Types inherited from makVre::DtObserverUpdater | |
| using | WindowAndChannelName = std::pair<std::string, std::string> |
| using | ChannelConfigMap = std::map<WindowAndChannelName, makVrv::DtChannelConfiguration> |
Protected Member Functions inherited from makVre::DtObserverUpdater | |
| virtual void | initializeStateAttributes () override |
| virtual void | onSensorModeChanged (std::string sensorMode) |
| virtual void | onObserverModeChanged (std::string observerMode) |
| virtual void | addDefaultChannels () |
| virtual void | addVrChannels () |
| virtual bool | findChannelConfiguration (const std::string &windowName, const std::string &channelName, makVrv::DtChannelConfiguration &config) |
| virtual void | updateAllChannels () |
| virtual void | setShowCockpits (bool show) |
| virtual bool | applyConfigurationToChannel (const std::string &windowName, const std::string &channelName, const makVrv::DtChannelConfiguration &newConfig) |
| bool | firstWindowAndChannelNames (std::string &windowName, std::string &channelName) |
| virtual void | updateStateAttributes () |
| DtPilotObserverUpdater::DtPilotObserverUpdater | ( | ) |
Default constructor.
|
overridevirtual |
Virtual destructor.
|
overridevirtual |
Initializes the observer updater component.
| player | Pointer to the player station |
| config | Configuration settings for initialization |
Reimplemented from makVre::DtObserverUpdater.
References makVre::DtPlayerComponent::player().
|
overridevirtual |
Called after postInitialize() to complete one-time observer setup.
| dt | Delta time since the last frame in seconds |
Sets the observer to mimic attach mode and re-sends the ocean height map resolution to ensure correct terrain realization. Runs during the LOADING_PLAYER_STATE phase before the engaged tick loop.
Reimplemented from makVre::DtPlayerComponent.
|
overridevirtual |
Updates the observer for the current frame.
| dt | Delta time since the last frame in seconds |
Reimplemented from makVre::DtObserverUpdater.
|
overridevirtual |
Cleans up resources when the component is being shut down.
Reimplemented from makVre::DtObserverUpdater.
|
overridevirtual |
Returns the component type identifier.
Reimplemented from makVre::DtObserverUpdater.
|
protected |
Marking text for the ownship aircraft.
|
protected |
Pointer to the main window observer.
|
protected |
Unique ID of the player element.
|
protected |
Type of attachment for the observer.
|
protected |
Offset position for attached observer.
|
protected |
Orientation offset for the observer.
|
protected |
Tracks temporary laser designator settings applied by this component.
|
protected |
Flag indicating if main window sensor mode needs to be reset.
|
protected |
Flag indicating if a saved view is being used.
|
protected |
Flag indicating if the aircraft model should be shown.
|
protected |
Attribute handle storing the ownship's current damage state.
| Attribute Store Key | ownship.damageState |
|---|
|
protected |
Attribute handle indicating whether the mimic offset mode is active.
| Attribute Store Key | mimicOffset |
|---|
|
protected |
Attribute handle indicating whether the real cockpit model should be displayed.
| Attribute Store Key | realCockpit |
|---|