18#ifndef QGSPOINTCLOUDCLASSIFIEDRENDERER_H
19#define QGSPOINTCLOUDCLASSIFIEDRENDERER_H
47 QgsPointCloudCategory(
int value,
const QColor &color,
const QString &label,
bool render =
true,
double pointSize = 0 );
60 int value()
const {
return mValue; }
66 QColor
color()
const {
return mColor; }
80 QString
label()
const {
return mLabel; }
94 void setColor(
const QColor &color ) { mColor = color; }
109 void setLabel(
const QString &label ) { mLabel = label; }
126 double mPointSize = 0;
147 QSet< QString > usedAttributes()
const override;
154 int attributeOffset = 0;
173 QString type()
const override;
176 bool willRenderPoint(
const QVariantMap &pointAttributes )
override;
180 QStringList legendRuleKeys()
const override;
181 bool legendItemChecked(
const QString &key )
override;
182 void checkLegendItem(
const QString &key,
bool state =
true )
override;
183 std::unique_ptr< QgsPreparedPointCloudRendererData > prepare()
override SIP_SKIP;
200 QString attribute()
const;
207 void setAttribute(
const QString &attribute );
232 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
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