ControlPoint3DDlg.h
上传用户:zj_jiuzhou
上传日期:2022-06-20
资源大小:1859k
文件大小:2k
- // ControlPoint3DDlg.h : header file
- //
- #if !defined(AFX_CONTROLPOINT3DDLG_H__99721B04_5E13_4D31_A766_455742B0F7C2__INCLUDED_)
- #define AFX_CONTROLPOINT3DDLG_H__99721B04_5E13_4D31_A766_455742B0F7C2__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "afxtempl.h"
- #include "InputPoint.h"
- /////////////////////////////////////////////////////////////////////////////
- // CControlPoint3DDlg dialog
- class CControlPoint3DDlg : public CDialog
- {
- // Construction
- public:
- double ConvertAngleToRadian(double Angle);
- //计算高程
- //Ha是A点高程,Hb是B点高程,AngleA和AngleB分别是天顶距,X,Y是该点坐标,Sab是基线长度,函数返回高程值
- double CalElevation(double Ha,double Hb,double AngleA,double AngleB,double X,double Y,double Sab);
- //计算点的平面坐标
- //Sab是基线长度,leftHA是左站水平角,RightHA是右站水平角,函数通过X和Y返回坐标值
- double CalCordination(double Sab,double leftHA,double RightHA,double * X);
- CControlPoint3DDlg(CWnd* pParent = NULL); // standard constructor
- //read in data
- CTypedPtrList<CObList,CInputPoint*> m_inPointList;
- double m_Sab;//基线长度
- bool bCal;//表示计算与否
- // Dialog Data
- //{{AFX_DATA(CControlPoint3DDlg)
- enum { IDD = IDD_CONTROLPOINT3D_DIALOG };
- CListCtrl m_ListContl_Info;
- CString m_strPath;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CControlPoint3DDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CControlPoint3DDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- virtual void OnOK();
- afx_msg void OnButnRead();
- afx_msg void OnButnExport();
- afx_msg void OnButnCal();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CONTROLPOINT3DDLG_H__99721B04_5E13_4D31_A766_455742B0F7C2__INCLUDED_)