13 #ifndef QmitkPlotWidget_h
14 #define QmitkPlotWidget_h
19 #include <qwt_legend.h>
21 #include <qwt_plot_curve.h>
22 #include <qwt_plot_intervalcurve.h>
23 #include <qwt_symbol.h>
85 const char *title =
nullptr,
86 const char *name =
nullptr,
87 Qt::WindowFlags f = {});
103 void SetPlotTitle(
const QwtText &qwt_title);
108 void SetPlotTitle(
const char *title);
117 unsigned int InsertCurve(
const char *title, QColor color = QColor(Qt::black));
125 void SetAxisTitle(
int axis,
const char *title);
135 bool SetCurveData(
unsigned int curveId,
const DataVector &xValues,
const DataVector &yValues);
147 bool SetCurveData(
unsigned int curveId,
148 const DataVector &xValues,
149 const DataVector &yValues,
150 const DataVector &yLowerError,
151 const DataVector &yUpperError);
165 bool SetCurveData(
unsigned int curveId,
166 const DataVector &xValues,
167 const DataVector &yValues,
168 const DataVector &xLowerError,
169 const DataVector &xUpperError,
170 const DataVector &yLowerError,
171 const DataVector &yUpperError);
180 bool SetCurveData(
unsigned int curveId,
const XYDataVector &data);
187 void SetCurvePen(
unsigned int curveId,
const QPen &pen);
199 void SetCurveBrush(
unsigned int curveId,
const QBrush &brush);
207 void SetCurveStyle(
unsigned int curveId,
const QwtPlotCurve::CurveStyle style);
215 void SetCurveSymbol(
unsigned int curveId, QwtSymbol *symbol);
217 void SetCurveAntialiasingOn(
unsigned int curveId);
218 void SetCurveAntialiasingOff(
unsigned int curveId);
226 void SetCurveTitle(
unsigned int curveId,
const char *title);
233 void SetErrorPen(
unsigned int curveId,
const QPen &pen);
240 void SetErrorStyleSymbols(
unsigned int curveId,
bool drawSmybols);
246 void SetLegend(QwtLegend *legend, QwtPlot::LegendPosition pos = QwtPlot::RightLegend,
double ratio = -1);
253 void SetLegendAttribute(
unsigned int curveId,
const QwtPlotCurve::LegendAttribute &attribute);
271 double *ConvertToRawArray(
const DataVector &values);
280 double *ConvertToRawArray(
const XYDataVector &values,
unsigned int component);
292 bool AddErrorIntervalCurve(
unsigned int curveId,
293 const DataVector &lessError,
294 const DataVector &moreError,
298 std::vector<std::tuple<QwtPlotCurve *, QwtPlotIntervalCurve *, QwtPlotIntervalCurve *>>
m_PlotCurveVector;