QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
Tree model for the rules: More...
#include <qgsrulebasedrendererwidget.h>
Public Member Functions | |
QgsRuleBasedRendererModel (QgsRuleBasedRenderer *renderer, QObject *parent, QScreen *screen=nullptr) | |
Constructor for QgsRuleBasedRendererModel, for the specified renderer. More... | |
void | clearFeatureCounts () |
int | columnCount (const QModelIndex &=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
void | finishedAddingRules () |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
void | insertRule (const QModelIndex &parent, int before, QgsRuleBasedRenderer::Rule *newrule) |
QMimeData * | mimeData (const QModelIndexList &indexes) const override |
QStringList | mimeTypes () const override |
QModelIndex | parent (const QModelIndex &index) const override |
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) override |
void | removeRule (const QModelIndex &index) |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
QgsRuleBasedRenderer::Rule * | ruleForIndex (const QModelIndex &index) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
void | setFeatureCounts (const QHash< QgsRuleBasedRenderer::Rule *, QgsRuleBasedRendererCount > &countMap) |
void | setSymbol (const QModelIndex &index, QgsSymbol *symbol) |
Sets the symbol for the rule at the specified index. More... | |
Qt::DropActions | supportedDropActions () const override |
void | updateRule (const QModelIndex &index) |
void | updateRule (const QModelIndex &parent, int row) |
void | willAddRules (const QModelIndex &parent, int count) |
Protected Attributes | |
QHash< QgsRuleBasedRenderer::Rule *, QgsRuleBasedRendererCount > | mFeatureCountMap |
QgsRuleBasedRenderer * | mR = nullptr |
QPointer< QScreen > | mScreen |
Tree model for the rules:
(invalid) == root node +— top level rule +— top level rule
Definition at line 47 of file qgsrulebasedrendererwidget.h.
QgsRuleBasedRendererModel::QgsRuleBasedRendererModel | ( | QgsRuleBasedRenderer * | renderer, |
QObject * | parent, | ||
QScreen * | screen = nullptr |
||
) |
Constructor for QgsRuleBasedRendererModel, for the specified renderer.
Definition at line 917 of file qgsrulebasedrendererwidget.cpp.
void QgsRuleBasedRendererModel::clearFeatureCounts | ( | ) |
Definition at line 1378 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1081 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 939 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1220 of file qgsrulebasedrendererwidget.cpp.
void QgsRuleBasedRendererModel::finishedAddingRules | ( | ) |
Definition at line 1367 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 924 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1048 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1086 of file qgsrulebasedrendererwidget.cpp.
void QgsRuleBasedRendererModel::insertRule | ( | const QModelIndex & | parent, |
int | before, | ||
QgsRuleBasedRenderer::Rule * | newrule | ||
) |
Definition at line 1311 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1165 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1158 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1097 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1280 of file qgsrulebasedrendererwidget.cpp.
void QgsRuleBasedRendererModel::removeRule | ( | const QModelIndex & | index | ) |
Definition at line 1341 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1071 of file qgsrulebasedrendererwidget.cpp.
QgsRuleBasedRenderer::Rule * QgsRuleBasedRendererModel::ruleForIndex | ( | const QModelIndex & | index | ) | const |
Definition at line 1273 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1114 of file qgsrulebasedrendererwidget.cpp.
void QgsRuleBasedRendererModel::setFeatureCounts | ( | const QHash< QgsRuleBasedRenderer::Rule *, QgsRuleBasedRendererCount > & | countMap | ) |
Definition at line 1372 of file qgsrulebasedrendererwidget.cpp.
void QgsRuleBasedRendererModel::setSymbol | ( | const QModelIndex & | index, |
QgsSymbol * | symbol | ||
) |
Sets the symbol for the rule at the specified index.
Ownership of the symbols is transferred to the renderer.
Definition at line 1354 of file qgsrulebasedrendererwidget.cpp.
|
override |
Definition at line 1153 of file qgsrulebasedrendererwidget.cpp.
void QgsRuleBasedRendererModel::updateRule | ( | const QModelIndex & | index | ) |
Definition at line 1329 of file qgsrulebasedrendererwidget.cpp.
void QgsRuleBasedRendererModel::updateRule | ( | const QModelIndex & | parent, |
int | row | ||
) |
Definition at line 1323 of file qgsrulebasedrendererwidget.cpp.
void QgsRuleBasedRendererModel::willAddRules | ( | const QModelIndex & | parent, |
int | count | ||
) |
Definition at line 1361 of file qgsrulebasedrendererwidget.cpp.
|
protected |
Definition at line 105 of file qgsrulebasedrendererwidget.h.
|
protected |
Definition at line 104 of file qgsrulebasedrendererwidget.h.
|
protected |
Definition at line 106 of file qgsrulebasedrendererwidget.h.