Unexpected behavior in vtkResliceImageViewer when moving the center of the cursor
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Hi all,
I am seeing an unexpected behavior of vtkResliceImageViewer (vtk version 5.10.1) when moving the center of the cursor. The reslice is not constrained inside the original image. Please see the attached image for an example. I am also attaching a simple test program.
int main( int argc, char *argv[]) { vtkSmartPointer noise = vtkSmartPointer::New(); noise->SetMaximum(10.0); noise->SetMinimum(-10.0); noise->SetWholeExtent(0, 100, 0, 100, 0, 50); noise->Update();
vtkSmartPointer interactor = vtkSmartPointer::New(); vtkSmartPointer viewer = vtkSmartPointer::New();
viewer->SetInput( noise->GetOutput() ); viewer->SetupInteractor(interactor); viewer->GetRenderWindow()->SetSize(400, 400); viewer->GetRenderer()->SetBackground(1.0, 0.0, 0.0); viewer->SetSliceOrientation(2); viewer->SliceScrollOnMouseWheelOn(); viewer->SetResliceModeToOblique();
interactor->Initialize(); viewer->Render(); interactor->Start(); return EXIT_SUCCESS; }