|  | SDRAngel
    4.11.5
    Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware. | 
#include <glspectrumgui.h>
 Inheritance diagram for GLSpectrumGUI:
 Inheritance diagram for GLSpectrumGUI: Collaboration diagram for GLSpectrumGUI:
 Collaboration diagram for GLSpectrumGUI:| Public Types | |
| enum | AveragingMode { AvgModeNone, AvgModeMoving, AvgModeFixed, AvgModeMax } | 
| Public Member Functions | |
| GLSpectrumGUI (QWidget *parent=NULL) | |
| ~GLSpectrumGUI () | |
| void | setBuddies (MessageQueue *messageQueue, SpectrumVis *spectrumVis, GLSpectrum *glSpectrum) | 
| void | resetToDefaults () | 
| virtual QByteArray | serialize () const | 
| virtual bool | deserialize (const QByteArray &data) | 
|  Public Member Functions inherited from Serializable | |
| virtual | ~Serializable () | 
| Private Slots | |
| void | on_fftWindow_currentIndexChanged (int index) | 
| void | on_fftSize_currentIndexChanged (int index) | 
| void | on_refLevel_currentIndexChanged (int index) | 
| void | on_levelRange_currentIndexChanged (int index) | 
| void | on_decay_valueChanged (int index) | 
| void | on_decayDivisor_valueChanged (int index) | 
| void | on_stroke_valueChanged (int index) | 
| void | on_gridIntensity_valueChanged (int index) | 
| void | on_traceIntensity_valueChanged (int index) | 
| void | on_averagingMode_currentIndexChanged (int index) | 
| void | on_averaging_currentIndexChanged (int index) | 
| void | on_linscale_toggled (bool checked) | 
| void | on_waterfall_toggled (bool checked) | 
| void | on_histogram_toggled (bool checked) | 
| void | on_maxHold_toggled (bool checked) | 
| void | on_current_toggled (bool checked) | 
| void | on_invert_toggled (bool checked) | 
| void | on_grid_toggled (bool checked) | 
| void | on_clearSpectrum_clicked (bool checked) | 
| void | handleInputMessages () | 
| Private Member Functions | |
| void | applySettings () | 
| int | getAveragingIndex (int averaging) const | 
| int | getAveragingValue (int averagingIndex) const | 
| void | setAveragingCombo () | 
| void | setNumberStr (int n, QString &s) | 
| void | setNumberStr (float v, int decimalPlaces, QString &s) | 
| void | setAveragingToolitp () | 
| bool | handleMessage (const Message &message) | 
| Private Attributes | |
| Ui::GLSpectrumGUI * | ui | 
| MessageQueue * | m_messageQueueToVis | 
| SpectrumVis * | m_spectrumVis | 
| GLSpectrum * | m_glSpectrum | 
| MessageQueue | m_messageQueue | 
| qint32 | m_fftSize | 
| qint32 | m_fftOverlap | 
| qint32 | m_fftWindow | 
| Real | m_refLevel | 
| Real | m_powerRange | 
| int | m_decay | 
| int | m_decayDivisor | 
| int | m_histogramStroke | 
| int | m_displayGridIntensity | 
| int | m_displayTraceIntensity | 
| bool | m_displayWaterfall | 
| bool | m_invertedWaterfall | 
| bool | m_displayMaxHold | 
| bool | m_displayCurrent | 
| bool | m_displayHistogram | 
| bool | m_displayGrid | 
| bool | m_invert | 
| AveragingMode | m_averagingMode | 
| int | m_averagingIndex | 
| int | m_averagingMaxScale | 
| Max power of 10 multiplier to 2,5,10 base ex: 2 -> 2,5,10,20,50,100,200,500,1000.  More... | |
| unsigned int | m_averagingNb | 
| bool | m_linear | 
| linear else logarithmic scale  More... | |
Definition at line 17 of file glspectrumgui.h.
| Enumerator | |
|---|---|
| AvgModeNone | |
| AvgModeMoving | |
| AvgModeFixed | |
| AvgModeMax | |
Definition at line 21 of file glspectrumgui.h.
| 
 | explicit | 
Definition at line 8 of file glspectrumgui.cpp.
References arg(), handleInputMessages(), m_messageQueue, on_linscale_toggled(), setAveragingCombo(), and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| GLSpectrumGUI::~GLSpectrumGUI | ( | ) | 
Definition at line 48 of file glspectrumgui.cpp.
References ui.
| 
 | private | 
