[vtkusers] vtkpicker can't identify which actor it picks

Amy Squillacote ahs at cfdrc.com
Mon Mar 17 09:34:37 EDT 2008


Hi Sarah,

Have you tried using vtkPropPicker: 
http://www.vtk.org/doc/nightly/html/classvtkPropPicker.html?

- Amy

Sarah Macumber wrote:
> -->
>
> Hi, I have a vtkPicker and two actors in my scene, a cone and a 
> sphere. When I pick one of the objects and try to compare it to the 
> actors I have both comparisons fail. Am I doing something wrong?
>
>  
>
> vtkActor actor=picker.GetActor();
>
>  
>
> if (actor.Equals(coneActor))
>
> {
>
> pickedCone();
>
> }
>
> else if (actor.Equals(sphereActor))
>
> {
>
> pickedSphere();
>
> }
>
>  
>
> Thanks Sarah
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list