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 # ----------------------------------
14 define crop-viewer-widget-manual creaMiniTools
17 description "Description ??"
21 new wx:DropFiles Box46
23 new vtk:MetaImageReader Box47
25 new wx:OutputText Box48
26 set Box48.In "Drop your *.MHD file here!"
28 new wx:OutputText Box49
30 new wx:LayoutLine Box52
31 set Box52.WinTitle "Image A"
33 new wx:LayoutSplit Box53
34 set Box53.Proportion "25"
35 set Box53.WinTitle "Image A"
37 new creaImageIO:ImagesChooserDialogBox Box58
38 set Box58.BoxProcessMode "Manual"
39 set Box58.Title "Load Image"
41 new wx:CommandButton Box59
42 set Box59.Label "Load Image"
44 new std:SharedMemory Box60
46 new std:SharedMemory Box61
48 new std:MultipleInputs Box62
50 new wx:LayoutLine Box64
51 set Box64.Orientation "H"
53 new vtk:vtkImageDataPointerRelay Box67
54 set Box67.BoxProcessMode "Always"
56 new vtk:vtkImageDataPointerRelay Box68
57 set Box68.BoxProcessMode "Always"
59 new creaMiniTools:crop-viewer-widget Box89
60 set Box89.title "Image B"
62 new std:MultipleInputs Box15
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
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 " "
96 # Complex output ports
97 output wxwidget Box53.Widget " "