VR-Engage  2.3
Loading...
Searching...
No Matches
vreSensorInfoManager.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*******************************************************************************/
5
6//! \file vreSensorInfoManager.h
7//! \ingroup vreSensorInfoManager
8//! \brief Sensor information manager for VREngage
9//!
10//! This file defines the DtVreSensorInfoManager class, which manages information
11//! from various sensor types in the VREngage environment, including radar systems.
12//! It processes sensor data and provides access to sensor information for simulation
13//! entities.
14
15#pragma once
16
17#include "export.h"
18#include <vrfGuiCore/vrfSensorInfoManager.h>
19
20namespace makVre
21{
22//! \brief Sensor information manager for VREngage
23//!
24//! This class manages information from various sensors in the VREngage environment.
25//! It processes radar data and other sensor information, and provides mechanisms
26//! for starting and stopping the monitoring of sensor data for specific entities.
27class VRESENSORINFOMANAGER_DLL DtVreSensorInfoManager : public makVrf::DtVrfSensorInfoManager
28{
29public:
30 //! \brief Constructor
31 //! \param de The document environment providing access to application resources
32 //!
33 //! Initializes a new sensor information manager with the specified document environment.
34 DtVreSensorInfoManager(makVrv::DtDe& de);
35
36 //! \brief Destructor
37 //!
38 //! Cleans up resources used by the sensor information manager.
40
41protected:
42 //! \brief Processes radar data message
43 //! \param msg The simulation message containing radar data
44 //!
45 //! Processes a simulation message containing radar data and updates
46 //! the internal radar information state.
47 virtual void processRadarData(DtSimMessage* msg);
48
49 //! \brief Subscribes to sensor information for an entity
50 //! \param entityId The UUID of the entity to monitor
51 //!
52 //! Overridden to send the VRE-specific DtIfRadarStateRequest in addition
53 //! to the base-class DtIfSensorDataRequest, so radar contact data from
54 //! VR-Engage aircraft is delivered alongside standard sensor data.
55 virtual void subscribe(const DtUUID& entityId) override;
56
57 //! \brief Unsubscribes from sensor information for an entity
58 //! \param entityId The UUID of the entity to stop monitoring
59 //!
60 //! Overridden to send the VRE-specific DtIfRadarStateUnsubscribe in
61 //! addition to the base-class DtIfSensorDataUnsubscribe.
62 virtual void unsubscribe(const DtUUID& entityId) override;
63};
64} // namespace makVre
virtual void unsubscribe(const DtUUID &entityId) override
Unsubscribes from sensor information for an entity.
virtual ~DtVreSensorInfoManager()
Destructor.
DtVreSensorInfoManager(makVrv::DtDe &de)
Constructor.
virtual void processRadarData(DtSimMessage *msg)
Processes radar data message.
virtual void subscribe(const DtUUID &entityId) override
Subscribes to sensor information for an entity.
Export macros for the VREngage Sensor Information Manager library.
#define VRESENSORINFOMANAGER_DLL
Platform-specific DLL export/import declaration.
Definition export.h:28
!
Definition glsVreMessageUtil.h:50
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.