QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | List of all members
QgsShadowRenderingFrameGraph Class Reference

3 Container class that holds different objects related to shadow rendering More...

#include <qgsshadowrenderingframegraph.h>

Public Member Functions

 QgsShadowRenderingFrameGraph (QWindow *window, Qt3DRender::QCamera *mainCamera, Qt3DCore::QEntity *root)
 Constructor. More...
 
void addTexturePreviewOverlay (Qt3DRender::QTexture2D *texture, const QPointF &centerNDC, const QSizeF &size, QVector< Qt3DRender::QParameter * > additionalShaderParameters=QVector< Qt3DRender::QParameter * >())
 Adds an preview entity that shows a texture in real time for debugging purposes. More...
 
Qt3DRender::QLayer * castShadowsLayer ()
 Returns a layer object used to indicate that an entity will cast shadows. More...
 
Qt3DRender::QTexture2D * forwardRenderColorTexture ()
 Returns the color texture of the forward rendering pass. More...
 
Qt3DRender::QTexture2D * forwardRenderDepthTexture ()
 Returns the depth texture of the forward rendering pass. More...
 
Qt3DRender::QLayer * forwardRenderLayer ()
 Returns a layer object used to indicate that an entity will be rendered during the forward rendering pass. More...
 
bool frustumCullingEnabled () const
 Returns whether frustum culling is enabled. More...
 
Qt3DRender::QFrameGraphNode * getFrameGraphRoot ()
 Returns the root of the frame graph object. More...
 
Qt3DRender::QCamera * lightCamera ()
 Returns the light camera. More...
 
Qt3DRender::QCamera * mainCamera ()
 Returns the main camera. More...
 
QgsPostprocessingEntitypostprocessingEntity ()
 Returns the postprocessing entity. More...
 
Qt3DRender::QLayer * postprocessingPassLayer ()
 Returns a layer object used to indicate that an entity is to be rendered during the post processing rendering pass. More...
 
Qt3DRender::QLayer * previewLayer ()
 Returns a layer object used to indicate that an entity is to be rendered during the preview textures rendering pass. More...
 
Qt3DRender::QRenderCapture * renderCapture ()
 Returns the render capture object used to take an image of the scene. More...
 
Qt3DCore::QEntity * rootEntity ()
 Returns the root entity of the entities related to the frame graph (like the post processing entity and preview entity) More...
 
void setClearColor (const QColor &clearColor)
 Sets the clear color of the scene (background color) More...
 
void setFrustumCullingEnabled (bool enabled)
 Sets whether frustum culling is enabled. More...
 
void setShadowBias (float shadowBias)
 Sets the shadow bias value. More...
 
void setShadowMapResolution (int resolution)
 Sets the resolution of the shadow map. More...
 
void setShadowRenderingEnabled (bool enabled)
 Sets whether the shadow rendering is enabled. More...
 
void setupDirectionalLight (const QgsDirectionalLightSettings &light, float maximumShadowRenderingDistance)
 Sets shadow rendering to use a directional light. More...
 
float shadowBias () const
 Returns the shadow bias value. More...
 
int shadowMapResolution () const
 Returns the shadow map resolution. More...
 
Qt3DRender::QTexture2D * shadowMapTexture ()
 Returns the shadow map (a depth texture for the shadow rendering pass) More...
 
bool shadowRenderingEnabled () const
 Returns whether shadow rendering is enabled. More...
 

Detailed Description

3 Container class that holds different objects related to shadow rendering

Note
Not available in Python bindings
Since
QGIS 3.16

Definition at line 56 of file qgsshadowrenderingframegraph.h.

Constructor & Destructor Documentation

◆ QgsShadowRenderingFrameGraph()

QgsShadowRenderingFrameGraph::QgsShadowRenderingFrameGraph ( QWindow *  window,
Qt3DRender::QCamera *  mainCamera,
Qt3DCore::QEntity *  root 
)

Constructor.

Definition at line 146 of file qgsshadowrenderingframegraph.cpp.

Member Function Documentation

◆ addTexturePreviewOverlay()

void QgsShadowRenderingFrameGraph::addTexturePreviewOverlay ( Qt3DRender::QTexture2D *  texture,
const QPointF &  centerNDC,
const QSizeF &  size,
QVector< Qt3DRender::QParameter * >  additionalShaderParameters = QVector<Qt3DRender::QParameter *>() 
)

Adds an preview entity that shows a texture in real time for debugging purposes.

Definition at line 197 of file qgsshadowrenderingframegraph.cpp.

◆ castShadowsLayer()

Qt3DRender::QLayer* QgsShadowRenderingFrameGraph::castShadowsLayer ( )
inline

Returns a layer object used to indicate that an entity will cast shadows.

Definition at line 77 of file qgsshadowrenderingframegraph.h.

◆ forwardRenderColorTexture()

Qt3DRender::QTexture2D* QgsShadowRenderingFrameGraph::forwardRenderColorTexture ( )
inline

Returns the color texture of the forward rendering pass.

Definition at line 66 of file qgsshadowrenderingframegraph.h.

◆ forwardRenderDepthTexture()

Qt3DRender::QTexture2D* QgsShadowRenderingFrameGraph::forwardRenderDepthTexture ( )
inline

Returns the depth texture of the forward rendering pass.

Definition at line 68 of file qgsshadowrenderingframegraph.h.

◆ forwardRenderLayer()

Qt3DRender::QLayer* QgsShadowRenderingFrameGraph::forwardRenderLayer ( )
inline

Returns a layer object used to indicate that an entity will be rendered during the forward rendering pass.

Definition at line 79 of file qgsshadowrenderingframegraph.h.

◆ frustumCullingEnabled()

bool QgsShadowRenderingFrameGraph::frustumCullingEnabled ( ) const
inline

Returns whether frustum culling is enabled.

Definition at line 94 of file qgsshadowrenderingframegraph.h.

◆ getFrameGraphRoot()

Qt3DRender::QFrameGraphNode* QgsShadowRenderingFrameGraph::getFrameGraphRoot ( )
inline

Returns the root of the frame graph object.

Definition at line 63 of file qgsshadowrenderingframegraph.h.

◆ lightCamera()

Qt3DRender::QCamera* QgsShadowRenderingFrameGraph::lightCamera ( )
inline

Returns the light camera.

Definition at line 84 of file qgsshadowrenderingframegraph.h.

◆ mainCamera()

Qt3DRender::QCamera* QgsShadowRenderingFrameGraph::mainCamera ( )
inline

Returns the main camera.

Definition at line 82 of file qgsshadowrenderingframegraph.h.

◆ postprocessingEntity()

QgsPostprocessingEntity* QgsShadowRenderingFrameGraph::postprocessingEntity ( )
inline

Returns the postprocessing entity.

Definition at line 86 of file qgsshadowrenderingframegraph.h.

◆ postprocessingPassLayer()

Qt3DRender::QLayer* QgsShadowRenderingFrameGraph::postprocessingPassLayer ( )
inline

Returns a layer object used to indicate that an entity is to be rendered during the post processing rendering pass.

Definition at line 73 of file qgsshadowrenderingframegraph.h.

◆ previewLayer()

Qt3DRender::QLayer* QgsShadowRenderingFrameGraph::previewLayer ( )
inline

Returns a layer object used to indicate that an entity is to be rendered during the preview textures rendering pass.

Definition at line 75 of file qgsshadowrenderingframegraph.h.

◆ renderCapture()

Qt3DRender::QRenderCapture* QgsShadowRenderingFrameGraph::renderCapture ( )
inline

Returns the render capture object used to take an image of the scene.

Definition at line 91 of file qgsshadowrenderingframegraph.h.

◆ rootEntity()

Qt3DCore::QEntity* QgsShadowRenderingFrameGraph::rootEntity ( )
inline

Returns the root entity of the entities related to the frame graph (like the post processing entity and preview entity)

Definition at line 88 of file qgsshadowrenderingframegraph.h.

◆ setClearColor()

void QgsShadowRenderingFrameGraph::setClearColor ( const QColor &  clearColor)

Sets the clear color of the scene (background color)

Definition at line 306 of file qgsshadowrenderingframegraph.cpp.

◆ setFrustumCullingEnabled()

void QgsShadowRenderingFrameGraph::setFrustumCullingEnabled ( bool  enabled)

Sets whether frustum culling is enabled.

Definition at line 334 of file qgsshadowrenderingframegraph.cpp.

◆ setShadowBias()

void QgsShadowRenderingFrameGraph::setShadowBias ( float  shadowBias)

Sets the shadow bias value.

Definition at line 321 of file qgsshadowrenderingframegraph.cpp.

◆ setShadowMapResolution()

void QgsShadowRenderingFrameGraph::setShadowMapResolution ( int  resolution)

Sets the resolution of the shadow map.

Definition at line 327 of file qgsshadowrenderingframegraph.cpp.

◆ setShadowRenderingEnabled()

void QgsShadowRenderingFrameGraph::setShadowRenderingEnabled ( bool  enabled)

Sets whether the shadow rendering is enabled.

Definition at line 311 of file qgsshadowrenderingframegraph.cpp.

◆ setupDirectionalLight()

void QgsShadowRenderingFrameGraph::setupDirectionalLight ( const QgsDirectionalLightSettings light,
float  maximumShadowRenderingDistance 
)

Sets shadow rendering to use a directional light.

Definition at line 279 of file qgsshadowrenderingframegraph.cpp.

◆ shadowBias()

float QgsShadowRenderingFrameGraph::shadowBias ( ) const
inline

Returns the shadow bias value.

Definition at line 104 of file qgsshadowrenderingframegraph.h.

◆ shadowMapResolution()

int QgsShadowRenderingFrameGraph::shadowMapResolution ( ) const
inline

Returns the shadow map resolution.

Definition at line 109 of file qgsshadowrenderingframegraph.h.

◆ shadowMapTexture()

Qt3DRender::QTexture2D* QgsShadowRenderingFrameGraph::shadowMapTexture ( )
inline

Returns the shadow map (a depth texture for the shadow rendering pass)

Definition at line 70 of file qgsshadowrenderingframegraph.h.

◆ shadowRenderingEnabled()

bool QgsShadowRenderingFrameGraph::shadowRenderingEnabled ( ) const
inline

Returns whether shadow rendering is enabled.

Definition at line 99 of file qgsshadowrenderingframegraph.h.


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