Qgs3DRendererAbstractMetadata class

Base metadata class for 3D renderers.

Instances of derived classes may be registered in Qgs3DRendererRegistry.

Derived classes

class QgsVectorLayer3DRendererMetadata
Metadata for vector layer 3D renderer to allow creation of its instances from XML.

Constructors, destructors, conversion operators

Qgs3DRendererAbstractMetadata(const QString& type) protected explicit
Constructor of the base class.

Public functions

auto createRenderer(QDomElement& elem, const QgsReadWriteContext& context) -> QgsAbstract3DRenderer* pure virtual
Returns new instance of the renderer given the DOM element.
auto type() const -> QString
Returns unique identifier of the 3D renderer class.

Protected variables

QString mType
Type used within QGIS for identification (the same what renderer's type() returns)

Function documentation

QgsAbstract3DRenderer* Qgs3DRendererAbstractMetadata::createRenderer(QDomElement& elem, const QgsReadWriteContext& context) pure virtual

Returns new instance of the renderer given the DOM element.

Returns NULL on error. Pure virtual function: must be implemented in derived classes.