[vtkusers] can't update contourFilter unless i do contourFilter->SetValue(, )
Liam Kurmos
quantum.leaf at googlemail.com
Mon Jun 14 04:50:51 EDT 2010
Thank Seb,
I am not observing this.
The contourActor below is unmodified without the contourFilter->SetValue() call.
my method is:
vFrame->reinitField();//after this the vtkImageData is modified
//try updating things
vFrame->vol->Update();
vFrame->contourFilter->Update();
vFrame->contourFilter->GetOutput()->Update();
vFrame->contourActor->GetMapper()->GetInput()->Update();
//remove works but add it back and it is not updated
vFrame->ren1->RemoveActor(vFrame->contourActor);
vFrame->ren1->AddActor(vFrame->contourActor);
//as a work around i can set the iso value to
something else and then set it back.
vFrame->contourFilter->SetValue(0,newVal);
vFrame->contourFilter->SetValue(0,origVal)
renWin->Render();
without the SetValue() call the vtkActor is not being updated. I have
a work around for now, later today i will try to make a simple example
of this and if it persits file a bug report.
Liam
More information about the vtkusers
mailing list