VR-Engage  2.2
Loading...
Searching...
No Matches
DtRadarFxConnectorDriver Class Reference

Detailed Description

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>

Inheritance diagram for DtRadarFxConnectorDriver:
[legend]

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::DtRadarFxConnectormyConnector
 
DtThread * myWorkerThread
 
bool myShouldQuit
 
bool myConnectionStatus
 
bool myWorkerThreadConnStatus
 

Constructor & Destructor Documentation

◆ DtRadarFxConnectorDriver()

DtRadarFxConnectorDriver::DtRadarFxConnectorDriver ( makVrv::DtAgentManager & am)

Constructor.

Parameters
amReference to the agent manager

◆ ~DtRadarFxConnectorDriver()

virtual DtRadarFxConnectorDriver::~DtRadarFxConnectorDriver ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ className()

virtual const std::string & DtRadarFxConnectorDriver::className ( ) const
overridevirtual

Gets the class name of this driver.

Returns
Reference to the class name string

◆ onStart()

virtual bool DtRadarFxConnectorDriver::onStart ( )
overridevirtual

Initializes the driver when it starts.

Returns
True if initialization was successful, false otherwise

◆ onStop()

virtual bool DtRadarFxConnectorDriver::onStop ( )
overridevirtual

Cleans up resources when the driver stops.

Returns
True if cleanup was successful, false otherwise

◆ onTick()

virtual bool DtRadarFxConnectorDriver::onTick ( )
overridevirtual

Performs per-frame updates.

Returns
True if the update was successful, false otherwise

◆ handleSarRequest()

virtual makVre::DtVreMessageResult DtRadarFxConnectorDriver::handleSarRequest ( makVre::DtVreMessage * msg)
virtual

Handles SAR request messages.

Parameters
msgPointer to the message being processed
Returns
Message processing result

Processes requests for Synthetic Aperture Radar images and forwards them to RadarFx

◆ handleConnectToRadarFx()

virtual makVre::DtVreMessageResult DtRadarFxConnectorDriver::handleConnectToRadarFx ( makVre::DtVreMessage * msg)
virtual

Handles connection requests to RadarFx.

Parameters
msgPointer to the message being processed
Returns
Message processing result

Processes requests to establish a connection to the RadarFx service

◆ handleConnectionStatusChanged()

virtual makVre::DtVreMessageResult DtRadarFxConnectorDriver::handleConnectionStatusChanged ( makVre::DtVreMessage * msg)
virtual

Handles connection status change messages.

Parameters
msgPointer to the message being processed
Returns
Message processing result

Processes notifications about changes in the connection status to RadarFx

◆ handleSarResponse()

void DtRadarFxConnectorDriver::handleSarResponse ( makRadarFx::DtBaseMessage * msg)

Handles SAR response messages from RadarFx.

Parameters
msgPointer to the RadarFx message containing the response

Function to be called by the delegate when a SAR response message is returned from RadarFx

◆ driverWorkerFunction()

static void DtRadarFxConnectorDriver::driverWorkerFunction ( void * data,
volatile bool * stop )
static

Worker thread function for the RadarFx connector.

Parameters
dataPointer to the driver instance
stopPointer to a flag indicating when to stop the thread

Static function that runs in a separate thread to handle RadarFx connection operations

Member Data Documentation

◆ myDe

makVrv::DtDe& DtRadarFxConnectorDriver::myDe
protected

Reference to the display element.

◆ myConnector

makRadarFx::DtRadarFxConnector* DtRadarFxConnectorDriver::myConnector
protected

Pointer to the RadarFx connector.

◆ myWorkerThread

DtThread* DtRadarFxConnectorDriver::myWorkerThread
protected

Pointer to the worker thread.

◆ myShouldQuit

bool DtRadarFxConnectorDriver::myShouldQuit
protected

Flag indicating if the worker thread should exit.

◆ myConnectionStatus

bool DtRadarFxConnectorDriver::myConnectionStatus
protected

Current connection status to RadarFx.

◆ myWorkerThreadConnStatus

bool DtRadarFxConnectorDriver::myWorkerThreadConnStatus
protected

Connection status as reported by the worker thread.


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