[QGIS-Developer] Opening, closing and removing 3D Map Views from Python?
Johannes Kröger (WhereGroup)
johannes.kroeger at wheregroup.com
Tue Nov 15 04:31:31 PST 2022
Hi Martin,
thanks for your quick answer :) Dang, that's a shame but totally
understandable at the current stage. Can't wait for being able to have
scripting fun with it all! Is this on a roadmap or not planned so far?
There are no interfaces for accessing existing 3D map views either so
far, correct?
Thanks,
Hannes
Am 14.11.22 um 21:55 schrieb Martin Dobias:
> Hi Johannes
>
> Currently those methods are not exposed. It is not straightforward to
> expose them, because classes like Qgs3DMapCanvasWidget are only part
> of the QGIS application, not one of the QGIS libraries.
>
> Regards
> Martin
>
>
> On Mon, Nov 14, 2022 at 2:53 PM Johannes Kröger (WhereGroup) via
> QGIS-Developer <qgis-developer at lists.osgeo.org> wrote:
>
> Howdy!
>
> I've been looking around to see if we can open, close and remove
> 3D map views from Python code and I ended up not sure if or how :)
>
> https://github.com/qgis/QGIS/blob/master/src/app/3d/qgs3dviewsmanagerdialog.cpp
> shows some handling of those views and the QgsMapViewsManager.
>
> In that,
> https://github.com/qgis/QGIS/blob/master/src/app/qgisapp.cpp is
> used as it provides various methods around this, e. g.
> open3DMapView, close3DMapView, duplicate3DMapView, ...
>
> https://qgis.org/pyqgis/master/gui/QgisInterface.html#qgis.gui.QgisInterface.mainWindow
> says that iface.mainWindow() "Returns a pointer to the main window
> (instance of QgisApp in case of QGIS)". It returns a QMainWindow
> though and the *3DMapView methods are nowhere to be found.
>
> Is there any way to control and manage 3D map views from Python?
>
> Cheers, Hannes
>
> --
> Johannes Kröger / GIS-Entwickler/-Berater
>
> ---------------------------------------------
> Where2B Konferenz 2022
> 15. Dezember 2022 in Bonn und Online
> https://where2b-conference.com/
> ---------------------------------------------
>
> WhereGroup GmbH
> Grevenweg 89
> 20537 Hamburg
> Germany
>
> Tel: +49 (0)228 / 90 90 38 - 36
> Fax: +49 (0)228 / 90 90 38 - 11
>
> johannes.kroeger at wheregroup.com
> www.wheregroup.com <http://www.wheregroup.com>
> Geschäftsführer:
> Olaf Knopp, Peter Stamm
> Amtsgericht Bonn, HRB 9885
> -------------------------------
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
--
Johannes Kröger / GIS-Entwickler/-Berater
---------------------------------------------
Where2B Konferenz 2022
15. Dezember 2022 in Bonn und Online
https://where2b-conference.com/
---------------------------------------------
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany
Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11
johannes.kroeger at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221115/ba9d1043/attachment.htm>
More information about the QGIS-Developer
mailing list