From 202e2e9d3c4aab17725fcb53737f73f844094b9d Mon Sep 17 00:00:00 2001 From: "eduardo.davila@creatis.insa-lyon.fr" Date: Wed, 6 Nov 2024 08:58:50 +0100 Subject: [PATCH] Clean code --- bbtk_creaVtk_PKG/src/bbcreaVtkActor.h | 72 +++++++++---------- .../src/bbcreaVtkImageMaskDice.cxx | 4 ++ 2 files changed, 40 insertions(+), 36 deletions(-) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkActor.h b/bbtk_creaVtk_PKG/src/bbcreaVtkActor.h index 5fed993..e2ae8e5 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkActor.h +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkActor.h @@ -15,51 +15,51 @@ namespace bbcreaVtk { class bbcreaVtk_EXPORT Actor - : - public bbtk::AtomicBlackBox +: +public bbtk::AtomicBlackBox { - BBTK_BLACK_BOX_INTERFACE(Actor,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(Active,bool); - BBTK_DECLARE_INPUT(In,vtkProp3D*); - BBTK_DECLARE_INPUT(Opacity,double); - BBTK_DECLARE_INPUT(Color,std::vector); - BBTK_DECLARE_INPUT(LineWidth,double); - BBTK_DECLARE_INPUT(Transform,vtkTransform*); - BBTK_DECLARE_INPUT(Renderer,vtkRenderer*); -// BBTK_DECLARE_OUTPUT(Out,double); - BBTK_PROCESS(Process); - void Process(); - - bool backActive; -//===== -// 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_BLACK_BOX_INTERFACE(Actor,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(Active,bool); + BBTK_DECLARE_INPUT(In,vtkProp3D*); + BBTK_DECLARE_INPUT(Opacity,double); + BBTK_DECLARE_INPUT(Color,std::vector); + BBTK_DECLARE_INPUT(LineWidth,double); + BBTK_DECLARE_INPUT(Transform,vtkTransform*); + BBTK_DECLARE_INPUT(Renderer,vtkRenderer*); + // BBTK_DECLARE_OUTPUT(Out,double); + BBTK_PROCESS(Process); + void Process(); + + bool backActive; + //===== + // 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(Actor,bbtk::AtomicBlackBox); - BBTK_NAME("Actor"); - BBTK_AUTHOR("Info-Dev"); - BBTK_DESCRIPTION("No Description."); - BBTK_CATEGORY("empty"); +BBTK_NAME("Actor"); +BBTK_AUTHOR("Info-Dev"); +BBTK_DESCRIPTION("No Description."); +BBTK_CATEGORY("empty"); - BBTK_INPUT(Actor,Active,"Active true/false (default false)",bool,""); - BBTK_INPUT(Actor,In,"First input",vtkProp3D*,""); - BBTK_INPUT(Actor,Opacity,"Opacity 0..1 (default 1)",double,""); - BBTK_INPUT(Actor,Color,"(default [1 0 0]red ) RGB color vector [0..1, 0..1, 0..1] )", std::vector,""); - BBTK_INPUT(Actor,LineWidth,"(default 0.5 ) With ligne )",double,""); - BBTK_INPUT(Actor,Transform,"Transform",vtkTransform*,""); - BBTK_INPUT(Actor,Renderer,"Renderer",vtkRenderer*,""); +BBTK_INPUT(Actor,Active,"Active true/false (default false)",bool,""); +BBTK_INPUT(Actor,In,"First input",vtkProp3D*,""); +BBTK_INPUT(Actor,Opacity,"Opacity 0..1 (default 1)",double,""); +BBTK_INPUT(Actor,Color,"(default [1 0 0]red ) RGB color vector [0..1, 0..1, 0..1] )", std::vector,""); +BBTK_INPUT(Actor,LineWidth,"(default 0.5 ) With ligne )",double,""); +BBTK_INPUT(Actor,Transform,"Transform",vtkTransform*,""); +BBTK_INPUT(Actor,Renderer,"Renderer",vtkRenderer*,""); // BBTK_OUTPUT(Actor,Out,"First output",double,""); BBTK_END_DESCRIBE_BLACK_BOX(Actor); -//===== +//===== // 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 bbcreaVtk +//===== + +}// EO namespace bbcreaVtk #endif // __bbcreaVtkActor_h_INCLUDED__ diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkImageMaskDice.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkImageMaskDice.cxx index 5272ac3..2cc87fc 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkImageMaskDice.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkImageMaskDice.cxx @@ -53,6 +53,8 @@ void ImageMaskDice::Process() // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') + printf("EED ImageMaskDice::Process Start .. \n"); + if ( (bbGetInputIn1()!=NULL) && (bbGetInputIn2()!=NULL) ) { int ext[6]; @@ -92,6 +94,8 @@ void ImageMaskDice::Process() } else { printf ("EED Warning... VolumeMassDice::Process Missing input files...\n"); }// if + printf("EED ImageMaskDice::Process .. End \n"); + } //===== -- 2.47.1