VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtVreSelectConnectionPage Class Reference

Detailed Description

DtVreSelectConnectionPage provides a user interface for selecting and configuring network connections in VR-Engage. It displays available connection protocols (DIS and HLA) and allows users to configure connection parameters. This page is typically shown during the initial setup phase or when changing connection settings.

#include <vreSelectConnectionPage.h>

Inheritance diagram for makVre::DtVreSelectConnectionPage:
[legend]

Public Member Functions

 DtVreSelectConnectionPage (DtPlayerStationApp &app, const std::string &target_window="")
 
virtual ~DtVreSelectConnectionPage () override
 
virtual void initMain () override
 
virtual void tick (double dt) override
 
virtual DtVreMessageResult handleNetworkDisconnected (DtVreMessage *msg)
 
virtual DtVreMessageResult handleNetworkConnected (DtVreMessage *msg)
 
virtual void setVisibility (bool visible) override
 
- Public Member Functions inherited from makVre::DtVreBaseUI
 DtVreBaseUI (DtPlayerStationApp &app, const std::string &file, const std::string &target_window="")
 
virtual ~DtVreBaseUI () override
 
QQuickItem * root ()
 
DtVreHeaderFooterUI * headerFooterUI ()
 
virtual bool isVisible ()
 
virtual void close ()
 
virtual void open ()
 
virtual bool isMainContentVisible ()
 
virtual void setMainContentVisibility (bool visible)
 
DtVreMessageResult handleBackButtonClicked (DtVreMessage *msg)
 
DtVreMessageResult handleEscapeMessage (DtVreMessage *msg)
 

Protected Member Functions

virtual void onConnectionClicked () override
 
virtual void onAppModeChanged (const std::string &newAppMode, const std::string &oldAppMode) override
 
void slot_aboutToAutoStartDrivers ()
 
- Protected Member Functions inherited from makVre::DtVreBaseUI
virtual void connectToHeaderFooter ()
 
virtual void onPopupOpened ()
 
virtual void onPopupClosed ()
 

Protected Attributes

bool myIsNetworkConnected
 
- Protected Attributes inherited from makVre::DtVreBaseUI
DtPlayerStationApp & myApp
 
QQuickItem * myRoot
 
std::string myTargetWindow
 
std::string myTargetFile
 
std::string myMainContentId
 

Constructor & Destructor Documentation

◆ DtVreSelectConnectionPage()

makVre::DtVreSelectConnectionPage::DtVreSelectConnectionPage ( DtPlayerStationApp & app,
const std::string & target_window = "" )

Constructor.

Parameters
appReference to the player station application
target_windowName of the window to display in (empty for default)

◆ ~DtVreSelectConnectionPage()

virtual makVre::DtVreSelectConnectionPage::~DtVreSelectConnectionPage ( )
overridevirtual

Destructor.

Member Function Documentation

◆ initMain()

virtual void makVre::DtVreSelectConnectionPage::initMain ( )
overridevirtual

Initializes the main content of the page.

Implements makVre::DtVreBaseUI.

◆ tick()

virtual void makVre::DtVreSelectConnectionPage::tick ( double dt)
overridevirtual

Updates the page each frame.

Parameters
dtTime in seconds since the last update

Implements makVre::DtVreBaseUI.

◆ handleNetworkDisconnected()

virtual DtVreMessageResult makVre::DtVreSelectConnectionPage::handleNetworkDisconnected ( DtVreMessage * msg)
virtual

Handles network disconnection messages.

Parameters
msgPointer to the network disconnected message
Returns
Message handling result

◆ handleNetworkConnected()

virtual DtVreMessageResult makVre::DtVreSelectConnectionPage::handleNetworkConnected ( DtVreMessage * msg)
virtual

Handles network connection messages.

Parameters
msgPointer to the network connected message
Returns
Message handling result

◆ setVisibility()

virtual void makVre::DtVreSelectConnectionPage::setVisibility ( bool visible)
overridevirtual

Sets the visibility of the page.

Parameters
visibleTrue to show the page, false to hide it

Reimplemented from makVre::DtVreBaseUI.

◆ onConnectionClicked()

virtual void makVre::DtVreSelectConnectionPage::onConnectionClicked ( )
overrideprotectedvirtual

When on connection page, clicking connection button navigates back.

Reimplemented from makVre::DtVreBaseUI.

◆ onAppModeChanged()

virtual void makVre::DtVreSelectConnectionPage::onAppModeChanged ( const std::string & newAppMode,
const std::string & oldAppMode )
overrideprotectedvirtual

Updates the page when the application mode changes.

Parameters
newAppModeIdentifier of the new application mode
oldAppModeIdentifier of the previous application mode

Reimplemented from makVre::DtVreBaseUI.

◆ slot_aboutToAutoStartDrivers()

void makVre::DtVreSelectConnectionPage::slot_aboutToAutoStartDrivers ( )
protected

Slot called when drivers are about to auto-start.

Called when the display engine signals that drivers are about to be automatically started. This triggers requests for connection information from the network thread to update the available connections.

Member Data Documentation

◆ myIsNetworkConnected

bool makVre::DtVreSelectConnectionPage::myIsNetworkConnected
protected

Flag indicating network connection status.

True when the network is connected, false when disconnected. Used to control UI elements based on connectivity state.


The documentation for this class was generated from the following file: