QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Individual record of a visible layer in a map theme record. More...
#include <qgsmapthemecollection.h>
Public Member Functions | |
MapThemeLayerRecord (QgsMapLayer *l=nullptr) | |
Initialize layer record with a map layer - it will be stored as a weak pointer. | |
QgsMapLayer * | layer () const |
Returns map layer or nullptr if the layer does not exist anymore. | |
bool | operator!= (const QgsMapThemeCollection::MapThemeLayerRecord &other) const |
bool | operator== (const QgsMapThemeCollection::MapThemeLayerRecord &other) const |
void | setLayer (QgsMapLayer *layer) |
Sets the map layer for this record. | |
Public Attributes | |
QSet< QString > | checkedLegendItems |
Rule keys of check legend items in layer tree model. | |
QString | currentStyle |
Name of the current style of the layer. | |
bool | expandedLayerNode = false |
Whether the layer's tree node is expanded (only to be applied if the parent MapThemeRecord has the information about expanded nodes stored) | |
QSet< QString > | expandedLegendItems |
Rule keys of expanded legend items in layer tree view. | |
bool | isVisible = true |
true if the layer is visible in the associated theme. | |
bool | usingCurrentStyle = false |
Whether current style is valid and should be applied. | |
bool | usingLegendItems = false |
Whether checkedLegendItems should be applied. | |
Individual record of a visible layer in a map theme record.
Definition at line 56 of file qgsmapthemecollection.h.
|
inline |
Initialize layer record with a map layer - it will be stored as a weak pointer.
Definition at line 60 of file qgsmapthemecollection.h.
|
inline |
Returns map layer or nullptr
if the layer does not exist anymore.
Definition at line 76 of file qgsmapthemecollection.h.
|
inline |
Definition at line 70 of file qgsmapthemecollection.h.
|
inline |
Definition at line 63 of file qgsmapthemecollection.h.
void QgsMapThemeCollection::MapThemeLayerRecord::setLayer | ( | QgsMapLayer * | layer | ) |
Sets the map layer for this record.
Definition at line 756 of file qgsmapthemecollection.cpp.
QSet<QString> QgsMapThemeCollection::MapThemeLayerRecord::checkedLegendItems |
Rule keys of check legend items in layer tree model.
Definition at line 94 of file qgsmapthemecollection.h.
QString QgsMapThemeCollection::MapThemeLayerRecord::currentStyle |
Name of the current style of the layer.
Definition at line 90 of file qgsmapthemecollection.h.
bool QgsMapThemeCollection::MapThemeLayerRecord::expandedLayerNode = false |
Whether the layer's tree node is expanded (only to be applied if the parent MapThemeRecord has the information about expanded nodes stored)
Definition at line 107 of file qgsmapthemecollection.h.
QSet<QString> QgsMapThemeCollection::MapThemeLayerRecord::expandedLegendItems |
Rule keys of expanded legend items in layer tree view.
Definition at line 100 of file qgsmapthemecollection.h.
bool QgsMapThemeCollection::MapThemeLayerRecord::isVisible = true |
true
if the layer is visible in the associated theme.
Definition at line 85 of file qgsmapthemecollection.h.
bool QgsMapThemeCollection::MapThemeLayerRecord::usingCurrentStyle = false |
Whether current style is valid and should be applied.
Definition at line 88 of file qgsmapthemecollection.h.
bool QgsMapThemeCollection::MapThemeLayerRecord::usingLegendItems = false |
Whether checkedLegendItems should be applied.
Definition at line 92 of file qgsmapthemecollection.h.