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 <Python.h>
27 #include <QApplication>
28 
29 namespace gr {
30  namespace display {
31 
32  class show_image_impl : public show_image
33  {
34  private:
35  /* Variables */
36 
37  QWidget *d_parent;
38 
39  int nx_samples;
40  int d_width;
41  int d_height;
42  bool d_triggered;
43  ShowPngPicture *d_main_gui;
44 
45 
46  public:
47  show_image_impl(int imagewidth,int imageheight,QWidget *parent=NULL);
49 // void exec_();
50  QWidget* qwidget();
51  PyObject* pyqwidget();
52  QApplication *d_qApplication;
53 
54 
55  // Where all the action really happens
56  int work(int noutput_items,
57  gr_vector_const_void_star &input_items,
58  gr_vector_void_star &output_items);
59  };
60 
61  } // namespace display
62 } // namespace gr
63 
64 #endif /* INCLUDED_DISPLAY_SHOW-IMAGE_IMPL_H */
65 
QApplication * d_qApplication
Definition: show_image_impl.h:52
Definition: showpngpicture.h:13
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
show_image_impl(int imagewidth, int imageheight, QWidget *parent=NULL)
Definition: show_image_impl.h:32
display a grayscaled ( png ) image
Definition: show_image.h:42