[vtkusers] Deleting / Hiding all the objects in a window

Bryn Lloyd blloyd at vision.ee.ethz.ch
Thu Nov 19 03:18:26 EST 2009


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




> 
> 
> Karthik,
> 
> I tried to make a demo of this
> http://www.vtk.org/Wiki/Hide_an_actor
> 
> but it segfaults when I try to set the visibility. Thoughts?
> 
> Also, how do you get the total number of props in the collection?
> 
> One last thing, hiding all the actors does work
> (http://www.vtk.org/Wiki/Hide_all_actors). When I press 'q' to get out
> of the Start() loop, why doesn't the screen turn red until after I
> move the mouse? Shouldn't it update right away?
> 
> Thanks,
> 
> David
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 


-- 
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7, ETF C110
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 26668
Fax: +41 44 63 21199
-------------------------------------------------



More information about the vtkusers mailing list