16 #ifndef QGSLAYOUTRENDERCONTEXT_H 17 #define QGSLAYOUTRENDERCONTEXT_H 19 #include "qgis_core.h" 43 FlagOutlineOnly = 1 << 2,
44 FlagAntialiasing = 1 << 3,
45 FlagUseAdvancedEffects = 1 << 4,
46 FlagForceVectorOutput = 1 << 5,
47 FlagHideCoverageLayer = 1 << 6,
48 FlagDrawSelection = 1 << 7,
49 FlagDisableTiledRasterLayerRenders = 1 << 8,
51 Q_DECLARE_FLAGS( Flags,
Flag )
64 void setFlags( QgsLayoutRenderContext::Flags flags );
81 QgsLayoutRenderContext::Flags flags()
const;
89 bool testFlag(
Flag flag )
const;
94 QgsRenderContext::Flags renderContextFlags()
const;
101 void setDpi(
double dpi );
146 bool gridVisible()
const;
152 void setGridVisible(
bool visible );
158 bool boundingBoxesVisible()
const;
164 void setBoundingBoxesVisible(
bool visible );
172 void setPagesVisible(
bool visible );
212 return mTextRenderFormat;
223 mTextRenderFormat = format;
232 void flagsChanged( QgsLayoutRenderContext::Flags flags );
241 Flags mFlags =
nullptr;
245 int mCurrentExportLayer = -1;
247 QColor mSelectionColor = Qt::yellow;
251 bool mIsPreviewRender =
true;
252 bool mGridVisible =
false;
253 bool mBoundingBoxesVisible =
true;
254 bool mPagesVisible =
true;
259 friend class TestQgsLayout;
260 friend class LayoutContextPreviewSettingRestorer;
266 #endif //QGSLAYOUTRENDERCONTEXT_H
QColor selectionColor() const
Gets color that is used for drawing of selected vector features.
Flag
Flags for controlling how a layout is rendered.
int currentExportLayer() const
Returns the current item layer to draw while exporting.
void setTextRenderFormat(QgsRenderContext::TextRenderFormat format)
Sets the text render format, which dictates how text is rendered (e.g.
Always render text using path objects (AKA outlines/curves).
QgsLayoutMeasurementConverter & measurementConverter()
Returns the layout measurement converter to be used in the layout.
void setSelectionColor(const QColor &color)
Sets color that is used for drawing of selected vector features.
Q_DECLARE_METATYPE(QgsMeshTimeSettings)
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
TextRenderFormat
Options for rendering text.
QgsRenderContext::TextRenderFormat textRenderFormat() const
Returns the text render format, which dictates how text is rendered (e.g.
Handles rendering and exports of layouts to various formats.
const QgsLayoutMeasurementConverter & measurementConverter() const
Returns the layout measurement converter to be used in the layout.
This class provides a method of converting QgsLayoutMeasurements from one unit to another...
void setCurrentExportLayer(int layer=-1)
Sets the current item layer to draw while exporting.
Stores information relating to the current rendering settings for a layout.
bool isPreviewRender() const
Returns true if the render current being conducted is a preview render, i.e.
bool pagesVisible() const
Returns whether the page items are be visible in the layout.