16#ifndef QGSCATEGORIZED3DRENDERER_H
17#define QGSCATEGORIZED3DRENDERER_H
29class QgsFeature3DHandler;
87 const QVariant
value()
const {
return mValue; }
108 void setValue(
const QVariant &value );
123 void setRenderState(
bool render );
127 std::unique_ptr<QgsAbstract3DSymbol> mSymbol;
154 QString
type()
const override {
return "categorized"; }
187 void setClassAttribute( QString attributeName );
252 bool updateCategoryValue(
int catIndex, const QVariant &value );
274 bool updateCategoryRenderState(
int catIndex,
bool render );
288 bool deleteCategory(
int catIndex );
295 void deleteAllCategories();
300 bool moveCategory(
int from,
int to );
316 void sortByValue( Qt::SortOrder order = Qt::AscendingOrder );
322 QString mAttributeName;
Rendering context for preparation of 3D entities.
Represents an individual category (class) from a QgsCategorized3DRenderer.
Qgs3DRendererCategory()=default
const QVariant value() const
Returns the value corresponding to this category.
bool renderState() const
Returns true if the category is currently enabled and should be rendered.
Qgs3DRendererCategory & operator=(const Qgs3DRendererCategory &other)
QgsAbstract3DSymbol * symbol() const
Returns the symbol which will be used to render this category.
Base class for all renderers that participate in 3D views.
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
QgsAbstractVectorLayer3DRenderer()
QString classAttribute() const
Returns the class attribute for the renderer, which is the field name or expression string from the l...
QgsCategorized3DRenderer(const QString &attributeName=QString(), const Qgs3DCategoryList &categories=Qgs3DCategoryList())
Construct renderer with the given categories.
const Qgs3DCategoryList & categories() const
Returns a list of all categories recognized by the renderer.
QString type() const override
Returns unique identifier of the renderer class (used to identify subclass).
Qgs3DRendererCategory Category
Qgs3DCategoryList Categories
Abstract base class for color ramps.
Handles parsing and evaluation of expressions (formerly called "search strings").
A container for the context for various read/write operations on objects.
Represents a vector layer which manages a vector based dataset.
QList< Qgs3DRendererCategory > Qgs3DCategoryList