]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkSphereList.h
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / vtk / src / bbvtkSphereList.h
index ac45d5ed087e0ff95a789996cebe5ab60bca89e1..070da9519e575347b8a23ae63fa3b85d157b2e02 100644 (file)
@@ -62,7 +62,12 @@ class bbvtk_EXPORT SphereList
   void Process();
 
   std::vector<vtkActor *> sphereActor;
+  std::vector<vtkSphereSource *> vtkspheresourceLst;
 
+private:
+   double GetRadio(int);
+   void GetPoint(int i, double &px,double &py,double &pz);   
+   void GetColor(int i, double &cr,double &cg,double &cb);
 };
 
 BBTK_BEGIN_DESCRIBE_BLACK_BOX(SphereList,bbtk::AtomicBlackBox);
@@ -75,8 +80,8 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(SphereList,bbtk::AtomicBlackBox);
        BBTK_INPUT(SphereList,lstPointY,"List of Y coordinates. Requirement: same size as vector X and vector Z.",std::vector<double>,"");
        BBTK_INPUT(SphereList,lstPointZ,"List of Z coordinates. Requirement: same size as vector X and vector Y.",std::vector<double>,"");
        BBTK_INPUT(SphereList,lstRadio,"List of Radio values",std::vector<double>,"");
-       BBTK_INPUT(SphereList,Colour,"Colour RGB values for the spheres (3 first values of the vector for the first sphere, following values for the second sphere, etc.)",std::vector<double>,"");
-       BBTK_INPUT(SphereList,Opacity,"Opacity of the spheres",double,"");
+       BBTK_INPUT(SphereList,Colour,"Colour RGB values for the spheres (default [1 0 0])  (3 first values of the vector for the first sphere, following values for the second sphere, etc.)",std::vector<double>,"");
+       BBTK_INPUT(SphereList,Opacity,"Opacity of the spheres (default 1)",double,"");
        BBTK_INPUT(SphereList,Spacing,"(default [1 1 1]) Spacing vector [sx sy sz]",std::vector<double>,"");
 BBTK_INPUT(SphereList,Transform,"vtkTransform",vtkLinearTransform*,"");