[vtkusers] How to use vtkImageTracerWidget?

Michael Xanadu xanadu.michael at googlemail.com
Mon Oct 19 10:37:46 EDT 2009


Hi Dean,

Thanks for your help. I looked at TestImageTracerWidget.cxx and tryed the
code in my own application, but still have some problems:

1. vtkImageTracerWidget is for drawing ON a vtk plane, isn't it? So why do I
have to set image data as input to this widget? Does it draw IN the volume
data instead?

2. I wanna use the widget for drawing some stuff on 2D vtkImageViewer. For
showing the data in vtkImageViewer I don't need a vtkImageActor. Do I have
to create one like it's described in the example, or can I get it somewhere
else (maybe from the renderer attached to the imageViewer)?

3. Do I have to initiate the vtkITWCallback with the others objets, like
it's described in the example (splineWidget, stencil, extractor etc.)?

4. Do I have to use a shifter like they did in the example?


I hope you or someone else can answer to my questions.
Regards, Michael



2009/10/18 Dean Inglis <dean.inglis at sympatico.ca>

>  HI Michael,
>
>
>
> have a look at
>
> VTK/Examples/GUI/Tcl/ImageTracerWidget.tcl
>
> and
>
> VTK/Wdigets/Testing/Cxx/TestImageTracerWidget.cxx
>
>
>
> another class the allows drawing contours/lines on vtkImageActor
>
> is vtkContourWidget.
>
>
>
>
>
> Dean
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091019/23becc27/attachment.htm>


More information about the vtkusers mailing list