高斯投影正反算——包括3度和6度带的选择
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
// guass coordinateDlg.cpp : implementation file
//
#include "stdafx.h"
#include "guass coordinate.h"
#include "guass coordinateDlg.h"
#include "math.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
///////////////////////////////////////////////////////////////////////////// // CAboutDlg dialog used for App About
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
///////////////////////////////////////////////////////////////////////////// // CGuasscoordinateDlg dialog
CGuasscoordinateDlg::CGuasscoordinateDlg(CWnd* pParent /*=NULL*/) : CDialog(CGuasscoordinateDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CGuasscoordinateDlg)
m_bdu = 0;
m_bfen = 0;
m_bmiao = 0.0;
m_x = 0.0;
m_y = 0.0;
m_ldu = 0;
m_lfen = 0;
m_lmiao = 0.0;
m_ZoneWidth = -1;
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}
void CGuasscoordinateDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGuasscoordinateDlg)
DDX_Text(pDX, IDC_B_DU, m_bdu);
DDV_MinMaxInt(pDX, m_bdu, 0, 90);
DDX_Text(pDX, IDC_B_FEN, m_bfen);
DDV_MinMaxInt(pDX, m_bfen, 0, 60);
DDX_Text(pDX, IDC_B_MIAO, m_bmiao);
DDV_MinMaxDouble(pDX, m_bmiao, 0., 60.);
DDX_Text(pDX, IDC_x, m_x);
DDX_Text(pDX, IDC_y, m_y);
DDX_Text(pDX, IDC_L_DU, m_ldu);
DDV_MinMaxInt(pDX, m_ldu, 0, 180);
DDX_Text(pDX, IDC_L_FEN, m_lfen);
DDV_MinMaxInt(pDX, m_lfen, 0, 60);
DDX_Text(pDX, IDC_L_MIAO, m_lmiao);
DDV_MinMaxDouble(pDX, m_lmiao, 0., 60.);
DDX_Radio(pDX, IDC_RADIO1, m_ZoneWidth);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGuasscoordinateDlg, CDialog)
//{{AFX_MSG_MAP(CGuasscoordinateDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
ON_COMMAND(ID_ABOUT, OnAbout)
ON_COMMAND(ID_ZHENG, OnZheng)
ON_COMMAND(ID_FAN, OnFan)
ON_BN_CLICKED(ID_CAL, OnCal)
ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
///////////////////////////////////////////////////////////////////////////// // CGuasscoordinateDlg message handlers
BOOL CGuasscoordinateDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// Add "About..." menu item to system menu.
// IDM_ABOUTBOX must be in the system command range.
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{