11#ifndef VECTOR_DISPLAY_PLOT_HPP
12#define VECTOR_DISPLAY_PLOT_HPP
57 const int64_t numDataPoints,
58 const double refLevel,
59 const double timeInterval);
110 void _resetXAxisPoints();
111 void _autoScale(
double bottom,
double top);
113 std::vector<std::vector<double>> d_ydata;
115 QwtPlotCurve* d_min_vec_plot_curve;
116 QwtPlotCurve* d_max_vec_plot_curve;
117 QColor d_min_vec_color;
118 bool d_min_vec_visible;
119 QColor d_max_vec_color;
120 bool d_max_vec_visible;
121 QColor d_marker_lower_intensity_color;
122 bool d_marker_lower_intensity_visible;
123 QColor d_marker_upper_intensity_color;
124 bool d_marker_upper_intensity_visible;
125 QColor d_marker_ref_level_color;
126 bool d_marker_ref_level_visible;
128 double d_x_axis_start = 0;
129 double d_x_axis_step = 1.0;
134 QwtPlotMarker* d_lower_intensity_marker;
135 QwtPlotMarker* d_upper_intensity_marker;
137 QwtPlotMarker* d_marker_ref_level;
139 std::vector<double> d_xdata;
141 QString d_x_axis_label;
142 QString d_y_axis_label;
144 std::vector<double> d_min_vec_data;
145 std::vector<double> d_max_vec_data;
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:42
QWidget for displaying 1D-vector plots.
Definition: VectorDisplayPlot.h:24
QColor marker_upper_intensity_color
Definition: VectorDisplayPlot.h:36
VectorDisplayPlot & operator=(const VectorDisplayPlot &)=delete
void plotNewData(const std::vector< double * > dataPoints, const int64_t numDataPoints, const double refLevel, const double timeInterval)
void setUpperIntensityLevel(const double)
const bool getMarkerUpperIntensityVisible() const
void setYAxisLabel(const QString &label)
void setMinVecColor(QColor c)
~VectorDisplayPlot() override
void setYAxisUnit(const QString &unit)
void setMarkerRefLevelAmplitudeVisible(bool visible)
bool min_vec_visible
Definition: VectorDisplayPlot.h:29
const QColor getMarkerUpperIntensityColor() const
void onPickerPointSelected(const QPointF &p)
QColor marker_lower_intensity_color
Definition: VectorDisplayPlot.h:32
void setMarkerLowerIntensityColor(QColor c)
void setMaxVecColor(QColor c)
void setLowerIntensityLevel(const double)
bool max_vec_visible
Definition: VectorDisplayPlot.h:30
void setXAxisValues(const double start, const double step=1.0)
VectorDisplayPlot(const VectorDisplayPlot &)=delete
void setXAxisLabel(const QString &label)
QColor min_vec_color
Definition: VectorDisplayPlot.h:27
void setAutoScale(bool state)
void setMinVecVisible(const bool)
void setMaxVecVisible(const bool)
VectorDisplayPlot(VectorDisplayPlot &&)=delete
void setXAxisUnit(const QString &unit)
VectorDisplayPlot(int nplots, QWidget *)
void setTraceColour(QColor)
const bool getMarkerRefLevelAmplitudeVisible() const
const QColor getMinVecColor() const
void setMarkerUpperIntensityVisible(bool visible)
const bool getMaxVecVisible() const
bool marker_ref_level_visible
Definition: VectorDisplayPlot.h:42
const bool getMinVecVisible() const
void setMarkerLowerIntensityVisible(bool visible)
const bool getMarkerLowerIntensityVisible() const
void setMarkerUpperIntensityColor(QColor c)
void setMarkerRefLevelAmplitudeColor(QColor c)
void setBGColour(QColor c)
QColor max_vec_color
Definition: VectorDisplayPlot.h:28
VectorDisplayPlot & operator=(VectorDisplayPlot &&)=delete
QColor marker_ref_level_color
Definition: VectorDisplayPlot.h:40
const QColor getMarkerRefLevelAmplitudeColor() const
const QColor getMaxVecColor() const
bool marker_lower_intensity_visible
Definition: VectorDisplayPlot.h:34
const QColor getMarkerLowerIntensityColor() const
void setYaxis(double min, double max) override
bool marker_upper_intensity_visible
Definition: VectorDisplayPlot.h:38
float min(float a, float b)