[vtkusers] Add a menu item in VTK

David Doria daviddoria at gmail.com
Mon Feb 27 07:22:17 EST 2012


>> Hi all,
>>
>> Could someone give me an example for adding a menu item in vtk in c++?
>> I want to allow the user to change the data in vtk render by pressing a
>> button.
>> I thought of doing this by adding right click menu in vtk.
>> Thanks.

You should look into using Qt for all of your GUI needs, and use a
QVTKWidget inside your Qt widget.

http://www.vtk.org/Wiki/VTK/Examples/Cxx#Qt

There is a learning curve, but it's worth it.

David



More information about the vtkusers mailing list