X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuAxeVolume.h;h=ca670c6610a6d56f065af10a2e9946d4aaff3365;hb=9efc4d8bf8fa16e76153eb2efccc5057a79f3d29;hp=e420365628fc1841bf5a425f422ff9c494336c27;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuAxeVolume.h b/bbtk/src/bbmaracasvisuAxeVolume.h index e420365..ca670c6 100644 --- a/bbtk/src/bbmaracasvisuAxeVolume.h +++ b/bbtk/src/bbmaracasvisuAxeVolume.h @@ -43,10 +43,17 @@ class /*BBTK_EXPORT*/ AxeVolume BBTK_DECLARE_INPUT( lstPointY , std::vector ); BBTK_DECLARE_INPUT( lstPointZ , std::vector ); BBTK_DECLARE_INPUT( lstPointR , std::vector ); + 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 ,""); BBTK_INPUT(AxeVolume,lstPointZ,"List of Z values", std::vector ,""); BBTK_INPUT(AxeVolume,lstPointR,"List of Radius", std::vector ,""); + + 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); }