]> Creatis software - creaMiniTools.git/commitdiff
1577 Feature
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 6 Aug 2012 11:51:13 +0000 (11:51 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 6 Aug 2012 11:51:13 +0000 (11:51 +0000)
  Add Flip minitool

bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbg [new file with mode: 0644]
bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbs [new file with mode: 0644]
bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg
bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs

diff --git a/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbg b/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbg
new file mode 100644 (file)
index 0000000..e5a2c10
--- /dev/null
@@ -0,0 +1,103 @@
+# ----------------------------------
+# - BBTKGEditor v 1.3 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/All5/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:<VOID>
+DESCRIPTION:Description ??
+AUTHOR:Author ??
+COMPLEXBOX:FALSE
+BOXES:9
+BOX
+vtk:Flip:Box00
+ISEXEC:FALSE
+-13.772052:45.072171:-900.000000
+19.002948:35.072171:-900.000000
+FIN_BOX
+BOX
+vtk:LoadHola:Box01
+ISEXEC:FALSE
+-17.945401:67.051810:-900.000000
+27.629599:57.051810:-900.000000
+FIN_BOX
+BOX
+creaMaracasVisu:ViewerNV:Box02
+ISEXEC:FALSE
+9.573410:16.440466:-900.000000
+70.213410:6.440466:-900.000000
+FIN_BOX
+BOX
+toolsbbtk:SaveMHD-Button:Box03
+ISEXEC:FALSE
+-39.950333:16.690867:-900.000000
+5.624667:6.690867:-900.000000
+FIN_BOX
+BOX
+wx:LayoutSplit:Box04
+ISEXEC:FALSE
+11.207339:-41.493208:-900.000000
+56.782339:-51.493208:-900.000000
+PORT
+Proportion:"7"
+PORT
+WinTitle:"Flip Y"
+FIN_BOX
+BOX
+wx:LayoutTab:Box05
+ISEXEC:TRUE
+-27.569397:-63.232563:-900.000000
+29.990603:-73.232563:-900.000000
+FIN_BOX
+BOX
+creaMaracasVisu:ViewerNV:Box06
+ISEXEC:FALSE
+-80.178890:-6.070326:-900.000000
+-19.538890:-16.070326:-900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:Box07
+ISEXEC:FALSE
+-72.550513:-42.014244:-900.000000
+-14.990513:-52.014244:-900.000000
+PORT
+WinTitle:"Original"
+FIN_BOX
+BOX
+wx:LayoutCenter:Box08
+ISEXEC:FALSE
+-6.376204:-12.397742:-900.000000
+39.198796:-22.397742:-900.000000
+FIN_BOX
+CONNECTIONS:10
+CONNECTION
+Box01:Out:Box00:In
+NumberOfControlPoints:0
+CONNECTION
+Box00:Out:Box02:In
+NumberOfControlPoints:0
+CONNECTION
+Box00:Out:Box03:In
+NumberOfControlPoints:0
+CONNECTION
+Box02:Widget:Box04:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box01:Out:Box06:In
+NumberOfControlPoints:0
+CONNECTION
+Box04:Widget:Box05:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box06:Widget:Box07:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box07:Widget:Box05:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box03:Widget:Box08:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box08:Widget:Box04:Widget1
+NumberOfControlPoints:0
+APP_END
diff --git a/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbs b/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbs
new file mode 100644 (file)
index 0000000..2723f12
--- /dev/null
@@ -0,0 +1,53 @@
+# ----------------------------------
+# - BBTKGEditor v 1.3 BBS BlackBox Script
+# - /Users/davila/Creatis/All5/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/flipImageY.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include vtk
+include creaMaracasVisu
+include toolsbbtk
+include wx
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new Flip Box00
+
+new LoadHola Box01
+
+new ViewerNV Box02
+
+new SaveMHD-Button Box03
+
+new LayoutSplit Box04
+  set Box04.Proportion "7"
+  set Box04.WinTitle "Flip Y"
+
+new LayoutTab Box05
+
+new ViewerNV Box06
+
+new LayoutLine Box07
+  set Box07.WinTitle "Original"
+
+new LayoutCenter Box08
+
+
+connect Box01.Out Box00.In
+connect Box00.Out Box02.In
+connect Box00.Out Box03.In
+connect Box02.Widget Box04.Widget2
+connect Box01.Out Box06.In
+connect Box04.Widget Box05.Widget2
+connect Box06.Widget Box07.Widget1
+connect Box07.Widget Box05.Widget1
+connect Box03.Widget Box08.Widget2
+connect Box08.Widget Box04.Widget1
+
+exec Box05
index 5fdc3625e7ea0af3df906783b55670b3e2442c91..5cacbbec3b1fba11f14c815936151d1cb31ea554 100644 (file)
@@ -16,7 +16,7 @@ COMPLEX_PORT
 widget
 55.184284:-40.716064:-900.000000
 FIN_COMPLEX_PORT
-BOXES:21
+BOXES:23
 BOX
 wx:CommandButton:Box00
 ISEXEC:FALSE
@@ -177,7 +177,23 @@ ISEXEC:FALSE
 PORT
 WinTitle:"Modify image"
 FIN_BOX
-CONNECTIONS:21
+BOX
+wx:CommandButton:Box29
+ISEXEC:FALSE
+163.195715:107.893513:-900.000000
+208.770715:97.893513:-900.000000
+PORT
+Label:"Flip Image Y"
+FIN_BOX
+BOX
+std:ExecSystemCommand:Box30
+ISEXEC:FALSE
+152.592822:78.912001:-900.000000
+223.767822:68.912001:-900.000000
+PORT
+In:"bbi creaMiniTools/appli/flipImageY.bbs &"
+FIN_BOX
+CONNECTIONS:23
 CONNECTION
 Box00:BoxChange:Box04:BoxExecute
 NumberOfControlPoints:0
@@ -241,4 +257,10 @@ NumberOfControlPoints:0
 CONNECTION
 Box13:Widget:Box19:Widget5
 NumberOfControlPoints:0
+CONNECTION
+Box29:Widget:Box19:Widget6
+NumberOfControlPoints:0
+CONNECTION
+Box29:BoxChange:Box30:BoxExecute
+NumberOfControlPoints:0
 APP_END
index 8d93cc7b7529ba405f9f32ec8c4abedfcf18f8ee..17040648e7363327d68201fb0cfd48a9e582d010 100644 (file)
@@ -75,6 +75,12 @@ new LayoutCenter Box27
 new LayoutCenter Box28
   set Box28.WinTitle "Modify image"
 
+new CommandButton Box29
+  set Box29.Label "Flip Image Y"
+
+new ExecSystemCommand Box30
+  set Box30.In "bbi creaMiniTools/appli/flipImageY.bbs &"
+
 
 connect Box00.BoxChange Box04.BoxExecute
 connect Box02.BoxChange Box06.BoxExecute
@@ -96,6 +102,8 @@ connect Box27.Widget Box15.Widget1
 connect Box19.Widget Box28.Widget2
 connect Box28.Widget Box15.Widget2
 connect Box13.Widget Box19.Widget5
+connect Box29.Widget Box19.Widget6
+connect Box29.BoxChange Box30.BoxExecute
 
 exec Box15