]> Creatis software - creaMaracasVisu.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 2 Jul 2009 16:33:55 +0000 (16:33 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Thu, 2 Jul 2009 16:33:55 +0000 (16:33 +0000)
bbtk/bbs/appli/ExampleShowNPoints.bbs [new file with mode: 0644]

diff --git a/bbtk/bbs/appli/ExampleShowNPoints.bbs b/bbtk/bbs/appli/ExampleShowNPoints.bbs
new file mode 100644 (file)
index 0000000..37730a5
--- /dev/null
@@ -0,0 +1,39 @@
+description "3 slicers and a 3D view"
+author "jpr@creatis.insa-lyon.fr"
+category "demo"
+
+// To show how easy it is to add smthing
+// =====================================
+
+load vtk
+include wxvtk
+load std
+load itk
+include vtk
+include wx
+load itkvtk
+load creaMaracasVisu
+
+new FileSelector openFileDialog
+  set openFileDialog.Wildcard  "(*.mhd)|*.mhd"
+new MetaImageReader reader
+   connect openFileDialog.Out reader.In
+
+new ViewerNV viewer
+  connect reader.Out viewer.In
+  set viewer.nTypeView "5 1 2 0"
+
+new ShowNPoints showNpoints
+  connect reader.Out showNpoints.Image
+  connect viewer.Renderer1 showNpoints.Renderer
+  connect viewer.Point showNpoints.In
+  connect viewer.BoxChange showNpoints.BoxExecute
+  set showNpoints.Radio 10
+
+new LayoutSplit main
+   set main.Orientation H
+   connect showNpoints.Widget main.Widget1
+   connect viewer.Widget main.Widget2
+
+exec main
+