-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConfigManager.h
More file actions
39 lines (32 loc) · 1.05 KB
/
ConfigManager.h
File metadata and controls
39 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include "MicroscopeManager.h"
#include "ui_MicroscopeManagerGUI.h"
#include "ui_ConfigDialog.h"
#define SLICES_PER_VOLUME '1'
#define VOLUMES_PER_SECOND '2'
#define VOLUME_SCALE_MIN '3'
#define VOLUME_SCALE_MAX '4'
#define ODORANT_ORDER '5'
#define STATE_ORDER '6'
#define LASER_MODE '7'
#define SCANNER_AMPLITUDE '8'
class ConfigManager : public QObject
{
Q_OBJECT
public:
ConfigManager();
void WriteConfigFile(std::string filename, Ui::ConfigDialog* cfg);
void ReadConfigFile(std::string filename, MicroscopeManager* mm, Ui::MicroscopeManagerGUIClass* ui, QObject* mainWindow);
void GetExperimentSettings(double* vsMin, double* vsMax, int* fpv, int* vps, int *lm, double* sa, std::string* exp, std::string* expMan);
signals:
void serialDeviceReady(std::string, std::string, int, std::vector<std::string>, std::vector<std::string> startCommands);
private:
double volumeScaleMin;
double volumeScaleMax;
int framesPerVolume;
int volumesPerSecond;
int laserMode;
double scannerAmplitude;
std::string experimentDevice;
std::string imageManager;
};