GNU Radio Radar Toolbox
qtgui_spectrogram_plot_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2014 Communications Engineering Lab, KIT.
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_RADAR_QTGUI_SPECTROGRAM_PLOT_IMPL_H
22#define INCLUDED_RADAR_QTGUI_SPECTROGRAM_PLOT_IMPL_H
23
24#include "spectrogram_plot.h"
26
27namespace gr {
28namespace radar {
29
31{
32private:
33 // Nothing to declare in this block.
34
35protected:
36 int calculate_output_stream_length(const gr_vector_int& ninput_items);
37
38public:
40 int interval,
41 std::string xlabel,
42 std::string ylabel,
43 std::string label,
44 std::vector<float> axis_x,
45 std::vector<float> axis_y,
46 std::vector<float> axis_z,
47 bool autoscale_z,
48 std::string len_key);
50 void run_gui();
51
52 int d_argc;
53 char* d_argv;
54 QApplication* d_qApplication;
55
57 std::string d_xlabel, d_ylabel, d_label;
58 std::vector<float> d_axis_x, d_axis_y, d_axis_z;
59 std::vector<float> d_buffer;
62
63 // Where all the action really happens
64 int work(int noutput_items,
65 gr_vector_int& ninput_items,
66 gr_vector_const_void_star& input_items,
67 gr_vector_void_star& output_items);
68};
69
70} // namespace radar
71} // namespace gr
72
73#endif /* INCLUDED_RADAR_QTGUI_SPECTROGRAM_PLOT_IMPL_H */
Definition qtgui_spectrogram_plot_impl.h:31
std::vector< float > d_axis_z
Definition qtgui_spectrogram_plot_impl.h:58
int work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
int calculate_output_stream_length(const gr_vector_int &ninput_items)
std::vector< float > d_axis_x
Definition qtgui_spectrogram_plot_impl.h:58
std::vector< float > d_buffer
Definition qtgui_spectrogram_plot_impl.h:59
spectrogram_plot * d_main_gui
Definition qtgui_spectrogram_plot_impl.h:61
qtgui_spectrogram_plot_impl(int vlen, int interval, std::string xlabel, std::string ylabel, std::string label, std::vector< float > axis_x, std::vector< float > axis_y, std::vector< float > axis_z, bool autoscale_z, std::string len_key)
QApplication * d_qApplication
Definition qtgui_spectrogram_plot_impl.h:54
std::string d_xlabel
Definition qtgui_spectrogram_plot_impl.h:57
bool d_autoscale_z
Definition qtgui_spectrogram_plot_impl.h:60
std::string d_label
Definition qtgui_spectrogram_plot_impl.h:57
int d_argc
Definition qtgui_spectrogram_plot_impl.h:52
std::string d_ylabel
Definition qtgui_spectrogram_plot_impl.h:57
int d_interval
Definition qtgui_spectrogram_plot_impl.h:56
int d_vlen
Definition qtgui_spectrogram_plot_impl.h:56
char * d_argv
Definition qtgui_spectrogram_plot_impl.h:53
std::vector< float > d_axis_y
Definition qtgui_spectrogram_plot_impl.h:58
This block displays a spectrogram plot of a tagged stream with vectors. Tagged streams combined with ...
Definition qtgui_spectrogram_plot.h:52
Definition spectrogram_plot.h:37
Definition crop_matrix_vcvc.h:28