SDC C-Project CF Review 프로그램
LYW
2021-06-09 f143e5ece742a275d1e360c55e829d21e706b26d
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
// ScanRecipe.h: interface for the CScanRecipe class.
//
//////////////////////////////////////////////////////////////////////
 
#if !defined(AFX_SCANRECIPE_H__EAC0D9E3_4298_453A_90FD_0E4FC7C53682__INCLUDED_)
#define AFX_SCANRECIPE_H__EAC0D9E3_4298_453A_90FD_0E4FC7C53682__INCLUDED_
 
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
 
 
#include "ScanModel.h"
#include "SystemRecipe.h"
 
 
// ½ºÄµ Á¤º¸,
class AFX_EXT_CLASS CScanData2 : public stScanData
{
public:
    double            m_ScanResolution;    // ¸ðÅÍ À̵¿Ãà ÇØ»óµµ. CSystemData¿¡¼­ ¹°·Á ¹Þ´Â´Ù. ÀνºÆåÅÍ¿¡¼­ »ç¿ëÇÒ¶§..
 
public:
    CScanData2&    operator=(stScanData& System)        {SelfScanData()= System;        return *this;}
    double            GetLeft()                            {return m_AccumCoord;}
    double            GetRight(int frameWidth)            {return GetLeft()+ (frameWidth- m_LeftMargin- m_RightMargin)*m_ConvResolution;}
 
    friend class CScanModel;
};
 
 
// ½ºÄµÁ¤º¸, ½ºÄµº° °Ë»ç ¹æ¹ý+ ¿µ¿ª Á¤º¸.
class AFX_EXT_CLASS CScanRecipe
{
public:
    int                m_iCamera;            // Ä«¸Þ¶ó index
    int                m_iScan;            // ½ºÄË index
 
    stSystemData    m_SystemData;        // Ä«¸Þ¶ó Á¤º¸.
    CScanData2        m_ScanData;            // ½ºÄË Á¤º¸.
protected:
    CScanModelHive    m_ScanModelHive;    // °Ë»ç ¿µ¿ª Á¤º¸.
 
public:
    BOOL            SetScanModelCnt(int nModel, BOOL bAppend)        {return m_ScanModelHive.SetSize(nModel, bAppend);}
    int                GetScanModelCnt()                                {return m_ScanModelHive.GetSize();}
    CScanModel        *GetScanModel(int iModel)                        {return m_ScanModelHive.GetData(iModel);}
 
public:
    BOOL            MakeScanRecipe(int iCamera, int iScan, CGlassRecipe &GlassRecipe, CSystemRecipe &SystemRecipe);
};
typedef                CMosisHive2<CScanRecipe>        CScanRecipeHive2;
 
 
 
#endif // !defined(AFX_SCANRECIPE_H__EAC0D9E3_4298_453A_90FD_0E4FC7C53682__INCLUDED_)