[vtkusers] Is vtk usable with windows form?

Joseph Melnyk JMelnyk at pile.com
Tue Apr 7 08:38:58 EDT 2015


Yes.  You would use a vtkWin32OpenGLRenderWindow as your render window.  Put something like a Panel or a PictureBox Control in your form, then pass SetParentId the handle for that Control: myRenderWindow->SetParentId(myPictureBox->Handle.ToPointer());

It's more complicated to interface with VTK via C#, but you can do it very easily with C++/CLI (which is what the example above is).

Joe




-----Original Message-----
From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of JoseBarretoT
Sent: Monday, April 6, 2015 3:54 PM
To: vtkusers at vtk.org
Subject: Re: [vtkusers] Is vtk usable with windows form?

You could use VTK with Windows Forms?



--
View this message in context: http://vtk.1045678.n5.nabble.com/Is-vtk-usable-with-windows-form-tp1238071p5731368.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list