]> Creatis software - creaMiniTools.git/blob - bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.bbs
exampleSlicesImages3D
[creaMiniTools.git] / bbtk_package_creaMiniTools / bbs / appli / exampleSlicesImages3D.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /home/davila/Creatis/C11/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/appli/exampleSlicesImages3D.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 std
15 include creaMiniTools
16 include creaVtk
17
18 author "Author ??"
19 description "Description ??"
20 category "<VOID>"
21
22 new vtk:LoadHola Box00
23
24 new creaMaracasVisu:ViewerNV Box01
25   set Box01.nTypeView "6 1 2 0"
26
27 new wx:LayoutSplit Box02
28   set Box02.Orientation "H"
29
30 new wx:LayoutLine Box03
31
32 new wx:Slider Box06
33   set Box06.In "100"
34   set Box06.Max "100"
35   set Box06.Min "0"
36   set Box06.ReactiveOnTrack "true"
37
38 new std:Div Box07
39   set Box07.In2 "100"
40
41 new wx:RadioButton Box17
42   set Box17.In0 "Inside"
43   set Box17.In1 "Outside"
44
45 new creaMiniTools:SlicesImages3D Box15
46   set Box15.TypeImageCutByAxis "x-y-z+"
47
48 new creaVtk:ScalarsToColors Box16
49   set Box16.Range "0 2000"
50   set Box16.Type "1"
51
52 new vtk:RescaleSlopeIntercept Box21
53   set Box21.A "100"
54   set Box21.B "2000"
55   set Box21.Type "2"
56
57
58 connect Box00.Out Box01.In
59
60 connect Box01.Widget Box02.Widget2
61
62 connect Box03.Widget Box02.Widget1
63
64 connect Box06.Widget Box03.Widget1
65
66 connect Box06.Out Box07.In1
67
68 connect Box17.Widget Box03.Widget2
69
70 connect Box07.Out Box15.opacity
71
72 connect Box01.Point Box15.point
73
74 connect Box17.Out Box15.insidevol
75
76 connect Box01.Renderer1 Box15.render
77
78 connect Box01.BoxChange Box15.boxExecute
79
80 connect Box16.LookupTable Box15.lookuptable
81
82 connect Box00.Out Box21.In
83
84 connect Box21.Out Box15.InputImage
85
86
87
88 # Complex input ports
89 exec Box02