QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
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...
 
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

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

Member Function Documentation

◆ filterAcceptsRow()

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

Definition at line 273 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 304 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 266 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: