]> Creatis software - creaVtk.git/commitdiff
#3552 Plane xy xz yz Vectors visu
authoreduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 3 Dec 2024 14:13:37 +0000 (15:13 +0100)
committereduardo.davila@creatis.insa-lyon.fr <eduardo.davila@creatis.insa-lyon.fr>
Tue, 3 Dec 2024 14:13:37 +0000 (15:13 +0100)
12 files changed:
bbtk_creaVtk_PKG/.DS_Store
bbtk_creaVtk_PKG/bbs/boxes/PlaneTensorVisu_Widget.bbg
bbtk_creaVtk_PKG/bbs/boxes/PlaneTensorVisu_Widget.bbs
bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Interface.bbg
bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Interface.bbs
bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Widget.bbg
bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Widget.bbs
bbtk_creaVtk_PKG/bbs/boxes/VectorsTensors_Widget.bbg
bbtk_creaVtk_PKG/bbs/boxes/VectorsTensors_Widget.bbs
bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkVectorsVisu.cxx
lib/creaVtk/vtkVectorsVisu.cpp

index 8fd3482ce295b13412c4a47a718c628794e1ca1a..9e9655d8fd9a5157af96d9e6d516da62ad3f1647 100644 (file)
Binary files a/bbtk_creaVtk_PKG/.DS_Store and b/bbtk_creaVtk_PKG/.DS_Store differ
index 47294a7eba7b8b0b0d9ab481c5c1113cb3427113..db082017ad0401786d04755f7bb39fe97dbc0b2a 100644 (file)
@@ -62,7 +62,7 @@ ISEXEC:FALSE
 -23.855784:52.258658:-900.000000
 FIN_BOX
 BOX
-creaVtk:PlaneVectorViso_Interface:Box06
+creaVtk:PlaneVectorVisu_Interface:Box06
 ISEXEC:FALSE
 54.274543:36.839315:-900.000000
 125.449543:26.839315:-900.000000
index b8a99f5bb18500404e7f8f0ecf82a6aa17380b92..798da78a792d53de138fa029c5aa4a0811b60841 100644 (file)
@@ -27,7 +27,7 @@ new vtkImageDataPointerRelay Box04
 
 new MagicBox Box05
 
-new PlaneVectorViso_Interface Box06
+new PlaneVectorVisu_Interface Box06
   set Box06.typeFormsStr "Cube Sphere Superquadric"
 
 new TensorsVisu Box07
index 63b92d40455b98ed51ef3420f6c9daba6f1a29b2..c1a6005990eb3f18c10d4871539d23fbc6dfc2c7 100644 (file)
@@ -1,59 +1,72 @@
 # ----------------------------------
-# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
-# - /tmpEED/creaTools/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Interface.bbg
+# - BBTKGEditor v 1.6 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Interface.bbg
 # ----------------------------------
 
 APP_START
 CATEGORY:<VOID>
 DESCRIPTION:Description ??
 AUTHOR:Author ??
+EXPORTFORMAT:0
 COMPLEXBOX:TRUE
-COMPLEXBOXNAME:PlaneVectorViso_Interface
+COMPLEXBOXNAME:PlaneVectorVisu_Interface
 PACKAGENAME:creaVtk
-COMPLEXOUTPUTS:8
+COMPLEXOUTPUTS:11
 COMPLEX_PORT
 boxChange
--55.620936:-52.838253:-900.000000
+-38.934655:-15.851476:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 widget
-5.487815:-55.801788:-900.000000
+3.841470:-16.740536:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 ActivePlaneControl
--22.349772:-52.654549:-900.000000
+-15.644840:-15.796365:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 AcitiveVector
-80.231895:-54.018263:-900.000000
+56.162326:-16.205479:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 Opacity
-136.144207:-52.806072:-900.000000
+95.300945:-15.841822:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 ScaleFactor
-170.388604:-54.927407:-900.000000
+119.272023:-16.478222:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 Ratio
-68.944467:-60.974247:-900.000000
+48.261127:-18.292274:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 typeForm
-102.276330:-54.205701:-900.000000
+71.593431:-16.261710:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+active_xy
+-69.649214:-16.573658:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+avtive_xz
+-64.107295:-16.761520:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+active_yz
+-58.471446:-16.479727:-900.000000
 FIN_COMPLEX_PORT
 COMPLEXINPUTS:1
 COMPLEX_PORT
 typeFormsStr
-107.913964:117.907952:-900.000000
+82.718534:85.458673:-900.000000
 FIN_COMPLEX_PORT
-BOXES:14
+BOXES:20
 BOX
 wx:Slider:Box00
 ISEXEC:FALSE
-31.999641:48.109206:-900.000000
-83.399641:38.109206:-900.000000
+25.012707:20.758872:-900.000000
+54.812707:18.258872:-900.000000
 PORT
 In:"30"
 PORT
@@ -70,44 +83,44 @@ FIN_BOX
 BOX
 wx:CheckBox:Box01
 ISEXEC:FALSE
--29.436005:97.853036:-900.000000
-16.138995:87.853036:-900.000000
+-8.448071:48.911842:-900.000000
+13.181929:46.411842:-900.000000
 PORT
 In:"false"
 PORT
 ReactiveOnKeystroke:"true"
 PORT
-Title:"Plane control"
+Title:"control"
 FIN_BOX
 BOX
 wx:LayoutLine:Box03
 ISEXEC:FALSE
-20.799855:-14.759536:-900.000000
-78.359855:-24.759536:-900.000000
+14.559898:-4.427861:-900.000000
+47.879898:-6.927861:-900.000000
 PORT
 WinTitle:"Plane flield"
 FIN_BOX
 BOX
 wx:LayoutTab:Box04
 ISEXEC:FALSE
-10.485060:-37.613537:-900.000000
-68.045060:-47.613537:-900.000000
+7.339542:-11.284061:-900.000000
+40.659542:-13.784061:-900.000000
 FIN_BOX
 BOX
 wx:CheckBox:Box05
 ISEXEC:FALSE
-27.771749:97.805412:-900.000000
-73.346749:87.805412:-900.000000
+4.711390:44.359258:-900.000000
+26.341390:41.859258:-900.000000
 PORT
 ReactiveOnKeystroke:"true"
 PORT
-Title:"Active Vectors"
+Title:"Free"
 FIN_BOX
 BOX
 wx:Slider:Box06
 ISEXEC:FALSE
-96.421419:49.928393:-900.000000
-147.821419:39.928393:-900.000000
+66.807373:29.968648:-900.000000
+96.607373:27.468648:-900.000000
 PORT
 In:"100"
 PORT
@@ -124,16 +137,16 @@ FIN_BOX
 BOX
 std:Div:Box07
 ISEXEC:FALSE
