-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDNAconfig.h
127 lines (109 loc) · 3.73 KB
/
DNAconfig.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#ifndef DNACONFIG_H
#define DNACONFIG_H
#include "DNA.h"
#include "RNA.h"
#include "BkMaker.h" //ND_Neg, ND_Pos
#include "TranScripter.h"
#include "debugFile.h"
#include "ColorEyeI.h"
//enum ParaOfPara { PA_FEover = 0, PA_FElength, PA_D25RectSide, PA_NitsLv, PA_NitsDir, PA_JndGrayLv, PA_GmaBegin, PA_GmaEnd, PA_GmaAvg, PA_Max};
//NitsDirect
#define NitsLv 5
#define W5FE 0
#define W9FE 6
#define D9FE 0
#define D13FE 0
#define D21FE 0
#define D25FE 0
#define D25RectSide 10
#define CrossTalkCenterRectFE 4
#define GammaBeginLv 0
#define GammaEndLv 255
#define GammaAvg 255
class DnaConfig
{
// W R G B D
BOOL m_chkWP1, m_chkRP1, m_chkGP1, m_chkBP1, m_chkDP1; //¤¤¤ßÂI
BOOL m_chkWP5 ; //5ÂI
BOOL m_chkWP9, m_chkDP9; //9ÂI
BOOL m_chkWP49 ; //49ÂI
BOOL m_chkDP13; //13ÂI
BOOL m_chkDP21; //21ÂI
BOOL m_chkDP25; //25ÂI
BOOL m_chkWGamma, m_chkRGamma, m_chkGGamma, m_chkBGamma, m_chkDGamma;
//OTHER
BOOL m_chkCrossTalk;
BOOL m_chkNits;
//control
BOOL m_msrQuick;
//para
int m_W5FE, m_W5EdgeType;
int m_W9FE, m_W9EdgeType;
int m_D9FE, m_D9EdgeType;
int m_D13FE, m_W13EdgeType;
int m_D21FE, m_W21EdgeType;
int m_D25FE, m_W25EdgeType, m_D25RectSide;
int m_CTFE, m_CTEdgeType;
int m_NitsLv, m_NitsDirect;
int m_WGammaBegin, m_WGamma_End, m_WGamma_Avg;
int m_RGammaBegin, m_RGamma_End, m_RGamma_Avg;
int m_GGammaBegin, m_GGamma_End, m_GGamma_Avg;
int m_BGammaBegin, m_BGamma_End, m_BGamma_Avg;
TranScripter *Ts;
public:
DnaConfig();
void SetQuickSort(const BOOL& _B);
void Add_WRGBD_center();
void Add_W_center();
void Add_R_center();
void Add_G_center();
void Add_B_center();
void Add_D_center();
//W
void Add_W_5(const int& fromEdgeNum = W5FE, const int& fromEdgeType = PA_FEover);
void Add_W_9(const int& fromEdgeNum = W9FE, const int& fromEdgeType = PA_FEover);
void Add_W_49();
//Dark
void Add_D_9(const int& fromEdgeNum = D9FE, const int& fromEdgeType = PA_FEover);
void Add_D_13(const int& fromEdgeNum = D13FE, const int& fromEdgeType = PA_FEover);
void Add_D_21(const int& fromEdgeNum = D21FE, const int& fromEdgeType = PA_FEover);
void Add_D_25(const int& fromEdgeNum = D25FE, const int& rectSide = D25RectSide);
//Other
void Add_CrossTalk(const int& fromEdgeNum = CrossTalkCenterRectFE);
void Add_Nits(const int& Lv = NitsLv, const int& direct = ND_Neg);
//WRGB
void Add_W_Gamma(const int& lvBegin = GammaBeginLv, const int& lvEnd = GammaEndLv, const int& lfStep = GammaAvg);
void Add_R_Gamma(const int& lvBegin = GammaBeginLv, const int& lvEnd = GammaEndLv, const int& lfStep = GammaAvg);
void Add_G_Gamma(const int& lvBegin = GammaBeginLv, const int& lvEnd = GammaEndLv, const int& lfStep = GammaAvg);
void Add_B_Gamma(const int& lvBegin = GammaBeginLv, const int& lvEnd = GammaEndLv, const int& lfStep = GammaAvg);
//for Omd file
void Add_Omd();
void Add_Omd_Gamma();
void Add_Table_OQC_MASS_TPV();
void Add_Table_OQC_MASS_SEC();
void Add_Table_RA();
void Add_Table_SEC();
void Add_Table_OQC_MASS_NIBO();
void Add_Table_OQC_TEST();
void CreatRNA(DNA&, RNA&);
private:
RNA add_DNA_WRGBD(DNA&);
RNA add_DNA_CrossTalk(DNA&);
RNA add_DNA_Gamma(DNA&);
void showRNA(RNA& ) ;
};
inline void DnaConfig::showRNA(RNA& _R)
{
debugFile df;
for (std::vector<Cartridge2>::iterator itor = _R.Begin(); itor != _R.End(); ++itor)
df.Add( itor->ShowMe() );
CString pathDesktop;
CColorEyeIApp *pApp = dynamic_cast<CColorEyeIApp*>(AfxGetApp());
pathDesktop.Format("%s\\DNAconfig.log", pApp->GetDesktopPath());
df.Out2File(pathDesktop);
}
inline void DnaConfig::SetQuickSort(const BOOL& _B)
{
m_msrQuick = _B;
}
#endif