16#ifndef QGS3DTERRAINREGISTRY_H
17#define QGS3DTERRAINREGISTRY_H
62 QString
type()
const {
return mType; }
72 QIcon
icon()
const {
return mIcon; }
125 , mCreateFunc( pfSettingsCreate )
126 , mGeneratorCreateFunc( pfGeneratorCreate )
173 QStringList
types()
const;
208 QMap<QString, Qgs3DTerrainAbstractMetadata *> mMetadata;
210 QStringList mTerrainOrder;
QgsAbstractTerrainSettings * configureTerrainFromProject(QgsProjectElevationProperties *properties)
Create terrain settings directly from a project's elevation properties.
QgsAbstractTerrainSettings * createTerrainSettings(const QString &type) const
Creates a new instance of the terrain settings of the specified type.
Qgs3DTerrainRegistry & operator=(const Qgs3DTerrainRegistry &rh)=delete
QgsTerrainGenerator * createTerrainGenerator(const QString &type) const
Creates a new instance of the terrain generator of the specified type.
Qgs3DTerrainAbstractMetadata * terrainMetadata(const QString &type) const
Returns metadata for specified terrain type. Returns nullptr if not found.
QStringList types() const
Returns a list of all available terrain types.
Qgs3DTerrainRegistry(const Qgs3DTerrainRegistry &rh)=delete
bool addType(Qgs3DTerrainAbstractMetadata *metadata)
Registers a new terrain type. Takes ownership of the metadata instance.
Base class for all terrain settings classes.
Contains elevation properties for a QgsProject.
A container for the context for various read/write operations on objects.
A rectangle specified with double values.
Base class for generators of terrain.
QgsAbstractTerrainSettings *(* QgsTerrainSettingsCreateFunc)()
Terrain settings creation function.
QgsTerrainGenerator *(* QgsTerrainGeneratorCreateFunc)()
Terrain generator creation function.