[vtkusers] ImageViewer2 Usage

David Doria daviddoria+vtk at gmail.com
Tue Apr 13 11:22:45 EDT 2010


On Tue, Apr 13, 2010 at 11:18 AM, Jothybasu K Selvaraj
<jothybasu at gmail.com> wrote:
> You use vtkImageViewer2->SetupInteractor(vtkRenderWindowInteractor)
>
> If you don't set that it will allow you to rotate it in 3D.
>
> From the links ,I found you are setting the interactor as
> interactor.SetRenderWindow()
>
> Jothy

Hi Jothy -

This is getting closer:

http://www.vtk.org/Wiki/VTK/Examples/ImageViewer2

But it seems to switch to grayscale as soon as you do any interaction??

Also, the question remains why would one use this instead of a more
typical workflow of simply using SetInteractorStyle() with a
vtkInteractorStyleImage?

Thanks,

David



More information about the vtkusers mailing list