I’m embedding a VTK window in a Qt Application with QVTKRenderWindowInteractor. In this window, I need to display a mesh created as a vtkUnstructuredGrid.
Because my data is only 2D, I’d like to make sure that the camera always stays along a normal to the data.
What should I do to block the camera ?
Thanks a lot in advance for any hint.
I’m embedding a VTK window in a Qt Application with QVTKRenderWindowInteractor. In this window,
Share
Short story: use a specific
vtkInteractorStyle.There are a few styles already available (like
vtkInteractorStyleRubberBandZoom, etc) but at worst, avtkInteractorStylecan be subclassed and tailored to one’s needs.In this example, we could disable the basic behavior for a left button (camera rotation) and use another behavior instead.