7 new LayoutSplit mainSplit
9 new MetaImageReader reader
10 new CommandButton commandButton
11 set commandButton.In "exec surface"
12 set commandButton.Label "RUN"
13 new IsoSurfaceExtractor surface
14 set surface.Opacity 0.8
15 new Slider sliderIsovalue
16 set sliderIsovalue.In 600
17 set sliderIsovalue.Max 5000
18 set sliderIsovalue.ChangeResolution true
21 include std/boxes/bbPrependPackageDataPath.bbs
22 new PrependPackageDataPath prependDatapath
23 set prependDatapath.In "vtk/hola.mhd"
24 connect prependDatapath.Out reader.In
26 connect reader.Out mpr.In
28 connect sizerA.Widget mainSplit.Widget1
29 connect mpr.Widget mainSplit.Widget2
30 connect commandButton.Widget sizerA.Widget1
31 connect sliderIsovalue.Widget sizerA.Widget2
33 connect reader.Out surface.In
34 connect sliderIsovalue.Out surface.Isovalue
35 connect mpr.Renderer surface.Renderer