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

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

Loading...
Searching...
No Matches
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 {
20 namespace qtgui {
21
22 class 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 */
gr::basic_block::color
vcolor color() const
Definition basic_block.h:122
gr::block::block
block(void)
Definition gnuradio-runtime/include/gnuradio/block.h:806
gr::qtgui::ber_sink_b
Definition ber_sink_b.h:23
gr::qtgui::ber_sink_b::line_label
virtual std::string line_label(unsigned int which)=0
gr::qtgui::ber_sink_b::set_y_axis
virtual void set_y_axis(double min, double max)=0
gr::qtgui::ber_sink_b::line_color
virtual std::string line_color(unsigned int which)=0
gr::qtgui::ber_sink_b::make
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)
gr::qtgui::ber_sink_b::d_qApplication
QApplication * d_qApplication
Definition ber_sink_b.h:65
gr::qtgui::ber_sink_b::set_line_style
virtual void set_line_style(unsigned int which, int style)=0
gr::qtgui::ber_sink_b::set_line_alpha
virtual void set_line_alpha(unsigned int which, double alpha)=0
gr::qtgui::ber_sink_b::line_width
virtual int line_width(unsigned int which)=0
gr::qtgui::ber_sink_b::line_style
virtual int line_style(unsigned int which)=0
gr::qtgui::ber_sink_b::exec_
virtual void exec_()=0
gr::qtgui::ber_sink_b::nsamps
virtual int nsamps() const =0
gr::qtgui::ber_sink_b::sptr
std::shared_ptr< ber_sink_b > sptr
Definition ber_sink_b.h:26
gr::qtgui::ber_sink_b::set_line_label
virtual void set_line_label(unsigned int which, const std::string &label)=0
gr::qtgui::ber_sink_b::set_size
virtual void set_size(int width, int height)=0
gr::qtgui::ber_sink_b::set_line_marker
virtual void set_line_marker(unsigned int which, int marker)=0
gr::qtgui::ber_sink_b::line_marker
virtual int line_marker(unsigned int which)=0
gr::qtgui::ber_sink_b::set_update_time
virtual void set_update_time(double t)=0
gr::qtgui::ber_sink_b::set_line_color
virtual void set_line_color(unsigned int which, const std::string &color)=0
gr::qtgui::ber_sink_b::title
virtual std::string title()=0
gr::qtgui::ber_sink_b::line_alpha
virtual double line_alpha(unsigned int which)=0
gr::qtgui::ber_sink_b::qwidget
virtual QWidget * qwidget()=0
gr::qtgui::ber_sink_b::set_line_width
virtual void set_line_width(unsigned int which, int width)=0
gr::qtgui::ber_sink_b::enable_autoscale
virtual void enable_autoscale(bool en)=0
gr::qtgui::ber_sink_b::enable_menu
virtual void enable_menu(bool en=true)=0
gr::qtgui::ber_sink_b::set_title
virtual void set_title(const std::string &title)=0
gr::qtgui::ber_sink_b::set_x_axis
virtual void set_x_axis(double min, double max)=0
block.h
api.h
QTGUI_API
#define QTGUI_API
Definition gr-qtgui/include/gnuradio/qtgui/api.h:18
gr::qtgui
Definition ber_sink_b.h:20
gr
GNU Radio logging wrapper.
Definition basic_block.h:29