<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Dear All,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">I wonder if I can access the a vtkImageActor object from vtkInteractorStyleImage::WindowLevel(). <br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">I used the sample code in QuickViewDemo to interact ITK with VTK. Basically an image was read in ITK then using the itk::ImageToVTKImageFilter connector to construct an vtkImageData object. The vtkImageData object was then passed
to a vtkImageActor object "actor" (actor->SetInput(connector->GetOutput()); ) An vtkInteractorStyleImage object "style" was passed in the interactor (interactor->SetInteractorStyle(style);) </div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">I want to capture the mouse movement then change the slice number to display another 2D grey level image. (Please correct me if I'm wrong here) I was thinking maybe I could reassign an input to the vtkImageActor actor object when the movement is captured in vtkInteractorStyleImage::WindowLevel(), then render the new view. I wonder if there's a way I can access vtkImageActor from vtkInteractorStyleImage. Thanks.</div><div style="color:
rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Regards,</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Jay<br></div></div></body></html>