-124.614860:-26.900311:-900.000000
-157.389860:-36.900311:-900.000000
+87.230402:-8.070093:-900.000000
+108.155402:-10.570093:-900.000000
 PORT
 In2:"100.0"
 FIN_BOX
 BOX
 wx:Slider:Box08
 ISEXEC:FALSE
-191.649098:61.508736:-900.000000
-243.049098:51.508736:-900.000000
+133.466748:33.442751:-900.000000
+163.266748:30.942751:-900.000000
 PORT
 ChangeResolution:"true"
 PORT
@@ -152,32 +165,32 @@ FIN_BOX
 BOX
 std:Div:Box09
 ISEXEC:FALSE
-170.827909:-26.212517:-900.000000
-203.602909:-36.212517:-900.000000
+119.579536:-7.863755:-900.000000
+140.504536:-10.363755:-900.000000
 PORT
 In2:"100.0"
 FIN_BOX
 BOX
 wx:LayoutLine:Box10
 ISEXEC:FALSE
-8.365236:62.514618:-900.000000
-65.925236:52.514618:-900.000000
+3.792803:28.243550:-900.000000
+37.112803:25.743550:-900.000000
 PORT
-Orientation:"H"
+Orientation:"V"
 FIN_BOX
 BOX
 wx:LayoutLine:Box11
 ISEXEC:FALSE
-47.351525:19.503081:-900.000000
-104.911525:9.503081:-900.000000
+31.495778:7.913786:-900.000000
+64.815778:5.413786:-900.000000
 PORT
 Orientation:"H"
 FIN_BOX
 BOX
 wx:ComboBox:Box12
 ISEXEC:FALSE
-113.883224:81.760768:-900.000000
-159.458224:71.760768:-900.000000
+79.030636:39.518360:-900.000000
+105.310636:37.018360:-900.000000
 PORT
 In:"A B C"
 PORT
@@ -186,18 +199,74 @@ FIN_BOX
 BOX
 wx:LayoutLine:Box13
 ISEXEC:FALSE
-124.445059:13.148288:-900.000000
-170.020059:3.148288:-900.000000
+87.111541:3.944486:-900.000000
+120.431541:1.444486:-900.000000
 PORT
 Orientation:"H"
 FIN_BOX
 BOX
 std:SharedMemory:Box15
 ISEXEC:FALSE
--76.284843:36.368355:-900.000000
--30.709843:26.368355:-900.000000
+-43.218130:9.877267:-900.000000
+-20.458130:7.377267:-900.000000
+FIN_BOX
+BOX
+wx:LayoutLine:Box16
+ISEXEC:FALSE
+-85.271364:42.217201:-900.000000
+-51.951364:39.717201:-900.000000
+PORT
+Orientation:"H"
+FIN_BOX
+BOX
+wx:CheckBox:Box17
+ISEXEC:FALSE
+-85.405279:58.765018:-900.000000
+-63.775279:56.265018:-900.000000
+PORT
+In:"false"
+PORT
+ReactiveOnKeystroke:"true"
+PORT
+Title:"XY"
+FIN_BOX
+BOX
+wx:CheckBox:Box18
+ISEXEC:FALSE
+-76.281134:53.888110:-900.000000
+-54.651134:51.388110:-900.000000
+PORT
+In:"false"
+PORT
+ReactiveOnKeystroke:"true"
+PORT
+Title:"XZ"
+FIN_BOX
+BOX
+wx:CheckBox:Box19
+ISEXEC:FALSE
+-70.157516:49.511289:-900.000000
+-48.527516:47.011289:-900.000000
+PORT
+In:"false"
+PORT
+ReactiveOnKeystroke:"true"
+PORT
+Title:"YZ"
+FIN_BOX
+BOX
+wx:OutputText:Box20
+ISEXEC:FALSE
+19.192871:38.142357:-900.000000
+40.862871:35.642357:-900.000000
 FIN_BOX
-CONNECTIONS:28
+BOX
+std:MultipleInputs:Box21
+ISEXEC:FALSE
+-54.970140:33.506544:-900.000000
+-33.000140:31.006544:-900.000000
+FIN_BOX
+CONNECTIONS:40
 CONNECTION
 Box03:Widget:Box04:Widget1
 NumberOfControlPoints:0
@@ -238,21 +307,12 @@ CONNECTION
 Box06:Widget:Box11:Widget2
 NumberOfControlPoints:0
 CONNECTION
-Box10:Widget:Box03:Widget1
-NumberOfControlPoints:0
-CONNECTION
-Box11:Widget:Box03:Widget2
-NumberOfControlPoints:0
-CONNECTION
 Box08:Widget:Box13:Widget1
 NumberOfControlPoints:0
 CONNECTION
 Box12:Widget:Box13:Widget2
 NumberOfControlPoints:0
 CONNECTION
-Box13:Widget:Box03:Widget3
-NumberOfControlPoints:0
-CONNECTION
 Box12:Out:typeForm:typeForm
 NumberOfControlPoints:0
 CONNECTION
@@ -282,4 +342,49 @@ NumberOfControlPoints:0
 CONNECTION
 Box15:BoxChange:Box04:BoxExecute
 NumberOfControlPoints:0
+CONNECTION
+Box11:Widget:Box03:Widget4
+NumberOfControlPoints:0
+CONNECTION
+Box13:Widget:Box03:Widget6
+NumberOfControlPoints:0
+CONNECTION
+Box17:Widget:Box16:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box18:Widget:Box16:Widget4
+NumberOfControlPoints:0
+CONNECTION
+Box19:Widget:Box16:Widget6
+NumberOfControlPoints:0
+CONNECTION
+Box16:Widget:Box03:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box10:Widget:Box16:Widget8
+NumberOfControlPoints:0
+CONNECTION
+Box20:Widget:Box10:Widget4
+NumberOfControlPoints:0
+CONNECTION
+Box17:BoxChange:Box21:In1
+NumberOfControlPoints:0
+CONNECTION
+Box18:BoxChange:Box21:In2
+NumberOfControlPoints:0
+CONNECTION
+Box19:BoxChange:Box21:In3
+NumberOfControlPoints:0
+CONNECTION
+Box21:BoxChange:Box15:In6
+NumberOfControlPoints:0
+CONNECTION
+Box17:Out:active_xy:active_xy
+NumberOfControlPoints:0
+CONNECTION
+Box18:Out:avtive_xz:avtive_xz
+NumberOfControlPoints:0
+CONNECTION
+Box19:Out:active_yz:active_yz
+NumberOfControlPoints:0
 APP_END
index 23766a147e16dfd8083ce649c687be3067635e60..d853c9118c767b66610947e922cb0a299394eb5c 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
-# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
-# - /tmpEED/creaTools/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Interface.bbs
+# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
+# - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Interface.bbs
 # ----------------------------------
 
 include std
@@ -8,7 +8,7 @@ include itkvtk
 include wx
 include std
 
