From 880273de17de05d1237a5e8db513b58902b15d6e Mon Sep 17 00:00:00 2001 From: ctorres Date: Fri, 27 Jun 2014 15:22:22 +0200 Subject: [PATCH] 2416 creaMaracasVisu Feature New Normal AddContainerSettings blackbox 2014-06-27 15:21 --- .../bbcreaMaracasVisuAddContainerSettings.cxx | 59 +++++++++++++++++++ .../bbcreaMaracasVisuAddContainerSettings.h | 58 ++++++++++++++++++ ...aracasVisuPanelButtonContainerSettings.cxx | 2 +- ...aMaracasVisuPanelButtonContainerSettings.h | 2 + 4 files changed, 120 insertions(+), 1 deletion(-) create mode 100644 bbtk/src/bbcreaMaracasVisuAddContainerSettings.cxx create mode 100644 bbtk/src/bbcreaMaracasVisuAddContainerSettings.h diff --git a/bbtk/src/bbcreaMaracasVisuAddContainerSettings.cxx b/bbtk/src/bbcreaMaracasVisuAddContainerSettings.cxx new file mode 100644 index 0000000..cadab5d --- /dev/null +++ b/bbtk/src/bbcreaMaracasVisuAddContainerSettings.cxx @@ -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 index 0000000..0d7b3b7 --- /dev/null +++ b/bbtk/src/bbcreaMaracasVisuAddContainerSettings.h @@ -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 +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__ + diff --git a/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx b/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx index 3e8df9f..faded79 100644 --- a/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx +++ b/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx @@ -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() ); diff --git a/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.h b/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.h index cb449d5..52579c6 100644 --- a/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.h +++ b/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.h @@ -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) -- 2.47.1