|
VR-Engage
2.2
|
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 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 () |
| virtual void | setName (const std::string &name) |
| virtual const std::string & | name () |
| virtual DtPlayerStation & | player () |
| virtual DtAttributeHandle & | playerAttributeStore () |
| virtual const DtAttributeHandle & | playerAttributeStore () const |
Protected Attributes | |
| std::string | myOwnshipMarkingText |
| makVrv::DtObserver * | myMainWindowObserver |
| makVrv::DtUniqueID | myPlayerElementID |
| makVrv::DtObserverObject::AttachType | myAttachType |
| DtVector | myAttachedOffset |
| DtTaitBryan | myOriOffset |
| float | mySmoothingPeriod |
| float | myOldSmoothingPeriod |
| bool | myRotateEntitySymbols |
| bool | myOldRotateEntitySymbols |
| bool | myOldLaserDesignator |
| bool | myResetMainWindowSensorMode |
| int | myTickCount |
| bool | myUsingSavedView |
| bool | myShowModel |
Protected Attributes inherited from makVre::DtObserverUpdater | |
| makVre::DtInstrumentPanelManager * | myInstrumentPanelManager |
| ChannelConfigMap | myChannelsToUpdate |
| bool | myForceChannelUpdate |
| double | myVerticalFOV |
| double | myHorizontalFOV |
| makVrv::DtWindow * | myWindow |
Protected Attributes inherited from makVre::DtPlayerComponent | |
| std::string | myName |
| DtInitTable | myConfig |
| DtPlayerStation * | myPlayer |
| makVrv::DtDe * | myDe |
| DtEntityResolver * | myResolver |
| DtAttributeCallbackManager | myAttributeCallbacks |
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 |
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 |
Current smoothing period for view transitions.
|
protected |
Previous smoothing period value.
|
protected |
Flag indicating if entity symbols should rotate.
|
protected |
Previous entity symbols rotation setting.
|
protected |
Previous laser designator setting.
|
protected |
Flag indicating if main window sensor mode needs to be reset.
|
protected |
Count of update ticks since initialization.
|
protected |
Flag indicating if a saved view is being used.
|
protected |
Flag indicating if the aircraft model should be shown.