89 QStringList sourceIds()
const;
95 void startGeneration();
108 void generateSynchronously();
114 void cancelGeneration();
121 void cancelGenerationWithoutBlocking();
124 void waitForFinished();
127 bool isActive()
const;
139 void invalidateAllRefinableSources();
166 void regenerateInvalidatedResults();
178 QImage renderToImage(
int width,
int height,
double distanceMin,
double distanceMax,
double zMin,
double zMax,
const QString &sourceId = QString(),
double devicePixelRatio = 1.0 );
185 void render(
QgsRenderContext &context,
double width,
double height,
double distanceMin,
double distanceMax,
double zMin,
double zMax,
const QString &sourceId = QString() );
193 static std::unique_ptr<QgsLineSymbol> defaultSubSectionsSymbol()
SIP_FACTORY;
219 void renderSubsectionsIndicator(
QgsRenderContext &context,
const QRectF &plotArea,
double distanceMin,
double distanceMax,
double zMin,
double zMax );
250 void onGeneratingFinished();
254 static QTransform computeRenderTransform(
double width,
double height,
double distanceMin,
double distanceMax,
double zMin,
double zMax );
260 std::unique_ptr< QgsAbstractProfileResults > results;
261 std::unique_ptr< QgsAbstractProfileResults > invalidatedResults;
262 bool complete =
false;
266 static void generateProfileStatic( std::unique_ptr< ProfileJob > &job );
269 std::vector< std::unique_ptr< QgsAbstractProfileGenerator > > mGenerators;
273 std::vector< std::unique_ptr< ProfileJob > > mJobs;
275 QFuture<void> mFuture;
276 QFutureWatcher<void> mFutureWatcher;
278 enum { Idle, Generating } mStatus = Idle;
280 std::unique_ptr<QgsLineSymbol> mSubsectionsSymbol;
Encapsulates the context in which an elevation profile is to be generated.
Encapsulates the context of identifying profile results.
Encapsulates the context of snapping a profile point.
Contains information about the context of a rendering operation.