59 const QSize &imageSize,
60 qreal devicePixelRatio,
62 const QColor &bgColor,
63 QObject *
parent =
nullptr);
89 [[nodiscard]]
bool isCancelled()
const {
return m_cancelled->load(); }
102 QList<OpenSWMMVisLayer *> m_layers;
108 bool m_started {
false };
111 std::shared_ptr<std::atomic<bool>> m_cancelled
112 { std::make_shared<std::atomic<bool>>(
false) };
An axis-aligned bounding box in the coordinate space of a given CRS.
Definition mapextent.h:26
Renders raster layers into an off-screen QImage on a worker thread.
Definition maprenderjob.h:43
void start()
Queues the render on a QtConcurrent thread.
Definition maprenderjob.cpp:43
void cancel()
Signals the worker to skip remaining layers.
Definition maprenderjob.cpp:142
~MapRenderJob() override=default
Destructor — non-blocking.
bool isCancelled() const
Returns true after cancel() has been called.
Definition maprenderjob.h:89
void finished(QImage result)
Emitted on the GUI thread when rendering is complete (or cancelled).
Abstract base class for all layers displayed in the MapCanvas.
Definition openswmmvislayer.h:116
Represents a coordinate reference system backed by a GDAL OGRSpatialReference.
Definition spatialreferencesystem.h:28
Axis-aligned bounding box in a map coordinate system, used by MapCanvas and all layer types to define...
QVector< int > parent
union-find
Definition pslgminsize.cpp:176