]> Creatis software - creaMiniTools.git/blobdiff - bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
no message
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / rescaleSlopeIntercept0.bbs
index af202007c1cd5320d552a97d9dbdd95f298e191d..dc7928c748d0fdb9ac6f62626b2a1a641ebab3d9 100755 (executable)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.2 BBS BlackBox Script
-# - /home/pechan/Documents/courses/development/creatis/dev/src/creaMiniTools/examples/bbg/rescaleSlopeIntercept/rescaleSlopeIntercept0.bbs
+# - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
 # ----------------------------------
 
 # BBTK GEditor Script
 
 include std
 include itkvtk
-include creaImageIO
-include creaMaracasVisu
 include vtk
-include wx
 include creaMiniTools
+include wx
+include itk
+include creaMiniToolsBase
+include std
 
 author "Author ??"
 description "Description ??"
 category "<VOID>"
 
-new ImagesChooserDialogBox Box00
+new RescaleSlopeIntercept Box03
+  set Box03.Type 0
+
+new ImagePropertiesWidget Box06
 
-new ViewerNV Box01
-  set Box01.WinTitle "View"
+new ImagePropertiesWidget Box07
 
-new ViewerNV Box02
+new FileSelector Box10
 
-new RescaleSlopeIntercept Box03
-  set Box03.Type 0
+new ImageReader Box11
+
+new LayoutLine Box12
+
+new InputText Box13
+  set Box13.In 0
+  set Box13.Title Slope
+
+new InputText Box14
+  set Box14.In 1
+  set Box14.Title "Rescale"
+
+new OutputText Box15
+  set Box15.In "NewPixel = Rescale * Pixel + Slope"
+
+new LayoutLine Box16
+  set Box16.Orientation H
+
+new CommandButton Box17
+  set Box17.Label "Run RescaleSlopeIntercept"
+
+new SaveMHD-Button Box20
 
-new LayoutTab Box04
-  set Box04.WinTitle "View"
+new RadioButton Box25
+  set Box25.In 2
+  set Box25.In0 VTK_UNSIGNED_CHAR
+  set Box25.In1 VTK_SIGNED_CHAR
+  set Box25.In2 VTK_UNSIGNED_SHORT
+  set Box25.In3 VTK_SHORT
+  set Box25.In4 VTK_UNSIGNED_INT
+  set Box25.In5 VTK_SIGNED_INT
+  set Box25.In6 VTK_UNSIGNED_LONG
+  set Box25.In7 VTK_SIGNED_LONG
+  set Box25.In8 VTK_FLOAT
+  set Box25.In9 VTK_DOUBLE
+  set Box25.Title "Output Data Format"
 
-new LayoutTab Box05
+new StringSelect Box26
+  set Box26.In0 "VTK_UNSIGNED_CHAR"
+  set Box26.In1 "VTK_SIGNED_CHAR"
+  set Box26.In2 "VTK_UNSIGNED_SHORT"
+  set Box26.In3 "VTK_SIGNED_SHORT"
+  set Box26.In4 "VTK_UNSIGNED_INT"
+  set Box26.In5 "VTK_SIGNED_INT"
+  set Box26.In6 "VTK_UNSIGNED_LONG"
+  set Box26.In7 "VTK_SIGNED_LONG"
+  set Box26.In8 "VTK_FLOAT"
+  set Box26.In9 "VTK_DOUBLE"
 
-new ImagePropertiesComplexBox Box06
+new LayoutSplit Box27
+  set Box27.Proportion 15
+  set Box27.WinHeight 300
+  set Box27.WinWidth 300
 
-new ImagePropertiesComplexBox Box07
+new LayoutSplit Box33
+  set Box33.Proportion 90
 
-new LayoutSplit Box08
-  set Box08.WinTitle "RescaleSlopeIntercept 1"
+new LayoutSplit Box34
 
 
-connect Box00.Out Box01.In
-connect Box00.Out Box03.In
-connect Box03.Out Box02.In
-connect Box01.Widget Box04.Widget1
-connect Box02.Widget Box05.Widget1
-connect Box00.Out Box06.in
-connect Box06.widget Box04.Widget2
 connect Box03.Out Box07.in
-connect Box07.widget Box05.Widget2
-connect Box04.Widget Box08.Widget1
-connect Box05.Widget Box08.Widget2
+connect Box10.Out Box11.In
+connect Box15.Widget Box12.Widget1
+connect Box06.widget Box16.Widget1
+connect Box03.Out Box20.In
+connect Box26.Out Box03.OutputFormat
+connect Box25.Out Box26.In
+connect Box14.Out Box03.A
+connect Box13.Out Box03.B
+connect Box07.widget Box27.Widget2
+connect Box20.Widget Box27.Widget1
+connect Box14.Widget Box12.Widget2
+connect Box13.Widget Box12.Widget3
+connect Box11.Out Box03.In
+connect Box17.BoxChange Box27.BoxExecute
+connect Box11.Out Box06.in
+connect Box17.Widget Box33.Widget2
+connect Box16.Widget Box33.Widget1
+connect Box25.Widget Box34.Widget2
+connect Box12.Widget Box34.Widget1
+connect Box34.Widget Box16.Widget2
 
-exec Box08
+exec Box33