VR-Engage  2.3
Loading...
Searching...
No Matches
pilotRenderUpdater.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \file pilotRenderUpdater.h
7//! \brief Defines render components for the pilot role including instrument displays
8//! \ingroup vrePilotFrontend
9
10#pragma once
11
13#include "vreUtil/attribute.h"
14
17
18#include <vrvOsg/DtChannelSpecificGroup.h>
19#include <vrvUtil/DtChannelConfiguration.h>
20
21#include <osg/Node>
22#include <osg/NodeVisitor>
23#include <osg/Texture2D>
24#include <osg/BoundingBox>
25
27
28namespace makVre
29{
30
32{
33//! \ingroup RoleConfigParams
34//! \defgroup PilotRenderUpdaterRoleParams Pilot Render Updater Role Parameters
35//! \roleInherits{PlayerComponentRoleParams}
36//! Configuration Options for pilot render updater component.
37//! @{
38
39//! \vreRoleParam{liveTextures,table,{},pilotRenderUpdater,Configuration table for live texture definitions used in cockpit displays and instruments.}
40constexpr const char* liveTextures = "liveTextures";
41
42//! \vreRoleParam{renderCockpitGeometryOnly,bool,false,pilotRenderUpdater,Whether to render only the cockpit geometry without other scene elements.}
43constexpr const char* renderCockpitGeometryOnly = "renderCockpitGeometryOnly";
44
45//! @}
46} // namespace PilotRenderUpdaterConfig
47
48} // namespace makVre
49
50namespace makVrv
51{
52//! \brief Forward declaration of the display element class
53class DtDe;
54
55//! \brief Forward declaration of the model definition class
56class DtModelDefinition;
57
58//! \brief Forward declaration of the model instance class
59class DtModelInstance;
60
61//! \brief Forward declaration of the scene object class
62class DtSceneObject;
63
64//! \brief Forward declaration of the scene object agent class
65class DtSceneObjectAgent;
66
67//! \brief Forward declaration of the articulated model agent class
68class DtArticulatedModelAgent;
69
70//! \brief Forward declaration of the OSG observer object class
71class DtOsgObserverObject;
72
73//! \brief Forward declaration of the observer class
74class DtObserver;
75
76//! \brief Forward declaration of the channel-specific group class
77class DtChannelSpecificGroup;
78
79//! \brief Forward declaration of the channel class
80class DtChannel;
81}; // namespace makVrv
82
83namespace makVre
84{
85//! \brief Forward declaration of the entity resolver class
87
88//! \brief Forward declaration of the instrument panel manager class
90
91//! \brief Forward declaration of the scene object mimic updater agent class
93
94//! \brief Forward declaration of the camera structure
95struct DtCameraStruct;
96
97//! \brief Node visitor for replacing instrument textures in cockpit models
98//!
99//! DtInstrumentTextureReplacer traverses a scene graph to find and replace
100//! specific textures with render-to-texture (RTT) displays for aircraft instruments.
101//! It can also collect geometry information about the textures for proper positioning.
102class PILOT_DLL DtInstrumentTextureReplacer : public osg::NodeVisitor
103{
104public:
105 //! \brief Constructor
106 //! \param targetTextureName Name of the texture to replace
107 //! \param replacementTexture Reference to the replacement texture
108 //! \param isHud Flag indicating if this is a HUD texture
109 //! \param findPosition Flag indicating whether to collect geometry information
110 //! \param overrideNormal Optional normal vector to override the calculated normal
111 DtInstrumentTextureReplacer(const std::string& targetTextureName, osg::ref_ptr<osg::Texture2D> replacementTexture,
112 bool isHud = false, bool findPosition = false, const osg::Vec3* overrideNormal = NULL);
113
114 //! \brief Virtual destructor
116
117 //! \brief The visitor apply method used to traverse the scene-graph
118 //! \param node The osg::Node being visited
119 //!
120 //! Called during scene-graph traversal. Do not directly call this function.
121 virtual void apply(osg::Node& node) override;
122
123 //! \brief The visitor apply method for geodes
124 //! \param geode The osg::Geode being visited
125 //!
126 //! Called during scene-graph traversal. Do not directly call this function.
127 //! Currently commented out and not used.
128 // virtual void apply(osg::Geode& geode);
129
130 //! \brief Checks if the target texture was found
131 //! \return True if the target texture was found, false otherwise
132 bool foundTarget() const;
133
134 //! \brief Gets the normal vector of the target geometry
135 //! \return Normal vector of the target geometry
136 osg::Vec3 targetNormal() const;
137
138 //! \brief Gets the minimum bounds of the target geometry
139 //! \return Minimum bounds vector
140 osg::Vec3 targetBoundsMin() const;
141
142 //! \brief Gets the maximum bounds of the target geometry
143 //! \return Maximum bounds vector
144 osg::Vec3 targetBoundsMax() const;
145
146 //! \brief Structure containing geometry information for the target texture
147 struct Geometry
148 {
149 osg::Vec3 normal; //!< Average normal of RTT geometry
150 osg::Plane plane; //!< Plane on farthest point along average normal
151 osg::BoundingBox box; //!< Box holding geometry bounds in model space
152 osg::Vec3 min; //!< Minimum RTT geometry bounds projected on plane
153 osg::Vec3 max; //!< Maximum RTT geometry bounds projected on plane
154
155 osg::Vec3 center; //!< Local space center of the geometry
156 double width; //!< Width of the plane geometry
157 double height; //!< Height of the plane geometry
158 osg::Vec3 right; //!< Right axis vector in plane space
159 osg::Vec3 up; //!< Up axis vector in plane space
160 };
161
162 //! \brief Return the geometry object representing the geometry having
163 //! it's texture replaced
165
166protected:
167 //! \brief Replaces a texture in the given state set
168 //! \param ss State set containing the texture to replace
169 //! \param node Node associated with the state set
170 //! \return True if the texture was replaced, false otherwise
171 virtual bool replaceTexture(osg::StateSet& ss, osg::Node& node);
172
173 //! \brief Collects geometry information for the target texture
174 //! \param node Node containing the geometry
175 //! \param nodePath Path to the node in the scene graph
176 //! \return True if geometry was collected, false otherwise
177 virtual bool collectGeometry(const osg::Node& node, const osg::NodePath& nodePath);
178
179 //! \brief Name of the texture to replace
181
182 //! \brief Reference to the replacement texture
183 osg::ref_ptr<osg::Texture2D> myReplacementTexture;
184
185 //! \brief Flag indicating if this is a HUD texture
187
188 //! \brief Flag indicating if the target texture was found
190
191 //! \brief Flag indicating if geometry information should be collected
193
194 //! \brief Flag indicating whether to continue traversal after finding the target
196
197 //! \brief Collected geometry information for the target texture
199
200 //! \brief Flag indicating whether to use the provided override normal
202};
203
205{
206public:
207 DtHudGeometryFinder(const std::string& nodeName);
208
209 //! \brief Override replaceTexture so it just returns if we find a
210 //! node with the same name as we just want the geometry gathering
211 //! functionality
212 virtual bool replaceTexture(osg::StateSet& ss, osg::Node& node);
213};
214
215//! \brief Type identifier constant for DtPilotRenderUpdater components
216//!
217//! This constant defines the string identifier used to identify DtPilotRenderUpdater
218//! component types within the VR-Engage framework. It is used for component
219//! registration, type checking, and serialization operations.
220constexpr const char* DtPilotRenderUpdaterType = "DtPilotRenderUpdater";
221
222//! \brief Render updater component for the pilot role
223//!
224//! DtPilotRenderUpdater handles render-to-texture (RTT) channels and channel
225//! configurations for aircraft cockpit displays and instruments. It manages
226//! cockpit model initialization, instrument panel updates, and HUD elements.
228{
229public:
230 //! \brief Default constructor
232
233 //! \brief Virtual destructor
234 virtual ~DtPilotRenderUpdater() override;
235
236 //! \brief Initializes the render updater component
237 //! \param player Pointer to the player station
238 //! \param config Configuration settings for initialization
239 //! \return True if initialization was successful, false otherwise
240 virtual bool initialize(DtPlayerStation* player, DtInitTable& config) override;
241
242 //! \brief Performs post-initialization setup
243 //! \return True if post-initialization was successful, false otherwise
244 virtual bool postInitialize() override;
245
246 //! \brief Called after postInitialize() to wait for VRV agent readiness
247 //! \param dt Delta time since the last frame in seconds
248 //! \return Ready once cockpit objects and sensor field of view data are fully initialized
249 //!
250 //! Polls VR-Vantage agents for scene object, updater, and model readiness, and
251 //! waits for deferred sensor views to receive their field of view data. Runs
252 //! during the LOADING_PLAYER_STATE phase before the engaged tick loop.
253 virtual DtInitTickStatus finalizeInitTick(double dt) override;
254
255 //! \brief Updates rendering elements for the current frame
256 //! \param dt Delta time since the last frame in seconds
257 virtual void tick(double dt) override;
258
259 //! \brief Cleans up resources when the component is being shut down
260 virtual void shutdown() override;
261
262 //! \brief Returns the component type identifier
263 //! \return String identifier for this component type
264 //!
265 //! Returns the type identifier string for this component, which is used
266 //! by the VR-Engage framework for component identification and management.
267 //! The returned value matches DtPilotRenderUpdaterType.
268 virtual const char* type() const override;
269
270 //! \brief Handles render texture initialized messages
271 //! \param msg Pointer to the message being processed
272 //! \return Message processing result
274
275 //! \brief Handles sensor data messages
276 //! \param msg Pointer to the message being processed
277 //! \return Message processing result
278 //!
279 //! Caches sensor contacts, so tick can convert to screen coordinates for the HUD.
281
282 //! \brief Overrides the camera mask for a channel
283 //! \param channel Pointer to the channel to override
284 //! \param mask New camera mask to apply
285 //! \return The original camera mask
286 static unsigned int overrideChannelCameraMask(makVrv::DtChannel* channel, unsigned int mask);
287
288protected:
289 //! \brief Initializes render textures for a model instance
290 //! \param modelInstance Pointer to the model instance
291 //! \return Number of render textures initialized
292 virtual int initRenderTexturesFor(makVrv::DtModelInstance* modelInstance);
293
294 //! \brief Replaces RTT textures on a scene object
295 //! \param so Pointer to the scene object
296 //! \param cameraStruct Pointer to the camera structure
297 //! \return True if textures were replaced successfully, false otherwise
298 virtual bool replaceRttTexturesOn(makVrv::DtSceneObject* so, DtCameraStruct* cameraStruct);
299
300 //! \brief Enables RTT effect texture for texture swapping
301 //! \param cameraStruct Pointer to the camera structure
302 //! \param addToList Flag indicating whether to add the texture to the effect textures list
303 //! \return True if the texture was enabled successfully, false otherwise
304 virtual bool enableRttEffectTexture(DtCameraStruct* cameraStruct, bool addToList = true);
305
306 //! \brief Turns off the RTT effect textures and restores the original textures
308
309 //! \brief Initializes cockpit objects
310 //! \return True if initialization was successful, false otherwise
311 //!
312 //! Called during tick. Maps RTT texture indices to elements in the 3D model.
313 virtual bool initCockpitObjects();
314
315 //! \brief Destroys cockpit objects and releases resources
316 virtual void destroyCockpitObjects();
317
318 //! \brief Initializes ownship-only rendering mode
319 //! \return True if initialization was successful, false otherwise
320 virtual bool initOwnshipOnlyRender();
321
322 //! \brief Reverts the ownship-only rendering mode
323 virtual void undoOwnshipOnlyRender();
324
325 //! \brief Updates vision block observers for cockpit views
327
328 //! \brief Handles changes in VR state
329 //! \param enabled True if VR is enabled, false otherwise
330 virtual void onVrStateChanged(bool enabled);
331
332 //! \brief Handles channel modification events
333 //! \param deName Name of the display element
334 //! \param winName Name of the window
335 //! \param channelName Name of the modified channel
336 //! \param config New channel configuration
337 virtual void slot_channelModified(const std::string& deName, const std::string& winName,
338 const std::string& channelName, const makVrv::DtChannelConfiguration& config);
339
340 //! \brief Initializes a 3D cockpit model with instruments
341 //!
342 //! Initialization to be done when using a "real" 3D cockpit model.
343 //! Sets up render-to-texture elements for instruments.
344 virtual void initRealCockpit();
345
346 //! \brief Updates HUD contact positions
347 //!
348 //! Updates HUD contact positions based on contact locations and
349 //! current position and orientation of ownship.
350 virtual void updateHudContacts();
351
352 //! \brief Update the hud contact for VR.
353 //! This version accounts for VR head position
354 //! and sets up shader uniforms for zero parallax
355 //! to mimic collimator view.
356 virtual void updateHudContactsVR();
357
358 //! \brief Pointer to the instrument panel manager
360
361 //! \brief Aircraft marking text
362 std::string myMarkingText;
363
364 //! \brief Pointer to the cockpit model definition
365 const makVrv::DtModelDefinition* myCockpitModelDef;
366
367 //! \brief Agent for the cockpit articulated model
368 makVrv::DtArticulatedModelAgent* myCockpitModelAgent;
369
370 //! \brief Agent for the cockpit scene object
371 makVrv::DtSceneObjectAgent* myCockpitSceneObjectAgent;
372
373 //! \brief Agent for the cockpit updater
375
376 //! \brief Flag indicating if cockpit objects are initialized
378
379 //! \brief Flag indicating if cockpit models are initialized
381
382 //! \brief Map of RTT definitions indexed by name
383 std::map<std::string, DtInitTable> myRttDefs;
384
385 //! \brief Pointer to the ownship scene object
386 makVrv::DtSceneObject* myOwnshipSceneObject;
387
388 //! \brief Flag indicating if only the model should be rendered
390
391 //! \brief Flag indicating if ownship-only rendering is desired
393
394 //! \brief Flag indicating if ownship-only rendering is active
396
397 //! \brief Flag indicating if ownship was set up in VR mode
399
400 //! \brief Reference to the ownship node group
401 osg::ref_ptr<makVrv::DtChannelSpecificGroup> myOwnshipNode;
402
403 //! \brief Saved sky mask for ownship-only rendering
404 unsigned int mySavedSkyMask;
405
406 //! \brief Saved cloud mask for ownship-only rendering
407 unsigned int mySavedCloudMask;
408
409 //! \brief Saved camera mask for ownship-only rendering
410 unsigned int mySavedCameraMask;
411
412 //! \brief Mask bit for the ownship
413 unsigned int myOwnshipMaskBit;
414
415 //! \brief Pointer to the OSG observer object
416 makVrv::DtOsgObserverObject* myOsgObserver;
417
418 //! \brief Structure containing vision block geometry information
420 {
421 osg::Quat modelSpaceCamRot; //!< Camera rotation in model space
422 osg::Vec3 modelSpaceRttMin; //!< Minimum extent of RTT in model space
423 osg::Vec3 modelSpaceRttMax; //!< Maximum extent of RTT in model space
424 osg::Vec3 viewOffset; //!< Offset for the view
425 osg::Quat viewRotation; //!< Rotation for the view
426 float viewZoom; //!< Zoom factor for the view
427 };
428
429 //! \brief List of vision blocks with their associated camera structures
430 std::list<std::pair<VisionBlockGeometry, DtCameraStruct*>> myVisionBlocks;
431
432 //! \brief Vector of effect texture camera structures
433 std::vector<DtCameraStruct*> myEffectTextures;
434
435 //! \brief Vector of sensor contacts for HUD display
436 std::vector<SensorDataMessage::SensorContact> mySensorContacts;
437
438 //! \brief Attribute handle indicating whether VR mode is enabled for the player.
439 //! \vreAttrKey{vr-enabled}
441
443};
444}; // namespace makVre
Provides attribute handling system for hierarchical data storage and manipulation.
Type-specific handle class for attributes.
Definition attributeHandle.h:229
Entity resolution and mapping system.
Definition entityResolver.h:52
virtual bool replaceTexture(osg::StateSet &ss, osg::Node &node)
Override replaceTexture so it just returns if we find a node with the same name as we just want the g...
DtHudGeometryFinder(const std::string &nodeName)
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:45
virtual void apply(osg::Node &node) override
The visitor apply method used to traverse the scene-graph.
virtual bool replaceTexture(osg::StateSet &ss, osg::Node &node)
Replaces a texture in the given state set.
osg::ref_ptr< osg::Texture2D > myReplacementTexture
Reference to the replacement texture.
Definition pilotRenderUpdater.h:183
bool myTraverseOnTarget
Flag indicating whether to continue traversal after finding the target.
Definition pilotRenderUpdater.h:195
osg::Vec3 targetBoundsMin() const
Gets the minimum bounds of the target geometry.
virtual bool collectGeometry(const osg::Node &node, const osg::NodePath &nodePath)
Collects geometry information for the target texture.
osg::Vec3 targetNormal() const
Gets the normal vector of the target geometry.
bool myIsHud
Flag indicating if this is a HUD texture.
Definition pilotRenderUpdater.h:186
Geometry getGeometry()
Return the geometry object representing the geometry having it's texture replaced.
Geometry myGeometry
Collected geometry information for the target texture.
Definition pilotRenderUpdater.h:198
bool myUseOverrideNormal
Flag indicating whether to use the provided override normal.
Definition pilotRenderUpdater.h:201
osg::Vec3 targetBoundsMax() const
Gets the maximum bounds of the target geometry.
std::string myTargetTextureName
Name of the texture to replace.
Definition pilotRenderUpdater.h:180
bool myWantsGeometry
Flag indicating if geometry information should be collected.
Definition pilotRenderUpdater.h:192
bool myFoundTarget
Flag indicating if the target texture was found.
Definition pilotRenderUpdater.h:189
bool foundTarget() const
The visitor apply method for geodes.
virtual ~DtInstrumentTextureReplacer() override
Virtual destructor.
DtInstrumentTextureReplacer(const std::string &targetTextureName, osg::ref_ptr< osg::Texture2D > replacementTexture, bool isHud=false, bool findPosition=false, const osg::Vec3 *overrideNormal=NULL)
Constructor.
virtual void undoOwnshipOnlyRender()
Reverts the ownship-only rendering mode.
virtual void destroyCockpitObjects()
Destroys cockpit objects and releases resources.
bool myRenderModelOnly
Flag indicating if only the model should be rendered.
Definition pilotRenderUpdater.h:389
osg::ref_ptr< makVrv::DtChannelSpecificGroup > myOwnshipNode
Reference to the ownship node group.
Definition pilotRenderUpdater.h:401
bool myMadeOwnshipOnly
Flag indicating if ownship-only rendering is active.
Definition pilotRenderUpdater.h:395
std::vector< DtCameraStruct * > myEffectTextures
Vector of effect texture camera structures.
Definition pilotRenderUpdater.h:433
virtual void onVrStateChanged(bool enabled)
Handles changes in VR state.
makVrv::DtSceneObjectAgent * myCockpitSceneObjectAgent
Agent for the cockpit scene object.
Definition pilotRenderUpdater.h:371
DtSceneObjectMimicUpdaterAgent * myCockpitUpdaterAgent
Agent for the cockpit updater.
Definition pilotRenderUpdater.h:374
DtPilotRenderUpdater()
Default constructor.
std::list< std::pair< VisionBlockGeometry, DtCameraStruct * > > myVisionBlocks
List of vision blocks with their associated camera structures.
Definition pilotRenderUpdater.h:430
bool myWantOwnshipOnly
Flag indicating if ownship-only rendering is desired.
Definition pilotRenderUpdater.h:392
DtInstrumentTextureReplacer::Geometry myHudGlassGeom
Definition pilotRenderUpdater.h:442
virtual void tick(double dt) override
Updates rendering elements for the current frame.
bool myCockpitModelsInitialized
Flag indicating if cockpit models are initialized.
Definition pilotRenderUpdater.h:380
virtual bool enableRttEffectTexture(DtCameraStruct *cameraStruct, bool addToList=true)
Enables RTT effect texture for texture swapping.
virtual bool postInitialize() override
Performs post-initialization setup.
virtual void slot_channelModified(const std::string &deName, const std::string &winName, const std::string &channelName, const makVrv::DtChannelConfiguration &config)
Handles channel modification events.
unsigned int mySavedCameraMask
Saved camera mask for ownship-only rendering.
Definition pilotRenderUpdater.h:410
virtual void disableRttEffectTextures()
Turns off the RTT effect textures and restores the original textures.
makVrv::DtSceneObject * myOwnshipSceneObject
Pointer to the ownship scene object.
Definition pilotRenderUpdater.h:386
makVrv::DtOsgObserverObject * myOsgObserver
Pointer to the OSG observer object.
Definition pilotRenderUpdater.h:416
virtual int initRenderTexturesFor(makVrv::DtModelInstance *modelInstance)
Initializes render textures for a model instance.
const makVrv::DtModelDefinition * myCockpitModelDef
Pointer to the cockpit model definition.
Definition pilotRenderUpdater.h:365
bool myDidOwnshipInVR
Flag indicating if ownship was set up in VR mode.
Definition pilotRenderUpdater.h:398
DtInstrumentPanelManager * myInstrumentPanelManager
Pointer to the instrument panel manager.
Definition pilotRenderUpdater.h:359
virtual void updateHudContacts()
Updates HUD contact positions.
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the render updater component.
virtual bool replaceRttTexturesOn(makVrv::DtSceneObject *so, DtCameraStruct *cameraStruct)
Replaces RTT textures on a scene object.
std::vector< SensorDataMessage::SensorContact > mySensorContacts
Vector of sensor contacts for HUD display.
Definition pilotRenderUpdater.h:436
makVrv::DtArticulatedModelAgent * myCockpitModelAgent
Agent for the cockpit articulated model.
Definition pilotRenderUpdater.h:368
std::string myMarkingText
Aircraft marking text.
Definition pilotRenderUpdater.h:362
unsigned int myOwnshipMaskBit
Mask bit for the ownship.
Definition pilotRenderUpdater.h:413
virtual bool initCockpitObjects()
Initializes cockpit objects.
bool myCockpitObjectsInitialized
Flag indicating if cockpit objects are initialized.
Definition pilotRenderUpdater.h:377
std::map< std::string, DtInitTable > myRttDefs
Map of RTT definitions indexed by name.
Definition pilotRenderUpdater.h:383
virtual ~DtPilotRenderUpdater() override
Virtual destructor.
virtual void updateVisionBlockObservers()
Updates vision block observers for cockpit views.
DtAttributeHandleType< bool > myVrEnabledAttr
Attribute handle indicating whether VR mode is enabled for the player.
Definition pilotRenderUpdater.h:440
unsigned int mySavedCloudMask
Saved cloud mask for ownship-only rendering.
Definition pilotRenderUpdater.h:407
virtual DtInitTickStatus finalizeInitTick(double dt) override
Called after postInitialize() to wait for VRV agent readiness.
virtual bool initOwnshipOnlyRender()
Initializes ownship-only rendering mode.
static unsigned int overrideChannelCameraMask(makVrv::DtChannel *channel, unsigned int mask)
Overrides the camera mask for a channel.
virtual void shutdown() override
Cleans up resources when the component is being shut down.
virtual DtVreMessageResult handleSensorData(DtVreMessage *msg)
Handles sensor data messages.
virtual DtVreMessageResult handleRenderTextureInitialized(DtVreMessage *msg)
Handles render texture initialized messages.
virtual const char * type() const override
Returns the component type identifier.
virtual void updateHudContactsVR()
Update the hud contact for VR. This version accounts for VR head position and sets up shader uniforms...
virtual void initRealCockpit()
Initializes a 3D cockpit model with instruments.
unsigned int mySavedSkyMask
Saved sky mask for ownship-only rendering.
Definition pilotRenderUpdater.h:404
virtual DtPlayerStation & player()
Gets the player station.
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Agent class for the scene object class: DtSceneObjectMimicUpdater.
Definition DtSceneObjectMimicUpdaterAgent.hpp:32
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
constexpr const char * liveTextures
Definition pilotRenderUpdater.h:40
constexpr const char * renderCockpitGeometryOnly
Definition pilotRenderUpdater.h:43
Defines export/import macros for the Pilot Frontend library.
#define PILOT_DLL
Definition export.h:19
Definition pilotRenderUpdater.h:32
!
Definition glsVreMessageUtil.h:50
constexpr const char * DtPilotRenderUpdaterType
Type identifier constant for DtPilotRenderUpdater components.
Definition pilotRenderUpdater.h:220
DtInitTickStatus
Status returned by DtPlayerComponent::finalizeInitTick() to indicate deferred initialization progress...
Definition playerComponent.h:80
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition appLauncherComponent.h:28
Defines the DtPlayerComponent base class for VR-Engage role components.
Structure that manages camera and render-to-texture for instrument panels.
Definition instrumentPanelManagerStructs.h:93
Structure containing geometry information for the target texture.
Definition pilotRenderUpdater.h:148
double width
Width of the plane geometry.
Definition pilotRenderUpdater.h:156
osg::Vec3 up
Up axis vector in plane space.
Definition pilotRenderUpdater.h:159
double height
Height of the plane geometry.
Definition pilotRenderUpdater.h:157
osg::Plane plane
Plane on farthest point along average normal.
Definition pilotRenderUpdater.h:150
osg::Vec3 right
Right axis vector in plane space.
Definition pilotRenderUpdater.h:158
osg::Vec3 min
Minimum RTT geometry bounds projected on plane.
Definition pilotRenderUpdater.h:152
osg::Vec3 max
Maximum RTT geometry bounds projected on plane.
Definition pilotRenderUpdater.h:153
osg::BoundingBox box
Box holding geometry bounds in model space.
Definition pilotRenderUpdater.h:151
osg::Vec3 normal
Average normal of RTT geometry.
Definition pilotRenderUpdater.h:149
osg::Vec3 center
Local space center of the geometry.
Definition pilotRenderUpdater.h:155
Structure containing vision block geometry information.
Definition pilotRenderUpdater.h:420
osg::Quat viewRotation
Rotation for the view.
Definition pilotRenderUpdater.h:425
float viewZoom
Zoom factor for the view.
Definition pilotRenderUpdater.h:426
osg::Vec3 modelSpaceRttMax
Maximum extent of RTT in model space.
Definition pilotRenderUpdater.h:423
osg::Vec3 viewOffset
Offset for the view.
Definition pilotRenderUpdater.h:424
osg::Vec3 modelSpaceRttMin
Minimum extent of RTT in model space.
Definition pilotRenderUpdater.h:422
osg::Quat modelSpaceCamRot
Camera rotation in model space.
Definition pilotRenderUpdater.h:421
Defines the base class for all VREngage messages.