11 #ifndef INCLUDED_QTGUI_NUMBER_SINK_H
12 #define INCLUDED_QTGUI_NUMBER_SINK_H
18 #include <qapplication.h>
53 typedef std::shared_ptr<number_sink>
sptr;
68 QWidget* parent = NULL);
77 set_color(
unsigned int which,
const std::string&
min,
const std::string& max) = 0;
79 virtual void set_label(
unsigned int which,
const std::string& label) = 0;
81 virtual void set_max(
unsigned int which,
float max) = 0;
82 virtual void set_title(
const std::string& title) = 0;
83 virtual void set_unit(
unsigned int which,
const std::string& unit) = 0;
84 virtual void set_factor(
unsigned int which,
float factor) = 0;
88 virtual std::string
color_min(
unsigned int which)
const = 0;
89 virtual std::string
color_max(
unsigned int which)
const = 0;
90 virtual std::string
label(
unsigned int which)
const = 0;
91 virtual float min(
unsigned int which)
const = 0;
92 virtual float max(
unsigned int which)
const = 0;
93 virtual std::string
title()
const = 0;
94 virtual std::string
unit(
unsigned int which)
const = 0;
95 virtual float factor(
unsigned int which)
const = 0;
A graphical sink to display numerical values of input streams.
Definition: number_sink.h:50
virtual float min(unsigned int which) const =0
virtual void set_color(unsigned int which, int min, int max)=0
static sptr make(size_t itemsize, float average=0, graph_t graph_type=NUM_GRAPH_HORIZ, int nconnections=1, QWidget *parent=NULL)
Build a number sink.
virtual void set_color(unsigned int which, const std::string &min, const std::string &max)=0
virtual float average() const =0
virtual std::string title() const =0
virtual std::string color_min(unsigned int which) const =0
virtual void set_min(unsigned int which, float min)=0
virtual void enable_menu(bool en=true)=0
virtual void set_graph_type(const graph_t type)=0
virtual void set_label(unsigned int which, const std::string &label)=0
QApplication * d_qApplication
Definition: number_sink.h:102
virtual void set_max(unsigned int which, float max)=0
virtual std::string unit(unsigned int which) const =0
virtual float max(unsigned int which) const =0
virtual QWidget * qwidget()=0
virtual std::string label(unsigned int which) const =0
virtual void set_unit(unsigned int which, const std::string &unit)=0
virtual void set_title(const std::string &title)=0
virtual void set_average(const float avg)=0
std::shared_ptr< number_sink > sptr
Definition: number_sink.h:53
virtual float factor(unsigned int which) const =0
virtual void set_factor(unsigned int which, float factor)=0
virtual std::string color_max(unsigned int which) const =0
virtual void enable_autoscale(bool en=true)=0
virtual void set_update_time(double t)=0
virtual graph_t graph_type() const =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
GR_RUNTIME_API size_t itemsize(types::vector_type type)
graph_t
Definition: qtgui_types.h:119
@ NUM_GRAPH_HORIZ
Definition: qtgui_types.h:121
float min(float a, float b)
GNU Radio logging wrapper.
Definition: basic_block.h:29