]> Creatis software - creaVtk.git/commitdiff
Vectors field in ortogonal planes
authorEduardo DAVILA <davila@port-alain.univ-lyon1.fr>
Wed, 2 Jan 2019 15:59:41 +0000 (16:59 +0100)
committerEduardo DAVILA <davila@port-alain.univ-lyon1.fr>
Wed, 2 Jan 2019 15:59:41 +0000 (16:59 +0100)
bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Interface.bbg
bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Interface.bbs
bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Widget.bbg
bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Widget.bbs
bbtk_creaVtk_PKG/src/bbcreaVtkPlaneSource.cxx

index 1a3b7e49a98daca0719bdff8706286d72c011a86..09bd8d8cb0943d33db6c629d7930739b3354d3a9 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.4 BBG BlackBox Diagram file
-# - /home/davila/Creatis/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Interface.bbg
+# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Interface.bbg
 # ----------------------------------
 
 APP_START
@@ -10,42 +10,46 @@ AUTHOR:Author ??
 COMPLEXBOX:TRUE
 COMPLEXBOXNAME:VectorsVisu_Interface
 PACKAGENAME:creaVtk
-COMPLEXOUTPUTS:5
+COMPLEXOUTPUTS:6
 COMPLEX_PORT
 Opacity
-40.353594:-51.001761:-900.000000
+42.538344:-69.870059:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 widget
--69.045254:-49.350565:-900.000000
+-100.028986:-72.786978:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 active
--37.624825:-47.529091:-900.000000
+-68.012716:-75.136391:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 ScaleFactor
-74.070740:-49.457530:-900.000000
+96.911312:-79.249580:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 boxChange
--5.260159:-49.295203:-900.000000
+-6.253227:-75.114980:-900.000000
+FIN_COMPLEX_PORT
+COMPLEX_PORT
+Type
+-36.743528:-74.778045:-900.000000
 FIN_COMPLEX_PORT
 COMPLEXINPUTS:0
-BOXES:8
+BOXES:10
 BOX
 wx:CheckBox:Box00
 ISEXEC:FALSE
--76.224989:54.666321:-900.000000
--30.649989:44.666321:-900.000000
+-147.328682:86.047280:-900.000000
+-111.003682:76.047280:-900.000000
 PORT
 Title:"Active Vector"
 FIN_BOX
 BOX
 wx:Slider:Box01
 ISEXEC:FALSE
--8.984397:56.398119:-900.000000
-42.415603:46.398119:-900.000000
+-2.231532:70.499689:-900.000000
+49.168468:60.499689:-900.000000
 PORT
 In:"100"
 PORT
@@ -63,15 +67,15 @@ BOX
 std:Div:Box02
 ISEXEC:FALSE
 33.671471:18.616028:-900.000000
-66.446471:8.616028:-900.000000
+62.996471:8.616028:-900.000000
 PORT
 In2:"100.0"
 FIN_BOX
 BOX
 wx:LayoutLine:Box03
 ISEXEC:FALSE
--85.410221:-1.499463:-900.000000
--27.850221:-11.499463:-900.000000
+-99.511791:9.027061:-900.000000
+-41.951791:-0.972939:-900.000000
 PORT
 WinTitle:"Vector field"
 FIN_BOX
@@ -85,15 +89,15 @@ BOX
 std:MultipleInputs:Box05
 ISEXEC:FALSE
 -9.535855:-18.209205:-900.000000
-36.039145:-28.209205:-900.000000
+30.164145:-28.209205:-900.000000
 PORT
 BoxProcessMode:"Reactive"
 FIN_BOX
 BOX
 wx:Slider:Box06
 ISEXEC:FALSE
-58.855363:57.678213:-900.000000
-110.255363:47.678213:-900.000000
+76.333366:74.957602:-900.000000
+127.733366:64.957602:-900.000000
 PORT
 ChangeResolution:"true"
 PORT
@@ -113,18 +117,33 @@ BOX
 std:Div:Box07
 ISEXEC:FALSE
 79.821975:17.274812:-900.000000
-112.596975:7.274812:-900.000000
+109.146975:7.274812:-900.000000
 PORT
 In2:"100.0"
 FIN_BOX
-CONNECTIONS:14
+BOX
+wx:ComboBox:Box08
+ISEXEC:FALSE
+-72.891216:88.085161:-900.000000
+-30.731216:78.085161:-900.000000
+PORT
+In:"Line Arrow"
+FIN_BOX
+BOX
+wx:LayoutLine:Box09
+ISEXEC:FALSE
+-80.107632:55.442679:-900.000000
+-22.547632:45.442679:-900.000000
+PORT
+Orientation:"H"
+PORT
+WinTitle:"Vector field"
+FIN_BOX
+CONNECTIONS:17
 CONNECTION
 Box01:Widget:Box03:Widget2
 NumberOfControlPoints:0
 CONNECTION
-Box00:Widget:Box03:Widget1
-NumberOfControlPoints:0
-CONNECTION
 Box01:Out:Box02:In1
 NumberOfControlPoints:0
 CONNECTION
@@ -160,4 +179,16 @@ NumberOfControlPoints:0
 CONNECTION
 Box05:BoxChange:boxChange:boxChange
 NumberOfControlPoints:0
