]> Creatis software - creaCLI.git/blobdiff - ModuleCall/GenSrc/bbSlicerCastImage.h
All Slicer modules succesfully compiled into BBTK boxes :P
[creaCLI.git] / ModuleCall / GenSrc / bbSlicerCastImage.h
diff --git a/ModuleCall/GenSrc/bbSlicerCastImage.h b/ModuleCall/GenSrc/bbSlicerCastImage.h
new file mode 100644 (file)
index 0000000..ba1237a
--- /dev/null
@@ -0,0 +1,62 @@
+#ifndef __bbSlicerCastImage_h_INCLUDED__
+#define __bbSlicerCastImage_h_INCLUDED__
+
+#include "bbSlicer_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+
+#include <vector>
+#include <cstdlib>
+#include <dlfcn.h>
+#include <sstream>
+#include <fstream>
+#include <iostream>
+
+#include <ModuleDescriptionUtilities.h>
+#include <ModuleDescriptionParser.h>
+#include <ModuleParameterGroup.h>
+#include <ModuleDescription.h>
+#include <ModuleParameter.h>
+
+#include "CreationTool.h"
+
+namespace bbSlicer {
+
+    class bbSlicer_EXPORT CastImage
+    :
+    public bbtk::AtomicBlackBox {
+        BBTK_BLACK_BOX_INTERFACE ( CastImage , bbtk::AtomicBlackBox ) ;
+
+        // GENERATED ARGS        
+        
+BBTK_DECLARE_INPUT ( InputVolume , std::string );
+BBTK_DECLARE_INPUT ( OutputVolume , std::string );
+BBTK_DECLARE_INPUT ( Type , std::string );
+
+        // EO GENERATED ARGS
+
+        BBTK_PROCESS ( Process ) ;
+        void Process ( ) ;
+    private:
+        void execute ( std::string lib , int _argc , char * _argv[] ) ;
+    } ;
+
+    BBTK_BEGIN_DESCRIBE_BLACK_BOX ( CastImage , bbtk::AtomicBlackBox ) ;
+    BBTK_NAME ( "CastImage" ) ;
+    BBTK_AUTHOR ( "Nicole Aucoin, BWH Ron Kikinis, BWH" ) ;
+    BBTK_DESCRIPTION ( "Cast a volume to a given data type.Use at your own risk when casting an input volume into a lower precision type!Allows casting to the same type as the input volume." ) ;
+    BBTK_CATEGORY ( "Filtering.Arithmetic" ) ;
+
+    // GENERATED DESCRPTION
+    
+BBTK_INPUT(CastImage , InputVolume , "InputVolume" , std::string, "");
+BBTK_INPUT(CastImage , OutputVolume , "OutputVolume" , std::string, "");
+BBTK_INPUT(CastImage , Type , "Type" , std::string, "");
+
+    // EO GENERATED DESCRIPTION
+
+    BBTK_END_DESCRIBE_BLACK_BOX ( CastImage ) ;
+}
+
+#endif // __bbSlicerCastImage_h_INCLUDED__
+
+