- Migrated all 104 CMakeLists.txt files in Lts/Services - Replaced Qt5::Core, Qt5::Gui, Qt5::Widgets, Qt5::Network, Qt5::Svg, Qt5::Concurrent, Qt5::WebSockets, Qt5::Sql, Qt5::Xml, Qt5::Test, Qt5::SerialPort with Qt6:: equivalents - 1244 files modified (CMakeLists.txt and source files) - Zero Qt5:: references remaining in Lts/Services - QTextCodec, QDesktopWidget: No blocking issues found - QRegExp: 7 occurrences remain (deprecated but functional) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
68 lines
2.3 KiB
C++
Executable File
68 lines
2.3 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Handler for incoming data from minelayer trialer/thrower and thier lane data
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* created by Philipp Dassow, SLEA, 2017-04-06
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QPointF>
|
|
#include <QTimer>
|
|
|
|
#include <AreaEffectSimulation/aes_ftc.h>
|
|
#include <LtsCoordTrans/lts_coord_trans.h>
|
|
#include <ParticipantManagement/ppm_dtc.h>
|
|
#include <Proxies/TrainingAreaBase/tab_dtc.h>
|
|
#include "GFS_map_cont.h"
|
|
|
|
#include "logger.h"
|
|
|
|
namespace GuezMinelayerProcessing
|
|
{
|
|
class DdsHandler;
|
|
class ZSSI_WI_Minenfeld_Interpreter;
|
|
class HandlerMinelayerData : public QObject
|
|
, protected AreaEffectSimulation::Interface::Ftc::MineAreaModifyFromCtaDataReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit HandlerMinelayerData(const std::shared_ptr<DdsHandler> &ddsHandler,
|
|
QObject *parent = nullptr);
|
|
~HandlerMinelayerData();
|
|
|
|
bool init();
|
|
|
|
void onMineAreaModifyFromCtaDataReply(const Core::FunctionReplyObject &replyObject) override final;
|
|
|
|
private slots:
|
|
void onSpecialSensorDataChanged(const TrainingAreaBase::SpecialSensorData &data, DataModification modType);
|
|
void onMinelayerTrailerData(const TrainingAreaBase::MinelayerTrailerData &data, DataModification modType);
|
|
void onMinelayerThrowerData(const TrainingAreaBase::MinelayerThrowerData &data, DataModification modType);
|
|
void onSendMinefield(const wirkfeld_minensperre_rt &minefield, int fzArt);
|
|
void onStartMinefieldInterpreter ();
|
|
|
|
private:
|
|
template<typename T>
|
|
void convertMinelayerDataToXdrData(const TrainingAreaBase::MinelayerTrailerData &inData, T &outData);
|
|
Core::GeoPosition2D geographicFromRelative(const gps_position_rt &position) const;
|
|
gps_position_rt relativeFromGeographic(double lon, double lat);
|
|
int partyIdFromEquipmentNumber(int eqNumber) const;
|
|
|
|
std::shared_ptr<DdsHandler> m_ddsHandler;
|
|
std::shared_ptr<TrainingAreaBase::Interface::Dtc> m_tabDtc;
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
|
|
std::shared_ptr<AreaEffectSimulation::Interface::Ftc> m_aesFtc;
|
|
|
|
LtsCoordTrans::UtmCoordinate m_baseCoord;
|
|
|
|
ZSSI_WI_Minenfeld_Interpreter *m_minefieldInterpreter;
|
|
QTimer *m_minefieldInterpreterTimer;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
|
|
};
|
|
} // namespace GuezMinelayerProcessing
|