Go to the documentation of this file.
18 #ifndef GZ_GUI_PLUGINS_IMAGEDISPLAY_HH_
19 #define GZ_GUI_PLUGINS_IMAGEDISPLAY_HH_
23 #include <QQuickImageProvider>
26 #pragma warning(push, 0)
28 #include <gz/msgs/image.pb.h>
34 # define ImageDisplay_EXPORTS_API
36 # if (defined(ImageDisplay_EXPORTS))
37 # define ImageDisplay_EXPORTS_API __declspec(dllexport)
39 # define ImageDisplay_EXPORTS_API __declspec(dllimport)
51 class ImageDisplayPrivate;
56 : QQuickImageProvider(QQuickImageProvider::Image)
61 const QSize &)
override
71 QImage i(400, 400, QImage::Format_RGB888);
100 NOTIFY TopicListChanged
110 public: virtual
void LoadConfig(const
tinyxml2::XMLElement *_pluginElem);
113 public slots:
void OnRefresh();
116 public slots:
void OnTopic(const
QString _topic);
126 public: Q_INVOKABLE
void SetTopicList(const
QStringList &_topicList);
129 signals:
void TopicListChanged();
132 signals:
void newImage();
135 private slots:
void ProcessImage();
138 private:
void UpdateFromRgbInt8();
141 private:
void UpdateFromFloat32();
144 private:
void UpdateFromLInt16();
148 private:
void OnImageMsg(const
gz::msgs::Image &_msg);
152 private:
std::unique_ptr<ImageDisplayPrivate> dataPtr;
void fill(uint pixelValue)
void SetImage(const QImage &_image)
Definition: ImageDisplay.hh:76
#define ImageDisplay_EXPORTS_API
Definition: ImageDisplay.hh:34
Base class for Gazebo GUI plugins.
Definition: gz/gui/Plugin.hh:54
Display images coming through an Gazebo transport topic.
Definition: ImageDisplay.hh:91
Definition: ImageDisplay.hh:53
ImageProvider()
Definition: ImageDisplay.hh:55
QImage requestImage(const QString &, QSize *, const QSize &) override
Definition: ImageDisplay.hh:60
Definition: gz/gui/Application.hh:35