]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/bbs/appli/exampleStreamLineScalarSegmentation.bbs
#2453 creaVtk Feature New Normal - Stream Lines segmentation by Scalars
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / exampleStreamLineScalarSegmentation.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /home/davila/Creatis/creaTools/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleStreamLineScalarSegmentation.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include creaMaracasVisu
13 include wx
14 include creaImageIO
15 include toolsbbtk
16 include creaVtk
17
18 author "Author ??"
19 description "Description ??"
20 category "<VOID>"
21
22 new PolyDataReader Box01
23   set Box01.In "/home/davila/Borrame/FIB/example01/V1_IM_fibers.vtk"
24
25 new ViewerNV Box02
26
27 new LoadHola Box03
28
29 new LayoutTab Box08
30
31 new LayoutSplit Box09
32   set Box09.Orientation "H"
33
34 new FileSelector Box14
35
36 new ImagesChooserDialogBox Box15
37
38 new UnMosaic Box16
39   set Box16.NbImagesInMosaic "10"
40   set Box16.NbImagesPerRow "4"
41
42 new ImageChangeInformation Box17
43   set Box17.NewSpacing "2.65626 2.65625 6.25"
44
45 new SaveMHD-Button Box18
46
47 new vtkImageDataPointerRelay Box20
48
49 new MetaImageReader Box21
50   set Box21.In "/home/davila/Borrame/FIB/example01/V1_IM_b_0_dir_1.mhd"
51
52 new StreamLine_Visu_Widget Box26
53   set Box26.Title "Segmented Stream Line"
54
55 new StreamLine_Visu_Widget Box27
56   set Box27.Title "Complete Stream Line"
57
58 new LayoutLine Box29
59   set Box29.Orientation "V"
60
61 new StreamLineColorInfo Box32
62
63 new StreamLineNumeration Box33
64
65 new StreamLineSegmentationByScalar Box34
66   set Box34.ScalarArrayName "creaNumeration"
67
68 new LayoutLine Box35
69
70 new SliderMinMax Box37
71   set Box37.InMax "1000"
72   set Box37.InMin "0"
73   set Box37.ShowActual "false"
74   set Box37.WinTitle "Threshold"
75
76 new UpdateRender Box38
77   set Box38.Active "true"
78
79
80 connect Box02.Widget Box09.Widget2
81
82 connect Box15.Out Box16.In
83
84 connect Box16.Out Box17.In
85
86 connect Box20.Out Box02.In
87
88 connect Box20.Out Box18.In
89
90 connect Box21.Out Box20.In
91
92 connect Box18.Widget Box08.Widget2
93
94 connect Box02.Renderer1 Box27.renderer
95
96 connect Box02.Renderer1 Box26.renderer
97
98 connect Box08.Widget Box09.Widget1
99
100 connect Box01.Out Box32.In
101
102 connect Box32.Out Box27.polydata
103
104 connect Box29.Widget Box08.Widget1
105
106 connect Box32.Out Box33.StreamLinesIn
107
108 connect Box33.StreamLinesOut Box34.StreamLinesIn
109
110 connect Box37.OutEnd Box34.ThresholdUpper
111
112 connect Box37.OutStart Box34.ThresholdLower
113
114 connect Box37.Widget Box29.Widget3
115
116 connect Box37.BoxChange Box34.BoxExecute
117
118 connect Box27.Widget Box29.Widget1
119
120 connect Box26.Widget Box29.Widget2
121
122 connect Box34.StreamLinesOut Box26.polydata
123
124 connect Box33.NameOfScalarArray Box34.ScalarArrayName
125
126 connect Box37.BoxChange Box38.BoxExecute
127
128 connect Box02.Renderer1 Box38.Renderer
129
130
131
132 # Complex input ports
133 message    
134 exec Box09