]> Creatis software - creaVtk.git/commitdiff
#3525 Python descrition vtk9itk5wx3-macos
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Wed, 29 May 2024 08:35:53 +0000 (10:35 +0200)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Wed, 29 May 2024 08:35:53 +0000 (10:35 +0200)
13 files changed:
bbtk_creaVtk_PKG/src/bbcreaVtkBoxWidget.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkBoxWidget.h
bbtk_creaVtk_PKG/src/bbcreaVtkBoxWidget_tool.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkBoxWidget_tool.h
bbtk_creaVtk_PKG/src/bbcreaVtkClipPolyData.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkClipPolyData.h
bbtk_creaVtk_PKG/src/bbcreaVtkConcatTransform.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkConcatTransform.h
bbtk_creaVtk_PKG/src/bbcreaVtkNIFTIImageReader.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkNIFTIImageReader.h
bbtk_creaVtk_PKG/src/bbcreaVtkPolyDataNormals.h
bbtk_creaVtk_PKG/src/bbcreaVtkStlReader.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkStlReader.h

index 304e39dff05988a1d8fe029bf302befd4767f3f2..d0c60503176be0aa224a520ba9c567212497ce69 100644 (file)
@@ -112,13 +112,8 @@ void BoxWidget::Process()
         bbSetOutputTransformOut( transformOut );
     } else {
         printf("EED Warnning! BoxWidget::Process vtkRenderer not set.\n");
-    }// vtkRenderer != NULL
-    
+    }// vtkRenderer != NULL    
     bbSetOutputBox_BoxWidget( this );
-
-    printf("EED  BoxWidget::Process A\n");
-
-    
 }
 //=====
 // 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)
index 1659b768fc57b354fd5c868ecfaeceb8cd856dd7..9f5d104cb531159e2bda64f42778ed25bc874e53 100644 (file)
@@ -53,7 +53,7 @@ class bbcreaVtk_EXPORT BoxWidget
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(BoxWidget,bbtk::AtomicBlackBox);
   BBTK_NAME("BoxWidget");
   BBTK_AUTHOR("InfoDev");
-  BBTK_DESCRIPTION("No Description.");
+  BBTK_DESCRIPTION("(C++,Python) No Description.");
   BBTK_CATEGORY("empty");
 
   BBTK_INPUT(BoxWidget,Active,"(default false)  true/false",bool,"");
index eb3be709d485b82088ba4fd058c2a096cc463d75..78e630ab7d7bf41fee50ee871c7e1944600ce968 100644 (file)
@@ -29,10 +29,13 @@ void BoxWidget_tool::Process()
 //    bbSetOutputOut( bbGetInputIn() );
 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
  
-    if ( (bbGetInputBox_BoxWidget()!=NULL) && (bbGetInputTransform()!=NULL) )
+    if (bbGetInputType()==1) 
     {
-        bbGetInputBox_BoxWidget()->SetTransform( bbGetInputTransform() );
-    } // _BoxWidget
+        if ( (bbGetInputBox_BoxWidget()!=NULL) && (bbGetInputTransform()!=NULL) )
+        {
+            bbGetInputBox_BoxWidget()->SetTransform( bbGetInputTransform() );
+        } // _BoxWidget
+    } // if Type
 }
 
 //=====
index a3b97118f6deda873a355df105c6fd3c53c88df3..05f9c576e2f31c9d8c0dd4359604b94b846f0fe5 100644 (file)
@@ -25,7 +25,6 @@ class bbcreaVtk_EXPORT BoxWidget_tool
     BBTK_DECLARE_INPUT(Type,int);
     BBTK_DECLARE_INPUT(Transform,vtkLinearTransform*);
     BBTK_DECLARE_INPUT(Param01,std::vector<double>);
-    BBTK_DECLARE_INPUT(Param02,std::vector<double>);
     BBTK_DECLARE_INPUT(Box_BoxWidget,BoxWidget*);
     BBTK_PROCESS(Process);
     void Process();
@@ -37,7 +36,7 @@ class bbcreaVtk_EXPORT BoxWidget_tool
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(BoxWidget_tool,bbtk::AtomicBlackBox);
   BBTK_NAME("BoxWidget_tool");
   BBTK_AUTHOR("InfoDev");
-  BBTK_DESCRIPTION("No Description.");
+  BBTK_DESCRIPTION("(C++,Python) No Description.");
   BBTK_CATEGORY("empty");
   BBTK_INPUT(BoxWidget_tool,Type,"(default 0) 0:Nothing  1:SetTransform",int,"");
   BBTK_INPUT(BoxWidget_tool,Transform,"vtkTransform",vtkLinearTransform*,"");
