# ---------------------------------- # - BBTKGEditor v 1.4 BBS BlackBox Script # - /tmpEED/creaTools2/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleStreamLineScalarSegmentation.bbs # ---------------------------------- # BBTK GEditor Script # ---------------------- include std include itkvtk include vtk include creaMaracasVisu include wx include creaImageIO include toolsbbtk include creaVtk author "Author ??" description "Description ??" category "" new vtk:PolyDataReader Box01 set Box01.In "/home/davila/Borrame/FIB/example01/V1_IM_fibers.vtk" new creaMaracasVisu:ViewerNV Box02 new vtk:LoadHola Box03 new wx:LayoutTab Box08 new wx:LayoutSplit Box09 set Box09.Orientation "H" new wx:FileSelector Box14 new creaImageIO:ImagesChooserDialogBox Box15 new vtk:UnMosaic Box16 set Box16.NbImagesInMosaic "10" set Box16.NbImagesPerRow "4" new creaMaracasVisu:ImageChangeInformation Box17 set Box17.NewSpacing "2.65626 2.65625 6.25" new toolsbbtk:SaveMHD-Button Box18 new vtk:vtkImageDataPointerRelay Box20 new vtk:MetaImageReader Box21 set Box21.In "/home/davila/Borrame/FIB/example01/V1_IM_b_0_dir_1.mhd" new creaVtk:StreamLine_Visu_Widget Box26 set Box26.Title "Segmented Stream Line" new creaVtk:StreamLine_Visu_Widget Box27 set Box27.Title "Complete Stream Line" new wx:LayoutLine Box29 set Box29.Orientation "V" new creaVtk:StreamLineColorInfo Box32 new creaVtk:StreamLineNumeration Box33 new creaVtk:StreamLineSegmentationByScalar Box34 set Box34.ScalarArrayName "creaNumeration" new wx:LayoutLine Box35 new creaMaracasVisu:SliderMinMax Box37 set Box37.InMax "1000" set Box37.InMin "0" set Box37.ShowActual "false" set Box37.WinTitle "Threshold" new vtk:UpdateRender Box38 set Box38.Active "true" connect Box02.Widget Box09.Widget2 connect Box15.Out Box16.In connect Box16.Out Box17.In connect Box20.Out Box02.In connect Box20.Out Box18.In connect Box21.Out Box20.In connect Box18.Widget Box08.Widget2 connect Box02.Renderer1 Box27.renderer connect Box02.Renderer1 Box26.renderer connect Box08.Widget Box09.Widget1 connect Box01.Out Box32.In connect Box32.Out Box27.polydata connect Box29.Widget Box08.Widget1 connect Box32.Out Box33.StreamLinesIn connect Box33.StreamLinesOut Box34.StreamLinesIn connect Box37.OutEnd Box34.ThresholdUpper connect Box37.OutStart Box34.ThresholdLower connect Box37.Widget Box29.Widget3 connect Box37.BoxChange Box34.BoxExecute connect Box27.Widget Box29.Widget1 connect Box26.Widget Box29.Widget2 connect Box34.StreamLinesOut Box26.polydata connect Box33.NameOfScalarArray Box34.ScalarArrayName connect Box37.BoxChange Box38.BoxExecute connect Box02.Renderer1 Box38.Renderer # Complex input ports exec Box09