[vtkusers] vtkImageViewe2 and Window Level

Dave Partyka dave.partyka at kitware.com
Sat Sep 18 07:39:08 EDT 2010


vtkImageViewer2 creates it's own vtkInteractorStyleImage (funky, I know).
You have to let vtkImageView2 set it's interactor style on your Render
Window's Interactor via
viewer->SetupInteractorStyle(renderWindow->GetInteractor()). Here is a blob
of code that does this (note it's in C#).

          this.imageViewerAxial.SetRenderWindow(this.renderWindowAxial);
          this.imageViewerAxial.SetRenderer(this.rendererAxial);

 this.imageViewerAxial.SetupInteractor(this.renderWindowAxial.GetInteractor());

On Sat, Sep 18, 2010 at 5:18 AM, Karthik Krishnan <
karthik.krishnan at kitware.com> wrote:

> It should. Are you overriding the default vtkInteractorStyleImage style
> that vtkImageViewer2 uses.
>
>
> On Sat, Sep 18, 2010 at 1:20 AM, Leonardo M. Ramé <l.rame at griensu.com>wrote:
>
>> I'm replacing an vtkImageVewer to vtkImageViewer2, but I noted the
>> WindowLevel adjustment by dragging the left mouse button doesn't works.
>> How can I adjust W/L with vtkImageViewer2?.
>>
>> --
>> Leonardo M. Ramé
>> Medical IT - Griensu S.A.
>> Av. Colón 636 - Piso 8 Of. A
>> X5000EPT -- Córdoba
>> Tel.: +54(351)4246924 +54(351)4247788 +54(351)4247979
>> Cel.: +54(351)5394365
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100918/d316c69f/attachment.htm>


More information about the vtkusers mailing list