-
Notifications
You must be signed in to change notification settings - Fork 14
/
ParameterMgr.h
65 lines (59 loc) · 1.48 KB
/
ParameterMgr.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
#pragma once
#include "CMesh.h"
#include "Parameter.h"
class ParameterMgr
{
public:
ParameterMgr(void);
~ParameterMgr(void);
RichParameterSet* getDataParameterSet()
{
return &data;
}
RichParameterSet* getDrawerParameterSet()
{
return &drawer;
}
RichParameterSet* getGlareaParameterSet()
{
return &glarea;
}
RichParameterSet* getWLopParameterSet()
{
return &wLop;
}
RichParameterSet* getSkeletonParameterSet()
{
return &skeleton;
}
RichParameterSet* getNormalSmootherParameterSet()
{
return &norSmooth;
}
RichParameterSet* getUpsamplingParameterSet()
{
return &upsampling;
}
void setGlobalParameter(QString paraName, const Value& val);
typedef enum { GLAREA, DATA, DRAWER, WLOP, NOR_SMOOTH, SKELETON, UPSAMPLING } ParaType;
private:
void initDataMgrParameter();
void initDrawerParameter();
void initGlareaParameter();
void initWLopParameter();
void initSkeletonParameter();
void initNormalSmootherParameter();
void initUpsamplingParameter();
public:
RichParameterSet glarea;
RichParameterSet data;
RichParameterSet drawer;
RichParameterSet wLop;
RichParameterSet norSmooth;
RichParameterSet skeleton;
RichParameterSet upsampling;
private:
static int init_time;
double grid_r;
};
extern ParameterMgr global_paraMgr;