- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
73 lines
2.2 KiB
C++
73 lines
2.2 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 <QtCore/QObject>
|
|
#include <QtCore/QStringList>
|
|
#include <QtCore/QRectF>
|
|
#include <QtCore/QPointF>
|
|
#include <vector>
|
|
|
|
// QPoint3D ist bereits in LtsUtilsCore/qpoint3d.h definiert
|
|
// #include "LtsUtils/qpoint3d.h" // Wird von lts_elevation_manager.h included
|
|
|
|
namespace LtsUtils
|
|
{
|
|
// Forward-Referenz, Definition erfolgt in qpoint3d.h
|
|
struct QPoint3D;
|
|
} // 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
|