//--------------------------------------------------------------------------- // CameraView.h : interface of the CameraView class // // (C) COPYRIGHT John Henckel, mailto:henckel@iname.com Aug 1998 // // Permission to use, copy, modify, distribute and sell this software // and its documentation for any purpose is hereby granted without fee, // provided that the above copyright notice appear in all copies. // // Visit my website! http://www.GeoCities.com/Paris/6502 #if !defined(AFX_CAMERAVIEW_H__2939132F_15A0_11D2_AC0F_0006296B87F8__INCLUDED_) #define AFX_CAMERAVIEW_H__2939132F_15A0_11D2_AC0F_0006296B87F8__INCLUDED_ //--------------------------------------------------------------------------- class CameraView : public CView { protected: // create from serialization only CameraView(); DECLARE_DYNCREATE(CameraView) public: WorldDoc* GetDocument(); void RefreshImage(CSize& size); BOOL IsStale(); MainApp* app; int lastCount; BOOL needRefresh; BOOL moving; HPALETTE palette; CPoint anchor; Camera* cam; /* Vect position; Vect speed; Quat angle; Quat spin; */ // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CameraView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); //}}AFX_VIRTUAL // Implementation public: virtual ~CameraView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CameraView) afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); afx_msg void OnRButtonUp(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonUp(UINT nFlags, CPoint point); afx_msg void OnSize(UINT nType, int cx, int cy); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in CameraView.cpp inline WorldDoc* CameraView::GetDocument() { return (WorldDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_CAMERAVIEW_H__2939132F_15A0_11D2_AC0F_0006296B87F8__INCLUDED_)