# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script # - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/viewerNVExample.bbs # ---------------------------------- # BBTK GEditor Script # ---------------------- include std include itkvtk include creaImageIO include creaMaracasVisu include toolsbbtk include wx include creaMiniTools include vtk include std include creaVtk include wxvtk author "Author ??" description "Description ??" category "" new creaImageIO:ImagesChooserDialogBox Box00 new creaMaracasVisu:ViewerNV Box01 set Box01.nTypeView "6 1 2 0" new toolsbbtk:ImageVtkPropertiesWidget Box04 new wx:LayoutTab Box05 set Box05.WinHide "800" set Box05.WinWidth "1000" new toolsbbtk:SaveMHD-Button Box06 new wx:LayoutLine Box07 set Box07.WinTitle "MPR Viewer" new creaMiniTools:LayerCol-VolRend-SurRend_Multi-Widget Box16 new wx:LayoutTab Box11 new wx:LayoutLine Box14 set Box14.Orientation "H" new wx:LayoutSplit Box15 set Box15.Proportion "5" set Box15.WinTitle "Crop" new wx:Slider Box19 set Box19.In "100" set Box19.Max "400" set Box19.ReactiveOnTrack "true" new wx:Slider Box20 set Box20.In "100" set Box20.Max "400" set Box20.ReactiveOnTrack "true" new wx:Slider Box21 set Box21.In "100" set Box21.Max "400" set Box21.ReactiveOnTrack "true" new vtk:ExtractVtkImageFilter Box22 new std:ConcatStrings Box23 set Box23.In2 " " set Box23.In4 " " new vtk:vtkImageDataPointerRelay Box24 new vtk:LoadHola Box26 new vtk:VolumeRenderer Box29 new creaVtk:Actor Box30 set Box30.Active "true" new creaMaracasVisu:TransferFunctionView Box31 new wx:LayoutLine Box32 set Box32.WinTitle "Base Image" new vtk:UpdateRender Box33 set Box33.Active "true" new std:MultipleInputs Box34 new wxvtk:IsoSurfaceWidget Box35 new wx:LayoutTab Box36 new vtk:ExtractVtkImageFilter Box38 new vtk:VolumeRenderer Box39 new creaVtk:Actor Box40 set Box40.Active "true" new creaMaracasVisu:TransferFunctionView Box41 new wx:LayoutLine Box42 new vtk:UpdateRender Box43 set Box43.Active "true" new std:MultipleInputs Box44 new wxvtk:IsoSurfaceWidget Box45 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 std:MultipleInputs Box50 new wx:LayoutLine Box52 set Box52.WinTitle "Image A" new wx:LayoutSplit Box53 set Box53.Proportion "25" set Box53.WinTitle "Image A" new std:MathOperationVector Box54 set Box54.In1 "-2 -2 -2" set Box54.Type "3" new std:MathOperationVector Box56 set Box56.In1 "-2 -2 -2" new wx:LayoutLine Box57 set Box57.WinTitle "Layer" 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 creaMaracasVisu:ImageChangeInformation Box69 set Box69.NewSpacing "1 1 1" new creaMaracasVisu:ImageChangeInformation Box70 set Box70.NewSpacing "1 1 1" new creaVtk:OutputWindow Box71 new wx:LayoutSplit Box72 set Box72.Orientation "H" new creaMaracasVisu:Measure3DLength_Widget Box74 new wx:LayoutLine Box75 set Box75.WinTitle "Tools" connect Box04.widget Box05.Widget2 connect Box06.Widget Box05.Widget3 connect Box01.Widget Box07.Widget1 connect Box07.Widget Box05.Widget1 connect Box01.Renderer1 Box16.renderer3D connect Box01.wxVtkBaseView2 Box16.wxvtkbaseview1 connect Box01.wxVtkBaseView3 Box16.wxvtkbaseview2 connect Box01.wxVtkBaseView4 Box16.wxvtkbaseview3 connect Box14.Widget Box15.Widget1 connect Box15.Widget Box11.Widget2 connect Box19.Widget Box14.Widget1 connect Box20.Widget Box14.Widget2 connect Box21.Widget Box14.Widget3 connect Box19.Out Box23.In1 connect Box20.Out Box23.In3 connect Box21.Out Box23.In5 connect Box23.Out Box22.Size connect Box24.Out Box01.In connect Box24.Out Box04.in connect Box24.Out Box06.In connect Box24.Out Box22.In connect Box01.Renderer1 Box30.Renderer connect Box31.Widget Box32.Widget1 connect Box31.Active Box30.Active connect Box31.OpacityFunction Box29.OpacityFunction connect Box31.ColorFunction Box29.ColorFunction1 connect Box29.Out Box30.In connect Box30.BoxChange Box33.BoxExecute connect Box01.Renderer1 Box33.Renderer connect Box01.BoxChange Box34.In1 connect Box34.BoxChange Box31.BoxExecute connect Box34.BoxChange Box29.BoxExecute connect Box22.Out Box29.In connect Box22.Out Box35.In connect Box01.Renderer1 Box35.vtkRenderer connect Box35.Widget Box32.Widget2 connect Box36.Widget Box15.Widget2 connect Box32.Widget Box36.Widget1 connect Box41.Active Box40.Active connect Box41.OpacityFunction Box39.OpacityFunction connect Box41.ColorFunction Box39.ColorFunction1 connect Box39.Out Box40.In connect Box40.BoxChange Box43.BoxExecute connect Box38.Out Box39.In connect Box38.Out Box45.In connect Box23.Out Box38.Size connect Box46.LstPaths Box47.In connect Box01.BoxChange Box44.In1 connect Box01.Renderer1 Box45.vtkRenderer connect Box01.Renderer1 Box40.Renderer connect Box19.BoxChange Box50.In1 connect Box20.BoxChange Box50.In2 connect Box21.BoxChange Box50.In3 connect Box50.Out Box44.In2 connect Box49.Widget Box52.Widget2 connect Box45.Widget Box42.Widget2 connect Box41.Widget Box42.Widget1 connect Box52.Widget Box53.Widget1 connect Box42.Widget Box53.Widget2 connect Box53.Widget Box36.Widget2 connect Box53.Widget Box46.Widget connect Box01.Renderer1 Box43.Renderer connect Box44.BoxChange Box39.BoxExecute connect Box44.BoxChange Box41.BoxExecute connect Box46.BoxChange Box47.BoxExecute connect Box23.Out Box54.In0 connect Box01.Point Box56.In0 connect Box54.Out Box56.In1 connect Box56.Out Box22.Index connect Box57.Widget Box11.Widget1 connect Box16.widget Box57.Widget1 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 Box58.BoxChange Box44.In3 connect Box56.Out Box38.Index connect Box48.Widget Box64.Widget2 connect Box59.Widget Box64.Widget1 connect Box64.Widget Box52.Widget1 connect Box44.BoxChange Box38.BoxExecute connect Box58.Out Box67.In connect Box67.Out Box60.In1 connect Box47.Out Box68.In connect Box58.Out Box38.In connect Box68.Out Box60.In connect Box22.Out Box69.In connect Box69.Out Box31.In connect Box38.Out Box70.In connect Box70.Out Box41.In connect Box00.Out Box24.In connect Box11.Widget Box72.Widget1 connect Box05.Widget Box72.Widget2 connect Box01.Point Box74.point connect Box24.Out Box74.vtkimagedata connect Box01.Renderer1 Box74.vtkrender connect Box74.widget Box75.Widget1 connect Box75.Widget Box11.Widget3 # Complex input ports exec Box71 exec Box72