|
VR-Engage
2.2
|
This driver is responsible for the DtRadarFxConnector object that connects to the external RadarFx service for Synthetic Aperture Radar (SAR) image generation. Because the connector blocks while attempting to connect, it runs in its own worker thread. Connection status updates and SAR responses are pushed back to the main thread for processing.
#include <radarFxConnectorDriver.h>
Public Member Functions | |
| DtRadarFxConnectorDriver (makVrv::DtAgentManager &am) | |
| virtual | ~DtRadarFxConnectorDriver () override |
| virtual const std::string & | className () const override |
| virtual bool | onStart () override |
| virtual bool | onStop () override |
| virtual bool | onTick () override |
| virtual makVre::DtVreMessageResult | handleSarRequest (makVre::DtVreMessage *msg) |
| virtual makVre::DtVreMessageResult | handleConnectToRadarFx (makVre::DtVreMessage *msg) |
| virtual makVre::DtVreMessageResult | handleConnectionStatusChanged (makVre::DtVreMessage *msg) |
| void | handleSarResponse (makRadarFx::DtBaseMessage *msg) |
Static Public Member Functions | |
| static void | driverWorkerFunction (void *data, volatile bool *stop) |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| makRadarFx::DtRadarFxConnector * | myConnector |
| DtThread * | myWorkerThread |
| bool | myShouldQuit |
| bool | myConnectionStatus |
| bool | myWorkerThreadConnStatus |
| DtRadarFxConnectorDriver::DtRadarFxConnectorDriver | ( | makVrv::DtAgentManager & | am | ) |
Constructor.
| am | Reference to the agent manager |
|
overridevirtual |
Virtual destructor.
|
overridevirtual |
Gets the class name of this driver.
|
overridevirtual |
Initializes the driver when it starts.
|
overridevirtual |
Cleans up resources when the driver stops.
|
overridevirtual |
Performs per-frame updates.
|
virtual |
Handles SAR request messages.
| msg | Pointer to the message being processed |
Processes requests for Synthetic Aperture Radar images and forwards them to RadarFx
|
virtual |
Handles connection requests to RadarFx.
| msg | Pointer to the message being processed |
Processes requests to establish a connection to the RadarFx service
|
virtual |
Handles connection status change messages.
| msg | Pointer to the message being processed |
Processes notifications about changes in the connection status to RadarFx
| void DtRadarFxConnectorDriver::handleSarResponse | ( | makRadarFx::DtBaseMessage * | msg | ) |
Handles SAR response messages from RadarFx.
| msg | Pointer to the RadarFx message containing the response |
Function to be called by the delegate when a SAR response message is returned from RadarFx
|
static |
Worker thread function for the RadarFx connector.
| data | Pointer to the driver instance |
| stop | Pointer to a flag indicating when to stop the thread |
Static function that runs in a separate thread to handle RadarFx connection operations
|
protected |
Reference to the display element.
|
protected |
Pointer to the RadarFx connector.
|
protected |
Pointer to the worker thread.
|
protected |
Flag indicating if the worker thread should exit.
|
protected |
Current connection status to RadarFx.
|
protected |
Connection status as reported by the worker thread.