|
QGIS API Documentation 4.1.0-Master (26185ffb827)
|
Container class that holds different objects related to frame graphs of 3D scenes. More...
#include <qgsframegraph.h>

Public Member Functions | |
| QgsFrameGraph (QSurface *surface, QSize s, Qt3DRender::QCamera *mainCamera, Qt3DCore::QEntity *root) | |
| Constructor. | |
| void | addClipPlanes (int nrClipPlanes) |
| Setups nrClipPlanes clip planes in the forward pass to enable OpenGL clipping. | |
| void | addGlobalParameters (const QList< Qt3DRender::QParameter * > ¶meters) |
| Adds additional global parameters to the graph. | |
| QgsAmbientOcclusionRenderView & | ambientOcclusionRenderView () |
| Returns ambient occlusion renderview. | |
| QgsBloomRenderView & | bloomRenderView () |
| Returns the bloom render view. | |
| Qt3DRender::QRenderCapture * | depthRenderCapture () |
| Returns the render capture object used to take an image of the depth buffer of the scene. | |
| QgsDepthRenderView & | depthRenderView () |
| Returns depth renderview. | |
| QString | dumpFrameGraph () const |
| Dumps frame graph as string. | |
| QString | dumpSceneGraph () const |
| Dumps scene graph as string. | |
| QgsForwardRenderView & | forwardRenderView () |
| Returns forward renderview. | |
| Qt3DRender::QFrameGraphNode * | frameGraphRoot () |
| Returns the root of the frame graph object. | |
| QgsHighlightsRenderView & | highlightsRenderView () |
| Returns the highlights renderview, used for rendering highlight overlays of identified features. | |
| bool | isRenderViewEnabled (const QString &name) |
| Returns true if the render view named name is found and enabled. | |
| Qt3DRender::QCamera * | mainCamera () |
| Returns the main camera. | |
| bool | msaaEnabled () const |
| Returns whether multisample anti-aliasing (MSAA) is enabled. | |
| QgsOverlayTextureRenderView & | overlayTextureRenderView () |
| Returns overlay texture renderview. | |
| QgsPostprocessingRenderView & | postprocessingRenderView () |
| Returns post processing renderview. | |
| bool | registerRenderView (std::unique_ptr< QgsAbstractRenderView > renderView, const QString &name, Qt3DRender::QFrameGraphNode *topNode=nullptr) |
| Registers a new the render view renderView with name name. | |
| void | removeClipPlanes () |
| Disables OpenGL clipping. | |
| Qt3DRender::QRenderCapture * | renderCapture () |
| Returns the render capture object used to take an image of the scene. | |
| QgsAbstractRenderView * | renderView (const QString &name) |
| Returns the render view named name, if any. | |
| Qt3DCore::QEntity * | rubberBandsRootEntity () |
| Returns entity for all rubber bands (to show them always on top). | |
| void | setClearColor (const QColor &clearColor) |
| Sets the clear color of the scene (background color). | |
| void | setDebugOverlayEnabled (bool enabled) |
| Sets whether debug overlay is enabled. | |
| void | setFrustumCullingEnabled (bool enabled) |
| Sets whether frustum culling is enabled. | |
| void | setMsaaEnabled (bool enabled) |
| Sets whether multisample anti-aliasing (MSAA) is enabled. | |
| void | setRenderCaptureEnabled (bool enabled) |
| Sets whether it will be possible to render to an image. | |
| void | setRenderViewEnabled (const QString &name, bool enable) |
| Enables or disables the render view named name according to enable. | |
| void | setSize (QSize s) |
| Sets the size of the buffers used for rendering. | |
| QgsShadowRenderView & | shadowRenderView () |
| Returns shadow renderview. | |
| void | unregisterRenderView (const QString &name) |
| Unregisters the render view named name, if any. | |
| void | updateAmbientOcclusionSettings (const QgsAmbientOcclusionSettings &settings) |
| Updates settings for ambient occlusion. | |
| void | updateBloomSettings (const QgsBloomSettings &settings) |
| Updates settings for the bloom lighting effect. | |
| void | updateColorGradingSettings (const QgsColorGradingSettings &settings) |
| Updates settings for color grading. | |
| void | updateDebugDepthMapSettings (const Qgs3DMapSettings &settings) |
| Updates settings for depth debug map. | |
| void | updateEyeDomeSettings (const Qgs3DMapSettings &settings) |
| Updates settings for eye dome lighting. | |
| void | updateShadowSettings (const Qgs3DMapSettings &mapSettings) |
| Updates shadow bias, light and texture size according to shadowSettings and lightSources. | |
Static Public Attributes | |
| static const QString | sAmbientOcclusionRenderView = "ambient_occlusion" |
| Ambient occlusion render view name. | |
| static const QString | sAxiS3DRenderView = "3daxis" |
| static const QString | sBloomRenderView = "bloom" |
| static const QString | sDepthRenderView = "depth" |
| static const QString | sForwardRenderView = "forward" |
| static const QString | sHighlightsRenderView = "highlights" |
| static const QString | sOverlayRenderView = "overlay_texture" |
| static const QString | sPostprocRenderView = "post_processing" |
| Postprocessing render view name. | |
| static const QString | sShadowRenderView = "shadow" |
Container class that holds different objects related to frame graphs of 3D scenes.
A frame graph captures configuration of rendering passes when 3D scene gets rendered.
Definition at line 84 of file qgsframegraph.h.
| QgsFrameGraph::QgsFrameGraph | ( | QSurface * | surface, |
| QSize | s, | ||
| Qt3DRender::QCamera * | mainCamera, | ||
| Qt3DCore::QEntity * | root ) |
Constructor.
Definition at line 236 of file qgsframegraph.cpp.
| void QgsFrameGraph::addClipPlanes | ( | int | nrClipPlanes | ) |
Setups nrClipPlanes clip planes in the forward pass to enable OpenGL clipping.
If nrClipPlanes is equal to 0, the clipping is disabled.
Definition at line 626 of file qgsframegraph.cpp.
| void QgsFrameGraph::addGlobalParameters | ( | const QList< Qt3DRender::QParameter * > & | parameters | ) |
Adds additional global parameters to the graph.
Definition at line 228 of file qgsframegraph.cpp.
| QgsAmbientOcclusionRenderView & QgsFrameGraph::ambientOcclusionRenderView | ( | ) |
Returns ambient occlusion renderview.
Definition at line 649 of file qgsframegraph.cpp.
| QgsBloomRenderView & QgsFrameGraph::bloomRenderView | ( | ) |
| Qt3DRender::QRenderCapture * QgsFrameGraph::depthRenderCapture | ( | ) |
Returns the render capture object used to take an image of the depth buffer of the scene.
Definition at line 223 of file qgsframegraph.cpp.
| QgsDepthRenderView & QgsFrameGraph::depthRenderView | ( | ) |
| QString QgsFrameGraph::dumpFrameGraph | ( | ) | const |
Dumps frame graph as string.
Definition at line 515 of file qgsframegraph.cpp.
| QString QgsFrameGraph::dumpSceneGraph | ( | ) | const |
Dumps scene graph as string.
Definition at line 528 of file qgsframegraph.cpp.
| QgsForwardRenderView & QgsFrameGraph::forwardRenderView | ( | ) |
|
inline |
Returns the root of the frame graph object.
Definition at line 93 of file qgsframegraph.h.
| QgsHighlightsRenderView & QgsFrameGraph::highlightsRenderView | ( | ) |
Returns the highlights renderview, used for rendering highlight overlays of identified features.
Definition at line 667 of file qgsframegraph.cpp.
| bool QgsFrameGraph::isRenderViewEnabled | ( | const QString & | name | ) |
Returns true if the render view named name is found and enabled.
Definition at line 381 of file qgsframegraph.cpp.
|
inline |
Returns the main camera.
Definition at line 96 of file qgsframegraph.h.
|
inline |
Returns whether multisample anti-aliasing (MSAA) is enabled.
Definition at line 141 of file qgsframegraph.h.
| QgsOverlayTextureRenderView & QgsFrameGraph::overlayTextureRenderView | ( | ) |
| QgsPostprocessingRenderView & QgsFrameGraph::postprocessingRenderView | ( | ) |
| bool QgsFrameGraph::registerRenderView | ( | std::unique_ptr< QgsAbstractRenderView > | renderView, |
| const QString & | name, | ||
| Qt3DRender::QFrameGraphNode * | topNode = nullptr ) |
Registers a new the render view renderView with name name.
topNode is where the new renderview will be attached to. If nullptr then it will be attached to the main viewport. Will take ownership of the renderView.
Definition at line 348 of file qgsframegraph.cpp.
| void QgsFrameGraph::removeClipPlanes | ( | ) |
Disables OpenGL clipping.
Definition at line 621 of file qgsframegraph.cpp.
| Qt3DRender::QRenderCapture * QgsFrameGraph::renderCapture | ( | ) |
Returns the render capture object used to take an image of the scene.
Definition at line 564 of file qgsframegraph.cpp.
| QgsAbstractRenderView * QgsFrameGraph::renderView | ( | const QString & | name | ) |
Returns the render view named name, if any.
Definition at line 372 of file qgsframegraph.cpp.
|
inline |
Returns entity for all rubber bands (to show them always on top).
Definition at line 99 of file qgsframegraph.h.
| void QgsFrameGraph::setClearColor | ( | const QColor & | clearColor | ) |
Sets the clear color of the scene (background color).
Definition at line 534 of file qgsframegraph.cpp.
| void QgsFrameGraph::setDebugOverlayEnabled | ( | bool | enabled | ) |
Sets whether debug overlay is enabled.
Definition at line 574 of file qgsframegraph.cpp.
| void QgsFrameGraph::setFrustumCullingEnabled | ( | bool | enabled | ) |
Sets whether frustum culling is enabled.
Definition at line 539 of file qgsframegraph.cpp.
| void QgsFrameGraph::setMsaaEnabled | ( | bool | enabled | ) |
Sets whether multisample anti-aliasing (MSAA) is enabled.
Definition at line 579 of file qgsframegraph.cpp.
| void QgsFrameGraph::setRenderCaptureEnabled | ( | bool | enabled | ) |
Sets whether it will be possible to render to an image.
Definition at line 569 of file qgsframegraph.cpp.
| void QgsFrameGraph::setRenderViewEnabled | ( | const QString & | name, |
| bool | enable ) |
Enables or disables the render view named name according to enable.
Definition at line 364 of file qgsframegraph.cpp.
| void QgsFrameGraph::setSize | ( | QSize | s | ) |
Sets the size of the buffers used for rendering.
Definition at line 544 of file qgsframegraph.cpp.
| QgsShadowRenderView & QgsFrameGraph::shadowRenderView | ( | ) |
| void QgsFrameGraph::unregisterRenderView | ( | const QString & | name | ) |
Unregisters the render view named name, if any.
Definition at line 339 of file qgsframegraph.cpp.
| void QgsFrameGraph::updateAmbientOcclusionSettings | ( | const QgsAmbientOcclusionSettings & | settings | ) |
Updates settings for ambient occlusion.
Definition at line 386 of file qgsframegraph.cpp.
| void QgsFrameGraph::updateBloomSettings | ( | const QgsBloomSettings & | settings | ) |
Updates settings for the bloom lighting effect.
Definition at line 404 of file qgsframegraph.cpp.
| void QgsFrameGraph::updateColorGradingSettings | ( | const QgsColorGradingSettings & | settings | ) |
| void QgsFrameGraph::updateDebugDepthMapSettings | ( | const Qgs3DMapSettings & | settings | ) |
Updates settings for depth debug map.
Definition at line 490 of file qgsframegraph.cpp.
| void QgsFrameGraph::updateEyeDomeSettings | ( | const Qgs3DMapSettings & | settings | ) |
Updates settings for eye dome lighting.
Definition at line 398 of file qgsframegraph.cpp.
| void QgsFrameGraph::updateShadowSettings | ( | const Qgs3DMapSettings & | mapSettings | ) |
Updates shadow bias, light and texture size according to shadowSettings and lightSources.
Definition at line 420 of file qgsframegraph.cpp.
|
static |
Ambient occlusion render view name.
Definition at line 290 of file qgsframegraph.h.
|
static |
Definition at line 286 of file qgsframegraph.h.
|
static |
Definition at line 291 of file qgsframegraph.h.
|
static |
Definition at line 287 of file qgsframegraph.h.
|
static |
Definition at line 284 of file qgsframegraph.h.
|
static |
Definition at line 294 of file qgsframegraph.h.
|
static |
Definition at line 288 of file qgsframegraph.h.
|
static |
Postprocessing render view name.
Definition at line 293 of file qgsframegraph.h.
|
static |
Definition at line 285 of file qgsframegraph.h.