Migration Summary: - Migrated 7 subdirectories: GraphicalObjects, Rubberbands, MathUtils, MapImpl, SymbologyImpl, Viewshed3D, and Common - Applied Qt6 API changes: QTouchEvent, Qt::MiddleButton, QFuture continuations - Updated ArcGIS SDK v300: include paths, identifyGraphicsOverlaysAsync() - Fixed QList/QVector unification issues in MathUtils - Replaced QSharedPointer::use_count() with isNull()/data() comparisons Test Coverage: - Created 6 new test files following check_pr_policies.py naming conventions - test_graphical_objects.cpp, test_rubberbands.cpp, test_mathutils.cpp - test_mapimpl.cpp, test_symbologyimpl.cpp, test_viewshed3d.cpp - All tests integrated into CMake and CTest - 42 SituationMap tests passing (695 total tests) Build Validation: - Docker build successful with Qt 6.10.2 via aqtinstall - Fixed LtsDataView dependency order in CMakeLists.txt - Fixed test paths to use absolute TESTS_DIR - Removed duplicate main() functions from test files Documentation: - Created MIGRATION_STATUS.md with detailed migration status - Created TEST_REPORT.md with comprehensive test coverage summary Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
104 lines
2.5 KiB
C++
Executable File
104 lines
2.5 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* PathContainer
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// Own
|
|
#include <Map/situation_map_types.h>
|
|
#include <Common/situation_map_logging.h>
|
|
#include <Map/line_style.h>
|
|
#include <Map/fill_style.h>
|
|
|
|
// ESRI
|
|
#include <GeoView.h>
|
|
#include <GraphicsOverlay.h>
|
|
|
|
// Qt
|
|
#include <QImage>
|
|
#include <QMap>
|
|
#include <QVariant>
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
namespace SituationMap
|
|
{
|
|
|
|
// Forward:
|
|
class CoordTranslationFunctor;
|
|
class PathData;
|
|
enum class GraphicalObjectPathType;
|
|
|
|
|
|
class PathContainer : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PathContainer(const Esri::ArcGISRuntime::GeoView *geoView,
|
|
Esri::ArcGISRuntime::GraphicsOverlay *graphicsLayer,
|
|
CoordTranslationFunctor *coordTransFunctor,
|
|
const UniqueMapId &uniqueMapId);
|
|
|
|
explicit PathContainer(const GraphicalObjectPathType pathType,
|
|
const Esri::ArcGISRuntime::GeoView *geoView,
|
|
Esri::ArcGISRuntime::GraphicsOverlay *graphicsLayer,
|
|
CoordTranslationFunctor *coordTransFunctor,
|
|
const UniqueMapId &uniqueMapId);
|
|
virtual ~PathContainer();
|
|
|
|
PathContainer(const PathContainer &other) = delete;
|
|
PathContainer &operator=(PathContainer &other) = delete;
|
|
|
|
QString debugInfo() const;
|
|
void setDebugInfo(const QString &debugInfo);
|
|
|
|
// Marker :
|
|
|
|
virtual PositionCont path(int idx) const;
|
|
virtual bool setPath(int idx, const PositionCont &path);
|
|
|
|
virtual void clear(int idx);
|
|
virtual void clearAll();
|
|
|
|
virtual LineStyle lineStyle() const;
|
|
virtual void setLineStyle(const LineStyle &lineStyle);
|
|
|
|
virtual FillStyle fillStyle() const;
|
|
virtual void setFillStyle(const FillStyle &fillStyle);
|
|
|
|
virtual int drawOrder() const;
|
|
virtual void setDrawOrder(int drawOrder);
|
|
|
|
virtual bool selected() const;
|
|
virtual void setSelected(bool selected);
|
|
|
|
virtual bool visibility(int idx) const;
|
|
virtual void setVisibility(int idx, bool onOff);
|
|
|
|
virtual int getPathCount() const;
|
|
virtual QList<int> getIndicationIndexList() const;
|
|
|
|
|
|
virtual bool updateView();
|
|
|
|
public slots:
|
|
|
|
private:
|
|
LOGGER_T m_logger; ///< Interface of the Logging-Facility
|
|
|
|
class Private;
|
|
/**
|
|
* The private d->pointer to not break BC when changing internals of this class
|
|
*/
|
|
Private *d = nullptr;
|
|
};
|
|
|
|
|
|
} // namespace SituationMap
|
|
|