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>,"");
{
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;
}
void SphereList::Process()
{
+printf("EED SphereList::Process Start\n");
+
if (bbGetInputRenderer()!=NULL)
{
int sizeLstX=bbGetInputlstPointX().size();
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)