📄 fadlg.h
字号:
// FaDlg.h : header file
//
#if !defined(AFX_FADLG_H__C0C82A27_872F_425A_A20B_A305E347F7F3__INCLUDED_)
#define AFX_FADLG_H__C0C82A27_872F_425A_A20B_A305E347F7F3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "matlab.hpp"
#include "libmwsglm.hpp"
#include "Ccssd.h"
/////////////////////////////////////////////////////////////////////////////
// CFaDlg dialog
struct rcdaodan
{
int red; //数据报头
double x; //导弹X轴坐标
double y; //导弹Y轴坐标
double z; //导弹Z轴坐标
double a; //导弹俯仰角
double b; //导弹偏航角
double dn; //目标发送数据的编号
double r;
};
struct rctbm
{
int ret; //数据报头
double x; //目标的X坐标
double y; //目标的Y坐标
double z; //目标的Z坐标
double a; //目标的高低角
double b; //目标的方位角
};
struct vtindex
{
int revt;
int m;
};
class CFaDlg : public CDialog
{
// Construction
public:
// SOCKET ListenSocket;
// sockaddr_in srv;
// sockaddr_in client;
// int PortNum;
// char buffer[100];
// char buf[40];
// char port[40];
void GenAxis2();
void DrawLine2();
CFaDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CFaDlg)
enum { IDD = IDD_FA_DIALOG };
// CEdit m_port;
// CListBox m_list;
// CEdit m_address;
float m_mx1;
float m_my1;
float m_mz1;
float m_mp1;
float m_mh1;
float m_tx1;
float m_ty1;
float m_tz1;
float m_tp1;
float m_th1;
float m_dt1;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFaDlg)
public:
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
CMenu m_menu;
// Generated message map functions
//{{AFX_MSG(CFaDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonSend();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButtonDd();
afx_msg void OnDestroy();
afx_msg void OnBTN3d();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void DockMatlabFigure(mwArray mwhFigure,CWnd* pParentWnd);
mwArray m_mwhFigure;//matlab的Figure
mwArray m_mwhLineTraj;//matlab的line(航迹曲线)
mwArray m_mwhAxis;//matlab轴
mwArray m_hMissile;
mwArray m_hTarget;
mwArray h_a;
CString str;
CCcssd dlg_cssd;
mwArray in_tx,in_ty,in_tz,in_tp,in_th,in_mx,in_my,in_mz,in_vm,in_vt,in_dt,in_m;
mwArray out_tx,out_ty,out_tz,out_mx,out_my,out_mz,out_mp,out_mh,out_r;
double dout_tx,dout_ty,dout_tz,dout_mx,dout_my,dout_mz,dout_mp,dout_mh,dout_r;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FADLG_H__C0C82A27_872F_425A_A20B_A305E347F7F3__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -