From: Eduardo DAVILA Date: Fri, 11 Aug 2017 20:04:43 +0000 (+0200) Subject: #3110 creaVtk Bug New Normal - branch vtk7itk4 compilation with vtk7 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5da2d7a053e24ef3b8e0fbd1dab04adda5d1625b;p=creaVtk.git #3110 creaVtk Bug New Normal - branch vtk7itk4 compilation with vtk7 --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx index 08efca9..53dbbb4 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx @@ -39,15 +39,16 @@ void ImageSlab::Process() if (bbGetInputType()==1) { imageSlab->SetOperationToSum(); } if (bbGetInputType()==2) { imageSlab->SetOperationToMin(); } if (bbGetInputType()==3) { imageSlab->SetOperationToMax(); } + imageSlab->MultiSliceOutputOff(); + imageSlab->SetOutputScalarTypeToInputScalarType(); //EED 2017-01-01 Migration VTK7 #if VTK_MAJOR_VERSION <= 5 imageSlab->SetInput( bbGetInputIn() ); #else imageSlab->SetInputData( bbGetInputIn() ); + imageSlab->Update(); #endif - imageSlab->MultiSliceOutputOff(); - imageSlab->SetOutputScalarTypeToInputScalarType(); bbSetOutputOut( imageSlab->GetOutput() ); } diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.h b/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.h index 1335f37..ac02887 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.h +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.h @@ -39,7 +39,7 @@ class bbcreaVtk_EXPORT ImageSlab BBTK_BEGIN_DESCRIBE_BLACK_BOX(ImageSlab,bbtk::AtomicBlackBox); BBTK_NAME("ImageSlab"); BBTK_AUTHOR("InfoDev"); - BBTK_DESCRIPTION("No Description."); + BBTK_DESCRIPTION("Operation of all planes in one plane (projection)"); BBTK_CATEGORY("empty"); BBTK_INPUT(ImageSlab,In,"Input image",vtkImageData*,"");