QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
Public Member Functions | List of all members
QgsScopedRenderContextReferenceScaleOverride Class Reference

Scoped object for temporary override of the symbologyReferenceScale property of a QgsRenderContext. More...

#include <qgsrendercontext.h>

Public Member Functions

 QgsScopedRenderContextReferenceScaleOverride (QgsRenderContext &context, double scale)
 Constructor for QgsScopedRenderContextReferenceScaleOverride. More...
 
 QgsScopedRenderContextReferenceScaleOverride (QgsScopedRenderContextReferenceScaleOverride &&o) noexcept
 Move constructor. More...
 
 ~QgsScopedRenderContextReferenceScaleOverride ()
 Returns the render context back to the original reference scale. More...
 

Detailed Description

Scoped object for temporary override of the symbologyReferenceScale property of a QgsRenderContext.

Temporarily changes the symbologyReferenceScale, before returning it to the original value on destruction.

Note
Not available in Python bindings
Since
QGIS 3.22

Definition at line 1419 of file qgsrendercontext.h.

Constructor & Destructor Documentation

◆ QgsScopedRenderContextReferenceScaleOverride() [1/2]

QgsScopedRenderContextReferenceScaleOverride::QgsScopedRenderContextReferenceScaleOverride ( QgsRenderContext context,
double  scale 
)
inline

Constructor for QgsScopedRenderContextReferenceScaleOverride.

Temporarily sets the render context symbologyReferenceScale to scale for the lifetime of this object.

Definition at line 1428 of file qgsrendercontext.h.

◆ QgsScopedRenderContextReferenceScaleOverride() [2/2]

QgsScopedRenderContextReferenceScaleOverride::QgsScopedRenderContextReferenceScaleOverride ( QgsScopedRenderContextReferenceScaleOverride &&  o)
inlinenoexcept

Move constructor.

Definition at line 1438 of file qgsrendercontext.h.

◆ ~QgsScopedRenderContextReferenceScaleOverride()

QgsScopedRenderContextReferenceScaleOverride::~QgsScopedRenderContextReferenceScaleOverride ( )
inline

Returns the render context back to the original reference scale.

Definition at line 1448 of file qgsrendercontext.h.


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