Definition at line 159 of file glspectrumgui.cpp.
References arg(), SpectrumVis::configure(), i, m_averagingIndex, m_averagingMode, m_averagingNb, m_decay, m_decayDivisor, m_displayCurrent, m_displayGrid, m_displayGridIntensity, m_displayHistogram, m_displayMaxHold, m_displayTraceIntensity, m_displayWaterfall, m_fftOverlap, m_fftSize, m_fftWindow, m_glSpectrum, m_histogramStroke, m_invert, m_invertedWaterfall, m_linear, m_messageQueueToVis, m_powerRange, m_refLevel, m_spectrumVis, setAveragingToolitp(), GLSpectrum::setDecay(), GLSpectrum::setDecayDivisor(), GLSpectrum::setDisplayCurrent(), GLSpectrum::setDisplayGrid(), GLSpectrum::setDisplayGridIntensity(), GLSpectrum::setDisplayHistogram(), GLSpectrum::setDisplayMaxHold(), GLSpectrum::setDisplayWaterfall(), GLSpectrum::setHistoStroke(), GLSpectrum::setInvertedWaterfall(), GLSpectrum::setLinear(), and ui.
Referenced by deserialize(), on_decayDivisor_valueChanged(), on_stroke_valueChanged(), resetToDefaults(), and setBuddies().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | virtual | 
Implements Serializable.
Definition at line 112 of file glspectrumgui.cpp.
References applySettings(), AvgModeMax, getAveragingIndex(), getAveragingValue(), SimpleDeserializer::getVersion(), FFTWindow::Hamming, SimpleDeserializer::isValid(), m_averagingIndex, m_averagingMode, m_averagingNb, m_decay, m_decayDivisor, m_displayCurrent, m_displayGrid, m_displayGridIntensity, m_displayHistogram, m_displayMaxHold, m_displayTraceIntensity, m_displayWaterfall, m_fftOverlap, m_fftSize, m_fftWindow, m_glSpectrum, m_histogramStroke, m_invert, m_invertedWaterfall, m_linear, m_powerRange, m_refLevel, SimpleDeserializer::readBool(), SimpleDeserializer::readReal(), SimpleDeserializer::readS32(), resetToDefaults(), and GLSpectrum::setWaterfallShare().
Referenced by MainWindow::loadPresetSettings().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 462 of file glspectrumgui.cpp.
References i, and m_averagingMaxScale.
Referenced by deserialize().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 494 of file glspectrumgui.cpp.
References m_averagingMaxScale.
Referenced by deserialize(), on_averaging_currentIndexChanged(), and serialize().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privateslot | 
Definition at line 599 of file glspectrumgui.cpp.
References Message::getIdentifier(), handleMessage(), m_messageQueue, and MessageQueue::pop().
Referenced by GLSpectrumGUI().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 588 of file glspectrumgui.cpp.
References Message::match(), and setAveragingToolitp().
Referenced by handleInputMessages().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privateslot | 
Definition at line 281 of file glspectrumgui.cpp.
References AvgModeFixed, AvgModeMax, SpectrumVis::configure(), getAveragingValue(), m_averagingIndex, m_averagingMode, m_averagingNb, m_fftOverlap, m_fftSize, m_fftWindow, m_glSpectrum, m_linear, m_messageQueueToVis, m_spectrumVis, setAveragingToolitp(), and GLSpectrum::setTimingRate().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 245 of file glspectrumgui.cpp.
References AvgModeFixed, AvgModeMax, AvgModeMoving, SpectrumVis::configure(), m_averagingMaxScale, m_averagingMode, m_averagingNb, m_fftOverlap, m_fftSize, m_fftWindow, m_glSpectrum, m_linear, m_messageQueueToVis, m_spectrumVis, setAveragingCombo(), and GLSpectrum::setTimingRate().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 454 of file glspectrumgui.cpp.
References GLSpectrum::clearSpectrumHistogram(), and m_glSpectrum.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 412 of file glspectrumgui.cpp.
References m_displayCurrent, m_glSpectrum, and GLSpectrum::setDisplayCurrent().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 361 of file glspectrumgui.cpp.
References arg(), m_decay, m_glSpectrum, GLSpectrum::setDecay(), and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 370 of file glspectrumgui.cpp.
References applySettings(), m_decayDivisor, and m_glSpectrum.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 230 of file glspectrumgui.cpp.
References SpectrumVis::configure(), m_averagingMode, m_averagingNb, m_fftOverlap, m_fftSize, m_fftWindow, m_linear, m_messageQueueToVis, m_spectrumVis, and setAveragingToolitp().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 216 of file glspectrumgui.cpp.
References SpectrumVis::configure(), m_averagingMode, m_averagingNb, m_fftOverlap, m_fftSize, m_fftWindow, m_linear, m_messageQueueToVis, and m_spectrumVis.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 428 of file glspectrumgui.cpp.
References m_displayGrid, m_glSpectrum, and GLSpectrum::setDisplayGrid().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 436 of file glspectrumgui.cpp.
References arg(), m_displayGridIntensity, m_glSpectrum, GLSpectrum::setDisplayGridIntensity(), and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 396 of file glspectrumgui.cpp.
References m_displayHistogram, m_glSpectrum, and GLSpectrum::setDisplayHistogram().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 420 of file glspectrumgui.cpp.
References m_glSpectrum, m_invert, and GLSpectrum::setInvertedWaterfall().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 347 of file glspectrumgui.cpp.
References m_glSpectrum, m_linear, m_powerRange, m_refLevel, GLSpectrum::setPowerRange(), and GLSpectrum::setReferenceLevel().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 308 of file glspectrumgui.cpp.
References SpectrumVis::configure(), m_averagingMode, m_averagingNb, m_fftOverlap, m_fftSize, m_fftWindow, m_glSpectrum, m_linear, m_messageQueueToVis, m_powerRange, m_refLevel, m_spectrumVis, GLSpectrum::setLinear(), GLSpectrum::setPowerRange(), and GLSpectrum::setReferenceLevel().
Referenced by GLSpectrumGUI().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privateslot | 
Definition at line 404 of file glspectrumgui.cpp.
References m_displayMaxHold, m_glSpectrum, and GLSpectrum::setDisplayMaxHold().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 333 of file glspectrumgui.cpp.
References m_glSpectrum, m_linear, m_powerRange, m_refLevel, GLSpectrum::setPowerRange(), and GLSpectrum::setReferenceLevel().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 379 of file glspectrumgui.cpp.
References applySettings(), m_glSpectrum, and m_histogramStroke.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 445 of file glspectrumgui.cpp.
References arg(), m_displayTraceIntensity, m_glSpectrum, GLSpectrum::setDisplayTraceIntensity(), and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 388 of file glspectrumgui.cpp.
References m_displayWaterfall, m_glSpectrum, and GLSpectrum::setDisplayWaterfall().
 Here is the call graph for this function:
 Here is the call graph for this function:| void GLSpectrumGUI::resetToDefaults | ( | ) | 
