11 #ifndef DOMAIN_DISPLAY_PLOT_H
12 #define DOMAIN_DISPLAY_PLOT_H
15 #include <qwt_legend.h>
16 #include <qwt_painter.h>
18 #include <qwt_plot_canvas.h>
19 #include <qwt_plot_curve.h>
20 #include <qwt_plot_magnifier.h>
21 #include <qwt_plot_marker.h>
22 #include <qwt_plot_panner.h>
23 #include <qwt_plot_zoomer.h>
24 #include <qwt_scale_engine.h>
25 #include <qwt_scale_widget.h>
26 #include <qwt_symbol.h>
34 #include <qwt_legend_data.h>
35 #include <qwt_legend_label.h>
75 typedef QwtSymbol::Style QwtSymbolStyle;
77 Q_ENUMS(QwtSymbolStyle)
111 void replot() override = 0;
178 virtual
void setXaxis(
double min,
double max);
179 virtual
void setLineLabel(
unsigned int which, QString label);
181 virtual
void setLineColor(
unsigned int which, QColor color);
183 virtual
void setLineWidth(
unsigned int which,
int width);
185 virtual
void setLineStyle(
unsigned int which, Qt::PenStyle style);
186 virtual Qt::PenStyle
getLineStyle(
unsigned int which) const;
187 virtual
void setLineMarker(
unsigned int which, QwtSymbol::Style marker);
188 virtual QwtSymbol::Style
getLineMarker(
unsigned int which) const;
194 void setLineColor1(QColor);
int line_width3
Definition: DisplayPlot.h:57
void setLineStyle6(Qt::PenStyle)
const QColor getLineColor5() const
int getMarkerAlpha9() const
Qt::PenStyle getLineStyle5() const
int getLineWidth2() const
void setLineStyle2(Qt::PenStyle)
virtual void setLineMarker(unsigned int which, QwtSymbol::Style marker)
int getMarkerAlpha1() const
int getLineWidth4() const
QColor line_color3
Definition: DisplayPlot.h:47
Qt::PenStyle line_style2
Definition: DisplayPlot.h:66
int getXaxisLabelFontSize() const
int line_width5
Definition: DisplayPlot.h:59
void setMarkerAlpha4(int)
QColor line_color6
Definition: DisplayPlot.h:50
int getLineWidth3() const
unsigned int d_nplots
Definition: DisplayPlot.h:265
QwtSymbol::Style getLineMarker3() const
const QColor getLineColor7() const
void setLineMarker1(QwtSymbol::Style)
virtual int getLineWidth(unsigned int which) const
QColor palette_color
Definition: DisplayPlot.h:99
int getMarkerAlpha4() const
QwtSymbolStyle line_marker7
Definition: DisplayPlot.h:84
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:41
virtual void setXaxis(double min, double max)
int xaxis_label_font_size
Definition: DisplayPlot.h:103
QList< QColor > QColorList
Definition: DisplayPlot.h:31
const QColor getLineColor3() const
QwtSymbolStyle line_marker6
Definition: DisplayPlot.h:83
int getMarkerAlpha3() const
const QColor getLineColor4() const
float min(float a, float b)
const QColor getLineColor2() const
virtual void setYaxis(double min, double max)
QwtPlotZoomer * d_zoomer
Definition: DisplayPlot.h:269
void setPaletteColor(QColor c)
void setLineStyle9(Qt::PenStyle)
QwtSymbol::Style getLineMarker7() const
void setLineStyle7(Qt::PenStyle)
void setLineMarker5(QwtSymbol::Style)
int marker_alpha5
Definition: DisplayPlot.h:92
QwtSymbolStyle line_marker1
Definition: DisplayPlot.h:78
QwtSymbolStyle line_marker8
Definition: DisplayPlot.h:85
Qt::PenStyle line_style7
Definition: DisplayPlot.h:71
virtual void legendEntryChecked(QwtPlotItem *plotItem, bool on)
Qt::PenStyle getLineStyle8() const
virtual void setLineColor(unsigned int which, QColor color)
QwtSymbol::Style getLineMarker8() const
QwtPlotMagnifier * d_magnifier
Definition: DisplayPlot.h:272
QwtSymbolStyle line_marker2
Definition: DisplayPlot.h:79
int marker_alpha8
Definition: DisplayPlot.h:95
int getLineWidth6() const
void setAxisLabelFontSize(int axisId, int fs)
int line_width8
Definition: DisplayPlot.h:62
Qt::PenStyle line_style4
Definition: DisplayPlot.h:68
Qt::PenStyle line_style9
Definition: DisplayPlot.h:73
int marker_alpha3
Definition: DisplayPlot.h:90
std::vector< QwtPlotCurve * > d_plot_curve
Definition: DisplayPlot.h:266
int line_width9
Definition: DisplayPlot.h:63
void setLineColor5(QColor)
QwtSymbol::Style getLineMarker9() const
void setMarkerAlpha9(int)
void setLineColor4(QColor)
QwtSymbolStyle line_marker4
Definition: DisplayPlot.h:81
QwtSymbol::Style getLineMarker2() const
int marker_alpha2
Definition: DisplayPlot.h:89
virtual QwtSymbol::Style getLineMarker(unsigned int which) const
void setLineMarker4(QwtSymbol::Style)
void resizeSlot(QSize *s)
Qt::PenStyle getLineStyle4() const
int line_width1
Definition: DisplayPlot.h:55
QwtSymbol::Style getLineMarker5() const
int getMarkerAlpha6() const
QwtSymbolStyle line_marker3
Definition: DisplayPlot.h:80
QList< QColor > d_trace_colors
Definition: DisplayPlot.h:278
void setZoomerColor(QColor c)
QColor line_color1
Definition: DisplayPlot.h:45
QColor line_color8
Definition: DisplayPlot.h:52
QColor line_color9
Definition: DisplayPlot.h:53
void plotPointSelected(const QPointF p)
void onPickerPointSelected(const QPointF &p)
QColor line_color7
Definition: DisplayPlot.h:51
Qt::PenStyle line_style3
Definition: DisplayPlot.h:67
void setLineColor3(QColor)
virtual void setLineLabel(unsigned int which, QString label)
Qt::PenStyle getLineStyle1() const
virtual QString getLineLabel(unsigned int which)
void setLineMarker7(QwtSymbol::Style)
int getMarkerAlpha2() const
int64_t d_numPoints
Definition: DisplayPlot.h:274
virtual Qt::PenStyle getLineStyle(unsigned int which) const
void setMarkerAlpha2(int)
void setLineMarker3(QwtSymbol::Style)
Qt::PenStyle getLineStyle9() const
void setLineColor7(QColor)
QColor line_color5
Definition: DisplayPlot.h:49
int getLineWidth5() const
void setLineMarker2(QwtSymbol::Style)
void setLineStyle3(Qt::PenStyle)
void setLineStyle4(Qt::PenStyle)
bool d_stop
Definition: DisplayPlot.h:276
virtual QColor getLineColor(unsigned int which) const
QwtDblClickPlotPicker * d_picker
Definition: DisplayPlot.h:271
const QColor getLineColor9() const
void setYaxisLabelFontSize(int fs)
virtual void setMarkerAlpha(unsigned int which, int alpha)
int marker_alpha4
Definition: DisplayPlot.h:91
int getLineWidth7() const
QwtSymbol::Style getLineMarker1() const
Qt::PenStyle getLineStyle6() const
void setAxesLabelFontSize(int fs)
int axes_label_font_size
Definition: DisplayPlot.h:105
QwtSymbol::Style getLineMarker4() const
virtual void setLineWidth(unsigned int which, int width)
virtual void setLineStyle(unsigned int which, Qt::PenStyle style)
virtual int getMarkerAlpha(unsigned int which) const
const QColor getLineColor8() const
QwtSymbolStyle line_marker9
Definition: DisplayPlot.h:86
int getYaxisLabelFontSize() const
Qt::PenStyle line_style6
Definition: DisplayPlot.h:70
int marker_alpha9
Definition: DisplayPlot.h:96
virtual void disableLegend()
void setLineColor9(QColor)
void setMarkerAlpha5(int)
QColor getPaletteColor() const
QColor zoomer_color
Definition: DisplayPlot.h:98
int getLineWidth8() const
Qt::PenStyle line_style5
Definition: DisplayPlot.h:69
int getLineWidth9() const
Qt::PenStyle line_style8
Definition: DisplayPlot.h:72
virtual void setAxisLabels(bool en)
void setMarkerAlpha3(int)
int getMarkerAlpha7() const
void setLineColor2(QColor)
Qt::PenStyle line_style1
Definition: DisplayPlot.h:65
int getAxisLabelFontSize(int axisId) const
void setMarkerAlpha8(int)
void setLineColor6(QColor)
int line_width6
Definition: DisplayPlot.h:60
void setLineColor8(QColor)
const QColor getLineColor1() const
void setLineColor1(QColor)
int line_width4
Definition: DisplayPlot.h:58
QwtPlotPanner * d_panner
Definition: DisplayPlot.h:268
QwtSymbolStyle line_marker5
Definition: DisplayPlot.h:82
void setLineStyle8(Qt::PenStyle)
int marker_alpha1
Definition: DisplayPlot.h:88
void setMarkerAlpha7(int)
int marker_alpha7
Definition: DisplayPlot.h:94
QColor line_color2
Definition: DisplayPlot.h:46
int yaxis_label_font_size
Definition: DisplayPlot.h:101
int line_width7
Definition: DisplayPlot.h:61
int getAxesLabelFontSize() const
int getLineWidth1() const
void setXaxisLabelFontSize(int fs)
Qt::PenStyle getLineStyle3() const
const QColor getLineColor6() const
Qt::PenStyle getLineStyle2() const
int marker_alpha6
Definition: DisplayPlot.h:93
QwtSymbol::Style getLineMarker6() const
QColor line_color4
Definition: DisplayPlot.h:48
void setMarkerAlpha6(int)
void setLineMarker8(QwtSymbol::Style)
void setLineMarker6(QwtSymbol::Style)
void setLineStyle5(Qt::PenStyle)
void setMarkerAlpha1(int)
int line_width2
Definition: DisplayPlot.h:56
void setLineStyle1(Qt::PenStyle)
int getMarkerAlpha5() const
int getMarkerAlpha8() const
QColor getZoomerColor() const
void setLineMarker9(QwtSymbol::Style)
bool d_autoscale_state
Definition: DisplayPlot.h:280
Qt::PenStyle getLineStyle7() const