23 #ifndef INCLUDED_QTGUI_NUMBER_SINK_H
24 #define INCLUDED_QTGUI_NUMBER_SINK_H
34 #include <qapplication.h>
70 typedef boost::shared_ptr<number_sink>
sptr;
85 QWidget *parent=NULL);
87 virtual void exec_() = 0;
88 virtual QWidget* qwidget() = 0;
91 virtual PyObject* pyqwidget() = 0;
93 virtual void* pyqwidget() = 0;
96 virtual void set_update_time(
double t) = 0;
97 virtual void set_average(
const float avg) = 0;
98 virtual void set_graph_type(
const graph_t type) = 0;
99 virtual void set_color(
int which,
100 const std::string &
min,
101 const std::string &max) = 0;
102 virtual void set_color(
int which,
int min,
int max) = 0;
103 virtual void set_label(
int which,
const std::string &label) = 0;
104 virtual void set_min(
int which,
float min) = 0;
105 virtual void set_max(
int which,
float max) = 0;
106 virtual void set_title(
const std::string &title) = 0;
107 virtual void set_unit(
int which,
const std::string &unit) = 0;
108 virtual void set_factor(
int which,
float factor) = 0;
110 virtual float average()
const = 0;
111 virtual graph_t graph_type()
const = 0;
112 virtual std::string color_min(
int which)
const = 0;
113 virtual std::string color_max(
int which)
const = 0;
114 virtual std::string label(
int which)
const = 0;
115 virtual float min(
int which)
const = 0;
116 virtual float max(
int which)
const = 0;
117 virtual std::string title()
const = 0;
118 virtual std::string unit(
int which)
const = 0;
119 virtual float factor(
int which)
const = 0;
121 virtual void enable_menu(
bool en=
true) = 0;
122 virtual void enable_autoscale(
bool en=
true) = 0;
124 virtual void reset() = 0;
Definition: qtgui_types.h:144
boost::shared_ptr< number_sink > sptr
Definition: number_sink.h:70
float min(float a, float b)
graph_t
Definition: qtgui_types.h:142
A graphical sink to display numerical values of input streams.
Definition: number_sink.h:65
#define QTGUI_API
Definition: gr-qtgui/include/gnuradio/qtgui/api.h:30
Include this header to use the message passing features.
Definition: logger.h:131
synchronous 1:1 input to output with historyOverride work to provide the signal processing implementa...
Definition: sync_block.h:37
QApplication * d_qApplication
Definition: number_sink.h:126
BLOCKS_API size_t itemsize(vector_type type)