[vtkusers] vtkImageViewe2 and Window Level

Leonardo M. Ramé l.rame at griensu.com
Sat Sep 18 10:43:03 EDT 2010


On 2010-09-18 07:39:08 -0400, Dave Partyka wrote:
> 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?.
> >>

Thanks Dave!, that worked!

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com



More information about the vtkusers mailing list