Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Viewer/SituationMap/MapImpl/viewshed_analysis.h
T
torstenandCopilot 124fbb4de8 Fix Qt6 deprecated APIs: QCheckBox::checkStateChanged, ExploratoryLocationViewshed
- Replace QCheckBox::stateChanged with checkStateChanged in:
  - lts_dialog.cpp
  - simple_esri_layer.cpp (2 occurrences)
  - layer_control_widget.cpp
  - symbol_dialog.cpp
- Replace LocationViewshed with ExploratoryLocationViewshed (ArcGIS SDK v300):
  - viewshed_analysis.h/.cpp
  - ViewshedLocation.h/.cpp
  - function_dialog.cpp (include)
- Update ViewshedLocation member variable type to ExploratoryLocationViewshed

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-13 14:41:33 +02:00

65 lines
1.2 KiB
C++
Executable File

/**
* @RDE_HEADER@
* ViewshedAnalysis
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
// Own
#include "viewshed_base.h"
#include <QtCore/QVector>
// forward:
namespace Esri
{
namespace ArcGISRuntime
{
class AnalysisOverlay;
class AnalysisOverlayListModel;
class ExploratoryLocationViewshed;
class SceneGraphicsView;
}
}
//----------------------------------------------------------------------------
namespace SituationMap
{
class ViewshedAnalysis : public ViewshedBase
{
Q_OBJECT
public:
explicit ViewshedAnalysis(Esri::ArcGISRuntime::SceneGraphicsView *sceneGraphicsView
, QObject *parent = nullptr);
virtual ~ViewshedAnalysis();
bool execute(const QPointF &viewshedPoint_map_degree, double outerRadius, double observerOffset) override;
protected slots:
void onErrorOccured(const Esri::ArcGISRuntime::Error &error);
private:
Esri::ArcGISRuntime::AnalysisOverlayListModel *m_analysisOverlayModel;
Esri::ArcGISRuntime::AnalysisOverlay *m_analysisOverlay;
QVector<Esri::ArcGISRuntime::ExploratoryLocationViewshed *> m_viewsheds;
LOGGER_T m_logger;
};
} // namespace SituationMap