1 // PofViewView.h : interface of the CPofViewView class
3 /////////////////////////////////////////////////////////////////////////////
7 #include "objecttree.h"
9 class CPofViewView : public CView
11 protected: // create from serialization only
13 DECLARE_DYNCREATE(CPofViewView)
18 CPofViewDoc* GetDocument();
20 void MoveViewer(float FrameTime, BOOL is_active, int key);
23 matrix m_ViewerOrient;
24 matrix m_ObjectOrient;
26 physics_info m_ViewerPhysics;
27 control_info m_Viewer_ci;
30 int m_current_detail_level;
34 int m_show_destroyed_subobjects;
36 int m_show_invisible_faces;
39 int m_mouse_x, m_mouse_y;
40 int m_mouse_dx, m_mouse_dy;
48 CObjectTree m_TreeDialog;
54 // ClassWizard generated virtual function overrides
55 //{{AFX_VIRTUAL(CPofViewView)
57 virtual void OnDraw(CDC* pDC); // overridden to draw this view
58 virtual void OnInitialUpdate();
60 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
61 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
62 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
67 virtual ~CPofViewView();
69 virtual void AssertValid() const;
70 virtual void Dump(CDumpContext& dc) const;
75 // Generated message map functions
77 //{{AFX_MSG(CPofViewView)
78 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
79 afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
80 afx_msg void OnKillFocus(CWnd* pNewWnd);
81 afx_msg void OnSetFocus(CWnd* pOldWnd);
82 afx_msg void OnSize(UINT nType, int cx, int cy);
83 afx_msg void OnPofOutline();
84 afx_msg void OnUpdatePofOutline(CCmdUI* pCmdUI);
85 afx_msg void OnPofLighting();
86 afx_msg void OnUpdatePofLighting(CCmdUI* pCmdUI);
87 afx_msg void OnPofPivots();
88 afx_msg void OnUpdatePofPivots(CCmdUI* pCmdUI);
89 afx_msg void OnUpdateDetail1(CCmdUI* pCmdUI);
90 afx_msg void OnDetail1();
91 afx_msg void OnDetail2();
92 afx_msg void OnUpdateDetail2(CCmdUI* pCmdUI);
93 afx_msg void OnDetail3();
94 afx_msg void OnUpdateDetail3(CCmdUI* pCmdUI);
95 afx_msg void OnDetail4();
96 afx_msg void OnUpdateDetail4(CCmdUI* pCmdUI);
97 afx_msg void OnDetail5();
98 afx_msg void OnUpdateDetail5(CCmdUI* pCmdUI);
99 afx_msg void OnDetail6();
100 afx_msg void OnUpdateDetail6(CCmdUI* pCmdUI);
101 afx_msg void OnShowTree();
102 afx_msg void OnUpdateShowTree(CCmdUI* pCmdUI);
103 afx_msg void OnPofPaths();
104 afx_msg void OnUpdatePofPaths(CCmdUI* pCmdUI);
105 afx_msg void OnPofRadius();
106 afx_msg void OnUpdatePofRadius(CCmdUI* pCmdUI);
107 afx_msg void OnPofOverwrite();
108 afx_msg void OnUpdatePofOverwrite(CCmdUI* pCmdUI);
109 afx_msg void OnShowDamagedSubobjects();
110 afx_msg void OnUpdateShowDamagedSubobjects(CCmdUI* pCmdUI);
111 afx_msg void OnShowDebris();
112 afx_msg void OnUpdateShowDebris(CCmdUI* pCmdUI);
113 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
114 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
115 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
116 afx_msg void OnPofSmoothing();
117 afx_msg void OnUpdatePofSmoothing(CCmdUI* pCmdUI);
118 afx_msg void OnPofTexturing();
119 afx_msg void OnUpdatePofTexturing(CCmdUI* pCmdUI);
120 afx_msg void OnPofShields();
121 afx_msg void OnUpdatePofShields(CCmdUI* pCmdUI);
122 afx_msg void OnToggleLighting();
123 afx_msg void OnUpdateToggleLighting(CCmdUI* pCmdUI);
124 afx_msg void OnInvisiblefaces();
125 afx_msg void OnUpdateInvisiblefaces(CCmdUI* pCmdUI);
126 afx_msg void OnBayPaths();
127 afx_msg void OnUpdateBayPaths(CCmdUI* pCmdUI);
128 afx_msg void OnAutocenter();
129 afx_msg void OnUpdateAutocenter(CCmdUI* pCmdUI);
131 DECLARE_MESSAGE_MAP()
134 #ifndef _DEBUG // debug version in PofViewView.cpp
135 inline CPofViewDoc* CPofViewView::GetDocument()
136 { return (CPofViewDoc*)m_pDocument; }
139 /////////////////////////////////////////////////////////////////////////////