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 =
nullptr);
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);
147 bool SetCurveData(
unsigned int curveId,
165 bool SetCurveData(
unsigned int curveId,
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,
298 std::vector<std::tuple<QwtPlotCurve *, QwtPlotIntervalCurve *, QwtPlotIntervalCurve *>>
m_PlotCurveVector;