]> 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
10 define RescaleReslopeIntercept_Interface vtk
11
12 author "Author ??"
13 description "Description ??"
14
15 category "<VOID>"
16
17 new wx:InputText Box00
18   set Box00.In "1"
19   set Box00.Title "A"
20
21 new wx:InputText Box01
22   set Box01.In "0"
23   set Box01.Title "B"
24
25 new wx:LayoutLine Box06
26
27 new wx:ComboBox Box07
28   set Box07.In "SlopeIntercept(np=A*p+B) Invert Redimension(A=newMin_B=newMax)  InvertRedimension(A=newMin_B=newMax)"
29   set Box07.Title "Type"
30
31 new wx:ComboBox Box08
32   set Box08.In "SAME 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"
33   set Box08.Title "Format"
34
35
36 connect Box00.Widget Box06.Widget1
37 connect Box01.Widget Box06.Widget2
38 connect Box07.Widget Box06.Widget3
39 connect Box08.Widget Box06.Widget4
40
41 # Complex input ports
42
43 # Complex output ports
44 output A Box00.Out " "
45 output B Box01.Out " "
46 output widget Box06.Widget " "
47 output Format Box08.OutString " "
48 output Type Box07.Out " "
49
50 message    
51 exec Box06
52
53 endefine