From: Eduardo DAVILA Date: Fri, 8 Sep 2017 11:06:57 +0000 (+0200) Subject: #3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=f5978f8e401cf2f89a55e4b4836f95b85c0c53c7;p=bbtk.git #3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7 --- diff --git a/packages/vtk/src/bbvtkPiecewiseFunction.h b/packages/vtk/src/bbvtkPiecewiseFunction.h index 954792d..58572ef 100644 --- a/packages/vtk/src/bbvtkPiecewiseFunction.h +++ b/packages/vtk/src/bbvtkPiecewiseFunction.h @@ -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,""); diff --git a/packages/vtk/src/bbvtkSphereList.cxx b/packages/vtk/src/bbvtkSphereList.cxx index 5664b47..cde4561 100644 --- a/packages/vtk/src/bbvtkSphereList.cxx +++ b/packages/vtk/src/bbvtkSphereList.cxx @@ -42,17 +42,15 @@ double SphereList::GetRadio(int i) { double radio; if ( bbGetInputlstRadio().size()==0 ) - { - radio = 1.0; - } else if ( 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)