VR-Engage  2.2
Loading...
Searching...
No Matches
sarUtilities.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright (c) 2025 MAK Technologies
3 * All rights reserved.
4 *****************************************************************************/
5
6//! \file sarUtilities.h
7//! \brief Provides utility functions for SAR functionality
8//! \ingroup sarClient
9
10#pragma once
11
13
15
16namespace makRadarFx
17{
18//! \brief Forward declaration of the SAR request class
19class DtSarRequest;
20} // namespace makRadarFx
21
22namespace makVrv
23{
24//! \brief Forward declaration of the channel class
25class DtChannel;
26
27//! \brief Forward declaration of the observer class
28class DtObserver;
29
30class DtDe;
31} // namespace makVrv
32
33//! \name Display Element Access Functions
34//! @{
35
36//! \brief Sets the display element pointer used by the plugin
37//! \param aDe Pointer to the display element
38//!
39//! Stores the display element pointer for use by other plugin components
40void DT_DLL_sarClient setDe(makVrv::DtDe* aDe);
41
42//! \brief Gets the display element pointer used by the plugin
43//! \return Pointer to the current display element
44//!
45//! Retrieves the stored display element pointer
46makVrv::DtDe* de();
47
48//! @}
49
50//! \name RadarFx Interaction Functions
51//! @{
52
53//! \brief Initializes the RadarFx connector system
54//! \param de Pointer to the display element
55//! \return True if initialization was successful, false otherwise
56//!
57//! Initializes the RadarFx connector component, installs the DtRadarFxConnectorTicker
58//! to get it updated every frame, and registers message handlers for SAR messages.
59//! This function must be called before any other RFX-related functions.
61
62//! \brief Resets the connection to the RadarFx server
63//!
64//! Disconnects from the current RadarFx server connection and attempts to reconnect
66
67//! \brief Sends a SAR request to the RadarFx server
68//!
69//! Constructs a request based on current settings and sends it to the server
71
72//! \brief Prints the SAR request details to the console
73//! \param request Reference to the SAR request to print
74//!
75//! Outputs detailed information about the SAR request for debugging purposes
77
78//! \brief Gets the filename for the current SAR capture
79//! \return String containing the SAR capture filename
80//!
81//! Generates or retrieves the filename where the current SAR image is saved
83
84//! @}
85
86//! \name Coordinate and Observer Helper Functions
87//! @{
88
89//! \brief Converts a local coordinate into geodetic coordinates in degrees
90//! \param local Local coordinate vector to convert
91//! \return Geodetic coordinate vector (latitude, longitude, altitude) in degrees
92//!
93//! Transforms a local coordinate from the simulation into a geodetic coordinate
94//! with latitude and longitude in degrees and altitude in meters
95DtVector DT_DLL_sarClient localToGeodeticInDegrees(const DtVector& local);
96
97//! \brief Finds the first channel for a given observer
98//! \param observer Pointer to the observer to find a channel for
99//! \return Pointer to the first channel found, or nullptr if none exists
100//!
101//! Searches for and returns the first render channel associated with the given observer
102makVrv::DtChannel* firstChannelForObserver(makVrv::DtObserver* observer);
103
104//! @}
Request message for Synthetic Aperture Radar (SAR) images.
Definition rfxSarMessage.h:34
Definition radarFxConnectorDriver.h:21
Definition appLauncherComponent.h:28
Defines the request and response messages for Synthetic Aperture Radar (SAR) images.
Defines DLL export macros for the SAR client plugin.
#define DT_DLL_sarClient
Definition sarClientPlugin.h:19
void DT_DLL_sarClient printSarRequest(makRadarFx::DtSarRequest &request)
Prints the SAR request details to the console.
void DT_DLL_sarClient sendSarRequest()
Sends a SAR request to the RadarFx server.
void DT_DLL_sarClient resetRfxServerConnection()
Resets the connection to the RadarFx server.
std::string DT_DLL_sarClient captureFilename()
Gets the filename for the current SAR capture.
DtVector DT_DLL_sarClient localToGeodeticInDegrees(const DtVector &local)
Converts a local coordinate into geodetic coordinates in degrees.
makVrv::DtChannel * firstChannelForObserver(makVrv::DtObserver *observer)
Finds the first channel for a given observer.
void DT_DLL_sarClient setDe(makVrv::DtDe *aDe)
Sets the display element pointer used by the plugin.
bool DT_DLL_sarClient initializeRadarFx(makVrv::DtDe *de)
Initializes the RadarFx connector system.
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.