⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simulategpsview.h

📁 GPS电子狗数据采集、测试软件
💻 H
字号:
// SimulateGPSView.h : interface of the CSimulateGPSView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SIMULATEGPSVIEW_H__36FE4D3B_6B08_482A_9B69_12C6B460CC19__INCLUDED_)
#define AFX_SIMULATEGPSVIEW_H__36FE4D3B_6B08_482A_9B69_12C6B460CC19__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CSimulateGPSView : public CView
{
protected: // create from serialization only
	CSimulateGPSView();
	DECLARE_DYNCREATE(CSimulateGPSView)

// Attributes
public:
	CSimulateGPSDoc* GetDocument();

	CSeMapWnd	m_MapWnd;
	bool		m_bFileOpened;
	CSeRecordset*  m_pRSSel;
	int			m_TimerCount;
	int			m_PlayStatus; //0-未播放 1-正向播放 2-反向播放
	int			m_PlayIdx;
//	CSeGeoLine  m_CurLine;
	CPoint		*m_pCurPnts;
	int			m_Total;
	int			m_Count;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSimulateGPSView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	CSeDatasetVector * CreateTracks();
	CSeDatasetVector * CreateScouts();
	CSeDatasetVector * CreateLine();
	bool HaveAllLayer();
	void AddScout( CPoint pnt );
	int GetPoint( CPoint from, CPoint to, double &dist, int flag,  CPoint &pnt );
	int AddPoint( CPoint *&pPnts, int &Total, int &count, CPoint &pnt );
	int MyResampleLine( CSeGeoLine *pLine, double dist, CPoint *&pPnts, int &total, int &PntCount, int flag=0 );
	void PlayGPSData();
	virtual ~CSimulateGPSView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSimulateGPSView)
	afx_msg void OnFileOpen();
	afx_msg void OnMapPan();
	afx_msg void OnMapRefresh();
	afx_msg void OnMapViewentire();
	afx_msg void OnMapZoomin();
	afx_msg void OnMapZoomout();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnFileClose();
	afx_msg void OnMapPick();
	afx_msg void OnToolPlayselect();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnToolSetup();
	afx_msg void OnToolWorklayer();
	//}}AFX_MSG
	afx_msg void OnRcvCommStr(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
private:
	bool GetSelGeo();
};

#ifndef _DEBUG  // debug version in SimulateGPSView.cpp
inline CSimulateGPSDoc* CSimulateGPSView::GetDocument()
   { return (CSimulateGPSDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SIMULATEGPSVIEW_H__36FE4D3B_6B08_482A_9B69_12C6B460CC19__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -