]> Creatis software - creaMaracasVisu.git/commitdiff
2416 creaMaracasVisu Feature New Normal AddContainerSettings blackbox 2014-06-27...
authorctorres <carlos.torres@creatis.insa-lyon.fr>
Fri, 27 Jun 2014 13:22:22 +0000 (15:22 +0200)
committerctorres <carlos.torres@creatis.insa-lyon.fr>
Fri, 27 Jun 2014 13:22:22 +0000 (15:22 +0200)
bbtk/src/bbcreaMaracasVisuAddContainerSettings.cxx [new file with mode: 0644]
bbtk/src/bbcreaMaracasVisuAddContainerSettings.h [new file with mode: 0644]
bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx
bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.h

diff --git a/bbtk/src/bbcreaMaracasVisuAddContainerSettings.cxx b/bbtk/src/bbcreaMaracasVisuAddContainerSettings.cxx
new file mode 100644 (file)
index 0000000..cadab5d
--- /dev/null
@@ -0,0 +1,59 @@
+#include "bbcreaMaracasVisuAddContainerSettings.h"
+#include "bbcreaMaracasVisuPackage.h"
+namespace bbcreaMaracasVisu
+{
+
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,AddContainerSettings)
+BBTK_BLACK_BOX_IMPLEMENTATION(AddContainerSettings,bbtk::AtomicBlackBox);
+
+void AddContainerSettings::Process()
+{
+               if(bbGetInputIn1()!=NULL){
+                       m_BCSettingsVector.push_back( bbGetInputIn1() );
+               }
+               if(bbGetInputIn2()!=NULL){
+                       m_BCSettingsVector.push_back( bbGetInputIn2() );
+               }
+               if(bbGetInputIn3()!=NULL){
+                       m_BCSettingsVector.push_back( bbGetInputIn3() );
+               }
+               if(bbGetInputIn4()!=NULL){
+                       m_BCSettingsVector.push_back( bbGetInputIn4() );
+               }
+               if(bbGetInputIn5()!=NULL){
+                       m_BCSettingsVector.push_back( bbGetInputIn5() );
+               }
+               if(bbGetInputIn6()!=NULL){
+                       m_BCSettingsVector.push_back( bbGetInputIn6() );
+               }
+               if(bbGetInputIn7()!=NULL){
+                       m_BCSettingsVector.push_back( bbGetInputIn7() );
+               }
+               if(bbGetInputIn8()!=NULL){
+                       m_BCSettingsVector.push_back( bbGetInputIn8() );
+               }
+               if(bbGetInputIn9()!=NULL){
+                       m_BCSettingsVector.push_back( bbGetInputIn9() );
+               }
+               bbSetOutputOut( m_BCSettingsVector );
+}
+
+void AddContainerSettings::bbUserSetDefaultValues()
+{
+
+}
+
+void AddContainerSettings::bbUserInitializeProcessing()
+{
+}
+
+void AddContainerSettings::bbUserFinalizeProcessing()
+{
+
+}
+}
+// EO namespace bbcreaMaracasVisu
+
+
diff --git a/bbtk/src/bbcreaMaracasVisuAddContainerSettings.h b/bbtk/src/bbcreaMaracasVisuAddContainerSettings.h
new file mode 100644 (file)
index 0000000..0d7b3b7
--- /dev/null
@@ -0,0 +1,58 @@
+//===== 
+// 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)
+//===== 
+#ifndef __bbcreaMaracasVisuAddContainerSettings_h_INCLUDED__
+#define __bbcreaMaracasVisuAddContainerSettings_h_INCLUDED__
+#include "bbcreaMaracasVisu_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+#include <structBCPSettings.h>
+namespace bbcreaMaracasVisu
+{
+       typedef creaPanelButtonContainer::BCPSettingsStruct BCPSettingsStruct;
+       typedef std::vector< BCPSettingsStruct* > BCStructVectorType;
+class bbcreaMaracasVisu_EXPORT AddContainerSettings
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(AddContainerSettings,bbtk::AtomicBlackBox);
+
+  BBTK_DECLARE_INPUT(In1,BCPSettingsStruct*);
+  BBTK_DECLARE_INPUT(In2,BCPSettingsStruct*);
+  BBTK_DECLARE_INPUT(In3,BCPSettingsStruct*);
+  BBTK_DECLARE_INPUT(In4,BCPSettingsStruct*);
+  BBTK_DECLARE_INPUT(In5,BCPSettingsStruct*);
+  BBTK_DECLARE_INPUT(In6,BCPSettingsStruct*);
+  BBTK_DECLARE_INPUT(In7,BCPSettingsStruct*);
+  BBTK_DECLARE_INPUT(In8,BCPSettingsStruct*);
+  BBTK_DECLARE_INPUT(In9,BCPSettingsStruct*);
+  BBTK_DECLARE_OUTPUT(Out,BCStructVectorType);
+  BBTK_PROCESS(Process);
+  void Process();
+
+       BCStructVectorType m_BCSettingsVector;
+
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(AddContainerSettings,bbtk::AtomicBlackBox);
+BBTK_NAME("AddContainerSettings");
+BBTK_AUTHOR("Carlos Torres");
+BBTK_DESCRIPTION("No Description.");
+BBTK_CATEGORY("empty");
+BBTK_INPUT(AddContainerSettings,In1,"In1",BCPSettingsStruct*,"");
+BBTK_INPUT(AddContainerSettings,In2,"In2",BCPSettingsStruct*,"");
+BBTK_INPUT(AddContainerSettings,In3,"In3",BCPSettingsStruct*,"");
+BBTK_INPUT(AddContainerSettings,In4,"In4",BCPSettingsStruct*,"");
+BBTK_INPUT(AddContainerSettings,In5,"In5",BCPSettingsStruct*,"");
+BBTK_INPUT(AddContainerSettings,In6,"In6",BCPSettingsStruct*,"");
+BBTK_INPUT(AddContainerSettings,In7,"In7",BCPSettingsStruct*,"");
+BBTK_INPUT(AddContainerSettings,In8,"In8",BCPSettingsStruct*,"");
+BBTK_INPUT(AddContainerSettings,In9,"In9",BCPSettingsStruct*,"");
+BBTK_OUTPUT(AddContainerSettings,Out,"Out",BCStructVectorType,"");
+BBTK_END_DESCRIBE_BLACK_BOX(AddContainerSettings);
+
+}
+// EO namespace bbcreaMaracasVisu
+
+#endif // __bbcreaMaracasVisuAddContainerSettings_h_INCLUDED__
+
index 3e8df9fe0a6dfc687838d0548fd4c44c9fb5a8b9..faded793d1f0aef8d4486d50f20dc1a23e28be6d 100644 (file)
@@ -50,7 +50,7 @@ PanelButtonContainerSettings::Process( )
        this->m_BCSettingsVector                        = bbGetInputIn();
        this->m_BCSettingsVector.push_back(  this->m_BSettings );
        bbSetOutputOut( this->m_BCSettingsVector );
