QGIS API Documentation  3.6.0-Noosa (5873452)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Qgs3DRendererAbstractMetadata Class Referenceabstract

Base metadata class for 3D renderers. More...

#include <qgs3drendererregistry.h>

Inheritance diagram for Qgs3DRendererAbstractMetadata:
Inheritance graph
[legend]

Public Member Functions

virtual ~Qgs3DRendererAbstractMetadata ()=default
 
virtual QgsAbstract3DRenderercreateRenderer (QDomElement &elem, const QgsReadWriteContext &context)=0
 Returns new instance of the renderer given the DOM element. More...
 
QString type () const
 Returns unique identifier of the 3D renderer class. More...
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Base metadata class for 3D renderers.

Instances of derived classes may be registered in Qgs3DRendererRegistry.

Since
QGIS 3.0

Definition at line 34 of file qgs3drendererregistry.h.

Constructor & Destructor Documentation

◆ ~Qgs3DRendererAbstractMetadata()

virtual Qgs3DRendererAbstractMetadata::~Qgs3DRendererAbstractMetadata ( )
virtualdefault

◆ Qgs3DRendererAbstractMetadata()

Qgs3DRendererAbstractMetadata::Qgs3DRendererAbstractMetadata ( const QString &  type)
explicitprotected

Constructor of the base class.

Definition at line 19 of file qgs3drendererregistry.cpp.

Member Function Documentation

◆ createRenderer()

virtual 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.

Implemented in QgsVectorLayer3DRendererMetadata, QgsMeshLayer3DRendererMetadata, and QgsRuleBased3DRendererMetadata.

◆ type()

QString Qgs3DRendererAbstractMetadata::type ( ) const

Returns unique identifier of the 3D renderer class.

Definition at line 24 of file qgs3drendererregistry.cpp.

Member Data Documentation

◆ mType

QString Qgs3DRendererAbstractMetadata::mType
protected

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

Definition at line 60 of file qgs3drendererregistry.h.


The documentation for this class was generated from the following files: