VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreRadioManager Class Reference

Detailed Description

This class extends the base radio manager functionality and integrates with VREngage to provide radio communications capabilities within simulations. It manages all radios, handles configuration, and provides the central interface for radio operations.

#include <radioManager.h>

Inheritance diagram for makVre::DtVreRadioManager:
[legend]

Public Member Functions

virtual ~DtVreRadioManager () override
 
virtual void init (makVre::DtInitTable &init, const std::string &captureDevice)
 
virtual void shutdown () override
 
virtual void setCurrentRadio (makRadio::DtRadio *radio) override
 
virtual makRadio::DtRadio * addRadio (makRadio::DtRwRadioState &state)
 
virtual void removeRadio (int idx) override
 

Static Public Member Functions

static DtVreRadioManagerinstance (makVrv::DtDe &de)
 

Protected Member Functions

 DtVreRadioManager ()
 
virtual void configureRadios (makVre::DtInitTable &radios)
 
virtual void recreateRadios () override
 

Constructor & Destructor Documentation

◆ ~DtVreRadioManager()

virtual makVre::DtVreRadioManager::~DtVreRadioManager ( )
overridevirtual

Virtual destructor.

◆ DtVreRadioManager()

makVre::DtVreRadioManager::DtVreRadioManager ( )
protected

Protected constructor for singleton pattern.

Referenced by instance().

Member Function Documentation

◆ instance()

static DtVreRadioManager & makVre::DtVreRadioManager::instance ( makVrv::DtDe & de)
static

Gets the singleton instance of the radio manager.

Parameters
deReference to the display engine to integrate with
Returns
Reference to the singleton radio manager instance

This static method follows the singleton pattern, creating the instance if it doesn't exist or returning the existing one if it does.

References de(), and DtVreRadioManager().

◆ init()

virtual void makVre::DtVreRadioManager::init ( makVre::DtInitTable & init,
const std::string & captureDevice )
virtual

Initializes the radio manager.

Parameters
initInitialization table containing radio configuration data
captureDeviceName of the audio capture device to use for radio input

This method initializes the radio manager with the specified configuration and sets up the audio capture device for radio input.

References init().

Referenced by init().

◆ shutdown()

virtual void makVre::DtVreRadioManager::shutdown ( )
overridevirtual

Shuts down the radio manager.

This method properly shuts down the radio manager, releasing all resources and cleaning up any active radio connections.

◆ setCurrentRadio()

virtual void makVre::DtVreRadioManager::setCurrentRadio ( makRadio::DtRadio * radio)
overridevirtual

Sets the currently active radio.

Parameters
radioPointer to the radio to set as current

This method sets the specified radio as the currently active radio for transmission and reception operations.

◆ addRadio()

virtual makRadio::DtRadio * makVre::DtVreRadioManager::addRadio ( makRadio::DtRwRadioState & state)
virtual

Adds a new radio with the specified state.

Parameters
stateInitial radio state configuration
Returns
Pointer to the newly created radio

This method creates a new radio with the provided state configuration and adds it to the radio manager's collection of managed radios.

◆ removeRadio()

virtual void makVre::DtVreRadioManager::removeRadio ( int idx)
overridevirtual

Removes a radio at the specified index.

Parameters
idxIndex of the radio to remove

This method removes the radio at the specified index from the manager's collection and properly cleans up its resources.

◆ configureRadios()

virtual void makVre::DtVreRadioManager::configureRadios ( makVre::DtInitTable & radios)
protectedvirtual

Configures radios from initialization data.

Parameters
radiosInitialization table containing radio configurations

This method configures all radios based on the data in the initialization table.

◆ recreateRadios()

virtual void makVre::DtVreRadioManager::recreateRadios ( )
overrideprotectedvirtual

Recreates all managed radios.

This method recreates all radios after a configuration change or reset.


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