X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk_package_creaMiniTools%2Fbbs%2Fappli%2FrescaleSlopeIntercept0.bbs;h=dc7928c748d0fdb9ac6f62626b2a1a641ebab3d9;hb=e559d02c6375b5ac6652a1f49aa7ff52f4a33edc;hp=af202007c1cd5320d552a97d9dbdd95f298e191d;hpb=7c77d654ccb96dea5cb7ba70b16ded753b68e4a8;p=creaMiniTools.git diff --git a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs index af20200..dc7928c 100755 --- a/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs +++ b/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs @@ -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 @@ -8,49 +8,106 @@ 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 "" -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