[vtkusers] Deleting / Hiding all the objects in a window
David Doria
daviddoria+vtk at gmail.com
Thu Nov 19 08:03:11 EST 2009
On Thu, Nov 19, 2009 at 3:18 AM, Bryn Lloyd <blloyd at vision.ee.ethz.ch> wrote:
> David,
>
> I had a look in the Test case for and found these lines before GetNextProp:
>
>
> vtkCollectionSimpleIterator sit;
> props->InitTraversal( sit );
> int nprops = props->GetNumberOfItems();
>
>
> It looks like you need to call InitTraversal() before you call
> GetNextProp().
>
> I don't think you need to use the vtkCollectionSimpleIterator though, since
> there are also versions of these function without the iterator.
>
>
> -Bryn
Thanks Bryn, that answers the two main questions. However, I still
don't understand why the window isn't updated after each actor is
deleted until I click the mouse in the window:
http://www.vtk.org/Wiki/Hide_an_actor
Any thoughts?
Thanks,
David
More information about the vtkusers
mailing list