Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Services/CentralEffectSimulation/Plugins/GeoPairing/GeoPairingImpl/GeoPairingImplAirTargetTracker.hpp
T
torstenandCopilot d5af8b9764 Session 026: Lts/Services Qt5:: to Qt6:: migration
- 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>
2026-08-25 19:23:30 +02:00

94 lines
2.0 KiB
C++
Executable File

#pragma once
// **************************************************************************
//
// (C) Copyright 2009 Swiss SIMTEC AG
//
// **************************************************************************
//
// $HeadURL$
// $LastChangedBy$
// $LastChangedDate$
// $LastChangedRevision$
//
// **************************************************************************
#include <GBL_Global/Types.hpp>
#include <GBL_Types/Coord3.hpp>
#include "GeoPairingImplAirTarget.hpp"
#include <vector>
namespace N_GeoPairingImpl
{
/**
* This class can be used to verify if a AirTarget is within a certain line of
* sight.
*
* @author Daniel.Schmid
* @version 1.0
* @created 22-Dez-2011 09:36:21
*/
class GeoPairingImplAirTargetTracker
{
public:
virtual ~GeoPairingImplAirTargetTracker() = default;
/**
* Constructor
*
* @param a_listTargets
*/
explicit GeoPairingImplAirTargetTracker(std::vector<GeoPairingImplAirTarget *> *a_listTargets);
/**
* sets the current position of the tracker
*
* @param a_positionLat latidude in degrees
* @param a_positionLon longitude in degrees
* @param a_positionAlt altitude in meters
*/
void setPosition(Float64 a_positionLat, Float64 a_positionLon, Float64 a_positionAlt);
/**
* track a air target
*
* @param a_azimuth azimuth in degrees
* @param a_elevation elevation in degrees
* @param a_playerId
* @param a_impactTime
*/
bool track(Float64 a_azimuth, Float64 a_elevation, int &a_playerId, UInt64 &a_impactTime);
/**
* calculates the probability of a target beeing hit according to given conditions
*
* @param a_targetId
* @param a_modeAuto
* @param a_changeOverPoint
*/
bool hitCheck(SInt32 a_targetId, bool a_modeAuto, bool a_changeOverPoint);
/**
* sets the time of the tracking moment
*
* @param a_time
*/
void setTime(UInt64 a_time);
protected:
std::vector<GeoPairingImplAirTarget *> *m_List;
N_Types::Coord3 m_Position;
UInt64 m_Time = 0;
private:
NGL::INGLLogger &m_logger;
};
}