|
| QgsLayoutItemMapGrid (const QString &name, QgsLayoutItemMap *map) |
| Constructor for QgsLayoutItemMapGrid. More...
|
|
| ~QgsLayoutItemMapGrid () override |
|
bool | accept (QgsStyleEntityVisitorInterface *visitor) const override |
| Accepts the specified style entity visitor, causing it to visit all style entities associated with the map item. More...
|
|
AnnotationDirection | annotationDirection (BorderSide border) const |
| Returns the direction for drawing frame annotations, on the specified side of the map. More...
|
|
DisplayMode | annotationDisplay (BorderSide border) const |
| Returns the display mode for the grid annotations on a specified side of the map frame. More...
|
|
bool | annotationEnabled () const |
| Returns whether annotations are shown for the grid. More...
|
|
QString | annotationExpression () const |
| Returns the expression used for drawing grid annotations. More...
|
|
Q_DECL_DEPRECATED QFont | annotationFont () const |
| Returns the font used for drawing grid annotations. More...
|
|
Q_DECL_DEPRECATED QColor | annotationFontColor () const |
| Returns the font color used for drawing grid annotations. More...
|
|
AnnotationFormat | annotationFormat () const |
| Returns the format for drawing grid annotations. More...
|
|
double | annotationFrameDistance () const |
| Returns the distance between the map frame and annotations. More...
|
|
AnnotationPosition | annotationPosition (BorderSide side) const |
| Returns the position for the grid annotations on a specified side of the map frame. More...
|
|
int | annotationPrecision () const |
| Returns the coordinate precision for grid annotations, which is the number of decimal places shown when drawing grid annotations. More...
|
|
QgsTextFormat | annotationTextFormat () const |
| Returns the text format used when rendering grid annotations. More...
|
|
QPainter::CompositionMode | blendMode () const |
| Retrieves the blending mode used for drawing the grid. More...
|
|
void | calculateMaxExtension (double &top, double &right, double &bottom, double &left) const |
| Calculates the maximum distance the grid extends beyond the QgsLayoutItemMap's item rect. More...
|
|
QgsExpressionContext | createExpressionContext () const override |
| This method needs to be reimplemented in all classes which implement this interface and return an expression context. More...
|
|
double | crossLength () const |
| Retrieves the length (in layout units) of the cross segments drawn for the grid. More...
|
|
QgsCoordinateReferenceSystem | crs () const |
| Retrieves the CRS for the grid. More...
|
|
void | draw (QPainter *painter) override |
| Draws the item on to a destination painter. More...
|
|
DisplayMode | frameDivisions (BorderSide side) const |
| Returns the type of grid divisions which are used for frames on a specified side of the map. More...
|
|
QColor | frameFillColor1 () const |
| Retrieves the first fill color for the grid frame. More...
|
|
QColor | frameFillColor2 () const |
| Retrieves the second fill color for the grid frame. More...
|
|
double | frameMargin () const |
| Sets the grid frame Margin (in layout units). More...
|
|
QColor | framePenColor () const |
| Retrieves the color of the stroke drawn in the grid frame. More...
|
|
double | framePenSize () const |
| Retrieves the width of the stroke drawn in the grid frame. More...
|
|
QgsLayoutItemMapGrid::FrameSideFlags | frameSideFlags () const |
| Returns the flags which control which sides of the map item the grid frame is drawn on. More...
|
|
FrameStyle | frameStyle () const |
| Returns the grid frame style. More...
|
|
double | frameWidth () const |
| Gets the grid frame width in layout units. More...
|
|
double | intervalX () const |
| Returns the interval between grid lines in the x-direction. More...
|
|
double | intervalY () const |
| Returns the interval between grid lines in the y-direction. More...
|
|
QgsLineSymbol * | lineSymbol () |
| Returns the line symbol used for drawing grid lines. More...
|
|
const QgsLineSymbol * | lineSymbol () const |
| Returns the line symbol used for drawing grid lines. More...
|
|
QgsMarkerSymbol * | markerSymbol () |
| Returns the marker symbol used for drawing grid points. More...
|
|
const QgsMarkerSymbol * | markerSymbol () const |
| Returns the marker symbol used for drawing grid points. More...
|
|
double | maxExtension () const |
| Calculates the maximum distance the grid extends beyond the QgsLayoutItemMap's item rect (in layout units). More...
|
|
double | maximumIntervalWidth () const |
| Returns the maximum width (in millimeters) for grid segments. More...
|
|
double | minimumIntervalWidth () const |
| Returns the minimum width (in millimeters) for grid segments. More...
|
|
double | offsetX () const |
| Returns the offset for grid lines in the x-direction. More...
|
|
double | offsetY () const |
| Returns the offset for grid lines in the y-direction. More...
|
|
bool | readXml (const QDomElement &itemElem, const QDomDocument &doc, const QgsReadWriteContext &context) override |
| Sets the map item state from a DOM document, where element is the DOM node corresponding to a 'LayoutMapGrid' tag. More...
|
|
void | refresh () override |
| Refreshes the object, causing a recalculation of any property overrides. More...
|
|
double | rotatedAnnotationsEnabled () const |
| Gets whether annotations rotation for rotated or reprojected grids is enabled. More...
|
|
TickLengthMode | rotatedAnnotationsLengthMode () const |
| Returns the grid frame style. More...
|
|
double | rotatedAnnotationsMarginToCorner () const |
| Gets the margin to corners (in canvas units) below which outwards facing ticks are not drawn. More...
|
|
double | rotatedAnnotationsMinimumAngle () const |
| Gets the minimum angle (in degrees) below which annotated are not drawn. More...
|
|
double | rotatedTicksEnabled () const |
| Gets whether ticks rotation for rotated or reprojected grids is enabled. More...
|
|
TickLengthMode | rotatedTicksLengthMode () const |
| Returns the grid frame style. More...
|
|
double | rotatedTicksMarginToCorner () const |
| Gets the margin to corners (in canvas units) below which outwards facing ticks are not drawn. More...
|
|
double | rotatedTicksMinimumAngle () const |
| Gets the minimum angle (in degrees) below which ticks are not drawn. More...
|
|
void | setAnnotationDirection (AnnotationDirection direction) |
| Sets the direction for drawing all frame annotations. More...
|
|
void | setAnnotationDirection (AnnotationDirection direction, BorderSide side) |
| Sets the direction for drawing frame annotations for the specified map side. More...
|
|
void | setAnnotationDisplay (DisplayMode display, BorderSide border) |
| Sets what types of grid annotations should be drawn for a specified side of the map frame, or whether grid annotations should be disabled for the side. More...
|
|
void | setAnnotationEnabled (const bool enabled) |
| Sets whether annotations should be shown for the grid. More...
|
|
void | setAnnotationExpression (const QString &expression) |
| Sets the expression used for drawing grid annotations. More...
|
|
Q_DECL_DEPRECATED void | setAnnotationFont (const QFont &font) |
| Sets the font used for drawing grid annotations. More...
|
|
Q_DECL_DEPRECATED void | setAnnotationFontColor (const QColor &color) |
| Sets the font color used for drawing grid annotations. More...
|
|
void | setAnnotationFormat (const AnnotationFormat format) |
| Sets the format for drawing grid annotations. More...
|
|
void | setAnnotationFrameDistance (const double distance) |
| Sets the distance between the map frame and annotations. More...
|
|
void | setAnnotationPosition (AnnotationPosition position, BorderSide side) |
| Sets the position for the grid annotations on a specified side of the map frame. More...
|
|
void | setAnnotationPrecision (const int precision) |
| Sets the coordinate precision for grid annotations. More...
|
|
void | setAnnotationTextFormat (const QgsTextFormat &format) |
| Sets the text format to use when rendering grid annotations. More...
|
|
void | setBlendMode (const QPainter::CompositionMode mode) |
| Sets the blending mode used for drawing the grid. More...
|
|
void | setCrossLength (const double length) |
| Sets the length (in layout units) of the cross segments drawn for the grid. More...
|
|
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
| Sets the crs for the grid. More...
|
|
void | setEnabled (bool enabled) override |
| Controls whether the item will be drawn. More...
|
|
void | setFrameDivisions (DisplayMode divisions, BorderSide side) |
| Sets what type of grid divisions should be used for frames on a specified side of the map. More...
|
|
void | setFrameFillColor1 (const QColor &color) |
| Sets the first fill color used for the grid frame. More...
|
|
void | setFrameFillColor2 (const QColor &color) |
| Sets the second fill color used for the grid frame. More...
|
|
void | setFrameMargin (const double margin) |
| Sets the grid frame margin (in layout units). More...
|
|
void | setFramePenColor (const QColor &color) |
| Sets the color of the stroke drawn in the grid frame. More...
|
|
void | setFramePenSize (const double width) |
| Sets the width of the stroke drawn in the grid frame. More...
|
|
void | setFrameSideFlag (QgsLayoutItemMapGrid::FrameSideFlag flag, bool on=true) |
| Sets whether the grid frame is drawn for a certain side of the map item. More...
|
|
void | setFrameSideFlags (QgsLayoutItemMapGrid::FrameSideFlags flags) |
| Sets flags for grid frame sides. More...
|
|
void | setFrameStyle (const FrameStyle style) |
| Sets the grid frame style. More...
|
|
void | setFrameWidth (const double width) |
| Sets the grid frame width (in layout units). More...
|
|
void | setGridLineColor (const QColor &color) |
| Sets the color of grid lines. More...
|
|
void | setGridLineWidth (double width) |
| Sets the width of grid lines (in layout units). More...
|
|
void | setIntervalX (double interval) |
| Sets the interval between grid lines in the x-direction. More...
|
|
void | setIntervalY (double interval) |
| Sets the interval between grid lines in the y-direction. More...
|
|
void | setLineSymbol (QgsLineSymbol *symbol) |
| Sets the line symbol used for drawing grid lines. More...
|
|
void | setMarkerSymbol (QgsMarkerSymbol *symbol) |
| Sets the marker symbol used for drawing grid points. More...
|
|
void | setMaximumIntervalWidth (double width) |
| Sets the maximum width (in millimeters) for grid segments. More...
|
|
void | setMinimumIntervalWidth (double width) |
| Sets the minimum width (in millimeters) for grid segments. More...
|
|
void | setOffsetX (double offset) |
| Sets the offset for grid lines in the x-direction. More...
|
|
void | setOffsetY (double offset) |
| Sets the offset for grid lines in the y-direction. More...
|
|
void | setRotatedAnnotationsEnabled (const bool state) |
| Enable/disable annotations rotation for rotated or reprojected grids. More...
|
|
void | setRotatedAnnotationsLengthMode (const TickLengthMode mode) |
| Sets the annotation length calculation mode. More...
|
|
void | setRotatedAnnotationsMarginToCorner (const double margin) |
| Sets the margin to corners (in canvas units) below which outwards facing ticks are not drawn. More...
|
|
void | setRotatedAnnotationsMinimumAngle (const double angle) |
| Sets the minimum angle (in degrees) below which annotated are not drawn. More...
|
|
void | setRotatedTicksEnabled (const bool state) |
| Enable/disable ticks rotation for rotated or reprojected grids. More...
|
|
void | setRotatedTicksLengthMode (const TickLengthMode mode) |
| Sets the tick length calculation mode. More...
|
|
void | setRotatedTicksMarginToCorner (const double margin) |
| Sets the margin to corners (in canvas units) below which outwards facing ticks are not drawn. More...
|
|
void | setRotatedTicksMinimumAngle (const double angle) |
| Sets the minimum angle (in degrees) below which ticks are not drawn. More...
|
|
void | setStyle (GridStyle style) |
| Sets the grid style, which controls how the grid is drawn over the map's contents. More...
|
|
void | setUnits (GridUnit unit) |
| Sets the unit to use for grid measurements such as the interval and offset for grid lines. More...
|
|
GridStyle | style () const |
| Returns the grid's style, which controls how the grid is drawn over the map's contents. More...
|
|
bool | testFrameSideFlag (FrameSideFlag flag) const |
| Tests whether the grid frame should be drawn on a specified side of the map item. More...
|
|
GridUnit | units () const |
| Returns the units used for grid measurements such as the interval and offset for grid lines. More...
|
|
bool | usesAdvancedEffects () const override |
| Returns true if the item is drawn using advanced effects, such as blend modes. More...
|
|
bool | writeXml (QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const override |
| Stores map item state in a DOM element, where element is the DOM element corresponding to a 'LayoutMap' tag. More...
|
|
| QgsLayoutItemMapItem (const QString &name, QgsLayoutItemMap *map) |
| Constructor for QgsLayoutItemMapItem, attached to the specified map. More...
|
|
virtual bool | accept (QgsStyleEntityVisitorInterface *visitor) const |
| Accepts the specified style entity visitor, causing it to visit all style entities associated with the map item. More...
|
|
QgsExpressionContext | createExpressionContext () const override |
| This method needs to be reimplemented in all classes which implement this interface and return an expression context. More...
|
|
virtual void | draw (QPainter *painter)=0 |
| Draws the item on to a destination painter. More...
|
|
bool | enabled () const |
| Returns whether the item will be drawn. More...
|
|
virtual void | finalizeRestoreFromXml () |
| Called after all pending items have been restored from XML. More...
|
|
QString | id () const |
| Returns the unique id for the map item. More...
|
|
const QgsLayoutItemMap * | map () const |
| Returns the layout item map for the item. More...
|
|
virtual QgsMapLayer * | mapLayer () |
| Returns the internal map layer used by this item, if available. More...
|
|
QString | name () const |
| Returns the friendly display name for the item. More...
|
|
virtual bool | readXml (const QDomElement &element, const QDomDocument &doc, const QgsReadWriteContext &context) |
| Sets the map item state from a DOM document, where element is the DOM node corresponding to a 'LayoutMapGrid' tag. More...
|
|
virtual void | setEnabled (bool enabled) |
| Controls whether the item will be drawn. More...
|
|
void | setMap (QgsLayoutItemMap *map) |
| Sets the corresponding layout map for the item. More...
|
|
void | setName (const QString &name) |
| Sets the friendly display name for the item. More...
|
|
void | setStackingLayer (QgsMapLayer *layer) |
| Sets the item's stacking layer, which specifies where the in the map's stack the item should be rendered. More...
|
|
void | setStackingPosition (StackingPosition position) |
| Sets the item's stacking position, which specifies where the in the map's stack the item should be rendered. More...
|
|
QgsMapLayer * | stackingLayer () const |
| Returns the item's stacking layer, which specifies where the in the map's stack the item should be rendered. More...
|
|
StackingPosition | stackingPosition () const |
| Returns the item's stacking position, which specifies where the in the map's stack the item should be rendered. More...
|
|
virtual bool | usesAdvancedEffects () const |
| Returns true if the item is drawn using advanced effects, such as blend modes. More...
|
|
virtual bool | writeXml (QDomElement &element, QDomDocument &document, const QgsReadWriteContext &context) const |
| Stores map item state in a DOM element, where element is the DOM element corresponding to a 'LayoutMap' tag. More...
|
|
| QgsLayoutObject (QgsLayout *layout) |
| Constructor for QgsLayoutObject, with the specified parent layout. More...
|
|
QgsExpressionContext | createExpressionContext () const override |
| Creates an expression context relating to the objects' current state. More...
|
|
QStringList | customProperties () const |
| Returns list of keys stored in custom properties for the object. More...
|
|
QVariant | customProperty (const QString &key, const QVariant &defaultValue=QVariant()) const |
| Read a custom property from the object. More...
|
|
QgsPropertyCollection & | dataDefinedProperties () |
| Returns a reference to the object's property collection, used for data defined overrides. More...
|
|
const QgsPropertyCollection & | dataDefinedProperties () const |
| Returns a reference to the object's property collection, used for data defined overrides. More...
|
|
QgsLayout * | layout () |
| Returns the layout the object is attached to. More...
|
|
const QgsLayout * | layout () const |
| Returns the layout the object is attached to. More...
|
|
void | removeCustomProperty (const QString &key) |
| Remove a custom property from the object. More...
|
|
void | setCustomProperty (const QString &key, const QVariant &value) |
| Set a custom property for the object. More...
|
|
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
| Sets the objects's property collection, used for data defined overrides. More...
|
|
virtual | ~QgsExpressionContextGenerator ()=default |
|
virtual QgsExpressionContext | createExpressionContext () const =0 |
| This method needs to be reimplemented in all classes which implement this interface and return an expression context. More...
|
|