|
QGIS API Documentation 4.0.0-Norrköping (1ddcee3d0e4)
|
Represents an individual category (class) from a QgsPointCloudClassifiedRenderer. More...
#include <qgspointcloudclassifiedrenderer.h>
Public Member Functions | |
| QgsPointCloudCategory ()=default | |
| QgsPointCloudCategory (int value, const QColor &color, const QString &label, bool render=true, double pointSize=0) | |
| Constructor for a new QgsPointCloudCategory, with the specified value and color. | |
| QColor | color () const |
| Returns 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 layer tree. | |
| bool | operator== (const QgsPointCloudCategory &other) const |
| Equality operator. | |
| double | pointSize () const |
| Returns the point size for this category. | |
| bool | renderState () const |
Returns true if the category is currently enabled and should be rendered. | |
| void | setColor (const QColor &color) |
| Sets the color which will be used to render this category. | |
| void | setLabel (const QString &label) |
| Sets the label for this category, which is used to represent the category within legends and the layer tree. | |
| void | setPointSize (double size) |
| Sets the point size for this category. | |
| void | setRenderState (bool render) |
| Sets whether the category is currently enabled and should be rendered. | |
| void | setValue (int value) |
| Sets the value corresponding to this category. | |
| int | value () const |
| Returns the value corresponding to this category. | |
Protected Attributes | |
| QColor | mColor |
| QString | mLabel |
| double | mPointSize = 0 |
| bool | mRender = true |
| int | mValue = 0 |
Represents an individual category (class) from a QgsPointCloudClassifiedRenderer.
Definition at line 34 of file qgspointcloudclassifiedrenderer.h.
|
default |
| QgsPointCloudCategory::QgsPointCloudCategory | ( | int | value, |
| const QColor & | color, | ||
| const QString & | label, | ||
| bool | render = true, | ||
| double | pointSize = 0 ) |
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.
A positive pointSize argument overrides the layer's point size setting for this category (added in QGIS 3.36).
Definition at line 30 of file qgspointcloudclassifiedrenderer.cpp.
|
inline |
Returns the color which will be used to render this category.
Definition at line 67 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 81 of file qgspointcloudclassifiedrenderer.h.
| bool QgsPointCloudCategory::operator== | ( | const QgsPointCloudCategory & | other | ) | const |
Equality operator.
Definition at line 38 of file qgspointcloudclassifiedrenderer.cpp.
|
inline |
Returns the point size for this category.
Definition at line 74 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Returns true if the category is currently enabled and should be rendered.
Definition at line 116 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Sets the color which will be used to render this category.
Definition at line 95 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 110 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Sets the point size for this category.
Definition at line 103 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Sets whether the category is currently enabled and should be rendered.
Definition at line 122 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Sets the value corresponding to this category.
Definition at line 88 of file qgspointcloudclassifiedrenderer.h.
|
inline |
Returns the value corresponding to this category.
Definition at line 61 of file qgspointcloudclassifiedrenderer.h.
|
protected |
Definition at line 126 of file qgspointcloudclassifiedrenderer.h.
|
protected |
Definition at line 128 of file qgspointcloudclassifiedrenderer.h.
|
protected |
Definition at line 127 of file qgspointcloudclassifiedrenderer.h.
|
protected |
Definition at line 129 of file qgspointcloudclassifiedrenderer.h.
|
protected |
Definition at line 125 of file qgspointcloudclassifiedrenderer.h.