]> Creatis software - creaImageIO.git/blobdiff - bbtk/bbs/appli/exampleGimmick.bbs
bbtk package creation
[creaImageIO.git] / bbtk / bbs / appli / exampleGimmick.bbs
diff --git a/bbtk/bbs/appli/exampleGimmick.bbs b/bbtk/bbs/appli/exampleGimmick.bbs
new file mode 100644 (file)
index 0000000..a58bb54
--- /dev/null
@@ -0,0 +1,47 @@
+load creaImageIO
+
+description "Example of the Gimmick box"
+author "laurent.guigues at creatis.insa-lyon.fr"
+category "example"
+
+#include vtk/boxes/bbLoadHola
+include wxvtk/boxes/bbIsoSurfaceWithControls
+load vtk
+load itk
+load itkvtk
+load wxvtk
+
+#new LoadHola image
+new Gimmick reader
+new ImagePlanes planes
+new IsoSurfaceWithControls surface
+new Viewer3D viewer
+
+connect reader.Out planes.In
+connect planes.PlaneX viewer.Obs1
+connect planes.PlaneY viewer.Obs2
+connect planes.PlaneZ viewer.Obs3
+
+connect reader.Out surface.In
+connect surface.Out viewer.In1
+connect surface.BoxChange viewer.BoxExecute
+
+new LayoutSplit main
+new LayoutLine controls
+connect viewer.Widget main.Widget1
+connect controls.Widget main.Widget2 
+connect surface.Widget controls.Widget1 
+
+set surface.Isovalue 100
+set surface.Opacity 100
+set surface.Colour "0.5 0 0"
+set surface.Title "Iso-surface"
+
+load std
+set viewer.WinTitle "Gimmick! example"
+set viewer.WinWidth 350
+set viewer.WinHeight 400
+
+
+exec viewer
+