11 #ifndef TIME_DOMAIN_DISPLAY_PLOT_H 12 #define TIME_DOMAIN_DISPLAY_PLOT_H 38 void plotNewData(
const std::vector<double*> dataPoints,
39 const int64_t numDataPoints,
40 const double timeInterval,
41 const std::vector<std::vector<gr::tag_t>>& tags =
42 std::vector<std::vector<gr::tag_t>>());
55 void setSampleRate(
double sr,
double units,
const std::string& strunits);
67 void setYLabel(
const std::string& label,
const std::string& unit =
"");
77 void _resetXAxisPoints();
78 void _autoScale(
double bottom,
double top);
80 std::vector<double*> d_ydata;
87 bool d_autoscale_shot;
89 std::vector<std::vector<QwtPlotMarker*>> d_tag_markers;
90 std::vector<bool> d_tag_markers_en;
92 QColor d_tag_text_color;
93 QColor d_tag_background_color;
94 Qt::BrushStyle d_tag_background_style;
96 QwtPlotMarker* d_trigger_lines[2];
void setAutoScale(bool state)
void setYLabel(const std::string &label, const std::string &unit="")
void setSemilogx(bool en)
void attachTriggerLines(bool en)
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:52
void setTagBackgroundStyle(Qt::BrushStyle b)
void setTagTextColor(QColor c)
const QColor getTagBackgroundColor()
TimeDomainDisplayPlot(int nplots, QWidget *)
const QColor getTagTextColor()
QColor tag_text_color
Definition: TimeDomainDisplayPlot.h:28
void setTagBackgroundColor(QColor c)
void setSampleRate(double sr, double units, const std::string &strunits)
QColor tag_background_color
Definition: TimeDomainDisplayPlot.h:30
const Qt::BrushStyle getTagBackgroundStyle()
QWidget for displaying time domain plots.
Definition: TimeDomainDisplayPlot.h:24
void plotNewData(const std::vector< double *> dataPoints, const int64_t numDataPoints, const double timeInterval, const std::vector< std::vector< gr::tag_t >> &tags=std::vector< std::vector< gr::tag_t >>())
void enableTagMarker(unsigned int which, bool en)
~TimeDomainDisplayPlot() override
double sampleRate() const
void setTriggerLines(double x, double y)
void setSemilogy(bool en)
void legendEntryChecked(QwtPlotItem *plotItem, bool on) override
Qt::BrushStyle tag_background_style
Definition: TimeDomainDisplayPlot.h:32