From e78347e4b7c280a41d357f357765bf7f063dc912 Mon Sep 17 00:00:00 2001 From: davila Date: Thu, 21 Aug 2014 16:33:14 +0200 Subject: [PATCH] #2444 BBTK Feature New Normal - Example surfaceTexture bbs --- .../vtk/bbs/appli/exampleSurfaceTexture.bbg | 106 ++++++++++++++++++ .../vtk/bbs/appli/exampleSurfaceTexture.bbs | 67 +++++++++++ 2 files changed, 173 insertions(+) create mode 100644 packages/vtk/bbs/appli/exampleSurfaceTexture.bbg create mode 100644 packages/vtk/bbs/appli/exampleSurfaceTexture.bbs diff --git a/packages/vtk/bbs/appli/exampleSurfaceTexture.bbg b/packages/vtk/bbs/appli/exampleSurfaceTexture.bbg new file mode 100644 index 0000000..386d750 --- /dev/null +++ b/packages/vtk/bbs/appli/exampleSurfaceTexture.bbg @@ -0,0 +1,106 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /home/davila/Creatis/creaTools/creatools_source/bbtk/packages/vtk/bbs/appli/exampleSurfaceTexture.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:FALSE +COMPLEXINPUTS:0 +BOXES:7 +BOX +vtk:SurfaceTexture:Box01 +ISEXEC:FALSE +-83.571927:-32.471585:-900.000000 +-37.996927:-42.471585:-900.000000 +PORT +ColorLevel:"1000" +PORT +ColorWindow:"500" +FIN_BOX +BOX +vtk:LoadHola:Box02 +ISEXEC:FALSE +-81.986263:79.866467:-900.000000 +-36.411263:69.866467:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:ViewerNV:Box03 +ISEXEC:TRUE +-3.543686:35.691723:-900.000000 +57.096314:25.691723:-900.000000 +FIN_BOX +BOX +vtk:SphereSource:Box04 +ISEXEC:FALSE +-60.814089:18.138095:-900.000000 +-15.239089:8.138095:-900.000000 +PORT +PhiResolution:"140" +PORT +Radius:"1" +PORT +ThetaResolution:"140" +FIN_BOX +BOX +vtk:PolyDataToActor:Box05 +ISEXEC:FALSE +-5.906143:-56.792065:-900.000000 +39.668857:-66.792065:-900.000000 +PORT +Colour:"1 1 0" +PORT +Opacity:"1" +PORT +ScalarVisibility:"true" +FIN_BOX +BOX +vtk:Transform:Box06 +ISEXEC:FALSE +27.020605:-1.181229:-900.000000 +72.595605:-11.181229:-900.000000 +PORT +Scale:"45 45 45" +FIN_BOX +BOX +vtk:Transform:Box07 +ISEXEC:FALSE +47.020605:18.818771:-900.000000 +92.595605:8.818771:-900.000000 +PORT +Translate:"45 45 45" +FIN_BOX +CONNECTIONS:10 +CONNECTION +Box02:Out:Box01:Image +NumberOfControlPoints:0 +CONNECTION +Box02:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box03:Renderer1:Box05:Renderer +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:Box01:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box03:BoxChange:Box05:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box05:Transform +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box01:Transform +NumberOfControlPoints:0 +CONNECTION +Box07:Out:Box06:In +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box05:In +NumberOfControlPoints:0 +CONNECTION +Box04:Out:Box01:Mesh +NumberOfControlPoints:0 +APP_END diff --git a/packages/vtk/bbs/appli/exampleSurfaceTexture.bbs b/packages/vtk/bbs/appli/exampleSurfaceTexture.bbs new file mode 100644 index 0000000..4e2da53 --- /dev/null +++ b/packages/vtk/bbs/appli/exampleSurfaceTexture.bbs @@ -0,0 +1,67 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script +# - /home/davila/Creatis/creaTools/creatools_source/bbtk/packages/vtk/bbs/appli/exampleSurfaceTexture.bbs +# ---------------------------------- + +# BBTK GEditor Script +# ---------------------- + +include std +include itkvtk +include vtk +include creaMaracasVisu + +author "Author ??" +description "Description ??" +category "" + +new SurfaceTexture Box01 + set Box01.ColorLevel "1000" + set Box01.ColorWindow "500" + +new LoadHola Box02 + +new ViewerNV Box03 + +new SphereSource Box04 + set Box04.PhiResolution "140" + set Box04.Radius "1" + set Box04.ThetaResolution "140" + +new PolyDataToActor Box05 + set Box05.Colour "1 1 0" + set Box05.Opacity "1" + set Box05.ScalarVisibility "true" + +new Transform Box06 + set Box06.Scale "45 45 45" + +new Transform Box07 + set Box07.Translate "45 45 45" + + +connect Box02.Out Box01.Image + +connect Box02.Out Box03.In + +connect Box03.Renderer1 Box05.Renderer + +connect Box03.BoxChange Box01.BoxExecute + +connect Box03.BoxChange Box05.BoxExecute + +connect Box06.Out Box05.Transform + +connect Box06.Out Box01.Transform + +connect Box07.Out Box06.In + +connect Box04.Out Box05.In + +connect Box04.Out Box01.Mesh + + + +# Complex input ports +message +exec Box03 -- 2.47.1