QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Member Functions | List of all members
QgsImageTexture Class Reference

Holds an image that can be used as a texture in the 3D view. More...

#include <qgsimagetexture.h>

Inheritance diagram for QgsImageTexture:
Inheritance graph
[legend]

Public Member Functions

 QgsImageTexture (const QImage &image, Qt3DCore::QNode *parent=nullptr)
 Constructor. More...
 
QImage getImage () const
 Returns the image. More...
 
void paint (QPainter *painter) override
 paints on the current QImage using painter More...
 

Detailed Description

Holds an image that can be used as a texture in the 3D view.

Note
Not available in Python bindings

3

Since
QGIS 3.16

Definition at line 36 of file qgsimagetexture.h.

Constructor & Destructor Documentation

◆ QgsImageTexture()

QgsImageTexture::QgsImageTexture ( const QImage &  image,
Qt3DCore::QNode *  parent = nullptr 
)

Constructor.

Definition at line 19 of file qgsimagetexture.cpp.

Member Function Documentation

◆ getImage()

QImage QgsImageTexture::getImage ( ) const
inline

Returns the image.

Definition at line 49 of file qgsimagetexture.h.

◆ paint()

void QgsImageTexture::paint ( QPainter *  painter)
inlineoverride

paints on the current QImage using painter

Definition at line 43 of file qgsimagetexture.h.


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