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