⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showimagedlg.h

📁 使用大恒采集卡的图像显示
💻 H
字号:
// ShowImageDlg.h : header file
//

#if !defined(AFX_SHOWIMAGEDLG_H__8E6EF801_B5FA_4475_B259_2FD47942AE5A__INCLUDED_)
#define AFX_SHOWIMAGEDLG_H__8E6EF801_B5FA_4475_B259_2FD47942AE5A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CShowImageDlg dialog
#include "imagemanager.h"
#include "Img.h"
class CShowImageDlg : public CDialog
{
// Construction
public:
	CShowImageDlg(CWnd* pParent = NULL);	// standard constructor

public:
	CRect m_rcOrignImage;
	BYTE * m_pOrignImage;
	CImageManager m_ImageManager;
//	CWinThread *m_pSensorThread;
	///added
	HGLOBAL m_hResImage;
	BYTE *m_pResImage;
	BOOL m_bExecuting;

public:
	void OnPP();
	void Render(CDC *pDC, BYTE *pbyBits24, int w, int h);
	void Display(BYTE *pbyBits24, int w, int h);
	CBitmap m_bitmap;

public:
	void Correction(BYTE* Src,BYTE* dst,WORD* dat);
	void TakeRobot(int Robot_x,int Robot_y,int angle);
	void DEdgeS(double a[][2], int n, float *x0, float *y0, float *R);
	void EdgeS(int n, int x, int y);
	void OnInitialization();
	int m_point_x1,m_point_y1,m_point_x2,m_point_y2,m_point_x3,m_point_y3;
	int m_point_x,m_point_y;
	int m_color_R,m_color_G,m_color_B;
	int m_color_R1,m_color_G1,m_color_B1;
	int m_color_R2,m_color_G2,m_color_B2;
	POSITIONDIRECT m_p;
	BOOL m_bCase;
	BOOL m_bCali;
	BOOL m_bLocalization;
	int m_n;
	BOOL m_bVehicle;
	WORD* m_lpxy;

// Dialog Data
	//{{AFX_DATA(CShowImageDlg)
	enum { IDD = IDD_SHOWIMAGE_DIALOG };
	CStatic	m_pic;
	int		m_a_x;
	int		m_a_y;
	int		m_a_z;
	int		m_b_x;
	int		m_b_y;
	int		m_b_z;
	int		m_c_x;
	int		m_c_y;
	int		m_c_z;
	float	m_center_x;
	float	m_center_y;
	float	m_radius;
	int		m_vehicle_x;
	int		m_vehicle_y;
	int		m_vehicle_z;
	int		m_Turn;
	int		m_Slope;
	int		m_Inclination;
	BOOL	m_bCorrection;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CShowImageDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CShowImageDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnStart();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	afx_msg void OnPause();
	afx_msg void OnSavefile();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSetA();
	afx_msg void OnSetA2();
	afx_msg void OnSetA3();
	afx_msg void OnTake();
	afx_msg void OnStartrobot();
	afx_msg void OnShoprobot();
	afx_msg void OnCheck1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SHOWIMAGEDLG_H__8E6EF801_B5FA_4475_B259_2FD47942AE5A__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -