]> Creatis software - creaVtk.git/commitdiff
#3110 creaVtk Bug New Normal - branch vtk7itk4 compilation with vtk7
authorEduardo DAVILA <davila@localhost.localdomain>
Fri, 11 Aug 2017 20:04:43 +0000 (22:04 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Fri, 11 Aug 2017 20:04:43 +0000 (22:04 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkImageSlab.h

index 08efca987da58b098b4298333252dc52e20e321c..53dbbb40119415366e6ef514c93456b5625932f4 100644 (file)
@@ -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() );
 
 }
index 1335f371bd9fe235b57953579779e33ed7ebaa7d..ac02887ef61afb5c4f60964b62f3ca840b4a5ad5 100644 (file)
@@ -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*,"");