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>
◆ DtVreSelectConnectionPage()
| makVre::DtVreSelectConnectionPage::DtVreSelectConnectionPage |
( |
DtPlayerStationApp & | app, |
|
|
const std::string & | target_window = "" ) |
Constructor.
- Parameters
-
| app | Reference to the player station application |
| target_window | Name of the window to display in (empty for default) |
Creates a new connection selection page UI for the specified application and target window. Initializes network message handlers and connections.
◆ ~DtVreSelectConnectionPage()
| virtual makVre::DtVreSelectConnectionPage::~DtVreSelectConnectionPage |
( |
| ) |
|
|
overridevirtual |
Destructor.
Cleans up resources, disconnects signals, and unregisters message handlers.
◆ initMain()
| virtual void makVre::DtVreSelectConnectionPage::initMain |
( |
| ) |
|
|
overridevirtual |
Initializes the main content of the page.
Sets up the main content area of the page, including the page title and application mode properties. Called during initialization.
Implements makVre::DtVreHeaderFooterUIBase.
◆ tick()
| virtual void makVre::DtVreSelectConnectionPage::tick |
( |
double | dt | ) |
|
|
overridevirtual |
Updates the page each frame.
- Parameters
-
| dt | Time in seconds since the last update |
Called once per frame to update any time-dependent elements on the page.
Implements makVre::DtVreHeaderFooterUIBase.
◆ slot_connectionClicked()
| virtual void makVre::DtVreSelectConnectionPage::slot_connectionClicked |
( |
| ) |
|
|
overridevirtual |
Handles connection button clicks.
Called when the connection button is clicked. Sends a back button clicked message to the system to handle the navigation.
Reimplemented from makVre::DtVreHeaderFooterUIBase.
◆ handleNetworkDisconnected()
Handles network disconnection messages.
- Parameters
-
| msg | Pointer to the network disconnected message |
- Returns
- Message handling result
Processes messages indicating that the network connection has been disconnected and updates the UI state accordingly.
◆ handleNetworkConnected()
Handles network connection messages.
- Parameters
-
| msg | Pointer to the network connected message |
- Returns
- Message handling result
Processes messages indicating that a network connection has been established and updates the UI state accordingly.
◆ setVisibility()
| virtual void makVre::DtVreSelectConnectionPage::setVisibility |
( |
bool | visible | ) |
|
|
overridevirtual |
Sets the visibility of the page.
- Parameters
-
| visible | True to show the page, false to hide it |
Controls whether the connection selection page is visible. When made visible, this method updates the page title and application mode.
Reimplemented from makVre::DtVreHeaderFooterUIBase.
◆ initFooter()
| virtual void makVre::DtVreSelectConnectionPage::initFooter |
( |
| ) |
|
|
overridevirtual |
Initializes the footer area of the page.
Sets up the footer area of the page, including configuring the back button based on the current application state. Called during initialization.
Reimplemented from makVre::DtVreHeaderFooterUIBase.
◆ appModeUpdated()
| virtual void makVre::DtVreSelectConnectionPage::appModeUpdated |
( |
const std::string & | newAppMode, |
|
|
const std::string & | oldAppMode ) |
|
overridevirtual |
Handles application mode changes.
- Parameters
-
| newAppMode | Identifier of the new application mode |
| oldAppMode | Identifier of the previous application mode |
Updates the page when the application mode changes, ensuring the UI reflects the current mode appropriately.
Reimplemented from makVre::DtVreHeaderFooterUIBase.
◆ 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.
◆ 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: