I have a large visualisation application using QT (Geant4) and I would like to allow users to enable and disable various widgets based on QT user interaction.
So I have absolutely no problem getting
vtkNew<vtkImplicitPlaneRepresentation> clipperPlaneRepresentation;
vtkNew<vtkImplicitPlaneWidget2> clipperPlaneWidget;
working. But I would like to disable the representation so that there is no widget in the render window. I have tried various combinations of
clipperPlaneWidget->SetEnabled(0 or 1);
and
clipperPlaneWidget->ProcessEventsOn();
clipperPlaneRepresentation->VisibilityOn();
and I cannot change the presence or absence of the widget