-define PlaneVectorViso_Interface creaVtk
+define PlaneVectorVisu_Interface creaVtk
 
 author "Author ??"
 description "Description ??"
@@ -26,7 +26,7 @@ new wx:Slider Box00
 new wx:CheckBox Box01
   set Box01.In "false"
   set Box01.ReactiveOnKeystroke "true"
-  set Box01.Title "Plane control"
+  set Box01.Title "control"
 
 new wx:LayoutLine Box03
   set Box03.WinTitle "Plane flield"
@@ -35,7 +35,7 @@ new wx:LayoutTab Box04
 
 new wx:CheckBox Box05
   set Box05.ReactiveOnKeystroke "true"
-  set Box05.Title "Active Vectors"
+  set Box05.Title "Free"
 
 new wx:Slider Box06
   set Box06.In "100"
@@ -61,7 +61,7 @@ new std:Div Box09
   set Box09.In2 "100.0"
 
 new wx:LayoutLine Box10
-  set Box10.Orientation "H"
+  set Box10.Orientation "V"
 
 new wx:LayoutLine Box11
   set Box11.Orientation "H"
@@ -75,6 +75,28 @@ new wx:LayoutLine Box13
 
 new std:SharedMemory Box15
 
+new wx:LayoutLine Box16
+  set Box16.Orientation "H"
+
+new wx:CheckBox Box17
+  set Box17.In "false"
+  set Box17.ReactiveOnKeystroke "true"
+  set Box17.Title "XY"
+
+new wx:CheckBox Box18
+  set Box18.In "false"
+  set Box18.ReactiveOnKeystroke "true"
+  set Box18.Title "XZ"
+
+new wx:CheckBox Box19
+  set Box19.In "false"
+  set Box19.ReactiveOnKeystroke "true"
+  set Box19.Title "YZ"
+
+new wx:OutputText Box20
+
+new std:MultipleInputs Box21
+
 
 connect Box03.Widget Box04.Widget1
 connect Box06.Out Box07.In1
@@ -83,11 +105,8 @@ connect Box01.Widget Box10.Widget1
 connect Box05.Widget Box10.Widget2
 connect Box00.Widget Box11.Widget1
 connect Box06.Widget Box11.Widget2
-connect Box10.Widget Box03.Widget1
-connect Box11.Widget Box03.Widget2
 connect Box08.Widget Box13.Widget1
 connect Box12.Widget Box13.Widget2
-connect Box13.Widget Box03.Widget3
 connect Box00.BoxChange Box15.In
 connect Box01.BoxChange Box15.In1
 connect Box05.BoxChange Box15.In2
@@ -95,6 +114,18 @@ connect Box06.BoxChange Box15.In3
 connect Box08.BoxChange Box15.In4
 connect Box12.BoxChange Box15.In5
 connect Box15.BoxChange Box04.BoxExecute
+connect Box11.Widget Box03.Widget4
+connect Box13.Widget Box03.Widget6
+connect Box17.Widget Box16.Widget2
+connect Box18.Widget Box16.Widget4
+connect Box19.Widget Box16.Widget6
+connect Box16.Widget Box03.Widget2
+connect Box10.Widget Box16.Widget8
+connect Box20.Widget Box10.Widget4
+connect Box17.BoxChange Box21.In1
+connect Box18.BoxChange Box21.In2
+connect Box19.BoxChange Box21.In3
+connect Box21.BoxChange Box15.In6
 
 # Complex input ports
 input typeFormsStr Box12.In " "
@@ -108,6 +139,9 @@ output ScaleFactor Box09.Out " "
 output Ratio Box00.Out " "
 output typeForm Box12.Out " "
 output boxChange Box15.BoxChange " "
+output active_xy Box17.Out " "
+output avtive_xz Box18.Out " "
+output active_yz Box19.Out " "
 
 
 endefine
index aff184d18c06fb827c41cba9efb0fc664c6c0611..c5e10363a27d3b7db6bef18552ce680b78171d08 100644 (file)
@@ -1,81 +1,86 @@
 # ----------------------------------
-# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
-# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Widget.bbg
+# - BBTKGEditor v 1.6 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Widget.bbg
 # ----------------------------------
 
 APP_START
 CATEGORY:<VOID>
 DESCRIPTION:Description ??
 AUTHOR:Author ??
+EXPORTFORMAT:0
 COMPLEXBOX:TRUE
 COMPLEXBOXNAME:PlaneVectorVisu_Widget
 PACKAGENAME:creaVtk
 COMPLEXOUTPUTS:2
 COMPLEX_PORT
 Widget
-86.258910:-108.178434:-900.000000
+57.919555:-90.419950:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 boxchange
--75.932205:-101.708611:-900.000000
+-46.276337:-89.923007:-900.000000
 FIN_COMPLEX_PORT
-COMPLEXINPUTS:3
+COMPLEXINPUTS:4
 COMPLEX_PORT
 vtkImageData
-38.028121:89.676762:-900.000000
+34.045988:67.335122:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 renderer
--52.117833:88.203991:-900.000000
+-37.376390:69.162439:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 boxexecute
--104.232070:88.823851:-900.000000
+-65.536146:67.079249:-900.000000
 FIN_COMPLEX_PORT
-BOXES:9
+COMPLEX_PORT
+_point
+-100.903572:70.586075:-900.000000
+FIN_COMPLEX_PORT
+BOXES:35
 BOX
 creaVtk:VectorsVisu:Box00
 ISEXEC:FALSE
--4.465574:-69.418679:-900.000000
-33.159426:-79.418679:-900.000000
+-6.756539:-48.963041:-900.000000
+15.013461:-51.463041:-900.000000
 FIN_BOX
 BOX
 creaVtk:PlaneWidget:Box01
 ISEXEC:FALSE
--66.409855:2.022991:-900.000000
--27.884855:-7.977009:-900.000000
+-19.408397:-19.512883:-900.000000
+2.436603:-22.012883:-900.000000
 FIN_BOX
 BOX
 vtk:ProbeFilter:Box03
 ISEXEC:FALSE
--29.657798:-23.712064:-900.000000
-6.742202:-33.712064:-900.000000
+-10.171101:-27.687229:-900.000000
+11.468899:-30.187229:-900.000000
 FIN_BOX
 BOX
 vtk:vtkImageDataPointerRelay:Box04
 ISEXEC:FALSE
-31.994878:59.395975:-900.000000
-84.169878:49.395975:-900.000000
+29.822718:58.250886:-900.000000
+53.032718:55.750886:-900.000000
 FIN_BOX
 BOX
 std:MagicBox:Box05
 ISEXEC:FALSE
--63.018802:49.434694:-900.000000
--26.943802:39.434694:-900.000000
+-36.686858:55.262502:-900.000000
+-15.086858:52.762502:-900.000000
 FIN_BOX
 BOX
-creaVtk:PlaneVectorViso_Interface:Box06
+creaVtk:PlaneVectorVisu_Interface:Box06
 ISEXEC:FALSE
