QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Public Types | Public Member Functions | List of all members
QgsPointCloudAttributeProxyModel Class Reference

A proxy model for filtering available attributes from a point cloud attribute model. More...

#include <qgspointcloudattributemodel.h>

Inheritance diagram for QgsPointCloudAttributeProxyModel:
Inheritance graph
[legend]

Public Types

enum  Filter {
  Char = 1 << 0 , Short = 1 << 1 , Int32 = 1 << 2 , Float = 1 << 3 ,
  Double = 1 << 4 , Numeric = Short | Int32 | Float | Double , AllTypes = Numeric | Char
}
 Attribute type filters. More...
 

Public Member Functions

 QgsPointCloudAttributeProxyModel (QgsPointCloudAttributeModel *source, QObject *parent=nullptr)
 Constructor for QgsPointCloudAttributeProxyModel, with the specified source model and parent object. More...
 
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
 
Filters filters () const
 Returns the filters controlling displayed attributes. More...
 
bool lessThan (const QModelIndex &left, const QModelIndex &right) const override
 
QgsPointCloudAttributeProxyModelsetFilters (QgsPointCloudAttributeProxyModel::Filters filters)
 Set flags that affect how fields are filtered in the model. More...
 
QgsPointCloudAttributeModelsourceAttributeModel ()
 Returns the QgsPointCloudAttributeModel used in this QSortFilterProxyModel. More...
 

Detailed Description

A proxy model for filtering available attributes from a point cloud attribute model.

Since
QGIS 3.18

Definition at line 137 of file qgspointcloudattributemodel.h.

Member Enumeration Documentation

◆ Filter

Attribute type filters.

Enumerator
Char 

Character attributes.

Short 

Short attributes.

Int32 

Int32 attributes.

Float 

Float attributes.

Double 

Double attributes.

Numeric 

All numeric attributes.

AllTypes 

All attribute types.

Definition at line 143 of file qgspointcloudattributemodel.h.

Constructor & Destructor Documentation

◆ QgsPointCloudAttributeProxyModel()

QgsPointCloudAttributeProxyModel::QgsPointCloudAttributeProxyModel ( QgsPointCloudAttributeModel source,
QObject *  parent = nullptr 
)
explicit

Constructor for QgsPointCloudAttributeProxyModel, with the specified source model and parent object.

Definition at line 255 of file qgspointcloudattributemodel.cpp.

Member Function Documentation

◆ filterAcceptsRow()

bool QgsPointCloudAttributeProxyModel::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
override

Definition at line 269 of file qgspointcloudattributemodel.cpp.

◆ filters()

Filters QgsPointCloudAttributeProxyModel::filters ( ) const
inline

Returns the filters controlling displayed attributes.

See also
setFilters()

Definition at line 177 of file qgspointcloudattributemodel.h.

◆ lessThan()

bool QgsPointCloudAttributeProxyModel::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
override

Definition at line 300 of file qgspointcloudattributemodel.cpp.

◆ setFilters()

QgsPointCloudAttributeProxyModel * QgsPointCloudAttributeProxyModel::setFilters ( QgsPointCloudAttributeProxyModel::Filters  filters)

Set flags that affect how fields are filtered in the model.

See also
filters()

Definition at line 262 of file qgspointcloudattributemodel.cpp.

◆ sourceAttributeModel()

QgsPointCloudAttributeModel * QgsPointCloudAttributeProxyModel::sourceAttributeModel ( )
inline

Returns the QgsPointCloudAttributeModel used in this QSortFilterProxyModel.

Definition at line 165 of file qgspointcloudattributemodel.h.


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