-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathXlsGamma.cpp
66 lines (57 loc) · 1.92 KB
/
XlsGamma.cpp
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
// XlsGamma.cpp: implementation of the CXlsGamma class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "XlsGamma.h"
#include "Nucleotide.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CXlsFile2* CXlsGamma::iCellNO(std::vector<Cartridge2>::size_type ModuleNO)
{
m_ModuleNO = ModuleNO;
return this;
}
//////////////////////////////////////////////////////////////////////////
CXlsFile2* CXlsGamma::iPanelID(CString strPanelID , std::vector<Cartridge2>::size_type ModuleNO)
{
iCellNO(ModuleNO)->iPanelID(strPanelID);
return this;
}
CXlsFile2* CXlsGamma::iData(RNA&, std::vector<Cartridge2>::size_type ModuleNO)
{
iCellNO(ModuleNO)->iData(m_vCar);
return this;
}
//////////////////////////////////////////////////////////////////////////
CXlsFile2* CXlsGamma::iPanelID(CString strPanelID)
{
SelectSheet(1)->SelectCell('E'+13*m_ModuleNO, '2', 'F'+13*m_ModuleNO, '2')->SetCell(strPanelID);
return this;
}
CXlsFile2* CXlsGamma::iData(RNA& vCar)
{
m_vCar = vCar;
if (vCar.HaveSeveral("¥Õ","gamma")) idWGamma();
SetVisible(true);
return this;
}
void CXlsGamma::idWGamma()
{
SelectSheet("Color Data");
int index(0);
CString gammaIndex;
for(index = 0; index < PnGamma; ++index)
{
gammaIndex.Format("%d", index+1);
SelectCell((char)('E'+13*m_ModuleNO), 53+index)->SetCell("%3.2f", m_vCar.fFind("¥Õ","Gamma", gammaIndex,"0 255 255",VluK_Lv));
SelectCell((char)('F'+13*m_ModuleNO), 53+index)->SetCell("%1.4f", m_vCar.fFind("¥Õ","Gamma", gammaIndex,"0 255 255",VluK_Sx));
SelectCell((char)('G'+13*m_ModuleNO), 53+index)->SetCell("%1.4f", m_vCar.fFind("¥Õ","Gamma", gammaIndex,"0 255 255",VluK_Sy));
gammaIndex.Format("%d", m_vCar.Size());
}
}