]> Creatis software - bbtk.git/blob - packages/vtk/bbs/boxes/RescaleSlopeIntercept_Interface.bbs
#2959 BBTK Feature New Normal - new complex box RescaleSlopeIntercept_Interface.bbg
[bbtk.git] / packages / vtk / bbs / boxes / RescaleSlopeIntercept_Interface.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /tmpEED/creaTools/creatools_source/bbtk/packages/vtk/bbs/boxes/RescaleSlopeIntercept_Interface.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include vtk
10
11 define RescaleReslopeIntercept_Interface vtk
12
13 author "Author ??"
14 description "Description ??"
15
16 category "<VOID>"
17
18 new wx:InputText Box00
19   set Box00.In "1"
20   set Box00.Title "A"
21
22 new wx:InputText Box01
23   set Box01.In "0"
24   set Box01.Title "B"
25
26 new wx:LayoutLine Box06
27
28 new wx:ComboBox Box07
29   set Box07.In "SlopeIntercept(np=A*p+B) Invert Redimension(A=newMin;B=newMax)"
30   set Box07.Title "Type"
31
32 new wx:ComboBox Box08
33   set Box08.In "Same(default) VTK_BIT VTK_CHAR VTK_UNSIGNED_CHAR  VTK_INT VTK_UNSIGNED_INT VTK_SHORT VTK_UNSIGNED_SHORT VTK_LONG VTK_UNSIGNED_LONG VTK_FLOAT VTK_DOUBLE"
34   set Box08.Title "Format"
35
36 new wx:CommandButton Box09
37   set Box09.Label "Save (*.mhd)"
38
39 new vtk:RescaleSlopeIntercept Box10
40
41
42 connect Box00.Widget Box06.Widget1
43 connect Box01.Widget Box06.Widget2
44 connect Box07.Widget Box06.Widget3
45 connect Box09.Widget Box06.Widget5
46 connect Box08.Widget Box06.Widget4
47
48 # Complex input ports
49
50 # Complex output ports
51
52 message  0
53 exec Box06
54
55 endefine