QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PatchTextureData Class Reference

#include <PatchTextureData.h>

+ Inheritance diagram for PatchTextureData:
+ Collaboration diagram for PatchTextureData:

Signals

void imageChanged ()
 

Public Member Functions

 PatchTextureData (QQuick3DObject *parent=nullptr)
 
QImage image () const
 
void setImage (const QImage &image)
 

Detailed Description

Feeds a QImage (a map tile from SurfacePatchModel's tileImage role) to a Qt Quick 3D Texture. A null image produces an empty texture; consumers switch materials on image validity rather than rendering it.

Definition at line 18 of file PatchTextureData.h.

Constructor & Destructor Documentation

◆ PatchTextureData()

PatchTextureData::PatchTextureData ( QQuick3DObject *  parent = nullptr)
explicit

Definition at line 12 of file PatchTextureData.cc.

Member Function Documentation

◆ image()

QImage PatchTextureData::image ( ) const
inline

Definition at line 27 of file PatchTextureData.h.

Referenced by setImage().

◆ imageChanged

void PatchTextureData::imageChanged ( )
signal

Referenced by setImage().

◆ setImage()

void PatchTextureData::setImage ( const QImage &  image)

Definition at line 14 of file PatchTextureData.cc.

References image(), and imageChanged().


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