Definition at line 62 of file glspectrumgui.cpp.
References applySettings(), AvgModeNone, FFTWindow::Hamming, m_averagingIndex, m_averagingMode, m_decay, m_decayDivisor, m_displayGrid, m_displayGridIntensity, m_displayHistogram, m_displayMaxHold, m_displayWaterfall, m_fftOverlap, m_fftSize, m_fftWindow, m_histogramStroke, m_invert, m_invertedWaterfall, m_linear, m_powerRange, and m_refLevel.
Referenced by deserialize().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | virtual | 
Implements Serializable.
Definition at line 85 of file glspectrumgui.cpp.
References SimpleSerializer::final(), getAveragingValue(), GLSpectrum::getWaterfallShare(), m_averagingIndex, m_averagingMode, m_decay, m_decayDivisor, m_displayCurrent, m_displayGrid, m_displayGridIntensity, m_displayHistogram, m_displayMaxHold, m_displayTraceIntensity, m_displayWaterfall, m_fftOverlap, m_fftSize, m_fftWindow, m_glSpectrum, m_histogramStroke, m_invert, m_invertedWaterfall, m_linear, m_powerRange, m_refLevel, SimpleSerializer::writeBool(), SimpleSerializer::writeReal(), and SimpleSerializer::writeS32().
Referenced by MainWindow::savePresetSettings().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 515 of file glspectrumgui.cpp.
References i, m_averagingMaxScale, setNumberStr(), and ui.
Referenced by GLSpectrumGUI(), and on_averagingMode_currentIndexChanged().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 573 of file glspectrumgui.cpp.
References arg(), GLSpectrum::getSampleRate(), m_averagingNb, m_fftSize, m_glSpectrum, setNumberStr(), and ui.
Referenced by applySettings(), handleMessage(), on_averaging_currentIndexChanged(), and on_fftSize_currentIndexChanged().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| void GLSpectrumGUI::setBuddies | ( | MessageQueue * | messageQueue, | 
| SpectrumVis * | spectrumVis, | ||
| GLSpectrum * | glSpectrum | ||
| ) | 
Definition at line 53 of file glspectrumgui.cpp.
References applySettings(), m_glSpectrum, m_messageQueue, m_messageQueueToVis, m_spectrumVis, and GLSpectrum::setMessageQueueToGUI().
Referenced by DeviceUISet::DeviceUISet().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 539 of file glspectrumgui.cpp.
Referenced by setAveragingCombo(), and setAveragingToolitp().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 554 of file glspectrumgui.cpp.
| 
 | private | 
Definition at line 64 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_averaging_currentIndexChanged(), resetToDefaults(), and serialize().
| 
 | private | 
