]> icculus.org git repositories - taylor/freespace2.git/blob - include/pofviewview.h
added copyright header
[taylor/freespace2.git] / include / pofviewview.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
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
6  * the source.
7  */
8
9 // PofViewView.h : interface of the CPofViewView class
10 //
11 /////////////////////////////////////////////////////////////////////////////
12
13 #include "vecmat.h"
14 #include "physics.h"
15 #include "objecttree.h"
16
17 class CPofViewView : public CView
18 {
19 protected: // create from serialization only
20         CPofViewView();
21         DECLARE_DYNCREATE(CPofViewView)
22
23 // Attributes
24 public:
25         int m_dolighting;
26         CPofViewDoc* GetDocument();
27
28         void MoveViewer(float FrameTime, BOOL is_active, int key);
29
30         vector m_ViewerPos;
31         matrix m_ViewerOrient;
32         matrix m_ObjectOrient;
33         float m_ViewerZoom;
34         physics_info m_ViewerPhysics;
35         control_info m_Viewer_ci;
36         int m_show_outline;
37         int m_show_pivots;
38         int m_current_detail_level;
39         int m_show_paths;
40         int m_show_radius;
41         int m_show_overwrite;
42         int m_show_destroyed_subobjects;
43         int m_show_shields;
44         int m_show_invisible_faces;     
45         int m_show_bay_paths;
46         int m_autocenter;
47         int m_mouse_x, m_mouse_y;
48         int m_mouse_dx, m_mouse_dy;
49         int m_mouse_down;
50         int m_mouse_inited;
51         
52         int m_texturing;
53         int m_smoothing;
54         int m_lights_on;
55
56         CObjectTree m_TreeDialog;       
57
58 // Operations
59 public:
60
61 // Overrides
62         // ClassWizard generated virtual function overrides
63         //{{AFX_VIRTUAL(CPofViewView)
64         public:
65         virtual void OnDraw(CDC* pDC);  // overridden to draw this view
66         virtual void OnInitialUpdate();
67         protected:
68         virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
69         virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
70         virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
71         //}}AFX_VIRTUAL
72
73 // Implementation
74 public:
75         virtual ~CPofViewView();
76 #ifdef _DEBUG
77         virtual void AssertValid() const;
78         virtual void Dump(CDumpContext& dc) const;
79 #endif
80
81 protected:
82
83 // Generated message map functions
84 protected:
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);
138         //}}AFX_MSG
139         DECLARE_MESSAGE_MAP()
140 };
141
142 #ifndef _DEBUG  // debug version in PofViewView.cpp
143 inline CPofViewDoc* CPofViewView::GetDocument()
144    { return (CPofViewDoc*)m_pDocument; }
145 #endif
146
147 /////////////////////////////////////////////////////////////////////////////
148