#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
|
};
|