[vtkusers] How to embed VTK rendering context into Windows Form

Richard Whitehead richard.whitehead at vivosight.com
Wed Jun 11 08:54:51 EDT 2014


Sonya,

The main thing to know is that you can get your app working in the "normal"
VTK way using a vtkRenderWindow, and then later you can call SetParentId()
on the render window, passing a window handle, to get VTK to draw into any
window you want rather than into a pop-up window.

Personally I have created my app in C# and have a C++ DLL doing all the VTK
stuff, but this requires quite a bit to get started.  MFC is pretty old
technology and difficult to get right, but if you want to stay entirely in
C++ then you either use MFC or some other framework such as Qt.  It does
not matter as far as VTK is concerned, all it takes is a window handle.

Richard


-- 

Richard Whitehead *–* Senior Imaging Engineer

*Michelson Diagnostics Ltd*

*M:* +44 (0)7905 955276   *T:* +44 (0)20 8308 1695

*E: *richard.whitehead at vivosight.com   *W:* www.vivosight.com


<http://www.vivosight.com/>


Michelson Diagnostics Ltd, 1 Grays Farm Production Village, Grays Farm
Road, Orpington, Kent  BR5 3BD, UK

Registered Office: 3 Shearwater, Maidstone, ME16 0DW.     Registered in
England No. 5732681
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140611/f2981e79/attachment.html>


More information about the vtkusers mailing list