mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
117 lines
3.3 KiB
Plaintext
117 lines
3.3 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/pointcloud/qgspointcloudattributemodel.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsPointCloudAttributeModel : QAbstractItemModel
|
|
{
|
|
%Docstring
|
|
|
|
A model for display of available attributes from a point cloud.
|
|
|
|
.. versionadded:: 3.18
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgspointcloudattributemodel.h"
|
|
%End
|
|
public:
|
|
|
|
enum FieldRoles
|
|
{
|
|
AttributeNameRole,
|
|
AttributeSizeRole,
|
|
AttributeTypeRole,
|
|
IsEmptyRole,
|
|
IsNumericRole,
|
|
};
|
|
|
|
explicit QgsPointCloudAttributeModel( QObject *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor for QgsPointCloudAttributeModel, with the specified ``parent`` object.
|
|
%End
|
|
|
|
void setLayer( QgsPointCloudLayer *layer );
|
|
%Docstring
|
|
Sets the ``layer`` associated with the model.
|
|
|
|
.. seealso:: :py:func:`setAttributes`
|
|
%End
|
|
|
|
void setAttributes( const QgsPointCloudAttributeCollection &attributes );
|
|
%Docstring
|
|
Sets the ``attributes`` to include in the model.
|
|
|
|
.. seealso:: :py:func:`setLayer`
|
|
|
|
.. seealso:: :py:func:`attributes`
|
|
%End
|
|
|
|
QgsPointCloudAttributeCollection attributes() const;
|
|
%Docstring
|
|
Returns the attributes associated with the model.
|
|
|
|
.. seealso:: :py:func:`setAttributes`
|
|
%End
|
|
|
|
void setAllowEmptyAttributeName( bool allowEmpty );
|
|
%Docstring
|
|
Sets whether an optional empty attribute ("not set") option is present in the model.
|
|
|
|
.. seealso:: :py:func:`allowEmptyAttributeName`
|
|
%End
|
|
|
|
QModelIndex indexFromName( const QString &name );
|
|
%Docstring
|
|
Returns the index corresponding to a given attribute ``name``.
|
|
%End
|
|
|
|
bool allowEmptyAttributeName() const;
|
|
%Docstring
|
|
Returns ``True`` if the model allows the empty attribute ("not set") choice.
|
|
|
|
.. seealso:: :py:func:`setAllowEmptyAttributeName`
|
|
%End
|
|
|
|
virtual QModelIndex index( int row, int column, const QModelIndex &parent = QModelIndex() ) const;
|
|
|
|
virtual QModelIndex parent( const QModelIndex &child ) const;
|
|
|
|
virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;
|
|
|
|
virtual int columnCount( const QModelIndex &parent ) const;
|
|
|
|
virtual QVariant data( const QModelIndex &index, int role ) const;
|
|
|
|
|
|
static QString attributeToolTip( const QgsPointCloudAttribute &attribute );
|
|
%Docstring
|
|
Returns a HTML formatted tooltip string for a ``attribute``, containing details
|
|
like the attribute name and type.
|
|
%End
|
|
|
|
static QIcon iconForAttributeType( QgsPointCloudAttribute::DataType type );
|
|
%Docstring
|
|
Returns an icon corresponding to an attribute ``type``
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/pointcloud/qgspointcloudattributemodel.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|