33class DtObserverObject;
115 virtual void tick(
double dt)
override;
124 virtual const char*
type()
const override;
Provides attribute handling system for hierarchical data storage and manipulation.
Handle class for safe access to attributes.
Definition attributeHandle.h:30
Type-specific handle class for attributes.
Definition attributeHandle.h:181
Table-based access to Lua state for configuration data.
Definition initializer.h:38
virtual DtPlayerStation & player()
Gets the player station.
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
virtual bool postInitialize() override
Performs post-initialization steps after all components are initialized.
virtual void disconnect()
Disconnects all property bindings.
virtual void restoreModelSetAndSkyToChannel()
Restores the model set and sky to the channel.
virtual bool isVisible()
Checks if the overlay is currently visible.
virtual void setVisibility(bool visible)
Sets the visibility of the overlay.
virtual void setRoot(QQuickItem *root)
Sets the root QQuickItem for this overlay.
Definition qtQuickOverlay.h:128
virtual void onVisibilityAttributeChanged(bool on)
Called when the visibility attribute changes.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the overlay component with configuration options.
std::string myTargetWindow
Name of the target window to display the overlay on.
Definition qtQuickOverlay.h:216
virtual DtVreMessageResult handleExitPlayerState(DtVreMessage *msg)
Handles messages for exiting player states.
virtual ~DtQtQuickOverlay() override
Alternative constructor with target window parameter (commented out)
virtual const char * type() const override
Returns the type identifier for this component.
bool myIsInMenuState
Flag indicating if the PlayerStation is in the "MENU_STATE" Used to determine whether the overlays sh...
Definition qtQuickOverlay.h:239
makVrv::DtOsgChannel * myChannel
Pointer to the OSG channel used for rendering.
Definition qtQuickOverlay.h:254
makVrv::DtObserverObject * myObserver
Pointer to the observer object for the channel.
Definition qtQuickOverlay.h:257
virtual void removeModelSetAndSkyFromChannel()
Removes the model set and sky from the channel.
bool myCachedVisibility
Cached visibility value to restore when exiting menu state.
Definition qtQuickOverlay.h:242
virtual void initdoc(QQuickItem *root)
Initialize document with the root QQuickItem.
std::string myQmlFile
Path to the QML file to load.
Definition qtQuickOverlay.h:232
DtInitTable myBindQmlPropertyToAttribute
Configuration table containing QML data item bindings.
Definition qtQuickOverlay.h:210
virtual bool buildConnections(DtInitTable &connections)
Builds connections between state attributes and QML properties.
std::vector< Connection > myConnections
List of connections between state attributes and QML properties.
Definition qtQuickOverlay.h:229
bool myWantSceneHidden
Flag indicating if the 3D scene should be hidden.
Definition qtQuickOverlay.h:251
QObject myQObject
QObject used as the owner for the QML UI.
Definition qtQuickOverlay.h:260
virtual void setMenuState(bool on)
Updates the menu state and toggles visibility accordingly.
DtQtQuickOverlay()
Constructor for DtQtQuickOverlay.
virtual DtVreMessageResult handleEnterPlayerState(DtVreMessage *msg)
Handles messages for entering player states.
QQuickItem * myRoot
Pointer to the root QQuickItem for this overlay.
Definition qtQuickOverlay.h:213
bool myHasTickFunction
Flag indicating whether the QML data item has a tick(double) function.
Definition qtQuickOverlay.h:263
virtual void shutdown() override
Shuts down the overlay component.
DtAttributeHandleType< bool > myVisibilityAttribute
Handle to attribute that controls overlay visibility.
Definition qtQuickOverlay.h:245
virtual void tick(double dt) override
Called every frame to update the overlay.
std::string myQmlDataItemName
Name of the QML object to bind data to.
Definition qtQuickOverlay.h:235
bool myRenderOverlayOnly
Flag indicating if only the overlay should be rendered without the 3D scene.
Definition qtQuickOverlay.h:248
virtual void updateVals(double dt)
Updates QML property values from state attributes.
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
constexpr const char * qmlFilename
Definition qtQuickOverlay.h:51
constexpr const char * visibilityAttribute
Definition qtQuickOverlay.h:60
constexpr const char * renderOverlayOnly
Definition qtQuickOverlay.h:57
constexpr const char * bindQmlPropertyToAttribute
Definition qtQuickOverlay.h:45
constexpr const char * qmlTargetWindow
Definition qtQuickOverlay.h:54
constexpr const char * qmlDataItemObjectName
Definition qtQuickOverlay.h:48
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition qtQuickOverlay.h:37
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtQtQuickOverlayType
Type identifier for DtQtQuickOverlay component.
Definition qtQuickOverlay.h:68
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 defining a connection between a state attribute and QML property.
Definition qtQuickOverlay.h:220
DtAttributeHandle myStateAttribute
Handle to the state attribute to bind from.
Definition qtQuickOverlay.h:225
std::string myQmlProperty
Name of the QML property to bind to.
Definition qtQuickOverlay.h:222
Defines the base class for all VREngage messages.