VR-Engage  2.2
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 void slot_connectionClicked () override
 
virtual DtVreMessageResult handleNetworkDisconnected (DtVreMessage *msg)
 
virtual DtVreMessageResult handleNetworkConnected (DtVreMessage *msg)
 
virtual void setVisibility (bool visible) override
 
virtual void initFooter () override
 
virtual void appModeUpdated (const std::string &newAppMode, const std::string &oldAppMode) override
 

Protected Member Functions

void slot_aboutToAutoStartDrivers ()
 

Protected Attributes

bool myIsNetworkConnected
 

Additional Inherited Members

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)

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.

Member Function Documentation

◆ 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
dtTime 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()

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

Handles network disconnection messages.

Parameters
msgPointer 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()

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

Handles network connection messages.

Parameters
msgPointer 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
visibleTrue 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
newAppModeIdentifier of the new application mode
oldAppModeIdentifier 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.

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: