|
VR-Engage
2.2
|
DtPilotRenderUpdater handles render-to-texture (RTT) channels and channel configurations for aircraft cockpit displays and instruments. It manages cockpit model initialization, instrument panel updates, and HUD elements.
#include <pilotRenderUpdater.h>
Classes | |
| struct | VisionBlockGeometry |
Public Member Functions | |
| DtPilotRenderUpdater () | |
| virtual | ~DtPilotRenderUpdater () override |
| virtual bool | initialize (DtPlayerStation *player, DtInitTable &config) override |
| virtual bool | postInitialize () override |
| virtual void | tick (double dt) override |
| virtual void | shutdown () override |
| virtual const char * | type () const override |
| virtual DtVreMessageResult | handleRenderTextureInitialized (DtVreMessage *msg) |
| virtual DtVreMessageResult | handleSensorData (DtVreMessage *msg) |
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 |
Static Public Member Functions | |
| static unsigned int | overrideChannelCameraMask (makVrv::DtChannel *channel, unsigned int mask) |
Protected Member Functions | |
| virtual int | initRenderTexturesFor (makVrv::DtModelInstance *modelInstance) |
| virtual bool | replaceRttTexturesOn (makVrv::DtSceneObject *so, DtCameraStruct *cameraStruct) |
| virtual bool | enableRttEffectTexture (DtCameraStruct *cameraStruct, bool addToList=true) |
| virtual void | disableRttEffectTextures () |
| virtual bool | initCockpitObjects () |
| virtual void | destroyCockpitObjects () |
| virtual bool | initOwnshipOnlyRender () |
| virtual void | undoOwnshipOnlyRender () |
| virtual void | updateVisionBlockObservers () |
| virtual void | onVrStateChanged (bool enabled) |
| virtual void | slot_channelModified (const std::string &deName, const std::string &winName, const std::string &channelName, const makVrv::DtChannelConfiguration &config) |
| virtual void | initRealCockpit () |
| virtual void | updateHudContacts () |
Protected Member Functions inherited from makVre::DtPlayerComponent | |
| virtual void | initializeStateAttributes () |
| makVre::DtPilotRenderUpdater::DtPilotRenderUpdater | ( | ) |
Default constructor.
|
overridevirtual |
Virtual destructor.
|
overridevirtual |
Initializes the render updater component.
| player | Pointer to the player station |
| config | Configuration settings for initialization |
Reimplemented from makVre::DtPlayerComponent.
References makVre::DtPlayerComponent::player().
|
overridevirtual |
Performs post-initialization setup.
Reimplemented from makVre::DtPlayerComponent.
|
overridevirtual |
Updates rendering elements for the current frame.
| dt | Delta time since the last frame in seconds |
Implements makVre::DtPlayerComponent.
|
overridevirtual |
Cleans up resources when the component is being shut down.
Reimplemented from makVre::DtPlayerComponent.
|
overridevirtual |
Returns the component type identifier.
Returns the type identifier string for this component, which is used by the VR-Engage framework for component identification and management. The returned value matches DtPilotRenderUpdaterType.
Implements makVre::DtPlayerComponent.
|
virtual |
Handles render texture initialized messages.
| msg | Pointer to the message being processed |
|
virtual |
Handles sensor data messages.
| msg | Pointer to the message being processed |
Caches sensor contacts, so tick can convert to screen coordinates for the HUD.
|
static |
Overrides the camera mask for a channel.
| channel | Pointer to the channel to override |
| mask | New camera mask to apply |
|
protectedvirtual |
Initializes render textures for a model instance.
| modelInstance | Pointer to the model instance |
|
protectedvirtual |
Replaces RTT textures on a scene object.
| so | Pointer to the scene object |
| cameraStruct | Pointer to the camera structure |
|
protectedvirtual |
Enables RTT effect texture for texture swapping.
| cameraStruct | Pointer to the camera structure |
| addToList | Flag indicating whether to add the texture to the effect textures list |
|
protectedvirtual |
Turns off the RTT effect textures and restores the original textures.
|
protectedvirtual |
Initializes cockpit objects.
Called during tick. Maps RTT texture indices to elements in the 3D model.
|
protectedvirtual |
Destroys cockpit objects and releases resources.
|
protectedvirtual |
Initializes ownship-only rendering mode.
|
protectedvirtual |
Reverts the ownship-only rendering mode.
|
protectedvirtual |
Updates vision block observers for cockpit views.
|
protectedvirtual |
Handles changes in VR state.
| enabled | True if VR is enabled, false otherwise |
|
protectedvirtual |
Handles channel modification events.
| deName | Name of the display element |
| winName | Name of the window |
| channelName | Name of the modified channel |
| config | New channel configuration |
|
protectedvirtual |
Initializes a 3D cockpit model with instruments.
Initialization to be done when using a "real" 3D cockpit model. Sets up render-to-texture elements for instruments.
|
protectedvirtual |
Updates HUD contact positions.
Updates HUD contact positions based on contact locations and current position and orientation of ownship.
|
protected |
Pointer to the instrument panel manager.
|
protected |
Aircraft marking text.
|
protected |
Pointer to the cockpit model definition.
|
protected |
Agent for the cockpit articulated model.
|
protected |
Agent for the cockpit scene object.
|
protected |
Agent for the cockpit updater.
|
protected |
Flag indicating if cockpit objects are initialized.
|
protected |
Flag indicating if cockpit models are initialized.
|
protected |
Map of RTT definitions indexed by name.
|
protected |
Pointer to the ownship scene object.
|
protected |
Flag indicating if only the model should be rendered.
|
protected |
Flag indicating if ownship-only rendering is desired.
|
protected |
Flag indicating if ownship-only rendering is active.
|
protected |
Flag indicating if ownship was set up in VR mode.
|
protected |
Reference to the ownship node group.
|
protected |
Saved sky mask for ownship-only rendering.
|
protected |
Saved cloud mask for ownship-only rendering.
|
protected |
Saved camera mask for ownship-only rendering.
|
protected |
Mask bit for the ownship.
|
protected |
Pointer to the OSG observer object.
|
protected |
List of vision blocks with their associated camera structures.
|
protected |
Vector of effect texture camera structures.
|
protected |
Vector of sensor contacts for HUD display.