[vtkusers] Render() doesn't work anymore after updating for vtk 5.0
Renaud Isabelle
renauisa at yahoo.fr
Tue Sep 20 13:34:28 EDT 2005
Hi Nigel,
thanks for anwering.
I agree with you: I have tried both of those tricks but there is no change: nothing is happening.
Isabelle
Nigel Nunn <nNunn at ausport.gov.au> a écrit :
Hi Isabelle,
One thing that often helps is marking inputs as "modified",
or explicitly calling Update() on part of the pipeline.
So, you might try these:
rescaleFilter->Modified();
rescaleFilter->Update();
best wishes,
Nigel
Renaud Isabelle <renauisa at yahoo.fr> a écrit :Hi,
Now that I have updated my vtk version from vtk4.4 to vtk5.0, a lot of stuff in my project don't work anymore!!!! So strange!
By example: by clicking on my log button to compute a log filter on my rendered image, nothing is resulting!!!
void OnLog()
{
WorkImageType::Pointer input;
if(LogBtn.GetCheck()) //log button uncheck
{
LogBtn.SetCheck(0); // toggle radio button
input = const_cast<WorkImageType*>(logFilter->GetInput());
rescaleFilter->SetInput(input);
}
else
{
LogBtn.SetCheck(1); //log filter activated
input = const_cast<WorkImageType*>(rescaleFilter->GetInput());
logFilter->SetInput(input);
rescaleFilter->SetInput(logFilter->GetOutput());
}
renderWindow->Render();
}
- However, changing scale is still working.
void OnChangeScale()
{
CString s;
c_edit_scale.GetWindowText(s);
float val = atof(s);
shiftscale->SetScale( val );
shiftscale->UpdateWholeExtent();
renderWindow->Render();
}
- Does anyone have an idea why?
- Is there a documentation about big changes in VTK 5.0 and what functions are not available anymore?
Isabelle
---------------------------------
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici ! _______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
---------------------------------
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050920/bf74480e/attachment.htm>
More information about the vtkusers
mailing list