From: Eduardo DAVILA Date: Mon, 27 Jan 2020 09:53:08 +0000 (+0100) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f9f849d89513eed18cbfb923ccda961ecc7ede24;p=bbtk.git Clean code --- diff --git a/packages/vtk/src/bbvtkTemporalPicker.cxx b/packages/vtk/src/bbvtkTemporalPicker.cxx index 4623084..37901c7 100644 --- a/packages/vtk/src/bbvtkTemporalPicker.cxx +++ b/packages/vtk/src/bbvtkTemporalPicker.cxx @@ -56,7 +56,6 @@ void TemporalPicker::Process() // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') - std::vector result; if (bbGetInputIn()!=NULL) { @@ -138,7 +137,6 @@ void TemporalPicker::Process() } else {// bbGetInputIn printf("ERROR: Missing Input:In vtkImageData* in TemporalPicker Box..\n "); } // bbGetInputIn - bbSetOutputOut(result); } //===== diff --git a/packages/vtk/src/bbvtkTemporalPicker.h b/packages/vtk/src/bbvtkTemporalPicker.h index f41e642..13b918f 100644 --- a/packages/vtk/src/bbvtkTemporalPicker.h +++ b/packages/vtk/src/bbvtkTemporalPicker.h @@ -25,9 +25,6 @@ # ------------------------------------------------------------------------ */ -//===== -// 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) -//===== #ifndef __bbvtkTemporalPicker_h_INCLUDED__ #define __bbvtkTemporalPicker_h_INCLUDED__ #include "bbvtk_EXPORT.h" @@ -36,27 +33,18 @@ #include "vtkImageData.h" - namespace bbvtk { -class bbvtk_EXPORT TemporalPicker - : - public bbtk::AtomicBlackBox +class bbvtk_EXPORT TemporalPicker : public bbtk::AtomicBlackBox { BBTK_BLACK_BOX_INTERFACE(TemporalPicker,bbtk::AtomicBlackBox); -//===== -// 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) -//===== BBTK_DECLARE_INPUT(In,vtkImageData*); BBTK_DECLARE_INPUT(SizeRegion,int); BBTK_DECLARE_INPUT(Point,std::vector); BBTK_DECLARE_OUTPUT(Out,std::vector); BBTK_PROCESS(Process); void Process(); -//===== -// 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) -//===== }; BBTK_BEGIN_DESCRIBE_BLACK_BOX(TemporalPicker,bbtk::AtomicBlackBox); @@ -69,9 +57,6 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(TemporalPicker,bbtk::AtomicBlackBox); BBTK_INPUT(TemporalPicker,Point,"Point [x,y]",std::vector,""); BBTK_OUTPUT(TemporalPicker,Out,"Output vector with Z information",std::vector,""); BBTK_END_DESCRIBE_BLACK_BOX(TemporalPicker); -//===== -// 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) -//===== } // EO namespace bbvtk