QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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 QMetaType::Type type) | |
Creates a new Field with name, type and usage. | |
Q_DECL_DEPRECATED | Field (const QString &name, const Qgis::RasterAttributeTableFieldUsage &usage, const QVariant::Type type) |
Creates a new Field with name, type and usage. | |
bool | isColor () const |
Returns true if the field carries a color component (Red, Green, Blue and optionally Alpha) information. | |
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. | |
Public Attributes | |
QString | name |
QMetaType::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.
|
inline |
Creates a new Field with name, type and usage.
Definition at line 103 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 1623 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 1628 of file qgsrasterattributetable.cpp.
QString QgsRasterAttributeTable::Field::name |
Definition at line 115 of file qgsrasterattributetable.h.
QMetaType::Type QgsRasterAttributeTable::Field::type |
Definition at line 117 of file qgsrasterattributetable.h.
Qgis::RasterAttributeTableFieldUsage QgsRasterAttributeTable::Field::usage |
Definition at line 116 of file qgsrasterattributetable.h.