20#include <osg/MatrixTransform>
22#include <matrix/vlVector.h>
27class DtVirtualRealityDriver;
43constexpr const char*
A =
"A";
49constexpr const char*
B =
"B";
52constexpr const char*
C =
"C";
58constexpr const char*
D =
"D";
106 virtual void tick(
double dt)
override;
116 virtual const char*
type()
const override;
Table-based access to Lua state for configuration data.
Definition initializer.h:38
bool myStickNeedsSwitch
Flag indicating if cockpit controls visibility needs to be toggled.
Definition mixedRealityUpdater.h:193
int myAlgorithm
Selected chroma keying algorithm (0-4 for different methods)
Definition mixedRealityUpdater.h:160
virtual bool postInitialize() override
Performs post-initialization after all components are initialized.
osg::ref_ptr< osg::Program > myMaskShader
Shader program used for blending camera imagery with virtual content.
Definition mixedRealityUpdater.h:154
makVrv::DtObserver * myObserver
Pointer to the observer used for positioning the mask.
Definition mixedRealityUpdater.h:145
float myC
Third algorithm parameter, meaning varies by algorithm type.
Definition mixedRealityUpdater.h:169
virtual makVre::DtVreMessageResult handleMenuActionMessage(makVre::DtVreMessage *msg)
Handles menu action messages for mixed reality controls.
virtual void setCockpitControlsVisible(bool visible)
Sets the visibility of cockpit controls.
float myA
First algorithm parameter, meaning varies by algorithm type.
Definition mixedRealityUpdater.h:163
virtual void updateMask()
Updates the mask transform and shader parameters.
bool myShowCameraMenu
Flag indicating whether to show the camera adjustment menu.
Definition mixedRealityUpdater.h:187
virtual bool initialize(DtPlayerStation *player, DtInitTable &config) override
Initializes the mixed reality updater component.
virtual const char * type() const override
Returns the component type identifier.
virtual ~DtMixedRealityUpdater() override
Virtual destructor for DtMixedRealityUpdater.
osg::ref_ptr< osg::MatrixTransform > myMaskTransform
Transform node for the masking geometry.
Definition mixedRealityUpdater.h:151
float myB
Second algorithm parameter, meaning varies by algorithm type.
Definition mixedRealityUpdater.h:166
virtual void shutdown() override
Shuts down the mixed reality updater component.
DtMixedRealityUpdater()
Constructor for DtMixedRealityUpdater.
float myD
Fourth algorithm parameter, meaning varies by algorithm type.
Definition mixedRealityUpdater.h:172
float ix
Camera X offset in millimeters.
Definition mixedRealityUpdater.h:175
float ip
Camera pitch offset in degrees.
Definition mixedRealityUpdater.h:184
virtual void tick(double dt) override
Called every frame to update the mixed reality state.
virtual void handleReloadShader()
Handles shader reload requests.
float iz
Camera Z offset in millimeters.
Definition mixedRealityUpdater.h:181
DtVector myMaskColor
Color used for chroma keying (typically green for green screen)
Definition mixedRealityUpdater.h:157
float iy
Camera Y offset in millimeters.
Definition mixedRealityUpdater.h:178
makVrv::DtVirtualRealityDriver * myVrDriver
Pointer to the virtual reality driver that provides camera integration.
Definition mixedRealityUpdater.h:148
std::string myMaskPath
Path to the camera projection geometry (mask model)
Definition mixedRealityUpdater.h:190
virtual DtPlayerStation & player()
Gets the player station.
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
constexpr const char * algorithm
Definition mixedRealityUpdater.h:46
constexpr const char * A
Definition mixedRealityUpdater.h:43
constexpr const char * D
Definition mixedRealityUpdater.h:58
constexpr const char * cameraProjectionGeometry
Definition mixedRealityUpdater.h:55
constexpr const char * B
Definition mixedRealityUpdater.h:49
constexpr const char * C
Definition mixedRealityUpdater.h:52
constexpr const char * maskColor
Definition mixedRealityUpdater.h:61
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition mixedRealityUpdater.h:35
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtMixedRealityUpdaterType
Type identifier for DtMixedRealityUpdater component.
Definition mixedRealityUpdater.h:67
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.
Defines the base class for all VREngage messages.