]> Creatis software - bbtk.git/commitdiff
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7 vtk7itk4
authorEduardo DAVILA <davila@localhost.localdomain>
Fri, 8 Sep 2017 11:06:57 +0000 (13:06 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Fri, 8 Sep 2017 11:06:57 +0000 (13:06 +0200)
packages/vtk/src/bbvtkPiecewiseFunction.h
packages/vtk/src/bbvtkSphereList.cxx

index 954792d300e0d7e859699afbe8a2adbaca4fffc4..58572ef895eab27eae92352387aceab780d88731 100644 (file)
@@ -87,7 +87,7 @@ namespace bbvtk
   BBTK_BEGIN_DESCRIBE_BLACK_BOX(PiecewiseFunction,bbtk::AtomicBlackBox);
   BBTK_NAME("PiecewiseFunction");
   BBTK_AUTHOR("laurent.guigues@creatis.insa-lyon.fr");
-  BBTK_DESCRIPTION("Creates a piecewise function");
+  BBTK_DESCRIPTION("Creates a piecewise function  ( see exampleVolumeRendering )");
   BBTK_CATEGORY("misc");
   BBTK_INPUT(PiecewiseFunction,X,"X coords of the points of the function",
             std::vector<float>,"");
index 5664b47464ad8ae57ed46c28c67689dd295f01d1..cde4561ad0c8eb6e629f2c7bc3a26c3afa8d2fcd 100644 (file)
@@ -42,17 +42,15 @@ double SphereList::GetRadio(int i)
 {
     double radio;
        if ( bbGetInputlstRadio().size()==0 )
-        {
-            radio = 1.0;
-        } else if ( i<bbGetInputlstRadio().size() )
+    {
+               radio = 1.0;
+       } else if ( i<bbGetInputlstRadio().size() )
        {
-            radio = bbGetInputlstRadio()[i];
-        } else  
-        {
-            radio = bbGetInputlstRadio()[ bbGetInputlstRadio().size() - 1 ];
-        }  
-
-       return radio;
+               radio = bbGetInputlstRadio()[i];
+       } else {
+       radio = bbGetInputlstRadio()[ bbGetInputlstRadio().size() - 1 ];
+    }  
+       return radio;
 }
 
 
@@ -100,6 +98,8 @@ void SphereList::GetColor(int i, double &cr,double &cg,double &cb)
 
 void SphereList::Process()
 {
+printf("EED SphereList::Process Start\n");
+
        if (bbGetInputRenderer()!=NULL)
        {
                int sizeLstX=bbGetInputlstPointX().size();      
@@ -171,6 +171,7 @@ void SphereList::Process()
                 sphereActor[i] -> GetProperty() -> SetOpacity( bbGetInputOpacity() );
                 sphereActor[i] -> GetProperty() -> SetColor( cr,cg,cb );
                 vtkspheresourceLst[i] -> SetRadius( GetRadio(i) ); 
+                       vtkspheresourceLst[i] -> Update();
                } // for i
 
                if (sphereActor.size() != 0)