37 QObject::tr(
"No Symbols" ),
41 QObject::tr(
"Single Symbol" ),
46 QObject::tr(
"Categorized" ),
50 QObject::tr(
"Graduated" ),
54 QObject::tr(
"Rule-based" ),
59 QObject::tr(
"Point Displacement" ),
66 QObject::tr(
"Point Cluster" ),
73 QObject::tr(
"Merged Features" ),
80 QObject::tr(
"Inverted Polygons" ),
87 QObject::tr(
"Heatmap" ),
95 QObject::tr(
"2.5 D" ),
102 QObject::tr(
"Embedded Symbols" ),
108 qDeleteAll( mRenderers );
113 if ( !metadata || mRenderers.contains( metadata->
name() ) )
116 mRenderers[metadata->
name()] = metadata;
117 mRenderersOrder << metadata->
name();
123 if ( !mRenderers.contains( rendererName ) )
126 delete mRenderers[rendererName];
127 mRenderers.remove( rendererName );
128 mRenderersOrder.removeAll( rendererName );
134 return mRenderers.value( rendererName );
139 QStringList renderers;
140 const auto constMRenderersOrder = mRenderersOrder;
141 for (
const QString &renderer : constMRenderersOrder )
145 renderers << renderer;
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Create a new 2.5D renderer from XML.
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates a categorized renderer from an XML element.
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates a new embedded symbol renderer from an XML element, using the supplied read/write context.
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
create renderer from XML element
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates a new heatmap renderer instance from XML.
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates a renderer out of an XML, for loading.
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates a renderer out of an XML, for loading.
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates a null renderer from XML element.
static QgsFeatureRenderer * create(QDomElement &symbologyElem, const QgsReadWriteContext &context)
Creates a renderer from XML element.
static QgsFeatureRenderer * create(QDomElement &symbologyElem, const QgsReadWriteContext &context)
Create a renderer from XML element.
bool addRenderer(QgsRendererAbstractMetadata *metadata)
Adds a renderer to the registry.
QStringList renderersList(QgsRendererAbstractMetadata::LayerTypes layerTypes=QgsRendererAbstractMetadata::All) const
Returns a list of available renderers.
QgsRendererAbstractMetadata * rendererMetadata(const QString &rendererName)
Returns the metadata for a specified renderer.
bool removeRenderer(const QString &rendererName)
Removes a renderer from registry.
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates a new rule-based renderer instance from XML.
static QgsFeatureRenderer * createFromSld(QDomElement &element, QgsWkbTypes::GeometryType geomType)
static QgsFeatureRenderer * create(QDomElement &element, const QgsReadWriteContext &context)
Creates a new single symbol renderer from an XML element, using the supplied read/write context.
static QgsFeatureRenderer * createFromSld(QDomElement &element, QgsWkbTypes::GeometryType geomType)
Creates a new single symbol renderer from an SLD element.
Represents a vector layer which manages a vector based data sets.
Q_INVOKABLE QgsWkbTypes::GeometryType geometryType() const
Returns point, line or polygon.