+CONNECTION
+Box08:Widget:Box09:Widget2
+NumberOfControlPoints:0
+CONNECTION
+Box00:Widget:Box09:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box09:Widget:Box03:Widget1
+NumberOfControlPoints:0
+CONNECTION
+Box08:Out:Type:Type
+NumberOfControlPoints:0
 APP_END
index c70d6ab25b886c5f2bd3409f42f6d6d5e2bb04e1..02f5c8fd011812bd4f46fbe6cb2f3303b3855695 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
-# - /home/davila/Creatis/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Interface.bbs
+# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Interface.bbs
 # ----------------------------------
 
 include std
@@ -15,10 +15,10 @@ description "Description ??"
 
 category "<VOID>"
 
-new CheckBox Box00
+new wx:CheckBox Box00
   set Box00.Title "Active Vector"
 
-new Slider Box01
+new wx:Slider Box01
   set Box01.In "100"
   set Box01.Label "true"
   set Box01.Max "100"
@@ -26,18 +26,18 @@ new Slider Box01
   set Box01.ReactiveOnTrack "true"
   set Box01.Title "Opacity"
 
-new Div Box02
+new std:Div Box02
   set Box02.In2 "100.0"
 
-new LayoutLine Box03
+new wx:LayoutLine Box03
   set Box03.WinTitle "Vector field"
 
-new LayoutTab Box04
+new wx:LayoutTab Box04
 
-new MultipleInputs Box05
+new std:MultipleInputs Box05
   set Box05.BoxProcessMode "Reactive"
 
-new Slider Box06
+new wx:Slider Box06
   set Box06.ChangeResolution "true"
   set Box06.In "100"
   set Box06.Label "true"
@@ -46,12 +46,18 @@ new Slider Box06
   set Box06.ReactiveOnTrack "true"
   set Box06.Title "Scale Factor"
 
-new Div Box07
+new std:Div Box07
   set Box07.In2 "100.0"
 
+new wx:ComboBox Box08
+  set Box08.In "Line Arrow"
+
+new wx:LayoutLine Box09
+  set Box09.Orientation "H"
+  set Box09.WinTitle "Vector field"
+
 
 connect Box01.Widget Box03.Widget2
-connect Box00.Widget Box03.Widget1
 connect Box01.Out Box02.In1
 connect Box03.Widget Box04.Widget1
 connect Box01.BoxChange Box05.In2
@@ -59,6 +65,9 @@ connect Box00.BoxChange Box05.In1
 connect Box06.Widget Box03.Widget3
 connect Box06.BoxChange Box05.In3
 connect Box06.Out Box07.In1
+connect Box08.Widget Box09.Widget2
+connect Box00.Widget Box09.Widget1
+connect Box09.Widget Box03.Widget1
 
 # Complex input ports
 
@@ -68,6 +77,7 @@ output widget Box04.Widget " "
 output active Box00.Out " "
 output ScaleFactor Box07.Out " "
 output boxChange Box05.BoxChange " "
+output Type Box08.Out " "
 
 
 endefine
index c4687a37ec7a6b58af800810e163f1bc7a10e670..d47a5f17fd7420c3dde313be8e5bba49a240c9c4 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.4 BBG BlackBox Diagram file
-# - /tmpEED/creaTools2/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Widget.bbg
+# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Widget.bbg
 # ----------------------------------
 
 APP_START
@@ -53,11 +53,11 @@ BOX
 std:MultipleInputs:Box07
 ISEXEC:FALSE
 -199.014629:-6.443575:-900.000000
--148.406139:-16.443575:-900.000000
+-159.314629:-16.443575:-900.000000
 PORT
 BoxProcessMode:"Reactive"
 FIN_BOX
-CONNECTIONS:10
+CONNECTIONS:11
 CONNECTION
 Box05:Opacity:Box03:Opacity
 NumberOfControlPoints:0
@@ -88,4 +88,7 @@ NumberOfControlPoints:0
 CONNECTION
 boxExecute:boxExecute:Box07:In1
 NumberOfControlPoints:0
+CONNECTION
+Box05:Type:Box03:TypeForm
+NumberOfControlPoints:0
 APP_END
index 1b46f4a5841f8c47e03ff13c059032a2ff8dbd52..cddcb38c537e9ab248976f6182d21d93530ab031 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
-# - /tmpEED/creaTools2/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Widget.bbs
+# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VectorsVisu_Widget.bbs
 # ----------------------------------
 
 include std
@@ -30,6 +30,7 @@ connect Box05.ScaleFactor Box03.ScaleFactor
 connect Box05.active Box03.Active
 connect Box07.BoxChange Box03.BoxExecute
 connect Box05.boxChange Box07.In2
+connect Box05.Type Box03.TypeForm
 
 # Complex input ports
 input renderer Box03.Renderer " "
index 2f8b50dff43c9ac9a48605a76d7a537029883084..a5b518ec432a9a0572402cbd851683ae1a4e3df1 100644 (file)
@@ -24,12 +24,12 @@ void PlaneSource::Process()
                p0[2]=0;
     double p1[3];
                p1[0]=0;
-               p1[1]=1;
+               p1[1]=100;
                p1[2]=0;    
                double p2[3];
                p2[0]=0;
                p2[1]=0;
-               p2[2]=1;
+               p2[2]=100;
                double c[3];
                c[0]=bbGetInputCenter()[0];
                c[1]=bbGetInputCenter()[1];