GNU Radio Radar Toolbox
scatter_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
30
namespace
gr
{
31
namespace
radar {
32
33
class
scatter_plot
:
public
QWidget
34
{
35
Q_OBJECT
36
37
public
:
38
scatter_plot
(
int
interval,
39
std::vector<float> axis_x,
40
std::vector<float> axis_y,
41
std::vector<float>* x,
42
std::vector<float>* y,
43
std::string label_x,
44
std::string label_y,
45
bool
* xy_read,
46
std::string label,
47
QWidget* parent = 0);
48
~scatter_plot
();
49
50
private
:
51
int
d_interval;
52
std::string d_label_x, d_label_y;
53
std::vector<float> d_axis_x, d_axis_y;
54
std::vector<float>*d_x, *d_y;
55
bool
* d_xy_read;
56
QwtPlot* d_plot;
57
QwtSymbol* d_symbol;
58
QwtPlotGrid* d_grid;
59
std::vector<QwtPlotMarker*> d_marker;
60
QTimer* d_timer;
61
62
protected
:
63
void
resizeEvent
(QResizeEvent* event);
64
65
public
slots:
66
void
refresh
();
67
};
68
69
}
// namespace radar
70
}
// namespace gr
gr::radar::scatter_plot
Definition:
scatter_plot.h:33
gr::radar::scatter_plot::scatter_plot
scatter_plot(int interval, std::vector< float > axis_x, std::vector< float > axis_y, std::vector< float > *x, std::vector< float > *y, std::string label_x, std::string label_y, bool *xy_read, std::string label, QWidget *parent=0)
gr::radar::scatter_plot::refresh
void refresh()
gr
Definition:
crop_matrix_vcvc.h:28
gr::radar::scatter_plot::resizeEvent
void resizeEvent(QResizeEvent *event)
gr::radar::scatter_plot::~scatter_plot
~scatter_plot()
lib
scatter_plot.h
Generated by
1.8.17