]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs
a8136208ac3a4595eaf6a6836c89c0d4421f5a03
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / boxes / crop-viewer-widget-manual.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-manual.bbs
4 # ----------------------------------
5
6 include std
7 include itkvtk
8 include wx
9 include vtk
10 include creaImageIO
11 include std
12 include creaMiniTools
13
14 define crop-viewer-widget-manual creaMiniTools
15
16 author "Author ??"
17 description "Description ??"
18
19 category "<VOID>"
20
21 new wx:DropFiles Box46
22
23 new vtk:MetaImageReader Box47
24
25 new wx:OutputText Box48
26   set Box48.In "Drop your *.MHD file here!"
27
28 new wx:OutputText Box49
29
30 new wx:LayoutLine Box52
31   set Box52.WinTitle "Image A"
32
33 new wx:LayoutSplit Box53
34   set Box53.Proportion "25"
35   set Box53.WinTitle "Image A"
36
37 new creaImageIO:ImagesChooserDialogBox Box58
38   set Box58.BoxProcessMode "Manual"
39   set Box58.Title "Load Image"
40
41 new wx:CommandButton Box59
42   set Box59.Label "Load Image"
43
44 new std:SharedMemory Box60
45
46 new std:SharedMemory Box61
47
48 new std:MultipleInputs Box62
49
50 new wx:LayoutLine Box64
51   set Box64.Orientation "H"
52
53 new vtk:vtkImageDataPointerRelay Box67
54   set Box67.BoxProcessMode "Always"
55
56 new vtk:vtkImageDataPointerRelay Box68
57   set Box68.BoxProcessMode "Always"
58
59 new creaMiniTools:crop-viewer-widget Box89
60   set Box89.title "Image B"
61
62 new std:MultipleInputs Box15
63
64
65 connect Box46.LstPaths Box47.In
66 connect Box49.Widget Box52.Widget2
67 connect Box52.Widget Box53.Widget1
68 connect Box46.BoxChange Box47.BoxExecute
69 connect Box59.BoxChange Box58.BoxExecute
70 connect Box46.LstPaths Box61.In
71 connect Box58.FileName Box61.In1
72 connect Box61.Out Box49.In
73 connect Box46.BoxChange Box62.In1
74 connect Box59.BoxChange Box62.In2
75 connect Box62.BoxChange Box49.BoxExecute
76 connect Box48.Widget Box64.Widget2
77 connect Box59.Widget Box64.Widget1
78 connect Box64.Widget Box52.Widget1
79 connect Box58.Out Box67.In
80 connect Box67.Out Box60.In1
81 connect Box47.Out Box68.In
82 connect Box68.Out Box60.In
83 connect Box89.widget Box53.Widget2
84 connect Box52.Widget Box46.Widget
85 connect Box58.Out Box89.image
86 connect Box15.BoxChange Box89.box_Execute
87 connect Box62.BoxChange Box15.In2
88
89 # Complex input ports
90 input _size Box89.size " "
91 input _renderer Box89.renderer " "
92 input _position Box89.position " "
93 input _title Box53.WinTitle " "
94 input _execute Box15.In1 " "
95
96 # Complex output ports
97 output wxwidget Box53.Widget " "
98
99 message    
100
101 endefine