]> Creatis software - clitk.git/commitdiff
Debug VF/Landmarks + Crop
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 7 Dec 2015 12:40:39 +0000 (13:40 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 7 Dec 2015 12:40:39 +0000 (13:40 +0100)
vv/vvSlicer.cxx

index c608c1bf448d346f036a6279057cb46b4ba79287..3773aa0477cec92a846084869972b6a03d3c8d26 100644 (file)
@@ -1195,7 +1195,7 @@ void vvSlicer::UpdateDisplayExtent()
 #if VTK_MAJOR_VERSION <= 5
     bool out = ClipDisplayedExtent(vfExtent, mVOIFilter->GetInput()->GetWholeExtent());
 #else
-    bool out = ClipDisplayedExtent(vfExtent, this->GetExtent());
+    bool out = ClipDisplayedExtent(vfExtent, mImage->GetVTKImages()[mCurrentTSlice]->GetInformation()->Get(vtkDataObject::DATA_EXTENT()));
 #endif
     mVFActor->SetVisibility(!out);
     mVOIFilter->SetVOI(vfExtent);