[vtkusers] Black plane when using vtkPlaneWidget with QVTKWidget

Luca Pallozzi Lavorante lplavorante at gmail.com
Fri Aug 19 15:00:43 EDT 2016


Hi everybody,
I would like to know if there is some special issue in using vtkPlaneWidget
with QVTKWidget. I have tested two identical codes, one using the standard
vtkRenderWindowInteractor outside a Qt environment, the other using
QVTKWidget. In both cases, I probe my dataset using vtkProbeFilter.
In the second case, I invoke the method vtkPlaneWidget::SetInteractor()
passing QVTKWidget::GetInteractor() as argument. The problem is that the
probing plane is not displayed. I see vtkPlaneWidget's  manipulators, I
rotate the widget etc, but the plane used to probe my data is shown in
black. The same application yelds a normal behavior when using
vtkRenderWindowInteractor.
What is the problem? I know that the call QVTKWidget::GetInteractor()
returns a QVTKInteractor object (which inherits vtkRenderWindowInteractor).
Do I have to give some special treatment to the vtkPlaneWidget in this case?

Many thanks for your help

              Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160819/71abbdf7/attachment.html>


More information about the vtkusers mailing list