11#ifndef INCLUDED_QTGUI_VECTOR_SINK_F_H
12#define INCLUDED_QTGUI_VECTOR_SINK_F_H
16#include <qapplication.h>
41 typedef std::shared_ptr<vector_sink_f>
sptr;
58 const std::string& x_axis_label,
59 const std::string& y_axis_label,
60 const std::string& name,
62 QWidget* parent = NULL);
67 virtual unsigned int vlen()
const = 0;
75 virtual void set_x_axis(
const double start,
const double step) = 0;
89 virtual void set_title(
const std::string& title) = 0;
90 virtual void set_line_label(
unsigned int which,
const std::string& label) = 0;
91 virtual void set_line_color(
unsigned int which,
const std::string& color) = 0;
97 virtual std::string
title() = 0;
A graphical sink to display multiple vector-based signals.
Definition: vector_sink_f.h:38
virtual float vec_average() const =0
virtual int line_style(unsigned int which)=0
QApplication * d_qApplication
Definition: vector_sink_f.h:115
virtual void set_x_axis(const double start, const double step)=0
Update the values on the x-Axis.
std::shared_ptr< vector_sink_f > sptr
Definition: vector_sink_f.h:41
virtual unsigned int vlen() const =0
virtual void set_y_axis_label(const std::string &label)=0
static sptr make(unsigned int vlen, double x_start, double x_step, const std::string &x_axis_label, const std::string &y_axis_label, const std::string &name, int nconnections=1, QWidget *parent=NULL)
Build a vector plotting sink.
virtual void set_x_axis_units(const std::string &units)=0
Change the units string on the x-Axis (e.g. 'm' if x-Axis label was 'Distance')
virtual void disable_legend()=0
virtual void set_update_time(double t)=0
virtual void set_title(const std::string &title)=0
virtual void set_line_label(unsigned int which, const std::string &label)=0
virtual void set_line_style(unsigned int which, int style)=0
virtual void set_line_color(unsigned int which, const std::string &color)=0
virtual std::string line_color(unsigned int which)=0
virtual std::string title()=0
virtual int line_marker(unsigned int which)=0
virtual std::string line_label(unsigned int which)=0
virtual void clear_max_hold()=0
virtual void set_line_marker(unsigned int which, int marker)=0
virtual void set_line_width(unsigned int which, int width)=0
virtual void set_x_axis_label(const std::string &label)=0
virtual void enable_autoscale(bool en=true)=0
virtual double line_alpha(unsigned int which)=0
virtual void set_vec_average(const float avg)=0
virtual void set_y_axis(double min, double max)=0
virtual void enable_grid(bool en=true)=0
virtual void enable_menu(bool en=true)=0
virtual int line_width(unsigned int which)=0
virtual void set_size(int width, int height)=0
virtual QWidget * qwidget()=0
virtual void set_y_axis_units(const std::string &units)=0
Change the units string on the y-Axis (e.g. 'V' if x-Axis label was 'Amplitude')
virtual void set_ref_level(double ref_level)=0
The ref level is a reference line.
virtual void clear_min_hold()=0
virtual void set_line_alpha(unsigned int which, double alpha)=0
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#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