index ad46cbcdb0603957b180c421a6cdf15ba0ce3730..e5b5ebdc5ee0fedce42eec5d2c5c8b557e64ae75 100644 (file)
@@ -33,8 +33,6 @@ void ClipPolyData::Process()
 //    bbSetOutputOut( bbGetInputIn() );
 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
 
-    printf("EED ClipPolyData::Process Start\n");
-    
        if ((bbGetInputIn()!=NULL)  && (bbGetInputImplicitFunction()!=NULL) )
        {
                if (bbGetInputType()==0)
@@ -77,41 +75,36 @@ void ClipPolyData::Process()
 //===== 
 void ClipPolyData::bbUserSetDefaultValues()
 {
-
 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
 //    Here we initialize the input 'In' to 0
    bbSetInputIn( NULL );
    bbSetInputType( 0 );
    bbSetInputInside( true );
    bbSetInputImplicitFunction( 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 ClipPolyData::bbUserInitializeProcessing()
 {
-
 //  THE INITIALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should allocate the internal/output pointers 
-//    if any 
-
-  
+//    if any
 }
-//===== 
+
+//=====
 // 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 ClipPolyData::bbUserFinalizeProcessing()
 {
-
 //  THE FINALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should desallocate the internal/output pointers 
 //    if any
-  
 }
-}
-// EO namespace bbcreaVtk
+
+// EO namespace bbcreaVtk
 
 
index 156b84fd37005f9a3d4ad148e6bb420adbf90591..4ef5452bebd2852c0a0edcfb631157efbb0da652 100644 (file)
@@ -37,7 +37,7 @@ class bbcreaVtk_EXPORT ClipPolyData
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ClipPolyData,bbtk::AtomicBlackBox);
   BBTK_NAME("ClipPolyData");
   BBTK_AUTHOR("InfoDev");
-  BBTK_DESCRIPTION("No Description.");
+  BBTK_DESCRIPTION("(C++,Python) No Description.");
   BBTK_CATEGORY("empty");
 
   BBTK_INPUT(ClipPolyData,Type,"(default 0) 0:surface vtkClipPolydata   1:points vtkExtractPoints",int,"");
index 82d2548592ac55cb527bf8c361210896e7897389..01324698767f7d02a831376cf3edbdd5715beb94 100644 (file)
@@ -33,7 +33,7 @@ void ConcatTransform::Process()
 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
   
        vtkTransform *result = vtkTransform::New();
-       result->PostMultiply ();
+       result->PostMultiply();
        result->Identity();
        if (bbGetInputIn1()!=NULL) { result->Concatenate( bbGetInputIn1()->GetMatrix() ); result->Update(); }
        if (bbGetInputIn2()!=NULL) { result->Concatenate( bbGetInputIn2()->GetMatrix() ); result->Update(); }
index bf2ada4a65aec4768e7212588059753c89853e7b..574f0ffaf1ba1ff94b3380f9eb38d3f18012986a 100644 (file)
@@ -40,7 +40,7 @@ class bbcreaVtk_EXPORT ConcatTransform
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(ConcatTransform,bbtk::AtomicBlackBox);
   BBTK_NAME("ConcatTransform");
   BBTK_AUTHOR("InfoDev");
-  BBTK_DESCRIPTION("No Description.");
+  BBTK_DESCRIPTION("(C++,Python) No Description.");
   BBTK_CATEGORY("empty");
   BBTK_INPUT(ConcatTransform,In1,"vtkLinearTransform input",vtkLinearTransform*,"");
   BBTK_INPUT(ConcatTransform,In2,"vtkLinearTransform input",vtkLinearTransform*,"");
index 42ebdd5b3cce61821013cdae8c6ee5709517ed84..fc6b5f2251cccd9099a9a27c4546785c84d7fcbc 100644 (file)
@@ -67,50 +67,43 @@ void NIFTIImageReader::Process()
                 lstImages.push_back( reader->GetOutput() );
             } // for i
         } // Type 1
-
     } // if
-       
        if (lstImages.size()>=1) { bbSetOutputOut( lstImages[0] ); } else {bbSetOutputOut( NULL ); }
        bbSetOutputOutVector( lstImages );
-    
 }
-//===== 
+
+//=====
 // 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 NIFTIImageReader::bbUserSetDefaultValues()
 {
-
 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
 //    Here we initialize the input 'In' to 0
    bbSetInputType(0);
-  
 }
