]> Creatis software - creaMaracasVisu.git/commitdiff
#3531 FreePlane Box
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Fri, 28 Jul 2023 05:19:59 +0000 (07:19 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Fri, 28 Jul 2023 05:19:59 +0000 (07:19 +0200)
bbtk/bbs/boxes/FreePlane.bbg [new file with mode: 0644]
bbtk/bbs/boxes/FreePlane.bbs [new file with mode: 0644]

diff --git a/bbtk/bbs/boxes/FreePlane.bbg b/bbtk/bbs/boxes/FreePlane.bbg
new file mode 100644 (file)
index 0000000..b5bab76
--- /dev/null
@@ -0,0 +1,329 @@
+# ----------------------------------
+# - BBTKGEditor v 1.5 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/FreePlane.bbg
+# ----------------------------------
+
+APP_START
+CATEGORY:<VOID>
+DESCRIPTION:Description ??
+AUTHOR:Author ??
+COMPLEXBOX:TRUE
+COMPLEXBOXNAME:FreePlane
+PACKAGENAME:creaMaracasVisu
+COMPLEXOUTPUTS:1
+COMPLEX_PORT
+widgetOut
+-62.292736:-23.904606:-900.000000
+FIN_COMPLEX_PORT
+COMPLEXINPUTS:5
+COMPLEX_PORT
+possiblePoint
+-68.417961:122.755334:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+wxvtkbaseview2
+-100.204542:121.764548:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+wxvtkbaseview1
+-109.694370:121.764548:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+render
+-5.615713:122.652186:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+wxvtkbaseview3
+-88.303489:121.573553:-900.000000
+FIN_COMPLEX_PORT
+BOXES:19
+BOX
+vtk:ImageVtkProperties:Box00
+ISEXEC:FALSE
+-38.467279:72.794940:-900.000000
+-15.932279:70.294940:-900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:Box01
+ISEXEC:FALSE
+-63.373517:-14.619552:-900.000000
+-30.053517:-17.119552:-900.000000
+PORT
+Orientation:"V"
+PORT
+WinTitle:"Free plane"
+FIN_BOX
+BOX
+creaMaracasVisu:SliceImage:Box02
+ISEXEC:FALSE
+-80.494473:39.228278:-900.000000
+-58.769473:36.728278:-900.000000
+PORT
+InterpolationMode:"1"
+PORT
+Slice:"0"
+PORT
+TypeOrientation:"3"
+PORT
+Z:"0"
+FIN_BOX
+BOX
+creaVtk:TransformVector:Box03
+ISEXEC:FALSE
+-81.471694:78.694065:-900.000000
+-59.261694:76.194065:-900.000000
+PORT
+InX:"1  0  0"
+PORT
+InY:"0 1   0"
+PORT
+InZ:"0 0 1"
+FIN_BOX
+BOX
+creaMaracasVisu:ImageActor:Box04
+ISEXEC:FALSE
+-74.810398:8.024573:-900.000000
+-53.015398:5.524573:-900.000000
+PORT
+InterpolationMode:"1"
+PORT
+Opacity:"1"
+FIN_BOX
+BOX
+vtk:Transform:Box06
+ISEXEC:FALSE
+-52.487360:57.978654:-900.000000
+-30.932360:55.478654:-900.000000
+FIN_BOX
+BOX
+creaVtk:ConcatTransform:Box07
+ISEXEC:FALSE
+-59.880124:50.051963:-900.000000
+-37.600124:47.551963:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box08
+ISEXEC:FALSE
+-61.804071:72.216477:-900.000000
+-39.044071:69.716477:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box09
+ISEXEC:FALSE
+-83.220618:67.537653:-900.000000
+-60.460618:65.037653:-900.000000
+PORT
+In2:"  "
+PORT
+In4:"  "
+FIN_BOX
+BOX
+creaVtk:ScalarsToColors:Box10
+ISEXEC:FALSE
+-98.732708:19.851377:-900.000000
+-76.572708:17.351377:-900.000000
+PORT
+BelowAboveRangeTransparence:"false"
+PORT
+Type:"101"
+FIN_BOX
+BOX
+vtk:vtkImageDataPointerRelay:Box11
+ISEXEC:FALSE
+-37.376549:80.928257:-900.000000
+-14.166549:78.428257:-900.000000
+FIN_BOX
+BOX
+std:MagicBox:Box12
+ISEXEC:FALSE
+-9.582458:51.091206:-900.000000
+12.017542:48.591206:-900.000000
+FIN_BOX
+BOX
+creaMaracasVisu:wxVtkBaseView_Info:Box13
+ISEXEC:FALSE
+-111.883479:102.655690:-900.000000
+-84.603479:100.155690:-900.000000
+PORT
+InteractionType:"12"
+FIN_BOX
+BOX
+wx:CheckBox:Box14
+ISEXEC:FALSE
+-41.816958:17.966024:-900.000000
+-20.186958:15.466024:-900.000000
+PORT
+Title:"Pivot plane"
+FIN_BOX
+BOX
+creaMaracasVisu:DrawAxisTree3D:Box15
+ISEXEC:FALSE
+-21.443228:8.210101:-900.000000
+6.596772:5.710101:-900.000000
+PORT
+Colour:"1 0 0    1 1 0    0 0 1"
+PORT
+ColourLaw:"2"
+PORT
+LineWidth:"2"
+PORT
+lstIndexs:"2 2 2"
+PORT
+lstPointX:"0 20       0 0           0 0"
+PORT
+lstPointY:"0 0         0  80       0 0"
+PORT
+lstPointZ:"0 0         0  0         0 20"
+FIN_BOX
+BOX
+creaMaracasVisu:TransformWidget2:Box16
+ISEXEC:FALSE
+-72.192124:103.059995:-900.000000
+-49.847124:100.559995:-900.000000
+PORT
+Type:"1"
+FIN_BOX
+BOX
+std:MathOperationVector:Box17
+ISEXEC:FALSE
+-48.533350:63.839056:-900.000000
+-24.013350:61.339056:-900.000000
+PORT
+Type:"2"
+FIN_BOX
+BOX
+vtk:UpdateRender:Box19
+ISEXEC:FALSE
+-33.296893:-8.492065:-900.000000
+-11.271893:-10.992065:-900.000000
+PORT
+Active:"true"
+FIN_BOX
+BOX
+std:MultipleInputs:Box20
+ISEXEC:FALSE
+-42.283321:-2.005626:-900.000000
+-20.313321:-4.505626:-900.000000
+FIN_BOX
+CONNECTIONS:40
+CONNECTION
+Box02:Out:Box04:In
+NumberOfControlPoints:0
+CONNECTION
+Box08:Out:Box02:AxisOrigin
+NumberOfControlPoints:0
+CONNECTION
+Box06:Out:Box07:In3
+NumberOfControlPoints:0
+CONNECTION
+Box07:Out:Box04:Transform
+NumberOfControlPoints:0
+CONNECTION
+Box03:OutX:Box09:In1
+NumberOfControlPoints:0
+CONNECTION
+Box03:OutY:Box09:In3
+NumberOfControlPoints:0
+CONNECTION
+Box03:OutZ:Box09:In5
+NumberOfControlPoints:0
+CONNECTION
+Box09:Out:Box02:ResliceAxesDirectionCosines
+NumberOfControlPoints:0
+CONNECTION
+Box10:LookupTable:Box04:LookupTable
+NumberOfControlPoints:0
+CONNECTION
+Box11:Out:Box02:In
+NumberOfControlPoints:0
+CONNECTION
+Box11:Out:Box00:In
+NumberOfControlPoints:0
+CONNECTION
+Box12:Out:Box04:Renderer
+NumberOfControlPoints:0
+CONNECTION
+Box13:WindowColorLevel:Box10:WindowColorLevel
+NumberOfControlPoints:0
+CONNECTION
+Box13:BoxChange:Box10:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box07:Out:Box15:Transform
+NumberOfControlPoints:0
+CONNECTION
+Box12:Out:Box15:Renderer
+NumberOfControlPoints:0
+CONNECTION
+Box16:Out:Box03:Transform
+NumberOfControlPoints:0
+CONNECTION
+Box16:Out:Box07:In1
+NumberOfControlPoints:0
+CONNECTION
+Box16:Widget:Box01:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box08:Out:Box17:In0
+NumberOfControlPoints:0
+CONNECTION
+Box00:Spacing:Box17:In1
+NumberOfControlPoints:0
+CONNECTION
+Box17:Out:Box06:Translate
+NumberOfControlPoints:0
+CONNECTION
+Box16:ActualPoint:Box08:In1
+NumberOfControlPoints:0
+CONNECTION
+Box14:Out:Box15:Active
+NumberOfControlPoints:0
+CONNECTION
+Box16:BoxChange:Box15:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box13:Image:Box11:In
+NumberOfControlPoints:0
+CONNECTION
+possiblePoint:possiblePoint:Box16:PossiblePoint
+NumberOfControlPoints:0
+CONNECTION
+wxvtkbaseview1:wxvtkbaseview1:Box13:wxVtkBaseView
+NumberOfControlPoints:0
+CONNECTION
+wxvtkbaseview2:wxvtkbaseview2:Box13:wxVtkBaseView2
+NumberOfControlPoints:0
+CONNECTION
+render:render:Box12:In
+NumberOfControlPoints:0
+CONNECTION
+Box01:Widget:widgetOut:widgetOut
+NumberOfControlPoints:0
+CONNECTION
+wxvtkbaseview3:wxvtkbaseview3:Box13:wxVtkBaseView3
+NumberOfControlPoints:0
+CONNECTION
+Box14:Out:Box04:Active
+NumberOfControlPoints:0
+CONNECTION
+Box12:Out:Box19:Renderer
+NumberOfControlPoints:0
+CONNECTION
+Box14:Widget:Box01:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box04:BoxChange:Box20:In1
+NumberOfControlPoints:0
+CONNECTION
+Box15:BoxChange:Box20:In2
+NumberOfControlPoints:0
+CONNECTION
+Box20:BoxChange:Box19:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box14:BoxChange:Box20:In4
+NumberOfControlPoints:0
+CONNECTION
+Box14:Out:Box19:Active
+NumberOfControlPoints:0
+APP_END
diff --git a/bbtk/bbs/boxes/FreePlane.bbs b/bbtk/bbs/boxes/FreePlane.bbs
new file mode 100644 (file)
index 0000000..86d3619
--- /dev/null
@@ -0,0 +1,133 @@
+# ----------------------------------
+# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
+# - /Users/davila/Creatis/C23/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/FreePlane.bbs
+# ----------------------------------
+
+include std
+include itkvtk
+include vtk
+include wx
+include creaMaracasVisu
+include creaVtk
+include std
+
+define FreePlane creaMaracasVisu
+
+author "Author ??"
+description "Description ??"
+
+category "<VOID>"
+
+new vtk:ImageVtkProperties Box00
+
+new wx:LayoutLine Box01
+  set Box01.Orientation "V"
+  set Box01.WinTitle "Free plane"
+
+new creaMaracasVisu:SliceImage Box02
+  set Box02.InterpolationMode "1"
+  set Box02.Slice "0"
+  set Box02.TypeOrientation "3"
+  set Box02.Z "0"
+
+new creaVtk:TransformVector Box03
+  set Box03.InX "1  0  0"
+  set Box03.InY "0 1   0"
+  set Box03.InZ "0 0 1"
+
+new creaMaracasVisu:ImageActor Box04
+  set Box04.InterpolationMode "1"
+  set Box04.Opacity "1"
+
+new vtk:Transform Box06
+
+new creaVtk:ConcatTransform Box07
+
+new std:ConcatStrings Box08
+
+new std:ConcatStrings Box09
+  set Box09.In2 "  "
+  set Box09.In4 "  "
+
+new creaVtk:ScalarsToColors Box10
+  set Box10.BelowAboveRangeTransparence "false"
+  set Box10.Type "101"
+
+new vtk:vtkImageDataPointerRelay Box11
+
+new std:MagicBox Box12
+
+new creaMaracasVisu:wxVtkBaseView_Info Box13
+  set Box13.InteractionType "12"
+
+new wx:CheckBox Box14
+  set Box14.Title "Pivot plane"
+
+new creaMaracasVisu:DrawAxisTree3D Box15
+  set Box15.Colour "1 0 0    1 1 0    0 0 1"
+  set Box15.ColourLaw "2"
+  set Box15.LineWidth "2"
+  set Box15.lstIndexs "2 2 2"
+  set Box15.lstPointX "0 20       0 0           0 0"
+  set Box15.lstPointY "0 0         0  80       0 0"
+  set Box15.lstPointZ "0 0         0  0         0 20"
+
+new creaMaracasVisu:TransformWidget2 Box16
+  set Box16.Type "1"
+
+new std:MathOperationVector Box17
+  set Box17.Type "2"
+
+new vtk:UpdateRender Box19
+  set Box19.Active "true"
+
+new std:MultipleInputs Box20
+
+
+connect Box02.Out Box04.In
+connect Box08.Out Box02.AxisOrigin
+connect Box06.Out Box07.In3
+connect Box07.Out Box04.Transform
+connect Box03.OutX Box09.In1
+connect Box03.OutY Box09.In3
+connect Box03.OutZ Box09.In5
+connect Box09.Out Box02.ResliceAxesDirectionCosines
+connect Box10.LookupTable Box04.LookupTable
+connect Box11.Out Box02.In
+connect Box11.Out Box00.In
+connect Box12.Out Box04.Renderer
+connect Box13.WindowColorLevel Box10.WindowColorLevel
+connect Box13.BoxChange Box10.BoxExecute
+connect Box07.Out Box15.Transform
+connect Box12.Out Box15.Renderer
+connect Box16.Out Box03.Transform
+connect Box16.Out Box07.In1
+connect Box16.Widget Box01.Widget2
+connect Box08.Out Box17.In0
+connect Box00.Spacing Box17.In1
+connect Box17.Out Box06.Translate
+connect Box16.ActualPoint Box08.In1
+connect Box14.Out Box15.Active
+connect Box16.BoxChange Box15.BoxExecute
+connect Box13.Image Box11.In
+connect Box14.Out Box04.Active
+connect Box12.Out Box19.Renderer
+connect Box14.Widget Box01.Widget1
+connect Box04.BoxChange Box20.In1
+connect Box15.BoxChange Box20.In2
+connect Box20.BoxChange Box19.BoxExecute
+connect Box14.BoxChange Box20.In4
+connect Box14.Out Box19.Active
+
+# Complex input ports
+input possiblePoint Box16.PossiblePoint " "
+input wxvtkbaseview1 Box13.wxVtkBaseView " "
+input wxvtkbaseview2 Box13.wxVtkBaseView2 " "
+input render Box12.In " "
+input wxvtkbaseview3 Box13.wxVtkBaseView3 " "
+
+# Complex output ports
+output widgetOut Box01.Widget " "
+
+
+endefine