2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
9 // PofViewView.h : interface of the CPofViewView class
11 /////////////////////////////////////////////////////////////////////////////
15 #include "objecttree.h"
17 class CPofViewView : public CView
19 protected: // create from serialization only
21 DECLARE_DYNCREATE(CPofViewView)
26 CPofViewDoc* GetDocument();
28 void MoveViewer(float FrameTime, BOOL is_active, int key);
31 matrix m_ViewerOrient;
32 matrix m_ObjectOrient;
34 physics_info m_ViewerPhysics;
35 control_info m_Viewer_ci;
38 int m_current_detail_level;
42 int m_show_destroyed_subobjects;
44 int m_show_invisible_faces;
47 int m_mouse_x, m_mouse_y;
48 int m_mouse_dx, m_mouse_dy;
56 CObjectTree m_TreeDialog;
62 // ClassWizard generated virtual function overrides
63 //{{AFX_VIRTUAL(CPofViewView)
65 virtual void OnDraw(CDC* pDC); // overridden to draw this view
66 virtual void OnInitialUpdate();
68 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
69 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
70 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
75 virtual ~CPofViewView();
77 virtual void AssertValid() const;
78 virtual void Dump(CDumpContext& dc) const;
83 // Generated message map functions
85 //{{AFX_MSG(CPofViewView)
86 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
87 afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
88 afx_msg void OnKillFocus(CWnd* pNewWnd);
89 afx_msg void OnSetFocus(CWnd* pOldWnd);
90 afx_msg void OnSize(UINT nType, int cx, int cy);
91 afx_msg void OnPofOutline();
92 afx_msg void OnUpdatePofOutline(CCmdUI* pCmdUI);
93 afx_msg void OnPofLighting();
94 afx_msg void OnUpdatePofLighting(CCmdUI* pCmdUI);
95 afx_msg void OnPofPivots();
96 afx_msg void OnUpdatePofPivots(CCmdUI* pCmdUI);
97 afx_msg void OnUpdateDetail1(CCmdUI* pCmdUI);
98 afx_msg void OnDetail1();
99 afx_msg void OnDetail2();
100 afx_msg void OnUpdateDetail2(CCmdUI* pCmdUI);
101 afx_msg void OnDetail3();
102 afx_msg void OnUpdateDetail3(CCmdUI* pCmdUI);
103 afx_msg void OnDetail4();
104 afx_msg void OnUpdateDetail4(CCmdUI* pCmdUI);
105 afx_msg void OnDetail5();
106 afx_msg void OnUpdateDetail5(CCmdUI* pCmdUI);
107 afx_msg void OnDetail6();
108 afx_msg void OnUpdateDetail6(CCmdUI* pCmdUI);
109 afx_msg void OnShowTree();
110 afx_msg void OnUpdateShowTree(CCmdUI* pCmdUI);
111 afx_msg void OnPofPaths();
112 afx_msg void OnUpdatePofPaths(CCmdUI* pCmdUI);
113 afx_msg void OnPofRadius();
114 afx_msg void OnUpdatePofRadius(CCmdUI* pCmdUI);
115 afx_msg void OnPofOverwrite();
116 afx_msg void OnUpdatePofOverwrite(CCmdUI* pCmdUI);
117 afx_msg void OnShowDamagedSubobjects();
118 afx_msg void OnUpdateShowDamagedSubobjects(CCmdUI* pCmdUI);
119 afx_msg void OnShowDebris();
120 afx_msg void OnUpdateShowDebris(CCmdUI* pCmdUI);
121 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
122 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
123 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
124 afx_msg void OnPofSmoothing();
125 afx_msg void OnUpdatePofSmoothing(CCmdUI* pCmdUI);
126 afx_msg void OnPofTexturing();
127 afx_msg void OnUpdatePofTexturing(CCmdUI* pCmdUI);
128 afx_msg void OnPofShields();
129 afx_msg void OnUpdatePofShields(CCmdUI* pCmdUI);
130 afx_msg void OnToggleLighting();
131 afx_msg void OnUpdateToggleLighting(CCmdUI* pCmdUI);
132 afx_msg void OnInvisiblefaces();
133 afx_msg void OnUpdateInvisiblefaces(CCmdUI* pCmdUI);
134 afx_msg void OnBayPaths();
135 afx_msg void OnUpdateBayPaths(CCmdUI* pCmdUI);
136 afx_msg void OnAutocenter();
137 afx_msg void OnUpdateAutocenter(CCmdUI* pCmdUI);
139 DECLARE_MESSAGE_MAP()
142 #ifndef _DEBUG // debug version in PofViewView.cpp
143 inline CPofViewDoc* CPofViewView::GetDocument()
144 { return (CPofViewDoc*)m_pDocument; }
147 /////////////////////////////////////////////////////////////////////////////