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

Amy Squillacote ahs at cfdrc.com
Thu Apr 10 17:29:15 EDT 2008


Please keep the discussion on vtkusers. This way other people can 
contribute to the conversation, and the results are archived.

- Amy

Sarah Macumber wrote:
> Yes Amy I did, same result.
>
> *************************************************************
> Sarah Macumber, Engineer 
>
> Quest Reliability, LLC
> 2465 Central Avenue, Suite 110
> Boulder, Colorado  80301
> direct line: (303) 938-3024
> office line: (303) 415-1475   FAX: (303) 415-1847
> web: http://www.QuestReliability.com
>
> -----Original Message-----
> From: Amy Squillacote [mailto:ahs at cfdrc.com] 
> Sent: Monday, March 17, 2008 7:35 AM
> To: Sarah Macumber
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] vtkpicker can't identify which actor it picks
>
> 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