1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaTools2/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleStreamLineScalarSegmentation.bbs
4 # ----------------------------------
7 # ----------------------
12 include creaMaracasVisu
19 description "Description ??"
22 new vtk:PolyDataReader Box01
23 set Box01.In "/home/davila/Borrame/FIB/example01/V1_IM_fibers.vtk"
25 new creaMaracasVisu:ViewerNV Box02
27 new vtk:LoadHola Box03
29 new wx:LayoutTab Box08
31 new wx:LayoutSplit Box09
32 set Box09.Orientation "H"
34 new wx:FileSelector Box14
36 new creaImageIO:ImagesChooserDialogBox Box15
38 new vtk:UnMosaic Box16
39 set Box16.NbImagesInMosaic "10"
40 set Box16.NbImagesPerRow "4"
42 new creaMaracasVisu:ImageChangeInformation Box17
43 set Box17.NewSpacing "2.65626 2.65625 6.25"
45 new toolsbbtk:SaveMHD-Button Box18
47 new vtk:vtkImageDataPointerRelay Box20
49 new vtk:MetaImageReader Box21
50 set Box21.In "/home/davila/Borrame/FIB/example01/V1_IM_b_0_dir_1.mhd"
52 new creaVtk:StreamLine_Visu_Widget Box26
53 set Box26.Title "Segmented Stream Line"
55 new creaVtk:StreamLine_Visu_Widget Box27
56 set Box27.Title "Complete Stream Line"
58 new wx:LayoutLine Box29
59 set Box29.Orientation "V"
61 new creaVtk:StreamLineColorInfo Box32
63 new creaVtk:StreamLineNumeration Box33
65 new creaVtk:StreamLineSegmentationByScalar Box34
66 set Box34.ScalarArrayName "creaNumeration"
68 new wx:LayoutLine Box35
70 new creaMaracasVisu:SliderMinMax Box37
71 set Box37.InMax "1000"
73 set Box37.ShowActual "false"
74 set Box37.WinTitle "Threshold"
76 new vtk:UpdateRender Box38
77 set Box38.Active "true"
80 connect Box02.Widget Box09.Widget2
82 connect Box15.Out Box16.In
84 connect Box16.Out Box17.In
86 connect Box20.Out Box02.In
88 connect Box20.Out Box18.In
90 connect Box21.Out Box20.In
92 connect Box18.Widget Box08.Widget2
94 connect Box02.Renderer1 Box27.renderer
96 connect Box02.Renderer1 Box26.renderer
98 connect Box08.Widget Box09.Widget1
100 connect Box01.Out Box32.In
102 connect Box32.Out Box27.polydata
104 connect Box29.Widget Box08.Widget1
106 connect Box32.Out Box33.StreamLinesIn
108 connect Box33.StreamLinesOut Box34.StreamLinesIn
110 connect Box37.OutEnd Box34.ThresholdUpper
112 connect Box37.OutStart Box34.ThresholdLower
114 connect Box37.Widget Box29.Widget3
116 connect Box37.BoxChange Box34.BoxExecute
118 connect Box27.Widget Box29.Widget1
120 connect Box26.Widget Box29.Widget2
122 connect Box34.StreamLinesOut Box26.polydata
124 connect Box33.NameOfScalarArray Box34.ScalarArrayName
126 connect Box37.BoxChange Box38.BoxExecute
128 connect Box02.Renderer1 Box38.Renderer
132 # Complex input ports