-
Notifications
You must be signed in to change notification settings - Fork 42
/
ParamManager.h
64 lines (50 loc) · 1.1 KB
/
ParamManager.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
#pragma once
#include <vector>
#define __pi 3.1415926535897932384626
struct DualContouringParam {
double m_dbGridLength;
int m_nAcceptNumber;
double m_dbRelativeDistance;
double m_dbRelativeZ;
double m_dbWeight;
double m_dbErrorTolerance;
double m_dbSingularTolerance;
};
struct SnappingParam {
bool m_bEnableSnapping;
char m_pSPBFile[ 1024 ];
char m_pHistFile[ 1024 ];
double m_dbErrorTolerance;
double m_dbMinimumLength;
};
class CParamManager
{
public:
CParamManager(void);
~CParamManager(void);
protected:
static CParamManager * singletonInstance;
public:
static CParamManager * GetParamManager( void )
{
if ( singletonInstance == NULL )
{
singletonInstance = new CParamManager( );
}
return singletonInstance;
}
void RegisterCommandLine( int argc, char * argv[] );
private:
void GetNames();
void LoadConfiguration();
public:
char m_pExeName[ 1024 ];
char m_pTrueName[ 1024 ];
char m_pDirName[ 1024 ];
char m_pIniName[ 1024 ];
char m_pWorkingDir[ 1024 ];
DualContouringParam m_cDCParam;
bool m_bWallRectangle;
bool m_bAntiNonManifold;
SnappingParam m_cSnappingParam;
};