QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
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.
 
QString type () const
 Returns unique identifier of the 3D renderer class.
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Base metadata class for 3D renderers.

Instances of derived classes may be registered in Qgs3DRendererRegistry.

Definition at line 33 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 nullptr on error. Pure virtual function: must be implemented in derived classes.

Implemented in QgsMeshLayer3DRendererMetadata, QgsPointCloudLayer3DRendererMetadata, QgsRuleBased3DRendererMetadata, QgsTiledSceneLayer3DRendererMetadata, and QgsVectorLayer3DRendererMetadata.

◆ 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 59 of file qgs3drendererregistry.h.


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