QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
70 if ( !mSymbol || !vl )
79 constexpr
double MINIMUM_VECTOR_Z_ESTIMATE = -5000000;
80 constexpr
double MAXIMUM_VECTOR_Z_ESTIMATE = 5000000;
81 return new QgsVectorLayerChunkedEntity( vl, MINIMUM_VECTOR_Z_ESTIMATE, MAXIMUM_VECTOR_Z_ESTIMATE,
tilingSettings(), mSymbol.get(), map );
86 QDomDocument doc = elem.ownerDocument();
90 QDomElement elemSymbol = doc.createElement( QStringLiteral(
"symbol" ) );
93 elemSymbol.setAttribute( QStringLiteral(
"type" ), mSymbol->type() );
94 mSymbol->writeXml( elemSymbol, context );
96 elem.appendChild( elemSymbol );
103 const QDomElement elemSymbol = elem.firstChildElement( QStringLiteral(
"symbol" ) );
104 const QString symbolType = elemSymbol.attribute( QStringLiteral(
"type" ) );
107 mSymbol->readXml( elemSymbol, context );
3D renderer that renders all features of a vector layer with the same 3D symbol. The appearance is co...
The class is used as a container of context for various read/write operations on other objects.
Qt3DCore::QEntity * createEntity(const Qgs3DMapSettings &map) const override
Returns a 3D entity that will be used to show renderer's data in 3D scene.
Base class for all renderers that may to participate in 3D view.
static Qgs3DSymbolRegistry * symbol3DRegistry()
Returns registry of available 3D symbols.
void copyBaseProperties(QgsAbstractVectorLayer3DRenderer *r) const
Copies common properties of this object to another object.
void readXmlBaseProperties(const QDomElement &elem, const QgsReadWriteContext &context)
Reads common properties of this object from DOM element.
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
QgsVectorLayer3DTilingSettings tilingSettings() const
Returns tiling settings of the renderer.
QgsVectorLayer * layer() const
Returns vector layer associated with the renderer.
void writeXmlBaseProperties(QDomElement &elem, const QgsReadWriteContext &context) const
Writes common properties of this object to DOM element.
QgsVectorLayer3DRenderer * clone() const override
Returns a cloned instance.
void readXml(const QDomElement &elem, const QgsReadWriteContext &context) override
Reads renderer's properties from given XML element.
void setSymbol(QgsAbstract3DSymbol *symbol)
Sets 3D symbol associated with the renderer. Takes ownership of the symbol.
Represents a vector layer which manages a vector based data sets.
const QgsAbstract3DSymbol * symbol() const
Returns 3D symbol associated with the renderer.
QgsVectorLayer3DRenderer(QgsAbstract3DSymbol *s=nullptr)
Takes ownership of the symbol object.
void writeXml(QDomElement &elem, const QgsReadWriteContext &context) const override
Writes renderer's properties to given XML element.