-
Notifications
You must be signed in to change notification settings - Fork 0
/
OAPUserConfig.h
67 lines (46 loc) · 1.27 KB
/
OAPUserConfig.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
-------------------------------------------------------------------------
OBJECT NAME: UserConfig.h
FULL NAME: User Configuration
COPYRIGHT: University Corporation for Atmospheric Research, 1997-2018
-------------------------------------------------------------------------
*/
#ifndef _OAP_USERCONFIG_H_
#define _OAP_USERCONFIG_H_
namespace OAP
{
/**
* These are the particle sizing algorithm options. I wonder if this should
* be in Probe.h...
*/
enum Sizing { BASIC, ENTIRE_IN, CENTER_IN, RECONSTRUCTION };
/**
* Class to contain user chosen processing options from the GUI interface.
*/
class UserConfig
{
public:
UserConfig() : _rejectZeroAreaImage(true), _density(1.0), _areaRatioRej(0.1), _sizingAlgo(BASIC)
{ }
float
GetDensity() const { return _density; }
float
GetAreaRatioReject() const { return _areaRatioRej; }
Sizing
GetConcentration() const { return _sizingAlgo ; }
bool
RejectZeroAreaImage() const { return(true); }
void
SetWaterDensity(float dens) { _density = dens; }
void
SetAreaRatioReject(float ratio) { _areaRatioRej = ratio; }
void
SetSizingAlgo(Sizing algo) { _sizingAlgo = algo; }
protected:
bool _rejectZeroAreaImage;
float _density;
float _areaRatioRej;
Sizing _sizingAlgo;
};
}
#endif