Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

VisualizeView.h
Go to the documentation of this file.
1 // VisualizeView.h : interface of the CVisualizeView class, derived from CHoopsView
2 // Adds application specific members such as a QueryDialog and UI update/message maps
3 
4 #if !defined(AFX_CVisualizeView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_)
5 #define AFX_CVisualizeView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_
6 
7 #if _MSC_VER >= 1000
8 #pragma once
9 #endif // _MSC_VER >= 1000
10 
11 // VisualizeView.h : header file
12 //
13 
14 #include "CHoopsView.h"
15 
16 class HVisualizeView;
17 class HStreamFileToolkit;
18 
19 
21 // CVisualizeView view
22 
23 class CVisualizeView : public CHoopsView
24 {
25 protected:
26 
27  CVisualizeView(); // protected constructor used by dynamic creation
28  DECLARE_DYNCREATE(CVisualizeView)
29 
30 // Attributes
31 public:
32 
33  // Operations
34 public:
35  HVisualizeView* GetSolidView() { return (HVisualizeView*)m_pHView; }
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(CVisualizeView)
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 ~CVisualizeView();
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(CVisualizeView)
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 OnWindowSelect();
79  afx_msg void OnSelectionDeleteselection();
80  afx_msg void OnUpdateSelectionDeleteselection(CCmdUI* pCmdUI);
81  afx_msg void OnUpdateGouraud(CCmdUI* pCmdUI);
82  afx_msg void OnUpdateHiddenLine(CCmdUI* pCmdUI);
83  afx_msg void OnUpdateOrbit(CCmdUI* pCmdUI);
84  afx_msg void OnUpdatePan(CCmdUI* pCmdUI);
85  afx_msg void OnUpdateWindowSelect(CCmdUI* pCmdUI);
86  afx_msg void OnUpdateZoom(CCmdUI* pCmdUI);
87  afx_msg void OnUpdateZoomToWindow(CCmdUI* pCmdUI);
88  afx_msg void OnUpdateZoomToExtents(CCmdUI* pCmdUI);
89  afx_msg void OnToolsRendermodeGouraudshaded();
90  afx_msg void OnToolsRendermodeHiddenline();
91  afx_msg void OnToolsRendermodeWireframe();
92  afx_msg void OnUpdateToolsRendermodeWireframe(CCmdUI* pCmdUI);
93  afx_msg void OnUpdateToolsRendermodeGouraudshaded(CCmdUI* pCmdUI);
94  afx_msg void OnUpdateToolsRendermodeHiddenline(CCmdUI* pCmdUI);
95  afx_msg void OnCreateSphere();
96  afx_msg void OnBuildLODS();
97  afx_msg void OnLOD1();
98  afx_msg void OnLOD2();
99  afx_msg void OnLODOriginal();
100  afx_msg void OnEnableFramerate();
101  afx_msg void OnDisableFramerate();
102  afx_msg void OnUpdateCreateSphere(CCmdUI* pCmdUI);
103  afx_msg void OnCreateCone();
104  afx_msg void OnCreateCylinder();
105  afx_msg void OnUpdateCreateCone(CCmdUI* pCmdUI);
106  afx_msg void OnUpdateCreateCylinder(CCmdUI* pCmdUI);
107  afx_msg void OnTimer(UINT nIDEvent);
108  afx_msg void OnWalkOperator();
109  //}}AFX_MSG
110  DECLARE_MESSAGE_MAP()
111 
112  void load(const char * filename);
113 
115 
116  //static void event_checker(struct ht_net_rendition *nr);
117  static void event_checker(HIC_Rendition const *nr);
118 
119 };
120 
121 
123 
124 //{{AFX_INSERT_LOCATION}}
125 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
126 
127 #endif // !defined(AFX_CVisualizeView_H__FCA603FB_1694_11D2_B736_00805F85736F__INCLUDED_)
afx_msg void OnSelectionDeleteselection()
afx_msg void OnPan()
afx_msg void OnUpdateZoomToWindow(CCmdUI *pCmdUI)
afx_msg void OnUpdateToolsRendermodeHiddenline(CCmdUI *pCmdUI)
afx_msg void OnUpdateZoom(CCmdUI *pCmdUI)
afx_msg void OnCreateCone()
virtual void OnActivateView(BOOL bActivate, CView *pActivateView, CView *pDeactiveView)
afx_msg void OnZoomToExtents()
void LocalSetOperator(HBaseOperator *NewOperator)
afx_msg void OnZoom()
afx_msg void OnUpdateZoomToExtents(CCmdUI *pCmdUI)
afx_msg void OnOrbit()
Definition: HVisualizeView.h:13
afx_msg void OnWindowSelect()
afx_msg void OnBuildLODS()
Create Levels of Detail for the model.
afx_msg void OnUpdateCreateCylinder(CCmdUI *pCmdUI)
afx_msg void OnUpdateHiddenLine(CCmdUI *pCmdUI)
bool SaveFile(LPCTSTR csFilePathName)
afx_msg void OnUpdateWindowSelect(CCmdUI *pCmdUI)
afx_msg void OnUpdateGouraud(CCmdUI *pCmdUI)
afx_msg void OnLODOriginal()
Draw the original, full resolution model.
afx_msg void OnToolsRendermodeGouraudshaded()
virtual ~CVisualizeView()
static CVisualizeView * pThisView
Definition: VisualizeView.h:114
void LoadFile(LPCTSTR csFilePathName)
static void event_checker(HIC_Rendition const *nr)
afx_msg void OnUpdateCreateSphere(CCmdUI *pCmdUI)
void load(const char *filename)
afx_msg void OnTimer(UINT nIDEvent)
afx_msg void OnWalkOperator()
Set the current operator to HOpCameraWalk.
int FindMenuItem(CMenu *Menu, LPCTSTR MenuString)
afx_msg void OnCreateSphere()
afx_msg void OnUpdateSelectionDeleteselection(CCmdUI *pCmdUI)
afx_msg void OnUpdateCreateCone(CCmdUI *pCmdUI)
afx_msg void OnUpdatePan(CCmdUI *pCmdUI)
Definition: VisualizeView.h:23
afx_msg void OnDisableFramerate()
Disable constant framerate logic.
afx_msg void OnUpdateToolsRendermodeGouraudshaded(CCmdUI *pCmdUI)
afx_msg void OnCreateCylinder()
afx_msg void OnToolsRendermodeWireframe()
afx_msg void OnEnableFramerate()
Enable constant framerate logic.
afx_msg void OnUpdateOrbit(CCmdUI *pCmdUI)
virtual void OnInitialUpdate()
HVisualizeView * GetSolidView()
Definition: VisualizeView.h:35
afx_msg void OnLOD1()
Clamp to LOD level 1.
afx_msg void OnUpdateToolsRendermodeWireframe(CCmdUI *pCmdUI)
afx_msg void OnToolsRendermodeHiddenline()
afx_msg void OnZoomToWindow()
afx_msg void OnFileSaveAs()
afx_msg void OnLOD2()
Clamp to LOD level 2.