@@ -37,10 +37,10 @@ class QgsMapRendererCache;
37
37
class QgsPalLabeling ;
38
38
class QgsFeatureFilterProvider ;
39
39
40
+ // / @cond PRIVATE
40
41
41
42
/* * \ingroup core
42
43
* Structure keeping low-level rendering job information.
43
- * @note not part of public API!
44
44
*/
45
45
struct LayerRenderJob
46
46
{
@@ -56,6 +56,7 @@ struct LayerRenderJob
56
56
57
57
typedef QList<LayerRenderJob> LayerRenderJobs;
58
58
59
+ // /@endcond PRIVATE
59
60
60
61
/* * \ingroup core
61
62
* Abstract base class for map rendering implementations.
@@ -168,46 +169,50 @@ class CORE_EXPORT QgsMapRendererJob : public QObject
168
169
169
170
protected:
170
171
171
- /* * Convenience function to project an extent into the layer source
172
- * CRS, but also split it into two extents if it crosses
173
- * the +/- 180 degree line. Modifies the given extent to be in the
174
- * source CRS coordinates, and if it was split, returns true, and
175
- * also sets the contents of the r2 parameter
176
- */
177
- static bool reprojectToLayerExtent ( const QgsMapLayer *ml, const QgsCoordinateTransform &ct, QgsRectangle &extent, QgsRectangle &r2 ) ;
172
+ QgsMapSettings mSettings ;
173
+ QTime mRenderingStart ;
174
+ Errors mErrors ;
175
+
176
+ QgsMapRendererCache* mCache = nullptr ;
177
+
178
+ int mRenderingTime = 0 ;
178
179
179
180
// ! @note not available in python bindings
180
181
LayerRenderJobs prepareJobs ( QPainter* painter, QgsLabelingEngine* labelingEngine2 );
181
182
182
183
// ! @note not available in python bindings
183
- void cleanupJobs ( LayerRenderJobs& jobs );
184
+ static QImage composeImage ( const QgsMapSettings& settings, const LayerRenderJobs& jobs );
184
185
185
186
// ! @note not available in python bindings
186
187
void logRenderingTime ( const LayerRenderJobs& jobs );
187
188
188
- static QImage composeImage ( const QgsMapSettings& settings, const LayerRenderJobs& jobs );
189
-
190
- bool needTemporaryImage ( QgsMapLayer* ml );
189
+ // ! @note not available in python bindings
190
+ void cleanupJobs ( LayerRenderJobs& jobs );
191
191
192
192
// ! @note not available in Python bindings
193
193
static void drawLabeling ( const QgsMapSettings& settings, QgsRenderContext& renderContext, QgsLabelingEngine* labelingEngine2, QPainter* painter );
194
194
195
+ private:
196
+
197
+ /* * Convenience function to project an extent into the layer source
198
+ * CRS, but also split it into two extents if it crosses
199
+ * the +/- 180 degree line. Modifies the given extent to be in the
200
+ * source CRS coordinates, and if it was split, returns true, and
201
+ * also sets the contents of the r2 parameter
202
+ */
203
+ static bool reprojectToLayerExtent ( const QgsMapLayer *ml, const QgsCoordinateTransform &ct, QgsRectangle &extent, QgsRectangle &r2 );
204
+
205
+ bool needTemporaryImage ( QgsMapLayer* ml );
206
+
195
207
// ! called when rendering has finished to update all layers' geometry caches
196
208
void updateLayerGeometryCaches ();
197
- QgsMapSettings mSettings ;
198
- Errors mErrors ;
199
-
200
- QgsMapRendererCache* mCache ;
201
209
202
210
// ! list of layer IDs for which the geometry cache should be updated
203
211
QStringList mRequestedGeomCacheForLayers ;
204
212
// ! map of geometry caches
205
213
QMap<QString, QgsGeometryCache> mGeometryCaches ;
206
214
207
- QTime mRenderingStart ;
208
- int mRenderingTime ;
209
-
210
- const QgsFeatureFilterProvider *mFeatureFilterProvider ;
215
+ const QgsFeatureFilterProvider *mFeatureFilterProvider = nullptr ;
211
216
};
212
217
213
218
0 commit comments