QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Encapsulates the context in which an elevation profile is to be generated. More...
#include <qgsabstractprofilegenerator.h>
Public Member Functions | |
double | convertDistanceToPixels (double size, QgsUnitTypes::RenderUnit unit) const |
Converts a distance size from the specified units to pixels. More... | |
QgsDoubleRange | distanceRange () const |
Returns the range of distances to include in the generation. More... | |
double | dpi () const |
Returns the DPI (dots per inch) for the profie, to be used in size conversions. More... | |
QgsDoubleRange | elevationRange () const |
Returns the range of elevations to include in the generation. More... | |
double | mapUnitsPerDistancePixel () const |
Returns the number of map units per pixel in the distance dimension. More... | |
double | maximumErrorMapUnits () const |
Returns the maximum allowed error in the generated result, in profile curve map units. More... | |
bool | operator!= (const QgsProfileGenerationContext &other) const |
bool | operator== (const QgsProfileGenerationContext &other) const |
void | setDistanceRange (const QgsDoubleRange &range) |
Sets the range of distances to include in the generation. More... | |
void | setDpi (double dpi) |
Sets the dpi (dots per inch) for the profie, to be used in size conversions. More... | |
void | setElevationRange (const QgsDoubleRange &range) |
Sets the range of elevations to include in the generation. More... | |
void | setMapUnitsPerDistancePixel (double units) |
Sets the number of map units per pixel in the distance dimension. More... | |
void | setMaximumErrorMapUnits (double error) |
Sets the maximum allowed error in the generated result, in profile curve map units. More... | |
Encapsulates the context in which an elevation profile is to be generated.
Definition at line 262 of file qgsabstractprofilegenerator.h.
double QgsProfileGenerationContext::convertDistanceToPixels | ( | double | size, |
QgsUnitTypes::RenderUnit | unit | ||
) | const |
Converts a distance size from the specified units to pixels.
Definition at line 89 of file qgsabstractprofilegenerator.cpp.
|
inline |
Returns the range of distances to include in the generation.
Distances outside this range may be excluded from the generation (if it results in faster profile generation).
Definition at line 307 of file qgsabstractprofilegenerator.h.
|
inline |
Returns the DPI (dots per inch) for the profie, to be used in size conversions.
Definition at line 348 of file qgsabstractprofilegenerator.h.
|
inline |
Returns the range of elevations to include in the generation.
Elevations outside this range may be excluded from the generation (if it results in faster profile generation).
Definition at line 325 of file qgsabstractprofilegenerator.h.
|
inline |
Returns the number of map units per pixel in the distance dimension.
Definition at line 291 of file qgsabstractprofilegenerator.h.
|
inline |
Returns the maximum allowed error in the generated result, in profile curve map units.
By default this is NaN, which indicates that the profile should be generated in the highest precision possible. Larger values will result in a faster profile to generate.
Definition at line 274 of file qgsabstractprofilegenerator.h.
bool QgsProfileGenerationContext::operator!= | ( | const QgsProfileGenerationContext & | other | ) | const |
Definition at line 136 of file qgsabstractprofilegenerator.cpp.
bool QgsProfileGenerationContext::operator== | ( | const QgsProfileGenerationContext & | other | ) | const |
Definition at line 127 of file qgsabstractprofilegenerator.cpp.
|
inline |
Sets the range of distances to include in the generation.
Distances outside this range may be excluded from the generation (if it results in faster profile generation).
Definition at line 316 of file qgsabstractprofilegenerator.h.
|
inline |
Sets the dpi (dots per inch) for the profie, to be used in size conversions.
Definition at line 341 of file qgsabstractprofilegenerator.h.
|
inline |
Sets the range of elevations to include in the generation.
Elevations outside this range may be excluded from the generation (if it results in faster profile generation).
Definition at line 334 of file qgsabstractprofilegenerator.h.
|
inline |
Sets the number of map units per pixel in the distance dimension.
Definition at line 298 of file qgsabstractprofilegenerator.h.
|
inline |
Sets the maximum allowed error in the generated result, in profile curve map units.
By default this is NaN, which indicates that the profile should be generated in the highest precision possible. Larger values will result in a faster profile to generate.
Definition at line 284 of file qgsabstractprofilegenerator.h.