-53.843860:42.438188:-900.000000
-105.768860:32.438188:-900.000000
+-45.951472:29.990734:-900.000000
+-22.756472:27.490734:-900.000000
 PORT
 typeFormsStr:"Line Arrow"
 FIN_BOX
 BOX
 vtk:UpdateRender:Box13
 ISEXEC:FALSE
--129.325679:-71.617843:-900.000000
--89.000679:-81.617843:-900.000000
+-18.754133:-69.343749:-900.000000
+3.270867:-71.843749:-900.000000
 PORT
 Active:"true"
 PORT
@@ -84,16 +89,212 @@ FIN_BOX
 BOX
 std:SharedMemory:Box15
 ISEXEC:FALSE
--79.072661:-36.761184:-900.000000
--37.897661:-46.761184:-900.000000
+-29.331298:-35.383878:-900.000000
+-6.571298:-37.883878:-900.000000
 FIN_BOX
 BOX
 std:MagicBox:Box11
 ISEXEC:FALSE
--116.304953:49.494646:-900.000000
--80.229953:39.494646:-900.000000
+-73.987164:55.280487:-900.000000
+-52.387164:52.780487:-900.000000
+FIN_BOX
+BOX
+vtk:ImageVtkProperties:Box10
+ISEXEC:FALSE
+-160.286184:40.103245:-900.000000
+-137.751184:37.603245:-900.000000
+FIN_BOX
+BOX
+std:MagicBox:Box12
+ISEXEC:FALSE
+-122.136747:39.285446:-900.000000
+-100.536747:36.785446:-900.000000
+FIN_BOX
+BOX
+std:GetVectorIntElement:Box14
+ISEXEC:FALSE
+-125.320317:31.887685:-900.000000
+-102.660317:29.387685:-900.000000
+PORT
+I:"0"
+FIN_BOX
+BOX
+std:GetVectorIntElement:Box16
+ISEXEC:FALSE
+-116.596868:28.048158:-900.000000
+-93.936868:25.548158:-900.000000
+PORT
+I:"1"
+FIN_BOX
+BOX
+std:GetVectorIntElement:Box17
+ISEXEC:FALSE
+-101.756321:23.766568:-900.000000
+-79.096321:21.266568:-900.000000
+PORT
+I:"2"
+FIN_BOX
+BOX
+std:MathOperationVector:Box18
+ISEXEC:FALSE
+-162.886078:32.173145:-900.000000
+-138.366078:29.673145:-900.000000
+PORT
+In1:"2 2 2"
+PORT
+Type:"3"
+FIN_BOX
+BOX
+std:GetVectorDoubleElement:Box19
+ISEXEC:FALSE
+-172.137701:24.046719:-900.000000
+-149.012701:21.546719:-900.000000
+PORT
+I:"0"
 FIN_BOX
-CONNECTIONS:23
+BOX
+std:GetVectorDoubleElement:Box20
+ISEXEC:FALSE
+-164.263776:18.544701:-900.000000
+-141.138776:16.044701:-900.000000
+PORT
+I:"0"
+FIN_BOX
+BOX
+std:GetVectorDoubleElement:Box21
+ISEXEC:FALSE
+-152.139105:12.292551:-900.000000
+-129.014105:9.792551:-900.000000
+PORT
+I:"0"
+FIN_BOX
+BOX
+std:ConcatStrings:Box22
+ISEXEC:FALSE
+-202.656805:-24.280510:-900.000000
+-179.896805:-26.780510:-900.000000
+PORT
+In2:"  "
+PORT
+In4:"  "
+FIN_BOX
+BOX
+std:MathOperationVector:Box23
+ISEXEC:FALSE
+-204.084512:-32.495504:-900.000000
+-179.564512:-34.995504:-900.000000
+PORT
+Type:"2"
+FIN_BOX
+BOX
+creaVtk:PlaneSource:Box24
+ISEXEC:FALSE
+-204.507130:-42.671237:-900.000000
+-182.662130:-45.171237:-900.000000
+PORT
+Normal:"0 0 1"
+FIN_BOX
+BOX
+std:MagicBox:Box25
+ISEXEC:FALSE
+-132.380726:1.542771:-900.000000
+-110.780726:-0.957229:-900.000000
+FIN_BOX
+BOX
+vtk:ProbeFilter:Box26
+ISEXEC:FALSE
+-201.956683:-50.060033:-900.000000
+-180.316683:-52.560033:-900.000000
+FIN_BOX
+BOX
+creaVtk:VectorsVisu:Box27
+ISEXEC:FALSE
+-206.186175:-58.076439:-900.000000
+-184.416175:-60.576439:-900.000000
+FIN_BOX
+BOX
+std:MultipleInputs:Box28
+ISEXEC:FALSE
+-104.850896:2.020354:-900.000000
+-82.880896:-0.479646:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box29
+ISEXEC:FALSE
+-147.262043:-24.249057:-900.000000
+-124.502043:-26.749057:-900.000000
+PORT
+In2:"  "
+PORT
+In4:"  "
+FIN_BOX
+BOX
+std:MathOperationVector:Box30
+ISEXEC:FALSE
+-148.139653:-31.501382:-900.000000
+-123.619653:-34.001382:-900.000000
+PORT
+Type:"2"
+FIN_BOX
+BOX
+creaVtk:PlaneSource:Box31
+ISEXEC:FALSE
+-149.222387:-41.897153:-900.000000
+-127.377387:-44.397153:-900.000000
+PORT
+Normal:"0 1 0"
+FIN_BOX
+BOX
+vtk:ProbeFilter:Box32
+ISEXEC:FALSE
+-146.011824:-49.753532:-900.000000
+-124.371824:-52.253532:-900.000000
+FIN_BOX
+BOX
+creaVtk:VectorsVisu:Box33
+ISEXEC:FALSE
+-149.182380:-58.897636:-900.000000
+-127.412380:-61.397636:-900.000000
+FIN_BOX
+BOX
+std:ConcatStrings:Box34
+ISEXEC:FALSE
+-100.283757:-19.307993:-900.000000
+-77.523757:-21.807993:-900.000000
+PORT
+In2:"  "
+PORT
+In4:"  "
+FIN_BOX
+BOX
+std:MathOperationVector:Box35
+ISEXEC:FALSE
+-101.161367:-26.560318:-900.000000
+-76.641367:-29.060318:-900.000000
+PORT
+Type:"2"
+FIN_BOX
+BOX
+creaVtk:PlaneSource:Box36
+ISEXEC:FALSE
+-101.033889:-37.561195:-900.000000
+-79.188889:-40.061195:-900.000000
+PORT
+Normal:"1 0 0"
+FIN_BOX
+BOX
+vtk:ProbeFilter:Box37
+ISEXEC:FALSE
+-99.941197:-44.358638:-900.000000
+-78.301197:-46.858638:-900.000000
+FIN_BOX
+BOX
+creaVtk:VectorsVisu:Box38
+ISEXEC:FALSE
+-102.506647:-58.646145:-900.000000
+-80.736647:-61.146145:-900.000000
+FIN_BOX
+CONNECTIONS:86
 CONNECTION
 Box03:Out:Box00:In
 NumberOfControlPoints:0
