You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# pragma once
# include "resource.h"
//功能:航线设计时,显示出航段距离和方位角,以及距离原点的距离和方位角
class CLineSectDisAZDlg : public CDialog
{
DECLARE_DYNAMIC ( CLineSectDisAZDlg )
public :
CLineSectDisAZDlg ( CWnd * pParent = NULL ) ; // 标准构造函数
virtual ~ CLineSectDisAZDlg ( ) ;
// 对话框数据
enum { IDD = IDD_DIALOG_LINE_SECT } ;
public :
//功能:移动对话框到给定的显示区域
void MoveToGivenArea ( const CRect rcArea ) ;
//功能:是否已经完成航段设计
void SetLineSectStatus ( ) ;
//功能:输入航点坐标
//输入: 经度lon, 纬度lat
void InputPointCoordinate ( const double lon , const double lat ) ;
protected :
virtual void DoDataExchange ( CDataExchange * pDX ) ; // DDX/DDV 支持
DECLARE_MESSAGE_MAP ( )
private :
private :
CString m_strAZAngleFromOrg ; //航点距离原点的方位角
CString m_strDistanceFromOrg ; //航点距离原点的水平距离
CString m_strSectAZAngle ; //航段的方位角
CString m_strSectDistance ; //航段的水平距离
//航段起始点的经纬度
double m_sectStartLon ; //经度
double m_sectStartLat ; //纬度
//航段结束点的经纬度
double m_sectEndLon ; //经度
double m_sectEndLat ; //纬度
//是否进行第一个航段的航线设计
bool m_bFirstLineSectDesign ;
//显示区域
CRect m_rcShowArea ;
private :
virtual BOOL OnInitDialog ( ) ;
//功能;显示航点距离原点的距离和方位角
//输入: 航点坐标, 经度值—lon
// 航点坐标, 纬度值—lat
void ShowPtInfoFromGCS ( const double lon , const double lat ) ;
} ;