QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
22 , mFlags( FlagAntialiasing | FlagUseAdvancedEffects )
30 if (
flags == mFlags )
39 Flags newFlags = mFlags;
45 if ( newFlags == mFlags )
59 return mFlags.testFlag( flag );
64 Qgis::RenderContextFlags
flags = Qgis::RenderContextFlags();
91 return mMeasurementConverter.
dpi();
101 mGridVisible = visible;
106 return mBoundingBoxesVisible;
111 mBoundingBoxesVisible = visible;
116 mPagesVisible = visible;
121 return mExportThemes;
131 if ( scales == mPredefinedScales )
134 mPredefinedScales = scales;
136 std::sort( mPredefinedScales.begin(), mPredefinedScales.end() );
142 return mFeatureFilterProvider;
@ FlagUseAdvancedEffects
Enable advanced effects such as blend modes.
QgsLayoutRenderContext::Flags flags() const
Returns the current combination of flags used for rendering the layout.
@ NoSimplification
No simplification can be applied.
@ HighQualityImageTransforms
Enable high quality image transformations, which results in better appearance of scaled or rotated ra...
@ ForceVectorOutput
Vector graphics should not be cached and drawn as raster images.
void predefinedScalesChanged()
Emitted when the list of predefined scales changes.
Qgis::RenderContextFlags renderContextFlags() const
Returns the combination of render context flags matched to the layout context's settings.
void setSimplifyHints(SimplifyHints simplifyHints)
Sets the simplification hints of the vector layer managed.
void setFlags(QgsLayoutRenderContext::Flags flags)
Sets the combination of flags that will be used for rendering the layout.
void setDpi(const double dpi)
Sets the dots per inch (dpi) for the measurement converter.
QgsLayoutRenderContext(QgsLayout *layout)
Constructor for QgsLayoutRenderContext.
bool testFlag(Flag flag) const
Check whether a particular rendering flag is enabled for the layout.
void setDpi(double dpi)
Sets the dpi for outputting the layout.
void setPredefinedScales(const QVector< qreal > &scales)
Sets the list of predefined scales to use with the layout.
bool qgsDoubleNear(double a, double b, double epsilon=4 *std::numeric_limits< double >::epsilon())
Compare two doubles (but allow some difference)
QgsFeatureFilterProvider * featureFilterProvider() const
Returns the possibly NULL feature filter provider.
QStringList exportThemes() const
Returns a list of map themes to use during the export.
void flagsChanged(QgsLayoutRenderContext::Flags flags)
Emitted whenever the context's flags change.
@ FlagLosslessImageRendering
Render images losslessly whenever possible, instead of the default lossy jpeg rendering used for some...
void setFlag(QgsLayoutRenderContext::Flag flag, bool on=true)
Enables or disables a particular rendering flag for the layout.
@ Antialiasing
Use antialiasing while drawing.
Flag
Flags for controlling how a layout is rendered.
void setFeatureFilterProvider(QgsFeatureFilterProvider *featureFilterProvider)
Sets feature filter provider to featureFilterProvider.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
double dpi() const
Returns the Dots per inch (DPI) of the measurement converter.
void setExportThemes(const QStringList &themes)
Sets a list of map themes to use during the export.
void setGridVisible(bool visible)
Sets whether the page grid should be visible.
bool boundingBoxesVisible() const
Returns true if the item bounding boxes should be drawn.
void setPagesVisible(bool visible)
Sets whether the page items should be visible in the layout.
Abstract interface for use by classes that filter the features or attributes of a layer.
double dpi() const
Returns the dpi for outputting the layout.
bool gridVisible() const
Returns true if the page grid should be drawn.
@ FlagAntialiasing
Use antialiasing when drawing items.
@ UseAdvancedEffects
Enable layer opacity and blending effects.
void setBoundingBoxesVisible(bool visible)
Sets whether the item bounding boxes should be visible.
@ LosslessImageRendering
Render images losslessly whenever possible, instead of the default lossy jpeg rendering used for some...
void dpiChanged()
Emitted when the context's DPI is changed.