[vtkusers] selecting a region in 2D

Benjamin Sobotta mayday at gmx.net
Tue Jun 2 11:23:08 EDT 2009


On Tuesday 02 June 2009 01:50:14 pm Thorsten Wagner wrote:
> Hi,
>
> i'am working with the vtkImageViewer2 and want select a region (a 2D
> rectangle) of an image by mouse. Which is the best way to do this? There
> are few widgets like vtkBoxWidget or vtkImagePlaneWidget, but they are all
> 3D Widgets.
>
> Which class could i use to do this in 2D?
>
> Regads,
> Thorsten

Hi!

You may want to check out the ImageInteractor example in 
VTK/Examples/ImageProcessing/Tcl. I think it does precisely what you need.

Cheers,

Benjamin




More information about the vtkusers mailing list