 |
GNU Radio Manual and C++ API Reference
3.10.5.1
The Free & Open Software Radio Ecosystem
|
|
Go to the documentation of this file.
10 #ifndef EYE_DISPLAY_PLOT_H
11 #define EYE_DISPLAY_PLOT_H
34 EyeDisplayPlot(
unsigned int nplots,
unsigned int curve_index, QWidget* parent);
43 void plotNewData(
const std::vector<double*> dataPoints,
44 const int64_t numDataPoints,
46 const double timeInterval,
47 const std::vector<std::vector<gr::tag_t>>& tags =
48 std::vector<std::vector<gr::tag_t>>());
59 void setLineColor(
unsigned int which, QColor color)
override;
60 void setLineWidth(
unsigned int which,
int width)
override;
61 void setLineMarker(
unsigned int which, QwtSymbol::Style marker)
override;
62 void setLineStyle(
unsigned int which, Qt::PenStyle style)
override;
66 void setSampleRate(
double sr,
double units,
const std::string& strunits);
76 void setYLabel(
const std::string& label,
const std::string& unit =
"");
85 void setLineLabel(
unsigned int which, QString label)
override;
88 void _resetXAxisPoints();
89 void _autoScale(
double bottom,
double top);
91 std::vector<std::vector<double>> d_ydata;
93 std::vector<double> d_xdata;
97 unsigned int d_curve_index;
99 unsigned int d_numPointsPerPeriod = 2 * d_sps + 1;
100 unsigned int d_numPeriods;
102 bool d_autoscale_shot;
104 std::vector<std::vector<QwtPlotMarker*>> d_tag_markers;
105 std::vector<bool> d_tag_markers_en;
107 QList<QColor> colors;
108 QColor d_tag_text_color;
109 QColor d_tag_background_color;
110 Qt::BrushStyle d_tag_background_style;
112 QwtPlotMarker* d_trigger_lines[2];
void setTagBackgroundStyle(Qt::BrushStyle b)
QColor tag_background_color
Definition: EyeDisplayPlot.h:29
void setLineStyle(unsigned int which, Qt::PenStyle style) override
void setTagBackgroundColor(QColor c)
void legendEntryChecked(QwtPlotItem *plotItem, bool on) override
void setLineColor(unsigned int which, QColor color) override
const QColor getTagTextColor()
double sampleRate() const
void setLineMarker(unsigned int which, QwtSymbol::Style marker) override
void setSampleRate(double sr, double units, const std::string &strunits)
QColor tag_text_color
Definition: EyeDisplayPlot.h:27
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:41
QWidget for displaying eye pattern plots.
Definition: EyeDisplayPlot.h:23
void setTagTextColor(QColor c)
void plotNewData(const std::vector< double * > dataPoints, const int64_t numDataPoints, int d_sps, const double timeInterval, const std::vector< std::vector< gr::tag_t >> &tags=std::vector< std::vector< gr::tag_t >>())
void setMarkerAlpha(unsigned int which, int alpha) override
Qt::BrushStyle tag_background_style
Definition: EyeDisplayPlot.h:31
void attachTriggerLines(bool en)
void setLineLabel(unsigned int which, QString label) override
void setAutoScale(bool state)
const Qt::BrushStyle getTagBackgroundStyle()
EyeDisplayPlot & operator=(const EyeDisplayPlot &)=delete
void setLineWidth(unsigned int which, int width) override
void setTriggerLines(double x, double y)
EyeDisplayPlot(unsigned int nplots, unsigned int curve_index, QWidget *parent)
~EyeDisplayPlot() override
void enableTagMarker(unsigned int which, bool en)
const QColor getTagBackgroundColor()
void setYLabel(const std::string &label, const std::string &unit="")