QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Represents an individual category (class) from a QgsPointCloudClassifiedRenderer. More...
#include <qgspointcloudclassifiedrenderer.h>
Public Member Functions | |
QgsPointCloudCategory ()=default | |
Constructor for QgsPointCloudCategory. More... | |
QgsPointCloudCategory (int value, const QColor &color, const QString &label, bool render=true) | |
Constructor for a new QgsPointCloudCategory, with the specified value and color. More... | |
QColor | color () const |
Returns the color which will be used to render this category. More... | |
QString | label () const |
Returns the label for this category, which is used to represent the category within legends and the layer tree. More... | |
bool | renderState () const |
Returns true if the category is currently enabled and should be rendered. More... | |
void | setColor (const QColor &color) |
Sets the color which will be used to render this category. More... | |
void | setLabel (const QString &label) |
Sets the label for this category, which is used to represent the category within legends and the layer tree. More... | |
void | setRenderState (bool render) |
Sets whether the category is currently enabled and should be rendered. More... | |
void | setValue (int value) |
Sets the value corresponding to this category. More... | |
int | value () const |
Returns the value corresponding to this category. More... | |
Protected Attributes | |
QColor | mColor |
QString | mLabel |
bool | mRender = true |
int | mValue = 0 |
Represents an individual category (class) from a QgsPointCloudClassifiedRenderer.
Definition at line 32 of file qgspointcloudclassifiedrenderer.h.
|
default |
Constructor for QgsPointCloudCategory.
QgsPointCloudCategory::QgsPointCloudCategory | ( | int | value, |
const QColor & | color, | ||
const QString & | label, | ||
bool | render = true |
||
) |
Constructor for a new QgsPointCloudCategory, with the specified value and color.
The label argument specifies the label used for this category in legends and the layer tree.
The render argument indicates whether the category should initially be rendered and appear checked in the layer tree.
Definition at line 26 of file qgspointcloudclassifiedrenderer.cpp.
|
inline |
Returns the color which will be used to render this category.
Definition at line 61 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Returns the label for this category, which is used to represent the category within legends and the layer tree.
Definition at line 68 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Returns true
if the category is currently enabled and should be rendered.
Definition at line 95 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Sets the color which will be used to render this category.
Definition at line 82 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Sets the label for this category, which is used to represent the category within legends and the layer tree.
Definition at line 89 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Sets whether the category is currently enabled and should be rendered.
Definition at line 101 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Sets the value corresponding to this category.
Definition at line 75 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Returns the value corresponding to this category.
Definition at line 55 of file qgspointcloudclassifiedrenderer.h.
|
protected |
Definition at line 105 of file qgspointcloudclassifiedrenderer.h.
|
protected |
Definition at line 106 of file qgspointcloudclassifiedrenderer.h.
|
protected |
Definition at line 107 of file qgspointcloudclassifiedrenderer.h.
|
protected |
Definition at line 104 of file qgspointcloudclassifiedrenderer.h.