]> Creatis software - bbtk.git/commitdiff
Feature #1648 Add an example for the box finding a value in a list of intervals.
authorClaire Mouton <Claire.Mouton@creatis.insa-lyon.fr>
Wed, 3 Oct 2012 12:54:54 +0000 (12:54 +0000)
committerClaire Mouton <Claire.Mouton@creatis.insa-lyon.fr>
Wed, 3 Oct 2012 12:54:54 +0000 (12:54 +0000)
packages/std/bbs/appli/exampleGetIntervalNumberFromIntervalList.bbg [new file with mode: 0644]
packages/std/bbs/appli/exampleGetIntervalNumberFromIntervalList.bbs [new file with mode: 0644]

diff --git a/packages/std/bbs/appli/exampleGetIntervalNumberFromIntervalList.bbg b/packages/std/bbs/appli/exampleGetIntervalNumberFromIntervalList.bbg
new file mode 100644 (file)
index 0000000..1b6f4ce
--- /dev/null
@@ -0,0 +1,32 @@
+# ----------------------------------
+# - BBTKGEditor v 1.3 BBG BlackBox Diagram file
+# - /home/mouton/Creatis/all/creatools_source/bbtk/packages/std/bbs/appli/exampleGetIntervalNumberFromIntervalList.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:<VOID>
+DESCRIPTION:Description ??
+AUTHOR:Author ??
+COMPLEXBOX:FALSE
+BOXES:2
+BOX
+std:GetIntervalNumberFromIntervalList:Box00
+ISEXEC:FALSE
+-52.847903:45.155756:-900.000000
+18.327097:35.155756:-900.000000
+PORT
+IntervalList:"0 10 20 50"
+PORT
+Value:"15"
+FIN_BOX
+BOX
+wx:OutputText:Box01
+ISEXEC:TRUE
+-52.847903:10.398644:-900.000000
+-7.272903:0.398644:-900.000000
+FIN_BOX
+CONNECTIONS:1
+CONNECTION
+Box00:IntervalNumber:Box01:In
+NumberOfControlPoints:0
+APP_END
diff --git a/packages/std/bbs/appli/exampleGetIntervalNumberFromIntervalList.bbs b/packages/std/bbs/appli/exampleGetIntervalNumberFromIntervalList.bbs
new file mode 100644 (file)
index 0000000..ebd8b27
--- /dev/null
@@ -0,0 +1,27 @@
+# ----------------------------------
+# - BBTKGEditor v 1.3 BBS BlackBox Script
+# - /home/mouton/Creatis/all/creatools_source/bbtk/packages/std/bbs/appli/exampleGetIntervalNumberFromIntervalList.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include std
+include wx
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new GetIntervalNumberFromIntervalList Box00
+  set Box00.IntervalList "0 10 20 50"
+  set Box00.Value "15"
+
+new OutputText Box01
+
+
+connect Box00.IntervalNumber Box01.In
+
+exec Box01