11 #ifndef TIME_DOMAIN_DISPLAY_PLOT_H
12 #define TIME_DOMAIN_DISPLAY_PLOT_H
45 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>>());
61 void setSampleRate(
double sr,
double units,
const std::string& strunits);
73 void setYLabel(
const std::string& label,
const std::string& unit =
"");
83 void _resetXAxisPoints();
84 void _autoScale(
double bottom,
double top);
86 std::vector<std::vector<double>> d_ydata;
87 std::vector<double> d_xdata;
93 bool d_autoscale_shot;
95 std::vector<std::vector<QwtPlotMarker*>> d_tag_markers;
96 std::vector<bool> d_tag_markers_en;
98 QColor d_tag_text_color = Qt::black;
99 QColor d_tag_background_color = Qt::white;
100 Qt::BrushStyle d_tag_background_style = Qt::NoBrush;
102 QwtPlotMarker* d_trigger_lines[2];
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:42
QWidget for displaying time domain plots.
Definition: TimeDomainDisplayPlot.h:25
void enableTagMarker(unsigned int which, bool en)
double sampleRate() const
TimeDomainDisplayPlot & operator=(TimeDomainDisplayPlot &&)=delete
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 *)
TimeDomainDisplayPlot(TimeDomainDisplayPlot &&)=delete
void setTriggerLines(double x, double y)
QColor tag_text_color
Definition: TimeDomainDisplayPlot.h:28
void setSampleRate(double sr, double units, const std::string &strunits)
TimeDomainDisplayPlot(const TimeDomainDisplayPlot &)=delete
void legendEntryChecked(const QVariant &plotItem, bool on, int index) override
void setAutoScale(bool state)
TimeDomainDisplayPlot & operator=(const TimeDomainDisplayPlot &)=delete
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