From 5da2d7a053e24ef3b8e0fbd1dab04adda5d1625b Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 11 Aug 2017 22:04:43 +0200 Subject: [PATCH] #3110 creaVtk Bug New Normal - branch vtk7itk4 compilation with vtk7 --- bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx | 5 +++-- bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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*,""); -- 2.47.1