SoccerView.h
Go to the documentation of this file.
1 // SoccerView.h : interface of the CSoccerView class, derived from CHoopsView
2 // Adds application specific members such as a QueryDialog and UI update/message maps
3 
4 #if !defined(AFX_CSoccerView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_)
5 #define AFX_CSoccerView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_
6 
7 #if _MSC_VER >= 1000
8 #pragma once
9 #endif // _MSC_VER >= 1000
10 
11 // SoccerView.h : header file
12 //
13 
14 #include "CHoopsView.h"
15 
16 class HSoccerView;
17 class HStreamFileToolkit;
18 
19 
21 // CSoccerView view
22 
23 class CSoccerView : public CHoopsView
24 {
25 protected:
26 
27  CSoccerView(); // protected constructor used by dynamic creation
29 
30 // Attributes
31 public:
32 
33  // Operations
34 public:
37 
39  void LocalSetOperator(HBaseOperator *NewOperator);
40 
42  void LoadFile( LPCTSTR csFilePathName );
43 
45  bool SaveFile( LPCTSTR csFilePathName );
46 
47  // HNet
48 
49 
50 // Overrides
51  // ClassWizard generated virtual function overrides
52  //{{AFX_VIRTUAL(CSoccerView)
53  public:
54  virtual void OnInitialUpdate();
55  protected:
56  virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
57 
58  //}}AFX_VIRTUAL
59 
60 private:
61 
62 
63 // Implementation
64 protected:
65  virtual ~CSoccerView();
66 #ifdef _DEBUG
67  virtual void AssertValid() const;
68  virtual void Dump(CDumpContext& dc) const;
69 #endif
70 
71  int FindMenuItem(CMenu* Menu, LPCTSTR MenuString);
72 
73 
74  // Generated message map functions
75 protected:
76  //{{AFX_MSG(CSoccerView)
77  afx_msg void OnFileSaveAs();
79  afx_msg void OnZoom();
81  afx_msg void OnZoomToExtents();
83  afx_msg void OnZoomToWindow();
85  afx_msg void OnOrbit();
87  afx_msg void OnPan();
89  afx_msg void OnWindowSelect();
91  afx_msg void OnApertureSelect();
92  afx_msg void OnUpdateGouraud(CCmdUI* pCmdUI);
93  afx_msg void OnUpdateHiddenLine(CCmdUI* pCmdUI);
94  afx_msg void OnUpdateOrbit(CCmdUI* pCmdUI);
95  afx_msg void OnUpdatePan(CCmdUI* pCmdUI);
96  afx_msg void OnUpdateWindowSelect(CCmdUI* pCmdUI);
97  afx_msg void OnUpdateZoom(CCmdUI* pCmdUI);
98  afx_msg void OnUpdateZoomToWindow(CCmdUI* pCmdUI);
99  afx_msg void OnUpdateZoomToExtents(CCmdUI* pCmdUI);
101  afx_msg void OnToolsRendermodeGouraudshaded();
103  afx_msg void OnToolsRendermodeHiddenline();
105  afx_msg void OnToolsRendermodeWireframe();
106  afx_msg void OnUpdateToolsRendermodeWireframe(CCmdUI* pCmdUI);
107  afx_msg void OnUpdateToolsRendermodeGouraudshaded(CCmdUI* pCmdUI);
108  afx_msg void OnUpdateToolsRendermodeHiddenline(CCmdUI* pCmdUI);
110  afx_msg void OnCreateCone();
112  afx_msg void OnCreateCylinder();
114  afx_msg void OnCreateSphere();
116  afx_msg void OnCreateRectangle();
117  afx_msg void OnUpdateCreateCone(CCmdUI* pCmdUI);
118  afx_msg void OnUpdateCreateCylinder(CCmdUI* pCmdUI);
119  afx_msg void OnUpdateCreateSphere(CCmdUI* pCmdUI);
121  afx_msg void OnDeleteLayers();
122  afx_msg virtual void OnLButtonDown(UINT nFlags, CPoint point);
123  afx_msg virtual void OnLButtonUp(UINT nFlags, CPoint point);
124  afx_msg virtual void OnMouseMove(UINT nFlags, CPoint point);
125  //}}AFX_MSG
126  DECLARE_MESSAGE_MAP()
127 
128 
129  void load(const char * filename);
130 
131 };
132 
133 
135 
136 //{{AFX_INSERT_LOCATION}}
137 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
138 
139 #endif // !defined(AFX_CSoccerView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_)
afx_msg void OnZoomToWindow()
HSoccerView * GetSolidView()
Definition: SoccerView.h:36
afx_msg void OnPan()
afx_msg void OnUpdateOrbit(CCmdUI *pCmdUI)
afx_msg void OnUpdateToolsRendermodeGouraudshaded(CCmdUI *pCmdUI)
virtual afx_msg void OnMouseMove(UINT nFlags, CPoint point)
DECLARE_DYNCREATE(CHoopsView)
virtual void OnActivateView(BOOL bActivate, CView *pActivateView, CView *pDeactiveView)
virtual void OnInitialUpdate()
afx_msg void OnUpdateWindowSelect(CCmdUI *pCmdUI)
void LocalSetOperator(HBaseOperator *NewOperator)
afx_msg void OnUpdateHiddenLine(CCmdUI *pCmdUI)
afx_msg void OnUpdateZoomToExtents(CCmdUI *pCmdUI)
afx_msg void OnUpdateCreateCylinder(CCmdUI *pCmdUI)
afx_msg void OnCreateSphere()
void load(const char *filename)
virtual ~CSoccerView()
afx_msg void OnUpdateCreateCone(CCmdUI *pCmdUI)
afx_msg void OnUpdateZoomToWindow(CCmdUI *pCmdUI)
afx_msg void OnUpdateCreateSphere(CCmdUI *pCmdUI)
bool SaveFile(LPCTSTR csFilePathName)
afx_msg void OnUpdatePan(CCmdUI *pCmdUI)
afx_msg void OnApertureSelect()
afx_msg void OnCreateRectangle()
afx_msg void OnUpdateToolsRendermodeHiddenline(CCmdUI *pCmdUI)
virtual afx_msg void OnLButtonDown(UINT nFlags, CPoint point)
afx_msg void OnToolsRendermodeHiddenline()
afx_msg void OnToolsRendermodeGouraudshaded()
virtual afx_msg void OnLButtonUp(UINT nFlags, CPoint point)
afx_msg void OnZoomToExtents()
afx_msg void OnFileSaveAs()
Definition: HSoccerView.h:14
afx_msg void OnDeleteLayers()
afx_msg void OnCreateCone()
afx_msg void OnZoom()
void LoadFile(LPCTSTR csFilePathName)
Definition: SoccerView.h:23
HBaseView * m_pHView
afx_msg void OnCreateCylinder()
afx_msg void OnOrbit()
afx_msg void OnUpdateToolsRendermodeWireframe(CCmdUI *pCmdUI)
afx_msg void OnToolsRendermodeWireframe()
afx_msg void OnUpdateGouraud(CCmdUI *pCmdUI)
afx_msg void OnWindowSelect()
int FindMenuItem(CMenu *Menu, LPCTSTR MenuString)
afx_msg void OnUpdateZoom(CCmdUI *pCmdUI)