GNU Radio Radar Toolbox
time_plot.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
#include <QApplication>
22
#include <QTimer>
23
24
#include <qwt_plot.h>
25
#include <qwt_plot_curve.h>
26
#include <qwt_plot_grid.h>
27
#include <qwt_plot_marker.h>
28
#include <qwt_symbol.h>
29
#include <qwt_text.h>
30
31
namespace
gr
{
32
namespace
radar
{
33
34
class
time_plot
:
public
QWidget
35
{
36
Q_OBJECT
37
38
public
:
39
time_plot
(
int
interval,
40
std::string label_y,
41
std::vector<float> axis_y,
42
float
range_time,
43
std::vector<float>* y,
44
bool
* y_read,
45
std::string label,
46
QWidget* parent = 0);
47
~time_plot
();
48
49
private
:
50
int
d_interval;
51
std::string d_label_y;
52
std::vector<float> d_axis_y;
53
std::vector<float>* d_y;
54
bool
* d_y_read;
55
float
d_range_time;
56
57
QwtPlot* d_plot;
58
QwtSymbol* d_symbol;
59
QwtPlotGrid* d_grid;
60
std::vector<std::vector<QwtPlotMarker*>> d_marker;
61
62
QTimer* d_timer;
63
64
int
d_refresh_counter;
65
66
protected
:
67
void
resizeEvent
(QResizeEvent* event);
68
69
public
slots:
70
void
refresh
();
71
};
72
73
}
// namespace radar
74
}
// namespace gr
gr::radar::time_plot::time_plot
time_plot(int interval, std::string label_y, std::vector< float > axis_y, float range_time, std::vector< float > *y, bool *y_read, std::string label, QWidget *parent=0)
gr::radar::time_plot::refresh
void refresh()
gr::radar::time_plot::resizeEvent
void resizeEvent(QResizeEvent *event)
gr::radar::time_plot::~time_plot
~time_plot()
gr::radar
Definition
crop_matrix_vcvc.h:29
gr
Definition
crop_matrix_vcvc.h:28
lib
time_plot.h
Generated on
for GNU Radio Radar Toolbox by
1.15.0