OpenHantek
postprocessingsettings.h
1 #pragma once
2 
3 #include "utils/enumclass.h"
4 #include <QMetaType>
5 namespace Dso {
6 
9 enum class MathMode : unsigned { ADD_CH1_CH2, SUB_CH2_FROM_CH1, SUB_CH1_FROM_CH2 };
11 
12 template<class T>
13 inline MathMode getMathMode(T& t) { return (MathMode)t.couplingOrMathIndex; }
14 
19 enum class WindowFunction : int {
20  RECTANGULAR,
21  HAMMING,
22  HANN,
23  COSINE,
24  LANCZOS,
25  BARTLETT,
26  TRIANGULAR,
27  GAUSS,
28  BARTLETTHANN,
29  BLACKMAN,
30  // KAISER, ///< Kaiser window (alpha = 3.0)
31  NUTTALL,
32  BLACKMANHARRIS,
33  BLACKMANNUTTALL,
34  FLATTOP
35 };
37 
38 QString mathModeString(MathMode mode);
39 QString windowFunctionString(WindowFunction window);
40 }
41 
42 Q_DECLARE_METATYPE(Dso::MathMode)
43 Q_DECLARE_METATYPE(Dso::WindowFunction)
44 
46  Dso::WindowFunction spectrumWindow = Dso::WindowFunction::HANN;
47  double spectrumReference = 0.0;
48  double spectrumLimit = -20.0;
49 };
Definition: postprocessingsettings.h:45
Definition: enumclass.h:6
Definition: TriggerDock.h:15