]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbs
#3417 CreaMiniTools Feature New Normal - box ImageFillByPlane2_Viewer
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / ImageFillByPlane2_Viewer.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /home/davila/Creatis/C10/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ImageFillByPlane2_Viewer.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include creaVtk
9 include vtk
10 include PackRecalage
11 include creaMaracasVisu
12 include std
13 include creaMiniTools
14 include wx
15
16 define ImageFillByPlane2_Viewer creaMiniTools
17
18 author "Author ??"
19 description "Description ??"
20
21 category "<VOID>"
22
23 new creaVtk:MHDFileInfo Box00
24
25 new vtk:CreateImage Box01
26
27 new PackRecalage:AddImageToVector Box02
28
29 new vtk:CreateImage Box03
30   set Box03.Dimensions "250 250 250"
31
32 new vtk:GetVectorVtkImageDataElement Box04
33   set Box04.I "0"
34
35 new creaMaracasVisu:ViewerNV Box05
36   set Box05.nTypeView "6 1 2 0"
37
38 new std:ConcatStrings Box06
39
40 new creaMiniTools:ImageFillByPlane2 Box07
41   set Box07._typeReadMHDPlane "0"
42
43 new wx:Slider Box08
44   set Box08.In "1"
45   set Box08.Label "true"
46   set Box08.Max "15"
47   set Box08.Min "1"
48   set Box08.Title "Speed"
49
50 new wx:InputText Box09
51   set Box09.In "-100 1000"
52   set Box09.Title "Range ex: -100 1000   ex: 0 1"
53
54 new wx:LayoutLine Box10
55   set Box10.Orientation "H"
56
57 new std:GetVectorStringElement Box11
58   set Box11.I "0"
59
60 new std:GetVectorStringElement Box12
61   set Box12.I "1"
62
63 new wx:OutputText Box13
64
65 new wx:OutputText Box14
66
67 new wx:LayoutSplit Box15
68   set Box15.Proportion "90"
69
70
71 connect Box00.DimSize Box01.Dimensions
72 connect Box00.ElementSpacing Box01.Spacing
73 connect Box00.ElementType Box01.OutputFormat
74 connect Box01.Out Box02.In0
75 connect Box02.Out Box04.In
76 connect Box03.Out Box04.ErrorValue
77 connect Box04.Out Box05.In
78 connect Box06.Out Box00.FileName
79 connect Box08.Out Box07._widthSlice
80 connect Box05.BoxChange Box07._boxexecute
81 connect Box00.DimSize Box07._dimsize
82 connect Box06.Out Box07._fillename
83 connect Box04.Out Box07._image
84 connect Box05.Point Box07._point
85 connect Box09.Out Box11.In
86 connect Box09.Out Box12.In
87 connect Box11.Out Box05.ColorLevel
88 connect Box12.Out Box05.WindowLevel
89 connect Box09.Widget Box10.Widget5
90 connect Box08.Widget Box10.Widget3
91 connect Box13.Widget Box10.Widget1
92 connect Box14.Widget Box10.Widget9
93 connect Box05.Widget Box15.Widget1
94 connect Box10.Widget Box15.Widget2
95
96 # Complex input ports
97 input fileName Box06.In1 " "
98
99 # Complex output ports
100 output wxbaseviewer2 Box05.wxVtkBaseView2 " "
101 output wxbaseviewer3 Box05.wxVtkBaseView3 " "
102 output wxbaseviewer4 Box05.wxVtkBaseView4 " "
103 output widgetOut Box15.Widget " "
104 output withslice Box08.Out " "
105 output boxchange Box05.BoxChange " "
106 output point Box05.Point " "
107
108
109 endefine