QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
Abstract base class for storage of elevation profiles. More...
#include <qgsabstractprofilegenerator.h>
Public Member Functions | |
QgsProfileRenderContext (QgsRenderContext &context) | |
Constructor for QgsProfileRenderContext, with the specified embedded render context. More... | |
QgsDoubleRange | distanceRange () const |
Returns the range of distances to include in the render. More... | |
QgsDoubleRange | elevationRange () const |
Returns the range of elevations to include in the render. More... | |
QgsRenderContext & | renderContext () |
Returns a reference to the component QgsRenderContext. More... | |
void | setDistanceRange (const QgsDoubleRange &range) |
Sets the range of distances to include in the render. More... | |
void | setElevationRange (const QgsDoubleRange &range) |
Sets the range of elevations to include in the render. More... | |
void | setWorldTransform (const QTransform &transform) |
Sets the transform from world coordinates to painter coordinates. More... | |
const QTransform & | worldTransform () const |
Returns the transform from world coordinates to painter coordinates. More... | |
Abstract base class for storage of elevation profiles.
Definition at line 39 of file qgsabstractprofilegenerator.h.
QgsProfileRenderContext::QgsProfileRenderContext | ( | QgsRenderContext & | context | ) |
Constructor for QgsProfileRenderContext, with the specified embedded render context.
Definition at line 21 of file qgsabstractprofilegenerator.cpp.
QgsDoubleRange QgsProfileRenderContext::distanceRange | ( | ) | const |
Returns the range of distances to include in the render.
Distances outside this range should be excluded from the render.
Definition at line 37 of file qgsabstractprofilegenerator.cpp.
QgsDoubleRange QgsProfileRenderContext::elevationRange | ( | ) | const |
Returns the range of elevations to include in the render.
Elevations outside this range should be excluded from the render.
Definition at line 47 of file qgsabstractprofilegenerator.cpp.
|
inline |
Returns a reference to the component QgsRenderContext.
Definition at line 51 of file qgsabstractprofilegenerator.h.
void QgsProfileRenderContext::setDistanceRange | ( | const QgsDoubleRange & | range | ) |
Sets the range of distances to include in the render.
Distances outside this range will be excluded from the render.
Definition at line 42 of file qgsabstractprofilegenerator.cpp.
void QgsProfileRenderContext::setElevationRange | ( | const QgsDoubleRange & | range | ) |
Sets the range of elevations to include in the render.
Elevations outside this range will be excluded from the render.
Definition at line 52 of file qgsabstractprofilegenerator.cpp.
void QgsProfileRenderContext::setWorldTransform | ( | const QTransform & | transform | ) |
Sets the transform from world coordinates to painter coordinates.
This transform maps points in (distance, elevation) to (x, y) in painter coordinates.
Definition at line 32 of file qgsabstractprofilegenerator.cpp.
const QTransform & QgsProfileRenderContext::worldTransform | ( | ) | const |
Returns the transform from world coordinates to painter coordinates.
This transform maps points in (distance, elevation) to (x, y) in painter coordinates.
Definition at line 27 of file qgsabstractprofilegenerator.cpp.