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