23#ifndef TIME_DOMAIN_DISPLAY_PLOT_H
24#define TIME_DOMAIN_DISPLAY_PLOT_H
51 const int64_t numDataPoints,
52 const double timeInterval,
53 const std::vector<std::vector<gr::tag_t> >& tags =
54 std::vector<std::vector<gr::tag_t> >());
67 void setSampleRate(
double sr,
double units,
const std::string& strunits);
79 void setYLabel(
const std::string& label,
const std::string& unit =
"");
89 void _resetXAxisPoints();
90 void _autoScale(
double bottom,
double top);
92 std::vector<double*> d_ydata;
99 bool d_autoscale_shot;
101 std::vector<std::vector<QwtPlotMarker*> > d_tag_markers;
102 std::vector<bool> d_tag_markers_en;
104 QColor d_tag_text_color;
105 QColor d_tag_background_color;
106 Qt::BrushStyle d_tag_background_style;
108 QwtPlotMarker* d_trigger_lines[2];
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:65
QWidget for displaying time domain plots.
Definition: TimeDomainDisplayPlot.h:37
double sampleRate() const
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 setSemilogy(bool en)
void setYLabel(const std::string &label, const std::string &unit="")
void legendEntryChecked(const QVariant &plotItem, bool on, int index)
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:40
void setSampleRate(double sr, double units, const std::string &strunits)
void setAutoScale(bool state)
void legendEntryChecked(QwtPlotItem *plotItem, bool on)
QColor tag_background_color
Definition: TimeDomainDisplayPlot.h:42
void setTagBackgroundColor(QColor c)
virtual ~TimeDomainDisplayPlot()
void attachTriggerLines(bool en)
void setTagBackgroundStyle(Qt::BrushStyle b)
const QColor getTagBackgroundColor()
const Qt::BrushStyle getTagBackgroundStyle()
void enableTagMarker(int which, bool en)
Qt::BrushStyle tag_background_style
Definition: TimeDomainDisplayPlot.h:44