QGIS API Documentation
3.2.0-Bonn (bc43194)
|
3 Entity that encapsulates our 3D scene - contains all other entities (such as terrain) as children. More...
#include <qgs3dmapscene.h>
Signals | |
void | terrainEntityChanged () |
Emitted when the current terrain entity is replaced by a new one. More... | |
void | terrainPendingJobsCountChanged () |
Emitted when the number of terrain's pending jobs changes. More... | |
Public Member Functions | |
Qgs3DMapScene (const Qgs3DMapSettings &map, Qt3DExtras::QForwardRenderer *defaultFrameGraph, Qt3DRender::QRenderSettings *renderSettings, Qt3DRender::QCamera *camera, const QRect &viewportRect, Qt3DCore::QNode *parent=nullptr) | |
Constructs a 3D scene based on map settings and Qt 3D renderer configuration. More... | |
QgsCameraController * | cameraController () |
Returns camera controller. More... | |
QgsTerrainEntity * | terrainEntity () |
Returns terrain entity. More... | |
int | terrainPendingJobsCount () const |
Returns number of pending jobs of the terrain entity. More... | |
void | viewZoomFull () |
Resets camera view to show the whole scene (top view) More... | |
3 Entity that encapsulates our 3D scene - contains all other entities (such as terrain) as children.
Definition at line 50 of file qgs3dmapscene.h.
Qgs3DMapScene::Qgs3DMapScene | ( | const Qgs3DMapSettings & | map, |
Qt3DExtras::QForwardRenderer * | defaultFrameGraph, | ||
Qt3DRender::QRenderSettings * | renderSettings, | ||
Qt3DRender::QCamera * | camera, | ||
const QRect & | viewportRect, | ||
Qt3DCore::QNode * | parent = nullptr |
||
) |
Constructs a 3D scene based on map settings and Qt 3D renderer configuration.
Definition at line 43 of file qgs3dmapscene.cpp.
|
inline |
Returns camera controller.
Definition at line 58 of file qgs3dmapscene.h.
|
inline |
Returns terrain entity.
Definition at line 60 of file qgs3dmapscene.h.
|
signal |
Emitted when the current terrain entity is replaced by a new one.
int Qgs3DMapScene::terrainPendingJobsCount | ( | ) | const |
Returns number of pending jobs of the terrain entity.
Definition at line 170 of file qgs3dmapscene.cpp.
|
signal |
Emitted when the number of terrain's pending jobs changes.
void Qgs3DMapScene::viewZoomFull | ( | ) |
Resets camera view to show the whole scene (top view)
Definition at line 163 of file qgs3dmapscene.cpp.