SpheresView.h
Go to the documentation of this file.
1 // SpheresView.h : interface of the CSpheresView class, derived from CHoopsView
2 // Adds application specific members such as a QueryDialog and UI update/message maps
3 
4 #if !defined(AFX_CSpheresView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_)
5 #define AFX_CSpheresView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_
6 
7 #if _MSC_VER >= 1000
8 #pragma once
9 #endif // _MSC_VER >= 1000
10 
11 // SpheresView.h : header file
12 //
13 
14 #include "CHoopsView.h"
15 
16 class HSpheresView;
17 class HStreamFileToolkit;
18 
19 
21 // CSpheresView view
22 
23 class CSpheresView : public CHoopsView
24 {
25 protected:
26 
27  CSpheresView(); // protected constructor used by dynamic creation
29 
30 // Attributes
31 public:
32 
33  // Operations
34 public:
36 
37  // set current operator
38  void LocalSetOperator(HBaseOperator *NewOperator);
39 
40  void LoadFile( LPCTSTR csFilePathName );
41  bool SaveFile( LPCTSTR csFilePathName );
42 
43  // HNet
44 
45 
46 // Overrides
47  // ClassWizard generated virtual function overrides
48  //{{AFX_VIRTUAL(CSpheresView)
49  public:
50  virtual void OnInitialUpdate();
51  protected:
52  virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
53  //}}AFX_VIRTUAL
54 
55 private:
56 
57 
58 // Implementation
59 protected:
60  virtual ~CSpheresView();
61 #ifdef _DEBUG
62  virtual void AssertValid() const;
63  virtual void Dump(CDumpContext& dc) const;
64 #endif
65 
66  int FindMenuItem(CMenu* Menu, LPCTSTR MenuString);
67 
68 
69  // Generated message map functions
70 protected:
71  //{{AFX_MSG(CSpheresView)
72  afx_msg void OnFileSaveAs();
73  afx_msg void OnZoom();
74  afx_msg void OnZoomToExtents();
75  afx_msg void OnZoomToWindow();
76  afx_msg void OnOrbit();
77  afx_msg void OnPan();
78  afx_msg void OnAnnotate();
79  afx_msg void OnRotate();
80  afx_msg void OnChangeMaterial();
81  afx_msg void OnWindowSelect();
82  afx_msg void OnUpdateShaded(CCmdUI* pCmdUI);
83  afx_msg void OnUpdateHiddenLine(CCmdUI* pCmdUI);
84  afx_msg void OnUpdateOrbit(CCmdUI* pCmdUI);
85  afx_msg void OnUpdatePan(CCmdUI* pCmdUI);
86  afx_msg void OnUpdateRotate(CCmdUI* pCmdUI);
87  afx_msg void OnUpdateWindowSelect(CCmdUI* pCmdUI);
88  afx_msg void OnUpdateZoom(CCmdUI* pCmdUI);
89  afx_msg void OnUpdateZoomToWindow(CCmdUI* pCmdUI);
90  afx_msg void OnUpdateZoomToExtents(CCmdUI* pCmdUI);
91  afx_msg void OnToolsRendermodeShaded();
92  afx_msg void OnToolsRendermodePhongshaded();
93  afx_msg void OnToolsRendermodeHiddenline();
94  afx_msg void OnToolsRendermodeWireframe();
95  afx_msg void OnUpdateToolsRendermodeWireframe(CCmdUI* pCmdUI);
96  afx_msg void OnUpdateToolsRendermodeShaded(CCmdUI* pCmdUI);
97  afx_msg void OnUpdateToolsRendermodeHiddenline(CCmdUI* pCmdUI);
98  afx_msg void OnCreateCone();
99  afx_msg void OnCreateCylinder();
100  afx_msg void OnCreateSphere();
101  afx_msg void OnUpdateCreateCone(CCmdUI* pCmdUI);
102  afx_msg void OnUpdateCreateCylinder(CCmdUI* pCmdUI);
103  afx_msg void OnUpdateCreateSphere(CCmdUI* pCmdUI);
104  //}}AFX_MSG
105  DECLARE_MESSAGE_MAP()
106 
107  void load(const char * filename);
108 
109 };
110 
111 
113 
114 //{{AFX_INSERT_LOCATION}}
115 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
116 
117 #endif // !defined(AFX_CSpheresView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_)
afx_msg void OnZoom()
afx_msg void OnUpdateCreateCylinder(CCmdUI *pCmdUI)
afx_msg void OnToolsRendermodeShaded()
Set the render mode to smooth (gouraud) shading.
int FindMenuItem(CMenu *Menu, LPCTSTR MenuString)
afx_msg void OnUpdateToolsRendermodeWireframe(CCmdUI *pCmdUI)
HSpheresView * GetSolidView()
Definition: SpheresView.h:35
afx_msg void OnUpdateOrbit(CCmdUI *pCmdUI)
afx_msg void OnCreateSphere()
afx_msg void OnCreateCone()
DECLARE_DYNCREATE(CHoopsView)
void LocalSetOperator(HBaseOperator *NewOperator)
afx_msg void OnToolsRendermodeWireframe()
Set the render mode to wireframe.
Definition: HSpheresView.h:13
afx_msg void OnUpdateToolsRendermodeHiddenline(CCmdUI *pCmdUI)
afx_msg void OnOrbit()
afx_msg void OnZoomToWindow()
virtual void OnActivateView(BOOL bActivate, CView *pActivateView, CView *pDeactiveView)
afx_msg void OnUpdatePan(CCmdUI *pCmdUI)
afx_msg void OnUpdateCreateSphere(CCmdUI *pCmdUI)
afx_msg void OnUpdateRotate(CCmdUI *pCmdUI)
afx_msg void OnUpdateWindowSelect(CCmdUI *pCmdUI)
Definition: SpheresView.h:23
afx_msg void OnUpdateZoomToExtents(CCmdUI *pCmdUI)
afx_msg void OnToolsRendermodeHiddenline()
Set the render mode to hidden line removal.
afx_msg void OnToolsRendermodePhongshaded()
Set the render mode to phong shading.
afx_msg void OnUpdateHiddenLine(CCmdUI *pCmdUI)
afx_msg void OnAnnotate()
Activate the HOpMarkupAnnotate operator.
afx_msg void OnCreateCylinder()
afx_msg void OnPan()
afx_msg void OnZoomToExtents()
void load(const char *filename)
afx_msg void OnRotate()
Activete the HOpObjectRotate operator.
afx_msg void OnChangeMaterial()
change the material property of the selected objects
HBaseView * m_pHView
virtual ~CSpheresView()
afx_msg void OnUpdateZoom(CCmdUI *pCmdUI)
afx_msg void OnUpdateZoomToWindow(CCmdUI *pCmdUI)
void LoadFile(LPCTSTR csFilePathName)
bool SaveFile(LPCTSTR csFilePathName)
afx_msg void OnUpdateCreateCone(CCmdUI *pCmdUI)
afx_msg void OnUpdateToolsRendermodeShaded(CCmdUI *pCmdUI)
virtual void OnInitialUpdate()
afx_msg void OnFileSaveAs()
afx_msg void OnUpdateShaded(CCmdUI *pCmdUI)
afx_msg void OnWindowSelect()