]> Creatis software - bbtk.git/blob - packages/wxvtk/bbs/appli/exampleVolumeRendering.bbs
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / wxvtk / bbs / appli / exampleVolumeRendering.bbs
1 # ----------------------------------
2 # - BBTKGEditor v 1.4 BBS BlackBox Script
3 # - /tmpEED/creaTools2/creatools_source/bbtk/packages/wxvtk/bbs/appli/exampleVolumeRendering.bbs
4 # ----------------------------------
5
6 # BBTK GEditor Script
7 # ----------------------
8
9 include std
10 include itkvtk
11 include vtk
12 include wxvtk
13
14 author "laurent.guigues at creatis.insa-lyon.fr"
15 description "Volume rendering example"
16 category "example"
17
18 new vtk:LoadHola reader
19
20 new vtk:PiecewiseFunction color
21   set color.X "0 500 1000"
22   set color.Y "0 0.01 1"
23
24 new vtk:PiecewiseFunction opacity
25   set opacity.X "0 500 1000"
26   set opacity.Y "0 0.01 0.1"
27
28 new vtk:VolumeRenderer renderer
29
30 new wxvtk:Viewer3D viewer
31
32
33 connect reader.Out renderer.In
34
35 connect color.Out renderer.ColorFunction
36
37 connect opacity.Out renderer.OpacityFunction
38
39 connect renderer.Out viewer.In1
40
41
42
43 # Complex input ports
44 exec viewer