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
20 description "Description ??"
23 new RescaleSlopeIntercept Box03
26 new ImagePropertiesWidget Box06
28 new ImagePropertiesWidget Box07
30 new FileSelector Box10
42 set Box14.Title "Rescale"
45 set Box15.In "NewPixel = Rescale * Pixel + Slope"
48 set Box16.Orientation H
50 new CommandButton Box17
51 set Box17.Label "Run RescaleSlopeIntercept"
53 new SaveMHD-Button Box20
57 set Box25.In0 VTK_UNSIGNED_CHAR
58 set Box25.In1 VTK_SIGNED_CHAR
59 set Box25.In2 VTK_UNSIGNED_SHORT
60 set Box25.In3 VTK_SHORT
61 set Box25.In4 VTK_UNSIGNED_INT
62 set Box25.In5 VTK_SIGNED_INT
63 set Box25.In6 VTK_UNSIGNED_LONG
64 set Box25.In7 VTK_SIGNED_LONG
65 set Box25.In8 VTK_FLOAT
66 set Box25.In9 VTK_DOUBLE
67 set Box25.Title "Output Data Format"
69 new StringSelect Box26
70 set Box26.In0 "VTK_UNSIGNED_CHAR"
71 set Box26.In1 "VTK_SIGNED_CHAR"
72 set Box26.In2 "VTK_UNSIGNED_SHORT"
73 set Box26.In3 "VTK_SIGNED_SHORT"
74 set Box26.In4 "VTK_UNSIGNED_INT"
75 set Box26.In5 "VTK_SIGNED_INT"
76 set Box26.In6 "VTK_UNSIGNED_LONG"
77 set Box26.In7 "VTK_SIGNED_LONG"
78 set Box26.In8 "VTK_FLOAT"
79 set Box26.In9 "VTK_DOUBLE"
82 set Box27.Proportion 15
83 set Box27.WinHeight 300
84 set Box27.WinWidth 300
87 set Box33.Proportion 90
92 connect Box03.Out Box07.in
93 connect Box10.Out Box11.In
94 connect Box15.Widget Box12.Widget1
95 connect Box06.widget Box16.Widget1
96 connect Box03.Out Box20.In
97 connect Box26.Out Box03.OutputFormat
98 connect Box25.Out Box26.In
99 connect Box14.Out Box03.A
100 connect Box13.Out Box03.B
101 connect Box07.widget Box27.Widget2
102 connect Box20.Widget Box27.Widget1
103 connect Box14.Widget Box12.Widget2
104 connect Box13.Widget Box12.Widget3
105 connect Box11.Out Box03.In
106 connect Box17.BoxChange Box27.BoxExecute
107 connect Box11.Out Box06.in
108 connect Box17.Widget Box33.Widget2
109 connect Box16.Widget Box33.Widget1
110 connect Box25.Widget Box34.Widget2
111 connect Box12.Widget Box34.Widget1
112 connect Box34.Widget Box16.Widget2