QGIS API Documentation  3.0.2-Girona (307d082)
Public Member Functions | Friends | List of all members
QgsMapThemeCollection::MapThemeRecord Class Reference

Individual map theme record of visible layers and styles. More...

#include <qgsmapthemecollection.h>

Public Member Functions

void addLayerRecord (const QgsMapThemeCollection::MapThemeLayerRecord &record)
 Add a new record for a layer. More...
 
QList< QgsMapThemeCollection::MapThemeLayerRecordlayerRecords () const
 Returns a list of records for all visible layer belonging to the theme. More...
 
bool operator!= (const QgsMapThemeCollection::MapThemeRecord &other) const
 
bool operator== (const QgsMapThemeCollection::MapThemeRecord &other) const
 
void removeLayerRecord (QgsMapLayer *layer)
 Removes a record for layer if present. More...
 
void setLayerRecords (const QList< QgsMapThemeCollection::MapThemeLayerRecord > &records)
 Sets layer records for the theme. More...
 
QHash< QgsMapLayer *, QgsMapThemeCollection::MapThemeLayerRecordvalidLayerRecords () const
 Return set with only records for valid layers. More...
 

Friends

class QgsMapThemeCollection
 

Detailed Description

Individual map theme record of visible layers and styles.

Since
QGIS 3.0, Previously called PresetRecord

Definition at line 100 of file qgsmapthemecollection.h.

Member Function Documentation

◆ addLayerRecord()

void QgsMapThemeCollection::MapThemeRecord::addLayerRecord ( const QgsMapThemeCollection::MapThemeLayerRecord record)

Add a new record for a layer.

Definition at line 548 of file qgsmapthemecollection.cpp.

◆ layerRecords()

QList<QgsMapThemeCollection::MapThemeLayerRecord> QgsMapThemeCollection::MapThemeRecord::layerRecords ( ) const
inline

Returns a list of records for all visible layer belonging to the theme.

Definition at line 114 of file qgsmapthemecollection.h.

◆ operator!=()

bool QgsMapThemeCollection::MapThemeRecord::operator!= ( const QgsMapThemeCollection::MapThemeRecord other) const
inline

Definition at line 108 of file qgsmapthemecollection.h.

◆ operator==()

bool QgsMapThemeCollection::MapThemeRecord::operator== ( const QgsMapThemeCollection::MapThemeRecord other) const
inline

Definition at line 104 of file qgsmapthemecollection.h.

◆ removeLayerRecord()

void QgsMapThemeCollection::MapThemeRecord::removeLayerRecord ( QgsMapLayer layer)

Removes a record for layer if present.

Definition at line 539 of file qgsmapthemecollection.cpp.

◆ setLayerRecords()

void QgsMapThemeCollection::MapThemeRecord::setLayerRecords ( const QList< QgsMapThemeCollection::MapThemeLayerRecord > &  records)
inline

Sets layer records for the theme.

Definition at line 117 of file qgsmapthemecollection.h.

◆ validLayerRecords()

QHash< QgsMapLayer *, QgsMapThemeCollection::MapThemeLayerRecord > QgsMapThemeCollection::MapThemeRecord::validLayerRecords ( ) const

Return set with only records for valid layers.

Note
not available in Python bindings

Definition at line 553 of file qgsmapthemecollection.cpp.

Friends And Related Function Documentation

◆ QgsMapThemeCollection

friend class QgsMapThemeCollection
friend

Definition at line 135 of file qgsmapthemecollection.h.


The documentation for this class was generated from the following files: