34 explicit Plot(QCustomPlot* parent, QCPAxis* keyAxis =
nullptr, QCPAxis* valueAxis =
nullptr);
36 void setFilterField(
const QString& filter,
const QString& field);
37 void setPlotStyle(PlotStyles style);
38 void setVisible(
bool visible);
39 QString configError()
const {
return config_err_; }
41 double startTime()
const;
42 void setPlotStartTime(
double start_time);
43 bool absoluteTime()
const {
return abs_time_; }
44 void setAbsoluteTime(
bool abs_time);
45 int hfIndex()
const {
return hf_index_; }
46 const std::vector<plot_item_t>& getItems()
const {
return items_; }
48 void removeTapListener();
52 uint32_t packetFromTime(
double ts)
const;
54 void makeCsv(QTextStream&
stream)
const;
66 static void tap_reset(
void* plot_ptr);
68 static void tap_draw(
void* plot_ptr);
75 double plot_start_time_;
83 std::vector<plot_item_t> items_;