QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
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.
 
QImage getImage () const
 Returns the image.
 
void paint (QPainter *painter) override
 paints on the current QImage using painter
 

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 20 of file qgsimagetexture.cpp.

Member Function Documentation

◆ getImage()

QImage QgsImageTexture::getImage ( ) const
inline

Returns the image.

Definition at line 51 of file qgsimagetexture.h.

◆ paint()

void QgsImageTexture::paint ( QPainter *  painter)
inlineoverride

paints on the current QImage using painter

Definition at line 45 of file qgsimagetexture.h.


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