]> Creatis software - creaCLI.git/blob - bbtk_Slicer_PKG/src/bbSlicerMergeModels.h
2ff5f2de4ca2e9901575b8dce9d1a16d83f228ff
[creaCLI.git] / bbtk_Slicer_PKG / src / bbSlicerMergeModels.h
1 #ifndef __bbSlicerMergeModels_h_INCLUDED__
2 #define __bbSlicerMergeModels_h_INCLUDED__
3
4 #include "bbSlicer_EXPORT.h"
5 #include "bbtkAtomicBlackBox.h"
6
7 #include <vector>
8 #include <cstdlib>
9 #include <dlfcn.h>
10 #include <sstream>
11 #include <fstream>
12 #include <iostream>
13
14 #include <ModuleDescriptionUtilities.h>
15 #include <ModuleDescriptionParser.h>
16 #include <ModuleParameterGroup.h>
17 #include <ModuleDescription.h>
18 #include <ModuleParameter.h>
19
20 #include "CreationTool.h"
21
22 namespace bbSlicer {
23
24     class bbSlicer_EXPORT MergeModels
25     :
26     public bbtk::AtomicBlackBox {
27         BBTK_BLACK_BOX_INTERFACE ( MergeModels , bbtk::AtomicBlackBox ) ;
28
29         // GENERATED ARGS        
30         
31 BBTK_DECLARE_INPUT ( Model1 , std::string );
32 BBTK_DECLARE_INPUT ( Model2 , std::string );
33 BBTK_DECLARE_INPUT ( ModelOutput , std::string );
34
35         // EO GENERATED ARGS
36
37         BBTK_PROCESS ( Process ) ;
38         void Process ( ) ;
39     private:
40         void execute ( std::string lib , int _argc , char * _argv[] ) ;
41     } ;
42
43     BBTK_BEGIN_DESCRIBE_BLACK_BOX ( MergeModels , bbtk::AtomicBlackBox ) ;
44     BBTK_NAME ( "MergeModels" ) ;
45     BBTK_AUTHOR ( "Nicole Aucoin BWH (Ron Kikinis, BWH), Daniel Haehn" ) ;
46     BBTK_DESCRIPTION ( "Merge the polydata from two input models and output a new model with the added polydata. Uses the vtkAppendPolyData filter. Works on .vtp and .vtk surface files." ) ;
47     BBTK_CATEGORY ( "Surface Models" ) ;
48
49     // GENERATED DESCRPTION
50     
51 BBTK_INPUT(MergeModels , Model1 , "Model1" , std::string, "");
52 BBTK_INPUT(MergeModels , Model2 , "Model2" , std::string, "");
53 BBTK_INPUT(MergeModels , ModelOutput , "ModelOutput" , std::string, "");
54
55     // EO GENERATED DESCRIPTION
56
57     BBTK_END_DESCRIBE_BLACK_BOX ( MergeModels ) ;
58 }
59
60 #endif // __bbSlicerMergeModels_h_INCLUDED__
61
62