![]() |
VR-Forces Developer's Guide
|
This class catches Sesnor Control signals from the Cigi Signal handler, and processes them into V3 and V4 specific methods. This class does not have access to the render engine, in keeping with the style of other responders. Both the DtCigiViewController() & DtCigiSensorController() catch the signals from this class. The DtCigiViewController() for sensor visualisation, and the DtCigiSensorController() for sensor tracking.
Classes | |
| struct | DtSensorRequestData |
| struct | DtSensorResponseData |
Public Types | |
| enum | DtTrackMode { TrackOff = 0, ForceCorrelate = 1, Scene = 2, Target = 3, Ship = 4, LOS = 5, TMDefB = 6, TMDefC = 7 } |
| enum | DtSensorStatus { SearchingForTarget = 0, TrackingTarget = 1, ImpendingBreaklock = 2, BreakLock = 3 } |
| using | DtSensorRequestMap = std::map< int, DtSensorRequestData * > |
Public Member Functions | |
| virtual | ~DtSensorResponder () |
| virtual void | processSensorRequests () |
| virtual void | generateSensorResponse (DtSensorResponseData *response) |
| virtual void | reset () |
| DtSensorResponder ()=delete | |
| DtSensorResponder (const DtSensorResponder &)=delete | |
| DtSensorResponder (DtSensorResponder &&)=delete | |
| DtSensorResponder & | operator= (const DtSensorResponder &)=delete |
| DtSensorResponder & | operator= (DtSensorResponder &&)=delete |
Public Attributes | |
| vrvSignalsLib::signal< void(DtSensorRequestData *, bool)> | signal_sensorControllerRequest |
| vrvSignalsLib::signal< void(DtSensorRequestData)> | signal_sensorViewControllerRequest |
Protected Member Functions | |
| DtSensorResponder (DtCigiConnection &connection) | |
| void | slot_processSensorControlRequest (CigiBaseSensorCtrl &packet) |
| void | processSensorControlV3 (CigiSensorCtrlV3 &packet) |
| void | processSensorControlV4 (CigiSensorCtrlV4 &packet) |
| virtual void | cleanUp () |
Protected Attributes | |
| DtCigiConnection & | myCigiConnection |
| DtSensorRequestMap | mySensorRequests |
| DtSignalConnectionManager | myConnections |
Friends | |
| class | DtSensorResponderCreator |
| using makVrv::DtSensorResponder::DtSensorRequestMap = std::map<int, DtSensorRequestData*> |
|
virtual |
Destructor.
|
delete |
Not allowed.
|
delete |
Not allowed.
|
delete |
Not allowed.
|
protected |
Constructor.
|
virtual |
Ticked by DtCigiConnection() Raises signals for the DtCigiViewCOntroller() & DtCigiSensorController to catch.
|
virtual |
Passes the response to the DtCigiConnection() and then onto the DtCigiNetworkIO()
|
virtual |
Reset the internal containers when the CIGI connection is reset via IGMode reset.
|
delete |
Not allowed.
|
delete |
Not allowed.
|
protected |
Takes in CIGI base packet and passes to version processing.
|
protected |
V3 Processes Sensor Control Packet.
|
protected |
V4 Processes Sensor Control Packet.
|
protectedvirtual |
clean up internal containers
|
friend |
| vrvSignalsLib::signal<void( DtSensorRequestData*, bool )> makVrv::DtSensorResponder::signal_sensorControllerRequest |
Signal to the Sensor Controller for processing of Sensor data, processing tracking signal_sensorControlReceived are SignalProcessor -> Responder signal_sensorControllerRequest is Responder -> SensorController bool is for takeOwnership of the DtSensorRequestData pointer.
| vrvSignalsLib::signal<void( DtSensorRequestData )> makVrv::DtSensorResponder::signal_sensorViewControllerRequest |
Signal to the View Controller for processing of Sensor data, changes sensor views signal_sensorControlReceived are SignalProcessor -> Responder signal_sensorViewControllerRequest is Responder -> ViewController This is deliberately by value, the DtSensorRequestData* from the sensor responder is also sent to the sensor controller, and since there is no guarantee of signal order, it may get deleted before we process it here.
|
protected |
|
protected |
|
protected |