 |
GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
|
|
Go to the documentation of this file.
11 #ifndef FREQUENCY_DISPLAY_PLOT_HPP
12 #define FREQUENCY_DISPLAY_PLOT_HPP
55 const
double units = 1000.0,
56 const std::
string& strunits = "kHz");
60 void plotNewData(const std::vector<
double*> dataPoints,
61 const int64_t numDataPoints,
62 const
double noiseFloorAmplitude,
63 const
double peakFrequency,
64 const
double peakAmplitude,
65 const
double timeInterval);
69 const int64_t numDataPoints,
70 const
double noiseFloorAmplitude,
71 const
double peakFrequency,
72 const
double peakAmplitude,
73 const
double timeInterval);
123 void setYLabel(const std::
string& label, const std::
string& unit);
132 void _resetXAxisPoints();
133 void _autoScale(
double bottom,
double top);
135 std::vector<
double*> d_ydata;
137 QwtPlotCurve* d_min_fft_plot_curve;
138 QwtPlotCurve* d_max_fft_plot_curve;
139 QColor d_min_fft_color;
140 bool d_min_fft_visible;
141 QColor d_max_fft_color;
142 bool d_max_fft_visible;
143 QColor d_marker_lower_intensity_color;
144 bool d_marker_lower_intensity_visible;
145 QColor d_marker_upper_intensity_color;
146 bool d_marker_upper_intensity_visible;
147 QColor d_marker_peak_amplitude_color;
148 QColor d_marker_noise_floor_amplitude_color;
149 bool d_marker_noise_floor_amplitude_visible;
150 QColor d_marker_cf_color;
152 double d_start_frequency;
153 double d_stop_frequency;
154 double d_center_frequency;
159 QwtPlotMarker* d_lower_intensity_marker;
160 QwtPlotMarker* d_upper_intensity_marker;
162 QwtPlotMarker* d_marker_peak_amplitude;
163 QwtPlotMarker* d_marker_noise_floor_amplitude;
164 QwtPlotMarker* d_marker_cf;
167 int d_xdata_multiplier;
169 double* d_min_fft_data;
170 double* d_max_fft_data;
172 double d_peak_frequency;
173 double d_peak_amplitude;
175 double d_noise_floor_amplitude;
177 bool d_autoscale_shot;
179 QwtPlotMarker* d_trigger_line;
void setMarkerNoiseFloorAmplitudeColor(QColor c)
void setMarkerUpperIntensityVisible(bool visible)
const QColor getMarkerCFColor() const
void onPickerPointSelected(const QwtDoublePoint &p)
QColor marker_lower_intensity_color
Definition: FrequencyDisplayPlot.h:32
void setLowerIntensityLevel(const double)
bool max_fft_visible
Definition: FrequencyDisplayPlot.h:30
const QColor getMarkerNoiseFloorAmplitudeColor() const
void setTraceColour(QColor)
const QColor getMarkerPeakAmplitudeColor() const
const bool getMarkerNoiseFloorAmplitudeVisible() const
float min(float a, float b)
double getStopFrequency() const
QWidget for displaying frequency domain (PSD) plots.
Definition: FrequencyDisplayPlot.h:23
QColor min_fft_color
Definition: FrequencyDisplayPlot.h:27
void setMinFFTColor(QColor c)
QColor marker_upper_intensity_color
Definition: FrequencyDisplayPlot.h:36
QColor marker_CF_color
Definition: FrequencyDisplayPlot.h:47
void setMarkerCFColor(QColor c)
const QColor getMarkerUpperIntensityColor() const
void setMarkerPeakAmplitudeColor(QColor c)
void setMarkerLowerIntensityVisible(bool visible)
void showCFMarker(const bool)
void setUpperIntensityLevel(const double)
void setMinFFTVisible(const bool)
void setMarkerUpperIntensityColor(QColor c)
bool min_fft_visible
Definition: FrequencyDisplayPlot.h:29
QColor marker_peak_amplitude_color
Definition: FrequencyDisplayPlot.h:40
QWidget base plot to build QTGUI plotting tools.
Definition: DisplayPlot.h:49
void setAutoScale(bool state)
void plotNewData(const std::vector< double * > dataPoints, const int64_t numDataPoints, const double noiseFloorAmplitude, const double peakFrequency, const double peakAmplitude, const double timeInterval)
void setBGColour(QColor c)
const QColor getMarkerLowerIntensityColor() const
QColor max_fft_color
Definition: FrequencyDisplayPlot.h:28
void setMarkerLowerIntensityColor(QColor c)
const bool getMinFFTVisible() const
void setMaxFFTVisible(const bool)
const QColor getMinFFTColor() const
void onPickerPointSelected6(const QPointF &p)
double getStartFrequency() const
void setYaxis(double min, double max) override
const bool getMaxFFTVisible() const
void setPlotPosHalf(bool half)
bool marker_upper_intensity_visible
Definition: FrequencyDisplayPlot.h:38
void setTriggerLine(double value)
const bool getMarkerLowerIntensityVisible() const
QColor marker_noise_floor_amplitude_color
Definition: FrequencyDisplayPlot.h:43
bool marker_lower_intensity_visible
Definition: FrequencyDisplayPlot.h:34
const bool getMarkerUpperIntensityVisible() const
void setFrequencyRange(const double, const double, const double units=1000.0, const std::string &strunits="kHz")
void setMarkerNoiseFloorAmplitudeVisible(bool visible)
void setYLabel(const std::string &label, const std::string &unit)
const QColor getMaxFFTColor() const
bool marker_noise_floor_amplitude_visible
Definition: FrequencyDisplayPlot.h:46
void setMaxFFTColor(QColor c)
void attachTriggerLine(bool en)