52constexpr const char*
height =
"height";
67constexpr const char*
width =
"width";
118 virtual void tick(
double dt)
override;
135 virtual const char*
type()
const override;
virtual void onCurrentStateChanged(std::string state)
Called when the current application-level state changes.
void handleProcessFailed(QProcess::ProcessError error)
Slot called when the launched process fails to start.
bool myShutdownOnDisengage
Flag indicating whether to shut down the launched application when disengaging.
Definition appLauncherComponent.h:168
virtual bool initialize(DtPlayerStation *station, DtInitTable &config) override
Initializes the component with configuration from Lua.
void handleProcessFinished(int exitCode, QProcess::ExitStatus exitStatus)
Slot called when the launched process finishes execution.
std::string myWindowTitle
Window title of the launched application used for finding the window handle.
Definition appLauncherComponent.h:189
int myHeight
Desired height for the launched application window in pixels.
Definition appLauncherComponent.h:177
void handleProcessStarted()
Slot called when the launched process has started.
int myPositionY
Desired Y position for the launched application window.
Definition appLauncherComponent.h:186
DtAppLauncherComponent()
Constructor for DtAppLauncherComponent.
float myBackOnTopDelay
Delay in seconds before bringing the VR Engage window back to the foreground.
Definition appLauncherComponent.h:192
virtual bool repositionAndResizeWindow()
Repositions and resizes the launched application window.
QProcess * myProcess
Pointer to the QProcess object representing the launched application.
Definition appLauncherComponent.h:171
int myWidth
Desired width for the launched application window in pixels.
Definition appLauncherComponent.h:180
int myPositionX
Desired X position for the launched application window.
Definition appLauncherComponent.h:183
virtual void shutdown() override
Shuts down the component.
bool myWindowPositioned
Flag indicating whether the window has been positioned.
Definition appLauncherComponent.h:174
virtual const char * type() const override
Returns the component type identifier.
virtual void tick(double dt) override
Updates the component state.
virtual ~DtAppLauncherComponent() override
Virtual destructor for DtAppLauncherComponent.
Table-based access to Lua state for configuration data.
Definition initializer.h:38
DtPlayerComponent()
Constructor.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
constexpr const char * positionX
Definition appLauncherComponent.h:55
constexpr const char * workingDirectory
Definition appLauncherComponent.h:73
constexpr const char * windowTitle
Definition appLauncherComponent.h:70
constexpr const char * positionY
Definition appLauncherComponent.h:58
constexpr const char * shutdownOnDisengage
Definition appLauncherComponent.h:61
constexpr const char * width
Definition appLauncherComponent.h:67
constexpr const char * height
Definition appLauncherComponent.h:52
constexpr const char * application
Definition appLauncherComponent.h:46
constexpr const char * arguments
Definition appLauncherComponent.h:49
constexpr const char * vreBackOnTopDelay
Definition appLauncherComponent.h:64
Defines export/import macros for the vreCommonComponents library.
#define VRECOMMONCOMPONENTS_DLL
DLL export/import macro for the vreCommonComponents library.
Definition export.h:28
Definition appLauncherComponent.h:38
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
constexpr const char * DtAppLauncherComponentType
Type identifier for DtAppLauncherComponent component.
Definition appLauncherComponent.h:79
Definition appLauncherComponent.h:28
Defines the DtPlayerComponent base class for VR-Engage role components.