ControlPoint3DDlg.h
上传用户:zj_jiuzhou
上传日期:2022-06-20
资源大小:1859k
文件大小:2k
源码类别:

3D图形编程

开发平台:

Visual C++

  1. // ControlPoint3DDlg.h : header file
  2. //
  3. #if !defined(AFX_CONTROLPOINT3DDLG_H__99721B04_5E13_4D31_A766_455742B0F7C2__INCLUDED_)
  4. #define AFX_CONTROLPOINT3DDLG_H__99721B04_5E13_4D31_A766_455742B0F7C2__INCLUDED_
  5. #if _MSC_VER > 1000
  6. #pragma once
  7. #endif // _MSC_VER > 1000
  8. #include "afxtempl.h"
  9. #include "InputPoint.h"
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CControlPoint3DDlg dialog
  12. class CControlPoint3DDlg : public CDialog
  13. {
  14. // Construction
  15. public:
  16. double ConvertAngleToRadian(double Angle);
  17. //计算高程
  18. //Ha是A点高程,Hb是B点高程,AngleA和AngleB分别是天顶距,X,Y是该点坐标,Sab是基线长度,函数返回高程值
  19. double CalElevation(double Ha,double Hb,double AngleA,double AngleB,double X,double Y,double Sab);
  20. //计算点的平面坐标
  21. //Sab是基线长度,leftHA是左站水平角,RightHA是右站水平角,函数通过X和Y返回坐标值
  22. double CalCordination(double Sab,double leftHA,double RightHA,double * X);
  23. CControlPoint3DDlg(CWnd* pParent = NULL); // standard constructor
  24. //read in data
  25. CTypedPtrList<CObList,CInputPoint*> m_inPointList;
  26. double m_Sab;//基线长度
  27. bool bCal;//表示计算与否
  28. // Dialog Data
  29. //{{AFX_DATA(CControlPoint3DDlg)
  30. enum { IDD = IDD_CONTROLPOINT3D_DIALOG };
  31. CListCtrl m_ListContl_Info;
  32. CString m_strPath;
  33. //}}AFX_DATA
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CControlPoint3DDlg)
  36. protected:
  37. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. protected:
  41. HICON m_hIcon;
  42. // Generated message map functions
  43. //{{AFX_MSG(CControlPoint3DDlg)
  44. virtual BOOL OnInitDialog();
  45. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  46. afx_msg void OnPaint();
  47. afx_msg HCURSOR OnQueryDragIcon();
  48. virtual void OnOK();
  49. afx_msg void OnButnRead();
  50. afx_msg void OnButnExport();
  51. afx_msg void OnButnCal();
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. };
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  57. #endif // !defined(AFX_CONTROLPOINT3DDLG_H__99721B04_5E13_4D31_A766_455742B0F7C2__INCLUDED_)