11 #ifndef TIME_DOMAIN_DISPLAY_PLOT_H
12 #define TIME_DOMAIN_DISPLAY_PLOT_H
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];
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:50
QWidget for displaying time domain plots.
Definition: TimeDomainDisplayPlot.h:25
void enableTagMarker(unsigned int which, bool en)
double sampleRate() const
void legendEntryChecked(QwtPlotItem *plotItem, bool on) override
void setSemilogy(bool en)
void setYLabel(const std::string &label, const std::string &unit="")
const QColor getTagTextColor()
void setSemilogx(bool en)
void setTagTextColor(QColor c)
TimeDomainDisplayPlot(int nplots, QWidget *)
void setTriggerLines(double x, double y)
QColor tag_text_color
Definition: TimeDomainDisplayPlot.h:28
void setSampleRate(double sr, double units, const std::string &strunits)
void legendEntryChecked(const QVariant &plotItem, bool on, int index) override
void setAutoScale(bool state)
QColor tag_background_color
Definition: TimeDomainDisplayPlot.h:30
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 setTagBackgroundColor(QColor c)
~TimeDomainDisplayPlot() override
void attachTriggerLines(bool en)
void setTagBackgroundStyle(Qt::BrushStyle b)
const QColor getTagBackgroundColor()
const Qt::BrushStyle getTagBackgroundStyle()
Qt::BrushStyle tag_background_style
Definition: TimeDomainDisplayPlot.h:32