[vtkusers] Re: Picking

Goodwin Lawlor goodwin.lawlor at ucd.ie
Fri Jan 21 11:03:54 EST 2005


----- Original Message ----- 
From: "Lachlan Blackhall" <lachlan at chryatech.com.au>
To: "Goodwin Lawlor" <goodwin.lawlor at ucd.ie>
Cc: <vtkusers at public.kitware.com>
Sent: Friday, January 21, 2005 3:47 PM
Subject: Re: [vtkusers] Re: Picking


>
> On 21/01/2005, at 4:35 PM, Goodwin Lawlor wrote:
>
> >
> > ----- Original Message -----
> > From: "Lachlan Blackhall" <lachlan at chryatech.com.au>
> > To: "Goodwin Lawlor" <goodwin.lawlor at ucd.ie>
> > Cc: <vtkusers at public.kitware.com>
> > Sent: Friday, January 21, 2005 3:33 PM
> > Subject: Re: [vtkusers] Re: Picking
> >
> >
> >> On 21/01/2005, at 4:21 PM, Goodwin Lawlor wrote:
> >>
> >>> Hi Lachlan,
> >>>
> >>> Have you tried changing the picker tolerance? Which picker are you
> >>> using?
> >>>
> >> im using vtkPicker and ive changed the tolerance up and down to no
> >> avail.
> >
> > Maybe try the subclasses- vtkCellPicker or the hardware picker-
> > vtkPropPicker. Do they work?

For vtkPropPicker, try this (in tcl)

vtkPropPicker picker
vtkRenderWindowInteractor iren
    iren SetPicker picker
    iren AddObserver EndPickEvent cbPick

proc cbPick {} {
    set actor [picker GetProp3D]
    if {$actor != ""} {
        puts "You picked: $actor"
        #change its color
        set prop [$actor GetProperty]
        $prop SetColor 1 0 0
    }
}

Look at Ingo's post here for c++
http://public.kitware.com/pipermail/vtkusers/2004-April/023779.html

hth

Goodwin



>
> im not really sure how to use either of these to select an actor. if
> you know id love some help with this tho :)
>
> thanks
>
> Lachlan
>
> >
> >
> >>
> >>> Goodwin
> >>
> >> Lachlan
> >>>
> >>> "Lachlan Blackhall" <lachlan at chryatech.com.au> wrote in message
> >>> news:0770F13C-6BC0-11D9-BC12-000D93C3904C at chryatech.com.au...
> >>>> Gday,
> >>>>
> >>>> Has anybody else had the problem that you have to zoom in a long way
> >>>> before an actor will be selected by a pick event.
> >>>>
> >>>> If i zoom in so the actor fills the screen it will be picked but if
> >>>> i
> >>>> reset the camera and it doesnt fill the screen a pick event wont
> >>>> select
> >>>> it.
> >>>>
> >>>> Im using static cocoa libs on mac os x
> >>>>
> >>>> thanks
> >>>>
> >>>> Lachlan
> >>>>
> >>>> _______________________________________________
> >>>> 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
> >>>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> 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