[vtkusers] 2D widgets?

Dean Inglis dean.inglis at sympatico.ca
Tue Jul 3 07:36:57 EDT 2007


Hi Sam,

have a look at these previous posts for cursoring:

http://public.kitware.com/pipermail/vtkusers/2006-August/086444.html

http://public.kitware.com/pipermail/vtkusers/2006-September/086829.html
http://public.kitware.com/pipermail/vtkusers/2006-September/086879.html

a region of interest example is in
VTK/Examples/GUI/Tcl/ImageTracerWidget.tcl
and probing image data with
VTK/Examples/GUI/Tcl/ProbeWithSplineWidget.tcl

Dean




I'm new to VTK, but I've been able to put together a small application
using ITK, VTK, and Qt using the QVTKWidget class.  Right now I'm just
using it to view 2D slices of a dataset (using the vtkImageViewer2
class), and I'd like to add some 2D widgets to define a region of
interest (a rectangle in 2D) or identify a point (a crosshair in 2D).
I've been searching online, and haven't been able to find any examples
of adding interactions like this to a 2D view -- the related widgets
seem to all be for 3D (vtkBoxWidget, vtkPointWidget).  Can these be
used in a 2D view, or is there another class I should be using?

Thanks,
-Sam

-- 
--------------------
J. Samuel Preston
Research Associate
Center for Advanced Engineering Environments
Old Dominion University Research Foundation



More information about the vtkusers mailing list