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

@@ -7,6 +7,7 @@
*/
#include "object_effect_cluster.h"
#include <utility>
#include "Utils/polygons.h"
#include "handler_charge_administration.h"
#include "handler_charge_effect.h"
@@ -461,9 +462,9 @@ Core::FunctionReplyObject ObjectEffectCluster::updateObject(const Database::AesE
int oldImpactCount = 0;
int newImpactCount = 0;
for (const auto &oldEffector : qAsConst(m_effectorData))
for (const auto &oldEffector : std::as_const(m_effectorData))
oldImpactCount += oldEffector.chargeAmount;
for (const auto &newEffector : qAsConst(effectorDatas))
for (const auto &newEffector : std::as_const(effectorDatas))
newImpactCount += newEffector.chargeAmount;
if (oldImpactCount != newImpactCount)
@@ -686,7 +687,7 @@ bool ObjectEffectCluster::initialCalculations(QString *reasonOut)
mtps_asUtm.resize(m_data.impactCount);
m_temporaryData.mhPoints.reserve(mtps_asUtm.size());
for (const QPointF &mtp_asUtm : qAsConst(mtps_asUtm))
for (const QPointF &mtp_asUtm : std::as_const(mtps_asUtm))
{
LtsCoordTrans::UtmCoordinate temp(impactPositionUtm.zone, mtp_asUtm.x(), mtp_asUtm.y());
m_temporaryData.mhPoints.emplace_back(Core::GeoPosition2D(temp.geographic().x(), temp.geographic().y()));
@@ -1435,7 +1436,7 @@ void ObjectEffectCluster::publishAiv()
const QVector<QPointF> &singleExplosions = Polygons::effectClusterSingleExplosionsGAUSS_Mtp(m_data, m_effectorData);
singleEffectsRef.reserve(singleExplosions.size());
for (const QPointF &singleExplosion : qAsConst(singleExplosions))
for (const QPointF &singleExplosion : std::as_const(singleExplosions))
{
SingleEffect se;
se.singleEffectState(AesSingleEffectState_def::SesScheduled);
@@ -1616,7 +1617,7 @@ void ObjectEffectCluster::markAsExpired(bool fireLoadedRound)
DEBUG_LOG(m_logger) << "TimerTimeout we will now send Confirmation for " << m_data.id;
// send confirmation for all Effectors then mark as expired (with false)
for (const auto effector : qAsConst(m_effectorData))
for (const auto effector : std::as_const(m_effectorData))
{
onSendConfirmationReportToTab(effector.participantId);
}
@@ -2036,7 +2037,7 @@ void ObjectEffectCluster::onEffectorFired(int participantId, int aesItemId, cons
if (chargeEffectIds.size() > 1) // we need to find the last and first one
{
for (const auto id : qAsConst(chargeEffectIds))
for (const auto id : std::as_const(chargeEffectIds))
{
const auto &chargeEffect = m_mainHandler->chargeEffectHandler()->getChargeEffectById(id);
if (chargeEffect->getEffectStart() > lastChargeEffect.second)
@@ -2547,7 +2548,7 @@ bool ObjectEffectCluster::generateTrajectoryVulcanoSpecific(int explosionNumber,
// "convert" from time-aware curve 'back' to time-unaware trajectoryGeometry
tdRef.trajectoryGeometry.clear();
for (const Core::GeoPositionRelativeTime &geoPosRelTime : qAsConst(tdRef.trajectoryTimeAware.geometry()))
for (const Core::GeoPositionRelativeTime &geoPosRelTime : std::as_const(tdRef.trajectoryTimeAware.geometry()))
tdRef.trajectoryGeometry.emplace_back(geoPosRelTime); // implicit // downcast
tdRef.peakHeightAbs = peakHeightRelToOrigin + originatorPosition_geo.z();
@@ -2722,7 +2723,7 @@ void ObjectEffectCluster::sendCalculateTrajectoryAdlerRequest(const QVector<Data
QString reason;
for (const auto &data : qAsConst(effectorData))
for (const auto &data : std::as_const(effectorData))
{
DEBUG_LOG(m_logger) << "TRY to send Calcualte TrajecotryAdlerReuqest for participantId=" << data.participantId;
@@ -3048,7 +3049,7 @@ void ObjectEffectCluster::publishTrajectory(int explosionIndex)
#define REDUCED_DISTRIBUTION // [GUEZE-2462] Darstellung Flugparabel Steilfeuer
#ifdef REDUCED_DISTRIBUTION
const int trajSize = trajectoryGeometry.size();
for (const Core::GeoPosition &pos3D : qAsConst(trajectoryGeometry))
for (const Core::GeoPosition &pos3D : std::as_const(trajectoryGeometry))
{
// if (!m_isAirSupportSource)
{
@@ -3076,7 +3077,7 @@ void ObjectEffectCluster::publishTrajectory(int explosionIndex)
} // for
#else
for (const Core::GeoPosition &pos3D : qAsConst(trajectoryGeometry))
for (const Core::GeoPosition &pos3D : std::as_const(trajectoryGeometry))
{
geometryRef.emplace_back(Core::GeoPositionRelativeTime(pos3D.lon(), pos3D.lat(), pos3D.z(), idx * flightDurationMSecSeg));
++idx;