]> Creatis software - creaMaracasVisu.git/blob - bbtk/bbs/appli/Example_Segmentation_01.bbs_bug
no message
[creaMaracasVisu.git] / bbtk / bbs / appli / Example_Segmentation_01.bbs_bug
1 load std
2 load vtk
3 load wx
4 load maracasvisu
5
6 new LayoutLine  sizerA
7 new LayoutSplit mainSplit
8 new ViewerMPR mpr
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
19
20
21 include  std/boxes/bbPrependPackageDataPath.bbs
22 new PrependPackageDataPath prependDatapath 
23   set prependDatapath.In "vtk/hola.mhd" 
24   connect prependDatapath.Out reader.In 
25
26 connect reader.Out mpr.In
27
28 connect sizerA.Widget                                   mainSplit.Widget1
29 connect mpr.Widget                                      mainSplit.Widget2
30 connect commandButton.Widget            sizerA.Widget1 
31 connect sliderIsovalue.Widget                   sizerA.Widget2 
32
33 connect reader.Out surface.In
34 connect sliderIsovalue.Out surface.Isovalue
35 connect mpr.Renderer surface.Renderer
36
37 exec mainSplit