]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/rescaleSlopeIntercept0.bbs
move creaMiniToolsBase:SaveMHD-Button to toolsbbtk:SaveMHD-Button
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / rescaleSlopeIntercept0.bbs
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 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include creaMiniTools
13 include wx
14 include itk
15 include creaMiniToolsBase
16 include toolsbbtk
17 include std
18
19 author "Author ??"
20 description "Description ??"
21 category "<VOID>"
22
23 new RescaleSlopeIntercept Box03
24   set Box03.Type 0
25
26 new ImagePropertiesWidget Box06
27
28 new ImagePropertiesWidget Box07
29
30 new FileSelector Box10
31
32 new ImageReader Box11
33
34 new LayoutLine Box12
35
36 new InputText Box13
37   set Box13.In 0
38   set Box13.Title Slope
39
40 new InputText Box14
41   set Box14.In 1
42   set Box14.Title "Rescale"
43
44 new OutputText Box15
45   set Box15.In "NewPixel = Rescale * Pixel + Slope"
46
47 new LayoutLine Box16
48   set Box16.Orientation H
49
50 new CommandButton Box17
51   set Box17.Label "Run RescaleSlopeIntercept"
52
53 new SaveMHD-Button Box20
54
55 new RadioButton Box25
56   set Box25.In 2
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"
68
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"
80
81 new LayoutSplit Box27
82   set Box27.Proportion 15
83   set Box27.WinHeight 300
84   set Box27.WinWidth 300
85
86 new LayoutSplit Box33
87   set Box33.Proportion 90
88
89 new LayoutSplit Box34
90
91
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
113
114 exec Box33