SDC C-Project CF Review 프로그램
LYW
2021-05-26 5e3a8e2508c719bb48273d873b17b636c7cef4d7
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
#pragma once
 
#include <vector>
 
#include "IOCPNetwork/IOCPNetwork2Parent.h"
class CNetServer;
class CAlignRecipe;
class CAlignResult;
 
class CAlignServerControl : public IIOCPNetwork2Parent
{
public:
    CAlignServerControl(void);
    virtual ~CAlignServerControl(void);
 
    BOOL SendAlignResult(const CAlignRecipe* pRecipe, const CAlignResult* pResult);
 
    void SetAlignResult(const CAlignRecipe* pRecipe, const CAlignResult* pResult);
 
protected:
    int        InitAlignServer();
    void    DeinitAlignServer();
    // net iocp 2 parent
    virtual void    IOCPNet2P_Connected(int Type);
    virtual void    IOCPNet2P_Disconnected(int Type, int nModuleNo = -1);
    virtual BOOL    IOCPNet2P_Received(int Type, CNetPacket* pPacket, __int64 nContext = -1);
 
protected:
    CNetServer*        m_pServerSocket;
 
    int            m_nResultCode;                        // result code ( 1 => success )
    double        m_dFirstOriginPixelX;                // origin first mark pixel x
    double        m_dFirstOriginPixelY;                // origin first mark pixel Y
    double        m_dSecondOriginPixelX;                // origin second mark pixel x    
    double        m_dSecondOriginPixelY;                // origin second mark pixel Y
    double        m_dFirstFindPixelX;                    // find first mark pixel x
    double        m_dFirstFindPixelY;                    // find first mark pixel y
    double        m_dSecondFindPixelX;                // find second mark pixel x
    double        m_dSecondFindPixelY;                // find second mark pixel y
 
    int            m_nFirstCameraDirX;                    // first cam x dir
    int            m_nFirstCameraDirY;                    // first cam y dir
    int            m_nSecondCameraDirX;                // second cam x dir
    int            m_nSecondCameraDirY;                // second cam y dir
 
    double        m_dFirstCameraResolution;            // first cam resolution
    double        m_dSecondCameraResolution;            // second cam resolution
};