QGIS API Documentation 3.32.0-Lima (311a8cb8a6)
Public Member Functions | Public Attributes | List of all members
QgsRasterAttributeTable::Field Class Reference

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
 

Detailed Description

The Field class represents a Raster Attribute Table field, including its name, usage and type.

Since
QGIS 3.30

Definition at line 89 of file qgsrasterattributetable.h.

Constructor & Destructor Documentation

◆ Field()

QgsRasterAttributeTable::Field::Field ( const QString &  name,
const Qgis::RasterAttributeTableFieldUsage usage,
const QVariant::Type  type 
)
inline

Creates a new Field with name, type and usage.

Definition at line 97 of file qgsrasterattributetable.h.

Member Function Documentation

◆ isColor()

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.

◆ isRamp()

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.

Member Data Documentation

◆ name

QString QgsRasterAttributeTable::Field::name

Definition at line 109 of file qgsrasterattributetable.h.

◆ type

QVariant::Type QgsRasterAttributeTable::Field::type

Definition at line 111 of file qgsrasterattributetable.h.

◆ usage

Qgis::RasterAttributeTableFieldUsage QgsRasterAttributeTable::Field::usage

Definition at line 110 of file qgsrasterattributetable.h.


The documentation for this class was generated from the following files: