QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsTiledSceneRenderContext Class Reference

Encapsulates the render context for a 2D tiled scene rendering operation. More...

#include <qgstiledscenerenderer.h>

Public Member Functions

 QgsTiledSceneRenderContext (const QgsTiledSceneRenderContext &rh)=delete
 
 QgsTiledSceneRenderContext (QgsRenderContext &context, QgsFeedback *feedback=nullptr)
 Constructor for QgsTiledSceneRenderContext.
 
QgsFeedbackfeedback () const
 Returns the feedback object used to cancel rendering.
 
QgsTiledSceneRenderContextoperator= (const QgsTiledSceneRenderContext &)=delete
 
QgsRenderContextrenderContext ()
 Returns a reference to the context's render context.
 
const QgsRenderContextrenderContext () const
 Returns a reference to the context's render context.
 
void setTextureCoordinates (float textureX1, float textureY1, float textureX2, float textureY2, float textureX3, float textureY3)
 Sets the current texture coordinates.
 
void setTextureImage (const QImage &image)
 Sets the current texture image.
 
void textureCoordinates (float &textureX1, float &textureY1, float &textureX2, float &textureY2, float &textureX3, float &textureY3) const
 Returns the current texture coordinates.
 
QImage textureImage () const
 Returns the current texture image.
 

Detailed Description

Encapsulates the render context for a 2D tiled scene rendering operation.

Since
QGIS 3.34

Definition at line 37 of file qgstiledscenerenderer.h.

Constructor & Destructor Documentation

◆ QgsTiledSceneRenderContext() [1/2]

QgsTiledSceneRenderContext::QgsTiledSceneRenderContext ( QgsRenderContext context,
QgsFeedback feedback = nullptr 
)

Constructor for QgsTiledSceneRenderContext.

Definition at line 29 of file qgstiledscenerenderer.cpp.

◆ QgsTiledSceneRenderContext() [2/2]

QgsTiledSceneRenderContext::QgsTiledSceneRenderContext ( const QgsTiledSceneRenderContext rh)
delete

Member Function Documentation

◆ feedback()

QgsFeedback * QgsTiledSceneRenderContext::feedback ( ) const
inline

Returns the feedback object used to cancel rendering.

Since
QGIS 3.20

Definition at line 65 of file qgstiledscenerenderer.h.

◆ operator=()

QgsTiledSceneRenderContext & QgsTiledSceneRenderContext::operator= ( const QgsTiledSceneRenderContext )
delete

◆ renderContext() [1/2]

QgsRenderContext & QgsTiledSceneRenderContext::renderContext ( )
inline

Returns a reference to the context's render context.

Definition at line 52 of file qgstiledscenerenderer.h.

◆ renderContext() [2/2]

const QgsRenderContext & QgsTiledSceneRenderContext::renderContext ( ) const
inline

Returns a reference to the context's render context.

Note
Not available in Python bindings.

Definition at line 58 of file qgstiledscenerenderer.h.

◆ setTextureCoordinates()

void QgsTiledSceneRenderContext::setTextureCoordinates ( float  textureX1,
float  textureY1,
float  textureX2,
float  textureY2,
float  textureX3,
float  textureY3 
)

Sets the current texture coordinates.

See also
textureCoordinates()

Definition at line 46 of file qgstiledscenerenderer.cpp.

◆ setTextureImage()

void QgsTiledSceneRenderContext::setTextureImage ( const QImage &  image)

Sets the current texture image.

See also
textureImage()

Definition at line 41 of file qgstiledscenerenderer.cpp.

◆ textureCoordinates()

void QgsTiledSceneRenderContext::textureCoordinates ( float &  textureX1,
float &  textureY1,
float &  textureX2,
float &  textureY2,
float &  textureX3,
float &  textureY3 
) const

Returns the current texture coordinates.

See also
setTextureCoordinates()

Definition at line 56 of file qgstiledscenerenderer.cpp.

◆ textureImage()

QImage QgsTiledSceneRenderContext::textureImage ( ) const

Returns the current texture image.

See also
setTextureImage()

Definition at line 36 of file qgstiledscenerenderer.cpp.


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