]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuAxeVolume.h
#2982 creaMaracasVisu Feature New Normal - ShowNPoints_model
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuAxeVolume.h
index e420365628fc1841bf5a425f422ff9c494336c27..ca670c6610a6d56f065af10a2e9946d4aaff3365 100644 (file)
@@ -43,10 +43,17 @@ class /*BBTK_EXPORT*/ AxeVolume
   BBTK_DECLARE_INPUT( lstPointY , std::vector<double> );
   BBTK_DECLARE_INPUT( lstPointZ , std::vector<double> );
   BBTK_DECLARE_INPUT( lstPointR , std::vector<double> );
+  BBTK_DECLARE_INPUT( OutputFormat , std::string );
+  BBTK_DECLARE_INPUT( Value , double );
+
+
   BBTK_DECLARE_OUTPUT(Out,vtkImageData *);
   BBTK_PROCESS(Process);
   void Process();
 
+  int GetTypeFormat( std::string formatStr , vtkImageData* image );
+
+
 private:
   vtkImageData *mimage;
 };
@@ -61,6 +68,10 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(AxeVolume,bbtk::AtomicBlackBox);
   BBTK_INPUT(AxeVolume,lstPointY,"List of Y values", std::vector<double> ,"");
   BBTK_INPUT(AxeVolume,lstPointZ,"List of Z values", std::vector<double> ,"");
   BBTK_INPUT(AxeVolume,lstPointR,"List of Radius", std::vector<double> ,"");
+
+  BBTK_INPUT(AxeVolume,OutputFormat,"Image output format:  SAME (default), VTK_BIT, VTK_CHAR, VTK_SIGNED_CHAR, VTK_UNSIGNED_CHAR, VTK_SHORT, VTK_UNSIGNED_SHORT, VTK_INT, VTK_UNSIGNED_INT, VTK_LONG, VTK_UNSIGNED_LONG, VTK_FLOAT, VTK_DOUBLE",std::string,"");
+  BBTK_INPUT(AxeVolume,Value,"(255 default) Gray level in the output image", double ,"");
+
   BBTK_OUTPUT(AxeVolume,Out,"Result image",vtkImageData*,"");
 BBTK_END_DESCRIBE_BLACK_BOX(AxeVolume);
 }