X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuContourVOI.h;h=5395fbe354e3c8372e6319a4be4ae9d503bd1083;hb=66588eac91068d9b7f9d45bffc5e09c27511eaac;hp=7f134ea4d463742b619ca9823dedbfe313990764;hpb=825aea147234aff270ea97229e7a6c6c4f190f58;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuContourVOI.h b/bbtk/src/bbmaracasvisuContourVOI.h index 7f134ea..5395fbe 100644 --- a/bbtk/src/bbmaracasvisuContourVOI.h +++ b/bbtk/src/bbmaracasvisuContourVOI.h @@ -7,6 +7,7 @@ #include +#include #include "Contour/ContourVOIWidget.h" @@ -43,6 +44,7 @@ namespace bbcreaMaracasVisu wxVtkBaseView * wxvtkbaseview; vtkImageData * imagedata; + @@ -63,19 +65,12 @@ class /*BBTK_EXPORT*/ ContourVOI public bbtk::WxBlackBox { BBTK_BLACK_BOX_INTERFACE(ContourVOI,bbtk::WxBlackBox); -//================================================================== -/// User callback called in the box contructor -virtual void bbUserConstructor(); -/// User callback called in the box copy constructor -virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer); -/// User callback called in the box destructor -virtual void bbUserDestructor(); -//================================================================== BBTK_DECLARE_INPUT(Title,std::string); BBTK_DECLARE_INPUT(In, vtkImageData*); BBTK_DECLARE_INPUT(wxVtkBaseView, wxVtkBaseView*); BBTK_DECLARE_OUTPUT(Index,std::string); BBTK_DECLARE_OUTPUT(Size,std::string); + BBTK_DECLARE_OUTPUT(VOI,vtkImageData*); BBTK_PROCESS(Process); void Process(); BBTK_CREATE_WIDGET(CreateWidget); @@ -84,6 +79,7 @@ virtual void bbUserDestructor(); private: vtkImageData* _img; wxVtkBaseView* _base; + vtkExtractVOI* _extract; }; @@ -97,6 +93,7 @@ BBTK_DESCRIPTION("define VOI widget"); BBTK_INPUT(ContourVOI,wxVtkBaseView,"maracas visu wxVtkBaseView",wxVtkBaseView*,""); BBTK_OUTPUT(ContourVOI,Index, "Index" , std::string,""); BBTK_OUTPUT(ContourVOI,Size, "Size" , std::string,""); + BBTK_OUTPUT(ContourVOI,VOI,"Region of interest",vtkImageData*,""); BBTK_END_DESCRIBE_BLACK_BOX(ContourVOI); } // EO namespace bbcreaMaracasVisu