Antwort: vtkPicker..

Patric.Weis at mycrona.de Patric.Weis at mycrona.de
Fri Mar 17 02:45:41 EST 2000


Hi K.R.,

Before using GetNextActor() you first have to set the data pointer at the
beginning of the collection list by InitTraversal(). This function is
inherited from vtkCollection.


Patric Weis
MYCRONA GmbH


- - - Original Message - - -



                                                                                                                                          
                    "K.R.Subramanian"                                                                                                     
                    <krs at zappa.uncc.edu>           An:     VTK HELP <vtkusers at public.kitware.com>                                         
                    Gesendet von:                  Kopie:                                                                                 
                    owner-vtkusers at public.k        Thema:  vtkPicker..                                                                    
                    itware.com                                                                                                            
                                                                                                                                          
                                                                                                                                          
                    16.03.00 19:42                                                                                                        
                                                                                                                                          
                                                                                                                                          




I am using the vtkPicker object to pick all actors intersected.  I am
trying
to retrieve the actors intersected using the GetActors() method (followed
by GetNextActor() from the vtkActorCollection method, but I get nil. I
looked
at the collection object and it has 3 items in it (which is what it should
be in
my application).


I am also able to use the GetActor() method to get the closest actor
intersected (and
the pick position also looks reasonable).


I assumed you iterate with GetNextActor() method of vtkActorCollection
until you get
nil to retrieve all of the actors that were intersected.


Any ideas what I am doing wrong?


    -- krs
--
K.R.Subramanian                           Phone: (704) 547-4872
Department of Computer Science            FAX:   (704) 547-3516
UNC Charlotte, 228A Kennedy
9201 Univ. City Blvd.                     Email: krs at cs.uncc.edu
Charlotte, NC 28223-0001                  WWW: http://www.cs.uncc.edu/~krs










--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list