18 #ifndef QGSPOINTCLOUDCLASSIFIEDRENDERER_H 
   19 #define QGSPOINTCLOUDCLASSIFIEDRENDERER_H 
   22 #include "qgis_core.h" 
   55     int value()
 const { 
return mValue; }
 
   61     QColor 
color()
 const { 
return mColor; }
 
   68     QString 
label()
 const { 
return mLabel; }
 
   82     void setColor( 
const QColor &color ) { mColor = color; }
 
   89     void setLabel( 
const QString &label ) { mLabel = label; }
 
  128     QString type() 
const override;
 
  131     bool willRenderPoint( 
const QVariantMap &pointAttributes ) 
override;
 
  135     QStringList legendRuleKeys() 
const override;
 
  136     bool legendItemChecked( 
const QString &key ) 
override;
 
  137     void checkLegendItem( 
const QString &key, 
bool state = 
true ) 
override;
 
  154     QString attribute() 
const;
 
  161     void setAttribute( 
const QString &attribute );
 
  186     QString mAttribute = QStringLiteral( 
"Classification" );
 
Layer tree node points to a map layer.
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...
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.
The class is used as a container of context for various read/write operations on other objects.
QList< QgsPointCloudCategory > QgsPointCloudCategoryList