]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/src/bbPackRecalageCheckBoardBox.cxx
Added checkbox, transparency and switcher
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageCheckBoardBox.cxx
diff --git a/PackRecalage/src/bbPackRecalageCheckBoardBox.cxx b/PackRecalage/src/bbPackRecalageCheckBoardBox.cxx
new file mode 100644 (file)
index 0000000..10e6b0e
--- /dev/null
@@ -0,0 +1,53 @@
+#include "bbPackRecalageCheckBoardBox.h"
+#include "bbPackRecalagePackage.h"
+namespace bbPackRecalage
+{
+
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,CheckBoardBox)
+BBTK_BLACK_BOX_IMPLEMENTATION(CheckBoardBox,bbtk::AtomicBlackBox);
+void CheckBoardBox::Process()
+{
+// THE MAIN PROCESSING METHOD BODY 
+       checkboard->setInputImage1(bbGetInputIn1());
+       checkboard->setInputImage2(bbGetInputIn2());
+       checkboard->setRows(bbGetInputRows());
+       checkboard->setCols(bbGetInputCols());
+       checkboard->calculateImage();
+       bbSetOutputOut(checkboard->getFilteredImage());
+  
+}
+void CheckBoardBox::bbUserSetDefaultValues()
+{
+//  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX  
+//    Here we initialize the input 'In' to 0 
+   bbSetInputIn1(NULL); 
+   bbSetInputIn2(NULL); 
+   bbSetInputRows(0); 
+   bbSetInputCols(0);
+   checkboard=NULL;
+  
+}
+void CheckBoardBox::bbUserInitializeProcessing()
+{
+//  THE INITIALIZATION METHOD BODY : 
+//    Here does nothing  
+//    but this is where you should allocate the internal/output pointers  
+//    if any 
+       checkboard = new CheckBoard();
+  
+}
+void CheckBoardBox::bbUserFinalizeProcessing()
+{
+       
+//  THE FINALIZATION METHOD BODY : 
+//    Here does nothing  
+//    but this is where you should desallocate the internal/output pointers  
+//    if any 
+   //delete checkboard;        
+}
+}
+// EO namespace bbPackVisuImages
+
+