|
70 | 70 | namespace RawSettingsConstants { |
71 | 71 |
|
72 | 72 | //MainWindow |
73 | | -inline constexpr int kMainWindowSizeW = 1200; ///< Width of MainWindow |
74 | | -inline constexpr int kMainWindowSizeH = 800; ///< Height of MainWindow |
75 | | -inline constexpr int kMainWindowPositionX = 50; ///< Initial window position x |
76 | | -inline constexpr int kMainWindowPositionY = 50; ///< Initial window position y |
| 73 | +inline constexpr int MAINWINDOW_WINDOW_SIZE_W = 1200; ///< Width of MainWindow |
| 74 | +inline constexpr int MAINWINDOW_WINDOW_SIZE_H = 800; ///< Height of MainWindow |
| 75 | +inline constexpr int MAINWINDOW_WINDOW_POSITION_X = 50; ///< Initial window position x |
| 76 | +inline constexpr int MAINWINDOW_WINDOW_POSITION_Y = 50; ///< Initial window position y |
77 | 77 |
|
78 | 78 | //RawModel |
79 | | -inline constexpr int kModelWindowSize = 4016; ///< Length of data window to preload [samples]. Must satisfy (value + kModelNumFilterTaps) = 2^n |
80 | | -inline constexpr int kModelReloadPos = 2000; ///< Distance from window edge triggering reload [samples] |
81 | | -inline constexpr int kModelMaxWindows = 3; ///< Maximum number of preloaded windows |
82 | | -inline constexpr int kModelNumFilterTaps = 80; ///< Filter tap count for FFT zero-padding |
83 | | -inline constexpr int kModelMaxNumFilterTaps = 0; ///< Maximum filter tap count |
| 79 | +inline constexpr int MODEL_WINDOW_SIZE = 4016; ///< Length of data window to preload [samples]. Must satisfy (value + MODEL_NUM_FILTER_TAPS) = 2^n |
| 80 | +inline constexpr int MODEL_RELOAD_POS = 2000; ///< Distance from window edge triggering reload [samples] |
| 81 | +inline constexpr int MODEL_MAX_WINDOWS = 3; ///< Maximum number of preloaded windows |
| 82 | +inline constexpr int MODEL_NUM_FILTER_TAPS = 80; ///< Filter tap count for FFT zero-padding |
| 83 | +inline constexpr int MODEL_MAX_NUM_FILTER_TAPS = 0; ///< Maximum filter tap count |
84 | 84 |
|
85 | 85 | //RawDelegate — Layout |
86 | | -inline constexpr int kDelegatePlotHeight = 40; ///< Height of a single channel row [pixels] |
87 | | -inline constexpr int kDelegateDx = 1; ///< Pixels per sample → plot resolution |
88 | | -inline constexpr int kDelegateNHLines = 6; ///< Horizontal grid lines per row |
| 86 | +inline constexpr int DELEGATE_PLOT_HEIGHT = 40; ///< Height of a single channel row [pixels] |
| 87 | +inline constexpr int DELEGATE_DX = 1; ///< Pixels per sample → plot resolution |
| 88 | +inline constexpr int DELEGATE_NHLINES = 6; ///< Horizontal grid lines per row |
89 | 89 |
|
90 | 90 | //RawDelegate — Maximum channel amplitudes (by FiffChInfo type) |
91 | | -inline constexpr double kDelegateMaxMegGrad = 1e-10; ///< kind=FIFFV_MEG_CH, unit=FIFF_UNIT_T_M |
92 | | -inline constexpr double kDelegateMaxMegMag = 1e-11; ///< kind=FIFFV_MEG_CH, unit=FIFF_UNIT_T |
93 | | -inline constexpr double kDelegateMaxEeg = 1e-4; ///< kind=FIFFV_EEG_CH |
94 | | -inline constexpr double kDelegateMaxEog = 1e-3; ///< kind=FIFFV_EOG_CH |
95 | | -inline constexpr double kDelegateMaxStim = 5.0; ///< kind=FIFFV_STIM_CH |
| 91 | +inline constexpr double DELEGATE_MAX_MEG_GRAD = 1e-10; ///< kind=FIFFV_MEG_CH, unit=FIFF_UNIT_T_M |
| 92 | +inline constexpr double DELEGATE_MAX_MEG_MAG = 1e-11; ///< kind=FIFFV_MEG_CH, unit=FIFF_UNIT_T |
| 93 | +inline constexpr double DELEGATE_MAX_EEG = 1e-4; ///< kind=FIFFV_EEG_CH |
| 94 | +inline constexpr double DELEGATE_MAX_EOG = 1e-3; ///< kind=FIFFV_EOG_CH |
| 95 | +inline constexpr double DELEGATE_MAX_STIM = 5.0; ///< kind=FIFFV_STIM_CH |
96 | 96 |
|
97 | 97 | //Event markers |
98 | | -inline constexpr int kEventMarkerWidth = 3; ///< Event marker width [pixels] |
99 | | -inline constexpr int kEventMarkerOpacity = 110; ///< Event marker opacity [0..255] |
| 98 | +inline constexpr int EVENT_MARKER_WIDTH = 3; ///< Event marker width [pixels] |
| 99 | +inline constexpr int EVENT_MARKER_OPACITY = 110; ///< Event marker opacity [0..255] |
100 | 100 |
|
101 | 101 | //Data markers |
102 | | -inline constexpr int kDataMarkerWidth = 3; ///< Data marker width [pixels] |
103 | | -inline constexpr int kDataMarkerOpacity = 200; ///< Data marker opacity [0..255] |
104 | | -inline constexpr int kDataMarkerInitialX = 74; ///< Initial x position after file load [pixels] |
105 | | -inline constexpr int kDataMarkerLabelVOffset = 20; ///< Label offset above marker line [pixels] |
| 102 | +inline constexpr int DATA_MARKER_WIDTH = 3; ///< Data marker width [pixels] |
| 103 | +inline constexpr int DATA_MARKER_OPACITY = 200; ///< Data marker opacity [0..255] |
| 104 | +inline constexpr int DATA_MARKER_INITIAL_X = 74; ///< Initial x position after file load [pixels] |
| 105 | +inline constexpr int DATA_MARKER_LABEL_V_OFFSET = 20; ///< Label offset above marker line [pixels] |
106 | 106 |
|
107 | 107 | //RawDelegate — Initial/fallback scaling |
108 | | -inline constexpr double kDelegateInitialMaxValue = 65530.0; ///< Placeholder max before file load |
109 | | -inline constexpr double kDelegateFallbackScale = 1e-9; ///< Fallback for unknown channel types |
| 108 | +inline constexpr double DELEGATE_INITIAL_MAX_VALUE = 65530.0; ///< Placeholder max before file load |
| 109 | +inline constexpr double DELEGATE_FALLBACK_SCALE = 1e-9; ///< Fallback for unknown channel types |
110 | 110 |
|
111 | 111 | //Keyboard navigation |
112 | | -inline constexpr int kRawViewKeyScrollStep = 25; ///< Pixels per Left/Right key press |
| 112 | +inline constexpr int RAWVIEW_KEYBOARD_SCROLL_STEP = 25; ///< Pixels per Left/Right key press |
113 | 113 |
|
114 | 114 | //Filter design |
115 | | -inline constexpr double kFilterDefaultTransBWRatio = 0.2; ///< Transition-band width as fraction of Nyquist |
| 115 | +inline constexpr double FILTER_DEFAULT_TRANS_BW_RATIO = 0.2; ///< Transition-band width as fraction of Nyquist |
116 | 116 |
|
117 | 117 | //Default channel amplitude scales (for scale map initialization) |
118 | | -inline constexpr double kDelegateScaleMegGrad = 400e-15 * 100; ///< fT/m (×100 because FIFF stores fT/cm) |
119 | | -inline constexpr double kDelegateScaleMegMag = 1.2e-12; |
120 | | -inline constexpr double kDelegateScaleEeg = 30e-6; |
121 | | -inline constexpr double kDelegateScaleEog = 150e-6; |
122 | | -inline constexpr double kDelegateScaleEmg = 1e-3; |
123 | | -inline constexpr double kDelegateScaleEcg = 1e-3; |
124 | | -inline constexpr double kDelegateScaleMisc = 1.0; |
125 | | -inline constexpr double kDelegateScaleStim = 5.0; |
| 118 | +inline constexpr double DELEGATE_SCALE_MEG_GRAD = 400e-15 * 100; ///< fT/m (×100 because FIFF stores fT/cm) |
| 119 | +inline constexpr double DELEGATE_SCALE_MEG_MAG = 1.2e-12; |
| 120 | +inline constexpr double DELEGATE_SCALE_EEG = 30e-6; |
| 121 | +inline constexpr double DELEGATE_SCALE_EOG = 150e-6; |
| 122 | +inline constexpr double DELEGATE_SCALE_EMG = 1e-3; |
| 123 | +inline constexpr double DELEGATE_SCALE_ECG = 1e-3; |
| 124 | +inline constexpr double DELEGATE_SCALE_MISC = 1.0; |
| 125 | +inline constexpr double DELEGATE_SCALE_STIM = 5.0; |
126 | 126 |
|
127 | 127 | } // namespace RawSettingsConstants |
128 | 128 |
|
|
0 commit comments