mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
123 lines
4.1 KiB
Plaintext
123 lines
4.1 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgspointcloudattributecombobox.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsPointCloudAttributeComboBox : QComboBox
|
|
{
|
|
%Docstring(signature="appended")
|
|
The :py:class:`QgsPointCloudAttributeComboBox` is a combo box which displays the list of attributes of a given point cloud layer.
|
|
It might be combined with a :py:class:`QgsMapLayerComboBox` to automatically update attributes according to a chosen layer.
|
|
|
|
.. versionadded:: 3.18
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgspointcloudattributecombobox.h"
|
|
%End
|
|
public:
|
|
|
|
explicit QgsPointCloudAttributeComboBox( QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
QgsPointCloudAttributeComboBox creates a combo box to display the fields of a layer.
|
|
The layer can be either manually given or dynamically set by connecting the signal :py:class:`QgsMapLayerComboBox`.layerChanged to the slot setLayer.
|
|
%End
|
|
|
|
void setFilters( QgsPointCloudAttributeProxyModel::Filters filters );
|
|
%Docstring
|
|
Sets ``filters`` to allow filtering available attributes according to the attribute properties.
|
|
|
|
.. seealso:: :py:func:`filters`
|
|
%End
|
|
|
|
QgsPointCloudAttributeProxyModel::Filters filters() const;
|
|
%Docstring
|
|
Returns the current filters used for filtering available attributes.
|
|
|
|
.. seealso:: :py:func:`setFilters`
|
|
%End
|
|
|
|
void setAllowEmptyAttributeName( bool allowEmpty );
|
|
%Docstring
|
|
Sets whether an optional empty attribute ("not set") option is shown in the combo box.
|
|
|
|
.. seealso:: :py:func:`allowEmptyAttributeName`
|
|
%End
|
|
|
|
bool allowEmptyAttributeName() const;
|
|
%Docstring
|
|
Returns ``True`` if the combo box allows the empty field ("not set") choice.
|
|
|
|
.. seealso:: :py:func:`setAllowEmptyAttributeName`
|
|
%End
|
|
|
|
QString currentAttribute() const;
|
|
%Docstring
|
|
Returns the currently selected attribute
|
|
%End
|
|
|
|
QgsPointCloudLayer *layer() const;
|
|
%Docstring
|
|
Returns the layer currently associated with the combobox.
|
|
|
|
.. seealso:: :py:func:`setLayer`
|
|
%End
|
|
|
|
void setAttributes( const QgsPointCloudAttributeCollection &attributes );
|
|
%Docstring
|
|
Manually sets the ``attributes`` to use for the combo box.
|
|
|
|
This method should only be used when the combo box ISN'T associated with a :py:func:`~QgsPointCloudAttributeComboBox.layer`
|
|
and needs to show the fields from an arbitrary attribute collection instead. Calling
|
|
:py:func:`~QgsPointCloudAttributeComboBox.setAttributes` will automatically clear any existing :py:func:`~QgsPointCloudAttributeComboBox.layer`.
|
|
|
|
.. seealso:: :py:func:`attributes`
|
|
%End
|
|
|
|
QgsPointCloudAttributeCollection attributes() const;
|
|
%Docstring
|
|
Returns the attributes currently shown in the combobox.
|
|
|
|
This will either be attributes from the associated :py:func:`~QgsPointCloudAttributeComboBox.layer` or the attributes
|
|
manually set by a call to :py:func:`~QgsPointCloudAttributeComboBox.setAttributes`.
|
|
%End
|
|
|
|
signals:
|
|
void attributeChanged( const QString &name );
|
|
%Docstring
|
|
Emitted when the currently selected attribute changes.
|
|
%End
|
|
|
|
public slots:
|
|
|
|
void setLayer( QgsMapLayer *layer );
|
|
%Docstring
|
|
Sets the layer for which fields are listed in the combobox. If no layer is set
|
|
or a non-point cloud layer is set then the combobox will be empty.
|
|
|
|
.. seealso:: :py:func:`layer`
|
|
%End
|
|
|
|
void setAttribute( const QString &name );
|
|
%Docstring
|
|
Sets the currently selected attribute by ``name``
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgspointcloudattributecombobox.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|