VTK
vtkMFCWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMFCWindow.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
16 #ifndef vtkMFCWindow_h
17 #define vtkMFCWindow_h
18 
19 #include "vtkGUISupportMFCModule.h" // For export macro
20 #include "afxwin.h"
21 
24 
25 #include "vtkMFCConfigure.h"
26 
28 class VTKGUISUPPORTMFC_EXPORT vtkMFCWindow : public CWnd
29 {
30 public:
32  vtkMFCWindow(CWnd *pcWnd);
34  virtual ~vtkMFCWindow();
35 
36 #ifdef _DEBUG
37  virtual void AssertValid() const;
38  virtual void Dump(CDumpContext& dc) const;
39 #endif
40 
42  void DrawDC(CDC* pDC);
43 
50 
51 protected:
52 
54  afx_msg void OnSize(UINT nType, int cx, int cy);
56  afx_msg void OnPaint();
58  afx_msg void OnDestroy();
60  BOOL OnEraseBkgnd(CDC* pDC);
61 
62  afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
63  afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
64  afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
65  afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
66  afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
67  afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
68  afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
69  afx_msg void OnMouseMove(UINT nFlags, CPoint point);
70  afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
71  afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
72  afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
73  afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
74  afx_msg void OnTimer(UINT_PTR nIDEvent);
75 
78 
79  DECLARE_MESSAGE_MAP()
80 };
81 
82 #endif
83 
84 // VTK-HeaderTest-Exclude: vtkMFCWindow.h
vtkMFCWindow::OnEraseBkgnd
BOOL OnEraseBkgnd(CDC *pDC)
don't clear background
vtkMFCWindow::OnLButtonDblClk
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point)
vtkWin32OpenGLRenderWindow
OpenGL rendering window.
Definition: vtkWin32OpenGLRenderWindow.h:36
vtkMFCWindow::OnSize
afx_msg void OnSize(UINT nType, int cx, int cy)
handle size events
vtkMFCWindow::OnKeyUp
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags)
vtkMFCWindow::OnDestroy
afx_msg void OnDestroy()
handle destroy events
vtkMFCWindow::GetInteractor
virtual vtkRenderWindowInteractor * GetInteractor()
get the interactor
vtkMFCWindow::GetRenderWindow
virtual vtkWin32OpenGLRenderWindow * GetRenderWindow()
get the render window
vtkMFCWindow::OnTimer
afx_msg void OnTimer(UINT_PTR nIDEvent)
vtkMFCWindow::OnPaint
afx_msg void OnPaint()
handle paint events
vtkX3D::point
@ point
Definition: vtkX3D.h:236
vtkMFCWindow::OnKeyDown
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
vtkMFCWindow::OnMButtonDown
afx_msg void OnMButtonDown(UINT nFlags, CPoint point)
vtkMFCWindow::OnLButtonUp
afx_msg void OnLButtonUp(UINT nFlags, CPoint point)
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:79
vtkMFCWindow
class to display a VTK window in an MFC window
Definition: vtkMFCWindow.h:29
vtkMFCWindow::~vtkMFCWindow
virtual ~vtkMFCWindow()
destructor
vtkMFCWindow::OnMouseMove
afx_msg void OnMouseMove(UINT nFlags, CPoint point)
vtkMFCWindow::OnRButtonDown
afx_msg void OnRButtonDown(UINT nFlags, CPoint point)
vtkMFCWindow::OnLButtonDown
afx_msg void OnLButtonDown(UINT nFlags, CPoint point)
vtkMFCWindow::OnMButtonUp
afx_msg void OnMButtonUp(UINT nFlags, CPoint point)
vtkMFCWindow::pvtkWin32OpenGLRW
vtkWin32OpenGLRenderWindow * pvtkWin32OpenGLRW
the vtk window
Definition: vtkMFCWindow.h:77
vtkMFCWindow::OnMouseWheel
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt)
vtkMFCWindow::DrawDC
void DrawDC(CDC *pDC)
draw to a device context
vtkMFCWindow::OnRButtonUp
afx_msg void OnRButtonUp(UINT nFlags, CPoint point)
vtkMFCWindow::vtkMFCWindow
vtkMFCWindow(CWnd *pcWnd)
constructor requires a parent
vtkMFCWindow::SetRenderWindow
virtual void SetRenderWindow(vtkWin32OpenGLRenderWindow *)
give an instance of a vtk render window to the mfc window
vtkMFCWindow::OnChar
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)