GNU Radio's DISPLAY Package
show_image_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2013 <+YOU OR YOUR COMPANY+>.
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef INCLUDED_DISPLAY_SHOW_IMAGE_IMPL_H
22#define INCLUDED_DISPLAY_SHOW_IMAGE_IMPL_H
23
24#include <display/show_image.h>
25
26#include <QApplication>
27
28namespace gr {
29namespace display {
30
32{
33private:
34 /* Variables */
35
36 int nx_samples;
37 int d_width;
38 int d_height;
39 QWidget* d_parent;
40
41 bool d_triggered;
42 ShowPngPicture* d_main_gui;
43
44
45public:
46 show_image_impl(int imagewidth, int imageheight, QWidget* parent);
48
49 void displayBottomUp(bool direction);
50
51 QApplication* d_qApplication;
52
53 void exec_() override;
54 QWidget* qwidget() override;
55
56 // Where all the action really happens
57 int work(int noutput_items,
58 gr_vector_const_void_star& input_items,
59 gr_vector_void_star& output_items);
60};
61
62} // namespace display
63} // namespace gr
64
65#endif /* INCLUDED_DISPLAY_SHOW-IMAGE_IMPL_H */
#define DISPLAY_API
Definition api.h:30
Definition showpngpicture.h:14
show_image_impl(int imagewidth, int imageheight, QWidget *parent)
QWidget * qwidget() override
void displayBottomUp(bool direction)
QApplication * d_qApplication
Definition show_image_impl.h:51
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
display a grayscaled ( png ) image
Definition show_image.h:34
Definition display_text_msg.h:27
Definition display_text_msg.h:26