VTK  9.1.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkMFCWindow Class Reference

class to display a VTK window in an MFC window More...

#include <vtkMFCWindow.h>

Inherits CWnd.

Collaboration diagram for vtkMFCWindow:
[legend]

Public Member Functions

 vtkMFCWindow (CWnd *pcWnd)
 constructor requires a parent More...
 
virtual ~vtkMFCWindow ()
 destructor More...
 
void DrawDC (CDC *pDC)
 draw to a device context More...
 
virtual void SetRenderWindow (vtkWin32OpenGLRenderWindow *)
 give an instance of a vtk render window to the mfc window More...
 
virtual vtkWin32OpenGLRenderWindowGetRenderWindow ()
 get the render window More...
 
virtual vtkRenderWindowInteractorGetInteractor ()
 get the interactor More...
 

Protected Member Functions

afx_msg void OnSize (UINT nType, int cx, int cy)
 handle size events More...
 
afx_msg void OnPaint ()
 handle paint events More...
 
afx_msg void OnDestroy ()
 handle destroy events More...
 
BOOL OnEraseBkgnd (CDC *pDC)
 don't clear background More...
 
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)
 
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
 
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnMButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnRButtonUp (UINT nFlags, CPoint point)
 
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
 
afx_msg BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
 
afx_msg void OnChar (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnKeyUp (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
 
afx_msg void OnTimer (UINT_PTR nIDEvent)
 

Protected Attributes

vtkWin32OpenGLRenderWindowpvtkWin32OpenGLRW
 the vtk window More...
 

Detailed Description

class to display a VTK window in an MFC window

Definition at line 28 of file vtkMFCWindow.h.

Constructor & Destructor Documentation

◆ vtkMFCWindow()

vtkMFCWindow::vtkMFCWindow ( CWnd *  pcWnd)

constructor requires a parent

◆ ~vtkMFCWindow()

virtual vtkMFCWindow::~vtkMFCWindow ( )
virtual

destructor

Member Function Documentation

◆ DrawDC()

void vtkMFCWindow::DrawDC ( CDC *  pDC)

draw to a device context

◆ SetRenderWindow()

virtual void vtkMFCWindow::SetRenderWindow ( vtkWin32OpenGLRenderWindow )
virtual

give an instance of a vtk render window to the mfc window

◆ GetRenderWindow()

virtual vtkWin32OpenGLRenderWindow * vtkMFCWindow::GetRenderWindow ( )
virtual

get the render window

◆ GetInteractor()

virtual vtkRenderWindowInteractor * vtkMFCWindow::GetInteractor ( )
virtual

get the interactor

◆ OnSize()

afx_msg void vtkMFCWindow::OnSize ( UINT  nType,
int  cx,
int  cy 
)
protected

handle size events

◆ OnPaint()

afx_msg void vtkMFCWindow::OnPaint ( )
protected

handle paint events

◆ OnDestroy()

afx_msg void vtkMFCWindow::OnDestroy ( )
protected

handle destroy events

◆ OnEraseBkgnd()

BOOL vtkMFCWindow::OnEraseBkgnd ( CDC *  pDC)
protected

don't clear background

◆ OnLButtonDblClk()

afx_msg void vtkMFCWindow::OnLButtonDblClk ( UINT  nFlags,
CPoint  point 
)
protected

◆ OnLButtonDown()

afx_msg void vtkMFCWindow::OnLButtonDown ( UINT  nFlags,
CPoint  point 
)
protected

◆ OnMButtonDown()

afx_msg void vtkMFCWindow::OnMButtonDown ( UINT  nFlags,
CPoint  point 
)
protected

◆ OnRButtonDown()

afx_msg void vtkMFCWindow::OnRButtonDown ( UINT  nFlags,
CPoint  point 
)
protected

◆ OnLButtonUp()

afx_msg void vtkMFCWindow::OnLButtonUp ( UINT  nFlags,
CPoint  point 
)
protected

◆ OnMButtonUp()

afx_msg void vtkMFCWindow::OnMButtonUp ( UINT  nFlags,
CPoint  point 
)
protected

◆ OnRButtonUp()

afx_msg void vtkMFCWindow::OnRButtonUp ( UINT  nFlags,
CPoint  point 
)
protected

◆ OnMouseMove()

afx_msg void vtkMFCWindow::OnMouseMove ( UINT  nFlags,
CPoint  point 
)
protected

◆ OnMouseWheel()

afx_msg BOOL vtkMFCWindow::OnMouseWheel ( UINT  nFlags,
short  zDelta,
CPoint  pt 
)
protected

◆ OnChar()

afx_msg void vtkMFCWindow::OnChar ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
)
protected

◆ OnKeyUp()

afx_msg void vtkMFCWindow::OnKeyUp ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
)
protected

◆ OnKeyDown()

afx_msg void vtkMFCWindow::OnKeyDown ( UINT  nChar,
UINT  nRepCnt,
UINT  nFlags 
)
protected

◆ OnTimer()

afx_msg void vtkMFCWindow::OnTimer ( UINT_PTR  nIDEvent)
protected

Member Data Documentation

◆ pvtkWin32OpenGLRW

vtkWin32OpenGLRenderWindow* vtkMFCWindow::pvtkWin32OpenGLRW
protected

the vtk window

Definition at line 76 of file vtkMFCWindow.h.


The documentation for this class was generated from the following file: