]> Creatis software - bbtk.git/blobdiff - packages/wxvtk/bbs/appli/ExampleIsoSurfaceWithControls.bbs
*** empty log message ***
[bbtk.git] / packages / wxvtk / bbs / appli / ExampleIsoSurfaceWithControls.bbs
diff --git a/packages/wxvtk/bbs/appli/ExampleIsoSurfaceWithControls.bbs b/packages/wxvtk/bbs/appli/ExampleIsoSurfaceWithControls.bbs
new file mode 100644 (file)
index 0000000..95dcfbd
--- /dev/null
@@ -0,0 +1,39 @@
+include wxvtk/boxes/bbIsoSurfaceWithControls
+include vtk/boxes/bbLoadHola
+new IsoSurfaceWithControls surface1
+new IsoSurfaceWithControls surface2
+
+load wxvtk
+new Viewer3D viewer
+new LoadHola image
+
+connect image.Out surface1.In
+connect image.Out surface2.In
+connect surface1.Out viewer.In1
+connect surface2.Out viewer.In2
+new MultipleInputs refresh
+connect surface1.BoxChange refresh.In1
+connect surface2.BoxChange refresh.In2
+connect refresh.Out viewer.BoxExecute
+
+new LayoutLine main
+new LayoutLine controls
+connect viewer.Widget main.Widget1
+connect controls.Widget main.Widget2 
+connect surface1.Widget controls.Widget1 
+connect surface2.Widget controls.Widget2
+
+
+set surface1.Isovalue 100
+set surface1.Opacity 100
+set surface1.Colour "0.5 0 0"
+set surface1.Title "Iso-surface 1"
+
+set surface2.Isovalue 200
+set surface2.Opacity 20
+set surface2.Title "Iso-surface 2"
+
+
+#message All 9
+exec main