You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# pragma once
# include "Camera.h"
# include "EnumPropertieType.h"
# include "hawkvisctrlctrl1.h"
//霍克视觉(CCD 坐标的基准点是左上角)
class CCameraHawkvis : public CCamera
{
public :
CCameraHawkvis ( void ) ;
~ CCameraHawkvis ( void ) ;
virtual CMFCPropertyGridProperty * CreatGridProperty ( ) ;
virtual MODULE GetModuleType ( ) { return _HAWKVIS_CCD_PROP ; } ;
virtual void Ini ( ) ;
virtual void ExportPar ( ofstream * pFile ) ;
virtual bool CatchPoint ( Dbxy & pt ) ;
//virtual Dbxy CCDpt2Platcoord(Dbxy CCDpt);
bool SwitchCamera ( long CamIndex ) ; //根据相机索引 0、1 切换相机。由相机控件所在对话框Timmer检测当前索引, 切换相机; 跨线程直接切换会崩溃。
void OpenTemp ( ) ;
unsigned char GetCurShapeModelID ( ) { return m_CurShapeModelID ; } ;
void SetCurShapeModelID ( int ID ) { m_CurShapeModelID = ID ; } ;
public :
CHawkvisctrlctrl1 * m_HawkvisCtrl ; //霍克视觉的ocx 控件
int m_nCam1Expore ; //曝光值
int m_nCam2Expore ; //曝光值
unsigned char m_CurShapeModelID = 0 ; //当前模板的ID
private :
bool m_bOpen ; //相机是否打开
bool m_bRotate180 ; //画面是否旋转180度
bool m_bMirrorH ; //水平镜像
bool m_bMirrorV ; //垂直镜像
} ;
extern CCameraHawkvis * gCameraHawkvis ;