]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/src/bbPackRecalageDuplicateImageBox.cxx
Added image duplication and file open save boxes
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageDuplicateImageBox.cxx
diff --git a/PackRecalage/src/bbPackRecalageDuplicateImageBox.cxx b/PackRecalage/src/bbPackRecalageDuplicateImageBox.cxx
new file mode 100644 (file)
index 0000000..fe26625
--- /dev/null
@@ -0,0 +1,41 @@
+#include "bbPackRecalageDuplicateImageBox.h"
+#include "bbPackRecalagePackage.h"
+namespace bbPackRecalage
+{
+
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,DuplicateImageBox)
+BBTK_BLACK_BOX_IMPLEMENTATION(DuplicateImageBox,bbtk::AtomicBlackBox);
+void DuplicateImageBox::Process()
+{
+       vtkImageData *duplicate = vtkImageData::New();
+       bbGetInputIn()->ShallowCopy(duplicate);
+       bbSetOutputOut(duplicate);  
+}
+void DuplicateImageBox::bbUserSetDefaultValues()
+{
+       bbSetInputIn(NULL);   
+       bbSetOutputOut(NULL);
+}
+void DuplicateImageBox::bbUserInitializeProcessing()
+{
+//  THE INITIALIZATION METHOD BODY : 
+//    Here does nothing  
+//    but this is where you should allocate the internal/output pointers  
+//    if any  
+  
+}
+void DuplicateImageBox::bbUserFinalizeProcessing()
+{
+//  THE FINALIZATION METHOD BODY : 
+//    Here does nothing  
+//    but this is where you should desallocate the internal/output pointers  
+//    if any 
+  
+}
+}
+// EO namespace bbPackRecalage
+
+