[vtkusers] 3dWidgets - turn off feature (not bug) for picking widgets even behind other actors

Mark Wyszomierski markww at gmail.com
Fri Mar 23 12:20:25 EDT 2007


Dean,

Very nice, it works great,

Thanks,
Mark

On 3/23/07, Dean Inglis <dean.inglis at camris.ca> wrote:
> Mark,
>
> have a look at VTK/Examples/GUI/Tcl/ImagePlaneWidget.tcl
>
> Dean
>
> -----Original Message-----
> From: Mark Wyszomierski [mailto:markww at gmail.com]
> Sent: Friday, March 23, 2007 11:00 AM
> To: Dean Inglis
> Cc: vtkusers archive
> Subject: Re: [vtkusers] 3dWidgets - turn off feature (not bug) for
> picking widgets even behind other actors
>
>
> Hi Dean,
>
> Can you give me a brief idea how to do that - I don't actually have a
> concrete picker declared anywhere - I just have an interactor, and
> drop my plane widgets into the scene:
>
>    planeWidget->SetInteractor(iren)
>    planeWidget->SetCurrentRenderer(renderer);
>    planeWidget->SetPlacement();
>
> I was thinking I could do something like:
>
>    planeWidget->SetPicker(iren->GetPicker());
>
> but that doesn't work! Do I need to make my own picker or can I just
> use some default one from the interactor or renderer?
>
> Thanks,
> Mark
>
>
> On 3/23/07, Dean Inglis <dean.inglis at camris.ca> wrote:
> > Mark,
> >
> > you have to assign the same picker to
> > all 3 widgets when you create them.
> >
> > Dean
> >
> >
> > I have three image plane widgets, and I always end up grabbing the
> > back most one when they're all stacked on top of eachother.
> >
> > Is there a way to turn that off, and just have the first one
> > intersected be selected?
> > _______________________________________________
> > 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
> >
>



More information about the vtkusers mailing list