QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PatchTextureData.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * (c) 2009-2024 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
4 *
5 * QGroundControl is licensed according to the terms in the file
6 * COPYING.md in the root of the source code directory.
7 *
8 ****************************************************************************/
9
10#pragma once
11
12#include <QtGui/QImage>
13#include <QtQuick3D/QQuick3DTextureData>
14
18class PatchTextureData : public QQuick3DTextureData
19{
20 Q_OBJECT
21 QML_ELEMENT
22 Q_PROPERTY(QImage image READ image WRITE setImage NOTIFY imageChanged)
23
24public:
25 explicit PatchTextureData(QQuick3DObject* parent = nullptr);
26
27 QImage image() const { return _image; }
28
29 void setImage(const QImage& image);
30
31signals:
33
34private:
35 void _rebuild();
36
37 QImage _image;
38};
void setImage(const QImage &image)
QImage image() const