[vtkusers] can't update contourFilter unless i do contourFilter->SetValue(, )

Sebastien Jourdain sebastien.jourdain at kitware.com
Sun Jun 13 19:05:14 EDT 2010


If the vtkImageData is set as Modified, a new Render should execute
the IsoContour again.

Seb

On Sun, Jun 13, 2010 at 6:16 PM, Liam Kurmos
<quantum.leaf at googlemail.com> wrote:
> Hi All,
>
> I was disappinted to get no responses. Was my question unclear? please
> let me know.
>
> i want to know:
>
> How can i force the update of my vtkContourFilter output after i
> modify the vtkImageData,( other than by calling
> vtkContourFilter->SetValue() and changing the isovalue)?
>
> thanks,
>
> Liam
>
>
>
> On Thu, Jun 10, 2010 at 4:16 PM, Liam Kurmos
> <quantum.leaf at googlemail.com> wrote:
>> I'm trying to create an interactive tool to help me get isosurfaces
>> from gaussian data.
>>
>> Ive created an interactorStyle and have no problem getting interaction
>> from the user.
>>
>> From the interactor i can change the data in my vtkImageData which was
>> previously set as input for the vtkContourFilter, however the changes
>> are not passed through to the render window.
>>
>> I've called update() on the everything i can think of:
>> vtkImageData->Update(), vtkContourFilter->Update() the mapper etc.
>> but nothing seems to propagate the changes in the imageData through to
>> the renderWindow.
>>
>> UNLESS i call contourFilter->SetValue(a,b) and change the current
>> isovalue in which case the contours update reflecting the changes i
>> immediately without needing to call update on anything.
>>
>> So my question is, How can i get this effect without changing the iso value?
>>
>> Liam
>>
> _______________________________________________
> 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