Hi,
I want to display the volume read in axial,sagital and coronal views. I tried using the vtkInteractorstyleImage setorientation method. It displays the volume in the axial orientation but empty viewport in the other two direction. The input given to the vtkImageactor is a vtkImagereslice with its orientation set to axial direction. Could this be the reason?
The following is the code where the style is set
actor2->GetMapper()->SetInputConnection(color->GetOutputPort());
renderer2->SetBackground(0, 0, 0);
renderer2->SetViewport(0.5*(i & 1), 0.25*(i & 2),
0.5 + 0.5*(i & 1), 0.5 + 0.25*(i & 2));
renderer2->AddActor(actor2);
renderer2->ResetCamera();
vtkSmartPointer<vtkInteractorStyleImage> imstyle =
vtkSmartPointer<vtkInteractorStyleImage>::New();
double vector1[3] = { 1.0, 0.0 ,0.0 };
double vector2[3] = { 0.0,0.0,1.0 };
imstyle->SetCurrentRenderer(renderer2);
imstyle->SetImageOrientation(vector1, vector2);
renderer2->ResetCamera();
interactor->SetInteractorStyle( imstyle )
the sagital and coronal views are gettings rendered out of viewport I guess,How do I bring it in the viewport?