]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/bbs/appli/ExampleMaracasVisu01.bbs
The bbtk folder with the maracasvisu bbtk package was added to the creaMaracasVisu...
[creaMaracasVisu.git] / bbtk / bbs / appli / ExampleMaracasVisu01.bbs
diff --git a/bbtk/bbs/appli/ExampleMaracasVisu01.bbs b/bbtk/bbs/appli/ExampleMaracasVisu01.bbs
new file mode 100644 (file)
index 0000000..a323d48
--- /dev/null
@@ -0,0 +1,69 @@
+
+
+load std
+load vtk
+load wx
+load wxvtk
+load maracasvisu
+
+
+new PlotterView pw
+set pw.InX " 20 100 200 300 400 500"
+set pw.InY " 100 700 100 300 400 500"
+
+new MetaImageReader reader
+include  std/boxes/bbPrependPackageDataPath.bbs
+new PrependPackageDataPath prependDatapath
+  set prependDatapath.In "vtk/hola.mhd"
+  connect prependDatapath.Out reader.In
+
+new HistogramView hw
+connect reader.Out hw.In
+
+new TransferFunctionView tfw
+connect reader.Out tfw.In
+
+new ViewerMPR mpr
+connect reader.Out mpr.In
+
+## surface
+new IsoSurfaceExtractor  surface1 
+  connect reader.Out surface1.In 
+  set surface1.Isovalue 200 
+  set surface1.Opacity 0.5 
+  set surface1.Colour "1.0, 0.0, 0.0" 
+
+new IsoSurfaceExtractor  surface2 
+  connect reader.Out surface2.In 
+  set surface2.Isovalue 100 
+  set surface2.Opacity 1 
+  set surface2.Colour "1.0, 1.0, 0.5" 
+
+new Viewer3D viewer3d 
+  connect surface1.Out viewer3d.In1  
+  connect surface2.Out viewer3d.In2
+
+
+
+
+
+new LayoutSplit sDown
+  set sDown.Orientation H
+  connect viewer3d.Widget      sDown.Widget1
+  connect mpr.Widget           sDown.Widget2
+new LayoutSplit sUpL
+  set sUpL.Orientation H
+  connect pw.Widget            sUpL.Widget1
+  connect hw.Widget            sUpL.Widget2
+
+new LayoutSplit sUp
+  set sUp.Orientation H
+  connect tfw.Widget           sUp.Widget1
+  connect sUpL.Widget  sUp.Widget2
+
+new LayoutSplit main
+  set main.Orientation V
+  connect sUp.Widget           main.Widget1
+  connect sDown.Widget main.Widget2
+
+exec main