QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
17 #ifndef QGSABSTRACTPROFILEGENERATOR_H
18 #define QGSABSTRACTPROFILEGENERATOR_H
20 #include "qgis_core.h"
61 const QTransform &worldTransform()
const;
70 void setWorldTransform(
const QTransform &transform );
112 QTransform mWorldTransform;
130 double maximumSurfaceDistanceDelta = 0;
133 double maximumSurfaceElevationDelta = 0;
136 double maximumPointDistanceDelta = 0;
139 double maximumPointElevationDelta = 0;
142 double displayRatioElevationVsDistance = 1;
177 QVector<QVariantMap>
results()
const {
return mResults; }
181 QPointer< QgsMapLayer > mLayer =
nullptr;
183 QVector<QVariantMap> mResults;
202 virtual QString type()
const = 0;
207 virtual QMap< double, double > distanceToHeightMap()
const = 0;
218 virtual QVector< QgsGeometry > asGeometries()
const = 0;
341 void setDpi(
double dpi ) { mDpi = dpi; }
348 double dpi()
const {
return mDpi; }
360 double mMaxErrorMapUnits = std::numeric_limits< double >::quiet_NaN();
361 double mMapUnitsPerDistancePixel = 1;
405 virtual QString sourceId()
const = 0;
410 virtual Qgis::ProfileGeneratorFlags flags()
const;
434 #endif // QGSABSTRACTPROFILEGENERATOR_H
Encapsulates the context of identifying profile results.
RenderUnit
Rendering size units.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Encapsulates results of snapping a profile point.
Abstract base class for objects which generate elevation profiles.
Contains information about the context of a rendering operation.
Abstract base class for storage of elevation profiles.
void setMaximumErrorMapUnits(double error)
Sets the maximum allowed error in the generated result, in profile curve map units.
void setDpi(double dpi)
Sets the dpi (dots per inch) for the profie, to be used in size conversions.
Encapsulates the context of snapping a profile point.
QgsDoubleRange elevationRange() const
Returns the range of elevations to include in the generation.
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
void setMapUnitsPerDistancePixel(double units)
Sets the number of map units per pixel in the distance dimension.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Encapsulates a point on a distance-elevation profile.
Encapsulates the context in which an elevation profile is to be generated.
Stores identify results generated by a QgsAbstractProfileResults object.
QgsRenderContext & renderContext()
Returns a reference to the component QgsRenderContext.
void setDistanceRange(const QgsDoubleRange &range)
Sets the range of distances to include in the generation.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
QgsDoubleRange distanceRange() const
Returns the range of distances to include in the generation.
double mapUnitsPerDistancePixel() const
Returns the number of map units per pixel in the distance dimension.
QgsMapLayer * layer() const
Returns the associated map layer.
QgsRange which stores a range of double values.
QVector< QgsPoint > QgsPointSequence
A geometry is the spatial representation of a feature.
QVector< QVariantMap > results() const
Returns a list of custom attributes representing the identify results.
Base class for all map layer types. This is the base class for all map layer types (vector,...
double maximumErrorMapUnits() const
Returns the maximum allowed error in the generated result, in profile curve map units.
void setElevationRange(const QgsDoubleRange &range)
Sets the range of elevations to include in the generation.
Abstract base class for storage of elevation profiles.
double dpi() const
Returns the DPI (dots per inch) for the profie, to be used in size conversions.