66 bool required =
false;
75 bool supported =
false;
78 bool maybeClass =
false;
108 bool isColor( )
const;
113 bool isRamp( )
const;
148 bool hasColor()
const;
159 bool setColor(
const int row,
const QColor &color );
168 bool hasRamp()
const;
178 bool setRamp(
const int row,
const QColor &colorMin,
const QColor &colorMax );
183 QList<Qgis::RasterAttributeTableFieldUsage> usages( ) const
SIP_SKIP;
190 QList<
int> intUsages( ) const
SIP_PYNAME( usages );
202 QColor color(
int row ) const;
234 bool isDirty() const;
239 void setDirty(
bool isDirty );
244 bool isValid( QString *errorMessage
SIP_OUT =
nullptr ) const;
255 bool insertField(
int position, const QString &name, const
Qgis::RasterAttributeTableFieldUsage usage, const QMetaType::Type type, QString *errorMessage
SIP_OUT =
nullptr );
261 Q_DECL_DEPRECATED
bool insertField(
int position, const QString &name, const
Qgis::RasterAttributeTableFieldUsage usage, const QVariant::Type type, QString *errorMessage
SIP_OUT =
nullptr )
SIP_DEPRECATED;
266 bool insertColor(
int position, QString *errorMessage
SIP_OUT =
nullptr );
272 bool setFieldUsage(
int fieldIndex, const
Qgis::RasterAttributeTableFieldUsage usage );
277 bool insertRamp(
int position, QString *errorMessage
SIP_OUT =
nullptr );
282 bool appendField( const QString &name, const
Qgis::RasterAttributeTableFieldUsage usage, const QMetaType::Type type, QString *errorMessage
SIP_OUT =
nullptr );
287 bool appendField( const QString &name, const
Qgis::RasterAttributeTableFieldUsage usage, const QVariant::Type type, QString *errorMessage
SIP_OUT =
nullptr );
297 bool removeField( const QString &name, QString *errorMessage
SIP_OUT =
nullptr );
303 bool insertRow(
int position, const QVariantList &rowData, QString *errorMessage
SIP_OUT =
nullptr );
309 bool removeRow(
int position = 0, QString *errorMessage
SIP_OUT =
nullptr );
314 bool appendRow( const QVariantList &data, QString *errorMessage
SIP_OUT =
nullptr );
320 bool writeToFile( const QString &path, QString *errorMessage
SIP_OUT =
nullptr );
325 bool readFromFile( const QString &path, QString *errorMessage
SIP_OUT =
nullptr );
330 const QList<QList<QVariant>> data() const;
349 bool setValue( const
int row, const
int column, const QVariant &value );
354 QVariant value( const
int row, const
int column ) const;
359 double minimumValue( ) const;
364 double maximumValue( ) const;
370 QVariantList row( const
double matchValue ) const;
404 QList<QList<QVariant>> orderedRows( ) const;
409 static
Qgis::RasterAttributeTableFieldUsage guessFieldUsage( const QString &name, const QMetaType::Type type );
414 static
Qgis::RasterAttributeTableFieldUsage guessFieldUsage( const QString &name, const QVariant::Type type );
422 QString filePath() const;
428 static QString usageName( const
Qgis::RasterAttributeTableFieldUsage fieldusage );
433 static QList<
Qgis::RasterAttributeTableFieldUsage> valueAndColorFieldUsages();
463 Qgis::RasterAttributeTableType mType =
Qgis::RasterAttributeTableType::Thematic;
464 QList<
Field> mFields;
465 QList<QVariantList> mData;