1 // ugviewView.h : interface of the CUgviewView class
3 /////////////////////////////////////////////////////////////////////////////
4 #include "vtkMFCInteractor.h"
5 #include "vtkRenderMaster.h"
6 #include "vtkRenderWindow.h"
7 #include "vtkConeSource.h"
13 class CVtkView : public CView
15 protected: // create from serialization only
17 DECLARE_DYNCREATE(CVtkView)
18 vtkMFCInteractor * iren;
20 vtkRenderWindow * renWindow;
21 vtkRenderMaster * renMaster;
26 LPSTGMEDIUM CopyMedium; // for copying to the clipboard
27 COleDataSource *CopySource;
32 CVtkDoc* GetDocument();
38 // ClassWizard generated virtual function overrides
39 //{{AFX_VIRTUAL(CVtkView)
41 virtual void OnDraw(CDC* pDC); // overridden to draw this view
42 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
44 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
45 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
46 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
47 virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
54 virtual void AssertValid() const;
55 virtual void Dump(CDumpContext& dc) const;
61 // Generated message map functions
64 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
65 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
66 afx_msg void OnTimer(UINT nIDEvent);
67 afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
68 afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
69 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
70 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
71 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
72 afx_msg void OnSize(UINT nType, int cx, int cy);
73 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
74 afx_msg void OnEditCopy();
79 #ifndef _DEBUG // debug version in ugviewView.cpp
80 inline CVtkDoc* CVtkView::GetDocument()
81 { return (CVtkDoc*)m_pDocument; }
84 /////////////////////////////////////////////////////////////////////////////