-//===== 
+
+//=====
 // 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 NIFTIImageReader::bbUserInitializeProcessing()
 {
-
 //  THE INITIALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should allocate the internal/output pointers 
-//    if any 
-
-  
+//    if any
 }
-//===== 
+
+//=====
 // 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 NIFTIImageReader::bbUserFinalizeProcessing()
 {
-
 //  THE FINALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should desallocate the internal/output pointers 
 //    if any
-  
 }
-}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk
 
 
index f32a71d5f25a4cdd79241960807304e74497e58f..39bd847ca9bea6393b3c60a191eb3ed9f23295b7 100644 (file)
@@ -35,7 +35,7 @@ class bbcreaVtk_EXPORT NIFTIImageReader
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(NIFTIImageReader,bbtk::AtomicBlackBox);
   BBTK_NAME("NIFTIImageReader");
   BBTK_AUTHOR("Info-Dev");
-  BBTK_DESCRIPTION("No Description.");
+  BBTK_DESCRIPTION("(C++,Python) No Description.");
   BBTK_CATEGORY("empty");
   BBTK_INPUT(NIFTIImageReader,Type,"(default 0)   0:Use FileNames by slice  1:Use FileNames by volumes",int,"");
   BBTK_INPUT(NIFTIImageReader,FileNames,"List of file names",std::vector<std::string>,"");
index 41dd9244dffb4ba3241979dbfebea7535a6ab84a..773df4480b53ac4bb81b5b669bb5f18fc4f0c02d 100644 (file)
@@ -38,7 +38,7 @@ class bbcreaVtk_EXPORT PolyDataNormals
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(PolyDataNormals,bbtk::AtomicBlackBox);
   BBTK_NAME("PolyDataNormals");
   BBTK_AUTHOR("InfoDev");
-  BBTK_DESCRIPTION("No Description.");
+  BBTK_DESCRIPTION("(C++,Python) No Description.");
   BBTK_CATEGORY("empty");
     BBTK_INPUT(PolyDataNormals,In,"Mesh input",vtkPolyData*,"");
     BBTK_INPUT(PolyDataNormals,ComputeType,"(0 default) 0:Cells 1:Points",int,"");
index 11f4e197a89f2a26871141ec48b8646331676d47..61ace8a2fc78b766b6b5e3831b16106746a14b81 100644 (file)
@@ -16,7 +16,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(StlReader,bbtk::AtomicBlackBox);
 //===== 
 void StlReader::Process()
 {
-
 // THE MAIN PROCESSING METHOD BODY
 //   Here we simply set the input 'In' value to the output 'Out'
 //   And print out the output value
@@ -28,50 +27,44 @@ void StlReader::Process()
 //      (the one provided in the attribute 'name' of the tag 'input')
 //    * TYPE is the C++ type of the input/output
 //      (the one provided in the attribute 'type' of the tag 'input')
-
        vtkSTLReader *reader = vtkSTLReader::New();
        reader->SetFileName( bbGetInputFileName().c_str() );  
        reader->Update();
        bbSetOutputOut( reader->GetOutput() );
-
 }
-//===== 
+
+//=====
 // 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 StlReader::bbUserSetDefaultValues()
 {
-
 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
 //    Here we initialize the input 'In' to 0
    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 StlReader::bbUserInitializeProcessing()
 {
-
 //  THE INITIALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should allocate the internal/output pointers 
-//    if any 
-
-  
+//    if any
 }
-//===== 
+
+//=====
 // 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 StlReader::bbUserFinalizeProcessing()
 {
-
 //  THE FINALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should desallocate the internal/output pointers 
 //    if any
-  
 }
-}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk
 
 
index e1405e1a0529ab519fa54b696cad267b946a3297..cb2a1024369edbc3f832e5ab35e2247a17dd6949 100644 (file)
@@ -33,7 +33,7 @@ class bbcreaVtk_EXPORT StlReader
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(StlReader,bbtk::AtomicBlackBox);
   BBTK_NAME("StlReader");
   BBTK_AUTHOR("InfoDev");
-  BBTK_DESCRIPTION("No Description.");
+  BBTK_DESCRIPTION("(C++,Python) No Description.");
   BBTK_CATEGORY("empty");
   BBTK_INPUT(StlReader,FileName,"File Name",std::string,"");
   BBTK_OUTPUT(StlReader,Out,"vtkPolyData",vtkPolyData*,"");
@@ -41,8 +41,8 @@ BBTK_END_DESCRIBE_BLACK_BOX(StlReader);
 //===== 
 // 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 // __bbcreaVtkStlReader_h_INCLUDED__