18#ifndef QGSPOINTCLOUDCLASSIFIEDRENDERER_H
19#define QGSPOINTCLOUDCLASSIFIEDRENDERER_H
50 QgsPointCloudCategory(
int value,
const QColor &color,
const QString &label,
bool render =
true,
double pointSize = 0 );
63 int value()
const {
return mValue; }
69 QColor
color()
const {
return mColor; }
83 QString
label()
const {
return mLabel; }
97 void setColor(
const QColor &color ) { mColor = color; }
112 void setLabel(
const QString &label ) { mLabel = label; }
129 double mPointSize = 0;
150 QSet< QString > usedAttributes()
const override;
157 int attributeOffset = 0;
176 QString type()
const override;
179 bool willRenderPoint(
const QVariantMap &pointAttributes )
override;
183 QStringList legendRuleKeys()
const override;
184 bool legendItemChecked(
const QString &key )
override;
185 void checkLegendItem(
const QString &key,
bool state =
true )
override;
186 std::unique_ptr< QgsPreparedPointCloudRendererData > prepare()
override SIP_SKIP;
203 QString attribute()
const;
210 void setAttribute(
const QString &attribute );
235 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.
void setPointSize(double size)
Sets the point size for this category.
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.
double pointSize() const
Returns the point size for 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