@@ -163,4 +364,193 @@ NumberOfControlPoints:0
 CONNECTION
 Box01:BoxChange:Box15:In3
 NumberOfControlPoints:0
+CONNECTION
+Box04:Out:Box10:In
+NumberOfControlPoints:0
+CONNECTION
+_point:_point:Box12:In
+NumberOfControlPoints:0
+CONNECTION
+Box12:Out:Box14:In
+NumberOfControlPoints:0
+CONNECTION
+Box12:Out:Box16:In
+NumberOfControlPoints:0
+CONNECTION
+Box12:Out:Box17:In
+NumberOfControlPoints:0
+CONNECTION
+Box10:Size:Box18:In0
+NumberOfControlPoints:0
+CONNECTION
+Box18:Out:Box19:In
+NumberOfControlPoints:0
+CONNECTION
+Box18:Out:Box20:In
+NumberOfControlPoints:0
+CONNECTION
+Box18:Out:Box21:In
+NumberOfControlPoints:0
+CONNECTION
+Box22:Out:Box23:In0
+NumberOfControlPoints:0
+CONNECTION
+Box23:Out:Box24:Center
+NumberOfControlPoints:0
+CONNECTION
+Box10:Spacing:Box23:In1
+NumberOfControlPoints:0
+CONNECTION
+Box25:Out:Box24:XResolution
+NumberOfControlPoints:0
+CONNECTION
+Box25:Out:Box24:YResolution
+NumberOfControlPoints:0
+CONNECTION
+Box06:Ratio:Box25:In
+NumberOfControlPoints:0
+CONNECTION
+Box24:PolyData:Box26:Input
+NumberOfControlPoints:0
+CONNECTION
+Box04:Out:Box26:Source
+NumberOfControlPoints:0
+CONNECTION
+Box26:Out:Box27:In
+NumberOfControlPoints:0
+CONNECTION
+Box06:active_xy:Box27:Active
+NumberOfControlPoints:0
+CONNECTION
+Box19:Out:Box22:In1
+NumberOfControlPoints:0
+CONNECTION
+Box20:Out:Box22:In3
+NumberOfControlPoints:0
+CONNECTION
+Box17:Out:Box22:In5
+NumberOfControlPoints:0
+CONNECTION
+Box11:Out:Box28:In1
+NumberOfControlPoints:0
+CONNECTION
+Box28:BoxChange:Box27:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box06:boxChange:Box28:In2
+NumberOfControlPoints:0
+CONNECTION
+Box06:Opacity:Box27:Opacity
+NumberOfControlPoints:0
+CONNECTION
+Box05:Out:Box27:Renderer
+NumberOfControlPoints:0
+CONNECTION
+Box06:ScaleFactor:Box27:ScaleFactor
+NumberOfControlPoints:0
+CONNECTION
+Box06:typeForm:Box27:TypeForm
+NumberOfControlPoints:0
+CONNECTION
+Box29:Out:Box30:In0
+NumberOfControlPoints:0
+CONNECTION
+Box30:Out:Box31:Center
+NumberOfControlPoints:0
+CONNECTION
+Box31:PolyData:Box32:Input
+NumberOfControlPoints:0
+CONNECTION
+Box32:Out:Box33:In
+NumberOfControlPoints:0
+CONNECTION
+Box19:Out:Box29:In1
+NumberOfControlPoints:0
+CONNECTION
+Box21:Out:Box29:In5
+NumberOfControlPoints:0
+CONNECTION
+Box16:Out:Box29:In3
+NumberOfControlPoints:0
+CONNECTION
+Box10:Spacing:Box30:In1
+NumberOfControlPoints:0
+CONNECTION
+Box25:Out:Box31:XResolution
+NumberOfControlPoints:0
+CONNECTION
+Box25:Out:Box31:YResolution
+NumberOfControlPoints:0
+CONNECTION
+Box04:Out:Box32:Source
+NumberOfControlPoints:0
+CONNECTION
+Box28:BoxChange:Box33:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box06:Opacity:Box33:Opacity
+NumberOfControlPoints:0
+CONNECTION
+Box05:Out:Box33:Renderer
+NumberOfControlPoints:0
+CONNECTION
+Box06:ScaleFactor:Box33:ScaleFactor
+NumberOfControlPoints:0
+CONNECTION
+Box06:typeForm:Box33:TypeForm
+NumberOfControlPoints:0
+CONNECTION
+Box34:Out:Box35:In0
+NumberOfControlPoints:0
+CONNECTION
+Box35:Out:Box36:Center
+NumberOfControlPoints:0
+CONNECTION
+Box36:PolyData:Box37:Input
+NumberOfControlPoints:0
+CONNECTION
+Box37:Out:Box38:In
+NumberOfControlPoints:0
+CONNECTION
+Box20:Out:Box34:In3
+NumberOfControlPoints:0
+CONNECTION
+Box21:Out:Box34:In5
+NumberOfControlPoints:0
+CONNECTION
+Box14:Out:Box34:In1
+NumberOfControlPoints:0
+CONNECTION
+Box10:Spacing:Box35:In1
+NumberOfControlPoints:0
+CONNECTION
+Box25:Out:Box36:XResolution
+NumberOfControlPoints:0
+CONNECTION
+Box25:Out:Box36:YResolution
+NumberOfControlPoints:0
+CONNECTION
+Box04:Out:Box37:Source
+NumberOfControlPoints:0
+CONNECTION
+Box28:BoxChange:Box38:BoxExecute
+NumberOfControlPoints:0
+CONNECTION
+Box06:Opacity:Box38:Opacity
+NumberOfControlPoints:0
+CONNECTION
+Box06:ScaleFactor:Box38:ScaleFactor
+NumberOfControlPoints:0
+CONNECTION
+Box06:typeForm:Box38:TypeForm
+NumberOfControlPoints:0
+CONNECTION
+Box05:Out:Box38:Renderer
+NumberOfControlPoints:0
+CONNECTION
+Box06:avtive_xz:Box33:Active
+NumberOfControlPoints:0
+CONNECTION
+Box06:active_yz:Box38:Active
+NumberOfControlPoints:0
 APP_END
index 443ca11df87a9d93d2f0cf036f826455870dcbf9..e8e6876c2e9270f52a45bac38b8c7ad335802fbf 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
-# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
-# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Widget.bbs
+# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
+# - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/PlaneVectorVisu_Widget.bbs
 # ----------------------------------
 
 include std
