GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
ber_sink_b.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2013-2014 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 INCLUDED_QTGUI_BER_SINK_B_H
12#define INCLUDED_QTGUI_BER_SINK_B_H
13
14#include <gnuradio/block.h>
15#include <gnuradio/qtgui/api.h>
16#include <qapplication.h>
17
18
19namespace gr {
20namespace qtgui {
21
22class QTGUI_API ber_sink_b : virtual public block
23{
24public:
25 // gr::fec::ber_sink_b::sptr
26 typedef std::shared_ptr<ber_sink_b> sptr;
27
28 static sptr make(std::vector<float> esnos,
29 int curves = 1,
30 int berminerrors = 100,
31 float berLimit = -7.0,
32 std::vector<std::string> curvenames = std::vector<std::string>(),
33 QWidget* parent = NULL);
34
35 virtual void exec_() = 0;
36 virtual QWidget* qwidget() = 0;
37
38 virtual void set_y_axis(double min, double max) = 0;
39 virtual void set_x_axis(double min, double max) = 0;
40
41 virtual void set_update_time(double t) = 0;
42 virtual void set_title(const std::string& title) = 0;
43 virtual void set_line_label(unsigned int which, const std::string& label) = 0;
44 virtual void set_line_color(unsigned int which, const std::string& color) = 0;
45 virtual void set_line_width(unsigned int which, int width) = 0;
46 virtual void set_line_style(unsigned int which, int style) = 0;
47 virtual void set_line_marker(unsigned int which, int marker) = 0;
48
49 virtual void set_line_alpha(unsigned int which, double alpha) = 0;
50
51 virtual std::string title() = 0;
52 virtual std::string line_label(unsigned int which) = 0;
53 virtual std::string line_color(unsigned int which) = 0;
54 virtual int line_width(unsigned int which) = 0;
55 virtual int line_style(unsigned int which) = 0;
56 virtual int line_marker(unsigned int which) = 0;
57 virtual double line_alpha(unsigned int which) = 0;
58
59 virtual void set_size(int width, int height) = 0;
60
61 virtual void enable_menu(bool en = true) = 0;
62 virtual void enable_autoscale(bool en) = 0;
63 virtual int nsamps() const = 0;
64
65 QApplication* d_qApplication;
66};
67
68} /* namespace qtgui */
69} /* namespace gr */
70
71#endif /* INCLUDED_QTGUI_BER_SINK_B_H */
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
Definition: ber_sink_b.h:23
virtual std::string line_label(unsigned int which)=0
virtual void set_y_axis(double min, double max)=0
virtual std::string line_color(unsigned int which)=0
static sptr make(std::vector< float > esnos, int curves=1, int berminerrors=100, float berLimit=-7.0, std::vector< std::string > curvenames=std::vector< std::string >(), QWidget *parent=NULL)
QApplication * d_qApplication
Definition: ber_sink_b.h:65
virtual void set_line_style(unsigned int which, int style)=0
virtual void set_line_alpha(unsigned int which, double alpha)=0
virtual int line_width(unsigned int which)=0
virtual int line_style(unsigned int which)=0
virtual void exec_()=0
virtual int nsamps() const =0
std::shared_ptr< ber_sink_b > sptr
Definition: ber_sink_b.h:26
virtual void set_line_label(unsigned int which, const std::string &label)=0
virtual void set_size(int width, int height)=0
virtual void set_line_marker(unsigned int which, int marker)=0
virtual int line_marker(unsigned int which)=0
virtual void set_update_time(double t)=0
virtual void set_line_color(unsigned int which, const std::string &color)=0
virtual std::string title()=0
virtual double line_alpha(unsigned int which)=0
virtual QWidget * qwidget()=0
virtual void set_line_width(unsigned int which, int width)=0
virtual void enable_autoscale(bool en)=0
virtual void enable_menu(bool en=true)=0
virtual void set_title(const std::string &title)=0
virtual void set_x_axis(double min, double max)=0
#define QTGUI_API
Definition: gr-qtgui/include/gnuradio/qtgui/api.h:18
float min(float a, float b)
GNU Radio logging wrapper.
Definition: basic_block.h:29