X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FvtkgdcmViewer2.cxx;h=99b64110e03bce93398e79ce9559f41a10348bc6;hb=5a18ad93028105d622b108a86a31025120e2c619;hp=9898911124b04336b3d99f51d15db16be7e16144;hpb=d735b22c6656c1b5d05d560ff9773a016a8514f9;p=gdcm.git diff --git a/vtk/vtkgdcmViewer2.cxx b/vtk/vtkgdcmViewer2.cxx index 98989111..99b64110 100644 --- a/vtk/vtkgdcmViewer2.cxx +++ b/vtk/vtkgdcmViewer2.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkgdcmViewer2.cxx,v $ Language: C++ - Date: $Date: 2006/05/02 10:09:43 $ - Version: $Revision: 1.7 $ + Date: $Date: 2006/05/11 20:01:28 $ + Version: $Revision: 1.8 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -68,7 +68,7 @@ public: { if ( event == vtkCommand::CharEvent ) { - #if (VTK_MAJOR_VERSION >= 5) +#if (VTK_MAJOR_VERSION >= 5) int max = ImageViewer->GetSliceMax(); int slice = (ImageViewer->GetSlice() + 1 ) % ++max; ImageViewer->SetSlice( slice ); @@ -78,7 +78,7 @@ public: ImageViewer->SetZSlice( slice ); #endif #if !( (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION >= 5 ) ) - // This used to be a bug in version VTK 4.4 and earlier + // This used to be a bug in version VTK 4.4 and earlier ImageViewer->GetRenderer()->ResetCameraClippingRange(); #endif ImageViewer->Render();