- // If it is not the first time Process is executed, the actors have already been created. The only thing to do is to update the opacity.
- if (sphereActor.size() != 0)
- {
- for (int i = 0; i < sphereActor.size(); i++)
- sphereActor[i] -> GetProperty() -> SetOpacity( bbGetInputOpacity() );
- }
- else
- {
- if (bbGetInputSpacing().size()==3)
- {
- spc[0]=bbGetInputSpacing()[0];
- spc[1]=bbGetInputSpacing()[1];
- spc[2]=bbGetInputSpacing()[2];
- }
- else
- {
- spc[0]=spc[1]=spc[2]=1;
- }
-
- iMin=0;
- iMax=bbGetInputlstPointX().size();
- printf("EED SphereList::Process iMax=%d \n", iMax);
- for (int i = 0; i < iMax; i++)
- {
- std::cout << "CM SphereList::Process i=" << i << " bbGetInputlstPointX()[i]=" << bbGetInputlstPointX()[i] << std::endl;
- std::cout << "CM SphereList::Process i=" << i << " bbGetInputlstPointY()[i]=" << bbGetInputlstPointY()[i] << std::endl;
- std::cout << "CM SphereList::Process i=" << i << " bbGetInputlstPointZ()[i]=" << bbGetInputlstPointZ()[i] << std::endl;
- }
- // If the vector Y or respectively the vector Z has a different size from the vector X, the position value py or respectively pz is set to 0.
- for ( int i=iMin ; i<iMax; i=i+1 )
- {
- px = bbGetInputlstPointX()[i]*spc[0];
- if (bbGetInputlstPointY().size() == bbGetInputlstPointX().size() )
- {
- py = bbGetInputlstPointY()[i]*spc[1];
- }
- if (bbGetInputlstPointZ().size() == bbGetInputlstPointX().size() )
- {
- pz = bbGetInputlstPointZ()[i]*spc[2];
- }
-
- // If the number of elements in the radio list is different from the number of X coordinates, the radio value is set to 1.
- if (bbGetInputlstRadio().size() == bbGetInputlstPointX().size() )
+ int sizeLstX=bbGetInputlstPointX().size();
+ int sizeLstY=bbGetInputlstPointY().size();
+ int sizeLstZ=bbGetInputlstPointZ().size();
+ int sizeLstActors=sphereActor.size();
+ if ((sizeLstX==sizeLstY) &&(sizeLstX==sizeLstZ))
+ {
+ if (sizeLstActors>sizeLstX)