23 #ifndef INCLUDED_QTGUI_NUMBER_SINK_H 24 #define INCLUDED_QTGUI_NUMBER_SINK_H 34 #include <qapplication.h> 69 typedef boost::shared_ptr<number_sink>
sptr;
84 QWidget* parent = NULL);
86 virtual void exec_() = 0;
87 virtual QWidget* qwidget() = 0;
90 virtual PyObject* pyqwidget() = 0;
92 virtual void* pyqwidget() = 0;
95 virtual void set_update_time(
double t) = 0;
96 virtual void set_average(
const float avg) = 0;
97 virtual void set_graph_type(
const graph_t type) = 0;
99 set_color(
unsigned int which,
const std::string&
min,
const std::string& max) = 0;
100 virtual void set_color(
unsigned int which,
int min,
int max) = 0;
101 virtual void set_label(
unsigned int which,
const std::string& label) = 0;
102 virtual void set_min(
unsigned int which,
float min) = 0;
103 virtual void set_max(
unsigned int which,
float max) = 0;
104 virtual void set_title(
const std::string& title) = 0;
105 virtual void set_unit(
unsigned int which,
const std::string& unit) = 0;
106 virtual void set_factor(
unsigned int which,
float factor) = 0;
108 virtual float average()
const = 0;
109 virtual graph_t graph_type()
const = 0;
110 virtual std::string color_min(
unsigned int which)
const = 0;
111 virtual std::string color_max(
unsigned int which)
const = 0;
112 virtual std::string label(
unsigned int which)
const = 0;
113 virtual float min(
unsigned int which)
const = 0;
114 virtual float max(
unsigned int which)
const = 0;
115 virtual std::string title()
const = 0;
116 virtual std::string unit(
unsigned int which)
const = 0;
117 virtual float factor(
unsigned int which)
const = 0;
119 virtual void enable_menu(
bool en =
true) = 0;
120 virtual void enable_autoscale(
bool en =
true) = 0;
122 virtual void reset() = 0;
Definition: qtgui_types.h:132
boost::shared_ptr< number_sink > sptr
Definition: number_sink.h:69
float min(float a, float b)
graph_t
Definition: qtgui_types.h:130
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
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
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:124
BLOCKS_API size_t itemsize(vector_type type)