I'm playing around with the visualizer and multiple viewports. I was wondering if it would be possible to hide/show a certain viewport when desired? For example, begin execution showing viewport #1 and when the user chooses so, switch to viewport #3 hiding #1.
I'm searching around in the PCLVisualizer and vtkViewport doxy docs but still didn't manage to get this working.
Is it possible to have independent camera and zoom settings in the viewports? resetCamera() method updates both viewports, and I am trying to have zoom in one viewport to be changed automatically, while the second viewport will be only changed with the user's mouse activity?
here I specify the viewport, but still, v2's camera setting will change as well.
I believe there is a way to decouple this by creating separate cameras for each viewport. I'm not sure if this is
technically possible with PCVisualizer in its current form, so we'd need to add this functionality.