]> Creatis software - creaVtk.git/commitdiff
Clean code
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Wed, 6 Nov 2024 07:58:50 +0000 (08:58 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Wed, 6 Nov 2024 07:58:50 +0000 (08:58 +0100)
bbtk_creaVtk_PKG/src/bbcreaVtkActor.h
bbtk_creaVtk_PKG/src/bbcreaVtkImageMaskDice.cxx

index 5fed993f6bde1d53cfd1b96778abc196f7ca5c46..e2ae8e59fb4b058a7905c73ea7496665651fa0bc 100644 (file)
@@ -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<double>);
-  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<double>);
+    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<double>,"");
- 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<double>,"");
+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__
 
index 5272ac33efc01fd0bcdd293669e984c36d527782..2cc87fc7004bfad3b138656aa7d97cf63fbb96d9 100644 (file)
@@ -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");
+
 }
 
 //=====