-       
+       bbSetOutputSettings( this->m_BSettings );
        printf("EED PanelButtonContainerSettings::Process In  %d\n", bbGetInputIn( ).size() );
        printf("EED PanelButtonContainerSettings::Process tmpVec  %d\n", this->m_BCSettingsVector.size() );
        printf("EED PanelButtonContainerSettings::Process Out  %d\n", bbGetOutputOut( ).size() );
index cb449d55b99affe120cd861743c991c80ac383f1..52579c613215333bce99a0e0b502d8e26f0f9a88 100644 (file)
@@ -58,6 +58,7 @@ namespace bbcreaMaracasVisu
                        BBTK_DECLARE_INPUT(ButtonDescription,std::string);
                        BBTK_DECLARE_INPUT(Widget,wxWindow*);
                        BBTK_DECLARE_OUTPUT(Out,BCStructVectorType);
+                       BBTK_DECLARE_OUTPUT(Settings,BCPSettingsStruct*);
                        BBTK_PROCESS(Process);
 
                        void
@@ -88,6 +89,7 @@ namespace bbcreaMaracasVisu
        BBTK_INPUT(PanelButtonContainerSettings,ButtonDescription,"Full description of the button",std::string,"");
        BBTK_INPUT(PanelButtonContainerSettings,Widget,"Panel associated to the button",wxWindow*,"");
        BBTK_OUTPUT(PanelButtonContainerSettings,Out,"ButtonContainerSettings List",BCStructVectorType,"");
+       BBTK_OUTPUT(PanelButtonContainerSettings,Settings,"ButtonContainerSettings",BCPSettingsStruct*,"");
        BBTK_END_DESCRIBE_BLACK_BOX(PanelButtonContainerSettings);
        //=====
        // 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)