18#ifndef QGSPOINTCLOUDCLASSIFIEDRENDERER_H
19#define QGSPOINTCLOUDCLASSIFIEDRENDERER_H
61 int value()
const {
return mValue; }
67 QColor
color()
const {
return mColor; }
74 QString
label()
const {
return mLabel; }
88 void setColor(
const QColor &color ) { mColor = color; }
95 void setLabel(
const QString &label ) { mLabel = label; }
132 QSet< QString > usedAttributes()
const override;
139 int attributeOffset = 0;
158 QString type()
const override;
161 bool willRenderPoint(
const QVariantMap &pointAttributes )
override;
165 QStringList legendRuleKeys()
const override;
166 bool legendItemChecked(
const QString &key )
override;
167 void checkLegendItem(
const QString &key,
bool state =
true )
override;
168 std::unique_ptr< QgsPreparedPointCloudRendererData > prepare()
override SIP_SKIP;
185 QString attribute()
const;
192 void setAttribute(
const QString &attribute );
217 QString mAttribute = QStringLiteral(
"Classification" );
Layer tree node points to a map layer.
DataType
Systems of unit measurement.
Base class for storing raw data from point cloud nodes.
Represents an individual category (class) from a QgsPointCloudClassifiedRenderer.
QgsPointCloudCategory()=default
Constructor for QgsPointCloudCategory.
int value() const
Returns the value corresponding to this category.
void setValue(int value)
Sets the value corresponding to this category.
bool renderState() const
Returns true if the category is currently enabled and should be rendered.
void setRenderState(bool render)
Sets whether the category is currently enabled and should be rendered.
QColor color() const
Returns the color which will be used to render this category.
void setColor(const QColor &color)
Sets the color which will be used to render this category.
QString label() const
Returns the label for this category, which is used to represent the category within legends and the l...
void setLabel(const QString &label)
Sets the label for this category, which is used to represent the category within legends and the laye...
Prepared data container for QgsPointCloudClassifiedRenderer.
QgsPointCloudAttribute::DataType attributeType
QHash< int, QColor > colors
Renders point clouds by a classification attribute.
Encapsulates the render context for a 2D point cloud rendering operation.
Abstract base class for 2d point cloud renderers.
Base class for 2d point cloud renderer prepared data containers.
The class is used as a container of context for various read/write operations on other objects.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
QList< QgsPointCloudCategory > QgsPointCloudCategoryList