From 9ca9c2a92d7d7f653ce424f477960e5a00ac0e8a Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 3 Jul 2019 16:23:05 +0200 Subject: [PATCH] #3267 BBTK Feature New Normal - VectorFilterString Box --- packages/std/src/bbstdVectorFilterDouble.cxx | 92 +++++++++++++++++++- packages/std/src/bbstdVectorFilterDouble.h | 2 +- packages/std/src/bbstdVectorFilterString.cxx | 6 +- packages/std/src/bbstdVectorFilterString.h | 6 +- 4 files changed, 101 insertions(+), 5 deletions(-) diff --git a/packages/std/src/bbstdVectorFilterDouble.cxx b/packages/std/src/bbstdVectorFilterDouble.cxx index 9a948a8..85dee1f 100644 --- a/packages/std/src/bbstdVectorFilterDouble.cxx +++ b/packages/std/src/bbstdVectorFilterDouble.cxx @@ -197,7 +197,9 @@ void VectorFilterDouble::Process() } // for pLstVec } // Type==5 - if (bbGetInputType()==6) // Division k1 + if (bbGetInputType()==6) // Division k1ng gadget (node check, owner GtkCheckButton) + + { int ipLstvec; int i; @@ -220,6 +222,94 @@ void VectorFilterDouble::Process() } // for pLstVec } // Type==6 + + + if (bbGetInputType()==7) + { + int i,j; + for (j=0;j,""); BBTK_INPUT(VectorFilterDouble,In1,"Input vector",std::vector,""); diff --git a/packages/std/src/bbstdVectorFilterString.cxx b/packages/std/src/bbstdVectorFilterString.cxx index 23adb9d..7b5da8b 100644 --- a/packages/std/src/bbstdVectorFilterString.cxx +++ b/packages/std/src/bbstdVectorFilterString.cxx @@ -31,6 +31,8 @@ void VectorFilterString::ConnectionRepetitions( std::vector vIn,std vOut->push_back(std::to_string(acum)); } + + void VectorFilterString::Process() { @@ -83,7 +85,6 @@ void VectorFilterString::Process() bbSetOutputOut9( vOut9 ); } - } //===== @@ -95,7 +96,8 @@ void VectorFilterString::bbUserSetDefaultValues() // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX // Here we initialize the input 'In' to 0 bbSetInputType(0); - + bbSetInputsk1(""); + bbSetInputsk2(""); } //===== // 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) diff --git a/packages/std/src/bbstdVectorFilterString.h b/packages/std/src/bbstdVectorFilterString.h index dd61882..0856f66 100644 --- a/packages/std/src/bbstdVectorFilterString.h +++ b/packages/std/src/bbstdVectorFilterString.h @@ -30,6 +30,8 @@ class bbstd_EXPORT VectorFilterString BBTK_DECLARE_INPUT(In8,std::vector); BBTK_DECLARE_INPUT(In9,std::vector); BBTK_DECLARE_INPUT(Type,int); + BBTK_DECLARE_INPUT(sk1,std::string); + BBTK_DECLARE_INPUT(sk2,std::string); BBTK_DECLARE_OUTPUT(Out0,std::vector); BBTK_DECLARE_OUTPUT(Out1,std::vector); @@ -67,7 +69,9 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(VectorFilterString,bbtk::AtomicBlackBox); BBTK_INPUT(VectorFilterString,In7,"Input vector",std::vector,""); BBTK_INPUT(VectorFilterString,In8,"Input vector",std::vector,""); BBTK_INPUT(VectorFilterString,In9,"Input vector",std::vector,""); - BBTK_INPUT(VectorFilterString,Type,"(Default 0) 0:count connected repetitions",int,""); + BBTK_INPUT(VectorFilterString,Type,"(Default 0) 0:count connected repetitions, 1:CleaningPointsConnectTwoMesh sk1 criterium",int,""); + BBTK_INPUT(VectorFilterString,sk1,"constant 1",std::string,""); + BBTK_INPUT(VectorFilterString,sk2,"constant 2",std::string,""); BBTK_OUTPUT(VectorFilterString,Out0,"First output",std::vector,""); BBTK_OUTPUT(VectorFilterString,Out1,"First output",std::vector,""); -- 2.47.1