16#ifndef QGSPOINTCLOUDLAYERPROPERTIES_H
17#define QGSPOINTCLOUDLAYERPROPERTIES_H
19#include "ui_qgspointcloudlayerpropertiesbase.h"
25#include <QAbstractTableModel>
36class QgsLayerPropertiesGuiUtils;
40class QgsPointCloudAttributeStatisticsModel :
public QAbstractTableModel
54 QgsPointCloudAttributeStatisticsModel( QgsPointCloudLayer *layer, QObject *parent );
55 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
56 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
57 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
58 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
61 QgsPointCloudLayer *mLayer =
nullptr;
62 QgsPointCloudAttributeCollection mAttributes;
65class QgsPointCloudClassificationStatisticsModel :
public QAbstractTableModel
78 QgsPointCloudClassificationStatisticsModel( QgsPointCloudLayer *layer,
const QString &attribute, QObject *parent );
79 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
80 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
81 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
82 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
85 QgsPointCloudLayer *mLayer =
nullptr;
87 QList<int> mClassifications;
98class GUI_EXPORT QgsPointCloudLayerProperties :
public QgsLayerPropertiesDialog,
private Ui::QgsPointCloudLayerPropertiesBase
103 QgsPointCloudLayerProperties( QgsPointCloudLayer *lyr, QgsMapCanvas *canvas, QgsMessageBar *messageBar, QWidget *parent =
nullptr, Qt::WindowFlags = QgsGuiUtils::ModalDialogFlags );
107 void rollback() final;
111 void aboutToShowStyleMenu();
113 void pbnQueryBuilder_clicked();
114 void crsChanged( const QgsCoordinateReferenceSystem &crs );
117 void syncToLayer() final;
120 QgsPointCloudLayer *mLayer =
nullptr;
122 QAction *mActionLoadMetadata =
nullptr;
123 QAction *mActionSaveMetadataAs =
nullptr;
125 QgsMetadataWidget *mMetadataWidget =
nullptr;
127 QgsCoordinateReferenceSystem mBackupCrs;
Base class for "layer properties" dialogs, containing common utilities for handling functionality in ...
virtual void apply()=0
Applies the dialog settings to the layer.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
A bar for displaying non-blocking messages to the user.
Represents a map layer supporting display of point clouds.