23 #ifndef FREQUENCY_DISPLAY_PLOT_HPP
24 #define FREQUENCY_DISPLAY_PLOT_HPP
57 const
double units=1000.0,
58 const std::
string &strunits = "kHz");
62 void plotNewData(const std::vector<
double*> dataPoints,
64 const
double noiseFloorAmplitude, const
double peakFrequency,
65 const
double peakAmplitude, const
double timeInterval);
70 const
double noiseFloorAmplitude, const
double peakFrequency,
71 const
double peakAmplitude, const
double timeInterval);
100 void setMinFFTColor (QColor c);
120 void _resetXAxisPoints();
121 void _autoScale(
double bottom,
double top);
123 std::vector<
double*> _dataPoints;
125 QwtPlotCurve* _min_fft_plot_curve;
126 QwtPlotCurve* _max_fft_plot_curve;
127 QColor _min_fft_color;
128 bool _min_fft_visible;
129 QColor _max_fft_color;
130 bool _max_fft_visible;
131 QColor _marker_lower_intensity_color;
132 bool _marker_lower_intensity_visible;
133 QColor _marker_upper_intensity_color;
134 bool _marker_upper_intensity_visible;
135 QColor _marker_peak_amplitude_color;
136 QColor _marker_noise_floor_amplitude_color;
137 bool _marker_noise_floor_amplitude_visible;
138 QColor _marker_CF_color;
140 double _startFrequency;
141 double _stopFrequency;
145 QwtPlotMarker* _lower_intensity_marker;
146 QwtPlotMarker* _upper_intensity_marker;
148 QwtPlotMarker *_markerPeakAmplitude;
149 QwtPlotMarker *_markerNoiseFloorAmplitude;
150 QwtPlotMarker *_markerCF;
152 double* _xAxisPoints;
153 int _xAxisMultiplier;
155 double* _minFFTPoints;
156 double* _maxFFTPoints;
158 double _peakFrequency;
159 double _peakAmplitude;
161 double _noiseFloorAmplitude;
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:53
float min(float a, float b)
void setUpperIntensityLevel(const double)
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 setMarkerPeakAmplitudeColor(QColor c)
QColor min_fft_color
Definition: FrequencyDisplayPlot.h:39
bool marker_lower_intensity_visible
Definition: FrequencyDisplayPlot.h:44
QColor marker_CF_color
Definition: FrequencyDisplayPlot.h:50
const bool getMinFFTVisible() const
QColor marker_noise_floor_amplitude_color
Definition: FrequencyDisplayPlot.h:48
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:46
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
const QColor getMarkerUpperIntensityColor() const
void setMarkerUpperIntensityColor(QColor c)
void setMinFFTVisible(const bool)
void setTraceColour(QColor)
QColor marker_upper_intensity_color
Definition: FrequencyDisplayPlot.h:45
void setMarkerNoiseFloorAmplitudeColor(QColor c)
const QColor getMinFFTColor() const
void setBGColour(QColor c)
signed __int64 int64_t
Definition: stdint.h:89
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:49
void setMaxFFTVisible(const bool)
void setMarkerUpperIntensityVisible(bool visible)
QColor marker_peak_amplitude_color
Definition: FrequencyDisplayPlot.h:47
QColor marker_lower_intensity_color
Definition: FrequencyDisplayPlot.h:43