]> Creatis software - creaMiniTools.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 20 Jun 2011 12:12:15 +0000 (12:12 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 20 Jun 2011 12:12:15 +0000 (12:12 +0000)
bbtk_package_creaMiniTools/bbs/appli/crop.bbg [new file with mode: 0644]
bbtk_package_creaMiniTools/bbs/appli/crop.bbs [new file with mode: 0644]
bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbg
bbtk_package_creaMiniTools/bbs/boxes/ConnectivityWidget.bbs
bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbg
bbtk_package_creaMiniTools/bbs/boxes/imageToolsMenu.bbs

diff --git a/bbtk_package_creaMiniTools/bbs/appli/crop.bbg b/bbtk_package_creaMiniTools/bbs/appli/crop.bbg
new file mode 100644 (file)
index 0000000..9baf904
--- /dev/null
@@ -0,0 +1,250 @@
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/crop.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:<VOID>
+DESCRIPTION:Description ??
+AUTHOR:Author ??
+COMPLEXBOX:FALSE
+BOXES:20
+BOX
+creaMaracasVisu:ViewerNV:Box03
+ISEXEC:FALSE
+-40.613543:116.651836:900.000000
+20.026457:106.651836:900.000000
+PORT
+nTypeView:"6 1 2 -1"
+FIN_BOX
+BOX
+creaMaracasVisu:ContourVOI:Box05
+ISEXEC:FALSE
+186.421044:80.904266:900.000000
+231.996044:70.904266:900.000000
+FIN_BOX
+BOX
+wx:LayoutSplit:Box06
+ISEXEC:TRUE
+-4.809746:-105.979567:900.000000
+40.765254:-115.979567:900.000000
+PORT
+Proportion:15
+FIN_BOX
+BOX
+wx:LayoutLine:Box07
+ISEXEC:FALSE
+-50.516636:4.669299:900.000000
+7.043364:-5.330701:900.000000
+FIN_BOX
+BOX
+wx:CommandButton:Box08
+ISEXEC:FALSE
+56.646793:118.517618:900.000000
+102.221793:108.517618:900.000000
+PORT
+Label:"Run Crop"
+FIN_BOX
+BOX
+creaMaracasVisu:ViewerNV:Box09
+ISEXEC:FALSE
+57.212909:15.684777:900.000000
+117.852909:5.684777:900.000000
+FIN_BOX
+BOX
+creaMaracasVisu:ImageChangeInformation:Box10
+ISEXEC:FALSE
+61.427477:56.286188:900.000000
+132.602477:46.286188:900.000000
+FIN_BOX
+BOX
+wx:LayoutSplit:Box11
+ISEXEC:FALSE
+44.467721:-80.130264:900.000000
+90.042721:-90.130264:900.000000
+PORT
+Proportion:15
+FIN_BOX
+BOX
+creaImageIO:ImagesChooserDialogBox:Box13
+ISEXEC:FALSE
+170.254915:149.162389:900.000000
+241.429915:139.162389:900.000000
+FIN_BOX
+BOX
+wx:OutputText:Box14
+ISEXEC:FALSE
+122.392026:17.379263:900.000000
+167.967026:7.379263:900.000000
+PORT
+Title:"Index"
+FIN_BOX
+BOX
+wx:OutputText:Box15
+ISEXEC:FALSE
+163.755688:-20.499522:900.000000
+209.330688:-30.499522:900.000000
+PORT
+Title:"Size"
+FIN_BOX
+BOX
+wx:LayoutLine:Box16
+ISEXEC:FALSE
+106.808559:-36.790460:900.000000
+164.368559:-46.790460:900.000000
+FIN_BOX
+BOX
+wx:CommandButton:Box17
+ISEXEC:FALSE
+240.018066:67.477679:900.000000
+285.593066:57.477679:900.000000
+PORT
+Label:"Save Image (*.mhd)"
+FIN_BOX
+BOX
+vtk:MetaImageWriter:Box18
+ISEXEC:FALSE
+215.842741:-1.677819:900.000000
+261.417741:-11.677819:900.000000
+FIN_BOX
+BOX
+wx:FileSelector:Box19
+ISEXEC:FALSE
+259.008466:46.391113:900.000000
+304.583466:36.391113:900.000000
+PORT
+OpenSave:Save
+FIN_BOX
+BOX
+std:StringWriter:Box20
+ISEXEC:FALSE
+236.986603:-122.121968:900.000000
+282.561603:-132.121968:900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box21
+ISEXEC:FALSE
+278.405649:13.522422:900.000000
+323.980649:3.522422:900.000000
+PORT
+In1:"Index "
+FIN_BOX
+BOX
+std:ConcatStrings:Box22
+ISEXEC:FALSE
+276.523079:-52.045333:900.000000
+322.098079:-62.045333:900.000000
+PORT
+In2:"_infoCrop"
+FIN_BOX
+BOX
+std:ConcatStrings:Box23
+ISEXEC:FALSE
+281.957865:-13.977908:900.000000
+327.532865:-23.977908:900.000000
+PORT
+In1:"Size "
+FIN_BOX
+BOX
+std:ConcatStrings:Box24
+ISEXEC:FALSE
+287.137408:-80.913542:900.000000
+332.712408:-90.913542:900.000000
+PORT
+In1:"FileName "
+FIN_BOX
+CONNECTIONS:31
+CONNECTION
+Box03:Widget:Box06:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box05:Widget:Box07:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box08:Widget:Box07:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box07:Widget:Box06:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box08:BoxChange:Box05:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box05:VOI:Box10:In
+NumberOfControlPoints:0
+CONNECTION
+Box10:Out:Box09:In
+NumberOfControlPoints:0
+CONNECTION
+Box09:Widget:Box11:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box08:BoxChange:Box11:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box13:Out:Box05:In
+NumberOfControlPoints:0
+CONNECTION
+Box13:Out:Box03:In
+NumberOfControlPoints:0
+CONNECTION
+Box03:wxVtkBaseView4:Box05:wxVtkBaseView
+NumberOfControlPoints:0
+CONNECTION
+Box05:Index:Box14:In
+NumberOfControlPoints:0
+CONNECTION
+Box05:Size:Box15:In
+NumberOfControlPoints:0
+CONNECTION
+Box14:Widget:Box16:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box15:Widget:Box16:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box16:Widget:Box11:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box17:Widget:Box16:Widget3
+NumberOfControlPoints:0
+CONNECTION
+Box17:BoxChange:Box18:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box10:Out:Box18:In
+NumberOfControlPoints:0
+CONNECTION
+Box21:Out:Box20:In0
+NumberOfControlPoints:0
+CONNECTION
+Box22:Out:Box20:FileName
+NumberOfControlPoints:0
+CONNECTION
+Box17:BoxChange:Box20:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box17:BoxChange:Box19:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box05:Index:Box21:In2
+NumberOfControlPoints:0
+CONNECTION
+Box05:Size:Box23:In2
+NumberOfControlPoints:0
+CONNECTION
+Box23:Out:Box20:In1
+NumberOfControlPoints:0
+CONNECTION
+Box19:Out:Box22:In1
+NumberOfControlPoints:0
+CONNECTION
+Box22:Out:Box24:In2
+NumberOfControlPoints:0
+CONNECTION
+Box24:Out:Box20:In2
+NumberOfControlPoints:0
+CONNECTION
+Box19:Out:Box18:Filename
+NumberOfControlPoints:0
+APP_END
diff --git a/bbtk_package_creaMiniTools/bbs/appli/crop.bbs b/bbtk_package_creaMiniTools/bbs/appli/crop.bbs
new file mode 100644 (file)
index 0000000..65114bd
--- /dev/null
@@ -0,0 +1,106 @@
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBS BlackBox Script
+# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/crop.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include creaMaracasVisu
+include wx
+include creaImageIO
+include vtk
+include std
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new ViewerNV Box03
+  set Box03.nTypeView "6 1 2 -1"
+
+new ContourVOI Box05
+
+new LayoutSplit Box06
+  set Box06.Proportion 15
+
+new LayoutLine Box07
+
+new CommandButton Box08
+  set Box08.Label "Run Crop"
+
+new ViewerNV Box09
+
+new ImageChangeInformation Box10
+
+new LayoutSplit Box11
+  set Box11.Proportion 15
+
+new ImagesChooserDialogBox Box13
+
+new OutputText Box14
+  set Box14.Title "Index"
+
+new OutputText Box15
+  set Box15.Title "Size"
+
+new LayoutLine Box16
+
+new CommandButton Box17
+  set Box17.Label "Save Image (*.mhd)"
+
+new MetaImageWriter Box18
+
+new FileSelector Box19
+  set Box19.OpenSave Save
+
+new StringWriter Box20
+
+new ConcatStrings Box21
+  set Box21.In1 "Index "
+
+new ConcatStrings Box22
+  set Box22.In2 "_infoCrop"
+
+new ConcatStrings Box23
+  set Box23.In1 "Size "
+
+new ConcatStrings Box24
+  set Box24.In1 "FileName "
+
+
+connect Box03.Widget Box06.Widget2
+connect Box05.Widget Box07.Widget1
+connect Box08.Widget Box07.Widget2
+connect Box07.Widget Box06.Widget1
+connect Box08.BoxChange Box05.BoxExecute
+connect Box05.VOI Box10.In
+connect Box10.Out Box09.In
+connect Box09.Widget Box11.Widget2
+connect Box08.BoxChange Box11.BoxExecute
+connect Box13.Out Box05.In
+connect Box13.Out Box03.In
+connect Box03.wxVtkBaseView4 Box05.wxVtkBaseView
+connect Box05.Index Box14.In
+connect Box05.Size Box15.In
+connect Box14.Widget Box16.Widget1
+connect Box15.Widget Box16.Widget2
+connect Box16.Widget Box11.Widget1
+connect Box17.Widget Box16.Widget3
+connect Box17.BoxChange Box18.BoxExecute
+connect Box10.Out Box18.In
+connect Box21.Out Box20.In0
+connect Box22.Out Box20.FileName
+connect Box17.BoxChange Box20.BoxExecute
+connect Box17.BoxChange Box19.BoxExecute
+connect Box05.Index Box21.In2
+connect Box05.Size Box23.In2
+connect Box23.Out Box20.In1
+connect Box19.Out Box22.In1
+connect Box22.Out Box24.In2
+connect Box24.Out Box20.In2
+connect Box19.Out Box18.Filename
+
+exec Box06
index 98890c2fa586ba65de5c60754ec43113656047fb..09116d27817b3297762ccfb0c950b5a2aa0e1d0a 100644 (file)
@@ -34,72 +34,72 @@ FIN_COMPLEX_PORT
 COMPLEXOUTPUTS:3
 COMPLEX_PORT
 Widget
--0.021489:-165.964450:900.000000
+15.312375:-193.792573:900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 BoxChange
-139.419661:-165.517613:900.000000
+141.123424:-193.345736:900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 OutImage
-83.625384:-167.071281:900.000000
+84.193305:-194.899404:900.000000
 FIN_COMPLEX_PORT
 BOXES:24
 BOX
 wx:CommandButton:Box00
 ISEXEC:FALSE
-7.978926:-23.366700:900.000000
-53.553926:-33.366700:900.000000
+29.559920:12.412316:900.000000
+75.134920:2.412316:900.000000
 PORT
 Label:Run
 FIN_BOX
 BOX
 creaMaracasVisu:ViewerNV:Box03
 ISEXEC:FALSE
-17.131616:-82.785941:900.000000
-77.771616:-92.785941:900.000000
+21.107062:-88.465150:900.000000
+81.747062:-98.465150:900.000000
 PORT
 nTypeView:"0"
 FIN_BOX
 BOX
 wx:LayoutSplit:Box05
 ISEXEC:FALSE
-1.401575:-141.491708:900.000000
-46.976575:-151.491708:900.000000
+8.784547:-175.566961:900.000000
+54.359547:-185.566961:900.000000
 PORT
 WinTitle:Connectivity
 FIN_BOX
 BOX
 vtk:SegmentationConnectivity:Box07
 ISEXEC:FALSE
-78.026901:12.419190:900.000000
-149.201901:2.419190:900.000000
+91.657002:-60.842604:900.000000
+162.832002:-70.842604:900.000000
 FIN_BOX
 BOX
 toolsbbtk:SaveMHD-Button:Box10
 ISEXEC:FALSE
-109.891827:-8.975003:900.000000
-155.466827:-18.975003:900.000000
+116.706878:-91.891452:900.000000
+162.281878:-101.891452:900.000000
 FIN_BOX
 BOX
 wx:LayoutTab:Box11
 ISEXEC:FALSE
-37.729182:-126.218452:900.000000
-95.289182:-136.218452:900.000000
+47.383837:-154.614496:900.000000
+104.943837:-164.614496:900.000000
 FIN_BOX
 BOX
 wxvtk:IsoSurfaceWidget:Box14
 ISEXEC:FALSE
-137.687164:-58.123370:900.000000
-183.262164:-68.123370:900.000000
+114.402408:-130.249322:900.000000
+159.977408:-140.249322:900.000000
 PORT
 Title:"Iso Surface"
 FIN_BOX
 BOX
 wx:LayoutLine:Box15
 ISEXEC:FALSE
--28.005088:-98.402800:900.000000
-29.554912:-108.402800:900.000000
+-31.980534:-109.761218:900.000000
+25.579466:-119.761218:900.000000
 PORT
 Orientation:H
 PORT
@@ -114,8 +114,8 @@ FIN_BOX
 BOX
 creaMaracasVisu:SliderMinMax:Box18
 ISEXEC:FALSE
--116.360469:78.437024:900.000000
--61.880469:68.437024:900.000000
+-52.753330:69.918211:900.000000
+1.726670:59.918211:900.000000
 PORT
 InMax:2000
 PORT
@@ -124,16 +124,16 @@ FIN_BOX
 BOX
 std:ConcatStrings:Box19
 ISEXEC:FALSE
--12.577511:28.012704:900.000000
-32.997489:18.012704:900.000000
+99.870824:5.863789:900.000000
+145.445824:-4.136211:900.000000
 PORT
 In2:" "
 FIN_BOX
 BOX
 creaMaracasVisu:ShowNPoints:Box21
 ISEXEC:FALSE
--7.379394:58.574155:900.000000
-38.195606:48.574155:900.000000
+99.389732:61.981680:900.000000
+144.964732:51.981680:900.000000
 PORT
 Opacity:100
 PORT
@@ -229,7 +229,7 @@ ISEXEC:FALSE
 PORT
 In:"Min. Max gray level"
 FIN_BOX
-CONNECTIONS:46
+CONNECTIONS:47
 CONNECTION
 Box00:BoxChange:Box03:BoxExecute
 NumberOfControlPoints:0
@@ -368,4 +368,7 @@ NumberOfControlPoints:0
 CONNECTION
 Box37:Widget:Box30:Widget3
 NumberOfControlPoints:0
+CONNECTION
+Box00:BoxChange:Box18:BoxExecute
+NumberOfControlPoints:0
 APP_END
index 049669e7121f8448c23134f69f6b237d8fbc69e8..ac46bbf209b6dfa9eddb2c44466dbe3bdbdc324b 100644 (file)
@@ -8,7 +8,6 @@ include itkvtk
 include wx
 include creaMaracasVisu
 include vtk
-include creaMiniToolsBase
 include toolsbbtk
 include wxvtk
 include std
@@ -127,6 +126,7 @@ connect Box00.Widget Box30.Widget4
 connect Box18.Widget Box30.Widget2
 connect Box29.Widget Box30.Widget1
 connect Box37.Widget Box30.Widget3
+connect Box00.BoxChange Box18.BoxExecute
 
 
 # Complex input ports
index 1fd2e2a2ea806366072c55e82b270ffa536ef258..15c2345d904168d641dd4164235bc752aebd86c7 100644 (file)
@@ -16,7 +16,7 @@ COMPLEX_PORT
 widget
 47.930599:-26.635381:900.000000
 FIN_COMPLEX_PORT
-BOXES:17
+BOXES:19
 BOX
 wx:CommandButton:Box00
 ISEXEC:FALSE
@@ -68,16 +68,16 @@ FIN_BOX
 BOX
 wx:CommandButton:Box11
 ISEXEC:FALSE
-75.412355:197.220441:900.000000
-120.987355:187.220441:900.000000
+78.216276:201.626603:900.000000
+123.791276:191.626603:900.000000
 PORT
 Label:"Manual paint"
 FIN_BOX
 BOX
 std:ExecSystemCommand:Box12
 ISEXEC:FALSE
-103.356838:186.259433:900.000000
-174.531838:176.259433:900.000000
+93.743394:183.054952:900.000000
+164.918394:173.054952:900.000000
 PORT
 In:"bbi creaMiniTools/appli/manualPaint.bbs &"
 FIN_BOX
@@ -144,12 +144,28 @@ FIN_BOX
 BOX
 std:ExecSystemCommand:Box23
 ISEXEC:FALSE
--1.962461:148.507165:900.000000
-69.212539:138.507165:900.000000
+1.642581:151.711646:900.000000
+72.817581:141.711646:900.000000
 PORT
 In:"bbi creaMiniTools/appli/resampling.bbs &"
 FIN_BOX
-CONNECTIONS:16
+BOX
+wx:CommandButton:Box25
+ISEXEC:FALSE
+87.433405:165.277161:900.000000
+133.008405:155.277161:900.000000
+PORT
+Label:"Crop image"
+FIN_BOX
+BOX
+std:ExecSystemCommand:Box26
+ISEXEC:FALSE
+95.444609:146.851392:900.000000
+166.619609:136.851392:900.000000
+PORT
+In:"bbi creaMiniTools/appli/crop.bbs &"
+FIN_BOX
+CONNECTIONS:18
 CONNECTION
 Box00:BoxChange:Box04:BoxExecute
 NumberOfControlPoints:0
@@ -198,4 +214,10 @@ NumberOfControlPoints:0
 CONNECTION
 Box22:BoxChange:Box23:BoxExecute
 NumberOfControlPoints:0
+CONNECTION
+Box25:Widget:Box19:Widget4
+NumberOfControlPoints:0
+CONNECTION
+Box25:BoxChange:Box26:BoxExecute
+NumberOfControlPoints:0
 APP_END
index e71deb4854da38cb2b922c208cbf83026fdcb644..cc5c38ab12df499b1b9d1caa2cf25c1839095793 100644 (file)
@@ -65,6 +65,12 @@ new CommandButton Box22
 new ExecSystemCommand Box23
   set Box23.In "bbi creaMiniTools/appli/resampling.bbs &"
 
+new CommandButton Box25
+  set Box25.Label "Crop image"
+
+new ExecSystemCommand Box26
+  set Box26.In "bbi creaMiniTools/appli/crop.bbs &"
+
 
 connect Box00.BoxChange Box04.BoxExecute
 connect Box02.BoxChange Box06.BoxExecute
@@ -81,6 +87,8 @@ connect Box20.widget Box15.Widget3
 connect Box21.widget Box15.Widget4
 connect Box22.Widget Box19.Widget3
 connect Box22.BoxChange Box23.BoxExecute
+connect Box25.Widget Box19.Widget4
+connect Box25.BoxChange Box26.BoxExecute
 
 exec Box15