|
|
@@ -73,6 +73,16 @@ namespace OTSModelSharp
|
|
|
|
|
|
const String STR_SYSTEM_DATA = "SysData";
|
|
|
|
|
|
+ COTSProgMgrParamFile m_LpProgMgrParamFile;
|
|
|
+
|
|
|
+ COTSGeneralParameters m_LpGenParam;
|
|
|
+
|
|
|
+ COTSProjMgrFile m_LpProjMgr;
|
|
|
+
|
|
|
+ COTSImageProcessParam m_LpImgProParam;
|
|
|
+
|
|
|
+ COTSXRayParam m_LpXRayParam;
|
|
|
+
|
|
|
public COTSProgMgrParamFile()
|
|
|
{
|
|
|
Init();
|
|
|
@@ -99,10 +109,7 @@ namespace OTSModelSharp
|
|
|
Duplicate(a_poSource);
|
|
|
}
|
|
|
|
|
|
- public COTSImgScanPrm GetImageScanParam() { return null; }
|
|
|
-
|
|
|
- public COTSImageProcessParam GetImageProcParam() { return null; }
|
|
|
- public COTSXRayParam GetXRayParam() { return null; }
|
|
|
+ public COTSImgScanPrm GetImageScanParam() { return null; }
|
|
|
|
|
|
//COTSProgMgrParamFile(const COTSProgMgrParamFile&); // copy constructor
|
|
|
//COTSProgMgrParamFile& operator=(const COTSProgMgrParamFile&); // =operator
|
|
|
@@ -131,7 +138,7 @@ namespace OTSModelSharp
|
|
|
return m_strPathName;
|
|
|
}
|
|
|
|
|
|
- public COTSGeneralParameters GetGenParam() { return null; }
|
|
|
+
|
|
|
// set path name
|
|
|
public void SetPathName(string a_strPathName)
|
|
|
{
|
|
|
@@ -637,5 +644,151 @@ namespace OTSModelSharp
|
|
|
m_strPathName = a_oSource.m_strPathName;
|
|
|
m_pParam = new COTSGeneralParameters(a_oSource.m_pParam);
|
|
|
}
|
|
|
+
|
|
|
+ // set general parameter
|
|
|
+ public bool SetGenParam(COTSGeneralParameters a_pGenParam)
|
|
|
+ {
|
|
|
+ if (m_LpProgMgrParamFile == null)
|
|
|
+ {
|
|
|
+ logger.Trace("SetGenParam: invalid pointer.");
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ COTSGeneralParameters pGenParam = GetCOTSGeneralParameters();
|
|
|
+
|
|
|
+ COTSProgMgrParamFile pProgFile = GetCOTSProgMgrParamFile();
|
|
|
+
|
|
|
+ pProgFile.SetDefaultParam(pGenParam);
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ public COTSGeneralParameters GetCOTSGeneralParameters()
|
|
|
+ {
|
|
|
+ return m_LpGenParam;
|
|
|
+ }
|
|
|
+
|
|
|
+ public COTSProgMgrParamFile GetCOTSProgMgrParamFile()
|
|
|
+ {
|
|
|
+ return m_LpProgMgrParamFile;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public COTSGeneralParameters GetGenParam()
|
|
|
+ {
|
|
|
+ if (m_LpProgMgrParamFile == null)
|
|
|
+ {
|
|
|
+ logger.Trace("GetGenParam: invalid pointer.");
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ COTSProgMgrParamFile pProgMgr = GetCOTSProgMgrParamFilePtr();
|
|
|
+
|
|
|
+
|
|
|
+ COTSGeneralParameters pGenParam = pProgMgr.GetDefaultParam();
|
|
|
+
|
|
|
+ COTSGeneralParameters OTSGeneralParameters = new COTSGeneralParameters(pGenParam);
|
|
|
+
|
|
|
+ return OTSGeneralParameters;
|
|
|
+ }
|
|
|
+
|
|
|
+ public COTSProgMgrParamFile GetCOTSProgMgrParamFilePtr()
|
|
|
+ {
|
|
|
+ return m_LpProgMgrParamFile;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ // set image scan parameter
|
|
|
+ public void SetImageScanParam(COTSImgScanPrm a_pImageScanParam)
|
|
|
+ {
|
|
|
+ if (m_LpProjMgr == null)
|
|
|
+ {
|
|
|
+ logger.Error("SetImageScanParam: invalid pointer.");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ COTSProjMgrFile pProjMgrFile = GetCProjMgrPtr();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ pProjMgrFile.GetDefaultParameters().GetMsrParam().SetImageScanParam(a_pImageScanParam.GetImgScanPrmPtr());
|
|
|
+ }
|
|
|
+
|
|
|
+ public COTSProjMgrFile GetCProjMgrPtr()
|
|
|
+ {
|
|
|
+ return m_LpProjMgr;
|
|
|
+ }
|
|
|
+
|
|
|
+ public COTSImageProcessParam GetImageProcParam()
|
|
|
+ {
|
|
|
+ if (m_LpProgMgrParamFile == null)
|
|
|
+ {
|
|
|
+ logger.Error("GetImageProcParam: invalid pointer.");
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ COTSProgMgrParamFile pProgMgr = GetCOTSProgMgrParamFilePtr();
|
|
|
+
|
|
|
+
|
|
|
+ COTSImageProcessParam pImgProc = pProgMgr.GetDefaultParam().GetMsrParam().GetImageProcessParam();
|
|
|
+
|
|
|
+ COTSImageProcessParam pImgProcClr = new COTSImageProcessParam(pImgProc);
|
|
|
+
|
|
|
+ return pImgProcClr;
|
|
|
+ }
|
|
|
+
|
|
|
+ // set image process parameter
|
|
|
+ public void SetImageProcParam(COTSImageProcessParam a_pImageProcParam)
|
|
|
+ {
|
|
|
+ if (m_LpProjMgr == null)
|
|
|
+ {
|
|
|
+ logger.Error("SetImageProcParam: invalid pointer.");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ COTSProjMgrFile pProjMgrFile = GetCProjMgrPtr();
|
|
|
+
|
|
|
+ pProjMgrFile.GetDefaultParameters().GetMsrParam().SetImageProcessParam(GetImgPrcPrmPtr());
|
|
|
+ }
|
|
|
+
|
|
|
+ public COTSImageProcessParam GetImgPrcPrmPtr()
|
|
|
+ {
|
|
|
+ return m_LpImgProParam;
|
|
|
+ }
|
|
|
+
|
|
|
+ public COTSXRayParam GetXRayParam()
|
|
|
+ {
|
|
|
+ if (m_LpProgMgrParamFile == null)
|
|
|
+ {
|
|
|
+ logger.Error("GetXRayParam: invalid pointer.");
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ COTSProgMgrParamFile pProgMgr = GetCOTSProgMgrParamFilePtr();
|
|
|
+
|
|
|
+
|
|
|
+ COTSXRayParam pXrayPrm = pProgMgr.GetDefaultParam().GetMsrParam().GetXRayParam();
|
|
|
+
|
|
|
+
|
|
|
+ COTSXRayParam XrayPrmClr = new COTSXRayParam(pXrayPrm);
|
|
|
+
|
|
|
+ return XrayPrmClr;
|
|
|
+ }
|
|
|
+
|
|
|
+ // set XRay parameter
|
|
|
+ public void SetXRayParam(COTSXRayParam a_pXRayParam)
|
|
|
+ {
|
|
|
+ if (m_LpProjMgr == null)
|
|
|
+ {
|
|
|
+ logger.Error("SetXRayParam: invalid pointer.");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ COTSProjMgrFile pProjMgrFile = GetCProjMgrPtr();
|
|
|
+
|
|
|
+
|
|
|
+ pProjMgrFile.GetDefaultParameters().GetMsrParam().SetXRayParam(GetCOTSXRayPrmPtr());
|
|
|
+ }
|
|
|
+
|
|
|
+ // get x-ray pointer
|
|
|
+ public COTSXRayParam GetCOTSXRayPrmPtr()
|
|
|
+ {
|
|
|
+ return m_LpXRayParam;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|