@@ -26,7 +26,7 @@ new vtk:vtkImageDataPointerRelay Box04
 
 new std:MagicBox Box05
 
-new creaVtk:PlaneVectorViso_Interface Box06
+new creaVtk:PlaneVectorVisu_Interface Box06
   set Box06.typeFormsStr "Line Arrow"
 
 new vtk:UpdateRender Box13
@@ -37,6 +37,78 @@ new std:SharedMemory Box15
 
 new std:MagicBox Box11
 
+new vtk:ImageVtkProperties Box10
+
+new std:MagicBox Box12
+
+new std:GetVectorIntElement Box14
+  set Box14.I "0"
+
+new std:GetVectorIntElement Box16
+  set Box16.I "1"
+
+new std:GetVectorIntElement Box17
+  set Box17.I "2"
+
+new std:MathOperationVector Box18
+  set Box18.In1 "2 2 2"
+  set Box18.Type "3"
+
+new std:GetVectorDoubleElement Box19
+  set Box19.I "0"
+
+new std:GetVectorDoubleElement Box20
+  set Box20.I "0"
+
+new std:GetVectorDoubleElement Box21
+  set Box21.I "0"
+
+new std:ConcatStrings Box22
+  set Box22.In2 "  "
+  set Box22.In4 "  "
+
+new std:MathOperationVector Box23
+  set Box23.Type "2"
+
+new creaVtk:PlaneSource Box24
+  set Box24.Normal "0 0 1"
+
+new std:MagicBox Box25
+
+new vtk:ProbeFilter Box26
+
+new creaVtk:VectorsVisu Box27
+
+new std:MultipleInputs Box28
+
+new std:ConcatStrings Box29
+  set Box29.In2 "  "
+  set Box29.In4 "  "
+
+new std:MathOperationVector Box30
+  set Box30.Type "2"
+
+new creaVtk:PlaneSource Box31
+  set Box31.Normal "0 1 0"
+
+new vtk:ProbeFilter Box32
+
+new creaVtk:VectorsVisu Box33
+
+new std:ConcatStrings Box34
+  set Box34.In2 "  "
+  set Box34.In4 "  "
+
+new std:MathOperationVector Box35
+  set Box35.Type "2"
+
+new creaVtk:PlaneSource Box36
+  set Box36.Normal "1 0 0"
+
+new vtk:ProbeFilter Box37
+
+new creaVtk:VectorsVisu Box38
+
 
 connect Box03.Out Box00.In
 connect Box01.Out Box03.Input
@@ -56,11 +128,74 @@ connect Box06.boxChange Box15.In1
 connect Box15.Out Box13.BoxExecute
 connect Box11.Out Box15.In2
 connect Box01.BoxChange Box15.In3
+connect Box04.Out Box10.In
+connect Box12.Out Box14.In
+connect Box12.Out Box16.In
+connect Box12.Out Box17.In
+connect Box10.Size Box18.In0
+connect Box18.Out Box19.In
+connect Box18.Out Box20.In
+connect Box18.Out Box21.In
+connect Box22.Out Box23.In0
+connect Box23.Out Box24.Center
+connect Box10.Spacing Box23.In1
+connect Box25.Out Box24.XResolution
+connect Box25.Out Box24.YResolution
+connect Box06.Ratio Box25.In
+connect Box24.PolyData Box26.Input
+connect Box04.Out Box26.Source
+connect Box26.Out Box27.In
+connect Box06.active_xy Box27.Active
+connect Box19.Out Box22.In1
+connect Box20.Out Box22.In3
+connect Box17.Out Box22.In5
+connect Box11.Out Box28.In1
+connect Box28.BoxChange Box27.BoxExecute
+connect Box06.boxChange Box28.In2
+connect Box06.Opacity Box27.Opacity
+connect Box05.Out Box27.Renderer
+connect Box06.ScaleFactor Box27.ScaleFactor
+connect Box06.typeForm Box27.TypeForm
+connect Box29.Out Box30.In0
+connect Box30.Out Box31.Center
+connect Box31.PolyData Box32.Input
+connect Box32.Out Box33.In
+connect Box19.Out Box29.In1
+connect Box21.Out Box29.In5
+connect Box16.Out Box29.In3
+connect Box10.Spacing Box30.In1
+connect Box25.Out Box31.XResolution
+connect Box25.Out Box31.YResolution
+connect Box04.Out Box32.Source
+connect Box28.BoxChange Box33.BoxExecute
+connect Box06.Opacity Box33.Opacity
+connect Box05.Out Box33.Renderer
+connect Box06.ScaleFactor Box33.ScaleFactor
+connect Box06.typeForm Box33.TypeForm
+connect Box34.Out Box35.In0
+connect Box35.Out Box36.Center
+connect Box36.PolyData Box37.Input
+connect Box37.Out Box38.In
+connect Box20.Out Box34.In3
+connect Box21.Out Box34.In5
+connect Box14.Out Box34.In1
+connect Box10.Spacing Box35.In1
+connect Box25.Out Box36.XResolution
+connect Box25.Out Box36.YResolution
+connect Box04.Out Box37.Source
+connect Box28.BoxChange Box38.BoxExecute
+connect Box06.Opacity Box38.Opacity
+connect Box06.ScaleFactor Box38.ScaleFactor
+connect Box06.typeForm Box38.TypeForm
+connect Box05.Out Box38.Renderer
+connect Box06.avtive_xz Box33.Active
+connect Box06.active_yz Box38.Active
 
 # Complex input ports
 input vtkImageData Box04.In " "
 input renderer Box05.In " "
 input boxexecute Box11.BoxExecute " "
+input _point Box12.In " "
 
 # Complex output ports
 output Widget Box06.widget " "
index f1a04f4cc732878b458f4d45ffbf5d066db7d00e..cee937b37da233d2c552af5d5c8317f1b2395f05 100644 (file)
 # ----------------------------------
-# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
-# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsTensors_Widget.bbg
+# - BBTKGEditor v 1.6 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsTensors_Widget.bbg
 # ----------------------------------
 
 APP_START
 CATEGORY:<VOID>
 DESCRIPTION:Description ??
 AUTHOR:Author ??
+EXPORTFORMAT:0
 COMPLEXBOX:TRUE
 COMPLEXBOXNAME:VectorsTensors_Widget
 PACKAGENAME:creaVtk
 COMPLEXOUTPUTS:1
 COMPLEX_PORT
 widget
--133.205566:-215.108938:-900.000000
+-93.243896:-64.532681:-900.000000
 FIN_COMPLEX_PORT
-COMPLEXINPUTS:3
+COMPLEXINPUTS:5
 COMPLEX_PORT
 vtkImageData_vectors
--202.201495:171.786415:-900.000000
+-141.541046:51.535925:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 vtkImageData_tensors
--84.383009:173.600108:-900.000000
+-59.068106:52.080032:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 vtkRenderer
-128.828216:174.474869:-900.000000
+90.179751:52.342461:-900.000000
 FIN_COMPLEX_PORT
