41 #include <qcustomplot.h>
45 #include "../../exportinmportconfig.h"
47 #include "../../trace/trace.h"
54 class BaseTracePlotWidget;
66 const QString &x_axis_label,
67 const QString &y_axis_label);
71 virtual void setGraphData(
int graph_index,
72 const std::vector<double> &keys,
73 const std::vector<double> &values);
75 virtual void setGraphData(QCPGraph *graph_p,
76 const std::vector<double> &keys,
77 const std::vector<double> &values);
79 virtual void clearGraphData(
int graph_index);
81 virtual void axisDoubleClickHandler(QCPAxis *axis,
82 QCPAxis::SelectablePart part,
83 QMouseEvent *event)
override;
87 virtual void axisRescale()
override;
88 virtual void axisReframe()
override;
89 virtual void axisZoom()
override;
90 virtual void axisPan()
override;
92 virtual QCPGraph *addTrace(
const pappso::Trace &trace,
const QColor &color);
95 findIntegrationLowerRangeForKey(
int index,
double key, QCPRange &range);
97 std::vector<double> getValuesX(
int index)
const;
98 std::vector<double> getValuesY(
int index)
const;
100 QCPRange getValueRangeOnKeyRange(QCPAbstractPlottable *plottable_p,
bool &ok);
101 QCPRange getValueRangeOnKeyRange(
int index,
bool &ok);
103 double getYatX(
double x, QCPGraph *graph_p);
106 double getYatX(
double x,
int index = 0);
110 pappso::Trace toTrace(
const QCPRange &x_axis_range,
int index)
const;
112 const QCPGraph *graph_p)
const;
A simple container of DataPoint instances.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
std::shared_ptr< BaseTracePlotWidget > BaseTracePlotWidgetSPtr
std::shared_ptr< const BaseTracePlotWidget > BaseTracePlotWidgetCstSPtr