]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/bbs/appli/exampleCutter.bbs
#3465 cutter box
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / exampleCutter.bbs
diff --git a/bbtk_creaVtk_PKG/bbs/appli/exampleCutter.bbs b/bbtk_creaVtk_PKG/bbs/appli/exampleCutter.bbs
new file mode 100644 (file)
index 0000000..e69385a
--- /dev/null
@@ -0,0 +1,84 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleCutter.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include creaVtk
+include vtk
+include creaMaracasVisu
+include wx
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new creaVtk:Cutter Box00
+
+new vtk:SphereSource Box01
+  set Box01.CenterX "0"
+  set Box01.CenterY "0"
+  set Box01.CenterZ "0"
+  set Box01.PhiResolution "15"
+  set Box01.Radius "40"
+  set Box01.ThetaResolution "15"
+
+new creaMaracasVisu:ViewerNV Box02
+
+new vtk:LoadHola Box03
+
+new vtk:PolyDataToActor Box04
+  set Box04.Colour "1 0 0"
+  set Box04.Opacity "1"
+  set Box04.Representation "1"
+
+new wx:LayoutSplit Box05
+  set Box05.Orientation "H"
+
+new wx:LayoutLine Box07
+
+new vtk:PolyDataToActor Box09
+  set Box09.Opacity "0.2"
+  set Box09.Representation "2"
+
+new vtk:UpdateRender Box13
+  set Box13.Active "true"
+
+new wx:CommandButton Box15
+  set Box15.Label "Refresh"
+
+
+connect Box03.Out Box02.In
+
+connect Box00.Out Box04.In
+
+connect Box02.Renderer1 Box04.Renderer
+
+connect Box02.Widget Box05.Widget2
+
+connect Box07.Widget Box05.Widget1
+
+connect Box02.Renderer1 Box09.Renderer
+
+connect Box02.Renderer1 Box13.Renderer
+
+connect Box15.BoxChange Box04.BoxExecute
+
+connect Box15.Widget Box07.Widget2
+
+connect Box04.BoxChange Box09.BoxExecute
+
+connect Box09.BoxChange Box13.BoxExecute
+
+connect Box01.Out Box00.In
+
+connect Box01.Out Box09.In
+
+
+
+# Complex input ports
+exec Box05