QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
QgsPointCloudAttributeProxyModel Class Reference

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

#include <qgspointcloudattributemodel.h>

Inheritance diagram for QgsPointCloudAttributeProxyModel:

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...
typedef QFlags< FilterFilters

Public Member Functions

 QgsPointCloudAttributeProxyModel (QgsPointCloudAttributeModel *source, QObject *parent=nullptr)
 Constructor for QgsPointCloudAttributeProxyModel, with the specified source model and parent object.
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
Filters filters () const
 Returns the filters controlling displayed attributes.
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.
QgsPointCloudAttributeModelsourceAttributeModel ()
 Returns the QgsPointCloudAttributeModel used in this QSortFilterProxyModel.

Detailed Description

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

Since
QGIS 3.18

Definition at line 146 of file qgspointcloudattributemodel.h.

Member Typedef Documentation

◆ Filters

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 152 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 261 of file qgspointcloudattributemodel.cpp.

Member Function Documentation

◆ filterAcceptsRow()

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

Definition at line 275 of file qgspointcloudattributemodel.cpp.

◆ filters()

Filters QgsPointCloudAttributeProxyModel::filters ( ) const
inline

Returns the filters controlling displayed attributes.

See also
setFilters()

Definition at line 186 of file qgspointcloudattributemodel.h.

◆ lessThan()

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

Definition at line 306 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 268 of file qgspointcloudattributemodel.cpp.

◆ sourceAttributeModel()

QgsPointCloudAttributeModel * QgsPointCloudAttributeProxyModel::sourceAttributeModel ( )
inline

Returns the QgsPointCloudAttributeModel used in this QSortFilterProxyModel.

Definition at line 174 of file qgspointcloudattributemodel.h.


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