QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
QgsLoadRasterAttributeTableDialog Class Reference

A dialog allowing selection of a VAT.DBF file and associating the resulting raster attribute table with a raster band. More...

#include <qgsloadrasterattributetabledialog.h>

Inheritance diagram for QgsLoadRasterAttributeTableDialog:

Public Slots

void accept () override

Public Member Functions

 QgsLoadRasterAttributeTableDialog (QgsRasterLayer *rasterLayer, QWidget *parent=nullptr)
 Creates a new QgsCreateRasterAttributeTableDialog.
QString filePath () const
 Returns the file path to VAT.DBF.
bool openWhenDone () const
 Returns true if the option to open the newly created attribute table is checked.
int rasterBand ()
 Returns the raster band associated to the raster attribute table.
void setMessageBar (QgsMessageBar *bar)
 Sets the message bar associated with the widget.
void setOpenWhenDoneVisible (bool visible)
 Sets the visibility of the "Open newly created raster attribute table" option to visible, the option is visible by default.

Detailed Description

A dialog allowing selection of a VAT.DBF file and associating the resulting raster attribute table with a raster band.

Note
Not available in Python bindings
Since
QGIS 3.30

Definition at line 41 of file qgsloadrasterattributetabledialog.h.

Constructor & Destructor Documentation

◆ QgsLoadRasterAttributeTableDialog()

QgsLoadRasterAttributeTableDialog::QgsLoadRasterAttributeTableDialog ( QgsRasterLayer * rasterLayer,
QWidget * parent = nullptr )

Creates a new QgsCreateRasterAttributeTableDialog.

Parameters
rasterLayerthe raster layer, must be suitable for creating a new raster attribute table
parentoptional parent

Definition at line 27 of file qgsloadrasterattributetabledialog.cpp.

Member Function Documentation

◆ accept

void QgsLoadRasterAttributeTableDialog::accept ( )
overrideslot

Definition at line 78 of file qgsloadrasterattributetabledialog.cpp.

◆ filePath()

QString QgsLoadRasterAttributeTableDialog::filePath ( ) const

Returns the file path to VAT.DBF.

Definition at line 49 of file qgsloadrasterattributetabledialog.cpp.

◆ openWhenDone()

bool QgsLoadRasterAttributeTableDialog::openWhenDone ( ) const

Returns true if the option to open the newly created attribute table is checked.

Definition at line 64 of file qgsloadrasterattributetabledialog.cpp.

◆ rasterBand()

int QgsLoadRasterAttributeTableDialog::rasterBand ( )

Returns the raster band associated to the raster attribute table.

Definition at line 54 of file qgsloadrasterattributetabledialog.cpp.

◆ setMessageBar()

void QgsLoadRasterAttributeTableDialog::setMessageBar ( QgsMessageBar * bar)

Sets the message bar associated with the widget.

This allows the widget to push feedback messages to the appropriate message bar.

Definition at line 59 of file qgsloadrasterattributetabledialog.cpp.

◆ setOpenWhenDoneVisible()

void QgsLoadRasterAttributeTableDialog::setOpenWhenDoneVisible ( bool visible)

Sets the visibility of the "Open newly created raster attribute table" option to visible, the option is visible by default.

Definition at line 69 of file qgsloadrasterattributetabledialog.cpp.


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