OpenHantek
postprocessingsettings.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #pragma once
4 
5 #include "utils/enumclass.h"
6 #include <QMetaType>
7 namespace Dso {
8 
13 
14 template<class T>
15 inline MathMode getMathMode(T& t) { return MathMode(t.couplingOrMathIndex); }
16 
21 enum class WindowFunction : int {
22  RECTANGULAR,
23  HAMMING,
24  HANN,
25  COSINE,
26  LANCZOS,
27  BARTLETT,
28  TRIANGULAR,
29  GAUSS,
30  BARTLETTHANN,
31  BLACKMAN,
32  // KAISER, ///< Kaiser window (alpha = 3.0)
33  NUTTALL,
36  FLATTOP
37 };
39 
40 QString mathModeString(MathMode mode);
41 // QString windowFunctionString(WindowFunction window);
42 }
43 
44 Q_DECLARE_METATYPE(Dso::MathMode)
45 Q_DECLARE_METATYPE(Dso::WindowFunction)
46 
49  double spectrumReference = 0.0;
50  double spectrumLimit = -60.0;
51 };
MathMode getMathMode(T &t)
Definition: postprocessingsettings.h:15
Enum< Dso::WindowFunction, Dso::WindowFunction::RECTANGULAR, Dso::WindowFunction::FLATTOP > WindowFunctionEnum
Definition: postprocessingsettings.cpp:11
Definition: postprocessingsettings.h:47
Bartlett-Hann window.
Rectangular window (aka Dirichlet)
MathMode
The different math modes for the math-channel.
Definition: postprocessingsettings.h:11
QString mathModeString(MathMode mode)
Return string representation of the given math mode.
Definition: postprocessingsettings.cpp:16
Triangular window (Endpoints != 0)
Enum< Dso::MathMode, Dso::MathMode::ADD_CH1_CH2, Dso::MathMode::AC_CH2 > MathModeEnum
Definition: postprocessingsettings.cpp:10
Blackman-Harris window.
Gauss window (simga = 0.4)
Lanczos window (aka Sinc)
Blackman window (alpha = 0.16)
Bartlett window (Endpoints == 0)
Cosine window (aka Sine)
Definition: enumclass.h:6
Blackman-Nuttall window.
Nuttall window, cont. first deriv.
WindowFunction
The supported window functions. These are needed for spectrum analysis and are applied to the sample ...
Definition: postprocessingsettings.h:21
Definition: TriggerDock.h:15