Adds immediate migration results

This commit is contained in:
torsten committed 2026-08-18 22:12:24 +02:00
1 parent ba4121728b
commit 6a2a0667ab
2395 files changed
+357322 -2524

No files matched your search

@@ -30,10 +30,10 @@ SET(SRCS
NGL_ADD_LIBRARY(AAR SV cesPluginExplosions MODULE ${SRCS})
NGL_TARGET_LINK_LIBRARIES(cesPluginExplosions
Qt5::Core
Qt6::Core
ArcGIS::ArcGIS
Qt5::Network
Qt5::Widgets
Qt6::Network
Qt6::Widgets
NGLLogger
cesPluginInterface
ngldb
@@ -7,6 +7,7 @@
*/
#include "expand_polygon.h"
#include <utility>
#include <CentralEffectSimulation/logger.h>
@@ -28,7 +29,7 @@ QPolygonF bufferUtmPolygon(const QPolygonF &polygonUtmIn, const int zone, const
Esri::ArcGISRuntime::PolygonBuilder polygonBuilder(Esri::ArcGISRuntime::SpatialReference(32600 + zone));
DEBUG_LOG(logger) << "ExpandPolygon::bufferUtmPolygon";
for (const QPointF &pointUtm : qAsConst(polygonUtmIn))
for (const QPointF &pointUtm : std::as_const(polygonUtmIn))
polygonBuilder.addPoint(Esri::ArcGISRuntime::Point(pointUtm.x(), pointUtm.y(), 0));
const Esri::ArcGISRuntime::Geometry &esriGeometry = polygonBuilder.toGeometry();
@@ -7,6 +7,7 @@
*/
#include "handler_explosions.h"
#include <utility>
#include "expand_polygon.h"
#include <LtsUtilsCore/dds_bitarray.h>
@@ -223,7 +224,7 @@ void HandlerExplosions::onAesItemViewChanged(const AreaEffectSimulation::AesItem
const int remaining = 1; // ICD GUEZSB60_ICD-0052_Zentrale_Tne.doc Wirkfeldtyp Gefahrenbereich Steilfeuer
const auto &participantPositions = m_handlerParticipant->positions();
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : qAsConst(participantPositions))
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : std::as_const(participantPositions))
{
if (!allParticipantIdsInArea.contains(pPos.participantId()))
continue;
@@ -352,7 +353,7 @@ void HandlerExplosions::calculateImpact(const AreaEffectSimulation::ChargeEffect
AreaEffectSimulation::ChargeStruct chargeStruct(data.chargeTypeId(),data.igniterTypeId(), data.igniterFunctionId());
const double impactRadius = m_ddsHandler->chargeTypeRadius(chargeStruct);
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : qAsConst(participantPositions))
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : std::as_const(participantPositions))
{
if (m_handlerParticipant->isOutdated(pPos)) // Participant Position is not valid Todo Magic Number
continue;
@@ -542,7 +543,7 @@ void HandlerExplosions::onExplosionSingleChanged(const AreaEffectSimulation::Exp
return;
}
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : qAsConst(participantPositions))
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : std::as_const(participantPositions))
{
if (m_handlerParticipant->isOutdated(pPos)) // Participant Position is not valid Todo Magic Number
continue;
@@ -633,7 +634,7 @@ void HandlerExplosions::onEffectsChanged(const AreaEffectSimulation::Effects &ef
triggeredEffectsLtsCoord.reserve(singleEffectsRef.size());
int curSeIndex = -1;
for (const AreaEffectSimulation::SingleEffect &se : qAsConst(singleEffectsRef))
for (const AreaEffectSimulation::SingleEffect &se : std::as_const(singleEffectsRef))
{
++curSeIndex;
if (se.singleEffectState() != AreaEffectSimulation::AesSingleEffectState_def::SesTriggered)
@@ -657,7 +658,7 @@ void HandlerExplosions::onEffectsChanged(const AreaEffectSimulation::Effects &ef
// Now call calculateImpacts() (createEvent if in circle...)
const auto &participantPositions = m_handlerParticipant->positions();
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : qAsConst(participantPositions))
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : std::as_const(participantPositions))
{
if (pPos.vulnerabilityState == ProjectDataManagement::VulnerabilityState_def::CatastrophicKill)
continue;
@@ -893,7 +894,7 @@ void HandlerExplosions::calculateSmartEffect(const AreaEffectSimulation::Effects
bool itemAvailable = m_ddsHandler->dtcAes()->aesItemFromId(effects.aesItemId(), aesItem);
if ( itemAvailable)
{
for (const AreaEffectSimulation::SingleEffect &se : qAsConst(effects.singleEffects()))
for (const AreaEffectSimulation::SingleEffect &se : std::as_const(effects.singleEffects()))
{
DEBUG_LOG(m_logger) << LOGFUNCTION << " ---> singleEffect=" << se
<< ", aesItem= " << aesItem;
@@ -934,7 +935,7 @@ void HandlerExplosions::calculateSmartExplosion(const int32_t aesItemId,
bool bHumanFound = false;
const auto &participantPositions = m_handlerParticipant->positions();
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &participantPosition : qAsConst(participantPositions))
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &participantPosition : std::as_const(participantPositions))
{
if (m_handlerParticipant->isOutdated(participantPosition)) // Participant Position is not valid Todo Magic Number
continue;
@@ -1077,7 +1078,7 @@ void HandlerExplosions::calculateImpacts(const AreaEffectSimulation::TriggeredIm
return;
const auto &participantPositions = m_handlerParticipant->positions();
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : qAsConst(participantPositions))
for (const CentralEffectSimulation::HandlerParticipant::CesParticipantData &pPos : std::as_const(participantPositions))
{
if (m_handlerParticipant->isOutdated(pPos)) // Participant Position is not valid Todo Magic Number
continue;
@@ -1107,7 +1108,7 @@ void HandlerExplosions::calculateImpacts(const CentralEffectSimulation::AesItemV
DEBUG_LOG(m_logger) << "XXXXXXXXXXXX calculateImpacts2a impactsToCheck.size " << impactsToCheck.size();
for (int bitFieldIdx : qAsConst(impactsToCheck))
for (int bitFieldIdx : std::as_const(impactsToCheck))
{
if (itemView.form.size() <= bitFieldIdx)
continue;
@@ -1165,7 +1166,7 @@ void HandlerExplosions::calculateImpactsEffect(const CentralEffectSimulation::Ae
DEBUG_LOG(m_logger) << "shiftedParticipantLtsCoord = " << shiftedParticipantLtsCoord.toString(true);
for (const LtsCoordinate &newTriggeredImpactLtsCoord : qAsConst(triggeredEffectsLtsCoord))
for (const LtsCoordinate &newTriggeredImpactLtsCoord : std::as_const(triggeredEffectsLtsCoord))
{
// const int zoneToUse = itemView.zone;
// 2D or 3D??
@@ -1330,7 +1331,7 @@ void HandlerExplosions::calculateImpactsEffect_outdated(const CentralEffectSimul
DEBUG_LOG(m_logger) << "calculateImpactsEffect 1 triggeredEffectsUtmPos.size " << triggeredEffectsUtmPos.size();
int idx = -1;
for (const QPointF &newTriggeredImpactUtm : qAsConst(triggeredEffectsUtmPos))
for (const QPointF &newTriggeredImpactUtm : std::as_const(triggeredEffectsUtmPos))
{
++idx;
@@ -7,6 +7,7 @@
*/
#include "handler_vulcano.h"
#include <utility>
#include "expand_polygon.h"
#include "isInCone.h"
#include "settings.h"
@@ -244,7 +245,7 @@ void HandlerVulcano::onTrajectoryTimeAwareTimeout()
const auto &designationsVec = dpd.designations();
DEBUG_LOG(m_logger) << "onTimerTimeout participantId=" << participantId;
for (const auto &designation : qAsConst(designationsVec))
for (const auto &designation : std::as_const(designationsVec))
{
if (designation.code() == prf && designation.outputPower() > 0)
{
@@ -368,7 +369,7 @@ Core::GeoPosition HandlerVulcano::getTrajectoryPosFromTime(int aesId, long long
Core::GeoPosition result;
int i = 0;
for (const auto &point : qAsConst(trajectoryTimeAwareValue.geometry()))
for (const auto &point : std::as_const(trajectoryTimeAwareValue.geometry()))
{
DEBUG_LOG(m_logger) << "time=" << point.relativeTime();
if ( (point.relativeTime() > relTime) && (i > 0))
@@ -404,7 +405,7 @@ void HandlerVulcano::onDynamicParticipantChanged(const ParticipantManagement::Dy
<< data.designations().size();
if (data.designations().size() > 0)
{
for (const ParticipantManagement::LaserDesignation &designation : qAsConst(data.designations()))
for (const ParticipantManagement::LaserDesignation &designation : std::as_const(data.designations()))
{
DEBUG_LOG(m_logger) << "gearId=" << designation.gearId()
<< " code=" << designation.code()