[3d] Expose the 3D map settings for a given scene to python API

This commit is contained in:
Mathieu Pellerin 2023-02-26 13:45:55 +07:00 committed by Nyall Dawson
parent f188a00df5
commit 16c087f4ab
2 changed files with 14 additions and 0 deletions

View File

@ -111,6 +111,13 @@ Returns the scene's elevation range
Qgs3DMapSettings *mapSettings() const;
%Docstring
Returns the 3D map settings.
.. versionadded:: 3.30
%End
static QMap< QString, Qgs3DMapScene * > openScenes();
%Docstring
Returns a map of 3D map scenes (by name) open in the QGIS application.

View File

@ -177,6 +177,13 @@ class _3D_EXPORT Qgs3DMapScene : public QObject
*/
QgsAbstract3DEngine *engine() SIP_SKIP { return mEngine; }
/**
* Returns the 3D map settings.
*
* \since QGIS 3.30
*/
Qgs3DMapSettings *mapSettings() const { return &mMap; }
/**
* Returns a map of 3D map scenes (by name) open in the QGIS application.
*