]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget.bbs
ea159d69f4a4664ab4487f380811c6c59e6cf2ed
[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   set Box35.Colour "1 0 0"
40
41 new std:MathOperationVector Box54
42   set Box54.In1 "-2 -2 -2"
43   set Box54.Type "3"
44
45 new std:MathOperationVector Box56
46   set Box56.In1 "-2 -2 -2"
47
48 new creaMaracasVisu:ImageChangeInformation Box69
49   set Box69.NewSpacing "1 1 1"
50
51 new wx:RadioButton Box83
52   set Box83.In0 "Open"
53   set Box83.In1 "Close"
54
55 new std:MathOperation Box84
56   set Box84.In2 "-1"
57
58 new std:MagicBox Box88
59
60 new std:MagicBox Box89
61
62 new wx:OutputText Box20
63
64 new vtk:CleanExternalPlane Box23
65   set Box23.BoxProcessMode "Always"
66
67
68 connect Box31.Active Box30.Active
69 connect Box31.OpacityFunction Box29.OpacityFunction
70 connect Box31.ColorFunction Box29.ColorFunction1
71 connect Box29.Out Box30.In
72 connect Box30.BoxChange Box33.BoxExecute
73 connect Box34.BoxChange Box31.BoxExecute
74 connect Box34.BoxChange Box29.BoxExecute
75 connect Box22.Out Box29.In
76 connect Box54.Out Box56.In1
77 connect Box56.Out Box22.Index
78 connect Box35.Widget Box32.Widget3
79 connect Box31.Widget Box32.Widget2
80 connect Box83.Widget Box32.Widget1
81 connect Box83.Out Box84.In1
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 Box35.BoxExecute
90 connect Box34.BoxChange Box20.BoxExecute
91 connect Box84.Out Box20.In
92 connect Box20.Widget Box32.Widget4
93 connect Box84.Out Box23.Type
94 connect Box34.BoxChange Box23.BoxExecute
95 connect Box23.Out Box31.In
96 connect Box22.Out Box23.In
97 connect Box23.Out Box35.In
98
99 # Complex input ports
100 input renderer Box88.In " "
101 input box_Execute Box34.In1 " "
102 input position Box56.In0 " "
103 input size Box89.In " "
104 input title Box32.WinTitle " "
105 input image Box22.In " "
106
107 # Complex output ports
108 output widget Box32.Widget " "
109
110 message    
111
112 endefine