From: eduardo.davila@creatis.insa-lyon.fr Date: Fri, 24 Jul 2026 12:33:38 +0000 (+0200) Subject: Clean code X-Git-Url: http://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=refs%2Fheads%2Fvtk9itk5wx3-macos;p=bbtk.git Clean code --- diff --git a/kernel/src/bbtkBlackBox.h b/kernel/src/bbtkBlackBox.h index 34652b2a..4e049262 100644 --- a/kernel/src/bbtkBlackBox.h +++ b/kernel/src/bbtkBlackBox.h @@ -57,7 +57,6 @@ #include #include - /* EED 2026-07-03 #define bbtkBlackBoxMessage(key,level,mess) \ bbtkMessage(key,level,"["<SetInput( bbGetInputIn() ); @@ -56,7 +55,6 @@ void ExtractVtkImageFilter::Process() #if (VTK_MAJOR_VERSION >= 6) _extract->SetInputData( bbGetInputIn() ); #endif - _extract->SetVOI(voi); _extract->UpdateWholeExtent(); _extract->Modified(); @@ -69,14 +67,10 @@ void ExtractVtkImageFilter::Process() //===== void ExtractVtkImageFilter::bbUserSetDefaultValues() { - // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX // Here we initialize the input 'In' to 0 - _extract =NULL; - - bbSetInputIn(0); - + bbSetInputIn(0); std::vector tmpIndex; tmpIndex.push_back(0); tmpIndex.push_back(0); @@ -87,38 +81,33 @@ void ExtractVtkImageFilter::bbUserSetDefaultValues() tmpSize.push_back(1); bbSetInputIndex(tmpIndex); bbSetInputSize(tmpSize); - bbSetOutputOut(NULL); - } -//===== + +//===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== void ExtractVtkImageFilter::bbUserInitializeProcessing() { - // THE INITIALIZATION METHOD BODY : // Here does nothing // but this is where you should allocate the internal/output pointers // if any _extract = vtkExtractVOI::New(); - - } -//===== + +//===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== void ExtractVtkImageFilter::bbUserFinalizeProcessing() { - // THE FINALIZATION METHOD BODY : // Here does nothing // but this is where you should desallocate the internal/output pointers // if any - _extract->Delete(); } -} -// EO namespace bbvtk + +}// EO namespace bbvtk diff --git a/packages/vtk/src/bbvtkTransform.h b/packages/vtk/src/bbvtkTransform.h index 2a8d0cd7..da19e3f0 100644 --- a/packages/vtk/src/bbvtkTransform.h +++ b/packages/vtk/src/bbvtkTransform.h @@ -31,7 +31,6 @@ #include "iostream" #include "vtkTransform.h" -//#include namespace bbvtk {