- 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>
70 lines
2.1 KiB
C++
Executable File
70 lines
2.1 KiB
C++
Executable File
/**
|
|
* CES AesItemViewUtm
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Gerlinde Rudolphus, SLTE, 2016-04-14
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <CentralEffectSimulation/svccesddscommon_export.h>
|
|
|
|
#include <AreaEffectSimulation/aes_enums.hpp>
|
|
#include <AreaEffectSimulation/aes.hpp>
|
|
|
|
#include <QPointF>
|
|
#include <QPolygonF>
|
|
#include <QVector>
|
|
#include <QtCore/QHash>
|
|
|
|
namespace CentralEffectSimulation
|
|
{
|
|
struct SVCCESDDSCOMMON_EXPORT AesItemViewUtm
|
|
{
|
|
int zone = -1;
|
|
int aesItemId = 0;
|
|
AreaEffectSimulation::ChargeStruct chargeStruct = {0,0,0};
|
|
int partyId = -1; // detect friendlyFire
|
|
int dusMineId = -1;
|
|
bool isSupplyTruck = false;
|
|
int participantId = -1;
|
|
bool offsetIsSet = false;
|
|
double upperOffset = -1.0;
|
|
double lowerOffset = -1.0;
|
|
AreaEffectSimulation::AesType aesTypeId = AreaEffectSimulation::AesType_def::AtUnknown;
|
|
AreaEffectSimulation::AesEffectState effectStateId = AreaEffectSimulation::AesEffectState::EsExpired;
|
|
qint64 effectStart = 0;
|
|
QPointF boundingBoxBottomLeft;
|
|
QPointF boundingBoxTopRight;
|
|
QPolygonF boundingBox;
|
|
QPolygonF form;
|
|
|
|
double hazardDistance_meter{0.0}; // 'hazardDistance' is used very often, find different name to ease find/grep
|
|
QPolygonF hazardDistanceForm;
|
|
|
|
QVector<Core::GeoPosition2D> formGeo;
|
|
QVector<QPointF> formMines;
|
|
QVector<double> radials; // for nbc area checks
|
|
QPointF center; // for nbc area checks
|
|
|
|
std::vector<uint8_t> handledImpacts;
|
|
qint64 sampleTimeHandledImpacts = 0;
|
|
|
|
bool hasHazardDistance() const { return hazardDistance_meter > 0; }
|
|
|
|
static AesItemViewUtm create(const AreaEffectSimulation::AesItemView &aiv,
|
|
const AesItemViewUtm &prevData,
|
|
double impactRadius,
|
|
bool isSupplyTruck = false,
|
|
double hazardDistance = 0.0,
|
|
bool offsetIsSet = false,
|
|
double upperOffset = -1.0,
|
|
double lowerOffset = -1.0);
|
|
};
|
|
|
|
typedef QSet<int> BitfieldState;
|
|
typedef QHash<int, BitfieldState> BitfieldStates;
|
|
|
|
} // namespace CentralEffectSimulation
|