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

📄 setcoordinatedlg.h

📁 在windows下对Flock of Bird 跟踪器编程的源代码
💻 H
字号:
// SetCoordinateDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_SETCOORDINATEDLG_H__65CC6097_5830_40E6_B3CA_FE1E4CC18618__INCLUDED_)
#define AFX_SETCOORDINATEDLG_H__65CC6097_5830_40E6_B3CA_FE1E4CC18618__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////

#include "define.h"

/////////////////////////////////////////////////////////////////////////////
// CSetCoordinateDlg dialog

class CSetCoordinateDlg : public CDialog
{
// Construction
public:
	void ConvertData();
	void	SetCmdSize();
	void	SetOutputMode();
	void	SetDataMode();
	void	DispData();
	float	m_fX, m_fY, m_fZ, m_fA, m_fE, m_fR;
	float	m_fMatrix[3][3];

	int		count, times;
	
	short	rxdata[24];
	float	floatdata[24];

	bool	bSend;
	bool	bReceive;
	
	short	m_nPort;
	CString	m_strSettings;
	CString	m_strSendString;

	short	shortdata[14];
	CString	m_sIniFilename;

	clock_t start;

	/*============================================================================*/

	//输出模式:0-point;1-continues;2-stream
	short			fob_outputmode;

	//数据模式:0-pos;1-angle;2-
	unsigned char	fob_datamode;
	
	//单记录数据大小
	unsigned char	fob_datasize;
	
	//数据模式命令
    unsigned char	fob_posorientcmd;

	/*============================================================================*/

	CSetCoordinateDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CSetCoordinateDlg)
	enum { IDD = IDD_SETCOORDINATE_DIALOG };
	CComboBox	m_ctrlUint;
	CListCtrl	m_ctrlReferPoint;
	CComboBox	m_ctrlHemisphere;
	CComboBox	m_ctrlBaud;
	CComboBox	m_ctrlOptputMode;
	CComboBox	m_ctrlDataMode;
	CComboBox	m_ctrlType;
	int		m_iIndex;
	float	m_fLength;
	float	m_fWidth;
	CMSComm	m_com;
	CString	m_cSendChar;
	CString	m_strReceive;
	UINT	m_nPortNumber;
	float	m_fAzimuth;
	float	m_fElevation;
	float	m_fRoll;
	//}}AFX_DATA

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

// Implementation
protected:
	void ShowInfo(CString str);
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSetCoordinateDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAddIndicator();
	afx_msg void OnInitFob();
	afx_msg void OnDestroy();
	afx_msg void OnCmdSend();
	afx_msg void OnCmdStopReceive();
	afx_msg void OnCommMscomm();
	afx_msg void OnCmdClearReceive();
	afx_msg void OnCmdSetHemisphere();
	afx_msg void OnCmdAngleAlign();
	afx_msg void OnBtnInsertReferPoint();
	afx_msg void OnBtnClearReferPoint();
	afx_msg void OnBtnDeleteReferPoint();
	afx_msg void OnBtnGetPlanePara();
	afx_msg void OnBtnMetal();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
};

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

#endif // !defined(AFX_SETCOORDINATEDLG_H__65CC6097_5830_40E6_B3CA_FE1E4CC18618__INCLUDED_)

⌨️ 快捷键说明

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