QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgsabstract3dengine.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsabstract3dengine.h
3  --------------------------------------
4  Date : July 2018
5  Copyright : (C) 2018 by Martin Dobias
6  Email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSABSTRACT3DENGINE_H
17 #define QGSABSTRACT3DENGINE_H
18 
19 #include "qgis_3d.h"
20 
21 #include <QObject>
22 
23 #define SIP_NO_FILE
24 
25 class QColor;
26 class QRect;
27 class QSurface;
28 
29 namespace Qt3DCore
30 {
31  class QEntity;
32 }
33 
34 namespace Qt3DRender
35 {
36  class QRenderSettings;
37  class QCamera;
38 }
39 
56 class _3D_EXPORT QgsAbstract3DEngine : public QObject
57 {
58  Q_OBJECT
59  public:
60 
62  virtual void setClearColor( const QColor &color ) = 0;
64  virtual void setFrustumCullingEnabled( bool enabled ) = 0;
66  virtual void setRootEntity( Qt3DCore::QEntity *root ) = 0;
67 
69  virtual Qt3DRender::QRenderSettings *renderSettings() = 0;
71  virtual Qt3DRender::QCamera *camera() = 0;
73  virtual QSize size() const = 0;
74 
80  virtual void requestCaptureImage() = 0;
81 
87  virtual QSurface *surface() const = 0;
88 
89  signals:
91  void imageCaptured( const QImage &image );
92 };
93 
94 
95 #endif // QGSABSTRACT3DENGINE_H
Qt3DCore
Definition: qgsabstract3drenderer.h:30
Qt3DRender
Definition: qgs3dmapscene.h:25
QgsAbstract3DEngine
Definition: qgsabstract3dengine.h:56