- CMakeLists.txt: Conditional compilation für BUILD_RTI=ON/OFF - lts_session_stub.h/cpp: NEU - STUB-Implementation ohne RTI-Abhängigkeit - lts_session_data_dds_stub.h: Doppeltes Namespace-Closing entfernt - gna_nasat_aircraft.h: participantId zu participantIdValue umbenannt (Konflikt) - gna_dtc.h: Doppeldefinitionen entfernt - gna_nasat_aircraft_participant.h: Doppeldefinitionen entfernt - ppm_enums.hpp: DataModification-Enum im ParticipantManagement-Namespace - ElevationMap-STUB: ArcGIS-Abhängigkeit für BUILD_RTI=OFF gekapselt - Viewer-STUB: Header für BUILD_RTI=OFF Build Build-Validierung: Configure erfolgreich, LtsSession-Fehler behoben
74 lines
2.0 KiB
C++
74 lines
2.0 KiB
C++
/**
|
|
* STUB-Header für ElevationMapManager - Qt6 Migration
|
|
* Diese Datei ermöglicht das Kompilieren von LtsElevation ohne das vollständige ElevationMap-Modul
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QStringList>
|
|
#include <QRectF>
|
|
#include <QPointF>
|
|
#include <vector>
|
|
|
|
namespace LtsUtils
|
|
{
|
|
struct QPoint3D
|
|
{
|
|
double x{0.0};
|
|
double y{0.0};
|
|
double z{0.0};
|
|
};
|
|
} // namespace LtsUtils
|
|
|
|
using LOSVector = std::vector<double>;
|
|
|
|
namespace SituationMap
|
|
{
|
|
|
|
class ElevationMapManager final : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ElevationMapManager();
|
|
ElevationMapManager(const ElevationMapManager &) = delete;
|
|
ElevationMapManager &operator = (const ElevationMapManager &) = delete;
|
|
~ElevationMapManager();
|
|
|
|
int init(const QStringList &filePaths_rough_to_fine);
|
|
void cleanupCurrentContent();
|
|
|
|
bool waitForInitialization();
|
|
bool isValid() const;
|
|
|
|
double elevation(double lon_rad, double lat_rad, bool *bIsCovered = nullptr) const;
|
|
double elevation(double lon_rad, double lat_rad, double defaultValue, bool *bIsCovered = nullptr) const;
|
|
|
|
QRectF simpleUnitedExtent() const;
|
|
|
|
bool contains(const QPointF &point) const;
|
|
|
|
void LOSProfile(const QPointF &start, const QPointF &end, LOSVector &losProfile);
|
|
|
|
enum class LineOfSight { LOS_UNDEFINED = 0,
|
|
LOS_ERROR,
|
|
LOS_VISIBLE,
|
|
LOS_INVISIBLE };
|
|
|
|
LineOfSight lineOfSightCalculation(const LOSVector &losProfile,
|
|
double centerHat,
|
|
double objHat) const;
|
|
|
|
LineOfSight lineOfSightCalculation(const LtsUtils::QPoint3D &startPointGeo_absZ,
|
|
const LtsUtils::QPoint3D &endPointGeo_absZ);
|
|
|
|
LineOfSight lineOfSightCalculation(const QPointF &startPointGeo, double startHat,
|
|
const QPointF &endPointGeo, double endHat);
|
|
|
|
protected:
|
|
class Private;
|
|
Private *d;
|
|
}; // ElevationMapManager
|
|
|
|
} // namespace SituationMap
|