|
| QgsLayoutItemMapGridStack (QgsLayoutItemMap *map) |
| Constructor for QgsLayoutItemMapGridStack, attached to the specified map. More...
|
|
void | addGrid (QgsLayoutItemMapGrid *grid) |
| Adds a new map grid to the stack and takes ownership of the grid. More...
|
|
QList< QgsLayoutItemMapGrid * > | asList () const |
| Returns a list of QgsLayoutItemMapGrids contained by the stack. More...
|
|
void | calculateMaxGridExtension (double &top, double &right, double &bottom, double &left) const |
| Calculates the maximum distance grids within the stack extend beyond the QgsLayoutItemMap's item rect. More...
|
|
QgsLayoutItemMapGrid * | grid (const QString &gridId) const |
| Returns a reference to a grid with matching gridId within the stack. More...
|
|
QgsLayoutItemMapGrid * | grid (int index) const |
| Returns a reference to a grid at the specified index within the stack. More...
|
|
double | maxGridExtension () const |
| Calculates the maximum distance grids within the stack extend beyond the QgsLayoutItemMap's item rect. More...
|
|
void | moveGridDown (const QString &gridId) |
| Moves a grid with matching gridId down the stack, causing it to be rendered below other grids. More...
|
|
void | moveGridUp (const QString &gridId) |
| Moves a grid with matching gridId up the stack, causing it to be rendered above other grids. More...
|
|
QgsLayoutItemMapGrid & | operator[] (int index) |
| Returns a reference to a grid at the specified index within the stack. More...
|
|
bool | readXml (const QDomElement &elem, const QDomDocument &doc, const QgsReadWriteContext &context) override |
| Sets the item stack's state from a DOM document, where element is a DOM node corresponding to a 'LayoutMap' tag. More...
|
|
void | removeGrid (const QString &gridId) |
| Removes a grid with matching gridId from the stack and deletes the corresponding QgsLayoutItemMapGrid. More...
|
|
| QgsLayoutItemMapItemStack (QgsLayoutItemMap *map) |
| Constructor for QgsLayoutItemMapItemStack, attached to the specified map. More...
|
|
virtual | ~QgsLayoutItemMapItemStack () |
|
bool | containsAdvancedEffects () const |
| Returns whether any items within the stack contain advanced effects, such as blending modes. More...
|
|
void | drawItems (QPainter *painter, bool ignoreStacking=true) |
| Draws the items from the stack on a specified painter. More...
|
|
virtual void | finalizeRestoreFromXml () |
| Called after all pending items have been restored from XML. More...
|
|
bool | hasEnabledItems () const |
| Returns true if the stack has any currently enabled items. More...
|
|
QgsLayoutItemMapItem * | item (int index) const |
| Returns a reference to the item at the specified index within the stack. More...
|
|
virtual bool | readXml (const QDomElement &element, const QDomDocument &doc, const QgsReadWriteContext &context)=0 |
| Sets the item stack's state from a DOM document, where element is a DOM node corresponding to a 'LayoutMap' tag. More...
|
|
int | size () const |
| Returns the number of items in the stack. More...
|
|
virtual bool | writeXml (QDomElement &element, QDomDocument &doc, const QgsReadWriteContext &context) const |
| Stores the state of the item stack in a DOM node, where element is the DOM element corresponding to a 'LayoutMap' tag. More...
|
|