VR-Engage  2.2
Loading...
Searching...
No Matches
makVrv::DtRadioPage Class Reference

Detailed Description

This class provides a control page for radio communications in the VREngage user interface. It manages radio widgets, processes radio events, and allows users to interact with the radio simulation subsystem through a graphical interface.

#include <radioPage.h>

Inheritance diagram for makVrv::DtRadioPage:
[legend]

Public Member Functions

virtual ~DtRadioPage ()
 
virtual QIcon icon ()
 
virtual QString title ()
 
virtual const std::string & pageClassName () const
 
virtual void activate ()
 
virtual void deactivate ()
 
virtual DtEntityIdentifier findEntityIdFromMarkingText (const std::string &markingText)
 

Protected Member Functions

virtual void handleActivate ()
 
virtual void handleDeactivate ()
 
 DtRadioPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual void findExistingEntites ()
 
virtual void slot_elementsReadyToProcess (const DtElementData::ElementIdList &elements)
 
virtual void slot_elementsRemoved (const DtElementData::ElementIdList &elements)
 
void setupUi (QWidget *p)
 

Protected Attributes

std::string myClassName
 
DtRadioStackWidgetmyRadioStack
 
DtVrvRadioManager * myManager
 
DtRadioEventProcessor * myEventHandler
 

Friends

class DtRadioPageCreator
 

Constructor & Destructor Documentation

◆ ~DtRadioPage()

virtual makVrv::DtRadioPage::~DtRadioPage ( )
virtual

Virtual destructor.

Cleans up resources used by the radio page, including event connections and radio widgets.

◆ DtRadioPage()

makVrv::DtRadioPage::DtRadioPage ( DtDe & de,
QWidget * parent = 0,
Qt::WindowFlags f = 0 )
protected

Constructor.

Parameters
deThe document environment providing access to application resources
parentThe parent widget (optional)
fWindow flags (optional)

Creates a new radio page with the specified document environment and parent. This constructor is protected to enforce creation through the factory pattern.

References de().

Member Function Documentation

◆ icon()

virtual QIcon makVrv::DtRadioPage::icon ( )
virtual

Gets the icon for this page.

Returns
Icon to display for this page in the UI

Returns the icon that represents this page in menus and tabs.

◆ title()

virtual QString makVrv::DtRadioPage::title ( )
virtual

Gets the title for this page.

Returns
Title to display for this page in the UI

Returns the title that identifies this page in menus and tabs.

◆ pageClassName()

virtual const std::string & makVrv::DtRadioPage::pageClassName ( ) const
virtual

Gets the class name of the page.

Returns
Reference to the class name string

Returns the unique class name that identifies this page type in the system.

◆ activate()

virtual void makVrv::DtRadioPage::activate ( )
virtual

Activates the page when it is displayed.

Called when the page is displayed to the user. Initializes radio connections and starts processing radio events.

◆ deactivate()

virtual void makVrv::DtRadioPage::deactivate ( )
virtual

Deactivates the page when it is hidden.

Called when the page is hidden from the user. Disconnects from radio events to prevent unnecessary processing while not visible.

◆ findEntityIdFromMarkingText()

virtual DtEntityIdentifier makVrv::DtRadioPage::findEntityIdFromMarkingText ( const std::string & markingText)
virtual

Finds an entity identifier from its marking text.

Parameters
markingTextThe marking text to search for
Returns
Entity identifier for the matching entity, or invalid identifier if not found

Searches for an entity with the specified marking text and returns its identifier. This is used to associate radio communications with specific entities.

◆ handleActivate()

virtual void makVrv::DtRadioPage::handleActivate ( )
protectedvirtual

Handles activation-specific tasks.

Called by the activate() method to perform implementation-specific activation tasks.

◆ handleDeactivate()

virtual void makVrv::DtRadioPage::handleDeactivate ( )
protectedvirtual

Handles deactivation-specific tasks.

Called by the deactivate() method to perform implementation-specific deactivation tasks.

◆ findExistingEntites()

virtual void makVrv::DtRadioPage::findExistingEntites ( )
protectedvirtual

Finds and processes existing entities when the page is activated.

Searches for and processes all existing entities in the simulation when the page is activated, to ensure all relevant entities are included in the radio communications system.

◆ slot_elementsReadyToProcess()

virtual void makVrv::DtRadioPage::slot_elementsReadyToProcess ( const DtElementData::ElementIdList & elements)
protectedvirtual

Slot called when elements are ready to be processed.

Parameters
elementsList of element identifiers that are ready for processing

Processes elements that have been added or modified in the simulation. Updates the radio system with information about these elements.

◆ slot_elementsRemoved()

virtual void makVrv::DtRadioPage::slot_elementsRemoved ( const DtElementData::ElementIdList & elements)
protectedvirtual

Slot called when elements are removed from the simulation.

Parameters
elementsList of element identifiers that have been removed

Handles cleanup and updates the radio system when elements are removed from the simulation.

◆ setupUi()

void makVrv::DtRadioPage::setupUi ( QWidget * p)
protected

Sets up the contents of the widget onto the supplied parent.

Parameters
pThe parent widget to set up the UI on

Initializes the UI components of the radio page and adds them to the specified parent widget.

Friends And Related Symbol Documentation

◆ DtRadioPageCreator

friend class DtRadioPageCreator
friend

Allows the page creator to create instances of this class.

This friendship declaration grants the creator class access to the protected constructor of this class.

References DtRadioPageCreator.

Referenced by DtRadioPageCreator.

Member Data Documentation

◆ myClassName

std::string makVrv::DtRadioPage::myClassName
protected

The class name of this page.

Stores the class name string that uniquely identifies this page type.

◆ myRadioStack

DtRadioStackWidget* makVrv::DtRadioPage::myRadioStack
protected

The radio stack widget containing the radio controls.

Contains the actual radio UI components displayed on this page.

◆ myManager

DtVrvRadioManager* makVrv::DtRadioPage::myManager
protected

The radio manager handling radio functionality.

Manages the underlying radio simulation functionality.

◆ myEventHandler

DtRadioEventProcessor* makVrv::DtRadioPage::myEventHandler
protected

The event processor for radio events.

Processes radio events from the simulation and updates the UI accordingly.


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