[vtkusers] Problem with volume rendering inside of Qt application

Ernesto elguevara at uci.cu
Mon Feb 16 16:59:58 EST 2015


Jakub Łągwa <kubalagwa <at> gmail.com> writes:

> 
> Hello,
> I have a strange problem with showing VTK volume in QVTKWidget. I can
compile example such as as:
> http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/Medical/Cxx/Medical4.cxxand


>  it work fine. But when I want to use exactly the same code in my sample
>  Qt application (let's say - render only after user press a button) 
> nothing is shown in QVTKWidget (I tried also with QVTKInteractor instead
>  of the one from example). I have this problem only when I want to use 
> vtkVolume and than add the volume to renderer with AddVolume. If I make 
> other 3D visualisation for example with vtkContourFilter and than I add 
> it to renderer with AddActor method - everything works fine.
> I was trying to solve this problem for a couple of days but I found 
> some things that I can't understand in any way. If I take, for example, 
> Medical4.cxx file and add there 
> #include <QApplication> 
> and than 


Hello Jakub I have the same problem with QVTKWidget and can't find a
solution I've been stopped for 4 days. I need to know whether you managed to
solve this problem and how did you solved it.

Thanks in advance.
Ernesto



More information about the vtkusers mailing list