VR-Engage  2.3
Loading...
Searching...
No Matches
ownshipControlConnector.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2026 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \file ownshipControlConnector.h
7//! \brief Defines the DtOwnshipControlConnector class for entity command and control
8//!
9//! This connector handles entity control operations, including joystick input,
10//! position/orientation commands, entity control (take/release), and sensor data
11//! processing (radar, RWR, TDL). It processes commands from VR-Engage and forwards
12//! them to the VR-Forces backend.
13
14#pragma once
15
19
22
25
26#include <vrfmsgs/vrfObjectMessage.h>
27
28#include <vrfMsgTransport/event.h>
29
30#include <vlpi/entityIdentifier.h>
31
32#include <vlutil/vlString.h>
33
34#include <map>
35
36// Forward declarations
37class DtVrfMessageInterface;
38class DtReflectedEntityList;
39class DtReflectedExtEntity;
40class DtIfSensorData;
41class DtSimMessage;
42class DtCommunicationManager;
43
44namespace makVrf
45{
46class DtVrlinkVrfRemoteController;
47}
48
49namespace makVre
50{
51
52//! \brief Connector for entity control and sensor operations
53//!
54//! DtOwnshipControlConnector handles all entity command forwarding, control operations
55//! (take/release), and sensor data processing. It receives commands from VR-Engage
56//! components and forwards them to the VR-Forces backend, and processes sensor data
57//! coming back from the backend.
58//!
59//! This connector receives infrastructure from DtConnectorAccessory and does not
60//! own any of the infrastructure components.
62{
63public:
64 //! \brief Default constructor
66
67 //! \brief Virtual destructor
68 virtual ~DtOwnshipControlConnector() override;
69
70 //! \brief Installs the entity control connector.
71 //!
72 //! Stores infrastructure pointers (received from DtConnectorAccessory), registers
73 //! VRE message handlers for entity control, tasks, sensor subscriptions, targeting,
74 //! and gimbal operations, registers VRF message interface callbacks for sensor data,
75 //! and connects to resource response events.
76 //!
77 //! \param connection Non-owning pointer to the protocol-specific VR-Link connection.
78 //! \param vrfRemoteController Non-owning pointer to VRF remote controller (from DtConnectorAccessory).
79 //! \param reflectedEntityList Non-owning pointer to reflected entity list (from DtConnectorAccessory).
80 virtual void install(
81 makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection* connection,
82 makVrf::DtVrlinkVrfRemoteController* vrfRemoteController,
83 DtReflectedExtEntityList* reflectedEntityList);
84
85 //! \brief Shuts down the connector and cleans up resources.
86 //!
87 //! Stops backend resource monitoring for controlled entities before
88 //! unregistering callbacks and releasing connector infrastructure.
89 virtual void shutdown() override;
90
91 //! \brief Entity control operation handlers
92 //! @{
93
94 //! \brief Handles a request to take control of an existing entity.
95 //!
96 //! Resolves the entity UUID, creates or updates a ControlSet with the requested
97 //! function groups, sends the take-control request to VR-Forces, and starts
98 //! resource monitoring when the entity was previously uncontrolled.
99 //!
100 //! \param message The VrfTakeControlOfMessage to process.
101 //! \return HANDLED if the entity was found and control was requested,
102 //! IGNORED if the message type is unrecognized or the entity cannot be resolved.
104
105 //! \brief Handles a request to release control of an entity.
106 //!
107 //! Releases the specified function groups from the entity's ControlSet, sends
108 //! the release-control request to VR-Forces, and removes the ControlSet and
109 //! stops resource monitoring when no function-group or role control remains.
110 //!
111 //! \param message The VrfReleaseControlOfMessage to process.
112 //! \return HANDLED if the release was processed, IGNORED if the message type
113 //! is unrecognized or the entity is not currently controlled.
115
116 //! \brief Handles a request to set VR-Engage role control for an entity.
117 //!
118 //! Updates the entity's ControlSet role tracking and forwards the supplied
119 //! control state directly to VR-Forces. When this is the first control
120 //! assignment, resource monitoring starts; when it is the last, monitoring
121 //! stops and the ControlSet is removed.
122 //!
123 //! \param message The VrfSetVreControlledMessage to process.
124 //! \return HANDLED if the state change was processed, IGNORED if the message
125 //! type is unrecognized or a controlled entity cannot be resolved.
127
128 //! @}
129
130 //! \brief Entity manipulation message handlers
131 //! @{
132
133 //! \brief Handles joystick input for entity control.
134 //! \param msg The JoystickMessage containing function group, function, and value.
135 //! \return HANDLED if the joystick command was forwarded, IGNORED otherwise.
137
138 //! \brief Handles a request to reset a player entity.
139 //!
140 //! Restores the entity to its initial state. If a host entity is specified the
141 //! entity is re-embarked; otherwise it is repositioned. Also restores all
142 //! entities embarked on this entity.
143 //!
144 //! \param msg The ResetSimPlayerMessage to process.
145 //! \return HANDLED after forwarding the restore command to VR-Forces.
147
148 //! \brief Handles a request to set an entity's location.
149 //! \param msg The VrfSetLocationMessage containing the target entity and location.
150 //! \return HANDLED after forwarding the location to VR-Forces.
152
153 //! \brief Handles a request to set an entity's heading.
154 //! \param msg The VrfSetHeadingMessage containing the heading in degrees and mode.
155 //! \return HANDLED after forwarding the heading (converted to radians) to VR-Forces.
157
158 //! \brief Handles a request to set an entity's pitch.
159 //! \param msg The VrfSetPitchMessage containing the pitch in degrees.
160 //! \return HANDLED after queuing a scripted set command for VR-Forces.
162
163 //! \brief Handles a request to set an entity's roll.
164 //! \param msg The VrfSetRollMessage containing the roll in degrees.
165 //! \return HANDLED after queuing a scripted set command for VR-Forces.
167
168 //! \brief Handles a request to set an entity's altitude.
169 //! \param msg The VrfSetAltitudeMessage containing altitude and above-ground flag.
170 //! \return HANDLED after forwarding the altitude to VR-Forces.
172
173 //! \brief Handles an embark or disembark message.
174 //!
175 //! If a parent entity is specified, embarks the entity into the parent
176 //! (optionally in a specific slot). If the parent is null, disembarks the entity
177 //! and clears the VRE embarked role.
178 //!
179 //! \param msg The VrfSetEmbarkMessage to process.
180 //! \return HANDLED after forwarding the embark/disembark command to VR-Forces.
182
183 //! \brief Handles a request to set an entity's appearance.
184 //! \param msg The VrfSetAppearanceMessage containing entity type and appearance bits.
185 //! \return HANDLED after forwarding the appearance to VR-Forces.
187
188 //! \brief Handles a request to rename an entity.
189 //! \param msg The RenameVrfEntityMessage containing the new name.
190 //! \return HANDLED after sending a VRF object modification message.
192
193 //! @}
194
195 //! \brief Simulation state and task message handlers
196 //! @{
197
198 //! \brief Handles requests for simulation state information.
199 //!
200 //! Looks up the entity by ID or by type pattern in the reflected entity list
201 //! and queues one or more SimulationStateMessage responses.
202 //!
203 //! \param msg The RequestSimulationStateMessage to process.
204 //! \return HANDLED if a matching entity was found, IGNORED otherwise.
206
207 //! \brief Handles task-related messages.
208 //!
209 //! Dispatches to the appropriate VR-Forces task based on the concrete message
210 //! type (move-to-location, fire, follow, disembark, animation, scripted task,
211 //! countermeasures, vertical landing, lase target, etc.).
212 //!
213 //! \param msg The VRE task message to process.
214 //! \return HANDLED if a recognized task type was dispatched, IGNORED otherwise.
216
217 //! \brief Handles set-data request messages.
218 //!
219 //! Dispatches to the appropriate VR-Forces set-data request based on the
220 //! concrete message type (aim-at-point, look-at-point, auto-launch, resource).
221 //!
222 //! \param msg The VRE set-data message to process.
223 //! \return HANDLED if a recognized request type was dispatched, IGNORED otherwise.
225
226 //! \brief Handles VRE sensor data request messages.
227 //!
228 //! Sends a subscribe, unsubscribe, or one-shot sensor data request to VR-Forces
229 //! for the specified entity and sensor type.
230 //!
231 //! \param msg The VrfSensorUpdateRequestMessage to process.
232 //! \return HANDLED if the request was sent, IGNORED if the message type is unrecognized.
234
235 //! \brief Handles requests to set a laser code on an entity.
236 //! \param msg The VrfSetLaserCodeMessage to process.
237 //! \return HANDLED if the laser code was set, IGNORED if the message type is unrecognized.
239
240 //! \brief Handles scripted set-data messages.
241 //!
242 //! Builds a DtScriptedTaskSet from the message attributes and sends it
243 //! to VR-Forces as a set-data request.
244 //!
245 //! \param msg The VrfScriptedEntitySetMessage to process.
246 //! \return HANDLED if the scripted set was sent, IGNORED if the message type is unrecognized.
248
249 //! \brief Handles requests to set state properties on an entity.
250 //!
251 //! Converts typed property values (bool, int, real, string) and sends
252 //! a DtSetStateProperties request to VR-Forces.
253 //!
254 //! \param msg The VrfSetStatePropertyMessage to process.
255 //! \return HANDLED if the property was set, IGNORED if the message type is unrecognized.
257
258 //! @}
259
260 //! \brief Entity action and equipment message handlers
261 //! @{
262
263 //! \brief Handles requests to set rules of engagement for an entity.
264 //! \param msg The VrfSetRulesOfEngagementMessage to process.
265 //! \return HANDLED if the rules were set, IGNORED if the message type is unrecognized.
267
268 //! \brief Handles requests to trigger a simulation event.
269 //!
270 //! Sends a scenario event start message to VR-Forces for the specified event UUID.
271 //!
272 //! \param msg The VrfTriggerEventMessage to process.
273 //! \return HANDLED after sending the event trigger.
275
276 //! \brief Handles requests to set an entity's light state.
277 //!
278 //! Updates the entity appearance for standard lights (via appearance bits) and
279 //! sends a DtSetGroundVehicleLightingRequest for emergency/spot lights.
280 //!
281 //! \param msg The VrfSetLightStateMessage to process.
282 //! \return HANDLED after forwarding the light state to VR-Forces.
284
285 //! \brief Handles requests to set a human entity's hand item.
286 //! \param msg The VrfSetHandItemMessage to process.
287 //! \return HANDLED after forwarding the hand item request to VR-Forces.
289
290 //! \brief Handles requests to track a specific laser code with a sensor.
291 //!
292 //! If the laser code is -1 the gimbal is reset to manual control. Otherwise
293 //! the sensor is aimed at the laser code, optionally in continuous-track mode.
294 //!
295 //! \param msg The VrfSetTrackLaserCodeMessage to process.
296 //! \return HANDLED after forwarding the tracking request to VR-Forces.
298
299 //! @}
300
301 //! \brief Subscription management message handlers
302 //! @{
303
304 //! \brief Handles requests to subscribe to radar warning receiver data.
305 //! \param msg The RwrSubscribeMessage identifying the host entity.
306 //! \return HANDLED after sending the RWR subscription request.
308
309 //! \brief Handles requests to unsubscribe from radar warning receiver data.
310 //! \param msg The RwrUnsubscribeMessage identifying the host entity.
311 //! \return HANDLED after sending the RWR unsubscription request.
313
314 //! \brief Handles requests to subscribe to sensor data.
315 //! \param msg The SensorSubscribeMessage identifying the host entity.
316 //! \return HANDLED after sending the sensor subscription request.
318
319 //! \brief Handles requests to unsubscribe from sensor data.
320 //! \param msg The SensorUnsubscribeMessage identifying the host entity.
321 //! \return HANDLED after sending the sensor unsubscription request.
323
324 //! \brief Handles requests to subscribe to radar state data.
325 //! \param msg The RadarStateSubscribeMessage identifying the host entity.
326 //! \return HANDLED after sending the radar state subscription request.
328
329 //! \brief Handles requests to unsubscribe from radar state data.
330 //! \param msg The RadarStateUnsubscribeMessage identifying the host entity.
331 //! \return HANDLED after sending the radar state unsubscription request.
333
334 //! @}
335
336 //! \brief Targeting and weapon system message handlers
337 //! @{
338
339 //! \brief Handles updates to designated targets
341
342 //! \brief Handles requests to set an entity's mode and submode
344
345 //! @}
346
347 //! \brief Gimbal and sensor control message handlers
348 //! @{
349
350 //! \brief Handles requests to track a location with a gimbal system
352
353 //! \brief Handles requests to track an object with a gimbal system
355
356 //! \brief Handles requests to set the tracking mode of a gimbal system
358
359 //! \brief Handles requests to set the sweep pattern of an antenna
361
362 //! @}
363
364 //! \brief Sensor data processing
365 //! @{
366
367 //! \brief Handles sensor update data from VR-Forces
368 //! \param sensorData Pointer to the sensor data interface
369 virtual void handleSensorUpdate(DtIfSensorData* sensorData);
370
371 //! @}
372
373 //! \brief Public accessor for control sets
374 //! @{
375
376 //! \brief Finds a control set for a specific entity
377 //! \param entityId The entity identifier to search for
378 //! \return Pointer to the found control set, or NULL if not found
379 virtual ControlSet* findControlSet(const DtEntityIdentifier& entityId);
380
381 //! @}
382
383 //! \brief Static callbacks for VR-Link data
384 //! @{
385
386 //! \brief Static callback for sensor update data
387 static void sensorUpdateCallback(DtSimMessage* msg, void* usr);
388
389 //! \brief Static callback for RWR data messages
390 static void rwrDataMessageCallback(DtSimMessage* msg, void* usr);
391
392 //! \brief Static callback for radar contact data messages
393 static void radarDataMessageCallback(DtSimMessage* msg, void* usr);
394
395 //! \brief Static callback for radar state data messages
396 static void radarStateDataMessageCallback(DtSimMessage* msg, void* usr);
397
398 //! \brief Static callback for TDL track list messages
399 static void vreTdlTrackListCallback(DtSimMessage* msg, void* usr);
400
401 //! \brief Static callback for TDL engagement status messages
402 static void vreTdlEngagementStatusCallback(DtSimMessage* msg, void* usr);
403
404 //! \brief Static callback for text report messages from VR-Forces.
405 //! \param msg The VRF object message containing the text report.
406 //! \param usr Pointer to the DtOwnshipControlConnector instance.
407 static void textReportCallback(const DtVrfObjectMessage* msg, void* usr);
408
409 //! @}
410
411 //! \brief Processes a resource response event from the VR-Forces backend.
412 //!
413 //! Extracts resource data (type, current amount, full amount, display name)
414 //! from the response and queues a VrfResourceUpdateMessage for consumption
415 //! by the frontend.
416 //!
417 //! \param evt The event to process. Only DtResourceResponseEvent instances
418 //! are handled; other event types are ignored.
419 virtual void processResourceResponse(const makVrfEvents::DtEvent& evt);
420
421 //! \brief Sends a simulation interface content message to all recipients.
422 //! \param content The interface content to wrap in a DtSimInterfaceMessage and send.
423 virtual void sendInterfaceContent(const DtSimInterfaceContent& content);
424
425protected:
426 //! \brief Unsubscribes from resource responses before display-engine destruction.
427 virtual void onDisplayEngineQuit();
428
429 //! \brief Helper methods
430 //! @{
431
432 //! \brief Adds a new control set for an entity
433 //! \param entityId The entity identifier to create a control set for
434 //! \return Pointer to the newly created control set
435 virtual ControlSet* addControlSet(const DtEntityIdentifier& entityId);
436
437 //! \brief Looks up cached reflected entity information.
438 //!
439 //! Checks the cache first; on a miss, looks up the entity in the reflected
440 //! entity list, caches the result (entity ID, type, marking text, UUID),
441 //! and returns it.
442 //!
443 //! \param entityId The entity identifier to look up.
444 //! \return Pointer to cached entity info, or nullptr if not found.
445 virtual DtReflectedExtEntityInfo* lookupReflectedEntityInfo(const DtEntityIdentifier& entityId);
446
447 //! \brief Looks up the UUID for an entity
448 //! \param entityId The entity identifier to get the UUID for
449 //! \return The UUID for the entity, or nullUUID if not found
450 virtual DtUUID lookupUUID(const DtEntityIdentifier& entityId);
451
452 //! \brief Finds an entity ID from a UUID
453 //! \param uuid The UUID to look up
454 //! \return The entity identifier, or nullId if not found
455 static DtEntityIdentifier findEntityIdFromUUID(const DtUUID& uuid);
456
457 //! \brief Finds the UUID for a reflected entity
458 //! \param reflectedEntity The reflected entity to get the UUID for
459 //! \return The UUID for the entity
460 virtual DtUUID findUUID(DtReflectedExtEntity* reflectedEntity);
461
462 //! \brief Removes the control set for an entity.
463 //! \param entityId The entity identifier to remove the control set for.
464 //! \return True if the control set was found and removed, false otherwise.
465 virtual bool removeControlSet(const DtEntityIdentifier& entityId);
466
467 //! \brief Processes an RWR data message and queues an RwrDataMessage for the frontend.
468 //! \param msg The simulation message containing RWR contact data.
469 virtual void processRwrDataMessage(DtSimMessage* msg);
470
471 //! \brief Processes a radar contact data message and queues a SensorDataMessage for the frontend.
472 //! \param msg The simulation message containing radar contact data.
473 virtual void processRadarDataMessage(DtSimMessage* msg);
474
475 //! \brief Processes a radar state data message and queues a RadarStateDataMessage for the frontend.
476 //! \param msg The simulation message containing radar state information.
477 virtual void processRadarStateDataMessage(DtSimMessage* msg);
478
479 //! \brief Processes a TDL track list message and queues a TdlTrackDataMessage for the frontend.
480 //! \param msg The simulation message containing the TDL track list.
481 virtual void processVreTdlTrackList(DtSimMessage* msg);
482
483 //! \brief Processes a TDL engagement status message and queues a TdlEngagementStatusMessage.
484 //! \param msg The simulation message containing TDL engagement status.
485 virtual void processVreTdlEngagementStatus(DtSimMessage* msg);
486
487 //! \brief Processes a text report from VR-Forces and queues a VrfTextMessage for the frontend.
488 //! \param msg The VRF object message containing the text report.
489 virtual void processTextReport(const DtVrfObjectMessage* msg);
490
491 //! \brief Converts a TDL engagement status to the frontend enum representation.
492 //! \param status The TDL engagement status to convert.
493 //! \return The corresponding TdlEngagementStatusMessage::StatusType value.
495
496 //! \brief Determines the track symbol for a TDL track based on its type and domain.
497 //! \param content The TDL track contents describing the track.
498 //! \return The corresponding TrackSymbol, or TrackSymbol_UNSUPPORTED for unrecognized types.
500
501 //! \brief Determines the track identity (friendly, hostile, suspect, unknown) for a TDL track.
502 //! \param content The TDL track contents describing the track.
503 //! \return The corresponding TrackIdentity value.
505
506 //! @}
507
508protected:
509 //! \brief Infrastructure pointers (NON-OWNING - owned by DtConnectorAccessory)
510 //! @{
511
512 //! \brief VRF remote controller (NON-OWNING)
513 makVrf::DtVrlinkVrfRemoteController* myVrfRemoteController = nullptr;
514
515 //! \brief Reflected entity list (NON-OWNING)
516 DtReflectedExtEntityList* myReflectedEntityList = nullptr;
517
518 //! @}
519
520 //! \brief Connector state
521 //! @{
522
523 //! \brief Map of control sets indexed by entity ID
524 std::map<DtEntityIdentifier, ControlSet*> myControlSets;
525
526 //! \brief Cached reflected entity info (for performance)
528
529 //! \brief Cached waypoint target information
530 //!
531 //! Stores entity ID and position for waypoint targets which may not be
532 //! displayed, so their position will need to be updated manually
533 std::pair<DtEntityIdentifier, DtVector> myWaypointTarget;
534
535 //! \brief Current laser code for laser designation
536 int myLaserCode = -1;
537
538 //! @}
539
540 //! \brief Connection for resource response events from the VR-Forces backend.
541 //!
542 //! Connected during initialization and disconnected when the display engine
543 //! begins shutting down or when the connector shuts down.
544 boost::signals2::connection myResourceResponseConnection;
545
546 //! \brief Connection to the display engine's early shutdown notification.
547 boost::signals2::connection myDisplayEngineQuitConnection;
548};
549
550} // namespace makVre
Interface message class for TDL engagement status information.
Definition icVreTdlEngagementStatus.h:39
Base class for all simulation event connectors in VREngage.
Definition simEventConnector.h:53
static void vreTdlTrackListCallback(DtSimMessage *msg, void *usr)
Static callback for TDL track list messages.
static TdlTrackDataMessage::TrackSymbol tdlTrackSymbol(const ctiTdl::IcVreTdlTrackContents &content)
Determines the track symbol for a TDL track based on its type and domain.
virtual DtVreMessageResult handleVrfSetVreControlled(DtVreMessage *message)
Handles a request to set VR-Engage role control for an entity.
boost::signals2::connection myDisplayEngineQuitConnection
Connection to the display engine's early shutdown notification.
Definition ownshipControlConnector.h:547
virtual DtVreMessageResult handleSetStateProperties(DtVreMessage *msg)
Handles requests to set state properties on an entity.
virtual DtVreMessageResult handleEmbarkMessage(DtVreMessage *msg)
Handles an embark or disembark message.
virtual DtVreMessageResult handleSetLaserCode(DtVreMessage *msg)
Handles requests to set a laser code on an entity.
virtual DtVreMessageResult handleRwrSubscription(DtVreMessage *msg)
Subscription management message handlers.
virtual void processVreTdlEngagementStatus(DtSimMessage *msg)
Processes a TDL engagement status message and queues a TdlEngagementStatusMessage.
virtual DtVreMessageResult handleTriggerEvent(DtVreMessage *msg)
Handles requests to trigger a simulation event.
int myLaserCode
Current laser code for laser designation.
Definition ownshipControlConnector.h:536
static TdlTrackDataMessage::TrackIdentity tdlTrackIdentity(const ctiTdl::IcVreTdlTrackContents &content)
Determines the track identity (friendly, hostile, suspect, unknown) for a TDL track.
virtual DtVreMessageResult handleVrfSensorMessages(DtVreMessage *msg)
Handles VRE sensor data request messages.
std::pair< DtEntityIdentifier, DtVector > myWaypointTarget
Cached waypoint target information.
Definition ownshipControlConnector.h:533
virtual DtVreMessageResult handleRenameMessage(makVre::DtVreMessage *msg)
Handles a request to rename an entity.
static void radarDataMessageCallback(DtSimMessage *msg, void *usr)
Static callback for radar contact data messages.
virtual DtVreMessageResult handleVrfSetDataRequests(DtVreMessage *msg)
Handles set-data request messages.
virtual DtVreMessageResult handleSetAltitude(DtVreMessage *msg)
Handles a request to set an entity's altitude.
virtual DtVreMessageResult handleRadarStateUnsubscription(DtVreMessage *msg)
Handles requests to unsubscribe from radar state data.
virtual DtVreMessageResult handleRadarStateSubscription(DtVreMessage *msg)
Handles requests to subscribe to radar state data.
static TdlEngagementStatusMessage::StatusType tdlEngagementStatusType(ctiTdl::IcVreTdlEngagementStatus *status)
Converts a TDL engagement status to the frontend enum representation.
static void sensorUpdateCallback(DtSimMessage *msg, void *usr)
Static callbacks for VR-Link data.
std::map< DtEntityIdentifier, ControlSet * > myControlSets
Connector state.
Definition ownshipControlConnector.h:524
virtual void handleSensorUpdate(DtIfSensorData *sensorData)
Sensor data processing.
makVrf::DtVrlinkVrfRemoteController * myVrfRemoteController
Infrastructure pointers (NON-OWNING - owned by DtConnectorAccessory)
Definition ownshipControlConnector.h:513
virtual DtReflectedExtEntityInfo * lookupReflectedEntityInfo(const DtEntityIdentifier &entityId)
Looks up cached reflected entity information.
static void rwrDataMessageCallback(DtSimMessage *msg, void *usr)
Static callback for RWR data messages.
virtual void onDisplayEngineQuit()
Unsubscribes from resource responses before display-engine destruction.
virtual DtVreMessageResult handleDesignatedTargetsUpdate(DtVreMessage *msg)
Targeting and weapon system message handlers.
virtual DtVreMessageResult handleSetModeAndSubmode(DtVreMessage *msg)
Handles requests to set an entity's mode and submode.
DtReflectedExtEntityInfo * myCachedReflectedEntityInfo
Cached reflected entity info (for performance)
Definition ownshipControlConnector.h:527
virtual DtVreMessageResult handleTrackLaserCode(DtVreMessage *msg)
Handles requests to track a specific laser code with a sensor.
virtual void processRwrDataMessage(DtSimMessage *msg)
Processes an RWR data message and queues an RwrDataMessage for the frontend.
virtual DtUUID findUUID(DtReflectedExtEntity *reflectedEntity)
Finds the UUID for a reflected entity.
virtual DtVreMessageResult handleScriptedSet(DtVreMessage *msg)
Handles scripted set-data messages.
virtual DtVreMessageResult handleSetRoll(DtVreMessage *msg)
Handles a request to set an entity's roll.
virtual DtVreMessageResult handleJoystick(DtVreMessage *msg)
Entity manipulation message handlers.
virtual DtVreMessageResult handleSetGimbalTrackObject(DtVreMessage *msg)
Handles requests to track an object with a gimbal system.
virtual DtVreMessageResult handleSetPitch(DtVreMessage *msg)
Handles a request to set an entity's pitch.
virtual void processRadarStateDataMessage(DtSimMessage *msg)
Processes a radar state data message and queues a RadarStateDataMessage for the frontend.
virtual void install(makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection *connection, makVrf::DtVrlinkVrfRemoteController *vrfRemoteController, DtReflectedExtEntityList *reflectedEntityList)
Installs the entity control connector.
virtual DtVreMessageResult handleSetRulesOfEngagement(DtVreMessage *msg)
Entity action and equipment message handlers.
virtual void sendInterfaceContent(const DtSimInterfaceContent &content)
Sends a simulation interface content message to all recipients.
static void vreTdlEngagementStatusCallback(DtSimMessage *msg, void *usr)
Static callback for TDL engagement status messages.
virtual DtVreMessageResult handleResetPlayer(DtVreMessage *msg)
Handles a request to reset a player entity.
boost::signals2::connection myResourceResponseConnection
Connection for resource response events from the VR-Forces backend.
Definition ownshipControlConnector.h:544
virtual DtVreMessageResult handleRwrUnsubscription(DtVreMessage *msg)
Handles requests to unsubscribe from radar warning receiver data.
virtual ControlSet * addControlSet(const DtEntityIdentifier &entityId)
Helper methods.
static void radarStateDataMessageCallback(DtSimMessage *msg, void *usr)
Static callback for radar state data messages.
virtual void shutdown() override
Shuts down the connector and cleans up resources.
virtual DtVreMessageResult handleVrfTakeControlOf(DtVreMessage *message)
Entity control operation handlers.
virtual DtVreMessageResult handleSetHandItem(DtVreMessage *msg)
Handles requests to set a human entity's hand item.
virtual DtVreMessageResult handleSetAppearanceMessage(DtVreMessage *msg)
Handles a request to set an entity's appearance.
virtual DtUUID lookupUUID(const DtEntityIdentifier &entityId)
Looks up the UUID for an entity.
virtual ~DtOwnshipControlConnector() override
Virtual destructor.
virtual DtVreMessageResult handleVrfReleaseControlOf(DtVreMessage *message)
Handles a request to release control of an entity.
virtual DtVreMessageResult handleVrfTaskMessages(DtVreMessage *msg)
Handles task-related messages.
virtual void processVreTdlTrackList(DtSimMessage *msg)
Processes a TDL track list message and queues a TdlTrackDataMessage for the frontend.
static DtEntityIdentifier findEntityIdFromUUID(const DtUUID &uuid)
Finds an entity ID from a UUID.
virtual DtVreMessageResult handleSetGimbalTrackLocation(DtVreMessage *msg)
Gimbal and sensor control message handlers.
virtual DtVreMessageResult handleSetHeading(DtVreMessage *msg)
Handles a request to set an entity's heading.
virtual DtVreMessageResult handleSetGimbalTrackMode(DtVreMessage *msg)
Handles requests to set the tracking mode of a gimbal system.
virtual DtVreMessageResult handleSetLightState(DtVreMessage *msg)
Handles requests to set an entity's light state.
DtReflectedExtEntityList * myReflectedEntityList
Reflected entity list (NON-OWNING)
Definition ownshipControlConnector.h:516
virtual void processResourceResponse(const makVrfEvents::DtEvent &evt)
Processes a resource response event from the VR-Forces backend.
virtual DtVreMessageResult handleSensorSubscription(DtVreMessage *msg)
Handles requests to subscribe to sensor data.
DtOwnshipControlConnector()
Default constructor.
virtual DtVreMessageResult handleSetAntennaSweep(DtVreMessage *msg)
Handles requests to set the sweep pattern of an antenna.
virtual void processRadarDataMessage(DtSimMessage *msg)
Processes a radar contact data message and queues a SensorDataMessage for the frontend.
virtual bool removeControlSet(const DtEntityIdentifier &entityId)
Removes the control set for an entity.
virtual ControlSet * findControlSet(const DtEntityIdentifier &entityId)
Public accessor for control sets.
virtual DtVreMessageResult handleSensorUnsubscription(DtVreMessage *msg)
Handles requests to unsubscribe from sensor data.
static void textReportCallback(const DtVrfObjectMessage *msg, void *usr)
Static callback for text report messages from VR-Forces.
virtual DtVreMessageResult handleSetLocation(DtVreMessage *msg)
Handles a request to set an entity's location.
virtual void processTextReport(const DtVrfObjectMessage *msg)
Processes a text report from VR-Forces and queues a VrfTextMessage for the frontend.
virtual DtVreMessageResult handleRequestSimulationStateMessage(DtVreMessage *msg)
Simulation state and task message handlers.
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
StatusType
StatusType enumeration.
Definition tdlEngagementStatus.h:38
TrackIdentity
TrackIdentity enumeration.
Definition tdlTrackData.h:39
TrackSymbol
TrackSymbol enumeration.
Definition tdlTrackData.h:48
Interface class for Tactical Data Link (TDL) engagement status information.
Interface classes for Tactical Data Link (TDL) track information.
Defines export macros and protocol namespace for vrePlayerStationConnector.
#define VRL_DLL
Empty definition for non-Windows platforms.
Definition export.h:52
!
Definition glsVreMessageUtil.h:50
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Definition connectorAccessory.h:38
Defines the base DtSimEventConnector class for VREngage simulation events.
Structure containing TDL track information.
Definition icVreTdlTrack.h:33
Structure containing entity control capabilities.
Definition util.h:59
Structure containing information about a reflected extended entity.
Definition util.h:40
Utility functions for VREngage player station connector.