00001 // SpheresView.h : interface of the CSpheresView class, derived from CHoopsView 00002 // Adds application specific members such as a QueryDialog and UI update/message maps 00003 00004 #if !defined(AFX_CSpheresView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_) 00005 #define AFX_CSpheresView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_ 00006 00007 #if _MSC_VER >= 1000 00008 #pragma once 00009 #endif // _MSC_VER >= 1000 00010 00011 // SpheresView.h : header file 00012 // 00013 00014 #include "CHoopsView.h" 00015 00016 class HSpheresView; 00017 class HStreamFileToolkit; 00018 00019 00021 // CSpheresView view 00022 00023 class CSpheresView : public CHoopsView 00024 { 00025 protected: 00026 00027 CSpheresView(); // protected constructor used by dynamic creation 00028 DECLARE_DYNCREATE(CSpheresView) 00029 00030 // Attributes 00031 public: 00032 00033 // Operations 00034 public: 00035 HSpheresView* GetSolidView() { return (HSpheresView*)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(CSpheresView) 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 ~CSpheresView(); 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(CSpheresView) 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 OnAnnotate(); 00079 afx_msg void OnRotate(); 00080 afx_msg void OnChangeMaterial(); 00081 afx_msg void OnWindowSelect(); 00082 afx_msg void OnUpdateShaded(CCmdUI* pCmdUI); 00083 afx_msg void OnUpdateHiddenLine(CCmdUI* pCmdUI); 00084 afx_msg void OnUpdateOrbit(CCmdUI* pCmdUI); 00085 afx_msg void OnUpdatePan(CCmdUI* pCmdUI); 00086 afx_msg void OnUpdateRotate(CCmdUI* pCmdUI); 00087 afx_msg void OnUpdateWindowSelect(CCmdUI* pCmdUI); 00088 afx_msg void OnUpdateZoom(CCmdUI* pCmdUI); 00089 afx_msg void OnUpdateZoomToWindow(CCmdUI* pCmdUI); 00090 afx_msg void OnUpdateZoomToExtents(CCmdUI* pCmdUI); 00091 afx_msg void OnToolsRendermodeShaded(); 00092 afx_msg void OnToolsRendermodePhongshaded(); 00093 afx_msg void OnToolsRendermodeHiddenline(); 00094 afx_msg void OnToolsRendermodeWireframe(); 00095 afx_msg void OnUpdateToolsRendermodeWireframe(CCmdUI* pCmdUI); 00096 afx_msg void OnUpdateToolsRendermodeShaded(CCmdUI* pCmdUI); 00097 afx_msg void OnUpdateToolsRendermodeHiddenline(CCmdUI* pCmdUI); 00098 afx_msg void OnCreateCone(); 00099 afx_msg void OnCreateCylinder(); 00100 afx_msg void OnCreateSphere(); 00101 afx_msg void OnUpdateCreateCone(CCmdUI* pCmdUI); 00102 afx_msg void OnUpdateCreateCylinder(CCmdUI* pCmdUI); 00103 afx_msg void OnUpdateCreateSphere(CCmdUI* pCmdUI); 00104 //}}AFX_MSG 00105 DECLARE_MESSAGE_MAP() 00106 00107 void load(const char * filename); 00108 00109 }; 00110 00111 00113 00114 //{{AFX_INSERT_LOCATION}} 00115 // Microsoft Developer Studio will insert additional declarations immediately before the previous line. 00116 00117 #endif // !defined(AFX_CSpheresView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_)