36 explicit Plot(QCustomPlot* parent, QCPAxis* keyAxis =
nullptr, QCPAxis* valueAxis =
nullptr);
38 void setFilterField(
const QString& filter,
const QString& field);
39 void setPlotStyle(PlotStyles style);
40 void setVisible(
bool visible);
41 QString configError()
const {
return config_err_; }
43 double startTime()
const;
44 void setPlotStartTime(
double start_time);
45 bool absoluteTime()
const {
return abs_time_; }
46 void setAbsoluteTime(
bool abs_time);
47 int hfIndex()
const {
return hf_index_; }
48 const std::vector<plot_item_t>& getItems()
const {
return items_; }
50 void removeTapListener();
54 uint32_t packetFromTime(
double ts)
const;
56 void makeCsv(QTextStream&
stream)
const;
57 QCPRange recentDrawnDataRange(
int count)
const;
69 static void tap_reset(
void* plot_ptr);
71 static void tap_draw(
void* plot_ptr);
78 double plot_start_time_;
86 std::vector<plot_item_t> items_;