[vtkusers] how to update pipeline after changing isovalue in vtkMarchingCubes.
David Feng
dfeng at cs.unc.edu
Fri Feb 12 09:49:57 EST 2010
The normal VTK way of doing this is to instantiate a single pipeline
and modify only the existing objects (meaning that you shouldn't
create a new vtkMarchingCubes object). So when you want to change the
isovalue, just call:
marchingCubes->SetIsovalue(...);
marchingCubes->Update();
renderWindow->Render();
The update should propagate down the pipeline and update everything
that needs to get updated.
David
On Fri, Feb 12, 2010 at 9:06 AM, Liam Kurmos
<quantum.leaf at googlemail.com> wrote:
> I render a contour with vtkMarchingCubes.
> I detect a keypress and the handling function creates a new instance
> of vtkMarchingCubes with a different isovalue.
> I call contourActor->GetMapper()->GetInput()->Update();
> but i don't see any change (the old contour is still being rendered).
> Do i need to somehow stop the interactor before i can update? or do i
> need to update something else?
>
> Liam
>
> ps:
> I fixed the problem i was having getting an interactorstyle
> to work as an external class while having a reference to the calling class.
> (i needed to #include the calling class in the .cpp file of the
> interactor not the .h)
> _______________________________________________
> 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
>
--
http://www.cs.unc.edu/~dfeng
More information about the vtkusers
mailing list