# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/crop-viewer-widget-manual.bbs # ---------------------------------- include std include itkvtk include wx include vtk include creaImageIO include std include creaMiniTools define crop-viewer-widget-manual creaMiniTools author "Author ??" description "Description ??" category "" new wx:DropFiles Box46 new vtk:MetaImageReader Box47 new wx:OutputText Box48 set Box48.In "Drop your *.MHD file here!" new wx:OutputText Box49 new wx:LayoutLine Box52 set Box52.WinTitle "Image A" new wx:LayoutSplit Box53 set Box53.Proportion "25" set Box53.WinTitle "Image A" new creaImageIO:ImagesChooserDialogBox Box58 set Box58.BoxProcessMode "Manual" set Box58.Title "Load Image" new wx:CommandButton Box59 set Box59.Label "Load Image" new std:SharedMemory Box60 new std:SharedMemory Box61 new std:MultipleInputs Box62 new wx:LayoutLine Box64 set Box64.Orientation "H" new vtk:vtkImageDataPointerRelay Box67 set Box67.BoxProcessMode "Always" new vtk:vtkImageDataPointerRelay Box68 set Box68.BoxProcessMode "Always" new creaMiniTools:crop-viewer-widget Box89 set Box89.title "Image B" new std:MultipleInputs Box15 connect Box46.LstPaths Box47.In connect Box49.Widget Box52.Widget2 connect Box52.Widget Box53.Widget1 connect Box46.BoxChange Box47.BoxExecute connect Box59.BoxChange Box58.BoxExecute connect Box46.LstPaths Box61.In connect Box58.FileName Box61.In1 connect Box61.Out Box49.In connect Box46.BoxChange Box62.In1 connect Box59.BoxChange Box62.In2 connect Box62.BoxChange Box49.BoxExecute connect Box48.Widget Box64.Widget2 connect Box59.Widget Box64.Widget1 connect Box64.Widget Box52.Widget1 connect Box58.Out Box67.In connect Box67.Out Box60.In1 connect Box47.Out Box68.In connect Box68.Out Box60.In connect Box89.widget Box53.Widget2 connect Box52.Widget Box46.Widget connect Box58.Out Box89.image connect Box15.BoxChange Box89.box_Execute connect Box62.BoxChange Box15.In2 # Complex input ports input _size Box89.size " " input _renderer Box89.renderer " " input _position Box89.position " " input _title Box53.WinTitle " " input _execute Box15.In1 " " # Complex output ports output wxwidget Box53.Widget " " endefine