00001 // SoccerView.h : interface of the CSoccerView class, derived from CHoopsView 00002 // Adds application specific members such as a QueryDialog and UI update/message maps 00003 00004 #if !defined(AFX_CSoccerView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_) 00005 #define AFX_CSoccerView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_ 00006 00007 #if _MSC_VER >= 1000 00008 #pragma once 00009 #endif // _MSC_VER >= 1000 00010 00011 // SoccerView.h : header file 00012 // 00013 00014 #include "CHoopsView.h" 00015 00016 class HSoccerView; 00017 class HStreamFileToolkit; 00018 00019 00021 // CSoccerView view 00022 00023 class CSoccerView : public CHoopsView 00024 { 00025 protected: 00026 00027 CSoccerView(); // protected constructor used by dynamic creation 00028 DECLARE_DYNCREATE(CSoccerView) 00029 00030 // Attributes 00031 public: 00032 00033 // Operations 00034 public: 00036 HSoccerView* GetSolidView() { return (HSoccerView*)m_pHView; } 00037 00039 void LocalSetOperator(HBaseOperator *NewOperator); 00040 00042 void LoadFile( LPCTSTR csFilePathName ); 00043 00045 bool SaveFile( LPCTSTR csFilePathName ); 00046 00047 // HNet 00048 00049 00050 // Overrides 00051 // ClassWizard generated virtual function overrides 00052 //{{AFX_VIRTUAL(CSoccerView) 00053 public: 00054 virtual void OnInitialUpdate(); 00055 protected: 00056 virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); 00057 00058 //}}AFX_VIRTUAL 00059 00060 private: 00061 00062 00063 // Implementation 00064 protected: 00065 virtual ~CSoccerView(); 00066 #ifdef _DEBUG 00067 virtual void AssertValid() const; 00068 virtual void Dump(CDumpContext& dc) const; 00069 #endif 00070 00071 int FindMenuItem(CMenu* Menu, LPCTSTR MenuString); 00072 00073 00074 // Generated message map functions 00075 protected: 00076 //{{AFX_MSG(CSoccerView) 00077 afx_msg void OnFileSaveAs(); 00079 afx_msg void OnZoom(); 00081 afx_msg void OnZoomToExtents(); 00083 afx_msg void OnZoomToWindow(); 00085 afx_msg void OnOrbit(); 00087 afx_msg void OnPan(); 00089 afx_msg void OnWindowSelect(); 00091 afx_msg void OnApertureSelect(); 00092 afx_msg void OnUpdateGouraud(CCmdUI* pCmdUI); 00093 afx_msg void OnUpdateHiddenLine(CCmdUI* pCmdUI); 00094 afx_msg void OnUpdateOrbit(CCmdUI* pCmdUI); 00095 afx_msg void OnUpdatePan(CCmdUI* pCmdUI); 00096 afx_msg void OnUpdateWindowSelect(CCmdUI* pCmdUI); 00097 afx_msg void OnUpdateZoom(CCmdUI* pCmdUI); 00098 afx_msg void OnUpdateZoomToWindow(CCmdUI* pCmdUI); 00099 afx_msg void OnUpdateZoomToExtents(CCmdUI* pCmdUI); 00101 afx_msg void OnToolsRendermodeGouraudshaded(); 00103 afx_msg void OnToolsRendermodeHiddenline(); 00105 afx_msg void OnToolsRendermodeWireframe(); 00106 afx_msg void OnUpdateToolsRendermodeWireframe(CCmdUI* pCmdUI); 00107 afx_msg void OnUpdateToolsRendermodeGouraudshaded(CCmdUI* pCmdUI); 00108 afx_msg void OnUpdateToolsRendermodeHiddenline(CCmdUI* pCmdUI); 00110 afx_msg void OnCreateCone(); 00112 afx_msg void OnCreateCylinder(); 00114 afx_msg void OnCreateSphere(); 00116 afx_msg void OnCreateRectangle(); 00117 afx_msg void OnUpdateCreateCone(CCmdUI* pCmdUI); 00118 afx_msg void OnUpdateCreateCylinder(CCmdUI* pCmdUI); 00119 afx_msg void OnUpdateCreateSphere(CCmdUI* pCmdUI); 00121 afx_msg void OnDeleteLayers(); 00122 afx_msg virtual void OnLButtonDown(UINT nFlags, CPoint point); 00123 afx_msg virtual void OnLButtonUp(UINT nFlags, CPoint point); 00124 afx_msg virtual void OnMouseMove(UINT nFlags, CPoint point); 00125 //}}AFX_MSG 00126 DECLARE_MESSAGE_MAP() 00127 00128 00129 void load(const char * filename); 00130 00131 }; 00132 00133 00135 00136 //{{AFX_INSERT_LOCATION}} 00137 // Microsoft Developer Studio will insert additional declarations immediately before the previous line. 00138 00139 #endif // !defined(AFX_CSoccerView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_)