00001 // VisualizeView.h : interface of the CVisualizeView class, derived from CHoopsView 00002 // Adds application specific members such as a QueryDialog and UI update/message maps 00003 00004 #if !defined(AFX_CVisualizeView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_) 00005 #define AFX_CVisualizeView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_ 00006 00007 #if _MSC_VER >= 1000 00008 #pragma once 00009 #endif // _MSC_VER >= 1000 00010 00011 // VisualizeView.h : header file 00012 // 00013 00014 #include "CHoopsView.h" 00015 00016 class HVisualizeView; 00017 class HStreamFileToolkit; 00018 00019 00021 // CVisualizeView view 00022 00023 class CVisualizeView : public CHoopsView 00024 { 00025 protected: 00026 00027 CVisualizeView(); // protected constructor used by dynamic creation 00028 DECLARE_DYNCREATE(CVisualizeView) 00029 00030 // Attributes 00031 public: 00032 00033 // Operations 00034 public: 00035 HVisualizeView* GetSolidView() { return (HVisualizeView*)m_pHView; } 00036 00037 // set current operator 00038 void LocalSetOperator(HBaseOperator *NewOperator); 00039 00040 void LoadFile( LPCTSTR csFilePathName ); 00041 bool SaveFile( LPCTSTR csFilePathName ); 00042 00043 // HNet 00044 00045 00046 // Overrides 00047 // ClassWizard generated virtual function overrides 00048 //{{AFX_VIRTUAL(CVisualizeView) 00049 public: 00050 virtual void OnInitialUpdate(); 00051 protected: 00052 virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); 00053 //}}AFX_VIRTUAL 00054 00055 private: 00056 00057 00058 // Implementation 00059 protected: 00060 virtual ~CVisualizeView(); 00061 #ifdef _DEBUG 00062 virtual void AssertValid() const; 00063 virtual void Dump(CDumpContext& dc) const; 00064 #endif 00065 00066 int FindMenuItem(CMenu* Menu, LPCTSTR MenuString); 00067 00068 00069 // Generated message map functions 00070 protected: 00071 //{{AFX_MSG(CVisualizeView) 00072 afx_msg void OnFileSaveAs(); 00073 afx_msg void OnZoom(); 00074 afx_msg void OnZoomToExtents(); 00075 afx_msg void OnZoomToWindow(); 00076 afx_msg void OnOrbit(); 00077 afx_msg void OnPan(); 00078 afx_msg void OnWindowSelect(); 00079 afx_msg void OnSelectionDeleteselection(); 00080 afx_msg void OnUpdateSelectionDeleteselection(CCmdUI* pCmdUI); 00081 afx_msg void OnUpdateGouraud(CCmdUI* pCmdUI); 00082 afx_msg void OnUpdateHiddenLine(CCmdUI* pCmdUI); 00083 afx_msg void OnUpdateOrbit(CCmdUI* pCmdUI); 00084 afx_msg void OnUpdatePan(CCmdUI* pCmdUI); 00085 afx_msg void OnUpdateWindowSelect(CCmdUI* pCmdUI); 00086 afx_msg void OnUpdateZoom(CCmdUI* pCmdUI); 00087 afx_msg void OnUpdateZoomToWindow(CCmdUI* pCmdUI); 00088 afx_msg void OnUpdateZoomToExtents(CCmdUI* pCmdUI); 00089 afx_msg void OnToolsRendermodeGouraudshaded(); 00090 afx_msg void OnToolsRendermodeHiddenline(); 00091 afx_msg void OnToolsRendermodeWireframe(); 00092 afx_msg void OnUpdateToolsRendermodeWireframe(CCmdUI* pCmdUI); 00093 afx_msg void OnUpdateToolsRendermodeGouraudshaded(CCmdUI* pCmdUI); 00094 afx_msg void OnUpdateToolsRendermodeHiddenline(CCmdUI* pCmdUI); 00095 afx_msg void OnCreateSphere(); 00096 afx_msg void OnBuildLODS(); 00097 afx_msg void OnLOD1(); 00098 afx_msg void OnLOD2(); 00099 afx_msg void OnLODOriginal(); 00100 afx_msg void OnEnableFramerate(); 00101 afx_msg void OnDisableFramerate(); 00102 afx_msg void OnUpdateCreateSphere(CCmdUI* pCmdUI); 00103 afx_msg void OnCreateCone(); 00104 afx_msg void OnCreateCylinder(); 00105 afx_msg void OnUpdateCreateCone(CCmdUI* pCmdUI); 00106 afx_msg void OnUpdateCreateCylinder(CCmdUI* pCmdUI); 00107 afx_msg void OnTimer(UINT nIDEvent); 00108 afx_msg void OnWalkOperator(); 00109 //}}AFX_MSG 00110 DECLARE_MESSAGE_MAP() 00111 00112 void load(const char * filename); 00113 00114 static CVisualizeView * pThisView; 00115 00116 //static void event_checker(struct ht_net_rendition *nr); 00117 static void event_checker(HIC_Rendition const *nr); 00118 00119 }; 00120 00121 00123 00124 //{{AFX_INSERT_LOCATION}} 00125 // Microsoft Developer Studio will insert additional declarations immediately before the previous line. 00126 00127 #endif // !defined(AFX_CVisualizeView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_)