Commit 29c3fce9 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

BUG: fix PrintSelf and reset camera issue. The InputConnection warning will be...

BUG: fix PrintSelf and reset camera issue. The InputConnection warning will be fixed automatically today once the whole Renderer::GetActiveCamera is fixed
parent 94379087
......@@ -26,7 +26,7 @@
#include "vtkRenderWindowInteractor.h"
#include "vtkRenderer.h"
vtkCxxRevisionMacro(vtkImageViewer2, "1.30");
vtkCxxRevisionMacro(vtkImageViewer2, "1.31");
vtkStandardNewMacro(vtkImageViewer2);
//----------------------------------------------------------------------------
......@@ -674,9 +674,9 @@ void vtkImageViewer2::Render()
if (this->Renderer)
{
this->Renderer->ResetCamera();
this->Renderer->GetActiveCamera()->SetParallelScale(
xs < 150 ? 75 : (xs - 1 ) / 2.0);
this->Renderer->ResetCamera();
}
this->FirstRender = 0;
}
......@@ -763,4 +763,15 @@ void vtkImageViewer2::PrintSelf(ostream& os, vtkIndent indent)
os << indent << "WindowLevel:\n" << endl;
this->WindowLevel->PrintSelf(os,indent.GetNextIndent());
os << indent << "Slice: " << this->Slice << endl;
os << indent << "SliceOrientation: " << this->SliceOrientation << endl;
os << indent << "InteractorStyle: " << endl;
if (this->InteractorStyle)
{
os << "\n";
this->InteractorStyle->PrintSelf(os,indent.GetNextIndent());
}
else
{
os << "None";
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment