[vtkusers] vtkPanel Render, resetCamera and GetRenderWindow().Render() Crash
Jonathan Ruiz Peinado
jonathan.ruiz3 at gmail.com
Thu May 17 15:29:27 EDT 2012
¿ Hi, there's something wrong in the order or the combination of this three
lines ?
when they are executed my program crash, if I
comment vtkPanel.GetRenderer().GetRenderWindow().Render() the program runs
but the render shows wrongly content(outdated), this lines are executed
many times when the program changes the actors of the vtkPanel, their mean
is to refresh the view to see the changes.
¿Is there a better way to refresh the vtkPanel when a new actor is added or
deleted?
vtkPanel.Render();
vtkPanel.GetRenderer().ResetCamera(); //!!!
vtkPanel.GetRenderer().GetRenderWindow().Render(); //!!!
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120517/313bcb32/attachment.htm>
More information about the vtkusers
mailing list