-BOXES:14
+COMPLEX_PORT
+_viewerExecute
+-181.613941:51.790685:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+_pointViewer
+-209.411741:54.697096:-900.000000
+FIN_COMPLEX_PORT
+BOXES:16
 BOX
 vtk:UpdateRender:Box22
 ISEXEC:FALSE
-91.911565:-119.753930:-900.000000
-132.236565:-129.753930:-900.000000
+64.338095:-35.926179:-900.000000
+86.363095:-38.426179:-900.000000
 PORT
 Active:"true"
 FIN_BOX
 BOX
 wx:LayoutTab:Box17
 ISEXEC:FALSE
--148.219985:-138.795108:-900.000000
--90.659985:-148.795108:-900.000000
+-103.753990:-41.638532:-900.000000
+-70.433990:-44.138532:-900.000000
 PORT
 WinTitle:"VectorsTensors Analysis"
 FIN_BOX
 BOX
 std:MultipleInputs:Box23
 ISEXEC:FALSE
-32.484087:-86.883484:-900.000000
-72.184087:-96.883484:-900.000000
+22.738861:-26.065045:-900.000000
+44.708861:-28.565045:-900.000000
 PORT
 BoxProcessMode:"Reactive"
 FIN_BOX
 BOX
 creaVtk:PlaneVectorVisu_Widget:Box41
 ISEXEC:FALSE
--290.289955:71.849699:-900.000000
--240.339955:61.849699:-900.000000
+-203.202968:21.554910:-900.000000
+-180.202968:19.054910:-900.000000
 FIN_BOX
 BOX
 wx:LayoutLine:Box14
 ISEXEC:FALSE
--249.537648:23.883192:-900.000000
--191.977648:13.883192:-900.000000
+-174.676354:7.164958:-900.000000
+-141.356354:4.664958:-900.000000
 PORT
 WinTitle:"Field"
 FIN_BOX
 BOX
 creaVtk:VolumeVectorVisu_Widget:Box18
 ISEXEC:FALSE
--214.258652:71.383715:-900.000000
--162.208652:61.383715:-900.000000
+-149.981056:21.415114:-900.000000
+-126.761056:18.915114:-900.000000
 FIN_BOX
 BOX
 wx:LayoutLine:Box16
 ISEXEC:FALSE
--107.142871:-103.536135:-900.000000
--49.582871:-113.536135:-900.000000
+-75.000010:-31.060840:-900.000000
+-41.680010:-33.560840:-900.000000
 PORT
 WinTitle:"Tensors"
 FIN_BOX
 BOX
 creaVtk:VolumeTensorVisu_Widget:Box19
 ISEXEC:FALSE
-60.863865:72.033730:-900.000000
-112.563865:62.033730:-900.000000
+42.604705:21.610119:-900.000000
+65.789705:19.110119:-900.000000
 FIN_BOX
 BOX
 creaVtk:PlaneTensorVisu_Widget:Box21
 ISEXEC:FALSE
--17.702072:72.444185:-900.000000
-31.897928:62.444185:-900.000000
+-12.391450:21.733256:-900.000000
+10.573550:19.233256:-900.000000
 FIN_BOX
 BOX
 creaVtk:PlaneWidget_StreamLineVisu_Widget:Box30
 ISEXEC:FALSE
--156.561665:28.789589:-900.000000
--94.686665:18.789589:-900.000000
+-109.593165:8.636877:-900.000000
+-85.398165:6.136877:-900.000000
 FIN_BOX
 BOX
 vtk:vtkImageDataPointerRelay:Box26
 ISEXEC:FALSE
--208.540015:141.393307:-900.000000
--154.090517:131.393307:-900.000000
+-145.978011:42.417992:-900.000000
+-122.768011:39.917992:-900.000000
 FIN_BOX
 BOX
 vtk:vtkImageDataPointerRelay:Box27
 ISEXEC:FALSE
--89.314298:137.998626:-900.000000
--37.139298:127.998626:-900.000000
+-62.520009:41.399588:-900.000000
+-39.310009:38.899588:-900.000000
 FIN_BOX
 BOX
 std:MagicBox:Box28
 ISEXEC:FALSE
-123.517825:137.982960:-900.000000
-159.592825:127.982960:-900.000000
+86.462477:41.394888:-900.000000
+108.062477:38.894888:-900.000000
 FIN_BOX
 BOX
 wx:LayoutTab:Box29
 ISEXEC:FALSE
--175.679382:-102.651254:-900.000000
--118.119382:-112.651254:-900.000000
+-122.975567:-30.795376:-900.000000
+-89.655567:-33.295376:-900.000000
 PORT
 WinTitle:"Vectors"
 FIN_BOX
-CONNECTIONS:31
+BOX
+std:MagicBox:Box15
+ISEXEC:FALSE
+-193.706938:37.145989:-900.000000
+-172.106938:34.645989:-900.000000
+FIN_BOX
+BOX
+std:MagicBox:Box20
+ISEXEC:FALSE
+-219.964001:37.144937:-900.000000
+-198.364001:34.644937:-900.000000
+FIN_BOX
+CONNECTIONS:35
 CONNECTION
 Box23:BoxChange:Box22:BoxExecute
 NumberOfControlPoints:0
@@ -219,4 +240,16 @@ NumberOfControlPoints:0
 CONNECTION
 Box18:boxchange:Box29:BoxExecute
 NumberOfControlPoints:0
+CONNECTION
+_viewerExecute:_viewerExecute:Box15:In
+NumberOfControlPoints:0
+CONNECTION
+Box15:BoxChange:Box41:boxexecute
+NumberOfControlPoints:0
+CONNECTION
+_pointViewer:_pointViewer:Box20:In
+NumberOfControlPoints:0
+CONNECTION
+Box20:Out:Box41:_point
+NumberOfControlPoints:0
 APP_END
index 8117a5041508c49af308c5c86afe12b88cd3d77f..b4e28b4e280aac03063dce43eafeec6a367e859a 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
-# - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
-# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsTensors_Widget.bbs
+# - BBTKGEditor v 1.6 BBS BlackBox Script (Complex Box)
+# - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsTensors_Widget.bbs
 # ----------------------------------
 
 include std
@@ -51,6 +51,10 @@ new std:MagicBox Box28
 new wx:LayoutTab Box29
   set Box29.WinTitle "Vectors"
 
+new std:MagicBox Box15
+
+new std:MagicBox Box20
+
 
 connect Box23.BoxChange Box22.BoxExecute
 connect Box41.boxchange Box23.In1
@@ -79,11 +83,15 @@ connect Box29.Widget Box17.Widget1
 connect Box16.Widget Box17.Widget2
 connect Box41.boxchange Box14.BoxExecute
 connect Box18.boxchange Box29.BoxExecute
