QGIS API Documentation 3.41.0-Master (3291e9ff48b)
|
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. | |
QgsDoubleRange | distanceRange () const |
Returns the range of distances to include in the render. | |
QgsDoubleRange | elevationRange () const |
Returns the range of elevations to include in the render. | |
QgsRenderContext & | renderContext () |
Returns a reference to the component QgsRenderContext. | |
void | setDistanceRange (const QgsDoubleRange &range) |
Sets the range of distances to include in the render. | |
void | setElevationRange (const QgsDoubleRange &range) |
Sets the range of elevations to include in the render. | |
void | setWorldTransform (const QTransform &transform) |
Sets the transform from world coordinates to painter coordinates. | |
const QTransform & | worldTransform () const |
Returns the transform from world coordinates to painter coordinates. | |
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.