]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs
6aabbb91cb42bcf6cc66a758da32a2823b8c138a
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / crop-viewer-widget.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
3 # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include vtk
9 include creaVtk
10 include creaMaracasVisu
11 include wx
12 include std
13 include wxvtk
14
15 define crop-viewer-widget creaMiniTools
16
17 author "Author ??"
18 description "Description ??"
19
20 category "<VOID>"
21
22 new vtk:ExtractVtkImageFilter Box22
23
24 new vtk:VolumeRenderer Box29
25
26 new creaVtk:Actor Box30
27   set Box30.Active "true"
28
29 new creaMaracasVisu:TransferFunctionView Box31
30
31 new wx:LayoutLine Box32
32
33 new vtk:UpdateRender Box33
34   set Box33.Active "true"
35
36 new std:MultipleInputs Box34
37
38 new wxvtk:IsoSurfaceWidget Box35
39
40 new std:MathOperationVector Box54
41   set Box54.In1 "-2 -2 -2"
42   set Box54.Type "3"
43
44 new std:MathOperationVector Box56
45   set Box56.In1 "-2 -2 -2"
46
47 new creaMaracasVisu:ImageChangeInformation Box69
48   set Box69.NewSpacing "1 1 1"
49
50 new wx:RadioButton Box83
51   set Box83.In0 "Open"
52   set Box83.In1 "Close"
53
54 new std:MathOperation Box84
55   set Box84.In2 "-1"
56
57 new vtk:CleanExternalPlane Box85
58
59 new std:MagicBox Box88
60
61 new std:MagicBox Box89
62
63
64 connect Box31.Active Box30.Active
65 connect Box31.OpacityFunction Box29.OpacityFunction
66 connect Box31.ColorFunction Box29.ColorFunction1
67 connect Box29.Out Box30.In
68 connect Box30.BoxChange Box33.BoxExecute
69 connect Box34.BoxChange Box31.BoxExecute
70 connect Box34.BoxChange Box29.BoxExecute
71 connect Box22.Out Box29.In
72 connect Box54.Out Box56.In1
73 connect Box56.Out Box22.Index
74 connect Box22.Out Box69.In
75 connect Box35.Widget Box32.Widget3
76 connect Box31.Widget Box32.Widget2
77 connect Box83.Widget Box32.Widget1
78 connect Box83.Out Box84.In1
79 connect Box69.Out Box85.In
80 connect Box85.Out Box31.In
81 connect Box84.Out Box85.Type
82 connect Box34.BoxChange Box22.BoxExecute
83 connect Box88.Out Box35.vtkRenderer
84 connect Box88.Out Box30.Renderer
85 connect Box88.Out Box33.Renderer
86 connect Box89.Out Box54.In0
87 connect Box89.Out Box22.Size
88 connect Box83.BoxChange Box34.In2
89 connect Box34.BoxChange Box85.BoxExecute
90 connect Box85.Out Box35.In
91 connect Box34.BoxChange Box35.BoxExecute
92
93 # Complex input ports
94 input renderer Box88.In " "
95 input box_Execute Box34.In1 " "
96 input image Box22.In " "
97 input position Box56.In0 " "
98 input size Box89.In " "
99 input title Box32.WinTitle " "
100
101 # Complex output ports
102 output widget Box32.Widget " "
103
104 message    
105
106 endefine