]> Creatis software - creaMaracasVisu.git/commitdiff
#2809 creaMaracas Visu Feature New Normal - update UnitLayerPaint DrawAxisTree
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 1 Feb 2016 14:03:52 +0000 (15:03 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Mon, 1 Feb 2016 14:03:52 +0000 (15:03 +0100)
bbtk/bbs/boxes/UnitLayerPaint.bbg
bbtk/bbs/boxes/UnitLayerPaint.bbs
bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx

index 45b0ea3e5ae61885bb5ec474d3a1993da7ddab74..b749040126bfc61ca5be28266a7178c2e10ad34e 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.4 BBG BlackBox Diagram file
-# - /home/davila/Creatis/All/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/UnitLayerPaint.bbg
+# - /tmpEED/creaTools/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/UnitLayerPaint.bbg
 # ----------------------------------
 
 APP_START
@@ -41,7 +41,7 @@ BOX
 creaMaracasVisu:ViewerNV:Box09
 ISEXEC:FALSE
 33.629033:-1.576918:-900.000000
-94.269033:-11.576918:-900.000000
+79.204033:-11.576918:-900.000000
 PORT
 nTypeView:"0"
 FIN_BOX
@@ -57,7 +57,7 @@ BOX
 wx:LayoutLine:Box13
 ISEXEC:FALSE
 -92.239645:-52.736806:-900.000000
--34.679645:-62.736806:-900.000000
+-46.664645:-62.736806:-900.000000
 PORT
 Orientation:"H"
 FIN_BOX
@@ -71,7 +71,7 @@ BOX
 wx:LayoutTab:Box16
 ISEXEC:FALSE
 -30.536965:-32.299285:-900.000000
-27.023035:-42.299285:-900.000000
+15.038035:-42.299285:-900.000000
 FIN_BOX
 BOX
 wx:LayoutLine:Box17
@@ -85,7 +85,7 @@ BOX
 wx:LayoutLine:Box18
 ISEXEC:FALSE
 -34.328234:-13.564862:-900.000000
-23.231766:-23.564862:-900.000000
+11.246766:-23.564862:-900.000000
 PORT
 WinTitle:"Paint"
 FIN_BOX
@@ -114,6 +114,8 @@ PORT
 lstBaseColor:"1 0 0 1 1 0 0 0 1"
 PORT
 lstGreyLevelBoundaries:"500 1500 2500 5000"
+PORT
+lstTransparenceBoundaries:"0"
 FIN_BOX
 BOX
 vtk:vtkImageDataPointerRelay:Box23
@@ -125,7 +127,7 @@ BOX
 wx:LayoutTab:Box24
 ISEXEC:FALSE
 -4.772832:-89.823842:-900.000000
-52.787168:-99.823842:-900.000000
+40.802168:-99.823842:-900.000000
 PORT
 WinWidth:"0"
 FIN_BOX
index 78fedf933f8947d5395d61300942967ba051d310..4552892c669eacc179170dc84e30ab34c987521b 100644 (file)
@@ -1,6 +1,6 @@
 # ----------------------------------
 # - BBTKGEditor v 1.4 BBS BlackBox Script (Complex Box)
-# - /home/davila/Creatis/All/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/UnitLayerPaint.bbs
+# - /tmpEED/creaTools/creatools_source/creaMaracasVisu/bbtk/bbs/boxes/UnitLayerPaint.bbs
 # ----------------------------------
 
 include std
@@ -18,47 +18,48 @@ description "Description ??"
 
 category "<VOID>"
 
-new ViewerNV Box09
+new creaMaracasVisu:ViewerNV Box09
   set Box09.nTypeView "0"
 
-new ManualPaint Box11
+new creaMaracasVisu:ManualPaint Box11
   set Box11.WinTitle "Paint"
 
-new LayoutLine Box13
+new wx:LayoutLine Box13
   set Box13.Orientation "H"
 
-new LayoutTab Box15
+new wx:LayoutTab Box15
 
-new LayoutTab Box16
+new wx:LayoutTab Box16
 
-new LayoutLine Box17
+new wx:LayoutLine Box17
   set Box17.WinTitle "Color"
 
-new LayoutLine Box18
+new wx:LayoutLine Box18
   set Box18.WinTitle "Paint"
 
-new LayoutSplit Box19
+new wx:LayoutSplit Box19
   set Box19.Proportion "30"
 
-new SaveMHD-Button Box20
+new toolsbbtk:SaveMHD-Button Box20
 
-new ColorLayerImageView Box21
+new creaMaracasVisu:ColorLayerImageView Box21
   set Box21.WinTitle "Color"
   set Box21.lstBaseColor "1 0 0 1 1 0 0 0 1"
   set Box21.lstGreyLevelBoundaries "500 1500 2500 5000"
+  set Box21.lstTransparenceBoundaries "0"
 
-new vtkImageDataPointerRelay Box23
+new vtk:vtkImageDataPointerRelay Box23
 
-new LayoutTab Box24
+new wx:LayoutTab Box24
   set Box24.WinWidth "0"
 
-new ImageVtkPropertiesWidget Box25
+new toolsbbtk:ImageVtkPropertiesWidget Box25
 
-new MagicBox Box26
+new std:MagicBox Box26
 
-new MagicBox Box27
+new std:MagicBox Box27
 
-new MagicBox Box28
+new std:MagicBox Box28
 
 
 connect Box15.Widget Box13.Widget1
@@ -94,5 +95,6 @@ input TitleModule Box19.WinTitle " "
 # Complex output ports
 output OutWidget Box19.Widget " "
 
+message    
 
 endefine
index 00fae1748ba908cee2709fc7467027938bf880a8..fec824099408a2b00eace62478298500b02845c7 100644 (file)
@@ -192,9 +192,9 @@ void DrawAxisTree3D::Process()
     int iActor,sizeActors = vecVtkActors.size();
        int numPoints;
 
-    if (oldLstSize!=sizeLstAxis)
-        {
-        oldLstSize=sizeLstAxis;
+//    if (oldLstSize!=sizeLstAxis)
+//      {
+//        oldLstSize=sizeLstAxis;
          for (iActor=0 ; iActor<sizeActors; iActor++)
          {
             if (bbGetInputRenderer()!=NULL )
@@ -203,8 +203,8 @@ void DrawAxisTree3D::Process()
                 vecVtkPolyData[iActor]->Delete();
                 vecVtkPolyDataMaper[iActor]->Delete();
                 vecVtkActors[iActor]->Delete();
-            }
-         }
+            } // if
+         } // for iActor
          vecVtkPolyData.clear();
          vecVtkPolyDataMaper.clear();
          vecVtkActors.clear();
@@ -220,22 +220,22 @@ void DrawAxisTree3D::Process()
     //                 printf("EED  DrawAxisTree3D::Process  %d/%d\n", iAxis,sizeLstAxis );
     //         }
 
-        }
+        } // for iAxis
 
         if ( bbGetInputiAxis() < (int)(vecVtkActors.size()-1) )
         {
             bbSetOutputOutAxis( vecVtkActors[ bbGetInputiAxis() ] );
         } else         {
             printf("DrawAxisTree3D .ERROR. missing index vector...\n");
-        }
+        } // if 
 
-    } else {// if oldLstSize
//   } else {// if oldLstSize
         for (iActor=0 ; iActor<sizeActors; iActor++)
         {
             vecVtkActors[iActor]->GetProperty()->SetOpacity( bbGetInputOpacity() );
            vecVtkActors[iActor]->GetProperty()->SetLineWidth( bbGetInputLineWidth() );
         }
-    }
+//    } // if oldLstSize
 
        printf("EED DrawAxisTree3D::Process end \n");