QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSPOINTCLOUDCLASSIFIEDRENDERER_H
19 #define QGSPOINTCLOUDCLASSIFIEDRENDERER_H
22 #include "qgis_core.h"
61 int value()
const {
return mValue; }
67 QColor color()
const {
return mColor; }
74 QString label()
const {
return mLabel; }
81 void setValue(
int value ) { mValue = value; }
88 void setColor(
const QColor &color ) { mColor = color; }
95 void setLabel(
const QString &label ) { mLabel = label; }
101 bool renderState()
const {
return mRender; }
107 void setRenderState(
bool render ) { mRender = render; }
139 int attributeOffset = 0;
158 QString
type()
const 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" );
222 #endif // QGSPOINTCLOUDCLASSIFIEDRENDERER_H
DataType
Systems of unit measurement.
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
virtual QSet< QString > usedAttributes(const QgsPointCloudRenderContext &context) const
Returns a list of attributes required by this renderer.
virtual QList< QgsLayerTreeModelLegendNode * > createLegendNodes(QgsLayerTreeLayer *nodeLayer)
Creates a set of legend nodes representing the renderer.
virtual void checkLegendItem(const QString &key, bool state=true)
Called when the check state of the legend item with the specified key is changed.
virtual std::unique_ptr< QgsPreparedPointCloudRendererData > prepare()
Returns prepared data container for bulk point color retrieval.
Base class for 2d point cloud renderer prepared data containers.
virtual QgsPointCloudRenderer * clone() const =0
Create a deep copy of this renderer.
Represents an individual category (class) from a QgsPointCloudClassifiedRenderer.
Base class for storing raw data from point cloud nodes.
virtual QColor pointColor(const QgsPointCloudBlock *block, int i, double z)=0
An optimised method of retrieving the color of a point from a point cloud block.
QgsPointCloudAttribute::DataType attributeType
virtual bool prepareBlock(const QgsPointCloudBlock *block)=0
Prepares the renderer for using the specified block.
virtual QDomElement save(QDomDocument &doc, const QgsReadWriteContext &context) const =0
Saves the renderer configuration to an XML element.
virtual void renderBlock(const QgsPointCloudBlock *block, QgsPointCloudRenderContext &context)=0
Renders a block of point cloud data using the specified render context.
Encapsulates the render context for a 2D point cloud rendering operation.
Renders point clouds by a classification attribute.
Layer tree node points to a map layer.
Prepared data container for QgsPointCloudClassifiedRenderer.
virtual bool willRenderPoint(const QMap< QString, QVariant > &pointAttributes)
Checks whether the point holding pointAttributes attributes will be rendered By default if not overri...
virtual QSet< QString > usedAttributes() const =0
Returns the set of attributes used by the prepared point cloud renderer.
virtual QString type() const =0
Returns the identifier of the renderer type.
Abstract base class for 2d point cloud renderers.
QHash< int, QColor > colors
virtual QStringList legendRuleKeys() const
Returns a list of all rule keys for legend nodes created by the renderer.
virtual bool legendItemChecked(const QString &key)
Returns true if the legend item with the specified key is checked.