GNU Radio's DISPLAY Package
show_image.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2022 Volker Schroer, DL1KSV
4 *
5 * SPDX-License-Identifier: GPL-3.0-or-later
6 *
7 */
8
9
10#ifndef INCLUDED_DISPLAY_SHOW_IMAGE_H
11#define INCLUDED_DISPLAY_SHOW_IMAGE_H
12
13#include <gnuradio/sync_block.h>
14#include <display/api.h>
15#include <QWidget>
16
17
18class ShowPngPicture;
19
20namespace gr {
21namespace display {
22
23/*!
24 * \brief display a grayscaled ( png ) image
25 * \ingroup display
26 *
27 * \details
28 * This block displays an grayscaled image in a
29 * scrollable window
30 * The image may be saved as png image to the filesystem
31 *
32 */
33class DISPLAY_API show_image : virtual public sync_block
34{
35public:
36 typedef std::shared_ptr<show_image> sptr;
37
38 /*!
39 * \brief Build an image sink
40 *
41 * \param imagewidth Width of the image
42 * \param imageheight Maximum height of image
43 * \param parent a QWidget parent widget, may be nullptr
44 *
45 */
46 static sptr make(int imagewidth, int imageheight, QWidget* parent = nullptr);
47
48 virtual void exec_() = 0;
49 virtual QWidget* qwidget() = 0;
50
51 virtual void displayBottomUp(bool direction) = 0;
52};
53
54} // namespace display
55} // namespace gr
56
57#endif /* INCLUDED_DISPLAY_SHOW_IMAGE_H */
#define DISPLAY_API
Definition api.h:30
Definition showpngpicture.h:14
display a grayscaled ( png ) image
Definition show_image.h:34
static sptr make(int imagewidth, int imageheight, QWidget *parent=nullptr)
Build an image sink.
virtual void exec_()=0
virtual QWidget * qwidget()=0
virtual void displayBottomUp(bool direction)=0
std::shared_ptr< show_image > sptr
Definition show_image.h:36
Definition display_text_msg.h:27
Definition display_text_msg.h:26