[vtkusers] VTK Example - AreaPicking
David Doria
daviddoria+vtk at gmail.com
Tue Jan 26 17:02:31 EST 2010
On Tue, Jan 26, 2010 at 6:05 AM, Liam Kurmos
<quantum.leaf at googlemail.com> wrote:
> I thought I'd have a look at this example. Running it with the
> vtkInteractorStyleTrackballCamera, I find that if i pick within the
> bounding box of the actor i get a red box around it.
> However if I use vtkInteractorStyleRubberBandPick i don't get the red
> box wherever i drag.
>
> bug?
>
> Liam
>
>
> On Mon, Jan 25, 2010 at 11:42 PM, Allan James <ar.james at qut.edu.au> wrote:
>> Hi David,
>>
>> Just a note to say I have got the VTK/Examples/AreaPicking example working
>> by replacing the following line:
>>
>> renderWindowInteractor->AddObserver ( vtkCommand::PickEvent, pickCallback );
>>
>> with:
>>
>> areaPicker->AddObserver ( vtkCommand::EndPickEvent, pickCallback );
>>
>> The observer needs to be attached to the picker rather than the interactor.
>>
>> By the way - thanks for all your efforts building up the examples - this
>> will help out newbies immensely!
>>
>> cheers,
>>
>> Allan James
>> IT Specialist | Research Support
>> High Performance Computing and Research Support
>> Queensland University of Technology
>> (07) 3138 9264
>> ar.james at qut.edu.au
>> http://www.qut.edu.au/its/hpc
>>
>>>++(((º> ._.·´¯`·.. >++(((º> ..·´¯`·._. >++(((º>
>> _______________________________________________
Allan,
No problem, I'm just glad they're getting done :)
I'm still confused, though, at what the AreaPicker does? As Liam
mentioned, when I press 'p', I see a red box around the 3 points (with
a magic 4th corner to make a rectangle?). How are you using it?
I saw that you left some commented lines about the rubberband picker -
was that intentional? I guess I don't understand the relationship
between the interactors and the pickers?
Thanks,
David
More information about the vtkusers
mailing list