[vtkusers] VTK Example - AreaPicking

michiel mentink michael.mentink at st-hughs.ox.ac.uk
Wed Jan 27 04:21:43 EST 2010


I think the red line appears because that's the basic functionality of the
render interactor.

All standard functionality:
 f-> zoom in
r -> zoom out
w -> wire frame
p -> place axes in view
e or q-> exit
s -> go back from wireframe

Michael


On Wed, Jan 27, 2010 at 4:10 AM, Allan James <ar.james at qut.edu.au> wrote:

>  David,
>
> I will have to play with this more and fix up the example.
>
> The vtkAreaPicker (from docs) "picks all vtkProp3Ds that lie behind the
> screen space rectangle from x0,y0 and x1,y1"
>
> I believe the vtkInteractorStyleTrackballCamera has its own default picker
> that is triggered when 'p' is pressed - this displays a red box around the
> picked actor.
>
> The vtkInteractorStyleRubberBandPick however, when used with the
> vtkAreaPicker, operates on the selection rectangle (also when 'p' is
> pressed).
>
> I think the correct way is to add the observer to the EndPickEvent of the
> vtkRenderWindowInteractor. I will see if I can work it out and fix
> the example when I get a spare minute.
>
> thanks,
>
> Allan James
> High Performance Computing & Research Support
> Queensland University of Technology
> (07) 3138 9264
> ar.james at qut.edu.au
> http://www.qut.edu.au/its/hpc
>
> ><(((º>  ._.·´¯`·..  >++(((º>  ._.·´¯`·..  >++(((º>
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100127/bba77670/attachment.htm>


More information about the vtkusers mailing list