QGIS API Documentation 3.99.0-Master (21b3aa880ba)
Loading...
Searching...
No Matches
QgsCreateRasterAttributeTableDialog Class Reference

A dialog which collects the information required to create a new raster attribute table. More...

#include <qgscreaterasterattributetabledialog.h>

Inheritance diagram for QgsCreateRasterAttributeTableDialog:

Public Slots

void accept () override

Public Member Functions

 QgsCreateRasterAttributeTableDialog (QgsRasterLayer *rasterLayer, QWidget *parent=nullptr)
 Creates a new QgsCreateRasterAttributeTableDialog.
QString filePath () const
 Returns the file path in case of VAT.DBF save option.
bool openWhenDone () const
 Returns true if the option to open the newly created attribute table is checked.
bool saveToFile () const
 Returns true if the option to save to a file is selected.
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 which collects the information required to create a new raster attribute table.

This dialog also performs the creation when the dialog is accepted.

Warning
Client code must check if the creation of attribute tables is supported by the raster layer by calling QgsRasterLayer::canCreateAttributeTable() before using this dialog.
Note
Not available in Python bindings
Since
QGIS 3.30

Definition at line 41 of file qgscreaterasterattributetabledialog.h.

Constructor & Destructor Documentation

◆ QgsCreateRasterAttributeTableDialog()

QgsCreateRasterAttributeTableDialog::QgsCreateRasterAttributeTableDialog ( 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 26 of file qgscreaterasterattributetabledialog.cpp.

Member Function Documentation

◆ accept

void QgsCreateRasterAttributeTableDialog::accept ( )
overrideslot

Definition at line 128 of file qgscreaterasterattributetabledialog.cpp.

◆ filePath()

QString QgsCreateRasterAttributeTableDialog::filePath ( ) const

Returns the file path in case of VAT.DBF save option.

Definition at line 98 of file qgscreaterasterattributetabledialog.cpp.

◆ openWhenDone()

bool QgsCreateRasterAttributeTableDialog::openWhenDone ( ) const

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

Definition at line 108 of file qgscreaterasterattributetabledialog.cpp.

◆ saveToFile()

bool QgsCreateRasterAttributeTableDialog::saveToFile ( ) const

Returns true if the option to save to a file is selected.

Definition at line 103 of file qgscreaterasterattributetabledialog.cpp.

◆ setMessageBar()

void QgsCreateRasterAttributeTableDialog::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 113 of file qgscreaterasterattributetabledialog.cpp.

◆ setOpenWhenDoneVisible()

void QgsCreateRasterAttributeTableDialog::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 118 of file qgscreaterasterattributetabledialog.cpp.


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