<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Martin,</p>
<p>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?<br>
</p>
<p>There are no interfaces for accessing existing 3D map views
either so far, correct?<br>
</p>
<p>Thanks,<br>
Hannes</p>
<div class="moz-cite-prefix">Am 14.11.22 um 21:55 schrieb Martin
Dobias:<br>
</div>
<blockquote type="cite"
cite="mid:CAC2XbFd2UR8_d40QCYWJbGMdQWD-r-q6cU0BYWp3dW1FvTAjLQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi Johannes</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Regards</div>
<div>Martin</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Nov 14, 2022 at 2:53
PM Johannes Kröger (WhereGroup) via QGIS-Developer <<a
href="mailto:qgis-developer@lists.osgeo.org"
moz-do-not-send="true" class="moz-txt-link-freetext">qgis-developer@lists.osgeo.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Howdy!</p>
<p>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 :)</p>
<p> </p>
<p><a
href="https://github.com/qgis/QGIS/blob/master/src/app/3d/qgs3dviewsmanagerdialog.cpp"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://github.com/qgis/QGIS/blob/master/src/app/3d/qgs3dviewsmanagerdialog.cpp</a>
shows some handling of those views and the
QgsMapViewsManager.</p>
<p>In that, <a
href="https://github.com/qgis/QGIS/blob/master/src/app/qgisapp.cpp"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://github.com/qgis/QGIS/blob/master/src/app/qgisapp.cpp</a>
is used as it provides various methods around this, e. g.
<span>open3DMapView, </span><span>close3DMapView, </span><span>duplicate3DMapView</span><span></span>,
...</p>
<p><a
href="https://qgis.org/pyqgis/master/gui/QgisInterface.html#qgis.gui.QgisInterface.mainWindow"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://qgis.org/pyqgis/master/gui/QgisInterface.html#qgis.gui.QgisInterface.mainWindow</a>
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.</p>
<p>Is there any way to control and manage 3D map views from
Python?</p>
<p>Cheers, Hannes<br>
</p>
<pre cols="72">--
Johannes Kröger / GIS-Entwickler/-Berater
---------------------------------------------
Where2B Konferenz 2022
15. Dezember 2022 in Bonn und Online
<a href="https://where2b-conference.com/" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://where2b-conference.com/</a>
---------------------------------------------
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany
Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11
<a href="mailto:johannes.kroeger@wheregroup.com" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">johannes.kroeger@wheregroup.com</a>
<a href="http://www.wheregroup.com" target="_blank" moz-do-not-send="true">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
</pre>
</div>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a
href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Johannes Kröger / GIS-Entwickler/-Berater
---------------------------------------------
Where2B Konferenz 2022
15. Dezember 2022 in Bonn und Online
<a class="moz-txt-link-freetext" href="https://where2b-conference.com/">https://where2b-conference.com/</a>
---------------------------------------------
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany
Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11
<a class="moz-txt-link-abbreviated" href="mailto:johannes.kroeger@wheregroup.com">johannes.kroeger@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
</pre>
</body>
</html>