// ImagePsn.h : header file // ///////////////////////////////////////////////////////////////////////////// // CImagePosition dialog class CImagePosnInfoData { public: CImagePosnInfoData() { m_error = CSize(0,0);} CPoint m_imagePt ; BOOL m_nodeValid ; CPoint m_crdPt ; short m_nodeNumber ; CSize m_error ; } ; class CImagePosition : public CDialog { // Construction public: void RemoveLocatorPoint( CPoint point ); enum mode_types {MODE_ADDAPOINT,MODE_REMOVEAPOINT, MODE_PAN}; short m_mode; void AddLocatorPoint( CPoint point ); void LMouseClick( CPoint point ) ; void CalculateBMPPosition() ; BOOL RegressOnList( CSize &extent, CPoint &origin, double &errX, double &errY) ; CImagePosition(CWnd* pParent = NULL); // standard constructor CList< CImagePosnInfoData,CImagePosnInfoData&> m_locList ; CString m_bmpName ; CTRXNtwk * m_ntwk ; CSize m_extent ; CPoint m_origin ; CBitMapPositionWnd m_bmapWnd ; // Dialog Data //{{AFX_DATA(CImagePosition) enum { IDD = IDD_POSITIONBMP }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CImagePosition) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: // Generated message map functions //{{AFX_MSG(CImagePosition) afx_msg void OnAddpoint(); afx_msg void OnRemovept(); virtual BOOL OnInitDialog(); virtual void OnOK(); afx_msg void OnBtnpan(); afx_msg void OnZoomin(); afx_msg void OnZoomout(); afx_msg void OnOverview(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// // CGetLocatorInfo dialog class CGetLocatorInfo : public CDialog { // Construction public: CGetLocatorInfo(CWnd* pParent = NULL); // standard constructor CTRXNtwk *nt ; // Dialog Data //{{AFX_DATA(CGetLocatorInfo) enum { IDD = IDD_GETLOCATORINFO }; long m_easting; long m_northing; short m_nodeNumber; BOOL m_nodeNumberValid; BOOL m_coordsValid; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CGetLocatorInfo) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: void EnableCoords( BOOL b ) ; // Generated message map functions //{{AFX_MSG(CGetLocatorInfo) afx_msg void OnLoccordinates(); afx_msg void OnLocnodenumber(); virtual BOOL OnInitDialog(); virtual void OnOK(); //}}AFX_MSG DECLARE_MESSAGE_MAP() };