[vtk-developers] patch to wxVTKRenderWindowInteractor to prevent recursive rendering/updating
Charl P. Botha
c.p.botha at its.tudelft.nl
Mon Feb 24 05:56:20 EST 2003
Dear developers (who still have commit access),
I've attached a patch with which wxVTKRenderWindowInteractor will by
default NOT render if its top level containing window has been
disabled. This is of course configurable.
This change prevents recursive rendering/updating when one calls
wxSafeYield() from the ProgressMethod callback of a VTK process object,
something which is quite often done (to have progress bars and the like
update). wxSafeYield() first disables all windows (to prevent
user-interaction and consequent code re-entrance) and then handles all
outstanding GUI events. This usually causes an OnPaint() for the
wxVTKRenderWindowInteractors, which results in recursive rendering.
With the proposed fix, this is remedied.
Please apply. I consider this to be a bug fix and hope that it could
make it in before the new release.
I still think my small fix to vtkSource should also be applied. It also
helps prevent recursive updating. I've re-attached it in case anyone
has forgotten what it's about.
Thanks,
Charl
--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxVTKRenderWindowInteractor.DontRenderWhenDisabled.diff
Type: text/x-patch
Size: 2819 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20030224/20ea40a6/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkSource.Updating-FIX.diff
Type: text/x-patch
Size: 543 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20030224/20ea40a6/attachment-0003.bin>
More information about the vtk-developers
mailing list