[vtkusers] vtkCellPicker
David J. Netherway
djn at elan.mad.adelaide.edu.au
Fri Aug 18 02:10:26 EDT 2000
I downloaded the 15/8/00 version of VTK (even though there was a catastophic
failure VTK seemed as functional as ever) and
found that there was still a problem with the use of cellPicker and the use of
a single cube source
for mulitple actors positioned using SetPosition.
The work around is to have a source for each actor.
David
"David J. Netherway" wrote:
> This time I have actually added the attachment.
>
> Here is a crude example of a problem with using the cellPicker and
> positioning actors using SetPosition.
>
> The work around by Patrick de Koning works, I have yet to download and try
> the latest version of vtk as suggested by Charles Law.
>
> Thanks to all respondents, David
>
> Will Schroeder wrote:
>
> > Hi David-
> >
> > This should work, can you send me an example?
> >
> > Will
> >
> > At 08:37 PM 8/14/00 +0930, you wrote:
> > >Hello,
> > >
> > >I am using a daily vtk from August 7, 2000 on winNT.
> > >
> > > From a single cube source and a single mapper I generate multiple actors
> > >at different positions.
> > >
> > >I use SetPosition on each actor to position each of them.
> > >
> > >They appear where I expect them.
> > >
> > >Using a cellPicker I can select them and have code to move them around,
> > >again using SetPosition.
> > >
> > >They move to where I put them using the mouse.
> > >
> > >At this stage they cannot be picked unless I click the mouse at their
> > >original position.
> > >
> > >Does anyone know of problems relating to cellPicking and repeated use of
> > >the SetPosition method?
> > >
> > >I use
> > >set assembly [[[cellPicker Getpath] GetFirstNode] GetProp]
> > >to get the actor.
> > >
> > >This is successful for repeated pickings if the actor stays at its first
> > >location.
> > >
> > >Thanks, David
> > >
> > >
> > >
> > >_______________________________________________
> > >This is the private VTK discussion list.
> > >Please keep messages on-topic. Check the FAQ at:
> > ><http://public.kitware.com/cgi-bin/vtkfaq>
> > >Follow this link to subscribe/unsubscribe:
> > >http://public.kitware.com/mailman/listinfo/vtkusers
>
> ------------------------------------------------------------------------
> Name: cellPickerTest.tcl
> cellPickerTest.tcl Type: TCL Program (application/x-tcl)
> Encoding: 7bit
More information about the vtkusers
mailing list