17 #ifndef _QmitkPlotWidget_H_
18 #define _QmitkPlotWidget_H_
23 #include <qwt_legend.h>
25 #include <qwt_plot_curve.h>
26 #include <qwt_plot_intervalcurve.h>
27 #include <qwt_symbol.h>
86 const char *title =
nullptr,
87 const char *name =
nullptr,
88 Qt::WindowFlags f =
nullptr);
104 void SetPlotTitle(
const QwtText &qwt_title);
109 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);
206 void SetCurveStyle(
unsigned int curveId,
const QwtPlotCurve::CurveStyle style);
213 void SetCurveSymbol(
unsigned int curveId, QwtSymbol *symbol);
215 void SetCurveAntialiasingOn(
unsigned int curveId);
216 void SetCurveAntialiasingOff(
unsigned int curveId);
224 void SetCurveTitle(
unsigned int curveId,
const char *title);
231 void SetErrorPen(
unsigned int curveId,
const QPen &pen);
238 void SetErrorStyleSymbols(
unsigned int curveId,
bool drawSmybols);
244 void SetLegend(QwtLegend *legend, QwtPlot::LegendPosition pos = QwtPlot::RightLegend,
double ratio = -1);
251 void SetLegendAttribute(
unsigned int curveId,
const QwtPlotCurve::LegendAttribute &attribute);
269 double *ConvertToRawArray(
const DataVector &values);
278 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;