[vtkusers] Add sphere to current slice (vtkImageReslice)

Enzo Ferlin enzo.ferlin at micromar.com
Mon Feb 22 12:32:59 EST 2016


Hello,

I'm trying to add a sphere to the current slice of a rendered DICOM volume.

Basically, I'm using this code:

http://web.mit.edu/16.225/dv/VTK/Examples/ImageProcessing/Cxx/ImageSlicing.cxx

The only difference being that I use
MouseWheelForwardEvent/MouseWheelBackwardEvent to reslice and I intercept
left button press on my custom interactor (vtkInteractorStyleImage) to add
a sphere on that position.

The sphere is added in the correct position (as an addition, I can already
measure the correct distance (mm) between 2 added spheres).
My problem is that when I scroll to go back/forward another slice, these
spheres stays in front of the volume.

I want those spheres appear only when I pass through that particular slice
that they were added.

How could I accomplish that?


Thank in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160222/ff84225c/attachment.html>


More information about the vtkusers mailing list