|
| QgsRasterAttributeTableModel (QgsRasterAttributeTable *rat, QObject *parent=nullptr) |
| Creates a new QgsRasterAttributeTableModel from raster attribute table rat and optional parent. More...
|
|
int | columnCount (const QModelIndex &parent) const override |
|
QVariant | data (const QModelIndex &index, int role) const override |
|
bool | editable () const |
| Returns true if the Raster Attribute Table is editable. More...
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
|
bool | hasColor () const |
| Returns true if the Raster Attribute Table has color information. More...
|
|
bool | hasRamp () const |
| Returns true if the Raster Attribute Table has ramp information. More...
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
|
QStringList | headerNames () const |
| Returns all the header names, including the "virtual" color header if the Raster Attribute Table has color or ramp. More...
|
|
QString | headerTooltip (const int section) const |
| Returns the tooltip for the given section. More...
|
|
bool | insertColor (int position, QString *errorMessage=nullptr) |
| Create RGBA fields and inserts them at position, optionally reporting any error in errorMessage, returns true on success. More...
|
|
bool | insertField (const int position, const QString &name, const Qgis::RasterAttributeTableFieldUsage usage, const QVariant::Type type, QString *errorMessage=nullptr) |
| Inserts a field at the given position. More...
|
|
bool | insertRamp (int position, QString *errorMessage=nullptr) |
| Create RGBA minimum and maximum fields and inserts them at position, optionally reporting any error in errorMessage, returns true on success. More...
|
|
bool | insertRow (const int position, const QVariantList &rowData, QString *errorMessage=nullptr) |
| Inserts a new row before position, optionally reporting any error in errorMessage, returns true on success. More...
|
|
bool | isDirty () |
| Returns true if the Raster Attribute Table was modified since it was last saved or read. More...
|
|
bool | isValid (QString *errorMessage=nullptr) |
| Checks if the Raster Attribute Table is valid, optionally returns validation errors in errorMessage. More...
|
|
bool | removeColorOrRamp (QString *errorMessage=nullptr) |
| Removes all color or ramp information, optionally reporting any error in errorMessage, returns true on success. More...
|
|
bool | removeField (const int position, QString *errorMessage=nullptr) |
| Remove the field at given position, optionally reporting any error in errorMessage, returns true on success. More...
|
|
bool | removeRow (const int position, QString *errorMessage=nullptr) |
| Removes the row at position, optionally reporting any error in errorMessage, returns true on success. More...
|
|
int | rowCount (const QModelIndex &parent) const override |
|
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
|
void | setEditable (bool editable) |
| Sets the Raster Attribute Table editable state to editable. More...
|
|