]> Creatis software - bbtk.git/blob - packages/wxvtk/bbs/appli/exampleVolumeRendering.bbs
c1293fd74da3345ba95e5ffcff6b5215e081d82d
[bbtk.git] / packages / wxvtk / bbs / appli / exampleVolumeRendering.bbs
1 description "Volume rendering example"
2 author "laurent.guigues at creatis.insa-lyon.fr"
3 category "example"      
4
5 include vtk
6 load wxvtk
7
8 new LoadHola image
9 new PiecewiseFunction color
10 new PiecewiseFunction opacity
11 new VolumeRenderer renderer
12 new Viewer3D viewer
13
14 connect image.Out renderer.In
15 connect color.Out renderer.ColorFunction
16 connect opacity.Out renderer.OpacityFunction
17 connect renderer.Out viewer.In1
18
19 load std
20 set color.X "0 500 1000"
21 set color.Y "0 0.01 1"
22 set opacity.X "0 500 1000"
23 set opacity.Y "0 0.01 0.1"
24
25 exec viewer