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 > inline MathMode getMathMode( T &t ) { return MathMode( t.couplingOrMathIndex ); }
15 
20 enum class WindowFunction : int {
21  RECTANGULAR,
22  HAMMING,
23  HANN,
24  COSINE,
25  LANCZOS,
26  BARTLETT,
27  TRIANGULAR,
28  GAUSS,
29  BARTLETTHANN,
30  BLACKMAN,
31  // KAISER, ///< Kaiser window (alpha = 3.0)
32  NUTTALL,
35  FLATTOP
36 };
38 
39 QString mathModeString( MathMode mode );
40 // QString windowFunctionString(WindowFunction window);
41 } // namespace Dso
42 
43 Q_DECLARE_METATYPE( Dso::MathMode )
44 Q_DECLARE_METATYPE( Dso::WindowFunction )
45 
48  double spectrumReference = 0.0;
49  double spectrumLimit = -60.0;
50 };
MathMode getMathMode(T &t)
Definition: postprocessingsettings.h:14
Enum< Dso::WindowFunction, Dso::WindowFunction::RECTANGULAR, Dso::WindowFunction::FLATTOP > WindowFunctionEnum
Definition: postprocessingsettings.cpp:11
Definition: postprocessingsettings.h:46
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:5
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:20
Definition: TriggerDock.h:15