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
18
class
PatchTextureData
:
public
QQuick3DTextureData
19
{
20
Q_OBJECT
21
QML_ELEMENT
22
Q_PROPERTY(QImage
image
READ
image
WRITE
setImage
NOTIFY
imageChanged
)
23
24
public
:
25
explicit
PatchTextureData
(QQuick3DObject* parent =
nullptr
);
26
27
QImage
image
()
const
{
return
_image; }
28
29
void
setImage
(
const
QImage&
image
);
30
31
signals:
32
void
imageChanged
();
33
34
private
:
35
void
_rebuild();
36
37
QImage _image;
38
};
PatchTextureData
Definition
PatchTextureData.h:19
PatchTextureData::setImage
void setImage(const QImage &image)
Definition
PatchTextureData.cc:14
PatchTextureData::imageChanged
void imageChanged()
PatchTextureData::image
QImage image() const
Definition
PatchTextureData.h:27
src
GeoMap
PatchTextureData.h
Generated by
1.9.8