+connect Box15.BoxChange Box41.boxexecute
+connect Box20.Out Box41._point
 
 # Complex input ports
 input vtkImageData_vectors Box26.In " "
 input vtkImageData_tensors Box27.In " "
 input vtkRenderer Box28.In " "
+input _viewerExecute Box15.In " "
+input _pointViewer Box20.In " "
 
 # Complex output ports
 output widget Box17.Widget " "
index 91f5a49d2d890a7937fac69906accbf316c72f21..2521476fd21062cf599e0b8eb27ed14a5ae15608 100644 (file)
@@ -21,17 +21,17 @@ void PlaneSource::Process()
     double p1[3];
        double p2[3];
        vtkPlaneSource *plane;
-       plane   =       vtkPlaneSource::New();
-       c[0]    =       bbGetInputCenter()[0];
-       c[1]    =       bbGetInputCenter()[1];
-       c[2]    =       bbGetInputCenter()[2];
-       p0[0]   =       0;      
-       p0[1]   =       0;
-       p0[2]   =       0;
+       plane           =       vtkPlaneSource::New();
+       c[0]            =       bbGetInputCenter()[0];
+       c[1]            =       bbGetInputCenter()[1];
+       c[2]            =       bbGetInputCenter()[2];
+       p0[0]           =       0;
+       p0[1]           =       0;
+       p0[2]           =       0;
 
 
-       bool byNormal=true;     
-       double size=350;
+       bool byNormal   = true;
+       double size     = 350;
 
        // xy
        if ((bbGetInputNormal()[0]==0) && (bbGetInputNormal()[1]==0) && (bbGetInputNormal()[2]==1)  ) 
@@ -69,6 +69,20 @@ void PlaneSource::Process()
                p2[2]   =       size;
        }
 
+/*
+    p0[0]     =    c[0];
+    p0[1]     =    c[1];
+    p0[2]     =    c[2];
+
+    p1[0]     =    c[0]+0;
+    p1[1]     =    c[1]+size;
+    p1[2]     =    c[2]+0;
+    
+    p2[0]     =    c[0]+0;
+    p2[1]     =    c[1]+0;
+    p2[2]     =    c[2]+size;
+*/
+    
                plane->SetResolution( bbGetInputXResolution(), bbGetInputYResolution() );
                if (byNormal==false)
                {
@@ -79,14 +93,14 @@ void PlaneSource::Process()
                        plane->SetNormal( bbGetInputNormal()[0], bbGetInputNormal()[1], bbGetInputNormal()[2] );
                        printf("EED PlaneSource. Missing mechanism to define the size of the plane\n");
                }
-                       plane->SetCenter( c );
+    plane->SetCenter( c );
 
                plane->Update( );
     bbSetOutputPlane( (vtkDataSet*)plane );
     bbSetOutputPolyData( plane->GetOutput() );
-
 }
-//===== 
+
+//=====
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void PlaneSource::bbUserSetDefaultValues()
index d15268bf4be6b4fc603660c1260c2b4d8a643f9a..d04e569e799345677af1c6069510132fdd8e9868 100644 (file)
@@ -3,17 +3,17 @@
 //===== 
 #include "bbcreaVtkVectorsVisu.h"
 #include "bbcreaVtkPackage.h"
+
 namespace bbcreaVtk
 {
-
 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,VectorsVisu)
 BBTK_BLACK_BOX_IMPLEMENTATION(VectorsVisu,bbtk::AtomicBlackBox);
+
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void VectorsVisu::Process()
 {
-
 // THE MAIN PROCESSING METHOD BODY
 //   Here we simply set the input 'In' value to the output 'Out'
 //   And print out the output value
@@ -25,7 +25,6 @@ void VectorsVisu::Process()
 //      (the one provided in the attribute 'name' of the tag 'input')
 //    * TYPE is the C++ type of the input/output
 //      (the one provided in the attribute 'type' of the tag 'input')
-
      vectorsvisu.SetActive( bbGetInputActive() );
      vectorsvisu.SetDataObject( bbGetInputIn() );
      vectorsvisu.SetScaleFactor( bbGetInputScaleFactor() );
@@ -35,9 +34,10 @@ void VectorsVisu::Process()
      vectorsvisu.SetOrientation( bbGetInputOrientation() );
      vectorsvisu.SetExternalLut( bbGetInputExternalLut() );
      vectorsvisu.Process();
-     bbSetOutputOut( vectorsvisu.GetProp3D() );  
+     bbSetOutputOut( vectorsvisu.GetProp3D() );
 }
-//===== 
+
+//=====
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void VectorsVisu::bbUserSetDefaultValues()
@@ -45,7 +45,6 @@ void VectorsVisu::bbUserSetDefaultValues()
 
 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
 //    Here we initialize the input 'In' to 0
-
    bbSetInputActive(false);
    bbSetInputIn(NULL);
    bbSetInputRenderer(NULL);
@@ -55,32 +54,29 @@ void VectorsVisu::bbUserSetDefaultValues()
    bbSetInputOrientation(-1);  
    bbSetInputExternalLut(NULL);  
 }
-//===== 
+
+//=====
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void VectorsVisu::bbUserInitializeProcessing()
 {
-
 //  THE INITIALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should allocate the internal/output pointers 
-//    if any 
-
-  
+//    if any
 }
-//===== 
+
+//=====
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //===== 
 void VectorsVisu::bbUserFinalizeProcessing()
 {
-
 //  THE FINALIZATION METHOD BODY :
 //    Here does nothing 
 //    but this is where you should desallocate the internal/output pointers 
 //    if any
-  
 }
-}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk
 
 
index 51392f7300698a6dac591902cc216c62060a409c..543ab17f63240cc52dfc14dca7cd9973c67497f4 100644 (file)
@@ -115,10 +115,8 @@ void vtkVectorsVisu::Process()
                } // _orientation                       
        } // _vtkglyph NULL
 
-
      if(_active==true)
      {
-
                if (GetDataObject()!=NULL) 
                {
        #if VTK_MAJOR_VERSION <= 5
@@ -143,7 +141,6 @@ void vtkVectorsVisu::Process()
                                }
                     _vtkglyph->SetScaleModeToScaleByVector();
 
-
                        if (_externalLut==NULL)
                        {
                        _vtkglyph->SetColorModeToColorByVector();   
@@ -261,7 +258,7 @@ void vtkVectorsVisu::Process()
                    _actor->SetMapper( _pdm );
                    _actor->GetProperty()->SetOpacity( GetOpacity() );
                } else {
-                       printf("EED Warnning! vtkVectorsVisu::Process   GetDataObject()  is EMPTY\n");
+                       printf("EED Warnning! vtkVectorsVisu::Process   GetDataObject()  is EMPTY \n" );
                }// if GetDataObject()!=NULL
 
        _pdm->ScalarVisibilityOn();