Max power of 10 multiplier to 2,5,10 base ex: 2 -> 2,5,10,20,50,100,200,500,1000.
Definition at line 65 of file glspectrumgui.h.
Referenced by getAveragingIndex(), getAveragingValue(), on_averagingMode_currentIndexChanged(), and setAveragingCombo().
| 
 | private | 
Definition at line 63 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_averaging_currentIndexChanged(), on_averagingMode_currentIndexChanged(), on_fftSize_currentIndexChanged(), on_fftWindow_currentIndexChanged(), on_linscale_toggled(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 66 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_averaging_currentIndexChanged(), on_averagingMode_currentIndexChanged(), on_fftSize_currentIndexChanged(), on_fftWindow_currentIndexChanged(), on_linscale_toggled(), and setAveragingToolitp().
| 
 | private | 
Definition at line 51 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_decay_valueChanged(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 52 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_decayDivisor_valueChanged(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 59 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_current_toggled(), and serialize().
| 
 | private | 
Definition at line 61 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_grid_toggled(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 54 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_gridIntensity_valueChanged(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 60 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_histogram_toggled(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 58 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_maxHold_toggled(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 55 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_traceIntensity_valueChanged(), and serialize().
| 
 | private | 
Definition at line 56 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_waterfall_toggled(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 47 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_averaging_currentIndexChanged(), on_averagingMode_currentIndexChanged(), on_fftSize_currentIndexChanged(), on_fftWindow_currentIndexChanged(), on_linscale_toggled(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 46 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_averaging_currentIndexChanged(), on_averagingMode_currentIndexChanged(), on_fftSize_currentIndexChanged(), on_fftWindow_currentIndexChanged(), on_linscale_toggled(), resetToDefaults(), serialize(), and setAveragingToolitp().
| 
 | private | 
Definition at line 48 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_averaging_currentIndexChanged(), on_averagingMode_currentIndexChanged(), on_fftSize_currentIndexChanged(), on_fftWindow_currentIndexChanged(), on_linscale_toggled(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 43 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_averaging_currentIndexChanged(), on_averagingMode_currentIndexChanged(), on_clearSpectrum_clicked(), on_current_toggled(), on_decay_valueChanged(), on_decayDivisor_valueChanged(), on_grid_toggled(), on_gridIntensity_valueChanged(), on_histogram_toggled(), on_invert_toggled(), on_levelRange_currentIndexChanged(), on_linscale_toggled(), on_maxHold_toggled(), on_refLevel_currentIndexChanged(), on_stroke_valueChanged(), on_traceIntensity_valueChanged(), on_waterfall_toggled(), serialize(), setAveragingToolitp(), and setBuddies().
| 
 | private | 
Definition at line 53 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_stroke_valueChanged(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 62 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_invert_toggled(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 57 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), resetToDefaults(), and serialize().
| 
 | private | 
linear else logarithmic scale
Definition at line 67 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_averaging_currentIndexChanged(), on_averagingMode_currentIndexChanged(), on_fftSize_currentIndexChanged(), on_fftWindow_currentIndexChanged(), on_levelRange_currentIndexChanged(), on_linscale_toggled(), on_refLevel_currentIndexChanged(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 44 of file glspectrumgui.h.
Referenced by GLSpectrumGUI(), handleInputMessages(), and setBuddies().
| 
 | private | 
Definition at line 41 of file glspectrumgui.h.
Referenced by applySettings(), on_averaging_currentIndexChanged(), on_averagingMode_currentIndexChanged(), on_fftSize_currentIndexChanged(), on_fftWindow_currentIndexChanged(), on_linscale_toggled(), and setBuddies().
| 
 | private | 
Definition at line 50 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_levelRange_currentIndexChanged(), on_linscale_toggled(), on_refLevel_currentIndexChanged(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 49 of file glspectrumgui.h.
Referenced by applySettings(), deserialize(), on_levelRange_currentIndexChanged(), on_linscale_toggled(), on_refLevel_currentIndexChanged(), resetToDefaults(), and serialize().
| 
 | private | 
Definition at line 42 of file glspectrumgui.h.
Referenced by applySettings(), on_averaging_currentIndexChanged(), on_averagingMode_currentIndexChanged(), on_fftSize_currentIndexChanged(), on_fftWindow_currentIndexChanged(), on_linscale_toggled(), and setBuddies().
| 
 | private | 
Definition at line 39 of file glspectrumgui.h.
Referenced by applySettings(), GLSpectrumGUI(), on_decay_valueChanged(), on_gridIntensity_valueChanged(), on_traceIntensity_valueChanged(), setAveragingCombo(), setAveragingToolitp(), and ~GLSpectrumGUI().
 1.8.13
 1.8.13