SDC C-Project CF Review 프로그램
LYW
2021-08-25 03152a241b9463c582b56896f5f5f73717497ab4
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
// ModelCoord.h: interface for the CModelCoord class.
//
//////////////////////////////////////////////////////////////////////
 
#if !defined(AFX_MODELCOORD_H__C092E22E_AEBD_4C88_B85C_33828F16E54E__INCLUDED_)
#define AFX_MODELCOORD_H__C092E22E_AEBD_4C88_B85C_33828F16E54E__INCLUDED_
 
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
 
#include "MosisHive.h"
#include "MosisPacket.h"
 
 
struct AFX_EXT_CLASS stCellInfo// °Ë»ç ÁÂÇ¥ ( lengths )
{
    int            m_nCell;
    
    int            m_Edge_Bm;
    int            m_Bm_Pattern;
    int            m_PatternLength;
    int            m_Pattern_Bm;
    int            m_Bm_Edge;
};
 
class AFX_EXT_CLASS CCellCoord //: public stCellCoord// °Ë»ç ÁÂÇ¥ 
{
public:
    stCellInfo        m_CellInfo;
#define MAX_CELL 50
    
public:
    int            m_Positions[MAX_CELL];// °¢ ¼¿ÀÇ start position.
    int            m_Distances[MAX_CELL];
 
    void        TestCellCoord();
    
    int            GetStartDistance(int i);// ¼¿ À§Ä¡¿¡ µû¶ó °Å¸® µ¥ÀÌÅÍ(ÀÌÀü ¼¿ ½ºÅ¸Æ® È¤Àº ±Û¶ó½º ½ºÅ¸Æ®¶óÀÎÀ¸·ÎºÎÅÍÀÇ °Å¸®)¸¦ ¸®ÅÏÇÑ´Ù.
    void        MinePositionData();//// ¼¿°Å¸® µ¥ÀÌÅ͸¦ ¼¿ ½ÃÀÛ À§Ä¡ Á¤º¸·Î º¯È¯ÇÑ´Ù.
    void        Scale(double resolution);
    
    BOOL        ReadCellCoord(CMosisPacket *pPacket);
    BOOL        WriteCellCoord(CMosisPacket *pPacket);
};
 
 
 
class AFX_EXT_CLASS CModelCoord
{
protected:
    CCellCoord        m_xCellCoord;
    CCellCoord        m_yCellCoord;
 
public:
    CModelCoord        &SelfModelCoord()    {return *this;}
    void            TestModelCoord();
    BOOL            ReadModelCoord(CMosisPacket *pPacket);
    BOOL            WriteModelCoord(CMosisPacket *pPacket);
    
    void            ChangeXY();
    friend            class    CGlassModel;
    friend            class    CScanMdel;
};
 
typedef            CMosisHive1<CModelCoord>        CModelCoordHive;
 
 
#endif // !defined(AFX_MODELCOORD_H__C092E22E_AEBD_4C88_B85C_33828F16E54E__INCLUDED_)