QGIS API Documentation 3.99.0-Master (e59a7c0ab9f)
|
Container class that holds different objects related to ambient occlusion rendering. More...
#include <qgsambientocclusionrenderview.h>
Public Member Functions | |
QgsAmbientOcclusionRenderView (const QString &viewName, Qt3DRender::QCamera *mainCamera, QSize mSize, Qt3DRender::QTexture2D *forwardDepthTexture, Qt3DCore::QEntity *rootSceneEntity) | |
Default constructor. | |
Qt3DRender::QTexture2D * | blurredFactorMapTexture () const |
Returns blur pass texture. | |
virtual void | setEnabled (bool enable) override |
Enable or disable via enable the render view sub tree. | |
void | setIntensity (float intensity) |
Delegates to QgsAmbientOcclusionRenderEntity::setIntensity. | |
void | setRadius (float radius) |
Delegates to QgsAmbientOcclusionRenderEntity::setRadius. | |
void | setThreshold (float threshold) |
Delegates to QgsAmbientOcclusionRenderEntity::setThreshold. | |
virtual void | updateWindowResize (int width, int height) override |
Called when 3D window is resized. | |
![]() | |
QgsAbstractRenderView (const QgsAbstractRenderView &other)=delete | |
Disabled copy constructor. | |
QgsAbstractRenderView (const QString &viewName) | |
Constructor for QgsAbstractRenderView with the specified parent object. | |
virtual | ~QgsAbstractRenderView () |
Default destructor. | |
virtual bool | isEnabled () const |
Returns true if render view is enabled. | |
QgsAbstractRenderView & | operator= (const QgsAbstractRenderView &other)=delete |
Disabled operator=. | |
QPointer< Qt3DRender::QFrameGraphNode > | topGraphNode () const |
Returns the top node of this render view branch. Will be used to register the render view. | |
Additional Inherited Members | |
![]() | |
Qt3DRender::QSubtreeEnabler * | mRendererEnabler = nullptr |
QPointer< Qt3DRender::QFrameGraphNode > | mRoot |
QString | mViewName |
Container class that holds different objects related to ambient occlusion rendering.
This renderview create 2 passes with their own entity:
Definition at line 56 of file qgsambientocclusionrenderview.h.
QgsAmbientOcclusionRenderView::QgsAmbientOcclusionRenderView | ( | const QString & | viewName, |
Qt3DRender::QCamera * | mainCamera, | ||
QSize | mSize, | ||
Qt3DRender::QTexture2D * | forwardDepthTexture, | ||
Qt3DCore::QEntity * | rootSceneEntity | ||
) |
Default constructor.
Definition at line 33 of file qgsambientocclusionrenderview.cpp.
Qt3DRender::QTexture2D * QgsAmbientOcclusionRenderView::blurredFactorMapTexture | ( | ) | const |
Returns blur pass texture.
Definition at line 167 of file qgsambientocclusionrenderview.cpp.
|
overridevirtual |
Enable or disable via enable the render view sub tree.
Reimplemented from QgsAbstractRenderView.
Definition at line 54 of file qgsambientocclusionrenderview.cpp.
void QgsAmbientOcclusionRenderView::setIntensity | ( | float | intensity | ) |
Delegates to QgsAmbientOcclusionRenderEntity::setIntensity.
Definition at line 152 of file qgsambientocclusionrenderview.cpp.
void QgsAmbientOcclusionRenderView::setRadius | ( | float | radius | ) |
Delegates to QgsAmbientOcclusionRenderEntity::setRadius.
Definition at line 157 of file qgsambientocclusionrenderview.cpp.
void QgsAmbientOcclusionRenderView::setThreshold | ( | float | threshold | ) |
Delegates to QgsAmbientOcclusionRenderEntity::setThreshold.
Definition at line 162 of file qgsambientocclusionrenderview.cpp.
|
overridevirtual |
Called when 3D window is resized.
Render views may update their textures accordingly. Default implementation does nothing.
Reimplemented from QgsAbstractRenderView.
Definition at line 48 of file qgsambientocclusionrenderview.cpp.