From f5978f8e401cf2f89a55e4b4836f95b85c0c53c7 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 8 Sep 2017 13:06:57 +0200 Subject: [PATCH] #3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7 --- packages/vtk/src/bbvtkPiecewiseFunction.h | 2 +- packages/vtk/src/bbvtkSphereList.cxx | 21 +++++++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) 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) -- 2.47.1