]> Creatis software - creaMiniTools.git/commitdiff
#2915 CreaMiniTools Feature New Normal - Plane Viewer (mhd) Application
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 14 Apr 2016 07:33:43 +0000 (09:33 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 14 Apr 2016 07:33:43 +0000 (09:33 +0200)
bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbg [new file with mode: 0644]
bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.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/PlaneViewer-MHD.bbg b/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbg
new file mode 100644 (file)
index 0000000..8bee93b
--- /dev/null
@@ -0,0 +1,209 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
+# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:<VOID>
+DESCRIPTION:Description ??
+AUTHOR:Author ??
+COMPLEXBOX:FALSE
+COMPLEXINPUTS:0
+BOXES:16
+BOX
+wx:FileSelector:Box00
+ISEXEC:FALSE
+3.810184:129.527001:-900.000000
+49.385184:119.527001:-900.000000
+PORT
+Message:"mhd file"
+PORT
+Title:"mhd file"
+FIN_BOX
+BOX
+creaMaracasVisu:ViewerNV:Box01
+ISEXEC:FALSE
+1.748444:-92.522994:-900.000000
+62.388444:-102.522994:-900.000000
+PORT
+nTypeView:"0"
+FIN_BOX
+BOX
+creaVtk:ReadMHDPlane:Box02
+ISEXEC:FALSE
+-22.276627:-8.630131:-900.000000
+23.298373:-18.630131:-900.000000
+FIN_BOX
+BOX
+wx:Slider:Box03
+ISEXEC:FALSE
+-87.957773:27.031197:-900.000000
+-36.557773:17.031197:-900.000000
+PORT
+Label:"true"
+PORT
+ReactiveOnTrack:"true"
+PORT
+Title:"Slice Z"
+FIN_BOX
+BOX
+wx:LayoutSplit:Box04
+ISEXEC:TRUE
+-47.735174:-132.923154:-900.000000
+-2.160174:-142.923154:-900.000000
+PORT
+Orientation:"H"
+FIN_BOX
+BOX
+wx:LayoutTab:Box05
+ISEXEC:FALSE
+-93.812030:-95.413001:-900.000000
+-36.252030:-105.413001:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box07
+ISEXEC:FALSE
+18.576804:109.103270:-900.000000
+64.151804:99.103270:-900.000000
+FIN_BOX
+BOX
+creaVtk:MHDFileInfo:Box08
+ISEXEC:FALSE
+-34.069226:85.841090:-900.000000
+11.505774:75.841090:-900.000000
+FIN_BOX
+BOX
+std:GetVectorIntElement:Box09
+ISEXEC:FALSE
+-44.741874:69.859316:-900.000000
+26.433126:59.859316:-900.000000
+PORT
+I:"2"
+FIN_BOX
+BOX
+std:MathOperation:Box10
+ISEXEC:FALSE
+-66.415109:46.948566:-900.000000
+-20.840109:36.948566:-900.000000
+PORT
+In2:"-1"
+FIN_BOX
+BOX
+wx:LayoutLine:Box16
+ISEXEC:FALSE
+-130.867566:-14.529864:-900.000000
+-73.307566:-24.529864:-900.000000
+PORT
+WinTitle:"Image XY (.mhd)"
+FIN_BOX
+BOX
+wx:OutputText:Box14
+ISEXEC:FALSE
+-191.735040:6.975223:-900.000000
+-146.160040:-3.024777:-900.000000
+PORT
+Title:"Spacing"
+FIN_BOX
+BOX
+wx:OutputText:Box15
+ISEXEC:FALSE
+-195.391154:49.025022:-900.000000
+-149.816154:39.025022:-900.000000
+PORT
+Title:"Dim"
+FIN_BOX
+BOX
+wx:OutputText:Box17
+ISEXEC:FALSE
+-192.717218:26.324535:-900.000000
+-147.142218:16.324535:-900.000000
+PORT
+Title:"DimSize"
+FIN_BOX
+BOX
+wx:OutputText:Box18
+ISEXEC:FALSE
+-173.185202:-32.678611:-900.000000
+-127.610202:-42.678611:-900.000000
+PORT
+Title:"FileName"
+FIN_BOX
+BOX
+wx:OutputText:Box19
+ISEXEC:FALSE
+-192.099213:-12.744129:-900.000000
+-146.524213:-22.744129:-900.000000
+PORT
+Title:"Format"
+FIN_BOX
+CONNECTIONS:23
+CONNECTION
+Box02:Out:Box01:In
+NumberOfControlPoints:0
+CONNECTION
+Box01:Widget:Box04:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box05:Widget:Box04:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box07:Out:Box02:FileName
+NumberOfControlPoints:0
+CONNECTION
+Box07:Out:Box08:FileName
+NumberOfControlPoints:0
+CONNECTION
+Box08:DimSize:Box09:In
+NumberOfControlPoints:0
+CONNECTION
+Box09:Out:Box10:In1
+NumberOfControlPoints:0
+CONNECTION
+Box10:Out:Box03:Max
+NumberOfControlPoints:0
+CONNECTION
+Box03:BoxChange:Box01:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box03:Widget:Box16:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box16:Widget:Box05:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box03:Out:Box02:Slice
+NumberOfControlPoints:0
+CONNECTION
+Box00:Out:Box07:In1
+NumberOfControlPoints:0
+CONNECTION
+Box08:ElementSpacing:Box14:In
+NumberOfControlPoints:0
+CONNECTION
+Box08:Dim:Box15:In
+NumberOfControlPoints:0
+CONNECTION
+Box08:DimSize:Box17:In
+NumberOfControlPoints:0
+CONNECTION
+Box00:Out:Box18:In
+NumberOfControlPoints:0
+CONNECTION
+Box08:ElementType:Box19:In
+NumberOfControlPoints:0
+CONNECTION
+Box15:Widget:Box16:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box17:Widget:Box16:Widget3
+NumberOfControlPoints:0
+CONNECTION
+Box14:Widget:Box16:Widget4
+NumberOfControlPoints:0
+CONNECTION
+Box19:Widget:Box16:Widget5
+NumberOfControlPoints:0
+CONNECTION
+Box18:Widget:Box16:Widget6
+NumberOfControlPoints:0
+APP_END
diff --git a/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbs b/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbs
new file mode 100644 (file)
index 0000000..5780777
--- /dev/null
@@ -0,0 +1,117 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/PlaneViewer-MHD.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include wx
+include creaMaracasVisu
+include creaVtk
+include std
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new wx:FileSelector Box00
+  set Box00.Message "mhd file"
+  set Box00.Title "mhd file"
+
+new creaMaracasVisu:ViewerNV Box01
+  set Box01.nTypeView "0"
+
+new creaVtk:ReadMHDPlane Box02
+
+new wx:Slider Box03
+  set Box03.Label "true"
+  set Box03.ReactiveOnTrack "true"
+  set Box03.Title "Slice Z"
+
+new wx:LayoutSplit Box04
+  set Box04.Orientation "H"
+
+new wx:LayoutTab Box05
+
+new std:ConcatStrings Box07
+
+new creaVtk:MHDFileInfo Box08
+
+new std:GetVectorIntElement Box09
+  set Box09.I "2"
+
+new std:MathOperation Box10
+  set Box10.In2 "-1"
+
+new wx:LayoutLine Box16
+  set Box16.WinTitle "Image XY (.mhd)"
+
+new wx:OutputText Box14
+  set Box14.Title "Spacing"
+
+new wx:OutputText Box15
+  set Box15.Title "Dim"
+
+new wx:OutputText Box17
+  set Box17.Title "DimSize"
+
+new wx:OutputText Box18
+  set Box18.Title "FileName"
+
+new wx:OutputText Box19
+  set Box19.Title "Format"
+
+
+connect Box02.Out Box01.In
+
+connect Box01.Widget Box04.Widget2
+
+connect Box05.Widget Box04.Widget1
+
+connect Box07.Out Box02.FileName
+
+connect Box07.Out Box08.FileName
+
+connect Box08.DimSize Box09.In
+
+connect Box09.Out Box10.In1
+
+connect Box10.Out Box03.Max
+
+connect Box03.BoxChange Box01.BoxExecute
+
+connect Box03.Widget Box16.Widget1
+
+connect Box16.Widget Box05.Widget1
+
+connect Box03.Out Box02.Slice
+
+connect Box00.Out Box07.In1
+
+connect Box08.ElementSpacing Box14.In
+
+connect Box08.Dim Box15.In
+
+connect Box08.DimSize Box17.In
+
+connect Box00.Out Box18.In
+
+connect Box08.ElementType Box19.In
+
+connect Box15.Widget Box16.Widget2
+
+connect Box17.Widget Box16.Widget3
+
+connect Box14.Widget Box16.Widget4
+
+connect Box19.Widget Box16.Widget5
+
+connect Box18.Widget Box16.Widget6
+
+
+
+# Complex input ports
+exec Box04
index 8215adf0f561787505f68829ccd9ad698e3523ec..8f5d6ae9cd92ef8cc59e541393d5581ec656a247 100644 (file)
@@ -13,10 +13,10 @@ PACKAGENAME:creaMiniTools
 COMPLEXOUTPUTS:1
 COMPLEX_PORT
 widget
-55.184284:-40.716064:-900.000000
+44.851582:-144.043083:-900.000000
 FIN_COMPLEX_PORT
 COMPLEXINPUTS:0
-BOXES:35
+BOXES:38
 BOX
 wx:CommandButton:Box00
 ISEXEC:FALSE
@@ -28,8 +28,8 @@ FIN_BOX
 BOX
 wx:CommandButton:Box02
 ISEXEC:FALSE
--132.123747:64.194843:-900.000000
--86.548747:54.194843:-900.000000
+-132.123747:65.420598:-900.000000
+-86.548747:55.420598:-900.000000
 PORT
 Label:"Viewer NV"
 FIN_BOX
@@ -42,8 +42,8 @@ FIN_BOX
 BOX
 std:ExecSystemCommand:Box06
 ISEXEC:FALSE
--137.203466:30.771484:-900.000000
--66.028466:20.771484:-900.000000
+-137.203466:31.180069:-900.000000
+-66.028466:21.180069:-900.000000
 FIN_BOX
 BOX
 std:ExecSystemCommand:Box09
@@ -90,34 +90,34 @@ FIN_BOX
 BOX
 wx:LayoutTab:Box15
 ISEXEC:TRUE
-52.706369:-16.176415:-900.000000
-110.266369:-26.176415:-900.000000
+45.636626:-121.678740:-900.000000
+103.196626:-131.678740:-900.000000
 PORT
 WinTitle:"Images Tools"
 FIN_BOX
 BOX
 wx:LayoutLine:Box18
 ISEXEC:FALSE
--17.477654:37.629512:-900.000000
-40.082346:27.629512:-900.000000
+-20.740612:-75.486382:-900.000000
+36.819388:-85.486382:-900.000000
 FIN_BOX
 BOX
 wx:LayoutLine:Box19
 ISEXEC:FALSE
-51.977910:36.626463:-900.000000
-109.537910:26.626463:-900.000000
+48.714952:-76.489431:-900.000000
+106.274952:-86.489431:-900.000000
 FIN_BOX
 BOX
 creaMiniToolsBase:RegistrationMenu:Box20
 ISEXEC:FALSE
-115.391322:37.604747:-900.000000
-160.966322:27.604747:-900.000000
+112.128364:-75.511147:-900.000000
+157.703364:-85.511147:-900.000000
 FIN_BOX
 BOX
 creaMiniToolsBase:RescaleSlopeInterceptMenu:Box21
 ISEXEC:FALSE
-167.491387:40.227526:-900.000000
-238.666387:30.227526:-900.000000
+164.228429:-72.888368:-900.000000
+235.403429:-82.888368:-900.000000
 FIN_BOX
 BOX
 wx:CommandButton:Box22
@@ -150,16 +150,16 @@ FIN_BOX
 BOX
 wx:LayoutCenter:Box27
 ISEXEC:FALSE
--15.621451:21.022887:-900.000000
-29.953549:11.022887:-900.000000
+-18.884409:-92.093007:-900.000000
+26.690591:-102.093007:-900.000000
 PORT
 WinTitle:"Viewers"
 FIN_BOX
 BOX
 wx:LayoutCenter:Box28
 ISEXEC:FALSE
-56.062026:16.329326:-900.000000
-101.637026:6.329326:-900.000000
+52.799068:-96.786568:-900.000000
+98.374068:-106.786568:-900.000000
 PORT
 WinTitle:"Modify image"
 FIN_BOX
@@ -210,8 +210,8 @@ FIN_BOX
 BOX
 std:StringSelect:Box35
 ISEXEC:FALSE
--118.763821:44.140977:-900.000000
--73.188821:34.140977:-900.000000
+-118.763821:45.366732:-900.000000
+-73.188821:35.366732:-900.000000
 PORT
 In0:"bbi creaMiniTools/appli/viewerNVExample.bbs &"
 PORT
@@ -287,7 +287,31 @@ In0:"bbi creaMiniTools/appli/flipImageY.bbs &"
 PORT
 In1:"start /b bbi creaMiniTools/appli/flipImageY.bbs &"
 FIN_BOX
-CONNECTIONS:43
+BOX
+wx:CommandButton:Box43
+ISEXEC:FALSE
+-131.327234:3.703630:-900.000000
+-85.752234:-6.296370:-900.000000
+PORT
+Label:"Viewer Plane MHD"
+FIN_BOX
+BOX
+std:ExecSystemCommand:Box44
+ISEXEC:FALSE
+-136.406953:-30.536898:-900.000000
+-65.231953:-40.536898:-900.000000
+FIN_BOX
+BOX
+std:StringSelect:Box45
+ISEXEC:FALSE
+-125.398564:-11.365852:-900.000000
+-79.823564:-21.365852:-900.000000
+PORT
+In0:"bbi creaMiniTools/appli/PlaneViewer-MHD.bbs &"
+PORT
+In1:"start /b bbi creaMiniTools/appli/PlaneViewer-MHD.bbs &"
+FIN_BOX
+CONNECTIONS:47
 CONNECTION
 Box00:BoxChange:Box04:BoxExecute
 NumberOfControlPoints:0
@@ -417,4 +441,16 @@ NumberOfControlPoints:0
 CONNECTION
 Box42:Out:Box30:In
 NumberOfControlPoints:0
+CONNECTION
+Box43:BoxChange:Box44:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box45:Out:Box44:In
+NumberOfControlPoints:0
+CONNECTION
+Box33:SystemType:Box45:In
+NumberOfControlPoints:0
+CONNECTION
+Box43:Widget:Box18:Widget4
+NumberOfControlPoints:0
 APP_END
index 63aa400aeacf76a37652afffbd5727567e12b9c2..a7e21b66781b1d12037e4dc2f6ad95ecd16323b4 100644 (file)
@@ -116,6 +116,15 @@ new std:StringSelect Box42
   set Box42.In0 "bbi creaMiniTools/appli/flipImageY.bbs &"
   set Box42.In1 "start /b bbi creaMiniTools/appli/flipImageY.bbs &"
 
+new wx:CommandButton Box43
+  set Box43.Label "Viewer Plane MHD"
+
+new std:ExecSystemCommand Box44
+
+new std:StringSelect Box45
+  set Box45.In0 "bbi creaMiniTools/appli/PlaneViewer-MHD.bbs &"
+  set Box45.In1 "start /b bbi creaMiniTools/appli/PlaneViewer-MHD.bbs &"
+
 
 connect Box00.BoxChange Box04.BoxExecute
 connect Box02.BoxChange Box06.BoxExecute
@@ -159,6 +168,10 @@ connect Box41.Out Box12.In
 connect Box39.Out Box26.In
 connect Box40.Out Box14.In
 connect Box42.Out Box30.In
+connect Box43.BoxChange Box44.BoxExecute
+connect Box45.Out Box44.In
+connect Box33.SystemType Box45.In
+connect Box43.Widget Box18.Widget4
 
 # Complex input ports