3D0214View.h
上传用户:juying163
上传日期:2014-09-24
资源大小:5867k
文件大小:4k
源码类别:

GIS编程

开发平台:

Visual C++

  1. // 3D0214View.h : interface of the CMy3D0214View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. //{{AFX_INCLUDES()
  5. #include "scenecontroldefault.h"
  6. //}}AFX_INCLUDES
  7. #if !defined(AFX_3D0214VIEW_H__77197693_96BF_4D35_96B3_BA163F1702A8__INCLUDED_)
  8. #define AFX_3D0214VIEW_H__77197693_96BF_4D35_96B3_BA163F1702A8__INCLUDED_
  9. #if _MSC_VER > 1000
  10. #pragma once
  11. #endif // _MSC_VER > 1000
  12. #include "DlgProfileGraph.h"
  13. #include "MainFrm.h"
  14. #include "DlgCreateRasterIDW.h"
  15. #include "DlgCreateTINfromFeature.h"
  16. #include "DlgSetScene.h"
  17. #include "DlgBaseHeight.h"
  18. #include "DlgClassBreakRenderer.h"
  19. #include "DlgSlope.h"
  20. #include "DlgViewshed.h"
  21. #include "DlgCreateContour.h"
  22. #include "DlgInfoQuery.h"
  23. class CMy3D0214View : public CFormView
  24. {
  25. protected: // create from serialization only
  26. CMy3D0214View();
  27. DECLARE_DYNCREATE(CMy3D0214View)
  28. public:
  29. //{{AFX_DATA(CMy3D0214View)
  30. enum { IDD = IDD_MY3D0214_FORM };
  31. CSceneControlDefault m_Scontrol;
  32. //}}AFX_DATA
  33. // Attributes
  34. public:
  35. CMy3D0214Doc* GetDocument();
  36. ISceneControlPtr m_ipSceneControl;
  37. IScenePtr m_ipScene;
  38.     ISceneGraphPtr m_ipSceneGrap;
  39. ISceneViewerPtr  m_ipViewer;
  40. CString   FindBasename(CString filename);
  41. BOOL      DeleteSHP(CString pathname,CString filename);
  42. int       IsDirectory(CString pathname);
  43. CString   GetCurrentDir();
  44. BOOL      MakeProfileChart(CString sDir,CString sFileName,CString sGraphTitle,CString sGraphSubTitle);
  45.     void      DoRealGraphWork(long xPos,long yPos);
  46. private:
  47. int tbrIsstarted;
  48. ILayerPtr m_ipLayer;
  49. int              m_Scheckstate;//
  50. int              m_Qcheckstate;//空间查询按钮状态
  51. int              m_Pcheckstate;  //剖面图绘制按钮状态
  52. IPointCollectionPtr m_pScenePoints;//收集线段端点;
  53. CDlgProfileGraph *m_pDlg;  //模态对话框
  54. CDlgInfoQuery *m_pInfoQueryDlg;
  55. // Operations
  56. public:
  57. bool GetSceneFromView(IScene ** ipScene);
  58. void LoadData();
  59. // Overrides
  60. // ClassWizard generated virtual function overrides
  61. //{{AFX_VIRTUAL(CMy3D0214View)
  62. public:
  63. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  64. protected:
  65. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  66. virtual void OnInitialUpdate(); // called first time after construct
  67. virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  68. virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  69. virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  70. virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  71. virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  72. //}}AFX_VIRTUAL
  73. // Implementation
  74. public:
  75. virtual ~CMy3D0214View();
  76. #ifdef _DEBUG
  77. virtual void AssertValid() const;
  78. virtual void Dump(CDumpContext& dc) const;
  79. #endif
  80. protected:
  81. // Generated message map functions
  82. protected:
  83. //{{AFX_MSG(CMy3D0214View)
  84. afx_msg void OnSize(UINT nType, int cx, int cy);
  85. afx_msg void OnFileExportMap();
  86. afx_msg void OnAddDemToScene();
  87. afx_msg void OnCreateRasterIdw();
  88. afx_msg void OnCreatedemTin();
  89. afx_msg void OnSetScene();
  90. afx_msg void OnSetBaseheight();
  91. afx_msg void OnAddlayer();
  92. afx_msg void OnClassbreakrenderer();
  93. afx_msg void OnInformationQuery();
  94. afx_msg void OnUpdateInformationQuery(CCmdUI* pCmdUI);
  95. afx_msg void OnOnMouseDownScenecontrol1(long button, long shift, long x, long y);
  96. afx_msg void OnOnMouseMoveScenecontrol1(long button, long shift, long x, long y);
  97. afx_msg void OnCreateSlop();
  98. afx_msg void OnViewshed();
  99. afx_msg void OnLineofsightprofile();
  100. afx_msg void OnUpdateLineofsightprofile(CCmdUI* pCmdUI);
  101. afx_msg void OnCreateContour();
  102. afx_msg void OnSelectfeatrues();
  103. afx_msg void OnUpdateSelectfeatrues(CCmdUI* pCmdUI);
  104. afx_msg void OnOnMouseUpScenecontrol1(long button, long shift, long x, long y);
  105. DECLARE_EVENTSINK_MAP()
  106. //}}AFX_MSG
  107. afx_msg void OnUpdateIndicatorDEMO(CCmdUI *pCmdUI);
  108. afx_msg void OnUpdateIndicatorAUTHOR(CCmdUI *pCmdUI);
  109. DECLARE_MESSAGE_MAP()
  110. };
  111. #ifndef _DEBUG  // debug version in 3D0214View.cpp
  112. inline CMy3D0214Doc* CMy3D0214View::GetDocument()
  113.    { return (CMy3D0214Doc*)m_pDocument; }
  114. #endif
  115. /////////////////////////////////////////////////////////////////////////////
  116. //{{AFX_INSERT_LOCATION}}
  117. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  118. #endif // !defined(AFX_3D0214VIEW_H__77197693_96BF_4D35_96B3_BA163F1702A8__INCLUDED_)