QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsProfileRenderContext Class Reference

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.
 
QgsRenderContextrenderContext ()
 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.
 

Detailed Description

Abstract base class for storage of elevation profiles.

Since
QGIS 3.26

Definition at line 39 of file qgsabstractprofilegenerator.h.

Constructor & Destructor Documentation

◆ QgsProfileRenderContext()

QgsProfileRenderContext::QgsProfileRenderContext ( QgsRenderContext context)

Constructor for QgsProfileRenderContext, with the specified embedded render context.

Definition at line 21 of file qgsabstractprofilegenerator.cpp.

Member Function Documentation

◆ distanceRange()

QgsDoubleRange QgsProfileRenderContext::distanceRange ( ) const

Returns the range of distances to include in the render.

Distances outside this range should be excluded from the render.

See also
setDistanceRange()

Definition at line 37 of file qgsabstractprofilegenerator.cpp.

◆ elevationRange()

QgsDoubleRange QgsProfileRenderContext::elevationRange ( ) const

Returns the range of elevations to include in the render.

Elevations outside this range should be excluded from the render.

See also
setElevationRange()

Definition at line 47 of file qgsabstractprofilegenerator.cpp.

◆ renderContext()

QgsRenderContext & QgsProfileRenderContext::renderContext ( )
inline

Returns a reference to the component QgsRenderContext.

Definition at line 51 of file qgsabstractprofilegenerator.h.

◆ setDistanceRange()

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.

See also
distanceRange()

Definition at line 42 of file qgsabstractprofilegenerator.cpp.

◆ setElevationRange()

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.

See also
elevationRange()

Definition at line 52 of file qgsabstractprofilegenerator.cpp.

◆ setWorldTransform()

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.

See also
worldTransform()

Definition at line 32 of file qgsabstractprofilegenerator.cpp.

◆ worldTransform()

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.

See also
setWorldTransform()

Definition at line 27 of file qgsabstractprofilegenerator.cpp.


The documentation for this class was generated from the following files: