23 #ifndef FREQUENCY_DISPLAY_PLOT_HPP
24 #define FREQUENCY_DISPLAY_PLOT_HPP
67 const
double units = 1000.0,
68 const
std::
string& strunits = "kHz");
73 const int64_t numDataPoints,
74 const
double noiseFloorAmplitude,
75 const
double peakFrequency,
76 const
double peakAmplitude,
77 const
double timeInterval);
81 const int64_t numDataPoints,
82 const
double noiseFloorAmplitude,
83 const
double peakFrequency,
84 const
double peakAmplitude,
85 const
double timeInterval);
113 void setMinFFTColor(QColor c);
144 void _resetXAxisPoints();
145 void _autoScale(
double bottom,
double top);
147 std::vector<
double*> d_ydata;
149 QwtPlotCurve* d_min_fft_plot_curve;
150 QwtPlotCurve* d_max_fft_plot_curve;
151 QColor d_min_fft_color;
152 bool d_min_fft_visible;
153 QColor d_max_fft_color;
154 bool d_max_fft_visible;
155 QColor d_marker_lower_intensity_color;
156 bool d_marker_lower_intensity_visible;
157 QColor d_marker_upper_intensity_color;
158 bool d_marker_upper_intensity_visible;
159 QColor d_marker_peak_amplitude_color;
160 QColor d_marker_noise_floor_amplitude_color;
161 bool d_marker_noise_floor_amplitude_visible;
162 QColor d_marker_cf_color;
164 double d_start_frequency;
165 double d_stop_frequency;
166 double d_center_frequency;
171 QwtPlotMarker* d_lower_intensity_marker;
172 QwtPlotMarker* d_upper_intensity_marker;
174 QwtPlotMarker* d_marker_peak_amplitude;
175 QwtPlotMarker* d_marker_noise_floor_amplitude;
176 QwtPlotMarker* d_marker_cf;
179 int d_xdata_multiplier;
181 double* d_min_fft_data;
182 double* d_max_fft_data;
184 double d_peak_frequency;
185 double d_peak_amplitude;
187 double d_noise_floor_amplitude;
189 bool d_autoscale_shot;
191 QwtPlotMarker* d_trigger_line;
const bool getMarkerNoiseFloorAmplitudeVisible() const
void setAutoScale(bool state)
void setMarkerLowerIntensityVisible(bool visible)
bool min_fft_visible
Definition: FrequencyDisplayPlot.h:41
const bool getMarkerLowerIntensityVisible() const
const bool getMaxFFTVisible() const
const QColor getMaxFFTColor() const
void onPickerPointSelected6(const QPointF &p)
void setFrequencyRange(const double, const double, const double units=1000.0, const std::string &strunits="kHz")
void setMarkerCFColor(QColor c)
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:61
float min(float a, float b)
void setUpperIntensityLevel(const double)
void setTriggerLine(double value)
void plotNewData(const std::vector< double * > dataPoints, const int64_t numDataPoints, const double noiseFloorAmplitude, const double peakFrequency, const double peakAmplitude, const double timeInterval)
double getStartFrequency() const
void setMaxFFTColor(QColor c)
void attachTriggerLine(bool en)
void setMarkerPeakAmplitudeColor(QColor c)
void setPlotPosHalf(bool half)
QColor min_fft_color
Definition: FrequencyDisplayPlot.h:39
bool marker_lower_intensity_visible
Definition: FrequencyDisplayPlot.h:46
QColor marker_CF_color
Definition: FrequencyDisplayPlot.h:59
const bool getMinFFTVisible() const
QColor marker_noise_floor_amplitude_color
Definition: FrequencyDisplayPlot.h:55
const QColor getMarkerNoiseFloorAmplitudeColor() const
void showCFMarker(const bool)
void setLowerIntensityLevel(const double)
void onPickerPointSelected(const QwtDoublePoint &p)
bool max_fft_visible
Definition: FrequencyDisplayPlot.h:42
bool marker_upper_intensity_visible
Definition: FrequencyDisplayPlot.h:50
const bool getMarkerUpperIntensityVisible() const
void setYaxis(double min, double max)
QWidget for displaying frequency domain (PSD) plots.
Definition: FrequencyDisplayPlot.h:35
const QColor getMarkerLowerIntensityColor() const
const QColor getMarkerPeakAmplitudeColor() const
void setMarkerNoiseFloorAmplitudeVisible(bool visible)
double getStopFrequency() const
void setYLabel(const std::string &label, const std::string &unit)
const QColor getMarkerUpperIntensityColor() const
void setMarkerUpperIntensityColor(QColor c)
void setMinFFTVisible(const bool)
void setTraceColour(QColor)
QColor marker_upper_intensity_color
Definition: FrequencyDisplayPlot.h:48
void setMarkerNoiseFloorAmplitudeColor(QColor c)
const QColor getMinFFTColor() const
void setBGColour(QColor c)
QColor max_fft_color
Definition: FrequencyDisplayPlot.h:40
void setMinFFTColor(QColor c)
void setMarkerLowerIntensityColor(QColor c)
const QColor getMarkerCFColor() const
bool marker_noise_floor_amplitude_visible
Definition: FrequencyDisplayPlot.h:58
void setMaxFFTVisible(const bool)
void setMarkerUpperIntensityVisible(bool visible)
QColor marker_peak_amplitude_color
Definition: FrequencyDisplayPlot.h:52
QColor marker_lower_intensity_color
Definition: FrequencyDisplayPlot.h:44