[vtkusers] Region selection
Dave DeMarle
dave.demarle at gmail.com
Mon Jul 10 12:04:33 EDT 2006
Hi Alex,
vtkFrustumExtractor will do rubber band selection, but not lasoo selection.
Give it an input dataset and corner pixel screen coordinates and it will
produce all points contained in its input dataset that are behind that
screen rectangle. vtkAreaPicker will do the same at the prop level.
cheers
Dave DeMarle
On 7/10/06, Alexander MacLennan <alex.maclennan at gmail.com> wrote:
>
> Thanks Michael,
>
> I'll give it a go, it sounds a lot simpler then my Java
> MouseMotionListener based code :)
>
> On another note, does anyone on the list know when the new editions of the
> VTK books will be available ?
>
> cheers
>
> alex
>
>
> On 7/10/06, Michael R. Ballinger <mballing at andrew.cmu.edu> wrote:
> >
> >
> > Alex,
> >
> > You might want to look at vtkSplineWidget. You can use the methods
> > ClosedOn() to make a complete 'lasoo' and use the GetHandlePosition() to
> >
> > return the 3d position of each vertex of the spline. Hope this helps.
> >
> > -michael
>
>
>
> On Mon, 10 Jul 2006, Alexander MacLennan wrote:
>
> > Hi,
> >
> > Are there any selection widgets in vtk that allow you to 'lasoo' a
> region
> > and have the points in that region returned?
> > Or, given a list of points that make up a bounday ( or just extents of a
> > boundary like a rectangle selector) , give the points contained in that
> > region?
> >
> > cheers
> >
> > alex
> >
>
>
> _______________________________________________
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060710/ea9eaa4f/attachment.htm>
More information about the vtkusers
mailing list