]> Creatis software - creaVtk.git/commitdiff
#3516 Bug Opacity lines with planes (some special carts graphics)
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 27 Jul 2023 14:14:41 +0000 (16:14 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Thu, 27 Jul 2023 14:14:41 +0000 (16:14 +0200)
bbtk_creaVtk_PKG/bbs/boxes/VoiMPR-Widget.bbg
bbtk_creaVtk_PKG/bbs/boxes/VoiMPR-Widget.bbs
bbtk_creaVtk_PKG/src/bbcreaVtkVoiMPR.cxx

index 27023b6967c530bd943a8a37632f731d755027ba..6e4c20c172e79faf488c190bdfb6bd2262cae921 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
-# - BBTKGEditor v 1.4 BBG BlackBox Diagram file
-# - /home/davila/Creatis/C8/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VoiMPR-Widget.bbg
+# - BBTKGEditor v 1.5 BBG BlackBox Diagram file
+# - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VoiMPR-Widget.bbg
 # ----------------------------------
 
 APP_START
@@ -13,117 +13,117 @@ PACKAGENAME:creaVtk
 COMPLEXOUTPUTS:5
 COMPLEX_PORT
 Widget
-353.092211:-318.865448:-900.000000
+247.164548:-95.659634:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 Voi
-301.480796:-312.026931:-900.000000
+211.036557:-93.608079:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 boxchangeInterface
-271.395421:-312.977644:-900.000000
+189.976795:-93.893293:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 index
--110.981909:-314.679525:-900.000000
+-77.687336:-94.403858:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 size
-182.155431:-324.218825:-900.000000
+127.508802:-97.265647:-900.000000
 FIN_COMPLEX_PORT
 COMPLEXINPUTS:8
 COMPLEX_PORT
 execute
-202.846948:77.379235:-900.000000
+141.992864:23.213770:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 image
--67.836074:80.479216:-900.000000
+-47.485252:24.143765:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 Point
--10.598806:80.481110:-900.000000
+-7.419164:24.144333:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 RenderXY
-14.170076:78.107701:-900.000000
+9.919053:23.432310:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 RenderYZ
-100.261163:77.448973:-900.000000
+70.182814:23.234692:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 RenderXZ
-66.284345:75.805900:-900.000000
+46.399041:22.741770:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 VoiIndex
-244.843857:77.603342:-900.000000
+171.390700:23.281003:-900.000000
 FIN_COMPLEX_PORT
 COMPLEX_PORT
 VoiSize
-262.608573:76.578085:-900.000000
+183.826001:22.973426:-900.000000
 FIN_COMPLEX_PORT
 BOXES:21
 BOX
 creaVtk:VoiMPR-Interface:Box01
 ISEXEC:FALSE
-212.804711:4.373404:-900.000000
-255.904711:-5.626596:-900.000000
+148.963298:1.312021:-900.000000
+171.273298:-1.187979:-900.000000
 FIN_BOX
 BOX
 creaVtk:VoiMPR:Box02
 ISEXEC:FALSE
--18.111927:-109.039110:-900.000000
-15.438073:-119.039110:-900.000000
+-12.678349:-32.711733:-900.000000
+17.480000:-35.211733:-900.000000
 FIN_BOX
 BOX
 vtk:UpdateRender:Box03
 ISEXEC:FALSE
-351.163040:-97.770139:-900.000000
-391.488040:-107.770139:-900.000000
+245.814128:-29.331042:-900.000000
+267.839128:-31.831042:-900.000000
 PORT
 Active:"true"
 FIN_BOX
 BOX
 std:MagicBox:Box04
 ISEXEC:FALSE
-9.484851:49.900219:-900.000000
-45.559851:39.900219:-900.000000
+6.639396:14.970066:-900.000000
+28.239396:12.470066:-900.000000
 FIN_BOX
 BOX
 std:MagicBox:Box05
 ISEXEC:FALSE
-48.870651:49.674678:-900.000000
-84.945651:39.674678:-900.000000
+34.209456:14.902403:-900.000000
+55.809456:12.402403:-900.000000
 FIN_BOX
 BOX
 std:MagicBox:Box06
 ISEXEC:FALSE
-90.898503:48.874788:-900.000000
-126.973503:38.874788:-900.000000
+63.628952:14.662436:-900.000000
+85.228952:12.162436:-900.000000
 FIN_BOX
 BOX
 vtk:UpdateRender:Box07
 ISEXEC:FALSE
-406.438779:-97.452724:-900.000000
-446.763779:-107.452724:-900.000000
+284.507145:-29.235817:-900.000000
+306.532145:-31.735817:-900.000000
 PORT
 Active:"true"
 FIN_BOX
 BOX
 vtk:UpdateRender:Box08
 ISEXEC:FALSE
-450.234362:-96.323828:-900.000000
-490.559362:-106.323828:-900.000000
+315.164053:-28.897148:-900.000000
+337.189053:-31.397148:-900.000000
 PORT
 Active:"true"
 FIN_BOX
 BOX
 std:ConcatStrings:Box09
 ISEXEC:FALSE
--116.019206:-196.232084:-900.000000
--76.294206:-206.232084:-900.000000
+-81.213444:-58.869625:-900.000000
+22.760000:-61.369625:-900.000000
 PORT
 In2:" "
 PORT
@@ -132,16 +132,16 @@ FIN_BOX
 BOX
 std:GetVectorIntElement:Box10
 ISEXEC:FALSE
--6.890515:-136.473014:-900.000000
-39.559485:-146.473014:-900.000000
+-4.823360:-40.941904:-900.000000
+17.836640:-43.441904:-900.000000
 PORT
 I:"0"
 FIN_BOX
 BOX
 std:ConcatStrings:Box14
 ISEXEC:FALSE
-157.607448:-247.695413:-900.000000
-197.332448:-257.695413:-900.000000
+110.325214:-74.308624:-900.000000
+132.295214:-76.808624:-900.000000
 PORT
 In2:" "
 PORT
@@ -150,78 +150,78 @@ FIN_BOX
 BOX
 std:MathOperation:Box15
 ISEXEC:FALSE
-3.807182:-195.312415:-900.000000
-44.857182:-205.312415:-900.000000
+2.665027:-58.593724:-900.000000
+24.765027:-61.093724:-900.000000
 PORT
 Type:"1"
 FIN_BOX
 BOX
 std:GetVectorIntElement:Box16
 ISEXEC:FALSE
-47.213814:-137.759972:-900.000000
-93.663814:-147.759972:-900.000000
+33.049670:-41.327992:-900.000000
+55.709670:-43.827992:-900.000000
 PORT
 I:"1"
 FIN_BOX
 BOX
 std:GetVectorIntElement:Box17
 ISEXEC:FALSE
-128.705901:-136.782115:-900.000000
-175.155901:-146.782115:-900.000000
+90.094131:-41.034635:-900.000000
+112.754131:-43.534635:-900.000000
 PORT
 I:"2"
 FIN_BOX
 BOX
 std:MathOperation:Box18
 ISEXEC:FALSE
-162.348219:-197.941357:-900.000000
-203.398219:-207.941357:-900.000000
+113.643753:-59.382407:-900.000000
+135.743753:-61.882407:-900.000000
 PORT
 Type:"1"
 FIN_BOX
 BOX
 std:GetVectorIntElement:Box19
 ISEXEC:FALSE
-180.079360:-136.525745:-900.000000
-226.529360:-146.525745:-900.000000
+126.055552:-40.957724:-900.000000
+148.715552:-43.457724:-900.000000
 PORT
 I:"3"
 FIN_BOX
 BOX
 std:GetVectorIntElement:Box20
 ISEXEC:FALSE
-297.542452:-134.964985:-900.000000
-343.992452:-144.964985:-900.000000
+208.279716:-40.489496:-900.000000
+230.939716:-42.989496:-900.000000
 PORT
 I:"4"
 FIN_BOX
 BOX
 std:MathOperation:Box21
 ISEXEC:FALSE
-307.499788:-193.961686:-900.000000
-348.549788:-203.961686:-900.000000
+215.249852:-58.188506:-900.000000
+237.349852:-60.688506:-900.000000
 PORT
 Type:"1"
 FIN_BOX
 BOX
 std:GetVectorIntElement:Box22
 ISEXEC:FALSE
-358.601996:-135.005921:-900.000000
-405.051996:-145.005921:-900.000000
+251.021397:-40.501776:-900.000000
+273.681397:-43.001776:-900.000000
 PORT
 I:"5"
 FIN_BOX
 BOX
 vtk:vtkImageDataPointerRelay:Box23
 ISEXEC:FALSE
--80.401182:48.734170:-900.000000
--28.226182:38.734170:-900.000000
+-56.280827:14.620251:-900.000000
+6.920000:12.120251:-900.000000
 FIN_BOX
 BOX
 vtk:ImageVtkProperties:Box24
 ISEXEC:FALSE
--87.393532:-45.289394:-900.000000
--42.043532:-55.289394:-900.000000
+-61.175472:-13.586818:-900.000000
+16.720000:-16.086818:-900.000000
 FIN_BOX
 CONNECTIONS:46
 CONNECTION
index 0de727b9f25c2bd41c4ef22624a0223e870d30b6..83e6a9f3f52bbcf77309c56c1d2bdea988afa825 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/VoiMPR-Widget.bbs
+# - BBTKGEditor v 1.5 BBS BlackBox Script (Complex Box)
+# - /Users/davila/Creatis/C23/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/boxes/VoiMPR-Widget.bbs
 # ----------------------------------
 
 include std
index 2ecd5cabd007fd68b4c0265e51084cf2948ebd3a..525c2e9f84f6fcbee86e66928371909f9cca177b 100644 (file)
@@ -1,9 +1,12 @@
 //===== 
 // 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)
-//===== 
+//=====
+
 #include "bbcreaVtkVoiMPR.h"
 #include "bbcreaVtkPackage.h"
 
+#include <vtkProperty.h>
+
 namespace bbcreaVtk
 {
 
@@ -37,8 +40,8 @@ void VoiMPR::Process()
                bool showActorYZ;
                bool showActorXZ;
 
-               std::vector<int> vecVOI = bbGetInputIn();
-               std::vector<double> spc = bbGetInputSpacing();
+               std::vector<int>    vecVOI  = bbGetInputIn();
+               std::vector<double>    spc  = bbGetInputSpacing();
                vecVOI[0] = vecVOI[0]*spc[0];
                vecVOI[1] = vecVOI[1]*spc[0];
                vecVOI[2] = vecVOI[2]*spc[1];
@@ -188,6 +191,8 @@ void VoiMPR::bbUserInitializeProcessing()
        polygonXY               = vtkPolyData           ::New();
        polygonMapperXY = vtkPolyDataMapper     ::New();
        polygonActorXY  = vtkActor                      ::New();
+//EED 2023-07-27
+    polygonActorXY->GetProperty()->SetOpacity(0.9999);
        pointsXY                -> SetNumberOfPoints(4);
        pointsXY                -> SetPoint(0, 0, 0, 0);
        pointsXY                -> SetPoint(1, 0, 0, 0);
@@ -211,6 +216,8 @@ void VoiMPR::bbUserInitializeProcessing()
        polygonXZ               = vtkPolyData           ::New();
        polygonMapperXZ = vtkPolyDataMapper     ::New();
        polygonActorXZ  = vtkActor                      ::New();
+    //EED 2023-07-27
+    polygonActorXZ->GetProperty()->SetOpacity(0.9999);
        pointsXZ                -> SetNumberOfPoints(4);
        pointsXZ                -> SetPoint(0, 0, 0, 0);
        pointsXZ                -> SetPoint(1, 0, 0, 0);
@@ -233,6 +240,8 @@ void VoiMPR::bbUserInitializeProcessing()
        polygonYZ               = vtkPolyData           ::New();
        polygonMapperYZ = vtkPolyDataMapper     ::New();
        polygonActorYZ  = vtkActor                      ::New();
+    //EED 2023-07-27
+    polygonActorYZ->GetProperty()->SetOpacity(0.9999);
        pointsYZ                ->SetNumberOfPoints(4);
        pointsYZ                ->SetPoint(0, 0, 0, 0);
        pointsYZ                ->SetPoint(1, 0, 0, 0);