QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
qgspointcloudrequest.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgspointcloudrequest.cpp
3 -----------------------
4 begin : October 2020
5 copyright : (C) 2020 by Peter Petrik
6 email : zilolv at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#include "qgis.h"
21
23
25{
26 return mFilterRect == other.filterRect() &&
27 mAttributes.toFields() == other.attributes().toFields();
28}
29
34
36{
37 mAttributes = attributes;
38}
39
40uint qHash( const QgsPointCloudRequest &request )
41{
42 return qHash( request.filterRect() ) ^ qHash( QVariant( request.attributes().toFields() ) );
43}
Collection of point cloud attributes.
QgsFields toFields() const
Converts the attribute collection to an equivalent QgsFields collection.
Point cloud data request.
QgsPointCloudAttributeCollection attributes() const
Returns attributes.
QgsRectangle filterRect() const
Returns the rectangle from which points will be taken, in point cloud's crs.
void setAttributes(const QgsPointCloudAttributeCollection &attributes)
Set attributes filter in the request.
bool operator==(const QgsPointCloudRequest &other) const
uint qHash(const QgsPointCloudRequest &request)
Hash function for QgsPointCloudRequest.