QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
|
The Field class represents a Raster Attribute Table field, including its name, usage and type. More...
#include <qgsrasterattributetable.h>
Public Member Functions | |
Field (const QString &name, const Qgis::RasterAttributeTableFieldUsage &usage, const QVariant::Type type) | |
Creates a new Field with name, type and usage. More... | |
bool | isColor () const |
Returns true if the field carries a color component (Red, Green, Blue and optionally Alpha) information. More... | |
bool | isRamp () const |
Returns true if the field carries a color ramp component information (RedMin/RedMax, GreenMin/GreenMax, BlueMin/BlueMax and optionally AlphaMin/AlphaMax) information. More... | |
Public Attributes | |
QString | name |
QVariant::Type | type |
Qgis::RasterAttributeTableFieldUsage | usage |
The Field class represents a Raster Attribute Table field, including its name, usage and type.
Definition at line 89 of file qgsrasterattributetable.h.
|
inline |
Creates a new Field with name, type and usage.
Definition at line 97 of file qgsrasterattributetable.h.
bool QgsRasterAttributeTable::Field::isColor | ( | ) | const |
Returns true
if the field carries a color component (Red, Green, Blue and optionally Alpha) information.
Definition at line 1608 of file qgsrasterattributetable.cpp.
bool QgsRasterAttributeTable::Field::isRamp | ( | ) | const |
Returns true
if the field carries a color ramp component information (RedMin/RedMax, GreenMin/GreenMax, BlueMin/BlueMax and optionally AlphaMin/AlphaMax) information.
Definition at line 1613 of file qgsrasterattributetable.cpp.
QString QgsRasterAttributeTable::Field::name |
Definition at line 109 of file qgsrasterattributetable.h.
QVariant::Type QgsRasterAttributeTable::Field::type |
Definition at line 111 of file qgsrasterattributetable.h.
Qgis::RasterAttributeTableFieldUsage QgsRasterAttributeTable::Field::usage |
Definition at line 110 of file qgsrasterattributetable.h.