mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			84 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
		
			2.3 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")
 | 
						|
Qgs3DMapCanvas is a 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
 | 
						|
 | 
						|
 | 
						|
  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   *
 | 
						|
 ************************************************************************/
 |