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> 84 const char *title =
nullptr,
85 const char *name =
nullptr,
86 Qt::WindowFlags f =
nullptr);
102 void SetPlotTitle(
const QwtText &qwt_title);
107 void SetPlotTitle(
const char *title);
115 unsigned int InsertCurve(
const char *title, QColor color = QColor(Qt::black));
123 void SetAxisTitle(
int axis,
const char *title);
133 bool SetCurveData(
unsigned int curveId,
const DataVector &xValues,
const DataVector &yValues);
145 bool SetCurveData(
unsigned int curveId,
146 const DataVector &xValues,
147 const DataVector &yValues,
148 const DataVector &yLowerError,
149 const DataVector &yUpperError);
163 bool SetCurveData(
unsigned int curveId,
164 const DataVector &xValues,
165 const DataVector &yValues,
166 const DataVector &xLowerError,
167 const DataVector &xUpperError,
168 const DataVector &yLowerError,
169 const DataVector &yUpperError);
178 bool SetCurveData(
unsigned int curveId,
const XYDataVector &data);
185 void SetCurvePen(
unsigned int curveId,
const QPen &pen);
197 void SetCurveBrush(
unsigned int curveId,
const QBrush &brush);
204 void SetCurveStyle(
unsigned int curveId,
const QwtPlotCurve::CurveStyle style);
211 void SetCurveSymbol(
unsigned int curveId, QwtSymbol *symbol);
213 void SetCurveAntialiasingOn(
unsigned int curveId);
214 void SetCurveAntialiasingOff(
unsigned int curveId);
222 void SetCurveTitle(
unsigned int curveId,
const char *title);
229 void SetErrorPen(
unsigned int curveId,
const QPen &pen);
236 void SetErrorStyleSymbols(
unsigned int curveId,
bool drawSmybols);
242 void SetLegend(QwtLegend *legend, QwtPlot::LegendPosition pos = QwtPlot::RightLegend,
double ratio = -1);
249 void SetLegendAttribute(
unsigned int curveId,
const QwtPlotCurve::LegendAttribute &attribute);
267 double *ConvertToRawArray(
const DataVector &values);
276 double *ConvertToRawArray(
const XYDataVector &values,
unsigned int component);
290 bool AddErrorIntervalCurve(
unsigned int curveId,
291 const DataVector &lessError,
292 const DataVector &moreError,
296 std::vector<std::tuple<QwtPlotCurve *, QwtPlotIntervalCurve *, QwtPlotIntervalCurve *>>
m_PlotCurveVector;