Class: Qgs3DMapCanvas¶
Convenience wrapper to simplify the creation of a 3D window ready to be used with QGIS.
Note
This is a port of qtwindow3d which does not set the default surface when initialized.
Note
The default surface must be set before the construction of the QApplication when using shared OpenGL context.
Note
This is required in order to use QT3d and QtWebEngine at the same time.
Added in version 3.36.
Class Hierarchy¶
Base classes¶
Methods
Returns access to the view's camera controller. |
|
Returns access to the 3D scene configuration |
|
Returns access to the 3D scene (root 3D entity) |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of Qgs3DMapCanvas. See the FAQ for more details.
Resets the aspect ratio of the 3D window. |
|
Manages the display events specified in e. |
- class qgis._3d.Qgs3DMapCanvas[source]¶
Bases:
QWindow
- cameraController(self) QgsCameraController | None [source]¶
Returns access to the view’s camera controller. Returns
None
if the scene has not been initialized yet withsetMapSettings()
- Return type:
Optional[QgsCameraController]
- mapSettings(self) Qgs3DMapSettings | None [source]¶
Returns access to the 3D scene configuration
- Return type:
Optional[Qgs3DMapSettings]
- virtual resizeEvent(self, a0: QResizeEvent | None)[source]¶
Resets the aspect ratio of the 3D window.
- Parameters:
a0 (Optional[QResizeEvent])
- scene(self) Qgs3DMapScene | None [source]¶
Returns access to the 3D scene (root 3D entity)
- Return type:
Optional[Qgs3DMapScene]