--- /dev/null
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBG BlackBox Diagram file
+# - /Users/davila/Desktop/tmpBBTK-BBS/resampling.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:<VOID>
+DESCRIPTION:Description ??
+AUTHOR:Author ??
+COMPLEXBOX:FALSE
+BOXES:19
+BOX
+wx:FileSelector:Box00
+ISEXEC:FALSE
+54.310685:261.410861:900.000000
+99.885685:251.410861:900.000000
+FIN_BOX
+BOX
+itk:ImageReader:Box01
+ISEXEC:FALSE
+51.499512:168.330376:900.000000
+97.074512:158.330376:900.000000
+FIN_BOX
+BOX
+itk:ResampleImageFilter:Box02
+ISEXEC:FALSE
+48.438667:51.964140:900.000000
+119.613667:41.964140:900.000000
+PORT
+Spacing:"0.097 0.097 0.097"
+FIN_BOX
+BOX
+creaMaracasVisu:ViewerNV:Box03
+ISEXEC:FALSE
+-84.151832:7.305364:900.000000
+-23.511832:-2.694636:900.000000
+FIN_BOX
+BOX
+wx:CommandButton:Box04
+ISEXEC:FALSE
+-19.614074:7.990323:900.000000
+25.960926:-2.009677:900.000000
+PORT
+Label:"Write mhd image"
+FIN_BOX
+BOX
+wx:LayoutSplit:Box05
+ISEXEC:FALSE
+-63.331210:-39.465737:900.000000
+-17.756210:-49.465737:900.000000
+PORT
+Proportion:15
+FIN_BOX
+BOX
+itk:ImageWriter:Box06
+ISEXEC:FALSE
+42.476861:-23.785185:900.000000
+88.051861:-33.785185:900.000000
+FIN_BOX
+BOX
+wx:FileSelector:Box07
+ISEXEC:FALSE
+72.959203:13.706809:900.000000
+118.534203:3.706809:900.000000
+PORT
+OpenSave:Save
+FIN_BOX
+BOX
+creaMiniTools:ImagePropertiesWidget:Box08
+ISEXEC:FALSE
+-175.293145:87.193487:900.000000
+-104.118145:77.193487:900.000000
+FIN_BOX
+BOX
+wx:CommandButton:Box09
+ISEXEC:FALSE
+-168.600709:16.307727:900.000000
+-123.025709:6.307727:900.000000
+PORT
+Label:"Run resampling"
+FIN_BOX
+BOX
+wx:LayoutSplit:Box11
+ISEXEC:FALSE
+-203.739237:46.067077:900.000000
+-158.164237:36.067077:900.000000
+PORT
+Orientation:H
+FIN_BOX
+BOX
+wx:LayoutSplit:Box12
+ISEXEC:TRUE
+-201.720611:-71.745504:900.000000
+-156.145611:-81.745504:900.000000
+PORT
+Proportion:90
+FIN_BOX
+BOX
+wx:LayoutLine:Box13
+ISEXEC:FALSE
+-211.327306:110.359195:900.000000
+-153.767306:100.359195:900.000000
+PORT
+Orientation:V
+FIN_BOX
+BOX
+wx:InputText:Box14
+ISEXEC:FALSE
+-227.621466:188.946709:900.000000
+-182.046466:178.946709:900.000000
+PORT
+In:1
+PORT
+Title:"NewSpacing X"
+FIN_BOX
+BOX
+wx:InputText:Box16
+ISEXEC:FALSE
+-191.460723:208.008417:900.000000
+-145.885723:198.008417:900.000000
+PORT
+In:1
+PORT
+Title:"NewSpacing Y"
+FIN_BOX
+BOX
+wx:InputText:Box17
+ISEXEC:FALSE
+-151.459443:223.828497:900.000000
+-105.884443:213.828497:900.000000
+PORT
+In:1
+PORT
+Title:"NewSpacing Z"
+FIN_BOX
+BOX
+std:ConcatStrings:Box18
+ISEXEC:FALSE
+-17.252320:101.721730:900.000000
+28.322680:91.721730:900.000000
+PORT
+In2:" "
+PORT
+In4:" "
+FIN_BOX
+BOX
+wx:RadioButton:Box19
+ISEXEC:FALSE
+-114.361299:243.247209:900.000000
+-50.641299:233.247209:900.000000
+PORT
+In:0
+PORT
+In0:Linear
+PORT
+In1:BSpline
+PORT
+In2:NearestNeighbor
+PORT
+Title:Interpolation
+FIN_BOX
+BOX
+std:StringSelect:Box20
+ISEXEC:FALSE
+64.619298:114.784723:900.000000
+110.194298:104.784723:900.000000
+PORT
+In1:Linear
+PORT
+In2:BSpline
+PORT
+In3:NearestNeighbor
+FIN_BOX
+CONNECTIONS:24
+CONNECTION
+Box00:Out:Box01:In
+NumberOfControlPoints:0
+CONNECTION
+Box01:Out:Box02:In
+NumberOfControlPoints:0
+CONNECTION
+Box02:Out:Box03:In
+NumberOfControlPoints:0
+CONNECTION
+Box03:Widget:Box05:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box04:Widget:Box05:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box07:Out:Box06:Filename
+NumberOfControlPoints:0
+CONNECTION
+Box02:Out:Box06:In
+NumberOfControlPoints:0
+CONNECTION
+Box04:BoxChange:Box06:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box01:Out:Box08:in
+NumberOfControlPoints:0
+CONNECTION
+Box09:Widget:Box12:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box11:Widget:Box12:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box14:Widget:Box13:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box08:widget:Box11:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box13:Widget:Box11:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box16:Widget:Box13:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box17:Widget:Box13:Widget3
+NumberOfControlPoints:0
+CONNECTION
+Box14:Out:Box18:In1
+NumberOfControlPoints:0
+CONNECTION
+Box18:Out:Box02:Spacing
+NumberOfControlPoints:0
+CONNECTION
+Box19:Out:Box20:In
+NumberOfControlPoints:0
+CONNECTION
+Box19:Widget:Box13:Widget4
+NumberOfControlPoints:0
+CONNECTION
+Box20:Out:Box02:Interpolation
+NumberOfControlPoints:0
+CONNECTION
+Box09:BoxChange:Box05:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box16:Out:Box18:In3
+NumberOfControlPoints:0
+CONNECTION
+Box17:Out:Box18:In5
+NumberOfControlPoints:0
+APP_END
--- /dev/null
+# ----------------------------------
+# - BBTKGEditor v 1.2 BBS BlackBox Script
+# - /Users/davila/Desktop/tmpBBTK-BBS/resampling.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include wx
+include itk
+include creaMaracasVisu
+include creaMiniTools
+include std
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new FileSelector Box00
+
+new ImageReader Box01
+
+new ResampleImageFilter Box02
+ set Box02.Spacing "0.097 0.097 0.097"
+
+new ViewerNV Box03
+
+new CommandButton Box04
+ set Box04.Label "Write mhd image"
+
+new LayoutSplit Box05
+ set Box05.Proportion 15
+
+new ImageWriter Box06
+
+new FileSelector Box07
+ set Box07.OpenSave Save
+
+new ImagePropertiesWidget Box08
+
+new CommandButton Box09
+ set Box09.Label "Run resampling"
+
+new LayoutSplit Box11
+ set Box11.Orientation H
+
+new LayoutSplit Box12
+ set Box12.Proportion 90
+
+new LayoutLine Box13
+ set Box13.Orientation V
+
+new InputText Box14
+ set Box14.In 1
+ set Box14.Title "NewSpacing X"
+
+new InputText Box16
+ set Box16.In 1
+ set Box16.Title "NewSpacing Y"
+
+new InputText Box17
+ set Box17.In 1
+ set Box17.Title "NewSpacing Z"
+
+new ConcatStrings Box18
+ set Box18.In2 " "
+ set Box18.In4 " "
+
+new RadioButton Box19
+ set Box19.In 0
+ set Box19.In0 Linear
+ set Box19.In1 BSpline
+ set Box19.In2 NearestNeighbor
+ set Box19.Title Interpolation
+
+new StringSelect Box20
+ set Box20.In1 Linear
+ set Box20.In2 BSpline
+ set Box20.In3 NearestNeighbor
+
+
+connect Box00.Out Box01.In
+connect Box01.Out Box02.In
+connect Box02.Out Box03.In
+connect Box03.Widget Box05.Widget2
+connect Box04.Widget Box05.Widget1
+connect Box07.Out Box06.Filename
+connect Box02.Out Box06.In
+connect Box04.BoxChange Box06.BoxExecute
+connect Box01.Out Box08.in
+connect Box09.Widget Box12.Widget2
+connect Box11.Widget Box12.Widget1
+connect Box14.Widget Box13.Widget1
+connect Box08.widget Box11.Widget1
+connect Box13.Widget Box11.Widget2
+connect Box16.Widget Box13.Widget2
+connect Box17.Widget Box13.Widget3
+connect Box14.Out Box18.In1
+connect Box18.Out Box02.Spacing
+connect Box19.Out Box20.In
+connect Box19.Widget Box13.Widget4
+connect Box20.Out Box02.Interpolation
+connect Box09.BoxChange Box05.BoxExecute
+connect Box16.Out Box18.In3
+connect Box17.Out Box18.In5
+
+exec Box12
widget
47.930599:-26.635381:900.000000
FIN_COMPLEX_PORT
-BOXES:15
+BOXES:17
BOX
wx:CommandButton:Box00
ISEXEC:FALSE
--9.457722:184.872366:900.000000
-36.117278:174.872366:900.000000
+-89.534567:202.477913:900.000000
+-43.959567:192.477913:900.000000
PORT
Label:"Image Writer"
FIN_BOX
BOX
std:ExecSystemCommand:Box04
ISEXEC:FALSE
--101.608343:151.044628:900.000000
--30.433343:141.044628:900.000000
+-62.989723:185.119881:900.000000
+8.185277:175.119881:900.000000
PORT
In:"bbi creaMiniTools/appli/imageWriterExample.bbs &"
FIN_BOX
BOX
wx:CommandButton:Box11
ISEXEC:FALSE
-48.720073:185.294102:900.000000
-94.295073:175.294102:900.000000
+75.412355:197.220441:900.000000
+120.987355:187.220441:900.000000
PORT
Label:"Manual paint"
FIN_BOX
BOX
std:ExecSystemCommand:Box12
ISEXEC:FALSE
-59.059009:168.653886:900.000000
-130.234009:158.653886:900.000000
+103.356838:186.259433:900.000000
+174.531838:176.259433:900.000000
PORT
In:"bbi creaMiniTools/appli/manualPaint.bbs &"
FIN_BOX
BOX
wx:CommandButton:Box13
ISEXEC:FALSE
-88.422707:142.507338:900.000000
-133.997707:132.507338:900.000000
+173.042919:159.544965:900.000000
+218.617919:149.544965:900.000000
PORT
Label:"Show N-Points"
FIN_BOX
BOX
std:ExecSystemCommand:Box14
ISEXEC:FALSE
-99.012046:116.194904:900.000000
-170.187046:106.194904:900.000000
+169.434236:141.183423:900.000000
+240.609236:131.183423:900.000000
PORT
In:"bbi creaMiniTools/appli/showNPoints.bbs &"
FIN_BOX
BOX
wx:LayoutLine:Box19
ISEXEC:FALSE
-50.842068:40.033988:900.000000
-108.402068:30.033988:900.000000
+51.977910:36.626463:900.000000
+109.537910:26.626463:900.000000
PORT
WinTitle:"Modify image"
FIN_BOX
167.064700:40.654213:900.000000
238.239700:30.654213:900.000000
FIN_BOX
-CONNECTIONS:14
+BOX
+wx:CommandButton:Box22
+ISEXEC:FALSE
+-17.276148:166.092537:900.000000
+28.298852:156.092537:900.000000
+PORT
+Label:"Resampling Image"
+FIN_BOX
+BOX
+std:ExecSystemCommand:Box23
+ISEXEC:FALSE
+-1.962461:148.507165:900.000000
+69.212539:138.507165:900.000000
+PORT
+In:"bbi creaMiniTools/appli/resampling.bbs &"
+FIN_BOX
+CONNECTIONS:16
CONNECTION
Box00:BoxChange:Box04:BoxExecute
NumberOfControlPoints:0
CONNECTION
Box21:widget:Box15:Widget4
NumberOfControlPoints:0
+CONNECTION
+Box22:Widget:Box19:Widget3
+NumberOfControlPoints:0
+CONNECTION
+Box22:BoxChange:Box23:BoxExecute
+NumberOfControlPoints:0
APP_END
new RescaleSlopeInterceptMenu Box21
+new CommandButton Box22
+ set Box22.Label "Resampling Image"
+
+new ExecSystemCommand Box23
+ set Box23.In "bbi creaMiniTools/appli/resampling.bbs &"
+
connect Box00.BoxChange Box04.BoxExecute
connect Box02.BoxChange Box06.BoxExecute
connect Box19.Widget Box15.Widget2
connect Box20.widget Box15.Widget3
connect Box21.widget Box15.Widget4
+connect Box22.Widget Box19.Widget3
+connect Box22.BoxChange Box23.BoxExecute
exec Box15