I have the following:<br><br><ul><li>Qt application that uses MDI to create infoviz plots.</li><li>All plots synchronize with the same selection model patterned after discussion in "Kitware Source - Issue 9 . April 2009 - Selections in VTK" (with the exception of using an annotationlink instead of a selectionlink) thus all views are added to a vtkViewUpdater.</li>
<li>An MDI window is closed and the associated vtkView is destroyed.</li><li>Perform a selection in one of the remaining views.</li></ul>This causes a problem because the view updater is still holding on to the now deleted view and thus produces a segmentation violation.<br>
<br>The two solutions I've come up with so far are:<br><br>Option 1.<br>Added a new method to vtkViewUpdater called "RemoveView(vtkView* view). This surgically removes the view in question from the internal vector of views in the view updater.<br>
<br>Option 2.<br>Destroy the view updater and annotation link and rebuild all from scratch whenever a view is destroyed.<br><br><br>So, is there a better way to do this given the current VTK API? If not should RemoveView() be added to vtkViewUpdater?<br>
<br>Thanks!<br><br>-byron<br><br>