GNU Radio C++ API Reference: ConstellationDisplayPlot.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
ConstellationDisplayPlot.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2008-2012 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef CONSTELLATION_DISPLAY_PLOT_H
12#define CONSTELLATION_DISPLAY_PLOT_H
13
14#include <gnuradio/qtgui/DisplayPlot.h>
15#include <cstdint>
16#include <cstdio>
17#include <vector>
18
19/*!
20 * \brief QWidget for displaying constellaton (I&Q) plots.
21 * \ingroup qtgui_blk
22 */
23 class ConstellationDisplayPlot : public DisplayPlot
24{
25 Q_OBJECT
26
27public:
28 ConstellationDisplayPlot(int nplots, QWidget*);
29 ~ConstellationDisplayPlot() override;
30
31 void plotNewData(const std::vector<const double*> realDataPoints,
32 const std::vector<const double*> imagDataPoints,
33 const int64_t numDataPoints,
34 const double timeInterval);
35
36 // Old method to be removed
37 void plotNewData(const double* realDataPoints,
38 const double* imagDataPoints,
39 const int64_t numDataPoints,
40 const double timeInterval);
41
42 void replot() override;
43
44 void set_xaxis(double min, double max);
45 void set_yaxis(double min, double max);
46 void set_axis(double xmin, double xmax, double ymin, double ymax);
47 void set_pen_size(int size);
48
49public slots:
50 void setAutoScale(bool state);
51
52private:
53 void _autoScale(double bottom, double top);
54
55 std::vector<std::vector<double>> d_real_data;
56 std::vector<std::vector<double>> d_imag_data;
57
58 int64_t d_pen_size;
59};
60
61#endif /* CONSTELLATION_DISPLAY_PLOT_H */
DisplayPlot.h
ConstellationDisplayPlot::setAutoScale
void setAutoScale(bool state)
ConstellationDisplayPlot::plotNewData
void plotNewData(const double *realDataPoints, const double *imagDataPoints, const int64_t numDataPoints, const double timeInterval)
ConstellationDisplayPlot::replot
void replot() override
ConstellationDisplayPlot::~ConstellationDisplayPlot
~ConstellationDisplayPlot() override
ConstellationDisplayPlot::set_pen_size
void set_pen_size(int size)
ConstellationDisplayPlot::set_xaxis
void set_xaxis(double min, double max)
ConstellationDisplayPlot::set_axis
void set_axis(double xmin, double xmax, double ymin, double ymax)
ConstellationDisplayPlot::ConstellationDisplayPlot
ConstellationDisplayPlot(int nplots, QWidget *)
ConstellationDisplayPlot::set_yaxis
void set_yaxis(double min, double max)
ConstellationDisplayPlot::plotNewData
void plotNewData(const std::vector< const double * > realDataPoints, const std::vector< const double * > imagDataPoints, const int64_t numDataPoints, const double timeInterval)
DisplayPlot::DisplayPlot
DisplayPlot(int nplots, QWidget *)