# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) # - /home/davila/Creatis/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/ThresholdWidget.bbs # ---------------------------------- include std include itkvtk include wx include itk include creaMaracasVisu include toolsbbtk include wxvtk include vtk include std define ThresholdWidget creaMiniTools author "info-team at creatis.insa-lyon.fr" description "Threshod binary widget" category "filter widget" new CommandButton Box00 set Box00.Label Run new LayoutLine Box01 set Box01.WinTitle "Parameters" new BinaryThresholdImageFilter Box02 set Box02.InsideValue 255 set Box02.LowerThreshold 1500 set Box02.OutsideValue 0 set Box02.UpperThreshold 10000 new ViewerNV Box03 set Box03.nTypeView "0" new LayoutSplit Box05 set Box05.WinTitle Threshold new SliderMinMax Box07 set Box07.InMax 5000 set Box07.InMaxShow 2000 set Box07.InMin 0 set Box07.InMinShow 1000 new LayoutTab Box09 new SaveMHD-Button Box10 new OutputText Box11 set Box11.In "Min. Max. Gray level" " new IsoSurfaceWidget Box12 set Box12.Title "Iso Surface" new vtkImageDataPointerRelay Box13 new ImageVtkProperties Box14 new GetVectorFloatElement Box15 set Box15.I 0 new GetVectorFloatElement Box16 set Box16.I 1 connect Box00.Widget Box01.Widget5 connect Box00.BoxChange Box03.BoxExecute connect Box02.Out Box03.In connect Box03.Widget Box05.Widget2 connect Box01.Widget Box09.Widget1 connect Box09.Widget Box05.Widget1 connect Box02.Out Box10.In connect Box11.Widget Box01.Widget1 connect Box07.Widget Box01.Widget2 connect Box00.BoxChange Box12.BoxExecute connect Box12.Widget Box09.Widget2 connect Box10.Widget Box09.Widget3 connect Box13.Out Box02.In connect Box13.Out Box14.In connect Box14.MinMax Box15.In connect Box14.MinMax Box16.In connect Box16.Out Box07.InMax connect Box15.Out Box07.InMin connect Box07.OutEnd Box02.UpperThreshold connect Box07.OutStart Box02.LowerThreshold connect Box00.BoxChange Box07.BoxExecute connect Box02.Out Box12.In # Complex input ports input vtkRenderer Box12.vtkRenderer " " input In Box13.In " " # Complex output ports output BoxChange Box12.BoxChange " " output OutImage Box02.Out " " output Widget Box05.Widget " " endefine