[vtkusers] Update qvtkwidget after applying filter

Alex Malyushytskyy alexmalvtk at gmail.com
Fri Nov 16 19:49:00 EST 2012


You should address GUI tasks (buttons. menus, dialogs, etc)  to your
GUI library ( Qt in this case )
Such tasks are not handled by vtk.

As a result of user actions you will have to modify pipeline (add or
remove filter)

Alex




On Fri, Nov 16, 2012 at 1:29 PM, Rodrigo Lovera
<lobo.theslayer at gmail.com> wrote:
> Hello,
>
> I'm having some troubles, I got my full pipeline for volume rendering but
> now i'd like to apply some filter options in my gui app using qt like:
>
> Add filter in a checkbox
> filter A
> filter B
> filter C
>
> The problem is mostly that I can't find the correct way to make a button to
> update my qvtkwidget to show the volume after applying filter and also in
> the case I turn the filter off it get back to its original config.
>
> I was so far adding an if for the checkbox state at start and apply filter
> if it's checkd and no if not. At the first run everything works fine, but
> i'd like to be able to change it during the gui app use and thast's where my
> problem is, need to refresh the qvtkwidget but don't got it to work at the
> moment.
>
> I'd appreciate any kind of help with this stuff. Thanx in advance.
>
> --
> Rodrigo Lovera
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list