1 # ----------------------------------
2 # - BBTKGEditor v 1.2 BBS BlackBox Script
3 # - /Users/davila/Creatis/All3/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
4 # ----------------------------------
7 # ----------------------
15 include creaMiniToolsBase
19 description "Description ??"
22 new RescaleSlopeIntercept Box03
25 new ImagePropertiesWidget Box06
27 new ImagePropertiesWidget Box07
29 new FileSelector Box10
41 set Box14.Title "Rescale"
44 set Box15.In "NewPixel = Rescale * Pixel + Slope"
47 set Box16.Orientation H
49 new CommandButton Box17
50 set Box17.Label "Run RescaleSlopeIntercept"
52 new SaveMHD-Button Box20
56 set Box25.In0 VTK_UNSIGNED_CHAR
57 set Box25.In1 VTK_SIGNED_CHAR
58 set Box25.In2 VTK_UNSIGNED_SHORT
59 set Box25.In3 VTK_SHORT
60 set Box25.In4 VTK_UNSIGNED_INT
61 set Box25.In5 VTK_SIGNED_INT
62 set Box25.In6 VTK_UNSIGNED_LONG
63 set Box25.In7 VTK_SIGNED_LONG
64 set Box25.In8 VTK_FLOAT
65 set Box25.In9 VTK_DOUBLE
66 set Box25.Title "Output Data Format"
68 new StringSelect Box26
69 set Box26.In0 "VTK_UNSIGNED_CHAR"
70 set Box26.In1 "VTK_SIGNED_CHAR"
71 set Box26.In2 "VTK_UNSIGNED_SHORT"
72 set Box26.In3 "VTK_SIGNED_SHORT"
73 set Box26.In4 "VTK_UNSIGNED_INT"
74 set Box26.In5 "VTK_SIGNED_INT"
75 set Box26.In6 "VTK_UNSIGNED_LONG"
76 set Box26.In7 "VTK_SIGNED_LONG"
77 set Box26.In8 "VTK_FLOAT"
78 set Box26.In9 "VTK_DOUBLE"
81 set Box27.Proportion 15
82 set Box27.WinHeight 300
83 set Box27.WinWidth 300
86 set Box33.Proportion 90
91 connect Box03.Out Box07.in
92 connect Box10.Out Box11.In
93 connect Box15.Widget Box12.Widget1
94 connect Box06.widget Box16.Widget1
95 connect Box03.Out Box20.In
96 connect Box26.Out Box03.OutputFormat
97 connect Box25.Out Box26.In
98 connect Box14.Out Box03.A
99 connect Box13.Out Box03.B
100 connect Box07.widget Box27.Widget2
101 connect Box20.Widget Box27.Widget1
102 connect Box14.Widget Box12.Widget2
103 connect Box13.Widget Box12.Widget3
104 connect Box11.Out Box03.In
105 connect Box17.BoxChange Box27.BoxExecute
106 connect Box11.Out Box06.in
107 connect Box17.Widget Box33.Widget2
108 connect Box16.Widget Box33.Widget1
109 connect Box25.Widget Box34.Widget2
110 connect Box12.Widget Box34.Widget1
111 connect Box34.Widget Box16.Widget2