QGIS API Documentation  3.2.0-Bonn (bc43194)
Signals | Public Member Functions | List of all members
Qgs3DMapScene Class Reference

3 Entity that encapsulates our 3D scene - contains all other entities (such as terrain) as children. More...

#include <qgs3dmapscene.h>

Inheritance diagram for Qgs3DMapScene:
Inheritance graph
[legend]

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...
 
QgsCameraControllercameraController ()
 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...
 

Detailed Description

3 Entity that encapsulates our 3D scene - contains all other entities (such as terrain) as children.

Since
QGIS 3.0

Definition at line 50 of file qgs3dmapscene.h.

Constructor & Destructor Documentation

◆ Qgs3DMapScene()

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.

Member Function Documentation

◆ cameraController()

QgsCameraController* Qgs3DMapScene::cameraController ( )
inline

Returns camera controller.

Definition at line 58 of file qgs3dmapscene.h.

◆ terrainEntity()

QgsTerrainEntity* Qgs3DMapScene::terrainEntity ( )
inline

Returns terrain entity.

Definition at line 60 of file qgs3dmapscene.h.

◆ terrainEntityChanged

void Qgs3DMapScene::terrainEntityChanged ( )
signal

Emitted when the current terrain entity is replaced by a new one.

◆ terrainPendingJobsCount()

int Qgs3DMapScene::terrainPendingJobsCount ( ) const

Returns number of pending jobs of the terrain entity.

Definition at line 170 of file qgs3dmapscene.cpp.

◆ terrainPendingJobsCountChanged

void Qgs3DMapScene::terrainPendingJobsCountChanged ( )
signal

Emitted when the number of terrain's pending jobs changes.

◆ viewZoomFull()

void Qgs3DMapScene::viewZoomFull ( )

Resets camera view to show the whole scene (top view)

Definition at line 163 of file qgs3dmapscene.cpp.


The documentation for this class was generated from the following files: