mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
104 lines
2.8 KiB
Plaintext
104 lines
2.8 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/3d/qgs3dmapcanvas.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Qgs3DMapCanvas : QWindow
|
|
{
|
|
%Docstring(signature="appended")
|
|
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.
|
|
|
|
.. versionadded:: 3.36
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgs3dmapcanvas.h"
|
|
%End
|
|
public:
|
|
Qgs3DMapCanvas();
|
|
~Qgs3DMapCanvas();
|
|
|
|
Qgs3DMapSettings *mapSettings();
|
|
%Docstring
|
|
Returns access to the 3D scene configuration
|
|
%End
|
|
|
|
Qgs3DMapScene *scene();
|
|
%Docstring
|
|
Returns access to the 3D scene (root 3D entity)
|
|
%End
|
|
|
|
QgsCameraController *cameraController();
|
|
%Docstring
|
|
Returns access to the view's camera controller. Returns ``None`` if the
|
|
scene has not been initialized yet with
|
|
:py:func:`~Qgs3DMapCanvas.setMapSettings`
|
|
%End
|
|
|
|
void setMapTool( Qgs3DMapTool *tool );
|
|
%Docstring
|
|
Sets the active map ``tool`` that will receive events from the 3D
|
|
canvas. Does not transfer ownership. If the tool is ``None``, events
|
|
will be used for camera manipulation.
|
|
|
|
.. versionadded:: 4.0
|
|
%End
|
|
|
|
Qgs3DMapTool *mapTool() const;
|
|
%Docstring
|
|
Returns the active map tool that will receive events from the 3D canvas.
|
|
If the tool is ``None``, events will be used for camera manipulation.
|
|
|
|
.. versionadded:: 4.0
|
|
%End
|
|
|
|
|
|
protected:
|
|
virtual void showEvent( QShowEvent *e );
|
|
|
|
%Docstring
|
|
Manages the display events specified in e.
|
|
%End
|
|
|
|
virtual void resizeEvent( QResizeEvent * );
|
|
|
|
%Docstring
|
|
Resets the aspect ratio of the 3D window.
|
|
%End
|
|
|
|
virtual bool eventFilter( QObject *watched, QEvent *event );
|
|
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/3d/qgs3dmapcanvas.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|