OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / ALPHALINUX5 / util / ALPHALINUX5 / include / vtk / vtkView.h
1 // ugviewView.h : interface of the CUgviewView class
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 #include "vtkMFCInteractor.h"
5 #include "vtkRenderMaster.h"
6 #include "vtkRenderWindow.h"
7 #include "vtkConeSource.h"
8
9 #ifdef class
10 #undef class
11 #endif
12
13 class CVtkView : public CView
14 {
15 protected: // create from serialization only
16   CVtkView();
17   DECLARE_DYNCREATE(CVtkView)
18 vtkMFCInteractor * iren;
19   vtkRenderer * ren;
20   vtkRenderWindow * renWindow;
21   vtkRenderMaster * renMaster;
22   HWND hWnd;
23   HDC hDC;
24   int DIBDepth;
25   float DIBScale;
26   LPSTGMEDIUM CopyMedium;                               // for copying to the clipboard
27   COleDataSource *CopySource;
28
29
30   // Attributes
31 public:
32   CVtkDoc* GetDocument();
33
34   // Operations
35 public:
36
37   // Overrides
38   // ClassWizard generated virtual function overrides
39   //{{AFX_VIRTUAL(CVtkView)
40 public:
41   virtual void OnDraw(CDC* pDC);  // overridden to draw this view
42   virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
43 protected:
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);
48   //}}AFX_VIRTUAL
49
50   // Implementation
51 public:
52   virtual ~CVtkView();
53 #ifdef _DEBUG
54   virtual void AssertValid() const;
55   virtual void Dump(CDumpContext& dc) const;
56 #endif
57
58 protected:
59   BYTE *GetDIB();
60
61   // Generated message map functions
62 protected:
63   //{{AFX_MSG(CVtkView)
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();
75   //}}AFX_MSG
76   DECLARE_MESSAGE_MAP()
77 };
78
79 #ifndef _DEBUG  // debug version in ugviewView.cpp
80 inline CVtkDoc* CVtkView::GetDocument()
81 { return (CVtkDoc*)m_pDocument; }
82 #endif
83
84 /////////////////////////////////////////////////////////////////////////////