From 341818031079611f7c3fa98b7ef475540371cb0e Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 13 Jun 2018 14:28:54 +0200 Subject: [PATCH] #3197 CreaMiniTools Feature New Normal - new complex box SlicesImages3D --- .../bbs/boxes/SlicesImages3D.bbg | 507 ++++++++++++++++++ .../bbs/boxes/SlicesImages3D.bbs | 186 +++++++ 2 files changed, 693 insertions(+) create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg create mode 100644 bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs diff --git a/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg new file mode 100644 index 0000000..f47ade6 --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg @@ -0,0 +1,507 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBG BlackBox Diagram file +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbg +# ---------------------------------- + +APP_START +CATEGORY: +DESCRIPTION:Description ?? +AUTHOR:Author ?? +COMPLEXBOX:TRUE +COMPLEXBOXNAME:SlicesImages3D +PACKAGENAME:creaMiniTools +COMPLEXOUTPUTS:0 +COMPLEXINPUTS:9 +COMPLEX_PORT +InputImage +300.391931:141.598193:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +point +244.779928:146.776972:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +render +91.082517:140.960476:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +boxExecute +20.113410:138.317481:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +opacity +133.166018:138.788963:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +type +385.191792:139.933370:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +range +353.662546:140.278048:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +insidevol +-22.969678:131.593740:-900.000000 +FIN_COMPLEX_PORT +COMPLEX_PORT +TypeImageCutByAxis +52.135568:135.959394:-900.000000 +FIN_COMPLEX_PORT +BOXES:34 +BOX +creaMaracasVisu:SliceImage:Box00 +ISEXEC:FALSE +78.025078:-80.032190:-900.000000 +123.600078:-90.032190:-900.000000 +FIN_BOX +BOX +std:GetVectorIntElement:Box03 +ISEXEC:FALSE +191.426452:-9.344111:-900.000000 +262.601452:-19.344111:-900.000000 +PORT +I:"2" +FIN_BOX +BOX +creaMaracasVisu:ImageActor:Box04 +ISEXEC:FALSE +88.131031:-202.344498:-900.000000 +133.706031:-212.344498:-900.000000 +FIN_BOX +BOX +vtk:Transform:Box05 +ISEXEC:FALSE +126.055591:-77.500407:-900.000000 +171.630591:-87.500407:-900.000000 +FIN_BOX +BOX +std:ConcatStrings:Box06 +ISEXEC:FALSE +151.992326:-46.698683:-900.000000 +197.567326:-56.698683:-900.000000 +PORT +In1:"0 0 " +FIN_BOX +BOX +vtk:ImageVtkProperties:Box07 +ISEXEC:FALSE +269.227836:51.360237:-900.000000 +314.802836:41.360237:-900.000000 +FIN_BOX +BOX +std:GetVectorDoubleElement:Box08 +ISEXEC:FALSE +115.535747:-8.078442:-900.000000 +186.710747:-18.078442:-900.000000 +PORT +I:"2" +FIN_BOX +BOX +std:Mul:Box09 +ISEXEC:FALSE +108.921548:-25.147880:-900.000000 +141.696548:-35.147880:-900.000000 +FIN_BOX +BOX +vtk:vtkImageDataPointerRelay:Box12 +ISEXEC:FALSE +247.907865:76.016693:-900.000000 +319.082865:66.016693:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box14 +ISEXEC:FALSE +-37.382182:-12.361503:-900.000000 +8.192818:-22.361503:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box15 +ISEXEC:FALSE +17.144980:-10.253965:-900.000000 +62.719980:-20.253965:-900.000000 +FIN_BOX +BOX +std:MagicBox:Box16 +ISEXEC:FALSE +191.976293:48.498551:-900.000000 +237.551293:38.498551:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:SliceImage:Box17 +ISEXEC:FALSE +278.360168:-78.378431:-900.000000 +323.935168:-88.378431:-900.000000 +PORT +TypeOrientation:"1" +FIN_BOX +BOX +std:GetVectorIntElement:Box18 +ISEXEC:FALSE +346.763832:-10.313350:-900.000000 +417.938832:-20.313350:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +creaMaracasVisu:ImageActor:Box19 +ISEXEC:FALSE +285.491988:-214.447144:-900.000000 +331.066988:-224.447144:-900.000000 +FIN_BOX +BOX +vtk:Transform:Box20 +ISEXEC:FALSE +337.954627:-77.021999:-900.000000 +383.529627:-87.021999:-900.000000 +PORT +RotateWXYZ:"-90 1 0 0" +FIN_BOX +BOX +std:ConcatStrings:Box21 +ISEXEC:FALSE +347.967240:-43.945401:-900.000000 +393.542240:-53.945401:-900.000000 +PORT +In1:"0 " +PORT +In3:" 0" +FIN_BOX +BOX +std:GetVectorDoubleElement:Box22 +ISEXEC:FALSE +270.700789:-10.322991:-900.000000 +341.875789:-20.322991:-900.000000 +PORT +I:"1" +FIN_BOX +BOX +std:Mul:Box23 +ISEXEC:FALSE +297.313546:-28.081784:-900.000000 +330.088546:-38.081784:-900.000000 +FIN_BOX +BOX +creaMaracasVisu:SliceImage:Box24 +ISEXEC:FALSE +455.433130:-77.283687:-900.000000 +501.008130:-87.283687:-900.000000 +PORT +TypeOrientation:"2" +FIN_BOX +BOX +std:GetVectorIntElement:Box25 +ISEXEC:FALSE +527.900786:-7.374910:-900.000000 +599.075786:-17.374910:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +creaMaracasVisu:ImageActor:Box26 +ISEXEC:FALSE +468.885607:-208.868901:-900.000000 +514.460607:-218.868901:-900.000000 +FIN_BOX +BOX +vtk:Transform:Box27 +ISEXEC:FALSE +512.532359:-78.974540:-900.000000 +558.107359:-88.974540:-900.000000 +PORT +RotateWXYZ:"-90 1 0 0" +FIN_BOX +BOX +std:ConcatStrings:Box28 +ISEXEC:FALSE +516.289067:-40.286583:-900.000000 +561.864067:-50.286583:-900.000000 +PORT +In3:" 0 0" +FIN_BOX +BOX +std:GetVectorDoubleElement:Box29 +ISEXEC:FALSE +442.359098:-8.521988:-900.000000 +513.534098:-18.521988:-900.000000 +PORT +I:"0" +FIN_BOX +BOX +std:Mul:Box30 +ISEXEC:FALSE +459.872357:-22.489323:-900.000000 +492.647357:-32.489323:-900.000000 +FIN_BOX +BOX +vtk:Transform:Box31 +ISEXEC:FALSE +505.006376:-100.680575:-900.000000 +550.581376:-110.680575:-900.000000 +PORT +RotateWXYZ:"-90 0 1 0" +FIN_BOX +BOX +creaVtk:ScalarsToColors:Box32 +ISEXEC:FALSE +368.257745:74.268789:-900.000000 +413.832745:64.268789:-900.000000 +PORT +Range:"-1000 0" +PORT +Type:"0" +FIN_BOX +BOX +std:MagicBox:Box33 +ISEXEC:FALSE +91.838138:16.583265:-900.000000 +137.413138:6.583265:-900.000000 +FIN_BOX +BOX +creaVtk:ImageCutByAxis:Box34 +ISEXEC:FALSE +4.890223:-151.027450:-900.000000 +50.465223:-161.027450:-900.000000 +PORT +Type:"x-y-z+" +PORT +TypeOrientation:"0" +FIN_BOX +BOX +std:MagicBox:Box35 +ISEXEC:FALSE +-91.082105:-12.638227:-900.000000 +-45.507105:-22.638227:-900.000000 +FIN_BOX +BOX +creaVtk:ImageCutByAxis:Box36 +ISEXEC:FALSE +157.932475:-166.477580:-900.000000 +203.507475:-176.477580:-900.000000 +PORT +Type:"x-y-z+" +PORT +TypeOrientation:"1" +FIN_BOX +BOX +creaVtk:ImageCutByAxis:Box37 +ISEXEC:FALSE +410.652151:-150.231123:-900.000000 +456.227151:-160.231123:-900.000000 +PORT +Type:"x-y-z+" +PORT +TypeOrientation:"2" +FIN_BOX +BOX +std:MagicBox:Box38 +ISEXEC:FALSE +71.612778:-7.487864:-900.000000 +117.187778:-17.487864:-900.000000 +FIN_BOX +CONNECTIONS:68 +CONNECTION +Box03:Out:Box00:Slice +NumberOfControlPoints:0 +CONNECTION +Box05:Out:Box04:Transform +NumberOfControlPoints:0 +CONNECTION +Box06:Out:Box05:Translate +NumberOfControlPoints:0 +CONNECTION +Box07:Spacing:Box08:In +NumberOfControlPoints:0 +CONNECTION +Box08:Out:Box09:In1 +NumberOfControlPoints:0 +CONNECTION +Box03:Out:Box09:In2 +NumberOfControlPoints:0 +CONNECTION +Box09:Out:Box06:In2 +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box07:In +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box00:In +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box04:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box04:Renderer +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box03:In +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box17:Slice +NumberOfControlPoints:0 +CONNECTION +Box20:Out:Box19:Transform +NumberOfControlPoints:0 +CONNECTION +Box21:Out:Box20:Translate +NumberOfControlPoints:0 +CONNECTION +Box22:Out:Box23:In1 +NumberOfControlPoints:0 +CONNECTION +Box18:Out:Box23:In2 +NumberOfControlPoints:0 +CONNECTION +Box23:Out:Box21:In2 +NumberOfControlPoints:0 +CONNECTION +Box07:Spacing:Box22:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box18:In +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box19:Renderer +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box19:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box17:In +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box24:Slice +NumberOfControlPoints:0 +CONNECTION +Box29:Out:Box30:In1 +NumberOfControlPoints:0 +CONNECTION +Box25:Out:Box30:In2 +NumberOfControlPoints:0 +CONNECTION +Box30:Out:Box28:In2 +NumberOfControlPoints:0 +CONNECTION +Box07:Spacing:Box29:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box25:In +NumberOfControlPoints:0 +CONNECTION +Box12:Out:Box24:In +NumberOfControlPoints:0 +CONNECTION +Box15:Out:Box26:Renderer +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box26:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box27:Out:Box31:In +NumberOfControlPoints:0 +CONNECTION +Box31:Out:Box26:Transform +NumberOfControlPoints:0 +CONNECTION +Box28:Out:Box27:Translate +NumberOfControlPoints:0 +CONNECTION +Box32:LookupTable:Box19:LookupTable +NumberOfControlPoints:0 +CONNECTION +Box32:LookupTable:Box26:LookupTable +NumberOfControlPoints:0 +CONNECTION +Box32:LookupTable:Box04:LookupTable +NumberOfControlPoints:0 +CONNECTION +InputImage:InputImage:Box12:In +NumberOfControlPoints:0 +CONNECTION +point:point:Box16:In +NumberOfControlPoints:0 +CONNECTION +render:render:Box15:In +NumberOfControlPoints:0 +CONNECTION +boxExecute:boxExecute:Box14:BoxExecute +NumberOfControlPoints:0 +CONNECTION +opacity:opacity:Box33:In +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box04:Opacity +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box19:Opacity +NumberOfControlPoints:0 +CONNECTION +Box33:Out:Box26:Opacity +NumberOfControlPoints:0 +CONNECTION +type:type:Box32:Type +NumberOfControlPoints:0 +CONNECTION +range:range:Box32:Range +NumberOfControlPoints:0 +CONNECTION +Box34:Out:Box04:In +NumberOfControlPoints:0 +CONNECTION +Box00:Out:Box34:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box34:Point +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box34:InsideVol +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box34:BoxExecute +NumberOfControlPoints:0 +CONNECTION +insidevol:insidevol:Box35:In +NumberOfControlPoints:0 +CONNECTION +Box17:Out:Box36:In +NumberOfControlPoints:0 +CONNECTION +Box36:Out:Box19:In +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box36:BoxExecute +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box36:InsideVol +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box36:Point +NumberOfControlPoints:0 +CONNECTION +Box24:Out:Box37:In +NumberOfControlPoints:0 +CONNECTION +Box37:Out:Box26:In +NumberOfControlPoints:0 +CONNECTION +Box16:Out:Box37:Point +NumberOfControlPoints:0 +CONNECTION +Box35:Out:Box37:InsideVol +NumberOfControlPoints:0 +CONNECTION +Box14:BoxChange:Box37:BoxExecute +NumberOfControlPoints:0 +CONNECTION +TypeImageCutByAxis:TypeImageCutByAxis:Box38:In +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box34:Type +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box36:Type +NumberOfControlPoints:0 +CONNECTION +Box38:Out:Box37:Type +NumberOfControlPoints:0 +APP_END diff --git a/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs new file mode 100644 index 0000000..a90aa1a --- /dev/null +++ b/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs @@ -0,0 +1,186 @@ +# ---------------------------------- +# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box) +# - /tmpEED/creaTools/creatools_source/creaMiniTools/bbtk_package_creaMiniTools/bbs/boxes/SlicesImages3D.bbs +# ---------------------------------- + +include std +include itkvtk +include creaMaracasVisu +include std +include vtk +include creaVtk + +define SlicesImages3D creaMiniTools + +author "Author ??" +description "Description ??" + +category "" + +new creaMaracasVisu:SliceImage Box00 + +new std:GetVectorIntElement Box03 + set Box03.I "2" + +new creaMaracasVisu:ImageActor Box04 + +new vtk:Transform Box05 + +new std:ConcatStrings Box06 + set Box06.In1 "0 0 " + +new vtk:ImageVtkProperties Box07 + +new std:GetVectorDoubleElement Box08 + set Box08.I "2" + +new std:Mul Box09 + +new vtk:vtkImageDataPointerRelay Box12 + +new std:MagicBox Box14 + +new std:MagicBox Box15 + +new std:MagicBox Box16 + +new creaMaracasVisu:SliceImage Box17 + set Box17.TypeOrientation "1" + +new std:GetVectorIntElement Box18 + set Box18.I "1" + +new creaMaracasVisu:ImageActor Box19 + +new vtk:Transform Box20 + set Box20.RotateWXYZ "-90 1 0 0" + +new std:ConcatStrings Box21 + set Box21.In1 "0 " + set Box21.In3 " 0" + +new std:GetVectorDoubleElement Box22 + set Box22.I "1" + +new std:Mul Box23 + +new creaMaracasVisu:SliceImage Box24 + set Box24.TypeOrientation "2" + +new std:GetVectorIntElement Box25 + set Box25.I "0" + +new creaMaracasVisu:ImageActor Box26 + +new vtk:Transform Box27 + set Box27.RotateWXYZ "-90 1 0 0" + +new std:ConcatStrings Box28 + set Box28.In3 " 0 0" + +new std:GetVectorDoubleElement Box29 + set Box29.I "0" + +new std:Mul Box30 + +new vtk:Transform Box31 + set Box31.RotateWXYZ "-90 0 1 0" + +new creaVtk:ScalarsToColors Box32 + set Box32.Range "-1000 0" + set Box32.Type "0" + +new std:MagicBox Box33 + +new creaVtk:ImageCutByAxis Box34 + set Box34.Type "x-y-z+" + set Box34.TypeOrientation "0" + +new std:MagicBox Box35 + +new creaVtk:ImageCutByAxis Box36 + set Box36.Type "x-y-z+" + set Box36.TypeOrientation "1" + +new creaVtk:ImageCutByAxis Box37 + set Box37.Type "x-y-z+" + set Box37.TypeOrientation "2" + +new std:MagicBox Box38 + + +connect Box03.Out Box00.Slice +connect Box05.Out Box04.Transform +connect Box06.Out Box05.Translate +connect Box07.Spacing Box08.In +connect Box08.Out Box09.In1 +connect Box03.Out Box09.In2 +connect Box09.Out Box06.In2 +connect Box12.Out Box07.In +connect Box12.Out Box00.In +connect Box14.BoxChange Box04.BoxExecute +connect Box15.Out Box04.Renderer +connect Box16.Out Box03.In +connect Box18.Out Box17.Slice +connect Box20.Out Box19.Transform +connect Box21.Out Box20.Translate +connect Box22.Out Box23.In1 +connect Box18.Out Box23.In2 +connect Box23.Out Box21.In2 +connect Box07.Spacing Box22.In +connect Box16.Out Box18.In +connect Box15.Out Box19.Renderer +connect Box14.BoxChange Box19.BoxExecute +connect Box12.Out Box17.In +connect Box25.Out Box24.Slice +connect Box29.Out Box30.In1 +connect Box25.Out Box30.In2 +connect Box30.Out Box28.In2 +connect Box07.Spacing Box29.In +connect Box16.Out Box25.In +connect Box12.Out Box24.In +connect Box15.Out Box26.Renderer +connect Box14.BoxChange Box26.BoxExecute +connect Box27.Out Box31.In +connect Box31.Out Box26.Transform +connect Box28.Out Box27.Translate +connect Box32.LookupTable Box19.LookupTable +connect Box32.LookupTable Box26.LookupTable +connect Box32.LookupTable Box04.LookupTable +connect Box33.Out Box04.Opacity +connect Box33.Out Box19.Opacity +connect Box33.Out Box26.Opacity +connect Box34.Out Box04.In +connect Box00.Out Box34.In +connect Box16.Out Box34.Point +connect Box35.Out Box34.InsideVol +connect Box14.BoxChange Box34.BoxExecute +connect Box17.Out Box36.In +connect Box36.Out Box19.In +connect Box14.BoxChange Box36.BoxExecute +connect Box35.Out Box36.InsideVol +connect Box16.Out Box36.Point +connect Box24.Out Box37.In +connect Box37.Out Box26.In +connect Box16.Out Box37.Point +connect Box35.Out Box37.InsideVol +connect Box14.BoxChange Box37.BoxExecute +connect Box38.Out Box34.Type +connect Box38.Out Box36.Type +connect Box38.Out Box37.Type + +# Complex input ports +input InputImage Box12.In " " +input point Box16.In " " +input render Box15.In " " +input boxExecute Box14.BoxExecute " " +input opacity Box33.In " " +input type Box32.Type " " +input range Box32.Range " " +input insidevol Box35.In " " +input TypeImageCutByAxis Box38.In " " + +# Complex output ports + + +endefine -- 2.47.1