|
VR-Engage
2.2
|
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>
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 DtVreRadioManager & | instance (makVrv::DtDe &de) |
Protected Member Functions | |
| DtVreRadioManager () | |
| virtual void | configureRadios (makVre::DtInitTable &radios) |
| virtual void | recreateRadios () override |
|
overridevirtual |
Virtual destructor.
|
protected |
Protected constructor for singleton pattern.
Referenced by instance().
|
static |
Gets the singleton instance of the radio manager.
| de | Reference to the display engine to integrate with |
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().
|
virtual |
Initializes the radio manager.
| init | Initialization table containing radio configuration data |
| captureDevice | Name 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().
|
overridevirtual |
Shuts down the radio manager.
This method properly shuts down the radio manager, releasing all resources and cleaning up any active radio connections.
|
overridevirtual |
Sets the currently active radio.
| radio | Pointer to the radio to set as current |
This method sets the specified radio as the currently active radio for transmission and reception operations.
|
virtual |
Adds a new radio with the specified state.
| state | Initial radio state configuration |
This method creates a new radio with the provided state configuration and adds it to the radio manager's collection of managed radios.
|
overridevirtual |
Removes a radio at the specified index.
| idx | Index 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.
|
protectedvirtual |
Configures radios from initialization data.
| radios | Initialization table containing radio configurations |
This method configures all radios based on the data in the initialization table.
|
overrideprotectedvirtual |
Recreates all managed radios.
This method recreates all radios after a configuration change or reset.